mind_map/dist/js/app.js
2024-08-23 15:48:04 +08:00

1 line
48 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e){function t(t){for(var o,r,l=t[0],d=t[1],c=t[2],s=0,u=[];s<l.length;s++)r=l[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&u.push(i[r][0]),i[r]=0;for(o in d)Object.prototype.hasOwnProperty.call(d,o)&&(e[o]=d[o]);m&&m(t);while(u.length)u.shift()();return a.push.apply(a,c||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],o=!0,r=1;r<n.length;r++){var l=n[r];0!==i[l]&&(o=!1)}o&&(a.splice(t--,1),e=d(d.s=n[0]))}return e}var o={},r={app:0},i={app:0},a=[];function l(e){return d.p+"js/"+({}[e]||e)+".js"}function d(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,d),n.l=!0,n.exports}d.e=function(e){var t=[],n={"chunk-71a7cb59":1};r[e]?t.push(r[e]):0!==r[e]&&n[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+({}[e]||e)+".css",i=d.p+o,a=document.getElementsByTagName("link"),l=0;l<a.length;l++){var c=a[l],s=c.getAttribute("data-href")||c.getAttribute("href");if("stylesheet"===c.rel&&(s===o||s===i))return t()}var u=document.getElementsByTagName("style");for(l=0;l<u.length;l++){c=u[l],s=c.getAttribute("data-href");if(s===o||s===i)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var o=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=o,delete r[e],m.parentNode.removeChild(m),n(a)},m.href=i;var p=document.getElementsByTagName("head")[0];p.appendChild(m)})).then((function(){r[e]=0})));var o=i[e];if(0!==o)if(o)t.push(o[2]);else{var a=new Promise((function(t,n){o=i[e]=[t,n]}));t.push(o[2]=a);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,d.nc&&s.setAttribute("nonce",d.nc),s.src=l(e);var u=new Error;c=function(t){s.onerror=s.onload=null,clearTimeout(m);var n=i[e];if(0!==n){if(n){var o=t&&("load"===t.type?"missing":t.type),r=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+o+": "+r+")",u.name="ChunkLoadError",u.type=o,u.request=r,n[1](u)}i[e]=void 0}};var m=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(t)},d.m=e,d.c=o,d.d=function(e,t,n){d.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},d.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},d.t=function(e,t){if(1&t&&(e=d(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(d.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)d.d(n,o,function(t){return e[t]}.bind(null,o));return n},d.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return d.d(t,"a",t),t},d.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},d.p=window.externalPublicPath,d.oe=function(e){throw console.error(e),e};var c=window["webpackJsonp"]=window["webpackJsonp"]||[],s=c.push.bind(c);c.push=t,c=c.slice();for(var u=0;u<c.length;u++)t(c[u]);var m=s;a.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"1e42":function(e,t,n){"use strict";n.d(t,"vb",(function(){return l})),n.d(t,"e",(function(){return d})),n.d(t,"nb",(function(){return c})),n.d(t,"mb",(function(){return s})),n.d(t,"K",(function(){return u})),n.d(t,"qb",(function(){return m})),n.d(t,"n",(function(){return p})),n.d(t,"m",(function(){return h})),n.d(t,"T",(function(){return f})),n.d(t,"fb",(function(){return g})),n.d(t,"t",(function(){return T})),n.d(t,"tb",(function(){return v})),n.d(t,"d",(function(){return y})),n.d(t,"s",(function(){return w})),n.d(t,"f",(function(){return O})),n.d(t,"ab",(function(){return b})),n.d(t,"cb",(function(){return N})),n.d(t,"j",(function(){return S})),n.d(t,"L",(function(){return x})),n.d(t,"gb",(function(){return k})),n.d(t,"D",(function(){return R})),n.d(t,"q",(function(){return I})),n.d(t,"Z",(function(){return C})),n.d(t,"ib",(function(){return F})),n.d(t,"X",(function(){return M})),n.d(t,"jb",(function(){return D})),n.d(t,"b",(function(){return U})),n.d(t,"h",(function(){return H})),n.d(t,"lb",(function(){return G})),n.d(t,"Y",(function(){return j})),n.d(t,"W",(function(){return Y})),n.d(t,"O",(function(){return W})),n.d(t,"db",(function(){return $})),n.d(t,"sb",(function(){return V})),n.d(t,"kb",(function(){return X})),n.d(t,"U",(function(){return Q})),n.d(t,"I",(function(){return ee})),n.d(t,"g",(function(){return te})),n.d(t,"bb",(function(){return ne})),n.d(t,"M",(function(){return oe})),n.d(t,"eb",(function(){return re})),n.d(t,"l",(function(){return ie})),n.d(t,"v",(function(){return ae})),n.d(t,"ob",(function(){return le})),n.d(t,"a",(function(){return de})),n.d(t,"r",(function(){return ce})),n.d(t,"w",(function(){return se})),n.d(t,"E",(function(){return ue})),n.d(t,"F",(function(){return me})),n.d(t,"A",(function(){return pe})),n.d(t,"S",(function(){return he})),n.d(t,"V",(function(){return fe})),n.d(t,"pb",(function(){return ge})),n.d(t,"C",(function(){return Te})),n.d(t,"hb",(function(){return ve})),n.d(t,"R",(function(){return ye})),n.d(t,"i",(function(){return we})),n.d(t,"B",(function(){return Oe})),n.d(t,"p",(function(){return Ee})),n.d(t,"k",(function(){return be})),n.d(t,"Q",(function(){return Ae})),n.d(t,"ub",(function(){return Ne})),n.d(t,"N",(function(){return Se})),n.d(t,"J",(function(){return Le})),n.d(t,"P",(function(){return xe})),n.d(t,"H",(function(){return ke})),n.d(t,"G",(function(){return Re})),n.d(t,"z",(function(){return Ce})),n.d(t,"y",(function(){return Fe})),n.d(t,"u",(function(){return _e})),n.d(t,"o",(function(){return Me})),n.d(t,"x",(function(){return De})),n.d(t,"c",(function(){return Pe})),n.d(t,"rb",(function(){return Ue}));n("14d9"),n("13d5"),n("5b81");var o=n("0f9c"),r=n("4013");function i(e){this.N=624,this.M=397,this.MATRIX_A=2567483615,this.UPPER_MASK=2147483648,this.LOWER_MASK=2147483647,this.mt=new Array(this.N),this.mti=this.N+1,this.init_genrand(e)}i.prototype.init_genrand=function(e){for(this.mt[0]=e>>>0,this.mti=1;this.mti<this.N;this.mti++)e=this.mt[this.mti-1]^this.mt[this.mti-1]>>>30,this.mt[this.mti]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+this.mti,this.mt[this.mti]>>>=0},i.prototype.genrand_int32=function(){var e,t=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_genrand(5489),n=0;n<this.N-this.M;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+this.M]^e>>>1^t[1&e];for(;n<this.N-1;n++)e=this.mt[n]&this.UPPER_MASK|this.mt[n+1]&this.LOWER_MASK,this.mt[n]=this.mt[n+(this.M-this.N)]^e>>>1^t[1&e];e=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^e>>>1^t[1&e],this.mti=0}return e=this.mt[this.mti++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0};var a=n("8a19");const l=(e,t,n,o,r,i=0,a=0,d=[])=>{let c=!1;if(n&&(c=n(e,t,r,i,a,d)),!c&&e.children&&e.children.length>0){let t=i+1;e.children.forEach((r,i)=>{l(r,e,n,o,!1,t,i,[...d,e])})}o&&o(e,t,r,i,a,d)},d=(e,t)=>{let n=[e],o=!1;"stop"===t(e,null)&&(o=!0);while(n.length){if(o)break;let e=n.shift();e.children&&e.children.length&&e.children.forEach(r=>{o||(n.push(r),"stop"===t(r,e)&&(o=!0))})}},c=(e,t,n,o)=>{let r=[],i=e/t,a=n/o;return r=i>a?[i*o,o]:[n,n/i],r},s=(e,t,n,o)=>{let r=e/t,i=[];if(n&&o)if(e<=n&&t<=o)i=[e,t];else{let e=n/o;i=r>e?[r*o,o]:[n,n/r]}else n?i=e<=n?[e,t]:[n,n/r]:o&&(i=t<=o?[e,t]:[r*o,o]);return i},u=e=>{e=e.replace(/<br>/gim,"\n");let t=document.createElement("div");return t.innerHTML=e,e=t.textContent,e},m=e=>{try{return JSON.parse(JSON.stringify(e))}catch(t){return null}},p=(e,t,n=!1)=>{if(e.data=m(t.data),n){e.data.isActive=!1;const t=De(e.data);t.forEach(e=>{e.isActive=!1})}return e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,o)=>{e.children[o]=p({},t,n)}),e},h=(e,t,n=!1,o=!0)=>(e.data=m(t.nodeData?t.nodeData.data:t.data),o?delete e.data.uid:e.data.uid||(e.data.uid=I()),n&&(e.data.isActive=!1),e.children=[],t.children&&t.children.length>0?t.children.forEach((t,r)=>{e.children[r]=h({},t,n,o)}):t.nodeData&&t.nodeData.children&&t.nodeData.children.length>0&&t.nodeData.children.forEach((t,r)=>{e.children[r]=h({},t,n,o)}),e),f=(e,t=!1)=>new Promise((n,o)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{try{let e=document.createElement("canvas");e.width=r.width,e.height=r.height;let o=e.getContext("2d");o.drawImage(r,0,0,r.width,r.height),t?e.toBlob(e=>{n(e)}):n(e.toDataURL())}catch(e){o(e)}},r.onerror=e=>{o(e)},r.src=e}),g=e=>{if(!/^data:/.test(e))return e;let[t,n]=e.split(","),o=/^data:[^/]+\/([^;]+);/.exec(t),r=o[1];return{type:r,base64:n}},T=(e,t)=>{let n=document.createElement("a");n.href=e,n.download=t,n.click()},v=(e,t=300,n)=>{let o=null;return(...r)=>{o||(o=setTimeout(()=>{e.call(n,...r),o=null},t))}},y=(e,t=(()=>{}))=>{let n=0,o=e.length;if(o<=0)return t();let r=()=>{n>=o?t():(e[n](),setTimeout(()=>{n++,r()},0))};r()},w=e=>e*(Math.PI/180),O=e=>e.replace(/([a-z])([A-Z])/g,(...e)=>e[1]+"-"+e[2].toLowerCase());let E=null;const b=(e,{italic:t,bold:n,fontSize:o,fontFamily:r})=>{const i=A({italic:t,bold:n,fontSize:o,fontFamily:r});if(!E){const e=document.createElement("canvas");E=e.getContext("2d")}E.save(),E.font=i;const{width:a,actualBoundingBoxAscent:l,actualBoundingBoxDescent:d}=E.measureText(e);E.restore();const c=l+d;return{width:a,height:c}},A=({italic:e,bold:t,fontSize:n,fontFamily:o})=>`${e?"italic ":""} ${t?"bold ":""} ${n}px ${o} `,N=function(e,t){let n=!1,o=null,r=()=>{n=!1,t?e.call(t):e()};if("undefined"!==typeof MutationObserver){let e=1,t=new MutationObserver(r),n=document.createTextNode(e);t.observe(n,{characterData:!0}),o=function(){e=(e+1)%2,n.data=e}}else o=setTimeout;return function(){n||(n=!0,o(r,0))}},S=(e,t)=>{let n=e.elRect,{scaleX:o,scaleY:r,translateX:i,translateY:a}=e.draw.transform(),{left:l,top:d,width:c,height:s}=t,u=(l+c)*o+i,m=(d+s)*r+a;l=l*o+i,d=d*r+a;let p=0,h=0;return l<0&&(p=-l),u>n.width&&(p=-(u-n.width)),d<0&&(h=-d),m>n.height&&(h=-(m-n.height)),{isOuter:0!==p||0!==h,offsetLeft:p,offsetTop:h}};let L=null;const x=e=>(L||(L=document.createElement("div")),L.innerHTML=e,L.textContent),k=e=>new Promise((t,n)=>{let o=new FileReader;o.onload=e=>{t(e.target.result)},o.onerror=e=>{n(e)},o.readAsDataURL(e)});const R=e=>new Promise(t=>{let n=new Image;n.src=e,n.onload=()=>{t({width:n.width,height:n.height})},n.onerror=()=>{t({width:0,height:0})}}),I=()=>Object(o["a"])(),C=e=>new Promise((t,n)=>{let o=new FileReader;o.readAsDataURL(e),o.onload=async e=>{let n=e.target.result,o=await R(n);t({url:n,size:o})},o.onerror=e=>{n(e)}}),F=e=>([["&nbsp;","&#160;"]].forEach(t=>{e=e.replaceAll(t[0],t[1])}),e),_=e=>Object.prototype.toString.call(e).slice(8,-1),M=e=>null===e||void 0===e||""===e,D=e=>e.replaceAll(/(<[^\s]+)\s+style=["'][^'"]+["']\s*(>)/g,"$1$2");let P=null;const U=(e,t,n)=>{P||(P=document.createElement("div")),P.innerHTML=e;let o=e=>{let r=e.childNodes;r.forEach(e=>{1===e.nodeType&&(e.tagName.toLowerCase()===t?e.style.cssText=n:o(e))})};return o(P),P.innerHTML};let z=null;const H=e=>{z||(z=document.createElement("div")),z.innerHTML=e;for(let t=z.childNodes,n=t.length;n--;)if(1==t[n].nodeType)return!0;return!1};let B=null;const G=(e,t,n)=>{B||(B=document.createElement("div")),B.innerHTML=e;let o=e=>{let r=e.childNodes;r.forEach(r=>{1===r.nodeType?o(r):3===r.nodeType&&e.replaceChild(document.createTextNode(r.nodeValue.replaceAll(t,n)),r)})};return o(B),B.innerHTML};const j=e=>(e=String(e).replaceAll(/\s+/g,""),["#fff","#ffffff","#FFF","#FFFFFF","rgb(255,255,255)"].includes(e)||/rgba\(255,255,255,[^)]+\)/.test(e)),Y=e=>(e=String(e).replaceAll(/\s+/g,""),["","transparent"].includes(e)||/rgba\(\d+,\d+,\d+,0\)/.test(e)),W=e=>{let{lineColor:t,root:n,second:o,node:r}=e,i=[t,n.fillColor,n.color,o.fillColor,o.color,r.fillColor,r.color,n.borderColor,o.borderColor,r.borderColor];for(let a=0;a<i.length;a++){let e=i[a];if(!Y(e)&&!j(e))return e}},q=e=>{const t=e=>{const n=e.childNodes;n.forEach(e=>{1===e.nodeType&&(e.classList.contains("ql-formula")?e.parentNode.removeChild(e):t(e))})};t(e)};let Z=null;const $=e=>{Z||(Z=document.createElement("div")),Z.innerHTML=e;const t=Z.childNodes;let n="";for(let o=0;o<t.length;o++){const e=t[o];1===e.nodeType?(q(e),"p"===e.tagName.toLowerCase()?n+=e.textContent+"\n":n+=e.textContent):3===e.nodeType&&(n+=e.nodeValue)}return n.replace(/\n$/,"")};let J=null;const V=e=>{J||(J=document.createElement("div")),J.innerHTML=e;const t=J.childNodes;let n=[],o="";for(let r=0;r<t.length;r++){const e=t[r];1===e.nodeType?"br"===e.tagName.toLowerCase()?(n.push(o),o=""):o+=e.textContent:3===e.nodeType&&(o+=e.nodeValue)}return o&&n.push(o),n.map(e=>`<p><span>${he(e)}</span></p>`).join("")};let K=null;const X=e=>{K||(K=document.createElement("div")),K.innerHTML=e;const t=K.querySelectorAll(".ql-formula");Array.from(t).forEach(e=>{const t=document.createTextNode("$smmformula$");e.parentNode.replaceChild(t,e)});const n=K.childNodes;let o=[];for(let r=0;r<n.length;r++){const e=n[r];1===e.nodeType?o.push(e.textContent):3===e.nodeType&&o.push(e.nodeValue)}if(e=o.map(e=>`<p><span>${he(e)}</span></p>`).join(""),t.length>0){e=e.replace(/\$smmformula\$/g,'<span class="smmformula"></span>'),K.innerHTML=e;const n=K.querySelectorAll(".smmformula");Array.from(n).forEach((e,n)=>{e.parentNode.replaceChild(t[n],e)}),e=K.innerHTML}return e},Q=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),ee=(e,t)=>{const n={};return Object.keys(t).forEach(o=>{const r=e[o],i=t[o];if(_(r)===_(i)){if("Object"===_(r)){if(JSON.stringify(r)!==JSON.stringify(i))return void(n[o]=i)}else if(r!==i)return void(n[o]=i)}else n[o]=i}),n},te=e=>!/^_/.test(e)&&!r["g"].includes(e),ne=e=>e.reduce((e,t)=>{const n=e.find(e=>e.type===t.type);return n?t.list.forEach(e=>{const t=n.list.find(t=>t.name===e.name);t?t.icon=e.icon:n.list.push(e)}):e.push({...t}),e},[]),oe=e=>{let t=[];return e.forEach(n=>{e.find(e=>e.uid!==n.uid&&e.isAncestor(n))||t.push(n)}),t},re=e=>{const t={},n={};e.forEach(e=>{const o=e.parent;if(o){const r=o.uid;n[r]=o;const i=e.getIndexInBrothers(),a={node:e,index:i};t[r]?t[r].find(e=>e.index===a.index)||t[r].push(a):t[r]=[a]}});const o=[];return Object.keys(t).forEach(e=>{if(t[e].length>1){const r=t[e].map(e=>e.index).sort((e,t)=>e-t);o.push({node:n[e],range:[r[0],r[r.length-1]]})}else o.push({node:t[e][0].node})}),o},ie=(e,t,n,o,r,i,a,l)=>t>r&&i>e&&o>a&&l>n,ae=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),n.collapse(),t.removeAllRanges(),t.addRange(n)},le=e=>{let t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),t.removeAllRanges(),t.addRange(n)},de=(e,t={})=>{const n=e=>{e.forEach(e=>{e.data={...e.data,...t},e.children&&e.children.length>0&&n(e.children)})};return n(e),e},ce=(e,t=!1,n=null)=>{const o=e=>{e.forEach(e=>{e.data||(e.data={}),(t||M(e.data.uid))&&(e.data.uid=I()),n&&n(e),e.children&&e.children.length>0&&o(e.children)})};return o(e),e},se=e=>e?Array.isArray(e)?e:[e]:[],ue=e=>e.parent?e.parent.nodeData.children.findIndex(t=>t.data.uid===e.uid):0,me=(e,t)=>t.findIndex(t=>t.uid===e.uid),pe=e=>{let t=0;for(let r=0;r<e.length;r++)t=e.charCodeAt(r)+((t<<5)-t);const n=new i(t),o=n.genrand_int32()%360;return"hsla("+o+", 50%, 50%, 1)"},he=e=>([["&","&amp;"],["<","&lt;"],[">","&gt;"]].forEach(t=>{e=e.replace(new RegExp(t[0],"g"),t[1])}),e),fe=(e,t)=>{const n=_(e);if(n!==_(t))return!1;if("Object"===n){const n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(let r=0;r<n.length;r++){const i=n[r];if(!o.includes(i))return!1;const a=fe(e[i],t[i]);if(!a)return!1}return!0}if("Array"===n){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){const o=e[n],r=t[n],i=_(o),a=_(r);if(i!==a)return!1;const l=fe(o,r);if(!l)return!1}return!0}return e===t},ge=e=>{navigator.clipboard&&navigator.clipboard.writeText(JSON.stringify(e))},Te=async()=>{let e=null,t=null;if(navigator.clipboard){e=await navigator.clipboard.readText();const n=await navigator.clipboard.read();if(n&&n.length>0)for(const e of n)for(const n of e.types)if(/^image\//.test(n)){t=await e.getType(n);break}}return{text:e,img:t}},ve=e=>{if(!e||!e.parent)return;const t=ue(e);-1!==t&&e.parent.nodeData.children.splice(t,1)},ye=e=>(r["h"].forEach(t=>{e=e.replaceAll(new RegExp(`<${t}([^>]*)>`,"g"),`<${t} $1 />`)}),e),we=(e,t)=>{if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!t.find(t=>t.uid===e[n].uid))return!1;return!0},Oe=()=>{const e=navigator.userAgent.match(/\s+Chrome\/(.*)\s+/);return e&&e[1]?Number.parseFloat(e[1]):""},Ee=e=>({simpleMindMap:!0,data:e}),be=e=>{let t=null;if("string"===typeof e)try{const n=JSON.parse(e);"object"===typeof n&&n.simpleMindMap&&(t=n.data)}catch(o){}else"object"===typeof e&&e.simpleMindMap&&(t=e.data);const n=!!t;return{isSmm:n,data:n?t:String(e)}},Ae=(e,t)=>{e.preventDefault();const n=window.getSelection();if(!n.rangeCount)return;n.deleteFromDocument(),t=t||e.clipboardData.getData("text"),t=x(t),t=t.replaceAll(/\n/g,"");const o=document.createTextNode(t);n.getRangeAt(0).insertNode(o),n.collapseToEnd()},Ne=e=>{const t={},n=(e,o)=>{const r=e.data.uid;o&&o.children.push(r),t[r]={isRoot:!o,data:{...e.data},children:[]},e.children&&e.children.length>0&&e.children.forEach(e=>{n(e,t[r])})};return n(e,null),t},Se=(e,t,n,o)=>Math.sqrt(Math.pow(e-n,2)+Math.pow(t-o,2)),Le=(e,t)=>{const n=e.x+e.width/2,o=e.y+e.height/2,r=t.x+t.width/2,i=t.y+t.height/2;return n<r&&o<i?"left-top":n>r&&o<i?"right-top":n>r&&o>i?"right-bottom":n<r&&o>i?"left-bottom":n<r&&o===i?"left":n>r&&o===i?"right":n===r&&o<i?"top":n===r&&o>i?"bottom":"overlap"},xe=({addContentToHeader:e,addContentToFooter:t})=>{const n=[];let o=null,r=0,i=null,a=0;const l=(e,t)=>{if("function"===typeof e){const o=e();if(!o)return;const{el:r,cssText:i,height:a}=o;if(r instanceof HTMLElement){Pe(r);const e=Me({el:r,height:a});t(e,a)}i&&n.push(i)}};return l(e,(e,t)=>{o=e,r=t}),l(t,(e,t)=>{i=e,a=t}),{cssTextList:n,header:o,headerHeight:r,footer:i,footerHeight:a}},ke=(e,t=0,n=0,o=0,r=0,i=!1,a=!1)=>{let l=1/0,d=-1/0,c=1/0,s=-1/0;const u=(e,t)=>{if((!t||!i)&&e.group)try{const{x:t,y:n,width:o,height:r}=e.group.findOne(".smm-node-shape").rbox();t<l&&(l=t),t+o>d&&(d=t+o),n<c&&(c=n),n+r>s&&(s=n+r)}catch(n){}!a&&e._generalizationList.length>0&&e._generalizationList.forEach(e=>{u(e.generalizationNode)}),e.children&&e.children.forEach(e=>{u(e)})};return u(e,!0),l=l-t+o,c=c-n+r,d=d-t+o,s=s-n+r,{left:l,top:c,width:d-l,height:s-c}},Re=(e,t=0,n=0,o=0,r=0)=>{let i=1/0,a=-1/0,l=1/0,d=-1/0;return e.forEach(e=>{const{left:c,top:s,width:u,height:m}=ke(e,t,n,o,r,!1,!0);c<i&&(i=c),c+u>a&&(a=c+u),s<l&&(l=s),s+m>d&&(d=s+m)}),{left:i,top:l,width:a-i,height:d-l}},Ie=()=>document.documentElement.requestFullScreen?"fullscreenchange":document.documentElement.webkitRequestFullScreen?"webkitfullscreenchange":document.documentElement.mozRequestFullScreen?"mozfullscreenchange":document.documentElement.msRequestFullscreen?"msfullscreenchange":void 0,Ce=Ie(),Fe=e=>{e.requestFullScreen?e.requestFullScreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()},_e=()=>{document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen&&document.mozCancelFullScreen()},Me=({el:e,width:t,height:n})=>{const o=new a["c"];return void 0!==t&&o.width(t),void 0!==n&&o.height(n),o.add(e),o},De=e=>{const t=e.generalization;return t?Array.isArray(t)?t:[t]:[]},Pe=e=>{e.setAttribute("xmlns","http://www.w3.org/1999/xhtml")},Ue=e=>(e=[...e],e.sort((e,t)=>e.sortIndex-t.sortIndex),e)},"365c":function(e,t,n){"use strict";n.d(t,"a",(function(){return m})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"f",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"g",(function(){return T})),n.d(t,"c",(function(){return v}));var o=n("5848"),r=n("1e42"),i=n("2b0e"),a=n("c0d6");const l="SIMPLE_MIND_MAP_DATA",d="SIMPLE_MIND_MAP_LANG",c="SIMPLE_MIND_MAP_LOCAL_CONFIG";let s=null;const u=(e,t)=>t?(e.data=Object(r["qb"])(t.data),e.children=[],t.children&&t.children.length>0&&t.children.forEach((t,n)=>{e.children[n]=u({},t)}),e):null,m=()=>{if(window.takeOverApp)return s=window.takeOverAppMethods.getMindMapData(),s;if(a["a"].state.isHandleLocalFile)return i["default"].prototype.getCurrentData();let e=localStorage.getItem(l);if(null===e)return Object(r["qb"])(o["a"]);try{return JSON.parse(e)}catch(t){return Object(r["qb"])(o["a"])}},p=e=>{try{let t=null;if(t=window.takeOverApp?s:m(),t.root=u({},e),window.takeOverApp)return s=t,void window.takeOverAppMethods.saveMindMapData(t);if(i["default"].prototype.$bus.$emit("write_local_file",t),a["a"].state.isHandleLocalFile)return;let n=JSON.stringify(t);localStorage.setItem(l,n)}catch(t){console.log(t)}},h=e=>{try{let t=null;if(t=window.takeOverApp?s:m(),t={...t,...e},window.takeOverApp)return s=t,void window.takeOverAppMethods.saveMindMapData(t);if(i["default"].prototype.$bus.$emit("write_local_file",t),a["a"].state.isHandleLocalFile)return;let n=JSON.stringify(t);localStorage.setItem(l,n)}catch(t){console.log(t)}},f=e=>{window.takeOverApp?window.takeOverAppMethods.saveLanguage(e):localStorage.setItem(d,e)},g=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLanguage()||"zh";let e=localStorage.getItem(d);return e||(f("zh"),"zh")},T=e=>{if(window.takeOverApp)return window.takeOverAppMethods.saveLocalConfig(e);localStorage.setItem(c,JSON.stringify(e))},v=()=>{if(window.takeOverApp)return window.takeOverAppMethods.getLocalConfig();let e=localStorage.getItem(c);return e?JSON.parse(e):null}},"36f1":function(e,t,n){"use strict";n("d82e")},4013:function(e,t,n){"use strict";n.d(t,"i",(function(){return o})),n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return d})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"h",(function(){return u}));const o=[{name:"默认",value:"default",dark:!1},{name:"暗色2",value:"dark2",dark:!0},{name:"天清绿",value:"skyGreen",dark:!1},{name:"脑图经典2",value:"classic2",dark:!1},{name:"脑图经典3",value:"classic3",dark:!1},{name:"经典绿",value:"classicGreen",dark:!1},{name:"经典蓝",value:"classicBlue",dark:!1},{name:"天空蓝",value:"blueSky",dark:!1},{name:"脑残粉",value:"brainImpairedPink",dark:!1},{name:"暗色",value:"dark",dark:!0},{name:"泥土黄",value:"earthYellow",dark:!1},{name:"清新绿",value:"freshGreen",dark:!1},{name:"清新红",value:"freshRed",dark:!1},{name:"浪漫紫",value:"romanticPurple",dark:!1},{name:"粉红葡萄",value:"pinkGrape",dark:!1},{name:"薄荷",value:"mint",dark:!1},{name:"金色vip",value:"gold",dark:!1},{name:"活力橙",value:"vitalityOrange",dark:!1},{name:"绿叶",value:"greenLeaf",dark:!1},{name:"脑图经典",value:"classic",dark:!0},{name:"脑图经典4",value:"classic4",dark:!1},{name:"小黄人",value:"minions",dark:!1},{name:"简约黑",value:"simpleBlack",dark:!1},{name:"课程绿",value:"courseGreen",dark:!1},{name:"咖啡",value:"coffee",dark:!1},{name:"红色精神",value:"redSpirit",dark:!1},{name:"黑色幽默",value:"blackHumour",dark:!0},{name:"深夜办公室",value:"lateNightOffice",dark:!0},{name:"黑金",value:"blackGold",dark:!0},{name:"牛油果",value:"avocado",dark:!1},{name:"秋天",value:"autumn",dark:!1},{name:"橙汁",value:"orangeJuice",dark:!0}],r={CHANGE_THEME:"changeTheme",CHANGE_LAYOUT:"changeLayout",SET_DATA:"setData",TRANSFORM_TO_NORMAL_NODE:"transformAllNodesToNormalNode",MODE:{READONLY:"readonly",EDIT:"edit"},LAYOUT:{LOGICAL_STRUCTURE:"logicalStructure",LOGICAL_STRUCTURE_LEFT:"logicalStructureLeft",MIND_MAP:"mindMap",ORGANIZATION_STRUCTURE:"organizationStructure",CATALOG_ORGANIZATION:"catalogOrganization",TIMELINE:"timeline",TIMELINE2:"timeline2",FISHBONE:"fishbone",VERTICAL_TIMELINE:"verticalTimeline"},DIR:{UP:"up",LEFT:"left",DOWN:"down",RIGHT:"right"},KEY_DIR:{LEFT:"Left",UP:"Up",RIGHT:"Right",DOWN:"Down"},SHAPE:{RECTANGLE:"rectangle",DIAMOND:"diamond",PARALLELOGRAM:"parallelogram",ROUNDED_RECTANGLE:"roundedRectangle",OCTAGONAL_RECTANGLE:"octagonalRectangle",OUTER_TRIANGULAR_RECTANGLE:"outerTriangularRectangle",INNER_TRIANGULAR_RECTANGLE:"innerTriangularRectangle",ELLIPSE:"ellipse",CIRCLE:"circle"},MOUSE_WHEEL_ACTION:{ZOOM:"zoom",MOVE:"move"},INIT_ROOT_NODE_POSITION:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom",CENTER:"center"},LAYOUT_GROW_DIR:{LEFT:"left",TOP:"top",RIGHT:"right",BOTTOM:"bottom"},PASTE_TYPE:{CLIP_BOARD:"clipBoard",CANVAS:"canvas"},SCROLL_BAR_DIR:{VERTICAL:"vertical",HORIZONTAL:"horizontal"},CREATE_NEW_NODE_BEHAVIOR:{DEFAULT:"default",NOT_ACTIVE:"notActive",ACTIVE_ONLY:"activeOnly"},TAG_POSITION:{RIGHT:"right",BOTTOM:"bottom"}},i={[r.INIT_ROOT_NODE_POSITION.LEFT]:0,[r.INIT_ROOT_NODE_POSITION.TOP]:0,[r.INIT_ROOT_NODE_POSITION.RIGHT]:1,[r.INIT_ROOT_NODE_POSITION.BOTTOM]:1,[r.INIT_ROOT_NODE_POSITION.CENTER]:.5},a=[{name:"逻辑结构图",value:r.LAYOUT.LOGICAL_STRUCTURE},{name:"向左逻辑结构图",value:r.LAYOUT.LOGICAL_STRUCTURE_LEFT},{name:"思维导图",value:r.LAYOUT.MIND_MAP},{name:"组织结构图",value:r.LAYOUT.ORGANIZATION_STRUCTURE},{name:"目录组织图",value:r.LAYOUT.CATALOG_ORGANIZATION},{name:"时间轴",value:r.LAYOUT.TIMELINE},{name:"时间轴2",value:r.LAYOUT.TIMELINE2},{name:"竖向时间轴",value:r.LAYOUT.VERTICAL_TIMELINE},{name:"鱼骨图",value:r.LAYOUT.FISHBONE}],l=[r.LAYOUT.LOGICAL_STRUCTURE,r.LAYOUT.LOGICAL_STRUCTURE_LEFT,r.LAYOUT.MIND_MAP,r.LAYOUT.CATALOG_ORGANIZATION,r.LAYOUT.ORGANIZATION_STRUCTURE,r.LAYOUT.TIMELINE,r.LAYOUT.TIMELINE2,r.LAYOUT.VERTICAL_TIMELINE,r.LAYOUT.FISHBONE],d=["text","image","imageTitle","imageSize","icon","tag","hyperlink","hyperlinkTitle","note","expand","isActive","generalization","richText","resetRichText","uid","activeStyle","associativeLineTargets","associativeLineTargetControlOffsets","associativeLinePoint","associativeLineText","attachmentUrl","attachmentName","notation","outerFrame","number","range"],c={READ_CLIPBOARD_ERROR:"read_clipboard_error",PARSE_PASTE_DATA_ERROR:"parse_paste_data_error",CUSTOM_HANDLE_CLIPBOARD_TEXT_ERROR:"custom_handle_clipboard_text_error",LOAD_CLIPBOARD_IMAGE_ERROR:"load_clipboard_image_error",BEFORE_TEXT_EDIT_ERROR:"before_text_edit_error",EXPORT_ERROR:"export_error",EXPORT_LOAD_IMAGE_ERROR:"export_load_image_error",DATA_CHANGE_DETAIL_EVENT_ERROR:"data_change_detail_event_error"},s="\n /* 鼠标hover和激活时渲染的矩形 */\n .smm-hover-node{\n display: none;\n opacity: 0.6;\n stroke-width: 1;\n }\n\n .smm-node:not(.smm-node-dragging):hover .smm-hover-node{\n display: block;\n }\n\n .smm-node.active .smm-hover-node, .smm-node-highlight .smm-hover-node{\n display: block;\n opacity: 1;\n stroke-width: 2;\n }\n",u=["img","br","hr","input","link","meta","area"]},"41cb":function(e,t,n){"use strict";var o=n("2b0e"),r=n("8c4f");o["default"].use(r["a"]);const i=[{path:"/",name:"Edit",component:()=>n.e("chunk-71a7cb59").then(n.bind(null,"5fca"))},{path:"/index",redirect:"/"}],a=new r["a"]({routes:i});t["a"]=a},"56d7":function(e,t,n){"use strict";n.r(t);var o=n("2b0e"),r=function(){var e=this,t=e._self._c;return t("div",{attrs:{id:"app"}},[t("router-view")],1)},i=[],a={name:"App",components:{}},l=a,d=(n("36f1"),n("2877")),c=Object(d["a"])(l,r,i,!1,null,null,null),s=c.exports,u=n("41cb"),m=n("c0d6"),p=n("5c96"),h=n.n(p),f=(n("0fae"),n("9c65"),n("0808"),n("c71c")),g=n("9225"),T=n("365c");o["default"].config.productionTip=!1;const v=new o["default"];o["default"].prototype.$bus=v,o["default"].use(h.a),o["default"].use(f["a"]);const y=()=>{g["a"].locale=Object(T["b"])(),new o["default"]({render:e=>e(s),router:u["a"],store:m["a"],i18n:g["a"]}).$mount("#app")};window.takeOverApp?(window.initApp=y,window.$bus=v):y()},5848:function(e,t,n){"use strict";const o=()=>({image:"/enJFNMHnedQTYTESGfDkctCp2.jpeg",imageTitle:"图片名称",imageSize:{width:1e3,height:563},icon:["priority_1"],tag:["标签1","标签2"],hyperlink:"http://lxqnsys.com/",hyperlinkTitle:"理想青年实验室",note:"理想青年实验室\n一个有意思的角落"}),r=(o(),o(),{root:{data:{text:"根节点"},children:[{data:{text:"二级节点",generalization:{text:"概要"}},children:[{data:{text:"分支主题"},children:[]},{data:{text:"分支主题"},children:[]}]}]}});t["a"]={...r,theme:{template:"classic4",config:{}},layout:"logicalStructure",config:{}}},9225:function(e,t,n){"use strict";var o=n("2b0e"),r=n("a925"),i={baseStyle:{title:"BaseStyle",background:"Background",color:"Color",image:"Image",imageRepeat:"Image repeat",imagePosition:"Image position",imageSize:"Image size",line:"Line",width:"Width",style:"Style",lineRadius:"Radius",lineOfOutline:"Line of outline",showArrow:"Is show arrow",nodePadding:"Node padding",nodeMargin:"Node margin",horizontal:"Horizontal",vertical:"Vertical",maximumWidth:"Max width",maximumHeight:"Max height",icon:"Icon",size:"Size",level2Node:"Level2 node",belowLevel2Node:"Below level2 node",nodeBorderType:"Node border style",nodeUseLineStyle:"Use only has bottom border style",otherConfig:"Other config",enableFreeDrag:"Enable node free drag(Beta)",openPerformance:"Enable performance mode",watermark:"Watermark",showWatermark:"Is show watermark",onlyExport:"Only export",watermarkDefaultText:"Watermark text",watermarkText:"Watermark text",watermarkTextColor:"Text color",watermarkLineSpacing:"Line spacing",watermarkTextSpacing:"Text spacing",watermarkAngle:"Angle",watermarkTextOpacity:"Text opacity",watermarkTextFontSize:"Font size",belowNode:"Display below nodes",isEnableNodeRichText:"Enable node rich text editing",mousewheelAction:"Mouse wheel behavior",zoomView:"Zoom view",moveViewUpDown:"Move view up and down",associativeLine:"Associative line",associativeLineWidth:"Width",associativeLineColor:"Color",associativeLineActiveWidth:"Active width",associativeLineActiveColor:"Active color",mousewheelZoomActionReverse:"Mouse Wheel Zoom",mousewheelZoomActionReverse1:"Zoom out forward and zoom in back",mousewheelZoomActionReverse2:"Zoom in forward and zoom out back",createNewNodeBehavior:"Behavior of creating new node",default:"Active new node and editing",notActive:"Not active new node",activeOnly:"Only active new node but not editing",rootStyle:"Root Node",associativeLineText:"Associative line text",fontFamily:"Font family",fontSize:"Font size",isShowScrollbar:"Is show scrollbar",isUseHandDrawnLikeStyle:"Is use hand drawn like style",rootLineStartPos:"Root line start pos",center:"Center",edge:"Edge",rainbowLines:"Rainbow lines",notUseRainbowLines:"Not use rainbow lines",outerFramePadding:"Outer frame padding"},color:{moreColor:"More color"},contextmenu:{insertSiblingNode:"Insert sibling node",insertChildNode:"Insert child node",insertParentNode:"Insert parent node",insertSummary:"Insert summary",moveUpNode:"Move up node",moveDownNode:"Move down node",deleteNode:"Delete node",deleteCurrentNode:"Only del cur node",copyNode:"Copy node",cutNode:"Cut node",pasteNode:"Paste node",backCenter:"Back root node",expandAll:"Expand all",unExpandAll:"Un expand all",expandTo:"Expand to",arrangeLayout:"Arrange layout",level1:"Level1",level2:"Level2",level3:"Level3",level4:"Level4",level5:"Level5",level6:"Level6",zenMode:"Zen mode",fitCanvas:"Fit canvas",removeImage:"Remove image",removeHyperlink:"Remove hyperlink",removeNote:"Remove note",removeCustomStyles:"Remove custom styles",removeAllNodeCustomStyles:"Remove all node custom styles",exportNodeToPng:"Export node to png",copyToClipboard:"Copy to clipboard",copyToSmm:"SMM",copyToJson:"JSON",copyToMarkdown:"Markdown",copyToTxt:"Txt",copyToPng:"Png",copySuccess:"Copy success",copyFail:"Copy fail",number:"Number child nodes"},count:{words:"Words",nodes:"Nodes"},dialog:{cancel:"Cancel",confirm:"Confirm"},export:{title:"Export",filename:"Filename",include:"Is include config like theme and structure",dedicatedFile:"Dedicated file",jsonFile:"json file",imageFile:"Image file",svgFile:"svg file",pdfFile:"pdf file",markdownFile:"markdown file",tips:"tips: .smm and .json file can be import",isTransparent:"Background is transparent",pngTips:"tips: Exporting pictures in rich text mode is time-consuming. It is recommended to export to svg format",svgTips:"tips: Exporting pictures in rich text mode is time-consuming",transformingDomToImages:"Converting nodes: ",notifyTitle:"Info",notifyMessage:"If the download is not triggered, check whether it is blocked by the browser",paddingX:"Padding x",paddingY:"Padding y",useMultiPageExport:"Export multi page",defaultFileName:"Mind map",addFooterTextPlaceholder:"For example: From simple-mind-map",addFooterText:"Add text at the footer"},fullscreen:{fullscreenShow:"Full screen show",fullscreenEdit:"Full screen edit"},demonstrate:{demonstrate:"Enter demonstration mode"},import:{title:"Import",selectFile:"Select file",supportFile:"Support .smm、.json、.xmind、.xlsx、.md file",enableFileTip:"Please select .smm、.json、.xmind、.xlsx、.md file",maxFileNum:"At most one file can be selected",notSelectTip:"Please select the file to import",fileContentError:"The file content is incorrect",importSuccess:"Import success",fileParsingFailed:"File parsing failed",xmindCanvasSelectDialogTitle:"Select the canvas to import"},navigatorToolbar:{openMiniMap:"Open mini map",closeMiniMap:"Close mini map",readonly:"Change to eadonly",edit:"Change to edit",backToRoot:"Back to root node",changeSourceCodeEdit:"Switch to source code editing mode"},nodeHyperlink:{title:"Link",link:"Href",name:"Name"},nodeIcon:{title:"Icon"},nodeImage:{title:"Image",imgTitle:"Title"},nodeNote:{title:"Note"},nodeTag:{title:"Tag",addTip:"Press Enter to add"},outline:{title:"Outline",nodeDefaultText:"Branch node"},scale:{zoomIn:"Zoom in",zoomOut:"Zoom out"},shortcutKey:{title:"Shortcut key"},strusture:{title:"Strusture"},style:{title:"Node style",normal:"Normal",active:"Active",text:"Text",fontFamily:"Font family",fontSize:"Font size",lineHeight:"Line height",color:"color",addFontWeight:"add font weight",italic:"Italic",textDecoration:"Text decoration",underline:"Underline",none:"None",lineThrough:"Line through",overline:"Overline",border:"Border",style:"Style",width:"Width",borderRadius:"Border radius",background:"Background",shape:"Shape",line:"Line",nodePadding:"Node padding",horizontal:"Horizontal",vertical:"Vertical",gradientStyle:"Gradient",startColor:"Start",endColor:"End",arrowDir:"Arrow dir",arrowDirStart:"Start",arrowDirEnd:"End"},theme:{title:"Theme",classics:"Classics",dark:"Darkness",simple:"Simple",coverTip:"You have currently customized the basic style, do you want to overwrite it?",tip:"Tip",cover:"Cover",reserve:"Reserve"},toolbar:{undo:"Undo",redo:"Redo",insertSiblingNode:"Sibling node",insertChildNode:"Child node",deleteNode:"Delete node",image:"Image",icon:"Icon",link:"Link",note:"Note",tag:"Tag",summary:"Summary",displayOutline:"Display outline",baseStyle:"Base style",theme:"Theme",strusture:"Strusture",newFile:"New file",openFile:"Open file",saveAs:"Save as",import:"Import",export:"Export",shortcutKey:"Shortcut key",associativeLine:"Associative line",painter:"Painter",formula:"Formula",attachment:"Attachment",outerFrame:"Outer frame",more:"More",selectFileTip:"Please select a file",notSupportTip:"Your browser does not support this feature, or the current page is not using the HTTPS protocol",tip:"Tip",editingLocalFileTipFront:"Currently editing your local【",editingLocalFileTipEnd:"】file",fileContentError:"File content error",fileOpenFailed:"File open failed",defaultFileName:"Mind map",creatingTip:"Creating file",directory:"Directory",newFileTip:"Please export the currently edited file before creating a new one, Beware of content loss",openFileTip:"Please export the currently edited file before opening it, Beware of content loss"},edit:{newFeatureNoticeTitle:"New feature reminder",newFeatureNoticeMessage:"This update supports node rich text editing, But there are some defects, The most important impact is that the time to export the image is proportional to the number of nodes, Therefore, if you are more dependent on export requirements, you can use【Base style】-【Other config】-【Enable node rich text editing】Set to turn off rich text editing mode.",root:"Root node",splitByWrap:"Is automatically split nodes based on line breaks?",tip:"Tip",yes:"Yes",no:"No",exportError:"Export failed",dragTip:"Release here to import the file"},mouseAction:{tip1:"Current: Left click to drag the canvas, right click to box select nodes",tip2:"Current: Left click to box select nodes, right click to drag the canvas"},search:{searchPlaceholder:"Please enter the search content",replacePlaceholder:"Please enter replacement content",replace:"Replace",replaceAll:"Replace all",cancel:"Cancel"},nodeIconSidebar:{title:"Icon/Sticker",icon:"Icon",sticker:"Sticker"},formulaSidebar:{title:"Formula",placeholder:"Please enter LaTeX syntax",confirm:"Confirm",common:"Common formulas",tip:"Inserting formulas is not supported in non rich text mode"},richTextToolbar:{bold:"Bold",italic:"Italic",underline:"Underline",strike:"Strike",fontFamily:"Font family",fontSize:"Font size",color:"Color",backgroundColor:"Background color",removeFormat:"Clear Style"},other:{loading:"Loading, please wait..."},sourceCodeEdit:{sourceCodeTip:"It is not recommended to modify the style in rich text mode because it requires synchronous modification of data and HTML structure.",format:"Format",copy:"Copy",confirm:"Complete",close:"Close",formatErrorTip:"The JSON format is incorrect. Please check and try again",copyTip:"Copied to clipboard",formatTip:"Format complete"},attachment:{deleteAttachment:"Delete attachment",tip:"The attachment function is only available on the client side"},annotation:{mark:"Mark",show:"Show mark",type:"Type",color:"Color",lineWidth:"Line width",padding:"Padding",animate:"Animate"},nodeOuterFrame:{outerFrameSetting:"Setting",deleteOuterFrame:"Delete outer frame",boxStyle:"Box style",boxColor:"Box color",fillColor:"Fill color"},nodeTagStyle:{placeholder:"Please enter the tag content",delete:"Delete this tag"}},a={baseStyle:{title:"基础样式",background:"背景",color:"颜色",image:"图片",imageRepeat:"图片重复",imagePosition:"图片位置",imageSize:"图片大小",line:"连线",width:"粗细",style:"风格",lineRadius:"圆角大小",lineOfOutline:"概要的连线",showArrow:"是否显示箭头",nodePadding:"节点内边距",nodeMargin:"节点外边距",horizontal:"水平",vertical:"垂直",maximumWidth:"显示的最大宽度",maximumHeight:"显示的最大高度",icon:"图标",size:"大小",level2Node:"二级节点",belowLevel2Node:"三级及以下节点",nodeBorderType:"节点边框风格",nodeUseLineStyle:"是否使用只有底边框的风格",otherConfig:"其他配置",enableFreeDrag:"是否开启节点自由拖拽",openPerformance:"开启性能模式(Beta)",watermark:"水印",showWatermark:"是否显示水印",watermarkDefaultText:"水印文字",onlyExport:"是否仅在导出时显示",watermarkText:"水印文字",watermarkTextColor:"文字颜色",watermarkLineSpacing:"水印行间距",watermarkTextSpacing:"水印文字间距",watermarkAngle:"旋转角度",watermarkTextOpacity:"文字透明度",watermarkTextFontSize:"文字字号",belowNode:"显示在节点下方",isEnableNodeRichText:"是否开启节点富文本编辑",mousewheelAction:"鼠标滚轮行为",zoomView:"缩放视图",moveViewUpDown:"上下移动视图",associativeLine:"关联线",associativeLineWidth:"粗细",associativeLineColor:"颜色",associativeLineActiveWidth:"激活粗细",associativeLineActiveColor:"激活颜色",mousewheelZoomActionReverse:"鼠标滚轮缩放",mousewheelZoomActionReverse1:"向前缩小向后放大",mousewheelZoomActionReverse2:"向前放大向后缩小",createNewNodeBehavior:"创建新节点的行为",default:"激活新节点及进入编辑",notActive:"不激活新节点",activeOnly:"只激活新节点,不进入编辑",rootStyle:"根节点",associativeLineText:"关联线文字",fontFamily:"字体",fontSize:"字号",isShowScrollbar:"是否显示滚动条",isUseHandDrawnLikeStyle:"是否开启手绘风格",rootLineStartPos:"根节点连线起始位置",center:"中心",edge:"边缘",rainbowLines:"彩虹线条",notUseRainbowLines:"不使用彩虹线条",outerFramePadding:"外框内边距"},color:{moreColor:"更多颜色"},contextmenu:{insertSiblingNode:"插入同级节点",insertChildNode:"插入子级节点",insertParentNode:"插入父节点",insertSummary:"插入概要",moveUpNode:"上移节点",moveDownNode:"下移节点",deleteNode:"删除节点",deleteCurrentNode:"仅删除当前节点",copyNode:"复制节点",cutNode:"剪切节点",pasteNode:"粘贴节点",backCenter:"回到根节点",expandAll:"展开所有",unExpandAll:"收起所有",expandTo:"展开到",arrangeLayout:"一键整理布局",level1:"一级主题",level2:"二级主题",level3:"三级主题",level4:"四级主题",level5:"五级主题",level6:"六级主题",zenMode:"禅模式",fitCanvas:"适应画布",removeImage:"移除图片",removeHyperlink:"移除超链接",removeNote:"移除备注",removeCustomStyles:"一键去除自定义样式",removeAllNodeCustomStyles:"一键去除所有节点自定义样式",exportNodeToPng:"导出该节点为图片",copyToClipboard:"复制到剪贴板",copyToSmm:"SMM",copyToJson:"JSON",copyToMarkdown:"Markdown",copyToTxt:"Txt",copyToPng:"图片",copySuccess:"复制成功",copyFail:"复制失败",number:"编号其子节点"},count:{words:"字数",nodes:"节点"},dialog:{cancel:"取 消",confirm:"确 定"},export:{title:"导出",filename:"导出文件名称",include:"是否包含主题、结构等配置数据",dedicatedFile:"专有文件",jsonFile:"json文件",imageFile:"图片文件",svgFile:"svg文件",pdfFile:"pdf文件",markdownFile:"markdown文件",tips:"tips.smm和.json文件可用于导入",isTransparent:"背景是否透明",pngTips:"tips富文本模式导出图片非常耗时建议导出为svg格式",svgTips:"tips富文本模式导出图片非常耗时",transformingDomToImages:"正在转换节点:",notifyTitle:"消息",notifyMessage:"如果没有触发下载,请检查是否被浏览器拦截了",paddingX:"水平内边距",paddingY:"垂直内边距",useMultiPageExport:"是否多页导出",defaultFileName:"思维导图",addFooterText:"底部添加文字",addFooterTextPlaceholder:"比如来自simple-mind-map"},fullscreen:{fullscreenShow:"全屏查看",fullscreenEdit:"全屏编辑"},demonstrate:{demonstrate:"进入演示模式"},import:{title:"导入",selectFile:"选取文件",supportFile:"支持.smm、.json、.xmind、.xlsx、.md文件",enableFileTip:"请选择.smm、.json、.xmind、.xlsx、.md文件",maxFileNum:"最多只能选择一个文件",notSelectTip:"请选择要导入的文件",fileContentError:"文件内容有误",importSuccess:"导入成功",fileParsingFailed:"文件解析失败",xmindCanvasSelectDialogTitle:"选择要导入的画布"},navigatorToolbar:{openMiniMap:"开启小地图",closeMiniMap:"关闭小地图",readonly:"切换为只读模式",edit:"切换为编辑模式",backToRoot:"回到根节点",changeSourceCodeEdit:"切换为源码编辑模式"},nodeHyperlink:{title:"超链接",link:"链接",name:"名称"},nodeIcon:{title:"图标"},nodeImage:{title:"图片",imgTitle:"图片标题"},nodeNote:{title:"备注"},nodeTag:{title:"标签",addTip:"请按回车键添加"},outline:{title:"大纲",nodeDefaultText:"分支节点"},scale:{zoomIn:"放大",zoomOut:"缩小"},shortcutKey:{title:"快捷键"},strusture:{title:"结构"},style:{title:"节点样式",normal:"常态",active:"选中状态",text:"文字",fontFamily:"字体",fontSize:"字号",lineHeight:"行高",color:"颜色",addFontWeight:"加粗",italic:"斜体",textDecoration:"划线",none:"无",underline:"下划线",lineThrough:"中划线",overline:"上划线",border:"边框",style:"样式",width:"宽度",borderRadius:"圆角",background:"背景",shape:"形状",line:"线条",nodePadding:"节点内边距",horizontal:"水平",vertical:"垂直",gradientStyle:"渐变",startColor:"起始",endColor:"结束",arrowDir:"箭头位置",arrowDirStart:"头部",arrowDirEnd:"尾部"},theme:{title:"主题",classics:"经典",dark:"深色",simple:"朴素",coverTip:"你当前自定义过基础样式,是否覆盖?",tip:"提示",cover:"覆盖",reserve:"保留"},toolbar:{undo:"回退",redo:"前进",insertSiblingNode:"同级节点",insertChildNode:"子节点",deleteNode:"删除节点",image:"图片",icon:"图标",link:"超链接",note:"备注",tag:"标签",summary:"概要",displayOutline:"显示大纲",baseStyle:"基础样式",theme:"主题",strusture:"结构",newFile:"新建",openFile:"打开",saveAs:"另存为",import:"导入",export:"导出",shortcutKey:"快捷键",associativeLine:"关联线",painter:"格式刷",formula:"公式",attachment:"附件",outerFrame:"外框",more:"更多",selectFileTip:"请选择文件",notSupportTip:"你的浏览器不支持该功能或者当前页面非https协议",tip:"提示",editingLocalFileTipFront:"当前正在编辑你本机的【",editingLocalFileTipEnd:"】文件",fileContentError:"文件内容有误",fileOpenFailed:"文件打开失败",defaultFileName:"思维导图",creatingTip:"正在创建文件",directory:"目录",newFileTip:"新建文件前请先导出当前编辑的文件,谨防内容丢失",openFileTip:"打开文件前请先导出当前编辑的文件,谨防内容丢失"},edit:{newFeatureNoticeTitle:"新特性提醒",newFeatureNoticeMessage:"本次更新支持了节点富文本编辑,但是存在一定缺陷,最主要的影响是导出为图片的时间和节点数量成正比,所以对导出需求比较依赖的话可以通过【基础样式】-【其他配置】-【是否开启节点富文本编辑】设置关掉富文本编辑模式。",root:"根节点",splitByWrap:"是否按换行自动分割节点?",tip:"提示",yes:"是",no:"否",exportError:"导出失败",dragTip:"在此释放以导入该文件"},mouseAction:{tip1:"当前:左键拖动画布,右键框选节点",tip2:"当前:左键框选节点,右键拖动画布"},search:{searchPlaceholder:"请输入查找内容",replacePlaceholder:"请输入替换内容",replace:"替换",replaceAll:"全部替换",cancel:"取消"},nodeIconSidebar:{title:"图标/贴纸",icon:"图标",sticker:"贴纸"},formulaSidebar:{title:"公式",placeholder:"请输入 LaTeX 语法",confirm:"完成",common:"常用公式",tip:"非富文本模式下不支持插入公式"},richTextToolbar:{bold:"加粗",italic:"斜体",underline:"下划线",strike:"删除线",fontFamily:"字体",fontSize:"字号",color:"字体颜色",backgroundColor:"背景颜色",removeFormat:"清除样式"},other:{loading:"正在加载,请稍后..."},sourceCodeEdit:{sourceCodeTip:"富文本模式下不建议修改样式因为需要同步修改数据及html结构。",format:"格式化",copy:"复制",confirm:"完成",close:"关闭",formatErrorTip:"JSON格式有误请检查后再试",copyTip:"已复制到剪贴板",formatTip:"格式化完成"},attachment:{deleteAttachment:"删除附件",tip:"附件功能仅在客户端可用"},annotation:{mark:"标记",show:"显示标记",type:"类型",color:"颜色",lineWidth:"线宽",padding:"内边距",animate:"开启动画"},nodeOuterFrame:{outerFrameSetting:"外框设置",deleteOuterFrame:"删除外框",boxStyle:"边框样式",boxColor:"边框颜色",fillColor:"填充颜色"},nodeTagStyle:{placeholder:"请输入标签内容",delete:"删除此标签"}},l={zh:a,en:i};o["default"].use(r["a"]);const d=new r["a"]({messages:l});t["a"]=d},"9c65":function(e,t,n){},c0d6:function(e,t,n){"use strict";var o=n("2b0e"),r=n("2f62"),i=n("5848"),a=n("365c");o["default"].use(r["a"]);const l=new r["a"].Store({state:{mindMapData:null,isHandleLocalFile:!1,localConfig:{isZenMode:!1,openNodeRichText:!0,useLeftKeySelectionRightKeyDrag:!1,isShowScrollbar:!1,isUseHandDrawnLikeStyle:!1,isDark:!1},activeSidebar:"",isOutlineEdit:!1,isReadonly:!1,isSourceCodeEdit:!1,extraTextOnExport:"",supportHandDrawnLikeStyle:!1,supportMark:!1,supportNumbers:!1,isDragOutlineTreeNode:!1},mutations:{setMindMapData(e,t){e.mindMapData=t},setIsHandleLocalFile(e,t){e.isHandleLocalFile=t},setLocalConfig(e,t){e.localConfig={...e.localConfig,...t},Object(a["g"])(e.localConfig)},setActiveSidebar(e,t){e.activeSidebar=t},setIsOutlineEdit(e,t){e.isOutlineEdit=t},setIsReadonly(e,t){e.isReadonly=t},setIsSourceCodeEdit(e,t){e.isSourceCodeEdit=t},setExtraTextOnExport(e,t){e.extraTextOnExport=t},setSupportHandDrawnLikeStyle(e,t){e.supportHandDrawnLikeStyle=t},setSupportMark(e,t){e.supportMark=t},setSupportNumbers(e,t){e.supportNumbers=t},setIsDragOutlineTreeNode(e,t){e.isDragOutlineTreeNode=t}},actions:{getUserMindMapData(e){try{let{data:t}={data:{data:{mindMapData:i["a"]}}};e.commit("setMindMapData",t.data)}catch(t){console.log(t)}}}});t["a"]=l},d82e:function(e,t,n){}});