mind-elixir 4.0.2 → 4.0.3

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,14 +1,13 @@
1
1
  (function(){"use strict";try{if(typeof document<"u"){var i=document.createElement("style");i.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--main-color: #444446;--main-bgcolor: #ffffff;--topic-padding: 3px;--color: #777777;--bgcolor: #f6f6f6;--selected: #4dc4ff;--panel-color: #444446;--panel-bgcolor: #ffffff;--panel-border-color: #eaeaea;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif}.mind-elixir .hyper-link{text-decoration:none;margin-left:.3em}.map-container{-webkit-user-select:none;user-select:none;height:100%;width:100%;overflow:scroll;font-size:15px}.map-container *{box-sizing:border-box}.map-container::-webkit-scrollbar{width:0px;height:0px}.map-container .selected{box-shadow:0 0 0 2px var(--selected)}.map-container .lhs{direction:rtl}.map-container .lhs me-tpc{direction:ltr}.map-container .map-canvas{height:20000px;width:20000px;position:relative;-webkit-user-select:none;user-select:none;transition:transform .3s;transform:scale(1);background-color:var(--bgcolor)}.map-container .map-canvas me-nodes{position:absolute;display:flex;justify-content:center;align-items:center;height:fit-content;width:fit-content}.map-container .map-canvas me-root{position:relative}.map-container .map-canvas me-root me-tpc{display:block;font-size:25px;color:var(--root-color);padding:10px var(--gap);border-radius:var(--root-radius);white-space:pre-wrap;background-color:var(--root-bgcolor)}.map-container .map-canvas me-root me-tpc #input-box{padding:10px var(--gap)}.map-container me-main>me-wrapper{position:relative;margin:45px 65px}.map-container me-main>me-wrapper>me-parent{margin:10px;padding:0}.map-container me-main>me-wrapper>me-parent>me-tpc{border-radius:var(--main-radius);background-color:var(--main-bgcolor);border:2px solid var(--main-color);color:var(--main-color);padding:8px 25px}.map-container me-main>me-wrapper>me-parent>me-tpc #input-box{padding:8px 25px}.map-container me-wrapper{display:block;pointer-events:none;width:fit-content}.map-container me-children,.map-container me-parent{display:inline-block;vertical-align:middle}.map-container me-parent{position:relative;cursor:pointer;padding:6px var(--gap);margin-top:10px}.map-container me-parent me-tpc{position:relative;display:block;border-radius:3px;color:var(--color);pointer-events:all;max-width:35em;white-space:pre-wrap;padding:var(--topic-padding)}.map-container me-parent me-tpc .insert-preview{position:absolute;width:100%;left:0;z-index:9}.map-container me-parent me-tpc .show{background:#7ad5ff;pointer-events:none;opacity:.7}.map-container me-parent me-tpc .before{height:14px;top:-14px}.map-container me-parent me-tpc .in{height:100%;top:0}.map-container me-parent me-tpc .after{height:14px;bottom:-14px}.map-container me-parent me-epd{position:absolute;height:18px;width:18px;opacity:.8;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NDcxNzI0MiIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNDgwaC0xMzguNjY2NjY3VjM0MS4zMzMzMzNjMC0xNy4wNjY2NjctMTQuOTMzMzMzLTMyLTMyLTMycy0zMiAxNC45MzMzMzMtMzIgMzJ2MTM4LjY2NjY2N0gzNDEuMzMzMzMzYy0xNy4wNjY2NjcgMC0zMiAxNC45MzMzMzMtMzIgMzJzMTQuOTMzMzMzIDMyIDMyIDMyaDEzOC42NjY2NjdWNjgyLjY2NjY2N2MwIDE3LjA2NjY2NyAxNC45MzMzMzMgMzIgMzIgMzJzMzItMTQuOTMzMzMzIDMyLTMydi0xMzguNjY2NjY3SDY4Mi42NjY2NjdjMTcuMDY2NjY3IDAgMzItMTQuOTMzMzMzIDMyLTMycy0xNC45MzMzMzMtMzItMzItMzJ6Ij48L3BhdGg+Cjwvc3ZnPg==);background-repeat:no-repeat;background-size:contain;background-position:center;pointer-events:all;z-index:9}.map-container me-parent me-epd.minus{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgdD0iMTY1NjY1NTU2NDk4NSIgY2xhc3M9Imljb24iIHZpZXdCb3g9IjAgMCAxMDI0IDEwMjQiIHZlcnNpb249IjEuMSIKICAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+CiAgICA8cGF0aCBkPSJNNTEyIDc0LjY2NjY2N0MyNzAuOTMzMzMzIDc0LjY2NjY2NyA3NC42NjY2NjcgMjcwLjkzMzMzMyA3NC42NjY2NjcgNTEyUzI3MC45MzMzMzMgOTQ5LjMzMzMzMyA1MTIgOTQ5LjMzMzMzMyA5NDkuMzMzMzMzIDc1My4wNjY2NjcgOTQ5LjMzMzMzMyA1MTIgNzUzLjA2NjY2NyA3NC42NjY2NjcgNTEyIDc0LjY2NjY2N3oiIHN0cm9rZS13aWR0aD0iNTQiIHN0cm9rZT0nYmxhY2snIGZpbGw9J3doaXRlJyA+PC9wYXRoPgogICAgPHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ0SDM0MS4zMzMzMzNjLTE3LjA2NjY2NyAwLTMyLTE0LjkzMzMzMy0zMi0zMnMxNC45MzMzMzMtMzIgMzItMzJoMzQxLjMzMzMzNGMxNy4wNjY2NjcgMCAzMiAxNC45MzMzMzMgMzIgMzJzLTE0LjkzMzMzMyAzMi0zMiAzMnoiPjwvcGF0aD4KPC9zdmc+)!important;transition:opacity .3s;opacity:0}.map-container me-parent me-epd.minus:hover{opacity:.8}.map-container .icon{width:1em;height:1em;vertical-align:-.15em;fill:currentColor;overflow:hidden}.map-container .lines,.map-container .summary,.map-container .subLines,.map-container .topiclinks,.map-container .linkcontroller{position:absolute;height:102%;width:100%;top:0;left:0}.map-container .topiclinks,.map-container .linkcontroller,.map-container .summary{pointer-events:none}.map-container .topiclinks text,.map-container .linkcontroller text,.map-container .summary text{pointer-events:all}.map-container .topiclinks .selected,.map-container .linkcontroller .selected,.map-container .summary .selected{pointer-events:none}.map-container .lines,.map-container .subLines{pointer-events:none;z-index:-1}.map-container .topiclinks *,.map-container .linkcontroller *{z-index:100}.map-container .topiclinks g{cursor:pointer}.map-container #input-box{position:absolute;top:0;left:0;padding:var(--topic-padding);color:var(--color);background-color:var(--bgcolor);width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:all}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>img{display:block;margin-bottom:8px;object-fit:cover}.map-container me-tpc>.text{display:inline-block}.map-container .circle{position:absolute;height:10px;width:10px;margin-top:-5px;margin-left:-5px;border-radius:100%;background:#757575;border:2px solid #ffffff;cursor:pointer}.map-container .tags{direction:ltr}.map-container .tags span{display:inline-block;border-radius:3px;padding:2px 4px;background:#d6f0f8;color:#276f86;margin:2px 3px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-right:10px}.map-container .icons span{display:inline-block;line-height:1.3em}.map-container .mind-elixir-ghost{position:fixed;top:-100%;left:-100%;box-sizing:content-box;opacity:.5;background-color:#f6f6f6;max-width:200px;width:fit-content;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:8px 16px;border-radius:6px;border:#666666 2px solid}.map-container .selection-area{background:#4f90f22d;border:1px solid #4f90f2}.mind-elixir .context-menu{position:fixed;top:0;left:0;width:100%;height:100%;z-index:99}.mind-elixir .context-menu .menu-list{position:fixed;list-style:none;margin:0;padding:0;font:300 15px Roboto,sans-serif;color:var(--panel-color);box-shadow:0 12px 15px #0003}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:10px 14px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color)}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none;color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .context-menu .menu-list li:hover{cursor:pointer;filter:brightness(.9)}.mind-elixir .context-menu .menu-list li:first-child{border-radius:5px 5px 0 0}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0;border-radius:0 0 5px 5px}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.mind-elixir .mobile-menu{position:absolute;left:20px;bottom:70px;z-index:99;margin:0;padding:0;color:#333;border-radius:5px;box-shadow:0 12px 15px #0003;overflow:hidden}.mind-elixir .mobile-menu *{transition:color .4s,background-color .4s}.mind-elixir .mobile-menu div{float:left;text-align:center;width:30px;overflow:hidden;white-space:nowrap;padding:8px;background-color:#fff;border-bottom:1px solid #ecf0f1}.mind-elixir .mobile-menu div a{color:#333;text-decoration:none}.mind-elixir .mobile-menu div.disabled{color:#5e5e5e;background-color:#f7f7f7}.mind-elixir .mobile-menu div.disabled:hover{cursor:default;background-color:#f7f7f7}.mind-elixir .mobile-menu div:hover{cursor:pointer;background-color:#ecf0f1}.mind-elixir-toolbar{font-family:iconfont;position:absolute;color:var(--panel-color);background:var(--panel-bgcolor);padding:10px;border-radius:5px;box-shadow:0 1px 2px #0003}.mind-elixir-toolbar svg{display:inline-block}.mind-elixir-toolbar span:active{opacity:.5}.mind-elixir-toolbar.rb{right:20px;bottom:20px}.mind-elixir-toolbar.rb span+span{margin-left:10px}.mind-elixir-toolbar.lt{font-size:20px;left:20px;top:20px}.mind-elixir-toolbar.lt span{display:block}.mind-elixir-toolbar.lt span+span{margin-top:10px}")),document.head.appendChild(i)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
2
2
  (function(e) {
3
- var t, n, o, s, i, r, l = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', c = (c = document.getElementsByTagName("script"))[c.length - 1].getAttribute("data-injectcss");
4
- if (c && !e.__iconfont__svg__cssinject__) {
3
+ var t, n, o, s, i, r, c = '<svg><symbol id="icon-edit" viewBox="0 0 1024 1024"><path d="M423.765333 128a42.666667 42.666667 0 0 1 3.2 85.205333L423.765333 213.333333H234.666667a64 64 0 0 0-63.872 60.245334L170.666667 277.333333v512a64 64 0 0 0 60.245333 63.872L234.666667 853.333333h512a64 64 0 0 0 63.872-60.245333L810.666667 789.333333v-189.098666a42.666667 42.666667 0 0 1 85.205333-3.2l0.128 3.2V789.333333a149.333333 149.333333 0 0 1-144.213333 149.248L746.666667 938.666667h-512a149.333333 149.333333 0 0 1-149.248-144.213334L85.333333 789.333333v-512a149.333333 149.333333 0 0 1 144.213334-149.248L234.666667 128h189.098666z m324.949334-53.248a42.666667 42.666667 0 0 1 60.330666 0l150.869334 150.869333a42.666667 42.666667 0 0 1 0 60.330667l-329.386667 329.386667a42.666667 42.666667 0 0 1-29.44 12.458666l-153.386667 2.517334a42.666667 42.666667 0 0 1-43.349333-43.349334l2.56-153.386666a42.666667 42.666667 0 0 1 12.458667-29.44z m30.165333 90.496L491.946667 452.266667l-1.493334 91.989333 92.032-1.493333 286.976-286.976-90.538666-90.538667z" ></path></symbol><symbol id="icon-rising" viewBox="0 0 1024 1024"><path d="M553.173333 803.84h-64l0.021334-474.581333-224.021334 224-45.269333-45.226667L521.6 206.293333l301.717333 301.696-45.269333 45.269334-224.853333-224.896v475.477333z" ></path></symbol><symbol id="icon-falling" viewBox="0 0 1024 1024"><path d="M553.173333 238.314667h-64l0.021334 474.602666-224.021334-224-45.269333 45.226667L521.6 835.861333l301.717333-301.717333-45.269333-45.226667-224.853333 224.853334V238.336z" ></path></symbol><symbol id="icon-shanchu2" viewBox="0 0 1024 1024"><path d="M516.60601807 107.93026734c-82.64382935 0-149.71865844 65.51751709-152.5729065 147.77160644H171.37136841c-21.40603638 0-38.92044068 17.38504028-38.92044068 38.92126465 0 21.40686036 17.38504028 38.92208862 38.92126466 38.92208862h42.94308471v435.40136719c0 81.73498536 55.39828492 148.55026245 123.90106201 148.55026245h348.99444581c68.37341309 0 123.90106201-66.42553711 123.901062-148.55026245V333.80477906h38.92126465c21.40686036 0 38.92126464-17.38586426 38.92126465-38.92208863 0-21.40686036-17.38504028-38.92126464-38.92126465-38.92126465H668.91854859C666.45321656 173.44860839 599.24902344 107.93109131 516.60601807 107.93109131z m-79.65939331 147.77160644c2.85424805-42.16442872 37.2354126-74.85809326 79.78875732-74.85809326s76.93450927 32.82302857 79.39984131 74.85809326H436.94662476z m-98.86047364 589.01165771c-24.2611084 0-50.98754883-31.13717651-50.98754883-75.76693725V333.80477906h450.97036744V769.33551026c0 44.50039673-26.72644043 75.76776123-50.98754884 75.76776122H338.08615112v-0.38973999z m0 0" ></path><path d="M390.37063599 751.17263794c17.77313232 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.77478027 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.27124023 40.08883667 32.43493653 40.08883667z m117.41308594 0c17.7739563 0 32.43411255-17.7739563 32.43411255-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43411255-40.08966065-17.7739563 0-32.43493653 17.77478027-32.43493653 40.08966065v228.72875976c0 22.18469239 14.66098023 40.08883667 32.43493653 40.08883667z m123.51049804 0c17.7739563 0 32.43493653-17.7739563 32.43493652-40.08883667V482.35504151c0-22.31488037-14.53079224-40.08966065-32.43493652-40.08966065-17.7739563 0-32.43411255 17.77478027-32.43411255 40.08966065v228.72875976c0 22.18469239 14.14105224 40.08883667 32.43411255 40.08883667z m0 0" ></path></symbol><symbol id="icon-zijiedian" viewBox="0 0 1024 1024"><path d="M312.208 472c19.568-157.856 153.432-280 315.656-280 175.68 0 318.112 143.272 318.112 320S803.552 832 627.864 832c-162.224 0-296.08-122.144-315.656-280H120a40 40 0 0 1 0-80h192.208zM632 752c132.552 0 240-107.448 240-240 0-132.552-107.448-240-240-240-132.552 0-240 107.448-240 240 0 132.552 107.448 240 240 240z m-40-280v-80a40 40 0 0 1 80 0v80h80a40 40 0 0 1 0 80h-80v80a40 40 0 0 1-80 0v-80h-80a40 40 0 0 1 0-80h80z" ></path></symbol><symbol id="icon-tongjijiedian-" viewBox="0 0 1024 1024"><path d="M803.84 131.626667H410.24A59.733333 59.733333 0 0 0 350.506667 192v45.226667H199.68a51.626667 51.626667 0 0 0-51.626667 51.626666v465.92a51.626667 51.626667 0 0 0 51.626667 51.626667h187.52v-55.466667h-162.133333a21.333333 21.333333 0 0 1-21.333334-21.333333V313.386667a21.333333 21.333333 0 0 1 21.333334-21.333334h125.653333v64a59.733333 59.733333 0 0 0 59.733333 59.733334h393.386667a59.733333 59.733333 0 0 0 59.733333-59.733334V192a59.733333 59.733333 0 0 0-59.733333-60.373333z m4.266667 224.64a4.266667 4.266667 0 0 1-4.266667 4.266666H410.24a4.266667 4.266667 0 0 1-4.266667-4.266666V192a4.266667 4.266667 0 0 1 4.266667-4.266667h393.6a4.266667 4.266667 0 0 1 4.266667 4.266667zM716.16 749.44h-81.28v-81.493333a27.733333 27.733333 0 0 0-55.466667 0v81.28h-81.493333a27.733333 27.733333 0 1 0 0 55.466666h81.28v81.28a27.733333 27.733333 0 1 0 55.466667 0v-81.066666h81.28a27.733333 27.733333 0 0 0 0-55.466667z" ></path></symbol><symbol id="icon-close" viewBox="0 0 1024 1024"><path d="M557.312 513.248l265.28-263.904c12.544-12.48 12.608-32.704 0.128-45.248-12.512-12.576-32.704-12.608-45.248-0.128L512.128 467.904l-263.04-263.84c-12.448-12.48-32.704-12.544-45.248-0.064-12.512 12.48-12.544 32.736-0.064 45.28l262.976 263.776L201.6 776.8c-12.544 12.48-12.608 32.704-0.128 45.248a31.937 31.937 0 0 0 22.688 9.44c8.16 0 16.32-3.104 22.56-9.312l265.216-263.808 265.44 266.24c6.24 6.272 14.432 9.408 22.656 9.408a31.94 31.94 0 0 0 22.592-9.344c12.512-12.48 12.544-32.704 0.064-45.248L557.312 513.248z" fill="" ></path></symbol><symbol id="icon-menu" viewBox="0 0 1024 1024"><path d="M109.714 292.571h804.572c21.943 0 36.571-21.942 36.571-43.885 0-14.629-14.628-29.257-36.571-29.257H109.714c-21.943 0-36.571 14.628-36.571 36.571 0 14.629 14.628 36.571 36.571 36.571zM914.286 512H109.714c-21.943 0-36.571 14.629-36.571 36.571 0 14.629 14.628 36.572 36.571 36.572h804.572c21.943 0 36.571-21.943 36.571-43.886 0-14.628-14.628-29.257-36.571-29.257z m0 292.571H109.714c-21.943 0-36.571 14.629-36.571 36.572s14.628 36.571 36.571 36.571h804.572c21.943 0 36.571-21.943 36.571-36.571 0-21.943-14.628-36.572-36.571-36.572z" ></path></symbol><symbol id="icon-right" viewBox="0 0 1024 1024"><path d="M385 560.69999999L385 738.9c0 36.90000001 26.4 68.5 61.3 68.5l150.2 0c1.5 0 3-0.1 4.5-0.3 10.2 38.7 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-42 0-77.3 28.6-87.5 67.39999999-1.4-0.3-2.9-0.4-4.5-0.39999999L446.3 760.4c-6.8 0-14.3-8.9-14.3-21.49999999l0-427.00000001c0-12.7 7.40000001-21.5 14.30000001-21.5l150.19999999 0c1.5 0 3-0.2 4.5-0.4 10.2 38.8 45.5 67.3 87.5 67.3 50 0 90.5-40.5 90.5-90.4 0-49.9-40.5-90.6-90.5-90.59999999-42 0-77.3 28.6-87.5 67.39999999-1.4-0.2-2.9-0.4-4.49999999-0.4L446.3 243.3c-34.80000001 0-61.3 31.6-61.3 68.50000001L385 513.7l-79.1 0c-10.4-38.5-45.49999999-67-87.4-67-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c41.79999999 0 77.00000001-28.4 87.4-67L385 560.69999999z" fill="" ></path></symbol><symbol id="icon-left" viewBox="0 0 1024 1024"><path d="M639 463.30000001L639 285.1c0-36.90000001-26.4-68.5-61.3-68.5l-150.2 0c-1.5 0-3 0.1-4.5 0.3-10.2-38.7-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.5s40.5 90.5 90.5 90.5c42 0 77.3-28.6 87.5-67.39999999 1.4 0.3 2.9 0.4 4.5 0.39999999L577.7 263.6c6.8 0 14.3 8.9 14.3 21.49999999l0 427.00000001c0 12.7-7.40000001 21.5-14.30000001 21.5l-150.19999999 0c-1.5 0-3 0.2-4.5 0.4-10.2-38.8-45.5-67.3-87.5-67.3-50 0-90.5 40.5-90.5 90.4 0 49.9 40.5 90.6 90.5 90.59999999 42 0 77.3-28.6 87.5-67.39999999 1.4 0.2 2.9 0.4 4.49999999 0.4L577.7 780.7c34.80000001 0 61.3-31.6 61.3-68.50000001L639 510.3l79.1 0c10.4 38.5 45.49999999 67 87.4 67 50 0 90.5-40.5 90.5-90.5s-40.5-90.5-90.5-90.5c-41.79999999 0-77.00000001 28.4-87.4 67L639 463.30000001z" fill="" ></path></symbol><symbol id="icon-side" viewBox="0 0 1024 1024"><path d="M851.91168 328.45312c-59.97056 0-108.6208 48.47104-108.91264 108.36992l-137.92768 38.4a109.14304 109.14304 0 0 0-63.46752-46.58688l1.39264-137.11872c47.29344-11.86816 82.31936-54.66624 82.31936-105.64096 0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.76288-108.91776 108.91776c0 49.18784 32.60928 90.75712 77.38368 104.27392l-1.41312 138.87488a109.19936 109.19936 0 0 0-63.50336 48.55808l-138.93632-39.48544 0.01024-0.72704c0-60.15488-48.76288-108.91776-108.91776-108.91776s-108.91776 48.75776-108.91776 108.91776c0 60.15488 48.76288 108.91264 108.91776 108.91264 39.3984 0 73.91232-20.92032 93.03552-52.2496l139.19232 39.552-0.00512 0.2304c0 25.8304 9.00096 49.5616 24.02816 68.23424l-90.14272 132.63872a108.7488 108.7488 0 0 0-34.2528-5.504c-60.15488 0-108.91776 48.768-108.91776 108.91776 0 60.16 48.76288 108.91776 108.91776 108.91776 60.16 0 108.92288-48.75776 108.92288-108.91776 0-27.14624-9.9328-51.968-26.36288-71.04l89.04704-131.03104a108.544 108.544 0 0 0 37.6832 6.70208 108.672 108.672 0 0 0 36.48512-6.272l93.13792 132.57216a108.48256 108.48256 0 0 0-24.69888 69.0688c0 60.16 48.768 108.92288 108.91776 108.92288 60.16 0 108.91776-48.76288 108.91776-108.92288 0-60.14976-48.75776-108.91776-108.91776-108.91776a108.80512 108.80512 0 0 0-36.69504 6.3488l-93.07136-132.48a108.48768 108.48768 0 0 0 24.79616-72.22784l136.09984-37.888c18.99008 31.93856 53.84192 53.3504 93.69088 53.3504 60.16 0 108.92288-48.75776 108.92288-108.91264-0.00512-60.15488-48.77312-108.92288-108.92288-108.92288z" ></path></symbol><symbol id="icon-B" viewBox="0 0 1024 1024"><path d="M98.067692 65.457231H481.28c75.854769 0 132.411077 3.150769 169.668923 9.452307 37.336615 6.301538 70.656 19.534769 100.036923 39.620924 29.459692 20.007385 53.956923 46.710154 73.570462 80.029538 19.692308 33.398154 29.459692 70.734769 29.459692 112.167385 0 44.898462-12.130462 86.094769-36.233846 123.588923a224.886154 224.886154 0 0 1-98.461539 84.283077c58.368 17.092923 103.266462 46.08 134.695385 87.04 31.350154 40.96 47.025231 89.088 47.025231 144.462769 0 43.638154-10.082462 86.016-30.404923 127.212308-20.243692 41.196308-47.891692 74.043077-83.02277 98.697846-35.052308 24.654769-78.296615 39.778462-129.732923 45.449846-32.295385 3.465846-110.119385 5.671385-233.472 6.537846H98.067692V65.457231z m193.536 159.507692V446.621538h126.818462c75.460923 0 122.328615-1.024 140.603077-3.229538 33.083077-3.938462 59.155692-15.36 78.139077-34.343385 18.904615-18.904615 28.435692-43.874462 28.435692-74.830769 0-29.696-8.192-53.720615-24.497231-72.310154-16.384-18.510769-40.644923-29.696-72.940307-33.634461-19.140923-2.205538-74.279385-3.308308-165.415385-3.308308h-111.064615z m0 381.243077v256.315077h179.2c69.710769 0 113.979077-1.969231 132.726154-5.907692 28.750769-5.198769 52.145231-17.959385 70.262154-38.281847 18.116923-20.243692 27.096615-47.340308 27.096615-81.368615 0-28.750769-6.931692-53.169231-20.873846-73.255385a118.232615 118.232615 0 0 0-60.494769-43.795692c-26.387692-9.137231-83.574154-13.705846-171.638154-13.705846H291.603692z" ></path></symbol><symbol id="icon-a" viewBox="0 0 1024 1024"><path d="M757.76 665.6q0 20.48 1.536 34.304t7.68 22.016 18.944 12.288 34.304 4.096q-3.072 25.6-15.36 44.032-11.264 16.384-33.28 29.696t-62.976 13.312q-11.264 0-20.48-0.512t-17.408-2.56l-6.144-2.048-1.024 0q-4.096-1.024-10.24-4.096-2.048-2.048-4.096-2.048-1.024-1.024-2.048-1.024-14.336-8.192-23.552-17.408t-14.336-17.408q-6.144-10.24-9.216-20.48-63.488 75.776-178.176 75.776-48.128 0-88.064-15.36t-69.12-44.032-45.056-68.096-15.872-88.576 16.896-89.088 47.616-67.584 74.24-42.496 96.768-14.848q48.128 0 88.576 17.408t66.048 49.152q0-8.192 0.512-16.384t0.512-15.36q0-71.68-39.936-104.448t-128-32.768q-43.008 0-84.992 6.656t-84.992 17.92q14.336-28.672 25.088-47.616t24.064-29.184q30.72-24.576 158.72-24.576 79.872 0 135.168 13.824t90.624 43.52 51.2 75.264 15.872 108.032l0 200.704zM487.424 743.424q50.176 0 79.872-33.28t29.696-95.744q0-61.44-28.672-93.696t-76.8-32.256q-52.224 0-82.944 33.28t-30.72 94.72q0 58.368 31.744 92.672t77.824 34.304z" ></path></symbol><symbol id="icon-full" viewBox="0 0 1024 1024"><path d="M639.328 416c8.032 0 16.096-3.008 22.304-9.056l202.624-197.184-0.8 143.808c-0.096 17.696 14.144 32.096 31.808 32.192 0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808l1.248-222.208c0-0.672-0.352-1.248-0.384-1.92 0.032-0.512 0.288-0.896 0.288-1.408 0.032-17.664-14.272-32-31.968-32.032L671.552 96l-0.032 0c-17.664 0-31.968 14.304-32 31.968C639.488 145.632 653.824 160 671.488 160l151.872 0.224-206.368 200.8c-12.672 12.32-12.928 32.608-0.64 45.248C622.656 412.736 630.976 416 639.328 416z" ></path><path d="M896.032 639.552 896.032 639.552c-17.696 0-32 14.304-32.032 31.968l-0.224 151.872-200.832-206.4c-12.32-12.64-32.576-12.96-45.248-0.64-12.672 12.352-12.928 32.608-0.64 45.248l197.184 202.624-143.808-0.8c-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808-0.096 17.696 14.144 32.096 31.808 32.192l222.24 1.248c0.064 0 0.128 0 0.192 0 0.64 0 1.12-0.32 1.76-0.352 0.512 0.032 0.896 0.288 1.408 0.288l0.032 0c17.664 0 31.968-14.304 32-31.968L928 671.584C928.032 653.952 913.728 639.584 896.032 639.552z" ></path><path d="M209.76 159.744l143.808 0.8c0.064 0 0.128 0 0.192 0 17.6 0 31.904-14.208 32-31.808 0.096-17.696-14.144-32.096-31.808-32.192L131.68 95.328c-0.064 0-0.128 0-0.192 0-0.672 0-1.248 0.352-1.888 0.384-0.448 0-0.8-0.256-1.248-0.256 0 0-0.032 0-0.032 0-17.664 0-31.968 14.304-32 31.968L96 352.448c-0.032 17.664 14.272 32 31.968 32.032 0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968l0.224-151.936 200.832 206.4c6.272 6.464 14.624 9.696 22.944 9.696 8.032 0 16.096-3.008 22.304-9.056 12.672-12.32 12.96-32.608 0.64-45.248L209.76 159.744z" ></path><path d="M362.368 617.056l-202.624 197.184 0.8-143.808c0.096-17.696-14.144-32.096-31.808-32.192-0.064 0-0.128 0-0.192 0-17.6 0-31.904 14.208-32 31.808l-1.248 222.24c0 0.704 0.352 1.312 0.384 2.016 0 0.448-0.256 0.832-0.256 1.312-0.032 17.664 14.272 32 31.968 32.032L352.448 928c0 0 0.032 0 0.032 0 17.664 0 31.968-14.304 32-31.968s-14.272-32-31.968-32.032l-151.936-0.224 206.4-200.832c12.672-12.352 12.96-32.608 0.64-45.248S375.008 604.704 362.368 617.056z" ></path></symbol><symbol id="icon-add" viewBox="0 0 1024 1024"><path d="M863.328 482.56l-317.344-1.12L545.984 162.816c0-17.664-14.336-32-32-32s-32 14.336-32 32l0 318.4L159.616 480.064c-0.032 0-0.064 0-0.096 0-17.632 0-31.936 14.24-32 31.904C127.424 529.632 141.728 544 159.392 544.064l322.592 1.152 0 319.168c0 17.696 14.336 32 32 32s32-14.304 32-32l0-318.944 317.088 1.12c0.064 0 0.096 0 0.128 0 17.632 0 31.936-14.24 32-31.904C895.264 496.992 880.96 482.624 863.328 482.56z" ></path></symbol><symbol id="icon-move" viewBox="0 0 1024 1024"><path d="M863.744 544 163.424 544c-17.664 0-32-14.336-32-32s14.336-32 32-32l700.32 0c17.696 0 32 14.336 32 32S881.44 544 863.744 544z" ></path></symbol><symbol id="icon-living" viewBox="0 0 1024 1024"><path d="M514.133333 488.533333m-106.666666 0a106.666667 106.666667 0 1 0 213.333333 0 106.666667 106.666667 0 1 0-213.333333 0Z" fill="" ></path><path d="M512 64C264.533333 64 64 264.533333 64 512c0 236.8 183.466667 428.8 416 445.866667v-134.4c-53.333333-59.733333-200.533333-230.4-200.533333-334.933334 0-130.133333 104.533333-234.666667 234.666666-234.666666s234.666667 104.533333 234.666667 234.666666c0 61.866667-49.066667 153.6-145.066667 270.933334l-59.733333 68.266666V960C776.533333 942.933333 960 748.8 960 512c0-247.466667-200.533333-448-448-448z" fill="" ></path></symbol></svg>', l = (l = document.getElementsByTagName("script"))[l.length - 1].getAttribute("data-injectcss");
4
+ if (l && !e.__iconfont__svg__cssinject__) {
5
5
  e.__iconfont__svg__cssinject__ = !0;
6
6
  try {
7
7
  document.write(
8
8
  "<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>"
9
9
  );
10
- } catch (a) {
11
- console && console.log(a);
10
+ } catch {
12
11
  }
13
12
  }
14
13
  function h() {
@@ -16,7 +15,7 @@
16
15
  }
17
16
  t = function() {
18
17
  var a, u, d, m;
19
- (m = document.createElement("div")).innerHTML = l, l = null, (d = m.getElementsByTagName("svg")[0]) && (d.setAttribute("aria-hidden", "true"), d.style.position = "absolute", d.style.width = 0, d.style.height = 0, d.style.overflow = "hidden", a = d, (u = document.body).firstChild ? (m = a, (d = u.firstChild).parentNode.insertBefore(m, d)) : u.appendChild(a));
18
+ (m = document.createElement("div")).innerHTML = c, c = null, (d = m.getElementsByTagName("svg")[0]) && (d.setAttribute("aria-hidden", "true"), d.style.position = "absolute", d.style.width = 0, d.style.height = 0, d.style.overflow = "hidden", a = d, (u = document.body).firstChild ? (m = a, (d = u.firstChild).parentNode.insertBefore(m, d)) : u.appendChild(a));
20
19
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
21
20
  document.removeEventListener("DOMContentLoaded", n, !1), t();
22
21
  }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (o = t, s = e.document, i = !1, (r = function() {
@@ -42,7 +41,7 @@ const T = 0, z = 1, ie = 2, D = 30, De = {
42
41
  "--panel-bgcolor": "#ffffff",
43
42
  "--panel-border-color": "#eaeaea"
44
43
  }
45
- }, Oe = {
44
+ }, $e = {
46
45
  name: "Dark",
47
46
  palette: ["#848FA0", "#748BE9", "#D2F9FE", "#4145A5", "#789AFA", "#706CF4", "#EF987F", "#775DD5", "#FCEECF", "#DA7FBC"],
48
47
  cssVar: {
@@ -70,10 +69,10 @@ const et = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/
70
69
  return null;
71
70
  } else
72
71
  return null;
73
- }, O = (e, t) => {
72
+ }, $ = (e, t) => {
74
73
  if (e.parent = t, e.children)
75
74
  for (let n = 0; n < e.children.length; n++)
76
- O(e.children[n], e);
75
+ $(e.children[n], e);
77
76
  };
78
77
  function he(e) {
79
78
  if (e.id = G(), e.children)
@@ -86,16 +85,16 @@ const tt = (e, t) => {
86
85
  Date.now() - n < t || (e(...o), n = Date.now());
87
86
  };
88
87
  };
89
- function $e(e, t, n, o) {
88
+ function Oe(e, t, n, o) {
90
89
  const s = o - t, i = e - n;
91
90
  let r = Math.atan(Math.abs(s) / Math.abs(i)) / 3.14 * 180;
92
91
  i < 0 && s > 0 && (r = 180 - r), i < 0 && s < 0 && (r = 180 + r), i > 0 && s < 0 && (r = 360 - r);
93
- const l = 15, c = 30, h = r + c, a = r - c;
92
+ const c = 15, l = 30, h = r + l, a = r - l;
94
93
  return {
95
- x1: n + Math.cos(Math.PI * h / 180) * l,
96
- y1: o - Math.sin(Math.PI * h / 180) * l,
97
- x2: n + Math.cos(Math.PI * a / 180) * l,
98
- y2: o - Math.sin(Math.PI * a / 180) * l
94
+ x1: n + Math.cos(Math.PI * h / 180) * c,
95
+ y1: o - Math.sin(Math.PI * h / 180) * c,
96
+ x2: n + Math.cos(Math.PI * a / 180) * c,
97
+ y2: o - Math.sin(Math.PI * a / 180) * c
99
98
  };
100
99
  }
101
100
  function G() {
@@ -116,15 +115,15 @@ function ue(e) {
116
115
  })
117
116
  );
118
117
  }
119
- const $ = (e, t) => {
118
+ const O = (e, t) => {
120
119
  let n = 0, o = 0;
121
120
  for (; t && t !== e; )
122
121
  n += t.offsetLeft, o += t.offsetTop, t = t.offsetParent;
123
122
  return { offsetLeft: n, offsetTop: o };
124
- }, N = (e, t) => {
123
+ }, C = (e, t) => {
125
124
  for (const n in t)
126
125
  e.setAttribute(n, t[n]);
127
- }, ce = (e) => e ? e.tagName === "ME-TPC" : !1, re = (e) => e.filter((t) => {
126
+ }, le = (e) => e ? e.tagName === "ME-TPC" : !1, re = (e) => e.filter((t) => {
128
127
  for (let n = 0; n < e.length; n++) {
129
128
  if (t === e[n])
130
129
  continue;
@@ -169,14 +168,14 @@ function ot(e) {
169
168
  if (n.tagName === "ME-EPD")
170
169
  e.expandNode(n.previousSibling);
171
170
  else if (e.editable)
172
- ce(n) ? e.selectNode(n, !1, t) : n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
171
+ le(n) ? e.selectNode(n, !1, t) : n.tagName === "text" ? n.dataset.type === "custom-link" ? e.selectArrow(n.parentElement) : e.selectSummary(n.parentElement) : n.className;
173
172
  else
174
173
  return;
175
174
  }), e.map.addEventListener("dblclick", (t) => {
176
175
  if (t.preventDefault(), !e.editable)
177
176
  return;
178
177
  const n = t.target;
179
- ce(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
178
+ le(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
180
179
  }), e.map.addEventListener("mousemove", (t) => {
181
180
  t.target.contentEditable !== "true" && L.onMove(t, e.container);
182
181
  }), e.map.addEventListener("mousedown", (t) => {
@@ -197,7 +196,6 @@ const st = {
197
196
  return {
198
197
  handlers: {},
199
198
  showHandler: function() {
200
- console.log(this.handlers);
201
199
  },
202
200
  addListener: function(e, t) {
203
201
  this.handlers[e] === void 0 && (this.handlers[e] = []), this.handlers[e].push(t);
@@ -222,7 +220,7 @@ const st = {
222
220
  };
223
221
  }
224
222
  }, oe = document, it = function() {
225
- console.time("layout"), this.nodes.innerHTML = "";
223
+ this.nodes.innerHTML = "";
226
224
  const e = this.createTopic(this.nodeData);
227
225
  fe(e, this.nodeData), e.draggable = !1;
228
226
  const t = oe.createElement("me-root");
@@ -234,25 +232,25 @@ const st = {
234
232
  i.direction === T ? o += 1 : i.direction === z ? s += 1 : o <= s ? (i.direction = T, o += 1) : (i.direction = z, s += 1);
235
233
  });
236
234
  }
237
- rt(this, n, t), console.timeEnd("layout");
235
+ rt(this, n, t);
238
236
  }, rt = function(e, t, n) {
239
237
  const o = oe.createElement("me-main");
240
238
  o.className = "lhs";
241
239
  const s = oe.createElement("me-main");
242
240
  s.className = "rhs";
243
241
  for (let i = 0; i < t.length; i++) {
244
- const r = t[i], { grp: l } = e.createWrapper(r);
245
- e.direction === ie ? r.direction === T ? o.appendChild(l) : s.appendChild(l) : e.direction === T ? o.appendChild(l) : s.appendChild(l);
242
+ const r = t[i], { grp: c } = e.createWrapper(r);
243
+ e.direction === ie ? r.direction === T ? o.appendChild(c) : s.appendChild(c) : e.direction === T ? o.appendChild(c) : s.appendChild(c);
246
244
  }
247
245
  e.nodes.appendChild(o), e.nodes.appendChild(n), e.nodes.appendChild(s), e.nodes.appendChild(e.lines);
248
- }, lt = function(e, t) {
246
+ }, ct = function(e, t) {
249
247
  const n = oe.createElement("me-children");
250
248
  for (let o = 0; o < t.length; o++) {
251
249
  const s = t[o], { grp: i } = e.createWrapper(s);
252
250
  n.appendChild(i);
253
251
  }
254
252
  return n;
255
- }, S = document, C = (e, t) => {
253
+ }, S = document, N = (e, t) => {
256
254
  const o = (t ? t.mindElixirBox : S).querySelector(`[data-nodeid=me${e}]`);
257
255
  if (!o)
258
256
  throw new Error(`FindEle: Node ${e} not found, maybe it's collapsed.`);
@@ -267,8 +265,7 @@ const st = {
267
265
  if (n.url && n.width && n.height) {
268
266
  const o = S.createElement("img");
269
267
  o.src = n.url, o.style.width = n.width + "px", o.style.height = n.height + "px", e.appendChild(o), e.image = o;
270
- } else
271
- console.warn("image url/width/height are required");
268
+ }
272
269
  } else
273
270
  e.image && (e.image = void 0);
274
271
  {
@@ -290,12 +287,12 @@ const st = {
290
287
  n.className = "tags", n.innerHTML = t.tags.map((o) => `<span>${te(o)}</span>`).join(""), e.appendChild(n), e.tags = n;
291
288
  } else
292
289
  e.tags && (e.tags = void 0);
293
- }, ct = function(e, t) {
290
+ }, lt = function(e, t) {
294
291
  const n = S.createElement("me-wrapper"), { p: o, tpc: s } = this.createParent(e);
295
292
  if (n.appendChild(o), !t && e.children && e.children.length > 0) {
296
293
  const i = pe(e.expanded);
297
294
  if (o.appendChild(i), e.expanded !== !1) {
298
- const r = lt(this, e.children);
295
+ const r = ct(this, e.children);
299
296
  n.appendChild(r);
300
297
  }
301
298
  }
@@ -317,7 +314,7 @@ function Pe(e) {
317
314
  n && (n.removeAllRanges(), n.addRange(t));
318
315
  }
319
316
  const ut = function(e) {
320
- if (console.time("editTopic"), !e)
317
+ if (!e)
321
318
  return;
322
319
  const t = S.createElement("div"), n = e.text.textContent;
323
320
  e.appendChild(t), t.id = "input-box", t.textContent = n, t.contentEditable = "true", t.spellcheck = !1, t.style.cssText = `min-width:${e.offsetWidth - 8}px;`, this.direction === T && (t.style.right = "0"), t.focus(), Pe(t), this.bus.fire("operation", {
@@ -336,28 +333,28 @@ const ut = function(e) {
336
333
  if (!t)
337
334
  return;
338
335
  const o = e.nodeObj, s = ((i = t.textContent) == null ? void 0 : i.trim()) || "";
339
- console.log(s), s === "" ? o.topic = n : o.topic = s, t.remove(), s !== n && (e.text.textContent = o.topic, this.linkDiv(), this.bus.fire("operation", {
336
+ s === "" ? o.topic = n : o.topic = s, t.remove(), s !== n && (e.text.textContent = o.topic, this.linkDiv(), this.bus.fire("operation", {
340
337
  name: "finishEdit",
341
338
  obj: o,
342
339
  origin: n
343
340
  }));
344
- }), console.timeEnd("editTopic");
341
+ });
345
342
  }, pe = function(e) {
346
343
  const t = S.createElement("me-epd");
347
344
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
348
- }, V = document, W = "http://www.w3.org/2000/svg", He = function(e, t, n) {
349
- const o = V.createElementNS(W, "path");
350
- return N(o, {
345
+ }, K = document, V = "http://www.w3.org/2000/svg", He = function(e, t, n) {
346
+ const o = K.createElementNS(V, "path");
347
+ return C(o, {
351
348
  d: e,
352
349
  stroke: t || "#666",
353
350
  fill: "none",
354
351
  "stroke-width": n
355
352
  }), o;
356
353
  }, X = function(e) {
357
- const t = V.createElementNS(W, "svg");
354
+ const t = K.createElementNS(V, "svg");
358
355
  return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
359
356
  }, be = function() {
360
- const e = V.createElementNS(W, "line");
357
+ const e = K.createElementNS(V, "line");
361
358
  return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
362
359
  }, ft = function(e, t) {
363
360
  const n = {
@@ -365,17 +362,17 @@ const ut = function(e) {
365
362
  fill: "none",
366
363
  "stroke-linecap": "cap",
367
364
  "stroke-width": "2"
368
- }, o = V.createElementNS(W, "g"), s = V.createElementNS(W, "path"), i = V.createElementNS(W, "path");
369
- return N(i, {
365
+ }, o = K.createElementNS(V, "g"), s = K.createElementNS(V, "path"), i = K.createElementNS(V, "path");
366
+ return C(i, {
370
367
  d: t,
371
368
  ...n
372
- }), N(s, {
369
+ }), C(s, {
373
370
  d: e,
374
371
  ...n,
375
372
  "stroke-dasharray": "8,2"
376
373
  }), o.appendChild(s), o.appendChild(i), o;
377
374
  }, Be = function(e, t, n) {
378
- if (console.time("editSummary"), !t)
375
+ if (!t)
379
376
  return;
380
377
  const o = document.createElement("div");
381
378
  e.nodes.appendChild(o);
@@ -383,37 +380,37 @@ const ut = function(e) {
383
380
  o.id = "input-box", o.textContent = s, o.contentEditable = "true", o.spellcheck = !1;
384
381
  const i = t.getAttribute("x"), r = t.getAttribute("y");
385
382
  o.style.cssText = `min-width:88px;position:absolute;left:${i}px;top:${r}px;`;
386
- const l = t.getAttribute("text-anchor");
387
- l === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : l === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Pe(o), o.addEventListener("keydown", (c) => {
388
- c.stopPropagation();
389
- const h = c.key;
383
+ const c = t.getAttribute("text-anchor");
384
+ c === "end" ? o.style.cssText += "transform: translate(-100%, -100%);" : c === "middle" ? o.style.cssText += "transform: translate(-50%, -100%);" : o.style.cssText += "transform: translate(0, -100%);", o.focus(), Pe(o), o.addEventListener("keydown", (l) => {
385
+ l.stopPropagation();
386
+ const h = l.key;
390
387
  if (h === "Enter" || h === "Tab") {
391
- if (c.shiftKey)
388
+ if (l.shiftKey)
392
389
  return;
393
- c.preventDefault(), o.blur(), e.map.focus();
390
+ l.preventDefault(), o.blur(), e.map.focus();
394
391
  }
395
392
  }), o.addEventListener("blur", () => {
396
393
  o && n(o);
397
- }), console.timeEnd("editSummary");
394
+ });
398
395
  }, pt = function(e) {
399
- console.time("linkDiv"), this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - this.nodes.offsetWidth / 2}px`;
396
+ this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - this.nodes.offsetWidth / 2}px`;
400
397
  const t = this.map.querySelectorAll("me-main > me-wrapper");
401
398
  this.lines.innerHTML = "";
402
399
  const n = this.map.querySelector("me-root"), o = n.offsetTop, s = n.offsetLeft, i = n.offsetWidth, r = n.offsetHeight;
403
- for (let l = 0; l < t.length; l++) {
404
- const c = t[l], h = c.querySelector("me-tpc"), { offsetLeft: a, offsetTop: u } = $(this.nodes, h), d = h.offsetWidth, m = h.offsetHeight, g = c.parentNode.className, p = this.generateMainBranch({ pT: o, pL: s, pW: i, pH: r, cT: u, cL: a, cW: d, cH: m, direction: g, containerHeight: this.nodes.offsetHeight }), f = this.theme.palette, v = h.nodeObj.branchColor || f[l % f.length];
400
+ for (let c = 0; c < t.length; c++) {
401
+ const l = t[c], h = l.querySelector("me-tpc"), { offsetLeft: a, offsetTop: u } = O(this.nodes, h), d = h.offsetWidth, m = h.offsetHeight, g = l.parentNode.className, p = this.generateMainBranch({ pT: o, pL: s, pW: i, pH: r, cT: u, cL: a, cW: d, cH: m, direction: g, containerHeight: this.nodes.offsetHeight }), f = this.theme.palette, v = h.nodeObj.branchColor || f[c % f.length];
405
402
  h.style.borderColor = v, this.lines.appendChild(He(p, v, "3"));
406
- const b = c.children[0].children[1];
407
- if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", g === "lhs" ? b.style.left = "-10px" : b.style.right = "-10px"), !(e && e !== c) && c.childElementCount) {
408
- const y = X("subLines"), x = c.lastChild;
409
- x.tagName === "svg" && x.remove(), c.appendChild(y), ze(this, y, v, c, g, !0);
403
+ const b = l.children[0].children[1];
404
+ if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", g === "lhs" ? b.style.left = "-10px" : b.style.right = "-10px"), !(e && e !== l) && l.childElementCount) {
405
+ const y = X("subLines"), x = l.lastChild;
406
+ x.tagName === "svg" && x.remove(), l.appendChild(y), ze(this, y, v, l, g, !0);
410
407
  }
411
408
  }
412
- this.renderArrow(), this.renderSummary(), console.timeEnd("linkDiv");
409
+ this.renderArrow(), this.renderSummary();
413
410
  }, ze = function(e, t, n, o, s, i) {
414
- const r = o.firstChild, l = o.children[1].children, c = r.offsetTop, h = r.offsetLeft, a = r.offsetWidth, u = r.offsetHeight;
415
- for (let d = 0; d < l.length; d++) {
416
- const m = l[d], g = m.firstChild, p = g.offsetTop, f = g.offsetLeft, v = g.offsetWidth, b = g.offsetHeight, y = g.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: c, pL: h, pW: a, pH: u, cT: p, cL: f, cW: v, cH: b, direction: s, isFirst: i });
411
+ const r = o.firstChild, c = o.children[1].children, l = r.offsetTop, h = r.offsetLeft, a = r.offsetWidth, u = r.offsetHeight;
412
+ for (let d = 0; d < c.length; d++) {
413
+ const m = c[d], g = m.firstChild, p = g.offsetTop, f = g.offsetLeft, v = g.offsetWidth, b = g.offsetHeight, y = g.firstChild.nodeObj.branchColor || n, x = e.generateSubBranch({ pT: l, pL: h, pW: a, pH: u, cT: p, cL: f, cW: v, cH: b, direction: s, isFirst: i });
417
414
  t.appendChild(He(x, y, "2"));
418
415
  const w = g.children[1];
419
416
  if (w) {
@@ -537,8 +534,8 @@ function mt(e, t) {
537
534
  }, o = (y, x, w) => {
538
535
  const _ = document.createElement("li");
539
536
  return _.id = y, _.innerHTML = `<span>${te(x)}</span><span>${te(w)}</span>`, _;
540
- }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), l = o("cm-add_parent", i.addParent, ""), c = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-down", i.link, ""), p = o("cm-down", i.summary, ""), f = document.createElement("ul");
541
- if (f.className = "menu-list", f.appendChild(r), f.appendChild(l), f.appendChild(c), f.appendChild(h), (!t || t.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(m), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
537
+ }, s = xe[e.locale] ? e.locale : "en", i = xe[s], r = o("cm-add_child", i.addChild, "tab"), c = o("cm-add_parent", i.addParent, ""), l = o("cm-add_sibling", i.addSibling, "enter"), h = o("cm-remove_child", i.removeNode, "delete"), a = o("cm-fucus", i.focus, ""), u = o("cm-unfucus", i.cancelFocus, ""), d = o("cm-up", i.moveUp, "PgUp"), m = o("cm-down", i.moveDown, "Pgdn"), g = o("cm-down", i.link, ""), p = o("cm-down", i.summary, ""), f = document.createElement("ul");
538
+ if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(h), (!t || t.focus) && (f.appendChild(a), f.appendChild(u)), f.appendChild(d), f.appendChild(m), f.appendChild(p), (!t || t.link) && f.appendChild(g), t && t.extend)
542
539
  for (let y = 0; y < t.extend.length; y++) {
543
540
  const x = t.extend[y], w = o(x.name, x.name, x.key || "");
544
541
  f.appendChild(w), w.onclick = (_) => {
@@ -552,8 +549,8 @@ function mt(e, t) {
552
549
  if (y.preventDefault(), !e.editable)
553
550
  return;
554
551
  const x = y.target;
555
- if (ce(x)) {
556
- x.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (a.className = "disabled", d.className = "disabled", m.className = "disabled", l.className = "disabled", c.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", m.className = "", l.className = "", c.className = "", h.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, L.mousedown && (L.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
552
+ if (le(x)) {
553
+ x.parentElement.tagName === "ME-ROOT" ? b = !0 : b = !1, b ? (a.className = "disabled", d.className = "disabled", m.className = "disabled", c.className = "disabled", l.className = "disabled", h.className = "disabled") : (a.className = "", d.className = "", m.className = "", c.className = "", l.className = "", h.className = ""), e.currentNodes || e.selectNode(x), v.hidden = !1, L.mousedown && (L.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
557
554
  const w = f.getBoundingClientRect(), _ = f.offsetHeight, P = f.offsetWidth, U = y.clientY - w.top, H = y.clientX - w.left;
558
555
  _ + U > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = U + 15 + "px"), P + H > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = H + 10 + "px");
559
556
  }
@@ -561,9 +558,9 @@ function mt(e, t) {
561
558
  y.target === v && (v.hidden = !0);
562
559
  }, r.onclick = () => {
563
560
  e.addChild(), v.hidden = !0;
564
- }, l.onclick = () => {
565
- e.insertParent(), v.hidden = !0;
566
561
  }, c.onclick = () => {
562
+ e.insertParent(), v.hidden = !0;
563
+ }, l.onclick = () => {
567
564
  b || (e.insertSibling("after"), v.hidden = !0);
568
565
  }, h.onclick = () => {
569
566
  b || (e.removeNode(), v.hidden = !0);
@@ -583,7 +580,7 @@ function mt(e, t) {
583
580
  (w) => {
584
581
  w.preventDefault(), x.remove();
585
582
  const _ = w.target;
586
- _.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT" ? e.createArrow(y, _) : console.log("link cancel");
583
+ (_.parentElement.tagName === "ME-PARENT" || _.parentElement.tagName === "ME-ROOT") && e.createArrow(y, _);
587
584
  },
588
585
  {
589
586
  once: !0
@@ -715,7 +712,7 @@ function Et(e, t) {
715
712
  return g.id = d, g.innerHTML = `<svg class="icon" aria-hidden="true">
716
713
  <use xlink:href="#icon-${m}"></use>
717
714
  </svg>`, g;
718
- }, o = n("cm-add_child", "zijiedian"), s = n("cm-add_sibling", "tongjijiedian-"), i = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), l = n("cm-down", "falling"), c = n("cm-edit", "edit"), h = document.createElement("ul");
715
+ }, o = n("cm-add_child", "zijiedian"), s = n("cm-add_sibling", "tongjijiedian-"), i = n("cm-remove_child", "shanchu2"), r = n("cm-up", "rising"), c = n("cm-down", "falling"), l = n("cm-edit", "edit"), h = document.createElement("ul");
719
716
  if (h.className = "menu-list", t && t.extend)
720
717
  for (let d = 0; d < t.extend.length; d++) {
721
718
  const m = t.extend[d], g = n(m.name, m.name);
@@ -724,7 +721,7 @@ function Et(e, t) {
724
721
  };
725
722
  }
726
723
  const a = document.createElement("mmenu");
727
- a.className = "mobile-menu", a.appendChild(o), a.appendChild(s), a.appendChild(i), a.appendChild(r), a.appendChild(l), a.appendChild(c), a.hidden = !0, e.container.append(a);
724
+ a.className = "mobile-menu", a.appendChild(o), a.appendChild(s), a.appendChild(i), a.appendChild(r), a.appendChild(c), a.appendChild(l), a.hidden = !0, e.container.append(a);
728
725
  let u = !0;
729
726
  e.bus.addListener("unselectNode", function() {
730
727
  a.hidden = !0;
@@ -740,13 +737,13 @@ function Et(e, t) {
740
737
  u || e.removeNode();
741
738
  }, r.onclick = (d) => {
742
739
  u || e.moveUpNode();
743
- }, l.onclick = (d) => {
744
- u || e.moveDownNode();
745
740
  }, c.onclick = (d) => {
741
+ u || e.moveDownNode();
742
+ }, l.onclick = (d) => {
746
743
  e.beginEdit();
747
744
  };
748
745
  }
749
- const ae = document, Nt = function(e, t) {
746
+ const ae = document, Ct = function(e, t) {
750
747
  if (!t)
751
748
  return de(e), e;
752
749
  let n = e.querySelector(".insert-preview");
@@ -758,59 +755,59 @@ const ae = document, Nt = function(e, t) {
758
755
  const t = e.querySelectorAll(".insert-preview");
759
756
  for (const n of t || [])
760
757
  n.remove();
761
- }, Ne = function(e, t) {
758
+ }, Ce = function(e, t) {
762
759
  for (const n of t) {
763
760
  const o = n.parentElement.parentElement.contains(e);
764
761
  if (!(e && e.tagName === "ME-TPC" && e !== n && !o && e.nodeObj.root !== !0))
765
762
  return !1;
766
763
  }
767
764
  return !0;
768
- }, Ct = function(e) {
765
+ }, Nt = function(e) {
769
766
  const t = document.createElement("div");
770
767
  return t.className = "mind-elixir-ghost", e.map.appendChild(t), t;
771
768
  };
772
769
  function _t(e) {
773
770
  let t = null, n = null, o = null;
774
- const s = Ct(e), i = 12;
771
+ const s = Nt(e), i = 12;
775
772
  e.map.addEventListener("dragstart", (r) => {
776
- var c, h;
777
- const l = r.target;
778
- if ((l == null ? void 0 : l.tagName) !== "ME-TPC") {
773
+ var l, h;
774
+ const c = r.target;
775
+ if ((c == null ? void 0 : c.tagName) !== "ME-TPC") {
779
776
  r.preventDefault();
780
777
  return;
781
778
  }
782
- (c = e.currentNodes) != null && c.includes(l) || (e.unselectNodes(), e.selectNode(l)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [l], s.innerHTML = l.innerHTML);
779
+ (l = e.currentNodes) != null && l.includes(c) || (e.unselectNodes(), e.selectNode(c)), e.currentNodes ? (t = e.currentNodes, s.innerHTML = e.currentNodes.length + " nodes") : (t = [c], s.innerHTML = c.innerHTML);
783
780
  for (const a of t)
784
781
  a.parentElement.parentElement.style.opacity = "0.5";
785
782
  (h = r.dataTransfer) == null || h.setDragImage(s, 0, 0), L.clear();
786
783
  }), e.map.addEventListener("dragend", async (r) => {
787
784
  if (!t)
788
785
  return;
789
- for (const c of t)
790
- c.parentElement.parentElement.style.opacity = "1";
791
- const l = r.target;
792
- l.style.opacity = "", o && (de(o), n === "before" ? e.moveNodeBefore(t, o) : n === "after" ? e.moveNodeAfter(t, o) : n === "in" && e.moveNodeIn(t, o), t = null);
786
+ for (const l of t)
787
+ l.parentElement.parentElement.style.opacity = "1";
788
+ const c = r.target;
789
+ c.style.opacity = "", o && (de(o), n === "before" ? e.moveNodeBefore(t, o) : n === "after" ? e.moveNodeAfter(t, o) : n === "in" && e.moveNodeIn(t, o), t = null);
793
790
  }), e.map.addEventListener(
794
791
  "dragover",
795
792
  tt(function(r) {
796
793
  if (!t)
797
794
  return;
798
795
  de(o);
799
- const l = ae.elementFromPoint(r.clientX, r.clientY - i);
800
- if (Ne(l, t)) {
801
- o = l;
802
- const c = l.getBoundingClientRect().y;
803
- r.clientY > c + l.clientHeight ? n = "after" : n = "in";
796
+ const c = ae.elementFromPoint(r.clientX, r.clientY - i);
797
+ if (Ce(c, t)) {
798
+ o = c;
799
+ const l = c.getBoundingClientRect().y;
800
+ r.clientY > l + c.clientHeight ? n = "after" : n = "in";
804
801
  } else {
805
- const c = ae.elementFromPoint(r.clientX, r.clientY + i);
806
- if (Ne(c, t)) {
807
- o = c;
808
- const h = c.getBoundingClientRect().y;
802
+ const l = ae.elementFromPoint(r.clientX, r.clientY + i);
803
+ if (Ce(l, t)) {
804
+ o = l;
805
+ const h = l.getBoundingClientRect().y;
809
806
  r.clientY < h ? n = "before" : n = "in";
810
807
  } else
811
808
  n = o = null;
812
809
  }
813
- o && Nt(o, n);
810
+ o && Ct(o, n);
814
811
  }, 100)
815
812
  );
816
813
  }
@@ -840,13 +837,13 @@ function Mt(e) {
840
837
  }), e.undo = function() {
841
838
  if (n > -1) {
842
839
  const s = t[n];
843
- o = s.prev, e.refresh(s.prev), s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i))), n--, console.log("current", o);
840
+ o = s.prev, e.refresh(s.prev), s.currentObject.type === "node" ? e.selectNode(N(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => N(i))), n--;
844
841
  }
845
842
  }, e.redo = function() {
846
843
  if (n < t.length - 1) {
847
844
  n++;
848
845
  const s = t[n];
849
- o = s.next, e.refresh(s.next), s.currentObject.type === "node" ? e.selectNode(C(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => C(i)));
846
+ o = s.next, e.refresh(s.next), s.currentObject.type === "node" ? e.selectNode(N(s.currentObject.value)) : s.currentObject.type === "nodes" && e.selectNodes(s.currentObject.value.map((i) => N(i)));
850
847
  }
851
848
  }, e.map.addEventListener("keydown", (s) => {
852
849
  (s.metaKey || s.ctrlKey) && s.shiftKey && s.key === "Z" ? e.redo() : (s.metaKey || s.ctrlKey) && s.key === "z" && e.undo();
@@ -883,7 +880,7 @@ function Tt(e) {
883
880
  function kt(e) {
884
881
  e.container.append(Lt(e)), e.container.append(Tt(e));
885
882
  }
886
- /*! @viselect/vanilla v3.3.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
883
+ /*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
887
884
  var At = Object.defineProperty, jt = (e, t, n) => t in e ? At(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, E = (e, t, n) => (jt(e, typeof t != "symbol" ? t + "" : t, n), n);
888
885
  class Dt {
889
886
  constructor() {
@@ -907,24 +904,22 @@ class Dt {
907
904
  this._listeners.clear();
908
905
  }
909
906
  }
910
- const Ce = (e, t = "px") => typeof e == "number" ? e + t : e;
907
+ const Ne = (e, t = "px") => typeof e == "number" ? e + t : e;
911
908
  function A({ style: e }, t, n) {
912
909
  if (typeof t == "object")
913
910
  for (const [o, s] of Object.entries(t))
914
- s !== void 0 && (e[o] = Ce(s));
911
+ s !== void 0 && (e[o] = Ne(s));
915
912
  else
916
- n !== void 0 && (e[t] = Ce(n));
913
+ n !== void 0 && (e[t] = Ne(n));
917
914
  }
918
- function Re(e) {
919
- return (t, n, o, s = {}) => {
920
- t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
921
- for (const i of t)
915
+ const Re = (e) => (t, n, o, s = {}) => {
916
+ t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
917
+ for (const i of t)
918
+ if (i)
922
919
  for (const r of n)
923
920
  i[e](r, o, { capture: !1, ...s });
924
- return [t, n, o, s];
925
- };
926
- }
927
- const q = Re("addEventListener"), j = Re("removeEventListener"), Q = (e) => {
921
+ return [t, n, o, s];
922
+ }, q = Re("addEventListener"), j = Re("removeEventListener"), Q = (e) => {
928
923
  var t;
929
924
  const { clientX: n, clientY: o, target: s } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
930
925
  return { x: n, y: o, target: s };
@@ -950,7 +945,7 @@ function F(e, t = document) {
950
945
  }
951
946
  return o;
952
947
  }
953
- const Ot = () => matchMedia("(hover: none), (pointer: coarse)").matches, $t = () => "safari" in window, Pt = (e) => {
948
+ const $t = () => matchMedia("(hover: none), (pointer: coarse)").matches, Ot = () => "safari" in window, Pt = (e) => {
954
949
  let t, n = -1, o = !1;
955
950
  return {
956
951
  next(...s) {
@@ -962,7 +957,28 @@ const Ot = () => matchMedia("(hover: none), (pointer: coarse)").matches, $t = ()
962
957
  cancelAnimationFrame(n), o = !1;
963
958
  }
964
959
  };
965
- }, { abs: B, max: Se, min: Me, ceil: Le } = Math;
960
+ };
961
+ function Ht(e, t) {
962
+ for (const n of t) {
963
+ if (typeof n == "number")
964
+ return e.button === n;
965
+ if (typeof n == "object") {
966
+ const o = n.button === e.button, s = n.modifiers.every((i) => {
967
+ switch (i) {
968
+ case "alt":
969
+ return e.altKey;
970
+ case "ctrl":
971
+ return e.ctrlKey || e.metaKey;
972
+ case "shift":
973
+ return e.shiftKey;
974
+ }
975
+ });
976
+ return o && s;
977
+ }
978
+ }
979
+ return !1;
980
+ }
981
+ const { abs: B, max: Se, min: Me, ceil: Le } = Math;
966
982
  class qe extends Dt {
967
983
  constructor(t) {
968
984
  var n, o, s, i, r;
@@ -988,6 +1004,7 @@ class qe extends Dt {
988
1004
  behaviour: {
989
1005
  overlap: "invert",
990
1006
  intersect: "touch",
1007
+ triggers: [0],
991
1008
  ...t.behaviour,
992
1009
  startThreshold: (n = t.behaviour) != null && n.startThreshold ? typeof t.behaviour.startThreshold == "number" ? t.behaviour.startThreshold : { x: 10, y: 10, ...t.behaviour.startThreshold } : { x: 10, y: 10 },
993
1010
  scrolling: {
@@ -1014,8 +1031,8 @@ class qe extends Dt {
1014
1031
  };
1015
1032
  for (const a of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
1016
1033
  typeof this[a] == "function" && (this[a] = this[a].bind(this));
1017
- const { document: l, selectionAreaClass: c, selectionContainerClass: h } = this._options;
1018
- this._area = l.createElement("div"), this._clippingElement = l.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(c), h && this._clippingElement.classList.add(h), A(this._area, {
1034
+ const { document: c, selectionAreaClass: l, selectionContainerClass: h } = this._options;
1035
+ this._area = c.createElement("div"), this._clippingElement = c.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(l), h && this._clippingElement.classList.add(h), A(this._area, {
1019
1036
  willChange: "top, left, bottom, right, width, height",
1020
1037
  top: 0,
1021
1038
  left: 0,
@@ -1038,16 +1055,19 @@ class qe extends Dt {
1038
1055
  });
1039
1056
  }
1040
1057
  _onTapStart(t, n = !1) {
1041
- const { x: o, y: s, target: i } = Q(t), { _options: r } = this, { document: l } = this._options, c = i.getBoundingClientRect(), h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1058
+ const { x: o, y: s, target: i } = Q(t), { _options: r } = this, { document: c } = this._options, l = i.getBoundingClientRect();
1059
+ if (t instanceof MouseEvent && !Ht(t, r.behaviour.triggers))
1060
+ return;
1061
+ const h = F(r.startAreas, r.document), a = F(r.boundaries, r.document);
1042
1062
  this._targetElement = a.find(
1043
- (m) => _e(m.getBoundingClientRect(), c)
1063
+ (m) => _e(m.getBoundingClientRect(), l)
1044
1064
  );
1045
1065
  const u = t.composedPath();
1046
1066
  if (!this._targetElement || !h.find((m) => u.includes(m)) || !a.find((m) => u.includes(m)) || !n && this._emitEvent("beforestart", t) === !1)
1047
1067
  return;
1048
1068
  this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
1049
- const d = l.scrollingElement ?? l.body;
1050
- this._scrollDelta = { x: d.scrollLeft, y: d.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), q(l, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), q(l, ["mouseup", "touchcancel", "touchend"], this._onTapStop), q(l, "scroll", this._onScroll);
1069
+ const d = c.scrollingElement ?? c.body;
1070
+ this._scrollDelta = { x: d.scrollLeft, y: d.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), q(c, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), q(c, ["mouseup", "touchcancel", "touchend"], this._onTapStop), q(c, "scroll", this._onScroll);
1051
1071
  }
1052
1072
  _onSingleTap(t) {
1053
1073
  const { singleTap: { intersect: n }, range: o } = this._options.features, s = Q(t);
@@ -1056,10 +1076,10 @@ class qe extends Dt {
1056
1076
  i = s.target;
1057
1077
  else if (n === "touch") {
1058
1078
  this.resolveSelectables();
1059
- const { x: l, y: c } = s;
1079
+ const { x: c, y: l } = s;
1060
1080
  i = this._selectables.find((h) => {
1061
1081
  const { right: a, left: u, top: d, bottom: m } = h.getBoundingClientRect();
1062
- return l < a && l > u && c < m && c > d;
1082
+ return c < a && c > u && l < m && l > d;
1063
1083
  });
1064
1084
  }
1065
1085
  if (!i)
@@ -1071,26 +1091,25 @@ class qe extends Dt {
1071
1091
  }
1072
1092
  const { stored: r } = this._selection;
1073
1093
  if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
1074
- const l = this._latestElement, [c, h] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], a = [...this._selectables.filter(
1075
- (u) => u.compareDocumentPosition(c) & 4 && u.compareDocumentPosition(h) & 2
1076
- ), c, h];
1077
- this.select(a), this._latestElement = l;
1094
+ const c = this._latestElement, [l, h] = c.compareDocumentPosition(i) & 4 ? [i, c] : [c, i], a = [...this._selectables.filter(
1095
+ (u) => u.compareDocumentPosition(l) & 4 && u.compareDocumentPosition(h) & 2
1096
+ ), l, h];
1097
+ this.select(a), this._latestElement = c;
1078
1098
  } else
1079
- r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((l) => this._selection.stored.includes(l))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
1080
- this._emitEvent("stop", t);
1099
+ r.includes(i) && (r.length === 1 || t.ctrlKey || r.every((c) => this._selection.stored.includes(c))) ? this.deselect(i) : (this.select(i), this._latestElement = i);
1081
1100
  }
1082
1101
  _delayedTapMove(t) {
1083
- const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: l, y: c } = Q(t);
1102
+ const { container: n, document: o, behaviour: { startThreshold: s } } = this._options, { x1: i, y1: r } = this._areaLocation, { x: c, y: l } = Q(t);
1084
1103
  if (
1085
1104
  // Single number for both coordinates
1086
- typeof s == "number" && B(l + c - (i + r)) >= s || // Different x and y threshold
1087
- typeof s == "object" && B(l - i) >= s.x || B(c - r) >= s.y
1105
+ typeof s == "number" && B(c + l - (i + r)) >= s || // Different x and y threshold
1106
+ typeof s == "object" && B(c - i) >= s.x || B(l - r) >= s.y
1088
1107
  ) {
1089
1108
  if (j(o, ["mousemove", "touchmove"], this._delayedTapMove, { passive: !1 }), this._emitEvent("beforedrag", t) === !1) {
1090
1109
  j(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
1091
1110
  return;
1092
1111
  }
1093
- q(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), A(this._area, "display", "block"), F(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (q(o, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1112
+ q(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), A(this._area, "display", "block"), F(n, o)[0].appendChild(this._clippingElement), this.resolveSelectables(), this._singleClick = !1, this._targetRect = this._targetElement.getBoundingClientRect(), this._scrollAvailable = this._targetElement.scrollHeight !== this._targetElement.clientHeight || this._targetElement.scrollWidth !== this._targetElement.clientWidth, this._scrollAvailable && (q(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((h) => this._targetElement.contains(h))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1094
1113
  }
1095
1114
  this._handleMoveEvent(t);
1096
1115
  }
@@ -1115,7 +1134,7 @@ class qe extends Dt {
1115
1134
  }));
1116
1135
  }
1117
1136
  _onTapMove(t) {
1118
- const { x: n, y: o } = Q(t), { _scrollSpeed: s, _areaLocation: i, _options: r, _frame: l } = this, { speedDivider: c } = r.behaviour.scrolling, h = this._targetElement;
1137
+ const { x: n, y: o } = Q(t), { _scrollSpeed: s, _areaLocation: i, _options: r, _frame: c } = this, { speedDivider: l } = r.behaviour.scrolling, h = this._targetElement;
1119
1138
  if (i.x2 = n, i.y2 = o, this._scrollAvailable && !this._scrollingActive && (s.y || s.x)) {
1120
1139
  this._scrollingActive = !0;
1121
1140
  const a = () => {
@@ -1124,16 +1143,16 @@ class qe extends Dt {
1124
1143
  return;
1125
1144
  }
1126
1145
  const { scrollTop: u, scrollLeft: d } = h;
1127
- s.y && (h.scrollTop += Le(s.y / c), i.y1 -= h.scrollTop - u), s.x && (h.scrollLeft += Le(s.x / c), i.x1 -= h.scrollLeft - d), l.next(t), requestAnimationFrame(a);
1146
+ s.y && (h.scrollTop += Le(s.y / l), i.y1 -= h.scrollTop - u), s.x && (h.scrollLeft += Le(s.x / l), i.x1 -= h.scrollLeft - d), c.next(t), requestAnimationFrame(a);
1128
1147
  };
1129
1148
  requestAnimationFrame(a);
1130
1149
  } else
1131
- l.next(t);
1150
+ c.next(t);
1132
1151
  this._handleMoveEvent(t);
1133
1152
  }
1134
1153
  _handleMoveEvent(t) {
1135
1154
  const { features: n } = this._options;
1136
- (n.touch && Ot() || this._scrollAvailable && $t()) && t.preventDefault();
1155
+ (n.touch && $t() || this._scrollAvailable && Ot()) && t.preventDefault();
1137
1156
  }
1138
1157
  _onScroll() {
1139
1158
  const { _scrollDelta: t, _options: { document: n } } = this, { scrollTop: o, scrollLeft: s } = n.scrollingElement ?? n.body;
@@ -1144,10 +1163,10 @@ class qe extends Dt {
1144
1163
  this._scrollSpeed.y += o * n, this._scrollSpeed.x += s * n, this._onTapMove(t), t.preventDefault();
1145
1164
  }
1146
1165
  _recalculateSelectionAreaRect() {
1147
- const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: h, scrollWidth: a, clientWidth: u } = s, d = this._targetRect, { x1: m, y1: g } = n;
1166
+ const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: c, clientHeight: l, scrollLeft: h, scrollWidth: a, clientWidth: u } = s, d = this._targetRect, { x1: m, y1: g } = n;
1148
1167
  let { x2: p, y2: f } = n;
1149
1168
  const { behaviour: { scrolling: { startScrollMargins: v } } } = i;
1150
- p < d.left + v.x ? (t.x = h ? -B(d.left - p + v.x) : 0, p = p < d.left ? d.left : p) : p > d.right - v.x ? (t.x = a - h - u ? B(d.left + d.width - p - v.x) : 0, p = p > d.right ? d.right : p) : t.x = 0, f < d.top + v.y ? (t.y = r ? -B(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (t.y = l - r - c ? B(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : t.y = 0;
1169
+ p < d.left + v.x ? (t.x = h ? -B(d.left - p + v.x) : 0, p = p < d.left ? d.left : p) : p > d.right - v.x ? (t.x = a - h - u ? B(d.left + d.width - p - v.x) : 0, p = p > d.right ? d.right : p) : t.x = 0, f < d.top + v.y ? (t.y = r ? -B(d.top - f + v.y) : 0, f = f < d.top ? d.top : f) : f > d.bottom - v.y ? (t.y = c - r - l ? B(d.top + d.height - f - v.y) : 0, f = f > d.bottom ? d.bottom : f) : t.y = 0;
1151
1170
  const b = Me(m, p), y = Me(g, f), x = Se(m, p), w = Se(g, f);
1152
1171
  o.x = b, o.y = y, o.width = x - b, o.height = w - y;
1153
1172
  }
@@ -1158,15 +1177,15 @@ class qe extends Dt {
1158
1177
  _onTapStop(t, n) {
1159
1178
  var o;
1160
1179
  const { document: s, features: i } = this._options, { _singleClick: r } = this;
1161
- j(s, ["mousemove", "touchmove"], this._delayedTapMove), j(s, ["touchmove", "mousemove"], this._onTapMove), j(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), j(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, this._scrollAvailable && j(s, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), A(this._area, "display", "none");
1180
+ j(s, ["mousemove", "touchmove"], this._delayedTapMove), j(s, ["touchmove", "mousemove"], this._onTapMove), j(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), j(s, "scroll", this._onScroll), this._keepSelection(), t && r && i.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, j(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), A(this._area, "display", "none");
1162
1181
  }
1163
1182
  _updateElementSelection() {
1164
- const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], m = [];
1183
+ const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: c } = o, { intersect: l, overlap: h } = n.behaviour, a = h === "invert", u = [], d = [], m = [];
1165
1184
  for (let p = 0; p < t.length; p++) {
1166
1185
  const f = t[p];
1167
- if (_e(s, f.getBoundingClientRect(), c)) {
1186
+ if (_e(s, f.getBoundingClientRect(), l)) {
1168
1187
  if (r.includes(f))
1169
- i.includes(f) && !l.includes(f) && l.push(f);
1188
+ i.includes(f) && !c.includes(f) && c.push(f);
1170
1189
  else if (a && i.includes(f)) {
1171
1190
  m.push(f);
1172
1191
  continue;
@@ -1193,20 +1212,20 @@ class qe extends Dt {
1193
1212
  });
1194
1213
  }
1195
1214
  _keepSelection() {
1196
- const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, l = o.filter((c) => !r.includes(c));
1215
+ const { _options: t, _selection: n } = this, { selected: o, changed: s, touched: i, stored: r } = n, c = o.filter((l) => !r.includes(l));
1197
1216
  switch (t.behaviour.overlap) {
1198
1217
  case "drop": {
1199
1218
  n.stored = [
1200
- ...l,
1201
- ...r.filter((c) => !i.includes(c))
1219
+ ...c,
1220
+ ...r.filter((l) => !i.includes(l))
1202
1221
  // Elements not touched
1203
1222
  ];
1204
1223
  break;
1205
1224
  }
1206
1225
  case "invert": {
1207
1226
  n.stored = [
1208
- ...l,
1209
- ...r.filter((c) => !s.removed.includes(c))
1227
+ ...c,
1228
+ ...r.filter((l) => !s.removed.includes(l))
1210
1229
  // Elements not removed from selection
1211
1230
  ];
1212
1231
  break;
@@ -1214,7 +1233,7 @@ class qe extends Dt {
1214
1233
  case "keep": {
1215
1234
  n.stored = [
1216
1235
  ...r,
1217
- ...o.filter((c) => !r.includes(c))
1236
+ ...o.filter((l) => !r.includes(l))
1218
1237
  // Newly added
1219
1238
  ];
1220
1239
  break;
@@ -1285,7 +1304,7 @@ class qe extends Dt {
1285
1304
  */
1286
1305
  select(t, n = !1) {
1287
1306
  const { changed: o, selected: s, stored: i } = this._selection, r = F(t, this._options.document).filter(
1288
- (l) => !s.includes(l) && !i.includes(l)
1307
+ (c) => !s.includes(c) && !i.includes(c)
1289
1308
  );
1290
1309
  return i.push(...r), s.push(...r), o.added.push(...r), o.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
1291
1310
  }
@@ -1296,15 +1315,15 @@ class qe extends Dt {
1296
1315
  */
1297
1316
  deselect(t, n = !1) {
1298
1317
  const { selected: o, stored: s, changed: i } = this._selection, r = F(t, this._options.document).filter(
1299
- (l) => o.includes(l) || s.includes(l)
1318
+ (c) => o.includes(c) || s.includes(c)
1300
1319
  );
1301
- r.length && (this._selection.stored = s.filter((l) => !r.includes(l)), this._selection.selected = o.filter((l) => !r.includes(l)), this._selection.changed.added = [], this._selection.changed.removed.push(
1302
- ...r.filter((l) => !i.removed.includes(l))
1320
+ r.length && (this._selection.stored = s.filter((c) => !r.includes(c)), this._selection.selected = o.filter((c) => !r.includes(c)), this._selection.changed.added = [], this._selection.changed.removed.push(
1321
+ ...r.filter((c) => !i.removed.includes(c))
1303
1322
  ), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
1304
1323
  }
1305
1324
  }
1306
- E(qe, "version", "3.3.1");
1307
- function Ht(e) {
1325
+ E(qe, "version", "3.5.1");
1326
+ function Bt(e) {
1308
1327
  const t = new qe({
1309
1328
  selectables: [".map-container me-tpc"],
1310
1329
  boundaries: [e.container],
@@ -1349,7 +1368,7 @@ function Ht(e) {
1349
1368
  });
1350
1369
  e.selection = t;
1351
1370
  }
1352
- const Bt = function(e, t = !0) {
1371
+ const zt = function(e, t = !0) {
1353
1372
  this.theme = e;
1354
1373
  const n = this.theme.cssVar, o = Object.keys(n);
1355
1374
  for (let s = 0; s < o.length; s++) {
@@ -1367,30 +1386,30 @@ function Fe(e) {
1367
1386
  theme: e.theme
1368
1387
  };
1369
1388
  }
1370
- const zt = function(e, t, n) {
1389
+ const Rt = function(e, t, n) {
1371
1390
  if (e) {
1372
- if (console.time("selectNode"), this.clearSelection(), typeof e == "string") {
1373
- const o = C(e);
1391
+ if (this.clearSelection(), typeof e == "string") {
1392
+ const o = N(e);
1374
1393
  return o ? this.selectNode(o) : void 0;
1375
1394
  }
1376
- e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n), console.timeEnd("selectNode");
1395
+ e.className = "selected", e.scrollIntoView({ block: "nearest", inline: "nearest" }), this.currentNode = e, t ? this.bus.fire("selectNewNode", e.nodeObj) : this.bus.fire("selectNode", e.nodeObj, n);
1377
1396
  }
1378
- }, Rt = function() {
1397
+ }, qt = function() {
1379
1398
  this.currentNode && (this.currentNode.className = ""), this.currentNode = null, this.bus.fire("unselectNode");
1380
- }, qt = function(e) {
1381
- console.time("selectNodes"), this.clearSelection();
1399
+ }, Ft = function(e) {
1400
+ this.clearSelection();
1382
1401
  for (const t of e)
1383
1402
  t.className = "selected";
1384
1403
  this.currentNodes = e, this.bus.fire(
1385
1404
  "selectNodes",
1386
1405
  e.map((t) => t.nodeObj)
1387
- ), console.timeEnd("selectNodes");
1388
- }, Ft = function() {
1406
+ );
1407
+ }, It = function() {
1389
1408
  if (this.currentNodes)
1390
1409
  for (const e of this.currentNodes)
1391
1410
  e.classList.remove("selected");
1392
1411
  this.currentNodes = null, this.bus.fire("unselectNodes");
1393
- }, It = function() {
1412
+ }, Kt = function() {
1394
1413
  this.unselectNode(), this.unselectNodes(), this.unselectSummary(), this.unselectArrow();
1395
1414
  }, Vt = function() {
1396
1415
  const e = Fe(this);
@@ -1400,7 +1419,7 @@ const zt = function(e, t, n) {
1400
1419
  });
1401
1420
  }, Wt = function() {
1402
1421
  return JSON.parse(this.getDataString());
1403
- }, Kt = function() {
1422
+ }, Ut = function() {
1404
1423
  const e = Fe(this).nodeData;
1405
1424
  let t = "# " + e.topic + `
1406
1425
 
@@ -1413,79 +1432,79 @@ const zt = function(e, t, n) {
1413
1432
  `, o[i].children && n(o[i].children || [], s + 1);
1414
1433
  }
1415
1434
  return n(e.children || [], 2), t;
1416
- }, Ut = function() {
1417
- this.editable = !0;
1418
1435
  }, Yt = function() {
1436
+ this.editable = !0;
1437
+ }, Xt = function() {
1419
1438
  this.editable = !1;
1420
- }, Xt = function(e) {
1439
+ }, Gt = function(e) {
1421
1440
  this.scaleVal = e, this.map.style.transform = "scale(" + e + ")";
1422
- }, Gt = function() {
1441
+ }, Jt = function() {
1423
1442
  this.container.scrollTo(1e4 - this.container.offsetWidth / 2, 1e4 - this.container.offsetHeight / 2);
1424
- }, Jt = function(e) {
1425
- e(this);
1426
1443
  }, Qt = function(e) {
1444
+ e(this);
1445
+ }, Zt = function(e) {
1427
1446
  e.nodeObj.root || (this.tempDirection === null && (this.tempDirection = this.direction), this.isFocusMode || (this.nodeDataBackup = this.nodeData, this.isFocusMode = !0), this.nodeData = e.nodeObj, this.nodeData.root = !0, this.initRight(), this.toCenter());
1428
- }, Zt = function() {
1429
- this.isFocusMode = !1, this.tempDirection !== null && (delete this.nodeData.root, this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
1430
1447
  }, en = function() {
1431
- this.direction = 0, this.refresh();
1448
+ this.isFocusMode = !1, this.tempDirection !== null && (delete this.nodeData.root, this.nodeData = this.nodeDataBackup, this.direction = this.tempDirection, this.tempDirection = null, this.refresh(), this.toCenter());
1432
1449
  }, tn = function() {
1433
- this.direction = 1, this.refresh();
1450
+ this.direction = 0, this.refresh();
1434
1451
  }, nn = function() {
1452
+ this.direction = 1, this.refresh();
1453
+ }, on = function() {
1435
1454
  this.direction = 2, this.refresh();
1436
- }, on = function(e) {
1455
+ }, sn = function(e) {
1437
1456
  this.locale = e, this.refresh();
1438
- }, sn = function(e, t) {
1457
+ }, rn = function(e, t) {
1439
1458
  const n = e.nodeObj;
1440
1459
  typeof t == "boolean" ? n.expanded = t : n.expanded !== !1 ? n.expanded = !1 : n.expanded = !0, this.layout(), this.linkDiv(), this.bus.fire("expandNode", n);
1441
- }, rn = function(e) {
1442
- e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), O(this.nodeData), this.layout(), this.linkDiv();
1460
+ }, cn = function(e) {
1461
+ e && (e = JSON.parse(JSON.stringify(e)), this.nodeData = e.nodeData, this.arrows = e.arrows || [], this.summaries = e.summaries || []), $(this.nodeData), this.layout(), this.linkDiv();
1443
1462
  }, ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1444
1463
  __proto__: null,
1445
- cancelFocus: Zt,
1446
- clearSelection: It,
1447
- disableEdit: Yt,
1448
- enableEdit: Ut,
1449
- expandNode: sn,
1450
- focusNode: Qt,
1464
+ cancelFocus: en,
1465
+ clearSelection: Kt,
1466
+ disableEdit: Xt,
1467
+ enableEdit: Yt,
1468
+ expandNode: rn,
1469
+ focusNode: Zt,
1451
1470
  getData: Wt,
1452
- getDataMd: Kt,
1471
+ getDataMd: Ut,
1453
1472
  getDataString: Vt,
1454
- initLeft: en,
1455
- initRight: tn,
1456
- initSide: nn,
1457
- install: Jt,
1458
- refresh: rn,
1459
- scale: Xt,
1460
- selectNode: zt,
1461
- selectNodes: qt,
1462
- setLocale: on,
1463
- toCenter: Gt,
1464
- unselectNode: Rt,
1465
- unselectNodes: Ft
1466
- }, Symbol.toStringTag, { value: "Module" })), K = (e) => {
1473
+ initLeft: tn,
1474
+ initRight: nn,
1475
+ initSide: on,
1476
+ install: Qt,
1477
+ refresh: cn,
1478
+ scale: Gt,
1479
+ selectNode: Rt,
1480
+ selectNodes: Ft,
1481
+ setLocale: sn,
1482
+ toCenter: Jt,
1483
+ unselectNode: qt,
1484
+ unselectNodes: It
1485
+ }, Symbol.toStringTag, { value: "Module" })), W = (e) => {
1467
1486
  var o;
1468
1487
  const t = (o = e.parent) == null ? void 0 : o.children, n = t.indexOf(e);
1469
1488
  return { siblings: t, index: n };
1470
1489
  };
1471
- function cn(e) {
1472
- const { siblings: t, index: n } = K(e), o = t[n];
1490
+ function an(e) {
1491
+ const { siblings: t, index: n } = W(e), o = t[n];
1473
1492
  n === 0 ? (t[n] = t[t.length - 1], t[t.length - 1] = o) : (t[n] = t[n - 1], t[n - 1] = o);
1474
1493
  }
1475
- function an(e) {
1476
- const { siblings: t, index: n } = K(e), o = t[n];
1494
+ function dn(e) {
1495
+ const { siblings: t, index: n } = W(e), o = t[n];
1477
1496
  n === t.length - 1 ? (t[n] = t[0], t[0] = o) : (t[n] = t[n + 1], t[n + 1] = o);
1478
1497
  }
1479
1498
  function me(e) {
1480
- const { siblings: t, index: n } = K(e);
1499
+ const { siblings: t, index: n } = W(e);
1481
1500
  return t.splice(n, 1), t.length;
1482
1501
  }
1483
- function dn(e, t, n) {
1484
- const { siblings: o, index: s } = K(n);
1502
+ function hn(e, t, n) {
1503
+ const { siblings: o, index: s } = W(n);
1485
1504
  t === "before" ? o.splice(s, 0, e) : o.splice(s + 1, 0, e);
1486
1505
  }
1487
- function hn(e, t) {
1488
- const { siblings: n, index: o } = K(e);
1506
+ function un(e, t) {
1507
+ const { siblings: n, index: o } = W(e);
1489
1508
  n[o] = t, t.children = [e];
1490
1509
  }
1491
1510
  function Ie(e, t, n) {
@@ -1493,11 +1512,11 @@ function Ie(e, t, n) {
1493
1512
  n.children ? n.children.push(t) : n.children = [t];
1494
1513
  else {
1495
1514
  t.direction !== void 0 && (t.direction = n.direction);
1496
- const { siblings: o, index: s } = K(n);
1515
+ const { siblings: o, index: s } = W(n);
1497
1516
  e === "before" ? o.splice(s, 0, t) : o.splice(s + 1, 0, t);
1498
1517
  }
1499
1518
  }
1500
- const un = function(e, t) {
1519
+ const fn = function(e, t) {
1501
1520
  var n, o;
1502
1521
  if (e === T)
1503
1522
  return T;
@@ -1507,42 +1526,42 @@ const un = function(e, t) {
1507
1526
  const s = ((n = document.querySelector(".lhs")) == null ? void 0 : n.childElementCount) || 0, i = ((o = document.querySelector(".rhs")) == null ? void 0 : o.childElementCount) || 0;
1508
1527
  return s <= i ? (t.direction = T, T) : (t.direction = z, z);
1509
1528
  }
1510
- }, Ve = function(e, t, n) {
1529
+ }, Ke = function(e, t, n) {
1511
1530
  var i, r;
1512
1531
  const o = n.children[0].children[0], s = t.parentElement;
1513
1532
  if (s.tagName === "ME-PARENT") {
1514
- if (le(o), s.children[1])
1533
+ if (ce(o), s.children[1])
1515
1534
  s.nextSibling.appendChild(n);
1516
1535
  else {
1517
- const l = e.createChildren([n]);
1518
- s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", l);
1536
+ const c = e.createChildren([n]);
1537
+ s.appendChild(pe(!0)), s.insertAdjacentElement("afterend", c);
1519
1538
  }
1520
1539
  e.linkDiv(n.offsetParent);
1521
1540
  } else
1522
- s.tagName === "ME-ROOT" && (un(e.direction, o.nodeObj) === T ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1541
+ s.tagName === "ME-ROOT" && (fn(e.direction, o.nodeObj) === T ? (i = e.container.querySelector(".lhs")) == null || i.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1523
1542
  }, ge = function(e, t, n) {
1524
1543
  if (!t)
1525
1544
  return null;
1526
1545
  const o = t.nodeObj;
1527
- o.expanded === !1 && (e.expandNode(t, !0), t = C(o.id));
1546
+ o.expanded === !1 && (e.expandNode(t, !0), t = N(o.id));
1528
1547
  const s = n || e.generateNewObj();
1529
- o.children ? o.children.push(s) : o.children = [s], O(e.nodeData);
1548
+ o.children ? o.children.push(s) : o.children = [s], $(e.nodeData);
1530
1549
  const { grp: i, top: r } = e.createWrapper(s);
1531
- return Ve(e, t, i), { newTop: r, newNodeObj: s };
1532
- }, We = function(e, t) {
1550
+ return Ke(e, t, i), { newTop: r, newNodeObj: s };
1551
+ }, Ve = function(e, t) {
1533
1552
  const n = e.parentNode;
1534
1553
  if (t === 0) {
1535
1554
  const o = n.parentNode.parentNode;
1536
1555
  o.tagName !== "ME-MAIN" && o.previousSibling.children[1].remove();
1537
1556
  }
1538
1557
  n.parentNode.remove();
1539
- }, Ke = {
1558
+ }, We = {
1540
1559
  before: "beforebegin",
1541
1560
  after: "afterend"
1542
- }, le = function(e) {
1561
+ }, ce = function(e) {
1543
1562
  const n = e.parentElement.parentElement.lastElementChild;
1544
1563
  (n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
1545
- }, fn = function(e, t) {
1564
+ }, pn = function(e, t) {
1546
1565
  const n = e.nodeObj, o = ue(n);
1547
1566
  o.style && t.style && (t.style = Object.assign(o.style, t.style));
1548
1567
  const s = Object.assign(n, t);
@@ -1551,7 +1570,7 @@ const un = function(e, t) {
1551
1570
  obj: s,
1552
1571
  origin: o
1553
1572
  });
1554
- }, pn = function(e, t, n) {
1573
+ }, mn = function(e, t, n) {
1555
1574
  var h, a, u;
1556
1575
  const o = t || this.currentNode;
1557
1576
  if (!o)
@@ -1561,40 +1580,35 @@ const un = function(e, t) {
1561
1580
  this.addChild();
1562
1581
  return;
1563
1582
  } else if (((h = s.parent) == null ? void 0 : h.root) === !0 && ((u = (a = s.parent) == null ? void 0 : a.children) == null ? void 0 : u.length) === 1) {
1564
- this.addChild(C(s.parent.id));
1583
+ this.addChild(N(s.parent.id), n);
1565
1584
  return;
1566
1585
  }
1567
1586
  const i = n || this.generateNewObj();
1568
- dn(i, e, s), O(this.nodeData);
1569
- const r = o.parentElement;
1570
- console.time("insertSibling_DOM");
1571
- const { grp: l, top: c } = this.createWrapper(i);
1572
- r.parentElement.insertAdjacentElement(Ke[e], l), this.linkDiv(l.offsetParent), n || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), console.timeEnd("insertSibling_DOM"), this.bus.fire("operation", {
1587
+ hn(i, e, s), $(this.nodeData);
1588
+ const r = o.parentElement, { grp: c, top: l } = this.createWrapper(i);
1589
+ r.parentElement.insertAdjacentElement(We[e], c), this.linkDiv(c.offsetParent), n || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), this.bus.fire("operation", {
1573
1590
  name: "insertSibling",
1574
1591
  type: e,
1575
1592
  obj: i
1576
1593
  });
1577
- }, mn = function(e, t) {
1594
+ }, gn = function(e, t) {
1578
1595
  const n = e || this.currentNode;
1579
1596
  if (!n)
1580
1597
  return;
1581
- le(n);
1598
+ ce(n);
1582
1599
  const o = n.nodeObj;
1583
1600
  if (o.root === !0)
1584
1601
  return;
1585
1602
  const s = t || this.generateNewObj();
1586
- hn(o, s), O(this.nodeData);
1587
- const i = n.parentElement.parentElement;
1588
- console.time("insertParent_DOM");
1589
- const { grp: r, top: l } = this.createWrapper(s, !0);
1590
- l.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
1591
- const c = this.createChildren([i]);
1592
- l.insertAdjacentElement("afterend", c), this.linkDiv(), t || this.editTopic(l.firstChild), this.selectNode(l.firstChild, !0), console.timeEnd("insertParent_DOM"), this.bus.fire("operation", {
1603
+ un(o, s), $(this.nodeData);
1604
+ const i = n.parentElement.parentElement, { grp: r, top: c } = this.createWrapper(s, !0);
1605
+ c.appendChild(pe(!0)), i.insertAdjacentElement("afterend", r);
1606
+ const l = this.createChildren([i]);
1607
+ c.insertAdjacentElement("afterend", l), this.linkDiv(), t || this.editTopic(c.firstChild), this.selectNode(c.firstChild, !0), this.bus.fire("operation", {
1593
1608
  name: "insertParent",
1594
1609
  obj: s
1595
1610
  });
1596
- }, gn = function(e, t) {
1597
- console.time("addChild");
1611
+ }, vn = function(e, t) {
1598
1612
  const n = e || this.currentNode;
1599
1613
  if (!n)
1600
1614
  return;
@@ -1605,20 +1619,19 @@ const un = function(e, t) {
1605
1619
  this.bus.fire("operation", {
1606
1620
  name: "addChild",
1607
1621
  obj: i
1608
- }), console.timeEnd("addChild"), t || this.editTopic(s.firstChild), this.selectNode(s.firstChild, !0);
1609
- }, vn = function(e, t) {
1610
- console.time("copyNode");
1622
+ }), t || this.editTopic(s.firstChild), this.selectNode(s.firstChild, !0);
1623
+ }, bn = function(e, t) {
1611
1624
  const n = ue(e.nodeObj);
1612
1625
  he(n);
1613
1626
  const o = ge(this, t, n);
1614
1627
  if (!o)
1615
1628
  return;
1616
1629
  const { newNodeObj: s } = o;
1617
- console.timeEnd("copyNode"), this.selectNode(C(s.id)), this.bus.fire("operation", {
1630
+ this.selectNode(N(s.id)), this.bus.fire("operation", {
1618
1631
  name: "copyNode",
1619
1632
  obj: s
1620
1633
  });
1621
- }, bn = function(e, t) {
1634
+ }, yn = function(e, t) {
1622
1635
  e = re(e);
1623
1636
  const n = [];
1624
1637
  for (let o = 0; o < e.length; o++) {
@@ -1627,36 +1640,36 @@ const un = function(e, t) {
1627
1640
  const r = ge(this, t, i);
1628
1641
  if (!r)
1629
1642
  return;
1630
- const { newNodeObj: l } = r;
1631
- n.push(l);
1643
+ const { newNodeObj: c } = r;
1644
+ n.push(c);
1632
1645
  }
1633
- this.selectNodes(n.map((o) => C(o.id))), this.bus.fire("operation", {
1646
+ this.selectNodes(n.map((o) => N(o.id))), this.bus.fire("operation", {
1634
1647
  name: "copyNodes",
1635
1648
  objs: n
1636
1649
  });
1637
- }, yn = function(e) {
1650
+ }, xn = function(e) {
1638
1651
  const t = e || this.currentNode;
1639
1652
  if (!t)
1640
1653
  return;
1641
1654
  const n = t.nodeObj;
1642
- cn(n);
1655
+ an(n);
1643
1656
  const o = t.parentNode.parentNode;
1644
1657
  o.parentNode.insertBefore(o, o.previousSibling), this.linkDiv(), this.bus.fire("operation", {
1645
1658
  name: "moveUpNode",
1646
1659
  obj: n
1647
1660
  });
1648
- }, xn = function(e) {
1661
+ }, wn = function(e) {
1649
1662
  const t = e || this.currentNode;
1650
1663
  if (!t)
1651
1664
  return;
1652
1665
  const n = t.nodeObj;
1653
- an(n);
1666
+ dn(n);
1654
1667
  const o = t.parentNode.parentNode;
1655
1668
  o.nextSibling ? o.nextSibling.insertAdjacentElement("afterend", o) : o.parentNode.prepend(o), this.linkDiv(), this.bus.fire("operation", {
1656
1669
  name: "moveDownNode",
1657
1670
  obj: n
1658
1671
  });
1659
- }, wn = function(e) {
1672
+ }, En = function(e) {
1660
1673
  var r;
1661
1674
  const t = e || this.currentNode;
1662
1675
  if (!t)
@@ -1664,26 +1677,26 @@ const un = function(e, t) {
1664
1677
  const n = t.nodeObj;
1665
1678
  if (n.root === !0)
1666
1679
  throw new Error("Can not remove root node");
1667
- const o = n.parent.children, s = o.findIndex((l) => l === n), i = me(n);
1668
- if (We(t, i), o.length !== 0) {
1669
- const l = o[s] || o[s - 1];
1670
- this.selectNode(C(l.id));
1680
+ const o = n.parent.children, s = o.findIndex((c) => c === n), i = me(n);
1681
+ if (Ve(t, i), o.length !== 0) {
1682
+ const c = o[s] || o[s - 1];
1683
+ this.selectNode(N(c.id));
1671
1684
  } else
1672
- this.selectNode(C(n.parent.id));
1685
+ this.selectNode(N(n.parent.id));
1673
1686
  this.linkDiv(), this.bus.fire("operation", {
1674
1687
  name: "removeNode",
1675
1688
  obj: n,
1676
1689
  originIndex: s,
1677
1690
  originParentId: (r = n == null ? void 0 : n.parent) == null ? void 0 : r.id
1678
1691
  });
1679
- }, En = function(e) {
1692
+ }, Cn = function(e) {
1680
1693
  e = re(e);
1681
1694
  for (const t of e) {
1682
1695
  const n = t.nodeObj;
1683
1696
  if (n.root === !0)
1684
1697
  continue;
1685
1698
  const o = me(n);
1686
- We(t, o);
1699
+ Ve(t, o);
1687
1700
  }
1688
1701
  this.linkDiv(), this.bus.fire("operation", {
1689
1702
  name: "removeNodes",
@@ -1692,60 +1705,60 @@ const un = function(e, t) {
1692
1705
  }, Nn = function(e, t) {
1693
1706
  e = re(e);
1694
1707
  const n = t.nodeObj;
1695
- n.expanded === !1 && (this.expandNode(t, !0), t = C(n.id)), console.time("moveNodeIn");
1708
+ n.expanded === !1 && (this.expandNode(t, !0), t = N(n.id));
1696
1709
  for (const o of e) {
1697
1710
  const s = o.nodeObj;
1698
- Ie("in", s, n), O(this.nodeData);
1711
+ Ie("in", s, n), $(this.nodeData);
1699
1712
  const i = o.parentElement;
1700
- Ve(this, t, i.parentElement);
1713
+ Ke(this, t, i.parentElement);
1701
1714
  }
1702
1715
  this.linkDiv(), this.bus.fire("operation", {
1703
1716
  name: "moveNodeIn",
1704
1717
  objs: e.map((o) => o.nodeObj),
1705
1718
  toObj: n
1706
- }), console.timeEnd("moveNodeIn");
1719
+ });
1707
1720
  }, Ue = (e, t, n, o) => {
1708
1721
  e = re(e), t === "after" && (e = e.reverse());
1709
1722
  const s = n.nodeObj;
1710
1723
  for (const i of e) {
1711
1724
  const r = i.nodeObj;
1712
- Ie(t, r, s), O(o.nodeData), le(i);
1713
- const l = i.parentElement.parentNode;
1714
- n.parentElement.parentNode.insertAdjacentElement(Ke[t], l);
1725
+ Ie(t, r, s), $(o.nodeData), ce(i);
1726
+ const c = i.parentElement.parentNode;
1727
+ n.parentElement.parentNode.insertAdjacentElement(We[t], c);
1715
1728
  }
1716
1729
  o.linkDiv(), o.bus.fire("operation", {
1717
1730
  name: t === "before" ? "moveNodeBefore" : "moveNodeAfter",
1718
1731
  objs: e.map((i) => i.nodeObj),
1719
1732
  toObj: s
1720
1733
  });
1721
- }, Cn = function(e, t) {
1722
- Ue(e, "before", t, this);
1723
1734
  }, _n = function(e, t) {
1735
+ Ue(e, "before", t, this);
1736
+ }, Sn = function(e, t) {
1724
1737
  Ue(e, "after", t, this);
1725
- }, Sn = function(e) {
1738
+ }, Mn = function(e) {
1726
1739
  const t = e || this.currentNode;
1727
1740
  t && (t.nodeObj.dangerouslySetInnerHTML || this.editTopic(t));
1728
- }, Mn = function(e, t) {
1741
+ }, Ln = function(e, t) {
1729
1742
  e.text.textContent = t, e.nodeObj.topic = t, this.linkDiv();
1730
1743
  }, Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1731
1744
  __proto__: null,
1732
- addChild: gn,
1733
- beginEdit: Sn,
1734
- copyNode: vn,
1735
- copyNodes: bn,
1736
- insertParent: mn,
1737
- insertSibling: pn,
1738
- mainToSub: le,
1739
- moveDownNode: xn,
1740
- moveNodeAfter: _n,
1741
- moveNodeBefore: Cn,
1745
+ addChild: vn,
1746
+ beginEdit: Mn,
1747
+ copyNode: bn,
1748
+ copyNodes: yn,
1749
+ insertParent: gn,
1750
+ insertSibling: mn,
1751
+ mainToSub: ce,
1752
+ moveDownNode: wn,
1753
+ moveNodeAfter: Sn,
1754
+ moveNodeBefore: _n,
1742
1755
  moveNodeIn: Nn,
1743
- moveUpNode: yn,
1744
- removeNode: wn,
1745
- removeNodes: En,
1746
- reshapeNode: fn,
1747
- setNodeTopic: Mn
1748
- }, Symbol.toStringTag, { value: "Module" })), Ln = function(e) {
1756
+ moveUpNode: xn,
1757
+ removeNode: En,
1758
+ removeNodes: Cn,
1759
+ reshapeNode: pn,
1760
+ setNodeTopic: Ln
1761
+ }, Symbol.toStringTag, { value: "Module" })), Tn = function(e) {
1749
1762
  return {
1750
1763
  dom: e,
1751
1764
  moved: !1,
@@ -1772,15 +1785,15 @@ const un = function(e, t) {
1772
1785
  }
1773
1786
  };
1774
1787
  }, Te = {
1775
- create: Ln
1788
+ create: Tn
1776
1789
  };
1777
1790
  function se(e, t, n) {
1778
- const { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, h = l + n.x, a = c + n.y;
1791
+ const { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, c = o + i / 2, l = s + r / 2, h = c + n.x, a = l + n.y;
1779
1792
  return {
1780
1793
  w: i,
1781
1794
  h: r,
1782
- cx: l,
1783
- cy: c,
1795
+ cx: c,
1796
+ cy: l,
1784
1797
  ctrlX: h,
1785
1798
  ctrlY: a
1786
1799
  };
@@ -1793,9 +1806,9 @@ function I(e) {
1793
1806
  y: n
1794
1807
  };
1795
1808
  }
1796
- const Tn = function(e, t, n, o) {
1809
+ const kn = function(e, t, n, o) {
1797
1810
  const s = document.createElementNS("http://www.w3.org/2000/svg", "text");
1798
- return N(s, {
1811
+ return C(s, {
1799
1812
  "text-anchor": "middle",
1800
1813
  x: t + "",
1801
1814
  y: n + "",
@@ -1804,14 +1817,13 @@ const Tn = function(e, t, n, o) {
1804
1817
  }, Xe = function(e, t, n, o, s) {
1805
1818
  if (!t || !n)
1806
1819
  return;
1807
- const i = performance.now(), r = se(e, t, o.delta1), l = se(e, n, o.delta2), { x: c, y: h } = I(r), { ctrlX: a, ctrlY: u } = r, { ctrlX: d, ctrlY: m } = l, { x: g, y: p } = I(l), f = $e(d, m, g, p), v = ft(
1808
- `M ${c} ${h} C ${a} ${u} ${d} ${m} ${g} ${p}`,
1809
- `M ${f.x1} ${f.y1} L ${g} ${p} L ${f.x2} ${f.y2}`
1810
- ), b = c / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = h / 8 + u * 3 / 8 + m * 3 / 8 + p / 8, x = Tn(o.label, b, y, e.theme.cssVar["--color"]);
1811
- v.appendChild(x), v.arrowObj = o, v.dataset.linkid = o.id, e.linkSvgGroup.appendChild(v), s || (e.arrows.push(o), e.currentArrow = v, Je(e, o, r, l));
1812
- const w = performance.now();
1813
- console.log(`DrawArrow Execution time: ${w - i} ms`);
1814
- }, kn = function(e, t) {
1820
+ performance.now();
1821
+ const i = se(e, t, o.delta1), r = se(e, n, o.delta2), { x: c, y: l } = I(i), { ctrlX: h, ctrlY: a } = i, { ctrlX: u, ctrlY: d } = r, { x: m, y: g } = I(r), p = Oe(u, d, m, g), f = ft(
1822
+ `M ${c} ${l} C ${h} ${a} ${u} ${d} ${m} ${g}`,
1823
+ `M ${p.x1} ${p.y1} L ${m} ${g} L ${p.x2} ${p.y2}`
1824
+ ), v = c / 8 + h * 3 / 8 + u * 3 / 8 + m / 8, b = l / 8 + a * 3 / 8 + d * 3 / 8 + g / 8, y = kn(o.label, v, b, e.theme.cssVar["--color"]);
1825
+ f.appendChild(y), f.arrowObj = o, f.dataset.linkid = o.id, e.linkSvgGroup.appendChild(f), s || (e.arrows.push(o), e.currentArrow = f, Je(e, o, i, r)), performance.now();
1826
+ }, An = function(e, t) {
1815
1827
  const n = {
1816
1828
  id: G(),
1817
1829
  label: "Custom Link",
@@ -1830,7 +1842,7 @@ const Tn = function(e, t, n, o) {
1830
1842
  name: "createArrow",
1831
1843
  obj: n
1832
1844
  });
1833
- }, An = function(e) {
1845
+ }, jn = function(e) {
1834
1846
  let t;
1835
1847
  if (e ? t = e : t = this.currentArrow, !t)
1836
1848
  return;
@@ -1842,58 +1854,58 @@ const Tn = function(e, t, n, o) {
1842
1854
  id: n
1843
1855
  }
1844
1856
  });
1845
- }, jn = function(e) {
1857
+ }, Dn = function(e) {
1846
1858
  this.currentArrow = e;
1847
- const t = e.arrowObj, n = C(t.from), o = C(t.to), s = se(this, n, t.delta1), i = se(this, o, t.delta2);
1859
+ const t = e.arrowObj, n = N(t.from), o = N(t.to), s = se(this, n, t.delta1), i = se(this, o, t.delta2);
1848
1860
  Je(this, t, s, i);
1849
- }, Dn = function() {
1861
+ }, $n = function() {
1850
1862
  this.currentArrow = null, Ge(this);
1851
1863
  }, Ge = function(e) {
1852
1864
  e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
1853
1865
  }, Je = function(e, t, n, o) {
1854
1866
  var d;
1855
1867
  e.linkController.style.display = "initial", e.P2.style.display = "initial", e.P3.style.display = "initial", e.nodes.appendChild(e.linkController), e.nodes.appendChild(e.P2), e.nodes.appendChild(e.P3);
1856
- let { x: s, y: i } = I(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: h } = o, { x: a, y: u } = I(o);
1857
- e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${h}px;left:${c}px;`, N(e.line1, {
1868
+ let { x: s, y: i } = I(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: h } = o, { x: a, y: u } = I(o);
1869
+ e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${h}px;left:${l}px;`, C(e.line1, {
1858
1870
  x1: s + "",
1859
1871
  y1: i + "",
1860
1872
  x2: r + "",
1861
- y2: l + ""
1862
- }), N(e.line2, {
1863
- x1: c + "",
1873
+ y2: c + ""
1874
+ }), C(e.line2, {
1875
+ x1: l + "",
1864
1876
  y1: h + "",
1865
1877
  x2: a + "",
1866
1878
  y2: u + ""
1867
1879
  }), e.helper1 && (e.helper1.destory(e.map), (d = e.helper2) == null || d.destory(e.map)), e.helper1 = Te.create(e.P2), e.helper2 = Te.create(e.P3), e.helper1.init(e.map, (m, g) => {
1868
1880
  var b;
1869
- r = r + m / e.scaleVal, l = l + g / e.scaleVal;
1870
- const p = I({ ...n, ctrlX: r, ctrlY: l });
1881
+ r = r + m / e.scaleVal, c = c + g / e.scaleVal;
1882
+ const p = I({ ...n, ctrlX: r, ctrlY: c });
1871
1883
  s = p.x, i = p.y;
1872
- const f = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, v = i / 8 + l * 3 / 8 + h * 3 / 8 + u / 8;
1873
- e.P2.style.top = l + "px", e.P2.style.left = r + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${h} ${a} ${u}`), N(e.currentArrow.children[2], {
1884
+ const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + u / 8;
1885
+ e.P2.style.top = c + "px", e.P2.style.left = r + "px", (b = e.currentArrow) == null || b.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${u}`), C(e.currentArrow.children[2], {
1874
1886
  x: f + "",
1875
1887
  y: v + ""
1876
- }), N(e.line1, {
1888
+ }), C(e.line1, {
1877
1889
  x1: s + "",
1878
1890
  y1: i + "",
1879
1891
  x2: r + "",
1880
- y2: l + ""
1881
- }), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy;
1892
+ y2: c + ""
1893
+ }), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy;
1882
1894
  }), e.helper2.init(e.map, (m, g) => {
1883
1895
  var y, x;
1884
- c = c + m / e.scaleVal, h = h + g / e.scaleVal;
1885
- const p = I({ ...o, ctrlX: c, ctrlY: h });
1896
+ l = l + m / e.scaleVal, h = h + g / e.scaleVal;
1897
+ const p = I({ ...o, ctrlX: l, ctrlY: h });
1886
1898
  a = p.x, u = p.y;
1887
- const f = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, v = i / 8 + l * 3 / 8 + h * 3 / 8 + u / 8, b = $e(c, h, a, u);
1888
- e.P3.style.top = h + "px", e.P3.style.left = c + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${h} ${a} ${u}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${b.x1} ${b.y1} L ${a} ${u} L ${b.x2} ${b.y2}`), N(e.currentArrow.children[2], {
1899
+ const f = s / 8 + r * 3 / 8 + l * 3 / 8 + a / 8, v = i / 8 + c * 3 / 8 + h * 3 / 8 + u / 8, b = Oe(l, h, a, u);
1900
+ e.P3.style.top = h + "px", e.P3.style.left = l + "px", (y = e.currentArrow) == null || y.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${c} ${l} ${h} ${a} ${u}`), (x = e.currentArrow) == null || x.children[1].setAttribute("d", `M ${b.x1} ${b.y1} L ${a} ${u} L ${b.x2} ${b.y2}`), C(e.currentArrow.children[2], {
1889
1901
  x: f + "",
1890
1902
  y: v + ""
1891
- }), N(e.line2, {
1892
- x1: c + "",
1903
+ }), C(e.line2, {
1904
+ x1: l + "",
1893
1905
  y1: h + "",
1894
1906
  x2: a + "",
1895
1907
  y2: u + ""
1896
- }), t.delta2.x = c - o.cx, t.delta2.y = h - o.cy;
1908
+ }), t.delta2.x = l - o.cx, t.delta2.y = h - o.cy;
1897
1909
  });
1898
1910
  };
1899
1911
  function On() {
@@ -1901,40 +1913,39 @@ function On() {
1901
1913
  for (let e = 0; e < this.arrows.length; e++) {
1902
1914
  const t = this.arrows[e];
1903
1915
  try {
1904
- Xe(this, C(t.from), C(t.to), t, !0);
1916
+ Xe(this, N(t.from), N(t.to), t, !0);
1905
1917
  } catch {
1906
- console.warn("Node may not be expanded");
1907
1918
  }
1908
1919
  }
1909
1920
  this.nodes.appendChild(this.linkSvgGroup);
1910
1921
  }
1911
- function $n(e) {
1912
- if (console.time("editSummary"), !e)
1922
+ function Pn(e) {
1923
+ if (!e)
1913
1924
  return;
1914
1925
  const t = e.children[2];
1915
- console.log(t, e), Be(this, t, (n) => {
1926
+ Be(this, t, (n) => {
1916
1927
  var i;
1917
1928
  const o = e.arrowObj, s = ((i = n.textContent) == null ? void 0 : i.trim()) || "";
1918
1929
  s === "" ? o.label = origin : o.label = s, n.remove(), s !== origin && (t.innerHTML = o.label, this.linkDiv(), this.bus.fire("operation", {
1919
1930
  name: "finishEditArrowLabel",
1920
1931
  obj: o
1921
1932
  }));
1922
- }), console.timeEnd("editSummary");
1933
+ });
1923
1934
  }
1924
- function Pn() {
1935
+ function Hn() {
1925
1936
  this.arrows = this.arrows.filter((e) => ne(e.from, this.nodeData) && ne(e.to, this.nodeData));
1926
1937
  }
1927
- const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1938
+ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1928
1939
  __proto__: null,
1929
- createArrow: kn,
1930
- editArrowLabel: $n,
1931
- removeArrow: An,
1940
+ createArrow: An,
1941
+ editArrowLabel: Pn,
1942
+ removeArrow: jn,
1932
1943
  renderArrow: On,
1933
- selectArrow: jn,
1934
- tidyArrow: Pn,
1935
- unselectArrow: Dn
1936
- }, Symbol.toStringTag, { value: "Module" })), Bn = function(e) {
1937
- var c, h;
1944
+ selectArrow: Dn,
1945
+ tidyArrow: Hn,
1946
+ unselectArrow: $n
1947
+ }, Symbol.toStringTag, { value: "Module" })), zn = function(e) {
1948
+ var l, h;
1938
1949
  if (e.length === 0)
1939
1950
  throw new Error("No selected node.");
1940
1951
  if (e.length === 1) {
@@ -1961,27 +1972,27 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1961
1972
  let o = 0;
1962
1973
  e:
1963
1974
  for (; o < t; o++) {
1964
- const a = (c = n[0][o]) == null ? void 0 : c.node;
1975
+ const a = (l = n[0][o]) == null ? void 0 : l.node;
1965
1976
  for (let u = 1; u < n.length; u++)
1966
1977
  if (((h = n[u][o]) == null ? void 0 : h.node) !== a)
1967
1978
  break e;
1968
1979
  }
1969
1980
  if (!o)
1970
1981
  throw new Error("Can not select root node.");
1971
- const s = n.map((a) => a[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, l = n[0][o - 1].node;
1972
- if (l.root)
1982
+ const s = n.map((a) => a[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, c = n[0][o - 1].node;
1983
+ if (c.root)
1973
1984
  throw new Error("Please select nodes in the same main topic.");
1974
1985
  return {
1975
- parent: l.id,
1986
+ parent: c.id,
1976
1987
  start: i,
1977
1988
  end: r
1978
1989
  };
1979
- }, zn = function(e) {
1990
+ }, Rn = function(e) {
1980
1991
  const t = document.createElementNS("http://www.w3.org/2000/svg", "g");
1981
1992
  return t.setAttribute("id", e), t;
1982
1993
  }, ke = function(e, t) {
1983
1994
  const n = document.createElementNS("http://www.w3.org/2000/svg", "path");
1984
- return N(n, {
1995
+ return C(n, {
1985
1996
  d: e,
1986
1997
  stroke: t || "#666",
1987
1998
  fill: "none",
@@ -1990,42 +2001,42 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1990
2001
  }), n;
1991
2002
  }, Ae = function(e, t, n, o, s) {
1992
2003
  const i = document.createElementNS("http://www.w3.org/2000/svg", "text");
1993
- return N(i, {
2004
+ return C(i, {
1994
2005
  "text-anchor": o,
1995
2006
  x: t + "",
1996
2007
  y: n + "",
1997
2008
  fill: s || "#666"
1998
2009
  }), i.innerHTML = e, i;
1999
- }, Rn = (e) => C(e).parentElement.parentElement, qn = function({ parent: e, start: t }) {
2010
+ }, qn = (e) => N(e).parentElement.parentElement, Fn = function({ parent: e, start: t }) {
2000
2011
  var i, r;
2001
- const n = C(e), o = n.nodeObj;
2012
+ const n = N(e), o = n.nodeObj;
2002
2013
  let s;
2003
- return o.root === !0 ? s = (i = C(o.children[t].id).closest("me-main")) == null ? void 0 : i.className : s = (r = n.closest("me-main")) == null ? void 0 : r.className, s;
2014
+ return o.root === !0 ? s = (i = N(o.children[t].id).closest("me-main")) == null ? void 0 : i.className : s = (r = n.closest("me-main")) == null ? void 0 : r.className, s;
2004
2015
  }, Qe = function(e, t) {
2005
2016
  var _;
2006
- const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, h = C(s).nodeObj, a = qn(t);
2017
+ const { id: n, text: o, parent: s, start: i, end: r } = t, c = e.nodes, h = N(s).nodeObj, a = Fn(t);
2007
2018
  let u = 1 / 0, d = 0, m = 0, g = 0;
2008
2019
  for (let P = i; P <= r; P++) {
2009
2020
  const U = (_ = h.children) == null ? void 0 : _[P];
2010
2021
  if (!U)
2011
- return console.warn("Child not found"), e.removeSummary(n), null;
2012
- const H = Rn(U.id), { offsetLeft: J, offsetTop: ve } = $(l, H);
2022
+ return e.removeSummary(n), null;
2023
+ const H = qn(U.id), { offsetLeft: J, offsetTop: ve } = O(c, H);
2013
2024
  P === i && (m = ve), P === r && (g = ve + H.offsetHeight), J < u && (u = J), H.offsetWidth + J > d && (d = H.offsetWidth + J);
2014
2025
  }
2015
2026
  let p, f;
2016
2027
  const v = m + 10, b = g + 10, y = (v + b) / 2, x = e.theme.cssVar["--color"];
2017
2028
  a === "lhs" ? (p = ke(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${y} h -10`, x), f = Ae(o, u - 20, y + 6, "end", x)) : (p = ke(`M ${d - 10} ${v} c 5 0 10 5 10 10 L ${d} ${b - 10} c 0 5 -5 10 -10 10 M ${d} ${y} h 10`, x), f = Ae(o, d + 20, y + 6, "start", x));
2018
- const w = zn("s-" + n);
2029
+ const w = Rn("s-" + n);
2019
2030
  return w.appendChild(p), w.appendChild(f), w.summaryObj = t, e.summarySvg.appendChild(w), w;
2020
- }, Fn = function() {
2031
+ }, In = function() {
2021
2032
  let e = [];
2022
2033
  this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
2023
- const { parent: t, start: n, end: o } = Bn(e), s = { id: G(), parent: t, start: n, end: o, text: "summary" }, i = Qe(this, s);
2034
+ const { parent: t, start: n, end: o } = zn(e), s = { id: G(), parent: t, start: n, end: o, text: "summary" }, i = Qe(this, s);
2024
2035
  this.summaries.push(s), this.editSummary(i), this.bus.fire("operation", {
2025
2036
  name: "createSummary",
2026
2037
  obj: s
2027
2038
  });
2028
- }, In = function(e) {
2039
+ }, Kn = function(e) {
2029
2040
  var n;
2030
2041
  const t = this.summaries.findIndex((o) => o.id === e);
2031
2042
  t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove()), this.bus.fire("operation", {
@@ -2034,7 +2045,7 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2034
2045
  });
2035
2046
  }, Vn = function(e) {
2036
2047
  const t = e.children[1].getBBox(), n = 6, o = 3, s = document.createElementNS("http://www.w3.org/2000/svg", "rect");
2037
- N(s, {
2048
+ C(s, {
2038
2049
  x: t.x - n + "",
2039
2050
  y: t.y - n + "",
2040
2051
  width: t.width + n * 2 + "",
@@ -2047,16 +2058,15 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2047
2058
  }, Wn = function() {
2048
2059
  var e, t;
2049
2060
  (t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
2050
- }, Kn = function() {
2061
+ }, Un = function() {
2051
2062
  this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
2052
2063
  try {
2053
2064
  Qe(this, e);
2054
2065
  } catch {
2055
- console.warn("Node may not be expanded");
2056
2066
  }
2057
2067
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
2058
- }, Un = function(e) {
2059
- if (console.time("editSummary"), !e)
2068
+ }, Yn = function(e) {
2069
+ if (!e)
2060
2070
  return;
2061
2071
  const t = e.childNodes[1];
2062
2072
  Be(this, t, (n) => {
@@ -2066,65 +2076,65 @@ const Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2066
2076
  name: "finishEditSummary",
2067
2077
  obj: o
2068
2078
  }));
2069
- }), console.timeEnd("editSummary");
2070
- }, Yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2079
+ });
2080
+ }, Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2071
2081
  __proto__: null,
2072
- createSummary: Fn,
2073
- editSummary: Un,
2074
- removeSummary: In,
2075
- renderSummary: Kn,
2082
+ createSummary: In,
2083
+ editSummary: Yn,
2084
+ removeSummary: Kn,
2085
+ renderSummary: Un,
2076
2086
  selectSummary: Vn,
2077
2087
  unselectSummary: Wn
2078
2088
  }, Symbol.toStringTag, { value: "Module" })), M = "http://www.w3.org/2000/svg";
2079
- function Xn(e, t) {
2089
+ function Gn(e, t) {
2080
2090
  const n = document.createElementNS(M, "svg");
2081
- return N(n, {
2091
+ return C(n, {
2082
2092
  version: "1.1",
2083
2093
  xmlns: M,
2084
2094
  height: e,
2085
2095
  width: t
2086
2096
  }), n;
2087
2097
  }
2088
- function Gn(e, t) {
2098
+ function Jn(e, t) {
2089
2099
  return (parseInt(e) - parseInt(t)) / 2;
2090
2100
  }
2091
- function Jn(e, t, n, o) {
2101
+ function Qn(e, t, n, o) {
2092
2102
  const s = document.createElementNS(M, "g");
2093
2103
  let i = "";
2094
2104
  return e.text ? i = e.text.textContent : i = e.childNodes[0].textContent, i.split(`
2095
- `).forEach((l, c) => {
2105
+ `).forEach((c, l) => {
2096
2106
  const h = document.createElementNS(M, "text");
2097
- N(h, {
2107
+ C(h, {
2098
2108
  x: n + parseInt(t.paddingLeft) + "",
2099
- y: o + parseInt(t.paddingTop) + Gn(t.lineHeight, t.fontSize) * (c + 1) + parseFloat(t.fontSize) * (c + 1) + "",
2109
+ y: o + parseInt(t.paddingTop) + Jn(t.lineHeight, t.fontSize) * (l + 1) + parseFloat(t.fontSize) * (l + 1) + "",
2100
2110
  "text-anchor": "start",
2101
2111
  "font-family": t.fontFamily,
2102
2112
  "font-size": `${t.fontSize}`,
2103
2113
  "font-weight": `${t.fontWeight}`,
2104
2114
  fill: `${t.color}`
2105
- }), h.innerHTML = l, s.appendChild(h);
2115
+ }), h.innerHTML = c, s.appendChild(h);
2106
2116
  }), s;
2107
2117
  }
2108
- function Qn(e, t, n, o) {
2109
- var l;
2118
+ function Zn(e, t, n, o) {
2119
+ var c;
2110
2120
  let s = "";
2111
- (l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
2121
+ (c = e.nodeObj) != null && c.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
2112
2122
  const i = document.createElementNS(M, "foreignObject");
2113
- N(i, {
2123
+ C(i, {
2114
2124
  x: n + parseInt(t.paddingLeft) + "",
2115
2125
  y: o + parseInt(t.paddingTop) + "",
2116
2126
  width: t.width,
2117
2127
  height: t.height
2118
2128
  });
2119
2129
  const r = document.createElement("div");
2120
- return N(r, {
2130
+ return C(r, {
2121
2131
  xmlns: "http://www.w3.org/1999/xhtml",
2122
2132
  style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
2123
2133
  }), r.innerHTML = s, i.appendChild(r), i;
2124
2134
  }
2125
- function Zn(e, t) {
2126
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "rect");
2127
- return N(i, {
2135
+ function eo(e, t) {
2136
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "rect");
2137
+ return C(i, {
2128
2138
  x: o + "",
2129
2139
  y: s + "",
2130
2140
  rx: n.borderRadius,
@@ -2137,8 +2147,8 @@ function Zn(e, t) {
2137
2147
  }), i;
2138
2148
  }
2139
2149
  function Z(e, t, n = !1) {
2140
- const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = $(e.nodes, t), r = document.createElementNS(M, "rect");
2141
- N(r, {
2150
+ const o = getComputedStyle(t), { offsetLeft: s, offsetTop: i } = O(e.nodes, t), r = document.createElementNS(M, "rect");
2151
+ C(r, {
2142
2152
  x: s + "",
2143
2153
  y: i + "",
2144
2154
  rx: o.borderRadius,
@@ -2149,14 +2159,14 @@ function Z(e, t, n = !1) {
2149
2159
  stroke: o.borderColor,
2150
2160
  "stroke-width": o.borderWidth
2151
2161
  });
2152
- const l = document.createElementNS(M, "g");
2153
- l.appendChild(r);
2154
- let c;
2155
- return n ? c = Qn(t, o, s, i) : c = Jn(t, o, s, i), l.appendChild(c), l;
2162
+ const c = document.createElementNS(M, "g");
2163
+ c.appendChild(r);
2164
+ let l;
2165
+ return n ? l = Zn(t, o, s, i) : l = Qn(t, o, s, i), c.appendChild(l), c;
2156
2166
  }
2157
- function eo(e, t) {
2158
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
2159
- return N(r, {
2167
+ function to(e, t) {
2168
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "a"), r = document.createElementNS(M, "text");
2169
+ return C(r, {
2160
2170
  x: o + "",
2161
2171
  y: s + parseInt(n.fontSize) + "",
2162
2172
  "text-anchor": "start",
@@ -2166,9 +2176,9 @@ function eo(e, t) {
2166
2176
  fill: `${n.color}`
2167
2177
  }), r.innerHTML = t.textContent, i.appendChild(r), i.setAttribute("href", t.href), i;
2168
2178
  }
2169
- function to(e, t) {
2170
- const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = $(e.nodes, t), i = document.createElementNS(M, "image");
2171
- return N(i, {
2179
+ function no(e, t) {
2180
+ const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = O(e.nodes, t), i = document.createElementNS(M, "image");
2181
+ return C(i, {
2172
2182
  x: o + "",
2173
2183
  y: s + "",
2174
2184
  width: n.width + "",
@@ -2176,41 +2186,41 @@ function to(e, t) {
2176
2186
  href: t.src
2177
2187
  }), i;
2178
2188
  }
2179
- const ee = 100, no = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', oo = (e, t = !1) => {
2189
+ const ee = 100, oo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">', so = (e, t = !1) => {
2180
2190
  var u, d, m;
2181
- const n = e.nodes, o = n.offsetHeight + ee * 2, s = n.offsetWidth + ee * 2, i = Xn(o + "px", s + "px"), r = document.createElementNS(M, "svg"), l = document.createElementNS(M, "rect");
2182
- N(l, {
2191
+ const n = e.nodes, o = n.offsetHeight + ee * 2, s = n.offsetWidth + ee * 2, i = Gn(o + "px", s + "px"), r = document.createElementNS(M, "svg"), c = document.createElementNS(M, "rect");
2192
+ C(c, {
2183
2193
  x: "0",
2184
2194
  y: "0",
2185
2195
  width: `${s}`,
2186
2196
  height: `${o}`,
2187
2197
  fill: e.theme.cssVar["--bgcolor"]
2188
- }), i.appendChild(l), n.querySelectorAll(".subLines").forEach((g) => {
2189
- const p = g.cloneNode(!0), { offsetLeft: f, offsetTop: v } = $(n, g.parentElement);
2198
+ }), i.appendChild(c), n.querySelectorAll(".subLines").forEach((g) => {
2199
+ const p = g.cloneNode(!0), { offsetLeft: f, offsetTop: v } = O(n, g.parentElement);
2190
2200
  p.setAttribute("x", `${f}`), p.setAttribute("y", `${v}`), r.appendChild(p);
2191
2201
  });
2192
- const c = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2193
- c && r.appendChild(c);
2202
+ const l = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2203
+ l && r.appendChild(l);
2194
2204
  const h = (d = n.querySelector(".topiclinks")) == null ? void 0 : d.cloneNode(!0);
2195
2205
  h && r.appendChild(h);
2196
2206
  const a = (m = n.querySelector(".summary")) == null ? void 0 : m.cloneNode(!0);
2197
2207
  return a && r.appendChild(a), n.querySelectorAll("me-tpc").forEach((g) => {
2198
- g.nodeObj.dangerouslySetInnerHTML ? r.appendChild(Z(e, g, !t)) : (r.appendChild(Zn(e, g)), r.appendChild(Z(e, g.text, !t)));
2208
+ g.nodeObj.dangerouslySetInnerHTML ? r.appendChild(Z(e, g, !t)) : (r.appendChild(eo(e, g)), r.appendChild(Z(e, g.text, !t)));
2199
2209
  }), n.querySelectorAll(".tags > span").forEach((g) => {
2200
2210
  r.appendChild(Z(e, g));
2201
2211
  }), n.querySelectorAll(".icons > span").forEach((g) => {
2202
2212
  r.appendChild(Z(e, g));
2203
2213
  }), n.querySelectorAll(".hyper-link").forEach((g) => {
2204
- r.appendChild(eo(e, g));
2205
- }), n.querySelectorAll("img").forEach((g) => {
2206
2214
  r.appendChild(to(e, g));
2207
- }), N(r, {
2215
+ }), n.querySelectorAll("img").forEach((g) => {
2216
+ r.appendChild(no(e, g));
2217
+ }), C(r, {
2208
2218
  x: ee + "",
2209
2219
  y: ee + "",
2210
2220
  overflow: "visible"
2211
2221
  }), i.appendChild(r), i;
2212
- }, so = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), no + e.outerHTML);
2213
- function io(e) {
2222
+ }, io = (e, t) => (t && e.insertAdjacentHTML("afterbegin", "<style>" + t + "</style>"), oo + e.outerHTML);
2223
+ function ro(e) {
2214
2224
  return new Promise((t, n) => {
2215
2225
  const o = new FileReader();
2216
2226
  o.onload = (s) => {
@@ -2220,24 +2230,24 @@ function io(e) {
2220
2230
  }, o.readAsDataURL(e);
2221
2231
  });
2222
2232
  }
2223
- const ro = function(e = !1, t) {
2224
- const n = oo(this, e), o = so(n, t);
2233
+ const co = function(e = !1, t) {
2234
+ const n = so(this, e), o = io(n, t);
2225
2235
  return new Blob([o], { type: "image/svg+xml" });
2226
2236
  }, lo = async function(e = !1, t) {
2227
- const n = this.exportSvg(e, t), o = await io(n);
2237
+ const n = this.exportSvg(e, t), o = await ro(n);
2228
2238
  return new Promise((s, i) => {
2229
2239
  const r = new Image();
2230
2240
  r.setAttribute("crossOrigin", "anonymous"), r.onload = () => {
2231
- const l = document.createElement("canvas");
2232
- l.width = r.width, l.height = r.height, l.getContext("2d").drawImage(r, 0, 0), l.toBlob(s, "image/png", 1);
2241
+ const c = document.createElement("canvas");
2242
+ c.width = r.width, c.height = r.height, c.getContext("2d").drawImage(r, 0, 0), c.toBlob(s, "image/png", 1);
2233
2243
  }, r.src = o, r.onerror = i;
2234
2244
  });
2235
- }, co = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2245
+ }, ao = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2236
2246
  __proto__: null,
2237
2247
  exportPng: lo,
2238
- exportSvg: ro
2248
+ exportSvg: co
2239
2249
  }, Symbol.toStringTag, { value: "Module" }));
2240
- function ao(e, t) {
2250
+ function ho(e, t) {
2241
2251
  return async function(...n) {
2242
2252
  const o = this.before[t];
2243
2253
  o && !await o.apply(this, n) || e.apply(this, n);
@@ -2246,46 +2256,46 @@ function ao(e, t) {
2246
2256
  const je = Object.keys(Ye), Ze = {};
2247
2257
  for (let e = 0; e < je.length; e++) {
2248
2258
  const t = je[e];
2249
- Ze[t] = ao(Ye[t], t);
2259
+ Ze[t] = ho(Ye[t], t);
2250
2260
  }
2251
- const ho = {
2261
+ const uo = {
2252
2262
  getObjById: ne,
2253
2263
  generateNewObj: nt,
2254
2264
  layout: it,
2255
2265
  linkDiv: pt,
2256
2266
  editTopic: ut,
2257
- createWrapper: ct,
2267
+ createWrapper: lt,
2258
2268
  createParent: at,
2259
2269
  createChildren: dt,
2260
2270
  createTopic: ht,
2261
- findEle: C,
2262
- changeTheme: Bt,
2271
+ findEle: N,
2272
+ changeTheme: zt,
2263
2273
  ...ln,
2264
2274
  ...Ze,
2265
- ...Hn,
2266
- ...Yn,
2267
- ...co,
2275
+ ...Bn,
2276
+ ...Xn,
2277
+ ...ao,
2268
2278
  init(e) {
2269
2279
  if (!e || !e.nodeData)
2270
2280
  return new Error("MindElixir: `data` is required");
2271
- e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, O(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && kt(this), this.keypress && wt(this), this.editable && Ht(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && mt(this, this.contextMenuOption), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
2281
+ e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, $(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && kt(this), this.keypress && wt(this), this.editable && Bt(this), et() && this.mobileMenu ? Et(this) : this.contextMenu && mt(this, this.contextMenuOption), this.draggable && _t(this), this.allowUndo && Mt(this), this.toCenter(), this.layout(), this.linkDiv();
2272
2282
  }
2273
2283
  };
2274
- function uo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, containerHeight: h }) {
2284
+ function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, containerHeight: h }) {
2275
2285
  let a = t + n / 2;
2276
2286
  const u = e + o / 2;
2277
2287
  let d;
2278
- c === "lhs" ? d = i + r : d = i;
2279
- const m = s + l / 2, p = (1 - Math.abs(m - u) / h) * 0.25 * (n / 2);
2280
- return c === "lhs" ? a = a - n / 10 - p : a = a + n / 10 + p, `M ${a} ${u} Q ${a} ${m} ${d} ${m}`;
2288
+ l === "lhs" ? d = i + r : d = i;
2289
+ const m = s + c / 2, p = (1 - Math.abs(m - u) / h) * 0.25 * (n / 2);
2290
+ return l === "lhs" ? a = a - n / 10 - p : a = a + n / 10 + p, `M ${a} ${u} Q ${a} ${m} ${d} ${m}`;
2281
2291
  }
2282
- function fo({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, isFirst: h }) {
2292
+ function po({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction: l, isFirst: h }) {
2283
2293
  let a = 0, u = 0;
2284
2294
  h ? a = e + o / 2 : a = e + o;
2285
- const d = s + l;
2295
+ const d = s + c;
2286
2296
  let m = 0, g = 0, p = 0;
2287
2297
  const f = Math.abs(a - d) / 300 * D;
2288
- return c === "lhs" ? (p = t, m = p + D, g = p - D, u = i + D, `M ${m} ${a} C ${p} ${a} ${p + f} ${d} ${g} ${d} H ${u}`) : (p = t + n, m = p - D, g = p + D, u = i + r - D, `M ${m} ${a} C ${p} ${a} ${p - f} ${d} ${g} ${d} H ${u}`);
2298
+ return l === "lhs" ? (p = t, m = p + D, g = p - D, u = i + D, `M ${m} ${a} C ${p} ${a} ${p + f} ${d} ${g} ${d} H ${u}`) : (p = t + n, m = p - D, g = p + D, u = i + r - D, `M ${m} ${a} C ${p} ${a} ${p - f} ${d} ${g} ${d} H ${u}`);
2289
2299
  }
2290
2300
  const Y = document;
2291
2301
  function k({
@@ -2296,8 +2306,8 @@ function k({
2296
2306
  editable: s,
2297
2307
  contextMenu: i,
2298
2308
  contextMenuOption: r,
2299
- toolBar: l,
2300
- keypress: c,
2309
+ toolBar: c,
2310
+ keypress: l,
2301
2311
  mouseSelectionButton: h,
2302
2312
  before: a,
2303
2313
  newTopicName: u,
@@ -2308,25 +2318,24 @@ function k({
2308
2318
  mobileMenu: f,
2309
2319
  theme: v
2310
2320
  }) {
2311
- console.log("ME_version " + k.version, this);
2312
2321
  let b = null;
2313
2322
  const y = Object.prototype.toString.call(e);
2314
2323
  if (y === "[object HTMLDivElement]" ? b = e : y === "[object String]" && (b = document.querySelector(e)), !b)
2315
2324
  throw new Error("MindElixir: el is not a valid element");
2316
- b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = l === void 0 ? !0 : l, this.keypress = c === void 0 ? !0 : c, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || uo, this.generateSubBranch = g || fo, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
2325
+ b.className += " mind-elixir", b.innerHTML = "", b.style.setProperty("--gap", D + "px"), this.mindElixirBox = b, this.before = a || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = i === void 0 ? !0 : i, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = h || 0, this.mobileMenu = f || !1, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = u || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = d === void 0 ? !1 : d, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = g || po, this.overflowHidden = p || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.container.className = "map-container";
2317
2326
  const x = window.matchMedia("(prefers-color-scheme: dark)");
2318
- this.theme = v || (x.matches ? Oe : De);
2327
+ this.theme = v || (x.matches ? $e : De);
2319
2328
  const w = Y.createElement("div");
2320
2329
  w.className = "map-canvas", this.map = w, this.map.setAttribute("tabindex", "0"), this.container.appendChild(this.map), this.mindElixirBox.appendChild(this.container), this.nodes = Y.createElement("me-nodes"), this.nodes.className = "main-node-container", this.lines = X("lines"), this.summarySvg = X("summary"), this.linkController = X("linkcontroller"), this.P2 = Y.createElement("div"), this.P3 = Y.createElement("div"), this.P2.className = this.P3.className = "circle", this.P2.style.display = this.P3.style.display = "none", this.line1 = be(), this.line2 = be(), this.linkController.appendChild(this.line1), this.linkController.appendChild(this.line2), this.linkSvgGroup = X("topiclinks"), this.map.appendChild(this.nodes), this.overflowHidden ? this.container.style.overflow = "hidden" : ot(this);
2321
2330
  }
2322
- k.prototype = ho;
2331
+ k.prototype = uo;
2323
2332
  k.LEFT = T;
2324
2333
  k.RIGHT = z;
2325
2334
  k.SIDE = ie;
2326
2335
  k.THEME = De;
2327
- k.DARK_THEME = Oe;
2328
- k.version = "4.0.1";
2329
- k.E = C;
2336
+ k.DARK_THEME = $e;
2337
+ k.version = "4.0.3";
2338
+ k.E = N;
2330
2339
  k.new = (e) => ({
2331
2340
  nodeData: {
2332
2341
  id: G(),