From 1cdf2b901d1a9b921d0925b49a243475952b1221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20G=C3=B6rtler?= Date: Thu, 5 Sep 2024 15:07:22 +0200 Subject: [PATCH] Updates --- ...gDrop.DXJnqdlr.js => DragDrop.BqVnE3R5.js} | 2 +- ...{Viewer.CUaabvoY.js => Viewer.C5t0eI9O.js} | 2 +- .../{dot.BpqtT9be.js => dot.Bgkvpxeo.js} | 2 +- .../{entry.WWhhMuPn.js => entry.BfJ0ncBH.js} | 2 +- .../{index.Dkpp2DVH.js => index.BeFZgILa.js} | 2 +- _app/immutable/chunks/paths.BILvqvyt.js | 1 - _app/immutable/chunks/paths.CFq_Q8H9.js | 1 + _app/immutable/chunks/viewer.BYFc8Cdc.js | 3 ++ _app/immutable/chunks/viewer.VKJlf1_4.js | 3 -- .../{app.D-TucNIE.js => app.B4wslMVP.js} | 4 +-- _app/immutable/entry/start.8QIjKmUz.js | 1 - _app/immutable/entry/start.CWjv3zxM.js | 1 + .../nodes/{1.C_prkdRU.js => 1.DCDm4DEM.js} | 2 +- .../nodes/{10.CSQPrr57.js => 10.Cld4Kjku.js} | 2 +- .../nodes/{11.BFq0GX80.js => 11.0B2c2elE.js} | 2 +- .../nodes/{2.DFg_KNub.js => 2.CdDxww_b.js} | 2 +- .../nodes/{4.B0wbLcuC.js => 4.B8JFxwEt.js} | 2 +- .../nodes/{5.DAynCHZG.js => 5.SLxI-m7B.js} | 2 +- .../nodes/{6.2lZNt-No.js => 6.Byvfz3Eu.js} | 2 +- .../nodes/{7.DMh6GWRq.js => 7.7oBUziAX.js} | 2 +- .../nodes/{8.CVr-EtqJ.js => 8.Cr5xcWYm.js} | 2 +- .../nodes/{9.xqSS8nyK.js => 9.CgXEf7WY.js} | 2 +- _app/version.json | 2 +- example/dot/index.html | 26 ++++++++--------- example/lenet/index.html | 26 ++++++++--------- example/simple/index.html | 24 ++++++++-------- gallery/index.html | 20 ++++++------- getting-started/index.html | 22 +++++++-------- index.html | 22 +++++++-------- viewer/index.html | 28 +++++++++---------- 30 files changed, 107 insertions(+), 107 deletions(-) rename _app/immutable/chunks/{DragDrop.DXJnqdlr.js => DragDrop.BqVnE3R5.js} (92%) rename _app/immutable/chunks/{Viewer.CUaabvoY.js => Viewer.C5t0eI9O.js} (94%) rename _app/immutable/chunks/{dot.BpqtT9be.js => dot.Bgkvpxeo.js} (99%) rename _app/immutable/chunks/{entry.WWhhMuPn.js => entry.BfJ0ncBH.js} (99%) rename _app/immutable/chunks/{index.Dkpp2DVH.js => index.BeFZgILa.js} (99%) delete mode 100644 _app/immutable/chunks/paths.BILvqvyt.js create mode 100644 _app/immutable/chunks/paths.CFq_Q8H9.js create mode 100644 _app/immutable/chunks/viewer.BYFc8Cdc.js delete mode 100644 _app/immutable/chunks/viewer.VKJlf1_4.js rename _app/immutable/entry/{app.D-TucNIE.js => app.B4wslMVP.js} (85%) delete mode 100644 _app/immutable/entry/start.8QIjKmUz.js create mode 100644 _app/immutable/entry/start.CWjv3zxM.js rename _app/immutable/nodes/{1.C_prkdRU.js => 1.DCDm4DEM.js} (91%) rename _app/immutable/nodes/{10.CSQPrr57.js => 10.Cld4Kjku.js} (98%) rename _app/immutable/nodes/{11.BFq0GX80.js => 11.0B2c2elE.js} (99%) rename _app/immutable/nodes/{2.DFg_KNub.js => 2.CdDxww_b.js} (94%) rename _app/immutable/nodes/{4.B0wbLcuC.js => 4.B8JFxwEt.js} (97%) rename _app/immutable/nodes/{5.DAynCHZG.js => 5.SLxI-m7B.js} (80%) rename _app/immutable/nodes/{6.2lZNt-No.js => 6.Byvfz3Eu.js} (81%) rename _app/immutable/nodes/{7.DMh6GWRq.js => 7.7oBUziAX.js} (91%) rename _app/immutable/nodes/{8.CVr-EtqJ.js => 8.Cr5xcWYm.js} (95%) rename _app/immutable/nodes/{9.xqSS8nyK.js => 9.CgXEf7WY.js} (99%) diff --git a/_app/immutable/chunks/DragDrop.DXJnqdlr.js b/_app/immutable/chunks/DragDrop.BqVnE3R5.js similarity index 92% rename from _app/immutable/chunks/DragDrop.DXJnqdlr.js rename to _app/immutable/chunks/DragDrop.BqVnE3R5.js index 841de58..16e3ff9 100644 --- a/_app/immutable/chunks/DragDrop.DXJnqdlr.js +++ b/_app/immutable/chunks/DragDrop.BqVnE3R5.js @@ -1 +1 @@ -import{s as g,k as b,e as D,c as w,b as v,f as c,h as d,y as h,i as A,z as m,u as k,l as y,m as T,A as W}from"./scheduler.BZf3Antt.js";import{S as E,i as z,t as F,b as S}from"./index.C7bWdOrd.js";import{b as $}from"./paths.BILvqvyt.js";import{g as q}from"./entry.WWhhMuPn.js";import{v as p}from"./stores.BEpXIDt_.js";function B(r){let e,s,f,u;const l=r[4].default,t=b(l,r,r[3],null);return{c(){e=D("div"),t&&t.c(),this.h()},l(a){e=w(a,"DIV",{role:!0,tabindex:!0,"aria-label":!0,class:!0});var n=v(e);t&&t.l(n),n.forEach(c),this.h()},h(){d(e,"role","button"),d(e,"tabindex","0"),d(e,"aria-label","dropzone"),d(e,"class","grow"),h(e,"blur",r[0])},m(a,n){A(a,e,n),t&&t.m(e,null),s=!0,f||(u=[m(e,"dragenter",r[1]),m(e,"dragover",r[1]),m(e,"dragleave",r[5]),m(e,"drop",r[2])],f=!0)},p(a,[n]){t&&t.p&&(!s||n&8)&&k(t,l,a,a[3],s?T(l,a[3],n,null):y(a[3]),null),(!s||n&1)&&h(e,"blur",a[0])},i(a){s||(F(t,a),s=!0)},o(a){S(t,a),s=!1},d(a){a&&c(e),t&&t.d(a),f=!1,W(u)}}}function C(r,e,s){let{$$slots:f={},$$scope:u}=e,l=!1;function t(o){s(0,l=!0),o.preventDefault()}function a(o){s(0,l=!1);const _=new FileReader;if(o.dataTransfer!==null){const i=o.dataTransfer.files[0];if(_.onloadend=async function(){i.name.endsWith(".onnx")?p.set({kind:"onnx",data:new Uint8Array(this.result)}):i.name.endsWith(".dot")&&p.set({kind:"dot",data:this.result}),await q(`${$}/viewer`)},i.name.endsWith(".onnx"))_.readAsArrayBuffer(i);else if(i.name.endsWith(".dot"))_.readAsText(i);else throw new Error(`unknown extension: ${i.name}`)}s(0,l=!1),o.preventDefault()}const n=()=>s(0,l=!1);return r.$$set=o=>{"$$scope"in o&&s(3,u=o.$$scope)},[l,t,a,u,f,n]}class G extends E{constructor(e){super(),z(this,e,C,B,g,{})}}export{G as D}; +import{s as g,k as b,e as D,c as w,b as v,f as c,h as d,y as h,i as A,z as m,u as k,l as y,m as T,A as W}from"./scheduler.BZf3Antt.js";import{S as E,i as z,t as F,b as S}from"./index.C7bWdOrd.js";import{b as $}from"./paths.CFq_Q8H9.js";import{g as q}from"./entry.BfJ0ncBH.js";import{v as p}from"./stores.BEpXIDt_.js";function B(r){let e,s,f,u;const l=r[4].default,t=b(l,r,r[3],null);return{c(){e=D("div"),t&&t.c(),this.h()},l(a){e=w(a,"DIV",{role:!0,tabindex:!0,"aria-label":!0,class:!0});var n=v(e);t&&t.l(n),n.forEach(c),this.h()},h(){d(e,"role","button"),d(e,"tabindex","0"),d(e,"aria-label","dropzone"),d(e,"class","grow"),h(e,"blur",r[0])},m(a,n){A(a,e,n),t&&t.m(e,null),s=!0,f||(u=[m(e,"dragenter",r[1]),m(e,"dragover",r[1]),m(e,"dragleave",r[5]),m(e,"drop",r[2])],f=!0)},p(a,[n]){t&&t.p&&(!s||n&8)&&k(t,l,a,a[3],s?T(l,a[3],n,null):y(a[3]),null),(!s||n&1)&&h(e,"blur",a[0])},i(a){s||(F(t,a),s=!0)},o(a){S(t,a),s=!1},d(a){a&&c(e),t&&t.d(a),f=!1,W(u)}}}function C(r,e,s){let{$$slots:f={},$$scope:u}=e,l=!1;function t(o){s(0,l=!0),o.preventDefault()}function a(o){s(0,l=!1);const _=new FileReader;if(o.dataTransfer!==null){const i=o.dataTransfer.files[0];if(_.onloadend=async function(){i.name.endsWith(".onnx")?p.set({kind:"onnx",data:new Uint8Array(this.result)}):i.name.endsWith(".dot")&&p.set({kind:"dot",data:this.result}),await q(`${$}/viewer`)},i.name.endsWith(".onnx"))_.readAsArrayBuffer(i);else if(i.name.endsWith(".dot"))_.readAsText(i);else throw new Error(`unknown extension: ${i.name}`)}s(0,l=!1),o.preventDefault()}const n=()=>s(0,l=!1);return r.$$set=o=>{"$$scope"in o&&s(3,u=o.$$scope)},[l,t,a,u,f,n]}class G extends E{constructor(e){super(),z(this,e,C,B,g,{})}}export{G as D}; diff --git a/_app/immutable/chunks/Viewer.CUaabvoY.js b/_app/immutable/chunks/Viewer.C5t0eI9O.js similarity index 94% rename from _app/immutable/chunks/Viewer.CUaabvoY.js rename to _app/immutable/chunks/Viewer.C5t0eI9O.js index 55584d4..37fa28a 100644 --- a/_app/immutable/chunks/Viewer.CUaabvoY.js +++ b/_app/immutable/chunks/Viewer.C5t0eI9O.js @@ -1 +1 @@ -import{s as _,a as k,e as v,o as b,f as r,d as y,c as g,b as C,h as u,i as h,n as f,p as E,q as S,r as V}from"./scheduler.BZf3Antt.js";import{S as D,i as M}from"./index.C7bWdOrd.js";import{b as N}from"./viewer.VKJlf1_4.js";function q(o){let i,s,n;return document.title=i=o[0]+" • Mycelium",{c(){s=k(),n=v("div"),this.h()},l(e){b("svelte-1nyv8ri",document.head).forEach(r),s=y(e),n=g(e,"DIV",{class:!0,id:!0}),C(n).forEach(r),this.h()},h(){u(n,"class","w-full h-full"),u(n,"id","app")},m(e,a){h(e,s,a),h(e,n,a),o[3](n)},p(e,[a]){a&1&&i!==(i=e[0]+" • Mycelium")&&(document.title=i)},i:f,o:f,d(e){e&&(r(s),r(n)),o[3](null)}}}function I(o,i,s){const n=E();let{network:e}=i,{title:a}=i,l,c;async function m(t){if(console.info("Selection Changed Event",t),t.selections.length>0){const d=t.selections.map(p=>p.primaryNodeId);console.info(`New selected nodes: ${d.join(",")}.`),await c.setFocus(d,!0)}}S(()=>{c=N.create(e,l,{showBreadcrumbs:!0,watermark:!1}),c.onSelectionDidChange(t=>{m(t)}),n("created",{viewer:c})});function w(t){V[t?"unshift":"push"](()=>{l=t,s(1,l)})}return o.$$set=t=>{"network"in t&&s(2,e=t.network),"title"in t&&s(0,a=t.title)},[a,l,e,w]}class x extends D{constructor(i){super(),M(this,i,I,q,_,{network:2,title:0})}}export{x as V}; +import{s as _,a as k,e as v,o as b,f as r,d as y,c as g,b as C,h as u,i as h,n as f,p as E,q as S,r as V}from"./scheduler.BZf3Antt.js";import{S as D,i as M}from"./index.C7bWdOrd.js";import{b as N}from"./viewer.BYFc8Cdc.js";function q(o){let i,s,n;return document.title=i=o[0]+" • Mycelium",{c(){s=k(),n=v("div"),this.h()},l(e){b("svelte-1nyv8ri",document.head).forEach(r),s=y(e),n=g(e,"DIV",{class:!0,id:!0}),C(n).forEach(r),this.h()},h(){u(n,"class","w-full h-full"),u(n,"id","app")},m(e,a){h(e,s,a),h(e,n,a),o[3](n)},p(e,[a]){a&1&&i!==(i=e[0]+" • Mycelium")&&(document.title=i)},i:f,o:f,d(e){e&&(r(s),r(n)),o[3](null)}}}function I(o,i,s){const n=E();let{network:e}=i,{title:a}=i,l,c;async function m(t){if(console.info("Selection Changed Event",t),t.selections.length>0){const d=t.selections.map(p=>p.primaryNodeId);console.info(`New selected nodes: ${d.join(",")}.`),await c.setFocus(d,!0)}}S(()=>{c=N.create(e,l,{showBreadcrumbs:!0,watermark:!1}),c.onSelectionDidChange(t=>{m(t)}),n("created",{viewer:c})});function w(t){V[t?"unshift":"push"](()=>{l=t,s(1,l)})}return o.$$set=t=>{"network"in t&&s(2,e=t.network),"title"in t&&s(0,a=t.title)},[a,l,e,w]}class x extends D{constructor(i){super(),M(this,i,I,q,_,{network:2,title:0})}}export{x as V}; diff --git a/_app/immutable/chunks/dot.BpqtT9be.js b/_app/immutable/chunks/dot.Bgkvpxeo.js similarity index 99% rename from _app/immutable/chunks/dot.BpqtT9be.js rename to _app/immutable/chunks/dot.Bgkvpxeo.js index ca0a4d4..66f0490 100644 --- a/_app/immutable/chunks/dot.BpqtT9be.js +++ b/_app/immutable/chunks/dot.Bgkvpxeo.js @@ -1,4 +1,4 @@ -import{N as Kt,a as pu,T as gu,c as Vt}from"./viewer.VKJlf1_4.js";import"./index.C7bWdOrd.js";function Yt(...l){const[a,...c]=l;return(...g)=>c.reduce((i,F)=>F(i),a(...g))}function e0(l,...a){return Yt(l,...a)}const re=Object.seal({Graph:null,Digraph:null,Subgraph:null,Node:null,Edge:null});function Fu(l){return Object.assign(Object.seal(Object.assign({},re)),l)}function u0(l){return typeof l=="object"&&l!==null&&typeof l.id=="string"}function r0(l){return typeof l=="object"&&l!==null&&l.$$type==="Node"&&typeof l.id=="string"}function du(l){return r0(l)||u0(l)}function Z(l){return typeof l=="string"||du(l)}function t0(l){return Array.isArray(l)&&l.every(Z)}function s0(l){return["n","ne","e","se","s","sw","w","nw","c"].includes(l)}function hu(l){if(du(l))return l;const[a,c,g]=l.split(":");return s0(g)?{id:a,port:c,compass:g}:{id:a,port:c}}function n0(l){if(l.length<2&&(Z(l[0])&&Z(l[1]))===!1)throw Error("EdgeTargets must have at least 2 elements.");return l.map(a=>hu(a))}class Ce{}class Ee extends Ce{#u=new Map;constructor(a){super(),a!==void 0&&this.apply(a)}get values(){return Array.from(this.#u.entries())}get size(){return this.#u.size}get(a){return this.#u.get(a)}set(a,c){c!=null&&this.#u.set(a,c)}delete(a){this.#u.delete(a)}apply(a){const c=Array.isArray(a)?a:Object.entries(a);for(const[g,i]of c)this.set(g,i)}clear(){this.#u.clear()}}class de extends Ee{constructor(a,c){super(c),this.$$kind=a}get $$type(){return"AttributeList"}comment}class Cu extends Ee{#u=re;id;comment;attributes=Object.freeze({graph:new de("Graph"),edge:new de("Edge"),node:new de("Node")});get nodes(){return Array.from(this.#e.nodes.values())}get edges(){return Array.from(this.#e.edges.values())}get subgraphs(){return Array.from(this.#e.subgraphs.values())}#e={nodes:new Map,edges:new Set,subgraphs:new Set};with(a){this.#u=Fu(a)}addNode(a){this.#e.nodes.set(a.id,a)}addEdge(a){this.#e.edges.add(a)}addSubgraph(a){this.#e.subgraphs.add(a)}existNode(a){return this.#e.nodes.has(a)}existEdge(a){return this.#e.edges.has(a)}existSubgraph(a){return this.#e.subgraphs.has(a)}createSubgraph(...a){const c=new this.#u.Subgraph(...a);return c.with(this.#u),this.addSubgraph(c),c}removeNode(a){this.#e.nodes.delete(typeof a=="string"?a:a.id)}removeEdge(a){this.#e.edges.delete(a)}removeSubgraph(a){this.#e.subgraphs.delete(a)}createNode(a,c){const g=new this.#u.Node(a,c);return this.addNode(g),g}getSubgraph(a){return Array.from(this.#e.subgraphs.values()).find(c=>c.id===a)}getNode(a){return this.#e.nodes.get(a)}createEdge(a,c){const g=a.map(F=>t0(F)?n0(F):hu(F)),i=new this.#u.Edge(g,c);return this.addEdge(i),i}subgraph(...a){const c=a.find(u=>typeof u=="string"),g=a.find(u=>typeof u=="object"&&u!==null),i=a.find(u=>typeof u=="function"),F=c?this.getSubgraph(c)??this.createSubgraph(c):this.createSubgraph();return g!==void 0&&F.apply(g),i!==void 0&&i(F),F}node(a,...c){if(typeof a=="string"){const g=a,i=c.find(v=>typeof v=="object"&&v!==null),F=c.find(v=>typeof v=="function"),u=this.getNode(g)??this.createNode(g);return i!==void 0&&u.attributes.apply(i),F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.node.apply(a)}edge(a,...c){if(Array.isArray(a)){const g=a,i=c.find(v=>typeof v=="object"),F=c.find(v=>typeof v=="function"),u=this.createEdge(g,i);return F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.edge.apply(a)}graph(a){this.attributes.graph.apply(a)}}class Eu extends Cu{get $$type(){return"Graph"}id;strict;constructor(...a){super(),this.id=a.find(g=>typeof g=="string"),this.strict=a.find(g=>typeof g=="boolean")??!1;const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}}class i0 extends Eu{get directed(){return!0}}class vu extends Ee{comment}class a0 extends Ce{constructor(a,c){if(super(),this.targets=a,a.length<2&&(Z(a[0])&&Z(a[1]))===!1)throw Error("The element of Edge target is missing or not satisfied as Edge target.");this.attributes=new vu(c)}get $$type(){return"Edge"}comment;attributes}class o0 extends Eu{get directed(){return!1}}class f0 extends Ce{constructor(a,c){super(),this.id=a,this.attributes=new vu(c)}get $$type(){return"Node"}comment;attributes;port(a){return typeof a=="string"?{id:this.id,port:a}:{id:this.id,...a}}}class l0 extends Cu{get $$type(){return"Subgraph"}id;constructor(...a){super(),this.id=a.find(g=>typeof g=="string");const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}isSubgraphCluster(){return typeof this.id=="string"?this.id.startsWith("cluster"):!1}}function c0(){Object.assign(re,{Graph:o0,Digraph:i0,Subgraph:l0,Node:f0,Edge:a0})}class he{constructor(a){this.options=a}getLocation(){return this.options?.locationFunction?.()??null}createElement(a,c,g=[]){return{location:this.getLocation(),...c,type:a,children:g}}}he.prototype.createElement.bind(new he);function A0(l){return a=>l+a+l}const p0=l=>l.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/"/g,'\\"');e0(p0,A0('"'));const ve=function(){function l(i,F){function u(){this.constructor=i}u.prototype=F.prototype,i.prototype=new u}function a(i,F,u,v){var B=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(B,a.prototype),B.expected=F,B.found=u,B.location=v,B.name="SyntaxError",B}l(a,Error);function c(i,F,u){return u=u||" ",i.length>F?i:(F-=i.length,u+=u.repeat(F),i+u.slice(0,F))}a.prototype.format=function(i){var F="Error: "+this.message;if(this.location){var u=null,v;for(v=0;vc.reduce((i,F)=>F(i),a(...g))}function e0(l,...a){return Yt(l,...a)}const re=Object.seal({Graph:null,Digraph:null,Subgraph:null,Node:null,Edge:null});function Fu(l){return Object.assign(Object.seal(Object.assign({},re)),l)}function u0(l){return typeof l=="object"&&l!==null&&typeof l.id=="string"}function r0(l){return typeof l=="object"&&l!==null&&l.$$type==="Node"&&typeof l.id=="string"}function du(l){return r0(l)||u0(l)}function Z(l){return typeof l=="string"||du(l)}function t0(l){return Array.isArray(l)&&l.every(Z)}function s0(l){return["n","ne","e","se","s","sw","w","nw","c"].includes(l)}function hu(l){if(du(l))return l;const[a,c,g]=l.split(":");return s0(g)?{id:a,port:c,compass:g}:{id:a,port:c}}function n0(l){if(l.length<2&&(Z(l[0])&&Z(l[1]))===!1)throw Error("EdgeTargets must have at least 2 elements.");return l.map(a=>hu(a))}class Ce{}class Ee extends Ce{#u=new Map;constructor(a){super(),a!==void 0&&this.apply(a)}get values(){return Array.from(this.#u.entries())}get size(){return this.#u.size}get(a){return this.#u.get(a)}set(a,c){c!=null&&this.#u.set(a,c)}delete(a){this.#u.delete(a)}apply(a){const c=Array.isArray(a)?a:Object.entries(a);for(const[g,i]of c)this.set(g,i)}clear(){this.#u.clear()}}class de extends Ee{constructor(a,c){super(c),this.$$kind=a}get $$type(){return"AttributeList"}comment}class Cu extends Ee{#u=re;id;comment;attributes=Object.freeze({graph:new de("Graph"),edge:new de("Edge"),node:new de("Node")});get nodes(){return Array.from(this.#e.nodes.values())}get edges(){return Array.from(this.#e.edges.values())}get subgraphs(){return Array.from(this.#e.subgraphs.values())}#e={nodes:new Map,edges:new Set,subgraphs:new Set};with(a){this.#u=Fu(a)}addNode(a){this.#e.nodes.set(a.id,a)}addEdge(a){this.#e.edges.add(a)}addSubgraph(a){this.#e.subgraphs.add(a)}existNode(a){return this.#e.nodes.has(a)}existEdge(a){return this.#e.edges.has(a)}existSubgraph(a){return this.#e.subgraphs.has(a)}createSubgraph(...a){const c=new this.#u.Subgraph(...a);return c.with(this.#u),this.addSubgraph(c),c}removeNode(a){this.#e.nodes.delete(typeof a=="string"?a:a.id)}removeEdge(a){this.#e.edges.delete(a)}removeSubgraph(a){this.#e.subgraphs.delete(a)}createNode(a,c){const g=new this.#u.Node(a,c);return this.addNode(g),g}getSubgraph(a){return Array.from(this.#e.subgraphs.values()).find(c=>c.id===a)}getNode(a){return this.#e.nodes.get(a)}createEdge(a,c){const g=a.map(F=>t0(F)?n0(F):hu(F)),i=new this.#u.Edge(g,c);return this.addEdge(i),i}subgraph(...a){const c=a.find(u=>typeof u=="string"),g=a.find(u=>typeof u=="object"&&u!==null),i=a.find(u=>typeof u=="function"),F=c?this.getSubgraph(c)??this.createSubgraph(c):this.createSubgraph();return g!==void 0&&F.apply(g),i!==void 0&&i(F),F}node(a,...c){if(typeof a=="string"){const g=a,i=c.find(v=>typeof v=="object"&&v!==null),F=c.find(v=>typeof v=="function"),u=this.getNode(g)??this.createNode(g);return i!==void 0&&u.attributes.apply(i),F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.node.apply(a)}edge(a,...c){if(Array.isArray(a)){const g=a,i=c.find(v=>typeof v=="object"),F=c.find(v=>typeof v=="function"),u=this.createEdge(g,i);return F!==void 0&&F(u),u}typeof a=="object"&&a!==null&&this.attributes.edge.apply(a)}graph(a){this.attributes.graph.apply(a)}}class Eu extends Cu{get $$type(){return"Graph"}id;strict;constructor(...a){super(),this.id=a.find(g=>typeof g=="string"),this.strict=a.find(g=>typeof g=="boolean")??!1;const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}}class i0 extends Eu{get directed(){return!0}}class vu extends Ee{comment}class a0 extends Ce{constructor(a,c){if(super(),this.targets=a,a.length<2&&(Z(a[0])&&Z(a[1]))===!1)throw Error("The element of Edge target is missing or not satisfied as Edge target.");this.attributes=new vu(c)}get $$type(){return"Edge"}comment;attributes}class o0 extends Eu{get directed(){return!1}}class f0 extends Ce{constructor(a,c){super(),this.id=a,this.attributes=new vu(c)}get $$type(){return"Node"}comment;attributes;port(a){return typeof a=="string"?{id:this.id,port:a}:{id:this.id,...a}}}class l0 extends Cu{get $$type(){return"Subgraph"}id;constructor(...a){super(),this.id=a.find(g=>typeof g=="string");const c=a.find(g=>typeof g=="object"&&g!==null);c!==void 0&&this.apply(c)}isSubgraphCluster(){return typeof this.id=="string"?this.id.startsWith("cluster"):!1}}function c0(){Object.assign(re,{Graph:o0,Digraph:i0,Subgraph:l0,Node:f0,Edge:a0})}class he{constructor(a){this.options=a}getLocation(){return this.options?.locationFunction?.()??null}createElement(a,c,g=[]){return{location:this.getLocation(),...c,type:a,children:g}}}he.prototype.createElement.bind(new he);function A0(l){return a=>l+a+l}const p0=l=>l.replace(/\\/g,"\\\\").replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/"/g,'\\"');e0(p0,A0('"'));const ve=function(){function l(i,F){function u(){this.constructor=i}u.prototype=F.prototype,i.prototype=new u}function a(i,F,u,v){var B=Error.call(this,i);return Object.setPrototypeOf&&Object.setPrototypeOf(B,a.prototype),B.expected=F,B.found=u,B.location=v,B.name="SyntaxError",B}l(a,Error);function c(i,F,u){return u=u||" ",i.length>F?i:(F-=i.length,u+=u.repeat(F),i+u.slice(0,F))}a.prototype.format=function(i){var F="Error: "+this.message;if(this.location){var u=null,v;for(v=0;v `+S+` `+P+` | `+w.line+" | "+D+` diff --git a/_app/immutable/chunks/entry.WWhhMuPn.js b/_app/immutable/chunks/entry.BfJ0ncBH.js similarity index 99% rename from _app/immutable/chunks/entry.WWhhMuPn.js rename to _app/immutable/chunks/entry.BfJ0ncBH.js index 80dcc76..0e2dc8b 100644 --- a/_app/immutable/chunks/entry.WWhhMuPn.js +++ b/_app/immutable/chunks/entry.BfJ0ncBH.js @@ -1,3 +1,3 @@ -import{O as rt}from"./scheduler.BZf3Antt.js";import{w as pe}from"./index.DrtbdpeK.js";import{a as at,b as I}from"./paths.BILvqvyt.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ce({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(ge(e)),Ne(e,t));const F=new Map;function gt(e,t){const n=ge(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&F.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function _t(e,t,n){if(F.size>0){const r=ge(e,n),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(g=>parseInt(g,16))));const d=mt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:h,params:u}=yt(s),f={id:s,exec:p=>{const g=h.exec(p);if(g)return bt(g,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const kt="1725541329257",je="sveltekit:snapshot",De="sveltekit:scroll",$e="sveltekit:states",St="sveltekit:pageurl",O="sveltekit:history",G="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},B=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Re={...J,"":J.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function ue(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||ne(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===B&&e.hasAttribute("download");return{url:n,external:a,target:r,download:o}}function W(e){let t=null,n=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=x(s,"preload-code")),a===null&&(a=x(s,"preload-data")),t===null&&(t=x(s,"keepfocus")),n===null&&(n=x(s,"noscroll")),o===null&&(o=x(s,"reload")),i===null&&(i=x(s,"replacestate")),s=Ve(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Re[r??"off"],preload_data:Re[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Ie(e){const t=pe(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function At(){const{set:e,subscribe:t}=pe(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${at}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==kt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ne(e,t){return e.origin!==B||!e.pathname.startsWith(t)}const Rt=-1,It=-2,Lt=-3,Pt=-4,Tt=-5,Ut=-6;function xt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Rt)return;if(o===Lt)return NaN;if(o===Pt)return 1/0;if(o===Tt)return-1/0;if(o===Ut)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;ft!=null)}class re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const jt="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof me?e.status:500}function $t(e){return e instanceof me?e.text:"Internal Error"}const U=Oe(De)??{},M=Oe(je)??{},T={url:Ie({}),page:Ie({}),navigating:pe(null),updated:At()};function ye(e){U[e]=_e()}function Ct(e,t){let n=e+1;for(;U[n];)delete U[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function D(e){return location.href=e.href,new Promise(()=>{})}function Le(){}let ae,de,X,L,he,$;const Me=[],Z=[];let P=null;const He=[],Vt=[];let N=[],m={branch:[],error:null,url:null},we=!1,Q=!1,Pe=!0,H=!1,V=!1,Be=!1,ve=!1,be,v,A,S,ee;const q=new Set;async function Zt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,ae=Et(e),L=document.documentElement,he=t,de=e.nodes[0],X=e.nodes[1],de(),X(),v=history.state?.[O],A=history.state?.[G],v||(v=A=Date.now(),history.replaceState({...history.state,[O]:v,[G]:A},""));const r=U[v];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(he,n):Bt(location.href,{replaceState:!0}),Kt()}function Ft(){Me.length=0,ve=!1}function Ke(e){Z.some(t=>t?.snapshot)&&(M[e]=Z.map(t=>t?.snapshot?.capture()))}function Ye(e){M[e]?.forEach((t,n)=>{Z[n]?.snapshot?.restore(t)})}function Te(){ye(v),Ae(De,U),Ke(A),Ae(je,M)}async function Je(e,t,n,r){return Y({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ve=!0)}})}async function qt(e){if(e.id!==P?.id){const t={};q.add(t),P={id:e.id,token:t,promise:ze({...e,preload:t}).then(n=>(q.delete(t),n.type==="loaded"&&n.state.error&&(P=null),n))}}return P.promise}async function fe(e){const t=ae.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function We(e,t,n){m=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),S=e.props.page,be=new $.root({target:t,props:{...e.props,stores:T,components:Z},hydrate:n}),Ye(A);const a={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(a)),Q=!0}function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=ot(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ot(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,h=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:lt(n,()=>{s&&(c.url=!0)},u=>{s&&c.search_params.add(u)}),async fetch(u,f){let p;u instanceof Request?(p=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f}):p=u;const g=new URL(p,n);return s&&d(g.href),g.origin===n.origin&&(p=g.href.slice(n.origin.length)),Q?_t(p,g.href,f):gt(p,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Ue(e,t,n,r,a,o){if(ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==m.params[i])return!0;for(const i of a.dependencies)if(Me.some(s=>s(new URL(i))))return!0;return!1}function ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Gt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}function xe({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:S,constructors:[]}}}async function ze({id:e,invalidating:t,url:n,params:r,route:a,preload:o}){if(P?.id===e)return q.delete(P.token),P.promise;const{errors:i,layouts:s,leaf:c}=a,l=[...s,c];i.forEach(_=>_?.().catch(()=>{})),l.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const h=m.url?e!==m.url.pathname+m.url.search:!1,u=m.route?a.id!==m.route.id:!1,f=Gt(m.url,n);let p=!1;const g=l.map((_,y)=>{const k=m.branch[y],b=!!_?.[0]&&(k?.loader!==_[1]||Ue(p,u,h,f,k.server?.uses,r));return b&&(p=!0),b});if(g.some(Boolean)){try{d=await et(n,g)}catch(_){const y=await j(_,{url:n,params:r,route:{id:e}});return q.has(o)?xe({error:y,url:n,params:r,route:a}):oe({status:z(_),error:y,url:n,route:a})}if(d.type==="redirect")return d}const R=d?.nodes;let E=!1;const C=l.map(async(_,y)=>{if(!_)return;const k=m.branch[y],b=R?.[y];if((!b||b.type==="skip")&&_[1]===k?.loader&&!Ue(E,u,h,f,k.universal?.uses,r))return k;if(E=!0,b?.type==="error")throw b;return Ee({loader:_[1],url:n,params:r,route:a,parent:async()=>{const se={};for(let ie=0;ie{});const w=[];for(let _=0;_Promise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Se(e,t){if(!e||ne(e,I))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(o),url:e}}}function Xe(e){return st(e.slice(I.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const o=nt(m,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||He.forEach(s=>s(i)),a?null:o}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Le,block:d=Le}){const h=Se(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:h});if(!u){d();return}const f=v,p=A;l(),H=!0,Q&&T.navigating.set(u.navigation),ee=c;let g=h&&await ze(h);if(!g){if(ne(t,I))return await D(t);g=await Qe(t,{id:null},await j(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=h?.url||t,ee!==c)return u.reject(new Error("navigation aborted")),!1;if(g.type==="redirect")if(s>=20)g=await oe({status:500,error:await j(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Je(new URL(g.location,t).href,{},s+1,c),!1;else g.props.page.status>=400&&await T.updated.check()&&await D(t);if(Ft(),ye(f),Ke(p),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),i=n?n.state:i,!n){const w=o?0:1,_={[O]:v+=w,[G]:A+=w,[$e]:i};(o?history.replaceState:history.pushState).call(history,_,"",t),o||Ct(v,A)}if(P=null,g.props.page.state=i,Q){m=g.state,g.props.page&&(g.props.page.url=t);const w=(await Promise.all(Vt.map(_=>_(u.navigation)))).filter(_=>typeof _=="function");if(w.length>0){let _=function(){N=N.filter(y=>!w.includes(y))};w.push(_),N.push(...w)}be.$set(g.props),Be=!0}else We(g,he,!1);const{activeElement:R}=document;await rt();const E=n?n.scroll:a?_e():null;if(Pe){const w=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):w?w.scrollIntoView():scrollTo(0,0)}const C=document.activeElement!==R&&document.activeElement!==document.body;!r&&!C&&Jt(),Pe=!0,g.props.page&&(S=g.props.page),H=!1,e==="popstate"&&Ye(A),u.fulfil(void 0),N.forEach(w=>w(u.navigation)),T.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===B&&e.pathname===location.pathname&&!we?await oe({status:r,error:n,url:e,route:t}):await D(e)}function Ht(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Fe(o,L);if(!s)return;const{url:c,external:l,download:d}=ue(s,I);if(l||d)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const u=Se(c,!1);u&&qt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&n.observe(o),l.preload_code===J.eager&&fe(i.pathname))}}N.push(a),a()}function j(e,t){if(e instanceof re)return e.body;const n=z(e),r=$t(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bt(e,t={}){return e=Ce(e),e.origin!==B?Promise.reject(new Error("goto: invalid URL")):Je(e,t,0)}function Kt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Te(),!H){const r=nt(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(o=>o(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),navigator.connection?.saveData||Ht(),L.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],L);if(!n)return;const{url:r,external:a,target:o,download:i}=ue(n,I);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=W(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||s.reload){Ze({url:r,type:"link"})?H=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===ce(location)){const[,h]=m.url.href.split("#");if(h===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(V=!0,ye(v),e(r),!s.replace_state)return;V=!1}t.preventDefault(),await new Promise(h=>{requestAnimationFrame(()=>{setTimeout(h,0)}),setTimeout(h,100)}),Y({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ne(o,I))return;const i=t.target,s=W(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),Y({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[O]){const n=t.state[O];if(ee={},n===v)return;const r=U[n],a=t.state[$e]??{},o=new URL(t.state[St]??location.href),i=t.state[G],s=ce(location)===ce(m.url);if(i===A&&(Be||s)){e(o),U[v]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},be.$set({page:S})),v=n;return}const l=n-v;await Y({type:"popstate",url:o,popped:{state:a,scroll:r,delta:l},accept:()=>{v=n,A=i},block:()=>{history.go(-l)},nav_token:ee})}else if(!V){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[O]:++v,[G]:A},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&T.navigating.set(null)});function e(t){m.url=t,T.page.set({...S,url:t}),T.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let l;try{const d=r.map(async(f,p)=>{const g=i[p];return g?.uses&&(g.uses=tt(g.uses)),Ee({loader:$.nodes[f],url:c,params:a,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let p=0;pa?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new re(r.status,a)}return new Promise(async a=>{const o=new Map,i=r.body.getReader(),s=new TextDecoder;function c(d){return xt(d,{Promise:h=>new Promise((u,f)=>{o.set(h,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:h}=await i.read();if(d&&!l)break;for(l+=!h&&l?` +import{O as rt}from"./scheduler.BZf3Antt.js";import{w as pe}from"./index.DrtbdpeK.js";import{a as at,b as I}from"./paths.CFq_Q8H9.js";new URL("sveltekit-internal://");function ot(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function st(e){return e.split("%25").map(decodeURI).join("%25")}function it(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function ce({href:e}){return e.split("#")[0]}const ct=["href","pathname","search","toString","toJSON"];function lt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of ct)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const ft="/__data.json",ut=".html__data.json";function dt(e){return e.endsWith(".html")?e.replace(/\.html$/,ut):e.replace(/\/$/,"")+ft}function ht(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function pt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&F.delete(ge(e)),Ne(e,t));const F=new Map;function gt(e,t){const n=ge(e,t),r=document.querySelector(n);if(r?.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&F.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=pt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function _t(e,t,n){if(F.size>0){const r=ge(e,n),a=F.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return le(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return le(String.fromCharCode(...c.slice(2).split("-").map(g=>parseInt(g,16))));const d=mt.exec(c),[,h,u,f,p]=d;return t.push({name:f,matcher:p,optional:!!h,rest:!!u,chained:u?l===1&&i[0]==="":!1}),u?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return le(c)}).join("")}).join("")}/?$`),params:t}}function wt(e){return!/^\([^)]+\)$/.test(e)}function vt(e){return e.slice(1).split("/").filter(wt)}function bt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;sd).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const d=t[s+1],h=a[s+1];d&&!d.rest&&d.optional&&h&&c.chained&&(i=0),!d&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function le(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Et({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,d]])=>{const{pattern:h,params:u}=yt(s),f={id:s,exec:p=>{const g=h.exec(p);if(g)return bt(g,u,r)},errors:[1,...d||[]].map(p=>e[p]),layouts:[0,...l||[]].map(i),leaf:o(c)};return f.errors.length=f.layouts.length=Math.max(f.errors.length,f.layouts.length),f});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function Oe(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Ae(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const kt="1725541608307",je="sveltekit:snapshot",De="sveltekit:scroll",$e="sveltekit:states",St="sveltekit:pageurl",O="sveltekit:history",G="sveltekit:navigation",J={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},B=location.origin;function Ce(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function _e(){return{x:pageXOffset,y:pageYOffset}}function x(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const Re={...J,"":J.hover};function Ve(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function Fe(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=Ve(e)}}function ue(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,a=!n||!!r||ne(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),o=n?.origin===B&&e.hasAttribute("download");return{url:n,external:a,target:r,download:o}}function W(e){let t=null,n=null,r=null,a=null,o=null,i=null,s=e;for(;s&&s!==document.documentElement;)r===null&&(r=x(s,"preload-code")),a===null&&(a=x(s,"preload-data")),t===null&&(t=x(s,"keepfocus")),n===null&&(n=x(s,"noscroll")),o===null&&(o=x(s,"reload")),i===null&&(i=x(s,"replacestate")),s=Ve(s);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:Re[r??"off"],preload_data:Re[a??"off"],keepfocus:c(t),noscroll:c(n),reload:c(o),replace_state:c(i)}}function Ie(e){const t=pe(e);let n=!0;function r(){n=!0,t.update(i=>i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function At(){const{set:e,subscribe:t}=pe(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${at}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==kt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function ne(e,t){return e.origin!==B||!e.pathname.startsWith(t)}const Rt=-1,It=-2,Lt=-3,Pt=-4,Tt=-5,Ut=-6;function xt(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Rt)return;if(o===Lt)return NaN;if(o===Pt)return 1/0;if(o===Tt)return-1/0;if(o===Ut)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t?.[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const d=new Set;r[o]=d;for(let f=1;ft!=null)}class re{constructor(t,n){this.status=t,typeof n=="string"?this.body={message:n}:n?this.body=n:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class Ge{constructor(t,n){this.status=t,this.location=n}}class me extends Error{constructor(t,n,r){super(r),this.status=t,this.text=n}}const jt="x-sveltekit-invalidated",Dt="x-sveltekit-trailing-slash";function z(e){return e instanceof re||e instanceof me?e.status:500}function $t(e){return e instanceof me?e.text:"Internal Error"}const U=Oe(De)??{},M=Oe(je)??{},T={url:Ie({}),page:Ie({}),navigating:pe(null),updated:At()};function ye(e){U[e]=_e()}function Ct(e,t){let n=e+1;for(;U[n];)delete U[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function D(e){return location.href=e.href,new Promise(()=>{})}function Le(){}let ae,de,X,L,he,$;const Me=[],Z=[];let P=null;const He=[],Vt=[];let N=[],m={branch:[],error:null,url:null},we=!1,Q=!1,Pe=!0,H=!1,V=!1,Be=!1,ve=!1,be,v,A,S,ee;const q=new Set;async function Zt(e,t,n){document.URL!==location.href&&(location.href=location.href),$=e,ae=Et(e),L=document.documentElement,he=t,de=e.nodes[0],X=e.nodes[1],de(),X(),v=history.state?.[O],A=history.state?.[G],v||(v=A=Date.now(),history.replaceState({...history.state,[O]:v,[G]:A},""));const r=U[v];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await Yt(he,n):Bt(location.href,{replaceState:!0}),Kt()}function Ft(){Me.length=0,ve=!1}function Ke(e){Z.some(t=>t?.snapshot)&&(M[e]=Z.map(t=>t?.snapshot?.capture()))}function Ye(e){M[e]?.forEach((t,n)=>{Z[n]?.snapshot?.restore(t)})}function Te(){ye(v),Ae(De,U),Ke(A),Ae(je,M)}async function Je(e,t,n,r){return Y({type:"goto",url:Ce(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(ve=!0)}})}async function qt(e){if(e.id!==P?.id){const t={};q.add(t),P={id:e.id,token:t,promise:ze({...e,preload:t}).then(n=>(q.delete(t),n.type==="loaded"&&n.state.error&&(P=null),n))}}return P.promise}async function fe(e){const t=ae.find(n=>n.exec(Xe(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n?.[1]()))}function We(e,t,n){m=e.state;const r=document.querySelector("style[data-sveltekit]");r&&r.remove(),S=e.props.page,be=new $.root({target:t,props:{...e.props,stores:T,components:Z},hydrate:n}),Ye(A);const a={from:null,to:{params:m.params,route:{id:m.route?.id??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(a)),Q=!0}function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const f of n)f?.slash!==void 0&&(s=f.slash);e.pathname=ot(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Ot(n).map(f=>f.node.component),page:S}};i!==void 0&&(c.props.form=i);let l={},d=!S,h=0;for(let f=0;f(s&&(c.route=!0),u[f])}),params:new Proxy(r,{get:(u,f)=>(s&&c.params.add(f),u[f])}),data:o?.data??null,url:lt(n,()=>{s&&(c.url=!0)},u=>{s&&c.search_params.add(u)}),async fetch(u,f){let p;u instanceof Request?(p=u.url,f={body:u.method==="GET"||u.method==="HEAD"?void 0:await u.blob(),cache:u.cache,credentials:u.credentials,headers:u.headers,integrity:u.integrity,keepalive:u.keepalive,method:u.method,mode:u.mode,redirect:u.redirect,referrer:u.referrer,referrerPolicy:u.referrerPolicy,signal:u.signal,...f}):p=u;const g=new URL(p,n);return s&&d(g.href),g.origin===n.origin&&(p=g.href.slice(n.origin.length)),Q?_t(p,g.href,f):gt(p,f)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(u){s=!1;try{return u()}finally{s=!0}}};i=await l.universal.load.call(null,h)??null}return{node:l,loader:e,server:o,universal:l.universal?.load?{type:"data",data:i,uses:c}:null,data:i??o?.data??null,slash:l.universal?.trailingSlash??o?.slash}}function Ue(e,t,n,r,a,o){if(ve)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==m.params[i])return!0;for(const i of a.dependencies)if(Me.some(s=>s(new URL(i))))return!0;return!1}function ke(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function Gt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}function xe({error:e,url:t,route:n,params:r}){return{type:"loaded",state:{error:e,url:t,route:n,params:r,branch:[]},props:{page:S,constructors:[]}}}async function ze({id:e,invalidating:t,url:n,params:r,route:a,preload:o}){if(P?.id===e)return q.delete(P.token),P.promise;const{errors:i,layouts:s,leaf:c}=a,l=[...s,c];i.forEach(_=>_?.().catch(()=>{})),l.forEach(_=>_?.[1]().catch(()=>{}));let d=null;const h=m.url?e!==m.url.pathname+m.url.search:!1,u=m.route?a.id!==m.route.id:!1,f=Gt(m.url,n);let p=!1;const g=l.map((_,y)=>{const k=m.branch[y],b=!!_?.[0]&&(k?.loader!==_[1]||Ue(p,u,h,f,k.server?.uses,r));return b&&(p=!0),b});if(g.some(Boolean)){try{d=await et(n,g)}catch(_){const y=await j(_,{url:n,params:r,route:{id:e}});return q.has(o)?xe({error:y,url:n,params:r,route:a}):oe({status:z(_),error:y,url:n,route:a})}if(d.type==="redirect")return d}const R=d?.nodes;let E=!1;const C=l.map(async(_,y)=>{if(!_)return;const k=m.branch[y],b=R?.[y];if((!b||b.type==="skip")&&_[1]===k?.loader&&!Ue(E,u,h,f,k.universal?.uses,r))return k;if(E=!0,b?.type==="error")throw b;return Ee({loader:_[1],url:n,params:r,route:a,parent:async()=>{const se={};for(let ie=0;ie{});const w=[];for(let _=0;_Promise.resolve({}),server_data_node:ke(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Se(e,t){if(!e||ne(e,I))return;let n;try{n=$.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Xe(n);for(const a of ae){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:it(o),url:e}}}function Xe(e){return st(e.slice(I.length)||"/")}function Ze({url:e,type:t,intent:n,delta:r}){let a=!1;const o=nt(m,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||He.forEach(s=>s(i)),a?null:o}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=Le,block:d=Le}){const h=Se(t,!1),u=Ze({url:t,type:e,delta:n?.delta,intent:h});if(!u){d();return}const f=v,p=A;l(),H=!0,Q&&T.navigating.set(u.navigation),ee=c;let g=h&&await ze(h);if(!g){if(ne(t,I))return await D(t);g=await Qe(t,{id:null},await j(new me(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=h?.url||t,ee!==c)return u.reject(new Error("navigation aborted")),!1;if(g.type==="redirect")if(s>=20)g=await oe({status:500,error:await j(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return Je(new URL(g.location,t).href,{},s+1,c),!1;else g.props.page.status>=400&&await T.updated.check()&&await D(t);if(Ft(),ye(f),Ke(p),g.props.page.url.pathname!==t.pathname&&(t.pathname=g.props.page.url.pathname),i=n?n.state:i,!n){const w=o?0:1,_={[O]:v+=w,[G]:A+=w,[$e]:i};(o?history.replaceState:history.pushState).call(history,_,"",t),o||Ct(v,A)}if(P=null,g.props.page.state=i,Q){m=g.state,g.props.page&&(g.props.page.url=t);const w=(await Promise.all(Vt.map(_=>_(u.navigation)))).filter(_=>typeof _=="function");if(w.length>0){let _=function(){N=N.filter(y=>!w.includes(y))};w.push(_),N.push(...w)}be.$set(g.props),Be=!0}else We(g,he,!1);const{activeElement:R}=document;await rt();const E=n?n.scroll:a?_e():null;if(Pe){const w=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));E?scrollTo(E.x,E.y):w?w.scrollIntoView():scrollTo(0,0)}const C=document.activeElement!==R&&document.activeElement!==document.body;!r&&!C&&Jt(),Pe=!0,g.props.page&&(S=g.props.page),H=!1,e==="popstate"&&Ye(A),u.fulfil(void 0),N.forEach(w=>w(u.navigation)),T.navigating.set(null)}async function Qe(e,t,n,r){return e.origin===B&&e.pathname===location.pathname&&!we?await oe({status:r,error:n,url:e,route:t}):await D(e)}function Ht(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(fe(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Fe(o,L);if(!s)return;const{url:c,external:l,download:d}=ue(s,I);if(l||d)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const u=Se(c,!1);u&&qt(u)}else i<=h.preload_code&&fe(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=ue(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===J.viewport&&n.observe(o),l.preload_code===J.eager&&fe(i.pathname))}}N.push(a),a()}function j(e,t){if(e instanceof re)return e.body;const n=z(e),r=$t(e);return $.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function Bt(e,t={}){return e=Ce(e),e.origin!==B?Promise.reject(new Error("goto: invalid URL")):Je(e,t,0)}function Kt(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let n=!1;if(Te(),!H){const r=nt(m,void 0,null,"leave"),a={...r.navigation,cancel:()=>{n=!0,r.reject(new Error("navigation cancelled"))}};He.forEach(o=>o(a))}n?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),navigator.connection?.saveData||Ht(),L.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const n=Fe(t.composedPath()[0],L);if(!n)return;const{url:r,external:a,target:o,download:i}=ue(n,I);if(!r)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const s=W(n);if(!(n instanceof SVGAElement)&&r.protocol!==location.protocol&&!(r.protocol==="https:"||r.protocol==="http:")||i)return;if(a||s.reload){Ze({url:r,type:"link"})?H=!0:t.preventDefault();return}const[l,d]=r.href.split("#");if(d!==void 0&&l===ce(location)){const[,h]=m.url.href.split("#");if(h===d){t.preventDefault(),d===""||d==="top"&&n.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):n.ownerDocument.getElementById(d)?.scrollIntoView();return}if(V=!0,ye(v),e(r),!s.replace_state)return;V=!1}t.preventDefault(),await new Promise(h=>{requestAnimationFrame(()=>{setTimeout(h,0)}),setTimeout(h,100)}),Y({type:"link",url:r,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??r.href===location.href})}),L.addEventListener("submit",t=>{if(t.defaultPrevented)return;const n=HTMLFormElement.prototype.cloneNode.call(t.target),r=t.submitter;if((r?.formMethod||n.method)!=="get")return;const o=new URL(r?.hasAttribute("formaction")&&r?.formAction||n.action);if(ne(o,I))return;const i=t.target,s=W(i);if(s.reload)return;t.preventDefault(),t.stopPropagation();const c=new FormData(i),l=r?.getAttribute("name");l&&c.append(l,r?.getAttribute("value")??""),o.search=new URLSearchParams(c).toString(),Y({type:"form",url:o,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??o.href===location.href})}),addEventListener("popstate",async t=>{if(t.state?.[O]){const n=t.state[O];if(ee={},n===v)return;const r=U[n],a=t.state[$e]??{},o=new URL(t.state[St]??location.href),i=t.state[G],s=ce(location)===ce(m.url);if(i===A&&(Be||s)){e(o),U[v]=_e(),r&&scrollTo(r.x,r.y),a!==S.state&&(S={...S,state:a},be.$set({page:S})),v=n;return}const l=n-v;await Y({type:"popstate",url:o,popped:{state:a,scroll:r,delta:l},accept:()=>{v=n,A=i},block:()=>{history.go(-l)},nav_token:ee})}else if(!V){const n=new URL(location.href);e(n)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[O]:++v,[G]:A},"",location.href))});for(const t of document.querySelectorAll("link"))t.rel==="icon"&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&T.navigating.set(null)});function e(t){m.url=t,T.page.set({...S,url:t}),T.page.notify()}}async function Yt(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){we=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let l;try{const d=r.map(async(f,p)=>{const g=i[p];return g?.uses&&(g.uses=tt(g.uses)),Ee({loader:$.nodes[f],url:c,params:a,route:o,parent:async()=>{const R={};for(let E=0;Ef===o.id);if(u){const f=u.layouts;for(let p=0;pa?"1":"0").join(""));const r=await Ne(n.href);if(!r.ok){let a;throw r.headers.get("content-type")?.includes("application/json")?a=await r.json():r.status===404?a="Not Found":r.status===500&&(a="Internal Error"),new re(r.status,a)}return new Promise(async a=>{const o=new Map,i=r.body.getReader(),s=new TextDecoder;function c(d){return xt(d,{Promise:h=>new Promise((u,f)=>{o.set(h,{fulfil:u,reject:f})})})}let l="";for(;;){const{done:d,value:h}=await i.read();if(d&&!l)break;for(l+=!h&&l?` `:s.decode(h,{stream:!0});;){const u=l.indexOf(` `);if(u===-1)break;const f=JSON.parse(l.slice(0,u));if(l=l.slice(u+1),f.type==="redirect")return a(f);if(f.type==="data")f.nodes?.forEach(p=>{p?.type==="data"&&(p.uses=tt(p.uses),p.data=c(p.data))}),a(f);else if(f.type==="chunk"){const{id:p,data:g,error:R}=f,E=o.get(p);o.delete(p),R?E.reject(c(R)):E.fulfil(c(g))}}}})}function tt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}function Jt(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=c,o=l});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url},to:n&&{params:t?.params??null,route:{id:t?.route?.id??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:o}}export{Zt as a,Bt as g,T as s}; diff --git a/_app/immutable/chunks/index.Dkpp2DVH.js b/_app/immutable/chunks/index.BeFZgILa.js similarity index 99% rename from _app/immutable/chunks/index.Dkpp2DVH.js rename to _app/immutable/chunks/index.BeFZgILa.js index 6731ceb..08ac492 100644 --- a/_app/immutable/chunks/index.Dkpp2DVH.js +++ b/_app/immutable/chunks/index.BeFZgILa.js @@ -1 +1 @@ -import{d as commonjsGlobal,g as getDefaultExportFromCjs,V as VStack,H as HStack,T as Text,e as Tooltip,a as Node,c as colors,N as Network}from"./viewer.VKJlf1_4.js";import"./index.C7bWdOrd.js";var indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(u,i){for(var e=new Array(arguments.length-1),t=0,r=2,n=!0;r1&&l.charAt(a)==="=";)++f;return Math.ceil(l.length*3)/4-f};for(var e=new Array(64),t=new Array(123),r=0;r<64;)t[e[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i.encode=function(l,a,f){for(var d=null,p=[],c=0,h=0,y;a>2],y=(s&3)<<4,h=1;break;case 1:p[c++]=e[y|s>>4],y=(s&15)<<2,h=2;break;case 2:p[c++]=e[y|s>>6],p[c++]=e[s&63],h=0;break}c>8191&&((d||(d=[])).push(String.fromCharCode.apply(String,p)),c=0)}return h&&(p[c++]=e[y],p[c++]=61,h===1&&(p[c++]=61)),d?(c&&d.push(String.fromCharCode.apply(String,p.slice(0,c))),d.join("")):String.fromCharCode.apply(String,p.slice(0,c))};var n="invalid encoding";i.decode=function(l,a,f){for(var d=f,p=0,c,h=0;h1)break;if((y=t[y])===void 0)throw Error(n);switch(p){case 0:c=y,p=1;break;case 1:a[f++]=c<<2|(y&48)>>4,c=y,p=2;break;case 2:a[f++]=(c&15)<<4|(y&60)>>2,c=y,p=3;break;case 3:a[f++]=(c&3)<<6|y,p=0;break}}if(p===1)throw Error(n);return f-d},i.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(i,e,t){return(this._listeners[i]||(this._listeners[i]=[])).push({fn:e,ctx:t||this}),this};EventEmitter.prototype.off=function(i,e){if(i===void 0)this._listeners={};else if(e===void 0)this._listeners[i]=[];else for(var t=this._listeners[i],r=0;r0?0:2147483648,n,o);else if(isNaN(r))t(2143289344,n,o);else if(r>34028234663852886e22)t((l<<31|2139095040)>>>0,n,o);else if(r<11754943508222875e-54)t((l<<31|Math.round(r/1401298464324817e-60))>>>0,n,o);else{var a=Math.floor(Math.log(r)/Math.LN2),f=Math.round(r*Math.pow(2,-a)*8388608)&8388607;t((l<<31|a+127<<23|f)>>>0,n,o)}}u.writeFloatLE=i.bind(null,writeUintLE),u.writeFloatBE=i.bind(null,writeUintBE);function e(t,r,n){var o=t(r,n),l=(o>>31)*2+1,a=o>>>23&255,f=o&8388607;return a===255?f?NaN:l*(1/0):a===0?l*1401298464324817e-60*f:l*Math.pow(2,a-150)*(f+8388608)}u.readFloatLE=e.bind(null,readUintLE),u.readFloatBE=e.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var i=new Float64Array([-0]),e=new Uint8Array(i.buffer),t=e[7]===128;function r(a,f,d){i[0]=a,f[d]=e[0],f[d+1]=e[1],f[d+2]=e[2],f[d+3]=e[3],f[d+4]=e[4],f[d+5]=e[5],f[d+6]=e[6],f[d+7]=e[7]}function n(a,f,d){i[0]=a,f[d]=e[7],f[d+1]=e[6],f[d+2]=e[5],f[d+3]=e[4],f[d+4]=e[3],f[d+5]=e[2],f[d+6]=e[1],f[d+7]=e[0]}u.writeDoubleLE=t?r:n,u.writeDoubleBE=t?n:r;function o(a,f){return e[0]=a[f],e[1]=a[f+1],e[2]=a[f+2],e[3]=a[f+3],e[4]=a[f+4],e[5]=a[f+5],e[6]=a[f+6],e[7]=a[f+7],i[0]}function l(a,f){return e[7]=a[f],e[6]=a[f+1],e[5]=a[f+2],e[4]=a[f+3],e[3]=a[f+4],e[2]=a[f+5],e[1]=a[f+6],e[0]=a[f+7],i[0]}u.readDoubleLE=t?o:l,u.readDoubleBE=t?l:o}():function(){function i(t,r,n,o,l,a){var f=o<0?1:0;if(f&&(o=-o),o===0)t(0,l,a+r),t(1/o>0?0:2147483648,l,a+n);else if(isNaN(o))t(0,l,a+r),t(2146959360,l,a+n);else if(o>17976931348623157e292)t(0,l,a+r),t((f<<31|2146435072)>>>0,l,a+n);else{var d;if(o<22250738585072014e-324)d=o/5e-324,t(d>>>0,l,a+r),t((f<<31|d/4294967296)>>>0,l,a+n);else{var p=Math.floor(Math.log(o)/Math.LN2);p===1024&&(p=1023),d=o*Math.pow(2,-p),t(d*4503599627370496>>>0,l,a+r),t((f<<31|p+1023<<20|d*1048576&1048575)>>>0,l,a+n)}}}u.writeDoubleLE=i.bind(null,writeUintLE,0,4),u.writeDoubleBE=i.bind(null,writeUintBE,4,0);function e(t,r,n,o,l){var a=t(o,l+r),f=t(o,l+n),d=(f>>31)*2+1,p=f>>>20&2047,c=4294967296*(f&1048575)+a;return p===2047?c?NaN:d*(1/0):p===0?d*5e-324*c:d*Math.pow(2,p-1075)*(c+4503599627370496)}u.readDoubleLE=e.bind(null,readUintLE,0,4),u.readDoubleBE=e.bind(null,readUintBE,4,0)}(),u}function writeUintLE(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}function writeUintBE(u,i,e){i[e]=u>>>24,i[e+1]=u>>>16&255,i[e+2]=u>>>8&255,i[e+3]=u&255}function readUintLE(u,i){return(u[i]|u[i+1]<<8|u[i+2]<<16|u[i+3]<<24)>>>0}function readUintBE(u,i){return(u[i]<<24|u[i+1]<<16|u[i+2]<<8|u[i+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(u){}return null}var utf8$2={};(function(u){var i=u;i.length=function(t){for(var r=0,n=0,o=0;o191&&d<224?a[f++]=(d&31)<<6|t[r++]&63:d>239&&d<365?(d=((d&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,a[f++]=55296+(d>>10),a[f++]=56320+(d&1023)):a[f++]=(d&15)<<12|(t[r++]&63)<<6|t[r++]&63,f>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,a)),f=0);return l?(f&&l.push(String.fromCharCode.apply(String,a.slice(0,f))),l.join("")):String.fromCharCode.apply(String,a.slice(0,f))},i.write=function(t,r,n){for(var o=n,l,a,f=0;f>6|192,r[n++]=l&63|128):(l&64512)===55296&&((a=t.charCodeAt(f+1))&64512)===56320?(l=65536+((l&1023)<<10)+(a&1023),++f,r[n++]=l>>18|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128,r[n++]=l&63|128):(r[n++]=l>>12|224,r[n++]=l>>6&63|128,r[n++]=l&63|128);return n-o}})(utf8$2);var pool_1=pool;function pool(u,i,e){var t=e||8192,r=t>>>1,n=null,o=t;return function(a){if(a<1||a>r)return u(a);o+a>t&&(n=u(t),o=0);var f=i.call(n,o,o+=a);return o&7&&(o=(o|7)+1),f}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var u=requireMinimal();function i(n,o){this.lo=n>>>0,this.hi=o>>>0}var e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(o){if(o===0)return e;var l=o<0;l&&(o=-o);var a=o>>>0,f=(o-a)/4294967296>>>0;return l&&(f=~f>>>0,a=~a>>>0,++a>4294967295&&(a=0,++f>4294967295&&(f=0))),new i(a,f)},i.from=function(o){if(typeof o=="number")return i.fromNumber(o);if(u.isString(o))if(u.Long)o=u.Long.fromString(o);else return i.fromNumber(parseInt(o,10));return o.low||o.high?new i(o.low>>>0,o.high>>>0):e},i.prototype.toNumber=function(o){if(!o&&this.hi>>>31){var l=~this.lo+1>>>0,a=~this.hi>>>0;return l||(a=a+1>>>0),-(l+a*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(o){return u.Long?new u.Long(this.lo|0,this.hi|0,!!o):{low:this.lo|0,high:this.hi|0,unsigned:!!o}};var r=String.prototype.charCodeAt;return i.fromHash=function(o){return o===t?e:new i((r.call(o,0)|r.call(o,1)<<8|r.call(o,2)<<16|r.call(o,3)<<24)>>>0,(r.call(o,4)|r.call(o,5)<<8|r.call(o,6)<<16|r.call(o,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var o=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^o)>>>0,this.lo=(this.lo<<1^o)>>>0,this},i.prototype.zzDecode=function(){var o=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^o)>>>0,this.hi=(this.hi>>>1^o)>>>0,this},i.prototype.length=function(){var o=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,a=this.hi>>>24;return a===0?l===0?o<16384?o<128?1:2:o<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:a<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(u){var i=u;i.asPromise=aspromise,i.base64=base64$1,i.EventEmitter=eventemitter,i.float=float,i.inquire=inquire_1,i.utf8=utf8$2,i.pool=pool_1,i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},i.isString=function(n){return typeof n=="string"||n instanceof String},i.isObject=function(n){return n&&typeof n=="object"},i.isset=i.isSet=function(n,o){var l=n[o];return l!=null&&n.hasOwnProperty(o)?typeof l!="object"||(Array.isArray(l)?l.length:Object.keys(l).length)>0:!1},i.Buffer=function(){try{var r=i.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(n){return typeof n=="number"?i.Buffer?i._Buffer_allocUnsafe(n):new i.Array(n):i.Buffer?i._Buffer_from(n):typeof Uint8Array>"u"?n:new Uint8Array(n)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(n){return n?i.LongBits.from(n).toHash():i.LongBits.zeroHash},i.longFromHash=function(n,o){var l=i.LongBits.fromHash(n);return i.Long?i.Long.fromBits(l.lo,l.hi,o):l.toNumber(!!o)};function e(r,n,o){for(var l=Object.keys(n),a=0;a-1;--f)if(o[a[f]]===1&&this[a[f]]!==void 0&&this[a[f]]!==null)return a[f]}},i.oneOfSetter=function(n){return function(o){for(var l=0;l127;)i[e++]=u&127|128,u>>>=7;i[e]=u}function VarintOp(u,i){this.len=u,this.next=void 0,this.val=i}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function u(i){return this.len+=(this.tail=this.tail.next=new VarintOp((i=i>>>0)<128?1:i<16384?2:i<2097152?3:i<268435456?4:5,i)).len,this};Writer$1.prototype.int32=function u(i){return i<0?this._push(writeVarint64,10,LongBits$1.fromNumber(i)):this.uint32(i)};Writer$1.prototype.sint32=function u(i){return this.uint32((i<<1^i>>31)>>>0)};function writeVarint64(u,i,e){for(;u.hi;)i[e++]=u.lo&127|128,u.lo=(u.lo>>>7|u.hi<<25)>>>0,u.hi>>>=7;for(;u.lo>127;)i[e++]=u.lo&127|128,u.lo=u.lo>>>7;i[e++]=u.lo}Writer$1.prototype.uint64=function u(i){var e=LongBits$1.from(i);return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function u(i){var e=LongBits$1.from(i).zzEncode();return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.bool=function u(i){return this._push(writeByte,1,i?1:0)};function writeFixed32(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}Writer$1.prototype.fixed32=function u(i){return this._push(writeFixed32,4,i>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function u(i){var e=LongBits$1.from(i);return this._push(writeFixed32,4,e.lo)._push(writeFixed32,4,e.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function u(i){return this._push(util$4.float.writeFloatLE,4,i)};Writer$1.prototype.double=function u(i){return this._push(util$4.float.writeDoubleLE,8,i)};var writeBytes=util$4.Array.prototype.set?function u(i,e,t){e.set(i,t)}:function u(i,e,t){for(var r=0;r>>0;if(!e)return this._push(writeByte,1,0);if(util$4.isString(i)){var t=Writer$1.alloc(e=base64.length(i));base64.decode(i,t,0),i=t}return this.uint32(e)._push(writeBytes,e,i)};Writer$1.prototype.string=function u(i){var e=utf8$1.length(i);return e?this.uint32(e)._push(utf8$1.write,e,i):this._push(writeByte,1,0)};Writer$1.prototype.fork=function u(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function u(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function u(){var i=this.head,e=this.tail,t=this.len;return this.reset().uint32(t),t&&(this.tail.next=i.next,this.tail=e,this.len+=t),this};Writer$1.prototype.finish=function u(){for(var i=this.head.next,e=this.constructor.alloc(this.len),t=0;i;)i.fn(i.val,e,t),t+=i.len,i=i.next;return e};Writer$1._configure=function(u){BufferWriter$1=u,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(i,e,t){e.set(i,t)}:function(i,e,t){if(i.copy)i.copy(e,t,0,i.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(BufferWriter.writeBytesBuffer,e,i),this};function writeStringBuffer(u,i,e){u.length<40?util$3.utf8.write(u,i,e):i.utf8Write?i.utf8Write(u,e):i.write(u,e)}BufferWriter.prototype.string=function u(i){var e=util$3.Buffer.byteLength(i);return this.uint32(e),e&&this._push(writeStringBuffer,e,i),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(u,i){return RangeError("index out of range: "+u.pos+" + "+(i||1)+" > "+u.len)}function Reader$1(u){this.buf=u,this.pos=0,this.len=u.length}var create_array=typeof Uint8Array<"u"?function u(i){if(i instanceof Uint8Array||Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")}:function u(i){if(Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")},create=function u(){return util$2.Buffer?function(e){return(Reader$1.create=function(r){return util$2.Buffer.isBuffer(r)?new BufferReader$1(r):create_array(r)})(e)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function u(){var i=4294967295;return function(){if(i=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(i=(i|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return i;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return i}}();Reader$1.prototype.int32=function u(){return this.uint32()|0};Reader$1.prototype.sint32=function u(){var i=this.uint32();return i>>>1^-(i&1)|0};function readLongVarint(){var u=new LongBits(0,0),i=0;if(this.len-this.pos>4){for(;i<4;++i)if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u;if(u.lo=(u.lo|(this.buf[this.pos]&127)<<28)>>>0,u.hi=(u.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return u;i=0}else{for(;i<3;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}return u.lo=(u.lo|(this.buf[this.pos++]&127)<>>0,u}if(this.len-this.pos>4){for(;i<5;++i)if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}else for(;i<5;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function u(){return this.uint32()!==0};function readFixed32_end(u,i){return(u[i-4]|u[i-3]<<8|u[i-2]<<16|u[i-1]<<24)>>>0}Reader$1.prototype.fixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i};Reader$1.prototype.double=function u(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i};Reader$1.prototype.bytes=function u(){var i=this.uint32(),e=this.pos,t=this.pos+i;if(t>this.len)throw indexOutOfRange(this,i);if(this.pos+=i,Array.isArray(this.buf))return this.buf.slice(e,t);if(e===t){var r=util$2.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,t)};Reader$1.prototype.string=function u(){var i=this.bytes();return utf8.read(i,0,i.length)};Reader$1.prototype.skip=function u(i){if(typeof i=="number"){if(this.pos+i>this.len)throw indexOutOfRange(this,i);this.pos+=i}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(u){switch(u){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(u=this.uint32()&7)!==4;)this.skipType(u);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+u+" at offset "+this.pos)}return this};Reader$1._configure=function(u){BufferReader$1=u,Reader$1.create=create(),BufferReader$1._configure();var i=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[i](!1)},uint64:function(){return readLongVarint.call(this)[i](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[i](!1)},fixed64:function(){return readFixed64.call(this)[i](!0)},sfixed64:function(){return readFixed64.call(this)[i](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(u){Reader.call(this,u)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function u(){var i=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+i,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+i,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(u,i,e){if(typeof u!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=u,this.requestDelimited=!!i,this.responseDelimited=!!e}Service.prototype.rpcCall=function u(i,e,t,r,n){if(!r)throw TypeError("request must be specified");var o=this;if(!n)return util.asPromise(u,o,i,e,t,r);if(!o.rpcImpl){setTimeout(function(){n(Error("already ended"))},0);return}try{return o.rpcImpl(i,e[o.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(a,f){if(a)return o.emit("error",a,i),n(a);if(f===null){o.end(!0);return}if(!(f instanceof t))try{f=t[o.responseDelimited?"decodeDelimited":"decode"](f)}catch(d){return o.emit("error",d,i),n(d)}return o.emit("data",f,i),n(null,f)})}catch(l){o.emit("error",l,i),setTimeout(function(){n(l)},0);return}};Service.prototype.end=function u(i){return this.rpcImpl&&(i||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(u){var i=u;i.Service=service})(rpc);var roots={};(function(u){var i=u;i.build="minimal",i.Writer=writer,i.BufferWriter=writer_buffer,i.Reader=reader,i.BufferReader=reader_buffer,i.util=requireMinimal(),i.rpc=rpc,i.roots=roots,i.configure=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(indexMinimal);var minimal=indexMinimal;const $protobuf=getDefaultExportFromCjs(minimal),$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots.onnx||($protobuf.roots.onnx={});$root.onnx=(()=>{const u={};return u.Version=function(){const i={},e=Object.create(i);return e[i[0]="_START_VERSION"]=0,e[i[1]="IR_VERSION_2017_10_10"]=1,e[i[2]="IR_VERSION_2017_10_30"]=2,e[i[3]="IR_VERSION_2017_11_3"]=3,e[i[4]="IR_VERSION_2019_1_22"]=4,e[i[5]="IR_VERSION_2019_3_18"]=5,e[i[6]="IR_VERSION_2019_9_19"]=6,e[i[7]="IR_VERSION_2020_5_8"]=7,e[i[8]="IR_VERSION_2021_7_30"]=8,e[i[9]="IR_VERSION_2023_5_5"]=9,e[i[10]="IR_VERSION"]=10,e}(),u.AttributeProto=function(){function i(e){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],this.sparseTensors=[],this.typeProtos=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 21:{o.refAttrName=t.string();break}case 13:{o.docString=t.string();break}case 20:{o.type=t.int32();break}case 2:{o.f=t.float();break}case 3:{o.i=t.int64();break}case 4:{o.s=t.bytes();break}case 5:{o.t=$root.onnx.TensorProto.decode(t,t.uint32());break}case 6:{o.g=$root.onnx.GraphProto.decode(t,t.uint32());break}case 22:{o.sparseTensor=$root.onnx.SparseTensorProto.decode(t,t.uint32());break}case 14:{o.tp=$root.onnx.TypeProto.decode(t,t.uint32());break}case 7:{if(o.floats&&o.floats.length||(o.floats=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.i.high>>>0).toNumber())),t.s!=null&&(typeof t.s=="string"?$util.base64.decode(t.s,r.s=$util.newBuffer($util.base64.length(t.s)),0):t.s.length>=0&&(r.s=t.s)),t.t!=null){if(typeof t.t!="object")throw TypeError(".onnx.AttributeProto.t: object expected");r.t=$root.onnx.TensorProto.fromObject(t.t)}if(t.g!=null){if(typeof t.g!="object")throw TypeError(".onnx.AttributeProto.g: object expected");r.g=$root.onnx.GraphProto.fromObject(t.g)}if(t.sparseTensor!=null){if(typeof t.sparseTensor!="object")throw TypeError(".onnx.AttributeProto.sparseTensor: object expected");r.sparseTensor=$root.onnx.SparseTensorProto.fromObject(t.sparseTensor)}if(t.tp!=null){if(typeof t.tp!="object")throw TypeError(".onnx.AttributeProto.tp: object expected");r.tp=$root.onnx.TypeProto.fromObject(t.tp)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");r.floats=[];for(let n=0;n>>0,t.ints[n].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");r.strings=[];for(let n=0;n=0&&(r.strings[n]=t.strings[n])}if(t.tensors){if(!Array.isArray(t.tensors))throw TypeError(".onnx.AttributeProto.tensors: array expected");r.tensors=[];for(let n=0;n>>0,t.i.high>>>0).toNumber():t.i),t.s!=null&&t.hasOwnProperty("s")&&(n.s=r.bytes===String?$util.base64.encode(t.s,0,t.s.length):r.bytes===Array?Array.prototype.slice.call(t.s):t.s),t.t!=null&&t.hasOwnProperty("t")&&(n.t=$root.onnx.TensorProto.toObject(t.t,r)),t.g!=null&&t.hasOwnProperty("g")&&(n.g=$root.onnx.GraphProto.toObject(t.g,r)),t.floats&&t.floats.length){n.floats=[];for(let o=0;o>>0,t.ints[o].high>>>0).toNumber():t.ints[o]}if(t.strings&&t.strings.length){n.strings=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.type=$root.onnx.TypeProto.decode(t,t.uint32());break}case 3:{o.docString=t.string();break}case 4:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.type!=null&&t.hasOwnProperty("type")){let r=$root.onnx.TypeProto.verify(t.type);if(r)return"type."+r}if(t.docString!=null&&t.hasOwnProperty("docString")&&!$util.isString(t.docString))return"docString: string expected";if(t.metadataProps!=null&&t.hasOwnProperty("metadataProps")){if(!Array.isArray(t.metadataProps))return"metadataProps: array expected";for(let r=0;r>>3){case 1:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 2:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 3:{o.name=t.string();break}case 4:{o.opType=t.string();break}case 7:{o.domain=t.string();break}case 8:{o.overload=t.string();break}case 5:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 6:{o.docString=t.string();break}case 9:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;r>>3){case 1:{o.initialization=$root.onnx.GraphProto.decode(t,t.uint32());break}case 2:{o.algorithm=$root.onnx.GraphProto.decode(t,t.uint32());break}case 3:{o.initializationBinding&&o.initializationBinding.length||(o.initializationBinding=[]),o.initializationBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 4:{o.updateBinding&&o.updateBinding.length||(o.updateBinding=[]),o.updateBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.initialization!=null&&t.hasOwnProperty("initialization")){let r=$root.onnx.GraphProto.verify(t.initialization);if(r)return"initialization."+r}if(t.algorithm!=null&&t.hasOwnProperty("algorithm")){let r=$root.onnx.GraphProto.verify(t.algorithm);if(r)return"algorithm."+r}if(t.initializationBinding!=null&&t.hasOwnProperty("initializationBinding")){if(!Array.isArray(t.initializationBinding))return"initializationBinding: array expected";for(let r=0;r>>3){case 1:{o.irVersion=t.int64();break}case 8:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 2:{o.producerName=t.string();break}case 3:{o.producerVersion=t.string();break}case 4:{o.domain=t.string();break}case 5:{o.modelVersion=t.int64();break}case 6:{o.docString=t.string();break}case 7:{o.graph=$root.onnx.GraphProto.decode(t,t.uint32());break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 20:{o.trainingInfo&&o.trainingInfo.length||(o.trainingInfo=[]),o.trainingInfo.push($root.onnx.TrainingInfoProto.decode(t,t.uint32()));break}case 25:{o.functions&&o.functions.length||(o.functions=[]),o.functions.push($root.onnx.FunctionProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.irVersion!=null&&t.hasOwnProperty("irVersion")&&!$util.isInteger(t.irVersion)&&!(t.irVersion&&$util.isInteger(t.irVersion.low)&&$util.isInteger(t.irVersion.high)))return"irVersion: integer|Long expected";if(t.opsetImport!=null&&t.hasOwnProperty("opsetImport")){if(!Array.isArray(t.opsetImport))return"opsetImport: array expected";for(let r=0;r>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");r.opsetImport=[];for(let n=0;n>>0,t.modelVersion.high>>>0).toNumber())),t.docString!=null&&(r.docString=String(t.docString)),t.graph!=null){if(typeof t.graph!="object")throw TypeError(".onnx.ModelProto.graph: object expected");r.graph=$root.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.irVersion.high>>>0).toNumber():t.irVersion),t.producerName!=null&&t.hasOwnProperty("producerName")&&(n.producerName=t.producerName),t.producerVersion!=null&&t.hasOwnProperty("producerVersion")&&(n.producerVersion=t.producerVersion),t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.modelVersion!=null&&t.hasOwnProperty("modelVersion")&&(typeof t.modelVersion=="number"?n.modelVersion=r.longs===String?String(t.modelVersion):t.modelVersion:n.modelVersion=r.longs===String?$util.Long.prototype.toString.call(t.modelVersion):r.longs===Number?new $util.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.graph!=null&&t.hasOwnProperty("graph")&&(n.graph=$root.onnx.GraphProto.toObject(t.graph,r)),t.opsetImport&&t.opsetImport.length){n.opsetImport=[];for(let o=0;o>>3){case 1:{o.key=t.string();break}case 2:{o.value=t.string();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.key!=null&&t.hasOwnProperty("key")&&!$util.isString(t.key)?"key: string expected":t.value!=null&&t.hasOwnProperty("value")&&!$util.isString(t.value)?"value: string expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.StringStringEntryProto)return t;let r=new $root.onnx.StringStringEntryProto;return t.key!=null&&(r.key=String(t.key)),t.value!=null&&(r.value=String(t.value)),r},i.toObject=function(t,r){r||(r={});let n={};return r.defaults&&(n.key="",n.value=""),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.StringStringEntryProto"},i}(),u.TensorAnnotation=function(){function i(e){if(this.quantParameterTensorNames=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.tensorName=t.string();break}case 2:{o.quantParameterTensorNames&&o.quantParameterTensorNames.length||(o.quantParameterTensorNames=[]),o.quantParameterTensorNames.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.tensorName!=null&&t.hasOwnProperty("tensorName")&&!$util.isString(t.tensorName))return"tensorName: string expected";if(t.quantParameterTensorNames!=null&&t.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(t.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(let r=0;r>>3){case 1:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 2:{o.name=t.string();break}case 5:{o.initializer&&o.initializer.length||(o.initializer=[]),o.initializer.push($root.onnx.TensorProto.decode(t,t.uint32()));break}case 15:{o.sparseInitializer&&o.sparseInitializer.length||(o.sparseInitializer=[]),o.sparseInitializer.push($root.onnx.SparseTensorProto.decode(t,t.uint32()));break}case 10:{o.docString=t.string();break}case 11:{o.input&&o.input.length||(o.input=[]),o.input.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 12:{o.output&&o.output.length||(o.output=[]),o.output.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 13:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.quantizationAnnotation&&o.quantizationAnnotation.length||(o.quantizationAnnotation=[]),o.quantizationAnnotation.push($root.onnx.TensorAnnotation.decode(t,t.uint32()));break}case 16:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.node!=null&&t.hasOwnProperty("node")){if(!Array.isArray(t.node))return"node: array expected";for(let r=0;r>>3){case 1:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}if(t.dataType!=null&&(r.dataType=t.dataType|0),t.segment!=null){if(typeof t.segment!="object")throw TypeError(".onnx.TensorProto.segment: object expected");r.segment=$root.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");r.floatData=[];for(let n=0;n=0&&(r.stringData[n]=t.stringData[n])}if(t.int64Data){if(!Array.isArray(t.int64Data))throw TypeError(".onnx.TensorProto.int64Data: array expected");r.int64Data=[];for(let n=0;n>>0,t.int64Data[n].high>>>0).toNumber())}if(t.name!=null&&(r.name=String(t.name)),t.docString!=null&&(r.docString=String(t.docString)),t.rawData!=null&&(typeof t.rawData=="string"?$util.base64.decode(t.rawData,r.rawData=$util.newBuffer($util.base64.length(t.rawData)),0):t.rawData.length>=0&&(r.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");r.externalData=[];for(let n=0;n>>0,t.uint64Data[n].high>>>0).toNumber(!0))}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.TensorProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}if(t.dataType!=null&&t.hasOwnProperty("dataType")&&(n.dataType=t.dataType),t.segment!=null&&t.hasOwnProperty("segment")&&(n.segment=$root.onnx.TensorProto.Segment.toObject(t.segment,r)),t.floatData&&t.floatData.length){n.floatData=[];for(let o=0;o>>0,t.int64Data[o].high>>>0).toNumber():t.int64Data[o]}if(t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.rawData!=null&&t.hasOwnProperty("rawData")&&(n.rawData=r.bytes===String?$util.base64.encode(t.rawData,0,t.rawData.length):r.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length){n.doubleData=[];for(let o=0;o>>0,t.uint64Data[o].high>>>0).toNumber(!0):t.uint64Data[o]}if(t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.externalData&&t.externalData.length){n.externalData=[];for(let o=0;o>>3){case 1:{l.begin=r.int64();break}case 2:{l.end=r.int64();break}default:r.skipType(a&7);break}}return l},e.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},e.verify=function(r){return typeof r!="object"||r===null?"object expected":r.begin!=null&&r.hasOwnProperty("begin")&&!$util.isInteger(r.begin)&&!(r.begin&&$util.isInteger(r.begin.low)&&$util.isInteger(r.begin.high))?"begin: integer|Long expected":r.end!=null&&r.hasOwnProperty("end")&&!$util.isInteger(r.end)&&!(r.end&&$util.isInteger(r.end.low)&&$util.isInteger(r.end.high))?"end: integer|Long expected":null},e.fromObject=function(r){if(r instanceof $root.onnx.TensorProto.Segment)return r;let n=new $root.onnx.TensorProto.Segment;return r.begin!=null&&($util.Long?(n.begin=$util.Long.fromValue(r.begin)).unsigned=!1:typeof r.begin=="string"?n.begin=parseInt(r.begin,10):typeof r.begin=="number"?n.begin=r.begin:typeof r.begin=="object"&&(n.begin=new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber())),r.end!=null&&($util.Long?(n.end=$util.Long.fromValue(r.end)).unsigned=!1:typeof r.end=="string"?n.end=parseInt(r.end,10):typeof r.end=="number"?n.end=r.end:typeof r.end=="object"&&(n.end=new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber())),n},e.toObject=function(r,n){n||(n={});let o={};if(n.defaults){if($util.Long){let l=new $util.Long(0,0,!1);o.begin=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.begin=n.longs===String?"0":0;if($util.Long){let l=new $util.Long(0,0,!1);o.end=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.end=n.longs===String?"0":0}return r.begin!=null&&r.hasOwnProperty("begin")&&(typeof r.begin=="number"?o.begin=n.longs===String?String(r.begin):r.begin:o.begin=n.longs===String?$util.Long.prototype.toString.call(r.begin):n.longs===Number?new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber():r.begin),r.end!=null&&r.hasOwnProperty("end")&&(typeof r.end=="number"?o.end=n.longs===String?String(r.end):r.end:o.end=n.longs===String?$util.Long.prototype.toString.call(r.end):n.longs===Number?new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber():r.end),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TensorProto.Segment"},e}(),i.DataLocation=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="EXTERNAL"]=1,t}(),i}(),u.SparseTensorProto=function(){function i(e){if(this.dims=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.values=$root.onnx.TensorProto.decode(t,t.uint32());break}case 2:{o.indices=$root.onnx.TensorProto.decode(t,t.uint32());break}case 3:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}return r},i.toObject=function(t,r){r||(r={});let n={};if((r.arrays||r.defaults)&&(n.dims=[]),r.defaults&&(n.values=null,n.indices=null),t.values!=null&&t.hasOwnProperty("values")&&(n.values=$root.onnx.TensorProto.toObject(t.values,r)),t.indices!=null&&t.hasOwnProperty("indices")&&(n.indices=$root.onnx.TensorProto.toObject(t.indices,r)),t.dims&&t.dims.length){n.dims=[];for(let o=0;o>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}return n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.SparseTensorProto"},i}(),u.TensorShapeProto=function(){function i(e){if(this.dim=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.dim&&o.dim.length||(o.dim=[]),o.dim.push($root.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dim!=null&&t.hasOwnProperty("dim")){if(!Array.isArray(t.dim))return"dim: array expected";for(let r=0;r>>3){case 1:{a.dimValue=n.int64();break}case 2:{a.dimParam=n.string();break}case 3:{a.denotation=n.string();break}default:n.skipType(f&7);break}}return a},e.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},e.verify=function(n){if(typeof n!="object"||n===null)return"object expected";let o={};if(n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(o.value=1,!$util.isInteger(n.dimValue)&&!(n.dimValue&&$util.isInteger(n.dimValue.low)&&$util.isInteger(n.dimValue.high))))return"dimValue: integer|Long expected";if(n.dimParam!=null&&n.hasOwnProperty("dimParam")){if(o.value===1)return"value: multiple values";if(o.value=1,!$util.isString(n.dimParam))return"dimParam: string expected"}return n.denotation!=null&&n.hasOwnProperty("denotation")&&!$util.isString(n.denotation)?"denotation: string expected":null},e.fromObject=function(n){if(n instanceof $root.onnx.TensorShapeProto.Dimension)return n;let o=new $root.onnx.TensorShapeProto.Dimension;return n.dimValue!=null&&($util.Long?(o.dimValue=$util.Long.fromValue(n.dimValue)).unsigned=!1:typeof n.dimValue=="string"?o.dimValue=parseInt(n.dimValue,10):typeof n.dimValue=="number"?o.dimValue=n.dimValue:typeof n.dimValue=="object"&&(o.dimValue=new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber())),n.dimParam!=null&&(o.dimParam=String(n.dimParam)),n.denotation!=null&&(o.denotation=String(n.denotation)),o},e.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.denotation=""),n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(typeof n.dimValue=="number"?l.dimValue=o.longs===String?String(n.dimValue):n.dimValue:l.dimValue=o.longs===String?$util.Long.prototype.toString.call(n.dimValue):o.longs===Number?new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber():n.dimValue,o.oneofs&&(l.value="dimValue")),n.dimParam!=null&&n.hasOwnProperty("dimParam")&&(l.dimParam=n.dimParam,o.oneofs&&(l.value="dimParam")),n.denotation!=null&&n.hasOwnProperty("denotation")&&(l.denotation=n.denotation),l},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TensorShapeProto.Dimension"},e}(),i}(),u.TypeProto=function(){function i(t){if(t)for(let r=Object.keys(t),n=0;n>>3){case 1:{l.tensorType=$root.onnx.TypeProto.Tensor.decode(r,r.uint32());break}case 4:{l.sequenceType=$root.onnx.TypeProto.Sequence.decode(r,r.uint32());break}case 5:{l.mapType=$root.onnx.TypeProto.Map.decode(r,r.uint32());break}case 9:{l.optionalType=$root.onnx.TypeProto.Optional.decode(r,r.uint32());break}case 8:{l.sparseTensorType=$root.onnx.TypeProto.SparseTensor.decode(r,r.uint32());break}case 6:{l.denotation=r.string();break}default:r.skipType(a&7);break}}return l},i.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},i.verify=function(r){if(typeof r!="object"||r===null)return"object expected";let n={};if(r.tensorType!=null&&r.hasOwnProperty("tensorType")){n.value=1;{let o=$root.onnx.TypeProto.Tensor.verify(r.tensorType);if(o)return"tensorType."+o}}if(r.sequenceType!=null&&r.hasOwnProperty("sequenceType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Sequence.verify(r.sequenceType);if(o)return"sequenceType."+o}}if(r.mapType!=null&&r.hasOwnProperty("mapType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Map.verify(r.mapType);if(o)return"mapType."+o}}if(r.optionalType!=null&&r.hasOwnProperty("optionalType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Optional.verify(r.optionalType);if(o)return"optionalType."+o}}if(r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.SparseTensor.verify(r.sparseTensorType);if(o)return"sparseTensorType."+o}}return r.denotation!=null&&r.hasOwnProperty("denotation")&&!$util.isString(r.denotation)?"denotation: string expected":null},i.fromObject=function(r){if(r instanceof $root.onnx.TypeProto)return r;let n=new $root.onnx.TypeProto;if(r.tensorType!=null){if(typeof r.tensorType!="object")throw TypeError(".onnx.TypeProto.tensorType: object expected");n.tensorType=$root.onnx.TypeProto.Tensor.fromObject(r.tensorType)}if(r.sequenceType!=null){if(typeof r.sequenceType!="object")throw TypeError(".onnx.TypeProto.sequenceType: object expected");n.sequenceType=$root.onnx.TypeProto.Sequence.fromObject(r.sequenceType)}if(r.mapType!=null){if(typeof r.mapType!="object")throw TypeError(".onnx.TypeProto.mapType: object expected");n.mapType=$root.onnx.TypeProto.Map.fromObject(r.mapType)}if(r.optionalType!=null){if(typeof r.optionalType!="object")throw TypeError(".onnx.TypeProto.optionalType: object expected");n.optionalType=$root.onnx.TypeProto.Optional.fromObject(r.optionalType)}if(r.sparseTensorType!=null){if(typeof r.sparseTensorType!="object")throw TypeError(".onnx.TypeProto.sparseTensorType: object expected");n.sparseTensorType=$root.onnx.TypeProto.SparseTensor.fromObject(r.sparseTensorType)}return r.denotation!=null&&(n.denotation=String(r.denotation)),n},i.toObject=function(r,n){n||(n={});let o={};return n.defaults&&(o.denotation=""),r.tensorType!=null&&r.hasOwnProperty("tensorType")&&(o.tensorType=$root.onnx.TypeProto.Tensor.toObject(r.tensorType,n),n.oneofs&&(o.value="tensorType")),r.sequenceType!=null&&r.hasOwnProperty("sequenceType")&&(o.sequenceType=$root.onnx.TypeProto.Sequence.toObject(r.sequenceType,n),n.oneofs&&(o.value="sequenceType")),r.mapType!=null&&r.hasOwnProperty("mapType")&&(o.mapType=$root.onnx.TypeProto.Map.toObject(r.mapType,n),n.oneofs&&(o.value="mapType")),r.denotation!=null&&r.hasOwnProperty("denotation")&&(o.denotation=r.denotation),r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")&&(o.sparseTensorType=$root.onnx.TypeProto.SparseTensor.toObject(r.sparseTensorType,n),n.oneofs&&(o.value="sparseTensorType")),r.optionalType!=null&&r.hasOwnProperty("optionalType")&&(o.optionalType=$root.onnx.TypeProto.Optional.toObject(r.optionalType,n),n.oneofs&&(o.value="optionalType")),o},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TypeProto"},i.Tensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Tensor)return n;let o=new $root.onnx.TypeProto.Tensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Tensor"},t}(),i.Sequence=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Sequence)return n;let o=new $root.onnx.TypeProto.Sequence;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Sequence.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Sequence"},t}(),i.Map=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.keyType=n.int32();break}case 2:{a.valueType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.keyType!=null&&n.hasOwnProperty("keyType")&&!$util.isInteger(n.keyType))return"keyType: integer expected";if(n.valueType!=null&&n.hasOwnProperty("valueType")){let o=$root.onnx.TypeProto.verify(n.valueType);if(o)return"valueType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Map)return n;let o=new $root.onnx.TypeProto.Map;if(n.keyType!=null&&(o.keyType=n.keyType|0),n.valueType!=null){if(typeof n.valueType!="object")throw TypeError(".onnx.TypeProto.Map.valueType: object expected");o.valueType=$root.onnx.TypeProto.fromObject(n.valueType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.keyType=0,l.valueType=null),n.keyType!=null&&n.hasOwnProperty("keyType")&&(l.keyType=n.keyType),n.valueType!=null&&n.hasOwnProperty("valueType")&&(l.valueType=$root.onnx.TypeProto.toObject(n.valueType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Map"},t}(),i.Optional=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Optional)return n;let o=new $root.onnx.TypeProto.Optional;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Optional.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Optional"},t}(),i.SparseTensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.SparseTensor)return n;let o=new $root.onnx.TypeProto.SparseTensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.SparseTensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.SparseTensor"},t}(),i}(),u.OperatorSetIdProto=function(){function i(e){if(e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.domain=t.string();break}case 2:{o.version=t.int64();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.domain!=null&&t.hasOwnProperty("domain")&&!$util.isString(t.domain)?"domain: string expected":t.version!=null&&t.hasOwnProperty("version")&&!$util.isInteger(t.version)&&!(t.version&&$util.isInteger(t.version.low)&&$util.isInteger(t.version.high))?"version: integer|Long expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.OperatorSetIdProto)return t;let r=new $root.onnx.OperatorSetIdProto;return t.domain!=null&&(r.domain=String(t.domain)),t.version!=null&&($util.Long?(r.version=$util.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?r.version=parseInt(t.version,10):typeof t.version=="number"?r.version=t.version:typeof t.version=="object"&&(r.version=new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),r},i.toObject=function(t,r){r||(r={});let n={};if(r.defaults)if(n.domain="",$util.Long){let o=new $util.Long(0,0,!1);n.version=r.longs===String?o.toString():r.longs===Number?o.toNumber():o}else n.version=r.longs===String?"0":0;return t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=r.longs===String?String(t.version):t.version:n.version=r.longs===String?$util.Long.prototype.toString.call(t.version):r.longs===Number?new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.OperatorSetIdProto"},i}(),u.OperatorStatus=function(){const i={},e=Object.create(i);return e[i[0]="EXPERIMENTAL"]=0,e[i[1]="STABLE"]=1,e}(),u.FunctionProto=function(){function i(e){if(this.input=[],this.output=[],this.attribute=[],this.attributeProto=[],this.node=[],this.opsetImport=[],this.valueInfo=[],this.metadataProps=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 4:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 5:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 6:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push(t.string());break}case 11:{o.attributeProto&&o.attributeProto.length||(o.attributeProto=[]),o.attributeProto.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 7:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 8:{o.docString=t.string();break}case 9:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 10:{o.domain=t.string();break}case 13:{o.overload=t.string();break}case 12:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;re.toString());return e=>new VStack(new HStack(new Text(`${e||u.name}:`),new HStack(new Text(dataTypeToString(u.dataType)),new Text(`<${i.join("x")}>`)).with({spacing:4})).with({spacing:4,spread:!0})).with({spacing:4})}function toTooltip(u){const i=[new VStack(new Text("Name").with({fontWeight:500}),new Text(u.name||"none")).with({spacing:8})];return u.input&&i.push(new VStack(new Text("Inputs").with({fontWeight:500}),...u.input.map(e=>new Text(e))).with({spacing:8})),u.output&&i.push(new VStack(new Text("Outputs").with({fontWeight:500}),...u.output.map(e=>new Text(e))).with({spacing:8})),new Tooltip(new VStack(...i).with({spacing:8}))}function color(u){const i=colors.foreground;switch(u){case"Conv":return i.blue;case"Gather":case"MaxPool":case"SkipSimplifiedLayerNormalization":return i.green;case"Reshape":return i.orange;case"Sigmoid":case"Relu":return i.purple;default:return"black"}}function convertNode(u,i,e){const t=[];if(e.input){const r=(o,l)=>{const a=u.get(e.input?.[l]);a&&n.push(convertTensor(a)(o))},n=[];if(e.opType==="Conv")r("W",1);else if(e.opType==="Gemm")r("W",1),r("b",2);else if(e.opType==="Reshape")r("data",0),r("shape",1);else if(e.opType==="MatMulNBits")r("B",1),r("scales",2);else if(e.opType==="Gather")r("data",0);else if(e.opType==="SkipSimplifiedLayerNormalization")r("gamma",2);else if(e.opType==="GroupQueryAttention")r("cos_cache",7),r("sin_cache",8);else for(const[o,l]of e.input.entries()){const a=u.get(l);a&&n.push(convertTensor(a)(`${o}-${l}`))}n.length>0&&t.push(new VStack(...n).with({spacing:4}))}return new Node(i,new HStack(new Text(e.opType||"Unknown Op").with({fontWeight:500,foregroundColor:color(e.opType)}),new Text(i).with({foregroundColor:colors.foreground.grayTertiary})).with({spread:!0,spacing:8}),...t).with({tooltip:()=>toTooltip(e)})}function convertValueInfo(u,i,e){const t=e.type?.tensorType?.shape?.dim||[];return new Node(i,new VStack(new Text(u).with({fontWeight:500})).with({spacing:8}),new HStack(new Text(dataTypeToString(e.type?.tensorType?.elemType)),new Text(`<${t.map(r=>r.dimValue||0).join("x")}>`)).with({spacing:4})).with({borderDash:4}).with({tooltip:()=>new Tooltip(new Text(e.name||"none"))})}const MAX_MODULE_DEPTH=2;function createNetworkModel(u,i){const e={virtualGrouping:{threshold:1500,nodesPerModule:300},simplify:{threshold:200},...i},t=$root.onnx.ModelProto.decode(u);if(!t.graph)throw new Error("onnx file does not contain graph information");if(!t.graph.node)throw new Error("onnx file does not contain nodes");e.simplify&&t.graph.node.length>e.simplify.threshold&&console.info(`More than ${t.graph.node.length} nodes; creating a simplified representation.`);const n=new Network,o=new Map,l=new Set,a=new Map,f=new Map;if(!t.graph.initializer)throw new Error("graph does not have initializer information");for(const p of t.graph.initializer){if(!p.name)throw new Error("tensor does not have a name");const c=p.dims?.map(y=>y.toString())||[];a.set(p.name,{id:p.name,dims:c.join("x")});const h=p.name;f.set(h,p)}if(t.graph.node.forEach((p,c)=>{if(!p.opType)throw new Error("node does not have type");if(!p.output)throw new Error("node does not have output");const h=(p.name||"").split("/");h.pop();const y=h.slice(0,MAX_MODULE_DEPTH+1).join("/");y!==""&&l.add(y);const s=c.toString();switch(n.setNode(s,convertNode(f,s,p)),p.opType){case"Reshape":case"Conv":o.set(p.output[0],s);break;default:for(const P of p.output)P!==""&&o.set(P,s);break}}),!t.graph.input)throw new Error("graph does not have inputs");if(!t.graph.output)throw new Error("graph does not have outputs");const d=new Set(t.graph.initializer.map(p=>p.name));for(const p of t.graph.input)if(!d.has(p.name)){const c=`[vnode]${p.name}`,h=convertValueInfo("Input",c,p);n.setNode(c,h),o.set(p.name,c)}t.graph.output.forEach(p=>{const c=`[vnode]${p.name}`,h=convertValueInfo("Output",c,p);n.setNode(c,h);const y=o.get(p.name);y&&n.setEdge(y,c)}),t.graph.node.forEach((p,c)=>{const h=c.toString();if(!p.input)throw new Error("node does not have input");if(p.opType==="Conv"){const y=o.get(p.input[0]);y&&n.setEdge(y,h)}else if(p.opType!=="Reshape")for(const y of p.input){const s=o.get(y);s&&n.setEdge(s,h)}});for(const p of l){const c=p;n.setNode(c,new Node(c,new VStack(new Text("Module").with({fontWeight:500}),new Text(c)).with({spacing:8})).with({backgroundColor:colors.background.gray,badge:{color:"#8e8e8e",text:"+"}})),t.graph.node.forEach((h,y)=>{h.name?.includes(p)&&n.setParent(y.toString(),p)})}for(const p of n.nodes())n.childrenT(p).length===1&&n.removeNode(p);return n}export{createNetworkModel as c}; +import{d as commonjsGlobal,g as getDefaultExportFromCjs,V as VStack,H as HStack,T as Text,e as Tooltip,a as Node,c as colors,N as Network}from"./viewer.BYFc8Cdc.js";import"./index.C7bWdOrd.js";var indexMinimal={},minimal$1={},aspromise=asPromise;function asPromise(u,i){for(var e=new Array(arguments.length-1),t=0,r=2,n=!0;r1&&l.charAt(a)==="=";)++f;return Math.ceil(l.length*3)/4-f};for(var e=new Array(64),t=new Array(123),r=0;r<64;)t[e[r]=r<26?r+65:r<52?r+71:r<62?r-4:r-59|43]=r++;i.encode=function(l,a,f){for(var d=null,p=[],c=0,h=0,y;a>2],y=(s&3)<<4,h=1;break;case 1:p[c++]=e[y|s>>4],y=(s&15)<<2,h=2;break;case 2:p[c++]=e[y|s>>6],p[c++]=e[s&63],h=0;break}c>8191&&((d||(d=[])).push(String.fromCharCode.apply(String,p)),c=0)}return h&&(p[c++]=e[y],p[c++]=61,h===1&&(p[c++]=61)),d?(c&&d.push(String.fromCharCode.apply(String,p.slice(0,c))),d.join("")):String.fromCharCode.apply(String,p.slice(0,c))};var n="invalid encoding";i.decode=function(l,a,f){for(var d=f,p=0,c,h=0;h1)break;if((y=t[y])===void 0)throw Error(n);switch(p){case 0:c=y,p=1;break;case 1:a[f++]=c<<2|(y&48)>>4,c=y,p=2;break;case 2:a[f++]=(c&15)<<4|(y&60)>>2,c=y,p=3;break;case 3:a[f++]=(c&3)<<6|y,p=0;break}}if(p===1)throw Error(n);return f-d},i.test=function(l){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(l)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(i,e,t){return(this._listeners[i]||(this._listeners[i]=[])).push({fn:e,ctx:t||this}),this};EventEmitter.prototype.off=function(i,e){if(i===void 0)this._listeners={};else if(e===void 0)this._listeners[i]=[];else for(var t=this._listeners[i],r=0;r0?0:2147483648,n,o);else if(isNaN(r))t(2143289344,n,o);else if(r>34028234663852886e22)t((l<<31|2139095040)>>>0,n,o);else if(r<11754943508222875e-54)t((l<<31|Math.round(r/1401298464324817e-60))>>>0,n,o);else{var a=Math.floor(Math.log(r)/Math.LN2),f=Math.round(r*Math.pow(2,-a)*8388608)&8388607;t((l<<31|a+127<<23|f)>>>0,n,o)}}u.writeFloatLE=i.bind(null,writeUintLE),u.writeFloatBE=i.bind(null,writeUintBE);function e(t,r,n){var o=t(r,n),l=(o>>31)*2+1,a=o>>>23&255,f=o&8388607;return a===255?f?NaN:l*(1/0):a===0?l*1401298464324817e-60*f:l*Math.pow(2,a-150)*(f+8388608)}u.readFloatLE=e.bind(null,readUintLE),u.readFloatBE=e.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var i=new Float64Array([-0]),e=new Uint8Array(i.buffer),t=e[7]===128;function r(a,f,d){i[0]=a,f[d]=e[0],f[d+1]=e[1],f[d+2]=e[2],f[d+3]=e[3],f[d+4]=e[4],f[d+5]=e[5],f[d+6]=e[6],f[d+7]=e[7]}function n(a,f,d){i[0]=a,f[d]=e[7],f[d+1]=e[6],f[d+2]=e[5],f[d+3]=e[4],f[d+4]=e[3],f[d+5]=e[2],f[d+6]=e[1],f[d+7]=e[0]}u.writeDoubleLE=t?r:n,u.writeDoubleBE=t?n:r;function o(a,f){return e[0]=a[f],e[1]=a[f+1],e[2]=a[f+2],e[3]=a[f+3],e[4]=a[f+4],e[5]=a[f+5],e[6]=a[f+6],e[7]=a[f+7],i[0]}function l(a,f){return e[7]=a[f],e[6]=a[f+1],e[5]=a[f+2],e[4]=a[f+3],e[3]=a[f+4],e[2]=a[f+5],e[1]=a[f+6],e[0]=a[f+7],i[0]}u.readDoubleLE=t?o:l,u.readDoubleBE=t?l:o}():function(){function i(t,r,n,o,l,a){var f=o<0?1:0;if(f&&(o=-o),o===0)t(0,l,a+r),t(1/o>0?0:2147483648,l,a+n);else if(isNaN(o))t(0,l,a+r),t(2146959360,l,a+n);else if(o>17976931348623157e292)t(0,l,a+r),t((f<<31|2146435072)>>>0,l,a+n);else{var d;if(o<22250738585072014e-324)d=o/5e-324,t(d>>>0,l,a+r),t((f<<31|d/4294967296)>>>0,l,a+n);else{var p=Math.floor(Math.log(o)/Math.LN2);p===1024&&(p=1023),d=o*Math.pow(2,-p),t(d*4503599627370496>>>0,l,a+r),t((f<<31|p+1023<<20|d*1048576&1048575)>>>0,l,a+n)}}}u.writeDoubleLE=i.bind(null,writeUintLE,0,4),u.writeDoubleBE=i.bind(null,writeUintBE,4,0);function e(t,r,n,o,l){var a=t(o,l+r),f=t(o,l+n),d=(f>>31)*2+1,p=f>>>20&2047,c=4294967296*(f&1048575)+a;return p===2047?c?NaN:d*(1/0):p===0?d*5e-324*c:d*Math.pow(2,p-1075)*(c+4503599627370496)}u.readDoubleLE=e.bind(null,readUintLE,0,4),u.readDoubleBE=e.bind(null,readUintBE,4,0)}(),u}function writeUintLE(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}function writeUintBE(u,i,e){i[e]=u>>>24,i[e+1]=u>>>16&255,i[e+2]=u>>>8&255,i[e+3]=u&255}function readUintLE(u,i){return(u[i]|u[i+1]<<8|u[i+2]<<16|u[i+3]<<24)>>>0}function readUintBE(u,i){return(u[i]<<24|u[i+1]<<16|u[i+2]<<8|u[i+3])>>>0}var inquire_1=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(u){}return null}var utf8$2={};(function(u){var i=u;i.length=function(t){for(var r=0,n=0,o=0;o191&&d<224?a[f++]=(d&31)<<6|t[r++]&63:d>239&&d<365?(d=((d&7)<<18|(t[r++]&63)<<12|(t[r++]&63)<<6|t[r++]&63)-65536,a[f++]=55296+(d>>10),a[f++]=56320+(d&1023)):a[f++]=(d&15)<<12|(t[r++]&63)<<6|t[r++]&63,f>8191&&((l||(l=[])).push(String.fromCharCode.apply(String,a)),f=0);return l?(f&&l.push(String.fromCharCode.apply(String,a.slice(0,f))),l.join("")):String.fromCharCode.apply(String,a.slice(0,f))},i.write=function(t,r,n){for(var o=n,l,a,f=0;f>6|192,r[n++]=l&63|128):(l&64512)===55296&&((a=t.charCodeAt(f+1))&64512)===56320?(l=65536+((l&1023)<<10)+(a&1023),++f,r[n++]=l>>18|240,r[n++]=l>>12&63|128,r[n++]=l>>6&63|128,r[n++]=l&63|128):(r[n++]=l>>12|224,r[n++]=l>>6&63|128,r[n++]=l&63|128);return n-o}})(utf8$2);var pool_1=pool;function pool(u,i,e){var t=e||8192,r=t>>>1,n=null,o=t;return function(a){if(a<1||a>r)return u(a);o+a>t&&(n=u(t),o=0);var f=i.call(n,o,o+=a);return o&7&&(o=(o|7)+1),f}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=i;var u=requireMinimal();function i(n,o){this.lo=n>>>0,this.hi=o>>>0}var e=i.zero=new i(0,0);e.toNumber=function(){return 0},e.zzEncode=e.zzDecode=function(){return this},e.length=function(){return 1};var t=i.zeroHash="\0\0\0\0\0\0\0\0";i.fromNumber=function(o){if(o===0)return e;var l=o<0;l&&(o=-o);var a=o>>>0,f=(o-a)/4294967296>>>0;return l&&(f=~f>>>0,a=~a>>>0,++a>4294967295&&(a=0,++f>4294967295&&(f=0))),new i(a,f)},i.from=function(o){if(typeof o=="number")return i.fromNumber(o);if(u.isString(o))if(u.Long)o=u.Long.fromString(o);else return i.fromNumber(parseInt(o,10));return o.low||o.high?new i(o.low>>>0,o.high>>>0):e},i.prototype.toNumber=function(o){if(!o&&this.hi>>>31){var l=~this.lo+1>>>0,a=~this.hi>>>0;return l||(a=a+1>>>0),-(l+a*4294967296)}return this.lo+this.hi*4294967296},i.prototype.toLong=function(o){return u.Long?new u.Long(this.lo|0,this.hi|0,!!o):{low:this.lo|0,high:this.hi|0,unsigned:!!o}};var r=String.prototype.charCodeAt;return i.fromHash=function(o){return o===t?e:new i((r.call(o,0)|r.call(o,1)<<8|r.call(o,2)<<16|r.call(o,3)<<24)>>>0,(r.call(o,4)|r.call(o,5)<<8|r.call(o,6)<<16|r.call(o,7)<<24)>>>0)},i.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},i.prototype.zzEncode=function(){var o=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^o)>>>0,this.lo=(this.lo<<1^o)>>>0,this},i.prototype.zzDecode=function(){var o=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^o)>>>0,this.hi=(this.hi>>>1^o)>>>0,this},i.prototype.length=function(){var o=this.lo,l=(this.lo>>>28|this.hi<<4)>>>0,a=this.hi>>>24;return a===0?l===0?o<16384?o<128?1:2:o<2097152?3:4:l<16384?l<128?5:6:l<2097152?7:8:a<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(u){var i=u;i.asPromise=aspromise,i.base64=base64$1,i.EventEmitter=eventemitter,i.float=float,i.inquire=inquire_1,i.utf8=utf8$2,i.pool=pool_1,i.LongBits=requireLongbits(),i.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),i.global=i.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n},i.isString=function(n){return typeof n=="string"||n instanceof String},i.isObject=function(n){return n&&typeof n=="object"},i.isset=i.isSet=function(n,o){var l=n[o];return l!=null&&n.hasOwnProperty(o)?typeof l!="object"||(Array.isArray(l)?l.length:Object.keys(l).length)>0:!1},i.Buffer=function(){try{var r=i.inquire("buffer").Buffer;return r.prototype.utf8Write?r:null}catch{return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(n){return typeof n=="number"?i.Buffer?i._Buffer_allocUnsafe(n):new i.Array(n):i.Buffer?i._Buffer_from(n):typeof Uint8Array>"u"?n:new Uint8Array(n)},i.Array=typeof Uint8Array<"u"?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(n){return n?i.LongBits.from(n).toHash():i.LongBits.zeroHash},i.longFromHash=function(n,o){var l=i.LongBits.fromHash(n);return i.Long?i.Long.fromBits(l.lo,l.hi,o):l.toNumber(!!o)};function e(r,n,o){for(var l=Object.keys(n),a=0;a-1;--f)if(o[a[f]]===1&&this[a[f]]!==void 0&&this[a[f]]!==null)return a[f]}},i.oneOfSetter=function(n){return function(o){for(var l=0;l127;)i[e++]=u&127|128,u>>>=7;i[e]=u}function VarintOp(u,i){this.len=u,this.next=void 0,this.val=i}VarintOp.prototype=Object.create(Op.prototype);VarintOp.prototype.fn=writeVarint32;Writer$1.prototype.uint32=function u(i){return this.len+=(this.tail=this.tail.next=new VarintOp((i=i>>>0)<128?1:i<16384?2:i<2097152?3:i<268435456?4:5,i)).len,this};Writer$1.prototype.int32=function u(i){return i<0?this._push(writeVarint64,10,LongBits$1.fromNumber(i)):this.uint32(i)};Writer$1.prototype.sint32=function u(i){return this.uint32((i<<1^i>>31)>>>0)};function writeVarint64(u,i,e){for(;u.hi;)i[e++]=u.lo&127|128,u.lo=(u.lo>>>7|u.hi<<25)>>>0,u.hi>>>=7;for(;u.lo>127;)i[e++]=u.lo&127|128,u.lo=u.lo>>>7;i[e++]=u.lo}Writer$1.prototype.uint64=function u(i){var e=LongBits$1.from(i);return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.int64=Writer$1.prototype.uint64;Writer$1.prototype.sint64=function u(i){var e=LongBits$1.from(i).zzEncode();return this._push(writeVarint64,e.length(),e)};Writer$1.prototype.bool=function u(i){return this._push(writeByte,1,i?1:0)};function writeFixed32(u,i,e){i[e]=u&255,i[e+1]=u>>>8&255,i[e+2]=u>>>16&255,i[e+3]=u>>>24}Writer$1.prototype.fixed32=function u(i){return this._push(writeFixed32,4,i>>>0)};Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32;Writer$1.prototype.fixed64=function u(i){var e=LongBits$1.from(i);return this._push(writeFixed32,4,e.lo)._push(writeFixed32,4,e.hi)};Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64;Writer$1.prototype.float=function u(i){return this._push(util$4.float.writeFloatLE,4,i)};Writer$1.prototype.double=function u(i){return this._push(util$4.float.writeDoubleLE,8,i)};var writeBytes=util$4.Array.prototype.set?function u(i,e,t){e.set(i,t)}:function u(i,e,t){for(var r=0;r>>0;if(!e)return this._push(writeByte,1,0);if(util$4.isString(i)){var t=Writer$1.alloc(e=base64.length(i));base64.decode(i,t,0),i=t}return this.uint32(e)._push(writeBytes,e,i)};Writer$1.prototype.string=function u(i){var e=utf8$1.length(i);return e?this.uint32(e)._push(utf8$1.write,e,i):this._push(writeByte,1,0)};Writer$1.prototype.fork=function u(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this};Writer$1.prototype.reset=function u(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this};Writer$1.prototype.ldelim=function u(){var i=this.head,e=this.tail,t=this.len;return this.reset().uint32(t),t&&(this.tail.next=i.next,this.tail=e,this.len+=t),this};Writer$1.prototype.finish=function u(){for(var i=this.head.next,e=this.constructor.alloc(this.len),t=0;i;)i.fn(i.val,e,t),t+=i.len,i=i.next;return e};Writer$1._configure=function(u){BufferWriter$1=u,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$3=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$3._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$3.Buffer&&util$3.Buffer.prototype instanceof Uint8Array&&util$3.Buffer.prototype.set.name==="set"?function(i,e,t){e.set(i,t)}:function(i,e,t){if(i.copy)i.copy(e,t,0,i.length);else for(var r=0;r>>0;return this.uint32(e),e&&this._push(BufferWriter.writeBytesBuffer,e,i),this};function writeStringBuffer(u,i,e){u.length<40?util$3.utf8.write(u,i,e):i.utf8Write?i.utf8Write(u,e):i.write(u,e)}BufferWriter.prototype.string=function u(i){var e=util$3.Buffer.byteLength(i);return this.uint32(e),e&&this._push(writeStringBuffer,e,i),this};BufferWriter._configure();var reader=Reader$1,util$2=requireMinimal(),BufferReader$1,LongBits=util$2.LongBits,utf8=util$2.utf8;function indexOutOfRange(u,i){return RangeError("index out of range: "+u.pos+" + "+(i||1)+" > "+u.len)}function Reader$1(u){this.buf=u,this.pos=0,this.len=u.length}var create_array=typeof Uint8Array<"u"?function u(i){if(i instanceof Uint8Array||Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")}:function u(i){if(Array.isArray(i))return new Reader$1(i);throw Error("illegal buffer")},create=function u(){return util$2.Buffer?function(e){return(Reader$1.create=function(r){return util$2.Buffer.isBuffer(r)?new BufferReader$1(r):create_array(r)})(e)}:create_array};Reader$1.create=create();Reader$1.prototype._slice=util$2.Array.prototype.subarray||util$2.Array.prototype.slice;Reader$1.prototype.uint32=function u(){var i=4294967295;return function(){if(i=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(i=(i|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(i=(i|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return i;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return i}}();Reader$1.prototype.int32=function u(){return this.uint32()|0};Reader$1.prototype.sint32=function u(){var i=this.uint32();return i>>>1^-(i&1)|0};function readLongVarint(){var u=new LongBits(0,0),i=0;if(this.len-this.pos>4){for(;i<4;++i)if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u;if(u.lo=(u.lo|(this.buf[this.pos]&127)<<28)>>>0,u.hi=(u.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return u;i=0}else{for(;i<3;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.lo=(u.lo|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}return u.lo=(u.lo|(this.buf[this.pos++]&127)<>>0,u}if(this.len-this.pos>4){for(;i<5;++i)if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}else for(;i<5;++i){if(this.pos>=this.len)throw indexOutOfRange(this);if(u.hi=(u.hi|(this.buf[this.pos]&127)<>>0,this.buf[this.pos++]<128)return u}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function u(){return this.uint32()!==0};function readFixed32_end(u,i){return(u[i-4]|u[i-3]<<8|u[i-2]<<16|u[i-1]<<24)>>>0}Reader$1.prototype.fixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)};Reader$1.prototype.sfixed32=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function u(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readFloatLE(this.buf,this.pos);return this.pos+=4,i};Reader$1.prototype.double=function u(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var i=util$2.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,i};Reader$1.prototype.bytes=function u(){var i=this.uint32(),e=this.pos,t=this.pos+i;if(t>this.len)throw indexOutOfRange(this,i);if(this.pos+=i,Array.isArray(this.buf))return this.buf.slice(e,t);if(e===t){var r=util$2.Buffer;return r?r.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,t)};Reader$1.prototype.string=function u(){var i=this.bytes();return utf8.read(i,0,i.length)};Reader$1.prototype.skip=function u(i){if(typeof i=="number"){if(this.pos+i>this.len)throw indexOutOfRange(this,i);this.pos+=i}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this};Reader$1.prototype.skipType=function(u){switch(u){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(u=this.uint32()&7)!==4;)this.skipType(u);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+u+" at offset "+this.pos)}return this};Reader$1._configure=function(u){BufferReader$1=u,Reader$1.create=create(),BufferReader$1._configure();var i=util$2.Long?"toLong":"toNumber";util$2.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[i](!1)},uint64:function(){return readLongVarint.call(this)[i](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[i](!1)},fixed64:function(){return readFixed64.call(this)[i](!0)},sfixed64:function(){return readFixed64.call(this)[i](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$1=requireMinimal();function BufferReader(u){Reader.call(this,u)}BufferReader._configure=function(){util$1.Buffer&&(BufferReader.prototype._slice=util$1.Buffer.prototype.slice)};BufferReader.prototype.string=function u(){var i=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+i,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+i,this.len))};BufferReader._configure();var rpc={},service=Service,util=requireMinimal();(Service.prototype=Object.create(util.EventEmitter.prototype)).constructor=Service;function Service(u,i,e){if(typeof u!="function")throw TypeError("rpcImpl must be a function");util.EventEmitter.call(this),this.rpcImpl=u,this.requestDelimited=!!i,this.responseDelimited=!!e}Service.prototype.rpcCall=function u(i,e,t,r,n){if(!r)throw TypeError("request must be specified");var o=this;if(!n)return util.asPromise(u,o,i,e,t,r);if(!o.rpcImpl){setTimeout(function(){n(Error("already ended"))},0);return}try{return o.rpcImpl(i,e[o.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(a,f){if(a)return o.emit("error",a,i),n(a);if(f===null){o.end(!0);return}if(!(f instanceof t))try{f=t[o.responseDelimited?"decodeDelimited":"decode"](f)}catch(d){return o.emit("error",d,i),n(d)}return o.emit("data",f,i),n(null,f)})}catch(l){o.emit("error",l,i),setTimeout(function(){n(l)},0);return}};Service.prototype.end=function u(i){return this.rpcImpl&&(i||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this};(function(u){var i=u;i.Service=service})(rpc);var roots={};(function(u){var i=u;i.build="minimal",i.Writer=writer,i.BufferWriter=writer_buffer,i.Reader=reader,i.BufferReader=reader_buffer,i.util=requireMinimal(),i.rpc=rpc,i.roots=roots,i.configure=e;function e(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}e()})(indexMinimal);var minimal=indexMinimal;const $protobuf=getDefaultExportFromCjs(minimal),$Reader=$protobuf.Reader,$Writer=$protobuf.Writer,$util=$protobuf.util,$root=$protobuf.roots.onnx||($protobuf.roots.onnx={});$root.onnx=(()=>{const u={};return u.Version=function(){const i={},e=Object.create(i);return e[i[0]="_START_VERSION"]=0,e[i[1]="IR_VERSION_2017_10_10"]=1,e[i[2]="IR_VERSION_2017_10_30"]=2,e[i[3]="IR_VERSION_2017_11_3"]=3,e[i[4]="IR_VERSION_2019_1_22"]=4,e[i[5]="IR_VERSION_2019_3_18"]=5,e[i[6]="IR_VERSION_2019_9_19"]=6,e[i[7]="IR_VERSION_2020_5_8"]=7,e[i[8]="IR_VERSION_2021_7_30"]=8,e[i[9]="IR_VERSION_2023_5_5"]=9,e[i[10]="IR_VERSION"]=10,e}(),u.AttributeProto=function(){function i(e){if(this.floats=[],this.ints=[],this.strings=[],this.tensors=[],this.graphs=[],this.sparseTensors=[],this.typeProtos=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 21:{o.refAttrName=t.string();break}case 13:{o.docString=t.string();break}case 20:{o.type=t.int32();break}case 2:{o.f=t.float();break}case 3:{o.i=t.int64();break}case 4:{o.s=t.bytes();break}case 5:{o.t=$root.onnx.TensorProto.decode(t,t.uint32());break}case 6:{o.g=$root.onnx.GraphProto.decode(t,t.uint32());break}case 22:{o.sparseTensor=$root.onnx.SparseTensorProto.decode(t,t.uint32());break}case 14:{o.tp=$root.onnx.TypeProto.decode(t,t.uint32());break}case 7:{if(o.floats&&o.floats.length||(o.floats=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.i.high>>>0).toNumber())),t.s!=null&&(typeof t.s=="string"?$util.base64.decode(t.s,r.s=$util.newBuffer($util.base64.length(t.s)),0):t.s.length>=0&&(r.s=t.s)),t.t!=null){if(typeof t.t!="object")throw TypeError(".onnx.AttributeProto.t: object expected");r.t=$root.onnx.TensorProto.fromObject(t.t)}if(t.g!=null){if(typeof t.g!="object")throw TypeError(".onnx.AttributeProto.g: object expected");r.g=$root.onnx.GraphProto.fromObject(t.g)}if(t.sparseTensor!=null){if(typeof t.sparseTensor!="object")throw TypeError(".onnx.AttributeProto.sparseTensor: object expected");r.sparseTensor=$root.onnx.SparseTensorProto.fromObject(t.sparseTensor)}if(t.tp!=null){if(typeof t.tp!="object")throw TypeError(".onnx.AttributeProto.tp: object expected");r.tp=$root.onnx.TypeProto.fromObject(t.tp)}if(t.floats){if(!Array.isArray(t.floats))throw TypeError(".onnx.AttributeProto.floats: array expected");r.floats=[];for(let n=0;n>>0,t.ints[n].high>>>0).toNumber())}if(t.strings){if(!Array.isArray(t.strings))throw TypeError(".onnx.AttributeProto.strings: array expected");r.strings=[];for(let n=0;n=0&&(r.strings[n]=t.strings[n])}if(t.tensors){if(!Array.isArray(t.tensors))throw TypeError(".onnx.AttributeProto.tensors: array expected");r.tensors=[];for(let n=0;n>>0,t.i.high>>>0).toNumber():t.i),t.s!=null&&t.hasOwnProperty("s")&&(n.s=r.bytes===String?$util.base64.encode(t.s,0,t.s.length):r.bytes===Array?Array.prototype.slice.call(t.s):t.s),t.t!=null&&t.hasOwnProperty("t")&&(n.t=$root.onnx.TensorProto.toObject(t.t,r)),t.g!=null&&t.hasOwnProperty("g")&&(n.g=$root.onnx.GraphProto.toObject(t.g,r)),t.floats&&t.floats.length){n.floats=[];for(let o=0;o>>0,t.ints[o].high>>>0).toNumber():t.ints[o]}if(t.strings&&t.strings.length){n.strings=[];for(let o=0;o>>3){case 1:{o.name=t.string();break}case 2:{o.type=$root.onnx.TypeProto.decode(t,t.uint32());break}case 3:{o.docString=t.string();break}case 4:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.type!=null&&t.hasOwnProperty("type")){let r=$root.onnx.TypeProto.verify(t.type);if(r)return"type."+r}if(t.docString!=null&&t.hasOwnProperty("docString")&&!$util.isString(t.docString))return"docString: string expected";if(t.metadataProps!=null&&t.hasOwnProperty("metadataProps")){if(!Array.isArray(t.metadataProps))return"metadataProps: array expected";for(let r=0;r>>3){case 1:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 2:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 3:{o.name=t.string();break}case 4:{o.opType=t.string();break}case 7:{o.domain=t.string();break}case 8:{o.overload=t.string();break}case 5:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 6:{o.docString=t.string();break}case 9:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;r>>3){case 1:{o.initialization=$root.onnx.GraphProto.decode(t,t.uint32());break}case 2:{o.algorithm=$root.onnx.GraphProto.decode(t,t.uint32());break}case 3:{o.initializationBinding&&o.initializationBinding.length||(o.initializationBinding=[]),o.initializationBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 4:{o.updateBinding&&o.updateBinding.length||(o.updateBinding=[]),o.updateBinding.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.initialization!=null&&t.hasOwnProperty("initialization")){let r=$root.onnx.GraphProto.verify(t.initialization);if(r)return"initialization."+r}if(t.algorithm!=null&&t.hasOwnProperty("algorithm")){let r=$root.onnx.GraphProto.verify(t.algorithm);if(r)return"algorithm."+r}if(t.initializationBinding!=null&&t.hasOwnProperty("initializationBinding")){if(!Array.isArray(t.initializationBinding))return"initializationBinding: array expected";for(let r=0;r>>3){case 1:{o.irVersion=t.int64();break}case 8:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 2:{o.producerName=t.string();break}case 3:{o.producerVersion=t.string();break}case 4:{o.domain=t.string();break}case 5:{o.modelVersion=t.int64();break}case 6:{o.docString=t.string();break}case 7:{o.graph=$root.onnx.GraphProto.decode(t,t.uint32());break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}case 20:{o.trainingInfo&&o.trainingInfo.length||(o.trainingInfo=[]),o.trainingInfo.push($root.onnx.TrainingInfoProto.decode(t,t.uint32()));break}case 25:{o.functions&&o.functions.length||(o.functions=[]),o.functions.push($root.onnx.FunctionProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.irVersion!=null&&t.hasOwnProperty("irVersion")&&!$util.isInteger(t.irVersion)&&!(t.irVersion&&$util.isInteger(t.irVersion.low)&&$util.isInteger(t.irVersion.high)))return"irVersion: integer|Long expected";if(t.opsetImport!=null&&t.hasOwnProperty("opsetImport")){if(!Array.isArray(t.opsetImport))return"opsetImport: array expected";for(let r=0;r>>0,t.irVersion.high>>>0).toNumber())),t.opsetImport){if(!Array.isArray(t.opsetImport))throw TypeError(".onnx.ModelProto.opsetImport: array expected");r.opsetImport=[];for(let n=0;n>>0,t.modelVersion.high>>>0).toNumber())),t.docString!=null&&(r.docString=String(t.docString)),t.graph!=null){if(typeof t.graph!="object")throw TypeError(".onnx.ModelProto.graph: object expected");r.graph=$root.onnx.GraphProto.fromObject(t.graph)}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.ModelProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.irVersion.high>>>0).toNumber():t.irVersion),t.producerName!=null&&t.hasOwnProperty("producerName")&&(n.producerName=t.producerName),t.producerVersion!=null&&t.hasOwnProperty("producerVersion")&&(n.producerVersion=t.producerVersion),t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.modelVersion!=null&&t.hasOwnProperty("modelVersion")&&(typeof t.modelVersion=="number"?n.modelVersion=r.longs===String?String(t.modelVersion):t.modelVersion:n.modelVersion=r.longs===String?$util.Long.prototype.toString.call(t.modelVersion):r.longs===Number?new $util.LongBits(t.modelVersion.low>>>0,t.modelVersion.high>>>0).toNumber():t.modelVersion),t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.graph!=null&&t.hasOwnProperty("graph")&&(n.graph=$root.onnx.GraphProto.toObject(t.graph,r)),t.opsetImport&&t.opsetImport.length){n.opsetImport=[];for(let o=0;o>>3){case 1:{o.key=t.string();break}case 2:{o.value=t.string();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.key!=null&&t.hasOwnProperty("key")&&!$util.isString(t.key)?"key: string expected":t.value!=null&&t.hasOwnProperty("value")&&!$util.isString(t.value)?"value: string expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.StringStringEntryProto)return t;let r=new $root.onnx.StringStringEntryProto;return t.key!=null&&(r.key=String(t.key)),t.value!=null&&(r.value=String(t.value)),r},i.toObject=function(t,r){r||(r={});let n={};return r.defaults&&(n.key="",n.value=""),t.key!=null&&t.hasOwnProperty("key")&&(n.key=t.key),t.value!=null&&t.hasOwnProperty("value")&&(n.value=t.value),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.StringStringEntryProto"},i}(),u.TensorAnnotation=function(){function i(e){if(this.quantParameterTensorNames=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.tensorName=t.string();break}case 2:{o.quantParameterTensorNames&&o.quantParameterTensorNames.length||(o.quantParameterTensorNames=[]),o.quantParameterTensorNames.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.tensorName!=null&&t.hasOwnProperty("tensorName")&&!$util.isString(t.tensorName))return"tensorName: string expected";if(t.quantParameterTensorNames!=null&&t.hasOwnProperty("quantParameterTensorNames")){if(!Array.isArray(t.quantParameterTensorNames))return"quantParameterTensorNames: array expected";for(let r=0;r>>3){case 1:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 2:{o.name=t.string();break}case 5:{o.initializer&&o.initializer.length||(o.initializer=[]),o.initializer.push($root.onnx.TensorProto.decode(t,t.uint32()));break}case 15:{o.sparseInitializer&&o.sparseInitializer.length||(o.sparseInitializer=[]),o.sparseInitializer.push($root.onnx.SparseTensorProto.decode(t,t.uint32()));break}case 10:{o.docString=t.string();break}case 11:{o.input&&o.input.length||(o.input=[]),o.input.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 12:{o.output&&o.output.length||(o.output=[]),o.output.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 13:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.quantizationAnnotation&&o.quantizationAnnotation.length||(o.quantizationAnnotation=[]),o.quantizationAnnotation.push($root.onnx.TensorAnnotation.decode(t,t.uint32()));break}case 16:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.node!=null&&t.hasOwnProperty("node")){if(!Array.isArray(t.node))return"node: array expected";for(let r=0;r>>3){case 1:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}if(t.dataType!=null&&(r.dataType=t.dataType|0),t.segment!=null){if(typeof t.segment!="object")throw TypeError(".onnx.TensorProto.segment: object expected");r.segment=$root.onnx.TensorProto.Segment.fromObject(t.segment)}if(t.floatData){if(!Array.isArray(t.floatData))throw TypeError(".onnx.TensorProto.floatData: array expected");r.floatData=[];for(let n=0;n=0&&(r.stringData[n]=t.stringData[n])}if(t.int64Data){if(!Array.isArray(t.int64Data))throw TypeError(".onnx.TensorProto.int64Data: array expected");r.int64Data=[];for(let n=0;n>>0,t.int64Data[n].high>>>0).toNumber())}if(t.name!=null&&(r.name=String(t.name)),t.docString!=null&&(r.docString=String(t.docString)),t.rawData!=null&&(typeof t.rawData=="string"?$util.base64.decode(t.rawData,r.rawData=$util.newBuffer($util.base64.length(t.rawData)),0):t.rawData.length>=0&&(r.rawData=t.rawData)),t.externalData){if(!Array.isArray(t.externalData))throw TypeError(".onnx.TensorProto.externalData: array expected");r.externalData=[];for(let n=0;n>>0,t.uint64Data[n].high>>>0).toNumber(!0))}if(t.metadataProps){if(!Array.isArray(t.metadataProps))throw TypeError(".onnx.TensorProto.metadataProps: array expected");r.metadataProps=[];for(let n=0;n>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}if(t.dataType!=null&&t.hasOwnProperty("dataType")&&(n.dataType=t.dataType),t.segment!=null&&t.hasOwnProperty("segment")&&(n.segment=$root.onnx.TensorProto.Segment.toObject(t.segment,r)),t.floatData&&t.floatData.length){n.floatData=[];for(let o=0;o>>0,t.int64Data[o].high>>>0).toNumber():t.int64Data[o]}if(t.name!=null&&t.hasOwnProperty("name")&&(n.name=t.name),t.rawData!=null&&t.hasOwnProperty("rawData")&&(n.rawData=r.bytes===String?$util.base64.encode(t.rawData,0,t.rawData.length):r.bytes===Array?Array.prototype.slice.call(t.rawData):t.rawData),t.doubleData&&t.doubleData.length){n.doubleData=[];for(let o=0;o>>0,t.uint64Data[o].high>>>0).toNumber(!0):t.uint64Data[o]}if(t.docString!=null&&t.hasOwnProperty("docString")&&(n.docString=t.docString),t.externalData&&t.externalData.length){n.externalData=[];for(let o=0;o>>3){case 1:{l.begin=r.int64();break}case 2:{l.end=r.int64();break}default:r.skipType(a&7);break}}return l},e.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},e.verify=function(r){return typeof r!="object"||r===null?"object expected":r.begin!=null&&r.hasOwnProperty("begin")&&!$util.isInteger(r.begin)&&!(r.begin&&$util.isInteger(r.begin.low)&&$util.isInteger(r.begin.high))?"begin: integer|Long expected":r.end!=null&&r.hasOwnProperty("end")&&!$util.isInteger(r.end)&&!(r.end&&$util.isInteger(r.end.low)&&$util.isInteger(r.end.high))?"end: integer|Long expected":null},e.fromObject=function(r){if(r instanceof $root.onnx.TensorProto.Segment)return r;let n=new $root.onnx.TensorProto.Segment;return r.begin!=null&&($util.Long?(n.begin=$util.Long.fromValue(r.begin)).unsigned=!1:typeof r.begin=="string"?n.begin=parseInt(r.begin,10):typeof r.begin=="number"?n.begin=r.begin:typeof r.begin=="object"&&(n.begin=new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber())),r.end!=null&&($util.Long?(n.end=$util.Long.fromValue(r.end)).unsigned=!1:typeof r.end=="string"?n.end=parseInt(r.end,10):typeof r.end=="number"?n.end=r.end:typeof r.end=="object"&&(n.end=new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber())),n},e.toObject=function(r,n){n||(n={});let o={};if(n.defaults){if($util.Long){let l=new $util.Long(0,0,!1);o.begin=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.begin=n.longs===String?"0":0;if($util.Long){let l=new $util.Long(0,0,!1);o.end=n.longs===String?l.toString():n.longs===Number?l.toNumber():l}else o.end=n.longs===String?"0":0}return r.begin!=null&&r.hasOwnProperty("begin")&&(typeof r.begin=="number"?o.begin=n.longs===String?String(r.begin):r.begin:o.begin=n.longs===String?$util.Long.prototype.toString.call(r.begin):n.longs===Number?new $util.LongBits(r.begin.low>>>0,r.begin.high>>>0).toNumber():r.begin),r.end!=null&&r.hasOwnProperty("end")&&(typeof r.end=="number"?o.end=n.longs===String?String(r.end):r.end:o.end=n.longs===String?$util.Long.prototype.toString.call(r.end):n.longs===Number?new $util.LongBits(r.end.low>>>0,r.end.high>>>0).toNumber():r.end),o},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TensorProto.Segment"},e}(),i.DataLocation=function(){const e={},t=Object.create(e);return t[e[0]="DEFAULT"]=0,t[e[1]="EXTERNAL"]=1,t}(),i}(),u.SparseTensorProto=function(){function i(e){if(this.dims=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.values=$root.onnx.TensorProto.decode(t,t.uint32());break}case 2:{o.indices=$root.onnx.TensorProto.decode(t,t.uint32());break}case 3:{if(o.dims&&o.dims.length||(o.dims=[]),(l&7)===2){let a=t.uint32()+t.pos;for(;t.pos>>0,t.dims[n].high>>>0).toNumber())}return r},i.toObject=function(t,r){r||(r={});let n={};if((r.arrays||r.defaults)&&(n.dims=[]),r.defaults&&(n.values=null,n.indices=null),t.values!=null&&t.hasOwnProperty("values")&&(n.values=$root.onnx.TensorProto.toObject(t.values,r)),t.indices!=null&&t.hasOwnProperty("indices")&&(n.indices=$root.onnx.TensorProto.toObject(t.indices,r)),t.dims&&t.dims.length){n.dims=[];for(let o=0;o>>0,t.dims[o].high>>>0).toNumber():t.dims[o]}return n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.SparseTensorProto"},i}(),u.TensorShapeProto=function(){function i(e){if(this.dim=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.dim&&o.dim.length||(o.dim=[]),o.dim.push($root.onnx.TensorShapeProto.Dimension.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.dim!=null&&t.hasOwnProperty("dim")){if(!Array.isArray(t.dim))return"dim: array expected";for(let r=0;r>>3){case 1:{a.dimValue=n.int64();break}case 2:{a.dimParam=n.string();break}case 3:{a.denotation=n.string();break}default:n.skipType(f&7);break}}return a},e.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},e.verify=function(n){if(typeof n!="object"||n===null)return"object expected";let o={};if(n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(o.value=1,!$util.isInteger(n.dimValue)&&!(n.dimValue&&$util.isInteger(n.dimValue.low)&&$util.isInteger(n.dimValue.high))))return"dimValue: integer|Long expected";if(n.dimParam!=null&&n.hasOwnProperty("dimParam")){if(o.value===1)return"value: multiple values";if(o.value=1,!$util.isString(n.dimParam))return"dimParam: string expected"}return n.denotation!=null&&n.hasOwnProperty("denotation")&&!$util.isString(n.denotation)?"denotation: string expected":null},e.fromObject=function(n){if(n instanceof $root.onnx.TensorShapeProto.Dimension)return n;let o=new $root.onnx.TensorShapeProto.Dimension;return n.dimValue!=null&&($util.Long?(o.dimValue=$util.Long.fromValue(n.dimValue)).unsigned=!1:typeof n.dimValue=="string"?o.dimValue=parseInt(n.dimValue,10):typeof n.dimValue=="number"?o.dimValue=n.dimValue:typeof n.dimValue=="object"&&(o.dimValue=new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber())),n.dimParam!=null&&(o.dimParam=String(n.dimParam)),n.denotation!=null&&(o.denotation=String(n.denotation)),o},e.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.denotation=""),n.dimValue!=null&&n.hasOwnProperty("dimValue")&&(typeof n.dimValue=="number"?l.dimValue=o.longs===String?String(n.dimValue):n.dimValue:l.dimValue=o.longs===String?$util.Long.prototype.toString.call(n.dimValue):o.longs===Number?new $util.LongBits(n.dimValue.low>>>0,n.dimValue.high>>>0).toNumber():n.dimValue,o.oneofs&&(l.value="dimValue")),n.dimParam!=null&&n.hasOwnProperty("dimParam")&&(l.dimParam=n.dimParam,o.oneofs&&(l.value="dimParam")),n.denotation!=null&&n.hasOwnProperty("denotation")&&(l.denotation=n.denotation),l},e.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},e.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TensorShapeProto.Dimension"},e}(),i}(),u.TypeProto=function(){function i(t){if(t)for(let r=Object.keys(t),n=0;n>>3){case 1:{l.tensorType=$root.onnx.TypeProto.Tensor.decode(r,r.uint32());break}case 4:{l.sequenceType=$root.onnx.TypeProto.Sequence.decode(r,r.uint32());break}case 5:{l.mapType=$root.onnx.TypeProto.Map.decode(r,r.uint32());break}case 9:{l.optionalType=$root.onnx.TypeProto.Optional.decode(r,r.uint32());break}case 8:{l.sparseTensorType=$root.onnx.TypeProto.SparseTensor.decode(r,r.uint32());break}case 6:{l.denotation=r.string();break}default:r.skipType(a&7);break}}return l},i.decodeDelimited=function(r){return r instanceof $Reader||(r=new $Reader(r)),this.decode(r,r.uint32())},i.verify=function(r){if(typeof r!="object"||r===null)return"object expected";let n={};if(r.tensorType!=null&&r.hasOwnProperty("tensorType")){n.value=1;{let o=$root.onnx.TypeProto.Tensor.verify(r.tensorType);if(o)return"tensorType."+o}}if(r.sequenceType!=null&&r.hasOwnProperty("sequenceType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Sequence.verify(r.sequenceType);if(o)return"sequenceType."+o}}if(r.mapType!=null&&r.hasOwnProperty("mapType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Map.verify(r.mapType);if(o)return"mapType."+o}}if(r.optionalType!=null&&r.hasOwnProperty("optionalType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.Optional.verify(r.optionalType);if(o)return"optionalType."+o}}if(r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")){if(n.value===1)return"value: multiple values";n.value=1;{let o=$root.onnx.TypeProto.SparseTensor.verify(r.sparseTensorType);if(o)return"sparseTensorType."+o}}return r.denotation!=null&&r.hasOwnProperty("denotation")&&!$util.isString(r.denotation)?"denotation: string expected":null},i.fromObject=function(r){if(r instanceof $root.onnx.TypeProto)return r;let n=new $root.onnx.TypeProto;if(r.tensorType!=null){if(typeof r.tensorType!="object")throw TypeError(".onnx.TypeProto.tensorType: object expected");n.tensorType=$root.onnx.TypeProto.Tensor.fromObject(r.tensorType)}if(r.sequenceType!=null){if(typeof r.sequenceType!="object")throw TypeError(".onnx.TypeProto.sequenceType: object expected");n.sequenceType=$root.onnx.TypeProto.Sequence.fromObject(r.sequenceType)}if(r.mapType!=null){if(typeof r.mapType!="object")throw TypeError(".onnx.TypeProto.mapType: object expected");n.mapType=$root.onnx.TypeProto.Map.fromObject(r.mapType)}if(r.optionalType!=null){if(typeof r.optionalType!="object")throw TypeError(".onnx.TypeProto.optionalType: object expected");n.optionalType=$root.onnx.TypeProto.Optional.fromObject(r.optionalType)}if(r.sparseTensorType!=null){if(typeof r.sparseTensorType!="object")throw TypeError(".onnx.TypeProto.sparseTensorType: object expected");n.sparseTensorType=$root.onnx.TypeProto.SparseTensor.fromObject(r.sparseTensorType)}return r.denotation!=null&&(n.denotation=String(r.denotation)),n},i.toObject=function(r,n){n||(n={});let o={};return n.defaults&&(o.denotation=""),r.tensorType!=null&&r.hasOwnProperty("tensorType")&&(o.tensorType=$root.onnx.TypeProto.Tensor.toObject(r.tensorType,n),n.oneofs&&(o.value="tensorType")),r.sequenceType!=null&&r.hasOwnProperty("sequenceType")&&(o.sequenceType=$root.onnx.TypeProto.Sequence.toObject(r.sequenceType,n),n.oneofs&&(o.value="sequenceType")),r.mapType!=null&&r.hasOwnProperty("mapType")&&(o.mapType=$root.onnx.TypeProto.Map.toObject(r.mapType,n),n.oneofs&&(o.value="mapType")),r.denotation!=null&&r.hasOwnProperty("denotation")&&(o.denotation=r.denotation),r.sparseTensorType!=null&&r.hasOwnProperty("sparseTensorType")&&(o.sparseTensorType=$root.onnx.TypeProto.SparseTensor.toObject(r.sparseTensorType,n),n.oneofs&&(o.value="sparseTensorType")),r.optionalType!=null&&r.hasOwnProperty("optionalType")&&(o.optionalType=$root.onnx.TypeProto.Optional.toObject(r.optionalType,n),n.oneofs&&(o.value="optionalType")),o},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(r){return r===void 0&&(r="type.googleapis.com"),r+"/onnx.TypeProto"},i.Tensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Tensor)return n;let o=new $root.onnx.TypeProto.Tensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.Tensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Tensor"},t}(),i.Sequence=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Sequence)return n;let o=new $root.onnx.TypeProto.Sequence;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Sequence.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Sequence"},t}(),i.Map=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.keyType=n.int32();break}case 2:{a.valueType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.keyType!=null&&n.hasOwnProperty("keyType")&&!$util.isInteger(n.keyType))return"keyType: integer expected";if(n.valueType!=null&&n.hasOwnProperty("valueType")){let o=$root.onnx.TypeProto.verify(n.valueType);if(o)return"valueType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Map)return n;let o=new $root.onnx.TypeProto.Map;if(n.keyType!=null&&(o.keyType=n.keyType|0),n.valueType!=null){if(typeof n.valueType!="object")throw TypeError(".onnx.TypeProto.Map.valueType: object expected");o.valueType=$root.onnx.TypeProto.fromObject(n.valueType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.keyType=0,l.valueType=null),n.keyType!=null&&n.hasOwnProperty("keyType")&&(l.keyType=n.keyType),n.valueType!=null&&n.hasOwnProperty("valueType")&&(l.valueType=$root.onnx.TypeProto.toObject(n.valueType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Map"},t}(),i.Optional=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=$root.onnx.TypeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")){let o=$root.onnx.TypeProto.verify(n.elemType);if(o)return"elemType."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.Optional)return n;let o=new $root.onnx.TypeProto.Optional;if(n.elemType!=null){if(typeof n.elemType!="object")throw TypeError(".onnx.TypeProto.Optional.elemType: object expected");o.elemType=$root.onnx.TypeProto.fromObject(n.elemType)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=$root.onnx.TypeProto.toObject(n.elemType,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.Optional"},t}(),i.SparseTensor=function(){function t(r){if(r)for(let n=Object.keys(r),o=0;o>>3){case 1:{a.elemType=n.int32();break}case 2:{a.shape=$root.onnx.TensorShapeProto.decode(n,n.uint32());break}default:n.skipType(f&7);break}}return a},t.decodeDelimited=function(n){return n instanceof $Reader||(n=new $Reader(n)),this.decode(n,n.uint32())},t.verify=function(n){if(typeof n!="object"||n===null)return"object expected";if(n.elemType!=null&&n.hasOwnProperty("elemType")&&!$util.isInteger(n.elemType))return"elemType: integer expected";if(n.shape!=null&&n.hasOwnProperty("shape")){let o=$root.onnx.TensorShapeProto.verify(n.shape);if(o)return"shape."+o}return null},t.fromObject=function(n){if(n instanceof $root.onnx.TypeProto.SparseTensor)return n;let o=new $root.onnx.TypeProto.SparseTensor;if(n.elemType!=null&&(o.elemType=n.elemType|0),n.shape!=null){if(typeof n.shape!="object")throw TypeError(".onnx.TypeProto.SparseTensor.shape: object expected");o.shape=$root.onnx.TensorShapeProto.fromObject(n.shape)}return o},t.toObject=function(n,o){o||(o={});let l={};return o.defaults&&(l.elemType=0,l.shape=null),n.elemType!=null&&n.hasOwnProperty("elemType")&&(l.elemType=n.elemType),n.shape!=null&&n.hasOwnProperty("shape")&&(l.shape=$root.onnx.TensorShapeProto.toObject(n.shape,o)),l},t.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},t.getTypeUrl=function(n){return n===void 0&&(n="type.googleapis.com"),n+"/onnx.TypeProto.SparseTensor"},t}(),i}(),u.OperatorSetIdProto=function(){function i(e){if(e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.domain=t.string();break}case 2:{o.version=t.int64();break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){return typeof t!="object"||t===null?"object expected":t.domain!=null&&t.hasOwnProperty("domain")&&!$util.isString(t.domain)?"domain: string expected":t.version!=null&&t.hasOwnProperty("version")&&!$util.isInteger(t.version)&&!(t.version&&$util.isInteger(t.version.low)&&$util.isInteger(t.version.high))?"version: integer|Long expected":null},i.fromObject=function(t){if(t instanceof $root.onnx.OperatorSetIdProto)return t;let r=new $root.onnx.OperatorSetIdProto;return t.domain!=null&&(r.domain=String(t.domain)),t.version!=null&&($util.Long?(r.version=$util.Long.fromValue(t.version)).unsigned=!1:typeof t.version=="string"?r.version=parseInt(t.version,10):typeof t.version=="number"?r.version=t.version:typeof t.version=="object"&&(r.version=new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber())),r},i.toObject=function(t,r){r||(r={});let n={};if(r.defaults)if(n.domain="",$util.Long){let o=new $util.Long(0,0,!1);n.version=r.longs===String?o.toString():r.longs===Number?o.toNumber():o}else n.version=r.longs===String?"0":0;return t.domain!=null&&t.hasOwnProperty("domain")&&(n.domain=t.domain),t.version!=null&&t.hasOwnProperty("version")&&(typeof t.version=="number"?n.version=r.longs===String?String(t.version):t.version:n.version=r.longs===String?$util.Long.prototype.toString.call(t.version):r.longs===Number?new $util.LongBits(t.version.low>>>0,t.version.high>>>0).toNumber():t.version),n},i.prototype.toJSON=function(){return this.constructor.toObject(this,$protobuf.util.toJSONOptions)},i.getTypeUrl=function(t){return t===void 0&&(t="type.googleapis.com"),t+"/onnx.OperatorSetIdProto"},i}(),u.OperatorStatus=function(){const i={},e=Object.create(i);return e[i[0]="EXPERIMENTAL"]=0,e[i[1]="STABLE"]=1,e}(),u.FunctionProto=function(){function i(e){if(this.input=[],this.output=[],this.attribute=[],this.attributeProto=[],this.node=[],this.opsetImport=[],this.valueInfo=[],this.metadataProps=[],e)for(let t=Object.keys(e),r=0;r>>3){case 1:{o.name=t.string();break}case 4:{o.input&&o.input.length||(o.input=[]),o.input.push(t.string());break}case 5:{o.output&&o.output.length||(o.output=[]),o.output.push(t.string());break}case 6:{o.attribute&&o.attribute.length||(o.attribute=[]),o.attribute.push(t.string());break}case 11:{o.attributeProto&&o.attributeProto.length||(o.attributeProto=[]),o.attributeProto.push($root.onnx.AttributeProto.decode(t,t.uint32()));break}case 7:{o.node&&o.node.length||(o.node=[]),o.node.push($root.onnx.NodeProto.decode(t,t.uint32()));break}case 8:{o.docString=t.string();break}case 9:{o.opsetImport&&o.opsetImport.length||(o.opsetImport=[]),o.opsetImport.push($root.onnx.OperatorSetIdProto.decode(t,t.uint32()));break}case 10:{o.domain=t.string();break}case 13:{o.overload=t.string();break}case 12:{o.valueInfo&&o.valueInfo.length||(o.valueInfo=[]),o.valueInfo.push($root.onnx.ValueInfoProto.decode(t,t.uint32()));break}case 14:{o.metadataProps&&o.metadataProps.length||(o.metadataProps=[]),o.metadataProps.push($root.onnx.StringStringEntryProto.decode(t,t.uint32()));break}default:t.skipType(l&7);break}}return o},i.decodeDelimited=function(t){return t instanceof $Reader||(t=new $Reader(t)),this.decode(t,t.uint32())},i.verify=function(t){if(typeof t!="object"||t===null)return"object expected";if(t.name!=null&&t.hasOwnProperty("name")&&!$util.isString(t.name))return"name: string expected";if(t.input!=null&&t.hasOwnProperty("input")){if(!Array.isArray(t.input))return"input: array expected";for(let r=0;re.toString());return e=>new VStack(new HStack(new Text(`${e||u.name}:`),new HStack(new Text(dataTypeToString(u.dataType)),new Text(`<${i.join("x")}>`)).with({spacing:4})).with({spacing:4,spread:!0})).with({spacing:4})}function toTooltip(u){const i=[new VStack(new Text("Name").with({fontWeight:500}),new Text(u.name||"none")).with({spacing:8})];return u.input&&i.push(new VStack(new Text("Inputs").with({fontWeight:500}),...u.input.map(e=>new Text(e))).with({spacing:8})),u.output&&i.push(new VStack(new Text("Outputs").with({fontWeight:500}),...u.output.map(e=>new Text(e))).with({spacing:8})),new Tooltip(new VStack(...i).with({spacing:8}))}function color(u){const i=colors.foreground;switch(u){case"Conv":return i.blue;case"Gather":case"MaxPool":case"SkipSimplifiedLayerNormalization":return i.green;case"Reshape":return i.orange;case"Sigmoid":case"Relu":return i.purple;default:return"black"}}function convertNode(u,i,e){const t=[];if(e.input){const r=(o,l)=>{const a=u.get(e.input?.[l]);a&&n.push(convertTensor(a)(o))},n=[];if(e.opType==="Conv")r("W",1);else if(e.opType==="Gemm")r("W",1),r("b",2);else if(e.opType==="Reshape")r("data",0),r("shape",1);else if(e.opType==="MatMulNBits")r("B",1),r("scales",2);else if(e.opType==="Gather")r("data",0);else if(e.opType==="SkipSimplifiedLayerNormalization")r("gamma",2);else if(e.opType==="GroupQueryAttention")r("cos_cache",7),r("sin_cache",8);else for(const[o,l]of e.input.entries()){const a=u.get(l);a&&n.push(convertTensor(a)(`${o}-${l}`))}n.length>0&&t.push(new VStack(...n).with({spacing:4}))}return new Node(i,new HStack(new Text(e.opType||"Unknown Op").with({fontWeight:500,foregroundColor:color(e.opType)}),new Text(i).with({foregroundColor:colors.foreground.grayTertiary})).with({spread:!0,spacing:8}),...t).with({tooltip:()=>toTooltip(e)})}function convertValueInfo(u,i,e){const t=e.type?.tensorType?.shape?.dim||[];return new Node(i,new VStack(new Text(u).with({fontWeight:500})).with({spacing:8}),new HStack(new Text(dataTypeToString(e.type?.tensorType?.elemType)),new Text(`<${t.map(r=>r.dimValue||0).join("x")}>`)).with({spacing:4})).with({borderDash:4}).with({tooltip:()=>new Tooltip(new Text(e.name||"none"))})}const MAX_MODULE_DEPTH=2;function createNetworkModel(u,i){const e={virtualGrouping:{threshold:1500,nodesPerModule:300},simplify:{threshold:200},...i},t=$root.onnx.ModelProto.decode(u);if(!t.graph)throw new Error("onnx file does not contain graph information");if(!t.graph.node)throw new Error("onnx file does not contain nodes");e.simplify&&t.graph.node.length>e.simplify.threshold&&console.info(`More than ${t.graph.node.length} nodes; creating a simplified representation.`);const n=new Network,o=new Map,l=new Set,a=new Map,f=new Map;if(!t.graph.initializer)throw new Error("graph does not have initializer information");for(const p of t.graph.initializer){if(!p.name)throw new Error("tensor does not have a name");const c=p.dims?.map(y=>y.toString())||[];a.set(p.name,{id:p.name,dims:c.join("x")});const h=p.name;f.set(h,p)}if(t.graph.node.forEach((p,c)=>{if(!p.opType)throw new Error("node does not have type");if(!p.output)throw new Error("node does not have output");const h=(p.name||"").split("/");h.pop();const y=h.slice(0,MAX_MODULE_DEPTH+1).join("/");y!==""&&l.add(y);const s=c.toString();switch(n.setNode(s,convertNode(f,s,p)),p.opType){case"Reshape":case"Conv":o.set(p.output[0],s);break;default:for(const P of p.output)P!==""&&o.set(P,s);break}}),!t.graph.input)throw new Error("graph does not have inputs");if(!t.graph.output)throw new Error("graph does not have outputs");const d=new Set(t.graph.initializer.map(p=>p.name));for(const p of t.graph.input)if(!d.has(p.name)){const c=`[vnode]${p.name}`,h=convertValueInfo("Input",c,p);n.setNode(c,h),o.set(p.name,c)}t.graph.output.forEach(p=>{const c=`[vnode]${p.name}`,h=convertValueInfo("Output",c,p);n.setNode(c,h);const y=o.get(p.name);y&&n.setEdge(y,c)}),t.graph.node.forEach((p,c)=>{const h=c.toString();if(!p.input)throw new Error("node does not have input");if(p.opType==="Conv"){const y=o.get(p.input[0]);y&&n.setEdge(y,h)}else if(p.opType!=="Reshape")for(const y of p.input){const s=o.get(y);s&&n.setEdge(s,h)}});for(const p of l){const c=p;n.setNode(c,new Node(c,new VStack(new Text("Module").with({fontWeight:500}),new Text(c)).with({spacing:8})).with({backgroundColor:colors.background.gray,badge:{color:"#8e8e8e",text:"+"}})),t.graph.node.forEach((h,y)=>{h.name?.includes(p)&&n.setParent(y.toString(),p)})}for(const p of n.nodes())n.childrenT(p).length===1&&n.removeNode(p);return n}export{createNetworkModel as c}; diff --git a/_app/immutable/chunks/paths.BILvqvyt.js b/_app/immutable/chunks/paths.BILvqvyt.js deleted file mode 100644 index 20be0a2..0000000 --- a/_app/immutable/chunks/paths.BILvqvyt.js +++ /dev/null @@ -1 +0,0 @@ -const s=globalThis.__sveltekit_1nkvss?.base??"/ml-mycelium",e=globalThis.__sveltekit_1nkvss?.assets??s;export{e as a,s as b}; diff --git a/_app/immutable/chunks/paths.CFq_Q8H9.js b/_app/immutable/chunks/paths.CFq_Q8H9.js new file mode 100644 index 0000000..78f2c45 --- /dev/null +++ b/_app/immutable/chunks/paths.CFq_Q8H9.js @@ -0,0 +1 @@ +const s=globalThis.__sveltekit_487yji?.base??"/ml-mycelium",e=globalThis.__sveltekit_487yji?.assets??s;export{e as a,s as b}; diff --git a/_app/immutable/chunks/viewer.BYFc8Cdc.js b/_app/immutable/chunks/viewer.BYFc8Cdc.js new file mode 100644 index 0000000..7367867 --- /dev/null +++ b/_app/immutable/chunks/viewer.BYFc8Cdc.js @@ -0,0 +1,3 @@ +import{S as ae,i as le,t as P,g as ce,e as fe,b as D,c as Z,a as oe,m as Q,d as J,f as Oo}from"./index.C7bWdOrd.js";import{n as Y,s as se,k as Ur,D as V,E as F,b as L,f as E,h as p,i as I,u as Kr,l as Zr,m as Qr,G as Jr,N as Qe,B as G,C as Ie,a as Ce,t as Ae,d as Te,v as Re,j as B,w as _t,z as H,A as Gt,p as nt,a2 as ei,x as ti,a3 as ue,a4 as Po,L as Lo,r as Xe,e as ne,c as re,q as ni,g as rt,a5 as Io,a6 as Ao,a7 as Wn,O as xt,a8 as Zt}from"./scheduler.BZf3Antt.js";import{e as ge,g as Je,u as St,o as Ot}from"./spread.CUGnlXHs.js";import{w as ln}from"./index.DrtbdpeK.js";const ri=typeof window<"u";let Ro=ri?()=>window.performance.now():()=>Date.now(),ii=ri?t=>requestAnimationFrame(t):Y;const Ue=new Set;function oi(t){Ue.forEach(e=>{e.c(t)||(Ue.delete(e),e.f())}),Ue.size!==0&&ii(oi)}function Do(t){let e;return Ue.size===0&&ii(oi),{promise:new Promise(n=>{Ue.add(e={c:t,f:n})}),abort(){Ue.delete(e)}}}const ye={black:"#000000",white:"#ffffff",foreground:{blue:"#0066CC",red:"#E30000",orange:"#BF4800",yellow:"#D08B00",green:"#008009",purple:"#6D56D6",gray:"#1D1D1F",graySecondary:"#6E6E73",graySecondaryAlt:"#515154",grayTertiary:"#86868B"},background:{gray:"rgb(250, 250, 250)",darkGray:"rgb(51,51,51)"}},jt={family:"SF Mono, ui-monospace, monospace",weight:{regular:200,semibold:500,bold:600}};let un=class st{x;y;k;constructor(e,n,r){this.x=e,this.y=n,this.k=r}static identity(){return new st(0,0,1)}translate(e,n){return e===0&&n===0?this:new st(this.x+this.k*e,this.y+this.k*n,this.k)}scale(e){return e===1?this:new st(this.x,this.y,this.k*e)}apply(e,n){return{x:e*this.k+this.x,y:n*this.k+this.y}}inverse(){return st.identity().scale(1/this.k).translate(-this.x,-this.y)}toString(){return`translate(${this.x},${this.y}) scale(${this.k})`}};var Bo={value:()=>{}};function Mn(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Pt.prototype=Mn.prototype={constructor:Pt,on:function(t,e){var n=this._,r=$o(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Gn.hasOwnProperty(e)?{space:Gn[e],local:t}:t}function Fo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===hn&&e.documentElement.namespaceURI===hn?e.createElement(t):e.createElementNS(n,t)}}function Wo(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function si(t){var e=Yt(t);return(e.local?Wo:Fo)(e)}function zo(){}function Nn(t){return t==null?zo:function(){return this.querySelector(t)}}function Go(t){typeof t!="function"&&(t=Nn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=w&&(w=b+1);!(_=T[w])&&++w=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function ps(t){t||(t=gs);function e(c,f){return c&&f?t(c.__data__,f.__data__):!c-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function ms(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function ws(){return Array.from(this)}function _s(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Ss:typeof e=="function"?Ps:Os)(t,e,n??"")):et(this.node(),t)}function et(t,e){return t.style.getPropertyValue(e)||ci(t).getComputedStyle(t,null).getPropertyValue(e)}function Is(t){return function(){delete this[t]}}function As(t,e){return function(){this[t]=e}}function Rs(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ds(t,e){return arguments.length>1?this.each((e==null?Is:typeof e=="function"?Rs:As)(t,e)):this.node()[t]}function fi(t){return t.trim().split(/^|\s+/)}function Cn(t){return t.classList||new di(t)}function di(t){this._node=t,this._names=fi(t.getAttribute("class")||"")}di.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function pi(t,e){for(var n=Cn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function ha(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n()=>t;function cn(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:h,dispatch:u}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:h,enumerable:!0,configurable:!0},_:{value:u}})}cn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function xa(t){return!t.ctrlKey&&!t.button}function Ea(){return this.parentNode}function ka(t,e){return e??{x:t.x,y:t.y}}function Ma(){return navigator.maxTouchPoints||"ontouchstart"in this}function Na(){var t=xa,e=Ea,n=ka,r=Ma,i={},o=Mn("start","drag","end"),s=0,a,l,h,u,c=0;function f(m){m.on("mousedown.drag",d).filter(r).on("touchstart.drag",T).on("touchmove.drag",S,ya).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(m,_){if(!(u||!t.call(this,m,_))){var k=w(this,e.call(this,m,_),m,_,"mouse");k&&(ct(m.view).on("mousemove.drag",g,ft).on("mouseup.drag",y,ft),ba(m.view),Qt(m),h=!1,a=m.clientX,l=m.clientY,k("start",m))}}function g(m){if(Ke(m),!h){var _=m.clientX-a,k=m.clientY-l;h=_*_+k*k>c}i.mouse("drag",m)}function y(m){ct(m.view).on("mousemove.drag mouseup.drag",null),va(m.view,h),Ke(m),i.mouse("end",m)}function T(m,_){if(t.call(this,m,_)){var k=m.changedTouches,C=e.call(this,m,_),A=k.length,W,X;for(W=0;W>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?kt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?kt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ta.exec(t))?new he(e[1],e[2],e[3],1):(e=Sa.exec(t))?new he(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Oa.exec(t))?kt(e[1],e[2],e[3],e[4]):(e=Pa.exec(t))?kt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=La.exec(t))?Zn(e[1],e[2]/100,e[3]/100,1):(e=Ia.exec(t))?Zn(e[1],e[2]/100,e[3]/100,e[4]):Yn.hasOwnProperty(t)?Xn(Yn[t]):t==="transparent"?new he(NaN,NaN,NaN,0):null}function Xn(t){return new he(t>>16&255,t>>8&255,t&255,1)}function kt(t,e,n,r){return r<=0&&(t=e=n=NaN),new he(t,e,n,r)}function Da(t){return t instanceof bt||(t=gt(t)),t?(t=t.rgb(),new he(t.r,t.g,t.b,t.opacity)):new he}function fn(t,e,n,r){return arguments.length===1?Da(t):new he(t,e,n,r??1)}function he(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Tn(he,fn,_i(bt,{brighter(t){return t=t==null?Bt:Math.pow(Bt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new he(Ge(this.r),Ge(this.g),Ge(this.b),$t(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Un,formatHex:Un,formatHex8:Ba,formatRgb:Kn,toString:Kn}));function Un(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function Ba(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kn(){const t=$t(this.opacity);return`${t===1?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${t===1?")":`, ${t})`}`}function $t(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ge(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ze(t){return t=Ge(t),(t<16?"0":"")+t.toString(16)}function Zn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new _e(t,e,n,r)}function yi(t){if(t instanceof _e)return new _e(t.h,t.s,t.l,t.opacity);if(t instanceof bt||(t=gt(t)),!t)return new _e;if(t instanceof _e)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n0&&l<1?0:s,new _e(s,a,l,t.opacity)}function $a(t,e,n,r){return arguments.length===1?yi(t):new _e(t,e,n,r??1)}function _e(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Tn(_e,$a,_i(bt,{brighter(t){return t=t==null?Bt:Math.pow(Bt,t),new _e(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new _e(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new he(Jt(t>=240?t-240:t+120,i,r),Jt(t,i,r),Jt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new _e(Qn(this.h),Mt(this.s),Mt(this.l),$t(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$t(this.opacity);return`${t===1?"hsl(":"hsla("}${Qn(this.h)}, ${Mt(this.s)*100}%, ${Mt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Qn(t){return t=(t||0)%360,t<0?t+360:t}function Mt(t){return Math.max(0,Math.min(1,t||0))}function Jt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const bi=t=>()=>t;function Va(t,e){return function(n){return t+n*e}}function Fa(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Wa(t){return(t=+t)==1?vi:function(e,n){return n-e?Fa(e,n,t):bi(isNaN(e)?n:e)}}function vi(t,e){var n=e-t;return n?Va(t,n):bi(isNaN(t)?e:t)}const Jn=function t(e){var n=Wa(e);function r(i,o){var s=n((i=fn(i)).r,(o=fn(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),h=vi(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=h(u),i+""}}return r.gamma=t,r}(1);function Le(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,en=new RegExp(dn.source,"g");function za(t){return function(){return t}}function Ga(t){return function(e){return t(e)+""}}function ja(t,e){var n=dn.lastIndex=en.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=dn.exec(t))&&(i=en.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Le(r,i)})),n=en.lastIndex;return n180?u+=360:u-h>180&&(h+=360),f.push({i:c.push(i(c)+"rotate(",null,r)-2,x:Le(h,u)})):u&&c.push(i(c)+"rotate("+u+r)}function a(h,u,c,f){h!==u?f.push({i:c.push(i(c)+"skewX(",null,r)-2,x:Le(h,u)}):u&&c.push(i(c)+"skewX("+u+r)}function l(h,u,c,f,d,g){if(h!==c||u!==f){var y=d.push(i(d)+"scale(",null,",",null,")");g.push({i:y-4,x:Le(h,c)},{i:y-2,x:Le(u,f)})}else(c!==1||f!==1)&&d.push(i(d)+"scale("+c+","+f+")")}return function(h,u){var c=[],f=[];return h=t(h),u=t(u),o(h.translateX,h.translateY,u.translateX,u.translateY,c,f),s(h.rotate,u.rotate,c,f),a(h.skewX,u.skewX,c,f),l(h.scaleX,h.scaleY,u.scaleX,u.scaleY,c,f),h=u=null,function(d){for(var g=-1,y=f.length,T;++g=0&&t._call.call(void 0,e),t=t._next;--tt}function tr(){je=(Ft=mt.now())+Ht,tt=at=0;try{Ka()}finally{tt=0,Qa(),je=0}}function Za(){var t=mt.now(),e=t-Ft;e>ki&&(Ht-=e,Ft=t)}function Qa(){for(var t,e=Vt,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vt=n);lt=t,gn(r)}function gn(t){if(!tt){at&&(at=clearTimeout(at));var e=t-je;e>24?(t<1/0&&(at=setTimeout(tr,t-mt.now()-Ht)),ot&&(ot=clearInterval(ot))):(ot||(Ft=mt.now(),ot=setInterval(Za,ki)),tt=1,Mi(tr))}}function nr(t,e,n){var r=new Wt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var Ja=Mn("start","end","cancel","interrupt"),el=[],Ci=0,rr=1,mn=2,Lt=3,ir=4,wn=5,It=6;function qt(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;tl(t,n,{name:e,index:r,group:i,on:Ja,tween:el,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Ci})}function On(t,e){var n=be(t,e);if(n.state>Ci)throw new Error("too late; already scheduled");return n}function Me(t,e){var n=be(t,e);if(n.state>Lt)throw new Error("too late; already running");return n}function be(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function tl(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ni(o,0,n.time);function o(h){n.state=rr,n.timer.restart(s,n.delay,n.time),n.delay<=h&&s(h-n.delay)}function s(h){var u,c,f,d;if(n.state!==rr)return l();for(u in r)if(d=r[u],d.name===n.name){if(d.state===Lt)return nr(s);d.state===ir?(d.state=It,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[u]):+umn&&r.state=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ll(t,e,n){var r,i,o=Pl(e)?On:Me;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function Il(t,e){var n=this._id;return arguments.length<2?be(this.node(),n).on.on(t):this.each(Ll(n,t,e))}function Al(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Rl(){return this.on("end.remove",Al(this._id))}function Dl(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Nn(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Pi;const n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;iWe)if(!(Math.abs(c*l-h*u)>We)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,g=i-a,y=l*l+h*h,T=d*d+g*g,S=Math.sqrt(y),b=Math.sqrt(f),w=o*Math.tan((_n-Math.acos((y+f-T)/(2*S*b)))/2),m=w/b,_=w/S;Math.abs(m-1)>We&&this._append`L${e+m*u},${n+m*c}`,this._append`A${o},${o},0,0,${+(c*d>u*g)},${this._x1=e+_*l},${this._y1=n+_*h}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),h=e+a,u=n+l,c=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>We||Math.abs(this._y1-u)>We)&&this._append`L${h},${u}`,r&&(f<0&&(f=f%yn+yn),f>au?this._append`A${r},${r},0,1,${c},${e-a},${n-l}A${r},${r},0,1,${c},${this._x1=h},${this._y1=u}`:f>We&&this._append`A${r},${r},0,${+(f>=_n)},${c},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ii(){return new Li}Ii.prototype=Li.prototype;function ut(t,e,n){this.k=t,this.x=e,this.y=n}ut.prototype={constructor:ut,scale:function(t){return t===1?this:new ut(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ut(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ut.prototype;class bn{context=Ii();x0=NaN;x1=NaN;y0=NaN;y1=NaN;state=0;constructor(e){for(let n=0;n(n.xMin=Math.min(n.xMin,r.x),n.yMin=Math.min(n.yMin,r.y),n.xMax=Math.max(n.xMax,r.x),n.yMax=Math.max(n.yMax,r.y),n),q.infinity())}static fromUnion(...e){return e.reduce((n,r)=>n.union(r),q.infinity())}get width(){return this.xMax-this.xMin}get height(){return this.yMax-this.yMin}get center(){return{x:this.xMin+this.width/2,y:this.yMin+this.height/2}}padded(e){const{l:n,r,b:i,t:o}=typeof e=="object"?e:{l:e,r:e,t:e,b:e};return new q(this.xMin-n,this.yMin-o,this.xMax+r,this.yMax+i)}union(e){return new q(Math.min(this.xMin,e.xMin),Math.min(this.yMin,e.yMin),Math.max(this.xMax,e.xMax),Math.max(this.yMax,e.yMax))}transformed(e){const n=e.apply(this.xMin,this.yMin),r=e.apply(this.xMax,this.yMax);return new q(n.x,n.y,r.x,r.y)}contains(e,n){return this.xMin<=e&&this.yMin<=n&&e<=this.xMax&&n<=this.yMax}encloses(e){return this.contains(e.xMin,e.yMin)&&this.contains(e.xMax,e.yMax)}intersects(e){return this.xMin<=e.xMin&&e.xMin<=this.xMax||this.xMin<=e.xMax&&e.xMax<=this.xMax||this.yMin<=e.yMin&&e.yMin<=this.yMax||this.yMin<=e.yMax&&e.yMax<=this.yMax}}function*uu(t,e){let n=!0;for(const r of t)n||(yield e),n=!1,yield r}function At(t,e,n){return Math.min(Math.max(n,t),e)}class De{options;constructor(e){this.options=e}with(e){return this.options={...this.options,...e},this}}function or(t,e,n){const r=t.slice();return r[3]=e[n],r}function sr(t){let e,n,r,i;const o=[{self:t[3]}];var s=t[3].drawable();function a(l,h){let u={};for(let c=0;c{J(u,1)}),fe()}s?(n=Qe(s,a(l,h)),Z(n.$$.fragment),P(n.$$.fragment,1),Q(n,r.parentNode,r)):n=null}else if(s){const u=h&1?Je(o,[{self:l[3]}]):{};n.$set(u)}},i(l){i||(n&&P(n.$$.fragment,l),i=!0)},o(l){n&&D(n.$$.fragment,l),i=!1},d(l){l&&(E(e),E(r)),n&&J(n,l)}}}function hu(t){let e,n,r;const i=t[2].default,o=Ur(i,t,t[1],null);let s=ge(t[0].children),a=[];for(let h=0;hD(a[h],1,1,()=>{a[h]=null});return{c(){e=V("g"),o&&o.c();for(let h=0;h{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(1,i=s.$$scope)},[o,i,r]}let Ln=class extends ae{constructor(e){super(),le(this,e,cu,hu,se,{self:0})}};class fu{onClick}class it extends fu{transform;constructor(){super(),this.transform=un.identity()}moveTo(e,n){this.transform.x=e,this.transform.y=n}}class Xt extends it{children;constructor(...e){super(),this.children=e}boundingBox(){return q.fromUnion(...this.children.map(e=>e.boundingBox().transformed(e.transform)))}drawable(){return Ln}}class du extends De{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}build(e={}){const n=this.children.map(o=>o.build(e));let r=0;if(this.options.spread&&e.targetWidth!==void 0){const o=n.length-1,s=n.reduce((l,h)=>l+h.boundingBox().width,this.options.spacing*o),a=e.targetWidth-s;r=Math.max(a/(this.children.length-1),0)}const i={x:0,y:0};for(const o of n)o.moveTo(i.x,i.y),i.x+=o.boundingBox().width+this.options.spacing+r;return new Ai(this.options,...n)}}class pu extends De{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}padded(e){return new vt(this,e)}build(e={}){const n=Math.max(this.options.minWidth,this.children.reduce((o,s)=>Math.max(o,s.build(e).boundingBox().width),-1/0)),r=this.children.map(o=>o.build({...e,targetWidth:n})),i={x:0,y:0};for(const o of r)o.moveTo(i.x,i.y),i.y+=o.boundingBox().height+this.options.spacing;return new Ai(this.options,...r)}}class Ai extends Xt{constructor(e,...n){super(...n),this.options=e,this.options=e}boundingBox(){const e=super.boundingBox();return e.xMax=At(this.options.minWidth,this.options.maxWidth,e.xMax),e}}const Ri={l:8,r:8,t:10,b:10};function gu(t,e,n,r){switch(n){case"topRight":return{x:t.xMax+r,y:t.yMin};case"bottomMiddle":return{x:t.center.x-e.width/2,y:t.yMax+r}}}let Ip=class extends De{content;constructor(e){super({anchor:"topRight"}),this.content=e}build(e={}){return new mu(new wu(new vt(this.content,Ri)).with({radius:6,borderColor:"none",backgroundColor:ye.background.darkGray}).build({defaultOptions:{text:{foregroundColor:"white"}}}),this.options)}};class mu extends it{constructor(e,n){super(),this.content=e,this.options=n}boundingBox(){return this.content.boundingBox().padded(Ri)}drawable(){throw Error("not implemented")}}class wu extends De{constructor(e){super({backgroundColor:ye.white,borderColor:ye.foreground.grayTertiary,borderWidth:1,borderDash:void 0,radius:void 0}),this.inner=e}content(){return this.inner}build(e={}){const n=this.inner.build(e),r=n.boundingBox();return new _u(n,new Bi(r.width,r.height).with(this.options).build(e))}}class _u extends Xt{constructor(e,n){super(n,e)}boundingBox(){return super.boundingBox()}}function yu(t){let e,n;return{c(){e=V("path"),this.h()},l(r){e=F(r,"path",{stroke:!0,"stroke-width":!0,fill:!0,"pointer-events":!0,"marker-end":!0,d:!0}),L(e).forEach(E),this.h()},h(){p(e,"stroke",ye.foreground.grayTertiary),p(e,"stroke-width","1"),p(e,"fill","none"),p(e,"pointer-events","none"),p(e,"marker-end","url(#arrowhead)"),p(e,"d",n=new bn(t[0]).build())},m(r,i){I(r,e,i)},p(r,[i]){i&1&&n!==(n=new bn(r[0]).build())&&p(e,"d",n)},i:Y,o:Y,d(r){r&&E(e)}}}function bu(t,e,n){let r,{self:i}=e;return t.$$set=o=>{"self"in o&&n(1,i=o.self)},t.$$.update=()=>{t.$$.dirty&2&&n(0,r=i.points.map(o=>i.transform.apply(o.x,o.y)))},[r,i]}class vu extends ae{constructor(e){super(),le(this,e,bu,yu,se,{self:1})}}class xu extends it{points;constructor(e){super(),this.points=e}path(){const e=this.points.map(n=>this.transform.apply(n.x,n.y));return new bn(e).build()}boundingBox(){return q.fromPoints(...this.points)}drawable(){return vu}}class Eu extends Xt{}function ku(t){let e,n,r=t[0].text+"",i,o,s;return{c(){e=Ce(),n=V("text"),i=Ae(r),this.h()},l(a){e=Te(a),n=F(a,"text",{x:!0,y:!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,fill:!0,"font-weight":!0});var l=L(n);i=Re(l,r),l.forEach(E),this.h()},h(){p(n,"x",o=t[0].transform.x),p(n,"y",s=t[0].transform.y),p(n,"dominant-baseline","hanging"),p(n,"font-family",t[2]),p(n,"font-size",t[1]),p(n,"fill",t[3]),p(n,"font-weight",t[4])},m(a,l){I(a,e,l),I(a,n,l),B(n,i)},p(a,[l]){l&1&&r!==(r=a[0].text+"")&&_t(i,r),l&1&&o!==(o=a[0].transform.x)&&p(n,"x",o),l&1&&s!==(s=a[0].transform.y)&&p(n,"y",s)},i:Y,o:Y,d(a){a&&(E(e),E(n))}}}function Mu(t,e,n){let{self:r}=e;const{fontSize:i,font:o,foregroundColor:s,fontWeight:a}=r.options;return t.$$set=l=>{"self"in l&&n(0,r=l.self)},[r,i,o,s,a]}let Nu=class extends ae{constructor(e){super(),le(this,e,Mu,ku,se,{self:0})}};class Cu{canvas;ctx;constructor(){this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}measureTextWidth(e,n){return this.ctx.font=`${n.fontSize}px ${n.font}`,this.ctx.textBaseline="top",this.ctx.measureText(e).width}}class Tu extends De{text;constructor(e){super({font:jt.family,fontSize:16,fontWeight:200}),this.text=e}padded(e){return new vt(this,e)}build(e){return new Su(this.text,{...e?.defaultOptions?.text,...this.options})}}class Su extends it{text;options;width;height;constructor(e,n){super(),this.text=e,this.options=n,this.width=new Cu().measureTextWidth(this.text,this.options),this.height=n.fontSize}boundingBox(){return new q(0,0,this.width,this.height)}drawable(){return Nu}}const In=Symbol();function Ou(t){let e,n,r;return{c(){e=V("rect"),this.h()},l(i){e=F(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-dasharray":!0}),L(e).forEach(E),this.h()},h(){p(e,"x",n=t[0].transform.x),p(e,"y",r=t[0].transform.y),p(e,"width",t[6]),p(e,"height",t[7]),p(e,"rx",t[1]),p(e,"fill",t[4]),p(e,"stroke",t[5]),p(e,"stroke-width",t[3]),p(e,"stroke-dasharray",t[2])},m(i,o){I(i,e,o)},p(i,[o]){o&1&&n!==(n=i[0].transform.x)&&p(e,"x",n),o&1&&r!==(r=i[0].transform.y)&&p(e,"y",r),o&2&&p(e,"rx",i[1]),o&16&&p(e,"fill",i[4]),o&32&&p(e,"stroke",i[5]),o&8&&p(e,"stroke-width",i[3]),o&4&&p(e,"stroke-dasharray",i[2])},i:Y,o:Y,d(i){i&&E(e)}}}function Pu(t,e,n){let r,i,o,s,a,{self:l}=e;const h=l.boundingBox().width,u=l.boundingBox().height;return t.$$set=c=>{"self"in c&&n(0,l=c.self)},t.$$.update=()=>{t.$$.dirty&1&&n(5,{borderColor:r,backgroundColor:i,borderWidth:o,borderDash:s,radius:a}=l.options,r,(n(4,i),n(0,l)),(n(3,o),n(0,l)),(n(2,s),n(0,l)),(n(1,a),n(0,l)))},[l,a,s,o,i,r,h,u]}let Di=class extends ae{constructor(e){super(),le(this,e,Pu,Ou,se,{self:0})}};function ar(t){let e,n,r,i,o=t[2].text&&lr(t);return{c(){e=V("g"),n=V("circle"),o&&o.c(),this.h()},l(s){e=F(s,"g",{class:!0,transform:!0});var a=L(e);n=F(a,"circle",{r:!0,fill:!0,stroke:!0,"stroke-width":!0}),L(n).forEach(E),o&&o.l(a),a.forEach(E),this.h()},h(){p(n,"r","10"),p(n,"fill",r=t[2].color),p(n,"stroke","white"),p(n,"stroke-width","2"),p(e,"class","badge"),p(e,"transform",i=`translate(${t[3].width+t[5].x},${-t[5].y})`)},m(s,a){I(s,e,a),B(e,n),o&&o.m(e,null)},p(s,a){a&4&&r!==(r=s[2].color)&&p(n,"fill",r),s[2].text?o?o.p(s,a):(o=lr(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&8&&i!==(i=`translate(${s[3].width+s[5].x},${-s[5].y})`)&&p(e,"transform",i)},d(s){s&&E(e),o&&o.d()}}}function lr(t){let e,n=t[2].text+"",r;return{c(){e=V("text"),r=Ae(n),this.h()},l(i){e=F(i,"text",{y:!0,"font-family":!0,"font-size":!0,"text-anchor":!0,"dominant-baseline":!0,fill:!0});var o=L(e);r=Re(o,n),o.forEach(E),this.h()},h(){p(e,"y",1),p(e,"font-family",jt.family),p(e,"font-size","10"),p(e,"text-anchor","middle"),p(e,"dominant-baseline","middle"),p(e,"fill","white")},m(i,o){I(i,e,o),B(e,r)},p(i,o){o&4&&n!==(n=i[2].text+"")&&_t(r,n)},d(i){i&&E(e)}}}function Lu(t){let e,n,r,i,o,s,a,l;n=new Di({props:{self:t[1]}});const h=[{self:t[0].content}];var u=t[0].content.drawable();function c(d,g){let y={};for(let T=0;T + `),f&&f.c(),this.h()},l(d){e=F(d,"g",{transform:!0,cursor:!0});var g=L(e);oe(n.$$.fragment,g),r&&oe(r.$$.fragment,g),i=Re(g,` --> + `),f&&f.l(g),g.forEach(E),this.h()},h(){p(e,"transform",o=`translate(${t[3].xMin},${t[3].yMin})`),p(e,"cursor","pointer")},m(d,g){I(d,e,g),Q(n,e,null),r&&Q(r,e,null),B(e,i),f&&f.m(e,null),s=!0,a||(l=[H(e,"click",t[13]),H(e,"dblclick",t[14]),H(e,"mouseenter",t[6]),H(e,"mouseleave",t[7])],a=!0)},p(d,[g]){const y={};if(g&2&&(y.self=d[1]),n.$set(y),g&1&&u!==(u=d[0].content.drawable())){if(r){ce();const T=r;D(T.$$.fragment,1,0,()=>{J(T,1)}),fe()}u?(r=Qe(u,c(d,g)),Z(r.$$.fragment),P(r.$$.fragment,1),Q(r,e,i)):r=null}else if(u){const T=g&1?Je(h,[{self:d[0].content}]):{};r.$set(T)}d[2]?f?f.p(d,g):(f=ar(d),f.c(),f.m(e,null)):f&&(f.d(1),f=null),(!s||g&8&&o!==(o=`translate(${d[3].xMin},${d[3].yMin})`))&&p(e,"transform",o)},i(d){s||(P(n.$$.fragment,d),r&&P(r.$$.fragment,d),s=!0)},o(d){D(n.$$.fragment,d),r&&D(r.$$.fragment,d),s=!1},d(d){d&&E(e),J(n),r&&J(r),f&&f.d(),a=!1,Gt(l)}}}function Iu(t,e,n){let r,i,o,s,a,l;const h=nt();let{self:u}=e,{decoration:c}=e;const{selections:f}=ei(In);ti(t,f,w=>n(12,l=w));const d={x:1,y:1};let g=!1;function y(w){n(9,g=!0),h("nodeEnter",{...w,nodeId:r})}function T(w){n(9,g=!1),h("nodeLeave",{...w,nodeId:r})}function S(w){ue.call(this,t,w)}function b(w){ue.call(this,t,w)}return t.$$set=w=>{"self"in w&&n(0,u=w.self),"decoration"in w&&n(8,c=w.decoration)},t.$$.update=()=>{t.$$.dirty&1&&n(11,r=u.nodeId),t.$$.dirty&6144&&n(10,i=l.has(r)),t.$$.dirty&1&&n(3,o=u.boundingBox()),t.$$.dirty&1&&n(2,s=u.options.badge),t.$$.dirty&1793&&n(1,a=new Bi(u.content.boundingBox().width,u.content.boundingBox().height).with({borderColor:ye.foreground.grayTertiary,borderWidth:1,radius:6,borderDash:u.options.borderDash,backgroundColor:u.options.backgroundColor}).with({...c}).with(g?{borderColor:ye.foreground.blue}:{}).with(i?{borderColor:ye.foreground.blue,borderWidth:3}:{}).build())},[u,a,s,o,f,d,y,T,c,g,i,r,l,S,b]}let An=class extends ae{constructor(e){super(),le(this,e,Iu,Lu,se,{self:0,decoration:8})}};function Au(t){return new du(new Tu(t)).with({minWidth:30})}class $p extends De{constructor(e,...n){super({selectable:!1,borderDash:void 0,badge:void 0,tooltip:void 0,backgroundColor:ye.white,borderColor:ye.foreground.grayTertiary,humanReadable:void 0,padding:{l:8,r:8,t:10,b:10}}),this.nodeId=e,this.contents=n.length>0?n:[Au(this.options.humanReadable||this.nodeId)]}contents;humanReadable(){return this.options.humanReadable}build(e={}){const n=[...uu(this.contents.map(r=>new vt(r,this.options.padding)),new Fu().with({color:this.options.borderColor,dash:this.options.borderDash}))];return new Ru(this.nodeId,new pu(...n).build(e),this.options)}}class Ru extends it{constructor(e,n,r){super(),this.nodeId=e,this.content=n,this.options=r}boundingBox(){return this.content.boundingBox().transformed(this.transform)}drawable(){return An}}class Bi extends De{width;height;constructor(e,n){super({backgroundColor:ye.black,borderColor:"none",borderWidth:0,borderDash:void 0,radius:void 0}),this.width=e,this.height=n}padded(e){return new vt(this,e)}build(e={}){return new $i(this.width,this.height,this.options)}}class $i extends it{constructor(e,n,r){super(),this.width=e,this.height=n,this.options=r}boundingBox(){return new q(0,0,this.width,this.height)}drawable(){return Di}}function Du(t){return t.l!==void 0}class vt{constructor(e,n){this.inner=e,this.inner=e,this.p=Du(n)?n:{l:n,r:n,t:n,b:n}}p;content(){return this.inner}padding(){return this.p}build(e={}){const{l:n,t:r,r:i}=this.p,o=e.targetWidth?this.inner.build({...e,targetWidth:e.targetWidth-n-i}):this.inner.build({...e});return o.moveTo(n,r),new Bu(o,this.p)}}class Bu extends Xt{padding;constructor(e,n){super(e),this.padding=n}boundingBox(){return super.boundingBox().padded(this.padding)}drawable(){return Ln}}const $u=1,Vu=100;class Fu extends De{width;constructor(e){super({color:ye.foreground.grayTertiary,dash:void 0}),this.width=e}build(e={}){const n=this.width||e.targetWidth||Vu;return new $i(n,$u,{backgroundColor:this.options.color,borderColor:"none",borderWidth:0,radius:void 0,borderDash:this.options.dash})}}var Vp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Wu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var zu="\0",Fe="\0",ur="";let Gu=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=e.hasOwnProperty("directed")?e.directed:!0,this._isMultigraph=e.hasOwnProperty("multigraph")?e.multigraph:!1,this._isCompound=e.hasOwnProperty("compound")?e.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[Fe]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,typeof e!="function"&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(n=>Object.keys(e._in[n]).length===0)}sinks(){var e=this;return this.nodes().filter(n=>Object.keys(e._out[n]).length===0)}setNodes(e,n){var r=arguments,i=this;return e.forEach(function(o){r.length>1?i.setNode(o,n):i.setNode(o)}),this}setNode(e,n){return this._nodes.hasOwnProperty(e)?(arguments.length>1&&(this._nodes[e]=n),this):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Fe,this._children[e]={},this._children[Fe][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return this._nodes.hasOwnProperty(e)}removeNode(e){var n=this;if(this._nodes.hasOwnProperty(e)){var r=i=>n.removeEdge(n._edgeObjs[i]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(i){n.setParent(i)}),delete this._children[e]),Object.keys(this._in[e]).forEach(r),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n===void 0)n=Fe;else{n+="";for(var r=n;r!==void 0;r=this.parent(r))if(r===e)throw new Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var n=this._parent[e];if(n!==Fe)return n}}children(e=Fe){if(this._isCompound){var n=this._children[e];if(n)return Object.keys(n)}else{if(e===Fe)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var n=this._preds[e];if(n)return Object.keys(n)}successors(e){var n=this._sucs[e];if(n)return Object.keys(n)}neighbors(e){var n=this.predecessors(e);if(n){const i=new Set(n);for(var r of this.successors(e))i.add(r);return Array.from(i.values())}}isLeaf(e){var n;return this.isDirected()?n=this.successors(e):n=this.neighbors(e),n.length===0}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;Object.entries(this._nodes).forEach(function([s,a]){e(s)&&n.setNode(s,a)}),Object.values(this._edgeObjs).forEach(function(s){n.hasNode(s.v)&&n.hasNode(s.w)&&n.setEdge(s,r.edge(s))});var i={};function o(s){var a=r.parent(s);return a===void 0||n.hasNode(a)?(i[s]=a,a):a in i?i[a]:o(a)}return this._isCompound&&n.nodes().forEach(s=>n.setParent(s,o(s))),n}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,typeof e!="function"&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,n){var r=this,i=arguments;return e.reduce(function(o,s){return i.length>1?r.setEdge(o,s,n):r.setEdge(o,s),s}),this}setEdge(){var e,n,r,i,o=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,n=s.w,r=s.name,arguments.length===2&&(i=arguments[1],o=!0)):(e=s,n=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,n=""+n,r!==void 0&&(r=""+r);var a=ht(this._isDirected,e,n,r);if(this._edgeLabels.hasOwnProperty(a))return o&&(this._edgeLabels[a]=i),this;if(r!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,n,r);var l=ju(this._isDirected,e,n,r);return e=l.v,n=l.w,Object.freeze(l),this._edgeObjs[a]=l,hr(this._preds[n],e),hr(this._sucs[e],n),this._in[n][a]=l,this._out[e][a]=l,this._edgeCount++,this}edge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels[i]}edgeAsObj(){const e=this.edge(...arguments);return typeof e!="object"?{label:e}:e}hasEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels.hasOwnProperty(i)}removeEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r),o=this._edgeObjs[i];return o&&(e=o.v,n=o.w,delete this._edgeLabels[i],delete this._edgeObjs[i],cr(this._preds[n],e),cr(this._sucs[e],n),delete this._in[n][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,n){var r=this._in[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.v===n):i}}outEdges(e,n){var r=this._out[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.w===n):i}}nodeEdges(e,n){var r=this.inEdges(e,n);if(r)return r.concat(this.outEdges(e,n))}};function hr(t,e){t[e]?t[e]++:t[e]=1}function cr(t,e){--t[e]||delete t[e]}function ht(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}return i+ur+o+ur+(r===void 0?zu:r)}function ju(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function tn(t,e){return ht(t,e.v,e.w,e.name)}var Rn=Gu,Yu="2.2.2",Hu={Graph:Rn,version:Yu},qu=Rn,Xu={write:Uu,read:Qu};function Uu(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:Ku(t),edges:Zu(t)};return t.graph()!==void 0&&(e.value=structuredClone(t.graph())),e}function Ku(t){return t.nodes().map(function(e){var n=t.node(e),r=t.parent(e),i={v:e};return n!==void 0&&(i.value=n),r!==void 0&&(i.parent=r),i})}function Zu(t){return t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return e.name!==void 0&&(r.name=e.name),n!==void 0&&(r.value=n),r})}function Qu(t){var e=new qu(t.options).setGraph(t.value);return t.nodes.forEach(function(n){e.setNode(n.v,n.value),n.parent&&e.setParent(n.v,n.parent)}),t.edges.forEach(function(n){e.setEdge({v:n.v,w:n.w,name:n.name},n.value)}),e}var Ju=eh;function eh(t){var e={},n=[],r;function i(o){e.hasOwnProperty(o)||(e[o]=!0,r.push(o),t.successors(o).forEach(i),t.predecessors(o).forEach(i))}return t.nodes().forEach(function(o){r=[],i(o),r.length&&n.push(r)}),n}let th=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return this._keyIndices.hasOwnProperty(e)}priority(e){var n=this._keyIndices[e];if(n!==void 0)return this._arr[n].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(e,n){var r=this._keyIndices;if(e=String(e),!r.hasOwnProperty(e)){var i=this._arr,o=i.length;return r[e]=o,i.push({key:e,priority:n}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,n){var r=this._keyIndices[e];if(n>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+n);this._arr[r].priority=n,this._decrease(r)}_heapify(e){var n=this._arr,r=2*e,i=r+1,o=e;r>1,!(n[i].priority1;function ih(t,e,n,r){return oh(t,String(e),n||rh,r||function(i){return t.outEdges(i)})}function oh(t,e,n,r){var i={},o=new nh,s,a,l=function(h){var u=h.v!==s?h.v:h.w,c=i[u],f=n(h),d=a.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+h+" Weight: "+f);d0&&(s=o.removeMin(),a=i[s],a.distance!==Number.POSITIVE_INFINITY);)r(s).forEach(l);return i}var sh=Fi,ah=lh;function lh(t,e,n){return t.nodes().reduce(function(r,i){return r[i]=sh(t,i,e,n),r},{})}var Wi=uh;function uh(t){var e=0,n=[],r={},i=[];function o(s){var a=r[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(u){r.hasOwnProperty(u)?r[u].onStack&&(a.lowlink=Math.min(a.lowlink,r[u].index)):(o(u),a.lowlink=Math.min(a.lowlink,r[u].lowlink))}),a.lowlink===a.index){var l=[],h;do h=n.pop(),r[h].onStack=!1,l.push(h);while(s!==h);i.push(l)}}return t.nodes().forEach(function(s){r.hasOwnProperty(s)||o(s)}),i}var hh=Wi,ch=fh;function fh(t){return hh(t).filter(function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})}var dh=gh,ph=()=>1;function gh(t,e,n){return mh(t,e||ph,n||function(r){return t.outEdges(r)})}function mh(t,e,n){var r={},i=t.nodes();return i.forEach(function(o){r[o]={},r[o][o]={distance:0},i.forEach(function(s){o!==s&&(r[o][s]={distance:Number.POSITIVE_INFINITY})}),n(o).forEach(function(s){var a=s.v===o?s.w:s.v,l=e(s);r[o][a]={distance:l,predecessor:o}})}),i.forEach(function(o){var s=r[o];i.forEach(function(a){var l=r[a];i.forEach(function(h){var u=l[o],c=s[h],f=l[h],d=u.distance+c.distance;dt.successors(a):a=>t.neighbors(a),i=n==="post"?bh:vh,o=[],s={};return e.forEach(a=>{if(!t.hasNode(a))throw new Error("Graph does not have node: "+a);i(a,r,s,o)}),o}function bh(t,e,n,r){for(var i=[[t,!1]];i.length>0;){var o=i.pop();o[1]?r.push(o[0]):n.hasOwnProperty(o[0])||(n[o[0]]=!0,i.push([o[0],!0]),Yi(e(o[0]),s=>i.push([s,!1])))}}function vh(t,e,n,r){for(var i=[t];i.length>0;){var o=i.pop();n.hasOwnProperty(o)||(n[o]=!0,r.push(o),Yi(e(o),s=>i.push(s)))}}function Yi(t,e){for(var n=t.length;n--;)e(t[n],n,t);return t}var xh=ji,Eh=kh;function kh(t,e){return xh(t,e,"post")}var Mh=ji,Nh=Ch;function Ch(t,e){return Mh(t,e,"pre")}var Th=Rn,Sh=Vi,Oh=Ph;function Ph(t,e){var n=new Th,r={},i=new Sh,o;function s(l){var h=l.v===o?l.w:l.v,u=i.priority(h);if(u!==void 0){var c=e(l);c0;){if(o=i.removeMin(),r.hasOwnProperty(o))n.setEdge(o,r[o]);else{if(a)throw new Error("Input graph is not connected: "+t);a=!0}t.nodeEdges(o).forEach(s)}return n}var Lh={components:Ju,dijkstra:Fi,dijkstraAll:ah,findCycles:ch,floydWarshall:dh,isAcyclic:wh,postorder:Eh,preorder:Nh,prim:Oh,tarjan:Wi,topsort:Gi},dr=Hu,ve={Graph:dr.Graph,json:Xu,alg:Lh,version:dr.version};let Ih=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return pr(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&pr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,Ah)),r=r._prev;return"["+e.join(", ")+"]"}};function pr(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function Ah(t,e){if(t!=="_next"&&t!=="_prev")return e}var Rh=Ih;let Dh=ve.Graph,Bh=Rh;var $h=Fh;let Vh=()=>1;function Fh(t,e){if(t.nodeCount()<=1)return[];let n=zh(t,e||Vh);return Wh(n.graph,n.buckets,n.zeroIdx).flatMap(i=>t.outEdges(i.v,i.w))}function Wh(t,e,n){let r=[],i=e[e.length-1],o=e[0],s;for(;t.nodeCount();){for(;s=o.dequeue();)nn(t,e,n,s);for(;s=i.dequeue();)nn(t,e,n,s);if(t.nodeCount()){for(let a=e.length-2;a>0;--a)if(s=e[a].dequeue(),s){r=r.concat(nn(t,e,n,s,!0));break}}}return r}function nn(t,e,n,r,i){let o=i?[]:void 0;return t.inEdges(r.v).forEach(s=>{let a=t.edge(s),l=t.node(s.v);i&&o.push({v:s.v,w:s.w}),l.out-=a,xn(e,n,l)}),t.outEdges(r.v).forEach(s=>{let a=t.edge(s),l=s.w,h=t.node(l);h.in-=a,xn(e,n,h)}),t.removeNode(r.v),o}function zh(t,e){let n=new Dh,r=0,i=0;t.nodes().forEach(a=>{n.setNode(a,{v:a,in:0,out:0})}),t.edges().forEach(a=>{let l=n.edge(a.v,a.w)||0,h=e(a),u=l+h;n.setEdge(a.v,a.w,u),i=Math.max(i,n.node(a.v).out+=h),r=Math.max(r,n.node(a.w).in+=h)});let o=Gh(i+r+3).map(()=>new Bh),s=r+1;return n.nodes().forEach(a=>{xn(o,s,n.node(a))}),{graph:n,buckets:o,zeroIdx:s}}function xn(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function Gh(t){const e=[];for(let n=0;ne.setNode(n,t.node(n))),t.edges().forEach(n=>{let r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e}function Yh(t){let e=new Hi({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(n=>{t.children(n).length||e.setNode(n,t.node(n))}),t.edges().forEach(n=>{e.setEdge(n,t.edge(n))}),e}function Hh(t){let e=t.nodes().map(n=>{let r={};return t.outEdges(n).forEach(i=>{r[i.w]=(r[i.w]||0)+t.edge(i).weight}),r});return Dn(t.nodes(),e)}function qh(t){let e=t.nodes().map(n=>{let r={};return t.inEdges(n).forEach(i=>{r[i.v]=(r[i.v]||0)+t.edge(i).weight}),r});return Dn(t.nodes(),e)}function Xh(t,e){let n=t.x,r=t.y,i=e.x-n,o=e.y-r,s=t.width/2,a=t.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");let l,h;return Math.abs(o)*s>Math.abs(i)*a?(o<0&&(a=-a),l=a*i/o,h=a):(i<0&&(s=-s),l=s,h=s*o/i),{x:n+l,y:r+h}}function Uh(t){let e=Ki(Xi(t)+1).map(()=>[]);return t.nodes().forEach(n=>{let r=t.node(n),i=r.rank;i!==void 0&&(e[i][r.order]=n)}),e}function Kh(t){let e=Math.min(...t.nodes().map(n=>{let r=t.node(n).rank;return r===void 0?Number.MAX_VALUE:r}));t.nodes().forEach(n=>{let r=t.node(n);r.hasOwnProperty("rank")&&(r.rank-=e)})}function Zh(t){let e=Math.min(...t.nodes().map(o=>t.node(o).rank)),n=[];t.nodes().forEach(o=>{let s=t.node(o).rank-e;n[s]||(n[s]=[]),n[s].push(o)});let r=0,i=t.graph().nodeRankFactor;Array.from(n).forEach((o,s)=>{o===void 0&&s%i!==0?--r:o!==void 0&&r&&o.forEach(a=>t.node(a).rank+=r)})}function Qh(t,e,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),qi(t,"border",i,e)}function Xi(t){return Math.max(...t.nodes().map(e=>{let n=t.node(e).rank;return n===void 0?Number.MIN_VALUE:n}))}function Jh(t,e){let n={lhs:[],rhs:[]};return t.forEach(r=>{e(r)?n.lhs.push(r):n.rhs.push(r)}),n}function ec(t,e){let n=Date.now();try{return e()}finally{console.log(t+" time: "+(Date.now()-n)+"ms")}}function tc(t,e){return e()}let nc=0;function Ui(t){var e=++nc;return toString(t)+e}function Ki(t,e,n=1){e==null&&(e=t,t=0);let r=o=>oer[e]),Object.entries(t).reduce((r,[i,o])=>(r[i]=n(o,i),r),{})}function Dn(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}let oc=$h,sc=ee.uniqueId;var ac={run:lc,undo:hc};function lc(t){(t.graph().acyclicer==="greedy"?oc(t,n(t)):uc(t)).forEach(r=>{let i=t.edge(r);t.removeEdge(r),i.forwardName=r.name,i.reversed=!0,t.setEdge(r.w,r.v,i,sc("rev"))});function n(r){return i=>r.edge(i).weight}}function uc(t){let e=[],n={},r={};function i(o){r.hasOwnProperty(o)||(r[o]=!0,n[o]=!0,t.outEdges(o).forEach(s=>{n.hasOwnProperty(s.w)?e.push(s):i(s.w)}),delete n[o])}return t.nodes().forEach(i),e}function hc(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.reversed){t.removeEdge(e);let r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}let cc=ee;var fc={run:dc,undo:gc};function dc(t){t.graph().dummyChains=[],t.edges().forEach(e=>pc(t,e))}function pc(t,e){let n=e.v,r=t.node(n).rank,i=e.w,o=t.node(i).rank,s=e.name,a=t.edge(e),l=a.labelRank;if(o===r+1)return;t.removeEdge(e);let h,u,c;for(c=0,++r;r{let n=t.node(e),r=n.edgeLabel,i;for(t.setEdge(n.edgeObj,r);n.dummy;)i=t.successors(e)[0],t.removeNode(e),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),e=i,n=t.node(e)})}var Ut={longestPath:mc,slack:wc};function mc(t){var e={};function n(r){var i=t.node(r);if(e.hasOwnProperty(r))return i.rank;e[r]=!0;var o=Math.min(...t.outEdges(r).map(s=>s==null?Number.POSITIVE_INFINITY:n(s.w)-t.edge(s).minlen));return o===Number.POSITIVE_INFINITY&&(o=0),i.rank=o}t.sources().forEach(n)}function wc(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var _c=ve.Graph,zt=Ut.slack,Zi=yc;function yc(t){var e=new _c({directed:!1}),n=t.nodes()[0],r=t.nodeCount();e.setNode(n,{});for(var i,o;bc(e,t){var o=i.v,s=r===o?i.w:o;!t.hasNode(s)&&!zt(e,i)&&(t.setNode(s,{}),t.setEdge(r,s,{}),n(s))})}return t.nodes().forEach(n),t.nodeCount()}function vc(t,e){return e.edges().reduce((r,i)=>{let o=Number.POSITIVE_INFINITY;return t.hasNode(i.v)!==t.hasNode(i.w)&&(o=zt(e,i)),oe.node(r).rank+=n)}var Ec=Zi,gr=Ut.slack,kc=Ut.longestPath,Mc=ve.alg.preorder,Nc=ve.alg.postorder,Cc=ee.simplify,Tc=Ye;Ye.initLowLimValues=$n;Ye.initCutValues=Bn;Ye.calcCutValue=Qi;Ye.leaveEdge=eo;Ye.enterEdge=to;Ye.exchangeEdges=no;function Ye(t){t=Cc(t),kc(t);var e=Ec(t);$n(e),Bn(e,t);for(var n,r;n=eo(e);)r=to(e,t,n),no(e,t,n,r)}function Bn(t,e){var n=Nc(t,t.nodes());n=n.slice(0,n.length-1),n.forEach(r=>Sc(t,e,r))}function Sc(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=Qi(t,e,n)}function Qi(t,e,n){var r=t.node(n),i=r.parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,e.nodeEdges(n).forEach(l=>{var h=l.v===n,u=h?l.w:l.v;if(u!==i){var c=h===o,f=e.edge(l).weight;if(a+=c?f:-f,Pc(t,n,u)){var d=t.edge(n,u).cutvalue;a+=c?-d:d}}}),a}function $n(t,e){arguments.length<2&&(e=t.nodes()[0]),Ji(t,{},1,e)}function Ji(t,e,n,r,i){var o=n,s=t.node(r);return e[r]=!0,t.neighbors(r).forEach(a=>{e.hasOwnProperty(a)||(n=Ji(t,e,n,a,r))}),s.low=o,s.lim=n++,i?s.parent=i:delete s.parent,n}function eo(t){return t.edges().find(e=>t.edge(e).cutvalue<0)}function to(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),s=t.node(i),a=o,l=!1;o.lim>s.lim&&(a=s,l=!0);var h=e.edges().filter(u=>l===mr(t,t.node(u.v),a)&&l!==mr(t,t.node(u.w),a));return h.reduce((u,c)=>gr(e,c)!e.node(i).parent),r=Mc(t,n);r=r.slice(1),r.forEach(i=>{var o=t.node(i).parent,s=e.edge(i,o),a=!1;s||(s=e.edge(o,i),a=!0),e.node(i).rank=e.node(o).rank+(a?s.minlen:-s.minlen)})}function Pc(t,e,n){return t.hasEdge(e,n)}function mr(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var Lc=Ut,ro=Lc.longestPath,Ic=Zi,Ac=Tc,Rc=Dc;function Dc(t){switch(t.graph().ranker){case"network-simplex":wr(t);break;case"tight-tree":$c(t);break;case"longest-path":Bc(t);break;default:wr(t)}}var Bc=ro;function $c(t){ro(t),Ic(t)}function wr(t){Ac(t)}var Vc=Fc;function Fc(t){let e=zc(t);t.graph().dummyChains.forEach(n=>{let r=t.node(n),i=r.edgeObj,o=Wc(t,e,i.v,i.w),s=o.path,a=o.lca,l=0,h=s[l],u=!0;for(;n!==i.w;){if(r=t.node(n),u){for(;(h=s[l])!==a&&t.node(h).maxRanks||a>e[l].lim));for(h=l,l=r;(l=t.parent(l))!==h;)o.push(l);return{path:i.concat(o.reverse()),lca:h}}function zc(t){let e={},n=0;function r(i){let o=n;t.children(i).forEach(r),e[i]={low:o,lim:n++}}return t.children().forEach(r),e}let En=ee;var Gc={run:jc,cleanup:qc};function jc(t){let e=En.addDummyNode(t,"root",{},"_root"),n=Yc(t),r=Math.max(...Object.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,t.edges().forEach(s=>t.edge(s).minlen*=i);let o=Hc(t)+1;t.children().forEach(s=>io(t,e,i,o,r,n,s)),t.graph().nodeRankFactor=i}function io(t,e,n,r,i,o,s){let a=t.children(s);if(!a.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:n});return}let l=En.addBorderNode(t,"_bt"),h=En.addBorderNode(t,"_bb"),u=t.node(s);t.setParent(l,s),u.borderTop=l,t.setParent(h,s),u.borderBottom=h,a.forEach(c=>{io(t,e,n,r,i,o,c);let f=t.node(c),d=f.borderTop?f.borderTop:c,g=f.borderBottom?f.borderBottom:c,y=f.borderTop?r:2*r,T=d!==g?1:i-o[s]+1;t.setEdge(l,d,{weight:y,minlen:T,nestingEdge:!0}),t.setEdge(g,h,{weight:y,minlen:T,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+o[s]})}function Yc(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&o.forEach(s=>n(s,i+1)),e[r]=i}return t.children().forEach(r=>n(r,1)),e}function Hc(t){return t.edges().reduce((e,n)=>e+t.edge(n).weight,0)}function qc(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(n=>{var r=t.edge(n);r.nestingEdge&&t.removeEdge(n)})}let Xc=ee;var Uc=Kc;function Kc(t){function e(n){let r=t.children(n),i=t.node(n);if(r.length&&r.forEach(e),i.hasOwnProperty("minRank")){i.borderLeft=[],i.borderRight=[];for(let o=i.minRank,s=i.maxRank+1;oyr(t.node(e))),t.edges().forEach(e=>yr(t.edge(e)))}function yr(t){let e=t.width;t.width=t.height,t.height=e}function ef(t){t.nodes().forEach(e=>rn(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(rn),n.hasOwnProperty("y")&&rn(n)})}function rn(t){t.y=-t.y}function tf(t){t.nodes().forEach(e=>on(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(on),n.hasOwnProperty("x")&&on(n)})}function on(t){let e=t.x;t.x=t.y,t.y=e}let nf=ee;var rf=of;function of(t){let e={},n=t.nodes().filter(a=>!t.children(a).length),r=Math.max(...n.map(a=>t.node(a).rank)),i=nf.range(r+1).map(()=>[]);function o(a){if(e[a])return;e[a]=!0;let l=t.node(a);i[l.rank].push(a),t.successors(a).forEach(o)}return n.sort((a,l)=>t.node(a).rank-t.node(l).rank).forEach(o),i}let sf=ee.zipObject;var af=lf;function lf(t,e){let n=0;for(let r=1;ru)),i=e.flatMap(h=>t.outEdges(h).map(u=>({pos:r[u.w],weight:t.edge(u).weight})).sort((u,c)=>u.pos-c.pos)),o=1;for(;o{let u=h.pos+o;a[u]+=h.weight;let c=0;for(;u>0;)u%2&&(c+=a[u+1]),u=u-1>>1,a[u]+=h.weight;l+=h.weight*c}),l}var hf=cf;function cf(t,e=[]){return e.map(n=>{let r=t.inEdges(n);if(r.length){let i=r.reduce((o,s)=>{let a=t.edge(s),l=t.node(s.v);return{sum:o.sum+a.weight*l.order,weight:o.weight+a.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}let ff=ee;var df=pf;function pf(t,e){let n={};t.forEach((i,o)=>{let s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};i.barycenter!==void 0&&(s.barycenter=i.barycenter,s.weight=i.weight)}),e.edges().forEach(i=>{let o=n[i.v],s=n[i.w];o!==void 0&&s!==void 0&&(s.indegree++,o.out.push(n[i.w]))});let r=Object.values(n).filter(i=>!i.indegree);return gf(r)}function gf(t){let e=[];function n(i){return o=>{o.merged||(o.barycenter===void 0||i.barycenter===void 0||o.barycenter>=i.barycenter)&&mf(i,o)}}function r(i){return o=>{o.in.push(i),--o.indegree===0&&t.push(o)}}for(;t.length;){let i=t.pop();e.push(i),i.in.reverse().forEach(n(i)),i.out.forEach(r(i))}return e.filter(i=>!i.merged).map(i=>ff.pick(i,["vs","i","barycenter","weight"]))}function mf(t,e){let n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}let wf=ee;var _f=yf;function yf(t,e){let n=wf.partition(t,u=>u.hasOwnProperty("barycenter")),r=n.lhs,i=n.rhs.sort((u,c)=>c.i-u.i),o=[],s=0,a=0,l=0;r.sort(bf(!!e)),l=br(o,i,l),r.forEach(u=>{l+=u.vs.length,o.push(u.vs),s+=u.barycenter*u.weight,a+=u.weight,l=br(o,i,l)});let h={vs:o.flat(!0)};return a&&(h.barycenter=s/a,h.weight=a),h}function br(t,e,n){let r;for(;e.length&&(r=e[e.length-1]).i<=n;)e.pop(),t.push(r.vs),n++;return n}function bf(t){return(e,n)=>e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}let vf=hf,xf=df,Ef=_f;var kf=so;function so(t,e,n,r){let i=t.children(e),o=t.node(e),s=o?o.borderLeft:void 0,a=o?o.borderRight:void 0,l={};s&&(i=i.filter(f=>f!==s&&f!==a));let h=vf(t,i);h.forEach(f=>{if(t.children(f.v).length){let d=so(t,f.v,n,r);l[f.v]=d,d.hasOwnProperty("barycenter")&&Nf(f,d)}});let u=xf(h,n);Mf(u,l);let c=Ef(u,r);if(s&&(c.vs=[s,c.vs,a].flat(!0),t.predecessors(s).length)){let f=t.node(t.predecessors(s)[0]),d=t.node(t.predecessors(a)[0]);c.hasOwnProperty("barycenter")||(c.barycenter=0,c.weight=0),c.barycenter=(c.barycenter*c.weight+f.order+d.order)/(c.weight+2),c.weight+=2}return c}function Mf(t,e){t.forEach(n=>{n.vs=n.vs.flatMap(r=>e[r]?e[r].vs:r)})}function Nf(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)}let Cf=ve.Graph,Tf=ee;var Sf=Of;function Of(t,e,n){let r=Pf(t),i=new Cf({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(o=>t.node(o));return t.nodes().forEach(o=>{let s=t.node(o),a=t.parent(o);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(o),i.setParent(o,a||r),t[n](o).forEach(l=>{let h=l.v===o?l.w:l.v,u=i.edge(h,o),c=u!==void 0?u.weight:0;i.setEdge(h,o,{weight:t.edge(l).weight+c})}),s.hasOwnProperty("minRank")&&i.setNode(o,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function Pf(t){for(var e;t.hasNode(e=Tf.uniqueId("_root")););return e}var Lf=If;function If(t,e,n){let r={},i;n.forEach(o=>{let s=t.parent(o),a,l;for(;s;){if(a=t.parent(s),a?(l=r[a],r[a]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=a}})}let Af=rf,Rf=af,Df=kf,Bf=Sf,$f=Lf,Vf=ve.Graph,Ct=ee;var Ff=ao;function ao(t,e){if(e&&typeof e.customOrder=="function"){e.customOrder(t,ao);return}let n=Ct.maxRank(t),r=vr(t,Ct.range(1,n+1),"inEdges"),i=vr(t,Ct.range(n-1,-1,-1),"outEdges"),o=Af(t);if(xr(t,o),e&&e.disableOptimalOrderHeuristic)return;let s=Number.POSITIVE_INFINITY,a;for(let l=0,h=0;h<4;++l,++h){Wf(l%2?r:i,l%4>=2),o=Ct.buildLayerMatrix(t);let u=Rf(t,o);ur.node(s).order=a),$f(r,n,o.vs)})}function xr(t,e){Object.values(e).forEach(n=>n.forEach((r,i)=>t.node(r).order=i))}let zf=ve.Graph,wt=ee;var Gf={positionX:Hf,findType1Conflicts:lo,findType2Conflicts:uo,addConflict:Vn,hasConflict:ho,verticalAlignment:co,horizontalCompaction:fo,alignCoordinates:go,findSmallestWidthAlignment:po,balance:mo};function lo(t,e){let n={};function r(i,o){let s=0,a=0,l=i.length,h=o[o.length-1];return o.forEach((u,c)=>{let f=jf(t,u),d=f?t.node(f).order:l;(f||u===h)&&(o.slice(a,c+1).forEach(g=>{t.predecessors(g).forEach(y=>{let T=t.node(y),S=T.order;(S{u=o[c],t.node(u).dummy&&t.predecessors(u).forEach(f=>{let d=t.node(f);d.dummy&&(d.orderh)&&Vn(n,f,u)})})}function i(o,s){let a=-1,l,h=0;return s.forEach((u,c)=>{if(t.node(u).dummy==="border"){let f=t.predecessors(u);f.length&&(l=t.node(f[0]).order,r(s,h,c,a,l),h=c,a=l)}r(s,h,s.length,l,o.length)}),s}return e.length&&e.reduce(i),n}function jf(t,e){if(t.node(e).dummy)return t.predecessors(e).find(n=>t.node(n).dummy)}function Vn(t,e,n){if(e>n){let i=e;e=n,n=i}let r=t[e];r||(t[e]=r={}),r[n]=!0}function ho(t,e,n){if(e>n){let r=e;e=n,n=r}return!!t[e]&&t[e].hasOwnProperty(n)}function co(t,e,n,r){let i={},o={},s={};return e.forEach(a=>{a.forEach((l,h)=>{i[l]=l,o[l]=l,s[l]=h})}),e.forEach(a=>{let l=-1;a.forEach(h=>{let u=r(h);if(u.length){u=u.sort((f,d)=>s[f]-s[d]);let c=(u.length-1)/2;for(let f=Math.floor(c),d=Math.ceil(c);f<=d;++f){let g=u[f];o[h]===h&&lMath.max(f,o[d.v]+s.edge(d)),0)}function u(c){let f=s.outEdges(c).reduce((g,y)=>Math.min(g,o[y.w]-s.edge(y)),Number.POSITIVE_INFINITY),d=t.node(c);f!==Number.POSITIVE_INFINITY&&d.borderType!==a&&(o[c]=Math.max(o[c],f))}return l(h,s.predecessors.bind(s)),l(u,s.successors.bind(s)),Object.keys(r).forEach(c=>o[c]=o[n[c]]),o}function Yf(t,e,n,r){let i=new zf,o=t.graph(),s=qf(o.nodesep,o.edgesep,r);return e.forEach(a=>{let l;a.forEach(h=>{let u=n[h];if(i.setNode(u),l){var c=n[l],f=i.edge(c,u);i.setEdge(c,u,Math.max(s(t,h,l),f||0))}l=h})}),i}function po(t,e){return Object.values(e).reduce((n,r)=>{let i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;Object.entries(r).forEach(([a,l])=>{let h=Xf(t,a)/2;i=Math.max(l+h,i),o=Math.min(l-h,o)});const s=i-o;return s{["l","r"].forEach(s=>{let a=o+s,l=t[a];if(l===e)return;let h=Object.values(l),u=r-Math.min(...h);s!=="l"&&(u=i-Math.max(...h)),u&&(t[a]=wt.mapValues(l,c=>c+u))})})}function mo(t,e){return wt.mapValues(t.ul,(n,r)=>{if(e)return t[e.toLowerCase()][r];{let i=Object.values(t).map(o=>o[r]).sort((o,s)=>o-s);return(i[1]+i[2])/2}})}function Hf(t){let e=wt.buildLayerMatrix(t),n=Object.assign(lo(t,e),uo(t,e)),r={},i;["u","d"].forEach(s=>{i=s==="u"?e:Object.values(e).reverse(),["l","r"].forEach(a=>{a==="r"&&(i=i.map(c=>Object.values(c).reverse()));let l=(s==="u"?t.predecessors:t.successors).bind(t),h=co(t,i,n,l),u=fo(t,i,h.root,h.align,a==="r");a==="r"&&(u=wt.mapValues(u,c=>-c)),r[s+a]=u})});let o=po(t,r);return go(r,o),mo(r,t.graph().align)}function qf(t,e,n){return(r,i,o)=>{let s=r.node(i),a=r.node(o),l=0,h;if(l+=s.width/2,s.hasOwnProperty("labelpos"))switch(s.labelpos.toLowerCase()){case"l":h=-s.width/2;break;case"r":h=s.width/2;break}if(h&&(l+=n?h:-h),h=0,l+=(s.dummy?e:t)/2,l+=(a.dummy?e:t)/2,l+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":h=a.width/2;break;case"r":h=-a.width/2;break}return h&&(l+=n?h:-h),h=0,l}}function Xf(t,e){return t.node(e).width}let wo=ee,Uf=Gf.positionX;var Kf=Zf;function Zf(t){t=wo.asNonCompoundGraph(t),Qf(t),Object.entries(Uf(t)).forEach(([e,n])=>t.node(e).x=n)}function Qf(t){let e=wo.buildLayerMatrix(t),n=t.graph().ranksep,r=0;e.forEach(i=>{const o=i.reduce((s,a)=>{const l=t.node(a).height;return s>l?s:l},0);i.forEach(s=>t.node(s).y=r+o/2),r+=o+n})}let Er=ac,kr=fc,Jf=Rc,ed=ee.normalizeRanks,td=Vc,nd=ee.removeEmptyRanks,Mr=Gc,rd=Uc,Nr=Zc,id=Ff,od=Kf,me=ee,sd=ve.Graph;var ad=ld;function ld(t,e){let n=e&&e.debugTiming?me.time:me.notime;n("layout",()=>{let r=n(" buildLayoutGraph",()=>_d(t));n(" runLayout",()=>ud(r,n)),n(" updateInputGraph",()=>hd(t,r))})}function ud(t,e){e(" makeSpaceForEdgeLabels",()=>yd(t)),e(" removeSelfEdges",()=>Td(t)),e(" acyclic",()=>Er.run(t)),e(" nestingGraph.run",()=>Mr.run(t)),e(" rank",()=>Jf(me.asNonCompoundGraph(t))),e(" injectEdgeLabelProxies",()=>bd(t)),e(" removeEmptyRanks",()=>nd(t)),e(" nestingGraph.cleanup",()=>Mr.cleanup(t)),e(" normalizeRanks",()=>ed(t)),e(" assignRankMinMax",()=>vd(t)),e(" removeEdgeLabelProxies",()=>xd(t)),e(" normalize.run",()=>kr.run(t)),e(" parentDummyChains",()=>td(t)),e(" addBorderSegments",()=>rd(t)),e(" order",()=>id(t)),e(" insertSelfEdges",()=>Sd(t)),e(" adjustCoordinateSystem",()=>Nr.adjust(t)),e(" position",()=>od(t)),e(" positionSelfEdges",()=>Od(t)),e(" removeBorderNodes",()=>Cd(t)),e(" normalize.undo",()=>kr.undo(t)),e(" fixupEdgeLabelCoords",()=>Md(t)),e(" undoCoordinateSystem",()=>Nr.undo(t)),e(" translateGraph",()=>Ed(t)),e(" assignNodeIntersects",()=>kd(t)),e(" reversePoints",()=>Nd(t)),e(" acyclic.undo",()=>Er.undo(t))}function hd(t,e){t.nodes().forEach(n=>{let r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,r.rank=i.rank,e.children(n).length&&(r.width=i.width,r.height=i.height))}),t.edges().forEach(n=>{let r=t.edge(n),i=e.edge(n);r.points=i.points,i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}let cd=["nodesep","edgesep","ranksep","marginx","marginy"],fd={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},dd=["acyclicer","ranker","rankdir","align"],pd=["width","height"],Cr={width:0,height:0},gd=["minlen","weight","width","height","labeloffset"],md={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},wd=["labelpos"];function _d(t){let e=new sd({multigraph:!0,compound:!0}),n=an(t.graph());return e.setGraph(Object.assign({},fd,sn(n,cd),me.pick(n,dd))),t.nodes().forEach(r=>{let i=an(t.node(r));const o=sn(i,pd);Object.keys(Cr).forEach(s=>{o[s]===void 0&&(o[s]=Cr[s])}),e.setNode(r,o),e.setParent(r,t.parent(r))}),t.edges().forEach(r=>{let i=an(t.edge(r));e.setEdge(r,Object.assign({},md,sn(i,gd),me.pick(i,wd)))}),e}function yd(t){let e=t.graph();e.ranksep/=2,t.edges().forEach(n=>{let r=t.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function bd(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let r=t.node(e.v),o={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};me.addDummyNode(t,"edge-proxy",o,"_ep")}})}function vd(t){let e=0;t.nodes().forEach(n=>{let r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=Math.max(e,r.maxRank))}),t.graph().maxRank=e}function xd(t){t.nodes().forEach(e=>{let n=t.node(e);n.dummy==="edge-proxy"&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}function Ed(t){let e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=t.graph(),s=o.marginx||0,a=o.marginy||0;function l(h){let u=h.x,c=h.y,f=h.width,d=h.height;e=Math.min(e,u-f/2),n=Math.max(n,u+f/2),r=Math.min(r,c-d/2),i=Math.max(i,c+d/2)}t.nodes().forEach(h=>l(t.node(h))),t.edges().forEach(h=>{let u=t.edge(h);u.hasOwnProperty("x")&&l(u)}),e-=s,r-=a,t.nodes().forEach(h=>{let u=t.node(h);u.x-=e,u.y-=r}),t.edges().forEach(h=>{let u=t.edge(h);u.points.forEach(c=>{c.x-=e,c.y-=r}),u.hasOwnProperty("x")&&(u.x-=e),u.hasOwnProperty("y")&&(u.y-=r)}),o.width=n-e+s,o.height=i-r+a}function kd(t){t.edges().forEach(e=>{let n=t.edge(e),r=t.node(e.v),i=t.node(e.w),o,s;n.points?(o=n.points[0],s=n.points[n.points.length-1]):(n.points=[],o=i,s=r),n.points.unshift(me.intersectRect(r,o)),n.points.push(me.intersectRect(i,s))})}function Md(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.hasOwnProperty("x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function Nd(t){t.edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}function Cd(t){t.nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(n.borderLeft[n.borderLeft.length-1]),s=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),t.nodes().forEach(e=>{t.node(e).dummy==="border"&&t.removeNode(e)})}function Td(t){t.edges().forEach(e=>{if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function Sd(t){var e=me.buildLayerMatrix(t);e.forEach(n=>{var r=0;n.forEach((i,o)=>{var s=t.node(i);s.order=o+r,(s.selfEdges||[]).forEach(a=>{me.addDummyNode(t,"selfedge",{width:a.label.width,height:a.label.height,rank:s.rank,order:o+ ++r,e:a.e,label:a.label},"_se")}),delete s.selfEdges})})}function Od(t){t.nodes().forEach(e=>{var n=t.node(e);if(n.dummy==="selfedge"){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}function sn(t,e){return me.mapValues(me.pick(t,e),Number)}function an(t){var e={};return t&&Object.entries(t).forEach(([n,r])=>{typeof n=="string"&&(n=n.toLowerCase()),e[n]=r}),e}let Pd=ee,Ld=ve.Graph;var Id={debugOrdering:Ad};function Ad(t){let e=Pd.buildLayerMatrix(t),n=new Ld({compound:!0,multigraph:!0}).setGraph({});return t.nodes().forEach(r=>{n.setNode(r,{label:r}),n.setParent(r,"layer"+t.node(r).rank)}),t.edges().forEach(r=>n.setEdge(r.v,r.w,{},r.name)),e.forEach((r,i)=>{let o="layer"+i;n.setNode(o,{rank:"same"}),r.reduce((s,a)=>(n.setEdge(s,a,{style:"invis"}),a))}),n}var Rd="1.1.2",Rt={graphlib:ve,layout:ad,debug:Id,util:{time:ee.time,notime:ee.notime},version:Rd};const Tr=Wu(Rt);class Dd{compute(e,n){const r=new Tr.graphlib.Graph;r.setGraph({}),r.setDefaultEdgeLabel(()=>({})),r.setDefaultNodeLabel(()=>({}));const i=new Map,o=new Map,s=new Map,a=new Map,l=b=>{const w=e.childrenT(b);if(w.length===0){const m=e.node(b).build(),{width:_,height:k}=m.boundingBox();r.setNode(b,{width:_,height:k}),i.set(b,m)}else{if(!n.has(b)&&b!==e.root()){const m=e.node(b);s.set(b,{boundingBox:{},name:m.humanReadable()||b})}for(const m of w)if(n.has(m))for(const _ of e.hierarchyPreorder(m)){const k=e.node(m).build();a.set(_,m);const{width:C,height:A}=k.boundingBox();r.setNode(m,{width:C,height:A}),o.set(m,k)}else l(m)}};l(e.root());for(const{v:b,w}of e.edges()){const m=a.get(b)||b,_=a.get(w)||w;m!==_&&r.setEdge(m,_)}const h=performance.now();Tr.layout(r);const u=performance.now(),{width:c,height:f}=r.graph(),d=new q(0,0,c,f);for(const[b,w]of i.entries()){const{x:m,y:_,width:k,height:C}=r.node(b);w.moveTo(m-k/2,_-C/2)}for(const[b,w]of o.entries()){const{x:m,y:_,width:k,height:C}=r.node(b);w.moveTo(m-k/2,_-C/2)}const g=20;for(const b of e.hierarchyPostorder()){const w=s.get(b);if(w!==void 0){const m=e.childrenT(b).reduce((_,k)=>{const C=i.get(k)?.boundingBox();C!==void 0&&_.push(C);const A=o.get(k)?.boundingBox();A!==void 0&&_.push(A);const W=s.get(k)?.boundingBox;if(W!==void 0&&k!==b){const X=2*-g+10,K=q.fromCenterAndDimension(W.center,W.width+X,W.height+X);_.push(K)}return _},[]);w.boundingBox=q.fromUnion(...m).padded(g)}}const y=r.edges().map(b=>{const{points:w}=r.edge(b);return[{from:b.v,to:b.w},new xu(w)]}).map(([b,w])=>w),T={layoutTimeMs:u-h},S=new Eu(...y);return{nodes:i,collapsed:o,expanded:s,edges:S,boundingBox:d.union(S.boundingBox()),stats:T}}}class _o extends Rt.graphlib.Graph{constructor(e){super({compound:!0}),e!==void 0?Object.assign(this,e):(this.setGraph({}),this.setDefaultEdgeLabel(()=>({})))}setNodeWithParent(e,n,r){this.setNode(e,n),this.setParent(e,r)}parents(e){const n=[];let r=this.parent(e);for(;r!==void 0;)n.push(r),r=this.parent(r);return n}hierarchyPreorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{n.push(o);for(const s of this.childrenT(o))i(s)};for(const o of this.childrenT(r))i(o);return n}hierarchyPostorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{for(const s of this.childrenT(o))i(s);n.push(o)};for(const o of this.childrenT(r))i(o);return n}childrenT(e){return this.children(e)}parent(e){return super.parent(e)}nodes(){return super.nodes()}modules(){return this.nodes().filter(e=>this.childrenT(e).length>0)}edges(){return super.edges()}root(){return"\0"}toJson(){return Rt.graphlib.json.write(this)}static readJson(e){return new _o(Rt.graphlib.json.read(e))}}function Bd(t,e,n,r){const i=new Set,o=new Set;if(r.expand)for(const a of e)for(const l of t.parents(a))n.has(l)?o.add(l):i.add(l);const s=new Set;if(r.collapseOthers)for(const a of t.modules())!o.has(a)&&!n.has(a)&&!i.has(a)&&s.add(a);return{collapse:s,expand:o}}function $d(t,e){const n=r=>e.has(r)||t.childrenT(r).length===0?1:t.childrenT(r).reduce((i,o)=>i+n(o),0);return t.childrenT(t.root()).reduce((r,i)=>r+n(i),0)}function Vd(t){let e;return{c(){e=V("path"),this.h()},l(n){e=F(n,"path",{d:!0,transform:!0,fill:!0,stroke:!0}),L(e).forEach(E),this.h()},h(){p(e,"d","M20.441,59.9614212 C21.0957895,59.9614212 22.7266842,56.6764211 22.7266842,52.7482369 L22.7266842,38.6593685 L18.182579,38.6593685 L18.182579,52.7482369 C18.182579,56.6764211 19.8134737,59.9614212 20.441,59.9614212 Z M4.26163159,40.7638948 L36.6204211,40.7638948 C38.9460001,40.7638948 40.4145264,39.317579 40.4145264,37.1453685 C40.4145264,29.5821053 31.9740001,21.9558421 20.441,21.9558421 C8.93526317,21.9558421 0.494736843,29.5821053 0.494736843,37.1453685 C0.494736843,39.317579 1.96884211,40.7638948 4.26163159,40.7638948 Z M5.2911579,36.8756316 C4.71700001,36.8756316 4.4541579,36.5583159 4.56310527,35.8480001 C5.1023158,31.2280527 11.0429474,25.7078948 20.441,25.7078948 C29.8718948,25.7078948 35.7796843,31.2280527 36.346158,35.8480001 C36.4551053,36.5583159 36.1650001,36.8756316 35.5908948,36.8756316 L5.2911579,36.8756316 Z M3.74989474,2.76857895 C3.74989474,3.55452632 4.0611579,4.40605264 4.72705264,5.26868422 C6.03868422,7.0183158 9.13778949,9.44489475 12.3810527,11.5798421 L11.4523158,25.1263685 L15.5584737,25.1263685 L16.4983158,9.67205265 C16.5311053,9.30078949 16.4711053,9.17515791 16.2254211,9.04952633 C12.3641579,7.09368422 9.37084212,4.73952632 9.18573686,4.22889474 C8.96778949,3.90094737 9.18626317,3.66589474 9.48189475,3.66589474 L31.4273685,3.66589474 C31.7013158,3.66589474 31.9142106,3.90094737 31.7291053,4.22889474 C31.5112106,4.73952632 28.5451053,7.09368422 24.6621579,9.04952633 C24.4437369,9.17515791 24.3836843,9.30078949 24.4164737,9.67205265 L25.3563685,25.1263685 L29.4569474,25.1263685 L28.501,11.5798421 C31.7497895,9.44489475 34.8488948,7.0183158 36.1605264,5.26868422 C36.8481053,4.40605264 37.1593685,3.55452632 37.1593685,2.76857895 C37.1593685,1.20726316 35.9421053,0.0500000001 34.1512632,0.0500000001 L6.75800001,0.0500000001 C4.93989475,0.0500000001 3.74989474,1.20726316 3.74989474,2.76857895 Z"),p(e,"transform","translate(11.737 2)"),p(e,"fill",t[0]),p(e,"stroke",t[1])},m(n,r){I(n,e,r)},p(n,[r]){r&1&&p(e,"fill",n[0]),r&2&&p(e,"stroke",n[1])},i:Y,o:Y,d(n){n&&E(e)}}}function Fd(t,e,n){let{fill:r="white"}=e,{stroke:i="white"}=e;return t.$$set=o=>{"fill"in o&&n(0,r=o.fill),"stroke"in o&&n(1,i=o.stroke)},[r,i]}class Wd extends ae{constructor(e){super(),le(this,e,Fd,Vd,se,{fill:0,stroke:1})}}function zd(t){let e,n,r,i,o,s,a,l,h,u,c,f,d;const g=[{self:t[0].content}];var y=t[0].content.drawable();function T(S,b){let w={};for(let m=0;m{J(w,1)}),fe()}y?(n=Qe(y,T(S,b)),Z(n.$$.fragment),P(n.$$.fragment,1),Q(n,e,r)):n=null}else if(y){const w=b&1?Je(g,[{self:S[0].content}]):{};n.$set(w)}(!c||b&2&&o!==(o=S[1]==="pinned"?"orange":"rgb(51,51,51)"))&&p(i,"fill",o),(!c||b&4&&u!==(u=`translate(${S[2].width+S[6].x},${-S[6].y})`))&&p(r,"transform",u)},i(S){c||(n&&P(n.$$.fragment,S),P(h.$$.fragment,S),c=!0)},o(S){n&&D(n.$$.fragment,S),D(h.$$.fragment,S),c=!1},d(S){S&&E(e),n&&J(n),J(h),f=!1,Gt(d)}}}function Gd(t,e,n){let r,{nodeId:i}=e,{tooltip:o}=e,{state:s}=e;const a=nt();function l(f){f.stopPropagation(),a("togglePin",{nodeId:i})}function h(f){a("nodeEnter",{...f,nodeId:i})}function u(f){a("nodeLeave",{...f,nodeId:i})}const c={x:1,y:1};return t.$$set=f=>{"nodeId"in f&&n(7,i=f.nodeId),"tooltip"in f&&n(0,o=f.tooltip),"state"in f&&n(1,s=f.state)},t.$$.update=()=>{t.$$.dirty&1&&n(2,r=o.boundingBox())},[o,s,r,l,h,u,c,i]}class jd extends ae{constructor(e){super(),le(this,e,Gd,zd,se,{nodeId:7,tooltip:0,state:1})}}const yo=300;function Yd(t,e,n){function r(){t.update(i=>(i.set(e,{tooltip:n,state:"active"}),i))}return window.setTimeout(r,yo)}function bo(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&r.state!=="pinned"&&(r.state!=="active"&&window.clearTimeout(r.state),n.set(e,{...r,state:"active"})),n})}function vo(t,e){function n(){t.update(r=>(r.delete(e),r))}t.update(r=>{const i=r.get(e);return i!==void 0&&i.state!=="pinned"&&r.set(e,{...i,state:window.setTimeout(n,yo)}),r})}function Hd(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&(r.state==="pinned"?n.set(e,{...r,state:"active"}):n.set(e,{...r,state:"pinned"})),n})}function Sr(t,e,n){const r=t.slice();return r[9]=e[n][0],r[10]=e[n][1].position,r[11]=e[n][1].tooltip,r[12]=e[n][1].state,r}function Or(t,e){let n,r,i,o;return r=new jd({props:{nodeId:e[9],tooltip:e[11],state:e[12]}}),r.$on("mouseenter",e[2]),r.$on("mouseleave",e[3]),r.$on("togglePin",e[4]),r.$on("nodeEnter",e[7]),r.$on("nodeLeave",e[8]),{key:t,first:null,c(){n=V("g"),Z(r.$$.fragment),this.h()},l(s){n=F(s,"g",{transform:!0});var a=L(n);oe(r.$$.fragment,a),a.forEach(E),this.h()},h(){p(n,"transform",i=`translate(${e[10].x},${e[10].y})`),this.first=n},m(s,a){I(s,n,a),Q(r,n,null),o=!0},p(s,a){e=s;const l={};a&1&&(l.nodeId=e[9]),a&1&&(l.tooltip=e[11]),a&1&&(l.state=e[12]),r.$set(l),(!o||a&1&&i!==(i=`translate(${e[10].x},${e[10].y})`))&&p(n,"transform",i)},i(s){o||(P(r.$$.fragment,s),o=!0)},o(s){D(r.$$.fragment,s),o=!1},d(s){s&&E(n),J(r)}}}function qd(t){let e=[],n=new Map,r,i,o=ge(t[0]);const s=a=>a[9];for(let a=0;an(6,i=f));let{nodeLayouts:s}=e;function a(f){bo(o,f.detail.nodeId)}function l(f){vo(o,f.detail.nodeId)}function h(f){Hd(o,f.detail.nodeId)}function u(f){ue.call(this,t,f)}function c(f){ue.call(this,t,f)}return t.$$set=f=>{"nodeLayouts"in f&&n(5,s=f.nodeLayouts)},t.$$.update=()=>{t.$$.dirty&96&&n(0,r=[...i.entries()].filter(([f])=>s.has(f)).map(([f,{tooltip:d,state:g}])=>{const y=s.get(f)?.boundingBox(),T=gu(y,d.boundingBox(),d.options.anchor,Xd);return[f,{position:T,tooltip:d,state:g}]}))},[r,o,a,l,h,s,i,u,c]}class Kd extends ae{constructor(e){super(),le(this,e,Ud,qd,se,{nodeLayouts:5})}}function Zd(t){let e,n,r,i,o,s,a,l,h;return{c(){e=V("g"),n=V("rect"),o=V("text"),s=Ae(t[0]),this.h()},l(u){e=F(u,"g",{class:!0,transform:!0});var c=L(e);n=F(c,"rect",{width:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,rx:!0,class:!0}),L(n).forEach(E),o=F(c,"text",{y:!0,"font-family":!0,class:!0});var f=L(o);s=Re(f,t[0]),f.forEach(E),c.forEach(E),this.h()},h(){p(n,"width",r=t[1].width),p(n,"height",i=t[1].height),p(n,"fill","rgb(250,250,250)"),p(n,"stroke","rgb(134, 134, 139)"),p(n,"stroke-width","1"),p(n,"rx","6"),p(n,"class","svelte-76qmi8"),p(o,"y","-2"),p(o,"font-family",jt.family),p(o,"class","svelte-76qmi8"),p(e,"class","expand svelte-76qmi8"),p(e,"transform",a=`translate(${t[1].xMin},${t[1].yMin})`)},m(u,c){I(u,e,c),B(e,n),B(e,o),B(o,s),l||(h=[H(e,"click",t[5]),H(e,"dblclick",t[6]),H(e,"mouseenter",t[2]),H(e,"mouseleave",t[3])],l=!0)},p(u,[c]){c&2&&r!==(r=u[1].width)&&p(n,"width",r),c&2&&i!==(i=u[1].height)&&p(n,"height",i),c&1&&_t(s,u[0]),c&2&&a!==(a=`translate(${u[1].xMin},${u[1].yMin})`)&&p(e,"transform",a)},i:Y,o:Y,d(u){u&&E(e),l=!1,Gt(h)}}}function Qd(t,e,n){const r=nt();let{nodeId:i}=e,{name:o}=e,{boundingBox:s}=e;function a(){r("nodeEnter",{nodeId:i})}function l(){r("nodeLeave",{nodeId:i})}function h(c){ue.call(this,t,c)}function u(c){ue.call(this,t,c)}return t.$$set=c=>{"nodeId"in c&&n(4,i=c.nodeId),"name"in c&&n(0,o=c.name),"boundingBox"in c&&n(1,s=c.boundingBox)},[o,s,a,l,i,h,u]}class Jd extends ae{constructor(e){super(),le(this,e,Qd,Zd,se,{nodeId:4,name:0,boundingBox:1})}}class Fn{constructor(e,n,r={x:0,y:0},i=1){this.width=e,this.height=n,this.cameraPos=r,this.cameraScale=i}viewToWorld(){return un.identity().translate(this.cameraPos.x,this.cameraPos.y)}worldToView(){return this.viewToWorld().inverse()}screenToView(){return un.identity().scale(1/this.cameraScale).translate(-this.width/2,-this.height/2)}viewToScreen(){return this.screenToView().inverse()}worldToScreen(){const e=this.worldToView();return this.viewToScreen().scale(e.k).translate(e.x,e.y)}screenToWorld(){return this.worldToScreen().inverse()}screenWidth(){return this.width}screenHeight(){return this.height}moveBy(e,n){this.cameraPos.x+=e,this.cameraPos.y+=n}moveTo(e,n){this.cameraPos.x=e,this.cameraPos.y=n}resize(e,n){this.width=e,this.height=n}center(){return this.cameraPos}scale(){return this.cameraScale}scaleBy(e){this.cameraScale*=e}scaleTo(e){this.cameraScale=e}fit(e){const{x:n,y:r}=e.center;this.moveTo(n,r);const i=Math.min(this.width/e.width,this.height/e.height);this.scaleTo(i||1)}world(){const e=this.screenToWorld().apply(0,0),n=this.screenToWorld().apply(this.width,this.height);return new q(e.x,e.y,n.x,n.y)}viewBox(){const e=this.world();return`${e.xMin} ${e.yMin} ${e.width} ${e.height}`}}class ep{constructor(e){this.viewport=e}scaleMin=Number.MIN_VALUE;scaleMax=Number.MAX_VALUE;boundingBox=q.infinity();setViewport(e){this.viewport=e}setScaleExtent(e){return e.min!==void 0&&(this.scaleMin=e.min),e.max!==void 0&&(this.scaleMax=e.max),this}scaleExtent(){return{min:this.scaleMin,max:this.scaleMax}}setTranslationExtent(e){return e.xMin!==void 0&&(this.boundingBox.xMin=e.xMin),e.yMin!==void 0&&(this.boundingBox.yMin=e.yMin),e.xMax!==void 0&&(this.boundingBox.xMax=e.xMax),e.yMax!==void 0&&(this.boundingBox.yMax=e.yMax),this}translationExtent(){return this.boundingBox}limitScale(e){return At(this.scaleMin,this.scaleMax,e)}limitTranslation(e,n){return e=At(this.boundingBox.xMin,this.boundingBox.xMax,e),n=At(this.boundingBox.yMin,this.boundingBox.yMax,n),{x:e,y:n}}scaleBy(e){const n=this.limitScale(this.viewport.scale()*e);this.viewport.scaleTo(n)}scaleTo(e){const n=this.limitScale(e);this.viewport.scaleTo(n)}moveBy(e,n){const{x:r,y:i}=this.viewport.center(),o=this.limitTranslation(r+e,i+n);this.viewport.moveTo(o.x,o.y)}moveTo(e,n){const r=this.limitTranslation(e,n);this.viewport.moveTo(r.x,r.y)}}function Pr(t){return Object.prototype.toString.call(t)==="[object Date]"}function tp(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function kn(t,e){if(t===e||t!==t)return()=>t;const n=typeof t;if(n!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((i,o)=>kn(t[o],i));return i=>r.map(o=>o(i))}if(n==="object"){if(!t||!e)throw new Error("Object cannot be null");if(Pr(t)&&Pr(e)){t=t.getTime(),e=e.getTime();const o=e-t;return s=>new Date(t+s*o)}const r=Object.keys(e),i={};return r.forEach(o=>{i[o]=kn(t[o],e[o])}),o=>{const s={};return r.forEach(a=>{s[a]=i[a](o)}),s}}if(n==="number"){const r=e-t;return i=>t+i*r}throw new Error(`Cannot interpolate ${n} values`)}function np(t,e={}){const n=ln(t);let r,i=t;function o(s,a){if(t==null)return n.set(t=s),Promise.resolve();i=s;let l=r,h=!1,{delay:u=0,duration:c=400,easing:f=Po,interpolate:d=kn}=Ie(Ie({},e),a);if(c===0)return l&&(l.abort(),l=null),n.set(t=i),Promise.resolve();const g=Ro()+u;let y;return r=Do(T=>{if(Tc?(n.set(t=s),!1):(n.set(t=y(f(S/c))),!0)}),r.promise}return{set:o,update:(s,a)=>o(s(i,t),a),subscribe:n.subscribe}}function rp(t){let e,n,r,i,o;return{c(){e=V("rect"),this.h()},l(s){e=F(s,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0,opacity:!0}),L(e).forEach(E),this.h()},h(){p(e,"x",n=t[0].xMin),p(e,"y",r=t[0].yMin),p(e,"width",i=t[0].width),p(e,"height",o=t[0].height),p(e,"fill","grey"),p(e,"opacity","0.2")},m(s,a){I(s,e,a)},p(s,[a]){a&1&&n!==(n=s[0].xMin)&&p(e,"x",n),a&1&&r!==(r=s[0].yMin)&&p(e,"y",r),a&1&&i!==(i=s[0].width)&&p(e,"width",i),a&1&&o!==(o=s[0].height)&&p(e,"height",o)},i:Y,o:Y,d(s){s&&E(e)}}}function ip(t,e,n){let r,{start:i}=e,{end:o}=e;return t.$$set=s=>{"start"in s&&n(1,i=s.start),"end"in s&&n(2,o=s.end)},t.$$.update=()=>{t.$$.dirty&6&&n(0,r=q.fromPoints(i,o))},[r,i,o]}class op extends ae{constructor(e){super(),le(this,e,ip,rp,se,{start:1,end:2})}}function sp(t){let e,n,r;return{c(){e=V("defs"),n=V("marker"),r=V("path"),this.h()},l(i){e=F(i,"defs",{});var o=L(e);n=F(o,"marker",{id:!0,viewBox:!0,refX:!0,refY:!0,markerUnits:!0,markerWidth:!0,markerHeight:!0,orient:!0});var s=L(n);r=F(s,"path",{d:!0,fill:!0,style:!0}),L(r).forEach(E),s.forEach(E),o.forEach(E),this.h()},h(){p(r,"d","M 0 0 L 10 5 L 0 10 L 4 5 z"),p(r,"fill","var(--gray-tertiary)"),Lo(r,"stroke-width","1"),p(n,"id","arrowhead"),p(n,"viewBox","0 0 10 10"),p(n,"refX","9"),p(n,"refY","5"),p(n,"markerUnits","strokeWidth"),p(n,"markerWidth","10"),p(n,"markerHeight","12"),p(n,"orient","auto")},m(i,o){I(i,e,o),B(e,n),B(n,r)},p:Y,d(i){i&&E(e)}}}function ap(t){let e;const n=t[1].default,r=Ur(n,t,t[2],null),i=r||sp();return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s&4)&&Kr(r,n,o,o[2],e?Qr(n,o[2],s,null):Zr(o[2]),null)},i(o){e||(P(i,o),e=!0)},o(o){D(i,o),e=!1},d(o){i&&i.d(o)}}}function lp(t){let e,n;return e=new Ln({props:{self:t[0],$$slots:{default:[ap]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.self=r[0]),i&4&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function up(t,e,n){let{$$slots:r={},$$scope:i}=e,{self:o}=e;return t.$$set=s=>{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(2,i=s.$$scope)},[o,r,i]}class hp extends ae{constructor(e){super(),le(this,e,up,lp,se,{self:0})}}function Lr(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Ir(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Ar(t,e,n){const r=t.slice();return r[34]=e[n][0],r[40]=e[n][1].name,r[41]=e[n][1].boundingBox,r}function Rr(t,e){let n,r,i;function o(...s){return e[19](e[34],...s)}return r=new Jd({props:{nodeId:e[34],name:e[40],boundingBox:e[41]}}),r.$on("dblclick",o),r.$on("nodeEnter",e[20]),r.$on("nodeLeave",e[21]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.nodeId=e[34]),a[0]&4&&(l.name=e[40]),a[0]&4&&(l.boundingBox=e[41]),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function Dr(t,e){let n,r,i;function o(...s){return e[22](e[34],...s)}return r=new An({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("click",o),r.$on("nodeEnter",e[23]),r.$on("nodeLeave",e[24]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function Br(t,e){let n,r,i;function o(...s){return e[25](e[34],...s)}return r=new An({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("dblclick",o),r.$on("nodeEnter",e[26]),r.$on("nodeLeave",e[27]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){I(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(P(r.$$.fragment,s),i=!0)},o(s){D(r.$$.fragment,s),i=!1},d(s){s&&E(n),J(r,s)}}}function $r(t){let e,n;return e=new op({props:{start:t[3].start,end:t[3].end}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&8&&(o.start=r[3].start),i[0]&8&&(o.end=r[3].end),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function cp(t){let e,n,r=[],i=new Map,o,s,a=[],l=new Map,h,u=[],c=new Map,f,d,g,y,T,S,b,w,m,_,k=ge([...t[2].expanded.entries()]);const C=N=>N[34];for(let N=0;NN[34];for(let N=0;NN[34];for(let N=0;N{$=null}),fe());const j={};v[0]&4&&(j.nodeLayouts=N[2].nodes),g.$set(j),(!w||v[0]&64&&y!==(y=N[6].toString()))&&p(n,"transform",y),(!w||v[0]&1&&T!==(T=N[0].screenWidth()))&&p(e,"width",T),(!w||v[0]&1&&S!==(S=N[0].screenHeight()))&&p(e,"height",S),(!w||v[0]&32&&b!==(b=`cursor: ${N[5]}`))&&p(e,"style",b)},i(N){if(!w){for(let v=0;vM.encloses(te.boundingBox())).map(([pe,te])=>pe);w("brush",{nodes:R});break}}n(3,d={kind:"initial"})}function T(M){const{x:R,y:pe}=f(M),te=l.screenToWorld().apply(R,pe);switch(d.kind){case"initial":return;case"panning":{const Oe=d.start.x-te.x,Ee=d.start.y-te.y;u.moveBy(Oe,Ee),n(0,l);break}case"brushing":{n(3,d.end=te,d);break}}}function S(M){M.preventDefault();const R=-M.deltaY*(M.deltaMode===1?.05:M.deltaMode?1:.002),pe=l.scale();if(u.scaleBy(Math.pow(2,R)),pe===l.scale())return;const te=l.center(),{x:Oe,y:Ee}=f(M),Be=l.screenToWorld().apply(Oe,Ee);u.moveBy(-(te.x-Be.x)*R,-(te.y-Be.y)*R),n(0,l)}async function b(M,R){const pe=q.fromCenterAndDimension(M.center,Math.max(l.screenWidth(),M.width),Math.max(l.screenHeight(),M.height)),{x:te,y:Oe}=pe.center,Ee=Math.min(l.screenWidth()/M.width,l.screenHeight()/M.height)||1;if(R!==void 0&&R){const Be=np({...l.center(),k:l.scale()},{duration:1e3,easing:tp});Be.subscribe(Pe=>{u.moveTo(Pe.x,Pe.y),u.scaleTo(Pe.k),n(0,l)}),await Be.set({x:te,y:Oe,k:Ee})}else u.moveTo(te,Oe),u.scaleTo(Ee),n(0,l)}const w=nt();function m(M,R){M.stopPropagation(),w("collapse",{nodeId:R})}function _(M,R){M.stopPropagation(),w("expand",{nodeId:R})}function k(M,R){M.stopPropagation(),w("nodeClick",{nodeId:R,original:M})}function C(M){d.kind==="initial"&&M.shiftKey&&h&&n(3,d={kind:"awaitBrushing"})}function A(){d.kind==="awaitBrushing"&&n(3,d={kind:"initial"})}const W=(M,R)=>{m(R,M)};function X(M){ue.call(this,t,M)}function K(M){ue.call(this,t,M)}const $=(M,R)=>{k(R,M)};function N(M){ue.call(this,t,M)}function v(M){ue.call(this,t,M)}const O=(M,R)=>{_(R,M)};function j(M){ue.call(this,t,M)}function He(M){ue.call(this,t,M)}function we(M){ue.call(this,t,M)}function qe(M){ue.call(this,t,M)}function xe(M){Xe[M?"unshift":"push"](()=>{c=M,n(4,c)})}return t.$$set=M=>{"decorations"in M&&n(1,s=M.decorations),"drawable"in M&&n(2,a=M.drawable),"viewport"in M&&n(0,l=M.viewport),"multiSelection"in M&&n(16,h=M.multiSelection)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(18,r=l.world()),t.$$.dirty[0]&262149&&u.setScaleExtent({min:Math.min(l.screenWidth()/a.boundingBox.width,l.screenHeight()/a.boundingBox.height)*.5,max:1}).setTranslationExtent(a.boundingBox.padded({l:r.width*.4,r:r.width*.4,t:r.height*.4,b:r.height*.4})),t.$$.dirty[0]&1&&n(6,i=l.worldToScreen().toString()),t.$$.dirty[0]&8&&n(5,o=fp(d))},[l,s,a,d,c,o,i,g,y,T,S,m,_,k,C,A,h,b,r,W,X,K,$,N,v,O,j,He,we,qe,xe]}class pp extends ae{constructor(e){super(),le(this,e,dp,cp,se,{decorations:1,drawable:2,viewport:0,multiSelection:16,setFocus:17},null,[-1,-1])}get setFocus(){return this.$$.ctx[17]}}function gp(t){let e,n,r,i,o,s,a,l,h,u,c,f,d,g,y,T,S;return{c(){e=ne("div"),n=ne("canvas"),r=Ce(),i=V("svg"),o=V("rect"),c=V("rect"),this.h()},l(b){e=re(b,"DIV",{class:!0});var w=L(e);n=re(w,"CANVAS",{class:!0}),L(n).forEach(E),r=Te(w),i=F(w,"svg",{role:!0,width:!0,height:!0,class:!0});var m=L(i);o=F(m,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,opacity:!0,style:!0}),L(o).forEach(E),c=F(m,"rect",{fill:!0,stroke:!0,x:!0,y:!0,width:!0,height:!0}),L(c).forEach(E),m.forEach(E),w.forEach(E),this.h()},h(){p(n,"class","svelte-133ndzu"),p(o,"fill","rgb(0, 122, 255)"),p(o,"x",s=t[6].x),p(o,"y",a=t[6].y),p(o,"width",l=t[6].w),p(o,"height",h=t[6].h),p(o,"opacity","0.1"),p(o,"style",u=t[5]?"cursor: grabbing":"cursor: grab"),p(c,"fill","none"),p(c,"stroke","rgb(0, 122, 255)"),p(c,"x",f=t[6].x),p(c,"y",d=t[6].y),p(c,"width",g=t[6].w),p(c,"height",y=t[6].h),p(i,"role","navigation"),p(i,"width",t[0]),p(i,"height",t[1]),p(i,"class","svelte-133ndzu"),p(e,"class","container svelte-133ndzu")},m(b,w){I(b,e,w),B(e,n),t[11](n),B(e,r),B(e,i),B(i,o),t[12](o),B(i,c),t[13](i),T||(S=H(i,"mousedown",t[7]),T=!0)},p(b,[w]){w&64&&s!==(s=b[6].x)&&p(o,"x",s),w&64&&a!==(a=b[6].y)&&p(o,"y",a),w&64&&l!==(l=b[6].w)&&p(o,"width",l),w&64&&h!==(h=b[6].h)&&p(o,"height",h),w&32&&u!==(u=b[5]?"cursor: grabbing":"cursor: grab")&&p(o,"style",u),w&64&&f!==(f=b[6].x)&&p(c,"x",f),w&64&&d!==(d=b[6].y)&&p(c,"y",d),w&64&&g!==(g=b[6].w)&&p(c,"width",g),w&64&&y!==(y=b[6].h)&&p(c,"height",y),w&1&&p(i,"width",b[0]),w&2&&p(i,"height",b[1])},i:Y,o:Y,d(b){b&&E(e),t[11](null),t[12](null),t[13](null),T=!1,S()}}}function mp(t,e,n){let r,i;const o=nt();function s(_){const k=r.worldToScreen().apply(_.xMin,_.yMin),C=r.worldToScreen().apply(_.xMax,_.yMax);return{x:k.x,y:k.y,w:C.x-k.x,h:C.y-k.y}}let{drawable:a}=e,{width:l}=e,{height:h}=e,{worldExtent:u}=e,c,f;function d(_){let k=f.createSVGPoint();k.x=_.clientX,k.y=_.clientY,k=k.matrixTransform(f.getScreenCTM()?.inverse());const C=r.screenToWorld().apply(k.x,k.y);o("viewportCenterDidChange",{center:C})}let g;function y(_){const k=r.screenToWorld().apply(0,0),C=r.screenToWorld().apply(_.dx,_.dy),A=u.center;A.x+=C.x-k.x,A.y+=C.y-k.y,o("viewportCenterDidChange",{center:A})}let T=!1;const S=Na().on("drag",y).on("start",()=>n(5,T=!0)).on("end",()=>n(5,T=!1));ni(()=>{ct(g).call(S)});function b(_){Xe[_?"unshift":"push"](()=>{c=_,n(2,c),n(0,l),n(1,h),n(8,a)})}function w(_){Xe[_?"unshift":"push"](()=>{g=_,n(4,g)})}function m(_){Xe[_?"unshift":"push"](()=>{f=_,n(3,f)})}return t.$$set=_=>{"drawable"in _&&n(8,a=_.drawable),"width"in _&&n(0,l=_.width),"height"in _&&n(1,h=_.height),"worldExtent"in _&&n(9,u=_.worldExtent)},t.$$.update=()=>{if(t.$$.dirty&3&&n(10,r=new Fn(l,h)),t.$$.dirty&1280&&r.fit(a.boundingBox.padded(2)),t.$$.dirty&512&&n(6,i=s(u)),t.$$.dirty&263&&c){let _=c.getContext("2d");n(2,c.width=l,c),n(2,c.height=h,c),_.fillStyle="white",_.fillRect(0,0,l,h),_.lineWidth=.5;for(const{boundingBox:k}of a.expanded.values()){const C=s(k);_.fillStyle="rgb(250, 250, 250)",_.fillRect(C.x,C.y,C.w,C.h),_.strokeStyle="rgb(134, 134, 139)",_.strokeRect(C.x,C.y,C.w,C.h)}for(const k of a.nodes.values()){const C=s(k.boundingBox());_.fillStyle="rgb(134, 134, 139)",_.fillRect(C.x,C.y,C.w,C.h)}for(const k of a.collapsed.values()){const C=s(k.boundingBox());_.fillStyle="rgb(134, 134, 139)",_.fillRect(C.x,C.y,C.w,C.h)}}},[l,h,c,f,g,T,i,d,a,u,r,b,w,m]}class wp extends ae{constructor(e){super(),le(this,e,mp,gp,se,{drawable:8,width:0,height:1,worldExtent:9})}}function Vr(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function _p(t){let e,n;return{c(){e=ne("span"),n=Ae(t[0]),this.h()},l(r){e=re(r,"SPAN",{class:!0});var i=L(e);n=Re(i,t[0]),i.forEach(E),this.h()},h(){p(e,"class","svelte-122vmdc")},m(r,i){I(r,e,i),B(e,n)},p(r,i){i&1&&_t(n,r[0])},d(r){r&&E(e)}}}function yp(t){let e,n,r,i,o=ge(t[3]),s=[];for(let u=0;u{"defaultText"in l&&n(0,i=l.defaultText),"network"in l&&n(4,o=l.network),"drawable"in l&&n(1,s=l.drawable),"currentNode"in l&&n(2,a=l.currentNode)},t.$$.update=()=>{t.$$.dirty&20&&n(3,r=a?[a,...o.parents(a)].reverse().map(l=>o.node(l).humanReadable()||l):[])},[i,s,a,r,o]}class kp extends ae{constructor(e){super(),le(this,e,Ep,xp,se,{defaultText:0,network:4,drawable:1,currentNode:2})}}function zr(t){let e,n,r;function i(s){t[34](s)}let o={decorations:t[8],drawable:t[15],multiSelection:t[7]};return t[13]!==void 0&&(o.viewport=t[13]),e=new pp({props:o}),t[33](e),Xe.push(()=>Oo(e,"viewport",i)),e.$on("expand",t[18]),e.$on("collapse",t[19]),e.$on("nodeEnter",t[20]),e.$on("nodeLeave",t[21]),e.$on("nodeClick",t[22]),e.$on("brush",t[25]),{c(){Z(e.$$.fragment)},l(s){oe(e.$$.fragment,s)},m(s,a){Q(e,s,a),r=!0},p(s,a){const l={};a[0]&256&&(l.decorations=s[8]),a[0]&32768&&(l.drawable=s[15]),a[0]&128&&(l.multiSelection=s[7]),!n&&a[0]&8192&&(n=!0,l.viewport=s[13],Ao(()=>n=!1)),e.$set(l)},i(s){r||(P(e.$$.fragment,s),r=!0)},o(s){D(e.$$.fragment,s),r=!1},d(s){t[33](null),J(e,s)}}}function Gr(t){let e,n,r,i,o,s=t[3]&&jr(t),a=t[17]&&Yr(t),l=t[4]&&Hr(t);return{c(){e=ne("div"),s&&s.c(),n=Ce(),r=ne("div"),a&&a.c(),i=Ce(),l&&l.c(),this.h()},l(h){e=re(h,"DIV",{class:!0});var u=L(e);s&&s.l(u),n=Te(u),r=re(u,"DIV",{class:!0});var c=L(r);a&&a.l(c),i=Te(c),l&&l.l(c),c.forEach(E),u.forEach(E),this.h()},h(){p(r,"class","myc-navigation-controls svelte-15hd81r"),p(e,"class","myc-navigation svelte-15hd81r")},m(h,u){I(h,e,u),s&&s.m(e,null),B(e,n),B(e,r),a&&a.m(r,null),B(r,i),l&&l.m(r,null),o=!0},p(h,u){h[3]?s?(s.p(h,u),u[0]&8&&P(s,1)):(s=jr(h),s.c(),P(s,1),s.m(e,n)):s&&(ce(),D(s,1,1,()=>{s=null}),fe()),h[17]?a?a.p(h,u):(a=Yr(h),a.c(),a.m(r,i)):a&&(a.d(1),a=null),h[4]?l?l.p(h,u):(l=Hr(h),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},i(h){o||(P(s),o=!0)},o(h){D(s),o=!1},d(h){h&&E(e),s&&s.d(),a&&a.d(),l&&l.d()}}}function jr(t){let e,n;return e=new kp({props:{network:t[0],currentNode:t[16],drawable:t[15]}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.network=r[0]),i[0]&65536&&(o.currentNode=r[16]),i[0]&32768&&(o.drawable=r[15]),e.$set(o)},i(r){n||(P(e.$$.fragment,r),n=!0)},o(r){D(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function Yr(t){let e,n,r="Collapse All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=L(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-7o3ux6"&&(n.textContent=r),a.forEach(E),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){I(s,e,a),B(e,n),i||(o=H(n,"click",t[35]),i=!0)},p:Y,d(s){s&&E(e),i=!1,o()}}}function Hr(t){let e,n,r="Show All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=L(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-z7thqi"&&(n.textContent=r),a.forEach(E),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){I(s,e,a),B(e,n),i||(o=H(n,"click",t[36]),i=!0)},p:Y,d(s){s&&E(e),i=!1,o()}}}function qr(t){let e,n,r="Mycelium";return{c(){e=Ae("Powered by "),n=ne("a"),n.textContent=r,this.h()},l(i){e=Re(i,"Powered by "),n=re(i,"A",{href:!0,target:!0,class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-j6ykrk"&&(n.textContent=r),this.h()},h(){p(n,"href","https://apple.github.io/ml-mycelium"),p(n,"target","_blank"),p(n,"class","svelte-15hd81r")},m(i,o){I(i,e,o),I(i,n,o)},d(i){i&&(E(e),E(n))}}}function Xr(t){let e,n,r;return n=new wp({props:{width:t[1]*Tt,height:t[2]*Tt,worldExtent:t[13].world(),drawable:t[15]}}),n.$on("viewportCenterDidChange",t[24]),{c(){e=ne("div"),Z(n.$$.fragment),this.h()},l(i){e=re(i,"DIV",{class:!0});var o=L(e);oe(n.$$.fragment,o),o.forEach(E),this.h()},h(){p(e,"class","myc-minimap svelte-15hd81r")},m(i,o){I(i,e,o),Q(n,e,null),r=!0},p(i,o){const s={};o[0]&2&&(s.width=i[1]*Tt),o[0]&4&&(s.height=i[2]*Tt),o[0]&8192&&(s.worldExtent=i[13].world()),o[0]&32768&&(s.drawable=i[15]),n.$set(s)},i(i){r||(P(n.$$.fragment,i),r=!0)},o(i){D(n.$$.fragment,i),r=!1},d(i){i&&E(e),J(n)}}}function Mp(t){let e,n=t[0],r,i,o,s,a,l,h,u=zr(t),c=(t[3]||t[4])&&Gr(t),f=t[5]&&qr(),d=t[6]&&Xr(t);return{c(){e=ne("div"),u.c(),r=Ce(),c&&c.c(),i=Ce(),o=ne("div"),f&&f.c(),s=Ce(),d&&d.c(),this.h()},l(g){e=re(g,"DIV",{class:!0});var y=L(e);u.l(y),r=Te(y),c&&c.l(y),i=Te(y),o=re(y,"DIV",{class:!0});var T=L(o);f&&f.l(T),T.forEach(E),s=Te(y),d&&d.l(y),y.forEach(E),this.h()},h(){p(o,"class","myc-overlay svelte-15hd81r"),p(e,"class","myc-container svelte-15hd81r")},m(g,y){I(g,e,y),u.m(e,null),B(e,r),c&&c.m(e,null),B(e,i),B(e,o),f&&f.m(o,null),B(e,s),d&&d.m(e,null),a=!0,l||(h=H(window,"keydown",t[23]),l=!0)},p(g,y){y[0]&1&&se(n,n=g[0])?(ce(),D(u,1,1,Y),fe(),u=zr(g),u.c(),P(u,1),u.m(e,r)):u.p(g,y),g[3]||g[4]?c?(c.p(g,y),y[0]&24&&P(c,1)):(c=Gr(g),c.c(),P(c,1),c.m(e,i)):c&&(ce(),D(c,1,1,()=>{c=null}),fe()),g[5]?f||(f=qr(),f.c(),f.m(o,null)):f&&(f.d(1),f=null),g[6]?d?(d.p(g,y),y[0]&64&&P(d,1)):(d=Xr(g),d.c(),P(d,1),d.m(e,null)):d&&(ce(),D(d,1,1,()=>{d=null}),fe())},i(g){a||(P(u),P(c),P(d),a=!0)},o(g){D(u),D(c),D(d),a=!1},d(g){g&&E(e),u.d(g),c&&c.d(),f&&f.d(),d&&d.d(),l=!1,h()}}}const Tt=.2;function Np(t,e,n){let r,i,o,s,a=Y,l=()=>(a(),a=Wn(A,x=>n(37,s=x)),A),h,u=Y,c=()=>(u(),u=Wn(W,x=>n(38,h=x)),W);t.$$.on_destroy.push(()=>a()),t.$$.on_destroy.push(()=>u());let{network:f}=e,{width:d}=e,{height:g}=e,{showBreadcrumbs:y}=e,{showResetView:T}=e,{watermark:S}=e,{minimap:b}=e,{autoResize:w}=e,{multiSelection:m}=e,{decorations:_=new Map}=e,{collapsed:k=new Set(f.modules())}=e,{layoutProvider:C}=e;const A=ln(new Map);l();const W=ln(new Map);c(),Io(In,{selections:A,tooltips:W});const X=new Map,K=nt();function $(x,z){N.resize(x,z),n(13,N)}let N=new Fn(d,g);ni(async()=>{await we()});let v=[],O;function j(x){const{yMin:z,yMax:U}=x,ie=20,$e=y?25/(N.screenHeight()||1)*(U-z):0;return x.padded({l:ie,r:ie,t:ie+$e,b:ie})}async function He(x,z){x=Array.isArray(x)?x:[x];let U=q.infinity();for(const ie of x){const $e=i.nodes.get(ie)?.boundingBox();$e&&(U=U.union($e))}U.isEmpty()||await O.setFocus(j(U),z)}async function we(x){await O.setFocus(j(i.boundingBox),x)}async function qe(x,z){!m&&x.length>1&&(console.warn("Received multiple selections but `multiSelection` config was set to `false`."),x=[x[0]]);const U={expand:!0,collapseOthers:{threshold:1e3},...z},{expand:ie,collapse:$e}=Bd(f,x,k,U);let Kt=!1;U.expand&&(ie.size>1&&U.expand==="single"||ie.size>0&&(ie.forEach(Ve=>k.delete(Ve)),Kt=!0)),$e.size>0&&U.collapseOthers!==!1&&(U.collapseOthers===!0||$d(f,k)>U.collapseOthers.threshold)&&($e.forEach(Ve=>k.add(Ve)),Kt=!0),Kt?(n(26,k),await xt(),Zt(A,s=new Map(x.map(Ve=>[Ve,new Set])),s),await we(!0)):Zt(A,s=new Map(x.map(Ve=>[Ve,new Set])),s)}async function xe(x){const z=s;return Zt(A,s=x,s),await xt(),z}async function M(){return await xe(new Map)}async function R(){n(26,k=new Set(f.modules())),await we(!0)}async function pe(x){Ee(x),k.delete(x.detail.nodeId),n(26,k),await xt(),await we(!0)}async function te(x){Ee(x),k.add(x.detail.nodeId),n(26,k),await xt(),await we(!0)}function Oe(x){v[v.length-1]!==x.detail.nodeId&&(v.push(x.detail.nodeId),n(32,v));const z=x.detail.nodeId,U=i.nodes.get(z)?.options.tooltip;if(U){const ie=h.get(z);ie===void 0?X.set(z,Yd(W,z,U().build())):ie.state!=="active"&&ie.state!=="pinned"&&bo(W,z)}}function Ee(x){v.pop(),n(32,v);const z=x.detail.nodeId;clearTimeout(X.get(z)),vo(W,z)}async function Be(x){i.nodes.get(x.detail.nodeId)?.options.selectable&&(m&&x.detail.original.metaKey?Pe(await xe(new Map([...s.entries(),[x.detail.nodeId,new Set]]))):Pe(await xe(new Map([[x.detail.nodeId,new Set]]))))}function Pe(x){const z=([U,ie])=>({primaryNodeId:U,secondaryIds:[...ie.values()]});K("selectionDidChange",{selections:[...s.entries()].map(z),previous:[...x.entries()].map(z)})}async function Eo(x){x.key==="Escape"&&Pe(await M())}function ko(x){const{x:z,y:U}=x.detail.center;N.moveTo(z,U),n(13,N)}async function Mo(x){Pe(await xe(new Map(x.detail.nodes.map(z=>[z,new Set]))))}function No(x){Xe[x?"unshift":"push"](()=>{O=x,n(14,O)})}function Co(x){N=x,n(13,N)}const To=()=>R(),So=async()=>{await we(!0)};return t.$$set=x=>{"network"in x&&n(0,f=x.network),"width"in x&&n(1,d=x.width),"height"in x&&n(2,g=x.height),"showBreadcrumbs"in x&&n(3,y=x.showBreadcrumbs),"showResetView"in x&&n(4,T=x.showResetView),"watermark"in x&&n(5,S=x.watermark),"minimap"in x&&n(6,b=x.minimap),"autoResize"in x&&n(27,w=x.autoResize),"multiSelection"in x&&n(7,m=x.multiSelection),"decorations"in x&&n(8,_=x.decorations),"collapsed"in x&&n(26,k=x.collapsed),"layoutProvider"in x&&n(28,C=x.layoutProvider)},t.$$.update=()=>{t.$$.dirty[0]&67108865&&n(17,r=k.size{o.$set({width:n.clientWidth,height:n.clientHeight})}).observe(n),new xo(o,i)}onSelectionDidChange(e){this.app.$on("selectionDidChange",n=>{e(n.detail)})}async setSelection(e,n){await this.app.setSelections([e],n)}async setSelections(e,n){await this.app.setSelections(e,n)}async collapseAll(){await this.app.collapseAll()}async clearSelections(){await this.app.clearSelections()}async setFocus(e,n){await this.app.setFocus(e,n)}async resetFocus(e){await this.app.resetFocus(e)}setDecoration(e,n){this.decorations.set(e,n),this.app.$set({decorations:this.decorations})}removeDecoration(e){this.decorations.delete(e),this.app.$set({decorations:this.decorations})}clearDecorations(){this.decorations.clear(),this.app.$set({decorations:this.decorations})}setNetwork(e){this.app.$set({network:e,collapsed:new Set(e.modules())})}getOptions(){return this.options}}export{du as H,_o as N,Tu as T,pu as V,$p as a,xo as b,ye as c,Vp as d,Ip as e,Wu as g}; diff --git a/_app/immutable/chunks/viewer.VKJlf1_4.js b/_app/immutable/chunks/viewer.VKJlf1_4.js deleted file mode 100644 index edba8fc..0000000 --- a/_app/immutable/chunks/viewer.VKJlf1_4.js +++ /dev/null @@ -1,3 +0,0 @@ -import{S as ae,i as le,t as I,g as ce,e as fe,b as B,c as Z,a as oe,m as Q,d as J,f as Po}from"./index.C7bWdOrd.js";import{n as Y,s as se,k as Zr,D as $,E as V,b as P,f as v,h as p,i as A,u as Qr,l as Jr,m as ei,G as ti,N as Qe,B as G,C as Ae,a as Te,t as Le,d as Ce,v as Re,j as D,w as wt,z as H,A as Gt,p as nt,a2 as ni,x as ri,a3 as ue,a4 as Ao,L as Lo,r as qe,e as ne,c as re,q as ii,g as rt,a5 as Ro,a6 as Bo,a7 as Wn,O as xt,a8 as Zt}from"./scheduler.BZf3Antt.js";import{e as ge,g as Je,u as St,o as Ot}from"./spread.CUGnlXHs.js";import{w as ln}from"./index.DrtbdpeK.js";const oi=typeof window<"u";let Do=oi?()=>window.performance.now():()=>Date.now(),si=oi?t=>requestAnimationFrame(t):Y;const Ue=new Set;function ai(t){Ue.forEach(e=>{e.c(t)||(Ue.delete(e),e.f())}),Ue.size!==0&&si(ai)}function $o(t){let e;return Ue.size===0&&si(ai),{promise:new Promise(n=>{Ue.add(e={c:t,f:n})}),abort(){Ue.delete(e)}}}const be={black:"#000000",white:"#ffffff",foreground:{blue:"#0066CC",red:"#E30000",orange:"#BF4800",yellow:"#D08B00",green:"#008009",purple:"#6D56D6",gray:"#1D1D1F",graySecondary:"#6E6E73",graySecondaryAlt:"#515154",grayTertiary:"#86868B"},background:{gray:"rgb(250, 250, 250)",darkGray:"rgb(51,51,51)"}},jt={family:"SF Mono, ui-monospace, monospace",weight:{regular:200,semibold:500,bold:600}};let un=class st{x;y;k;constructor(e,n,r){this.x=e,this.y=n,this.k=r}static identity(){return new st(0,0,1)}translate(e,n){return e===0&&n===0?this:new st(this.x+this.k*e,this.y+this.k*n,this.k)}scale(e){return e===1?this:new st(this.x,this.y,this.k*e)}apply(e,n){return{x:e*this.k+this.x,y:n*this.k+this.y}}inverse(){return st.identity().scale(1/this.k).translate(-this.x,-this.y)}toString(){return`translate(${this.x},${this.y}) scale(${this.k})`}};var Vo={value:()=>{}};function Mn(){for(var t=0,e=arguments.length,n={},r;t=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}It.prototype=Mn.prototype={constructor:It,on:function(t,e){var n=this._,r=Fo(t+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Gn.hasOwnProperty(e)?{space:Gn[e],local:t}:t}function zo(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===hn&&e.documentElement.namespaceURI===hn?e.createElement(t):e.createElementNS(n,t)}}function Go(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function li(t){var e=Yt(t);return(e.local?Go:zo)(e)}function jo(){}function Nn(t){return t==null?jo:function(){return this.querySelector(t)}}function Yo(t){typeof t!="function"&&(t=Nn(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i=_&&(_=y+1);!(w=C[_])&&++_=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function ms(t){t||(t=_s);function e(c,f){return c&&f?t(c.__data__,f.__data__):!c-!f}for(var n=this._groups,r=n.length,i=new Array(r),o=0;oe?1:t>=e?0:NaN}function ws(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function bs(){return Array.from(this)}function ys(){for(var t=this._groups,e=0,n=t.length;e1?this.each((e==null?Is:typeof e=="function"?As:Ps)(t,e,n??"")):et(this.node(),t)}function et(t,e){return t.style.getPropertyValue(e)||di(t).getComputedStyle(t,null).getPropertyValue(e)}function Rs(t){return function(){delete this[t]}}function Bs(t,e){return function(){this[t]=e}}function Ds(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function $s(t,e){return arguments.length>1?this.each((e==null?Rs:typeof e=="function"?Ds:Bs)(t,e)):this.node()[t]}function pi(t){return t.trim().split(/^|\s+/)}function Tn(t){return t.classList||new gi(t)}function gi(t){this._node=t,this._names=pi(t.getAttribute("class")||"")}gi.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function mi(t,e){for(var n=Tn(t),r=-1,i=e.length;++r=0&&(n=e.slice(r+1),e=e.slice(0,r)),{type:e,name:n}})}function fa(t){return function(){var e=this.__on;if(e){for(var n=0,r=-1,i=e.length,o;n()=>t;function cn(t,{sourceEvent:e,subject:n,target:r,identifier:i,active:o,x:s,y:a,dx:l,dy:u,dispatch:h}){Object.defineProperties(this,{type:{value:t,enumerable:!0,configurable:!0},sourceEvent:{value:e,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:a,enumerable:!0,configurable:!0},dx:{value:l,enumerable:!0,configurable:!0},dy:{value:u,enumerable:!0,configurable:!0},_:{value:h}})}cn.prototype.on=function(){var t=this._.on.apply(this._,arguments);return t===this._?this:t};function ka(t){return!t.ctrlKey&&!t.button}function Ma(){return this.parentNode}function Na(t,e){return e??{x:t.x,y:t.y}}function Ta(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ca(){var t=ka,e=Ma,n=Na,r=Ta,i={},o=Mn("start","drag","end"),s=0,a,l,u,h,c=0;function f(m){m.on("mousedown.drag",d).filter(r).on("touchstart.drag",C).on("touchmove.drag",S,va).on("touchend.drag touchcancel.drag",y).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function d(m,w){if(!(h||!t.call(this,m,w))){var k=_(this,e.call(this,m,w),m,w,"mouse");k&&(ct(m.view).on("mousemove.drag",g,ft).on("mouseup.drag",b,ft),xa(m.view),Qt(m),u=!1,a=m.clientX,l=m.clientY,k("start",m))}}function g(m){if(Ke(m),!u){var w=m.clientX-a,k=m.clientY-l;u=w*w+k*k>c}i.mouse("drag",m)}function b(m){ct(m.view).on("mousemove.drag mouseup.drag",null),Ea(m.view,u),Ke(m),i.mouse("end",m)}function C(m,w){if(t.call(this,m,w)){var k=m.changedTouches,T=e.call(this,m,w),L=k.length,W,q;for(W=0;W>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?kt(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?kt(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Oa.exec(t))?new he(e[1],e[2],e[3],1):(e=Ia.exec(t))?new he(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Pa.exec(t))?kt(e[1],e[2],e[3],e[4]):(e=Aa.exec(t))?kt(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=La.exec(t))?Zn(e[1],e[2]/100,e[3]/100,1):(e=Ra.exec(t))?Zn(e[1],e[2]/100,e[3]/100,e[4]):Yn.hasOwnProperty(t)?qn(Yn[t]):t==="transparent"?new he(NaN,NaN,NaN,0):null}function qn(t){return new he(t>>16&255,t>>8&255,t&255,1)}function kt(t,e,n,r){return r<=0&&(t=e=n=NaN),new he(t,e,n,r)}function $a(t){return t instanceof yt||(t=gt(t)),t?(t=t.rgb(),new he(t.r,t.g,t.b,t.opacity)):new he}function fn(t,e,n,r){return arguments.length===1?$a(t):new he(t,e,n,r??1)}function he(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}Cn(he,fn,yi(yt,{brighter(t){return t=t==null?Dt:Math.pow(Dt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new he(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new he(Ge(this.r),Ge(this.g),Ge(this.b),$t(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Un,formatHex:Un,formatHex8:Va,formatRgb:Kn,toString:Kn}));function Un(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function Va(){return`#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze((isNaN(this.opacity)?1:this.opacity)*255)}`}function Kn(){const t=$t(this.opacity);return`${t===1?"rgb(":"rgba("}${Ge(this.r)}, ${Ge(this.g)}, ${Ge(this.b)}${t===1?")":`, ${t})`}`}function $t(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ge(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function ze(t){return t=Ge(t),(t<16?"0":"")+t.toString(16)}function Zn(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new we(t,e,n,r)}function vi(t){if(t instanceof we)return new we(t.h,t.s,t.l,t.opacity);if(t instanceof yt||(t=gt(t)),!t)return new we;if(t instanceof we)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(n-r)/a+(n0&&l<1?0:s,new we(s,a,l,t.opacity)}function Fa(t,e,n,r){return arguments.length===1?vi(t):new we(t,e,n,r??1)}function we(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}Cn(we,Fa,yi(yt,{brighter(t){return t=t==null?Dt:Math.pow(Dt,t),new we(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?dt:Math.pow(dt,t),new we(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new he(Jt(t>=240?t-240:t+120,i,r),Jt(t,i,r),Jt(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new we(Qn(this.h),Mt(this.s),Mt(this.l),$t(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=$t(this.opacity);return`${t===1?"hsl(":"hsla("}${Qn(this.h)}, ${Mt(this.s)*100}%, ${Mt(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Qn(t){return t=(t||0)%360,t<0?t+360:t}function Mt(t){return Math.max(0,Math.min(1,t||0))}function Jt(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const xi=t=>()=>t;function Wa(t,e){return function(n){return t+n*e}}function za(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function Ga(t){return(t=+t)==1?Ei:function(e,n){return n-e?za(e,n,t):xi(isNaN(e)?n:e)}}function Ei(t,e){var n=e-t;return n?Wa(t,n):xi(isNaN(t)?e:t)}const Jn=function t(e){var n=Ga(e);function r(i,o){var s=n((i=fn(i)).r,(o=fn(o)).r),a=n(i.g,o.g),l=n(i.b,o.b),u=Ei(i.opacity,o.opacity);return function(h){return i.r=s(h),i.g=a(h),i.b=l(h),i.opacity=u(h),i+""}}return r.gamma=t,r}(1);function Pe(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}var dn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,en=new RegExp(dn.source,"g");function ja(t){return function(){return t}}function Ya(t){return function(e){return t(e)+""}}function Ha(t,e){var n=dn.lastIndex=en.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(r=dn.exec(t))&&(i=en.exec(e));)(o=i.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Pe(r,i)})),n=en.lastIndex;return n180?h+=360:h-u>180&&(u+=360),f.push({i:c.push(i(c)+"rotate(",null,r)-2,x:Pe(u,h)})):h&&c.push(i(c)+"rotate("+h+r)}function a(u,h,c,f){u!==h?f.push({i:c.push(i(c)+"skewX(",null,r)-2,x:Pe(u,h)}):h&&c.push(i(c)+"skewX("+h+r)}function l(u,h,c,f,d,g){if(u!==c||h!==f){var b=d.push(i(d)+"scale(",null,",",null,")");g.push({i:b-4,x:Pe(u,c)},{i:b-2,x:Pe(h,f)})}else(c!==1||f!==1)&&d.push(i(d)+"scale("+c+","+f+")")}return function(u,h){var c=[],f=[];return u=t(u),h=t(h),o(u.translateX,u.translateY,h.translateX,h.translateY,c,f),s(u.rotate,h.rotate,c,f),a(u.skewX,h.skewX,c,f),l(u.scaleX,u.scaleY,h.scaleX,h.scaleY,c,f),u=h=null,function(d){for(var g=-1,b=f.length,C;++g=0&&t._call.call(void 0,e),t=t._next;--tt}function tr(){je=(Ft=mt.now())+Ht,tt=at=0;try{Qa()}finally{tt=0,el(),je=0}}function Ja(){var t=mt.now(),e=t-Ft;e>Ni&&(Ht-=e,Ft=t)}function el(){for(var t,e=Vt,n,r=1/0;e;)e._call?(r>e._time&&(r=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:Vt=n);lt=t,gn(r)}function gn(t){if(!tt){at&&(at=clearTimeout(at));var e=t-je;e>24?(t<1/0&&(at=setTimeout(tr,t-mt.now()-Ht)),ot&&(ot=clearInterval(ot))):(ot||(Ft=mt.now(),ot=setInterval(Ja,Ni)),tt=1,Ti(tr))}}function nr(t,e,n){var r=new Wt;return e=e==null?0:+e,r.restart(i=>{r.stop(),t(i+e)},e,n),r}var tl=Mn("start","end","cancel","interrupt"),nl=[],Si=0,rr=1,mn=2,Pt=3,ir=4,_n=5,At=6;function Xt(t,e,n,r,i,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;rl(t,n,{name:e,index:r,group:i,on:tl,tween:nl,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Si})}function On(t,e){var n=ye(t,e);if(n.state>Si)throw new Error("too late; already scheduled");return n}function Me(t,e){var n=ye(t,e);if(n.state>Pt)throw new Error("too late; already running");return n}function ye(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function rl(t,e,n){var r=t.__transition,i;r[e]=n,n.timer=Ci(o,0,n.time);function o(u){n.state=rr,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var h,c,f,d;if(n.state!==rr)return l();for(h in r)if(d=r[h],d.name===n.name){if(d.state===Pt)return nr(s);d.state===ir?(d.state=At,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete r[h]):+hmn&&r.state<_n,r.state=At,r.timer.stop(),r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group),delete n[s]}o&&delete t.__transition}}function ol(t){return this.each(function(){il(this,t)})}function sl(t,e){var n,r;return function(){var i=Me(this,t),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ll(t,e,n){var r,i,o=Al(e)?On:Me;return function(){var s=o(this,t),a=s.on;a!==r&&(i=(r=a).copy()).on(e,n),s.on=i}}function Rl(t,e){var n=this._id;return arguments.length<2?ye(this.node(),n).on.on(t):this.each(Ll(n,t,e))}function Bl(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Dl(){return this.on("end.remove",Bl(this._id))}function $l(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Nn(t));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Ai;const n=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;iWe)if(!(Math.abs(c*l-u*h)>We)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=r-s,g=i-a,b=l*l+u*u,C=d*d+g*g,S=Math.sqrt(b),y=Math.sqrt(f),_=o*Math.tan((wn-Math.acos((b+f-C)/(2*S*y)))/2),m=_/y,w=_/S;Math.abs(m-1)>We&&this._append`L${e+m*h},${n+m*c}`,this._append`A${o},${o},0,0,${+(c*d>h*g)},${this._x1=e+w*l},${this._y1=n+w*u}`}}arc(e,n,r,i,o,s){if(e=+e,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),u=e+a,h=n+l,c=1^s,f=s?i-o:o-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>We||Math.abs(this._y1-h)>We)&&this._append`L${u},${h}`,r&&(f<0&&(f=f%bn+bn),f>uu?this._append`A${r},${r},0,1,${c},${e-a},${n-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=h}`:f>We&&this._append`A${r},${r},0,${+(f>=wn)},${c},${this._x1=e+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(e,n,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ri(){return new Li}Ri.prototype=Li.prototype;function ut(t,e,n){this.k=t,this.x=e,this.y=n}ut.prototype={constructor:ut,scale:function(t){return t===1?this:new ut(this.k*t,this.x,this.y)},translate:function(t,e){return t===0&e===0?this:new ut(this.k,this.x+this.k*t,this.y+this.k*e)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};ut.prototype;class yn{context=Ri();x0=NaN;x1=NaN;y0=NaN;y1=NaN;state=0;constructor(e){for(let n=0;n(n.xMin=Math.min(n.xMin,r.x),n.yMin=Math.min(n.yMin,r.y),n.xMax=Math.max(n.xMax,r.x),n.yMax=Math.max(n.yMax,r.y),n),X.infinity())}static fromUnion(...e){return e.reduce((n,r)=>n.union(r),X.infinity())}get width(){return this.xMax-this.xMin}get height(){return this.yMax-this.yMin}get center(){return{x:this.xMin+this.width/2,y:this.yMin+this.height/2}}padded(e){const{l:n,r,b:i,t:o}=typeof e=="object"?e:{l:e,r:e,t:e,b:e};return new X(this.xMin-n,this.yMin-o,this.xMax+r,this.yMax+i)}union(e){return new X(Math.min(this.xMin,e.xMin),Math.min(this.yMin,e.yMin),Math.max(this.xMax,e.xMax),Math.max(this.yMax,e.yMax))}transformed(e){const n=e.apply(this.xMin,this.yMin),r=e.apply(this.xMax,this.yMax);return new X(n.x,n.y,r.x,r.y)}contains(e,n){return this.xMin<=e&&this.yMin<=n&&e<=this.xMax&&n<=this.yMax}encloses(e){return this.contains(e.xMin,e.yMin)&&this.contains(e.xMax,e.yMax)}intersects(e){return this.xMin<=e.xMin&&e.xMin<=this.xMax||this.xMin<=e.xMax&&e.xMax<=this.xMax||this.yMin<=e.yMin&&e.yMin<=this.yMax||this.yMin<=e.yMax&&e.yMax<=this.yMax}}function*cu(t,e){let n=!0;for(const r of t)n||(yield e),n=!1,yield r}function Lt(t,e,n){return Math.min(Math.max(n,t),e)}class Be{options;constructor(e){this.options=e}with(e){return this.options={...this.options,...e},this}}var or={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function sr(t,e,n){const r=t.slice();return r[3]=e[n],r}function fu(t){let e,n,r,i,o;return{c(){e=$("rect"),this.h()},l(s){e=V(s,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0,opacity:!0}),P(e).forEach(v),this.h()},h(){p(e,"x",n=t[3].boundingBox().transformed(t[3].transform).xMin),p(e,"y",r=t[3].boundingBox().transformed(t[3].transform).yMin),p(e,"width",i=t[3].boundingBox().transformed(t[3].transform).width),p(e,"height",o=t[3].boundingBox().transformed(t[3].transform).height),p(e,"fill","magenta"),p(e,"opacity","0.1")},m(s,a){A(s,e,a)},p(s,a){a&1&&n!==(n=s[3].boundingBox().transformed(s[3].transform).xMin)&&p(e,"x",n),a&1&&r!==(r=s[3].boundingBox().transformed(s[3].transform).yMin)&&p(e,"y",r),a&1&&i!==(i=s[3].boundingBox().transformed(s[3].transform).width)&&p(e,"width",i),a&1&&o!==(o=s[3].boundingBox().transformed(s[3].transform).height)&&p(e,"height",o)},d(s){s&&v(e)}}}function ar(t){let e,n,r,i,o=or.VITE_WIREFRAME_CONTAINER&&fu(t);const s=[{self:t[3]}];var a=t[3].drawable();function l(u,h){let c={};for(let f=0;f{J(c,1)}),fe()}a?(n=Qe(a,l(u,h)),Z(n.$$.fragment),I(n.$$.fragment,1),Q(n,r.parentNode,r)):n=null}else if(a){const c=h&1?Je(s,[{self:u[3]}]):{};n.$set(c)}},i(u){i||(n&&I(n.$$.fragment,u),i=!0)},o(u){n&&B(n.$$.fragment,u),i=!1},d(u){u&&(v(e),v(r)),o&&o.d(u),n&&J(n,u)}}}function du(t){let e,n,r;const i=t[2].default,o=Zr(i,t,t[1],null);let s=ge(t[0].children),a=[];for(let u=0;uB(a[u],1,1,()=>{a[u]=null});return{c(){e=$("g"),o&&o.c();for(let u=0;u{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(1,i=s.$$scope)},[o,i,r]}let Pn=class extends ae{constructor(e){super(),le(this,e,pu,du,se,{self:0})}};class gu{onClick}class it extends gu{transform;constructor(){super(),this.transform=un.identity()}moveTo(e,n){this.transform.x=e,this.transform.y=n}}class qt extends it{children;constructor(...e){super(),this.children=e}boundingBox(){return X.fromUnion(...this.children.map(e=>e.boundingBox().transformed(e.transform)))}drawable(){return Pn}}class mu extends Be{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}build(e={}){const n=this.children.map(o=>o.build(e));let r=0;if(this.options.spread&&e.targetWidth!==void 0){const o=n.length-1,s=n.reduce((l,u)=>l+u.boundingBox().width,this.options.spacing*o),a=e.targetWidth-s;r=Math.max(a/(this.children.length-1),0)}const i={x:0,y:0};for(const o of n)o.moveTo(i.x,i.y),i.x+=o.boundingBox().width+this.options.spacing+r;return new Bi(this.options,...n)}}class _u extends Be{children;constructor(...e){super({spacing:0,spread:!1,minWidth:Number.MIN_VALUE,maxWidth:Number.MAX_VALUE}),this.children=e}padded(e){return new vt(this,e)}build(e={}){const n=Math.max(this.options.minWidth,this.children.reduce((o,s)=>Math.max(o,s.build(e).boundingBox().width),-1/0)),r=this.children.map(o=>o.build({...e,targetWidth:n})),i={x:0,y:0};for(const o of r)o.moveTo(i.x,i.y),i.y+=o.boundingBox().height+this.options.spacing;return new Bi(this.options,...r)}}class Bi extends qt{constructor(e,...n){super(...n),this.options=e,this.options=e}boundingBox(){const e=super.boundingBox();return e.xMax=Lt(this.options.minWidth,this.options.maxWidth,e.xMax),e}}const Di={l:8,r:8,t:10,b:10};function wu(t,e,n,r){switch(n){case"topRight":return{x:t.xMax+r,y:t.yMin};case"bottomMiddle":return{x:t.center.x-e.width/2,y:t.yMax+r}}}let Dp=class extends Be{content;constructor(e){super({anchor:"topRight"}),this.content=e}build(e={}){return new bu(new yu(new vt(this.content,Di)).with({radius:6,borderColor:"none",backgroundColor:be.background.darkGray}).build({defaultOptions:{text:{foregroundColor:"white"}}}),this.options)}};class bu extends it{constructor(e,n){super(),this.content=e,this.options=n}boundingBox(){return this.content.boundingBox().padded(Di)}drawable(){throw Error("not implemented")}}class yu extends Be{constructor(e){super({backgroundColor:be.white,borderColor:be.foreground.grayTertiary,borderWidth:1,borderDash:void 0,radius:void 0}),this.inner=e}content(){return this.inner}build(e={}){const n=this.inner.build(e),r=n.boundingBox();return new vu(n,new Vi(r.width,r.height).with(this.options).build(e))}}class vu extends qt{constructor(e,n){super(n,e)}boundingBox(){return super.boundingBox()}}function xu(t){let e,n;return{c(){e=$("path"),this.h()},l(r){e=V(r,"path",{stroke:!0,"stroke-width":!0,fill:!0,"pointer-events":!0,"marker-end":!0,d:!0}),P(e).forEach(v),this.h()},h(){p(e,"stroke",be.foreground.grayTertiary),p(e,"stroke-width","1"),p(e,"fill","none"),p(e,"pointer-events","none"),p(e,"marker-end","url(#arrowhead)"),p(e,"d",n=new yn(t[0]).build())},m(r,i){A(r,e,i)},p(r,[i]){i&1&&n!==(n=new yn(r[0]).build())&&p(e,"d",n)},i:Y,o:Y,d(r){r&&v(e)}}}function Eu(t,e,n){let r,{self:i}=e;return t.$$set=o=>{"self"in o&&n(1,i=o.self)},t.$$.update=()=>{t.$$.dirty&2&&n(0,r=i.points.map(o=>i.transform.apply(o.x,o.y)))},[r,i]}class ku extends ae{constructor(e){super(),le(this,e,Eu,xu,se,{self:1})}}class Mu extends it{points;constructor(e){super(),this.points=e}path(){const e=this.points.map(n=>this.transform.apply(n.x,n.y));return new yn(e).build()}boundingBox(){return X.fromPoints(...this.points)}drawable(){return ku}}class Nu extends qt{}var lr={BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function Tu(t){let e,n,r,i,o;return{c(){e=$("rect"),this.h()},l(s){e=V(s,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0,opacity:!0}),P(e).forEach(v),this.h()},h(){p(e,"x",n=t[0].boundingBox().transformed(t[0].transform).xMin),p(e,"y",r=t[0].boundingBox().transformed(t[0].transform).yMin),p(e,"width",i=t[0].boundingBox().transformed(t[0].transform).width),p(e,"height",o=t[0].boundingBox().transformed(t[0].transform).height),p(e,"fill","magenta"),p(e,"opacity","0.3")},m(s,a){A(s,e,a)},p(s,a){a&1&&n!==(n=s[0].boundingBox().transformed(s[0].transform).xMin)&&p(e,"x",n),a&1&&r!==(r=s[0].boundingBox().transformed(s[0].transform).yMin)&&p(e,"y",r),a&1&&i!==(i=s[0].boundingBox().transformed(s[0].transform).width)&&p(e,"width",i),a&1&&o!==(o=s[0].boundingBox().transformed(s[0].transform).height)&&p(e,"height",o)},d(s){s&&v(e)}}}function Cu(t){let e,n,r=t[0].text+"",i,o,s,a=lr.VITE_WIREFRAME_TEXT&&Tu(t);return{c(){a&&a.c(),e=Te(),n=$("text"),i=Le(r),this.h()},l(l){a&&a.l(l),e=Ce(l),n=V(l,"text",{x:!0,y:!0,"dominant-baseline":!0,"font-family":!0,"font-size":!0,fill:!0,"font-weight":!0});var u=P(n);i=Re(u,r),u.forEach(v),this.h()},h(){p(n,"x",o=t[0].transform.x),p(n,"y",s=t[0].transform.y),p(n,"dominant-baseline","hanging"),p(n,"font-family",t[2]),p(n,"font-size",t[1]),p(n,"fill",t[3]),p(n,"font-weight",t[4])},m(l,u){a&&a.m(l,u),A(l,e,u),A(l,n,u),D(n,i)},p(l,[u]){lr.VITE_WIREFRAME_TEXT&&a.p(l,u),u&1&&r!==(r=l[0].text+"")&&wt(i,r),u&1&&o!==(o=l[0].transform.x)&&p(n,"x",o),u&1&&s!==(s=l[0].transform.y)&&p(n,"y",s)},i:Y,o:Y,d(l){l&&(v(e),v(n)),a&&a.d(l)}}}function Su(t,e,n){let{self:r}=e;const{fontSize:i,font:o,foregroundColor:s,fontWeight:a}=r.options;return t.$$set=l=>{"self"in l&&n(0,r=l.self)},[r,i,o,s,a]}let Ou=class extends ae{constructor(e){super(),le(this,e,Su,Cu,se,{self:0})}};class Iu{canvas;ctx;constructor(){this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d")}measureTextWidth(e,n){return this.ctx.font=`${n.fontSize}px ${n.font}`,this.ctx.textBaseline="top",this.ctx.measureText(e).width}}class Pu extends Be{text;constructor(e){super({font:jt.family,fontSize:16,fontWeight:200}),this.text=e}padded(e){return new vt(this,e)}build(e){return new Au(this.text,{...e?.defaultOptions?.text,...this.options})}}class Au extends it{text;options;width;height;constructor(e,n){super(),this.text=e,this.options=n,this.width=new Iu().measureTextWidth(this.text,this.options),this.height=n.fontSize}boundingBox(){return new X(0,0,this.width,this.height)}drawable(){return Ou}}const An=Symbol();function Lu(t){let e,n,r;return{c(){e=$("rect"),this.h()},l(i){e=V(i,"rect",{x:!0,y:!0,width:!0,height:!0,rx:!0,fill:!0,stroke:!0,"stroke-width":!0,"stroke-dasharray":!0}),P(e).forEach(v),this.h()},h(){p(e,"x",n=t[0].transform.x),p(e,"y",r=t[0].transform.y),p(e,"width",t[6]),p(e,"height",t[7]),p(e,"rx",t[1]),p(e,"fill",t[4]),p(e,"stroke",t[5]),p(e,"stroke-width",t[3]),p(e,"stroke-dasharray",t[2])},m(i,o){A(i,e,o)},p(i,[o]){o&1&&n!==(n=i[0].transform.x)&&p(e,"x",n),o&1&&r!==(r=i[0].transform.y)&&p(e,"y",r),o&2&&p(e,"rx",i[1]),o&16&&p(e,"fill",i[4]),o&32&&p(e,"stroke",i[5]),o&8&&p(e,"stroke-width",i[3]),o&4&&p(e,"stroke-dasharray",i[2])},i:Y,o:Y,d(i){i&&v(e)}}}function Ru(t,e,n){let r,i,o,s,a,{self:l}=e;const u=l.boundingBox().width,h=l.boundingBox().height;return t.$$set=c=>{"self"in c&&n(0,l=c.self)},t.$$.update=()=>{t.$$.dirty&1&&n(5,{borderColor:r,backgroundColor:i,borderWidth:o,borderDash:s,radius:a}=l.options,r,(n(4,i),n(0,l)),(n(3,o),n(0,l)),(n(2,s),n(0,l)),(n(1,a),n(0,l)))},[l,a,s,o,i,r,u,h]}let $i=class extends ae{constructor(e){super(),le(this,e,Ru,Lu,se,{self:0})}};function ur(t){let e,n,r,i,o=t[2].text&&hr(t);return{c(){e=$("g"),n=$("circle"),o&&o.c(),this.h()},l(s){e=V(s,"g",{class:!0,transform:!0});var a=P(e);n=V(a,"circle",{r:!0,fill:!0,stroke:!0,"stroke-width":!0}),P(n).forEach(v),o&&o.l(a),a.forEach(v),this.h()},h(){p(n,"r","10"),p(n,"fill",r=t[2].color),p(n,"stroke","white"),p(n,"stroke-width","2"),p(e,"class","badge"),p(e,"transform",i=`translate(${t[3].width+t[5].x},${-t[5].y})`)},m(s,a){A(s,e,a),D(e,n),o&&o.m(e,null)},p(s,a){a&4&&r!==(r=s[2].color)&&p(n,"fill",r),s[2].text?o?o.p(s,a):(o=hr(s),o.c(),o.m(e,null)):o&&(o.d(1),o=null),a&8&&i!==(i=`translate(${s[3].width+s[5].x},${-s[5].y})`)&&p(e,"transform",i)},d(s){s&&v(e),o&&o.d()}}}function hr(t){let e,n=t[2].text+"",r;return{c(){e=$("text"),r=Le(n),this.h()},l(i){e=V(i,"text",{y:!0,"font-family":!0,"font-size":!0,"text-anchor":!0,"dominant-baseline":!0,fill:!0});var o=P(e);r=Re(o,n),o.forEach(v),this.h()},h(){p(e,"y",1),p(e,"font-family",jt.family),p(e,"font-size","10"),p(e,"text-anchor","middle"),p(e,"dominant-baseline","middle"),p(e,"fill","white")},m(i,o){A(i,e,o),D(e,r)},p(i,o){o&4&&n!==(n=i[2].text+"")&&wt(r,n)},d(i){i&&v(e)}}}function Bu(t){let e,n,r,i,o,s,a,l;n=new $i({props:{self:t[1]}});const u=[{self:t[0].content}];var h=t[0].content.drawable();function c(d,g){let b={};for(let C=0;C - `),f&&f.c(),this.h()},l(d){e=V(d,"g",{transform:!0,cursor:!0});var g=P(e);oe(n.$$.fragment,g),r&&oe(r.$$.fragment,g),i=Re(g,` --> - `),f&&f.l(g),g.forEach(v),this.h()},h(){p(e,"transform",o=`translate(${t[3].xMin},${t[3].yMin})`),p(e,"cursor","pointer")},m(d,g){A(d,e,g),Q(n,e,null),r&&Q(r,e,null),D(e,i),f&&f.m(e,null),s=!0,a||(l=[H(e,"click",t[13]),H(e,"dblclick",t[14]),H(e,"mouseenter",t[6]),H(e,"mouseleave",t[7])],a=!0)},p(d,[g]){const b={};if(g&2&&(b.self=d[1]),n.$set(b),g&1&&h!==(h=d[0].content.drawable())){if(r){ce();const C=r;B(C.$$.fragment,1,0,()=>{J(C,1)}),fe()}h?(r=Qe(h,c(d,g)),Z(r.$$.fragment),I(r.$$.fragment,1),Q(r,e,i)):r=null}else if(h){const C=g&1?Je(u,[{self:d[0].content}]):{};r.$set(C)}d[2]?f?f.p(d,g):(f=ur(d),f.c(),f.m(e,null)):f&&(f.d(1),f=null),(!s||g&8&&o!==(o=`translate(${d[3].xMin},${d[3].yMin})`))&&p(e,"transform",o)},i(d){s||(I(n.$$.fragment,d),r&&I(r.$$.fragment,d),s=!0)},o(d){B(n.$$.fragment,d),r&&B(r.$$.fragment,d),s=!1},d(d){d&&v(e),J(n),r&&J(r),f&&f.d(),a=!1,Gt(l)}}}function Du(t,e,n){let r,i,o,s,a,l;const u=nt();let{self:h}=e,{decoration:c}=e;const{selections:f}=ni(An);ri(t,f,_=>n(12,l=_));const d={x:1,y:1};let g=!1;function b(_){n(9,g=!0),u("nodeEnter",{..._,nodeId:r})}function C(_){n(9,g=!1),u("nodeLeave",{..._,nodeId:r})}function S(_){ue.call(this,t,_)}function y(_){ue.call(this,t,_)}return t.$$set=_=>{"self"in _&&n(0,h=_.self),"decoration"in _&&n(8,c=_.decoration)},t.$$.update=()=>{t.$$.dirty&1&&n(11,r=h.nodeId),t.$$.dirty&6144&&n(10,i=l.has(r)),t.$$.dirty&1&&n(3,o=h.boundingBox()),t.$$.dirty&1&&n(2,s=h.options.badge),t.$$.dirty&1793&&n(1,a=new Vi(h.content.boundingBox().width,h.content.boundingBox().height).with({borderColor:be.foreground.grayTertiary,borderWidth:1,radius:6,borderDash:h.options.borderDash,backgroundColor:h.options.backgroundColor}).with({...c}).with(g?{borderColor:be.foreground.blue}:{}).with(i?{borderColor:be.foreground.blue,borderWidth:3}:{}).build())},[h,a,s,o,f,d,b,C,c,g,i,r,l,S,y]}let Ln=class extends ae{constructor(e){super(),le(this,e,Du,Bu,se,{self:0,decoration:8})}};function $u(t){return new mu(new Pu(t)).with({minWidth:30})}class zp extends Be{constructor(e,...n){super({selectable:!1,borderDash:void 0,badge:void 0,tooltip:void 0,backgroundColor:be.white,borderColor:be.foreground.grayTertiary,humanReadable:void 0,padding:{l:8,r:8,t:10,b:10}}),this.nodeId=e,this.contents=n.length>0?n:[$u(this.options.humanReadable||this.nodeId)]}contents;humanReadable(){return this.options.humanReadable}build(e={}){const n=[...cu(this.contents.map(r=>new vt(r,this.options.padding)),new ju().with({color:this.options.borderColor,dash:this.options.borderDash}))];return new Vu(this.nodeId,new _u(...n).build(e),this.options)}}class Vu extends it{constructor(e,n,r){super(),this.nodeId=e,this.content=n,this.options=r}boundingBox(){return this.content.boundingBox().transformed(this.transform)}drawable(){return Ln}}class Vi extends Be{width;height;constructor(e,n){super({backgroundColor:be.black,borderColor:"none",borderWidth:0,borderDash:void 0,radius:void 0}),this.width=e,this.height=n}padded(e){return new vt(this,e)}build(e={}){return new Fi(this.width,this.height,this.options)}}class Fi extends it{constructor(e,n,r){super(),this.width=e,this.height=n,this.options=r}boundingBox(){return new X(0,0,this.width,this.height)}drawable(){return $i}}function Fu(t){return t.l!==void 0}class vt{constructor(e,n){this.inner=e,this.inner=e,this.p=Fu(n)?n:{l:n,r:n,t:n,b:n}}p;content(){return this.inner}padding(){return this.p}build(e={}){const{l:n,t:r,r:i}=this.p,o=e.targetWidth?this.inner.build({...e,targetWidth:e.targetWidth-n-i}):this.inner.build({...e});return o.moveTo(n,r),new Wu(o,this.p)}}class Wu extends qt{padding;constructor(e,n){super(e),this.padding=n}boundingBox(){return super.boundingBox().padded(this.padding)}drawable(){return Pn}}const zu=1,Gu=100;class ju extends Be{width;constructor(e){super({color:be.foreground.grayTertiary,dash:void 0}),this.width=e}build(e={}){const n=this.width||e.targetWidth||Gu;return new Fi(n,zu,{backgroundColor:this.options.color,borderColor:"none",borderWidth:0,radius:void 0,borderDash:this.options.dash})}}var Gp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Yu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hu="\0",Fe="\0",cr="";let Xu=class{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(e){e&&(this._isDirected=e.hasOwnProperty("directed")?e.directed:!0,this._isMultigraph=e.hasOwnProperty("multigraph")?e.multigraph:!1,this._isCompound=e.hasOwnProperty("compound")?e.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[Fe]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=e,typeof e!="function"&&(this._defaultNodeLabelFn=()=>e),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var e=this;return this.nodes().filter(n=>Object.keys(e._in[n]).length===0)}sinks(){var e=this;return this.nodes().filter(n=>Object.keys(e._out[n]).length===0)}setNodes(e,n){var r=arguments,i=this;return e.forEach(function(o){r.length>1?i.setNode(o,n):i.setNode(o)}),this}setNode(e,n){return this._nodes.hasOwnProperty(e)?(arguments.length>1&&(this._nodes[e]=n),this):(this._nodes[e]=arguments.length>1?n:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=Fe,this._children[e]={},this._children[Fe][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return this._nodes.hasOwnProperty(e)}removeNode(e){var n=this;if(this._nodes.hasOwnProperty(e)){var r=i=>n.removeEdge(n._edgeObjs[i]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(function(i){n.setParent(i)}),delete this._children[e]),Object.keys(this._in[e]).forEach(r),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(r),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,n){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n===void 0)n=Fe;else{n+="";for(var r=n;r!==void 0;r=this.parent(r))if(r===e)throw new Error("Setting "+n+" as parent of "+e+" would create a cycle");this.setNode(n)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=n,this._children[n][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var n=this._parent[e];if(n!==Fe)return n}}children(e=Fe){if(this._isCompound){var n=this._children[e];if(n)return Object.keys(n)}else{if(e===Fe)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var n=this._preds[e];if(n)return Object.keys(n)}successors(e){var n=this._sucs[e];if(n)return Object.keys(n)}neighbors(e){var n=this.predecessors(e);if(n){const i=new Set(n);for(var r of this.successors(e))i.add(r);return Array.from(i.values())}}isLeaf(e){var n;return this.isDirected()?n=this.successors(e):n=this.neighbors(e),n.length===0}filterNodes(e){var n=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});n.setGraph(this.graph());var r=this;Object.entries(this._nodes).forEach(function([s,a]){e(s)&&n.setNode(s,a)}),Object.values(this._edgeObjs).forEach(function(s){n.hasNode(s.v)&&n.hasNode(s.w)&&n.setEdge(s,r.edge(s))});var i={};function o(s){var a=r.parent(s);return a===void 0||n.hasNode(a)?(i[s]=a,a):a in i?i[a]:o(a)}return this._isCompound&&n.nodes().forEach(s=>n.setParent(s,o(s))),n}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=e,typeof e!="function"&&(this._defaultEdgeLabelFn=()=>e),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,n){var r=this,i=arguments;return e.reduce(function(o,s){return i.length>1?r.setEdge(o,s,n):r.setEdge(o,s),s}),this}setEdge(){var e,n,r,i,o=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,n=s.w,r=s.name,arguments.length===2&&(i=arguments[1],o=!0)):(e=s,n=arguments[1],r=arguments[3],arguments.length>2&&(i=arguments[2],o=!0)),e=""+e,n=""+n,r!==void 0&&(r=""+r);var a=ht(this._isDirected,e,n,r);if(this._edgeLabels.hasOwnProperty(a))return o&&(this._edgeLabels[a]=i),this;if(r!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(n),this._edgeLabels[a]=o?i:this._defaultEdgeLabelFn(e,n,r);var l=qu(this._isDirected,e,n,r);return e=l.v,n=l.w,Object.freeze(l),this._edgeObjs[a]=l,fr(this._preds[n],e),fr(this._sucs[e],n),this._in[n][a]=l,this._out[e][a]=l,this._edgeCount++,this}edge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels[i]}edgeAsObj(){const e=this.edge(...arguments);return typeof e!="object"?{label:e}:e}hasEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r);return this._edgeLabels.hasOwnProperty(i)}removeEdge(e,n,r){var i=arguments.length===1?tn(this._isDirected,arguments[0]):ht(this._isDirected,e,n,r),o=this._edgeObjs[i];return o&&(e=o.v,n=o.w,delete this._edgeLabels[i],delete this._edgeObjs[i],dr(this._preds[n],e),dr(this._sucs[e],n),delete this._in[n][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,n){var r=this._in[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.v===n):i}}outEdges(e,n){var r=this._out[e];if(r){var i=Object.values(r);return n?i.filter(o=>o.w===n):i}}nodeEdges(e,n){var r=this.inEdges(e,n);if(r)return r.concat(this.outEdges(e,n))}};function fr(t,e){t[e]?t[e]++:t[e]=1}function dr(t,e){--t[e]||delete t[e]}function ht(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}return i+cr+o+cr+(r===void 0?Hu:r)}function qu(t,e,n,r){var i=""+e,o=""+n;if(!t&&i>o){var s=i;i=o,o=s}var a={v:i,w:o};return r&&(a.name=r),a}function tn(t,e){return ht(t,e.v,e.w,e.name)}var Rn=Xu,Uu="2.2.2",Ku={Graph:Rn,version:Uu},Zu=Rn,Qu={write:Ju,read:nh};function Ju(t){var e={options:{directed:t.isDirected(),multigraph:t.isMultigraph(),compound:t.isCompound()},nodes:eh(t),edges:th(t)};return t.graph()!==void 0&&(e.value=structuredClone(t.graph())),e}function eh(t){return t.nodes().map(function(e){var n=t.node(e),r=t.parent(e),i={v:e};return n!==void 0&&(i.value=n),r!==void 0&&(i.parent=r),i})}function th(t){return t.edges().map(function(e){var n=t.edge(e),r={v:e.v,w:e.w};return e.name!==void 0&&(r.name=e.name),n!==void 0&&(r.value=n),r})}function nh(t){var e=new Zu(t.options).setGraph(t.value);return t.nodes.forEach(function(n){e.setNode(n.v,n.value),n.parent&&e.setParent(n.v,n.parent)}),t.edges.forEach(function(n){e.setEdge({v:n.v,w:n.w,name:n.name},n.value)}),e}var rh=ih;function ih(t){var e={},n=[],r;function i(o){e.hasOwnProperty(o)||(e[o]=!0,r.push(o),t.successors(o).forEach(i),t.predecessors(o).forEach(i))}return t.nodes().forEach(function(o){r=[],i(o),r.length&&n.push(r)}),n}let oh=class{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(e){return e.key})}has(e){return this._keyIndices.hasOwnProperty(e)}priority(e){var n=this._keyIndices[e];if(n!==void 0)return this._arr[n].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(e,n){var r=this._keyIndices;if(e=String(e),!r.hasOwnProperty(e)){var i=this._arr,o=i.length;return r[e]=o,i.push({key:e,priority:n}),this._decrease(o),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,n){var r=this._keyIndices[e];if(n>this._arr[r].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[r].priority+" New: "+n);this._arr[r].priority=n,this._decrease(r)}_heapify(e){var n=this._arr,r=2*e,i=r+1,o=e;r>1,!(n[i].priority1;function lh(t,e,n,r){return uh(t,String(e),n||ah,r||function(i){return t.outEdges(i)})}function uh(t,e,n,r){var i={},o=new sh,s,a,l=function(u){var h=u.v!==s?u.v:u.w,c=i[h],f=n(u),d=a.distance+f;if(f<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+u+" Weight: "+f);d0&&(s=o.removeMin(),a=i[s],a.distance!==Number.POSITIVE_INFINITY);)r(s).forEach(l);return i}var hh=zi,ch=fh;function fh(t,e,n){return t.nodes().reduce(function(r,i){return r[i]=hh(t,i,e,n),r},{})}var Gi=dh;function dh(t){var e=0,n=[],r={},i=[];function o(s){var a=r[s]={onStack:!0,lowlink:e,index:e++};if(n.push(s),t.successors(s).forEach(function(h){r.hasOwnProperty(h)?r[h].onStack&&(a.lowlink=Math.min(a.lowlink,r[h].index)):(o(h),a.lowlink=Math.min(a.lowlink,r[h].lowlink))}),a.lowlink===a.index){var l=[],u;do u=n.pop(),r[u].onStack=!1,l.push(u);while(s!==u);i.push(l)}}return t.nodes().forEach(function(s){r.hasOwnProperty(s)||o(s)}),i}var ph=Gi,gh=mh;function mh(t){return ph(t).filter(function(e){return e.length>1||e.length===1&&t.hasEdge(e[0],e[0])})}var _h=bh,wh=()=>1;function bh(t,e,n){return yh(t,e||wh,n||function(r){return t.outEdges(r)})}function yh(t,e,n){var r={},i=t.nodes();return i.forEach(function(o){r[o]={},r[o][o]={distance:0},i.forEach(function(s){o!==s&&(r[o][s]={distance:Number.POSITIVE_INFINITY})}),n(o).forEach(function(s){var a=s.v===o?s.w:s.v,l=e(s);r[o][a]={distance:l,predecessor:o}})}),i.forEach(function(o){var s=r[o];i.forEach(function(a){var l=r[a];i.forEach(function(u){var h=l[o],c=s[u],f=l[u],d=h.distance+c.distance;dt.successors(a):a=>t.neighbors(a),i=n==="post"?kh:Mh,o=[],s={};return e.forEach(a=>{if(!t.hasNode(a))throw new Error("Graph does not have node: "+a);i(a,r,s,o)}),o}function kh(t,e,n,r){for(var i=[[t,!1]];i.length>0;){var o=i.pop();o[1]?r.push(o[0]):n.hasOwnProperty(o[0])||(n[o[0]]=!0,i.push([o[0],!0]),Xi(e(o[0]),s=>i.push([s,!1])))}}function Mh(t,e,n,r){for(var i=[t];i.length>0;){var o=i.pop();n.hasOwnProperty(o)||(n[o]=!0,r.push(o),Xi(e(o),s=>i.push(s)))}}function Xi(t,e){for(var n=t.length;n--;)e(t[n],n,t);return t}var Nh=Hi,Th=Ch;function Ch(t,e){return Nh(t,e,"post")}var Sh=Hi,Oh=Ih;function Ih(t,e){return Sh(t,e,"pre")}var Ph=Rn,Ah=Wi,Lh=Rh;function Rh(t,e){var n=new Ph,r={},i=new Ah,o;function s(l){var u=l.v===o?l.w:l.v,h=i.priority(u);if(h!==void 0){var c=e(l);c0;){if(o=i.removeMin(),r.hasOwnProperty(o))n.setEdge(o,r[o]);else{if(a)throw new Error("Input graph is not connected: "+t);a=!0}t.nodeEdges(o).forEach(s)}return n}var Bh={components:rh,dijkstra:zi,dijkstraAll:ch,findCycles:gh,floydWarshall:_h,isAcyclic:vh,postorder:Th,preorder:Oh,prim:Lh,tarjan:Gi,topsort:Yi},gr=Ku,ve={Graph:gr.Graph,json:Qu,alg:Bh,version:gr.version};let Dh=class{constructor(){let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,n=e._prev;if(n!==e)return mr(n),n}enqueue(e){let n=this._sentinel;e._prev&&e._next&&mr(e),e._next=n._next,n._next._prev=e,n._next=e,e._prev=n}toString(){let e=[],n=this._sentinel,r=n._prev;for(;r!==n;)e.push(JSON.stringify(r,$h)),r=r._prev;return"["+e.join(", ")+"]"}};function mr(t){t._prev._next=t._next,t._next._prev=t._prev,delete t._next,delete t._prev}function $h(t,e){if(t!=="_next"&&t!=="_prev")return e}var Vh=Dh;let Fh=ve.Graph,Wh=Vh;var zh=jh;let Gh=()=>1;function jh(t,e){if(t.nodeCount()<=1)return[];let n=Hh(t,e||Gh);return Yh(n.graph,n.buckets,n.zeroIdx).flatMap(i=>t.outEdges(i.v,i.w))}function Yh(t,e,n){let r=[],i=e[e.length-1],o=e[0],s;for(;t.nodeCount();){for(;s=o.dequeue();)nn(t,e,n,s);for(;s=i.dequeue();)nn(t,e,n,s);if(t.nodeCount()){for(let a=e.length-2;a>0;--a)if(s=e[a].dequeue(),s){r=r.concat(nn(t,e,n,s,!0));break}}}return r}function nn(t,e,n,r,i){let o=i?[]:void 0;return t.inEdges(r.v).forEach(s=>{let a=t.edge(s),l=t.node(s.v);i&&o.push({v:s.v,w:s.w}),l.out-=a,xn(e,n,l)}),t.outEdges(r.v).forEach(s=>{let a=t.edge(s),l=s.w,u=t.node(l);u.in-=a,xn(e,n,u)}),t.removeNode(r.v),o}function Hh(t,e){let n=new Fh,r=0,i=0;t.nodes().forEach(a=>{n.setNode(a,{v:a,in:0,out:0})}),t.edges().forEach(a=>{let l=n.edge(a.v,a.w)||0,u=e(a),h=l+u;n.setEdge(a.v,a.w,h),i=Math.max(i,n.node(a.v).out+=u),r=Math.max(r,n.node(a.w).in+=u)});let o=Xh(i+r+3).map(()=>new Wh),s=r+1;return n.nodes().forEach(a=>{xn(o,s,n.node(a))}),{graph:n,buckets:o,zeroIdx:s}}function xn(t,e,n){n.out?n.in?t[n.out-n.in+e].enqueue(n):t[t.length-1].enqueue(n):t[0].enqueue(n)}function Xh(t){const e=[];for(let n=0;ne.setNode(n,t.node(n))),t.edges().forEach(n=>{let r=e.edge(n.v,n.w)||{weight:0,minlen:1},i=t.edge(n);e.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),e}function Uh(t){let e=new qi({multigraph:t.isMultigraph()}).setGraph(t.graph());return t.nodes().forEach(n=>{t.children(n).length||e.setNode(n,t.node(n))}),t.edges().forEach(n=>{e.setEdge(n,t.edge(n))}),e}function Kh(t){let e=t.nodes().map(n=>{let r={};return t.outEdges(n).forEach(i=>{r[i.w]=(r[i.w]||0)+t.edge(i).weight}),r});return Bn(t.nodes(),e)}function Zh(t){let e=t.nodes().map(n=>{let r={};return t.inEdges(n).forEach(i=>{r[i.v]=(r[i.v]||0)+t.edge(i).weight}),r});return Bn(t.nodes(),e)}function Qh(t,e){let n=t.x,r=t.y,i=e.x-n,o=e.y-r,s=t.width/2,a=t.height/2;if(!i&&!o)throw new Error("Not possible to find intersection inside of the rectangle");let l,u;return Math.abs(o)*s>Math.abs(i)*a?(o<0&&(a=-a),l=a*i/o,u=a):(i<0&&(s=-s),l=s,u=s*o/i),{x:n+l,y:r+u}}function Jh(t){let e=Qi(Ki(t)+1).map(()=>[]);return t.nodes().forEach(n=>{let r=t.node(n),i=r.rank;i!==void 0&&(e[i][r.order]=n)}),e}function ec(t){let e=Math.min(...t.nodes().map(n=>{let r=t.node(n).rank;return r===void 0?Number.MAX_VALUE:r}));t.nodes().forEach(n=>{let r=t.node(n);r.hasOwnProperty("rank")&&(r.rank-=e)})}function tc(t){let e=Math.min(...t.nodes().map(o=>t.node(o).rank)),n=[];t.nodes().forEach(o=>{let s=t.node(o).rank-e;n[s]||(n[s]=[]),n[s].push(o)});let r=0,i=t.graph().nodeRankFactor;Array.from(n).forEach((o,s)=>{o===void 0&&s%i!==0?--r:o!==void 0&&r&&o.forEach(a=>t.node(a).rank+=r)})}function nc(t,e,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),Ui(t,"border",i,e)}function Ki(t){return Math.max(...t.nodes().map(e=>{let n=t.node(e).rank;return n===void 0?Number.MIN_VALUE:n}))}function rc(t,e){let n={lhs:[],rhs:[]};return t.forEach(r=>{e(r)?n.lhs.push(r):n.rhs.push(r)}),n}function ic(t,e){let n=Date.now();try{return e()}finally{console.log(t+" time: "+(Date.now()-n)+"ms")}}function oc(t,e){return e()}let sc=0;function Zi(t){var e=++sc;return toString(t)+e}function Qi(t,e,n=1){e==null&&(e=t,t=0);let r=o=>oer[e]),Object.entries(t).reduce((r,[i,o])=>(r[i]=n(o,i),r),{})}function Bn(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}let uc=zh,hc=ee.uniqueId;var cc={run:fc,undo:pc};function fc(t){(t.graph().acyclicer==="greedy"?uc(t,n(t)):dc(t)).forEach(r=>{let i=t.edge(r);t.removeEdge(r),i.forwardName=r.name,i.reversed=!0,t.setEdge(r.w,r.v,i,hc("rev"))});function n(r){return i=>r.edge(i).weight}}function dc(t){let e=[],n={},r={};function i(o){r.hasOwnProperty(o)||(r[o]=!0,n[o]=!0,t.outEdges(o).forEach(s=>{n.hasOwnProperty(s.w)?e.push(s):i(s.w)}),delete n[o])}return t.nodes().forEach(i),e}function pc(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.reversed){t.removeEdge(e);let r=n.forwardName;delete n.reversed,delete n.forwardName,t.setEdge(e.w,e.v,n,r)}})}let gc=ee;var mc={run:_c,undo:bc};function _c(t){t.graph().dummyChains=[],t.edges().forEach(e=>wc(t,e))}function wc(t,e){let n=e.v,r=t.node(n).rank,i=e.w,o=t.node(i).rank,s=e.name,a=t.edge(e),l=a.labelRank;if(o===r+1)return;t.removeEdge(e);let u,h,c;for(c=0,++r;r{let n=t.node(e),r=n.edgeLabel,i;for(t.setEdge(n.edgeObj,r);n.dummy;)i=t.successors(e)[0],t.removeNode(e),r.points.push({x:n.x,y:n.y}),n.dummy==="edge-label"&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),e=i,n=t.node(e)})}var Ut={longestPath:yc,slack:vc};function yc(t){var e={};function n(r){var i=t.node(r);if(e.hasOwnProperty(r))return i.rank;e[r]=!0;var o=Math.min(...t.outEdges(r).map(s=>s==null?Number.POSITIVE_INFINITY:n(s.w)-t.edge(s).minlen));return o===Number.POSITIVE_INFINITY&&(o=0),i.rank=o}t.sources().forEach(n)}function vc(t,e){return t.node(e.w).rank-t.node(e.v).rank-t.edge(e).minlen}var xc=ve.Graph,zt=Ut.slack,Ji=Ec;function Ec(t){var e=new xc({directed:!1}),n=t.nodes()[0],r=t.nodeCount();e.setNode(n,{});for(var i,o;kc(e,t){var o=i.v,s=r===o?i.w:o;!t.hasNode(s)&&!zt(e,i)&&(t.setNode(s,{}),t.setEdge(r,s,{}),n(s))})}return t.nodes().forEach(n),t.nodeCount()}function Mc(t,e){return e.edges().reduce((r,i)=>{let o=Number.POSITIVE_INFINITY;return t.hasNode(i.v)!==t.hasNode(i.w)&&(o=zt(e,i)),oe.node(r).rank+=n)}var Tc=Ji,_r=Ut.slack,Cc=Ut.longestPath,Sc=ve.alg.preorder,Oc=ve.alg.postorder,Ic=ee.simplify,Pc=Ye;Ye.initLowLimValues=$n;Ye.initCutValues=Dn;Ye.calcCutValue=eo;Ye.leaveEdge=no;Ye.enterEdge=ro;Ye.exchangeEdges=io;function Ye(t){t=Ic(t),Cc(t);var e=Tc(t);$n(e),Dn(e,t);for(var n,r;n=no(e);)r=ro(e,t,n),io(e,t,n,r)}function Dn(t,e){var n=Oc(t,t.nodes());n=n.slice(0,n.length-1),n.forEach(r=>Ac(t,e,r))}function Ac(t,e,n){var r=t.node(n),i=r.parent;t.edge(n,i).cutvalue=eo(t,e,n)}function eo(t,e,n){var r=t.node(n),i=r.parent,o=!0,s=e.edge(n,i),a=0;return s||(o=!1,s=e.edge(i,n)),a=s.weight,e.nodeEdges(n).forEach(l=>{var u=l.v===n,h=u?l.w:l.v;if(h!==i){var c=u===o,f=e.edge(l).weight;if(a+=c?f:-f,Rc(t,n,h)){var d=t.edge(n,h).cutvalue;a+=c?-d:d}}}),a}function $n(t,e){arguments.length<2&&(e=t.nodes()[0]),to(t,{},1,e)}function to(t,e,n,r,i){var o=n,s=t.node(r);return e[r]=!0,t.neighbors(r).forEach(a=>{e.hasOwnProperty(a)||(n=to(t,e,n,a,r))}),s.low=o,s.lim=n++,i?s.parent=i:delete s.parent,n}function no(t){return t.edges().find(e=>t.edge(e).cutvalue<0)}function ro(t,e,n){var r=n.v,i=n.w;e.hasEdge(r,i)||(r=n.w,i=n.v);var o=t.node(r),s=t.node(i),a=o,l=!1;o.lim>s.lim&&(a=s,l=!0);var u=e.edges().filter(h=>l===wr(t,t.node(h.v),a)&&l!==wr(t,t.node(h.w),a));return u.reduce((h,c)=>_r(e,c)<_r(e,h)?c:h)}function io(t,e,n,r){var i=n.v,o=n.w;t.removeEdge(i,o),t.setEdge(r.v,r.w,{}),$n(t),Dn(t,e),Lc(t,e)}function Lc(t,e){var n=t.nodes().find(i=>!e.node(i).parent),r=Sc(t,n);r=r.slice(1),r.forEach(i=>{var o=t.node(i).parent,s=e.edge(i,o),a=!1;s||(s=e.edge(o,i),a=!0),e.node(i).rank=e.node(o).rank+(a?s.minlen:-s.minlen)})}function Rc(t,e,n){return t.hasEdge(e,n)}function wr(t,e,n){return n.low<=e.lim&&e.lim<=n.lim}var Bc=Ut,oo=Bc.longestPath,Dc=Ji,$c=Pc,Vc=Fc;function Fc(t){switch(t.graph().ranker){case"network-simplex":br(t);break;case"tight-tree":zc(t);break;case"longest-path":Wc(t);break;default:br(t)}}var Wc=oo;function zc(t){oo(t),Dc(t)}function br(t){$c(t)}var Gc=jc;function jc(t){let e=Hc(t);t.graph().dummyChains.forEach(n=>{let r=t.node(n),i=r.edgeObj,o=Yc(t,e,i.v,i.w),s=o.path,a=o.lca,l=0,u=s[l],h=!0;for(;n!==i.w;){if(r=t.node(n),h){for(;(u=s[l])!==a&&t.node(u).maxRanks||a>e[l].lim));for(u=l,l=r;(l=t.parent(l))!==u;)o.push(l);return{path:i.concat(o.reverse()),lca:u}}function Hc(t){let e={},n=0;function r(i){let o=n;t.children(i).forEach(r),e[i]={low:o,lim:n++}}return t.children().forEach(r),e}let En=ee;var Xc={run:qc,cleanup:Zc};function qc(t){let e=En.addDummyNode(t,"root",{},"_root"),n=Uc(t),r=Math.max(...Object.values(n))-1,i=2*r+1;t.graph().nestingRoot=e,t.edges().forEach(s=>t.edge(s).minlen*=i);let o=Kc(t)+1;t.children().forEach(s=>so(t,e,i,o,r,n,s)),t.graph().nodeRankFactor=i}function so(t,e,n,r,i,o,s){let a=t.children(s);if(!a.length){s!==e&&t.setEdge(e,s,{weight:0,minlen:n});return}let l=En.addBorderNode(t,"_bt"),u=En.addBorderNode(t,"_bb"),h=t.node(s);t.setParent(l,s),h.borderTop=l,t.setParent(u,s),h.borderBottom=u,a.forEach(c=>{so(t,e,n,r,i,o,c);let f=t.node(c),d=f.borderTop?f.borderTop:c,g=f.borderBottom?f.borderBottom:c,b=f.borderTop?r:2*r,C=d!==g?1:i-o[s]+1;t.setEdge(l,d,{weight:b,minlen:C,nestingEdge:!0}),t.setEdge(g,u,{weight:b,minlen:C,nestingEdge:!0})}),t.parent(s)||t.setEdge(e,l,{weight:0,minlen:i+o[s]})}function Uc(t){var e={};function n(r,i){var o=t.children(r);o&&o.length&&o.forEach(s=>n(s,i+1)),e[r]=i}return t.children().forEach(r=>n(r,1)),e}function Kc(t){return t.edges().reduce((e,n)=>e+t.edge(n).weight,0)}function Zc(t){var e=t.graph();t.removeNode(e.nestingRoot),delete e.nestingRoot,t.edges().forEach(n=>{var r=t.edge(n);r.nestingEdge&&t.removeEdge(n)})}let Qc=ee;var Jc=ef;function ef(t){function e(n){let r=t.children(n),i=t.node(n);if(r.length&&r.forEach(e),i.hasOwnProperty("minRank")){i.borderLeft=[],i.borderRight=[];for(let o=i.minRank,s=i.maxRank+1;ovr(t.node(e))),t.edges().forEach(e=>vr(t.edge(e)))}function vr(t){let e=t.width;t.width=t.height,t.height=e}function of(t){t.nodes().forEach(e=>rn(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(rn),n.hasOwnProperty("y")&&rn(n)})}function rn(t){t.y=-t.y}function sf(t){t.nodes().forEach(e=>on(t.node(e))),t.edges().forEach(e=>{let n=t.edge(e);n.points.forEach(on),n.hasOwnProperty("x")&&on(n)})}function on(t){let e=t.x;t.x=t.y,t.y=e}let af=ee;var lf=uf;function uf(t){let e={},n=t.nodes().filter(a=>!t.children(a).length),r=Math.max(...n.map(a=>t.node(a).rank)),i=af.range(r+1).map(()=>[]);function o(a){if(e[a])return;e[a]=!0;let l=t.node(a);i[l.rank].push(a),t.successors(a).forEach(o)}return n.sort((a,l)=>t.node(a).rank-t.node(l).rank).forEach(o),i}let hf=ee.zipObject;var cf=ff;function ff(t,e){let n=0;for(let r=1;rh)),i=e.flatMap(u=>t.outEdges(u).map(h=>({pos:r[h.w],weight:t.edge(h).weight})).sort((h,c)=>h.pos-c.pos)),o=1;for(;o{let h=u.pos+o;a[h]+=u.weight;let c=0;for(;h>0;)h%2&&(c+=a[h+1]),h=h-1>>1,a[h]+=u.weight;l+=u.weight*c}),l}var pf=gf;function gf(t,e=[]){return e.map(n=>{let r=t.inEdges(n);if(r.length){let i=r.reduce((o,s)=>{let a=t.edge(s),l=t.node(s.v);return{sum:o.sum+a.weight*l.order,weight:o.weight+a.weight}},{sum:0,weight:0});return{v:n,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:n}})}let mf=ee;var _f=wf;function wf(t,e){let n={};t.forEach((i,o)=>{let s=n[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:o};i.barycenter!==void 0&&(s.barycenter=i.barycenter,s.weight=i.weight)}),e.edges().forEach(i=>{let o=n[i.v],s=n[i.w];o!==void 0&&s!==void 0&&(s.indegree++,o.out.push(n[i.w]))});let r=Object.values(n).filter(i=>!i.indegree);return bf(r)}function bf(t){let e=[];function n(i){return o=>{o.merged||(o.barycenter===void 0||i.barycenter===void 0||o.barycenter>=i.barycenter)&&yf(i,o)}}function r(i){return o=>{o.in.push(i),--o.indegree===0&&t.push(o)}}for(;t.length;){let i=t.pop();e.push(i),i.in.reverse().forEach(n(i)),i.out.forEach(r(i))}return e.filter(i=>!i.merged).map(i=>mf.pick(i,["vs","i","barycenter","weight"]))}function yf(t,e){let n=0,r=0;t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.vs=e.vs.concat(t.vs),t.barycenter=n/r,t.weight=r,t.i=Math.min(e.i,t.i),e.merged=!0}let vf=ee;var xf=Ef;function Ef(t,e){let n=vf.partition(t,h=>h.hasOwnProperty("barycenter")),r=n.lhs,i=n.rhs.sort((h,c)=>c.i-h.i),o=[],s=0,a=0,l=0;r.sort(kf(!!e)),l=xr(o,i,l),r.forEach(h=>{l+=h.vs.length,o.push(h.vs),s+=h.barycenter*h.weight,a+=h.weight,l=xr(o,i,l)});let u={vs:o.flat(!0)};return a&&(u.barycenter=s/a,u.weight=a),u}function xr(t,e,n){let r;for(;e.length&&(r=e[e.length-1]).i<=n;)e.pop(),t.push(r.vs),n++;return n}function kf(t){return(e,n)=>e.barycentern.barycenter?1:t?n.i-e.i:e.i-n.i}let Mf=pf,Nf=_f,Tf=xf;var Cf=lo;function lo(t,e,n,r){let i=t.children(e),o=t.node(e),s=o?o.borderLeft:void 0,a=o?o.borderRight:void 0,l={};s&&(i=i.filter(f=>f!==s&&f!==a));let u=Mf(t,i);u.forEach(f=>{if(t.children(f.v).length){let d=lo(t,f.v,n,r);l[f.v]=d,d.hasOwnProperty("barycenter")&&Of(f,d)}});let h=Nf(u,n);Sf(h,l);let c=Tf(h,r);if(s&&(c.vs=[s,c.vs,a].flat(!0),t.predecessors(s).length)){let f=t.node(t.predecessors(s)[0]),d=t.node(t.predecessors(a)[0]);c.hasOwnProperty("barycenter")||(c.barycenter=0,c.weight=0),c.barycenter=(c.barycenter*c.weight+f.order+d.order)/(c.weight+2),c.weight+=2}return c}function Sf(t,e){t.forEach(n=>{n.vs=n.vs.flatMap(r=>e[r]?e[r].vs:r)})}function Of(t,e){t.barycenter!==void 0?(t.barycenter=(t.barycenter*t.weight+e.barycenter*e.weight)/(t.weight+e.weight),t.weight+=e.weight):(t.barycenter=e.barycenter,t.weight=e.weight)}let If=ve.Graph,Pf=ee;var Af=Lf;function Lf(t,e,n){let r=Rf(t),i=new If({compound:!0}).setGraph({root:r}).setDefaultNodeLabel(o=>t.node(o));return t.nodes().forEach(o=>{let s=t.node(o),a=t.parent(o);(s.rank===e||s.minRank<=e&&e<=s.maxRank)&&(i.setNode(o),i.setParent(o,a||r),t[n](o).forEach(l=>{let u=l.v===o?l.w:l.v,h=i.edge(u,o),c=h!==void 0?h.weight:0;i.setEdge(u,o,{weight:t.edge(l).weight+c})}),s.hasOwnProperty("minRank")&&i.setNode(o,{borderLeft:s.borderLeft[e],borderRight:s.borderRight[e]}))}),i}function Rf(t){for(var e;t.hasNode(e=Pf.uniqueId("_root")););return e}var Bf=Df;function Df(t,e,n){let r={},i;n.forEach(o=>{let s=t.parent(o),a,l;for(;s;){if(a=t.parent(s),a?(l=r[a],r[a]=s):(l=i,i=s),l&&l!==s){e.setEdge(l,s);return}s=a}})}let $f=lf,Vf=cf,Ff=Cf,Wf=Af,zf=Bf,Gf=ve.Graph,Tt=ee;var jf=uo;function uo(t,e){if(e&&typeof e.customOrder=="function"){e.customOrder(t,uo);return}let n=Tt.maxRank(t),r=Er(t,Tt.range(1,n+1),"inEdges"),i=Er(t,Tt.range(n-1,-1,-1),"outEdges"),o=$f(t);if(kr(t,o),e&&e.disableOptimalOrderHeuristic)return;let s=Number.POSITIVE_INFINITY,a;for(let l=0,u=0;u<4;++l,++u){Yf(l%2?r:i,l%4>=2),o=Tt.buildLayerMatrix(t);let h=Vf(t,o);hr.node(s).order=a),zf(r,n,o.vs)})}function kr(t,e){Object.values(e).forEach(n=>n.forEach((r,i)=>t.node(r).order=i))}let Hf=ve.Graph,_t=ee;var Xf={positionX:Kf,findType1Conflicts:ho,findType2Conflicts:co,addConflict:Vn,hasConflict:fo,verticalAlignment:po,horizontalCompaction:go,alignCoordinates:_o,findSmallestWidthAlignment:mo,balance:wo};function ho(t,e){let n={};function r(i,o){let s=0,a=0,l=i.length,u=o[o.length-1];return o.forEach((h,c)=>{let f=qf(t,h),d=f?t.node(f).order:l;(f||h===u)&&(o.slice(a,c+1).forEach(g=>{t.predecessors(g).forEach(b=>{let C=t.node(b),S=C.order;(S{h=o[c],t.node(h).dummy&&t.predecessors(h).forEach(f=>{let d=t.node(f);d.dummy&&(d.orderu)&&Vn(n,f,h)})})}function i(o,s){let a=-1,l,u=0;return s.forEach((h,c)=>{if(t.node(h).dummy==="border"){let f=t.predecessors(h);f.length&&(l=t.node(f[0]).order,r(s,u,c,a,l),u=c,a=l)}r(s,u,s.length,l,o.length)}),s}return e.length&&e.reduce(i),n}function qf(t,e){if(t.node(e).dummy)return t.predecessors(e).find(n=>t.node(n).dummy)}function Vn(t,e,n){if(e>n){let i=e;e=n,n=i}let r=t[e];r||(t[e]=r={}),r[n]=!0}function fo(t,e,n){if(e>n){let r=e;e=n,n=r}return!!t[e]&&t[e].hasOwnProperty(n)}function po(t,e,n,r){let i={},o={},s={};return e.forEach(a=>{a.forEach((l,u)=>{i[l]=l,o[l]=l,s[l]=u})}),e.forEach(a=>{let l=-1;a.forEach(u=>{let h=r(u);if(h.length){h=h.sort((f,d)=>s[f]-s[d]);let c=(h.length-1)/2;for(let f=Math.floor(c),d=Math.ceil(c);f<=d;++f){let g=h[f];o[u]===u&&lMath.max(f,o[d.v]+s.edge(d)),0)}function h(c){let f=s.outEdges(c).reduce((g,b)=>Math.min(g,o[b.w]-s.edge(b)),Number.POSITIVE_INFINITY),d=t.node(c);f!==Number.POSITIVE_INFINITY&&d.borderType!==a&&(o[c]=Math.max(o[c],f))}return l(u,s.predecessors.bind(s)),l(h,s.successors.bind(s)),Object.keys(r).forEach(c=>o[c]=o[n[c]]),o}function Uf(t,e,n,r){let i=new Hf,o=t.graph(),s=Zf(o.nodesep,o.edgesep,r);return e.forEach(a=>{let l;a.forEach(u=>{let h=n[u];if(i.setNode(h),l){var c=n[l],f=i.edge(c,h);i.setEdge(c,h,Math.max(s(t,u,l),f||0))}l=u})}),i}function mo(t,e){return Object.values(e).reduce((n,r)=>{let i=Number.NEGATIVE_INFINITY,o=Number.POSITIVE_INFINITY;Object.entries(r).forEach(([a,l])=>{let u=Qf(t,a)/2;i=Math.max(l+u,i),o=Math.min(l-u,o)});const s=i-o;return s{["l","r"].forEach(s=>{let a=o+s,l=t[a];if(l===e)return;let u=Object.values(l),h=r-Math.min(...u);s!=="l"&&(h=i-Math.max(...u)),h&&(t[a]=_t.mapValues(l,c=>c+h))})})}function wo(t,e){return _t.mapValues(t.ul,(n,r)=>{if(e)return t[e.toLowerCase()][r];{let i=Object.values(t).map(o=>o[r]).sort((o,s)=>o-s);return(i[1]+i[2])/2}})}function Kf(t){let e=_t.buildLayerMatrix(t),n=Object.assign(ho(t,e),co(t,e)),r={},i;["u","d"].forEach(s=>{i=s==="u"?e:Object.values(e).reverse(),["l","r"].forEach(a=>{a==="r"&&(i=i.map(c=>Object.values(c).reverse()));let l=(s==="u"?t.predecessors:t.successors).bind(t),u=po(t,i,n,l),h=go(t,i,u.root,u.align,a==="r");a==="r"&&(h=_t.mapValues(h,c=>-c)),r[s+a]=h})});let o=mo(t,r);return _o(r,o),wo(r,t.graph().align)}function Zf(t,e,n){return(r,i,o)=>{let s=r.node(i),a=r.node(o),l=0,u;if(l+=s.width/2,s.hasOwnProperty("labelpos"))switch(s.labelpos.toLowerCase()){case"l":u=-s.width/2;break;case"r":u=s.width/2;break}if(u&&(l+=n?u:-u),u=0,l+=(s.dummy?e:t)/2,l+=(a.dummy?e:t)/2,l+=a.width/2,a.hasOwnProperty("labelpos"))switch(a.labelpos.toLowerCase()){case"l":u=a.width/2;break;case"r":u=-a.width/2;break}return u&&(l+=n?u:-u),u=0,l}}function Qf(t,e){return t.node(e).width}let bo=ee,Jf=Xf.positionX;var ed=td;function td(t){t=bo.asNonCompoundGraph(t),nd(t),Object.entries(Jf(t)).forEach(([e,n])=>t.node(e).x=n)}function nd(t){let e=bo.buildLayerMatrix(t),n=t.graph().ranksep,r=0;e.forEach(i=>{const o=i.reduce((s,a)=>{const l=t.node(a).height;return s>l?s:l},0);i.forEach(s=>t.node(s).y=r+o/2),r+=o+n})}let Mr=cc,Nr=mc,rd=Vc,id=ee.normalizeRanks,od=Gc,sd=ee.removeEmptyRanks,Tr=Xc,ad=Jc,Cr=tf,ld=jf,ud=ed,me=ee,hd=ve.Graph;var cd=fd;function fd(t,e){let n=e&&e.debugTiming?me.time:me.notime;n("layout",()=>{let r=n(" buildLayoutGraph",()=>xd(t));n(" runLayout",()=>dd(r,n)),n(" updateInputGraph",()=>pd(t,r))})}function dd(t,e){e(" makeSpaceForEdgeLabels",()=>Ed(t)),e(" removeSelfEdges",()=>Pd(t)),e(" acyclic",()=>Mr.run(t)),e(" nestingGraph.run",()=>Tr.run(t)),e(" rank",()=>rd(me.asNonCompoundGraph(t))),e(" injectEdgeLabelProxies",()=>kd(t)),e(" removeEmptyRanks",()=>sd(t)),e(" nestingGraph.cleanup",()=>Tr.cleanup(t)),e(" normalizeRanks",()=>id(t)),e(" assignRankMinMax",()=>Md(t)),e(" removeEdgeLabelProxies",()=>Nd(t)),e(" normalize.run",()=>Nr.run(t)),e(" parentDummyChains",()=>od(t)),e(" addBorderSegments",()=>ad(t)),e(" order",()=>ld(t)),e(" insertSelfEdges",()=>Ad(t)),e(" adjustCoordinateSystem",()=>Cr.adjust(t)),e(" position",()=>ud(t)),e(" positionSelfEdges",()=>Ld(t)),e(" removeBorderNodes",()=>Id(t)),e(" normalize.undo",()=>Nr.undo(t)),e(" fixupEdgeLabelCoords",()=>Sd(t)),e(" undoCoordinateSystem",()=>Cr.undo(t)),e(" translateGraph",()=>Td(t)),e(" assignNodeIntersects",()=>Cd(t)),e(" reversePoints",()=>Od(t)),e(" acyclic.undo",()=>Mr.undo(t))}function pd(t,e){t.nodes().forEach(n=>{let r=t.node(n),i=e.node(n);r&&(r.x=i.x,r.y=i.y,r.rank=i.rank,e.children(n).length&&(r.width=i.width,r.height=i.height))}),t.edges().forEach(n=>{let r=t.edge(n),i=e.edge(n);r.points=i.points,i.hasOwnProperty("x")&&(r.x=i.x,r.y=i.y)}),t.graph().width=e.graph().width,t.graph().height=e.graph().height}let gd=["nodesep","edgesep","ranksep","marginx","marginy"],md={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},_d=["acyclicer","ranker","rankdir","align"],wd=["width","height"],Sr={width:0,height:0},bd=["minlen","weight","width","height","labeloffset"],yd={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},vd=["labelpos"];function xd(t){let e=new hd({multigraph:!0,compound:!0}),n=an(t.graph());return e.setGraph(Object.assign({},md,sn(n,gd),me.pick(n,_d))),t.nodes().forEach(r=>{let i=an(t.node(r));const o=sn(i,wd);Object.keys(Sr).forEach(s=>{o[s]===void 0&&(o[s]=Sr[s])}),e.setNode(r,o),e.setParent(r,t.parent(r))}),t.edges().forEach(r=>{let i=an(t.edge(r));e.setEdge(r,Object.assign({},yd,sn(i,bd),me.pick(i,vd)))}),e}function Ed(t){let e=t.graph();e.ranksep/=2,t.edges().forEach(n=>{let r=t.edge(n);r.minlen*=2,r.labelpos.toLowerCase()!=="c"&&(e.rankdir==="TB"||e.rankdir==="BT"?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function kd(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.width&&n.height){let r=t.node(e.v),o={rank:(t.node(e.w).rank-r.rank)/2+r.rank,e};me.addDummyNode(t,"edge-proxy",o,"_ep")}})}function Md(t){let e=0;t.nodes().forEach(n=>{let r=t.node(n);r.borderTop&&(r.minRank=t.node(r.borderTop).rank,r.maxRank=t.node(r.borderBottom).rank,e=Math.max(e,r.maxRank))}),t.graph().maxRank=e}function Nd(t){t.nodes().forEach(e=>{let n=t.node(e);n.dummy==="edge-proxy"&&(t.edge(n.e).labelRank=n.rank,t.removeNode(e))})}function Td(t){let e=Number.POSITIVE_INFINITY,n=0,r=Number.POSITIVE_INFINITY,i=0,o=t.graph(),s=o.marginx||0,a=o.marginy||0;function l(u){let h=u.x,c=u.y,f=u.width,d=u.height;e=Math.min(e,h-f/2),n=Math.max(n,h+f/2),r=Math.min(r,c-d/2),i=Math.max(i,c+d/2)}t.nodes().forEach(u=>l(t.node(u))),t.edges().forEach(u=>{let h=t.edge(u);h.hasOwnProperty("x")&&l(h)}),e-=s,r-=a,t.nodes().forEach(u=>{let h=t.node(u);h.x-=e,h.y-=r}),t.edges().forEach(u=>{let h=t.edge(u);h.points.forEach(c=>{c.x-=e,c.y-=r}),h.hasOwnProperty("x")&&(h.x-=e),h.hasOwnProperty("y")&&(h.y-=r)}),o.width=n-e+s,o.height=i-r+a}function Cd(t){t.edges().forEach(e=>{let n=t.edge(e),r=t.node(e.v),i=t.node(e.w),o,s;n.points?(o=n.points[0],s=n.points[n.points.length-1]):(n.points=[],o=i,s=r),n.points.unshift(me.intersectRect(r,o)),n.points.push(me.intersectRect(i,s))})}function Sd(t){t.edges().forEach(e=>{let n=t.edge(e);if(n.hasOwnProperty("x"))switch((n.labelpos==="l"||n.labelpos==="r")&&(n.width-=n.labeloffset),n.labelpos){case"l":n.x-=n.width/2+n.labeloffset;break;case"r":n.x+=n.width/2+n.labeloffset;break}})}function Od(t){t.edges().forEach(e=>{let n=t.edge(e);n.reversed&&n.points.reverse()})}function Id(t){t.nodes().forEach(e=>{if(t.children(e).length){let n=t.node(e),r=t.node(n.borderTop),i=t.node(n.borderBottom),o=t.node(n.borderLeft[n.borderLeft.length-1]),s=t.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(s.x-o.x),n.height=Math.abs(i.y-r.y),n.x=o.x+n.width/2,n.y=r.y+n.height/2}}),t.nodes().forEach(e=>{t.node(e).dummy==="border"&&t.removeNode(e)})}function Pd(t){t.edges().forEach(e=>{if(e.v===e.w){var n=t.node(e.v);n.selfEdges||(n.selfEdges=[]),n.selfEdges.push({e,label:t.edge(e)}),t.removeEdge(e)}})}function Ad(t){var e=me.buildLayerMatrix(t);e.forEach(n=>{var r=0;n.forEach((i,o)=>{var s=t.node(i);s.order=o+r,(s.selfEdges||[]).forEach(a=>{me.addDummyNode(t,"selfedge",{width:a.label.width,height:a.label.height,rank:s.rank,order:o+ ++r,e:a.e,label:a.label},"_se")}),delete s.selfEdges})})}function Ld(t){t.nodes().forEach(e=>{var n=t.node(e);if(n.dummy==="selfedge"){var r=t.node(n.e.v),i=r.x+r.width/2,o=r.y,s=n.x-i,a=r.height/2;t.setEdge(n.e,n.label),t.removeNode(e),n.label.points=[{x:i+2*s/3,y:o-a},{x:i+5*s/6,y:o-a},{x:i+s,y:o},{x:i+5*s/6,y:o+a},{x:i+2*s/3,y:o+a}],n.label.x=n.x,n.label.y=n.y}})}function sn(t,e){return me.mapValues(me.pick(t,e),Number)}function an(t){var e={};return t&&Object.entries(t).forEach(([n,r])=>{typeof n=="string"&&(n=n.toLowerCase()),e[n]=r}),e}let Rd=ee,Bd=ve.Graph;var Dd={debugOrdering:$d};function $d(t){let e=Rd.buildLayerMatrix(t),n=new Bd({compound:!0,multigraph:!0}).setGraph({});return t.nodes().forEach(r=>{n.setNode(r,{label:r}),n.setParent(r,"layer"+t.node(r).rank)}),t.edges().forEach(r=>n.setEdge(r.v,r.w,{},r.name)),e.forEach((r,i)=>{let o="layer"+i;n.setNode(o,{rank:"same"}),r.reduce((s,a)=>(n.setEdge(s,a,{style:"invis"}),a))}),n}var Vd="1.1.2",Rt={graphlib:ve,layout:cd,debug:Dd,util:{time:ee.time,notime:ee.notime},version:Vd};const Or=Yu(Rt);class Fd{compute(e,n){const r=new Or.graphlib.Graph;r.setGraph({}),r.setDefaultEdgeLabel(()=>({})),r.setDefaultNodeLabel(()=>({}));const i=new Map,o=new Map,s=new Map,a=new Map,l=y=>{const _=e.childrenT(y);if(_.length===0){const m=e.node(y).build(),{width:w,height:k}=m.boundingBox();r.setNode(y,{width:w,height:k}),i.set(y,m)}else{if(!n.has(y)&&y!==e.root()){const m=e.node(y);s.set(y,{boundingBox:{},name:m.humanReadable()||y})}for(const m of _)if(n.has(m))for(const w of e.hierarchyPreorder(m)){const k=e.node(m).build();a.set(w,m);const{width:T,height:L}=k.boundingBox();r.setNode(m,{width:T,height:L}),o.set(m,k)}else l(m)}};l(e.root());for(const{v:y,w:_}of e.edges()){const m=a.get(y)||y,w=a.get(_)||_;m!==w&&r.setEdge(m,w)}const u=performance.now();Or.layout(r);const h=performance.now(),{width:c,height:f}=r.graph(),d=new X(0,0,c,f);for(const[y,_]of i.entries()){const{x:m,y:w,width:k,height:T}=r.node(y);_.moveTo(m-k/2,w-T/2)}for(const[y,_]of o.entries()){const{x:m,y:w,width:k,height:T}=r.node(y);_.moveTo(m-k/2,w-T/2)}const g=20;for(const y of e.hierarchyPostorder()){const _=s.get(y);if(_!==void 0){const m=e.childrenT(y).reduce((w,k)=>{const T=i.get(k)?.boundingBox();T!==void 0&&w.push(T);const L=o.get(k)?.boundingBox();L!==void 0&&w.push(L);const W=s.get(k)?.boundingBox;if(W!==void 0&&k!==y){const q=2*-g+10,K=X.fromCenterAndDimension(W.center,W.width+q,W.height+q);w.push(K)}return w},[]);_.boundingBox=X.fromUnion(...m).padded(g)}}const b=r.edges().map(y=>{const{points:_}=r.edge(y);return[{from:y.v,to:y.w},new Mu(_)]}).map(([y,_])=>_),C={layoutTimeMs:h-u},S=new Nu(...b);return{nodes:i,collapsed:o,expanded:s,edges:S,boundingBox:d.union(S.boundingBox()),stats:C}}}class yo extends Rt.graphlib.Graph{constructor(e){super({compound:!0}),e!==void 0?Object.assign(this,e):(this.setGraph({}),this.setDefaultEdgeLabel(()=>({})))}setNodeWithParent(e,n,r){this.setNode(e,n),this.setParent(e,r)}parents(e){const n=[];let r=this.parent(e);for(;r!==void 0;)n.push(r),r=this.parent(r);return n}hierarchyPreorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{n.push(o);for(const s of this.childrenT(o))i(s)};for(const o of this.childrenT(r))i(o);return n}hierarchyPostorder(e){const n=[],r=e!==void 0?e:this.root(),i=o=>{for(const s of this.childrenT(o))i(s);n.push(o)};for(const o of this.childrenT(r))i(o);return n}childrenT(e){return this.children(e)}parent(e){return super.parent(e)}nodes(){return super.nodes()}modules(){return this.nodes().filter(e=>this.childrenT(e).length>0)}edges(){return super.edges()}root(){return"\0"}toJson(){return Rt.graphlib.json.write(this)}static readJson(e){return new yo(Rt.graphlib.json.read(e))}}function Wd(t,e,n,r){const i=new Set,o=new Set;if(r.expand)for(const a of e)for(const l of t.parents(a))n.has(l)?o.add(l):i.add(l);const s=new Set;if(r.collapseOthers)for(const a of t.modules())!o.has(a)&&!n.has(a)&&!i.has(a)&&s.add(a);return{collapse:s,expand:o}}function zd(t,e){const n=r=>e.has(r)||t.childrenT(r).length===0?1:t.childrenT(r).reduce((i,o)=>i+n(o),0);return t.childrenT(t.root()).reduce((r,i)=>r+n(i),0)}function Gd(t){let e;return{c(){e=$("path"),this.h()},l(n){e=V(n,"path",{d:!0,transform:!0,fill:!0,stroke:!0}),P(e).forEach(v),this.h()},h(){p(e,"d","M20.441,59.9614212 C21.0957895,59.9614212 22.7266842,56.6764211 22.7266842,52.7482369 L22.7266842,38.6593685 L18.182579,38.6593685 L18.182579,52.7482369 C18.182579,56.6764211 19.8134737,59.9614212 20.441,59.9614212 Z M4.26163159,40.7638948 L36.6204211,40.7638948 C38.9460001,40.7638948 40.4145264,39.317579 40.4145264,37.1453685 C40.4145264,29.5821053 31.9740001,21.9558421 20.441,21.9558421 C8.93526317,21.9558421 0.494736843,29.5821053 0.494736843,37.1453685 C0.494736843,39.317579 1.96884211,40.7638948 4.26163159,40.7638948 Z M5.2911579,36.8756316 C4.71700001,36.8756316 4.4541579,36.5583159 4.56310527,35.8480001 C5.1023158,31.2280527 11.0429474,25.7078948 20.441,25.7078948 C29.8718948,25.7078948 35.7796843,31.2280527 36.346158,35.8480001 C36.4551053,36.5583159 36.1650001,36.8756316 35.5908948,36.8756316 L5.2911579,36.8756316 Z M3.74989474,2.76857895 C3.74989474,3.55452632 4.0611579,4.40605264 4.72705264,5.26868422 C6.03868422,7.0183158 9.13778949,9.44489475 12.3810527,11.5798421 L11.4523158,25.1263685 L15.5584737,25.1263685 L16.4983158,9.67205265 C16.5311053,9.30078949 16.4711053,9.17515791 16.2254211,9.04952633 C12.3641579,7.09368422 9.37084212,4.73952632 9.18573686,4.22889474 C8.96778949,3.90094737 9.18626317,3.66589474 9.48189475,3.66589474 L31.4273685,3.66589474 C31.7013158,3.66589474 31.9142106,3.90094737 31.7291053,4.22889474 C31.5112106,4.73952632 28.5451053,7.09368422 24.6621579,9.04952633 C24.4437369,9.17515791 24.3836843,9.30078949 24.4164737,9.67205265 L25.3563685,25.1263685 L29.4569474,25.1263685 L28.501,11.5798421 C31.7497895,9.44489475 34.8488948,7.0183158 36.1605264,5.26868422 C36.8481053,4.40605264 37.1593685,3.55452632 37.1593685,2.76857895 C37.1593685,1.20726316 35.9421053,0.0500000001 34.1512632,0.0500000001 L6.75800001,0.0500000001 C4.93989475,0.0500000001 3.74989474,1.20726316 3.74989474,2.76857895 Z"),p(e,"transform","translate(11.737 2)"),p(e,"fill",t[0]),p(e,"stroke",t[1])},m(n,r){A(n,e,r)},p(n,[r]){r&1&&p(e,"fill",n[0]),r&2&&p(e,"stroke",n[1])},i:Y,o:Y,d(n){n&&v(e)}}}function jd(t,e,n){let{fill:r="white"}=e,{stroke:i="white"}=e;return t.$$set=o=>{"fill"in o&&n(0,r=o.fill),"stroke"in o&&n(1,i=o.stroke)},[r,i]}class Yd extends ae{constructor(e){super(),le(this,e,jd,Gd,se,{fill:0,stroke:1})}}function Hd(t){let e,n,r,i,o,s,a,l,u,h,c,f,d;const g=[{self:t[0].content}];var b=t[0].content.drawable();function C(S,y){let _={};for(let m=0;m{J(_,1)}),fe()}b?(n=Qe(b,C(S,y)),Z(n.$$.fragment),I(n.$$.fragment,1),Q(n,e,r)):n=null}else if(b){const _=y&1?Je(g,[{self:S[0].content}]):{};n.$set(_)}(!c||y&2&&o!==(o=S[1]==="pinned"?"orange":"rgb(51,51,51)"))&&p(i,"fill",o),(!c||y&4&&h!==(h=`translate(${S[2].width+S[6].x},${-S[6].y})`))&&p(r,"transform",h)},i(S){c||(n&&I(n.$$.fragment,S),I(u.$$.fragment,S),c=!0)},o(S){n&&B(n.$$.fragment,S),B(u.$$.fragment,S),c=!1},d(S){S&&v(e),n&&J(n),J(u),f=!1,Gt(d)}}}function Xd(t,e,n){let r,{nodeId:i}=e,{tooltip:o}=e,{state:s}=e;const a=nt();function l(f){f.stopPropagation(),a("togglePin",{nodeId:i})}function u(f){a("nodeEnter",{...f,nodeId:i})}function h(f){a("nodeLeave",{...f,nodeId:i})}const c={x:1,y:1};return t.$$set=f=>{"nodeId"in f&&n(7,i=f.nodeId),"tooltip"in f&&n(0,o=f.tooltip),"state"in f&&n(1,s=f.state)},t.$$.update=()=>{t.$$.dirty&1&&n(2,r=o.boundingBox())},[o,s,r,l,u,h,c,i]}class qd extends ae{constructor(e){super(),le(this,e,Xd,Hd,se,{nodeId:7,tooltip:0,state:1})}}const vo=300;function Ud(t,e,n){function r(){t.update(i=>(i.set(e,{tooltip:n,state:"active"}),i))}return window.setTimeout(r,vo)}function xo(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&r.state!=="pinned"&&(r.state!=="active"&&window.clearTimeout(r.state),n.set(e,{...r,state:"active"})),n})}function Eo(t,e){function n(){t.update(r=>(r.delete(e),r))}t.update(r=>{const i=r.get(e);return i!==void 0&&i.state!=="pinned"&&r.set(e,{...i,state:window.setTimeout(n,vo)}),r})}function Kd(t,e){t.update(n=>{const r=n.get(e);return r!==void 0&&(r.state==="pinned"?n.set(e,{...r,state:"active"}):n.set(e,{...r,state:"pinned"})),n})}function Ir(t,e,n){const r=t.slice();return r[9]=e[n][0],r[10]=e[n][1].position,r[11]=e[n][1].tooltip,r[12]=e[n][1].state,r}function Pr(t,e){let n,r,i,o;return r=new qd({props:{nodeId:e[9],tooltip:e[11],state:e[12]}}),r.$on("mouseenter",e[2]),r.$on("mouseleave",e[3]),r.$on("togglePin",e[4]),r.$on("nodeEnter",e[7]),r.$on("nodeLeave",e[8]),{key:t,first:null,c(){n=$("g"),Z(r.$$.fragment),this.h()},l(s){n=V(s,"g",{transform:!0});var a=P(n);oe(r.$$.fragment,a),a.forEach(v),this.h()},h(){p(n,"transform",i=`translate(${e[10].x},${e[10].y})`),this.first=n},m(s,a){A(s,n,a),Q(r,n,null),o=!0},p(s,a){e=s;const l={};a&1&&(l.nodeId=e[9]),a&1&&(l.tooltip=e[11]),a&1&&(l.state=e[12]),r.$set(l),(!o||a&1&&i!==(i=`translate(${e[10].x},${e[10].y})`))&&p(n,"transform",i)},i(s){o||(I(r.$$.fragment,s),o=!0)},o(s){B(r.$$.fragment,s),o=!1},d(s){s&&v(n),J(r)}}}function Zd(t){let e=[],n=new Map,r,i,o=ge(t[0]);const s=a=>a[9];for(let a=0;an(6,i=f));let{nodeLayouts:s}=e;function a(f){xo(o,f.detail.nodeId)}function l(f){Eo(o,f.detail.nodeId)}function u(f){Kd(o,f.detail.nodeId)}function h(f){ue.call(this,t,f)}function c(f){ue.call(this,t,f)}return t.$$set=f=>{"nodeLayouts"in f&&n(5,s=f.nodeLayouts)},t.$$.update=()=>{t.$$.dirty&96&&n(0,r=[...i.entries()].filter(([f])=>s.has(f)).map(([f,{tooltip:d,state:g}])=>{const b=s.get(f)?.boundingBox(),C=wu(b,d.boundingBox(),d.options.anchor,Qd);return[f,{position:C,tooltip:d,state:g}]}))},[r,o,a,l,u,s,i,h,c]}class ep extends ae{constructor(e){super(),le(this,e,Jd,Zd,se,{nodeLayouts:5})}}function tp(t){let e,n,r,i,o,s,a,l,u;return{c(){e=$("g"),n=$("rect"),o=$("text"),s=Le(t[0]),this.h()},l(h){e=V(h,"g",{class:!0,transform:!0});var c=P(e);n=V(c,"rect",{width:!0,height:!0,fill:!0,stroke:!0,"stroke-width":!0,rx:!0,class:!0}),P(n).forEach(v),o=V(c,"text",{y:!0,"font-family":!0,class:!0});var f=P(o);s=Re(f,t[0]),f.forEach(v),c.forEach(v),this.h()},h(){p(n,"width",r=t[1].width),p(n,"height",i=t[1].height),p(n,"fill","rgb(250,250,250)"),p(n,"stroke","rgb(134, 134, 139)"),p(n,"stroke-width","1"),p(n,"rx","6"),p(n,"class","svelte-76qmi8"),p(o,"y","-2"),p(o,"font-family",jt.family),p(o,"class","svelte-76qmi8"),p(e,"class","expand svelte-76qmi8"),p(e,"transform",a=`translate(${t[1].xMin},${t[1].yMin})`)},m(h,c){A(h,e,c),D(e,n),D(e,o),D(o,s),l||(u=[H(e,"click",t[5]),H(e,"dblclick",t[6]),H(e,"mouseenter",t[2]),H(e,"mouseleave",t[3])],l=!0)},p(h,[c]){c&2&&r!==(r=h[1].width)&&p(n,"width",r),c&2&&i!==(i=h[1].height)&&p(n,"height",i),c&1&&wt(s,h[0]),c&2&&a!==(a=`translate(${h[1].xMin},${h[1].yMin})`)&&p(e,"transform",a)},i:Y,o:Y,d(h){h&&v(e),l=!1,Gt(u)}}}function np(t,e,n){const r=nt();let{nodeId:i}=e,{name:o}=e,{boundingBox:s}=e;function a(){r("nodeEnter",{nodeId:i})}function l(){r("nodeLeave",{nodeId:i})}function u(c){ue.call(this,t,c)}function h(c){ue.call(this,t,c)}return t.$$set=c=>{"nodeId"in c&&n(4,i=c.nodeId),"name"in c&&n(0,o=c.name),"boundingBox"in c&&n(1,s=c.boundingBox)},[o,s,a,l,i,u,h]}class rp extends ae{constructor(e){super(),le(this,e,np,tp,se,{nodeId:4,name:0,boundingBox:1})}}class Fn{constructor(e,n,r={x:0,y:0},i=1){this.width=e,this.height=n,this.cameraPos=r,this.cameraScale=i}viewToWorld(){return un.identity().translate(this.cameraPos.x,this.cameraPos.y)}worldToView(){return this.viewToWorld().inverse()}screenToView(){return un.identity().scale(1/this.cameraScale).translate(-this.width/2,-this.height/2)}viewToScreen(){return this.screenToView().inverse()}worldToScreen(){const e=this.worldToView();return this.viewToScreen().scale(e.k).translate(e.x,e.y)}screenToWorld(){return this.worldToScreen().inverse()}screenWidth(){return this.width}screenHeight(){return this.height}moveBy(e,n){this.cameraPos.x+=e,this.cameraPos.y+=n}moveTo(e,n){this.cameraPos.x=e,this.cameraPos.y=n}resize(e,n){this.width=e,this.height=n}center(){return this.cameraPos}scale(){return this.cameraScale}scaleBy(e){this.cameraScale*=e}scaleTo(e){this.cameraScale=e}fit(e){const{x:n,y:r}=e.center;this.moveTo(n,r);const i=Math.min(this.width/e.width,this.height/e.height);this.scaleTo(i||1)}world(){const e=this.screenToWorld().apply(0,0),n=this.screenToWorld().apply(this.width,this.height);return new X(e.x,e.y,n.x,n.y)}viewBox(){const e=this.world();return`${e.xMin} ${e.yMin} ${e.width} ${e.height}`}}class ip{constructor(e){this.viewport=e}scaleMin=Number.MIN_VALUE;scaleMax=Number.MAX_VALUE;boundingBox=X.infinity();setViewport(e){this.viewport=e}setScaleExtent(e){return e.min!==void 0&&(this.scaleMin=e.min),e.max!==void 0&&(this.scaleMax=e.max),this}scaleExtent(){return{min:this.scaleMin,max:this.scaleMax}}setTranslationExtent(e){return e.xMin!==void 0&&(this.boundingBox.xMin=e.xMin),e.yMin!==void 0&&(this.boundingBox.yMin=e.yMin),e.xMax!==void 0&&(this.boundingBox.xMax=e.xMax),e.yMax!==void 0&&(this.boundingBox.yMax=e.yMax),this}translationExtent(){return this.boundingBox}limitScale(e){return Lt(this.scaleMin,this.scaleMax,e)}limitTranslation(e,n){return e=Lt(this.boundingBox.xMin,this.boundingBox.xMax,e),n=Lt(this.boundingBox.yMin,this.boundingBox.yMax,n),{x:e,y:n}}scaleBy(e){const n=this.limitScale(this.viewport.scale()*e);this.viewport.scaleTo(n)}scaleTo(e){const n=this.limitScale(e);this.viewport.scaleTo(n)}moveBy(e,n){const{x:r,y:i}=this.viewport.center(),o=this.limitTranslation(r+e,i+n);this.viewport.moveTo(o.x,o.y)}moveTo(e,n){const r=this.limitTranslation(e,n);this.viewport.moveTo(r.x,r.y)}}function Ar(t){return Object.prototype.toString.call(t)==="[object Date]"}function op(t){return t<.5?4*t*t*t:.5*Math.pow(2*t-2,3)+1}function kn(t,e){if(t===e||t!==t)return()=>t;const n=typeof t;if(n!==typeof e||Array.isArray(t)!==Array.isArray(e))throw new Error("Cannot interpolate values of different type");if(Array.isArray(t)){const r=e.map((i,o)=>kn(t[o],i));return i=>r.map(o=>o(i))}if(n==="object"){if(!t||!e)throw new Error("Object cannot be null");if(Ar(t)&&Ar(e)){t=t.getTime(),e=e.getTime();const o=e-t;return s=>new Date(t+s*o)}const r=Object.keys(e),i={};return r.forEach(o=>{i[o]=kn(t[o],e[o])}),o=>{const s={};return r.forEach(a=>{s[a]=i[a](o)}),s}}if(n==="number"){const r=e-t;return i=>t+i*r}throw new Error(`Cannot interpolate ${n} values`)}function sp(t,e={}){const n=ln(t);let r,i=t;function o(s,a){if(t==null)return n.set(t=s),Promise.resolve();i=s;let l=r,u=!1,{delay:h=0,duration:c=400,easing:f=Ao,interpolate:d=kn}=Ae(Ae({},e),a);if(c===0)return l&&(l.abort(),l=null),n.set(t=i),Promise.resolve();const g=Do()+h;let b;return r=$o(C=>{if(Cc?(n.set(t=s),!1):(n.set(t=b(f(S/c))),!0)}),r.promise}return{set:o,update:(s,a)=>o(s(i,t),a),subscribe:n.subscribe}}function ap(t){let e,n,r,i,o;return{c(){e=$("rect"),this.h()},l(s){e=V(s,"rect",{x:!0,y:!0,width:!0,height:!0,fill:!0,opacity:!0}),P(e).forEach(v),this.h()},h(){p(e,"x",n=t[0].xMin),p(e,"y",r=t[0].yMin),p(e,"width",i=t[0].width),p(e,"height",o=t[0].height),p(e,"fill","grey"),p(e,"opacity","0.2")},m(s,a){A(s,e,a)},p(s,[a]){a&1&&n!==(n=s[0].xMin)&&p(e,"x",n),a&1&&r!==(r=s[0].yMin)&&p(e,"y",r),a&1&&i!==(i=s[0].width)&&p(e,"width",i),a&1&&o!==(o=s[0].height)&&p(e,"height",o)},i:Y,o:Y,d(s){s&&v(e)}}}function lp(t,e,n){let r,{start:i}=e,{end:o}=e;return t.$$set=s=>{"start"in s&&n(1,i=s.start),"end"in s&&n(2,o=s.end)},t.$$.update=()=>{t.$$.dirty&6&&n(0,r=X.fromPoints(i,o))},[r,i,o]}class up extends ae{constructor(e){super(),le(this,e,lp,ap,se,{start:1,end:2})}}function hp(t){let e,n,r;return{c(){e=$("defs"),n=$("marker"),r=$("path"),this.h()},l(i){e=V(i,"defs",{});var o=P(e);n=V(o,"marker",{id:!0,viewBox:!0,refX:!0,refY:!0,markerUnits:!0,markerWidth:!0,markerHeight:!0,orient:!0});var s=P(n);r=V(s,"path",{d:!0,fill:!0,style:!0}),P(r).forEach(v),s.forEach(v),o.forEach(v),this.h()},h(){p(r,"d","M 0 0 L 10 5 L 0 10 L 4 5 z"),p(r,"fill","var(--gray-tertiary)"),Lo(r,"stroke-width","1"),p(n,"id","arrowhead"),p(n,"viewBox","0 0 10 10"),p(n,"refX","9"),p(n,"refY","5"),p(n,"markerUnits","strokeWidth"),p(n,"markerWidth","10"),p(n,"markerHeight","12"),p(n,"orient","auto")},m(i,o){A(i,e,o),D(e,n),D(n,r)},p:Y,d(i){i&&v(e)}}}function cp(t){let e;const n=t[1].default,r=Zr(n,t,t[2],null),i=r||hp();return{c(){i&&i.c()},l(o){i&&i.l(o)},m(o,s){i&&i.m(o,s),e=!0},p(o,s){r&&r.p&&(!e||s&4)&&Qr(r,n,o,o[2],e?ei(n,o[2],s,null):Jr(o[2]),null)},i(o){e||(I(i,o),e=!0)},o(o){B(i,o),e=!1},d(o){i&&i.d(o)}}}function fp(t){let e,n;return e=new Pn({props:{self:t[0],$$slots:{default:[cp]},$$scope:{ctx:t}}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,[i]){const o={};i&1&&(o.self=r[0]),i&4&&(o.$$scope={dirty:i,ctx:r}),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){B(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function dp(t,e,n){let{$$slots:r={},$$scope:i}=e,{self:o}=e;return t.$$set=s=>{"self"in s&&n(0,o=s.self),"$$scope"in s&&n(2,i=s.$$scope)},[o,r,i]}class pp extends ae{constructor(e){super(),le(this,e,dp,fp,se,{self:0})}}function Lr(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Rr(t,e,n){const r=t.slice();return r[34]=e[n][0],r[35]=e[n][1],r}function Br(t,e,n){const r=t.slice();return r[34]=e[n][0],r[40]=e[n][1].name,r[41]=e[n][1].boundingBox,r}function Dr(t,e){let n,r,i;function o(...s){return e[19](e[34],...s)}return r=new rp({props:{nodeId:e[34],name:e[40],boundingBox:e[41]}}),r.$on("dblclick",o),r.$on("nodeEnter",e[20]),r.$on("nodeLeave",e[21]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){A(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.nodeId=e[34]),a[0]&4&&(l.name=e[40]),a[0]&4&&(l.boundingBox=e[41]),r.$set(l)},i(s){i||(I(r.$$.fragment,s),i=!0)},o(s){B(r.$$.fragment,s),i=!1},d(s){s&&v(n),J(r,s)}}}function $r(t,e){let n,r,i;function o(...s){return e[22](e[34],...s)}return r=new Ln({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("click",o),r.$on("nodeEnter",e[23]),r.$on("nodeLeave",e[24]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){A(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(I(r.$$.fragment,s),i=!0)},o(s){B(r.$$.fragment,s),i=!1},d(s){s&&v(n),J(r,s)}}}function Vr(t,e){let n,r,i;function o(...s){return e[25](e[34],...s)}return r=new Ln({props:{self:e[35],decoration:e[1].get(e[34])}}),r.$on("dblclick",o),r.$on("nodeEnter",e[26]),r.$on("nodeLeave",e[27]),{key:t,first:null,c(){n=G(),Z(r.$$.fragment),this.h()},l(s){n=G(),oe(r.$$.fragment,s),this.h()},h(){this.first=n},m(s,a){A(s,n,a),Q(r,s,a),i=!0},p(s,a){e=s;const l={};a[0]&4&&(l.self=e[35]),a[0]&6&&(l.decoration=e[1].get(e[34])),r.$set(l)},i(s){i||(I(r.$$.fragment,s),i=!0)},o(s){B(r.$$.fragment,s),i=!1},d(s){s&&v(n),J(r,s)}}}function Fr(t){let e,n;return e=new up({props:{start:t[3].start,end:t[3].end}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&8&&(o.start=r[3].start),i[0]&8&&(o.end=r[3].end),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){B(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function gp(t){let e,n,r=[],i=new Map,o,s,a=[],l=new Map,u,h=[],c=new Map,f,d,g,b,C,S,y,_,m,w,k=ge([...t[2].expanded.entries()]);const T=N=>N[34];for(let N=0;NN[34];for(let N=0;NN[34];for(let N=0;N{F=null}),fe());const j={};x[0]&4&&(j.nodeLayouts=N[2].nodes),g.$set(j),(!_||x[0]&64&&b!==(b=N[6].toString()))&&p(n,"transform",b),(!_||x[0]&1&&C!==(C=N[0].screenWidth()))&&p(e,"width",C),(!_||x[0]&1&&S!==(S=N[0].screenHeight()))&&p(e,"height",S),(!_||x[0]&32&&y!==(y=`cursor: ${N[5]}`))&&p(e,"style",y)},i(N){if(!_){for(let x=0;xM.encloses(te.boundingBox())).map(([pe,te])=>pe);_("brush",{nodes:R});break}}n(3,d={kind:"initial"})}function C(M){const{x:R,y:pe}=f(M),te=l.screenToWorld().apply(R,pe);switch(d.kind){case"initial":return;case"panning":{const Oe=d.start.x-te.x,Ee=d.start.y-te.y;h.moveBy(Oe,Ee),n(0,l);break}case"brushing":{n(3,d.end=te,d);break}}}function S(M){M.preventDefault();const R=-M.deltaY*(M.deltaMode===1?.05:M.deltaMode?1:.002),pe=l.scale();if(h.scaleBy(Math.pow(2,R)),pe===l.scale())return;const te=l.center(),{x:Oe,y:Ee}=f(M),De=l.screenToWorld().apply(Oe,Ee);h.moveBy(-(te.x-De.x)*R,-(te.y-De.y)*R),n(0,l)}async function y(M,R){const pe=X.fromCenterAndDimension(M.center,Math.max(l.screenWidth(),M.width),Math.max(l.screenHeight(),M.height)),{x:te,y:Oe}=pe.center,Ee=Math.min(l.screenWidth()/M.width,l.screenHeight()/M.height)||1;if(R!==void 0&&R){const De=sp({...l.center(),k:l.scale()},{duration:1e3,easing:op});De.subscribe(Ie=>{h.moveTo(Ie.x,Ie.y),h.scaleTo(Ie.k),n(0,l)}),await De.set({x:te,y:Oe,k:Ee})}else h.moveTo(te,Oe),h.scaleTo(Ee),n(0,l)}const _=nt();function m(M,R){M.stopPropagation(),_("collapse",{nodeId:R})}function w(M,R){M.stopPropagation(),_("expand",{nodeId:R})}function k(M,R){M.stopPropagation(),_("nodeClick",{nodeId:R,original:M})}function T(M){d.kind==="initial"&&M.shiftKey&&u&&n(3,d={kind:"awaitBrushing"})}function L(){d.kind==="awaitBrushing"&&n(3,d={kind:"initial"})}const W=(M,R)=>{m(R,M)};function q(M){ue.call(this,t,M)}function K(M){ue.call(this,t,M)}const F=(M,R)=>{k(R,M)};function N(M){ue.call(this,t,M)}function x(M){ue.call(this,t,M)}const O=(M,R)=>{w(R,M)};function j(M){ue.call(this,t,M)}function He(M){ue.call(this,t,M)}function _e(M){ue.call(this,t,M)}function Xe(M){ue.call(this,t,M)}function xe(M){qe[M?"unshift":"push"](()=>{c=M,n(4,c)})}return t.$$set=M=>{"decorations"in M&&n(1,s=M.decorations),"drawable"in M&&n(2,a=M.drawable),"viewport"in M&&n(0,l=M.viewport),"multiSelection"in M&&n(16,u=M.multiSelection)},t.$$.update=()=>{t.$$.dirty[0]&1&&n(18,r=l.world()),t.$$.dirty[0]&262149&&h.setScaleExtent({min:Math.min(l.screenWidth()/a.boundingBox.width,l.screenHeight()/a.boundingBox.height)*.5,max:1}).setTranslationExtent(a.boundingBox.padded({l:r.width*.4,r:r.width*.4,t:r.height*.4,b:r.height*.4})),t.$$.dirty[0]&1&&n(6,i=l.worldToScreen().toString()),t.$$.dirty[0]&8&&n(5,o=mp(d))},[l,s,a,d,c,o,i,g,b,C,S,m,w,k,T,L,u,y,r,W,q,K,F,N,x,O,j,He,_e,Xe,xe]}class wp extends ae{constructor(e){super(),le(this,e,_p,gp,se,{decorations:1,drawable:2,viewport:0,multiSelection:16,setFocus:17},null,[-1,-1])}get setFocus(){return this.$$.ctx[17]}}function bp(t){let e,n,r,i,o,s,a,l,u,h,c,f,d,g,b,C,S;return{c(){e=ne("div"),n=ne("canvas"),r=Te(),i=$("svg"),o=$("rect"),c=$("rect"),this.h()},l(y){e=re(y,"DIV",{class:!0});var _=P(e);n=re(_,"CANVAS",{class:!0}),P(n).forEach(v),r=Ce(_),i=V(_,"svg",{role:!0,width:!0,height:!0,class:!0});var m=P(i);o=V(m,"rect",{fill:!0,x:!0,y:!0,width:!0,height:!0,opacity:!0,style:!0}),P(o).forEach(v),c=V(m,"rect",{fill:!0,stroke:!0,x:!0,y:!0,width:!0,height:!0}),P(c).forEach(v),m.forEach(v),_.forEach(v),this.h()},h(){p(n,"class","svelte-133ndzu"),p(o,"fill","rgb(0, 122, 255)"),p(o,"x",s=t[6].x),p(o,"y",a=t[6].y),p(o,"width",l=t[6].w),p(o,"height",u=t[6].h),p(o,"opacity","0.1"),p(o,"style",h=t[5]?"cursor: grabbing":"cursor: grab"),p(c,"fill","none"),p(c,"stroke","rgb(0, 122, 255)"),p(c,"x",f=t[6].x),p(c,"y",d=t[6].y),p(c,"width",g=t[6].w),p(c,"height",b=t[6].h),p(i,"role","navigation"),p(i,"width",t[0]),p(i,"height",t[1]),p(i,"class","svelte-133ndzu"),p(e,"class","container svelte-133ndzu")},m(y,_){A(y,e,_),D(e,n),t[11](n),D(e,r),D(e,i),D(i,o),t[12](o),D(i,c),t[13](i),C||(S=H(i,"mousedown",t[7]),C=!0)},p(y,[_]){_&64&&s!==(s=y[6].x)&&p(o,"x",s),_&64&&a!==(a=y[6].y)&&p(o,"y",a),_&64&&l!==(l=y[6].w)&&p(o,"width",l),_&64&&u!==(u=y[6].h)&&p(o,"height",u),_&32&&h!==(h=y[5]?"cursor: grabbing":"cursor: grab")&&p(o,"style",h),_&64&&f!==(f=y[6].x)&&p(c,"x",f),_&64&&d!==(d=y[6].y)&&p(c,"y",d),_&64&&g!==(g=y[6].w)&&p(c,"width",g),_&64&&b!==(b=y[6].h)&&p(c,"height",b),_&1&&p(i,"width",y[0]),_&2&&p(i,"height",y[1])},i:Y,o:Y,d(y){y&&v(e),t[11](null),t[12](null),t[13](null),C=!1,S()}}}function yp(t,e,n){let r,i;const o=nt();function s(w){const k=r.worldToScreen().apply(w.xMin,w.yMin),T=r.worldToScreen().apply(w.xMax,w.yMax);return{x:k.x,y:k.y,w:T.x-k.x,h:T.y-k.y}}let{drawable:a}=e,{width:l}=e,{height:u}=e,{worldExtent:h}=e,c,f;function d(w){let k=f.createSVGPoint();k.x=w.clientX,k.y=w.clientY,k=k.matrixTransform(f.getScreenCTM()?.inverse());const T=r.screenToWorld().apply(k.x,k.y);o("viewportCenterDidChange",{center:T})}let g;function b(w){const k=r.screenToWorld().apply(0,0),T=r.screenToWorld().apply(w.dx,w.dy),L=h.center;L.x+=T.x-k.x,L.y+=T.y-k.y,o("viewportCenterDidChange",{center:L})}let C=!1;const S=Ca().on("drag",b).on("start",()=>n(5,C=!0)).on("end",()=>n(5,C=!1));ii(()=>{ct(g).call(S)});function y(w){qe[w?"unshift":"push"](()=>{c=w,n(2,c),n(0,l),n(1,u),n(8,a)})}function _(w){qe[w?"unshift":"push"](()=>{g=w,n(4,g)})}function m(w){qe[w?"unshift":"push"](()=>{f=w,n(3,f)})}return t.$$set=w=>{"drawable"in w&&n(8,a=w.drawable),"width"in w&&n(0,l=w.width),"height"in w&&n(1,u=w.height),"worldExtent"in w&&n(9,h=w.worldExtent)},t.$$.update=()=>{if(t.$$.dirty&3&&n(10,r=new Fn(l,u)),t.$$.dirty&1280&&r.fit(a.boundingBox.padded(2)),t.$$.dirty&512&&n(6,i=s(h)),t.$$.dirty&263&&c){let w=c.getContext("2d");n(2,c.width=l,c),n(2,c.height=u,c),w.fillStyle="white",w.fillRect(0,0,l,u),w.lineWidth=.5;for(const{boundingBox:k}of a.expanded.values()){const T=s(k);w.fillStyle="rgb(250, 250, 250)",w.fillRect(T.x,T.y,T.w,T.h),w.strokeStyle="rgb(134, 134, 139)",w.strokeRect(T.x,T.y,T.w,T.h)}for(const k of a.nodes.values()){const T=s(k.boundingBox());w.fillStyle="rgb(134, 134, 139)",w.fillRect(T.x,T.y,T.w,T.h)}for(const k of a.collapsed.values()){const T=s(k.boundingBox());w.fillStyle="rgb(134, 134, 139)",w.fillRect(T.x,T.y,T.w,T.h)}}},[l,u,c,f,g,C,i,d,a,h,r,y,_,m]}class vp extends ae{constructor(e){super(),le(this,e,yp,bp,se,{drawable:8,width:0,height:1,worldExtent:9})}}function Wr(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function xp(t){let e,n;return{c(){e=ne("span"),n=Le(t[0]),this.h()},l(r){e=re(r,"SPAN",{class:!0});var i=P(e);n=Re(i,t[0]),i.forEach(v),this.h()},h(){p(e,"class","svelte-122vmdc")},m(r,i){A(r,e,i),D(e,n)},p(r,i){i&1&&wt(n,r[0])},d(r){r&&v(e)}}}function Ep(t){let e,n,r,i,o=ge(t[3]),s=[];for(let h=0;h{"defaultText"in l&&n(0,i=l.defaultText),"network"in l&&n(4,o=l.network),"drawable"in l&&n(1,s=l.drawable),"currentNode"in l&&n(2,a=l.currentNode)},t.$$.update=()=>{t.$$.dirty&20&&n(3,r=a?[a,...o.parents(a)].reverse().map(l=>o.node(l).humanReadable()||l):[])},[i,s,a,r,o]}class Cp extends ae{constructor(e){super(),le(this,e,Tp,Np,se,{defaultText:0,network:4,drawable:1,currentNode:2})}}function jr(t){let e,n,r;function i(s){t[34](s)}let o={decorations:t[8],drawable:t[15],multiSelection:t[7]};return t[13]!==void 0&&(o.viewport=t[13]),e=new wp({props:o}),t[33](e),qe.push(()=>Po(e,"viewport",i)),e.$on("expand",t[18]),e.$on("collapse",t[19]),e.$on("nodeEnter",t[20]),e.$on("nodeLeave",t[21]),e.$on("nodeClick",t[22]),e.$on("brush",t[25]),{c(){Z(e.$$.fragment)},l(s){oe(e.$$.fragment,s)},m(s,a){Q(e,s,a),r=!0},p(s,a){const l={};a[0]&256&&(l.decorations=s[8]),a[0]&32768&&(l.drawable=s[15]),a[0]&128&&(l.multiSelection=s[7]),!n&&a[0]&8192&&(n=!0,l.viewport=s[13],Bo(()=>n=!1)),e.$set(l)},i(s){r||(I(e.$$.fragment,s),r=!0)},o(s){B(e.$$.fragment,s),r=!1},d(s){t[33](null),J(e,s)}}}function Yr(t){let e,n,r,i,o,s=t[3]&&Hr(t),a=t[17]&&Xr(t),l=t[4]&&qr(t);return{c(){e=ne("div"),s&&s.c(),n=Te(),r=ne("div"),a&&a.c(),i=Te(),l&&l.c(),this.h()},l(u){e=re(u,"DIV",{class:!0});var h=P(e);s&&s.l(h),n=Ce(h),r=re(h,"DIV",{class:!0});var c=P(r);a&&a.l(c),i=Ce(c),l&&l.l(c),c.forEach(v),h.forEach(v),this.h()},h(){p(r,"class","myc-navigation-controls svelte-15hd81r"),p(e,"class","myc-navigation svelte-15hd81r")},m(u,h){A(u,e,h),s&&s.m(e,null),D(e,n),D(e,r),a&&a.m(r,null),D(r,i),l&&l.m(r,null),o=!0},p(u,h){u[3]?s?(s.p(u,h),h[0]&8&&I(s,1)):(s=Hr(u),s.c(),I(s,1),s.m(e,n)):s&&(ce(),B(s,1,1,()=>{s=null}),fe()),u[17]?a?a.p(u,h):(a=Xr(u),a.c(),a.m(r,i)):a&&(a.d(1),a=null),u[4]?l?l.p(u,h):(l=qr(u),l.c(),l.m(r,null)):l&&(l.d(1),l=null)},i(u){o||(I(s),o=!0)},o(u){B(s),o=!1},d(u){u&&v(e),s&&s.d(),a&&a.d(),l&&l.d()}}}function Hr(t){let e,n;return e=new Cp({props:{network:t[0],currentNode:t[16],drawable:t[15]}}),{c(){Z(e.$$.fragment)},l(r){oe(e.$$.fragment,r)},m(r,i){Q(e,r,i),n=!0},p(r,i){const o={};i[0]&1&&(o.network=r[0]),i[0]&65536&&(o.currentNode=r[16]),i[0]&32768&&(o.drawable=r[15]),e.$set(o)},i(r){n||(I(e.$$.fragment,r),n=!0)},o(r){B(e.$$.fragment,r),n=!1},d(r){J(e,r)}}}function Xr(t){let e,n,r="Collapse All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=P(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-7o3ux6"&&(n.textContent=r),a.forEach(v),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){A(s,e,a),D(e,n),i||(o=H(n,"click",t[35]),i=!0)},p:Y,d(s){s&&v(e),i=!1,o()}}}function qr(t){let e,n,r="Show All",i,o;return{c(){e=ne("div"),n=ne("button"),n.textContent=r,this.h()},l(s){e=re(s,"DIV",{});var a=P(e);n=re(a,"BUTTON",{class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-z7thqi"&&(n.textContent=r),a.forEach(v),this.h()},h(){p(n,"class","resetView svelte-15hd81r")},m(s,a){A(s,e,a),D(e,n),i||(o=H(n,"click",t[36]),i=!0)},p:Y,d(s){s&&v(e),i=!1,o()}}}function Ur(t){let e,n,r="Mycelium";return{c(){e=Le("Powered by "),n=ne("a"),n.textContent=r,this.h()},l(i){e=Re(i,"Powered by "),n=re(i,"A",{href:!0,target:!0,class:!0,"data-svelte-h":!0}),rt(n)!=="svelte-j6ykrk"&&(n.textContent=r),this.h()},h(){p(n,"href","https://apple.github.io/ml-mycelium"),p(n,"target","_blank"),p(n,"class","svelte-15hd81r")},m(i,o){A(i,e,o),A(i,n,o)},d(i){i&&(v(e),v(n))}}}function Kr(t){let e,n,r;return n=new vp({props:{width:t[1]*Ct,height:t[2]*Ct,worldExtent:t[13].world(),drawable:t[15]}}),n.$on("viewportCenterDidChange",t[24]),{c(){e=ne("div"),Z(n.$$.fragment),this.h()},l(i){e=re(i,"DIV",{class:!0});var o=P(e);oe(n.$$.fragment,o),o.forEach(v),this.h()},h(){p(e,"class","myc-minimap svelte-15hd81r")},m(i,o){A(i,e,o),Q(n,e,null),r=!0},p(i,o){const s={};o[0]&2&&(s.width=i[1]*Ct),o[0]&4&&(s.height=i[2]*Ct),o[0]&8192&&(s.worldExtent=i[13].world()),o[0]&32768&&(s.drawable=i[15]),n.$set(s)},i(i){r||(I(n.$$.fragment,i),r=!0)},o(i){B(n.$$.fragment,i),r=!1},d(i){i&&v(e),J(n)}}}function Sp(t){let e,n=t[0],r,i,o,s,a,l,u,h=jr(t),c=(t[3]||t[4])&&Yr(t),f=t[5]&&Ur(),d=t[6]&&Kr(t);return{c(){e=ne("div"),h.c(),r=Te(),c&&c.c(),i=Te(),o=ne("div"),f&&f.c(),s=Te(),d&&d.c(),this.h()},l(g){e=re(g,"DIV",{class:!0});var b=P(e);h.l(b),r=Ce(b),c&&c.l(b),i=Ce(b),o=re(b,"DIV",{class:!0});var C=P(o);f&&f.l(C),C.forEach(v),s=Ce(b),d&&d.l(b),b.forEach(v),this.h()},h(){p(o,"class","myc-overlay svelte-15hd81r"),p(e,"class","myc-container svelte-15hd81r")},m(g,b){A(g,e,b),h.m(e,null),D(e,r),c&&c.m(e,null),D(e,i),D(e,o),f&&f.m(o,null),D(e,s),d&&d.m(e,null),a=!0,l||(u=H(window,"keydown",t[23]),l=!0)},p(g,b){b[0]&1&&se(n,n=g[0])?(ce(),B(h,1,1,Y),fe(),h=jr(g),h.c(),I(h,1),h.m(e,r)):h.p(g,b),g[3]||g[4]?c?(c.p(g,b),b[0]&24&&I(c,1)):(c=Yr(g),c.c(),I(c,1),c.m(e,i)):c&&(ce(),B(c,1,1,()=>{c=null}),fe()),g[5]?f||(f=Ur(),f.c(),f.m(o,null)):f&&(f.d(1),f=null),g[6]?d?(d.p(g,b),b[0]&64&&I(d,1)):(d=Kr(g),d.c(),I(d,1),d.m(e,null)):d&&(ce(),B(d,1,1,()=>{d=null}),fe())},i(g){a||(I(h),I(c),I(d),a=!0)},o(g){B(h),B(c),B(d),a=!1},d(g){g&&v(e),h.d(g),c&&c.d(),f&&f.d(),d&&d.d(),l=!1,u()}}}const Ct=.2;function Op(t,e,n){let r,i,o,s,a=Y,l=()=>(a(),a=Wn(L,E=>n(37,s=E)),L),u,h=Y,c=()=>(h(),h=Wn(W,E=>n(38,u=E)),W);t.$$.on_destroy.push(()=>a()),t.$$.on_destroy.push(()=>h());let{network:f}=e,{width:d}=e,{height:g}=e,{showBreadcrumbs:b}=e,{showResetView:C}=e,{watermark:S}=e,{minimap:y}=e,{autoResize:_}=e,{multiSelection:m}=e,{decorations:w=new Map}=e,{collapsed:k=new Set(f.modules())}=e,{layoutProvider:T}=e;const L=ln(new Map);l();const W=ln(new Map);c(),Ro(An,{selections:L,tooltips:W});const q=new Map,K=nt();function F(E,z){N.resize(E,z),n(13,N)}let N=new Fn(d,g);ii(async()=>{await _e()});let x=[],O;function j(E){const{yMin:z,yMax:U}=E,ie=20,$e=b?25/(N.screenHeight()||1)*(U-z):0;return E.padded({l:ie,r:ie,t:ie+$e,b:ie})}async function He(E,z){E=Array.isArray(E)?E:[E];let U=X.infinity();for(const ie of E){const $e=i.nodes.get(ie)?.boundingBox();$e&&(U=U.union($e))}U.isEmpty()||await O.setFocus(j(U),z)}async function _e(E){await O.setFocus(j(i.boundingBox),E)}async function Xe(E,z){!m&&E.length>1&&(console.warn("Received multiple selections but `multiSelection` config was set to `false`."),E=[E[0]]);const U={expand:!0,collapseOthers:{threshold:1e3},...z},{expand:ie,collapse:$e}=Wd(f,E,k,U);let Kt=!1;U.expand&&(ie.size>1&&U.expand==="single"||ie.size>0&&(ie.forEach(Ve=>k.delete(Ve)),Kt=!0)),$e.size>0&&U.collapseOthers!==!1&&(U.collapseOthers===!0||zd(f,k)>U.collapseOthers.threshold)&&($e.forEach(Ve=>k.add(Ve)),Kt=!0),Kt?(n(26,k),await xt(),Zt(L,s=new Map(E.map(Ve=>[Ve,new Set])),s),await _e(!0)):Zt(L,s=new Map(E.map(Ve=>[Ve,new Set])),s)}async function xe(E){const z=s;return Zt(L,s=E,s),await xt(),z}async function M(){return await xe(new Map)}async function R(){n(26,k=new Set(f.modules())),await _e(!0)}async function pe(E){Ee(E),k.delete(E.detail.nodeId),n(26,k),await xt(),await _e(!0)}async function te(E){Ee(E),k.add(E.detail.nodeId),n(26,k),await xt(),await _e(!0)}function Oe(E){x[x.length-1]!==E.detail.nodeId&&(x.push(E.detail.nodeId),n(32,x));const z=E.detail.nodeId,U=i.nodes.get(z)?.options.tooltip;if(U){const ie=u.get(z);ie===void 0?q.set(z,Ud(W,z,U().build())):ie.state!=="active"&&ie.state!=="pinned"&&xo(W,z)}}function Ee(E){x.pop(),n(32,x);const z=E.detail.nodeId;clearTimeout(q.get(z)),Eo(W,z)}async function De(E){i.nodes.get(E.detail.nodeId)?.options.selectable&&(m&&E.detail.original.metaKey?Ie(await xe(new Map([...s.entries(),[E.detail.nodeId,new Set]]))):Ie(await xe(new Map([[E.detail.nodeId,new Set]]))))}function Ie(E){const z=([U,ie])=>({primaryNodeId:U,secondaryIds:[...ie.values()]});K("selectionDidChange",{selections:[...s.entries()].map(z),previous:[...E.entries()].map(z)})}async function Mo(E){E.key==="Escape"&&Ie(await M())}function No(E){const{x:z,y:U}=E.detail.center;N.moveTo(z,U),n(13,N)}async function To(E){Ie(await xe(new Map(E.detail.nodes.map(z=>[z,new Set]))))}function Co(E){qe[E?"unshift":"push"](()=>{O=E,n(14,O)})}function So(E){N=E,n(13,N)}const Oo=()=>R(),Io=async()=>{await _e(!0)};return t.$$set=E=>{"network"in E&&n(0,f=E.network),"width"in E&&n(1,d=E.width),"height"in E&&n(2,g=E.height),"showBreadcrumbs"in E&&n(3,b=E.showBreadcrumbs),"showResetView"in E&&n(4,C=E.showResetView),"watermark"in E&&n(5,S=E.watermark),"minimap"in E&&n(6,y=E.minimap),"autoResize"in E&&n(27,_=E.autoResize),"multiSelection"in E&&n(7,m=E.multiSelection),"decorations"in E&&n(8,w=E.decorations),"collapsed"in E&&n(26,k=E.collapsed),"layoutProvider"in E&&n(28,T=E.layoutProvider)},t.$$.update=()=>{t.$$.dirty[0]&67108865&&n(17,r=k.size{o.$set({width:n.clientWidth,height:n.clientHeight})}).observe(n),new ko(o,i)}onSelectionDidChange(e){this.app.$on("selectionDidChange",n=>{e(n.detail)})}async setSelection(e,n){await this.app.setSelections([e],n)}async setSelections(e,n){await this.app.setSelections(e,n)}async collapseAll(){await this.app.collapseAll()}async clearSelections(){await this.app.clearSelections()}async setFocus(e,n){await this.app.setFocus(e,n)}async resetFocus(e){await this.app.resetFocus(e)}setDecoration(e,n){this.decorations.set(e,n),this.app.$set({decorations:this.decorations})}removeDecoration(e){this.decorations.delete(e),this.app.$set({decorations:this.decorations})}clearDecorations(){this.decorations.clear(),this.app.$set({decorations:this.decorations})}setNetwork(e){this.app.$set({network:e,collapsed:new Set(e.modules())})}getOptions(){return this.options}}export{mu as H,yo as N,Pu as T,_u as V,zp as a,ko as b,be as c,Gp as d,Dp as e,Yu as g}; diff --git a/_app/immutable/entry/app.D-TucNIE.js b/_app/immutable/entry/app.B4wslMVP.js similarity index 85% rename from _app/immutable/entry/app.D-TucNIE.js rename to _app/immutable/entry/app.B4wslMVP.js index 658a0ba..2a3966b 100644 --- a/_app/immutable/entry/app.D-TucNIE.js +++ b/_app/immutable/entry/app.B4wslMVP.js @@ -1,2 +1,2 @@ -const __vite__fileDeps=["../nodes/0.CEPhg4Kl.js","../chunks/scheduler.BZf3Antt.js","../chunks/index.C7bWdOrd.js","../nodes/1.C_prkdRU.js","../chunks/entry.WWhhMuPn.js","../chunks/index.DrtbdpeK.js","../chunks/paths.BILvqvyt.js","../nodes/2.DFg_KNub.js","../chunks/DragDrop.DXJnqdlr.js","../chunks/stores.BEpXIDt_.js","../assets/DragDrop.CUKWqqeK.css","../nodes/3.BvfQdEdE.js","../nodes/4.B0wbLcuC.js","../chunks/index.Cv9_d-Ac.js","../chunks/spread.CUGnlXHs.js","../nodes/5.DAynCHZG.js","../chunks/dot.BpqtT9be.js","../chunks/viewer.VKJlf1_4.js","../assets/viewer.BlCgbFGn.css","../chunks/Viewer.CUaabvoY.js","../nodes/6.2lZNt-No.js","../chunks/index.Dkpp2DVH.js","../nodes/7.DMh6GWRq.js","../nodes/8.CVr-EtqJ.js","../nodes/9.xqSS8nyK.js","../assets/prism-one-light.BRPNifQ8.css","../nodes/10.CSQPrr57.js","../nodes/11.BFq0GX80.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{s as j,a as z,B as u,d as F,i as v,f as h,M as G,q as H,e as J,c as K,b as Q,h as I,L as P,t as X,v as Y,w as Z,r as O,N as w,O as x}from"../chunks/scheduler.BZf3Antt.js";import{S as ee,i as te,b as m,e as R,t as p,g as L,c as g,a as D,m as b,d as k}from"../chunks/index.C7bWdOrd.js";const ne="modulepreload",ie=function(f,e){return new URL(f,e).href},T={},$=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),s=t?.nonce||t?.getAttribute("nonce");r=Promise.all(n.map(i=>{if(i=ie(i,o),i in T)return;T[i]=!0;const _=i.endsWith(".css"),c=_?'[rel="stylesheet"]':"";if(!!o)for(let N=a.length-1;N>=0;N--){const A=a[N];if(A.href===i&&(!_||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const d=document.createElement("link");if(d.rel=_?"stylesheet":ne,_||(d.as="script",d.crossOrigin=""),d.href=i,s&&d.setAttribute("nonce",s),document.head.appendChild(d),_)return new Promise((N,A)=>{d.addEventListener("load",N),d.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>e()).catch(a=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=a,window.dispatchEvent(t),!t.defaultPrevented)throw a})},we={};function re(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],form:t[2]}}}return r&&(e=w(r,a(f)),f[18](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[18](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[18](null),e&&k(e,t)}}}function se(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[17](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[17](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&524407&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[17](null),e&&k(e,t)}}}function oe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],form:t[2]}}}return r&&(e=w(r,a(f)),f[16](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[16](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[16](null),e&&k(e,t)}}}function fe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[15](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[15](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&524391&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[15](null),e&&k(e,t)}}}function le(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],form:t[2]}}}return r&&(e=w(r,a(f)),f[14](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[14](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[14](null),e&&k(e,t)}}}function ae(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],$$slots:{default:[_e]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[13](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[13](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&524359&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[13](null),e&&k(e,t)}}}function _e(f){let e,n,o;var r=f[1][3];function a(t,s){return{props:{data:t[6],form:t[2]}}}return r&&(e=w(r,a(f)),f[12](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][3])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[12](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&64&&(i.data=t[6]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[12](null),e&&k(e,t)}}}function ce(f){let e,n,o,r;const a=[ae,le],t=[];function s(i,_){return i[1][3]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function ue(f){let e,n,o,r;const a=[fe,oe],t=[];function s(i,_){return i[1][2]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function V(f){let e,n=f[8]&&y(f);return{c(){e=J("div"),n&&n.c(),this.h()},l(o){e=K(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Q(e);n&&n.l(r),r.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,r){o[8]?n?n.p(o,r):(n=y(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&h(e),n&&n.d()}}}function y(f){let e;return{c(){e=X(f[9])},l(n){e=Y(n,f[9])},m(n,o){v(n,e,o)},p(n,o){o&512&&Z(e,n[9])},d(n){n&&h(e)}}}function me(f){let e,n,o,r,a;const t=[se,re],s=[];function i(c,E){return c[1][1]?0:1}e=i(f),n=s[e]=t[e](f);let _=f[7]&&V(f);return{c(){n.c(),o=z(),_&&_.c(),r=u()},l(c){n.l(c),o=F(c),_&&_.l(c),r=u()},m(c,E){s[e].m(c,E),v(c,o,E),_&&_.m(c,E),v(c,r,E),a=!0},p(c,[E]){let d=e;e=i(c),e===d?s[e].p(c,E):(L(),m(s[d],1,1,()=>{s[d]=null}),R(),n=s[e],n?n.p(c,E):(n=s[e]=t[e](c),n.c()),p(n,1),n.m(o.parentNode,o)),c[7]?_?_.p(c,E):(_=V(c),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null)},i(c){a||(p(n),a=!0)},o(c){m(n),a=!1},d(c){c&&(h(o),h(r)),s[e].d(c),_&&_.d(c)}}}function pe(f,e,n){let{stores:o}=e,{page:r}=e,{constructors:a}=e,{components:t=[]}=e,{form:s}=e,{data_0:i=null}=e,{data_1:_=null}=e,{data_2:c=null}=e,{data_3:E=null}=e;G(o.page.notify);let d=!1,N=!1,A=null;H(()=>{const l=o.page.subscribe(()=>{d&&(n(8,N=!0),x().then(()=>{n(9,A=document.title||"untitled page")}))});return n(7,d=!0),l});function S(l){O[l?"unshift":"push"](()=>{t[3]=l,n(0,t)})}function q(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function B(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function C(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function M(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function U(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function W(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return f.$$set=l=>{"stores"in l&&n(10,o=l.stores),"page"in l&&n(11,r=l.page),"constructors"in l&&n(1,a=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,s=l.form),"data_0"in l&&n(3,i=l.data_0),"data_1"in l&&n(4,_=l.data_1),"data_2"in l&&n(5,c=l.data_2),"data_3"in l&&n(6,E=l.data_3)},f.$$.update=()=>{f.$$.dirty&3072&&o.page.set(r)},[t,a,s,i,_,c,E,d,N,A,o,r,S,q,B,C,M,U,W]}class ge extends ee{constructor(e){super(),te(this,e,pe,me,j,{stores:10,page:11,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6})}}const be=[()=>$(()=>import("../nodes/0.CEPhg4Kl.js"),__vite__mapDeps([0,1,2]),import.meta.url),()=>$(()=>import("../nodes/1.C_prkdRU.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url),()=>$(()=>import("../nodes/2.DFg_KNub.js"),__vite__mapDeps([7,1,2,8,6,4,5,9,10]),import.meta.url),()=>$(()=>import("../nodes/3.BvfQdEdE.js"),__vite__mapDeps([11,1,2]),import.meta.url),()=>$(()=>import("../nodes/4.B0wbLcuC.js"),__vite__mapDeps([12,1,2,8,6,4,5,9,10,13,14]),import.meta.url),()=>$(()=>import("../nodes/5.DAynCHZG.js"),__vite__mapDeps([15,6,16,17,2,1,14,5,18,19]),import.meta.url),()=>$(()=>import("../nodes/6.2lZNt-No.js"),__vite__mapDeps([20,21,17,2,1,14,5,18,6,19]),import.meta.url),()=>$(()=>import("../nodes/7.DMh6GWRq.js"),__vite__mapDeps([22,1,2,19,17,14,5,18]),import.meta.url),()=>$(()=>import("../nodes/8.CVr-EtqJ.js"),__vite__mapDeps([23,9,5,1,2,19,17,14,18,16,21]),import.meta.url),()=>$(()=>import("../nodes/9.xqSS8nyK.js"),__vite__mapDeps([24,1,2,6,13,14,17,5,18,25]),import.meta.url),()=>$(()=>import("../nodes/10.CSQPrr57.js"),__vite__mapDeps([26,1,2,6,13,14]),import.meta.url),()=>$(()=>import("../nodes/11.BFq0GX80.js"),__vite__mapDeps([27,1,2,17,14,5,18,25]),import.meta.url)],ke=[],Ee={"/(landing)":[9,[4]],"/(app)/example/dot":[5,[2,3]],"/(app)/example/lenet":[6,[2,3]],"/(app)/example/simple":[7,[2,3]],"/(landing)/gallery":[10,[4]],"/(landing)/getting-started":[11,[4]],"/(app)/viewer":[8,[2]]},ve={handleError:({error:f})=>{console.error(f)},reroute:()=>{}};export{Ee as dictionary,ve as hooks,we as matchers,be as nodes,ge as root,ke as server_loads}; +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.CEPhg4Kl.js","../chunks/scheduler.BZf3Antt.js","../chunks/index.C7bWdOrd.js","../nodes/1.DCDm4DEM.js","../chunks/entry.BfJ0ncBH.js","../chunks/index.DrtbdpeK.js","../chunks/paths.CFq_Q8H9.js","../nodes/2.CdDxww_b.js","../chunks/DragDrop.BqVnE3R5.js","../chunks/stores.BEpXIDt_.js","../assets/DragDrop.CUKWqqeK.css","../nodes/3.BvfQdEdE.js","../nodes/4.B8JFxwEt.js","../chunks/index.Cv9_d-Ac.js","../chunks/spread.CUGnlXHs.js","../nodes/5.SLxI-m7B.js","../chunks/dot.Bgkvpxeo.js","../chunks/viewer.BYFc8Cdc.js","../assets/viewer.BlCgbFGn.css","../chunks/Viewer.C5t0eI9O.js","../nodes/6.Byvfz3Eu.js","../chunks/index.BeFZgILa.js","../nodes/7.7oBUziAX.js","../nodes/8.Cr5xcWYm.js","../nodes/9.CgXEf7WY.js","../assets/prism-one-light.BRPNifQ8.css","../nodes/10.Cld4Kjku.js","../nodes/11.0B2c2elE.js"])))=>i.map(i=>d[i]); +import{s as j,a as z,B as u,d as F,i as v,f as h,M as G,q as H,e as J,c as K,b as Q,h as I,L as P,t as X,v as Y,w as Z,r as O,N as w,O as x}from"../chunks/scheduler.BZf3Antt.js";import{S as ee,i as te,b as m,e as R,t as p,g as L,c as g,a as D,m as b,d as k}from"../chunks/index.C7bWdOrd.js";const ne="modulepreload",ie=function(f,e){return new URL(f,e).href},T={},$=function(e,n,o){let r=Promise.resolve();if(n&&n.length>0){const a=document.getElementsByTagName("link"),t=document.querySelector("meta[property=csp-nonce]"),s=t?.nonce||t?.getAttribute("nonce");r=Promise.all(n.map(i=>{if(i=ie(i,o),i in T)return;T[i]=!0;const _=i.endsWith(".css"),c=_?'[rel="stylesheet"]':"";if(!!o)for(let N=a.length-1;N>=0;N--){const A=a[N];if(A.href===i&&(!_||A.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${c}`))return;const d=document.createElement("link");if(d.rel=_?"stylesheet":ne,_||(d.as="script"),d.crossOrigin="",d.href=i,s&&d.setAttribute("nonce",s),document.head.appendChild(d),_)return new Promise((N,A)=>{d.addEventListener("load",N),d.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${i}`)))})}))}return r.then(()=>e()).catch(a=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=a,window.dispatchEvent(t),!t.defaultPrevented)throw a})},we={};function re(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],form:t[2]}}}return r&&(e=w(r,a(f)),f[18](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[18](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[18](null),e&&k(e,t)}}}function se(f){let e,n,o;var r=f[1][0];function a(t,s){return{props:{data:t[3],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[17](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][0])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[17](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&8&&(i.data=t[3]),s&524407&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[17](null),e&&k(e,t)}}}function oe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],form:t[2]}}}return r&&(e=w(r,a(f)),f[16](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[16](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[16](null),e&&k(e,t)}}}function fe(f){let e,n,o;var r=f[1][1];function a(t,s){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[15](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][1])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[15](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&16&&(i.data=t[4]),s&524391&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[15](null),e&&k(e,t)}}}function le(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],form:t[2]}}}return r&&(e=w(r,a(f)),f[14](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[14](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[14](null),e&&k(e,t)}}}function ae(f){let e,n,o;var r=f[1][2];function a(t,s){return{props:{data:t[5],$$slots:{default:[_e]},$$scope:{ctx:t}}}}return r&&(e=w(r,a(f)),f[13](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][2])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[13](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&32&&(i.data=t[5]),s&524359&&(i.$$scope={dirty:s,ctx:t}),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[13](null),e&&k(e,t)}}}function _e(f){let e,n,o;var r=f[1][3];function a(t,s){return{props:{data:t[6],form:t[2]}}}return r&&(e=w(r,a(f)),f[12](e)),{c(){e&&g(e.$$.fragment),n=u()},l(t){e&&D(e.$$.fragment,t),n=u()},m(t,s){e&&b(e,t,s),v(t,n,s),o=!0},p(t,s){if(s&2&&r!==(r=t[1][3])){if(e){L();const i=e;m(i.$$.fragment,1,0,()=>{k(i,1)}),R()}r?(e=w(r,a(t)),t[12](e),g(e.$$.fragment),p(e.$$.fragment,1),b(e,n.parentNode,n)):e=null}else if(r){const i={};s&64&&(i.data=t[6]),s&4&&(i.form=t[2]),e.$set(i)}},i(t){o||(e&&p(e.$$.fragment,t),o=!0)},o(t){e&&m(e.$$.fragment,t),o=!1},d(t){t&&h(n),f[12](null),e&&k(e,t)}}}function ce(f){let e,n,o,r;const a=[ae,le],t=[];function s(i,_){return i[1][3]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function ue(f){let e,n,o,r;const a=[fe,oe],t=[];function s(i,_){return i[1][2]?0:1}return e=s(f),n=t[e]=a[e](f),{c(){n.c(),o=u()},l(i){n.l(i),o=u()},m(i,_){t[e].m(i,_),v(i,o,_),r=!0},p(i,_){let c=e;e=s(i),e===c?t[e].p(i,_):(L(),m(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(i,_):(n=t[e]=a[e](i),n.c()),p(n,1),n.m(o.parentNode,o))},i(i){r||(p(n),r=!0)},o(i){m(n),r=!1},d(i){i&&h(o),t[e].d(i)}}}function V(f){let e,n=f[8]&&y(f);return{c(){e=J("div"),n&&n.c(),this.h()},l(o){e=K(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var r=Q(e);n&&n.l(r),r.forEach(h),this.h()},h(){I(e,"id","svelte-announcer"),I(e,"aria-live","assertive"),I(e,"aria-atomic","true"),P(e,"position","absolute"),P(e,"left","0"),P(e,"top","0"),P(e,"clip","rect(0 0 0 0)"),P(e,"clip-path","inset(50%)"),P(e,"overflow","hidden"),P(e,"white-space","nowrap"),P(e,"width","1px"),P(e,"height","1px")},m(o,r){v(o,e,r),n&&n.m(e,null)},p(o,r){o[8]?n?n.p(o,r):(n=y(o),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(o){o&&h(e),n&&n.d()}}}function y(f){let e;return{c(){e=X(f[9])},l(n){e=Y(n,f[9])},m(n,o){v(n,e,o)},p(n,o){o&512&&Z(e,n[9])},d(n){n&&h(e)}}}function me(f){let e,n,o,r,a;const t=[se,re],s=[];function i(c,E){return c[1][1]?0:1}e=i(f),n=s[e]=t[e](f);let _=f[7]&&V(f);return{c(){n.c(),o=z(),_&&_.c(),r=u()},l(c){n.l(c),o=F(c),_&&_.l(c),r=u()},m(c,E){s[e].m(c,E),v(c,o,E),_&&_.m(c,E),v(c,r,E),a=!0},p(c,[E]){let d=e;e=i(c),e===d?s[e].p(c,E):(L(),m(s[d],1,1,()=>{s[d]=null}),R(),n=s[e],n?n.p(c,E):(n=s[e]=t[e](c),n.c()),p(n,1),n.m(o.parentNode,o)),c[7]?_?_.p(c,E):(_=V(c),_.c(),_.m(r.parentNode,r)):_&&(_.d(1),_=null)},i(c){a||(p(n),a=!0)},o(c){m(n),a=!1},d(c){c&&(h(o),h(r)),s[e].d(c),_&&_.d(c)}}}function pe(f,e,n){let{stores:o}=e,{page:r}=e,{constructors:a}=e,{components:t=[]}=e,{form:s}=e,{data_0:i=null}=e,{data_1:_=null}=e,{data_2:c=null}=e,{data_3:E=null}=e;G(o.page.notify);let d=!1,N=!1,A=null;H(()=>{const l=o.page.subscribe(()=>{d&&(n(8,N=!0),x().then(()=>{n(9,A=document.title||"untitled page")}))});return n(7,d=!0),l});function S(l){O[l?"unshift":"push"](()=>{t[3]=l,n(0,t)})}function q(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function B(l){O[l?"unshift":"push"](()=>{t[2]=l,n(0,t)})}function C(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function M(l){O[l?"unshift":"push"](()=>{t[1]=l,n(0,t)})}function U(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}function W(l){O[l?"unshift":"push"](()=>{t[0]=l,n(0,t)})}return f.$$set=l=>{"stores"in l&&n(10,o=l.stores),"page"in l&&n(11,r=l.page),"constructors"in l&&n(1,a=l.constructors),"components"in l&&n(0,t=l.components),"form"in l&&n(2,s=l.form),"data_0"in l&&n(3,i=l.data_0),"data_1"in l&&n(4,_=l.data_1),"data_2"in l&&n(5,c=l.data_2),"data_3"in l&&n(6,E=l.data_3)},f.$$.update=()=>{f.$$.dirty&3072&&o.page.set(r)},[t,a,s,i,_,c,E,d,N,A,o,r,S,q,B,C,M,U,W]}class ge extends ee{constructor(e){super(),te(this,e,pe,me,j,{stores:10,page:11,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6})}}const be=[()=>$(()=>import("../nodes/0.CEPhg4Kl.js"),__vite__mapDeps([0,1,2]),import.meta.url),()=>$(()=>import("../nodes/1.DCDm4DEM.js"),__vite__mapDeps([3,1,2,4,5,6]),import.meta.url),()=>$(()=>import("../nodes/2.CdDxww_b.js"),__vite__mapDeps([7,1,2,8,6,4,5,9,10]),import.meta.url),()=>$(()=>import("../nodes/3.BvfQdEdE.js"),__vite__mapDeps([11,1,2]),import.meta.url),()=>$(()=>import("../nodes/4.B8JFxwEt.js"),__vite__mapDeps([12,1,2,8,6,4,5,9,10,13,14]),import.meta.url),()=>$(()=>import("../nodes/5.SLxI-m7B.js"),__vite__mapDeps([15,6,16,17,2,1,14,5,18,19]),import.meta.url),()=>$(()=>import("../nodes/6.Byvfz3Eu.js"),__vite__mapDeps([20,21,17,2,1,14,5,18,6,19]),import.meta.url),()=>$(()=>import("../nodes/7.7oBUziAX.js"),__vite__mapDeps([22,1,2,19,17,14,5,18]),import.meta.url),()=>$(()=>import("../nodes/8.Cr5xcWYm.js"),__vite__mapDeps([23,9,5,1,2,19,17,14,18,16,21]),import.meta.url),()=>$(()=>import("../nodes/9.CgXEf7WY.js"),__vite__mapDeps([24,1,2,6,13,14,17,5,18,25]),import.meta.url),()=>$(()=>import("../nodes/10.Cld4Kjku.js"),__vite__mapDeps([26,1,2,6,13,14]),import.meta.url),()=>$(()=>import("../nodes/11.0B2c2elE.js"),__vite__mapDeps([27,1,2,17,14,5,18,25]),import.meta.url)],ke=[],Ee={"/(landing)":[9,[4]],"/(app)/example/dot":[5,[2,3]],"/(app)/example/lenet":[6,[2,3]],"/(app)/example/simple":[7,[2,3]],"/(landing)/gallery":[10,[4]],"/(landing)/getting-started":[11,[4]],"/(app)/viewer":[8,[2]]},ve={handleError:({error:f})=>{console.error(f)},reroute:()=>{}};export{Ee as dictionary,ve as hooks,we as matchers,be as nodes,ge as root,ke as server_loads}; diff --git a/_app/immutable/entry/start.8QIjKmUz.js b/_app/immutable/entry/start.8QIjKmUz.js deleted file mode 100644 index 6df9cd7..0000000 --- a/_app/immutable/entry/start.8QIjKmUz.js +++ /dev/null @@ -1 +0,0 @@ -import{a as t}from"../chunks/entry.WWhhMuPn.js";export{t as start}; diff --git a/_app/immutable/entry/start.CWjv3zxM.js b/_app/immutable/entry/start.CWjv3zxM.js new file mode 100644 index 0000000..2a09705 --- /dev/null +++ b/_app/immutable/entry/start.CWjv3zxM.js @@ -0,0 +1 @@ +import{a as t}from"../chunks/entry.BfJ0ncBH.js";export{t as start}; diff --git a/_app/immutable/nodes/1.C_prkdRU.js b/_app/immutable/nodes/1.DCDm4DEM.js similarity index 91% rename from _app/immutable/nodes/1.C_prkdRU.js rename to _app/immutable/nodes/1.DCDm4DEM.js index 944ba50..5adaf06 100644 --- a/_app/immutable/nodes/1.C_prkdRU.js +++ b/_app/immutable/nodes/1.DCDm4DEM.js @@ -1 +1 @@ -import{s as c,e as p,t as u,c as m,b,v as l,f as o,i as d,j as g,w as f,n as i,x as _}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as v}from"../chunks/index.C7bWdOrd.js";import{s as x}from"../chunks/entry.WWhhMuPn.js";const $=()=>{const e=x;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},E={subscribe(e){return $().page.subscribe(e)}};function S(e){let s,r=e[0].error.message+"",a;return{c(){s=p("h1"),a=u(r)},l(t){s=m(t,"H1",{});var n=b(s);a=l(n,r),n.forEach(o)},m(t,n){d(t,s,n),g(s,a)},p(t,[n]){n&1&&r!==(r=t[0].error.message+"")&&f(a,r)},i,o:i,d(t){t&&o(s)}}}function y(e,s,r){let a;return _(e,E,t=>r(0,a=t)),[a]}let C=class extends h{constructor(s){super(),v(this,s,y,S,c,{})}};export{C as component}; +import{s as c,e as p,t as u,c as m,b,v as l,f as o,i as d,j as g,w as f,n as i,x as _}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as v}from"../chunks/index.C7bWdOrd.js";import{s as x}from"../chunks/entry.BfJ0ncBH.js";const $=()=>{const e=x;return{page:{subscribe:e.page.subscribe},navigating:{subscribe:e.navigating.subscribe},updated:e.updated}},E={subscribe(e){return $().page.subscribe(e)}};function S(e){let s,r=e[0].error.message+"",a;return{c(){s=p("h1"),a=u(r)},l(t){s=m(t,"H1",{});var n=b(s);a=l(n,r),n.forEach(o)},m(t,n){d(t,s,n),g(s,a)},p(t,[n]){n&1&&r!==(r=t[0].error.message+"")&&f(a,r)},i,o:i,d(t){t&&o(s)}}}function y(e,s,r){let a;return _(e,E,t=>r(0,a=t)),[a]}let C=class extends h{constructor(s){super(),v(this,s,y,S,c,{})}};export{C as component}; diff --git a/_app/immutable/nodes/10.CSQPrr57.js b/_app/immutable/nodes/10.Cld4Kjku.js similarity index 98% rename from _app/immutable/nodes/10.CSQPrr57.js rename to _app/immutable/nodes/10.Cld4Kjku.js index 662e606..bef3605 100644 --- a/_app/immutable/nodes/10.CSQPrr57.js +++ b/_app/immutable/nodes/10.Cld4Kjku.js @@ -1,4 +1,4 @@ -import{s as ae,e as a,t as K,c as n,b as v,v as Q,f as d,g as P,h as r,i as G,j as s,w as U,n as O,a as k,o as ie,d as A}from"../chunks/scheduler.BZf3Antt.js";import{S as ne,i as oe,c as W,a as Y,m as Z,t as ee,b as te,d as se}from"../chunks/index.C7bWdOrd.js";import{b as le}from"../chunks/paths.BILvqvyt.js";import{I as re,A as de}from"../chunks/index.Cv9_d-Ac.js";function ce(h){let e,l,c,t,i="/",p,x;return{c(){e=a("div"),l=a("span"),c=K(h[0]),t=a("span"),t.textContent=i,p=a("span"),x=K(h[1]),this.h()},l(o){e=n(o,"DIV",{class:!0});var f=v(e);l=n(f,"SPAN",{class:!0});var I=v(l);c=Q(I,h[0]),I.forEach(d),t=n(f,"SPAN",{class:!0,"data-svelte-h":!0}),P(t)!=="svelte-18mnmw1"&&(t.textContent=i),p=n(f,"SPAN",{});var m=v(p);x=Q(m,h[1]),m.forEach(d),f.forEach(d),this.h()},h(){r(l,"class","text-gray-500"),r(t,"class","text-gray-300"),r(e,"class","flex gap-1")},m(o,f){G(o,e,f),s(e,l),s(l,c),s(e,t),s(e,p),s(p,x)},p(o,[f]){f&1&&U(c,o[0]),f&2&&U(x,o[1])},i:O,o:O,d(o){o&&d(e)}}}function ue(h,e,l){let{org:c}=e,{model:t}=e;return h.$$set=i=>{"org"in i&&l(0,c=i.org),"model"in i&&l(1,t=i.model)},[c,t]}class fe extends ne{constructor(e){super(),oe(this,e,ue,ce,ae,{org:0,model:1})}}function me(h){let e,l,c,t,i,p="Gallery",x,o,f=`The following contains examples of different models that can be visualized with Mycelium. +import{s as ae,e as a,t as K,c as n,b as v,v as Q,f as d,g as P,h as r,i as G,j as s,w as U,n as O,a as k,o as ie,d as A}from"../chunks/scheduler.BZf3Antt.js";import{S as ne,i as oe,c as W,a as Y,m as Z,t as ee,b as te,d as se}from"../chunks/index.C7bWdOrd.js";import{b as le}from"../chunks/paths.CFq_Q8H9.js";import{I as re,A as de}from"../chunks/index.Cv9_d-Ac.js";function ce(h){let e,l,c,t,i="/",p,x;return{c(){e=a("div"),l=a("span"),c=K(h[0]),t=a("span"),t.textContent=i,p=a("span"),x=K(h[1]),this.h()},l(o){e=n(o,"DIV",{class:!0});var f=v(e);l=n(f,"SPAN",{class:!0});var I=v(l);c=Q(I,h[0]),I.forEach(d),t=n(f,"SPAN",{class:!0,"data-svelte-h":!0}),P(t)!=="svelte-18mnmw1"&&(t.textContent=i),p=n(f,"SPAN",{});var m=v(p);x=Q(m,h[1]),m.forEach(d),f.forEach(d),this.h()},h(){r(l,"class","text-gray-500"),r(t,"class","text-gray-300"),r(e,"class","flex gap-1")},m(o,f){G(o,e,f),s(e,l),s(l,c),s(e,t),s(e,p),s(p,x)},p(o,[f]){f&1&&U(c,o[0]),f&2&&U(x,o[1])},i:O,o:O,d(o){o&&d(e)}}}function ue(h,e,l){let{org:c}=e,{model:t}=e;return h.$$set=i=>{"org"in i&&l(0,c=i.org),"model"in i&&l(1,t=i.model)},[c,t]}class fe extends ne{constructor(e){super(),oe(this,e,ue,ce,ae,{org:0,model:1})}}function me(h){let e,l,c,t,i,p="Gallery",x,o,f=`The following contains examples of different models that can be visualized with Mycelium. Please note that some ONNX files can become quite large and need to be downloaded before they can be visualized.`,I,m,g,q=`
LeNet5
Open
GraphViz
Mycelium also comes with a very basic loader for .dot files. Please note that it only works with graphs that form a DAG.
Open
`,S,b,D,R=`
External
The following external models are larger, which is why we only provide external links. To visualize them, you can download them and then simply drop them into this page.
`,H,_,y,w,C,V,F="Hugging Face",E,M;return y=new fe({props:{org:"Microsoft",model:"Phi-3-mini-4k-instruct-onnx"}}),E=new re({props:{src:de,theme:"solid",class:"text-blue-600 h-4 w-auto"}}),{c(){e=k(),l=a("div"),c=a("div"),t=a("div"),i=a("h2"),i.textContent=p,x=k(),o=a("p"),o.textContent=f,I=k(),m=a("div"),g=a("div"),g.innerHTML=q,S=k(),b=a("div"),D=a("div"),D.innerHTML=R,H=k(),_=a("div"),W(y.$$.fragment),w=a("a"),C=a("div"),V=a("span"),V.textContent=F,W(E.$$.fragment),this.h()},l(u){ie("svelte-85k870",document.head).forEach(d),e=A(u),l=n(u,"DIV",{class:!0});var X=v(l);c=n(X,"DIV",{class:!0});var B=v(c);t=n(B,"DIV",{class:!0});var $=v(t);i=n($,"H2",{class:!0,"data-svelte-h":!0}),P(i)!=="svelte-197edl1"&&(i.textContent=p),x=A($),o=n($,"P",{class:!0,"data-svelte-h":!0}),P(o)!=="svelte-10y7219"&&(o.textContent=f),I=A($),m=n($,"DIV",{class:!0});var T=v(m);g=n(T,"DIV",{class:!0,"data-svelte-h":!0}),P(g)!=="svelte-mnu2lf"&&(g.innerHTML=q),S=A(T),b=n(T,"DIV",{class:!0});var N=v(b);D=n(N,"DIV",{"data-svelte-h":!0}),P(D)!=="svelte-1663nnm"&&(D.innerHTML=R),H=A(N),_=n(N,"DIV",{class:!0});var j=v(_);Y(y.$$.fragment,j),w=n(j,"A",{href:!0,class:!0});var J=v(w);C=n(J,"DIV",{class:!0});var z=v(C);V=n(z,"SPAN",{"data-svelte-h":!0}),P(V)!=="svelte-e0boru"&&(V.textContent=F),Y(E.$$.fragment,z),z.forEach(d),J.forEach(d),j.forEach(d),N.forEach(d),T.forEach(d),$.forEach(d),B.forEach(d),X.forEach(d),this.h()},h(){document.title="Mycelium • Gallery",r(i,"class","text-2xl font-bold tracking-tight text-gray-900 sm:text-4xl"),r(o,"class","mt-6 text-lg leading-8 text-gray-600"),r(g,"class","flex flex-col py-4 gap-4 w-full"),r(C,"class","flex gap-2 items-center"),r(w,"href","https://huggingface.co/microsoft/Phi-3-mini-4k-instruct-onnx/blob/main/cpu_and_mobile/cpu-int4-rtn-block-32/phi3-mini-4k-instruct-cpu-int4-rtn-block-32.onnx"),r(w,"class","rounded-md border border-blue-600 px-3.5 py-2.5 text-sm font-semibold text-blue-600 shadow-sm hover:bg-blue-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600"),r(_,"class","border rounded-lg p-4 flex justify-between items-center"),r(b,"class","flex flex-col py-4 gap-4 w-full"),r(m,"class","mt-10 grid grid-cols-1 divide-y"),r(t,"class","mx-auto max-w-2xl text-center"),r(c,"class","mx-auto max-w-7xl px-6 lg:px-8"),r(l,"class","py-24 sm:py-32 lg:pb-40")},m(u,L){G(u,e,L),G(u,l,L),s(l,c),s(c,t),s(t,i),s(t,x),s(t,o),s(t,I),s(t,m),s(m,g),s(m,S),s(m,b),s(b,D),s(b,H),s(b,_),Z(y,_,null),s(_,w),s(w,C),s(C,V),Z(E,C,null),M=!0},p:O,i(u){M||(ee(y.$$.fragment,u),ee(E.$$.fragment,u),M=!0)},o(u){te(y.$$.fragment,u),te(E.$$.fragment,u),M=!1},d(u){u&&(d(e),d(l)),se(y),se(E)}}}class be extends ne{constructor(e){super(),oe(this,e,null,me,ae,{})}}export{be as component}; diff --git a/_app/immutable/nodes/11.BFq0GX80.js b/_app/immutable/nodes/11.0B2c2elE.js similarity index 99% rename from _app/immutable/nodes/11.BFq0GX80.js rename to _app/immutable/nodes/11.0B2c2elE.js index f01f6db..bcbe451 100644 --- a/_app/immutable/nodes/11.BFq0GX80.js +++ b/_app/immutable/nodes/11.0B2c2elE.js @@ -1,4 +1,4 @@ -import{s as jn,e,a as l,J as E,c as p,g as h,d as u,b as g,f as s,K as P,h as b,L as ss,i as t,j as Bn,n as bn,q as as,r as ts,o as es}from"../chunks/scheduler.BZf3Antt.js";import{S as Fn,i as On,c as ps,a as os,m as cs,t as ls,b as us,d as is}from"../chunks/index.C7bWdOrd.js";import{N as ks,b as rs,a as An,V as Gn,T as _n}from"../chunks/viewer.VKJlf1_4.js";/* empty css */function ds(M){let k,w="Getting Started",d,i,v=`The following shows a small hierarchical graph visualized by Mycelium. +import{s as jn,e,a as l,J as E,c as p,g as h,d as u,b as g,f as s,K as P,h as b,L as ss,i as t,j as Bn,n as bn,q as as,r as ts,o as es}from"../chunks/scheduler.BZf3Antt.js";import{S as Fn,i as On,c as ps,a as os,m as cs,t as ls,b as us,d as is}from"../chunks/index.C7bWdOrd.js";import{N as ks,b as rs,a as An,V as Gn,T as _n}from"../chunks/viewer.BYFc8Cdc.js";/* empty css */function ds(M){let k,w="Getting Started",d,i,v=`The following shows a small hierarchical graph visualized by Mycelium. In this section we will show you how to recreate that example.`,o,f,m,y,_,x='There are several steps required to embed Mycelium into your application, which we will outline below. You can also find the full source code of this example on GitHub.',T,c,N,Y='npm install @apple/mycelium',K,C,r=`Now we can import the library via the following commands. It’s important to note that we also have to import the provided CSS stylesheet, otherwise some styles might be missing.`,J,H,U,Kn=`import * as myc from '@apple/mycelium'; import '@apple/mycelium/dist/style.css';`,Q,I,xn="Creating a Network",X,L,Nn=`Next, we can create a simple network. diff --git a/_app/immutable/nodes/2.DFg_KNub.js b/_app/immutable/nodes/2.CdDxww_b.js similarity index 94% rename from _app/immutable/nodes/2.DFg_KNub.js rename to _app/immutable/nodes/2.CdDxww_b.js index f510aa2..7928d04 100644 --- a/_app/immutable/nodes/2.DFg_KNub.js +++ b/_app/immutable/nodes/2.CdDxww_b.js @@ -1 +1 @@ -import{s as v,e as p,a as x,c as u,b as $,g as b,d as y,f as m,h as f,i as w,j as d,k,u as D,l as M,m as j}from"../chunks/scheduler.BZf3Antt.js";import{S as q,i as H,c as L,a as T,m as C,t as _,b as g,d as N}from"../chunks/index.C7bWdOrd.js";import{D as S}from"../chunks/DragDrop.DXJnqdlr.js";import{b as h}from"../chunks/paths.BILvqvyt.js";function V(o){let t;const l=o[0].default,a=k(l,o,o[1],null);return{c(){a&&a.c()},l(e){a&&a.l(e)},m(e,s){a&&a.m(e,s),t=!0},p(e,s){a&&a.p&&(!t||s&2)&&D(a,l,e,e[1],t?j(l,e[1],s,null):M(e[1]),null)},i(e){t||(_(a,e),t=!0)},o(e){g(a,e),t=!1},d(e){a&&a.d(e)}}}function z(o){let t,l,a=`
 Mycelium
Drop an .onnx file into the area below to quickly visualize it.
Made with ❤️ for Talaria
`,e,s,i;return s=new S({props:{$$slots:{default:[V]},$$scope:{ctx:o}}}),{c(){t=p("div"),l=p("nav"),l.innerHTML=a,e=x(),L(s.$$.fragment),this.h()},l(n){t=u(n,"DIV",{class:!0});var r=$(t);l=u(r,"NAV",{class:!0,"data-svelte-h":!0}),b(l)!=="svelte-vjaqyl"&&(l.innerHTML=a),e=y(r),T(s.$$.fragment,r),r.forEach(m),this.h()},h(){f(l,"class","bg-white shadow py-2 border-b"),f(t,"class","h-screen flex flex-col")},m(n,r){w(n,t,r),d(t,l),d(t,e),C(s,t,null),i=!0},p(n,[r]){const c={};r&2&&(c.$$scope={dirty:r,ctx:n}),s.$set(c)},i(n){i||(_(s.$$.fragment,n),i=!0)},o(n){g(s.$$.fragment,n),i=!1},d(n){n&&m(t),N(s)}}}function A(o,t,l){let{$$slots:a={},$$scope:e}=t;return o.$$set=s=>{"$$scope"in s&&l(1,e=s.$$scope)},[a,e]}class B extends q{constructor(t){super(),H(this,t,A,z,v,{})}}export{B as component}; +import{s as v,e as p,a as x,c as u,b as $,g as b,d as y,f as m,h as f,i as w,j as d,k,u as D,l as M,m as j}from"../chunks/scheduler.BZf3Antt.js";import{S as q,i as H,c as L,a as T,m as C,t as _,b as g,d as N}from"../chunks/index.C7bWdOrd.js";import{D as S}from"../chunks/DragDrop.BqVnE3R5.js";import{b as h}from"../chunks/paths.CFq_Q8H9.js";function V(o){let t;const l=o[0].default,a=k(l,o,o[1],null);return{c(){a&&a.c()},l(e){a&&a.l(e)},m(e,s){a&&a.m(e,s),t=!0},p(e,s){a&&a.p&&(!t||s&2)&&D(a,l,e,e[1],t?j(l,e[1],s,null):M(e[1]),null)},i(e){t||(_(a,e),t=!0)},o(e){g(a,e),t=!1},d(e){a&&a.d(e)}}}function z(o){let t,l,a=`
 Mycelium
Drop an .onnx file into the area below to quickly visualize it.
Made with ❤️ for Talaria
`,e,s,i;return s=new S({props:{$$slots:{default:[V]},$$scope:{ctx:o}}}),{c(){t=p("div"),l=p("nav"),l.innerHTML=a,e=x(),L(s.$$.fragment),this.h()},l(n){t=u(n,"DIV",{class:!0});var r=$(t);l=u(r,"NAV",{class:!0,"data-svelte-h":!0}),b(l)!=="svelte-vjaqyl"&&(l.innerHTML=a),e=y(r),T(s.$$.fragment,r),r.forEach(m),this.h()},h(){f(l,"class","bg-white shadow py-2 border-b"),f(t,"class","h-screen flex flex-col")},m(n,r){w(n,t,r),d(t,l),d(t,e),C(s,t,null),i=!0},p(n,[r]){const c={};r&2&&(c.$$scope={dirty:r,ctx:n}),s.$set(c)},i(n){i||(_(s.$$.fragment,n),i=!0)},o(n){g(s.$$.fragment,n),i=!1},d(n){n&&m(t),N(s)}}}function A(o,t,l){let{$$slots:a={},$$scope:e}=t;return o.$$set=s=>{"$$scope"in s&&l(1,e=s.$$scope)},[a,e]}class B extends q{constructor(t){super(),H(this,t,A,z,v,{})}}export{B as component}; diff --git a/_app/immutable/nodes/4.B0wbLcuC.js b/_app/immutable/nodes/4.B8JFxwEt.js similarity index 97% rename from _app/immutable/nodes/4.B0wbLcuC.js rename to _app/immutable/nodes/4.B8JFxwEt.js index fbf12d3..2734644 100644 --- a/_app/immutable/nodes/4.B0wbLcuC.js +++ b/_app/immutable/nodes/4.B8JFxwEt.js @@ -1 +1 @@ -import{s as oe,k as ie,e as n,a as L,c as o,b as u,g as T,d as A,f,h as r,i as ce,j as a,u as de,l as fe,m as me}from"../chunks/scheduler.BZf3Antt.js";import{S as ue,i as pe,c as K,a as Q,m as U,t as z,b as G,d as W}from"../chunks/index.C7bWdOrd.js";import{D as ge}from"../chunks/DragDrop.DXJnqdlr.js";import{b as S}from"../chunks/paths.BILvqvyt.js";import{I as le,A as ne}from"../chunks/index.Cv9_d-Ac.js";function he(p){let t,i,e,l,g=` Mycelium`,N,$,X=`Viewer Gallery Getting Started Documentation`,P,h,_,b,E,Y="GitHub",y,k,w,D,I,Z="NPM",C,q,d,v,ee='
',R,O,x,te='
',V;y=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}}),C=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}});const B=p[0].default,c=ie(B,p,p[1],null);return{c(){t=n("div"),i=n("header"),e=n("nav"),l=n("div"),l.innerHTML=g,N=L(),$=n("div"),$.innerHTML=X,P=L(),h=n("div"),_=n("a"),b=n("div"),E=n("span"),E.textContent=Y,K(y.$$.fragment),k=L(),w=n("a"),D=n("div"),I=n("span"),I.textContent=Z,K(C.$$.fragment),q=L(),d=n("div"),v=n("div"),v.innerHTML=ee,R=L(),c&&c.c(),O=L(),x=n("div"),x.innerHTML=te,this.h()},l(s){t=o(s,"DIV",{class:!0});var m=u(t);i=o(m,"HEADER",{class:!0});var ae=u(i);e=o(ae,"NAV",{class:!0,"aria-label":!0});var H=u(e);l=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T(l)!=="svelte-him6wi"&&(l.innerHTML=g),N=A(H),$=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T($)!=="svelte-173lg03"&&($.innerHTML=X),P=A(H),h=o(H,"DIV",{class:!0});var j=u(h);_=o(j,"A",{href:!0,class:!0});var se=u(_);b=o(se,"DIV",{class:!0});var F=u(b);E=o(F,"SPAN",{"data-svelte-h":!0}),T(E)!=="svelte-1l01zul"&&(E.textContent=Y),Q(y.$$.fragment,F),F.forEach(f),se.forEach(f),k=A(j),w=o(j,"A",{href:!0,class:!0});var re=u(w);D=o(re,"DIV",{class:!0});var J=u(D);I=o(J,"SPAN",{"data-svelte-h":!0}),T(I)!=="svelte-1do0aoh"&&(I.textContent=Z),Q(C.$$.fragment,J),J.forEach(f),re.forEach(f),j.forEach(f),H.forEach(f),ae.forEach(f),q=A(m),d=o(m,"DIV",{class:!0});var M=u(d);v=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(v)!=="svelte-10d3ifl"&&(v.innerHTML=ee),R=A(M),c&&c.l(M),O=A(M),x=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(x)!=="svelte-2vbjet"&&(x.innerHTML=te),M.forEach(f),m.forEach(f),this.h()},h(){r(l,"class","flex lg:flex-1"),r($,"class","hidden lg:flex lg:gap-x-12"),r(b,"class","flex gap-1 items-center"),r(_,"href","https://github.com/apple/ml-mycelium"),r(_,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(D,"class","flex gap-1 items-center"),r(w,"href","https://www.npmjs.com/package/@apple/mycelium"),r(w,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(h,"class","hidden lg:flex lg:flex-1 lg:justify-end gap-4"),r(e,"class","flex items-center justify-between p-6 lg:px-8"),r(e,"aria-label","Global"),r(i,"class","absolute inset-x-0 top-0 z-50"),r(v,"class","absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"),r(v,"aria-hidden","true"),r(x,"class","absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"),r(x,"aria-hidden","true"),r(d,"class","relative isolate pt-14"),r(t,"class","bg-white")},m(s,m){ce(s,t,m),a(t,i),a(i,e),a(e,l),a(e,N),a(e,$),a(e,P),a(e,h),a(h,_),a(_,b),a(b,E),U(y,b,null),a(h,k),a(h,w),a(w,D),a(D,I),U(C,D,null),a(t,q),a(t,d),a(d,v),a(d,R),c&&c.m(d,null),a(d,O),a(d,x),V=!0},p(s,m){c&&c.p&&(!V||m&2)&&de(c,B,s,s[1],V?me(B,s[1],m,null):fe(s[1]),null)},i(s){V||(z(y.$$.fragment,s),z(C.$$.fragment,s),z(c,s),V=!0)},o(s){G(y.$$.fragment,s),G(C.$$.fragment,s),G(c,s),V=!1},d(s){s&&f(t),W(y),W(C),c&&c.d(s)}}}function ve(p){let t,i;return t=new ge({props:{$$slots:{default:[he]},$$scope:{ctx:p}}}),{c(){K(t.$$.fragment)},l(e){Q(t.$$.fragment,e)},m(e,l){U(t,e,l),i=!0},p(e,[l]){const g={};l&2&&(g.$$scope={dirty:l,ctx:e}),t.$set(g)},i(e){i||(z(t.$$.fragment,e),i=!0)},o(e){G(t.$$.fragment,e),i=!1},d(e){W(t,e)}}}function xe(p,t,i){let{$$slots:e={},$$scope:l}=t;return p.$$set=g=>{"$$scope"in g&&i(1,l=g.$$scope)},[e,l]}class De extends ue{constructor(t){super(),pe(this,t,xe,ve,oe,{})}}export{De as component}; +import{s as oe,k as ie,e as n,a as L,c as o,b as u,g as T,d as A,f,h as r,i as ce,j as a,u as de,l as fe,m as me}from"../chunks/scheduler.BZf3Antt.js";import{S as ue,i as pe,c as K,a as Q,m as U,t as z,b as G,d as W}from"../chunks/index.C7bWdOrd.js";import{D as ge}from"../chunks/DragDrop.BqVnE3R5.js";import{b as S}from"../chunks/paths.CFq_Q8H9.js";import{I as le,A as ne}from"../chunks/index.Cv9_d-Ac.js";function he(p){let t,i,e,l,g=` Mycelium`,N,$,X=`Viewer Gallery Getting Started Documentation`,P,h,_,b,E,Y="GitHub",y,k,w,D,I,Z="NPM",C,q,d,v,ee='
',R,O,x,te='
',V;y=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}}),C=new le({props:{src:ne,theme:"solid",class:"text-gray-300 h-4 w-auto"}});const B=p[0].default,c=ie(B,p,p[1],null);return{c(){t=n("div"),i=n("header"),e=n("nav"),l=n("div"),l.innerHTML=g,N=L(),$=n("div"),$.innerHTML=X,P=L(),h=n("div"),_=n("a"),b=n("div"),E=n("span"),E.textContent=Y,K(y.$$.fragment),k=L(),w=n("a"),D=n("div"),I=n("span"),I.textContent=Z,K(C.$$.fragment),q=L(),d=n("div"),v=n("div"),v.innerHTML=ee,R=L(),c&&c.c(),O=L(),x=n("div"),x.innerHTML=te,this.h()},l(s){t=o(s,"DIV",{class:!0});var m=u(t);i=o(m,"HEADER",{class:!0});var ae=u(i);e=o(ae,"NAV",{class:!0,"aria-label":!0});var H=u(e);l=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T(l)!=="svelte-him6wi"&&(l.innerHTML=g),N=A(H),$=o(H,"DIV",{class:!0,"data-svelte-h":!0}),T($)!=="svelte-173lg03"&&($.innerHTML=X),P=A(H),h=o(H,"DIV",{class:!0});var j=u(h);_=o(j,"A",{href:!0,class:!0});var se=u(_);b=o(se,"DIV",{class:!0});var F=u(b);E=o(F,"SPAN",{"data-svelte-h":!0}),T(E)!=="svelte-1l01zul"&&(E.textContent=Y),Q(y.$$.fragment,F),F.forEach(f),se.forEach(f),k=A(j),w=o(j,"A",{href:!0,class:!0});var re=u(w);D=o(re,"DIV",{class:!0});var J=u(D);I=o(J,"SPAN",{"data-svelte-h":!0}),T(I)!=="svelte-1do0aoh"&&(I.textContent=Z),Q(C.$$.fragment,J),J.forEach(f),re.forEach(f),j.forEach(f),H.forEach(f),ae.forEach(f),q=A(m),d=o(m,"DIV",{class:!0});var M=u(d);v=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(v)!=="svelte-10d3ifl"&&(v.innerHTML=ee),R=A(M),c&&c.l(M),O=A(M),x=o(M,"DIV",{class:!0,"aria-hidden":!0,"data-svelte-h":!0}),T(x)!=="svelte-2vbjet"&&(x.innerHTML=te),M.forEach(f),m.forEach(f),this.h()},h(){r(l,"class","flex lg:flex-1"),r($,"class","hidden lg:flex lg:gap-x-12"),r(b,"class","flex gap-1 items-center"),r(_,"href","https://github.com/apple/ml-mycelium"),r(_,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(D,"class","flex gap-1 items-center"),r(w,"href","https://www.npmjs.com/package/@apple/mycelium"),r(w,"class","text-sm font-semibold leading-6 text-gray-900 hover:text-gray-600"),r(h,"class","hidden lg:flex lg:flex-1 lg:justify-end gap-4"),r(e,"class","flex items-center justify-between p-6 lg:px-8"),r(e,"aria-label","Global"),r(i,"class","absolute inset-x-0 top-0 z-50"),r(v,"class","absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"),r(v,"aria-hidden","true"),r(x,"class","absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"),r(x,"aria-hidden","true"),r(d,"class","relative isolate pt-14"),r(t,"class","bg-white")},m(s,m){ce(s,t,m),a(t,i),a(i,e),a(e,l),a(e,N),a(e,$),a(e,P),a(e,h),a(h,_),a(_,b),a(b,E),U(y,b,null),a(h,k),a(h,w),a(w,D),a(D,I),U(C,D,null),a(t,q),a(t,d),a(d,v),a(d,R),c&&c.m(d,null),a(d,O),a(d,x),V=!0},p(s,m){c&&c.p&&(!V||m&2)&&de(c,B,s,s[1],V?me(B,s[1],m,null):fe(s[1]),null)},i(s){V||(z(y.$$.fragment,s),z(C.$$.fragment,s),z(c,s),V=!0)},o(s){G(y.$$.fragment,s),G(C.$$.fragment,s),G(c,s),V=!1},d(s){s&&f(t),W(y),W(C),c&&c.d(s)}}}function ve(p){let t,i;return t=new ge({props:{$$slots:{default:[he]},$$scope:{ctx:p}}}),{c(){K(t.$$.fragment)},l(e){Q(t.$$.fragment,e)},m(e,l){U(t,e,l),i=!0},p(e,[l]){const g={};l&2&&(g.$$scope={dirty:l,ctx:e}),t.$set(g)},i(e){i||(z(t.$$.fragment,e),i=!0)},o(e){G(t.$$.fragment,e),i=!1},d(e){W(t,e)}}}function xe(p,t,i){let{$$slots:e={},$$scope:l}=t;return p.$$set=g=>{"$$scope"in g&&i(1,l=g.$$scope)},[e,l]}class De extends ue{constructor(t){super(),pe(this,t,xe,ve,oe,{})}}export{De as component}; diff --git a/_app/immutable/nodes/5.DAynCHZG.js b/_app/immutable/nodes/5.SLxI-m7B.js similarity index 80% rename from _app/immutable/nodes/5.DAynCHZG.js rename to _app/immutable/nodes/5.SLxI-m7B.js index b6604ae..a62bf32 100644 --- a/_app/immutable/nodes/5.DAynCHZG.js +++ b/_app/immutable/nodes/5.SLxI-m7B.js @@ -1 +1 @@ -import{b as s}from"../chunks/paths.BILvqvyt.js";import{c as i}from"../chunks/dot.BpqtT9be.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as p,c as f,a as l,m as u,t as _,b as d,d as w}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.CUaabvoY.js";async function $({fetch:o}){const n=await(await o(`${s}/examples/graphviz.dot`)).text();return{network:i(n)}}const z=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function k(o){let e,n;return e=new g({props:{title:"Graphviz Dot • Example",network:o[0].network}}),{c(){f(e.$$.fragment)},l(t){l(e.$$.fragment,t)},m(t,r){u(e,t,r),n=!0},p(t,[r]){const a={};r&1&&(a.network=t[0].network),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){d(e.$$.fragment,t),n=!1},d(t){w(e,t)}}}function v(o,e,n){let{data:t}=e;return o.$$set=r=>{"data"in r&&n(0,t=r.data)},[t]}class j extends m{constructor(e){super(),p(this,e,v,k,c,{data:0})}}export{j as component,z as universal}; +import{b as s}from"../chunks/paths.CFq_Q8H9.js";import{c as i}from"../chunks/dot.Bgkvpxeo.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as p,c as f,a as l,m as u,t as _,b as d,d as w}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.C5t0eI9O.js";async function $({fetch:o}){const n=await(await o(`${s}/examples/graphviz.dot`)).text();return{network:i(n)}}const z=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function k(o){let e,n;return e=new g({props:{title:"Graphviz Dot • Example",network:o[0].network}}),{c(){f(e.$$.fragment)},l(t){l(e.$$.fragment,t)},m(t,r){u(e,t,r),n=!0},p(t,[r]){const a={};r&1&&(a.network=t[0].network),e.$set(a)},i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){d(e.$$.fragment,t),n=!1},d(t){w(e,t)}}}function v(o,e,n){let{data:t}=e;return o.$$set=r=>{"data"in r&&n(0,t=r.data)},[t]}class j extends m{constructor(e){super(),p(this,e,v,k,c,{data:0})}}export{j as component,z as universal}; diff --git a/_app/immutable/nodes/6.2lZNt-No.js b/_app/immutable/nodes/6.Byvfz3Eu.js similarity index 81% rename from _app/immutable/nodes/6.2lZNt-No.js rename to _app/immutable/nodes/6.Byvfz3Eu.js index 7d7fc8d..ac3a4b3 100644 --- a/_app/immutable/nodes/6.2lZNt-No.js +++ b/_app/immutable/nodes/6.Byvfz3Eu.js @@ -1 +1 @@ -import{c as s}from"../chunks/index.Dkpp2DVH.js";import{b as i}from"../chunks/paths.BILvqvyt.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as l,c as f,a as p,m as u,t as _,b as w,d}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.CUaabvoY.js";async function $({fetch:r}){const n=await(await r(`${i}/examples/lenet.onnx`)).arrayBuffer(),e=new Uint8Array(n);return{network:s(e)}}const j=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function b(r){let t,n;return t=new g({props:{title:"LeNet • Example",network:r[0].network}}),{c(){f(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,o){u(t,e,o),n=!0},p(e,[o]){const a={};o&1&&(a.network=e[0].network),t.$set(a)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){d(t,e)}}}function k(r,t,n){let{data:e}=t;return r.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class M extends m{constructor(t){super(),l(this,t,k,b,c,{data:0})}}export{M as component,j as universal}; +import{c as s}from"../chunks/index.BeFZgILa.js";import{b as i}from"../chunks/paths.CFq_Q8H9.js";import{s as c}from"../chunks/scheduler.BZf3Antt.js";import{S as m,i as l,c as f,a as p,m as u,t as _,b as w,d}from"../chunks/index.C7bWdOrd.js";import{V as g}from"../chunks/Viewer.C5t0eI9O.js";async function $({fetch:r}){const n=await(await r(`${i}/examples/lenet.onnx`)).arrayBuffer(),e=new Uint8Array(n);return{network:s(e)}}const j=Object.freeze(Object.defineProperty({__proto__:null,load:$},Symbol.toStringTag,{value:"Module"}));function b(r){let t,n;return t=new g({props:{title:"LeNet • Example",network:r[0].network}}),{c(){f(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,o){u(t,e,o),n=!0},p(e,[o]){const a={};o&1&&(a.network=e[0].network),t.$set(a)},i(e){n||(_(t.$$.fragment,e),n=!0)},o(e){w(t.$$.fragment,e),n=!1},d(e){d(t,e)}}}function k(r,t,n){let{data:e}=t;return r.$$set=o=>{"data"in o&&n(0,e=o.data)},[e]}class M extends m{constructor(t){super(),l(this,t,k,b,c,{data:0})}}export{M as component,j as universal}; diff --git a/_app/immutable/nodes/7.DMh6GWRq.js b/_app/immutable/nodes/7.7oBUziAX.js similarity index 91% rename from _app/immutable/nodes/7.DMh6GWRq.js rename to _app/immutable/nodes/7.7oBUziAX.js index d9f64c6..98c56bf 100644 --- a/_app/immutable/nodes/7.DMh6GWRq.js +++ b/_app/immutable/nodes/7.7oBUziAX.js @@ -1 +1 @@ -import{s as b,n as N}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as $,c as k,a as _,m as C,t as E,b as W,d as P}from"../chunks/index.C7bWdOrd.js";import{V as x}from"../chunks/Viewer.CUaabvoY.js";import{N as S,a as f,V as w,T as l,c as V}from"../chunks/viewer.VKJlf1_4.js";function y(i){let e,n;return e=new x({props:{title:"Simple Network • Example",network:i[0]}}),e.$on("created",i[1]),{c(){k(e.$$.fragment)},l(o){_(e.$$.fragment,o)},m(o,a){C(e,o,a),n=!0},p:N,i(o){n||(E(e.$$.fragment,o),n=!0)},o(o){W(e.$$.fragment,o),n=!1},d(o){P(e,o)}}}function D(i){const[e,n,o,a,u,c]=["a","b","c","d","e","f"],[d,m]=["m","n"];function s(r){return new f(r,new w(new l("Node").with({fontWeight:600}),new l(r))).with({selectable:!0,...r===n&&{badge:{color:"red",text:"i"}}})}function g(r){return new f(r,new w(new l("Module").with({fontWeight:600}),new l(r))).with({backgroundColor:V.background.gray})}const t=new S;t.setNode(m,g(m)),t.setNodeWithParent(d,g(d),m),t.setNode(e,s(e)),t.setNodeWithParent(n,s(n),m),t.setNodeWithParent(o,s(o),d),t.setNodeWithParent(a,s(a),d),t.setNode(u,s(u)),t.setNode(c,s(c)),t.setEdge(e,n),t.setEdge(n,o),t.setEdge(n,a),t.setEdge(o,a),t.setEdge(a,u),t.setEdge(a,c);function p({detail:{viewer:r}}){r.setDecoration(e,{backgroundColor:"rgb(237,249,239)",borderColor:"rgb(113,201,117)"}),r.setDecoration(c,{backgroundColor:"rgb(252,236,235)",borderColor:"rgb(239,90,88)"})}return[t,p]}class j extends h{constructor(e){super(),$(this,e,D,y,b,{})}}export{j as component}; +import{s as b,n as N}from"../chunks/scheduler.BZf3Antt.js";import{S as h,i as $,c as k,a as _,m as C,t as E,b as W,d as P}from"../chunks/index.C7bWdOrd.js";import{V as x}from"../chunks/Viewer.C5t0eI9O.js";import{N as S,a as f,V as w,T as l,c as V}from"../chunks/viewer.BYFc8Cdc.js";function y(i){let e,n;return e=new x({props:{title:"Simple Network • Example",network:i[0]}}),e.$on("created",i[1]),{c(){k(e.$$.fragment)},l(o){_(e.$$.fragment,o)},m(o,a){C(e,o,a),n=!0},p:N,i(o){n||(E(e.$$.fragment,o),n=!0)},o(o){W(e.$$.fragment,o),n=!1},d(o){P(e,o)}}}function D(i){const[e,n,o,a,u,c]=["a","b","c","d","e","f"],[d,m]=["m","n"];function s(r){return new f(r,new w(new l("Node").with({fontWeight:600}),new l(r))).with({selectable:!0,...r===n&&{badge:{color:"red",text:"i"}}})}function g(r){return new f(r,new w(new l("Module").with({fontWeight:600}),new l(r))).with({backgroundColor:V.background.gray})}const t=new S;t.setNode(m,g(m)),t.setNodeWithParent(d,g(d),m),t.setNode(e,s(e)),t.setNodeWithParent(n,s(n),m),t.setNodeWithParent(o,s(o),d),t.setNodeWithParent(a,s(a),d),t.setNode(u,s(u)),t.setNode(c,s(c)),t.setEdge(e,n),t.setEdge(n,o),t.setEdge(n,a),t.setEdge(o,a),t.setEdge(a,u),t.setEdge(a,c);function p({detail:{viewer:r}}){r.setDecoration(e,{backgroundColor:"rgb(237,249,239)",borderColor:"rgb(113,201,117)"}),r.setDecoration(c,{backgroundColor:"rgb(252,236,235)",borderColor:"rgb(239,90,88)"})}return[t,p]}class j extends h{constructor(e){super(),$(this,e,D,y,b,{})}}export{j as component}; diff --git a/_app/immutable/nodes/8.CVr-EtqJ.js b/_app/immutable/nodes/8.Cr5xcWYm.js similarity index 95% rename from _app/immutable/nodes/8.CVr-EtqJ.js rename to _app/immutable/nodes/8.Cr5xcWYm.js index d853ccf..f33ae56 100644 --- a/_app/immutable/nodes/8.CVr-EtqJ.js +++ b/_app/immutable/nodes/8.Cr5xcWYm.js @@ -1 +1 @@ -import{v as k}from"../chunks/stores.BEpXIDt_.js";import{s as w,a as $,B as m,o as x,f as u,d as M,i as p,e as V,c as D,g as N,h as S,n as _}from"../chunks/scheduler.BZf3Antt.js";import{S as P,i as T,b as f,e as y,t as d,g,c as j,a as q,m as z,d as B}from"../chunks/index.C7bWdOrd.js";import{V as C}from"../chunks/Viewer.CUaabvoY.js";import{c as E}from"../chunks/dot.BpqtT9be.js";import{c as H}from"../chunks/index.Dkpp2DVH.js";async function L({url:n,fetch:o}){const t=n.searchParams.get("url");if(t){const e=await o(t);if(e.url.endsWith(".onnx")){const r=await e.arrayBuffer();k.set({kind:"onnx",data:new Uint8Array(r)})}else if(e.url.endsWith(".dot")){const r=await e.text();k.set({kind:"dot",data:r})}else throw new Error(`unsupported file format: ${e.url}`)}}const R=Object.freeze(Object.defineProperty({__proto__:null,load:L},Symbol.toStringTag,{value:"Module"}));function O(n){let o,t='
Drop file here...
';return{c(){o=V("div"),o.innerHTML=t,this.h()},l(e){o=D(e,"DIV",{class:!0,"data-svelte-h":!0}),N(o)!=="svelte-19u92z9"&&(o.innerHTML=t),this.h()},h(){S(o,"class","grid w-full h-full place-items-center bg-gray-quaternary")},m(e,r){p(e,o,r)},p:_,i:_,o:_,d(e){e&&u(o)}}}function U(n){let o=n[0],t,e,r=v(n);return{c(){r.c(),t=m()},l(s){r.l(s),t=m()},m(s,i){r.m(s,i),p(s,t,i),e=!0},p(s,i){i&1&&w(o,o=s[0])?(g(),f(r,1,1,_),y(),r=v(s),r.c(),d(r,1),r.m(t.parentNode,t)):r.p(s,i)},i(s){e||(d(r),e=!0)},o(s){f(r),e=!1},d(s){s&&u(t),r.d(s)}}}function v(n){let o,t;return o=new C({props:{title:"Viewer",network:n[0]}}),{c(){j(o.$$.fragment)},l(e){q(o.$$.fragment,e)},m(e,r){z(o,e,r),t=!0},p(e,r){const s={};r&1&&(s.network=e[0]),o.$set(s)},i(e){t||(d(o.$$.fragment,e),t=!0)},o(e){f(o.$$.fragment,e),t=!1},d(e){B(o,e)}}}function W(n){let o,t,e,r,s;const i=[U,O],l=[];function b(a,c){return a[0]?0:1}return t=b(n),e=l[t]=i[t](n),{c(){o=$(),e.c(),r=m(),this.h()},l(a){x("svelte-1te25ve",document.head).forEach(u),o=M(a),e.l(a),r=m(),this.h()},h(){document.title="Viewer • Mycelium"},m(a,c){p(a,o,c),l[t].m(a,c),p(a,r,c),s=!0},p(a,[c]){let h=t;t=b(a),t===h?l[t].p(a,c):(g(),f(l[h],1,1,()=>{l[h]=null}),y(),e=l[t],e?e.p(a,c):(e=l[t]=i[t](a),e.c()),d(e,1),e.m(r.parentNode,r))},i(a){s||(d(e),s=!0)},o(a){f(e),s=!1},d(a){a&&(u(o),u(r)),l[t].d(a)}}}function A(n,o,t){let e;return k.subscribe(r=>{switch(r?.kind){case void 0:break;case"dot":t(0,e=E(r.data));break;case"onnx":t(0,e=H(r.data));break}}),[e]}class X extends P{constructor(o){super(),T(this,o,A,W,w,{})}}export{X as component,R as universal}; +import{v as k}from"../chunks/stores.BEpXIDt_.js";import{s as w,a as $,B as m,o as x,f as u,d as M,i as p,e as V,c as D,g as N,h as S,n as _}from"../chunks/scheduler.BZf3Antt.js";import{S as P,i as T,b as f,e as y,t as d,g,c as j,a as q,m as z,d as B}from"../chunks/index.C7bWdOrd.js";import{V as C}from"../chunks/Viewer.C5t0eI9O.js";import{c as E}from"../chunks/dot.Bgkvpxeo.js";import{c as H}from"../chunks/index.BeFZgILa.js";async function L({url:n,fetch:o}){const t=n.searchParams.get("url");if(t){const e=await o(t);if(e.url.endsWith(".onnx")){const r=await e.arrayBuffer();k.set({kind:"onnx",data:new Uint8Array(r)})}else if(e.url.endsWith(".dot")){const r=await e.text();k.set({kind:"dot",data:r})}else throw new Error(`unsupported file format: ${e.url}`)}}const R=Object.freeze(Object.defineProperty({__proto__:null,load:L},Symbol.toStringTag,{value:"Module"}));function O(n){let o,t='
Drop file here...
';return{c(){o=V("div"),o.innerHTML=t,this.h()},l(e){o=D(e,"DIV",{class:!0,"data-svelte-h":!0}),N(o)!=="svelte-19u92z9"&&(o.innerHTML=t),this.h()},h(){S(o,"class","grid w-full h-full place-items-center bg-gray-quaternary")},m(e,r){p(e,o,r)},p:_,i:_,o:_,d(e){e&&u(o)}}}function U(n){let o=n[0],t,e,r=v(n);return{c(){r.c(),t=m()},l(s){r.l(s),t=m()},m(s,i){r.m(s,i),p(s,t,i),e=!0},p(s,i){i&1&&w(o,o=s[0])?(g(),f(r,1,1,_),y(),r=v(s),r.c(),d(r,1),r.m(t.parentNode,t)):r.p(s,i)},i(s){e||(d(r),e=!0)},o(s){f(r),e=!1},d(s){s&&u(t),r.d(s)}}}function v(n){let o,t;return o=new C({props:{title:"Viewer",network:n[0]}}),{c(){j(o.$$.fragment)},l(e){q(o.$$.fragment,e)},m(e,r){z(o,e,r),t=!0},p(e,r){const s={};r&1&&(s.network=e[0]),o.$set(s)},i(e){t||(d(o.$$.fragment,e),t=!0)},o(e){f(o.$$.fragment,e),t=!1},d(e){B(o,e)}}}function W(n){let o,t,e,r,s;const i=[U,O],l=[];function b(a,c){return a[0]?0:1}return t=b(n),e=l[t]=i[t](n),{c(){o=$(),e.c(),r=m(),this.h()},l(a){x("svelte-1te25ve",document.head).forEach(u),o=M(a),e.l(a),r=m(),this.h()},h(){document.title="Viewer • Mycelium"},m(a,c){p(a,o,c),l[t].m(a,c),p(a,r,c),s=!0},p(a,[c]){let h=t;t=b(a),t===h?l[t].p(a,c):(g(),f(l[h],1,1,()=>{l[h]=null}),y(),e=l[t],e?e.p(a,c):(e=l[t]=i[t](a),e.c()),d(e,1),e.m(r.parentNode,r))},i(a){s||(d(e),s=!0)},o(a){f(e),s=!1},d(a){a&&(u(o),u(r)),l[t].d(a)}}}function A(n,o,t){let e;return k.subscribe(r=>{switch(r?.kind){case void 0:break;case"dot":t(0,e=E(r.data));break;case"onnx":t(0,e=H(r.data));break}}),[e]}class X extends P{constructor(o){super(),T(this,o,A,W,w,{})}}export{X as component,R as universal}; diff --git a/_app/immutable/nodes/9.xqSS8nyK.js b/_app/immutable/nodes/9.CgXEf7WY.js similarity index 99% rename from _app/immutable/nodes/9.xqSS8nyK.js rename to _app/immutable/nodes/9.CgXEf7WY.js index 6f6ba5d..37ca157 100644 --- a/_app/immutable/nodes/9.xqSS8nyK.js +++ b/_app/immutable/nodes/9.CgXEf7WY.js @@ -1,4 +1,4 @@ -import{s as J,e as b,J as ue,c as v,b as k,K as fe,f,h as _,i as x,n as L,k as Y,a as M,t as H,d as V,v as j,j as $,w as F,u as ee,l as te,m as ne,a0 as ae,a1 as de,o as me,g as G,L as he,q as ge,r as pe}from"../chunks/scheduler.BZf3Antt.js";import{S as O,i as R,c as S,a as T,m as P,t as E,b as N,d as z,g as _e,e as $e}from"../chunks/index.C7bWdOrd.js";import{b as Q}from"../chunks/paths.BILvqvyt.js";/* empty css */import{I as be,B as ve,C as we,L as xe,a as ye}from"../chunks/index.Cv9_d-Ac.js";import{N as ke,a as le,V as ie,T as X,c as Ce,b as Ee}from"../chunks/viewer.VKJlf1_4.js";function De(i){let e,n,s=`@inproceedings{Hoh+2024, +import{s as J,e as b,J as ue,c as v,b as k,K as fe,f,h as _,i as x,n as L,k as Y,a as M,t as H,d as V,v as j,j as $,w as F,u as ee,l as te,m as ne,a0 as ae,a1 as de,o as me,g as G,L as he,q as ge,r as pe}from"../chunks/scheduler.BZf3Antt.js";import{S as O,i as R,c as S,a as T,m as P,t as E,b as N,d as z,g as _e,e as $e}from"../chunks/index.C7bWdOrd.js";import{b as Q}from"../chunks/paths.CFq_Q8H9.js";/* empty css */import{I as be,B as ve,C as we,L as xe,a as ye}from"../chunks/index.Cv9_d-Ac.js";import{N as ke,a as le,V as ie,T as X,c as Ce,b as Ee}from"../chunks/viewer.BYFc8Cdc.js";function De(i){let e,n,s=`@inproceedings{Hoh+2024, title={Talaria: Interactively Optimizing Machine Learning Models for Efficient Inference}, author={Fred Hohman and Chaoqun Wang and Jinmook Lee and Jochen Görtler and Dominik Moritz and Jeffrey Bigham and Zhile Ren and Cecile Foret and Qi Shan and Xiaoyi Zhang}, booktitle={Proceedings of the SIGCHI Conference on Human Factors in Computing Systems}, diff --git a/_app/version.json b/_app/version.json index b42be7f..9396597 100644 --- a/_app/version.json +++ b/_app/version.json @@ -1 +1 @@ -{"version":"1725541329257"} \ No newline at end of file +{"version":"1725541608307"} \ No newline at end of file diff --git a/example/dot/index.html b/example/dot/index.html index bee7c83..97cc416 100644 --- a/example/dot/index.html +++ b/example/dot/index.html @@ -12,30 +12,30 @@ - - + + - - + + - - + + - - - + + + - Graphviz Dot • Example • Mycelium + Graphviz Dot • Example • Mycelium