mind-elixir 0.18.2 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,36 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixir=t():e.MindElixir=t()}(self,function(){return(()=>{var n={1894:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\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 .focus-mode {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: #fff;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background: #f6f6f6;\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas root {\n position: absolute;\n}\n.map-container .map-canvas root tpc {\n display: block;\n color: #ffffff;\n padding: 10px 15px;\n background-color: #00aaff;\n border-radius: 5px;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas root tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #00aaff;\n max-width: 300px;\n z-index: 11;\n user-select: auto;\n}\n.map-container .box > grp {\n position: absolute;\n}\n.map-container .box > grp > t > tpc {\n background-color: #ffffff;\n border: 1px solid #444444;\n border-radius: 5px;\n color: #735c45;\n padding: 8px 10px;\n margin: 0;\n}\n.map-container .box > grp > t > tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 8px 10px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs tpc {\n direction: ltr;\n}\n.map-container .box grp {\n display: block;\n pointer-events: none;\n}\n.map-container .box children,\n.map-container .box t {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box t {\n position: relative;\n cursor: pointer;\n padding: 0 15px;\n margin-top: 10px;\n}\n.map-container .box t tpc {\n position: relative;\n display: block;\n padding: 5px;\n border-radius: 3px;\n color: #666666;\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n}\n.map-container .box t tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 5px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n.map-container .box t tpc .tags {\n direction: ltr;\n}\n.map-container .box t tpc .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 height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box t tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box t tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box t tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box t tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box t tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box t tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box t epd {\n position: absolute;\n height: 12px;\n width: 12px;\n line-height: 12px;\n text-align: center;\n border-radius: 50%;\n border: 1px solid #4f4f4f;\n background-color: #fff;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box t epd.minus:hover {\n opacity: 1;\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 .svg2nd,\n.map-container .svg3rd,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 100%;\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 .svg2nd,\n.map-container .svg3rd {\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.down t,\n.down children {\n display: block !important;\n}\n.down grp {\n display: inline-block !important;\n}\n.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",""])},9430:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"cmenu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\ncmenu .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}\ncmenu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\ncmenu .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}\ncmenu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\ncmenu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\ncmenu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\ncmenu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\ncmenu .menu-list li span:last-child {\n float: right;\n}\n",""])},8195:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"mmenu {\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}\nmmenu * {\n transition: color 0.4s, background-color 0.4s;\n}\nmmenu 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}\nmmenu div a {\n color: #333;\n text-decoration: none;\n}\nmmenu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\nmmenu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\nmmenu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""])},3053:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"nmenu {\n position: absolute;\n right: 20px;\n top: 20px;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n width: 240px;\n box-sizing: border-box;\n padding: 0 15px 15px;\n transition: 0.3s all;\n}\nnmenu.close {\n height: 30px;\n width: 50px;\n overflow: hidden;\n}\nnmenu .button-container {\n padding: 3px 0;\n direction: rtl;\n}\nnmenu #nm-tag {\n margin-top: 20px;\n}\nnmenu .nm-fontsize-container {\n display: flex;\n justify-content: space-around;\n margin-bottom: 20px;\n}\nnmenu .nm-fontsize-container div {\n height: 36px;\n width: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n background-color: white;\n color: tomato;\n border-radius: 100%;\n}\nnmenu .nm-fontcolor-container {\n margin-bottom: 10px;\n}\nnmenu input {\n background: #f7f9fa;\n border: 1px solid #dce2e6;\n border-radius: 3px;\n padding: 5px;\n margin: 10px 0;\n width: 100%;\n box-sizing: border-box;\n}\nnmenu .split6 {\n display: inline-block;\n width: 16.66%;\n margin-bottom: 5px;\n}\nnmenu .palette {\n border-radius: 100%;\n width: 21px;\n height: 21px;\n border: 1px solid #edf1f2;\n margin: auto;\n}\nnmenu .nmenu-selected,\nnmenu .palette:hover {\n box-shadow: tomato 0 0 0 2px;\n background-color: #c7e9fa;\n}\nnmenu .size-selected {\n background-color: tomato !important;\n border-color: tomato;\n fill: white;\n color: white;\n}\nnmenu .size-selected svg {\n color: #fff;\n}\nnmenu .bof {\n text-align: center;\n}\nnmenu .bof span {\n display: inline-block;\n font-size: 14px;\n border-radius: 4px;\n padding: 2px 5px;\n}\nnmenu .bof .selected {\n background-color: tomato;\n color: white;\n}\n",""])},8555:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"toolbar {\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}\ntoolbar span:active {\n opacity: 0.5;\n}\n.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.rb span + span {\n margin-left: 10px;\n}\n.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.lt span {\n display: block;\n}\n.lt span + span {\n margin-top: 10px;\n}\n",""])},8145:e=>{"use strict";e.exports=function(n){var a=[];return a.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},a.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(i=0;i<e.length;i++){var r=e[i];null!=r[0]&&n[r[0]]||(t&&!r[2]?r[2]=t:t&&(r[2]="("+r[2]+") and ("+t+")"),a.push(r))}},a}},565:(e,t,n)=>{var i=n(1894);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},3831:(e,t,n)=>{var i=n(9430);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},149:(e,t,n)=>{var i=n(8195);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},7526:(e,t,n)=>{var i=n(3053);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},3467:(e,t,n)=>{var i=n(8555);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},1812:(e,t,i)=>{var n,o,r,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),a=(r={},function(e,t){if("function"==typeof e)return e();if(void 0===r[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=null,d=0,h=[],p=i(4402);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(x(i.parts[r],t))}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(x(i.parts[r],t));l[i.id]={id:i.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=t.base?r[0]+t.base:r[0],r={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(r):n.push(i[a]={id:a,parts:[r]})}return n}function m(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=a(e.insertAt.before,n);n.insertBefore(t,e)}}function b(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function g(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0!==e.attrs.nonce||(t=function(){0;return i.nc}())&&(e.attrs.nonce=t),v(n,e.attrs),m(e,n),n}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function x(t,e){var n,i,o,r,a;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}return o=e.singleton?(a=d++,n=s=s||g(e),i=k.bind(null,n,a,!1),k.bind(null,n,a,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,a=document.createElement("link"),void 0===r.attrs.type&&(r.attrs.type="text/css"),r.attrs.rel="stylesheet",v(a,r.attrs),m(r,a),n=a,i=function(e,t,n){var i=n.css,o=n.sourceMap,n=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||n)&&(i=p(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");o=new Blob([i],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n,e),function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){b(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||"boolean"==typeof a.singleton||(a.singleton=c()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var s=f(e,a);return u(s,a),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&u(f(e,a),a);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var r=0;r<o.parts.length;r++)o.parts[r]();delete l[o.id]}}};var y,N=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function k(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=N(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},4402:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")})}},9857:()=>{!function(e){var t,n,i,o,r,a,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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!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 c(){r||(r=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=s,s=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(n=t.firstChild).parentNode.insertBefore(i=e,n):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,r=!1,(a=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)}},i={};function Z(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e](t,t.exports,Z),t.exports}Z.d=(e,t)=>{for(var n in t)Z.o(t,n)&&!Z.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Z.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var Q={};return(()=>{"use strict";Z.d(Q,{default:()=>J});const x={newTopicName:"",draggable:!1},s=0,l=1,C=2;const $=15,L=8;function g(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function o(t,n){if((n=n||this.nodeData).id===t)return n;if(!n.children||!n.children.length)return null;for(let e=0;e<n.children.length;e++){var i=o(t,n.children[e]);if(i)return i}}const i=e=>e.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(e,t,n,i){return"#"+("0"+Number(t).toString(16)).substr(-2)+("0"+Number(n).toString(16)).substr(-2)+("0"+Number(i).toString(16)).substr(-2)}),d=(t,e)=>{if(t.parent=e,t.children)for(let e=0;e<t.children.length;e++)d(t.children[e],t)};function N(e,t,n,i){t=i-t,e-=n;let o=Math.atan(Math.abs(t)/Math.abs(e))/3.14*180;e<0&&0<t&&(o=180-o),e<0&&t<0&&(o=180+o),0<e&&t<0&&(o=360-o);e=o+30,t=o-30;return{x1:n+20*Math.cos(Math.PI*e/180),y1:i-20*Math.sin(Math.PI*e/180),x2:n+20*Math.cos(Math.PI*t/180),y2:i-20*Math.sin(Math.PI*t/180)}}function k(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function w(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function E(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function c(){var e=E();return{topic:x.newTopicName||"new node",id:e}}function h(e){const t=e.parent.children;e=t.indexOf(e);return t.splice(e,1),t.length}const p={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);var n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};function t(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}t.prototype.init=function(e,i){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);var t=this.lastX-e.pageX,n=this.lastY-e.pageY;i(t,n),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},t.prototype.destory=function(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},t.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};function u(e){const t=f.createElement("GRP"),n=m(e);return t.appendChild(n),e.children&&0<e.children.length&&(n.appendChild(b(e.expanded)),!1!==e.expanded&&(e=v(e.children),t.appendChild(e))),{grp:t,top:n}}function r(e,t){if(e.innerText=t.topic,t.style&&(e.style.color=t.style.color||"inherit",e.style.background=t.style.background||"inherit",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.hyperLink){const n=f.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n)}if(t.icons){const i=f.createElement("span");i.className="icons",i.innerHTML=t.icons.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(i)}if(t.tags){const o=f.createElement("div");o.className="tags",o.innerHTML=t.tags.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(o)}}function a(e){const t=f.createElement("tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=x.draggable,t}const f=document,S=(e,t)=>{const n=t?t.mindElixirBox:f;return n.querySelector(`[data-nodeid=me${e}]`)},m=function(e){const t=f.createElement("t");var n=a(e);return r(n,e),t.appendChild(n),t};const b=function(e){const t=f.createElement("epd");return t.innerText=!1!==e?"-":"+",t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};function v(t,e,n){let i;i=e||f.createElement("children");for(let e=0;e<t.length;e++){var o=t[e];const r=f.createElement("GRP");n===s?r.className="lhs":n===l?r.className="rhs":n===C&&(o.direction===s?r.className="lhs":o.direction===l&&(r.className="rhs"));const a=m(o);o.children&&0<o.children.length?(a.appendChild(b(o.expanded)),r.appendChild(a),!1!==o.expanded&&(o=v(o.children),r.appendChild(o))):r.appendChild(a),i.appendChild(r)}return i}function M(e){const t=j.createElementNS(D,"svg");return t.setAttribute("class",e),t}function e(e,t,n,i){const o=j.createElementNS(D,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o}const j=document,D="http://www.w3.org/2000/svg";function n(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const y=document;let O="";var z={addChild:"插入子节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔"};const A={cn:z,zh_CN:z,zh_TW:{addChild:"插入子節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔"},en:{addChild:"Add a child",addSibling:"Add a 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",font:"Font",background:"Background",tag:"Tag",icon:"Icon",tagsSeparate:"Separate tags by comma",iconsSeparate:"Separate icons by comma"},ja:{addChild:"子ノードを追加する",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り"},pt:{addChild:"Adicionar item filho",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",font:"Fonte",background:"Cor de fundo",tag:"Tag",icon:"Icone",tagsSeparate:"Separe tags por virgula",iconsSeparate:"Separe icones por virgula"}};function T(i,t){var n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${g(t)}</span><span>${g(n)}</span>`,i};const o=A[i.locale]?i.locale:"en",e=n("cm-add_child",A[o].addChild,"tab"),r=n("cm-add_sibling",A[o].addSibling,"enter"),a=n("cm-remove_child",A[o].removeNode,"delete"),s=n("cm-fucus",A[o].focus,""),l=n("cm-unfucus",A[o].cancelFocus,""),c=n("cm-up",A[o].moveUp,"PgUp"),d=n("cm-down",A[o].moveDown,"Pgdn"),h=n("cm-down",A[o].link,""),p=document.createElement("ul");if(p.className="menu-list",p.appendChild(e),p.appendChild(r),p.appendChild(a),t&&!t.focus||(p.appendChild(s),p.appendChild(l)),p.appendChild(c),p.appendChild(d),t&&!t.link||p.appendChild(h),t&&t.extend)for(let e=0;e<t.extend.length;e++){const m=t.extend[e],b=n(m.name,m.name,m.key||"");p.appendChild(b),b.onclick=e=>{m.onclick(e)}}const u=document.createElement("cmenu");u.appendChild(p),u.hidden=!0,i.container.append(u);let f=!0;i.container.oncontextmenu=function(e){var t,n;e.preventDefault(),!i.editable||"TPC"===(n=e.target).tagName&&(f="ROOT"===n.parentElement.tagName,f?(s.className="disabled",c.className="disabled",d.className="disabled",r.className="disabled",a.className="disabled"):(s.className="",c.className="",d.className="",r.className="",a.className=""),i.selectNode(n),u.hidden=!1,t=p.offsetHeight,n=p.offsetWidth,t+e.clientY>window.innerHeight?(p.style.top="",p.style.bottom="0px"):(p.style.bottom="",p.style.top=e.clientY+15+"px"),n+e.clientX>window.innerWidth?(p.style.left="",p.style.right="0px"):(p.style.right="",p.style.left=e.clientX+10+"px"))},u.onclick=e=>{e.target===u&&(u.hidden=!0)},e.onclick=e=>{i.addChild(),u.hidden=!0},r.onclick=e=>{f||(i.insertSibling(),u.hidden=!0)},a.onclick=e=>{f||(i.removeNode(),u.hidden=!0)},s.onclick=e=>{f||(i.focusNode(i.currentNode),u.hidden=!0)},l.onclick=e=>{i.cancelFocus(),u.hidden=!0},c.onclick=e=>{f||(i.moveUpNode(),u.hidden=!0)},d.onclick=e=>{f||(i.moveDownNode(),u.hidden=!0)},h.onclick=e=>{u.hidden=!0;const t=i.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(A[o].clickTips);i.container.appendChild(n),i.map.addEventListener("click",e=>{e.preventDefault(),n.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||i.createLink(t,i.currentNode)},{once:!0})}}const P=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.MindElixir=t():e.MindElixir=t()}(self,function(){return(()=>{var n={1894:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,".mind-elixir {\n position: relative;\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\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 .focus-mode {\n position: absolute;\n top: 0;\n left: 0;\n height: 100%;\n width: 100%;\n background: #fff;\n}\n.map-container .map-canvas {\n height: 20000px;\n width: 20000px;\n position: relative;\n user-select: none;\n transition: all 0.3s;\n transform: scale(1);\n background: #f6f6f6;\n}\n.map-container .map-canvas .selected {\n outline: 2px solid #4dc4ff;\n}\n.map-container .map-canvas root {\n position: absolute;\n}\n.map-container .map-canvas root tpc {\n display: block;\n color: #ffffff;\n padding: 10px 15px;\n background-color: #00aaff;\n border-radius: 5px;\n font-size: 25px;\n white-space: pre-wrap;\n}\n.map-container .map-canvas root tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #00aaff;\n max-width: 300px;\n z-index: 11;\n user-select: auto;\n}\n.map-container .box > grp {\n position: absolute;\n}\n.map-container .box > grp > t > tpc {\n background-color: #ffffff;\n border: 1px solid #444444;\n border-radius: 5px;\n color: #735c45;\n padding: 8px 10px;\n margin: 0;\n}\n.map-container .box > grp > t > tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 8px 10px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n.map-container .box .lhs {\n direction: rtl;\n}\n.map-container .box .lhs tpc {\n direction: ltr;\n}\n.map-container .box grp {\n display: block;\n pointer-events: none;\n}\n.map-container .box children,\n.map-container .box t {\n display: inline-block;\n vertical-align: middle;\n}\n.map-container .box t {\n position: relative;\n cursor: pointer;\n padding: 0 15px;\n margin-top: 10px;\n}\n.map-container .box t tpc {\n position: relative;\n display: block;\n padding: 5px;\n border-radius: 3px;\n color: #666666;\n pointer-events: all;\n max-width: 800px;\n white-space: pre-wrap;\n}\n.map-container .box t tpc [contentEditable] {\n position: absolute;\n top: 0;\n left: 0;\n background-color: #fff;\n max-width: 300px;\n padding: 5px;\n z-index: 11;\n direction: ltr;\n user-select: auto;\n}\n.map-container .box t tpc .tags {\n direction: ltr;\n}\n.map-container .box t tpc .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 height: 16px;\n line-height: 16px;\n margin-right: 3px;\n margin-top: 2px;\n}\n.map-container .box t tpc .icons {\n display: inline-block;\n direction: ltr;\n margin-right: 10px;\n}\n.map-container .box t tpc .insert-preview {\n position: absolute;\n width: 100%;\n left: 0px;\n z-index: 9;\n}\n.map-container .box t tpc .before {\n height: 14px;\n top: -14px;\n}\n.map-container .box t tpc .show {\n background: #7ad5ff;\n pointer-events: none;\n opacity: 0.7;\n}\n.map-container .box t tpc .in {\n height: 100%;\n top: 0px;\n}\n.map-container .box t tpc .after {\n height: 14px;\n bottom: -14px;\n}\n.map-container .box t epd {\n position: absolute;\n height: 12px;\n width: 12px;\n line-height: 12px;\n text-align: center;\n border-radius: 50%;\n border: 1px solid #4f4f4f;\n background-color: #fff;\n pointer-events: all;\n z-index: 9;\n}\n.map-container .box t epd.minus {\n transition: all 0.3s;\n opacity: 0;\n}\n.map-container .box t epd.minus:hover {\n opacity: 1;\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 .svg2nd,\n.map-container .svg3rd,\n.map-container .topiclinks,\n.map-container .linkcontroller {\n position: absolute;\n height: 100%;\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 .svg2nd,\n.map-container .svg3rd {\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.down t,\n.down children {\n display: block !important;\n}\n.down grp {\n display: inline-block !important;\n}\n.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",""])},9430:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"cmenu {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 99;\n}\ncmenu .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}\ncmenu .menu-list * {\n transition: color 0.4s, background-color 0.4s;\n}\ncmenu .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}\ncmenu .menu-list li a {\n color: #333;\n text-decoration: none;\n}\ncmenu .menu-list li.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\ncmenu .menu-list li:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\ncmenu .menu-list li:first-child {\n border-radius: 5px 5px 0 0;\n}\ncmenu .menu-list li:last-child {\n border-bottom: 0;\n border-radius: 0 0 5px 5px;\n}\ncmenu .menu-list li span:last-child {\n float: right;\n}\n",""])},8195:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"mmenu {\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}\nmmenu * {\n transition: color 0.4s, background-color 0.4s;\n}\nmmenu 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}\nmmenu div a {\n color: #333;\n text-decoration: none;\n}\nmmenu div.disabled {\n color: #5e5e5e;\n background-color: #f7f7f7;\n}\nmmenu div.disabled:hover {\n cursor: default;\n background-color: #f7f7f7;\n}\nmmenu div:hover {\n cursor: pointer;\n background-color: #ecf0f1;\n}\n",""])},3053:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"nmenu {\n position: absolute;\n right: 20px;\n top: 20px;\n background: #fff;\n padding: 10px;\n border-radius: 5px;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n width: 240px;\n box-sizing: border-box;\n padding: 0 15px 15px;\n transition: 0.3s all;\n}\nnmenu.close {\n height: 30px;\n width: 50px;\n overflow: hidden;\n}\nnmenu .button-container {\n padding: 3px 0;\n direction: rtl;\n}\nnmenu #nm-tag {\n margin-top: 20px;\n}\nnmenu .nm-fontsize-container {\n display: flex;\n justify-content: space-around;\n margin-bottom: 20px;\n}\nnmenu .nm-fontsize-container div {\n height: 36px;\n width: 36px;\n display: flex;\n align-items: center;\n justify-content: center;\n box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2);\n background-color: white;\n color: tomato;\n border-radius: 100%;\n}\nnmenu .nm-fontcolor-container {\n margin-bottom: 10px;\n}\nnmenu input {\n background: #f7f9fa;\n border: 1px solid #dce2e6;\n border-radius: 3px;\n padding: 5px;\n margin: 10px 0;\n width: 100%;\n box-sizing: border-box;\n}\nnmenu .split6 {\n display: inline-block;\n width: 16.66%;\n margin-bottom: 5px;\n}\nnmenu .palette {\n border-radius: 100%;\n width: 21px;\n height: 21px;\n border: 1px solid #edf1f2;\n margin: auto;\n}\nnmenu .nmenu-selected,\nnmenu .palette:hover {\n box-shadow: tomato 0 0 0 2px;\n background-color: #c7e9fa;\n}\nnmenu .size-selected {\n background-color: tomato !important;\n border-color: tomato;\n fill: white;\n color: white;\n}\nnmenu .size-selected svg {\n color: #fff;\n}\nnmenu .bof {\n text-align: center;\n}\nnmenu .bof span {\n display: inline-block;\n font-size: 14px;\n border-radius: 4px;\n padding: 2px 5px;\n}\nnmenu .bof .selected {\n background-color: tomato;\n color: white;\n}\n",""])},8555:(e,t,n)=>{(e.exports=n(8145)(!1)).push([e.id,"toolbar {\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}\ntoolbar span:active {\n opacity: 0.5;\n}\n.rb {\n right: 20px;\n bottom: 20px;\n font-family: iconfont;\n}\n.rb span + span {\n margin-left: 10px;\n}\n.lt {\n font-size: 20px;\n left: 20px;\n top: 20px;\n width: 20px;\n}\n.lt span {\n display: block;\n}\n.lt span + span {\n margin-top: 10px;\n}\n",""])},8145:e=>{"use strict";e.exports=function(n){var a=[];return a.toString=function(){return this.map(function(e){var t=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){e=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(i),t=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(t).concat([e]).join("\n")}return[n].join("\n")}(e,n);return e[2]?"@media "+e[2]+"{"+t+"}":t}).join("")},a.i=function(e,t){"string"==typeof e&&(e=[[null,e,""]]);for(var n={},i=0;i<this.length;i++){var o=this[i][0];null!=o&&(n[o]=!0)}for(i=0;i<e.length;i++){var r=e[i];null!=r[0]&&n[r[0]]||(t&&!r[2]?r[2]=t:t&&(r[2]="("+r[2]+") and ("+t+")"),a.push(r))}},a}},565:(e,t,n)=>{var i=n(1894);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},3831:(e,t,n)=>{var i=n(9430);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},149:(e,t,n)=>{var i=n(8195);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},7526:(e,t,n)=>{var i=n(3053);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},3467:(e,t,n)=>{var i=n(8555);"string"==typeof i&&(i=[[e.id,i,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(1812)(i,o);i.locals&&(e.exports=i.locals)},1812:(e,t,i)=>{var n,o,r,l={},c=(n=function(){return window&&document&&document.all&&!window.atob},function(){return o=void 0===o?n.apply(this,arguments):o}),a=(r={},function(e,t){if("function"==typeof e)return e();if(void 0===r[e]){t=function(e,t){return(t||document).querySelector(e)}.call(this,e,t);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}r[e]=t}return r[e]}),s=null,d=0,h=[],p=i(4402);function u(e,t){for(var n=0;n<e.length;n++){var i=e[n],o=l[i.id];if(o){o.refs++;for(var r=0;r<o.parts.length;r++)o.parts[r](i.parts[r]);for(;r<i.parts.length;r++)o.parts.push(x(i.parts[r],t))}else{for(var a=[],r=0;r<i.parts.length;r++)a.push(x(i.parts[r],t));l[i.id]={id:i.id,refs:1,parts:a}}}}function f(e,t){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=t.base?r[0]+t.base:r[0],r={css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(r):n.push(i[a]={id:a,parts:[r]})}return n}function m(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=h[h.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),h.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");e=a(e.insertAt.before,n);n.insertBefore(t,e)}}function b(e){null!==e.parentNode&&(e.parentNode.removeChild(e),0<=(e=h.indexOf(e))&&h.splice(e,1))}function g(e){var t,n=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0!==e.attrs.nonce||(t=function(){0;return i.nc}())&&(e.attrs.nonce=t),v(n,e.attrs),m(e,n),n}function v(t,n){Object.keys(n).forEach(function(e){t.setAttribute(e,n[e])})}function x(t,e){var n,i,o,r,a;if(e.transform&&t.css){if(!(r="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=r}return o=e.singleton?(a=d++,n=s=s||g(e),i=k.bind(null,n,a,!1),k.bind(null,n,a,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,a=document.createElement("link"),void 0===r.attrs.type&&(r.attrs.type="text/css"),r.attrs.rel="stylesheet",v(a,r.attrs),m(r,a),n=a,i=function(e,t,n){var i=n.css,o=n.sourceMap,n=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||n)&&(i=p(i));o&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");o=new Blob([i],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}.bind(null,n,e),function(){b(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(e),i=function(e,t){var n=t.css,t=t.media;t&&e.setAttribute("media",t);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),function(){b(n)}),i(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||i(t=e):o()}}e.exports=function(e,a){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(a=a||{}).attrs="object"==typeof a.attrs?a.attrs:{},a.singleton||"boolean"==typeof a.singleton||(a.singleton=c()),a.insertInto||(a.insertInto="head"),a.insertAt||(a.insertAt="bottom");var s=f(e,a);return u(s,a),function(e){for(var t=[],n=0;n<s.length;n++){var i=s[n];(o=l[i.id]).refs--,t.push(o)}e&&u(f(e,a),a);for(var o,n=0;n<t.length;n++)if(0===(o=t[n]).refs){for(var r=0;r<o.parts.length;r++)o.parts[r]();delete l[o.id]}}};var y,N=(y=[],function(e,t){return y[e]=t,y.filter(Boolean).join("\n")});function k(e,t,n,i){n=n?"":i.css;e.styleSheet?e.styleSheet.cssText=N(t,n):(i=document.createTextNode(n),(n=e.childNodes)[t]&&e.removeChild(n[t]),n.length?e.insertBefore(i,n[t]):e.appendChild(i))}},4402:e=>{e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){t=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(t)?e:(t=0===t.indexOf("//")?t:0===t.indexOf("/")?n+t:i+t.replace(/^\.\//,""),"url("+JSON.stringify(t)+")")})}},9857:()=>{!function(e){var t,n,i,o,r,a,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="#333333" ></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="#333333" ></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="#666666" ></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="#666666" ></path></symbol></svg>',l=(l=document.getElementsByTagName("script"))[l.length-1].getAttribute("data-injectcss");if(l&&!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 c(){r||(r=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=s,s=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(n=t.firstChild).parentNode.insertBefore(i=e,n):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,o=e.document,r=!1,(a=function(){try{o.documentElement.doScroll("left")}catch(e){return void setTimeout(a,50)}c()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,c())})}(window)}},i={};function F(e){var t=i[e];if(void 0!==t)return t.exports;t=i[e]={id:e,exports:{}};return n[e](t,t.exports,F),t.exports}F.d=(e,t)=>{for(var n in t)F.o(t,n)&&!F.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},F.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var W={};return(()=>{"use strict";F.d(W,{default:()=>q});const C=15,$=8;function g(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;")}function o(t,n){if((n=n||this.nodeData).id===t)return n;if(!n.children||!n.children.length)return null;for(let e=0;e<n.children.length;e++){var i=o(t,n.children[e]);if(i)return i}}const i=e=>e.replace(/\brgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/g,function(e,t,n,i){return"#"+("0"+Number(t).toString(16)).substr(-2)+("0"+Number(n).toString(16)).substr(-2)+("0"+Number(i).toString(16)).substr(-2)}),d=(t,e)=>{if(t.parent=e,t.children)for(let e=0;e<t.children.length;e++)d(t.children[e],t)};function N(e,t,n,i){t=i-t,e-=n;let o=Math.atan(Math.abs(t)/Math.abs(e))/3.14*180;e<0&&0<t&&(o=180-o),e<0&&t<0&&(o=180+o),0<e&&t<0&&(o=360-o);e=o+30,t=o-30;return{x1:n+20*Math.cos(Math.PI*e/180),y1:i-20*Math.sin(Math.PI*e/180),x2:n+20*Math.cos(Math.PI*t/180),y2:i-20*Math.sin(Math.PI*t/180)}}function k(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function w(e,t,n){let i,o;var r=(e.cy-n)/(t-e.cx);return o=r>e.h/e.w||r<-e.h/e.w?e.cy-n<0?(i=e.cx-e.h/2/r,e.cy+e.h/2):(i=e.cx+e.h/2/r,e.cy-e.h/2):e.cx-t<0?(i=e.cx+e.w/2,e.cy-e.w*r/2):(i=e.cx-e.w/2,e.cy+e.w*r/2),{x:i,y:o}}function L(){return((new Date).getTime().toString(16)+Math.random().toString(16).substr(2)).substr(2,16)}function h(e){const t=e.parent.children;e=t.indexOf(e);return t.splice(e,1),t.length}const c={afterMoving:!1,mousedown:!1,lastX:null,lastY:null,onMove(e,t){if(this.mousedown){if(this.afterMoving=!0,!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);var n=this.lastX-e.pageX,i=this.lastY-e.pageY;t.scrollTo(t.scrollLeft+n,t.scrollTop+i),this.lastX=e.pageX,this.lastY=e.pageY}},clear(){this.afterMoving=!1,this.mousedown=!1,this.lastX=null,this.lastY=null}};function t(e){this.dom=e,this.mousedown=!1,this.lastX=null,this.lastY=null}t.prototype.init=function(e,i){this.handleMouseMove=e=>{if(e.stopPropagation(),this.mousedown){if(!this.lastX)return this.lastX=e.pageX,void(this.lastY=e.pageY);var t=this.lastX-e.pageX,n=this.lastY-e.pageY;i(t,n),this.lastX=e.pageX,this.lastY=e.pageY}},this.handleMouseDown=e=>{e.stopPropagation(),this.mousedown=!0},this.handleClear=e=>{e.stopPropagation(),this.clear()},e.addEventListener("mousemove",this.handleMouseMove),e.addEventListener("mouseleave",this.handleClear),e.addEventListener("mouseup",this.handleClear),this.dom.addEventListener("mousedown",this.handleMouseDown)},t.prototype.destory=function(e){e.removeEventListener("mousemove",this.handleMouseMove),e.removeEventListener("mouseleave",this.handleClear),e.removeEventListener("mouseup",this.handleClear),this.dom.removeEventListener("mousedown",this.handleMouseDown)},t.prototype.clear=function(){this.mousedown=!1,this.lastX=null,this.lastY=null};function r(e,t){if(e.innerText=t.topic,t.style&&(e.style.color=t.style.color||"inherit",e.style.background=t.style.background||"inherit",e.style.fontSize=t.style.fontSize+"px",e.style.fontWeight=t.style.fontWeight||"normal"),t.hyperLink){const n=s.createElement("a");n.className="hyper-link",n.target="_blank",n.innerText="🔗",n.href=t.hyperLink,e.appendChild(n)}if(t.icons){const i=s.createElement("span");i.className="icons",i.innerHTML=t.icons.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(i)}if(t.tags){const o=s.createElement("div");o.className="tags",o.innerHTML=t.tags.map(e=>`<span>${g(e)}</span>`).join(""),e.appendChild(o)}}const s=document,E=(e,t)=>{const n=t?t.mindElixirBox:s;return n.querySelector(`[data-nodeid=me${e}]`)};const p=function(e){const t=s.createElement("epd");return t.innerText=!1!==e?"-":"+",t.expanded=!1!==e,t.className=!1!==e?"minus":"",t};function S(e){const t=M.createElementNS(j,"svg");return t.setAttribute("class",e),t}function e(e,t,n,i){const o=M.createElementNS(j,"line");return o.setAttribute("x1",e),o.setAttribute("y1",t),o.setAttribute("x2",n),o.setAttribute("y2",i),o.setAttribute("stroke","#bbb"),o.setAttribute("fill","none"),o.setAttribute("stroke-width","2"),o}const M=document,j="http://www.w3.org/2000/svg";function n(e){return e.isFocusMode?e.nodeDataBackup:e.nodeData}const u=document;function a(e,t){if(e){const i=e.nodeObj;!1===i.expanded&&(this.expandNode(e,!0),e=E(i.id));var n=t||this.generateNewObj();i.children?i.children.push(n):i.children=[n],d(this.nodeData);const o=e.parentElement;var{grp:t,top:e}=this.createGroup(n);if("T"===o.tagName){if(o.children[1])o.nextSibling.appendChild(t);else{const r=u.createElement("children");r.appendChild(t),o.appendChild(p(!0)),o.parentElement.insertBefore(r,o.nextSibling)}this.linkDiv(t.offsetParent)}else"ROOT"===o.tagName&&(this.processPrimaryNode(t,n),o.nextSibling.appendChild(t),this.linkDiv());return{newTop:e,newNodeObj:n}}}let O="";var l={addChild:"插入子节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",clickTips:"请点击目标节点",font:"文字",background:"背景",tag:"标签",icon:"图标",tagsSeparate:"多个标签半角逗号分隔",iconsSeparate:"多个图标半角逗号分隔"};const v={cn:l,zh_CN:l,zh_TW:{addChild:"插入子節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",clickTips:"請點擊目標節點",font:"文字",background:"背景",tag:"標簽",icon:"圖標",tagsSeparate:"多個標簽半角逗號分隔",iconsSeparate:"多個圖標半角逗號分隔"},en:{addChild:"Add a child",addSibling:"Add a 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",font:"Font",background:"Background",tag:"Tag",icon:"Icon",tagsSeparate:"Separate tags by comma",iconsSeparate:"Separate icons by comma"},ja:{addChild:"子ノードを追加する",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",clickTips:"ターゲットノードをクリックしてください",font:"フォント",background:"バックグラウンド",tag:"タグ",icon:"アイコン",tagsSeparate:"複数タグはカンマ区切り",iconsSeparate:"複数アイコンはカンマ区切り"},pt:{addChild:"Adicionar item filho",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",font:"Fonte",background:"Cor de fundo",tag:"Tag",icon:"Icone",tagsSeparate:"Separe tags por virgula",iconsSeparate:"Separe icones por virgula"}};function f(i,t){var n=(e,t,n)=>{const i=document.createElement("li");return i.id=e,i.innerHTML=`<span>${g(t)}</span><span>${g(n)}</span>`,i};const o=v[i.locale]?i.locale:"en",e=n("cm-add_child",v[o].addChild,"tab"),r=n("cm-add_sibling",v[o].addSibling,"enter"),a=n("cm-remove_child",v[o].removeNode,"delete"),s=n("cm-fucus",v[o].focus,""),l=n("cm-unfucus",v[o].cancelFocus,""),c=n("cm-up",v[o].moveUp,"PgUp"),d=n("cm-down",v[o].moveDown,"Pgdn"),h=n("cm-down",v[o].link,""),p=document.createElement("ul");if(p.className="menu-list",p.appendChild(e),p.appendChild(r),p.appendChild(a),t&&!t.focus||(p.appendChild(s),p.appendChild(l)),p.appendChild(c),p.appendChild(d),t&&!t.link||p.appendChild(h),t&&t.extend)for(let e=0;e<t.extend.length;e++){const m=t.extend[e],b=n(m.name,m.name,m.key||"");p.appendChild(b),b.onclick=e=>{m.onclick(e)}}const u=document.createElement("cmenu");u.appendChild(p),u.hidden=!0,i.container.append(u);let f=!0;i.container.oncontextmenu=function(e){var t,n;e.preventDefault(),!i.editable||"TPC"===(n=e.target).tagName&&(f="ROOT"===n.parentElement.tagName,f?(s.className="disabled",c.className="disabled",d.className="disabled",r.className="disabled",a.className="disabled"):(s.className="",c.className="",d.className="",r.className="",a.className=""),i.selectNode(n),u.hidden=!1,t=p.offsetHeight,n=p.offsetWidth,t+e.clientY>window.innerHeight?(p.style.top="",p.style.bottom="0px"):(p.style.bottom="",p.style.top=e.clientY+15+"px"),n+e.clientX>window.innerWidth?(p.style.left="",p.style.right="0px"):(p.style.right="",p.style.left=e.clientX+10+"px"))},u.onclick=e=>{e.target===u&&(u.hidden=!0)},e.onclick=e=>{i.addChild(),u.hidden=!0},r.onclick=e=>{f||(i.insertSibling(),u.hidden=!0)},a.onclick=e=>{f||(i.removeNode(),u.hidden=!0)},s.onclick=e=>{f||(i.focusNode(i.currentNode),u.hidden=!0)},l.onclick=e=>{i.cancelFocus(),u.hidden=!0},c.onclick=e=>{f||(i.moveUpNode(),u.hidden=!0)},d.onclick=e=>{f||(i.moveDownNode(),u.hidden=!0)},h.onclick=e=>{u.hidden=!0;const t=i.currentNode,n=(e=>{const t=document.createElement("div");return t.innerText=e,t.style.cssText="position:absolute;bottom:20px;left:50%;transform:translateX(-50%);",t})(v[o].clickTips);i.container.appendChild(n),i.map.addEventListener("click",e=>{e.preventDefault(),n.remove(),"T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||i.createLink(t,i.currentNode)},{once:!0})}}const m=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
2
2
  <use xlink:href="#icon-${t}"></use>
3
- </svg>`,n};function B(e){e.container.append(function(e){const t=document.createElement("toolbar"),n=P("fullscreen","full"),i=P("toCenter","living"),o=P("zoomout","move"),r=P("zoomin","add"),a=document.createElement("span");return a.innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(r),t.className="rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},r.onclick=()=>{1.6<e.scaleVal||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("toolbar"),n=P("tbltl","left"),i=P("tbltr","right"),o=P("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}const H=e=>{const t=document.createElement("div");return t.id=e,t},R=["#2c3e50","#34495e","#7f8c8d","#94a5a6","#bdc3c7","#ecf0f1","#8e44ad","#9b59b6","#2980b9","#3298db","#c0392c","#e74c3c","#d35400","#f39c11","#f1c40e","#17a085","#27ae61","#2ecc71"];var I=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};function U(e,t){var n=t.parentNode.parentNode.contains(e);return e&&"TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root}const V=document,q=function(e){if(e)for(const t of e.getElementsByClassName("insert-preview")||[])t.remove()};function F(n){let o,r,a;var i,s,l;n.map.addEventListener("dragstart",function(e){o=e.target,o.parentNode.parentNode.style.opacity="0.5",p.clear()}),n.map.addEventListener("dragend",function(t){return I(this,void 0,void 0,function*(){t.target.style.opacity="",q(a);var e=o.nodeObj;switch(r){case"before":n.moveNodeBefore(o,a),n.selectNode(S(e.id));break;case"after":n.moveNodeAfter(o,a),n.selectNode(S(e.id));break;case"in":n.moveNode(o,a)}o.parentNode.parentNode.style.opacity="1",o=null})}),n.map.addEventListener("dragover",(i=function(e){q(a);const t=V.elementFromPoint(e.clientX,e.clientY-12);if(U(t,o)){a=t;var n=t.getBoundingClientRect().y;e.clientY>n+t.clientHeight?r="after":e.clientY>n+t.clientHeight/2&&(r="in")}else{const i=V.elementFromPoint(e.clientX,e.clientY+12);U(i,o)?(a=i,n=i.getBoundingClientRect().y,e.clientY<n?r="before":e.clientY<n+i.clientHeight/2&&(r="in")):r=a=null}a&&function(e,t){if(!t)return q(e);const n=e.getElementsByClassName("insert-preview");t=`insert-preview ${t} show`;if(0<n.length)n[0].className=t;else{const i=V.createElement("div");i.className=t,e.appendChild(i)}}(a,r)},s=200,l=Date.now(),function(){var e=arguments,t=Date.now();s<=t-l&&(i.apply(this,e),l=Date.now())}))}function W(){this.handlers={}}W.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,t){if(this.handlers[e]instanceof Array)for(var n=this.handlers[e],i=0;i<n.length;i++)n[i](t)},removeListener:function(e,t){if(this.handlers[e]){var n=this.handlers[e];if(t){if(n.length)for(var i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}}};Z(565),Z(3831),Z(3467),Z(7526),Z(149),Z(9857);var _=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};const Y=S,X=document;function G({el:e,data:t,direction:n,locale:i,draggable:o,editable:r,contextMenu:a,contextMenuOption:s,toolBar:l,nodeMenu:c,keypress:d,before:h,newTopicName:p,allowUndo:u,primaryLinkStyle:f,overflowHidden:m,primaryNodeHorizontalGap:b,primaryNodeVerticalGap:g,mobileMenu:v}){e=document.querySelector(e);e&&(this.mindElixirBox=e,this.before=h||{},this.nodeData=t.nodeData,this.linkData=t.linkData||{},this.locale=i,this.contextMenuOption=s,this.contextMenu=void 0===a||a,this.toolBar=void 0===l||l,this.nodeMenu=void 0===c||c,this.keypress=void 0===d||d,this.mobileMenu=v,this.direction="number"==typeof n?n:1,x.draggable=void 0===o||o,x.newTopicName=p,this.editable=void 0===r||r,this.allowUndo=void 0===u||u,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=f||0,this.overflowHidden=m,this.primaryNodeHorizontalGap=b,this.primaryNodeVerticalGap=g,this.bus=new W,this.bus.addListener("operation",e=>{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)}),this.history=[],this.isUndo=!1,this.undo=function(){var e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(Y(e.obj.fromObj.id),Y(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(Y(e.originSiblingId),e.obj):this.addChild(Y(e.originParentId),e.obj):"addChild"===e.name?this.removeNode(Y(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(Y(e.obj.id),e.origin):this.isUndo=!1)})}function K(t){return function(...e){return _(this,void 0,void 0,function*(){this.before[t.name]&&!(yield this.before[t.name].apply(this,e))||t.apply(this,e)})}}G.prototype={addParentLink:d,getObjById:o,insertSibling:K(function(e,t){var n=e||this.currentNode;if(n){var i=n.nodeObj;if(!0!==i.root){var o=t||c();!function(e,t){const n=e.parent.children;e=n.indexOf(e),n.splice(e+1,0,t)}(i,o),d(this.nodeData);var e=n.parentElement,{grp:i,top:n}=u(o);const r=e.parentNode.parentNode;r.insertBefore(i,e.parentNode.nextSibling),"box"===r.className?(this.processPrimaryNode(i,o),this.linkDiv()):this.linkDiv(i.offsetParent),t||this.createInputDiv(n.children[0]),this.selectNode(n.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}else this.addChild()}}),insertBefore:K(function(e,t){var n=e||this.currentNode;if(n){var i=n.nodeObj;if(!0!==i.root){var o=t||c();!function(e,t){const n=e.parent.children;e=n.indexOf(e),n.splice(e,0,t)}(i,o),d(this.nodeData);var e=n.parentElement,{grp:i,top:n}=u(o);const r=e.parentNode.parentNode;r.insertBefore(i,e.parentNode),"box"===r.className?(this.processPrimaryNode(i,o),this.linkDiv()):this.linkDiv(i.offsetParent),t||this.createInputDiv(n.children[0]),this.selectNode(n.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}else this.addChild()}}),addChild:K(function(e,t){let n=e||this.currentNode;if(n){const r=n.nodeObj;!1===r.expanded&&(this.expandNode(n,!0),n=S(r.id));var i=t||c();r.expanded=!0,r.children?r.children.push(i):r.children=[i],d(this.nodeData);const a=n.parentElement;var{grp:o,top:e}=u(i);if("T"===a.tagName){if(a.children[1])a.nextSibling.appendChild(o);else{const s=y.createElement("children");s.appendChild(o),a.appendChild(b(!0)),a.parentElement.insertBefore(s,a.nextSibling)}this.linkDiv(o.offsetParent)}else"ROOT"===a.tagName&&(this.processPrimaryNode(o,i),a.nextSibling.appendChild(o),this.linkDiv());t||this.createInputDiv(e.children[0]),this.selectNode(e.children[0],!0),this.bus.fire("operation",{name:"addChild",obj:i})}}),moveNode:K(function(e,t){var n,i,o=e.nodeObj,r=t.nodeObj,a=o.parent.id;if(!1===r.expanded&&(this.expandNode(t,!0),e=S(o.id),t=S(r.id)),function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(o,r)){i=r,h(n=o),i.children?i.children.push(n):i.children=[n],d(this.nodeData);const s=e.parentElement;e=s.parentNode.parentNode;const l=t.parentElement;if("box"===e.className?s.parentNode.lastChild.remove():"box"===s.parentNode.className&&(s.style.cssText=""),"T"===l.tagName)if("box"===e.className&&(s.parentNode.className=""),l.children[1])l.nextSibling.appendChild(s.parentNode);else{const c=y.createElement("children");c.appendChild(s.parentNode),l.appendChild(b(!0)),l.parentElement.insertBefore(c,l.nextSibling)}else"ROOT"===l.tagName&&(this.processPrimaryNode(s.parentNode,o),l.nextSibling.appendChild(s.parentNode));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:o,toObj:r,originParentId:a}})}}),removeNode:K(function(e){var t=e||this.currentNode;if(t){const o=t.nodeObj;if(!0===o.root)throw new Error("Can not remove root node");var n=o.parent.children.findIndex(e=>e===o),e=o.parent.children[n+1],n=e&&e.id,e=h(o);const r=t.parentNode;if("ROOT"!==r.tagName){if(0===e){const a=r.parentNode.parentNode.previousSibling;"ROOT"!==a.tagName&&a.children[1].remove(),this.selectParent()}else this.selectPrevSibling()||this.selectNextSibling();for(const s in this.linkData){var i=this.linkData[s];i.from!==r.firstChild&&i.to!==r.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[s].id}]`))}r.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:o,originSiblingId:n,originParentId:o.parent.id})}}}),moveUpNode:K(function(e){e=e||this.currentNode;if(e){const t=e.parentNode.parentNode;e=e.nodeObj;!function(e){const t=e.parent.children;var n=t.indexOf(e),e=t[n];0===n?(t[n]=t[t.length-1],t[t.length-1]=e):(t[n]=t[n-1],t[n-1]=e)}(e),t.parentNode.insertBefore(t,t.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:e})}}),moveDownNode:K(function(e){e=e||this.currentNode;if(e){const t=e.parentNode.parentNode;e=e.nodeObj;!function(e){const t=e.parent.children;var n=t.indexOf(e),e=t[n];n===t.length-1?(t[n]=t[0],t[0]=e):(t[n]=t[n+1],t[n+1]=e)}(e),t.nextSibling?t.parentNode.insertBefore(t,t.nextSibling.nextSibling):t.parentNode.prepend(t),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:e})}}),beginEdit:K(function(e){e=e||this.currentNode;e&&this.createInputDiv(e)}),moveNodeBefore:K(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){h(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i,0,e)}(n,i),d(this.nodeData);var r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const a=e.parentNode.parentNode;a.insertBefore(r,t),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeBefore",obj:{fromObj:n,toObj:i,originParentId:o}})}),moveNodeAfter:K(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){h(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i+1,0,e)}(n,i),d(this.nodeData);var r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const a=e.parentNode.parentNode;a.insertBefore(r,t.nextSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeAfter",obj:{fromObj:n,toObj:i,originParentId:o}})}),updateNodeStyle:function(e){if(e.style){const n=S(e.id,this);var t={color:n.style.color&&i(n.style.color),background:n.style.background&&i(n.style.background),fontSize:n.style.fontSize&&n.style.fontSize+"px",fontWeight:n.style.fontWeight};n.style.color=e.style.color,n.style.background=e.style.background,n.style.fontSize=e.style.fontSize+"px",n.style.fontWeight=e.style.fontWeight||"normal",this.linkDiv(),this.bus.fire("operation",{name:"editStyle",obj:e,origin:t})}},updateNodeTags:function(e,t){var n;t&&(n=e.tags,e.tags=t,t=S(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editTags",obj:e,origin:n}))},updateNodeIcons:function(e,t){var n;t&&(n=e.icons,e.icons=t,t=S(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editIcons",obj:e,origin:n}))},processPrimaryNode:function(e,t){this.direction===s?e.className="lhs":this.direction===l?e.className="rhs":this.direction===C&&(y.querySelectorAll(".lhs").length<=y.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=s):(e.className="rhs",t.direction=l))},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(r,a,s,l){var c=this.map.getBoundingClientRect();if(r&&a){var d=r.getBoundingClientRect(),h=a.getBoundingClientRect(),p=(d.x+d.width/2-c.x)/this.scaleVal,u=(d.y+d.height/2-c.y)/this.scaleVal,f=(h.x+h.width/2-c.x)/this.scaleVal,m=(h.y+h.height/2-c.y)/this.scaleVal;let e,t,n,i;i=s?(e=p+l.delta1.x,t=u+l.delta1.y,n=f+l.delta2.x,m+l.delta2.y):(u+m)/2-u<=d.height/2?(e=(d.x+d.width-c.x)/this.scaleVal+100,t=u,n=(h.x+h.width-c.x)/this.scaleVal+100,m):(e=(p+f)/2,t=(u+m)/2,n=(p+f)/2,(u+m)/2);var b={cx:p,cy:u,w:d.width,h:d.height},g={cx:f,cy:m,w:h.width,h:h.height},v=k(b,e,t),x=v.x,c=v.y,d=w(g,n,i),h=d.x,v=d.y,d=N(n,i,h,v);const y=function(e,t){const n=j.createElementNS(D,"g"),i=j.createElementNS(D,"path"),o=j.createElementNS(D,"path");return o.setAttribute("d",t),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"),n.appendChild(i),n.appendChild(o),n}(`M ${x} ${c} C ${e} ${t} ${n} ${i} ${h} ${v}`,`M ${d.x1} ${d.y1} L ${h} ${v} L ${d.x2} ${d.y2}`);let o;s?(o={id:l.id,label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[l.id]=o,y.linkObj=o,y.dataset.linkid=l.id):(o={id:E(),label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[o.id]=o,y.linkObj=o,y.dataset.linkid=o.id,this.currentLink=y),this.linkSvgGroup.appendChild(y),s||this.showLinkController(e,t,n,i,o,b,g)}},removeLink:function(e){let t;t=e||this.currentLink,t&&(this.hideLinkController(),e=t.linkObj.id,delete this.linkData[e],t.remove(),t=null)},selectLink:function(e){var t=(this.currentLink=e).linkObj;const n=t.from,i=t.to;var o=this.map.getBoundingClientRect(),r=n.getBoundingClientRect(),a=i.getBoundingClientRect(),s=(r.x+r.width/2-o.x)/this.scaleVal,l=(r.y+r.height/2-o.y)/this.scaleVal,e=(a.x+a.width/2-o.x)/this.scaleVal,o=(a.y+a.height/2-o.y)/this.scaleVal,r={cx:s,cy:l,w:r.width,h:r.height},a={cx:e,cy:o,w:a.width,h:a.height},s=s+t.delta1.x,l=l+t.delta1.y,e=e+t.delta2.x,o=o+t.delta2.y;this.showLinkController(s,l,e,o,t,r,a)},hideLinkController:function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},showLinkController:function(n,i,o,r,a,s,l){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial";var e=k(s,n,i);let c=e.x,d=e.y;e=w(l,o,r);let h=e.x,p=e.y;this.P2.style.cssText=`top:${i}px;left:${n}px;`,this.P3.style.cssText=`top:${r}px;left:${o}px;`,this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=new t(this.P2),this.helper2=new t(this.P3),this.helper1.init(this.map,(e,t)=>{n-=e/this.scaleVal,i-=t/this.scaleVal;t=k(s,n,i);c=t.x,d=t.y,this.P2.style.top=i+"px",this.P2.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} ${p}`),this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),a.delta1.x=n-s.cx,a.delta1.y=i-s.cy}),this.helper2.init(this.map,(e,t)=>{o-=e/this.scaleVal,r-=t/this.scaleVal;t=w(l,o,r);h=t.x,p=t.y;t=N(o,r,h,p);this.P3.style.top=r+"px",this.P3.style.left=o+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} ${p}`),this.currentLink.children[1].setAttribute("d",`M ${t.x1} ${t.y1} L ${h} ${p} L ${t.x2} ${t.y2}`),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),a.delta2.x=o-l.cx,a.delta2.y=r-l.cy})},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=a(this.nodeData);r(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const i=this.nodeData.children;if(i&&0!==i.length){if(this.direction===C){let t=0,n=0;i.map(e=>{void 0===e.direction?t<=n?(e.direction=s,t+=1):(e.direction=l,n+=1):e.direction===s?t+=1:n+=1})}v(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){var i=this.primaryNodeHorizontalGap||65,r=this.primaryNodeVerticalGap||25;const o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;var a=this.box.children;this.svg2nd.innerHTML="";let n=0,s,l=0,c=0,d=0,h=0,p=0,u;if(this.direction===C){let t=0,n=0,i=0,o=0;for(let e=0;e<a.length;e++){var f=a[e];"lhs"===f.className?(h+=f.offsetHeight+r,i+=f.offsetHeight,t+=1):(p+=f.offsetHeight+r,o+=f.offsetHeight,n+=1)}l=h>p?(u=1e4-Math.max(h)/2,s="r",(h-o)/(n-1)):(u=1e4-Math.max(p)/2,s="l",(p-i)/(t-1))}else{for(let e=0;e<a.length;e++){var m=a[e];n+=m.offsetHeight+r}u=1e4-n/2}let b="";for(let e=0;e<a.length;e++){let t,n;const x=a[e];var g=x.offsetHeight;if("lhs"===x.className){x.style.top=u+c+"px",x.style.left=1e4-o.offsetWidth/2-i-x.offsetWidth+"px",t=1e4-o.offsetWidth/2-i-15,n=u+c+g/2;let e=1e4;2===this.primaryLinkStyle?(this.direction===C&&(e=1e4-o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
3
+ </svg>`,n};function b(e){e.container.append(function(e){const t=document.createElement("toolbar"),n=m("fullscreen","full"),i=m("toCenter","living"),o=m("zoomout","move"),r=m("zoomin","add"),a=document.createElement("span");return a.innerText="100%",t.appendChild(n),t.appendChild(i),t.appendChild(o),t.appendChild(r),t.className="rb",n.onclick=()=>{e.container.requestFullscreen()},i.onclick=()=>{e.toCenter()},o.onclick=()=>{e.scaleVal<.6||e.scale(e.scaleVal-=.2)},r.onclick=()=>{1.6<e.scaleVal||e.scale(e.scaleVal+=.2)},t}(e)),e.container.append(function(e){const t=document.createElement("toolbar"),n=m("tbltl","left"),i=m("tbltr","right"),o=m("tblts","side");return t.appendChild(n),t.appendChild(i),t.appendChild(o),t.className="lt",n.onclick=()=>{e.initLeft()},i.onclick=()=>{e.initRight()},o.onclick=()=>{e.initSide()},t}(e))}const x=e=>{const t=document.createElement("div");return t.id=e,t},y=["#2c3e50","#34495e","#7f8c8d","#94a5a6","#bdc3c7","#ecf0f1","#8e44ad","#9b59b6","#2980b9","#3298db","#c0392c","#e74c3c","#d35400","#f39c11","#f1c40e","#17a085","#27ae61","#2ecc71"];var D=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};function T(e,t){var n=t.parentNode.parentNode.contains(e);return e&&"TPC"===e.tagName&&e!==t&&!n&&!0!==e.nodeObj.root}const z=document,A=function(e){if(e)for(const t of e.getElementsByClassName("insert-preview")||[])t.remove()};function P(n){let o,r,a;var i,s,l;n.map.addEventListener("dragstart",function(e){o=e.target,o.parentNode.parentNode.style.opacity="0.5",c.clear()}),n.map.addEventListener("dragend",function(t){return D(this,void 0,void 0,function*(){t.target.style.opacity="",A(a);var e=o.nodeObj;switch(r){case"before":n.moveNodeBefore(o,a),n.selectNode(E(e.id));break;case"after":n.moveNodeAfter(o,a),n.selectNode(E(e.id));break;case"in":n.moveNode(o,a)}o.parentNode.parentNode.style.opacity="1",o=null})}),n.map.addEventListener("dragover",(i=function(e){A(a);const t=z.elementFromPoint(e.clientX,e.clientY-12);if(T(t,o)){a=t;var n=t.getBoundingClientRect().y;e.clientY>n+t.clientHeight?r="after":e.clientY>n+t.clientHeight/2&&(r="in")}else{const i=z.elementFromPoint(e.clientX,e.clientY+12);T(i,o)?(a=i,n=i.getBoundingClientRect().y,e.clientY<n?r="before":e.clientY<n+i.clientHeight/2&&(r="in")):r=a=null}a&&function(e,t){if(!t)return A(e);const n=e.getElementsByClassName("insert-preview");t=`insert-preview ${t} show`;if(0<n.length)n[0].className=t;else{const i=z.createElement("div");i.className=t,e.appendChild(i)}}(a,r)},s=200,l=Date.now(),function(){var e=arguments,t=Date.now();s<=t-l&&(i.apply(this,e),l=Date.now())}))}function B(){this.handlers={}}B.prototype={showHandler:function(){},addListener:function(e,t){void 0===this.handlers[e]&&(this.handlers[e]=[]),this.handlers[e].push(t)},fire:function(e,t){if(this.handlers[e]instanceof Array)for(var n=this.handlers[e],i=0;i<n.length;i++)n[i](t)},removeListener:function(e,t){if(this.handlers[e]){var n=this.handlers[e];if(t){if(n.length)for(var i=0;i<n.length;i++)n[i]===t&&this.handlers[e].splice(i,1)}else n.length=0}}};F(565),F(3831),F(3467),F(7526),F(149),F(9857);var H=function(e,a,s,l){return new(s=s||Promise)(function(n,t){function i(e){try{r(l.next(e))}catch(e){t(e)}}function o(e){try{r(l.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((l=l.apply(e,a||[])).next())})};const R=E,I=document;function U({el:e,data:t,direction:n,locale:i,draggable:o,editable:r,contextMenu:a,contextMenuOption:s,toolBar:l,nodeMenu:c,keypress:d,before:h,newTopicName:p,allowUndo:u,primaryLinkStyle:f,overflowHidden:m,primaryNodeHorizontalGap:b,primaryNodeVerticalGap:g,mobileMenu:v}){e=document.querySelector(e);e&&(this.mindElixirBox=e,this.before=h||{},this.nodeData=t.nodeData,this.linkData=t.linkData||{},this.locale=i,this.contextMenuOption=s,this.contextMenu=void 0===a||a,this.toolBar=void 0===l||l,this.nodeMenu=void 0===c||c,this.keypress=void 0===d||d,this.mobileMenu=v,this.direction="number"==typeof n?n:1,this.draggable=void 0===o||o,this.newTopicName=p,this.editable=void 0===r||r,this.allowUndo=void 0===u||u,this.currentNode=null,this.currentLink=null,this.inputDiv=null,this.scaleVal=1,this.tempDirection=null,this.primaryLinkStyle=f||0,this.overflowHidden=m,this.primaryNodeHorizontalGap=b,this.primaryNodeVerticalGap=g,this.bus=new B,this.bus.addListener("operation",e=>{this.isUndo?this.isUndo=!1:["moveNode","removeNode","addChild","finishEdit","editStyle","editTags","editIcons"].includes(e.name)&&this.history.push(e)}),this.history=[],this.isUndo=!1,this.undo=function(){var e=this.history.pop();e&&(this.isUndo=!0,"moveNode"===e.name?this.moveNode(R(e.obj.fromObj.id),R(e.obj.originParentId)):"removeNode"===e.name?e.originSiblingId?this.insertBefore(R(e.originSiblingId),e.obj):this.addChild(R(e.originParentId),e.obj):"addChild"===e.name||"copyNode"===e.name?this.removeNode(R(e.obj.id)):"finishEdit"===e.name?this.setNodeTopic(R(e.obj.id),e.origin):this.isUndo=!1)})}function V(t){return function(...e){return H(this,void 0,void 0,function*(){this.before[t.name]&&!(yield this.before[t.name].apply(this,e))||t.apply(this,e)})}}U.prototype={addParentLink:d,getObjById:o,generateNewObj:function(){var e=L();return{topic:this.newTopicName||"new node",id:e}},insertSibling:V(function(e,t){var n=e||this.currentNode;if(n){var i=n.nodeObj;if(!0!==i.root){var o=t||this.generateNewObj();!function(e,t){const n=e.parent.children;e=n.indexOf(e),n.splice(e+1,0,t)}(i,o),d(this.nodeData);var e=n.parentElement,{grp:i,top:n}=this.createGroup(o);const r=e.parentNode.parentNode;r.insertBefore(i,e.parentNode.nextSibling),"box"===r.className?(this.processPrimaryNode(i,o),this.linkDiv()):this.linkDiv(i.offsetParent),t||this.createInputDiv(n.children[0]),this.selectNode(n.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}else this.addChild()}}),insertBefore:V(function(e,t){var n=e||this.currentNode;if(n){var i=n.nodeObj;if(!0!==i.root){var o=t||this.generateNewObj();!function(e,t){const n=e.parent.children;e=n.indexOf(e),n.splice(e,0,t)}(i,o),d(this.nodeData);var e=n.parentElement,{grp:i,top:n}=this.createGroup(o);const r=e.parentNode.parentNode;r.insertBefore(i,e.parentNode),"box"===r.className?(this.processPrimaryNode(i,o),this.linkDiv()):this.linkDiv(i.offsetParent),t||this.createInputDiv(n.children[0]),this.selectNode(n.children[0],!0),this.bus.fire("operation",{name:"insertSibling",obj:o})}else this.addChild()}}),addChild:V(function(e,t){var n=e||this.currentNode;n&&({newTop:e,newNodeObj:n}=a.call(this,n,t),t||this.createInputDiv(e.children[0]),this.selectNode(e.children[0],!0),this.bus.fire("operation",{name:"addChild",obj:n}))}),copyNode:V(function(e,t){e=JSON.parse(JSON.stringify(e.nodeObj,(e,t)=>{if("parent"!==e)return t}));!function t(n){if(n.id=L(),n.children)for(let e=0;e<n.children.length;e++)t(n.children[e])}(e);var e=a.call(this,t,e)["newNodeObj"];this.bus.fire("operation",{name:"copyNode",obj:e})}),moveNode:V(function(e,t){var n,i,o=e.nodeObj,r=t.nodeObj,a=o.parent.id;if(!1===r.expanded&&(this.expandNode(t,!0),e=E(o.id),t=E(r.id)),function(e,t){let n=!0;for(;t.parent;){if(t.parent===e){n=!1;break}t=t.parent}return n}(o,r)){i=r,h(n=o),i.children?i.children.push(n):i.children=[n],d(this.nodeData);const s=e.parentElement;e=s.parentNode.parentNode;const l=t.parentElement;if("box"===e.className?s.parentNode.lastChild.remove():"box"===s.parentNode.className&&(s.style.cssText=""),"T"===l.tagName)if("box"===e.className&&(s.parentNode.className=""),l.children[1])l.nextSibling.appendChild(s.parentNode);else{const c=u.createElement("children");c.appendChild(s.parentNode),l.appendChild(p(!0)),l.parentElement.insertBefore(c,l.nextSibling)}else"ROOT"===l.tagName&&(this.processPrimaryNode(s.parentNode,o),l.nextSibling.appendChild(s.parentNode));this.linkDiv(),this.bus.fire("operation",{name:"moveNode",obj:{fromObj:o,toObj:r,originParentId:a}})}}),removeNode:V(function(e){var t=e||this.currentNode;if(t){const o=t.nodeObj;if(!0===o.root)throw new Error("Can not remove root node");var n=o.parent.children.findIndex(e=>e===o),e=o.parent.children[n+1],n=e&&e.id,e=h(o);const r=t.parentNode;if("ROOT"!==r.tagName){if(0===e){const a=r.parentNode.parentNode.previousSibling;"ROOT"!==a.tagName&&a.children[1].remove(),this.selectParent()}else this.selectPrevSibling()||this.selectNextSibling();for(const s in this.linkData){var i=this.linkData[s];i.from!==r.firstChild&&i.to!==r.firstChild||this.removeLink(this.mindElixirBox.querySelector(`[data-linkid=${this.linkData[s].id}]`))}r.parentNode.remove(),this.linkDiv(),this.bus.fire("operation",{name:"removeNode",obj:o,originSiblingId:n,originParentId:o.parent.id})}}}),moveUpNode:V(function(e){e=e||this.currentNode;if(e){const t=e.parentNode.parentNode;e=e.nodeObj;!function(e){const t=e.parent.children;var n=t.indexOf(e),e=t[n];0===n?(t[n]=t[t.length-1],t[t.length-1]=e):(t[n]=t[n-1],t[n-1]=e)}(e),t.parentNode.insertBefore(t,t.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:e})}}),moveDownNode:V(function(e){e=e||this.currentNode;if(e){const t=e.parentNode.parentNode;e=e.nodeObj;!function(e){const t=e.parent.children;var n=t.indexOf(e),e=t[n];n===t.length-1?(t[n]=t[0],t[0]=e):(t[n]=t[n+1],t[n+1]=e)}(e),t.nextSibling?t.parentNode.insertBefore(t,t.nextSibling.nextSibling):t.parentNode.prepend(t),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:e})}}),beginEdit:V(function(e){e=e||this.currentNode;e&&this.createInputDiv(e)}),moveNodeBefore:V(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){h(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i,0,e)}(n,i),d(this.nodeData);var r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const a=e.parentNode.parentNode;a.insertBefore(r,t),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeBefore",obj:{fromObj:n,toObj:i,originParentId:o}})}),moveNodeAfter:V(function(e,t){var n=e.nodeObj,i=t.nodeObj,o=n.parent.id;!function(e,t){h(e);const n=t.parent.children;let i=0;for(let e=0;e<n.length;e++)if(n[e]===t){i=e;break}n.splice(i+1,0,e)}(n,i),d(this.nodeData);var r=e.parentElement.parentNode,e=t.parentElement,t=e.parentNode;const a=e.parentNode.parentNode;a.insertBefore(r,t.nextSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveNodeAfter",obj:{fromObj:n,toObj:i,originParentId:o}})}),updateNodeStyle:function(e){if(e.style){const n=E(e.id,this);var t={color:n.style.color&&i(n.style.color),background:n.style.background&&i(n.style.background),fontSize:n.style.fontSize&&n.style.fontSize+"px",fontWeight:n.style.fontWeight};n.style.color=e.style.color,n.style.background=e.style.background,n.style.fontSize=e.style.fontSize+"px",n.style.fontWeight=e.style.fontWeight||"normal",this.linkDiv(),this.bus.fire("operation",{name:"editStyle",obj:e,origin:t})}},updateNodeTags:function(e,t){var n;t&&(n=e.tags,e.tags=t,t=E(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editTags",obj:e,origin:n}))},updateNodeIcons:function(e,t){var n;t&&(n=e.icons,e.icons=t,t=E(e.id),r(t,e),this.linkDiv(),this.bus.fire("operation",{name:"editIcons",obj:e,origin:n}))},processPrimaryNode:function(e,t){0===this.direction?e.className="lhs":1===this.direction?e.className="rhs":2===this.direction&&(u.querySelectorAll(".lhs").length<=u.querySelectorAll(".rhs").length?(e.className="lhs",t.direction=0):(e.className="rhs",t.direction=1))},setNodeTopic:function(e,t){e.childNodes[0].textContent=t,e.nodeObj.topic=t,this.linkDiv()},createLink:function(r,a,s,l){var c=this.map.getBoundingClientRect();if(r&&a){var d=r.getBoundingClientRect(),h=a.getBoundingClientRect(),p=(d.x+d.width/2-c.x)/this.scaleVal,u=(d.y+d.height/2-c.y)/this.scaleVal,f=(h.x+h.width/2-c.x)/this.scaleVal,m=(h.y+h.height/2-c.y)/this.scaleVal;let e,t,n,i;i=s?(e=p+l.delta1.x,t=u+l.delta1.y,n=f+l.delta2.x,m+l.delta2.y):(u+m)/2-u<=d.height/2?(e=(d.x+d.width-c.x)/this.scaleVal+100,t=u,n=(h.x+h.width-c.x)/this.scaleVal+100,m):(e=(p+f)/2,t=(u+m)/2,n=(p+f)/2,(u+m)/2);var b={cx:p,cy:u,w:d.width,h:d.height},g={cx:f,cy:m,w:h.width,h:h.height},v=k(b,e,t),x=v.x,c=v.y,d=w(g,n,i),h=d.x,v=d.y,d=N(n,i,h,v);const y=function(e,t){const n=M.createElementNS(j,"g"),i=M.createElementNS(j,"path"),o=M.createElementNS(j,"path");return o.setAttribute("d",t),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"),n.appendChild(i),n.appendChild(o),n}(`M ${x} ${c} C ${e} ${t} ${n} ${i} ${h} ${v}`,`M ${d.x1} ${d.y1} L ${h} ${v} L ${d.x2} ${d.y2}`);let o;s?(o={id:l.id,label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[l.id]=o,y.linkObj=o,y.dataset.linkid=l.id):(o={id:L(),label:"",from:r,to:a,delta1:{x:e-p,y:t-u},delta2:{x:n-f,y:i-m}},this.linkData[o.id]=o,y.linkObj=o,y.dataset.linkid=o.id,this.currentLink=y),this.linkSvgGroup.appendChild(y),s||this.showLinkController(e,t,n,i,o,b,g)}},removeLink:function(e){let t;t=e||this.currentLink,t&&(this.hideLinkController(),e=t.linkObj.id,delete this.linkData[e],t.remove(),t=null)},selectLink:function(e){var t=(this.currentLink=e).linkObj;const n=t.from,i=t.to;var o=this.map.getBoundingClientRect(),r=n.getBoundingClientRect(),a=i.getBoundingClientRect(),s=(r.x+r.width/2-o.x)/this.scaleVal,l=(r.y+r.height/2-o.y)/this.scaleVal,e=(a.x+a.width/2-o.x)/this.scaleVal,o=(a.y+a.height/2-o.y)/this.scaleVal,r={cx:s,cy:l,w:r.width,h:r.height},a={cx:e,cy:o,w:a.width,h:a.height},s=s+t.delta1.x,l=l+t.delta1.y,e=e+t.delta2.x,o=o+t.delta2.y;this.showLinkController(s,l,e,o,t,r,a)},hideLinkController:function(){this.linkController.style.display="none",this.P2.style.display="none",this.P3.style.display="none"},showLinkController:function(n,i,o,r,a,s,l){this.linkController.style.display="initial",this.P2.style.display="initial",this.P3.style.display="initial";var e=k(s,n,i);let c=e.x,d=e.y;e=w(l,o,r);let h=e.x,p=e.y;this.P2.style.cssText=`top:${i}px;left:${n}px;`,this.P3.style.cssText=`top:${r}px;left:${o}px;`,this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),this.helper1&&(this.helper1.destory(this.map),this.helper2.destory(this.map)),this.helper1=new t(this.P2),this.helper2=new t(this.P3),this.helper1.init(this.map,(e,t)=>{n-=e/this.scaleVal,i-=t/this.scaleVal;t=k(s,n,i);c=t.x,d=t.y,this.P2.style.top=i+"px",this.P2.style.left=n+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} ${p}`),this.line1.setAttribute("x1",c),this.line1.setAttribute("y1",d),this.line1.setAttribute("x2",n),this.line1.setAttribute("y2",i),a.delta1.x=n-s.cx,a.delta1.y=i-s.cy}),this.helper2.init(this.map,(e,t)=>{o-=e/this.scaleVal,r-=t/this.scaleVal;t=w(l,o,r);h=t.x,p=t.y;t=N(o,r,h,p);this.P3.style.top=r+"px",this.P3.style.left=o+"px",this.currentLink.children[0].setAttribute("d",`M ${c} ${d} C ${n} ${i} ${o} ${r} ${h} ${p}`),this.currentLink.children[1].setAttribute("d",`M ${t.x1} ${t.y1} L ${h} ${p} L ${t.x2} ${t.y2}`),this.line2.setAttribute("x1",o),this.line2.setAttribute("y1",r),this.line2.setAttribute("x2",h),this.line2.setAttribute("y2",p),a.delta2.x=o-l.cx,a.delta2.y=r-l.cy})},layout:function(){this.root.innerHTML="",this.box.innerHTML="";const e=this.createTopic(this.nodeData);r(e,this.nodeData),e.draggable=!1,this.root.appendChild(e);const i=this.nodeData.children;if(i&&0!==i.length){if(2===this.direction){let t=0,n=0;i.map(e=>{void 0===e.direction?t<=n?(e.direction=0,t+=1):(e.direction=1,n+=1):0===e.direction?t+=1:n+=1})}this.createChildren(this.nodeData.children,this.box,this.direction)}},linkDiv:function(t){var i=this.primaryNodeHorizontalGap||65,r=this.primaryNodeVerticalGap||25;const o=this.root;o.style.cssText=`top:${1e4-o.offsetHeight/2}px;left:${1e4-o.offsetWidth/2}px;`;var a=this.box.children;this.svg2nd.innerHTML="";let n=0,s,l=0,c=0,d=0,h=0,p=0,u;if(2===this.direction){let t=0,n=0,i=0,o=0;for(let e=0;e<a.length;e++){var f=a[e];"lhs"===f.className?(h+=f.offsetHeight+r,i+=f.offsetHeight,t+=1):(p+=f.offsetHeight+r,o+=f.offsetHeight,n+=1)}l=h>p?(u=1e4-Math.max(h)/2,s="r",(h-o)/(n-1)):(u=1e4-Math.max(p)/2,s="l",(p-i)/(t-1))}else{for(let e=0;e<a.length;e++){var m=a[e];n+=m.offsetHeight+r}u=1e4-n/2}let b="";for(let e=0;e<a.length;e++){let t,n;const x=a[e];var g=x.offsetHeight;if("lhs"===x.className){x.style.top=u+c+"px",x.style.left=1e4-o.offsetWidth/2-i-x.offsetWidth+"px",t=1e4-o.offsetWidth/2-i-15,n=u+c+g/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4-o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
4
4
  L ${e} ${n+20}
5
5
  C ${e} ${n} ${e} ${n} ${e-20} ${n}
6
6
  L ${t} ${n}`:b+=`M ${e} 10000
7
7
  L ${e} ${n-20}
8
8
  C ${e} ${n} ${e} ${n} ${e-20} ${n}
9
- L ${t} ${n}`):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} ${n}`,"l"===s?c+=g+l:c+=g+r}else{x.style.top=u+d+"px",x.style.left=1e4+o.offsetWidth/2+i+"px",t=1e4+o.offsetWidth/2+i+15,n=u+d+g/2;let e=1e4;2===this.primaryLinkStyle?(this.direction===C&&(e=1e4+o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
9
+ L ${t} ${n}`):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} ${n}`,"l"===s?c+=g+l:c+=g+r}else{x.style.top=u+d+"px",x.style.left=1e4+o.offsetWidth/2+i+"px",t=1e4+o.offsetWidth/2+i+15,n=u+d+g/2;let e=1e4;2===this.primaryLinkStyle?(2===this.direction&&(e=1e4+o.offsetWidth/6),n<1e4?b+=`M ${e} 10000
10
10
  L ${e} ${n+20}
11
11
  C ${e} ${n} ${e} ${n} ${e+20} ${n}
12
12
  L ${t} ${n}`:b+=`M ${e} 10000
13
13
  L ${e} ${n-20}
14
14
  C ${e} ${n} ${e} ${n} ${e+20} ${n}
15
- L ${t} ${n}`):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} ${n}`,"r"===s?d+=g+l:d+=g+r}const y=x.children[0].children[1];y&&(y.style.top=(y.parentNode.offsetHeight-y.offsetHeight)/2+"px","lhs"===x.className?y.style.left="-10px":y.style.left=y.parentNode.offsetWidth-10+"px")}this.svg2nd.appendChild(function(e){const t=j.createElementNS(D,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(b));for(let e=0;e<a.length;e++){const N=a[e];if((!t||t===a[e])&&N.childElementCount){const k=M("svg3rd");"svg"===N.lastChild.tagName&&N.lastChild.remove(),N.appendChild(k);var v=N.children[0];(function r(a,e,s){const l=e.offsetTop;const c=e.offsetLeft;const d=e.offsetWidth;const h=e.offsetHeight;for(let o=0;o<a.length;o++){const p=a[o],u=p.children[0],f=u.offsetTop,m=u.offsetHeight;let e;e=s?l+h/2:l+h;const b=f+m;let t,n,i;const g=p.offsetParent.className;"lhs"===g?(t=c+$,i=c,n=c-u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?O+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} ${b}`:f+m>=l+h/2?O+=`M ${t} ${e}
15
+ L ${t} ${n}`):b+=`M 10000 10000 C 10000 10000 ${1e4+2*i*.03} ${n} ${t} ${n}`,"r"===s?d+=g+l:d+=g+r}const y=x.children[0].children[1];y&&(y.style.top=(y.parentNode.offsetHeight-y.offsetHeight)/2+"px","lhs"===x.className?y.style.left="-10px":y.style.left=y.parentNode.offsetWidth-10+"px")}this.svg2nd.appendChild(function(e){const t=M.createElementNS(j,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#666"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","2"),t}(b));for(let e=0;e<a.length;e++){const N=a[e];if((!t||t===a[e])&&N.childElementCount){const k=S("svg3rd");"svg"===N.lastChild.tagName&&N.lastChild.remove(),N.appendChild(k);var v=N.children[0];(function r(a,e,s){const l=e.offsetTop;const c=e.offsetLeft;const d=e.offsetWidth;const h=e.offsetHeight;for(let o=0;o<a.length;o++){const p=a[o],u=p.children[0],f=u.offsetTop,m=u.offsetHeight;let e;e=s?l+h/2:l+h;const b=f+m;let t,n,i;const g=p.offsetParent.className;"lhs"===g?(t=c+C,i=c,n=c-u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?O+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} ${b}`:f+m>=l+h/2?O+=`M ${t} ${e}
16
16
  L ${i} ${e}
17
- L ${i} ${b-L}
18
- A ${L} ${L} 0 0 1
19
- ${i-L},${b}
17
+ L ${i} ${b-$}
18
+ A ${$} ${$} 0 0 1
19
+ ${i-$},${b}
20
20
  L ${n} ${b}`:O+=`M ${t} ${e}
21
21
  L ${i} ${e}
22
- L ${i} ${b+L}
23
- A ${L} ${L} 0 0 0
24
- ${i-L},${b}
25
- L ${n} ${b}`):"rhs"===g&&(t=c+d-$,i=c+d,n=c+d+u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?O+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} ${b}`:f+m>=l+h/2?O+=`M ${t} ${e}
22
+ L ${i} ${b+$}
23
+ A ${$} ${$} 0 0 0
24
+ ${i-$},${b}
25
+ L ${n} ${b}`):"rhs"===g&&(t=c+d-C,i=c+d,n=c+d+u.offsetWidth,f+m<l+h/2+50&&f+m>l+h/2-50?O+=`M ${t} ${e} L ${i} ${e} L ${i} ${b} L ${n} ${b}`:f+m>=l+h/2?O+=`M ${t} ${e}
26
26
  L ${i} ${e}
27
- L ${i} ${b-L}
28
- A ${L} ${L} 0 0 0 ${i+L},${b}
27
+ L ${i} ${b-$}
28
+ A ${$} ${$} 0 0 0 ${i+$},${b}
29
29
  L ${n} ${b}`:O+=`M ${t} ${e}
30
30
  L ${i} ${e}
31
- L ${i} ${b+L}
32
- A ${L} ${L} 0 0 1 ${i+L},${b}
33
- L ${n} ${b}`);const v=u.children[1];if(v&&(v.style.top=(u.offsetHeight-v.offsetHeight)/2+"px","lhs"===g?v.style.left="-10px":"rhs"===g&&(v.style.left=u.offsetWidth-10+"px"),v.expanded)){const x=p.children[1].children;0<x.length&&r(x,u)}}})(N.children[1].children,v,!(O="")),k.appendChild(function(e){const t=j.createElementNS(D,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","1"),t.setAttribute("transform","translate(0.5,-0.5)"),t}(O))}}this.linkSvgGroup.innerHTML="";for(const w in this.linkData){var e=this.linkData[w];"string"==typeof e.from?this.createLink(S(e.from),S(e.to),!0,e):this.createLink(S(e.from.nodeObj.id),S(e.to.nodeObj.id),!0,e)}},createInputDiv:function(i){if(i){let n=f.createElement("div");const o=i.childNodes[0].textContent;i.appendChild(n),n.innerText=o,n.contentEditable="true",n.spellcheck=!1,n.style.cssText=`min-width:${i.offsetWidth-8}px;`,this.direction===s&&(n.style.right="0"),n.focus(),function(e){const t=f.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}(n),this.inputDiv=n,this.bus.fire("operation",{name:"beginEdit",obj:i.nodeObj}),n.addEventListener("keydown",e=>{e.stopPropagation();var t=e.key;"Enter"!==t&&"Tab"!==t||e.shiftKey||(e.preventDefault(),this.inputDiv.blur(),this.map.focus())}),n.addEventListener("blur",()=>{if(n){const t=i.nodeObj;var e=n.textContent.trim();t.topic=""===e?o:e,n.remove(),this.inputDiv=n=null,this.bus.fire("operation",{name:"finishEdit",obj:t,origin:o}),e!==o&&(i.childNodes[0].textContent=t.topic,this.linkDiv())}})}},selectNode:function(e,t){if(e){if("string"==typeof e)return this.selectNode(S(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.nextSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(n+1<i.length))return!1;e=i[n+1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectPrevSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.previousSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(0<=n-1))return!1;e=i[n-1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectFirstChild:function(){var e;!this.currentNode||(e=this.currentNode.parentElement.nextSibling)&&e.firstChild&&(e=e.firstChild.firstChild.firstChild,this.selectNode(e))},selectParent:function(){var e;!this.currentNode||"meroot"===this.currentNode.dataset.nodeid||(e=this.currentNode.parentElement.parentElement.parentElement.previousSibling)&&(e=e.firstChild,this.selectNode(e))},getAllDataString:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})},getAllData:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.parse(JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllDataMd:function(){var e=n(this);let o="# "+e.topic+"\n\n";return function t(n,i){for(let e=0;e<n.length;e++)o+=i<=6?"".padStart(i,"#")+" "+n[e].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[e].topic+"\n",n[e].children&&t(n[e].children,i+1)}(e.children,2),o},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())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.init())},initLeft:function(){this.direction=0,this.init()},initRight:function(){this.direction=1,this.init()},initSide:function(){this.direction=2,this.init()},setLocale:function(e){this.locale=e,this.init()},enableEdit:function(){this.editable=!0},disableEdit:function(){this.editable=!1},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv()},refresh:function(){this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},init:function(){var t;d(this.nodeData),this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=X.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=X.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=X.createElement("root"),this.box=X.createElement("children"),this.box.className="box",this.svg2nd=M("svg2nd"),this.linkController=M("linkcontroller"),this.P2=X.createElement("div"),this.P3=X.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=e(0,0,0,0),this.line2=e(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=M("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.svg2nd),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.toolBar&&B(this),this.nodeMenu&&function(i){var e=A[i.locale]?i.locale:"en";let o;const t=H("nm-style"),n=H("nm-tag"),r=H("nm-icon");t.innerHTML=`
31
+ L ${i} ${b+$}
32
+ A ${$} ${$} 0 0 1 ${i+$},${b}
33
+ L ${n} ${b}`);const v=u.children[1];if(v&&(v.style.top=(u.offsetHeight-v.offsetHeight)/2+"px","lhs"===g?v.style.left="-10px":"rhs"===g&&(v.style.left=u.offsetWidth-10+"px"),v.expanded)){const x=p.children[1].children;0<x.length&&r(x,u)}}})(N.children[1].children,v,!(O="")),k.appendChild(function(e){const t=M.createElementNS(j,"path");return t.setAttribute("d",e),t.setAttribute("stroke","#555"),t.setAttribute("fill","none"),t.setAttribute("stroke-linecap","square"),t.setAttribute("stroke-width","1"),t.setAttribute("transform","translate(0.5,-0.5)"),t}(O))}}this.linkSvgGroup.innerHTML="";for(const w in this.linkData){var e=this.linkData[w];"string"==typeof e.from?this.createLink(E(e.from),E(e.to),!0,e):this.createLink(E(e.from.nodeObj.id),E(e.to.nodeObj.id),!0,e)}},createInputDiv:function(i){if(i){let n=s.createElement("div");const o=i.childNodes[0].textContent;i.appendChild(n),n.innerText=o,n.contentEditable="true",n.spellcheck=!1,n.style.cssText=`min-width:${i.offsetWidth-8}px;`,0===this.direction&&(n.style.right="0"),n.focus(),function(e){const t=s.createRange();t.selectNodeContents(e);const n=window.getSelection();n&&(n.removeAllRanges(),n.addRange(t))}(n),this.inputDiv=n,this.bus.fire("operation",{name:"beginEdit",obj:i.nodeObj}),n.addEventListener("keydown",e=>{e.stopPropagation();var t=e.key;"Enter"!==t&&"Tab"!==t||e.shiftKey||(e.preventDefault(),this.inputDiv.blur(),this.map.focus())}),n.addEventListener("blur",()=>{if(n){const t=i.nodeObj;var e=n.textContent.trim();t.topic=""===e?o:e,n.remove(),this.inputDiv=n=null,this.bus.fire("operation",{name:"finishEdit",obj:t,origin:o}),e!==o&&(i.childNodes[0].textContent=t.topic,this.linkDiv())}})}},createChildren:function(t,e,n){let i;i=e||s.createElement("children");for(let e=0;e<t.length;e++){var o=t[e];const r=s.createElement("GRP");0===n?r.className="lhs":1===n?r.className="rhs":2===n&&(0===o.direction?r.className="lhs":1===o.direction&&(r.className="rhs"));const a=this.createTop(o);o.children&&0<o.children.length?(a.appendChild(p(o.expanded)),r.appendChild(a),!1!==o.expanded&&(o=this.createChildren(o.children),r.appendChild(o))):r.appendChild(a),i.appendChild(r)}return i},createGroup:function(e){const t=s.createElement("GRP"),n=this.createTop(e);return t.appendChild(n),e.children&&0<e.children.length&&(n.appendChild(p(e.expanded)),!1!==e.expanded&&(e=this.createChildren(e.children),t.appendChild(e))),{grp:t,top:n}},createTop:function(e){const t=s.createElement("t");var n=this.createTopic(e);return r(n,e),t.appendChild(n),t},createTopic:function(e){const t=s.createElement("tpc");return t.nodeObj=e,t.dataset.nodeid="me"+e.id,t.draggable=this.draggable,t},selectNode:function(e,t){if(e){if("string"==typeof e)return this.selectNode(E(e));this.currentNode&&(this.currentNode.className=""),e.className="selected",this.currentNode=e,t?this.bus.fire("selectNewNode",e.nodeObj):this.bus.fire("selectNode",e.nodeObj)}},unselectNode:function(){this.currentNode&&(this.currentNode.className=""),this.currentNode=null,this.bus.fire("unselectNode")},selectNextSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.nextSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(n+1<i.length))return!1;e=i[n+1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectPrevSibling:function(){if(this.currentNode&&"meroot"!==this.currentNode.dataset.nodeid){var t=this.currentNode.parentElement.parentElement.previousSibling;let e;var n=this.currentNode.parentElement.parentElement;if("rhs"===n.className||"lhs"===n.className){var i=this.mindElixirBox.querySelectorAll("."+n.className),n=Array.from(i).indexOf(n);if(!(0<=n-1))return!1;e=i[n-1].firstChild.firstChild}else{if(!t)return!1;e=t.firstChild.firstChild}return this.selectNode(e),!0}},selectFirstChild:function(){var e;!this.currentNode||(e=this.currentNode.parentElement.nextSibling)&&e.firstChild&&(e=e.firstChild.firstChild.firstChild,this.selectNode(e))},selectParent:function(){var e;!this.currentNode||"meroot"===this.currentNode.dataset.nodeid||(e=this.currentNode.parentElement.parentElement.parentElement.previousSibling)&&(e=e.firstChild,this.selectNode(e))},getAllDataString:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t})},getAllData:function(){var e={nodeData:n(this),linkData:this.linkData};return JSON.parse(JSON.stringify(e,(e,t)=>{if("parent"!==e)return"from"===e||"to"===e?t.nodeObj.id:t}))},getAllDataMd:function(){var e=n(this);let o="# "+e.topic+"\n\n";return function t(n,i){for(let e=0;e<n.length;e++)o+=i<=6?"".padStart(i,"#")+" "+n[e].topic+"\n\n":"".padStart(i-7,"\t")+"- "+n[e].topic+"\n",n[e].children&&t(n[e].children,i+1)}(e.children,2),o},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())},cancelFocus:function(){this.isFocusMode=!1,null!==this.tempDirection&&(delete this.nodeData.root,this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.init())},initLeft:function(){this.direction=0,this.init()},initRight:function(){this.direction=1,this.init()},initSide:function(){this.direction=2,this.init()},setLocale:function(e){this.locale=e,this.init()},enableEdit:function(){this.editable=!0},disableEdit:function(){this.editable=!1},expandNode:function(e,t){const n=e.nodeObj;"boolean"==typeof t?n.expanded=t:!1!==n.expanded?n.expanded=!1:n.expanded=!0,this.layout(),this.linkDiv()},refresh:function(){this.addParentLink(this.nodeData),this.layout(),this.linkDiv()},init:function(){var t;d(this.nodeData),this.mindElixirBox.className+=" mind-elixir",this.mindElixirBox.innerHTML="",this.container=I.createElement("div"),this.container.className="map-container",this.overflowHidden&&(this.container.style.overflow="hidden"),this.map=I.createElement("div"),this.map.className="map-canvas",this.map.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.mindElixirBox.appendChild(this.container),this.root=I.createElement("root"),this.box=I.createElement("children"),this.box.className="box",this.svg2nd=S("svg2nd"),this.linkController=S("linkcontroller"),this.P2=I.createElement("div"),this.P3=I.createElement("div"),this.P2.className=this.P3.className="circle",this.line1=e(0,0,0,0),this.line2=e(0,0,0,0),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=S("topiclinks"),this.map.appendChild(this.root),this.map.appendChild(this.box),this.map.appendChild(this.svg2nd),this.map.appendChild(this.linkController),this.map.appendChild(this.linkSvgGroup),this.map.appendChild(this.P2),this.map.appendChild(this.P3),this.toolBar&&b(this),this.nodeMenu&&function(i){var e=v[i.locale]?i.locale:"en";let o;const t=x("nm-style"),n=x("nm-tag"),r=x("nm-icon");t.innerHTML=`
34
34
  <div class="nm-fontsize-container">
35
35
  ${["15","24","32"].map(e=>`<div class="size" data-size="${e}">
36
36
  <svg class="icon" style="width: ${e}px;height: ${e}px" aria-hidden="true">
@@ -40,16 +40,16 @@
40
40
  </svg></div>
41
41
  </div>
42
42
  <div class="nm-fontcolor-container">
43
- ${R.map(e=>`<div class="split6"><div class="palette" data-color="${e}" style="background-color: ${e};"></div></div>`).join("")}
43
+ ${y.map(e=>`<div class="split6"><div class="palette" data-color="${e}" style="background-color: ${e};"></div></div>`).join("")}
44
44
  </div>
45
45
  <div class="bof">
46
- <span class="font">${A[e].font}</span>
47
- <span class="background">${A[e].background}</span>
46
+ <span class="font">${v[e].font}</span>
47
+ <span class="background">${v[e].background}</span>
48
48
  </div>
49
- `,n.innerHTML=`${A[e].tag}<input class="nm-tag" tabindex="-1" placeholder="${A[e].tagsSeparate}" /><br>`,r.innerHTML=`${A[e].icon}<input class="nm-icon" tabindex="-1" placeholder="${A[e].iconsSeparate}" /><br>`;const a=document.createElement("nmenu");function s(e,t){e=i.container.querySelectorAll(e);[].forEach.call(e,function(e){e.classList.remove(t)})}a.innerHTML=`
49
+ `,n.innerHTML=`${v[e].tag}<input class="nm-tag" tabindex="-1" placeholder="${v[e].tagsSeparate}" /><br>`,r.innerHTML=`${v[e].icon}<input class="nm-icon" tabindex="-1" placeholder="${v[e].iconsSeparate}" /><br>`;const a=document.createElement("nmenu");function s(e,t){e=i.container.querySelectorAll(e);[].forEach.call(e,function(e){e.classList.remove(t)})}a.innerHTML=`
50
50
  <div class="button-container"><svg class="icon" aria-hidden="true">
51
51
  <use xlink:href="#icon-close"></use>
52
52
  </svg></div>
53
- `,a.appendChild(t),a.appendChild(n),a.appendChild(r),a.hidden=!0,i.container.append(a),e=a.querySelectorAll(".size");const l=a.querySelector(".bold"),c=a.querySelector(".button-container"),d=a.querySelector(".font"),h=i.container.querySelector(".nm-tag"),p=i.container.querySelector(".nm-icon");a.onclick=e=>{if(i.currentNode){const t=i.currentNode.nodeObj,n=e.target;"palette"===n.className?(t.style||(t.style={}),s(".palette","nmenu-selected"),n.className="palette nmenu-selected","font"===o?t.style.color=n.dataset.color:"background"===o&&(t.style.background=n.dataset.color),i.updateNodeStyle(t)):"background"===n.className?(s(".palette","nmenu-selected"),o="background",n.className="background selected",n.previousElementSibling.className="font",t.style&&t.style.background&&(a.querySelector('.palette[data-color="'+t.style.background+'"]').className="palette nmenu-selected")):"font"===n.className&&(s(".palette","nmenu-selected"),o="font",n.className="font selected",n.nextElementSibling.className="background",t.style&&t.style.color&&(a.querySelector('.palette[data-color="'+t.style.color+'"]').className="palette nmenu-selected"))}},Array.from(e).map(e=>{e.onclick=e=>{i.currentNode.nodeObj.style||(i.currentNode.nodeObj.style={}),s(".size","size-selected");const t=e.currentTarget;i.currentNode.nodeObj.style.fontSize=t.dataset.size,t.className="size size-selected",i.updateNodeStyle(i.currentNode.nodeObj)}}),l.onclick=e=>{i.currentNode.nodeObj.style||(i.currentNode.nodeObj.style={}),"bold"===i.currentNode.nodeObj.style.fontWeight?(delete i.currentNode.nodeObj.style.fontWeight,e.currentTarget.className="bold"):(i.currentNode.nodeObj.style.fontWeight="bold",e.currentTarget.className="bold size-selected"),i.updateNodeStyle(i.currentNode.nodeObj)},h.onchange=e=>{i.currentNode&&e.target.value&&(e=e.target.value.split(","),i.updateNodeTags(i.currentNode.nodeObj,e))},p.onchange=e=>{i.currentNode&&e.target.value&&(e=e.target.value.split(","),i.updateNodeIcons(i.currentNode.nodeObj,e))};let u="open";c.onclick=e=>{"open"===u?(u="close",a.className="close",c.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-menu"></use></svg>'):(u="open",a.className="",c.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-close"></use></svg>')},i.bus.addListener("unselectNode",function(){a.hidden=!0}),i.bus.addListener("selectNode",function(e){a.hidden=!1,s(".palette","nmenu-selected"),s(".size","size-selected"),s(".bold","size-selected"),o="font",d.className="font selected",d.nextElementSibling.className="background",e.style&&(e.style.fontSize&&(a.querySelector('.size[data-size="'+e.style.fontSize+'"]').className="size size-selected"),e.style.fontWeight&&(a.querySelector(".bold").className="bold size-selected"),e.style.color&&(a.querySelector('.palette[data-color="'+e.style.color+'"]').className="palette nmenu-selected")),e.tags?h.value=e.tags.join(","):h.value="",e.icons?p.value=e.icons.join(","):p.value=""})}(this),this.keypress&&function(t){const n={13:()=>{t.insertSibling()},9:()=>{t.addChild()},113:()=>{t.beginEdit()},38:()=>{t.selectPrevSibling()},40:()=>{t.selectNextSibling()},37:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className?t.selectParent():"lhs"!==t.currentNode.offsetParent.offsetParent.className&&!t.currentNode.nodeObj.root||t.selectFirstChild())},39:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className||t.currentNode.nodeObj.root?t.selectFirstChild():"lhs"===t.currentNode.offsetParent.offsetParent.className&&t.selectParent())},33(){t.moveUpNode()},34(){t.moveDownNode()},90:e=>{t.allowUndo&&(e.metaKey||e.ctrlKey)&&t.undo()},187:e=>{(e.metaKey||e.ctrlKey)&&(1.6<t.scaleVal||t.scale(t.scaleVal+=.2))},189:e=>{(e.metaKey||e.ctrlKey)&&(t.scaleVal<.6||t.scale(t.scaleVal-=.2))}};t.map.onkeydown=e=>{e.preventDefault(),t.editable&&e.target===e.currentTarget&&(8===e.keyCode||46===e.keyCode?t.currentLink?t.removeLink():t.removeNode():n[e.keyCode]&&n[e.keyCode](e))}}(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(t,n){var i=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
53
+ `,a.appendChild(t),a.appendChild(n),a.appendChild(r),a.hidden=!0,i.container.append(a),e=a.querySelectorAll(".size");const l=a.querySelector(".bold"),c=a.querySelector(".button-container"),d=a.querySelector(".font"),h=i.container.querySelector(".nm-tag"),p=i.container.querySelector(".nm-icon");a.onclick=e=>{if(i.currentNode){const t=i.currentNode.nodeObj,n=e.target;"palette"===n.className?(t.style||(t.style={}),s(".palette","nmenu-selected"),n.className="palette nmenu-selected","font"===o?t.style.color=n.dataset.color:"background"===o&&(t.style.background=n.dataset.color),i.updateNodeStyle(t)):"background"===n.className?(s(".palette","nmenu-selected"),o="background",n.className="background selected",n.previousElementSibling.className="font",t.style&&t.style.background&&(a.querySelector('.palette[data-color="'+t.style.background+'"]').className="palette nmenu-selected")):"font"===n.className&&(s(".palette","nmenu-selected"),o="font",n.className="font selected",n.nextElementSibling.className="background",t.style&&t.style.color&&(a.querySelector('.palette[data-color="'+t.style.color+'"]').className="palette nmenu-selected"))}},Array.from(e).map(e=>{e.onclick=e=>{i.currentNode.nodeObj.style||(i.currentNode.nodeObj.style={}),s(".size","size-selected");const t=e.currentTarget;i.currentNode.nodeObj.style.fontSize=t.dataset.size,t.className="size size-selected",i.updateNodeStyle(i.currentNode.nodeObj)}}),l.onclick=e=>{i.currentNode.nodeObj.style||(i.currentNode.nodeObj.style={}),"bold"===i.currentNode.nodeObj.style.fontWeight?(delete i.currentNode.nodeObj.style.fontWeight,e.currentTarget.className="bold"):(i.currentNode.nodeObj.style.fontWeight="bold",e.currentTarget.className="bold size-selected"),i.updateNodeStyle(i.currentNode.nodeObj)},h.onchange=e=>{i.currentNode&&e.target.value&&(e=e.target.value.split(","),i.updateNodeTags(i.currentNode.nodeObj,e))},p.onchange=e=>{i.currentNode&&e.target.value&&(e=e.target.value.split(","),i.updateNodeIcons(i.currentNode.nodeObj,e))};let u="open";c.onclick=e=>{"open"===u?(u="close",a.className="close",c.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-menu"></use></svg>'):(u="open",a.className="",c.innerHTML='<svg class="icon" aria-hidden="true"><use xlink:href="#icon-close"></use></svg>')},i.bus.addListener("unselectNode",function(){a.hidden=!0}),i.bus.addListener("selectNode",function(e){a.hidden=!1,s(".palette","nmenu-selected"),s(".size","size-selected"),s(".bold","size-selected"),o="font",d.className="font selected",d.nextElementSibling.className="background",e.style&&(e.style.fontSize&&(a.querySelector('.size[data-size="'+e.style.fontSize+'"]').className="size size-selected"),e.style.fontWeight&&(a.querySelector(".bold").className="bold size-selected"),e.style.color&&(a.querySelector('.palette[data-color="'+e.style.color+'"]').className="palette nmenu-selected")),e.tags?h.value=e.tags.join(","):h.value="",e.icons?p.value=e.icons.join(","):p.value=""})}(this),this.keypress&&function(t){const n={13:()=>{t.insertSibling()},9:()=>{t.addChild()},113:()=>{t.beginEdit()},38:()=>{t.selectPrevSibling()},40:()=>{t.selectNextSibling()},37:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className?t.selectParent():"lhs"!==t.currentNode.offsetParent.offsetParent.className&&!t.currentNode.nodeObj.root||t.selectFirstChild())},39:()=>{t.currentNode&&("rhs"===t.currentNode.offsetParent.offsetParent.className||t.currentNode.nodeObj.root?t.selectFirstChild():"lhs"===t.currentNode.offsetParent.offsetParent.className&&t.selectParent())},33(){t.moveUpNode()},34(){t.moveDownNode()},67(e){(e.metaKey||e.ctrlKey)&&(t.waitCopy=t.currentNode)},86(e){t.waitCopy&&(e.metaKey||e.ctrlKey)&&(t.copyNode(t.waitCopy,t.currentNode),t.waitCopy=null)},90:e=>{t.allowUndo&&(e.metaKey||e.ctrlKey)&&t.undo()},187:e=>{(e.metaKey||e.ctrlKey)&&(1.6<t.scaleVal||t.scale(t.scaleVal+=.2))},189:e=>{(e.metaKey||e.ctrlKey)&&(t.scaleVal<.6||t.scale(t.scaleVal-=.2))}};t.map.onkeydown=e=>{e.preventDefault(),t.editable&&e.target===e.currentTarget&&(8===e.keyCode||46===e.keyCode?t.currentLink?t.removeLink():t.removeNode():n[e.keyCode]&&n[e.keyCode](e))}}(this),/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)&&this.mobileMenu?function(t,n){var i=(e,t)=>{const n=document.createElement("div");return n.id=e,n.innerHTML=`<svg class="icon" aria-hidden="true">
54
54
  <use xlink:href="#icon-${t}"></use>
55
- </svg>`,n};const e=i("cm-add_child","zijiedian"),o=i("cm-add_sibling","tongjijiedian-"),r=i("cm-remove_child","shanchu2"),a=i("cm-up","rising"),s=i("cm-down","falling"),l=i("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",n&&n.extend)for(let e=0;e<n.extend.length;e++){const p=n.extend[e],u=i(p.name,p.name);c.appendChild(u),u.onclick=e=>{p.onclick(e)}}const d=document.createElement("mmenu");d.appendChild(e),d.appendChild(o),d.appendChild(r),d.appendChild(a),d.appendChild(s),d.appendChild(l),d.hidden=!0,t.container.append(d);let h=!0;t.bus.addListener("unselectNode",function(){d.hidden=!0}),t.bus.addListener("selectNode",function(e){d.hidden=!1,h=!!e.root}),d.onclick=e=>{e.target===d&&(d.hidden=!0)},e.onclick=e=>{t.addChild()},o.onclick=e=>{h||t.insertSibling()},r.onclick=e=>{h||t.removeNode()},a.onclick=e=>{h||t.moveUpNode()},s.onclick=e=>{h||t.moveDownNode()},l.onclick=e=>{t.beginEdit()}}(this):this.contextMenu&&T(this,this.contextMenuOption),x.draggable&&F(this),this.toCenter(),this.layout(),this.linkDiv(),this.overflowHidden||((t=this).map.addEventListener("click",e=>{"EPD"===e.target.nodeName?t.expandNode(e.target.previousSibling):"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?t.selectNode(e.target):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&t.selectLink(e.target.parentElement):"circle"===e.target.className||(t.unselectNode(),t.hideLinkController())}),t.map.addEventListener("dblclick",e=>{e.preventDefault(),t.editable&&("T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||t.beginEdit(e.target))}),t.map.addEventListener("mousemove",e=>{"true"!==e.target.contentEditable&&p.onMove(e,t.container)}),t.map.addEventListener("mousedown",e=>{"true"!==e.target.contentEditable&&(p.afterMoving=!1,p.mousedown=!0)}),t.map.addEventListener("mouseleave",e=>{p.clear()}),t.map.addEventListener("mouseup",e=>{p.clear()}))}},G.LEFT=s,G.RIGHT=l,G.SIDE=C,G.version="0.17.0",G.E=S,G.new=e=>({nodeData:{id:E(),topic:e||"new topic",root:!0,children:[]},linkData:{}});const J=G})(),Q.default})()});
55
+ </svg>`,n};const e=i("cm-add_child","zijiedian"),o=i("cm-add_sibling","tongjijiedian-"),r=i("cm-remove_child","shanchu2"),a=i("cm-up","rising"),s=i("cm-down","falling"),l=i("cm-edit","edit"),c=document.createElement("ul");if(c.className="menu-list",n&&n.extend)for(let e=0;e<n.extend.length;e++){const p=n.extend[e],u=i(p.name,p.name);c.appendChild(u),u.onclick=e=>{p.onclick(e)}}const d=document.createElement("mmenu");d.appendChild(e),d.appendChild(o),d.appendChild(r),d.appendChild(a),d.appendChild(s),d.appendChild(l),d.hidden=!0,t.container.append(d);let h=!0;t.bus.addListener("unselectNode",function(){d.hidden=!0}),t.bus.addListener("selectNode",function(e){d.hidden=!1,h=!!e.root}),d.onclick=e=>{e.target===d&&(d.hidden=!0)},e.onclick=e=>{t.addChild()},o.onclick=e=>{h||t.insertSibling()},r.onclick=e=>{h||t.removeNode()},a.onclick=e=>{h||t.moveUpNode()},s.onclick=e=>{h||t.moveDownNode()},l.onclick=e=>{t.beginEdit()}}(this):this.contextMenu&&f(this,this.contextMenuOption),this.draggable&&P(this),this.toCenter(),this.layout(),this.linkDiv(),this.overflowHidden||((t=this).map.addEventListener("click",e=>{"EPD"===e.target.nodeName?t.expandNode(e.target.previousSibling):"T"===e.target.parentElement.nodeName||"ROOT"===e.target.parentElement.nodeName?t.selectNode(e.target):"path"===e.target.nodeName?"g"===e.target.parentElement.nodeName&&t.selectLink(e.target.parentElement):"circle"===e.target.className||(t.unselectNode(),t.hideLinkController())}),t.map.addEventListener("dblclick",e=>{e.preventDefault(),t.editable&&("T"!==e.target.parentElement.nodeName&&"ROOT"!==e.target.parentElement.nodeName||t.beginEdit(e.target))}),t.map.addEventListener("mousemove",e=>{"true"!==e.target.contentEditable&&c.onMove(e,t.container)}),t.map.addEventListener("mousedown",e=>{"true"!==e.target.contentEditable&&(c.afterMoving=!1,c.mousedown=!0)}),t.map.addEventListener("mouseleave",e=>{c.clear()}),t.map.addEventListener("mouseup",e=>{c.clear()}))}},U.LEFT=0,U.RIGHT=1,U.SIDE=2,U.version="0.17.0",U.E=E,U.new=e=>({nodeData:{id:L(),topic:e||"new topic",root:!0,children:[]},linkData:{}});const q=U})(),W.default})()});