automata/docs/index-A55P4VY5.js
Parker TenBroeck 0f9fb6ab17 Deploy
2026-01-13 00:29:30 -05:00

1093 lines
962 KiB
JavaScript

var eM=Object.defineProperty;var tM=(r,e)=>{for(var t in e)eM(r,t,{get:e[t],enumerable:!0})};var iA=class{listeners=new Map;on(e,t){let i=this.listeners.get(e);return i||(i=new Set,this.listeners.set(e,i)),i.add(t),()=>this.off(e,t)}once(e,t){let i=this.on(e,n=>{i(),t(n)});return i}off(e,t){let i=this.listeners.get(e);i&&(i.delete(t),i.size===0&&this.listeners.delete(e))}emit(e,t){let i=this.listeners.get(e);if(i)for(let n of Array.from(i))try{n(t)}catch(s){console.log(s)}}clear(e){e?this.listeners.delete(e):this.listeners.clear()}},z=new iA;function Bo(r,e,t){return Math.max(e,Math.min(t,r))}function Fo(r,e,t){let i=getComputedStyle(r).getPropertyValue(e).trim();if(!i)return t;let n=i.toLowerCase();if(n.endsWith("px")){let o=Number(n.slice(0,-2));return Number.isFinite(o)?o:t}let s=Number(n);return Number.isFinite(s)?s:t}function Xm(r,e,t){let i=getComputedStyle(r).getPropertyValue(e).trim();if(!i)return t;let n=i.toLowerCase();if(n.endsWith("%")){let o=Number(n.slice(0,-1));return Number.isFinite(o)?o:t}let s=Number(n);return Number.isFinite(s)?s:t}function Qm(r,e){getComputedStyle(r).display!=="flex"&&(r.style.display="flex"),r.style.flexDirection=e,r.style.overflow="hidden"}function Lo(r){r.style.minWidth="0",r.style.minHeight="0"}function zo(r,e,t){r.style.flexGrow="0",r.style.flexShrink="0",r.style.flexBasis=`${t}px`,e==="x"?r.style.width=`${t}px`:r.style.height=`${t}px`}function Jm(r){r.style.flex="1 1 auto"}function iM(){for(let r of document.querySelectorAll(".hSplit:not(.styleOnly)")){let e=r.parentElement;if(!e)continue;let t=Array.from(e.children);if(t.length!==3||t[1]!==r){console.warn("hSplit parent must be A | splitter | B",e);continue}let i=t[0],n=t[2];Qm(e,"column"),Lo(i),Lo(n),Jm(n);let s=r.getBoundingClientRect().height||8;r.style.flex=`0 0 ${s}px`;let o=Xm(r,"--split-default",60),g=Fo(r,"--split-min-a",80),a=Fo(r,"--split-min-b",180);{let C=e.getBoundingClientRect(),I=Bo(o/100*C.height,g,C.height-s-a);zo(i,"y",I)}let A=!1;r.addEventListener("pointerdown",C=>{A=!0,r.setPointerCapture(C.pointerId),document.body.style.cursor="row-resize",C.preventDefault()}),r.addEventListener("pointermove",C=>{if(!A)return;let I=e.getBoundingClientRect(),l=C.clientY-I.top,h=I.height-s-a,d=Bo(l,g,h);zo(i,"y",d)}),r.addEventListener("pointerup",C=>{A=!1,document.body.style.cursor="",r.releasePointerCapture(C.pointerId)}),r.addEventListener("pointercancel",()=>{A=!1,document.body.style.cursor=""})}for(let r of document.querySelectorAll(".vSplit:not(.styleOnly)")){let e=r.parentElement;if(!e)continue;let t=Array.from(e.children);if(t.length!==3||t[1]!==r){console.warn("vSplit parent must be A | splitter | B",e);continue}let i=t[0],n=t[2];Qm(e,"row"),Lo(i),Lo(n),Jm(i);let s=r.getBoundingClientRect().width||8;r.style.flex=`0 0 ${s}px`;let o=Xm(r,"--split-default",50),g=Fo(r,"--split-min-a",220),a=Fo(r,"--split-min-b",220);{let C=e.getBoundingClientRect(),I=Bo(o/100*C.width,a,C.width-s-g);zo(n,"x",I)}let A=!1;r.addEventListener("pointerdown",C=>{A=!0,r.setPointerCapture(C.pointerId),document.body.style.cursor="col-resize",C.preventDefault()}),r.addEventListener("pointermove",C=>{if(!A)return;let I=e.getBoundingClientRect(),l=I.right-C.clientX,h=I.width-s-g,d=Bo(l,a,h);zo(n,"x",d)}),r.addEventListener("pointerup",C=>{A=!1,document.body.style.cursor="",r.releasePointerCapture(C.pointerId)}),r.addEventListener("pointercancel",()=>{A=!1,document.body.style.cursor=""})}}iM();var ss=document.getElementById("togglePhysics"),nM=document.getElementById("resetLayout"),os=document.getElementById("playPauseSim"),$m=document.getElementById("stepSim"),iv=document.getElementById("speedSim"),rM=document.getElementById("speedSimLabel"),sM=document.getElementById("reloadSim"),ev=document.getElementById("clearSim");function nv(){return Math.max(1,Math.min(60,Number(iv.value)||10))}function rv(){rM.textContent=`${nv()}\xD7`}rv();var tv=class r{static simulation_active=!1;static running=!1;static timer=null;static updateButtons(){$m.disabled=!r.simulation_active||r.running,os.disabled=!r.simulation_active,ev.disabled=!r.simulation_active}static setRunning(e){r.running=e,os.textContent=r.running?"\u23F8 Pause":"\u25B6 Play",os.classList.toggle("btn-primary",!r.running),os.classList.toggle("btn-secondary",r.running),r.running?r.restartTimer():r.stopTimer(),r.updateButtons()}static stop(){r.running&&r.setRunning(!1)}static stopTimer(){r.timer!==null&&(clearInterval(r.timer),r.timer=null)}static restartTimer(){r.stopTimer();let e=nv(),t=Math.round(1e3/e);r.timer=globalThis.window.setInterval(()=>{z.emit("controls/sim/step",void 0)},t)}static{iv.addEventListener("input",()=>{rv(),r.running&&r.restartTimer()}),os.onclick=()=>r.setRunning(!r.running),nM.onclick=()=>z.emit("controls/vis/reset_network",void 0),ev.onclick=()=>z.emit("controls/sim/clear",void 0),$m.onclick=()=>z.emit("controls/sim/step",void 0),sM.onclick=()=>z.emit("controls/sim/reload",void 0),ss.onclick=()=>{let e=!ss.classList.contains("active");z.emit("controls/vis/physics",{enabled:e})},z.on("controls/vis/physics",({enabled:e})=>{ss.classList.toggle("active",e),ss.textContent=e?"Physics: ON":"Physics: OFF"}),z.on("controls/sim/reload",e=>{r.running&&r.setRunning(!1)}),z.on("automata/sim/update",e=>{r.simulation_active=!!e,e||r.stop(),r.updateButtons()}),z.on("automata/sim/after_step",({result:e})=>{e!=="pending"&&r.stop()}),z.emit("controls/vis/physics",{enabled:ss.classList.contains("active")})}};var sv=document.getElementById("themeToggle");function ov(){let r=localStorage.getItem("theme");return r==="dark"||r==="light"?r:globalThis.window.matchMedia?.("(prefers-color-scheme: light)")?.matches?"light":"dark"}function nA(r){document.documentElement.dataset.theme=r,localStorage.setItem("theme",r),sv.textContent=r==="dark"?"\u{1F319} Dark":"\u2600\uFE0F Light",z.emit("theme/update",void 0)}z.on("begin",r=>nA(ov()));sv.addEventListener("click",oM);function oM(){let r=document.documentElement.dataset.theme||"dark";nA(r==="dark"?"light":"dark")}globalThis.window.matchMedia?.("(prefers-color-scheme: light)")?.addEventListener("change",()=>{localStorage.getItem("theme")||nA(ov())});var qo=class r{static btn=document.getElementById("shareBtn");static toast=document.getElementById("shareToast");static docText;static shareText;static{z.on("editor/change",({text:e})=>r.docText=e),r.btn.onclick=async e=>{let t=`${globalThis.window.location.href}?share=${encodeURIComponent(btoa(r.docText))}`;await navigator.clipboard.writeText(t),r.toast.classList.remove("show"),r.toast.offsetWidth,r.toast.classList.add("show")};try{let e=new URL(globalThis.window.location.href),t=e.searchParams.get("share");t!==null&&(t=atob(t),e.searchParams.delete("share"),globalThis.window.history.replaceState({},document.title,e.pathname+e.search+e.hash),r.shareText=t)}catch(e){console.log(e)}}static sharedText(){return r.shareText}};var ji=class{category;title;machine;constructor(e,t,i){this.category=e,this.title=t,this.machine=i}},rA=[new ji("Tutorial","DFA",`// strings over a,b which start and end with different letters
type = DFA // type of machine DFA, NFA, DPDA, NPDA, DTM, NTM
Q = {q0, qa, qa', qb, qb'} // set of states
E = {a, b} // alphabet
F = {qa', qb'} // set of final states
q0 = q0 // initial state
// transition function (state, letter) -> state
d(q0, a) = qa
d(q0, b) = qb
d(qa, a) = qa
d(qa, b) = qa'
d(qa', a) = qa
d(qa', b) = qa'
d(qb, a) = qb'
d(qb, b) = qb
d(qb', a) = qb'
d(qb', b) = qb`),new ji("DFA","modulo",`type=DFA
E={1,2,3}
Q={q0, q1, q2, q3, q4}
F = {q0}
q0=q0
d(q0, 1) = q1
d(q1, 1) = q2
d(q2, 1) = q3
d(q3, 1) = q4
d(q4, 1) = q0
d(q0, 2) = q2
d(q1, 2) = q3
d(q2, 2) = q4
d(q3, 2) = q0
d(q4, 2) = q1
d(q0, 3) = q3
d(q1, 3) = q4
d(q2, 3) = q0
d(q3, 3) = q1
d(q4, 3) = q2`),new ji("DPDA","unequal",`type = DPDA
Q = {q0, qas, qeq, qmb, qlb} // states
E = {a, b} // alphabet
T = {z0, A} // stack
F = {qmb, qlb} // final states
accept = F // accept by final state
q0 = q0
z0 = z0
d(q0, a, z0) = (qas, z0)
d(qas, a, z0) = (qas, [A z0])
d(qas, b, z0) = (qeq, z0)
d(qas, a, A) = (qas, [A A])
d(qas, b, A) = (qlb, ~)
d(qlb, b, A) = (qeq, ~)
d(qlb, b, z0) = (qeq, z0)
d(qeq, b, z0) = (qmb, z0)
d(qmb, b, z0) = (qmb, z0)`),new ji("NPDA","palindrome",`type=NPDA
Q = {q0, q1} // states
E = {a, b} // alphabet
T = {z0, A, B} // stack
accept = E // accept by empty stack
q0 = q0
z0 = z0
// push letters we see to stack
d(q0, a, z0) = (q0, [A z0])
d(q0, b, z0) = (q0, [B z0])
d(q0, a, A) = (q0, [A A])
d(q0, b, A) = (q0, [B A])
d(q0, a, B) = (q0, [A B])
d(q0, b, B) = (q0, [B B])
// transition to q1
d(q0, epsilon, z0) = { (q1, z0) }
d(q0, epsilon, A) = { (q1, A) }
d(q0, epsilon, B) = { (q1, B) }
// consume stack until empty
d(q1, a, A) = { (q1, epsilon) }
d(q1, b, B) = { (q1, epsilon) }`),new ji("NPDA","kleen star stack",`type=NPDA
Q = {q0, q1} // states
E = {a, b} // alphabet
T = {z0, A, B} // stack
accept = E // accept by empty stack
q0 = q0
z0 = z0
// construct all possible permutations of A's and B's
d(q0, epsilon, z0) = { (q0, [A z0]), (q0, [B z0]) }
d(q0, epsilon, A) = { (q0, [A A]), (q0, [B A]) }
d(q0, epsilon, B) = { (q0, [A B]), (q0, [B B]) }
// transition to q1
d(q0, epsilon, z0) = { (q1, z0) }
d(q0, epsilon, A) = { (q1, A) }
d(q0, epsilon, B) = { (q1, B) }
// consume stack until empty
d(q1, a, A) = { (q1, epsilon) }
d(q1, b, B) = { (q1, epsilon) }`),new ji("TM","a^nb^n",`// accepts all strings on {a,b}+ of the form anbn
type = TM
Q = { q0, q1, q2, q3, q4 } // set of internal states
F = { q4 } // set of final states
T = { a, b, X, Y, B } // tape alphabet
B = B // the blank symbol (tape initializer symbol)
q0 = q0 // initial state
d(q0,a)=(q1,x,R)
d(q1,a)=(q1,a,R)
d(q1,Y)=(q1,y,R)
d(q1,b)=(q2,y,L)
d(q2,Y)=(q2,y,L)
d(q2,a)=(q2,a,L)
d(q2,X)=(q0,x,R)
d(q0,Y)=(q3,y,R)
d(q3,Y)=(q3,y,R)
d(q3,B)=(q4,B,R)
`)],gv=["Tutorial","DFA","NFA","DPDA","NPDA","TM","NTM"];function gM(r,e,t){let i=r.options.length>0&&r.options[0].disabled&&r.options[0].value==="";if(r.innerHTML="",i){let g=document.createElement("option");g.value="",g.disabled=!0,g.selected=!0,g.textContent="Choose an example\u2026",r.appendChild(g)}let n=new Map;for(let g of e)n.has(g.category)||n.set(g.category,[]),n.get(g.category).push(g);for(let[g,a]of n)a.sort((A,C)=>A.title.localeCompare(C.title)),n.set(g,a);let s=[...gv.filter(g=>n.has(g)),...Array.from(n.keys()).filter(g=>!gv.includes(g)).sort()],o=new Map;e.forEach((g,a)=>o.set(g,a));for(let g of s){let a=document.createElement("optgroup");a.label=g;for(let A of n.get(g)){let C=document.createElement("option");C.value=String(o.get(A)),C.textContent=A.title,a.appendChild(C)}r.appendChild(a)}r.onchange=()=>{let g=r.value;if(!g)return;let a=e[Number(g)];a&&t&&t(a),r.value=""}}var aM=document.getElementById("exampleSelect");gM(aM,rA,r=>{z.emit("example/selected",r)});function Dn(r,e){e===void 0&&(e={});var t=e.insertAt;if(!(!r||typeof document>"u")){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t==="top"&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}}var AM=`div.vis-network div.vis-manipulation {
box-sizing: content-box;
border-width: 0;
border-bottom: 1px;
border-style: solid;
border-color: #d6d9d8;
background: #ffffff; /* Old browsers */
background: -moz-linear-gradient(
top,
#ffffff 0%,
#fcfcfc 48%,
#fafafa 50%,
#fcfcfc 100%
); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #ffffff),
color-stop(48%, #fcfcfc),
color-stop(50%, #fafafa),
color-stop(100%, #fcfcfc)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#ffffff 0%,
#fcfcfc 48%,
#fafafa 50%,
#fcfcfc 100%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#ffffff 0%,
#fcfcfc 48%,
#fafafa 50%,
#fcfcfc 100%
); /* Opera 11.10+ */
background: -ms-linear-gradient(
top,
#ffffff 0%,
#fcfcfc 48%,
#fafafa 50%,
#fcfcfc 100%
); /* IE10+ */
background: linear-gradient(
to bottom,
#ffffff 0%,
#fcfcfc 48%,
#fafafa 50%,
#fcfcfc 100%
); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#fcfcfc',GradientType=0 ); /* IE6-9 */
padding-top: 4px;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 28px;
}
div.vis-network div.vis-edit-mode,
div.vis-network button.vis-edit-mode {
position: absolute;
left: 0;
top: 5px;
height: 30px;
}
/* FIXME: shouldn't the vis-close button be a child of the vis-manipulation div? */
div.vis-network button.vis-close {
position: absolute;
right: 0;
top: 0;
width: 30px;
height: 30px;
background-color: transparent;
background-position: 20px 3px;
background-repeat: no-repeat;
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIe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hlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+cZUZMwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAA2ElEQVR42gDLADT/AS0tLUQFBQUVFxcXtPHx8fPl5eUNCAgITCkpKesEHx8fGgYGBjH+/v4a+Pj4qgQEBFU6OjodMTExzwQUFBSvEBAQEfX19SD19fVqNDQ0CElJSd/9/f2vAwEBAfrn5+fkBwcHLRYWFgsXFxfz29vbo9LS0uwDDQ0NDfPz81orKysXIyMj+ODg4Avh4eEa/f391gMkJCRYPz8/KUhISOMCAgKh8fHxHRsbGx4UFBQQBDk5OeY7Ozv7CAgItPb29vMEBASaJSUlTQ0NDesDAEwpT0Ko8Ri2AAAAAElFTkSuQmCC');
border: none;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div.vis-network button.vis-close:hover {
opacity: 0.6;
}
div.vis-network div.vis-manipulation button.vis-button,
div.vis-network div.vis-edit-mode button.vis-button {
float: left;
font-family: verdana;
font-size: 12px;
border: none;
box-sizing: content-box;
-moz-border-radius: 15px;
border-radius: 15px;
background-color: transparent;
background-position: 0px 0px;
background-repeat: no-repeat;
height: 24px;
margin-left: 10px;
cursor: pointer;
padding: 0px 8px 0px 8px;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div.vis-network div.vis-manipulation button.vis-button:hover {
box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.2);
}
div.vis-network div.vis-manipulation button.vis-button:active {
box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.5);
}
div.vis-network div.vis-manipulation button.vis-button.vis-back {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXP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E5NDhCRDEzRTJCRTc5OUExPC9zdFJlZjpvcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDwveG1wTU06RGVyaXZlZEZyb20+CiAgICAgICAgIDxwaG90b3Nob3A6Q29sb3JNb2RlPjM8L3Bob3Rvc2hvcDpDb2xvck1vZGU+CiAgICAgICAgIDxwaG90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4jq1U/AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAVTSURBVHjanFVfTFNnFP+d77ve8qeVFbBrpcVgRrCRFikFByLxwSAaE32oRCHD6JMxxhhn8G2RxxH3MsOTbyYsmCAxPMmMMYtkIUYmK60OO0qAK23BFlNob0uh3x7WS5jLZPpLbm6+k/P9zrm5v9855PF4UFhYCABgjIExBgAgIqRSqRIi6gDQRkQ1RGTB3wgR0e8AHgH4Sa/XR/EBiAiJRAJ04cIF5Ofng4g2n0gkUkxENwF0c843LzHGQEQQQkCLExEA9ALotVgsUQAQQmgNQhJCbF5kjCEUCl0moj4t5na7fTU1NUpVVVXUYrEkASAcDhe8efOmxOfzWScmJqoBdBNR99LS0hWz2dynNSSEAF28eBGF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4GAM/eDbxMReFNTE0pKSpKqqsaI6Pj8/LxVVdWM3W6PfCr5xMTE1zllXS0uLn6aSqXAGxsbodPpoNfrn6uqCs75EUVRrJFIZMfevXsXdTrdxseIE4mEPDIyUu/3++tynd8yGo29RIR0Og26fv06ioqKwBgD5xzv3r27zBjrIyJIkgSHwzFZWVmp7NmzJ1ZaWpoAgGg0WqgoSvHMzIw1GAw6tvjhitFo7NPW5fv370Hd3d0oKCgA53zTQMvLy+VCiKuSJH0rSdLmztZytIWv5RPRD0T0Y3Fx8dzWfby6ugopHo//w4mcc8iyPMc5v5FOp7/PZrOdQohWInIC2C2EgBBigYi8Qoifs9lsv06nWyIiaFxagXg8jr8GAGxuIe7LBeWhAAAAAElFTkSuQmCC');
}
div.vis-network div.vis-manipulation div.vis-none:hover {
box-shadow: 1px 1px 8px rgba(0, 0, 0, 0);
cursor: default;
}
div.vis-network div.vis-manipulation div.vis-none:active {
box-shadow: 1px 1px 8px rgba(0, 0, 0, 0);
}
div.vis-network div.vis-manipulation div.vis-none {
padding: 0px;
line-height: 23px;
}
div.vis-network div.vis-manipulation div.notification {
margin: 2px;
font-weight: bold;
}
div.vis-network div.vis-manipulation button.vis-button.vis-add {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7A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90b3Nob3A6SUNDUHJvZmlsZT5zUkdCIElFQzYxOTY2LTIuMTwvcGhvdG9zaG9wOklDQ1Byb2ZpbGU+CiAgICAgICAgIDx0aWZmOk9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz5WKqp9AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYXSURBVHjafFZtUFTXGX7e9z27sveuMCwYV8ElrA7YSFYHtJUPkaaI0aRqG8wP00zUzljDINNSA/2ROtpO24SxnahlxjYd7SSjmUkymcxYlDhQPzHGisEVp8HwYWCVVVgEsrsuLnL74+5uqTF9Z+7cO/d8PO95zvO851BlZSV0XQcAMDOYGQBARDhX3JRmMDYZwLPMWAzGHACYIgwS46oBNBNwtOL8CwE8EkSEUCgE2rJlC2w2G4go8Zwo/bMDgnoG6gxLfAAAYvPDMCCszKTAMIAGAhrWnf15AAAMwwARIRKJgDZv3gy73Q4iAjPjxIr9VVOMRhbAYKB8zvrO0llrfEsdKwLZek6YAPSFvtSu3GtLawu0ZJ6625SHGBQB1T88t6MxvopgMAjaunUrdF0HM+P4yv27DMYeJmB1RqW3Jnf3tQX2p0L4P9EXuqEd7PmDp+XuMU9sRbvXnnt1TxxACgoKYLVacbzsQDUJGkSATe6qi28uPtzusM6Kxie6NHLGUX3lxVUNX9StPHnn4wy3njuUYcu6n2pNi66avcEXnByP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+kxkx/p/4unffSCR0hAoL1EBCYiPNdWNcwkNQTCR7feWX6g+7f/A7I8rcw/U6UEe0Ndrhc/W7mtL9ztmqlSgstSS/zTJ28dalpOpkRryrwbhwBACgsLMWPGDOT4ll3qyeqAkJTdCF7P/CrUY/GkLL1rE+2hTbSH8+0Lb/WEuhzhyaA905blf9Vd/895WnZwLHrPevir/cvOB1oLYpTtLrm6oYGIMDExAaqtrUVKSgqYGSKCk0WHq5ikkWEWtNL0imv5qUW+RclLRjJsrhBAuH1/QL8R7HR4xy5nescuP23E6hOA6mLv+sb4uTw6Ogqqq6uDpmkQkcStorX4XRcM1FjZ+kvFFjCJKU1WpkNJJUqIMtX1RyLeX3JtQ0JRhmGYZ/L27duRnJycuFGISOJ9pqh5lrB6iYgqGOxRrOaa54DcZmKvkJxk8JHC9rKh+KVhOsD4+Dj+MwADIf8n5m4xGwAAAABJRU5ErkJggg==');
}
div.vis-network div.vis-manipulation button.vis-button.vis-edit,
div.vis-network div.vis-edit-mode button.vis-button.vis-edit {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ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9yaWVudGF0aW9uPjE8L3RpZmY6T3JpZW50YXRpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ykninAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYpSURBVHjafFZtTFvnFX7Oea+NudiY2Hwam4CBlgQwXdKREDKUoYg0jbRJ29RJ2VZ1mjRFUxSpA3VTfkzJfkQbS7spU6rtx5Z2UtppScjaHxvLuiatWi2jLEoMIUDCh23g2gbj7+tPuPvhOurawPl1dc99n+c55z33fV46ceIEZFkGADAziAgAQERoe/9ZK4GPM/AcgbsIXAcABCgMvkfAqAa89eDoJyF8LogIqqqChoaGYDAYHr8kItS8uc8iIH6iAa9IkAo5EAQX8pqmgUVBCBggYFgDhv0/GAsBgKZpICJkMhnQ4OAgZFkGEYGZUXmp+0cS+CKBwWA0DVRPOg5Zl2q6zaHyJlnVAMQXVTkwHrUqH0Xsvn+tdQAAMQDgpPLS2MViFY8rkGUZzIzaS/t/xqCzGggtz9e697zsnKhoLUtim4jOq/LE6x7X0nsh16dEZ5a/O3a2SCAOHjwInU6Hujd6ThJ4mCDQ+b2G232v7v6vwarPbQn8MGlMr+X0kpE3Wr5Zt5hL5HPhqYSdQIfKJ+yhxDPKWC6Xg+jt7UXD5b5KBt1kCHS85Ljd8/On3NupfnhFaZj4rWff1B98B1R/hnUmKd36bdtCNl4g0en4edNE/cXwLq8qMTMIPAQwmo/WuHvObA8+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Xhxfs7/dfYoIF+auBfYTE/pebx/V8hqBP2ODvD34yvuh/WCAmU75Bx6sIgaI/v5+6PV6JLqUsYr7dpDAoehs0h73pHTWrvKgThYbRSt9UmSjef3MpaUvBz4O72UmADgTOPJguGiZor+/HyUlJWBmJFz+D8xTtlUiOpbwpmrmrweeSXrT+g11k4SBN3RGKUcAVCVdFhyP1nreDbY//NPyEXUlU/Pp4XYycGT6V0Ux2WwWdO7cOZSWlkII8diX7SPPNgDaKdbxoNAxwATBAEkEEgSWCEQAqPAMwqvMdCEwMO0tVqZpWsGTT58+DaPR+PhGIYQAAAgh0P7B3ioW/B0iGiCGiwXbCuOHFSJys6AbYFye2T+xWhT3WYJEIoH/DQBMw3kes8OJPgAAAABJRU5ErkJggg==');
}
div.vis-network div.vis-edit-mode button.vis-button.vis-edit.vis-edit-mode {
background-color: #fcfcfc;
border: 1px solid #cccccc;
}
div.vis-network div.vis-manipulation button.vis-button.vis-connect {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZ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Rpb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjcyMDA5MC8xMDAwMDwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6WVJlc29sdXRpb24+NzIwMDkwLzEwMDAwPC90aWZmOllSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpSZXNvbHV0aW9uVW5pdD4yPC90aWZmOlJlc29sdXRpb25Vbml0PgogICAgICAgICA8ZXhpZjpDb2xvclNwYWNlPjE8L2V4aWY6Q29sb3JTcGFjZT4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjI0PC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4ubxs+AAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAUtSURBVHjajJZ/bNT1Gcdfz/P53PV6B4W7VltLqdAaplIOiMOoyxxJCSs/Gv/yB4gzJroAosmmDklwkYWR0bQsdmkykoojTpcsWYLxD/lRZdMQkTHRtkLZRqG0tIVe7662vTu43n32x/VKZ/jh89cn38/zvN7P5/l88zwf2blzJz6fDwARQUSm1n8s31CM0/VAnbNmsUPuAsDpgEO+Bg4C7//iyv5hvmMiQiqVQpqamvB6vVNwEeG1JZtCBrYi/MrkAwDNgjhwAlbzICBLA0rDb0+/839C6XQaaWxspLCw8Dp86cbNmqVFJQddE6KzdjZ9D89g+B6fSyCOcyn1nxil+O9xKg5HqWFSHGXLjrP7W/ICqVQK2bNnDz6fDxFh65KNvxbHDhF4rJj2bXPo+IGfcW5h5xL4f99P+FCEMIAob75x9t0dAMlkElNXV4e1lteXbNqiQoMaeOFOjrdU868SD2luYyEP6dUh+sYmSHeOU6GO5Z8VLx5+NNZxIpPJ5AS2L3upROCoCvz8Lo7vnkf77cAHhpiz/zIL9vWz8L8p/NvupmM0Q7pjnAoLqz8tDrc8MnQqYVUVhVdF4LEg7b+rvDn8wDDlH0WoPpukLJImSBaMwjcJqmwWts2jPZLG/8kwYVFeVdXXZcFf4yVDc2cNKfBFmD9X+0ncCP58F48eG+Feo2CA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C/AQB61erowbpqSwAAAABJRU5ErkJggg==');
}
div.vis-network div.vis-manipulation button.vis-button.vis-delete {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRBy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RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4aYJzYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAAYGSURBVHjalJZ7UJTnFcZ/73m/72PdJY1RbhoQp6lkXRAvmIYxdCUadLVOozPNtGObap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jPnfOKXAMEBECUoGEIHBj+2zkt76UQ6dXheGAev3+cg74Kf6uJPqcicbfuond7cPy4SOiy7+tD9nFvZurx00KOk3CNEC+mE+vjSPBc7IWqgqTaPT60IMcO/xsXGa3HfKjRgRdbl7/KDg0jtubje6aHj7c7J3dgLQ2zoPwwQ91SooOQdAW1VKVMHty0kA5Bb48BycJn/LjWFGbLv4thvvb53kFvjJ+XEdWkPfjQVR/CcNKYgGMc8JWt5Fa2j+MIPPuyI2pa4IoHSkt6vLIuRaQ9q32khzt4GCxtNu6k46GeiIR2lIfDQQsafPzq1LGRGL9Gk9d+vrwewvfHPQOoexQVjxdB/auk/zmaUMdsfz6bVUtIalT7bxveP1ZHh6GPDPYeSzeD69kcpIfxymFWLNrka+ljhBTWkWwz2JiJT84YHnz2iPx0P20PkmRF5i6HYiwZFJsn/YzdezbzE3cQibY5xV266z6RfXohakb+xB9CjanCD9qTbW7Grk4WV38VZm0l6dhQiEw9taHSuDqrS0FIfDwXM3X9mHMsvRAk/sauDpQy38P+GtzOTGB9mEpkD0C2dS8n8zOjqK9ng8WJZFU+JTjasGvaCNXPpvJBPoMlm0OoDNMfWVxONfWNSUPUZ7TUQ56tCZlPwSgMnJSVRpaSmxsbFE1raw82ZxAZZRQUiBYUKGp5UlOX2krBzmoUVjiIKhHge9rfPo+Wcy3ZeXIYASgL1/X5RfMXMvj46OosrLy7HZbGitUUohIuzoem0RofALaOsghgWGjky0MiJTL8b0lOvI8hN1DKXKP0jd3TNTWDgcJhgMoo4ePYrD4Yi+KmaeLlprnrtXFo9h/AAlG1AqE8yFmBrC+jO0bgH9EVpO/1F2Dc5g//OAsbEx/j0Af+USsQynL1UAAAAASUVORK5CYII=');
}
/* top right bottom left */
div.vis-network div.vis-manipulation div.vis-label,
div.vis-network div.vis-edit-mode div.vis-label {
margin: 0 0 0 23px;
line-height: 25px;
}
div.vis-network div.vis-manipulation div.vis-separator-line {
float: left;
display: inline-block;
width: 1px;
height: 21px;
background-color: #bdbdbd;
margin: 0px 7px 0 15px; /*top right bottom left*/
}
/* TODO: is this redundant?
div.network-navigation_wrapper {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}
*/
`;Dn(AM);var CM=`div.vis-network div.vis-navigation div.vis-button {
width: 34px;
height: 34px;
-moz-border-radius: 17px;
border-radius: 17px;
position: absolute;
display: inline-block;
background-position: 2px 2px;
background-repeat: no-repeat;
cursor: pointer;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
div.vis-network div.vis-navigation div.vis-button:hover {
box-shadow: 0 0 3px 3px rgba(56, 207, 21, 0.3);
}
div.vis-network div.vis-navigation div.vis-button:active {
box-shadow: 0 0 1px 3px rgba(56, 207, 21, 0.95);
}
div.vis-network div.vis-navigation div.vis-button.vis-up {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c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Igbrr1jTSM0fibGIHz8O9sKK0GAibEua9spANh4aY2VmcEg+DEkiBgR/L2hYFgGtcErkQQAMVJgBxyy9hboZzv32v+Kpr7qbEECTAIMAoaJa3qPTmNiiAAgJAjk6J5xhu6HDAIgQYGLmI29PocmMcI8MNYvT1ckfzD9H/ub5br4e4Me9WfOKqtyX6Ud2cwC449PRamifDm6Auc0rTXokci+Xo1EAgBckiDuYGLjpTvntcGIA+SFcp6uUAaAI879VhWrRteYAqn/edq758brXJ1327QMhgJcZjA3EBjNrgZjOG1PkAjyTGENMjZPq5ECQ0MDE9ERBqFZrk0OJ3i4x/7vyIjBxGERt3takgVJEAp9xq3f769WiPDNvSsJdT3HDOEASPelmoBRYT3Kzt5uMtwauJEgSOCpwrk1DIJCoNUMwj9v7MweP9XSQ8/hJPp496fZTAICvLqcyv2B7nRbrgCA03JN5h8ub7A8VqpB437xHvsOy3l3cyaB4L2uqxhti1WLMcSgZQCw7+bOooO3Pk4JBZIYYXISMV5sKH59UePM10GESRGpIf/bE92HU452HywSJIGIllctrhp6YAK5+fHds0lLtJFMXNwkV6fFqA29mROefqiMJj1h6um4a5vY/92dKGaBxIhU5zJTWW2cJmEgGOmeb3c8FxAfb9mdf2RzyGGv5MvU7QwuEySwKHFp/c/M71zA/2F7b1RajnYdLAqMukMVu2YcfmDYE2MD7H+7/Xlq6cRIJqm4zXM+qd3TGjVBir43KSLlXjiELe5TsX+3/yW/ST45PaAHbKmccWh12AP93JNZywj0kSABIobpiXRHjtZ6faout2tyZMadGLXBCxBcvl6NfaAz+tKdFmObpzWl2+tIIBACYy0t/yj34M7HvsKUK+CGassvicX7alYDwwq+vykIEqPVa+Q9gdYk5+V+UE7lj3+FGbuBM/X5JUT8QwIVSSSZiTgmoFR2MfiqYFFPfjpkyrfWPopwxP47AP1pK1g9/dqeAAAAAElFTkSuQmCC');
bottom: 50px;
left: 55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-down {
background-image: url('data:image/png;base64,iVBORw0KGgoAA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X7RQ3WDNf7dox3BLcNNs6vt34bbbvYHJhlTGp6O+JVHb0/2HJtX1PH+aqECqG/5YN1nlXcokGvvO6vCc4x+QskotxVHB/qa+xbOWuzw8NB3nuo+Ht0z2hHsuGU3GrWAoZfi3jrxgHpw3BPpobaCH7vbqOw6mHI836vYW3Eqcq9AtioqbJy7ufQ3lhfu8sR+s9+3vL8klACsQSu7AnxMY1MxH7YXJp7oPpLulrrj+9575Ni2aeVt1teWfEWfHQLCaspseHzOU7VWU+aM5G2NoyL4i+6j8XWDNQsmGsKu/cv+nTtjQb/mm7hfENyvqEAK5v8opjPJaL26KGBpd5TfguuBvuZRgBgY6zO0jlyZXXe9JqR+8MK8ntHOMHfHIkhu2b/0yIH7/oXJ0yFlxYnPUdRbvuILgO7+y+91l6Ka6M+cnCf4fMSypXvymHf/vzBTD3CuNGUFKT8lmK5Rs5ASqKiBlAGBXFaiSuni0fkp1pJ7Ed4e/xsAqLk46EWsG1EAAAAASUVORK5CYII=');
bottom: 10px;
left: 55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-left {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4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B7sdNYPXPao7anS1Fmrg402g7+jYhGIaOXOaQc+uONfmCwZXJIf8xKx2KRgxYgOS+CROuyoyQKCxIhkOr4T6JWgxGnvZ1HWnf/CfHcBXxcnpRHxYwRKkUjSErFKkAQiNjP4kmBRTHbKm5KkKxwL+K39fwDX1XGF8ct++QAAAABJRU5ErkJggg==');
bottom: 10px;
left: 15px;
}
div.vis-network div.vis-navigation div.vis-button.vis-right {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQ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EYJzKUETqgcLNVv0D/cDQBrNAnm9+LOfTLfNB5u2hf5z+6TMexYji+tVdrM5leMbWOtSwQx/F1C2rcuebIqwSO568a4WmuN3mEYSiUi+pRl2l1pLvYBsKArUKVwnZRYgdHpMWVG4+/WXhwoDBXE7OmkHzJ6JNemLfv51bniGqzVPoIkyLbpfK7ZMFIkE6FlrMn7Ql+BbiHg+zXGbgLjylDpyosD58KZmKM0cfWHI9//aD5o1VCZrnO83VuQQOja5PMCfwK8n3K2ChIbLVOD9KB36le3A+u/s2Q81C2yRavQmQNdVnamLnmq4nHD9jpB0rwm77jpjTW9E906Bu18fWlWCQHAox9CtGoXTwmS8IThZyXPB+29inuoE6bMsDM9ufEAMNHqJuU8ljMtAKA2B7IhzaWNiLfWjVQb3J10/SGuEZZ7Af1X7+lluZ3HkpgEQPL291M+qbzJgXQcG60ypKlVTGwsMxcFaJW6/hDXVZZvCz3RlrmRiQHwy9nRn2bM6bnas4cLfH6s1RIorsJcFDA2PToR7Z7QezfQD9qzwvI6TyTZC47ttXeiT+2c1+wBgOndoTPLt7mrmCRjvfULQ4O1xsVVchu7b9GysYUAqy3lnsdNb0aXmQuj7PYWL2etuRl6S0OfXLjiGQIdEY6K5esc2BWhjvkqXLO6x08VPKxV6iYAwuBkv5NpvNmtbrhaX2+tWdY70eVNINhtLW0/sjrv6B0/YdJlcGlR2AvE4hUlKwHQ7BU5cz8LRx0HaPY7gXb53L/67+mUfudPmP/twOWS6AQi/j6B4iWS/IlYK+yGYJDB1wWLErLRKd/omOJbAWf03wEAyO9m+/TtS3AAAAAASUVORK5CYII=');
bottom: 10px;
left: 95px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomIn {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJ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oUDeG7g1NS/u/5a0Og9scCsB+ysWXSoMuyFftWJvM0E31SBjmWPznHPjy+8NjdhYfeMmJl3EiNSRgCi/25fpGu4M671zjlrm685s2fEnUoQ5lrLLW8uPLj3oX9hqgxIw8n8X1LU7yMkItCHzREZrGQV6ONmy5TggHk247sL/1jFqof/hRn/AWfqC0pI+QHBIk3tICXRrFTpF8hlJaqefh6yFxQ6HwQYlK8HAKyt3WsWxl7fAAAAAElFTkSuQmCC');
bottom: 10px;
right: 15px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomOut {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/Lc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3aOpCPqwuhR2SPbCBlUc2NyogQX3N7wqgU51BAf2w9EFXUtCtLqADqS76ev6/ilgrk2q6esxHZgf5CySh3FMcG+5jbE0ZNdj4odHdDwWPGcZNNO1MPbrxtzdW4s+tI5HPBwQTTzziKY3v/7HGlhmS23g90T+OO5L1Nu7MMw3Fv/Tx1f97/FnsAYPui8/D4nBB/oZZR230uoq67auQoLaB37Iio3sEAK52nR39p+zS13HFiilHeYtOOabdC71jQzz2R+ALBbcrjWNF+cfaUwLSrk4KmtsT4T+gK9jG7AKKjv93X1lcfUNNVaantropqddnDCcIoa7lk29S92+/5CpOvQ04VJ79KUe/7iI/Hh40U6c3PyuPjhmWKN8G8Fvnw1A/zmX/vV5h/T+CXstRMUp4kOFOjZiUlWBkFQYdALitRZXRzf3RqWumdgF79NQDBOa2V/iYSHAAAAABJRU5ErkJggg==');
bottom: 10px;
right: 55px;
}
div.vis-network div.vis-navigation div.vis-button.vis-zoomExtends {
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmk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ElFTkSuQmCC');
bottom: 50px;
right: 15px;
}
`;Dn(CM);var IM=`.vis-overlay {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
/* Must be displayed above for example selected Timeline items */
z-index: 10;
}
.vis-active {
box-shadow: 0 0 10px #86d5f8;
}
`;Dn(IM);var lM=`/* override some bootstrap styles screwing up the timelines css */
.vis [class*="span"] {
min-height: 0;
width: auto;
}
`;Dn(lM);var hM=`div.vis-color-picker {
position: absolute;
top: 0px;
left: 30px;
margin-top: -140px;
margin-left: 30px;
width: 310px;
height: 444px;
z-index: 1;
padding: 10px;
border-radius: 15px;
background-color: #ffffff;
display: none;
box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 10px 0px;
}
div.vis-color-picker div.vis-arrow {
position: absolute;
top: 147px;
left: 5px;
}
div.vis-color-picker div.vis-arrow::after,
div.vis-color-picker div.vis-arrow::before {
right: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
div.vis-color-picker div.vis-arrow:after {
border-color: rgba(255, 255, 255, 0);
border-right-color: #ffffff;
border-width: 30px;
margin-top: -30px;
}
div.vis-color-picker div.vis-color {
position: absolute;
width: 289px;
height: 289px;
cursor: pointer;
}
div.vis-color-picker div.vis-brightness {
position: absolute;
top: 313px;
}
div.vis-color-picker div.vis-opacity {
position: absolute;
top: 350px;
}
div.vis-color-picker div.vis-selector {
position: absolute;
top: 137px;
left: 137px;
width: 15px;
height: 15px;
border-radius: 15px;
border: 1px solid #ffffff;
background: #4c4c4c; /* Old browsers */
background: -moz-linear-gradient(
top,
#4c4c4c 0%,
#595959 12%,
#666666 25%,
#474747 39%,
#2c2c2c 50%,
#000000 51%,
#111111 60%,
#2b2b2b 76%,
#1c1c1c 91%,
#131313 100%
); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #4c4c4c),
color-stop(12%, #595959),
color-stop(25%, #666666),
color-stop(39%, #474747),
color-stop(50%, #2c2c2c),
color-stop(51%, #000000),
color-stop(60%, #111111),
color-stop(76%, #2b2b2b),
color-stop(91%, #1c1c1c),
color-stop(100%, #131313)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#4c4c4c 0%,
#595959 12%,
#666666 25%,
#474747 39%,
#2c2c2c 50%,
#000000 51%,
#111111 60%,
#2b2b2b 76%,
#1c1c1c 91%,
#131313 100%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#4c4c4c 0%,
#595959 12%,
#666666 25%,
#474747 39%,
#2c2c2c 50%,
#000000 51%,
#111111 60%,
#2b2b2b 76%,
#1c1c1c 91%,
#131313 100%
); /* Opera 11.10+ */
background: -ms-linear-gradient(
top,
#4c4c4c 0%,
#595959 12%,
#666666 25%,
#474747 39%,
#2c2c2c 50%,
#000000 51%,
#111111 60%,
#2b2b2b 76%,
#1c1c1c 91%,
#131313 100%
); /* IE10+ */
background: linear-gradient(
to bottom,
#4c4c4c 0%,
#595959 12%,
#666666 25%,
#474747 39%,
#2c2c2c 50%,
#000000 51%,
#111111 60%,
#2b2b2b 76%,
#1c1c1c 91%,
#131313 100%
); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4c4c4c', endColorstr='#131313',GradientType=0 ); /* IE6-9 */
}
div.vis-color-picker div.vis-new-color {
position: absolute;
width: 140px;
height: 20px;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 5px;
top: 380px;
left: 159px;
text-align: right;
padding-right: 2px;
font-size: 10px;
color: rgba(0, 0, 0, 0.4);
vertical-align: middle;
line-height: 20px;
}
div.vis-color-picker div.vis-initial-color {
position: absolute;
width: 140px;
height: 20px;
border: 1px solid rgba(0, 0, 0, 0.1);
border-radius: 5px;
top: 380px;
left: 10px;
text-align: left;
padding-left: 2px;
font-size: 10px;
color: rgba(0, 0, 0, 0.4);
vertical-align: middle;
line-height: 20px;
}
div.vis-color-picker div.vis-label {
position: absolute;
width: 300px;
left: 10px;
}
div.vis-color-picker div.vis-label.vis-brightness {
top: 300px;
}
div.vis-color-picker div.vis-label.vis-opacity {
top: 338px;
}
div.vis-color-picker div.vis-button {
position: absolute;
width: 68px;
height: 25px;
border-radius: 10px;
vertical-align: middle;
text-align: center;
line-height: 25px;
top: 410px;
border: 2px solid #d9d9d9;
background-color: #f7f7f7;
cursor: pointer;
}
div.vis-color-picker div.vis-button.vis-cancel {
/*border:2px solid #ff4e33;*/
/*background-color: #ff7761;*/
left: 5px;
}
div.vis-color-picker div.vis-button.vis-load {
/*border:2px solid #a153e6;*/
/*background-color: #cb8dff;*/
left: 82px;
}
div.vis-color-picker div.vis-button.vis-apply {
/*border:2px solid #4588e6;*/
/*background-color: #82b6ff;*/
left: 159px;
}
div.vis-color-picker div.vis-button.vis-save {
/*border:2px solid #45e655;*/
/*background-color: #6dff7c;*/
left: 236px;
}
div.vis-color-picker input.vis-range {
width: 290px;
height: 20px;
}
/* TODO: is this redundant?
div.vis-color-picker input.vis-range-brightness {
width: 289px !important;
}
div.vis-color-picker input.vis-saturation-range {
width: 289px !important;
}*/
`;Dn(hM);var dM=`div.vis-configuration {
position: relative;
display: block;
float: left;
font-size: 12px;
}
div.vis-configuration-wrapper {
display: block;
width: 700px;
}
div.vis-configuration-wrapper::after {
clear: both;
content: "";
display: block;
}
div.vis-configuration.vis-config-option-container {
display: block;
width: 495px;
background-color: #ffffff;
border: 2px solid #f7f8fa;
border-radius: 4px;
margin-top: 20px;
left: 10px;
padding-left: 5px;
}
div.vis-configuration.vis-config-button {
display: block;
width: 495px;
height: 25px;
vertical-align: middle;
line-height: 25px;
background-color: #f7f8fa;
border: 2px solid #ceced0;
border-radius: 4px;
margin-top: 20px;
left: 10px;
padding-left: 5px;
cursor: pointer;
margin-bottom: 30px;
}
div.vis-configuration.vis-config-button.hover {
background-color: #4588e6;
border: 2px solid #214373;
color: #ffffff;
}
div.vis-configuration.vis-config-item {
display: block;
float: left;
width: 495px;
height: 25px;
vertical-align: middle;
line-height: 25px;
}
div.vis-configuration.vis-config-item.vis-config-s2 {
left: 10px;
background-color: #f7f8fa;
padding-left: 5px;
border-radius: 3px;
}
div.vis-configuration.vis-config-item.vis-config-s3 {
left: 20px;
background-color: #e4e9f0;
padding-left: 5px;
border-radius: 3px;
}
div.vis-configuration.vis-config-item.vis-config-s4 {
left: 30px;
background-color: #cfd8e6;
padding-left: 5px;
border-radius: 3px;
}
div.vis-configuration.vis-config-header {
font-size: 18px;
font-weight: bold;
}
div.vis-configuration.vis-config-label {
width: 120px;
height: 25px;
line-height: 25px;
}
div.vis-configuration.vis-config-label.vis-config-s3 {
width: 110px;
}
div.vis-configuration.vis-config-label.vis-config-s4 {
width: 100px;
}
div.vis-configuration.vis-config-colorBlock {
top: 1px;
width: 30px;
height: 19px;
border: 1px solid #444444;
border-radius: 2px;
padding: 0px;
margin: 0px;
cursor: pointer;
}
input.vis-configuration.vis-config-checkbox {
left: -5px;
}
input.vis-configuration.vis-config-rangeinput {
position: relative;
top: -5px;
width: 60px;
/*height:13px;*/
padding: 1px;
margin: 0;
pointer-events: none;
}
input.vis-configuration.vis-config-range {
/*removes default webkit styles*/
-webkit-appearance: none;
/*fix for FF unable to apply focus style bug */
border: 0px solid white;
background-color: rgba(0, 0, 0, 0);
/*required for proper track sizing in FF*/
width: 300px;
height: 20px;
}
input.vis-configuration.vis-config-range::-webkit-slider-runnable-track {
width: 300px;
height: 5px;
background: #dedede; /* Old browsers */
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #dedede),
color-stop(99%, #c8c8c8)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#dedede 0%,
#c8c8c8 99%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#dedede 0%,
#c8c8c8 99%
); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
border: 1px solid #999999;
box-shadow: #aaaaaa 0px 0px 3px 0px;
border-radius: 3px;
}
input.vis-configuration.vis-config-range::-webkit-slider-thumb {
-webkit-appearance: none;
border: 1px solid #14334b;
height: 17px;
width: 17px;
border-radius: 50%;
background: #3876c2; /* Old browsers */
background: -moz-linear-gradient(top, #3876c2 0%, #385380 100%); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #3876c2),
color-stop(100%, #385380)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#3876c2 0%,
#385380 100%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#3876c2 0%,
#385380 100%
); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #3876c2 0%, #385380 100%); /* IE10+ */
background: linear-gradient(to bottom, #3876c2 0%, #385380 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3876c2', endColorstr='#385380',GradientType=0 ); /* IE6-9 */
box-shadow: #111927 0px 0px 1px 0px;
margin-top: -7px;
}
input.vis-configuration.vis-config-range:focus {
outline: none;
}
input.vis-configuration.vis-config-range:focus::-webkit-slider-runnable-track {
background: #9d9d9d; /* Old browsers */
background: -moz-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #9d9d9d),
color-stop(99%, #c8c8c8)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#9d9d9d 0%,
#c8c8c8 99%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#9d9d9d 0%,
#c8c8c8 99%
); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #9d9d9d 0%, #c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #9d9d9d 0%, #c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#9d9d9d', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
}
input.vis-configuration.vis-config-range::-moz-range-track {
width: 300px;
height: 10px;
background: #dedede; /* Old browsers */
background: -moz-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* FF3.6+ */
background: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0%, #dedede),
color-stop(99%, #c8c8c8)
); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(
top,
#dedede 0%,
#c8c8c8 99%
); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(
top,
#dedede 0%,
#c8c8c8 99%
); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #dedede 0%, #c8c8c8 99%); /* IE10+ */
background: linear-gradient(to bottom, #dedede 0%, #c8c8c8 99%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dedede', endColorstr='#c8c8c8',GradientType=0 ); /* IE6-9 */
border: 1px solid #999999;
box-shadow: #aaaaaa 0px 0px 3px 0px;
border-radius: 3px;
}
input.vis-configuration.vis-config-range::-moz-range-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #385380;
}
/*hide the outline behind the border*/
input.vis-configuration.vis-config-range:-moz-focusring {
outline: 1px solid white;
outline-offset: -1px;
}
input.vis-configuration.vis-config-range::-ms-track {
width: 300px;
height: 5px;
/*remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead */
background: transparent;
/*leave room for the larger thumb to overflow with a transparent border */
border-color: transparent;
border-width: 6px 0;
/*remove default tick marks*/
color: transparent;
}
input.vis-configuration.vis-config-range::-ms-fill-lower {
background: #777;
border-radius: 10px;
}
input.vis-configuration.vis-config-range::-ms-fill-upper {
background: #ddd;
border-radius: 10px;
}
input.vis-configuration.vis-config-range::-ms-thumb {
border: none;
height: 16px;
width: 16px;
border-radius: 50%;
background: #385380;
}
input.vis-configuration.vis-config-range:focus::-ms-fill-lower {
background: #888;
}
input.vis-configuration.vis-config-range:focus::-ms-fill-upper {
background: #ccc;
}
.vis-configuration-popup {
position: absolute;
background: rgba(57, 76, 89, 0.85);
border: 2px solid #f2faff;
line-height: 30px;
height: 30px;
width: 150px;
text-align: center;
color: #ffffff;
font-size: 14px;
border-radius: 4px;
-webkit-transition: opacity 0.3s ease-in-out;
-moz-transition: opacity 0.3s ease-in-out;
transition: opacity 0.3s ease-in-out;
}
.vis-configuration-popup:after,
.vis-configuration-popup:before {
left: 100%;
top: 50%;
border: solid transparent;
content: " ";
height: 0;
width: 0;
position: absolute;
pointer-events: none;
}
.vis-configuration-popup:after {
border-color: rgba(136, 183, 213, 0);
border-left-color: rgba(57, 76, 89, 0.85);
border-width: 8px;
margin-top: -8px;
}
.vis-configuration-popup:before {
border-color: rgba(194, 225, 245, 0);
border-left-color: #f2faff;
border-width: 12px;
margin-top: -12px;
}
`;Dn(dM);var cM=`div.vis-tooltip {
position: absolute;
visibility: hidden;
padding: 5px;
white-space: nowrap;
font-family: verdana;
font-size: 14px;
color: #000000;
background-color: #f5f4ed;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
border: 1px solid #808074;
box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
pointer-events: none;
z-index: 5;
}
`;Dn(cM);var av=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Y(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var Av={},gs,Cv;function ke(){if(Cv)return gs;Cv=1;var r=function(e){return e&&e.Math===Math&&e};return gs=r(typeof globalThis=="object"&&globalThis)||r(typeof window=="object"&&window)||r(typeof self=="object"&&self)||r(typeof av=="object"&&av)||r(typeof gs=="object"&&gs)||function(){return this}()||Function("return this")(),gs}var sA,Iv;function ie(){return Iv||(Iv=1,sA=function(r){try{return!!r()}catch{return!0}}),sA}var oA,lv;function Ss(){if(lv)return oA;lv=1;var r=ie();return oA=!r(function(){var e=function(){}.bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),oA}var gA,hv;function ug(){if(hv)return gA;hv=1;var r=Ss(),e=Function.prototype,t=e.apply,i=e.call;return gA=typeof Reflect=="object"&&Reflect.apply||(r?i.bind(t):function(){return i.apply(t,arguments)}),gA}var aA,dv;function ne(){if(dv)return aA;dv=1;var r=Ss(),e=Function.prototype,t=e.call,i=r&&e.bind.bind(t,t);return aA=r?i:function(n){return function(){return t.apply(n,arguments)}},aA}var AA,cv;function mi(){if(cv)return AA;cv=1;var r=ne(),e=r({}.toString),t=r("".slice);return AA=function(i){return t(e(i),8,-1)},AA}var CA,uv;function Yu(){if(uv)return CA;uv=1;var r=mi(),e=ne();return CA=function(t){if(r(t)==="Function")return e(t)},CA}var IA,fv;function Ue(){if(fv)return IA;fv=1;var r=typeof document=="object"&&document.all;return IA=typeof r>"u"&&r!==void 0?function(e){return typeof e=="function"||e===r}:function(e){return typeof e=="function"},IA}var lA={},hA,pv;function Le(){if(pv)return hA;pv=1;var r=ie();return hA=!r(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),hA}var dA,mv;function ft(){if(mv)return dA;mv=1;var r=Ss(),e=Function.prototype.call;return dA=r?e.bind(e):function(){return e.apply(e,arguments)},dA}var cA={},vv;function fg(){if(vv)return cA;vv=1;var r={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,t=e&&!r.call({1:2},1);return cA.f=t?function(n){var s=e(this,n);return!!s&&s.enumerable}:r,cA}var uA,bv;function Es(){return bv||(bv=1,uA=function(r,e){return{enumerable:!(r&1),configurable:!(r&2),writable:!(r&4),value:e}}),uA}var fA,yv;function pg(){if(yv)return fA;yv=1;var r=ne(),e=ie(),t=mi(),i=Object,n=r("".split);return fA=e(function(){return!i("z").propertyIsEnumerable(0)})?function(s){return t(s)==="String"?n(s,""):i(s)}:i,fA}var pA,wv;function mr(){return wv||(wv=1,pA=function(r){return r==null}),pA}var mA,xv;function Li(){if(xv)return mA;xv=1;var r=mr(),e=TypeError;return mA=function(t){if(r(t))throw new e("Can't call method on "+t);return t},mA}var vA,Sv;function Xt(){if(Sv)return vA;Sv=1;var r=pg(),e=Li();return vA=function(t){return r(e(t))},vA}var bA,Ev;function Xe(){if(Ev)return bA;Ev=1;var r=Ue();return bA=function(e){return typeof e=="object"?e!==null:r(e)},bA}var yA,Tv;function he(){return Tv||(Tv=1,yA={}),yA}var wA,kv;function bt(){if(kv)return wA;kv=1;var r=he(),e=ke(),t=Ue(),i=function(n){return t(n)?n:void 0};return wA=function(n,s){return arguments.length<2?i(r[n])||i(e[n]):r[n]&&r[n][s]||e[n]&&e[n][s]},wA}var xA,Ov;function De(){if(Ov)return xA;Ov=1;var r=ne();return xA=r({}.isPrototypeOf),xA}var SA,Rv;function vr(){if(Rv)return SA;Rv=1;var r=ke(),e=r.navigator,t=e&&e.userAgent;return SA=t?String(t):"",SA}var EA,Dv;function Ts(){if(Dv)return EA;Dv=1;var r=ke(),e=vr(),t=r.process,i=r.Deno,n=t&&t.versions||i&&i.version,s=n&&n.v8,o,g;return s&&(o=s.split("."),g=o[0]>0&&o[0]<4?1:+(o[0]+o[1])),!g&&e&&(o=e.match(/Edge\/(\d+)/),(!o||o[1]>=74)&&(o=e.match(/Chrome\/(\d+)/),o&&(g=+o[1]))),EA=g,EA}var TA,Pv;function br(){if(Pv)return TA;Pv=1;var r=Ts(),e=ie(),t=ke(),i=t.String;return TA=!!Object.getOwnPropertySymbols&&!e(function(){var n=Symbol("symbol detection");return!i(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&r&&r<41}),TA}var kA,Mv;function Nk(){if(Mv)return kA;Mv=1;var r=br();return kA=r&&!Symbol.sham&&typeof Symbol.iterator=="symbol",kA}var OA,Nv;function ks(){if(Nv)return OA;Nv=1;var r=bt(),e=Ue(),t=De(),i=Nk(),n=Object;return OA=i?function(s){return typeof s=="symbol"}:function(s){var o=r("Symbol");return e(o)&&t(o.prototype,n(s))},OA}var RA,_v;function yr(){if(_v)return RA;_v=1;var r=String;return RA=function(e){try{return r(e)}catch{return"Object"}},RA}var DA,Bv;function vi(){if(Bv)return DA;Bv=1;var r=Ue(),e=yr(),t=TypeError;return DA=function(i){if(r(i))return i;throw new t(e(i)+" is not a function")},DA}var PA,Fv;function Ku(){if(Fv)return PA;Fv=1;var r=vi(),e=mr();return PA=function(t,i){var n=t[i];return e(n)?void 0:r(n)},PA}var MA,Lv;function uM(){if(Lv)return MA;Lv=1;var r=ft(),e=Ue(),t=Xe(),i=TypeError;return MA=function(n,s){var o,g;if(s==="string"&&e(o=n.toString)&&!t(g=r(o,n))||e(o=n.valueOf)&&!t(g=r(o,n))||s!=="string"&&e(o=n.toString)&&!t(g=r(o,n)))return g;throw new i("Can't convert object to primitive value")},MA}var NA={exports:{}},_A,zv;function wr(){return zv||(zv=1,_A=!0),_A}var BA,qv;function fM(){if(qv)return BA;qv=1;var r=ke(),e=Object.defineProperty;return BA=function(t,i){try{e(r,t,{value:i,configurable:!0,writable:!0})}catch{r[t]=i}return i},BA}var Vv;function Uu(){if(Vv)return NA.exports;Vv=1;var r=wr(),e=ke(),t=fM(),i="__core-js_shared__",n=NA.exports=e[i]||t(i,{});return(n.versions||(n.versions=[])).push({version:"3.44.0",mode:r?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.44.0/LICENSE",source:"https://github.com/zloirock/core-js"}),NA.exports}var FA,Wv;function xr(){if(Wv)return FA;Wv=1;var r=Uu();return FA=function(e,t){return r[e]||(r[e]=t||{})},FA}var LA,Gv;function pt(){if(Gv)return LA;Gv=1;var r=Li(),e=Object;return LA=function(t){return e(r(t))},LA}var zA,Zv;function je(){if(Zv)return zA;Zv=1;var r=ne(),e=pt(),t=r({}.hasOwnProperty);return zA=Object.hasOwn||function(n,s){return t(e(n),s)},zA}var qA,jv;function mg(){if(jv)return qA;jv=1;var r=ne(),e=0,t=Math.random(),i=r(1.1.toString);return qA=function(n){return"Symbol("+(n===void 0?"":n)+")_"+i(++e+t,36)},qA}var VA,Hv;function Ve(){if(Hv)return VA;Hv=1;var r=ke(),e=xr(),t=je(),i=mg(),n=br(),s=Nk(),o=r.Symbol,g=e("wks"),a=s?o.for||o:o&&o.withoutSetter||i;return VA=function(A){return t(g,A)||(g[A]=n&&t(o,A)?o[A]:a("Symbol."+A)),g[A]},VA}var WA,Yv;function _k(){if(Yv)return WA;Yv=1;var r=ft(),e=Xe(),t=ks(),i=Ku(),n=uM(),s=Ve(),o=TypeError,g=s("toPrimitive");return WA=function(a,A){if(!e(a)||t(a))return a;var C=i(a,g),I;if(C){if(A===void 0&&(A="default"),I=r(C,a,A),!e(I)||t(I))return I;throw new o("Can't convert object to primitive value")}return A===void 0&&(A="number"),n(a,A)},WA}var GA,Kv;function Xu(){if(Kv)return GA;Kv=1;var r=_k(),e=ks();return GA=function(t){var i=r(t,"string");return e(i)?i:i+""},GA}var ZA,Uv;function Bk(){if(Uv)return ZA;Uv=1;var r=ke(),e=Xe(),t=r.document,i=e(t)&&e(t.createElement);return ZA=function(n){return i?t.createElement(n):{}},ZA}var jA,Xv;function Fk(){if(Xv)return jA;Xv=1;var r=Le(),e=ie(),t=Bk();return jA=!r&&!e(function(){return Object.defineProperty(t("div"),"a",{get:function(){return 7}}).a!==7}),jA}var Qv;function vg(){if(Qv)return lA;Qv=1;var r=Le(),e=ft(),t=fg(),i=Es(),n=Xt(),s=Xu(),o=je(),g=Fk(),a=Object.getOwnPropertyDescriptor;return lA.f=r?a:function(C,I){if(C=n(C),I=s(I),g)try{return a(C,I)}catch{}if(o(C,I))return i(!e(t.f,C,I),C[I])},lA}var HA,Jv;function pM(){if(Jv)return HA;Jv=1;var r=ie(),e=Ue(),t=/#|\.prototype\./,i=function(a,A){var C=s[n(a)];return C===g?!0:C===o?!1:e(A)?r(A):!!A},n=i.normalize=function(a){return String(a).replace(t,".").toLowerCase()},s=i.data={},o=i.NATIVE="N",g=i.POLYFILL="P";return HA=i,HA}var YA,$v;function Os(){if($v)return YA;$v=1;var r=Yu(),e=vi(),t=Ss(),i=r(r.bind);return YA=function(n,s){return e(n),s===void 0?n:t?i(n,s):function(){return n.apply(s,arguments)}},YA}var KA={},UA,eb;function Lk(){if(eb)return UA;eb=1;var r=Le(),e=ie();return UA=r&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),UA}var XA,tb;function bi(){if(tb)return XA;tb=1;var r=Xe(),e=String,t=TypeError;return XA=function(i){if(r(i))return i;throw new t(e(i)+" is not an object")},XA}var ib;function Pt(){if(ib)return KA;ib=1;var r=Le(),e=Fk(),t=Lk(),i=bi(),n=Xu(),s=TypeError,o=Object.defineProperty,g=Object.getOwnPropertyDescriptor,a="enumerable",A="configurable",C="writable";return KA.f=r?t?function(l,h,d){if(i(l),h=n(h),i(d),typeof l=="function"&&h==="prototype"&&"value"in d&&C in d&&!d[C]){var c=g(l,h);c&&c[C]&&(l[h]=d.value,d={configurable:A in d?d[A]:c[A],enumerable:a in d?d[a]:c[a],writable:!1})}return o(l,h,d)}:o:function(l,h,d){if(i(l),h=n(h),i(d),e)try{return o(l,h,d)}catch{}if("get"in d||"set"in d)throw new s("Accessors not supported");return"value"in d&&(l[h]=d.value),l},KA}var QA,nb;function Sr(){if(nb)return QA;nb=1;var r=Le(),e=Pt(),t=Es();return QA=r?function(i,n,s){return e.f(i,n,t(1,s))}:function(i,n,s){return i[n]=s,i},QA}var JA,rb;function j(){if(rb)return JA;rb=1;var r=ke(),e=ug(),t=Yu(),i=Ue(),n=vg().f,s=pM(),o=he(),g=Os(),a=Sr(),A=je(),C=function(I){var l=function(h,d,c){if(this instanceof l){switch(arguments.length){case 0:return new I;case 1:return new I(h);case 2:return new I(h,d)}return new I(h,d,c)}return e(I,this,arguments)};return l.prototype=I.prototype,l};return JA=function(I,l){var h=I.target,d=I.global,c=I.stat,f=I.proto,u=d?r:c?r[h]:r[h]&&r[h].prototype,p=d?o:o[h]||a(o,h,{})[h],v=p.prototype,m,b,w,x,y,S,k,R,E;for(x in l)m=s(d?x:h+(c?".":"#")+x,I.forced),b=!m&&u&&A(u,x),S=p[x],b&&(I.dontCallGetSet?(E=n(u,x),k=E&&E.value):k=u[x]),y=b&&k?k:l[x],!(!m&&!f&&typeof S==typeof y)&&(I.bind&&b?R=g(y,r):I.wrap&&b?R=C(y):f&&i(y)?R=t(y):R=y,(I.sham||y&&y.sham||S&&S.sham)&&a(R,"sham",!0),a(p,x,R),f&&(w=h+"Prototype",A(o,w)||a(o,w,{}),a(o[w],x,y),I.real&&v&&(m||!v[x])&&a(v,x,y)))},JA}var $A,sb;function mM(){if(sb)return $A;sb=1;var r=Math.ceil,e=Math.floor;return $A=Math.trunc||function(i){var n=+i;return(n>0?e:r)(n)},$A}var eC,ob;function Er(){if(ob)return eC;ob=1;var r=mM();return eC=function(e){var t=+e;return t!==t||t===0?0:r(t)},eC}var tC,gb;function bg(){if(gb)return tC;gb=1;var r=Er(),e=Math.max,t=Math.min;return tC=function(i,n){var s=r(i);return s<0?e(s+n,0):t(s,n)},tC}var iC,ab;function zk(){if(ab)return iC;ab=1;var r=Er(),e=Math.min;return iC=function(t){var i=r(t);return i>0?e(i,9007199254740991):0},iC}var nC,Ab;function Qt(){if(Ab)return nC;Ab=1;var r=zk();return nC=function(e){return r(e.length)},nC}var rC,Cb;function Qu(){if(Cb)return rC;Cb=1;var r=Xt(),e=bg(),t=Qt(),i=function(n){return function(s,o,g){var a=r(s),A=t(a);if(A===0)return!n&&-1;var C=e(g,A),I;if(n&&o!==o){for(;A>C;)if(I=a[C++],I!==I)return!0}else for(;A>C;C++)if((n||C in a)&&a[C]===o)return n||C||0;return!n&&-1}};return rC={includes:i(!0),indexOf:i(!1)},rC}var sC,Ib;function Rs(){return Ib||(Ib=1,sC={}),sC}var oC,lb;function qk(){if(lb)return oC;lb=1;var r=ne(),e=je(),t=Xt(),i=Qu().indexOf,n=Rs(),s=r([].push);return oC=function(o,g){var a=t(o),A=0,C=[],I;for(I in a)!e(n,I)&&e(a,I)&&s(C,I);for(;g.length>A;)e(a,I=g[A++])&&(~i(C,I)||s(C,I));return C},oC}var gC,hb;function Ju(){return hb||(hb=1,gC=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),gC}var aC,db;function Ds(){if(db)return aC;db=1;var r=qk(),e=Ju();return aC=Object.keys||function(i){return r(i,e)},aC}var AC={},cb;function yg(){return cb||(cb=1,AC.f=Object.getOwnPropertySymbols),AC}var CC,ub;function vM(){if(ub)return CC;ub=1;var r=Le(),e=ne(),t=ft(),i=ie(),n=Ds(),s=yg(),o=fg(),g=pt(),a=pg(),A=Object.assign,C=Object.defineProperty,I=e([].concat);return CC=!A||i(function(){if(r&&A({b:1},A(C({},"a",{enumerable:!0,get:function(){C(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var l={},h={},d=Symbol("assign detection"),c="abcdefghijklmnopqrst";return l[d]=7,c.split("").forEach(function(f){h[f]=f}),A({},l)[d]!==7||n(A({},h)).join("")!==c})?function(h,d){for(var c=g(h),f=arguments.length,u=1,p=s.f,v=o.f;f>u;)for(var m=a(arguments[u++]),b=p?I(n(m),p(m)):n(m),w=b.length,x=0,y;w>x;)y=b[x++],(!r||t(v,m,y))&&(c[y]=m[y]);return c}:A,CC}var fb;function bM(){if(fb)return Av;fb=1;var r=j(),e=vM();return r({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),Av}var IC,pb;function yM(){if(pb)return IC;pb=1,bM();var r=he();return IC=r.Object.assign,IC}var lC,mb;function wM(){if(mb)return lC;mb=1;var r=yM();return lC=r,lC}var hC,vb;function xM(){return vb||(vb=1,hC=wM()),hC}var SM=xM(),Fe=Y(SM),bb={},dC,yb;function Tr(){if(yb)return dC;yb=1;var r=ne();return dC=r([].slice),dC}var cC,wb;function EM(){if(wb)return cC;wb=1;var r=ne(),e=vi(),t=Xe(),i=je(),n=Tr(),s=Ss(),o=Function,g=r([].concat),a=r([].join),A={},C=function(I,l,h){if(!i(A,l)){for(var d=[],c=0;c<l;c++)d[c]="a["+c+"]";A[l]=o("C,a","return new C("+a(d,",")+")")}return A[l](I,h)};return cC=s?o.bind:function(l){var h=e(this),d=h.prototype,c=n(arguments,1),f=function(){var p=g(c,n(arguments));return this instanceof f?C(h,p.length,p):h.apply(l,p)};return t(d)&&(f.prototype=d),f},cC}var xb;function TM(){if(xb)return bb;xb=1;var r=j(),e=EM();return r({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e}),bb}var uC,Sb;function We(){if(Sb)return uC;Sb=1;var r=ke(),e=he();return uC=function(t,i){var n=e[t+"Prototype"],s=n&&n[i];if(s)return s;var o=r[t],g=o&&o.prototype;return g&&g[i]},uC}var fC,Eb;function kM(){if(Eb)return fC;Eb=1,TM();var r=We();return fC=r("Function","bind"),fC}var pC,Tb;function OM(){if(Tb)return pC;Tb=1;var r=De(),e=kM(),t=Function.prototype;return pC=function(i){var n=i.bind;return i===t||r(t,i)&&n===t.bind?e:n},pC}var mC,kb;function RM(){if(kb)return mC;kb=1;var r=OM();return mC=r,mC}var vC,Ob;function DM(){return Ob||(Ob=1,vC=RM()),vC}var PM=DM(),P=Y(PM);function $u(r,e,t,i){r.beginPath(),r.arc(e,t,i,0,2*Math.PI,!1),r.closePath()}function MM(r,e,t,i){r.beginPath(),r.rect(e-i,t-i,i*2,i*2),r.closePath()}function NM(r,e,t,i){r.beginPath(),i*=1.15,t+=.275*i;let n=i*2,s=n/2,o=Math.sqrt(3)/6*n,g=Math.sqrt(n*n-s*s);r.moveTo(e,t-(g-o)),r.lineTo(e+s,t+o),r.lineTo(e-s,t+o),r.lineTo(e,t-(g-o)),r.closePath()}function _M(r,e,t,i){r.beginPath(),i*=1.15,t-=.275*i;let n=i*2,s=n/2,o=Math.sqrt(3)/6*n,g=Math.sqrt(n*n-s*s);r.moveTo(e,t+(g-o)),r.lineTo(e+s,t-o),r.lineTo(e-s,t-o),r.lineTo(e,t+(g-o)),r.closePath()}function BM(r,e,t,i){r.beginPath(),i*=.82,t+=.1*i;for(let n=0;n<10;n++){let s=n%2===0?i*1.3:i*.5;r.lineTo(e+s*Math.sin(n*2*Math.PI/10),t-s*Math.cos(n*2*Math.PI/10))}r.closePath()}function FM(r,e,t,i){r.beginPath(),r.lineTo(e,t+i),r.lineTo(e+i,t),r.lineTo(e,t-i),r.lineTo(e-i,t),r.closePath()}function Vk(r,e,t,i,n,s){let o=Math.PI/180;i-2*s<0&&(s=i/2),n-2*s<0&&(s=n/2),r.beginPath(),r.moveTo(e+s,t),r.lineTo(e+i-s,t),r.arc(e+i-s,t+s,s,o*270,o*360,!1),r.lineTo(e+i,t+n-s),r.arc(e+i-s,t+n-s,s,0,o*90,!1),r.lineTo(e+s,t+n),r.arc(e+s,t+n-s,s,o*90,o*180,!1),r.lineTo(e,t+s),r.arc(e+s,t+s,s,o*180,o*270,!1),r.closePath()}function Bc(r,e,t,i,n){let s=.5522848,o=i/2*s,g=n/2*s,a=e+i,A=t+n,C=e+i/2,I=t+n/2;r.beginPath(),r.moveTo(e,I),r.bezierCurveTo(e,I-g,C-o,t,C,t),r.bezierCurveTo(C+o,t,a,I-g,a,I),r.bezierCurveTo(a,I+g,C+o,A,C,A),r.bezierCurveTo(C-o,A,e,I+g,e,I),r.closePath()}function Wk(r,e,t,i,n){let s=.3333333333333333,o=i,g=n*s,a=.5522848,A=o/2*a,C=g/2*a,I=e+o,l=t+g,h=e+o/2,d=t+g/2,c=t+(n-g/2),f=t+n;r.beginPath(),r.moveTo(I,d),r.bezierCurveTo(I,d+C,h+A,l,h,l),r.bezierCurveTo(h-A,l,e,d+C,e,d),r.bezierCurveTo(e,d-C,h-A,t,h,t),r.bezierCurveTo(h+A,t,I,d-C,I,d),r.lineTo(I,c),r.bezierCurveTo(I,c+C,h+A,f,h,f),r.bezierCurveTo(h-A,f,e,c+C,e,c),r.lineTo(e,d)}function Gk(r,e,t,i,n,s){r.beginPath(),r.moveTo(e,t);let o=s.length,g=i-e,a=n-t,A=a/g,C=Math.sqrt(g*g+a*a),I=0,l=!0,h=0,d=+s[0];for(;C>=.1;)d=+s[I++%o],d>C&&(d=C),h=Math.sqrt(d*d/(1+A*A)),h=g<0?-h:h,e+=h,t+=A*h,l===!0?r.lineTo(e,t):r.moveTo(e,t),C-=d,l=!l}function LM(r,e,t,i){r.beginPath();let n=6,s=Math.PI*2/n;r.moveTo(e+i,t);for(let o=1;o<n;o++)r.lineTo(e+i*Math.cos(s*o),t+i*Math.sin(s*o));r.closePath()}var Rb={circle:$u,dashedLine:Gk,database:Wk,diamond:FM,ellipse:Bc,ellipse_vis:Bc,hexagon:LM,roundRect:Vk,square:MM,star:BM,triangle:NM,triangleDown:_M};function zM(r){return Object.prototype.hasOwnProperty.call(Rb,r)?Rb[r]:function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];CanvasRenderingContext2D.prototype[r].call(e,i)}}var bC={exports:{}},Db;function qM(){return Db||(Db=1,function(r){r.exports=e;function e(i){if(i)return t(i)}function t(i){for(var n in e.prototype)i[n]=e.prototype[n];return i}e.prototype.on=e.prototype.addEventListener=function(i,n){return this._callbacks=this._callbacks||{},(this._callbacks["$"+i]=this._callbacks["$"+i]||[]).push(n),this},e.prototype.once=function(i,n){function s(){this.off(i,s),n.apply(this,arguments)}return s.fn=n,this.on(i,s),this},e.prototype.off=e.prototype.removeListener=e.prototype.removeAllListeners=e.prototype.removeEventListener=function(i,n){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var s=this._callbacks["$"+i];if(!s)return this;if(arguments.length==1)return delete this._callbacks["$"+i],this;for(var o,g=0;g<s.length;g++)if(o=s[g],o===n||o.fn===n){s.splice(g,1);break}return s.length===0&&delete this._callbacks["$"+i],this},e.prototype.emit=function(i){this._callbacks=this._callbacks||{};for(var n=new Array(arguments.length-1),s=this._callbacks["$"+i],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(s){s=s.slice(0);for(var o=0,g=s.length;o<g;++o)s[o].apply(this,n)}return this},e.prototype.listeners=function(i){return this._callbacks=this._callbacks||{},this._callbacks["$"+i]||[]},e.prototype.hasListeners=function(i){return!!this.listeners(i).length}}(bC)),bC.exports}var VM=qM(),Zk=Y(VM),Pb={},yC,Mb;function tn(){if(Mb)return yC;Mb=1;var r=mi();return yC=Array.isArray||function(t){return r(t)==="Array"},yC}var wC,Nb;function ef(){if(Nb)return wC;Nb=1;var r=TypeError,e=9007199254740991;return wC=function(t){if(t>e)throw r("Maximum allowed index exceeded");return t},wC}var xC,_b;function wg(){if(_b)return xC;_b=1;var r=Le(),e=Pt(),t=Es();return xC=function(i,n,s){r?e.f(i,n,t(0,s)):i[n]=s},xC}var SC,Bb;function tf(){if(Bb)return SC;Bb=1;var r=Ve(),e=r("toStringTag"),t={};return t[e]="z",SC=String(t)==="[object z]",SC}var EC,Fb;function nn(){if(Fb)return EC;Fb=1;var r=tf(),e=Ue(),t=mi(),i=Ve(),n=i("toStringTag"),s=Object,o=t(function(){return arguments}())==="Arguments",g=function(a,A){try{return a[A]}catch{}};return EC=r?t:function(a){var A,C,I;return a===void 0?"Undefined":a===null?"Null":typeof(C=g(A=s(a),n))=="string"?C:o?t(A):(I=t(A))==="Object"&&e(A.callee)?"Arguments":I},EC}var TC,Lb;function WM(){if(Lb)return TC;Lb=1;var r=ne(),e=Ue(),t=Uu(),i=r(Function.toString);return e(t.inspectSource)||(t.inspectSource=function(n){return i(n)}),TC=t.inspectSource,TC}var kC,zb;function jk(){if(zb)return kC;zb=1;var r=ne(),e=ie(),t=Ue(),i=nn(),n=bt(),s=WM(),o=function(){},g=n("Reflect","construct"),a=/^\s*(?:class|function)\b/,A=r(a.exec),C=!a.test(o),I=function(d){if(!t(d))return!1;try{return g(o,[],d),!0}catch{return!1}},l=function(d){if(!t(d))return!1;switch(i(d)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return C||!!A(a,s(d))}catch{return!0}};return l.sham=!0,kC=!g||e(function(){var h;return I(I.call)||!I(Object)||!I(function(){h=!0})||h})?l:I,kC}var OC,qb;function GM(){if(qb)return OC;qb=1;var r=tn(),e=jk(),t=Xe(),i=Ve(),n=i("species"),s=Array;return OC=function(o){var g;return r(o)&&(g=o.constructor,e(g)&&(g===s||r(g.prototype))?g=void 0:t(g)&&(g=g[n],g===null&&(g=void 0))),g===void 0?s:g},OC}var RC,Vb;function xg(){if(Vb)return RC;Vb=1;var r=GM();return RC=function(e,t){return new(r(e))(t===0?0:t)},RC}var DC,Wb;function Ps(){if(Wb)return DC;Wb=1;var r=ie(),e=Ve(),t=Ts(),i=e("species");return DC=function(n){return t>=51||!r(function(){var s=[],o=s.constructor={};return o[i]=function(){return{foo:1}},s[n](Boolean).foo!==1})},DC}var Gb;function Hk(){if(Gb)return Pb;Gb=1;var r=j(),e=ie(),t=tn(),i=Xe(),n=pt(),s=Qt(),o=ef(),g=wg(),a=xg(),A=Ps(),C=Ve(),I=Ts(),l=C("isConcatSpreadable"),h=I>=51||!e(function(){var f=[];return f[l]=!1,f.concat()[0]!==f}),d=function(f){if(!i(f))return!1;var u=f[l];return u!==void 0?!!u:t(f)},c=!h||!A("concat");return r({target:"Array",proto:!0,arity:1,forced:c},{concat:function(u){var p=n(this),v=a(p,0),m=0,b,w,x,y,S;for(b=-1,x=arguments.length;b<x;b++)if(S=b===-1?p:arguments[b],d(S))for(y=s(S),o(m+y),w=0;w<y;w++,m++)w in S&&g(v,m,S[w]);else o(m+1),g(v,m++,S);return v.length=m,v}}),Pb}var Zb={},jb={},PC,Hb;function Mt(){if(Hb)return PC;Hb=1;var r=nn(),e=String;return PC=function(t){if(r(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(t)},PC}var MC={},Yb;function nf(){if(Yb)return MC;Yb=1;var r=Le(),e=Lk(),t=Pt(),i=bi(),n=Xt(),s=Ds();return MC.f=r&&!e?Object.defineProperties:function(g,a){i(g);for(var A=n(a),C=s(a),I=C.length,l=0,h;I>l;)t.f(g,h=C[l++],A[h]);return g},MC}var NC,Kb;function ZM(){if(Kb)return NC;Kb=1;var r=bt();return NC=r("document","documentElement"),NC}var _C,Ub;function Sg(){if(Ub)return _C;Ub=1;var r=xr(),e=mg(),t=r("keys");return _C=function(i){return t[i]||(t[i]=e(i))},_C}var BC,Xb;function Ms(){if(Xb)return BC;Xb=1;var r=bi(),e=nf(),t=Ju(),i=Rs(),n=ZM(),s=Bk(),o=Sg(),g=">",a="<",A="prototype",C="script",I=o("IE_PROTO"),l=function(){},h=function(p){return a+C+g+p+a+"/"+C+g},d=function(p){p.write(h("")),p.close();var v=p.parentWindow.Object;return p=null,v},c=function(){var p=s("iframe"),v="java"+C+":",m;return p.style.display="none",n.appendChild(p),p.src=String(v),m=p.contentWindow.document,m.open(),m.write(h("document.F=Object")),m.close(),m.F},f,u=function(){try{f=new ActiveXObject("htmlfile")}catch{}u=typeof document<"u"?document.domain&&f?d(f):c():d(f);for(var p=t.length;p--;)delete u[A][t[p]];return u()};return i[I]=!0,BC=Object.create||function(v,m){var b;return v!==null?(l[A]=r(v),b=new l,l[A]=null,b[I]=v):b=u(),m===void 0?b:e.f(b,m)},BC}var FC={},Qb;function Eg(){if(Qb)return FC;Qb=1;var r=qk(),e=Ju(),t=e.concat("length","prototype");return FC.f=Object.getOwnPropertyNames||function(n){return r(n,t)},FC}var LC={},Jb;function rf(){if(Jb)return LC;Jb=1;var r=mi(),e=Xt(),t=Eg().f,i=Tr(),n=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(o){try{return t(o)}catch{return i(n)}};return LC.f=function(g){return n&&r(g)==="Window"?s(g):t(e(g))},LC}var zC,$b;function Ns(){if($b)return zC;$b=1;var r=Sr();return zC=function(e,t,i,n){return n&&n.enumerable?e[t]=i:r(e,t,i),e},zC}var qC,ey;function sf(){if(ey)return qC;ey=1;var r=Pt();return qC=function(e,t,i){return r.f(e,t,i)},qC}var VC={},ty;function Tg(){if(ty)return VC;ty=1;var r=Ve();return VC.f=r,VC}var WC,iy;function Pe(){if(iy)return WC;iy=1;var r=he(),e=je(),t=Tg(),i=Pt().f;return WC=function(n){var s=r.Symbol||(r.Symbol={});e(s,n)||i(s,n,{value:t.f(n)})},WC}var GC,ny;function Yk(){if(ny)return GC;ny=1;var r=ft(),e=bt(),t=Ve(),i=Ns();return GC=function(){var n=e("Symbol"),s=n&&n.prototype,o=s&&s.valueOf,g=t("toPrimitive");s&&!s[g]&&i(s,g,function(a){return r(o,this)},{arity:1})},GC}var ZC,ry;function jM(){if(ry)return ZC;ry=1;var r=tf(),e=nn();return ZC=r?{}.toString:function(){return"[object "+e(this)+"]"},ZC}var jC,sy;function Pn(){if(sy)return jC;sy=1;var r=tf(),e=Pt().f,t=Sr(),i=je(),n=jM(),s=Ve(),o=s("toStringTag");return jC=function(g,a,A,C){var I=A?g:g&&g.prototype;I&&(i(I,o)||e(I,o,{configurable:!0,value:a}),C&&!r&&t(I,"toString",n))},jC}var HC,oy;function Kk(){if(oy)return HC;oy=1;var r=ke(),e=Ue(),t=r.WeakMap;return HC=e(t)&&/native code/.test(String(t)),HC}var YC,gy;function Mn(){if(gy)return YC;gy=1;var r=Kk(),e=ke(),t=Xe(),i=Sr(),n=je(),s=Uu(),o=Sg(),g=Rs(),a="Object already initialized",A=e.TypeError,C=e.WeakMap,I,l,h,d=function(p){return h(p)?l(p):I(p,{})},c=function(p){return function(v){var m;if(!t(v)||(m=l(v)).type!==p)throw new A("Incompatible receiver, "+p+" required");return m}};if(r||s.state){var f=s.state||(s.state=new C);f.get=f.get,f.has=f.has,f.set=f.set,I=function(p,v){if(f.has(p))throw new A(a);return v.facade=p,f.set(p,v),v},l=function(p){return f.get(p)||{}},h=function(p){return f.has(p)}}else{var u=o("state");g[u]=!0,I=function(p,v){if(n(p,u))throw new A(a);return v.facade=p,i(p,u,v),v},l=function(p){return n(p,u)?p[u]:{}},h=function(p){return n(p,u)}}return YC={set:I,get:l,has:h,enforce:d,getterFor:c},YC}var KC,ay;function rn(){if(ay)return KC;ay=1;var r=Os(),e=ne(),t=pg(),i=pt(),n=Qt(),s=xg(),o=e([].push),g=function(a){var A=a===1,C=a===2,I=a===3,l=a===4,h=a===6,d=a===7,c=a===5||h;return function(f,u,p,v){for(var m=i(f),b=t(m),w=n(b),x=r(u,p),y=0,S=v||s,k=A?S(f,w):C||d?S(f,0):void 0,R,E;w>y;y++)if((c||y in b)&&(R=b[y],E=x(R,y,m),a))if(A)k[y]=E;else if(E)switch(a){case 3:return!0;case 5:return R;case 6:return y;case 2:o(k,R)}else switch(a){case 4:return!1;case 7:o(k,R)}return h?-1:I||l?l:k}};return KC={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)},KC}var Ay;function HM(){if(Ay)return jb;Ay=1;var r=j(),e=ke(),t=ft(),i=ne(),n=wr(),s=Le(),o=br(),g=ie(),a=je(),A=De(),C=bi(),I=Xt(),l=Xu(),h=Mt(),d=Es(),c=Ms(),f=Ds(),u=Eg(),p=rf(),v=yg(),m=vg(),b=Pt(),w=nf(),x=fg(),y=Ns(),S=sf(),k=xr(),R=Sg(),E=Rs(),T=mg(),M=Ve(),B=Tg(),X=Pe(),U=Yk(),Ce=Pn(),se=Mn(),Me=rn().forEach,Q=R("hidden"),ce="Symbol",Oe="prototype",Ze=se.set,kt=se.getterFor(ce),Je=Object[Oe],Ai=e.Symbol,ns=Ai&&Ai[Oe],UP=e.RangeError,XP=e.TypeError,Xa=e.QObject,Vm=m.f,mn=b.f,Wm=p.f,QP=x.f,Gm=i([].push),Pi=k("symbols"),rs=k("op-symbols"),JP=k("wks"),Qa=!Xa||!Xa[Oe]||!Xa[Oe].findChild,Zm=function(we,te,ge){var ae=Vm(Je,te);ae&&delete Je[te],mn(we,te,ge),ae&&we!==Je&&mn(Je,te,ae)},Ja=s&&g(function(){return c(mn({},"a",{get:function(){return mn(this,"a",{value:7}).a}})).a!==7})?Zm:mn,$a=function(we,te){var ge=Pi[we]=c(ns);return Ze(ge,{type:ce,tag:we,description:te}),s||(ge.description=te),ge},_o=function(te,ge,ae){te===Je&&_o(rs,ge,ae),C(te);var xe=l(ge);return C(ae),a(Pi,xe)?(ae.enumerable?(a(te,Q)&&te[Q][xe]&&(te[Q][xe]=!1),ae=c(ae,{enumerable:d(0,!1)})):(a(te,Q)||mn(te,Q,d(1,c(null))),te[Q][xe]=!0),Ja(te,xe,ae)):mn(te,xe,ae)},eA=function(te,ge){C(te);var ae=I(ge),xe=f(ae).concat(Ym(ae));return Me(xe,function(dt){(!s||t(tA,ae,dt))&&_o(te,dt,ae[dt])}),te},$P=function(te,ge){return ge===void 0?c(te):eA(c(te),ge)},tA=function(te){var ge=l(te),ae=t(QP,this,ge);return this===Je&&a(Pi,ge)&&!a(rs,ge)?!1:ae||!a(this,ge)||!a(Pi,ge)||a(this,Q)&&this[Q][ge]?ae:!0},jm=function(te,ge){var ae=I(te),xe=l(ge);if(!(ae===Je&&a(Pi,xe)&&!a(rs,xe))){var dt=Vm(ae,xe);return dt&&a(Pi,xe)&&!(a(ae,Q)&&ae[Q][xe])&&(dt.enumerable=!0),dt}},Hm=function(te){var ge=Wm(I(te)),ae=[];return Me(ge,function(xe){!a(Pi,xe)&&!a(E,xe)&&Gm(ae,xe)}),ae},Ym=function(we){var te=we===Je,ge=Wm(te?rs:I(we)),ae=[];return Me(ge,function(xe){a(Pi,xe)&&(!te||a(Je,xe))&&Gm(ae,Pi[xe])}),ae};return o||(Ai=function(){if(A(ns,this))throw new XP("Symbol is not a constructor");var te=!arguments.length||arguments[0]===void 0?void 0:h(arguments[0]),ge=T(te),ae=function(xe){var dt=this===void 0?e:this;dt===Je&&t(ae,rs,xe),a(dt,Q)&&a(dt[Q],ge)&&(dt[Q][ge]=!1);var Km=d(1,xe);try{Ja(dt,ge,Km)}catch(Um){if(!(Um instanceof UP))throw Um;Zm(dt,ge,Km)}};return s&&Qa&&Ja(Je,ge,{configurable:!0,set:ae}),$a(ge,te)},ns=Ai[Oe],y(ns,"toString",function(){return kt(this).tag}),y(Ai,"withoutSetter",function(we){return $a(T(we),we)}),x.f=tA,b.f=_o,w.f=eA,m.f=jm,u.f=p.f=Hm,v.f=Ym,B.f=function(we){return $a(M(we),we)},s&&(S(ns,"description",{configurable:!0,get:function(){return kt(this).description}}),n||y(Je,"propertyIsEnumerable",tA,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!o,sham:!o},{Symbol:Ai}),Me(f(JP),function(we){X(we)}),r({target:ce,stat:!0,forced:!o},{useSetter:function(){Qa=!0},useSimple:function(){Qa=!1}}),r({target:"Object",stat:!0,forced:!o,sham:!s},{create:$P,defineProperty:_o,defineProperties:eA,getOwnPropertyDescriptor:jm}),r({target:"Object",stat:!0,forced:!o},{getOwnPropertyNames:Hm}),U(),Ce(Ai,ce),E[Q]=!0,jb}var Cy={},UC,Iy;function Uk(){if(Iy)return UC;Iy=1;var r=br();return UC=r&&!!Symbol.for&&!!Symbol.keyFor,UC}var ly;function YM(){if(ly)return Cy;ly=1;var r=j(),e=bt(),t=je(),i=Mt(),n=xr(),s=Uk(),o=n("string-to-symbol-registry"),g=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{for:function(a){var A=i(a);if(t(o,A))return o[A];var C=e("Symbol")(A);return o[A]=C,g[C]=A,C}}),Cy}var hy={},dy;function KM(){if(dy)return hy;dy=1;var r=j(),e=je(),t=ks(),i=yr(),n=xr(),s=Uk(),o=n("symbol-to-string-registry");return r({target:"Symbol",stat:!0,forced:!s},{keyFor:function(a){if(!t(a))throw new TypeError(i(a)+" is not a symbol");if(e(o,a))return o[a]}}),hy}var cy={},XC,uy;function UM(){if(uy)return XC;uy=1;var r=ne(),e=tn(),t=Ue(),i=mi(),n=Mt(),s=r([].push);return XC=function(o){if(t(o))return o;if(e(o)){for(var g=o.length,a=[],A=0;A<g;A++){var C=o[A];typeof C=="string"?s(a,C):(typeof C=="number"||i(C)==="Number"||i(C)==="String")&&s(a,n(C))}var I=a.length,l=!0;return function(h,d){if(l)return l=!1,d;if(e(this))return d;for(var c=0;c<I;c++)if(a[c]===h)return d}}},XC}var fy;function Xk(){if(fy)return cy;fy=1;var r=j(),e=bt(),t=ug(),i=ft(),n=ne(),s=ie(),o=Ue(),g=ks(),a=Tr(),A=UM(),C=br(),I=String,l=e("JSON","stringify"),h=n(/./.exec),d=n("".charAt),c=n("".charCodeAt),f=n("".replace),u=n(1.1.toString),p=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,m=/^[\uDC00-\uDFFF]$/,b=!C||s(function(){var S=e("Symbol")("stringify detection");return l([S])!=="[null]"||l({a:S})!=="{}"||l(Object(S))!=="{}"}),w=s(function(){return l("\uDF06\uD834")!=='"\\udf06\\ud834"'||l("\uDEAD")!=='"\\udead"'}),x=function(S,k){var R=a(arguments),E=A(k);if(!(!o(E)&&(S===void 0||g(S))))return R[1]=function(T,M){if(o(E)&&(M=i(E,this,I(T),M)),!g(M))return M},t(l,null,R)},y=function(S,k,R){var E=d(R,k-1),T=d(R,k+1);return h(v,S)&&!h(m,T)||h(m,S)&&!h(v,E)?"\\u"+u(c(S,0),16):S};return l&&r({target:"JSON",stat:!0,arity:3,forced:b||w},{stringify:function(k,R,E){var T=a(arguments),M=t(b?x:l,null,T);return w&&typeof M=="string"?f(M,p,y):M}}),cy}var py={},my;function XM(){if(my)return py;my=1;var r=j(),e=br(),t=ie(),i=yg(),n=pt(),s=!e||t(function(){i.f(1)});return r({target:"Object",stat:!0,forced:s},{getOwnPropertySymbols:function(g){var a=i.f;return a?a(n(g)):[]}}),py}var vy;function Qk(){return vy||(vy=1,HM(),YM(),KM(),Xk(),XM()),Zb}var by={},yy;function Jk(){if(yy)return by;yy=1;var r=Pe();return r("asyncDispose"),by}var wy={},xy;function QM(){if(xy)return wy;xy=1;var r=Pe();return r("asyncIterator"),wy}var Sy={},Ey;function $k(){if(Ey)return Sy;Ey=1;var r=Pe();return r("dispose"),Sy}var Ty={},ky;function JM(){if(ky)return Ty;ky=1;var r=Pe();return r("hasInstance"),Ty}var Oy={},Ry;function $M(){if(Ry)return Oy;Ry=1;var r=Pe();return r("isConcatSpreadable"),Oy}var Dy={},Py;function eO(){if(Py)return Dy;Py=1;var r=Pe();return r("iterator"),Dy}var My={},Ny;function eN(){if(Ny)return My;Ny=1;var r=Pe();return r("match"),My}var _y={},By;function tN(){if(By)return _y;By=1;var r=Pe();return r("matchAll"),_y}var Fy={},Ly;function iN(){if(Ly)return Fy;Ly=1;var r=Pe();return r("replace"),Fy}var zy={},qy;function nN(){if(qy)return zy;qy=1;var r=Pe();return r("search"),zy}var Vy={},Wy;function rN(){if(Wy)return Vy;Wy=1;var r=Pe();return r("species"),Vy}var Gy={},Zy;function sN(){if(Zy)return Gy;Zy=1;var r=Pe();return r("split"),Gy}var jy={},Hy;function tO(){if(Hy)return jy;Hy=1;var r=Pe(),e=Yk();return r("toPrimitive"),e(),jy}var Yy={},Ky;function oN(){if(Ky)return Yy;Ky=1;var r=bt(),e=Pe(),t=Pn();return e("toStringTag"),t(r("Symbol"),"Symbol"),Yy}var Uy={},Xy;function gN(){if(Xy)return Uy;Xy=1;var r=Pe();return r("unscopables"),Uy}var Qy={},Jy;function aN(){if(Jy)return Qy;Jy=1;var r=ke(),e=Pn();return e(r.JSON,"JSON",!0),Qy}var QC,$y;function AN(){if($y)return QC;$y=1,Hk(),Qk(),Jk(),QM(),$k(),JM(),$M(),eO(),eN(),tN(),iN(),nN(),rN(),sN(),tO(),oN(),gN(),aN();var r=he();return QC=r.Symbol,QC}var e0={},JC,t0;function kg(){return t0||(t0=1,JC=function(){}),JC}var $C,i0;function kr(){return i0||(i0=1,$C={}),$C}var eI,n0;function CN(){if(n0)return eI;n0=1;var r=Le(),e=je(),t=Function.prototype,i=r&&Object.getOwnPropertyDescriptor,n=e(t,"name"),s=n&&function(){}.name==="something",o=n&&(!r||r&&i(t,"name").configurable);return eI={EXISTS:n,PROPER:s,CONFIGURABLE:o},eI}var tI,r0;function iO(){if(r0)return tI;r0=1;var r=ie();return tI=!r(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),tI}var iI,s0;function Og(){if(s0)return iI;s0=1;var r=je(),e=Ue(),t=pt(),i=Sg(),n=iO(),s=i("IE_PROTO"),o=Object,g=o.prototype;return iI=n?o.getPrototypeOf:function(a){var A=t(a);if(r(A,s))return A[s];var C=A.constructor;return e(C)&&A instanceof C?C.prototype:A instanceof o?g:null},iI}var nI,o0;function nO(){if(o0)return nI;o0=1;var r=ie(),e=Ue(),t=Xe(),i=Ms(),n=Og(),s=Ns(),o=Ve(),g=wr(),a=o("iterator"),A=!1,C,I,l;[].keys&&(l=[].keys(),"next"in l?(I=n(n(l)),I!==Object.prototype&&(C=I)):A=!0);var h=!t(C)||r(function(){var d={};return C[a].call(d)!==d});return h?C={}:g&&(C=i(C)),e(C[a])||s(C,a,function(){return this}),nI={IteratorPrototype:C,BUGGY_SAFARI_ITERATORS:A},nI}var rI,g0;function IN(){if(g0)return rI;g0=1;var r=nO().IteratorPrototype,e=Ms(),t=Es(),i=Pn(),n=kr(),s=function(){return this};return rI=function(o,g,a,A){var C=g+" Iterator";return o.prototype=e(r,{next:t(+!A,a)}),i(o,C,!1,!0),n[C]=s,o},rI}var sI,a0;function lN(){if(a0)return sI;a0=1;var r=ne(),e=vi();return sI=function(t,i,n){try{return r(e(Object.getOwnPropertyDescriptor(t,i)[n]))}catch{}},sI}var oI,A0;function hN(){if(A0)return oI;A0=1;var r=Xe();return oI=function(e){return r(e)||e===null},oI}var gI,C0;function dN(){if(C0)return gI;C0=1;var r=hN(),e=String,t=TypeError;return gI=function(i){if(r(i))return i;throw new t("Can't set "+e(i)+" as a prototype")},gI}var aI,I0;function cN(){if(I0)return aI;I0=1;var r=lN(),e=Xe(),t=Li(),i=dN();return aI=Object.setPrototypeOf||("__proto__"in{}?function(){var n=!1,s={},o;try{o=r(Object.prototype,"__proto__","set"),o(s,[]),n=s instanceof Array}catch{}return function(a,A){return t(a),i(A),e(a)&&(n?o(a,A):a.__proto__=A),a}}():void 0),aI}var AI,l0;function of(){if(l0)return AI;l0=1;var r=j(),e=ft(),t=wr(),i=CN(),n=Ue(),s=IN(),o=Og(),g=cN(),a=Pn(),A=Sr(),C=Ns(),I=Ve(),l=kr(),h=nO(),d=i.PROPER,c=i.CONFIGURABLE,f=h.IteratorPrototype,u=h.BUGGY_SAFARI_ITERATORS,p=I("iterator"),v="keys",m="values",b="entries",w=function(){return this};return AI=function(x,y,S,k,R,E,T){s(S,y,k);var M=function(Ze){if(Ze===R&&se)return se;if(!u&&Ze&&Ze in U)return U[Ze];switch(Ze){case v:return function(){return new S(this,Ze)};case m:return function(){return new S(this,Ze)};case b:return function(){return new S(this,Ze)}}return function(){return new S(this)}},B=y+" Iterator",X=!1,U=x.prototype,Ce=U[p]||U["@@iterator"]||R&&U[R],se=!u&&Ce||M(R),Me=y==="Array"&&U.entries||Ce,Q,ce,Oe;if(Me&&(Q=o(Me.call(new x)),Q!==Object.prototype&&Q.next&&(!t&&o(Q)!==f&&(g?g(Q,f):n(Q[p])||C(Q,p,w)),a(Q,B,!0,!0),t&&(l[B]=w))),d&&R===m&&Ce&&Ce.name!==m&&(!t&&c?A(U,"name",m):(X=!0,se=function(){return e(Ce,this)})),R)if(ce={values:M(m),keys:E?se:M(v),entries:M(b)},T)for(Oe in ce)(u||X||!(Oe in U))&&C(U,Oe,ce[Oe]);else r({target:y,proto:!0,forced:u||X},ce);return(!t||T)&&U[p]!==se&&C(U,p,se,{name:R}),l[y]=se,ce},AI}var CI,h0;function gf(){return h0||(h0=1,CI=function(r,e){return{value:r,done:e}}),CI}var II,d0;function zi(){if(d0)return II;d0=1;var r=Xt(),e=kg(),t=kr(),i=Mn(),n=Pt().f,s=of(),o=gf(),g=wr(),a=Le(),A="Array Iterator",C=i.set,I=i.getterFor(A);II=s(Array,"Array",function(h,d){C(this,{type:A,target:r(h),index:0,kind:d})},function(){var h=I(this),d=h.target,c=h.index++;if(!d||c>=d.length)return h.target=null,o(void 0,!0);switch(h.kind){case"keys":return o(c,!1);case"values":return o(d[c],!1)}return o([c,d[c]],!1)},"values");var l=t.Arguments=t.Array;if(e("keys"),e("values"),e("entries"),!g&&a&&l.name!=="values")try{n(l,"name",{value:"values"})}catch{}return II}var lI,c0;function uN(){return c0||(c0=1,lI={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),lI}var u0;function qi(){if(u0)return e0;u0=1,zi();var r=uN(),e=ke(),t=Pn(),i=kr();for(var n in r)t(e[n],n),i[n]=i.Array;return e0}var hI,f0;function rO(){if(f0)return hI;f0=1;var r=AN();return qi(),hI=r,hI}var dI,p0;function fN(){return p0||(p0=1,dI=rO()),dI}var pN=fN(),mN=Y(pN),m0={},v0;function vN(){if(v0)return m0;v0=1;var r=j(),e=tn(),t=jk(),i=Xe(),n=bg(),s=Qt(),o=Xt(),g=wg(),a=Ve(),A=Ps(),C=Tr(),I=A("slice"),l=a("species"),h=Array,d=Math.max;return r({target:"Array",proto:!0,forced:!I},{slice:function(f,u){var p=o(this),v=s(p),m=n(f,v),b=n(u===void 0?v:u,v),w,x,y;if(e(p)&&(w=p.constructor,t(w)&&(w===h||e(w.prototype))?w=void 0:i(w)&&(w=w[l],w===null&&(w=void 0)),w===h||w===void 0))return C(p,m,b);for(x=new(w===void 0?h:w)(d(b-m,0)),y=0;m<b;m++,y++)m in p&&g(x,y,p[m]);return x.length=y,x}}),m0}var cI,b0;function bN(){if(b0)return cI;b0=1,vN();var r=We();return cI=r("Array","slice"),cI}var uI,y0;function yN(){if(y0)return uI;y0=1;var r=De(),e=bN(),t=Array.prototype;return uI=function(i){var n=i.slice;return i===t||r(t,i)&&n===t.slice?e:n},uI}var fI,w0;function wN(){if(w0)return fI;w0=1;var r=yN();return fI=r,fI}var pI,x0;function xN(){return x0||(x0=1,pI=wN()),pI}var SN=xN(),Yt=Y(SN),S0={},mI,E0;function sO(){if(E0)return mI;E0=1;var r=bt(),e=ne(),t=Eg(),i=yg(),n=bi(),s=e([].concat);return mI=r("Reflect","ownKeys")||function(g){var a=t.f(n(g)),A=i.f;return A?s(a,A(g)):a},mI}var T0;function EN(){if(T0)return S0;T0=1;var r=j(),e=sO();return r({target:"Reflect",stat:!0},{ownKeys:e}),S0}var vI,k0;function TN(){if(k0)return vI;k0=1,EN();var r=he();return vI=r.Reflect.ownKeys,vI}var bI,O0;function kN(){if(O0)return bI;O0=1;var r=TN();return bI=r,bI}var yI,R0;function ON(){return R0||(R0=1,yI=kN()),yI}var RN=ON(),DN=Y(RN),D0={},P0;function PN(){if(P0)return D0;P0=1;var r=j(),e=tn();return r({target:"Array",stat:!0},{isArray:e}),D0}var wI,M0;function MN(){if(M0)return wI;M0=1,PN();var r=he();return wI=r.Array.isArray,wI}var xI,N0;function NN(){if(N0)return xI;N0=1;var r=MN();return xI=r,xI}var SI,_0;function _N(){return _0||(_0=1,SI=NN()),SI}var BN=_N(),Ie=Y(BN),B0={},F0;function FN(){if(F0)return B0;F0=1;var r=j(),e=rn().map,t=Ps(),i=t("map");return r({target:"Array",proto:!0,forced:!i},{map:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),B0}var EI,L0;function LN(){if(L0)return EI;L0=1,FN();var r=We();return EI=r("Array","map"),EI}var TI,z0;function zN(){if(z0)return TI;z0=1;var r=De(),e=LN(),t=Array.prototype;return TI=function(i){var n=i.map;return i===t||r(t,i)&&n===t.map?e:n},TI}var kI,q0;function qN(){if(q0)return kI;q0=1;var r=zN();return kI=r,kI}var OI,V0;function VN(){return V0||(V0=1,OI=qN()),OI}var WN=VN(),et=Y(WN),W0={},G0;function GN(){if(G0)return W0;G0=1;var r=j(),e=pt(),t=Ds(),i=ie(),n=i(function(){t(1)});return r({target:"Object",stat:!0,forced:n},{keys:function(o){return t(e(o))}}),W0}var RI,Z0;function ZN(){if(Z0)return RI;Z0=1,GN();var r=he();return RI=r.Object.keys,RI}var DI,j0;function jN(){if(j0)return DI;j0=1;var r=ZN();return DI=r,DI}var PI,H0;function HN(){return H0||(H0=1,PI=jN()),PI}var YN=HN(),Se=Y(YN),Y0={},K0;function KN(){if(K0)return Y0;K0=1;var r=j(),e=ne(),t=Date,i=e(t.prototype.getTime);return r({target:"Date",stat:!0},{now:function(){return i(new t)}}),Y0}var MI,U0;function UN(){if(U0)return MI;U0=1,KN();var r=he();return MI=r.Date.now,MI}var NI,X0;function XN(){if(X0)return NI;X0=1;var r=UN();return NI=r,NI}var _I,Q0;function QN(){return Q0||(Q0=1,_I=XN()),_I}var JN=QN(),Yo=Y(JN),J0={},BI,$0;function Or(){if($0)return BI;$0=1;var r=ie();return BI=function(e,t){var i=[][e];return!!i&&r(function(){i.call(null,t||function(){return 1},1)})},BI}var FI,ew;function $N(){if(ew)return FI;ew=1;var r=rn().forEach,e=Or(),t=e("forEach");return FI=t?[].forEach:function(n){return r(this,n,arguments.length>1?arguments[1]:void 0)},FI}var tw;function e_(){if(tw)return J0;tw=1;var r=j(),e=$N();return r({target:"Array",proto:!0,forced:[].forEach!==e},{forEach:e}),J0}var LI,iw;function t_(){if(iw)return LI;iw=1,e_();var r=We();return LI=r("Array","forEach"),LI}var zI,nw;function i_(){if(nw)return zI;nw=1;var r=t_();return zI=r,zI}var qI,rw;function n_(){if(rw)return qI;rw=1;var r=nn(),e=je(),t=De(),i=i_(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return qI=function(o){var g=o.forEach;return o===n||t(n,o)&&g===n.forEach||e(s,r(o))?i:g},qI}var VI,sw;function r_(){return sw||(sw=1,VI=n_()),VI}var s_=r_(),Ae=Y(s_),ow={},gw;function o_(){if(gw)return ow;gw=1;var r=j(),e=ne(),t=tn(),i=e([].reverse),n=[1,2];return r({target:"Array",proto:!0,forced:String(n)===String(n.reverse())},{reverse:function(){return t(this)&&(this.length=this.length),i(this)}}),ow}var WI,aw;function g_(){if(aw)return WI;aw=1,o_();var r=We();return WI=r("Array","reverse"),WI}var GI,Aw;function a_(){if(Aw)return GI;Aw=1;var r=De(),e=g_(),t=Array.prototype;return GI=function(i){var n=i.reverse;return i===t||r(t,i)&&n===t.reverse?e:n},GI}var ZI,Cw;function A_(){if(Cw)return ZI;Cw=1;var r=a_();return ZI=r,ZI}var jI,Iw;function C_(){return Iw||(Iw=1,jI=A_()),jI}var I_=C_(),xn=Y(I_),lw={},HI,hw;function l_(){if(hw)return HI;hw=1;var r=Le(),e=tn(),t=TypeError,i=Object.getOwnPropertyDescriptor,n=r&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(s){return s instanceof TypeError}}();return HI=n?function(s,o){if(e(s)&&!i(s,"length").writable)throw new t("Cannot set read only .length");return s.length=o}:function(s,o){return s.length=o},HI}var YI,dw;function oO(){if(dw)return YI;dw=1;var r=yr(),e=TypeError;return YI=function(t,i){if(!delete t[i])throw new e("Cannot delete property "+r(i)+" of "+r(t))},YI}var cw;function h_(){if(cw)return lw;cw=1;var r=j(),e=pt(),t=bg(),i=Er(),n=Qt(),s=l_(),o=ef(),g=xg(),a=wg(),A=oO(),C=Ps(),I=C("splice"),l=Math.max,h=Math.min;return r({target:"Array",proto:!0,forced:!I},{splice:function(c,f){var u=e(this),p=n(u),v=t(c,p),m=arguments.length,b,w,x,y,S,k;for(m===0?b=w=0:m===1?(b=0,w=p-v):(b=m-2,w=h(l(i(f),0),p-v)),o(p+b-w),x=g(u,w),y=0;y<w;y++)S=v+y,S in u&&a(x,y,u[S]);if(x.length=w,b<w){for(y=v;y<p-w;y++)S=y+w,k=y+b,S in u?u[k]=u[S]:A(u,k);for(y=p;y>p-w+b;y--)A(u,y-1)}else if(b>w)for(y=p-w;y>v;y--)S=y+w-1,k=y+b-1,S in u?u[k]=u[S]:A(u,k);for(y=0;y<b;y++)u[y+v]=arguments[y+2];return s(u,p-w+b),x}}),lw}var KI,uw;function d_(){if(uw)return KI;uw=1,h_();var r=We();return KI=r("Array","splice"),KI}var UI,fw;function c_(){if(fw)return UI;fw=1;var r=De(),e=d_(),t=Array.prototype;return UI=function(i){var n=i.splice;return i===t||r(t,i)&&n===t.splice?e:n},UI}var XI,pw;function u_(){if(pw)return XI;pw=1;var r=c_();return XI=r,XI}var QI,mw;function f_(){return mw||(mw=1,QI=u_()),QI}var p_=f_(),li=Y(p_),vw={},bw;function m_(){if(bw)return vw;bw=1;var r=j(),e=Qu().includes,t=ie(),i=kg(),n=t(function(){return!Array(1).includes()});return r({target:"Array",proto:!0,forced:n},{includes:function(o){return e(this,o,arguments.length>1?arguments[1]:void 0)}}),i("includes"),vw}var JI,yw;function v_(){if(yw)return JI;yw=1,m_();var r=We();return JI=r("Array","includes"),JI}var ww={},$I,xw;function b_(){if(xw)return $I;xw=1;var r=Xe(),e=mi(),t=Ve(),i=t("match");return $I=function(n){var s;return r(n)&&((s=n[i])!==void 0?!!s:e(n)==="RegExp")},$I}var el,Sw;function y_(){if(Sw)return el;Sw=1;var r=b_(),e=TypeError;return el=function(t){if(r(t))throw new e("The method doesn't accept regular expressions");return t},el}var tl,Ew;function w_(){if(Ew)return tl;Ew=1;var r=Ve(),e=r("match");return tl=function(t){var i=/./;try{"/./"[t](i)}catch{try{return i[e]=!1,"/./"[t](i)}catch{}}return!1},tl}var Tw;function x_(){if(Tw)return ww;Tw=1;var r=j(),e=ne(),t=y_(),i=Li(),n=Mt(),s=w_(),o=e("".indexOf);return r({target:"String",proto:!0,forced:!s("includes")},{includes:function(a){return!!~o(n(i(this)),n(t(a)),arguments.length>1?arguments[1]:void 0)}}),ww}var il,kw;function S_(){if(kw)return il;kw=1,x_();var r=We();return il=r("String","includes"),il}var nl,Ow;function E_(){if(Ow)return nl;Ow=1;var r=De(),e=v_(),t=S_(),i=Array.prototype,n=String.prototype;return nl=function(s){var o=s.includes;return s===i||r(i,s)&&o===i.includes?e:typeof s=="string"||s===n||r(n,s)&&o===n.includes?t:o},nl}var rl,Rw;function T_(){if(Rw)return rl;Rw=1;var r=E_();return rl=r,rl}var sl,Dw;function k_(){return Dw||(Dw=1,sl=T_()),sl}var O_=k_(),Ui=Y(O_),Pw={},Mw;function R_(){if(Mw)return Pw;Mw=1;var r=j(),e=ie(),t=pt(),i=Og(),n=iO(),s=e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getPrototypeOf:function(g){return i(t(g))}}),Pw}var ol,Nw;function D_(){if(Nw)return ol;Nw=1,R_();var r=he();return ol=r.Object.getPrototypeOf,ol}var gl,_w;function P_(){if(_w)return gl;_w=1;var r=D_();return gl=r,gl}var al,Bw;function M_(){return Bw||(Bw=1,al=P_()),al}var N_=M_(),Fw=Y(N_),Al,Lw;function __(){if(Lw)return Al;Lw=1,Hk();var r=We();return Al=r("Array","concat"),Al}var Cl,zw;function B_(){if(zw)return Cl;zw=1;var r=De(),e=__(),t=Array.prototype;return Cl=function(i){var n=i.concat;return i===t||r(t,i)&&n===t.concat?e:n},Cl}var Il,qw;function F_(){if(qw)return Il;qw=1;var r=B_();return Il=r,Il}var ll,Vw;function L_(){return Vw||(Vw=1,ll=F_()),ll}var z_=L_(),gO=Y(z_),Ww={},Gw;function q_(){if(Gw)return Ww;Gw=1;var r=j(),e=rn().filter,t=Ps(),i=t("filter");return r({target:"Array",proto:!0,forced:!i},{filter:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Ww}var hl,Zw;function V_(){if(Zw)return hl;Zw=1,q_();var r=We();return hl=r("Array","filter"),hl}var dl,jw;function W_(){if(jw)return dl;jw=1;var r=De(),e=V_(),t=Array.prototype;return dl=function(i){var n=i.filter;return i===t||r(t,i)&&n===t.filter?e:n},dl}var cl,Hw;function G_(){if(Hw)return cl;Hw=1;var r=W_();return cl=r,cl}var ul,Yw;function Z_(){return Yw||(Yw=1,ul=G_()),ul}var j_=Z_(),ze=Y(j_),Kw={},fl,Uw;function H_(){if(Uw)return fl;Uw=1;var r=Le(),e=ie(),t=ne(),i=Og(),n=Ds(),s=Xt(),o=fg().f,g=t(o),a=t([].push),A=r&&e(function(){var I=Object.create(null);return I[2]=2,!g(I,2)}),C=function(I){return function(l){for(var h=s(l),d=n(h),c=A&&i(h)===null,f=d.length,u=0,p=[],v;f>u;)v=d[u++],(!r||(c?v in h:g(h,v)))&&a(p,I?[v,h[v]]:h[v]);return p}};return fl={entries:C(!0),values:C(!1)},fl}var Xw;function Y_(){if(Xw)return Kw;Xw=1;var r=j(),e=H_().values;return r({target:"Object",stat:!0},{values:function(i){return e(i)}}),Kw}var pl,Qw;function K_(){if(Qw)return pl;Qw=1,Y_();var r=he();return pl=r.Object.values,pl}var ml,Jw;function U_(){if(Jw)return ml;Jw=1;var r=K_();return ml=r,ml}var vl,$w;function X_(){return $w||($w=1,vl=U_()),vl}var Q_=X_(),J_=Y(Q_),e1={},bl,t1;function af(){return t1||(t1=1,bl=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`),bl}var yl,i1;function aO(){if(i1)return yl;i1=1;var r=ne(),e=Li(),t=Mt(),i=af(),n=r("".replace),s=RegExp("^["+i+"]+"),o=RegExp("(^|[^"+i+"])["+i+"]+$"),g=function(a){return function(A){var C=t(e(A));return a&1&&(C=n(C,s,"")),a&2&&(C=n(C,o,"$1")),C}};return yl={start:g(1),end:g(2),trim:g(3)},yl}var wl,n1;function $_(){if(n1)return wl;n1=1;var r=ke(),e=ie(),t=ne(),i=Mt(),n=aO().trim,s=af(),o=r.parseInt,g=r.Symbol,a=g&&g.iterator,A=/^[+-]?0x/i,C=t(A.exec),I=o(s+"08")!==8||o(s+"0x16")!==22||a&&!e(function(){o(Object(a))});return wl=I?function(h,d){var c=n(i(h));return o(c,d>>>0||(C(A,c)?16:10))}:o,wl}var r1;function eB(){if(r1)return e1;r1=1;var r=j(),e=$_();return r({global:!0,forced:parseInt!==e},{parseInt:e}),e1}var xl,s1;function tB(){if(s1)return xl;s1=1,eB();var r=he();return xl=r.parseInt,xl}var Sl,o1;function iB(){if(o1)return Sl;o1=1;var r=tB();return Sl=r,Sl}var El,g1;function nB(){return g1||(g1=1,El=iB()),El}var rB=nB(),Ht=Y(rB),a1={},A1;function sB(){if(A1)return a1;A1=1;var r=j(),e=Yu(),t=Qu().indexOf,i=Or(),n=e([].indexOf),s=!!n&&1/n([1],1,-0)<0,o=s||!i("indexOf");return r({target:"Array",proto:!0,forced:o},{indexOf:function(a){var A=arguments.length>1?arguments[1]:void 0;return s?n(this,a,A)||0:t(this,a,A)}}),a1}var Tl,C1;function oB(){if(C1)return Tl;C1=1,sB();var r=We();return Tl=r("Array","indexOf"),Tl}var kl,I1;function gB(){if(I1)return kl;I1=1;var r=De(),e=oB(),t=Array.prototype;return kl=function(i){var n=i.indexOf;return i===t||r(t,i)&&n===t.indexOf?e:n},kl}var Ol,l1;function aB(){if(l1)return Ol;l1=1;var r=gB();return Ol=r,Ol}var Rl,h1;function AB(){return h1||(h1=1,Rl=aB()),Rl}var CB=AB(),ue=Y(CB),d1={},c1;function IB(){if(c1)return d1;c1=1;var r=j(),e=Le(),t=Ms();return r({target:"Object",stat:!0,sham:!e},{create:t}),d1}var Dl,u1;function lB(){if(u1)return Dl;u1=1,IB();var r=he(),e=r.Object;return Dl=function(i,n){return e.create(i,n)},Dl}var Pl,f1;function hB(){if(f1)return Pl;f1=1;var r=lB();return Pl=r,Pl}var Ml,p1;function dB(){return p1||(p1=1,Ml=hB()),Ml}var cB=dB(),Xi=Y(cB),m1={},Nl,v1;function uB(){if(v1)return Nl;v1=1;var r=Er(),e=Mt(),t=Li(),i=RangeError;return Nl=function(s){var o=e(t(this)),g="",a=r(s);if(a<0||a===1/0)throw new i("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(o+=o))a&1&&(g+=o);return g},Nl}var _l,b1;function fB(){if(b1)return _l;b1=1;var r=ne(),e=zk(),t=Mt(),i=uB(),n=Li(),s=r(i),o=r("".slice),g=Math.ceil,a=function(A){return function(C,I,l){var h=t(n(C)),d=e(I),c=h.length,f=l===void 0?" ":t(l),u,p;return d<=c||f===""?h:(u=d-c,p=s(f,g(u/f.length)),p.length>u&&(p=o(p,0,u)),A?h+p:p+h)}};return _l={start:a(!1),end:a(!0)},_l}var Bl,y1;function pB(){if(y1)return Bl;y1=1;var r=ne(),e=ie(),t=fB().start,i=RangeError,n=isFinite,s=Math.abs,o=Date.prototype,g=o.toISOString,a=r(o.getTime),A=r(o.getUTCDate),C=r(o.getUTCFullYear),I=r(o.getUTCHours),l=r(o.getUTCMilliseconds),h=r(o.getUTCMinutes),d=r(o.getUTCMonth),c=r(o.getUTCSeconds);return Bl=e(function(){return g.call(new Date(-5e13-1))!=="0385-07-25T07:06:39.999Z"})||!e(function(){g.call(new Date(NaN))})?function(){if(!n(a(this)))throw new i("Invalid time value");var u=this,p=C(u),v=l(u),m=p<0?"-":p>9999?"+":"";return m+t(s(p),m?6:4,0)+"-"+t(d(u)+1,2,0)+"-"+t(A(u),2,0)+"T"+t(I(u),2,0)+":"+t(h(u),2,0)+":"+t(c(u),2,0)+"."+t(v,3,0)+"Z"}:g,Bl}var w1;function mB(){if(w1)return m1;w1=1;var r=j(),e=ft(),t=pt(),i=_k(),n=pB(),s=mi(),o=ie(),g=o(function(){return new Date(NaN).toJSON()!==null||e(Date.prototype.toJSON,{toISOString:function(){return 1}})!==1});return r({target:"Date",proto:!0,forced:g},{toJSON:function(A){var C=t(this),I=i(C,"number");return typeof I=="number"&&!isFinite(I)?null:!("toISOString"in C)&&s(C)==="Date"?e(n,C):C.toISOString()}}),m1}var Fl,x1;function vB(){if(x1)return Fl;x1=1,mB(),Xk();var r=he(),e=ug();return r.JSON||(r.JSON={stringify:JSON.stringify}),Fl=function(i,n,s){return e(r.JSON.stringify,null,arguments)},Fl}var Ll,S1;function bB(){if(S1)return Ll;S1=1;var r=vB();return Ll=r,Ll}var zl,E1;function yB(){return E1||(E1=1,zl=bB()),zl}var wB=yB(),Rr=Y(wB),T1={},k1={},ql,O1;function AO(){if(O1)return ql;O1=1;var r=ke(),e=vr(),t=mi(),i=function(n){return e.slice(0,n.length)===n};return ql=function(){return i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":r.Bun&&typeof Bun.version=="string"?"BUN":r.Deno&&typeof Deno.version=="object"?"DENO":t(r.process)==="process"?"NODE":r.window&&r.document?"BROWSER":"REST"}(),ql}var Vl,R1;function xB(){if(R1)return Vl;R1=1;var r=TypeError;return Vl=function(e,t){if(e<t)throw new r("Not enough arguments");return e},Vl}var Wl,D1;function CO(){if(D1)return Wl;D1=1;var r=ke(),e=ug(),t=Ue(),i=AO(),n=vr(),s=Tr(),o=xB(),g=r.Function,a=/MSIE .\./.test(n)||i==="BUN"&&function(){var A=r.Bun.version.split(".");return A.length<3||A[0]==="0"&&(A[1]<3||A[1]==="3"&&A[2]==="0")}();return Wl=function(A,C){var I=C?2:1;return a?function(l,h){var d=o(arguments.length,1)>I,c=t(l)?l:g(l),f=d?s(arguments,I):[],u=d?function(){e(c,this,f)}:c;return C?A(u,h):A(u)}:A},Wl}var P1;function SB(){if(P1)return k1;P1=1;var r=j(),e=ke(),t=CO(),i=t(e.setInterval,!0);return r({global:!0,bind:!0,forced:e.setInterval!==i},{setInterval:i}),k1}var M1={},N1;function EB(){if(N1)return M1;N1=1;var r=j(),e=ke(),t=CO(),i=t(e.setTimeout,!0);return r({global:!0,bind:!0,forced:e.setTimeout!==i},{setTimeout:i}),M1}var _1;function IO(){return _1||(_1=1,SB(),EB()),T1}var Gl,B1;function TB(){if(B1)return Gl;B1=1,IO();var r=he();return Gl=r.setTimeout,Gl}var Zl,F1;function kB(){return F1||(F1=1,Zl=TB()),Zl}var OB=kB(),hi=Y(OB),L1={},jl,z1;function RB(){if(z1)return jl;z1=1;var r=pt(),e=bg(),t=Qt();return jl=function(n){for(var s=r(this),o=t(s),g=arguments.length,a=e(g>1?arguments[1]:void 0,o),A=g>2?arguments[2]:void 0,C=A===void 0?o:e(A,o);C>a;)s[a++]=n;return s},jl}var q1;function DB(){if(q1)return L1;q1=1;var r=j(),e=RB(),t=kg();return r({target:"Array",proto:!0},{fill:e}),t("fill"),L1}var Hl,V1;function PB(){if(V1)return Hl;V1=1,DB();var r=We();return Hl=r("Array","fill"),Hl}var Yl,W1;function MB(){if(W1)return Yl;W1=1;var r=De(),e=PB(),t=Array.prototype;return Yl=function(i){var n=i.fill;return i===t||r(t,i)&&n===t.fill?e:n},Yl}var Kl,G1;function NB(){if(G1)return Kl;G1=1;var r=MB();return Kl=r,Kl}var Ul,Z1;function _B(){return Z1||(Z1=1,Ul=NB()),Ul}var BB=_B(),_s=Y(BB);function Ut(){return Ut=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Ut.apply(this,arguments)}function Nt(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.__proto__=e}function Vo(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}var Fc;typeof Object.assign!="function"?Fc=function(e){if(e==null)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var n=arguments[i];if(n!=null)for(var s in n)n.hasOwnProperty(s)&&(t[s]=n[s])}return t}:Fc=Object.assign;var Tn=Fc,j1=["","webkit","Moz","MS","ms","o"],FB=typeof document>"u"?{style:{}}:document.createElement("div"),LB="function",ar=Math.round,kn=Math.abs,Af=Date.now;function Rg(r,e){for(var t,i,n=e[0].toUpperCase()+e.slice(1),s=0;s<j1.length;){if(t=j1[s],i=t?t+n:e,i in r)return i;s++}}var Mi;typeof window>"u"?Mi={}:Mi=window;var lO=Rg(FB.style,"touchAction"),hO=lO!==void 0;function zB(){if(!hO)return!1;var r={},e=Mi.CSS&&Mi.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){return r[t]=e?Mi.CSS.supports("touch-action",t):!0}),r}var dO="compute",cO="auto",Lc="manipulation",Sn="none",fs="pan-x",ps="pan-y",Wo=zB(),qB=/mobile|tablet|ip(ad|hone|od)|android/i,uO="ontouchstart"in Mi,VB=Rg(Mi,"PointerEvent")!==void 0,WB=uO&&qB.test(navigator.userAgent),Bs="touch",GB="pen",Cf="mouse",ZB="kinect",jB=25,At=1,Nn=2,qe=4,ut=8,Ko=1,Fs=2,Ls=4,zs=8,cr=16,di=Fs|Ls,En=zs|cr,fO=di|En,pO=["x","y"],Uo=["clientX","clientY"];function Ni(r,e,t){var i;if(r)if(r.forEach)r.forEach(e,t);else if(r.length!==void 0)for(i=0;i<r.length;)e.call(t,r[i],i,r),i++;else for(i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function Dg(r,e){return typeof r===LB?r.apply(e&&e[0]||void 0,e):r}function yn(r,e){return r.indexOf(e)>-1}function HB(r){if(yn(r,Sn))return Sn;var e=yn(r,fs),t=yn(r,ps);return e&&t?Sn:e||t?e?fs:ps:yn(r,Lc)?Lc:cO}var mO=function(){function r(t,i){this.manager=t,this.set(i)}var e=r.prototype;return e.set=function(i){i===dO&&(i=this.compute()),hO&&this.manager.element.style&&Wo[i]&&(this.manager.element.style[lO]=i),this.actions=i.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var i=[];return Ni(this.manager.recognizers,function(n){Dg(n.options.enable,[n])&&(i=i.concat(n.getTouchAction()))}),HB(i.join(" "))},e.preventDefaults=function(i){var n=i.srcEvent,s=i.offsetDirection;if(this.manager.session.prevented){n.preventDefault();return}var o=this.actions,g=yn(o,Sn)&&!Wo[Sn],a=yn(o,ps)&&!Wo[ps],A=yn(o,fs)&&!Wo[fs];if(g){var C=i.pointers.length===1,I=i.distance<2,l=i.deltaTime<250;if(C&&I&&l)return}if(!(A&&a)&&(g||a&&s&di||A&&s&En))return this.preventSrc(n)},e.preventSrc=function(i){this.manager.session.prevented=!0,i.preventDefault()},r}();function If(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}function vO(r){var e=r.length;if(e===1)return{x:ar(r[0].clientX),y:ar(r[0].clientY)};for(var t=0,i=0,n=0;n<e;)t+=r[n].clientX,i+=r[n].clientY,n++;return{x:ar(t/e),y:ar(i/e)}}function H1(r){for(var e=[],t=0;t<r.pointers.length;)e[t]={clientX:ar(r.pointers[t].clientX),clientY:ar(r.pointers[t].clientY)},t++;return{timeStamp:Af(),pointers:e,center:vO(e),deltaX:r.deltaX,deltaY:r.deltaY}}function Xo(r,e,t){t||(t=pO);var i=e[t[0]]-r[t[0]],n=e[t[1]]-r[t[1]];return Math.sqrt(i*i+n*n)}function zc(r,e,t){t||(t=pO);var i=e[t[0]]-r[t[0]],n=e[t[1]]-r[t[1]];return Math.atan2(n,i)*180/Math.PI}function bO(r,e){return r===e?Ko:kn(r)>=kn(e)?r<0?Fs:Ls:e<0?zs:cr}function YB(r,e){var t=e.center,i=r.offsetDelta||{},n=r.prevDelta||{},s=r.prevInput||{};(e.eventType===At||s.eventType===qe)&&(n=r.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=r.offsetDelta={x:t.x,y:t.y}),e.deltaX=n.x+(t.x-i.x),e.deltaY=n.y+(t.y-i.y)}function yO(r,e,t){return{x:e/r||0,y:t/r||0}}function KB(r,e){return Xo(e[0],e[1],Uo)/Xo(r[0],r[1],Uo)}function UB(r,e){return zc(e[1],e[0],Uo)+zc(r[1],r[0],Uo)}function XB(r,e){var t=r.lastInterval||e,i=e.timeStamp-t.timeStamp,n,s,o,g;if(e.eventType!==ut&&(i>jB||t.velocity===void 0)){var a=e.deltaX-t.deltaX,A=e.deltaY-t.deltaY,C=yO(i,a,A);s=C.x,o=C.y,n=kn(C.x)>kn(C.y)?C.x:C.y,g=bO(a,A),r.lastInterval=e}else n=t.velocity,s=t.velocityX,o=t.velocityY,g=t.direction;e.velocity=n,e.velocityX=s,e.velocityY=o,e.direction=g}function QB(r,e){var t=r.session,i=e.pointers,n=i.length;t.firstInput||(t.firstInput=H1(e)),n>1&&!t.firstMultiple?t.firstMultiple=H1(e):n===1&&(t.firstMultiple=!1);var s=t.firstInput,o=t.firstMultiple,g=o?o.center:s.center,a=e.center=vO(i);e.timeStamp=Af(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=zc(g,a),e.distance=Xo(g,a),YB(t,e),e.offsetDirection=bO(e.deltaX,e.deltaY);var A=yO(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=A.x,e.overallVelocityY=A.y,e.overallVelocity=kn(A.x)>kn(A.y)?A.x:A.y,e.scale=o?KB(o.pointers,i):1,e.rotation=o?UB(o.pointers,i):0,e.maxPointers=t.prevInput?e.pointers.length>t.prevInput.maxPointers?e.pointers.length:t.prevInput.maxPointers:e.pointers.length,XB(t,e);var C=r.element,I=e.srcEvent,l;I.composedPath?l=I.composedPath()[0]:I.path?l=I.path[0]:l=I.target,If(l,C)&&(C=l),e.target=C}function JB(r,e,t){var i=t.pointers.length,n=t.changedPointers.length,s=e&At&&i-n===0,o=e&(qe|ut)&&i-n===0;t.isFirst=!!s,t.isFinal=!!o,s&&(r.session={}),t.eventType=e,QB(r,t),r.emit("hammer.input",t),r.recognize(t),r.session.prevInput=t}function ms(r){return r.trim().split(/\s+/g)}function ls(r,e,t){Ni(ms(e),function(i){r.addEventListener(i,t,!1)})}function hs(r,e,t){Ni(ms(e),function(i){r.removeEventListener(i,t,!1)})}function Y1(r){var e=r.ownerDocument||r;return e.defaultView||e.parentWindow||window}var Dr=function(){function r(t,i){var n=this;this.manager=t,this.callback=i,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(s){Dg(t.options.enable,[t])&&n.handler(s)},this.init()}var e=r.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ls(this.element,this.evEl,this.domHandler),this.evTarget&&ls(this.target,this.evTarget,this.domHandler),this.evWin&&ls(Y1(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&hs(this.element,this.evEl,this.domHandler),this.evTarget&&hs(this.target,this.evTarget,this.domHandler),this.evWin&&hs(Y1(this.element),this.evWin,this.domHandler)},r}();function On(r,e,t){if(r.indexOf&&!t)return r.indexOf(e);for(var i=0;i<r.length;){if(t&&r[i][t]==e||!t&&r[i]===e)return i;i++}return-1}var $B={pointerdown:At,pointermove:Nn,pointerup:qe,pointercancel:ut,pointerout:ut},eF={2:Bs,3:GB,4:Cf,5:ZB},wO="pointerdown",xO="pointermove pointerup pointercancel";Mi.MSPointerEvent&&!Mi.PointerEvent&&(wO="MSPointerDown",xO="MSPointerMove MSPointerUp MSPointerCancel");var SO=function(r){Nt(e,r);function e(){var i,n=e.prototype;return n.evEl=wO,n.evWin=xO,i=r.apply(this,arguments)||this,i.store=i.manager.session.pointerEvents=[],i}var t=e.prototype;return t.handler=function(n){var s=this.store,o=!1,g=n.type.toLowerCase().replace("ms",""),a=$B[g],A=eF[n.pointerType]||n.pointerType,C=A===Bs,I=On(s,n.pointerId,"pointerId");a&At&&(n.button===0||C)?I<0&&(s.push(n),I=s.length-1):a&(qe|ut)&&(o=!0),!(I<0)&&(s[I]=n,this.callback(this.manager,a,{pointers:s,changedPointers:[n],pointerType:A,srcEvent:n}),o&&s.splice(I,1))},e}(Dr);function vs(r){return Array.prototype.slice.call(r,0)}function lf(r,e,t){for(var i=[],n=[],s=0;s<r.length;){var o=e?r[s][e]:r[s];On(n,o)<0&&i.push(r[s]),n[s]=o,s++}return t&&(e?i=i.sort(function(g,a){return g[e]>a[e]}):i=i.sort()),i}var tF={touchstart:At,touchmove:Nn,touchend:qe,touchcancel:ut},iF="touchstart touchmove touchend touchcancel",hf=function(r){Nt(e,r);function e(){var i;return e.prototype.evTarget=iF,i=r.apply(this,arguments)||this,i.targetIds={},i}var t=e.prototype;return t.handler=function(n){var s=tF[n.type],o=nF.call(this,n,s);o&&this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Bs,srcEvent:n})},e}(Dr);function nF(r,e){var t=vs(r.touches),i=this.targetIds;if(e&(At|Nn)&&t.length===1)return i[t[0].identifier]=!0,[t,t];var n,s,o=vs(r.changedTouches),g=[],a=this.target;if(s=t.filter(function(A){return If(A.target,a)}),e===At)for(n=0;n<s.length;)i[s[n].identifier]=!0,n++;for(n=0;n<o.length;)i[o[n].identifier]&&g.push(o[n]),e&(qe|ut)&&delete i[o[n].identifier],n++;if(g.length)return[lf(s.concat(g),"identifier",!0),g]}var rF={mousedown:At,mousemove:Nn,mouseup:qe},sF="mousedown",oF="mousemove mouseup",df=function(r){Nt(e,r);function e(){var i,n=e.prototype;return n.evEl=sF,n.evWin=oF,i=r.apply(this,arguments)||this,i.pressed=!1,i}var t=e.prototype;return t.handler=function(n){var s=rF[n.type];s&At&&n.button===0&&(this.pressed=!0),s&Nn&&n.which!==1&&(s=qe),this.pressed&&(s&qe&&(this.pressed=!1),this.callback(this.manager,s,{pointers:[n],changedPointers:[n],pointerType:Cf,srcEvent:n}))},e}(Dr),gF=2500,K1=25;function U1(r){var e=r.changedPointers,t=e[0];if(t.identifier===this.primaryTouch){var i={x:t.clientX,y:t.clientY},n=this.lastTouches;this.lastTouches.push(i);var s=function(){var g=n.indexOf(i);g>-1&&n.splice(g,1)};setTimeout(s,gF)}}function aF(r,e){r&At?(this.primaryTouch=e.changedPointers[0].identifier,U1.call(this,e)):r&(qe|ut)&&U1.call(this,e)}function AF(r){for(var e=r.srcEvent.clientX,t=r.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var n=this.lastTouches[i],s=Math.abs(e-n.x),o=Math.abs(t-n.y);if(s<=K1&&o<=K1)return!0}return!1}var EO=function(){var r=function(e){Nt(t,e);function t(n,s){var o;return o=e.call(this,n,s)||this,o.handler=function(g,a,A){var C=A.pointerType===Bs,I=A.pointerType===Cf;if(!(I&&A.sourceCapabilities&&A.sourceCapabilities.firesTouchEvents)){if(C)aF.call(Vo(Vo(o)),a,A);else if(I&&AF.call(Vo(Vo(o)),A))return;o.callback(g,a,A)}},o.touch=new hf(o.manager,o.handler),o.mouse=new df(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}var i=t.prototype;return i.destroy=function(){this.touch.destroy(),this.mouse.destroy()},t}(Dr);return r}();function CF(r){var e,t=r.options.inputClass;return t?e=t:VB?e=SO:WB?e=hf:uO?e=EO:e=df,new e(r,JB)}function Ar(r,e,t){return Array.isArray(r)?(Ni(r,t[e],t),!0):!1}var jo=1,Dt=2,ur=4,Qi=8,_i=Qi,bs=16,Ci=32,IF=1;function lF(){return IF++}function Go(r,e){var t=e.manager;return t?t.get(r):r}function X1(r){return r&bs?"cancel":r&Qi?"end":r&ur?"move":r&Dt?"start":""}var qs=function(){function r(t){t===void 0&&(t={}),this.options=Ut({enable:!0},t),this.id=lF(),this.manager=null,this.state=jo,this.simultaneous={},this.requireFail=[]}var e=r.prototype;return e.set=function(i){return Tn(this.options,i),this.manager&&this.manager.touchAction.update(),this},e.recognizeWith=function(i){if(Ar(i,"recognizeWith",this))return this;var n=this.simultaneous;return i=Go(i,this),n[i.id]||(n[i.id]=i,i.recognizeWith(this)),this},e.dropRecognizeWith=function(i){return Ar(i,"dropRecognizeWith",this)?this:(i=Go(i,this),delete this.simultaneous[i.id],this)},e.requireFailure=function(i){if(Ar(i,"requireFailure",this))return this;var n=this.requireFail;return i=Go(i,this),On(n,i)===-1&&(n.push(i),i.requireFailure(this)),this},e.dropRequireFailure=function(i){if(Ar(i,"dropRequireFailure",this))return this;i=Go(i,this);var n=On(this.requireFail,i);return n>-1&&this.requireFail.splice(n,1),this},e.hasRequireFailures=function(){return this.requireFail.length>0},e.canRecognizeWith=function(i){return!!this.simultaneous[i.id]},e.emit=function(i){var n=this,s=this.state;function o(g){n.manager.emit(g,i)}s<Qi&&o(n.options.event+X1(s)),o(n.options.event),i.additionalEvent&&o(i.additionalEvent),s>=Qi&&o(n.options.event+X1(s))},e.tryEmit=function(i){if(this.canEmit())return this.emit(i);this.state=Ci},e.canEmit=function(){for(var i=0;i<this.requireFail.length;){if(!(this.requireFail[i].state&(Ci|jo)))return!1;i++}return!0},e.recognize=function(i){var n=Tn({},i);if(!Dg(this.options.enable,[this,n])){this.reset(),this.state=Ci;return}this.state&(_i|bs|Ci)&&(this.state=jo),this.state=this.process(n),this.state&(Dt|ur|Qi|bs)&&this.tryEmit(n)},e.process=function(i){},e.getTouchAction=function(){},e.reset=function(){},r}(),qc=function(r){Nt(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Ut({event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},i))||this,n.pTime=!1,n.pCenter=!1,n._timer=null,n._input=null,n.count=0,n}var t=e.prototype;return t.getTouchAction=function(){return[Lc]},t.process=function(n){var s=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,A=n.deltaTime<o.time;if(this.reset(),n.eventType&At&&this.count===0)return this.failTimeout();if(a&&A&&g){if(n.eventType!==qe)return this.failTimeout();var C=this.pTime?n.timeStamp-this.pTime<o.interval:!0,I=!this.pCenter||Xo(this.pCenter,n.center)<o.posThreshold;this.pTime=n.timeStamp,this.pCenter=n.center,!I||!C?this.count=1:this.count+=1,this._input=n;var l=this.count%o.taps;if(l===0)return this.hasRequireFailures()?(this._timer=setTimeout(function(){s.state=_i,s.tryEmit()},o.interval),Dt):_i}return Ci},t.failTimeout=function(){var n=this;return this._timer=setTimeout(function(){n.state=Ci},this.options.interval),Ci},t.reset=function(){clearTimeout(this._timer)},t.emit=function(){this.state===_i&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},e}(qs),fr=function(r){Nt(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Ut({pointers:1},i))||this}var t=e.prototype;return t.attrTest=function(n){var s=this.options.pointers;return s===0||n.pointers.length===s},t.process=function(n){var s=this.state,o=n.eventType,g=s&(Dt|ur),a=this.attrTest(n);return g&&(o&ut||!a)?s|bs:g||a?o&qe?s|Qi:s&Dt?s|ur:Dt:Ci},e}(qs);function TO(r){return r===cr?"down":r===zs?"up":r===Fs?"left":r===Ls?"right":""}var cf=function(r){Nt(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Ut({event:"pan",threshold:10,pointers:1,direction:fO},i))||this,n.pX=null,n.pY=null,n}var t=e.prototype;return t.getTouchAction=function(){var n=this.options.direction,s=[];return n&di&&s.push(ps),n&En&&s.push(fs),s},t.directionTest=function(n){var s=this.options,o=!0,g=n.distance,a=n.direction,A=n.deltaX,C=n.deltaY;return a&s.direction||(s.direction&di?(a=A===0?Ko:A<0?Fs:Ls,o=A!==this.pX,g=Math.abs(n.deltaX)):(a=C===0?Ko:C<0?zs:cr,o=C!==this.pY,g=Math.abs(n.deltaY))),n.direction=a,o&&g>s.threshold&&a&s.direction},t.attrTest=function(n){return fr.prototype.attrTest.call(this,n)&&(this.state&Dt||!(this.state&Dt)&&this.directionTest(n))},t.emit=function(n){this.pX=n.deltaX,this.pY=n.deltaY;var s=TO(n.direction);s&&(n.additionalEvent=this.options.event+s),r.prototype.emit.call(this,n)},e}(fr),kO=function(r){Nt(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Ut({event:"swipe",threshold:10,velocity:.3,direction:di|En,pointers:1},i))||this}var t=e.prototype;return t.getTouchAction=function(){return cf.prototype.getTouchAction.call(this)},t.attrTest=function(n){var s=this.options.direction,o;return s&(di|En)?o=n.overallVelocity:s&di?o=n.overallVelocityX:s&En&&(o=n.overallVelocityY),r.prototype.attrTest.call(this,n)&&s&n.offsetDirection&&n.distance>this.options.threshold&&n.maxPointers===this.options.pointers&&kn(o)>this.options.velocity&&n.eventType&qe},t.emit=function(n){var s=TO(n.offsetDirection);s&&this.manager.emit(this.options.event+s,n),this.manager.emit(this.options.event,n)},e}(fr),OO=function(r){Nt(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Ut({event:"pinch",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[Sn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.scale-1)>this.options.threshold||this.state&Dt)},t.emit=function(n){if(n.scale!==1){var s=n.scale<1?"in":"out";n.additionalEvent=this.options.event+s}r.prototype.emit.call(this,n)},e}(fr),RO=function(r){Nt(e,r);function e(i){return i===void 0&&(i={}),r.call(this,Ut({event:"rotate",threshold:0,pointers:2},i))||this}var t=e.prototype;return t.getTouchAction=function(){return[Sn]},t.attrTest=function(n){return r.prototype.attrTest.call(this,n)&&(Math.abs(n.rotation)>this.options.threshold||this.state&Dt)},e}(fr),DO=function(r){Nt(e,r);function e(i){var n;return i===void 0&&(i={}),n=r.call(this,Ut({event:"press",pointers:1,time:251,threshold:9},i))||this,n._timer=null,n._input=null,n}var t=e.prototype;return t.getTouchAction=function(){return[cO]},t.process=function(n){var s=this,o=this.options,g=n.pointers.length===o.pointers,a=n.distance<o.threshold,A=n.deltaTime>o.time;if(this._input=n,!a||!g||n.eventType&(qe|ut)&&!A)this.reset();else if(n.eventType&At)this.reset(),this._timer=setTimeout(function(){s.state=_i,s.tryEmit()},o.time);else if(n.eventType&qe)return _i;return Ci},t.reset=function(){clearTimeout(this._timer)},t.emit=function(n){this.state===_i&&(n&&n.eventType&qe?this.manager.emit(this.options.event+"up",n):(this._input.timeStamp=Af(),this.manager.emit(this.options.event,this._input)))},e}(qs),PO={domEvents:!1,touchAction:dO,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Q1=[[RO,{enable:!1}],[OO,{enable:!1},["rotate"]],[kO,{direction:di}],[cf,{direction:di},["swipe"]],[qc],[qc,{event:"doubletap",taps:2},["tap"]],[DO]],hF=1,J1=2;function $1(r,e){var t=r.element;if(t.style){var i;Ni(r.options.cssProps,function(n,s){i=Rg(t.style,s),e?(r.oldCssProps[i]=t.style[i],t.style[i]=n):t.style[i]=r.oldCssProps[i]||""}),e||(r.oldCssProps={})}}function dF(r,e){var t=document.createEvent("Event");t.initEvent(r,!0,!0),t.gesture=e,e.target.dispatchEvent(t)}var ex=function(){function r(t,i){var n=this;this.options=Tn({},PO,i||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=CF(this),this.touchAction=new mO(this,this.options.touchAction),$1(this,!0),Ni(this.options.recognizers,function(s){var o=n.add(new s[0](s[1]));s[2]&&o.recognizeWith(s[2]),s[3]&&o.requireFailure(s[3])},this)}var e=r.prototype;return e.set=function(i){return Tn(this.options,i),i.touchAction&&this.touchAction.update(),i.inputTarget&&(this.input.destroy(),this.input.target=i.inputTarget,this.input.init()),this},e.stop=function(i){this.session.stopped=i?J1:hF},e.recognize=function(i){var n=this.session;if(!n.stopped){this.touchAction.preventDefaults(i);var s,o=this.recognizers,g=n.curRecognizer;(!g||g&&g.state&_i)&&(n.curRecognizer=null,g=null);for(var a=0;a<o.length;)s=o[a],n.stopped!==J1&&(!g||s===g||s.canRecognizeWith(g))?s.recognize(i):s.reset(),!g&&s.state&(Dt|ur|Qi)&&(n.curRecognizer=s,g=s),a++}},e.get=function(i){if(i instanceof qs)return i;for(var n=this.recognizers,s=0;s<n.length;s++)if(n[s].options.event===i)return n[s];return null},e.add=function(i){if(Ar(i,"add",this))return this;var n=this.get(i.options.event);return n&&this.remove(n),this.recognizers.push(i),i.manager=this,this.touchAction.update(),i},e.remove=function(i){if(Ar(i,"remove",this))return this;var n=this.get(i);if(i){var s=this.recognizers,o=On(s,n);o!==-1&&(s.splice(o,1),this.touchAction.update())}return this},e.on=function(i,n){if(i===void 0||n===void 0)return this;var s=this.handlers;return Ni(ms(i),function(o){s[o]=s[o]||[],s[o].push(n)}),this},e.off=function(i,n){if(i===void 0)return this;var s=this.handlers;return Ni(ms(i),function(o){n?s[o]&&s[o].splice(On(s[o],n),1):delete s[o]}),this},e.emit=function(i,n){this.options.domEvents&&dF(i,n);var s=this.handlers[i]&&this.handlers[i].slice();if(!(!s||!s.length)){n.type=i,n.preventDefault=function(){n.srcEvent.preventDefault()};for(var o=0;o<s.length;)s[o](n),o++}},e.destroy=function(){this.element&&$1(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},r}(),cF={touchstart:At,touchmove:Nn,touchend:qe,touchcancel:ut},uF="touchstart",fF="touchstart touchmove touchend touchcancel",pF=function(r){Nt(e,r);function e(){var i,n=e.prototype;return n.evTarget=uF,n.evWin=fF,i=r.apply(this,arguments)||this,i.started=!1,i}var t=e.prototype;return t.handler=function(n){var s=cF[n.type];if(s===At&&(this.started=!0),!!this.started){var o=mF.call(this,n,s);s&(qe|ut)&&o[0].length-o[1].length===0&&(this.started=!1),this.callback(this.manager,s,{pointers:o[0],changedPointers:o[1],pointerType:Bs,srcEvent:n})}},e}(Dr);function mF(r,e){var t=vs(r.touches),i=vs(r.changedTouches);return e&(qe|ut)&&(t=lf(t.concat(i),"identifier",!0)),[t,i]}function MO(r,e,t){var i="DEPRECATED METHOD: "+e+`
`+t+` AT
`;return function(){var n=new Error("get-stack-trace"),s=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,s),r.apply(this,arguments)}}var NO=MO(function(r,e,t){for(var i=Object.keys(e),n=0;n<i.length;)(!t||t&&r[i[n]]===void 0)&&(r[i[n]]=e[i[n]]),n++;return r},"extend","Use `assign`."),vF=MO(function(r,e){return NO(r,e,!0)},"merge","Use `assign`.");function bF(r,e,t){var i=e.prototype,n;n=r.prototype=Object.create(i),n.constructor=r,n._super=i,t&&Tn(n,t)}function tx(r,e){return function(){return r.apply(e,arguments)}}var _O=function(){var r=function(t,i){return i===void 0&&(i={}),new ex(t,Ut({recognizers:Q1.concat()},i))};return r.VERSION="2.0.17-rc",r.DIRECTION_ALL=fO,r.DIRECTION_DOWN=cr,r.DIRECTION_LEFT=Fs,r.DIRECTION_RIGHT=Ls,r.DIRECTION_UP=zs,r.DIRECTION_HORIZONTAL=di,r.DIRECTION_VERTICAL=En,r.DIRECTION_NONE=Ko,r.DIRECTION_DOWN=cr,r.INPUT_START=At,r.INPUT_MOVE=Nn,r.INPUT_END=qe,r.INPUT_CANCEL=ut,r.STATE_POSSIBLE=jo,r.STATE_BEGAN=Dt,r.STATE_CHANGED=ur,r.STATE_ENDED=Qi,r.STATE_RECOGNIZED=_i,r.STATE_CANCELLED=bs,r.STATE_FAILED=Ci,r.Manager=ex,r.Input=Dr,r.TouchAction=mO,r.TouchInput=hf,r.MouseInput=df,r.PointerEventInput=SO,r.TouchMouseInput=EO,r.SingleTouchInput=pF,r.Recognizer=qs,r.AttrRecognizer=fr,r.Tap=qc,r.Pan=cf,r.Swipe=kO,r.Pinch=OO,r.Rotate=RO,r.Press=DO,r.on=ls,r.off=hs,r.each=Ni,r.merge=vF,r.extend=NO,r.bindFn=tx,r.assign=Tn,r.inherit=bF,r.bindFn=tx,r.prefixed=Rg,r.toArray=vs,r.inArray=On,r.uniqueArray=lf,r.splitStr=ms,r.boolOrFn=Dg,r.hasParent=If,r.addEventListeners=ls,r.removeEventListeners=hs,r.defaults=Tn({},PO,{preset:Q1}),r}();_O.defaults;var BO=mN("DELETE");function yF(r){for(var e=arguments.length,t=new Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];return FO({},r,...t)}function FO(){let r=Qo(...arguments);return zO(r),r}function Qo(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];if(e.length<2)return e[0];if(e.length>2)return Qo(FO(e[0],e[1]),...Yt(e).call(e,2));let i=e[0],n=e[1];if(i instanceof Date&&n instanceof Date)return i.setTime(n.getTime()),i;for(let s of DN(n))Object.prototype.propertyIsEnumerable.call(n,s)&&(n[s]===BO?delete i[s]:i[s]!==null&&n[s]!==null&&typeof i[s]=="object"&&typeof n[s]=="object"&&!Ie(i[s])&&!Ie(n[s])?i[s]=Qo(i[s],n[s]):i[s]=LO(n[s]));return i}function LO(r){return Ie(r)?et(r).call(r,e=>LO(e)):typeof r=="object"&&r!==null?r instanceof Date?new Date(r.getTime()):Qo({},r):r}function zO(r){for(let e of Se(r))r[e]===BO?delete r[e]:typeof r[e]=="object"&&r[e]!==null&&zO(r[e])}function Pg(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return wF(e.length?e:[Yo()])}function wF(r){let[e,t,i]=xF(r),n=1,s=()=>{let o=2091639*e+n*23283064365386963e-26;return e=t,t=i,i=o-(n=o|0)};return s.uint32=()=>s()*4294967296,s.fract53=()=>s()+(s()*2097152|0)*11102230246251565e-32,s.algorithm="Alea",s.seed=r,s.version="0.9",s}function xF(){let r=SF(),e=r(" "),t=r(" "),i=r(" ");for(let n=0;n<arguments.length;n++)e-=r(n<0||arguments.length<=n?void 0:arguments[n]),e<0&&(e+=1),t-=r(n<0||arguments.length<=n?void 0:arguments[n]),t<0&&(t+=1),i-=r(n<0||arguments.length<=n?void 0:arguments[n]),i<0&&(i+=1);return[e,t,i]}function SF(){let r=4022871197;return function(e){let t=e.toString();for(let i=0;i<t.length;i++){r+=t.charCodeAt(i);let n=.02519603282416938*r;r=n>>>0,n-=r,n*=r,r=n>>>0,n-=r,r+=n*4294967296}return(r>>>0)*23283064365386963e-26}}function EF(){let r=()=>{};return{on:r,off:r,destroy:r,emit:r,get(){return{set:r}}}}var uf=typeof window<"u"?window.Hammer||_O:function(){return EF()};function Ii(r){var e;this._cleanupQueue=[],this.active=!1,this._dom={container:r,overlay:document.createElement("div")},this._dom.overlay.classList.add("vis-overlay"),this._dom.container.appendChild(this._dom.overlay),this._cleanupQueue.push(()=>{this._dom.overlay.parentNode.removeChild(this._dom.overlay)});let t=uf(this._dom.overlay);t.on("tap",P(e=this._onTapOverlay).call(e,this)),this._cleanupQueue.push(()=>{t.destroy()});let i=["tap","doubletap","press","pinch","pan","panstart","panmove","panend"];Ae(i).call(i,n=>{t.on(n,s=>{s.srcEvent.stopPropagation()})}),document&&document.body&&(this._onClick=n=>{TF(n.target,r)||this.deactivate()},document.body.addEventListener("click",this._onClick),this._cleanupQueue.push(()=>{document.body.removeEventListener("click",this._onClick)})),this._escListener=n=>{("key"in n?n.key==="Escape":n.keyCode===27)&&this.deactivate()}}Zk(Ii.prototype);Ii.current=null;Ii.prototype.destroy=function(){this.deactivate();for(let t of xn(r=li(e=this._cleanupQueue).call(e,0)).call(r)){var r,e;t()}};Ii.prototype.activate=function(){Ii.current&&Ii.current.deactivate(),Ii.current=this,this.active=!0,this._dom.overlay.style.display="none",this._dom.container.classList.add("vis-active"),this.emit("change"),this.emit("activate"),document.body.addEventListener("keydown",this._escListener)};Ii.prototype.deactivate=function(){this.active=!1,this._dom.overlay.style.display="block",this._dom.container.classList.remove("vis-active"),document.body.removeEventListener("keydown",this._escListener),this.emit("change"),this.emit("deactivate")};Ii.prototype._onTapOverlay=function(r){this.activate(),r.srcEvent.stopPropagation()};function TF(r,e){for(;r;){if(r===e)return!0;r=r.parentNode}return!1}var kF=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,OF=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,RF=/^rgb\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *\)$/i,DF=/^rgba\( *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *(1?\d{1,2}|2[0-4]\d|25[0-5]) *, *([01]|0?\.\d+) *\)$/i;function Hi(r){if(r)for(;r.hasChildNodes()===!0;){let e=r.firstChild;e&&(Hi(e),r.removeChild(e))}}function Ir(r){return r instanceof String||typeof r=="string"}function ix(r){return typeof r=="object"&&r!==null}function Rn(r,e,t,i){let n=!1;i===!0&&(n=e[t]===null&&r[t]!==void 0),n?delete r[t]:r[t]=e[t]}function qO(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;for(let i in r)if(e[i]!==void 0)if(e[i]===null||typeof e[i]!="object")Rn(r,e,i,t);else{let n=r[i],s=e[i];ix(n)&&ix(s)&&qO(n,s,t)}}function Pr(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie(t))throw new TypeError("Arrays are not supported by deepExtend");for(let n=0;n<r.length;n++){let s=r[n];if(Object.prototype.hasOwnProperty.call(t,s))if(t[s]&&t[s].constructor===Object)e[s]===void 0&&(e[s]={}),e[s].constructor===Object?me(e[s],t[s],!1,i):Rn(e,t,s,i);else{if(Ie(t[s]))throw new TypeError("Arrays are not supported by deepExtend");Rn(e,t,s,i)}}return e}function Jo(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie(t))throw new TypeError("Arrays are not supported by deepExtend");for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)&&!Ui(r).call(r,n))if(t[n]&&t[n].constructor===Object)e[n]===void 0&&(e[n]={}),e[n].constructor===Object?me(e[n],t[n]):Rn(e,t,n,i);else if(Ie(t[n])){e[n]=[];for(let s=0;s<t[n].length;s++)e[n].push(t[n][s])}else Rn(e,t,n,i);return e}function me(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)||t===!0)if(typeof e[s]=="object"&&e[s]!==null&&Fw(e[s])===Object.prototype)r[s]===void 0?r[s]=me({},e[s],t):typeof r[s]=="object"&&r[s]!==null&&Fw(r[s])===Object.prototype?me(r[s],e[s],t):Rn(r,e,s,i);else if(Ie(e[s])){var n;r[s]=Yt(n=e[s]).call(n)}else Rn(r,e,s,i);return r}function $o(r,e){return[...r,e]}function PF(r){return Yt(r).call(r)}function MF(r){return r.getBoundingClientRect().left}function NF(r){return r.getBoundingClientRect().top}function $(r,e){if(Ie(r)){let t=r.length;for(let i=0;i<t;i++)e(r[i],i,r)}else for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&e(r[t],t,r)}function ff(r){let e;switch(r.length){case 3:case 4:return e=OF.exec(r),e?{r:Ht(e[1]+e[1],16),g:Ht(e[2]+e[2],16),b:Ht(e[3]+e[3],16)}:null;case 6:case 7:return e=kF.exec(r),e?{r:Ht(e[1],16),g:Ht(e[2],16),b:Ht(e[3],16)}:null;default:return null}}function Rt(r,e){if(Ui(r).call(r,"rgba"))return r;if(Ui(r).call(r,"rgb")){let t=r.substr(ue(r).call(r,"(")+1).replace(")","").split(",");return"rgba("+t[0]+","+t[1]+","+t[2]+","+e+")"}else{let t=ff(r);return t==null?r:"rgba("+t.r+","+t.g+","+t.b+","+e+")"}}function VO(r,e,t){var i;return"#"+Yt(i=((1<<24)+(r<<16)+(e<<8)+t).toString(16)).call(i,1)}function Vc(r,e){if(Ir(r)){let i=r;if(GO(i)){var t;let n=et(t=i.substr(4).substr(0,i.length-5).split(",")).call(t,function(s){return Ht(s)});i=VO(n[0],n[1],n[2])}if(WO(i)===!0){let n=_F(i),s={h:n.h,s:n.s*.8,v:Math.min(1,n.v*1.02)},o={h:n.h,s:Math.min(1,n.s*1.25),v:n.v*.8},g=Wc(o.h,o.s,o.v),a=Wc(s.h,s.s,s.v);return{background:i,border:g,highlight:{background:a,border:g},hover:{background:a,border:g}}}else return{background:i,border:i,highlight:{background:i,border:i},hover:{background:i,border:i}}}else return{background:r.background||void 0,border:r.border||void 0,highlight:Ir(r.highlight)?{border:r.highlight,background:r.highlight}:{background:r.highlight&&r.highlight.background||void 0,border:r.highlight&&r.highlight.border||void 0},hover:Ir(r.hover)?{border:r.hover,background:r.hover}:{border:r.hover&&r.hover.border||void 0,background:r.hover&&r.hover.background||void 0}}}function Cs(r,e,t){r=r/255,e=e/255,t=t/255;let i=Math.min(r,Math.min(e,t)),n=Math.max(r,Math.max(e,t));if(i===n)return{h:0,s:0,v:i};let s=r===i?e-t:t===i?r-e:t-r,g=60*((r===i?3:t===i?1:5)-s/(n-i))/360,a=(n-i)/n;return{h:g,s:a,v:n}}function Ho(r,e,t){let i,n,s,o=Math.floor(r*6),g=r*6-o,a=t*(1-e),A=t*(1-g*e),C=t*(1-(1-g)*e);switch(o%6){case 0:i=t,n=C,s=a;break;case 1:i=A,n=t,s=a;break;case 2:i=a,n=t,s=C;break;case 3:i=a,n=A,s=t;break;case 4:i=C,n=a,s=t;break;case 5:i=t,n=a,s=A;break}return{r:Math.floor(i*255),g:Math.floor(n*255),b:Math.floor(s*255)}}function Wc(r,e,t){let i=Ho(r,e,t);return VO(i.r,i.g,i.b)}function _F(r){let e=ff(r);if(!e)throw new TypeError("'".concat(r,"' is not a valid color."));return Cs(e.r,e.g,e.b)}function WO(r){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(r)}function GO(r){return RF.test(r)}function BF(r){return DF.test(r)}function Ji(r){if(r===null||typeof r!="object")return null;if(r instanceof Element)return r;let e=Xi(r);for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&typeof r[t]=="object"&&(e[t]=Ji(r[t]));return e}function Ot(r,e,t){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},n=function(h){return h!=null},s=function(h){return h!==null&&typeof h=="object"},o=function(h){for(let d in h)if(Object.prototype.hasOwnProperty.call(h,d))return!1;return!0};if(!s(r))throw new Error("Parameter mergeTarget must be an object");if(!s(e))throw new Error("Parameter options must be an object");if(!n(t))throw new Error("Parameter option must have a value");if(!s(i))throw new Error("Parameter globalOptions must be an object");let g=function(h,d,c){s(h[c])||(h[c]={});let f=d[c],u=h[c];for(let p in f)Object.prototype.hasOwnProperty.call(f,p)&&(u[p]=f[p])},a=e[t],C=s(i)&&!o(i)?i[t]:void 0,I=C?C.enabled:void 0;if(a===void 0)return;if(typeof a=="boolean"){s(r[t])||(r[t]={}),r[t].enabled=a;return}if(a===null&&!s(r[t]))if(n(C))r[t]=Xi(C);else return;if(!s(a))return;let l=!0;a.enabled!==void 0?l=a.enabled:I!==void 0&&(l=C.enabled),g(r,e,t),r[t].enabled=l}var FF={linear(r){return r},easeInQuad(r){return r*r},easeOutQuad(r){return r*(2-r)},easeInOutQuad(r){return r<.5?2*r*r:-1+(4-2*r)*r},easeInCubic(r){return r*r*r},easeOutCubic(r){return--r*r*r+1},easeInOutCubic(r){return r<.5?4*r*r*r:(r-1)*(2*r-2)*(2*r-2)+1},easeInQuart(r){return r*r*r*r},easeOutQuart(r){return 1- --r*r*r*r},easeInOutQuart(r){return r<.5?8*r*r*r*r:1-8*--r*r*r*r},easeInQuint(r){return r*r*r*r*r},easeOutQuint(r){return 1+--r*r*r*r*r},easeInOutQuint(r){return r<.5?16*r*r*r*r*r:1+16*--r*r*r*r*r}};function Yi(r,e){let t;Ie(e)||(e=[e]);for(let i of r)if(i){t=i[e[0]];for(let n=1;n<e.length;n++)t&&(t=t[e[n]]);if(typeof t<"u")break}return t}var LF={black:"#000000",navy:"#000080",darkblue:"#00008B",mediumblue:"#0000CD",blue:"#0000FF",darkgreen:"#006400",green:"#008000",teal:"#008080",darkcyan:"#008B8B",deepskyblue:"#00BFFF",darkturquoise:"#00CED1",mediumspringgreen:"#00FA9A",lime:"#00FF00",springgreen:"#00FF7F",aqua:"#00FFFF",cyan:"#00FFFF",midnightblue:"#191970",dodgerblue:"#1E90FF",lightseagreen:"#20B2AA",forestgreen:"#228B22",seagreen:"#2E8B57",darkslategray:"#2F4F4F",limegreen:"#32CD32",mediumseagreen:"#3CB371",turquoise:"#40E0D0",royalblue:"#4169E1",steelblue:"#4682B4",darkslateblue:"#483D8B",mediumturquoise:"#48D1CC",indigo:"#4B0082",darkolivegreen:"#556B2F",cadetblue:"#5F9EA0",cornflowerblue:"#6495ED",mediumaquamarine:"#66CDAA",dimgray:"#696969",slateblue:"#6A5ACD",olivedrab:"#6B8E23",slategray:"#708090",lightslategray:"#778899",mediumslateblue:"#7B68EE",lawngreen:"#7CFC00",chartreuse:"#7FFF00",aquamarine:"#7FFFD4",maroon:"#800000",purple:"#800080",olive:"#808000",gray:"#808080",skyblue:"#87CEEB",lightskyblue:"#87CEFA",blueviolet:"#8A2BE2",darkred:"#8B0000",darkmagenta:"#8B008B",saddlebrown:"#8B4513",darkseagreen:"#8FBC8F",lightgreen:"#90EE90",mediumpurple:"#9370D8",darkviolet:"#9400D3",palegreen:"#98FB98",darkorchid:"#9932CC",yellowgreen:"#9ACD32",sienna:"#A0522D",brown:"#A52A2A",darkgray:"#A9A9A9",lightblue:"#ADD8E6",greenyellow:"#ADFF2F",paleturquoise:"#AFEEEE",lightsteelblue:"#B0C4DE",powderblue:"#B0E0E6",firebrick:"#B22222",darkgoldenrod:"#B8860B",mediumorchid:"#BA55D3",rosybrown:"#BC8F8F",darkkhaki:"#BDB76B",silver:"#C0C0C0",mediumvioletred:"#C71585",indianred:"#CD5C5C",peru:"#CD853F",chocolate:"#D2691E",tan:"#D2B48C",lightgrey:"#D3D3D3",palevioletred:"#D87093",thistle:"#D8BFD8",orchid:"#DA70D6",goldenrod:"#DAA520",crimson:"#DC143C",gainsboro:"#DCDCDC",plum:"#DDA0DD",burlywood:"#DEB887",lightcyan:"#E0FFFF",lavender:"#E6E6FA",darksalmon:"#E9967A",violet:"#EE82EE",palegoldenrod:"#EEE8AA",lightcoral:"#F08080",khaki:"#F0E68C",aliceblue:"#F0F8FF",honeydew:"#F0FFF0",azure:"#F0FFFF",sandybrown:"#F4A460",wheat:"#F5DEB3",beige:"#F5F5DC",whitesmoke:"#F5F5F5",mintcream:"#F5FFFA",ghostwhite:"#F8F8FF",salmon:"#FA8072",antiquewhite:"#FAEBD7",linen:"#FAF0E6",lightgoldenrodyellow:"#FAFAD2",oldlace:"#FDF5E6",red:"#FF0000",fuchsia:"#FF00FF",magenta:"#FF00FF",deeppink:"#FF1493",orangered:"#FF4500",tomato:"#FF6347",hotpink:"#FF69B4",coral:"#FF7F50",darkorange:"#FF8C00",lightsalmon:"#FFA07A",orange:"#FFA500",lightpink:"#FFB6C1",pink:"#FFC0CB",gold:"#FFD700",peachpuff:"#FFDAB9",navajowhite:"#FFDEAD",moccasin:"#FFE4B5",bisque:"#FFE4C4",mistyrose:"#FFE4E1",blanchedalmond:"#FFEBCD",papayawhip:"#FFEFD5",lavenderblush:"#FFF0F5",seashell:"#FFF5EE",cornsilk:"#FFF8DC",lemonchiffon:"#FFFACD",floralwhite:"#FFFAF0",snow:"#FFFAFA",yellow:"#FFFF00",lightyellow:"#FFFFE0",ivory:"#FFFFF0",white:"#FFFFFF"},zF=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.pixelRatio=e,this.generated=!1,this.centerCoordinates={x:289/2,y:289/2},this.r=289*.49,this.color={r:255,g:255,b:255,a:1},this.hueCircle=void 0,this.initialColor={r:255,g:255,b:255,a:1},this.previousColor=void 0,this.applied=!1,this.updateCallback=()=>{},this.closeCallback=()=>{},this._create()}insertTo(e){this.hammer!==void 0&&(this.hammer.destroy(),this.hammer=void 0),this.container=e,this.container.appendChild(this.frame),this._bindHammer(),this._setSize()}setUpdateCallback(e){if(typeof e=="function")this.updateCallback=e;else throw new Error("Function attempted to set as colorPicker update callback is not a function.")}setCloseCallback(e){if(typeof e=="function")this.closeCallback=e;else throw new Error("Function attempted to set as colorPicker closing callback is not a function.")}_isColorString(e){if(typeof e=="string")return LF[e]}setColor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e==="none")return;let i,n=this._isColorString(e);if(n!==void 0&&(e=n),Ir(e)===!0){if(GO(e)===!0){let s=e.substr(4).substr(0,e.length-5).split(",");i={r:s[0],g:s[1],b:s[2],a:1}}else if(BF(e)===!0){let s=e.substr(5).substr(0,e.length-6).split(",");i={r:s[0],g:s[1],b:s[2],a:s[3]}}else if(WO(e)===!0){let s=ff(e);i={r:s.r,g:s.g,b:s.b,a:1}}}else if(e instanceof Object&&e.r!==void 0&&e.g!==void 0&&e.b!==void 0){let s=e.a!==void 0?e.a:"1.0";i={r:e.r,g:e.g,b:e.b,a:s}}if(i===void 0)throw new Error("Unknown color passed to the colorPicker. Supported are strings: rgb, hex, rgba. Object: rgb ({r:r,g:g,b:b,[a:a]}). Supplied: "+Rr(e));this._setColor(i,t)}show(){this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0),this.applied=!1,this.frame.style.display="block",this._generateHueCircle()}_hide(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)===!0&&(this.previousColor=Fe({},this.color)),this.applied===!0&&this.updateCallback(this.initialColor),this.frame.style.display="none",hi(()=>{this.closeCallback!==void 0&&(this.closeCallback(),this.closeCallback=void 0)},0)}_save(){this.updateCallback(this.color),this.applied=!1,this._hide()}_apply(){this.applied=!0,this.updateCallback(this.color),this._updatePicker(this.color)}_loadLast(){this.previousColor!==void 0?this.setColor(this.previousColor,!1):alert("There is no last color to load...")}_setColor(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)===!0&&(this.initialColor=Fe({},e)),this.color=e;let i=Cs(e.r,e.g,e.b),n=2*Math.PI,s=this.r*i.s,o=this.centerCoordinates.x+s*Math.sin(n*i.h),g=this.centerCoordinates.y+s*Math.cos(n*i.h);this.colorPickerSelector.style.left=o-.5*this.colorPickerSelector.clientWidth+"px",this.colorPickerSelector.style.top=g-.5*this.colorPickerSelector.clientHeight+"px",this._updatePicker(e)}_setOpacity(e){this.color.a=e/100,this._updatePicker(this.color)}_setBrightness(e){let t=Cs(this.color.r,this.color.g,this.color.b);t.v=e/100;let i=Ho(t.h,t.s,t.v);i.a=this.color.a,this.color=i,this._updatePicker()}_updatePicker(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.color,t=Cs(e.r,e.g,e.b),i=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(i.webkitBackingStorePixelRatio||i.mozBackingStorePixelRatio||i.msBackingStorePixelRatio||i.oBackingStorePixelRatio||i.backingStorePixelRatio||1)),i.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);let n=this.colorPickerCanvas.clientWidth,s=this.colorPickerCanvas.clientHeight;i.clearRect(0,0,n,s),i.putImageData(this.hueCircle,0,0),i.fillStyle="rgba(0,0,0,"+(1-t.v)+")",i.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),_s(i).call(i),this.brightnessRange.value=100*t.v,this.opacityRange.value=100*e.a,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}_setSize(){this.colorPickerCanvas.style.width="100%",this.colorPickerCanvas.style.height="100%",this.colorPickerCanvas.width=289*this.pixelRatio,this.colorPickerCanvas.height=289*this.pixelRatio}_create(){var e,t,i,n;if(this.frame=document.createElement("div"),this.frame.className="vis-color-picker",this.colorPickerDiv=document.createElement("div"),this.colorPickerSelector=document.createElement("div"),this.colorPickerSelector.className="vis-selector",this.colorPickerDiv.appendChild(this.colorPickerSelector),this.colorPickerCanvas=document.createElement("canvas"),this.colorPickerDiv.appendChild(this.colorPickerCanvas),this.colorPickerCanvas.getContext){let o=this.colorPickerCanvas.getContext("2d");this.pixelRatio=(window.devicePixelRatio||1)/(o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1),this.colorPickerCanvas.getContext("2d").setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}else{let o=document.createElement("DIV");o.style.color="red",o.style.fontWeight="bold",o.style.padding="10px",o.innerText="Error: your browser does not support HTML canvas",this.colorPickerCanvas.appendChild(o)}this.colorPickerDiv.className="vis-color",this.opacityDiv=document.createElement("div"),this.opacityDiv.className="vis-opacity",this.brightnessDiv=document.createElement("div"),this.brightnessDiv.className="vis-brightness",this.arrowDiv=document.createElement("div"),this.arrowDiv.className="vis-arrow",this.opacityRange=document.createElement("input");try{this.opacityRange.type="range",this.opacityRange.min="0",this.opacityRange.max="100"}catch{}this.opacityRange.value="100",this.opacityRange.className="vis-range",this.brightnessRange=document.createElement("input");try{this.brightnessRange.type="range",this.brightnessRange.min="0",this.brightnessRange.max="100"}catch{}this.brightnessRange.value="100",this.brightnessRange.className="vis-range",this.opacityDiv.appendChild(this.opacityRange),this.brightnessDiv.appendChild(this.brightnessRange);let s=this;this.opacityRange.onchange=function(){s._setOpacity(this.value)},this.opacityRange.oninput=function(){s._setOpacity(this.value)},this.brightnessRange.onchange=function(){s._setBrightness(this.value)},this.brightnessRange.oninput=function(){s._setBrightness(this.value)},this.brightnessLabel=document.createElement("div"),this.brightnessLabel.className="vis-label vis-brightness",this.brightnessLabel.innerText="brightness:",this.opacityLabel=document.createElement("div"),this.opacityLabel.className="vis-label vis-opacity",this.opacityLabel.innerText="opacity:",this.newColorDiv=document.createElement("div"),this.newColorDiv.className="vis-new-color",this.newColorDiv.innerText="new",this.initialColorDiv=document.createElement("div"),this.initialColorDiv.className="vis-initial-color",this.initialColorDiv.innerText="initial",this.cancelButton=document.createElement("div"),this.cancelButton.className="vis-button vis-cancel",this.cancelButton.innerText="cancel",this.cancelButton.onclick=P(e=this._hide).call(e,this,!1),this.applyButton=document.createElement("div"),this.applyButton.className="vis-button vis-apply",this.applyButton.innerText="apply",this.applyButton.onclick=P(t=this._apply).call(t,this),this.saveButton=document.createElement("div"),this.saveButton.className="vis-button vis-save",this.saveButton.innerText="save",this.saveButton.onclick=P(i=this._save).call(i,this),this.loadButton=document.createElement("div"),this.loadButton.className="vis-button vis-load",this.loadButton.innerText="load last",this.loadButton.onclick=P(n=this._loadLast).call(n,this),this.frame.appendChild(this.colorPickerDiv),this.frame.appendChild(this.arrowDiv),this.frame.appendChild(this.brightnessLabel),this.frame.appendChild(this.brightnessDiv),this.frame.appendChild(this.opacityLabel),this.frame.appendChild(this.opacityDiv),this.frame.appendChild(this.newColorDiv),this.frame.appendChild(this.initialColorDiv),this.frame.appendChild(this.cancelButton),this.frame.appendChild(this.applyButton),this.frame.appendChild(this.saveButton),this.frame.appendChild(this.loadButton)}_bindHammer(){this.drag={},this.pinch={},this.hammer=new uf(this.colorPickerCanvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.on("hammer.input",e=>{e.isFirst&&this._moveSelector(e)}),this.hammer.on("tap",e=>{this._moveSelector(e)}),this.hammer.on("panstart",e=>{this._moveSelector(e)}),this.hammer.on("panmove",e=>{this._moveSelector(e)}),this.hammer.on("panend",e=>{this._moveSelector(e)})}_generateHueCircle(){if(this.generated===!1){let e=this.colorPickerCanvas.getContext("2d");this.pixelRation===void 0&&(this.pixelRatio=(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)),e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0);let t=this.colorPickerCanvas.clientWidth,i=this.colorPickerCanvas.clientHeight;e.clearRect(0,0,t,i);let n,s,o,g;this.centerCoordinates={x:t*.5,y:i*.5},this.r=.49*t;let a=2*Math.PI/360,A=1/360,C=1/this.r,I;for(o=0;o<360;o++)for(g=0;g<this.r;g++)n=this.centerCoordinates.x+g*Math.sin(a*o),s=this.centerCoordinates.y+g*Math.cos(a*o),I=Ho(o*A,g*C,1),e.fillStyle="rgb("+I.r+","+I.g+","+I.b+")",e.fillRect(n-.5,s-.5,2,2);e.strokeStyle="rgba(0,0,0,1)",e.circle(this.centerCoordinates.x,this.centerCoordinates.y,this.r),e.stroke(),this.hueCircle=e.getImageData(0,0,t,i)}this.generated=!0}_moveSelector(e){let t=this.colorPickerDiv.getBoundingClientRect(),i=e.center.x-t.left,n=e.center.y-t.top,s=.5*this.colorPickerDiv.clientHeight,o=.5*this.colorPickerDiv.clientWidth,g=i-o,a=n-s,A=Math.atan2(g,a),C=.98*Math.min(Math.sqrt(g*g+a*a),o),I=Math.cos(A)*C+s,l=Math.sin(A)*C+o;this.colorPickerSelector.style.top=I-.5*this.colorPickerSelector.clientHeight+"px",this.colorPickerSelector.style.left=l-.5*this.colorPickerSelector.clientWidth+"px";let h=A/(2*Math.PI);h=h<0?h+1:h;let d=C/this.r,c=Cs(this.color.r,this.color.g,this.color.b);c.h=h,c.s=d;let f=Ho(c.h,c.s,c.v);f.a=this.color.a,this.color=f,this.initialColorDiv.style.backgroundColor="rgba("+this.initialColor.r+","+this.initialColor.g+","+this.initialColor.b+","+this.initialColor.a+")",this.newColorDiv.style.backgroundColor="rgba("+this.color.r+","+this.color.g+","+this.color.b+","+this.color.a+")"}};function Gc(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];if(e.length<1)throw new TypeError("Invalid arguments.");if(e.length===1)return document.createTextNode(e[0]);{let i=document.createElement(e[0]);return i.appendChild(Gc(...Yt(e).call(e,1))),i}}var qF=class{constructor(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:()=>!1;this.parent=e,this.changedOptions=[],this.container=t,this.allowCreation=!1,this.hideOption=s,this.options={},this.initialized=!1,this.popupCounter=0,this.defaultOptions={enabled:!1,filter:!0,container:void 0,showButton:!0},Fe(this.options,this.defaultOptions),this.configureOptions=i,this.moduleOptions={},this.domElements=[],this.popupDiv={},this.popupLimit=5,this.popupHistory={},this.colorPicker=new zF(n),this.wrapper=void 0}setOptions(e){if(e!==void 0){this.popupHistory={},this._removePopup();let t=!0;if(typeof e=="string")this.options.filter=e;else if(Ie(e))this.options.filter=e.join();else if(typeof e=="object"){if(e==null)throw new TypeError("options cannot be null");e.container!==void 0&&(this.options.container=e.container),ze(e)!==void 0&&(this.options.filter=ze(e)),e.showButton!==void 0&&(this.options.showButton=e.showButton),e.enabled!==void 0&&(t=e.enabled)}else typeof e=="boolean"?(this.options.filter=!0,t=e):typeof e=="function"&&(this.options.filter=e,t=!0);ze(this.options)===!1&&(t=!1),this.options.enabled=t}this._clean()}setModuleOptions(e){this.moduleOptions=e,this.options.enabled===!0&&(this._clean(),this.options.container!==void 0&&(this.container=this.options.container),this._create())}_create(){this._clean(),this.changedOptions=[];let e=ze(this.options),t=0,i=!1;for(let n in this.configureOptions)Object.prototype.hasOwnProperty.call(this.configureOptions,n)&&(this.allowCreation=!1,i=!1,typeof e=="function"?(i=e(n,[]),i=i||this._handleObject(this.configureOptions[n],[n],!0)):(e===!0||ue(e).call(e,n)!==-1)&&(i=!0),i!==!1&&(this.allowCreation=!0,t>0&&this._makeItem([]),this._makeHeader(n),this._handleObject(this.configureOptions[n],[n])),t++);this._makeButton(),this._push()}_push(){this.wrapper=document.createElement("div"),this.wrapper.className="vis-configuration-wrapper",this.container.appendChild(this.wrapper);for(let e=0;e<this.domElements.length;e++)this.wrapper.appendChild(this.domElements[e]);this._showPopupIfNeeded()}_clean(){for(let e=0;e<this.domElements.length;e++)this.wrapper.removeChild(this.domElements[e]);this.wrapper!==void 0&&(this.container.removeChild(this.wrapper),this.wrapper=void 0),this.domElements=[],this._removePopup()}_getValue(e){let t=this.moduleOptions;for(let i=0;i<e.length;i++)if(t[e[i]]!==void 0)t=t[e[i]];else{t=void 0;break}return t}_makeItem(e){if(this.allowCreation===!0){let s=document.createElement("div");s.className="vis-configuration vis-config-item vis-config-s"+e.length;for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Ae(i).call(i,o=>{s.appendChild(o)}),this.domElements.push(s),this.domElements.length}return 0}_makeHeader(e){let t=document.createElement("div");t.className="vis-configuration vis-config-header",t.innerText=e,this._makeItem([],t)}_makeLabel(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=document.createElement("div");if(n.className="vis-configuration vis-config-label vis-config-s"+t.length,i===!0){for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(Gc("i","b",e))}else n.innerText=e+":";return n}_makeDropdown(e,t,i){let n=document.createElement("select");n.className="vis-configuration vis-config-select";let s=0;t!==void 0&&ue(e).call(e,t)!==-1&&(s=ue(e).call(e,t));for(let a=0;a<e.length;a++){let A=document.createElement("option");A.value=e[a],a===s&&(A.selected="selected"),A.innerText=e[a],n.appendChild(A)}let o=this;n.onchange=function(){o._update(this.value,i)};let g=this._makeLabel(i[i.length-1],i);this._makeItem(i,g,n)}_makeRange(e,t,i){let n=e[0],s=e[1],o=e[2],g=e[3],a=document.createElement("input");a.className="vis-configuration vis-config-range";try{a.type="range",a.min=s,a.max=o}catch{}a.step=g;let A="",C=0;t!==void 0?(t<0&&t*1.2<s?(a.min=Math.ceil(t*1.2),C=a.min,A="range increased"):t/1.2<s&&(a.min=Math.ceil(t/1.2),C=a.min,A="range increased"),t*1.2>o&&o!==1&&(a.max=Math.ceil(t*1.2),C=a.max,A="range increased"),a.value=t):a.value=n;let I=document.createElement("input");I.className="vis-configuration vis-config-rangeinput",I.value=a.value;let l=this;a.onchange=function(){I.value=this.value,l._update(Number(this.value),i)},a.oninput=function(){I.value=this.value};let h=this._makeLabel(i[i.length-1],i),d=this._makeItem(i,h,a,I);A!==""&&this.popupHistory[d]!==C&&(this.popupHistory[d]=C,this._setupPopup(A,d))}_makeButton(){if(this.options.showButton===!0){let e=document.createElement("div");e.className="vis-configuration vis-config-button",e.innerText="generate options",e.onclick=()=>{this._printOptions()},e.onmouseover=()=>{e.className="vis-configuration vis-config-button hover"},e.onmouseout=()=>{e.className="vis-configuration vis-config-button"},this.optionsContainer=document.createElement("div"),this.optionsContainer.className="vis-configuration vis-config-option-container",this.domElements.push(this.optionsContainer),this.domElements.push(e)}}_setupPopup(e,t){if(this.initialized===!0&&this.allowCreation===!0&&this.popupCounter<this.popupLimit){let i=document.createElement("div");i.id="vis-configuration-popup",i.className="vis-configuration-popup",i.innerText=e,i.onclick=()=>{this._removePopup()},this.popupCounter+=1,this.popupDiv={html:i,index:t}}}_removePopup(){this.popupDiv.html!==void 0&&(this.popupDiv.html.parentNode.removeChild(this.popupDiv.html),clearTimeout(this.popupDiv.hideTimeout),clearTimeout(this.popupDiv.deleteTimeout),this.popupDiv={})}_showPopupIfNeeded(){if(this.popupDiv.html!==void 0){let t=this.domElements[this.popupDiv.index].getBoundingClientRect();this.popupDiv.html.style.left=t.left+"px",this.popupDiv.html.style.top=t.top-30+"px",document.body.appendChild(this.popupDiv.html),this.popupDiv.hideTimeout=hi(()=>{this.popupDiv.html.style.opacity=0},1500),this.popupDiv.deleteTimeout=hi(()=>{this._removePopup()},1800)}}_makeCheckbox(e,t,i){let n=document.createElement("input");n.type="checkbox",n.className="vis-configuration vis-config-checkbox",n.checked=e,t!==void 0&&(n.checked=t,t!==e&&(typeof e=="object"?t!==e.enabled&&this.changedOptions.push({path:i,value:t}):this.changedOptions.push({path:i,value:t})));let s=this;n.onchange=function(){s._update(this.checked,i)};let o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeTextInput(e,t,i){let n=document.createElement("input");n.type="text",n.className="vis-configuration vis-config-text",n.value=t,t!==e&&this.changedOptions.push({path:i,value:t});let s=this;n.onchange=function(){s._update(this.value,i)};let o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,n)}_makeColorField(e,t,i){let n=e[1],s=document.createElement("div");t=t===void 0?n:t,t!=="none"?(s.className="vis-configuration vis-config-colorBlock",s.style.backgroundColor=t):s.className="vis-configuration vis-config-colorBlock none",t=t===void 0?n:t,s.onclick=()=>{this._showColorPicker(t,s,i)};let o=this._makeLabel(i[i.length-1],i);this._makeItem(i,o,s)}_showColorPicker(e,t,i){t.onclick=function(){},this.colorPicker.insertTo(t),this.colorPicker.show(),this.colorPicker.setColor(e),this.colorPicker.setUpdateCallback(n=>{let s="rgba("+n.r+","+n.g+","+n.b+","+n.a+")";t.style.backgroundColor=s,this._update(s,i)}),this.colorPicker.setCloseCallback(()=>{t.onclick=()=>{this._showColorPicker(e,t,i)}})}_handleObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=!1,s=ze(this.options),o=!1;for(let g in e)if(Object.prototype.hasOwnProperty.call(e,g)){n=!0;let a=e[g],A=$o(t,g);if(typeof s=="function"&&(n=s(g,t),n===!1&&!Ie(a)&&typeof a!="string"&&typeof a!="boolean"&&a instanceof Object&&(this.allowCreation=!1,n=this._handleObject(a,A,!0),this.allowCreation=i===!1)),n!==!1){o=!0;let C=this._getValue(A);if(Ie(a))this._handleArray(a,C,A);else if(typeof a=="string")this._makeTextInput(a,C,A);else if(typeof a=="boolean")this._makeCheckbox(a,C,A);else if(a instanceof Object){if(!this.hideOption(t,g,this.moduleOptions))if(a.enabled!==void 0){let I=$o(A,"enabled"),l=this._getValue(I);if(l===!0){let h=this._makeLabel(g,A,!0);this._makeItem(A,h),o=this._handleObject(a,A)||o}else this._makeCheckbox(a,l,A)}else{let I=this._makeLabel(g,A,!0);this._makeItem(A,I),o=this._handleObject(a,A)||o}}else console.error("dont know how to handle",a,g,A)}}return o}_handleArray(e,t,i){typeof e[0]=="string"&&e[0]==="color"?(this._makeColorField(e,t,i),e[1]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="string"?(this._makeDropdown(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:t})):typeof e[0]=="number"&&(this._makeRange(e,t,i),e[0]!==t&&this.changedOptions.push({path:i,value:Number(t)}))}_update(e,t){let i=this._constructOptions(e,t);this.parent.body&&this.parent.body.emitter&&this.parent.body.emitter.emit&&this.parent.body.emitter.emit("configChange",i),this.initialized=!0,this.parent.setOptions(i)}_constructOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=i;e=e==="true"?!0:e,e=e==="false"?!1:e;for(let s=0;s<t.length;s++)t[s]!=="global"&&(n[t[s]]===void 0&&(n[t[s]]={}),s!==t.length-1?n=n[t[s]]:n[t[s]]=e);return i}_printOptions(){let e=this.getOptions();for(;this.optionsContainer.firstChild;)this.optionsContainer.removeChild(this.optionsContainer.firstChild);this.optionsContainer.appendChild(Gc("pre","const options = "+Rr(e,null,2)))}getOptions(){let e={};for(let t=0;t<this.changedOptions.length;t++)this._constructOptions(this.changedOptions[t].value,this.changedOptions[t].path,e);return e}},VF=class{constructor(e,t){this.container=e,this.overflowMethod=t||"cap",this.x=0,this.y=0,this.padding=5,this.hidden=!1,this.frame=document.createElement("div"),this.frame.className="vis-tooltip",this.container.appendChild(this.frame)}setPosition(e,t){this.x=Ht(e),this.y=Ht(t)}setText(e){if(e instanceof Element){for(;this.frame.firstChild;)this.frame.removeChild(this.frame.firstChild);this.frame.appendChild(e)}else this.frame.innerText=e}show(e){if(e===void 0&&(e=!0),e===!0){let t=this.frame.clientHeight,i=this.frame.clientWidth,n=this.frame.parentNode.clientHeight,s=this.frame.parentNode.clientWidth,o=0,g=0;if(this.overflowMethod=="flip"){let a=!1,A=!0;this.y-t<this.padding&&(A=!1),this.x+i>s-this.padding&&(a=!0),a?o=this.x-i:o=this.x,A?g=this.y-t:g=this.y}else g=this.y-t,g+t+this.padding>n&&(g=n-t-this.padding),g<this.padding&&(g=this.padding),o=this.x,o+i+this.padding>s&&(o=s-i-this.padding),o<this.padding&&(o=this.padding);this.frame.style.left=o+"px",this.frame.style.top=g+"px",this.frame.style.visibility="visible",this.hidden=!1}else this.hide()}hide(){this.hidden=!0,this.frame.style.left="0",this.frame.style.top="0",this.frame.style.visibility="hidden"}destroy(){this.frame.parentNode.removeChild(this.frame)}},as=!1,nx,Zc="background: #FFeeee; color: #dd0000",WF=class Ne{static validate(e,t,i){as=!1,nx=t;let n=t;return i!==void 0&&(n=t[i]),Ne.parse(e,n,[]),as}static parse(e,t,i){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&Ne.check(n,e,t,i)}static check(e,t,i,n){if(i[e]===void 0&&i.__any__===void 0){Ne.getSuggestion(e,i,n);return}let s=e,o=!0;i[e]===void 0&&i.__any__!==void 0&&(s="__any__",o=Ne.getType(t[e])==="object");let g=i[s];o&&g.__type__!==void 0&&(g=g.__type__),Ne.checkFields(e,t,i,s,g,n)}static checkFields(e,t,i,n,s,o){let g=function(C){console.error("%c"+C+Ne.printLocation(o,e),Zc)},a=Ne.getType(t[e]),A=s[a];A!==void 0?Ne.getType(A)==="array"&&ue(A).call(A,t[e])===-1?(g('Invalid option detected in "'+e+'". Allowed values are:'+Ne.print(A)+' not "'+t[e]+'". '),as=!0):a==="object"&&n!=="__any__"&&(o=$o(o,e),Ne.parse(t[e],i[n],o)):s.any===void 0&&(g('Invalid type received for "'+e+'". Expected: '+Ne.print(Se(s))+". Received ["+a+'] "'+t[e]+'"'),as=!0)}static getType(e){let t=typeof e;return t==="object"?e===null?"null":e instanceof Boolean?"boolean":e instanceof Number?"number":e instanceof String?"string":Ie(e)?"array":e instanceof Date?"date":e.nodeType!==void 0?"dom":e._isAMomentObject===!0?"moment":"object":t==="number"?"number":t==="boolean"?"boolean":t==="string"?"string":t===void 0?"undefined":t}static getSuggestion(e,t,i){let n=Ne.findInOptions(e,t,i,!1),s=Ne.findInOptions(e,nx,[],!0),o=8,g=4,a;n.indexMatch!==void 0?a=" in "+Ne.printLocation(n.path,e,"")+'Perhaps it was incomplete? Did you mean: "'+n.indexMatch+`"?
`:s.distance<=g&&n.distance>s.distance?a=" in "+Ne.printLocation(n.path,e,"")+"Perhaps it was misplaced? Matching option found at: "+Ne.printLocation(s.path,s.closestMatch,""):n.distance<=o?a='. Did you mean "'+n.closestMatch+'"?'+Ne.printLocation(n.path,e):a=". Did you mean one of these: "+Ne.print(Se(t))+Ne.printLocation(i,e),console.error('%cUnknown option detected: "'+e+'"'+a,Zc),as=!0}static findInOptions(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,s=1e9,o="",g=[],a=e.toLowerCase(),A;for(let I in t){let l;if(t[I].__type__!==void 0&&n===!0){let h=Ne.findInOptions(e,t[I],$o(i,I));s>h.distance&&(o=h.closestMatch,g=h.path,s=h.distance,A=h.indexMatch)}else{var C;ue(C=I.toLowerCase()).call(C,a)!==-1&&(A=I),l=Ne.levenshteinDistance(e,I),s>l&&(o=I,g=PF(i),s=l)}}return{closestMatch:o,path:g,distance:s,indexMatch:A}}static printLocation(e,t){let n=`
`+(arguments.length>2&&arguments[2]!==void 0?arguments[2]:`Problem value found at:
`)+`options = {
`;for(let s=0;s<e.length;s++){for(let o=0;o<s+1;o++)n+=" ";n+=e[s]+`: {
`}for(let s=0;s<e.length+1;s++)n+=" ";n+=t+`
`;for(let s=0;s<e.length+1;s++){for(let o=0;o<e.length-s;o++)n+=" ";n+=`}
`}return n+`
`}static print(e){return Rr(e).replace(/(")|(\[)|(\])|(,"__type__")/g,"").replace(/(,)/g,", ")}static levenshteinDistance(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;let i=[],n;for(n=0;n<=t.length;n++)i[n]=[n];let s;for(s=0;s<=e.length;s++)i[0][s]=s;for(n=1;n<=t.length;n++)for(s=1;s<=e.length;s++)t.charAt(n-1)==e.charAt(s-1)?i[n][s]=i[n-1][s-1]:i[n][s]=Math.min(i[n-1][s-1]+1,Math.min(i[n][s-1]+1,i[n-1][s]+1));return i[t.length][e.length]}},GF=Ii,ZF=qF,lr=uf,jF=VF,ZO=Zc,HF=WF;function YF(r){return Ki=r,QF()}var jO={fontsize:"font.size",fontcolor:"font.color",labelfontcolor:"font.color",fontname:"font.face",color:["color.border","color.background"],fillcolor:"color.background",tooltip:"title",labeltooltip:"title"},pf=Xi(jO);pf.color="color.color";pf.style="dashes";var gt={NULL:0,DELIMITER:1,IDENTIFIER:2,UNKNOWN:3},rx={"{":!0,"}":!0,"[":!0,"]":!0,";":!0,"=":!0,",":!0,"->":!0,"--":!0},Ki="",pr=0,J="",H="",ct=gt.NULL;function KF(){pr=0,J=Ki.charAt(0)}function Ke(){pr++,J=Ki.charAt(pr)}function sr(){return Ki.charAt(pr+1)}function sx(r){var e=r.charCodeAt(0);return e<47?e===35||e===46:e<59?e>47:e<91?e>64:e<96?e===95:e<123?e>96:!1}function en(r,e){if(r||(r={}),e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function UF(r,e,t){for(var i=e.split("."),n=r;i.length;){var s=i.shift();i.length?(n[s]||(n[s]={}),n=n[s]):n[s]=t}}function HO(r,e){for(var t,i,n=null,s=[r],o=r;o.parent;)s.push(o.parent),o=o.parent;if(o.nodes){for(t=0,i=o.nodes.length;t<i;t++)if(e.id===o.nodes[t].id){n=o.nodes[t];break}}for(n||(n={id:e.id},r.node&&(n.attr=en(n.attr,r.node))),t=s.length-1;t>=0;t--){var g,a=s[t];a.nodes||(a.nodes=[]),ue(g=a.nodes).call(g,n)===-1&&a.nodes.push(n)}e.attr&&(n.attr=en(n.attr,e.attr))}function XF(r,e){if(r.edges||(r.edges=[]),r.edges.push(e),r.edge){var t=en({},r.edge);e.attr=en(t,e.attr)}}function YO(r,e,t,i,n){var s={from:e,to:t,type:i};return r.edge&&(s.attr=en({},r.edge)),s.attr=en(s.attr||{},n),n!=null&&n.hasOwnProperty("arrows")&&n.arrows!=null&&(s.arrows={to:{enabled:!0,type:n.arrows.type}},n.arrows=null),s}function ve(){for(ct=gt.NULL,H="";J===" "||J===" "||J===`
`||J==="\r";)Ke();do{var r=!1;if(J==="#"){for(var e=pr-1;Ki.charAt(e)===" "||Ki.charAt(e)===" ";)e--;if(Ki.charAt(e)===`
`||Ki.charAt(e)===""){for(;J!=""&&J!=`
`;)Ke();r=!0}}if(J==="/"&&sr()==="/"){for(;J!=""&&J!=`
`;)Ke();r=!0}if(J==="/"&&sr()==="*"){for(;J!="";)if(J==="*"&&sr()==="/"){Ke(),Ke();break}else Ke();r=!0}for(;J===" "||J===" "||J===`
`||J==="\r";)Ke()}while(r);if(J===""){ct=gt.DELIMITER;return}var t=J+sr();if(rx[t]){ct=gt.DELIMITER,H=t,Ke(),Ke();return}if(rx[J]){ct=gt.DELIMITER,H=J,Ke();return}if(sx(J)||J==="-"){for(H+=J,Ke();sx(J);)H+=J,Ke();H==="false"?H=!1:H==="true"?H=!0:isNaN(Number(H))||(H=Number(H)),ct=gt.IDENTIFIER;return}if(J==='"'){for(Ke();J!=""&&(J!='"'||J==='"'&&sr()==='"');)J==='"'?(H+=J,Ke()):J==="\\"&&sr()==="n"?(H+=`
`,Ke()):H+=J,Ke();if(J!='"')throw at('End of string " expected');Ke(),ct=gt.IDENTIFIER;return}for(ct=gt.UNKNOWN;J!="";)H+=J,Ke();throw new SyntaxError('Syntax error in part "'+QO(H,30)+'"')}function QF(){var r={};if(KF(),ve(),H==="strict"&&(r.strict=!0,ve()),(H==="graph"||H==="digraph")&&(r.type=H,ve()),ct===gt.IDENTIFIER&&(r.id=H,ve()),H!="{")throw at("Angle bracket { expected");if(ve(),KO(r),H!="}")throw at("Angle bracket } expected");if(ve(),H!=="")throw at("End of file expected");return ve(),delete r.node,delete r.edge,delete r.graph,r}function KO(r){for(;H!==""&&H!="}";)JF(r),H===";"&&ve()}function JF(r){var e=UO(r);if(e){XO(r,e);return}var t=$F(r);if(!t){if(ct!=gt.IDENTIFIER)throw at("Identifier expected");var i=H;if(ve(),H==="="){if(ve(),ct!=gt.IDENTIFIER)throw at("Identifier expected");r[i]=H,ve()}else eL(r,i)}}function UO(r){var e=null;if(H==="subgraph"&&(e={},e.type="subgraph",ve(),ct===gt.IDENTIFIER&&(e.id=H,ve())),H==="{"){if(ve(),e||(e={}),e.parent=r,e.node=r.node,e.edge=r.edge,e.graph=r.graph,KO(e),H!="}")throw at("Angle bracket } expected");ve(),delete e.node,delete e.edge,delete e.graph,delete e.parent,r.subgraphs||(r.subgraphs=[]),r.subgraphs.push(e)}return e}function $F(r){return H==="node"?(ve(),r.node=ds(),"node"):H==="edge"?(ve(),r.edge=ds(),"edge"):H==="graph"?(ve(),r.graph=ds(),"graph"):null}function eL(r,e){var t={id:e},i=ds();i&&(t.attr=i),HO(r,t),XO(r,e)}function XO(r,e){for(;H==="->"||H==="--";){var t,i=H;ve();var n=UO(r);if(n)t=n;else{if(ct!=gt.IDENTIFIER)throw at("Identifier or subgraph expected");t=H,HO(r,{id:t}),ve()}var s=ds(),o=YO(r,e,t,i,s);XF(r,o),e=t}}function ds(){for(var r,e=null,t={dashed:!0,solid:!1,dotted:[1,5]},i={dot:"circle",box:"box",crow:"crow",curve:"curve",icurve:"inv_curve",normal:"triangle",inv:"inv_triangle",diamond:"diamond",tee:"bar",vee:"vee"},n=new Array,s=new Array;H==="[";){for(ve(),e={};H!==""&&H!="]";){if(ct!=gt.IDENTIFIER)throw at("Attribute name expected");var o=H;if(ve(),H!="=")throw at("Equal sign = expected");if(ve(),ct!=gt.IDENTIFIER)throw at("Attribute value expected");var g=H;o==="style"&&(g=t[g]);var a;o==="arrowhead"&&(a=i[g],o="arrows",g={to:{enabled:!0,type:a}}),o==="arrowtail"&&(a=i[g],o="arrows",g={from:{enabled:!0,type:a}}),n.push({attr:e,name:o,value:g}),s.push(o),ve(),H==","&&ve()}if(H!="]")throw at("Bracket ] expected");ve()}if(Ui(s).call(s,"dir")){var A={};for(A.arrows={},r=0;r<n.length;r++)if(n[r].name==="arrows")if(n[r].value.to!=null)A.arrows.to=r;else if(n[r].value.from!=null)A.arrows.from=r;else throw at("Invalid value of arrows");else n[r].name==="dir"&&(A.dir=r);var C=n[A.dir].value;if(!Ui(s).call(s,"arrows"))if(C==="both")n.push({attr:n[A.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),A.arrows.to=n.length-1,n.push({attr:n[A.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),A.arrows.from=n.length-1;else if(C==="forward")n.push({attr:n[A.dir].attr,name:"arrows",value:{to:{enabled:!0}}}),A.arrows.to=n.length-1;else if(C==="back")n.push({attr:n[A.dir].attr,name:"arrows",value:{from:{enabled:!0}}}),A.arrows.from=n.length-1;else if(C==="none")n.push({attr:n[A.dir].attr,name:"arrows",value:""}),A.arrows.to=n.length-1;else throw at('Invalid dir type "'+C+'"');var I,l;if(C==="both")A.arrows.to&&A.arrows.from?(l=n[A.arrows.to].value.to.type,I=n[A.arrows.from].value.from.type,n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}},li(n).call(n,A.arrows.from,1)):A.arrows.to?(l=n[A.arrows.to].value.to.type,I="arrow",n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):A.arrows.from&&(l="arrow",I=n[A.arrows.from].value.from.type,n[A.arrows.from]={attr:n[A.arrows.from].attr,name:n[A.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}});else if(C==="back")A.arrows.to&&A.arrows.from?(l="",I=n[A.arrows.from].value.from.type,n[A.arrows.from]={attr:n[A.arrows.from].attr,name:n[A.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):A.arrows.to?(l="",I="arrow",A.arrows.from=A.arrows.to,n[A.arrows.from]={attr:n[A.arrows.from].attr,name:n[A.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):A.arrows.from&&(l="",I=n[A.arrows.from].value.from.type,n[A.arrows.to]={attr:n[A.arrows.from].attr,name:n[A.arrows.from].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[A.arrows.from]={attr:n[A.arrows.from].attr,name:n[A.arrows.from].name,value:{from:{enabled:!0,type:n[A.arrows.from].value.from.type}}};else if(C==="none"){var h;A.arrows.to?h=A.arrows.to:h=A.arrows.from,n[h]={attr:n[h].attr,name:n[h].name,value:""}}else if(C==="forward")A.arrows.to&&A.arrows.from?(l=n[A.arrows.to].value.to.type,I="",n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):A.arrows.to?(l=n[A.arrows.to].value.to.type,I="",n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}):A.arrows.from&&(l="arrow",I="",A.arrows.to=A.arrows.from,n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:l},from:{enabled:!0,type:I}}}),n[A.arrows.to]={attr:n[A.arrows.to].attr,name:n[A.arrows.to].name,value:{to:{enabled:!0,type:n[A.arrows.to].value.to.type}}};else throw at('Invalid dir type "'+C+'"');li(n).call(n,A.dir,1)}var d;if(Ui(s).call(s,"penwidth")){var c=[];for(d=n.length,r=0;r<d;r++)n[r].name!=="width"&&(n[r].name==="penwidth"&&(n[r].name="width"),c.push(n[r]));n=c}for(d=n.length,r=0;r<d;r++)UF(n[r].attr,n[r].name,n[r].value);return e}function at(r){return new SyntaxError(r+', got "'+QO(H,30)+'" (char '+pr+")")}function QO(r,e){return r.length<=e?r:r.substr(0,27)+"..."}function tL(r,e,t){Ie(r)?Ae(r).call(r,function(i){Ie(e)?Ae(e).call(e,function(n){t(i,n)}):t(i,e)}):Ie(e)?Ae(e).call(e,function(i){t(r,i)}):t(r,e)}function Xl(r,e,t){for(var i=e.split("."),n=i.pop(),s=r,o=0;o<i.length;o++){var g=i[o];g in s||(s[g]={}),s=s[g]}return s[n]=t,r}function ox(r,e){var t={};for(var i in r)if(r.hasOwnProperty(i)){var n=e[i];Ie(n)?Ae(n).call(n,function(s){Xl(t,s,r[i])}):typeof n=="string"?Xl(t,n,r[i]):Xl(t,i,r[i])}return t}function iL(r){var e=YF(r),t={nodes:[],edges:[],options:{}};if(e.nodes){var i;Ae(i=e.nodes).call(i,function(o){var g={id:o.id,label:String(o.label||o.id)};en(g,ox(o.attr,jO)),g.image&&(g.shape="image"),t.nodes.push(g)})}if(e.edges){var n,s=function(o){var g={from:o.from,to:o.to};return en(g,ox(o.attr,pf)),g.arrows==null&&o.type==="->"&&(g.arrows="to"),g};Ae(n=e.edges).call(n,function(o){var g,a;if(o.from instanceof Object?g=o.from.nodes:g={id:o.from},o.to instanceof Object?a=o.to.nodes:a={id:o.to},o.from instanceof Object&&o.from.edges){var A;Ae(A=o.from.edges).call(A,function(I){var l=s(I);t.edges.push(l)})}if(tL(g,a,function(I,l){var h=YO(t,I.id,l.id,o.type,o.attr),d=s(h);t.edges.push(d)}),o.to instanceof Object&&o.to.edges){var C;Ae(C=o.to.edges).call(C,function(I){var l=s(I);t.edges.push(l)})}})}return e.attr&&(t.options=e.attr),t}function nL(r,e){var t;let i={edges:{inheritColor:!1},nodes:{fixed:!1,parseColor:!1}};e!=null&&(e.fixed!=null&&(i.nodes.fixed=e.fixed),e.parseColor!=null&&(i.nodes.parseColor=e.parseColor),e.inheritColor!=null&&(i.edges.inheritColor=e.inheritColor));let n=r.edges,s=et(n).call(n,g=>{let a={from:g.source,id:g.id,to:g.target};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.type==="Directed"&&(a.arrows="to"),g.color&&i.edges.inheritColor===!1&&(a.color=g.color),a});return{nodes:et(t=r.nodes).call(t,g=>{let a={id:g.id,fixed:i.nodes.fixed&&g.x!=null&&g.y!=null};return g.attributes!=null&&(a.attributes=g.attributes),g.label!=null&&(a.label=g.label),g.size!=null&&(a.size=g.size),g.attributes!=null&&g.attributes.title!=null&&(a.title=g.attributes.title),g.title!=null&&(a.title=g.title),g.x!=null&&(a.x=g.x),g.y!=null&&(a.y=g.y),g.color!=null&&(i.nodes.parseColor===!0?a.color=g.color:a.color={background:g.color,border:g.color,highlight:{background:g.color,border:g.color},hover:{background:g.color,border:g.color}}),a}),edges:s}}var rL={addDescription:"Click in an empty space to place a new node.",addEdge:"Add Edge",addNode:"Add Node",back:"Back",close:"Close",createEdgeError:"Cannot link edges to a cluster.",del:"Delete selected",deleteClusterError:"Clusters cannot be deleted.",edgeDescription:"Click on a node and drag the edge to another node to connect them.",edit:"Edit",editClusterError:"Clusters cannot be edited.",editEdge:"Edit Edge",editEdgeDescription:"Click on the control points and drag them to a node to connect to it.",editNode:"Edit Node"},sL={addDescription:"Klicke auf eine freie Stelle, um einen neuen Knoten zu plazieren.",addEdge:"Kante hinzuf\xFCgen",addNode:"Knoten hinzuf\xFCgen",back:"Zur\xFCck",close:"Schlie\xDFen",createEdgeError:"Es ist nicht m\xF6glich, Kanten mit Clustern zu verbinden.",del:"L\xF6sche Auswahl",deleteClusterError:"Cluster k\xF6nnen nicht gel\xF6scht werden.",edgeDescription:"Klicke auf einen Knoten und ziehe die Kante zu einem anderen Knoten, um diese zu verbinden.",edit:"Editieren",editClusterError:"Cluster k\xF6nnen nicht editiert werden.",editEdge:"Kante editieren",editEdgeDescription:"Klicke auf die Verbindungspunkte und ziehe diese auf einen Knoten, um sie zu verbinden.",editNode:"Knoten editieren"},oL={addDescription:"Haga clic en un lugar vac\xEDo para colocar un nuevo nodo.",addEdge:"A\xF1adir arista",addNode:"A\xF1adir nodo",back:"Atr\xE1s",close:"Cerrar",createEdgeError:"No se puede conectar una arista a un grupo.",del:"Eliminar selecci\xF3n",deleteClusterError:"No es posible eliminar grupos.",edgeDescription:"Haga clic en un nodo y arrastre la arista hacia otro nodo para conectarlos.",edit:"Editar",editClusterError:"No es posible editar grupos.",editEdge:"Editar arista",editEdgeDescription:"Haga clic en un punto de control y arrastrelo a un nodo para conectarlo.",editNode:"Editar nodo"},gL={addDescription:"Clicca per aggiungere un nuovo nodo",addEdge:"Aggiungi un vertice",addNode:"Aggiungi un nodo",back:"Indietro",close:"Chiudere",createEdgeError:"Non si possono collegare vertici ad un cluster",del:"Cancella la selezione",deleteClusterError:"I cluster non possono essere cancellati",edgeDescription:"Clicca su un nodo e trascinalo ad un altro nodo per connetterli.",edit:"Modifica",editClusterError:"I clusters non possono essere modificati.",editEdge:"Modifica il vertice",editEdgeDescription:"Clicca sui Punti di controllo e trascinali ad un nodo per connetterli.",editNode:"Modifica il nodo"},aL={addDescription:"Klik op een leeg gebied om een nieuwe node te maken.",addEdge:"Link toevoegen",addNode:"Node toevoegen",back:"Terug",close:"Sluiten",createEdgeError:"Kan geen link maken naar een cluster.",del:"Selectie verwijderen",deleteClusterError:"Clusters kunnen niet worden verwijderd.",edgeDescription:"Klik op een node en sleep de link naar een andere node om ze te verbinden.",edit:"Wijzigen",editClusterError:"Clusters kunnen niet worden aangepast.",editEdge:"Link wijzigen",editEdgeDescription:"Klik op de verbindingspunten en sleep ze naar een node om daarmee te verbinden.",editNode:"Node wijzigen"},AL={addDescription:"Clique em um espa\xE7o em branco para adicionar um novo n\xF3",addEdge:"Adicionar aresta",addNode:"Adicionar n\xF3",back:"Voltar",close:"Fechar",createEdgeError:"N\xE3o foi poss\xEDvel linkar arestas a um cluster.",del:"Remover selecionado",deleteClusterError:"Clusters n\xE3o puderam ser removidos.",edgeDescription:"Clique em um n\xF3 e arraste a aresta at\xE9 outro n\xF3 para conect\xE1-los",edit:"Editar",editClusterError:"Clusters n\xE3o puderam ser editados.",editEdge:"Editar aresta",editEdgeDescription:"Clique nos pontos de controle e os arraste para um n\xF3 para conect\xE1-los",editNode:"Editar n\xF3"},CL={addDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u0432 \u0441\u0432\u043E\u0431\u043E\u0434\u043D\u043E\u0435 \u043C\u0435\u0441\u0442\u043E, \u0447\u0442\u043E\u0431\u044B \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0439 \u0443\u0437\u0435\u043B.",addEdge:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u043E",addNode:"\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u0443\u0437\u0435\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u044B\u0432\u0430\u0442\u044C",createEdgeError:"\u041D\u0435\u0432\u043E\u0437\u043C\u043E\u0436\u043D\u043E \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0440\u0435\u0431\u0440\u0430 \u0432 \u043A\u043B\u0430\u0441\u0442\u0435\u0440.",del:"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u044B\u0431\u0440\u0430\u043D\u043D\u043E\u0435",deleteClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435 \u043C\u043E\u0433\u0443\u0442 \u0431\u044B\u0442\u044C \u0443\u0434\u0430\u043B\u0435\u043D\u044B",edgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u0443\u0437\u0435\u043B \u0438 \u043F\u0440\u043E\u0442\u044F\u043D\u0438\u0442\u0435 \u0440\u0435\u0431\u0440\u043E \u043A \u0434\u0440\u0443\u0433\u043E\u043C\u0443 \u0443\u0437\u043B\u0443, \u0447\u0442\u043E\u0431\u044B \u0441\u043E\u0435\u0434\u0438\u043D\u0438\u0442\u044C \u0438\u0445.",edit:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C",editClusterError:"\u041A\u043B\u0430\u0441\u0442\u0435\u0440\u044B \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u044B \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0440\u0435\u0431\u0440\u043E",editEdgeDescription:"\u041A\u043B\u0438\u043A\u043D\u0438\u0442\u0435 \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u044B\u0435 \u0442\u043E\u0447\u043A\u0438 \u0438 \u043F\u0435\u0440\u0435\u0442\u0430\u0449\u0438\u0442\u0435 \u0438\u0445 \u0432 \u0443\u0437\u0435\u043B, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u044C\u0441\u044F \u043A \u043D\u0435\u043C\u0443.",editNode:"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0443\u0437\u0435\u043B"},IL={addDescription:"\u5355\u51FB\u7A7A\u767D\u5904\u653E\u7F6E\u65B0\u8282\u70B9\u3002",addEdge:"\u6DFB\u52A0\u8FDE\u63A5\u7EBF",addNode:"\u6DFB\u52A0\u8282\u70B9",back:"\u8FD4\u56DE",close:"\u95DC\u9589",createEdgeError:"\u65E0\u6CD5\u5C06\u8FDE\u63A5\u7EBF\u8FDE\u63A5\u5230\u7FA4\u96C6\u3002",del:"\u5220\u9664\u9009\u5B9A",deleteClusterError:"\u65E0\u6CD5\u5220\u9664\u7FA4\u96C6\u3002",edgeDescription:"\u5355\u51FB\u67D0\u4E2A\u8282\u70B9\u5E76\u5C06\u8BE5\u8FDE\u63A5\u7EBF\u62D6\u52A8\u5230\u53E6\u4E00\u4E2A\u8282\u70B9\u4EE5\u8FDE\u63A5\u5B83\u4EEC\u3002",edit:"\u7F16\u8F91",editClusterError:"\u65E0\u6CD5\u7F16\u8F91\u7FA4\u96C6\u3002",editEdge:"\u7F16\u8F91\u8FDE\u63A5\u7EBF",editEdgeDescription:"\u5355\u51FB\u63A7\u5236\u8282\u70B9\u5E76\u5C06\u5B83\u4EEC\u62D6\u5230\u8282\u70B9\u4E0A\u8FDE\u63A5\u3002",editNode:"\u7F16\u8F91\u8282\u70B9"},lL={addDescription:"K\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0456\u043B\u044C\u043D\u0435 \u043C\u0456\u0441\u0446\u0435, \u0449\u043E\u0431 \u0434\u043E\u0434\u0430\u0442\u0438 \u043D\u043E\u0432\u0438\u0439 \u0432\u0443\u0437\u043E\u043B.",addEdge:"\u0414\u043E\u0434\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",addNode:"\u0414\u043E\u0434\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B",back:"\u041D\u0430\u0437\u0430\u0434",close:"\u0417\u0430\u043A\u0440\u0438\u0442\u0438",createEdgeError:"\u041D\u0435 \u043C\u043E\u0436\u043B\u0438\u0432\u043E \u043E\u0431'\u0454\u0434\u043D\u0430\u0442\u0438 \u043A\u0440\u0430\u0457 \u0432 \u0433\u0440\u0443\u043F\u0443.",del:"\u0412\u0438\u0434\u0430\u043B\u0438\u0442\u0438 \u043E\u0431\u0440\u0430\u043D\u0435",deleteClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435 \u043C\u043E\u0436\u0443\u0442\u044C \u0431\u0443\u0442\u0438 \u0432\u0438\u0434\u0430\u043B\u0435\u043D\u0456.",edgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u0432\u0443\u0437\u043E\u043B \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u043A\u0440\u0430\u0439 \u0434\u043E \u0456\u043D\u0448\u043E\u0433\u043E \u0432\u0443\u0437\u043B\u0430, \u0449\u043E\u0431 \u0457\u0445 \u0437'\u0454\u0434\u043D\u0430\u0442\u0438.",edit:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438",editClusterError:"\u0413\u0440\u0443\u043F\u0438 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0456 \u0434\u043B\u044F \u0440\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u043D\u043D\u044F.",editEdge:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u043A\u0440\u0430\u0439",editEdgeDescription:"\u041A\u043B\u0456\u043A\u043D\u0456\u0442\u044C \u043D\u0430 \u043A\u043E\u043D\u0442\u0440\u043E\u043B\u044C\u043D\u0456 \u0442\u043E\u0447\u043A\u0438 \u0456 \u043F\u0435\u0440\u0435\u0442\u044F\u0433\u043D\u0456\u0442\u044C \u0457\u0445 \u0443 \u0432\u0443\u0437\u043E\u043B, \u0449\u043E\u0431 \u043F\u0456\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0438\u0441\u044F \u0434\u043E \u043D\u044C\u043E\u0433\u043E.",editNode:"\u0420\u0435\u0434\u0430\u0433\u0443\u0432\u0430\u0442\u0438 \u0432\u0443\u0437\u043E\u043B"},hL={addDescription:"Cliquez dans un endroit vide pour placer un n\u0153ud.",addEdge:"Ajouter un lien",addNode:"Ajouter un n\u0153ud",back:"Retour",close:"Fermer",createEdgeError:"Impossible de cr\xE9er un lien vers un cluster.",del:"Effacer la s\xE9lection",deleteClusterError:"Les clusters ne peuvent pas \xEAtre effac\xE9s.",edgeDescription:"Cliquez sur un n\u0153ud et glissez le lien vers un autre n\u0153ud pour les connecter.",edit:"\xC9diter",editClusterError:"Les clusters ne peuvent pas \xEAtre \xE9dit\xE9s.",editEdge:"\xC9diter le lien",editEdgeDescription:"Cliquez sur les points de contr\xF4le et glissez-les pour connecter un n\u0153ud.",editNode:"\xC9diter le n\u0153ud"},dL={addDescription:"Kluknut\xEDm do pr\xE1zdn\xE9ho prostoru m\u016F\u017Eete p\u0159idat nov\xFD vrchol.",addEdge:"P\u0159idat hranu",addNode:"P\u0159idat vrchol",back:"Zp\u011Bt",close:"Zav\u0159\xEDt",createEdgeError:"Nelze p\u0159ipojit hranu ke shluku.",del:"Smazat v\xFDb\u011Br",deleteClusterError:"Nelze mazat shluky.",edgeDescription:"P\u0159eta\u017Een\xEDm z jednoho vrcholu do druh\xE9ho m\u016F\u017Eete spojit tyto vrcholy novou hranou.",edit:"Upravit",editClusterError:"Nelze upravovat shluky.",editEdge:"Upravit hranu",editEdgeDescription:"P\u0159eta\u017Een\xEDm kontroln\xEDho vrcholu hrany ji m\u016F\u017Eete p\u0159ipojit k jin\xE9mu vrcholu.",editNode:"Upravit vrchol"},cL=Object.freeze({__proto__:null,cn:IL,cs:dL,de:sL,en:rL,es:oL,fr:hL,it:gL,nl:aL,pt:AL,ru:CL,uk:lL});function uL(r,e){try{let[i,n]=e.split(/[-_ /]/,2),s=i!=null?i.toLowerCase():null,o=n!=null?n.toUpperCase():null;if(s&&o){let g=s+"-"+o;if(Object.prototype.hasOwnProperty.call(r,g))return g;var t;console.warn(gO(t="Unknown variant ".concat(o," of language ")).call(t,s,"."))}if(s){let g=s;if(Object.prototype.hasOwnProperty.call(r,g))return g;console.warn("Unknown language ".concat(s))}return console.warn("Unknown locale ".concat(e,", falling back to English.")),"en"}catch(i){return console.error(i),console.warn("Unexpected error while normalizing locale ".concat(e,", falling back to English.")),"en"}}var jc=class{constructor(){this.NUM_ITERATIONS=4,this.image=new Image,this.canvas=document.createElement("canvas")}init(){if(this.initialized())return;this.src=this.image.src;let e=this.image.width,t=this.image.height;this.width=e,this.height=t;let i=Math.floor(t/2),n=Math.floor(t/4),s=Math.floor(t/8),o=Math.floor(t/16),g=Math.floor(e/2),a=Math.floor(e/4),A=Math.floor(e/8),C=Math.floor(e/16);this.canvas.width=3*a,this.canvas.height=i,this.coordinates=[[0,0,g,i],[g,0,a,n],[g,n,A,s],[5*A,n,C,o]],this._fillMipMap()}initialized(){return this.coordinates!==void 0}_fillMipMap(){let e=this.canvas.getContext("2d"),t=this.coordinates[0];e.drawImage(this.image,t[0],t[1],t[2],t[3]);for(let i=1;i<this.NUM_ITERATIONS;i++){let n=this.coordinates[i-1],s=this.coordinates[i];e.drawImage(this.canvas,n[0],n[1],n[2],n[3],s[0],s[1],s[2],s[3])}}drawImageAtPosition(e,t,i,n,s,o){if(this.initialized())if(t>2){t*=.5;let g=0;for(;t>2&&g<this.NUM_ITERATIONS;)t*=.5,g+=1;g>=this.NUM_ITERATIONS&&(g=this.NUM_ITERATIONS-1);let a=this.coordinates[g];e.drawImage(this.canvas,a[0],a[1],a[2],a[3],i,n,s,o)}else e.drawImage(this.image,i,n,s,o)}},Hc=class{constructor(e){this.images={},this.imageBroken={},this.callback=e}_tryloadBrokenUrl(e,t,i){if(!(e===void 0||i===void 0)){if(t===void 0){console.warn("No broken url image defined");return}i.image.onerror=()=>{console.error("Could not load brokenImage:",t)},i.image.src=t}}_redrawWithImage(e){this.callback&&this.callback(e)}load(e,t){let i=this.images[e];if(i)return i;let n=new jc;return this.images[e]=n,n.image.onload=()=>{this._fixImageCoordinates(n.image),n.init(),this._redrawWithImage(n)},n.image.onerror=()=>{console.error("Could not load image:",e),this._tryloadBrokenUrl(e,t,n)},n.image.src=e,n}_fixImageCoordinates(e){e.width===0&&(document.body.appendChild(e),e.width=e.offsetWidth,e.height=e.offsetHeight,document.body.removeChild(e))}},gx={},ax={},Ql={exports:{}},Jl,Ax;function fL(){if(Ax)return Jl;Ax=1;var r=ie();return Jl=r(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}),Jl}var $l,Cx;function pL(){if(Cx)return $l;Cx=1;var r=ie(),e=Xe(),t=mi(),i=fL(),n=Object.isExtensible,s=r(function(){});return $l=s||i?function(g){return!e(g)||i&&t(g)==="ArrayBuffer"?!1:n?n(g):!0}:n,$l}var eh,Ix;function JO(){if(Ix)return eh;Ix=1;var r=ie();return eh=!r(function(){return Object.isExtensible(Object.preventExtensions({}))}),eh}var lx;function Mg(){if(lx)return Ql.exports;lx=1;var r=j(),e=ne(),t=Rs(),i=Xe(),n=je(),s=Pt().f,o=Eg(),g=rf(),a=pL(),A=mg(),C=JO(),I=!1,l=A("meta"),h=0,d=function(m){s(m,l,{value:{objectID:"O"+h++,weakData:{}}})},c=function(m,b){if(!i(m))return typeof m=="symbol"?m:(typeof m=="string"?"S":"P")+m;if(!n(m,l)){if(!a(m))return"F";if(!b)return"E";d(m)}return m[l].objectID},f=function(m,b){if(!n(m,l)){if(!a(m))return!0;if(!b)return!1;d(m)}return m[l].weakData},u=function(m){return C&&I&&a(m)&&!n(m,l)&&d(m),m},p=function(){v.enable=function(){},I=!0;var m=o.f,b=e([].splice),w={};w[l]=1,m(w).length&&(o.f=function(x){for(var y=m(x),S=0,k=y.length;S<k;S++)if(y[S]===l){b(y,S,1);break}return y},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:g.f}))},v=Ql.exports={enable:p,fastKey:c,getWeakData:f,onFreeze:u};return t[l]=!0,Ql.exports}var th,hx;function mL(){if(hx)return th;hx=1;var r=Ve(),e=kr(),t=r("iterator"),i=Array.prototype;return th=function(n){return n!==void 0&&(e.Array===n||i[t]===n)},th}var ih,dx;function $O(){if(dx)return ih;dx=1;var r=nn(),e=Ku(),t=mr(),i=kr(),n=Ve(),s=n("iterator");return ih=function(o){if(!t(o))return e(o,s)||e(o,"@@iterator")||i[r(o)]},ih}var nh,cx;function eR(){if(cx)return nh;cx=1;var r=ft(),e=vi(),t=bi(),i=yr(),n=$O(),s=TypeError;return nh=function(o,g){var a=arguments.length<2?n(o):g;if(e(a))return t(r(a,o));throw new s(i(o)+" is not iterable")},nh}var rh,ux;function mf(){if(ux)return rh;ux=1;var r=ft(),e=bi(),t=Ku();return rh=function(i,n,s){var o,g;e(i);try{if(o=t(i,"return"),!o){if(n==="throw")throw s;return s}o=r(o,i)}catch(a){g=!0,o=a}if(n==="throw")throw s;if(g)throw o;return e(o),s},rh}var sh,fx;function Ng(){if(fx)return sh;fx=1;var r=Os(),e=ft(),t=bi(),i=yr(),n=mL(),s=Qt(),o=De(),g=eR(),a=$O(),A=mf(),C=TypeError,I=function(h,d){this.stopped=h,this.result=d},l=I.prototype;return sh=function(h,d,c){var f=c&&c.that,u=!!(c&&c.AS_ENTRIES),p=!!(c&&c.IS_RECORD),v=!!(c&&c.IS_ITERATOR),m=!!(c&&c.INTERRUPTED),b=r(d,f),w,x,y,S,k,R,E,T=function(B){return w&&A(w,"normal"),new I(!0,B)},M=function(B){return u?(t(B),m?b(B[0],B[1],T):b(B[0],B[1])):m?b(B,T):b(B)};if(p)w=h.iterator;else if(v)w=h;else{if(x=a(h),!x)throw new C(i(h)+" is not iterable");if(n(x)){for(y=0,S=s(h);S>y;y++)if(k=M(h[y]),k&&o(l,k))return k;return new I(!1)}w=g(h,x)}for(R=p?h.next:w.next;!(E=e(R,w)).done;){try{k=M(E.value)}catch(B){A(w,"throw",B)}if(typeof k=="object"&&k&&o(l,k))return k}return new I(!1)},sh}var oh,px;function vf(){if(px)return oh;px=1;var r=De(),e=TypeError;return oh=function(t,i){if(r(i,t))return t;throw new e("Incorrect invocation")},oh}var gh,mx;function bf(){if(mx)return gh;mx=1;var r=j(),e=ke(),t=Mg(),i=ie(),n=Sr(),s=Ng(),o=vf(),g=Ue(),a=Xe(),A=mr(),C=Pn(),I=Pt().f,l=rn().forEach,h=Le(),d=Mn(),c=d.set,f=d.getterFor;return gh=function(u,p,v){var m=u.indexOf("Map")!==-1,b=u.indexOf("Weak")!==-1,w=m?"set":"add",x=e[u],y=x&&x.prototype,S={},k;if(!h||!g(x)||!(b||y.forEach&&!i(function(){new x().entries().next()})))k=v.getConstructor(p,u,m,w),t.enable();else{k=p(function(T,M){c(o(T,R),{type:u,collection:new x}),A(M)||s(M,T[w],{that:T,AS_ENTRIES:m})});var R=k.prototype,E=f(u);l(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(T){var M=T==="add"||T==="set";T in y&&!(b&&T==="clear")&&n(R,T,function(B,X){var U=E(this).collection;if(!M&&b&&!a(B))return T==="get"?void 0:!1;var Ce=U[T](B===0?0:B,X);return M?this:Ce})}),b||I(R,"size",{configurable:!0,get:function(){return E(this).collection.size}})}return C(k,u,!1,!0),S[u]=k,r({global:!0,forced:!0},S),b||v.setStrong(k,u,m),k},gh}var ah,vx;function yf(){if(vx)return ah;vx=1;var r=Ns();return ah=function(e,t,i){for(var n in t)i&&i.unsafe&&e[n]?e[n]=t[n]:r(e,n,t[n],i);return e},ah}var Ah,bx;function vL(){if(bx)return Ah;bx=1;var r=bt(),e=sf(),t=Ve(),i=Le(),n=t("species");return Ah=function(s){var o=r(s);i&&o&&!o[n]&&e(o,n,{configurable:!0,get:function(){return this}})},Ah}var Ch,yx;function tR(){if(yx)return Ch;yx=1;var r=Ms(),e=sf(),t=yf(),i=Os(),n=vf(),s=mr(),o=Ng(),g=of(),a=gf(),A=vL(),C=Le(),I=Mg().fastKey,l=Mn(),h=l.set,d=l.getterFor;return Ch={getConstructor:function(c,f,u,p){var v=c(function(y,S){n(y,m),h(y,{type:f,index:r(null),first:null,last:null,size:0}),C||(y.size=0),s(S)||o(S,y[p],{that:y,AS_ENTRIES:u})}),m=v.prototype,b=d(f),w=function(y,S,k){var R=b(y),E=x(y,S),T,M;return E?E.value=k:(R.last=E={index:M=I(S,!0),key:S,value:k,previous:T=R.last,next:null,removed:!1},R.first||(R.first=E),T&&(T.next=E),C?R.size++:y.size++,M!=="F"&&(R.index[M]=E)),y},x=function(y,S){var k=b(y),R=I(S),E;if(R!=="F")return k.index[R];for(E=k.first;E;E=E.next)if(E.key===S)return E};return t(m,{clear:function(){for(var S=this,k=b(S),R=k.first;R;)R.removed=!0,R.previous&&(R.previous=R.previous.next=null),R=R.next;k.first=k.last=null,k.index=r(null),C?k.size=0:S.size=0},delete:function(y){var S=this,k=b(S),R=x(S,y);if(R){var E=R.next,T=R.previous;delete k.index[R.index],R.removed=!0,T&&(T.next=E),E&&(E.previous=T),k.first===R&&(k.first=E),k.last===R&&(k.last=T),C?k.size--:S.size--}return!!R},forEach:function(S){for(var k=b(this),R=i(S,arguments.length>1?arguments[1]:void 0),E;E=E?E.next:k.first;)for(R(E.value,E.key,this);E&&E.removed;)E=E.previous},has:function(S){return!!x(this,S)}}),t(m,u?{get:function(S){var k=x(this,S);return k&&k.value},set:function(S,k){return w(this,S===0?0:S,k)}}:{add:function(S){return w(this,S=S===0?0:S,S)}}),C&&e(m,"size",{configurable:!0,get:function(){return b(this).size}}),v},setStrong:function(c,f,u){var p=f+" Iterator",v=d(f),m=d(p);g(c,f,function(b,w){h(this,{type:p,target:b,state:v(b),kind:w,last:null})},function(){for(var b=m(this),w=b.kind,x=b.last;x&&x.removed;)x=x.previous;return!b.target||!(b.last=x=x?x.next:b.state.first)?(b.target=null,a(void 0,!0)):a(w==="keys"?x.key:w==="values"?x.value:[x.key,x.value],!1)},u?"entries":"values",!u,!0),A(f)}},Ch}var wx;function bL(){if(wx)return ax;wx=1;var r=bf(),e=tR();return r("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),ax}var xx;function yL(){return xx||(xx=1,bL()),gx}var Sx={},Ih,Ex;function iR(){return Ex||(Ex=1,Ih=function(r,e){return e===1?function(t,i){return t[r](i)}:function(t,i,n){return t[r](i,n)}}),Ih}var lh,Tx;function wL(){if(Tx)return lh;Tx=1;var r=bt(),e=iR(),t=r("Map");return lh={Map:t,set:e("set",2),get:e("get",1),has:e("has",1),remove:e("delete",1),proto:t.prototype},lh}var kx;function xL(){if(kx)return Sx;kx=1;var r=j(),e=ne(),t=vi(),i=Li(),n=Ng(),s=wL(),o=wr(),g=ie(),a=s.Map,A=s.has,C=s.get,I=s.set,l=e([].push),h=o||g(function(){return a.groupBy("ab",function(d){return d}).get("a").length!==1});return r({target:"Map",stat:!0,forced:o||h},{groupBy:function(c,f){i(c),t(f);var u=new a,p=0;return n(c,function(v){var m=f(v,p++);A(u,m)?l(C(u,m),v):I(u,m,[v])}),u}}),Sx}var Ox={},hh,Rx;function SL(){if(Rx)return hh;Rx=1;var r=ne(),e=Er(),t=Mt(),i=Li(),n=r("".charAt),s=r("".charCodeAt),o=r("".slice),g=function(a){return function(A,C){var I=t(i(A)),l=e(C),h=I.length,d,c;return l<0||l>=h?a?"":void 0:(d=s(I,l),d<55296||d>56319||l+1===h||(c=s(I,l+1))<56320||c>57343?a?n(I,l):d:a?o(I,l,l+2):(d-55296<<10)+(c-56320)+65536)}};return hh={codeAt:g(!1),charAt:g(!0)},hh}var Dx;function _g(){if(Dx)return Ox;Dx=1;var r=SL().charAt,e=Mt(),t=Mn(),i=of(),n=gf(),s="String Iterator",o=t.set,g=t.getterFor(s);return i(String,"String",function(a){o(this,{type:s,string:e(a),index:0})},function(){var A=g(this),C=A.string,I=A.index,l;return I>=C.length?n(void 0,!0):(l=r(C,I),A.index+=l.length,n(l,!1))}),Ox}var dh,Px;function EL(){if(Px)return dh;Px=1,zi(),yL(),xL(),_g();var r=he();return dh=r.Map,dh}var ch,Mx;function TL(){if(Mx)return ch;Mx=1;var r=EL();return qi(),ch=r,ch}var uh,Nx;function kL(){return Nx||(Nx=1,uh=TL()),uh}var OL=kL(),Vs=Y(OL),Yc=class{constructor(){this.clear(),this._defaultIndex=0,this._groupIndex=0,this._defaultGroups=[{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},{border:"#FFA500",background:"#FFFF00",highlight:{border:"#FFA500",background:"#FFFFA3"},hover:{border:"#FFA500",background:"#FFFFA3"}},{border:"#FA0A10",background:"#FB7E81",highlight:{border:"#FA0A10",background:"#FFAFB1"},hover:{border:"#FA0A10",background:"#FFAFB1"}},{border:"#41A906",background:"#7BE141",highlight:{border:"#41A906",background:"#A1EC76"},hover:{border:"#41A906",background:"#A1EC76"}},{border:"#E129F0",background:"#EB7DF4",highlight:{border:"#E129F0",background:"#F0B3F5"},hover:{border:"#E129F0",background:"#F0B3F5"}},{border:"#7C29F0",background:"#AD85E4",highlight:{border:"#7C29F0",background:"#D3BDF0"},hover:{border:"#7C29F0",background:"#D3BDF0"}},{border:"#C37F00",background:"#FFA807",highlight:{border:"#C37F00",background:"#FFCA66"},hover:{border:"#C37F00",background:"#FFCA66"}},{border:"#4220FB",background:"#6E6EFD",highlight:{border:"#4220FB",background:"#9B9BFD"},hover:{border:"#4220FB",background:"#9B9BFD"}},{border:"#FD5A77",background:"#FFC0CB",highlight:{border:"#FD5A77",background:"#FFD1D9"},hover:{border:"#FD5A77",background:"#FFD1D9"}},{border:"#4AD63A",background:"#C2FABC",highlight:{border:"#4AD63A",background:"#E6FFE3"},hover:{border:"#4AD63A",background:"#E6FFE3"}},{border:"#990000",background:"#EE0000",highlight:{border:"#BB0000",background:"#FF3333"},hover:{border:"#BB0000",background:"#FF3333"}},{border:"#FF6000",background:"#FF6000",highlight:{border:"#FF6000",background:"#FF6000"},hover:{border:"#FF6000",background:"#FF6000"}},{border:"#97C2FC",background:"#2B7CE9",highlight:{border:"#D2E5FF",background:"#2B7CE9"},hover:{border:"#D2E5FF",background:"#2B7CE9"}},{border:"#399605",background:"#255C03",highlight:{border:"#399605",background:"#255C03"},hover:{border:"#399605",background:"#255C03"}},{border:"#B70054",background:"#FF007E",highlight:{border:"#B70054",background:"#FF007E"},hover:{border:"#B70054",background:"#FF007E"}},{border:"#AD85E4",background:"#7C29F0",highlight:{border:"#D3BDF0",background:"#7C29F0"},hover:{border:"#D3BDF0",background:"#7C29F0"}},{border:"#4557FA",background:"#000EA1",highlight:{border:"#6E6EFD",background:"#000EA1"},hover:{border:"#6E6EFD",background:"#000EA1"}},{border:"#FFC0CB",background:"#FD5A77",highlight:{border:"#FFD1D9",background:"#FD5A77"},hover:{border:"#FFD1D9",background:"#FD5A77"}},{border:"#C2FABC",background:"#74D66A",highlight:{border:"#E6FFE3",background:"#74D66A"},hover:{border:"#E6FFE3",background:"#74D66A"}},{border:"#EE0000",background:"#990000",highlight:{border:"#FF3333",background:"#BB0000"},hover:{border:"#FF3333",background:"#BB0000"}}],this.options={},this.defaultOptions={useDefaultGroups:!0},Fe(this.options,this.defaultOptions)}setOptions(e){let t=["useDefaultGroups"];if(e!==void 0){for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&ue(t).call(t,i)===-1){let n=e[i];this.add(i,n)}}}clear(){this._groups=new Vs,this._groupNames=[]}get(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._groups.get(e);if(i===void 0&&t)if(this.options.useDefaultGroups===!1&&this._groupNames.length>0){let n=this._groupIndex%this._groupNames.length;++this._groupIndex,i={},i.color=this._groups.get(this._groupNames[n]),this._groups.set(e,i)}else{let n=this._defaultIndex%this._defaultGroups.length;this._defaultIndex++,i={},i.color=this._defaultGroups[n],this._groups.set(e,i)}return i}add(e,t){return this._groups.has(e)||this._groupNames.push(e),this._groups.set(e,t),t}},_x={},Bx;function RL(){if(Bx)return _x;Bx=1;var r=j();return r({target:"Number",stat:!0},{isNaN:function(t){return t!==t}}),_x}var fh,Fx;function DL(){if(Fx)return fh;Fx=1,RL();var r=he();return fh=r.Number.isNaN,fh}var ph,Lx;function PL(){if(Lx)return ph;Lx=1;var r=DL();return ph=r,ph}var mh,zx;function ML(){return zx||(zx=1,mh=PL()),mh}var NL=ML(),Kc=Y(NL),qx={},vh,Vx;function _L(){if(Vx)return vh;Vx=1;var r=ke(),e=r.isFinite;return vh=Number.isFinite||function(i){return typeof i=="number"&&e(i)},vh}var Wx;function BL(){if(Wx)return qx;Wx=1;var r=j(),e=_L();return r({target:"Number",stat:!0},{isFinite:e}),qx}var bh,Gx;function FL(){if(Gx)return bh;Gx=1,BL();var r=he();return bh=r.Number.isFinite,bh}var yh,Zx;function LL(){if(Zx)return yh;Zx=1;var r=FL();return yh=r,yh}var wh,jx;function zL(){return jx||(jx=1,wh=LL()),wh}var qL=zL(),wn=Y(qL),Hx={},Yx;function VL(){if(Yx)return Hx;Yx=1;var r=j(),e=rn().some,t=Or(),i=t("some");return r({target:"Array",proto:!0,forced:!i},{some:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),Hx}var xh,Kx;function WL(){if(Kx)return xh;Kx=1,VL();var r=We();return xh=r("Array","some"),xh}var Sh,Ux;function GL(){if(Ux)return Sh;Ux=1;var r=De(),e=WL(),t=Array.prototype;return Sh=function(i){var n=i.some;return i===t||r(t,i)&&n===t.some?e:n},Sh}var Eh,Xx;function ZL(){if(Xx)return Eh;Xx=1;var r=GL();return Eh=r,Eh}var Th,Qx;function jL(){return Qx||(Qx=1,Th=ZL()),Th}var HL=jL(),nR=Y(HL),kh,Jx;function YL(){if(Jx)return kh;Jx=1,Qk();var r=he();return kh=r.Object.getOwnPropertySymbols,kh}var Oh,$x;function KL(){if($x)return Oh;$x=1;var r=YL();return Oh=r,Oh}var Rh,eS;function UL(){return eS||(eS=1,Rh=KL()),Rh}var XL=UL(),ci=Y(XL),Dh={exports:{}},tS={},iS;function QL(){if(iS)return tS;iS=1;var r=j(),e=ie(),t=Xt(),i=vg().f,n=Le(),s=!n||e(function(){i(1)});return r({target:"Object",stat:!0,forced:s,sham:!n},{getOwnPropertyDescriptor:function(g,a){return i(t(g),a)}}),tS}var nS;function JL(){if(nS)return Dh.exports;nS=1,QL();var r=he(),e=r.Object,t=Dh.exports=function(n,s){return e.getOwnPropertyDescriptor(n,s)};return e.getOwnPropertyDescriptor.sham&&(t.sham=!0),Dh.exports}var Ph,rS;function $L(){if(rS)return Ph;rS=1;var r=JL();return Ph=r,Ph}var Mh,sS;function ez(){return sS||(sS=1,Mh=$L()),Mh}var tz=ez(),yi=Y(tz),oS={},gS;function iz(){if(gS)return oS;gS=1;var r=j(),e=Le(),t=sO(),i=Xt(),n=vg(),s=wg();return r({target:"Object",stat:!0,sham:!e},{getOwnPropertyDescriptors:function(g){for(var a=i(g),A=n.f,C=t(a),I={},l=0,h,d;C.length>l;)d=A(a,h=C[l++]),d!==void 0&&s(I,h,d);return I}}),oS}var Nh,aS;function nz(){if(aS)return Nh;aS=1,iz();var r=he();return Nh=r.Object.getOwnPropertyDescriptors,Nh}var _h,AS;function rz(){if(AS)return _h;AS=1;var r=nz();return _h=r,_h}var Bh,CS;function sz(){return CS||(CS=1,Bh=rz()),Bh}var oz=sz(),ui=Y(oz),Fh={exports:{}},IS={},lS;function gz(){if(lS)return IS;lS=1;var r=j(),e=Le(),t=nf().f;return r({target:"Object",stat:!0,forced:Object.defineProperties!==t,sham:!e},{defineProperties:t}),IS}var hS;function az(){if(hS)return Fh.exports;hS=1,gz();var r=he(),e=r.Object,t=Fh.exports=function(n,s){return e.defineProperties(n,s)};return e.defineProperties.sham&&(t.sham=!0),Fh.exports}var Lh,dS;function Az(){if(dS)return Lh;dS=1;var r=az();return Lh=r,Lh}var zh,cS;function Cz(){return cS||(cS=1,zh=Az()),zh}var Iz=Cz(),Ws=Y(Iz),qh={exports:{}},uS={},fS;function lz(){if(fS)return uS;fS=1;var r=j(),e=Le(),t=Pt().f;return r({target:"Object",stat:!0,forced:Object.defineProperty!==t,sham:!e},{defineProperty:t}),uS}var pS;function hz(){if(pS)return qh.exports;pS=1,lz();var r=he(),e=r.Object,t=qh.exports=function(n,s,o){return e.defineProperty(n,s,o)};return e.defineProperty.sham&&(t.sham=!0),qh.exports}var Vh,mS;function rR(){if(mS)return Vh;mS=1;var r=hz();return Vh=r,Vh}var Wh,vS;function dz(){if(vS)return Wh;vS=1;var r=rR();return Wh=r,Wh}var Gh,bS;function cz(){if(bS)return Gh;bS=1;var r=dz();return Gh=r,Gh}var Zh,yS;function uz(){return yS||(yS=1,Zh=cz()),Zh}var fz=uz(),pz=Y(fz),wS={},xS;function mz(){if(xS)return wS;xS=1;var r=Ve(),e=Pt().f,t=r("metadata"),i=Function.prototype;return i[t]===void 0&&e(i,t,{value:null}),wS}var SS={},ES;function vz(){return ES||(ES=1,Jk()),SS}var TS={},kS;function bz(){return kS||(kS=1,$k()),TS}var OS={},RS;function yz(){if(RS)return OS;RS=1;var r=Pe();return r("metadata"),OS}var jh,DS;function wz(){if(DS)return jh;DS=1;var r=rO();return mz(),vz(),bz(),yz(),jh=r,jh}var PS={},Hh,MS;function sR(){if(MS)return Hh;MS=1;var r=bt(),e=ne(),t=r("Symbol"),i=t.keyFor,n=e(t.prototype.valueOf);return Hh=t.isRegisteredSymbol||function(o){try{return i(n(o))!==void 0}catch{return!1}},Hh}var NS;function xz(){if(NS)return PS;NS=1;var r=j(),e=sR();return r({target:"Symbol",stat:!0},{isRegisteredSymbol:e}),PS}var _S={},Yh,BS;function oR(){if(BS)return Yh;BS=1;for(var r=xr(),e=bt(),t=ne(),i=ks(),n=Ve(),s=e("Symbol"),o=s.isWellKnownSymbol,g=e("Object","getOwnPropertyNames"),a=t(s.prototype.valueOf),A=r("wks"),C=0,I=g(s),l=I.length;C<l;C++)try{var h=I[C];i(s[h])&&n(h)}catch{}return Yh=function(c){if(o&&o(c))return!0;try{for(var f=a(c),u=0,p=g(A),v=p.length;u<v;u++)if(A[p[u]]==f)return!0}catch{}return!1},Yh}var FS;function Sz(){if(FS)return _S;FS=1;var r=j(),e=oR();return r({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:e}),_S}var LS={},zS;function Ez(){if(zS)return LS;zS=1;var r=Pe();return r("customMatcher"),LS}var qS={},VS;function Tz(){if(VS)return qS;VS=1;var r=Pe();return r("observable"),qS}var WS={},GS;function kz(){if(GS)return WS;GS=1;var r=j(),e=sR();return r({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:e}),WS}var ZS={},jS;function Oz(){if(jS)return ZS;jS=1;var r=j(),e=oR();return r({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:e}),ZS}var HS={},YS;function Rz(){if(YS)return HS;YS=1;var r=Pe();return r("matcher"),HS}var KS={},US;function Dz(){if(US)return KS;US=1;var r=Pe();return r("metadataKey"),KS}var XS={},QS;function Pz(){if(QS)return XS;QS=1;var r=Pe();return r("patternMatch"),XS}var JS={},$S;function Mz(){if($S)return JS;$S=1;var r=Pe();return r("replaceAll"),JS}var Kh,eE;function Nz(){if(eE)return Kh;eE=1;var r=wz();return xz(),Sz(),Ez(),Tz(),kz(),Oz(),Rz(),Dz(),Pz(),Mz(),Kh=r,Kh}var Uh,tE;function _z(){return tE||(tE=1,Uh=Nz()),Uh}var Bz=_z(),Zo=Y(Bz),Xh,iE;function Fz(){if(iE)return Xh;iE=1,zi(),_g(),eO();var r=Tg();return Xh=r.f("iterator"),Xh}var Qh,nE;function gR(){if(nE)return Qh;nE=1;var r=Fz();return qi(),Qh=r,Qh}var Jh,rE;function Lz(){if(rE)return Jh;rE=1;var r=gR();return Jh=r,Jh}var $h,sE;function zz(){if(sE)return $h;sE=1;var r=Lz();return $h=r,$h}var ed,oE;function qz(){return oE||(oE=1,ed=zz()),ed}var Vz=qz(),Wz=Y(Vz);function ys(r){"@babel/helpers - typeof";return ys=typeof Zo=="function"&&typeof Wz=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Zo=="function"&&e.constructor===Zo&&e!==Zo.prototype?"symbol":typeof e},ys(r)}var td,gE;function Gz(){if(gE)return td;gE=1,tO();var r=Tg();return td=r.f("toPrimitive"),td}var id,aE;function Zz(){if(aE)return id;aE=1;var r=Gz();return id=r,id}var nd,AE;function jz(){if(AE)return nd;AE=1;var r=Zz();return nd=r,nd}var rd,CE;function Hz(){if(CE)return rd;CE=1;var r=jz();return rd=r,rd}var sd,IE;function Yz(){return IE||(IE=1,sd=Hz()),sd}var Kz=Yz(),Uz=Y(Kz);function Xz(r,e){if(ys(r)!="object"||!r)return r;var t=r[Uz];if(t!==void 0){var i=t.call(r,e);if(ys(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Qz(r){var e=Xz(r,"string");return ys(e)=="symbol"?e:e+""}function Ee(r,e,t){return(e=Qz(e))in r?pz(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var lE={},od,hE;function Jz(){if(hE)return od;hE=1;var r=vi(),e=pt(),t=pg(),i=Qt(),n=TypeError,s="Reduce of empty array with no initial value",o=function(g){return function(a,A,C,I){var l=e(a),h=t(l),d=i(l);if(r(A),d===0&&C<2)throw new n(s);var c=g?d-1:0,f=g?-1:1;if(C<2)for(;;){if(c in h){I=h[c],c+=f;break}if(c+=f,g?c<0:d<=c)throw new n(s)}for(;g?c>=0:d>c;c+=f)c in h&&(I=A(I,h[c],c,l));return I}};return od={left:o(!1),right:o(!0)},od}var gd,dE;function $z(){if(dE)return gd;dE=1;var r=AO();return gd=r==="NODE",gd}var cE;function e3(){if(cE)return lE;cE=1;var r=j(),e=Jz().left,t=Or(),i=Ts(),n=$z(),s=!n&&i>79&&i<83,o=s||!t("reduce");return r({target:"Array",proto:!0,forced:o},{reduce:function(a){var A=arguments.length;return e(this,a,A,A>1?arguments[1]:void 0)}}),lE}var ad,uE;function t3(){if(uE)return ad;uE=1,e3();var r=We();return ad=r("Array","reduce"),ad}var Ad,fE;function i3(){if(fE)return Ad;fE=1;var r=De(),e=t3(),t=Array.prototype;return Ad=function(i){var n=i.reduce;return i===t||r(t,i)&&n===t.reduce?e:n},Ad}var Cd,pE;function n3(){if(pE)return Cd;pE=1;var r=i3();return Cd=r,Cd}var Id,mE;function r3(){return mE||(mE=1,Id=n3()),Id}var s3=r3(),wf=Y(s3),vE={},ld,bE;function o3(){if(bE)return ld;bE=1;var r=tn(),e=Qt(),t=ef(),i=Os(),n=function(s,o,g,a,A,C,I,l){for(var h=A,d=0,c=I?i(I,l):!1,f,u;d<a;)d in g&&(f=c?c(g[d],d,o):g[d],C>0&&r(f)?(u=e(f),h=n(s,o,f,u,h,C-1)-1):(t(h+1),s[h]=f),h++),d++;return h};return ld=n,ld}var yE;function g3(){if(yE)return vE;yE=1;var r=j(),e=o3(),t=vi(),i=pt(),n=Qt(),s=xg();return r({target:"Array",proto:!0},{flatMap:function(g){var a=i(this),A=n(a),C;return t(g),C=s(a,0),C.length=e(C,a,a,A,0,1,g,arguments.length>1?arguments[1]:void 0),C}}),vE}var wE={},xE;function a3(){if(xE)return wE;xE=1;var r=kg();return r("flatMap"),wE}var hd,SE;function A3(){if(SE)return hd;SE=1,g3(),a3();var r=We();return hd=r("Array","flatMap"),hd}var dd,EE;function C3(){if(EE)return dd;EE=1;var r=De(),e=A3(),t=Array.prototype;return dd=function(i){var n=i.flatMap;return i===t||r(t,i)&&n===t.flatMap?e:n},dd}var cd,TE;function I3(){if(TE)return cd;TE=1;var r=C3();return cd=r,cd}var ud,kE;function l3(){return kE||(kE=1,ud=I3()),ud}var aj=l3();var fd,OE;function h3(){return OE||(OE=1,fd=gR()),fd}var d3=h3(),Cr=Y(d3),RE={},DE={},PE;function c3(){if(PE)return DE;PE=1;var r=bf(),e=tR();return r("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},e),DE}var ME;function u3(){return ME||(ME=1,c3()),RE}var NE={},pd,_E;function _n(){if(_E)return pd;_E=1;var r=yr(),e=TypeError;return pd=function(t){if(typeof t=="object"&&"size"in t&&"has"in t&&"add"in t&&"delete"in t&&"keys"in t)return t;throw new e(r(t)+" is not a set")},pd}var md,BE;function Bn(){if(BE)return md;BE=1;var r=bt(),e=iR(),t=r("Set"),i=t.prototype;return md={Set:t,add:e("add",1),has:e("has",1),remove:e("delete",1),proto:i},md}var vd,FE;function Fn(){if(FE)return vd;FE=1;var r=ft();return vd=function(e,t,i){for(var n=i?e:e.iterator,s=e.next,o,g;!(o=r(s,n)).done;)if(g=t(o.value),g!==void 0)return g},vd}var bd,LE;function Gs(){if(LE)return bd;LE=1;var r=Fn();return bd=function(e,t,i){return i?r(e.keys(),t,!0):e.forEach(t)},bd}var yd,zE;function xf(){if(zE)return yd;zE=1;var r=Bn(),e=Gs(),t=r.Set,i=r.add;return yd=function(n){var s=new t;return e(n,function(o){i(s,o)}),s},yd}var wd,qE;function Zs(){return qE||(qE=1,wd=function(r){return r.size}),wd}var xd,VE;function f3(){return VE||(VE=1,xd=function(r){return{iterator:r,next:r.next,done:!1}}),xd}var Sd,WE;function Ln(){if(WE)return Sd;WE=1;var r=vi(),e=bi(),t=ft(),i=Er(),n=f3(),s="Invalid size",o=RangeError,g=TypeError,a=Math.max,A=function(C,I){this.set=C,this.size=a(I,0),this.has=r(C.has),this.keys=r(C.keys)};return A.prototype={getIterator:function(){return n(e(t(this.keys,this.set)))},includes:function(C){return t(this.has,this.set,C)}},Sd=function(C){e(C);var I=+C.size;if(I!==I)throw new g(s);var l=i(I);if(l<0)throw new o(s);return new A(C,l)},Sd}var Ed,GE;function p3(){if(GE)return Ed;GE=1;var r=_n(),e=Bn(),t=xf(),i=Zs(),n=Ln(),s=Gs(),o=Fn(),g=e.has,a=e.remove;return Ed=function(C){var I=r(this),l=n(C),h=t(I);return i(I)<=l.size?s(I,function(d){l.includes(d)&&a(h,d)}):o(l.getIterator(),function(d){g(h,d)&&a(h,d)}),h},Ed}var Td,ZE;function zn(){return ZE||(ZE=1,Td=function(){return!1}),Td}var jE;function m3(){if(jE)return NE;jE=1;var r=j(),e=p3(),t=ie(),i=zn(),n=!i("difference",function(o){return o.size===0}),s=n||t(function(){var o={size:1,has:function(){return!0},keys:function(){var a=0;return{next:function(){var A=a++>1;return g.has(1)&&g.clear(),{done:A,value:2}}}}},g=new Set([1,2,3,4]);return g.difference(o).size!==3});return r({target:"Set",proto:!0,real:!0,forced:s},{difference:e}),NE}var HE={},kd,YE;function v3(){if(YE)return kd;YE=1;var r=_n(),e=Bn(),t=Zs(),i=Ln(),n=Gs(),s=Fn(),o=e.Set,g=e.add,a=e.has;return kd=function(C){var I=r(this),l=i(C),h=new o;return t(I)>l.size?s(l.getIterator(),function(d){a(I,d)&&g(h,d)}):n(I,function(d){l.includes(d)&&g(h,d)}),h},kd}var KE;function b3(){if(KE)return HE;KE=1;var r=j(),e=ie(),t=v3(),i=zn(),n=!i("intersection",function(s){return s.size===2&&s.has(1)&&s.has(2)})||e(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});return r({target:"Set",proto:!0,real:!0,forced:n},{intersection:t}),HE}var UE={},Od,XE;function y3(){if(XE)return Od;XE=1;var r=_n(),e=Bn().has,t=Zs(),i=Ln(),n=Gs(),s=Fn(),o=mf();return Od=function(a){var A=r(this),C=i(a);if(t(A)<=C.size)return n(A,function(l){if(C.includes(l))return!1},!0)!==!1;var I=C.getIterator();return s(I,function(l){if(e(A,l))return o(I,"normal",!1)})!==!1},Od}var QE;function w3(){if(QE)return UE;QE=1;var r=j(),e=y3(),t=zn(),i=!t("isDisjointFrom",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isDisjointFrom:e}),UE}var JE={},Rd,$E;function x3(){if($E)return Rd;$E=1;var r=_n(),e=Zs(),t=Gs(),i=Ln();return Rd=function(s){var o=r(this),g=i(s);return e(o)>g.size?!1:t(o,function(a){if(!g.includes(a))return!1},!0)!==!1},Rd}var eT;function S3(){if(eT)return JE;eT=1;var r=j(),e=x3(),t=zn(),i=!t("isSubsetOf",function(n){return n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSubsetOf:e}),JE}var tT={},Dd,iT;function E3(){if(iT)return Dd;iT=1;var r=_n(),e=Bn().has,t=Zs(),i=Ln(),n=Fn(),s=mf();return Dd=function(g){var a=r(this),A=i(g);if(t(a)<A.size)return!1;var C=A.getIterator();return n(C,function(I){if(!e(a,I))return s(C,"normal",!1)})!==!1},Dd}var nT;function T3(){if(nT)return tT;nT=1;var r=j(),e=E3(),t=zn(),i=!t("isSupersetOf",function(n){return!n});return r({target:"Set",proto:!0,real:!0,forced:i},{isSupersetOf:e}),tT}var rT={},Pd,sT;function k3(){if(sT)return Pd;sT=1;var r=_n(),e=Bn(),t=xf(),i=Ln(),n=Fn(),s=e.add,o=e.has,g=e.remove;return Pd=function(A){var C=r(this),I=i(A).getIterator(),l=t(C);return n(I,function(h){o(C,h)?g(l,h):s(l,h)}),l},Pd}var Md,oT;function aR(){return oT||(oT=1,Md=function(r){try{var e=new Set,t={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return e.clear(),e.add(4),function(){return{done:!0}}}})}},i=e[r](t);return i.size===1&&i.values().next().value===4}catch{return!1}}),Md}var gT;function O3(){if(gT)return rT;gT=1;var r=j(),e=k3(),t=aR(),i=zn(),n=!i("symmetricDifference")||!t("symmetricDifference");return r({target:"Set",proto:!0,real:!0,forced:n},{symmetricDifference:e}),rT}var aT={},Nd,AT;function R3(){if(AT)return Nd;AT=1;var r=_n(),e=Bn().add,t=xf(),i=Ln(),n=Fn();return Nd=function(o){var g=r(this),a=i(o).getIterator(),A=t(g);return n(a,function(C){e(A,C)}),A},Nd}var CT;function D3(){if(CT)return aT;CT=1;var r=j(),e=R3(),t=aR(),i=zn(),n=!i("union")||!t("union");return r({target:"Set",proto:!0,real:!0,forced:n},{union:e}),aT}var _d,IT;function P3(){if(IT)return _d;IT=1,zi(),u3(),m3(),b3(),w3(),S3(),T3(),O3(),D3(),_g();var r=he();return _d=r.Set,_d}var Bd,lT;function M3(){if(lT)return Bd;lT=1;var r=P3();return qi(),Bd=r,Bd}var Fd,hT;function N3(){return hT||(hT=1,Fd=M3()),Fd}var _3=N3(),Kt=Y(_3),Ld,dT;function B3(){if(dT)return Ld;dT=1,zi(),_g();var r=eR();return Ld=r,Ld}var zd,cT;function F3(){if(cT)return zd;cT=1;var r=B3();return qi(),zd=r,zd}var qd,uT;function L3(){if(uT)return qd;uT=1;var r=F3();return qd=r,qd}var Vd,fT;function z3(){if(fT)return Vd;fT=1;var r=L3();return Vd=r,Vd}var Wd,pT;function q3(){return pT||(pT=1,Wd=z3()),Wd}var Gd,mT;function V3(){return mT||(mT=1,Gd=q3()),Gd}var W3=V3(),Zd=Y(W3),vT={},jd,bT;function G3(){if(bT)return jd;bT=1;var r=Tr(),e=Math.floor,t=function(i,n){var s=i.length;if(s<8)for(var o=1,g,a;o<s;){for(a=o,g=i[o];a&&n(i[a-1],g)>0;)i[a]=i[--a];a!==o++&&(i[a]=g)}else for(var A=e(s/2),C=t(r(i,0,A),n),I=t(r(i,A),n),l=C.length,h=I.length,d=0,c=0;d<l||c<h;)i[d+c]=d<l&&c<h?n(C[d],I[c])<=0?C[d++]:I[c++]:d<l?C[d++]:I[c++];return i};return jd=t,jd}var Hd,yT;function Z3(){if(yT)return Hd;yT=1;var r=vr(),e=r.match(/firefox\/(\d+)/i);return Hd=!!e&&+e[1],Hd}var Yd,wT;function j3(){if(wT)return Yd;wT=1;var r=vr();return Yd=/MSIE|Trident/.test(r),Yd}var Kd,xT;function H3(){if(xT)return Kd;xT=1;var r=vr(),e=r.match(/AppleWebKit\/(\d+)\./);return Kd=!!e&&+e[1],Kd}var ST;function Y3(){if(ST)return vT;ST=1;var r=j(),e=ne(),t=vi(),i=pt(),n=Qt(),s=oO(),o=Mt(),g=ie(),a=G3(),A=Or(),C=Z3(),I=j3(),l=Ts(),h=H3(),d=[],c=e(d.sort),f=e(d.push),u=g(function(){d.sort(void 0)}),p=g(function(){d.sort(null)}),v=A("sort"),m=!g(function(){if(l)return l<70;if(!(C&&C>3)){if(I)return!0;if(h)return h<603;var x="",y,S,k,R;for(y=65;y<76;y++){switch(S=String.fromCharCode(y),y){case 66:case 69:case 70:case 72:k=3;break;case 68:case 71:k=4;break;default:k=2}for(R=0;R<47;R++)d.push({k:S+R,v:k})}for(d.sort(function(E,T){return T.v-E.v}),R=0;R<d.length;R++)S=d[R].k.charAt(0),x.charAt(x.length-1)!==S&&(x+=S);return x!=="DGBEFHACIJK"}}),b=u||!p||!v||!m,w=function(x){return function(y,S){return S===void 0?-1:y===void 0?1:x!==void 0?+x(y,S)||0:o(y)>o(S)?1:-1}};return r({target:"Array",proto:!0,forced:b},{sort:function(y){y!==void 0&&t(y);var S=i(this);if(m)return y===void 0?c(S):c(S,y);var k=[],R=n(S),E,T;for(T=0;T<R;T++)T in S&&f(k,S[T]);for(a(k,w(y)),E=n(k),T=0;T<E;)S[T]=k[T++];for(;T<R;)s(S,T++);return S}}),vT}var Ud,ET;function K3(){if(ET)return Ud;ET=1,Y3();var r=We();return Ud=r("Array","sort"),Ud}var Xd,TT;function U3(){if(TT)return Xd;TT=1;var r=De(),e=K3(),t=Array.prototype;return Xd=function(i){var n=i.sort;return i===t||r(t,i)&&n===t.sort?e:n},Xd}var Qd,kT;function X3(){if(kT)return Qd;kT=1;var r=U3();return Qd=r,Qd}var Jd,OT;function Q3(){return OT||(OT=1,Jd=X3()),Jd}var J3=Q3(),Bi=Y(J3),$d,RT;function $3(){if(RT)return $d;RT=1,zi();var r=We();return $d=r("Array","keys"),$d}var ec,DT;function eq(){if(DT)return ec;DT=1;var r=$3();return ec=r,ec}var tc,PT;function tq(){if(PT)return tc;PT=1,qi();var r=nn(),e=je(),t=De(),i=eq(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return tc=function(o){var g=o.keys;return o===n||t(n,o)&&g===n.keys||e(s,r(o))?i:g},tc}var ic,MT;function iq(){return MT||(MT=1,ic=tq()),ic}var nq=iq(),or=Y(nq),nc,NT;function rq(){if(NT)return nc;NT=1,zi();var r=We();return nc=r("Array","values"),nc}var rc,_T;function sq(){if(_T)return rc;_T=1;var r=rq();return rc=r,rc}var sc,BT;function oq(){if(BT)return sc;BT=1,qi();var r=nn(),e=je(),t=De(),i=sq(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return sc=function(o){var g=o.values;return o===n||t(n,o)&&g===n.values||e(s,r(o))?i:g},sc}var oc,FT;function gq(){return FT||(FT=1,oc=oq()),oc}var aq=gq(),eg=Y(aq),gc,LT;function Aq(){if(LT)return gc;LT=1,zi();var r=We();return gc=r("Array","entries"),gc}var ac,zT;function Cq(){if(zT)return ac;zT=1;var r=Aq();return ac=r,ac}var Ac,qT;function Iq(){if(qT)return Ac;qT=1,qi();var r=nn(),e=je(),t=De(),i=Cq(),n=Array.prototype,s={DOMTokenList:!0,NodeList:!0};return Ac=function(o){var g=o.entries;return o===n||t(n,o)&&g===n.entries||e(s,r(o))?i:g},Ac}var Cc,VT;function lq(){return VT||(VT=1,Cc=Iq()),Cc}var hq=lq(),dq=Y(hq),Ic,WT;function cq(){return WT||(WT=1,Ic=rR()),Ic}var uq=cq(),js=Y(uq),$e=[];for(let r=0;r<256;++r)$e.push((r+256).toString(16).slice(1));function fq(r,e=0){return($e[r[e+0]]+$e[r[e+1]]+$e[r[e+2]]+$e[r[e+3]]+"-"+$e[r[e+4]]+$e[r[e+5]]+"-"+$e[r[e+6]]+$e[r[e+7]]+"-"+$e[r[e+8]]+$e[r[e+9]]+"-"+$e[r[e+10]]+$e[r[e+11]]+$e[r[e+12]]+$e[r[e+13]]+$e[r[e+14]]+$e[r[e+15]]).toLowerCase()}var lc,pq=new Uint8Array(16);function mq(){if(!lc){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");lc=crypto.getRandomValues.bind(crypto)}return lc(pq)}var vq=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),GT={randomUUID:vq};function bq(r,e,t){r=r||{};let i=r.random??r.rng?.()??mq();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,fq(i)}function hr(r,e,t){return GT.randomUUID&&!r?GT.randomUUID():bq(r)}function ZT(r,e){var t=Se(r);if(ci){var i=ci(r);e&&(i=ze(i).call(i,function(n){return yi(r,n).enumerable})),t.push.apply(t,i)}return t}function jT(r){for(var e=1;e<arguments.length;e++){var t,i,n=arguments[e]!=null?arguments[e]:{};e%2?Ae(t=ZT(Object(n),!0)).call(t,function(s){Ee(r,s,n[s])}):ui?Ws(r,ui(n)):Ae(i=ZT(Object(n))).call(i,function(s){js(r,s,yi(n,s))})}return r}function HT(r){return typeof r=="string"||typeof r=="number"}var Uc=class r{constructor(e){Ee(this,"delay",void 0),Ee(this,"max",void 0),Ee(this,"_queue",[]),Ee(this,"_timeout",null),Ee(this,"_extended",null),this.delay=null,this.max=1/0,this.setOptions(e)}setOptions(e){e&&typeof e.delay<"u"&&(this.delay=e.delay),e&&typeof e.max<"u"&&(this.max=e.max),this._flushIfNeeded()}static extend(e,t){let i=new r(t);if(e.flush!==void 0)throw new Error("Target object already has a property flush");e.flush=()=>{i.flush()};let n=[{name:"flush",original:void 0}];if(t&&t.replace)for(let s=0;s<t.replace.length;s++){let o=t.replace[s];n.push({name:o,original:e[o]}),i.replace(e,o)}return i._extended={object:e,methods:n},i}destroy(){if(this.flush(),this._extended){let e=this._extended.object,t=this._extended.methods;for(let i=0;i<t.length;i++){let n=t[i];n.original?e[n.name]=n.original:delete e[n.name]}this._extended=null}}replace(e,t){let i=this,n=e[t];if(!n)throw new Error("Method "+t+" undefined");e[t]=function(){for(var s=arguments.length,o=new Array(s),g=0;g<s;g++)o[g]=arguments[g];i.queue({args:o,fn:n,context:this})}}queue(e){typeof e=="function"?this._queue.push({fn:e}):this._queue.push(e),this._flushIfNeeded()}_flushIfNeeded(){this._queue.length>this.max&&this.flush(),this._timeout!=null&&(clearTimeout(this._timeout),this._timeout=null),this.queue.length>0&&typeof this.delay=="number"&&(this._timeout=hi(()=>{this.flush()},this.delay))}flush(){var e,t;Ae(e=li(t=this._queue).call(t,0)).call(e,i=>{i.fn.apply(i.context||i.fn,i.args||[])})}},Xc=class r{constructor(){Ee(this,"_subscribers",{"*":[],add:[],remove:[],update:[]}),Ee(this,"subscribe",r.prototype.on),Ee(this,"unsubscribe",r.prototype.off)}_trigger(e,t,i){var n;if(e==="*")throw new Error("Cannot trigger event *");Ae(n=[...this._subscribers[e],...this._subscribers["*"]]).call(n,s=>{s(e,t,i??null)})}on(e,t){typeof t=="function"&&this._subscribers[e].push(t)}off(e,t){var i;this._subscribers[e]=ze(i=this._subscribers[e]).call(i,n=>n!==t)}},tg=class r{constructor(e){Ee(this,"_pairs",void 0),this._pairs=e}*[Cr](){for(let[e,t]of this._pairs)yield[e,t]}*entries(){for(let[e,t]of this._pairs)yield[e,t]}*keys(){for(let[e]of this._pairs)yield e}*values(){for(let[,e]of this._pairs)yield e}toIdArray(){var e;return et(e=[...this._pairs]).call(e,t=>t[0])}toItemArray(){var e;return et(e=[...this._pairs]).call(e,t=>t[1])}toEntryArray(){return[...this._pairs]}toObjectMap(){let e=Xi(null);for(let[t,i]of this._pairs)e[t]=i;return e}toMap(){return new Vs(this._pairs)}toIdSet(){return new Kt(this.toIdArray())}toItemSet(){return new Kt(this.toItemArray())}cache(){return new r([...this._pairs])}distinct(e){let t=new Kt;for(let[i,n]of this._pairs)t.add(e(n,i));return t}filter(e){let t=this._pairs;return new r({*[Cr](){for(let[i,n]of t)e(n,i)&&(yield[i,n])}})}forEach(e){for(let[t,i]of this._pairs)e(i,t)}map(e){let t=this._pairs;return new r({*[Cr](){for(let[i,n]of t)yield[i,e(n,i)]}})}max(e){let t=Zd(this._pairs),i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){let[o,g]=i.value,a=e(g,o);a>s&&(s=a,n=g)}return n}min(e){let t=Zd(this._pairs),i=t.next();if(i.done)return null;let n=i.value[1],s=e(i.value[1],i.value[0]);for(;!(i=t.next()).done;){let[o,g]=i.value,a=e(g,o);a<s&&(s=a,n=g)}return n}reduce(e,t){for(let[i,n]of this._pairs)t=e(t,n,i);return t}sort(e){return new r({[Cr]:()=>{var t;return Zd(Bi(t=[...this._pairs]).call(t,(i,n)=>{let[s,o]=i,[g,a]=n;return e(o,a,s,g)}))}})}};function yq(r,e){return r[e]==null&&(r[e]=hr()),r}var fi=class extends Xc{get idProp(){return this._idProp}constructor(e,t){super(),Ee(this,"flush",void 0),Ee(this,"length",void 0),Ee(this,"_options",void 0),Ee(this,"_data",void 0),Ee(this,"_idProp",void 0),Ee(this,"_queue",null),e&&!Ie(e)&&(t=e,e=[]),this._options=t||{},this._data=new Vs,this.length=0,this._idProp=this._options.fieldId||"id",e&&e.length&&this.add(e),this.setOptions(t)}setOptions(e){e&&e.queue!==void 0&&(e.queue===!1?this._queue&&(this._queue.destroy(),this._queue=null):(this._queue||(this._queue=Uc.extend(this,{replace:["add","update","remove"]})),e.queue&&typeof e.queue=="object"&&this._queue.setOptions(e.queue)))}add(e,t){let i=[],n;if(Ie(e)){let s=et(e).call(e,o=>o[this._idProp]);if(nR(s).call(s,o=>this._data.has(o)))throw new Error("A duplicate id was found in the parameter array.");for(let o=0,g=e.length;o<g;o++)n=this._addItem(e[o]),i.push(n)}else if(e&&typeof e=="object")n=this._addItem(e),i.push(n);else throw new Error("Unknown dataType");return i.length&&this._trigger("add",{items:i},t),i}update(e,t){let i=[],n=[],s=[],o=[],g=this._idProp,a=A=>{let C=A[g];if(C!=null&&this._data.has(C)){let I=A,l=Fe({},this._data.get(C)),h=this._updateItem(I);n.push(h),o.push(I),s.push(l)}else{let I=this._addItem(A);i.push(I)}};if(Ie(e))for(let A=0,C=e.length;A<C;A++)e[A]&&typeof e[A]=="object"?a(e[A]):console.warn("Ignoring input item, which is not an object at index "+A);else if(e&&typeof e=="object")a(e);else throw new Error("Unknown dataType");if(i.length&&this._trigger("add",{items:i},t),n.length){let A={items:n,oldData:s,data:o};this._trigger("update",A,t)}return gO(i).call(i,n)}updateOnly(e,t){var i;Ie(e)||(e=[e]);let n=et(i=et(e).call(e,s=>{let o=this._data.get(s[this._idProp]);if(o==null)throw new Error("Updating non-existent items is not allowed.");return{oldData:o,update:s}})).call(i,s=>{let{oldData:o,update:g}=s,a=o[this._idProp],A=yF(o,g);return this._data.set(a,A),{id:a,oldData:o,updatedData:A}});if(n.length){let s={items:et(n).call(n,o=>o.id),oldData:et(n).call(n,o=>o.oldData),data:et(n).call(n,o=>o.updatedData)};return this._trigger("update",s,t),s.items}else return[]}get(e,t){let i,n,s;HT(e)?(i=e,s=t):Ie(e)?(n=e,s=t):s=e;let o=s&&s.returnType==="Object"?"Object":"Array",g=s&&ze(s),a=[],A,C,I;if(i!=null)A=this._data.get(i),A&&g&&!g(A)&&(A=void 0);else if(n!=null)for(let h=0,d=n.length;h<d;h++)A=this._data.get(n[h]),A!=null&&(!g||g(A))&&a.push(A);else{var l;C=[...or(l=this._data).call(l)];for(let h=0,d=C.length;h<d;h++)I=C[h],A=this._data.get(I),A!=null&&(!g||g(A))&&a.push(A)}if(s&&s.order&&i==null&&this._sort(a,s.order),s&&s.fields){let h=s.fields;if(i!=null&&A!=null)A=this._filterFields(A,h);else for(let d=0,c=a.length;d<c;d++)a[d]=this._filterFields(a[d],h)}if(o=="Object"){let h={};for(let d=0,c=a.length;d<c;d++){let f=a[d],u=f[this._idProp];h[u]=f}return h}else return i!=null?A??null:a}getIds(e){let t=this._data,i=e&&ze(e),n=e&&e.order,s=[...or(t).call(t)],o=[];if(i)if(n){let g=[];for(let a=0,A=s.length;a<A;a++){let C=s[a],I=this._data.get(C);I!=null&&i(I)&&g.push(I)}this._sort(g,n);for(let a=0,A=g.length;a<A;a++)o.push(g[a][this._idProp])}else for(let g=0,a=s.length;g<a;g++){let A=s[g],C=this._data.get(A);C!=null&&i(C)&&o.push(C[this._idProp])}else if(n){let g=[];for(let a=0,A=s.length;a<A;a++){let C=s[a];g.push(t.get(C))}this._sort(g,n);for(let a=0,A=g.length;a<A;a++)o.push(g[a][this._idProp])}else for(let g=0,a=s.length;g<a;g++){let A=s[g],C=t.get(A);C!=null&&o.push(C[this._idProp])}return o}getDataSet(){return this}forEach(e,t){let i=t&&ze(t),n=this._data,s=[...or(n).call(n)];if(t&&t.order){let o=this.get(t);for(let g=0,a=o.length;g<a;g++){let A=o[g],C=A[this._idProp];e(A,C)}}else for(let o=0,g=s.length;o<g;o++){let a=s[o],A=this._data.get(a);A!=null&&(!i||i(A))&&e(A,a)}}map(e,t){let i=t&&ze(t),n=[],s=this._data,o=[...or(s).call(s)];for(let g=0,a=o.length;g<a;g++){let A=o[g],C=this._data.get(A);C!=null&&(!i||i(C))&&n.push(e(C,A))}return t&&t.order&&this._sort(n,t.order),n}_filterFields(e,t){var i;return e&&wf(i=Ie(t)?t:Se(t)).call(i,(n,s)=>(n[s]=e[s],n),{})}_sort(e,t){if(typeof t=="string"){let i=t;Bi(e).call(e,(n,s)=>{let o=n[i],g=s[i];return o>g?1:o<g?-1:0})}else if(typeof t=="function")Bi(e).call(e,t);else throw new TypeError("Order must be a function or a string")}remove(e,t){let i=[],n=[],s=Ie(e)?e:[e];for(let o=0,g=s.length;o<g;o++){let a=this._remove(s[o]);if(a){let A=a[this._idProp];A!=null&&(i.push(A),n.push(a))}}return i.length&&this._trigger("remove",{items:i,oldData:n},t),i}_remove(e){let t;if(HT(e)?t=e:e&&typeof e=="object"&&(t=e[this._idProp]),t!=null&&this._data.has(t)){let i=this._data.get(t)||null;return this._data.delete(t),--this.length,i}return null}clear(e){var t;let i=[...or(t=this._data).call(t)],n=[];for(let s=0,o=i.length;s<o;s++)n.push(this._data.get(i[s]));return this._data.clear(),this.length=0,this._trigger("remove",{items:i,oldData:n},e),i}max(e){let t=null,i=null;for(let s of eg(n=this._data).call(n)){var n;let o=s[e];typeof o=="number"&&(i==null||o>i)&&(t=s,i=o)}return t||null}min(e){let t=null,i=null;for(let s of eg(n=this._data).call(n)){var n;let o=s[e];typeof o=="number"&&(i==null||o<i)&&(t=s,i=o)}return t||null}distinct(e){let t=this._data,i=[...or(t).call(t)],n=[],s=0;for(let o=0,g=i.length;o<g;o++){let a=i[o],C=t.get(a)[e],I=!1;for(let l=0;l<s;l++)if(n[l]==C){I=!0;break}!I&&C!==void 0&&(n[s]=C,s++)}return n}_addItem(e){let t=yq(e,this._idProp),i=t[this._idProp];if(this._data.has(i))throw new Error("Cannot add item: item with id "+i+" already exists");return this._data.set(i,t),++this.length,i}_updateItem(e){let t=e[this._idProp];if(t==null)throw new Error("Cannot update item: item has no id (item: "+Rr(e)+")");let i=this._data.get(t);if(!i)throw new Error("Cannot update item: no item with id "+t+" found");return this._data.set(t,jT(jT({},i),e)),t}stream(e){if(e){let i=this._data;return new tg({*[Cr](){for(let n of e){let s=i.get(n);s!=null&&(yield[n,s])}}})}else{var t;return new tg({[Cr]:P(t=dq(this._data)).call(t,this._data)})}}};function wq(r,e){return typeof e=="object"&&e!==null&&r===e.idProp&&typeof e.add=="function"&&typeof e.clear=="function"&&typeof e.distinct=="function"&&typeof Ae(e)=="function"&&typeof e.get=="function"&&typeof e.getDataSet=="function"&&typeof e.getIds=="function"&&typeof e.length=="number"&&typeof et(e)=="function"&&typeof e.max=="function"&&typeof e.min=="function"&&typeof e.off=="function"&&typeof e.on=="function"&&typeof e.remove=="function"&&typeof e.setOptions=="function"&&typeof e.stream=="function"&&typeof e.update=="function"&&typeof e.updateOnly=="function"}function AR(r,e){return typeof e=="object"&&e!==null&&r===e.idProp&&typeof Ae(e)=="function"&&typeof e.get=="function"&&typeof e.getDataSet=="function"&&typeof e.getIds=="function"&&typeof e.length=="number"&&typeof et(e)=="function"&&typeof e.off=="function"&&typeof e.on=="function"&&typeof e.stream=="function"&&wq(r,e.getDataSet())}var YT={},hc,KT;function xq(){if(KT)return hc;KT=1;var r=ke(),e=ie(),t=ne(),i=Mt(),n=aO().trim,s=af(),o=t("".charAt),g=r.parseFloat,a=r.Symbol,A=a&&a.iterator,C=1/g(s+"-0")!==-1/0||A&&!e(function(){g(Object(A))});return hc=C?function(l){var h=n(i(l)),d=g(h);return d===0&&o(h,0)==="-"?-0:d}:g,hc}var UT;function Sq(){if(UT)return YT;UT=1;var r=j(),e=xq();return r({global:!0,forced:parseFloat!==e},{parseFloat:e}),YT}var dc,XT;function Eq(){if(XT)return dc;XT=1,Sq();var r=he();return dc=r.parseFloat,dc}var cc,QT;function Tq(){if(QT)return cc;QT=1;var r=Eq();return cc=r,cc}var uc,JT;function kq(){return JT||(JT=1,uc=Tq()),uc}var Oq=kq(),CR=Y(Oq),$T={},ek;function Rq(){if(ek)return $T;ek=1;var r=j(),e=ie(),t=rf().f,i=e(function(){return!Object.getOwnPropertyNames(1)});return r({target:"Object",stat:!0,forced:i},{getOwnPropertyNames:t}),$T}var fc,tk;function Dq(){if(tk)return fc;tk=1,Rq();var r=he(),e=r.Object;return fc=function(i){return e.getOwnPropertyNames(i)},fc}var pc,ik;function Pq(){if(ik)return pc;ik=1;var r=Dq();return pc=r,pc}var mc,nk;function Mq(){return nk||(nk=1,mc=Pq()),mc}var Nq=Mq(),_q=Y(Nq);function Sf(r,e){let t=["node","edge","label"],i=!0,n=Yi(e,"chosen");if(typeof n=="boolean")i=n;else if(typeof n=="object"){if(ue(t).call(t,r)===-1)throw new Error("choosify: subOption '"+r+"' should be one of '"+t.join("', '")+"'");let s=Yi(e,["chosen",r]);(typeof s=="boolean"||typeof s=="function")&&(i=s)}return i}function Qc(r,e,t){if(r.width<=0||r.height<=0)return!1;if(t!==void 0){let s={x:e.x-t.x,y:e.y-t.y};if(t.angle!==0){let o=-t.angle;e={x:Math.cos(o)*s.x-Math.sin(o)*s.y,y:Math.sin(o)*s.x+Math.cos(o)*s.y}}else e=s}let i=r.x+r.width,n=r.y+r.width;return r.left<e.x&&i>e.x&&r.top<e.y&&n>e.y}function ig(r){return typeof r=="string"&&r!==""}function IR(r,e,t,i){let n=i.x,s=i.y;if(typeof i.distanceToBorder=="function"){let o=i.distanceToBorder(r,e),g=Math.sin(e)*o,a=Math.cos(e)*o;a===o?(n+=o,s=i.y):g===o?(n=i.x,s-=o):(n+=a,s-=g)}else i.shape.width>i.shape.height?(n=i.x+i.shape.width*.5,s=i.y-t):(n=i.x+t,s=i.y-i.shape.height*.5);return{x:n,y:s}}var Jc=class{constructor(e){this.measureText=e,this.current=0,this.width=0,this.height=0,this.lines=[]}_add(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"normal";this.lines[e]===void 0&&(this.lines[e]={width:0,height:0,blocks:[]});let n=t;(t===void 0||t==="")&&(n=" ");let s=this.measureText(n,i),o=Fe({},eg(s));o.text=t,o.width=s.width,o.mod=i,(t===void 0||t==="")&&(o.width=0),this.lines[e].blocks.push(o),this.lines[e].width+=o.width}curWidth(){let e=this.lines[this.current];return e===void 0?0:e.width}append(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t)}newLine(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal";this._add(this.current,e,t),this.current++}determineLineHeights(){for(let e=0;e<this.lines.length;e++){let t=this.lines[e],i=0;if(t.blocks!==void 0)for(let n=0;n<t.blocks.length;n++){let s=t.blocks[n];i<s.height&&(i=s.height)}t.height=i}}determineLabelSize(){let e=0,t=0;for(let i=0;i<this.lines.length;i++){let n=this.lines[i];n.width>e&&(e=n.width),t+=n.height}this.width=e,this.height=t}removeEmptyBlocks(){let e=[];for(let t=0;t<this.lines.length;t++){let i=this.lines[t];if(i.blocks.length===0||t===this.lines.length-1&&i.width===0)continue;let n={};Fe(n,i),n.blocks=[];let s,o=[];for(let g=0;g<i.blocks.length;g++){let a=i.blocks[g];a.width!==0?o.push(a):s===void 0&&(s=a)}o.length===0&&s!==void 0&&o.push(s),n.blocks=o,e.push(n)}return e}finalize(){this.determineLineHeights(),this.determineLabelSize();let e=this.removeEmptyBlocks();return{width:this.width,height:this.height,lines:e}}},Bq={"<b>":/<b>/,"<i>":/<i>/,"<code>":/<code>/,"</b>":/<\/b>/,"</i>":/<\/i>/,"</code>":/<\/code>/,"*":/\*/,_:/_/,"`":/`/,afterBold:/[^*]/,afterItal:/[^_]/,afterMono:/[^`]/},ng=class{constructor(e){this.text=e,this.bold=!1,this.ital=!1,this.mono=!1,this.spacing=!1,this.position=0,this.buffer="",this.modStack=[],this.blocks=[]}mod(){return this.modStack.length===0?"normal":this.modStack[0]}modName(){if(this.modStack.length===0)return"normal";if(this.modStack[0]==="mono")return"mono";if(this.bold&&this.ital)return"boldital";if(this.bold)return"bold";if(this.ital)return"ital"}emitBlock(){this.spacing&&(this.add(" "),this.spacing=!1),this.buffer.length>0&&(this.blocks.push({text:this.buffer,mod:this.modName()}),this.buffer="")}add(e){e===" "&&(this.spacing=!0),this.spacing&&(this.buffer+=" ",this.spacing=!1),e!=" "&&(this.buffer+=e)}parseWS(e){return/[ \t]/.test(e)?(this.mono?this.add(e):this.spacing=!0,!0):!1}setTag(e){this.emitBlock(),this[e]=!0,this.modStack.unshift(e)}unsetTag(e){this.emitBlock(),this[e]=!1,this.modStack.shift()}parseStartTag(e,t){return!this.mono&&!this[e]&&this.match(t)?(this.setTag(e),!0):!1}match(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,[i,n]=this.prepareRegExp(e),s=i.test(this.text.substr(this.position,n));return s&&t&&(this.position+=n-1),s}parseEndTag(e,t,i){let n=this.mod()===e;return e==="mono"?n=n&&this.mono:n=n&&!this.mono,n&&this.match(t)?(i!==void 0?(this.position===this.text.length-1||this.match(i,!1))&&this.unsetTag(e):this.unsetTag(e),!0):!1}replace(e,t){return this.match(e)?(this.add(t),this.position+=length-1,!0):!1}prepareRegExp(e){let t,i;if(e instanceof RegExp)i=e,t=1;else{let n=Bq[e];n!==void 0?i=n:i=new RegExp(e),t=e.length}return[i,t]}},$c=class{constructor(e,t,i,n){this.ctx=e,this.parent=t,this.selected=i,this.hover=n;let s=(o,g)=>{if(o===void 0)return 0;let a=this.parent.getFormattingValues(e,i,n,g),A=0;return o!==""&&(A=this.ctx.measureText(o).width),{width:A,values:a}};this.lines=new Jc(s)}process(e){if(!ig(e))return this.lines.finalize();let t=this.parent.fontOptions;e=e.replace(/\r\n/g,`
`),e=e.replace(/\r/g,`
`);let i=String(e).split(`
`),n=i.length;if(t.multi)for(let s=0;s<n;s++){let o=this.splitBlocks(i[s],t.multi);if(o!==void 0){if(o.length===0){this.lines.newLine("");continue}if(t.maxWdt>0)for(let g=0;g<o.length;g++){let a=o[g].mod,A=o[g].text;this.splitStringIntoLines(A,a,!0)}else for(let g=0;g<o.length;g++){let a=o[g].mod,A=o[g].text;this.lines.append(A,a)}this.lines.newLine()}}else if(t.maxWdt>0)for(let s=0;s<n;s++)this.splitStringIntoLines(i[s]);else for(let s=0;s<n;s++)this.lines.newLine(i[s]);return this.lines.finalize()}decodeMarkupSystem(e){let t="none";return e==="markdown"||e==="md"?t="markdown":(e===!0||e==="html")&&(t="html"),t}splitHtmlBlocks(e){let t=new ng(e),i=n=>/&/.test(n)?(t.replace(t.text,"&lt;","<")||t.replace(t.text,"&amp;","&")||t.add("&"),!0):!1;for(;t.position<t.text.length;){let n=t.text.charAt(t.position);t.parseWS(n)||/</.test(n)&&(t.parseStartTag("bold","<b>")||t.parseStartTag("ital","<i>")||t.parseStartTag("mono","<code>")||t.parseEndTag("bold","</b>")||t.parseEndTag("ital","</i>")||t.parseEndTag("mono","</code>"))||i(n)||t.add(n),t.position++}return t.emitBlock(),t.blocks}splitMarkdownBlocks(e){let t=new ng(e),i=!0,n=s=>/\\/.test(s)?(t.position<this.text.length+1&&(t.position++,s=this.text.charAt(t.position),/ \t/.test(s)?t.spacing=!0:(t.add(s),i=!1)),!0):!1;for(;t.position<t.text.length;){let s=t.text.charAt(t.position);t.parseWS(s)||n(s)||(i||t.spacing)&&(t.parseStartTag("bold","*")||t.parseStartTag("ital","_")||t.parseStartTag("mono","`"))||t.parseEndTag("bold","*","afterBold")||t.parseEndTag("ital","_","afterItal")||t.parseEndTag("mono","`","afterMono")||(t.add(s),i=!1),t.position++}return t.emitBlock(),t.blocks}splitBlocks(e,t){let i=this.decodeMarkupSystem(t);if(i==="none")return[{text:e,mod:"normal"}];if(i==="markdown")return this.splitMarkdownBlocks(e);if(i==="html")return this.splitHtmlBlocks(e)}overMaxWidth(e){let t=this.ctx.measureText(e).width;return this.lines.curWidth()+t>this.parent.fontOptions.maxWdt}getLongestFit(e){let t="",i=0;for(;i<e.length;){let s=t+(t===""?"":" ")+e[i];if(this.overMaxWidth(s))break;t=s,i++}return i}getLongestFitWord(e){let t=0;for(;t<e.length&&!this.overMaxWidth(Yt(e).call(e,0,t));)t++;return t}splitStringIntoLines(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"normal",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parent.getFormattingValues(this.ctx,this.selected,this.hover,t),e=e.replace(/^( +)/g,"$1\r"),e=e.replace(/([^\r][^ ]*)( +)/g,"$1\r$2\r");let n=e.split("\r");for(;n.length>0;){let s=this.getLongestFit(n);if(s===0){let o=n[0],g=this.getLongestFitWord(o);this.lines.newLine(Yt(o).call(o,0,g),t),n[0]=Yt(o).call(o,g)}else{let o=s;n[s-1]===" "?s--:n[o]===" "&&o++;let g=Yt(n).call(n,0,s).join("");s==n.length&&i?this.lines.append(g,t):this.lines.newLine(g,t),n=Yt(n).call(n,o)}}}},As=["bold","ital","boldital","mono"],rg=class r{constructor(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.body=e,this.pointToSelf=!1,this.baseSize=void 0,this.fontOptions={},this.setOptions(t),this.size={top:0,left:0,width:0,height:0,yLine:0},this.isEdgeLabel=i}setOptions(e){if(this.elementOptions=e,this.initFontOptions(e.font),ig(e.label)?this.labelDirty=!0:e.label=void 0,e.font!==void 0&&e.font!==null){if(typeof e.font=="string")this.baseSize=this.fontOptions.size;else if(typeof e.font=="object"){let t=e.font.size;t!==void 0&&(this.baseSize=t)}}}initFontOptions(e){if($(As,t=>{this.fontOptions[t]={}}),r.parseFontString(this.fontOptions,e)){this.fontOptions.vadjust=0;return}$(e,(t,i)=>{t!=null&&typeof t!="object"&&(this.fontOptions[i]=t)})}static parseFontString(e,t){if(!t||typeof t!="string")return!1;let i=t.split(" ");return e.size=+i[0].replace("px",""),e.face=i[1],e.color=i[2],!0}constrain(e){let t={constrainWidth:!1,maxWdt:-1,minWdt:-1,constrainHeight:!1,minHgt:-1,valign:"middle"},i=Yi(e,"widthConstraint");if(typeof i=="number")t.maxWdt=Number(i),t.minWdt=Number(i);else if(typeof i=="object"){let s=Yi(e,["widthConstraint","maximum"]);typeof s=="number"&&(t.maxWdt=Number(s));let o=Yi(e,["widthConstraint","minimum"]);typeof o=="number"&&(t.minWdt=Number(o))}let n=Yi(e,"heightConstraint");if(typeof n=="number")t.minHgt=Number(n);else if(typeof n=="object"){let s=Yi(e,["heightConstraint","minimum"]);typeof s=="number"&&(t.minHgt=Number(s));let o=Yi(e,["heightConstraint","valign"]);typeof o=="string"&&(o==="top"||o==="bottom")&&(t.valign=o)}return t}update(e,t){this.setOptions(e,!0),this.propagateFonts(t),me(this.fontOptions,this.constrain(t)),this.fontOptions.chooser=Sf("label",t)}adjustSizes(e){let t=e?e.right+e.left:0;this.fontOptions.constrainWidth&&(this.fontOptions.maxWdt-=t,this.fontOptions.minWdt-=t);let i=e?e.top+e.bottom:0;this.fontOptions.constrainHeight&&(this.fontOptions.minHgt-=i)}addFontOptionsToPile(e,t){for(let i=0;i<t.length;++i)this.addFontToPile(e,t[i])}addFontToPile(e,t){if(t===void 0||t.font===void 0||t.font===null)return;let i=t.font;e.push(i)}getBasicOptions(e){let t={};for(let i=0;i<e.length;++i){let n=e[i],s={};r.parseFontString(s,n)&&(n=s),$(n,(o,g)=>{o!==void 0&&(Object.prototype.hasOwnProperty.call(t,g)||(ue(As).call(As,g)!==-1?t[g]={}:t[g]=o))})}return t}getFontOption(e,t,i){let n;for(let s=0;s<e.length;++s){let o=e[s];if(Object.prototype.hasOwnProperty.call(o,t)){if(n=o[t],n==null)continue;let g={};if(r.parseFontString(g,n)&&(n=g),Object.prototype.hasOwnProperty.call(n,i))return n[i]}}if(Object.prototype.hasOwnProperty.call(this.fontOptions,i))return this.fontOptions[i];throw new Error("Did not find value for multi-font for property: '"+i+"'")}getFontOptions(e,t){let i={},n=["color","size","face","mod","vadjust"];for(let s=0;s<n.length;++s){let o=n[s];i[o]=this.getFontOption(e,t,o)}return i}propagateFonts(e){let t=[];this.addFontOptionsToPile(t,e),this.fontOptions=this.getBasicOptions(t);for(let i=0;i<As.length;++i){let n=As[i],s=this.fontOptions[n],o=this.getFontOptions(t,n);$(o,(g,a)=>{s[a]=g}),s.size=Number(s.size),s.vadjust=Number(s.vadjust)}}draw(e,t,i,n,s){let o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";if(this.elementOptions.label===void 0)return;let g=this.fontOptions.size*this.body.view.scale;this.elementOptions.label&&g<this.elementOptions.scaling.label.drawThreshold-1||(g>=this.elementOptions.scaling.label.maxVisible&&(g=Number(this.elementOptions.scaling.label.maxVisible)/this.body.view.scale),this.calculateLabelSize(e,n,s,t,i,o),this._drawBackground(e),this._drawText(e,t,this.size.yLine,o,g))}_drawBackground(e){if(this.fontOptions.background!==void 0&&this.fontOptions.background!=="none"){e.fillStyle=this.fontOptions.background;let t=this.getSize();e.fillRect(t.left,t.top,t.width,t.height)}}_drawText(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"middle",s=arguments.length>4?arguments[4]:void 0;[t,i]=this._setAlignment(e,t,i,n),e.textAlign="left",t=t-this.size.width/2,this.fontOptions.valign&&this.size.height>this.size.labelHeight&&(this.fontOptions.valign==="top"&&(i-=(this.size.height-this.size.labelHeight)/2),this.fontOptions.valign==="bottom"&&(i+=(this.size.height-this.size.labelHeight)/2));for(let o=0;o<this.lineCount;o++){let g=this.lines[o];if(g&&g.blocks){let a=0;this.isEdgeLabel||this.fontOptions.align==="center"?a+=(this.size.width-g.width)/2:this.fontOptions.align==="right"&&(a+=this.size.width-g.width);for(let A=0;A<g.blocks.length;A++){let C=g.blocks[A];e.font=C.font;let[I,l]=this._getColor(C.color,s,C.strokeColor);C.strokeWidth>0&&(e.lineWidth=C.strokeWidth,e.strokeStyle=l,e.lineJoin="round"),e.fillStyle=I,C.strokeWidth>0&&e.strokeText(C.text,t+a,i+C.vadjust),e.fillText(C.text,t+a,i+C.vadjust),a+=C.width}i+=g.height}}}_setAlignment(e,t,i,n){if(this.isEdgeLabel&&this.fontOptions.align!=="horizontal"&&this.pointToSelf===!1){t=0,i=0;let s=2;this.fontOptions.align==="top"?(e.textBaseline="alphabetic",i-=2*s):this.fontOptions.align==="bottom"?(e.textBaseline="hanging",i+=2*s):e.textBaseline="middle"}else e.textBaseline=n;return[t,i]}_getColor(e,t,i){let n=e||"#000000",s=i||"#ffffff";if(t<=this.elementOptions.scaling.label.drawThreshold){let o=Math.max(0,Math.min(1,1-(this.elementOptions.scaling.label.drawThreshold-t)));n=Rt(n,o),s=Rt(s,o)}return[n,s]}getTextSize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this._processLabel(e,t,i),{width:this.size.width,height:this.size.height,lineCount:this.lineCount}}getSize(){let t=this.size.left,i=this.size.top-.5*2;if(this.isEdgeLabel){let s=-this.size.width*.5;switch(this.fontOptions.align){case"middle":t=s,i=-this.size.height*.5;break;case"top":t=s,i=-(this.size.height+2);break;case"bottom":t=s,i=2;break}}return{left:t,top:i,width:this.size.width,height:this.size.height}}calculateLabelSize(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=arguments.length>5&&arguments[5]!==void 0?arguments[5]:"middle";this._processLabel(e,t,i),this.size.left=n-this.size.width*.5,this.size.top=s-this.size.height*.5,this.size.yLine=s+(1-this.lineCount)*.5*this.fontOptions.size,o==="hanging"&&(this.size.top+=.5*this.fontOptions.size,this.size.top+=4,this.size.yLine+=4)}getFormattingValues(e,t,i,n){let s=function(a,A,C){return A==="normal"?C==="mod"?"":a[C]:a[A][C]!==void 0?a[A][C]:a[C]},o={color:s(this.fontOptions,n,"color"),size:s(this.fontOptions,n,"size"),face:s(this.fontOptions,n,"face"),mod:s(this.fontOptions,n,"mod"),vadjust:s(this.fontOptions,n,"vadjust"),strokeWidth:this.fontOptions.strokeWidth,strokeColor:this.fontOptions.strokeColor};(t||i)&&(n==="normal"&&this.fontOptions.chooser===!0&&this.elementOptions.labelHighlightBold?o.mod="bold":typeof this.fontOptions.chooser=="function"&&this.fontOptions.chooser(o,this.elementOptions.id,t,i));let g="";return o.mod!==void 0&&o.mod!==""&&(g+=o.mod+" "),g+=o.size+"px "+o.face,e.font=g.replace(/"/g,""),o.font=e.font,o.height=o.size,o}differentState(e,t){return e!==this.selectedState||t!==this.hoverState}_processLabelText(e,t,i,n){return new $c(e,this,t,i).process(n)}_processLabel(e,t,i){if(this.labelDirty===!1&&!this.differentState(t,i))return;let n=this._processLabelText(e,t,i,this.elementOptions.label);this.fontOptions.minWdt>0&&n.width<this.fontOptions.minWdt&&(n.width=this.fontOptions.minWdt),this.size.labelHeight=n.height,this.fontOptions.minHgt>0&&n.height<this.fontOptions.minHgt&&(n.height=this.fontOptions.minHgt),this.lines=n.lines,this.lineCount=n.lines.length,this.size.width=n.width,this.size.height=n.height,this.selectedState=t,this.hoverState=i,this.labelDirty=!1}visible(){return!(this.size.width===0||this.size.height===0||this.elementOptions.label===void 0||this.fontOptions.size*this.body.view.scale<this.elementOptions.scaling.label.drawThreshold-1)}},Fi=class{constructor(e,t,i){this.body=t,this.labelModule=i,this.setOptions(e),this.top=void 0,this.left=void 0,this.height=void 0,this.width=void 0,this.radius=void 0,this.margin=void 0,this.refreshNeeded=!0,this.boundingBox={top:0,left:0,right:0,bottom:0}}setOptions(e){this.options=e}_setMargins(e){this.margin={},this.options.margin&&(typeof this.options.margin=="object"?(this.margin.top=this.options.margin.top,this.margin.right=this.options.margin.right,this.margin.bottom=this.options.margin.bottom,this.margin.left=this.options.margin.left):(this.margin.top=this.options.margin,this.margin.right=this.options.margin,this.margin.bottom=this.options.margin,this.margin.left=this.options.margin)),e.adjustSizes(this.margin)}_distanceToBorder(e,t){let i=this.options.borderWidth;return e&&this.resize(e),Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+i}enableShadow(e,t){t.shadow&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}disableShadow(e,t){t.shadow&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}enableBorderDashes(e,t){if(t.borderDashes!==!1)if(e.setLineDash!==void 0){let i=t.borderDashes;i===!0&&(i=[5,15]),e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1}disableBorderDashes(e,t){t.borderDashes!==!1&&(e.setLineDash!==void 0?e.setLineDash([0]):(console.warn("setLineDash is not supported in this browser. The dashed borders cannot be used."),this.options.shapeProperties.borderDashes=!1,t.borderDashes=!1))}needsRefresh(e,t){return this.refreshNeeded===!0?(this.refreshNeeded=!1,!0):this.width===void 0||this.labelModule.differentState(e,t)}initContextForDraw(e,t){let i=t.borderWidth/this.body.view.scale;e.lineWidth=Math.min(this.width,i),e.strokeStyle=t.borderColor,e.fillStyle=t.color}performStroke(e,t){let i=t.borderWidth/this.body.view.scale;e.save(),i>0&&(this.enableBorderDashes(e,t),e.stroke(),this.disableBorderDashes(e,t)),e.restore()}performFill(e,t){e.save(),e.fillStyle=t.color,this.enableShadow(e,t),_s(e).call(e),this.disableShadow(e,t),e.restore(),this.performStroke(e,t)}_addBoundingBoxMargin(e){this.boundingBox.left-=e,this.boundingBox.top-=e,this.boundingBox.bottom+=e,this.boundingBox.right+=e}_updateBoundingBox(e,t,i,n,s){i!==void 0&&this.resize(i,n,s),this.left=e-this.width/2,this.top=t-this.height/2,this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s)}getDimensionsFromLabel(e,t,i){this.textSize=this.labelModule.getTextSize(e,t,i);let n=this.textSize.width,s=this.textSize.height,o=14;return n===0&&(n=o,s=o),{width:n,height:s}}},Fq=class extends Fi{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){let n=this.getDimensionsFromLabel(e,t,i);this.width=n.width+this.margin.right+this.margin.left,this.height=n.height+this.margin.top+this.margin.bottom,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),Vk(e,this.left,this.top,this.width,this.height,o.borderRadius),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}updateBoundingBox(e,t,i,n,s){this._updateBoundingBox(e,t,i,n,s);let o=this.options.shapeProperties.borderRadius;this._addBoundingBoxMargin(o)}distanceToBorder(e,t){e&&this.resize(e);let i=this.options.borderWidth;return Math.min(Math.abs(this.width/2/Math.cos(t)),Math.abs(this.height/2/Math.sin(t)))+i}},ws=class extends Fi{constructor(e,t,i){super(e,t,i),this.labelOffset=0,this.selected=!1}setOptions(e,t,i){this.options=e,t===void 0&&i===void 0||this.setImages(t,i)}setImages(e,t){t&&this.selected?(this.imageObj=t,this.imageObjAlt=e):(this.imageObj=e,this.imageObjAlt=t)}switchImages(e){let t=e&&!this.selected||!e&&this.selected;if(this.selected=e,this.imageObjAlt!==void 0&&t){let i=this.imageObj;this.imageObj=this.imageObjAlt,this.imageObjAlt=i}}_getImagePadding(){let e={top:0,right:0,bottom:0,left:0};if(this.options.imagePadding){let t=this.options.imagePadding;typeof t=="object"?(e.top=t.top,e.right=t.right,e.bottom=t.bottom,e.left=t.left):(e.top=t,e.right=t,e.bottom=t,e.left=t)}return e}_resizeImage(){let e,t;if(this.options.shapeProperties.useImageSize===!1){let i=1,n=1;this.imageObj.width&&this.imageObj.height&&(this.imageObj.width>this.imageObj.height?i=this.imageObj.width/this.imageObj.height:n=this.imageObj.height/this.imageObj.width),e=this.options.size*2*i,t=this.options.size*2*n}else{let i=this._getImagePadding();e=this.imageObj.width+i.left+i.right,t=this.imageObj.height+i.top+i.bottom}this.width=e,this.height=t,this.radius=.5*this.width}_drawRawCircle(e,t,i,n){this.initContextForDraw(e,n),$u(e,t,i,n.size),this.performFill(e,n)}_drawImageAtPosition(e,t){if(this.imageObj.width!=0){e.globalAlpha=t.opacity!==void 0?t.opacity:1,this.enableShadow(e,t);let i=1;this.options.shapeProperties.interpolation===!0&&(i=this.imageObj.width/this.width/this.body.view.scale);let n=this._getImagePadding(),s=this.left+n.left,o=this.top+n.top,g=this.width-n.left-n.right,a=this.height-n.top-n.bottom;this.imageObj.drawImageAtPosition(e,i,s,o,g,a),this.disableShadow(e,t)}}_drawImageLabel(e,t,i,n,s){let o=0;if(this.height!==void 0){o=this.height*.5;let a=this.labelModule.getTextSize(e,n,s);a.lineCount>=1&&(o+=a.height/2)}let g=i+o;this.options.label&&(this.labelOffset=o),this.labelModule.draw(e,t,g,n,s,"hanging")}},Lq=class extends ws{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){let n=this.getDimensionsFromLabel(e,t,i),s=Math.max(n.width+this.margin.right+this.margin.left,n.height+this.margin.top+this.margin.bottom);this.options.size=s/2,this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this._drawRawCircle(e,t,i,o),this.updateBoundingBox(t,i),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,i,n,s)}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size}distanceToBorder(e){return e&&this.resize(e),this.width*.5}},eu=class extends ws{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){let s=this.options.size*2;this.width=s,this.height=s,this.radius=.5*this.width;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){this.switchImages(n),this.resize();let g=t,a=i;this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,g+=this.width/2,a+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this._drawRawCircle(e,g,a,o),e.save(),e.clip(),this._drawImageAtPosition(e,o),e.restore(),this._drawImageLabel(e,g,a,n,s),this.updateBoundingBox(t,i)}updateBoundingBox(e,t){this.options.shapeProperties.coordinateOrigin==="top-left"?(this.boundingBox.top=t,this.boundingBox.left=e,this.boundingBox.right=e+this.options.size*2,this.boundingBox.bottom=t+this.options.size*2):(this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size),this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset)}distanceToBorder(e){return e&&this.resize(e),this.width*.5}},pi=class extends Fi{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{size:this.options.size};if(this.needsRefresh(t,i)){var s,o;this.labelModule.getTextSize(e,t,i);let g=2*n.size;this.width=(s=this.customSizeWidth)!==null&&s!==void 0?s:g,this.height=(o=this.customSizeHeight)!==null&&o!==void 0?o:g,this.radius=.5*this.width}}_drawShape(e,t,i,n,s,o,g,a){return this.resize(e,o,g,a),this.left=n-this.width/2,this.top=s-this.height/2,this.initContextForDraw(e,a),zM(t)(e,n,s,a.size),this.performFill(e,a),this.options.icon!==void 0&&this.options.icon.code!==void 0&&(e.font=(o?"bold ":"")+this.height/2+"px "+(this.options.icon.face||"FontAwesome"),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",e.fillText(this.options.icon.code,n,s)),{drawExternalLabel:()=>{if(this.options.label!==void 0){this.labelModule.calculateLabelSize(e,o,g,n,s,"hanging");let A=s+.5*this.height+.5*this.labelModule.size.height;this.labelModule.draw(e,n,A,o,g,"hanging")}this.updateBoundingBox(n,s)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.size,this.boundingBox.left=e-this.options.size,this.boundingBox.right=e+this.options.size,this.boundingBox.bottom=t+this.options.size,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height))}};function rk(r,e){var t=Se(r);if(ci){var i=ci(r);e&&(i=ze(i).call(i,function(n){return yi(r,n).enumerable})),t.push.apply(t,i)}return t}function zq(r){for(var e=1;e<arguments.length;e++){var t,i,n=arguments[e]!=null?arguments[e]:{};e%2?Ae(t=rk(Object(n),!0)).call(t,function(s){Ee(r,s,n[s])}):ui?Ws(r,ui(n)):Ae(i=rk(Object(n))).call(i,function(s){js(r,s,yi(n,s))})}return r}var tu=class extends pi{constructor(e,t,i,n){super(e,t,i,n),this.ctxRenderer=n}draw(e,t,i,n,s,o){this.resize(e,n,s,o),this.left=t-this.width/2,this.top=i-this.height/2,e.save();let g=this.ctxRenderer({ctx:e,id:this.options.id,x:t,y:i,state:{selected:n,hover:s},style:zq({},o),label:this.options.label});if(g.drawNode!=null&&g.drawNode(),e.restore(),g.drawExternalLabel){let a=g.drawExternalLabel;g.drawExternalLabel=()=>{e.save(),a(),e.restore()}}return g.nodeDimensions&&(this.customSizeWidth=g.nodeDimensions.width,this.customSizeHeight=g.nodeDimensions.height),g}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},iu=class extends Fi{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){if(this.needsRefresh(t,i)){let s=this.getDimensionsFromLabel(e,t,i).width+this.margin.right+this.margin.left;this.width=s,this.height=s,this.radius=this.width/2}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.initContextForDraw(e,o),Wk(e,t-this.width/2,i-this.height/2,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},qq=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"diamond",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},nu=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"circle",2,t,i,n,s,o)}distanceToBorder(e){return e&&this.resize(e),this.options.size}},sg=class extends Fi{constructor(e,t,i){super(e,t,i)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.needsRefresh(t,i)){let n=this.getDimensionsFromLabel(e,t,i);this.height=n.height*2,this.width=n.width+n.height,this.radius=.5*this.width}}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width*.5,this.top=i-this.height*.5,this.initContextForDraw(e,o),Bc(e,this.left,this.top,this.width,this.height),this.performFill(e,o),this.updateBoundingBox(t,i,e,n,s),this.labelModule.draw(e,t,i,n,s)}distanceToBorder(e,t){e&&this.resize(e);let i=this.width*.5,n=this.height*.5,s=Math.sin(t)*i,o=Math.cos(t)*n;return i*n/Math.sqrt(s*s+o*o)}},ru=class extends Fi{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.iconSize={width:Number(this.options.icon.size),height:Number(this.options.icon.size)},this.width=this.iconSize.width+this.margin.right+this.margin.left,this.height=this.iconSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){return this.resize(e,n,s),this.options.icon.size=this.options.icon.size||50,this.left=t-this.width/2,this.top=i-this.height/2,this._icon(e,t,i,n,s,o),{drawExternalLabel:()=>{this.options.label!==void 0&&this.labelModule.draw(e,this.left+this.iconSize.width/2+this.margin.left,i+this.height/2+5,n),this.updateBoundingBox(t,i)}}}updateBoundingBox(e,t){this.boundingBox.top=t-this.options.icon.size*.5,this.boundingBox.left=e-this.options.icon.size*.5,this.boundingBox.right=e+this.options.icon.size*.5,this.boundingBox.bottom=t+this.options.icon.size*.5,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelModule.size.height+5))}_icon(e,t,i,n,s,o){let g=Number(this.options.icon.size);this.options.icon.code!==void 0?(e.font=[this.options.icon.weight!=null?this.options.icon.weight:n?"bold":"",(this.options.icon.weight!=null&&n?5:0)+g+"px",this.options.icon.face].join(" "),e.fillStyle=this.options.icon.color||"black",e.textAlign="center",e.textBaseline="middle",this.enableShadow(e,o),e.fillText(this.options.icon.code,t,i),this.disableShadow(e,o)):console.error("When using the icon shape, you need to define the code in the icon options object. This can be done per node or globally.")}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},Vq=class extends ws{constructor(e,t,i,n,s){super(e,t,i),this.setImages(n,s)}resize(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.selected,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.hover;if(this.imageObj.src===void 0||this.imageObj.width===void 0||this.imageObj.height===void 0){let s=this.options.size*2;this.width=s,this.height=s;return}this.needsRefresh(t,i)&&this._resizeImage()}draw(e,t,i,n,s,o){e.save(),this.switchImages(n),this.resize();let g=t,a=i;if(this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=t,this.top=i,g+=this.width/2,a+=this.height/2):(this.left=t-this.width/2,this.top=i-this.height/2),this.options.shapeProperties.useBorderWithImage===!0){let A=this.options.borderWidth,C=this.options.borderWidthSelected||2*this.options.borderWidth,I=(n?C:A)/this.body.view.scale;e.lineWidth=Math.min(this.width,I),e.beginPath();let l=n?this.options.color.highlight.border:s?this.options.color.hover.border:this.options.color.border,h=n?this.options.color.highlight.background:s?this.options.color.hover.background:this.options.color.background;o.opacity!==void 0&&(l=Rt(l,o.opacity),h=Rt(h,o.opacity)),e.strokeStyle=l,e.fillStyle=h,e.rect(this.left-.5*e.lineWidth,this.top-.5*e.lineWidth,this.width+e.lineWidth,this.height+e.lineWidth),_s(e).call(e),this.performStroke(e,o),e.closePath()}this._drawImageAtPosition(e,o),this._drawImageLabel(e,g,a,n,s),this.updateBoundingBox(t,i),e.restore()}updateBoundingBox(e,t){this.resize(),this.options.shapeProperties.coordinateOrigin==="top-left"?(this.left=e,this.top=t):(this.left=e-this.width/2,this.top=t-this.height/2),this.boundingBox.left=this.left,this.boundingBox.top=this.top,this.boundingBox.bottom=this.top+this.height,this.boundingBox.right=this.left+this.width,this.options.label!==void 0&&this.labelModule.size.width>0&&(this.boundingBox.left=Math.min(this.boundingBox.left,this.labelModule.size.left),this.boundingBox.right=Math.max(this.boundingBox.right,this.labelModule.size.left+this.labelModule.size.width),this.boundingBox.bottom=Math.max(this.boundingBox.bottom,this.boundingBox.bottom+this.labelOffset))}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},su=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"square",2,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},ou=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"hexagon",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},gu=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"star",4,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},au=class extends Fi{constructor(e,t,i){super(e,t,i),this._setMargins(i)}resize(e,t,i){this.needsRefresh(t,i)&&(this.textSize=this.labelModule.getTextSize(e,t,i),this.width=this.textSize.width+this.margin.right+this.margin.left,this.height=this.textSize.height+this.margin.top+this.margin.bottom,this.radius=.5*this.width)}draw(e,t,i,n,s,o){this.resize(e,n,s),this.left=t-this.width/2,this.top=i-this.height/2,this.enableShadow(e,o),this.labelModule.draw(e,this.left+this.textSize.width/2+this.margin.left,this.top+this.textSize.height/2+this.margin.top,n,s),this.disableShadow(e,o),this.updateBoundingBox(t,i,e,n,s)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},Wq=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangle",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}},Au=class extends pi{constructor(e,t,i){super(e,t,i)}draw(e,t,i,n,s,o){return this._drawShape(e,"triangleDown",3,t,i,n,s,o)}distanceToBorder(e,t){return this._distanceToBorder(e,t)}};function sk(r,e){var t=Se(r);if(ci){var i=ci(r);e&&(i=ze(i).call(i,function(n){return yi(r,n).enumerable})),t.push.apply(t,i)}return t}function ok(r){for(var e=1;e<arguments.length;e++){var t,i,n=arguments[e]!=null?arguments[e]:{};e%2?Ae(t=sk(Object(n),!0)).call(t,function(s){Ee(r,s,n[s])}):ui?Ws(r,ui(n)):Ae(i=sk(Object(n))).call(i,function(s){js(r,s,yi(n,s))})}return r}var ot=class r{constructor(e,t,i,n,s,o){this.options=Ji(s),this.globalOptions=s,this.defaultOptions=o,this.body=t,this.edges=[],this.id=void 0,this.imagelist=i,this.grouplist=n,this.x=void 0,this.y=void 0,this.baseSize=this.options.size,this.baseFontSize=this.options.font.size,this.predefinedPosition=!1,this.selected=!1,this.hover=!1,this.labelModule=new rg(this.body,this.options,!1),this.setOptions(e)}attachEdge(e){var t;ue(t=this.edges).call(t,e)===-1&&this.edges.push(e)}detachEdge(e){var t;let i=ue(t=this.edges).call(t,e);if(i!=-1){var n;li(n=this.edges).call(n,i,1)}}setOptions(e){let t=this.options.shape;if(!e)return;if(typeof e.color<"u"&&(this._localColor=e.color),e.id!==void 0&&(this.id=e.id),this.id===void 0)throw new Error("Node must have an id");r.checkMass(e,this.id),e.x!==void 0&&(e.x===null?(this.x=void 0,this.predefinedPosition=!1):(this.x=Ht(e.x),this.predefinedPosition=!0)),e.y!==void 0&&(e.y===null?(this.y=void 0,this.predefinedPosition=!1):(this.y=Ht(e.y),this.predefinedPosition=!0)),e.size!==void 0&&(this.baseSize=e.size),e.value!==void 0&&(e.value=CR(e.value)),r.parseOptions(this.options,e,!0,this.globalOptions,this.grouplist);let i=[e,this.options,this.defaultOptions];return this.chooser=Sf("node",i),this._load_images(),this.updateLabelModule(e),e.opacity!==void 0&&r.checkOpacity(e.opacity)&&(this.options.opacity=e.opacity),this.updateShape(t),e.hidden!==void 0||e.physics!==void 0}_load_images(){if((this.options.shape==="circularImage"||this.options.shape==="image")&&this.options.image===void 0)throw new Error("Option image must be defined for node type '"+this.options.shape+"'");if(this.options.image!==void 0){if(this.imagelist===void 0)throw new Error("Internal Error: No images provided");if(typeof this.options.image=="string")this.imageObj=this.imagelist.load(this.options.image,this.options.brokenImage,this.id);else{if(this.options.image.unselected===void 0)throw new Error("No unselected image provided");this.imageObj=this.imagelist.load(this.options.image.unselected,this.options.brokenImage,this.id),this.options.image.selected!==void 0?this.imageObjAlt=this.imagelist.load(this.options.image.selected,this.options.brokenImage,this.id):this.imageObjAlt=void 0}}}static checkOpacity(e){return 0<=e&&e<=1}static checkCoordinateOrigin(e){return e===void 0||e==="center"||e==="top-left"}static updateGroupOptions(e,t,i){var n;if(i===void 0)return;let s=e.group;if(t!==void 0&&t.group!==void 0&&s!==t.group)throw new Error("updateGroupOptions: group values in options don't match.");if(!(typeof s=="number"||typeof s=="string"&&s!=""))return;let g=i.get(s);g.opacity!==void 0&&t.opacity===void 0&&(r.checkOpacity(g.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+g.opacity),g.opacity=void 0));let a=ze(n=_q(t)).call(n,A=>t[A]!=null);a.push("font"),Jo(a,e,g),e.color=Vc(e.color)}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4?arguments[4]:void 0;if(Jo(["color","fixed","shadow"],e,t,i),r.checkMass(t),e.opacity!==void 0&&(r.checkOpacity(e.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity),e.opacity=void 0)),t.opacity!==void 0&&(r.checkOpacity(t.opacity)||(console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+t.opacity),t.opacity=void 0)),t.shapeProperties&&!r.checkCoordinateOrigin(t.shapeProperties.coordinateOrigin)&&console.error("Invalid option for node coordinateOrigin, found: "+t.shapeProperties.coordinateOrigin),Ot(e,t,"shadow",n),t.color!==void 0&&t.color!==null){let g=Vc(t.color);qO(e.color,g)}else i===!0&&t.color===null&&(e.color=Ji(n.color));t.fixed!==void 0&&t.fixed!==null&&(typeof t.fixed=="boolean"?(e.fixed.x=t.fixed,e.fixed.y=t.fixed):(t.fixed.x!==void 0&&typeof t.fixed.x=="boolean"&&(e.fixed.x=t.fixed.x),t.fixed.y!==void 0&&typeof t.fixed.y=="boolean"&&(e.fixed.y=t.fixed.y))),i===!0&&t.font===null&&(e.font=Ji(n.font)),r.updateGroupOptions(e,t,s),t.scaling!==void 0&&Ot(e.scaling,t.scaling,"label",n.scaling)}getFormattingValues(){let e={color:this.options.color.background,opacity:this.options.opacity,borderWidth:this.options.borderWidth,borderColor:this.options.color.border,size:this.options.size,borderDashes:this.options.shapeProperties.borderDashes,borderRadius:this.options.shapeProperties.borderRadius,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y};if(this.selected||this.hover?this.chooser===!0?this.selected?(this.options.borderWidthSelected!=null?e.borderWidth=this.options.borderWidthSelected:e.borderWidth*=2,e.color=this.options.color.highlight.background,e.borderColor=this.options.color.highlight.border,e.shadow=this.options.shadow.enabled):this.hover&&(e.color=this.options.color.hover.background,e.borderColor=this.options.color.hover.border,e.shadow=this.options.shadow.enabled):typeof this.chooser=="function"&&(this.chooser(e,this.options.id,this.selected,this.hover),e.shadow===!1&&(e.shadowColor!==this.options.shadow.color||e.shadowSize!==this.options.shadow.size||e.shadowX!==this.options.shadow.x||e.shadowY!==this.options.shadow.y)&&(e.shadow=!0)):e.shadow=this.options.shadow.enabled,this.options.opacity!==void 0){let t=this.options.opacity;e.borderColor=Rt(e.borderColor,t),e.color=Rt(e.color,t),e.shadowColor=Rt(e.shadowColor,t)}return e}updateLabelModule(e){(this.options.label===void 0||this.options.label===null)&&(this.options.label=""),r.updateGroupOptions(this.options,ok(ok({},e),{},{color:e&&e.color||this._localColor||void 0}),this.grouplist);let t=this.grouplist.get(this.options.group,!1),i=[e,this.options,t,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,i),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateShape(e){if(e===this.options.shape&&this.shape)this.shape.setOptions(this.options,this.imageObj,this.imageObjAlt);else switch(this.options.shape){case"box":this.shape=new Fq(this.options,this.body,this.labelModule);break;case"circle":this.shape=new Lq(this.options,this.body,this.labelModule);break;case"circularImage":this.shape=new eu(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"custom":this.shape=new tu(this.options,this.body,this.labelModule,this.options.ctxRenderer);break;case"database":this.shape=new iu(this.options,this.body,this.labelModule);break;case"diamond":this.shape=new qq(this.options,this.body,this.labelModule);break;case"dot":this.shape=new nu(this.options,this.body,this.labelModule);break;case"ellipse":this.shape=new sg(this.options,this.body,this.labelModule);break;case"icon":this.shape=new ru(this.options,this.body,this.labelModule);break;case"image":this.shape=new Vq(this.options,this.body,this.labelModule,this.imageObj,this.imageObjAlt);break;case"square":this.shape=new su(this.options,this.body,this.labelModule);break;case"hexagon":this.shape=new ou(this.options,this.body,this.labelModule);break;case"star":this.shape=new gu(this.options,this.body,this.labelModule);break;case"text":this.shape=new au(this.options,this.body,this.labelModule);break;case"triangle":this.shape=new Wq(this.options,this.body,this.labelModule);break;case"triangleDown":this.shape=new Au(this.options,this.body,this.labelModule);break;default:this.shape=new sg(this.options,this.body,this.labelModule);break}this.needsRefresh()}select(){this.selected=!0,this.needsRefresh()}unselect(){this.selected=!1,this.needsRefresh()}needsRefresh(){this.shape.refreshNeeded=!0}getTitle(){return this.options.title}distanceToBorder(e,t){return this.shape.distanceToBorder(e,t)}isFixed(){return this.options.fixed.x&&this.options.fixed.y}isSelected(){return this.selected}getValue(){return this.options.value}getLabelSize(){return this.labelModule.size()}setValueRange(e,t,i){if(this.options.value!==void 0){let n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){let o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.size=this.options.scaling.min+n*s}else this.options.size=this.baseSize,this.options.font.size=this.baseFontSize;this.updateLabelModule()}draw(e){let t=this.getFormattingValues();return this.shape.draw(e,this.x,this.y,this.selected,this.hover,t)||{}}updateBoundingBox(e){this.shape.updateBoundingBox(this.x,this.y,e)}resize(e){let t=this.getFormattingValues();this.shape.resize(e,this.selected,this.hover,t)}getItemsOnPoint(e){let t=[];return this.labelModule.visible()&&Qc(this.labelModule.getSize(),e)&&t.push({nodeId:this.id,labelId:0}),Qc(this.shape.boundingBox,e)&&t.push({nodeId:this.id}),t}isOverlappingWith(e){return this.shape.left<e.right&&this.shape.left+this.shape.width>e.left&&this.shape.top<e.bottom&&this.shape.top+this.shape.height>e.top}isBoundingBoxOverlappingWith(e){return this.shape.boundingBox.left<e.right&&this.shape.boundingBox.right>e.left&&this.shape.boundingBox.top<e.bottom&&this.shape.boundingBox.bottom>e.top}static checkMass(e,t){if(e.mass!==void 0&&e.mass<=0){let i="";t!==void 0&&(i=" in node id: "+t),console.error("%cNegative or zero mass disallowed"+i+", setting mass to 1.",ZO),e.mass=1}}},Cu=class{constructor(e,t,i,n){var s;if(this.body=e,this.images=t,this.groups=i,this.layoutEngine=n,this.body.functions.createNode=P(s=this.create).call(s,this),this.nodesListeners={add:(o,g)=>{this.add(g.items)},update:(o,g)=>{this.update(g.items,g.data,g.oldData)},remove:(o,g)=>{this.remove(g.items)}},this.defaultOptions={borderWidth:1,borderWidthSelected:void 0,brokenImage:void 0,color:{border:"#2B7CE9",background:"#97C2FC",highlight:{border:"#2B7CE9",background:"#D2E5FF"},hover:{border:"#2B7CE9",background:"#D2E5FF"}},opacity:void 0,fixed:{x:!1,y:!1},font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:0,strokeColor:"#ffffff",align:"center",vadjust:0,multi:!1,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"monospace",vadjust:2}},group:void 0,hidden:!1,icon:{face:"FontAwesome",code:void 0,size:50,color:"#2B7CE9"},image:void 0,imagePadding:{top:0,right:0,bottom:0,left:0},label:void 0,labelHighlightBold:!0,level:void 0,margin:{top:5,right:5,bottom:5,left:5},mass:1,physics:!0,scaling:{min:10,max:30,label:{enabled:!1,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(o,g,a,A){if(g===o)return .5;{let C=1/(g-o);return Math.max(0,(A-o)*C)}}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},shape:"ellipse",shapeProperties:{borderDashes:!1,borderRadius:6,interpolation:!0,useImageSize:!1,useBorderWithImage:!1,coordinateOrigin:"center"},size:25,title:void 0,value:void 0,x:void 0,y:void 0},this.defaultOptions.mass<=0)throw"Internal error: mass in defaultOptions of NodesHandler may not be zero or negative";this.options=Ji(this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e,t;this.body.emitter.on("refreshNodes",P(e=this.refresh).call(e,this)),this.body.emitter.on("refresh",P(t=this.refresh).call(t,this)),this.body.emitter.on("destroy",()=>{$(this.nodesListeners,(i,n)=>{this.body.data.nodes&&this.body.data.nodes.off(n,i)}),delete this.body.functions.createNode,delete this.nodesListeners.add,delete this.nodesListeners.update,delete this.nodesListeners.remove,delete this.nodesListeners})}setOptions(e){if(e!==void 0){if(ot.parseOptions(this.options,e),e.opacity!==void 0&&(Kc(e.opacity)||!wn(e.opacity)||e.opacity<0||e.opacity>1?console.error("Invalid option for node opacity. Value must be between 0 and 1, found: "+e.opacity):this.options.opacity=e.opacity),e.shape!==void 0)for(let t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].updateShape();if(typeof e.font<"u"||typeof e.widthConstraint<"u"||typeof e.heightConstraint<"u")for(let t of Se(this.body.nodes))this.body.nodes[t].updateLabelModule(),this.body.nodes[t].needsRefresh();if(e.size!==void 0)for(let t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&this.body.nodes[t].needsRefresh();(e.hidden!==void 0||e.physics!==void 0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.nodes;if(AR("id",e))this.body.data.nodes=e;else if(Ie(e))this.body.data.nodes=new fi,this.body.data.nodes.add(e);else if(!e)this.body.data.nodes=new fi;else throw new TypeError("Array or DataSet expected");if(i&&$(this.nodesListeners,function(n,s){i.off(s,n)}),this.body.nodes={},this.body.data.nodes){let n=this;$(this.nodesListeners,function(o,g){n.body.data.nodes.on(g,o)});let s=this.body.data.nodes.getIds();this.add(s,!0)}t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i,n=[];for(let s=0;s<e.length;s++){i=e[s];let o=this.body.data.nodes.get(i),g=this.create(o);n.push(g),this.body.nodes[i]=g}this.layoutEngine.positionInitially(n),t===!1&&this.body.emitter.emit("_dataChanged")}update(e,t,i){let n=this.body.nodes,s=!1;for(let o=0;o<e.length;o++){let g=e[o],a=n[g],A=t[o];a!==void 0?a.setOptions(A)&&(s=!0):(s=!0,a=this.create(A),n[g]=a)}!s&&i!==void 0&&(s=nR(t).call(t,function(o,g){let a=i[g];return a&&a.level!==o.level})),s===!0?this.body.emitter.emit("_dataChanged"):this.body.emitter.emit("_dataUpdated")}remove(e){let t=this.body.nodes;for(let i=0;i<e.length;i++){let n=e[i];delete t[n]}this.body.emitter.emit("_dataChanged")}create(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot;return new t(e,this.body,this.images,this.groups,this.options,this.defaultOptions)}refresh(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;$(this.body.nodes,(t,i)=>{let n=this.body.data.nodes.get(i);n!==void 0&&(e===!0&&t.setOptions({x:null,y:null}),t.setOptions({fixed:!1}),t.setOptions(n))})}getPositions(e){let t={};if(e!==void 0){if(Ie(e)===!0){for(let i=0;i<e.length;i++)if(this.body.nodes[e[i]]!==void 0){let n=this.body.nodes[e[i]];t[e[i]]={x:Math.round(n.x),y:Math.round(n.y)}}}else if(this.body.nodes[e]!==void 0){let i=this.body.nodes[e];t[e]={x:Math.round(i.x),y:Math.round(i.y)}}}else for(let i=0;i<this.body.nodeIndices.length;i++){let n=this.body.nodes[this.body.nodeIndices[i]];t[this.body.nodeIndices[i]]={x:Math.round(n.x),y:Math.round(n.y)}}return t}getPosition(e){if(e==null)throw new TypeError("No id was specified for getPosition method.");if(this.body.nodes[e]==null)throw new ReferenceError("NodeId provided for getPosition does not exist. Provided: ".concat(e));return{x:Math.round(this.body.nodes[e].x),y:Math.round(this.body.nodes[e].y)}}storePositions(){let e=[],t=this.body.data.nodes.getDataSet();for(let i of t.get()){let n=i.id,s=this.body.nodes[n],o=Math.round(s.x),g=Math.round(s.y);(i.x!==o||i.y!==g)&&e.push({id:n,x:o,y:g})}t.update(e)}getBoundingBox(e){if(this.body.nodes[e]!==void 0)return this.body.nodes[e].shape.boundingBox}getConnectedNodes(e,t){let i=[];if(this.body.nodes[e]!==void 0){let n=this.body.nodes[e],s={};for(let o=0;o<n.edges.length;o++){let g=n.edges[o];t!=="to"&&g.toId==n.id?s[g.fromId]===void 0&&(i.push(g.fromId),s[g.fromId]=!0):t!=="from"&&g.fromId==n.id&&s[g.toId]===void 0&&(i.push(g.toId),s[g.toId]=!0)}}return i}getConnectedEdges(e){let t=[];if(this.body.nodes[e]!==void 0){let i=this.body.nodes[e];for(let n=0;n<i.edges.length;n++)t.push(i.edges[n].id)}else console.error("NodeId provided for getConnectedEdges does not exist. Provided: ",e);return t}moveNode(e,t,i){this.body.nodes[e]!==void 0?(this.body.nodes[e].x=Number(t),this.body.nodes[e].y=Number(i),hi(()=>{this.body.emitter.emit("startSimulation")},0)):console.error("Node id supplied to moveNode does not exist. Provided: ",e)}},gk={},ak;function Gq(){if(ak)return gk;ak=1;var r=j(),e=Math.hypot,t=Math.abs,i=Math.sqrt,n=!!e&&e(1/0,NaN)!==1/0;return r({target:"Math",stat:!0,arity:2,forced:n},{hypot:function(o,g){for(var a=0,A=0,C=arguments.length,I=0,l,h;A<C;)l=t(arguments[A++]),I<l?(h=I/l,a=a*h*h+1,I=l):l>0?(h=l/I,a+=h*h):a+=l;return I===1/0?1/0:I*i(a)}}),gk}var vc,Ak;function Zq(){if(Ak)return vc;Ak=1,Gq();var r=he();return vc=r.Math.hypot,vc}var bc,Ck;function jq(){if(Ck)return bc;Ck=1;var r=Zq();return bc=r,bc}var yc,Ik;function Hq(){return Ik||(Ik=1,yc=jq()),yc}var Yq=Hq(),Kq=Y(Yq),Re=class{static transform(e,t){Ie(e)||(e=[e]);let i=t.point.x,n=t.point.y,s=t.angle,o=t.length;for(let g=0;g<e.length;++g){let a=e[g],A=a.x*Math.cos(s)-a.y*Math.sin(s),C=a.x*Math.sin(s)+a.y*Math.cos(s);a.x=i+o*A,a.y=n+o*C}}static drawPath(e,t){e.beginPath(),e.moveTo(t[0].x,t[0].y);for(let i=1;i<t.length;++i)e.lineTo(t[i].x,t[i].y);e.closePath()}},Uq=class extends Re{static draw(e,t){if(t.image){e.save(),e.translate(t.point.x,t.point.y),e.rotate(Math.PI/2+t.angle);let i=t.imageWidth!=null?t.imageWidth:t.image.width,n=t.imageHeight!=null?t.imageHeight:t.image.height;t.image.drawImageAtPosition(e,1,-i/2,0,i,n),e.restore()}return!1}},Iu=class extends Re{static draw(e,t){let i=[{x:0,y:0},{x:-1,y:.3},{x:-.9,y:0},{x:-1,y:-.3}];return Re.transform(i,t),Re.drawPath(e,i),!0}},lu=class{static draw(e,t){let i=[{x:-1,y:0},{x:0,y:.3},{x:-.4,y:0},{x:0,y:-.3}];return Re.transform(i,t),Re.drawPath(e,i),!0}},hu=class{static draw(e,t){let i={x:-.4,y:0};Re.transform(i,t),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";let n=Math.PI,s=t.angle-n/2,o=t.angle+n/2;return e.beginPath(),e.arc(i.x,i.y,t.length*.4,s,o,!1),e.stroke(),!0}},du=class{static draw(e,t){let i={x:-.3,y:0};Re.transform(i,t),e.strokeStyle=e.fillStyle,e.fillStyle="rgba(0, 0, 0, 0)";let n=Math.PI,s=t.angle+n/2,o=t.angle+3*n/2;return e.beginPath(),e.arc(i.x,i.y,t.length*.4,s,o,!1),e.stroke(),!0}},cu=class{static draw(e,t){let i=[{x:.02,y:0},{x:-1,y:.3},{x:-1,y:-.3}];return Re.transform(i,t),Re.drawPath(e,i),!0}},uu=class{static draw(e,t){let i=[{x:0,y:.3},{x:0,y:-.3},{x:-1,y:0}];return Re.transform(i,t),Re.drawPath(e,i),!0}},fu=class{static draw(e,t){let i={x:-.4,y:0};return Re.transform(i,t),$u(e,i.x,i.y,t.length*.4),!0}},pu=class{static draw(e,t){let i=[{x:0,y:.5},{x:0,y:-.5},{x:-.15,y:-.5},{x:-.15,y:.5}];return Re.transform(i,t),Re.drawPath(e,i),!0}},mu=class{static draw(e,t){let i=[{x:0,y:.3},{x:0,y:-.3},{x:-.6,y:-.3},{x:-.6,y:.3}];return Re.transform(i,t),Re.drawPath(e,i),!0}},vu=class{static draw(e,t){let i=[{x:0,y:0},{x:-.5,y:-.3},{x:-1,y:0},{x:-.5,y:.3}];return Re.transform(i,t),Re.drawPath(e,i),!0}},bu=class{static draw(e,t){let i=[{x:-1,y:.3},{x:-.5,y:0},{x:-1,y:-.3},{x:0,y:0}];return Re.transform(i,t),Re.drawPath(e,i),!0}},og=class{static draw(e,t){let i;switch(t.type&&(i=t.type.toLowerCase()),i){case"image":return Uq.draw(e,t);case"circle":return fu.draw(e,t);case"box":return mu.draw(e,t);case"crow":return lu.draw(e,t);case"curve":return hu.draw(e,t);case"diamond":return vu.draw(e,t);case"inv_curve":return du.draw(e,t);case"triangle":return cu.draw(e,t);case"inv_triangle":return uu.draw(e,t);case"bar":return pu.draw(e,t);case"vee":return bu.draw(e,t);case"arrow":default:return Iu.draw(e,t)}}};function lk(r,e){var t=Se(r);if(ci){var i=ci(r);e&&(i=ze(i).call(i,function(n){return yi(r,n).enumerable})),t.push.apply(t,i)}return t}function hk(r){for(var e=1;e<arguments.length;e++){var t,i,n=arguments[e]!=null?arguments[e]:{};e%2?Ae(t=lk(Object(n),!0)).call(t,function(s){Ee(r,s,n[s])}):ui?Ws(r,ui(n)):Ae(i=lk(Object(n))).call(i,function(s){js(r,s,yi(n,s))})}return r}var gg=class{constructor(e,t,i){Ee(this,"color",{}),Ee(this,"colorDirty",!0),Ee(this,"hoverWidth",1.5),Ee(this,"selectionWidth",2),this._body=t,this._labelModule=i,this.setOptions(e),this.fromPoint=this.from,this.toPoint=this.to}connect(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to]}cleanup(){return!1}setOptions(e){this.options=e,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.id=this.options.id}drawLine(e,t,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.getViaNode();e.strokeStyle=this.getColor(e,t),e.lineWidth=t.width,t.dashes!==!1?this._drawDashedLine(e,t,s):this._drawLine(e,t,s)}_drawLine(e,t,i,n,s){if(this.from!=this.to)this._line(e,t,i,n,s);else{let[o,g,a]=this._getCircleData(e);this._circle(e,t,o,g,a)}}_drawDashedLine(e,t,i,n,s){e.lineCap="round";let o=Ie(t.dashes)?t.dashes:[5,5];if(e.setLineDash!==void 0){if(e.save(),e.setLineDash(o),e.lineDashOffset=0,this.from!=this.to)this._line(e,t,i);else{let[g,a,A]=this._getCircleData(e);this._circle(e,t,g,a,A)}e.setLineDash([0]),e.lineDashOffset=0,e.restore()}else{if(this.from!=this.to)Gk(e,this.from.x,this.from.y,this.to.x,this.to.y,o);else{let[g,a,A]=this._getCircleData(e);this._circle(e,t,g,a,A)}this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}}findBorderPosition(e,t,i){return this.from!=this.to?this._findBorderPosition(e,t,i):this._findBorderPositionCircle(e,t,i)}findBorderPositions(e){if(this.from!=this.to)return{from:this._findBorderPosition(this.from,e),to:this._findBorderPosition(this.to,e)};{var t;let[i,n]=Yt(t=this._getCircleData(e)).call(t,0,2);return{from:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.25,high:.6,direction:-1}),to:this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:.6,high:.8,direction:1})}}}_getCircleData(e){let t=this.options.selfReference.size;e!==void 0&&this.from.shape.width===void 0&&this.from.shape.resize(e);let i=IR(e,this.options.selfReference.angle,t,this.from);return[i.x,i.y,t]}_pointOnCircle(e,t,i,n){let s=n*2*Math.PI;return{x:e+i*Math.cos(s),y:t-i*Math.sin(s)}}_findBorderPositionCircle(e,t,i){let n=i.x,s=i.y,o=i.low,g=i.high,a=i.direction,A=10,C=this.options.selfReference.size,I=.05,l,h=(o+g)*.5,d=0;this.options.arrowStrikethrough===!0&&(a===-1?d=this.options.endPointOffset.from:a===1&&(d=this.options.endPointOffset.to));let c=0;do{h=(o+g)*.5,l=this._pointOnCircle(n,s,C,h);let f=Math.atan2(e.y-l.y,e.x-l.x),u=e.distanceToBorder(t,f)+d,p=Math.sqrt(Math.pow(l.x-e.x,2)+Math.pow(l.y-e.y,2)),v=u-p;if(Math.abs(v)<I)break;v>0?a>0?o=h:g=h:a>0?g=h:o=h,++c}while(o<=g&&c<A);return hk(hk({},l),{},{t:h})}getLineWidth(e,t){return e===!0?Math.max(this.selectionWidth,.3/this._body.view.scale):t===!0?Math.max(this.hoverWidth,.3/this._body.view.scale):Math.max(this.options.width,.3/this._body.view.scale)}getColor(e,t){if(t.inheritsColor!==!1){if(t.inheritsColor==="both"&&this.from.id!==this.to.id){let i=e.createLinearGradient(this.from.x,this.from.y,this.to.x,this.to.y),n=this.from.options.color.highlight.border,s=this.to.options.color.highlight.border;return this.from.selected===!1&&this.to.selected===!1?(n=Rt(this.from.options.color.border,t.opacity),s=Rt(this.to.options.color.border,t.opacity)):this.from.selected===!0&&this.to.selected===!1?s=this.to.options.color.border:this.from.selected===!1&&this.to.selected===!0&&(n=this.from.options.color.border),i.addColorStop(0,n),i.addColorStop(1,s),i}return t.inheritsColor==="to"?Rt(this.to.options.color.border,t.opacity):Rt(this.from.options.color.border,t.opacity)}else return Rt(t.color,t.opacity)}_circle(e,t,i,n,s){this.enableShadow(e,t);let o=0,g=Math.PI*2;if(!this.options.selfReference.renderBehindTheNode){let a=this.options.selfReference.angle,A=this.options.selfReference.angle+Math.PI,C=this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:a,high:A,direction:-1}),I=this._findBorderPositionCircle(this.from,e,{x:i,y:n,low:a,high:A,direction:1});o=Math.atan2(C.y-n,C.x-i),g=Math.atan2(I.y-n,I.x-i)}e.beginPath(),e.arc(i,n,s,o,g,!1),e.stroke(),this.disableShadow(e,t)}getDistanceToEdge(e,t,i,n,s,o){if(this.from!=this.to)return this._getDistanceToEdge(e,t,i,n,s,o);{let[g,a,A]=this._getCircleData(void 0),C=g-s,I=a-o;return Math.abs(Math.sqrt(C*C+I*I)-A)}}_getDistanceToLine(e,t,i,n,s,o){let g=i-e,a=n-t,A=g*g+a*a,C=((s-e)*g+(o-t)*a)/A;C>1?C=1:C<0&&(C=0);let I=e+C*g,l=t+C*a,h=I-s,d=l-o;return Math.sqrt(h*h+d*d)}getArrowData(e,t,i,n,s,o){let g,a,A,C,I,l,h,d=o.width;t==="from"?(A=this.from,C=this.to,I=o.fromArrowScale<0,l=Math.abs(o.fromArrowScale),h=o.fromArrowType):t==="to"?(A=this.to,C=this.from,I=o.toArrowScale<0,l=Math.abs(o.toArrowScale),h=o.toArrowType):(A=this.to,C=this.from,I=o.middleArrowScale<0,l=Math.abs(o.middleArrowScale),h=o.middleArrowType);let c=15*l+3*d;if(A!=C){let v=Kq(A.x-C.x,A.y-C.y),m=c/v;if(t!=="middle")if(this.options.smooth.enabled===!0){let b=this._findBorderPosition(A,e,{via:i}),w=this.getPoint(b.t+m*(t==="from"?1:-1),i);g=Math.atan2(b.y-w.y,b.x-w.x),a=b}else g=Math.atan2(A.y-C.y,A.x-C.x),a=this._findBorderPosition(A,e);else{let b=(I?-m:m)/2,w=this.getPoint(.5+b,i),x=this.getPoint(.5-b,i);g=Math.atan2(w.y-x.y,w.x-x.x),a=this.getPoint(.5,i)}}else{let[v,m,b]=this._getCircleData(e);if(t==="from"){let w=this.options.selfReference.angle,x=this.options.selfReference.angle+Math.PI,y=this._findBorderPositionCircle(this.from,e,{x:v,y:m,low:w,high:x,direction:-1});g=y.t*-2*Math.PI+1.5*Math.PI+.1*Math.PI,a=y}else if(t==="to"){let w=this.options.selfReference.angle,x=this.options.selfReference.angle+Math.PI,y=this._findBorderPositionCircle(this.from,e,{x:v,y:m,low:w,high:x,direction:1});g=y.t*-2*Math.PI+1.5*Math.PI-1.1*Math.PI,a=y}else{let w=this.options.selfReference.angle/(2*Math.PI);a=this._pointOnCircle(v,m,b,w),g=w*-2*Math.PI+1.5*Math.PI+.1*Math.PI}}let f=a.x-c*.9*Math.cos(g),u=a.y-c*.9*Math.sin(g);return{point:a,core:{x:f,y:u},angle:g,length:c,type:h}}drawArrowHead(e,t,i,n,s){e.strokeStyle=this.getColor(e,t),e.fillStyle=e.strokeStyle,e.lineWidth=t.width,og.draw(e,s)&&(this.enableShadow(e,t),_s(e).call(e),this.disableShadow(e,t))}enableShadow(e,t){t.shadow===!0&&(e.shadowColor=t.shadowColor,e.shadowBlur=t.shadowSize,e.shadowOffsetX=t.shadowX,e.shadowOffsetY=t.shadowY)}disableShadow(e,t){t.shadow===!0&&(e.shadowColor="rgba(0,0,0,0)",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}drawBackground(e,t){if(t.background!==!1){let i={strokeStyle:e.strokeStyle,lineWidth:e.lineWidth,dashes:e.dashes};e.strokeStyle=t.backgroundColor,e.lineWidth=t.backgroundSize,this.setStrokeDashed(e,t.backgroundDashes),e.stroke(),e.strokeStyle=i.strokeStyle,e.lineWidth=i.lineWidth,e.dashes=i.dashes,this.setStrokeDashed(e,t.dashes)}}setStrokeDashed(e,t){if(t!==!1)if(e.setLineDash!==void 0){let i=Ie(t)?t:[5,5];e.setLineDash(i)}else console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.");else e.setLineDash!==void 0?e.setLineDash([]):console.warn("setLineDash is not supported in this browser. The dashed stroke cannot be used.")}};function dk(r,e){var t=Se(r);if(ci){var i=ci(r);e&&(i=ze(i).call(i,function(n){return yi(r,n).enumerable})),t.push.apply(t,i)}return t}function ck(r){for(var e=1;e<arguments.length;e++){var t,i,n=arguments[e]!=null?arguments[e]:{};e%2?Ae(t=dk(Object(n),!0)).call(t,function(s){Ee(r,s,n[s])}):ui?Ws(r,ui(n)):Ae(i=dk(Object(n))).call(i,function(s){js(r,s,yi(n,s))})}return r}var xs=class extends gg{constructor(e,t,i){super(e,t,i)}_findBorderPositionBezier(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this._getViaCoordinates(),n=10,s=.2,o=!1,g=1,a=0,A=this.to,C,I,l=this.options.endPointOffset?this.options.endPointOffset.to:0;e.id===this.from.id&&(A=this.from,o=!0,l=this.options.endPointOffset?this.options.endPointOffset.from:0),this.options.arrowStrikethrough===!1&&(l=0);let h=0;do{I=(a+g)*.5,C=this.getPoint(I,i);let d=Math.atan2(A.y-C.y,A.x-C.x),c=A.distanceToBorder(t,d)+l,f=Math.sqrt(Math.pow(C.x-A.x,2)+Math.pow(C.y-A.y,2)),u=c-f;if(Math.abs(u)<s)break;u<0?o===!1?a=I:g=I:o===!1?g=I:a=I,++h}while(a<=g&&h<n);return ck(ck({},C),{},{t:I})}_getDistanceToBezierEdge(e,t,i,n,s,o,g){let a=1e9,A,C,I,l,h,d=e,c=t;for(C=1;C<10;C++)I=.1*C,l=Math.pow(1-I,2)*e+2*I*(1-I)*g.x+Math.pow(I,2)*i,h=Math.pow(1-I,2)*t+2*I*(1-I)*g.y+Math.pow(I,2)*n,C>0&&(A=this._getDistanceToLine(d,c,l,h,s,o),a=A<a?A:a),d=l,c=h;return a}_bezierCurve(e,t,i,n){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),i!=null&&i.x!=null?n!=null&&n.x!=null?e.bezierCurveTo(i.x,i.y,n.x,n.y,this.toPoint.x,this.toPoint.y):e.quadraticCurveTo(i.x,i.y,this.toPoint.x,this.toPoint.y):e.lineTo(this.toPoint.x,this.toPoint.y),this.drawBackground(e,t),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}getViaNode(){return this._getViaCoordinates()}},ag=class extends xs{constructor(e,t,i){super(e,t,i),Ee(this,"via",this.via),this._boundFunction=()=>{this.positionBezierNode()},this._body.emitter.on("_repositionBezierNodes",this._boundFunction)}setOptions(e){super.setOptions(e);let t=!1;this.options.physics!==e.physics&&(t=!0),this.options=e,this.id=this.options.id,this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.setupSupportNode(),this.connect(),t===!0&&(this.via.setOptions({physics:this.options.physics}),this.positionBezierNode())}connect(){this.from=this._body.nodes[this.options.from],this.to=this._body.nodes[this.options.to],this.from===void 0||this.to===void 0||this.options.physics===!1?this.via.setOptions({physics:!1}):this.from.id===this.to.id?this.via.setOptions({physics:!1}):this.via.setOptions({physics:!0})}cleanup(){return this._body.emitter.off("_repositionBezierNodes",this._boundFunction),this.via!==void 0?(delete this._body.nodes[this.via.id],this.via=void 0,!0):!1}setupSupportNode(){if(this.via===void 0){let e="edgeId:"+this.id,t=this._body.functions.createNode({id:e,shape:"circle",physics:!0,hidden:!0});this._body.nodes[e]=t,this.via=t,this.via.parentEdgeId=this.id,this.positionBezierNode()}}positionBezierNode(){this.via!==void 0&&this.from!==void 0&&this.to!==void 0?(this.via.x=.5*(this.from.x+this.to.x),this.via.y=.5*(this.from.y+this.to.y)):this.via!==void 0&&(this.via.x=0,this.via.y=0)}_line(e,t,i){this._bezierCurve(e,t,i)}_getViaCoordinates(){return this.via}getViaNode(){return this.via}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.via;if(this.from===this.to){let[i,n,s]=this._getCircleData(),o=2*Math.PI*(1-e);return{x:i+s*Math.sin(o),y:n+s-s*(1-Math.cos(o))}}else return{x:Math.pow(1-e,2)*this.fromPoint.x+2*e*(1-e)*t.x+Math.pow(e,2)*this.toPoint.x,y:Math.pow(1-e,2)*this.fromPoint.y+2*e*(1-e)*t.y+Math.pow(e,2)*this.toPoint.y}}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t,this.via)}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToBezierEdge(e,t,i,n,s,o,this.via)}},Ag=class extends xs{constructor(e,t,i){super(e,t,i)}_line(e,t,i){this._bezierCurve(e,t,i)}getViaNode(){return this._getViaCoordinates()}_getViaCoordinates(){let e=this.options.smooth.roundness,t=this.options.smooth.type,i=Math.abs(this.from.x-this.to.x),n=Math.abs(this.from.y-this.to.y);if(t==="discrete"||t==="diagonalCross"){let s,o;i<=n?s=o=e*n:s=o=e*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let g=this.from.x+s,a=this.from.y+o;return t==="discrete"&&(i<=n?g=i<e*n?this.from.x:g:a=n<e*i?this.from.y:a),{x:g,y:a}}else if(t==="straightCross"){let s=(1-e)*i,o=(1-e)*n;return i<=n?(s=0,this.from.y<this.to.y&&(o=-o)):(this.from.x<this.to.x&&(s=-s),o=0),{x:this.to.x+s,y:this.to.y+o}}else if(t==="horizontal"){let s=(1-e)*i;return this.from.x<this.to.x&&(s=-s),{x:this.to.x+s,y:this.from.y}}else if(t==="vertical"){let s=(1-e)*n;return this.from.y<this.to.y&&(s=-s),{x:this.from.x,y:this.to.y+s}}else if(t==="curvedCW"){i=this.to.x-this.from.x,n=this.from.y-this.to.y;let s=Math.sqrt(i*i+n*n),o=Math.PI,a=(Math.atan2(n,i)+(e*.5+.5)*o)%(2*o);return{x:this.from.x+(e*.5+.5)*s*Math.sin(a),y:this.from.y+(e*.5+.5)*s*Math.cos(a)}}else if(t==="curvedCCW"){i=this.to.x-this.from.x,n=this.from.y-this.to.y;let s=Math.sqrt(i*i+n*n),o=Math.PI,a=(Math.atan2(n,i)+(-e*.5+.5)*o)%(2*o);return{x:this.from.x+(e*.5+.5)*s*Math.sin(a),y:this.from.y+(e*.5+.5)*s*Math.cos(a)}}else{let s,o;i<=n?s=o=e*n:s=o=e*i,this.from.x>this.to.x&&(s=-s),this.from.y>=this.to.y&&(o=-o);let g=this.from.x+s,a=this.from.y+o;return i<=n?this.from.x<=this.to.x?g=this.to.x<g?this.to.x:g:g=this.to.x>g?this.to.x:g:this.from.y>=this.to.y?a=this.to.y>a?this.to.y:a:a=this.to.y<a?this.to.y:a,{x:g,y:a}}}_findBorderPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this._findBorderPositionBezier(e,t,i.via)}_getDistanceToEdge(e,t,i,n,s,o){let g=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge(e,t,i,n,s,o,g)}getPoint(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),i=e,n=Math.pow(1-i,2)*this.fromPoint.x+2*i*(1-i)*t.x+Math.pow(i,2)*this.toPoint.x,s=Math.pow(1-i,2)*this.fromPoint.y+2*i*(1-i)*t.y+Math.pow(i,2)*this.toPoint.y;return{x:n,y:s}}},yu=class extends xs{constructor(e,t,i){super(e,t,i)}_getDistanceToBezierEdge2(e,t,i,n,s,o,g,a){let A=1e9,C=e,I=t,l=[0,0,0,0];for(let h=1;h<10;h++){let d=.1*h;l[0]=Math.pow(1-d,3),l[1]=3*d*Math.pow(1-d,2),l[2]=3*Math.pow(d,2)*(1-d),l[3]=Math.pow(d,3);let c=l[0]*e+l[1]*g.x+l[2]*a.x+l[3]*i,f=l[0]*t+l[1]*g.y+l[2]*a.y+l[3]*n;if(h>0){let u=this._getDistanceToLine(C,I,c,f,s,o);A=u<A?u:A}C=c,I=f}return A}},Cg=class extends yu{constructor(e,t,i){super(e,t,i)}_line(e,t,i){let n=i[0],s=i[1];this._bezierCurve(e,t,n,s)}_getViaCoordinates(){let e=this.from.x-this.to.x,t=this.from.y-this.to.y,i,n,s,o,g=this.options.smooth.roundness;return(Math.abs(e)>Math.abs(t)||this.options.smooth.forceDirection===!0||this.options.smooth.forceDirection==="horizontal")&&this.options.smooth.forceDirection!=="vertical"?(n=this.from.y,o=this.to.y,i=this.from.x-g*e,s=this.to.x+g*e):(n=this.from.y-g*t,o=this.to.y+g*t,i=this.from.x,s=this.to.x),[{x:i,y:n},{x:s,y:o}]}getViaNode(){return this._getViaCoordinates()}_findBorderPosition(e,t){return this._findBorderPositionBezier(e,t)}_getDistanceToEdge(e,t,i,n,s,o){let[g,a]=arguments.length>6&&arguments[6]!==void 0?arguments[6]:this._getViaCoordinates();return this._getDistanceToBezierEdge2(e,t,i,n,s,o,g,a)}getPoint(e){let[t,i]=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this._getViaCoordinates(),n=e,s=[Math.pow(1-n,3),3*n*Math.pow(1-n,2),3*Math.pow(n,2)*(1-n),Math.pow(n,3)],o=s[0]*this.fromPoint.x+s[1]*t.x+s[2]*i.x+s[3]*this.toPoint.x,g=s[0]*this.fromPoint.y+s[1]*t.y+s[2]*i.y+s[3]*this.toPoint.y;return{x:o,y:g}}},Ig=class extends gg{constructor(e,t,i){super(e,t,i)}_line(e,t){e.beginPath(),e.moveTo(this.fromPoint.x,this.fromPoint.y),e.lineTo(this.toPoint.x,this.toPoint.y),this.enableShadow(e,t),e.stroke(),this.disableShadow(e,t)}getViaNode(){}getPoint(e){return{x:(1-e)*this.fromPoint.x+e*this.toPoint.x,y:(1-e)*this.fromPoint.y+e*this.toPoint.y}}_findBorderPosition(e,t){let i=this.to,n=this.from;e.id===this.from.id&&(i=this.from,n=this.to);let s=Math.atan2(i.y-n.y,i.x-n.x),o=i.x-n.x,g=i.y-n.y,a=Math.sqrt(o*o+g*g),A=e.distanceToBorder(t,s),C=(a-A)/a;return{x:(1-C)*n.x+C*i.x,y:(1-C)*n.y+C*i.y,t:0}}_getDistanceToEdge(e,t,i,n,s,o){return this._getDistanceToLine(e,t,i,n,s,o)}},$i=class r{constructor(e,t,i,n,s){if(t===void 0)throw new Error("No body provided");this.options=Ji(n),this.globalOptions=n,this.defaultOptions=s,this.body=t,this.imagelist=i,this.id=void 0,this.fromId=void 0,this.toId=void 0,this.selected=!1,this.hover=!1,this.labelDirty=!0,this.baseWidth=this.options.width,this.baseFontSize=this.options.font.size,this.from=void 0,this.to=void 0,this.edgeType=void 0,this.connected=!1,this.labelModule=new rg(this.body,this.options,!0),this.setOptions(e)}setOptions(e){if(!e)return;let t=typeof e.physics<"u"&&this.options.physics!==e.physics||typeof e.hidden<"u"&&(this.options.hidden||!1)!==(e.hidden||!1)||typeof e.from<"u"&&this.options.from!==e.from||typeof e.to<"u"&&this.options.to!==e.to;r.parseOptions(this.options,e,!0,this.globalOptions),e.id!==void 0&&(this.id=e.id),e.from!==void 0&&(this.fromId=e.from),e.to!==void 0&&(this.toId=e.to),e.title!==void 0&&(this.title=e.title),e.value!==void 0&&(e.value=CR(e.value));let i=[e,this.options,this.defaultOptions];return this.chooser=Sf("edge",i),this.updateLabelModule(e),t=this.updateEdgeType()||t,this._setInteractionWidths(),this.connect(),t}static parseOptions(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(Pr(["endPointOffset","arrowStrikethrough","id","from","hidden","hoverWidth","labelHighlightBold","length","line","opacity","physics","scaling","selectionWidth","selfReferenceSize","selfReference","to","title","value","width","font","chosen","widthConstraint"],e,t,i),t.endPointOffset!==void 0&&t.endPointOffset.from!==void 0&&(wn(t.endPointOffset.from)?e.endPointOffset.from=t.endPointOffset.from:(e.endPointOffset.from=n.endPointOffset.from!==void 0?n.endPointOffset.from:0,console.error("endPointOffset.from is not a valid number"))),t.endPointOffset!==void 0&&t.endPointOffset.to!==void 0&&(wn(t.endPointOffset.to)?e.endPointOffset.to=t.endPointOffset.to:(e.endPointOffset.to=n.endPointOffset.to!==void 0?n.endPointOffset.to:0,console.error("endPointOffset.to is not a valid number"))),ig(t.label)?e.label=t.label:ig(e.label)||(e.label=void 0),Ot(e,t,"smooth",n),Ot(e,t,"shadow",n),Ot(e,t,"background",n),t.dashes!==void 0&&t.dashes!==null?e.dashes=t.dashes:i===!0&&t.dashes===null&&(e.dashes=Xi(n.dashes)),t.scaling!==void 0&&t.scaling!==null?(t.scaling.min!==void 0&&(e.scaling.min=t.scaling.min),t.scaling.max!==void 0&&(e.scaling.max=t.scaling.max),Ot(e.scaling,t.scaling,"label",n.scaling)):i===!0&&t.scaling===null&&(e.scaling=Xi(n.scaling)),t.arrows!==void 0&&t.arrows!==null)if(typeof t.arrows=="string"){let g=t.arrows.toLowerCase();e.arrows.to.enabled=ue(g).call(g,"to")!=-1,e.arrows.middle.enabled=ue(g).call(g,"middle")!=-1,e.arrows.from.enabled=ue(g).call(g,"from")!=-1}else if(typeof t.arrows=="object")Ot(e.arrows,t.arrows,"to",n.arrows),Ot(e.arrows,t.arrows,"middle",n.arrows),Ot(e.arrows,t.arrows,"from",n.arrows);else throw new Error("The arrow newOptions can only be an object or a string. Refer to the documentation. You used:"+Rr(t.arrows));else i===!0&&t.arrows===null&&(e.arrows=Xi(n.arrows));if(t.color!==void 0&&t.color!==null){let g=Ir(t.color)?{color:t.color,highlight:t.color,hover:t.color,inherit:!1,opacity:1}:t.color,a=e.color;if(s)me(a,n.color,!1,i);else for(let A in a)Object.prototype.hasOwnProperty.call(a,A)&&delete a[A];if(Ir(a))a.color=a,a.highlight=a,a.hover=a,a.inherit=!1,g.opacity===void 0&&(a.opacity=1);else{let A=!1;g.color!==void 0&&(a.color=g.color,A=!0),g.highlight!==void 0&&(a.highlight=g.highlight,A=!0),g.hover!==void 0&&(a.hover=g.hover,A=!0),g.inherit!==void 0&&(a.inherit=g.inherit),g.opacity!==void 0&&(a.opacity=Math.min(1,Math.max(0,g.opacity))),A===!0?a.inherit=!1:a.inherit===void 0&&(a.inherit="from")}}else i===!0&&t.color===null&&(e.color=Ji(n.color));i===!0&&t.font===null&&(e.font=Ji(n.font)),Object.prototype.hasOwnProperty.call(t,"selfReferenceSize")&&(console.warn("The selfReferenceSize property has been deprecated. Please use selfReference property instead. The selfReference can be set like thise selfReference:{size:30, angle:Math.PI / 4}"),e.selfReference.size=t.selfReferenceSize)}getFormattingValues(){let e=this.options.arrows.to===!0||this.options.arrows.to.enabled===!0,t=this.options.arrows.from===!0||this.options.arrows.from.enabled===!0,i=this.options.arrows.middle===!0||this.options.arrows.middle.enabled===!0,n=this.options.color.inherit,s={toArrow:e,toArrowScale:this.options.arrows.to.scaleFactor,toArrowType:this.options.arrows.to.type,toArrowSrc:this.options.arrows.to.src,toArrowImageWidth:this.options.arrows.to.imageWidth,toArrowImageHeight:this.options.arrows.to.imageHeight,middleArrow:i,middleArrowScale:this.options.arrows.middle.scaleFactor,middleArrowType:this.options.arrows.middle.type,middleArrowSrc:this.options.arrows.middle.src,middleArrowImageWidth:this.options.arrows.middle.imageWidth,middleArrowImageHeight:this.options.arrows.middle.imageHeight,fromArrow:t,fromArrowScale:this.options.arrows.from.scaleFactor,fromArrowType:this.options.arrows.from.type,fromArrowSrc:this.options.arrows.from.src,fromArrowImageWidth:this.options.arrows.from.imageWidth,fromArrowImageHeight:this.options.arrows.from.imageHeight,arrowStrikethrough:this.options.arrowStrikethrough,color:n?void 0:this.options.color.color,inheritsColor:n,opacity:this.options.color.opacity,hidden:this.options.hidden,length:this.options.length,shadow:this.options.shadow.enabled,shadowColor:this.options.shadow.color,shadowSize:this.options.shadow.size,shadowX:this.options.shadow.x,shadowY:this.options.shadow.y,dashes:this.options.dashes,width:this.options.width,background:this.options.background.enabled,backgroundColor:this.options.background.color,backgroundSize:this.options.background.size,backgroundDashes:this.options.background.dashes};if(this.selected||this.hover)if(this.chooser===!0){if(this.selected){let o=this.options.selectionWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.highlight,s.shadow=this.options.shadow.enabled}else if(this.hover){let o=this.options.hoverWidth;typeof o=="function"?s.width=o(s.width):typeof o=="number"&&(s.width+=o),s.width=Math.max(s.width,.3/this.body.view.scale),s.color=this.options.color.hover,s.shadow=this.options.shadow.enabled}}else typeof this.chooser=="function"&&(this.chooser(s,this.options.id,this.selected,this.hover),s.color!==void 0&&(s.inheritsColor=!1),s.shadow===!1&&(s.shadowColor!==this.options.shadow.color||s.shadowSize!==this.options.shadow.size||s.shadowX!==this.options.shadow.x||s.shadowY!==this.options.shadow.y)&&(s.shadow=!0));else s.shadow=this.options.shadow.enabled,s.width=Math.max(s.width,.3/this.body.view.scale);return s}updateLabelModule(e){let t=[e,this.options,this.globalOptions,this.defaultOptions];this.labelModule.update(this.options,t),this.labelModule.baseSize!==void 0&&(this.baseFontSize=this.labelModule.baseSize)}updateEdgeType(){let e=this.options.smooth,t=!1,i=!0;return this.edgeType!==void 0&&((this.edgeType instanceof ag&&e.enabled===!0&&e.type==="dynamic"||this.edgeType instanceof Cg&&e.enabled===!0&&e.type==="cubicBezier"||this.edgeType instanceof Ag&&e.enabled===!0&&e.type!=="dynamic"&&e.type!=="cubicBezier"||this.edgeType instanceof Ig&&e.type.enabled===!1)&&(i=!1),i===!0&&(t=this.cleanup())),i===!0?e.enabled===!0?e.type==="dynamic"?(t=!0,this.edgeType=new ag(this.options,this.body,this.labelModule)):e.type==="cubicBezier"?this.edgeType=new Cg(this.options,this.body,this.labelModule):this.edgeType=new Ag(this.options,this.body,this.labelModule):this.edgeType=new Ig(this.options,this.body,this.labelModule):this.edgeType.setOptions(this.options),t}connect(){this.disconnect(),this.from=this.body.nodes[this.fromId]||void 0,this.to=this.body.nodes[this.toId]||void 0,this.connected=this.from!==void 0&&this.to!==void 0,this.connected===!0?(this.from.attachEdge(this),this.to.attachEdge(this)):(this.from&&this.from.detachEdge(this),this.to&&this.to.detachEdge(this)),this.edgeType.connect()}disconnect(){this.from&&(this.from.detachEdge(this),this.from=void 0),this.to&&(this.to.detachEdge(this),this.to=void 0),this.connected=!1}getTitle(){return this.title}isSelected(){return this.selected}getValue(){return this.options.value}setValueRange(e,t,i){if(this.options.value!==void 0){let n=this.options.scaling.customScalingFunction(e,t,i,this.options.value),s=this.options.scaling.max-this.options.scaling.min;if(this.options.scaling.label.enabled===!0){let o=this.options.scaling.label.max-this.options.scaling.label.min;this.options.font.size=this.options.scaling.label.min+n*o}this.options.width=this.options.scaling.min+n*s}else this.options.width=this.baseWidth,this.options.font.size=this.baseFontSize;this._setInteractionWidths(),this.updateLabelModule()}_setInteractionWidths(){typeof this.options.hoverWidth=="function"?this.edgeType.hoverWidth=this.options.hoverWidth(this.options.width):this.edgeType.hoverWidth=this.options.hoverWidth+this.options.width,typeof this.options.selectionWidth=="function"?this.edgeType.selectionWidth=this.options.selectionWidth(this.options.width):this.edgeType.selectionWidth=this.options.selectionWidth+this.options.width}draw(e){let t=this.getFormattingValues();if(t.hidden)return;let i=this.edgeType.getViaNode();this.edgeType.drawLine(e,t,this.selected,this.hover,i),this.drawLabel(e,i)}drawArrows(e){let t=this.getFormattingValues();if(t.hidden)return;let i=this.edgeType.getViaNode(),n={};this.edgeType.fromPoint=this.edgeType.from,this.edgeType.toPoint=this.edgeType.to,t.fromArrow&&(n.from=this.edgeType.getArrowData(e,"from",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.fromPoint=n.from.core),t.fromArrowSrc&&(n.from.image=this.imagelist.load(t.fromArrowSrc)),t.fromArrowImageWidth&&(n.from.imageWidth=t.fromArrowImageWidth),t.fromArrowImageHeight&&(n.from.imageHeight=t.fromArrowImageHeight)),t.toArrow&&(n.to=this.edgeType.getArrowData(e,"to",i,this.selected,this.hover,t),t.arrowStrikethrough===!1&&(this.edgeType.toPoint=n.to.core),t.toArrowSrc&&(n.to.image=this.imagelist.load(t.toArrowSrc)),t.toArrowImageWidth&&(n.to.imageWidth=t.toArrowImageWidth),t.toArrowImageHeight&&(n.to.imageHeight=t.toArrowImageHeight)),t.middleArrow&&(n.middle=this.edgeType.getArrowData(e,"middle",i,this.selected,this.hover,t),t.middleArrowSrc&&(n.middle.image=this.imagelist.load(t.middleArrowSrc)),t.middleArrowImageWidth&&(n.middle.imageWidth=t.middleArrowImageWidth),t.middleArrowImageHeight&&(n.middle.imageHeight=t.middleArrowImageHeight)),t.fromArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.from),t.middleArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.middle),t.toArrow&&this.edgeType.drawArrowHead(e,t,this.selected,this.hover,n.to)}drawLabel(e,t){if(this.options.label!==void 0){let i=this.from,n=this.to;this.labelModule.differentState(this.selected,this.hover)&&this.labelModule.getTextSize(e,this.selected,this.hover);let s;if(i.id!=n.id){this.labelModule.pointToSelf=!1,s=this.edgeType.getPoint(.5,t),e.save();let o=this._getRotation(e);o.angle!=0&&(e.translate(o.x,o.y),e.rotate(o.angle)),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover),e.restore()}else{this.labelModule.pointToSelf=!0;let o=IR(e,this.options.selfReference.angle,this.options.selfReference.size,i);s=this._pointOnCircle(o.x,o.y,this.options.selfReference.size,this.options.selfReference.angle),this.labelModule.draw(e,s.x,s.y,this.selected,this.hover)}}}getItemsOnPoint(e){let t=[];if(this.labelModule.visible()){let n=this._getRotation();Qc(this.labelModule.getSize(),e,n)&&t.push({edgeId:this.id,labelId:0})}let i={left:e.x,top:e.y};return this.isOverlappingWith(i)&&t.push({edgeId:this.id}),t}isOverlappingWith(e){if(this.connected){let i=this.from.x,n=this.from.y,s=this.to.x,o=this.to.y,g=e.left,a=e.top;return this.edgeType.getDistanceToEdge(i,n,s,o,g,a)<10}else return!1}_getRotation(e){let t=this.edgeType.getViaNode(),i=this.edgeType.getPoint(.5,t);e!==void 0&&this.labelModule.calculateLabelSize(e,this.selected,this.hover,i.x,i.y);let n={x:i.x,y:this.labelModule.size.yLine,angle:0};if(!this.labelModule.visible()||this.options.font.align==="horizontal")return n;let s=this.from.y-this.to.y,o=this.from.x-this.to.x,g=Math.atan2(s,o);return(g<-1&&o<0||g>0&&o<0)&&(g+=Math.PI),n.angle=g,n}_pointOnCircle(e,t,i,n){return{x:e+i*Math.cos(n),y:t-i*Math.sin(n)}}select(){this.selected=!0}unselect(){this.selected=!1}cleanup(){return this.edgeType.cleanup()}remove(){this.cleanup(),this.disconnect(),delete this.body.edges[this.id]}endPointsValid(){return this.body.nodes[this.fromId]!==void 0&&this.body.nodes[this.toId]!==void 0}},wu=class{constructor(e,t,i){var n;this.body=e,this.images=t,this.groups=i,this.body.functions.createEdge=P(n=this.create).call(n,this),this.edgesListeners={add:(s,o)=>{this.add(o.items)},update:(s,o)=>{this.update(o.items)},remove:(s,o)=>{this.remove(o.items)}},this.options={},this.defaultOptions={arrows:{to:{enabled:!1,scaleFactor:1,type:"arrow"},middle:{enabled:!1,scaleFactor:1,type:"arrow"},from:{enabled:!1,scaleFactor:1,type:"arrow"}},endPointOffset:{from:0,to:0},arrowStrikethrough:!0,color:{color:"#848484",highlight:"#848484",hover:"#848484",inherit:"from",opacity:1},dashes:!1,font:{color:"#343434",size:14,face:"arial",background:"none",strokeWidth:2,strokeColor:"#ffffff",align:"horizontal",multi:!1,vadjust:0,bold:{mod:"bold"},boldital:{mod:"bold italic"},ital:{mod:"italic"},mono:{mod:"",size:15,face:"courier new",vadjust:2}},hidden:!1,hoverWidth:1.5,label:void 0,labelHighlightBold:!0,length:void 0,physics:!0,scaling:{min:1,max:15,label:{enabled:!0,min:14,max:30,maxVisible:30,drawThreshold:5},customScalingFunction:function(s,o,g,a){if(o===s)return .5;{let A=1/(o-s);return Math.max(0,(a-s)*A)}}},selectionWidth:1.5,selfReference:{size:20,angle:Math.PI/4,renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:10,x:5,y:5},background:{enabled:!1,color:"rgba(111,111,111,1)",size:10,dashes:!1},smooth:{enabled:!0,type:"dynamic",forceDirection:"none",roundness:.5},title:void 0,width:1,value:void 0},me(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e=this,t,i;this.body.emitter.on("_forceDisableDynamicCurves",function(n){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n==="dynamic"&&(n="continuous");let o=!1;for(let g in e.body.edges)if(Object.prototype.hasOwnProperty.call(e.body.edges,g)){let a=e.body.edges[g],A=e.body.data.edges.get(g);if(A!=null){let C=A.smooth;C!==void 0&&C.enabled===!0&&C.type==="dynamic"&&(n===void 0?a.setOptions({smooth:!1}):a.setOptions({smooth:{type:n}}),o=!0)}}s===!0&&o===!0&&e.body.emitter.emit("_dataChanged")}),this.body.emitter.on("_dataUpdated",()=>{this.reconnectEdges()}),this.body.emitter.on("refreshEdges",P(t=this.refresh).call(t,this)),this.body.emitter.on("refresh",P(i=this.refresh).call(i,this)),this.body.emitter.on("destroy",()=>{$(this.edgesListeners,(n,s)=>{this.body.data.edges&&this.body.data.edges.off(s,n)}),delete this.body.functions.createEdge,delete this.edgesListeners.add,delete this.edgesListeners.update,delete this.edgesListeners.remove,delete this.edgesListeners})}setOptions(e){if(e!==void 0){$i.parseOptions(this.options,e,!0,this.defaultOptions,!0);let t=!1;if(e.smooth!==void 0)for(let i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&(t=this.body.edges[i].updateEdgeType()||t);if(e.font!==void 0)for(let i in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,i)&&this.body.edges[i].updateLabelModule();(e.hidden!==void 0||e.physics!==void 0||t===!0)&&this.body.emitter.emit("_dataChanged")}}setData(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.data.edges;if(AR("id",e))this.body.data.edges=e;else if(Ie(e))this.body.data.edges=new fi,this.body.data.edges.add(e);else if(!e)this.body.data.edges=new fi;else throw new TypeError("Array or DataSet expected");if(i&&$(this.edgesListeners,(n,s)=>{i.off(s,n)}),this.body.edges={},this.body.data.edges){$(this.edgesListeners,(s,o)=>{this.body.data.edges.on(o,s)});let n=this.body.data.edges.getIds();this.add(n,!0)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),t===!1&&this.body.emitter.emit("_dataChanged")}add(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.edges,n=this.body.data.edges;for(let s=0;s<e.length;s++){let o=e[s],g=i[o];g&&g.disconnect();let a=n.get(o,{showInternalIds:!0});i[o]=this.create(a)}this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),t===!1&&this.body.emitter.emit("_dataChanged")}update(e){let t=this.body.edges,i=this.body.data.edges,n=!1;for(let s=0;s<e.length;s++){let o=e[s],g=i.get(o),a=t[o];a!==void 0?(a.disconnect(),n=a.setOptions(g)||n,a.connect()):(this.body.edges[o]=this.create(g),n=!0)}n===!0?(this.body.emitter.emit("_adjustEdgesForHierarchicalLayout"),this.body.emitter.emit("_dataChanged")):this.body.emitter.emit("_dataUpdated")}remove(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.length===0)return;let i=this.body.edges;$(e,n=>{let s=i[n];s!==void 0&&s.remove()}),t&&this.body.emitter.emit("_dataChanged")}refresh(){$(this.body.edges,(e,t)=>{let i=this.body.data.edges.get(t);i!==void 0&&e.setOptions(i)})}create(e){return new $i(e,this.body,this.images,this.options,this.defaultOptions)}reconnectEdges(){let e,t=this.body.nodes,i=this.body.edges;for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&(t[e].edges=[]);for(e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let n=i[e];n.from=null,n.to=null,n.connect()}}getConnectedNodes(e){let t=[];if(this.body.edges[e]!==void 0){let i=this.body.edges[e];i.fromId!==void 0&&t.push(i.fromId),i.toId!==void 0&&t.push(i.toId)}return t}_updateState(){this._addMissingEdges(),this._removeInvalidEdges()}_removeInvalidEdges(){let e=[];$(this.body.edges,(t,i)=>{let n=this.body.nodes[t.toId],s=this.body.nodes[t.fromId];n!==void 0&&n.isCluster===!0||s!==void 0&&s.isCluster===!0||(n===void 0||s===void 0)&&e.push(i)}),this.remove(e,!1)}_addMissingEdges(){let e=this.body.data.edges;if(e==null)return;let t=this.body.edges,i=[];Ae(e).call(e,(n,s)=>{t[s]===void 0&&i.push(s)}),this.add(i,!0)}},lg=class{constructor(e,t,i){this.body=e,this.physicsBody=t,this.barnesHutTree,this.setOptions(i),this._rng=Pg("BARNES HUT SOLVER")}setOptions(e){this.options=e,this.thetaInversed=1/this.options.theta,this.overlapAvoidanceFactor=1-Math.max(0,Math.min(1,this.options.avoidOverlap))}solve(){if(this.options.gravitationalConstant!==0&&this.physicsBody.physicsNodeIndices.length>0){let e,t=this.body.nodes,i=this.physicsBody.physicsNodeIndices,n=i.length,s=this._formBarnesHutTree(t,i);this.barnesHutTree=s;for(let o=0;o<n;o++)e=t[i[o]],e.options.mass>0&&this._getForceContributions(s.root,e)}}_getForceContributions(e,t){this._getForceContribution(e.children.NW,t),this._getForceContribution(e.children.NE,t),this._getForceContribution(e.children.SW,t),this._getForceContribution(e.children.SE,t)}_getForceContribution(e,t){if(e.childrenCount>0){let i=e.centerOfMass.x-t.x,n=e.centerOfMass.y-t.y,s=Math.sqrt(i*i+n*n);s*e.calcSize>this.thetaInversed?this._calculateForces(s,i,n,t,e):e.childrenCount===4?this._getForceContributions(e,t):e.children.data.id!=t.id&&this._calculateForces(s,i,n,t,e)}}_calculateForces(e,t,i,n,s){e===0&&(e=.1,t=e),this.overlapAvoidanceFactor<1&&n.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,e-n.shape.radius));let o=this.options.gravitationalConstant*s.mass*n.options.mass/Math.pow(e,3),g=t*o,a=i*o;this.physicsBody.forces[n.id].x+=g,this.physicsBody.forces[n.id].y+=a}_formBarnesHutTree(e,t){let i,n=t.length,s=e[t[0]].x,o=e[t[0]].y,g=e[t[0]].x,a=e[t[0]].y;for(let f=1;f<n;f++){let u=e[t[f]],p=u.x,v=u.y;u.options.mass>0&&(p<s&&(s=p),p>g&&(g=p),v<o&&(o=v),v>a&&(a=v))}let A=Math.abs(g-s)-Math.abs(a-o);A>0?(o-=.5*A,a+=.5*A):(s+=.5*A,g-=.5*A);let I=Math.max(1e-5,Math.abs(g-s)),l=.5*I,h=.5*(s+g),d=.5*(o+a),c={root:{centerOfMass:{x:0,y:0},mass:0,range:{minX:h-l,maxX:h+l,minY:d-l,maxY:d+l},size:I,calcSize:1/I,children:{data:null},maxWidth:0,level:0,childrenCount:4}};this._splitBranch(c.root);for(let f=0;f<n;f++)i=e[t[f]],i.options.mass>0&&this._placeInTree(c.root,i);return c}_updateBranchMass(e,t){let i=e.centerOfMass,n=e.mass+t.options.mass,s=1/n;i.x=i.x*e.mass+t.x*t.options.mass,i.x*=s,i.y=i.y*e.mass+t.y*t.options.mass,i.y*=s,e.mass=n;let o=Math.max(Math.max(t.height,t.radius),t.width);e.maxWidth=e.maxWidth<o?o:e.maxWidth}_placeInTree(e,t,i){(i!=!0||i===void 0)&&this._updateBranchMass(e,t);let n=e.children.NW.range,s;n.maxX>t.x?n.maxY>t.y?s="NW":s="SW":n.maxY>t.y?s="NE":s="SE",this._placeInRegion(e,t,s)}_placeInRegion(e,t,i){let n=e.children[i];switch(n.childrenCount){case 0:n.children.data=t,n.childrenCount=1,this._updateBranchMass(n,t);break;case 1:n.children.data.x===t.x&&n.children.data.y===t.y?(t.x+=this._rng(),t.y+=this._rng()):(this._splitBranch(n),this._placeInTree(n,t));break;case 4:this._placeInTree(n,t);break}}_splitBranch(e){let t=null;e.childrenCount===1&&(t=e.children.data,e.mass=0,e.centerOfMass.x=0,e.centerOfMass.y=0),e.childrenCount=4,e.children.data=null,this._insertRegion(e,"NW"),this._insertRegion(e,"NE"),this._insertRegion(e,"SW"),this._insertRegion(e,"SE"),t!=null&&this._placeInTree(e,t)}_insertRegion(e,t){let i,n,s,o,g=.5*e.size;switch(t){case"NW":i=e.range.minX,n=e.range.minX+g,s=e.range.minY,o=e.range.minY+g;break;case"NE":i=e.range.minX+g,n=e.range.maxX,s=e.range.minY,o=e.range.minY+g;break;case"SW":i=e.range.minX,n=e.range.minX+g,s=e.range.minY+g,o=e.range.maxY;break;case"SE":i=e.range.minX+g,n=e.range.maxX,s=e.range.minY+g,o=e.range.maxY;break}e.children[t]={centerOfMass:{x:0,y:0},mass:0,range:{minX:i,maxX:n,minY:s,maxY:o},size:.5*e.size,calcSize:2*e.calcSize,children:{data:null},maxWidth:0,level:e.level+1,childrenCount:0}}_debug(e,t){this.barnesHutTree!==void 0&&(e.lineWidth=1,this._drawBranch(this.barnesHutTree.root,e,t))}_drawBranch(e,t,i){i===void 0&&(i="#FF0000"),e.childrenCount===4&&(this._drawBranch(e.children.NW,t),this._drawBranch(e.children.NE,t),this._drawBranch(e.children.SE,t),this._drawBranch(e.children.SW,t)),t.strokeStyle=i,t.beginPath(),t.moveTo(e.range.minX,e.range.minY),t.lineTo(e.range.maxX,e.range.minY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.minY),t.lineTo(e.range.maxX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.maxX,e.range.maxY),t.lineTo(e.range.minX,e.range.maxY),t.stroke(),t.beginPath(),t.moveTo(e.range.minX,e.range.maxY),t.lineTo(e.range.minX,e.range.minY),t.stroke()}},xu=class{constructor(e,t,i){this._rng=Pg("REPULSION SOLVER"),this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,n,s,o,g,a,A=this.body.nodes,C=this.physicsBody.physicsNodeIndices,I=this.physicsBody.forces,l=this.options.nodeDistance,h=-2/3/l,d=4/3;for(let c=0;c<C.length-1;c++){g=A[C[c]];for(let f=c+1;f<C.length;f++)a=A[C[f]],e=a.x-g.x,t=a.y-g.y,i=Math.sqrt(e*e+t*t),i===0&&(i=.1*this._rng(),e=i),i<2*l&&(i<.5*l?o=1:o=h*i+d,o=o/i,n=e*o,s=t*o,I[g.id].x-=n,I[g.id].y-=s,I[a.id].x+=n,I[a.id].y+=s)}}},Su=class{constructor(e,t,i){this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e,this.overlapAvoidanceFactor=Math.max(0,Math.min(1,this.options.avoidOverlap||0))}solve(){let e=this.body.nodes,t=this.physicsBody.physicsNodeIndices,i=this.physicsBody.forces,n=this.options.nodeDistance;for(let s=0;s<t.length-1;s++){let o=e[t[s]];for(let g=s+1;g<t.length;g++){let a=e[t[g]];if(o.level===a.level){let A=n+this.overlapAvoidanceFactor*((o.shape.radius||0)/2+(a.shape.radius||0)/2),C=a.x-o.x,I=a.y-o.y,l=Math.sqrt(C*C+I*I),h=.05,d;l<A?d=-Math.pow(h*l,2)+Math.pow(h*A,2):d=0,l!==0&&(d=d/l);let c=C*d,f=I*d;i[o.id].x-=c,i[o.id].y-=f,i[a.id].x+=c,i[a.id].y+=f}}}}},cs=class{constructor(e,t,i){this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i=this.physicsBody.physicsEdgeIndices,n=this.body.edges,s,o,g;for(let a=0;a<i.length;a++)t=n[i[a]],t.connected===!0&&t.toId!==t.fromId&&this.body.nodes[t.toId]!==void 0&&this.body.nodes[t.fromId]!==void 0&&(t.edgeType.via!==void 0?(e=t.options.length===void 0?this.options.springLength:t.options.length,s=t.to,o=t.edgeType.via,g=t.from,this._calculateSpringForce(s,o,.5*e),this._calculateSpringForce(o,g,.5*e)):(e=t.options.length===void 0?this.options.springLength*1.5:t.options.length,this._calculateSpringForce(t.from,t.to,e)))}_calculateSpringForce(e,t,i){let n=e.x-t.x,s=e.y-t.y,o=Math.max(Math.sqrt(n*n+s*s),.01),g=this.options.springConstant*(i-o)/o,a=n*g,A=s*g;this.physicsBody.forces[e.id]!==void 0&&(this.physicsBody.forces[e.id].x+=a,this.physicsBody.forces[e.id].y+=A),this.physicsBody.forces[t.id]!==void 0&&(this.physicsBody.forces[t.id].x-=a,this.physicsBody.forces[t.id].y-=A)}},Eu=class{constructor(e,t,i){this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,n,s,o,g,a,A=this.body.edges,C=.5,I=this.physicsBody.physicsEdgeIndices,l=this.physicsBody.physicsNodeIndices,h=this.physicsBody.forces;for(let m=0;m<l.length;m++){let b=l[m];h[b].springFx=0,h[b].springFy=0}for(let m=0;m<I.length;m++)t=A[I[m]],t.connected===!0&&(e=t.options.length===void 0?this.options.springLength:t.options.length,i=t.from.x-t.to.x,n=t.from.y-t.to.y,a=Math.sqrt(i*i+n*n),a=a===0?.01:a,g=this.options.springConstant*(e-a)/a,s=i*g,o=n*g,t.to.level!=t.from.level?(h[t.toId]!==void 0&&(h[t.toId].springFx-=s,h[t.toId].springFy-=o),h[t.fromId]!==void 0&&(h[t.fromId].springFx+=s,h[t.fromId].springFy+=o)):(h[t.toId]!==void 0&&(h[t.toId].x-=C*s,h[t.toId].y-=C*o),h[t.fromId]!==void 0&&(h[t.fromId].x+=C*s,h[t.fromId].y+=C*o)));g=1;let d,c;for(let m=0;m<l.length;m++){let b=l[m];d=Math.min(g,Math.max(-g,h[b].springFx)),c=Math.min(g,Math.max(-g,h[b].springFy)),h[b].x+=d,h[b].y+=c}let f=0,u=0;for(let m=0;m<l.length;m++){let b=l[m];f+=h[b].x,u+=h[b].y}let p=f/l.length,v=u/l.length;for(let m=0;m<l.length;m++){let b=l[m];h[b].x-=p,h[b].y-=v}}},dr=class{constructor(e,t,i){this.body=e,this.physicsBody=t,this.setOptions(i)}setOptions(e){this.options=e}solve(){let e,t,i,n,s=this.body.nodes,o=this.physicsBody.physicsNodeIndices,g=this.physicsBody.forces;for(let a=0;a<o.length;a++){let A=o[a];n=s[A],e=-n.x,t=-n.y,i=Math.sqrt(e*e+t*t),this._calculateForces(i,e,t,g,n)}}_calculateForces(e,t,i,n,s){let o=e===0?0:this.options.centralGravity/e;n[s.id].x=t*o,n[s.id].y=i*o}},Tu=class extends lg{constructor(e,t,i){super(e,t,i),this._rng=Pg("FORCE ATLAS 2 BASED REPULSION SOLVER")}_calculateForces(e,t,i,n,s){e===0&&(e=.1*this._rng(),t=e),this.overlapAvoidanceFactor<1&&n.shape.radius&&(e=Math.max(.1+this.overlapAvoidanceFactor*n.shape.radius,e-n.shape.radius));let o=n.edges.length+1,g=this.options.gravitationalConstant*s.mass*n.options.mass*o/Math.pow(e,2),a=t*g,A=i*g;this.physicsBody.forces[n.id].x+=a,this.physicsBody.forces[n.id].y+=A}},ku=class extends dr{constructor(e,t,i){super(e,t,i)}_calculateForces(e,t,i,n,s){if(e>0){let o=s.edges.length+1,g=this.options.centralGravity*o*s.options.mass;n[s.id].x=t*g,n[s.id].y=i*g}}},Ou=class{constructor(e){this.body=e,this.physicsBody={physicsNodeIndices:[],physicsEdgeIndices:[],forces:{},velocities:{}},this.physicsEnabled=!0,this.simulationInterval=1e3/60,this.requiresTimeout=!0,this.previousStates={},this.referenceState={},this.freezeCache={},this.renderTimer=void 0,this.adaptiveTimestep=!1,this.adaptiveTimestepEnabled=!1,this.adaptiveCounter=0,this.adaptiveInterval=3,this.stabilized=!1,this.startedStabilization=!1,this.stabilizationIterations=0,this.ready=!1,this.options={},this.defaultOptions={enabled:!0,barnesHut:{theta:.5,gravitationalConstant:-2e3,centralGravity:.3,springLength:95,springConstant:.04,damping:.09,avoidOverlap:0},forceAtlas2Based:{theta:.5,gravitationalConstant:-50,centralGravity:.01,springConstant:.08,springLength:100,damping:.4,avoidOverlap:0},repulsion:{centralGravity:.2,springLength:200,springConstant:.05,nodeDistance:100,damping:.09,avoidOverlap:0},hierarchicalRepulsion:{centralGravity:0,springLength:100,springConstant:.01,nodeDistance:120,damping:.09},maxVelocity:50,minVelocity:.75,solver:"barnesHut",stabilization:{enabled:!0,iterations:1e3,updateInterval:50,onlyDynamicEdges:!1,fit:!0},timestep:.5,adaptiveTimestep:!0,wind:{x:0,y:0}},Fe(this.options,this.defaultOptions),this.timestep=.5,this.layoutFailed=!1,this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("initPhysics",()=>{this.initPhysics()}),this.body.emitter.on("_layoutFailed",()=>{this.layoutFailed=!0}),this.body.emitter.on("resetPhysics",()=>{this.stopSimulation(),this.ready=!1}),this.body.emitter.on("disablePhysics",()=>{this.physicsEnabled=!1,this.stopSimulation()}),this.body.emitter.on("restorePhysics",()=>{this.setOptions(this.options),this.ready===!0&&this.startSimulation()}),this.body.emitter.on("startSimulation",()=>{this.ready===!0&&this.startSimulation()}),this.body.emitter.on("stopSimulation",()=>{this.stopSimulation()}),this.body.emitter.on("destroy",()=>{this.stopSimulation(!1),this.body.emitter.off()}),this.body.emitter.on("_dataChanged",()=>{this.updatePhysicsData()})}setOptions(e){if(e!==void 0)if(e===!1)this.options.enabled=!1,this.physicsEnabled=!1,this.stopSimulation();else if(e===!0)this.options.enabled=!0,this.physicsEnabled=!0,this.startSimulation();else{this.physicsEnabled=!0,Jo(["stabilization"],this.options,e),Ot(this.options,e,"stabilization"),e.enabled===void 0&&(this.options.enabled=!0),this.options.enabled===!1&&(this.physicsEnabled=!1,this.stopSimulation());let t=this.options.wind;t&&((typeof t.x!="number"||Kc(t.x))&&(t.x=0),(typeof t.y!="number"||Kc(t.y))&&(t.y=0)),this.timestep=this.options.timestep}this.init()}init(){let e;this.options.solver==="forceAtlas2Based"?(e=this.options.forceAtlas2Based,this.nodesSolver=new Tu(this.body,this.physicsBody,e),this.edgesSolver=new cs(this.body,this.physicsBody,e),this.gravitySolver=new ku(this.body,this.physicsBody,e)):this.options.solver==="repulsion"?(e=this.options.repulsion,this.nodesSolver=new xu(this.body,this.physicsBody,e),this.edgesSolver=new cs(this.body,this.physicsBody,e),this.gravitySolver=new dr(this.body,this.physicsBody,e)):this.options.solver==="hierarchicalRepulsion"?(e=this.options.hierarchicalRepulsion,this.nodesSolver=new Su(this.body,this.physicsBody,e),this.edgesSolver=new Eu(this.body,this.physicsBody,e),this.gravitySolver=new dr(this.body,this.physicsBody,e)):(e=this.options.barnesHut,this.nodesSolver=new lg(this.body,this.physicsBody,e),this.edgesSolver=new cs(this.body,this.physicsBody,e),this.gravitySolver=new dr(this.body,this.physicsBody,e)),this.modelOptions=e}initPhysics(){this.physicsEnabled===!0&&this.options.enabled===!0?this.options.stabilization.enabled===!0?this.stabilize():(this.stabilized=!1,this.ready=!0,this.body.emitter.emit("fit",{},this.layoutFailed),this.startSimulation()):(this.ready=!0,this.body.emitter.emit("fit"))}startSimulation(){if(this.physicsEnabled===!0&&this.options.enabled===!0){if(this.stabilized=!1,this.adaptiveTimestep=!1,this.body.emitter.emit("_resizeNodes"),this.viewFunction===void 0){var e;this.viewFunction=P(e=this.simulationStep).call(e,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}else this.body.emitter.emit("_redraw")}stopSimulation(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.stabilized=!0,e===!0&&this._emitStabilized(),this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.viewFunction=void 0,e===!0&&this.body.emitter.emit("_stopRendering"))}simulationStep(){let e=Yo();this.physicsTick(),(Yo()-e<.4*this.simulationInterval||this.runDoubleSpeed===!0)&&this.stabilized===!1&&(this.physicsTick(),this.runDoubleSpeed=!0),this.stabilized===!0&&this.stopSimulation()}_emitStabilized(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.stabilizationIterations;(this.stabilizationIterations>1||this.startedStabilization===!0)&&hi(()=>{this.body.emitter.emit("stabilized",{iterations:e}),this.startedStabilization=!1,this.stabilizationIterations=0},0)}physicsStep(){this.gravitySolver.solve(),this.nodesSolver.solve(),this.edgesSolver.solve(),this.moveNodes()}adjustTimeStep(){this._evaluateStepQuality()===!0?this.timestep=1.2*this.timestep:this.timestep/1.2<this.options.timestep?this.timestep=this.options.timestep:(this.adaptiveCounter=-1,this.timestep=Math.max(this.options.timestep,this.timestep/1.2))}physicsTick(){this._startStabilizing(),this.stabilized!==!0&&(this.adaptiveTimestep===!0&&this.adaptiveTimestepEnabled===!0?(this.adaptiveCounter%this.adaptiveInterval===0?(this.timestep=2*this.timestep,this.physicsStep(),this.revert(),this.timestep=.5*this.timestep,this.physicsStep(),this.physicsStep(),this.adjustTimeStep()):this.physicsStep(),this.adaptiveCounter+=1):(this.timestep=this.options.timestep,this.physicsStep()),this.stabilized===!0&&this.revert(),this.stabilizationIterations++)}updatePhysicsData(){this.physicsBody.forces={},this.physicsBody.physicsNodeIndices=[],this.physicsBody.physicsEdgeIndices=[];let e=this.body.nodes,t=this.body.edges;for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&e[i].options.physics===!0&&this.physicsBody.physicsNodeIndices.push(e[i].id);for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&t[i].options.physics===!0&&this.physicsBody.physicsEdgeIndices.push(t[i].id);for(let i=0;i<this.physicsBody.physicsNodeIndices.length;i++){let n=this.physicsBody.physicsNodeIndices[i];this.physicsBody.forces[n]={x:0,y:0},this.physicsBody.velocities[n]===void 0&&(this.physicsBody.velocities[n]={x:0,y:0})}for(let i in this.physicsBody.velocities)e[i]===void 0&&delete this.physicsBody.velocities[i]}revert(){let e=Se(this.previousStates),t=this.body.nodes,i=this.physicsBody.velocities;this.referenceState={};for(let n=0;n<e.length;n++){let s=e[n];t[s]!==void 0?t[s].options.physics===!0&&(this.referenceState[s]={positions:{x:t[s].x,y:t[s].y}},i[s].x=this.previousStates[s].vx,i[s].y=this.previousStates[s].vy,t[s].x=this.previousStates[s].x,t[s].y=this.previousStates[s].y):delete this.previousStates[s]}}_evaluateStepQuality(){let e,t,i,n=this.body.nodes,s=this.referenceState,o=.3;for(let g in this.referenceState)if(Object.prototype.hasOwnProperty.call(this.referenceState,g)&&n[g]!==void 0&&(e=n[g].x-s[g].positions.x,t=n[g].y-s[g].positions.y,i=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),i>o))return!1;return!0}moveNodes(){let e=this.physicsBody.physicsNodeIndices,t=0,i=0,n=5;for(let s=0;s<e.length;s++){let o=e[s],g=this._performStep(o);t=Math.max(t,g),i+=g}this.adaptiveTimestepEnabled=i/e.length<n,this.stabilized=t<this.options.minVelocity}calculateComponentVelocity(e,t,i){let n=this.modelOptions.damping*e,s=(t-n)/i;e+=s*this.timestep;let o=this.options.maxVelocity||1e9;return Math.abs(e)>o&&(e=e>0?o:-o),e}_performStep(e){let t=this.body.nodes[e],i=this.physicsBody.forces[e];this.options.wind&&(i.x+=this.options.wind.x,i.y+=this.options.wind.y);let n=this.physicsBody.velocities[e];return this.previousStates[e]={x:t.x,y:t.y,vx:n.x,vy:n.y},t.options.fixed.x===!1?(n.x=this.calculateComponentVelocity(n.x,i.x,t.options.mass),t.x+=n.x*this.timestep):(i.x=0,n.x=0),t.options.fixed.y===!1?(n.y=this.calculateComponentVelocity(n.y,i.y,t.options.mass),t.y+=n.y*this.timestep):(i.y=0,n.y=0),Math.sqrt(Math.pow(n.x,2)+Math.pow(n.y,2))}_freezeNodes(){let e=this.body.nodes;for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].x&&e[t].y){let i=e[t].options.fixed;this.freezeCache[t]={x:i.x,y:i.y},i.x=!0,i.y=!0}}_restoreFrozenNodes(){let e=this.body.nodes;for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&this.freezeCache[t]!==void 0&&(e[t].options.fixed.x=this.freezeCache[t].x,e[t].options.fixed.y=this.freezeCache[t].y);this.freezeCache={}}stabilize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.stabilization.iterations;if(typeof e!="number"&&(e=this.options.stabilization.iterations,console.error("The stabilize method needs a numeric amount of iterations. Switching to default: ",e)),this.physicsBody.physicsNodeIndices.length===0){this.ready=!0;return}this.adaptiveTimestep=this.options.adaptiveTimestep,this.body.emitter.emit("_resizeNodes"),this.stopSimulation(),this.stabilized=!1,this.body.emitter.emit("_blockRedraw"),this.targetIterations=e,this.options.stabilization.onlyDynamicEdges===!0&&this._freezeNodes(),this.stabilizationIterations=0,hi(()=>this._stabilizationBatch(),0)}_startStabilizing(){return this.startedStabilization===!0?!1:(this.body.emitter.emit("startStabilizing"),this.startedStabilization=!0,!0)}_stabilizationBatch(){let e=()=>this.stabilized===!1&&this.stabilizationIterations<this.targetIterations,t=()=>{this.body.emitter.emit("stabilizationProgress",{iterations:this.stabilizationIterations,total:this.targetIterations})};this._startStabilizing()&&t();let i=0;for(;e()&&i<this.options.stabilization.updateInterval;)this.physicsTick(),i++;if(t(),e()){var n;hi(P(n=this._stabilizationBatch).call(n,this),0)}else this._finalizeStabilization()}_finalizeStabilization(){this.body.emitter.emit("_allowRedraw"),this.options.stabilization.fit===!0&&this.body.emitter.emit("fit"),this.options.stabilization.onlyDynamicEdges===!0&&this._restoreFrozenNodes(),this.body.emitter.emit("stabilizationIterationsDone"),this.body.emitter.emit("_requestRedraw"),this.stabilized===!0?this._emitStabilized():this.startSimulation(),this.ready=!0}_drawForces(e){for(let t=0;t<this.physicsBody.physicsNodeIndices.length;t++){let i=this.physicsBody.physicsNodeIndices[t],n=this.body.nodes[i],s=this.physicsBody.forces[i],o=20,g=.03,a=Math.sqrt(Math.pow(s.x,2)+Math.pow(s.x,2)),A=Math.min(Math.max(5,a),15),C=3*A,I=Wc((180-Math.min(1,Math.max(0,g*a))*180)/360,1,1),l={x:n.x+o*s.x,y:n.y+o*s.y};e.lineWidth=A,e.strokeStyle=I,e.beginPath(),e.moveTo(n.x,n.y),e.lineTo(l.x,l.y),e.stroke();let h=Math.atan2(s.y,s.x);e.fillStyle=I,og.draw(e,{type:"arrow",point:l,angle:h,length:C}),_s(e).call(e)}}},tt=class{constructor(){}static getRange(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,g;if(t.length>0)for(let a=0;a<t.length;a++)g=e[t[a]],s>g.shape.boundingBox.left&&(s=g.shape.boundingBox.left),o<g.shape.boundingBox.right&&(o=g.shape.boundingBox.right),i>g.shape.boundingBox.top&&(i=g.shape.boundingBox.top),n<g.shape.boundingBox.bottom&&(n=g.shape.boundingBox.bottom);return s===1e9&&o===-1e9&&i===1e9&&n===-1e9&&(i=0,n=0,s=0,o=0),{minX:s,maxX:o,minY:i,maxY:n}}static getRangeCore(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=1e9,n=-1e9,s=1e9,o=-1e9,g;if(t.length>0)for(let a=0;a<t.length;a++)g=e[t[a]],s>g.x&&(s=g.x),o<g.x&&(o=g.x),i>g.y&&(i=g.y),n<g.y&&(n=g.y);return s===1e9&&o===-1e9&&i===1e9&&n===-1e9&&(i=0,n=0,s=0,o=0),{minX:s,maxX:o,minY:i,maxY:n}}static findCenter(e){return{x:.5*(e.maxX+e.minX),y:.5*(e.maxY+e.minY)}}static cloneOptions(e,t){let i={};return t===void 0||t==="node"?(me(i,e.options,!0),i.x=e.x,i.y=e.y,i.amountOfConnections=e.edges.length):me(i,e.options,!0),i}},Ru=class extends ot{constructor(e,t,i,n,s,o){super(e,t,i,n,s,o),this.isCluster=!0,this.containedNodes={},this.containedEdges={}}_openChildCluster(e){let t=this.body.nodes[e];if(this.containedNodes[e]===void 0)throw new Error("node with id: "+e+" not in current cluster");if(!t.isCluster)throw new Error("node with id: "+e+" is not a cluster");delete this.containedNodes[e],$(t.edges,i=>{delete this.containedEdges[i.id]}),$(t.containedNodes,(i,n)=>{this.containedNodes[n]=i}),t.containedNodes={},$(t.containedEdges,(i,n)=>{this.containedEdges[n]=i}),t.containedEdges={},$(t.edges,i=>{$(this.edges,n=>{var s,o;let g=ue(s=n.clusteringEdgeReplacingIds).call(s,i.id);g!==-1&&($(i.clusteringEdgeReplacingIds,a=>{n.clusteringEdgeReplacingIds.push(a),this.body.edges[a].edgeReplacedById=n.id}),li(o=n.clusteringEdgeReplacingIds).call(o,g,1))})}),t.edges=[]}},Du=class{constructor(e){this.body=e,this.clusteredNodes={},this.clusteredEdges={},this.options={},this.defaultOptions={},Fe(this.options,this.defaultOptions),this.body.emitter.on("_resetData",()=>{this.clusteredNodes={},this.clusteredEdges={}})}clusterByHubsize(e,t){e===void 0?e=this._getHubSize():typeof e=="object"&&(t=this._checkOptions(e),e=this._getHubSize());let i=[];for(let n=0;n<this.body.nodeIndices.length;n++){let s=this.body.nodes[this.body.nodeIndices[n]];s.edges.length>=e&&i.push(s.id)}for(let n=0;n<i.length;n++)this.clusterByConnection(i[n],t,!0);this.body.emitter.emit("_dataChanged")}cluster(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(e.joinCondition===void 0)throw new Error("Cannot call clusterByNodeData without a joinCondition function in the options.");e=this._checkOptions(e);let i={},n={};$(this.body.nodes,(s,o)=>{s.options&&e.joinCondition(s.options)===!0&&(i[o]=s,$(s.edges,g=>{this.clusteredEdges[g.id]===void 0&&(n[g.id]=g)}))}),this._cluster(i,n,e,t)}clusterByEdgeCount(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;t=this._checkOptions(t);let n=[],s={},o,g,a;for(let A=0;A<this.body.nodeIndices.length;A++){let C={},I={},l=this.body.nodeIndices[A],h=this.body.nodes[l];if(s[l]===void 0){a=0,g=[];for(let d=0;d<h.edges.length;d++)o=h.edges[d],this.clusteredEdges[o.id]===void 0&&(o.toId!==o.fromId&&a++,g.push(o));if(a===e){let d=function(f){if(t.joinCondition===void 0||t.joinCondition===null)return!0;let u=tt.cloneOptions(f);return t.joinCondition(u)},c=!0;for(let f=0;f<g.length;f++){o=g[f];let u=this._getConnectedId(o,l);if(d(h))I[o.id]=o,C[l]=h,C[u]=this.body.nodes[u],s[l]=!0;else{c=!1;break}}if(Se(C).length>0&&Se(I).length>0&&c===!0){let u=function(){for(let p=0;p<n.length;++p)for(let v in C)if(n[p].nodes[v]!==void 0)return n[p]}();if(u!==void 0){for(let p in C)u.nodes[p]===void 0&&(u.nodes[p]=C[p]);for(let p in I)u.edges[p]===void 0&&(u.edges[p]=I[p])}else n.push({nodes:C,edges:I})}}}}for(let A=0;A<n.length;A++)this._cluster(n[A].nodes,n[A].edges,t,!1);i===!0&&this.body.emitter.emit("_dataChanged")}clusterOutliers(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(1,e,t)}clusterBridges(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;this.clusterByEdgeCount(2,e,t)}clusterByConnection(e,t){var i;let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No nodeId supplied to clusterByConnection!");if(this.body.nodes[e]===void 0)throw new Error("The nodeId given to clusterByConnection does not exist!");let s=this.body.nodes[e];t=this._checkOptions(t,s),t.clusterNodeProperties.x===void 0&&(t.clusterNodeProperties.x=s.x),t.clusterNodeProperties.y===void 0&&(t.clusterNodeProperties.y=s.y),t.clusterNodeProperties.fixed===void 0&&(t.clusterNodeProperties.fixed={},t.clusterNodeProperties.fixed.x=s.options.fixed.x,t.clusterNodeProperties.fixed.y=s.options.fixed.y);let o={},g={},a=s.id,A=tt.cloneOptions(s);o[a]=s;for(let I=0;I<s.edges.length;I++){let l=s.edges[I];if(this.clusteredEdges[l.id]===void 0){let h=this._getConnectedId(l,a);if(this.clusteredNodes[h]===void 0)if(h!==a)if(t.joinCondition===void 0)g[l.id]=l,o[h]=this.body.nodes[h];else{let d=tt.cloneOptions(this.body.nodes[h]);t.joinCondition(A,d)===!0&&(g[l.id]=l,o[h]=this.body.nodes[h])}else g[l.id]=l}}let C=et(i=Se(o)).call(i,function(I){return o[I].id});for(let I in o){if(!Object.prototype.hasOwnProperty.call(o,I))continue;let l=o[I];for(let h=0;h<l.edges.length;h++){let d=l.edges[h];ue(C).call(C,this._getConnectedId(d,l.id))>-1&&(g[d.id]=d)}}this._cluster(o,g,t,n)}_createClusterEdges(e,t,i,n){let s,o,g,a,A,C,I=Se(e),l=[];for(let c=0;c<I.length;c++){o=I[c],g=e[o];for(let f=0;f<g.edges.length;f++)s=g.edges[f],this.clusteredEdges[s.id]===void 0&&(s.toId==s.fromId?t[s.id]=s:s.toId==o?(a=i.id,A=s.fromId,C=A):(a=s.toId,A=i.id,C=a),e[C]===void 0&&l.push({edge:s,fromId:A,toId:a}))}let h=[],d=function(c){for(let f=0;f<h.length;f++){let u=h[f],p=c.fromId===u.fromId&&c.toId===u.toId,v=c.fromId===u.toId&&c.toId===u.fromId;if(p||v)return u}return null};for(let c=0;c<l.length;c++){let f=l[c],u=f.edge,p=d(f);p===null?(p=this._createClusteredEdge(f.fromId,f.toId,u,n),h.push(p)):p.clusteringEdgeReplacingIds.push(u.id),this.body.edges[u.id].edgeReplacedById=p.id,this._backupEdgeOptions(u),u.setOptions({physics:!1})}}_checkOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e.clusterEdgeProperties===void 0&&(e.clusterEdgeProperties={}),e.clusterNodeProperties===void 0&&(e.clusterNodeProperties={}),e}_cluster(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,s=[];for(let C in e)Object.prototype.hasOwnProperty.call(e,C)&&this.clusteredNodes[C]!==void 0&&s.push(C);for(let C=0;C<s.length;++C)delete e[s[C]];if(Se(e).length==0||Se(e).length==1&&i.clusterNodeProperties.allowSingleNodeCluster!=!0)return;let o=me({},i.clusterNodeProperties);if(i.processProperties!==void 0){let C=[];for(let l in e)if(Object.prototype.hasOwnProperty.call(e,l)){let h=tt.cloneOptions(e[l]);C.push(h)}let I=[];for(let l in t)if(Object.prototype.hasOwnProperty.call(t,l)&&l.substr(0,12)!=="clusterEdge:"){let h=tt.cloneOptions(t[l],"edge");I.push(h)}if(o=i.processProperties(o,C,I),!o)throw new Error("The processProperties function does not return properties!")}o.id===void 0&&(o.id="cluster:"+hr());let g=o.id;o.label===void 0&&(o.label="cluster");let a;o.x===void 0&&(a=this._getClusterPosition(e),o.x=a.x),o.y===void 0&&(a===void 0&&(a=this._getClusterPosition(e)),o.y=a.y),o.id=g;let A=this.body.functions.createNode(o,Ru);A.containedNodes=e,A.containedEdges=t,A.clusterEdgeProperties=i.clusterEdgeProperties,this.body.nodes[o.id]=A,this._clusterEdges(e,t,o,i.clusterEdgeProperties),o.id=void 0,n===!0&&this.body.emitter.emit("_dataChanged")}_backupEdgeOptions(e){this.clusteredEdges[e.id]===void 0&&(this.clusteredEdges[e.id]={physics:e.options.physics})}_restoreEdge(e){let t=this.clusteredEdges[e.id];t!==void 0&&(e.setOptions({physics:t.physics}),delete this.clusteredEdges[e.id])}isCluster(e){return this.body.nodes[e]!==void 0?this.body.nodes[e].isCluster===!0:(console.error("Node does not exist."),!1)}_getClusterPosition(e){let t=Se(e),i=e[t[0]].x,n=e[t[0]].x,s=e[t[0]].y,o=e[t[0]].y,g;for(let a=1;a<t.length;a++)g=e[t[a]],i=g.x<i?g.x:i,n=g.x>n?g.x:n,s=g.y<s?g.y:s,o=g.y>o?g.y:o;return{x:.5*(i+n),y:.5*(s+o)}}openCluster(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(e===void 0)throw new Error("No clusterNodeId supplied to openCluster.");let n=this.body.nodes[e];if(n===void 0)throw new Error("The clusterNodeId supplied to openCluster does not exist.");if(n.isCluster!==!0||n.containedNodes===void 0||n.containedEdges===void 0)throw new Error("The node:"+e+" is not a valid cluster.");let s=this.findNode(e),o=ue(s).call(s,e)-1;if(o>=0){let C=s[o];this.body.nodes[C]._openChildCluster(e),delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged");return}let g=n.containedNodes,a=n.containedEdges;if(t!==void 0&&t.releaseFunction!==void 0&&typeof t.releaseFunction=="function"){let C={},I={x:n.x,y:n.y};for(let h in g)if(Object.prototype.hasOwnProperty.call(g,h)){let d=this.body.nodes[h];C[h]={x:d.x,y:d.y}}let l=t.releaseFunction(I,C);for(let h in g)if(Object.prototype.hasOwnProperty.call(g,h)){let d=this.body.nodes[h];l[h]!==void 0&&(d.x=l[h].x===void 0?n.x:l[h].x,d.y=l[h].y===void 0?n.y:l[h].y)}}else $(g,function(C){C.options.fixed.x===!1&&(C.x=n.x),C.options.fixed.y===!1&&(C.y=n.y)});for(let C in g)if(Object.prototype.hasOwnProperty.call(g,C)){let I=this.body.nodes[C];I.vx=n.vx,I.vy=n.vy,I.setOptions({physics:!0}),delete this.clusteredNodes[C]}let A=[];for(let C=0;C<n.edges.length;C++)A.push(n.edges[C]);for(let C=0;C<A.length;C++){let I=A[C],l=this._getConnectedId(I,e),h=this.clusteredNodes[l];for(let d=0;d<I.clusteringEdgeReplacingIds.length;d++){let c=I.clusteringEdgeReplacingIds[d],f=this.body.edges[c];if(f!==void 0)if(h!==void 0){let u=this.body.nodes[h.clusterId];u.containedEdges[f.id]=f,delete a[f.id];let p=f.fromId,v=f.toId;f.toId==l?v=h.clusterId:p=h.clusterId,this._createClusteredEdge(p,v,f,u.clusterEdgeProperties,{hidden:!1,physics:!0})}else this._restoreEdge(f)}I.remove()}for(let C in a)Object.prototype.hasOwnProperty.call(a,C)&&this._restoreEdge(a[C]);delete this.body.nodes[e],i===!0&&this.body.emitter.emit("_dataChanged")}getNodesInCluster(e){let t=[];if(this.isCluster(e)===!0){let i=this.body.nodes[e].containedNodes;for(let n in i)Object.prototype.hasOwnProperty.call(i,n)&&t.push(this.body.nodes[n].id)}return t}findNode(e){let t=[],n=0,s;for(;this.clusteredNodes[e]!==void 0&&n<100;){if(s=this.body.nodes[e],s===void 0)return[];t.push(s.id),e=this.clusteredNodes[e].clusterId,n++}return s=this.body.nodes[e],s===void 0?[]:(t.push(s.id),xn(t).call(t),t)}updateClusteredNode(e,t){if(e===void 0)throw new Error("No clusteredNodeId supplied to updateClusteredNode.");if(t===void 0)throw new Error("No newOptions supplied to updateClusteredNode.");if(this.body.nodes[e]===void 0)throw new Error("The clusteredNodeId supplied to updateClusteredNode does not exist.");this.body.nodes[e].setOptions(t),this.body.emitter.emit("_dataChanged")}updateEdge(e,t){if(e===void 0)throw new Error("No startEdgeId supplied to updateEdge.");if(t===void 0)throw new Error("No newOptions supplied to updateEdge.");if(this.body.edges[e]===void 0)throw new Error("The startEdgeId supplied to updateEdge does not exist.");let i=this.getClusteredEdges(e);for(let n=0;n<i.length;n++)this.body.edges[i[n]].setOptions(t);this.body.emitter.emit("_dataChanged")}getClusteredEdges(e){let t=[],n=0;for(;e!==void 0&&this.body.edges[e]!==void 0&&n<100;)t.push(this.body.edges[e].id),e=this.body.edges[e].edgeReplacedById,n++;return xn(t).call(t),t}getBaseEdge(e){return this.getBaseEdges(e)[0]}getBaseEdges(e){let t=[e],i=[],n=[],s=100,o=0;for(;t.length>0&&o<s;){let g=t.pop();if(g===void 0)continue;let a=this.body.edges[g];if(a===void 0)continue;o++;let A=a.clusteringEdgeReplacingIds;if(A===void 0)n.push(g);else for(let C=0;C<A.length;++C){let I=A[C];ue(t).call(t,A)!==-1||ue(i).call(i,A)!==-1||t.push(I)}i.push(g)}return n}_getConnectedId(e,t){return e.toId!=t?e.toId:(e.fromId!=t,e.fromId)}_getHubSize(){let e=0,t=0,i=0,n=0;for(let a=0;a<this.body.nodeIndices.length;a++){let A=this.body.nodes[this.body.nodeIndices[a]];A.edges.length>n&&(n=A.edges.length),e+=A.edges.length,t+=Math.pow(A.edges.length,2),i+=1}e=e/i,t=t/i;let s=t-Math.pow(e,2),o=Math.sqrt(s),g=Math.floor(e+2*o);return g>n&&(g=n),g}_createClusteredEdge(e,t,i,n,s){let o=tt.cloneOptions(i,"edge");me(o,n),o.from=e,o.to=t,o.id="clusterEdge:"+hr(),s!==void 0&&me(o,s);let g=this.body.functions.createEdge(o);return g.clusteringEdgeReplacingIds=[i.id],g.connect(),this.body.edges[g.id]=g,g}_clusterEdges(e,t,i,n){if(t instanceof $i){let s=t,o={};o[s.id]=s,t=o}if(e instanceof ot){let s=e,o={};o[s.id]=s,e=o}if(i==null)throw new Error("_clusterEdges: parameter clusterNode required");n===void 0&&(n=i.clusterEdgeProperties),this._createClusterEdges(e,t,i,n);for(let s in t)if(Object.prototype.hasOwnProperty.call(t,s)&&this.body.edges[s]!==void 0){let o=this.body.edges[s];this._backupEdgeOptions(o),o.setOptions({physics:!1})}for(let s in e)Object.prototype.hasOwnProperty.call(e,s)&&(this.clusteredNodes[s]={clusterId:i.id,node:this.body.nodes[s]},this.body.nodes[s].setOptions({physics:!1}))}_getClusterNodeForNode(e){if(e===void 0)return;let t=this.clusteredNodes[e];if(t===void 0)return;let i=t.clusterId;if(i!==void 0)return this.body.nodes[i]}_filter(e,t){let i=[];return $(e,n=>{t(n)&&i.push(n)}),i}_updateState(){let e,t=[],i={},n=a=>{$(this.body.nodes,A=>{A.isCluster===!0&&a(A)})};for(e in this.clusteredNodes){if(!Object.prototype.hasOwnProperty.call(this.clusteredNodes,e))continue;this.body.nodes[e]===void 0&&t.push(e)}n(function(a){for(let A=0;A<t.length;A++)delete a.containedNodes[t[A]]});for(let a=0;a<t.length;a++)delete this.clusteredNodes[t[a]];$(this.clusteredEdges,a=>{let A=this.body.edges[a];(A===void 0||!A.endPointsValid())&&(i[a]=a)}),n(function(a){$(a.containedEdges,(A,C)=>{!A.endPointsValid()&&!i[C]&&(i[C]=C)})}),$(this.body.edges,(a,A)=>{let C=!0,I=a.clusteringEdgeReplacingIds;if(I!==void 0){let l=0;$(I,h=>{let d=this.body.edges[h];d!==void 0&&d.endPointsValid()&&(l+=1)}),C=l>0}(!a.endPointsValid()||!C)&&(i[A]=A)}),n(a=>{$(i,A=>{delete a.containedEdges[A],$(a.edges,(C,I)=>{if(C.id===A){a.edges[I]=null;return}C.clusteringEdgeReplacingIds=this._filter(C.clusteringEdgeReplacingIds,function(l){return!i[l]})}),a.edges=this._filter(a.edges,function(C){return C!==null})})}),$(i,a=>{delete this.clusteredEdges[a]}),$(i,a=>{delete this.body.edges[a]});let s=Se(this.body.edges);$(s,a=>{let A=this.body.edges[a],C=this._isClusteredNode(A.fromId)||this._isClusteredNode(A.toId);if(C!==this._isClusteredEdge(A.id))if(C){let I=this._getClusterNodeForNode(A.fromId);I!==void 0&&this._clusterEdges(this.body.nodes[A.fromId],A,I);let l=this._getClusterNodeForNode(A.toId);l!==void 0&&this._clusterEdges(this.body.nodes[A.toId],A,l)}else delete this._clusterEdges[a],this._restoreEdge(A)});let o=!1,g=!0;for(;g;){let a=[];n(function(A){let C=Se(A.containedNodes).length,I=A.options.allowSingleNodeCluster===!0;(I&&C<1||!I&&C<2)&&a.push(A.id)});for(let A=0;A<a.length;++A)this.openCluster(a[A],{},!1);g=a.length>0,o=o||g}o&&this._updateState()}_isClusteredNode(e){return this.clusteredNodes[e]!==void 0}_isClusteredEdge(e){return this.clusteredEdges[e]!==void 0}},Pu=class{constructor(e,t){this.body=e,this.canvas=t,this.redrawRequested=!1,this.requestAnimationFrameRequestId=void 0,this.renderingActive=!1,this.renderRequests=0,this.allowRedraw=!0,this.dragging=!1,this.zooming=!1,this.options={},this.defaultOptions={hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1},Fe(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e;this.body.emitter.on("dragStart",()=>{this.dragging=!0}),this.body.emitter.on("dragEnd",()=>{this.dragging=!1}),this.body.emitter.on("zoom",()=>{this.zooming=!0,window.clearTimeout(this.zoomTimeoutId),this.zoomTimeoutId=hi(()=>{var t;this.zooming=!1,P(t=this._requestRedraw).call(t,this)()},250)}),this.body.emitter.on("_resizeNodes",()=>{this._resizeNodes()}),this.body.emitter.on("_redraw",()=>{this.renderingActive===!1&&this._redraw()}),this.body.emitter.on("_blockRedraw",()=>{this.allowRedraw=!1}),this.body.emitter.on("_allowRedraw",()=>{this.allowRedraw=!0,this.redrawRequested=!1}),this.body.emitter.on("_requestRedraw",P(e=this._requestRedraw).call(e,this)),this.body.emitter.on("_startRendering",()=>{this.renderRequests+=1,this.renderingActive=!0,this._startRendering()}),this.body.emitter.on("_stopRendering",()=>{this.renderRequests-=1,this.renderingActive=this.renderRequests>0,this.requestAnimationFrameRequestId=void 0}),this.body.emitter.on("destroy",()=>{this.renderRequests=0,this.allowRedraw=!1,this.renderingActive=!1,window.cancelAnimationFrame(this.requestAnimationFrameRequestId),this.body.emitter.off()})}setOptions(e){e!==void 0&&Pr(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag"],this.options,e)}_startRendering(){if(this.renderingActive===!0&&this.requestAnimationFrameRequestId===void 0){var e;this.requestAnimationFrameRequestId=window.requestAnimationFrame(P(e=this._renderStep).call(e,this),this.simulationInterval)}}_renderStep(){this.renderingActive===!0&&(this.requestAnimationFrameRequestId=void 0,this._startRendering(),this._redraw())}redraw(){this.body.emitter.emit("setSize"),this._redraw()}_requestRedraw(){this.redrawRequested!==!0&&this.renderingActive===!1&&this.allowRedraw===!0&&(this.redrawRequested=!0,window.requestAnimationFrame(()=>{this._redraw(!1)}))}_redraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.allowRedraw===!0){this.body.emitter.emit("initRedraw"),this.redrawRequested=!1;let t={drawExternalLabels:null};(this.canvas.frame.canvas.width===0||this.canvas.frame.canvas.height===0)&&this.canvas.setSize(),this.canvas.setTransform();let i=this.canvas.getContext(),n=this.canvas.frame.canvas.clientWidth,s=this.canvas.frame.canvas.clientHeight;if(i.clearRect(0,0,n,s),this.canvas.frame.clientWidth===0)return;if(i.save(),i.translate(this.body.view.translation.x,this.body.view.translation.y),i.scale(this.body.view.scale,this.body.view.scale),i.beginPath(),this.body.emitter.emit("beforeDrawing",i),i.closePath(),e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawEdges(i),this.dragging===!1||this.dragging===!0&&this.options.hideNodesOnDrag===!1){let{drawExternalLabels:o}=this._drawNodes(i,e);t.drawExternalLabels=o}e===!1&&(this.dragging===!1||this.dragging===!0&&this.options.hideEdgesOnDrag===!1)&&(this.zooming===!1||this.zooming===!0&&this.options.hideEdgesOnZoom===!1)&&this._drawArrows(i),t.drawExternalLabels!=null&&t.drawExternalLabels(),e===!1&&this._drawSelectionBox(i),i.beginPath(),this.body.emitter.emit("afterDrawing",i),i.closePath(),i.restore(),e===!0&&i.clearRect(0,0,n,s)}}_resizeNodes(){this.canvas.setTransform();let e=this.canvas.getContext();e.save(),e.translate(this.body.view.translation.x,this.body.view.translation.y),e.scale(this.body.view.scale,this.body.view.scale);let t=this.body.nodes,i;for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(i=t[n],i.resize(e),i.updateBoundingBox(e,i.selected));e.restore()}_drawNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=this.body.nodes,n=this.body.nodeIndices,s,o=[],g=[],a=20,A=this.canvas.DOMtoCanvas({x:-a,y:-a}),C=this.canvas.DOMtoCanvas({x:this.canvas.frame.canvas.clientWidth+a,y:this.canvas.frame.canvas.clientHeight+a}),I={top:A.y,left:A.x,bottom:C.y,right:C.x},l=[];for(let f=0;f<n.length;f++)if(s=i[n[f]],s.hover)g.push(n[f]);else if(s.isSelected())o.push(n[f]);else if(t===!0){let u=s.draw(e);u.drawExternalLabel!=null&&l.push(u.drawExternalLabel)}else if(s.isBoundingBoxOverlappingWith(I)===!0){let u=s.draw(e);u.drawExternalLabel!=null&&l.push(u.drawExternalLabel)}else s.updateBoundingBox(e,s.selected);let h,d=o.length,c=g.length;for(h=0;h<d;h++){s=i[o[h]];let f=s.draw(e);f.drawExternalLabel!=null&&l.push(f.drawExternalLabel)}for(h=0;h<c;h++){s=i[g[h]];let f=s.draw(e);f.drawExternalLabel!=null&&l.push(f.drawExternalLabel)}return{drawExternalLabels:()=>{for(let f of l)f()}}}_drawEdges(e){let t=this.body.edges,i=this.body.edgeIndices;for(let n=0;n<i.length;n++){let s=t[i[n]];s.connected===!0&&s.draw(e)}}_drawArrows(e){let t=this.body.edges,i=this.body.edgeIndices;for(let n=0;n<i.length;n++){let s=t[i[n]];s.connected===!0&&s.drawArrows(e)}}_drawSelectionBox(e){if(this.body.selectionBox.show){e.beginPath();let t=this.body.selectionBox.position.end.x-this.body.selectionBox.position.start.x,i=this.body.selectionBox.position.end.y-this.body.selectionBox.position.start.y;e.rect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,t,i),e.fillStyle="rgba(151, 194, 252, 0.2)",e.fillRect(this.body.selectionBox.position.start.x,this.body.selectionBox.position.start.y,t,i),e.strokeStyle="rgba(151, 194, 252, 1)",e.stroke()}else e.closePath()}},wc,uk;function Xq(){if(uk)return wc;uk=1,IO();var r=he();return wc=r.setInterval,wc}var xc,fk;function Qq(){return fk||(fk=1,xc=Xq()),xc}var Jq=Qq(),$q=Y(Jq);function hg(r,e){e.inputHandler=function(t){t.isFirst&&e(t)},r.on("hammer.input",e.inputHandler)}function lR(r,e){return e.inputHandler=function(t){t.isFinal&&e(t)},r.on("hammer.input",e.inputHandler)}var Mu=class{constructor(e){this.body=e,this.pixelRatio=1,this.cameraState={},this.initialized=!1,this.canvasViewCenter={},this._cleanupCallbacks=[],this.options={},this.defaultOptions={autoResize:!0,height:"100%",width:"100%"},Fe(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){var e;this.body.emitter.once("resize",t=>{t.width!==0&&(this.body.view.translation.x=t.width*.5),t.height!==0&&(this.body.view.translation.y=t.height*.5)}),this.body.emitter.on("setSize",P(e=this.setSize).call(e,this)),this.body.emitter.on("destroy",()=>{this.hammerFrame.destroy(),this.hammer.destroy(),this._cleanUp()})}setOptions(e){if(e!==void 0&&Pr(["width","height","autoResize"],this.options,e),this._cleanUp(),this.options.autoResize===!0){var t;if(window.ResizeObserver){let n=new ResizeObserver(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")}),{frame:s}=this;n.observe(s),this._cleanupCallbacks.push(()=>{n.unobserve(s)})}else{let n=$q(()=>{this.setSize()===!0&&this.body.emitter.emit("_requestRedraw")},1e3);this._cleanupCallbacks.push(()=>{clearInterval(n)})}let i=P(t=this._onResize).call(t,this);window.addEventListener("resize",i),this._cleanupCallbacks.push(()=>{window.removeEventListener("resize",i)})}}_cleanUp(){var e,t,i;Ae(e=xn(t=li(i=this._cleanupCallbacks).call(i,0)).call(t)).call(e,n=>{try{n()}catch(s){console.error(s)}})}_onResize(){this.setSize(),this.body.emitter.emit("_redraw")}_getCameraState(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.pixelRatio;this.initialized===!0&&(this.cameraState.previousWidth=this.frame.canvas.width/e,this.cameraState.previousHeight=this.frame.canvas.height/e,this.cameraState.scale=this.body.view.scale,this.cameraState.position=this.DOMtoCanvas({x:.5*this.frame.canvas.width/e,y:.5*this.frame.canvas.height/e}))}_setCameraState(){if(this.cameraState.scale!==void 0&&this.frame.canvas.clientWidth!==0&&this.frame.canvas.clientHeight!==0&&this.pixelRatio!==0&&this.cameraState.previousWidth>0&&this.cameraState.previousHeight>0){let e=this.frame.canvas.width/this.pixelRatio/this.cameraState.previousWidth,t=this.frame.canvas.height/this.pixelRatio/this.cameraState.previousHeight,i=this.cameraState.scale;e!=1&&t!=1?i=this.cameraState.scale*.5*(e+t):e!=1?i=this.cameraState.scale*e:t!=1&&(i=this.cameraState.scale*t),this.body.view.scale=i;let n=this.DOMtoCanvas({x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight}),s={x:n.x-this.cameraState.position.x,y:n.y-this.cameraState.position.y};this.body.view.translation.x+=s.x*this.body.view.scale,this.body.view.translation.y+=s.y*this.body.view.scale}}_prepareValue(e){if(typeof e=="number")return e+"px";if(typeof e=="string"){if(ue(e).call(e,"%")!==-1||ue(e).call(e,"px")!==-1)return e;if(ue(e).call(e,"%")===-1)return e+"px"}throw new Error("Could not use the value supplied for width or height:"+e)}_create(){for(;this.body.container.hasChildNodes();)this.body.container.removeChild(this.body.container.firstChild);if(this.frame=document.createElement("div"),this.frame.className="vis-network",this.frame.style.position="relative",this.frame.style.overflow="hidden",this.frame.tabIndex=0,this.frame.canvas=document.createElement("canvas"),this.frame.canvas.style.position="relative",this.frame.appendChild(this.frame.canvas),this.frame.canvas.getContext)this._setPixelRatio(),this.setTransform();else{let e=document.createElement("DIV");e.style.color="red",e.style.fontWeight="bold",e.style.padding="10px",e.innerText="Error: your browser does not support HTML canvas",this.frame.canvas.appendChild(e)}this.body.container.appendChild(this.frame),this.body.view.scale=1,this.body.view.translation={x:.5*this.frame.canvas.clientWidth,y:.5*this.frame.canvas.clientHeight},this._bindHammer()}_bindHammer(){this.hammer!==void 0&&this.hammer.destroy(),this.drag={},this.pinch={},this.hammer=new lr(this.frame.canvas),this.hammer.get("pinch").set({enable:!0}),this.hammer.get("pan").set({threshold:5,direction:lr.DIRECTION_ALL}),hg(this.hammer,e=>{this.body.eventListeners.onTouch(e)}),this.hammer.on("tap",e=>{this.body.eventListeners.onTap(e)}),this.hammer.on("doubletap",e=>{this.body.eventListeners.onDoubleTap(e)}),this.hammer.on("press",e=>{this.body.eventListeners.onHold(e)}),this.hammer.on("panstart",e=>{this.body.eventListeners.onDragStart(e)}),this.hammer.on("panmove",e=>{this.body.eventListeners.onDrag(e)}),this.hammer.on("panend",e=>{this.body.eventListeners.onDragEnd(e)}),this.hammer.on("pinch",e=>{this.body.eventListeners.onPinch(e)}),this.frame.canvas.addEventListener("wheel",e=>{this.body.eventListeners.onMouseWheel(e)}),this.frame.canvas.addEventListener("mousemove",e=>{this.body.eventListeners.onMouseMove(e)}),this.frame.canvas.addEventListener("contextmenu",e=>{this.body.eventListeners.onContext(e)}),this.hammerFrame=new lr(this.frame),lR(this.hammerFrame,e=>{this.body.eventListeners.onRelease(e)})}setSize(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.width,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.height;e=this._prepareValue(e),t=this._prepareValue(t);let i=!1,n=this.frame.canvas.width,s=this.frame.canvas.height,o=this.pixelRatio;if(this._setPixelRatio(),e!=this.options.width||t!=this.options.height||this.frame.style.width!=e||this.frame.style.height!=t)this._getCameraState(o),this.frame.style.width=e,this.frame.style.height=t,this.frame.canvas.style.width="100%",this.frame.canvas.style.height="100%",this.frame.canvas.width=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),this.frame.canvas.height=Math.round(this.frame.canvas.clientHeight*this.pixelRatio),this.options.width=e,this.options.height=t,this.canvasViewCenter={x:.5*this.frame.clientWidth,y:.5*this.frame.clientHeight},i=!0;else{let g=Math.round(this.frame.canvas.clientWidth*this.pixelRatio),a=Math.round(this.frame.canvas.clientHeight*this.pixelRatio);(this.frame.canvas.width!==g||this.frame.canvas.height!==a)&&this._getCameraState(o),this.frame.canvas.width!==g&&(this.frame.canvas.width=g,i=!0),this.frame.canvas.height!==a&&(this.frame.canvas.height=a,i=!0)}return i===!0&&(this.body.emitter.emit("resize",{width:Math.round(this.frame.canvas.width/this.pixelRatio),height:Math.round(this.frame.canvas.height/this.pixelRatio),oldWidth:Math.round(n/this.pixelRatio),oldHeight:Math.round(s/this.pixelRatio)}),this._setCameraState()),this.initialized=!0,i}getContext(){return this.frame.canvas.getContext("2d")}_determinePixelRatio(){let e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");let t=1;typeof window<"u"&&(t=window.devicePixelRatio||1);let i=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return t/i}_setPixelRatio(){this.pixelRatio=this._determinePixelRatio()}setTransform(){let e=this.getContext();if(e===void 0)throw new Error("Could not get canvax context");e.setTransform(this.pixelRatio,0,0,this.pixelRatio,0,0)}_XconvertDOMtoCanvas(e){return(e-this.body.view.translation.x)/this.body.view.scale}_XconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.x}_YconvertDOMtoCanvas(e){return(e-this.body.view.translation.y)/this.body.view.scale}_YconvertCanvasToDOM(e){return e*this.body.view.scale+this.body.view.translation.y}canvasToDOM(e){return{x:this._XconvertCanvasToDOM(e.x),y:this._YconvertCanvasToDOM(e.y)}}DOMtoCanvas(e){return{x:this._XconvertDOMtoCanvas(e.x),y:this._YconvertDOMtoCanvas(e.y)}}};function e5(r,e){let t=Fe({nodes:e,minZoomLevel:Number.MIN_VALUE,maxZoomLevel:1},r??{});if(!Ie(t.nodes))throw new TypeError("Nodes has to be an array of ids.");if(t.nodes.length===0&&(t.nodes=e),!(typeof t.minZoomLevel=="number"&&t.minZoomLevel>0))throw new TypeError("Min zoom level has to be a number higher than zero.");if(!(typeof t.maxZoomLevel=="number"&&t.minZoomLevel<=t.maxZoomLevel))throw new TypeError("Max zoom level has to be a number higher than min zoom level.");return t}var Nu=class{constructor(e,t){var i,n;this.body=e,this.canvas=t,this.animationSpeed=1/this.renderRefreshRate,this.animationEasingFunction="easeInOutQuint",this.easingTime=0,this.sourceScale=0,this.targetScale=0,this.sourceTranslation=0,this.targetTranslation=0,this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0,this.touchTime=0,this.viewFunction=void 0,this.body.emitter.on("fit",P(i=this.fit).call(i,this)),this.body.emitter.on("animationFinished",()=>{this.body.emitter.emit("_stopRendering")}),this.body.emitter.on("unlockNode",P(n=this.releaseNode).call(n,this))}setOptions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.options=e}fit(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;e=e5(e,this.body.nodeIndices);let i=this.canvas.frame.canvas.clientWidth,n=this.canvas.frame.canvas.clientHeight,s,o;if(i===0||n===0)o=1,s=tt.getRange(this.body.nodes,e.nodes);else if(t===!0){let A=0;for(let l in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,l)&&this.body.nodes[l].predefinedPosition===!0&&(A+=1);if(A>.5*this.body.nodeIndices.length){this.fit(e,!1);return}s=tt.getRange(this.body.nodes,e.nodes),o=12.662/(this.body.nodeIndices.length+7.4147)+.0964822;let I=Math.min(i/600,n/600);o*=I}else{this.body.emitter.emit("_resizeNodes"),s=tt.getRange(this.body.nodes,e.nodes);let A=Math.abs(s.maxX-s.minX)*1.1,C=Math.abs(s.maxY-s.minY)*1.1,I=i/A,l=n/C;o=I<=l?I:l}o>e.maxZoomLevel?o=e.maxZoomLevel:o<e.minZoomLevel&&(o=e.minZoomLevel);let a={position:tt.findCenter(s),scale:o,animation:e.animation};this.moveTo(a)}focus(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.body.nodes[e]!==void 0){let i={x:this.body.nodes[e].x,y:this.body.nodes[e].y};t.position=i,t.lockedOnNode=e,this.moveTo(t)}else console.error("Node: "+e+" cannot be found.")}moveTo(e){if(e===void 0){e={};return}if(e.offset!=null){if(e.offset.x!=null){if(e.offset.x=+e.offset.x,!wn(e.offset.x))throw new TypeError('The option "offset.x" has to be a finite number.')}else e.offset.x=0;if(e.offset.y!=null){if(e.offset.y=+e.offset.y,!wn(e.offset.y))throw new TypeError('The option "offset.y" has to be a finite number.')}else e.offset.x=0}else e.offset={x:0,y:0};if(e.position!=null){if(e.position.x!=null){if(e.position.x=+e.position.x,!wn(e.position.x))throw new TypeError('The option "position.x" has to be a finite number.')}else e.position.x=0;if(e.position.y!=null){if(e.position.y=+e.position.y,!wn(e.position.y))throw new TypeError('The option "position.y" has to be a finite number.')}else e.position.x=0}else e.position=this.getViewPosition();if(e.scale!=null){if(e.scale=+e.scale,!(e.scale>0))throw new TypeError('The option "scale" has to be a number greater than zero.')}else e.scale=this.body.view.scale;e.animation===void 0&&(e.animation={duration:0}),e.animation===!1&&(e.animation={duration:0}),e.animation===!0&&(e.animation={}),e.animation.duration===void 0&&(e.animation.duration=1e3),e.animation.easingFunction===void 0&&(e.animation.easingFunction="easeInOutQuad"),this.animateView(e)}animateView(e){if(e===void 0)return;this.animationEasingFunction=e.animation.easingFunction,this.releaseNode(),e.locked===!0&&(this.lockedOnNodeId=e.lockedOnNode,this.lockedOnNodeOffset=e.offset),this.easingTime!=0&&this._transitionRedraw(!0),this.sourceScale=this.body.view.scale,this.sourceTranslation=this.body.view.translation,this.targetScale=e.scale,this.body.view.scale=this.targetScale;let t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.position.x,y:t.y-e.position.y};if(this.targetTranslation={x:this.sourceTranslation.x+i.x*this.targetScale+e.offset.x,y:this.sourceTranslation.y+i.y*this.targetScale+e.offset.y},e.animation.duration===0)if(this.lockedOnNodeId!=null){var n;this.viewFunction=P(n=this._lockedRedraw).call(n,this),this.body.emitter.on("initRedraw",this.viewFunction)}else this.body.view.scale=this.targetScale,this.body.view.translation=this.targetTranslation,this.body.emitter.emit("_requestRedraw");else{var s;this.animationSpeed=1/(60*e.animation.duration*.001)||1/60,this.animationEasingFunction=e.animation.easingFunction,this.viewFunction=P(s=this._transitionRedraw).call(s,this),this.body.emitter.on("initRedraw",this.viewFunction),this.body.emitter.emit("_startRendering")}}_lockedRedraw(){let e={x:this.body.nodes[this.lockedOnNodeId].x,y:this.body.nodes[this.lockedOnNodeId].y},t=this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight}),i={x:t.x-e.x,y:t.y-e.y},n=this.body.view.translation,s={x:n.x+i.x*this.body.view.scale+this.lockedOnNodeOffset.x,y:n.y+i.y*this.body.view.scale+this.lockedOnNodeOffset.y};this.body.view.translation=s}releaseNode(){this.lockedOnNodeId!==void 0&&this.viewFunction!==void 0&&(this.body.emitter.off("initRedraw",this.viewFunction),this.lockedOnNodeId=void 0,this.lockedOnNodeOffset=void 0)}_transitionRedraw(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;this.easingTime+=this.animationSpeed,this.easingTime=e===!0?1:this.easingTime;let t=FF[this.animationEasingFunction](this.easingTime);if(this.body.view.scale=this.sourceScale+(this.targetScale-this.sourceScale)*t,this.body.view.translation={x:this.sourceTranslation.x+(this.targetTranslation.x-this.sourceTranslation.x)*t,y:this.sourceTranslation.y+(this.targetTranslation.y-this.sourceTranslation.y)*t},this.easingTime>=1){if(this.body.emitter.off("initRedraw",this.viewFunction),this.easingTime=0,this.lockedOnNodeId!=null){var i;this.viewFunction=P(i=this._lockedRedraw).call(i,this),this.body.emitter.on("initRedraw",this.viewFunction)}this.body.emitter.emit("animationFinished")}}getScale(){return this.body.view.scale}getViewPosition(){return this.canvas.DOMtoCanvas({x:.5*this.canvas.frame.canvas.clientWidth,y:.5*this.canvas.frame.canvas.clientHeight})}};function pk(r){var e=r&&r.preventDefault||!1,t=r&&r.container||window,i={},n={keydown:{},keyup:{}},s={},o;for(o=97;o<=122;o++)s[String.fromCharCode(o)]={code:65+(o-97),shift:!1};for(o=65;o<=90;o++)s[String.fromCharCode(o)]={code:o,shift:!0};for(o=0;o<=9;o++)s[""+o]={code:48+o,shift:!1};for(o=1;o<=12;o++)s["F"+o]={code:111+o,shift:!1};for(o=0;o<=9;o++)s["num"+o]={code:96+o,shift:!1};s["num*"]={code:106,shift:!1},s["num+"]={code:107,shift:!1},s["num-"]={code:109,shift:!1},s["num/"]={code:111,shift:!1},s["num."]={code:110,shift:!1},s.left={code:37,shift:!1},s.up={code:38,shift:!1},s.right={code:39,shift:!1},s.down={code:40,shift:!1},s.space={code:32,shift:!1},s.enter={code:13,shift:!1},s.shift={code:16,shift:void 0},s.esc={code:27,shift:!1},s.backspace={code:8,shift:!1},s.tab={code:9,shift:!1},s.ctrl={code:17,shift:!1},s.alt={code:18,shift:!1},s.delete={code:46,shift:!1},s.pageup={code:33,shift:!1},s.pagedown={code:34,shift:!1},s["="]={code:187,shift:!1},s["-"]={code:189,shift:!1},s["]"]={code:221,shift:!1},s["["]={code:219,shift:!1};var g=function(C){A(C,"keydown")},a=function(C){A(C,"keyup")},A=function(C,I){if(n[I][C.keyCode]!==void 0){for(var l=n[I][C.keyCode],h=0;h<l.length;h++)(l[h].shift===void 0||l[h].shift==!0&&C.shiftKey==!0||l[h].shift==!1&&C.shiftKey==!1)&&l[h].fn(C);e==!0&&C.preventDefault()}};return i.bind=function(C,I,l){if(l===void 0&&(l="keydown"),s[C]===void 0)throw new Error("unsupported key: "+C);n[l][s[C].code]===void 0&&(n[l][s[C].code]=[]),n[l][s[C].code].push({fn:I,shift:s[C].shift})},i.bindAll=function(C,I){I===void 0&&(I="keydown");for(var l in s)s.hasOwnProperty(l)&&i.bind(l,C,I)},i.getKey=function(C){for(var I in s)if(s.hasOwnProperty(I)){if(C.shiftKey==!0&&s[I].shift==!0&&C.keyCode==s[I].code)return I;if(C.shiftKey==!1&&s[I].shift==!1&&C.keyCode==s[I].code)return I;if(C.keyCode==s[I].code&&I=="shift")return I}return"unknown key, currently not supported"},i.unbind=function(C,I,l){if(l===void 0&&(l="keydown"),s[C]===void 0)throw new Error("unsupported key: "+C);if(I!==void 0){var h=[],d=n[l][s[C].code];if(d!==void 0)for(var c=0;c<d.length;c++)d[c].fn==I&&d[c].shift==s[C].shift||h.push(n[l][s[C].code][c]);n[l][s[C].code]=h}else n[l][s[C].code]=[]},i.reset=function(){n={keydown:{},keyup:{}}},i.destroy=function(){n={keydown:{},keyup:{}},t.removeEventListener("keydown",g,!0),t.removeEventListener("keyup",a,!0)},t.addEventListener("keydown",g,!0),t.addEventListener("keyup",a,!0),i}var _u=class{constructor(e,t){this.body=e,this.canvas=t,this.iconsCreated=!1,this.navigationHammers=[],this.boundFunctions={},this.touchTime=0,this.activated=!1,this.body.emitter.on("activate",()=>{this.activated=!0,this.configureKeyboardBindings()}),this.body.emitter.on("deactivate",()=>{this.activated=!1,this.configureKeyboardBindings()}),this.body.emitter.on("destroy",()=>{this.keycharm!==void 0&&this.keycharm.destroy()}),this.options={}}setOptions(e){e!==void 0&&(this.options=e,this.create())}create(){this.options.navigationButtons===!0?this.iconsCreated===!1&&this.loadNavigationElements():this.iconsCreated===!0&&this.cleanNavigation(),this.configureKeyboardBindings()}cleanNavigation(){if(this.navigationHammers.length!=0){for(let e=0;e<this.navigationHammers.length;e++)this.navigationHammers[e].destroy();this.navigationHammers=[]}this.navigationDOM&&this.navigationDOM.wrapper&&this.navigationDOM.wrapper.parentNode&&this.navigationDOM.wrapper.parentNode.removeChild(this.navigationDOM.wrapper),this.iconsCreated=!1}loadNavigationElements(){this.cleanNavigation(),this.navigationDOM={};let e=["up","down","left","right","zoomIn","zoomOut","zoomExtends"],t=["_moveUp","_moveDown","_moveLeft","_moveRight","_zoomIn","_zoomOut","_fit"];this.navigationDOM.wrapper=document.createElement("div"),this.navigationDOM.wrapper.className="vis-navigation",this.canvas.frame.appendChild(this.navigationDOM.wrapper);for(let o=0;o<e.length;o++){this.navigationDOM[e[o]]=document.createElement("div"),this.navigationDOM[e[o]].className="vis-button vis-"+e[o],this.navigationDOM.wrapper.appendChild(this.navigationDOM[e[o]]);let g=new lr(this.navigationDOM[e[o]]);if(t[o]==="_fit"){var i;hg(g,P(i=this._fit).call(i,this))}else{var n;hg(g,P(n=this.bindToRedraw).call(n,this,t[o]))}this.navigationHammers.push(g)}let s=new lr(this.canvas.frame);lR(s,()=>{this._stopMovement()}),this.navigationHammers.push(s),this.iconsCreated=!0}bindToRedraw(e){if(this.boundFunctions[e]===void 0){var t;this.boundFunctions[e]=P(t=this[e]).call(t,this),this.body.emitter.on("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_startRendering")}}unbindFromRedraw(e){this.boundFunctions[e]!==void 0&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"),delete this.boundFunctions[e])}_fit(){new Date().valueOf()-this.touchTime>700&&(this.body.emitter.emit("fit",{duration:700}),this.touchTime=new Date().valueOf())}_stopMovement(){for(let e in this.boundFunctions)Object.prototype.hasOwnProperty.call(this.boundFunctions,e)&&(this.body.emitter.off("initRedraw",this.boundFunctions[e]),this.body.emitter.emit("_stopRendering"));this.boundFunctions={}}_moveUp(){this.body.view.translation.y+=this.options.keyboard.speed.y}_moveDown(){this.body.view.translation.y-=this.options.keyboard.speed.y}_moveLeft(){this.body.view.translation.x+=this.options.keyboard.speed.x}_moveRight(){this.body.view.translation.x-=this.options.keyboard.speed.x}_zoomIn(){let e=this.body.view.scale,t=this.body.view.scale*(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:null})}_zoomOut(){let e=this.body.view.scale,t=this.body.view.scale/(1+this.options.keyboard.speed.zoom),i=this.body.view.translation,n=t/e,s=(1-n)*this.canvas.canvasViewCenter.x+i.x*n,o=(1-n)*this.canvas.canvasViewCenter.y+i.y*n;this.body.view.scale=t,this.body.view.translation={x:s,y:o},this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:null})}configureKeyboardBindings(){if(this.keycharm!==void 0&&this.keycharm.destroy(),this.options.keyboard.enabled===!0&&(this.options.keyboard.bindToWindow===!0?this.keycharm=pk({container:window,preventDefault:!0}):this.keycharm=pk({container:this.canvas.frame,preventDefault:!0}),this.keycharm.reset(),this.activated===!0)){var e,t,i,n,s,o,g,a,A,C,I,l,h,d,c,f,u,p,v,m,b,w,x,y;P(e=this.keycharm).call(e,"up",()=>{this.bindToRedraw("_moveUp")},"keydown"),P(t=this.keycharm).call(t,"down",()=>{this.bindToRedraw("_moveDown")},"keydown"),P(i=this.keycharm).call(i,"left",()=>{this.bindToRedraw("_moveLeft")},"keydown"),P(n=this.keycharm).call(n,"right",()=>{this.bindToRedraw("_moveRight")},"keydown"),P(s=this.keycharm).call(s,"=",()=>{this.bindToRedraw("_zoomIn")},"keydown"),P(o=this.keycharm).call(o,"num+",()=>{this.bindToRedraw("_zoomIn")},"keydown"),P(g=this.keycharm).call(g,"num-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),P(a=this.keycharm).call(a,"-",()=>{this.bindToRedraw("_zoomOut")},"keydown"),P(A=this.keycharm).call(A,"[",()=>{this.bindToRedraw("_zoomOut")},"keydown"),P(C=this.keycharm).call(C,"]",()=>{this.bindToRedraw("_zoomIn")},"keydown"),P(I=this.keycharm).call(I,"pageup",()=>{this.bindToRedraw("_zoomIn")},"keydown"),P(l=this.keycharm).call(l,"pagedown",()=>{this.bindToRedraw("_zoomOut")},"keydown"),P(h=this.keycharm).call(h,"up",()=>{this.unbindFromRedraw("_moveUp")},"keyup"),P(d=this.keycharm).call(d,"down",()=>{this.unbindFromRedraw("_moveDown")},"keyup"),P(c=this.keycharm).call(c,"left",()=>{this.unbindFromRedraw("_moveLeft")},"keyup"),P(f=this.keycharm).call(f,"right",()=>{this.unbindFromRedraw("_moveRight")},"keyup"),P(u=this.keycharm).call(u,"=",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),P(p=this.keycharm).call(p,"num+",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),P(v=this.keycharm).call(v,"num-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),P(m=this.keycharm).call(m,"-",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),P(b=this.keycharm).call(b,"[",()=>{this.unbindFromRedraw("_zoomOut")},"keyup"),P(w=this.keycharm).call(w,"]",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),P(x=this.keycharm).call(x,"pageup",()=>{this.unbindFromRedraw("_zoomIn")},"keyup"),P(y=this.keycharm).call(y,"pagedown",()=>{this.unbindFromRedraw("_zoomOut")},"keyup")}}},Bu=class{constructor(e,t,i){var n,s,o,g,a,A,C,I,l,h,d,c,f;this.body=e,this.canvas=t,this.selectionHandler=i,this.navigationHandler=new _u(e,t),this.body.eventListeners.onTap=P(n=this.onTap).call(n,this),this.body.eventListeners.onTouch=P(s=this.onTouch).call(s,this),this.body.eventListeners.onDoubleTap=P(o=this.onDoubleTap).call(o,this),this.body.eventListeners.onHold=P(g=this.onHold).call(g,this),this.body.eventListeners.onDragStart=P(a=this.onDragStart).call(a,this),this.body.eventListeners.onDrag=P(A=this.onDrag).call(A,this),this.body.eventListeners.onDragEnd=P(C=this.onDragEnd).call(C,this),this.body.eventListeners.onMouseWheel=P(I=this.onMouseWheel).call(I,this),this.body.eventListeners.onPinch=P(l=this.onPinch).call(l,this),this.body.eventListeners.onMouseMove=P(h=this.onMouseMove).call(h,this),this.body.eventListeners.onRelease=P(d=this.onRelease).call(d,this),this.body.eventListeners.onContext=P(c=this.onContext).call(c,this),this.touchTime=0,this.drag={},this.pinch={},this.popup=void 0,this.popupObj=void 0,this.popupTimer=void 0,this.body.functions.getPointer=P(f=this.getPointer).call(f,this),this.options={},this.defaultOptions={dragNodes:!0,dragView:!0,hover:!1,keyboard:{enabled:!1,speed:{x:10,y:10,zoom:.02},bindToWindow:!0,autoFocus:!0},navigationButtons:!1,tooltipDelay:300,zoomView:!0,zoomSpeed:1},Fe(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("destroy",()=>{clearTimeout(this.popupTimer),delete this.body.functions.getPointer})}setOptions(e){e!==void 0&&(Jo(["hideEdgesOnDrag","hideEdgesOnZoom","hideNodesOnDrag","keyboard","multiselect","selectable","selectConnectedEdges"],this.options,e),Ot(this.options,e,"keyboard"),e.tooltip&&(Fe(this.options.tooltip,e.tooltip),e.tooltip.color&&(this.options.tooltip.color=Vc(e.tooltip.color)))),this.navigationHandler.setOptions(this.options)}getPointer(e){return{x:e.x-MF(this.canvas.frame.canvas),y:e.y-NF(this.canvas.frame.canvas)}}onTouch(e){new Date().valueOf()-this.touchTime>50&&(this.drag.pointer=this.getPointer(e.center),this.drag.pinched=!1,this.pinch.scale=this.body.view.scale,this.touchTime=new Date().valueOf())}onTap(e){let t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect&&(e.changedPointers[0].ctrlKey||e.changedPointers[0].metaKey);this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t)}onDoubleTap(e){let t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("doubleClick",e,t)}onHold(e){let t=this.getPointer(e.center),i=this.selectionHandler.options.multiselect;this.checkSelectionChanges(t,i),this.selectionHandler.commitAndEmit(t,e),this.selectionHandler.generateClickEvent("click",e,t),this.selectionHandler.generateClickEvent("hold",e,t)}onRelease(e){if(new Date().valueOf()-this.touchTime>10){let t=this.getPointer(e.center);this.selectionHandler.generateClickEvent("release",e,t),this.touchTime=new Date().valueOf()}}onContext(e){let t=this.getPointer({x:e.clientX,y:e.clientY});this.selectionHandler.generateClickEvent("oncontext",e,t)}checkSelectionChanges(e){(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1)===!0?this.selectionHandler.selectAdditionalOnPoint(e):this.selectionHandler.selectOnPoint(e)}_determineDifference(e,t){let i=function(n,s){let o=[];for(let g=0;g<n.length;g++){let a=n[g];ue(s).call(s,a)===-1&&o.push(a)}return o};return{nodes:i(e.nodes,t.nodes),edges:i(e.edges,t.edges)}}onDragStart(e){if(this.drag.dragging)return;this.drag.pointer===void 0&&this.onTouch(e);let t=this.selectionHandler.getNodeAt(this.drag.pointer);if(this.drag.dragging=!0,this.drag.selection=[],this.drag.translation=Fe({},this.body.view.translation),this.drag.nodeId=void 0,e.srcEvent.shiftKey){this.body.selectionBox.show=!0;let i=this.getPointer(e.center);this.body.selectionBox.position.start={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)},this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(i.x),y:this.canvas._YconvertDOMtoCanvas(i.y)}}else if(t!==void 0&&this.options.dragNodes===!0){this.drag.nodeId=t.id,t.isSelected()===!1&&this.selectionHandler.setSelection({nodes:[t.id]}),this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer);for(let i of this.selectionHandler.getSelectedNodes()){let n={id:i.id,node:i,x:i.x,y:i.y,xFixed:i.options.fixed.x,yFixed:i.options.fixed.y};i.options.fixed.x=!0,i.options.fixed.y=!0,this.drag.selection.push(n)}}else this.selectionHandler.generateClickEvent("dragStart",e,this.drag.pointer,void 0,!0)}onDrag(e){if(this.drag.pinched===!0)return;this.body.emitter.emit("unlockNode");let t=this.getPointer(e.center),i=this.drag.selection;if(i&&i.length&&this.options.dragNodes===!0){this.selectionHandler.generateClickEvent("dragging",e,t);let n=t.x-this.drag.pointer.x,s=t.y-this.drag.pointer.y;Ae(i).call(i,o=>{let g=o.node;o.xFixed===!1&&(g.x=this.canvas._XconvertDOMtoCanvas(this.canvas._XconvertCanvasToDOM(o.x)+n)),o.yFixed===!1&&(g.y=this.canvas._YconvertDOMtoCanvas(this.canvas._YconvertCanvasToDOM(o.y)+s))}),this.body.emitter.emit("startSimulation")}else{if(e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}this.body.selectionBox.position.end={x:this.canvas._XconvertDOMtoCanvas(t.x),y:this.canvas._YconvertDOMtoCanvas(t.y)},this.body.emitter.emit("_requestRedraw")}if(this.options.dragView===!0&&!e.srcEvent.shiftKey){if(this.selectionHandler.generateClickEvent("dragging",e,t,void 0,!0),this.drag.pointer===void 0){this.onDragStart(e);return}let n=t.x-this.drag.pointer.x,s=t.y-this.drag.pointer.y;this.body.view.translation={x:this.drag.translation.x+n,y:this.drag.translation.y+s},this.body.emitter.emit("_requestRedraw")}}}onDragEnd(e){if(this.drag.dragging=!1,this.body.selectionBox.show){var t;this.body.selectionBox.show=!1;let i=this.body.selectionBox.position,n={minX:Math.min(i.start.x,i.end.x),minY:Math.min(i.start.y,i.end.y),maxX:Math.max(i.start.x,i.end.x),maxY:Math.max(i.start.y,i.end.y)},s=ze(t=this.body.nodeIndices).call(t,g=>{let a=this.body.nodes[g];return a.x>=n.minX&&a.x<=n.maxX&&a.y>=n.minY&&a.y<=n.maxY});Ae(s).call(s,g=>this.selectionHandler.selectObject(this.body.nodes[g]));let o=this.getPointer(e.center);this.selectionHandler.commitAndEmit(o,e),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw")}else{let i=this.drag.selection;i&&i.length?(Ae(i).call(i,function(n){n.node.options.fixed.x=n.xFixed,n.node.options.fixed.y=n.yFixed}),this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center)),this.body.emitter.emit("startSimulation")):(this.selectionHandler.generateClickEvent("dragEnd",e,this.getPointer(e.center),void 0,!0),this.body.emitter.emit("_requestRedraw"))}}onPinch(e){let t=this.getPointer(e.center);this.drag.pinched=!0,this.pinch.scale===void 0&&(this.pinch.scale=1);let i=this.pinch.scale*e.scale;this.zoom(i,t)}zoom(e,t){if(this.options.zoomView===!0){let i=this.body.view.scale;e<1e-5&&(e=1e-5),e>10&&(e=10);let n;this.drag!==void 0&&this.drag.dragging===!0&&(n=this.canvas.DOMtoCanvas(this.drag.pointer));let s=this.body.view.translation,o=e/i,g=(1-o)*t.x+s.x*o,a=(1-o)*t.y+s.y*o;if(this.body.view.scale=e,this.body.view.translation={x:g,y:a},n!=null){let A=this.canvas.canvasToDOM(n);this.drag.pointer.x=A.x,this.drag.pointer.y=A.y}this.body.emitter.emit("_requestRedraw"),i<e?this.body.emitter.emit("zoom",{direction:"+",scale:this.body.view.scale,pointer:t}):this.body.emitter.emit("zoom",{direction:"-",scale:this.body.view.scale,pointer:t})}}onMouseWheel(e){if(this.options.zoomView===!0){if(e.deltaY!==0){let t=this.body.view.scale;t*=1+(e.deltaY<0?1:-1)*(this.options.zoomSpeed*.1);let i=this.getPointer({x:e.clientX,y:e.clientY});this.zoom(t,i)}e.preventDefault()}}onMouseMove(e){let t=this.getPointer({x:e.clientX,y:e.clientY}),i=!1;this.popup!==void 0&&(this.popup.hidden===!1&&this._checkHidePopup(t),this.popup.hidden===!1&&(i=!0,this.popup.setPosition(t.x+3,t.y-5),this.popup.show())),this.options.keyboard.autoFocus&&this.options.keyboard.bindToWindow===!1&&this.options.keyboard.enabled===!0&&this.canvas.frame.focus(),i===!1&&(this.popupTimer!==void 0&&(clearInterval(this.popupTimer),this.popupTimer=void 0),this.drag.dragging||(this.popupTimer=hi(()=>this._checkShowPopup(t),this.options.tooltipDelay))),this.options.hover===!0&&this.selectionHandler.hoverObject(e,t)}_checkShowPopup(e){let t=this.canvas._XconvertDOMtoCanvas(e.x),i=this.canvas._YconvertDOMtoCanvas(e.y),n={left:t,top:i,right:t,bottom:i},s=this.popupObj===void 0?void 0:this.popupObj.id,o=!1,g="node";if(this.popupObj===void 0){let a=this.body.nodeIndices,A=this.body.nodes,C,I=[];for(let l=0;l<a.length;l++)C=A[a[l]],C.isOverlappingWith(n)===!0&&(o=!0,C.getTitle()!==void 0&&I.push(a[l]));I.length>0&&(this.popupObj=A[I[I.length-1]],o=!0)}if(this.popupObj===void 0&&o===!1){let a=this.body.edgeIndices,A=this.body.edges,C,I=[];for(let l=0;l<a.length;l++)C=A[a[l]],C.isOverlappingWith(n)===!0&&C.connected===!0&&C.getTitle()!==void 0&&I.push(a[l]);I.length>0&&(this.popupObj=A[I[I.length-1]],g="edge")}this.popupObj!==void 0?this.popupObj.id!==s&&(this.popup===void 0&&(this.popup=new jF(this.canvas.frame)),this.popup.popupTargetType=g,this.popup.popupTargetId=this.popupObj.id,this.popup.setPosition(e.x+3,e.y-5),this.popup.setText(this.popupObj.getTitle()),this.popup.show(),this.body.emitter.emit("showPopup",this.popupObj.id)):this.popup!==void 0&&(this.popup.hide(),this.body.emitter.emit("hidePopup"))}_checkHidePopup(e){let t=this.selectionHandler._pointerToPositionObject(e),i=!1;if(this.popup.popupTargetType==="node"){if(this.body.nodes[this.popup.popupTargetId]!==void 0&&(i=this.body.nodes[this.popup.popupTargetId].isOverlappingWith(t),i===!0)){let n=this.selectionHandler.getNodeAt(e);i=n===void 0?!1:n.id===this.popup.popupTargetId}}else this.selectionHandler.getNodeAt(e)===void 0&&this.body.edges[this.popup.popupTargetId]!==void 0&&(i=this.body.edges[this.popup.popupTargetId].isOverlappingWith(t));i===!1&&(this.popupObj=void 0,this.popup.hide(),this.body.emitter.emit("hidePopup"))}},mk={},vk={},Sc,bk;function t5(){if(bk)return Sc;bk=1;var r=ne(),e=yf(),t=Mg().getWeakData,i=vf(),n=bi(),s=mr(),o=Xe(),g=Ng(),a=rn(),A=je(),C=Mn(),I=C.set,l=C.getterFor,h=a.find,d=a.findIndex,c=r([].splice),f=0,u=function(m){return m.frozen||(m.frozen=new p)},p=function(){this.entries=[]},v=function(m,b){return h(m.entries,function(w){return w[0]===b})};return p.prototype={get:function(m){var b=v(this,m);if(b)return b[1]},has:function(m){return!!v(this,m)},set:function(m,b){var w=v(this,m);w?w[1]=b:this.entries.push([m,b])},delete:function(m){var b=d(this.entries,function(w){return w[0]===m});return~b&&c(this.entries,b,1),!!~b}},Sc={getConstructor:function(m,b,w,x){var y=m(function(E,T){i(E,S),I(E,{type:b,id:f++,frozen:null}),s(T)||g(T,E[x],{that:E,AS_ENTRIES:w})}),S=y.prototype,k=l(b),R=function(E,T,M){var B=k(E),X=t(n(T),!0);return X===!0?u(B).set(T,M):X[B.id]=M,E};return e(S,{delete:function(E){var T=k(this);if(!o(E))return!1;var M=t(E);return M===!0?u(T).delete(E):M&&A(M,T.id)&&delete M[T.id]},has:function(T){var M=k(this);if(!o(T))return!1;var B=t(T);return B===!0?u(M).has(T):B&&A(B,M.id)}}),e(S,w?{get:function(T){var M=k(this);if(o(T)){var B=t(T);if(B===!0)return u(M).get(T);if(B)return B[M.id]}},set:function(T,M){return R(this,T,M)}}:{add:function(T){return R(this,T,!0)}}),y}},Sc}var yk;function i5(){if(yk)return vk;yk=1;var r=JO(),e=ke(),t=ne(),i=yf(),n=Mg(),s=bf(),o=t5(),g=Xe(),a=Mn().enforce,A=ie(),C=Kk(),I=Object,l=Array.isArray,h=I.isExtensible,d=I.isFrozen,c=I.isSealed,f=I.freeze,u=I.seal,p=!e.ActiveXObject&&"ActiveXObject"in e,v,m=function(E){return function(){return E(this,arguments.length?arguments[0]:void 0)}},b=s("WeakMap",m,o),w=b.prototype,x=t(w.set),y=function(){return r&&A(function(){var E=f([]);return x(new b,E,1),!d(E)})};if(C)if(p){v=o.getConstructor(m,"WeakMap",!0),n.enable();var S=t(w.delete),k=t(w.has),R=t(w.get);i(w,{delete:function(E){if(g(E)&&!h(E)){var T=a(this);return T.frozen||(T.frozen=new v),S(this,E)||T.frozen.delete(E)}return S(this,E)},has:function(T){if(g(T)&&!h(T)){var M=a(this);return M.frozen||(M.frozen=new v),k(this,T)||M.frozen.has(T)}return k(this,T)},get:function(T){if(g(T)&&!h(T)){var M=a(this);return M.frozen||(M.frozen=new v),k(this,T)?R(this,T):M.frozen.get(T)}return R(this,T)},set:function(T,M){if(g(T)&&!h(T)){var B=a(this);B.frozen||(B.frozen=new v),k(this,T)?x(this,T,M):B.frozen.set(T,M)}else x(this,T,M);return this}})}else y()&&i(w,{set:function(T,M){var B;return l(T)&&(d(T)?B=f:c(T)&&(B=u)),x(this,T,M),B&&B(T),this}});return vk}var wk;function n5(){return wk||(wk=1,i5()),mk}var Ec,xk;function r5(){if(xk)return Ec;xk=1,zi(),n5();var r=he();return Ec=r.WeakMap,Ec}var Tc,Sk;function s5(){if(Sk)return Tc;Sk=1;var r=r5();return qi(),Tc=r,Tc}var kc,Ek;function o5(){return Ek||(Ek=1,kc=s5()),kc}var g5=o5(),Hs=Y(g5);function us(r,e,t){a5(r,e),e.set(r,t)}function a5(r,e){if(e.has(r))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fu(r,e,t){return r.set(hR(r,e),t),t}function pe(r,e){return r.get(hR(r,e))}function hR(r,e,t){if(typeof r=="function"?r===e:r.has(e))return arguments.length<3?e:t;throw new TypeError("Private element is not present on this object")}function Tk(r,e){let t=new Kt;for(let i of e)r.has(i)||t.add(i);return t}var gr=new Hs,jt=new Hs,dg=class{constructor(){us(this,gr,new Kt),us(this,jt,new Kt)}get size(){return pe(jt,this).size}add(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(let n of t)pe(jt,this).add(n)}delete(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(let n of t)pe(jt,this).delete(n)}clear(){pe(jt,this).clear()}getSelection(){return[...pe(jt,this)]}getChanges(){return{added:[...Tk(pe(gr,this),pe(jt,this))],deleted:[...Tk(pe(jt,this),pe(gr,this))],previous:[...new Kt(pe(gr,this))],current:[...new Kt(pe(jt,this))]}}commit(){let e=this.getChanges();Fu(gr,this,pe(jt,this)),Fu(jt,this,new Kt(pe(gr,this)));for(let t of e.added)t.select();for(let t of e.deleted)t.unselect();return e}},vn=new Hs,bn=new Hs,Oc=new Hs,Lu=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:()=>{};us(this,vn,new dg),us(this,bn,new dg),us(this,Oc,void 0),Fu(Oc,this,e)}get sizeNodes(){return pe(vn,this).size}get sizeEdges(){return pe(bn,this).size}getNodes(){return pe(vn,this).getSelection()}getEdges(){return pe(bn,this).getSelection()}addNodes(){pe(vn,this).add(...arguments)}addEdges(){pe(bn,this).add(...arguments)}deleteNodes(e){pe(vn,this).delete(e)}deleteEdges(e){pe(bn,this).delete(e)}clear(){pe(vn,this).clear(),pe(bn,this).clear()}commit(){let e={nodes:pe(vn,this).commit(),edges:pe(bn,this).commit()};for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return pe(Oc,this).call(this,e,...i),e}},zu=class{constructor(e,t){this.body=e,this.canvas=t,this._selectionAccumulator=new Lu,this.hoverObj={nodes:{},edges:{}},this.options={},this.defaultOptions={multiselect:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0},Fe(this.options,this.defaultOptions),this.body.emitter.on("_dataChanged",()=>{this.updateSelection()})}setOptions(e){e!==void 0&&Pr(["multiselect","hoverConnectedEdges","selectable","selectConnectedEdges"],this.options,e)}selectOnPoint(e){let t=!1;if(this.options.selectable===!0){let i=this.getNodeAt(e)||this.getEdgeAt(e);this.unselectAll(),i!==void 0&&(t=this.selectObject(i)),this.body.emitter.emit("_requestRedraw")}return t}selectAdditionalOnPoint(e){let t=!1;if(this.options.selectable===!0){let i=this.getNodeAt(e)||this.getEdgeAt(e);i!==void 0&&(t=!0,i.isSelected()===!0?this.deselectObject(i):this.selectObject(i),this.body.emitter.emit("_requestRedraw"))}return t}_initBaseEvent(e,t){let i={};return i.pointer={DOM:{x:t.x,y:t.y},canvas:this.canvas.DOMtoCanvas(t)},i.event=e,i}generateClickEvent(e,t,i,n){let s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,o=this._initBaseEvent(t,i);if(s===!0)o.nodes=[],o.edges=[];else{let g=this.getSelection();o.nodes=g.nodes,o.edges=g.edges}n!==void 0&&(o.previousSelection=n),e=="click"&&(o.items=this.getClickedItems(i)),t.controlEdge!==void 0&&(o.controlEdge=t.controlEdge),this.body.emitter.emit(e,o)}selectObject(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.selectConnectedEdges;return e!==void 0?(e instanceof ot?(t===!0&&this._selectionAccumulator.addEdges(...e.edges),this._selectionAccumulator.addNodes(e)):this._selectionAccumulator.addEdges(e),!0):!1}deselectObject(e){e.isSelected()===!0&&(e.selected=!1,this._removeFromSelection(e))}_getAllNodesOverlappingWith(e){let t=[],i=this.body.nodes;for(let n=0;n<this.body.nodeIndices.length;n++){let s=this.body.nodeIndices[n];i[s].isOverlappingWith(e)&&t.push(s)}return t}_pointerToPositionObject(e){let t=this.canvas.DOMtoCanvas(e);return{left:t.x-1,top:t.y+1,right:t.x+1,bottom:t.y-1}}getNodeAt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this._pointerToPositionObject(e),n=this._getAllNodesOverlappingWith(i);if(n.length>0)return t===!0?this.body.nodes[n[n.length-1]]:n[n.length-1]}_getEdgesOverlappingWith(e,t){let i=this.body.edges;for(let n=0;n<this.body.edgeIndices.length;n++){let s=this.body.edgeIndices[n];i[s].isOverlappingWith(e)&&t.push(s)}}_getAllEdgesOverlappingWith(e){let t=[];return this._getEdgesOverlappingWith(e,t),t}getEdgeAt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,i=this.canvas.DOMtoCanvas(e),n=10,s=null,o=this.body.edges;for(let g=0;g<this.body.edgeIndices.length;g++){let a=this.body.edgeIndices[g],A=o[a];if(A.connected){let C=A.from.x,I=A.from.y,l=A.to.x,h=A.to.y,d=A.edgeType.getDistanceToEdge(C,I,l,h,i.x,i.y);d<n&&(s=a,n=d)}}if(s!==null)return t===!0?this.body.edges[s]:s}_addToHover(e){e instanceof ot?this.hoverObj.nodes[e.id]=e:this.hoverObj.edges[e.id]=e}_removeFromSelection(e){e instanceof ot?(this._selectionAccumulator.deleteNodes(e),this._selectionAccumulator.deleteEdges(...e.edges)):this._selectionAccumulator.deleteEdges(e)}unselectAll(){this._selectionAccumulator.clear()}getSelectedNodeCount(){return this._selectionAccumulator.sizeNodes}getSelectedEdgeCount(){return this._selectionAccumulator.sizeEdges}_hoverConnectedEdges(e){for(let t=0;t<e.edges.length;t++){let i=e.edges[t];i.hover=!0,this._addToHover(i)}}emitBlurEvent(e,t,i){let n=this._initBaseEvent(e,t);i.hover===!0&&(i.hover=!1,i instanceof ot?(n.node=i.id,this.body.emitter.emit("blurNode",n)):(n.edge=i.id,this.body.emitter.emit("blurEdge",n)))}emitHoverEvent(e,t,i){let n=this._initBaseEvent(e,t),s=!1;return i.hover===!1&&(i.hover=!0,this._addToHover(i),s=!0,i instanceof ot?(n.node=i.id,this.body.emitter.emit("hoverNode",n)):(n.edge=i.id,this.body.emitter.emit("hoverEdge",n))),s}hoverObject(e,t){let i=this.getNodeAt(t);i===void 0&&(i=this.getEdgeAt(t));let n=!1;for(let s in this.hoverObj.nodes)Object.prototype.hasOwnProperty.call(this.hoverObj.nodes,s)&&(i===void 0||i instanceof ot&&i.id!=s||i instanceof $i)&&(this.emitBlurEvent(e,t,this.hoverObj.nodes[s]),delete this.hoverObj.nodes[s],n=!0);for(let s in this.hoverObj.edges)Object.prototype.hasOwnProperty.call(this.hoverObj.edges,s)&&(n===!0?(this.hoverObj.edges[s].hover=!1,delete this.hoverObj.edges[s]):(i===void 0||i instanceof $i&&i.id!=s||i instanceof ot&&!i.hover)&&(this.emitBlurEvent(e,t,this.hoverObj.edges[s]),delete this.hoverObj.edges[s],n=!0));if(i!==void 0){let s=Se(this.hoverObj.edges).length,o=Se(this.hoverObj.nodes).length,g=i instanceof $i&&s===0&&o===0,a=i instanceof ot&&s===0&&o===0;(n||g||a)&&(n=this.emitHoverEvent(e,t,i)),i instanceof ot&&this.options.hoverConnectedEdges===!0&&this._hoverConnectedEdges(i)}n===!0&&this.body.emitter.emit("_requestRedraw")}commitWithoutEmitting(){this._selectionAccumulator.commit()}commitAndEmit(e,t){let i=!1,n=this._selectionAccumulator.commit(),s={nodes:n.nodes.previous,edges:n.edges.previous};n.edges.deleted.length>0&&(this.generateClickEvent("deselectEdge",t,e,s),i=!0),n.nodes.deleted.length>0&&(this.generateClickEvent("deselectNode",t,e,s),i=!0),n.nodes.added.length>0&&(this.generateClickEvent("selectNode",t,e),i=!0),n.edges.added.length>0&&(this.generateClickEvent("selectEdge",t,e),i=!0),i===!0&&this.generateClickEvent("select",t,e)}getSelection(){return{nodes:this.getSelectedNodeIds(),edges:this.getSelectedEdgeIds()}}getSelectedNodes(){return this._selectionAccumulator.getNodes()}getSelectedEdges(){return this._selectionAccumulator.getEdges()}getSelectedNodeIds(){var e;return et(e=this._selectionAccumulator.getNodes()).call(e,t=>t.id)}getSelectedEdgeIds(){var e;return et(e=this._selectionAccumulator.getEdges()).call(e,t=>t.id)}setSelection(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!e||!e.nodes&&!e.edges)throw new TypeError("Selection must be an object with nodes and/or edges properties");if((t.unselectAll||t.unselectAll===void 0)&&this.unselectAll(),e.nodes)for(let i of e.nodes){let n=this.body.nodes[i];if(!n)throw new RangeError('Node with id "'+i+'" not found');this.selectObject(n,t.highlightEdges)}if(e.edges)for(let i of e.edges){let n=this.body.edges[i];if(!n)throw new RangeError('Edge with id "'+i+'" not found');this.selectObject(n)}this.body.emitter.emit("_requestRedraw"),this._selectionAccumulator.commit()}selectNodes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({nodes:e},{highlightEdges:t})}selectEdges(e){if(!e||e.length===void 0)throw"Selection must be an array with ids";this.setSelection({edges:e})}updateSelection(){for(let e in this._selectionAccumulator.getNodes())Object.prototype.hasOwnProperty.call(this.body.nodes,e.id)||this._selectionAccumulator.deleteNodes(e);for(let e in this._selectionAccumulator.getEdges())Object.prototype.hasOwnProperty.call(this.body.edges,e.id)||this._selectionAccumulator.deleteEdges(e)}getClickedItems(e){let t=this.canvas.DOMtoCanvas(e),i=[],n=this.body.nodeIndices,s=this.body.nodes;for(let a=n.length-1;a>=0;a--){let C=s[n[a]].getItemsOnPoint(t);i.push.apply(i,C)}let o=this.body.edgeIndices,g=this.body.edges;for(let a=o.length-1;a>=0;a--){let C=g[o[a]].getItemsOnPoint(t);i.push.apply(i,C)}return i}},cg=class{abstract(){throw new Error("Can't instantiate abstract class!")}fake_use(){}curveType(){return this.abstract()}getPosition(e){return this.fake_use(e),this.abstract()}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;this.fake_use(e,t,i),this.abstract()}getTreeSize(e){return this.fake_use(e),this.abstract()}sort(e){this.fake_use(e),this.abstract()}fix(e,t){this.fake_use(e,t),this.abstract()}shift(e,t){this.fake_use(e,t),this.abstract()}},qu=class extends cg{constructor(e){super(),this.layout=e}curveType(){return"horizontal"}getPosition(e){return e.x}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.x=t}getTreeSize(e){let t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_x,max:t.max_x}}sort(e){Bi(e).call(e,function(t,i){return t.x-i.x})}fix(e,t){e.y=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.y=!0}shift(e,t){this.layout.body.nodes[e].x+=t}},Vu=class extends cg{constructor(e){super(),this.layout=e}curveType(){return"vertical"}getPosition(e){return e.y}setPosition(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;i!==void 0&&this.layout.hierarchical.addToOrdering(e,i),e.y=t}getTreeSize(e){let t=this.layout.hierarchical.getTreeSize(this.layout.body.nodes,e);return{min:t.min_y,max:t.max_y}}sort(e){Bi(e).call(e,function(t,i){return t.y-i.y})}fix(e,t){e.x=this.layout.options.hierarchical.levelSeparation*t,e.options.fixed.x=!0}shift(e,t){this.layout.body.nodes[e].y+=t}},kk={},Ok;function A5(){if(Ok)return kk;Ok=1;var r=j(),e=rn().every,t=Or(),i=t("every");return r({target:"Array",proto:!0,forced:!i},{every:function(s){return e(this,s,arguments.length>1?arguments[1]:void 0)}}),kk}var Rc,Rk;function C5(){if(Rk)return Rc;Rk=1,A5();var r=We();return Rc=r("Array","every"),Rc}var Dc,Dk;function I5(){if(Dk)return Dc;Dk=1;var r=De(),e=C5(),t=Array.prototype;return Dc=function(i){var n=i.every;return i===t||r(t,i)&&n===t.every?e:n},Dc}var Pc,Pk;function l5(){if(Pk)return Pc;Pk=1;var r=I5();return Pc=r,Pc}var Mc,Mk;function h5(){return Mk||(Mk=1,Mc=l5()),Mc}var d5=h5(),dR=Y(d5);function c5(r,e){let t=new Kt;return Ae(r).call(r,i=>{var n;Ae(n=i.edges).call(n,s=>{s.connected&&t.add(s)})}),Ae(t).call(t,i=>{let n=i.from.id,s=i.to.id;e[n]==null&&(e[n]=0),(e[s]==null||e[n]>=e[s])&&(e[s]=e[n]+1)}),e}function u5(r){return cR(e=>{var t,i;return dR(t=ze(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.to===e)},(e,t)=>t>e,"from",r)}function f5(r){return cR(e=>{var t,i;return dR(t=ze(i=e.edges).call(i,n=>r.has(n.toId))).call(t,n=>n.from===e)},(e,t)=>t<e,"to",r)}function cR(r,e,t,i){var n;let s=Xi(null),o=wf(n=[...eg(i).call(i)]).call(n,(I,l)=>I+1+l.edges.length,0),g=t+"Id",a=t==="to"?1:-1;for(let[I,l]of i){if(!i.has(I)||!r(l))continue;s[I]=0;let h=[l],d=0,c;for(;c=h.pop();){var A,C;if(!i.has(I))continue;let f=s[c.id]+a;if(Ae(A=ze(C=c.edges).call(C,u=>u.connected&&u.to!==u.from&&u[t]!==c&&i.has(u.toId)&&i.has(u.fromId))).call(A,u=>{let p=u[g],v=s[p];(v==null||e(f,v))&&(s[p]=f,h.push(u[t]))}),d>o)return c5(i,s);++d}}return s}var Wu=class{constructor(){this.childrenReference={},this.parentReference={},this.trees={},this.distributionOrdering={},this.levels={},this.distributionIndex={},this.isTree=!1,this.treeIndex=-1}addRelation(e,t){this.childrenReference[e]===void 0&&(this.childrenReference[e]=[]),this.childrenReference[e].push(t),this.parentReference[t]===void 0&&(this.parentReference[t]=[]),this.parentReference[t].push(e)}checkIfTree(){for(let e in this.parentReference)if(this.parentReference[e].length>1){this.isTree=!1;return}this.isTree=!0}numTrees(){return this.treeIndex+1}setTreeIndex(e,t){t!==void 0&&this.trees[e.id]===void 0&&(this.trees[e.id]=t,this.treeIndex=Math.max(t,this.treeIndex))}ensureLevel(e){this.levels[e]===void 0&&(this.levels[e]=0)}getMaxLevel(e){let t={},i=n=>{if(t[n]!==void 0)return t[n];let s=this.levels[n];if(this.childrenReference[n]){let o=this.childrenReference[n];if(o.length>0)for(let g=0;g<o.length;g++)s=Math.max(s,i(o[g]))}return t[n]=s,s};return i(e)}levelDownstream(e,t){this.levels[t.id]===void 0&&(this.levels[e.id]===void 0&&(this.levels[e.id]=0),this.levels[t.id]=this.levels[e.id]+1)}setMinLevelToZero(){var e;let t=new Vs,i=0,n=Bi(e=[...new Kt(J_(this.levels))]).call(e,(s,o)=>s-o);for(let s of n)t.set(s,i++);for(let s in this.levels)Object.prototype.hasOwnProperty.call(this.levels,s)&&(this.levels[s]=t.get(this.levels[s]))}getTreeSize(e,t){let i=1e9,n=-1e9,s=1e9,o=-1e9;for(let g in this.trees)if(Object.prototype.hasOwnProperty.call(this.trees,g)&&this.trees[g]===t){let a=e[g];i=Math.min(a.x,i),n=Math.max(a.x,n),s=Math.min(a.y,s),o=Math.max(a.y,o)}return{min_x:i,max_x:n,min_y:s,max_y:o}}hasSameParent(e,t){let i=this.parentReference[e.id],n=this.parentReference[t.id];if(i===void 0||n===void 0)return!1;for(let s=0;s<i.length;s++)for(let o=0;o<n.length;o++)if(i[s]==n[o])return!0;return!1}inSameSubNetwork(e,t){return this.trees[e.id]===this.trees[t.id]}getLevels(){return Se(this.distributionOrdering)}addToOrdering(e,t){this.distributionOrdering[t]===void 0&&(this.distributionOrdering[t]=[]);let i=!1,n=this.distributionOrdering[t];for(let s in n)if(n[s]===e){i=!0;break}i||(this.distributionOrdering[t].push(e),this.distributionIndex[e.id]=this.distributionOrdering[t].length-1)}},Gu=class{constructor(e){this.body=e,this._resetRNG(Math.random()+":"+Yo()),this.setPhysics=!1,this.options={},this.optionsBackup={physics:{}},this.defaultOptions={randomSeed:void 0,improvedLayout:!0,clusterThreshold:150,hierarchical:{enabled:!1,levelSeparation:150,nodeSpacing:100,treeSpacing:200,blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:"UD",sortMethod:"hubsize"}},Fe(this.options,this.defaultOptions),this.bindEventListeners()}bindEventListeners(){this.body.emitter.on("_dataChanged",()=>{this.setupHierarchicalLayout()}),this.body.emitter.on("_dataLoaded",()=>{this.layoutNetwork()}),this.body.emitter.on("_resetHierarchicalLayout",()=>{this.setupHierarchicalLayout()}),this.body.emitter.on("_adjustEdgesForHierarchicalLayout",()=>{if(this.options.hierarchical.enabled!==!0)return;let e=this.direction.curveType();this.body.emitter.emit("_forceDisableDynamicCurves",e,!1)})}setOptions(e,t){if(e!==void 0){let i=this.options.hierarchical,n=i.enabled;if(Pr(["randomSeed","improvedLayout","clusterThreshold"],this.options,e),Ot(this.options,e,"hierarchical"),e.randomSeed!==void 0&&this._resetRNG(e.randomSeed),i.enabled===!0)return n===!0&&this.body.emitter.emit("refresh",!0),i.direction==="RL"||i.direction==="DU"?i.levelSeparation>0&&(i.levelSeparation*=-1):i.levelSeparation<0&&(i.levelSeparation*=-1),this.setDirectionStrategy(),this.body.emitter.emit("_resetHierarchicalLayout"),this.adaptAllOptionsForHierarchicalLayout(t);if(n===!0)return this.body.emitter.emit("refresh"),me(t,this.optionsBackup)}return t}_resetRNG(e){this.initialRandomSeed=e,this._rng=Pg(this.initialRandomSeed)}adaptAllOptionsForHierarchicalLayout(e){if(this.options.hierarchical.enabled===!0){let t=this.optionsBackup.physics;e.physics===void 0||e.physics===!0?(e.physics={enabled:t.enabled===void 0?!0:t.enabled,solver:"hierarchicalRepulsion"},t.enabled=t.enabled===void 0?!0:t.enabled,t.solver=t.solver||"barnesHut"):typeof e.physics=="object"?(t.enabled=e.physics.enabled===void 0?!0:e.physics.enabled,t.solver=e.physics.solver||"barnesHut",e.physics.solver="hierarchicalRepulsion"):e.physics!==!1&&(t.solver="barnesHut",e.physics={solver:"hierarchicalRepulsion"});let i=this.direction.curveType();if(e.edges===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges={smooth:!1};else if(e.edges.smooth===void 0)this.optionsBackup.edges={smooth:{enabled:!0,type:"dynamic"}},e.edges.smooth=!1;else if(typeof e.edges.smooth=="boolean")this.optionsBackup.edges={smooth:e.edges.smooth},e.edges.smooth={enabled:e.edges.smooth,type:i};else{let n=e.edges.smooth;n.type!==void 0&&n.type!=="dynamic"&&(i=n.type),this.optionsBackup.edges={smooth:{enabled:n.enabled===void 0?!0:n.enabled,type:n.type===void 0?"dynamic":n.type,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}},e.edges.smooth={enabled:n.enabled===void 0?!0:n.enabled,type:i,roundness:n.roundness===void 0?.5:n.roundness,forceDirection:n.forceDirection===void 0?!1:n.forceDirection}}this.body.emitter.emit("_forceDisableDynamicCurves",i)}return e}positionInitially(e){if(this.options.hierarchical.enabled!==!0){this._resetRNG(this.initialRandomSeed);let t=e.length+50;for(let i=0;i<e.length;i++){let n=e[i],s=2*Math.PI*this._rng();n.x===void 0&&(n.x=t*Math.cos(s)),n.y===void 0&&(n.y=t*Math.sin(s))}}}layoutNetwork(){if(this.options.hierarchical.enabled!==!0&&this.options.improvedLayout===!0){let e=this.body.nodeIndices,t=0;for(let i=0;i<e.length;i++)this.body.nodes[e[i]].predefinedPosition===!0&&(t+=1);if(t<.5*e.length){let n=0,s=this.options.clusterThreshold,o={clusterNodeProperties:{shape:"ellipse",label:"",group:"",font:{multi:!1}},clusterEdgeProperties:{label:"",font:{multi:!1},smooth:{enabled:!1}}};if(e.length>s){let a=e.length;for(;e.length>s&&n<=10;){n+=1;let A=e.length;n%3===0?this.body.modules.clustering.clusterBridges(o):this.body.modules.clustering.clusterOutliers(o);let C=e.length;if(A==C&&n%3!==0){this._declusterAll(),this.body.emitter.emit("_layoutFailed"),console.info("This network could not be positioned by this version of the improved layout algorithm. Please disable improvedLayout for better performance.");return}}this.body.modules.kamadaKawai.setOptions({springLength:Math.max(150,2*a)})}n>10&&console.info("The clustering didn't succeed within the amount of interations allowed, progressing with partial result."),this.body.modules.kamadaKawai.solve(e,this.body.edgeIndices,!0),this._shiftToCenter();let g=70;for(let a=0;a<e.length;a++){let A=this.body.nodes[e[a]];A.predefinedPosition===!1&&(A.x+=(.5-this._rng())*g,A.y+=(.5-this._rng())*g)}this._declusterAll(),this.body.emitter.emit("_repositionBezierNodes")}}}_shiftToCenter(){let e=tt.getRangeCore(this.body.nodes,this.body.nodeIndices),t=tt.findCenter(e);for(let i=0;i<this.body.nodeIndices.length;i++){let n=this.body.nodes[this.body.nodeIndices[i]];n.x-=t.x,n.y-=t.y}}_declusterAll(){let e=!0;for(;e===!0;){e=!1;for(let t=0;t<this.body.nodeIndices.length;t++)this.body.nodes[this.body.nodeIndices[t]].isCluster===!0&&(e=!0,this.body.modules.clustering.openCluster(this.body.nodeIndices[t],{},!1));e===!0&&this.body.emitter.emit("_dataChanged")}}getSeed(){return this.initialRandomSeed}setupHierarchicalLayout(){if(this.options.hierarchical.enabled===!0&&this.body.nodeIndices.length>0){let e,t,i=!1,n=!1;this.lastNodeOnLevel={},this.hierarchical=new Wu;for(t in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,t)&&(e=this.body.nodes[t],e.options.level!==void 0?(i=!0,this.hierarchical.levels[t]=e.options.level):n=!0);if(n===!0&&i===!0)throw new Error("To use the hierarchical layout, nodes require either no predefined levels or levels have to be defined for all nodes.");{if(n===!0){let o=this.options.hierarchical.sortMethod;o==="hubsize"?this._determineLevelsByHubsize():o==="directed"?this._determineLevelsDirected():o==="custom"&&this._determineLevelsCustomCallback()}for(let o in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,o)&&this.hierarchical.ensureLevel(o);let s=this._getDistribution();this._generateMap(),this._placeNodesByHierarchy(s),this._condenseHierarchy(),this._shiftToCenter()}}}_condenseHierarchy(){var e=this;let t=!1,i={},n=()=>{let u=o(),p=0;for(let v=0;v<u.length-1;v++){let m=u[v].max-u[v+1].min;p+=m+this.options.hierarchical.treeSpacing,s(v+1,p)}},s=(u,p)=>{let v=this.hierarchical.trees;for(let m in v)Object.prototype.hasOwnProperty.call(v,m)&&v[m]===u&&this.direction.shift(m,p)},o=()=>{let u=[];for(let p=0;p<this.hierarchical.numTrees();p++)u.push(this.direction.getTreeSize(p));return u},g=(u,p)=>{if(!p[u.id]&&(p[u.id]=!0,this.hierarchical.childrenReference[u.id])){let v=this.hierarchical.childrenReference[u.id];if(v.length>0)for(let m=0;m<v.length;m++)g(this.body.nodes[v[m]],p)}},a=function(u){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1e9,v=1e9,m=1e9,b=1e9,w=-1e9;for(let x in u)if(Object.prototype.hasOwnProperty.call(u,x)){let y=e.body.nodes[x],S=e.hierarchical.levels[y.id],k=e.direction.getPosition(y),[R,E]=e._getSpaceAroundNode(y,u);v=Math.min(R,v),m=Math.min(E,m),S<=p&&(b=Math.min(k,b),w=Math.max(k,w))}return[b,w,v,m]},A=(u,p)=>{let v=this.hierarchical.getMaxLevel(u.id),m=this.hierarchical.getMaxLevel(p.id);return Math.min(v,m)},C=(u,p,v)=>{let m=this.hierarchical;for(let b=0;b<p.length;b++){let w=p[b],x=m.distributionOrdering[w];if(x.length>1)for(let y=0;y<x.length-1;y++){let S=x[y],k=x[y+1];m.hasSameParent(S,k)&&m.inSameSubNetwork(S,k)&&u(S,k,v)}}},I=function(u,p){let v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,m=e.direction.getPosition(u),b=e.direction.getPosition(p),w=Math.abs(b-m),x=e.options.hierarchical.nodeSpacing;if(w>x){let y={},S={};g(u,y),g(p,S);let k=A(u,p),R=a(y,k),E=a(S,k),T=R[1],M=E[0],B=E[2];if(Math.abs(T-M)>x){let U=T-M+x;U<-B+x&&(U=-B+x),U<0&&(e._shiftBlock(p.id,U),t=!0,v===!0&&e._centerParent(p))}}},l=(u,p)=>{let v=p.id,m=p.edges,b=this.hierarchical.levels[p.id],w=this.options.hierarchical.levelSeparation*this.options.hierarchical.levelSeparation,x={},y=[];for(let B=0;B<m.length;B++){let X=m[B];if(X.toId!=X.fromId){let U=X.toId==v?X.from:X.to;x[m[B].id]=U,this.hierarchical.levels[U.id]<b&&y.push(X)}}let S=(B,X)=>{let U=0;for(let Ce=0;Ce<X.length;Ce++)if(x[X[Ce].id]!==void 0){let se=this.direction.getPosition(x[X[Ce].id])-B;U+=se/Math.sqrt(se*se+w)}return U},k=(B,X)=>{let U=0;for(let Ce=0;Ce<X.length;Ce++)if(x[X[Ce].id]!==void 0){let se=this.direction.getPosition(x[X[Ce].id])-B;U-=w*Math.pow(se*se+w,-1.5)}return U},R=(B,X)=>{let U=this.direction.getPosition(p),Ce={};for(let se=0;se<B;se++){let Me=S(U,X),Q=k(U,X),ce=40,Oe=Math.max(-ce,Math.min(ce,Math.round(Me/Q)));if(U=U-Oe,Ce[U]!==void 0)break;Ce[U]=se}return U},E=B=>{let X=this.direction.getPosition(p);if(i[p.id]===void 0){let ce={};g(p,ce),i[p.id]=ce}let U=a(i[p.id]),Ce=U[2],se=U[3],Me=B-X,Q=0;Me>0?Q=Math.min(Me,se-this.options.hierarchical.nodeSpacing):Me<0&&(Q=-Math.min(-Me,Ce-this.options.hierarchical.nodeSpacing)),Q!=0&&(this._shiftBlock(p.id,Q),t=!0)},T=B=>{let X=this.direction.getPosition(p),[U,Ce]=this._getSpaceAroundNode(p),se=B-X,Me=X;se>0?Me=Math.min(X+(Ce-this.options.hierarchical.nodeSpacing),B):se<0&&(Me=Math.max(X-(U-this.options.hierarchical.nodeSpacing),B)),Me!==X&&(this.direction.setPosition(p,Me),t=!0)},M=R(u,y);E(M),M=R(u,m),T(M)},h=u=>{let p=this.hierarchical.getLevels();p=xn(p).call(p);for(let v=0;v<u;v++){t=!1;for(let m=0;m<p.length;m++){let b=p[m],w=this.hierarchical.distributionOrdering[b];for(let x=0;x<w.length;x++)l(1e3,w[x])}if(t!==!0)break}},d=u=>{let p=this.hierarchical.getLevels();p=xn(p).call(p);for(let v=0;v<u&&(t=!1,C(I,p,!0),t===!0);v++);},c=()=>{for(let u in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,u)&&this._centerParent(this.body.nodes[u])},f=()=>{let u=this.hierarchical.getLevels();u=xn(u).call(u);for(let p=0;p<u.length;p++){let v=u[p],m=this.hierarchical.distributionOrdering[v];for(let b=0;b<m.length;b++)this._centerParent(m[b])}};this.options.hierarchical.blockShifting===!0&&(d(5),c()),this.options.hierarchical.edgeMinimization===!0&&h(20),this.options.hierarchical.parentCentralization===!0&&f(),n()}_getSpaceAroundNode(e,t){let i=!0;t===void 0&&(i=!1);let n=this.hierarchical.levels[e.id];if(n!==void 0){let s=this.hierarchical.distributionIndex[e.id],o=this.direction.getPosition(e),g=this.hierarchical.distributionOrdering[n],a=1e9,A=1e9;if(s!==0){let C=g[s-1];if(i===!0&&t[C.id]===void 0||i===!1){let I=this.direction.getPosition(C);a=o-I}}if(s!=g.length-1){let C=g[s+1];if(i===!0&&t[C.id]===void 0||i===!1){let I=this.direction.getPosition(C);A=Math.min(A,I-o)}}return[a,A]}else return[0,0]}_centerParent(e){if(this.hierarchical.parentReference[e.id]){let t=this.hierarchical.parentReference[e.id];for(let i=0;i<t.length;i++){let n=t[i],s=this.body.nodes[n],o=this.hierarchical.childrenReference[n];if(o!==void 0){let g=this._getCenterPosition(o),a=this.direction.getPosition(s),[A,C]=this._getSpaceAroundNode(s),I=a-g;(I<0&&Math.abs(I)<C-this.options.hierarchical.nodeSpacing||I>0&&Math.abs(I)<A-this.options.hierarchical.nodeSpacing)&&this.direction.setPosition(s,g)}}}}_placeNodesByHierarchy(e){this.positionedNodes={};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var t;let n=Se(e[i]);n=this._indexArrayToNodes(n),Bi(t=this.direction).call(t,n);let s=0;for(let o=0;o<n.length;o++){let g=n[o];if(this.positionedNodes[g.id]===void 0){let a=this.options.hierarchical.nodeSpacing,A=a*s;s>0&&(A=this.direction.getPosition(n[o-1])+a),this.direction.setPosition(g,A,i),this._validatePositionAndContinue(g,i,A),s++}}}}_placeBranchNodes(e,t){var i;let n=this.hierarchical.childrenReference[e];if(n===void 0)return;let s=[];for(let g=0;g<n.length;g++)s.push(this.body.nodes[n[g]]);Bi(i=this.direction).call(i,s);for(let g=0;g<s.length;g++){let a=s[g],A=this.hierarchical.levels[a.id];if(A>t&&this.positionedNodes[a.id]===void 0){let C=this.options.hierarchical.nodeSpacing,I;g===0?I=this.direction.getPosition(this.body.nodes[e]):I=this.direction.getPosition(s[g-1])+C,this.direction.setPosition(a,I,A),this._validatePositionAndContinue(a,A,I)}else return}let o=this._getCenterPosition(s);this.direction.setPosition(this.body.nodes[e],o,t)}_validatePositionAndContinue(e,t,i){if(this.hierarchical.isTree){if(this.lastNodeOnLevel[t]!==void 0){let n=this.direction.getPosition(this.body.nodes[this.lastNodeOnLevel[t]]);if(i-n<this.options.hierarchical.nodeSpacing){let s=n+this.options.hierarchical.nodeSpacing-i,o=this._findCommonParent(this.lastNodeOnLevel[t],e.id);this._shiftBlock(o.withChild,s)}}this.lastNodeOnLevel[t]=e.id,this.positionedNodes[e.id]=!0,this._placeBranchNodes(e.id,t)}}_indexArrayToNodes(e){let t=[];for(let i=0;i<e.length;i++)t.push(this.body.nodes[e[i]]);return t}_getDistribution(){let e={},t,i;for(t in this.body.nodes)if(Object.prototype.hasOwnProperty.call(this.body.nodes,t)){i=this.body.nodes[t];let n=this.hierarchical.levels[t]===void 0?0:this.hierarchical.levels[t];this.direction.fix(i,n),e[n]===void 0&&(e[n]={}),e[n][t]=i}return e}_getActiveEdges(e){let t=[];return $(e.edges,i=>{var n;ue(n=this.body.edgeIndices).call(n,i.id)!==-1&&t.push(i)}),t}_getHubSizes(){let e={},t=this.body.nodeIndices;$(t,n=>{let s=this.body.nodes[n],o=this._getActiveEdges(s).length;e[o]=!0});let i=[];return $(e,n=>{i.push(Number(n))}),Bi(i).call(i,function(n,s){return s-n}),i}_determineLevelsByHubsize(){let e=(i,n)=>{this.hierarchical.levelDownstream(i,n)},t=this._getHubSizes();for(let i=0;i<t.length;++i){let n=t[i];if(n===0)break;$(this.body.nodeIndices,s=>{let o=this.body.nodes[s];n===this._getActiveEdges(o).length&&this._crawlNetwork(e,s)})}}_determineLevelsCustomCallback(){let t=function(n,s,o){},i=(n,s,o)=>{let g=this.hierarchical.levels[n.id];g===void 0&&(g=this.hierarchical.levels[n.id]=1e5);let a=t(tt.cloneOptions(n,"node"),tt.cloneOptions(s,"node"),tt.cloneOptions(o,"edge"));this.hierarchical.levels[s.id]=g+a};this._crawlNetwork(i),this.hierarchical.setMinLevelToZero()}_determineLevelsDirected(){var e;let t=wf(e=this.body.nodeIndices).call(e,(i,n)=>(i.set(n,this.body.nodes[n]),i),new Vs);this.options.hierarchical.shakeTowards==="roots"?this.hierarchical.levels=f5(t):this.hierarchical.levels=u5(t),this.hierarchical.setMinLevelToZero()}_generateMap(){let e=(t,i)=>{this.hierarchical.levels[i.id]>this.hierarchical.levels[t.id]&&this.hierarchical.addRelation(t.id,i.id)};this._crawlNetwork(e),this.hierarchical.checkIfTree()}_crawlNetwork(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(){},t=arguments.length>1?arguments[1]:void 0,i={},n=(s,o)=>{if(i[s.id]===void 0){this.hierarchical.setTreeIndex(s,o),i[s.id]=!0;let g,a=this._getActiveEdges(s);for(let A=0;A<a.length;A++){let C=a[A];C.connected===!0&&(C.toId==s.id?g=C.from:g=C.to,s.id!=g.id&&(e(s,g,C),n(g,o)))}}};if(t===void 0){let s=0;for(let o=0;o<this.body.nodeIndices.length;o++){let g=this.body.nodeIndices[o];if(i[g]===void 0){let a=this.body.nodes[g];n(a,s),s+=1}}}else{let s=this.body.nodes[t];if(s===void 0){console.error("Node not found:",t);return}n(s)}}_shiftBlock(e,t){let i={},n=s=>{if(i[s])return;i[s]=!0,this.direction.shift(s,t);let o=this.hierarchical.childrenReference[s];if(o!==void 0)for(let g=0;g<o.length;g++)n(o[g])};n(e)}_findCommonParent(e,t){let i={},n=(o,g)=>{let a=this.hierarchical.parentReference[g];if(a!==void 0)for(let A=0;A<a.length;A++){let C=a[A];o[C]=!0,n(o,C)}},s=(o,g)=>{let a=this.hierarchical.parentReference[g];if(a!==void 0)for(let A=0;A<a.length;A++){let C=a[A];if(o[C]!==void 0)return{foundParent:C,withChild:g};let I=s(o,C);if(I.foundParent!==null)return I}return{foundParent:null,withChild:g}};return n(i,e),s(i,t)}setDirectionStrategy(){this.options.hierarchical.direction==="UD"||this.options.hierarchical.direction==="DU"?this.direction=new qu(this):this.direction=new Vu(this)}_getCenterPosition(e){let t=1e9,i=-1e9;for(let n=0;n<e.length;n++){let s;if(e[n].id!==void 0)s=e[n];else{let g=e[n];s=this.body.nodes[g]}let o=this.direction.getPosition(s);t=Math.min(t,o),i=Math.max(i,o)}return .5*(t+i)}},Zu=class{constructor(e,t,i,n){var s,o;this.body=e,this.canvas=t,this.selectionHandler=i,this.interactionHandler=n,this.editMode=!1,this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0,this._domEventListenerCleanupQueue=[],this.temporaryUIFunctions={},this.temporaryEventFunctions=[],this.touchTime=0,this.temporaryIds={nodes:[],edges:[]},this.guiEnabled=!1,this.inMode=!1,this.selectedControlNode=void 0,this.options={},this.defaultOptions={enabled:!1,initiallyActive:!1,addNode:!0,addEdge:!0,editNode:void 0,editEdge:!0,deleteNode:!0,deleteEdge:!0,controlNodeStyle:{shape:"dot",size:6,color:{background:"#ff0000",border:"#3c3c3c",highlight:{background:"#07f968",border:"#3c3c3c"}},borderWidth:2,borderWidthSelected:2}},Fe(this.options,this.defaultOptions),this.body.emitter.on("destroy",()=>{this._clean()}),this.body.emitter.on("_dataChanged",P(s=this._restore).call(s,this)),this.body.emitter.on("_resetData",P(o=this._restore).call(o,this))}_restore(){this.inMode!==!1&&(this.options.initiallyActive===!0?this.enableEditMode():this.disableEditMode())}setOptions(e,t,i){t!==void 0&&(t.locale!==void 0?this.options.locale=t.locale:this.options.locale=i.locale,t.locales!==void 0?this.options.locales=t.locales:this.options.locales=i.locales),e!==void 0&&(typeof e=="boolean"?this.options.enabled=e:(this.options.enabled=!0,me(this.options,e)),this.options.initiallyActive===!0&&(this.editMode=!0),this._setup())}toggleEditMode(){this.editMode===!0?this.disableEditMode():this.enableEditMode()}enableEditMode(){this.editMode=!0,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="block",this.closeDiv.style.display="block",this.editModeDiv.style.display="none",this.showManipulatorToolbar())}disableEditMode(){this.editMode=!1,this._clean(),this.guiEnabled===!0&&(this.manipulationDiv.style.display="none",this.closeDiv.style.display="none",this.editModeDiv.style.display="block",this._createEditButton())}showManipulatorToolbar(){if(this._clean(),this.manipulationDOM={},this.guiEnabled===!0){var e,t;this.editMode=!0,this.manipulationDiv.style.display="block",this.closeDiv.style.display="block";let i=this.selectionHandler.getSelectedNodeCount(),n=this.selectionHandler.getSelectedEdgeCount(),s=i+n,o=this.options.locales[this.options.locale],g=!1;this.options.addNode!==!1&&(this._createAddNodeButton(o),g=!0),this.options.addEdge!==!1&&(g===!0?this._createSeperator(1):g=!0,this._createAddEdgeButton(o)),i===1&&typeof this.options.editNode=="function"?(g===!0?this._createSeperator(2):g=!0,this._createEditNodeButton(o)):n===1&&i===0&&this.options.editEdge!==!1&&(g===!0?this._createSeperator(3):g=!0,this._createEditEdgeButton(o)),s!==0&&(i>0&&this.options.deleteNode!==!1?(g===!0&&this._createSeperator(4),this._createDeleteButton(o)):i===0&&this.options.deleteEdge!==!1&&(g===!0&&this._createSeperator(4),this._createDeleteButton(o))),this._bindElementEvents(this.closeDiv,P(e=this.toggleEditMode).call(e,this)),this._temporaryBindEvent("select",P(t=this.showManipulatorToolbar).call(t,this))}this.body.emitter.emit("_redraw")}addNodeMode(){var e;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addNode",this.guiEnabled===!0){var t;let i=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(i),this._createSeperator(),this._createDescription(i.addDescription||this.options.locales.en.addDescription),this._bindElementEvents(this.closeDiv,P(t=this.toggleEditMode).call(t,this))}this._temporaryBindEvent("click",P(e=this._performAddNode).call(e,this))}editNode(){this.editMode!==!0&&this.enableEditMode(),this._clean();let e=this.selectionHandler.getSelectedNodes()[0];if(e!==void 0)if(this.inMode="editNode",typeof this.options.editNode=="function")if(e.isCluster!==!0){let t=me({},e.options,!1);if(t.x=e.x,t.y=e.y,this.options.editNode.length===2)this.options.editNode(t,i=>{i!=null&&this.inMode==="editNode"&&this.body.data.nodes.getDataSet().update(i),this.showManipulatorToolbar()});else throw new Error("The function for edit does not support two arguments (data, callback)")}else alert(this.options.locales[this.options.locale].editClusterError||this.options.locales.en.editClusterError);else throw new Error("No function has been configured to handle the editing of nodes.");else this.showManipulatorToolbar()}addEdgeMode(){var e,t,i,n,s;if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="addEdge",this.guiEnabled===!0){var o;let g=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(g),this._createSeperator(),this._createDescription(g.edgeDescription||this.options.locales.en.edgeDescription),this._bindElementEvents(this.closeDiv,P(o=this.toggleEditMode).call(o,this))}this._temporaryBindUI("onTouch",P(e=this._handleConnect).call(e,this)),this._temporaryBindUI("onDragEnd",P(t=this._finishConnect).call(t,this)),this._temporaryBindUI("onDrag",P(i=this._dragControlNode).call(i,this)),this._temporaryBindUI("onRelease",P(n=this._finishConnect).call(n,this)),this._temporaryBindUI("onDragStart",P(s=this._dragStartEdge).call(s,this)),this._temporaryBindUI("onHold",()=>{})}editEdgeMode(){if(this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="editEdge",typeof this.options.editEdge=="object"&&typeof this.options.editEdge.editWithoutDrag=="function"&&(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0)){let o=this.body.edges[this.edgeBeingEditedId];this._performEditEdge(o.from.id,o.to.id);return}if(this.guiEnabled===!0){var e;let o=this.options.locales[this.options.locale];this.manipulationDOM={},this._createBackButton(o),this._createSeperator(),this._createDescription(o.editEdgeDescription||this.options.locales.en.editEdgeDescription),this._bindElementEvents(this.closeDiv,P(e=this.toggleEditMode).call(e,this))}if(this.edgeBeingEditedId=this.selectionHandler.getSelectedEdgeIds()[0],this.edgeBeingEditedId!==void 0){var t,i,n,s;let o=this.body.edges[this.edgeBeingEditedId],g=this._getNewTargetNode(o.from.x,o.from.y),a=this._getNewTargetNode(o.to.x,o.to.y);this.temporaryIds.nodes.push(g.id),this.temporaryIds.nodes.push(a.id),this.body.nodes[g.id]=g,this.body.nodeIndices.push(g.id),this.body.nodes[a.id]=a,this.body.nodeIndices.push(a.id),this._temporaryBindUI("onTouch",P(t=this._controlNodeTouch).call(t,this)),this._temporaryBindUI("onTap",()=>{}),this._temporaryBindUI("onHold",()=>{}),this._temporaryBindUI("onDragStart",P(i=this._controlNodeDragStart).call(i,this)),this._temporaryBindUI("onDrag",P(n=this._controlNodeDrag).call(n,this)),this._temporaryBindUI("onDragEnd",P(s=this._controlNodeDragEnd).call(s,this)),this._temporaryBindUI("onMouseMove",()=>{}),this._temporaryBindEvent("beforeDrawing",A=>{let C=o.edgeType.findBorderPositions(A);g.selected===!1&&(g.x=C.from.x,g.y=C.from.y),a.selected===!1&&(a.x=C.to.x,a.y=C.to.y)}),this.body.emitter.emit("_redraw")}else this.showManipulatorToolbar()}deleteSelected(){this.editMode!==!0&&this.enableEditMode(),this._clean(),this.inMode="delete";let e=this.selectionHandler.getSelectedNodeIds(),t=this.selectionHandler.getSelectedEdgeIds(),i;if(e.length>0){for(let n=0;n<e.length;n++)if(this.body.nodes[e[n]].isCluster===!0){alert(this.options.locales[this.options.locale].deleteClusterError||this.options.locales.en.deleteClusterError);return}typeof this.options.deleteNode=="function"&&(i=this.options.deleteNode)}else t.length>0&&typeof this.options.deleteEdge=="function"&&(i=this.options.deleteEdge);if(typeof i=="function"){let n={nodes:e,edges:t};if(i.length===2)i(n,s=>{s!=null&&this.inMode==="delete"?(this.body.data.edges.getDataSet().remove(s.edges),this.body.data.nodes.getDataSet().remove(s.nodes),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()):(this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar())});else throw new Error("The function for delete does not support two arguments (data, callback)")}else this.body.data.edges.getDataSet().remove(t),this.body.data.nodes.getDataSet().remove(e),this.body.emitter.emit("startSimulation"),this.showManipulatorToolbar()}_setup(){this.options.enabled===!0?(this.guiEnabled=!0,this._createWrappers(),this.editMode===!1?this._createEditButton():this.showManipulatorToolbar()):(this._removeManipulationDOM(),this.guiEnabled=!1)}_createWrappers(){if(this.manipulationDiv===void 0&&(this.manipulationDiv=document.createElement("div"),this.manipulationDiv.className="vis-manipulation",this.editMode===!0?this.manipulationDiv.style.display="block":this.manipulationDiv.style.display="none",this.canvas.frame.appendChild(this.manipulationDiv)),this.editModeDiv===void 0&&(this.editModeDiv=document.createElement("div"),this.editModeDiv.className="vis-edit-mode",this.editMode===!0?this.editModeDiv.style.display="none":this.editModeDiv.style.display="block",this.canvas.frame.appendChild(this.editModeDiv)),this.closeDiv===void 0){var e,t;this.closeDiv=document.createElement("button"),this.closeDiv.className="vis-close",this.closeDiv.setAttribute("aria-label",(e=(t=this.options.locales[this.options.locale])===null||t===void 0?void 0:t.close)!==null&&e!==void 0?e:this.options.locales.en.close),this.closeDiv.style.display=this.manipulationDiv.style.display,this.canvas.frame.appendChild(this.closeDiv)}}_getNewTargetNode(e,t){let i=me({},this.options.controlNodeStyle);i.id="targetNode"+hr(),i.hidden=!1,i.physics=!1,i.x=e,i.y=t;let n=this.body.functions.createNode(i);return n.shape.boundingBox={left:e,right:e,top:t,bottom:t},n}_createEditButton(){var e;this._clean(),this.manipulationDOM={},Hi(this.editModeDiv);let t=this.options.locales[this.options.locale],i=this._createButton("editMode","vis-edit vis-edit-mode",t.edit||this.options.locales.en.edit);this.editModeDiv.appendChild(i),this._bindElementEvents(i,P(e=this.toggleEditMode).call(e,this))}_clean(){this.inMode=!1,this.guiEnabled===!0&&(Hi(this.editModeDiv),Hi(this.manipulationDiv),this._cleanupDOMEventListeners()),this._cleanupTemporaryNodesAndEdges(),this._unbindTemporaryUIs(),this._unbindTemporaryEvents(),this.body.emitter.emit("restorePhysics")}_cleanupDOMEventListeners(){for(let t of li(e=this._domEventListenerCleanupQueue).call(e,0)){var e;t()}}_removeManipulationDOM(){this._clean(),Hi(this.manipulationDiv),Hi(this.editModeDiv),Hi(this.closeDiv),this.manipulationDiv&&this.canvas.frame.removeChild(this.manipulationDiv),this.editModeDiv&&this.canvas.frame.removeChild(this.editModeDiv),this.closeDiv&&this.canvas.frame.removeChild(this.closeDiv),this.manipulationDiv=void 0,this.editModeDiv=void 0,this.closeDiv=void 0}_createSeperator(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this.manipulationDOM["seperatorLineDiv"+e]=document.createElement("div"),this.manipulationDOM["seperatorLineDiv"+e].className="vis-separator-line",this.manipulationDiv.appendChild(this.manipulationDOM["seperatorLineDiv"+e])}_createAddNodeButton(e){var t;let i=this._createButton("addNode","vis-add",e.addNode||this.options.locales.en.addNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,P(t=this.addNodeMode).call(t,this))}_createAddEdgeButton(e){var t;let i=this._createButton("addEdge","vis-connect",e.addEdge||this.options.locales.en.addEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,P(t=this.addEdgeMode).call(t,this))}_createEditNodeButton(e){var t;let i=this._createButton("editNode","vis-edit",e.editNode||this.options.locales.en.editNode);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,P(t=this.editNode).call(t,this))}_createEditEdgeButton(e){var t;let i=this._createButton("editEdge","vis-edit",e.editEdge||this.options.locales.en.editEdge);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,P(t=this.editEdgeMode).call(t,this))}_createDeleteButton(e){var t;let i;this.options.rtl?i="vis-delete-rtl":i="vis-delete";let n=this._createButton("delete",i,e.del||this.options.locales.en.del);this.manipulationDiv.appendChild(n),this._bindElementEvents(n,P(t=this.deleteSelected).call(t,this))}_createBackButton(e){var t;let i=this._createButton("back","vis-back",e.back||this.options.locales.en.back);this.manipulationDiv.appendChild(i),this._bindElementEvents(i,P(t=this.showManipulatorToolbar).call(t,this))}_createButton(e,t,i){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"vis-label";return this.manipulationDOM[e+"Div"]=document.createElement("button"),this.manipulationDOM[e+"Div"].className="vis-button "+t,this.manipulationDOM[e+"Label"]=document.createElement("div"),this.manipulationDOM[e+"Label"].className=n,this.manipulationDOM[e+"Label"].innerText=i,this.manipulationDOM[e+"Div"].appendChild(this.manipulationDOM[e+"Label"]),this.manipulationDOM[e+"Div"]}_createDescription(e){this.manipulationDOM.descriptionLabel=document.createElement("div"),this.manipulationDOM.descriptionLabel.className="vis-none",this.manipulationDOM.descriptionLabel.innerText=e,this.manipulationDiv.appendChild(this.manipulationDOM.descriptionLabel)}_temporaryBindEvent(e,t){this.temporaryEventFunctions.push({event:e,boundFunction:t}),this.body.emitter.on(e,t)}_temporaryBindUI(e,t){if(this.body.eventListeners[e]!==void 0)this.temporaryUIFunctions[e]=this.body.eventListeners[e],this.body.eventListeners[e]=t;else throw new Error("This UI function does not exist. Typo? You tried: "+e+" possible are: "+Rr(Se(this.body.eventListeners)))}_unbindTemporaryUIs(){for(let e in this.temporaryUIFunctions)Object.prototype.hasOwnProperty.call(this.temporaryUIFunctions,e)&&(this.body.eventListeners[e]=this.temporaryUIFunctions[e],delete this.temporaryUIFunctions[e]);this.temporaryUIFunctions={}}_unbindTemporaryEvents(){for(let e=0;e<this.temporaryEventFunctions.length;e++){let t=this.temporaryEventFunctions[e].event,i=this.temporaryEventFunctions[e].boundFunction;this.body.emitter.off(t,i)}this.temporaryEventFunctions=[]}_bindElementEvents(e,t){let i=new lr(e,{});hg(i,t),this._domEventListenerCleanupQueue.push(()=>{i.destroy()});let n=s=>{let{keyCode:o,key:g}=s;(g==="Enter"||g===" "||o===13||o===32)&&t()};e.addEventListener("keyup",n,!1),this._domEventListenerCleanupQueue.push(()=>{e.removeEventListener("keyup",n,!1)})}_cleanupTemporaryNodesAndEdges(){for(let s=0;s<this.temporaryIds.edges.length;s++){var e;this.body.edges[this.temporaryIds.edges[s]].disconnect(),delete this.body.edges[this.temporaryIds.edges[s]];let o=ue(e=this.body.edgeIndices).call(e,this.temporaryIds.edges[s]);if(o!==-1){var t;li(t=this.body.edgeIndices).call(t,o,1)}}for(let s=0;s<this.temporaryIds.nodes.length;s++){var i;delete this.body.nodes[this.temporaryIds.nodes[s]];let o=ue(i=this.body.nodeIndices).call(i,this.temporaryIds.nodes[s]);if(o!==-1){var n;li(n=this.body.nodeIndices).call(n,o,1)}}this.temporaryIds={nodes:[],edges:[]}}_controlNodeTouch(e){this.selectionHandler.unselectAll(),this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Fe({},this.body.view.translation)}_controlNodeDragStart(){let e=this.lastTouch,t=this.selectionHandler._pointerToPositionObject(e),i=this.body.nodes[this.temporaryIds.nodes[0]],n=this.body.nodes[this.temporaryIds.nodes[1]],s=this.body.edges[this.edgeBeingEditedId];this.selectedControlNode=void 0;let o=i.isOverlappingWith(t),g=n.isOverlappingWith(t);o===!0?(this.selectedControlNode=i,s.edgeType.from=i):g===!0&&(this.selectedControlNode=n,s.edgeType.to=n),this.selectedControlNode!==void 0&&this.selectionHandler.selectObject(this.selectedControlNode),this.body.emitter.emit("_redraw")}_controlNodeDrag(e){this.body.emitter.emit("disablePhysics");let t=this.body.functions.getPointer(e.center),i=this.canvas.DOMtoCanvas(t);this.selectedControlNode!==void 0?(this.selectedControlNode.x=i.x,this.selectedControlNode.y=i.y):this.interactionHandler.onDrag(e),this.body.emitter.emit("_redraw")}_controlNodeDragEnd(e){let t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t),n=this.body.edges[this.edgeBeingEditedId];if(this.selectedControlNode===void 0)return;this.selectionHandler.unselectAll();let s=this.selectionHandler._getAllNodesOverlappingWith(i),o;for(let g=s.length-1;g>=0;g--)if(s[g]!==this.selectedControlNode.id){o=this.body.nodes[s[g]];break}if(o!==void 0&&this.selectedControlNode!==void 0)if(o.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{let g=this.body.nodes[this.temporaryIds.nodes[0]];this.selectedControlNode.id===g.id?this._performEditEdge(o.id,n.to.id):this._performEditEdge(n.from.id,o.id)}else n.updateEdgeType(),this.body.emitter.emit("restorePhysics");this.body.emitter.emit("_redraw")}_handleConnect(e){if(new Date().valueOf()-this.touchTime>100){this.lastTouch=this.body.functions.getPointer(e.center),this.lastTouch.translation=Fe({},this.body.view.translation),this.interactionHandler.drag.pointer=this.lastTouch,this.interactionHandler.drag.translation=this.lastTouch.translation;let t=this.lastTouch,i=this.selectionHandler.getNodeAt(t);if(i!==void 0)if(i.isCluster===!0)alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError);else{let n=this._getNewTargetNode(i.x,i.y);this.body.nodes[n.id]=n,this.body.nodeIndices.push(n.id);let s=this.body.functions.createEdge({id:"connectionEdge"+hr(),from:i.id,to:n.id,physics:!1,smooth:{enabled:!0,type:"continuous",roundness:.5}});this.body.edges[s.id]=s,this.body.edgeIndices.push(s.id),this.temporaryIds.nodes.push(n.id),this.temporaryIds.edges.push(s.id)}this.touchTime=new Date().valueOf()}}_dragControlNode(e){let t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t),n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);let s=this.selectionHandler._getAllNodesOverlappingWith(i),o;for(let a=s.length-1;a>=0;a--){var g;if(ue(g=this.temporaryIds.nodes).call(g,s[a])===-1){o=this.body.nodes[s[a]];break}}if(e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragging",e,t),this.temporaryIds.nodes[0]!==void 0){let a=this.body.nodes[this.temporaryIds.nodes[0]];a.x=this.canvas._XconvertDOMtoCanvas(t.x),a.y=this.canvas._YconvertDOMtoCanvas(t.y),this.body.emitter.emit("_redraw")}else this.interactionHandler.onDrag(e)}_finishConnect(e){let t=this.body.functions.getPointer(e.center),i=this.selectionHandler._pointerToPositionObject(t),n;this.temporaryIds.edges[0]!==void 0&&(n=this.body.edges[this.temporaryIds.edges[0]].fromId);let s=this.selectionHandler._getAllNodesOverlappingWith(i),o;for(let a=s.length-1;a>=0;a--){var g;if(ue(g=this.temporaryIds.nodes).call(g,s[a])===-1){o=this.body.nodes[s[a]];break}}this._cleanupTemporaryNodesAndEdges(),o!==void 0&&(o.isCluster===!0?alert(this.options.locales[this.options.locale].createEdgeError||this.options.locales.en.createEdgeError):this.body.nodes[n]!==void 0&&this.body.nodes[o.id]!==void 0&&this._performAddEdge(n,o.id)),e.controlEdge={from:n,to:o?o.id:void 0},this.selectionHandler.generateClickEvent("controlNodeDragEnd",e,t),this.body.emitter.emit("_redraw")}_dragStartEdge(e){let t=this.lastTouch;this.selectionHandler.generateClickEvent("dragStart",e,t,void 0,!0)}_performAddNode(e){let t={id:hr(),x:e.pointer.canvas.x,y:e.pointer.canvas.y,label:"new"};if(typeof this.options.addNode=="function")if(this.options.addNode.length===2)this.options.addNode(t,i=>{i!=null&&this.inMode==="addNode"&&this.body.data.nodes.getDataSet().add(i),this.showManipulatorToolbar()});else throw this.showManipulatorToolbar(),new Error("The function for add does not support two arguments (data,callback)");else this.body.data.nodes.getDataSet().add(t),this.showManipulatorToolbar()}_performAddEdge(e,t){let i={from:e,to:t};if(typeof this.options.addEdge=="function")if(this.options.addEdge.length===2)this.options.addEdge(i,n=>{n!=null&&this.inMode==="addEdge"&&(this.body.data.edges.getDataSet().add(n),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for connect does not support two arguments (data,callback)");else this.body.data.edges.getDataSet().add(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}_performEditEdge(e,t){let i={id:this.edgeBeingEditedId,from:e,to:t,label:this.body.data.edges.get(this.edgeBeingEditedId).label},n=this.options.editEdge;if(typeof n=="object"&&(n=n.editWithoutDrag),typeof n=="function")if(n.length===2)n(i,s=>{s==null||this.inMode!=="editEdge"?(this.body.edges[i.id].updateEdgeType(),this.body.emitter.emit("_redraw"),this.showManipulatorToolbar()):(this.body.data.edges.getDataSet().update(s),this.selectionHandler.unselectAll(),this.showManipulatorToolbar())});else throw new Error("The function for edit does not support two arguments (data, callback)");else this.body.data.edges.getDataSet().update(i),this.selectionHandler.unselectAll(),this.showManipulatorToolbar()}},_="string",D="boolean",O="number",Is="array",Z="object",uR="dom",p5="any",Nc=["arrow","bar","box","circle","crow","curve","diamond","image","inv_curve","inv_triangle","triangle","vee"],_c={borderWidth:{number:O},borderWidthSelected:{number:O,undefined:"undefined"},brokenImage:{string:_,undefined:"undefined"},chosen:{label:{boolean:D,function:"function"},node:{boolean:D,function:"function"},__type__:{object:Z,boolean:D}},color:{border:{string:_},background:{string:_},highlight:{border:{string:_},background:{string:_},__type__:{object:Z,string:_}},hover:{border:{string:_},background:{string:_},__type__:{object:Z,string:_}},__type__:{object:Z,string:_}},opacity:{number:O,undefined:"undefined"},fixed:{x:{boolean:D},y:{boolean:D},__type__:{object:Z,boolean:D}},font:{align:{string:_},color:{string:_},size:{number:O},face:{string:_},background:{string:_},strokeWidth:{number:O},strokeColor:{string:_},vadjust:{number:O},multi:{boolean:D,string:_},bold:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},boldital:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},ital:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},mono:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},__type__:{object:Z,string:_}},group:{string:_,number:O,undefined:"undefined"},heightConstraint:{minimum:{number:O},valign:{string:_},__type__:{object:Z,boolean:D,number:O}},hidden:{boolean:D},icon:{face:{string:_},code:{string:_},size:{number:O},color:{string:_},weight:{string:_,number:O},__type__:{object:Z}},id:{string:_,number:O},image:{selected:{string:_,undefined:"undefined"},unselected:{string:_,undefined:"undefined"},__type__:{object:Z,string:_}},imagePadding:{top:{number:O},right:{number:O},bottom:{number:O},left:{number:O},__type__:{object:Z,number:O}},label:{string:_,undefined:"undefined"},labelHighlightBold:{boolean:D},level:{number:O,undefined:"undefined"},margin:{top:{number:O},right:{number:O},bottom:{number:O},left:{number:O},__type__:{object:Z,number:O}},mass:{number:O},physics:{boolean:D},scaling:{min:{number:O},max:{number:O},label:{enabled:{boolean:D},min:{number:O},max:{number:O},maxVisible:{number:O},drawThreshold:{number:O},__type__:{object:Z,boolean:D}},customScalingFunction:{function:"function"},__type__:{object:Z}},shadow:{enabled:{boolean:D},color:{string:_},size:{number:O},x:{number:O},y:{number:O},__type__:{object:Z,boolean:D}},shape:{string:["custom","ellipse","circle","database","box","text","image","circularImage","diamond","dot","star","triangle","triangleDown","square","icon","hexagon"]},ctxRenderer:{function:"function"},shapeProperties:{borderDashes:{boolean:D,array:Is},borderRadius:{number:O},interpolation:{boolean:D},useImageSize:{boolean:D},useBorderWithImage:{boolean:D},coordinateOrigin:{string:["center","top-left"]},__type__:{object:Z}},size:{number:O},title:{string:_,dom:uR,undefined:"undefined"},value:{number:O,undefined:"undefined"},widthConstraint:{minimum:{number:O},maximum:{number:O},__type__:{object:Z,boolean:D,number:O}},x:{number:O},y:{number:O},__type__:{object:Z}},m5={configure:{enabled:{boolean:D},filter:{boolean:D,string:_,array:Is,function:"function"},container:{dom:uR},showButton:{boolean:D},__type__:{object:Z,boolean:D,string:_,array:Is,function:"function"}},edges:{arrows:{to:{enabled:{boolean:D},scaleFactor:{number:O},type:{string:Nc},imageHeight:{number:O},imageWidth:{number:O},src:{string:_},__type__:{object:Z,boolean:D}},middle:{enabled:{boolean:D},scaleFactor:{number:O},type:{string:Nc},imageWidth:{number:O},imageHeight:{number:O},src:{string:_},__type__:{object:Z,boolean:D}},from:{enabled:{boolean:D},scaleFactor:{number:O},type:{string:Nc},imageWidth:{number:O},imageHeight:{number:O},src:{string:_},__type__:{object:Z,boolean:D}},__type__:{string:["from","to","middle"],object:Z}},endPointOffset:{from:{number:O},to:{number:O},__type__:{object:Z,number:O}},arrowStrikethrough:{boolean:D},background:{enabled:{boolean:D},color:{string:_},size:{number:O},dashes:{boolean:D,array:Is},__type__:{object:Z,boolean:D}},chosen:{label:{boolean:D,function:"function"},edge:{boolean:D,function:"function"},__type__:{object:Z,boolean:D}},color:{color:{string:_},highlight:{string:_},hover:{string:_},inherit:{string:["from","to","both"],boolean:D},opacity:{number:O},__type__:{object:Z,string:_}},dashes:{boolean:D,array:Is},font:{color:{string:_},size:{number:O},face:{string:_},background:{string:_},strokeWidth:{number:O},strokeColor:{string:_},align:{string:["horizontal","top","middle","bottom"]},vadjust:{number:O},multi:{boolean:D,string:_},bold:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},boldital:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},ital:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},mono:{color:{string:_},size:{number:O},face:{string:_},mod:{string:_},vadjust:{number:O},__type__:{object:Z,string:_}},__type__:{object:Z,string:_}},hidden:{boolean:D},hoverWidth:{function:"function",number:O},label:{string:_,undefined:"undefined"},labelHighlightBold:{boolean:D},length:{number:O,undefined:"undefined"},physics:{boolean:D},scaling:{min:{number:O},max:{number:O},label:{enabled:{boolean:D},min:{number:O},max:{number:O},maxVisible:{number:O},drawThreshold:{number:O},__type__:{object:Z,boolean:D}},customScalingFunction:{function:"function"},__type__:{object:Z}},selectionWidth:{function:"function",number:O},selfReferenceSize:{number:O},selfReference:{size:{number:O},angle:{number:O},renderBehindTheNode:{boolean:D},__type__:{object:Z}},shadow:{enabled:{boolean:D},color:{string:_},size:{number:O},x:{number:O},y:{number:O},__type__:{object:Z,boolean:D}},smooth:{enabled:{boolean:D},type:{string:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"]},roundness:{number:O},forceDirection:{string:["horizontal","vertical","none"],boolean:D},__type__:{object:Z,boolean:D}},title:{string:_,undefined:"undefined"},width:{number:O},widthConstraint:{maximum:{number:O},__type__:{object:Z,boolean:D,number:O}},value:{number:O,undefined:"undefined"},__type__:{object:Z}},groups:{useDefaultGroups:{boolean:D},__any__:_c,__type__:{object:Z}},interaction:{dragNodes:{boolean:D},dragView:{boolean:D},hideEdgesOnDrag:{boolean:D},hideEdgesOnZoom:{boolean:D},hideNodesOnDrag:{boolean:D},hover:{boolean:D},keyboard:{enabled:{boolean:D},speed:{x:{number:O},y:{number:O},zoom:{number:O},__type__:{object:Z}},bindToWindow:{boolean:D},autoFocus:{boolean:D},__type__:{object:Z,boolean:D}},multiselect:{boolean:D},navigationButtons:{boolean:D},selectable:{boolean:D},selectConnectedEdges:{boolean:D},hoverConnectedEdges:{boolean:D},tooltipDelay:{number:O},zoomView:{boolean:D},zoomSpeed:{number:O},__type__:{object:Z}},layout:{randomSeed:{undefined:"undefined",number:O,string:_},improvedLayout:{boolean:D},clusterThreshold:{number:O},hierarchical:{enabled:{boolean:D},levelSeparation:{number:O},nodeSpacing:{number:O},treeSpacing:{number:O},blockShifting:{boolean:D},edgeMinimization:{boolean:D},parentCentralization:{boolean:D},direction:{string:["UD","DU","LR","RL"]},sortMethod:{string:["hubsize","directed"]},shakeTowards:{string:["leaves","roots"]},__type__:{object:Z,boolean:D}},__type__:{object:Z}},manipulation:{enabled:{boolean:D},initiallyActive:{boolean:D},addNode:{boolean:D,function:"function"},addEdge:{boolean:D,function:"function"},editNode:{function:"function"},editEdge:{editWithoutDrag:{function:"function"},__type__:{object:Z,boolean:D,function:"function"}},deleteNode:{boolean:D,function:"function"},deleteEdge:{boolean:D,function:"function"},controlNodeStyle:_c,__type__:{object:Z,boolean:D}},nodes:_c,physics:{enabled:{boolean:D},barnesHut:{theta:{number:O},gravitationalConstant:{number:O},centralGravity:{number:O},springLength:{number:O},springConstant:{number:O},damping:{number:O},avoidOverlap:{number:O},__type__:{object:Z}},forceAtlas2Based:{theta:{number:O},gravitationalConstant:{number:O},centralGravity:{number:O},springLength:{number:O},springConstant:{number:O},damping:{number:O},avoidOverlap:{number:O},__type__:{object:Z}},repulsion:{centralGravity:{number:O},springLength:{number:O},springConstant:{number:O},nodeDistance:{number:O},damping:{number:O},__type__:{object:Z}},hierarchicalRepulsion:{centralGravity:{number:O},springLength:{number:O},springConstant:{number:O},nodeDistance:{number:O},damping:{number:O},avoidOverlap:{number:O},__type__:{object:Z}},maxVelocity:{number:O},minVelocity:{number:O},solver:{string:["barnesHut","repulsion","hierarchicalRepulsion","forceAtlas2Based"]},stabilization:{enabled:{boolean:D},iterations:{number:O},updateInterval:{number:O},onlyDynamicEdges:{boolean:D},fit:{boolean:D},__type__:{object:Z,boolean:D}},timestep:{number:O},adaptiveTimestep:{boolean:D},wind:{x:{number:O},y:{number:O},__type__:{object:Z}},__type__:{object:Z,boolean:D}},autoResize:{boolean:D},clickToUse:{boolean:D},locale:{string:_},locales:{__any__:{any:p5},__type__:{object:Z}},height:{string:_},width:{string:_},__type__:{object:Z}},fR={nodes:{borderWidth:[1,0,10,1],borderWidthSelected:[2,0,10,1],color:{border:["color","#2B7CE9"],background:["color","#97C2FC"],highlight:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]},hover:{border:["color","#2B7CE9"],background:["color","#D2E5FF"]}},opacity:[0,0,1,.1],fixed:{x:!1,y:!1},font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[0,0,50,1],strokeColor:["color","#ffffff"]},hidden:!1,labelHighlightBold:!0,physics:!0,scaling:{min:[10,0,200,1],max:[30,0,200,1],label:{enabled:!1,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},shape:["ellipse","box","circle","database","diamond","dot","square","star","text","triangle","triangleDown","hexagon"],shapeProperties:{borderDashes:!1,borderRadius:[6,0,20,1],interpolation:!0,useImageSize:!1},size:[25,0,200,1]},edges:{arrows:{to:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},middle:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"},from:{enabled:!1,scaleFactor:[1,0,3,.05],type:"arrow"}},endPointOffset:{from:[0,-10,10,1],to:[0,-10,10,1]},arrowStrikethrough:!0,color:{color:["color","#848484"],highlight:["color","#848484"],hover:["color","#848484"],inherit:["from","to","both",!0,!1],opacity:[1,0,1,.05]},dashes:!1,font:{color:["color","#343434"],size:[14,0,100,1],face:["arial","verdana","tahoma"],background:["color","none"],strokeWidth:[2,0,50,1],strokeColor:["color","#ffffff"],align:["horizontal","top","middle","bottom"]},hidden:!1,hoverWidth:[1.5,0,5,.1],labelHighlightBold:!0,physics:!0,scaling:{min:[1,0,100,1],max:[15,0,100,1],label:{enabled:!0,min:[14,0,200,1],max:[30,0,200,1],maxVisible:[30,0,200,1],drawThreshold:[5,0,20,1]}},selectionWidth:[1.5,0,5,.1],selfReferenceSize:[20,0,200,1],selfReference:{size:[20,0,200,1],angle:[Math.PI/2,-6*Math.PI,6*Math.PI,Math.PI/8],renderBehindTheNode:!0},shadow:{enabled:!1,color:"rgba(0,0,0,0.5)",size:[10,0,20,1],x:[5,-30,30,1],y:[5,-30,30,1]},smooth:{enabled:!0,type:["dynamic","continuous","discrete","diagonalCross","straightCross","horizontal","vertical","curvedCW","curvedCCW","cubicBezier"],forceDirection:["horizontal","vertical","none"],roundness:[.5,0,1,.05]},width:[1,0,30,1]},layout:{hierarchical:{enabled:!1,levelSeparation:[150,20,500,5],nodeSpacing:[100,20,500,5],treeSpacing:[200,20,500,5],blockShifting:!0,edgeMinimization:!0,parentCentralization:!0,direction:["UD","DU","LR","RL"],sortMethod:["hubsize","directed"],shakeTowards:["leaves","roots"]}},interaction:{dragNodes:!0,dragView:!0,hideEdgesOnDrag:!1,hideEdgesOnZoom:!1,hideNodesOnDrag:!1,hover:!1,keyboard:{enabled:!1,speed:{x:[10,0,40,1],y:[10,0,40,1],zoom:[.02,0,.1,.005]},bindToWindow:!0,autoFocus:!0},multiselect:!1,navigationButtons:!1,selectable:!0,selectConnectedEdges:!0,hoverConnectedEdges:!0,tooltipDelay:[300,0,1e3,25],zoomView:!0,zoomSpeed:[1,.1,2,.1]},manipulation:{enabled:!1,initiallyActive:!1},physics:{enabled:!0,barnesHut:{theta:[.5,.1,1,.05],gravitationalConstant:[-2e3,-3e4,0,50],centralGravity:[.3,0,10,.05],springLength:[95,0,500,5],springConstant:[.04,0,1.2,.005],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},forceAtlas2Based:{theta:[.5,.1,1,.05],gravitationalConstant:[-50,-500,0,1],centralGravity:[.01,0,1,.005],springLength:[95,0,500,5],springConstant:[.08,0,1.2,.005],damping:[.4,0,1,.01],avoidOverlap:[0,0,1,.01]},repulsion:{centralGravity:[.2,0,10,.05],springLength:[200,0,500,5],springConstant:[.05,0,1.2,.005],nodeDistance:[100,0,500,5],damping:[.09,0,1,.01]},hierarchicalRepulsion:{centralGravity:[.2,0,10,.05],springLength:[100,0,500,5],springConstant:[.01,0,1.2,.005],nodeDistance:[120,0,500,5],damping:[.09,0,1,.01],avoidOverlap:[0,0,1,.01]},maxVelocity:[50,0,150,1],minVelocity:[.1,.01,.5,.01],solver:["barnesHut","forceAtlas2Based","repulsion","hierarchicalRepulsion"],timestep:[.5,.01,1,.01],wind:{x:[0,-10,10,.1],y:[0,-10,10,.1]}}},v5=(r,e,t)=>{var i;return!!(Ui(r).call(r,"physics")&&Ui(i=fR.physics.solver).call(i,e)&&t.physics.solver!==e&&e!=="wind")};var ju=class{constructor(){}getDistances(e,t,i){let n={},s=e.edges;for(let g=0;g<t.length;g++){let a=t[g],A={};n[a]=A;for(let C=0;C<t.length;C++)A[t[C]]=g==C?0:1e9}for(let g=0;g<i.length;g++){let a=s[i[g]];a.connected===!0&&n[a.fromId]!==void 0&&n[a.toId]!==void 0&&(n[a.fromId][a.toId]=1,n[a.toId][a.fromId]=1)}let o=t.length;for(let g=0;g<o;g++){let a=t[g],A=n[a];for(let C=0;C<o-1;C++){let I=t[C],l=n[I];for(let h=C+1;h<o;h++){let d=t[h],c=n[d],f=Math.min(l[d],l[a]+A[d]);l[d]=f,c[I]=f}}}return n}},Hu=class{constructor(e,t,i){this.body=e,this.springLength=t,this.springConstant=i,this.distanceSolver=new ju}setOptions(e){e&&(e.springLength&&(this.springLength=e.springLength),e.springConstant&&(this.springConstant=e.springConstant))}solve(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.distanceSolver.getDistances(this.body,e,t);this._createL_matrix(n),this._createK_matrix(n),this._createE_matrix();let s=.01,o=1,g=0,a=Math.max(1e3,Math.min(10*this.body.nodeIndices.length,6e3)),A=5,C=1e9,I=0,l=0,h=0,d=0,c=0;for(;C>s&&g<a;)for(g+=1,[I,C,l,h]=this._getHighestEnergyNode(i),d=C,c=0;d>o&&c<A;)c+=1,this._moveNode(I,l,h),[d,l,h]=this._getEnergy(I)}_getHighestEnergyNode(e){let t=this.body.nodeIndices,i=this.body.nodes,n=0,s=t[0],o=0,g=0;for(let a=0;a<t.length;a++){let A=t[a];if(i[A].predefinedPosition!==!0||i[A].isCluster===!0&&e===!0||i[A].options.fixed.x!==!0||i[A].options.fixed.y!==!0){let[C,I,l]=this._getEnergy(A);n<C&&(n=C,s=A,o=I,g=l)}}return[s,n,o,g]}_getEnergy(e){let[t,i]=this.E_sums[e];return[Math.sqrt(t**2+i**2),t,i]}_moveNode(e,t,i){let n=this.body.nodeIndices,s=this.body.nodes,o=0,g=0,a=0,A=s[e].x,C=s[e].y,I=this.K_matrix[e],l=this.L_matrix[e];for(let m=0;m<n.length;m++){let b=n[m];if(b!==e){let w=s[b].x,x=s[b].y,y=I[b],S=l[b],k=1/((A-w)**2+(C-x)**2)**1.5;o+=y*(1-S*(C-x)**2*k),g+=y*(S*(A-w)*(C-x)*k),a+=y*(1-S*(A-w)**2*k)}}let h=o,d=g,c=t,f=a,u=i,p=(c/h+u/d)/(d/h-f/d),v=-(d*p+c)/h;s[e].x+=v,s[e].y+=p,this._updateE_matrix(e)}_createL_matrix(e){let t=this.body.nodeIndices,i=this.springLength;this.L_matrix=[];for(let n=0;n<t.length;n++){this.L_matrix[t[n]]={};for(let s=0;s<t.length;s++)this.L_matrix[t[n]][t[s]]=i*e[t[n]][t[s]]}}_createK_matrix(e){let t=this.body.nodeIndices,i=this.springConstant;this.K_matrix=[];for(let n=0;n<t.length;n++){this.K_matrix[t[n]]={};for(let s=0;s<t.length;s++)this.K_matrix[t[n]][t[s]]=i*e[t[n]][t[s]]**-2}}_createE_matrix(){let e=this.body.nodeIndices,t=this.body.nodes;this.E_matrix={},this.E_sums={};for(let i=0;i<e.length;i++)this.E_matrix[e[i]]=[];for(let i=0;i<e.length;i++){let n=e[i],s=t[n].x,o=t[n].y,g=0,a=0;for(let A=i;A<e.length;A++){let C=e[A];if(C!==n){let I=t[C].x,l=t[C].y,h=1/Math.sqrt((s-I)**2+(o-l)**2);this.E_matrix[n][A]=[this.K_matrix[n][C]*(s-I-this.L_matrix[n][C]*(s-I)*h),this.K_matrix[n][C]*(o-l-this.L_matrix[n][C]*(o-l)*h)],this.E_matrix[C][i]=this.E_matrix[n][A],g+=this.E_matrix[n][A][0],a+=this.E_matrix[n][A][1]}}this.E_sums[n]=[g,a]}}_updateE_matrix(e){let t=this.body.nodeIndices,i=this.body.nodes,n=this.E_matrix[e],s=this.K_matrix[e],o=this.L_matrix[e],g=i[e].x,a=i[e].y,A=0,C=0;for(let I=0;I<t.length;I++){let l=t[I];if(l!==e){let h=n[I],d=h[0],c=h[1],f=i[l].x,u=i[l].y,p=1/Math.sqrt((g-f)**2+(a-u)**2),v=s[l]*(g-f-o[l]*(g-f)*p),m=s[l]*(a-u-o[l]*(a-u)*p);n[I]=[v,m],A+=v,C+=m;let b=this.E_sums[l];b[0]+=v-d,b[1]+=m-c}}this.E_sums[e]=[A,C]}};function W(r,e,t){var i,n,s,o;if(!(this instanceof W))throw new SyntaxError("Constructor must be called with the new operator");this.options={},this.defaultOptions={locale:"en",locales:cL,clickToUse:!1},Fe(this.options,this.defaultOptions),this.body={container:r,nodes:{},nodeIndices:[],edges:{},edgeIndices:[],emitter:{on:P(i=this.on).call(i,this),off:P(n=this.off).call(n,this),emit:P(s=this.emit).call(s,this),once:P(o=this.once).call(o,this)},eventListeners:{onTap:function(){},onTouch:function(){},onDoubleTap:function(){},onHold:function(){},onDragStart:function(){},onDrag:function(){},onDragEnd:function(){},onMouseWheel:function(){},onPinch:function(){},onMouseMove:function(){},onRelease:function(){},onContext:function(){}},data:{nodes:null,edges:null},functions:{createNode:function(){},createEdge:function(){},getPointer:function(){}},modules:{},view:{scale:1,translation:{x:0,y:0}},selectionBox:{show:!1,position:{start:{x:0,y:0},end:{x:0,y:0}}}},this.bindEventListeners(),this.images=new Hc(()=>this.body.emitter.emit("_requestRedraw")),this.groups=new Yc,this.canvas=new Mu(this.body),this.selectionHandler=new zu(this.body,this.canvas),this.interactionHandler=new Bu(this.body,this.canvas,this.selectionHandler),this.view=new Nu(this.body,this.canvas),this.renderer=new Pu(this.body,this.canvas),this.physics=new Ou(this.body),this.layoutEngine=new Gu(this.body),this.clustering=new Du(this.body),this.manipulation=new Zu(this.body,this.canvas,this.selectionHandler,this.interactionHandler),this.nodesHandler=new Cu(this.body,this.images,this.groups,this.layoutEngine),this.edgesHandler=new wu(this.body,this.images,this.groups),this.body.modules.kamadaKawai=new Hu(this.body,150,.05),this.body.modules.clustering=this.clustering,this.canvas._create(),this.setOptions(t),this.setData(e)}Zk(W.prototype);W.prototype.setOptions=function(r){if(r===null&&(r=void 0),r!==void 0){if(HF.validate(r,m5)===!0&&console.error("%cErrors have been found in the supplied options object.",ZO),Pr(["locale","locales","clickToUse"],this.options,r),r.locale!==void 0&&(r.locale=uL(r.locales||this.options.locales,r.locale)),r=this.layoutEngine.setOptions(r.layout,r),this.canvas.setOptions(r),this.groups.setOptions(r.groups),this.nodesHandler.setOptions(r.nodes),this.edgesHandler.setOptions(r.edges),this.physics.setOptions(r.physics),this.manipulation.setOptions(r.manipulation,r,this.options),this.interactionHandler.setOptions(r.interaction),this.renderer.setOptions(r.interaction),this.selectionHandler.setOptions(r.interaction),r.groups!==void 0&&this.body.emitter.emit("refreshNodes"),"configure"in r&&(this.configurator||(this.configurator=new ZF(this,this.body.container,fR,this.canvas.pixelRatio,v5)),this.configurator.setOptions(r.configure)),this.configurator&&this.configurator.options.enabled===!0){let i={nodes:{},edges:{},layout:{},interaction:{},manipulation:{},physics:{},global:{}};me(i.nodes,this.nodesHandler.options),me(i.edges,this.edgesHandler.options),me(i.layout,this.layoutEngine.options),me(i.interaction,this.selectionHandler.options),me(i.interaction,this.renderer.options),me(i.interaction,this.interactionHandler.options),me(i.manipulation,this.manipulation.options),me(i.physics,this.physics.options),me(i.global,this.canvas.options),me(i.global,this.options),this.configurator.setModuleOptions(i)}r.clickToUse!==void 0?r.clickToUse===!0?this.activator===void 0&&(this.activator=new GF(this.canvas.frame),this.activator.on("change",()=>{this.body.emitter.emit("activate")})):(this.activator!==void 0&&(this.activator.destroy(),delete this.activator),this.body.emitter.emit("activate")):this.body.emitter.emit("activate"),this.canvas.setSize(),this.body.emitter.emit("startSimulation")}};W.prototype._updateVisibleIndices=function(){let r=this.body.nodes,e=this.body.edges;this.body.nodeIndices=[],this.body.edgeIndices=[];for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&!this.clustering._isClusteredNode(t)&&r[t].options.hidden===!1&&this.body.nodeIndices.push(r[t].id);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let i=e[t],n=r[i.fromId],s=r[i.toId],o=n!==void 0&&s!==void 0;!this.clustering._isClusteredEdge(t)&&i.options.hidden===!1&&o&&n.options.hidden===!1&&s.options.hidden===!1&&this.body.edgeIndices.push(i.id)}};W.prototype.bindEventListeners=function(){this.body.emitter.on("_dataChanged",()=>{this.edgesHandler._updateState(),this.body.emitter.emit("_dataUpdated")}),this.body.emitter.on("_dataUpdated",()=>{this.clustering._updateState(),this._updateVisibleIndices(),this._updateValueRange(this.body.nodes),this._updateValueRange(this.body.edges),this.body.emitter.emit("startSimulation"),this.body.emitter.emit("_requestRedraw")})};W.prototype.setData=function(r){if(this.body.emitter.emit("resetPhysics"),this.body.emitter.emit("_resetData"),this.selectionHandler.unselectAll(),r&&r.dot&&(r.nodes||r.edges))throw new SyntaxError('Data must contain either parameter "dot" or parameter pair "nodes" and "edges", but not both.');if(this.setOptions(r&&r.options),r&&r.dot){console.warn("The dot property has been deprecated. Please use the static convertDot method to convert DOT into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertDot(dotString);");let e=iL(r.dot);this.setData(e);return}else if(r&&r.gephi){console.warn("The gephi property has been deprecated. Please use the static convertGephi method to convert gephi into vis.network format and use the normal data format with nodes and edges. This converter is used like this: var data = vis.network.convertGephi(gephiJson);");let e=nL(r.gephi);this.setData(e);return}else this.nodesHandler.setData(r&&r.nodes,!0),this.edgesHandler.setData(r&&r.edges,!0);this.body.emitter.emit("_dataChanged"),this.body.emitter.emit("_dataLoaded"),this.body.emitter.emit("initPhysics")};W.prototype.destroy=function(){this.body.emitter.emit("destroy"),this.body.emitter.off(),this.off(),delete this.groups,delete this.canvas,delete this.selectionHandler,delete this.interactionHandler,delete this.view,delete this.renderer,delete this.physics,delete this.layoutEngine,delete this.clustering,delete this.manipulation,delete this.nodesHandler,delete this.edgesHandler,delete this.configurator,delete this.images;for(let r in this.body.nodes)Object.prototype.hasOwnProperty.call(this.body.nodes,r)&&delete this.body.nodes[r];for(let r in this.body.edges)Object.prototype.hasOwnProperty.call(this.body.edges,r)&&delete this.body.edges[r];Hi(this.body.container)};W.prototype._updateValueRange=function(r){let e,t,i,n=0;for(e in r)if(Object.prototype.hasOwnProperty.call(r,e)){let s=r[e].getValue();s!==void 0&&(t=t===void 0?s:Math.min(s,t),i=i===void 0?s:Math.max(s,i),n+=s)}if(t!==void 0&&i!==void 0)for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&r[e].setValueRange(t,i,n)};W.prototype.isActive=function(){return!this.activator||this.activator.active};W.prototype.setSize=function(){return this.canvas.setSize.apply(this.canvas,arguments)};W.prototype.canvasToDOM=function(){return this.canvas.canvasToDOM.apply(this.canvas,arguments)};W.prototype.DOMtoCanvas=function(){return this.canvas.DOMtoCanvas.apply(this.canvas,arguments)};W.prototype.findNode=function(){return this.clustering.findNode.apply(this.clustering,arguments)};W.prototype.isCluster=function(){return this.clustering.isCluster.apply(this.clustering,arguments)};W.prototype.openCluster=function(){return this.clustering.openCluster.apply(this.clustering,arguments)};W.prototype.cluster=function(){return this.clustering.cluster.apply(this.clustering,arguments)};W.prototype.getNodesInCluster=function(){return this.clustering.getNodesInCluster.apply(this.clustering,arguments)};W.prototype.clusterByConnection=function(){return this.clustering.clusterByConnection.apply(this.clustering,arguments)};W.prototype.clusterByHubsize=function(){return this.clustering.clusterByHubsize.apply(this.clustering,arguments)};W.prototype.updateClusteredNode=function(){return this.clustering.updateClusteredNode.apply(this.clustering,arguments)};W.prototype.getClusteredEdges=function(){return this.clustering.getClusteredEdges.apply(this.clustering,arguments)};W.prototype.getBaseEdge=function(){return this.clustering.getBaseEdge.apply(this.clustering,arguments)};W.prototype.getBaseEdges=function(){return this.clustering.getBaseEdges.apply(this.clustering,arguments)};W.prototype.updateEdge=function(){return this.clustering.updateEdge.apply(this.clustering,arguments)};W.prototype.clusterOutliers=function(){return this.clustering.clusterOutliers.apply(this.clustering,arguments)};W.prototype.getSeed=function(){return this.layoutEngine.getSeed.apply(this.layoutEngine,arguments)};W.prototype.enableEditMode=function(){return this.manipulation.enableEditMode.apply(this.manipulation,arguments)};W.prototype.disableEditMode=function(){return this.manipulation.disableEditMode.apply(this.manipulation,arguments)};W.prototype.addNodeMode=function(){return this.manipulation.addNodeMode.apply(this.manipulation,arguments)};W.prototype.editNode=function(){return this.manipulation.editNode.apply(this.manipulation,arguments)};W.prototype.editNodeMode=function(){return console.warn("Deprecated: Please use editNode instead of editNodeMode."),this.manipulation.editNode.apply(this.manipulation,arguments)};W.prototype.addEdgeMode=function(){return this.manipulation.addEdgeMode.apply(this.manipulation,arguments)};W.prototype.editEdgeMode=function(){return this.manipulation.editEdgeMode.apply(this.manipulation,arguments)};W.prototype.deleteSelected=function(){return this.manipulation.deleteSelected.apply(this.manipulation,arguments)};W.prototype.getPositions=function(){return this.nodesHandler.getPositions.apply(this.nodesHandler,arguments)};W.prototype.getPosition=function(){return this.nodesHandler.getPosition.apply(this.nodesHandler,arguments)};W.prototype.storePositions=function(){return this.nodesHandler.storePositions.apply(this.nodesHandler,arguments)};W.prototype.moveNode=function(){return this.nodesHandler.moveNode.apply(this.nodesHandler,arguments)};W.prototype.getBoundingBox=function(){return this.nodesHandler.getBoundingBox.apply(this.nodesHandler,arguments)};W.prototype.getConnectedNodes=function(r){return this.body.nodes[r]!==void 0?this.nodesHandler.getConnectedNodes.apply(this.nodesHandler,arguments):this.edgesHandler.getConnectedNodes.apply(this.edgesHandler,arguments)};W.prototype.getConnectedEdges=function(){return this.nodesHandler.getConnectedEdges.apply(this.nodesHandler,arguments)};W.prototype.startSimulation=function(){return this.physics.startSimulation.apply(this.physics,arguments)};W.prototype.stopSimulation=function(){return this.physics.stopSimulation.apply(this.physics,arguments)};W.prototype.stabilize=function(){return this.physics.stabilize.apply(this.physics,arguments)};W.prototype.getSelection=function(){return this.selectionHandler.getSelection.apply(this.selectionHandler,arguments)};W.prototype.setSelection=function(){return this.selectionHandler.setSelection.apply(this.selectionHandler,arguments)};W.prototype.getSelectedNodes=function(){return this.selectionHandler.getSelectedNodeIds.apply(this.selectionHandler,arguments)};W.prototype.getSelectedEdges=function(){return this.selectionHandler.getSelectedEdgeIds.apply(this.selectionHandler,arguments)};W.prototype.getNodeAt=function(){let r=this.selectionHandler.getNodeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};W.prototype.getEdgeAt=function(){let r=this.selectionHandler.getEdgeAt.apply(this.selectionHandler,arguments);return r!==void 0&&r.id!==void 0?r.id:r};W.prototype.selectNodes=function(){return this.selectionHandler.selectNodes.apply(this.selectionHandler,arguments)};W.prototype.selectEdges=function(){return this.selectionHandler.selectEdges.apply(this.selectionHandler,arguments)};W.prototype.unselectAll=function(){this.selectionHandler.unselectAll.apply(this.selectionHandler,arguments),this.selectionHandler.commitWithoutEmitting.apply(this.selectionHandler),this.redraw()};W.prototype.redraw=function(){return this.renderer.redraw.apply(this.renderer,arguments)};W.prototype.getScale=function(){return this.view.getScale.apply(this.view,arguments)};W.prototype.getViewPosition=function(){return this.view.getViewPosition.apply(this.view,arguments)};W.prototype.fit=function(){return this.view.fit.apply(this.view,arguments)};W.prototype.moveTo=function(){return this.view.moveTo.apply(this.view,arguments)};W.prototype.focus=function(){return this.view.focus.apply(this.view,arguments)};W.prototype.releaseNode=function(){return this.view.releaseNode.apply(this.view,arguments)};W.prototype.getOptionsFromConfigurator=function(){let r={};return this.configurator&&(r=this.configurator.getOptions.apply(this.configurator)),r};function pR(r){let e=JSON.parse(r);e.states=new Map(Object.entries(e.states)),e.alphabet&&(e.alphabet=new Map(Object.entries(e.alphabet))),e.final_states&&(e.final_states=new Map(Object.entries(e.final_states)));let t=e.transitions;e.transitions=new Map;for(let[i,n]of t)e.transitions.set(i,n);switch(e.edges=new Map,e.transitions_components=new Map,e.type){case"fa":for(let[i,n]of e.transitions)for(let s of n){let o=e.transitions_components;o.has(i.state)||o.set(i.state,new Map);let g=e.transitions_components.get(i.state);g.has(i.letter)||g.set(i.letter,[]),g.get(i.letter).push(s);let A=i.state+"#"+s.state;e.edges.has(A)||e.edges.set(A,[]),e.edges.get(A)?.push({repr:i.letter?i.letter:"\u03B5",function:s.function,transition:s.transition})}break;case"pda":{e.symbols=new Map(Object.entries(e.symbols));for(let[i,n]of e.transitions)for(let s of n){let o=e.transitions_components;o.has(i.state)||o.set(i.state,new Map);let g=e.transitions_components.get(i.state);g.has(i.symbol)||g.set(i.symbol,new Map);let a=g.get(i.symbol);a.has(i.letter)||a.set(i.letter,[]),a.get(i.letter).push(s);let C=i.state+"#"+s.state;e.edges.has(C)||e.edges.set(C,[]),e.edges.get(C)?.push({repr:(i.letter?i.letter:"\u03B5")+","+i.symbol+"->["+s.stack+"]",function:s.function,transition:s.transition})}}break;case"tm":{e.symbols=new Map(Object.entries(e.symbols));for(let[i,n]of e.transitions)for(let s of n){let o=e.transitions_components;o.has(i.state)||o.set(i.state,new Map);let g=e.transitions_components.get(i.state);g.has(i.symbol)||g.set(i.symbol,[]),g.get(i.symbol).push(s);let A=i.state+"#"+s.state;e.edges.has(A)||e.edges.set(A,[]),e.edges.get(A)?.push({repr:i.symbol+"->"+s.symbol+","+s.direction,function:s.function,transition:s.transition})}}break}return e}var Ys=class{machine;input;paths=[];current_states=new Map;accepted=[];rejected=[];constructor(e,t){this.machine=e,this.input=t,this.initial()}accept(e){let t=e.position??0,i=e.state;return t===this.input.length&&this.machine.final_states.has(i)}init_state(e){e.position??=0,e.accepted=this.accept(e),e.repr=e.state+" >"+this.input.substring(e.position);let t=e;t.accepted&&this.accepted.push(t),this.paths.push(t),this.current_states.has(t.state)||this.current_states.set(t.state,[]),this.current_states.get(t.state).push(t)}initial(){let e={state:this.machine.initial_state,position:0,path:[]};this.init_state(e)}transition(e,t,i){let n={state:t.state,position:e.position+(i?1:0),path:e.path.concat([t])};this.init_state(n)}step(){if(this.accepted.length!==0)return"accept";if(this.paths.length===0)return"reject";let e=this.paths;this.paths=[],this.current_states.clear();for(let t of e){let i=this.machine.transitions_components.get(t.state);if(!i){this.rejected.push(t);continue}let n=i.get(null)??[];for(let g of n)this.transition(t,g,!1);if(t.position>=this.input.length){n.length===0&&this.rejected.push(t);continue}let s=this.input.charAt(t.position),o=i.get(s)??[];for(let g of o)this.transition(t,g,!0);n.length===0&&o.length===0&&this.rejected.push(t)}return this.accepted.length!==0?"accept":this.paths.length===0?"reject":"pending"}};var Ks=class{machine;input;paths=[];current_states=new Map;accepted=[];rejected=[];constructor(e,t){this.machine=e,this.input=t,this.initial()}accept(e){let t=e.position??0,i=e.state,n=e.stack??[];return!!(t===this.input.length&&this.machine.final_states&&this.machine.final_states.has(i)||t===this.input.length&&!this.machine.final_states&&n.length===1&&n[0]===this.machine.initial_stack)}init_state(e){e.stack??=[this.machine.initial_stack],e.position??=0,e.accepted=this.accept(e),e.repr=e.state+" ["+e.stack.join(",")+"] >"+this.input.substring(e.position);let t=e;t.accepted&&this.accepted.push(t),this.paths.push(t),this.current_states.has(t.state)||this.current_states.set(t.state,[]),this.current_states.get(t.state).push(t)}initial(){let e={state:this.machine.initial_state,stack:[this.machine.initial_stack],position:0,path:[]};this.init_state(e)}transition(e,t,i){let s=e.stack.slice(0,e.stack.length-1).concat(t.stack);if(s.length==0){this.rejected.push(e);return}let o={state:t.state,stack:s,position:e.position+(i?1:0),path:e.path.concat([t])};this.init_state(o)}step(){if(this.accepted.length!==0)return"accept";if(this.paths.length===0)return"reject";let e=this.paths;this.paths=[],this.current_states.clear();for(let t of e){let i=t.stack[t.stack.length-1],n=this.machine.transitions_components.get(t.state)?.get(i);if(!n){this.rejected.push(t);continue}let s=n.get(null)??[];for(let a of s)this.transition(t,a,!1);if(t.position>=this.input.length){s.length==0&&this.rejected.push(t);continue}let o=this.input.charAt(t.position),g=n.get(o)??[];for(let a of g)this.transition(t,a,!0);s.length==0&&g.length==0&&this.rejected.push(t)}return this.accepted.length!==0?"accept":this.paths.length===0?"reject":"pending"}};var Us=class{machine;paths=[];input;current_states=new Map;accepted=[];rejected=[];constructor(e,t){this.machine=e,this.input=t,this.initial()}init_state(e){e.repr=e.state+" [ "+this.machine.blank_symbol+" "+e.tape.map((i,n,s)=>n==e.head?`[${i}]`:i).join(" ")+" "+this.machine.blank_symbol+" ]";let t=e;t.accepted&&this.accepted.push(t),this.paths.push(t),this.current_states.has(t.state)||this.current_states.set(t.state,[]),this.current_states.get(t.state).push(t)}initial(){let e={state:this.machine.initial_state,accepted:this.machine.final_states.has(this.machine.initial_state),tape:this.input.split(""),head:0,path:[]};e.tape.length==0&&e.tape.push(this.machine.blank_symbol),this.init_state(e)}transition(e,t){let i={state:t.state,accepted:this.machine.final_states.has(t.state),path:e.path.concat([t])};switch(t.direction){case"_":i.tape=e.tape.slice(),i.tape[e.head]=t.symbol,i.head=e.head;break;case"<":e.head==0?(i.tape=e.tape.splice(0,0,t.symbol),i.head=0):(i.tape=e.tape.slice(),i.tape[e.head]=t.symbol,i.head=e.head-1);break;case">":i.head=e.head+1,i.tape=e.tape.slice(),i.tape[e.head]=t.symbol,i.head==e.tape.length&&i.tape.push(this.machine.blank_symbol);break}this.init_state(i)}step(){if(this.accepted.length!=0)return"accept";if(this.paths.length==0)return"reject";let e=this.paths;this.paths=[],this.current_states.clear();for(let t of e){let i=t.tape[t.head],n=this.machine.transitions_components.get(t.state)?.get(i)??[];if(n.length==0){this.rejected.push(t);continue}for(let s of n)this.transition(t,s)}return this.accepted.length!=0?"accept":this.paths.length==0?"reject":"pending"}};var yt=null,Ct={type:"fa",alphabet:new Map,final_states:new Map,initial_state:"",states:new Map,transitions:new Map,transitions_components:new Map,edges:new Map};z.on("compiled",({machine:r})=>{if(r)try{z.emit("controls/sim/clear",void 0),Ct=pR(r),z.emit("automata/update",Ct)}catch(e){console.log(e)}});z.on("controls/sim/clear",r=>{yt=null,z.emit("automata/sim/update",null)});z.on("controls/sim/step",r=>{yt&&(z.emit("automata/sim/before_step",{simulation:yt}),z.emit("automata/sim/after_step",{result:yt.step(),simulation:yt}))});var Ef=document.getElementById("machineInput");Ef.addEventListener("input",()=>z.emit("controls/sim/clear",void 0));Ef.addEventListener("keydown",r=>{r.key==="Enter"&&z.emit("controls/sim/reload",void 0)});z.on("controls/sim/reload",r=>{let e=Ef.value;switch(Ct.type){case"fa":yt=new Ys(Ct,e);break;case"pda":yt=new Ks(Ct,e);break;case"tm":yt=new Us(Ct,e);break}z.emit("automata/sim/update",yt)});var wi=document.getElementById("simulationStatus");z.on("automata/sim/update",r=>{r?(wi.innerText="Pending",wi.style.color="var(--warning)"):(wi.innerText="N/A",wi.style.color="var(--fg-2)")});z.on("automata/sim/after_step",({result:r})=>{r==="pending"?(wi.innerText="Pending",wi.style.color="var(--warning)"):r==="accept"?(wi.innerText="Accepted",wi.style.color="var(--success)"):r==="reject"&&(wi.innerText="Rejected",wi.style.color="var(--error)")});var xi=new Map;function mR(r){return`${r.span[0]}:${r.span[1]}:${r.kind}`}function Tf(r){let e=Ct.states.get(r);e&&z.emit("highlight/one/add",{kind:"success",span:e.definition})}function kf(r){let e=Ct.states.get(r);e&&z.emit("highlight/one/remove",{kind:"success",span:e.definition})}function Of(r){for(let e of Ct.edges.get(r))z.emit("highlight/one/add",{kind:"focus",span:e.function}),z.emit("highlight/one/add",{kind:"warning",span:e.transition})}function Rf(r){for(let e of Ct.edges.get(r))z.emit("highlight/one/remove",{kind:"focus",span:e.function}),z.emit("highlight/one/remove",{kind:"warning",span:e.transition})}z.on("automata/update",r=>{z.emit("highlight/all/remove",void 0)});z.on("highlight/one/add",r=>{let e=mR(r);xi.has(e)?xi.get(e).count+=1:(xi.set(e,{count:1,...r}),z.emit("highlight/update",void 0))});z.on("highlight/one/remove",r=>{let e=mR(r);if(xi.has(e)){let t=xi.get(e);t.count-=1,t.count===0&&(xi.delete(e),z.emit("highlight/update",void 0))}});z.on("highlight/all/remove",r=>{xi.size!==0&&(xi.clear(),z.emit("highlight/update",void 0))});z.on("controls/vis/physics",({enabled:r})=>{on.setOptions({physics:{enabled:r}}),on.setOptions({edges:{smooth:r}})});z.on("controls/vis/reset_network",r=>{try{_t.forEach(e=>{e.physics=!0,e.x=void 0,e.y=void 0}),on.setData({nodes:_t,edges:sn})}catch{on.setData({nodes:_t,edges:sn})}});z.on("automata/sim/after_step",r=>{on.redraw()});z.on("automata/sim/update",r=>{on.redraw()});z.on("automata/update",r=>{for(let e of r.states.keys()){let t=w5(e,Bg().node_font)/2+10;_t.get(e)?_t.update({id:e,label:e,size:t}):_t.add({id:e,label:e,size:t})}for(let[e,t]of r.edges){let i=e.split("#"),n=-Bg().edge_font_size*Math.floor(t.length/2),s={vadjust:n,bold:{vadjust:n}};sn.get(e)?sn.update({id:e,font:s,from:i[0],to:i[1],label:t.map(o=>o.repr).join(r.type=="fa"?",":`
`)}):sn.add({id:e,font:s,from:i[0],to:i[1],label:t.map(o=>o.repr).join(r.type=="fa"?",":`
`)})}for(let e of sn.getIds())r.edges.has(e)||sn.remove(e);for(let e of _t.getIds())r.states.has(e)||_t.remove(e)});var _t=new fi,sn=new fi,Xs=null;z.on("theme/update",r=>{Xs=null,y5()});function Bg(){function r(e,t=""){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()||t}return Xs||(Xs={bg_0:r("--graph-bg-0"),bg_1:r("--graph-bg-1"),bg_2:r("--graph-bg-2"),fg_0:r("--graph-fg-0"),fg_1:r("--graph-fg-1"),fg_2:r("--graph-fg-2"),node_anchor:r("--graph-node-anchor"),node_border:r("--graph-node-border"),current_node_border:r("--graph-current-node-border"),edge:r("--graph-edge"),edge_hover:r("--graph-edge-hover"),edge_active:r("--graph-edge-active"),font_face:r("--graph-font"),node_font_size:Number(r("--graph-node-font-size")),node_font:`${r("--graph-node-font-size")}px ${r("--graph-font")}`,node_font_bold:`bold ${r("--graph-node-font-size")}px ${r("--graph-font")}`,edge_font_size:Number(r("--graph-edge-font-size")),edge_font:`${Number(r("--graph-edge-font-size"))}px ${r("--graph-font")}`,edge_font_bold:`bold ${Number(r("--graph-edge-font-size"))}px ${r("--graph-font")}`},Xs)}function y5(){let r=Bg();on.setOptions({nodes:{labelHighlightBold:!1,font:{color:r.fg_0,bold:{color:r.fg_1}}},edges:{labelHighlightBold:!0,font:{align:"top",face:r.font_face,size:r.edge_font_size,color:r.fg_0,strokeColor:r.bg_0,bold:{color:r.fg_1,face:r.font_face,size:r.edge_font_size,mod:"bold"}},color:{color:r.edge,hover:r.edge_hover,highlight:r.edge_active},shadow:{enabled:!1}}}),on.redraw()}var Df=null;function w5(r,e){Df||(Df=document.createElement("canvas"));let t=Df.getContext("2d");return t.font=e,t.measureText(r).width}var on=x5();function x5(){let r=document.getElementById("graph"),e=new W(r,{nodes:_t,edges:sn},{layout:{improvedLayout:!0},physics:{enabled:!0,solver:"forceAtlas2Based"},interaction:{dragNodes:!0,hover:!0,multiselect:!0,hoverConnectedEdges:!1,selectConnectedEdges:!1},nodes:{shape:"custom",size:18,ctxRenderer:S5},edges:{arrowStrikethrough:!1,arrows:"to"}});return fi,e.on("doubleClick",t=>{for(let i of t.nodes){let n=_t.get(i);n.physics=!n.physics,_t.update(n)}}),e.on("hoverEdge",({edge:t})=>{Of(t)}),e.on("blurEdge",({edge:t})=>{Rf(t)}),e.on("hoverNode",({node:t})=>{Tf(t)}),e.on("blurNode",({node:t})=>{kf(t)}),e.on("selectEdge",t=>{let i=e.getEdgeAt(t.pointer.DOM);i&&Of(i)}),e.on("deselectEdge",t=>{console.log(t);for(let i of t.previousSelection.edges)console.log(i),Rf(i.id)}),e.on("selectNode",t=>{let i=e.getNodeAt(t.pointer.DOM);i&&Tf(i)}),e.on("deselectNode",t=>{console.log(t);for(let i of t.previousSelection.nodes)console.log(i),kf(i.id)}),e}function S5({ctx:r,id:e,x:t,y:i,state:{selected:n,hover:s},style:o,label:g}){return{drawNode(){let a=Bg(),A=Math.max(14,o?.size??18),C=Ct.initial_state===e,I=Ct.final_states?Ct.final_states.has(e):!1,l=yt?yt.current_states.has(e):!1,h=n?a.bg_2:s?a.bg_1:a.bg_0,d=l?a.current_node_border:a.node_border,c=(n?1:0)+(s?.6:0),f=I?3.5:3,u=2;if(r.save(),r.font=s||n?a.node_font_bold:a.node_font,r.textAlign="center",r.textBaseline="middle",r.lineWidth=f+c,r.strokeStyle=d,r.fillStyle=h,r.beginPath(),r.arc(t,i,A-r.lineWidth*.5,0,Math.PI*2),r.stroke(),r.fill(),I&&(r.lineWidth=u,r.strokeStyle=d,r.beginPath(),r.arc(t,i,A-7,0,Math.PI*2),r.stroke()),r.lineWidth=2,r.fillStyle=a.fg_0,r.strokeStyle=a.bg_0,r.strokeText(g,t,i),r.fillText(g,t,i),C&&E5(r,t,i,A,a.edge),l){let m=yt?.current_states.get(e),b=8,w=6,x=14,y=0;for(let T of m)y=Math.max(y,r.measureText(T.repr).width);let S=y+b*2,k=m.length*x+w*2,R=t-S/2,E=i-A-12-k;r.fillStyle=a.bg_1,r.strokeStyle=a.bg_2,r.lineWidth=1,k5(r,R,E,S,k,8),r.fill(),r.stroke(),r.textBaseline="top";for(let T=0;T<m.length;T++)r.fillStyle=m[T].accepted?a.current_node_border:a.fg_0,r.fillText(m[T].repr,t,E+w+T*x)}_t.get(e).physics===!1&&T5(r,t,i,A,a.node_anchor),r.restore()}}}function E5(r,e,t,i,n){let s=Math.max(14,i*.95),o=Math.max(7,i*.32),g=Math.max(2,i*.12),a=4,A=Math.SQRT1_2,C=Math.SQRT1_2,I=e-A*(i+a),l=t-C*(i+a),h=I-A*s,d=l-C*s,c=-C,f=A;r.save(),r.lineCap="round",r.lineJoin="round",r.lineWidth=g,r.strokeStyle=n,r.fillStyle=n,r.beginPath(),r.moveTo(h,d),r.lineTo(I-A*o*.6,l-C*o*.6),r.stroke(),r.beginPath(),r.moveTo(I,l),r.lineTo(I-A*o+c*o*.7,l-C*o+f*o*.7),r.lineTo(I-A*o-c*o*.7,l-C*o-f*o*.7),r.closePath(),r.fill(),r.restore()}function T5(r,e,t,i,n){let s=Math.max(7,Math.round(i*.28)),o=e+i-s*.55,g=t+i-s*.55,a=n,A="rgba(0,0,0,0)";r.save(),r.shadowColor="rgba(0,0,0,0)",r.shadowBlur=6,r.shadowOffsetX=0,r.shadowOffsetY=2,r.beginPath(),r.arc(o,g,s*.55,0,Math.PI*2),r.fillStyle=A,r.fill(),r.beginPath(),r.moveTo(o,g+s*.25),r.lineTo(o-s*.35,g+s*.95),r.lineTo(o+s*.35,g+s*.95),r.closePath(),r.fillStyle=A,r.fill(),r.shadowBlur=0,r.lineWidth=Math.max(1.25,Math.round(i*.06)),r.strokeStyle=a,r.beginPath(),r.arc(o,g,s*.55,0,Math.PI*2),r.stroke(),r.beginPath(),r.moveTo(o,g+s*.25),r.lineTo(o-s*.35,g+s*.95),r.lineTo(o+s*.35,g+s*.95),r.closePath(),r.stroke(),r.beginPath(),r.arc(o,g,s*.18,0,Math.PI*2),r.fillStyle=a,r.fill(),r.restore()}function k5(r,e,t,i,n,s){let o=Math.min(s,i/2,n/2);r.beginPath(),r.moveTo(e+o,t),r.arcTo(e+i,t,e+i,t+n,o),r.arcTo(e+i,t+n,e,t+n,o),r.arcTo(e,t+n,e,t,o),r.arcTo(e,t,e+i,t,o),r.closePath()}var Mf=[],wR=[];(()=>{let r="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(e=>e?parseInt(e,36):1);for(let e=0,t=0;e<r.length;e++)(e%2?wR:Mf).push(t=t+r[e])})();function O5(r){if(r<768)return!1;for(let e=0,t=Mf.length;;){let i=e+t>>1;if(r<Mf[i])t=i;else if(r>=wR[i])e=i+1;else return!0;if(e==t)return!1}}function vR(r){return r>=127462&&r<=127487}var bR=8205;function xR(r,e,t=!0,i=!0){return(t?SR:R5)(r,e,i)}function SR(r,e,t){if(e==r.length)return e;e&&ER(r.charCodeAt(e))&&TR(r.charCodeAt(e-1))&&e--;let i=Pf(r,e);for(e+=yR(i);e<r.length;){let n=Pf(r,e);if(i==bR||n==bR||t&&O5(n))e+=yR(n),i=n;else if(vR(n)){let s=0,o=e-2;for(;o>=0&&vR(Pf(r,o));)s++,o-=2;if(s%2==0)break;e+=2}else break}return e}function R5(r,e,t){for(;e>0;){let i=SR(r,e-2,t);if(i<e)return i;e--}return 0}function Pf(r,e){let t=r.charCodeAt(e);if(!TR(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return ER(i)?(t-55296<<10)+(i-56320)+65536:t}function ER(r){return r>=56320&&r<57344}function TR(r){return r>=55296&&r<56320}function yR(r){return r<65536?1:2}var re=class r{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){[e,t]=Fr(this,e,t);let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),Nr.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){[e,t]=Fr(this,e,t);let i=[];return this.decompose(e,t,i,0),Nr.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Wn(this),s=new Wn(e);for(let o=t,g=t;;){if(n.next(o),s.next(o),o=0,n.lineBreak!=s.lineBreak||n.done!=s.done||n.value!=s.value)return!1;if(g+=n.value.length,n.done||g>=i)return!0}}iter(e=1){return new Wn(this,e)}iterRange(e,t=this.length){return new Vg(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Wg(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?r.empty:e.length<=32?new wt(e):Nr.from(wt.split(e,[]))}},wt=class r extends re{constructor(e,t=D5(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let s=0;;s++){let o=this.text[s],g=n+o.length;if((t?i:g)>=e)return new _f(n,g,i,o);n=g+1,i++}}decompose(e,t,i,n){let s=e<=0&&t>=this.length?this:new r(kR(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),g=qg(s.text,o.text.slice(),0,s.length);if(g.length<=32)i.push(new r(g,o.length+s.length));else{let a=g.length>>1;i.push(new r(g.slice(0,a)),new r(g.slice(a)))}}else i.push(s)}replace(e,t,i){if(!(i instanceof r))return super.replace(e,t,i);[e,t]=Fr(this,e,t);let n=qg(this.text,qg(i.text,kR(this.text,0,e)),t),s=this.length+i.length-(t-e);return n.length<=32?new r(n,s):Nr.from(r.split(n,[]),s)}sliceString(e,t=this.length,i=`
`){[e,t]=Fr(this,e,t);let n="";for(let s=0,o=0;s<=t&&o<this.text.length;o++){let g=this.text[o],a=s+g.length;s>e&&o&&(n+=i),e<a&&t>s&&(n+=g.slice(Math.max(0,e-s),t-s)),s=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let s of e)i.push(s),n+=s.length+1,i.length==32&&(t.push(new r(i,n)),i=[],n=-1);return n>-1&&t.push(new r(i,n)),t}},Nr=class r extends re{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let s=0;;s++){let o=this.children[s],g=n+o.length,a=i+o.lines-1;if((t?a:g)>=e)return o.lineInner(e,t,i,n);n=g+1,i=a+1}}decompose(e,t,i,n){for(let s=0,o=0;o<=t&&s<this.children.length;s++){let g=this.children[s],a=o+g.length;if(e<=a&&t>=o){let A=n&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!A?i.push(g):g.decompose(e-o,t-o,i,A)}o=a+1}}replace(e,t,i){if([e,t]=Fr(this,e,t),i.lines<this.lines)for(let n=0,s=0;n<this.children.length;n++){let o=this.children[n],g=s+o.length;if(e>=s&&t<=g){let a=o.replace(e-s,t-s,i),A=this.lines-o.lines+a.lines;if(a.lines<A>>4&&a.lines>A>>6){let C=this.children.slice();return C[n]=a,new r(C,this.length-(t-e)+i.length)}return super.replace(s,g,a)}s=g+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=`
`){[e,t]=Fr(this,e,t);let n="";for(let s=0,o=0;s<this.children.length&&o<=t;s++){let g=this.children[s],a=o+g.length;o>e&&s&&(n+=i),e<a&&t>o&&(n+=g.sliceString(e-o,t-o,i)),o=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof r))return 0;let i=0,[n,s,o,g]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,s+=t){if(n==o||s==g)return i;let a=this.children[n],A=e.children[s];if(a!=A)return i+a.scanIdentical(A,t);i+=a.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let h of e)i+=h.lines;if(i<32){let h=[];for(let d of e)d.flatten(h);return new wt(h,t)}let n=Math.max(32,i>>5),s=n<<1,o=n>>1,g=[],a=0,A=-1,C=[];function I(h){let d;if(h.lines>s&&h instanceof r)for(let c of h.children)I(c);else h.lines>o&&(a>o||!a)?(l(),g.push(h)):h instanceof wt&&a&&(d=C[C.length-1])instanceof wt&&h.lines+d.lines<=32?(a+=h.lines,A+=h.length+1,C[C.length-1]=new wt(d.text.concat(h.text),d.length+1+h.length)):(a+h.lines>n&&l(),a+=h.lines,A+=h.length+1,C.push(h))}function l(){a!=0&&(g.push(C.length==1?C[0]:r.from(C,A)),A=-1,a=C.length=0)}for(let h of e)I(h);return l(),g.length==1?g[0]:new r(g,t)}};re.empty=new wt([""],0);function D5(r){let e=-1;for(let t of r)e+=t.length+1;return e}function qg(r,e,t=0,i=1e9){for(let n=0,s=0,o=!0;s<r.length&&n<=i;s++){let g=r[s],a=n+g.length;a>=t&&(a>i&&(g=g.slice(0,i-n)),n<t&&(g=g.slice(t-n)),o?(e[e.length-1]+=g,o=!1):e.push(g)),n=a+1}return e}function kR(r,e,t){return qg(r,[""],e,t)}var Wn=class{constructor(e,t=1){this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof wt?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],s=this.offsets[i],o=s>>1,g=n instanceof wt?n.text.length:n.children.length;if(o==(t>0?g:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((s&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=`
`,this;e--}else if(n instanceof wt){let a=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof wt?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}},Vg=class{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Wn(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}},Wg=class{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t&&this.afterBreak?(this.value="",this.afterBreak=!1):t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}};typeof Symbol<"u"&&(re.prototype[Symbol.iterator]=function(){return this.iter()},Wn.prototype[Symbol.iterator]=Vg.prototype[Symbol.iterator]=Wg.prototype[Symbol.iterator]=function(){return this});var _f=class{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}};function Fr(r,e,t){return e=Math.max(0,Math.min(r.length,e)),[e,Math.max(e,Math.min(r.length,t))]}function Ye(r,e,t=!0,i=!0){return xR(r,e,t,i)}function P5(r){return r>=56320&&r<57344}function M5(r){return r>=55296&&r<56320}function Lr(r,e){let t=r.charCodeAt(e);if(!M5(t)||e+1==r.length)return t;let i=r.charCodeAt(e+1);return P5(i)?(t-55296<<10)+(i-56320)+65536:t}function MR(r){return r<=65535?String.fromCharCode(r):(r-=65536,String.fromCharCode((r>>10)+55296,(r&1023)+56320))}function io(r){return r<65536?1:2}var Bf=/\r\n?|\n/,it=function(r){return r[r.Simple=0]="Simple",r[r.TrackDel=1]="TrackDel",r[r.TrackBefore=2]="TrackBefore",r[r.TrackAfter=3]="TrackAfter",r}(it||(it={})),Vi=class r{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t<this.sections.length;t+=2)e+=this.sections[t];return e}get newLength(){let e=0;for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t+1];e+=i<0?this.sections[t]:i}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let t=0,i=0,n=0;t<this.sections.length;){let s=this.sections[t++],o=this.sections[t++];o<0?(e(i,n,s),n+=s):n+=o,i+=s}}iterChangedRanges(e,t=!1){Ff(this,e,t)}get invertedDesc(){let e=[];for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];n<0?e.push(i,n):e.push(n,i)}return new r(e)}composeDesc(e){return this.empty?e:e.empty?this:NR(this,e)}mapDesc(e,t=!1){return e.empty?this:Lf(this,e,t)}mapPos(e,t=-1,i=it.Simple){let n=0,s=0;for(let o=0;o<this.sections.length;){let g=this.sections[o++],a=this.sections[o++],A=n+g;if(a<0){if(A>e)return s+(e-n);s+=g}else{if(i!=it.Simple&&A>=e&&(i==it.TrackDel&&n<e&&A>e||i==it.TrackBefore&&n<e||i==it.TrackAfter&&A>e))return null;if(A>e||A==e&&t<0&&!g)return e==n||t<0?s:s+a;s+=a}n=A}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return s}touchesRange(e,t=e){for(let i=0,n=0;i<this.sections.length&&n<=t;){let s=this.sections[i++],o=this.sections[i++],g=n+s;if(o>=0&&n<=t&&g>=e)return n<e&&g>t?"cover":!0;n=g}return!1}toString(){let e="";for(let t=0;t<this.sections.length;){let i=this.sections[t++],n=this.sections[t++];e+=(e?" ":"")+i+(n>=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new r(e)}static create(e){return new r(e)}},lt=class r extends Vi{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ff(this,(t,i,n,s,o)=>e=e.replace(n,n+(i-t),o),!1),e}mapDesc(e,t=!1){return Lf(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,s=0;n<t.length;n+=2){let o=t[n],g=t[n+1];if(g>=0){t[n]=g,t[n+1]=o;let a=n>>1;for(;i.length<a;)i.push(re.empty);i.push(o?e.slice(s,s+o):re.empty)}s+=o}return new r(t,i)}compose(e){return this.empty?e:e.empty?this:NR(this,e,!0)}map(e,t=!1){return e.empty?this:Lf(this,e,t,!0)}iterChanges(e,t=!1){Ff(this,e,t)}get desc(){return Vi.create(this.sections)}filter(e){let t=[],i=[],n=[],s=new Gn(this);e:for(let o=0,g=0;;){let a=o==e.length?1e9:e[o++];for(;g<a||g==a&&s.len==0;){if(s.done)break e;let C=Math.min(s.len,a-g);rt(n,C,-1);let I=s.ins==-1?-1:s.off==0?s.ins:0;rt(t,C,I),I>0&&gn(i,t,s.text),s.forward(C),g+=C}let A=e[o++];for(;g<A;){if(s.done)break e;let C=Math.min(s.len,A-g);rt(t,C,-1),rt(n,C,s.ins==-1?-1:s.off==0?s.ins:0),s.forward(C),g+=C}}return{changes:new r(t,i),filtered:Vi.create(n)}}toJSON(){let e=[];for(let t=0;t<this.sections.length;t+=2){let i=this.sections[t],n=this.sections[t+1];n<0?e.push(i):n==0?e.push([i]):e.push([i].concat(this.inserted[t>>1].toJSON()))}return e}static of(e,t,i){let n=[],s=[],o=0,g=null;function a(C=!1){if(!C&&!n.length)return;o<t&&rt(n,t-o,-1);let I=new r(n,s);g=g?g.compose(I.map(g)):I,n=[],s=[],o=0}function A(C){if(Array.isArray(C))for(let I of C)A(I);else if(C instanceof r){if(C.length!=t)throw new RangeError(`Mismatched change set length (got ${C.length}, expected ${t})`);a(),g=g?g.compose(C.map(g)):C}else{let{from:I,to:l=I,insert:h}=C;if(I>l||I<0||l>t)throw new RangeError(`Invalid change range ${I} to ${l} (in doc of length ${t})`);let d=h?typeof h=="string"?re.of(h.split(i||Bf)):h:re.empty,c=d.length;if(I==l&&c==0)return;I<o&&a(),I>o&&rt(n,I-o,-1),rt(n,l-I,c),gn(s,n,d),o=l}}return A(e),a(!g),g}static empty(e){return new r(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;n<e.length;n++){let s=e[n];if(typeof s=="number")t.push(s,-1);else{if(!Array.isArray(s)||typeof s[0]!="number"||s.some((o,g)=>g&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(s.length==1)t.push(s[0],0);else{for(;i.length<n;)i.push(re.empty);i[n]=re.of(s.slice(1)),t.push(s[0],i[n].length)}}}return new r(t,i)}static createSet(e,t){return new r(e,t)}};function rt(r,e,t,i=!1){if(e==0&&t<=0)return;let n=r.length-2;n>=0&&t<=0&&t==r[n+1]?r[n]+=e:n>=0&&e==0&&r[n]==0?r[n+1]+=t:i?(r[n]+=e,r[n+1]+=t):r.push(e,t)}function gn(r,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i<r.length)r[r.length-1]=r[r.length-1].append(t);else{for(;r.length<i;)r.push(re.empty);r.push(t)}}function Ff(r,e,t){let i=r.inserted;for(let n=0,s=0,o=0;o<r.sections.length;){let g=r.sections[o++],a=r.sections[o++];if(a<0)n+=g,s+=g;else{let A=n,C=s,I=re.empty;for(;A+=g,C+=a,a&&i&&(I=I.append(i[o-2>>1])),!(t||o==r.sections.length||r.sections[o+1]<0);)g=r.sections[o++],a=r.sections[o++];e(n,A,s,C,I),n=A,s=C}}}function Lf(r,e,t,i=!1){let n=[],s=i?[]:null,o=new Gn(r),g=new Gn(e);for(let a=-1;;){if(o.done&&g.len||g.done&&o.len)throw new Error("Mismatched change set lengths");if(o.ins==-1&&g.ins==-1){let A=Math.min(o.len,g.len);rt(n,A,-1),o.forward(A),g.forward(A)}else if(g.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(g.len<o.len||g.len==o.len&&!t))){let A=g.len;for(rt(n,g.ins,-1);A;){let C=Math.min(o.len,A);o.ins>=0&&a<o.i&&o.len<=C&&(rt(n,0,o.ins),s&&gn(s,n,o.text),a=o.i),o.forward(C),A-=C}g.next()}else if(o.ins>=0){let A=0,C=o.len;for(;C;)if(g.ins==-1){let I=Math.min(C,g.len);A+=I,C-=I,g.forward(I)}else if(g.ins==0&&g.len<C)C-=g.len,g.next();else break;rt(n,A,a<o.i?o.ins:0),s&&a<o.i&&gn(s,n,o.text),a=o.i,o.forward(o.len-C)}else{if(o.done&&g.done)return s?lt.createSet(n,s):Vi.create(n);throw new Error("Mismatched change set lengths")}}}function NR(r,e,t=!1){let i=[],n=t?[]:null,s=new Gn(r),o=new Gn(e);for(let g=!1;;){if(s.done&&o.done)return n?lt.createSet(i,n):Vi.create(i);if(s.ins==0)rt(i,s.len,0,g),s.next();else if(o.len==0&&!o.done)rt(i,0,o.ins,g),n&&gn(n,i,o.text),o.next();else{if(s.done||o.done)throw new Error("Mismatched change set lengths");{let a=Math.min(s.len2,o.len),A=i.length;if(s.ins==-1){let C=o.ins==-1?-1:o.off?0:o.ins;rt(i,a,C,g),n&&C&&gn(n,i,o.text)}else o.ins==-1?(rt(i,s.off?0:s.len,a,g),n&&gn(n,i,s.textBit(a))):(rt(i,s.off?0:s.len,o.off?0:o.ins,g),n&&!o.off&&gn(n,i,o.text));g=(s.ins>a||o.ins>=0&&o.len>a)&&(g||i.length>A),s.forward2(a),o.forward(a)}}}}var Gn=class{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,t=this.i-2>>1;return t>=e.length?re.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?re.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}},Mr=class r{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new r(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return N.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return N.range(this.anchor,i)}eq(e,t=!1){return this.anchor==e.anchor&&this.head==e.head&&(!t||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return N.range(e.anchor,e.head)}static create(e,t,i){return new r(e,t,i)}},N=class r{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:r.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e,t=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let i=0;i<this.ranges.length;i++)if(!this.ranges[i].eq(e.ranges[i],t))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new r([this.main],0)}addRange(e,t=!0){return r.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e,t=this.mainIndex){let i=this.ranges.slice();return i[t]=e,r.create(i,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new r(e.ranges.map(t=>Mr.fromJSON(t)),e.main)}static single(e,t=e){return new r([r.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;n<e.length;n++){let s=e[n];if(s.empty?s.from<=i:s.from<i)return r.normalized(e.slice(),t);i=s.to}return new r(e,t)}static cursor(e,t=0,i,n){return Mr.create(e,e,(t==0?0:t<0?8:16)|(i==null?7:Math.min(6,i))|(n??16777215)<<6)}static range(e,t,i,n){let s=(i??16777215)<<6|(n==null?7:Math.min(6,n));return t<e?Mr.create(t,e,48|s):Mr.create(e,t,(t>e?8:0)|s)}static normalized(e,t=0){let i=e[t];e.sort((n,s)=>n.from-s.from),t=e.indexOf(i);for(let n=1;n<e.length;n++){let s=e[n],o=e[n-1];if(s.empty?s.from<=o.to:s.from<o.to){let g=o.from,a=Math.max(s.to,o.to);n<=t&&t--,e.splice(--n,2,s.anchor>s.head?r.range(a,g):r.range(g,a))}}return new r(e,t)}};function _R(r,e){for(let t of r.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}var Kf=0,G=class r{constructor(e,t,i,n,s){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=Kf++,this.default=e([]),this.extensions=typeof s=="function"?s(this):s}get reader(){return this}static define(e={}){return new r(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:Uf),!!e.static,e.enables)}of(e){return new _r([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new _r(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new _r(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}};function Uf(r,e){return r==e||r.length==e.length&&r.every((t,i)=>t===e[i])}var _r=class{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=Kf++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,s=this.id,o=e[s]>>1,g=this.type==2,a=!1,A=!1,C=[];for(let I of this.dependencies)I=="doc"?a=!0:I=="selection"?A=!0:(((t=e[I.id])!==null&&t!==void 0?t:1)&1)==0&&C.push(e[I.id]);return{create(I){return I.values[o]=i(I),1},update(I,l){if(a&&l.docChanged||A&&(l.docChanged||l.selection)||zf(I,C)){let h=i(I);if(g?!OR(h,I.values[o],n):!n(h,I.values[o]))return I.values[o]=h,1}return 0},reconfigure:(I,l)=>{let h,d=l.config.address[s];if(d!=null){let c=Hg(l,d);if(this.dependencies.every(f=>f instanceof G?l.facet(f)===I.facet(f):f instanceof Qe?l.field(f,!1)==I.field(f,!1):!0)||(g?OR(h=i(I),c,n):n(h=i(I),c)))return I.values[o]=c,0}else h=i(I);return I.values[o]=h,1}}}};function OR(r,e,t){if(r.length!=e.length)return!1;for(let i=0;i<r.length;i++)if(!t(r[i],e[i]))return!1;return!0}function zf(r,e){let t=!1;for(let i of e)Js(r,i)&1&&(t=!0);return t}function N5(r,e,t){let i=t.map(a=>r[a.id]),n=t.map(a=>a.type),s=i.filter(a=>!(a&1)),o=r[e.id]>>1;function g(a){let A=[];for(let C=0;C<i.length;C++){let I=Hg(a,i[C]);if(n[C]==2)for(let l of I)A.push(l);else A.push(I)}return e.combine(A)}return{create(a){for(let A of i)Js(a,A);return a.values[o]=g(a),1},update(a,A){if(!zf(a,s))return 0;let C=g(a);return e.compare(C,a.values[o])?0:(a.values[o]=C,1)},reconfigure(a,A){let C=zf(a,i),I=A.config.facets[e.id],l=A.facet(e);if(I&&!C&&Uf(t,I))return a.values[o]=l,0;let h=g(a);return e.compare(h,l)?(a.values[o]=l,0):(a.values[o]=h,1)}}}var Fg=G.define({static:!0}),Qe=class r{constructor(e,t,i,n,s){this.id=e,this.createF=t,this.updateF=i,this.compareF=n,this.spec=s,this.provides=void 0}static define(e){let t=new r(Kf++,e.create,e.update,e.compare||((i,n)=>i===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Fg).find(i=>i.field==this);return(t?.create||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let s=i.values[t],o=this.updateF(s,n);return this.compareF(s,o)?0:(i.values[t]=o,1)},reconfigure:(i,n)=>{let s=i.facet(Fg),o=n.facet(Fg),g;return(g=s.find(a=>a.field==this))&&g!=o.find(a=>a.field==this)?(i.values[t]=g.create(i),1):n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}}init(e){return[this,Fg.of({field:this,create:e})]}get extension(){return this}},qn={lowest:4,low:3,default:2,high:1,highest:0};function Qs(r){return e=>new Gg(e,r)}var no={highest:Qs(qn.highest),high:Qs(qn.high),default:Qs(qn.default),low:Qs(qn.low),lowest:Qs(qn.lowest)},Gg=class{constructor(e,t){this.inner=e,this.prec=t}},Zg=class r{of(e){return new $s(this,e)}reconfigure(e){return r.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}},$s=class{constructor(e,t){this.compartment=e,this.inner=t}},jg=class r{constructor(e,t,i,n,s,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=s,this.facets=o,this.statusTemplate=[];this.statusTemplate.length<i.length;)this.statusTemplate.push(0)}staticFacet(e){let t=this.address[e.id];return t==null?e.default:this.staticValues[t>>1]}static resolve(e,t,i){let n=[],s=Object.create(null),o=new Map;for(let l of _5(e,t,o))l instanceof Qe?n.push(l):(s[l.facet.id]||(s[l.facet.id]=[])).push(l);let g=Object.create(null),a=[],A=[];for(let l of n)g[l.id]=A.length<<1,A.push(h=>l.slot(h));let C=i?.config.facets;for(let l in s){let h=s[l],d=h[0].facet,c=C&&C[l]||[];if(h.every(f=>f.type==0))if(g[d.id]=a.length<<1|1,Uf(c,h))a.push(i.facet(d));else{let f=d.combine(h.map(u=>u.value));a.push(i&&d.compare(f,i.facet(d))?i.facet(d):f)}else{for(let f of h)f.type==0?(g[f.id]=a.length<<1|1,a.push(f.value)):(g[f.id]=A.length<<1,A.push(u=>f.dynamicSlot(u)));g[d.id]=A.length<<1,A.push(f=>N5(f,d,h))}}let I=A.map(l=>l(g));return new r(e,o,I,g,a,s)}};function _5(r,e,t){let i=[[],[],[],[],[]],n=new Map;function s(o,g){let a=n.get(o);if(a!=null){if(a<=g)return;let A=i[a].indexOf(o);A>-1&&i[a].splice(A,1),o instanceof $s&&t.delete(o.compartment)}if(n.set(o,g),Array.isArray(o))for(let A of o)s(A,g);else if(o instanceof $s){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let A=e.get(o.compartment)||o.inner;t.set(o.compartment,A),s(A,g)}else if(o instanceof Gg)s(o.inner,o.prec);else if(o instanceof Qe)i[g].push(o),o.provides&&s(o.provides,g);else if(o instanceof _r)i[g].push(o),o.facet.extensions&&s(o.facet.extensions,qn.default);else{let A=o.extension;if(!A)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);s(A,g)}}return s(r,qn.default),i.reduce((o,g)=>o.concat(g))}function Js(r,e){if(e&1)return 2;let t=e>>1,i=r.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;r.status[t]=4;let n=r.computeSlot(r,r.config.dynamicSlots[t]);return r.status[t]=2|n}function Hg(r,e){return e&1?r.config.staticValues[e>>1]:r.values[e>>1]}var BR=G.define(),qf=G.define({combine:r=>r.some(e=>e),static:!0}),FR=G.define({combine:r=>r.length?r[0]:void 0,static:!0}),LR=G.define(),zR=G.define(),qR=G.define(),VR=G.define({combine:r=>r.length?r[0]:!1}),xt=class{constructor(e,t){this.type=e,this.value=t}static define(){return new Vf}},Vf=class{of(e){return new xt(this,e)}},Wf=class{constructor(e){this.map=e}of(e){return new de(this,e)}},de=class r{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new r(this.type,t)}is(e){return this.type==e}static define(e={}){return new Wf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let s=n.map(t);s&&i.push(s)}return i}};de.reconfigure=de.define();de.appendConfig=de.define();var He=class r{constructor(e,t,i,n,s,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=s,this.scrollIntoView=o,this._doc=null,this._state=null,i&&_R(i,t.newLength),s.some(g=>g.type==r.time)||(this.annotations=s.concat(r.time.of(Date.now())))}static create(e,t,i,n,s,o){return new r(e,t,i,n,s,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(r.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}};He.time=xt.define();He.userEvent=xt.define();He.addToHistory=xt.define();He.remote=xt.define();function B5(r,e){let t=[];for(let i=0,n=0;;){let s,o;if(i<r.length&&(n==e.length||e[n]>=r[i]))s=r[i++],o=r[i++];else if(n<e.length)s=e[n++],o=e[n++];else return t;!t.length||t[t.length-1]<s?t.push(s,o):t[t.length-1]<o&&(t[t.length-1]=o)}}function WR(r,e,t){var i;let n,s,o;return t?(n=e.changes,s=lt.empty(e.changes.length),o=r.changes.compose(e.changes)):(n=e.changes.map(r.changes),s=r.changes.mapDesc(e.changes,!0),o=r.changes.compose(n)),{changes:o,selection:e.selection?e.selection.map(s):(i=r.selection)===null||i===void 0?void 0:i.map(n),effects:de.mapEffects(r.effects,n).concat(de.mapEffects(e.effects,s)),annotations:r.annotations.length?r.annotations.concat(e.annotations):e.annotations,scrollIntoView:r.scrollIntoView||e.scrollIntoView}}function Gf(r,e,t){let i=e.selection,n=Br(e.annotations);return e.userEvent&&(n=n.concat(He.userEvent.of(e.userEvent))),{changes:e.changes instanceof lt?e.changes:lt.of(e.changes||[],t,r.facet(FR)),selection:i&&(i instanceof N?i:N.single(i.anchor,i.head)),effects:Br(e.effects),annotations:n,scrollIntoView:!!e.scrollIntoView}}function GR(r,e,t){let i=Gf(r,e.length?e[0]:{},r.doc.length);e.length&&e[0].filter===!1&&(t=!1);for(let s=1;s<e.length;s++){e[s].filter===!1&&(t=!1);let o=!!e[s].sequential;i=WR(i,Gf(r,e[s],o?i.changes.newLength:r.doc.length),o)}let n=He.create(r,i.changes,i.selection,i.effects,i.annotations,i.scrollIntoView);return L5(t?F5(n):n)}function F5(r){let e=r.startState,t=!0;for(let n of e.facet(LR)){let s=n(r);if(s===!1){t=!1;break}Array.isArray(s)&&(t=t===!0?s:B5(t,s))}if(t!==!0){let n,s;if(t===!1)s=r.changes.invertedDesc,n=lt.empty(e.doc.length);else{let o=r.changes.filter(t);n=o.changes,s=o.filtered.mapDesc(o.changes).invertedDesc}r=He.create(e,n,r.selection&&r.selection.map(s),de.mapEffects(r.effects,s),r.annotations,r.scrollIntoView)}let i=e.facet(zR);for(let n=i.length-1;n>=0;n--){let s=i[n](r);s instanceof He?r=s:Array.isArray(s)&&s.length==1&&s[0]instanceof He?r=s[0]:r=GR(e,Br(s),!1)}return r}function L5(r){let e=r.startState,t=e.facet(qR),i=r;for(let n=t.length-1;n>=0;n--){let s=t[n](r);s&&Object.keys(s).length&&(i=WR(i,Gf(e,s,r.changes.newLength),!0))}return i==r?r:He.create(e,r.changes,r.selection,i.effects,i.annotations,i.scrollIntoView)}var z5=[];function Br(r){return r==null?z5:Array.isArray(r)?r:[r]}var It=function(r){return r[r.Word=0]="Word",r[r.Space=1]="Space",r[r.Other=2]="Other",r}(It||(It={})),q5=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Zf;try{Zf=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function V5(r){if(Zf)return Zf.test(r);for(let e=0;e<r.length;e++){let t=r[e];if(/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||q5.test(t)))return!0}return!1}function W5(r){return e=>{if(!/\S/.test(e))return It.Space;if(V5(e))return It.Word;for(let t=0;t<r.length;t++)if(e.indexOf(r[t])>-1)return It.Word;return It.Other}}var Te=class r{constructor(e,t,i,n,s,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=s,o&&(o._state=this);for(let g=0;g<this.config.dynamicSlots.length;g++)Js(this,g<<1);this.computeSlot=null}field(e,t=!0){let i=this.config.address[e.id];if(i==null){if(t)throw new RangeError("Field is not present in this state");return}return Js(this,i),Hg(this,i)}update(...e){return GR(this,e,!0)}applyTransaction(e){let t=this.config,{base:i,compartments:n}=t;for(let g of e.effects)g.is(Zg.reconfigure)?(t&&(n=new Map,t.compartments.forEach((a,A)=>n.set(A,a)),t=null),n.set(g.value.compartment,g.value.extension)):g.is(de.reconfigure)?(t=null,i=g.value):g.is(de.appendConfig)&&(t=null,i=Br(i).concat(g.value));let s;t?s=e.startState.values.slice():(t=jg.resolve(i,n,this),s=new r(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(a,A)=>A.reconfigure(a,this),null).values);let o=e.startState.facet(qf)?e.newSelection:e.newSelection.asSingle();new r(t,e.newDoc,o,s,(g,a)=>a.update(g,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:N.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),s=[i.range],o=Br(i.effects);for(let g=1;g<t.ranges.length;g++){let a=e(t.ranges[g]),A=this.changes(a.changes),C=A.map(n);for(let l=0;l<g;l++)s[l]=s[l].map(C);let I=n.mapDesc(A,!0);s.push(a.range.map(I)),n=n.compose(C),o=de.mapEffects(o,C).concat(de.mapEffects(Br(a.effects),I))}return{changes:n,selection:N.create(s,t.mainIndex),effects:o}}changes(e=[]){return e instanceof lt?e:lt.of(e,this.doc.length,this.facet(r.lineSeparator))}toText(e){return re.of(e.split(this.facet(r.lineSeparator)||Bf))}sliceDoc(e=0,t=this.doc.length){return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return t==null?e.default:(Js(this,t),Hg(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let i in e){let n=e[i];n instanceof Qe&&this.config.address[n.id]!=null&&(t[i]=n.spec.toJSON(this.field(e[i]),this))}return t}static fromJSON(e,t={},i){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let n=[];if(i){for(let s in i)if(Object.prototype.hasOwnProperty.call(e,s)){let o=i[s],g=e[s];n.push(o.init(a=>o.spec.fromJSON(g,a)))}}return r.create({doc:e.doc,selection:N.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=jg.resolve(e.extensions||[],new Map),i=e.doc instanceof re?e.doc:re.of((e.doc||"").split(t.staticFacet(r.lineSeparator)||Bf)),n=e.selection?e.selection instanceof N?e.selection:N.single(e.selection.anchor,e.selection.head):N.single(0);return _R(n,i.length),t.staticFacet(qf)||(n=n.asSingle()),new r(t,i,n,t.dynamicSlots.map(()=>null),(s,o)=>o.create(s),null)}get tabSize(){return this.facet(r.tabSize)}get lineBreak(){return this.facet(r.lineSeparator)||`
`}get readOnly(){return this.facet(VR)}phrase(e,...t){for(let i of this.facet(r.phrases))if(Object.prototype.hasOwnProperty.call(i,e)){e=i[e];break}return t.length&&(e=e.replace(/\$(\$|\d*)/g,(i,n)=>{if(n=="$")return"$";let s=+(n||1);return!s||s>t.length?i:t[s-1]})),e}languageDataAt(e,t,i=-1){let n=[];for(let s of this.facet(BR))for(let o of s(this,t,i))Object.prototype.hasOwnProperty.call(o,e)&&n.push(o[e]);return n}charCategorizer(e){let t=this.languageDataAt("wordChars",e);return W5(t.length?t[0]:"")}wordAt(e){let{text:t,from:i,length:n}=this.doc.lineAt(e),s=this.charCategorizer(e),o=e-i,g=e-i;for(;o>0;){let a=Ye(t,o,!1);if(s(t.slice(a,o))!=It.Word)break;o=a}for(;g<n;){let a=Ye(t,g);if(s(t.slice(g,a))!=It.Word)break;g=a}return o==g?null:N.range(o+i,g+i)}};Te.allowMultipleSelections=qf;Te.tabSize=G.define({combine:r=>r.length?r[0]:4});Te.lineSeparator=FR;Te.readOnly=VR;Te.phrases=G.define({compare(r,e){let t=Object.keys(r),i=Object.keys(e);return t.length==i.length&&t.every(n=>r[n]==e[n])}});Te.languageData=BR;Te.changeFilter=LR;Te.transactionFilter=zR;Te.transactionExtender=qR;Zg.reconfigure=de.define();function Zn(r,e,t={}){let i={};for(let n of r)for(let s of Object.keys(n)){let o=n[s],g=i[s];if(g===void 0)i[s]=o;else if(!(g===o||o===void 0))if(Object.hasOwnProperty.call(t,s))i[s]=t[s](g,o);else throw new Error("Config merge conflict for field "+s)}for(let n in e)i[n]===void 0&&(i[n]=e[n]);return i}var Bt=class{eq(e){return this==e}range(e,t=e){return eo.create(e,t,this)}};Bt.prototype.startSide=Bt.prototype.endSide=0;Bt.prototype.point=!1;Bt.prototype.mapMode=it.TrackDel;function Xf(r,e){return r==e||r.constructor==e.constructor&&r.eq(e)}var eo=class r{constructor(e,t,i){this.from=e,this.to=t,this.value=i}static create(e,t,i){return new r(e,t,i)}};function jf(r,e){return r.from-e.from||r.value.startSide-e.value.startSide}var Hf=class r{constructor(e,t,i,n){this.from=e,this.to=t,this.value=i,this.maxPoint=n}get length(){return this.to[this.to.length-1]}findIndex(e,t,i,n=0){let s=i?this.to:this.from;for(let o=n,g=s.length;;){if(o==g)return o;let a=o+g>>1,A=s[a]-e||(i?this.value[a].endSide:this.value[a].startSide)-t;if(a==o)return A>=0?o:g;A>=0?g=a:o=a+1}}between(e,t,i,n){for(let s=this.findIndex(t,-1e9,!0),o=this.findIndex(i,1e9,!1,s);s<o;s++)if(n(this.from[s]+e,this.to[s]+e,this.value[s])===!1)return!1}map(e,t){let i=[],n=[],s=[],o=-1,g=-1;for(let a=0;a<this.value.length;a++){let A=this.value[a],C=this.from[a]+e,I=this.to[a]+e,l,h;if(C==I){let d=t.mapPos(C,A.startSide,A.mapMode);if(d==null||(l=h=d,A.startSide!=A.endSide&&(h=t.mapPos(C,A.endSide),h<l)))continue}else if(l=t.mapPos(C,A.startSide),h=t.mapPos(I,A.endSide),l>h||l==h&&A.startSide>0&&A.endSide<=0)continue;(h-l||A.endSide-A.startSide)<0||(o<0&&(o=l),A.point&&(g=Math.max(g,h-l)),i.push(A),n.push(l-o),s.push(h-o))}return{mapped:i.length?new r(n,s,i,g):null,pos:o}}},le=class r{constructor(e,t,i,n){this.chunkPos=e,this.chunk=t,this.nextLayer=i,this.maxPoint=n}static create(e,t,i,n){return new r(e,t,i,n)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:i=!1,filterFrom:n=0,filterTo:s=this.length}=e,o=e.filter;if(t.length==0&&!o)return this;if(i&&(t=t.slice().sort(jf)),this.isEmpty)return t.length?r.of(t):this;let g=new Yg(this,null,-1).goto(0),a=0,A=[],C=new an;for(;g.value||a<t.length;)if(a<t.length&&(g.from-t[a].from||g.startSide-t[a].value.startSide)>=0){let I=t[a++];C.addInner(I.from,I.to,I.value)||A.push(I)}else g.rangeIndex==1&&g.chunkIndex<this.chunk.length&&(a==t.length||this.chunkEnd(g.chunkIndex)<t[a].from)&&(!o||n>this.chunkEnd(g.chunkIndex)||s<this.chunkPos[g.chunkIndex])&&C.addChunk(this.chunkPos[g.chunkIndex],this.chunk[g.chunkIndex])?g.nextChunk():((!o||n>g.to||s<g.from||o(g.from,g.to,g.value))&&(C.addInner(g.from,g.to,g.value)||A.push(eo.create(g.from,g.to,g.value))),g.next());return C.finishInner(this.nextLayer.isEmpty&&!A.length?r.empty:this.nextLayer.update({add:A,filter:o,filterFrom:n,filterTo:s}))}map(e){if(e.empty||this.isEmpty)return this;let t=[],i=[],n=-1;for(let o=0;o<this.chunk.length;o++){let g=this.chunkPos[o],a=this.chunk[o],A=e.touchesRange(g,g+a.length);if(A===!1)n=Math.max(n,a.maxPoint),t.push(a),i.push(e.mapPos(g));else if(A===!0){let{mapped:C,pos:I}=a.map(g,e);C&&(n=Math.max(n,C.maxPoint),t.push(C),i.push(I))}}let s=this.nextLayer.map(e);return t.length==0?s:new r(i,t,s||r.empty,n)}between(e,t,i){if(!this.isEmpty){for(let n=0;n<this.chunk.length;n++){let s=this.chunkPos[n],o=this.chunk[n];if(t>=s&&e<=s+o.length&&o.between(s,e-s,t-s,i)===!1)return}this.nextLayer.between(e,t,i)}}iter(e=0){return to.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,t=0){return to.from(e).goto(t)}static compare(e,t,i,n,s=-1){let o=e.filter(I=>I.maxPoint>0||!I.isEmpty&&I.maxPoint>=s),g=t.filter(I=>I.maxPoint>0||!I.isEmpty&&I.maxPoint>=s),a=RR(o,g,i),A=new Vn(o,a,s),C=new Vn(g,a,s);i.iterGaps((I,l,h)=>DR(A,I,C,l,h,n)),i.empty&&i.length==0&&DR(A,0,C,0,0,n)}static eq(e,t,i=0,n){n==null&&(n=999999999);let s=e.filter(C=>!C.isEmpty&&t.indexOf(C)<0),o=t.filter(C=>!C.isEmpty&&e.indexOf(C)<0);if(s.length!=o.length)return!1;if(!s.length)return!0;let g=RR(s,o),a=new Vn(s,g,0).goto(i),A=new Vn(o,g,0).goto(i);for(;;){if(a.to!=A.to||!Yf(a.active,A.active)||a.point&&(!A.point||!Xf(a.point,A.point)))return!1;if(a.to>n)return!0;a.next(),A.next()}}static spans(e,t,i,n,s=-1){let o=new Vn(e,null,s).goto(t),g=t,a=o.openStart;for(;;){let A=Math.min(o.to,i);if(o.point){let C=o.activeForPoint(o.to),I=o.pointFrom<t?C.length+1:o.point.startSide<0?C.length:Math.min(C.length,a);n.point(g,A,o.point,C,I,o.pointRank),a=Math.min(o.openEnd(A),C.length)}else A>g&&(n.span(g,A,o.active,a),a=o.openEnd(A));if(o.to>i)return a+(o.point&&o.to>i?1:0);g=o.to,o.next()}}static of(e,t=!1){let i=new an;for(let n of e instanceof eo?[e]:t?G5(e):e)i.add(n.from,n.to,n.value);return i.finish()}static join(e){if(!e.length)return r.empty;let t=e[e.length-1];for(let i=e.length-2;i>=0;i--)for(let n=e[i];n!=r.empty;n=n.nextLayer)t=new r(n.chunkPos,n.chunk,t,Math.max(n.maxPoint,t.maxPoint));return t}};le.empty=new le([],[],null,-1);function G5(r){if(r.length>1)for(let e=r[0],t=1;t<r.length;t++){let i=r[t];if(jf(e,i)>0)return r.slice().sort(jf);e=i}return r}le.empty.nextLayer=le.empty;var an=class r{finishChunk(e){this.chunks.push(new Hf(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,i){this.addInner(e,t,i)||(this.nextLayer||(this.nextLayer=new r)).add(e,t,i)}addInner(e,t,i){let n=e-this.lastTo||i.startSide-this.last.endSide;if(n<=0&&(e-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return n<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=i,this.lastFrom=e,this.lastTo=t,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let i=t.value.length-1;return this.last=t.value[i],this.lastFrom=t.from[i]+e,this.lastTo=t.to[i]+e,!0}finish(){return this.finishInner(le.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let t=le.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}};function RR(r,e,t){let i=new Map;for(let s of r)for(let o=0;o<s.chunk.length;o++)s.chunk[o].maxPoint<=0&&i.set(s.chunk[o],s.chunkPos[o]);let n=new Set;for(let s of e)for(let o=0;o<s.chunk.length;o++){let g=i.get(s.chunk[o]);g!=null&&(t?t.mapPos(g):g)==s.chunkPos[o]&&!t?.touchesRange(g,g+s.chunk[o].length)&&n.add(s.chunk[o])}return n}var Yg=class{constructor(e,t,i,n=0){this.layer=e,this.skip=t,this.minPoint=i,this.rank=n}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,t=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,i){for(;this.chunkIndex<this.layer.chunk.length;){let n=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(n)||this.layer.chunkEnd(this.chunkIndex)<e||n.maxPoint<this.minPoint))break;this.chunkIndex++,i=!1}if(this.chunkIndex<this.layer.chunk.length){let n=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],t,!0);(!i||this.rangeIndex<n)&&this.setRangeIndex(n)}this.next()}forward(e,t){(this.to-e||this.endSide-t)<0&&this.gotoInner(e,t,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],t=this.layer.chunk[this.chunkIndex],i=e+t.from[this.rangeIndex];if(this.from=i,this.to=e+t.to[this.rangeIndex],this.value=t.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}},to=class r{constructor(e){this.heap=e}static from(e,t=null,i=-1){let n=[];for(let s=0;s<e.length;s++)for(let o=e[s];!o.isEmpty;o=o.nextLayer)o.maxPoint>=i&&n.push(new Yg(o,t,i,s));return n.length==1?n[0]:new r(n)}get startSide(){return this.value?this.value.startSide:0}goto(e,t=-1e9){for(let i of this.heap)i.goto(e,t);for(let i=this.heap.length>>1;i>=0;i--)Nf(this.heap,i);return this.next(),this}forward(e,t){for(let i of this.heap)i.forward(e,t);for(let i=this.heap.length>>1;i>=0;i--)Nf(this.heap,i);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Nf(this.heap,0)}}};function Nf(r,e){for(let t=r[e];;){let i=(e<<1)+1;if(i>=r.length)break;let n=r[i];if(i+1<r.length&&n.compare(r[i+1])>=0&&(n=r[i+1],i++),t.compare(n)<0)break;r[i]=t,r[e]=n,e=i}}var Vn=class{constructor(e,t,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=to.from(e,t,i)}goto(e,t=-1e9){return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){Lg(this.active,e),Lg(this.activeTo,e),Lg(this.activeRank,e),this.minActive=PR(this.active,this.activeTo)}addActive(e){let t=0,{value:i,to:n,rank:s}=this.cursor;for(;t<this.activeRank.length&&(s-this.activeRank[t]||n-this.activeTo[t])>0;)t++;zg(this.active,t,i),zg(this.activeTo,t,n),zg(this.activeRank,t,s),e&&zg(e,t,this.cursor.from),this.minActive=PR(this.active,this.activeTo)}next(){let e=this.to,t=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let n=this.minActive;if(n>-1&&(this.activeTo[n]-this.cursor.from||this.active[n].endSide-this.cursor.startSide)<0){if(this.activeTo[n]>e){this.to=this.activeTo[n],this.endSide=this.active[n].endSide;break}this.removeActive(n),i&&Lg(i,n)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let s=this.cursor.value;if(!s.point)this.addActive(i),this.cursor.next();else if(t&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=s,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=s.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(i){this.openStart=0;for(let n=i.length-1;n>=0&&i[n]<e;n--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let t=[];for(let i=this.active.length-1;i>=0&&!(this.activeRank[i]<this.pointRank);i--)(this.activeTo[i]>e||this.activeTo[i]==e&&this.active[i].endSide>=this.point.endSide)&&t.push(this.active[i]);return t.reverse()}openEnd(e){let t=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>e;i--)t++;return t}};function DR(r,e,t,i,n,s){r.goto(e),t.goto(i);let o=i+n,g=i,a=i-e,A=!!s.boundChange;for(let C=!1;;){let I=r.to+a-t.to,l=I||r.endSide-t.endSide,h=l<0?r.to+a:t.to,d=Math.min(h,o);if(r.point||t.point?(r.point&&t.point&&Xf(r.point,t.point)&&Yf(r.activeForPoint(r.to),t.activeForPoint(t.to))||s.comparePoint(g,d,r.point,t.point),C=!1):(C&&s.boundChange(g),d>g&&!Yf(r.active,t.active)&&s.compareRange(g,d,r.active,t.active),A&&d<o&&(I||r.openEnd(h)!=t.openEnd(h))&&(C=!0)),h>o)break;g=h,l<=0&&r.next(),l>=0&&t.next()}}function Yf(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(r[t]!=e[t]&&!Xf(r[t],e[t]))return!1;return!0}function Lg(r,e){for(let t=e,i=r.length-1;t<i;t++)r[t]=r[t+1];r.pop()}function zg(r,e,t){for(let i=r.length-1;i>=e;i--)r[i+1]=r[i];r[e]=t}function PR(r,e){let t=-1,i=1e9;for(let n=0;n<e.length;n++)(e[n]-i||r[n].endSide-r[t].endSide)<0&&(t=n,i=e[n]);return t}function jn(r,e,t=r.length){let i=0;for(let n=0;n<t&&n<r.length;)r.charCodeAt(n)==9?(i+=e-i%e,n++):(i++,n=Ye(r,n));return i}function ZR(r,e,t,i){for(let n=0,s=0;;){if(s>=e)return n;if(n==r.length)break;s+=r.charCodeAt(n)==9?t-s%t:1,n=Ye(r,n)}return i===!0?-1:r.length}var Qf="\u037C",jR=typeof Symbol>"u"?"__"+Qf:Symbol.for(Qf),Jf=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),HR=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{},Ft=class{constructor(e,t){this.rules=[];let{finish:i}=t||{};function n(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function s(o,g,a,A){let C=[],I=/^@(\w+)\b/.exec(o[0]),l=I&&I[1]=="keyframes";if(I&&g==null)return a.push(o[0]+";");for(let h in g){let d=g[h];if(/&/.test(h))s(h.split(/,\s*/).map(c=>o.map(f=>c.replace(/&/,f))).reduce((c,f)=>c.concat(f)),d,a);else if(d&&typeof d=="object"){if(!I)throw new RangeError("The value of a property ("+h+") should be a primitive value.");s(n(h),d,C,l)}else d!=null&&C.push(h.replace(/_.*/,"").replace(/[A-Z]/g,c=>"-"+c.toLowerCase())+": "+d+";")}(C.length||l)&&a.push((i&&!I&&!A?o.map(i):o).join(", ")+" {"+C.join(" ")+"}")}for(let o in e)s(n(o),e[o],this.rules)}getRules(){return this.rules.join(`
`)}static newName(){let e=HR[jR]||1;return HR[jR]=e+1,Qf+e.toString(36)}static mount(e,t,i){let n=e[Jf],s=i&&i.nonce;n?s&&n.setNonce(s):n=new $f(e,s),n.mount(Array.isArray(t)?t:[t],e)}},YR=new Map,$f=class{constructor(e,t){let i=e.ownerDocument||e,n=i.defaultView;if(!e.head&&e.adoptedStyleSheets&&n.CSSStyleSheet){let s=YR.get(i);if(s)return e[Jf]=s;this.sheet=new n.CSSStyleSheet,YR.set(i,this)}else this.styleTag=i.createElement("style"),t&&this.styleTag.setAttribute("nonce",t);this.modules=[],e[Jf]=this}mount(e,t){let i=this.sheet,n=0,s=0;for(let o=0;o<e.length;o++){let g=e[o],a=this.modules.indexOf(g);if(a<s&&a>-1&&(this.modules.splice(a,1),s--,a=-1),a==-1){if(this.modules.splice(s++,0,g),i)for(let A=0;A<g.rules.length;A++)i.insertRule(g.rules[A],n++)}else{for(;s<a;)n+=this.modules[s++].rules.length;n+=g.rules.length,s++}}if(i)t.adoptedStyleSheets.indexOf(this.sheet)<0&&(t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets]);else{let o="";for(let a=0;a<this.modules.length;a++)o+=this.modules[a].getRules()+`
`;this.styleTag.textContent=o;let g=t.head||t;this.styleTag.parentNode!=g&&g.insertBefore(this.styleTag,g.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}};var Wi={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},zr={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Z5=typeof navigator<"u"&&/Mac/.test(navigator.platform),j5=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(Ge=0;Ge<10;Ge++)Wi[48+Ge]=Wi[96+Ge]=String(Ge);var Ge;for(Ge=1;Ge<=24;Ge++)Wi[Ge+111]="F"+Ge;var Ge;for(Ge=65;Ge<=90;Ge++)Wi[Ge]=String.fromCharCode(Ge+32),zr[Ge]=String.fromCharCode(Ge);var Ge;for(Kg in Wi)zr.hasOwnProperty(Kg)||(zr[Kg]=Wi[Kg]);var Kg;function KR(r){var e=Z5&&r.metaKey&&r.shiftKey&&!r.ctrlKey&&!r.altKey||j5&&r.shiftKey&&r.key&&r.key.length==1||r.key=="Unidentified",t=!e&&r.key||(r.shiftKey?zr:Wi)[r.keyCode]||r.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}var ht=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},gp=typeof document<"u"?document:{documentElement:{style:{}}},ap=/Edge\/(\d+)/.exec(ht.userAgent),TD=/MSIE \d/.test(ht.userAgent),Ap=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ht.userAgent),Ea=!!(TD||Ap||ap),UR=!Ea&&/gecko\/(\d+)/i.test(ht.userAgent),ep=!Ea&&/Chrome\/(\d+)/.exec(ht.userAgent),XR="webkitFontSmoothing"in gp.documentElement.style,Cp=!Ea&&/Apple Computer/.test(ht.vendor),QR=Cp&&(/Mobile\/\w+/.test(ht.userAgent)||ht.maxTouchPoints>2),q={mac:QR||/Mac/.test(ht.platform),windows:/Win/.test(ht.platform),linux:/Linux|X11/.test(ht.platform),ie:Ea,ie_version:TD?gp.documentMode||6:Ap?+Ap[1]:ap?+ap[1]:0,gecko:UR,gecko_version:UR?+(/Firefox\/(\d+)/.exec(ht.userAgent)||[0,0])[1]:0,chrome:!!ep,chrome_version:ep?+ep[1]:0,ios:QR,android:/Android\b/.test(ht.userAgent),webkit:XR,webkit_version:XR?+(/\bAppleWebKit\/(\d+)/.exec(ht.userAgent)||[0,0])[1]:0,safari:Cp,safari_version:Cp?+(/\bVersion\/(\d+(\.\d+)?)/.exec(ht.userAgent)||[0,0])[1]:0,tabSize:gp.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};function Kp(r,e){for(let t in r)t=="class"&&e.class?e.class+=" "+r.class:t=="style"&&e.style?e.style+=";"+r.style:e[t]=r[t];return e}var Aa=Object.create(null);function Up(r,e,t){if(r==e)return!0;r||(r=Aa),e||(e=Aa);let i=Object.keys(r),n=Object.keys(e);if(i.length-(t&&i.indexOf(t)>-1?1:0)!=n.length-(t&&n.indexOf(t)>-1?1:0))return!1;for(let s of i)if(s!=t&&(n.indexOf(s)==-1||r[s]!==e[s]))return!1;return!0}function H5(r,e){for(let t=r.attributes.length-1;t>=0;t--){let i=r.attributes[t].name;e[i]==null&&r.removeAttribute(i)}for(let t in e){let i=e[t];t=="style"?r.style.cssText=i:r.getAttribute(t)!=i&&r.setAttribute(t,i)}}function JR(r,e,t){let i=!1;if(e)for(let n in e)t&&n in t||(i=!0,n=="style"?r.style.cssText="":r.removeAttribute(n));if(t)for(let n in t)e&&e[n]==t[n]||(i=!0,n=="style"?r.style.cssText=t[n]:r.setAttribute(n,t[n]));return i}function Y5(r){let e=Object.create(null);for(let t=0;t<r.attributes.length;t++){let i=r.attributes[t];e[i.name]=i.value}return e}var ln=class{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}},vt=function(r){return r[r.Text=0]="Text",r[r.WidgetBefore=1]="WidgetBefore",r[r.WidgetAfter=2]="WidgetAfter",r[r.WidgetRange=3]="WidgetRange",r}(vt||(vt={})),oe=class extends Bt{constructor(e,t,i,n){super(),this.startSide=e,this.endSide=t,this.widget=i,this.spec=n}get heightRelevant(){return!1}static mark(e){return new co(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),i=!!e.block;return t+=i&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new Kn(e,t,t,i,e.widget||null,!1)}static replace(e){let t=!!e.block,i,n;if(e.isBlockGap)i=-5e8,n=4e8;else{let{start:s,end:o}=kD(e,t);i=(s?t?-3e8:-1:5e8)-1,n=(o?t?2e8:1:-6e8)+1}return new Kn(e,i,n,t,e.widget||null,!0)}static line(e){return new uo(e)}static set(e,t=!1){return le.of(e,t)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}};oe.none=le.empty;var co=class r extends oe{constructor(e){let{start:t,end:i}=kD(e);super(t?-1:5e8,i?1:-6e8,null,e),this.tagName=e.tagName||"span",this.attrs=e.class&&e.attributes?Kp(e.attributes,{class:e.class}):e.class?{class:e.class}:e.attributes||Aa}eq(e){return this==e||e instanceof r&&this.tagName==e.tagName&&Up(this.attrs,e.attrs)}range(e,t=e){if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}};co.prototype.point=!1;var uo=class r extends oe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof r&&this.spec.class==e.spec.class&&Up(this.spec.attributes,e.spec.attributes)}range(e,t=e){if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}};uo.prototype.mapMode=it.TrackBefore;uo.prototype.point=!0;var Kn=class r extends oe{constructor(e,t,i,n,s,o){super(t,i,s,e),this.block=n,this.isReplace=o,this.mapMode=n?t<=0?it.TrackBefore:it.TrackAfter:it.TrackDel}get type(){return this.startSide!=this.endSide?vt.WidgetRange:this.startSide<=0?vt.WidgetBefore:vt.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof r&&K5(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,t=e){if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}};Kn.prototype.point=!0;function kD(r,e=!1){let{inclusiveStart:t,inclusiveEnd:i}=r;return t==null&&(t=r.inclusive),i==null&&(i=r.inclusive),{start:t??e,end:i??e}}function K5(r,e){return r==e||!!(r&&e&&r.compare(e))}function Gr(r,e,t,i=0){let n=t.length-1;n>=0&&t[n]+i>=r?t[n]=Math.max(t[n],e):t.push(r,e)}var Ca=class r extends Bt{constructor(e,t){super(),this.tagName=e,this.attributes=t}eq(e){return e==this||e instanceof r&&this.tagName==e.tagName&&Up(this.attributes,e.attributes)}static create(e){return new r(e.tagName,e.attributes||Aa)}static set(e,t=!1){return le.of(e,t)}};Ca.prototype.startSide=Ca.prototype.endSide=-1;function fo(r){let e;return r.nodeType==11?e=r.getSelection?r:r.ownerDocument:e=r,e.getSelection()}function Ip(r,e){return e?r==e||r.contains(e.nodeType!=1?e.parentNode:e):!1}function ra(r,e){if(!e.anchorNode)return!1;try{return Ip(r,e.anchorNode)}catch{return!1}}function sa(r){return r.nodeType==3?po(r,0,r.nodeValue.length).getClientRects():r.nodeType==1?r.getClientRects():[]}function go(r,e,t,i){return t?$R(r,e,t,i,-1)||$R(r,e,t,i,1):!1}function hn(r){for(var e=0;;e++)if(r=r.previousSibling,!r)return e}function Ia(r){return r.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(r.nodeName)}function $R(r,e,t,i,n){for(;;){if(r==t&&e==i)return!0;if(e==(n<0?0:Zi(r))){if(r.nodeName=="DIV")return!1;let s=r.parentNode;if(!s||s.nodeType!=1)return!1;e=hn(r)+(n<0?0:1),r=s}else if(r.nodeType==1){if(r=r.childNodes[e+(n<0?-1:0)],r.nodeType==1&&r.contentEditable=="false")return!1;e=n<0?Zi(r):0}else return!1}}function Zi(r){return r.nodeType==3?r.nodeValue.length:r.childNodes.length}function la(r,e){let t=e?r.left:r.right;return{left:t,right:t,top:r.top,bottom:r.bottom}}function U5(r){let e=r.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:r.innerWidth,top:0,bottom:r.innerHeight}}function OD(r,e){let t=e.width/r.offsetWidth,i=e.height/r.offsetHeight;return(t>.995&&t<1.005||!isFinite(t)||Math.abs(e.width-r.offsetWidth)<1)&&(t=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(e.height-r.offsetHeight)<1)&&(i=1),{scaleX:t,scaleY:i}}function X5(r,e,t,i,n,s,o,g){let a=r.ownerDocument,A=a.defaultView||window;for(let C=r,I=!1;C&&!I;)if(C.nodeType==1){let l,h=C==a.body,d=1,c=1;if(h)l=U5(A);else{if(/^(fixed|sticky)$/.test(getComputedStyle(C).position)&&(I=!0),C.scrollHeight<=C.clientHeight&&C.scrollWidth<=C.clientWidth){C=C.assignedSlot||C.parentNode;continue}let p=C.getBoundingClientRect();({scaleX:d,scaleY:c}=OD(C,p)),l={left:p.left,right:p.left+C.clientWidth*d,top:p.top,bottom:p.top+C.clientHeight*c}}let f=0,u=0;if(n=="nearest")e.top<l.top?(u=e.top-(l.top+o),t>0&&e.bottom>l.bottom+u&&(u=e.bottom-l.bottom+o)):e.bottom>l.bottom&&(u=e.bottom-l.bottom+o,t<0&&e.top-u<l.top&&(u=e.top-(l.top+o)));else{let p=e.bottom-e.top,v=l.bottom-l.top;u=(n=="center"&&p<=v?e.top+p/2-v/2:n=="start"||n=="center"&&t<0?e.top-o:e.bottom-v+o)-l.top}if(i=="nearest"?e.left<l.left?(f=e.left-(l.left+s),t>0&&e.right>l.right+f&&(f=e.right-l.right+s)):e.right>l.right&&(f=e.right-l.right+s,t<0&&e.left<l.left+f&&(f=e.left-(l.left+s))):f=(i=="center"?e.left+(e.right-e.left)/2-(l.right-l.left)/2:i=="start"==g?e.left-s:e.right-(l.right-l.left)+s)-l.left,f||u)if(h)A.scrollBy(f,u);else{let p=0,v=0;if(u){let m=C.scrollTop;C.scrollTop+=u/c,v=(C.scrollTop-m)*c}if(f){let m=C.scrollLeft;C.scrollLeft+=f/d,p=(C.scrollLeft-m)*d}e={left:e.left-p,top:e.top-v,right:e.right-p,bottom:e.bottom-v},p&&Math.abs(p-f)<1&&(i="nearest"),v&&Math.abs(v-u)<1&&(n="nearest")}if(h)break;(e.top<l.top||e.bottom>l.bottom||e.left<l.left||e.right>l.right)&&(e={left:Math.max(e.left,l.left),right:Math.min(e.right,l.right),top:Math.max(e.top,l.top),bottom:Math.min(e.bottom,l.bottom)}),C=C.assignedSlot||C.parentNode}else if(C.nodeType==11)C=C.host;else break}function Q5(r){let e=r.ownerDocument,t,i;for(let n=r.parentNode;n&&!(n==e.body||t&&i);)if(n.nodeType==1)!i&&n.scrollHeight>n.clientHeight&&(i=n),!t&&n.scrollWidth>n.clientWidth&&(t=n),n=n.assignedSlot||n.parentNode;else if(n.nodeType==11)n=n.host;else break;return{x:t,y:i}}var lp=class{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:i}=e;this.set(t,Math.min(e.anchorOffset,t?Zi(t):0),i,Math.min(e.focusOffset,i?Zi(i):0))}set(e,t,i,n){this.anchorNode=e,this.anchorOffset=t,this.focusNode=i,this.focusOffset=n}},Hn=null;q.safari&&q.safari_version>=26&&(Hn=!1);function RD(r){if(r.setActive)return r.setActive();if(Hn)return r.focus(Hn);let e=[];for(let t=r;t&&(e.push(t,t.scrollTop,t.scrollLeft),t!=t.ownerDocument);t=t.parentNode);if(r.focus(Hn==null?{get preventScroll(){return Hn={preventScroll:!0},!0}}:void 0),!Hn){Hn=!1;for(let t=0;t<e.length;){let i=e[t++],n=e[t++],s=e[t++];i.scrollTop!=n&&(i.scrollTop=n),i.scrollLeft!=s&&(i.scrollLeft=s)}}}var eD;function po(r,e,t=e){let i=eD||(eD=document.createRange());return i.setEnd(r,t),i.setStart(r,e),i}function Zr(r,e,t,i){let n={key:e,code:e,keyCode:t,which:t,cancelable:!0};i&&({altKey:n.altKey,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,metaKey:n.metaKey}=i);let s=new KeyboardEvent("keydown",n);s.synthetic=!0,r.dispatchEvent(s);let o=new KeyboardEvent("keyup",n);return o.synthetic=!0,r.dispatchEvent(o),s.defaultPrevented||o.defaultPrevented}function J5(r){for(;r;){if(r&&(r.nodeType==9||r.nodeType==11&&r.host))return r;r=r.assignedSlot||r.parentNode}return null}function $5(r,e){let t=e.focusNode,i=e.focusOffset;if(!t||e.anchorNode!=t||e.anchorOffset!=i)return!1;for(i=Math.min(i,Zi(t));;)if(i){if(t.nodeType!=1)return!1;let n=t.childNodes[i-1];n.contentEditable=="false"?i--:(t=n,i=Zi(t))}else{if(t==r)return!0;i=hn(t),t=t.parentNode}}function DD(r){return r.scrollTop>Math.max(1,r.scrollHeight-r.clientHeight-4)}function PD(r,e){for(let t=r,i=e;;){if(t.nodeType==3&&i>0)return{node:t,offset:i};if(t.nodeType==1&&i>0){if(t.contentEditable=="false")return null;t=t.childNodes[i-1],i=Zi(t)}else if(t.parentNode&&!Ia(t))i=hn(t),t=t.parentNode;else return null}}function MD(r,e){for(let t=r,i=e;;){if(t.nodeType==3&&i<t.nodeValue.length)return{node:t,offset:i};if(t.nodeType==1&&i<t.childNodes.length){if(t.contentEditable=="false")return null;t=t.childNodes[i],i=0}else if(t.parentNode&&!Ia(t))i=hn(t)+1,t=t.parentNode;else return null}}var Ei=class r{constructor(e,t,i=!0){this.node=e,this.offset=t,this.precise=i}static before(e,t){return new r(e.parentNode,hn(e),t)}static after(e,t){return new r(e.parentNode,hn(e)+1,t)}},ye=function(r){return r[r.LTR=0]="LTR",r[r.RTL=1]="RTL",r}(ye||(ye={})),Un=ye.LTR,Xp=ye.RTL;function ND(r){let e=[];for(let t=0;t<r.length;t++)e.push(1<<+r[t]);return e}var eV=ND("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),tV=ND("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),hp=Object.create(null),Si=[];for(let r of["()","[]","{}"]){let e=r.charCodeAt(0),t=r.charCodeAt(1);hp[e]=t,hp[t]=-e}function _D(r){return r<=247?eV[r]:1424<=r&&r<=1524?2:1536<=r&&r<=1785?tV[r-1536]:1774<=r&&r<=2220?4:8192<=r&&r<=8204?256:64336<=r&&r<=65023?4:1}var iV=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/,$t=class{get dir(){return this.level%2?Xp:Un}constructor(e,t,i){this.from=e,this.to=t,this.level=i}side(e,t){return this.dir==t==e?this.to:this.from}forward(e,t){return e==(this.dir==t)}static find(e,t,i,n){let s=-1;for(let o=0;o<e.length;o++){let g=e[o];if(g.from<=t&&g.to>=t){if(g.level==i)return o;(s<0||(n!=0?n<0?g.from<t:g.to>t:e[s].level>g.level))&&(s=o)}}if(s<0)throw new RangeError("Index out of range");return s}};function BD(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++){let i=r[t],n=e[t];if(i.from!=n.from||i.to!=n.to||i.direction!=n.direction||!BD(i.inner,n.inner))return!1}return!0}var fe=[];function nV(r,e,t,i,n){for(let s=0;s<=i.length;s++){let o=s?i[s-1].to:e,g=s<i.length?i[s].from:t,a=s?256:n;for(let A=o,C=a,I=a;A<g;A++){let l=_D(r.charCodeAt(A));l==512?l=C:l==8&&I==4&&(l=16),fe[A]=l==4?2:l,l&7&&(I=l),C=l}for(let A=o,C=a,I=a;A<g;A++){let l=fe[A];if(l==128)A<g-1&&C==fe[A+1]&&C&24?l=fe[A]=C:fe[A]=256;else if(l==64){let h=A+1;for(;h<g&&fe[h]==64;)h++;let d=A&&C==8||h<t&&fe[h]==8?I==1?1:8:256;for(let c=A;c<h;c++)fe[c]=d;A=h-1}else l==8&&I==1&&(fe[A]=1);C=l,l&7&&(I=l)}}}function rV(r,e,t,i,n){let s=n==1?2:1;for(let o=0,g=0,a=0;o<=i.length;o++){let A=o?i[o-1].to:e,C=o<i.length?i[o].from:t;for(let I=A,l,h,d;I<C;I++)if(h=hp[l=r.charCodeAt(I)])if(h<0){for(let c=g-3;c>=0;c-=3)if(Si[c+1]==-h){let f=Si[c+2],u=f&2?n:f&4?f&1?s:n:0;u&&(fe[I]=fe[Si[c]]=u),g=c;break}}else{if(Si.length==189)break;Si[g++]=I,Si[g++]=l,Si[g++]=a}else if((d=fe[I])==2||d==1){let c=d==n;a=c?0:1;for(let f=g-3;f>=0;f-=3){let u=Si[f+2];if(u&2)break;if(c)Si[f+2]|=2;else{if(u&4)break;Si[f+2]|=4}}}}}function sV(r,e,t,i){for(let n=0,s=i;n<=t.length;n++){let o=n?t[n-1].to:r,g=n<t.length?t[n].from:e;for(let a=o;a<g;){let A=fe[a];if(A==256){let C=a+1;for(;;)if(C==g){if(n==t.length)break;C=t[n++].to,g=n<t.length?t[n].from:e}else if(fe[C]==256)C++;else break;let I=s==1,l=(C<e?fe[C]:i)==1,h=I==l?I?1:2:i;for(let d=C,c=n,f=c?t[c-1].to:r;d>a;)d==f&&(d=t[--c].from,f=c?t[c-1].to:r),fe[--d]=h;a=C}else s=A,a++}}}function dp(r,e,t,i,n,s,o){let g=i%2?2:1;if(i%2==n%2)for(let a=e,A=0;a<t;){let C=!0,I=!1;if(A==s.length||a<s[A].from){let c=fe[a];c!=g&&(C=!1,I=c==16)}let l=!C&&g==1?[]:null,h=C?i:i+1,d=a;e:for(;;)if(A<s.length&&d==s[A].from){if(I)break e;let c=s[A];if(!C)for(let f=c.to,u=A+1;;){if(f==t)break e;if(u<s.length&&s[u].from==f)f=s[u++].to;else{if(fe[f]==g)break e;break}}if(A++,l)l.push(c);else{c.from>a&&o.push(new $t(a,c.from,h));let f=c.direction==Un!=!(h%2);cp(r,f?i+1:i,n,c.inner,c.from,c.to,o),a=c.to}d=c.to}else{if(d==t||(C?fe[d]!=g:fe[d]==g))break;d++}l?dp(r,a,d,i+1,n,l,o):a<d&&o.push(new $t(a,d,h)),a=d}else for(let a=t,A=s.length;a>e;){let C=!0,I=!1;if(!A||a>s[A-1].to){let c=fe[a-1];c!=g&&(C=!1,I=c==16)}let l=!C&&g==1?[]:null,h=C?i:i+1,d=a;e:for(;;)if(A&&d==s[A-1].to){if(I)break e;let c=s[--A];if(!C)for(let f=c.from,u=A;;){if(f==e)break e;if(u&&s[u-1].to==f)f=s[--u].from;else{if(fe[f-1]==g)break e;break}}if(l)l.push(c);else{c.to<a&&o.push(new $t(c.to,a,h));let f=c.direction==Un!=!(h%2);cp(r,f?i+1:i,n,c.inner,c.from,c.to,o),a=c.from}d=c.from}else{if(d==e||(C?fe[d-1]!=g:fe[d-1]==g))break;d--}l?dp(r,d,a,i+1,n,l,o):d<a&&o.push(new $t(d,a,h)),a=d}}function cp(r,e,t,i,n,s,o){let g=e%2?2:1;nV(r,n,s,i,g),rV(r,n,s,i,g),sV(n,s,i,g),dp(r,n,s,e,t,i,o)}function oV(r,e,t){if(!r)return[new $t(0,0,e==Xp?1:0)];if(e==Un&&!t.length&&!iV.test(r))return FD(r.length);if(t.length)for(;r.length>fe.length;)fe[fe.length]=256;let i=[],n=e==Un?0:1;return cp(r,n,n,t,0,r.length,i),i}function FD(r){return[new $t(0,r,0)]}var LD="";function gV(r,e,t,i,n){var s;let o=i.head-r.from,g=$t.find(e,o,(s=i.bidiLevel)!==null&&s!==void 0?s:-1,i.assoc),a=e[g],A=a.side(n,t);if(o==A){let l=g+=n?1:-1;if(l<0||l>=e.length)return null;a=e[g=l],o=a.side(!n,t),A=a.side(n,t)}let C=Ye(r.text,o,a.forward(n,t));(C<a.from||C>a.to)&&(C=A),LD=r.text.slice(Math.min(o,C),Math.max(o,C));let I=g==(n?e.length-1:0)?null:e[g+(n?1:-1)];return I&&C==A&&I.level+(n?0:1)<a.level?N.cursor(I.side(!n,t)+r.from,I.forward(n,t)?1:-1,I.level):N.cursor(C+r.from,a.forward(n,t)?-1:1,a.level)}function aV(r,e,t){for(let i=e;i<t;i++){let n=_D(r.charCodeAt(i));if(n==1)return Un;if(n==2||n==4)return Xp}return Un}var zD=G.define(),qD=G.define(),VD=G.define(),WD=G.define(),up=G.define(),GD=G.define(),ZD=G.define(),Qp=G.define(),Jp=G.define(),jD=G.define({combine:r=>r.some(e=>e)}),AV=G.define({combine:r=>r.some(e=>e)}),HD=G.define(),ao=class r{constructor(e,t="nearest",i="nearest",n=5,s=5,o=!1){this.range=e,this.y=t,this.x=i,this.yMargin=n,this.xMargin=s,this.isSnapshot=o}map(e){return e.empty?this:new r(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new r(N.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}},Ug=de.define({map:(r,e)=>r.map(e)}),YD=de.define();function St(r,e,t){let i=r.facet(WD);i.length?i[0](e):window.onerror&&window.onerror(String(e),t,void 0,void 0,e)||(t?console.error(t+":",e):console.error(e))}var Gi=G.define({combine:r=>r.length?r[0]:!0}),CV=0,qr=G.define({combine(r){return r.filter((e,t)=>{for(let i=0;i<t;i++)if(r[i].plugin==e.plugin)return!1;return!0})}}),ti=class r{constructor(e,t,i,n,s){this.id=e,this.create=t,this.domEventHandlers=i,this.domEventObservers=n,this.baseExtensions=s(this),this.extension=this.baseExtensions.concat(qr.of({plugin:this,arg:void 0}))}of(e){return this.baseExtensions.concat(qr.of({plugin:this,arg:e}))}static define(e,t){let{eventHandlers:i,eventObservers:n,provide:s,decorations:o}=t||{};return new r(CV++,e,i,n,g=>{let a=[];return o&&a.push(Ta.of(A=>{let C=A.plugin(g);return C?o(C):oe.none})),s&&a.push(s(g)),a})}static fromClass(e,t){return r.define((i,n)=>new e(i,n),t)}},Ao=class{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}get plugin(){return this.spec&&this.spec.plugin}update(e){if(this.value){if(this.mustUpdate){let t=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(t)}catch(i){if(St(t.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.plugin.create(e,this.spec.arg)}catch(t){St(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(!((t=this.value)===null||t===void 0)&&t.destroy)try{this.value.destroy()}catch(i){St(e.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}},KD=G.define(),$p=G.define(),Ta=G.define(),UD=G.define(),em=G.define(),mo=G.define(),XD=G.define();function tD(r,e){let t=r.state.facet(XD);if(!t.length)return t;let i=t.map(s=>s instanceof Function?s(r):s),n=[];return le.spans(i,e.from,e.to,{point(){},span(s,o,g,a){let A=s-e.from,C=o-e.from,I=n;for(let l=g.length-1;l>=0;l--,a--){let h=g[l].spec.bidiIsolate,d;if(h==null&&(h=aV(e.text,A,C)),a>0&&I.length&&(d=I[I.length-1]).to==A&&d.direction==h)d.to=C,I=d.inner;else{let c={from:A,to:C,direction:h,inner:[]};I.push(c),I=c.inner}}}}),n}var QD=G.define();function tm(r){let e=0,t=0,i=0,n=0;for(let s of r.state.facet(QD)){let o=s(r);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(t=Math.max(t,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(n=Math.max(n,o.bottom)))}return{left:e,right:t,top:i,bottom:n}}var ro=G.define(),ei=class r{constructor(e,t,i,n){this.fromA=e,this.toA=t,this.fromB=i,this.toB=n}join(e){return new r(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,i=this;for(;t>0;t--){let n=e[t-1];if(!(n.fromA>i.toA)){if(n.toA<i.fromA)break;i=i.join(n),e.splice(t-1,1)}}return e.splice(t,0,i),e}static extendWithRanges(e,t){if(t.length==0)return e;let i=[];for(let n=0,s=0,o=0;;){let g=n<e.length?e[n].fromB:1e9,a=s<t.length?t[s]:1e9,A=Math.min(g,a);if(A==1e9)break;let C=A+o,I=A,l=C;for(;;)if(s<t.length&&t[s]<=I){let h=t[s+1];s+=2,I=Math.max(I,h);for(let d=n;d<e.length&&e[d].fromB<=I;d++)o=e[d].toA-e[d].toB;l=Math.max(l,h+o)}else if(n<e.length&&e[n].fromB<=I){let h=e[n++];I=Math.max(I,h.toB),l=Math.max(l,h.toA),o=h.toA-h.toB}else break;i.push(new r(C,l,A,I))}return i}},ha=class r{constructor(e,t,i){this.view=e,this.state=t,this.transactions=i,this.flags=0,this.startState=e.state,this.changes=lt.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let n=[];this.changes.iterChangedRanges((s,o,g,a)=>n.push(new ei(s,o,g,a))),this.changedRanges=n}static create(e,t,i){return new r(e,t,i)}get viewportChanged(){return(this.flags&4)>0}get viewportMoved(){return(this.flags&8)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&18)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}},IV=[],_e=class{constructor(e,t,i=0){this.dom=e,this.length=t,this.flags=i,this.parent=null,e.cmTile=this}get breakAfter(){return this.flags&1}get children(){return IV}isWidget(){return!1}get isHidden(){return!1}isComposite(){return!1}isLine(){return!1}isText(){return!1}isBlock(){return!1}get domAttrs(){return null}sync(e){if(this.flags|=2,this.flags&4){this.flags&=-5;let t=this.domAttrs;t&&H5(this.dom,t)}}toString(){return this.constructor.name+(this.children.length?`(${this.children})`:"")+(this.breakAfter?"#":"")}destroy(){this.parent=null}setDOM(e){this.dom=e,e.cmTile=this}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e,t=this.posAtStart){let i=t;for(let n of this.children){if(n==e)return i;i+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}covers(e){return!0}coordsIn(e,t){return null}domPosFor(e,t){let i=hn(this.dom),n=this.length?e>0:t>0;return new Ei(this.parent.dom,i+(n?1:0),e==0||e==this.length)}markDirty(e){this.flags&=-3,e&&(this.flags|=4),this.parent&&this.parent.flags&2&&this.parent.markDirty(!1)}get overrideDOMText(){return null}get root(){for(let e=this;e;e=e.parent)if(e instanceof Hr)return e;return null}static get(e){return e.cmTile}},jr=class extends _e{constructor(e){super(e,0),this._children=[]}isComposite(){return!0}get children(){return this._children}get lastChild(){return this.children.length?this.children[this.children.length-1]:null}append(e){this.children.push(e),e.parent=this}sync(e){if(this.flags&2)return;super.sync(e);let t=this.dom,i=null,n,s=e?.node==t?e:null,o=0;for(let g of this.children){if(g.sync(e),o+=g.length+g.breakAfter,n=i?i.nextSibling:t.firstChild,s&&n!=g.dom&&(s.written=!0),g.dom.parentNode==t)for(;n&&n!=g.dom;)n=iD(n);else t.insertBefore(g.dom,n);i=g.dom}for(n=i?i.nextSibling:t.firstChild,s&&n&&(s.written=!0);n;)n=iD(n);this.length=o}};function iD(r){let e=r.nextSibling;return r.parentNode.removeChild(r),e}var Hr=class extends jr{constructor(e,t){super(t),this.view=e}owns(e){for(;e;e=e.parent)if(e==this)return!0;return!1}isBlock(){return!0}nearest(e){for(;;){if(!e)return null;let t=_e.get(e);if(t&&this.owns(t))return t;e=e.parentNode}}blockTiles(e){for(let t=[],i=this,n=0,s=0;;)if(n==i.children.length){if(!t.length)return;i=i.parent,i.breakAfter&&s++,n=t.pop()}else{let o=i.children[n++];if(o instanceof Cn)t.push(n),i=o,n=0;else{let g=s+o.length,a=e(o,s);if(a!==void 0)return a;s=g+o.breakAfter}}}resolveBlock(e,t){let i,n=-1,s,o=-1;if(this.blockTiles((g,a)=>{let A=a+g.length;if(e>=a&&e<=A){if(g.isWidget()&&t>=-1&&t<=1){if(g.flags&32)return!0;g.flags&16&&(i=void 0)}(a<e||e==A&&(t<-1?g.length:g.covers(1)))&&(!i||!g.isWidget()&&i.isWidget())&&(i=g,n=e-a),(A>e||e==a&&(t>1?g.length:g.covers(-1)))&&(!s||!g.isWidget()&&s.isWidget())&&(s=g,o=e-a)}}),!i&&!s)throw new Error("No tile at position "+e);return i&&t<0||!s?{tile:i,offset:n}:{tile:s,offset:o}}},Cn=class r extends jr{constructor(e,t){super(e),this.wrapper=t}isBlock(){return!0}covers(e){return this.children.length?e<0?this.children[0].covers(-1):this.lastChild.covers(1):!1}get domAttrs(){return this.wrapper.attributes}static of(e,t){let i=new r(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}},Yr=class r extends jr{constructor(e,t){super(e),this.attrs=t}isLine(){return!0}static start(e,t,i){let n=new r(t||document.createElement("div"),e);return(!t||!i)&&(n.flags|=4),n}get domAttrs(){return this.attrs}resolveInline(e,t,i){let n=null,s=-1,o=null,g=-1;function a(C,I){for(let l=0,h=0;l<C.children.length&&h<=I;l++){let d=C.children[l],c=h+d.length;c>=I&&(d.isComposite()?a(d,I-h):(!o||o.isHidden&&(t>0||i&&hV(o,d)))&&(c>I||d.flags&32)?(o=d,g=I-h):(h<I||d.flags&16&&!d.isHidden)&&(n=d,s=I-h)),h=c}}a(this,e);let A=(t<0?n:o)||n||o;return A?{tile:A,offset:A==n?s:g}:null}coordsIn(e,t){let i=this.resolveInline(e,t,!0);return i?i.tile.coordsIn(Math.max(0,i.offset),t):lV(this)}domIn(e,t){let i=this.resolveInline(e,t);if(i){let{tile:n,offset:s}=i;if(this.dom.contains(n.dom))return n.isText()?new Ei(n.dom,Math.min(n.dom.nodeValue.length,s)):n.domPosFor(s,n.flags&16?1:n.flags&32?-1:t);let o=i.tile.parent,g=!1;for(let a of o.children){if(g)return new Ei(a.dom,0);a==i.tile&&(g=!0)}}return new Ei(this.dom,0)}};function lV(r){let e=r.dom.lastChild;if(!e)return r.dom.getBoundingClientRect();let t=sa(e);return t[t.length-1]||null}function hV(r,e){let t=r.coordsIn(0,1),i=e.coordsIn(0,1);return t&&i&&i.top<t.bottom}var mt=class r extends jr{constructor(e,t){super(e),this.mark=t}get domAttrs(){return this.mark.attrs}static of(e,t){let i=new r(t||document.createElement(e.tagName),e);return t||(i.flags|=4),i}},Yn=class r extends _e{constructor(e,t){super(e,t.length),this.text=t}sync(e){this.flags&2||(super.sync(e),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text))}isText(){return!0}toString(){return JSON.stringify(this.text)}coordsIn(e,t){let i=this.dom.nodeValue.length;e>i&&(e=i);let n=e,s=e,o=0;e==0&&t<0||e==i&&t>=0?q.chrome||q.gecko||(e?(n--,o=1):s<i&&(s++,o=-1)):t<0?n--:s<i&&s++;let g=po(this.dom,n,s).getClientRects();if(!g.length)return null;let a=g[(o?o<0:t>=0)?0:g.length-1];return q.safari&&!o&&a.width==0&&(a=Array.prototype.find.call(g,A=>A.width)||a),o?la(a,o<0):a||null}static of(e,t){let i=new r(t||document.createTextNode(e),e);return t||(i.flags|=2),i}},Xn=class r extends _e{constructor(e,t,i,n){super(e,t,n),this.widget=i}isWidget(){return!0}get isHidden(){return this.widget.isHidden}covers(e){return this.flags&48?!1:(this.flags&(e<0?64:128))>0}coordsIn(e,t){return this.coordsInWidget(e,t,!1)}coordsInWidget(e,t,i){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;if(i)return la(this.dom.getBoundingClientRect(),this.length?e==0:t<=0);{let s=this.dom.getClientRects(),o=null;if(!s.length)return null;let g=this.flags&16?!0:this.flags&32?!1:e>0;for(let a=g?s.length-1:0;o=s[a],!(e>0?a==0:a==s.length-1||o.top<o.bottom);a+=g?-1:1);return la(o,!g)}}get overrideDOMText(){if(!this.length)return re.empty;let{root:e}=this;if(!e)return re.empty;let t=this.posAtStart;return e.view.state.doc.slice(t,t+this.length)}destroy(){super.destroy(),this.widget.destroy(this.dom)}static of(e,t,i,n,s){return s||(s=e.toDOM(t),e.editable||(s.contentEditable="false")),new r(s,i,e,n)}},Kr=class extends _e{constructor(e){let t=document.createElement("img");t.className="cm-widgetBuffer",t.setAttribute("aria-hidden","true"),super(t,0,e)}get isHidden(){return!0}get overrideDOMText(){return re.empty}coordsIn(e){return this.dom.getBoundingClientRect()}},fp=class{constructor(e){this.index=0,this.beforeBreak=!1,this.parents=[],this.tile=e}advance(e,t,i){let{tile:n,index:s,beforeBreak:o,parents:g}=this;for(;e||t>0;)if(n.isComposite())if(o){if(!e)break;i&&i.break(),e--,o=!1}else if(s==n.children.length){if(!e&&!g.length)break;i&&i.leave(n),o=!!n.breakAfter,{tile:n,index:s}=g.pop(),s++}else{let a=n.children[s],A=a.breakAfter;(t>0?a.length<=e:a.length<e)&&(!i||i.skip(a,0,a.length)!==!1||!a.isComposite)?(o=!!A,s++,e-=a.length):(g.push({tile:n,index:s}),n=a,s=0,i&&a.isComposite()&&i.enter(a))}else if(s==n.length)o=!!n.breakAfter,{tile:n,index:s}=g.pop(),s++;else if(e){let a=Math.min(e,n.length-s);i&&i.skip(n,s,s+a),e-=a,s+=a}else break;return this.tile=n,this.index=s,this.beforeBreak=o,this}get root(){return this.parents.length?this.parents[0].tile:this.tile}},pp=class{constructor(e,t,i,n){this.from=e,this.to=t,this.wrapper=i,this.rank=n}},mp=class{constructor(e,t,i){this.cache=e,this.root=t,this.blockWrappers=i,this.curLine=null,this.lastBlock=null,this.afterWidget=null,this.pos=0,this.wrappers=[],this.wrapperPos=0}addText(e,t,i,n){var s;this.flushBuffer();let o=this.ensureMarks(t,i),g=o.lastChild;if(g&&g.isText()&&!(g.flags&8)){this.cache.reused.set(g,2);let a=o.children[o.children.length-1]=new Yn(g.dom,g.text+e);a.parent=o}else o.append(n||Yn.of(e,(s=this.cache.find(Yn))===null||s===void 0?void 0:s.dom));this.pos+=e.length,this.afterWidget=null}addComposition(e,t){let i=this.curLine;i.dom!=t.line.dom&&(i.setDOM(this.cache.reused.has(t.line)?tp(t.line.dom):t.line.dom),this.cache.reused.set(t.line,2));let n=i;for(let g=t.marks.length-1;g>=0;g--){let a=t.marks[g],A=n.lastChild;if(A instanceof mt&&A.mark.eq(a.mark))A.dom!=a.dom&&A.setDOM(tp(a.dom)),n=A;else{if(this.cache.reused.get(a)){let I=_e.get(a.dom);I&&I.setDOM(tp(a.dom))}let C=mt.of(a.mark,a.dom);n.append(C),n=C}this.cache.reused.set(a,2)}let s=_e.get(e.text);s&&this.cache.reused.set(s,2);let o=new Yn(e.text,e.text.nodeValue);o.flags|=8,n.append(o)}addInlineWidget(e,t,i){let n=this.afterWidget&&e.flags&48&&(this.afterWidget.flags&48)==(e.flags&48);n||this.flushBuffer();let s=this.ensureMarks(t,i);!n&&!(e.flags&16)&&s.append(this.getBuffer(1)),s.append(e),this.pos+=e.length,this.afterWidget=e}addMark(e,t,i){this.flushBuffer(),this.ensureMarks(t,i).append(e),this.pos+=e.length,this.afterWidget=null}addBlockWidget(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}continueWidget(e){let t=this.afterWidget||this.lastBlock;t.length+=e,this.pos+=e}addLineStart(e,t){var i;e||(e=JD);let n=Yr.start(e,t||((i=this.cache.find(Yr))===null||i===void 0?void 0:i.dom),!!t);this.getBlockPos().append(this.lastBlock=this.curLine=n)}addLine(e){this.getBlockPos().append(e),this.pos+=e.length,this.lastBlock=e,this.endLine()}addBreak(){this.lastBlock.flags|=1,this.endLine(),this.pos++}addLineStartIfNotCovered(e){this.blockPosCovered()||this.addLineStart(e)}ensureLine(e){this.curLine||this.addLineStart(e)}ensureMarks(e,t){var i;let n=this.curLine;for(let s=e.length-1;s>=0;s--){let o=e[s],g;if(t>0&&(g=n.lastChild)&&g instanceof mt&&g.mark.eq(o))n=g,t--;else{let a=mt.of(o,(i=this.cache.find(mt,A=>A.mark.eq(o)))===null||i===void 0?void 0:i.dom);n.append(a),n=a,t=0}}return n}endLine(){if(this.curLine){this.flushBuffer();let e=this.curLine.lastChild;(!e||!nD(this.curLine,!1)||e.dom.nodeName!="BR"&&e.isWidget()&&!(q.ios&&nD(this.curLine,!0)))&&this.curLine.append(this.cache.findWidget(ip,0,32)||new Xn(ip.toDOM(),0,ip,32)),this.curLine=this.afterWidget=null}}updateBlockWrappers(){this.wrapperPos>this.pos+1e4&&(this.blockWrappers.goto(this.pos),this.wrappers.length=0);for(let e=this.wrappers.length-1;e>=0;e--)this.wrappers[e].to<this.pos&&this.wrappers.splice(e,1);for(let e=this.blockWrappers;e.value&&e.from<=this.pos;e.next())if(e.to>=this.pos){let t=new pp(e.from,e.to,e.value,e.rank),i=this.wrappers.length;for(;i>0&&(this.wrappers[i-1].rank-t.rank||this.wrappers[i-1].to-t.to)<0;)i--;this.wrappers.splice(i,0,t)}this.wrapperPos=this.pos}getBlockPos(){var e;this.updateBlockWrappers();let t=this.root;for(let i of this.wrappers){let n=t.lastChild;if(i.from<this.pos&&n instanceof Cn&&n.wrapper.eq(i.wrapper))t=n;else{let s=Cn.of(i.wrapper,(e=this.cache.find(Cn,o=>o.wrapper.eq(i.wrapper)))===null||e===void 0?void 0:e.dom);t.append(s),t=s}}return t}blockPosCovered(){let e=this.lastBlock;return e!=null&&!e.breakAfter&&(!e.isWidget()||(e.flags&160)>0)}getBuffer(e){let t=2|(e<0?16:32),i=this.cache.find(Kr,void 0,1);return i&&(i.flags=t),i||new Kr(t)}flushBuffer(){this.afterWidget&&!(this.afterWidget.flags&32)&&(this.afterWidget.parent.append(this.getBuffer(-1)),this.afterWidget=null)}},vp=class{constructor(e){this.skipCount=0,this.text="",this.textOff=0,this.cursor=e.iter()}skip(e){this.textOff+e<=this.text.length?this.textOff+=e:(this.skipCount+=e-(this.text.length-this.textOff),this.text="",this.textOff=0)}next(e){if(this.textOff==this.text.length){let{value:n,lineBreak:s,done:o}=this.cursor.next(this.skipCount);if(this.skipCount=0,o)throw new Error("Ran out of text content when drawing inline views");this.text=n;let g=this.textOff=Math.min(e,n.length);return s?null:n.slice(0,g)}let t=Math.min(this.text.length,this.textOff+e),i=this.text.slice(this.textOff,t);return this.textOff=t,i}},da=[Xn,Yr,Yn,mt,Kr,Cn,Hr];for(let r=0;r<da.length;r++)da[r].bucket=r;var bp=class{constructor(e){this.view=e,this.buckets=da.map(()=>[]),this.index=da.map(()=>0),this.reused=new Map}add(e){e.demo&&console.log("Add widget to cache");let t=e.constructor.bucket,i=this.buckets[t];i.length<6?i.push(e):i[this.index[t]=(this.index[t]+1)%6]=e}find(e,t,i=2){let n=e.bucket,s=this.buckets[n],o=this.index[n];for(let g=s.length-1;g>=0;g--){let a=(g+o)%s.length,A=s[a];if((!t||t(A))&&!this.reused.has(A))return s.splice(a,1),a<o&&this.index[n]--,this.reused.set(A,i),A}return null}findWidget(e,t,i){let n=this.buckets[0];if(e.demo&&console.log("looking for widget",e,"in cache",n.slice()),n.length)for(let s=0,o=0;;s++){if(s==n.length){if(o)return null;o=1,s=0}let g=n[s];if(!this.reused.has(g)&&(o==0?g.widget.compare(e):g.widget.constructor==e.constructor&&e.updateDOM(g.dom,this.view)))return n.splice(s,1),s<this.index[0]&&this.index[0]--,g.length==t&&(g.flags&497)==i?(this.reused.set(g,1),g):(this.reused.set(g,2),new Xn(g.dom,t,e,g.flags&-498|i))}}reuse(e){return this.reused.set(e,1),e}maybeReuse(e,t=2){if(!this.reused.has(e))return this.reused.set(e,t),e.dom}clear(){for(let e=0;e<this.buckets.length;e++)this.buckets[e].length=this.index[e]=0}},yp=class{constructor(e,t,i,n,s){this.view=e,this.decorations=n,this.disallowBlockEffectsFor=s,this.openWidget=!1,this.openMarks=0,this.cache=new bp(e),this.text=new vp(e.state.doc),this.builder=new mp(this.cache,new Hr(e,e.contentDOM),le.iter(i)),this.cache.reused.set(t,2),this.old=new fp(t),this.reuseWalker={skip:(o,g,a)=>{if(this.cache.add(o),o.isComposite())return!1},enter:o=>this.cache.add(o),leave:()=>{},break:()=>{}}}run(e,t){let i=t&&this.getCompositionContext(t.text);for(let n=0,s=0,o=0;;){let g=o<e.length?e[o++]:null,a=g?g.fromA:this.old.root.length;if(a>n){let A=a-n;this.preserve(A,!o,!g),n=a,s+=A}if(!g)break;t&&g.fromA<=t.range.fromA&&g.toA>=t.range.toA?(this.forward(g.fromA,t.range.fromA),this.emit(s,t.range.fromB),this.cache.clear(),this.builder.addComposition(t,i),this.text.skip(t.range.toB-t.range.fromB),this.forward(t.range.fromA,g.toA),this.emit(t.range.toB,g.toB)):(this.forward(g.fromA,g.toA),this.emit(s,g.toB)),s=g.toB,n=g.toA}return this.builder.curLine&&this.builder.endLine(),this.builder.root}preserve(e,t,i){let n=uV(this.old),s=this.openMarks;this.old.advance(e,i?1:-1,{skip:(o,g,a)=>{if(o.isWidget())if(this.openWidget)this.builder.continueWidget(a-g);else{let A=a>0||g<o.length?Xn.of(o.widget,this.view,a-g,o.flags&496,this.cache.maybeReuse(o)):this.cache.reuse(o);A.flags&256?(A.flags&=-2,this.builder.addBlockWidget(A)):(this.builder.ensureLine(null),this.builder.addInlineWidget(A,n,s),s=n.length)}else if(o.isText())this.builder.ensureLine(null),!g&&a==o.length?this.builder.addText(o.text,n,s,this.cache.reuse(o)):(this.cache.add(o),this.builder.addText(o.text.slice(g,a),n,s)),s=n.length;else if(o.isLine())o.flags&=-2,this.cache.reused.set(o,1),this.builder.addLine(o);else if(o instanceof Kr)this.cache.add(o);else if(o instanceof mt)this.builder.ensureLine(null),this.builder.addMark(o,n,s),this.cache.reused.set(o,1),s=n.length;else return!1;this.openWidget=!1},enter:o=>{o.isLine()?this.builder.addLineStart(o.attrs,this.cache.maybeReuse(o)):(this.cache.add(o),o instanceof mt&&n.unshift(o.mark)),this.openWidget=!1},leave:o=>{o.isLine()?n.length&&(n.length=s=0):o instanceof mt&&(n.shift(),s=Math.min(s,n.length))},break:()=>{this.builder.addBreak(),this.openWidget=!1}}),this.text.skip(e)}emit(e,t){let i=null,n=this.builder,s=0,o=le.spans(this.decorations,e,t,{point:(g,a,A,C,I,l)=>{if(A instanceof Kn){if(this.disallowBlockEffectsFor[l]){if(A.block)throw new RangeError("Block decorations may not be specified via plugins");if(a>this.view.state.doc.lineAt(g).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}if(s=C.length,I>C.length)n.continueWidget(a-g);else{let h=A.widget||(A.block?dn.block:dn.inline),d=dV(A),c=this.cache.findWidget(h,a-g,d)||Xn.of(h,this.view,a-g,d);A.block?(A.startSide>0&&n.addLineStartIfNotCovered(i),n.addBlockWidget(c)):(n.ensureLine(i),n.addInlineWidget(c,C,I))}i=null}else i=cV(i,A);a>g&&this.text.skip(a-g)},span:(g,a,A,C)=>{for(let I=g;I<a;){let l=this.text.next(Math.min(512,a-I));l==null?(n.addLineStartIfNotCovered(i),n.addBreak(),I++):(n.ensureLine(i),n.addText(l,A,C),I+=l.length),i=null}}});n.addLineStartIfNotCovered(i),this.openWidget=o>s,this.openMarks=o}forward(e,t){t-e<=10?this.old.advance(t-e,1,this.reuseWalker):(this.old.advance(5,-1,this.reuseWalker),this.old.advance(t-e-10,-1),this.old.advance(5,1,this.reuseWalker))}getCompositionContext(e){let t=[],i=null;for(let n=e.parentNode;;n=n.parentNode){let s=_e.get(n);if(n==this.view.contentDOM)break;s instanceof mt?t.push(s):s?.isLine()?i=s:n.nodeName=="DIV"&&!i&&n!=this.view.contentDOM?i=new Yr(n,JD):t.push(mt.of(new co({tagName:n.nodeName.toLowerCase(),attributes:Y5(n)}),n))}return{line:i,marks:t}}};function nD(r,e){let t=i=>{for(let n of i.children)if((e?n.isText():n.length)||t(n))return!0;return!1};return t(r)}function dV(r){let e=r.isReplace?(r.startSide<0?64:0)|(r.endSide>0?128:0):r.startSide>0?32:16;return r.block&&(e|=256),e}var JD={class:"cm-line"};function cV(r,e){let t=e.spec.attributes,i=e.spec.class;return!t&&!i||(r||(r={class:"cm-line"}),t&&Kp(t,r),i&&(r.class+=" "+i)),r}function uV(r){let e=[];for(let t=r.parents.length;t>1;t--){let i=t==r.parents.length?r.tile:r.parents[t].tile;i instanceof mt&&e.push(i.mark)}return e}function tp(r){let e=_e.get(r);return e&&e.setDOM(r.cloneNode()),r}var dn=class extends ln{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}};dn.inline=new dn("span");dn.block=new dn("div");var ip=new class extends ln{toDOM(){return document.createElement("br")}get isHidden(){return!0}get editable(){return!0}},ca=class{constructor(e){this.view=e,this.decorations=[],this.blockWrappers=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.editContextFormatting=oe.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.updateDeco(),this.tile=new Hr(e,e.contentDOM),this.updateInner([new ei(0,0,0,e.state.doc.length)],null)}update(e){var t;let i=e.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:C,toA:I})=>I<this.minWidthFrom||C>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let n=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((t=this.domChanged)===null||t===void 0)&&t.newSel?n=this.domChanged.newSel.head:!xV(e.changes,this.hasComposition)&&!e.selectionSet&&(n=e.state.selection.main.head));let s=n>-1?pV(this.view,e.changes,n):null;if(this.domChanged=null,this.hasComposition){let{from:C,to:I}=this.hasComposition;i=new ei(C,I,e.changes.mapPos(C,-1),e.changes.mapPos(I,1)).addToSet(i.slice())}this.hasComposition=s?{from:s.range.fromB,to:s.range.toB}:null,(q.ie||q.chrome)&&!s&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,g=this.blockWrappers;this.updateDeco();let a=bV(o,this.decorations,e.changes);a.length&&(i=ei.extendWithRanges(i,a));let A=yV(g,this.blockWrappers,e.changes);return A.length&&(i=ei.extendWithRanges(i,A)),s&&!i.some(C=>C.fromA<=s.range.fromA&&C.toA>=s.range.toA)&&(i=s.range.addToSet(i.slice())),this.tile.flags&2&&i.length==0?!1:(this.updateInner(i,s),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t){this.view.viewState.mustMeasureContent=!0;let{observer:i}=this.view;i.ignore(()=>{if(t||e.length){let o=this.tile,g=new yp(this.view,o,this.blockWrappers,this.decorations,this.dynamicDecorationMap);this.tile=g.run(e,t),wp(o,g.cache.reused)}this.tile.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.tile.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=q.chrome||q.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.tile.sync(s),s&&(s.written||i.selectionRange.focusNode!=s.node||!this.tile.dom.contains(s.node))&&(this.forceSelection=!0),this.tile.dom.style.height=""});let n=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let s of this.tile.children)s.isWidget()&&s.widget instanceof Co&&n.push(s.dom);i.updateGaps(n)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let t of e.transactions)for(let i of t.effects)i.is(YD)&&(this.editContextFormatting=i.value)}updateSelection(e=!1,t=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let{dom:i}=this.tile,n=this.view.root.activeElement,s=n==i,o=!s&&!(this.view.state.facet(Gi)||i.tabIndex>-1)&&ra(i,this.view.observer.selectionRange)&&!(n&&i.contains(n));if(!(s||t||o))return;let g=this.forceSelection;this.forceSelection=!1;let a=this.view.state.selection.main,A,C;if(a.empty?C=A=this.inlineDOMNearPos(a.anchor,a.assoc||1):(C=this.inlineDOMNearPos(a.head,a.head==a.from?1:-1),A=this.inlineDOMNearPos(a.anchor,a.anchor==a.from?1:-1)),q.gecko&&a.empty&&!this.hasComposition&&fV(A)){let l=document.createTextNode("");this.view.observer.ignore(()=>A.node.insertBefore(l,A.node.childNodes[A.offset]||null)),A=C=new Ei(l,0),g=!0}let I=this.view.observer.selectionRange;(g||!I.focusNode||(!go(A.node,A.offset,I.anchorNode,I.anchorOffset)||!go(C.node,C.offset,I.focusNode,I.focusOffset))&&!this.suppressWidgetCursorChange(I,a))&&(this.view.observer.ignore(()=>{q.android&&q.chrome&&i.contains(I.focusNode)&&wV(I.focusNode,i)&&(i.blur(),i.focus({preventScroll:!0}));let l=fo(this.view.root);if(l)if(a.empty){if(q.gecko){let h=mV(A.node,A.offset);if(h&&h!=3){let d=(h==1?PD:MD)(A.node,A.offset);d&&(A=new Ei(d.node,d.offset))}}l.collapse(A.node,A.offset),a.bidiLevel!=null&&l.caretBidiLevel!==void 0&&(l.caretBidiLevel=a.bidiLevel)}else if(l.extend){l.collapse(A.node,A.offset);try{l.extend(C.node,C.offset)}catch{}}else{let h=document.createRange();a.anchor>a.head&&([A,C]=[C,A]),h.setEnd(C.node,C.offset),h.setStart(A.node,A.offset),l.removeAllRanges(),l.addRange(h)}o&&this.view.root.activeElement==i&&(i.blur(),n&&n.focus())}),this.view.observer.setSelectionRange(A,C)),this.impreciseAnchor=A.precise?null:new Ei(I.anchorNode,I.anchorOffset),this.impreciseHead=C.precise?null:new Ei(I.focusNode,I.focusOffset)}suppressWidgetCursorChange(e,t){return this.hasComposition&&t.empty&&go(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==t.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,i=fo(e.root),{anchorNode:n,anchorOffset:s}=e.observer.selectionRange;if(!i||!t.empty||!t.assoc||!i.modify)return;let o=this.lineAt(t.head,t.assoc);if(!o)return;let g=o.posAtStart;if(t.head==g||t.head==g+o.length)return;let a=this.coordsAt(t.head,-1),A=this.coordsAt(t.head,1);if(!a||!A||a.bottom>A.top)return;let C=this.domAtPos(t.head+t.assoc,t.assoc);i.collapse(C.node,C.offset),i.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let I=e.observer.selectionRange;e.docView.posFromDOM(I.anchorNode,I.anchorOffset)!=t.from&&i.collapse(n,s)}posFromDOM(e,t){let i=this.tile.nearest(e);if(!i)return this.tile.dom.compareDocumentPosition(e)&2?0:this.view.state.doc.length;let n=i.posAtStart;if(i.isComposite()){let s;if(e==i.dom)s=i.dom.childNodes[t];else{let o=Zi(e)==0?0:t==0?-1:1;for(;;){let g=e.parentNode;if(g==i.dom)break;o==0&&g.firstChild!=g.lastChild&&(e==g.firstChild?o=-1:o=1),e=g}o<0?s=e:s=e.nextSibling}if(s==i.dom.firstChild)return n;for(;s&&!_e.get(s);)s=s.nextSibling;if(!s)return n+i.length;for(let o=0,g=n;;o++){let a=i.children[o];if(a.dom==s)return g;g+=a.length+a.breakAfter}}else return i.isText()?e==i.dom?n+t:n+(t?i.length:0):n}domAtPos(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.domPosFor(e,t):i.domIn(n,t)}inlineDOMNearPos(e,t){let i,n=-1,s=!1,o,g=-1,a=!1;return this.tile.blockTiles((A,C)=>{if(A.isWidget()){if(A.flags&32&&C>=e)return!0;A.flags&16&&(s=!0)}else{let I=C+A.length;if(C<=e&&(i=A,n=e-C,s=I<e),I>=e&&!o&&(o=A,g=e-C,a=C>e),C>e&&o)return!0}}),!i&&!o?this.domAtPos(e,t):(s&&o?i=null:a&&i&&(o=null),i&&t<0||!o?i.domIn(n,t):o.domIn(g,t))}coordsAt(e,t){let{tile:i,offset:n}=this.tile.resolveBlock(e,t);return i.isWidget()?i.widget instanceof Co?null:i.coordsInWidget(n,t,!0):i.coordsIn(n,t)}lineAt(e,t){let{tile:i}=this.tile.resolveBlock(e,t);return i.isLine()?i:null}coordsForChar(e){let{tile:t,offset:i}=this.tile.resolveBlock(e,1);if(!t.isLine())return null;function n(s,o){if(s.isComposite())for(let g of s.children){if(g.length>=o){let a=n(g,o);if(a)return a}if(o-=g.length,o<0)break}else if(s.isText()&&o<s.length){let g=Ye(s.text,o);if(g==o)return null;let a=po(s.dom,o,g).getClientRects();for(let A=0;A<a.length;A++){let C=a[A];if(A==a.length-1||C.top<C.bottom&&C.left<C.right)return C}}return null}return n(t,i)}measureVisibleLineHeights(e){let t=[],{from:i,to:n}=e,s=this.view.contentDOM.clientWidth,o=s>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,g=-1,a=this.view.textDirection==ye.LTR,A=0,C=(I,l,h)=>{for(let d=0;d<I.children.length&&!(l>n);d++){let c=I.children[d],f=l+c.length,u=c.dom.getBoundingClientRect(),{height:p}=u;if(h&&!d&&(A+=u.top-h.top),c instanceof Cn)f>i&&C(c,l,u);else if(l>=i&&(A>0&&t.push(-A),t.push(p+A),A=0,o)){let v=c.dom.lastChild,m=v?sa(v):[];if(m.length){let b=m[m.length-1],w=a?b.right-u.left:u.right-b.left;w>g&&(g=w,this.minWidth=s,this.minWidthFrom=l,this.minWidthTo=f)}}h&&d==I.children.length-1&&(A+=h.bottom-u.bottom),l=f+c.breakAfter}};return C(this.tile,0,null),t}textDirectionAt(e){let{tile:t}=this.tile.resolveBlock(e,1);return getComputedStyle(t.dom).direction=="rtl"?ye.RTL:ye.LTR}measureTextSize(){let e=this.tile.blockTiles(o=>{if(o.isLine()&&o.children.length&&o.length<=20){let g=0,a;for(let A of o.children){if(!A.isText()||/[^ -~]/.test(A.text))return;let C=sa(A.dom);if(C.length!=1)return;g+=C[0].width,a=C[0].height}if(g)return{lineHeight:o.dom.getBoundingClientRect().height,charWidth:g/o.length,textHeight:a}}});if(e)return e;let t=document.createElement("div"),i,n,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.tile.dom.appendChild(t);let o=sa(t.firstChild)[0];i=t.getBoundingClientRect().height,n=o&&o.width?o.width/27:7,s=o&&o.height?o.height:i,t.remove()}),{lineHeight:i,charWidth:n,textHeight:s}}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let i=0,n=0;;n++){let s=n==t.viewports.length?null:t.viewports[n],o=s?s.from-1:this.view.state.doc.length;if(o>i){let g=(t.lineBlockAt(o).bottom-t.lineBlockAt(i).top)/this.view.scaleY;e.push(oe.replace({widget:new Co(g),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!s)break;i=s.to+1}return oe.set(e)}updateDeco(){let e=1,t=this.view.state.facet(Ta).map(s=>(this.dynamicDecorationMap[e++]=typeof s=="function")?s(this.view):s),i=!1,n=this.view.state.facet(em).map((s,o)=>{let g=typeof s=="function";return g&&(i=!0),g?s(this.view):s});for(n.length&&(this.dynamicDecorationMap[e++]=i,t.push(le.join(n))),this.decorations=[this.editContextFormatting,...t,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;this.blockWrappers=this.view.state.facet(UD).map(s=>typeof s=="function"?s(this.view):s)}scrollIntoView(e){if(e.isSnapshot){let A=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=A.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let A of this.view.state.facet(HD))try{if(A(this.view,e.range,e))return!0}catch(C){St(this.view.state,C,"scroll handler")}let{range:t}=e,i=this.coordsAt(t.head,t.empty?t.assoc:t.head>t.anchor?-1:1),n;if(!i)return;!t.empty&&(n=this.coordsAt(t.anchor,t.anchor>t.head?-1:1))&&(i={left:Math.min(i.left,n.left),top:Math.min(i.top,n.top),right:Math.max(i.right,n.right),bottom:Math.max(i.bottom,n.bottom)});let s=tm(this.view),o={left:i.left-s.left,top:i.top-s.top,right:i.right+s.right,bottom:i.bottom+s.bottom},{offsetWidth:g,offsetHeight:a}=this.view.scrollDOM;X5(this.view.scrollDOM,o,t.head<t.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,g),-g),Math.max(Math.min(e.yMargin,a),-a),this.view.textDirection==ye.LTR)}lineHasWidget(e){let t=i=>i.isWidget()||i.children.some(t);return t(this.tile.resolveBlock(e,1).tile)}destroy(){wp(this.tile)}};function wp(r,e){let t=e?.get(r);if(t!=1){t==null&&r.destroy();for(let i of r.children)wp(i,e)}}function fV(r){return r.node.nodeType==1&&r.node.firstChild&&(r.offset==0||r.node.childNodes[r.offset-1].contentEditable=="false")&&(r.offset==r.node.childNodes.length||r.node.childNodes[r.offset].contentEditable=="false")}function $D(r,e){let t=r.observer.selectionRange;if(!t.focusNode)return null;let i=PD(t.focusNode,t.focusOffset),n=MD(t.focusNode,t.focusOffset),s=i||n;if(n&&i&&n.node!=i.node){let g=_e.get(n.node);if(!g||g.isText()&&g.text!=n.node.nodeValue)s=n;else if(r.docView.lastCompositionAfterCursor){let a=_e.get(i.node);!a||a.isText()&&a.text!=i.node.nodeValue||(s=n)}}if(r.docView.lastCompositionAfterCursor=s!=i,!s)return null;let o=e-s.offset;return{from:o,to:o+s.node.nodeValue.length,node:s.node}}function pV(r,e,t){let i=$D(r,t);if(!i)return null;let{node:n,from:s,to:o}=i,g=n.nodeValue;if(/[\n\r]/.test(g)||r.state.doc.sliceString(i.from,i.to)!=g)return null;let a=e.invertedDesc;return{range:new ei(a.mapPos(s),a.mapPos(o),s,o),text:n}}function mV(r,e){return r.nodeType!=1?0:(e&&r.childNodes[e-1].contentEditable=="false"?1:0)|(e<r.childNodes.length&&r.childNodes[e].contentEditable=="false"?2:0)}var vV=class{constructor(){this.changes=[]}compareRange(e,t){Gr(e,t,this.changes)}comparePoint(e,t){Gr(e,t,this.changes)}boundChange(e){Gr(e,e,this.changes)}};function bV(r,e,t){let i=new vV;return le.compare(r,e,t,i),i.changes}var xp=class{constructor(){this.changes=[]}compareRange(e,t){Gr(e,t,this.changes)}comparePoint(){}boundChange(e){Gr(e,e,this.changes)}};function yV(r,e,t){let i=new xp;return le.compare(r,e,t,i),i.changes}function wV(r,e){for(let t=r;t&&t!=e;t=t.assignedSlot||t.parentNode)if(t.nodeType==1&&t.contentEditable=="false")return!0;return!1}function xV(r,e){let t=!1;return e&&r.iterChangedRanges((i,n)=>{i<e.to&&n>e.from&&(t=!0)}),t}var Co=class extends ln{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}};function SV(r,e,t=1){let i=r.charCategorizer(e),n=r.doc.lineAt(e),s=e-n.from;if(n.length==0)return N.cursor(e);s==0?t=1:s==n.length&&(t=-1);let o=s,g=s;t<0?o=Ye(n.text,s,!1):g=Ye(n.text,s);let a=i(n.text.slice(o,g));for(;o>0;){let A=Ye(n.text,o,!1);if(i(n.text.slice(A,o))!=a)break;o=A}for(;g<n.length;){let A=Ye(n.text,g);if(i(n.text.slice(g,A))!=a)break;g=A}return N.range(o+n.from,g+n.from)}function EV(r,e,t,i,n){let s=Math.round((i-e.left)*r.defaultCharacterWidth);if(r.lineWrapping&&t.height>r.defaultLineHeight*1.5){let g=r.viewState.heightOracle.textHeight,a=Math.floor((n-t.top-(r.defaultLineHeight-g)*.5)/g);s+=a*r.viewState.heightOracle.lineLength}let o=r.state.sliceDoc(t.from,t.to);return t.from+ZR(o,s,r.state.tabSize)}function TV(r,e,t){let i=r.lineBlockAt(e);if(Array.isArray(i.type)){let n;for(let s of i.type){if(s.from>e)break;if(!(s.to<e)){if(s.from<e&&s.to>e)return s;(!n||s.type==vt.Text&&(n.type!=s.type||(t<0?s.from<e:s.to>e)))&&(n=s)}}return n||i}return i}function kV(r,e,t,i){let n=TV(r,e.head,e.assoc||-1),s=!i||n.type!=vt.Text||!(r.lineWrapping||n.widgetLineBreaks)?null:r.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(s){let o=r.dom.getBoundingClientRect(),g=r.textDirectionAt(n.from),a=r.posAtCoords({x:t==(g==ye.LTR)?o.right-1:o.left+1,y:(s.top+s.bottom)/2});if(a!=null)return N.cursor(a,t?-1:1)}return N.cursor(t?n.to:n.from,t?-1:1)}function rD(r,e,t,i){let n=r.state.doc.lineAt(e.head),s=r.bidiSpans(n),o=r.textDirectionAt(n.from);for(let g=e,a=null;;){let A=gV(n,s,o,g,t),C=LD;if(!A){if(n.number==(t?r.state.doc.lines:1))return g;C=`
`,n=r.state.doc.line(n.number+(t?1:-1)),s=r.bidiSpans(n),A=r.visualLineSide(n,!t)}if(a){if(!a(C))return g}else{if(!i)return A;a=i(C)}g=A}}function OV(r,e,t){let i=r.state.charCategorizer(e),n=i(t);return s=>{let o=i(s);return n==It.Space&&(n=o),n==o}}function RV(r,e,t,i){let n=e.head,s=t?1:-1;if(n==(t?r.state.doc.length:0))return N.cursor(n,e.assoc);let o=e.goalColumn,g,a=r.contentDOM.getBoundingClientRect(),A=r.coordsAtPos(n,e.assoc||-1),C=r.documentTop;if(A)o==null&&(o=A.left-a.left),g=s<0?A.top:A.bottom;else{let h=r.viewState.lineBlockAt(n);o==null&&(o=Math.min(a.right-a.left,r.defaultCharacterWidth*(n-h.from))),g=(s<0?h.top:h.bottom)+C}let I=a.left+o,l=i??r.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let d=g+(l+h)*s,c=Sp(r,{x:I,y:d},!1,s);return N.cursor(c.pos,c.assoc,void 0,o)}}function Io(r,e,t){for(;;){let i=0;for(let n of r)n.between(e-1,e+1,(s,o,g)=>{if(e>s&&e<o){let a=i||t||(e-s<o-e?-1:1);e=a<0?s:o,i=a}});if(!i)return e}}function e2(r,e){let t=null;for(let i=0;i<e.ranges.length;i++){let n=e.ranges[i],s=null;if(n.empty){let o=Io(r,n.from,0);o!=n.from&&(s=N.cursor(o,-1))}else{let o=Io(r,n.from,-1),g=Io(r,n.to,1);(o!=n.from||g!=n.to)&&(s=N.range(n.from==n.anchor?o:g,n.from==n.head?o:g))}s&&(t||(t=e.ranges.slice()),t[i]=s)}return t?N.create(t,e.mainIndex):e}function np(r,e,t){let i=Io(r.state.facet(mo).map(n=>n(r)),t.from,e.head>t.from?-1:1);return i==t.from?t:N.cursor(i,i<t.from?1:-1)}var zt=class{constructor(e,t){this.pos=e,this.assoc=t}};function Sp(r,e,t,i){let n=r.contentDOM.getBoundingClientRect(),s=n.top+r.viewState.paddingTop,{x:o,y:g}=e,a=g-s,A;for(;;){if(a<0)return new zt(0,1);if(a>r.viewState.docHeight)return new zt(r.state.doc.length,-1);if(A=r.elementAtHeight(a),i==null)break;if(A.type==vt.Text){let l=r.docView.coordsAt(i<0?A.from:A.to,i);if(l&&(i<0?l.top<=a+s:l.bottom>=a+s))break}let I=r.viewState.heightOracle.textHeight/2;a=i>0?A.bottom+I:A.top-I}if(r.viewport.from>=A.to||r.viewport.to<=A.from){if(t)return null;if(A.type==vt.Text){let I=EV(r,n,A,o,g);return new zt(I,I==A.from?1:-1)}}if(A.type!=vt.Text)return a<(A.top+A.bottom)/2?new zt(A.from,1):new zt(A.to,-1);let C=r.docView.lineAt(A.from,2);return(!C||C.length!=A.length)&&(C=r.docView.lineAt(A.from,-2)),t2(r,C,A.from,o,g)}function t2(r,e,t,i,n){let s=-1,o=null,g=1e9,a=1e9,A=n,C=n,I=(l,h)=>{for(let d=0;d<l.length;d++){let c=l[d];if(c.top==c.bottom)continue;let f=c.left>i?c.left-i:c.right<i?i-c.right:0,u=c.top>n?c.top-n:c.bottom<n?n-c.bottom:0;c.top<=C&&c.bottom>=A&&(A=Math.min(c.top,A),C=Math.max(c.bottom,C),u=0),(s<0||(u-a||f-g)<0)&&(s>=0&&a&&g<f&&o.top<=C-2&&o.bottom>=A+2?a=0:(s=h,g=f,a=u,o=c))}};if(e.isText()){for(let h=0;h<e.length;){let d=Ye(e.text,h);if(I(po(e.dom,h,d).getClientRects(),h),!g&&!a)break;h=d}return i>(o.left+o.right)/2==(sD(r,s+t)==ye.LTR)?new zt(t+Ye(e.text,s),-1):new zt(t+s,1)}else{if(!e.length)return new zt(t,1);for(let c=0;c<e.children.length;c++){let f=e.children[c];if(f.flags&48)continue;let u=(f.dom.nodeType==1?f.dom:po(f.dom,0,f.length)).getClientRects();if(I(u,c),!g&&!a)break}let l=e.children[s],h=e.posBefore(l,t);return l.isComposite()||l.isText()?t2(r,l,h,Math.max(o.left,Math.min(o.right,i)),n):i>(o.left+o.right)/2==(sD(r,s+t)==ye.LTR)?new zt(h+l.length,-1):new zt(h,1)}}function sD(r,e){let t=r.state.doc.lineAt(e);return r.bidiSpans(t)[$t.find(r.bidiSpans(t),e-t.from,-1,1)].dir}var so="\uFFFF",Ep=class{constructor(e,t){this.points=e,this.view=t,this.text="",this.lineSeparator=t.state.facet(Te.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=so}readRange(e,t){if(!e)return this;let i=e.parentNode;for(let n=e;;){this.findPointBefore(i,n);let s=this.text.length;this.readNode(n);let o=_e.get(n),g=n.nextSibling;if(g==t){o?.breakAfter&&!g&&i!=this.view.contentDOM&&this.lineBreak();break}let a=_e.get(g);(o&&a?o.breakAfter:(o?o.breakAfter:Ia(n))||Ia(g)&&(n.nodeName!="BR"||o?.isWidget())&&this.text.length>s)&&!PV(g,t)&&this.lineBreak(),n=g}return this.findPointBefore(i,t),this}readTextNode(e){let t=e.nodeValue;for(let i of this.points)i.node==e&&(i.pos=this.text.length+Math.min(i.offset,t.length));for(let i=0,n=this.lineSeparator?null:/\r\n?|\n/g;;){let s=-1,o=1,g;if(this.lineSeparator?(s=t.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(g=n.exec(t))&&(s=g.index,o=g[0].length),this.append(t.slice(i,s<0?t.length:s)),s<0)break;if(this.lineBreak(),o>1)for(let a of this.points)a.node==e&&a.pos>this.text.length&&(a.pos-=o-1);i=s+o}}readNode(e){let t=_e.get(e),i=t&&t.overrideDOMText;if(i!=null){this.findPointInside(e,i.length);for(let n=i.iter();!n.next().done;)n.lineBreak?this.lineBreak():this.append(n.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let i of this.points)i.node==e&&e.childNodes[i.offset]==t&&(i.pos=this.text.length)}findPointInside(e,t){for(let i of this.points)(e.nodeType==3?i.node==e:e.contains(i.node))&&(i.pos=this.text.length+(DV(e,i.node,i.offset)?t:0))}};function DV(r,e,t){for(;;){if(!e||t<Zi(e))return!1;if(e==r)return!0;t=hn(e)+1,e=e.parentNode}}function PV(r,e){let t;for(;!(r==e||!r);r=r.nextSibling){let i=_e.get(r);if(!i?.isWidget())return!1;i&&(t||(t=[])).push(i)}if(t)for(let i of t){let n=i.overrideDOMText;if(n?.length)return!1}return!0}var ua=class{constructor(e,t){this.node=e,this.offset=t,this.pos=-1}},Tp=class{constructor(e,t,i,n){this.typeOver=n,this.bounds=null,this.text="",this.domChanged=t>-1;let{impreciseHead:s,impreciseAnchor:o}=e.docView;if(e.state.readOnly&&t>-1)this.newSel=null;else if(t>-1&&(this.bounds=i2(e.docView.tile,t,i,0))){let g=s||o?[]:NV(e),a=new Ep(g,e);a.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=a.text,this.newSel=_V(g,this.bounds.from)}else{let g=e.observer.selectionRange,a=s&&s.node==g.focusNode&&s.offset==g.focusOffset||!Ip(e.contentDOM,g.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(g.focusNode,g.focusOffset),A=o&&o.node==g.anchorNode&&o.offset==g.anchorOffset||!Ip(e.contentDOM,g.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(g.anchorNode,g.anchorOffset),C=e.viewport;if((q.ios||q.chrome)&&e.state.selection.main.empty&&a!=A&&(C.from>0||C.to<e.state.doc.length)){let I=Math.min(a,A),l=Math.max(a,A),h=C.from-I,d=C.to-l;(h==0||h==1||I==0)&&(d==0||d==-1||l==e.state.doc.length)&&(a=0,A=e.state.doc.length)}e.inputState.composing>-1&&e.state.selection.ranges.length>1?this.newSel=e.state.selection.replaceRange(N.range(A,a)):this.newSel=N.single(A,a)}}};function i2(r,e,t,i){if(r.isComposite()){let n=-1,s=-1,o=-1,g=-1;for(let a=0,A=i,C=i;a<r.children.length;a++){let I=r.children[a],l=A+I.length;if(A<e&&l>t)return i2(I,e,t,A);if(l>=e&&n==-1&&(n=a,s=A),A>t&&I.dom.parentNode==r.dom){o=a,g=C;break}C=l,A=l+I.breakAfter}return{from:s,to:g<0?i+r.length:g,startDOM:(n?r.children[n-1].dom.nextSibling:null)||r.dom.firstChild,endDOM:o<r.children.length&&o>=0?r.children[o].dom:null}}else return r.isText()?{from:i,to:i+r.length,startDOM:r.dom,endDOM:r.dom.nextSibling}:null}function n2(r,e){let t,{newSel:i}=e,n=r.state.selection.main,s=r.inputState.lastKeyTime>Date.now()-100?r.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:g}=e.bounds,a=n.from,A=null;(s===8||q.android&&e.text.length<g-o)&&(a=n.to,A="end");let C=r2(r.state.doc.sliceString(o,g,so),e.text,a-o,A);C&&(q.chrome&&s==13&&C.toB==C.from+2&&e.text.slice(C.from,C.toB)==so+so&&C.toB--,t={from:o+C.from,to:o+C.toA,insert:re.of(e.text.slice(C.from,C.toB).split(so))})}else i&&(!r.hasFocus&&r.state.facet(Gi)||i.main.eq(n))&&(i=null);if(!t&&!i)return!1;if(!t&&e.typeOver&&!n.empty&&i&&i.main.empty?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,n.to)}:(q.mac||q.android)&&t&&t.from==t.to&&t.from==n.head-1&&/^\. ?$/.test(t.insert.toString())&&r.contentDOM.getAttribute("autocorrect")=="off"?(i&&t.insert.length==2&&(i=N.single(i.main.anchor-1,i.main.head-1)),t={from:t.from,to:t.to,insert:re.of([t.insert.toString().replace("."," ")])}):t&&t.from>=n.from&&t.to<=n.to&&(t.from!=n.from||t.to!=n.to)&&n.to-n.from-(t.to-t.from)<=4?t={from:n.from,to:n.to,insert:r.state.doc.slice(n.from,t.from).append(t.insert).append(r.state.doc.slice(t.to,n.to))}:r.state.doc.lineAt(n.from).to<n.to&&r.docView.lineHasWidget(n.to)&&r.inputState.insertingTextAt>Date.now()-50?t={from:n.from,to:n.to,insert:r.state.toText(r.inputState.insertingText)}:q.chrome&&t&&t.from==t.to&&t.from==n.head&&t.insert.toString()==`
`&&r.lineWrapping&&(i&&(i=N.single(i.main.anchor-1,i.main.head-1)),t={from:n.from,to:n.to,insert:re.of([" "])}),t)return im(r,t,i,s);if(i&&!i.main.eq(n)){let o=!1,g="select";return r.inputState.lastSelectionTime>Date.now()-50&&(r.inputState.lastSelectionOrigin=="select"&&(o=!0),g=r.inputState.lastSelectionOrigin,g=="select.pointer"&&(i=e2(r.state.facet(mo).map(a=>a(r)),i))),r.dispatch({selection:i,scrollIntoView:o,userEvent:g}),!0}else return!1}function im(r,e,t,i=-1){if(q.ios&&r.inputState.flushIOSKey(e))return!0;let n=r.state.selection.main;if(q.android&&(e.to==n.to&&(e.from==n.from||e.from==n.from-1&&r.state.sliceDoc(e.from,n.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&Zr(r.contentDOM,"Enter",13)||(e.from==n.from-1&&e.to==n.to&&e.insert.length==0||i==8&&e.insert.length<e.to-e.from&&e.to>n.head)&&Zr(r.contentDOM,"Backspace",8)||e.from==n.from&&e.to==n.to+1&&e.insert.length==0&&Zr(r.contentDOM,"Delete",46)))return!0;let s=e.insert.toString();r.inputState.composing>=0&&r.inputState.composing++;let o,g=()=>o||(o=MV(r,e,t));return r.state.facet(GD).some(a=>a(r,e.from,e.to,s,g))||r.dispatch(g()),!0}function MV(r,e,t){let i,n=r.state,s=n.selection.main,o=-1;if(e.from==e.to&&e.from<s.from||e.from>s.to){let a=e.from<s.from?-1:1,A=a<0?s.from:s.to,C=Io(n.facet(mo).map(I=>I(r)),A,a);e.from==C&&(o=C)}if(o>-1)i={changes:e,selection:N.cursor(e.from+e.insert.length,-1)};else if(e.from>=s.from&&e.to<=s.to&&e.to-e.from>=(s.to-s.from)/3&&(!t||t.main.empty&&t.main.from==e.from+e.insert.length)&&r.inputState.composing<0){let a=s.from<e.from?n.sliceDoc(s.from,e.from):"",A=s.to>e.to?n.sliceDoc(e.to,s.to):"";i=n.replaceSelection(r.state.toText(a+e.insert.sliceString(0,void 0,r.state.lineBreak)+A))}else{let a=n.changes(e),A=t&&t.main.to<=a.newLength?t.main:void 0;if(n.selection.ranges.length>1&&(r.inputState.composing>=0||r.inputState.compositionPendingChange)&&e.to<=s.to+10&&e.to>=s.to-10){let C=r.state.sliceDoc(e.from,e.to),I,l=t&&$D(r,t.main.head);if(l){let d=e.insert.length-(e.to-e.from);I={from:l.from,to:l.to-d}}else I=r.state.doc.lineAt(s.head);let h=s.to-e.to;i=n.changeByRange(d=>{if(d.from==s.from&&d.to==s.to)return{changes:a,range:A||d.map(a)};let c=d.to-h,f=c-C.length;if(r.state.sliceDoc(f,c)!=C||c>=I.from&&f<=I.to)return{range:d};let u=n.changes({from:f,to:c,insert:e.insert}),p=d.to-s.to;return{changes:u,range:A?N.range(Math.max(0,A.anchor+p),Math.max(0,A.head+p)):d.map(u)}})}else i={changes:a,selection:A&&n.selection.replaceRange(A)}}let g="input.type";return(r.composing||r.inputState.compositionPendingChange&&r.inputState.compositionEndedAt>Date.now()-50)&&(r.inputState.compositionPendingChange=!1,g+=".compose",r.inputState.compositionFirstChange&&(g+=".start",r.inputState.compositionFirstChange=!1)),n.update(i,{userEvent:g,scrollIntoView:!0})}function r2(r,e,t,i){let n=Math.min(r.length,e.length),s=0;for(;s<n&&r.charCodeAt(s)==e.charCodeAt(s);)s++;if(s==n&&r.length==e.length)return null;let o=r.length,g=e.length;for(;o>0&&g>0&&r.charCodeAt(o-1)==e.charCodeAt(g-1);)o--,g--;if(i=="end"){let a=Math.max(0,s-Math.min(o,g));t-=o+a-s}if(o<s&&r.length<e.length){let a=t<=s&&t>=o?s-t:0;s-=a,g=s+(g-o),o=s}else if(g<s){let a=t<=s&&t>=g?s-t:0;s-=a,o=s+(o-g),g=s}return{from:s,toA:o,toB:g}}function NV(r){let e=[];if(r.root.activeElement!=r.contentDOM)return e;let{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:s}=r.observer.selectionRange;return t&&(e.push(new ua(t,i)),(n!=t||s!=i)&&e.push(new ua(n,s))),e}function _V(r,e){if(r.length==0)return null;let t=r[0].pos,i=r.length==2?r[1].pos:t;return t>-1&&i>-1?N.single(t+e,i+e):null}var kp=class{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.insertingText="",this.insertingTextAt=0,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,q.safari&&e.contentDOM.addEventListener("input",()=>null),q.gecko&&UV(e.contentDOM.ownerDocument)}handleEvent(e){!WV(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||(this.view.updateState!=0?Promise.resolve().then(()=>this.runHandlers(e.type,e)):this.runHandlers(e.type,e))}runHandlers(e,t){let i=this.handlers[e];if(i){for(let n of i.observers)n(this.view,t);for(let n of i.handlers){if(t.defaultPrevented)break;if(n(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=BV(e),i=this.handlers,n=this.view.contentDOM;for(let s in t)if(s!="scroll"){let o=!t[s].handlers.length,g=i[s];g&&o!=!g.handlers.length&&(n.removeEventListener(s,this.handleEvent),g=null),g||n.addEventListener(s,this.handleEvent,{passive:o})}for(let s in i)s!="scroll"&&!t[s]&&n.removeEventListener(s,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&o2.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),q.android&&q.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let t;return q.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((t=s2.find(i=>i.keyCode==e.keyCode))&&!e.ctrlKey||FV.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=t||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let t=this.pendingIOSKey;return!t||t.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,Zr(this.view.contentDOM,t.key,t.keyCode,t instanceof KeyboardEvent?t:void 0))}ignoreDuringComposition(e){return!/^key/.test(e.type)||e.synthetic?!1:this.composing>0?!0:q.safari&&!q.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}};function oD(r,e){return(t,i)=>{try{return e.call(r,i,t)}catch(n){St(t.state,n)}}}function BV(r){let e=Object.create(null);function t(i){return e[i]||(e[i]={observers:[],handlers:[]})}for(let i of r){let n=i.spec,s=n&&n.plugin.domEventHandlers,o=n&&n.plugin.domEventObservers;if(s)for(let g in s){let a=s[g];a&&t(g).handlers.push(oD(i.value,a))}if(o)for(let g in o){let a=o[g];a&&t(g).observers.push(oD(i.value,a))}}for(let i in ii)t(i).handlers.push(ii[i]);for(let i in qt)t(i).observers.push(qt[i]);return e}var s2=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],FV="dthko",o2=[16,17,18,20,91,92,224,225],Xg=6;function Qg(r){return Math.max(0,r)*.7+8}function LV(r,e){return Math.max(Math.abs(r.clientX-e.clientX),Math.abs(r.clientY-e.clientY))}var Op=class{constructor(e,t,i,n){this.view=e,this.startEvent=t,this.style=i,this.mustSelect=n,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParents=Q5(e.contentDOM),this.atoms=e.state.facet(mo).map(o=>o(e));let s=e.contentDOM.ownerDocument;s.addEventListener("mousemove",this.move=this.move.bind(this)),s.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(Te.allowMultipleSelections)&&zV(e,t),this.dragging=VV(e,t)&&A2(t)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&LV(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let t=0,i=0,n=0,s=0,o=this.view.win.innerWidth,g=this.view.win.innerHeight;this.scrollParents.x&&({left:n,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:s,bottom:g}=this.scrollParents.y.getBoundingClientRect());let a=tm(this.view);e.clientX-a.left<=n+Xg?t=-Qg(n-e.clientX):e.clientX+a.right>=o-Xg&&(t=Qg(e.clientX-o)),e.clientY-a.top<=s+Xg?i=-Qg(s-e.clientY):e.clientY+a.bottom>=g-Xg&&(i=Qg(e.clientY-g)),this.setScrollSpeed(t,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:e,y:t}=this.scrollSpeed;e&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=e,e=0),t&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=t,t=0),(e||t)&&this.view.win.scrollBy(e,t),this.dragging===!1&&this.select(this.lastEvent)}select(e){let{view:t}=this,i=e2(this.atoms,this.style.get(e,this.extend,this.multiple));(this.mustSelect||!i.eq(t.state.selection,this.dragging===!1))&&this.view.dispatch({selection:i,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(t=>t.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}};function zV(r,e){let t=r.state.facet(zD);return t.length?t[0](e):q.mac?e.metaKey:e.ctrlKey}function qV(r,e){let t=r.state.facet(qD);return t.length?t[0](e):q.mac?!e.altKey:!e.ctrlKey}function VV(r,e){let{main:t}=r.state.selection;if(t.empty)return!1;let i=fo(r.root);if(!i||i.rangeCount==0)return!0;let n=i.getRangeAt(0).getClientRects();for(let s=0;s<n.length;s++){let o=n[s];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function WV(r,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target,i;t!=r.contentDOM;t=t.parentNode)if(!t||t.nodeType==11||(i=_e.get(t))&&i.isWidget()&&!i.isHidden&&i.widget.ignoreEvent(e))return!1;return!0}var ii=Object.create(null),qt=Object.create(null),g2=q.ie&&q.ie_version<15||q.ios&&q.webkit_version<604;function GV(r){let e=r.dom.parentNode;if(!e)return;let t=e.appendChild(document.createElement("textarea"));t.style.cssText="position: fixed; left: -10000px; top: 10px",t.focus(),setTimeout(()=>{r.focus(),t.remove(),a2(r,t.value)},50)}function ka(r,e,t){for(let i of r.facet(e))t=i(t,r);return t}function a2(r,e){e=ka(r.state,Qp,e);let{state:t}=r,i,n=1,s=t.toText(e),o=s.lines==t.selection.ranges.length;if(Rp!=null&&t.selection.ranges.every(a=>a.empty)&&Rp==s.toString()){let a=-1;i=t.changeByRange(A=>{let C=t.doc.lineAt(A.from);if(C.from==a)return{range:A};a=C.from;let I=t.toText((o?s.line(n++).text:e)+t.lineBreak);return{changes:{from:C.from,insert:I},range:N.cursor(A.from+I.length)}})}else o?i=t.changeByRange(a=>{let A=s.line(n++);return{changes:{from:a.from,to:a.to,insert:A.text},range:N.cursor(a.from+A.length)}}):i=t.replaceSelection(s);r.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}qt.scroll=r=>{r.inputState.lastScrollTop=r.scrollDOM.scrollTop,r.inputState.lastScrollLeft=r.scrollDOM.scrollLeft};ii.keydown=(r,e)=>(r.inputState.setSelectionOrigin("select"),e.keyCode==27&&r.inputState.tabFocusMode!=0&&(r.inputState.tabFocusMode=Date.now()+2e3),!1);qt.touchstart=(r,e)=>{r.inputState.lastTouchTime=Date.now(),r.inputState.setSelectionOrigin("select.pointer")};qt.touchmove=r=>{r.inputState.setSelectionOrigin("select.pointer")};ii.mousedown=(r,e)=>{if(r.observer.flush(),r.inputState.lastTouchTime>Date.now()-2e3)return!1;let t=null;for(let i of r.state.facet(VD))if(t=i(r,e),t)break;if(!t&&e.button==0&&(t=jV(r,e)),t){let i=!r.hasFocus;r.inputState.startMouseSelection(new Op(r,e,t,i)),i&&r.observer.ignore(()=>{RD(r.contentDOM);let s=r.root.activeElement;s&&!s.contains(r.contentDOM)&&s.blur()});let n=r.inputState.mouseSelection;if(n)return n.start(e),n.dragging===!1}else r.inputState.setSelectionOrigin("select.pointer");return!1};function gD(r,e,t,i){if(i==1)return N.cursor(e,t);if(i==2)return SV(r.state,e,t);{let n=r.docView.lineAt(e,t),s=r.state.doc.lineAt(n?n.posAtEnd:e),o=n?n.posAtStart:s.from,g=n?n.posAtEnd:s.to;return g<r.state.doc.length&&g==s.to&&g++,N.range(o,g)}}var ZV=q.ie&&q.ie_version<=11,aD=null,AD=0,CD=0;function A2(r){if(!ZV)return r.detail;let e=aD,t=CD;return aD=r,CD=Date.now(),AD=!e||t>Date.now()-400&&Math.abs(e.clientX-r.clientX)<2&&Math.abs(e.clientY-r.clientY)<2?(AD+1)%3:1}function jV(r,e){let t=r.posAndSideAtCoords({x:e.clientX,y:e.clientY},!1),i=A2(e),n=r.state.selection;return{update(s){s.docChanged&&(t.pos=s.changes.mapPos(t.pos),n=n.map(s.changes))},get(s,o,g){let a=r.posAndSideAtCoords({x:s.clientX,y:s.clientY},!1),A,C=gD(r,a.pos,a.assoc,i);if(t.pos!=a.pos&&!o){let I=gD(r,t.pos,t.assoc,i),l=Math.min(I.from,C.from),h=Math.max(I.to,C.to);C=l<C.from?N.range(l,h):N.range(h,l)}return o?n.replaceRange(n.main.extend(C.from,C.to)):g&&i==1&&n.ranges.length>1&&(A=HV(n,a.pos))?A:g?n.addRange(C):N.create([C])}}}function HV(r,e){for(let t=0;t<r.ranges.length;t++){let{from:i,to:n}=r.ranges[t];if(i<=e&&n>=e)return N.create(r.ranges.slice(0,t).concat(r.ranges.slice(t+1)),r.mainIndex==t?0:r.mainIndex-(r.mainIndex>t?1:0))}return null}ii.dragstart=(r,e)=>{let{selection:{main:t}}=r.state;if(e.target.draggable){let n=r.docView.tile.nearest(e.target);if(n&&n.isWidget()){let s=n.posAtStart,o=s+n.length;(s>=t.to||o<=t.from)&&(t=N.range(s,o))}}let{inputState:i}=r;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=t,e.dataTransfer&&(e.dataTransfer.setData("Text",ka(r.state,Jp,r.state.sliceDoc(t.from,t.to))),e.dataTransfer.effectAllowed="copyMove"),!1};ii.dragend=r=>(r.inputState.draggedContent=null,!1);function ID(r,e,t,i){if(t=ka(r.state,Qp,t),!t)return;let n=r.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:s}=r.inputState,o=i&&s&&qV(r,e)?{from:s.from,to:s.to}:null,g={from:n,insert:t},a=r.state.changes(o?[o,g]:g);r.focus(),r.dispatch({changes:a,selection:{anchor:a.mapPos(n,-1),head:a.mapPos(n,1)},userEvent:o?"move.drop":"input.drop"}),r.inputState.draggedContent=null}ii.drop=(r,e)=>{if(!e.dataTransfer)return!1;if(r.state.readOnly)return!0;let t=e.dataTransfer.files;if(t&&t.length){let i=Array(t.length),n=0,s=()=>{++n==t.length&&ID(r,e,i.filter(o=>o!=null).join(r.state.lineBreak),!1)};for(let o=0;o<t.length;o++){let g=new FileReader;g.onerror=s,g.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(g.result)||(i[o]=g.result),s()},g.readAsText(t[o])}return!0}else{let i=e.dataTransfer.getData("Text");if(i)return ID(r,e,i,!0),!0}return!1};ii.paste=(r,e)=>{if(r.state.readOnly)return!0;r.observer.flush();let t=g2?null:e.clipboardData;return t?(a2(r,t.getData("text/plain")||t.getData("text/uri-list")),!0):(GV(r),!1)};function YV(r,e){let t=r.dom.parentNode;if(!t)return;let i=t.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=e,i.focus(),i.selectionEnd=e.length,i.selectionStart=0,setTimeout(()=>{i.remove(),r.focus()},50)}function KV(r){let e=[],t=[],i=!1;for(let n of r.selection.ranges)n.empty||(e.push(r.sliceDoc(n.from,n.to)),t.push(n));if(!e.length){let n=-1;for(let{from:s}of r.selection.ranges){let o=r.doc.lineAt(s);o.number>n&&(e.push(o.text),t.push({from:o.from,to:Math.min(r.doc.length,o.to+1)})),n=o.number}i=!0}return{text:ka(r,Jp,e.join(r.lineBreak)),ranges:t,linewise:i}}var Rp=null;ii.copy=ii.cut=(r,e)=>{let{text:t,ranges:i,linewise:n}=KV(r.state);if(!t&&!n)return!1;Rp=n?t:null,e.type=="cut"&&!r.state.readOnly&&r.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let s=g2?null:e.clipboardData;return s?(s.clearData(),s.setData("text/plain",t),!0):(YV(r,t),!1)};var C2=xt.define();function I2(r,e){let t=[];for(let i of r.facet(ZD)){let n=i(r,e);n&&t.push(n)}return t.length?r.update({effects:t,annotations:C2.of(!0)}):null}function l2(r){setTimeout(()=>{let e=r.hasFocus;if(e!=r.inputState.notifiedFocused){let t=I2(r.state,e);t?r.dispatch(t):r.update([])}},10)}qt.focus=r=>{r.inputState.lastFocusTime=Date.now(),!r.scrollDOM.scrollTop&&(r.inputState.lastScrollTop||r.inputState.lastScrollLeft)&&(r.scrollDOM.scrollTop=r.inputState.lastScrollTop,r.scrollDOM.scrollLeft=r.inputState.lastScrollLeft),l2(r)};qt.blur=r=>{r.observer.clearSelectionRange(),l2(r)};qt.compositionstart=qt.compositionupdate=r=>{r.observer.editContext||(r.inputState.compositionFirstChange==null&&(r.inputState.compositionFirstChange=!0),r.inputState.composing<0&&(r.inputState.composing=0))};qt.compositionend=r=>{r.observer.editContext||(r.inputState.composing=-1,r.inputState.compositionEndedAt=Date.now(),r.inputState.compositionPendingKey=!0,r.inputState.compositionPendingChange=r.observer.pendingRecords().length>0,r.inputState.compositionFirstChange=null,q.chrome&&q.android?r.observer.flushSoon():r.inputState.compositionPendingChange?Promise.resolve().then(()=>r.observer.flush()):setTimeout(()=>{r.inputState.composing<0&&r.docView.hasComposition&&r.update([])},50))};qt.contextmenu=r=>{r.inputState.lastContextMenu=Date.now()};ii.beforeinput=(r,e)=>{var t,i;if((e.inputType=="insertText"||e.inputType=="insertCompositionText")&&(r.inputState.insertingText=e.data,r.inputState.insertingTextAt=Date.now()),e.inputType=="insertReplacementText"&&r.observer.editContext){let s=(t=e.dataTransfer)===null||t===void 0?void 0:t.getData("text/plain"),o=e.getTargetRanges();if(s&&o.length){let g=o[0],a=r.posAtDOM(g.startContainer,g.startOffset),A=r.posAtDOM(g.endContainer,g.endOffset);return im(r,{from:a,to:A,insert:r.state.toText(s)},null),!0}}let n;if(q.chrome&&q.android&&(n=s2.find(s=>s.inputType==e.inputType))&&(r.observer.delayAndroidKey(n.key,n.keyCode),n.key=="Backspace"||n.key=="Delete")){let s=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>s+10&&r.hasFocus&&(r.contentDOM.blur(),r.focus())},100)}return q.ios&&e.inputType=="deleteContentForward"&&r.observer.flushSoon(),q.safari&&e.inputType=="insertText"&&r.inputState.composing>=0&&setTimeout(()=>qt.compositionend(r,e),20),!1};var lD=new Set;function UV(r){lD.has(r)||(lD.add(r),r.addEventListener("copy",()=>{}),r.addEventListener("cut",()=>{}))}var hD=["pre-wrap","normal","pre-line","break-spaces"],Ur=!1;function dD(){Ur=!1}var Dp=class{constructor(e){this.lineWrapping=e,this.doc=re.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}heightForGap(e,t){let i=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((t-e-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/Math.max(1,this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return hD.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let i=0;i<e.length;i++){let n=e[i];n<0?i++:this.heightSamples[Math.floor(n*10)]||(t=!0,this.heightSamples[Math.floor(n*10)]=!0)}return t}refresh(e,t,i,n,s,o){let g=hD.indexOf(e)>-1,a=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=g;if(this.lineWrapping=g,this.lineHeight=t,this.charWidth=i,this.textHeight=n,this.lineLength=s,a){this.heightSamples={};for(let A=0;A<o.length;A++){let C=o[A];C<0?A++:this.heightSamples[Math.floor(C*10)]=!0}}return a}},Pp=class{constructor(e,t){this.from=e,this.heights=t,this.index=0}get more(){return this.index<this.heights.length}},Jt=class r{constructor(e,t,i,n,s){this.from=e,this.length=t,this.top=i,this.height=n,this._content=s}get type(){return typeof this._content=="number"?vt.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Kn?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let t=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new r(this.from,this.length+e.length,this.top,this.height+e.height,t)}},be=function(r){return r[r.ByPos=0]="ByPos",r[r.ByHeight=1]="ByHeight",r[r.ByPosNoHeight=2]="ByPosNoHeight",r}(be||(be={})),oa=.001,Et=class r{constructor(e,t,i=2){this.length=e,this.height=t,this.flags=i}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e){this.height!=e&&(Math.abs(this.height-e)>oa&&(Ur=!0),this.height=e)}replace(e,t,i){return r.of(i)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,i,n){let s=this,o=i.doc;for(let g=n.length-1;g>=0;g--){let{fromA:a,toA:A,fromB:C,toB:I}=n[g],l=s.lineAt(a,be.ByPosNoHeight,i.setDoc(t),0,0),h=l.to>=A?l:s.lineAt(A,be.ByPosNoHeight,i,0,0);for(I+=h.to-A,A=h.to;g>0&&l.from<=n[g-1].toA;)a=n[g-1].fromA,C=n[g-1].fromB,g--,a<l.from&&(l=s.lineAt(a,be.ByPosNoHeight,i,0,0));C+=l.from-a,a=l.from;let d=Np.build(i.setDoc(o),e,C,I);s=fa(s,s.replace(a,A,d))}return s.updateHeight(i,0)}static empty(){return new Lt(0,0,0)}static of(e){if(e.length==1)return e[0];let t=0,i=e.length,n=0,s=0;for(;;)if(t==i)if(n>s*2){let g=e[t-1];g.break?e.splice(--t,1,g.left,null,g.right):e.splice(--t,1,g.left,g.right),i+=1+g.break,n-=g.size}else if(s>n*2){let g=e[i];g.break?e.splice(i,1,g.left,null,g.right):e.splice(i,1,g.left,g.right),i+=2+g.break,s-=g.size}else break;else if(n<s){let g=e[t++];g&&(n+=g.size)}else{let g=e[--i];g&&(s+=g.size)}let o=0;return e[t-1]==null?(o=1,t--):e[t]==null&&(o=1,i++),new Mp(r.of(e.slice(0,t)),o,r.of(e.slice(i)))}};function fa(r,e){return r==e?r:(r.constructor!=e.constructor&&(Ur=!0),e)}Et.prototype.size=1;var XV=oe.replace({}),pa=class extends Et{constructor(e,t,i){super(e,t),this.deco=i,this.spaceAbove=0}mainBlock(e,t){return new Jt(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.deco||0)}blockAt(e,t,i,n){return this.spaceAbove&&e<i+this.spaceAbove?new Jt(n,0,i,this.spaceAbove,XV):this.mainBlock(i,n)}lineAt(e,t,i,n,s){let o=this.mainBlock(n,s);return this.spaceAbove?this.blockAt(0,i,n,s).join(o):o}forEachLine(e,t,i,n,s,o){e<=s+this.length&&t>=s&&o(this.lineAt(0,be.ByPos,i,n,s))}setMeasuredHeight(e){let t=e.heights[e.index++];t<0?(this.spaceAbove=-t,t=e.heights[e.index++]):this.spaceAbove=0,this.setHeight(t)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more&&this.setMeasuredHeight(n),this.outdated=!1,this}toString(){return`block(${this.length})`}},Lt=class r extends pa{constructor(e,t,i){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0,this.spaceAbove=i}mainBlock(e,t){return new Jt(t,this.length,e+this.spaceAbove,this.height-this.spaceAbove,this.breaks)}replace(e,t,i){let n=i[0];return i.length==1&&(n instanceof r||n instanceof In&&n.flags&4)&&Math.abs(this.length-n.length)<10?(n instanceof In?n=new r(n.length,this.height,this.spaceAbove):n.height=this.height,this.outdated||(n.outdated=!1),n):Et.of(i)}updateHeight(e,t=0,i=!1,n){return n&&n.from<=t&&n.more?this.setMeasuredHeight(n):(i||this.outdated)&&(this.spaceAbove=0,this.setHeight(Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight)),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}},In=class r extends Et{constructor(e){super(e,0)}heightMetrics(e,t){let i=e.doc.lineAt(t).number,n=e.doc.lineAt(t+this.length).number,s=n-i+1,o,g=0;if(e.lineWrapping){let a=Math.min(this.height,e.lineHeight*s);o=a/s,this.length>s+1&&(g=(this.height-a)/(this.length-s-1))}else o=this.height/s;return{firstLine:i,lastLine:n,perLine:o,perChar:g}}blockAt(e,t,i,n){let{firstLine:s,lastLine:o,perLine:g,perChar:a}=this.heightMetrics(t,n);if(t.lineWrapping){let A=n+(e<t.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-i)/this.height))*this.length)),C=t.doc.lineAt(A),I=g+C.length*a,l=Math.max(i,e-I/2);return new Jt(C.from,C.length,l,I,0)}else{let A=Math.max(0,Math.min(o-s,Math.floor((e-i)/g))),{from:C,length:I}=t.doc.line(s+A);return new Jt(C,I,i+g*A,g,0)}}lineAt(e,t,i,n,s){if(t==be.ByHeight)return this.blockAt(e,i,n,s);if(t==be.ByPosNoHeight){let{from:h,to:d}=i.doc.lineAt(e);return new Jt(h,d-h,0,0,0)}let{firstLine:o,perLine:g,perChar:a}=this.heightMetrics(i,s),A=i.doc.lineAt(e),C=g+A.length*a,I=A.number-o,l=n+g*I+a*(A.from-s-I);return new Jt(A.from,A.length,Math.max(n,Math.min(l,n+this.height-C)),C,0)}forEachLine(e,t,i,n,s,o){e=Math.max(e,s),t=Math.min(t,s+this.length);let{firstLine:g,perLine:a,perChar:A}=this.heightMetrics(i,s);for(let C=e,I=n;C<=t;){let l=i.doc.lineAt(C);if(C==e){let d=l.number-g;I+=a*d+A*(e-s-d)}let h=a+A*l.length;o(new Jt(l.from,l.length,I,h,0)),I+=h,C=l.to+1}}replace(e,t,i){let n=this.length-t;if(n>0){let s=i[i.length-1];s instanceof r?i[i.length-1]=new r(s.length+n):i.push(null,new r(n-1))}if(e>0){let s=i[0];s instanceof r?i[0]=new r(e+s.length):i.unshift(new r(e-1),null)}return Et.of(i)}decomposeLeft(e,t){t.push(new r(e-1),null)}decomposeRight(e,t){t.push(null,new r(this.length-e-1))}updateHeight(e,t=0,i=!1,n){let s=t+this.length;if(n&&n.from<=t+this.length&&n.more){let o=[],g=Math.max(t,n.from),a=-1;for(n.from>t&&o.push(new r(n.from-t-1).updateHeight(e,t));g<=s&&n.more;){let C=e.doc.lineAt(g).length;o.length&&o.push(null);let I=n.heights[n.index++],l=0;I<0&&(l=-I,I=n.heights[n.index++]),a==-1?a=I:Math.abs(I-a)>=oa&&(a=-2);let h=new Lt(C,I,l);h.outdated=!1,o.push(h),g+=C+1}g<=s&&o.push(null,new r(s-g).updateHeight(e,g));let A=Et.of(o);return(a<0||Math.abs(A.height-this.height)>=oa||Math.abs(a-this.heightMetrics(e,t).perLine)>=oa)&&(Ur=!0),fa(this,A)}else(i||this.outdated)&&(this.setHeight(e.heightForGap(t,t+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}},Mp=class extends Et{constructor(e,t,i){super(e.length+t+i.length,e.height+i.height,t|(e.outdated||i.outdated?2:0)),this.left=e,this.right=i,this.size=e.size+i.size}get break(){return this.flags&1}blockAt(e,t,i,n){let s=i+this.left.height;return e<s?this.left.blockAt(e,t,i,n):this.right.blockAt(e,t,s,n+this.left.length+this.break)}lineAt(e,t,i,n,s){let o=n+this.left.height,g=s+this.left.length+this.break,a=t==be.ByHeight?e<o:e<g,A=a?this.left.lineAt(e,t,i,n,s):this.right.lineAt(e,t,i,o,g);if(this.break||(a?A.to<g:A.from>g))return A;let C=t==be.ByPosNoHeight?be.ByPosNoHeight:be.ByPos;return a?A.join(this.right.lineAt(g,C,i,o,g)):this.left.lineAt(g,C,i,n,s).join(A)}forEachLine(e,t,i,n,s,o){let g=n+this.left.height,a=s+this.left.length+this.break;if(this.break)e<a&&this.left.forEachLine(e,t,i,n,s,o),t>=a&&this.right.forEachLine(e,t,i,g,a,o);else{let A=this.lineAt(a,be.ByPos,i,n,s);e<A.from&&this.left.forEachLine(e,A.from-1,i,n,s,o),A.to>=e&&A.from<=t&&o(A),t>A.to&&this.right.forEachLine(A.to+1,t,i,g,a,o)}}replace(e,t,i){let n=this.left.length+this.break;if(t<n)return this.balanced(this.left.replace(e,t,i),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-n,t-n,i));let s=[];e>0&&this.decomposeLeft(e,s);let o=s.length;for(let g of i)s.push(g);if(e>0&&cD(s,o-1),t<this.length){let g=s.length;this.decomposeRight(t,s),cD(s,g)}return Et.of(s)}decomposeLeft(e,t){let i=this.left.length;if(e<=i)return this.left.decomposeLeft(e,t);t.push(this.left),this.break&&(i++,e>=i&&t.push(null)),e>i&&this.right.decomposeLeft(e-i,t)}decomposeRight(e,t){let i=this.left.length,n=i+this.break;if(e>=n)return this.right.decomposeRight(e-n,t);e<i&&this.left.decomposeRight(e,t),this.break&&e<n&&t.push(null),t.push(this.right)}balanced(e,t){return e.size>2*t.size||t.size>2*e.size?Et.of(this.break?[e,null,t]:[e,t]):(this.left=fa(this.left,e),this.right=fa(this.right,t),this.setHeight(e.height+t.height),this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e,t=0,i=!1,n){let{left:s,right:o}=this,g=t+s.length+this.break,a=null;return n&&n.from<=t+s.length&&n.more?a=s=s.updateHeight(e,t,i,n):s.updateHeight(e,t,i),n&&n.from<=g+o.length&&n.more?a=o=o.updateHeight(e,g,i,n):o.updateHeight(e,g,i),a?this.balanced(s,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}};function cD(r,e){let t,i;r[e]==null&&(t=r[e-1])instanceof In&&(i=r[e+1])instanceof In&&r.splice(e-1,3,new In(t.length+1+i.length))}var QV=5,Np=class r{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let i=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof Lt?n.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new Lt(i-this.pos,-1,0)),this.writtenTo=i,t>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,i){if(e<t||i.heightRelevant){let n=i.widget?i.widget.estimatedHeight:0,s=i.widget?i.widget.lineBreaks:0;n<0&&(n=this.oracle.lineHeight);let o=t-e;i.block?this.addBlock(new pa(o,n,i)):(o||s||n>=QV)&&this.addLineDeco(n,s,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new Lt(this.pos-e,-1,0)),this.writtenTo=this.pos}blankContent(e,t){let i=new In(t-e);return this.oracle.doc.lineAt(e).to==t&&(i.flags|=4),i}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof Lt)return e;let t=new Lt(0,-1,0);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,i){let n=this.ensureLine();n.length+=i,n.collapsed+=i,n.widgetHeight=Math.max(n.widgetHeight,e),n.breaks+=t,this.writtenTo=this.pos=this.pos+i}finish(e){let t=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(t instanceof Lt)&&!this.isCovered?this.nodes.push(new Lt(0,-1,0)):(this.writtenTo<this.pos||t==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let i=e;for(let n of this.nodes)n instanceof Lt&&n.updateHeight(this.oracle,i),i+=n?n.length:1;return this.nodes}static build(e,t,i,n){let s=new r(i,e);return le.spans(t,i,n,s,0),s.finish(i)}};function JV(r,e,t){let i=new _p;return le.compare(r,e,t,i,0),i.changes}var _p=class{constructor(){this.changes=[]}compareRange(){}comparePoint(e,t,i,n){(e<t||i&&i.heightRelevant||n&&n.heightRelevant)&&Gr(e,t,this.changes,5)}};function $V(r,e){let t=r.getBoundingClientRect(),i=r.ownerDocument,n=i.defaultView||window,s=Math.max(0,t.left),o=Math.min(n.innerWidth,t.right),g=Math.max(0,t.top),a=Math.min(n.innerHeight,t.bottom);for(let A=r.parentNode;A&&A!=i.body;)if(A.nodeType==1){let C=A,I=window.getComputedStyle(C);if((C.scrollHeight>C.clientHeight||C.scrollWidth>C.clientWidth)&&I.overflow!="visible"){let l=C.getBoundingClientRect();s=Math.max(s,l.left),o=Math.min(o,l.right),g=Math.max(g,l.top),a=Math.min(A==r.parentNode?n.innerHeight:a,l.bottom)}A=I.position=="absolute"||I.position=="fixed"?C.offsetParent:C.parentNode}else if(A.nodeType==11)A=A.host;else break;return{left:s-t.left,right:Math.max(s,o)-t.left,top:g-(t.top+e),bottom:Math.max(g,a)-(t.top+e)}}function eW(r){let e=r.getBoundingClientRect(),t=r.ownerDocument.defaultView||window;return e.left<t.innerWidth&&e.right>0&&e.top<t.innerHeight&&e.bottom>0}function tW(r,e){let t=r.getBoundingClientRect();return{left:0,right:t.right-t.left,top:e,bottom:t.bottom-(t.top+e)}}var lo=class{constructor(e,t,i,n){this.from=e,this.to=t,this.size=i,this.displaySize=n}static same(e,t){if(e.length!=t.length)return!1;for(let i=0;i<e.length;i++){let n=e[i],s=t[i];if(n.from!=s.from||n.to!=s.to||n.size!=s.size)return!1}return!0}draw(e,t){return oe.replace({widget:new Bp(this.displaySize*(t?e.scaleY:e.scaleX),t)}).range(this.from,this.to)}},Bp=class extends ln{constructor(e,t){super(),this.size=e,this.vertical=t}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}},ma=class{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=uD,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=ye.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let t=e.facet($p).some(i=>typeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Dp(t),this.stateDeco=fD(e),this.heightMap=Et.empty().applyChanges(this.stateDeco,re.empty,this.heightOracle.setDoc(e.doc),[new ei(0,0,0,e.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=oe.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let i=0;i<=1;i++){let n=i?t.head:t.anchor;if(!e.some(({from:s,to:o})=>n>=s&&n<=o)){let{from:s,to:o}=this.lineBlockAt(n);e.push(new Vr(s,o))}}return this.viewports=e.sort((i,n)=>i.from-n.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?uD:new Fp(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(oo(e,this.scaler))})}update(e,t=null){this.state=e.state;let i=this.stateDeco;this.stateDeco=fD(this.state);let n=e.changedRanges,s=ei.extendWithRanges(n,JV(i,this.stateDeco,e?e.changes:lt.empty(this.state.doc.length))),o=this.heightMap.height,g=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);dD(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),s),(this.heightMap.height!=o||Ur)&&(e.flags|=2),g?(this.scrollAnchorPos=e.changes.mapPos(g.from,-1),this.scrollAnchorHeight=g.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=o);let a=s.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.head<a.from||t.range.head>a.to)||!this.viewportIsAppropriate(a))&&(a=this.getViewport(0,t));let A=a.from!=this.viewport.from||a.to!=this.viewport.to;this.viewport=a,e.flags|=this.updateForViewport(),(A||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(e.changes),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&(e.selectionSet||e.focusChanged)&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(AV)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,i=window.getComputedStyle(t),n=this.heightOracle,s=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?ye.RTL:ye.LTR;let o=this.heightOracle.mustRefreshForWrapping(s),g=t.getBoundingClientRect(),a=o||this.mustMeasureContent||this.contentDOMHeight!=g.height;this.contentDOMHeight=g.height,this.mustMeasureContent=!1;let A=0,C=0;if(g.width&&g.height){let{scaleX:m,scaleY:b}=OD(t,g);(m>.005&&Math.abs(this.scaleX-m)>.005||b>.005&&Math.abs(this.scaleY-b)>.005)&&(this.scaleX=m,this.scaleY=b,A|=16,o=a=!0)}let I=(parseInt(i.paddingTop)||0)*this.scaleY,l=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=I||this.paddingBottom!=l)&&(this.paddingTop=I,this.paddingBottom=l,A|=18),this.editorWidth!=e.scrollDOM.clientWidth&&(n.lineWrapping&&(a=!0),this.editorWidth=e.scrollDOM.clientWidth,A|=16);let h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=DD(e.scrollDOM);let d=(this.printing?tW:$V)(t,this.paddingTop),c=d.top-this.pixelViewport.top,f=d.bottom-this.pixelViewport.bottom;this.pixelViewport=d;let u=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(u!=this.inView&&(this.inView=u,u&&(a=!0)),!this.inView&&!this.scrollTarget&&!eW(e.dom))return 0;let p=g.width;if((this.contentDOMWidth!=p||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=g.width,this.editorHeight=e.scrollDOM.clientHeight,A|=16),a){let m=e.docView.measureVisibleLineHeights(this.viewport);if(n.mustRefreshForHeights(m)&&(o=!0),o||n.lineWrapping&&Math.abs(p-this.contentDOMWidth)>n.charWidth){let{lineHeight:b,charWidth:w,textHeight:x}=e.docView.measureTextSize();o=b>0&&n.refresh(s,b,w,x,Math.max(5,p/w),m),o&&(e.docView.minWidth=0,A|=16)}c>0&&f>0?C=Math.max(c,f):c<0&&f<0&&(C=Math.min(c,f)),dD();for(let b of this.viewports){let w=b.from==this.viewport.from?m:e.docView.measureVisibleLineHeights(b);this.heightMap=(o?Et.empty().applyChanges(this.stateDeco,re.empty,this.heightOracle,[new ei(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(n,0,o,new Pp(b.from,w))}Ur&&(A|=2)}let v=!this.viewportIsAppropriate(this.viewport,C)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return v&&(A&2&&(A|=this.updateScaler()),this.viewport=this.getViewport(C,this.scrollTarget),A|=this.updateForViewport()),(A&2||v)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,e)),A|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),A}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let i=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),n=this.heightMap,s=this.heightOracle,{visibleTop:o,visibleBottom:g}=this,a=new Vr(n.lineAt(o-i*1e3,be.ByHeight,s,0,0).from,n.lineAt(g+(1-i)*1e3,be.ByHeight,s,0,0).to);if(t){let{head:A}=t.range;if(A<a.from||A>a.to){let C=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),I=n.lineAt(A,be.ByPos,s,0,0),l;t.y=="center"?l=(I.top+I.bottom)/2-C/2:t.y=="start"||t.y=="nearest"&&A<a.from?l=I.top:l=I.bottom-C,a=new Vr(n.lineAt(l-1e3/2,be.ByHeight,s,0,0).from,n.lineAt(l+C+1e3/2,be.ByHeight,s,0,0).to)}}return a}mapViewport(e,t){let i=t.mapPos(e.from,-1),n=t.mapPos(e.to,1);return new Vr(this.heightMap.lineAt(i,be.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(n,be.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:t},i=0){if(!this.inView)return!0;let{top:n}=this.heightMap.lineAt(e,be.ByPos,this.heightOracle,0,0),{bottom:s}=this.heightMap.lineAt(t,be.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:g}=this;return(e==0||n<=o-Math.max(10,Math.min(-i,250)))&&(t==this.state.doc.length||s>=g+Math.max(10,Math.min(i,250)))&&n>o-2*1e3&&s<g+2*1e3}mapLineGaps(e,t){if(!e.length||t.empty)return e;let i=[];for(let n of e)t.touchesRange(n.from,n.to)||i.push(new lo(t.mapPos(n.from),t.mapPos(n.to),n.size,n.displaySize));return i}ensureLineGaps(e,t){let i=this.heightOracle.lineWrapping,n=i?1e4:2e3,s=n>>1,o=n<<1;if(this.defaultTextDirection!=ye.LTR&&!i)return[];let g=[],a=(C,I,l,h)=>{if(I-C<s)return;let d=this.state.selection.main,c=[d.from];d.empty||c.push(d.to);for(let u of c)if(u>C&&u<I){a(C,u-10,l,h),a(u+10,I,l,h);return}let f=nW(e,u=>u.from>=l.from&&u.to<=l.to&&Math.abs(u.from-C)<s&&Math.abs(u.to-I)<s&&!c.some(p=>u.from<p&&u.to>p));if(!f){if(I<l.to&&t&&i&&t.visibleRanges.some(v=>v.from<=I&&v.to>=I)){let v=t.moveToLineBoundary(N.cursor(I),!1,!0).head;v>C&&(I=v)}let u=this.gapSize(l,C,I,h),p=i||u<2e6?u:2e6;f=new lo(C,I,u,p)}g.push(f)},A=C=>{if(C.length<o||C.type!=vt.Text)return;let I=iW(C.from,C.to,this.stateDeco);if(I.total<o)return;let l=this.scrollTarget?this.scrollTarget.range.head:null,h,d;if(i){let c=n/this.heightOracle.lineLength*this.heightOracle.lineHeight,f,u;if(l!=null){let p=$g(I,l),v=((this.visibleBottom-this.visibleTop)/2+c)/C.height;f=p-v,u=p+v}else f=(this.visibleTop-C.top-c)/C.height,u=(this.visibleBottom-C.top+c)/C.height;h=Jg(I,f),d=Jg(I,u)}else{let c=I.total*this.heightOracle.charWidth,f=n*this.heightOracle.charWidth,u=0;if(c>2e6)for(let w of e)w.from>=C.from&&w.from<C.to&&w.size!=w.displaySize&&w.from*this.heightOracle.charWidth+u<this.pixelViewport.left&&(u=w.size-w.displaySize);let p=this.pixelViewport.left+u,v=this.pixelViewport.right+u,m,b;if(l!=null){let w=$g(I,l),x=((v-p)/2+f)/c;m=w-x,b=w+x}else m=(p-f)/c,b=(v+f)/c;h=Jg(I,m),d=Jg(I,b)}h>C.from&&a(C.from,h,C,I),d<C.to&&a(d,C.to,C,I)};for(let C of this.viewportLines)Array.isArray(C.type)?C.type.forEach(A):A(C);return g}gapSize(e,t,i,n){let s=$g(n,i)-$g(n,t);return this.heightOracle.lineWrapping?e.height*s:n.total*this.heightOracle.charWidth*s}updateLineGaps(e){lo.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=oe.set(e.map(t=>t.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(e){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let i=[];le.spans(t,this.viewport.from,this.viewport.to,{span(s,o){i.push({from:s,to:o})},point(){}},20);let n=0;if(i.length!=this.visibleRanges.length)n=12;else for(let s=0;s<i.length&&!(n&8);s++){let o=this.visibleRanges[s],g=i[s];(o.from!=g.from||o.to!=g.to)&&(n|=4,e&&e.mapPos(o.from,-1)==g.from&&e.mapPos(o.to,1)==g.to||(n|=8))}return this.visibleRanges=i,n}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(t=>t.from<=e&&t.to>=e)||oo(this.heightMap.lineAt(e,be.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(t=>t.top<=e&&t.bottom>=e)||oo(this.heightMap.lineAt(this.scaler.fromDOM(e),be.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return oo(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}},Vr=class{constructor(e,t){this.from=e,this.to=t}};function iW(r,e,t){let i=[],n=r,s=0;return le.spans(t,r,e,{span(){},point(o,g){o>n&&(i.push({from:n,to:o}),s+=o-n),n=g}},20),n<e&&(i.push({from:n,to:e}),s+=e-n),{total:s,ranges:i}}function Jg({total:r,ranges:e},t){if(t<=0)return e[0].from;if(t>=1)return e[e.length-1].to;let i=Math.floor(r*t);for(let n=0;;n++){let{from:s,to:o}=e[n],g=o-s;if(i<=g)return s+i;i-=g}}function $g(r,e){let t=0;for(let{from:i,to:n}of r.ranges){if(e<=n){t+=e-i;break}t+=n-i}return t/r.total}function nW(r,e){for(let t of r)if(e(t))return t}var uD={toDOM(r){return r},fromDOM(r){return r},scale:1,eq(r){return r==this}};function fD(r){let e=r.facet(Ta).filter(i=>typeof i!="function"),t=r.facet(em).filter(i=>typeof i!="function");return t.length&&e.push(le.join(t)),e}var Fp=class r{constructor(e,t,i){let n=0,s=0,o=0;this.viewports=i.map(({from:g,to:a})=>{let A=t.lineAt(g,be.ByPos,e,0,0).top,C=t.lineAt(a,be.ByPos,e,0,0).bottom;return n+=C-A,{from:g,to:a,top:A,bottom:C,domTop:0,domBottom:0}}),this.scale=(7e6-n)/(t.height-n);for(let g of this.viewports)g.domTop=o+(g.top-s)*this.scale,o=g.domBottom=g.domTop+(g.bottom-g.top),s=g.bottom}toDOM(e){for(let t=0,i=0,n=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.top)return n+(e-i)*this.scale;if(e<=s.bottom)return s.domTop+(e-s.top);i=s.bottom,n=s.domBottom}}fromDOM(e){for(let t=0,i=0,n=0;;t++){let s=t<this.viewports.length?this.viewports[t]:null;if(!s||e<s.domTop)return i+(e-n)/this.scale;if(e<=s.domBottom)return s.top+(e-s.domTop);i=s.bottom,n=s.domBottom}}eq(e){return e instanceof r?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((t,i)=>t.from==e.viewports[i].from&&t.to==e.viewports[i].to):!1}};function oo(r,e){if(e.scale==1)return r;let t=e.toDOM(r.top),i=e.toDOM(r.bottom);return new Jt(r.from,r.length,t,i-t,Array.isArray(r._content)?r._content.map(n=>oo(n,e)):r._content)}var ea=G.define({combine:r=>r.join(" ")}),Lp=G.define({combine:r=>r.indexOf(!0)>-1}),zp=Ft.newName(),h2=Ft.newName(),d2=Ft.newName(),c2={"&light":"."+h2,"&dark":"."+d2};function qp(r,e,t){return new Ft(e,{finish(i){return/&/.test(i)?i.replace(/&\w*/,n=>{if(n=="&")return r;if(!t||!t[n])throw new RangeError(`Unsupported selector: ${n}`);return t[n]}):r+" "+i}})}var rW=qp("."+zp,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0,overflowAnchor:"none"},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#ddd"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",zIndex:200},".cm-gutters-before":{insetInlineStart:0},".cm-gutters-after":{insetInlineEnd:0},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",border:"0px solid #ddd","&.cm-gutters-before":{borderRightWidth:"1px"},"&.cm-gutters-after":{borderLeftWidth:"1px"}},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0,zIndex:300},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-dialog":{padding:"2px 19px 4px 6px",position:"relative","& label":{fontSize:"80%"}},".cm-dialog-close":{position:"absolute",top:"3px",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",fontSize:"14px",padding:"0"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top",userSelect:"none"},".cm-highlightSpace":{backgroundImage:"radial-gradient(circle at 50% 55%, #aaa 20%, transparent 5%)",backgroundPosition:"center"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},c2),sW={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},rp=q.ie&&q.ie_version<=11,Vp=class{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new lp,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(t=>{for(let i of t)this.queue.push(i);(q.ie&&q.ie_version<=11||q.ios&&e.composing)&&t.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&q.android&&e.constructor.EDIT_CONTEXT!==!1&&!(q.chrome&&q.chrome_version<126)&&(this.editContext=new Wp(e),e.state.facet(Gi)&&(e.contentDOM.editContext=this.editContext.editContext)),rp&&(this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var t;((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(t=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(t=>{t.length>0&&t[t.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){(e.type=="change"||!e.type)&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((t,i)=>t!=e[i]))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,n=this.selectionRange;if(i.state.facet(Gi)?i.root.activeElement!=this.dom:!ra(this.dom,n))return;let s=n.anchorNode&&i.docView.tile.nearest(n.anchorNode);if(s&&s.isWidget()&&s.widget.ignoreEvent(e)){t||(this.selectionChanged=!1);return}(q.ie&&q.ie_version<=11||q.android&&q.chrome)&&!i.state.selection.main.empty&&n.focusNode&&go(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=fo(e.root);if(!t)return!1;let i=q.safari&&e.root.nodeType==11&&e.root.activeElement==this.dom&&oW(this.view,t)||t;if(!i||this.selectionRange.eq(i))return!1;let n=ra(this.dom,i);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&$5(this.dom,i)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(i),n&&(this.selectionChanged=!0),!0)}setSelectionRange(e,t){this.selectionRange.set(e.node,e.offset,t.node,t.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,t=null;for(let i=this.dom;i;)if(i.nodeType==1)!t&&e<this.scrollTargets.length&&this.scrollTargets[e]==i?e++:t||(t=this.scrollTargets.slice(0,e)),t&&t.push(i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;if(e<this.scrollTargets.length&&!t&&(t=this.scrollTargets.slice(0,e)),t){for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);for(let i of this.scrollTargets=t)i.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,sW),rp&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),rp&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,t){var i;if(!this.delayedAndroidKey){let n=()=>{let s=this.delayedAndroidKey;s&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=s.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&s.force&&Zr(this.dom,s.key,s.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(n)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange<Date.now()-50||!!(!((i=this.delayedAndroidKey)===null||i===void 0)&&i.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,i=-1,n=!1;for(let s of e){let o=this.readMutation(s);o&&(o.typeOver&&(n=!0),t==-1?{from:t,to:i}=o:(t=Math.min(o.from,t),i=Math.max(o.to,i)))}return{from:t,to:i,typeOver:n}}readChange(){let{from:e,to:t,typeOver:i}=this.processRecords(),n=this.selectionChanged&&ra(this.dom,this.selectionRange);if(e<0&&!n)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let s=new Tp(this.view,e,t,i);return this.view.docView.domChanged={newSel:s.newSel?s.newSel.main:null},s}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let i=this.view.state,n=n2(this.view,t);return this.view.state==i&&(t.domChanged||t.newSel&&!t.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),n}readMutation(e){let t=this.view.docView.tile.nearest(e.target);if(!t||t.isWidget())return null;if(t.markDirty(e.type=="attributes"),e.type=="childList"){let i=pD(t,e.previousSibling||e.target.previousSibling,-1),n=pD(t,e.nextSibling||e.target.nextSibling,1);return{from:i?t.posAfter(i):t.posAtStart,to:n?t.posBefore(n):t.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Gi)!=e.state.facet(Gi)&&(e.view.contentDOM.editContext=e.state.facet(Gi)?this.editContext.editContext:null))}destroy(){var e,t,i;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(t=this.gapIntersection)===null||t===void 0||t.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let n of this.scrollTargets)n.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}};function pD(r,e,t){for(;e;){let i=_e.get(e);if(i&&i.parent==r)return i;let n=e.parentNode;e=n!=r.dom?n:t>0?e.nextSibling:e.previousSibling}return null}function mD(r,e){let t=e.startContainer,i=e.startOffset,n=e.endContainer,s=e.endOffset,o=r.docView.domAtPos(r.state.selection.main.anchor,1);return go(o.node,o.offset,n,s)&&([t,i,n,s]=[n,s,t,i]),{anchorNode:t,anchorOffset:i,focusNode:n,focusOffset:s}}function oW(r,e){if(e.getComposedRanges){let n=e.getComposedRanges(r.root)[0];if(n)return mD(r,n)}let t=null;function i(n){n.preventDefault(),n.stopImmediatePropagation(),t=n.getTargetRanges()[0]}return r.contentDOM.addEventListener("beforeinput",i,!0),r.dom.ownerDocument.execCommand("indent"),r.contentDOM.removeEventListener("beforeinput",i,!0),t?mD(r,t):null}var Wp=class{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.composing=null,this.resetRange(e.state);let t=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});this.handlers.textupdate=i=>{let n=e.state.selection.main,{anchor:s,head:o}=n,g=this.toEditorPos(i.updateRangeStart),a=this.toEditorPos(i.updateRangeEnd);e.inputState.composing>=0&&!this.composing&&(this.composing={contextBase:i.updateRangeStart,editorBase:g,drifted:!1});let A=a-g>i.text.length;g==this.from&&s<this.from?g=s:a==this.to&&s>this.to&&(a=s);let C=r2(e.state.sliceDoc(g,a),i.text,(A?n.from:n.to)-g,A?"end":null);if(!C){let l=N.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd));l.main.eq(n)||e.dispatch({selection:l,userEvent:"select"});return}let I={from:C.from+g,to:C.toA+g,insert:re.of(i.text.slice(C.from,C.toB).split(`
`))};if((q.mac||q.android)&&I.from==o-1&&/^\. ?$/.test(i.text)&&e.contentDOM.getAttribute("autocorrect")=="off"&&(I={from:g,to:a,insert:re.of([i.text.replace("."," ")])}),this.pendingContextChange=I,!e.state.readOnly){let l=this.to-this.from+(I.to-I.from+I.insert.length);im(e,I,N.single(this.toEditorPos(i.selectionStart,l),this.toEditorPos(i.selectionEnd,l)))}this.pendingContextChange&&(this.revertPending(e.state),this.setSelection(e.state)),I.from<I.to&&!I.insert.length&&e.inputState.composing>=0&&!/[\\p{Alphabetic}\\p{Number}_]/.test(t.text.slice(Math.max(0,i.updateRangeStart-1),Math.min(t.text.length,i.updateRangeStart+1)))&&this.handlers.compositionend(i)},this.handlers.characterboundsupdate=i=>{let n=[],s=null;for(let o=this.toEditorPos(i.rangeStart),g=this.toEditorPos(i.rangeEnd);o<g;o++){let a=e.coordsForChar(o);s=a&&new DOMRect(a.left,a.top,a.right-a.left,a.bottom-a.top)||s||new DOMRect,n.push(s)}t.updateCharacterBounds(i.rangeStart,n)},this.handlers.textformatupdate=i=>{let n=[];for(let s of i.getTextFormats()){let o=s.underlineStyle,g=s.underlineThickness;if(!/none/i.test(o)&&!/none/i.test(g)){let a=this.toEditorPos(s.rangeStart),A=this.toEditorPos(s.rangeEnd);if(a<A){let C=`text-decoration: underline ${/^[a-z]/.test(o)?o+" ":o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${/thin/i.test(g)?1:2}px`;n.push(oe.mark({attributes:{style:C}}).range(a,A))}}}e.dispatch({effects:YD.of(oe.set(n))})},this.handlers.compositionstart=()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{if(e.inputState.composing=-1,e.inputState.compositionFirstChange=null,this.composing){let{drifted:i}=this.composing;this.composing=null,i&&this.reset(e.state)}};for(let i in this.handlers)t.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let n=fo(i.root);n&&n.rangeCount&&this.editContext.updateSelectionBounds(n.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let t=0,i=!1,n=this.pendingContextChange;return e.changes.iterChanges((s,o,g,a,A)=>{if(i)return;let C=A.length-(o-s);if(n&&o>=n.to)if(n.from==s&&n.to==o&&n.insert.eq(A)){n=this.pendingContextChange=null,t+=C,this.to+=C;return}else n=null,this.revertPending(e.state);if(s+=t,o+=t,o<=this.from)this.from+=C,this.to+=C;else if(s<this.to){if(s<this.from||o>this.to||this.to-this.from+A.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(s),this.toContextPos(o),A.toString()),this.to+=C}t+=C}),n&&!i&&this.revertPending(e.state),!i}update(e){let t=this.pendingContextChange,i=e.startState.selection.main;this.composing&&(this.composing.drifted||!e.changes.touchesRange(i.from,i.to)&&e.transactions.some(n=>!n.isUserEvent("input.type")&&n.changes.touchesRange(this.from,this.to)))?(this.composing.drifted=!0,this.composing.editorBase=e.changes.mapPos(this.composing.editorBase)):!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.reset(e.state)):(e.docChanged||e.selectionSet||t)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:t}=e.selection.main;this.from=Math.max(0,t-1e4),this.to=Math.min(e.doc.length,t+1e4)}reset(e){this.resetRange(e),this.editContext.updateText(0,this.editContext.text.length,e.doc.sliceString(this.from,this.to)),this.setSelection(e)}revertPending(e){let t=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(t.from),this.toContextPos(t.from+t.insert.length),e.doc.sliceString(t.from,t.to))}setSelection(e){let{main:t}=e.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,t.anchor))),n=this.toContextPos(t.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=n)&&this.editContext.updateSelection(i,n)}rangeIsValid(e){let{head:t}=e.selection.main;return!(this.from>0&&t-this.from<500||this.to<e.doc.length&&this.to-t<500||this.to-this.from>1e4*3)}toEditorPos(e,t=this.to-this.from){e=Math.min(e,t);let i=this.composing;return i&&i.drifted?i.editorBase+(e-i.contextBase):e+this.from}toContextPos(e){let t=this.composing;return t&&t.drifted?t.contextBase+(e-t.editorBase):e-this.from}destroy(){for(let e in this.handlers)this.editContext.removeEventListener(e,this.handlers[e])}},K=class r{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return!!this.inputState&&this.inputState.composing>0}get compositionStarted(){return!!this.inputState&&this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){var t;this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:i}=e;this.dispatchTransactions=e.dispatchTransactions||i&&(n=>n.forEach(s=>i(s,this)))||(n=>this.update(n)),this.dispatch=this.dispatch.bind(this),this._root=e.root||J5(e.parent)||document,this.viewState=new ma(e.state||Te.create(e)),e.scrollTo&&e.scrollTo.is(Ug)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(qr).map(n=>new Ao(n));for(let n of this.plugins)n.update(this);this.observer=new Vp(this),this.inputState=new kp(this),this.inputState.ensureHandlers(this.plugins),this.docView=new ca(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((t=document.fonts)===null||t===void 0)&&t.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...e){let t=e.length==1&&e[0]instanceof He?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(t,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let t=!1,i=!1,n,s=this.state;for(let l of e){if(l.startState!=s)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");s=l.state}if(this.destroyed){this.viewState.state=s;return}let o=this.hasFocus,g=0,a=null;e.some(l=>l.annotation(C2))?(this.inputState.notifiedFocused=o,g=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,a=I2(s,o),a||(g=1));let A=this.observer.delayedAndroidKey,C=null;if(A?(this.observer.clearDelayedAndroidKey(),C=this.observer.readChange(),(C&&!this.state.doc.eq(s.doc)||!this.state.selection.eq(s.selection))&&(C=null)):this.observer.clear(),s.facet(Te.phrases)!=this.state.facet(Te.phrases))return this.setState(s);n=ha.create(this,s,e),n.flags|=g;let I=this.viewState.scrollTarget;try{this.updateState=2;for(let l of e){if(I&&(I=I.map(l.changes)),l.scrollIntoView){let{main:h}=l.state.selection;I=new ao(h.empty?h:N.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of l.effects)h.is(Ug)&&(I=h.value.clip(this.state))}this.viewState.update(n,I),this.bidiCache=va.update(this.bidiCache,n.changes),n.empty||(this.updatePlugins(n),this.inputState.update(n)),t=this.docView.update(n),this.state.facet(ro)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(t,e.some(l=>l.isUserEvent("select.pointer")))}finally{this.updateState=0}if(n.startState.facet(ea)!=n.state.facet(ea)&&(this.viewState.mustMeasureContent=!0),(t||i||I||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),t&&this.docViewUpdate(),!n.empty)for(let l of this.state.facet(up))try{l(n)}catch(h){St(this.state,h,"update listener")}(a||C)&&Promise.resolve().then(()=>{a&&this.state==a.startState&&this.dispatch(a),C&&!n2(this,C)&&A.force&&Zr(this.contentDOM,A.key,A.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let t=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new ma(e),this.plugins=e.facet(qr).map(i=>new Ao(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new ca(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet(qr),i=e.state.facet(qr);if(t!=i){let n=[];for(let s of i){let o=t.indexOf(s);if(o<0)n.push(new Ao(s));else{let g=this.plugins[o];g.mustUpdate=e,n.push(g)}}for(let s of this.plugins)s.mustUpdate!=e&&s.destroy(this);this.plugins=n,this.pluginMap.clear()}else for(let n of this.plugins)n.mustUpdate=e;for(let n=0;n<this.plugins.length;n++)this.plugins[n].update(this);t!=i&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let t=e.value;if(t&&t.docViewUpdate)try{t.docViewUpdate(this)}catch(i){St(this.state,i,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,i=this.scrollDOM,n=i.scrollTop*this.scaleY,{scrollAnchorPos:s,scrollAnchorHeight:o}=this.viewState;Math.abs(n-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let g=0;;g++){if(o<0)if(DD(i))s=-1,o=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(n);s=h.from,o=h.top}this.updateState=1;let a=this.viewState.measure(this);if(!a&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(g>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let A=[];a&4||([this.measureRequests,A]=[A,this.measureRequests]);let C=A.map(h=>{try{return h.read(this)}catch(d){return St(this.state,d),vD}}),I=ha.create(this,this.state,[]),l=!1;I.flags|=a,t?t.flags|=a:t=I,this.updateState=2,I.empty||(this.updatePlugins(I),this.inputState.update(I),this.updateAttrs(),l=this.docView.update(I),l&&this.docViewUpdate());for(let h=0;h<A.length;h++)if(C[h]!=vD)try{let d=A[h];d.write&&d.write(C[h],this)}catch(d){St(this.state,d)}if(l&&this.docView.updateSelection(!0),!I.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,o=-1;continue}else{let d=(s<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(s).top)-o;if(d>1||d<-1){n=n+d,i.scrollTop=n/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let g of this.state.facet(up))g(t)}get themeClasses(){return zp+" "+(this.state.facet(Lp)?d2:h2)+" "+this.state.facet(ea)}updateAttrs(){let e=bD(this,KD,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",writingsuggestions:"false",translate:"no",contenteditable:this.state.facet(Gi)?"true":"false",class:"cm-content",style:`${q.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),bD(this,$p,t);let i=this.observer.ignore(()=>{let n=JR(this.contentDOM,this.contentAttrs,t),s=JR(this.dom,this.editorAttrs,e);return n||s});return this.editorAttrs=e,this.contentAttrs=t,i}showAnnouncements(e){let t=!0;for(let i of e)for(let n of i.effects)if(n.is(r.announce)){t&&(this.announceDOM.textContent=""),t=!1;let s=this.announceDOM.appendChild(document.createElement("div"));s.textContent=n.value}}mountStyles(){this.styleModules=this.state.facet(ro);let e=this.state.facet(r.cspNonce);Ft.mount(this.root,this.styleModules.concat(rW).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let t=0;t<this.measureRequests.length;t++)if(this.measureRequests[t].key===e.key){this.measureRequests[t]=e;return}}this.measureRequests.push(e)}}plugin(e){let t=this.pluginMap.get(e);return(t===void 0||t&&t.plugin!=e)&&this.pluginMap.set(e,t=this.plugins.find(i=>i.plugin==e)||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,i){return np(this,e,rD(this,e,t,i))}moveByGroup(e,t){return np(this,e,rD(this,e,t,i=>OV(this,e.head,i)))}visualLineSide(e,t){let i=this.bidiSpans(e),n=this.textDirectionAt(e.from),s=i[t?i.length-1:0];return N.cursor(s.side(t,n)+e.from,s.forward(!t,n)?1:-1)}moveToLineBoundary(e,t,i=!0){return kV(this,e,t,i)}moveVertically(e,t,i){return np(this,e,RV(this,e,t,i))}domAtPos(e,t=1){return this.docView.domAtPos(e,t)}posAtDOM(e,t=0){return this.docView.posFromDOM(e,t)}posAtCoords(e,t=!0){this.readMeasured();let i=Sp(this,e,t);return i&&i.pos}posAndSideAtCoords(e,t=!0){return this.readMeasured(),Sp(this,e,t)}coordsAtPos(e,t=1){this.readMeasured();let i=this.docView.coordsAt(e,t);if(!i||i.left==i.right)return i;let n=this.state.doc.lineAt(e),s=this.bidiSpans(n),o=s[$t.find(s,e-n.from,-1,t)];return la(i,o.dir==ye.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(jD)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>gW)return FD(e.length);let t=this.textDirectionAt(e.from),i;for(let s of this.bidiCache)if(s.from==e.from&&s.dir==t&&(s.fresh||BD(s.isolates,i=tD(this,e))))return s.order;i||(i=tD(this,e));let n=oV(e.text,t,i);return this.bidiCache.push(new va(e.from,e.to,t,i,!0,n)),n}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||q.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{RD(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,t={}){return Ug.of(new ao(typeof e=="number"?N.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,i=this.viewState.scrollAnchorAt(e);return Ug.of(new ao(N.cursor(i.from),"start","start",i.top-e,t,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return ti.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return ti.define(()=>({}),{eventObservers:e})}static theme(e,t){let i=Ft.newName(),n=[ea.of(i),ro.of(qp(`.${i}`,e))];return t&&t.dark&&n.push(Lp.of(!0)),n}static baseTheme(e){return no.lowest(ro.of(qp("."+zp,e,c2)))}static findFromDOM(e){var t;let i=e.querySelector(".cm-content"),n=i&&_e.get(i)||_e.get(e);return((t=n?.root)===null||t===void 0?void 0:t.view)||null}};K.styleModule=ro;K.inputHandler=GD;K.clipboardInputFilter=Qp;K.clipboardOutputFilter=Jp;K.scrollHandler=HD;K.focusChangeEffect=ZD;K.perLineTextDirection=jD;K.exceptionSink=WD;K.updateListener=up;K.editable=Gi;K.mouseSelectionStyle=VD;K.dragMovesSelection=qD;K.clickAddsSelectionRange=zD;K.decorations=Ta;K.blockWrappers=UD;K.outerDecorations=em;K.atomicRanges=mo;K.bidiIsolatedRanges=XD;K.scrollMargins=QD;K.darkTheme=Lp;K.cspNonce=G.define({combine:r=>r.length?r[0]:""});K.contentAttributes=$p;K.editorAttributes=KD;K.lineWrapping=K.contentAttributes.of({class:"cm-lineWrapping"});K.announce=de.define();var gW=4096,vD={},va=class r{constructor(e,t,i,n,s,o){this.from=e,this.to=t,this.dir=i,this.isolates=n,this.fresh=s,this.order=o}static update(e,t){if(t.empty&&!e.some(s=>s.fresh))return e;let i=[],n=e.length?e[e.length-1].dir:ye.LTR;for(let s=Math.max(0,e.length-10);s<e.length;s++){let o=e[s];o.dir==n&&!t.touchesRange(o.from,o.to)&&i.push(new r(t.mapPos(o.from,1),t.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return i}};function bD(r,e,t){for(let i=r.state.facet(e),n=i.length-1;n>=0;n--){let s=i[n],o=typeof s=="function"?s(r):s;o&&Kp(o,t)}return t}var aW=q.mac?"mac":q.windows?"win":q.linux?"linux":"key";function AW(r,e){let t=r.split(/-(?!$)/),i=t[t.length-1];i=="Space"&&(i=" ");let n,s,o,g;for(let a=0;a<t.length-1;++a){let A=t[a];if(/^(cmd|meta|m)$/i.test(A))g=!0;else if(/^a(lt)?$/i.test(A))n=!0;else if(/^(c|ctrl|control)$/i.test(A))s=!0;else if(/^s(hift)?$/i.test(A))o=!0;else if(/^mod$/i.test(A))e=="mac"?g=!0:s=!0;else throw new Error("Unrecognized modifier name: "+A)}return n&&(i="Alt-"+i),s&&(i="Ctrl-"+i),g&&(i="Meta-"+i),o&&(i="Shift-"+i),i}function ta(r,e,t){return e.altKey&&(r="Alt-"+r),e.ctrlKey&&(r="Ctrl-"+r),e.metaKey&&(r="Meta-"+r),t!==!1&&e.shiftKey&&(r="Shift-"+r),r}var CW=no.default(K.domEventHandlers({keydown(r,e){return dW(IW(e.state),r,e,"editor")}})),Oa=G.define({enables:CW}),yD=new WeakMap;function IW(r){let e=r.facet(Oa),t=yD.get(e);return t||yD.set(e,t=hW(e.reduce((i,n)=>i.concat(n),[]))),t}var An=null,lW=4e3;function hW(r,e=aW){let t=Object.create(null),i=Object.create(null),n=(o,g)=>{let a=i[o];if(a==null)i[o]=g;else if(a!=g)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},s=(o,g,a,A,C)=>{var I,l;let h=t[o]||(t[o]=Object.create(null)),d=g.split(/ (?!$)/).map(u=>AW(u,e));for(let u=1;u<d.length;u++){let p=d.slice(0,u).join(" ");n(p,!0),h[p]||(h[p]={preventDefault:!0,stopPropagation:!1,run:[v=>{let m=An={view:v,prefix:p,scope:o};return setTimeout(()=>{An==m&&(An=null)},lW),!0}]})}let c=d.join(" ");n(c,!1);let f=h[c]||(h[c]={preventDefault:!1,stopPropagation:!1,run:((l=(I=h._any)===null||I===void 0?void 0:I.run)===null||l===void 0?void 0:l.slice())||[]});a&&f.run.push(a),A&&(f.preventDefault=!0),C&&(f.stopPropagation=!0)};for(let o of r){let g=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let A of g){let C=t[A]||(t[A]=Object.create(null));C._any||(C._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:I}=o;for(let l in C)C[l].run.push(h=>I(h,Gp))}let a=o[e]||o.key;if(a)for(let A of g)s(A,a,o.run,o.preventDefault,o.stopPropagation),o.shift&&s(A,"Shift-"+a,o.shift,o.preventDefault,o.stopPropagation)}return t}var Gp=null;function dW(r,e,t,i){Gp=e;let n=KR(e),s=Lr(n,0),o=io(s)==n.length&&n!=" ",g="",a=!1,A=!1,C=!1;An&&An.view==t&&An.scope==i&&(g=An.prefix+" ",o2.indexOf(e.keyCode)<0&&(A=!0,An=null));let I=new Set,l=f=>{if(f){for(let u of f.run)if(!I.has(u)&&(I.add(u),u(t)))return f.stopPropagation&&(C=!0),!0;f.preventDefault&&(f.stopPropagation&&(C=!0),A=!0)}return!1},h=r[i],d,c;return h&&(l(h[g+ta(n,e,!o)])?a=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(q.windows&&e.ctrlKey&&e.altKey)&&!(q.mac&&e.altKey&&!(e.ctrlKey||e.metaKey))&&(d=Wi[e.keyCode])&&d!=n?(l(h[g+ta(d,e,!0)])||e.shiftKey&&(c=zr[e.keyCode])!=n&&c!=d&&l(h[g+ta(c,e,!1)]))&&(a=!0):o&&e.shiftKey&&l(h[g+ta(n,e,!0)])&&(a=!0),!a&&l(h._any)&&(a=!0)),A&&(a=!0),a&&C&&e.stopPropagation(),Gp=null,a}var Hj=/x/.unicode!=null?"gu":"g";function u2(){return uW}var cW=oe.line({class:"cm-activeLine"}),uW=ti.fromClass(class{constructor(r){this.decorations=this.getDeco(r)}update(r){(r.docChanged||r.selectionSet)&&(this.decorations=this.getDeco(r.view))}getDeco(r){let e=-1,t=[];for(let i of r.state.selection.ranges){let n=r.lineBlockAt(i.head);n.from>e&&(t.push(cW.range(n.from)),e=n.from)}return oe.set(t)}},{decorations:r=>r.decorations});var ia="-10000px",ba=class{constructor(e,t,i,n){this.facet=t,this.createTooltipView=i,this.removeTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter(o=>o);let s=null;this.tooltipViews=this.tooltips.map(o=>s=i(o,s))}update(e,t){var i;let n=e.state.facet(this.facet),s=n.filter(a=>a);if(n===this.input){for(let a of this.tooltipViews)a.update&&a.update(e);return!1}let o=[],g=t?[]:null;for(let a=0;a<s.length;a++){let A=s[a],C=-1;if(A){for(let I=0;I<this.tooltips.length;I++){let l=this.tooltips[I];l&&l.create==A.create&&(C=I)}if(C<0)o[a]=this.createTooltipView(A,a?o[a-1]:null),g&&(g[a]=!!A.above);else{let I=o[a]=this.tooltipViews[C];g&&(g[a]=t[C]),I.update&&I.update(e)}}}for(let a of this.tooltipViews)o.indexOf(a)<0&&(this.removeTooltipView(a),(i=a.destroy)===null||i===void 0||i.call(a));return t&&(g.forEach((a,A)=>t[A]=a),t.length=g.length),this.input=n,this.tooltips=s,this.tooltipViews=o,!0}};function fW(r){let e=r.dom.ownerDocument.documentElement;return{top:0,left:0,bottom:e.clientHeight,right:e.clientWidth}}var sp=G.define({combine:r=>{var e,t,i;return{position:q.ios?"absolute":((e=r.find(n=>n.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((t=r.find(n=>n.parent))===null||t===void 0?void 0:t.parent)||null,tooltipSpace:((i=r.find(n=>n.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||fW}}}),wD=new WeakMap,f2=ti.fromClass(class{constructor(r){this.view=r,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=r.state.facet(sp);this.position=e.position,this.parent=e.parent,this.classes=r.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ba(r,nm,(t,i)=>this.createTooltip(t,i),t=>{this.resizeObserver&&this.resizeObserver.unobserve(t.dom),t.dom.remove()}),this.above=this.manager.tooltips.map(t=>!!t.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(t=>{Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),r.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let r of this.manager.tooltipViews)this.intersectionObserver.observe(r.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(r){r.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(r,this.above);e&&this.observeIntersection();let t=e||r.geometryChanged,i=r.state.facet(sp);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let n of this.manager.tooltipViews)n.dom.style.position=this.position;t=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let n of this.manager.tooltipViews)this.container.appendChild(n.dom);t=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);t&&this.maybeMeasure()}createTooltip(r,e){let t=r.create(this.view),i=e?e.dom:null;if(t.dom.classList.add("cm-tooltip"),r.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let n=document.createElement("div");n.className="cm-tooltip-arrow",t.dom.appendChild(n)}return t.dom.style.position=this.position,t.dom.style.top=ia,t.dom.style.left="0px",this.container.insertBefore(t.dom,i),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var r,e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(r=i.destroy)===null||r===void 0||r.call(i);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(t=this.intersectionObserver)===null||t===void 0||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let r=1,e=1,t=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(q.safari){let o=s.getBoundingClientRect();t=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}else t=!!s.offsetParent&&s.offsetParent!=this.container.ownerDocument.body}if(t||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(r=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:r,scaleY:e}=this.view.viewState);let i=this.view.scrollDOM.getBoundingClientRect(),n=tm(this.view);return{visible:{left:i.left+n.left,top:i.top+n.top,right:i.right-n.right,bottom:i.bottom-n.bottom},parent:this.parent?this.container.getBoundingClientRect():this.view.dom.getBoundingClientRect(),pos:this.manager.tooltips.map((s,o)=>{let g=this.manager.tooltipViews[o];return g.getCoords?g.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(sp).tooltipSpace(this.view),scaleX:r,scaleY:e,makeAbsolute:t}}writeMeasure(r){var e;if(r.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let g of this.manager.tooltipViews)g.dom.style.position="absolute"}let{visible:t,space:i,scaleX:n,scaleY:s}=r,o=[];for(let g=0;g<this.manager.tooltips.length;g++){let a=this.manager.tooltips[g],A=this.manager.tooltipViews[g],{dom:C}=A,I=r.pos[g],l=r.size[g];if(!I||a.clip!==!1&&(I.bottom<=Math.max(t.top,i.top)||I.top>=Math.min(t.bottom,i.bottom)||I.right<Math.max(t.left,i.left)-.1||I.left>Math.min(t.right,i.right)+.1)){C.style.top=ia;continue}let h=a.arrow?A.dom.querySelector(".cm-tooltip-arrow"):null,d=h?7:0,c=l.right-l.left,f=(e=wD.get(A))!==null&&e!==void 0?e:l.bottom-l.top,u=A.offset||mW,p=this.view.textDirection==ye.LTR,v=l.width>i.right-i.left?p?i.left:i.right-l.width:p?Math.max(i.left,Math.min(I.left-(h?14:0)+u.x,i.right-c)):Math.min(Math.max(i.left,I.left-c+(h?14:0)-u.x),i.right-c),m=this.above[g];!a.strictSide&&(m?I.top-f-d-u.y<i.top:I.bottom+f+d+u.y>i.bottom)&&m==i.bottom-I.bottom>I.top-i.top&&(m=this.above[g]=!m);let b=(m?I.top-i.top:i.bottom-I.bottom)-d;if(b<f&&A.resize!==!1){if(b<this.view.defaultLineHeight){C.style.top=ia;continue}wD.set(A,f),C.style.height=(f=b)/s+"px"}else C.style.height&&(C.style.height="");let w=m?I.top-f-d-u.y:I.bottom+d+u.y,x=v+c;if(A.overlap!==!0)for(let y of o)y.left<x&&y.right>v&&y.top<w+f&&y.bottom>w&&(w=m?y.top-f-2-d:y.bottom+d+2);if(this.position=="absolute"?(C.style.top=(w-r.parent.top)/s+"px",xD(C,(v-r.parent.left)/n)):(C.style.top=w/s+"px",xD(C,v/n)),h){let y=I.left+(p?u.x:-u.x)-(v+14-7);h.style.left=y/n+"px"}A.overlap!==!0&&o.push({left:v,top:w,right:x,bottom:w+f}),C.classList.toggle("cm-tooltip-above",m),C.classList.toggle("cm-tooltip-below",!m),A.positioned&&A.positioned(r.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let r of this.manager.tooltipViews)r.dom.style.top=ia}},{eventObservers:{scroll(){this.maybeMeasure()}}});function xD(r,e){let t=parseInt(r.style.left,10);(isNaN(t)||Math.abs(e-t)>1)&&(r.style.left=e+"px")}var pW=K.baseTheme({".cm-tooltip":{zIndex:500,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),mW={x:0,y:0},nm=G.define({enables:[f2,pW]}),ya=G.define({combine:r=>r.reduce((e,t)=>e.concat(t),[])}),wa=class r{static create(e){return new r(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ba(e,ya,(t,i)=>this.createHostedView(t,i),t=>t.dom.remove())}createHostedView(e,t){let i=e.create(this.view);return i.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(i.dom,t?t.dom.nextSibling:this.dom.firstChild),this.mounted&&i.mount&&i.mount(this.view),i}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)(e=t.destroy)===null||e===void 0||e.call(t)}passProp(e){let t;for(let i of this.manager.tooltipViews){let n=i[e];if(n!==void 0){if(t===void 0)t=n;else if(t!==n)return}}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}},vW=nm.compute([ya],r=>{let e=r.facet(ya);return e.length===0?null:{pos:Math.min(...e.map(t=>t.pos)),end:Math.max(...e.map(t=>{var i;return(i=t.end)!==null&&i!==void 0?i:t.pos})),create:wa.create,above:e[0].above,arrow:e.some(t=>t.arrow)}}),Zp=class{constructor(e,t,i,n,s){this.view=e,this.source=t,this.field=i,this.setHover=n,this.hoverTime=s,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:t}=this,i=e.docView.tile.nearest(t.target);if(!i)return;let n,s=1;if(i.isWidget())n=i.posAtStart;else{if(n=e.posAtCoords(t),n==null)return;let g=e.coordsAtPos(n);if(!g||t.y<g.top||t.y>g.bottom||t.x<g.left-e.defaultCharacterWidth||t.x>g.right+e.defaultCharacterWidth)return;let a=e.bidiSpans(e.state.doc.lineAt(n)).find(C=>C.from<=n&&C.to>=n),A=a&&a.dir==ye.RTL?-1:1;s=t.x<g.left?-A:A}let o=this.source(e,n,s);if(o?.then){let g=this.pending={pos:n};o.then(a=>{this.pending==g&&(this.pending=null,a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])}))},a=>St(e.state,a,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(f2),t=e?e.manager.tooltips.findIndex(i=>i.create==wa.create):-1;return t>-1?e.manager.tooltipViews[t]:null}mousemove(e){var t,i;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:n,tooltip:s}=this;if(n.length&&s&&!bW(s.dom,e)||this.pending){let{pos:o}=n[0]||this.pending,g=(i=(t=n[0])===null||t===void 0?void 0:t.end)!==null&&i!==void 0?i:o;(o==g?this.view.posAtCoords(this.lastMove)!=o:!yW(this.view,o,g,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:t}=this;if(t.length){let{tooltip:i}=this;i&&i.dom.contains(e.relatedTarget)?this.watchTooltipLeave(i.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let t=i=>{e.removeEventListener("mouseleave",t),this.active.length&&!this.view.dom.contains(i.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",t)}destroy(){clearTimeout(this.hoverTimeout),clearTimeout(this.restartTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}},na=4;function bW(r,e){let{left:t,right:i,top:n,bottom:s}=r.getBoundingClientRect(),o;if(o=r.querySelector(".cm-tooltip-arrow")){let g=o.getBoundingClientRect();n=Math.min(g.top,n),s=Math.max(g.bottom,s)}return e.clientX>=t-na&&e.clientX<=i+na&&e.clientY>=n-na&&e.clientY<=s+na}function yW(r,e,t,i,n,s){let o=r.scrollDOM.getBoundingClientRect(),g=r.documentTop+r.documentPadding.top+r.contentHeight;if(o.left>i||o.right<i||o.top>n||Math.min(o.bottom,g)<n)return!1;let a=r.posAtCoords({x:i,y:n},!1);return a>=e&&a<=t}function p2(r,e={}){let t=de.define(),i=Qe.define({create(){return[]},update(n,s){if(n.length&&(e.hideOnChange&&(s.docChanged||s.selection)?n=[]:e.hideOn&&(n=n.filter(o=>!e.hideOn(s,o))),s.docChanged)){let o=[];for(let g of n){let a=s.changes.mapPos(g.pos,-1,it.TrackDel);if(a!=null){let A=Object.assign(Object.create(null),g);A.pos=a,A.end!=null&&(A.end=s.changes.mapPos(A.end)),o.push(A)}}n=o}for(let o of s.effects)o.is(t)&&(n=o.value),o.is(wW)&&(n=[]);return n},provide:n=>ya.from(n)});return{active:i,extension:[i,ti.define(n=>new Zp(n,r,i,t,e.hoverTime||300)),vW]}}var wW=de.define();var ni=class extends Bt{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}};ni.prototype.elementClass="";ni.prototype.toDOM=void 0;ni.prototype.mapMode=it.TrackBefore;ni.prototype.startSide=ni.prototype.endSide=-1;ni.prototype.point=!0;var ga=G.define(),xW=G.define();var aa=G.define();var jp=G.define({combine:r=>r.some(e=>e)});function SW(r){let e=[EW];return r&&r.fixed===!1&&e.push(jp.of(!0)),e}var EW=ti.fromClass(class{constructor(r){this.view=r,this.domAfter=null,this.prevViewport=r.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters cm-gutters-before",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=r.state.facet(aa).map(e=>new xa(r,e)),this.fixed=!r.state.facet(jp);for(let e of this.gutters)e.config.side=="after"?this.getDOMAfter().appendChild(e.dom):this.dom.appendChild(e.dom);this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),r.scrollDOM.insertBefore(this.dom,r.contentDOM)}getDOMAfter(){return this.domAfter||(this.domAfter=document.createElement("div"),this.domAfter.className="cm-gutters cm-gutters-after",this.domAfter.setAttribute("aria-hidden","true"),this.domAfter.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.domAfter.style.position=this.fixed?"sticky":"",this.view.scrollDOM.appendChild(this.domAfter)),this.domAfter}update(r){if(this.updateGutters(r)){let e=this.prevViewport,t=r.view.viewport,i=Math.min(e.to,t.to)-Math.max(e.from,t.from);this.syncGutters(i<(t.to-t.from)*.8)}if(r.geometryChanged){let e=this.view.contentHeight/this.view.scaleY+"px";this.dom.style.minHeight=e,this.domAfter&&(this.domAfter.style.minHeight=e)}this.view.state.facet(jp)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":"",this.domAfter&&(this.domAfter.style.position=this.fixed?"sticky":"")),this.prevViewport=r.view.viewport}syncGutters(r){let e=this.dom.nextSibling;r&&(this.dom.remove(),this.domAfter&&this.domAfter.remove());let t=le.iter(this.view.state.facet(ga),this.view.viewport.from),i=[],n=this.gutters.map(s=>new Yp(s,this.view.viewport,-this.view.documentPadding.top));for(let s of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(s.type)){let o=!0;for(let g of s.type)if(g.type==vt.Text&&o){Hp(t,i,g.from);for(let a of n)a.line(this.view,g,i);o=!1}else if(g.widget)for(let a of n)a.widget(this.view,g)}else if(s.type==vt.Text){Hp(t,i,s.from);for(let o of n)o.line(this.view,s,i)}else if(s.widget)for(let o of n)o.widget(this.view,s);for(let s of n)s.finish();r&&(this.view.scrollDOM.insertBefore(this.dom,e),this.domAfter&&this.view.scrollDOM.appendChild(this.domAfter))}updateGutters(r){let e=r.startState.facet(aa),t=r.state.facet(aa),i=r.docChanged||r.heightChanged||r.viewportChanged||!le.eq(r.startState.facet(ga),r.state.facet(ga),r.view.viewport.from,r.view.viewport.to);if(e==t)for(let n of this.gutters)n.update(r)&&(i=!0);else{i=!0;let n=[];for(let s of t){let o=e.indexOf(s);o<0?n.push(new xa(this.view,s)):(this.gutters[o].update(r),n.push(this.gutters[o]))}for(let s of this.gutters)s.dom.remove(),n.indexOf(s)<0&&s.destroy();for(let s of n)s.config.side=="after"?this.getDOMAfter().appendChild(s.dom):this.dom.appendChild(s.dom);this.gutters=n}return i}destroy(){for(let r of this.gutters)r.destroy();this.dom.remove(),this.domAfter&&this.domAfter.remove()}},{provide:r=>K.scrollMargins.of(e=>{let t=e.plugin(r);if(!t||t.gutters.length==0||!t.fixed)return null;let i=t.dom.offsetWidth*e.scaleX,n=t.domAfter?t.domAfter.offsetWidth*e.scaleX:0;return e.textDirection==ye.LTR?{left:i,right:n}:{right:i,left:n}})});function SD(r){return Array.isArray(r)?r:[r]}function Hp(r,e,t){for(;r.value&&r.from<=t;)r.from==t&&e.push(r.value),r.next()}var Yp=class{constructor(e,t,i){this.gutter=e,this.height=i,this.i=0,this.cursor=le.iter(e.markers,t.from)}addElement(e,t,i){let{gutter:n}=this,s=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==n.elements.length){let g=new Sa(e,o,s,i);n.elements.push(g),n.dom.appendChild(g.dom)}else n.elements[this.i].update(e,o,s,i);this.height=t.bottom,this.i++}line(e,t,i){let n=[];Hp(this.cursor,n,t.from),i.length&&(n=n.concat(i));let s=this.gutter.config.lineMarker(e,t,n);s&&n.unshift(s);let o=this.gutter;n.length==0&&!o.config.renderEmptyElements||this.addElement(e,t,n)}widget(e,t){let i=this.gutter.config.widgetMarker(e,t.widget,t),n=i?[i]:null;for(let s of e.state.facet(xW)){let o=s(e,t.widget,t);o&&(n||(n=[])).push(o)}n&&this.addElement(e,t,n)}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}},xa=class{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in t.domEventHandlers)this.dom.addEventListener(i,n=>{let s=n.target,o;if(s!=this.dom&&this.dom.contains(s)){for(;s.parentNode!=this.dom;)s=s.parentNode;let a=s.getBoundingClientRect();o=(a.top+a.bottom)/2}else o=n.clientY;let g=e.lineBlockAtHeight(o-e.documentTop);t.domEventHandlers[i](e,g,n)&&n.preventDefault()});this.markers=SD(t.markers(e)),t.initialSpacer&&(this.spacer=new Sa(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=SD(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let n=this.config.updateSpacer(this.spacer.markers[0],e);n!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[n])}let i=e.view.viewport;return!le.eq(this.markers,t,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}},Sa=class{constructor(e,t,i,n){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,i,n)}update(e,t,i,n){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),TW(this.markers,n)||this.setMarkers(e,n)}setMarkers(e,t){let i="cm-gutterElement",n=this.dom.firstChild;for(let s=0,o=0;;){let g=o,a=s<t.length?t[s++]:null,A=!1;if(a){let C=a.elementClass;C&&(i+=" "+C);for(let I=o;I<this.markers.length;I++)if(this.markers[I].compare(a)){g=I,A=!0;break}}else g=this.markers.length;for(;o<g;){let C=this.markers[o++];if(C.toDOM){C.destroy(n);let I=n.nextSibling;n.remove(),n=I}}if(!a)break;a.toDOM&&(A?n=n.nextSibling:this.dom.insertBefore(a.toDOM(e),n)),A&&o++}this.dom.className=i,this.markers=t}destroy(){this.setMarkers(null,[])}};function TW(r,e){if(r.length!=e.length)return!1;for(let t=0;t<r.length;t++)if(!r[t].compare(e[t]))return!1;return!0}var kW=G.define(),OW=G.define(),Wr=G.define({combine(r){return Zn(r,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let i=Object.assign({},e);for(let n in t){let s=i[n],o=t[n];i[n]=s?(g,a,A)=>s(g,a,A)||o(g,a,A):o}return i}})}}),ho=class extends ni{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}};function op(r,e){return r.state.facet(Wr).formatNumber(e,r.state)}var RW=aa.compute([Wr],r=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(kW)},lineMarker(e,t,i){return i.some(n=>n.toDOM)?null:new ho(op(e,e.state.doc.lineAt(t.from).number))},widgetMarker:(e,t,i)=>{for(let n of e.state.facet(OW)){let s=n(e,t,i);if(s)return s}return null},lineMarkerChange:e=>e.startState.facet(Wr)!=e.state.facet(Wr),initialSpacer(e){return new ho(op(e,ED(e.state.doc.lines)))},updateSpacer(e,t){let i=op(t.view,ED(t.view.state.doc.lines));return i==e.number?e:new ho(i)},domEventHandlers:r.facet(Wr).domEventHandlers,side:"before"}));function m2(r={}){return[Wr.of(r),SW(),RW]}function ED(r){let e=9;for(;e<r;)e=e*10+9;return e}var DW=new class extends ni{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},PW=ga.compute(["selection"],r=>{let e=[],t=-1;for(let i of r.selection.ranges){let n=r.doc.lineAt(i.head).from;n>t&&(t=n,e.push(DW.range(n)))}return le.of(e)});function v2(){return PW}var MW=0,vo=class{constructor(e,t){this.from=e,this.to=t}},ee=class{constructor(e={}){this.id=MW++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")}),this.combine=e.combine||null}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=Tt.match(e)),t=>{let i=e(t);return i===void 0?null:[this,i]}}};ee.closedBy=new ee({deserialize:r=>r.split(" ")});ee.openedBy=new ee({deserialize:r=>r.split(" ")});ee.group=new ee({deserialize:r=>r.split(" ")});ee.isolate=new ee({deserialize:r=>{if(r&&r!="rtl"&&r!="ltr"&&r!="auto")throw new RangeError("Invalid value for isolate: "+r);return r||"auto"}});ee.contextHash=new ee({perNode:!0});ee.lookAhead=new ee({perNode:!0});ee.mounted=new ee({perNode:!0});var Qn=class{constructor(e,t,i,n=!1){this.tree=e,this.overlay=t,this.parser=i,this.bracketed=n}static get(e){return e&&e.props&&e.props[ee.mounted.id]}},NW=Object.create(null),Tt=class r{constructor(e,t,i,n=0){this.name=e,this.props=t,this.id=i,this.flags=n}static define(e){let t=e.props&&e.props.length?Object.create(null):NW,i=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),n=new r(e.name||"",t,e.id,i);if(e.props){for(let s of e.props)if(Array.isArray(s)||(s=s(n)),s){if(s[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[s[0].id]=s[1]}}return n}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let t=this.prop(ee.group);return t?t.indexOf(e)>-1:!1}return this.id==e}static match(e){let t=Object.create(null);for(let i in e)for(let n of i.split(" "))t[n]=e[i];return i=>{for(let n=i.prop(ee.group),s=-1;s<(n?n.length:0);s++){let o=t[s<0?i.name:n[s]];if(o)return o}}}};Tt.none=new Tt("",Object.create(null),0,8);var Ra=new WeakMap,b2=new WeakMap,Be;(function(r){r[r.ExcludeBuffers=1]="ExcludeBuffers",r[r.IncludeAnonymous=2]="IncludeAnonymous",r[r.IgnoreMounts=4]="IgnoreMounts",r[r.IgnoreOverlays=8]="IgnoreOverlays",r[r.EnterBracketed=16]="EnterBracketed"})(Be||(Be={}));var nt=class r{constructor(e,t,i,n,s){if(this.type=e,this.children=t,this.positions=i,this.length=n,this.props=null,s&&s.length){this.props=Object.create(null);for(let[o,g]of s)this.props[typeof o=="number"?o:o.id]=g}}toString(){let e=Qn.get(this);if(e&&!e.overlay)return e.tree.toString();let t="";for(let i of this.children){let n=i.toString();n&&(t&&(t+=","),t+=n)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(t.length?"("+t+")":""):t}cursor(e=0){return new wo(this.topNode,e)}cursorAt(e,t=0,i=0){let n=Ra.get(this)||this.topNode,s=new wo(n);return s.moveTo(e,t),Ra.set(this,s._tree),s}get topNode(){return new Ti(this,0,0,null)}resolve(e,t=0){let i=bo(Ra.get(this)||this.topNode,e,t,!1);return Ra.set(this,i),i}resolveInner(e,t=0){let i=bo(b2.get(this)||this.topNode,e,t,!0);return b2.set(this,i),i}resolveStack(e,t=0){return _W(this,e,t)}iterate(e){let{enter:t,leave:i,from:n=0,to:s=this.length}=e,o=e.mode||0,g=(o&Be.IncludeAnonymous)>0;for(let a=this.cursor(o|Be.IncludeAnonymous);;){let A=!1;if(a.from<=s&&a.to>=n&&(!g&&a.type.isAnonymous||t(a)!==!1)){if(a.firstChild())continue;A=!0}for(;A&&i&&(g||!a.type.isAnonymous)&&i(a),!a.nextSibling();){if(!a.parent())return;A=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:Cm(Tt.none,this.children,this.positions,0,this.children.length,0,this.length,(t,i,n)=>new r(this.type,t,i,n,this.propValues),e.makeTree||((t,i,n)=>new r(Tt.none,t,i,n)))}static build(e){return BW(e)}};nt.empty=new nt(Tt.none,[],[],0);var rm=class r{constructor(e,t){this.buffer=e,this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new r(this.buffer,this.index)}},cn=class r{constructor(e,t,i){this.buffer=e,this.length=t,this.set=i}get type(){return Tt.none}toString(){let e=[];for(let t=0;t<this.buffer.length;)e.push(this.childString(t)),t=this.buffer[t+3];return e.join(",")}childString(e){let t=this.buffer[e],i=this.buffer[e+3],n=this.set.types[t],s=n.name;if(/\W/.test(s)&&!n.isError&&(s=JSON.stringify(s)),e+=4,i==e)return s;let o=[];for(;e<i;)o.push(this.childString(e)),e=this.buffer[e+3];return s+"("+o.join(",")+")"}findChild(e,t,i,n,s){let{buffer:o}=this,g=-1;for(let a=e;a!=t&&!(x2(s,n,o[a+1],o[a+2])&&(g=a,i>0));a=o[a+3]);return g}slice(e,t,i){let n=this.buffer,s=new Uint16Array(t-e),o=0;for(let g=e,a=0;g<t;){s[a++]=n[g++],s[a++]=n[g++]-i;let A=s[a++]=n[g++]-i;s[a++]=n[g++]-e,o=Math.max(o,A)}return new r(s,o,this.set)}};function x2(r,e,t,i){switch(r){case-2:return t<e;case-1:return i>=e&&t<e;case 0:return t<e&&i>e;case 1:return t<=e&&i>e;case 2:return i>e;case 4:return!0}}function bo(r,e,t,i){for(var n;r.from==r.to||(t<1?r.from>=e:r.from>e)||(t>-1?r.to<=e:r.to<e);){let o=!i&&r instanceof Ti&&r.index<0?null:r.parent;if(!o)return r;r=o}let s=i?0:Be.IgnoreOverlays;if(i)for(let o=r,g=o.parent;g;o=g,g=o.parent)o instanceof Ti&&o.index<0&&((n=g.enter(e,t,s))===null||n===void 0?void 0:n.from)!=o.from&&(r=g);for(;;){let o=r.enter(e,t,s);if(!o)return r;r=o}}var Pa=class{cursor(e=0){return new wo(this,e)}getChild(e,t=null,i=null){let n=y2(this,e,t,i);return n.length?n[0]:null}getChildren(e,t=null,i=null){return y2(this,e,t,i)}resolve(e,t=0){return bo(this,e,t,!1)}resolveInner(e,t=0){return bo(this,e,t,!0)}matchContext(e){return sm(this.parent,e)}enterUnfinishedNodesBefore(e){let t=this.childBefore(e),i=this;for(;t;){let n=t.lastChild;if(!n||n.to!=t.to)break;n.type.isError&&n.from==n.to?(i=t,t=n.prevSibling):t=n}return i}get node(){return this}get next(){return this.parent}},Ti=class r extends Pa{constructor(e,t,i,n){super(),this._tree=e,this.from=t,this.index=i,this._parent=n}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,t,i,n,s=0){var o;for(let g=this;;){for(let{children:a,positions:A}=g._tree,C=t>0?a.length:-1;e!=C;e+=t){let I=a[e],l=A[e]+g.from;if(!(!(s&Be.EnterBracketed&&I instanceof nt&&((o=Qn.get(I))===null||o===void 0?void 0:o.overlay)===null&&(l>=i||l+I.length<=i))&&!x2(n,i,l,l+I.length))){if(I instanceof cn){if(s&Be.ExcludeBuffers)continue;let h=I.findChild(0,I.buffer.length,t,i-l,n);if(h>-1)return new yo(new om(g,I,e,l),null,h)}else if(s&Be.IncludeAnonymous||!I.type.isAnonymous||Am(I)){let h;if(!(s&Be.IgnoreMounts)&&(h=Qn.get(I))&&!h.overlay)return new r(h.tree,l,e,g);let d=new r(I,l,e,g);return s&Be.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(t<0?I.children.length-1:0,t,i,n,s)}}}if(s&Be.IncludeAnonymous||!g.type.isAnonymous||(g.index>=0?e=g.index+t:e=t<0?-1:g._parent._tree.children.length,g=g._parent,!g))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}prop(e){return this._tree.prop(e)}enter(e,t,i=0){let n;if(!(i&Be.IgnoreOverlays)&&(n=Qn.get(this._tree))&&n.overlay){let s=e-this.from,o=i&Be.EnterBracketed&&n.bracketed;for(let{from:g,to:a}of n.overlay)if((t>0||o?g<=s:g<s)&&(t<0||o?a>=s:a>s))return new r(n.tree,n.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,t,i)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}};function y2(r,e,t,i){let n=r.cursor(),s=[];if(!n.firstChild())return s;if(t!=null){for(let o=!1;!o;)if(o=n.type.is(t),!n.nextSibling())return s}for(;;){if(i!=null&&n.type.is(i))return s;if(n.type.is(e)&&s.push(n.node),!n.nextSibling())return i==null?s:[]}}function sm(r,e,t=e.length-1){for(let i=r;t>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(e[t]&&e[t]!=i.name)return!1;t--}}return!0}var om=class{constructor(e,t,i,n){this.parent=e,this.buffer=t,this.index=i,this.start=n}},yo=class r extends Pa{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,i){super(),this.context=e,this._parent=t,this.index=i,this.type=e.buffer.set.types[e.buffer.buffer[i]]}child(e,t,i){let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.context.start,i);return s<0?null:new r(this.context,this,s)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}prop(e){return this.type.prop(e)}enter(e,t,i=0){if(i&Be.ExcludeBuffers)return null;let{buffer:n}=this.context,s=n.findChild(this.index+4,n.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return s<0?null:new r(this.context,this,s)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,t=e.buffer[this.index+3];return t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new r(this.context,this._parent,t):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,t=this._parent?this._parent.index+4:0;return this.index==t?this.externalSibling(-1):new r(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],t=[],{buffer:i}=this.context,n=this.index+4,s=i.buffer[this.index+3];if(s>n){let o=i.buffer[this.index+1];e.push(i.slice(n,s,o)),t.push(0)}return new nt(this.type,e,t,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}};function S2(r){if(!r.length)return null;let e=0,t=r[0];for(let s=1;s<r.length;s++){let o=r[s];(o.from>t.from||o.to<t.to)&&(t=o,e=s)}let i=t instanceof Ti&&t.index<0?null:t.parent,n=r.slice();return i?n[e]=i:n.splice(e,1),new gm(n,t)}var gm=class{constructor(e,t){this.heads=e,this.node=t}get next(){return S2(this.heads)}};function _W(r,e,t){let i=r.resolveInner(e,t),n=null;for(let s=i instanceof Ti?i:i.context.parent;s;s=s.parent)if(s.index<0){let o=s.parent;(n||(n=[i])).push(o.resolve(e,t)),s=o}else{let o=Qn.get(s.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let g=new Ti(o.tree,o.overlay[0].from+s.from,-1,s);(n||(n=[i])).push(bo(g,e,t,!1))}}return n?S2(n):i}var wo=class{get name(){return this.type.name}constructor(e,t=0){if(this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,this.mode=t&~Be.EnterBracketed,e instanceof Ti)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let i=e._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,t){this.index=e;let{start:i,buffer:n}=this.buffer;return this.type=t||n.set.types[n.buffer[e]],this.from=i+n.buffer[e+1],this.to=i+n.buffer[e+2],!0}yield(e){return e?e instanceof Ti?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,i){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,i,this.mode));let{buffer:n}=this.buffer,s=n.findChild(this.index+4,n.buffer[this.index+3],e,t-this.buffer.start,i);return s<0?!1:(this.stack.push(this.index),this.yieldBuf(s))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,i=this.mode){return this.buffer?i&Be.ExcludeBuffers?!1:this.enterChild(1,e,t):this.yield(this._tree.enter(e,t,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Be.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Be.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:t}=this.buffer,i=this.stack.length-1;if(e<0){let n=i<0?0:this.stack[i]+4;if(this.index!=n)return this.yieldBuf(t.findChild(n,this.index,-1,0,4))}else{let n=t.buffer[this.index+3];if(n<(i<0?t.buffer.length:t.buffer[this.stack[i]+3]))return this.yieldBuf(n)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,i,{buffer:n}=this;if(n){if(e>0){if(this.index<n.buffer.buffer.length)return!1}else for(let s=0;s<this.index;s++)if(n.buffer.buffer[s+3]<this.index)return!1;({index:t,parent:i}=n)}else({index:t,_parent:i}=this._tree);for(;i;{index:t,_parent:i}=i)if(t>-1)for(let s=t+e,o=e<0?-1:i._tree.children.length;s!=o;s+=e){let g=i._tree.children[s];if(this.mode&Be.IncludeAnonymous||g instanceof cn||!g.type.isAnonymous||Am(g))return!1}return!0}move(e,t){if(t&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,t=0){for(;(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,t););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,t=null,i=0;if(e&&e.context==this.buffer)e:for(let n=this.index,s=this.stack.length;s>=0;){for(let o=e;o;o=o._parent)if(o.index==n){if(n==this.index)return o;t=o,i=s+1;break e}n=this.stack[--s]}for(let n=i;n<this.stack.length;n++)t=new yo(this.buffer,t,this.stack[n]);return this.bufferNode=new yo(this.buffer,t,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,t){for(let i=0;;){let n=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){i++;continue}this.type.isAnonymous||(n=!0)}for(;;){if(n&&t&&t(this),n=this.type.isAnonymous,!i)return;if(this.nextSibling())break;this.parent(),i--,n=!0}}}matchContext(e){if(!this.buffer)return sm(this.node.parent,e);let{buffer:t}=this.buffer,{types:i}=t.set;for(let n=e.length-1,s=this.stack.length-1;n>=0;s--){if(s<0)return sm(this._tree,e,n);let o=i[t.buffer[this.stack[s]]];if(!o.isAnonymous){if(e[n]&&e[n]!=o.name)return!1;n--}}return!0}};function Am(r){return r.children.some(e=>e instanceof cn||!e.type.isAnonymous||Am(e))}function BW(r){var e;let{buffer:t,nodeSet:i,maxBufferLength:n=1024,reused:s=[],minRepeatType:o=i.types.length}=r,g=Array.isArray(t)?new rm(t,t.length):t,a=i.types,A=0,C=0;function I(b,w,x,y,S,k){let{id:R,start:E,end:T,size:M}=g,B=C,X=A;if(M<0)if(g.next(),M==-1){let Q=s[R];x.push(Q),y.push(E-b);return}else if(M==-3){A=R;return}else if(M==-4){C=R;return}else throw new RangeError(`Unrecognized record size: ${M}`);let U=a[R],Ce,se,Me=E-b;if(T-E<=n&&(se=f(g.pos-w,S))){let Q=new Uint16Array(se.size-se.skip),ce=g.pos-se.size,Oe=Q.length;for(;g.pos>ce;)Oe=u(se.start,Q,Oe);Ce=new cn(Q,T-se.start,i),Me=se.start-b}else{let Q=g.pos-M;g.next();let ce=[],Oe=[],Ze=R>=o?R:-1,kt=0,Je=T;for(;g.pos>Q;)Ze>=0&&g.id==Ze&&g.size>=0?(g.end<=Je-n&&(d(ce,Oe,E,kt,g.end,Je,Ze,B,X),kt=ce.length,Je=g.end),g.next()):k>2500?l(E,Q,ce,Oe):I(E,Q,ce,Oe,Ze,k+1);if(Ze>=0&&kt>0&&kt<ce.length&&d(ce,Oe,E,kt,E,Je,Ze,B,X),ce.reverse(),Oe.reverse(),Ze>-1&&kt>0){let Ai=h(U,X);Ce=Cm(U,ce,Oe,0,ce.length,0,T-E,Ai,Ai)}else Ce=c(U,ce,Oe,T-E,B-T,X)}x.push(Ce),y.push(Me)}function l(b,w,x,y){let S=[],k=0,R=-1;for(;g.pos>w;){let{id:E,start:T,end:M,size:B}=g;if(B>4)g.next();else{if(R>-1&&T<R)break;R<0&&(R=M-n),S.push(E,T,M),k++,g.next()}}if(k){let E=new Uint16Array(k*4),T=S[S.length-2];for(let M=S.length-3,B=0;M>=0;M-=3)E[B++]=S[M],E[B++]=S[M+1]-T,E[B++]=S[M+2]-T,E[B++]=B;x.push(new cn(E,S[2]-T,i)),y.push(T-b)}}function h(b,w){return(x,y,S)=>{let k=0,R=x.length-1,E,T;if(R>=0&&(E=x[R])instanceof nt){if(!R&&E.type==b&&E.length==S)return E;(T=E.prop(ee.lookAhead))&&(k=y[R]+E.length+T)}return c(b,x,y,S,k,w)}}function d(b,w,x,y,S,k,R,E,T){let M=[],B=[];for(;b.length>y;)M.push(b.pop()),B.push(w.pop()+x-S);b.push(c(i.types[R],M,B,k-S,E-k,T)),w.push(S-x)}function c(b,w,x,y,S,k,R){if(k){let E=[ee.contextHash,k];R=R?[E].concat(R):[E]}if(S>25){let E=[ee.lookAhead,S];R=R?[E].concat(R):[E]}return new nt(b,w,x,y,R)}function f(b,w){let x=g.fork(),y=0,S=0,k=0,R=x.end-n,E={size:0,start:0,skip:0};e:for(let T=x.pos-b;x.pos>T;){let M=x.size;if(x.id==w&&M>=0){E.size=y,E.start=S,E.skip=k,k+=4,y+=4,x.next();continue}let B=x.pos-M;if(M<0||B<T||x.start<R)break;let X=x.id>=o?4:0,U=x.start;for(x.next();x.pos>B;){if(x.size<0)if(x.size==-3||x.size==-4)X+=4;else break e;else x.id>=o&&(X+=4);x.next()}S=U,y+=M,k+=X}return(w<0||y==b)&&(E.size=y,E.start=S,E.skip=k),E.size>4?E:void 0}function u(b,w,x){let{id:y,start:S,end:k,size:R}=g;if(g.next(),R>=0&&y<o){let E=x;if(R>4){let T=g.pos-(R-4);for(;g.pos>T;)x=u(b,w,x)}w[--x]=E,w[--x]=k-b,w[--x]=S-b,w[--x]=y}else R==-3?A=y:R==-4&&(C=y);return x}let p=[],v=[];for(;g.pos>0;)I(r.start||0,r.bufferStart||0,p,v,-1,0);let m=(e=r.length)!==null&&e!==void 0?e:p.length?v[0]+p[0].length:0;return new nt(a[r.topID],p.reverse(),v.reverse(),m)}var w2=new WeakMap;function Da(r,e){if(!r.isAnonymous||e instanceof cn||e.type!=r)return 1;let t=w2.get(e);if(t==null){t=1;for(let i of e.children){if(i.type!=r||!(i instanceof nt)){t=1;break}t+=Da(r,i)}w2.set(e,t)}return t}function Cm(r,e,t,i,n,s,o,g,a){let A=0;for(let d=i;d<n;d++)A+=Da(r,e[d]);let C=Math.ceil(A*1.5/8),I=[],l=[];function h(d,c,f,u,p){for(let v=f;v<u;){let m=v,b=c[v],w=Da(r,d[v]);for(v++;v<u;v++){let x=Da(r,d[v]);if(w+x>=C)break;w+=x}if(v==m+1){if(w>C){let x=d[m];h(x.children,x.positions,0,x.children.length,c[m]+p);continue}I.push(d[m])}else{let x=c[v-1]+d[v-1].length-b;I.push(Cm(r,d,c,m,v,b,x,null,a))}l.push(b+p-s)}}return h(e,t,i,n,0),(g||a)(I,l,o)}var Jn=class r{constructor(e,t,i,n,s=!1,o=!1){this.from=e,this.to=t,this.tree=i,this.offset=n,this.open=(s?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],i=!1){let n=[new r(0,e.length,e,0,!1,i)];for(let s of t)s.to>e.length&&n.push(s);return n}static applyChanges(e,t,i=128){if(!t.length)return e;let n=[],s=1,o=e.length?e[0]:null;for(let g=0,a=0,A=0;;g++){let C=g<t.length?t[g]:null,I=C?C.fromA:1e9;if(I-a>=i)for(;o&&o.from<I;){let l=o;if(a>=l.from||I<=l.to||A){let h=Math.max(l.from,a)-A,d=Math.min(l.to,I)-A;l=h>=d?null:new r(h,d,l.tree,l.offset+A,g>0,!!C)}if(l&&n.push(l),o.to>I)break;o=s<e.length?e[s++]:null}if(!C)break;a=C.toA,A=C.toA-C.toB}return n}},Ma=class{startParse(e,t,i){return typeof e=="string"&&(e=new am(e)),i=i?i.length?i.map(n=>new vo(n.from,n.to)):[new vo(0,0)]:[new vo(0,e.length)],this.createParse(e,t||[],i)}parse(e,t,i){let n=this.startParse(e,t,i);for(;;){let s=n.advance();if(s)return s}}},am=class{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,t){return this.string.slice(e,t)}};var $j=new ee({perNode:!0});var FW=0,ri=class r{constructor(e,t,i,n){this.name=e,this.set=t,this.base=i,this.modified=n,this.id=FW++}toString(){let{name:e}=this;for(let t of this.modified)t.name&&(e=`${t.name}(${e})`);return e}static define(e,t){let i=typeof e=="string"?e:"?";if(e instanceof r&&(t=e),t?.base)throw new Error("Can not derive from a modified tag");let n=new r(i,[],null,[]);if(n.set.push(n),t)for(let s of t.set)n.set.push(s);return n}static defineModifier(e){let t=new Fa(e);return i=>i.modified.indexOf(t)>-1?i:Fa.get(i.base||i,i.modified.concat(t).sort((n,s)=>n.id-s.id))}},LW=0,Fa=class r{constructor(e){this.name=e,this.instances=[],this.id=LW++}static get(e,t){if(!t.length)return e;let i=t[0].instances.find(g=>g.base==e&&zW(t,g.modified));if(i)return i;let n=[],s=new ri(e.name,n,e,t);for(let g of t)g.instances.push(s);let o=qW(t);for(let g of e.set)if(!g.modified.length)for(let a of o)n.push(r.get(g,a));return s}};function zW(r,e){return r.length==e.length&&r.every((t,i)=>t==e[i])}function qW(r){let e=[[]];for(let t=0;t<r.length;t++)for(let i=0,n=e.length;i<n;i++)e.push(e[i].concat(r[t]));return e.sort((t,i)=>i.length-t.length)}function k2(r){let e=Object.create(null);for(let t in r){let i=r[t];Array.isArray(i)||(i=[i]);for(let n of t.split(" "))if(n){let s=[],o=2,g=n;for(let I=0;;){if(g=="..."&&I>0&&I+3==n.length){o=1;break}let l=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(g);if(!l)throw new RangeError("Invalid path: "+n);if(s.push(l[0]=="*"?"":l[0][0]=='"'?JSON.parse(l[0]):l[0]),I+=l[0].length,I==n.length)break;let h=n[I++];if(I==n.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+n);g=n.slice(I)}let a=s.length-1,A=s[a];if(!A)throw new RangeError("Invalid path: "+n);let C=new Xr(i,o,a>0?s.slice(0,a):null);e[A]=C.sort(e[A])}}return VW.add(e)}var VW=new ee({combine(r,e){let t,i,n;for(;r||e;){if(!r||e&&r.depth>=e.depth?(n=e,e=e.next):(n=r,r=r.next),t&&t.mode==n.mode&&!n.context&&!t.context)continue;let s=new Xr(n.tags,n.mode,n.context);t?t.next=s:i=s,t=s}return i}}),Xr=class{constructor(e,t,i,n){this.tags=e,this.mode=t,this.context=i,this.next=n}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}};Xr.empty=new Xr([],2,null);function hm(r,e){let t=Object.create(null);for(let s of r)if(!Array.isArray(s.tag))t[s.tag.id]=s.class;else for(let o of s.tag)t[o.id]=s.class;let{scope:i,all:n=null}=e||{};return{style:s=>{let o=n;for(let g of s)for(let a of g.set){let A=t[a.id];if(A){o=o?o+" "+A:A;break}}return o},scope:i}}var F=ri.define,Na=F(),un=F(),E2=F(un),T2=F(un),fn=F(),_a=F(fn),Im=F(fn),Ri=F(),$n=F(Ri),ki=F(),Oi=F(),lm=F(),xo=F(lm),Ba=F(),L={comment:Na,lineComment:F(Na),blockComment:F(Na),docComment:F(Na),name:un,variableName:F(un),typeName:E2,tagName:F(E2),propertyName:T2,attributeName:F(T2),className:F(un),labelName:F(un),namespace:F(un),macroName:F(un),literal:fn,string:_a,docString:F(_a),character:F(_a),attributeValue:F(_a),number:Im,integer:F(Im),float:F(Im),bool:F(fn),regexp:F(fn),escape:F(fn),color:F(fn),url:F(fn),keyword:ki,self:F(ki),null:F(ki),atom:F(ki),unit:F(ki),modifier:F(ki),operatorKeyword:F(ki),controlKeyword:F(ki),definitionKeyword:F(ki),moduleKeyword:F(ki),operator:Oi,derefOperator:F(Oi),arithmeticOperator:F(Oi),logicOperator:F(Oi),bitwiseOperator:F(Oi),compareOperator:F(Oi),updateOperator:F(Oi),definitionOperator:F(Oi),typeOperator:F(Oi),controlOperator:F(Oi),punctuation:lm,separator:F(lm),bracket:xo,angleBracket:F(xo),squareBracket:F(xo),paren:F(xo),brace:F(xo),content:Ri,heading:$n,heading1:F($n),heading2:F($n),heading3:F($n),heading4:F($n),heading5:F($n),heading6:F($n),contentSeparator:F(Ri),list:F(Ri),quote:F(Ri),emphasis:F(Ri),strong:F(Ri),link:F(Ri),monospace:F(Ri),strikethrough:F(Ri),inserted:F(),deleted:F(),changed:F(),invalid:F(),meta:Ba,documentMeta:F(Ba),annotation:F(Ba),processingInstruction:F(Ba),definition:ri.defineModifier("definition"),constant:ri.defineModifier("constant"),function:ri.defineModifier("function"),standard:ri.defineModifier("standard"),local:ri.defineModifier("local"),special:ri.defineModifier("special")};for(let r in L){let e=L[r];e instanceof ri&&(e.name=r)}var i8=hm([{tag:L.link,class:"tok-link"},{tag:L.heading,class:"tok-heading"},{tag:L.emphasis,class:"tok-emphasis"},{tag:L.strong,class:"tok-strong"},{tag:L.keyword,class:"tok-keyword"},{tag:L.atom,class:"tok-atom"},{tag:L.bool,class:"tok-bool"},{tag:L.url,class:"tok-url"},{tag:L.labelName,class:"tok-labelName"},{tag:L.inserted,class:"tok-inserted"},{tag:L.deleted,class:"tok-deleted"},{tag:L.literal,class:"tok-literal"},{tag:L.string,class:"tok-string"},{tag:L.number,class:"tok-number"},{tag:[L.regexp,L.escape,L.special(L.string)],class:"tok-string2"},{tag:L.variableName,class:"tok-variableName"},{tag:L.local(L.variableName),class:"tok-variableName tok-local"},{tag:L.definition(L.variableName),class:"tok-variableName tok-definition"},{tag:L.special(L.variableName),class:"tok-variableName2"},{tag:L.definition(L.propertyName),class:"tok-propertyName tok-definition"},{tag:L.typeName,class:"tok-typeName"},{tag:L.namespace,class:"tok-namespace"},{tag:L.className,class:"tok-className"},{tag:L.macroName,class:"tok-macroName"},{tag:L.propertyName,class:"tok-propertyName"},{tag:L.operator,class:"tok-operator"},{tag:L.comment,class:"tok-comment"},{tag:L.meta,class:"tok-meta"},{tag:L.invalid,class:"tok-invalid"},{tag:L.punctuation,class:"tok-punctuation"}]);var dm,Eo=new ee;var WW=new ee,Vt=class{constructor(e,t,i=[],n=""){this.data=e,this.name=n,Te.prototype.hasOwnProperty("tree")||Object.defineProperty(Te.prototype,"tree",{get(){return Wt(this)}}),this.parser=t,this.extension=[Qr.of(this),Te.languageData.of((s,o,g)=>{let a=O2(s,o,g),A=a.type.prop(Eo);if(!A)return[];let C=s.facet(A),I=a.type.prop(WW);if(I){let l=a.resolve(o-a.from,g);for(let h of I)if(h.test(l,s)){let d=s.facet(h.facet);return h.type=="replace"?d:d.concat(C)}}return C})].concat(i)}isActiveAt(e,t,i=-1){return O2(e,t,i).type.prop(Eo)==this.data}findRegions(e){let t=e.facet(Qr);if(t?.data==this.data)return[{from:0,to:e.doc.length}];if(!t||!t.allowsNesting)return[];let i=[],n=(s,o)=>{if(s.prop(Eo)==this.data){i.push({from:o,to:o+s.length});return}let g=s.prop(ee.mounted);if(g){if(g.tree.prop(Eo)==this.data){if(g.overlay)for(let a of g.overlay)i.push({from:a.from+o,to:a.to+o});else i.push({from:o,to:o+s.length});return}else if(g.overlay){let a=i.length;if(n(g.tree,g.overlay[0].from+o),i.length>a)return}}for(let a=0;a<s.children.length;a++){let A=s.children[a];A instanceof nt&&n(A,s.positions[a]+o)}};return n(Wt(e),0),i}get allowsNesting(){return!0}};Vt.setState=de.define();function O2(r,e,t){let i=r.facet(Qr),n=Wt(r).topNode;if(!i||i.allowsNesting)for(let s=n;s;s=s.enter(e,t,Be.ExcludeBuffers|Be.EnterBracketed))s.type.isTop&&(n=s);return n}function Wt(r){let e=r.field(Vt.state,!1);return e?e.tree:nt.empty}var fm=class{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,t){let i=this.cursorPos-this.string.length;return e<i||t>=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-i,t-i)}},So=null,pm=class r{constructor(e,t,i=[],n,s,o,g,a){this.parser=e,this.state=t,this.fragments=i,this.tree=n,this.treeLen=s,this.viewport=o,this.skipped=g,this.scheduleOn=a,this.parse=null,this.tempSkipped=[]}static create(e,t,i){return new r(e,t,[],nt.empty,0,i,[],null)}startParse(){return this.parser.startParse(new fm(this.state.doc),this.fragments)}work(e,t){return t!=null&&t>=this.state.doc.length&&(t=void 0),this.tree!=nt.empty&&this.isDone(t??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof e=="number"){let n=Date.now()+e;e=()=>Date.now()>n}for(this.parse||(this.parse=this.startParse()),t!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&t<this.state.doc.length&&this.parse.stopAt(t);;){let n=this.parse.advance();if(n)if(this.fragments=this.withoutTempSkipped(Jn.addTree(n,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(i=this.parse.stoppedAt)!==null&&i!==void 0?i:this.state.doc.length,this.tree=n,this.parse=null,this.treeLen<(t??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,t;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(t=this.parse.advance()););}),this.treeLen=e,this.tree=t,this.fragments=this.withoutTempSkipped(Jn.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=So;So=this;try{return e()}finally{So=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=R2(e,t.from,t.to);return e}changes(e,t){let{fragments:i,tree:n,treeLen:s,viewport:o,skipped:g}=this;if(this.takeTree(),!e.empty){let a=[];if(e.iterChangedRanges((A,C,I,l)=>a.push({fromA:A,toA:C,fromB:I,toB:l})),i=Jn.applyChanges(i,a),n=nt.empty,s=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.to,1)},this.skipped.length){g=[];for(let A of this.skipped){let C=e.mapPos(A.from,1),I=e.mapPos(A.to,-1);C<I&&g.push({from:C,to:I})}}}return new r(this.parser,t,i,n,s,o,g,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let t=this.skipped.length;for(let i=0;i<this.skipped.length;i++){let{from:n,to:s}=this.skipped[i];n<e.to&&s>e.from&&(this.fragments=R2(this.fragments,n,s),this.skipped.splice(i--,1))}return this.skipped.length>=t?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,t){this.skipped.push({from:e,to:t})}static getSkippingParser(e){return new class extends Ma{createParse(t,i,n){let s=n[0].from,o=n[n.length-1].to;return{parsedPos:s,advance(){let a=So;if(a){for(let A of n)a.tempSkipped.push(A);e&&(a.scheduleOn=a.scheduleOn?Promise.all([a.scheduleOn,e]):e)}return this.parsedPos=o,new nt(Tt.none,[],[],o-s)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let t=this.fragments;return this.treeLen>=e&&t.length&&t[0].from==0&&t[0].to>=e}static get(){return So}};function R2(r,e,t){return Jn.applyChanges(r,[{fromA:e,toA:t,fromB:e,toB:t}])}var To=class r{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let t=this.context.changes(e.changes,e.state),i=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),t.viewport.to);return t.work(20,i)||t.takeTree(),new r(t)}static init(e){let t=Math.min(3e3,e.doc.length),i=pm.create(e.facet(Qr).parser,e,{from:0,to:t});return i.work(20,t)||i.takeTree(),new r(i)}};Vt.state=Qe.define({create:To.init,update(r,e){for(let t of e.effects)if(t.is(Vt.setState))return t.value;return e.startState.facet(Qr)!=e.state.facet(Qr)?To.init(e.state):r.apply(e)}});var N2=r=>{let e=setTimeout(()=>r(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(N2=r=>{let e=-1,t=setTimeout(()=>{e=requestIdleCallback(r,{timeout:400})},100);return()=>e<0?clearTimeout(t):cancelIdleCallback(e)});var cm=typeof navigator<"u"&&(!((dm=navigator.scheduling)===null||dm===void 0)&&dm.isInputPending)?()=>navigator.scheduling.isInputPending():null,GW=ti.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let t=this.view.state.field(Vt.state).context;(t.updateViewport(e.view.viewport)||this.view.viewport.to>t.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(t)}scheduleWork(){if(this.working)return;let{state:e}=this.view,t=e.field(Vt.state);(t.tree!=t.context.tree||!t.context.isDone(e.doc.length))&&(this.working=N2(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEnd<t&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=t+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:i,viewport:{to:n}}=this.view,s=i.field(Vt.state);if(s.tree==s.context.tree&&s.context.isDone(n+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!cm?Math.max(25,e.timeRemaining()-5):1e9),g=s.context.treeLen<n&&i.doc.length>n+1e3,a=s.context.work(()=>cm&&cm()||Date.now()>o,n+(g?0:1e5));this.chunkBudget-=Date.now()-t,(a||this.chunkBudget<=0)&&(s.context.takeTree(),this.view.dispatch({effects:Vt.setState.of(new To(s.context))})),this.chunkBudget>0&&!(a&&!g)&&this.scheduleWork(),this.checkAsyncSchedule(s.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(t=>St(this.view.state,t)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Qr=G.define({combine(r){return r.length?r[0]:null},enables:r=>[Vt.state,GW,K.contentAttributes.compute([r],e=>{let t=e.facet(r);return t&&t.name?{"data-language":t.name}:{}})]});var ZW=G.define(),ko=G.define({combine:r=>{if(!r.length)return" ";let e=r[0];if(!e||/\S/.test(e)||Array.from(e).some(t=>t!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(r[0]));return e}});function Oo(r){let e=r.facet(ko);return e.charCodeAt(0)==9?r.tabSize*e.length:e.length}function Jr(r,e){let t="",i=r.tabSize,n=r.facet(ko)[0];if(n==" "){for(;e>=i;)t+=" ",e-=i;n=" "}for(let s=0;s<e;s++)t+=n;return t}function La(r,e){r instanceof Te&&(r=new er(r));for(let i of r.state.facet(ZW)){let n=i(r,e);if(n!==void 0)return n}let t=Wt(r.state);return t.length>=e?HW(r,t,e):null}var er=class{constructor(e,t={}){this.state=e,this.options=t,this.unit=Oo(e)}lineAt(e,t=1){let i=this.state.doc.lineAt(e),{simulateBreak:n,simulateDoubleBreak:s}=this.options;return n!=null&&n>=i.from&&n<=i.to?s&&n==e?{text:"",from:e}:(t<0?n<e:n<=e)?{text:i.text.slice(n-i.from),from:n}:{text:i.text.slice(0,n-i.from),from:i.from}:i}textAfterPos(e,t=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:i,from:n}=this.lineAt(e,t);return i.slice(e-n,Math.min(i.length,e+100-n))}column(e,t=1){let{text:i,from:n}=this.lineAt(e,t),s=this.countColumn(i,e-n),o=this.options.overrideIndentation?this.options.overrideIndentation(n):-1;return o>-1&&(s+=o-this.countColumn(i,i.search(/\S|$/))),s}countColumn(e,t=e.length){return jn(e,this.state.tabSize,t)}lineIndent(e,t=1){let{text:i,from:n}=this.lineAt(e,t),s=this.options.overrideIndentation;if(s){let o=s(n);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}},jW=new ee;function HW(r,e,t){let i=e.resolveStack(t),n=e.resolveInner(t,-1).resolve(t,0).enterUnfinishedNodesBefore(t);if(n!=i.node){let s=[];for(let o=n;o&&!(o.from<i.node.from||o.to>i.node.to||o.from==i.node.from&&o.type==i.node.type);o=o.parent)s.push(o);for(let o=s.length-1;o>=0;o--)i={node:s[o],next:i}}return _2(i,r,t)}function _2(r,e,t){for(let i=r;i;i=i.next){let n=KW(i.node);if(n)return n(mm.create(e,t,i))}return 0}function YW(r){return r.pos==r.options.simulateBreak&&r.options.simulateDoubleBreak}function KW(r){let e=r.type.prop(jW);if(e)return e;let t=r.firstChild,i;if(t&&(i=t.type.prop(ee.closedBy))){let n=r.lastChild,s=n&&i.indexOf(n.name)>-1;return o=>JW(o,!0,1,void 0,s&&!YW(o)?n.from:void 0)}return r.parent==null?UW:null}function UW(){return 0}var mm=class r extends er{constructor(e,t,i){super(e.state,e.options),this.base=e,this.pos=t,this.context=i}get node(){return this.context.node}static create(e,t,i){return new r(e,t,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let i=e.resolve(t.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(XW(i,e))break;t=this.state.doc.lineAt(i.from)}return this.lineIndent(t.from)}continue(){return _2(this.context.next,this.base,this.pos)}};function XW(r,e){for(let t=e;t;t=t.parent)if(r==t)return!0;return!1}function QW(r){let e=r.node,t=e.childAfter(e.from),i=e.lastChild;if(!t)return null;let n=r.options.simulateBreak,s=r.state.doc.lineAt(t.from),o=n==null||n<=s.from?s.to:Math.min(s.to,n);for(let g=t.to;;){let a=e.childAfter(g);if(!a||a==i)return null;if(!a.type.isSkipped){if(a.from>=o)return null;let A=/^ */.exec(s.text.slice(t.to-s.from))[0].length;return{from:t.from,to:t.to+A}}g=a.to}}function JW(r,e,t,i,n){let s=r.textAfter,o=s.match(/^\s*/)[0].length,g=i&&s.slice(o,o+i.length)==i||n==r.pos+o,a=e?QW(r):null;return a?g?r.column(a.from):r.column(a.to):r.baseIndent+(g?0:r.unit*t)}var $W=200;function B2(){return Te.transactionFilter.of(r=>{if(!r.docChanged||!r.isUserEvent("input.type")&&!r.isUserEvent("input.complete"))return r;let e=r.startState.languageDataAt("indentOnInput",r.startState.selection.main.head);if(!e.length)return r;let t=r.newDoc,{head:i}=r.newSelection.main,n=t.lineAt(i);if(i>n.from+$W)return r;let s=t.sliceString(n.from,i);if(!e.some(A=>A.test(s)))return r;let{state:o}=r,g=-1,a=[];for(let{head:A}of o.selection.ranges){let C=o.doc.lineAt(A);if(C.from==g)continue;g=C.from;let I=La(o,C.from);if(I==null)continue;let l=/^\s*/.exec(C.text)[0],h=Jr(o,I);l!=h&&a.push({from:C.from,to:C.from+l.length,insert:h})}return a.length?[r,{changes:a,sequential:!0}]:r})}var vm=class r{constructor(e,t){this.specs=e;let i;function n(g){let a=Ft.newName();return(i||(i=Object.create(null)))["."+a]=g,a}let s=typeof t.all=="string"?t.all:t.all?n(t.all):void 0,o=t.scope;this.scope=o instanceof Vt?g=>g.prop(Eo)==o.data:o?g=>g==o:void 0,this.style=hm(e.map(g=>({tag:g.tag,class:g.class||n(Object.assign({},g,{tag:null}))})),{all:s}).style,this.module=i?new Ft(i):null,this.themeType=t.themeType}static define(e,t){return new r(e,t||{})}};var h8=vm.define([{tag:L.meta,color:"#404740"},{tag:L.link,textDecoration:"underline"},{tag:L.heading,textDecoration:"underline",fontWeight:"bold"},{tag:L.emphasis,fontStyle:"italic"},{tag:L.strong,fontWeight:"bold"},{tag:L.strikethrough,textDecoration:"line-through"},{tag:L.keyword,color:"#708"},{tag:[L.atom,L.bool,L.url,L.contentSeparator,L.labelName],color:"#219"},{tag:[L.literal,L.inserted],color:"#164"},{tag:[L.string,L.deleted],color:"#a11"},{tag:[L.regexp,L.escape,L.special(L.string)],color:"#e40"},{tag:L.definition(L.variableName),color:"#00f"},{tag:L.local(L.variableName),color:"#30a"},{tag:[L.typeName,L.namespace],color:"#085"},{tag:L.className,color:"#167"},{tag:[L.special(L.variableName),L.macroName],color:"#256"},{tag:L.definition(L.propertyName),color:"#00c"},{tag:L.comment,color:"#940"},{tag:L.invalid,color:"#f00"}]),eG=K.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),F2=1e4,L2="()[]{}",z2=G.define({combine(r){return Zn(r,{afterCursor:!0,brackets:L2,maxScanDistance:F2,renderMatch:nG})}}),tG=oe.mark({class:"cm-matchingBracket"}),iG=oe.mark({class:"cm-nonmatchingBracket"});function nG(r){let e=[],t=r.matched?tG:iG;return e.push(t.range(r.start.from,r.start.to)),r.end&&e.push(t.range(r.end.from,r.end.to)),e}var rG=Qe.define({create(){return oe.none},update(r,e){if(!e.docChanged&&!e.selection)return r;let t=[],i=e.state.facet(z2);for(let n of e.state.selection.ranges){if(!n.empty)continue;let s=si(e.state,n.head,-1,i)||n.head>0&&si(e.state,n.head-1,1,i)||i.afterCursor&&(si(e.state,n.head,1,i)||n.head<e.state.doc.length&&si(e.state,n.head+1,-1,i));s&&(t=t.concat(i.renderMatch(s,e.state)))}return oe.set(t,!0)},provide:r=>K.decorations.from(r)}),sG=[rG,eG];function q2(r={}){return[z2.of(r),sG]}var oG=new ee;function bm(r,e,t){let i=r.prop(e<0?ee.openedBy:ee.closedBy);if(i)return i;if(r.name.length==1){let n=t.indexOf(r.name);if(n>-1&&n%2==(e<0?1:0))return[t[n+e]]}return null}function ym(r){let e=r.type.prop(oG);return e?e(r.node):r}function si(r,e,t,i={}){let n=i.maxScanDistance||F2,s=i.brackets||L2,o=Wt(r),g=o.resolveInner(e,t);for(let a=g;a;a=a.parent){let A=bm(a.type,t,s);if(A&&a.from<a.to){let C=ym(a);if(C&&(t>0?e>=C.from&&e<C.to:e>C.from&&e<=C.to))return gG(r,e,t,a,C,A,s)}}return aG(r,e,t,o,g.type,n,s)}function gG(r,e,t,i,n,s,o){let g=i.parent,a={from:n.from,to:n.to},A=0,C=g?.cursor();if(C&&(t<0?C.childBefore(i.from):C.childAfter(i.to)))do if(t<0?C.to<=i.from:C.from>=i.to){if(A==0&&s.indexOf(C.type.name)>-1&&C.from<C.to){let I=ym(C);return{start:a,end:I?{from:I.from,to:I.to}:void 0,matched:!0}}else if(bm(C.type,t,o))A++;else if(bm(C.type,-t,o)){if(A==0){let I=ym(C);return{start:a,end:I&&I.from<I.to?{from:I.from,to:I.to}:void 0,matched:!1}}A--}}while(t<0?C.prevSibling():C.nextSibling());return{start:a,matched:!1}}function aG(r,e,t,i,n,s,o){let g=t<0?r.sliceDoc(e-1,e):r.sliceDoc(e,e+1),a=o.indexOf(g);if(a<0||a%2==0!=t>0)return null;let A={from:t<0?e-1:e,to:t>0?e+1:e},C=r.doc.iterRange(e,t>0?r.doc.length:0),I=0;for(let l=0;!C.next().done&&l<=s;){let h=C.value;t<0&&(l+=h.length);let d=e+l*t;for(let c=t>0?0:h.length-1,f=t>0?h.length:-1;c!=f;c+=t){let u=o.indexOf(h[c]);if(!(u<0||i.resolveInner(d+c,1).type!=n))if(u%2==0==t>0)I++;else{if(I==1)return{start:A,end:{from:d+c,to:d+c+1},matched:u>>1==a>>1};I--}}t>0&&(l+=h.length)}return C.done?{start:A,matched:!1}:null}var AG=Object.create(null),D2=[Tt.none];var P2=[],M2=Object.create(null),CG=Object.create(null);for(let[r,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])CG[r]=IG(AG,e);function um(r,e){P2.indexOf(r)>-1||(P2.push(r),console.warn(e))}function IG(r,e){let t=[];for(let g of e.split(" ")){let a=[];for(let A of g.split(".")){let C=r[A]||L[A];C?typeof C=="function"?a.length?a=a.map(C):um(A,`Modifier ${A} used at start of tag`):a.length?um(A,`Tag ${A} used as modifier`):a=Array.isArray(C)?C:[C]:um(A,`Unknown highlighting tag ${A}`)}for(let A of a)t.push(A)}if(!t.length)return 0;let i=e.replace(/ /g,"_"),n=i+" "+t.map(g=>g.id),s=M2[n];if(s)return s.id;let o=M2[n]=Tt.define({id:D2.length,name:i,props:[k2({[i]:t})]});return D2.push(o),o.id}var d8={rtl:oe.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"rtl"},bidiIsolate:ye.RTL}),ltr:oe.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"ltr"},bidiIsolate:ye.LTR}),auto:oe.mark({class:"cm-iso",inclusive:!0,attributes:{dir:"auto"},bidiIsolate:null})};var lG=r=>{let{state:e}=r,t=e.doc.lineAt(e.selection.main.from),i=Om(r.state,t.from);return i.line?hG(r):i.block?cG(r):!1};function km(r,e){return({state:t,dispatch:i})=>{if(t.readOnly)return!1;let n=r(e,t);return n?(i(t.update(n)),!0):!1}}var hG=km(pG,0);var dG=km(U2,0);var cG=km((r,e)=>U2(r,e,fG(e)),0);function Om(r,e){let t=r.languageDataAt("commentTokens",e,1);return t.length?t[0]:{}}var Ro=50;function uG(r,{open:e,close:t},i,n){let s=r.sliceDoc(i-Ro,i),o=r.sliceDoc(n,n+Ro),g=/\s*$/.exec(s)[0].length,a=/^\s*/.exec(o)[0].length,A=s.length-g;if(s.slice(A-e.length,A)==e&&o.slice(a,a+t.length)==t)return{open:{pos:i-g,margin:g&&1},close:{pos:n+a,margin:a&&1}};let C,I;n-i<=2*Ro?C=I=r.sliceDoc(i,n):(C=r.sliceDoc(i,i+Ro),I=r.sliceDoc(n-Ro,n));let l=/^\s*/.exec(C)[0].length,h=/\s*$/.exec(I)[0].length,d=I.length-h-t.length;return C.slice(l,l+e.length)==e&&I.slice(d,d+t.length)==t?{open:{pos:i+l+e.length,margin:/\s/.test(C.charAt(l+e.length))?1:0},close:{pos:n-h-t.length,margin:/\s/.test(I.charAt(d-1))?1:0}}:null}function fG(r){let e=[];for(let t of r.selection.ranges){let i=r.doc.lineAt(t.from),n=t.to<=i.to?i:r.doc.lineAt(t.to);n.from>i.from&&n.from==t.to&&(n=t.to==i.to+1?i:r.doc.lineAt(t.to-1));let s=e.length-1;s>=0&&e[s].to>i.from?e[s].to=n.to:e.push({from:i.from+/^\s*/.exec(i.text)[0].length,to:n.to})}return e}function U2(r,e,t=e.selection.ranges){let i=t.map(s=>Om(e,s.from).block);if(!i.every(s=>s))return null;let n=t.map((s,o)=>uG(e,i[o],s.from,s.to));if(r!=2&&!n.every(s=>s))return{changes:e.changes(t.map((s,o)=>n[o]?[]:[{from:s.from,insert:i[o].open+" "},{from:s.to,insert:" "+i[o].close}]))};if(r!=1&&n.some(s=>s)){let s=[];for(let o=0,g;o<n.length;o++)if(g=n[o]){let a=i[o],{open:A,close:C}=g;s.push({from:A.pos-a.open.length,to:A.pos+A.margin},{from:C.pos-C.margin,to:C.pos+a.close.length})}return{changes:s}}return null}function pG(r,e,t=e.selection.ranges){let i=[],n=-1;for(let{from:s,to:o}of t){let g=i.length,a=1e9,A=Om(e,s).line;if(A){for(let C=s;C<=o;){let I=e.doc.lineAt(C);if(I.from>n&&(s==o||o>I.from)){n=I.from;let l=/^\s*/.exec(I.text)[0].length,h=l==I.length,d=I.text.slice(l,l+A.length)==A?l:-1;l<I.text.length&&l<a&&(a=l),i.push({line:I,comment:d,token:A,indent:l,empty:h,single:!1})}C=I.to+1}if(a<1e9)for(let C=g;C<i.length;C++)i[C].indent<i[C].line.text.length&&(i[C].indent=a);i.length==g+1&&(i[g].single=!0)}}if(r!=2&&i.some(s=>s.comment<0&&(!s.empty||s.single))){let s=[];for(let{line:g,token:a,indent:A,empty:C,single:I}of i)(I||!C)&&s.push({from:g.from+A,insert:a+" "});let o=e.changes(s);return{changes:o,selection:e.selection.map(o,1)}}else if(r!=1&&i.some(s=>s.comment>=0)){let s=[];for(let{line:o,comment:g,token:a}of i)if(g>=0){let A=o.from+g,C=A+a.length;o.text[C-o.from]==" "&&C++,s.push({from:A,to:C})}return{changes:s}}return null}var xm=xt.define(),mG=xt.define(),vG=G.define(),X2=G.define({combine(r){return Zn(r,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(i,n)=>e(i,n)||t(i,n)})}}),Q2=Qe.define({create(){return tr.empty},update(r,e){let t=e.state.facet(X2),i=e.annotation(xm);if(i){let a=oi.fromTransaction(e,i.selection),A=i.side,C=A==0?r.undone:r.done;return a?C=qa(C,C.length,t.minDepth,a):C=tP(C,e.startState.selection),new tr(A==0?i.rest:C,A==0?C:i.rest)}let n=e.annotation(mG);if((n=="full"||n=="before")&&(r=r.isolate()),e.annotation(He.addToHistory)===!1)return e.changes.empty?r:r.addMapping(e.changes.desc);let s=oi.fromTransaction(e),o=e.annotation(He.time),g=e.annotation(He.userEvent);return s?r=r.addChanges(s,o,g,t,e):e.selection&&(r=r.addSelection(e.startState.selection,o,g,t.newGroupDelay)),(n=="full"||n=="after")&&(r=r.isolate()),r},toJSON(r){return{done:r.done.map(e=>e.toJSON()),undone:r.undone.map(e=>e.toJSON())}},fromJSON(r){return new tr(r.done.map(oi.fromJSON),r.undone.map(oi.fromJSON))}});function J2(r={}){return[Q2,X2.of(r),K.domEventHandlers({beforeinput(e,t){let i=e.inputType=="historyUndo"?$2:e.inputType=="historyRedo"?Sm:null;return i?(e.preventDefault(),i(t)):!1}})]}function Va(r,e){return function({state:t,dispatch:i}){if(!e&&t.readOnly)return!1;let n=t.field(Q2,!1);if(!n)return!1;let s=n.pop(r,t,e);return s?(i(s),!0):!1}}var $2=Va(0,!1),Sm=Va(1,!1),bG=Va(0,!0),yG=Va(1,!0);var oi=class r{constructor(e,t,i,n,s){this.changes=e,this.effects=t,this.mapped=i,this.startSelection=n,this.selectionsAfter=s}setSelAfter(e){return new r(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,i;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(n=>n.toJSON())}}static fromJSON(e){return new r(e.changes&&lt.fromJSON(e.changes),[],e.mapped&&Vi.fromJSON(e.mapped),e.startSelection&&N.fromJSON(e.startSelection),e.selectionsAfter.map(N.fromJSON))}static fromTransaction(e,t){let i=Gt;for(let n of e.startState.facet(vG)){let s=n(e);s.length&&(i=i.concat(s))}return!i.length&&e.changes.empty?null:new r(e.changes.invert(e.startState.doc),i,void 0,t||e.startState.selection,Gt)}static selection(e){return new r(void 0,Gt,void 0,void 0,e)}};function qa(r,e,t,i){let n=e+1>t+20?e-t-1:0,s=r.slice(n,e);return s.push(i),s}function wG(r,e){let t=[],i=!1;return r.iterChangedRanges((n,s)=>t.push(n,s)),e.iterChangedRanges((n,s,o,g)=>{for(let a=0;a<t.length;){let A=t[a++],C=t[a++];g>=A&&o<=C&&(i=!0)}}),i}function xG(r,e){return r.ranges.length==e.ranges.length&&r.ranges.filter((t,i)=>t.empty!=e.ranges[i].empty).length===0}function eP(r,e){return r.length?e.length?r.concat(e):r:e}var Gt=[],SG=200;function tP(r,e){if(r.length){let t=r[r.length-1],i=t.selectionsAfter.slice(Math.max(0,t.selectionsAfter.length-SG));return i.length&&i[i.length-1].eq(e)?r:(i.push(e),qa(r,r.length-1,1e9,t.setSelAfter(i)))}else return[oi.selection([e])]}function EG(r){let e=r[r.length-1],t=r.slice();return t[r.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),t}function wm(r,e){if(!r.length)return r;let t=r.length,i=Gt;for(;t;){let n=TG(r[t-1],e,i);if(n.changes&&!n.changes.empty||n.effects.length){let s=r.slice(0,t);return s[t-1]=n,s}else e=n.mapped,t--,i=n.selectionsAfter}return i.length?[oi.selection(i)]:Gt}function TG(r,e,t){let i=eP(r.selectionsAfter.length?r.selectionsAfter.map(g=>g.map(e)):Gt,t);if(!r.changes)return oi.selection(i);let n=r.changes.map(e),s=e.mapDesc(r.changes,!0),o=r.mapped?r.mapped.composeDesc(s):s;return new oi(n,de.mapEffects(r.effects,e),o,r.startSelection.map(s),i)}var kG=/^(input\.type|delete)($|\.)/,tr=class r{constructor(e,t,i=0,n=void 0){this.done=e,this.undone=t,this.prevTime=i,this.prevUserEvent=n}isolate(){return this.prevTime?new r(this.done,this.undone):this}addChanges(e,t,i,n,s){let o=this.done,g=o[o.length-1];return g&&g.changes&&!g.changes.empty&&e.changes&&(!i||kG.test(i))&&(!g.selectionsAfter.length&&t-this.prevTime<n.newGroupDelay&&n.joinToEvent(s,wG(g.changes,e.changes))||i=="input.type.compose")?o=qa(o,o.length-1,n.minDepth,new oi(e.changes.compose(g.changes),eP(de.mapEffects(e.effects,g.changes),g.effects),g.mapped,g.startSelection,Gt)):o=qa(o,o.length,n.minDepth,e),new r(o,Gt,t,i)}addSelection(e,t,i,n){let s=this.done.length?this.done[this.done.length-1].selectionsAfter:Gt;return s.length>0&&t-this.prevTime<n&&i==this.prevUserEvent&&i&&/^select($|\.)/.test(i)&&xG(s[s.length-1],e)?this:new r(tP(this.done,e),this.undone,t,i)}addMapping(e){return new r(wm(this.done,e),wm(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,i){let n=e==0?this.done:this.undone;if(n.length==0)return null;let s=n[n.length-1],o=s.selectionsAfter[0]||t.selection;if(i&&s.selectionsAfter.length)return t.update({selection:s.selectionsAfter[s.selectionsAfter.length-1],annotations:xm.of({side:e,rest:EG(n),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(s.changes){let g=n.length==1?Gt:n.slice(0,n.length-1);return s.mapped&&(g=wm(g,s.mapped)),t.update({changes:s.changes,selection:s.startSelection,effects:s.effects,annotations:xm.of({side:e,rest:g,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}};tr.empty=new tr(Gt,Gt);var iP=[{key:"Mod-z",run:$2,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Sm,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Sm,preventDefault:!0},{key:"Mod-u",run:bG,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:yG,preventDefault:!0}];function $r(r,e){return N.create(r.ranges.map(e),r.mainIndex)}function gi(r,e){return r.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function ai({state:r,dispatch:e},t){let i=$r(r.selection,t);return i.eq(r.selection,!0)?!1:(e(gi(r,i)),!0)}function Wa(r,e){return N.cursor(e?r.to:r.from)}function nP(r,e){return ai(r,t=>t.empty?r.moveByChar(t,e):Wa(t,e))}function st(r){return r.textDirectionAt(r.state.selection.main.head)==ye.LTR}var rP=r=>nP(r,!st(r)),sP=r=>nP(r,st(r));function oP(r,e){return ai(r,t=>t.empty?r.moveByGroup(t,e):Wa(t,e))}var OG=r=>oP(r,!st(r)),RG=r=>oP(r,st(r));var b8=typeof Intl<"u"&&Intl.Segmenter?new Intl.Segmenter(void 0,{granularity:"word"}):null;function DG(r,e,t){if(e.type.prop(t))return!0;let i=e.to-e.from;return i&&(i>2||/[^\s,.;:]/.test(r.sliceDoc(e.from,e.to)))||e.firstChild}function Ga(r,e,t){let i=Wt(r).resolveInner(e.head),n=t?ee.closedBy:ee.openedBy;for(let a=e.head;;){let A=t?i.childAfter(a):i.childBefore(a);if(!A)break;DG(r,A,n)?i=A:a=t?A.to:A.from}let s=i.type.prop(n),o,g;return s&&(o=t?si(r,i.from,1):si(r,i.to,-1))&&o.matched?g=t?o.end.to:o.end.from:g=t?i.to:i.from,N.cursor(g,t?-1:1)}var PG=r=>ai(r,e=>Ga(r.state,e,!st(r))),MG=r=>ai(r,e=>Ga(r.state,e,st(r)));function gP(r,e){return ai(r,t=>{if(!t.empty)return Wa(t,e);let i=r.moveVertically(t,e);return i.head!=t.head?i:r.moveToLineBoundary(t,e)})}var aP=r=>gP(r,!1),AP=r=>gP(r,!0);function CP(r){let e=r.scrollDOM.clientHeight<r.scrollDOM.scrollHeight-2,t=0,i=0,n;if(e){for(let s of r.state.facet(K.scrollMargins)){let o=s(r);o?.top&&(t=Math.max(o?.top,t)),o?.bottom&&(i=Math.max(o?.bottom,i))}n=r.scrollDOM.clientHeight-t-i}else n=(r.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:t,marginBottom:i,selfScroll:e,height:Math.max(r.defaultLineHeight,n-5)}}function IP(r,e){let t=CP(r),{state:i}=r,n=$r(i.selection,o=>o.empty?r.moveVertically(o,e,t.height):Wa(o,e));if(n.eq(i.selection))return!1;let s;if(t.selfScroll){let o=r.coordsAtPos(i.selection.main.head),g=r.scrollDOM.getBoundingClientRect(),a=g.top+t.marginTop,A=g.bottom-t.marginBottom;o&&o.top>a&&o.bottom<A&&(s=K.scrollIntoView(n.main.head,{y:"start",yMargin:o.top-a}))}return r.dispatch(gi(i,n),{effects:s}),!0}var V2=r=>IP(r,!1),Em=r=>IP(r,!0);function pn(r,e,t){let i=r.lineBlockAt(e.head),n=r.moveToLineBoundary(e,t);if(n.head==e.head&&n.head!=(t?i.to:i.from)&&(n=r.moveToLineBoundary(e,t,!1)),!t&&n.head==i.from&&i.length){let s=/^\s*/.exec(r.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;s&&e.head!=i.from+s&&(n=N.cursor(i.from+s))}return n}var NG=r=>ai(r,e=>pn(r,e,!0)),_G=r=>ai(r,e=>pn(r,e,!1)),BG=r=>ai(r,e=>pn(r,e,!st(r))),FG=r=>ai(r,e=>pn(r,e,st(r))),LG=r=>ai(r,e=>N.cursor(r.lineBlockAt(e.head).from,1)),zG=r=>ai(r,e=>N.cursor(r.lineBlockAt(e.head).to,-1));function qG(r,e,t){let i=!1,n=$r(r.selection,s=>{let o=si(r,s.head,-1)||si(r,s.head,1)||s.head>0&&si(r,s.head-1,1)||s.head<r.doc.length&&si(r,s.head+1,-1);if(!o||!o.end)return s;i=!0;let g=o.start.from==s.head?o.end.to:o.end.from;return t?N.range(s.anchor,g):N.cursor(g)});return i?(e(gi(r,n)),!0):!1}var VG=({state:r,dispatch:e})=>qG(r,e,!1);function Zt(r,e){let t=$r(r.state.selection,i=>{let n=e(i);return N.range(i.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)});return t.eq(r.state.selection)?!1:(r.dispatch(gi(r.state,t)),!0)}function lP(r,e){return Zt(r,t=>r.moveByChar(t,e))}var hP=r=>lP(r,!st(r)),dP=r=>lP(r,st(r));function cP(r,e){return Zt(r,t=>r.moveByGroup(t,e))}var WG=r=>cP(r,!st(r)),GG=r=>cP(r,st(r));var ZG=r=>Zt(r,e=>Ga(r.state,e,!st(r))),jG=r=>Zt(r,e=>Ga(r.state,e,st(r)));function uP(r,e){return Zt(r,t=>r.moveVertically(t,e))}var fP=r=>uP(r,!1),pP=r=>uP(r,!0);function mP(r,e){return Zt(r,t=>r.moveVertically(t,e,CP(r).height))}var W2=r=>mP(r,!1),G2=r=>mP(r,!0),HG=r=>Zt(r,e=>pn(r,e,!0)),YG=r=>Zt(r,e=>pn(r,e,!1)),KG=r=>Zt(r,e=>pn(r,e,!st(r))),UG=r=>Zt(r,e=>pn(r,e,st(r))),XG=r=>Zt(r,e=>N.cursor(r.lineBlockAt(e.head).from)),QG=r=>Zt(r,e=>N.cursor(r.lineBlockAt(e.head).to)),Z2=({state:r,dispatch:e})=>(e(gi(r,{anchor:0})),!0),j2=({state:r,dispatch:e})=>(e(gi(r,{anchor:r.doc.length})),!0),H2=({state:r,dispatch:e})=>(e(gi(r,{anchor:r.selection.main.anchor,head:0})),!0),Y2=({state:r,dispatch:e})=>(e(gi(r,{anchor:r.selection.main.anchor,head:r.doc.length})),!0),JG=({state:r,dispatch:e})=>(e(r.update({selection:{anchor:0,head:r.doc.length},userEvent:"select"})),!0),$G=({state:r,dispatch:e})=>{let t=Za(r).map(({from:i,to:n})=>N.range(i,Math.min(n+1,r.doc.length)));return e(r.update({selection:N.create(t),userEvent:"select"})),!0},eZ=({state:r,dispatch:e})=>{let t=$r(r.selection,i=>{let n=Wt(r),s=n.resolveStack(i.from,1);if(i.empty){let o=n.resolveStack(i.from,-1);o.node.from>=s.node.from&&o.node.to<=s.node.to&&(s=o)}for(let o=s;o;o=o.next){let{node:g}=o;if((g.from<i.from&&g.to>=i.to||g.to>i.to&&g.from<=i.from)&&o.next)return N.range(g.to,g.from)}return i});return t.eq(r.selection)?!1:(e(gi(r,t)),!0)};function vP(r,e){let{state:t}=r,i=t.selection,n=t.selection.ranges.slice();for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head);if(e?o.to<r.state.doc.length:o.from>0)for(let g=s;;){let a=r.moveVertically(g,e);if(a.head<o.from||a.head>o.to){n.some(A=>A.head==a.head)||n.push(a);break}else{if(a.head==g.head)break;g=a}}}return n.length==i.ranges.length?!1:(r.dispatch(gi(t,N.create(n,n.length-1))),!0)}var tZ=r=>vP(r,!1),iZ=r=>vP(r,!0),nZ=({state:r,dispatch:e})=>{let t=r.selection,i=null;return t.ranges.length>1?i=N.create([t.main]):t.main.empty||(i=N.create([N.cursor(t.main.head)])),i?(e(gi(r,i)),!0):!1};function Do(r,e){if(r.state.readOnly)return!1;let t="delete.selection",{state:i}=r,n=i.changeByRange(s=>{let{from:o,to:g}=s;if(o==g){let a=e(s);a<o?(t="delete.backward",a=za(r,a,!1)):a>o&&(t="delete.forward",a=za(r,a,!0)),o=Math.min(o,a),g=Math.max(g,a)}else o=za(r,o,!1),g=za(r,g,!0);return o==g?{range:s}:{changes:{from:o,to:g},range:N.cursor(o,o<s.head?-1:1)}});return n.changes.empty?!1:(r.dispatch(i.update(n,{scrollIntoView:!0,userEvent:t,effects:t=="delete.selection"?K.announce.of(i.phrase("Selection deleted")):void 0})),!0)}function za(r,e,t){if(r instanceof K)for(let i of r.state.facet(K.atomicRanges).map(n=>n(r)))i.between(e,e,(n,s)=>{n<e&&s>e&&(e=t?s:n)});return e}var bP=(r,e,t)=>Do(r,i=>{let n=i.from,{state:s}=r,o=s.doc.lineAt(n),g,a;if(t&&!e&&n>o.from&&n<o.from+200&&!/[^ \t]/.test(g=o.text.slice(0,n-o.from))){if(g[g.length-1]==" ")return n-1;let A=jn(g,s.tabSize),C=A%Oo(s)||Oo(s);for(let I=0;I<C&&g[g.length-1-I]==" ";I++)n--;a=n}else a=Ye(o.text,n-o.from,e,e)+o.from,a==n&&o.number!=(e?s.doc.lines:1)?a+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(a-o.from,n-o.from))&&(a=Ye(o.text,a-o.from,!1,!1)+o.from);return a}),Tm=r=>bP(r,!1,!0);var yP=r=>bP(r,!0,!1),wP=(r,e)=>Do(r,t=>{let i=t.head,{state:n}=r,s=n.doc.lineAt(i),o=n.charCategorizer(i);for(let g=null;;){if(i==(e?s.to:s.from)){i==t.head&&s.number!=(e?n.doc.lines:1)&&(i+=e?1:-1);break}let a=Ye(s.text,i-s.from,e)+s.from,A=s.text.slice(Math.min(i,a)-s.from,Math.max(i,a)-s.from),C=o(A);if(g!=null&&C!=g)break;(A!=" "||i!=t.head)&&(g=C),i=a}return i}),xP=r=>wP(r,!1),rZ=r=>wP(r,!0);var sZ=r=>Do(r,e=>{let t=r.lineBlockAt(e.head).to;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)});var oZ=r=>Do(r,e=>{let t=r.moveToLineBoundary(e,!1).head;return e.head>t?t:Math.max(0,e.head-1)}),gZ=r=>Do(r,e=>{let t=r.moveToLineBoundary(e,!0).head;return e.head<t?t:Math.min(r.state.doc.length,e.head+1)});var aZ=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:re.of(["",""])},range:N.cursor(i.from)}));return e(r.update(t,{scrollIntoView:!0,userEvent:"input"})),!0},AZ=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=r.changeByRange(i=>{if(!i.empty||i.from==0||i.from==r.doc.length)return{range:i};let n=i.from,s=r.doc.lineAt(n),o=n==s.from?n-1:Ye(s.text,n-s.from,!1)+s.from,g=n==s.to?n+1:Ye(s.text,n-s.from,!0)+s.from;return{changes:{from:o,to:g,insert:r.doc.slice(n,g).append(r.doc.slice(o,n))},range:N.cursor(g)}});return t.changes.empty?!1:(e(r.update(t,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Za(r){let e=[],t=-1;for(let i of r.selection.ranges){let n=r.doc.lineAt(i.from),s=r.doc.lineAt(i.to);if(!i.empty&&i.to==s.from&&(s=r.doc.lineAt(i.to-1)),t>=n.number){let o=e[e.length-1];o.to=s.to,o.ranges.push(i)}else e.push({from:n.from,to:s.to,ranges:[i]});t=s.number+1}return e}function SP(r,e,t){if(r.readOnly)return!1;let i=[],n=[];for(let s of Za(r)){if(t?s.to==r.doc.length:s.from==0)continue;let o=r.doc.lineAt(t?s.to+1:s.from-1),g=o.length+1;if(t){i.push({from:s.to,to:o.to},{from:s.from,insert:o.text+r.lineBreak});for(let a of s.ranges)n.push(N.range(Math.min(r.doc.length,a.anchor+g),Math.min(r.doc.length,a.head+g)))}else{i.push({from:o.from,to:s.from},{from:s.to,insert:r.lineBreak+o.text});for(let a of s.ranges)n.push(N.range(a.anchor-g,a.head-g))}}return i.length?(e(r.update({changes:i,scrollIntoView:!0,selection:N.create(n,r.selection.mainIndex),userEvent:"move.line"})),!0):!1}var CZ=({state:r,dispatch:e})=>SP(r,e,!1),IZ=({state:r,dispatch:e})=>SP(r,e,!0);function EP(r,e,t){if(r.readOnly)return!1;let i=[];for(let s of Za(r))t?i.push({from:s.from,insert:r.doc.slice(s.from,s.to)+r.lineBreak}):i.push({from:s.to,insert:r.lineBreak+r.doc.slice(s.from,s.to)});let n=r.changes(i);return e(r.update({changes:n,selection:r.selection.map(n,t?1:-1),scrollIntoView:!0,userEvent:"input.copyline"})),!0}var lZ=({state:r,dispatch:e})=>EP(r,e,!1),hZ=({state:r,dispatch:e})=>EP(r,e,!0),dZ=r=>{if(r.state.readOnly)return!1;let{state:e}=r,t=e.changes(Za(e).map(({from:n,to:s})=>(n>0?n--:s<e.doc.length&&s++,{from:n,to:s}))),i=$r(e.selection,n=>{let s;if(r.lineWrapping){let o=r.lineBlockAt(n.head),g=r.coordsAtPos(n.head,n.assoc||1);g&&(s=o.bottom+r.documentTop-g.bottom+r.defaultLineHeight/2)}return r.moveVertically(n,!0,s)}).map(t);return r.dispatch({changes:t,selection:i,scrollIntoView:!0,userEvent:"delete.line"}),!0};function cZ(r,e){if(/\(\)|\[\]|\{\}/.test(r.sliceDoc(e-1,e+1)))return{from:e,to:e};let t=Wt(r).resolveInner(e),i=t.childBefore(e),n=t.childAfter(e),s;return i&&n&&i.to<=e&&n.from>=e&&(s=i.type.prop(ee.closedBy))&&s.indexOf(n.name)>-1&&r.doc.lineAt(i.to).from==r.doc.lineAt(n.from).from&&!/\S/.test(r.sliceDoc(i.to,n.from))?{from:i.to,to:n.from}:null}var K2=TP(!1),uZ=TP(!0);function TP(r){return({state:e,dispatch:t})=>{if(e.readOnly)return!1;let i=e.changeByRange(n=>{let{from:s,to:o}=n,g=e.doc.lineAt(s),a=!r&&s==o&&cZ(e,s);r&&(s=o=(o<=g.to?g:e.doc.lineAt(o)).to);let A=new er(e,{simulateBreak:s,simulateDoubleBreak:!!a}),C=La(A,s);for(C==null&&(C=jn(/^\s*/.exec(e.doc.lineAt(s).text)[0],e.tabSize));o<g.to&&/\s/.test(g.text[o-g.from]);)o++;a?{from:s,to:o}=a:s>g.from&&s<g.from+100&&!/\S/.test(g.text.slice(0,s))&&(s=g.from);let I=["",Jr(e,C)];return a&&I.push(Jr(e,A.lineIndent(g.from,-1))),{changes:{from:s,to:o,insert:re.of(I)},range:N.cursor(s+1+I[1].length)}});return t(e.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}}function Rm(r,e){let t=-1;return r.changeByRange(i=>{let n=[];for(let o=i.from;o<=i.to;){let g=r.doc.lineAt(o);g.number>t&&(i.empty||i.to>g.from)&&(e(g,n,i),t=g.number),o=g.to+1}let s=r.changes(n);return{changes:n,range:N.range(s.mapPos(i.anchor,1),s.mapPos(i.head,1))}})}var fZ=({state:r,dispatch:e})=>{if(r.readOnly)return!1;let t=Object.create(null),i=new er(r,{overrideIndentation:s=>{let o=t[s];return o??-1}}),n=Rm(r,(s,o,g)=>{let a=La(i,s.from);if(a==null)return;/\S/.test(s.text)||(a=0);let A=/^\s*/.exec(s.text)[0],C=Jr(r,a);(A!=C||g.from<s.from+A.length)&&(t[s.from]=a,o.push({from:s.from,to:s.from+A.length,insert:C}))});return n.changes.empty||e(r.update(n,{userEvent:"indent"})),!0},pZ=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Rm(r,(t,i)=>{i.push({from:t.from,insert:r.facet(ko)})}),{userEvent:"input.indent"})),!0),mZ=({state:r,dispatch:e})=>r.readOnly?!1:(e(r.update(Rm(r,(t,i)=>{let n=/^\s*/.exec(t.text)[0];if(!n)return;let s=jn(n,r.tabSize),o=0,g=Jr(r,Math.max(0,s-Oo(r)));for(;o<n.length&&o<g.length&&n.charCodeAt(o)==g.charCodeAt(o);)o++;i.push({from:t.from+o,to:t.from+n.length,insert:g.slice(o)})}),{userEvent:"delete.dedent"})),!0),vZ=r=>(r.setTabFocusMode(),!0);var bZ=[{key:"Ctrl-b",run:rP,shift:hP,preventDefault:!0},{key:"Ctrl-f",run:sP,shift:dP},{key:"Ctrl-p",run:aP,shift:fP},{key:"Ctrl-n",run:AP,shift:pP},{key:"Ctrl-a",run:LG,shift:XG},{key:"Ctrl-e",run:zG,shift:QG},{key:"Ctrl-d",run:yP},{key:"Ctrl-h",run:Tm},{key:"Ctrl-k",run:sZ},{key:"Ctrl-Alt-h",run:xP},{key:"Ctrl-o",run:aZ},{key:"Ctrl-t",run:AZ},{key:"Ctrl-v",run:Em}],yZ=[{key:"ArrowLeft",run:rP,shift:hP,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:OG,shift:WG,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:BG,shift:KG,preventDefault:!0},{key:"ArrowRight",run:sP,shift:dP,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:RG,shift:GG,preventDefault:!0},{mac:"Cmd-ArrowRight",run:FG,shift:UG,preventDefault:!0},{key:"ArrowUp",run:aP,shift:fP,preventDefault:!0},{mac:"Cmd-ArrowUp",run:Z2,shift:H2},{mac:"Ctrl-ArrowUp",run:V2,shift:W2},{key:"ArrowDown",run:AP,shift:pP,preventDefault:!0},{mac:"Cmd-ArrowDown",run:j2,shift:Y2},{mac:"Ctrl-ArrowDown",run:Em,shift:G2},{key:"PageUp",run:V2,shift:W2},{key:"PageDown",run:Em,shift:G2},{key:"Home",run:_G,shift:YG,preventDefault:!0},{key:"Mod-Home",run:Z2,shift:H2},{key:"End",run:NG,shift:HG,preventDefault:!0},{key:"Mod-End",run:j2,shift:Y2},{key:"Enter",run:K2,shift:K2},{key:"Mod-a",run:JG},{key:"Backspace",run:Tm,shift:Tm,preventDefault:!0},{key:"Delete",run:yP,preventDefault:!0},{key:"Mod-Backspace",mac:"Alt-Backspace",run:xP,preventDefault:!0},{key:"Mod-Delete",mac:"Alt-Delete",run:rZ,preventDefault:!0},{mac:"Mod-Backspace",run:oZ,preventDefault:!0},{mac:"Mod-Delete",run:gZ,preventDefault:!0}].concat(bZ.map(r=>({mac:r.key,run:r.run,shift:r.shift}))),kP=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:PG,shift:ZG},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:MG,shift:jG},{key:"Alt-ArrowUp",run:CZ},{key:"Shift-Alt-ArrowUp",run:lZ},{key:"Alt-ArrowDown",run:IZ},{key:"Shift-Alt-ArrowDown",run:hZ},{key:"Mod-Alt-ArrowUp",run:tZ},{key:"Mod-Alt-ArrowDown",run:iZ},{key:"Escape",run:nZ},{key:"Mod-Enter",run:uZ},{key:"Alt-l",mac:"Ctrl-l",run:$G},{key:"Mod-i",run:eZ,preventDefault:!0},{key:"Mod-[",run:mZ},{key:"Mod-]",run:pZ},{key:"Mod-Alt-\\",run:fZ},{key:"Shift-Mod-k",run:dZ},{key:"Shift-Mod-\\",run:VG},{key:"Mod-/",run:lG},{key:"Alt-A",run:dG},{key:"Ctrl-m",mac:"Shift-Alt-m",run:vZ}].concat(yZ);var T8=typeof navigator=="object"&&/Win/.test(navigator.platform);var ja={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ir=de.define({map(r,e){let t=e.mapPos(r,-1,it.TrackAfter);return t??void 0}}),Pm=new class extends Bt{};Pm.startSide=1;Pm.endSide=-1;var DP=Qe.define({create(){return le.empty},update(r,e){if(r=r.map(e.changes),e.selection){let t=e.state.doc.lineAt(e.selection.main.head);r=r.update({filter:i=>i>=t.from&&i<=t.to})}for(let t of e.effects)t.is(ir)&&(r=r.update({add:[Pm.range(t.value,t.value+1)]}));return r}});function PP(){return[EZ,DP]}var Dm="()[]{}<>\xAB\xBB\xBB\xAB\uFF3B\uFF3D\uFF5B\uFF5D";function wZ(r){for(let e=0;e<Dm.length;e+=2)if(Dm.charCodeAt(e)==r)return Dm.charAt(e+1);return MR(r<128?r:r+1)}function xZ(r,e){return r.languageDataAt("closeBrackets",e)[0]||ja}var SZ=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),EZ=K.inputHandler.of((r,e,t,i)=>{if((SZ?r.composing:r.compositionStarted)||r.state.readOnly)return!1;let n=r.state.selection.main;if(i.length>2||i.length==2&&io(Lr(i,0))==1||e!=n.from||t!=n.to)return!1;let s=TZ(r.state,i);return s?(r.dispatch(s),!0):!1});function TZ(r,e){let t=xZ(r,r.selection.main.head),i=t.brackets||ja.brackets;for(let n of i){let s=wZ(Lr(n,0));if(e==n)return s==n?RZ(r,n,i.indexOf(n+n+n)>-1,t):kZ(r,n,s,t.before||ja.before);if(e==s&&MP(r,r.selection.main.from))return OZ(r,n,s)}return null}function MP(r,e){let t=!1;return r.field(DP).between(0,r.doc.length,i=>{i==e&&(t=!0)}),t}function Mm(r,e){let t=r.sliceString(e,e+2);return t.slice(0,io(Lr(t,0)))}function kZ(r,e,t,i){let n=null,s=r.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:t,from:o.to}],effects:ir.of(o.to+e.length),range:N.range(o.anchor+e.length,o.head+e.length)};let g=Mm(r.doc,o.head);return!g||/\s/.test(g)||i.indexOf(g)>-1?{changes:{insert:e+t,from:o.head},effects:ir.of(o.head+e.length),range:N.cursor(o.head+e.length)}:{range:n=o}});return n?null:r.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function OZ(r,e,t){let i=null,n=r.changeByRange(s=>s.empty&&Mm(r.doc,s.head)==t?{changes:{from:s.head,to:s.head+t.length,insert:t},range:N.cursor(s.head+t.length)}:i={range:s});return i?null:r.update(n,{scrollIntoView:!0,userEvent:"input.type"})}function RZ(r,e,t,i){let n=i.stringPrefixes||ja.stringPrefixes,s=null,o=r.changeByRange(g=>{if(!g.empty)return{changes:[{insert:e,from:g.from},{insert:e,from:g.to}],effects:ir.of(g.to+e.length),range:N.range(g.anchor+e.length,g.head+e.length)};let a=g.head,A=Mm(r.doc,a),C;if(A==e){if(OP(r,a))return{changes:{insert:e+e,from:a},effects:ir.of(a+e.length),range:N.cursor(a+e.length)};if(MP(r,a)){let l=t&&r.sliceDoc(a,a+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:a,to:a+l.length,insert:l},range:N.cursor(a+l.length)}}}else{if(t&&r.sliceDoc(a-2*e.length,a)==e+e&&(C=RP(r,a-2*e.length,n))>-1&&OP(r,C))return{changes:{insert:e+e+e+e,from:a},effects:ir.of(a+e.length),range:N.cursor(a+e.length)};if(r.charCategorizer(a)(A)!=It.Word&&RP(r,a,n)>-1&&!DZ(r,a,e,n))return{changes:{insert:e+e,from:a},effects:ir.of(a+e.length),range:N.cursor(a+e.length)}}return{range:s=g}});return s?null:r.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function OP(r,e){let t=Wt(r).resolveInner(e+1);return t.parent&&t.from==e}function DZ(r,e,t,i){let n=Wt(r).resolveInner(e,-1),s=i.reduce((o,g)=>Math.max(o,g.length),0);for(let o=0;o<5;o++){let g=r.sliceDoc(n.from,Math.min(n.to,n.from+t.length+s)),a=g.indexOf(t);if(!a||a>-1&&i.indexOf(g.slice(0,a))>-1){let C=n.firstChild;for(;C&&C.from==n.from&&C.to-C.from>t.length+a;){if(r.sliceDoc(C.to-t.length,C.to)==t)return!1;C=C.firstChild}return!0}let A=n.to==e&&n.parent;if(!A)break;n=A}return!1}function RP(r,e,t){let i=r.charCategorizer(e);if(i(r.sliceDoc(e-1,e))!=It.Word)return e;for(let n of t){let s=e-n.length;if(r.sliceDoc(s,e)==n&&i(r.sliceDoc(s-1,s))!=It.Word)return s}return-1}var Lm={};tM(Lm,{CompileLog:()=>rr,CompileResult:()=>ts,Tok:()=>is,compile:()=>BZ,default:()=>Fm,init:()=>Bm,initSync:()=>qZ,lex:()=>FZ});var V;function PZ(r){let e=V.__externref_table_alloc();return V.__wbindgen_externrefs.set(e,r),e}function zP(r,e){r=r>>>0;let t=Ka(),i=[];for(let n=r;n<r+4*e;n+=4)i.push(V.__wbindgen_externrefs.get(t.getUint32(n,!0)));return V.__externref_drop_slice(r,e),i}var nr=null;function Ka(){return(nr===null||nr.buffer.detached===!0||nr.buffer.detached===void 0&&nr.buffer!==V.memory.buffer)&&(nr=new DataView(V.memory.buffer)),nr}function No(r,e){return r=r>>>0,_Z(r,e)}var Po=null;function Ha(){return(Po===null||Po.byteLength===0)&&(Po=new Uint8Array(V.memory.buffer)),Po}function _m(r){return r==null}function MZ(r,e){let t=e(r.length*4,4)>>>0;for(let i=0;i<r.length;i++){let n=PZ(r[i]);Ka().setUint32(t+4*i,n,!0)}return Di=r.length,t}function es(r,e,t){if(t===void 0){let g=Mo.encode(r),a=e(g.length,1)>>>0;return Ha().subarray(a,a+g.length).set(g),Di=g.length,a}let i=r.length,n=e(i,1)>>>0,s=Ha(),o=0;for(;o<i;o++){let g=r.charCodeAt(o);if(g>127)break;s[n+o]=g}if(o!==i){o!==0&&(r=r.slice(o)),n=t(n,i,i=o+r.length*3,1)>>>0;let g=Ha().subarray(n+o,n+i),a=Mo.encodeInto(r,g);o+=a.written,n=t(n,i,o,1)>>>0}return Di=o,n}var Ya=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});Ya.decode();var NZ=2146435072,Nm=0;function _Z(r,e){return Nm+=e,Nm>=NZ&&(Ya=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),Ya.decode(),Nm=e),Ya.decode(Ha().subarray(r,r+e))}var Mo=new TextEncoder;"encodeInto"in Mo||(Mo.encodeInto=function(r,e){let t=Mo.encode(r);return e.set(t),{read:r.length,written:t.length}});var Di=0,NP=["ident","keyword","error","comment","punc","lpar","lbrace","lbracket","rpar","rbrace","rbracket"],_P=["help","info","warning","error"],BP=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>V.__wbg_compilelog_free(r>>>0,1)),FP=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>V.__wbg_compileresult_free(r>>>0,1)),LP=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>V.__wbg_tok_free(r>>>0,1)),rr=class r{static __wrap(e){e=e>>>0;let t=Object.create(r.prototype);return t.__wbg_ptr=e,BP.register(t,t.__wbg_ptr,t),t}static __unwrap(e){return e instanceof r?e.__destroy_into_raw():0}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,BP.unregister(this),e}free(){let e=this.__destroy_into_raw();V.__wbg_compilelog_free(e,0)}get level(){let e=V.__wbg_get_compilelog_level(this.__wbg_ptr);return _P[e]}set level(e){V.__wbg_set_compilelog_level(this.__wbg_ptr,(_P.indexOf(e)+1||5)-1)}get message(){let e,t;try{let i=V.__wbg_get_compilelog_message(this.__wbg_ptr);return e=i[0],t=i[1],No(i[0],i[1])}finally{V.__wbindgen_free(e,t,1)}}set message(e){let t=es(e,V.__wbindgen_malloc,V.__wbindgen_realloc),i=Di;V.__wbg_set_compilelog_message(this.__wbg_ptr,t,i)}get start(){let e=V.__wbg_get_compilelog_start(this.__wbg_ptr);return e===4294967297?void 0:e}set start(e){V.__wbg_set_compilelog_start(this.__wbg_ptr,_m(e)?4294967297:e>>>0)}get end(){let e=V.__wbg_get_compilelog_end(this.__wbg_ptr);return e===4294967297?void 0:e}set end(e){V.__wbg_set_compilelog_end(this.__wbg_ptr,_m(e)?4294967297:e>>>0)}};Symbol.dispose&&(rr.prototype[Symbol.dispose]=rr.prototype.free);var ts=class r{static __wrap(e){e=e>>>0;let t=Object.create(r.prototype);return t.__wbg_ptr=e,FP.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,FP.unregister(this),e}free(){let e=this.__destroy_into_raw();V.__wbg_compileresult_free(e,0)}get log(){let e=V.__wbg_get_compileresult_log(this.__wbg_ptr);var t=zP(e[0],e[1]).slice();return V.__wbindgen_free(e[0],e[1]*4,4),t}set log(e){let t=MZ(e,V.__wbindgen_malloc),i=Di;V.__wbg_set_compileresult_log(this.__wbg_ptr,t,i)}get ansi_log(){let e,t;try{let i=V.__wbg_get_compileresult_ansi_log(this.__wbg_ptr);return e=i[0],t=i[1],No(i[0],i[1])}finally{V.__wbindgen_free(e,t,1)}}set ansi_log(e){let t=es(e,V.__wbindgen_malloc,V.__wbindgen_realloc),i=Di;V.__wbg_set_compileresult_ansi_log(this.__wbg_ptr,t,i)}get machine(){let e=V.__wbg_get_compileresult_machine(this.__wbg_ptr),t;return e[0]!==0&&(t=No(e[0],e[1]).slice(),V.__wbindgen_free(e[0],e[1]*1,1)),t}set machine(e){var t=_m(e)?0:es(e,V.__wbindgen_malloc,V.__wbindgen_realloc),i=Di;V.__wbg_set_compileresult_machine(this.__wbg_ptr,t,i)}};Symbol.dispose&&(ts.prototype[Symbol.dispose]=ts.prototype.free);var is=class r{static __wrap(e){e=e>>>0;let t=Object.create(r.prototype);return t.__wbg_ptr=e,LP.register(t,t.__wbg_ptr,t),t}__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,LP.unregister(this),e}free(){let e=this.__destroy_into_raw();V.__wbg_tok_free(e,0)}get start(){return V.__wbg_get_tok_start(this.__wbg_ptr)>>>0}set start(e){V.__wbg_set_tok_start(this.__wbg_ptr,e)}get end(){return V.__wbg_get_tok_end(this.__wbg_ptr)>>>0}set end(e){V.__wbg_set_tok_end(this.__wbg_ptr,e)}get scope_level(){return V.__wbg_get_tok_scope_level(this.__wbg_ptr)>>>0}set scope_level(e){V.__wbg_set_tok_scope_level(this.__wbg_ptr,e)}get kind(){let e=V.__wbg_get_tok_kind(this.__wbg_ptr);return NP[e]}set kind(e){V.__wbg_set_tok_kind(this.__wbg_ptr,(NP.indexOf(e)+1||12)-1)}};Symbol.dispose&&(is.prototype[Symbol.dispose]=is.prototype.free);function BZ(r){let e=es(r,V.__wbindgen_malloc,V.__wbindgen_realloc),t=Di,i=V.compile(e,t);return ts.__wrap(i)}function Bm(){V.init()}function FZ(r){let e=es(r,V.__wbindgen_malloc,V.__wbindgen_realloc),t=Di,i=V.lex(e,t);var n=zP(i[0],i[1]).slice();return V.__wbindgen_free(i[0],i[1]*4,4),n}var LZ=new Set(["basic","cors","default"]);async function zZ(r,e){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,e)}catch(i){if(r.ok&&LZ.has(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",i);else throw i}let t=await r.arrayBuffer();return await WebAssembly.instantiate(t,e)}else{let t=await WebAssembly.instantiate(r,e);return t instanceof WebAssembly.Instance?{instance:t,module:r}:t}}function qP(){let r={};return r.wbg={},r.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,t){throw new Error(No(e,t))},r.wbg.__wbg_compilelog_new=function(e){return rr.__wrap(e)},r.wbg.__wbg_compilelog_unwrap=function(e){return rr.__unwrap(e)},r.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,t){let i,n;try{i=e,n=t,console.error(No(e,t))}finally{V.__wbindgen_free(i,n,1)}},r.wbg.__wbg_new_8a6f238a6ece86ea=function(){return new Error},r.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,t){let i=t.stack,n=es(i,V.__wbindgen_malloc,V.__wbindgen_realloc),s=Di;Ka().setInt32(e+4*1,s,!0),Ka().setInt32(e+4*0,n,!0)},r.wbg.__wbg_tok_new=function(e){return is.__wrap(e)},r.wbg.__wbindgen_init_externref_table=function(){let e=V.__wbindgen_externrefs,t=e.grow(4);e.set(0,void 0),e.set(t+0,void 0),e.set(t+1,null),e.set(t+2,!0),e.set(t+3,!1)},r}function VP(r,e){return V=r.exports,WP.__wbindgen_wasm_module=e,nr=null,Po=null,V.__wbindgen_start(),V}function qZ(r){if(V!==void 0)return V;typeof r<"u"&&(Object.getPrototypeOf(r)===Object.prototype?{module:r}=r:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=qP();r instanceof WebAssembly.Module||(r=new WebAssembly.Module(r));let t=new WebAssembly.Instance(r,e);return VP(t,r)}async function WP(r){if(V!==void 0)return V;typeof r<"u"&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof r>"u"&&(r=new URL("automata_web_bg.wasm",import.meta.url));let e=qP();(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));let{instance:t,module:i}=await zZ(await r,e);return VP(t,i)}var Fm=WP;console.debug("Loading wasm\u2026");try{console.debug("Wasm loaded. Starting app\u2026"),await Fm(),console.debug("App started."),document.getElementById("center_text").innerHTML="",document.getElementById("app").style.display="",Bm()}catch(r){throw console.error("Failed to start: "+r),document.getElementById("app").remove(),document.getElementById("center_text").innerHTML=`
<p>
An error occurred during loading:
</p>
<p style="font-family:Courier New">
${r}
</p>
<p style="font-size:14px">
Make sure you use a modern browser with WebGL and WASM enabled.
</p>`,r}var zm=Lm;function VZ(r){try{return zm.lex(r)}catch(e){return console.log(e),[]}}function WZ(r){try{return zm.compile(r)}catch(e){return console.log(e),{log:[],ansi_log:"",machine:""}}}function GZ(r){return oe.mark({class:`cm-highlight cm-highlight-${r}`})}z.on("highlight/update",r=>{let e=xi.values().toArray().sort((t,i)=>t.span[0]-i.span[0]);qm.dispatch({effects:ZP.of(e)})});var ZP=de.define(),ZZ=Qe.define({create(){return oe.none},update(r,e){r=r.map(e.changes);for(let t of e.effects)if(t.is(ZP)){let i=t.value,n=new an;for(let s of i){let o=Math.max(0,Math.min(s.span[0],e.state.doc.length)),g=Math.max(0,Math.min(s.span[1],e.state.doc.length));g>o&&n.add(o,g,GZ(s.kind))}r=n.finish()}return r},provide:r=>K.decorations.from(r)}),jP=Qe.define({create(r){let e=r.doc.toString();return z.emit("editor/change",{text:e,doc:r.doc}),GP(e,r.doc)},update(r,e){if(!e.docChanged)return r;let t=e.state.doc.toString();return z.emit("editor/change",{text:t,doc:YP.doc}),GP(t,e.state.doc)},provide:r=>K.decorations.from(r,e=>e.deco)});function GP(r,e){KZ(r);let t=VZ(r),{log:i,ansi_log:n,machine:s}=WZ(r);z.emit("compiled",{log:i,ansi_log:n,machine:s});let o=[],g=e.length;for(let A of t){let C=Math.max(0,Math.min(g,A.start)),I=Math.max(C,Math.min(g,A.end)),l=jZ(A.kind);l==="rb-"&&(l+=A.scope_level.toString()),I>C&&o.push(oe.mark({class:l}).range(C,I))}for(let A of i){if(A.start===void 0||A.end===void 0)continue;let C=Math.max(0,Math.min(g,A.start)),I=A.end==null?A.start:A.end,l=Math.max(C,Math.min(g,I)),h=HZ(A.level);if(l>C)o.push(oe.mark({class:h}).range(C,l));else{let d=Math.min(g,C+1);d>C&&o.push(oe.mark({class:h}).range(C,d))}}let a=oe.set(o,!0);return{tokens:t,log:i,ansi_log:n,deco:a}}var jZ=r=>({comment:"tok-comment",keyword:"tok-keyword",error:"tok-error",ident:"tok-ident",punc:"tok-punc",string:"tok-string",lpar:"rb-",lbrace:"rb-",lbracket:"rb-",rpar:"rb-",rbrace:"rb-",rbracket:"rb-"})[r]||"tok-ident";function HZ(r){let e=(r||"error").toLowerCase();return e==="warning"?"cm-diag-warning":e==="info"?"cm-diag-info":"cm-diag-error"}function Ua(r){return r==="error"?3:r==="warning"?2:1}var YZ=p2((r,e)=>{let{log:t}=r.state.field(jP),i=t.filter(s=>s.start!==void 0&&s.end!==void 0&&e>=s.start&&e<=s.end);if(i.length===0)return null;let n=i.reduce((s,o)=>Ua(o.level)>Ua(s.level)?o:s,i[0]);return{pos:e,end:e,above:!0,create(){let s=document.createElement("div");s.className="cm-tooltip cm-tooltip-hover";let o=document.createElement("div");o.className=`tipTitle ${n.level}`,o.textContent=i.length===1?n.level.toUpperCase():`${n.level.toUpperCase()} (${i.length})`;let g=document.createElement("div");return g.className="tipBody",g.textContent=i.slice().sort((a,A)=>Ua(A.level)-Ua(a.level)).map(a=>`[${a.level.toUpperCase()}] ${a.message}`).join(`
`),s.appendChild(o),s.appendChild(g),{dom:s}}}});function KZ(r){globalThis.localStorage.save=r}function UZ(){return globalThis.localStorage.save}function HP(){return qo.sharedText()??UZ()??rA[0].machine}var YP=Te.create({doc:HP(),extensions:[m2(),v2(),J2(),B2(),q2(),u2(),PP(),Oa.of([...kP,...iP]),jP,ZZ,YZ,K.lineWrapping]}),qm=new K({state:YP,parent:document.getElementById("editor")});z.on("begin",r=>z.emit("controls/editor/set_text",HP()));z.on("controls/editor/set_text",r=>{qm.dispatch({changes:{from:0,to:qm.state.doc.length,insert:r}})});z.on("example/selected",r=>{z.emit("controls/editor/set_text",r.machine)});z.on("compiled",({log:r,ansi_log:e})=>{let t=document.getElementById("terminal");if(!t)return;let i="";i+=`\x1B[90m[compile]\x1B[0m ${r.length} diagnostics
`,t.innerHTML=XZ(i+e)});function KP(r){return r.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function XZ(r){let e=/\x1b\[([0-9;]*)m/g,t="",i=0,n=null,s=null,o=!1,g=!1;function a(I){if(I.length===0)return"";let l=[];return o&&l.push("ansi-bold"),g&&l.push("ansi-dim"),n!=null&&l.push(`ansi-fg-${n}`),s!=null&&l.push(`ansi-bg-${s}`),l.length===0?KP(I):`<span class="${l.join(" ")}">${KP(I)}</span>`}function A(I){I.length===0&&(I=["0"]);for(let l of I){let h=Number(l);Number.isNaN(h)||(h===0?(n=null,s=null,o=!1,g=!1):h===1?o=!0:h===2?g=!0:h===22?(o=!1,g=!1):h===39?n=null:h===49?s=null:h>=30&&h<=37||h>=90&&h<=97?n=h:(h>=40&&h<=47||h>=100&&h<=107)&&(s=h))}}let C;for(;(C=e.exec(r))!==null;){let I=r.slice(i,C.index);t+=a(I);let l=C[1]?C[1].split(";"):[];A(l),i=e.lastIndex}return t+=a(r.slice(i)),t}z.emit("begin",void 0);
/**
* vis-network
* https://visjs.github.io/vis-network/
*
* A dynamic, browser-based visualization library.
*
* @version 10.0.2
* @date 2025-09-15T17:48:13.838Z
*
* @copyright (c) 2011-2017 Almende B.V, http://almende.com
* @copyright (c) 2017-2019 visjs contributors, https://github.com/visjs
*
* @license
* vis.js is dual licensed under both
*
* 1. The Apache 2.0 License
* http://www.apache.org/licenses/LICENSE-2.0
*
* and
*
* 2. The MIT License
* http://opensource.org/licenses/MIT
*
* vis.js may be distributed under either license.
*/
/*! Hammer.JS - v2.0.17-rc - 2019-12-16
* http://naver.github.io/egjs
*
* Forked By Naver egjs
* Copyright (c) hammerjs
* Licensed under the MIT license */