mind-elixir 4.4.0 → 4.4.2

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,4 +1,4 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".mind-elixir{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--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{outline:2px solid var(--selected);outline-offset:1px}.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);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.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-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;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.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 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.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;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.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(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".map-container{--gap: 30px;--root-radius: 30px;--main-radius: 20px;--root-color: #ffffff;--root-bgcolor: #4c4f69;--root-border-color: rgba(0, 0, 0, 0);--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;-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;-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{outline:2px solid var(--selected);outline-offset:1px}.map-container .hyper-link{text-decoration:none;margin-left:.3em}.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);border:var(--root-border-color) 2px solid;white-space:pre-wrap;background-color:var(--root-bgcolor)}.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-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;width:max-content;max-width:35em;z-index:11;direction:ltr;-webkit-user-select:auto;user-select:auto;pointer-events:auto;background-color:var(--bgcolor)}.map-container me-tpc>*{pointer-events:none}.map-container me-tpc>a,.map-container me-tpc>iframe{pointer-events:auto}.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 4px 0 0;font-size:12px;line-height:1.3em}.map-container .icons{display:inline-block;direction:ltr;margin-left:5px}.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;color:var(--panel-color);box-shadow:0 12px 15px #0003;border-radius:5px;overflow:hidden}.mind-elixir .context-menu .menu-list li{min-width:200px;overflow:hidden;white-space:nowrap;padding:6px 10px;background:var(--panel-bgcolor);border-bottom:1px solid var(--panel-border-color);cursor:pointer}.mind-elixir .context-menu .menu-list li span{line-height:20px}.mind-elixir .context-menu .menu-list li a{color:#333;text-decoration:none}.mind-elixir .context-menu .menu-list li.disabled{display:none}.mind-elixir .context-menu .menu-list li:hover{filter:brightness(.95)}.mind-elixir .context-menu .menu-list li:last-child{border-bottom:0}.mind-elixir .context-menu .menu-list li span:last-child{float:right}.mind-elixir .context-menu .key{font-size:10px;background-color:#f1f1f1;color:#333;padding:2px 5px;border-radius:3px}.mind-elixir .tips{position:absolute;bottom:20px;left:50%;transform:translate(-50%);color:var(--panel-color);font-weight:bolder}.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(e)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}})();
2
2
  (function(e) {
3
3
  var t, n, o, i, s, 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
4
  if (l && !e.__iconfont__svg__cssinject__) {
@@ -10,12 +10,12 @@
10
10
  } catch {
11
11
  }
12
12
  }
13
- function d() {
13
+ function a() {
14
14
  s || (s = !0, o());
15
15
  }
16
16
  t = function() {
17
- var h, u, a, p;
18
- (p = document.createElement("div")).innerHTML = c, c = null, (a = p.getElementsByTagName("svg")[0]) && (a.setAttribute("aria-hidden", "true"), a.style.position = "absolute", a.style.width = 0, a.style.height = 0, a.style.overflow = "hidden", h = a, (u = document.body).firstChild ? (p = h, (a = u.firstChild).parentNode.insertBefore(p, a)) : u.appendChild(h));
17
+ var d, u, h, p;
18
+ (p = document.createElement("div")).innerHTML = c, c = null, (h = p.getElementsByTagName("svg")[0]) && (h.setAttribute("aria-hidden", "true"), h.style.position = "absolute", h.style.width = 0, h.style.height = 0, h.style.overflow = "hidden", d = h, (u = document.body).firstChild ? (p = d, (h = u.firstChild).parentNode.insertBefore(p, h)) : u.appendChild(d));
19
19
  }, document.addEventListener ? ~["complete", "loaded", "interactive"].indexOf(document.readyState) ? setTimeout(t, 0) : (n = function() {
20
20
  document.removeEventListener("DOMContentLoaded", n, !1), t();
21
21
  }, document.addEventListener("DOMContentLoaded", n, !1)) : document.attachEvent && (o = t, i = e.document, s = !1, (r = function() {
@@ -24,9 +24,9 @@
24
24
  } catch {
25
25
  return void setTimeout(r, 50);
26
26
  }
27
- d();
27
+ a();
28
28
  })(), i.onreadystatechange = function() {
29
- i.readyState == "complete" && (i.onreadystatechange = null, d());
29
+ i.readyState == "complete" && (i.onreadystatechange = null, a());
30
30
  });
31
31
  })(window);
32
32
  const $ = 0, P = 1, ae = 2, Pe = {
@@ -92,12 +92,12 @@ function re(e, t, n, o) {
92
92
  const i = o - t, s = e - n;
93
93
  let r = Math.atan(Math.abs(i) / Math.abs(s)) / 3.14 * 180;
94
94
  s < 0 && i > 0 && (r = 180 - r), s < 0 && i < 0 && (r = 180 + r), s > 0 && i < 0 && (r = 360 - r);
95
- const c = 12, l = 30, d = r + l, h = r - l;
95
+ const c = 12, l = 30, a = r + l, d = r - l;
96
96
  return {
97
- x1: n + Math.cos(Math.PI * d / 180) * c,
98
- y1: o - Math.sin(Math.PI * d / 180) * c,
99
- x2: n + Math.cos(Math.PI * h / 180) * c,
100
- y2: o - Math.sin(Math.PI * h / 180) * c
97
+ x1: n + Math.cos(Math.PI * a / 180) * c,
98
+ y1: o - Math.sin(Math.PI * a / 180) * c,
99
+ x2: n + Math.cos(Math.PI * d / 180) * c,
100
+ y2: o - Math.sin(Math.PI * d / 180) * c
101
101
  };
102
102
  }
103
103
  function Z() {
@@ -141,8 +141,13 @@ const R = (e, t) => {
141
141
  onMove(e, t) {
142
142
  if (this.mousedown) {
143
143
  this.moved = !0;
144
- const n = e.movementX, o = e.movementY;
145
- t.scrollTo(t.scrollLeft - n, t.scrollTop - o);
144
+ const n = e.movementX, o = e.movementY, { container: i, map: s, scaleVal: r } = t;
145
+ let c = i.scrollLeft - n, l = i.scrollTop - o;
146
+ if (r < 1) {
147
+ const a = (i.scrollWidth - s.clientWidth * r) / 2, d = (i.scrollHeight - s.clientHeight * r) / 2;
148
+ c = Math.max(a, Math.min(i.scrollWidth - a - i.clientWidth, c)), l = Math.max(d, Math.min(i.scrollHeight - d - i.clientHeight, l));
149
+ }
150
+ i.scrollTo(c, l);
146
151
  }
147
152
  },
148
153
  clear() {
@@ -184,7 +189,7 @@ function it(e) {
184
189
  const n = t.target;
185
190
  he(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
186
191
  }), e.map.addEventListener("mousemove", (t) => {
187
- t.target.contentEditable !== "true" && k.onMove(t, e.container);
192
+ t.target.contentEditable !== "true" && k.onMove(t, e);
188
193
  }), e.map.addEventListener("mousedown", (t) => {
189
194
  const n = e.mouseSelectionButton === 0 ? 2 : 0;
190
195
  t.button === n && t.target.contentEditable !== "true" && (k.moved = !1, k.mousedown = !0);
@@ -417,8 +422,8 @@ const ft = function(e) {
417
422
  const r = this.map.querySelectorAll("me-main > me-wrapper");
418
423
  this.lines.innerHTML = "";
419
424
  for (let c = 0; c < r.length; c++) {
420
- const l = r[c], d = l.querySelector("me-tpc"), { offsetLeft: h, offsetTop: u } = R(this.nodes, d), a = d.offsetWidth, p = d.offsetHeight, m = l.parentNode.className, v = this.generateMainBranch({ pT: n, pL: o, pW: i, pH: s, cT: u, cL: h, cW: a, cH: p, direction: m, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, f = d.nodeObj.branchColor || g[c % g.length];
421
- d.style.borderColor = f, this.lines.appendChild(ze(v, f, "3"));
425
+ const l = r[c], a = l.querySelector("me-tpc"), { offsetLeft: d, offsetTop: u } = R(this.nodes, a), h = a.offsetWidth, p = a.offsetHeight, m = l.parentNode.className, v = this.generateMainBranch({ pT: n, pL: o, pW: i, pH: s, cT: u, cL: d, cW: h, cH: p, direction: m, containerHeight: this.nodes.offsetHeight }), g = this.theme.palette, f = a.nodeObj.branchColor || g[c % g.length];
426
+ a.style.borderColor = f, this.lines.appendChild(ze(v, f, "3"));
422
427
  const b = l.children[0].children[1];
423
428
  if (b && (b.style.top = (b.parentNode.offsetHeight - b.offsetHeight) / 2 + "px", m === L.LHS ? b.style.left = "-10px" : b.style.right = "-10px"), e && e !== l)
424
429
  continue;
@@ -430,9 +435,9 @@ const ft = function(e) {
430
435
  const r = o.firstChild, c = o.children[1].children;
431
436
  if (c.length === 0)
432
437
  return;
433
- const l = r.offsetTop, d = r.offsetLeft, h = r.offsetWidth, u = r.offsetHeight;
434
- for (let a = 0; a < c.length; a++) {
435
- const p = c[a], m = p.firstChild, v = m.offsetTop, g = m.offsetLeft, f = m.offsetWidth, b = m.offsetHeight, x = m.firstChild.nodeObj.branchColor || n, S = e.generateSubBranch({ pT: l, pL: d, pW: h, pH: u, cT: v, cL: g, cW: f, cH: b, direction: i, isFirst: s });
438
+ const l = r.offsetTop, a = r.offsetLeft, d = r.offsetWidth, u = r.offsetHeight;
439
+ for (let h = 0; h < c.length; h++) {
440
+ const p = c[h], m = p.firstChild, v = m.offsetTop, g = m.offsetLeft, f = m.offsetWidth, b = m.offsetHeight, x = m.firstChild.nodeObj.branchColor || n, S = e.generateSubBranch({ pT: l, pL: a, pW: d, pH: u, cT: v, cL: g, cW: f, cH: b, direction: i, isFirst: s });
436
441
  t.appendChild(ze(S, x, "2"));
437
442
  const y = m.children[1];
438
443
  if (y) {
@@ -582,8 +587,8 @@ function gt(e, t) {
582
587
  }, o = (y, w, _) => {
583
588
  const M = document.createElement("li");
584
589
  return M.id = y, M.innerHTML = `<span>${ie(w)}</span><span ${_ ? 'class="key"' : ""}>${ie(_)}</span>`, M;
585
- }, i = Ce[e.locale] ? e.locale : "en", s = Ce[i], r = o("cm-add_child", s.addChild, "Tab"), c = o("cm-add_parent", s.addParent, "Ctrl + Enter"), l = o("cm-add_sibling", s.addSibling, "Enter"), d = o("cm-remove_child", s.removeNode, "Delete"), h = o("cm-fucus", s.focus, ""), u = o("cm-unfucus", s.cancelFocus, ""), a = o("cm-up", s.moveUp, "PgUp"), p = o("cm-down", s.moveDown, "Pgdn"), m = o("cm-link", s.link, ""), v = o("cm-link-bidirectional", "Bidreactional Link", ""), g = o("cm-summary", s.summary, ""), f = document.createElement("ul");
586
- if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(d), (!t || t.focus) && (f.appendChild(h), f.appendChild(u)), f.appendChild(a), f.appendChild(p), f.appendChild(g), (!t || t.link) && (f.appendChild(m), f.appendChild(v)), t && t.extend)
590
+ }, i = Ce[e.locale] ? e.locale : "en", s = Ce[i], r = o("cm-add_child", s.addChild, "Tab"), c = o("cm-add_parent", s.addParent, "Ctrl + Enter"), l = o("cm-add_sibling", s.addSibling, "Enter"), a = o("cm-remove_child", s.removeNode, "Delete"), d = o("cm-fucus", s.focus, ""), u = o("cm-unfucus", s.cancelFocus, ""), h = o("cm-up", s.moveUp, "PgUp"), p = o("cm-down", s.moveDown, "Pgdn"), m = o("cm-link", s.link, ""), v = o("cm-link-bidirectional", "Bidreactional Link", ""), g = o("cm-summary", s.summary, ""), f = document.createElement("ul");
591
+ if (f.className = "menu-list", f.appendChild(r), f.appendChild(c), f.appendChild(l), f.appendChild(a), (!t || t.focus) && (f.appendChild(d), f.appendChild(u)), f.appendChild(h), f.appendChild(p), f.appendChild(g), (!t || t.link) && (f.appendChild(m), f.appendChild(v)), t && t.extend)
587
592
  for (let y = 0; y < t.extend.length; y++) {
588
593
  const w = t.extend[y], _ = o(w.name, w.name, w.key || "");
589
594
  f.appendChild(_), _.onclick = (M) => {
@@ -598,7 +603,7 @@ function gt(e, t) {
598
603
  return;
599
604
  const w = y.target;
600
605
  if (he(w)) {
601
- w.parentElement.tagName === "ME-ROOT" ? x = !0 : x = !1, x ? (h.className = "disabled", a.className = "disabled", p.className = "disabled", c.className = "disabled", l.className = "disabled", d.className = "disabled") : (h.className = "", a.className = "", p.className = "", c.className = "", l.className = "", d.className = ""), e.currentNodes || e.selectNode(w), b.hidden = !1, k.mousedown && (k.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
606
+ w.parentElement.tagName === "ME-ROOT" ? x = !0 : x = !1, x ? (d.className = "disabled", h.className = "disabled", p.className = "disabled", c.className = "disabled", l.className = "disabled", a.className = "disabled") : (d.className = "", h.className = "", p.className = "", c.className = "", l.className = "", a.className = ""), e.currentNodes || e.selectNode(w), b.hidden = !1, k.mousedown && (k.mousedown = !1), f.style.top = "", f.style.bottom = "", f.style.left = "", f.style.right = "";
602
607
  const _ = f.getBoundingClientRect(), M = f.offsetHeight, j = f.offsetWidth, z = y.clientY - _.top, U = y.clientX - _.left;
603
608
  M + z > window.innerHeight ? (f.style.top = "", f.style.bottom = "0px") : (f.style.bottom = "", f.style.top = z + 15 + "px"), j + U > window.innerWidth ? (f.style.left = "", f.style.right = "0px") : (f.style.right = "", f.style.left = U + 10 + "px");
604
609
  }
@@ -610,13 +615,13 @@ function gt(e, t) {
610
615
  e.insertParent(), b.hidden = !0;
611
616
  }, l.onclick = () => {
612
617
  x || (e.insertSibling("after"), b.hidden = !0);
613
- }, d.onclick = () => {
618
+ }, a.onclick = () => {
614
619
  x || (e.removeNode(), b.hidden = !0);
615
- }, h.onclick = () => {
620
+ }, d.onclick = () => {
616
621
  x || (e.focusNode(e.currentNode), b.hidden = !0);
617
622
  }, u.onclick = () => {
618
623
  e.cancelFocus(), b.hidden = !0;
619
- }, a.onclick = () => {
624
+ }, h.onclick = () => {
620
625
  x || (e.moveUpNode(), b.hidden = !0);
621
626
  }, p.onclick = () => {
622
627
  x || (e.moveDownNode(), b.hidden = !0);
@@ -639,7 +644,7 @@ function gt(e, t) {
639
644
  return m.onclick = () => S(), v.onclick = () => S({ bidirectional: !0 }), g.onclick = () => {
640
645
  b.hidden = !0, e.createSummary(), e.unselectNodes();
641
646
  }, () => {
642
- r.onclick = null, c.onclick = null, l.onclick = null, d.onclick = null, h.onclick = null, u.onclick = null, a.onclick = null, p.onclick = null, m.onclick = null, g.onclick = null, b.onclick = null, e.container.oncontextmenu = null;
647
+ r.onclick = null, c.onclick = null, l.onclick = null, a.onclick = null, d.onclick = null, u.onclick = null, h.onclick = null, p.onclick = null, m.onclick = null, g.onclick = null, b.onclick = null, e.container.oncontextmenu = null;
643
648
  };
644
649
  }
645
650
  const vt = (e) => {
@@ -792,16 +797,16 @@ function St(e) {
792
797
  let t = null, n = null, o = null;
793
798
  const i = Ct(e), s = 12;
794
799
  e.map.addEventListener("dragstart", (r) => {
795
- var l, d;
800
+ var l, a;
796
801
  const c = r.target;
797
802
  if ((c == null ? void 0 : c.tagName) !== "ME-TPC") {
798
803
  r.preventDefault();
799
804
  return;
800
805
  }
801
806
  (l = e.currentNodes) != null && l.includes(c) || (e.unselectNodes(), e.selectNode(c)), e.currentNodes ? (t = e.currentNodes, i.innerHTML = e.currentNodes.length + " nodes") : (t = [c], i.innerHTML = c.innerHTML);
802
- for (const h of t)
803
- h.parentElement.parentElement.style.opacity = "0.5";
804
- (d = r.dataTransfer) == null || d.setDragImage(i, 0, 0), k.clear();
807
+ for (const d of t)
808
+ d.parentElement.parentElement.style.opacity = "0.5";
809
+ (a = r.dataTransfer) == null || a.setDragImage(i, 0, 0), k.clear();
805
810
  }), e.map.addEventListener("dragend", async (r) => {
806
811
  if (!t)
807
812
  return;
@@ -824,8 +829,8 @@ function St(e) {
824
829
  const l = ue.elementFromPoint(r.clientX, r.clientY + s);
825
830
  if (Le(l, t)) {
826
831
  o = l;
827
- const d = l.getBoundingClientRect().y;
828
- r.clientY < d ? n = "before" : n = "in";
832
+ const a = l.getBoundingClientRect().y;
833
+ r.clientY < a ? n = "before" : n = "in";
829
834
  } else
830
835
  n = o = null;
831
836
  }
@@ -874,7 +879,7 @@ function Lt(e) {
874
879
  o = i.next, e.refresh(i.next), i.currentObject.type === "node" ? e.selectNode(C(i.currentObject.value)) : i.currentObject.type === "nodes" && e.selectNodes(i.currentObject.value.map((s) => C(s)));
875
880
  }
876
881
  }, e.map.addEventListener("keydown", (i) => {
877
- (i.metaKey || i.ctrlKey) && i.shiftKey && i.key === "Z" ? e.redo() : (i.metaKey || i.ctrlKey) && i.key === "z" && e.undo();
882
+ (i.metaKey || i.ctrlKey) && (i.shiftKey && i.key === "Z" || i.key === "y") ? e.redo() : (i.metaKey || i.ctrlKey) && i.key === "z" && e.undo();
878
883
  });
879
884
  }
880
885
  const q = (e, t) => {
@@ -940,14 +945,14 @@ function O({ style: e }, t, n) {
940
945
  else
941
946
  n !== void 0 && (e[t] = Me(n));
942
947
  }
943
- const Ie = (e) => (t, n, o, i = {}) => {
948
+ const Ve = (e) => (t, n, o, i = {}) => {
944
949
  t instanceof HTMLCollection || t instanceof NodeList ? t = Array.from(t) : Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
945
950
  for (const s of t)
946
951
  if (s)
947
952
  for (const r of n)
948
953
  s[e](r, o, { capture: !1, ...i });
949
954
  return [t, n, o, i];
950
- }, I = Ie("addEventListener"), H = Ie("removeEventListener"), te = (e) => {
955
+ }, V = Ve("addEventListener"), H = Ve("removeEventListener"), te = (e) => {
951
956
  var t;
952
957
  const { clientX: n, clientY: o, target: i } = ((t = e.touches) == null ? void 0 : t[0]) ?? e;
953
958
  return { x: n, y: o, target: i };
@@ -964,7 +969,7 @@ function ke(e, t, n = "touch") {
964
969
  return e.right >= t.left && e.left <= t.right && e.bottom >= t.top && e.top <= t.bottom;
965
970
  }
966
971
  }
967
- function V(e, t = document) {
972
+ function I(e, t = document) {
968
973
  const n = Array.isArray(e) ? e : [e];
969
974
  let o = [];
970
975
  for (let i = 0, s = n.length; i < s; i++) {
@@ -1007,7 +1012,7 @@ function Pt(e, t) {
1007
1012
  return !1;
1008
1013
  }
1009
1014
  const { abs: F, max: Te, min: Ae, ceil: $e } = Math;
1010
- class Ve extends jt {
1015
+ class Ie extends jt {
1011
1016
  constructor(t) {
1012
1017
  var n, o, i, s, r;
1013
1018
  super(), E(this, "_options"), E(this, "_selection", {
@@ -1057,10 +1062,10 @@ class Ve extends jt {
1057
1062
  }
1058
1063
  }
1059
1064
  };
1060
- for (const h of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
1061
- typeof this[h] == "function" && (this[h] = this[h].bind(this));
1062
- const { document: c, selectionAreaClass: l, selectionContainerClass: d } = this._options;
1063
- this._area = c.createElement("div"), this._clippingElement = c.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(l), d && this._clippingElement.classList.add(d), O(this._area, {
1065
+ for (const d of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
1066
+ typeof this[d] == "function" && (this[d] = this[d].bind(this));
1067
+ const { document: c, selectionAreaClass: l, selectionContainerClass: a } = this._options;
1068
+ this._area = c.createElement("div"), this._clippingElement = c.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(l), a && this._clippingElement.classList.add(a), O(this._area, {
1064
1069
  willChange: "top, left, bottom, right, width, height",
1065
1070
  top: 0,
1066
1071
  left: 0,
@@ -1072,12 +1077,12 @@ class Ve extends jt {
1072
1077
  // https://stackoverflow.com/a/38268846
1073
1078
  pointerEvents: "none",
1074
1079
  zIndex: "1"
1075
- }), this._frame = Ht((h) => {
1076
- this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", h), this._redrawSelectionArea();
1080
+ }), this._frame = Ht((d) => {
1081
+ this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", d), this._redrawSelectionArea();
1077
1082
  }), this.enable();
1078
1083
  }
1079
1084
  _bindStartEvents(t = !0) {
1080
- const { document: n, features: o } = this._options, i = t ? I : H;
1085
+ const { document: n, features: o } = this._options, i = t ? V : H;
1081
1086
  i(n, "mousedown", this._onTapStart), o.touch && i(n, "touchstart", this._onTapStart, {
1082
1087
  passive: !1
1083
1088
  });
@@ -1086,16 +1091,16 @@ class Ve extends jt {
1086
1091
  const { x: o, y: i, target: s } = te(t), { _options: r } = this, { document: c } = this._options, l = s.getBoundingClientRect();
1087
1092
  if (t instanceof MouseEvent && !Pt(t, r.behaviour.triggers))
1088
1093
  return;
1089
- const d = V(r.startAreas, r.document), h = V(r.boundaries, r.document);
1090
- this._targetElement = h.find(
1094
+ const a = I(r.startAreas, r.document), d = I(r.boundaries, r.document);
1095
+ this._targetElement = d.find(
1091
1096
  (p) => ke(p.getBoundingClientRect(), l)
1092
1097
  );
1093
1098
  const u = t.composedPath();
1094
- if (!this._targetElement || !d.find((p) => u.includes(p)) || !h.find((p) => u.includes(p)) || !n && this._emitEvent("beforestart", t) === !1)
1099
+ if (!this._targetElement || !a.find((p) => u.includes(p)) || !d.find((p) => u.includes(p)) || !n && this._emitEvent("beforestart", t) === !1)
1095
1100
  return;
1096
1101
  this._areaLocation = { x1: o, y1: i, x2: 0, y2: 0 };
1097
- const a = c.scrollingElement ?? c.body;
1098
- this._scrollDelta = { x: a.scrollLeft, y: a.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), I(c, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), I(c, ["mouseup", "touchcancel", "touchend"], this._onTapStop), I(c, "scroll", this._onScroll);
1102
+ const h = c.scrollingElement ?? c.body;
1103
+ this._scrollDelta = { x: h.scrollLeft, y: h.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), V(c, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), V(c, ["mouseup", "touchcancel", "touchend"], this._onTapStop), V(c, "scroll", this._onScroll);
1099
1104
  }
1100
1105
  _onSingleTap(t) {
1101
1106
  const { singleTap: { intersect: n }, range: o } = this._options.features, i = te(t);
@@ -1105,9 +1110,9 @@ class Ve extends jt {
1105
1110
  else if (n === "touch") {
1106
1111
  this.resolveSelectables();
1107
1112
  const { x: c, y: l } = i;
1108
- s = this._selectables.find((d) => {
1109
- const { right: h, left: u, top: a, bottom: p } = d.getBoundingClientRect();
1110
- return c < h && c > u && l < p && l > a;
1113
+ s = this._selectables.find((a) => {
1114
+ const { right: d, left: u, top: h, bottom: p } = a.getBoundingClientRect();
1115
+ return c < d && c > u && l < p && l > h;
1111
1116
  });
1112
1117
  }
1113
1118
  if (!s)
@@ -1119,10 +1124,10 @@ class Ve extends jt {
1119
1124
  }
1120
1125
  const { stored: r } = this._selection;
1121
1126
  if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
1122
- const c = this._latestElement, [l, d] = c.compareDocumentPosition(s) & 4 ? [s, c] : [c, s], h = [...this._selectables.filter(
1123
- (u) => u.compareDocumentPosition(l) & 4 && u.compareDocumentPosition(d) & 2
1124
- ), l, d];
1125
- this.select(h), this._latestElement = c;
1127
+ const c = this._latestElement, [l, a] = c.compareDocumentPosition(s) & 4 ? [s, c] : [c, s], d = [...this._selectables.filter(
1128
+ (u) => u.compareDocumentPosition(l) & 4 && u.compareDocumentPosition(a) & 2
1129
+ ), l, a];
1130
+ this.select(d), this._latestElement = c;
1126
1131
  } else
1127
1132
  r.includes(s) && (r.length === 1 || t.ctrlKey || r.every((c) => this._selection.stored.includes(c))) ? this.deselect(s) : (this.select(s), this._latestElement = s);
1128
1133
  }
@@ -1137,7 +1142,7 @@ class Ve extends jt {
1137
1142
  H(o, ["mouseup", "touchcancel", "touchend"], this._onTapStop);
1138
1143
  return;
1139
1144
  }
1140
- I(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), O(this._area, "display", "block"), V(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 && (I(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((d) => this._targetElement.contains(d))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1145
+ V(o, ["mousemove", "touchmove"], this._onTapMove, { passive: !1 }), O(this._area, "display", "block"), I(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 && (V(this._targetElement, "wheel", this._manualScroll, { passive: !1 }), this._selectables = this._selectables.filter((a) => this._targetElement.contains(a))), this._setupSelectionArea(), this._emitEvent("start", t), this._onTapMove(t);
1141
1146
  }
1142
1147
  this._handleMoveEvent(t);
1143
1148
  }
@@ -1162,18 +1167,18 @@ class Ve extends jt {
1162
1167
  }));
1163
1168
  }
1164
1169
  _onTapMove(t) {
1165
- const { x: n, y: o } = te(t), { _scrollSpeed: i, _areaLocation: s, _options: r, _frame: c } = this, { speedDivider: l } = r.behaviour.scrolling, d = this._targetElement;
1170
+ const { x: n, y: o } = te(t), { _scrollSpeed: i, _areaLocation: s, _options: r, _frame: c } = this, { speedDivider: l } = r.behaviour.scrolling, a = this._targetElement;
1166
1171
  if (s.x2 = n, s.y2 = o, this._scrollAvailable && !this._scrollingActive && (i.y || i.x)) {
1167
1172
  this._scrollingActive = !0;
1168
- const h = () => {
1173
+ const d = () => {
1169
1174
  if (!i.x && !i.y) {
1170
1175
  this._scrollingActive = !1;
1171
1176
  return;
1172
1177
  }
1173
- const { scrollTop: u, scrollLeft: a } = d;
1174
- i.y && (d.scrollTop += $e(i.y / l), s.y1 -= d.scrollTop - u), i.x && (d.scrollLeft += $e(i.x / l), s.x1 -= d.scrollLeft - a), c.next(t), requestAnimationFrame(h);
1178
+ const { scrollTop: u, scrollLeft: h } = a;
1179
+ i.y && (a.scrollTop += $e(i.y / l), s.y1 -= a.scrollTop - u), i.x && (a.scrollLeft += $e(i.x / l), s.x1 -= a.scrollLeft - h), c.next(t), requestAnimationFrame(d);
1175
1180
  };
1176
- requestAnimationFrame(h);
1181
+ requestAnimationFrame(d);
1177
1182
  } else
1178
1183
  c.next(t);
1179
1184
  this._handleMoveEvent(t);
@@ -1191,10 +1196,10 @@ class Ve extends jt {
1191
1196
  this._scrollSpeed.y += o * n, this._scrollSpeed.x += i * n, this._onTapMove(t), t.preventDefault();
1192
1197
  }
1193
1198
  _recalculateSelectionAreaRect() {
1194
- const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: i, _options: s } = this, { scrollTop: r, scrollHeight: c, clientHeight: l, scrollLeft: d, scrollWidth: h, clientWidth: u } = i, a = this._targetRect, { x1: p, y1: m } = n;
1199
+ const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: i, _options: s } = this, { scrollTop: r, scrollHeight: c, clientHeight: l, scrollLeft: a, scrollWidth: d, clientWidth: u } = i, h = this._targetRect, { x1: p, y1: m } = n;
1195
1200
  let { x2: v, y2: g } = n;
1196
1201
  const { behaviour: { scrolling: { startScrollMargins: f } } } = s;
1197
- v < a.left + f.x ? (t.x = d ? -F(a.left - v + f.x) : 0, v = v < a.left ? a.left : v) : v > a.right - f.x ? (t.x = h - d - u ? F(a.left + a.width - v - f.x) : 0, v = v > a.right ? a.right : v) : t.x = 0, g < a.top + f.y ? (t.y = r ? -F(a.top - g + f.y) : 0, g = g < a.top ? a.top : g) : g > a.bottom - f.y ? (t.y = c - r - l ? F(a.top + a.height - g - f.y) : 0, g = g > a.bottom ? a.bottom : g) : t.y = 0;
1202
+ v < h.left + f.x ? (t.x = a ? -F(h.left - v + f.x) : 0, v = v < h.left ? h.left : v) : v > h.right - f.x ? (t.x = d - a - u ? F(h.left + h.width - v - f.x) : 0, v = v > h.right ? h.right : v) : t.x = 0, g < h.top + f.y ? (t.y = r ? -F(h.top - g + f.y) : 0, g = g < h.top ? h.top : g) : g > h.bottom - f.y ? (t.y = c - r - l ? F(h.top + h.height - g - f.y) : 0, g = g > h.bottom ? h.bottom : g) : t.y = 0;
1198
1203
  const b = Ae(p, v), x = Ae(m, g), S = Te(p, v), y = Te(m, g);
1199
1204
  o.x = b, o.y = x, o.width = S - b, o.height = y - x;
1200
1205
  }
@@ -1208,29 +1213,29 @@ class Ve extends jt {
1208
1213
  H(i, ["mousemove", "touchmove"], this._delayedTapMove), H(i, ["touchmove", "mousemove"], this._onTapMove), H(i, ["mouseup", "touchcancel", "touchend"], this._onTapStop), H(i, "scroll", this._onScroll), this._keepSelection(), t && r && s.singleTap.allow ? this._onSingleTap(t) : !r && !n && (this._updateElementSelection(), this._emitEvent("stop", t)), this._scrollSpeed.x = 0, this._scrollSpeed.y = 0, H(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), O(this._area, "display", "none");
1209
1214
  }
1210
1215
  _updateElementSelection() {
1211
- const { _selectables: t, _options: n, _selection: o, _areaRect: i } = this, { stored: s, selected: r, touched: c } = o, { intersect: l, overlap: d } = n.behaviour, h = d === "invert", u = [], a = [], p = [];
1216
+ const { _selectables: t, _options: n, _selection: o, _areaRect: i } = this, { stored: s, selected: r, touched: c } = o, { intersect: l, overlap: a } = n.behaviour, d = a === "invert", u = [], h = [], p = [];
1212
1217
  for (let v = 0; v < t.length; v++) {
1213
1218
  const g = t[v];
1214
1219
  if (ke(i, g.getBoundingClientRect(), l)) {
1215
1220
  if (r.includes(g))
1216
1221
  s.includes(g) && !c.includes(g) && c.push(g);
1217
- else if (h && s.includes(g)) {
1222
+ else if (d && s.includes(g)) {
1218
1223
  p.push(g);
1219
1224
  continue;
1220
1225
  } else
1221
- a.push(g);
1226
+ h.push(g);
1222
1227
  u.push(g);
1223
1228
  }
1224
1229
  }
1225
- h && a.push(...s.filter((v) => !r.includes(v)));
1226
- const m = d === "keep";
1230
+ d && h.push(...s.filter((v) => !r.includes(v)));
1231
+ const m = a === "keep";
1227
1232
  for (let v = 0; v < r.length; v++) {
1228
1233
  const g = r[v];
1229
1234
  !u.includes(g) && !// Check if user wants to keep previously selected elements, e.g.
1230
1235
  // not make them part of the current selection as soon as they're touched.
1231
1236
  (m && s.includes(g)) && p.push(g);
1232
1237
  }
1233
- o.selected = u, o.changed = { added: a, removed: p }, this._latestElement = void 0;
1238
+ o.selected = u, o.changed = { added: h, removed: p }, this._latestElement = void 0;
1234
1239
  }
1235
1240
  _emitEvent(t, n) {
1236
1241
  return this.emit(t, {
@@ -1281,7 +1286,7 @@ class Ve extends jt {
1281
1286
  * Will update everything which can be selected.
1282
1287
  */
1283
1288
  resolveSelectables() {
1284
- this._selectables = V(this._options.selectables, this._options.document);
1289
+ this._selectables = I(this._options.selectables, this._options.document);
1285
1290
  }
1286
1291
  /**
1287
1292
  * Same as deselect, but for all elements currently selected.
@@ -1331,7 +1336,7 @@ class Ve extends jt {
1331
1336
  * @param quiet - If this should not trigger the move event
1332
1337
  */
1333
1338
  select(t, n = !1) {
1334
- const { changed: o, selected: i, stored: s } = this._selection, r = V(t, this._options.document).filter(
1339
+ const { changed: o, selected: i, stored: s } = this._selection, r = I(t, this._options.document).filter(
1335
1340
  (c) => !i.includes(c) && !s.includes(c)
1336
1341
  );
1337
1342
  return s.push(...r), i.push(...r), o.added.push(...r), o.removed = [], this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)), r;
@@ -1342,7 +1347,7 @@ class Ve extends jt {
1342
1347
  * @param quiet - If this should not trigger the move event
1343
1348
  */
1344
1349
  deselect(t, n = !1) {
1345
- const { selected: o, stored: i, changed: s } = this._selection, r = V(t, this._options.document).filter(
1350
+ const { selected: o, stored: i, changed: s } = this._selection, r = I(t, this._options.document).filter(
1346
1351
  (c) => o.includes(c) || i.includes(c)
1347
1352
  );
1348
1353
  r.length && (this._selection.stored = i.filter((c) => !r.includes(c)), this._selection.selected = o.filter((c) => !r.includes(c)), this._selection.changed.added = [], this._selection.changed.removed.push(
@@ -1350,9 +1355,9 @@ class Ve extends jt {
1350
1355
  ), this._latestElement = void 0, n || (this._emitEvent("move", null), this._emitEvent("stop", null)));
1351
1356
  }
1352
1357
  }
1353
- E(Ve, "version", "3.5.1");
1358
+ E(Ie, "version", "3.5.1");
1354
1359
  function Bt(e) {
1355
- const t = e.mouseSelectionButton === 2 ? [2] : [0], n = new Ve({
1360
+ const t = e.mouseSelectionButton === 2 ? [2] : [0], n = new Ie({
1356
1361
  selectables: [".map-container me-tpc"],
1357
1362
  boundaries: [e.container],
1358
1363
  container: e.selectionContainer,
@@ -1400,12 +1405,12 @@ function Bt(e) {
1400
1405
  const Rt = function(e, t = !0) {
1401
1406
  this.theme = e;
1402
1407
  const n = this.theme.cssVar, o = Object.keys(n);
1403
- this.mindElixirBox.style.cssText = "";
1408
+ this.container.style.cssText = "";
1404
1409
  for (let i = 0; i < o.length; i++) {
1405
1410
  const s = o[i];
1406
- this.mindElixirBox.style.setProperty(s, n[s]);
1411
+ this.container.style.setProperty(s, n[s]);
1407
1412
  }
1408
- e.cssVar["--gap"] || this.mindElixirBox.style.setProperty("--gap", "30px"), t && this.refresh();
1413
+ e.cssVar["--gap"] || this.container.style.setProperty("--gap", "30px"), t && this.refresh();
1409
1414
  }, W = (e) => {
1410
1415
  var o;
1411
1416
  const t = (o = e.parent) == null ? void 0 : o.children, n = (t == null ? void 0 : t.indexOf(e)) ?? 0;
@@ -1433,7 +1438,7 @@ function qt(e, t, n) {
1433
1438
  const { siblings: o, index: i } = W(n);
1434
1439
  o !== void 0 && (t === "before" ? o.splice(i, 0, e) : o.splice(i + 1, 0, e));
1435
1440
  }
1436
- function It(e, t) {
1441
+ function Vt(e, t) {
1437
1442
  const { siblings: n, index: o } = W(e);
1438
1443
  n !== void 0 && (n[o] = t, t.children = [e]);
1439
1444
  }
@@ -1448,7 +1453,7 @@ function Ke(e, t, n) {
1448
1453
  e === "before" ? o.splice(i, 0, t) : o.splice(i + 1, 0, t);
1449
1454
  }
1450
1455
  }
1451
- const Vt = function(e, t) {
1456
+ const It = function(e, t) {
1452
1457
  var n, o;
1453
1458
  if (e === $)
1454
1459
  return $;
@@ -1470,7 +1475,7 @@ const Vt = function(e, t) {
1470
1475
  }
1471
1476
  e.linkDiv(n.offsetParent);
1472
1477
  } else
1473
- i.tagName === "ME-ROOT" && (Vt(e.direction, o.nodeObj) === $ ? (s = e.container.querySelector(".lhs")) == null || s.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1478
+ i.tagName === "ME-ROOT" && (It(e.direction, o.nodeObj) === $ ? (s = e.container.querySelector(".lhs")) == null || s.appendChild(n) : (r = e.container.querySelector(".rhs")) == null || r.appendChild(n), e.linkDiv());
1474
1479
  }, Ue = function(e, t) {
1475
1480
  const n = e.parentNode;
1476
1481
  if (t === 0) {
@@ -1503,13 +1508,13 @@ const Vt = function(e, t) {
1503
1508
  const { grp: s, top: r } = e.createWrapper(i);
1504
1509
  return We(e, t, s), { newTop: r, newNodeObj: i };
1505
1510
  }, Wt = function(e, t, n) {
1506
- var d, h, u, a;
1511
+ var a, d, u, h;
1507
1512
  const o = t || this.currentNode;
1508
1513
  if (!o)
1509
1514
  return;
1510
1515
  const i = o.nodeObj;
1511
1516
  if (i.parent) {
1512
- if (!((d = i.parent) != null && d.parent) && ((u = (h = i.parent) == null ? void 0 : h.children) == null ? void 0 : u.length) === 1) {
1517
+ if (!((a = i.parent) != null && a.parent) && ((u = (d = i.parent) == null ? void 0 : d.children) == null ? void 0 : u.length) === 1) {
1513
1518
  this.addChild(C(i.parent.id), n);
1514
1519
  return;
1515
1520
  }
@@ -1518,7 +1523,7 @@ const Vt = function(e, t) {
1518
1523
  return;
1519
1524
  }
1520
1525
  const s = n || this.generateNewObj();
1521
- if (!((a = i.parent) != null && a.parent)) {
1526
+ if (!((h = i.parent) != null && h.parent)) {
1522
1527
  const p = o.closest("me-main").className === L.LHS ? $ : P;
1523
1528
  s.direction = p;
1524
1529
  }
@@ -1538,7 +1543,7 @@ const Vt = function(e, t) {
1538
1543
  if (!o.parent)
1539
1544
  return;
1540
1545
  const i = t || this.generateNewObj();
1541
- It(o, i), B(this.nodeData);
1546
+ Vt(o, i), B(this.nodeData);
1542
1547
  const s = n.parentElement.parentElement, { grp: r, top: c } = this.createWrapper(i, !0);
1543
1548
  c.appendChild(ve(!0)), s.insertAdjacentElement("afterend", r);
1544
1549
  const l = this.createChildren([s]);
@@ -1780,7 +1785,7 @@ const cn = function(e, t, n) {
1780
1785
  const o = e.parentNode, i = o.children[1];
1781
1786
  if (i.expanded = n.expanded, i.className = n.expanded ? "minus" : "", Q(e), n.expanded) {
1782
1787
  const l = this.createChildren(
1783
- n.children.map((d) => this.createWrapper(d).grp)
1788
+ n.children.map((a) => this.createWrapper(a).grp)
1784
1789
  );
1785
1790
  o.parentNode.appendChild(l);
1786
1791
  } else
@@ -1843,14 +1848,14 @@ const cn = function(e, t, n) {
1843
1848
  create: kn
1844
1849
  };
1845
1850
  function le(e, t, n) {
1846
- const { offsetLeft: o, offsetTop: i } = R(e.nodes, t), s = t.offsetWidth, r = t.offsetHeight, c = o + s / 2, l = i + r / 2, d = c + n.x, h = l + n.y;
1851
+ const { offsetLeft: o, offsetTop: i } = R(e.nodes, t), s = t.offsetWidth, r = t.offsetHeight, c = o + s / 2, l = i + r / 2, a = c + n.x, d = l + n.y;
1847
1852
  return {
1848
1853
  w: s,
1849
1854
  h: r,
1850
1855
  cx: c,
1851
1856
  cy: l,
1852
- ctrlX: d,
1853
- ctrlY: h
1857
+ ctrlX: a,
1858
+ ctrlY: d
1854
1859
  };
1855
1860
  }
1856
1861
  function K(e) {
@@ -1873,13 +1878,13 @@ const Tn = function(e, t, n, o) {
1873
1878
  if (!t || !n)
1874
1879
  return;
1875
1880
  performance.now();
1876
- const s = le(e, t, o.delta1), r = le(e, n, o.delta2), { x: c, y: l } = K(s), { ctrlX: d, ctrlY: h } = s, { ctrlX: u, ctrlY: a } = r, { x: p, y: m } = K(r), v = re(u, a, p, m), g = `M ${v.x1} ${v.y1} L ${p} ${m} L ${v.x2} ${v.y2}`;
1881
+ const s = le(e, t, o.delta1), r = le(e, n, o.delta2), { x: c, y: l } = K(s), { ctrlX: a, ctrlY: d } = s, { ctrlX: u, ctrlY: h } = r, { x: p, y: m } = K(r), v = re(u, h, p, m), g = `M ${v.x1} ${v.y1} L ${p} ${m} L ${v.x2} ${v.y2}`;
1877
1882
  let f = "";
1878
1883
  if (o.bidirectional) {
1879
- const w = re(d, h, c, l);
1884
+ const w = re(a, d, c, l);
1880
1885
  f = `M ${w.x1} ${w.y1} L ${c} ${l} L ${w.x2} ${w.y2}`;
1881
1886
  }
1882
- const b = pt(`M ${c} ${l} C ${d} ${h} ${u} ${a} ${p} ${m}`, g, f), x = c / 8 + d * 3 / 8 + u * 3 / 8 + p / 8, S = l / 8 + h * 3 / 8 + a * 3 / 8 + m / 8, y = Tn(o.label, x, S, e.theme.cssVar["--color"]);
1887
+ const b = pt(`M ${c} ${l} C ${a} ${d} ${u} ${h} ${p} ${m}`, g, f), x = c / 8 + a * 3 / 8 + u * 3 / 8 + p / 8, S = l / 8 + d * 3 / 8 + h * 3 / 8 + m / 8, y = Tn(o.label, x, S, e.theme.cssVar["--color"]);
1883
1888
  b.appendChild(y), b.arrowObj = o, b.dataset.linkid = o.id, e.linkSvgGroup.appendChild(b), i || (e.arrows.push(o), e.currentArrow = b, Qe(e, o, s, r)), performance.now();
1884
1889
  }, An = function(e, t, n = {}) {
1885
1890
  const o = {
@@ -1924,25 +1929,25 @@ const Tn = function(e, t, n, o) {
1924
1929
  (t = e.helper1) == null || t.destory(e.map), (n = e.helper2) == null || n.destory(e.map), e.linkController.style.display = "none", e.P2.style.display = "none", e.P3.style.display = "none";
1925
1930
  }, Qe = function(e, t, n, o) {
1926
1931
  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);
1927
- let { x: i, y: s } = K(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: d } = o, { x: h, y: u } = K(o);
1928
- e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${l}px;`, N(e.line1, {
1932
+ let { x: i, y: s } = K(n), { ctrlX: r, ctrlY: c } = n, { ctrlX: l, ctrlY: a } = o, { x: d, y: u } = K(o);
1933
+ e.P2.style.cssText = `top:${c}px;left:${r}px;`, e.P3.style.cssText = `top:${a}px;left:${l}px;`, N(e.line1, {
1929
1934
  x1: i + "",
1930
1935
  y1: s + "",
1931
1936
  x2: r + "",
1932
1937
  y2: c + ""
1933
1938
  }), N(e.line2, {
1934
1939
  x1: l + "",
1935
- y1: d + "",
1936
- x2: h + "",
1940
+ y1: a + "",
1941
+ x2: d + "",
1937
1942
  y2: u + ""
1938
- }), e.helper1 = je.create(e.P2), e.helper2 = je.create(e.P3), e.helper1.init(e.map, (a, p) => {
1943
+ }), e.helper1 = je.create(e.P2), e.helper2 = je.create(e.P3), e.helper1.init(e.map, (h, p) => {
1939
1944
  if (!e.currentArrow)
1940
1945
  return;
1941
- r = r + a / e.scaleVal, c = c + p / e.scaleVal;
1946
+ r = r + h / e.scaleVal, c = c + p / e.scaleVal;
1942
1947
  const m = K({ ...n, ctrlX: r, ctrlY: c });
1943
1948
  i = m.x, s = m.y;
1944
- const v = i / 8 + r * 3 / 8 + l * 3 / 8 + h / 8, g = s / 8 + c * 3 / 8 + d * 3 / 8 + u / 8;
1945
- if (e.P2.style.top = c + "px", e.P2.style.left = r + "px", e.currentArrow.children[0].setAttribute("d", `M ${i} ${s} C ${r} ${c} ${l} ${d} ${h} ${u}`), t.bidirectional) {
1949
+ const v = i / 8 + r * 3 / 8 + l * 3 / 8 + d / 8, g = s / 8 + c * 3 / 8 + a * 3 / 8 + u / 8;
1950
+ if (e.P2.style.top = c + "px", e.P2.style.left = r + "px", e.currentArrow.children[0].setAttribute("d", `M ${i} ${s} C ${r} ${c} ${l} ${a} ${d} ${u}`), t.bidirectional) {
1946
1951
  const f = re(r, c, i, s);
1947
1952
  e.currentArrow.children[2].setAttribute("d", `M ${f.x1} ${f.y1} L ${i} ${s} L ${f.x2} ${f.y2}`);
1948
1953
  }
@@ -1955,22 +1960,22 @@ const Tn = function(e, t, n, o) {
1955
1960
  x2: r + "",
1956
1961
  y2: c + ""
1957
1962
  }), t.delta1.x = r - n.cx, t.delta1.y = c - n.cy, e.bus.fire("updateArrowDelta", t);
1958
- }), e.helper2.init(e.map, (a, p) => {
1963
+ }), e.helper2.init(e.map, (h, p) => {
1959
1964
  if (!e.currentArrow)
1960
1965
  return;
1961
- l = l + a / e.scaleVal, d = d + p / e.scaleVal;
1962
- const m = K({ ...o, ctrlX: l, ctrlY: d });
1963
- h = m.x, u = m.y;
1964
- const v = i / 8 + r * 3 / 8 + l * 3 / 8 + h / 8, g = s / 8 + c * 3 / 8 + d * 3 / 8 + u / 8, f = re(l, d, h, u);
1965
- e.P3.style.top = d + "px", e.P3.style.left = l + "px", e.currentArrow.children[0].setAttribute("d", `M ${i} ${s} C ${r} ${c} ${l} ${d} ${h} ${u}`), e.currentArrow.children[1].setAttribute("d", `M ${f.x1} ${f.y1} L ${h} ${u} L ${f.x2} ${f.y2}`), N(e.currentArrow.children[3], {
1966
+ l = l + h / e.scaleVal, a = a + p / e.scaleVal;
1967
+ const m = K({ ...o, ctrlX: l, ctrlY: a });
1968
+ d = m.x, u = m.y;
1969
+ const v = i / 8 + r * 3 / 8 + l * 3 / 8 + d / 8, g = s / 8 + c * 3 / 8 + a * 3 / 8 + u / 8, f = re(l, a, d, u);
1970
+ e.P3.style.top = a + "px", e.P3.style.left = l + "px", e.currentArrow.children[0].setAttribute("d", `M ${i} ${s} C ${r} ${c} ${l} ${a} ${d} ${u}`), e.currentArrow.children[1].setAttribute("d", `M ${f.x1} ${f.y1} L ${d} ${u} L ${f.x2} ${f.y2}`), N(e.currentArrow.children[3], {
1966
1971
  x: v + "",
1967
1972
  y: g + ""
1968
1973
  }), N(e.line2, {
1969
1974
  x1: l + "",
1970
- y1: d + "",
1971
- x2: h + "",
1975
+ y1: a + "",
1976
+ x2: d + "",
1972
1977
  y2: u + ""
1973
- }), t.delta2.x = l - o.cx, t.delta2.y = d - o.cy, e.bus.fire("updateArrowDelta", t);
1978
+ }), t.delta2.x = l - o.cx, t.delta2.y = a - o.cy, e.bus.fire("updateArrowDelta", t);
1974
1979
  });
1975
1980
  };
1976
1981
  function On() {
@@ -2010,41 +2015,41 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2010
2015
  tidyArrow: Pn,
2011
2016
  unselectArrow: Dn
2012
2017
  }, Symbol.toStringTag, { value: "Module" })), Rn = function(e) {
2013
- var l, d;
2018
+ var l, a;
2014
2019
  if (e.length === 0)
2015
2020
  throw new Error("No selected node.");
2016
2021
  if (e.length === 1) {
2017
- const h = e[0].nodeObj, u = e[0].nodeObj.parent;
2022
+ const d = e[0].nodeObj, u = e[0].nodeObj.parent;
2018
2023
  if (!u)
2019
2024
  throw new Error("Can not select root node.");
2020
- const a = u.children.findIndex((p) => h === p);
2025
+ const h = u.children.findIndex((p) => d === p);
2021
2026
  return {
2022
2027
  parent: u.id,
2023
- start: a,
2024
- end: a
2028
+ start: h,
2029
+ end: h
2025
2030
  };
2026
2031
  }
2027
2032
  let t = 0;
2028
- const n = e.map((h) => {
2029
- let u = h.nodeObj;
2030
- const a = [];
2033
+ const n = e.map((d) => {
2034
+ let u = d.nodeObj;
2035
+ const h = [];
2031
2036
  for (; u.parent; ) {
2032
2037
  const p = u.parent, m = p.children, v = m == null ? void 0 : m.indexOf(u);
2033
- u = p, a.unshift({ node: u, index: v });
2038
+ u = p, h.unshift({ node: u, index: v });
2034
2039
  }
2035
- return a.length > t && (t = a.length), a;
2040
+ return h.length > t && (t = h.length), h;
2036
2041
  });
2037
2042
  let o = 0;
2038
2043
  e:
2039
2044
  for (; o < t; o++) {
2040
- const h = (l = n[0][o]) == null ? void 0 : l.node;
2045
+ const d = (l = n[0][o]) == null ? void 0 : l.node;
2041
2046
  for (let u = 1; u < n.length; u++)
2042
- if (((d = n[u][o]) == null ? void 0 : d.node) !== h)
2047
+ if (((a = n[u][o]) == null ? void 0 : a.node) !== d)
2043
2048
  break e;
2044
2049
  }
2045
2050
  if (!o)
2046
2051
  throw new Error("Can not select root node.");
2047
- const i = n.map((h) => h[o - 1].index).sort(), s = i[0] || 0, r = i[i.length - 1] || 0, c = n[0][o - 1].node;
2052
+ const i = n.map((d) => d[o - 1].index).sort(), s = i[0] || 0, r = i[i.length - 1] || 0, c = n[0][o - 1].node;
2048
2053
  if (!c.parent)
2049
2054
  throw new Error("Please select nodes in the same main topic.");
2050
2055
  return {
@@ -2078,21 +2083,21 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2078
2083
  return o.parent ? i = n.closest("me-main").className : i = C(o.children[t].id).closest("me-main").className, i;
2079
2084
  }, et = function(e, t) {
2080
2085
  var w;
2081
- const { id: n, text: o, parent: i, start: s, end: r } = t, c = e.nodes, d = C(i).nodeObj, h = qn(t);
2082
- let u = 1 / 0, a = 0, p = 0, m = 0;
2086
+ const { id: n, text: o, parent: i, start: s, end: r } = t, c = e.nodes, a = C(i).nodeObj, d = qn(t);
2087
+ let u = 1 / 0, h = 0, p = 0, m = 0;
2083
2088
  for (let _ = s; _ <= r; _++) {
2084
- const M = (w = d.children) == null ? void 0 : w[_];
2089
+ const M = (w = a.children) == null ? void 0 : w[_];
2085
2090
  if (!M)
2086
2091
  return e.removeSummary(n), null;
2087
2092
  const j = Fn(M.id), { offsetLeft: z, offsetTop: U } = R(c, j), we = s === r ? 10 : 20;
2088
- _ === s && (p = U + we), _ === r && (m = U + j.offsetHeight - we), z < u && (u = z), j.offsetWidth + z > a && (a = j.offsetWidth + z);
2093
+ _ === s && (p = U + we), _ === r && (m = U + j.offsetHeight - we), z < u && (u = z), j.offsetWidth + z > h && (h = j.offsetWidth + z);
2089
2094
  }
2090
2095
  let v, g;
2091
2096
  const f = p + 10, b = m + 10, x = (f + b) / 2, S = e.theme.cssVar["--color"];
2092
- h === L.LHS ? (v = De(`M ${u + 10} ${f} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${x} h -10`, S), g = Oe(o, u - 20, x + 6, "end", S)) : (v = De(`M ${a - 10} ${f} c 5 0 10 5 10 10 L ${a} ${b - 10} c 0 5 -5 10 -10 10 M ${a} ${x} h 10`, S), g = Oe(o, a + 20, x + 6, "start", S));
2097
+ d === L.LHS ? (v = De(`M ${u + 10} ${f} c -5 0 -10 5 -10 10 L ${u} ${b - 10} c 0 5 5 10 10 10 M ${u} ${x} h -10`, S), g = Oe(o, u - 20, x + 6, "end", S)) : (v = De(`M ${h - 10} ${f} c 5 0 10 5 10 10 L ${h} ${b - 10} c 0 5 -5 10 -10 10 M ${h} ${x} h 10`, S), g = Oe(o, h + 20, x + 6, "start", S));
2093
2098
  const y = zn("s-" + n);
2094
2099
  return y.appendChild(v), y.appendChild(g), y.summaryObj = t, e.summarySvg.appendChild(y), y;
2095
- }, In = function() {
2100
+ }, Vn = function() {
2096
2101
  let e = [];
2097
2102
  this.currentNode ? e = [this.currentNode] : this.currentNodes && (e = this.currentNodes);
2098
2103
  const { parent: t, start: n, end: o } = Rn(e), i = { id: Z(), parent: t, start: n, end: o, text: "summary" }, s = et(this, i);
@@ -2100,7 +2105,7 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2100
2105
  name: "createSummary",
2101
2106
  obj: i
2102
2107
  });
2103
- }, Vn = function(e) {
2108
+ }, In = function(e) {
2104
2109
  var n;
2105
2110
  const t = this.summaries.findIndex((o) => o.id === e);
2106
2111
  t > -1 && (this.summaries.splice(t, 1), (n = document.querySelector("#s-" + e)) == null || n.remove()), this.bus.fire("operation", {
@@ -2143,9 +2148,9 @@ const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2143
2148
  });
2144
2149
  }, Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2145
2150
  __proto__: null,
2146
- createSummary: In,
2151
+ createSummary: Vn,
2147
2152
  editSummary: Yn,
2148
- removeSummary: Vn,
2153
+ removeSummary: In,
2149
2154
  renderSummary: Un,
2150
2155
  selectSummary: Kn,
2151
2156
  unselectSummary: Wn
@@ -2167,8 +2172,8 @@ function Zn(e, t, n, o) {
2167
2172
  let s = "";
2168
2173
  return e.text ? s = e.text.textContent : s = e.childNodes[0].textContent, s.split(`
2169
2174
  `).forEach((c, l) => {
2170
- const d = document.createElementNS(A, "text");
2171
- N(d, {
2175
+ const a = document.createElementNS(A, "text");
2176
+ N(a, {
2172
2177
  x: n + parseInt(t.paddingLeft) + "",
2173
2178
  y: o + parseInt(t.paddingTop) + Jn(t.lineHeight, t.fontSize) * (l + 1) + parseFloat(t.fontSize) * (l + 1) + "",
2174
2179
  "text-anchor": "start",
@@ -2176,7 +2181,7 @@ function Zn(e, t, n, o) {
2176
2181
  "font-size": `${t.fontSize}`,
2177
2182
  "font-weight": `${t.fontWeight}`,
2178
2183
  fill: `${t.color}`
2179
- }), d.innerHTML = c, i.appendChild(d);
2184
+ }), a.innerHTML = c, i.appendChild(a);
2180
2185
  }), i;
2181
2186
  }
2182
2187
  function Qn(e, t, n, o) {
@@ -2251,7 +2256,7 @@ function no(e, t) {
2251
2256
  }), s;
2252
2257
  }
2253
2258
  const oe = 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">', io = (e, t = !1) => {
2254
- var u, a, p;
2259
+ var u, h, p;
2255
2260
  const n = e.nodes, o = n.offsetHeight + oe * 2, i = n.offsetWidth + oe * 2, s = Gn(o + "px", i + "px"), r = document.createElementNS(A, "svg"), c = document.createElementNS(A, "rect");
2256
2261
  N(c, {
2257
2262
  x: "0",
@@ -2265,10 +2270,10 @@ const oe = 100, oo = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC
2265
2270
  });
2266
2271
  const l = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
2267
2272
  l && r.appendChild(l);
2268
- const d = (a = n.querySelector(".topiclinks")) == null ? void 0 : a.cloneNode(!0);
2269
- d && r.appendChild(d);
2270
- const h = (p = n.querySelector(".summary")) == null ? void 0 : p.cloneNode(!0);
2271
- return h && r.appendChild(h), n.querySelectorAll("me-tpc").forEach((m) => {
2273
+ const a = (h = n.querySelector(".topiclinks")) == null ? void 0 : h.cloneNode(!0);
2274
+ a && r.appendChild(a);
2275
+ const d = (p = n.querySelector(".summary")) == null ? void 0 : p.cloneNode(!0);
2276
+ return d && r.appendChild(d), n.querySelectorAll("me-tpc").forEach((m) => {
2272
2277
  m.nodeObj.dangerouslySetInnerHTML ? r.appendChild(ne(e, m, !t)) : (r.appendChild(eo(e, m)), r.appendChild(ne(e, m.text, !t)));
2273
2278
  }), n.querySelectorAll(".tags > span").forEach((m) => {
2274
2279
  r.appendChild(ne(e, m));
@@ -2340,7 +2345,7 @@ const uo = {
2340
2345
  ...Xn,
2341
2346
  ...ao,
2342
2347
  init(e) {
2343
- if (!e || !e.nodeData)
2348
+ if (e = JSON.parse(JSON.stringify(e)), !e || !e.nodeData)
2344
2349
  return new Error("MindElixir: `data` is required");
2345
2350
  e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, B(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Tt(this), this.keypress && Et(this), this.editable && Bt(this), this.contextMenu && this.disposable.push(gt(this, this.contextMenuOption)), this.draggable && St(this), this.allowUndo && Lt(this), this.toCenter(), this.layout(), this.linkDiv();
2346
2351
  },
@@ -2349,24 +2354,24 @@ const uo = {
2349
2354
  this.disposable.forEach((t) => t()), this.mindElixirBox && (this.mindElixirBox.innerHTML = ""), this.mindElixirBox = void 0, this.nodeData = void 0, this.arrows = void 0, this.summaries = void 0, this.currentArrow = void 0, this.currentNode = void 0, this.currentNodes = void 0, this.currentSummary = void 0, this.waitCopy = void 0, this.theme = void 0, this.direction = void 0, this.bus = void 0, this.container = void 0, this.map = void 0, this.lines = void 0, this.linkController = void 0, this.linkSvgGroup = void 0, this.P2 = void 0, this.P3 = void 0, this.line1 = void 0, this.line2 = void 0, this.nodes = void 0, (e = this.selection) == null || e.destroy(), this.selection = void 0;
2350
2355
  }
2351
2356
  };
2352
- function fo({ pT: e, pL: t, pW: n, pH: o, cT: i, cL: s, cW: r, cH: c, direction: l, containerHeight: d }) {
2353
- let h = t + n / 2;
2357
+ function fo({ pT: e, pL: t, pW: n, pH: o, cT: i, cL: s, cW: r, cH: c, direction: l, containerHeight: a }) {
2358
+ let d = t + n / 2;
2354
2359
  const u = e + o / 2;
2355
- let a;
2356
- l === L.LHS ? a = s + r : a = s;
2357
- const p = i + c / 2, v = (1 - Math.abs(p - u) / d) * 0.25 * (n / 2);
2358
- return l === L.LHS ? h = h - n / 10 - v : h = h + n / 10 + v, `M ${h} ${u} Q ${h} ${p} ${a} ${p}`;
2360
+ let h;
2361
+ l === L.LHS ? h = s + r : h = s;
2362
+ const p = i + c / 2, v = (1 - Math.abs(p - u) / a) * 0.25 * (n / 2);
2363
+ return l === L.LHS ? d = d - n / 10 - v : d = d + n / 10 + v, `M ${d} ${u} Q ${d} ${p} ${h} ${p}`;
2359
2364
  }
2360
- function po({ pT: e, pL: t, pW: n, pH: o, cT: i, cL: s, cW: r, cH: c, direction: l, isFirst: d }) {
2361
- const h = parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));
2362
- let u = 0, a = 0;
2363
- d ? u = e + o / 2 : u = e + o;
2365
+ function po({ pT: e, pL: t, pW: n, pH: o, cT: i, cL: s, cW: r, cH: c, direction: l, isFirst: a }) {
2366
+ const d = parseInt(this.container.style.getPropertyValue("--gap"));
2367
+ let u = 0, h = 0;
2368
+ a ? u = e + o / 2 : u = e + o;
2364
2369
  const p = i + c;
2365
2370
  let m = 0, v = 0, g = 0;
2366
- const f = Math.abs(u - p) / 300 * h;
2367
- return l === L.LHS ? (g = t, m = g + h, v = g - h, a = s + h, `M ${m} ${u} C ${g} ${u} ${g + f} ${p} ${v} ${p} H ${a}`) : (g = t + n, m = g - h, v = g + h, a = s + r - h, `M ${m} ${u} C ${g} ${u} ${g - f} ${p} ${v} ${p} H ${a}`);
2371
+ const f = Math.abs(u - p) / 300 * d;
2372
+ return l === L.LHS ? (g = t, m = g + d, v = g - d, h = s + d, `M ${m} ${u} C ${g} ${u} ${g + f} ${p} ${v} ${p} H ${h}`) : (g = t + n, m = g - d, v = g + d, h = s + r - d, `M ${m} ${u} C ${g} ${u} ${g - f} ${p} ${v} ${p} H ${h}`);
2368
2373
  }
2369
- const mo = "4.4.0", Y = document;
2374
+ const mo = "4.4.2", Y = document;
2370
2375
  function D({
2371
2376
  el: e,
2372
2377
  direction: t,
@@ -2377,10 +2382,10 @@ function D({
2377
2382
  contextMenuOption: r,
2378
2383
  toolBar: c,
2379
2384
  keypress: l,
2380
- mouseSelectionButton: d,
2381
- selectionContainer: h,
2385
+ mouseSelectionButton: a,
2386
+ selectionContainer: d,
2382
2387
  before: u,
2383
- newTopicName: a,
2388
+ newTopicName: h,
2384
2389
  allowUndo: p,
2385
2390
  generateMainBranch: m,
2386
2391
  generateSubBranch: v,
@@ -2391,7 +2396,7 @@ function D({
2391
2396
  const x = Object.prototype.toString.call(e);
2392
2397
  if (x === "[object HTMLDivElement]" ? b = e : x === "[object String]" && (b = document.querySelector(e)), !b)
2393
2398
  throw new Error("MindElixir: el is not a valid element");
2394
- b.className += " mind-elixir", b.innerHTML = "", this.mindElixirBox = b, this.disposable = [], this.before = u || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = a || "new node", this.editable = i === void 0 ? !0 : i, this.allowUndo = p === void 0 ? !1 : p, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = v || po, this.overflowHidden = g || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
2399
+ b.style.position = "relative", b.innerHTML = "", this.mindElixirBox = b, this.disposable = [], this.before = u || {}, this.locale = n || "en", this.contextMenuOption = r, this.contextMenu = s === void 0 ? !0 : s, this.toolBar = c === void 0 ? !0 : c, this.keypress = l === void 0 ? !0 : l, this.mouseSelectionButton = a || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = h || "new node", this.editable = i === void 0 ? !0 : i, this.allowUndo = p === void 0 ? !1 : p, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = m || fo, this.generateSubBranch = v || po, this.overflowHidden = g || !1, this.bus = st.create(), this.container = Y.createElement("div"), this.selectionContainer = d || this.container, this.container.className = "map-container";
2395
2400
  const S = window.matchMedia("(prefers-color-scheme: dark)");
2396
2401
  this.theme = f || (S.matches ? Be : Pe);
2397
2402
  const y = Y.createElement("div");
@@ -2414,6 +2419,5 @@ D.new = (e) => ({
2414
2419
  });
2415
2420
  D.dragMoveHelper = k;
2416
2421
  export {
2417
- L as DirectionClass,
2418
2422
  D as default
2419
2423
  };