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, 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
4
  if (c && !e.__iconfont__svg__cssinject__) {
@@ -14,8 +14,8 @@
14
14
  i || (i = !0, o());
15
15
  }
16
16
  t = function() {
17
- var h, u, a, f;
18
- (f = document.createElement("div")).innerHTML = l, l = null, (a = f.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 ? (f = h, (a = u.firstChild).parentNode.insertBefore(f, a)) : u.appendChild(h));
17
+ var a, u, h, f;
18
+ (f = document.createElement("div")).innerHTML = l, l = null, (h = f.getElementsByTagName("svg")[0]) && (h.setAttribute("aria-hidden", "true"), h.style.position = "absolute", h.style.width = 0, h.style.height = 0, h.style.overflow = "hidden", a = h, (u = document.body).firstChild ? (f = a, (h = u.firstChild).parentNode.insertBefore(f, h)) : u.appendChild(a));
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, s = e.document, i = !1, (r = function() {
@@ -60,12 +60,12 @@ const j = 0, ee = 1, te = 2, be = {
60
60
  function ce(e) {
61
61
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/"/g, "&quot;");
62
62
  }
63
- const U = function(e, t) {
63
+ const J = function(e, t) {
64
64
  if (t.id === e)
65
65
  return t;
66
66
  if (t.children && t.children.length) {
67
67
  for (let n = 0; n < t.children.length; n++) {
68
- const o = U(e, t.children[n]);
68
+ const o = J(e, t.children[n]);
69
69
  if (o)
70
70
  return o;
71
71
  }
@@ -77,16 +77,16 @@ const U = function(e, t) {
77
77
  for (let n = 0; n < e.children.length; n++)
78
78
  ne(e.children[n], e);
79
79
  };
80
- function J(e, t, n, o) {
80
+ function U(e, t, n, o) {
81
81
  const s = o - t, i = e - n;
82
82
  let r = Math.atan(Math.abs(s) / Math.abs(i)) / 3.14 * 180;
83
83
  i < 0 && s > 0 && (r = 180 - r), i < 0 && s < 0 && (r = 180 + r), i > 0 && s < 0 && (r = 360 - r);
84
- const l = 12, c = 30, d = r + c, h = r - c;
84
+ const l = 12, c = 30, d = r + c, a = r - c;
85
85
  return {
86
86
  x1: n + Math.cos(Math.PI * d / 180) * l,
87
87
  y1: o - Math.sin(Math.PI * d / 180) * l,
88
- x2: n + Math.cos(Math.PI * h / 180) * l,
89
- y2: o - Math.sin(Math.PI * h / 180) * l
88
+ x2: n + Math.cos(Math.PI * a / 180) * l,
89
+ y2: o - Math.sin(Math.PI * a / 180) * l
90
90
  };
91
91
  }
92
92
  function oe() {
@@ -113,8 +113,13 @@ const Ne = function() {
113
113
  onMove(e, t) {
114
114
  if (this.mousedown) {
115
115
  this.moved = !0;
116
- const n = e.movementX, o = e.movementY;
117
- t.scrollTo(t.scrollLeft - n, t.scrollTop - o);
116
+ const n = e.movementX, o = e.movementY, { container: s, map: i, scaleVal: r } = t;
117
+ let l = s.scrollLeft - n, c = s.scrollTop - o;
118
+ if (r < 1) {
119
+ const d = (s.scrollWidth - i.clientWidth * r) / 2, a = (s.scrollHeight - i.clientHeight * r) / 2;
120
+ l = Math.max(d, Math.min(s.scrollWidth - d - s.clientWidth, l)), c = Math.max(a, Math.min(s.scrollHeight - a - s.clientHeight, c));
121
+ }
122
+ s.scrollTo(l, c);
118
123
  }
119
124
  },
120
125
  clear() {
@@ -156,7 +161,7 @@ function ke(e) {
156
161
  const n = t.target;
157
162
  ae(n) ? e.beginEdit(n) : n.tagName === "text" && (n.dataset.type === "custom-link" ? e.editArrowLabel(n.parentElement) : e.editSummary(n.parentElement));
158
163
  }), e.map.addEventListener("mousemove", (t) => {
159
- t.target.contentEditable !== "true" && N.onMove(t, e.container);
164
+ t.target.contentEditable !== "true" && N.onMove(t, e);
160
165
  }), e.map.addEventListener("mousedown", (t) => {
161
166
  const n = e.mouseSelectionButton === 0 ? 2 : 0;
162
167
  t.button === n && t.target.contentEditable !== "true" && (N.moved = !1, N.mousedown = !0);
@@ -329,8 +334,8 @@ const qe = function(e) {
329
334
  }, Ve = function(e) {
330
335
  const t = S.createElement("me-epd");
331
336
  return t.expanded = e !== !1, t.className = e !== !1 ? "minus" : "", t;
332
- }, F = document, I = "http://www.w3.org/2000/svg", Ee = function(e, t, n) {
333
- const o = F.createElementNS(I, "path");
337
+ }, W = document, F = "http://www.w3.org/2000/svg", Ee = function(e, t, n) {
338
+ const o = W.createElementNS(F, "path");
334
339
  return x(o, {
335
340
  d: e,
336
341
  stroke: t || "#666",
@@ -338,20 +343,20 @@ const qe = function(e) {
338
343
  "stroke-width": n
339
344
  }), o;
340
345
  }, V = function(e) {
341
- const t = F.createElementNS(I, "svg");
346
+ const t = W.createElementNS(F, "svg");
342
347
  return t.setAttribute("class", e), t.setAttribute("overflow", "visible"), t;
343
348
  }, he = function() {
344
- const e = F.createElementNS(I, "line");
349
+ const e = W.createElementNS(F, "line");
345
350
  return e.setAttribute("stroke", "#bbb"), e.setAttribute("fill", "none"), e.setAttribute("stroke-width", "2"), e;
346
- }, Fe = function(e, t, n) {
351
+ }, We = function(e, t, n) {
347
352
  const o = {
348
353
  stroke: "rgb(235, 95, 82)",
349
354
  fill: "none",
350
355
  "stroke-linecap": "cap",
351
356
  "stroke-width": "2"
352
- }, s = F.createElementNS(I, "g");
357
+ }, s = W.createElementNS(F, "g");
353
358
  return [e, t, n].forEach((i, r) => {
354
- const l = F.createElementNS(I, "path"), c = {
359
+ const l = W.createElementNS(F, "path"), c = {
355
360
  d: i,
356
361
  ...o
357
362
  };
@@ -383,13 +388,13 @@ const qe = function(e) {
383
388
  }), o.addEventListener("blur", () => {
384
389
  o && n(o);
385
390
  });
386
- }, Ie = function(e) {
391
+ }, Fe = function(e) {
387
392
  const t = this.map.querySelector("me-root"), n = t.offsetTop, o = t.offsetLeft, s = t.offsetWidth, i = t.offsetHeight;
388
393
  this.nodes.style.top = `${1e4 - this.nodes.offsetHeight / 2}px`, this.nodes.style.left = `${1e4 - o - s / 2}px`;
389
394
  const r = this.map.querySelectorAll("me-main > me-wrapper");
390
395
  this.lines.innerHTML = "";
391
396
  for (let l = 0; l < r.length; l++) {
392
- const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: h, offsetTop: u } = k(this.nodes, d), a = d.offsetWidth, f = d.offsetHeight, p = c.parentNode.className, g = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: u, cL: h, cW: a, cH: f, direction: p, containerHeight: this.nodes.offsetHeight }), m = this.theme.palette, v = d.nodeObj.branchColor || m[l % m.length];
397
+ const c = r[l], d = c.querySelector("me-tpc"), { offsetLeft: a, offsetTop: u } = k(this.nodes, d), h = d.offsetWidth, f = d.offsetHeight, p = c.parentNode.className, g = this.generateMainBranch({ pT: n, pL: o, pW: s, pH: i, cT: u, cL: a, cW: h, cH: f, direction: p, containerHeight: this.nodes.offsetHeight }), m = this.theme.palette, v = d.nodeObj.branchColor || m[l % m.length];
393
398
  d.style.borderColor = v, this.lines.appendChild(Ee(g, v, "3"));
394
399
  const y = c.children[0].children[1];
395
400
  if (y && (y.style.top = (y.parentNode.offsetHeight - y.offsetHeight) / 2 + "px", p === M.LHS ? y.style.left = "-10px" : y.style.right = "-10px"), e && e !== c)
@@ -402,9 +407,9 @@ const qe = function(e) {
402
407
  const r = o.firstChild, l = o.children[1].children;
403
408
  if (l.length === 0)
404
409
  return;
405
- const c = r.offsetTop, d = r.offsetLeft, h = r.offsetWidth, u = r.offsetHeight;
406
- for (let a = 0; a < l.length; a++) {
407
- const f = l[a], p = f.firstChild, g = p.offsetTop, m = p.offsetLeft, v = p.offsetWidth, y = p.offsetHeight, _ = p.firstChild.nodeObj.branchColor || n, E = e.generateSubBranch({ pT: c, pL: d, pW: h, pH: u, cT: g, cL: m, cW: v, cH: y, direction: s, isFirst: i });
410
+ const c = r.offsetTop, d = r.offsetLeft, a = r.offsetWidth, u = r.offsetHeight;
411
+ for (let h = 0; h < l.length; h++) {
412
+ const f = l[h], p = f.firstChild, g = p.offsetTop, m = p.offsetLeft, v = p.offsetWidth, y = p.offsetHeight, _ = p.firstChild.nodeObj.branchColor || n, E = e.generateSubBranch({ pT: c, pL: d, pW: a, pH: u, cT: g, cL: m, cW: v, cH: y, direction: s, isFirst: i });
408
413
  t.appendChild(Ee(E, _, "2"));
409
414
  const w = p.children[1];
410
415
  if (w) {
@@ -421,7 +426,7 @@ const B = (e, t) => {
421
426
  <use xlink:href="#icon-${t}"></use>
422
427
  </svg>`, n;
423
428
  };
424
- function We(e) {
429
+ function Ie(e) {
425
430
  const t = document.createElement("div"), n = B("fullscreen", "full"), o = B("toCenter", "living"), s = B("zoomout", "move"), i = B("zoomin", "add"), r = document.createElement("span");
426
431
  return r.innerText = "100%", t.appendChild(n), t.appendChild(o), t.appendChild(s), t.appendChild(i), t.className = "mind-elixir-toolbar rb", n.onclick = () => {
427
432
  e.mindElixirBox.requestFullscreen();
@@ -444,11 +449,11 @@ function Xe(e) {
444
449
  }, t;
445
450
  }
446
451
  function Ye(e) {
447
- e.container.append(We(e)), e.container.append(Xe(e));
452
+ e.container.append(Ie(e)), e.container.append(Xe(e));
448
453
  }
449
454
  /*! @viselect/vanilla v3.5.1 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */
450
455
  var Ge = Object.defineProperty, Ke = (e, t, n) => t in e ? Ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, b = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
451
- class Ue {
456
+ class Je {
452
457
  constructor() {
453
458
  b(this, "_listeners", /* @__PURE__ */ new Map()), b(this, "on", this.addEventListener), b(this, "off", this.removeEventListener), b(this, "emit", this.dispatchEvent);
454
459
  }
@@ -511,7 +516,7 @@ function z(e, t = document) {
511
516
  }
512
517
  return o;
513
518
  }
514
- const Je = () => matchMedia("(hover: none), (pointer: coarse)").matches, Qe = () => "safari" in window, Ze = (e) => {
519
+ const Ue = () => matchMedia("(hover: none), (pointer: coarse)").matches, Qe = () => "safari" in window, Ze = (e) => {
515
520
  let t, n = -1, o = !1;
516
521
  return {
517
522
  next(...s) {
@@ -545,7 +550,7 @@ function et(e, t) {
545
550
  return !1;
546
551
  }
547
552
  const { abs: D, max: fe, min: pe, ceil: me } = Math;
548
- class tt extends Ue {
553
+ class tt extends Je {
549
554
  constructor(t) {
550
555
  var n, o, s, i, r;
551
556
  super(), b(this, "_options"), b(this, "_selection", {
@@ -595,8 +600,8 @@ class tt extends Ue {
595
600
  }
596
601
  }
597
602
  };
598
- for (const h of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
599
- typeof this[h] == "function" && (this[h] = this[h].bind(this));
603
+ for (const a of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))
604
+ typeof this[a] == "function" && (this[a] = this[a].bind(this));
600
605
  const { document: l, selectionAreaClass: c, selectionContainerClass: d } = this._options;
601
606
  this._area = l.createElement("div"), this._clippingElement = l.createElement("div"), this._clippingElement.appendChild(this._area), this._area.classList.add(c), d && this._clippingElement.classList.add(d), $(this._area, {
602
607
  willChange: "top, left, bottom, right, width, height",
@@ -610,8 +615,8 @@ class tt extends Ue {
610
615
  // https://stackoverflow.com/a/38268846
611
616
  pointerEvents: "none",
612
617
  zIndex: "1"
613
- }), this._frame = Ze((h) => {
614
- this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", h), this._redrawSelectionArea();
618
+ }), this._frame = Ze((a) => {
619
+ this._recalculateSelectionAreaRect(), this._updateElementSelection(), this._emitEvent("move", a), this._redrawSelectionArea();
615
620
  }), this.enable();
616
621
  }
617
622
  _bindStartEvents(t = !0) {
@@ -624,16 +629,16 @@ class tt extends Ue {
624
629
  const { x: o, y: s, target: i } = Y(t), { _options: r } = this, { document: l } = this._options, c = i.getBoundingClientRect();
625
630
  if (t instanceof MouseEvent && !et(t, r.behaviour.triggers))
626
631
  return;
627
- const d = z(r.startAreas, r.document), h = z(r.boundaries, r.document);
628
- this._targetElement = h.find(
632
+ const d = z(r.startAreas, r.document), a = z(r.boundaries, r.document);
633
+ this._targetElement = a.find(
629
634
  (f) => ue(f.getBoundingClientRect(), c)
630
635
  );
631
636
  const u = t.composedPath();
632
- if (!this._targetElement || !d.find((f) => u.includes(f)) || !h.find((f) => u.includes(f)) || !n && this._emitEvent("beforestart", t) === !1)
637
+ if (!this._targetElement || !d.find((f) => u.includes(f)) || !a.find((f) => u.includes(f)) || !n && this._emitEvent("beforestart", t) === !1)
633
638
  return;
634
639
  this._areaLocation = { x1: o, y1: s, x2: 0, y2: 0 };
635
- const a = l.scrollingElement ?? l.body;
636
- this._scrollDelta = { x: a.scrollLeft, y: a.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), P(l, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), P(l, ["mouseup", "touchcancel", "touchend"], this._onTapStop), P(l, "scroll", this._onScroll);
640
+ const h = l.scrollingElement ?? l.body;
641
+ this._scrollDelta = { x: h.scrollLeft, y: h.scrollTop }, this._singleClick = !0, this.clearSelection(!1, !0), P(l, ["touchmove", "mousemove"], this._delayedTapMove, { passive: !1 }), P(l, ["mouseup", "touchcancel", "touchend"], this._onTapStop), P(l, "scroll", this._onScroll);
637
642
  }
638
643
  _onSingleTap(t) {
639
644
  const { singleTap: { intersect: n }, range: o } = this._options.features, s = Y(t);
@@ -644,8 +649,8 @@ class tt extends Ue {
644
649
  this.resolveSelectables();
645
650
  const { x: l, y: c } = s;
646
651
  i = this._selectables.find((d) => {
647
- const { right: h, left: u, top: a, bottom: f } = d.getBoundingClientRect();
648
- return l < h && l > u && c < f && c > a;
652
+ const { right: a, left: u, top: h, bottom: f } = d.getBoundingClientRect();
653
+ return l < a && l > u && c < f && c > h;
649
654
  });
650
655
  }
651
656
  if (!i)
@@ -657,10 +662,10 @@ class tt extends Ue {
657
662
  }
658
663
  const { stored: r } = this._selection;
659
664
  if (this._emitEvent("start", t), t.shiftKey && o && this._latestElement) {
660
- const l = this._latestElement, [c, d] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], h = [...this._selectables.filter(
665
+ const l = this._latestElement, [c, d] = l.compareDocumentPosition(i) & 4 ? [i, l] : [l, i], a = [...this._selectables.filter(
661
666
  (u) => u.compareDocumentPosition(c) & 4 && u.compareDocumentPosition(d) & 2
662
667
  ), c, d];
663
- this.select(h), this._latestElement = l;
668
+ this.select(a), this._latestElement = l;
664
669
  } else
665
670
  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);
666
671
  }
@@ -703,22 +708,22 @@ class tt extends Ue {
703
708
  const { x: n, y: o } = Y(t), { _scrollSpeed: s, _areaLocation: i, _options: r, _frame: l } = this, { speedDivider: c } = r.behaviour.scrolling, d = this._targetElement;
704
709
  if (i.x2 = n, i.y2 = o, this._scrollAvailable && !this._scrollingActive && (s.y || s.x)) {
705
710
  this._scrollingActive = !0;
706
- const h = () => {
711
+ const a = () => {
707
712
  if (!s.x && !s.y) {
708
713
  this._scrollingActive = !1;
709
714
  return;
710
715
  }
711
- const { scrollTop: u, scrollLeft: a } = d;
712
- s.y && (d.scrollTop += me(s.y / c), i.y1 -= d.scrollTop - u), s.x && (d.scrollLeft += me(s.x / c), i.x1 -= d.scrollLeft - a), l.next(t), requestAnimationFrame(h);
716
+ const { scrollTop: u, scrollLeft: h } = d;
717
+ s.y && (d.scrollTop += me(s.y / c), i.y1 -= d.scrollTop - u), s.x && (d.scrollLeft += me(s.x / c), i.x1 -= d.scrollLeft - h), l.next(t), requestAnimationFrame(a);
713
718
  };
714
- requestAnimationFrame(h);
719
+ requestAnimationFrame(a);
715
720
  } else
716
721
  l.next(t);
717
722
  this._handleMoveEvent(t);
718
723
  }
719
724
  _handleMoveEvent(t) {
720
725
  const { features: n } = this._options;
721
- (n.touch && Je() || this._scrollAvailable && Qe()) && t.preventDefault();
726
+ (n.touch && Ue() || this._scrollAvailable && Qe()) && t.preventDefault();
722
727
  }
723
728
  _onScroll() {
724
729
  const { _scrollDelta: t, _options: { document: n } } = this, { scrollTop: o, scrollLeft: s } = n.scrollingElement ?? n.body;
@@ -729,10 +734,10 @@ class tt extends Ue {
729
734
  this._scrollSpeed.y += o * n, this._scrollSpeed.x += s * n, this._onTapMove(t), t.preventDefault();
730
735
  }
731
736
  _recalculateSelectionAreaRect() {
732
- const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: d, scrollWidth: h, clientWidth: u } = s, a = this._targetRect, { x1: f, y1: p } = n;
737
+ const { _scrollSpeed: t, _areaLocation: n, _areaRect: o, _targetElement: s, _options: i } = this, { scrollTop: r, scrollHeight: l, clientHeight: c, scrollLeft: d, scrollWidth: a, clientWidth: u } = s, h = this._targetRect, { x1: f, y1: p } = n;
733
738
  let { x2: g, y2: m } = n;
734
739
  const { behaviour: { scrolling: { startScrollMargins: v } } } = i;
735
- g < a.left + v.x ? (t.x = d ? -D(a.left - g + v.x) : 0, g = g < a.left ? a.left : g) : g > a.right - v.x ? (t.x = h - d - u ? D(a.left + a.width - g - v.x) : 0, g = g > a.right ? a.right : g) : t.x = 0, m < a.top + v.y ? (t.y = r ? -D(a.top - m + v.y) : 0, m = m < a.top ? a.top : m) : m > a.bottom - v.y ? (t.y = l - r - c ? D(a.top + a.height - m - v.y) : 0, m = m > a.bottom ? a.bottom : m) : t.y = 0;
740
+ g < h.left + v.x ? (t.x = d ? -D(h.left - g + v.x) : 0, g = g < h.left ? h.left : g) : g > h.right - v.x ? (t.x = a - d - u ? D(h.left + h.width - g - v.x) : 0, g = g > h.right ? h.right : g) : t.x = 0, m < h.top + v.y ? (t.y = r ? -D(h.top - m + v.y) : 0, m = m < h.top ? h.top : m) : m > h.bottom - v.y ? (t.y = l - r - c ? D(h.top + h.height - m - v.y) : 0, m = m > h.bottom ? h.bottom : m) : t.y = 0;
736
741
  const y = pe(f, g), _ = pe(p, m), E = fe(f, g), w = fe(p, m);
737
742
  o.x = y, o.y = _, o.width = E - y, o.height = w - _;
738
743
  }
@@ -746,21 +751,21 @@ class tt extends Ue {
746
751
  A(s, ["mousemove", "touchmove"], this._delayedTapMove), A(s, ["touchmove", "mousemove"], this._onTapMove), A(s, ["mouseup", "touchcancel", "touchend"], this._onTapStop), A(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, A(this._targetElement, "wheel", this._manualScroll, { passive: !0 }), this._clippingElement.remove(), (o = this._frame) == null || o.cancel(), $(this._area, "display", "none");
747
752
  }
748
753
  _updateElementSelection() {
749
- const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: d } = n.behaviour, h = d === "invert", u = [], a = [], f = [];
754
+ const { _selectables: t, _options: n, _selection: o, _areaRect: s } = this, { stored: i, selected: r, touched: l } = o, { intersect: c, overlap: d } = n.behaviour, a = d === "invert", u = [], h = [], f = [];
750
755
  for (let g = 0; g < t.length; g++) {
751
756
  const m = t[g];
752
757
  if (ue(s, m.getBoundingClientRect(), c)) {
753
758
  if (r.includes(m))
754
759
  i.includes(m) && !l.includes(m) && l.push(m);
755
- else if (h && i.includes(m)) {
760
+ else if (a && i.includes(m)) {
756
761
  f.push(m);
757
762
  continue;
758
763
  } else
759
- a.push(m);
764
+ h.push(m);
760
765
  u.push(m);
761
766
  }
762
767
  }
763
- h && a.push(...i.filter((g) => !r.includes(g)));
768
+ a && h.push(...i.filter((g) => !r.includes(g)));
764
769
  const p = d === "keep";
765
770
  for (let g = 0; g < r.length; g++) {
766
771
  const m = r[g];
@@ -768,7 +773,7 @@ class tt extends Ue {
768
773
  // not make them part of the current selection as soon as they're touched.
769
774
  (p && i.includes(m)) && f.push(m);
770
775
  }
771
- o.selected = u, o.changed = { added: a, removed: f }, this._latestElement = void 0;
776
+ o.selected = u, o.changed = { added: h, removed: f }, this._latestElement = void 0;
772
777
  }
773
778
  _emitEvent(t, n) {
774
779
  return this.emit(t, {
@@ -892,12 +897,12 @@ b(tt, "version", "3.5.1");
892
897
  const nt = function(e, t = !0) {
893
898
  this.theme = e;
894
899
  const n = this.theme.cssVar, o = Object.keys(n);
895
- this.mindElixirBox.style.cssText = "";
900
+ this.container.style.cssText = "";
896
901
  for (let s = 0; s < o.length; s++) {
897
902
  const i = o[s];
898
- this.mindElixirBox.style.setProperty(i, n[i]);
903
+ this.container.style.setProperty(i, n[i]);
899
904
  }
900
- e.cssVar["--gap"] || this.mindElixirBox.style.setProperty("--gap", "30px"), t && this.refresh();
905
+ e.cssVar["--gap"] || this.container.style.setProperty("--gap", "30px"), t && this.refresh();
901
906
  }, ot = function(e) {
902
907
  const n = e.parentElement.parentElement.lastElementChild;
903
908
  (n == null ? void 0 : n.tagName) === "svg" && (n == null || n.remove());
@@ -1048,14 +1053,14 @@ const st = function(e, t, n) {
1048
1053
  create: Lt
1049
1054
  };
1050
1055
  function Z(e, t, n) {
1051
- const { offsetLeft: o, offsetTop: s } = k(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, h = c + n.y;
1056
+ const { offsetLeft: o, offsetTop: s } = k(e.nodes, t), i = t.offsetWidth, r = t.offsetHeight, l = o + i / 2, c = s + r / 2, d = l + n.x, a = c + n.y;
1052
1057
  return {
1053
1058
  w: i,
1054
1059
  h: r,
1055
1060
  cx: l,
1056
1061
  cy: c,
1057
1062
  ctrlX: d,
1058
- ctrlY: h
1063
+ ctrlY: a
1059
1064
  };
1060
1065
  }
1061
1066
  function O(e) {
@@ -1078,13 +1083,13 @@ const Mt = function(e, t, n, o) {
1078
1083
  if (!t || !n)
1079
1084
  return;
1080
1085
  performance.now();
1081
- const i = Z(e, t, o.delta1), r = Z(e, n, o.delta2), { x: l, y: c } = O(i), { ctrlX: d, ctrlY: h } = i, { ctrlX: u, ctrlY: a } = r, { x: f, y: p } = O(r), g = J(u, a, f, p), m = `M ${g.x1} ${g.y1} L ${f} ${p} L ${g.x2} ${g.y2}`;
1086
+ const i = Z(e, t, o.delta1), r = Z(e, n, o.delta2), { x: l, y: c } = O(i), { ctrlX: d, ctrlY: a } = i, { ctrlX: u, ctrlY: h } = r, { x: f, y: p } = O(r), g = U(u, h, f, p), m = `M ${g.x1} ${g.y1} L ${f} ${p} L ${g.x2} ${g.y2}`;
1082
1087
  let v = "";
1083
1088
  if (o.bidirectional) {
1084
- const H = J(d, h, l, c);
1089
+ const H = U(d, a, l, c);
1085
1090
  v = `M ${H.x1} ${H.y1} L ${l} ${c} L ${H.x2} ${H.y2}`;
1086
1091
  }
1087
- const y = Fe(`M ${l} ${c} C ${d} ${h} ${u} ${a} ${f} ${p}`, m, v), _ = l / 8 + d * 3 / 8 + u * 3 / 8 + f / 8, E = c / 8 + h * 3 / 8 + a * 3 / 8 + p / 8, w = Mt(o.label, _, E, e.theme.cssVar["--color"]);
1092
+ const y = We(`M ${l} ${c} C ${d} ${a} ${u} ${h} ${f} ${p}`, m, v), _ = l / 8 + d * 3 / 8 + u * 3 / 8 + f / 8, E = c / 8 + a * 3 / 8 + h * 3 / 8 + p / 8, w = Mt(o.label, _, E, e.theme.cssVar["--color"]);
1088
1093
  y.appendChild(w), y.arrowObj = o, y.dataset.linkid = o.id, e.linkSvgGroup.appendChild(y), s || (e.arrows.push(o), e.currentArrow = y, $e(e, o, i, r)), performance.now();
1089
1094
  }, Tt = function(e, t, n = {}) {
1090
1095
  const o = {
@@ -1129,7 +1134,7 @@ const Mt = function(e, t, n, o) {
1129
1134
  (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";
1130
1135
  }, $e = function(e, t, n, o) {
1131
1136
  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);
1132
- let { x: s, y: i } = O(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: d } = o, { x: h, y: u } = O(o);
1137
+ let { x: s, y: i } = O(n), { ctrlX: r, ctrlY: l } = n, { ctrlX: c, ctrlY: d } = o, { x: a, y: u } = O(o);
1133
1138
  e.P2.style.cssText = `top:${l}px;left:${r}px;`, e.P3.style.cssText = `top:${d}px;left:${c}px;`, x(e.line1, {
1134
1139
  x1: s + "",
1135
1140
  y1: i + "",
@@ -1138,17 +1143,17 @@ const Mt = function(e, t, n, o) {
1138
1143
  }), x(e.line2, {
1139
1144
  x1: c + "",
1140
1145
  y1: d + "",
1141
- x2: h + "",
1146
+ x2: a + "",
1142
1147
  y2: u + ""
1143
- }), e.helper1 = ge.create(e.P2), e.helper2 = ge.create(e.P3), e.helper1.init(e.map, (a, f) => {
1148
+ }), e.helper1 = ge.create(e.P2), e.helper2 = ge.create(e.P3), e.helper1.init(e.map, (h, f) => {
1144
1149
  if (!e.currentArrow)
1145
1150
  return;
1146
- r = r + a / e.scaleVal, l = l + f / e.scaleVal;
1151
+ r = r + h / e.scaleVal, l = l + f / e.scaleVal;
1147
1152
  const p = O({ ...n, ctrlX: r, ctrlY: l });
1148
1153
  s = p.x, i = p.y;
1149
- const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, m = i / 8 + l * 3 / 8 + d * 3 / 8 + u / 8;
1150
- if (e.P2.style.top = l + "px", e.P2.style.left = r + "px", e.currentArrow.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${u}`), t.bidirectional) {
1151
- const v = J(r, l, s, i);
1154
+ const g = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, m = i / 8 + l * 3 / 8 + d * 3 / 8 + u / 8;
1155
+ if (e.P2.style.top = l + "px", e.P2.style.left = r + "px", e.currentArrow.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${a} ${u}`), t.bidirectional) {
1156
+ const v = U(r, l, s, i);
1152
1157
  e.currentArrow.children[2].setAttribute("d", `M ${v.x1} ${v.y1} L ${s} ${i} L ${v.x2} ${v.y2}`);
1153
1158
  }
1154
1159
  x(e.currentArrow.children[3], {
@@ -1160,20 +1165,20 @@ const Mt = function(e, t, n, o) {
1160
1165
  x2: r + "",
1161
1166
  y2: l + ""
1162
1167
  }), t.delta1.x = r - n.cx, t.delta1.y = l - n.cy, e.bus.fire("updateArrowDelta", t);
1163
- }), e.helper2.init(e.map, (a, f) => {
1168
+ }), e.helper2.init(e.map, (h, f) => {
1164
1169
  if (!e.currentArrow)
1165
1170
  return;
1166
- c = c + a / e.scaleVal, d = d + f / e.scaleVal;
1171
+ c = c + h / e.scaleVal, d = d + f / e.scaleVal;
1167
1172
  const p = O({ ...o, ctrlX: c, ctrlY: d });
1168
- h = p.x, u = p.y;
1169
- const g = s / 8 + r * 3 / 8 + c * 3 / 8 + h / 8, m = i / 8 + l * 3 / 8 + d * 3 / 8 + u / 8, v = J(c, d, h, u);
1170
- e.P3.style.top = d + "px", e.P3.style.left = c + "px", e.currentArrow.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${h} ${u}`), e.currentArrow.children[1].setAttribute("d", `M ${v.x1} ${v.y1} L ${h} ${u} L ${v.x2} ${v.y2}`), x(e.currentArrow.children[3], {
1173
+ a = p.x, u = p.y;
1174
+ const g = s / 8 + r * 3 / 8 + c * 3 / 8 + a / 8, m = i / 8 + l * 3 / 8 + d * 3 / 8 + u / 8, v = U(c, d, a, u);
1175
+ e.P3.style.top = d + "px", e.P3.style.left = c + "px", e.currentArrow.children[0].setAttribute("d", `M ${s} ${i} C ${r} ${l} ${c} ${d} ${a} ${u}`), e.currentArrow.children[1].setAttribute("d", `M ${v.x1} ${v.y1} L ${a} ${u} L ${v.x2} ${v.y2}`), x(e.currentArrow.children[3], {
1171
1176
  x: g + "",
1172
1177
  y: m + ""
1173
1178
  }), x(e.line2, {
1174
1179
  x1: c + "",
1175
1180
  y1: d + "",
1176
- x2: h + "",
1181
+ x2: a + "",
1177
1182
  y2: u + ""
1178
1183
  }), t.delta2.x = c - o.cx, t.delta2.y = d - o.cy, e.bus.fire("updateArrowDelta", t);
1179
1184
  });
@@ -1203,7 +1208,7 @@ function Ht(e) {
1203
1208
  });
1204
1209
  }
1205
1210
  function Dt() {
1206
- this.arrows = this.arrows.filter((e) => U(e.from, this.nodeData) && U(e.to, this.nodeData));
1211
+ this.arrows = this.arrows.filter((e) => J(e.from, this.nodeData) && J(e.to, this.nodeData));
1207
1212
  }
1208
1213
  const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1209
1214
  __proto__: null,
@@ -1219,37 +1224,37 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1219
1224
  if (e.length === 0)
1220
1225
  throw new Error("No selected node.");
1221
1226
  if (e.length === 1) {
1222
- const h = e[0].nodeObj, u = e[0].nodeObj.parent;
1227
+ const a = e[0].nodeObj, u = e[0].nodeObj.parent;
1223
1228
  if (!u)
1224
1229
  throw new Error("Can not select root node.");
1225
- const a = u.children.findIndex((f) => h === f);
1230
+ const h = u.children.findIndex((f) => a === f);
1226
1231
  return {
1227
1232
  parent: u.id,
1228
- start: a,
1229
- end: a
1233
+ start: h,
1234
+ end: h
1230
1235
  };
1231
1236
  }
1232
1237
  let t = 0;
1233
- const n = e.map((h) => {
1234
- let u = h.nodeObj;
1235
- const a = [];
1238
+ const n = e.map((a) => {
1239
+ let u = a.nodeObj;
1240
+ const h = [];
1236
1241
  for (; u.parent; ) {
1237
1242
  const f = u.parent, p = f.children, g = p == null ? void 0 : p.indexOf(u);
1238
- u = f, a.unshift({ node: u, index: g });
1243
+ u = f, h.unshift({ node: u, index: g });
1239
1244
  }
1240
- return a.length > t && (t = a.length), a;
1245
+ return h.length > t && (t = h.length), h;
1241
1246
  });
1242
1247
  let o = 0;
1243
1248
  e:
1244
1249
  for (; o < t; o++) {
1245
- const h = (c = n[0][o]) == null ? void 0 : c.node;
1250
+ const a = (c = n[0][o]) == null ? void 0 : c.node;
1246
1251
  for (let u = 1; u < n.length; u++)
1247
- if (((d = n[u][o]) == null ? void 0 : d.node) !== h)
1252
+ if (((d = n[u][o]) == null ? void 0 : d.node) !== a)
1248
1253
  break e;
1249
1254
  }
1250
1255
  if (!o)
1251
1256
  throw new Error("Can not select root node.");
1252
- const s = n.map((h) => h[o - 1].index).sort(), i = s[0] || 0, r = s[s.length - 1] || 0, l = n[0][o - 1].node;
1257
+ 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;
1253
1258
  if (!l.parent)
1254
1259
  throw new Error("Please select nodes in the same main topic.");
1255
1260
  return {
@@ -1283,18 +1288,18 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1283
1288
  return o.parent ? s = n.closest("me-main").className : s = L(o.children[t].id).closest("me-main").className, s;
1284
1289
  }, Ae = function(e, t) {
1285
1290
  var H;
1286
- const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, h = jt(t);
1287
- let u = 1 / 0, a = 0, f = 0, p = 0;
1291
+ const { id: n, text: o, parent: s, start: i, end: r } = t, l = e.nodes, d = L(s).nodeObj, a = jt(t);
1292
+ let u = 1 / 0, h = 0, f = 0, p = 0;
1288
1293
  for (let R = i; R <= r; R++) {
1289
1294
  const ie = (H = d.children) == null ? void 0 : H[R];
1290
1295
  if (!ie)
1291
1296
  return e.removeSummary(n), null;
1292
- const W = Ot(ie.id), { offsetLeft: X, offsetTop: re } = k(l, W), le = i === r ? 10 : 20;
1293
- R === i && (f = re + le), R === r && (p = re + W.offsetHeight - le), X < u && (u = X), W.offsetWidth + X > a && (a = W.offsetWidth + X);
1297
+ const I = Ot(ie.id), { offsetLeft: X, offsetTop: re } = k(l, I), le = i === r ? 10 : 20;
1298
+ R === i && (f = re + le), R === r && (p = re + I.offsetHeight - le), X < u && (u = X), I.offsetWidth + X > h && (h = I.offsetWidth + X);
1294
1299
  }
1295
1300
  let g, m;
1296
1301
  const v = f + 10, y = p + 10, _ = (v + y) / 2, E = e.theme.cssVar["--color"];
1297
- h === M.LHS ? (g = ve(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${y - 10} c 0 5 5 10 10 10 M ${u} ${_} h -10`, E), m = ye(o, u - 20, _ + 6, "end", E)) : (g = ve(`M ${a - 10} ${v} c 5 0 10 5 10 10 L ${a} ${y - 10} c 0 5 -5 10 -10 10 M ${a} ${_} h 10`, E), m = ye(o, a + 20, _ + 6, "start", E));
1302
+ a === M.LHS ? (g = ve(`M ${u + 10} ${v} c -5 0 -10 5 -10 10 L ${u} ${y - 10} c 0 5 5 10 10 10 M ${u} ${_} h -10`, E), m = ye(o, u - 20, _ + 6, "end", E)) : (g = ve(`M ${h - 10} ${v} c 5 0 10 5 10 10 L ${h} ${y - 10} c 0 5 -5 10 -10 10 M ${h} ${_} h 10`, E), m = ye(o, h + 20, _ + 6, "start", E));
1298
1303
  const w = zt("s-" + n);
1299
1304
  return w.appendChild(g), w.appendChild(m), w.summaryObj = t, e.summarySvg.appendChild(w), w;
1300
1305
  }, Rt = function() {
@@ -1324,17 +1329,17 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1324
1329
  "stroke-width": "2",
1325
1330
  fill: "none"
1326
1331
  }), e.appendChild(s), this.currentSummary = e;
1327
- }, Ft = function() {
1332
+ }, Wt = function() {
1328
1333
  var e, t;
1329
1334
  (t = (e = this.currentSummary) == null ? void 0 : e.querySelector("rect")) == null || t.remove(), this.currentSummary = null;
1330
- }, It = function() {
1335
+ }, Ft = function() {
1331
1336
  this.summarySvg.innerHTML = "", this.summaries.forEach((e) => {
1332
1337
  try {
1333
1338
  Ae(this, e);
1334
1339
  } catch {
1335
1340
  }
1336
1341
  }), this.nodes.insertAdjacentElement("beforeend", this.summarySvg);
1337
- }, Wt = function(e) {
1342
+ }, It = function(e) {
1338
1343
  if (!e)
1339
1344
  return;
1340
1345
  const t = e.childNodes[1];
@@ -1349,11 +1354,11 @@ const Bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1349
1354
  }, Xt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1350
1355
  __proto__: null,
1351
1356
  createSummary: Rt,
1352
- editSummary: Wt,
1357
+ editSummary: It,
1353
1358
  removeSummary: qt,
1354
- renderSummary: It,
1359
+ renderSummary: Ft,
1355
1360
  selectSummary: Vt,
1356
- unselectSummary: Ft
1361
+ unselectSummary: Wt
1357
1362
  }, Symbol.toStringTag, { value: "Module" })), C = "http://www.w3.org/2000/svg";
1358
1363
  function Yt(e, t) {
1359
1364
  const n = document.createElementNS(C, "svg");
@@ -1384,7 +1389,7 @@ function Kt(e, t, n, o) {
1384
1389
  }), d.innerHTML = l, s.appendChild(d);
1385
1390
  }), s;
1386
1391
  }
1387
- function Ut(e, t, n, o) {
1392
+ function Jt(e, t, n, o) {
1388
1393
  var l;
1389
1394
  let s = "";
1390
1395
  (l = e.nodeObj) != null && l.dangerouslySetInnerHTML ? s = e.nodeObj.dangerouslySetInnerHTML : e.text ? s = e.text.textContent : s = e.childNodes[0].textContent;
@@ -1401,7 +1406,7 @@ function Ut(e, t, n, o) {
1401
1406
  style: `font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`
1402
1407
  }), r.innerHTML = s, i.appendChild(r), i;
1403
1408
  }
1404
- function Jt(e, t) {
1409
+ function Ut(e, t) {
1405
1410
  const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = k(e.nodes, t), i = document.createElementNS(C, "rect");
1406
1411
  return x(i, {
1407
1412
  x: o + "",
@@ -1431,7 +1436,7 @@ function G(e, t, n = !1) {
1431
1436
  const l = document.createElementNS(C, "g");
1432
1437
  l.appendChild(r);
1433
1438
  let c;
1434
- return n ? c = Ut(t, o, s, i) : c = Kt(t, o, s, i), l.appendChild(c), l;
1439
+ return n ? c = Jt(t, o, s, i) : c = Kt(t, o, s, i), l.appendChild(c), l;
1435
1440
  }
1436
1441
  function Qt(e, t) {
1437
1442
  const n = getComputedStyle(t), { offsetLeft: o, offsetTop: s } = k(e.nodes, t), i = document.createElementNS(C, "a"), r = document.createElementNS(C, "text");
@@ -1456,7 +1461,7 @@ function Zt(e, t) {
1456
1461
  }), i;
1457
1462
  }
1458
1463
  const K = 100, en = '<?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">', tn = (e, t = !1) => {
1459
- var u, a, f;
1464
+ var u, h, f;
1460
1465
  const n = e.nodes, o = n.offsetHeight + K * 2, s = n.offsetWidth + K * 2, i = Yt(o + "px", s + "px"), r = document.createElementNS(C, "svg"), l = document.createElementNS(C, "rect");
1461
1466
  x(l, {
1462
1467
  x: "0",
@@ -1470,11 +1475,11 @@ const K = 100, en = '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "
1470
1475
  });
1471
1476
  const c = (u = n.querySelector(".lines")) == null ? void 0 : u.cloneNode(!0);
1472
1477
  c && r.appendChild(c);
1473
- const d = (a = n.querySelector(".topiclinks")) == null ? void 0 : a.cloneNode(!0);
1478
+ const d = (h = n.querySelector(".topiclinks")) == null ? void 0 : h.cloneNode(!0);
1474
1479
  d && r.appendChild(d);
1475
- const h = (f = n.querySelector(".summary")) == null ? void 0 : f.cloneNode(!0);
1476
- return h && r.appendChild(h), n.querySelectorAll("me-tpc").forEach((p) => {
1477
- p.nodeObj.dangerouslySetInnerHTML ? r.appendChild(G(e, p, !t)) : (r.appendChild(Jt(e, p)), r.appendChild(G(e, p.text, !t)));
1480
+ const a = (f = n.querySelector(".summary")) == null ? void 0 : f.cloneNode(!0);
1481
+ return a && r.appendChild(a), n.querySelectorAll("me-tpc").forEach((p) => {
1482
+ p.nodeObj.dangerouslySetInnerHTML ? r.appendChild(G(e, p, !t)) : (r.appendChild(Ut(e, p)), r.appendChild(G(e, p.text, !t)));
1478
1483
  }), n.querySelectorAll(".tags > span").forEach((p) => {
1479
1484
  r.appendChild(G(e, p));
1480
1485
  }), n.querySelectorAll(".icons > span").forEach((p) => {
@@ -1516,10 +1521,10 @@ const sn = function(e = !1, t) {
1516
1521
  exportPng: rn,
1517
1522
  exportSvg: sn
1518
1523
  }, Symbol.toStringTag, { value: "Module" })), cn = {}, an = {
1519
- getObjById: U,
1524
+ getObjById: J,
1520
1525
  generateNewObj: Ne,
1521
1526
  layout: De,
1522
- linkDiv: Ie,
1527
+ linkDiv: Fe,
1523
1528
  editTopic: qe,
1524
1529
  createWrapper: ze,
1525
1530
  createParent: Oe,
@@ -1533,7 +1538,7 @@ const sn = function(e = !1, t) {
1533
1538
  ...Xt,
1534
1539
  ...ln,
1535
1540
  init(e) {
1536
- if (!e || !e.nodeData)
1541
+ if (e = JSON.parse(JSON.stringify(e)), !e || !e.nodeData)
1537
1542
  return new Error("MindElixir: `data` is required");
1538
1543
  e.direction !== void 0 && (this.direction = e.direction), this.changeTheme(e.theme || this.theme, !1), this.nodeData = e.nodeData, ne(this.nodeData), this.arrows = e.arrows || [], this.summaries = e.summaries || [], this.tidyArrow(), this.toolBar && Ye(this), this.toCenter(), this.layout(), this.linkDiv();
1539
1544
  },
@@ -1543,23 +1548,23 @@ const sn = function(e = !1, t) {
1543
1548
  }
1544
1549
  };
1545
1550
  function hn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, containerHeight: d }) {
1546
- let h = t + n / 2;
1551
+ let a = t + n / 2;
1547
1552
  const u = e + o / 2;
1548
- let a;
1549
- c === M.LHS ? a = i + r : a = i;
1553
+ let h;
1554
+ c === M.LHS ? h = i + r : h = i;
1550
1555
  const f = s + l / 2, g = (1 - Math.abs(f - u) / d) * 0.25 * (n / 2);
1551
- return c === M.LHS ? h = h - n / 10 - g : h = h + n / 10 + g, `M ${h} ${u} Q ${h} ${f} ${a} ${f}`;
1556
+ return c === M.LHS ? a = a - n / 10 - g : a = a + n / 10 + g, `M ${a} ${u} Q ${a} ${f} ${h} ${f}`;
1552
1557
  }
1553
1558
  function dn({ pT: e, pL: t, pW: n, pH: o, cT: s, cL: i, cW: r, cH: l, direction: c, isFirst: d }) {
1554
- const h = parseInt(this.mindElixirBox.style.getPropertyValue("--gap"));
1555
- let u = 0, a = 0;
1559
+ const a = parseInt(this.container.style.getPropertyValue("--gap"));
1560
+ let u = 0, h = 0;
1556
1561
  d ? u = e + o / 2 : u = e + o;
1557
1562
  const f = s + l;
1558
1563
  let p = 0, g = 0, m = 0;
1559
- const v = Math.abs(u - f) / 300 * h;
1560
- return c === M.LHS ? (m = t, p = m + h, g = m - h, a = i + h, `M ${p} ${u} C ${m} ${u} ${m + v} ${f} ${g} ${f} H ${a}`) : (m = t + n, p = m - h, g = m + h, a = i + r - h, `M ${p} ${u} C ${m} ${u} ${m - v} ${f} ${g} ${f} H ${a}`);
1564
+ const v = Math.abs(u - f) / 300 * a;
1565
+ return c === M.LHS ? (m = t, p = m + a, g = m - a, h = i + a, `M ${p} ${u} C ${m} ${u} ${m + v} ${f} ${g} ${f} H ${h}`) : (m = t + n, p = m - a, g = m + a, h = i + r - a, `M ${p} ${u} C ${m} ${u} ${m - v} ${f} ${g} ${f} H ${h}`);
1561
1566
  }
1562
- const un = "4.4.0", q = document;
1567
+ const un = "4.4.2", q = document;
1563
1568
  function T({
1564
1569
  el: e,
1565
1570
  direction: t,
@@ -1571,9 +1576,9 @@ function T({
1571
1576
  toolBar: l,
1572
1577
  keypress: c,
1573
1578
  mouseSelectionButton: d,
1574
- selectionContainer: h,
1579
+ selectionContainer: a,
1575
1580
  before: u,
1576
- newTopicName: a,
1581
+ newTopicName: h,
1577
1582
  allowUndo: f,
1578
1583
  generateMainBranch: p,
1579
1584
  generateSubBranch: g,
@@ -1584,7 +1589,7 @@ function T({
1584
1589
  const _ = Object.prototype.toString.call(e);
1585
1590
  if (_ === "[object HTMLDivElement]" ? y = e : _ === "[object String]" && (y = document.querySelector(e)), !y)
1586
1591
  throw new Error("MindElixir: el is not a valid element");
1587
- y.className += " mind-elixir", y.innerHTML = "", this.mindElixirBox = y, this.disposable = [], this.before = u || {}, 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 = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = a || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = f === void 0 ? !1 : f, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = p || hn, this.generateSubBranch = g || dn, this.overflowHidden = m || !1, this.bus = He.create(), this.container = q.createElement("div"), this.selectionContainer = h || this.container, this.container.className = "map-container";
1592
+ y.style.position = "relative", y.innerHTML = "", this.mindElixirBox = y, this.disposable = [], this.before = u || {}, 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 = d || 0, this.direction = typeof t == "number" ? t : 1, this.draggable = o === void 0 ? !0 : o, this.newTopicName = h || "new node", this.editable = s === void 0 ? !0 : s, this.allowUndo = f === void 0 ? !1 : f, this.currentNode = null, this.currentArrow = null, this.scaleVal = 1, this.tempDirection = null, this.generateMainBranch = p || hn, this.generateSubBranch = g || dn, this.overflowHidden = m || !1, this.bus = He.create(), this.container = q.createElement("div"), this.selectionContainer = a || this.container, this.container.className = "map-container";
1588
1593
  const E = window.matchMedia("(prefers-color-scheme: dark)");
1589
1594
  this.theme = v || (E.matches ? xe : be);
1590
1595
  const w = q.createElement("div");
@@ -1600,6 +1605,5 @@ T.version = un;
1600
1605
  T.E = L;
1601
1606
  T.dragMoveHelper = N;
1602
1607
  export {
1603
- M as DirectionClass,
1604
1608
  T as default
1605
1609
  };