UNPKG

58.3 kBJavaScriptView Raw
1!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.MindElixirLite=n():e.MindElixirLite=n()}(self,(()=>(()=>{var e={74:(e,n,t)=>{"use strict";t.d(n,{Z:()=>u});var i=t(81),o=t.n(i),a=t(645),r=t.n(a),s=t(667),c=t.n(s),l=new URL(t(848),t.b),d=new URL(t(295),t.b),h=r()(o()),p=c()(l),m=c()(d);h.push([e.id,".mind-elixir {\n --gap: 30px;\n --root-radius: 30px;\n --main-radius: 20px;\n --root-color: #ffffff;\n --root-bgcolor: #4c4f69;\n --main-color: #444446;\n --main-bgcolor: #ffffff;\n --topic-padding: 3px;\n --color: #777777;\n --bgcolor: #f6f6f6;\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;\n}\n.mind-elixir .hyper-link {\n text-decoration: none;\n}\n.map-container {\n user-select: none;\n height: 100%;\n width: 100%;\n overflow: scroll;\n font-size: 15px;\n}\n.map-container::-webkit-scrollbar {\n width: 0px;\n height: 0px;\n}\n.map-container .selected {\n box-shadow: 0 0 0 2px #4dc4ff;\n}\n.map-container .lhs {\n direction: rtl;\n}\n.map-container .lhs me-tpc {\n direction: ltr;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: transform 0.3s;\n transform: scale(1);\n background-color: var(--bgcolor);\n}\n.map-container .map-canvas me-root {\n position: absolute;\n padding: 10px var(--gap);\n color: var(--root-color);\n background-color: var(--root-bgcolor);\n border-radius: var(--root-radius);\n}\n.map-container .map-canvas me-root me-tpc {\n display: block;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas me-root me-tpc #input-box {\n padding: 10px var(--gap);\n}\n.map-container .main-node-container > me-wrapper {\n position: absolute;\n}\n.map-container .main-node-container > me-wrapper > me-parent {\n margin: var(--gap);\n background-color: var(--main-bgcolor);\n border: 2px solid var(--main-color);\n border-radius: var(--main-radius);\n padding: 0;\n}\n.map-container .main-node-container > me-wrapper > me-parent > me-tpc {\n border-radius: var(--main-radius);\n color: var(--main-color);\n padding: 8px var(--gap);\n}\n.map-container .main-node-container > me-wrapper > me-parent > me-tpc #input-box {\n padding: 8px var(--gap);\n}\n.map-container me-wrapper {\n display: block;\n pointer-events: none;\n}\n.map-container me-children,\n.map-container me-parent {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container me-parent {\n position: relative;\n cursor: pointer;\n padding: 6px var(--gap);\n margin-top: 10px;\n}\n.map-container me-parent me-tpc {\n position: relative;\n display: block;\n border-radius: 3px;\n color: var(--color);\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n padding: var(--topic-padding);\n line-height: 1.2;\n}\n.map-container me-parent me-tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container me-parent me-tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container me-parent me-tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container me-parent me-tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container me-parent me-tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container me-parent me-epd {\n position: absolute;\n height: 18px;\n width: 18px;\n opacity: 0.8;\n background-image: url("+p+");\n background-repeat: no-repeat;\n background-size: contain;\n background-position: center;\n pointer-events: all;\n z-index: 9;\n}\n.map-container me-parent me-epd.minus {\n background-image: url("+m+") !important;\n transition: opacity 0.3s;\n opacity: 0;\n}\n.map-container me-parent me-epd.minus:hover {\n opacity: 0.8;\n}\n.map-container .icon {\n width: 1em;\n height: 1em;\n vertical-align: -0.15em;\n fill: currentColor;\n overflow: hidden;\n}\n.map-container .lines,\n.map-container .subLines,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 102%;\n width: 100%;\n top: 0;\n left: 0;\n}\n.map-container .topiclinks,\n.map-container .linkcontroller {\n pointer-events: none;\n}\n.map-container .topiclinks g,\n.map-container .linkcontroller g {\n pointer-events: all;\n}\n.map-container .lines,\n.map-container .subLines {\n pointer-events: none;\n z-index: -1;\n}\n.map-container .topiclinks *,\n.map-container .linkcontroller * {\n z-index: 100;\n}\n.map-container .topiclinks g {\n cursor: pointer;\n}\n.map-container #input-box {\n position: absolute;\n top: 0;\n left: 0;\n padding: var(--topic-padding);\n background-color: #fff;\n color: #666666;\n width: max-content;\n max-width: 800px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n.map-container me-tpc > img {\n pointer-events: none;\n display: block;\n margin-top: 8px;\n}\n.map-container .circle {\n position: absolute;\n height: 10px;\n width: 10px;\n margin-top: -5px;\n margin-left: -5px;\n border-radius: 100%;\n background: #aaa;\n cursor: pointer;\n}\n.map-container .tags {\n direction: ltr;\n}\n.map-container .tags span {\n display: inline-block;\n border-radius: 3px;\n padding: 2px 4px;\n background: #d6f0f8;\n color: #276f86;\n margin: 0px;\n font-size: 12px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .mind-elixir-ghost {\n box-sizing: content-box;\n opacity: 0.5;\n background-color: #f6f6f6;\n max-width: 200px;\n width: fit-content;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n padding: 8px 16px;\n border-radius: 6px;\n border: #666666 2px solid;\n}\n",""]);const u=h},165:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var i=t(81),o=t.n(i),a=t(645),r=t.n(a)()(o());r.push([e.id,".mind-elixir .context-menu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\n.mind-elixir .context-menu .menu-list {\n position: fixed;\n list-style: none;\n margin: 0;\n padding: 0;\n font: 300 15px 'Roboto', sans-serif;\n color: #333;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir .context-menu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .context-menu .menu-list li {\n min-width: 150px;\n overflow: hidden;\n white-space: nowrap;\n padding: 6px 10px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .context-menu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .context-menu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n.mind-elixir .context-menu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\n.mind-elixir .context-menu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\n.mind-elixir .context-menu .menu-list li span:last-child {\n float: right;\n}\n",""]);const s=r},787:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var i=t(81),o=t.n(i),a=t(645),r=t.n(a)()(o());r.push([e.id,".mind-elixir .mobile-menu {\n position: absolute;\n left: 20px;\n bottom: 70px;\n z-index: 99;\n margin: 0;\n padding: 0;\n color: #333;\n border-radius: 5px;\n box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.2);\n overflow: hidden;\n}\n.mind-elixir .mobile-menu * {\n transition: color 0.4s, background-color 0.4s;\n}\n.mind-elixir .mobile-menu div {\n float: left;\n text-align: center;\n width: 30px;\n overflow: hidden;\n white-space: nowrap;\n padding: 8px;\n background-color: #fff;\n border-bottom: 1px solid #ecf0f1;\n}\n.mind-elixir .mobile-menu div a {\n color: #333;\n text-decoration: none;\n}\n.mind-elixir .mobile-menu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\n.mind-elixir .mobile-menu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""]);const s=r},301:(e,n,t)=>{"use strict";t.d(n,{Z:()=>s});var i=t(81),o=t.n(i),a=t(645),r=t.n(a)()(o());r.push([e.id,"@media (prefers-color-scheme: dark) {\n .mind-elixir-toolbar {\n background: #2d3748 !important;\n color: #fff !important;\n }\n}\n.mind-elixir-toolbar {\n font-family: iconfont;\n position: absolute;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n}\n.mind-elixir-toolbar svg {\n display: inline-block;\n}\n.mind-elixir-toolbar span:active {\n opacity: 0.5;\n}\n.mind-elixir-toolbar.rb {\n right: 20px;\n bottom: 20px;\n}\n.mind-elixir-toolbar.rb span + span {\n margin-left: 10px;\n}\n.mind-elixir-toolbar.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n}\n.mind-elixir-toolbar.lt span {\n display: block;\n}\n.mind-elixir-toolbar.lt span + span {\n margin-top: 10px;\n}\n",""]);const s=r},645:e=>{"use strict";e.exports=function(e){var n=[];return n.toString=function(){return this.map((function(n){var t="",i=void 0!==n[5];return n[4]&&(t+="@supports (".concat(n[4],") {")),n[2]&&(t+="@media ".concat(n[2]," {")),i&&(t+="@layer".concat(n[5].length>0?" ".concat(n[5]):""," {")),t+=e(n),i&&(t+="}"),n[2]&&(t+="}"),n[4]&&(t+="}"),t})).join("")},n.i=function(e,t,i,o,a){"string"==typeof e&&(e=[[null,e,void 0]]);var r={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(r[c]=!0)}for(var l=0;l<e.length;l++){var d=[].concat(e[l]);i&&r[d[0]]||(void 0!==a&&(void 0===d[5]||(d[1]="@layer".concat(d[5].length>0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=a),t&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=t):d[2]=t),o&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=o):d[4]="".concat(o)),n.push(d))}},n}},667:e=>{"use strict";e.exports=function(e,n){return n||(n={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),n.hash&&(e+=n.hash),/["'() \t\n]|(%20)/.test(e)||n.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},81:e=>{"use strict";e.exports=function(e){return e[1]}},379:e=>{"use strict";var n=[];function t(e){for(var t=-1,i=0;i<n.length;i++)if(n[i].identifier===e){t=i;break}return t}function i(e,i){for(var a={},r=[],s=0;s<e.length;s++){var c=e[s],l=i.base?c[0]+i.base:c[0],d=a[l]||0,h="".concat(l," ").concat(d);a[l]=d+1;var p=t(h),m={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==p)n[p].references++,n[p].updater(m);else{var u=o(m,i);i.byIndex=s,n.splice(s,0,{identifier:h,updater:u,references:1})}r.push(h)}return r}function o(e,n){var t=n.domAPI(n);t.update(e);return function(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap&&n.supports===e.supports&&n.layer===e.layer)return;t.update(e=n)}else t.remove()}}e.exports=function(e,o){var a=i(e=e||[],o=o||{});return function(e){e=e||[];for(var r=0;r<a.length;r++){var s=t(a[r]);n[s].references--}for(var c=i(e,o),l=0;l<a.length;l++){var d=t(a[l]);0===n[d].references&&(n[d].updater(),n.splice(d,1))}a=c}}},569:e=>{"use strict";var n={};e.exports=function(e,t){var i=function(e){if(void 0===n[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}n[e]=t}return n[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(t)}},216:e=>{"use strict";e.exports=function(e){var n=document.createElement("style");return e.setAttributes(n,e.attributes),e.insert(n,e.options),n}},565:(e,n,t)=>{"use strict";e.exports=function(e){var n=t.nc;n&&e.setAttribute("nonce",n)}},795:e=>{"use strict";e.exports=function(e){var n=e.insertStyleElement(e);return{update:function(t){!function(e,n,t){var i="";t.supports&&(i+="@supports (".concat(t.supports,") {")),t.media&&(i+="@media ".concat(t.media," {"));var o=void 0!==t.layer;o&&(i+="@layer".concat(t.layer.length>0?" ".concat(t.layer):""," {")),i+=t.css,o&&(i+="}"),t.media&&(i+="}"),t.supports&&(i+="}");var a=t.sourceMap;a&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),n.styleTagTransform(i,e,n.options)}(n,e,t)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)}}}},589:e=>{"use strict";e.exports=function(e,n){if(n.styleSheet)n.styleSheet.cssText=e;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(e))}}},857:()=>{!function(e){var n,t,i,o,a,r,s='<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>',c=(c=document.getElementsByTagName("script"))[c.length-1].getAttribute("data-injectcss");if(c&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(e){console}}function l(){a||(a=!0,i())}n=function(){var e,n,t,i;(i=document.createElement("div")).innerHTML=s,s=null,(t=i.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",e=t,(n=document.body).firstChild?(i=e,(t=n.firstChild).parentNode.insertBefore(i,t)):n.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(n,0):(t=function(){document.removeEventListener("DOMContentLoaded",t,!1),n()},document.addEventListener("DOMContentLoaded",t,!1)):document.attachEvent&&(i=n,o=e.document,a=!1,(r=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(r,50)}l()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,l())})}(window)},848:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg=="},295:e=>{"use strict";e.exports="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+"}},n={};function t(i){var o=n[i];if(void 0!==o)return o.exports;var a=n[i]={id:i,exports:{}};return e[i](a,a.exports,t),a.exports}t.m=e,t.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n},t.d=(e,n)=>{for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},t.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),t.b=document.baseURI||self.location.href,t.nc=void 0;var i={};return(()=>{"use strict";t.d(i,{default:()=>ie});const e=30,n={name:"Latte",palette:["#dd7878","#ea76cb","#8839ef","#e64553","#fe640b","#df8e1d","#40a02b","#209fb5","#1e66f5","#7287fd"],cssVar:{"--main-color":"#444446","--main-bgcolor":"#ffffff","--color":"#777777","--bgcolor":"#f6f6f6"}};function o(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}const a=function(e,n){if(n.id===e)return n;if(n.children&&n.children.length){for(let t=0;t<n.children.length;t++){const i=a(e,n.children[t]);if(i)return i}return null}return null},r=(e,n)=>{if(e.parent=n,e.children)for(let n=0;n<e.children.length;n++)r(e.children[n],e)};function s(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}const c=document,l=(e,n)=>{const t=(n?n.mindElixirBox:c).querySelector(`[data-nodeid=me${e}]`);return t||new Error(`findEle: ${e} not found`),t},d=function(e,n){if(e.textContent=n.topic,n.style&&(e.style.color=n.style.color||"",e.style.background=n.style.background||"",e.style.fontSize=n.style.fontSize+"px",e.style.fontWeight=n.style.fontWeight||"normal"),n.image){const t=n.image;if(t.url&&t.width&&t.height){const n=c.createElement("img");n.src=t.url,n.style.width=t.width+"px",n.style.height=t.height+"px",e.appendChild(n)}}if(n.hyperLink){const t=c.createElement("a");t.className="hyper-link",t.target="_blank",t.innerText="🔗",t.href=n.hyperLink,e.appendChild(t),e.linkContainer=t}else e.linkContainer&&(e.linkContainer.remove(),e.linkContainer=null);if(n.icons&&n.icons.length){const t=c.createElement("span");t.className="icons",t.innerHTML=n.icons.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(t)}if(n.tags&&n.tags.length){const t=c.createElement("div");t.className="tags",t.innerHTML=n.tags.map((e=>`<span>${o(e)}</span>`)).join(""),e.appendChild(t)}n.branchColor&&(e.style.borderColor=n.branchColor)};const h=function(e){const n=c.createElement("me-epd");return n.expanded=!1!==e,n.className=!1!==e?"minus":"",n},p=document,m=document,u="http://www.w3.org/2000/svg",f=function(e,n){const t=m.createElementNS(u,"path");return t.setAttribute("d",e),t.setAttribute("stroke",n||"#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","3"),t},g=function(e){const n=m.createElementNS(u,"svg");return n.setAttribute("class",e),n},b=function(e,n,t,i){const o=m.createElementNS(u,"line");return o.setAttribute("x1",String(e)),o.setAttribute("y1",String(n)),o.setAttribute("x2",String(t)),o.setAttribute("y2",String(i)),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o},x=function(e,n){const t=m.createElementNS(u,"path");return t.setAttribute("d",e),t.setAttribute("stroke",n||"#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","2"),t};function M(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,linkData:e.linkData,direction:e.direction,theme:e.theme}}let v=k;const y=function(e,n,t){let i="";const o=n.offsetTop,a=n.offsetLeft,r=n.offsetWidth,s=n.offsetHeight;for(let n=0;n<e.length;n++){const c=e[n],l=c.children[0],d=l.offsetTop,h=l.offsetLeft,p=l.offsetWidth,m=l.offsetHeight,u=c.offsetParent.className;i+=v({pT:o,pL:a,pW:r,pH:s,cT:d,cL:h,cW:p,cH:m,direction:u,isFirst:t});const f=l.children[1];if(!f)continue;if(f.style.bottom=-f.offsetHeight/2+"px","lhs"===u?f.style.left="0px":"rhs"===u&&(f.style.left=l.offsetWidth+"px"),!f.expanded)continue;const g=c.children[1].children;g.length>0&&(i+=y(g,l))}return i};function N({x1:e,y1:n,x2:t,y2:i}){return`M ${e} 10000 V ${i>n?i-20:i+20} C ${e} ${i} ${e} ${i} ${t>e?e+20:e-20} ${i} H ${t}`}function z({x1:e,y1:n,x2:t,y2:i}){return`M ${e} ${n} Q ${e} ${i} ${t} ${i}`}function C({pT:n,pL:t,pW:i,pH:o,cT:a,cL:r,cW:s,cH:c,direction:l,isFirst:d}){let h;h=d?n+o/2:n+o;const p=a+c;let m=0,u=0,f=0;return"lhs"===l?(m=t+e,u=r,f=r+s):"rhs"===l&&(m=t+i-e,u=r+s,f=r),p<h+50&&p>h-50?`M ${m} ${h} H ${f} V ${p} H ${u}`:p>=h?`M ${m} ${h} H ${f} V ${p-8} A 8 8 0 0 ${m>u?1:0} ${m>u?f-8:f+8} ${p} H ${u}`:`M ${m} ${h} H ${f} V ${p+8} A 8 8 0 0 ${m>u?0:1} ${m>u?f-8:f+8} ${p} H ${u}`}function k({pT:n,pL:t,pW:i,pH:o,cT:a,cL:r,cW:s,cH:c,direction:l,isFirst:d}){let h=0,p=0;h=d?n+o/2:n+o;const m=a+c;let u=0,f=0,g=0;const b=Math.min(Math.abs(h-m)/800,1.2)*e;return"lhs"===l?(g=t,u=g+e,f=g-e,p=r+e,`M ${u} ${h} C ${g} ${h} ${g+b} ${m} ${f} ${m} H ${p}`):(g=t+i,u=g-e,f=g+e,p=r+s-e,`M ${u} ${h} C ${g} ${h} ${g-b} ${m} ${f} ${m} H ${p}`)}const w=function(n){const t=this.mainNodeHorizontalGap,i=this.mainNodeVerticalGap,o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;const a=this.mainNodes.children;this.lines.innerHTML="",v=2===this.subLinkStyle?C:k;let r,s=0,c="",d=0,h=0,p=0,m=0,u=0;if(2===this.direction){let e=0,n=0,t=0,o=0;for(let r=0;r<a.length;r++){const s=a[r];"lhs"===s.className?(m+=s.offsetHeight+i,t+=s.offsetHeight,e+=1):(u+=s.offsetHeight+i,o+=s.offsetHeight,n+=1)}m>u?(this.mapHeight=m,r=1e4-m/2,c="r",d=(m-o)/(n-1)):(this.mapHeight=u,r=1e4-u/2,c="l",d=(u-t)/(e-1))}else{for(let e=0;e<a.length;e++){s+=a[e].offsetHeight+i}this.mapHeight=s,r=1e4-s/2}const b=1e4-o.offsetWidth/2-t,M=1e4+o.offsetWidth/2+t;for(let t=0;t<a.length;t++){let s=1e4;const l=1e4;let m,u;const v=a[t],C=this.theme.palette,k=v.querySelector("me-tpc").nodeObj.branchColor||C[t%C.length],w=v.offsetHeight;"lhs"===v.className?(v.style.top=r+h+"px",v.style.left=b-v.offsetWidth+"px",m=b-e,u=r+h+w/2,h+="l"===c?w+d:w+i):(v.style.top=r+p+"px",v.style.left=M+"px",m=M+e,u=r+p+w/2,p+="r"===c?w+d:w+i);let L="";if(2===this.mainLinkStyle)2===this.direction&&(s="lhs"===v.className?1e4-o.offsetWidth/6:1e4+o.offsetWidth/6),L=N({x1:s,y1:l,x2:m,y2:u});else{const e=Math.abs(u-1e4)/(1e4-r);s="lhs"===v.className?1e4-o.offsetWidth/10-.25*(1-e)*(o.offsetWidth/2):1e4+o.offsetWidth/10+.25*(1-e)*(o.offsetWidth/2),L=z({x1:s,y1:l,x2:m,y2:u})}this.lines.appendChild(f(L,k));const j=v.children[0].children[1];if(j&&(j.style.top=(j.parentNode.offsetHeight-j.offsetHeight)/2+"px","lhs"===v.className?j.style.left="-40px":j.style.right="-40px"),(!n||n===a[t])&&v.childElementCount){const e=g("subLines"),n=v.lastChild;"svg"===n.tagName&&n.remove(),v.appendChild(e);const t=v.children[0],i=v.children[1].children,o=y(i,t,!0);e.appendChild(x(o,k))}}this.linkSvgGroup.innerHTML="";for(const e in this.linkData){const n=this.linkData[e];this.createLink(l(n.from),l(n.to),!0,n)}},L={afterMoving:!1,mousedown:!1,lastX:0,lastY:0,onMove(e,n){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);const t=this.lastX-e.pageX,i=this.lastY-e.pageY;n.scrollTo(n.scrollLeft+t,n.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=0,this.lastY=0}},j=e=>"ME-PARENT"===e.parentElement.tagName||"ME-ROOT"===e.parentElement.tagName;const E={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点"},T={cn:E,zh_CN:E,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",clickTips:"Please click the target node"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",clickTips:"Пожалуйста, нажмите на целевой узел"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",clickTips:"Favor clicar no item alvo"}};var I=t(379),D=t.n(I),A=t(795),S=t.n(A),H=t(569),$=t.n(H),Y=t(565),P=t.n(Y),B=t(216),O=t.n(B),Z=t(589),R=t.n(Z),V=t(165),W={};W.styleTagTransform=R(),W.setAttributes=P(),W.insert=$().bind(null,"head"),W.domAPI=S(),W.insertStyleElement=O();D()(V.Z,W);V.Z&&V.Z.locals&&V.Z.locals;function F(e,n){const t=(e,n,t)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${o(n)}</span><span>${o(t)}</span>`,i},i=T[e.locale]?e.locale:"en",a=T[i],r=t("cm-add_child",a.addChild,"tab"),s=t("cm-add_parent",a.addParent,""),c=t("cm-add_sibling",a.addSibling,"enter"),l=t("cm-remove_child",a.removeNode,"delete"),d=t("cm-fucus",a.focus,""),h=t("cm-unfucus",a.cancelFocus,""),p=t("cm-up",a.moveUp,"PgUp"),m=t("cm-down",a.moveDown,"Pgdn"),u=t("cm-down",a.link,""),f=document.createElement("ul");if(f.className="menu-list",f.appendChild(r),f.appendChild(s),f.appendChild(c),f.appendChild(l),n&&!n.focus||(f.appendChild(d),f.appendChild(h)),f.appendChild(p),f.appendChild(m),n&&!n.link||f.appendChild(u),n&&n.extend)for(let e=0;e<n.extend.length;e++){const i=n.extend[e],o=t(i.name,i.name,i.key||"");f.appendChild(o),o.onclick=e=>{i.onclick(e)}}const g=document.createElement("div");g.className="context-menu",g.appendChild(f),g.hidden=!0,e.container.append(g);let b=!0;e.container.oncontextmenu=function(n){if(n.preventDefault(),!e.editable)return;const t=n.target;if("ME-TPC"===t.tagName){b="ME-ROOT"===t.parentElement.tagName,b?(d.className="disabled",p.className="disabled",m.className="disabled",c.className="disabled",l.className="disabled"):(d.className="",p.className="",m.className="",c.className="",l.className=""),e.selectNode(t),g.hidden=!1;const i=f.offsetHeight,o=f.offsetWidth;i+n.clientY>window.innerHeight?(f.style.top="",f.style.bottom="0px"):(f.style.bottom="",f.style.top=n.clientY+15+"px"),o+n.clientX>window.innerWidth?(f.style.left="",f.style.right="0px"):(f.style.right="",f.style.left=n.clientX+10+"px")}},g.onclick=e=>{e.target===g&&(g.hidden=!0)},r.onclick=()=>{e.addChild(),g.hidden=!0},s.onclick=()=>{e.insertParent(),g.hidden=!0},c.onclick=()=>{b||(e.insertSibling(),g.hidden=!0)},l.onclick=()=>{b||(e.removeNode(),g.hidden=!0)},d.onclick=()=>{b||(e.focusNode(e.currentNode),g.hidden=!0)},h.onclick=()=>{e.cancelFocus(),g.hidden=!0},p.onclick=()=>{b||(e.moveUpNode(),g.hidden=!0)},m.onclick=()=>{b||(e.moveDownNode(),g.hidden=!0)},u.onclick=()=>{g.hidden=!0;const n=e.currentNode,t=(e=>{const n=document.createElement("div");return n.innerText=e,n.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",n})(a.clickTips);e.container.appendChild(t),e.map.addEventListener("click",(i=>{i.preventDefault(),t.remove();const o=i.target;"ME-PARENT"!==o.parentElement.tagName&&"ME-ROOT"!==o.parentElement.tagName||e.createLink(n,e.currentNode)}),{once:!0})}}var G=t(301),_={};_.styleTagTransform=R(),_.setAttributes=P(),_.insert=$().bind(null,"head"),_.domAPI=S(),_.insertStyleElement=O();D()(G.Z,_);G.Z&&G.Z.locals&&G.Z.locals;const q=(e,n)=>{const t=document.createElement("span");return t.id=e,t.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${n}"></use>\n </svg>`,t};function J(e){e.container.append(function(e){const n=document.createElement("div"),t=q("fullscreen","full"),i=q("toCenter","living"),o=q("zoomout","move"),a=q("zoomin","add");return document.createElement("span").innerText="100%",n.appendChild(t),n.appendChild(i),n.appendChild(o),n.appendChild(a),n.className="mind-elixir-toolbar rb",t.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},a.onclick=()=>{e.scaleVal>1.6||e.scale(e.scaleVal+=.2)},n}(e)),e.container.append(function(e){const n=document.createElement("div"),t=q("tbltl","left"),i=q("tbltr","right"),o=q("tblts","side");return n.appendChild(t),n.appendChild(i),n.appendChild(o),n.className="mind-elixir-toolbar lt",t.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},n}(e))}var U=t(787),Q={};Q.styleTagTransform=R(),Q.setAttributes=P(),Q.insert=$().bind(null,"head"),Q.domAPI=S(),Q.insertStyleElement=O();D()(U.Z,Q);U.Z&&U.Z.locals&&U.Z.locals;const X={create:()=>({handlers:{},showHandler:function(){},addListener:function(e,n){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(n)},fire:function(e,...n){if(this.handlers[e]instanceof Array){const t=this.handlers[e];for(let e=0;e<t.length;e++)t[e](...n)}},removeListener:function(e,n){if(!this.handlers[e])return;const t=this.handlers[e];if(n){if(t.length)for(let i=0;i<t.length;i++)t[i]===n&&this.handlers[e].splice(i,1)}else t.length=0}})};var K=t(74),ee={};ee.styleTagTransform=R(),ee.setAttributes=P(),ee.insert=$().bind(null,"head"),ee.domAPI=S(),ee.insertStyleElement=O();D()(K.Z,ee);K.Z&&K.Z.locals&&K.Z.locals;t(857);const ne=document;function te({el:e,direction:t,toolBar:i,keypress:o,newTopicName:a,mainLinkStyle:r,overflowHidden:s,mainNodeHorizontalGap:c,mainNodeVerticalGap:l,mobileMenu:d}){let h;const p=Object.prototype.toString.call(e);if("[object HTMLDivElement]"===p?h=e:"[object String]"===p&&(h=document.querySelector(e)),!h)return new Error("MindElixir: el is not a valid element");var m;this.mindElixirBox=h,this.toolBar=void 0===i||i,this.keypress=void 0===o||o,this.mobileMenu=d||!1,this.direction="number"==typeof t?t:1,this.draggable=!1,this.newTopicName=a||"new node",this.editable=!1,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.mainLinkStyle=r||0,this.overflowHidden=s||!1,this.mainNodeHorizontalGap=c||65,this.mainNodeVerticalGap=l||25,this.bus=X.create(),this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=ne.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=ne.createElement("div"),this.map.className="map-canvas",this.theme=n,this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=ne.createElement("me-root"),this.mainNodes=ne.createElement("me-children"),this.mainNodes.className="main-node-container",this.lines=g("lines"),this.linkController=g("linkcontroller"),this.P2=ne.createElement("div"),this.P3=ne.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=b(0,0,0,0),this.line2=b(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=g("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.mainNodes),this.map.appendChild(this.lines),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.overflowHidden?this.container.style.overflow="hidden":((m=this).map.addEventListener("click",(e=>{var n;const t=e.target;if("ME-EPD"===t.tagName)m.expandNode(t.previousSibling);else{if(!m.editable)return;j(t)?m.selectNode(t,!1,e):"path"===t.tagName?"g"===(null===(n=null==t?void 0:t.parentElement)||void 0===n?void 0:n.tagName)&&m.selectLink(t.parentElement):"circle"===t.className||(m.unselectNode(),m.hideLinkController&&m.hideLinkController())}})),m.map.addEventListener("dblclick",(e=>{if(e.preventDefault(),!m.editable)return;const n=e.target;j(n)&&m.beginEdit(n)})),m.map.addEventListener("mousemove",(e=>{"true"!==e.target.contentEditable&&L.onMove(e,m.container)})),m.map.addEventListener("mousedown",(e=>{"true"!==e.target.contentEditable&&(L.afterMoving=!1,L.mousedown=!0)})),m.map.addEventListener("mouseleave",(()=>{L.clear()})),m.map.addEventListener("mouseup",(()=>{L.clear()})))}te.prototype={fillParent:r,getObjById:a,judgeDirection:function(e,n){if(0===this.direction)e.className="lhs";else if(1===this.direction)e.className="rhs";else if(2===this.direction){p.querySelectorAll(".lhs").length<=p.querySelectorAll(".rhs").length?(e.className="lhs",n.direction=0):(e.className="rhs",n.direction=1)}},setNodeTopic:function(e,n){e.childNodes[0].textContent=n,e.nodeObj.topic=n,this.linkDiv()},createLink:function(e,n,t,i){const o=this.map.getBoundingClientRect();if(!e||!n)return;const a=e.getBoundingClientRect(),r=n.getBoundingClientRect(),c=(a.x+a.width/2-o.x)/this.scaleVal,l=(a.y+a.height/2-o.y)/this.scaleVal,d=(r.x+r.width/2-o.x)/this.scaleVal,h=(r.y+r.height/2-o.y)/this.scaleVal;let p,f,g,b;t&&i?(p=c+i.delta1.x,f=l+i.delta1.y,g=d+i.delta2.x,b=h+i.delta2.y):(l+h)/2-l<=a.height/2?(p=(a.x+a.width-o.x)/this.scaleVal+100,f=l,g=(r.x+r.width-o.x)/this.scaleVal+100,b=h):(p=(c+d)/2,f=(l+h)/2,g=(c+d)/2,b=(l+h)/2);const x={cx:c,cy:l,w:a.width,h:a.height},M={cx:d,cy:h,w:r.width,h:r.height},v=function(e,n,t){let i,o;const a=(e.cy-t)/(n-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-t<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-n<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(x,p,f),y=v.x,N=v.y,z=function(e,n,t){let i,o;const a=(e.cy-t)/(n-e.cx);return a>e.h/e.w||a<-e.h/e.w?e.cy-t<0?(i=e.cx-e.h/2/a,o=e.cy+e.h/2):(i=e.cx+e.h/2/a,o=e.cy-e.h/2):e.cx-n<0?(i=e.cx+e.w/2,o=e.cy-e.w*a/2):(i=e.cx-e.w/2,o=e.cy+e.w*a/2),{x:i,y:o}}(M,g,b),C=z.x,k=z.y,w=function(e,n,t,i){const o=i-n,a=e-t;let r=Math.atan(Math.abs(o)/Math.abs(a))/3.14*180;a<0&&o>0&&(r=180-r),a<0&&o<0&&(r=180+r),a>0&&o<0&&(r=360-r);const s=r+30,c=r-30;return{x1:t+20*Math.cos(Math.PI*s/180),y1:i-20*Math.sin(Math.PI*s/180),x2:t+20*Math.cos(Math.PI*c/180),y2:i-20*Math.sin(Math.PI*c/180)}}(g,b,C,k),L={id:"",label:"",from:e.nodeObj.id,to:n.nodeObj.id,delta1:{x:p-c,y:f-l},delta2:{x:g-d,y:b-h}},j=function(e,n){const t=m.createElementNS(u,"g"),i=m.createElementNS(u,"path"),o=m.createElementNS(u,"path");return o.setAttribute("d",n),o.setAttribute("stroke","rgb(235, 95, 82)"),o.setAttribute("fill","none"),o.setAttribute("stroke-linecap","cap"),o.setAttribute("stroke-width","2"),i.setAttribute("d",e),i.setAttribute("stroke","rgb(235, 95, 82)"),i.setAttribute("fill","none"),i.setAttribute("stroke-linecap","cap"),i.setAttribute("stroke-width","2"),t.appendChild(i),t.appendChild(o),t}(`M ${y} ${N} C ${p} ${f} ${g} ${b} ${C} ${k}`,`M ${w.x1} ${w.y1} L ${C} ${k} L ${w.x2} ${w.y2}`);t&&i?(L.id=i.id,this.linkData[i.id]=L):(L.id=s(),this.linkData[L.id]=L,this.currentLink=j),j.linkObj=L,j.dataset.linkid=L.id,this.linkSvgGroup.appendChild(j),t||this.showLinkController(p,f,g,b,L,x,M)},layout:function(){this.root.innerHTML="",this.mainNodes.innerHTML="";const e=this.createTopic(this.nodeData);d(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const n=this.nodeData.children;if(n&&0!==n.length){if(2===this.direction){let e=0,t=0;n.map((n=>{0===n.direction?e+=1:1===n.direction?t+=1:e<=t?(n.direction=0,e+=1):(n.direction=1,t+=1)}))}this.layoutChildren(n,this.mainNodes,this.direction)}},linkDiv:w,layoutChildren:function(e,n,t){let i;i=n||p.createElement("me-children");for(let n=0;n<e.length;n++){const o=e[n],a=p.createElement("me-wrapper");0===t?a.className="lhs":1===t?a.className="rhs":2===t&&(0===o.direction?a.className="lhs":1===o.direction&&(a.className="rhs"));const r=this.createParent(o);if(o.children&&o.children.length>0){if(r.appendChild(h(o.expanded)),a.appendChild(r),!1!==o.expanded){const e=this.layoutChildren(o.children);a.appendChild(e)}}else a.appendChild(r);i.appendChild(a)}return i},createWrapper:function(e,n){const t=c.createElement("me-wrapper"),i=this.createParent(e);if(t.appendChild(i),!n&&e.children&&e.children.length>0&&(i.appendChild(h(e.expanded)),!1!==e.expanded)){const n=this.layoutChildren(e.children);t.appendChild(n)}return{grp:t,top:i}},createParent:function(e){const n=c.createElement("me-parent"),t=this.createTopic(e);return d(t,e),n.appendChild(t),n},createTopic:function(e){const n=c.createElement("me-tpc");return n.nodeObj=e,n.dataset.nodeid="me"+e.id,n.draggable=this.draggable,n},selectNode:function(e,n,t){if(e){if("string"==typeof e){const n=l(e);if(!n)return;return this.selectNode(n)}this.currentNode&&(this.currentNode.className=""),e.className="selected",e.scrollIntoView({block:"nearest",inline:"nearest"}),this.currentNode=e,n?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj,t)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return!1;const e=this.currentNode.parentElement.parentElement.nextSibling;let n;const t=this.currentNode.parentElement.parentElement;if("rhs"===t.className||"lhs"===t.className){const e=this.mindElixirBox.querySelectorAll("."+t.className),i=Array.from(e).indexOf(t);if(!(i+1<e.length))return!1;n=e[i+1].firstChild.firstChild}else{if(!e)return!1;n=e.firstChild.firstChild}return this.selectNode(n),!0},selectPrevSibling:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return!1;const e=this.currentNode.parentElement.parentElement.previousSibling;let n;const t=this.currentNode.parentElement.parentElement;if("rhs"===t.className||"lhs"===t.className){const e=this.mindElixirBox.querySelectorAll("."+t.className),i=Array.from(e).indexOf(t);if(!(i-1>=0))return!1;n=e[i-1].firstChild.firstChild}else{if(!e)return!1;n=e.firstChild.firstChild}return this.selectNode(n),!0},selectFirstChild:function(){if(!this.currentNode)return;const e=this.currentNode.parentElement.nextSibling;if(e&&e.firstChild){const n=e.firstChild.firstChild.firstChild;this.selectNode(n)}},selectParent:function(){if(!this.currentNode||"meroot"===this.currentNode.dataset.nodeid)return;const e=this.currentNode.parentElement.parentElement.parentElement.previousSibling;if(e){const n=e.firstChild;this.selectNode(n)}},getDataString:function(){const e=M(this);return JSON.stringify(e,((e,n)=>{if("parent"!==e)return"from"===e||"to"===e?n.nodeObj.id:n}))},getData:function(){return JSON.parse(this.getDataString())},getDataMd:function(){const e=M(this).nodeData;let n="# "+e.topic+"\n\n";return function e(t,i){for(let o=0;o<t.length;o++)n+=i<=6?"".padStart(i,"#")+" "+t[o].topic+"\n\n":"".padStart(i-7,"\t")+"- "+t[o].topic+"\n",t[o].children&&e(t[o].children||[],i+1)}(e.children||[],2),n},scale:function(e){this.scaleVal=e,this.map.style.transform="scale("+e+")"},toCenter:function(){this.container.scrollTo(1e4-this.container.offsetWidth/2,1e4-this.container.offsetHeight/2)},focusNode:function(e){e.nodeObj.root||(null===this.tempDirection&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.nodeData.root=!0,this.initRight(),this.toCenter())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},initLeft:function(){this.direction=0,this.refresh()},initRight:function(){this.direction=1,this.refresh()},initSide:function(){this.direction=2,this.refresh()},setLocale:function(e){this.locale=e,this.refresh()},expandNode:function(e,n){const t=e.nodeObj;"boolean"==typeof n?t.expanded=n:!1!==t.expanded?t.expanded=!1:t.expanded=!0,this.layout(),this.linkDiv(),this.bus.fire("expandNode",t)},refresh:function(e){e&&(this.nodeData=e.nodeData,this.linkData=e.linkData||{}),this.fillParent(this.nodeData),this.layout(),this.linkDiv()},init:function(e){void 0!==e.direction&&(this.direction=e.direction),this.nodeData=e.nodeData,this.linkData=e.linkData||{},this.toolBar&&J(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(e,n){const t=(e,n)=>{const t=document.createElement("div");return t.id=e,t.innerHTML=`<svg class="icon" aria-hidden="true">\n <use xlink:href="#icon-${n}"></use>\n </svg>`,t},i=t("cm-add_child","zijiedian"),o=t("cm-add_sibling","tongjijiedian-"),a=t("cm-remove_child","shanchu2"),r=t("cm-up","rising"),s=t("cm-down","falling"),c=t("cm-edit","edit"),l=document.createElement("ul");if(l.className="menu-list",n&&n.extend)for(let e=0;e<n.extend.length;e++){const i=n.extend[e],o=t(i.name,i.name);l.appendChild(o),o.onclick=e=>{i.onclick(e)}}const d=document.createElement("mmenu");d.className="mobile-menu",d.appendChild(i),d.appendChild(o),d.appendChild(a),d.appendChild(r),d.appendChild(s),d.appendChild(c),d.hidden=!0,e.container.append(d);let h=!0;e.bus.addListener("unselectNode",(function(){d.hidden=!0})),e.bus.addListener("selectNode",(function(e){d.hidden=!1,h=!!e.root})),d.onclick=e=>{e.target===d&&(d.hidden=!0)},i.onclick=()=>{e.addChild()},o.onclick=()=>{h||e.insertSibling()},a.onclick=()=>{h||e.removeNode()},r.onclick=n=>{h||e.moveUpNode()},s.onclick=n=>{h||e.moveDownNode()},c.onclick=n=>{e.beginEdit()}}(this):this.contextMenu&&F(this,this.contextMenuOption);const n=this.theme.cssVar,t=Object.keys(n);for(let e=0;e<t.length;e++){const i=t[e];this.mindElixirBox.style.setProperty(i,n[i])}r(this.nodeData),this.toCenter(),this.layout(),this.linkDiv()}},te.LEFT=0,te.RIGHT=1,te.SIDE=2,te.version="2.0.6",te.E=l;const ie=te})(),i=i.default})()));
\No newline at end of file