@highstate/designer 0.15.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{xiAiC-VY.js → -oaD50UK.js} +1 -1
- package/.output/public/_nuxt/{CodzMKzx.js → 0ekw3e2V.js} +1 -1
- package/.output/public/_nuxt/{CM0USXxa.js → 1f5tAgHw.js} +1 -1
- package/.output/public/_nuxt/{DTEvwfme.js → 54_UD3a3.js} +1 -1
- package/.output/public/_nuxt/{8hNo2oxe.js → 5ggY4uig.js} +1 -1
- package/.output/public/_nuxt/{htyOXo2B.js → 6EZimURw.js} +1 -1
- package/.output/public/_nuxt/{Be3bUPYU.js → BFNM2w_f.js} +1 -1
- package/.output/public/_nuxt/{BBhg39jC.js → BGLu70Yq.js} +1 -1
- package/.output/public/_nuxt/{8KpM6cBw.js → BIuj43Wh.js} +1 -1
- package/.output/public/_nuxt/BNGfscqk.js +1 -0
- package/.output/public/_nuxt/{C1OzDFAd.js → BUXOnL59.js} +1 -1
- package/.output/public/_nuxt/{BYmHaUHG.js → Bbwybh3N.js} +1 -1
- package/.output/public/_nuxt/{DaZa-Z5n.js → BczD6j-v.js} +1 -1
- package/.output/public/_nuxt/{B13CirDR.js → Bh0qehhp.js} +1 -1
- package/.output/public/_nuxt/{rtii14lI.js → BmDdxTjo.js} +1 -1
- package/.output/public/_nuxt/{DdSZEM1_.js → BqeRdtD4.js} +2 -2
- package/.output/public/_nuxt/{B3_RfxPY.js → BxZD33h1.js} +1 -1
- package/.output/public/_nuxt/{C-Sr9OUA.js → CCd08HS_.js} +1 -1
- package/.output/public/_nuxt/{DIo7DiTh.js → CJ6lOLXp.js} +1 -1
- package/.output/public/_nuxt/CN9dMhDM.js +1 -0
- package/.output/public/_nuxt/{HXyjJC-p.js → CQ4fj8p0.js} +1 -1
- package/.output/public/_nuxt/{CXHtlxuP.js → CXxzV4dz.js} +1 -1
- package/.output/public/_nuxt/{BktRuikR.js → CatV_12G.js} +1 -1
- package/.output/public/_nuxt/{bgIcLC22.js → CeMkeBDb.js} +1 -1
- package/.output/public/_nuxt/{CBZUZSSS.js → CelvVQyk.js} +1 -1
- package/.output/public/_nuxt/{CnrObePb.js → CfV455SO.js} +1 -1
- package/.output/public/_nuxt/{D9ayVCRO.js → CfqrF6sE.js} +1 -1
- package/.output/public/_nuxt/{Bi--9362.js → Cfs9EX91.js} +1 -1
- package/.output/public/_nuxt/{LXHlNQaX.js → ChM1GEGa.js} +1 -1
- package/.output/public/_nuxt/CimE6O20.js +280 -0
- package/.output/public/_nuxt/CtwNW5xN.js +1 -0
- package/.output/public/_nuxt/{D9yrQeKB.js → Cu8OsqJL.js} +1 -1
- package/.output/public/_nuxt/{BCAAo2Xs.js → CusJppg0.js} +1 -1
- package/.output/public/_nuxt/{DZALWWcz.js → CvELRi2k.js} +1 -1
- package/.output/public/_nuxt/{c7cuww2j.js → Cw6nGM9K.js} +1 -1
- package/.output/public/_nuxt/{DfRNGSx_.js → CwUT5n6w.js} +1 -1
- package/.output/public/_nuxt/{DazHGnQt.js → D-AHKB2i.js} +1 -1
- package/.output/public/_nuxt/{BQe-EN0e.js → D-kcn2fr.js} +1 -1
- package/.output/public/_nuxt/{gPpeS_SO.js → D1ibY74j.js} +1 -1
- package/.output/public/_nuxt/D34EmFco.js +1 -0
- package/.output/public/_nuxt/{BQKBEqPh.js → D4OhWExI.js} +1 -1
- package/.output/public/_nuxt/{WyI18QTo.js → DDHikT5j.js} +1 -1
- package/.output/public/_nuxt/{CDPBuKr5.js → DDTT3lYc.js} +1 -1
- package/.output/public/_nuxt/DFsBSlE_.js +1 -0
- package/.output/public/_nuxt/{B7HXz7Pj.js → DHLkt8Yr.js} +1 -1
- package/.output/public/_nuxt/{B0CZVjFF.js → DHuTDtaT.js} +1 -1
- package/.output/public/_nuxt/{CYdh-fCb.js → DRzH1pOL.js} +1 -1
- package/.output/public/_nuxt/DSUF3NDE.js +1 -0
- package/.output/public/_nuxt/{Bu-pZzEo.js → DWmtspXK.js} +1 -1
- package/.output/public/_nuxt/DXh9HyqW.js +1 -0
- package/.output/public/_nuxt/DXtl0MQI.js +1 -0
- package/.output/public/_nuxt/{BxDN7GvZ.js → D_zCY0Xl.js} +1 -1
- package/.output/public/_nuxt/{DwgroK_o.js → DaZJpzOl.js} +1 -1
- package/.output/public/_nuxt/{BC4bzN3h.js → DcmvOc98.js} +1 -1
- package/.output/public/_nuxt/DhQfdAdO.js +1 -0
- package/.output/public/_nuxt/{C492izQx.js → Dm4QKadl.js} +8 -8
- package/.output/public/_nuxt/{BaNZZ_dQ.js → DmCK90gL.js} +1 -1
- package/.output/public/_nuxt/DqRHBxBn.js +1 -0
- package/.output/public/_nuxt/{Clpw7Yi1.js → DtFoCuZo.js} +1 -1
- package/.output/public/_nuxt/{CBhhCAGJ.js → DxuitVdg.js} +1 -1
- package/.output/public/_nuxt/{yQo4vWqK.js → GAB5JH5K.js} +1 -1
- package/.output/public/_nuxt/{Doe3qPsx.js → LUl67wzp.js} +1 -1
- package/.output/public/_nuxt/{CuLjlXlo.js → M2rHlmBj.js} +1 -1
- package/.output/public/_nuxt/{CAWn6QGE.js → U3pqMjXV.js} +1 -1
- package/.output/public/_nuxt/XrMy4kkt.js +1 -0
- package/.output/public/_nuxt/{CiW4qRt5.js → YB_1Ta41.js} +1 -1
- package/.output/public/_nuxt/{Xt7jYYu7.js → YXI84j39.js} +1 -1
- package/.output/public/_nuxt/{DAbczt3Y.js → ZZ6g6dXy.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/5447597b-48ec-41ad-8928-729a28784f20.json +1 -0
- package/.output/public/_nuxt/{edge-router-qFL00oIW.js → edge-router-yEORMNQw.js} +1 -1
- package/.output/public/_nuxt/{entry.CvsoFAPr.css → entry.BAsn-2au.css} +1 -1
- package/.output/public/_nuxt/error-404.h4BWQQPs.css +1 -0
- package/.output/public/_nuxt/error-500.B72O9eXJ.css +1 -0
- package/.output/public/_nuxt/{AlZVL3pR.js → ga9TZ2z5.js} +1 -1
- package/.output/public/_nuxt/graph-resolver-Cs66Hj63.js +166 -0
- package/.output/public/_nuxt/ih8zLb53.js +14 -0
- package/.output/public/_nuxt/{B0MclPaN.js → ov4D99rA.js} +1 -1
- package/.output/public/_nuxt/{BcIhEyqj.js → qYU5Tabh.js} +1 -1
- package/.output/public/_nuxt/{vuetify.DF63EsYl.css → vuetify.BrkCt9t5.css} +1 -1
- package/.output/public/_nuxt/{yaml.worker-B7qHIEmf.js → yaml.worker-CQ6dFw39.js} +10 -10
- package/.output/server/index.mjs +1527 -1527
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/package.json +1 -1
- package/package.json +4 -4
- package/.output/public/_nuxt/3xoHIewA.js +0 -283
- package/.output/public/_nuxt/6pS6ZuG3.js +0 -1
- package/.output/public/_nuxt/B8cfqe27.js +0 -16
- package/.output/public/_nuxt/BJeaBD25.js +0 -1
- package/.output/public/_nuxt/CZeOmOJM.js +0 -1
- package/.output/public/_nuxt/CgmzNBdw.js +0 -1
- package/.output/public/_nuxt/CqbFpzKO.js +0 -1
- package/.output/public/_nuxt/DA8LIUWa.js +0 -1
- package/.output/public/_nuxt/DbcOKM93.js +0 -1
- package/.output/public/_nuxt/DeyR_GFX.js +0 -1
- package/.output/public/_nuxt/MBzYIBwY.js +0 -1
- package/.output/public/_nuxt/SucuqcV1.js +0 -1
- package/.output/public/_nuxt/builds/meta/40fca5d2-f9f2-4e82-849f-81a42733e9df.json +0 -1
- package/.output/public/_nuxt/error-404.CtwfpkiA.css +0 -1
- package/.output/public/_nuxt/error-500.OXvA_D27.css +0 -1
- package/.output/public/_nuxt/graph-resolver-CizqVag8.js +0 -169
- package/.output/public/_nuxt/luRfMbTH.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as c,t as g,s as w}from"#entry";import{_ as u,I as k}from"./
|
|
1
|
+
import{q as c,t as g,s as w}from"#entry";import{_ as u,I as k}from"./BmDdxTjo.js";import{S as v}from"./DXh9HyqW.js";import{D as I,a as S}from"./BxZD33h1.js";import{a as b}from"./M3Z1JMP1.js";import{E as x,aL as l,Z as d,W as p,a1 as i,F as e,X as s,K as A,aP as C,a2 as D,a3 as O}from"./Dm4QKadl.js";import{_ as z}from"./DtFoCuZo.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";const T={key:1,class:"text-caption text-medium-emphasis"},H=x({__name:"[operationId]",props:{params:{}},async setup(m){let a,r;const{settingsStore:f}=c(),{projectStore:o}=c();o.initializing?([a,r]=l(()=>w(()=>o.initialized).toBe(!0)),await a,r(),o.addLibraryRoot()):([a,r]=l(()=>o.initialize1()),await a,r(),[a,r]=l(()=>o.initialize2()),await a,r());const t=([a,r]=l(()=>f.getOperationDetails(m.params.operationId)),a=await a,r(),a);if(!t)throw g({statusCode:404,statusMessage:"Operation not found"});const y=[{key:"operationId",label:"Operation ID"},{key:"type",label:"Type"},{key:"status",label:"Status"},{key:"startedAt",label:"Started"},{key:"finishedAt",label:"Finished"}],_=n=>{switch(n){case"update":return"mdi-update";case"preview":return"mdi-eye";case"destroy":return"mdi-delete";case"recreate":return"mdi-refresh";case"refresh":return"mdi-refresh";default:return"mdi-cog"}},h=n=>{switch(n){case"update":return"primary";case"preview":return"info";case"destroy":return"error";case"recreate":return"warning";case"refresh":return"success";default:return"grey"}};return(n,B)=>(p(),d(e(I),null,{default:i(()=>[s(v,{meta:e(t).meta,"fallback-icon":"mdi-cog",title:e(t).meta.title||`${e(t).type} Operation`,description:e(t).meta.description},null,8,["meta","title","description"]),s(e(S),{title:"Operation Details",items:y},{"item.operationId":i(()=>[s(e(k),{value:e(t).id},null,8,["value"])]),"item.type":i(()=>[s(C,{color:h(e(t).type),"prepend-icon":_(e(t).type),variant:"flat",size:"small",class:"text-capitalize"},{default:i(()=>[D(O(e(t).type),1)]),_:1},8,["color","prepend-icon"])]),"item.status":i(()=>[s(e(z),{status:e(t).status,"status-map":e(b)},null,8,["status","status-map"])]),"item.startedAt":i(()=>[s(e(u),{value:e(t).startedAt},null,8,["value"])]),"item.finishedAt":i(()=>[e(t).finishedAt?(p(),d(e(u),{key:0,value:e(t).finishedAt},null,8,["value"])):(p(),A("div",T,"Not finished"))]),_:1})]),_:1}))}});export{H as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{v as z,l as O,x as A,y as G,z as F,A as H,B as S,q as L,t as N,s as k,n as q}from"#entry";import{I as x}from"./BmDdxTjo.js";import{S as W}from"./DXh9HyqW.js";import{D as K,a as X}from"./BxZD33h1.js";import{O as Z}from"./CvELRi2k.js";import{_ as h}from"./CeMkeBDb.js";import{_ as J}from"./Bh0qehhp.js";import{_ as Q}from"./BUXOnL59.js";import{_ as Y}from"./CJ6lOLXp.js";import{_}from"./D4OhWExI.js";import{E as $,Z as D,W as R,F as e,a1 as i,X as o,n as T,aL as B,$ as V,ai as ee,a2 as M,a3 as te,aF as ae,ay as se,aE as oe,aM as ie}from"./Dm4QKadl.js";import{_ as ne}from"./U3pqMjXV.js";import{G as re,H as le,I as de}from"./ih8zLb53.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";import"./DtFoCuZo.js";import"./CwUT5n6w.js";import"./DxuitVdg.js";import"./M3Z1JMP1.js";import"./CQ4fj8p0.js";import"./GAB5JH5K.js";import"./0ekw3e2V.js";import"./DcmvOc98.js";import"./CfV455SO.js";import"./DhQfdAdO.js";import"./DXtl0MQI.js";const ue=$({__name:"PreviewCanvas",props:{instances:{},hubs:{default:()=>[]},components:{},entities:{},autoPosition:{type:Boolean,default:!0},interactive:{type:Boolean,default:!1}},emits:["ready"],setup(s,{emit:l}){const d=l,f=z.createId(),w=O.child({customCanvasId:f}),{outputs:P,dependentMap:b,set:y,dispatchInitialNodes:j}=A("InputResolver",w,G,!0),c=async n=>{n.nodeFactory.createNodesForModels(s.instances,s.hubs,{readonly:!0});for(const r of s.instances){const U=s.components[r.type];y(`instance:${r.id}`,{kind:"instance",instance:r,component:U})}for(const r of s.hubs)y(`hub:${r.id}`,{kind:"hub",hub:r});const I=[j()];s.autoPosition?I.push(F(n.vueFlowStore).then(()=>H(n.vueFlowStore)).then(()=>n.vueFlowStore.fitView()).then(()=>T()).then(()=>S(n.vueFlowStore,n.onNodesMoved,n.edgeEndpointOffsets))):I.push(F(n.vueFlowStore).then(()=>n.vueFlowStore.fitView()).then(()=>T()).then(()=>S(n.vueFlowStore,n.onNodesMoved,n.edgeEndpointOffsets))),await Promise.all(I),d("ready")};return(n,I)=>(R(),D(re,{"canvas-id":["custom",e(f)],onInit:c,"input-resolver-outputs":e(P),components:s.components,entities:s.entities,minimap:!1,interactive:s.interactive},{"node-instance":i(({data:r})=>[o(e(de),{instance:r.instance,component:s.components[r.instance.type],entities:s.entities,"input-resolver-outputs":e(P),"input-resolver-dependent-map":e(b),editable:""},null,8,["instance","component","entities","input-resolver-outputs","input-resolver-dependent-map"])]),"node-hub":i(({data:r})=>[o(le,{hub:r.hub},null,8,["hub"])]),_:1},8,["canvas-id","input-resolver-outputs","components","entities","interactive"]))}}),pe={class:"d-flex ga-6",style:{"min-height":"400px"}},me={class:"text-body-2 text-capitalize"},ze=$({__name:"[stateId]",props:{params:{}},async setup(s){let l,d;const{settingsStore:f,instancesStore:w,stateStore:P,libraryStore:b}=L(),{projectStore:y}=L();y.initializing?([l,d]=B(()=>k(()=>y.initialized).toBe(!0)),await l,d(),y.addLibraryRoot()):([l,d]=B(()=>y.initialize1()),await l,d(),[l,d]=B(()=>y.initialize2()),await l,d()),[l,d]=B(()=>k(()=>w.initializationPhase!=="loading").toBe(!0)),await l,d(),[l,d]=B(()=>k(()=>P.statesLoaded).toBe(!0)),await l,d();const j=P.getStateByStateId(s.params.stateId)?.instanceId;if(!j)throw N({statusCode:404,statusMessage:"Instance not found for the given state ID"});const c=w.instances.get(j);if(!c)throw N({statusCode:404,statusMessage:"Instance not found"});const n=b.library.components[c.type],I=n?.meta,r=[{key:"instanceId",label:"Instance ID"},{key:"stateId",label:"State ID"},{key:"type",label:"Component Type"},{key:"kind",label:"Kind"}],U=b.library.components,E=b.library.entities,u=f.terminalsForState(s.params.stateId),p=f.secretsForState(s.params.stateId),m=f.pagesForState(s.params.stateId),g=f.triggersForState(s.params.stateId),v=f.artifactsForState(s.params.stateId);return u.load(),p.load(),m.load(),g.load(),v.load(),(C,t)=>(R(),D(e(K),null,{default:i(()=>[o(W,{meta:e(I),"fallback-icon":"mdi-cube-outline",title:e(n).meta.title,description:e(c).name},{actions:i(()=>[o(ee,{variant:"outlined","prepend-icon":"mdi-vector-square",onClick:t[0]||(t[0]=()=>{("navigateTo"in C?C.navigateTo:e(q))({name:"project",params:{projectId:s.params.projectId}})})},{default:i(()=>[...t[21]||(t[21]=[M(" View in Canvas ",-1)])]),_:1})]),_:1},8,["meta","title","description"]),V("div",pe,[o(e(X),{title:"Instance Details",items:r,style:{flex:"1"}},{"item.instanceId":i(()=>[o(e(x),{truncate:!1,value:e(c).id},null,8,["value"])]),"item.stateId":i(()=>[o(e(x),{truncate:!1,value:s.params.stateId},null,8,["value"])]),"item.type":i(()=>[o(e(x),{truncate:!1,value:e(c).type},null,8,["value"])]),"item.kind":i(()=>[V("div",me,te(e(c).kind),1)]),_:1}),o(oe,{style:{flex:"1",border:"solid 2px #2d2d2d"},elevation:0},{default:i(()=>[o(ae,{class:"d-flex align-center"},{default:i(()=>[...t[22]||(t[22]=[M("Preview",-1)])]),_:1}),o(se,{class:"pa-0",style:{height:"350px"}},{default:i(()=>[o(e(ue),{instances:[e(c)],hubs:[],components:e(U),entities:e(E),"auto-position":!1},null,8,["instances","components","entities"])]),_:1})]),_:1})]),o(ie,{elevation:0},{default:i(()=>[o(e(Z),{title:"Instance Model",data:e(c)},null,8,["data"]),o(e(h),{title:"Terminals",icon:"mdi-console",count:e(u).data.value.total},{default:i(()=>[o(e(J),{search:e(u).search.value,"onUpdate:search":t[1]||(t[1]=a=>e(u).search.value=a),"sort-by":e(u).sortBy.value,"onUpdate:sortBy":t[2]||(t[2]=a=>e(u).sortBy.value=a),page:e(u).page.value,"onUpdate:page":t[3]||(t[3]=a=>e(u).page.value=a),"items-per-page":e(u).itemsPerPage.value,"onUpdate:itemsPerPage":t[4]||(t[4]=a=>e(u).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(u).data.value,loading:e(u).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(h),{title:"Secrets",icon:"mdi-key-variant",count:e(p).data.value.total},{default:i(()=>[o(e(Q),{search:e(p).search.value,"onUpdate:search":t[5]||(t[5]=a=>e(p).search.value=a),"sort-by":e(p).sortBy.value,"onUpdate:sortBy":t[6]||(t[6]=a=>e(p).sortBy.value=a),page:e(p).page.value,"onUpdate:page":t[7]||(t[7]=a=>e(p).page.value=a),"items-per-page":e(p).itemsPerPage.value,"onUpdate:itemsPerPage":t[8]||(t[8]=a=>e(p).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(p).data.value,loading:e(p).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(h),{title:"Pages",icon:"mdi-file-document-outline",count:e(m).data.value.total},{default:i(()=>[o(e(Y),{search:e(m).search.value,"onUpdate:search":t[9]||(t[9]=a=>e(m).search.value=a),"sort-by":e(m).sortBy.value,"onUpdate:sortBy":t[10]||(t[10]=a=>e(m).sortBy.value=a),page:e(m).page.value,"onUpdate:page":t[11]||(t[11]=a=>e(m).page.value=a),"items-per-page":e(m).itemsPerPage.value,"onUpdate:itemsPerPage":t[12]||(t[12]=a=>e(m).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(m).data.value,loading:e(m).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(h),{title:"Triggers",icon:"mdi-lightning-bolt",count:e(g).data.value.total},{default:i(()=>[o(e(_),{search:e(g).search.value,"onUpdate:search":t[13]||(t[13]=a=>e(g).search.value=a),"sort-by":e(g).sortBy.value,"onUpdate:sortBy":t[14]||(t[14]=a=>e(g).sortBy.value=a),page:e(g).page.value,"onUpdate:page":t[15]||(t[15]=a=>e(g).page.value=a),"items-per-page":e(g).itemsPerPage.value,"onUpdate:itemsPerPage":t[16]||(t[16]=a=>e(g).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(g).data.value,loading:e(g).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"]),o(e(h),{title:"Artifacts",icon:"mdi-package-variant",count:e(v).data.value.total},{default:i(()=>[o(e(ne),{search:e(v).search.value,"onUpdate:search":t[17]||(t[17]=a=>e(v).search.value=a),"sort-by":e(v).sortBy.value,"onUpdate:sortBy":t[18]||(t[18]=a=>e(v).sortBy.value=a),page:e(v).page.value,"onUpdate:page":t[19]||(t[19]=a=>e(v).page.value=a),"items-per-page":e(v).itemsPerPage.value,"onUpdate:itemsPerPage":t[20]||(t[20]=a=>e(v).itemsPerPage.value=a),"project-id":s.params.projectId,data:e(v).data.value,loading:e(v).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1})]),_:1}))}});export{ze as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{E as o,Z as u,W as l,aP as d,aV as f,a1 as n,X as g,aY as m,a2 as z,a3 as h}from"./
|
|
1
|
+
import{E as o,Z as u,W as l,aP as d,aV as f,a1 as n,X as g,aY as m,a2 as z,a3 as h}from"./Dm4QKadl.js";const C=o({__name:"StatusChip",props:{status:{},statusMap:{},size:{default:"small"}},setup(t){const r=a=>t.statusMap[a]?.color??"secondary",i=a=>{const e=t.statusMap[a];if(!(!e||"loading"in e))return e.icon??"mdi-circle"},s=a=>{const e=t.statusMap[a];return e&&"loading"in e&&e.loading},c=a=>{switch(a){case"x-small":return 12;case"small":return 16;case"default":return 20;case"large":return 24;case"x-large":return 28;default:return 16}};return(a,e)=>(l(),u(d,{color:r(t.status),"prepend-icon":s(t.status)?void 0:i(t.status),variant:"flat",size:t.size,class:"font-weight-bold"},f({default:n(()=>[z(" "+h(t.status),1)]),_:2},[s(t.status)?{name:"prepend",fn:n(()=>[g(m,{size:c(t.size)-4,width:2,indeterminate:"",class:"mr-2"},null,8,["size"])]),key:"0"}:void 0]),1032,["color","prepend-icon","size"]))}});export{C as _};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{I as x,_ as b}from"#entry";import{_ as k,I as B}from"./
|
|
1
|
+
import{I as x,_ as b}from"#entry";import{_ as k,I as B}from"./BmDdxTjo.js";import{E as S,aO as V,av as r,ae as I,K as c,W as d,_ as l,$ as i,Z as m,X as u,a0 as C,a1 as o,a2 as w,a3 as n,az as A,aU as D,aV as M,af as T,F as U,ab as N,ak as H,al as $}from"./Dm4QKadl.js";import"./DXh9HyqW.js";const Q={name:{key:"meta.title",title:"Name & Description"},id:{key:"id",title:"ID"},createdAt:{key:"createdAt",title:"Created"},actions:{key:"actions",title:"Actions",align:"center"}},z={class:"settings-table-container"},E={key:0,class:"table-header"},F={class:"d-flex align-center"},K={class:"text-subtitle-1 font-weight-medium"},L={class:"table-wrapper"},O={class:"d-flex align-center"},R={class:"d-flex flex-column"},W={class:"text-body-1 font-weight-medium"},X={key:0,class:"text-caption text-medium-emphasis"},Z=S({__name:"SettingsDataTable",props:V({headers:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},hideSearch:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(t){const h=r(t,"search"),g=r(t,"sortBy"),y=r(t,"page"),f=r(t,"itemsPerPage"),v=I();return(p,a)=>(d(),c("div",z,[t.hideHeader?l("",!0):(d(),c("div",E,[i("div",F,[u(C,{class:"mr-2"},{default:o(()=>[...a[4]||(a[4]=[w("mdi-format-list-bulleted",-1)])]),_:1}),i("span",K,n(t.data.total)+" item"+n(t.data.total===1?"":"s"),1)]),t.hideSearch?l("",!0):(d(),m(A,{key:0,modelValue:h.value,"onUpdate:modelValue":a[0]||(a[0]=e=>h.value=e),"prepend-inner-icon":"mdi-magnify",placeholder:"Search",variant:"outlined",density:"compact",clearable:"","hide-details":"",style:{"max-width":"300px"}},null,8,["modelValue"]))])),i("div",L,[u(D,{headers:t.headers,items:t.data.items,"items-length":t.data.total,loading:t.loading,page:y.value,"onUpdate:page":a[1]||(a[1]=e=>y.value=e),"items-per-page":f.value,"onUpdate:itemsPerPage":a[2]||(a[2]=e=>f.value=e),"sort-by":g.value,"onUpdate:sortBy":a[3]||(a[3]=e=>g.value=e),"item-value":"id",class:"data-table","fixed-header":"",height:t.height},M({"item.meta.title":o(({item:e})=>[i("div",O,[e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon?(d(),m(U(x),{key:0,icon:e.meta.icon||t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIcon,color:e.meta.iconColor??(e.meta.icon?void 0:t.headers.find(s=>s.key==="meta.title")?.headerProps?.defaultPrimaryIconColor),width:"24",class:"mr-4"},null,8,["icon","color"])):l("",!0),i("div",R,[i("div",W,n(e.meta.title||"Unnamed"),1),e.meta.description?(d(),c("div",X,n(e.meta.description.split(`
|
|
2
2
|
`)[0]),1)):l("",!0)])])]),"item.id":o(({item:e})=>[u(B,{value:e.id},null,8,["value"])]),"item.createdAt":o(({item:e})=>[e.createdAt?(d(),m(k,{key:0,value:e.createdAt},null,8,["value"])):l("",!0)]),"no-data":o(()=>[a[5]||(a[5]=i("div",{class:"text-center py-4"},[i("div",{class:"text-h6 text-medium-emphasis"},"No data available")],-1))]),_:2},[T(v,(e,s)=>({name:s,fn:o(P=>[N(p.$slots,s,H($(P)),void 0,!0)])}))]),1032,["headers","items","items-length","loading","page","items-per-page","sort-by","height"])])]))}}),Y=b(Z,[["__scopeId","data-v-d8ca3f82"]]);export{Y as S,Q as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as a}from"#entry";import{E as o}from"./
|
|
1
|
+
import{q as a}from"#entry";import{E as o}from"./0ekw3e2V.js";import{E as r,Z as i,W as n,F as c}from"./Dm4QKadl.js";const f=r({__name:"ServiceAccountRefChip",props:{item:{}},setup(e){const{projectStore:t}=a();return(s,m)=>(n(),i(c(o),{id:e.item.serviceAccountId,meta:e.item.serviceAccountMeta,"fallback-icon":"mdi-account-circle","page-name":"settings.service-account-details","page-params":{projectId:c(t).projectId,serviceAccountId:e.item.serviceAccountId}},null,8,["id","meta","page-params"]))}});export{f as _};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as D,s as N}from"#entry";import"./
|
|
1
|
+
import{q as D,s as N}from"#entry";import"./DXh9HyqW.js";import{S as E}from"./5ggY4uig.js";import{b as P,S as H}from"./DxuitVdg.js";import{u as R}from"./M3Z1JMP1.js";import{_ as W}from"./DtFoCuZo.js";import{_ as q}from"./DcmvOc98.js";import{E as V,aO as U,av as M,r as k,w as K,Z as w,W as b,a1 as l,aw as S,X as o,ay as j,_ as $,F as t,aB as T,a2 as v,a3 as A,aC as I,aD as z,ai as C,aE as L,a0 as O,aF as X,$ as B,aL as x,K as Z,b as F,a9 as G}from"./Dm4QKadl.js";import{_ as J,c as Q}from"./D34EmFco.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";import"./BmDdxTjo.js";import"./D-AHKB2i.js";const Y=V({__name:"CreateUnlockMethodDialog",props:{visible:{type:Boolean},visibleModifiers:{}},emits:U(["created"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=g,{settingsStore:c}=D(),p=k(!1),u=k(!1),m=k(null),h=k(),e=k({type:"password",title:"",description:"",password:"",confirmPassword:""}),i=()=>{n.value=!1,h.value?.resetForm(),m.value=null},y=async()=>{if(p.value){u.value=!0,m.value=null;try{const a=await Q(e.value);await c.addUnlockMethod(a),n.value=!1,h.value?.resetForm(),m.value=null,s("created")}catch(a){console.error("Failed to create unlock method:",a),m.value="Some error occurred"}finally{u.value=!1}}};return K(n,a=>{a||(h.value?.resetForm(),m.value=null)}),(a,d)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":d[2]||(d[2]=f=>n.value=f),"max-width":"600px"},{default:l(()=>[o(L,{title:"Create Unlock Method"},{default:l(()=>[o(j,null,{default:l(()=>[o(J,{ref_key:"unlockMethodForm",ref:h,"onUpdate:valid":d[0]||(d[0]=f=>p.value=f),"onUpdate:form":d[1]||(d[1]=f=>e.value=f)},null,512),t(m)?(b(),w(T,{key:0,type:"error",density:"compact",class:"mb-4"},{default:l(()=>[v(A(t(m)),1)]),_:1})):$("",!0)]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(u),onClick:i},{default:l(()=>[...d[3]||(d[3]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"primary",disabled:!t(p),loading:t(u),onClick:y},{default:l(()=>[...d[4]||(d[4]=[v(" Create ",-1)])]),_:1},8,["disabled","loading"])]),_:1})]),_:1})]),_:1},8,["modelValue"]))}}),_={class:"mb-3"},ee=V({__name:"DeleteUnlockMethodDialog",props:U({unlockMethod:{}},{visible:{type:Boolean},visibleModifiers:{}}),emits:U(["confirm"],["update:visible"]),setup(r,{emit:g}){const n=M(r,"visible"),s=r,c=g,p=k(!1),u=()=>{s.unlockMethod&&c("confirm",s.unlockMethod)},m=()=>{n.value=!1};return(h,e)=>(b(),w(S,{modelValue:n.value,"onUpdate:modelValue":e[0]||(e[0]=i=>n.value=i),"max-width":"500px"},{default:l(()=>[r.unlockMethod?(b(),w(L,{key:0},{default:l(()=>[o(X,{class:"d-flex align-center"},{default:l(()=>[o(O,{class:"mr-2 text-error"},{default:l(()=>[...e[1]||(e[1]=[v("mdi-alert-circle-outline",-1)])]),_:1}),e[2]||(e[2]=v(" Delete Unlock Method ",-1))]),_:1}),o(j,null,{default:l(()=>[B("p",_,[e[3]||(e[3]=v(" Are you sure you want to delete the unlock method ",-1)),B("strong",null,'"'+A(r.unlockMethod.meta.title)+'"',1),e[4]||(e[4]=v(" ? ",-1))]),o(T,{type:"warning",density:"compact"},{default:l(()=>[...e[5]||(e[5]=[B("strong",null,"Warning:",-1),v(" Deleting this unlock method will permanently remove your ability to unlock the project using this method. Make sure you have at least one other unlock method configured before proceeding. ",-1)])]),_:1})]),_:1}),o(I,null,{default:l(()=>[o(z),o(C,{disabled:t(p),onClick:m},{default:l(()=>[...e[6]||(e[6]=[v("Cancel",-1)])]),_:1},8,["disabled"]),o(C,{color:"error",loading:t(p),onClick:u},{default:l(()=>[...e[7]||(e[7]=[v("Delete",-1)])]),_:1},8,["loading"])]),_:1})]),_:1})):$("",!0)]),_:1},8,["modelValue"]))}}),te={class:"d-flex align-center gap-1"},ae=V({__name:"UnlockMethodsTable",props:U({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:U(["delete"],["update:search","update:sortBy","update:page","update:itemsPerPage"]),setup(r,{emit:g}){const n=g,s=M(r,"search"),c=M(r,"sortBy"),p=M(r,"page"),u=M(r,"itemsPerPage"),m=[{key:"type",title:"Type"},P.name,P.id,P.createdAt,P.actions];return(h,e)=>(b(),w(t(H),{search:s.value,"onUpdate:search":e[0]||(e[0]=i=>s.value=i),"sort-by":c.value,"onUpdate:sortBy":e[1]||(e[1]=i=>c.value=i),page:p.value,"onUpdate:page":e[2]||(e[2]=i=>p.value=i),"items-per-page":u.value,"onUpdate:itemsPerPage":e[3]||(e[3]=i=>u.value=i),headers:m,data:r.data,loading:r.loading,"hide-header":r.hideHeader,height:r.height},{"item.type":l(({item:i})=>[o(t(W),{status:i.type,"status-map":t(R)},null,8,["status","status-map"])]),"item.actions":l(({item:i})=>[B("div",te,[o(t(q),{"page-name":"settings.unlock-method-details","page-params":{projectId:r.projectId,unlockMethodId:i.id}},null,8,["page-params"]),o(C,{variant:"text",icon:"mdi-delete",size:"small",color:"error",onClick:y=>n("delete",i)},null,8,["onClick"])])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}}),ke=V({__name:"index",async setup(r){let g,n;const{settingsStore:s}=D(),{projectStore:c}=D();c.initializing?([g,n]=x(()=>N(()=>c.initialized).toBe(!0)),await g,n(),c.addLibraryRoot()):([g,n]=x(()=>c.initialize1()),await g,n(),[g,n]=x(()=>c.initialize2()),await g,n()),s.unlockMethods.load();const p=k(!1),u=k(!1),m=k(null),h=k(!1),e=y=>{m.value=y,u.value=!0},i=async y=>{h.value=!0;try{await s.removeUnlockMethod(y.id),u.value=!1,m.value=null}catch(a){console.error("Failed to delete unlock method:",a)}finally{h.value=!1}};return(y,a)=>(b(),Z(G,null,[o(t(E),{title:"Unlock Methods",icon:"mdi-lock-open-outline",description:"Manage the methods used to unlock and access this project's encrypted data."},{actions:l(()=>[o(C,{color:"primary","prepend-icon":"mdi-plus",onClick:a[0]||(a[0]=d=>p.value=!0)},{default:l(()=>[...a[7]||(a[7]=[v(" Add Unlock Method ",-1)])]),_:1})]),default:l(({height:d})=>[o(t(ae),{search:t(s).unlockMethods.search,"onUpdate:search":a[1]||(a[1]=f=>t(s).unlockMethods.search=f),"sort-by":t(s).unlockMethods.sortBy,"onUpdate:sortBy":a[2]||(a[2]=f=>t(s).unlockMethods.sortBy=f),page:t(s).unlockMethods.page,"onUpdate:page":a[3]||(a[3]=f=>t(s).unlockMethods.page=f),"items-per-page":t(s).unlockMethods.itemsPerPage,"onUpdate:itemsPerPage":a[4]||(a[4]=f=>t(s).unlockMethods.itemsPerPage=f),"project-id":t(c).projectId,data:t(s).unlockMethods.data,loading:t(s).unlockMethods.isLoading,height:d,onDelete:e},null,8,["search","sort-by","page","items-per-page","project-id","data","loading","height"])]),_:1}),o(t(Y),{visible:t(p),"onUpdate:visible":a[5]||(a[5]=d=>F(p)?p.value=d:null)},null,8,["visible"]),o(t(ee),{visible:t(u),"onUpdate:visible":a[6]||(a[6]=d=>F(u)?u.value=d:null),"unlock-method":t(m),onConfirm:i},null,8,["visible","unlock-method"])],64))}});export{ke as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as u,t as y,s as b,_ as C}from"#entry";import{_ as g,I}from"./
|
|
1
|
+
import{q as u,t as y,s as b,_ as C}from"#entry";import{_ as g,I}from"./BmDdxTjo.js";import{S as A}from"./DXh9HyqW.js";import{D as k,a as w}from"./BxZD33h1.js";import{_ as x}from"./CeMkeBDb.js";import{E as V,aL as m,Z as f,W as _,a1 as s,F as e,X as i,_ as B,$ as v,a3 as D,aM as N,aE as S,a2 as U,aF as j,ay as L}from"./Dm4QKadl.js";import{_ as $}from"./CQ4fj8p0.js";import{_ as h}from"./U3pqMjXV.js";import{P as z}from"./DHuTDtaT.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";import"./DtFoCuZo.js";import"./GAB5JH5K.js";import"./0ekw3e2V.js";import"./DxuitVdg.js";import"./DcmvOc98.js";const E={class:"text-body-2"},T={class:"page-content-container"},F=V({__name:"[pageId]",props:{params:{}},async setup(p){let t,r;const{settingsStore:c}=u(),{projectStore:d}=u();d.initializing?([t,r]=m(()=>b(()=>d.initialized).toBe(!0)),await t,r(),d.addLibraryRoot()):([t,r]=m(()=>d.initialize1()),await t,r(),[t,r]=m(()=>d.initialize2()),await t,r());const a=([t,r]=m(()=>c.getPageDetails(p.params.pageId)),t=await t,r(),t);if(!a)throw y({statusCode:404,statusMessage:"Page not found"});const o=c.artifactsForPage(p.params.pageId);[t,r]=m(()=>o.load()),await t,r();const P=[{key:"pageId",label:"Page ID"},{key:"name",label:"Name"},{key:"serviceAccount",label:"Owner"},{key:"createdAt",label:"Created"},{key:"updatedAt",label:"Last Updated"}];return(M,n)=>(_(),f(e(k),null,{default:s(()=>[i(A,{meta:e(a).meta,"fallback-icon":"mdi-file-document-outline",title:e(a).meta.title||e(a).name||"Unnamed Page",description:e(a).meta.description},null,8,["meta","title","description"]),i(e(w),{title:"Page Details",items:P},{"item.pageId":s(()=>[i(e(I),{value:e(a).id},null,8,["value"])]),"item.name":s(()=>[v("div",E,D(e(a).name||"N/A"),1)]),"item.serviceAccount":s(()=>[i(e($),{item:e(a)},null,8,["item"])]),"item.createdAt":s(()=>[i(e(g),{value:e(a).createdAt},null,8,["value"])]),"item.updatedAt":s(()=>[i(e(g),{value:e(a).updatedAt},null,8,["value"])]),_:1}),i(N,{elevation:0},{default:s(()=>[i(e(x),{title:"Artifacts",icon:"mdi-package-variant",count:e(o).data.value.total},{default:s(()=>[i(e(h),{search:e(o).search.value,"onUpdate:search":n[0]||(n[0]=l=>e(o).search.value=l),"sort-by":e(o).sortBy.value,"onUpdate:sortBy":n[1]||(n[1]=l=>e(o).sortBy.value=l),page:e(o).page.value,"onUpdate:page":n[2]||(n[2]=l=>e(o).page.value=l),"items-per-page":e(o).itemsPerPage.value,"onUpdate:itemsPerPage":n[3]||(n[3]=l=>e(o).itemsPerPage.value=l),"project-id":p.params.projectId,data:e(o).data.value,loading:e(o).isLoading.value,"hide-header":""},null,8,["search","sort-by","page","items-per-page","project-id","data","loading"])]),_:1},8,["count"])]),_:1}),e(a).content&&e(a).content.length>0?(_(),f(S,{key:0,class:"content-card",color:"#2d2d2d","bg-color":"#1e1e1e"},{default:s(()=>[i(j,null,{default:s(()=>[...n[4]||(n[4]=[U("Page Content",-1)])]),_:1}),i(L,null,{default:s(()=>[v("div",T,[i(e(z),{content:e(a).content},null,8,["content"])])]),_:1})]),_:1})):B("",!0)]),_:1}))}}),se=C(F,[["__scopeId","data-v-a7e23b29"]]);export{se as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as h,b as s}from"./
|
|
1
|
+
import{S as h,b as s}from"./DxuitVdg.js";import{E as u}from"#entry";import{E as c,aO as f,av as i,Z as y,W as P,F as r,a1 as o,X as g,a2 as v,a3 as B}from"./Dm4QKadl.js";import"./DXh9HyqW.js";import{I as b}from"./BmDdxTjo.js";import{_ as I}from"./DcmvOc98.js";const S=c({__name:"ArtifactsTable",props:f({projectId:{},data:{},loading:{type:Boolean},hideHeader:{type:Boolean},height:{}},{search:{},searchModifiers:{},sortBy:{},sortByModifiers:{},page:{},pageModifiers:{},itemsPerPage:{},itemsPerPageModifiers:{}}),emits:["update:search","update:sortBy","update:page","update:itemsPerPage"],setup(a){const d=i(a,"search"),l=i(a,"sortBy"),n=i(a,"page"),m=i(a,"itemsPerPage"),p=[s.name,s.id,{key:"hash",title:"Hash"},{key:"size",title:"Size"},s.createdAt,s.actions];return(M,t)=>(P(),y(r(h),{search:d.value,"onUpdate:search":t[0]||(t[0]=e=>d.value=e),"sort-by":l.value,"onUpdate:sortBy":t[1]||(t[1]=e=>l.value=e),page:n.value,"onUpdate:page":t[2]||(t[2]=e=>n.value=e),"items-per-page":m.value,"onUpdate:itemsPerPage":t[3]||(t[3]=e=>m.value=e),headers:p,data:a.data,loading:a.loading,"hide-header":a.hideHeader,height:a.height},{"item.hash":o(({item:e})=>[g(r(b),{value:e.hash,"copy-full-text":"Copy full hash"},null,8,["value"])]),"item.size":o(({item:e})=>[v(B(r(u)(e.size)),1)]),"item.actions":o(({item:e})=>[g(r(I),{"page-name":"settings.artifact-details","page-params":{projectId:a.projectId,artifactId:e.id}},null,8,["page-params"])]),_:1},8,["search","sort-by","page","items-per-page","data","loading","hide-header","height"]))}});export{S as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as N,a_ as L,a$ as H,aD as F,b0 as A,b1 as W,z as q,A as G,B as K,s as X,_ as Y,k as Z}from"#entry";import{c as J,_ as Q,a as U,b as tt}from"./CtwNW5xN.js";import{E as b,g as p,aW as et,Z as I,W as l,F as t,a1 as f,X as g,u as nt,aL as C,I as at,ak as z,al as V,_ as $,a8 as B,K as O,$ as x,a3 as st,aY as ot}from"./Dm4QKadl.js";import{I as it,a as rt,G as ct}from"./ih8zLb53.js";import{I as ut}from"./BqeRdtD4.js";import{_ as dt}from"./DhQfdAdO.js";import{P as pt}from"./CN9dMhDM.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./ga9TZ2z5.js";import"./DXtl0MQI.js";import"./DHuTDtaT.js";import"./CwUT5n6w.js";import"./Cw6nGM9K.js";import"./YXI84j39.js";import"./D-AHKB2i.js";const lt=b({__name:"CompositeInstanceInputNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{},instance:{}},setup(e){const a=N(),{instancesStore:n,libraryStore:o,stateStore:u,validationStore:c,operationsStore:s}=a,y=p(()=>u.instanceLocks.get(e.instance.id)),v=p(()=>o.library.components[e.instance.type]),r=p(()=>u.getInstanceState(e.instance.id)),S=et("contextMenu");return(k,d)=>(l(),I(t(it),{instance:e.instance,component:t(v),entities:t(o).library.entities,state:t(r),editable:t(n).instances.has(e.instance.id),"input-resolver-outputs":t(n).inputResolverOutputs,"input-resolver-dependent-map":t(n).inputResolverDependentMap,"io-type":"inputs","io-mirror":!0,"hide-show-composite":!0,"onSave:args":d[0]||(d[0]=(m,h,w)=>t(n).updateInstance(m,h,w)),"onOperation:launch":d[1]||(d[1]=m=>t(s).launchInstanceOperation(m,e.data.instance)),"onOperation:cancel":d[2]||(d[2]=m=>t(s).cancelInstanceOperation(t(r).lastOperationState.operationId,e.data.instance.id)),onContextmenu:d[3]||(d[3]=m=>t(S)?.showContextMenu(m))},{status:f(()=>[g(t(ut),{state:t(r),"expected-input-hash":t(u).inputHashOutputs.get(e.instance.id)?.inputHash,"validation-output":t(c).validationOutputs.get(e.instance.id)},null,8,["state","expected-input-hash","validation-output"])]),default:f(()=>[g(t(J),{ref_key:"contextMenu",ref:S,stores:t(a),instance:e.instance,component:t(v),state:t(r),editable:!1,locked:!!t(y)},null,8,["stores","instance","component","state","locked"])]),_:1},8,["instance","component","entities","state","editable","input-resolver-outputs","input-resolver-dependent-map"]))}}),mt=b({__name:"CompositeInstanceOutputNode",props:{id:{},type:{},selected:{type:Boolean},connectable:{type:[Boolean,Number,String,Function]},position:{},dimensions:{},label:{},isValidTargetPos:{type:Function},isValidSourcePos:{type:Function},parent:{},parentNodeId:{},dragging:{type:Boolean},resizing:{type:Boolean},zIndex:{},targetPosition:{},sourcePosition:{},dragHandle:{},data:{},events:{},instance:{}},setup(e){const{libraryStore:a}=N(),n=p(()=>a.library.components[e.instance.type]);return(o,u)=>(l(),I(t(dt),{component:t(n),subtitle:"Outputs",style:{overflow:"visible"}},{default:f(()=>[g(t(rt),{instance:e.instance,component:t(n),entities:t(a).library.entities,type:"outputs",mirror:!0},null,8,["instance","component","entities"])]),_:1},8,["component"]))}}),M=L({name:"instance",getStoreId:(e,a,n)=>`projects/${e}/composites/${a}/${n}`,create:({storeId:e,id:[a,n,o],logger:u})=>H(e,()=>{const{vueFlowStore:c,nodeFactory:s,onNodesMoved:y,edgeEndpointOffsets:v}=F("instance",a,n,o),{$client:r}=nt(),{instancesStore:S,stateStore:k}=A(a),d=p(()=>k.stateIdToStateMap.get(n)),m=p(()=>{const i=d.value;return i?S.instances.get(i.instanceId):void 0}),h=async()=>{u.info({projectId:a},"initializing composite instance store");const i=await r.workspace.getCompositeViewport.query({projectId:a,stateId:n});i&&(c.defaultViewport.value=i),u.info({projectId:a,stateId:n},"composite instance store initialized")},w=()=>{const i=m.value;if(!i)throw new Error(`Virtual instance not found for state: ${n}`);const R=s.createNodeFromInstance(i,{type:"inputs"}),E=S.getInstanceChildren(i.id);if(s.createNodesForModels(E,[],{readonly:!0}),i.outputs&&Object.keys(i.outputs).length>0){s.createNodeFromInstance(i,{id:"outputs",type:"outputs",readonly:!0}),s.instanceIdToNodeIdMap.set(i.id,R.id);for(const[T,D]of Object.entries(i.outputs))for(const j of D){const P=S.instances.get(j.instanceId);P&&s.createEdgeForInstanceOutput(P,T,j)}}q(c).then(()=>G(c)).then(()=>c.fitView()).then(()=>K(c,y,v))},_=W(async i=>{await r.workspace.setCompositeViewport.mutate({projectId:a,stateId:n,viewport:i})},1e3);return c.onViewportChange(_),{initialize:h,placeNodes:w,stateId:n,instanceState:d,instance:m,version:o}})}),ft=b({__name:"CompositeInstanceCanvas",async setup(e){let a,n;const{projectStore:o,instancesStore:u,libraryStore:c}=N(),s=M();return o.initializing?([a,n]=C(()=>X(()=>o.initialized).toBe(!0)),await a,n(),o.addLibraryRoot()):([a,n]=C(()=>o.initialize1()),await a,n(),[a,n]=C(()=>o.initialize2()),await a,n()),[a,n]=C(()=>s.initialize()),await a,n(),at(s.placeNodes),(y,v)=>(l(),I(t(ct),{canvasId:["instance",t(o).projectId,t(s).stateId,t(s).version],components:t(c).library.components,entities:t(c).library.entities,"input-resolver-outputs":t(u).inputResolverOutputs,editable:""},{"node-instance":f(r=>[g(t(tt),z(V(r)),null,16)]),"node-inputs":f(r=>[t(s).instance?(l(),I(lt,B({key:0},r,{instance:t(s).instance}),null,16,["instance"])):$("",!0)]),"node-outputs":f(r=>[t(s).instance?(l(),I(mt,B({key:0},r,{instance:t(s).instance,type:"outputs"}),null,16,["instance"])):$("",!0)]),"node-hub":f(r=>[g(t(U),z(V(r)),null,16)]),"panel-bottom-left":f(()=>[g(t(Q))]),_:1},8,["canvasId","components","entities","input-resolver-outputs"]))}}),yt=Y(ft,[["__scopeId","data-v-2e3534bb"]]),vt=b({__name:"CompositeInstanceWrapper",props:{projectId:{},stateId:{},version:{}},setup(e){return F.ensureCreated("instance",e.projectId,e.stateId,e.version),M.ensureCreated(e.projectId,e.stateId,e.version),(a,n)=>(l(),I(yt,{"project-id":e.projectId,"state-id":e.stateId,version:e.version},null,8,["project-id","state-id","version"]))}}),It={key:1,class:"d-flex justify-center align-center h-100"},gt={class:"text-center"},St={key:2,class:"d-flex justify-center align-center h-100"},_t=b({__name:"index",props:{params:{}},setup(e){const{instancesStore:a,stateStore:n}=Z(e.params.projectId),o=p(()=>n.stateIdToStateMap.get(e.params.stateId)),u=p(()=>{const y=o.value;return y?a.instances.get(y.instanceId):void 0}),c=p(()=>a.initializationPhase==="ready"&&n.initializationPhase==="ready"),s=p(()=>!!(o.value&&u.value));return(y,v)=>(l(),I(t(pt),{"project-id":e.params.projectId,"can-unlock":""},{default:f(()=>[t(c)&&t(s)?(l(),I(t(vt),{key:t(a).evaluationVersion,"project-id":e.params.projectId,"state-id":e.params.stateId,version:t(a).evaluationVersion},null,8,["project-id","state-id","version"])):t(c)?(l(),O("div",It,[x("div",gt,[v[0]||(v[0]=x("h3",null,"Instance state not found",-1)),x("p",null,"No instance state found for state ID: "+st(e.params.stateId),1)])])):(l(),O("div",St,[g(ot,{indeterminate:"",color:"dark",size:"32"})]))]),_:1},8,["project-id"]))}});export{_t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{q as n,t as g,s as p}from"#entry";import{_ as u,I as _}from"./
|
|
1
|
+
import{q as n,t as g,s as p}from"#entry";import{_ as u,I as _}from"./BmDdxTjo.js";import{S as f}from"./DXh9HyqW.js";import{D as y,a as I}from"./BxZD33h1.js";import{E as b,aL as s,Z as w,W as C,a1 as o,F as e,X as l,$ as D,a3 as h}from"./Dm4QKadl.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./Cw6nGM9K.js";import"./DtFoCuZo.js";const k={class:"text-body-2"},E=b({__name:"[triggerId]",props:{params:{}},async setup(m){let t,a;const{settingsStore:d}=n(),{projectStore:r}=n();r.initializing?([t,a]=s(()=>p(()=>r.initialized).toBe(!0)),await t,a(),r.addLibraryRoot()):([t,a]=s(()=>r.initialize1()),await t,a(),[t,a]=s(()=>r.initialize2()),await t,a());const i=([t,a]=s(()=>d.getTriggerDetails(m.params.triggerId)),t=await t,a(),t);if(!i)throw g({statusCode:404,statusMessage:"Trigger not found"});const c=[{key:"triggerId",label:"Trigger ID"},{key:"name",label:"Name"},{key:"createdAt",label:"Created"}];return(S,T)=>(C(),w(e(y),null,{default:o(()=>[l(f,{meta:e(i).meta,"fallback-icon":"mdi-lightning-bolt",title:e(i).meta.title||e(i).name||"Unnamed Trigger",description:e(i).meta.description},null,8,["meta","title","description"]),l(e(I),{title:"Trigger Details",items:c},{"item.triggerId":o(()=>[l(e(_),{value:e(i).id},null,8,["value"])]),"item.name":o(()=>[D("div",k,h(e(i).name||"N/A"),1)]),"item.createdAt":o(()=>[l(e(u),{value:e(i).createdAt},null,8,["value"])]),_:1})]),_:1}))}});export{E as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{as as d,at as m,au as u,_ as f}from"#entry";import{E as w,aW as p,I as v,N as i,w as E,g as x,K as A,W as b}from"./
|
|
1
|
+
import{as as d,at as m,au as u,_ as f}from"#entry";import{E as w,aW as p,I as v,N as i,w as E,g as x,K as A,W as b}from"./Dm4QKadl.js";const g=w({__name:"GenericTerminal",props:{columns:{},rows:{},content:{}},emits:["load"],setup(n,{emit:l}){const a=p("terminalEl"),s=!n.columns||!n.rows,c=l;let e=null;return v(()=>{e=new d.Terminal({fontFamily:"monospace"});const t=new m.FitAddon,r=new u.WebglAddon;if(s?e.loadAddon(t):e.resize(n.columns,n.rows),e.loadAddon(r),e.open(a.value),s){t.fit();const o=new ResizeObserver(()=>{t.fit()});o.observe(a.value),i(()=>{o.disconnect()})}c("load",e),n.content!==void 0&&E(x(()=>n.content),o=>{e&&(e.clear(),e.write(o.replace(/\n/g,`\r
|
|
2
2
|
`)))},{immediate:!0}),i(()=>{e?.dispose()})}),(t,r)=>(b(),A("div",{ref_key:"terminalEl",ref:a,class:"terminal-container"},null,512))}}),W=f(g,[["__scopeId","data-v-73718d9d"]]);export{W as G};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{q as I,k as f}from"#entry";import{E as d,u as j,N as g,Z as p,W as m,F as s,a1 as w,X as x}from"./
|
|
1
|
+
import{q as I,k as f}from"#entry";import{E as d,u as j,N as g,Z as p,W as m,F as s,a1 as w,X as x}from"./Dm4QKadl.js";import{G as L}from"./YXI84j39.js";import{P}from"./CN9dMhDM.js";import"./CmALWFRB.js";import"./D1Jbgd7O.js";import"./D-AHKB2i.js";const b=d({__name:"InstanceLogsPanel",props:{operationId:{},stateId:{}},setup(t){const{projectStore:c}=I(),{$client:a}=j();let n=null;const i=e=>{const o=e.split(`
|
|
2
2
|
`);for(const r of o)n.writeln(r)},{unsubscribe:u}=a.logs.watchInstanceLogs.subscribe({operationId:t.operationId,stateId:t.stateId},{onData:e=>{n&&i(e.content)}});g(u);const l=async e=>{n=e;const o=await a.logs.getInstanceLogs.query({projectId:c.projectId,stateId:t.stateId,operationId:t.operationId});for(const r of o)i(r.content)};return(e,o)=>(m(),p(s(L),{onLoad:l}))}}),B=d({__name:"[stateId]",props:{params:{}},setup(t){return f(t.params.projectId),(c,a)=>(m(),p(s(P),{"project-id":t.params.projectId,"can-unlock":""},{default:w(()=>[x(s(b),{"operation-id":t.params.operationId,"state-id":t.params.stateId},null,8,["operation-id","state-id"])]),_:1},8,["project-id"]))}});export{B as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"id":"
|
|
1
|
+
{"id":"5447597b-48ec-41ad-8928-729a28784f20","timestamp":1769905437684}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"id":"5447597b-48ec-41ad-8928-729a28784f20","timestamp":1769905437684,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
var wi=d=>({avoidLib:void 0,async load(c=void 0){if(this.avoidLib)console.log("Avoid library is already initialized");else{let t=function(y,f){return c!==void 0&&y.endsWith(".wasm")?c:f+y};this.avoidLib=await d({locateFile:t})}},getInstance(){if(!this.avoidLib)throw new Error("Avoid library should be initialized before using");return this.avoidLib}}),Di=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(c={}){var t;t||(t=typeof c<"u"?c:{});var y,f;t.ready=new Promise(function(e,n){y=e,f=n}),"_malloc getExceptionMessage ___get_exception_message _free ___cpp_exception ___cxa_increment_exception_refcount ___cxa_decrement_exception_refcount ___thrown_object_from_unwind_exception _fflush _emscripten_bind_VoidPtr___destroy___0 _emscripten_bind_HyperedgeImprover_HyperedgeImprover_0 _emscripten_bind_HyperedgeImprover_clear_0 _emscripten_bind_HyperedgeImprover_setRouter_1 _emscripten_bind_HyperedgeImprover___destroy___0 _emscripten_bind_Box_Box_0 _emscripten_bind_Box_length_1 _emscripten_bind_Box_width_0 _emscripten_bind_Box_height_0 _emscripten_bind_Box_get_min_0 _emscripten_bind_Box_set_min_1 _emscripten_bind_Box_get_max_0 _emscripten_bind_Box_set_max_1 _emscripten_bind_Box___destroy___0 _emscripten_bind_PolygonInterface_clear_0 _emscripten_bind_PolygonInterface_empty_0 _emscripten_bind_PolygonInterface_size_0 _emscripten_bind_PolygonInterface_id_0 _emscripten_bind_PolygonInterface_at_1 _emscripten_bind_PolygonInterface_boundingRectPolygon_0 _emscripten_bind_PolygonInterface_offsetBoundingBox_1 _emscripten_bind_PolygonInterface_offsetPolygon_1 _emscripten_bind_PolygonInterface___destroy___0 _emscripten_bind_Polygon_Polygon_0 _emscripten_bind_Polygon_Polygon_1 _emscripten_bind_Polygon_setPoint_2 _emscripten_bind_Polygon_size_0 _emscripten_bind_Polygon_get_ps_1 _emscripten_bind_Polygon_set_ps_2 _emscripten_bind_Polygon___destroy___0 _emscripten_bind_Point_Point_0 _emscripten_bind_Point_Point_2 _emscripten_bind_Point_equal_1 _emscripten_bind_Point_get_x_0 _emscripten_bind_Point_set_x_1 _emscripten_bind_Point_get_y_0 _emscripten_bind_Point_set_y_1 _emscripten_bind_Point_get_id_0 _emscripten_bind_Point_set_id_1 _emscripten_bind_Point_get_vn_0 _emscripten_bind_Point_set_vn_1 _emscripten_bind_Point___destroy___0 _emscripten_bind_Rectangle_Rectangle_2 _emscripten_bind_Rectangle_Rectangle_3 _emscripten_bind_Rectangle___destroy___0 _emscripten_bind_HyperedgeTreeNode_HyperedgeTreeNode_0 _emscripten_bind_HyperedgeTreeNode_writeEdgesToConns_2 _emscripten_bind_HyperedgeTreeNode___destroy___0 _emscripten_bind_HyperedgeTreeEdge_HyperedgeTreeEdge_3 _emscripten_bind_HyperedgeTreeEdge___destroy___0 _emscripten_bind_AStarPath_AStarPath_0 _emscripten_bind_AStarPath_search_4 _emscripten_bind_AStarPath___destroy___0 _emscripten_bind_ConnEnd_ConnEnd_1 _emscripten_bind_ConnEnd_ConnEnd_2 _emscripten_bind_ConnEnd_createConnEndFromJunctionRef_1 _emscripten_bind_ConnEnd___destroy___0 _emscripten_bind_ActionInfo_ActionInfo_2 _emscripten_bind_ActionInfo_ActionInfo_3 _emscripten_bind_ActionInfo_ActionInfo_4 _emscripten_bind_ActionInfo_obstacle_0 _emscripten_bind_ActionInfo_shape_0 _emscripten_bind_ActionInfo_conn_0 _emscripten_bind_ActionInfo_junction_0 _emscripten_bind_ActionInfo_addConnEndUpdate_3 _emscripten_bind_ActionInfo_get_type_0 _emscripten_bind_ActionInfo_set_type_1 _emscripten_bind_ActionInfo_get_objPtr_0 _emscripten_bind_ActionInfo_set_objPtr_1 _emscripten_bind_ActionInfo_get_newPoly_0 _emscripten_bind_ActionInfo_set_newPoly_1 _emscripten_bind_ActionInfo_get_newPosition_0 _emscripten_bind_ActionInfo_set_newPosition_1 _emscripten_bind_ActionInfo_get_firstMove_0 _emscripten_bind_ActionInfo_set_firstMove_1 _emscripten_bind_ActionInfo___destroy___0 _emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_2 _emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_3 _emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_6 _emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_7 _emscripten_bind_ShapeConnectionPin_setConnectionCost_1 _emscripten_bind_ShapeConnectionPin_position_0 _emscripten_bind_ShapeConnectionPin_position_1 _emscripten_bind_ShapeConnectionPin_directions_0 _emscripten_bind_ShapeConnectionPin_setExclusive_1 _emscripten_bind_ShapeConnectionPin_isExclusive_0 _emscripten_bind_ShapeConnectionPin_updatePosition_1 _emscripten_bind_ShapeConnectionPin___destroy___0 _emscripten_bind_Obstacle_id_0 _emscripten_bind_Obstacle_polygon_0 _emscripten_bind_Obstacle_router_0 _emscripten_bind_Obstacle_position_0 _emscripten_bind_Obstacle_setNewPoly_1 _emscripten_bind_Obstacle___destroy___0 _emscripten_bind_JunctionRef_JunctionRef_2 _emscripten_bind_JunctionRef_JunctionRef_3 _emscripten_bind_JunctionRef_position_0 _emscripten_bind_JunctionRef_setPositionFixed_1 _emscripten_bind_JunctionRef_positionFixed_0 _emscripten_bind_JunctionRef_recommendedPosition_0 _emscripten_bind_JunctionRef___destroy___0 _emscripten_bind_ShapeRef_ShapeRef_2 _emscripten_bind_ShapeRef_ShapeRef_3 _emscripten_bind_ShapeRef_polygon_0 _emscripten_bind_ShapeRef_position_0 _emscripten_bind_ShapeRef_setNewPoly_1 _emscripten_bind_ShapeRef___destroy___0 _emscripten_bind_HyperedgeNewAndDeletedObjectLists___destroy___0 _emscripten_bind_HyperedgeRerouter_HyperedgeRerouter_0 _emscripten_bind_HyperedgeRerouter_registerHyperedgeForRerouting_1 _emscripten_bind_HyperedgeRerouter___destroy___0 _emscripten_bind_VertInf___destroy___0 _emscripten_bind_VertID_VertID_0 _emscripten_bind_VertID_VertID_2 _emscripten_bind_VertID_VertID_3 _emscripten_bind_VertID_get_objID_0 _emscripten_bind_VertID_set_objID_1 _emscripten_bind_VertID_get_vn_0 _emscripten_bind_VertID_set_vn_1 _emscripten_bind_VertID_get_props_0 _emscripten_bind_VertID_set_props_1 _emscripten_bind_VertID_get_src_0 _emscripten_bind_VertID_get_tar_0 _emscripten_bind_VertID_get_PROP_ConnPoint_0 _emscripten_bind_VertID_get_PROP_OrthShapeEdge_0 _emscripten_bind_VertID_get_PROP_ConnectionPin_0 _emscripten_bind_VertID_get_PROP_ConnCheckpoint_0 _emscripten_bind_VertID_get_PROP_DummyPinHelper_0 _emscripten_bind_VertID___destroy___0 _emscripten_bind_MinimumTerminalSpanningTree___destroy___0 _emscripten_bind_Checkpoint_Checkpoint_1 _emscripten_bind_Checkpoint___destroy___0 _emscripten_bind_ConnRef_ConnRef_3 _emscripten_bind_ConnRef_ConnRef_4 _emscripten_bind_ConnRef_id_0 _emscripten_bind_ConnRef_setCallback_2 _emscripten_bind_ConnRef_setSourceEndpoint_1 _emscripten_bind_ConnRef_setDestEndpoint_1 _emscripten_bind_ConnRef_routingType_0 _emscripten_bind_ConnRef_setRoutingType_1 _emscripten_bind_ConnRef_displayRoute_0 _emscripten_bind_ConnRef_setHateCrossings_1 _emscripten_bind_ConnRef_doesHateCrossings_0 _emscripten_bind_ConnRef___destroy___0 _emscripten_bind_EdgeInf_EdgeInf_2 _emscripten_bind_EdgeInf_EdgeInf_3 _emscripten_bind_EdgeInf___destroy___0 _emscripten_bind_LineRep_get_begin_0 _emscripten_bind_LineRep_set_begin_1 _emscripten_bind_LineRep_get_end_0 _emscripten_bind_LineRep_set_end_1 _emscripten_bind_LineRep___destroy___0 _emscripten_bind_Router_Router_1 _emscripten_bind_Router_processTransaction_0 _emscripten_bind_Router_printInfo_0 _emscripten_bind_Router_deleteConnector_1 _emscripten_bind_Router_moveShape_2 _emscripten_bind_Router_moveShape_3 _emscripten_bind_Router_deleteShape_1 _emscripten_bind_Router_moveJunction_2 _emscripten_bind_Router_moveJunction_3 _emscripten_bind_Router_setRoutingParameter_2 _emscripten_bind_Router_setRoutingOption_2 _emscripten_bind_Router___destroy___0 _emscripten_enum_Avoid_ConnDirFlag_ConnDirNone _emscripten_enum_Avoid_ConnDirFlag_ConnDirUp _emscripten_enum_Avoid_ConnDirFlag_ConnDirDown _emscripten_enum_Avoid_ConnDirFlag_ConnDirLeft _emscripten_enum_Avoid_ConnDirFlag_ConnDirRight _emscripten_enum_Avoid_ConnDirFlag_ConnDirAll _emscripten_enum_Avoid_ConnEndType_ConnEndPoint _emscripten_enum_Avoid_ConnEndType_ConnEndShapePin _emscripten_enum_Avoid_ConnEndType_ConnEndJunction _emscripten_enum_Avoid_ConnEndType_ConnEndEmpty _emscripten_enum_Avoid_ActionType_ShapeMove _emscripten_enum_Avoid_ActionType_ShapeAdd _emscripten_enum_Avoid_ActionType_ShapeRemove _emscripten_enum_Avoid_ActionType_JunctionMove _emscripten_enum_Avoid_ActionType_JunctionAdd _emscripten_enum_Avoid_ActionType_JunctionRemove _emscripten_enum_Avoid_ActionType_ConnChange _emscripten_enum_Avoid_ActionType_ConnectionPinChange _emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW90 _emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW180 _emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW270 _emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipX _emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipY _emscripten_enum_Avoid_ConnType_ConnType_None _emscripten_enum_Avoid_ConnType_ConnType_PolyLine _emscripten_enum_Avoid_ConnType_ConnType_Orthogonal _emscripten_enum_Avoid_RouterFlag_PolyLineRouting _emscripten_enum_Avoid_RouterFlag_OrthogonalRouting _emscripten_enum_Avoid_RoutingParameter_segmentPenalty _emscripten_enum_Avoid_RoutingParameter_anglePenalty _emscripten_enum_Avoid_RoutingParameter_crossingPenalty _emscripten_enum_Avoid_RoutingParameter_clusterCrossingPenalty _emscripten_enum_Avoid_RoutingParameter_fixedSharedPathPenalty _emscripten_enum_Avoid_RoutingParameter_portDirectionPenalty _emscripten_enum_Avoid_RoutingParameter_shapeBufferDistance _emscripten_enum_Avoid_RoutingParameter_idealNudgingDistance _emscripten_enum_Avoid_RoutingParameter_reverseDirectionPenalty _emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalSegmentsConnectedToShapes _emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingJunctions _emscripten_enum_Avoid_RoutingOption_penaliseOrthogonalSharedPathsAtConnEnds _emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalTouchingColinearSegments _emscripten_enum_Avoid_RoutingOption_performUnifyingNudgingPreprocessingStep _emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingAddingAndDeletingJunctions _emscripten_enum_Avoid_RoutingOption_nudgeSharedPathsWithCommonEndPoint onRuntimeInitialized".split(" ").forEach(e=>{Object.getOwnPropertyDescriptor(t.ready,e)||Object.defineProperty(t.ready,e,{get:()=>D("You are getting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js"),set:()=>D("You are setting "+e+" on the Promise object, instead of the instance. Use .then() to get called back with the instance, see the MODULARIZE docs in src/settings.js")})});var w=Object.assign({},t),M="./this.program";if(t.ENVIRONMENT)throw Error("Module.ENVIRONMENT has been deprecated. To force the environment, use the ENVIRONMENT compile-time option (for example, -sENVIRONMENT=web or -sENVIRONMENT=node)");var I="";if(typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),d&&(I=d),I.indexOf("blob:")!==0?I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1):I="",typeof window!="object"&&typeof importScripts!="function")throw Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");var Re=t.print||console.log.bind(console),N=t.printErr||console.warn.bind(console);Object.assign(t,w),w=null,Object.getOwnPropertyDescriptor(t,"fetchSettings")&&D("`Module.fetchSettings` was supplied but `fetchSettings` not included in INCOMING_MODULE_JS_API"),X("arguments","arguments_"),t.thisProgram&&(M=t.thisProgram),X("thisProgram","thisProgram"),X("quit","quit_"),g(typeof t.memoryInitializerPrefixURL>"u","Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),g(typeof t.pthreadMainPrefixURL>"u","Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),g(typeof t.cdInitializerPrefixURL>"u","Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),g(typeof t.filePackagePrefixURL>"u","Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),g(typeof t.read>"u","Module.read option was removed (modify read_ in JS)"),g(typeof t.readAsync>"u","Module.readAsync option was removed (modify readAsync in JS)"),g(typeof t.readBinary>"u","Module.readBinary option was removed (modify readBinary in JS)"),g(typeof t.setWindowTitle>"u","Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),g(typeof t.TOTAL_MEMORY>"u","Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),X("read","read_"),X("readAsync","readAsync"),X("readBinary","readBinary"),X("setWindowTitle","setWindowTitle"),g(!0,"worker environment detected but not enabled at build time. Add 'worker' to `-sENVIRONMENT` to enable."),g(!0,"node environment detected but not enabled at build time. Add 'node' to `-sENVIRONMENT` to enable."),g(!0,"shell environment detected but not enabled at build time. Add 'shell' to `-sENVIRONMENT` to enable.");var ye;t.wasmBinary&&(ye=t.wasmBinary),X("wasmBinary","wasmBinary"),t.noExitRuntime,X("noExitRuntime","noExitRuntime"),typeof WebAssembly!="object"&&D("no native wasm support detected");var fe,ue=!1;function g(e,n){e||D("Assertion failed"+(n?": "+n:""))}var Ce,le,J,x;function He(){var e=fe.buffer;t.HEAP8=Ce=new Int8Array(e),t.HEAP16=new Int16Array(e),t.HEAP32=J=new Int32Array(e),t.HEAPU8=le=new Uint8Array(e),t.HEAPU16=new Uint16Array(e),t.HEAPU32=x=new Uint32Array(e),t.HEAPF32=new Float32Array(e),t.HEAPF64=new Float64Array(e)}g(!t.STACK_SIZE,"STACK_SIZE can no longer be set at runtime. Use -sSTACK_SIZE at link time"),g(typeof Int32Array<"u"&&typeof Float64Array<"u"&&Int32Array.prototype.subarray!=null&&Int32Array.prototype.set!=null,"JS engine does not provide full typed array support"),g(!t.wasmMemory,"Use of `wasmMemory` detected. Use -sIMPORTED_MEMORY to define wasmMemory externally"),g(!t.INITIAL_MEMORY,"Detected runtime INITIAL_MEMORY setting. Use -sIMPORTED_MEMORY to define wasmMemory dynamically");var H;function vt(){var e=Me();g((e&3)==0),e==0&&(e+=4),x[e>>2]=34821223,x[e+4>>2]=2310721022,x[0]=1668509029}function Ee(){if(!ue){var e=Me();e==0&&(e+=4);var n=x[e>>2],_=x[e+4>>2];n==34821223&&_==2310721022||D("Stack overflow! Stack cookie has been overwritten at "+Pe(e)+", expected hex dwords 0x89BACDFE and 0x2135467, but received "+Pe(_)+" "+Pe(n)),x[0]!==1668509029&&D("Runtime error: The application has corrupted its heap memory area (address zero)!")}}var ke=new Int16Array(1),Ue=new Int8Array(ke.buffer);if(ke[0]=25459,Ue[0]!==115||Ue[1]!==99)throw"Runtime error: expected the system to be little-endian! (Run with -sSUPPORT_BIG_ENDIAN to bypass)";var Ve=[],Oe=[],Je=[],be=!1;function Pt(){var e=t.preRun.shift();Ve.unshift(e)}g(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),g(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),g(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),g(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var re=0,pe=null,he=null,ve={};function Rt(){re++,t.monitorRunDependencies&&t.monitorRunDependencies(re),g(!ve["wasm-instantiate"]),ve["wasm-instantiate"]=1,pe===null&&typeof setInterval<"u"&&(pe=setInterval(function(){if(ue)clearInterval(pe),pe=null;else{var e=!1,n;for(n in ve)e||(e=!0,N("still waiting on run dependencies:")),N("dependency: "+n);e&&N("(end of list)")}},1e4))}function D(e){throw t.onAbort&&t.onAbort(e),e="Aborted("+e+")",N(e),ue=!0,be&&pt(),e=new WebAssembly.RuntimeError(e),f(e),e}function Be(){D("Filesystem support (FS) was not included. The problem is that you are using files from JS, but files were not used from C/C++, so filesystem support was not auto-included. You can force-include filesystem support with -sFORCE_FILESYSTEM")}t.FS_createDataFile=function(){Be()},t.FS_createPreloadedFile=function(){Be()};function We(e){return e.startsWith("data:application/octet-stream;base64,")}function o(e){return function(){var n=t.asm;return g(be,"native function `"+e+"` called before runtime initialization"),n[e]||g(n[e],"exported native function `"+e+"` not found"),n[e].apply(null,arguments)}}var we=0;function Ye(e){return function(){if(ue)throw"program has already aborted!";we+=1;try{return e.apply(null,arguments)}catch(n){if(ue||1<we||n==="unwind")throw n;D("unhandled exception: "+[n,n.stack])}finally{--we}}}function Ct(){var e=H.get,n={};H.get=_=>{var i=e.call(H,_),p=n[_];return p&&p.D===i||(p=n[_]={D:i,ua:Ye(i)}),p.ua}}var ne;if(ne="libavoid.wasm",!We(ne)){var Ge=ne;ne=t.locateFile?t.locateFile(Ge,I):I+Ge}function ze(e){try{if(e==ne&&ye)return new Uint8Array(ye);throw"both async and sync fetching of the wasm failed"}catch(n){D(n)}}function At(e){return ye||typeof fetch!="function"?Promise.resolve().then(function(){return ze(e)}):fetch(e,{credentials:"same-origin"}).then(function(n){if(!n.ok)throw"failed to load wasm binary file at '"+e+"'";return n.arrayBuffer()}).catch(function(){return ze(e)})}function qe(e,n,_){return At(e).then(function(i){return WebAssembly.instantiate(i,n)}).then(function(i){return i}).then(_,function(i){N("failed to asynchronously prepare wasm: "+i),ne.startsWith("file://")&&N("warning: Loading from a file URI ("+ne+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),D(i)})}function St(e,n){var _=ne;return ye||typeof WebAssembly.instantiateStreaming!="function"||We(_)||typeof fetch!="function"?qe(_,e,n):fetch(_,{credentials:"same-origin"}).then(function(i){return WebAssembly.instantiateStreaming(i,e).then(n,function(p){return N("wasm streaming compile failed: "+p),N("falling back to ArrayBuffer instantiation"),qe(_,e,n)})})}function X(e,n){Object.getOwnPropertyDescriptor(t,e)||Object.defineProperty(t,e,{configurable:!0,get:function(){D("Module."+e+" has been replaced with plain "+n+" (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}})}function Ke(e){return e==="FS_createPath"||e==="FS_createDataFile"||e==="FS_createPreloadedFile"||e==="FS_unlink"||e==="addRunDependency"||e==="FS_createLazyFile"||e==="FS_createDevice"||e==="removeRunDependency"}(function(e,n){typeof globalThis<"u"&&Object.defineProperty(globalThis,e,{configurable:!0,get:function(){Ae("`"+e+"` is not longer defined by emscripten. "+n)}})})("buffer","Please use HEAP8.buffer or wasmMemory.buffer");function Xe(e){Object.getOwnPropertyDescriptor(t,e)||Object.defineProperty(t,e,{configurable:!0,get:function(){var n="'"+e+"' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)";Ke(e)&&(n+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),D(n)}})}function Ze(e,n){g(16384>e),128>e?n.push(e):n.push(e%128|128,e>>7)}var me=[],ge=void 0,$e=[];function De(e){for(;0<e.length;)e.shift()(t)}function Tt(e){var n=Ti();return e=e(),Ii(n),e}var Qe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function et(e,n){for(var _=n+NaN,i=n;e[i]&&!(i>=_);)++i;if(16<i-n&&e.buffer&&Qe)return Qe.decode(e.subarray(n,i));for(_="";n<i;){var p=e[n++];if(p&128){var s=e[n++]&63;if((p&224)==192)_+=String.fromCharCode((p&31)<<6|s);else{var l=e[n++]&63;(p&240)==224?p=(p&15)<<12|s<<6|l:((p&248)!=240&&Ae("Invalid UTF-8 leading byte "+Pe(p)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),p=(p&7)<<18|s<<12|l<<6|e[n++]&63),65536>p?_+=String.fromCharCode(p):(p-=65536,_+=String.fromCharCode(55296|p>>10,56320|p&1023))}}else _+=String.fromCharCode(p)}return _}function se(e){return g(typeof e=="number"),e?et(le,e):""}function It(e){return Tt(function(){var n=ct(4),_=ct(4);Oi(e,n,_),n=x[n>>2],_=x[_>>2];var i=se(n);if(rt(n),_){var p=se(_);rt(_)}return[i,p]})}function tt(e){return e=e.getArg(t.asm.__cpp_exception,0),e=Ei(e),It(e)}t.getExceptionMessage=tt;function Pe(e){return g(typeof e=="number"),"0x"+e.toString(16).padStart(8,"0")}function Ae(e){Se||(Se={}),Se[e]||(Se[e]=1,N(e))}var Se,je={};function nt(){if(!Fe){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:M||"./this.program"},n;for(n in je)je[n]===void 0?delete e[n]:e[n]=je[n];var _=[];for(n in e)_.push(n+"="+e[n]);Fe=_}return Fe}var Fe,Et=[null,[],[]];function Te(e){return e%4===0&&(e%100!==0||e%400===0)}var ot=[31,29,31,30,31,30,31,31,30,31,30,31],_t=[31,28,31,30,31,30,31,31,30,31,30,31];function Ot(e){for(var n=0,_=0;_<e.length;++_){var i=e.charCodeAt(_);127>=i?n++:2047>=i?n+=2:55296<=i&&57343>=i?(n+=4,++_):n+=3}if(n=Array(n+1),i=n.length,_=0,g(typeof e=="string"),0<i){i=_+i-1;for(var p=0;p<e.length;++p){var s=e.charCodeAt(p);if(55296<=s&&57343>=s){var l=e.charCodeAt(++p);s=65536+((s&1023)<<10)|l&1023}if(127>=s){if(_>=i)break;n[_++]=s}else{if(2047>=s){if(_+1>=i)break;n[_++]=192|s>>6}else{if(65535>=s){if(_+2>=i)break;n[_++]=224|s>>12}else{if(_+3>=i)break;1114111<s&&Ae("Invalid Unicode code point "+Pe(s)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),n[_++]=240|s>>18,n[_++]=128|s>>12&63}n[_++]=128|s>>6&63}n[_++]=128|s&63}}n[_]=0}return n}function wt(e,n){g(0<=e.length,"writeArrayToMemory array must have a length (should be an array or typed array)"),Ce.set(e,n)}function Dt(e,n,_,i){function p(r,P,S){for(r=typeof r=="number"?r.toString():r||"";r.length<P;)r=S[0]+r;return r}function s(r,P){return p(r,P,"0")}function l(r,P){function S(mt){return 0>mt?-1:0<mt?1:0}var ae;return(ae=S(r.getFullYear()-P.getFullYear()))===0&&(ae=S(r.getMonth()-P.getMonth()))===0&&(ae=S(r.getDate()-P.getDate())),ae}function U(r){switch(r.getDay()){case 0:return new Date(r.getFullYear()-1,11,29);case 1:return r;case 2:return new Date(r.getFullYear(),0,3);case 3:return new Date(r.getFullYear(),0,2);case 4:return new Date(r.getFullYear(),0,1);case 5:return new Date(r.getFullYear()-1,11,31);case 6:return new Date(r.getFullYear()-1,11,30)}}function W(r){var P=r.o;for(r=new Date(new Date(r.s+1900,0,1).getTime());0<P;){var S=r.getMonth(),ae=(Te(r.getFullYear())?ot:_t)[S];if(P>ae-r.getDate())P-=ae-r.getDate()+1,r.setDate(1),11>S?r.setMonth(S+1):(r.setMonth(0),r.setFullYear(r.getFullYear()+1));else{r.setDate(r.getDate()+P);break}}return S=new Date(r.getFullYear()+1,0,4),P=U(new Date(r.getFullYear(),0,4)),S=U(S),0>=l(P,r)?0>=l(S,r)?r.getFullYear()+1:r.getFullYear():r.getFullYear()-1}var z=J[i+40>>2];i={sa:J[i>>2],ra:J[i+4>>2],u:J[i+8>>2],C:J[i+12>>2],v:J[i+16>>2],s:J[i+20>>2],m:J[i+24>>2],o:J[i+28>>2],va:J[i+32>>2],qa:J[i+36>>2],ta:z?se(z):""},_=se(_),z={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var V in z)_=_.replace(new RegExp(V,"g"),z[V]);var ce="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ut="January February March April May June July August September October November December".split(" ");z={"%a":function(r){return ce[r.m].substring(0,3)},"%A":function(r){return ce[r.m]},"%b":function(r){return ut[r.v].substring(0,3)},"%B":function(r){return ut[r.v]},"%C":function(r){return s((r.s+1900)/100|0,2)},"%d":function(r){return s(r.C,2)},"%e":function(r){return p(r.C,2," ")},"%g":function(r){return W(r).toString().substring(2)},"%G":function(r){return W(r)},"%H":function(r){return s(r.u,2)},"%I":function(r){return r=r.u,r==0?r=12:12<r&&(r-=12),s(r,2)},"%j":function(r){for(var P=0,S=0;S<=r.v-1;P+=(Te(r.s+1900)?ot:_t)[S++]);return s(r.C+P,3)},"%m":function(r){return s(r.v+1,2)},"%M":function(r){return s(r.ra,2)},"%n":function(){return`
|
|
2
2
|
`},"%p":function(r){return 0<=r.u&&12>r.u?"AM":"PM"},"%S":function(r){return s(r.sa,2)},"%t":function(){return" "},"%u":function(r){return r.m||7},"%U":function(r){return s(Math.floor((r.o+7-r.m)/7),2)},"%V":function(r){var P=Math.floor((r.o+7-(r.m+6)%7)/7);if(2>=(r.m+371-r.o-2)%7&&P++,P)P==53&&(S=(r.m+371-r.o)%7,S==4||S==3&&Te(r.s)||(P=1));else{P=52;var S=(r.m+7-r.o-1)%7;(S==4||S==5&&Te(r.s%400-1))&&P++}return s(P,2)},"%w":function(r){return r.m},"%W":function(r){return s(Math.floor((r.o+7-(r.m+6)%7)/7),2)},"%y":function(r){return(r.s+1900).toString().substring(2)},"%Y":function(r){return r.s+1900},"%z":function(r){r=r.qa;var P=0<=r;return r=Math.abs(r)/60,(P?"+":"-")+("0000"+(r/60*100+r%60)).slice(-4)},"%Z":function(r){return r.ta},"%%":function(){return"%"}},_=_.replace(/%%/g,"\0\0");for(V in z)_.includes(V)&&(_=_.replace(new RegExp(V,"g"),z[V](i)));return _=_.replace(/\0\0/g,"%"),V=Ot(_),V.length>n?0:(wt(V,e),V.length-1)}var it={__assert_fail:function(e,n,_,i){D("Assertion failed: "+se(e)+", at: "+[n?se(n):"unknown filename",_,i?se(i):"unknown function"])},__throw_exception_with_stack_trace:function(e){if(e=new WebAssembly.Exception(t.asm.__cpp_exception,[e],{wa:!0}),e.message=tt(e),e.stack){var n=e.stack.split(`
|
|
3
3
|
`);n.splice(1,1),e.stack=n.join(`
|
|
4
|
-
`)}throw e},abort:function(){D("native code called abort()")},emscripten_date_now:function(){return Date.now()},emscripten_memcpy_big:function(e,n,_){le.copyWithin(e,n,n+_)},emscripten_resize_heap:function(e){var n=le.length;if(e>>>=0,g(e>n),2147483648<e)return N("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var _=1;4>=_;_*=2){var i=n*(1+.2/_);i=Math.min(i,e+100663296);var p=Math;i=Math.max(e,i),p=p.min.call(p,2147483648,i+(65536-i%65536)%65536);e:{i=p;var s=fe.buffer;try{fe.grow(i-s.byteLength+65535>>>16),He();var l=1;break e}catch(U){N("emscripten_realloc_buffer: Attempted to grow heap from "+s.byteLength+" bytes to "+i+" bytes, but got error: "+U)}l=void 0}if(l)return!0}return N("Failed to grow the heap from "+n+" bytes to "+p+" bytes, not enough memory!"),!1},environ_get:function(e,n){var _=0;return nt().forEach(function(i,p){var s=n+_;for(p=x[e+4*p>>2]=s,s=0;s<i.length;++s)g(i.charCodeAt(s)===(i.charCodeAt(s)&255)),Ce[p++>>0]=i.charCodeAt(s);Ce[p>>0]=0,_+=i.length+1}),0},environ_sizes_get:function(e,n){var _=nt();x[e>>2]=_.length;var i=0;return _.forEach(function(p){i+=p.length+1}),x[n>>2]=i,0},fd_close:function(){D("fd_close called without SYSCALLS_REQUIRE_FILESYSTEM")},fd_seek:function(){return 70},fd_write:function(e,n,_,i){for(var p=0,s=0;s<_;s++){var l=x[n>>2],U=x[n+4>>2];n+=8;for(var W=0;W<U;W++){var z=e,V=le[l+W],ce=Et[z];g(ce),V===0||V===10?((z===1?Re:N)(et(ce,0)),ce.length=0):ce.push(V)}p+=U}return x[i>>2]=p,0},strftime_l:function(e,n,_,i){return Dt(e,n,_,i)}};(function(){function e(i){i=i.exports;var p={};for(l in i){var s=i[l];p[l]=typeof s=="function"?Ye(s):s}if(i=p,t.asm=i,fe=t.asm.memory,g(fe,"memory not found in wasm exports"),He(),H=t.asm.__indirect_function_table,g(H,"table not found in wasm exports"),Oe.unshift(t.asm.__wasm_call_ctors),Ct(),re--,t.monitorRunDependencies&&t.monitorRunDependencies(re),g(ve["wasm-instantiate"]),delete ve["wasm-instantiate"],re==0&&(pe!==null&&(clearInterval(pe),pe=null),he)){var l=he;he=null,l()}return i}var n={env:it,wasi_snapshot_preview1:it};Rt();var _=t;if(t.instantiateWasm)try{return t.instantiateWasm(n,e)}catch(i){N("Module.instantiateWasm callback failed with error: "+i),f(i)}return St(n,function(i){g(t===_,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),_=null,e(i.instance)}).catch(f),{}})(),t._malloc=o("malloc");var rt=t._free=o("free");t._fflush=o("fflush");var jt=t._emscripten_bind_VoidPtr___destroy___0=o("emscripten_bind_VoidPtr___destroy___0"),Ft=t._emscripten_bind_HyperedgeImprover_HyperedgeImprover_0=o("emscripten_bind_HyperedgeImprover_HyperedgeImprover_0"),Mt=t._emscripten_bind_HyperedgeImprover_clear_0=o("emscripten_bind_HyperedgeImprover_clear_0"),xt=t._emscripten_bind_HyperedgeImprover_setRouter_1=o("emscripten_bind_HyperedgeImprover_setRouter_1"),Lt=t._emscripten_bind_HyperedgeImprover___destroy___0=o("emscripten_bind_HyperedgeImprover___destroy___0"),Nt=t._emscripten_bind_Box_Box_0=o("emscripten_bind_Box_Box_0"),Ht=t._emscripten_bind_Box_length_1=o("emscripten_bind_Box_length_1"),kt=t._emscripten_bind_Box_width_0=o("emscripten_bind_Box_width_0"),Ut=t._emscripten_bind_Box_height_0=o("emscripten_bind_Box_height_0"),Vt=t._emscripten_bind_Box_get_min_0=o("emscripten_bind_Box_get_min_0"),Jt=t._emscripten_bind_Box_set_min_1=o("emscripten_bind_Box_set_min_1"),Bt=t._emscripten_bind_Box_get_max_0=o("emscripten_bind_Box_get_max_0"),Wt=t._emscripten_bind_Box_set_max_1=o("emscripten_bind_Box_set_max_1"),Yt=t._emscripten_bind_Box___destroy___0=o("emscripten_bind_Box___destroy___0"),Gt=t._emscripten_bind_PolygonInterface_clear_0=o("emscripten_bind_PolygonInterface_clear_0"),zt=t._emscripten_bind_PolygonInterface_empty_0=o("emscripten_bind_PolygonInterface_empty_0"),qt=t._emscripten_bind_PolygonInterface_size_0=o("emscripten_bind_PolygonInterface_size_0"),Kt=t._emscripten_bind_PolygonInterface_id_0=o("emscripten_bind_PolygonInterface_id_0"),Xt=t._emscripten_bind_PolygonInterface_at_1=o("emscripten_bind_PolygonInterface_at_1"),Zt=t._emscripten_bind_PolygonInterface_boundingRectPolygon_0=o("emscripten_bind_PolygonInterface_boundingRectPolygon_0"),$t=t._emscripten_bind_PolygonInterface_offsetBoundingBox_1=o("emscripten_bind_PolygonInterface_offsetBoundingBox_1"),Qt=t._emscripten_bind_PolygonInterface_offsetPolygon_1=o("emscripten_bind_PolygonInterface_offsetPolygon_1"),en=t._emscripten_bind_PolygonInterface___destroy___0=o("emscripten_bind_PolygonInterface___destroy___0"),tn=t._emscripten_bind_Polygon_Polygon_0=o("emscripten_bind_Polygon_Polygon_0"),nn=t._emscripten_bind_Polygon_Polygon_1=o("emscripten_bind_Polygon_Polygon_1"),on=t._emscripten_bind_Polygon_setPoint_2=o("emscripten_bind_Polygon_setPoint_2"),_n=t._emscripten_bind_Polygon_size_0=o("emscripten_bind_Polygon_size_0"),rn=t._emscripten_bind_Polygon_get_ps_1=o("emscripten_bind_Polygon_get_ps_1"),pn=t._emscripten_bind_Polygon_set_ps_2=o("emscripten_bind_Polygon_set_ps_2"),sn=t._emscripten_bind_Polygon___destroy___0=o("emscripten_bind_Polygon___destroy___0"),cn=t._emscripten_bind_Point_Point_0=o("emscripten_bind_Point_Point_0"),an=t._emscripten_bind_Point_Point_2=o("emscripten_bind_Point_Point_2"),dn=t._emscripten_bind_Point_equal_1=o("emscripten_bind_Point_equal_1"),un=t._emscripten_bind_Point_get_x_0=o("emscripten_bind_Point_get_x_0"),mn=t._emscripten_bind_Point_set_x_1=o("emscripten_bind_Point_set_x_1"),gn=t._emscripten_bind_Point_get_y_0=o("emscripten_bind_Point_get_y_0"),yn=t._emscripten_bind_Point_set_y_1=o("emscripten_bind_Point_set_y_1"),fn=t._emscripten_bind_Point_get_id_0=o("emscripten_bind_Point_get_id_0"),ln=t._emscripten_bind_Point_set_id_1=o("emscripten_bind_Point_set_id_1"),bn=t._emscripten_bind_Point_get_vn_0=o("emscripten_bind_Point_get_vn_0"),hn=t._emscripten_bind_Point_set_vn_1=o("emscripten_bind_Point_set_vn_1"),vn=t._emscripten_bind_Point___destroy___0=o("emscripten_bind_Point___destroy___0"),Pn=t._emscripten_bind_Rectangle_Rectangle_2=o("emscripten_bind_Rectangle_Rectangle_2"),Rn=t._emscripten_bind_Rectangle_Rectangle_3=o("emscripten_bind_Rectangle_Rectangle_3"),Cn=t._emscripten_bind_Rectangle___destroy___0=o("emscripten_bind_Rectangle___destroy___0"),An=t._emscripten_bind_HyperedgeTreeNode_HyperedgeTreeNode_0=o("emscripten_bind_HyperedgeTreeNode_HyperedgeTreeNode_0"),Sn=t._emscripten_bind_HyperedgeTreeNode_writeEdgesToConns_2=o("emscripten_bind_HyperedgeTreeNode_writeEdgesToConns_2"),Tn=t._emscripten_bind_HyperedgeTreeNode___destroy___0=o("emscripten_bind_HyperedgeTreeNode___destroy___0"),In=t._emscripten_bind_HyperedgeTreeEdge_HyperedgeTreeEdge_3=o("emscripten_bind_HyperedgeTreeEdge_HyperedgeTreeEdge_3"),En=t._emscripten_bind_HyperedgeTreeEdge___destroy___0=o("emscripten_bind_HyperedgeTreeEdge___destroy___0"),On=t._emscripten_bind_AStarPath_AStarPath_0=o("emscripten_bind_AStarPath_AStarPath_0"),wn=t._emscripten_bind_AStarPath_search_4=o("emscripten_bind_AStarPath_search_4"),Dn=t._emscripten_bind_AStarPath___destroy___0=o("emscripten_bind_AStarPath___destroy___0"),jn=t._emscripten_bind_ConnEnd_ConnEnd_1=o("emscripten_bind_ConnEnd_ConnEnd_1"),Fn=t._emscripten_bind_ConnEnd_ConnEnd_2=o("emscripten_bind_ConnEnd_ConnEnd_2"),Mn=t._emscripten_bind_ConnEnd_createConnEndFromJunctionRef_1=o("emscripten_bind_ConnEnd_createConnEndFromJunctionRef_1"),xn=t._emscripten_bind_ConnEnd___destroy___0=o("emscripten_bind_ConnEnd___destroy___0"),Ln=t._emscripten_bind_ActionInfo_ActionInfo_2=o("emscripten_bind_ActionInfo_ActionInfo_2"),Nn=t._emscripten_bind_ActionInfo_ActionInfo_3=o("emscripten_bind_ActionInfo_ActionInfo_3"),Hn=t._emscripten_bind_ActionInfo_ActionInfo_4=o("emscripten_bind_ActionInfo_ActionInfo_4"),kn=t._emscripten_bind_ActionInfo_obstacle_0=o("emscripten_bind_ActionInfo_obstacle_0"),Un=t._emscripten_bind_ActionInfo_shape_0=o("emscripten_bind_ActionInfo_shape_0"),Vn=t._emscripten_bind_ActionInfo_conn_0=o("emscripten_bind_ActionInfo_conn_0"),Jn=t._emscripten_bind_ActionInfo_junction_0=o("emscripten_bind_ActionInfo_junction_0"),Bn=t._emscripten_bind_ActionInfo_addConnEndUpdate_3=o("emscripten_bind_ActionInfo_addConnEndUpdate_3"),Wn=t._emscripten_bind_ActionInfo_get_type_0=o("emscripten_bind_ActionInfo_get_type_0"),Yn=t._emscripten_bind_ActionInfo_set_type_1=o("emscripten_bind_ActionInfo_set_type_1"),Gn=t._emscripten_bind_ActionInfo_get_objPtr_0=o("emscripten_bind_ActionInfo_get_objPtr_0"),zn=t._emscripten_bind_ActionInfo_set_objPtr_1=o("emscripten_bind_ActionInfo_set_objPtr_1"),qn=t._emscripten_bind_ActionInfo_get_newPoly_0=o("emscripten_bind_ActionInfo_get_newPoly_0"),Kn=t._emscripten_bind_ActionInfo_set_newPoly_1=o("emscripten_bind_ActionInfo_set_newPoly_1"),Xn=t._emscripten_bind_ActionInfo_get_newPosition_0=o("emscripten_bind_ActionInfo_get_newPosition_0"),Zn=t._emscripten_bind_ActionInfo_set_newPosition_1=o("emscripten_bind_ActionInfo_set_newPosition_1"),$n=t._emscripten_bind_ActionInfo_get_firstMove_0=o("emscripten_bind_ActionInfo_get_firstMove_0"),Qn=t._emscripten_bind_ActionInfo_set_firstMove_1=o("emscripten_bind_ActionInfo_set_firstMove_1"),eo=t._emscripten_bind_ActionInfo___destroy___0=o("emscripten_bind_ActionInfo___destroy___0"),to=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_2=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_2"),no=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_3=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_3"),oo=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_6=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_6"),_o=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_7=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_7"),io=t._emscripten_bind_ShapeConnectionPin_setConnectionCost_1=o("emscripten_bind_ShapeConnectionPin_setConnectionCost_1"),ro=t._emscripten_bind_ShapeConnectionPin_position_0=o("emscripten_bind_ShapeConnectionPin_position_0"),po=t._emscripten_bind_ShapeConnectionPin_position_1=o("emscripten_bind_ShapeConnectionPin_position_1"),so=t._emscripten_bind_ShapeConnectionPin_directions_0=o("emscripten_bind_ShapeConnectionPin_directions_0"),co=t._emscripten_bind_ShapeConnectionPin_setExclusive_1=o("emscripten_bind_ShapeConnectionPin_setExclusive_1"),ao=t._emscripten_bind_ShapeConnectionPin_isExclusive_0=o("emscripten_bind_ShapeConnectionPin_isExclusive_0"),uo=t._emscripten_bind_ShapeConnectionPin_updatePosition_1=o("emscripten_bind_ShapeConnectionPin_updatePosition_1"),mo=t._emscripten_bind_ShapeConnectionPin___destroy___0=o("emscripten_bind_ShapeConnectionPin___destroy___0"),go=t._emscripten_bind_Obstacle_id_0=o("emscripten_bind_Obstacle_id_0"),yo=t._emscripten_bind_Obstacle_polygon_0=o("emscripten_bind_Obstacle_polygon_0"),fo=t._emscripten_bind_Obstacle_router_0=o("emscripten_bind_Obstacle_router_0"),lo=t._emscripten_bind_Obstacle_position_0=o("emscripten_bind_Obstacle_position_0"),bo=t._emscripten_bind_Obstacle_setNewPoly_1=o("emscripten_bind_Obstacle_setNewPoly_1"),ho=t._emscripten_bind_Obstacle___destroy___0=o("emscripten_bind_Obstacle___destroy___0"),vo=t._emscripten_bind_JunctionRef_JunctionRef_2=o("emscripten_bind_JunctionRef_JunctionRef_2"),Po=t._emscripten_bind_JunctionRef_JunctionRef_3=o("emscripten_bind_JunctionRef_JunctionRef_3"),Ro=t._emscripten_bind_JunctionRef_position_0=o("emscripten_bind_JunctionRef_position_0"),Co=t._emscripten_bind_JunctionRef_setPositionFixed_1=o("emscripten_bind_JunctionRef_setPositionFixed_1"),Ao=t._emscripten_bind_JunctionRef_positionFixed_0=o("emscripten_bind_JunctionRef_positionFixed_0"),So=t._emscripten_bind_JunctionRef_recommendedPosition_0=o("emscripten_bind_JunctionRef_recommendedPosition_0"),To=t._emscripten_bind_JunctionRef___destroy___0=o("emscripten_bind_JunctionRef___destroy___0"),Io=t._emscripten_bind_ShapeRef_ShapeRef_2=o("emscripten_bind_ShapeRef_ShapeRef_2"),Eo=t._emscripten_bind_ShapeRef_ShapeRef_3=o("emscripten_bind_ShapeRef_ShapeRef_3"),Oo=t._emscripten_bind_ShapeRef_polygon_0=o("emscripten_bind_ShapeRef_polygon_0"),wo=t._emscripten_bind_ShapeRef_position_0=o("emscripten_bind_ShapeRef_position_0"),Do=t._emscripten_bind_ShapeRef_setNewPoly_1=o("emscripten_bind_ShapeRef_setNewPoly_1"),jo=t._emscripten_bind_ShapeRef___destroy___0=o("emscripten_bind_ShapeRef___destroy___0"),Fo=t._emscripten_bind_HyperedgeNewAndDeletedObjectLists___destroy___0=o("emscripten_bind_HyperedgeNewAndDeletedObjectLists___destroy___0"),Mo=t._emscripten_bind_HyperedgeRerouter_HyperedgeRerouter_0=o("emscripten_bind_HyperedgeRerouter_HyperedgeRerouter_0"),xo=t._emscripten_bind_HyperedgeRerouter_registerHyperedgeForRerouting_1=o("emscripten_bind_HyperedgeRerouter_registerHyperedgeForRerouting_1"),Lo=t._emscripten_bind_HyperedgeRerouter___destroy___0=o("emscripten_bind_HyperedgeRerouter___destroy___0"),No=t._emscripten_bind_VertInf___destroy___0=o("emscripten_bind_VertInf___destroy___0"),Ho=t._emscripten_bind_VertID_VertID_0=o("emscripten_bind_VertID_VertID_0"),ko=t._emscripten_bind_VertID_VertID_2=o("emscripten_bind_VertID_VertID_2"),Uo=t._emscripten_bind_VertID_VertID_3=o("emscripten_bind_VertID_VertID_3"),Vo=t._emscripten_bind_VertID_get_objID_0=o("emscripten_bind_VertID_get_objID_0"),Jo=t._emscripten_bind_VertID_set_objID_1=o("emscripten_bind_VertID_set_objID_1"),Bo=t._emscripten_bind_VertID_get_vn_0=o("emscripten_bind_VertID_get_vn_0"),Wo=t._emscripten_bind_VertID_set_vn_1=o("emscripten_bind_VertID_set_vn_1"),Yo=t._emscripten_bind_VertID_get_props_0=o("emscripten_bind_VertID_get_props_0"),Go=t._emscripten_bind_VertID_set_props_1=o("emscripten_bind_VertID_set_props_1"),zo=t._emscripten_bind_VertID_get_src_0=o("emscripten_bind_VertID_get_src_0"),qo=t._emscripten_bind_VertID_get_tar_0=o("emscripten_bind_VertID_get_tar_0"),Ko=t._emscripten_bind_VertID_get_PROP_ConnPoint_0=o("emscripten_bind_VertID_get_PROP_ConnPoint_0"),Xo=t._emscripten_bind_VertID_get_PROP_OrthShapeEdge_0=o("emscripten_bind_VertID_get_PROP_OrthShapeEdge_0"),Zo=t._emscripten_bind_VertID_get_PROP_ConnectionPin_0=o("emscripten_bind_VertID_get_PROP_ConnectionPin_0"),$o=t._emscripten_bind_VertID_get_PROP_ConnCheckpoint_0=o("emscripten_bind_VertID_get_PROP_ConnCheckpoint_0"),Qo=t._emscripten_bind_VertID_get_PROP_DummyPinHelper_0=o("emscripten_bind_VertID_get_PROP_DummyPinHelper_0"),e_=t._emscripten_bind_VertID___destroy___0=o("emscripten_bind_VertID___destroy___0"),t_=t._emscripten_bind_MinimumTerminalSpanningTree___destroy___0=o("emscripten_bind_MinimumTerminalSpanningTree___destroy___0"),n_=t._emscripten_bind_Checkpoint_Checkpoint_1=o("emscripten_bind_Checkpoint_Checkpoint_1"),o_=t._emscripten_bind_Checkpoint___destroy___0=o("emscripten_bind_Checkpoint___destroy___0"),__=t._emscripten_bind_ConnRef_ConnRef_3=o("emscripten_bind_ConnRef_ConnRef_3"),i_=t._emscripten_bind_ConnRef_ConnRef_4=o("emscripten_bind_ConnRef_ConnRef_4"),r_=t._emscripten_bind_ConnRef_id_0=o("emscripten_bind_ConnRef_id_0"),p_=t._emscripten_bind_ConnRef_setCallback_2=o("emscripten_bind_ConnRef_setCallback_2"),s_=t._emscripten_bind_ConnRef_setSourceEndpoint_1=o("emscripten_bind_ConnRef_setSourceEndpoint_1"),c_=t._emscripten_bind_ConnRef_setDestEndpoint_1=o("emscripten_bind_ConnRef_setDestEndpoint_1"),a_=t._emscripten_bind_ConnRef_routingType_0=o("emscripten_bind_ConnRef_routingType_0"),d_=t._emscripten_bind_ConnRef_setRoutingType_1=o("emscripten_bind_ConnRef_setRoutingType_1"),u_=t._emscripten_bind_ConnRef_displayRoute_0=o("emscripten_bind_ConnRef_displayRoute_0"),m_=t._emscripten_bind_ConnRef_setHateCrossings_1=o("emscripten_bind_ConnRef_setHateCrossings_1"),g_=t._emscripten_bind_ConnRef_doesHateCrossings_0=o("emscripten_bind_ConnRef_doesHateCrossings_0"),y_=t._emscripten_bind_ConnRef___destroy___0=o("emscripten_bind_ConnRef___destroy___0"),f_=t._emscripten_bind_EdgeInf_EdgeInf_2=o("emscripten_bind_EdgeInf_EdgeInf_2"),l_=t._emscripten_bind_EdgeInf_EdgeInf_3=o("emscripten_bind_EdgeInf_EdgeInf_3"),b_=t._emscripten_bind_EdgeInf___destroy___0=o("emscripten_bind_EdgeInf___destroy___0"),h_=t._emscripten_bind_LineRep_get_begin_0=o("emscripten_bind_LineRep_get_begin_0"),v_=t._emscripten_bind_LineRep_set_begin_1=o("emscripten_bind_LineRep_set_begin_1"),P_=t._emscripten_bind_LineRep_get_end_0=o("emscripten_bind_LineRep_get_end_0"),R_=t._emscripten_bind_LineRep_set_end_1=o("emscripten_bind_LineRep_set_end_1"),C_=t._emscripten_bind_LineRep___destroy___0=o("emscripten_bind_LineRep___destroy___0"),A_=t._emscripten_bind_Router_Router_1=o("emscripten_bind_Router_Router_1"),S_=t._emscripten_bind_Router_processTransaction_0=o("emscripten_bind_Router_processTransaction_0"),T_=t._emscripten_bind_Router_printInfo_0=o("emscripten_bind_Router_printInfo_0"),I_=t._emscripten_bind_Router_deleteConnector_1=o("emscripten_bind_Router_deleteConnector_1"),E_=t._emscripten_bind_Router_moveShape_2=o("emscripten_bind_Router_moveShape_2"),O_=t._emscripten_bind_Router_moveShape_3=o("emscripten_bind_Router_moveShape_3"),w_=t._emscripten_bind_Router_deleteShape_1=o("emscripten_bind_Router_deleteShape_1"),D_=t._emscripten_bind_Router_moveJunction_2=o("emscripten_bind_Router_moveJunction_2"),j_=t._emscripten_bind_Router_moveJunction_3=o("emscripten_bind_Router_moveJunction_3"),F_=t._emscripten_bind_Router_setRoutingParameter_2=o("emscripten_bind_Router_setRoutingParameter_2"),M_=t._emscripten_bind_Router_setRoutingOption_2=o("emscripten_bind_Router_setRoutingOption_2"),x_=t._emscripten_bind_Router___destroy___0=o("emscripten_bind_Router___destroy___0"),L_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirNone=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirNone"),N_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirUp=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirUp"),H_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirDown=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirDown"),k_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirLeft=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirLeft"),U_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirRight=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirRight"),V_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirAll=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirAll"),J_=t._emscripten_enum_Avoid_ConnEndType_ConnEndPoint=o("emscripten_enum_Avoid_ConnEndType_ConnEndPoint"),B_=t._emscripten_enum_Avoid_ConnEndType_ConnEndShapePin=o("emscripten_enum_Avoid_ConnEndType_ConnEndShapePin"),W_=t._emscripten_enum_Avoid_ConnEndType_ConnEndJunction=o("emscripten_enum_Avoid_ConnEndType_ConnEndJunction"),Y_=t._emscripten_enum_Avoid_ConnEndType_ConnEndEmpty=o("emscripten_enum_Avoid_ConnEndType_ConnEndEmpty"),G_=t._emscripten_enum_Avoid_ActionType_ShapeMove=o("emscripten_enum_Avoid_ActionType_ShapeMove"),z_=t._emscripten_enum_Avoid_ActionType_ShapeAdd=o("emscripten_enum_Avoid_ActionType_ShapeAdd"),q_=t._emscripten_enum_Avoid_ActionType_ShapeRemove=o("emscripten_enum_Avoid_ActionType_ShapeRemove"),K_=t._emscripten_enum_Avoid_ActionType_JunctionMove=o("emscripten_enum_Avoid_ActionType_JunctionMove"),X_=t._emscripten_enum_Avoid_ActionType_JunctionAdd=o("emscripten_enum_Avoid_ActionType_JunctionAdd"),Z_=t._emscripten_enum_Avoid_ActionType_JunctionRemove=o("emscripten_enum_Avoid_ActionType_JunctionRemove"),$_=t._emscripten_enum_Avoid_ActionType_ConnChange=o("emscripten_enum_Avoid_ActionType_ConnChange"),Q_=t._emscripten_enum_Avoid_ActionType_ConnectionPinChange=o("emscripten_enum_Avoid_ActionType_ConnectionPinChange"),ei=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW90=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW90"),ti=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW180=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW180"),ni=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW270=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW270"),oi=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipX=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipX"),_i=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipY=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipY"),ii=t._emscripten_enum_Avoid_ConnType_ConnType_None=o("emscripten_enum_Avoid_ConnType_ConnType_None"),ri=t._emscripten_enum_Avoid_ConnType_ConnType_PolyLine=o("emscripten_enum_Avoid_ConnType_ConnType_PolyLine"),pi=t._emscripten_enum_Avoid_ConnType_ConnType_Orthogonal=o("emscripten_enum_Avoid_ConnType_ConnType_Orthogonal"),si=t._emscripten_enum_Avoid_RouterFlag_PolyLineRouting=o("emscripten_enum_Avoid_RouterFlag_PolyLineRouting"),ci=t._emscripten_enum_Avoid_RouterFlag_OrthogonalRouting=o("emscripten_enum_Avoid_RouterFlag_OrthogonalRouting"),ai=t._emscripten_enum_Avoid_RoutingParameter_segmentPenalty=o("emscripten_enum_Avoid_RoutingParameter_segmentPenalty"),di=t._emscripten_enum_Avoid_RoutingParameter_anglePenalty=o("emscripten_enum_Avoid_RoutingParameter_anglePenalty"),ui=t._emscripten_enum_Avoid_RoutingParameter_crossingPenalty=o("emscripten_enum_Avoid_RoutingParameter_crossingPenalty"),mi=t._emscripten_enum_Avoid_RoutingParameter_clusterCrossingPenalty=o("emscripten_enum_Avoid_RoutingParameter_clusterCrossingPenalty"),gi=t._emscripten_enum_Avoid_RoutingParameter_fixedSharedPathPenalty=o("emscripten_enum_Avoid_RoutingParameter_fixedSharedPathPenalty"),yi=t._emscripten_enum_Avoid_RoutingParameter_portDirectionPenalty=o("emscripten_enum_Avoid_RoutingParameter_portDirectionPenalty"),fi=t._emscripten_enum_Avoid_RoutingParameter_shapeBufferDistance=o("emscripten_enum_Avoid_RoutingParameter_shapeBufferDistance"),li=t._emscripten_enum_Avoid_RoutingParameter_idealNudgingDistance=o("emscripten_enum_Avoid_RoutingParameter_idealNudgingDistance"),bi=t._emscripten_enum_Avoid_RoutingParameter_reverseDirectionPenalty=o("emscripten_enum_Avoid_RoutingParameter_reverseDirectionPenalty"),hi=t._emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalSegmentsConnectedToShapes=o("emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalSegmentsConnectedToShapes"),vi=t._emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingJunctions=o("emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingJunctions"),Pi=t._emscripten_enum_Avoid_RoutingOption_penaliseOrthogonalSharedPathsAtConnEnds=o("emscripten_enum_Avoid_RoutingOption_penaliseOrthogonalSharedPathsAtConnEnds"),Ri=t._emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalTouchingColinearSegments=o("emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalTouchingColinearSegments"),Ci=t._emscripten_enum_Avoid_RoutingOption_performUnifyingNudgingPreprocessingStep=o("emscripten_enum_Avoid_RoutingOption_performUnifyingNudgingPreprocessingStep"),Ai=t._emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingAddingAndDeletingJunctions=o("emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingAddingAndDeletingJunctions"),Si=t._emscripten_enum_Avoid_RoutingOption_nudgeSharedPathsWithCommonEndPoint=o("emscripten_enum_Avoid_RoutingOption_nudgeSharedPathsWithCommonEndPoint");function pt(){return(pt=t.asm.__trap).apply(null,arguments)}function st(){return(st=t.asm.emscripten_stack_init).apply(null,arguments)}function Me(){return(Me=t.asm.emscripten_stack_get_end).apply(null,arguments)}var Ti=o("stackSave"),Ii=o("stackRestore"),ct=o("stackAlloc");t.___cxa_decrement_exception_refcount=o("__cxa_decrement_exception_refcount"),t.___cxa_increment_exception_refcount=o("__cxa_increment_exception_refcount");var Ei=t.___thrown_object_from_unwind_exception=o("__thrown_object_from_unwind_exception"),Oi=t.___get_exception_message=o("__get_exception_message");t.dynCall_jiji=o("dynCall_jiji"),t.dynCall_viijii=o("dynCall_viijii"),t.dynCall_iiiiij=o("dynCall_iiiiij"),t.dynCall_iiiiijj=o("dynCall_iiiiijj"),t.dynCall_iiiiiijj=o("dynCall_iiiiiijj"),t.___start_em_js=44420,t.___stop_em_js=44518,"zeroMemory exitJS ydayFromDate setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName initRandomFill randomFill traverseStack getCallstack emscriptenLog convertPCtoSourceLocation readEmAsmArgs jstoi_q jstoi_s listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc HandleAllocator getNativeTypeSize STACK_SIZE STACK_ALIGN POINTER_SIZE ASSERTIONS writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap removeFunction reallyNegative unSign strLen reSign formatString stringToUTF8 intArrayToString AsciiToString UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 stringToNewUTF8 stringToUTF8OnStack getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace checkWasiClock wasiRightsToMuslOFlags wasiOFlagsToMuslOFlags createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate getPromise makePromise idsToPromises makePromiseCallback setMainLoop heapObjectForWebGLType heapAccessShiftForWebGLHeap webgl_enable_ANGLE_instanced_arrays webgl_enable_OES_vertex_array_object webgl_enable_WEBGL_draw_buffers webgl_enable_WEBGL_multi_draw emscriptenWebGLGet computeUnpackAlignedImageSize colorChannelsInGlTextureFormat emscriptenWebGLGetTexPixelData __glGenObject emscriptenWebGLGetUniform webglGetUniformLocation webglPrepareUniformLocationsBeforeFirstUse webglGetLeftBracePos emscriptenWebGLGetVertexAttrib __glGetActiveAttribOrUniform writeGLArray registerWebGlEventCallback runAndAbortIfError SDL_unicode SDL_ttfContext SDL_audio GLFW_Window ALLOC_NORMAL ALLOC_STACK allocate writeStringToMemory writeAsciiToMemory".split(" ").forEach(function(e){typeof globalThis>"u"||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get:function(){var n="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",_=e;_.startsWith("_")||(_="$"+e),n+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+_+")",Ke(e)&&(n+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),Ae(n)}}),Xe(e)}),"run addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString getHeapMax emscripten_realloc_buffer ENV MONTH_DAYS_REGULAR MONTH_DAYS_LEAP MONTH_DAYS_REGULAR_CUMULATIVE MONTH_DAYS_LEAP_CUMULATIVE isLeapYear arraySum addDays ERRNO_CODES ERRNO_MESSAGES DNS Protocols Sockets timers warnOnce UNWIND_CACHE readEmAsmArgsArray getExecutableName convertI32PairToI53Checked uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap getFunctionAddress addFunction setValue getValue PATH PATH_FS UTF8Decoder UTF8ArrayToString UTF8ToString stringToUTF8Array lengthBytesUTF8 intArrayFromString stringToAscii UTF16Decoder writeArrayToMemory SYSCALLS JSEvents specialHTMLTargets currentFullscreenStrategy restoreOldWindowedStyle ExitStatus getEnvStrings flush_NO_FILESYSTEM dlopenMissingError promiseMap getExceptionMessageCommon getCppExceptionTag getCppExceptionThrownObjectFromWebAssemblyException incrementExceptionRefcount decrementExceptionRefcount getExceptionMessage Browser wget tempFixedLengthArray miniTempWebGLFloatBuffers miniTempWebGLIntBuffers GL emscripten_webgl_power_preferences AL GLUT EGL GLEW IDBStore SDL SDL_gfx GLFW allocateUTF8 allocateUTF8OnStack".split(" ").forEach(Xe);var Ie;he=function e(){Ie||at(),Ie||(he=e)};function at(){function e(){if(!Ie&&(Ie=!0,t.calledRun=!0,!ue)){if(g(!be),be=!0,Ee(),De(Oe),y(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),g(!t._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),Ee(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();Je.unshift(n)}De(Je)}}if(!(0<re)){if(st(),vt(),t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Pt();De(Ve),0<re||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),e()},1)):e(),Ee())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();at();function b(){}b.prototype=Object.create(b.prototype),b.prototype.constructor=b,b.prototype.h=b,b.l={},t.WrapperObject=b;function C(e){return(e||b).l}t.getCache=C;function v(e,n){var _=C(n),i=_[e];return i||(i=Object.create((n||b).prototype),i.g=e,_[e]=i)}t.wrapPointer=v,t.castObject=function(e,n){return v(e.g,n)},t.NULL=v(0),t.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete C(e.h)[e.g]},t.compare=function(e,n){return e.g===n.g},t.getPointer=function(e){return e.g},t.getClass=function(e){return e.h};var xe=0,dt=0;function Z(){throw"cannot construct a VoidPtr, no constructor in IDL"}Z.prototype=Object.create(b.prototype),Z.prototype.constructor=Z,Z.prototype.h=Z,Z.l={},t.VoidPtr=Z,Z.prototype.__destroy__=function(){jt(this.g)};function B(){this.g=Ft(),C(B)[this.g]=this}B.prototype=Object.create(b.prototype),B.prototype.constructor=B,B.prototype.h=B,B.l={},t.HyperedgeImprover=B,B.prototype.clear=B.prototype.clear=function(){Mt(this.g)},B.prototype.setRouter=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),xt(n,e)},B.prototype.__destroy__=function(){Lt(this.g)};function h(){this.g=Nt(),C(h)[this.g]=this}h.prototype=Object.create(b.prototype),h.prototype.constructor=h,h.prototype.h=h,h.l={},t.Box=h,h.prototype.length=h.prototype.length=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),Ht(n,e)},h.prototype.width=h.prototype.width=function(){return kt(this.g)},h.prototype.height=h.prototype.height=function(){return Ut(this.g)},h.prototype.get_min=h.prototype.P=function(){return v(Vt(this.g),u)},h.prototype.set_min=h.prototype.ga=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Jt(n,e)},Object.defineProperty(h.prototype,"min",{get:h.prototype.P,set:h.prototype.ga}),h.prototype.get_max=h.prototype.O=function(){return v(Bt(this.g),u)},h.prototype.set_max=h.prototype.fa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Wt(n,e)},Object.defineProperty(h.prototype,"max",{get:h.prototype.O,set:h.prototype.fa}),h.prototype.__destroy__=function(){Yt(this.g)};function T(){throw"cannot construct a PolygonInterface, no constructor in IDL"}T.prototype=Object.create(b.prototype),T.prototype.constructor=T,T.prototype.h=T,T.l={},t.PolygonInterface=T,T.prototype.clear=T.prototype.clear=function(){Gt(this.g)},T.prototype.empty=T.prototype.empty=function(){return!!zt(this.g)},T.prototype.size=T.prototype.size=function(){return qt(this.g)},T.prototype.id=T.prototype.id=function(){return Kt(this.g)},T.prototype.at=T.prototype.at=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Xt(n,e),u)},T.prototype.boundingRectPolygon=function(){return v(Zt(this.g),R)},T.prototype.offsetBoundingBox=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v($t(n,e),h)},T.prototype.offsetPolygon=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Qt(n,e),R)},T.prototype.__destroy__=function(){en(this.g)};function R(e){e&&typeof e=="object"&&(e=e.g),this.g=e===void 0?tn():nn(e),C(R)[this.g]=this}R.prototype=Object.create(b.prototype),R.prototype.constructor=R,R.prototype.h=R,R.l={},t.Polygon=R,R.prototype.setPoint=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),on(_,e,n)},R.prototype.size=R.prototype.size=function(){return _n(this.g)},R.prototype.get_ps=R.prototype.W=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(rn(n,e),u)},R.prototype.set_ps=R.prototype.ma=function(e,n){var _=this.g;xe||(dt+=128,xe=t._malloc(dt),g(xe)),e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),pn(_,e,n)},Object.defineProperty(R.prototype,"ps",{get:R.prototype.W,set:R.prototype.ma}),R.prototype.__destroy__=function(){sn(this.g)};function u(e,n){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),this.g=e===void 0?cn():n===void 0?_emscripten_bind_Point_Point_1(e):an(e,n),C(u)[this.g]=this}u.prototype=Object.create(b.prototype),u.prototype.constructor=u,u.prototype.h=u,u.l={},t.Point=u,u.prototype.equal=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),!!dn(n,e)},u.prototype.get_x=u.prototype.$=function(){return un(this.g)},u.prototype.set_x=u.prototype.oa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),mn(n,e)},Object.defineProperty(u.prototype,"x",{get:u.prototype.$,set:u.prototype.oa}),u.prototype.get_y=u.prototype.aa=function(){return gn(this.g)},u.prototype.set_y=u.prototype.pa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),yn(n,e)},Object.defineProperty(u.prototype,"y",{get:u.prototype.aa,set:u.prototype.pa}),u.prototype.get_id=u.prototype.N=function(){return fn(this.g)},u.prototype.set_id=u.prototype.ea=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),ln(n,e)},Object.defineProperty(u.prototype,"id",{get:u.prototype.N,set:u.prototype.ea}),u.prototype.get_vn=u.prototype.A=function(){return bn(this.g)},u.prototype.set_vn=u.prototype.B=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),hn(n,e)},Object.defineProperty(u.prototype,"vn",{get:u.prototype.A,set:u.prototype.B}),u.prototype.__destroy__=function(){vn(this.g)};function $(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?Pn(e,n):Rn(e,n,_),C($)[this.g]=this}$.prototype=Object.create(b.prototype),$.prototype.constructor=$,$.prototype.h=$,$.l={},t.Rectangle=$,$.prototype.__destroy__=function(){Cn(this.g)};function q(){this.g=An(),C(q)[this.g]=this}q.prototype=Object.create(b.prototype),q.prototype.constructor=q,q.prototype.h=q,q.l={},t.HyperedgeTreeNode=q,q.prototype.writeEdgesToConns=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),Sn(_,e,n)},q.prototype.__destroy__=function(){Tn(this.g)};function Q(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=In(e,n,_),C(Q)[this.g]=this}Q.prototype=Object.create(b.prototype),Q.prototype.constructor=Q,Q.prototype.h=Q,Q.l={},t.HyperedgeTreeEdge=Q,Q.prototype.__destroy__=function(){En(this.g)};function Y(){this.g=On(),C(Y)[this.g]=this}Y.prototype=Object.create(b.prototype),Y.prototype.constructor=Y,Y.prototype.h=Y,Y.l={},t.AStarPath=Y,Y.prototype.search=Y.prototype.search=function(e,n,_,i){var p=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),wn(p,e,n,_,i)},Y.prototype.__destroy__=function(){Dn(this.g)};function G(e,n){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),this.g=n===void 0?jn(e):Fn(e,n),C(G)[this.g]=this}G.prototype=Object.create(b.prototype),G.prototype.constructor=G,G.prototype.h=G,G.l={},t.ConnEnd=G,G.prototype.createConnEndFromJunctionRef=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Mn(n,e),G)},G.prototype.__destroy__=function(){xn(this.g)};function m(e,n,_,i){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),this.g=_===void 0?Ln(e,n):i===void 0?Nn(e,n,_):Hn(e,n,_,i),C(m)[this.g]=this}m.prototype=Object.create(b.prototype),m.prototype.constructor=m,m.prototype.h=m,m.l={},t.ActionInfo=m,m.prototype.obstacle=function(){return v(kn(this.g),F)},m.prototype.shape=m.prototype.shape=function(){return v(Un(this.g),k)},m.prototype.conn=function(){return v(Vn(this.g),E)},m.prototype.junction=function(){return v(Jn(this.g),L)},m.prototype.addConnEndUpdate=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),Bn(i,e,n,_)},m.prototype.get_type=m.prototype.Z=function(){return Wn(this.g)},m.prototype.set_type=m.prototype.na=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Yn(n,e)},Object.defineProperty(m.prototype,"type",{get:m.prototype.Z,set:m.prototype.na}),m.prototype.get_objPtr=m.prototype.U=function(){return v(Gn(this.g),Z)},m.prototype.set_objPtr=m.prototype.ka=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),zn(n,e)},Object.defineProperty(m.prototype,"objPtr",{get:m.prototype.U,set:m.prototype.ka}),m.prototype.get_newPoly=m.prototype.R=function(){return v(qn(this.g),R)},m.prototype.set_newPoly=m.prototype.ha=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Kn(n,e)},Object.defineProperty(m.prototype,"newPoly",{get:m.prototype.R,set:m.prototype.ha}),m.prototype.get_newPosition=m.prototype.S=function(){return v(Xn(this.g),u)},m.prototype.set_newPosition=m.prototype.ia=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Zn(n,e)},Object.defineProperty(m.prototype,"newPosition",{get:m.prototype.S,set:m.prototype.ia}),m.prototype.get_firstMove=m.prototype.M=function(){return!!$n(this.g)},m.prototype.set_firstMove=m.prototype.da=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Qn(n,e)},Object.defineProperty(m.prototype,"firstMove",{get:m.prototype.M,set:m.prototype.da}),m.prototype.__destroy__=function(){eo(this.g)};function j(e,n,_,i,p,s,l){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),p&&typeof p=="object"&&(p=p.g),s&&typeof s=="object"&&(s=s.g),l&&typeof l=="object"&&(l=l.g),this.g=_===void 0?to(e,n):i===void 0?no(e,n,_):p===void 0?_emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_4(e,n,_,i):s===void 0?_emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_5(e,n,_,i,p):l===void 0?oo(e,n,_,i,p,s):_o(e,n,_,i,p,s,l),C(j)[this.g]=this}j.prototype=Object.create(b.prototype),j.prototype.constructor=j,j.prototype.h=j,j.l={},t.ShapeConnectionPin=j,j.prototype.setConnectionCost=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),io(n,e)},j.prototype.position=j.prototype.position=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(e===void 0?ro(n):po(n,e),u)},j.prototype.directions=function(){return so(this.g)},j.prototype.setExclusive=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),co(n,e)},j.prototype.isExclusive=function(){return!!ao(this.g)},j.prototype.updatePosition=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),uo(n,e)},j.prototype.__destroy__=function(){mo(this.g)};function F(){throw"cannot construct a Obstacle, no constructor in IDL"}F.prototype=Object.create(b.prototype),F.prototype.constructor=F,F.prototype.h=F,F.l={},t.Obstacle=F,F.prototype.id=F.prototype.id=function(){return go(this.g)},F.prototype.polygon=function(){return v(yo(this.g),R)},F.prototype.router=function(){return v(fo(this.g),O)},F.prototype.position=F.prototype.position=function(){return v(lo(this.g),u)},F.prototype.setNewPoly=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),bo(n,e)},F.prototype.__destroy__=function(){ho(this.g)};function L(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?vo(e,n):Po(e,n,_),C(L)[this.g]=this}L.prototype=Object.create(b.prototype),L.prototype.constructor=L,L.prototype.h=L,L.l={},t.JunctionRef=L,L.prototype.position=L.prototype.position=function(){return v(Ro(this.g),u)},L.prototype.setPositionFixed=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Co(n,e)},L.prototype.positionFixed=function(){return!!Ao(this.g)},L.prototype.recommendedPosition=function(){return v(So(this.g),u)},L.prototype.__destroy__=function(){To(this.g)};function k(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?Io(e,n):Eo(e,n,_),C(k)[this.g]=this}k.prototype=Object.create(b.prototype),k.prototype.constructor=k,k.prototype.h=k,k.l={},t.ShapeRef=k,k.prototype.polygon=function(){return v(Oo(this.g),R)},k.prototype.position=k.prototype.position=function(){return v(wo(this.g),u)},k.prototype.setNewPoly=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Do(n,e)},k.prototype.__destroy__=function(){jo(this.g)};function oe(){throw"cannot construct a HyperedgeNewAndDeletedObjectLists, no constructor in IDL"}oe.prototype=Object.create(b.prototype),oe.prototype.constructor=oe,oe.prototype.h=oe,oe.l={},t.HyperedgeNewAndDeletedObjectLists=oe,oe.prototype.__destroy__=function(){Fo(this.g)};function K(){this.g=Mo(),C(K)[this.g]=this}K.prototype=Object.create(b.prototype),K.prototype.constructor=K,K.prototype.h=K,K.l={},t.HyperedgeRerouter=K,K.prototype.registerHyperedgeForRerouting=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),xo(n,e)},K.prototype.__destroy__=function(){Lo(this.g)};function _e(){throw"cannot construct a VertInf, no constructor in IDL"}_e.prototype=Object.create(b.prototype),_e.prototype.constructor=_e,_e.prototype.h=_e,_e.l={},t.VertInf=_e,_e.prototype.__destroy__=function(){No(this.g)};function a(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=e===void 0?Ho():n===void 0?_emscripten_bind_VertID_VertID_1(e):_===void 0?ko(e,n):Uo(e,n,_),C(a)[this.g]=this}a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.prototype.h=a,a.l={},t.VertID=a,a.prototype.get_objID=a.prototype.T=function(){return Vo(this.g)},a.prototype.set_objID=a.prototype.ja=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Jo(n,e)},Object.defineProperty(a.prototype,"objID",{get:a.prototype.T,set:a.prototype.ja}),a.prototype.get_vn=a.prototype.A=function(){return Bo(this.g)},a.prototype.set_vn=a.prototype.B=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Wo(n,e)},Object.defineProperty(a.prototype,"vn",{get:a.prototype.A,set:a.prototype.B}),a.prototype.get_props=a.prototype.V=function(){return Yo(this.g)},a.prototype.set_props=a.prototype.la=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Go(n,e)},Object.defineProperty(a.prototype,"props",{get:a.prototype.V,set:a.prototype.la}),a.prototype.get_src=a.prototype.X=function(){return zo(this.g)},Object.defineProperty(a.prototype,"src",{get:a.prototype.X}),a.prototype.get_tar=a.prototype.Y=function(){return qo(this.g)},Object.defineProperty(a.prototype,"tar",{get:a.prototype.Y}),a.prototype.get_PROP_ConnPoint=a.prototype.G=function(){return Ko(this.g)},Object.defineProperty(a.prototype,"PROP_ConnPoint",{get:a.prototype.G}),a.prototype.get_PROP_OrthShapeEdge=a.prototype.J=function(){return Xo(this.g)},Object.defineProperty(a.prototype,"PROP_OrthShapeEdge",{get:a.prototype.J}),a.prototype.get_PROP_ConnectionPin=a.prototype.H=function(){return Zo(this.g)},Object.defineProperty(a.prototype,"PROP_ConnectionPin",{get:a.prototype.H}),a.prototype.get_PROP_ConnCheckpoint=a.prototype.F=function(){return $o(this.g)},Object.defineProperty(a.prototype,"PROP_ConnCheckpoint",{get:a.prototype.F}),a.prototype.get_PROP_DummyPinHelper=a.prototype.I=function(){return Qo(this.g)},Object.defineProperty(a.prototype,"PROP_DummyPinHelper",{get:a.prototype.I}),a.prototype.__destroy__=function(){e_(this.g)};function ie(){throw"cannot construct a MinimumTerminalSpanningTree, no constructor in IDL"}ie.prototype=Object.create(b.prototype),ie.prototype.constructor=ie,ie.prototype.h=ie,ie.l={},t.MinimumTerminalSpanningTree=ie,ie.prototype.__destroy__=function(){t_(this.g)};function ee(e){e&&typeof e=="object"&&(e=e.g),this.g=n_(e),C(ee)[this.g]=this}ee.prototype=Object.create(b.prototype),ee.prototype.constructor=ee,ee.prototype.h=ee,ee.l={},t.Checkpoint=ee,ee.prototype.__destroy__=function(){o_(this.g)};function E(e,n,_,i){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),this.g=i===void 0?__(e,n,_):i_(e,n,_,i),C(E)[this.g]=this}E.prototype=Object.create(b.prototype),E.prototype.constructor=E,E.prototype.h=E,E.l={},t.ConnRef=E,E.prototype.id=E.prototype.id=function(){return r_(this.g)},E.prototype.setCallback=function(e,n){var _=this.g;if(g(e instanceof Function,"Expecting function"),g(typeof e<"u"),!ge){ge=new WeakMap;var i=H.length;if(ge)for(var p=0;p<0+i;p++){var s=p,l=me[s];l||(s>=me.length&&(me.length=s+1),me[s]=l=H.get(s)),g(H.get(s)==l,"JavaScript-side Wasm function table mirror is out of date!"),(s=l)&&ge.set(s,p)}}if(i=ge.get(e)||0)e=i;else{if($e.length)i=$e.pop();else{try{H.grow(1)}catch(W){throw W instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":W}i=H.length-1}try{p=i,H.set(p,e),me[p]=H.get(p)}catch(W){if(!(W instanceof TypeError))throw W;if(g(!0,"Missing signature argument to addFunction: "+e),typeof WebAssembly.Function=="function"){p=WebAssembly.Function,s={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},l={parameters:[],results:[]};for(var U=1;2>U;++U)g("vi"[U]in s,"invalid signature char: "+"vi"[U]),l.parameters.push(s["vi"[U]]),"vi"[U]==="j"&&l.parameters.push("i32");p=new p(l,e)}else{for(p=[1],s={i:127,p:127,j:126,f:125,d:124},p.push(96),Ze(1,p),l=0;1>l;++l)g("i"[l]in s,"invalid signature char: "+"i"[l]),p.push(s["i"[l]]);p.push(0),s=[0,97,115,109,1,0,0,0,1],Ze(p.length,s),s.push.apply(s,p),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),p=new WebAssembly.Module(new Uint8Array(s)),p=new WebAssembly.Instance(p,{e:{f:e}}).exports.f}s=i,H.set(s,p),me[s]=H.get(s)}ge.set(e,i),e=i}n&&typeof n=="object"&&(n=n.g),p_(_,e,n)},E.prototype.setSourceEndpoint=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),s_(n,e)},E.prototype.setDestEndpoint=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),c_(n,e)},E.prototype.routingType=function(){return a_(this.g)},E.prototype.setRoutingType=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),d_(n,e)},E.prototype.displayRoute=function(){return v(u_(this.g),R)},E.prototype.setHateCrossings=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),m_(n,e)},E.prototype.doesHateCrossings=function(){return!!g_(this.g)},E.prototype.__destroy__=function(){y_(this.g)};function te(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?f_(e,n):l_(e,n,_),C(te)[this.g]=this}te.prototype=Object.create(b.prototype),te.prototype.constructor=te,te.prototype.h=te,te.l={},t.EdgeInf=te,te.prototype.__destroy__=function(){b_(this.g)};function A(){throw"cannot construct a LineRep, no constructor in IDL"}A.prototype=Object.create(b.prototype),A.prototype.constructor=A,A.prototype.h=A,A.l={},t.LineRep=A,A.prototype.get_begin=A.prototype.K=function(){return v(h_(this.g),u)},A.prototype.set_begin=A.prototype.ba=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),v_(n,e)},Object.defineProperty(A.prototype,"begin",{get:A.prototype.K,set:A.prototype.ba}),A.prototype.get_end=A.prototype.L=function(){return v(P_(this.g),u)},A.prototype.set_end=A.prototype.ca=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),R_(n,e)},Object.defineProperty(A.prototype,"end",{get:A.prototype.L,set:A.prototype.ca}),A.prototype.__destroy__=function(){C_(this.g)};function O(e){e&&typeof e=="object"&&(e=e.g),this.g=A_(e),C(O)[this.g]=this}return O.prototype=Object.create(b.prototype),O.prototype.constructor=O,O.prototype.h=O,O.l={},t.Router=O,O.prototype.processTransaction=function(){return!!S_(this.g)},O.prototype.printInfo=function(){T_(this.g)},O.prototype.deleteConnector=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),I_(n,e)},O.prototype.moveShape=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),_===void 0?E_(i,e,n):O_(i,e,n,_)},O.prototype.deleteShape=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),w_(n,e)},O.prototype.moveJunction=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),_===void 0?D_(i,e,n):j_(i,e,n,_)},O.prototype.setRoutingParameter=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),F_(_,e,n)},O.prototype.setRoutingOption=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),M_(_,e,n)},O.prototype.__destroy__=function(){x_(this.g)},(function(){function e(){t.ConnDirNone=L_(),t.ConnDirUp=N_(),t.ConnDirDown=H_(),t.ConnDirLeft=k_(),t.ConnDirRight=U_(),t.ConnDirAll=V_(),t.ConnEndPoint=J_(),t.ConnEndShapePin=B_(),t.ConnEndJunction=W_(),t.ConnEndEmpty=Y_(),t.ShapeMove=G_(),t.ShapeAdd=z_(),t.ShapeRemove=q_(),t.JunctionMove=K_(),t.JunctionAdd=X_(),t.JunctionRemove=Z_(),t.ConnChange=$_(),t.ConnectionPinChange=Q_(),t.TransformationType_CW90=ei(),t.TransformationType_CW180=ti(),t.TransformationType_CW270=ni(),t.TransformationType_FlipX=oi(),t.TransformationType_FlipY=_i(),t.ConnType_None=ii(),t.ConnType_PolyLine=ri(),t.ConnType_Orthogonal=pi(),t.PolyLineRouting=si(),t.OrthogonalRouting=ci(),t.segmentPenalty=ai(),t.anglePenalty=di(),t.crossingPenalty=ui(),t.clusterCrossingPenalty=mi(),t.fixedSharedPathPenalty=gi(),t.portDirectionPenalty=yi(),t.shapeBufferDistance=fi(),t.idealNudgingDistance=li(),t.reverseDirectionPenalty=bi(),t.nudgeOrthogonalSegmentsConnectedToShapes=hi(),t.improveHyperedgeRoutesMovingJunctions=vi(),t.penaliseOrthogonalSharedPathsAtConnEnds=Pi(),t.nudgeOrthogonalTouchingColinearSegments=Ri(),t.performUnifyingNudgingPreprocessingStep=Ci(),t.improveHyperedgeRoutesMovingAddingAndDeletingJunctions=Ai(),t.nudgeSharedPathsWithCommonEndPoint=Si()}be?e():Oe.unshift(e)})(),c.ready}})(),ji=Di,gt=wi(ji);const yt=(d,c)=>{d.postMessage(c)},Fi=gt.load("/libavoid.wasm").then(()=>gt.getInstance()),Le=new Map,Mi=async(d,c,t,y)=>{if(Le.has(c)){console.warn(`router with id "${c}" already exists`);return}const f=await Fi,w=new f.Router(f.OrthogonalRouting);w.setRoutingParameter(f.idealNudgingDistance,40),w.setRoutingParameter(f.shapeBufferDistance,40),w.setRoutingOption(f.nudgeOrthogonalTouchingColinearSegments,!1),w.setRoutingOption(f.performUnifyingNudgingPreprocessingStep,!0),w.setRoutingOption(f.nudgeSharedPathsWithCommonEndPoint,!1);const M={routerId:c,router:w,shapeMap:new Map,edgeConnRefMap:new Map,avoid:f};Le.set(c,M),console.log(`router with id "${c}" created with ${t.length} shapes and ${y.length} edges`);for(const I of t)Ne(M,I);for(const I of y)ht(d,M,I);w.processTransaction();for(const I of y){const Re=M.edgeConnRefMap.get(I.id);Re&<(d,M,I.id,Re)}yt(d,{type:"router-ready",routerId:c})},ft=(d,c)=>new d.Rectangle(new d.Point(c.x,c.y),new d.Point(c.x+c.width,c.y+c.height)),Ne=(d,c)=>{const t=ft(d.avoid,c),y=new d.avoid.ShapeRef(d.router,t);d.shapeMap.set(c.id,y)},xi=(d,c)=>{const t=d.shapeMap.get(c.id);if(t){const y=ft(d.avoid,c);d.router.moveShape(t,y)}else Ne(d,c)},lt=(d,c,t,y)=>{const f=y.displayRoute(),w=[];for(let M=0;M<f.size();M++)w.push([f.get_ps(M).x,f.get_ps(M).y]);yt(d,{type:"edge-path-updated",routerId:c.routerId,edgeId:t,points:w})},Li=(d,c,t)=>y=>{const f=c.avoid.wrapPointer(y,c.avoid.ConnRef);lt(d,c,t,f)},Ni=(d,c)=>{const t=d.shapeMap.get(c);t&&(d.router.deleteShape(t),d.shapeMap.delete(c))},bt=(d,c)=>{const t=new d.Point(c.sourceX,c.sourceY),y=new d.Point(c.targetX,c.targetY),f=new d.ConnEnd(t,d.ConnDirRight),w=new d.ConnEnd(y,d.ConnDirLeft);return{srcConnEnd:f,dstConnEnd:w}},ht=(d,c,t)=>{const y=c.shapeMap.get(t.source),f=c.shapeMap.get(t.target);if(y&&f){const{srcConnEnd:w,dstConnEnd:M}=bt(c.avoid,t),I=new c.avoid.ConnRef(c.router,w,M);I.setCallback(Li(d,c,t.id),I),c.edgeConnRefMap.set(t.id,I)}},Hi=(d,c)=>{const t=d.edgeConnRefMap.get(c.id);if(t){const{srcConnEnd:y,dstConnEnd:f}=bt(d.avoid,c);t.setSourceEndpoint(y),t.setDestEndpoint(f)}},ki=(d,c)=>{const t=d.edgeConnRefMap.get(c);t&&(d.router.deleteConnector(t),d.edgeConnRefMap.delete(c))},de=(d,c)=>{const t=Le.get(d);if(!t){console.warn(`router with id "${d}" not found`);return}c(t)};self.onconnect=d=>{const c=d.ports[0];console.debug("EdgeRouter worker connected",{event:d}),c.onmessage=t=>{const y=t.data;switch(y.type){case"create-router":{Mi(c,y.routerId,y.shapes,y.edges);break}case"add-shape":{de(y.routerId,f=>Ne(f,y.shape));break}case"update-shape":{de(y.routerId,f=>xi(f,y.shape));break}case"remove-shape":{de(y.routerId,f=>Ni(f,y.shapeId));break}case"add-edge":{de(y.routerId,f=>ht(c,f,y.edge));break}case"update-edge":{de(y.routerId,f=>Hi(f,y.edge));break}case"remove-edge":{de(y.routerId,f=>ki(f,y.edgeId));break}case"process-transaction":{de(y.routerId,f=>{f.router.processTransaction()});break}}}};console.debug("EdgeRouter worker ready");
|
|
4
|
+
`)}throw e},abort:function(){D("native code called abort()")},emscripten_date_now:function(){return Date.now()},emscripten_memcpy_big:function(e,n,_){le.copyWithin(e,n,n+_)},emscripten_resize_heap:function(e){var n=le.length;if(e>>>=0,g(e>n),2147483648<e)return N("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var _=1;4>=_;_*=2){var i=n*(1+.2/_);i=Math.min(i,e+100663296);var p=Math;i=Math.max(e,i),p=p.min.call(p,2147483648,i+(65536-i%65536)%65536);e:{i=p;var s=fe.buffer;try{fe.grow(i-s.byteLength+65535>>>16),He();var l=1;break e}catch(U){N("emscripten_realloc_buffer: Attempted to grow heap from "+s.byteLength+" bytes to "+i+" bytes, but got error: "+U)}l=void 0}if(l)return!0}return N("Failed to grow the heap from "+n+" bytes to "+p+" bytes, not enough memory!"),!1},environ_get:function(e,n){var _=0;return nt().forEach(function(i,p){var s=n+_;for(p=x[e+4*p>>2]=s,s=0;s<i.length;++s)g(i.charCodeAt(s)===(i.charCodeAt(s)&255)),Ce[p++>>0]=i.charCodeAt(s);Ce[p>>0]=0,_+=i.length+1}),0},environ_sizes_get:function(e,n){var _=nt();x[e>>2]=_.length;var i=0;return _.forEach(function(p){i+=p.length+1}),x[n>>2]=i,0},fd_close:function(){D("fd_close called without SYSCALLS_REQUIRE_FILESYSTEM")},fd_seek:function(){return 70},fd_write:function(e,n,_,i){for(var p=0,s=0;s<_;s++){var l=x[n>>2],U=x[n+4>>2];n+=8;for(var W=0;W<U;W++){var z=e,V=le[l+W],ce=Et[z];g(ce),V===0||V===10?((z===1?Re:N)(et(ce,0)),ce.length=0):ce.push(V)}p+=U}return x[i>>2]=p,0},strftime_l:function(e,n,_,i){return Dt(e,n,_,i)}};(function(){function e(i){i=i.exports;var p={};for(l in i){var s=i[l];p[l]=typeof s=="function"?Ye(s):s}if(i=p,t.asm=i,fe=t.asm.memory,g(fe,"memory not found in wasm exports"),He(),H=t.asm.__indirect_function_table,g(H,"table not found in wasm exports"),Oe.unshift(t.asm.__wasm_call_ctors),Ct(),re--,t.monitorRunDependencies&&t.monitorRunDependencies(re),g(ve["wasm-instantiate"]),delete ve["wasm-instantiate"],re==0&&(pe!==null&&(clearInterval(pe),pe=null),he)){var l=he;he=null,l()}return i}var n={env:it,wasi_snapshot_preview1:it};Rt();var _=t;if(t.instantiateWasm)try{return t.instantiateWasm(n,e)}catch(i){N("Module.instantiateWasm callback failed with error: "+i),f(i)}return St(n,function(i){g(t===_,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),_=null,e(i.instance)}).catch(f),{}})(),t._malloc=o("malloc");var rt=t._free=o("free");t._fflush=o("fflush");var jt=t._emscripten_bind_VoidPtr___destroy___0=o("emscripten_bind_VoidPtr___destroy___0"),Ft=t._emscripten_bind_HyperedgeImprover_HyperedgeImprover_0=o("emscripten_bind_HyperedgeImprover_HyperedgeImprover_0"),Mt=t._emscripten_bind_HyperedgeImprover_clear_0=o("emscripten_bind_HyperedgeImprover_clear_0"),xt=t._emscripten_bind_HyperedgeImprover_setRouter_1=o("emscripten_bind_HyperedgeImprover_setRouter_1"),Lt=t._emscripten_bind_HyperedgeImprover___destroy___0=o("emscripten_bind_HyperedgeImprover___destroy___0"),Nt=t._emscripten_bind_Box_Box_0=o("emscripten_bind_Box_Box_0"),Ht=t._emscripten_bind_Box_length_1=o("emscripten_bind_Box_length_1"),kt=t._emscripten_bind_Box_width_0=o("emscripten_bind_Box_width_0"),Ut=t._emscripten_bind_Box_height_0=o("emscripten_bind_Box_height_0"),Vt=t._emscripten_bind_Box_get_min_0=o("emscripten_bind_Box_get_min_0"),Jt=t._emscripten_bind_Box_set_min_1=o("emscripten_bind_Box_set_min_1"),Bt=t._emscripten_bind_Box_get_max_0=o("emscripten_bind_Box_get_max_0"),Wt=t._emscripten_bind_Box_set_max_1=o("emscripten_bind_Box_set_max_1"),Yt=t._emscripten_bind_Box___destroy___0=o("emscripten_bind_Box___destroy___0"),Gt=t._emscripten_bind_PolygonInterface_clear_0=o("emscripten_bind_PolygonInterface_clear_0"),zt=t._emscripten_bind_PolygonInterface_empty_0=o("emscripten_bind_PolygonInterface_empty_0"),qt=t._emscripten_bind_PolygonInterface_size_0=o("emscripten_bind_PolygonInterface_size_0"),Kt=t._emscripten_bind_PolygonInterface_id_0=o("emscripten_bind_PolygonInterface_id_0"),Xt=t._emscripten_bind_PolygonInterface_at_1=o("emscripten_bind_PolygonInterface_at_1"),Zt=t._emscripten_bind_PolygonInterface_boundingRectPolygon_0=o("emscripten_bind_PolygonInterface_boundingRectPolygon_0"),$t=t._emscripten_bind_PolygonInterface_offsetBoundingBox_1=o("emscripten_bind_PolygonInterface_offsetBoundingBox_1"),Qt=t._emscripten_bind_PolygonInterface_offsetPolygon_1=o("emscripten_bind_PolygonInterface_offsetPolygon_1"),en=t._emscripten_bind_PolygonInterface___destroy___0=o("emscripten_bind_PolygonInterface___destroy___0"),tn=t._emscripten_bind_Polygon_Polygon_0=o("emscripten_bind_Polygon_Polygon_0"),nn=t._emscripten_bind_Polygon_Polygon_1=o("emscripten_bind_Polygon_Polygon_1"),on=t._emscripten_bind_Polygon_setPoint_2=o("emscripten_bind_Polygon_setPoint_2"),_n=t._emscripten_bind_Polygon_size_0=o("emscripten_bind_Polygon_size_0"),rn=t._emscripten_bind_Polygon_get_ps_1=o("emscripten_bind_Polygon_get_ps_1"),pn=t._emscripten_bind_Polygon_set_ps_2=o("emscripten_bind_Polygon_set_ps_2"),sn=t._emscripten_bind_Polygon___destroy___0=o("emscripten_bind_Polygon___destroy___0"),cn=t._emscripten_bind_Point_Point_0=o("emscripten_bind_Point_Point_0"),an=t._emscripten_bind_Point_Point_2=o("emscripten_bind_Point_Point_2"),dn=t._emscripten_bind_Point_equal_1=o("emscripten_bind_Point_equal_1"),un=t._emscripten_bind_Point_get_x_0=o("emscripten_bind_Point_get_x_0"),mn=t._emscripten_bind_Point_set_x_1=o("emscripten_bind_Point_set_x_1"),gn=t._emscripten_bind_Point_get_y_0=o("emscripten_bind_Point_get_y_0"),yn=t._emscripten_bind_Point_set_y_1=o("emscripten_bind_Point_set_y_1"),fn=t._emscripten_bind_Point_get_id_0=o("emscripten_bind_Point_get_id_0"),ln=t._emscripten_bind_Point_set_id_1=o("emscripten_bind_Point_set_id_1"),bn=t._emscripten_bind_Point_get_vn_0=o("emscripten_bind_Point_get_vn_0"),hn=t._emscripten_bind_Point_set_vn_1=o("emscripten_bind_Point_set_vn_1"),vn=t._emscripten_bind_Point___destroy___0=o("emscripten_bind_Point___destroy___0"),Pn=t._emscripten_bind_Rectangle_Rectangle_2=o("emscripten_bind_Rectangle_Rectangle_2"),Rn=t._emscripten_bind_Rectangle_Rectangle_3=o("emscripten_bind_Rectangle_Rectangle_3"),Cn=t._emscripten_bind_Rectangle___destroy___0=o("emscripten_bind_Rectangle___destroy___0"),An=t._emscripten_bind_HyperedgeTreeNode_HyperedgeTreeNode_0=o("emscripten_bind_HyperedgeTreeNode_HyperedgeTreeNode_0"),Sn=t._emscripten_bind_HyperedgeTreeNode_writeEdgesToConns_2=o("emscripten_bind_HyperedgeTreeNode_writeEdgesToConns_2"),Tn=t._emscripten_bind_HyperedgeTreeNode___destroy___0=o("emscripten_bind_HyperedgeTreeNode___destroy___0"),In=t._emscripten_bind_HyperedgeTreeEdge_HyperedgeTreeEdge_3=o("emscripten_bind_HyperedgeTreeEdge_HyperedgeTreeEdge_3"),En=t._emscripten_bind_HyperedgeTreeEdge___destroy___0=o("emscripten_bind_HyperedgeTreeEdge___destroy___0"),On=t._emscripten_bind_AStarPath_AStarPath_0=o("emscripten_bind_AStarPath_AStarPath_0"),wn=t._emscripten_bind_AStarPath_search_4=o("emscripten_bind_AStarPath_search_4"),Dn=t._emscripten_bind_AStarPath___destroy___0=o("emscripten_bind_AStarPath___destroy___0"),jn=t._emscripten_bind_ConnEnd_ConnEnd_1=o("emscripten_bind_ConnEnd_ConnEnd_1"),Fn=t._emscripten_bind_ConnEnd_ConnEnd_2=o("emscripten_bind_ConnEnd_ConnEnd_2"),Mn=t._emscripten_bind_ConnEnd_createConnEndFromJunctionRef_1=o("emscripten_bind_ConnEnd_createConnEndFromJunctionRef_1"),xn=t._emscripten_bind_ConnEnd___destroy___0=o("emscripten_bind_ConnEnd___destroy___0"),Ln=t._emscripten_bind_ActionInfo_ActionInfo_2=o("emscripten_bind_ActionInfo_ActionInfo_2"),Nn=t._emscripten_bind_ActionInfo_ActionInfo_3=o("emscripten_bind_ActionInfo_ActionInfo_3"),Hn=t._emscripten_bind_ActionInfo_ActionInfo_4=o("emscripten_bind_ActionInfo_ActionInfo_4"),kn=t._emscripten_bind_ActionInfo_obstacle_0=o("emscripten_bind_ActionInfo_obstacle_0"),Un=t._emscripten_bind_ActionInfo_shape_0=o("emscripten_bind_ActionInfo_shape_0"),Vn=t._emscripten_bind_ActionInfo_conn_0=o("emscripten_bind_ActionInfo_conn_0"),Jn=t._emscripten_bind_ActionInfo_junction_0=o("emscripten_bind_ActionInfo_junction_0"),Bn=t._emscripten_bind_ActionInfo_addConnEndUpdate_3=o("emscripten_bind_ActionInfo_addConnEndUpdate_3"),Wn=t._emscripten_bind_ActionInfo_get_type_0=o("emscripten_bind_ActionInfo_get_type_0"),Yn=t._emscripten_bind_ActionInfo_set_type_1=o("emscripten_bind_ActionInfo_set_type_1"),Gn=t._emscripten_bind_ActionInfo_get_objPtr_0=o("emscripten_bind_ActionInfo_get_objPtr_0"),zn=t._emscripten_bind_ActionInfo_set_objPtr_1=o("emscripten_bind_ActionInfo_set_objPtr_1"),qn=t._emscripten_bind_ActionInfo_get_newPoly_0=o("emscripten_bind_ActionInfo_get_newPoly_0"),Kn=t._emscripten_bind_ActionInfo_set_newPoly_1=o("emscripten_bind_ActionInfo_set_newPoly_1"),Xn=t._emscripten_bind_ActionInfo_get_newPosition_0=o("emscripten_bind_ActionInfo_get_newPosition_0"),Zn=t._emscripten_bind_ActionInfo_set_newPosition_1=o("emscripten_bind_ActionInfo_set_newPosition_1"),$n=t._emscripten_bind_ActionInfo_get_firstMove_0=o("emscripten_bind_ActionInfo_get_firstMove_0"),Qn=t._emscripten_bind_ActionInfo_set_firstMove_1=o("emscripten_bind_ActionInfo_set_firstMove_1"),eo=t._emscripten_bind_ActionInfo___destroy___0=o("emscripten_bind_ActionInfo___destroy___0"),to=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_2=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_2"),no=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_3=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_3"),oo=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_6=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_6"),_o=t._emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_7=o("emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_7"),io=t._emscripten_bind_ShapeConnectionPin_setConnectionCost_1=o("emscripten_bind_ShapeConnectionPin_setConnectionCost_1"),ro=t._emscripten_bind_ShapeConnectionPin_position_0=o("emscripten_bind_ShapeConnectionPin_position_0"),po=t._emscripten_bind_ShapeConnectionPin_position_1=o("emscripten_bind_ShapeConnectionPin_position_1"),so=t._emscripten_bind_ShapeConnectionPin_directions_0=o("emscripten_bind_ShapeConnectionPin_directions_0"),co=t._emscripten_bind_ShapeConnectionPin_setExclusive_1=o("emscripten_bind_ShapeConnectionPin_setExclusive_1"),ao=t._emscripten_bind_ShapeConnectionPin_isExclusive_0=o("emscripten_bind_ShapeConnectionPin_isExclusive_0"),uo=t._emscripten_bind_ShapeConnectionPin_updatePosition_1=o("emscripten_bind_ShapeConnectionPin_updatePosition_1"),mo=t._emscripten_bind_ShapeConnectionPin___destroy___0=o("emscripten_bind_ShapeConnectionPin___destroy___0"),go=t._emscripten_bind_Obstacle_id_0=o("emscripten_bind_Obstacle_id_0"),yo=t._emscripten_bind_Obstacle_polygon_0=o("emscripten_bind_Obstacle_polygon_0"),fo=t._emscripten_bind_Obstacle_router_0=o("emscripten_bind_Obstacle_router_0"),lo=t._emscripten_bind_Obstacle_position_0=o("emscripten_bind_Obstacle_position_0"),bo=t._emscripten_bind_Obstacle_setNewPoly_1=o("emscripten_bind_Obstacle_setNewPoly_1"),ho=t._emscripten_bind_Obstacle___destroy___0=o("emscripten_bind_Obstacle___destroy___0"),vo=t._emscripten_bind_JunctionRef_JunctionRef_2=o("emscripten_bind_JunctionRef_JunctionRef_2"),Po=t._emscripten_bind_JunctionRef_JunctionRef_3=o("emscripten_bind_JunctionRef_JunctionRef_3"),Ro=t._emscripten_bind_JunctionRef_position_0=o("emscripten_bind_JunctionRef_position_0"),Co=t._emscripten_bind_JunctionRef_setPositionFixed_1=o("emscripten_bind_JunctionRef_setPositionFixed_1"),Ao=t._emscripten_bind_JunctionRef_positionFixed_0=o("emscripten_bind_JunctionRef_positionFixed_0"),So=t._emscripten_bind_JunctionRef_recommendedPosition_0=o("emscripten_bind_JunctionRef_recommendedPosition_0"),To=t._emscripten_bind_JunctionRef___destroy___0=o("emscripten_bind_JunctionRef___destroy___0"),Io=t._emscripten_bind_ShapeRef_ShapeRef_2=o("emscripten_bind_ShapeRef_ShapeRef_2"),Eo=t._emscripten_bind_ShapeRef_ShapeRef_3=o("emscripten_bind_ShapeRef_ShapeRef_3"),Oo=t._emscripten_bind_ShapeRef_polygon_0=o("emscripten_bind_ShapeRef_polygon_0"),wo=t._emscripten_bind_ShapeRef_position_0=o("emscripten_bind_ShapeRef_position_0"),Do=t._emscripten_bind_ShapeRef_setNewPoly_1=o("emscripten_bind_ShapeRef_setNewPoly_1"),jo=t._emscripten_bind_ShapeRef___destroy___0=o("emscripten_bind_ShapeRef___destroy___0"),Fo=t._emscripten_bind_HyperedgeNewAndDeletedObjectLists___destroy___0=o("emscripten_bind_HyperedgeNewAndDeletedObjectLists___destroy___0"),Mo=t._emscripten_bind_HyperedgeRerouter_HyperedgeRerouter_0=o("emscripten_bind_HyperedgeRerouter_HyperedgeRerouter_0"),xo=t._emscripten_bind_HyperedgeRerouter_registerHyperedgeForRerouting_1=o("emscripten_bind_HyperedgeRerouter_registerHyperedgeForRerouting_1"),Lo=t._emscripten_bind_HyperedgeRerouter___destroy___0=o("emscripten_bind_HyperedgeRerouter___destroy___0"),No=t._emscripten_bind_VertInf___destroy___0=o("emscripten_bind_VertInf___destroy___0"),Ho=t._emscripten_bind_VertID_VertID_0=o("emscripten_bind_VertID_VertID_0"),ko=t._emscripten_bind_VertID_VertID_2=o("emscripten_bind_VertID_VertID_2"),Uo=t._emscripten_bind_VertID_VertID_3=o("emscripten_bind_VertID_VertID_3"),Vo=t._emscripten_bind_VertID_get_objID_0=o("emscripten_bind_VertID_get_objID_0"),Jo=t._emscripten_bind_VertID_set_objID_1=o("emscripten_bind_VertID_set_objID_1"),Bo=t._emscripten_bind_VertID_get_vn_0=o("emscripten_bind_VertID_get_vn_0"),Wo=t._emscripten_bind_VertID_set_vn_1=o("emscripten_bind_VertID_set_vn_1"),Yo=t._emscripten_bind_VertID_get_props_0=o("emscripten_bind_VertID_get_props_0"),Go=t._emscripten_bind_VertID_set_props_1=o("emscripten_bind_VertID_set_props_1"),zo=t._emscripten_bind_VertID_get_src_0=o("emscripten_bind_VertID_get_src_0"),qo=t._emscripten_bind_VertID_get_tar_0=o("emscripten_bind_VertID_get_tar_0"),Ko=t._emscripten_bind_VertID_get_PROP_ConnPoint_0=o("emscripten_bind_VertID_get_PROP_ConnPoint_0"),Xo=t._emscripten_bind_VertID_get_PROP_OrthShapeEdge_0=o("emscripten_bind_VertID_get_PROP_OrthShapeEdge_0"),Zo=t._emscripten_bind_VertID_get_PROP_ConnectionPin_0=o("emscripten_bind_VertID_get_PROP_ConnectionPin_0"),$o=t._emscripten_bind_VertID_get_PROP_ConnCheckpoint_0=o("emscripten_bind_VertID_get_PROP_ConnCheckpoint_0"),Qo=t._emscripten_bind_VertID_get_PROP_DummyPinHelper_0=o("emscripten_bind_VertID_get_PROP_DummyPinHelper_0"),e_=t._emscripten_bind_VertID___destroy___0=o("emscripten_bind_VertID___destroy___0"),t_=t._emscripten_bind_MinimumTerminalSpanningTree___destroy___0=o("emscripten_bind_MinimumTerminalSpanningTree___destroy___0"),n_=t._emscripten_bind_Checkpoint_Checkpoint_1=o("emscripten_bind_Checkpoint_Checkpoint_1"),o_=t._emscripten_bind_Checkpoint___destroy___0=o("emscripten_bind_Checkpoint___destroy___0"),__=t._emscripten_bind_ConnRef_ConnRef_3=o("emscripten_bind_ConnRef_ConnRef_3"),i_=t._emscripten_bind_ConnRef_ConnRef_4=o("emscripten_bind_ConnRef_ConnRef_4"),r_=t._emscripten_bind_ConnRef_id_0=o("emscripten_bind_ConnRef_id_0"),p_=t._emscripten_bind_ConnRef_setCallback_2=o("emscripten_bind_ConnRef_setCallback_2"),s_=t._emscripten_bind_ConnRef_setSourceEndpoint_1=o("emscripten_bind_ConnRef_setSourceEndpoint_1"),c_=t._emscripten_bind_ConnRef_setDestEndpoint_1=o("emscripten_bind_ConnRef_setDestEndpoint_1"),a_=t._emscripten_bind_ConnRef_routingType_0=o("emscripten_bind_ConnRef_routingType_0"),d_=t._emscripten_bind_ConnRef_setRoutingType_1=o("emscripten_bind_ConnRef_setRoutingType_1"),u_=t._emscripten_bind_ConnRef_displayRoute_0=o("emscripten_bind_ConnRef_displayRoute_0"),m_=t._emscripten_bind_ConnRef_setHateCrossings_1=o("emscripten_bind_ConnRef_setHateCrossings_1"),g_=t._emscripten_bind_ConnRef_doesHateCrossings_0=o("emscripten_bind_ConnRef_doesHateCrossings_0"),y_=t._emscripten_bind_ConnRef___destroy___0=o("emscripten_bind_ConnRef___destroy___0"),f_=t._emscripten_bind_EdgeInf_EdgeInf_2=o("emscripten_bind_EdgeInf_EdgeInf_2"),l_=t._emscripten_bind_EdgeInf_EdgeInf_3=o("emscripten_bind_EdgeInf_EdgeInf_3"),b_=t._emscripten_bind_EdgeInf___destroy___0=o("emscripten_bind_EdgeInf___destroy___0"),h_=t._emscripten_bind_LineRep_get_begin_0=o("emscripten_bind_LineRep_get_begin_0"),v_=t._emscripten_bind_LineRep_set_begin_1=o("emscripten_bind_LineRep_set_begin_1"),P_=t._emscripten_bind_LineRep_get_end_0=o("emscripten_bind_LineRep_get_end_0"),R_=t._emscripten_bind_LineRep_set_end_1=o("emscripten_bind_LineRep_set_end_1"),C_=t._emscripten_bind_LineRep___destroy___0=o("emscripten_bind_LineRep___destroy___0"),A_=t._emscripten_bind_Router_Router_1=o("emscripten_bind_Router_Router_1"),S_=t._emscripten_bind_Router_processTransaction_0=o("emscripten_bind_Router_processTransaction_0"),T_=t._emscripten_bind_Router_printInfo_0=o("emscripten_bind_Router_printInfo_0"),I_=t._emscripten_bind_Router_deleteConnector_1=o("emscripten_bind_Router_deleteConnector_1"),E_=t._emscripten_bind_Router_moveShape_2=o("emscripten_bind_Router_moveShape_2"),O_=t._emscripten_bind_Router_moveShape_3=o("emscripten_bind_Router_moveShape_3"),w_=t._emscripten_bind_Router_deleteShape_1=o("emscripten_bind_Router_deleteShape_1"),D_=t._emscripten_bind_Router_moveJunction_2=o("emscripten_bind_Router_moveJunction_2"),j_=t._emscripten_bind_Router_moveJunction_3=o("emscripten_bind_Router_moveJunction_3"),F_=t._emscripten_bind_Router_setRoutingParameter_2=o("emscripten_bind_Router_setRoutingParameter_2"),M_=t._emscripten_bind_Router_setRoutingOption_2=o("emscripten_bind_Router_setRoutingOption_2"),x_=t._emscripten_bind_Router___destroy___0=o("emscripten_bind_Router___destroy___0"),L_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirNone=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirNone"),N_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirUp=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirUp"),H_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirDown=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirDown"),k_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirLeft=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirLeft"),U_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirRight=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirRight"),V_=t._emscripten_enum_Avoid_ConnDirFlag_ConnDirAll=o("emscripten_enum_Avoid_ConnDirFlag_ConnDirAll"),J_=t._emscripten_enum_Avoid_ConnEndType_ConnEndPoint=o("emscripten_enum_Avoid_ConnEndType_ConnEndPoint"),B_=t._emscripten_enum_Avoid_ConnEndType_ConnEndShapePin=o("emscripten_enum_Avoid_ConnEndType_ConnEndShapePin"),W_=t._emscripten_enum_Avoid_ConnEndType_ConnEndJunction=o("emscripten_enum_Avoid_ConnEndType_ConnEndJunction"),Y_=t._emscripten_enum_Avoid_ConnEndType_ConnEndEmpty=o("emscripten_enum_Avoid_ConnEndType_ConnEndEmpty"),G_=t._emscripten_enum_Avoid_ActionType_ShapeMove=o("emscripten_enum_Avoid_ActionType_ShapeMove"),z_=t._emscripten_enum_Avoid_ActionType_ShapeAdd=o("emscripten_enum_Avoid_ActionType_ShapeAdd"),q_=t._emscripten_enum_Avoid_ActionType_ShapeRemove=o("emscripten_enum_Avoid_ActionType_ShapeRemove"),K_=t._emscripten_enum_Avoid_ActionType_JunctionMove=o("emscripten_enum_Avoid_ActionType_JunctionMove"),X_=t._emscripten_enum_Avoid_ActionType_JunctionAdd=o("emscripten_enum_Avoid_ActionType_JunctionAdd"),Z_=t._emscripten_enum_Avoid_ActionType_JunctionRemove=o("emscripten_enum_Avoid_ActionType_JunctionRemove"),$_=t._emscripten_enum_Avoid_ActionType_ConnChange=o("emscripten_enum_Avoid_ActionType_ConnChange"),Q_=t._emscripten_enum_Avoid_ActionType_ConnectionPinChange=o("emscripten_enum_Avoid_ActionType_ConnectionPinChange"),ei=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW90=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW90"),ti=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW180=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW180"),ni=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW270=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_CW270"),oi=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipX=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipX"),_i=t._emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipY=o("emscripten_enum_Avoid_ShapeTransformationType_TransformationType_FlipY"),ii=t._emscripten_enum_Avoid_ConnType_ConnType_None=o("emscripten_enum_Avoid_ConnType_ConnType_None"),ri=t._emscripten_enum_Avoid_ConnType_ConnType_PolyLine=o("emscripten_enum_Avoid_ConnType_ConnType_PolyLine"),pi=t._emscripten_enum_Avoid_ConnType_ConnType_Orthogonal=o("emscripten_enum_Avoid_ConnType_ConnType_Orthogonal"),si=t._emscripten_enum_Avoid_RouterFlag_PolyLineRouting=o("emscripten_enum_Avoid_RouterFlag_PolyLineRouting"),ci=t._emscripten_enum_Avoid_RouterFlag_OrthogonalRouting=o("emscripten_enum_Avoid_RouterFlag_OrthogonalRouting"),ai=t._emscripten_enum_Avoid_RoutingParameter_segmentPenalty=o("emscripten_enum_Avoid_RoutingParameter_segmentPenalty"),di=t._emscripten_enum_Avoid_RoutingParameter_anglePenalty=o("emscripten_enum_Avoid_RoutingParameter_anglePenalty"),ui=t._emscripten_enum_Avoid_RoutingParameter_crossingPenalty=o("emscripten_enum_Avoid_RoutingParameter_crossingPenalty"),mi=t._emscripten_enum_Avoid_RoutingParameter_clusterCrossingPenalty=o("emscripten_enum_Avoid_RoutingParameter_clusterCrossingPenalty"),gi=t._emscripten_enum_Avoid_RoutingParameter_fixedSharedPathPenalty=o("emscripten_enum_Avoid_RoutingParameter_fixedSharedPathPenalty"),yi=t._emscripten_enum_Avoid_RoutingParameter_portDirectionPenalty=o("emscripten_enum_Avoid_RoutingParameter_portDirectionPenalty"),fi=t._emscripten_enum_Avoid_RoutingParameter_shapeBufferDistance=o("emscripten_enum_Avoid_RoutingParameter_shapeBufferDistance"),li=t._emscripten_enum_Avoid_RoutingParameter_idealNudgingDistance=o("emscripten_enum_Avoid_RoutingParameter_idealNudgingDistance"),bi=t._emscripten_enum_Avoid_RoutingParameter_reverseDirectionPenalty=o("emscripten_enum_Avoid_RoutingParameter_reverseDirectionPenalty"),hi=t._emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalSegmentsConnectedToShapes=o("emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalSegmentsConnectedToShapes"),vi=t._emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingJunctions=o("emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingJunctions"),Pi=t._emscripten_enum_Avoid_RoutingOption_penaliseOrthogonalSharedPathsAtConnEnds=o("emscripten_enum_Avoid_RoutingOption_penaliseOrthogonalSharedPathsAtConnEnds"),Ri=t._emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalTouchingColinearSegments=o("emscripten_enum_Avoid_RoutingOption_nudgeOrthogonalTouchingColinearSegments"),Ci=t._emscripten_enum_Avoid_RoutingOption_performUnifyingNudgingPreprocessingStep=o("emscripten_enum_Avoid_RoutingOption_performUnifyingNudgingPreprocessingStep"),Ai=t._emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingAddingAndDeletingJunctions=o("emscripten_enum_Avoid_RoutingOption_improveHyperedgeRoutesMovingAddingAndDeletingJunctions"),Si=t._emscripten_enum_Avoid_RoutingOption_nudgeSharedPathsWithCommonEndPoint=o("emscripten_enum_Avoid_RoutingOption_nudgeSharedPathsWithCommonEndPoint");function pt(){return(pt=t.asm.__trap).apply(null,arguments)}function st(){return(st=t.asm.emscripten_stack_init).apply(null,arguments)}function Me(){return(Me=t.asm.emscripten_stack_get_end).apply(null,arguments)}var Ti=o("stackSave"),Ii=o("stackRestore"),ct=o("stackAlloc");t.___cxa_decrement_exception_refcount=o("__cxa_decrement_exception_refcount"),t.___cxa_increment_exception_refcount=o("__cxa_increment_exception_refcount");var Ei=t.___thrown_object_from_unwind_exception=o("__thrown_object_from_unwind_exception"),Oi=t.___get_exception_message=o("__get_exception_message");t.dynCall_jiji=o("dynCall_jiji"),t.dynCall_viijii=o("dynCall_viijii"),t.dynCall_iiiiij=o("dynCall_iiiiij"),t.dynCall_iiiiijj=o("dynCall_iiiiijj"),t.dynCall_iiiiiijj=o("dynCall_iiiiiijj"),t.___start_em_js=44420,t.___stop_em_js=44518,"zeroMemory exitJS ydayFromDate setErrNo inetPton4 inetNtop4 inetPton6 inetNtop6 readSockaddr writeSockaddr getHostByName initRandomFill randomFill traverseStack getCallstack emscriptenLog convertPCtoSourceLocation readEmAsmArgs jstoi_q jstoi_s listenOnce autoResumeAudioContext dynCallLegacy getDynCaller dynCall handleException runtimeKeepalivePush runtimeKeepalivePop callUserCallback maybeExit safeSetTimeout asmjsMangle asyncLoad alignMemory mmapAlloc HandleAllocator getNativeTypeSize STACK_SIZE STACK_ALIGN POINTER_SIZE ASSERTIONS writeI53ToI64 writeI53ToI64Clamped writeI53ToI64Signaling writeI53ToU64Clamped writeI53ToU64Signaling readI53FromI64 readI53FromU64 convertI32PairToI53 convertU32PairToI53 getCFunc ccall cwrap removeFunction reallyNegative unSign strLen reSign formatString stringToUTF8 intArrayToString AsciiToString UTF16ToString stringToUTF16 lengthBytesUTF16 UTF32ToString stringToUTF32 lengthBytesUTF32 stringToNewUTF8 stringToUTF8OnStack getSocketFromFD getSocketAddress registerKeyEventCallback maybeCStringToJsString findEventTarget findCanvasEventTarget getBoundingClientRect fillMouseEventData registerMouseEventCallback registerWheelEventCallback registerUiEventCallback registerFocusEventCallback fillDeviceOrientationEventData registerDeviceOrientationEventCallback fillDeviceMotionEventData registerDeviceMotionEventCallback screenOrientation fillOrientationChangeEventData registerOrientationChangeEventCallback fillFullscreenChangeEventData registerFullscreenChangeEventCallback JSEvents_requestFullscreen JSEvents_resizeCanvasForFullscreen registerRestoreOldStyle hideEverythingExceptGivenElement restoreHiddenElements setLetterbox softFullscreenResizeWebGLRenderTarget doRequestFullscreen fillPointerlockChangeEventData registerPointerlockChangeEventCallback registerPointerlockErrorEventCallback requestPointerLock fillVisibilityChangeEventData registerVisibilityChangeEventCallback registerTouchEventCallback fillGamepadEventData registerGamepadEventCallback registerBeforeUnloadEventCallback fillBatteryEventData battery registerBatteryEventCallback setCanvasElementSize getCanvasElementSize demangle demangleAll jsStackTrace stackTrace checkWasiClock wasiRightsToMuslOFlags wasiOFlagsToMuslOFlags createDyncallWrapper setImmediateWrapped clearImmediateWrapped polyfillSetImmediate getPromise makePromise idsToPromises makePromiseCallback setMainLoop heapObjectForWebGLType heapAccessShiftForWebGLHeap webgl_enable_ANGLE_instanced_arrays webgl_enable_OES_vertex_array_object webgl_enable_WEBGL_draw_buffers webgl_enable_WEBGL_multi_draw emscriptenWebGLGet computeUnpackAlignedImageSize colorChannelsInGlTextureFormat emscriptenWebGLGetTexPixelData __glGenObject emscriptenWebGLGetUniform webglGetUniformLocation webglPrepareUniformLocationsBeforeFirstUse webglGetLeftBracePos emscriptenWebGLGetVertexAttrib __glGetActiveAttribOrUniform writeGLArray registerWebGlEventCallback runAndAbortIfError SDL_unicode SDL_ttfContext SDL_audio GLFW_Window ALLOC_NORMAL ALLOC_STACK allocate writeStringToMemory writeAsciiToMemory".split(" ").forEach(function(e){typeof globalThis>"u"||Object.getOwnPropertyDescriptor(globalThis,e)||Object.defineProperty(globalThis,e,{configurable:!0,get:function(){var n="`"+e+"` is a library symbol and not included by default; add it to your library.js __deps or to DEFAULT_LIBRARY_FUNCS_TO_INCLUDE on the command line",_=e;_.startsWith("_")||(_="$"+e),n+=" (e.g. -sDEFAULT_LIBRARY_FUNCS_TO_INCLUDE="+_+")",Ke(e)&&(n+=". Alternatively, forcing filesystem support (-sFORCE_FILESYSTEM) can export this for you"),Ae(n)}}),Xe(e)}),"run addOnPreRun addOnInit addOnPreMain addOnExit addOnPostRun addRunDependency removeRunDependency FS_createFolder FS_createPath FS_createDataFile FS_createPreloadedFile FS_createLazyFile FS_createLink FS_createDevice FS_unlink out err callMain abort keepRuntimeAlive wasmMemory stackAlloc stackSave stackRestore getTempRet0 setTempRet0 writeStackCookie checkStackCookie ptrToString getHeapMax emscripten_realloc_buffer ENV MONTH_DAYS_REGULAR MONTH_DAYS_LEAP MONTH_DAYS_REGULAR_CUMULATIVE MONTH_DAYS_LEAP_CUMULATIVE isLeapYear arraySum addDays ERRNO_CODES ERRNO_MESSAGES DNS Protocols Sockets timers warnOnce UNWIND_CACHE readEmAsmArgsArray getExecutableName convertI32PairToI53Checked uleb128Encode sigToWasmTypes generateFuncType convertJsFunctionToWasm freeTableIndexes functionsInTableMap getEmptyTableSlot updateTableMap getFunctionAddress addFunction setValue getValue PATH PATH_FS UTF8Decoder UTF8ArrayToString UTF8ToString stringToUTF8Array lengthBytesUTF8 intArrayFromString stringToAscii UTF16Decoder writeArrayToMemory SYSCALLS JSEvents specialHTMLTargets currentFullscreenStrategy restoreOldWindowedStyle ExitStatus getEnvStrings flush_NO_FILESYSTEM dlopenMissingError promiseMap getExceptionMessageCommon getCppExceptionTag getCppExceptionThrownObjectFromWebAssemblyException incrementExceptionRefcount decrementExceptionRefcount getExceptionMessage Browser wget tempFixedLengthArray miniTempWebGLFloatBuffers miniTempWebGLIntBuffers GL emscripten_webgl_power_preferences AL GLUT EGL GLEW IDBStore SDL SDL_gfx GLFW allocateUTF8 allocateUTF8OnStack".split(" ").forEach(Xe);var Ie;he=function e(){Ie||at(),Ie||(he=e)};function at(){function e(){if(!Ie&&(Ie=!0,t.calledRun=!0,!ue)){if(g(!be),be=!0,Ee(),De(Oe),y(t),t.onRuntimeInitialized&&t.onRuntimeInitialized(),g(!t._main,'compiled without a main, but one is present. if you added it from JS, use Module["onRuntimeInitialized"]'),Ee(),t.postRun)for(typeof t.postRun=="function"&&(t.postRun=[t.postRun]);t.postRun.length;){var n=t.postRun.shift();Je.unshift(n)}De(Je)}}if(!(0<re)){if(st(),vt(),t.preRun)for(typeof t.preRun=="function"&&(t.preRun=[t.preRun]);t.preRun.length;)Pt();De(Ve),0<re||(t.setStatus?(t.setStatus("Running..."),setTimeout(function(){setTimeout(function(){t.setStatus("")},1),e()},1)):e(),Ee())}}if(t.preInit)for(typeof t.preInit=="function"&&(t.preInit=[t.preInit]);0<t.preInit.length;)t.preInit.pop()();at();function b(){}b.prototype=Object.create(b.prototype),b.prototype.constructor=b,b.prototype.h=b,b.l={},t.WrapperObject=b;function C(e){return(e||b).l}t.getCache=C;function v(e,n){var _=C(n),i=_[e];return i||(i=Object.create((n||b).prototype),i.g=e,_[e]=i)}t.wrapPointer=v,t.castObject=function(e,n){return v(e.g,n)},t.NULL=v(0),t.destroy=function(e){if(!e.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";e.__destroy__(),delete C(e.h)[e.g]},t.compare=function(e,n){return e.g===n.g},t.getPointer=function(e){return e.g},t.getClass=function(e){return e.h};var xe=0,dt=0;function Z(){throw"cannot construct a VoidPtr, no constructor in IDL"}Z.prototype=Object.create(b.prototype),Z.prototype.constructor=Z,Z.prototype.h=Z,Z.l={},t.VoidPtr=Z,Z.prototype.__destroy__=function(){jt(this.g)};function B(){this.g=Ft(),C(B)[this.g]=this}B.prototype=Object.create(b.prototype),B.prototype.constructor=B,B.prototype.h=B,B.l={},t.HyperedgeImprover=B,B.prototype.clear=B.prototype.clear=function(){Mt(this.g)},B.prototype.setRouter=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),xt(n,e)},B.prototype.__destroy__=function(){Lt(this.g)};function h(){this.g=Nt(),C(h)[this.g]=this}h.prototype=Object.create(b.prototype),h.prototype.constructor=h,h.prototype.h=h,h.l={},t.Box=h,h.prototype.length=h.prototype.length=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),Ht(n,e)},h.prototype.width=h.prototype.width=function(){return kt(this.g)},h.prototype.height=h.prototype.height=function(){return Ut(this.g)},h.prototype.get_min=h.prototype.P=function(){return v(Vt(this.g),u)},h.prototype.set_min=h.prototype.ga=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Jt(n,e)},Object.defineProperty(h.prototype,"min",{get:h.prototype.P,set:h.prototype.ga}),h.prototype.get_max=h.prototype.O=function(){return v(Bt(this.g),u)},h.prototype.set_max=h.prototype.fa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Wt(n,e)},Object.defineProperty(h.prototype,"max",{get:h.prototype.O,set:h.prototype.fa}),h.prototype.__destroy__=function(){Yt(this.g)};function T(){throw"cannot construct a PolygonInterface, no constructor in IDL"}T.prototype=Object.create(b.prototype),T.prototype.constructor=T,T.prototype.h=T,T.l={},t.PolygonInterface=T,T.prototype.clear=T.prototype.clear=function(){Gt(this.g)},T.prototype.empty=T.prototype.empty=function(){return!!zt(this.g)},T.prototype.size=T.prototype.size=function(){return qt(this.g)},T.prototype.id=T.prototype.id=function(){return Kt(this.g)},T.prototype.at=T.prototype.at=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Xt(n,e),u)},T.prototype.boundingRectPolygon=function(){return v(Zt(this.g),R)},T.prototype.offsetBoundingBox=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v($t(n,e),h)},T.prototype.offsetPolygon=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Qt(n,e),R)},T.prototype.__destroy__=function(){en(this.g)};function R(e){e&&typeof e=="object"&&(e=e.g),this.g=e===void 0?tn():nn(e),C(R)[this.g]=this}R.prototype=Object.create(b.prototype),R.prototype.constructor=R,R.prototype.h=R,R.l={},t.Polygon=R,R.prototype.setPoint=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),on(_,e,n)},R.prototype.size=R.prototype.size=function(){return _n(this.g)},R.prototype.get_ps=R.prototype.W=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(rn(n,e),u)},R.prototype.set_ps=R.prototype.ma=function(e,n){var _=this.g;xe||(dt+=128,xe=t._malloc(dt),g(xe)),e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),pn(_,e,n)},Object.defineProperty(R.prototype,"ps",{get:R.prototype.W,set:R.prototype.ma}),R.prototype.__destroy__=function(){sn(this.g)};function u(e,n){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),this.g=e===void 0?cn():n===void 0?_emscripten_bind_Point_Point_1(e):an(e,n),C(u)[this.g]=this}u.prototype=Object.create(b.prototype),u.prototype.constructor=u,u.prototype.h=u,u.l={},t.Point=u,u.prototype.equal=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),!!dn(n,e)},u.prototype.get_x=u.prototype.$=function(){return un(this.g)},u.prototype.set_x=u.prototype.oa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),mn(n,e)},Object.defineProperty(u.prototype,"x",{get:u.prototype.$,set:u.prototype.oa}),u.prototype.get_y=u.prototype.aa=function(){return gn(this.g)},u.prototype.set_y=u.prototype.pa=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),yn(n,e)},Object.defineProperty(u.prototype,"y",{get:u.prototype.aa,set:u.prototype.pa}),u.prototype.get_id=u.prototype.N=function(){return fn(this.g)},u.prototype.set_id=u.prototype.ea=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),ln(n,e)},Object.defineProperty(u.prototype,"id",{get:u.prototype.N,set:u.prototype.ea}),u.prototype.get_vn=u.prototype.A=function(){return bn(this.g)},u.prototype.set_vn=u.prototype.B=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),hn(n,e)},Object.defineProperty(u.prototype,"vn",{get:u.prototype.A,set:u.prototype.B}),u.prototype.__destroy__=function(){vn(this.g)};function $(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?Pn(e,n):Rn(e,n,_),C($)[this.g]=this}$.prototype=Object.create(b.prototype),$.prototype.constructor=$,$.prototype.h=$,$.l={},t.Rectangle=$,$.prototype.__destroy__=function(){Cn(this.g)};function q(){this.g=An(),C(q)[this.g]=this}q.prototype=Object.create(b.prototype),q.prototype.constructor=q,q.prototype.h=q,q.l={},t.HyperedgeTreeNode=q,q.prototype.writeEdgesToConns=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),Sn(_,e,n)},q.prototype.__destroy__=function(){Tn(this.g)};function Q(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=In(e,n,_),C(Q)[this.g]=this}Q.prototype=Object.create(b.prototype),Q.prototype.constructor=Q,Q.prototype.h=Q,Q.l={},t.HyperedgeTreeEdge=Q,Q.prototype.__destroy__=function(){En(this.g)};function Y(){this.g=On(),C(Y)[this.g]=this}Y.prototype=Object.create(b.prototype),Y.prototype.constructor=Y,Y.prototype.h=Y,Y.l={},t.AStarPath=Y,Y.prototype.search=Y.prototype.search=function(e,n,_,i){var p=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),wn(p,e,n,_,i)},Y.prototype.__destroy__=function(){Dn(this.g)};function G(e,n){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),this.g=n===void 0?jn(e):Fn(e,n),C(G)[this.g]=this}G.prototype=Object.create(b.prototype),G.prototype.constructor=G,G.prototype.h=G,G.l={},t.ConnEnd=G,G.prototype.createConnEndFromJunctionRef=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(Mn(n,e),G)},G.prototype.__destroy__=function(){xn(this.g)};function m(e,n,_,i){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),this.g=_===void 0?Ln(e,n):i===void 0?Nn(e,n,_):Hn(e,n,_,i),C(m)[this.g]=this}m.prototype=Object.create(b.prototype),m.prototype.constructor=m,m.prototype.h=m,m.l={},t.ActionInfo=m,m.prototype.obstacle=function(){return v(kn(this.g),F)},m.prototype.shape=m.prototype.shape=function(){return v(Un(this.g),k)},m.prototype.conn=function(){return v(Vn(this.g),E)},m.prototype.junction=function(){return v(Jn(this.g),L)},m.prototype.addConnEndUpdate=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),Bn(i,e,n,_)},m.prototype.get_type=m.prototype.Z=function(){return Wn(this.g)},m.prototype.set_type=m.prototype.na=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Yn(n,e)},Object.defineProperty(m.prototype,"type",{get:m.prototype.Z,set:m.prototype.na}),m.prototype.get_objPtr=m.prototype.U=function(){return v(Gn(this.g),Z)},m.prototype.set_objPtr=m.prototype.ka=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),zn(n,e)},Object.defineProperty(m.prototype,"objPtr",{get:m.prototype.U,set:m.prototype.ka}),m.prototype.get_newPoly=m.prototype.R=function(){return v(qn(this.g),R)},m.prototype.set_newPoly=m.prototype.ha=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Kn(n,e)},Object.defineProperty(m.prototype,"newPoly",{get:m.prototype.R,set:m.prototype.ha}),m.prototype.get_newPosition=m.prototype.S=function(){return v(Xn(this.g),u)},m.prototype.set_newPosition=m.prototype.ia=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Zn(n,e)},Object.defineProperty(m.prototype,"newPosition",{get:m.prototype.S,set:m.prototype.ia}),m.prototype.get_firstMove=m.prototype.M=function(){return!!$n(this.g)},m.prototype.set_firstMove=m.prototype.da=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Qn(n,e)},Object.defineProperty(m.prototype,"firstMove",{get:m.prototype.M,set:m.prototype.da}),m.prototype.__destroy__=function(){eo(this.g)};function j(e,n,_,i,p,s,l){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),p&&typeof p=="object"&&(p=p.g),s&&typeof s=="object"&&(s=s.g),l&&typeof l=="object"&&(l=l.g),this.g=_===void 0?to(e,n):i===void 0?no(e,n,_):p===void 0?_emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_4(e,n,_,i):s===void 0?_emscripten_bind_ShapeConnectionPin_ShapeConnectionPin_5(e,n,_,i,p):l===void 0?oo(e,n,_,i,p,s):_o(e,n,_,i,p,s,l),C(j)[this.g]=this}j.prototype=Object.create(b.prototype),j.prototype.constructor=j,j.prototype.h=j,j.l={},t.ShapeConnectionPin=j,j.prototype.setConnectionCost=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),io(n,e)},j.prototype.position=j.prototype.position=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),v(e===void 0?ro(n):po(n,e),u)},j.prototype.directions=function(){return so(this.g)},j.prototype.setExclusive=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),co(n,e)},j.prototype.isExclusive=function(){return!!ao(this.g)},j.prototype.updatePosition=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),uo(n,e)},j.prototype.__destroy__=function(){mo(this.g)};function F(){throw"cannot construct a Obstacle, no constructor in IDL"}F.prototype=Object.create(b.prototype),F.prototype.constructor=F,F.prototype.h=F,F.l={},t.Obstacle=F,F.prototype.id=F.prototype.id=function(){return go(this.g)},F.prototype.polygon=function(){return v(yo(this.g),R)},F.prototype.router=function(){return v(fo(this.g),O)},F.prototype.position=F.prototype.position=function(){return v(lo(this.g),u)},F.prototype.setNewPoly=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),bo(n,e)},F.prototype.__destroy__=function(){ho(this.g)};function L(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?vo(e,n):Po(e,n,_),C(L)[this.g]=this}L.prototype=Object.create(b.prototype),L.prototype.constructor=L,L.prototype.h=L,L.l={},t.JunctionRef=L,L.prototype.position=L.prototype.position=function(){return v(Ro(this.g),u)},L.prototype.setPositionFixed=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Co(n,e)},L.prototype.positionFixed=function(){return!!Ao(this.g)},L.prototype.recommendedPosition=function(){return v(So(this.g),u)},L.prototype.__destroy__=function(){To(this.g)};function k(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?Io(e,n):Eo(e,n,_),C(k)[this.g]=this}k.prototype=Object.create(b.prototype),k.prototype.constructor=k,k.prototype.h=k,k.l={},t.ShapeRef=k,k.prototype.polygon=function(){return v(Oo(this.g),R)},k.prototype.position=k.prototype.position=function(){return v(wo(this.g),u)},k.prototype.setNewPoly=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Do(n,e)},k.prototype.__destroy__=function(){jo(this.g)};function oe(){throw"cannot construct a HyperedgeNewAndDeletedObjectLists, no constructor in IDL"}oe.prototype=Object.create(b.prototype),oe.prototype.constructor=oe,oe.prototype.h=oe,oe.l={},t.HyperedgeNewAndDeletedObjectLists=oe,oe.prototype.__destroy__=function(){Fo(this.g)};function K(){this.g=Mo(),C(K)[this.g]=this}K.prototype=Object.create(b.prototype),K.prototype.constructor=K,K.prototype.h=K,K.l={},t.HyperedgeRerouter=K,K.prototype.registerHyperedgeForRerouting=function(e){var n=this.g;return e&&typeof e=="object"&&(e=e.g),xo(n,e)},K.prototype.__destroy__=function(){Lo(this.g)};function _e(){throw"cannot construct a VertInf, no constructor in IDL"}_e.prototype=Object.create(b.prototype),_e.prototype.constructor=_e,_e.prototype.h=_e,_e.l={},t.VertInf=_e,_e.prototype.__destroy__=function(){No(this.g)};function a(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=e===void 0?Ho():n===void 0?_emscripten_bind_VertID_VertID_1(e):_===void 0?ko(e,n):Uo(e,n,_),C(a)[this.g]=this}a.prototype=Object.create(b.prototype),a.prototype.constructor=a,a.prototype.h=a,a.l={},t.VertID=a,a.prototype.get_objID=a.prototype.T=function(){return Vo(this.g)},a.prototype.set_objID=a.prototype.ja=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Jo(n,e)},Object.defineProperty(a.prototype,"objID",{get:a.prototype.T,set:a.prototype.ja}),a.prototype.get_vn=a.prototype.A=function(){return Bo(this.g)},a.prototype.set_vn=a.prototype.B=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Wo(n,e)},Object.defineProperty(a.prototype,"vn",{get:a.prototype.A,set:a.prototype.B}),a.prototype.get_props=a.prototype.V=function(){return Yo(this.g)},a.prototype.set_props=a.prototype.la=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),Go(n,e)},Object.defineProperty(a.prototype,"props",{get:a.prototype.V,set:a.prototype.la}),a.prototype.get_src=a.prototype.X=function(){return zo(this.g)},Object.defineProperty(a.prototype,"src",{get:a.prototype.X}),a.prototype.get_tar=a.prototype.Y=function(){return qo(this.g)},Object.defineProperty(a.prototype,"tar",{get:a.prototype.Y}),a.prototype.get_PROP_ConnPoint=a.prototype.G=function(){return Ko(this.g)},Object.defineProperty(a.prototype,"PROP_ConnPoint",{get:a.prototype.G}),a.prototype.get_PROP_OrthShapeEdge=a.prototype.J=function(){return Xo(this.g)},Object.defineProperty(a.prototype,"PROP_OrthShapeEdge",{get:a.prototype.J}),a.prototype.get_PROP_ConnectionPin=a.prototype.H=function(){return Zo(this.g)},Object.defineProperty(a.prototype,"PROP_ConnectionPin",{get:a.prototype.H}),a.prototype.get_PROP_ConnCheckpoint=a.prototype.F=function(){return $o(this.g)},Object.defineProperty(a.prototype,"PROP_ConnCheckpoint",{get:a.prototype.F}),a.prototype.get_PROP_DummyPinHelper=a.prototype.I=function(){return Qo(this.g)},Object.defineProperty(a.prototype,"PROP_DummyPinHelper",{get:a.prototype.I}),a.prototype.__destroy__=function(){e_(this.g)};function ie(){throw"cannot construct a MinimumTerminalSpanningTree, no constructor in IDL"}ie.prototype=Object.create(b.prototype),ie.prototype.constructor=ie,ie.prototype.h=ie,ie.l={},t.MinimumTerminalSpanningTree=ie,ie.prototype.__destroy__=function(){t_(this.g)};function ee(e){e&&typeof e=="object"&&(e=e.g),this.g=n_(e),C(ee)[this.g]=this}ee.prototype=Object.create(b.prototype),ee.prototype.constructor=ee,ee.prototype.h=ee,ee.l={},t.Checkpoint=ee,ee.prototype.__destroy__=function(){o_(this.g)};function E(e,n,_,i){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),i&&typeof i=="object"&&(i=i.g),this.g=i===void 0?__(e,n,_):i_(e,n,_,i),C(E)[this.g]=this}E.prototype=Object.create(b.prototype),E.prototype.constructor=E,E.prototype.h=E,E.l={},t.ConnRef=E,E.prototype.id=E.prototype.id=function(){return r_(this.g)},E.prototype.setCallback=function(e,n){var _=this.g;if(g(e instanceof Function,"Expecting function"),g(typeof e<"u"),!ge){ge=new WeakMap;var i=H.length;if(ge)for(var p=0;p<0+i;p++){var s=p,l=me[s];l||(s>=me.length&&(me.length=s+1),me[s]=l=H.get(s)),g(H.get(s)==l,"JavaScript-side Wasm function table mirror is out of date!"),(s=l)&&ge.set(s,p)}}if(i=ge.get(e)||0)e=i;else{if($e.length)i=$e.pop();else{try{H.grow(1)}catch(W){throw W instanceof RangeError?"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH.":W}i=H.length-1}try{p=i,H.set(p,e),me[p]=H.get(p)}catch(W){if(!(W instanceof TypeError))throw W;if(g(!0,"Missing signature argument to addFunction: "+e),typeof WebAssembly.Function=="function"){p=WebAssembly.Function,s={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},l={parameters:[],results:[]};for(var U=1;2>U;++U)g("vi"[U]in s,"invalid signature char: "+"vi"[U]),l.parameters.push(s["vi"[U]]),"vi"[U]==="j"&&l.parameters.push("i32");p=new p(l,e)}else{for(p=[1],s={i:127,p:127,j:126,f:125,d:124},p.push(96),Ze(1,p),l=0;1>l;++l)g("i"[l]in s,"invalid signature char: "+"i"[l]),p.push(s["i"[l]]);p.push(0),s=[0,97,115,109,1,0,0,0,1],Ze(p.length,s),s.push.apply(s,p),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),p=new WebAssembly.Module(new Uint8Array(s)),p=new WebAssembly.Instance(p,{e:{f:e}}).exports.f}s=i,H.set(s,p),me[s]=H.get(s)}ge.set(e,i),e=i}n&&typeof n=="object"&&(n=n.g),p_(_,e,n)},E.prototype.setSourceEndpoint=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),s_(n,e)},E.prototype.setDestEndpoint=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),c_(n,e)},E.prototype.routingType=function(){return a_(this.g)},E.prototype.setRoutingType=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),d_(n,e)},E.prototype.displayRoute=function(){return v(u_(this.g),R)},E.prototype.setHateCrossings=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),m_(n,e)},E.prototype.doesHateCrossings=function(){return!!g_(this.g)},E.prototype.__destroy__=function(){y_(this.g)};function te(e,n,_){e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),this.g=_===void 0?f_(e,n):l_(e,n,_),C(te)[this.g]=this}te.prototype=Object.create(b.prototype),te.prototype.constructor=te,te.prototype.h=te,te.l={},t.EdgeInf=te,te.prototype.__destroy__=function(){b_(this.g)};function A(){throw"cannot construct a LineRep, no constructor in IDL"}A.prototype=Object.create(b.prototype),A.prototype.constructor=A,A.prototype.h=A,A.l={},t.LineRep=A,A.prototype.get_begin=A.prototype.K=function(){return v(h_(this.g),u)},A.prototype.set_begin=A.prototype.ba=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),v_(n,e)},Object.defineProperty(A.prototype,"begin",{get:A.prototype.K,set:A.prototype.ba}),A.prototype.get_end=A.prototype.L=function(){return v(P_(this.g),u)},A.prototype.set_end=A.prototype.ca=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),R_(n,e)},Object.defineProperty(A.prototype,"end",{get:A.prototype.L,set:A.prototype.ca}),A.prototype.__destroy__=function(){C_(this.g)};function O(e){e&&typeof e=="object"&&(e=e.g),this.g=A_(e),C(O)[this.g]=this}return O.prototype=Object.create(b.prototype),O.prototype.constructor=O,O.prototype.h=O,O.l={},t.Router=O,O.prototype.processTransaction=function(){return!!S_(this.g)},O.prototype.printInfo=function(){T_(this.g)},O.prototype.deleteConnector=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),I_(n,e)},O.prototype.moveShape=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),_===void 0?E_(i,e,n):O_(i,e,n,_)},O.prototype.deleteShape=function(e){var n=this.g;e&&typeof e=="object"&&(e=e.g),w_(n,e)},O.prototype.moveJunction=function(e,n,_){var i=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),_&&typeof _=="object"&&(_=_.g),_===void 0?D_(i,e,n):j_(i,e,n,_)},O.prototype.setRoutingParameter=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),F_(_,e,n)},O.prototype.setRoutingOption=function(e,n){var _=this.g;e&&typeof e=="object"&&(e=e.g),n&&typeof n=="object"&&(n=n.g),M_(_,e,n)},O.prototype.__destroy__=function(){x_(this.g)},(function(){function e(){t.ConnDirNone=L_(),t.ConnDirUp=N_(),t.ConnDirDown=H_(),t.ConnDirLeft=k_(),t.ConnDirRight=U_(),t.ConnDirAll=V_(),t.ConnEndPoint=J_(),t.ConnEndShapePin=B_(),t.ConnEndJunction=W_(),t.ConnEndEmpty=Y_(),t.ShapeMove=G_(),t.ShapeAdd=z_(),t.ShapeRemove=q_(),t.JunctionMove=K_(),t.JunctionAdd=X_(),t.JunctionRemove=Z_(),t.ConnChange=$_(),t.ConnectionPinChange=Q_(),t.TransformationType_CW90=ei(),t.TransformationType_CW180=ti(),t.TransformationType_CW270=ni(),t.TransformationType_FlipX=oi(),t.TransformationType_FlipY=_i(),t.ConnType_None=ii(),t.ConnType_PolyLine=ri(),t.ConnType_Orthogonal=pi(),t.PolyLineRouting=si(),t.OrthogonalRouting=ci(),t.segmentPenalty=ai(),t.anglePenalty=di(),t.crossingPenalty=ui(),t.clusterCrossingPenalty=mi(),t.fixedSharedPathPenalty=gi(),t.portDirectionPenalty=yi(),t.shapeBufferDistance=fi(),t.idealNudgingDistance=li(),t.reverseDirectionPenalty=bi(),t.nudgeOrthogonalSegmentsConnectedToShapes=hi(),t.improveHyperedgeRoutesMovingJunctions=vi(),t.penaliseOrthogonalSharedPathsAtConnEnds=Pi(),t.nudgeOrthogonalTouchingColinearSegments=Ri(),t.performUnifyingNudgingPreprocessingStep=Ci(),t.improveHyperedgeRoutesMovingAddingAndDeletingJunctions=Ai(),t.nudgeSharedPathsWithCommonEndPoint=Si()}be?e():Oe.unshift(e)})(),c.ready}})(),ji=Di,gt=wi(ji);const yt=(d,c)=>{d.postMessage(c)},Fi=gt.load("/libavoid.wasm").then(()=>gt.getInstance()),Le=new Map,Mi=async(d,c,t,y)=>{if(Le.has(c)){console.warn(`router with id "${c}" already exists`);return}const f=await Fi,w=new f.Router(f.OrthogonalRouting);w.setRoutingParameter(f.idealNudgingDistance,6),w.setRoutingParameter(f.shapeBufferDistance,40),w.setRoutingOption(f.nudgeOrthogonalTouchingColinearSegments,!0),w.setRoutingOption(f.performUnifyingNudgingPreprocessingStep,!0),w.setRoutingOption(f.nudgeSharedPathsWithCommonEndPoint,!1);const M={routerId:c,router:w,shapeMap:new Map,edgeConnRefMap:new Map,avoid:f};Le.set(c,M),console.log(`router with id "${c}" created with ${t.length} shapes and ${y.length} edges`);for(const I of t)Ne(M,I);for(const I of y)ht(d,M,I);w.processTransaction();for(const I of y){const Re=M.edgeConnRefMap.get(I.id);Re&<(d,M,I.id,Re)}yt(d,{type:"router-ready",routerId:c})},ft=(d,c)=>new d.Rectangle(new d.Point(c.x,c.y),new d.Point(c.x+c.width,c.y+c.height)),Ne=(d,c)=>{const t=ft(d.avoid,c),y=new d.avoid.ShapeRef(d.router,t);d.shapeMap.set(c.id,y)},xi=(d,c)=>{const t=d.shapeMap.get(c.id);if(t){const y=ft(d.avoid,c);d.router.moveShape(t,y)}else Ne(d,c)},lt=(d,c,t,y)=>{const f=y.displayRoute(),w=[];for(let M=0;M<f.size();M++)w.push([f.get_ps(M).x,f.get_ps(M).y]);yt(d,{type:"edge-path-updated",routerId:c.routerId,edgeId:t,points:w})},Li=(d,c,t)=>y=>{const f=c.avoid.wrapPointer(y,c.avoid.ConnRef);lt(d,c,t,f)},Ni=(d,c)=>{const t=d.shapeMap.get(c);t&&(d.router.deleteShape(t),d.shapeMap.delete(c))},bt=(d,c)=>{const t=new d.Point(c.sourceX,c.sourceY),y=new d.Point(c.targetX,c.targetY),f=new d.ConnEnd(t,d.ConnDirRight),w=new d.ConnEnd(y,d.ConnDirLeft);return{srcConnEnd:f,dstConnEnd:w}},ht=(d,c,t)=>{const y=c.shapeMap.get(t.source),f=c.shapeMap.get(t.target);if(y&&f){const{srcConnEnd:w,dstConnEnd:M}=bt(c.avoid,t),I=new c.avoid.ConnRef(c.router,w,M);I.setCallback(Li(d,c,t.id),I),c.edgeConnRefMap.set(t.id,I)}},Hi=(d,c)=>{const t=d.edgeConnRefMap.get(c.id);if(t){const{srcConnEnd:y,dstConnEnd:f}=bt(d.avoid,c);t.setSourceEndpoint(y),t.setDestEndpoint(f)}},ki=(d,c)=>{const t=d.edgeConnRefMap.get(c);t&&(d.router.deleteConnector(t),d.edgeConnRefMap.delete(c))},de=(d,c)=>{const t=Le.get(d);if(!t){console.warn(`router with id "${d}" not found`);return}c(t)};self.onconnect=d=>{const c=d.ports[0];console.debug("EdgeRouter worker connected",{event:d}),c.onmessage=t=>{const y=t.data;switch(y.type){case"create-router":{Mi(c,y.routerId,y.shapes,y.edges);break}case"add-shape":{de(y.routerId,f=>Ne(f,y.shape));break}case"update-shape":{de(y.routerId,f=>xi(f,y.shape));break}case"remove-shape":{de(y.routerId,f=>Ni(f,y.shapeId));break}case"add-edge":{de(y.routerId,f=>ht(c,f,y.edge));break}case"update-edge":{de(y.routerId,f=>Hi(f,y.edge));break}case"remove-edge":{de(y.routerId,f=>ki(f,y.edgeId));break}case"process-transaction":{de(y.routerId,f=>{f.router.processTransaction()});break}}}};console.debug("EdgeRouter worker ready");
|