mind-elixir 5.2.0-beta.1 → 5.2.0-beta.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.
Files changed (44) hide show
  1. package/dist/MindElixir.iife.js +1 -1
  2. package/dist/MindElixir.js +1 -1
  3. package/dist/MindElixirLite.iife.js +1 -1
  4. package/dist/MindElixirLite.js +1 -1
  5. package/package.json +1 -1
  6. /package/dist/types/{src/arrow.d.ts → arrow.d.ts} +0 -0
  7. /package/dist/types/{src/const.d.ts → const.d.ts} +0 -0
  8. /package/dist/types/{src/dev.d.ts → dev.d.ts} +0 -0
  9. /package/dist/types/{src/docs.d.ts → docs.d.ts} +0 -0
  10. /package/dist/types/{src/exampleData → exampleData}/1.cn.d.ts +0 -0
  11. /package/dist/types/{src/exampleData → exampleData}/1.d.ts +0 -0
  12. /package/dist/types/{src/exampleData → exampleData}/2.d.ts +0 -0
  13. /package/dist/types/{src/exampleData → exampleData}/3.d.ts +0 -0
  14. /package/dist/types/{src/exampleData → exampleData}/htmlText.d.ts +0 -0
  15. /package/dist/types/{src/i18n.d.ts → i18n.d.ts} +0 -0
  16. /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
  17. /package/dist/types/{src/interact.d.ts → interact.d.ts} +0 -0
  18. /package/dist/types/{src/linkDiv.d.ts → linkDiv.d.ts} +0 -0
  19. /package/dist/types/{src/methods.d.ts → methods.d.ts} +0 -0
  20. /package/dist/types/{src/mouse.d.ts → mouse.d.ts} +0 -0
  21. /package/dist/types/{src/nodeOperation.d.ts → nodeOperation.d.ts} +0 -0
  22. /package/dist/types/{src/plugin → plugin}/contextMenu.d.ts +0 -0
  23. /package/dist/types/{src/plugin → plugin}/exportImage.d.ts +0 -0
  24. /package/dist/types/{src/plugin → plugin}/keypress.d.ts +0 -0
  25. /package/dist/types/{src/plugin → plugin}/nodeDraggable.d.ts +0 -0
  26. /package/dist/types/{src/plugin → plugin}/operationHistory.d.ts +0 -0
  27. /package/dist/types/{src/plugin → plugin}/selection.d.ts +0 -0
  28. /package/dist/types/{src/plugin → plugin}/toolBar.d.ts +0 -0
  29. /package/dist/types/{src/summary.d.ts → summary.d.ts} +0 -0
  30. /package/dist/types/{src/types → types}/dom.d.ts +0 -0
  31. /package/dist/types/{src/types → types}/global.d.ts +0 -0
  32. /package/dist/types/{src/types → types}/index.d.ts +0 -0
  33. /package/dist/types/{src/utils → utils}/LinkDragMoveHelper.d.ts +0 -0
  34. /package/dist/types/{src/utils → utils}/dom.d.ts +0 -0
  35. /package/dist/types/{src/utils → utils}/domManipulation.d.ts +0 -0
  36. /package/dist/types/{src/utils → utils}/dragMoveHelper.d.ts +0 -0
  37. /package/dist/types/{src/utils → utils}/generateBranch.d.ts +0 -0
  38. /package/dist/types/{src/utils → utils}/index.d.ts +0 -0
  39. /package/dist/types/{src/utils → utils}/layout-ssr.d.ts +0 -0
  40. /package/dist/types/{src/utils → utils}/layout.d.ts +0 -0
  41. /package/dist/types/{src/utils → utils}/objectManipulation.d.ts +0 -0
  42. /package/dist/types/{src/utils → utils}/pubsub.d.ts +0 -0
  43. /package/dist/types/{src/utils → utils}/svg.d.ts +0 -0
  44. /package/dist/types/{src/utils → utils}/theme.d.ts +0 -0
@@ -11,4 +11,4 @@ var MindElixir=function(){"use strict";var wo=Object.defineProperty;var xo=(K,O,
11
11
  border: 1px solid #ccc;
12
12
  border-radius: 2px;
13
13
  `,$e(i),e.scrollIntoView(i),i.addEventListener("keydown",s=>{s.stopPropagation();const r=s.key;if(r==="Enter"||r==="Tab"){if(s.shiftKey)return;s.preventDefault(),i.blur(),e.container.focus()}}),i.addEventListener("blur",()=>{var r;if(!i)return;const s=((r=i.textContent)==null?void 0:r.trim())||"";s===""?n.label=o:n.label=s,i.remove(),s!==o&&(t.textContent=n.label,re(t),"parent"in n?e.bus.fire("operation",{name:"finishEditSummary",obj:n}):e.bus.fire("operation",{name:"finishEditArrowLabel",obj:n}))})},Dt=function(e){const t=this.map.querySelector("me-root"),n=t.offsetTop,o=t.offsetLeft,i=t.offsetWidth,s=t.offsetHeight,r=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let l=0;l<r.length;l++){const c=r[l],a=c.querySelector("me-tpc"),{offsetLeft:f,offsetTop:d}=j(this.nodes,a),m=a.offsetWidth,u=a.offsetHeight,h=c.parentNode.className,p=this.generateMainBranch({pT:n,pL:o,pW:i,pH:s,cT:d,cL:f,cW:m,cH:u,direction:h,containerHeight:this.nodes.offsetHeight}),g=this.theme.palette,v=a.nodeObj.branchColor||g[l%g.length];if(a.style.borderColor=v,this.lines.appendChild(je(p,v,"3")),e&&e!==c)continue;const b=Z("subLines"),y=c.lastChild;y.tagName==="svg"&&y.remove(),c.appendChild(b),Re(this,b,v,c,h,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},Re=function(e,t,n,o,i,s){const r=o.firstChild,l=o.children[1].children;if(l.length===0)return;const c=r.offsetTop,a=r.offsetLeft,f=r.offsetWidth,d=r.offsetHeight;for(let m=0;m<l.length;m++){const u=l[m],h=u.firstChild,p=h.offsetTop,g=h.offsetLeft,v=h.offsetWidth,b=h.offsetHeight,y=h.firstChild.nodeObj.branchColor||n,C=e.generateSubBranch({pT:c,pL:a,pW:f,pH:d,cT:p,cL:g,cW:v,cH:b,direction:i,isFirst:s});t.appendChild(je(C,y,"2"));const E=h.children[1];if(E){if(!E.expanded)continue}else continue;Re(e,t,y,u,i)}},Fe={addChild:"插入子节点",addParent:"插入父节点",addSibling:"插入同级节点",removeNode:"删除节点",focus:"专注",cancelFocus:"取消专注",moveUp:"上移",moveDown:"下移",link:"连接",linkBidirectional:"双向连接",clickTips:"请点击目标节点",summary:"摘要"},Ie={cn:Fe,zh_CN:Fe,zh_TW:{addChild:"插入子節點",addParent:"插入父節點",addSibling:"插入同級節點",removeNode:"刪除節點",focus:"專注",cancelFocus:"取消專注",moveUp:"上移",moveDown:"下移",link:"連接",linkBidirectional:"雙向連接",clickTips:"請點擊目標節點",summary:"摘要"},en:{addChild:"Add child",addParent:"Add parent",addSibling:"Add sibling",removeNode:"Remove node",focus:"Focus Mode",cancelFocus:"Cancel Focus Mode",moveUp:"Move up",moveDown:"Move down",link:"Link",linkBidirectional:"Bidirectional Link",clickTips:"Please click the target node",summary:"Summary"},ru:{addChild:"Добавить дочерний элемент",addParent:"Добавить родительский элемент",addSibling:"Добавить на этом уровне",removeNode:"Удалить узел",focus:"Режим фокусировки",cancelFocus:"Отменить режим фокусировки",moveUp:"Поднять выше",moveDown:"Опустить ниже",link:"Ссылка",linkBidirectional:"Двунаправленная ссылка",clickTips:"Пожалуйста, нажмите на целевой узел",summary:"Описание"},ja:{addChild:"子ノードを追加する",addParent:"親ノードを追加します",addSibling:"兄弟ノードを追加する",removeNode:"ノードを削除",focus:"集中",cancelFocus:"集中解除",moveUp:"上へ移動",moveDown:"下へ移動",link:"コネクト",linkBidirectional:"双方向リンク",clickTips:"ターゲットノードをクリックしてください",summary:"概要"},pt:{addChild:"Adicionar item filho",addParent:"Adicionar item pai",addSibling:"Adicionar item irmao",removeNode:"Remover item",focus:"Modo Foco",cancelFocus:"Cancelar Modo Foco",moveUp:"Mover para cima",moveDown:"Mover para baixo",link:"Link",linkBidirectional:"Link bidirecional",clickTips:"Favor clicar no item alvo",summary:"Resumo"},it:{addChild:"Aggiungi figlio",addParent:"Aggiungi genitore",addSibling:"Aggiungi fratello",removeNode:"Rimuovi nodo",focus:"Modalità Focus",cancelFocus:"Annulla Modalità Focus",moveUp:"Sposta su",moveDown:"Sposta giù",link:"Collega",linkBidirectional:"Collegamento bidirezionale",clickTips:"Si prega di fare clic sul nodo di destinazione",summary:"Unisci nodi"},es:{addChild:"Agregar hijo",addParent:"Agregar padre",addSibling:"Agregar hermano",removeNode:"Eliminar nodo",focus:"Modo Enfoque",cancelFocus:"Cancelar Modo Enfoque",moveUp:"Mover hacia arriba",moveDown:"Mover hacia abajo",link:"Enlace",linkBidirectional:"Enlace bidireccional",clickTips:"Por favor haga clic en el nodo de destino",summary:"Resumen"},fr:{addChild:"Ajout enfant",addParent:"Ajout parent",addSibling:"Ajout voisin",removeNode:"Supprimer",focus:"Cibler",cancelFocus:"Retour",moveUp:"Monter",moveDown:"Descendre",link:"Lier",linkBidirectional:"Lien bidirectionnel",clickTips:"Cliquer sur le noeud cible",summary:"Annoter"},ko:{addChild:"자식 추가",addParent:"부모 추가",addSibling:"형제 추가",removeNode:"노드 삭제",focus:"포커스 모드",cancelFocus:"포커스 모드 취소",moveUp:"위로 이동",moveDown:"아래로 이동",link:"연결",linkBidirectional:"양방향 연결",clickTips:"대상 노드를 클릭하십시오",summary:"요약"}},Eo="";function Pt(e,t){t=t===!0?{focus:!0,link:!0}:t;const n=x=>{const w=document.createElement("div");return w.innerText=x,w.className="tips",w},o=(x,w,S)=>{const N=document.createElement("li");return N.id=x,N.innerHTML=`<span>${me(w)}</span><span ${S?'class="key"':""}>${me(S)}</span>`,N},i=Ie[e.locale]?e.locale:"en",s=Ie[i],r=o("cm-add_child",s.addChild,"Tab"),l=o("cm-add_parent",s.addParent,"Ctrl + Enter"),c=o("cm-add_sibling",s.addSibling,"Enter"),a=o("cm-remove_child",s.removeNode,"Delete"),f=o("cm-fucus",s.focus,""),d=o("cm-unfucus",s.cancelFocus,""),m=o("cm-up",s.moveUp,"PgUp"),u=o("cm-down",s.moveDown,"Pgdn"),h=o("cm-link",s.link,""),p=o("cm-link-bidirectional",s.linkBidirectional,""),g=o("cm-summary",s.summary,""),v=document.createElement("ul");if(v.className="menu-list",v.appendChild(r),v.appendChild(l),v.appendChild(c),v.appendChild(a),t.focus&&(v.appendChild(f),v.appendChild(d)),v.appendChild(m),v.appendChild(u),v.appendChild(g),t.link&&(v.appendChild(h),v.appendChild(p)),t&&t.extend)for(let x=0;x<t.extend.length;x++){const w=t.extend[x],S=o(w.name,w.name,w.key||"");v.appendChild(S),S.onclick=N=>{w.onclick(N)}}const b=document.createElement("div");b.className="context-menu",b.appendChild(v),b.hidden=!0,e.container.append(b);let y=!0;const C=x=>{const w=x.target;if(ye(w)){w.parentElement.tagName==="ME-ROOT"?y=!0:y=!1,y?(f.className="disabled",m.className="disabled",u.className="disabled",l.className="disabled",c.className="disabled",a.className="disabled"):(f.className="",m.className="",u.className="",l.className="",c.className="",a.className=""),b.hidden=!1,v.style.top="",v.style.bottom="",v.style.left="",v.style.right="";const S=v.getBoundingClientRect(),N=v.offsetHeight,k=v.offsetWidth,R=x.clientY-S.top,G=x.clientX-S.left;N+R>window.innerHeight?(v.style.top="",v.style.bottom="0px"):(v.style.bottom="",v.style.top=R+15+"px"),k+G>window.innerWidth?(v.style.left="",v.style.right="0px"):(v.style.right="",v.style.left=G+10+"px")}};e.bus.addListener("showContextMenu",C),b.onclick=x=>{x.target===b&&(b.hidden=!0)},r.onclick=()=>{e.addChild(),b.hidden=!0},l.onclick=()=>{e.insertParent(),b.hidden=!0},c.onclick=()=>{y||(e.insertSibling("after"),b.hidden=!0)},a.onclick=()=>{y||(e.removeNodes(e.currentNodes||[]),b.hidden=!0)},f.onclick=()=>{y||(e.focusNode(e.currentNode),b.hidden=!0)},d.onclick=()=>{e.cancelFocus(),b.hidden=!0},m.onclick=()=>{y||(e.moveUpNode(),b.hidden=!0)},u.onclick=()=>{y||(e.moveDownNode(),b.hidden=!0)};const E=x=>{b.hidden=!0;const w=e.currentNode,S=n(s.clickTips);e.container.appendChild(S),e.map.addEventListener("click",N=>{N.preventDefault(),S.remove();const k=N.target;(k.parentElement.tagName==="ME-PARENT"||k.parentElement.tagName==="ME-ROOT")&&e.createArrow(w,k,x)},{once:!0})};return h.onclick=()=>E(),p.onclick=()=>E({bidirectional:!0}),g.onclick=()=>{b.hidden=!0,e.createSummary(),e.unselectNodes(e.currentNodes)},()=>{r.onclick=null,l.onclick=null,c.onclick=null,a.onclick=null,f.onclick=null,d.onclick=null,m.onclick=null,u.onclick=null,h.onclick=null,g.onclick=null,b.onclick=null,e.container.oncontextmenu=null}}const Se=document,Ot=function(e,t){if(!t)return Ne(e),e;let n=e.querySelector(".insert-preview");const o=`insert-preview ${t} show`;return n||(n=Se.createElement("div"),e.appendChild(n)),n.className=o,e},Ne=function(e){if(!e)return;const t=e.querySelectorAll(".insert-preview");for(const n of t||[])n.remove()},We=function(e,t){for(const n of t){const o=n.parentElement.parentElement.contains(e);if(!(e&&e.tagName==="ME-TPC"&&e!==n&&!o&&e.nodeObj.parent))return!1}return!0},$t=function(e){const t=document.createElement("div");return t.className="mind-elixir-ghost",e.container.appendChild(t),t};class jt{constructor(t){ee(this,"mind");ee(this,"isMoving",!1);ee(this,"interval",null);ee(this,"speed",20);this.mind=t}move(t,n){this.isMoving||(this.isMoving=!0,this.interval=setInterval(()=>{this.mind.move(t*this.speed*this.mind.scaleVal,n*this.speed*this.mind.scaleVal)},100))}stop(){this.isMoving=!1,clearInterval(this.interval)}}function Ht(e){let t=null,n=null;const o=$t(e),i=new jt(e),s=a=>{e.selection.cancel();const f=a.target;if((f==null?void 0:f.tagName)!=="ME-TPC"){a.preventDefault();return}let d=e.currentNodes;d!=null&&d.includes(f)||(e.selectNode(f),d=e.currentNodes),e.dragged=d,d.length>1?o.innerHTML=d.length+"":o.innerHTML=f.innerHTML;for(const m of d)m.parentElement.parentElement.style.opacity="0.5";a.dataTransfer.setDragImage(o,0,0),a.dataTransfer.dropEffect="move",e.dragMoveHelper.clear()},r=a=>{const{dragged:f}=e;if(!f)return;i.stop();for(const m of f)m.parentElement.parentElement.style.opacity="1";const d=a.target;d.style.opacity="",n&&(Ne(n),t==="before"?e.moveNodeBefore(f,n):t==="after"?e.moveNodeAfter(f,n):t==="in"&&e.moveNodeIn(f,n),e.dragged=null,o.innerHTML="")},l=a=>{a.preventDefault();const f=12*e.scaleVal,{dragged:d}=e;if(!d)return;const m=e.container.getBoundingClientRect();a.clientX<m.x+50?i.move(1,0):a.clientX>m.x+m.width-50?i.move(-1,0):a.clientY<m.y+50?i.move(0,1):a.clientY>m.y+m.height-50?i.move(0,-1):i.stop(),Ne(n);const u=Se.elementFromPoint(a.clientX,a.clientY-f);if(We(u,d)){n=u;const h=u.getBoundingClientRect(),p=h.y;a.clientY>p+h.height?t="after":t="in"}else{const h=Se.elementFromPoint(a.clientX,a.clientY+f),p=h.getBoundingClientRect();if(We(h,d)){n=h;const g=p.y;a.clientY<g?t="before":t="in"}else t=n=null}n&&Ot(n,t)};return we([{dom:e.map,evt:"dragstart",func:s},{dom:e.map,evt:"dragend",func:r},{dom:e.map,evt:"dragover",func:l}])}const Bt=function(e){return["createSummary","removeSummary","finishEditSummary"].includes(e.name)?{type:"summary",value:e.obj.id}:["createArrow","removeArrow","finishEditArrowLabel"].includes(e.name)?{type:"arrow",value:e.obj.id}:["removeNodes","copyNodes","moveNodeBefore","moveNodeAfter","moveNodeIn"].includes(e.name)?{type:"nodes",value:e.objs.map(t=>t.id)}:{type:"nodes",value:[e.obj.id]}};function Rt(e){let t=[],n=-1,o=e.getData(),i=[];e.undo=function(){if(n>-1){const c=t[n];o=c.prev,e.refresh(c.prev);try{c.currentTarget.type==="nodes"&&(c.operation==="removeNodes"?e.selectNodes(c.currentTarget.value.map(a=>this.findEle(a))):e.selectNodes(c.currentSelected.map(a=>this.findEle(a))))}catch{}finally{n--}}},e.redo=function(){if(n<t.length-1){n++;const c=t[n];o=c.next,e.refresh(c.next);try{c.currentTarget.type==="nodes"&&(c.operation==="removeNodes"?e.selectNodes(c.currentSelected.map(a=>this.findEle(a))):e.selectNodes(c.currentTarget.value.map(a=>this.findEle(a))))}catch{}}};const s=function(c){if(c.name==="beginEdit")return;t=t.slice(0,n+1);const a=e.getData(),f={prev:o,operation:c.name,currentSelected:i.map(d=>d.id),currentTarget:Bt(c),next:a};t.push(f),o=a,n=t.length-1},r=function(c){(c.metaKey||c.ctrlKey)&&(c.shiftKey&&c.key==="Z"||c.key==="y")?e.redo():(c.metaKey||c.ctrlKey)&&c.key==="z"&&e.undo()},l=function(c){i=e.currentNodes.map(a=>a.nodeObj)};return e.bus.addListener("operation",s),e.bus.addListener("selectNodes",l),e.container.addEventListener("keydown",r),()=>{e.bus.removeListener("operation",s),e.bus.removeListener("selectNodes",l),e.container.removeEventListener("keydown",r)}}const Ft='<?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"><svg t="1750169394918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2021" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2022"></path></svg>',It='<?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"><svg t="1750169375313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1775" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="1776"></path></svg>',Wt='<?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"><svg t="1750169667709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3037" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="3038"></path></svg>',Gt='<?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"><svg t="1750169402629" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2170" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2171"></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" p-id="2172"></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" p-id="2173"></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" p-id="2174"></path></svg>',Kt='<?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"><svg t="1750169573443" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2883" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="2884"></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="currentColor" p-id="2885"></path></svg>',Yt='<?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"><svg t="1750169419447" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2480" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2481"></path></svg>',qt='<?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"><svg t="1750169426515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2730" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2731"></path></svg>',So="",zt={side:Ft,left:It,right:Wt,full:Gt,living:Kt,zoomin:Yt,zoomout:qt},I=(e,t)=>{const n=document.createElement("span");return n.id=e,n.innerHTML=zt[t],n};function Vt(e){const t=document.createElement("div"),n=I("fullscreen","full"),o=I("toCenter","living"),i=I("zoomout","zoomout"),s=I("zoomin","zoomin"),r=document.createElement("span");return r.innerText="100%",t.appendChild(n),t.appendChild(o),t.appendChild(i),t.appendChild(s),t.className="mind-elixir-toolbar rb",n.onclick=()=>{document.fullscreenElement===e.el?document.exitFullscreen():e.el.requestFullscreen()},o.onclick=()=>{e.toCenter()},i.onclick=()=>{e.scale(e.scaleVal-e.scaleSensitivity)},s.onclick=()=>{e.scale(e.scaleVal+e.scaleSensitivity)},t}function Xt(e){const t=document.createElement("div"),n=I("tbltl","left"),o=I("tbltr","right"),i=I("tblts","side");return t.appendChild(n),t.appendChild(o),t.appendChild(i),t.className="mind-elixir-toolbar lt",n.onclick=()=>{e.initLeft()},o.onclick=()=>{e.initRight()},i.onclick=()=>{e.initSide()},t}function Ut(e){e.container.append(Vt(e)),e.container.append(Xt(e))}/*! @viselect/vanilla v3.9.0 MIT | https://github.com/Simonwep/selection/tree/master/packages/vanilla */class Jt{constructor(){this._listeners=new Map,this.on=this.addEventListener,this.off=this.removeEventListener,this.emit=this.dispatchEvent}addEventListener(t,n){const o=this._listeners.get(t)??new Set;return this._listeners.set(t,o),o.add(n),this}removeEventListener(t,n){var o;return(o=this._listeners.get(t))==null||o.delete(n),this}dispatchEvent(t,...n){let o=!0;for(const i of this._listeners.get(t)??[])o=i(...n)!==!1&&o;return o}unbindAllListeners(){this._listeners.clear()}}const Ge=(e,t="px")=>typeof e=="number"?e+t:e,H=({style:e},t,n)=>{if(typeof t=="object")for(const[o,i]of Object.entries(t))i!==void 0&&(e[o]=Ge(i));else n!==void 0&&(e[t]=Ge(n))},Ke=(e=0,t=0,n=0,o=0)=>{const i={x:e,y:t,width:n,height:o,top:t,left:e,right:e+n,bottom:t+o};return{...i,toJSON:()=>JSON.stringify(i)}},Zt=e=>{let t,n=-1,o=!1;return{next:(...i)=>{t=i,o||(o=!0,n=requestAnimationFrame(()=>{e(...t),o=!1}))},cancel:()=>{cancelAnimationFrame(n),o=!1}}},Ye=(e,t,n="touch")=>{switch(n){case"center":{const o=t.left+t.width/2,i=t.top+t.height/2;return o>=e.left&&o<=e.right&&i>=e.top&&i<=e.bottom}case"cover":return t.left>=e.left&&t.top>=e.top&&t.right<=e.right&&t.bottom<=e.bottom;case"touch":return e.right>=t.left&&e.left<=t.right&&e.bottom>=t.top&&e.top<=t.bottom}},Qt=()=>matchMedia("(hover: none), (pointer: coarse)").matches,en=()=>"safari"in window,ke=e=>Array.isArray(e)?e:[e],qe=e=>(t,n,o,i={})=>{(t instanceof HTMLCollection||t instanceof NodeList)&&(t=Array.from(t)),n=ke(n),t=ke(t);for(const s of t)if(s)for(const r of n)s[e](r,o,{capture:!1,...i})},B=qe("addEventListener"),M=qe("removeEventListener"),le=e=>{var t;const{clientX:n,clientY:o,target:i}=((t=e.touches)==null?void 0:t[0])??e;return{x:n,y:o,target:i}},V=(e,t=document)=>ke(e).map(n=>typeof n=="string"?Array.from(t.querySelectorAll(n)):n instanceof Element?n:null).flat().filter(Boolean),tn=(e,t)=>t.some(n=>typeof n=="number"?e.button===n:typeof n=="object"?n.button!==e.button?!1:n.modifiers.every(o=>{switch(o){case"alt":return e.altKey;case"ctrl":return e.ctrlKey||e.metaKey;case"shift":return e.shiftKey}}):!1),{abs:W,max:ze,min:Ve,ceil:Xe}=Math,Ue=(e=[])=>({stored:e,selected:[],touched:[],changed:{added:[],removed:[]}}),Je=class extends Jt{constructor(t){var n,o,i,s,r;super(),this._selection=Ue(),this._targetBoundaryScrolled=!0,this._selectables=[],this._areaLocation={y1:0,x2:0,y2:0,x1:0},this._areaRect=Ke(),this._singleClick=!0,this._scrollAvailable=!0,this._scrollingActive=!1,this._scrollSpeed={x:0,y:0},this._scrollDelta={x:0,y:0},this._lastMousePosition={x:0,y:0},this.enable=this._toggleStartEvents,this.disable=this._toggleStartEvents.bind(this,!1),this._options={selectionAreaClass:"selection-area",selectionContainerClass:void 0,selectables:[],document:window.document,startAreas:["html"],boundaries:["html"],container:"body",...t,behaviour:{overlap:"invert",intersect:"touch",triggers:[0],...t.behaviour,startThreshold:(n=t.behaviour)!=null&&n.startThreshold?typeof t.behaviour.startThreshold=="number"?t.behaviour.startThreshold:{x:10,y:10,...t.behaviour.startThreshold}:{x:10,y:10},scrolling:{speedDivider:10,manualSpeed:750,...(o=t.behaviour)==null?void 0:o.scrolling,startScrollMargins:{x:0,y:0,...(s=(i=t.behaviour)==null?void 0:i.scrolling)==null?void 0:s.startScrollMargins}}},features:{range:!0,touch:!0,deselectOnBlur:!1,...t.features,singleTap:{allow:!0,intersect:"native",...(r=t.features)==null?void 0:r.singleTap}}};for(const f of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))typeof this[f]=="function"&&(this[f]=this[f].bind(this));const{document:l,selectionAreaClass:c,selectionContainerClass:a}=this._options;this._area=l.createElement("div"),this._clippingElement=l.createElement("div"),this._clippingElement.appendChild(this._area),this._area.classList.add(c),a&&this._clippingElement.classList.add(a),H(this._area,{willChange:"top, left, bottom, right, width, height",top:0,left:0,position:"fixed"}),H(this._clippingElement,{overflow:"hidden",position:"fixed",transform:"translate3d(0, 0, 0)",pointerEvents:"none",zIndex:"1"}),this._frame=Zt(f=>{this._recalculateSelectionAreaRect(),this._updateElementSelection(),this._emitEvent("move",f),this._redrawSelectionArea()}),this.enable()}_toggleStartEvents(t=!0){const{document:n,features:o}=this._options,i=t?B:M;i(n,"mousedown",this._onTapStart),o.touch&&i(n,"touchstart",this._onTapStart,{passive:!1})}_onTapStart(t,n=!1){const{x:o,y:i,target:s}=le(t),{document:r,startAreas:l,boundaries:c,features:a,behaviour:f}=this._options,d=s.getBoundingClientRect();if(t instanceof MouseEvent&&!tn(t,f.triggers))return;const m=V(l,r),u=V(c,r);this._targetElement=u.find(v=>Ye(v.getBoundingClientRect(),d));const h=t.composedPath(),p=m.find(v=>h.includes(v));if(this._targetBoundary=u.find(v=>h.includes(v)),!this._targetElement||!p||!this._targetBoundary||!n&&this._emitEvent("beforestart",t)===!1)return;this._areaLocation={x1:o,y1:i,x2:0,y2:0};const g=r.scrollingElement??r.body;this._scrollDelta={x:g.scrollLeft,y:g.scrollTop},this._singleClick=!0,this.clearSelection(!1,!0),B(r,["touchmove","mousemove"],this._delayedTapMove,{passive:!1}),B(r,["mouseup","touchcancel","touchend"],this._onTapStop),B(r,"scroll",this._onScroll),a.deselectOnBlur&&(this._targetBoundaryScrolled=!1,B(this._targetBoundary,"scroll",this._onStartAreaScroll))}_onSingleTap(t){const{singleTap:{intersect:n},range:o}=this._options.features,i=le(t);let s;if(n==="native")s=i.target;else if(n==="touch"){this.resolveSelectables();const{x:l,y:c}=i;s=this._selectables.find(a=>{const{right:f,left:d,top:m,bottom:u}=a.getBoundingClientRect();return l<f&&l>d&&c<u&&c>m})}if(!s)return;for(this.resolveSelectables();!this._selectables.includes(s);)if(s.parentElement)s=s.parentElement;else{this._targetBoundaryScrolled||this.clearSelection();return}const{stored:r}=this._selection;if(this._emitEvent("start",t),t.shiftKey&&o&&this._latestElement){const l=this._latestElement,[c,a]=l.compareDocumentPosition(s)&4?[s,l]:[l,s],f=[...this._selectables.filter(d=>d.compareDocumentPosition(c)&4&&d.compareDocumentPosition(a)&2),c,a];this.select(f),this._latestElement=l}else r.includes(s)&&(r.length===1||t.ctrlKey||r.every(l=>this._selection.stored.includes(l)))?this.deselect(s):(this.select(s),this._latestElement=s)}_delayedTapMove(t){const{container:n,document:o,behaviour:{startThreshold:i}}=this._options,{x1:s,y1:r}=this._areaLocation,{x:l,y:c}=le(t);if(typeof i=="number"&&W(l+c-(s+r))>=i||typeof i=="object"&&W(l-s)>=i.x||W(c-r)>=i.y){if(M(o,["mousemove","touchmove"],this._delayedTapMove,{passive:!1}),this._emitEvent("beforedrag",t)===!1){M(o,["mouseup","touchcancel","touchend"],this._onTapStop);return}B(o,["mousemove","touchmove"],this._onTapMove,{passive:!1}),H(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&&(B(this._targetElement,"wheel",this._wheelScroll,{passive:!1}),B(this._options.document,"keydown",this._keyboardScroll,{passive:!1}),this._selectables=this._selectables.filter(a=>this._targetElement.contains(a))),this._setupSelectionArea(),this._emitEvent("start",t),this._onTapMove(t)}this._handleMoveEvent(t)}_setupSelectionArea(){const{_clippingElement:t,_targetElement:n,_area:o}=this,i=this._targetRect=n.getBoundingClientRect();this._scrollAvailable?(H(t,{top:i.top,left:i.left,width:i.width,height:i.height}),H(o,{marginTop:-i.top,marginLeft:-i.left})):(H(t,{top:0,left:0,width:"100%",height:"100%"}),H(o,{marginTop:0,marginLeft:0}))}_onTapMove(t){const{_scrollSpeed:n,_areaLocation:o,_options:i,_frame:s}=this,{speedDivider:r}=i.behaviour.scrolling,l=this._targetElement,{x:c,y:a}=le(t);if(o.x2=c,o.y2=a,this._lastMousePosition.x=c,this._lastMousePosition.y=a,this._scrollAvailable&&!this._scrollingActive&&(n.y||n.x)){this._scrollingActive=!0;const f=()=>{if(!n.x&&!n.y){this._scrollingActive=!1;return}const{scrollTop:d,scrollLeft:m}=l;n.y&&(l.scrollTop+=Xe(n.y/r),o.y1-=l.scrollTop-d),n.x&&(l.scrollLeft+=Xe(n.x/r),o.x1-=l.scrollLeft-m),s.next(t),requestAnimationFrame(f)};requestAnimationFrame(f)}else s.next(t);this._handleMoveEvent(t)}_handleMoveEvent(t){const{features:n}=this._options;(n.touch&&Qt()||this._scrollAvailable&&en())&&t.preventDefault()}_onScroll(){const{_scrollDelta:t,_options:{document:n}}=this,{scrollTop:o,scrollLeft:i}=n.scrollingElement??n.body;this._areaLocation.x1+=t.x-i,this._areaLocation.y1+=t.y-o,t.x=i,t.y=o,this._setupSelectionArea(),this._frame.next(null)}_onStartAreaScroll(){this._targetBoundaryScrolled=!0,M(this._targetElement,"scroll",this._onStartAreaScroll)}_wheelScroll(t){const{manualSpeed:n}=this._options.behaviour.scrolling,o=t.deltaY?t.deltaY>0?1:-1:0,i=t.deltaX?t.deltaX>0?1:-1:0;this._scrollSpeed.y+=o*n,this._scrollSpeed.x+=i*n,this._onTapMove(t),t.preventDefault()}_keyboardScroll(t){const{manualSpeed:n}=this._options.behaviour.scrolling,o=t.key==="ArrowLeft"?-1:t.key==="ArrowRight"?1:0,i=t.key==="ArrowUp"?-1:t.key==="ArrowDown"?1:0;this._scrollSpeed.x+=Math.sign(o)*n,this._scrollSpeed.y+=Math.sign(i)*n,t.preventDefault(),this._onTapMove({clientX:this._lastMousePosition.x,clientY:this._lastMousePosition.y,preventDefault:()=>{}})}_recalculateSelectionAreaRect(){const{_scrollSpeed:t,_areaLocation:n,_targetElement:o,_options:i}=this,{scrollTop:s,scrollHeight:r,clientHeight:l,scrollLeft:c,scrollWidth:a,clientWidth:f}=o,d=this._targetRect,{x1:m,y1:u}=n;let{x2:h,y2:p}=n;const{behaviour:{scrolling:{startScrollMargins:g}}}=i;h<d.left+g.x?(t.x=c?-W(d.left-h+g.x):0,h=h<d.left?d.left:h):h>d.right-g.x?(t.x=a-c-f?W(d.left+d.width-h-g.x):0,h=h>d.right?d.right:h):t.x=0,p<d.top+g.y?(t.y=s?-W(d.top-p+g.y):0,p=p<d.top?d.top:p):p>d.bottom-g.y?(t.y=r-s-l?W(d.top+d.height-p-g.y):0,p=p>d.bottom?d.bottom:p):t.y=0;const v=Ve(m,h),b=Ve(u,p),y=ze(m,h),C=ze(u,p);this._areaRect=Ke(v,b,y-v,C-b)}_redrawSelectionArea(){const{x:t,y:n,width:o,height:i}=this._areaRect,{style:s}=this._area;s.left=`${t}px`,s.top=`${n}px`,s.width=`${o}px`,s.height=`${i}px`}_onTapStop(t,n){var o;const{document:i,features:s}=this._options,{_singleClick:r}=this;M(this._targetElement,"scroll",this._onStartAreaScroll),M(i,["mousemove","touchmove"],this._delayedTapMove),M(i,["touchmove","mousemove"],this._onTapMove),M(i,["mouseup","touchcancel","touchend"],this._onTapStop),M(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,M(this._targetElement,"wheel",this._wheelScroll,{passive:!0}),M(this._options.document,"keydown",this._keyboardScroll,{passive:!0}),this._clippingElement.remove(),(o=this._frame)==null||o.cancel(),H(this._area,"display","none")}_updateElementSelection(){const{_selectables:t,_options:n,_selection:o,_areaRect:i}=this,{stored:s,selected:r,touched:l}=o,{intersect:c,overlap:a}=n.behaviour,f=a==="invert",d=[],m=[],u=[];for(let p=0;p<t.length;p++){const g=t[p];if(Ye(i,g.getBoundingClientRect(),c)){if(r.includes(g))s.includes(g)&&!l.includes(g)&&l.push(g);else if(f&&s.includes(g)){u.push(g);continue}else m.push(g);d.push(g)}}f&&m.push(...s.filter(p=>!r.includes(p)));const h=a==="keep";for(let p=0;p<r.length;p++){const g=r[p];!d.includes(g)&&!(h&&s.includes(g))&&u.push(g)}o.selected=d,o.changed={added:m,removed:u},this._latestElement=void 0}_emitEvent(t,n){return this.emit(t,{event:n,store:this._selection,selection:this})}_keepSelection(){const{_options:t,_selection:n}=this,{selected:o,changed:i,touched:s,stored:r}=n,l=o.filter(c=>!r.includes(c));switch(t.behaviour.overlap){case"drop":{n.stored=[...l,...r.filter(c=>!s.includes(c))];break}case"invert":{n.stored=[...l,...r.filter(c=>!i.removed.includes(c))];break}case"keep":{n.stored=[...r,...o.filter(c=>!r.includes(c))];break}}}trigger(t,n=!0){this._onTapStart(t,n)}resolveSelectables(){this._selectables=V(this._options.selectables,this._options.document)}clearSelection(t=!0,n=!1){const{selected:o,stored:i,changed:s}=this._selection;s.added=[],s.removed.push(...o,...t?i:[]),n||(this._emitEvent("move",null),this._emitEvent("stop",null)),this._selection=Ue(t?[]:i)}getSelection(){return this._selection.stored}getSelectionArea(){return this._area}getSelectables(){return this._selectables}setAreaLocation(t){Object.assign(this._areaLocation,t),this._redrawSelectionArea()}getAreaLocation(){return this._areaLocation}cancel(t=!1){this._onTapStop(null,!t)}destroy(){this.cancel(),this.disable(),this._clippingElement.remove(),super.unbindAllListeners()}select(t,n=!1){const{changed:o,selected:i,stored:s}=this._selection,r=V(t,this._options.document).filter(l=>!i.includes(l)&&!s.includes(l));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}deselect(t,n=!1){const{selected:o,stored:i,changed:s}=this._selection,r=V(t,this._options.document).filter(l=>o.includes(l)||i.includes(l));this._selection.stored=i.filter(l=>!r.includes(l)),this._selection.selected=o.filter(l=>!r.includes(l)),this._selection.changed.added=[],this._selection.changed.removed.push(...r.filter(l=>!s.removed.includes(l))),this._latestElement=void 0,n||(this._emitEvent("move",null),this._emitEvent("stop",null))}};Je.version="3.9.0";let nn=Je;function on(e){const t=e.mouseSelectionButton===2?[2]:[0],n=new nn({selectables:[".map-container me-tpc"],boundaries:[e.container],container:e.selectionContainer,features:{touch:!1},behaviour:{triggers:t,scrolling:{speedDivider:10,manualSpeed:750,startScrollMargins:{x:10,y:10}}}}).on("beforestart",({event:o})=>{var r;const i=o.target;if(i.id==="input-box"||i.className==="circle"||(r=e.container.querySelector(".context-menu"))!=null&&r.contains(i))return!1;if(!o.ctrlKey&&!o.metaKey){if(i.tagName==="ME-TPC"&&i.classList.contains("selected"))return!1;e.clearSelection()}const s=n.getSelectionArea();return s.style.background="#4f90f22d",s.style.border="1px solid #4f90f2",s.parentElement&&(s.parentElement.style.zIndex="9999"),!0}).on("move",({store:{changed:{added:o,removed:i}}})=>{if(o.length>0||i.length>0,o.length>0){for(const s of o)s.className="selected";e.currentNodes=[...e.currentNodes,...o],e.bus.fire("selectNodes",o.map(s=>s.nodeObj))}if(i.length>0){for(const s of i)s.classList.remove("selected");e.currentNodes=e.currentNodes.filter(s=>!(i!=null&&i.includes(s))),e.bus.fire("unselectNodes",i.map(s=>s.nodeObj))}});e.selection=n}const sn=function(e,t=!0){this.theme=e;const o={...(e.type==="dark"?ge:pe).cssVar,...e.cssVar},i=Object.keys(o);for(let s=0;s<i.length;s++){const r=i[s];this.container.style.setProperty(r,o[r])}t&&this.refresh()},X=e=>{var o;const t=(o=e.parent)==null?void 0:o.children,n=(t==null?void 0:t.indexOf(e))??0;return{siblings:t,index:n}};function rn(e){const{siblings:t,index:n}=X(e);if(t===void 0)return;const o=t[n];n===0?(t[n]=t[t.length-1],t[t.length-1]=o):(t[n]=t[n-1],t[n-1]=o)}function ln(e){const{siblings:t,index:n}=X(e);if(t===void 0)return;const o=t[n];n===t.length-1?(t[n]=t[0],t[0]=o):(t[n]=t[n+1],t[n+1]=o)}function Ze(e){const{siblings:t,index:n}=X(e);return t===void 0?0:(t.splice(n,1),t.length)}function cn(e,t,n){const{siblings:o,index:i}=X(n);o!==void 0&&(t==="before"?o.splice(i,0,e):o.splice(i+1,0,e))}function an(e,t){const{siblings:n,index:o}=X(e);n!==void 0&&(n[o]=t,t.children=[e])}function Qe(e,t,n){var o;if(Ze(t),(o=n.parent)!=null&&o.parent||(t.direction=n.direction),e==="in")n.children?n.children.push(t):n.children=[t];else{t.direction!==void 0&&(t.direction=n.direction);const{siblings:i,index:s}=X(n);if(i===void 0)return;e==="before"?i.splice(s,0,t):i.splice(s+1,0,t)}}const dn=function({map:e,direction:t},n){var o,i;if(t===0)return 0;if(t===1)return 1;if(t===2){const s=((o=e.querySelector(".lhs"))==null?void 0:o.childElementCount)||0,r=((i=e.querySelector(".rhs"))==null?void 0:i.childElementCount)||0;return s<=r?(n.direction=0,0):(n.direction=1,1)}},et=function(e,t,n){var s,r;const o=n.children[0].children[0],i=t.parentElement;if(i.tagName==="ME-PARENT"){if(Q(o),i.children[1])i.nextSibling.appendChild(n);else{const l=e.createChildren([n]);i.appendChild(Ce(!0)),i.insertAdjacentElement("afterend",l)}e.linkDiv(n.offsetParent)}else i.tagName==="ME-ROOT"&&(dn(e,o.nodeObj)===0?(s=e.container.querySelector(".lhs"))==null||s.appendChild(n):(r=e.container.querySelector(".rhs"))==null||r.appendChild(n),e.linkDiv())},hn=function(e,t){const n=e.parentNode;if(t===0){const o=n.parentNode.parentNode;o.tagName!=="ME-MAIN"&&(o.previousSibling.children[1].remove(),o.remove())}n.parentNode.remove()},tt={before:"beforebegin",after:"afterend"},Q=function(e){const n=e.parentElement.parentElement.lastElementChild;(n==null?void 0:n.tagName)==="svg"&&(n==null||n.remove())},un=function(e,t){const n=e.nodeObj,o=be(n);o.style&&t.style&&(t.style=Object.assign(o.style,t.style));const i=Object.assign(n,t);xe.call(this,e,i),this.linkDiv(),this.bus.fire("operation",{name:"reshapeNode",obj:i,origin:o})},_e=function(e,t,n){if(!t)return null;const o=t.nodeObj;o.expanded===!1&&(e.expandNode(t,!0),t=e.findEle(o.id));const i=n||e.generateNewObj();o.children?o.children.push(i):o.children=[i],$(e.nodeData);const{grp:s,top:r}=e.createWrapper(i);return et(e,t,s),{newTop:r,newNodeObj:i}},fn=function(e,t,n){var a,f,d,m;const o=t||this.currentNode;if(!o)return;const i=o.nodeObj;if(i.parent){if(!((a=i.parent)!=null&&a.parent)&&((d=(f=i.parent)==null?void 0:f.children)==null?void 0:d.length)===1&&this.direction===2){this.addChild(this.findEle(i.parent.id),n);return}}else{this.addChild();return}const s=n||this.generateNewObj();if(!((m=i.parent)!=null&&m.parent)){const u=o.closest("me-main").className===A.LHS?0:1;s.direction=u}cn(s,e,i),$(this.nodeData);const r=o.parentElement,{grp:l,top:c}=this.createWrapper(s);r.parentElement.insertAdjacentElement(tt[e],l),this.linkDiv(l.offsetParent),n||this.editTopic(c.firstChild),this.bus.fire("operation",{name:"insertSibling",type:e,obj:s}),this.selectNode(c.firstChild,!0)},pn=function(e,t){const n=e||this.currentNode;if(!n)return;Q(n);const o=n.nodeObj;if(!o.parent)return;const i=t||this.generateNewObj();an(o,i),$(this.nodeData);const s=n.parentElement.parentElement,{grp:r,top:l}=this.createWrapper(i,!0);l.appendChild(Ce(!0)),s.insertAdjacentElement("afterend",r);const c=this.createChildren([s]);l.insertAdjacentElement("afterend",c),this.linkDiv(),t||this.editTopic(l.firstChild),this.selectNode(l.firstChild,!0),this.bus.fire("operation",{name:"insertParent",obj:i})},gn=function(e,t){const n=e||this.currentNode;if(!n)return;const o=_e(this,n,t);if(!o)return;const{newTop:i,newNodeObj:s}=o;this.bus.fire("operation",{name:"addChild",obj:s}),t||this.editTopic(i.firstChild),this.selectNode(i.firstChild,!0)},mn=function(e,t){const n=be(e.nodeObj);ve(n);const o=_e(this,t,n);if(!o)return;const{newNodeObj:i}=o;this.selectNode(this.findEle(i.id)),this.bus.fire("operation",{name:"copyNode",obj:i})},vn=function(e,t){e=oe(e);const n=[];for(let o=0;o<e.length;o++){const i=e[o],s=be(i.nodeObj);ve(s);const r=_e(this,t,s);if(!r)return;const{newNodeObj:l}=r;n.push(l)}this.unselectNodes(this.currentNodes),this.selectNodes(n.map(o=>this.findEle(o.id))),this.bus.fire("operation",{name:"copyNodes",objs:n})},bn=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;rn(n);const o=t.parentNode.parentNode;o.parentNode.insertBefore(o,o.previousSibling),this.linkDiv(),this.bus.fire("operation",{name:"moveUpNode",obj:n})},yn=function(e){const t=e||this.currentNode;if(!t)return;const n=t.nodeObj;ln(n);const o=t.parentNode.parentNode;o.nextSibling?o.nextSibling.insertAdjacentElement("afterend",o):o.parentNode.prepend(o),this.linkDiv(),this.bus.fire("operation",{name:"moveDownNode",obj:n})},wn=function(e){if(e.length===0)return;e=oe(e);for(const n of e){const o=n.nodeObj,i=Ze(o);hn(n,i)}const t=e[e.length-1];this.selectNode(this.findEle(t.nodeObj.parent.id)),this.linkDiv(),this.bus.fire("operation",{name:"removeNodes",objs:e.map(n=>n.nodeObj)})},xn=function(e,t){e=oe(e);const n=t.nodeObj;n.expanded===!1&&(this.expandNode(t,!0),t=this.findEle(n.id));for(const o of e){const i=o.nodeObj;Qe("in",i,n),$(this.nodeData);const s=o.parentElement;et(this,t,s.parentElement)}this.linkDiv(),this.bus.fire("operation",{name:"moveNodeIn",objs:e.map(o=>o.nodeObj),toObj:n})},nt=(e,t,n,o)=>{e=oe(e),t==="after"&&(e=e.reverse());const i=n.nodeObj,s=[];for(const r of e){const l=r.nodeObj;Qe(t,l,i),$(o.nodeData),Q(r);const c=r.parentElement.parentNode;s.includes(c.parentElement)||s.push(c.parentElement),n.parentElement.parentNode.insertAdjacentElement(tt[t],c)}for(const r of s)r.childElementCount===0&&r.tagName!=="ME-MAIN"&&(r.previousSibling.children[1].remove(),r.remove());o.linkDiv(),o.bus.fire("operation",{name:t==="before"?"moveNodeBefore":"moveNodeAfter",objs:e.map(r=>r.nodeObj),toObj:i})},ot=Object.freeze(Object.defineProperty({__proto__:null,addChild:gn,beginEdit:function(e){const t=e||this.currentNode;t&&(t.nodeObj.dangerouslySetInnerHTML||this.editTopic(t))},copyNode:mn,copyNodes:vn,insertParent:pn,insertSibling:fn,moveDownNode:yn,moveNodeAfter:function(e,t){nt(e,"after",t,this)},moveNodeBefore:function(e,t){nt(e,"before",t,this)},moveNodeIn:xn,moveUpNode:bn,removeNodes:wn,reshapeNode:un,rmSubline:Q,setNodeTopic:function(e,t){e.text.textContent=t,e.nodeObj.topic=t,this.linkDiv()}},Symbol.toStringTag,{value:"Module"}));function Cn(e){return{nodeData:e.isFocusMode?e.nodeDataBackup:e.nodeData,arrows:e.arrows,summaries:e.summaries,direction:e.direction,theme:e.theme}}const En=function(e){const t=this.container,n=e.getBoundingClientRect(),o=t.getBoundingClientRect();if(n.top>o.bottom||n.bottom<o.top||n.left>o.right||n.right<o.left){const s=n.left+n.width/2,r=n.top+n.height/2,l=o.left+o.width/2,c=o.top+o.height/2,a=s-l,f=r-c;this.move(-a,-f,!0)}},Sn=function(e,t,n){this.clearSelection(),this.scrollIntoView(e),this.selection.select(e),t&&this.bus.fire("selectNewNode",e.nodeObj)},Nn=function(e){this.selection.select(e)},kn=function(e){this.selection.deselect(e)},_n=function(){this.unselectNodes(this.currentNodes),this.unselectSummary(),this.unselectArrow()},Tn=function(){const e=Cn(this);return JSON.stringify(e,(t,n)=>{if(!(t==="parent"&&typeof n!="string"))return n})},Ln=function(){return JSON.parse(this.getDataString())},An=function(){this.editable=!0},Mn=function(){this.editable=!1},Dn=function(e,t={x:0,y:0}){if(e<this.scaleMin||e>this.scaleMax)return;const n=this.container.getBoundingClientRect(),o=t.x?t.x-n.left-n.width/2:0,i=t.y?t.y-n.top-n.height/2:0,{dx:s,dy:r}=it(this),l=this.map.style.transform,{x:c,y:a}=Me(l),f=c-s,d=a-r,m=this.scaleVal,u=(-o+f)*(1-e/m),h=(-i+d)*(1-e/m);this.map.style.transform=`translate(${c-u}px, ${a-h}px) scale(${e})`,this.scaleVal=e,this.bus.fire("scale",e)},Pn=function(){const e=this.nodes.offsetHeight/this.container.offsetHeight,t=this.nodes.offsetWidth/this.container.offsetWidth,n=1/Math.max(1,Math.max(e,t));this.scaleVal=n,this.map.style.transform="scale("+n+")",this.bus.fire("scale",n)},On=function(e,t,n=!1){const{map:o,scaleVal:i,bus:s}=this,r=o.style.transform;let{x:l,y:c}=Me(r);l+=e,c+=t,n&&(o.style.transition="transform 0.3s",setTimeout(()=>{o.style.transition="none"},300)),o.style.transform=`translate(${l}px, ${c}px) scale(${i})`,s.fire("move",{dx:e,dy:t})},it=e=>{const{container:t,map:n,nodes:o}=e,i=n.querySelector("me-root"),s=i.offsetTop,r=i.offsetLeft,l=i.offsetWidth,c=i.offsetHeight;let a,f;return e.alignment==="root"?(a=t.offsetWidth/2-r-l/2,f=t.offsetHeight/2-s-c/2,n.style.transformOrigin=`${r+l/2}px 50%`):(a=(t.offsetWidth-o.offsetWidth)/2,f=(t.offsetHeight-o.offsetHeight)/2,n.style.transformOrigin="50% 50%"),{dx:a,dy:f}},$n=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:function(){this.isFocusMode=!1,this.tempDirection!==null&&(this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},clearSelection:_n,disableEdit:Mn,enableEdit:An,expandNode:function(e,t){const n=e.nodeObj;typeof t=="boolean"?n.expanded=t:n.expanded!==!1?n.expanded=!1:n.expanded=!0;const o=e.getBoundingClientRect(),i={x:o.left,y:o.top},s=e.parentNode,r=s.children[1];if(r.expanded=n.expanded,r.className=n.expanded?"minus":"",Q(e),n.expanded){const d=this.createChildren(n.children.map(m=>this.createWrapper(m).grp));s.parentNode.appendChild(d)}else s.parentNode.children[1].remove();this.linkDiv(e.closest("me-main > me-wrapper"));const l=e.getBoundingClientRect(),c={x:l.left,y:l.top},a=i.x-c.x,f=i.y-c.y;this.move(a,f),this.bus.fire("expandNode",n)},expandNodeAll:function(e,t){const n=e.nodeObj,o=e.getBoundingClientRect(),i={x:o.left,y:o.top};q(n,t??!n.expanded),this.refresh();const s=this.findEle(n.id).getBoundingClientRect(),r={x:s.left,y:s.top},l=i.x-r.x,c=i.y-r.y;this.move(l,c)},focusNode:function(e){e.nodeObj.parent&&(this.clearSelection(),this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=e.nodeObj,this.initRight(),this.toCenter())},getData:Ln,getDataString:Tn,initLeft:function(){this.direction=0,this.refresh(),this.toCenter()},initRight:function(){this.direction=1,this.refresh(),this.toCenter()},initSide:function(){this.direction=2,this.refresh(),this.toCenter()},install:function(e){e(this)},move:On,refresh:function(e){this.clearSelection(),e&&(e=JSON.parse(JSON.stringify(e)),this.nodeData=e.nodeData,this.arrows=e.arrows||[],this.summaries=e.summaries||[],e.theme&&this.changeTheme(e.theme)),$(this.nodeData),this.layout(),this.linkDiv()},scale:Dn,scaleFit:Pn,scrollIntoView:En,selectNode:Sn,selectNodes:Nn,setLocale:function(e){this.locale=e,this.refresh()},toCenter:function(){const{map:e}=this,{dx:t,dy:n}=it(this);e.style.transform=`translate(${t}px, ${n}px) scale(${this.scaleVal})`},unselectNodes:kn},Symbol.toStringTag,{value:"Module"})),st={create:function(e){return{dom:e,moved:!1,pointerdown:!1,lastX:0,lastY:0,handlePointerMove(t){if(this.pointerdown){this.moved=!0;const n=t.clientX-this.lastX,o=t.clientY-this.lastY;this.lastX=t.clientX,this.lastY=t.clientY,this.cb&&this.cb(n,o)}},handlePointerDown(t){t.button===0&&(this.pointerdown=!0,this.lastX=t.clientX,this.lastY=t.clientY,this.dom.setPointerCapture(t.pointerId))},handleClear(t){this.pointerdown=!1,t.pointerId!==void 0&&this.dom.releasePointerCapture(t.pointerId)},cb:null,init(t,n){this.cb=n,this.handleClear=this.handleClear.bind(this),this.handlePointerMove=this.handlePointerMove.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this),this.destroy=we([{dom:t,evt:"pointermove",func:this.handlePointerMove},{dom:t,evt:"pointerleave",func:this.handleClear},{dom:t,evt:"pointerup",func:this.handleClear},{dom:this.dom,evt:"pointerdown",func:this.handlePointerDown}])},destroy:null,clear(){this.moved=!1,this.pointerdown=!1}}}},jn="#4dc4ff";function rt(e,t,n,o,i,s,r,l){return{x:e/8+n*3/8+i*3/8+r/8,y:t/8+o*3/8+s*3/8+l/8}}function Hn(e,t,n){e&&(e.dataset.x=t.toString(),e.dataset.y=n.toString(),re(e))}function ce(e,t,n,o,i){_(e,{x1:t+"",y1:n+"",x2:o+"",y2:i+""})}function lt(e,t,n,o,i,s,r,l,c,a){var p;const f=`M ${t} ${n} C ${o} ${i} ${s} ${r} ${l} ${c}`;if(e.line.setAttribute("d",f),a.style){const g=a.style;g.stroke&&e.line.setAttribute("stroke",g.stroke),g.strokeWidth&&e.line.setAttribute("stroke-width",String(g.strokeWidth)),g.strokeDasharray&&e.line.setAttribute("stroke-dasharray",g.strokeDasharray),g.strokeLinecap&&e.line.setAttribute("stroke-linecap",g.strokeLinecap),g.opacity!==void 0&&e.line.setAttribute("opacity",String(g.opacity))}const d=e.querySelectorAll('path[stroke="transparent"]');d.length>0&&d[0].setAttribute("d",f);const m=ne(s,r,l,c);if(m){const g=`M ${m.x1} ${m.y1} L ${l} ${c} L ${m.x2} ${m.y2}`;if(e.arrow1.setAttribute("d",g),d.length>1&&d[1].setAttribute("d",g),a.style){const v=a.style;v.stroke&&e.arrow1.setAttribute("stroke",v.stroke),v.strokeWidth&&e.arrow1.setAttribute("stroke-width",String(v.strokeWidth)),v.strokeLinecap&&e.arrow1.setAttribute("stroke-linecap",v.strokeLinecap),v.opacity!==void 0&&e.arrow1.setAttribute("opacity",String(v.opacity))}}if(a.bidirectional){const g=ne(o,i,t,n);if(g){const v=`M ${g.x1} ${g.y1} L ${t} ${n} L ${g.x2} ${g.y2}`;if(e.arrow2.setAttribute("d",v),d.length>2&&d[2].setAttribute("d",v),a.style){const b=a.style;b.stroke&&e.arrow2.setAttribute("stroke",b.stroke),b.strokeWidth&&e.arrow2.setAttribute("stroke-width",String(b.strokeWidth)),b.strokeLinecap&&e.arrow2.setAttribute("stroke-linecap",b.strokeLinecap),b.opacity!==void 0&&e.arrow2.setAttribute("opacity",String(b.opacity))}}}const{x:u,y:h}=rt(t,n,o,i,s,r,l,c);if(e.labelElement&&Hn(e.labelElement,u,h),(p=a.style)!=null&&p.labelColor){const g=e.label.querySelector("div");g&&(g.style.color=a.style.labelColor)}Yn(e)}function ae(e,t,n){const{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=t.offsetWidth,r=t.offsetHeight,l=o+s/2,c=i+r/2,a=l+n.x,f=c+n.y;return{w:s,h:r,cx:l,cy:c,ctrlX:a,ctrlY:f}}function U(e){let t,n;const o=(e.cy-e.ctrlY)/(e.ctrlX-e.cx);return o>e.h/e.w||o<-e.h/e.w?e.cy-e.ctrlY<0?(t=e.cx-e.h/2/o,n=e.cy+e.h/2):(t=e.cx+e.h/2/o,n=e.cy-e.h/2):e.cx-e.ctrlX<0?(t=e.cx+e.w/2,n=e.cy-e.w*o/2):(t=e.cx-e.w/2,n=e.cy+e.w*o/2),{x:t,y:n}}const Te=function(e,t,n,o,i){var N;if(!t||!n)return;const s=ae(e,t,o.delta1),r=ae(e,n,o.delta2),{x:l,y:c}=U(s),{ctrlX:a,ctrlY:f}=s,{ctrlX:d,ctrlY:m}=r,{x:u,y:h}=U(r),p=ne(d,m,u,h);if(!p)return;const g=`M ${p.x1} ${p.y1} L ${u} ${h} L ${p.x2} ${p.y2}`;let v="";if(o.bidirectional){const k=ne(a,f,l,c);if(!k)return;v=`M ${k.x1} ${k.y1} L ${l} ${c} L ${k.x2} ${k.y2}`}const b=Mt(`M ${l} ${c} C ${a} ${f} ${d} ${m} ${u} ${h}`,g,v,o.style),{x:y,y:C}=rt(l,c,a,f,d,m,u,h),E=(N=o.style)==null?void 0:N.labelColor,x="arrow-"+o.id;b.id=x;const w=Ee(o.label,y,C,{anchor:"middle",color:E,dataType:"link-label",svgId:x});e.labelContainer.appendChild(w),re(w);const S=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");b.label=S,b.labelElement=w,b.arrowObj=o,b.dataset.linkid=o.id,e.linkSvgGroup.appendChild(b),i||(e.arrows.push(o),e.currentArrow=b,ct(e,o,s,r))},Bn=function(e,t,n={}){const o={id:F(),label:"Custom Link",from:e.nodeObj.id,to:t.nodeObj.id,delta1:{x:e.offsetWidth/2+100,y:0},delta2:{x:t.offsetWidth/2+100,y:0},...n};Te(this,e,t,o),this.bus.fire("operation",{name:"createArrow",obj:o})},Rn=function(e){de(this);const t={...e,id:F()};Te(this,this.findEle(t.from),this.findEle(t.to),t),this.bus.fire("operation",{name:"createArrow",obj:t})},Fn=function(e){let t;if(e?t=e:t=this.currentArrow,!t)return;de(this);const n=t.arrowObj.id;this.arrows=this.arrows.filter(o=>o.id!==n),t.remove(),this.bus.fire("operation",{name:"removeArrow",obj:{id:n}})},In=function(e){this.currentArrow=e;const t=e.arrowObj,n=this.findEle(t.from),o=this.findEle(t.to),i=ae(this,n,t.delta1),s=ae(this,o,t.delta2);ct(this,t,i,s)},Wn=function(){de(this),this.currentArrow=null},Le=function(e,t){const n=document.createElementNS(P,"path");return _(n,{d:e,stroke:t,fill:"none","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round"}),n},Gn=function(e,t){const n=document.createElementNS(P,"g");n.setAttribute("class","arrow-highlight"),n.setAttribute("opacity","0.45");const o=Le(e.line.getAttribute("d"),t);n.appendChild(o);const i=Le(e.arrow1.getAttribute("d"),t);if(n.appendChild(i),e.arrow2.getAttribute("d")){const s=Le(e.arrow2.getAttribute("d"),t);n.appendChild(s)}e.insertBefore(n,e.firstChild)},Kn=function(e){const t=e.querySelector(".arrow-highlight");t&&t.remove()},Yn=function(e){const t=e.querySelector(".arrow-highlight");if(!t)return;const n=t.querySelectorAll("path");n.length>=1&&n[0].setAttribute("d",e.line.getAttribute("d")),n.length>=2&&n[1].setAttribute("d",e.arrow1.getAttribute("d")),n.length>=3&&e.arrow2.getAttribute("d")&&n[2].setAttribute("d",e.arrow2.getAttribute("d"))},de=function(e){var t,n;(t=e.helper1)==null||t.destroy(),(n=e.helper2)==null||n.destroy(),e.linkController.style.display="none",e.P2.style.display="none",e.P3.style.display="none",e.currentArrow&&Kn(e.currentArrow)},ct=function(e,t,n,o){const{linkController:i,P2:s,P3:r,line1:l,line2:c,nodes:a,map:f,currentArrow:d,bus:m}=e;if(!d)return;i.style.display="initial",s.style.display="initial",r.style.display="initial",a.appendChild(i),a.appendChild(s),a.appendChild(r),Gn(d,jn);let{x:u,y:h}=U(n),{ctrlX:p,ctrlY:g}=n,{ctrlX:v,ctrlY:b}=o,{x:y,y:C}=U(o);s.style.cssText=`top:${g}px;left:${p}px;`,r.style.cssText=`top:${b}px;left:${v}px;`,ce(l,u,h,p,g),ce(c,v,b,y,C),e.helper1=st.create(s),e.helper2=st.create(r),e.helper1.init(f,(E,x)=>{p=p+E/e.scaleVal,g=g+x/e.scaleVal;const w=U({...n,ctrlX:p,ctrlY:g});u=w.x,h=w.y,s.style.top=g+"px",s.style.left=p+"px",lt(d,u,h,p,g,v,b,y,C,t),ce(l,u,h,p,g),t.delta1.x=p-n.cx,t.delta1.y=g-n.cy,m.fire("updateArrowDelta",t)}),e.helper2.init(f,(E,x)=>{v=v+E/e.scaleVal,b=b+x/e.scaleVal;const w=U({...o,ctrlX:v,ctrlY:b});y=w.x,C=w.y,r.style.top=b+"px",r.style.left=v+"px",lt(d,u,h,p,g,v,b,y,C,t),ce(c,v,b,y,C),t.delta2.x=v-o.cx,t.delta2.y=b-o.cy,m.fire("updateArrowDelta",t)})};function qn(){this.linkSvgGroup.innerHTML="";for(let e=0;e<this.arrows.length;e++){const t=this.arrows[e];try{Te(this,this.findEle(t.from),this.findEle(t.to),t,!0)}catch{}}this.nodes.appendChild(this.linkSvgGroup)}function zn(e){de(this),e&&e.labelElement&&Be(this,e.labelElement,e.arrowObj)}function Vn(){this.arrows=this.arrows.filter(e=>te(e.from,this.nodeData)&&te(e.to,this.nodeData))}const Xn=Object.freeze(Object.defineProperty({__proto__:null,createArrow:Bn,createArrowFrom:Rn,editArrowLabel:zn,removeArrow:Fn,renderArrow:qn,selectArrow:In,tidyArrow:Vn,unselectArrow:Wn},Symbol.toStringTag,{value:"Module"})),Un=function(e){var c,a;if(e.length===0)throw new Error("No selected node.");if(e.length===1){const f=e[0].nodeObj,d=e[0].nodeObj.parent;if(!d)throw new Error("Can not select root node.");const m=d.children.findIndex(u=>f===u);return{parent:d.id,start:m,end:m}}let t=0;const n=e.map(f=>{let d=f.nodeObj;const m=[];for(;d.parent;){const u=d.parent,h=u.children,p=h==null?void 0:h.indexOf(d);d=u,m.unshift({node:d,index:p})}return m.length>t&&(t=m.length),m});let o=0;e:for(;o<t;o++){const f=(c=n[0][o])==null?void 0:c.node;for(let d=1;d<n.length;d++)if(((a=n[d][o])==null?void 0:a.node)!==f)break e}if(!o)throw new Error("Can not select root node.");const i=n.map(f=>f[o-1].index).sort(),s=i[0]||0,r=i[i.length-1]||0,l=n[0][o-1].node;if(!l.parent)throw new Error("Please select nodes in the same main topic.");return{parent:l.id,start:s,end:r}},Jn=function(e){const t=document.createElementNS(P,"g");return t.setAttribute("id",e),t},at=function(e,t){const n=document.createElementNS(P,"path");return _(n,{d:e,stroke:t||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Zn=e=>e.parentElement.parentElement,Qn=function(e,{parent:t,start:n}){const o=e.findEle(t),i=o.nodeObj;let s;return i.parent?s=o.closest("me-main").className:s=e.findEle(i.children[n].id).closest("me-main").className,s},Ae=function(e,t){var N;const{id:n,label:o,parent:i,start:s,end:r}=t,{nodes:l,theme:c,summarySvg:a}=e,d=e.findEle(i).nodeObj,m=Qn(e,t);let u=1/0,h=0,p=0,g=0;for(let k=s;k<=r;k++){const R=(N=d.children)==null?void 0:N[k];if(!R)return e.removeSummary(n),null;const G=Zn(e.findEle(R.id)),{offsetLeft:fe,offsetTop:ut}=j(l,G),ft=s===r?10:20;k===s&&(p=ut+ft),k===r&&(g=ut+G.offsetHeight-ft),fe<u&&(u=fe),G.offsetWidth+fe>h&&(h=G.offsetWidth+fe)}let v,b;const y=p+10,C=g+10,E=(y+C)/2,x=c.cssVar["--color"],w="s-"+n;m===A.LHS?(v=at(`M ${u+10} ${y} c -5 0 -10 5 -10 10 L ${u} ${C-10} c 0 5 5 10 10 10 M ${u} ${E} h -10`,x),b=Ee(o,u-20,E,{anchor:"end",color:x,dataType:"s-label",svgId:w})):(v=at(`M ${h-10} ${y} c 5 0 10 5 10 10 L ${h} ${C-10} c 0 5 -5 10 -10 10 M ${h} ${E} h 10`,x),b=Ee(o,h+20,E,{anchor:"start",color:x,dataType:"s-label",svgId:w}));const S=Jn(w);return S.appendChild(v),e.labelContainer.appendChild(b),re(b),S.summaryObj=t,S.labelElement=b,a.appendChild(S),S},eo=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){if(!this.currentNodes)return;const{currentNodes:e,summaries:t,bus:n}=this,{parent:o,start:i,end:s}=Un(e),r={id:F(),parent:o,start:i,end:s,label:"summary"},l=Ae(this,r);t.push(r),this.editSummary(l),n.fire("operation",{name:"createSummary",obj:r})},createSummaryFrom:function(e){const t=F(),n={...e,id:t};Ae(this,n),this.summaries.push(n),this.bus.fire("operation",{name:"createSummary",obj:n})},editSummary:function(e){e&&e.labelElement&&Be(this,e.labelElement,e.summaryObj)},removeSummary:function(e){var n,o;const t=this.summaries.findIndex(i=>i.id===e);t>-1&&(this.summaries.splice(t,1),(n=this.nodes.querySelector("#s-"+e))==null||n.remove(),(o=this.nodes.querySelector("#label-s-"+e))==null||o.remove()),this.bus.fire("operation",{name:"removeSummary",obj:{id:e}})},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(e=>{try{Ae(this,e)}catch{}}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(e){const t=e.labelElement;t&&t.classList.add("selected"),this.currentSummary=e},unselectSummary:function(){var e,t;(t=(e=this.currentSummary)==null?void 0:e.labelElement)==null||t.classList.remove("selected"),this.currentSummary=null}},Symbol.toStringTag,{value:"Module"})),L="http://www.w3.org/2000/svg";function to(e,t){const n=document.createElementNS(L,"svg");return _(n,{version:"1.1",xmlns:L,height:e,width:t}),n}function no(e,t){return(parseInt(e)-parseInt(t))/2}function oo(e,t,n,o){const i=document.createElementNS(L,"g");let s="";return e.text?s=e.text.textContent:s=e.childNodes[0].textContent,s.split(`
14
- `).forEach((l,c)=>{const a=document.createElementNS(L,"text");_(a,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+no(t.lineHeight,t.fontSize)*(c+1)+parseFloat(t.fontSize)*(c+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),a.innerHTML=l,i.appendChild(a)}),i}function io(e,t,n,o){var l;let i="";(l=e.nodeObj)!=null&&l.dangerouslySetInnerHTML?i=e.nodeObj.dangerouslySetInnerHTML:e.text?i=e.text.textContent:i=e.childNodes[0].textContent;const s=document.createElementNS(L,"foreignObject");_(s,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const r=document.createElement("div");return _(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`}),r.innerHTML=i,s.appendChild(r),s}function so(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"rect");return _(s,{x:o+"",y:i+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),s}function he(e,t,n=!1){const o=getComputedStyle(t),{offsetLeft:i,offsetTop:s}=j(e.nodes,t),r=document.createElementNS(L,"rect");_(r,{x:i+"",y:s+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const l=document.createElementNS(L,"g");l.appendChild(r);let c;return n?c=io(t,o,i,s):c=oo(t,o,i,s),l.appendChild(c),l}function ro(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"a"),r=document.createElementNS(L,"text");return _(r,{x:o+"",y:i+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=t.textContent,s.appendChild(r),s.setAttribute("href",t.href),s}function lo(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"image");return _(s,{x:o+"",y:i+"",width:n.width+"",height:n.height+"",href:t.src}),s}const ue=100,co='<?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">',ao=(e,t=!1)=>{var d,m,u;const n=e.nodes,o=n.offsetHeight+ue*2,i=n.offsetWidth+ue*2,s=to(o+"px",i+"px"),r=document.createElementNS(L,"svg"),l=document.createElementNS(L,"rect");_(l,{x:"0",y:"0",width:`${i}`,height:`${o}`,fill:e.theme.cssVar["--bgcolor"]}),s.appendChild(l),n.querySelectorAll(".subLines").forEach(h=>{const p=h.cloneNode(!0),{offsetLeft:g,offsetTop:v}=j(n,h.parentElement);p.setAttribute("x",`${g}`),p.setAttribute("y",`${v}`),r.appendChild(p)});const c=(d=n.querySelector(".lines"))==null?void 0:d.cloneNode(!0);c&&r.appendChild(c);const a=(m=n.querySelector(".topiclinks"))==null?void 0:m.cloneNode(!0);a&&r.appendChild(a);const f=(u=n.querySelector(".summary"))==null?void 0:u.cloneNode(!0);return f&&r.appendChild(f),n.querySelectorAll("me-tpc").forEach(h=>{h.nodeObj.dangerouslySetInnerHTML?r.appendChild(he(e,h,!t)):(r.appendChild(so(e,h)),r.appendChild(he(e,h.text,!t)))}),n.querySelectorAll(".tags > span").forEach(h=>{r.appendChild(he(e,h))}),n.querySelectorAll(".icons > span").forEach(h=>{r.appendChild(he(e,h))}),n.querySelectorAll(".hyper-link").forEach(h=>{r.appendChild(ro(e,h))}),n.querySelectorAll("img").forEach(h=>{r.appendChild(lo(e,h))}),_(r,{x:ue+"",y:ue+"",overflow:"visible"}),s.appendChild(r),s},ho=(e,t)=>(t&&e.insertAdjacentHTML("afterbegin","<style>"+t+"</style>"),co+e.outerHTML);function uo(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=i=>{t(i.target.result)},o.onerror=i=>{n(i)},o.readAsDataURL(e)})}const fo=Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(e=!1,t){const n=this.exportSvg(e,t),o=await uo(n);return new Promise((i,s)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const l=document.createElement("canvas");l.width=r.width,l.height=r.height,l.getContext("2d").drawImage(r,0,0),l.toBlob(i,"image/png",1)},r.src=o,r.onerror=s})},exportSvg:function(e=!1,t){const n=ao(this,e),o=ho(n,t);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"}));function po(e,t){return async function(...n){const o=this.before[t];o&&!await o.apply(this,n)||e.apply(this,n)}}const dt=Object.keys(ot),ht={};for(let e=0;e<dt.length;e++){const t=dt[e];ht[t]=po(ot[t],t)}const go={getObjById:te,generateNewObj:pt,layout:Et,linkDiv:Dt,editTopic:At,createWrapper:kt,createParent:_t,createChildren:Tt,createTopic:Lt,findEle:Oe,changeTheme:sn,...$n,...ht,...Xn,...eo,...fo,init(e){if(e=JSON.parse(JSON.stringify(e)),!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction!==void 0&&(this.direction=e.direction),this.changeTheme(e.theme||this.theme,!1),this.nodeData=e.nodeData,$(this.nodeData),this.arrows=e.arrows||[],this.summaries=e.summaries||[],this.tidyArrow(),this.toolBar&&Ut(this),this.keypress&&wt(this,this.keypress),this.editable&&on(this),this.contextMenu&&this.disposable.push(Pt(this,this.contextMenu)),this.draggable&&this.disposable.push(Ht(this)),this.allowUndo&&this.disposable.push(Rt(this)),this.layout(),this.linkDiv(),this.toCenter()},destroy(){var e;this.disposable.forEach(t=>t()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=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}};function mo({pT:e,pL:t,pW:n,pH:o,cT:i,cL:s,cW:r,cH:l,direction:c,containerHeight:a}){let f=t+n/2;const d=e+o/2;let m;c===A.LHS?m=s+r:m=s;const u=i+l/2,p=(1-Math.abs(u-d)/a)*.25*(n/2);return c===A.LHS?f=f-n/10-p:f=f+n/10+p,`M ${f} ${d} Q ${f} ${u} ${m} ${u}`}function vo({pT:e,pL:t,pW:n,pH:o,cT:i,cL:s,cW:r,cH:l,direction:c,isFirst:a}){const f=parseInt(this.container.style.getPropertyValue("--node-gap-x"));let d=0,m=0;a?d=e+o/2:d=e+o;const u=i+l;let h=0,p=0,g=0;const v=Math.abs(d-u)/300*f;return c===A.LHS?(g=t,h=g+f,p=g-f,m=s+f,`M ${h} ${d} C ${g} ${d} ${g+v} ${u} ${p} ${u} H ${m}`):(g=t+n,h=g-f,p=g+f,m=s+r-f,`M ${h} ${d} C ${g} ${d} ${g-v} ${u} ${p} ${u} H ${m}`)}const bo="5.2.0-beta.1";function yo(e){return{x:0,y:0,moved:!1,mousedown:!1,onMove(t,n){this.mousedown&&(this.moved=!0,e.move(t,n))},clear(){this.mousedown=!1}}}const J=document;function D({el:e,direction:t,locale:n,draggable:o,editable:i,contextMenu:s,toolBar:r,keypress:l,mouseSelectionButton:c,selectionContainer:a,before:f,newTopicName:d,allowUndo:m,generateMainBranch:u,generateSubBranch:h,overflowHidden:p,theme:g,alignment:v,scaleSensitivity:b,scaleMax:y,scaleMin:C,handleWheel:E,markdown:x,imageProxy:w}){let S=null;const N=Object.prototype.toString.call(e);if(N==="[object HTMLDivElement]"?S=e:N==="[object String]"&&(S=document.querySelector(e)),!S)throw new Error("MindElixir: el is not a valid element");S.style.position="relative",S.innerHTML="",this.el=S,this.disposable=[],this.before=f||{},this.locale=n||"en",this.newTopicName=d||"New Node",this.contextMenu=s??!0,this.toolBar=r??!0,this.keypress=l??!0,this.mouseSelectionButton=c??0,this.direction=t??1,this.draggable=o??!0,this.editable=i??!0,this.allowUndo=m??!0,this.scaleSensitivity=b??.1,this.scaleMax=y??1.4,this.scaleMin=C??.2,this.generateMainBranch=u||mo,this.generateSubBranch=h||vo,this.overflowHidden=p??!1,this.alignment=v??"root",this.handleWheel=E??!0,this.markdown=x||void 0,this.imageProxy=w||void 0,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.dragMoveHelper=yo(this),this.bus=Ct(),this.container=J.createElement("div"),this.selectionContainer=a||this.container,this.container.className="map-container";const k=window.matchMedia("(prefers-color-scheme: dark)");this.theme=g||(k.matches?ge:pe);const R=J.createElement("div");R.className="map-canvas",this.map=R,this.container.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=J.createElement("me-nodes"),this.lines=Z("lines"),this.summarySvg=Z("summary"),this.linkController=Z("linkcontroller"),this.P2=J.createElement("div"),this.P3=J.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=He(),this.line2=He(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=Z("topiclinks"),this.labelContainer=J.createElement("div"),this.labelContainer.className="label-container",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(xt(this))}return D.prototype=go,Object.defineProperty(D.prototype,"currentNode",{get(){return this.currentNodes[this.currentNodes.length-1]},enumerable:!0}),D.LEFT=0,D.RIGHT=1,D.SIDE=2,D.THEME=pe,D.DARK_THEME=ge,D.version=bo,D.E=Oe,D.new=e=>({nodeData:{id:F(),topic:e||"new topic",children:[]}}),D}();
14
+ `).forEach((l,c)=>{const a=document.createElementNS(L,"text");_(a,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+no(t.lineHeight,t.fontSize)*(c+1)+parseFloat(t.fontSize)*(c+1)+"","text-anchor":"start","font-family":t.fontFamily,"font-size":`${t.fontSize}`,"font-weight":`${t.fontWeight}`,fill:`${t.color}`}),a.innerHTML=l,i.appendChild(a)}),i}function io(e,t,n,o){var l;let i="";(l=e.nodeObj)!=null&&l.dangerouslySetInnerHTML?i=e.nodeObj.dangerouslySetInnerHTML:e.text?i=e.text.textContent:i=e.childNodes[0].textContent;const s=document.createElementNS(L,"foreignObject");_(s,{x:n+parseInt(t.paddingLeft)+"",y:o+parseInt(t.paddingTop)+"",width:t.width,height:t.height});const r=document.createElement("div");return _(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${t.fontFamily}; font-size: ${t.fontSize}; font-weight: ${t.fontWeight}; color: ${t.color}; white-space: pre-wrap;`}),r.innerHTML=i,s.appendChild(r),s}function so(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"rect");return _(s,{x:o+"",y:i+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),s}function he(e,t,n=!1){const o=getComputedStyle(t),{offsetLeft:i,offsetTop:s}=j(e.nodes,t),r=document.createElementNS(L,"rect");_(r,{x:i+"",y:s+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const l=document.createElementNS(L,"g");l.appendChild(r);let c;return n?c=io(t,o,i,s):c=oo(t,o,i,s),l.appendChild(c),l}function ro(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"a"),r=document.createElementNS(L,"text");return _(r,{x:o+"",y:i+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=t.textContent,s.appendChild(r),s.setAttribute("href",t.href),s}function lo(e,t){const n=getComputedStyle(t),{offsetLeft:o,offsetTop:i}=j(e.nodes,t),s=document.createElementNS(L,"image");return _(s,{x:o+"",y:i+"",width:n.width+"",height:n.height+"",href:t.src}),s}const ue=100,co='<?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">',ao=(e,t=!1)=>{var d,m,u;const n=e.nodes,o=n.offsetHeight+ue*2,i=n.offsetWidth+ue*2,s=to(o+"px",i+"px"),r=document.createElementNS(L,"svg"),l=document.createElementNS(L,"rect");_(l,{x:"0",y:"0",width:`${i}`,height:`${o}`,fill:e.theme.cssVar["--bgcolor"]}),s.appendChild(l),n.querySelectorAll(".subLines").forEach(h=>{const p=h.cloneNode(!0),{offsetLeft:g,offsetTop:v}=j(n,h.parentElement);p.setAttribute("x",`${g}`),p.setAttribute("y",`${v}`),r.appendChild(p)});const c=(d=n.querySelector(".lines"))==null?void 0:d.cloneNode(!0);c&&r.appendChild(c);const a=(m=n.querySelector(".topiclinks"))==null?void 0:m.cloneNode(!0);a&&r.appendChild(a);const f=(u=n.querySelector(".summary"))==null?void 0:u.cloneNode(!0);return f&&r.appendChild(f),n.querySelectorAll("me-tpc").forEach(h=>{h.nodeObj.dangerouslySetInnerHTML?r.appendChild(he(e,h,!t)):(r.appendChild(so(e,h)),r.appendChild(he(e,h.text,!t)))}),n.querySelectorAll(".tags > span").forEach(h=>{r.appendChild(he(e,h))}),n.querySelectorAll(".icons > span").forEach(h=>{r.appendChild(he(e,h))}),n.querySelectorAll(".hyper-link").forEach(h=>{r.appendChild(ro(e,h))}),n.querySelectorAll("img").forEach(h=>{r.appendChild(lo(e,h))}),_(r,{x:ue+"",y:ue+"",overflow:"visible"}),s.appendChild(r),s},ho=(e,t)=>(t&&e.insertAdjacentHTML("afterbegin","<style>"+t+"</style>"),co+e.outerHTML);function uo(e){return new Promise((t,n)=>{const o=new FileReader;o.onload=i=>{t(i.target.result)},o.onerror=i=>{n(i)},o.readAsDataURL(e)})}const fo=Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(e=!1,t){const n=this.exportSvg(e,t),o=await uo(n);return new Promise((i,s)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const l=document.createElement("canvas");l.width=r.width,l.height=r.height,l.getContext("2d").drawImage(r,0,0),l.toBlob(i,"image/png",1)},r.src=o,r.onerror=s})},exportSvg:function(e=!1,t){const n=ao(this,e),o=ho(n,t);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"}));function po(e,t){return async function(...n){const o=this.before[t];o&&!await o.apply(this,n)||e.apply(this,n)}}const dt=Object.keys(ot),ht={};for(let e=0;e<dt.length;e++){const t=dt[e];ht[t]=po(ot[t],t)}const go={getObjById:te,generateNewObj:pt,layout:Et,linkDiv:Dt,editTopic:At,createWrapper:kt,createParent:_t,createChildren:Tt,createTopic:Lt,findEle:Oe,changeTheme:sn,...$n,...ht,...Xn,...eo,...fo,init(e){if(e=JSON.parse(JSON.stringify(e)),!e||!e.nodeData)return new Error("MindElixir: `data` is required");e.direction!==void 0&&(this.direction=e.direction),this.changeTheme(e.theme||this.theme,!1),this.nodeData=e.nodeData,$(this.nodeData),this.arrows=e.arrows||[],this.summaries=e.summaries||[],this.tidyArrow(),this.toolBar&&Ut(this),this.keypress&&wt(this,this.keypress),this.editable&&on(this),this.contextMenu&&this.disposable.push(Pt(this,this.contextMenu)),this.draggable&&this.disposable.push(Ht(this)),this.allowUndo&&this.disposable.push(Rt(this)),this.layout(),this.linkDiv(),this.toCenter()},destroy(){var e;this.disposable.forEach(t=>t()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=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}};function mo({pT:e,pL:t,pW:n,pH:o,cT:i,cL:s,cW:r,cH:l,direction:c,containerHeight:a}){let f=t+n/2;const d=e+o/2;let m;c===A.LHS?m=s+r:m=s;const u=i+l/2,p=(1-Math.abs(u-d)/a)*.25*(n/2);return c===A.LHS?f=f-n/10-p:f=f+n/10+p,`M ${f} ${d} Q ${f} ${u} ${m} ${u}`}function vo({pT:e,pL:t,pW:n,pH:o,cT:i,cL:s,cW:r,cH:l,direction:c,isFirst:a}){const f=parseInt(this.container.style.getPropertyValue("--node-gap-x"));let d=0,m=0;a?d=e+o/2:d=e+o;const u=i+l;let h=0,p=0,g=0;const v=Math.abs(d-u)/300*f;return c===A.LHS?(g=t,h=g+f,p=g-f,m=s+f,`M ${h} ${d} C ${g} ${d} ${g+v} ${u} ${p} ${u} H ${m}`):(g=t+n,h=g-f,p=g+f,m=s+r-f,`M ${h} ${d} C ${g} ${d} ${g-v} ${u} ${p} ${u} H ${m}`)}const bo="5.2.0-beta.2";function yo(e){return{x:0,y:0,moved:!1,mousedown:!1,onMove(t,n){this.mousedown&&(this.moved=!0,e.move(t,n))},clear(){this.mousedown=!1}}}const J=document;function D({el:e,direction:t,locale:n,draggable:o,editable:i,contextMenu:s,toolBar:r,keypress:l,mouseSelectionButton:c,selectionContainer:a,before:f,newTopicName:d,allowUndo:m,generateMainBranch:u,generateSubBranch:h,overflowHidden:p,theme:g,alignment:v,scaleSensitivity:b,scaleMax:y,scaleMin:C,handleWheel:E,markdown:x,imageProxy:w}){let S=null;const N=Object.prototype.toString.call(e);if(N==="[object HTMLDivElement]"?S=e:N==="[object String]"&&(S=document.querySelector(e)),!S)throw new Error("MindElixir: el is not a valid element");S.style.position="relative",S.innerHTML="",this.el=S,this.disposable=[],this.before=f||{},this.locale=n||"en",this.newTopicName=d||"New Node",this.contextMenu=s??!0,this.toolBar=r??!0,this.keypress=l??!0,this.mouseSelectionButton=c??0,this.direction=t??1,this.draggable=o??!0,this.editable=i??!0,this.allowUndo=m??!0,this.scaleSensitivity=b??.1,this.scaleMax=y??1.4,this.scaleMin=C??.2,this.generateMainBranch=u||mo,this.generateSubBranch=h||vo,this.overflowHidden=p??!1,this.alignment=v??"root",this.handleWheel=E??!0,this.markdown=x||void 0,this.imageProxy=w||void 0,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.dragMoveHelper=yo(this),this.bus=Ct(),this.container=J.createElement("div"),this.selectionContainer=a||this.container,this.container.className="map-container";const k=window.matchMedia("(prefers-color-scheme: dark)");this.theme=g||(k.matches?ge:pe);const R=J.createElement("div");R.className="map-canvas",this.map=R,this.container.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=J.createElement("me-nodes"),this.lines=Z("lines"),this.summarySvg=Z("summary"),this.linkController=Z("linkcontroller"),this.P2=J.createElement("div"),this.P3=J.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=He(),this.line2=He(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=Z("topiclinks"),this.labelContainer=J.createElement("div"),this.labelContainer.className="label-container",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(xt(this))}return D.prototype=go,Object.defineProperty(D.prototype,"currentNode",{get(){return this.currentNodes[this.currentNodes.length-1]},enumerable:!0}),D.LEFT=0,D.RIGHT=1,D.SIDE=2,D.THEME=pe,D.DARK_THEME=ge,D.version=bo,D.E=Oe,D.new=e=>({nodeData:{id:F(),topic:e||"new topic",children:[]}}),D}();
@@ -2623,7 +2623,7 @@ function Io({ pT: e, pL: t, pW: n, pH: o, cT: i, cL: s, cW: r, cH: l, direction:
2623
2623
  const v = Math.abs(d - u) / 300 * f;
2624
2624
  return c === M.LHS ? (g = t, h = g + f, p = g - f, m = s + f, `M ${h} ${d} C ${g} ${d} ${g + v} ${u} ${p} ${u} H ${m}`) : (g = t + n, h = g - f, p = g + f, m = s + r - f, `M ${h} ${d} C ${g} ${d} ${g - v} ${u} ${p} ${u} H ${m}`);
2625
2625
  }
2626
- const Wo = "5.2.0-beta.1";
2626
+ const Wo = "5.2.0-beta.2";
2627
2627
  function Go(e) {
2628
2628
  return {
2629
2629
  x: 0,
@@ -11,4 +11,4 @@ var MindElixirLite=function(){"use strict";const _e="",Q={name:"Latte",type:"lig
11
11
  border: 1px solid #ccc;
12
12
  border-radius: 2px;
13
13
  `,ft(s),t.scrollIntoView(s),s.addEventListener("keydown",i=>{i.stopPropagation();const r=i.key;if(r==="Enter"||r==="Tab"){if(i.shiftKey)return;i.preventDefault(),s.blur(),t.container.focus()}}),s.addEventListener("blur",()=>{var r;if(!s)return;const i=((r=s.textContent)==null?void 0:r.trim())||"";i===""?n.label=o:n.label=i,s.remove(),i!==o&&(e.textContent=n.label,j(e),"parent"in n?t.bus.fire("operation",{name:"finishEditSummary",obj:n}):t.bus.fire("operation",{name:"finishEditArrowLabel",obj:n}))})},Gt=function(t){const e=this.map.querySelector("me-root"),n=e.offsetTop,o=e.offsetLeft,s=e.offsetWidth,i=e.offsetHeight,r=this.map.querySelectorAll("me-main > me-wrapper");this.lines.innerHTML="";for(let c=0;c<r.length;c++){const h=r[c],d=h.querySelector("me-tpc"),{offsetLeft:p,offsetTop:f}=D(this.nodes,d),y=d.offsetWidth,l=d.offsetHeight,a=h.parentNode.className,u=this.generateMainBranch({pT:n,pL:o,pW:s,pH:i,cT:f,cL:p,cW:y,cH:l,direction:a,containerHeight:this.nodes.offsetHeight}),g=this.theme.palette,v=d.nodeObj.branchColor||g[c%g.length];if(d.style.borderColor=v,this.lines.appendChild(ut(u,v,"3")),t&&t!==h)continue;const m=G("subLines"),w=h.lastChild;w.tagName==="svg"&&w.remove(),h.appendChild(m),mt(this,m,v,h,a,!0)}this.renderArrow(),this.renderSummary(),this.bus.fire("linkDiv")},mt=function(t,e,n,o,s,i){const r=o.firstChild,c=o.children[1].children;if(c.length===0)return;const h=r.offsetTop,d=r.offsetLeft,p=r.offsetWidth,f=r.offsetHeight;for(let y=0;y<c.length;y++){const l=c[y],a=l.firstChild,u=a.offsetTop,g=a.offsetLeft,v=a.offsetWidth,m=a.offsetHeight,w=a.firstChild.nodeObj.branchColor||n,b=t.generateSubBranch({pT:h,pL:d,pW:p,pH:f,cT:u,cL:g,cW:v,cH:m,direction:s,isFirst:i});e.appendChild(ut(b,w,"2"));const x=a.children[1];if(x){if(!x.expanded)continue}else continue;mt(t,e,w,l,s)}},Qe="",Ft='<?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"><svg t="1750169394918" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2021" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2022"></path></svg>',Rt='<?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"><svg t="1750169375313" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1775" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="1776"></path></svg>',Vt='<?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"><svg t="1750169667709" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3037" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="3038"></path></svg>',Yt='<?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"><svg t="1750169402629" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2170" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2171"></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" p-id="2172"></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" p-id="2173"></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" p-id="2174"></path></svg>',jt='<?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"><svg t="1750169573443" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2883" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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="currentColor" p-id="2884"></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="currentColor" p-id="2885"></path></svg>',zt='<?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"><svg t="1750169419447" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2480" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2481"></path></svg>',Xt='<?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"><svg t="1750169426515" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2730" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><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" p-id="2731"></path></svg>',Ze="",qt={side:Ft,left:Rt,right:Vt,full:Yt,living:jt,zoomin:zt,zoomout:Xt},H=(t,e)=>{const n=document.createElement("span");return n.id=t,n.innerHTML=qt[e],n};function _t(t){const e=document.createElement("div"),n=H("fullscreen","full"),o=H("toCenter","living"),s=H("zoomout","zoomout"),i=H("zoomin","zoomin"),r=document.createElement("span");return r.innerText="100%",e.appendChild(n),e.appendChild(o),e.appendChild(s),e.appendChild(i),e.className="mind-elixir-toolbar rb",n.onclick=()=>{document.fullscreenElement===t.el?document.exitFullscreen():t.el.requestFullscreen()},o.onclick=()=>{t.toCenter()},s.onclick=()=>{t.scale(t.scaleVal-t.scaleSensitivity)},i.onclick=()=>{t.scale(t.scaleVal+t.scaleSensitivity)},e}function Ut(t){const e=document.createElement("div"),n=H("tbltl","left"),o=H("tbltr","right"),s=H("tblts","side");return e.appendChild(n),e.appendChild(o),e.appendChild(s),e.className="mind-elixir-toolbar lt",n.onclick=()=>{t.initLeft()},o.onclick=()=>{t.initRight()},s.onclick=()=>{t.initSide()},e}function Kt(t){t.container.append(_t(t)),t.container.append(Ut(t))}const Jt=function(t,e=!0){this.theme=t;const o={...(t.type==="dark"?Z:Q).cssVar,...t.cssVar},s=Object.keys(o);for(let i=0;i<s.length;i++){const r=s[i];this.container.style.setProperty(r,o[r])}e&&this.refresh()},Qt=function(t){const n=t.parentElement.parentElement.lastElementChild;(n==null?void 0:n.tagName)==="svg"&&(n==null||n.remove())};function Zt(t){return{nodeData:t.isFocusMode?t.nodeDataBackup:t.nodeData,arrows:t.arrows,summaries:t.summaries,direction:t.direction,theme:t.theme}}const te=function(t){const e=this.container,n=t.getBoundingClientRect(),o=e.getBoundingClientRect();if(n.top>o.bottom||n.bottom<o.top||n.left>o.right||n.right<o.left){const i=n.left+n.width/2,r=n.top+n.height/2,c=o.left+o.width/2,h=o.top+o.height/2,d=i-c,p=r-h;this.move(-d,-p,!0)}},ee=function(t,e,n){this.clearSelection(),this.scrollIntoView(t),this.selection.select(t),e&&this.bus.fire("selectNewNode",t.nodeObj)},ne=function(t){this.selection.select(t)},oe=function(t){this.selection.deselect(t)},se=function(){this.unselectNodes(this.currentNodes),this.unselectSummary(),this.unselectArrow()},ie=function(){const t=Zt(this);return JSON.stringify(t,(e,n)=>{if(!(e==="parent"&&typeof n!="string"))return n})},re=function(){return JSON.parse(this.getDataString())},ce=function(){this.editable=!0},le=function(){this.editable=!1},ae=function(t,e={x:0,y:0}){if(t<this.scaleMin||t>this.scaleMax)return;const n=this.container.getBoundingClientRect(),o=e.x?e.x-n.left-n.width/2:0,s=e.y?e.y-n.top-n.height/2:0,{dx:i,dy:r}=yt(this),c=this.map.style.transform,{x:h,y:d}=ct(c),p=h-i,f=d-r,y=this.scaleVal,l=(-o+p)*(1-t/y),a=(-s+f)*(1-t/y);this.map.style.transform=`translate(${h-l}px, ${d-a}px) scale(${t})`,this.scaleVal=t,this.bus.fire("scale",t)},he=function(){const t=this.nodes.offsetHeight/this.container.offsetHeight,e=this.nodes.offsetWidth/this.container.offsetWidth,n=1/Math.max(1,Math.max(t,e));this.scaleVal=n,this.map.style.transform="scale("+n+")",this.bus.fire("scale",n)},de=function(t,e,n=!1){const{map:o,scaleVal:s,bus:i}=this,r=o.style.transform;let{x:c,y:h}=ct(r);c+=t,h+=e,n&&(o.style.transition="transform 0.3s",setTimeout(()=>{o.style.transition="none"},300)),o.style.transform=`translate(${c}px, ${h}px) scale(${s})`,i.fire("move",{dx:t,dy:e})},yt=t=>{const{container:e,map:n,nodes:o}=t,s=n.querySelector("me-root"),i=s.offsetTop,r=s.offsetLeft,c=s.offsetWidth,h=s.offsetHeight;let d,p;return t.alignment==="root"?(d=e.offsetWidth/2-r-c/2,p=e.offsetHeight/2-i-h/2,n.style.transformOrigin=`${r+c/2}px 50%`):(d=(e.offsetWidth-o.offsetWidth)/2,p=(e.offsetHeight-o.offsetHeight)/2,n.style.transformOrigin="50% 50%"),{dx:d,dy:p}},fe=Object.freeze(Object.defineProperty({__proto__:null,cancelFocus:function(){this.isFocusMode=!1,this.tempDirection!==null&&(this.nodeData=this.nodeDataBackup,this.direction=this.tempDirection,this.tempDirection=null,this.refresh(),this.toCenter())},clearSelection:se,disableEdit:le,enableEdit:ce,expandNode:function(t,e){const n=t.nodeObj;typeof e=="boolean"?n.expanded=e:n.expanded!==!1?n.expanded=!1:n.expanded=!0;const o=t.getBoundingClientRect(),s={x:o.left,y:o.top},i=t.parentNode,r=i.children[1];if(r.expanded=n.expanded,r.className=n.expanded?"minus":"",Qt(t),n.expanded){const f=this.createChildren(n.children.map(y=>this.createWrapper(y).grp));i.parentNode.appendChild(f)}else i.parentNode.children[1].remove();this.linkDiv(t.closest("me-main > me-wrapper"));const c=t.getBoundingClientRect(),h={x:c.left,y:c.top},d=s.x-h.x,p=s.y-h.y;this.move(d,p),this.bus.fire("expandNode",n)},expandNodeAll:function(t,e){const n=t.nodeObj,o=t.getBoundingClientRect(),s={x:o.left,y:o.top};et(n,e??!n.expanded),this.refresh();const i=this.findEle(n.id).getBoundingClientRect(),r={x:i.left,y:i.top},c=s.x-r.x,h=s.y-r.y;this.move(c,h)},focusNode:function(t){t.nodeObj.parent&&(this.clearSelection(),this.tempDirection===null&&(this.tempDirection=this.direction),this.isFocusMode||(this.nodeDataBackup=this.nodeData,this.isFocusMode=!0),this.nodeData=t.nodeObj,this.initRight(),this.toCenter())},getData:re,getDataString:ie,initLeft:function(){this.direction=0,this.refresh(),this.toCenter()},initRight:function(){this.direction=1,this.refresh(),this.toCenter()},initSide:function(){this.direction=2,this.refresh(),this.toCenter()},install:function(t){t(this)},move:de,refresh:function(t){this.clearSelection(),t&&(t=JSON.parse(JSON.stringify(t)),this.nodeData=t.nodeData,this.arrows=t.arrows||[],this.summaries=t.summaries||[],t.theme&&this.changeTheme(t.theme)),tt(this.nodeData),this.layout(),this.linkDiv()},scale:ae,scaleFit:he,scrollIntoView:te,selectNode:ee,selectNodes:ne,setLocale:function(t){this.locale=t,this.refresh()},toCenter:function(){const{map:t}=this,{dx:e,dy:n}=yt(this);t.style.transform=`translate(${e}px, ${n}px) scale(${this.scaleVal})`},unselectNodes:oe},Symbol.toStringTag,{value:"Module"})),vt={create:function(t){return{dom:t,moved:!1,pointerdown:!1,lastX:0,lastY:0,handlePointerMove(e){if(this.pointerdown){this.moved=!0;const n=e.clientX-this.lastX,o=e.clientY-this.lastY;this.lastX=e.clientX,this.lastY=e.clientY,this.cb&&this.cb(n,o)}},handlePointerDown(e){e.button===0&&(this.pointerdown=!0,this.lastX=e.clientX,this.lastY=e.clientY,this.dom.setPointerCapture(e.pointerId))},handleClear(e){this.pointerdown=!1,e.pointerId!==void 0&&this.dom.releasePointerCapture(e.pointerId)},cb:null,init(e,n){this.cb=n,this.handleClear=this.handleClear.bind(this),this.handlePointerMove=this.handlePointerMove.bind(this),this.handlePointerDown=this.handlePointerDown.bind(this),this.destroy=lt([{dom:e,evt:"pointermove",func:this.handlePointerMove},{dom:e,evt:"pointerleave",func:this.handleClear},{dom:e,evt:"pointerup",func:this.handleClear},{dom:this.dom,evt:"pointerdown",func:this.handlePointerDown}])},destroy:null,clear(){this.moved=!1,this.pointerdown=!1}}}},ue="#4dc4ff";function wt(t,e,n,o,s,i,r,c){return{x:t/8+n*3/8+s*3/8+r/8,y:e/8+o*3/8+i*3/8+c/8}}function pe(t,e,n){t&&(t.dataset.x=e.toString(),t.dataset.y=n.toString(),j(t))}function z(t,e,n,o,s){S(t,{x1:e+"",y1:n+"",x2:o+"",y2:s+""})}function bt(t,e,n,o,s,i,r,c,h,d){var u;const p=`M ${e} ${n} C ${o} ${s} ${i} ${r} ${c} ${h}`;if(t.line.setAttribute("d",p),d.style){const g=d.style;g.stroke&&t.line.setAttribute("stroke",g.stroke),g.strokeWidth&&t.line.setAttribute("stroke-width",String(g.strokeWidth)),g.strokeDasharray&&t.line.setAttribute("stroke-dasharray",g.strokeDasharray),g.strokeLinecap&&t.line.setAttribute("stroke-linecap",g.strokeLinecap),g.opacity!==void 0&&t.line.setAttribute("opacity",String(g.opacity))}const f=t.querySelectorAll('path[stroke="transparent"]');f.length>0&&f[0].setAttribute("d",p);const y=V(i,r,c,h);if(y){const g=`M ${y.x1} ${y.y1} L ${c} ${h} L ${y.x2} ${y.y2}`;if(t.arrow1.setAttribute("d",g),f.length>1&&f[1].setAttribute("d",g),d.style){const v=d.style;v.stroke&&t.arrow1.setAttribute("stroke",v.stroke),v.strokeWidth&&t.arrow1.setAttribute("stroke-width",String(v.strokeWidth)),v.strokeLinecap&&t.arrow1.setAttribute("stroke-linecap",v.strokeLinecap),v.opacity!==void 0&&t.arrow1.setAttribute("opacity",String(v.opacity))}}if(d.bidirectional){const g=V(o,s,e,n);if(g){const v=`M ${g.x1} ${g.y1} L ${e} ${n} L ${g.x2} ${g.y2}`;if(t.arrow2.setAttribute("d",v),f.length>2&&f[2].setAttribute("d",v),d.style){const m=d.style;m.stroke&&t.arrow2.setAttribute("stroke",m.stroke),m.strokeWidth&&t.arrow2.setAttribute("stroke-width",String(m.strokeWidth)),m.strokeLinecap&&t.arrow2.setAttribute("stroke-linecap",m.strokeLinecap),m.opacity!==void 0&&t.arrow2.setAttribute("opacity",String(m.opacity))}}}const{x:l,y:a}=wt(e,n,o,s,i,r,c,h);if(t.labelElement&&pe(t.labelElement,l,a),(u=d.style)!=null&&u.labelColor){const g=t.label.querySelector("div");g&&(g.style.color=d.style.labelColor)}Ce(t)}function X(t,e,n){const{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=e.offsetWidth,r=e.offsetHeight,c=o+i/2,h=s+r/2,d=c+n.x,p=h+n.y;return{w:i,h:r,cx:c,cy:h,ctrlX:d,ctrlY:p}}function I(t){let e,n;const o=(t.cy-t.ctrlY)/(t.ctrlX-t.cx);return o>t.h/t.w||o<-t.h/t.w?t.cy-t.ctrlY<0?(e=t.cx-t.h/2/o,n=t.cy+t.h/2):(e=t.cx+t.h/2/o,n=t.cy-t.h/2):t.cx-t.ctrlX<0?(e=t.cx+t.w/2,n=t.cy-t.w*o/2):(e=t.cx-t.w/2,n=t.cy+t.w*o/2),{x:e,y:n}}const ot=function(t,e,n,o,s){var M;if(!e||!n)return;const i=X(t,e,o.delta1),r=X(t,n,o.delta2),{x:c,y:h}=I(i),{ctrlX:d,ctrlY:p}=i,{ctrlX:f,ctrlY:y}=r,{x:l,y:a}=I(r),u=V(f,y,l,a);if(!u)return;const g=`M ${u.x1} ${u.y1} L ${l} ${a} L ${u.x2} ${u.y2}`;let v="";if(o.bidirectional){const $=V(d,p,c,h);if(!$)return;v=`M ${$.x1} ${$.y1} L ${c} ${h} L ${$.x2} ${$.y2}`}const m=Wt(`M ${c} ${h} C ${d} ${p} ${f} ${y} ${l} ${a}`,g,v,o.style),{x:w,y:b}=wt(c,h,d,p,f,y,l,a),x=(M=o.style)==null?void 0:M.labelColor,E="arrow-"+o.id;m.id=E;const C=nt(o.label,w,b,{anchor:"middle",color:x,dataType:"link-label",svgId:E});t.labelContainer.appendChild(C),j(C);const k=document.createElementNS("http://www.w3.org/2000/svg","foreignObject");m.label=k,m.labelElement=C,m.arrowObj=o,m.dataset.linkid=o.id,t.linkSvgGroup.appendChild(m),s||(t.arrows.push(o),t.currentArrow=m,xt(t,o,i,r))},ge=function(t,e,n={}){const o={id:W(),label:"Custom Link",from:t.nodeObj.id,to:e.nodeObj.id,delta1:{x:t.offsetWidth/2+100,y:0},delta2:{x:e.offsetWidth/2+100,y:0},...n};ot(this,t,e,o),this.bus.fire("operation",{name:"createArrow",obj:o})},me=function(t){q(this);const e={...t,id:W()};ot(this,this.findEle(e.from),this.findEle(e.to),e),this.bus.fire("operation",{name:"createArrow",obj:e})},ye=function(t){let e;if(t?e=t:e=this.currentArrow,!e)return;q(this);const n=e.arrowObj.id;this.arrows=this.arrows.filter(o=>o.id!==n),e.remove(),this.bus.fire("operation",{name:"removeArrow",obj:{id:n}})},ve=function(t){this.currentArrow=t;const e=t.arrowObj,n=this.findEle(e.from),o=this.findEle(e.to),s=X(this,n,e.delta1),i=X(this,o,e.delta2);xt(this,e,s,i)},we=function(){q(this),this.currentArrow=null},st=function(t,e){const n=document.createElementNS(A,"path");return S(n,{d:t,stroke:e,fill:"none","stroke-width":"6","stroke-linecap":"round","stroke-linejoin":"round"}),n},be=function(t,e){const n=document.createElementNS(A,"g");n.setAttribute("class","arrow-highlight"),n.setAttribute("opacity","0.45");const o=st(t.line.getAttribute("d"),e);n.appendChild(o);const s=st(t.arrow1.getAttribute("d"),e);if(n.appendChild(s),t.arrow2.getAttribute("d")){const i=st(t.arrow2.getAttribute("d"),e);n.appendChild(i)}t.insertBefore(n,t.firstChild)},xe=function(t){const e=t.querySelector(".arrow-highlight");e&&e.remove()},Ce=function(t){const e=t.querySelector(".arrow-highlight");if(!e)return;const n=e.querySelectorAll("path");n.length>=1&&n[0].setAttribute("d",t.line.getAttribute("d")),n.length>=2&&n[1].setAttribute("d",t.arrow1.getAttribute("d")),n.length>=3&&t.arrow2.getAttribute("d")&&n[2].setAttribute("d",t.arrow2.getAttribute("d"))},q=function(t){var e,n;(e=t.helper1)==null||e.destroy(),(n=t.helper2)==null||n.destroy(),t.linkController.style.display="none",t.P2.style.display="none",t.P3.style.display="none",t.currentArrow&&xe(t.currentArrow)},xt=function(t,e,n,o){const{linkController:s,P2:i,P3:r,line1:c,line2:h,nodes:d,map:p,currentArrow:f,bus:y}=t;if(!f)return;s.style.display="initial",i.style.display="initial",r.style.display="initial",d.appendChild(s),d.appendChild(i),d.appendChild(r),be(f,ue);let{x:l,y:a}=I(n),{ctrlX:u,ctrlY:g}=n,{ctrlX:v,ctrlY:m}=o,{x:w,y:b}=I(o);i.style.cssText=`top:${g}px;left:${u}px;`,r.style.cssText=`top:${m}px;left:${v}px;`,z(c,l,a,u,g),z(h,v,m,w,b),t.helper1=vt.create(i),t.helper2=vt.create(r),t.helper1.init(p,(x,E)=>{u=u+x/t.scaleVal,g=g+E/t.scaleVal;const C=I({...n,ctrlX:u,ctrlY:g});l=C.x,a=C.y,i.style.top=g+"px",i.style.left=u+"px",bt(f,l,a,u,g,v,m,w,b,e),z(c,l,a,u,g),e.delta1.x=u-n.cx,e.delta1.y=g-n.cy,y.fire("updateArrowDelta",e)}),t.helper2.init(p,(x,E)=>{v=v+x/t.scaleVal,m=m+E/t.scaleVal;const C=I({...o,ctrlX:v,ctrlY:m});w=C.x,b=C.y,r.style.top=m+"px",r.style.left=v+"px",bt(f,l,a,u,g,v,m,w,b,e),z(h,v,m,w,b),e.delta2.x=v-o.cx,e.delta2.y=m-o.cy,y.fire("updateArrowDelta",e)})};function Se(){this.linkSvgGroup.innerHTML="";for(let t=0;t<this.arrows.length;t++){const e=this.arrows[t];try{ot(this,this.findEle(e.from),this.findEle(e.to),e,!0)}catch{}}this.nodes.appendChild(this.linkSvgGroup)}function Ee(t){q(this),t&&t.labelElement&&gt(this,t.labelElement,t.arrowObj)}function ke(){this.arrows=this.arrows.filter(t=>R(t.from,this.nodeData)&&R(t.to,this.nodeData))}const Le=Object.freeze(Object.defineProperty({__proto__:null,createArrow:ge,createArrowFrom:me,editArrowLabel:Ee,removeArrow:ye,renderArrow:Se,selectArrow:ve,tidyArrow:ke,unselectArrow:we},Symbol.toStringTag,{value:"Module"})),Te=function(t){var h,d;if(t.length===0)throw new Error("No selected node.");if(t.length===1){const p=t[0].nodeObj,f=t[0].nodeObj.parent;if(!f)throw new Error("Can not select root node.");const y=f.children.findIndex(l=>p===l);return{parent:f.id,start:y,end:y}}let e=0;const n=t.map(p=>{let f=p.nodeObj;const y=[];for(;f.parent;){const l=f.parent,a=l.children,u=a==null?void 0:a.indexOf(f);f=l,y.unshift({node:f,index:u})}return y.length>e&&(e=y.length),y});let o=0;t:for(;o<e;o++){const p=(h=n[0][o])==null?void 0:h.node;for(let f=1;f<n.length;f++)if(((d=n[f][o])==null?void 0:d.node)!==p)break t}if(!o)throw new Error("Can not select root node.");const s=n.map(p=>p[o-1].index).sort(),i=s[0]||0,r=s[s.length-1]||0,c=n[0][o-1].node;if(!c.parent)throw new Error("Please select nodes in the same main topic.");return{parent:c.id,start:i,end:r}},$e=function(t){const e=document.createElementNS(A,"g");return e.setAttribute("id",t),e},Ct=function(t,e){const n=document.createElementNS(A,"path");return S(n,{d:t,stroke:e||"#666",fill:"none","stroke-linecap":"round","stroke-width":"2"}),n},Ae=t=>t.parentElement.parentElement,Ne=function(t,{parent:e,start:n}){const o=t.findEle(e),s=o.nodeObj;let i;return s.parent?i=o.closest("me-main").className:i=t.findEle(s.children[n].id).closest("me-main").className,i},it=function(t,e){var M;const{id:n,label:o,parent:s,start:i,end:r}=e,{nodes:c,theme:h,summarySvg:d}=t,f=t.findEle(s).nodeObj,y=Ne(t,e);let l=1/0,a=0,u=0,g=0;for(let $=i;$<=r;$++){const F=(M=f.children)==null?void 0:M[$];if(!F)return t.removeSummary(n),null;const K=Ae(t.findEle(F.id)),{offsetLeft:J,offsetTop:St}=D(c,K),Et=i===r?10:20;$===i&&(u=St+Et),$===r&&(g=St+K.offsetHeight-Et),J<l&&(l=J),K.offsetWidth+J>a&&(a=K.offsetWidth+J)}let v,m;const w=u+10,b=g+10,x=(w+b)/2,E=h.cssVar["--color"],C="s-"+n;y===P.LHS?(v=Ct(`M ${l+10} ${w} c -5 0 -10 5 -10 10 L ${l} ${b-10} c 0 5 5 10 10 10 M ${l} ${x} h -10`,E),m=nt(o,l-20,x,{anchor:"end",color:E,dataType:"s-label",svgId:C})):(v=Ct(`M ${a-10} ${w} c 5 0 10 5 10 10 L ${a} ${b-10} c 0 5 -5 10 -10 10 M ${a} ${x} h 10`,E),m=nt(o,a+20,x,{anchor:"start",color:E,dataType:"s-label",svgId:C}));const k=$e(C);return k.appendChild(v),t.labelContainer.appendChild(m),j(m),k.summaryObj=e,k.labelElement=m,d.appendChild(k),k},De=Object.freeze(Object.defineProperty({__proto__:null,createSummary:function(){if(!this.currentNodes)return;const{currentNodes:t,summaries:e,bus:n}=this,{parent:o,start:s,end:i}=Te(t),r={id:W(),parent:o,start:s,end:i,label:"summary"},c=it(this,r);e.push(r),this.editSummary(c),n.fire("operation",{name:"createSummary",obj:r})},createSummaryFrom:function(t){const e=W(),n={...t,id:e};it(this,n),this.summaries.push(n),this.bus.fire("operation",{name:"createSummary",obj:n})},editSummary:function(t){t&&t.labelElement&&gt(this,t.labelElement,t.summaryObj)},removeSummary:function(t){var n,o;const e=this.summaries.findIndex(s=>s.id===t);e>-1&&(this.summaries.splice(e,1),(n=this.nodes.querySelector("#s-"+t))==null||n.remove(),(o=this.nodes.querySelector("#label-s-"+t))==null||o.remove()),this.bus.fire("operation",{name:"removeSummary",obj:{id:t}})},renderSummary:function(){this.summarySvg.innerHTML="",this.summaries.forEach(t=>{try{it(this,t)}catch{}}),this.nodes.insertAdjacentElement("beforeend",this.summarySvg)},selectSummary:function(t){const e=t.labelElement;e&&e.classList.add("selected"),this.currentSummary=t},unselectSummary:function(){var t,e;(e=(t=this.currentSummary)==null?void 0:t.labelElement)==null||e.classList.remove("selected"),this.currentSummary=null}},Symbol.toStringTag,{value:"Module"})),T="http://www.w3.org/2000/svg";function Me(t,e){const n=document.createElementNS(T,"svg");return S(n,{version:"1.1",xmlns:T,height:t,width:e}),n}function Pe(t,e){return(parseInt(t)-parseInt(e))/2}function He(t,e,n,o){const s=document.createElementNS(T,"g");let i="";return t.text?i=t.text.textContent:i=t.childNodes[0].textContent,i.split(`
14
- `).forEach((c,h)=>{const d=document.createElementNS(T,"text");S(d,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+Pe(e.lineHeight,e.fontSize)*(h+1)+parseFloat(e.fontSize)*(h+1)+"","text-anchor":"start","font-family":e.fontFamily,"font-size":`${e.fontSize}`,"font-weight":`${e.fontWeight}`,fill:`${e.color}`}),d.innerHTML=c,s.appendChild(d)}),s}function Be(t,e,n,o){var c;let s="";(c=t.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=t.nodeObj.dangerouslySetInnerHTML:t.text?s=t.text.textContent:s=t.childNodes[0].textContent;const i=document.createElementNS(T,"foreignObject");S(i,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+"",width:e.width,height:e.height});const r=document.createElement("div");return S(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Ie(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"rect");return S(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function _(t,e,n=!1){const o=getComputedStyle(e),{offsetLeft:s,offsetTop:i}=D(t.nodes,e),r=document.createElementNS(T,"rect");S(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(T,"g");c.appendChild(r);let h;return n?h=Be(e,o,s,i):h=He(e,o,s,i),c.appendChild(h),c}function Oe(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"a"),r=document.createElementNS(T,"text");return S(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=e.textContent,i.appendChild(r),i.setAttribute("href",e.href),i}function We(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"image");return S(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:e.src}),i}const U=100,Ge='<?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">',Fe=(t,e=!1)=>{var f,y,l;const n=t.nodes,o=n.offsetHeight+U*2,s=n.offsetWidth+U*2,i=Me(o+"px",s+"px"),r=document.createElementNS(T,"svg"),c=document.createElementNS(T,"rect");S(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:t.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(a=>{const u=a.cloneNode(!0),{offsetLeft:g,offsetTop:v}=D(n,a.parentElement);u.setAttribute("x",`${g}`),u.setAttribute("y",`${v}`),r.appendChild(u)});const h=(f=n.querySelector(".lines"))==null?void 0:f.cloneNode(!0);h&&r.appendChild(h);const d=(y=n.querySelector(".topiclinks"))==null?void 0:y.cloneNode(!0);d&&r.appendChild(d);const p=(l=n.querySelector(".summary"))==null?void 0:l.cloneNode(!0);return p&&r.appendChild(p),n.querySelectorAll("me-tpc").forEach(a=>{a.nodeObj.dangerouslySetInnerHTML?r.appendChild(_(t,a,!e)):(r.appendChild(Ie(t,a)),r.appendChild(_(t,a.text,!e)))}),n.querySelectorAll(".tags > span").forEach(a=>{r.appendChild(_(t,a))}),n.querySelectorAll(".icons > span").forEach(a=>{r.appendChild(_(t,a))}),n.querySelectorAll(".hyper-link").forEach(a=>{r.appendChild(Oe(t,a))}),n.querySelectorAll("img").forEach(a=>{r.appendChild(We(t,a))}),S(r,{x:U+"",y:U+"",overflow:"visible"}),i.appendChild(r),i},Re=(t,e)=>(e&&t.insertAdjacentHTML("afterbegin","<style>"+e+"</style>"),Ge+t.outerHTML);function Ve(t){return new Promise((e,n)=>{const o=new FileReader;o.onload=s=>{e(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(t)})}const Ye={getObjById:R,generateNewObj:Lt,layout:At,linkDiv:Gt,editTopic:It,createWrapper:Mt,createParent:Pt,createChildren:Ht,createTopic:Bt,findEle:ht,changeTheme:Jt,...fe,...{},...Le,...De,...Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(t=!1,e){const n=this.exportSvg(t,e),o=await Ve(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(t=!1,e){const n=Fe(this,t),o=Re(n,e);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"})),init(t){if(t=JSON.parse(JSON.stringify(t)),!t||!t.nodeData)return new Error("MindElixir: `data` is required");t.direction!==void 0&&(this.direction=t.direction),this.changeTheme(t.theme||this.theme,!1),this.nodeData=t.nodeData,tt(this.nodeData),this.arrows=t.arrows||[],this.summaries=t.summaries||[],this.tidyArrow(),this.toolBar&&Kt(this),this.layout(),this.linkDiv(),this.toCenter()},destroy(){var t;this.disposable.forEach(e=>e()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=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,(t=this.selection)==null||t.destroy(),this.selection=void 0}};function je({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:h,containerHeight:d}){let p=e+n/2;const f=t+o/2;let y;h===P.LHS?y=i+r:y=i;const l=s+c/2,u=(1-Math.abs(l-f)/d)*.25*(n/2);return h===P.LHS?p=p-n/10-u:p=p+n/10+u,`M ${p} ${f} Q ${p} ${l} ${y} ${l}`}function ze({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:h,isFirst:d}){const p=parseInt(this.container.style.getPropertyValue("--node-gap-x"));let f=0,y=0;d?f=t+o/2:f=t+o;const l=s+c;let a=0,u=0,g=0;const v=Math.abs(f-l)/300*p;return h===P.LHS?(g=e,a=g+p,u=g-p,y=i+p,`M ${a} ${f} C ${g} ${f} ${g+v} ${l} ${u} ${l} H ${y}`):(g=e+n,a=g-p,u=g+p,y=i+r-p,`M ${a} ${f} C ${g} ${f} ${g-v} ${l} ${u} ${l} H ${y}`)}const Xe="5.2.0-beta.1";function qe(t){return{x:0,y:0,moved:!1,mousedown:!1,onMove(e,n){this.mousedown&&(this.moved=!0,t.move(e,n))},clear(){this.mousedown=!1}}}const O=document;function N({el:t,direction:e,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:h,selectionContainer:d,before:p,newTopicName:f,allowUndo:y,generateMainBranch:l,generateSubBranch:a,overflowHidden:u,theme:g,alignment:v,scaleSensitivity:m,scaleMax:w,scaleMin:b,handleWheel:x,markdown:E,imageProxy:C}){let k=null;const M=Object.prototype.toString.call(t);if(M==="[object HTMLDivElement]"?k=t:M==="[object String]"&&(k=document.querySelector(t)),!k)throw new Error("MindElixir: el is not a valid element");k.style.position="relative",k.innerHTML="",this.el=k,this.disposable=[],this.before=p||{},this.locale=n||"en",this.newTopicName=f||"New Node",this.contextMenu=i??!0,this.toolBar=r??!0,this.keypress=c??!0,this.mouseSelectionButton=h??0,this.direction=e??1,this.draggable=o??!0,this.editable=s??!0,this.allowUndo=y??!0,this.scaleSensitivity=m??.1,this.scaleMax=w??1.4,this.scaleMin=b??.2,this.generateMainBranch=l||je,this.generateSubBranch=a||ze,this.overflowHidden=u??!1,this.alignment=v??"root",this.handleWheel=x??!0,this.markdown=E||void 0,this.imageProxy=C||void 0,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.dragMoveHelper=qe(this),this.bus=$t(),this.container=O.createElement("div"),this.selectionContainer=d||this.container,this.container.className="map-container";const $=window.matchMedia("(prefers-color-scheme: dark)");this.theme=g||($.matches?Z:Q);const F=O.createElement("div");F.className="map-canvas",this.map=F,this.container.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=O.createElement("me-nodes"),this.lines=G("lines"),this.summarySvg=G("summary"),this.linkController=G("linkcontroller"),this.P2=O.createElement("div"),this.P3=O.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=pt(),this.line2=pt(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=G("topiclinks"),this.labelContainer=O.createElement("div"),this.labelContainer.className="label-container",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(Tt(this))}return N.prototype=Ye,Object.defineProperty(N.prototype,"currentNode",{get(){return this.currentNodes[this.currentNodes.length-1]},enumerable:!0}),N.LEFT=0,N.RIGHT=1,N.SIDE=2,N.THEME=Q,N.DARK_THEME=Z,N.version=Xe,N.E=ht,N}();
14
+ `).forEach((c,h)=>{const d=document.createElementNS(T,"text");S(d,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+Pe(e.lineHeight,e.fontSize)*(h+1)+parseFloat(e.fontSize)*(h+1)+"","text-anchor":"start","font-family":e.fontFamily,"font-size":`${e.fontSize}`,"font-weight":`${e.fontWeight}`,fill:`${e.color}`}),d.innerHTML=c,s.appendChild(d)}),s}function Be(t,e,n,o){var c;let s="";(c=t.nodeObj)!=null&&c.dangerouslySetInnerHTML?s=t.nodeObj.dangerouslySetInnerHTML:t.text?s=t.text.textContent:s=t.childNodes[0].textContent;const i=document.createElementNS(T,"foreignObject");S(i,{x:n+parseInt(e.paddingLeft)+"",y:o+parseInt(e.paddingTop)+"",width:e.width,height:e.height});const r=document.createElement("div");return S(r,{xmlns:"http://www.w3.org/1999/xhtml",style:`font-family: ${e.fontFamily}; font-size: ${e.fontSize}; font-weight: ${e.fontWeight}; color: ${e.color}; white-space: pre-wrap;`}),r.innerHTML=s,i.appendChild(r),i}function Ie(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"rect");return S(i,{x:o+"",y:s+"",rx:n.borderRadius,ry:n.borderRadius,width:n.width,height:n.height,fill:n.backgroundColor,stroke:n.borderColor,"stroke-width":n.borderWidth}),i}function _(t,e,n=!1){const o=getComputedStyle(e),{offsetLeft:s,offsetTop:i}=D(t.nodes,e),r=document.createElementNS(T,"rect");S(r,{x:s+"",y:i+"",rx:o.borderRadius,ry:o.borderRadius,width:o.width,height:o.height,fill:o.backgroundColor,stroke:o.borderColor,"stroke-width":o.borderWidth});const c=document.createElementNS(T,"g");c.appendChild(r);let h;return n?h=Be(e,o,s,i):h=He(e,o,s,i),c.appendChild(h),c}function Oe(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"a"),r=document.createElementNS(T,"text");return S(r,{x:o+"",y:s+parseInt(n.fontSize)+"","text-anchor":"start","font-family":n.fontFamily,"font-size":`${n.fontSize}`,"font-weight":`${n.fontWeight}`,fill:`${n.color}`}),r.innerHTML=e.textContent,i.appendChild(r),i.setAttribute("href",e.href),i}function We(t,e){const n=getComputedStyle(e),{offsetLeft:o,offsetTop:s}=D(t.nodes,e),i=document.createElementNS(T,"image");return S(i,{x:o+"",y:s+"",width:n.width+"",height:n.height+"",href:e.src}),i}const U=100,Ge='<?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">',Fe=(t,e=!1)=>{var f,y,l;const n=t.nodes,o=n.offsetHeight+U*2,s=n.offsetWidth+U*2,i=Me(o+"px",s+"px"),r=document.createElementNS(T,"svg"),c=document.createElementNS(T,"rect");S(c,{x:"0",y:"0",width:`${s}`,height:`${o}`,fill:t.theme.cssVar["--bgcolor"]}),i.appendChild(c),n.querySelectorAll(".subLines").forEach(a=>{const u=a.cloneNode(!0),{offsetLeft:g,offsetTop:v}=D(n,a.parentElement);u.setAttribute("x",`${g}`),u.setAttribute("y",`${v}`),r.appendChild(u)});const h=(f=n.querySelector(".lines"))==null?void 0:f.cloneNode(!0);h&&r.appendChild(h);const d=(y=n.querySelector(".topiclinks"))==null?void 0:y.cloneNode(!0);d&&r.appendChild(d);const p=(l=n.querySelector(".summary"))==null?void 0:l.cloneNode(!0);return p&&r.appendChild(p),n.querySelectorAll("me-tpc").forEach(a=>{a.nodeObj.dangerouslySetInnerHTML?r.appendChild(_(t,a,!e)):(r.appendChild(Ie(t,a)),r.appendChild(_(t,a.text,!e)))}),n.querySelectorAll(".tags > span").forEach(a=>{r.appendChild(_(t,a))}),n.querySelectorAll(".icons > span").forEach(a=>{r.appendChild(_(t,a))}),n.querySelectorAll(".hyper-link").forEach(a=>{r.appendChild(Oe(t,a))}),n.querySelectorAll("img").forEach(a=>{r.appendChild(We(t,a))}),S(r,{x:U+"",y:U+"",overflow:"visible"}),i.appendChild(r),i},Re=(t,e)=>(e&&t.insertAdjacentHTML("afterbegin","<style>"+e+"</style>"),Ge+t.outerHTML);function Ve(t){return new Promise((e,n)=>{const o=new FileReader;o.onload=s=>{e(s.target.result)},o.onerror=s=>{n(s)},o.readAsDataURL(t)})}const Ye={getObjById:R,generateNewObj:Lt,layout:At,linkDiv:Gt,editTopic:It,createWrapper:Mt,createParent:Pt,createChildren:Ht,createTopic:Bt,findEle:ht,changeTheme:Jt,...fe,...{},...Le,...De,...Object.freeze(Object.defineProperty({__proto__:null,exportPng:async function(t=!1,e){const n=this.exportSvg(t,e),o=await Ve(n);return new Promise((s,i)=>{const r=new Image;r.setAttribute("crossOrigin","anonymous"),r.onload=()=>{const c=document.createElement("canvas");c.width=r.width,c.height=r.height,c.getContext("2d").drawImage(r,0,0),c.toBlob(s,"image/png",1)},r.src=o,r.onerror=i})},exportSvg:function(t=!1,e){const n=Fe(this,t),o=Re(n,e);return new Blob([o],{type:"image/svg+xml"})}},Symbol.toStringTag,{value:"Module"})),init(t){if(t=JSON.parse(JSON.stringify(t)),!t||!t.nodeData)return new Error("MindElixir: `data` is required");t.direction!==void 0&&(this.direction=t.direction),this.changeTheme(t.theme||this.theme,!1),this.nodeData=t.nodeData,tt(this.nodeData),this.arrows=t.arrows||[],this.summaries=t.summaries||[],this.tidyArrow(),this.toolBar&&Kt(this),this.layout(),this.linkDiv(),this.toCenter()},destroy(){var t;this.disposable.forEach(e=>e()),this.el&&(this.el.innerHTML=""),this.el=void 0,this.nodeData=void 0,this.arrows=void 0,this.summaries=void 0,this.currentArrow=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,(t=this.selection)==null||t.destroy(),this.selection=void 0}};function je({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:h,containerHeight:d}){let p=e+n/2;const f=t+o/2;let y;h===P.LHS?y=i+r:y=i;const l=s+c/2,u=(1-Math.abs(l-f)/d)*.25*(n/2);return h===P.LHS?p=p-n/10-u:p=p+n/10+u,`M ${p} ${f} Q ${p} ${l} ${y} ${l}`}function ze({pT:t,pL:e,pW:n,pH:o,cT:s,cL:i,cW:r,cH:c,direction:h,isFirst:d}){const p=parseInt(this.container.style.getPropertyValue("--node-gap-x"));let f=0,y=0;d?f=t+o/2:f=t+o;const l=s+c;let a=0,u=0,g=0;const v=Math.abs(f-l)/300*p;return h===P.LHS?(g=e,a=g+p,u=g-p,y=i+p,`M ${a} ${f} C ${g} ${f} ${g+v} ${l} ${u} ${l} H ${y}`):(g=e+n,a=g-p,u=g+p,y=i+r-p,`M ${a} ${f} C ${g} ${f} ${g-v} ${l} ${u} ${l} H ${y}`)}const Xe="5.2.0-beta.2";function qe(t){return{x:0,y:0,moved:!1,mousedown:!1,onMove(e,n){this.mousedown&&(this.moved=!0,t.move(e,n))},clear(){this.mousedown=!1}}}const O=document;function N({el:t,direction:e,locale:n,draggable:o,editable:s,contextMenu:i,toolBar:r,keypress:c,mouseSelectionButton:h,selectionContainer:d,before:p,newTopicName:f,allowUndo:y,generateMainBranch:l,generateSubBranch:a,overflowHidden:u,theme:g,alignment:v,scaleSensitivity:m,scaleMax:w,scaleMin:b,handleWheel:x,markdown:E,imageProxy:C}){let k=null;const M=Object.prototype.toString.call(t);if(M==="[object HTMLDivElement]"?k=t:M==="[object String]"&&(k=document.querySelector(t)),!k)throw new Error("MindElixir: el is not a valid element");k.style.position="relative",k.innerHTML="",this.el=k,this.disposable=[],this.before=p||{},this.locale=n||"en",this.newTopicName=f||"New Node",this.contextMenu=i??!0,this.toolBar=r??!0,this.keypress=c??!0,this.mouseSelectionButton=h??0,this.direction=e??1,this.draggable=o??!0,this.editable=s??!0,this.allowUndo=y??!0,this.scaleSensitivity=m??.1,this.scaleMax=w??1.4,this.scaleMin=b??.2,this.generateMainBranch=l||je,this.generateSubBranch=a||ze,this.overflowHidden=u??!1,this.alignment=v??"root",this.handleWheel=x??!0,this.markdown=E||void 0,this.imageProxy=C||void 0,this.currentNodes=[],this.currentArrow=null,this.scaleVal=1,this.tempDirection=null,this.dragMoveHelper=qe(this),this.bus=$t(),this.container=O.createElement("div"),this.selectionContainer=d||this.container,this.container.className="map-container";const $=window.matchMedia("(prefers-color-scheme: dark)");this.theme=g||($.matches?Z:Q);const F=O.createElement("div");F.className="map-canvas",this.map=F,this.container.setAttribute("tabindex","0"),this.container.appendChild(this.map),this.el.appendChild(this.container),this.nodes=O.createElement("me-nodes"),this.lines=G("lines"),this.summarySvg=G("summary"),this.linkController=G("linkcontroller"),this.P2=O.createElement("div"),this.P3=O.createElement("div"),this.P2.className=this.P3.className="circle",this.P2.style.display=this.P3.style.display="none",this.line1=pt(),this.line2=pt(),this.linkController.appendChild(this.line1),this.linkController.appendChild(this.line2),this.linkSvgGroup=G("topiclinks"),this.labelContainer=O.createElement("div"),this.labelContainer.className="label-container",this.map.appendChild(this.nodes),this.overflowHidden?this.container.style.overflow="hidden":this.disposable.push(Tt(this))}return N.prototype=Ye,Object.defineProperty(N.prototype,"currentNode",{get(){return this.currentNodes[this.currentNodes.length-1]},enumerable:!0}),N.LEFT=0,N.RIGHT=1,N.SIDE=2,N.THEME=Q,N.DARK_THEME=Z,N.version=Xe,N.E=ht,N}();
@@ -1317,7 +1317,7 @@ function gn({ pT: t, pL: e, pW: n, pH: o, cT: s, cL: i, cW: r, cH: c, direction:
1317
1317
  const w = Math.abs(f - l) / 300 * p;
1318
1318
  return h === H.LHS ? (g = e, a = g + p, u = g - p, y = i + p, `M ${a} ${f} C ${g} ${f} ${g + w} ${l} ${u} ${l} H ${y}`) : (g = e + n, a = g - p, u = g + p, y = i + r - p, `M ${a} ${f} C ${g} ${f} ${g - w} ${l} ${u} ${l} H ${y}`);
1319
1319
  }
1320
- const mn = "5.2.0-beta.1";
1320
+ const mn = "5.2.0-beta.2";
1321
1321
  function yn(t) {
1322
1322
  return {
1323
1323
  x: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mind-elixir",
3
- "version": "5.2.0-beta.1",
3
+ "version": "5.2.0-beta.2",
4
4
  "type": "module",
5
5
  "description": "Mind elixir is a free open source mind map core.",
6
6
  "keywords": [
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes