@runeya/runeya 2.0.145 → 2.0.146

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/agent/index.js +26 -21
  2. package/agent/index.js.map +1 -1
  3. package/agent-manager-R7BPQO6D.js +11 -0
  4. package/{chat-XYCHMTFE.js → chat-LPML22J5.js} +8 -7
  5. package/{chunk-NCO4OOYT.js → chunk-4LJQIQMN.js} +2 -2
  6. package/chunk-6IBPK6UE.js +1063 -0
  7. package/chunk-6IBPK6UE.js.map +1 -0
  8. package/{chunk-QF56Z6LI.js → chunk-KV4GJKXU.js} +3 -3
  9. package/{chunk-FE53XX4M.js → chunk-NPMSBYXC.js} +3 -3
  10. package/{chunk-ONVAH65J.js → chunk-SEPAURTQ.js} +283 -1266
  11. package/chunk-SEPAURTQ.js.map +1 -0
  12. package/{chunk-Q4RPY3VW.js → chunk-UD42LACH.js} +25 -11
  13. package/{chunk-Q4RPY3VW.js.map → chunk-UD42LACH.js.map} +1 -1
  14. package/{chunk-KS7A5CTW.js → chunk-VPSQJOSN.js} +12 -2
  15. package/{chunk-KS7A5CTW.js.map → chunk-VPSQJOSN.js.map} +1 -1
  16. package/{companion-HBYSY2D5.js → companion-W3UMZWGH.js} +5 -5
  17. package/external-NMKQPROK.js +387 -0
  18. package/external-NMKQPROK.js.map +1 -0
  19. package/index.js +15 -6
  20. package/index.js.map +1 -1
  21. package/{install-gate-JAEK4BDZ.js → install-gate-PVMGJDWE.js} +2 -2
  22. package/mcp-server/external.d.ts +44 -0
  23. package/mcp-server/external.js +2679 -0
  24. package/mcp-server/external.js.map +1 -0
  25. package/mcp-server/index.js +135 -39
  26. package/mcp-server/index.js.map +1 -1
  27. package/mcp-server/launch.d.ts +19 -1
  28. package/mcp-server/launch.js +20 -0
  29. package/mcp-server/launch.js.map +1 -1
  30. package/package.json +1 -1
  31. package/settings-manager-XPLBO35P.js +10 -0
  32. package/{src-IODFUZ7A.js → src-LEDGW5KP.js} +951 -499
  33. package/src-LEDGW5KP.js.map +1 -0
  34. package/{vault-resolver-PN3TYCLJ.js → vault-resolver-E7KPKA5C.js} +2 -2
  35. package/web/assets/{AgentScalarChatInterface.vue-npQgDxeP.js → AgentScalarChatInterface.vue-BYszptaB.js} +1 -1
  36. package/web/assets/{AgentTerminalPage-BTH3yCS2.js → AgentTerminalPage-C3TJ1NL9.js} +1 -1
  37. package/web/assets/{AiChatModals-It9jnB26.js → AiChatModals-D3scRE3S.js} +1 -1
  38. package/web/assets/{AppLayout-BTg2CADo.js → AppLayout-BMQUjPKe.js} +1 -1
  39. package/web/assets/{AuditPage-2PKKGLZs.js → AuditPage-CKcExBws.js} +1 -1
  40. package/web/assets/{CloudAccountPage-CHL61gLe.js → CloudAccountPage-B6oPg0BZ.js} +1 -1
  41. package/web/assets/{CloudMessagingPage-cgKnABPH.js → CloudMessagingPage-C5fwVe-F.js} +1 -1
  42. package/web/assets/{DashboardPage-CRntTMKY.js → DashboardPage-9RV7sx3e.js} +1 -1
  43. package/web/assets/{DirectoryPickerDialog-DCyhT3-W.js → DirectoryPickerDialog-C06BXyfJ.js} +1 -1
  44. package/web/assets/{EnvironmentForm-C96PFWRE.js → EnvironmentForm-CAvDoira.js} +1 -1
  45. package/web/assets/{EnvironmentFormPage-ChorAd63.js → EnvironmentFormPage-BmAxhN-m.js} +1 -1
  46. package/web/assets/{EnvironmentListPage-Dw9ziaI8.js → EnvironmentListPage-B8uATPBI.js} +1 -1
  47. package/web/assets/{KanbanBoardPage-BZHbEj-q.js → KanbanBoardPage-CQsOkRUf.js} +3 -3
  48. package/web/assets/{KanbanListPage-B0jlfKqs.js → KanbanListPage-CWZqkjD6.js} +1 -1
  49. package/web/assets/{LaunchProjectPage-BVs1JwbV.js → LaunchProjectPage-saSmC7Pr.js} +1 -1
  50. package/web/assets/{LaunchServicesPage-PBYJly9N.js → LaunchServicesPage-BkKyLMEz.js} +1 -1
  51. package/web/assets/{LaunchShell-CGNYr-do.js → LaunchShell-DUrSunB4.js} +1 -1
  52. package/web/assets/{LogViewer-BDObx29F.js → LogViewer-CZBYkH9J.js} +1 -1
  53. package/web/assets/{OrgKeyPrompt-BbcwiwGw.js → OrgKeyPrompt-DzQ7pwbs.js} +1 -1
  54. package/web/assets/{ProcessControls-DY0HTKde.js → ProcessControls-BEeoNlNV.js} +1 -1
  55. package/web/assets/{ProcessDetailPage-BZ9kIQqn.js → ProcessDetailPage-CQgu5uKm.js} +1 -1
  56. package/web/assets/{ProjectCreateDialog-C1wVDPcK.js → ProjectCreateDialog-BolrhRD-.js} +1 -1
  57. package/web/assets/{ProjectLocationGate-bUd_tFpI.js → ProjectLocationGate-DhMVdIjN.js} +1 -1
  58. package/web/assets/{ProjectPublishDialog-APUS1WEN.js → ProjectPublishDialog-DsZNWrfz.js} +1 -1
  59. package/web/assets/{RandomJobTestPage-BFNC827R.js → RandomJobTestPage-BUS2Ty6-.js} +1 -1
  60. package/web/assets/{ScenarioEditorPage-DFVsMVu5.js → ScenarioEditorPage-MIAGh2us.js} +1 -1
  61. package/web/assets/{SendToChatDialog-QHIkxNio.js → SendToChatDialog-BxWsyv29.js} +1 -1
  62. package/web/assets/{ServiceControlsBar-_UQXb6g0.js → ServiceControlsBar-DqDPAZt7.js} +1 -1
  63. package/web/assets/{ServiceDetailPage-DGIXgHwR.js → ServiceDetailPage-hkSAzZ-l.js} +1 -1
  64. package/web/assets/{ServiceFormPage-RliAfS3_.js → ServiceFormPage-DXqhqXg8.js} +1 -1
  65. package/web/assets/SettingsPage-4pKUgKPm.css +1 -0
  66. package/web/assets/SettingsPage-DS2YhMIM.js +2086 -0
  67. package/web/assets/{UnlockPage-17EgfpJs.js → UnlockPage-s8SgVcKk.js} +1 -1
  68. package/web/assets/{VaultMigrationPage-DeMxpXXJ.js → VaultMigrationPage-s0b44MDM.js} +1 -1
  69. package/web/assets/{VersionBadge-DBquJl76.js → VersionBadge-BmArk24p.js} +1 -1
  70. package/web/assets/{WikiPage-GtwpJPqf.js → WikiPage-DADu8WUA.js} +1 -1
  71. package/web/assets/{WikiView-BqaqxMxW.js → WikiView-DtGwIt_Q.js} +1 -1
  72. package/web/assets/{add-scalar-classes-DhSSqZ5l.js → add-scalar-classes-dWEWPlFD.js} +1 -1
  73. package/web/assets/{agent.store-Co44dMZf.js → agent.store-CKLAkF9a.js} +1 -1
  74. package/web/assets/{auth-Bk1GP5sB.js → auth-Cg9BWTfK.js} +2 -2
  75. package/web/assets/{cloud-chat.store-CadB14dZ.js → cloud-chat.store-b-BHGz7I.js} +1 -1
  76. package/web/assets/{cloud-client-0zD_NI6q.js → cloud-client-D_zCiW0s.js} +2 -2
  77. package/web/assets/{cloud-session-Cjw54Y--.js → cloud-session-DOaDpZTy.js} +2 -2
  78. package/web/assets/{editor.store-DmM6ZlTm.js → editor.store-DCAZSeVG.js} +1 -1
  79. package/web/assets/i18n-D0afQEGs.js +1 -0
  80. package/web/assets/{index-B9DJf2V0.js → index-D8VRbyoP.js} +36 -36
  81. package/web/assets/index-DsezNbSM.css +1 -0
  82. package/web/assets/{modal-UK8xRSnh.js → modal-qYgTMkYb.js} +1 -1
  83. package/web/assets/{project-launch.store-B5nhdGdh.js → project-launch.store-y7JBMNiE.js} +1 -1
  84. package/web/assets/{project.store-Bm2JWNbd.js → project.store-DGJr0Qr9.js} +1 -1
  85. package/web/assets/{scenario.store-88w6P6s2.js → scenario.store-YWHL2_wu.js} +3 -3
  86. package/web/assets/{service.store-XS50iGKo.js → service.store-5jWsJxPx.js} +1 -1
  87. package/web/assets/{settings-scope-CKPq86HZ.js → settings-scope-Bv7QGPrt.js} +1 -1
  88. package/web/assets/{settings.store-BCJ0LJQA.js → settings.store-bEsB7oKb.js} +1 -1
  89. package/web/assets/{src-DBipSD56.js → src-C-D_y7ou.js} +1 -1
  90. package/web/assets/{src-Cgix2VOi.js → src-Dnwk6NpV.js} +2 -2
  91. package/web/assets/{src-BDZKZr9n.css → src-g1DRo8xZ.css} +1 -1
  92. package/web/assets/{trpc-CfuFkKgp.js → trpc-Drabzwpd.js} +3 -3
  93. package/web/assets/{useCloudOrg-J8DAnocE.js → useCloudOrg-BAQEtFPl.js} +1 -1
  94. package/web/assets/{useEnvVarAutocomplete-C6zOXYqi.js → useEnvVarAutocomplete-BqGTODUv.js} +1 -1
  95. package/web/assets/{useProjectCatalog-BB5IR6o8.js → useProjectCatalog-yocjIKt6.js} +1 -1
  96. package/web/assets/{useProjectCloudOrg-BnlKts7x.js → useProjectCloudOrg-CEN9-_OA.js} +1 -1
  97. package/web/assets/{useServiceUrlHost-hKbKtPMu.js → useServiceUrlHost-BuoPEXZX.js} +1 -1
  98. package/web/assets/{vue-draggable-plus-D5ni4jMk.js → vue-draggable-plus-DX4rTBiu.js} +1 -1
  99. package/web/index.html +17 -17
  100. package/agent-manager-THV3LJOF.js +0 -11
  101. package/chunk-ONVAH65J.js.map +0 -1
  102. package/settings-manager-QVQRJO6V.js +0 -10
  103. package/src-IODFUZ7A.js.map +0 -1
  104. package/web/assets/SettingsPage-BSSHxxjM.js +0 -2086
  105. package/web/assets/SettingsPage-W8YszhUL.css +0 -1
  106. package/web/assets/i18n-8FjeJaKW.js +0 -1
  107. package/web/assets/index-teBqdnuv.css +0 -1
  108. /package/{agent-manager-THV3LJOF.js.map → agent-manager-R7BPQO6D.js.map} +0 -0
  109. /package/{chat-XYCHMTFE.js.map → chat-LPML22J5.js.map} +0 -0
  110. /package/{chunk-NCO4OOYT.js.map → chunk-4LJQIQMN.js.map} +0 -0
  111. /package/{chunk-QF56Z6LI.js.map → chunk-KV4GJKXU.js.map} +0 -0
  112. /package/{chunk-FE53XX4M.js.map → chunk-NPMSBYXC.js.map} +0 -0
  113. /package/{companion-HBYSY2D5.js.map → companion-W3UMZWGH.js.map} +0 -0
  114. /package/{install-gate-JAEK4BDZ.js.map → install-gate-PVMGJDWE.js.map} +0 -0
  115. /package/{settings-manager-QVQRJO6V.js.map → settings-manager-XPLBO35P.js.map} +0 -0
  116. /package/{vault-resolver-PN3TYCLJ.js.map → vault-resolver-E7KPKA5C.js.map} +0 -0
@@ -1 +1 @@
1
- import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{$ as n,D as r,E as i,Ft as ee,Ht as a,_ as o,b as s,g as c,k as l,mt as u,o as d,qt as f,rn as p,v as m,y as h}from"./runtime-core.esm-bundler-DujKY9QV.js";import{F as g}from"./floating-ui.dom-DWhsZyqT.js";import{J as _,S as v,W as te,Y as y,dt as b,ft as x,mt as S}from"./src--GO-VSJ0.js";import{n as C}from"./project-launch.store-B5nhdGdh.js";import{r as w}from"./trpc-CfuFkKgp.js";import{n as T}from"./project.store-Bm2JWNbd.js";import{n as E}from"./cloud-auth-D_am4FlK.js";import{t as ne}from"./useProjectCatalog-BB5IR6o8.js";import{r as D,t as re}from"./error-DpF7X5iu.js";import{t as ie}from"./OrgKeyPrompt-BbcwiwGw.js";import{t as ae}from"./DirectoryPickerDialog-DCyhT3-W.js";var oe={class:`create-form`},se={class:`create-field`},ce={for:`new-project-name`},le={class:`create-field`},ue={for:`new-project-desc`},O={class:`create-field`},k={for:`new-project-target`},A={class:`create-hint`},j={key:0,class:`create-field`},M={class:`create-path`},N=[`title`],P={key:1,class:`create-hint`},F=x(l({__name:`ProjectCreateDialog`,props:n({initialTarget:{},localPath:{}},{visible:{type:Boolean,required:!0},visibleModifiers:{}}),emits:n([`created`],[`update:visible`]),setup(n,{emit:l}){let x=n,F=c(()=>x.initialTarget!==void 0),I=ee(n,`visible`),L=l,{t:R}=S(),z=T(),B=C(),V=ne(),H=t(``),U=t(``),W=t(`local`),G=t(!1),K=t(``),q=t(null),J=t(!1),Y=t(null),X=t(null),de=c(()=>[{id:`local`,name:R(`projectSwitcher.local`)},...V.orgGroups.value.map(e=>({id:e.orgId,name:e.name}))]),fe=c(()=>W.value===`local`&&!q.value),Z=c(()=>!!H.value.trim()&&!fe.value);a(I,e=>{e&&(H.value=``,U.value=``,W.value=x.initialTarget===void 0?B.activeOrgId??`local`:x.initialTarget??`local`,K.value=``,Y.value=null,X.value=null,q.value=x.localPath??null,x.localPath&&(H.value=Q(x.localPath)),F.value||V.refreshCloud())},{immediate:!0});function Q(e){return e.split(/[\\/]+/).filter(Boolean).at(-1)??``}async function pe(e){if(K.value=``,e.status===`importable`){G.value=!0;try{let t=await z.importLocal(e.path);B.setActiveProject(t.id,null),I.value=!1,L(`created`,{id:t.id,name:t.name,orgId:null})}catch(e){K.value=D(e,R)}finally{G.value=!1}return}q.value=e.path,H.value.trim()||(H.value=Q(e.path))}async function $(){if(!Z.value||G.value)return;let e=H.value.trim(),t=W.value===`local`?null:W.value;G.value=!0,K.value=``;try{let n=(X.value?.orgId===t?X.value:null)??await z.create({name:e,description:U.value.trim()||void 0,orgId:t,...t?{}:{localPath:q.value??void 0}});if(!n)throw Error(z.error??R(`projectSwitcher.createFailed`));X.value={id:n.id,name:n.name,orgId:t},t&&await w.cloudSync.trackProject.mutate({orgId:t,cloudUrl:E(),projectId:n.id}),X.value=null,B.setActiveProject(n.id,t),I.value=!1,L(`created`,{id:n.id,name:n.name,orgId:t})}catch(e){K.value=D(e,R),re(e)&&t&&(Y.value=t)}finally{G.value=!1}}async function me(){Y.value=null,K.value=``,await $()}return(t,n)=>(u(),s(d,null,[r(e(y),{visible:I.value,"onUpdate:visible":n[5]||=e=>I.value=e,header:e(R)(`projectSwitcher.createTitle`),modal:``,style:{width:`26rem`}},{footer:f(()=>[r(e(b),{label:e(R)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:G.value,onClick:n[4]||=e=>I.value=!1},null,8,[`label`,`disabled`]),r(e(b),{label:e(R)(`projectSwitcher.create`),icon:`ti ti-plus`,loading:G.value,disabled:!Z.value,onClick:$},null,8,[`label`,`loading`,`disabled`])]),default:f(()=>[o(`div`,oe,[o(`div`,se,[o(`label`,ce,p(e(R)(`projectSwitcher.nameLabel`)),1),r(e(_),{id:`new-project-name`,modelValue:H.value,"onUpdate:modelValue":n[0]||=e=>H.value=e,autofocus:``,placeholder:e(R)(`projectSwitcher.namePlaceholder`),onKeyup:g($,[`enter`])},null,8,[`modelValue`,`placeholder`])]),o(`div`,le,[o(`label`,ue,p(e(R)(`projectList.descriptionLabel`)),1),r(e(_),{id:`new-project-desc`,modelValue:U.value,"onUpdate:modelValue":n[1]||=e=>U.value=e,placeholder:e(R)(`projectList.descriptionPlaceholder`),onKeyup:g($,[`enter`])},null,8,[`modelValue`,`placeholder`])]),o(`div`,O,[F.value?h(``,!0):(u(),s(d,{key:0},[o(`label`,k,p(e(R)(`projectSwitcher.targetLabel`)),1),r(e(v),{inputId:`new-project-target`,modelValue:W.value,"onUpdate:modelValue":n[2]||=e=>W.value=e,options:de.value,optionLabel:`name`,optionValue:`id`},null,8,[`modelValue`,`options`])],64)),o(`small`,A,p(W.value===`local`?e(R)(`projectSwitcher.localHint`):e(R)(`projectSwitcher.cloudHint`)),1)]),W.value===`local`?(u(),s(`div`,j,[o(`label`,null,p(e(R)(`projectSwitcher.folderLabel`)),1),o(`div`,M,[q.value?(u(),s(`code`,{key:0,class:`create-path__value`,title:q.value},p(q.value),9,N)):(u(),s(`span`,P,p(e(R)(`projectSwitcher.folderNone`)),1)),x.localPath?h(``,!0):(u(),m(e(b),{key:2,label:q.value?e(R)(`projectSwitcher.folderChange`):e(R)(`projectSwitcher.folderChoose`),icon:`ti ti-folder-open`,size:`small`,severity:`secondary`,variant:`outlined`,"data-testid":`create-choose-folder`,onClick:n[3]||=e=>J.value=!0},null,8,[`label`]))])])):h(``,!0),K.value?(u(),m(e(te),{key:1,severity:`error`},{default:f(()=>[i(p(K.value),1)]),_:1})):h(``,!0)])]),_:1},8,[`visible`,`header`]),J.value?(u(),m(ae,{key:0,visible:J.value,"onUpdate:visible":n[6]||=e=>J.value=e,mode:`local`,onLocalChosen:pe},null,8,[`visible`])):h(``,!0),r(ie,{"org-id":Y.value,reference:`cloud`,title:e(R)(`projectSwitcher.keyPromptTitle`),hint:e(R)(`projectSwitcher.keyPromptHint`),"confirm-label":e(R)(`projectSwitcher.keyPromptUse`),onClose:n[7]||=e=>Y.value=null,onAdopted:me},null,8,[`org-id`,`title`,`hint`,`confirm-label`])],64))}}),[[`__scopeId`,`data-v-6fe25904`]]);export{F as t};
1
+ import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{$ as n,D as r,E as i,Ft as ee,Ht as a,_ as o,b as s,g as c,k as l,mt as u,o as d,qt as f,rn as p,v as m,y as h}from"./runtime-core.esm-bundler-DujKY9QV.js";import{F as g}from"./floating-ui.dom-DWhsZyqT.js";import{J as _,S as v,W as te,Y as y,dt as b,ft as x,mt as S}from"./src--GO-VSJ0.js";import{n as C}from"./project-launch.store-y7JBMNiE.js";import{r as w}from"./trpc-Drabzwpd.js";import{n as T}from"./project.store-DGJr0Qr9.js";import{n as E}from"./cloud-auth-D_am4FlK.js";import{t as ne}from"./useProjectCatalog-yocjIKt6.js";import{r as D,t as re}from"./error-DpF7X5iu.js";import{t as ie}from"./OrgKeyPrompt-DzQ7pwbs.js";import{t as ae}from"./DirectoryPickerDialog-C06BXyfJ.js";var oe={class:`create-form`},se={class:`create-field`},ce={for:`new-project-name`},le={class:`create-field`},ue={for:`new-project-desc`},O={class:`create-field`},k={for:`new-project-target`},A={class:`create-hint`},j={key:0,class:`create-field`},M={class:`create-path`},N=[`title`],P={key:1,class:`create-hint`},F=x(l({__name:`ProjectCreateDialog`,props:n({initialTarget:{},localPath:{}},{visible:{type:Boolean,required:!0},visibleModifiers:{}}),emits:n([`created`],[`update:visible`]),setup(n,{emit:l}){let x=n,F=c(()=>x.initialTarget!==void 0),I=ee(n,`visible`),L=l,{t:R}=S(),z=T(),B=C(),V=ne(),H=t(``),U=t(``),W=t(`local`),G=t(!1),K=t(``),q=t(null),J=t(!1),Y=t(null),X=t(null),de=c(()=>[{id:`local`,name:R(`projectSwitcher.local`)},...V.orgGroups.value.map(e=>({id:e.orgId,name:e.name}))]),fe=c(()=>W.value===`local`&&!q.value),Z=c(()=>!!H.value.trim()&&!fe.value);a(I,e=>{e&&(H.value=``,U.value=``,W.value=x.initialTarget===void 0?B.activeOrgId??`local`:x.initialTarget??`local`,K.value=``,Y.value=null,X.value=null,q.value=x.localPath??null,x.localPath&&(H.value=Q(x.localPath)),F.value||V.refreshCloud())},{immediate:!0});function Q(e){return e.split(/[\\/]+/).filter(Boolean).at(-1)??``}async function pe(e){if(K.value=``,e.status===`importable`){G.value=!0;try{let t=await z.importLocal(e.path);B.setActiveProject(t.id,null),I.value=!1,L(`created`,{id:t.id,name:t.name,orgId:null})}catch(e){K.value=D(e,R)}finally{G.value=!1}return}q.value=e.path,H.value.trim()||(H.value=Q(e.path))}async function $(){if(!Z.value||G.value)return;let e=H.value.trim(),t=W.value===`local`?null:W.value;G.value=!0,K.value=``;try{let n=(X.value?.orgId===t?X.value:null)??await z.create({name:e,description:U.value.trim()||void 0,orgId:t,...t?{}:{localPath:q.value??void 0}});if(!n)throw Error(z.error??R(`projectSwitcher.createFailed`));X.value={id:n.id,name:n.name,orgId:t},t&&await w.cloudSync.trackProject.mutate({orgId:t,cloudUrl:E(),projectId:n.id}),X.value=null,B.setActiveProject(n.id,t),I.value=!1,L(`created`,{id:n.id,name:n.name,orgId:t})}catch(e){K.value=D(e,R),re(e)&&t&&(Y.value=t)}finally{G.value=!1}}async function me(){Y.value=null,K.value=``,await $()}return(t,n)=>(u(),s(d,null,[r(e(y),{visible:I.value,"onUpdate:visible":n[5]||=e=>I.value=e,header:e(R)(`projectSwitcher.createTitle`),modal:``,style:{width:`26rem`}},{footer:f(()=>[r(e(b),{label:e(R)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:G.value,onClick:n[4]||=e=>I.value=!1},null,8,[`label`,`disabled`]),r(e(b),{label:e(R)(`projectSwitcher.create`),icon:`ti ti-plus`,loading:G.value,disabled:!Z.value,onClick:$},null,8,[`label`,`loading`,`disabled`])]),default:f(()=>[o(`div`,oe,[o(`div`,se,[o(`label`,ce,p(e(R)(`projectSwitcher.nameLabel`)),1),r(e(_),{id:`new-project-name`,modelValue:H.value,"onUpdate:modelValue":n[0]||=e=>H.value=e,autofocus:``,placeholder:e(R)(`projectSwitcher.namePlaceholder`),onKeyup:g($,[`enter`])},null,8,[`modelValue`,`placeholder`])]),o(`div`,le,[o(`label`,ue,p(e(R)(`projectList.descriptionLabel`)),1),r(e(_),{id:`new-project-desc`,modelValue:U.value,"onUpdate:modelValue":n[1]||=e=>U.value=e,placeholder:e(R)(`projectList.descriptionPlaceholder`),onKeyup:g($,[`enter`])},null,8,[`modelValue`,`placeholder`])]),o(`div`,O,[F.value?h(``,!0):(u(),s(d,{key:0},[o(`label`,k,p(e(R)(`projectSwitcher.targetLabel`)),1),r(e(v),{inputId:`new-project-target`,modelValue:W.value,"onUpdate:modelValue":n[2]||=e=>W.value=e,options:de.value,optionLabel:`name`,optionValue:`id`},null,8,[`modelValue`,`options`])],64)),o(`small`,A,p(W.value===`local`?e(R)(`projectSwitcher.localHint`):e(R)(`projectSwitcher.cloudHint`)),1)]),W.value===`local`?(u(),s(`div`,j,[o(`label`,null,p(e(R)(`projectSwitcher.folderLabel`)),1),o(`div`,M,[q.value?(u(),s(`code`,{key:0,class:`create-path__value`,title:q.value},p(q.value),9,N)):(u(),s(`span`,P,p(e(R)(`projectSwitcher.folderNone`)),1)),x.localPath?h(``,!0):(u(),m(e(b),{key:2,label:q.value?e(R)(`projectSwitcher.folderChange`):e(R)(`projectSwitcher.folderChoose`),icon:`ti ti-folder-open`,size:`small`,severity:`secondary`,variant:`outlined`,"data-testid":`create-choose-folder`,onClick:n[3]||=e=>J.value=!0},null,8,[`label`]))])])):h(``,!0),K.value?(u(),m(e(te),{key:1,severity:`error`},{default:f(()=>[i(p(K.value),1)]),_:1})):h(``,!0)])]),_:1},8,[`visible`,`header`]),J.value?(u(),m(ae,{key:0,visible:J.value,"onUpdate:visible":n[6]||=e=>J.value=e,mode:`local`,onLocalChosen:pe},null,8,[`visible`])):h(``,!0),r(ie,{"org-id":Y.value,reference:`cloud`,title:e(R)(`projectSwitcher.keyPromptTitle`),hint:e(R)(`projectSwitcher.keyPromptHint`),"confirm-label":e(R)(`projectSwitcher.keyPromptUse`),onClose:n[7]||=e=>Y.value=null,onAdopted:me},null,8,[`org-id`,`title`,`hint`,`confirm-label`])],64))}}),[[`__scopeId`,`data-v-6fe25904`]]);export{F as t};
@@ -1 +1 @@
1
- import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ht as t,k as n,mt as r,v as i,y as a}from"./runtime-core.esm-bundler-DujKY9QV.js";import{a as o,n as s}from"./project-launch.store-B5nhdGdh.js";import{r as c}from"./trpc-CfuFkKgp.js";import{n as l}from"./project.store-Bm2JWNbd.js";import{t as u}from"./DirectoryPickerDialog-DCyhT3-W.js";var d=n({__name:`ProjectLocationGate`,setup(n){let d=l(),f=s(),{activeProjectId:p}=o(f),m=e(!1),h=e(``),g=e(null),_=e(``),v=new Set;function y(e,t){return`${e??`local`}:${t}`}return t([p,()=>d.projects.length],async([e])=>{if(!e||v.has(y(f.activeOrgId,e)))return;let t=d.getByRef({id:e,orgId:f.activeOrgId})??d.getById(e);if(t&&t.orgId){try{let{path:n}=await c.project.getLocalPath.query({id:e,orgId:t.orgId});if(n)return}catch{return}v.add(y(t.orgId,e)),h.value=e,g.value=t.orgId??null,_.value=t.name,m.value=!0}},{immediate:!0}),(e,t)=>h.value?(r(),i(u,{key:0,visible:m.value,"onUpdate:visible":t[0]||=e=>m.value=e,"project-id":h.value,"org-id":g.value,"project-name":_.value,required:``},null,8,[`visible`,`project-id`,`org-id`,`project-name`])):a(``,!0)}});export{d as t};
1
+ import{C as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ht as t,k as n,mt as r,v as i,y as a}from"./runtime-core.esm-bundler-DujKY9QV.js";import{a as o,n as s}from"./project-launch.store-y7JBMNiE.js";import{r as c}from"./trpc-Drabzwpd.js";import{n as l}from"./project.store-DGJr0Qr9.js";import{t as u}from"./DirectoryPickerDialog-C06BXyfJ.js";var d=n({__name:`ProjectLocationGate`,setup(n){let d=l(),f=s(),{activeProjectId:p}=o(f),m=e(!1),h=e(``),g=e(null),_=e(``),v=new Set;function y(e,t){return`${e??`local`}:${t}`}return t([p,()=>d.projects.length],async([e])=>{if(!e||v.has(y(f.activeOrgId,e)))return;let t=d.getByRef({id:e,orgId:f.activeOrgId})??d.getById(e);if(t&&t.orgId){try{let{path:n}=await c.project.getLocalPath.query({id:e,orgId:t.orgId});if(n)return}catch{return}v.add(y(t.orgId,e)),h.value=e,g.value=t.orgId??null,_.value=t.name,m.value=!0}},{immediate:!0}),(e,t)=>h.value?(r(),i(u,{key:0,visible:m.value,"onUpdate:visible":t[0]||=e=>m.value=e,"project-id":h.value,"org-id":g.value,"project-name":_.value,required:``},null,8,[`visible`,`project-id`,`org-id`,`project-name`])):a(``,!0)}});export{d as t};
@@ -1 +1 @@
1
- import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{$ as n,D as r,E as i,Ft as a,Ht as o,_ as s,b as c,k as l,mt as u,o as d,qt as f,rn as p,v as m,y as h}from"./runtime-core.esm-bundler-DujKY9QV.js";import{S as g,W as _,Y as v,dt as y,ft as b,mt as x}from"./src--GO-VSJ0.js";import{n as S}from"./project-launch.store-B5nhdGdh.js";import{r as C}from"./trpc-CfuFkKgp.js";import{n as w}from"./project.store-Bm2JWNbd.js";import{n as T}from"./cloud-auth-D_am4FlK.js";import{t as E}from"./useProjectCatalog-BB5IR6o8.js";import{r as D,t as O}from"./error-DpF7X5iu.js";import{t as k}from"./OrgKeyPrompt-BbcwiwGw.js";var A={class:`publish-form`},j={for:`publish-target`},M={class:`publish-hint`},N=b(l({__name:`ProjectPublishDialog`,props:n({project:{}},{visible:{type:Boolean,required:!0},visibleModifiers:{}}),emits:n([`published`],[`update:visible`]),setup(n,{emit:l}){let b=a(n,`visible`),N=n,P=l,{t:F}=x(),I=w(),L=S(),R=E(),z=t(null),B=t(!1),V=t(``),H=t(null);o(b,async e=>{e&&(V.value=``,z.value=R.orgGroups.value[0]?.orgId??null,await R.refreshCloud(),z.value??=R.orgGroups.value[0]?.orgId??null)},{immediate:!0});async function U(){let e=N.project,t=z.value;if(e&&t){B.value=!0,V.value=``;try{await C.cloudSync.publishProject.mutate({orgId:t,cloudUrl:T(),projectId:e.id}),await I.fetchAll(),L.activeProjectId===e.id&&L.setActiveProject(e.id,t),b.value=!1,P(`published`,t)}catch(e){V.value=D(e,F),O(e)&&(H.value=t)}finally{B.value=!1}}}async function W(){H.value=null,V.value=``,await U()}return(t,a)=>(u(),c(d,null,[r(e(v),{visible:b.value,"onUpdate:visible":a[2]||=e=>b.value=e,header:e(F)(`projectSwitcher.publishTitle`,{project:n.project?.name??``}),modal:``,style:{width:`26rem`}},{footer:f(()=>[r(e(y),{label:e(F)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:B.value,onClick:a[1]||=e=>b.value=!1},null,8,[`label`,`disabled`]),r(e(y),{label:e(F)(`projectSwitcher.publishAccept`),icon:`ti ti-cloud-upload`,loading:B.value,disabled:!z.value,onClick:U},null,8,[`label`,`loading`,`disabled`])]),default:f(()=>[s(`div`,A,[s(`label`,j,p(e(F)(`projectSwitcher.publishOrgLabel`)),1),r(e(g),{inputId:`publish-target`,modelValue:z.value,"onUpdate:modelValue":a[0]||=e=>z.value=e,options:e(R).orgGroups.value,optionLabel:`name`,optionValue:`orgId`},null,8,[`modelValue`,`options`]),s(`small`,M,p(e(F)(`projectSwitcher.publishHint`)),1),V.value?(u(),m(e(_),{key:0,severity:`error`},{default:f(()=>[i(p(V.value),1)]),_:1})):h(``,!0)])]),_:1},8,[`visible`,`header`]),r(k,{"org-id":H.value,reference:`cloud`,title:e(F)(`projectSwitcher.keyPromptTitle`),hint:e(F)(`projectSwitcher.keyPromptHint`),"confirm-label":e(F)(`projectSwitcher.keyPromptUse`),onClose:a[3]||=e=>H.value=null,onAdopted:W},null,8,[`org-id`,`title`,`hint`,`confirm-label`])],64))}}),[[`__scopeId`,`data-v-aa5680f5`]]);export{N as t};
1
+ import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{$ as n,D as r,E as i,Ft as a,Ht as o,_ as s,b as c,k as l,mt as u,o as d,qt as f,rn as p,v as m,y as h}from"./runtime-core.esm-bundler-DujKY9QV.js";import{S as g,W as _,Y as v,dt as y,ft as b,mt as x}from"./src--GO-VSJ0.js";import{n as S}from"./project-launch.store-y7JBMNiE.js";import{r as C}from"./trpc-Drabzwpd.js";import{n as w}from"./project.store-DGJr0Qr9.js";import{n as T}from"./cloud-auth-D_am4FlK.js";import{t as E}from"./useProjectCatalog-yocjIKt6.js";import{r as D,t as O}from"./error-DpF7X5iu.js";import{t as k}from"./OrgKeyPrompt-DzQ7pwbs.js";var A={class:`publish-form`},j={for:`publish-target`},M={class:`publish-hint`},N=b(l({__name:`ProjectPublishDialog`,props:n({project:{}},{visible:{type:Boolean,required:!0},visibleModifiers:{}}),emits:n([`published`],[`update:visible`]),setup(n,{emit:l}){let b=a(n,`visible`),N=n,P=l,{t:F}=x(),I=w(),L=S(),R=E(),z=t(null),B=t(!1),V=t(``),H=t(null);o(b,async e=>{e&&(V.value=``,z.value=R.orgGroups.value[0]?.orgId??null,await R.refreshCloud(),z.value??=R.orgGroups.value[0]?.orgId??null)},{immediate:!0});async function U(){let e=N.project,t=z.value;if(e&&t){B.value=!0,V.value=``;try{await C.cloudSync.publishProject.mutate({orgId:t,cloudUrl:T(),projectId:e.id}),await I.fetchAll(),L.activeProjectId===e.id&&L.setActiveProject(e.id,t),b.value=!1,P(`published`,t)}catch(e){V.value=D(e,F),O(e)&&(H.value=t)}finally{B.value=!1}}}async function W(){H.value=null,V.value=``,await U()}return(t,a)=>(u(),c(d,null,[r(e(v),{visible:b.value,"onUpdate:visible":a[2]||=e=>b.value=e,header:e(F)(`projectSwitcher.publishTitle`,{project:n.project?.name??``}),modal:``,style:{width:`26rem`}},{footer:f(()=>[r(e(y),{label:e(F)(`actions.cancel`),severity:`secondary`,variant:`text`,disabled:B.value,onClick:a[1]||=e=>b.value=!1},null,8,[`label`,`disabled`]),r(e(y),{label:e(F)(`projectSwitcher.publishAccept`),icon:`ti ti-cloud-upload`,loading:B.value,disabled:!z.value,onClick:U},null,8,[`label`,`loading`,`disabled`])]),default:f(()=>[s(`div`,A,[s(`label`,j,p(e(F)(`projectSwitcher.publishOrgLabel`)),1),r(e(g),{inputId:`publish-target`,modelValue:z.value,"onUpdate:modelValue":a[0]||=e=>z.value=e,options:e(R).orgGroups.value,optionLabel:`name`,optionValue:`orgId`},null,8,[`modelValue`,`options`]),s(`small`,M,p(e(F)(`projectSwitcher.publishHint`)),1),V.value?(u(),m(e(_),{key:0,severity:`error`},{default:f(()=>[i(p(V.value),1)]),_:1})):h(``,!0)])]),_:1},8,[`visible`,`header`]),r(k,{"org-id":H.value,reference:`cloud`,title:e(F)(`projectSwitcher.keyPromptTitle`),hint:e(F)(`projectSwitcher.keyPromptHint`),"confirm-label":e(F)(`projectSwitcher.keyPromptUse`),onClose:a[3]||=e=>H.value=null,onAdopted:W},null,8,[`org-id`,`title`,`hint`,`confirm-label`])],64))}}),[[`__scopeId`,`data-v-aa5680f5`]]);export{N as t};
@@ -1,2 +1,2 @@
1
- import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{D as n,E as r,_ as i,b as a,ct as o,ft as s,k as c,mt as l,rn as u,tt as d}from"./runtime-core.esm-bundler-DujKY9QV.js";import{dt as f,ft as p}from"./src--GO-VSJ0.js";import{r as m}from"./trpc-CfuFkKgp.js";var h={class:`random-job-test`},g={class:`random-job-test__actions`},_={class:`random-job-test__meta`},v={key:0,class:`random-job-test__empty`},y={key:1},b=`runeya:random-job-test:job-id`,x=`runeya:random-job-test:logs`,S=p(c({__name:`RandomJobTestPage`,setup(c){let p=t(null),S=t(!1),C=t([]),w=t(null),T=null;function E(){p.value?sessionStorage.setItem(b,p.value):sessionStorage.removeItem(b),sessionStorage.setItem(x,JSON.stringify(C.value))}function D(e){C.value=[...C.value,e],C.value.length>2e3&&(C.value=C.value.slice(C.value.length-2e3)),E(),d(()=>{w.value&&(w.value.scrollTop=w.value.scrollHeight)})}function O(){T?.unsubscribe(),T=null}function k(e){O(),T=m.debug.streamRandomJob.subscribe({jobId:e},{onData(e){e.type===`tick`?D(`[${new Date(e.at).toLocaleTimeString()}] #${e.index} -> ${e.value.toFixed(8)}`):(D(`[${new Date(e.at).toLocaleTimeString()}] done: ${e.reason}`),S.value=!1,p.value=null,E())},onError(e){D(`[sub] error: ${e.message}`),S.value=!1,E()},onComplete(){D(`[sub] complete`),S.value=!1,E()}}),D(`[sub] started for job ${e}`)}async function A(){if(S.value)return;C.value=[],E();let e=await m.debug.startRandomJob.mutate({intervalMs:300,maxTicks:1e3});p.value=e.jobId,S.value=!0,E(),D(`[job] started id=${e.jobId}, intervalMs=${e.intervalMs}, maxTicks=${e.maxTicks}`),k(e.jobId)}async function j(){if(p.value)try{await m.debug.stopRandomJob.mutate({jobId:p.value}),D(`[job] stop requested id=${p.value}`),S.value=!1,p.value=null,E()}catch(e){D(`[job] stop error: ${e.message}`)}}function M(){C.value=[],E()}return o(async()=>{let e=sessionStorage.getItem(x);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&(C.value=t)}catch{}let t=sessionStorage.getItem(b);if(t){p.value=t;try{let e=await m.debug.randomJobStatus.query({jobId:t});S.value=e.running,E(),e.running?(D(`[job] reconnected id=${t}, tick=${e.tick}`),k(t)):(D(`[job] previous job ended (id=${t})`),p.value=null,E())}catch{S.value=!1,p.value=null,D(`[job] previous job not found`),E()}}}),s(()=>{O()}),(t,o)=>(l(),a(`div`,h,[o[3]||=i(`header`,{class:`random-job-test__header`},[i(`h1`,null,`Random Job Test`),i(`p`,null,`Click start to launch a server job and stream Math.random() values in real time.`)],-1),i(`div`,g,[n(e(f),{label:`Start job`,icon:`ti ti-player-play`,disabled:S.value,onClick:A},null,8,[`disabled`]),n(e(f),{label:`Stop`,icon:`ti ti-player-stop`,severity:`danger`,disabled:!S.value,onClick:j},null,8,[`disabled`]),n(e(f),{label:`Clear logs`,icon:`ti ti-trash`,severity:`secondary`,variant:`outlined`,onClick:M})]),i(`div`,_,[i(`span`,null,[o[0]||=i(`strong`,null,`Job ID:`,-1),r(` `+u(p.value??`none`),1)]),i(`span`,null,[o[1]||=i(`strong`,null,`Status:`,-1),r(` `+u(S.value?`running`:`idle`),1)]),i(`span`,null,[o[2]||=i(`strong`,null,`Lines:`,-1),r(` `+u(C.value.length),1)])]),i(`section`,{ref_key:`logsEl`,ref:w,class:`random-job-test__logs`,"aria-live":`polite`},[C.value.length===0?(l(),a(`div`,v,`No logs yet.`)):(l(),a(`pre`,y,u(C.value.join(`
1
+ import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{D as n,E as r,_ as i,b as a,ct as o,ft as s,k as c,mt as l,rn as u,tt as d}from"./runtime-core.esm-bundler-DujKY9QV.js";import{dt as f,ft as p}from"./src--GO-VSJ0.js";import{r as m}from"./trpc-Drabzwpd.js";var h={class:`random-job-test`},g={class:`random-job-test__actions`},_={class:`random-job-test__meta`},v={key:0,class:`random-job-test__empty`},y={key:1},b=`runeya:random-job-test:job-id`,x=`runeya:random-job-test:logs`,S=p(c({__name:`RandomJobTestPage`,setup(c){let p=t(null),S=t(!1),C=t([]),w=t(null),T=null;function E(){p.value?sessionStorage.setItem(b,p.value):sessionStorage.removeItem(b),sessionStorage.setItem(x,JSON.stringify(C.value))}function D(e){C.value=[...C.value,e],C.value.length>2e3&&(C.value=C.value.slice(C.value.length-2e3)),E(),d(()=>{w.value&&(w.value.scrollTop=w.value.scrollHeight)})}function O(){T?.unsubscribe(),T=null}function k(e){O(),T=m.debug.streamRandomJob.subscribe({jobId:e},{onData(e){e.type===`tick`?D(`[${new Date(e.at).toLocaleTimeString()}] #${e.index} -> ${e.value.toFixed(8)}`):(D(`[${new Date(e.at).toLocaleTimeString()}] done: ${e.reason}`),S.value=!1,p.value=null,E())},onError(e){D(`[sub] error: ${e.message}`),S.value=!1,E()},onComplete(){D(`[sub] complete`),S.value=!1,E()}}),D(`[sub] started for job ${e}`)}async function A(){if(S.value)return;C.value=[],E();let e=await m.debug.startRandomJob.mutate({intervalMs:300,maxTicks:1e3});p.value=e.jobId,S.value=!0,E(),D(`[job] started id=${e.jobId}, intervalMs=${e.intervalMs}, maxTicks=${e.maxTicks}`),k(e.jobId)}async function j(){if(p.value)try{await m.debug.stopRandomJob.mutate({jobId:p.value}),D(`[job] stop requested id=${p.value}`),S.value=!1,p.value=null,E()}catch(e){D(`[job] stop error: ${e.message}`)}}function M(){C.value=[],E()}return o(async()=>{let e=sessionStorage.getItem(x);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&(C.value=t)}catch{}let t=sessionStorage.getItem(b);if(t){p.value=t;try{let e=await m.debug.randomJobStatus.query({jobId:t});S.value=e.running,E(),e.running?(D(`[job] reconnected id=${t}, tick=${e.tick}`),k(t)):(D(`[job] previous job ended (id=${t})`),p.value=null,E())}catch{S.value=!1,p.value=null,D(`[job] previous job not found`),E()}}}),s(()=>{O()}),(t,o)=>(l(),a(`div`,h,[o[3]||=i(`header`,{class:`random-job-test__header`},[i(`h1`,null,`Random Job Test`),i(`p`,null,`Click start to launch a server job and stream Math.random() values in real time.`)],-1),i(`div`,g,[n(e(f),{label:`Start job`,icon:`ti ti-player-play`,disabled:S.value,onClick:A},null,8,[`disabled`]),n(e(f),{label:`Stop`,icon:`ti ti-player-stop`,severity:`danger`,disabled:!S.value,onClick:j},null,8,[`disabled`]),n(e(f),{label:`Clear logs`,icon:`ti ti-trash`,severity:`secondary`,variant:`outlined`,onClick:M})]),i(`div`,_,[i(`span`,null,[o[0]||=i(`strong`,null,`Job ID:`,-1),r(` `+u(p.value??`none`),1)]),i(`span`,null,[o[1]||=i(`strong`,null,`Status:`,-1),r(` `+u(S.value?`running`:`idle`),1)]),i(`span`,null,[o[2]||=i(`strong`,null,`Lines:`,-1),r(` `+u(C.value.length),1)])]),i(`section`,{ref_key:`logsEl`,ref:w,class:`random-job-test__logs`,"aria-live":`polite`},[C.value.length===0?(l(),a(`div`,v,`No logs yet.`)):(l(),a(`pre`,y,u(C.value.join(`
2
2
  `)),1))],512)]))}}),[[`__scopeId`,`data-v-96a7afb9`]]);export{S as default};
@@ -1,4 +1,4 @@
1
- import{B as e,C as t,N as n}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ct as r,D as i,E as a,Ht as o,J as s,Lt as c,Nt as l,Ut as u,Yt as d,_ as f,b as p,bt as m,ct as h,en as g,et as _,ft as v,g as y,gt as b,k as x,mt as S,nn as ee,o as C,qt as w,rn as T,tn as te,tt as E,v as D,wt as O,xt as k,y as A,z as j}from"./runtime-core.esm-bundler-DujKY9QV.js";import{F as ne,I as re,p as ie}from"./floating-ui.dom-DWhsZyqT.js";import{C as ae,J as oe,O as se,P as ce,S as M,Y as N,a as P,c as le,dt as F,ft as ue,mt as de,q as fe}from"./src--GO-VSJ0.js";import{a as pe}from"./project-launch.store-B5nhdGdh.js";import{g as me,h as he}from"./useApi-s_02lHjl-DZYO2tHU.js";import{i as ge,n as _e,o as ve,t as ye}from"./scenario.store-88w6P6s2.js";import{r as be}from"./trpc-CfuFkKgp.js";import{a as xe,g as Se,p as Ce}from"./schemas-68I2iCLF.js";import{o as we,s as Te}from"./dist-N4nrnbnA.js";import{A as Ee,C as De,D as Oe,E as ke,M as Ae,O as je,S as Me,T as Ne,j as Pe,k as Fe,w as Ie}from"./index-B9DJf2V0.js";import{t as Le}from"./uuid-XipkJWQw.js";var Re={name:`ControlButton`,compatConfig:{MODE:3}},ze=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},I={type:`button`,class:`vue-flow__controls-button`};function L(e,t,n,r,i,a){return S(),p(`button`,I,[k(e.$slots,`default`)])}var Be=ze(Re,[[`render`,L]]),Ve={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},He=[f(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`},null,-1)];function Ue(e,t){return S(),p(`svg`,Ve,He)}var R={render:Ue},We={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},Ge=[f(`path`,{d:`M0 0h32v4.2H0z`},null,-1)];function Ke(e,t){return S(),p(`svg`,We,Ge)}var qe={render:Ke},Je={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},Ye=[f(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`},null,-1)];function Xe(e,t){return S(),p(`svg`,Je,Ye)}var Ze={render:Xe},Qe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},$e=[f(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`},null,-1)];function et(e,t){return S(),p(`svg`,Qe,$e)}var tt={render:et},z={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},B=[f(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z`},null,-1)];function V(e,t){return S(),p(`svg`,z,B)}var H={render:V},nt=x({name:`Controls`,compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>Ie.BottomLeft}},emits:[`zoomIn`,`zoomOut`,`fitView`,`interactionChange`],setup(t,{emit:r}){let{nodesDraggable:a,nodesConnectable:o,elementsSelectable:s,setInteractive:c,zoomIn:l,zoomOut:u,fitView:d,viewport:f,minZoom:m,maxZoom:h}=Pe(),g=n(()=>a.value||o.value||s.value),_=n(()=>f.value.zoom<=m.value),v=n(()=>f.value.zoom>=h.value);function y(){l(),r(`zoomIn`)}function b(){u(),r(`zoomOut`)}function x(){d(t.fitViewParams),r(`fitView`)}function ee(){c(!g.value),r(`interactionChange`,!g.value)}return(t,n)=>(S(),D(e(Ne),{class:`vue-flow__controls`,position:t.position},{default:w(()=>[k(t.$slots,`top`),t.showZoom?(S(),p(C,{key:0},[k(t.$slots,`control-zoom-in`,{},()=>[i(Be,{class:`vue-flow__controls-zoomin`,disabled:v.value,onClick:y},{default:w(()=>[k(t.$slots,`icon-zoom-in`,{},()=>[(S(),D(O(e(R))))])]),_:3},8,[`disabled`])]),k(t.$slots,`control-zoom-out`,{},()=>[i(Be,{class:`vue-flow__controls-zoomout`,disabled:_.value,onClick:b},{default:w(()=>[k(t.$slots,`icon-zoom-out`,{},()=>[(S(),D(O(e(qe))))])]),_:3},8,[`disabled`])])],64)):A(``,!0),t.showFitView?k(t.$slots,`control-fit-view`,{key:1},()=>[i(Be,{class:`vue-flow__controls-fitview`,onClick:x},{default:w(()=>[k(t.$slots,`icon-fit-view`,{},()=>[(S(),D(O(e(Ze))))])]),_:3})]):A(``,!0),t.showInteractive?k(t.$slots,`control-interactive`,{key:2},()=>[t.showInteractive?(S(),D(Be,{key:0,class:`vue-flow__controls-interactive`,onClick:ee},{default:w(()=>[g.value?k(t.$slots,`icon-unlock`,{key:0},()=>[(S(),D(O(e(H))))]):A(``,!0),g.value?A(``,!0):k(t.$slots,`icon-lock`,{key:1},()=>[(S(),D(O(e(tt))))])]),_:3})):A(``,!0)]):A(``,!0),k(t.$slots,`default`)]),_:3},8,[`position`]))}}),rt={value:()=>{}};function U(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new it(n)}function it(e){this._=e}function at(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}it.prototype=U.prototype={constructor:it,on:function(e,t){var n=this._,r=at(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=ot(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=st(n[i],e.name,t);else if(t==null)for(i in n)n[i]=st(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new it(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function ot(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function st(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=rt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ct=`http://www.w3.org/1999/xhtml`,lt={svg:`http://www.w3.org/2000/svg`,xhtml:ct,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ut(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),lt.hasOwnProperty(t)?{space:lt[t],local:e}:e}function dt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ct&&t.documentElement.namespaceURI===ct?t.createElement(e):t.createElementNS(n,e)}}function ft(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pt(e){var t=ut(e);return(t.local?ft:dt)(t)}function mt(){}function ht(e){return e==null?mt:function(){return this.querySelector(e)}}function gt(e){typeof e!=`function`&&(e=ht(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new J(r,this._parents)}function _t(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vt(){return[]}function yt(e){return e==null?vt:function(){return this.querySelectorAll(e)}}function bt(e){return function(){return _t(e.apply(this,arguments))}}function xt(e){e=typeof e==`function`?bt(e):yt(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new J(r,i)}function St(e){return function(){return this.matches(e)}}function Ct(e){return function(t){return t.matches(e)}}var wt=Array.prototype.find;function Tt(e){return function(){return wt.call(this.children,e)}}function W(){return this.firstElementChild}function Et(e){return this.select(e==null?W:Tt(typeof e==`function`?e:Ct(e)))}var Dt=Array.prototype.filter;function G(){return Array.from(this.children)}function Ot(e){return function(){return Dt.call(this.children,e)}}function kt(e){return this.selectAll(e==null?G:Ot(typeof e==`function`?e:Ct(e)))}function At(e){typeof e!=`function`&&(e=St(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new J(r,this._parents)}function jt(e){return Array(e.length)}function Mt(){return new J(this._enter||this._groups.map(jt),this._parents)}function Nt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nt.prototype={constructor:Nt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pt(e){return function(){return e}}function Ft(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Nt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function It(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Nt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Lt(e){return e.__data__}function Rt(e,t){if(!arguments.length)return Array.from(this,Lt);var n=t?It:Ft,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pt(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=zt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new J(o,r),o._enter=s,o._exit=c,o}function zt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Bt(){return new J(this._exit||this._groups.map(jt),this._parents)}function Vt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ht(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new J(s,this._parents)}function K(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ut(e){e||=Wt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new J(i,this._parents).order()}function Wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Gt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Kt(){return Array.from(this)}function qt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Jt(){let e=0;for(let t of this)++e;return e}function q(){return!this.node()}function Yt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Xt(e){return function(){this.removeAttribute(e)}}function Zt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qt(e,t){return function(){this.setAttribute(e,t)}}function $t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function en(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tn(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nn(e,t){var n=ut(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zt:Xt:typeof t==`function`?n.local?tn:en:n.local?$t:Qt)(n,t))}function rn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function an(e){return function(){this.style.removeProperty(e)}}function on(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sn(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cn(e,t,n){return arguments.length>1?this.each((t==null?an:typeof t==`function`?sn:on)(e,t,n??``)):ln(this.node(),e)}function ln(e,t){return e.style.getPropertyValue(t)||rn(e).getComputedStyle(e,null).getPropertyValue(t)}function un(e){return function(){delete this[e]}}function dn(e,t){return function(){this[e]=t}}function fn(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function pn(e,t){return arguments.length>1?this.each((t==null?un:typeof t==`function`?fn:dn)(e,t)):this.node()[e]}function mn(e){return e.trim().split(/^|\s+/)}function hn(e){return e.classList||new gn(e)}function gn(e){this._node=e,this._names=mn(e.getAttribute(`class`)||``)}gn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function _n(e,t){for(var n=hn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function vn(e,t){for(var n=hn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function yn(e){return function(){_n(this,e)}}function bn(e){return function(){vn(this,e)}}function xn(e,t){return function(){(t.apply(this,arguments)?_n:vn)(this,e)}}function Sn(e,t){var n=mn(e+``);if(arguments.length<2){for(var r=hn(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?xn:t?yn:bn)(n,t))}function Cn(){this.textContent=``}function wn(e){return function(){this.textContent=e}}function Tn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function En(e){return arguments.length?this.each(e==null?Cn:(typeof e==`function`?Tn:wn)(e)):this.node().textContent}function Dn(){this.innerHTML=``}function On(e){return function(){this.innerHTML=e}}function kn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function An(e){return arguments.length?this.each(e==null?Dn:(typeof e==`function`?kn:On)(e)):this.node().innerHTML}function jn(){this.nextSibling&&this.parentNode.appendChild(this)}function Mn(){return this.each(jn)}function Nn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pn(){return this.each(Nn)}function Fn(e){var t=typeof e==`function`?e:pt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function In(){return null}function Ln(e,t){var n=typeof e==`function`?e:pt(e),r=t==null?In:typeof t==`function`?t:ht(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Rn(){var e=this.parentNode;e&&e.removeChild(this)}function zn(){return this.each(Rn)}function Bn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hn(e){return this.select(e?Vn:Bn)}function Un(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Wn(e){return function(t){e.call(this,t,this.__data__)}}function Gn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function qn(e,t,n){return function(){var r=this.__on,i,a=Wn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Jn(e,t,n){var r=Gn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?qn:Kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Yn(e,t,n){var r=rn(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Xn(e,t){return function(){return Yn(this,e,t)}}function Zn(e,t){return function(){return Yn(this,e,t.apply(this,arguments))}}function Qn(e,t){return this.each((typeof t==`function`?Zn:Xn)(e,t))}function*$n(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var er=[null];function J(e,t){this._groups=e,this._parents=t}function tr(){return new J([[document.documentElement]],er)}function nr(){return this}J.prototype=tr.prototype={constructor:J,select:gt,selectAll:xt,selectChild:Et,selectChildren:kt,filter:At,data:Rt,enter:Mt,exit:Bt,join:Vt,merge:Ht,selection:nr,order:K,sort:Ut,call:Gt,nodes:Kt,node:qt,size:Jt,empty:q,each:Yt,attr:nn,style:cn,property:pn,classed:Sn,text:En,html:An,raise:Mn,lower:Pn,append:Fn,insert:Ln,remove:zn,clone:Hn,datum:Un,on:Jn,dispatch:Qn,[Symbol.iterator]:$n};function rr(e){return typeof e==`string`?new J([[document.querySelector(e)]],[document.documentElement]):new J([[e]],er)}function ir(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ar(e,t){if(e=ir(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var or={capture:!0,passive:!1};function sr(e){e.preventDefault(),e.stopImmediatePropagation()}function cr(e){var t=e.document.documentElement,n=rr(e).on(`dragstart.drag`,sr,or);`onselectstart`in t?n.on(`selectstart.drag`,sr,or):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function lr(e,t){var n=e.document.documentElement,r=rr(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,sr,or),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ur(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fr(){}var pr=.7,mr=1/pr,hr=`\\s*([+-]?\\d+)\\s*`,gr=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Y=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,_r=/^#([0-9a-f]{3,8})$/,vr=RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),yr=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),br=RegExp(`^rgba\\(${hr},${hr},${hr},${gr}\\)$`),xr=RegExp(`^rgba\\(${Y},${Y},${Y},${gr}\\)$`),Sr=RegExp(`^hsl\\(${gr},${Y},${Y}\\)$`),Cr=RegExp(`^hsla\\(${gr},${Y},${Y},${gr}\\)$`),wr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ur(fr,kr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tr,formatHex:Tr,formatHex8:Er,formatHsl:Dr,formatRgb:Or,toString:Or});function Tr(){return this.rgb().formatHex()}function Er(){return this.rgb().formatHex8()}function Dr(){return Vr(this).formatHsl()}function Or(){return this.rgb().formatRgb()}function kr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=_r.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ar(t):n===3?new X(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?jr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vr.exec(e))?new X(t[1],t[2],t[3],1):(t=yr.exec(e))?new X(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=br.exec(e))?jr(t[1],t[2],t[3],t[4]):(t=xr.exec(e))?jr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Sr.exec(e))?Br(t[1],t[2]/100,t[3]/100,1):(t=Cr.exec(e))?Br(t[1],t[2]/100,t[3]/100,t[4]):wr.hasOwnProperty(e)?Ar(wr[e]):e===`transparent`?new X(NaN,NaN,NaN,0):null}function Ar(e){return new X(e>>16&255,e>>8&255,e&255,1)}function jr(e,t,n,r){return r<=0&&(e=t=n=NaN),new X(e,t,n,r)}function Mr(e){return e instanceof fr||(e=kr(e)),e?(e=e.rgb(),new X(e.r,e.g,e.b,e.opacity)):new X}function Nr(e,t,n,r){return arguments.length===1?Mr(e):new X(e,t,n,r??1)}function X(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ur(X,Nr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new X(Rr(this.r),Rr(this.g),Rr(this.b),Lr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pr,formatHex:Pr,formatHex8:Fr,formatRgb:Ir,toString:Ir}));function Pr(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}`}function Fr(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}${zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ir(){let e=Lr(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Rr(this.r)}, ${Rr(this.g)}, ${Rr(this.b)}${e===1?`)`:`, ${e})`}`}function Lr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zr(e){return e=Rr(e),(e<16?`0`:``)+e.toString(16)}function Br(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function Vr(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof fr||(e=kr(e)),!e)return new Z;if(e instanceof Z)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Z(o,s,c,e.opacity)}function Hr(e,t,n,r){return arguments.length===1?Vr(e):new Z(e,t,n,r??1)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ur(Z,Hr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new X(Gr(e>=240?e-240:e+120,i,r),Gr(e,i,r),Gr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Z(Ur(this.h),Wr(this.s),Wr(this.l),Lr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Lr(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ur(this.h)}, ${Wr(this.s)*100}%, ${Wr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ur(e){return e=(e||0)%360,e<0?e+360:e}function Wr(e){return Math.max(0,Math.min(1,e||0))}function Gr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Kr=e=>()=>e;function qr(e,t){return function(n){return e+n*t}}function Jr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Yr(e){return(e=+e)==1?Xr:function(t,n){return n-t?Jr(t,n,e):Kr(isNaN(t)?n:t)}}function Xr(e,t){var n=t-e;return n?qr(e,n):Kr(isNaN(e)?t:e)}var Zr=function e(t){var n=Yr(t);function r(e,t){var r=n((e=Nr(e)).r,(t=Nr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Xr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r}(1);function Qr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var $r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp($r.source,`g`);function ti(e){return function(){return e}}function ni(e){return function(t){return e(t)+``}}function ri(e,t){var n=$r.lastIndex=ei.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=$r.exec(e))&&(i=ei.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Qr(r,i)})),n=ei.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ni(c[0].x):ti(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var ii=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function oi(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ii,skewX:Math.atan(c)*ii,scaleX:o,scaleY:s}}var si;function ci(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ai:oi(t.a,t.b,t.c,t.d,t.e,t.f)}function li(e){return e==null||(si||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),si.setAttribute(`transform`,e),!(e=si.transform.baseVal.consolidate()))?ai:(e=e.matrix,oi(e.a,e.b,e.c,e.d,e.e,e.f))}function ui(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Qr(e,i)},{i:c-2,x:Qr(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Qr(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Qr(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Qr(e,n)},{i:s-2,x:Qr(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var di=ui(ci,`px, `,`px)`,`deg)`),fi=ui(li,`, `,`)`,`)`),pi=1e-12;function mi(e){return((e=Math.exp(e))+1/e)/2}function hi(e){return((e=Math.exp(e))-1/e)/2}function gi(e){return((e=Math.exp(2*e))-1)/(e+1)}var _i=function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<pi)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=mi(y),c=s/(n*g)*(i*gi(t*r+y)-hi(y));return[a+c*d,o+c*f,s*i/mi(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),vi=0,yi=0,bi=0,xi=1e3,Si,Ci,wi=0,Ti=0,Ei=0,Di=typeof performance==`object`&&performance.now?performance:Date,Oi=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ki(){return Ti||=(Oi(Ai),Di.now()+Ei)}function Ai(){Ti=0}function ji(){this._call=this._time=this._next=null}ji.prototype=Mi.prototype={constructor:ji,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?ki():+n)+(t==null?0:+t),!this._next&&Ci!==this&&(Ci?Ci._next=this:Si=this,Ci=this),this._call=e,this._time=n,Li()},stop:function(){this._call&&(this._call=null,this._time=1/0,Li())}};function Mi(e,t,n){var r=new ji;return r.restart(e,t,n),r}function Ni(){ki(),++vi;for(var e=Si,t;e;)(t=Ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--vi}function Pi(){Ti=(wi=Di.now())+Ei,vi=yi=0;try{Ni()}finally{vi=0,Ii(),Ti=0}}function Fi(){var e=Di.now(),t=e-wi;t>xi&&(Ei-=t,wi=e)}function Ii(){for(var e,t=Si,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Si=n);Ci=e,Li(r)}function Li(e){vi||(yi&&=clearTimeout(yi),e-Ti>24?(e<1/0&&(yi=setTimeout(Pi,e-Di.now()-Ei)),bi&&=clearInterval(bi)):(bi||=(wi=Di.now(),setInterval(Fi,xi)),vi=1,Oi(Pi)))}function Ri(e,t,n){var r=new ji;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var zi=U(`start`,`end`,`cancel`,`interrupt`),Bi=[],Vi=0,Hi=1,Ui=2,Wi=3,Gi=4,Ki=5,qi=6;function Ji(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Xi(e,n,{name:t,index:r,group:i,on:zi,tween:Bi,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Vi})}function Yi(e,t){var n=$(e,t);if(n.state>Vi)throw Error(`too late; already scheduled`);return n}function Q(e,t){var n=$(e,t);if(n.state>Wi)throw Error(`too late; already running`);return n}function $(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Xi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Mi(a,0,n.time);function a(e){n.state=Hi,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==Hi)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===Wi)return Ri(o);f.state===Gi?(f.state=qi,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=qi,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Ri(function(){n.state===Wi&&(n.state=Gi,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=Ui,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===Ui){for(n.state=Wi,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=Ki,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===Ki&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=qi,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Zi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Ui&&r.state<Ki,r.state=qi,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Qi(e){return this.each(function(){Zi(this,e)})}function $i(e,t){var n,r;return function(){var i=Q(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function ea(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Q(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function ta(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=$(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?$i:ea)(n,e,t))}function na(e,t,n){var r=e._id;return e.each(function(){var e=Q(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return $(e,r).value[t]}}function ra(e,t){var n;return(typeof t==`number`?Qr:t instanceof kr?Zr:(n=kr(t))?(t=n,Zr):ri)(e,t)}function ia(e){return function(){this.removeAttribute(e)}}function aa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function sa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ca(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function la(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ua(e,t){var n=ut(e),r=n===`transform`?fi:ra;return this.attrTween(e,typeof t==`function`?(n.local?la:ca)(n,r,na(this,`attr.`+e,t)):t==null?(n.local?aa:ia)(n):(n.local?sa:oa)(n,r,t))}function da(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fa(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&fa(e,i)),n}return i._value=t,i}function ma(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&da(e,i)),n}return i._value=t,i}function ha(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ut(e);return this.tween(n,(r.local?pa:ma)(r,t))}function ga(e,t){return function(){Yi(this,e).delay=+t.apply(this,arguments)}}function _a(e,t){return t=+t,function(){Yi(this,e).delay=t}}function va(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ga:_a)(t,e)):$(this.node(),t).delay}function ya(e,t){return function(){Q(this,e).duration=+t.apply(this,arguments)}}function ba(e,t){return t=+t,function(){Q(this,e).duration=t}}function xa(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ya:ba)(t,e)):$(this.node(),t).duration}function Sa(e,t){if(typeof t!=`function`)throw Error();return function(){Q(this,e).ease=t}}function Ca(e){var t=this._id;return arguments.length?this.each(Sa(t,e)):$(this.node(),t).ease}function wa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Q(this,e).ease=n}}function Ta(e){if(typeof e!=`function`)throw Error();return this.each(wa(this._id,e))}function Ea(e){typeof e!=`function`&&(e=St(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new to(r,this._parents,this._name,this._id)}function Da(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new to(o,this._parents,this._name,this._id)}function Oa(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function ka(e,t,n){var r,i,a=Oa(t)?Yi:Q;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Aa(e,t){var n=this._id;return arguments.length<2?$(this.node(),n).on.on(e):this.each(ka(n,e,t))}function ja(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ma(){return this.on(`end.remove`,ja(this._id))}function Na(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ht(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ji(l[f],t,n,f,l,$(u,n)));return new to(a,this._parents,t,n)}function Pa(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=yt(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=$(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ji(p,t,n,h,f,m);a.push(f),o.push(u)}return new to(a,o,t,n)}var Fa=tr.prototype.constructor;function Ia(){return new Fa(this._groups,this._parents)}function La(e,t){var n,r,i;return function(){var a=ln(this,e),o=(this.style.removeProperty(e),ln(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Ra(e){return function(){this.style.removeProperty(e)}}function za(e,t,n){var r,i=n+``,a;return function(){var o=ln(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ba(e,t,n){var r,i,a;return function(){var o=ln(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ln(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Va(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Q(this,e),l=c.on,u=c.value[a]==null?s||=Ra(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ha(e,t,n){var r=(e+=``)==`transform`?di:ra;return t==null?this.styleTween(e,La(e,r)).on(`end.style.`+e,Ra(e)):typeof t==`function`?this.styleTween(e,Ba(e,r,na(this,`style.`+e,t))).each(Va(this._id,e)):this.styleTween(e,za(e,r,t),n).on(`end.style.`+e,null)}function Ua(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Wa(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ua(e,a,n)),r}return a._value=t,a}function Ga(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Wa(e,t,n??``))}function Ka(e){return function(){this.textContent=e}}function qa(e){return function(){var t=e(this);this.textContent=t??``}}function Ja(e){return this.tween(`text`,typeof e==`function`?qa(na(this,`text`,e)):Ka(e==null?``:e+``))}function Ya(e){return function(t){this.textContent=e.call(this,t)}}function Xa(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ya(r)),t}return r._value=e,r}function Za(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Xa(e))}function Qa(){for(var e=this._name,t=this._id,n=no(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=$(c,t);Ji(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new to(r,this._parents,e,n)}function $a(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Q(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var eo=0;function to(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function no(){return++eo}var ro=tr.prototype;to.prototype={constructor:to,select:Na,selectAll:Pa,selectChild:ro.selectChild,selectChildren:ro.selectChildren,filter:Ea,merge:Da,selection:Ia,transition:Qa,call:ro.call,nodes:ro.nodes,node:ro.node,size:ro.size,empty:ro.empty,each:ro.each,on:Aa,attr:ua,attrTween:ha,style:Ha,styleTween:Ga,text:Ja,textTween:Za,remove:Ma,tween:ta,delay:va,duration:xa,ease:Ca,easeVarying:Ta,end:$a,[Symbol.iterator]:ro[Symbol.iterator]};function io(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ao={time:null,delay:0,duration:250,ease:io};function oo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function so(e){var t,n;e instanceof to?(t=e._id,e=e._name):(t=no(),(n=ao).time=ki(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ji(c,e,t,l,o,n||oo(c,t));return new to(r,this._parents,e,t)}tr.prototype.interrupt=Qi,tr.prototype.transition=so;var co=e=>()=>e;function lo(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function uo(e,t,n){this.k=e,this.x=t,this.y=n}uo.prototype={constructor:uo,scale:function(e){return e===1?this:new uo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new uo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var fo=new uo(1,0,0);uo.prototype;function po(e){e.stopImmediatePropagation()}function mo(e){e.preventDefault(),e.stopImmediatePropagation()}function ho(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function go(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _o(){return this.__zoom||fo}function vo(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function yo(){return navigator.maxTouchPoints||`ontouchstart`in this}function bo(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function xo(){var e=ho,t=go,n=bo,r=vo,i=yo,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=_i,l=U(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,_o).on(`wheel.zoom`,C,{passive:!1}).on(`mousedown.zoom`,w).on(`dblclick.zoom`,T).filter(i).on(`touchstart.zoom`,te).on(`touchmove.zoom`,E).on(`touchend.zoom touchcancel.zoom`,D).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,_o),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(fo.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new uo(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new uo(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new uo(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new ee(e,t)}function ee(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}ee.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=rr(this.that).datum();l.call(e,this.that,new lo(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function C(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=ar(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Zi(this),s.start();mo(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function w(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=rr(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=ar(t,i),l=t.clientX,u=t.clientY;cr(t.view),po(t),a.mouse=[c,this.__zoom.invert(c)],Zi(this),a.start();function d(e){if(mo(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=ar(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),lr(e.view,a.moved),mo(e),a.event(e).end()}}function T(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=ar(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);mo(r),s>0?rr(this).transition().duration(s).call(x,d,c,r):rr(this).call(_.transform,d,c,r)}}function te(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(po(t),s=0;s<i;++s)c=r[s],l=ar(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Zi(this),a.start())}}function E(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(mo(e),s=0;s<a;++s)c=i[s],l=ar(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function D(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(po(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=ar(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=rr(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:co(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:co(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:co(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:co([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var So=Symbol(`MiniMapSlots`),Co=[`id`,`x`,`y`,`rx`,`ry`,`width`,`height`,`fill`,`stroke`,`stroke-width`,`shape-rendering`],wo=x({name:`MiniMapNode`,compatConfig:{MODE:3},inheritAttrs:!1,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:[`click`,`dblclick`,`mouseenter`,`mousemove`,`mouseleave`],setup(t,{emit:r}){let i=t,a=s(So),o=l(),c=n(()=>o.style??{});function u(e){r(`click`,e)}function d(e){r(`dblclick`,e)}function f(e){r(`mouseenter`,e)}function m(e){r(`mousemove`,e)}function h(e){r(`mouseleave`,e)}return(t,n)=>!t.hidden&&t.dimensions.width!==0&&t.dimensions.height!==0?(S(),p(C,{key:0},[e(a)[`node-${i.type}`]?(S(),D(O(e(a)[`node-${i.type}`]),te(_({key:0},{...i,...t.$attrs})),null,16)):(S(),p(`rect`,_({key:1,id:t.id},t.$attrs,{class:[`vue-flow__minimap-node`,{selected:t.selected,dragging:t.dragging}],x:t.position.x,y:t.position.y,rx:t.borderRadius,ry:t.borderRadius,width:t.dimensions.width,height:t.dimensions.height,fill:t.color||c.value.background||c.value.backgroundColor,stroke:t.strokeColor,"stroke-width":t.strokeWidth,"shape-rendering":t.shapeRendering,onClick:u,onDblclick:d,onMouseenter:f,onMousemove:m,onMouseleave:h}),null,16,Co))],64)):A(``,!0)}}),To=[`width`,`height`,`viewBox`,`aria-labelledby`],Eo=[`id`],Do=[`d`,`fill`,`stroke`,`stroke-width`],Oo=x({name:`MiniMap`,compatConfig:{MODE:3},props:{nodeColor:{type:[String,Function],default:`#e2e2e2`},nodeStrokeColor:{type:[String,Function],default:`transparent`},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:`rgb(240, 240, 240, 0.6)`},maskStrokeColor:{default:`none`},maskStrokeWidth:{default:1},position:{default:`bottom-right`},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:`Vue Flow mini map`},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:[`click`,`nodeClick`,`nodeDblclick`,`nodeMouseenter`,`nodeMousemove`,`nodeMouseleave`],setup(r,{emit:i}){let a=c(),o=l(),{id:s,edges:d,viewport:h,translateExtent:_,dimensions:v,emits:x,d3Selection:te,d3Zoom:E,getNodesInitialized:O}=Pe(),k=t();b(So,a);let j=n(()=>r.width??o.style?.width??200),ne=n(()=>r.height??o.style?.height??150),re=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`,ie=y(()=>typeof r.nodeColor==`string`?()=>r.nodeColor:r.nodeColor),ae=y(()=>typeof r.nodeStrokeColor==`string`?()=>r.nodeStrokeColor:r.nodeStrokeColor),oe=y(()=>typeof r.nodeClassName==`string`?()=>r.nodeClassName:typeof r.nodeClassName==`function`?r.nodeClassName:()=>``),se=y(()=>Fe(O.value.filter(e=>!e.hidden))),ce=y(()=>({x:-h.value.x/h.value.zoom,y:-h.value.y/h.value.zoom,width:v.value.width/h.value.zoom,height:v.value.height/h.value.zoom})),M=y(()=>O.value&&O.value.length?Oe(se.value,ce.value):ce.value),N=y(()=>{let e=M.value.width/j.value,t=M.value.height/ne.value;return Math.max(e,t)}),P=y(()=>{let e=N.value*j.value,t=N.value*ne.value,n=r.offsetScale*N.value;return{offset:n,x:M.value.x-(e-M.value.width)/2-n,y:M.value.y-(t-M.value.height)/2-n,width:e+n*2,height:t+n*2}}),le=y(()=>!P.value.x||!P.value.y?``:`
1
+ import{B as e,C as t,N as n}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{Ct as r,D as i,E as a,Ht as o,J as s,Lt as c,Nt as l,Ut as u,Yt as d,_ as f,b as p,bt as m,ct as h,en as g,et as _,ft as v,g as y,gt as b,k as x,mt as S,nn as ee,o as C,qt as w,rn as T,tn as te,tt as E,v as D,wt as O,xt as k,y as A,z as j}from"./runtime-core.esm-bundler-DujKY9QV.js";import{F as ne,I as re,p as ie}from"./floating-ui.dom-DWhsZyqT.js";import{C as ae,J as oe,O as se,P as ce,S as M,Y as N,a as P,c as le,dt as F,ft as ue,mt as de,q as fe}from"./src--GO-VSJ0.js";import{a as pe}from"./project-launch.store-y7JBMNiE.js";import{g as me,h as he}from"./useApi-s_02lHjl-DZYO2tHU.js";import{i as ge,n as _e,o as ve,t as ye}from"./scenario.store-YWHL2_wu.js";import{r as be}from"./trpc-Drabzwpd.js";import{a as xe,g as Se,p as Ce}from"./schemas-68I2iCLF.js";import{o as we,s as Te}from"./dist-N4nrnbnA.js";import{A as Ee,C as De,D as Oe,E as ke,M as Ae,O as je,S as Me,T as Ne,j as Pe,k as Fe,w as Ie}from"./index-D8VRbyoP.js";import{t as Le}from"./uuid-XipkJWQw.js";var Re={name:`ControlButton`,compatConfig:{MODE:3}},ze=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},I={type:`button`,class:`vue-flow__controls-button`};function L(e,t,n,r,i,a){return S(),p(`button`,I,[k(e.$slots,`default`)])}var Be=ze(Re,[[`render`,L]]),Ve={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},He=[f(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`},null,-1)];function Ue(e,t){return S(),p(`svg`,Ve,He)}var R={render:Ue},We={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},Ge=[f(`path`,{d:`M0 0h32v4.2H0z`},null,-1)];function Ke(e,t){return S(),p(`svg`,We,Ge)}var qe={render:Ke},Je={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},Ye=[f(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`},null,-1)];function Xe(e,t){return S(),p(`svg`,Je,Ye)}var Ze={render:Xe},Qe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},$e=[f(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`},null,-1)];function et(e,t){return S(),p(`svg`,Qe,$e)}var tt={render:et},z={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},B=[f(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047z`},null,-1)];function V(e,t){return S(),p(`svg`,z,B)}var H={render:V},nt=x({name:`Controls`,compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>Ie.BottomLeft}},emits:[`zoomIn`,`zoomOut`,`fitView`,`interactionChange`],setup(t,{emit:r}){let{nodesDraggable:a,nodesConnectable:o,elementsSelectable:s,setInteractive:c,zoomIn:l,zoomOut:u,fitView:d,viewport:f,minZoom:m,maxZoom:h}=Pe(),g=n(()=>a.value||o.value||s.value),_=n(()=>f.value.zoom<=m.value),v=n(()=>f.value.zoom>=h.value);function y(){l(),r(`zoomIn`)}function b(){u(),r(`zoomOut`)}function x(){d(t.fitViewParams),r(`fitView`)}function ee(){c(!g.value),r(`interactionChange`,!g.value)}return(t,n)=>(S(),D(e(Ne),{class:`vue-flow__controls`,position:t.position},{default:w(()=>[k(t.$slots,`top`),t.showZoom?(S(),p(C,{key:0},[k(t.$slots,`control-zoom-in`,{},()=>[i(Be,{class:`vue-flow__controls-zoomin`,disabled:v.value,onClick:y},{default:w(()=>[k(t.$slots,`icon-zoom-in`,{},()=>[(S(),D(O(e(R))))])]),_:3},8,[`disabled`])]),k(t.$slots,`control-zoom-out`,{},()=>[i(Be,{class:`vue-flow__controls-zoomout`,disabled:_.value,onClick:b},{default:w(()=>[k(t.$slots,`icon-zoom-out`,{},()=>[(S(),D(O(e(qe))))])]),_:3},8,[`disabled`])])],64)):A(``,!0),t.showFitView?k(t.$slots,`control-fit-view`,{key:1},()=>[i(Be,{class:`vue-flow__controls-fitview`,onClick:x},{default:w(()=>[k(t.$slots,`icon-fit-view`,{},()=>[(S(),D(O(e(Ze))))])]),_:3})]):A(``,!0),t.showInteractive?k(t.$slots,`control-interactive`,{key:2},()=>[t.showInteractive?(S(),D(Be,{key:0,class:`vue-flow__controls-interactive`,onClick:ee},{default:w(()=>[g.value?k(t.$slots,`icon-unlock`,{key:0},()=>[(S(),D(O(e(H))))]):A(``,!0),g.value?A(``,!0):k(t.$slots,`icon-lock`,{key:1},()=>[(S(),D(O(e(tt))))])]),_:3})):A(``,!0)]):A(``,!0),k(t.$slots,`default`)]),_:3},8,[`position`]))}}),rt={value:()=>{}};function U(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new it(n)}function it(e){this._=e}function at(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}it.prototype=U.prototype={constructor:it,on:function(e,t){var n=this._,r=at(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=ot(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=st(n[i],e.name,t);else if(t==null)for(i in n)n[i]=st(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new it(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function ot(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function st(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=rt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ct=`http://www.w3.org/1999/xhtml`,lt={svg:`http://www.w3.org/2000/svg`,xhtml:ct,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ut(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),lt.hasOwnProperty(t)?{space:lt[t],local:e}:e}function dt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ct&&t.documentElement.namespaceURI===ct?t.createElement(e):t.createElementNS(n,e)}}function ft(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pt(e){var t=ut(e);return(t.local?ft:dt)(t)}function mt(){}function ht(e){return e==null?mt:function(){return this.querySelector(e)}}function gt(e){typeof e!=`function`&&(e=ht(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new J(r,this._parents)}function _t(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vt(){return[]}function yt(e){return e==null?vt:function(){return this.querySelectorAll(e)}}function bt(e){return function(){return _t(e.apply(this,arguments))}}function xt(e){e=typeof e==`function`?bt(e):yt(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new J(r,i)}function St(e){return function(){return this.matches(e)}}function Ct(e){return function(t){return t.matches(e)}}var wt=Array.prototype.find;function Tt(e){return function(){return wt.call(this.children,e)}}function W(){return this.firstElementChild}function Et(e){return this.select(e==null?W:Tt(typeof e==`function`?e:Ct(e)))}var Dt=Array.prototype.filter;function G(){return Array.from(this.children)}function Ot(e){return function(){return Dt.call(this.children,e)}}function kt(e){return this.selectAll(e==null?G:Ot(typeof e==`function`?e:Ct(e)))}function At(e){typeof e!=`function`&&(e=St(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new J(r,this._parents)}function jt(e){return Array(e.length)}function Mt(){return new J(this._enter||this._groups.map(jt),this._parents)}function Nt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Nt.prototype={constructor:Nt,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pt(e){return function(){return e}}function Ft(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Nt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function It(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new Nt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function Lt(e){return e.__data__}function Rt(e,t){if(!arguments.length)return Array.from(this,Lt);var n=t?It:Ft,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Pt(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=zt(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new J(o,r),o._enter=s,o._exit=c,o}function zt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Bt(){return new J(this._exit||this._groups.map(jt),this._parents)}function Vt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function Ht(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new J(s,this._parents)}function K(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function Ut(e){e||=Wt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new J(i,this._parents).order()}function Wt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Gt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Kt(){return Array.from(this)}function qt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function Jt(){let e=0;for(let t of this)++e;return e}function q(){return!this.node()}function Yt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Xt(e){return function(){this.removeAttribute(e)}}function Zt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Qt(e,t){return function(){this.setAttribute(e,t)}}function $t(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function en(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function tn(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function nn(e,t){var n=ut(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Zt:Xt:typeof t==`function`?n.local?tn:en:n.local?$t:Qt)(n,t))}function rn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function an(e){return function(){this.style.removeProperty(e)}}function on(e,t,n){return function(){this.style.setProperty(e,t,n)}}function sn(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function cn(e,t,n){return arguments.length>1?this.each((t==null?an:typeof t==`function`?sn:on)(e,t,n??``)):ln(this.node(),e)}function ln(e,t){return e.style.getPropertyValue(t)||rn(e).getComputedStyle(e,null).getPropertyValue(t)}function un(e){return function(){delete this[e]}}function dn(e,t){return function(){this[e]=t}}function fn(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function pn(e,t){return arguments.length>1?this.each((t==null?un:typeof t==`function`?fn:dn)(e,t)):this.node()[e]}function mn(e){return e.trim().split(/^|\s+/)}function hn(e){return e.classList||new gn(e)}function gn(e){this._node=e,this._names=mn(e.getAttribute(`class`)||``)}gn.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function _n(e,t){for(var n=hn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function vn(e,t){for(var n=hn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function yn(e){return function(){_n(this,e)}}function bn(e){return function(){vn(this,e)}}function xn(e,t){return function(){(t.apply(this,arguments)?_n:vn)(this,e)}}function Sn(e,t){var n=mn(e+``);if(arguments.length<2){for(var r=hn(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?xn:t?yn:bn)(n,t))}function Cn(){this.textContent=``}function wn(e){return function(){this.textContent=e}}function Tn(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function En(e){return arguments.length?this.each(e==null?Cn:(typeof e==`function`?Tn:wn)(e)):this.node().textContent}function Dn(){this.innerHTML=``}function On(e){return function(){this.innerHTML=e}}function kn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function An(e){return arguments.length?this.each(e==null?Dn:(typeof e==`function`?kn:On)(e)):this.node().innerHTML}function jn(){this.nextSibling&&this.parentNode.appendChild(this)}function Mn(){return this.each(jn)}function Nn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Pn(){return this.each(Nn)}function Fn(e){var t=typeof e==`function`?e:pt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function In(){return null}function Ln(e,t){var n=typeof e==`function`?e:pt(e),r=t==null?In:typeof t==`function`?t:ht(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Rn(){var e=this.parentNode;e&&e.removeChild(this)}function zn(){return this.each(Rn)}function Bn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Hn(e){return this.select(e?Vn:Bn)}function Un(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Wn(e){return function(t){e.call(this,t,this.__data__)}}function Gn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Kn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function qn(e,t,n){return function(){var r=this.__on,i,a=Wn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Jn(e,t,n){var r=Gn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?qn:Kn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Yn(e,t,n){var r=rn(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Xn(e,t){return function(){return Yn(this,e,t)}}function Zn(e,t){return function(){return Yn(this,e,t.apply(this,arguments))}}function Qn(e,t){return this.each((typeof t==`function`?Zn:Xn)(e,t))}function*$n(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var er=[null];function J(e,t){this._groups=e,this._parents=t}function tr(){return new J([[document.documentElement]],er)}function nr(){return this}J.prototype=tr.prototype={constructor:J,select:gt,selectAll:xt,selectChild:Et,selectChildren:kt,filter:At,data:Rt,enter:Mt,exit:Bt,join:Vt,merge:Ht,selection:nr,order:K,sort:Ut,call:Gt,nodes:Kt,node:qt,size:Jt,empty:q,each:Yt,attr:nn,style:cn,property:pn,classed:Sn,text:En,html:An,raise:Mn,lower:Pn,append:Fn,insert:Ln,remove:zn,clone:Hn,datum:Un,on:Jn,dispatch:Qn,[Symbol.iterator]:$n};function rr(e){return typeof e==`string`?new J([[document.querySelector(e)]],[document.documentElement]):new J([[e]],er)}function ir(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ar(e,t){if(e=ir(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var or={capture:!0,passive:!1};function sr(e){e.preventDefault(),e.stopImmediatePropagation()}function cr(e){var t=e.document.documentElement,n=rr(e).on(`dragstart.drag`,sr,or);`onselectstart`in t?n.on(`selectstart.drag`,sr,or):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function lr(e,t){var n=e.document.documentElement,r=rr(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,sr,or),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function ur(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function dr(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function fr(){}var pr=.7,mr=1/pr,hr=`\\s*([+-]?\\d+)\\s*`,gr=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Y=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,_r=/^#([0-9a-f]{3,8})$/,vr=RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),yr=RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`),br=RegExp(`^rgba\\(${hr},${hr},${hr},${gr}\\)$`),xr=RegExp(`^rgba\\(${Y},${Y},${Y},${gr}\\)$`),Sr=RegExp(`^hsl\\(${gr},${Y},${Y}\\)$`),Cr=RegExp(`^hsla\\(${gr},${Y},${Y},${gr}\\)$`),wr={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};ur(fr,kr,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tr,formatHex:Tr,formatHex8:Er,formatHsl:Dr,formatRgb:Or,toString:Or});function Tr(){return this.rgb().formatHex()}function Er(){return this.rgb().formatHex8()}function Dr(){return Vr(this).formatHsl()}function Or(){return this.rgb().formatRgb()}function kr(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=_r.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ar(t):n===3?new X(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?jr(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?jr(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=vr.exec(e))?new X(t[1],t[2],t[3],1):(t=yr.exec(e))?new X(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=br.exec(e))?jr(t[1],t[2],t[3],t[4]):(t=xr.exec(e))?jr(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Sr.exec(e))?Br(t[1],t[2]/100,t[3]/100,1):(t=Cr.exec(e))?Br(t[1],t[2]/100,t[3]/100,t[4]):wr.hasOwnProperty(e)?Ar(wr[e]):e===`transparent`?new X(NaN,NaN,NaN,0):null}function Ar(e){return new X(e>>16&255,e>>8&255,e&255,1)}function jr(e,t,n,r){return r<=0&&(e=t=n=NaN),new X(e,t,n,r)}function Mr(e){return e instanceof fr||(e=kr(e)),e?(e=e.rgb(),new X(e.r,e.g,e.b,e.opacity)):new X}function Nr(e,t,n,r){return arguments.length===1?Mr(e):new X(e,t,n,r??1)}function X(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ur(X,Nr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new X(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new X(Rr(this.r),Rr(this.g),Rr(this.b),Lr(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pr,formatHex:Pr,formatHex8:Fr,formatRgb:Ir,toString:Ir}));function Pr(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}`}function Fr(){return`#${zr(this.r)}${zr(this.g)}${zr(this.b)}${zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ir(){let e=Lr(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Rr(this.r)}, ${Rr(this.g)}, ${Rr(this.b)}${e===1?`)`:`, ${e})`}`}function Lr(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Rr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zr(e){return e=Rr(e),(e<16?`0`:``)+e.toString(16)}function Br(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Z(e,t,n,r)}function Vr(e){if(e instanceof Z)return new Z(e.h,e.s,e.l,e.opacity);if(e instanceof fr||(e=kr(e)),!e)return new Z;if(e instanceof Z)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new Z(o,s,c,e.opacity)}function Hr(e,t,n,r){return arguments.length===1?Vr(e):new Z(e,t,n,r??1)}function Z(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ur(Z,Hr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new Z(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new Z(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new X(Gr(e>=240?e-240:e+120,i,r),Gr(e,i,r),Gr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Z(Ur(this.h),Wr(this.s),Wr(this.l),Lr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Lr(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Ur(this.h)}, ${Wr(this.s)*100}%, ${Wr(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Ur(e){return e=(e||0)%360,e<0?e+360:e}function Wr(e){return Math.max(0,Math.min(1,e||0))}function Gr(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Kr=e=>()=>e;function qr(e,t){return function(n){return e+n*t}}function Jr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Yr(e){return(e=+e)==1?Xr:function(t,n){return n-t?Jr(t,n,e):Kr(isNaN(t)?n:t)}}function Xr(e,t){var n=t-e;return n?qr(e,n):Kr(isNaN(e)?t:e)}var Zr=function e(t){var n=Yr(t);function r(e,t){var r=n((e=Nr(e)).r,(t=Nr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Xr(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r}(1);function Qr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var $r=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ei=new RegExp($r.source,`g`);function ti(e){return function(){return e}}function ni(e){return function(t){return e(t)+``}}function ri(e,t){var n=$r.lastIndex=ei.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=$r.exec(e))&&(i=ei.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:Qr(r,i)})),n=ei.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ni(c[0].x):ti(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}var ii=180/Math.PI,ai={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function oi(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*ii,skewX:Math.atan(c)*ii,scaleX:o,scaleY:s}}var si;function ci(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ai:oi(t.a,t.b,t.c,t.d,t.e,t.f)}function li(e){return e==null||(si||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),si.setAttribute(`transform`,e),!(e=si.transform.baseVal.consolidate()))?ai:(e=e.matrix,oi(e.a,e.b,e.c,e.d,e.e,e.f))}function ui(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:Qr(e,i)},{i:c-2,x:Qr(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Qr(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Qr(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Qr(e,n)},{i:s-2,x:Qr(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var di=ui(ci,`px, `,`px)`,`deg)`),fi=ui(li,`, `,`)`,`)`),pi=1e-12;function mi(e){return((e=Math.exp(e))+1/e)/2}function hi(e){return((e=Math.exp(e))-1/e)/2}function gi(e){return((e=Math.exp(2*e))-1)/(e+1)}var _i=function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<pi)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=mi(y),c=s/(n*g)*(i*gi(t*r+y)-hi(y));return[a+c*d,o+c*f,s*i/mi(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),vi=0,yi=0,bi=0,xi=1e3,Si,Ci,wi=0,Ti=0,Ei=0,Di=typeof performance==`object`&&performance.now?performance:Date,Oi=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function ki(){return Ti||=(Oi(Ai),Di.now()+Ei)}function Ai(){Ti=0}function ji(){this._call=this._time=this._next=null}ji.prototype=Mi.prototype={constructor:ji,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?ki():+n)+(t==null?0:+t),!this._next&&Ci!==this&&(Ci?Ci._next=this:Si=this,Ci=this),this._call=e,this._time=n,Li()},stop:function(){this._call&&(this._call=null,this._time=1/0,Li())}};function Mi(e,t,n){var r=new ji;return r.restart(e,t,n),r}function Ni(){ki(),++vi;for(var e=Si,t;e;)(t=Ti-e._time)>=0&&e._call.call(void 0,t),e=e._next;--vi}function Pi(){Ti=(wi=Di.now())+Ei,vi=yi=0;try{Ni()}finally{vi=0,Ii(),Ti=0}}function Fi(){var e=Di.now(),t=e-wi;t>xi&&(Ei-=t,wi=e)}function Ii(){for(var e,t=Si,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Si=n);Ci=e,Li(r)}function Li(e){vi||(yi&&=clearTimeout(yi),e-Ti>24?(e<1/0&&(yi=setTimeout(Pi,e-Di.now()-Ei)),bi&&=clearInterval(bi)):(bi||=(wi=Di.now(),setInterval(Fi,xi)),vi=1,Oi(Pi)))}function Ri(e,t,n){var r=new ji;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var zi=U(`start`,`end`,`cancel`,`interrupt`),Bi=[],Vi=0,Hi=1,Ui=2,Wi=3,Gi=4,Ki=5,qi=6;function Ji(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Xi(e,n,{name:t,index:r,group:i,on:zi,tween:Bi,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Vi})}function Yi(e,t){var n=$(e,t);if(n.state>Vi)throw Error(`too late; already scheduled`);return n}function Q(e,t){var n=$(e,t);if(n.state>Wi)throw Error(`too late; already running`);return n}function $(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Xi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=Mi(a,0,n.time);function a(e){n.state=Hi,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==Hi)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===Wi)return Ri(o);f.state===Gi?(f.state=qi,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=qi,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Ri(function(){n.state===Wi&&(n.state=Gi,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=Ui,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===Ui){for(n.state=Wi,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=Ki,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===Ki&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=qi,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Zi(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>Ui&&r.state<Ki,r.state=qi,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Qi(e){return this.each(function(){Zi(this,e)})}function $i(e,t){var n,r;return function(){var i=Q(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function ea(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Q(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function ta(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=$(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?$i:ea)(n,e,t))}function na(e,t,n){var r=e._id;return e.each(function(){var e=Q(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return $(e,r).value[t]}}function ra(e,t){var n;return(typeof t==`number`?Qr:t instanceof kr?Zr:(n=kr(t))?(t=n,Zr):ri)(e,t)}function ia(e){return function(){this.removeAttribute(e)}}function aa(e){return function(){this.removeAttributeNS(e.space,e.local)}}function oa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function sa(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function ca(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function la(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function ua(e,t){var n=ut(e),r=n===`transform`?fi:ra;return this.attrTween(e,typeof t==`function`?(n.local?la:ca)(n,r,na(this,`attr.`+e,t)):t==null?(n.local?aa:ia)(n):(n.local?sa:oa)(n,r,t))}function da(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function fa(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function pa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&fa(e,i)),n}return i._value=t,i}function ma(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&da(e,i)),n}return i._value=t,i}function ha(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ut(e);return this.tween(n,(r.local?pa:ma)(r,t))}function ga(e,t){return function(){Yi(this,e).delay=+t.apply(this,arguments)}}function _a(e,t){return t=+t,function(){Yi(this,e).delay=t}}function va(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ga:_a)(t,e)):$(this.node(),t).delay}function ya(e,t){return function(){Q(this,e).duration=+t.apply(this,arguments)}}function ba(e,t){return t=+t,function(){Q(this,e).duration=t}}function xa(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ya:ba)(t,e)):$(this.node(),t).duration}function Sa(e,t){if(typeof t!=`function`)throw Error();return function(){Q(this,e).ease=t}}function Ca(e){var t=this._id;return arguments.length?this.each(Sa(t,e)):$(this.node(),t).ease}function wa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Q(this,e).ease=n}}function Ta(e){if(typeof e!=`function`)throw Error();return this.each(wa(this._id,e))}function Ea(e){typeof e!=`function`&&(e=St(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new to(r,this._parents,this._name,this._id)}function Da(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new to(o,this._parents,this._name,this._id)}function Oa(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function ka(e,t,n){var r,i,a=Oa(t)?Yi:Q;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function Aa(e,t){var n=this._id;return arguments.length<2?$(this.node(),n).on.on(e):this.each(ka(n,e,t))}function ja(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function Ma(){return this.on(`end.remove`,ja(this._id))}function Na(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ht(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,Ji(l[f],t,n,f,l,$(u,n)));return new to(a,this._parents,t,n)}function Pa(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=yt(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=$(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&Ji(p,t,n,h,f,m);a.push(f),o.push(u)}return new to(a,o,t,n)}var Fa=tr.prototype.constructor;function Ia(){return new Fa(this._groups,this._parents)}function La(e,t){var n,r,i;return function(){var a=ln(this,e),o=(this.style.removeProperty(e),ln(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function Ra(e){return function(){this.style.removeProperty(e)}}function za(e,t,n){var r,i=n+``,a;return function(){var o=ln(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ba(e,t,n){var r,i,a;return function(){var o=ln(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ln(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Va(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Q(this,e),l=c.on,u=c.value[a]==null?s||=Ra(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Ha(e,t,n){var r=(e+=``)==`transform`?di:ra;return t==null?this.styleTween(e,La(e,r)).on(`end.style.`+e,Ra(e)):typeof t==`function`?this.styleTween(e,Ba(e,r,na(this,`style.`+e,t))).each(Va(this._id,e)):this.styleTween(e,za(e,r,t),n).on(`end.style.`+e,null)}function Ua(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Wa(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ua(e,a,n)),r}return a._value=t,a}function Ga(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Wa(e,t,n??``))}function Ka(e){return function(){this.textContent=e}}function qa(e){return function(){var t=e(this);this.textContent=t??``}}function Ja(e){return this.tween(`text`,typeof e==`function`?qa(na(this,`text`,e)):Ka(e==null?``:e+``))}function Ya(e){return function(t){this.textContent=e.call(this,t)}}function Xa(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ya(r)),t}return r._value=e,r}function Za(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Xa(e))}function Qa(){for(var e=this._name,t=this._id,n=no(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=$(c,t);Ji(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new to(r,this._parents,e,n)}function $a(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Q(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var eo=0;function to(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function no(){return++eo}var ro=tr.prototype;to.prototype={constructor:to,select:Na,selectAll:Pa,selectChild:ro.selectChild,selectChildren:ro.selectChildren,filter:Ea,merge:Da,selection:Ia,transition:Qa,call:ro.call,nodes:ro.nodes,node:ro.node,size:ro.size,empty:ro.empty,each:ro.each,on:Aa,attr:ua,attrTween:ha,style:Ha,styleTween:Ga,text:Ja,textTween:Za,remove:Ma,tween:ta,delay:va,duration:xa,ease:Ca,easeVarying:Ta,end:$a,[Symbol.iterator]:ro[Symbol.iterator]};function io(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var ao={time:null,delay:0,duration:250,ease:io};function oo(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function so(e){var t,n;e instanceof to?(t=e._id,e=e._name):(t=no(),(n=ao).time=ki(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&Ji(c,e,t,l,o,n||oo(c,t));return new to(r,this._parents,e,t)}tr.prototype.interrupt=Qi,tr.prototype.transition=so;var co=e=>()=>e;function lo(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function uo(e,t,n){this.k=e,this.x=t,this.y=n}uo.prototype={constructor:uo,scale:function(e){return e===1?this:new uo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new uo(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var fo=new uo(1,0,0);uo.prototype;function po(e){e.stopImmediatePropagation()}function mo(e){e.preventDefault(),e.stopImmediatePropagation()}function ho(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function go(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function _o(){return this.__zoom||fo}function vo(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function yo(){return navigator.maxTouchPoints||`ontouchstart`in this}function bo(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function xo(){var e=ho,t=go,n=bo,r=vo,i=yo,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=_i,l=U(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,_o).on(`wheel.zoom`,C,{passive:!1}).on(`mousedown.zoom`,w).on(`dblclick.zoom`,T).filter(i).on(`touchstart.zoom`,te).on(`touchmove.zoom`,E).on(`touchend.zoom touchcancel.zoom`,D).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,_o),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(fo.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new uo(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new uo(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new uo(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new ee(e,t)}function ee(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}ee.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=rr(this.that).datum();l.call(e,this.that,new lo(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function C(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=ar(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],Zi(this),s.start();mo(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function w(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=rr(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=ar(t,i),l=t.clientX,u=t.clientY;cr(t.view),po(t),a.mouse=[c,this.__zoom.invert(c)],Zi(this),a.start();function d(e){if(mo(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=ar(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),lr(e.view,a.moved),mo(e),a.event(e).end()}}function T(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=ar(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);mo(r),s>0?rr(this).transition().duration(s).call(x,d,c,r):rr(this).call(_.transform,d,c,r)}}function te(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(po(t),s=0;s<i;++s)c=r[s],l=ar(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),Zi(this),a.start())}}function E(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(mo(e),s=0;s<a;++s)c=i[s],l=ar(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function D(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(po(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=ar(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=rr(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:co(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:co(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:co(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:co([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var So=Symbol(`MiniMapSlots`),Co=[`id`,`x`,`y`,`rx`,`ry`,`width`,`height`,`fill`,`stroke`,`stroke-width`,`shape-rendering`],wo=x({name:`MiniMapNode`,compatConfig:{MODE:3},inheritAttrs:!1,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:[`click`,`dblclick`,`mouseenter`,`mousemove`,`mouseleave`],setup(t,{emit:r}){let i=t,a=s(So),o=l(),c=n(()=>o.style??{});function u(e){r(`click`,e)}function d(e){r(`dblclick`,e)}function f(e){r(`mouseenter`,e)}function m(e){r(`mousemove`,e)}function h(e){r(`mouseleave`,e)}return(t,n)=>!t.hidden&&t.dimensions.width!==0&&t.dimensions.height!==0?(S(),p(C,{key:0},[e(a)[`node-${i.type}`]?(S(),D(O(e(a)[`node-${i.type}`]),te(_({key:0},{...i,...t.$attrs})),null,16)):(S(),p(`rect`,_({key:1,id:t.id},t.$attrs,{class:[`vue-flow__minimap-node`,{selected:t.selected,dragging:t.dragging}],x:t.position.x,y:t.position.y,rx:t.borderRadius,ry:t.borderRadius,width:t.dimensions.width,height:t.dimensions.height,fill:t.color||c.value.background||c.value.backgroundColor,stroke:t.strokeColor,"stroke-width":t.strokeWidth,"shape-rendering":t.shapeRendering,onClick:u,onDblclick:d,onMouseenter:f,onMousemove:m,onMouseleave:h}),null,16,Co))],64)):A(``,!0)}}),To=[`width`,`height`,`viewBox`,`aria-labelledby`],Eo=[`id`],Do=[`d`,`fill`,`stroke`,`stroke-width`],Oo=x({name:`MiniMap`,compatConfig:{MODE:3},props:{nodeColor:{type:[String,Function],default:`#e2e2e2`},nodeStrokeColor:{type:[String,Function],default:`transparent`},nodeClassName:{type:[String,Function]},nodeBorderRadius:{default:5},nodeStrokeWidth:{default:2},maskColor:{default:`rgb(240, 240, 240, 0.6)`},maskStrokeColor:{default:`none`},maskStrokeWidth:{default:1},position:{default:`bottom-right`},pannable:{type:Boolean,default:!1},zoomable:{type:Boolean,default:!1},width:{},height:{},ariaLabel:{default:`Vue Flow mini map`},inversePan:{type:Boolean,default:!1},zoomStep:{default:1},offsetScale:{default:5},maskBorderRadius:{default:0}},emits:[`click`,`nodeClick`,`nodeDblclick`,`nodeMouseenter`,`nodeMousemove`,`nodeMouseleave`],setup(r,{emit:i}){let a=c(),o=l(),{id:s,edges:d,viewport:h,translateExtent:_,dimensions:v,emits:x,d3Selection:te,d3Zoom:E,getNodesInitialized:O}=Pe(),k=t();b(So,a);let j=n(()=>r.width??o.style?.width??200),ne=n(()=>r.height??o.style?.height??150),re=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`,ie=y(()=>typeof r.nodeColor==`string`?()=>r.nodeColor:r.nodeColor),ae=y(()=>typeof r.nodeStrokeColor==`string`?()=>r.nodeStrokeColor:r.nodeStrokeColor),oe=y(()=>typeof r.nodeClassName==`string`?()=>r.nodeClassName:typeof r.nodeClassName==`function`?r.nodeClassName:()=>``),se=y(()=>Fe(O.value.filter(e=>!e.hidden))),ce=y(()=>({x:-h.value.x/h.value.zoom,y:-h.value.y/h.value.zoom,width:v.value.width/h.value.zoom,height:v.value.height/h.value.zoom})),M=y(()=>O.value&&O.value.length?Oe(se.value,ce.value):ce.value),N=y(()=>{let e=M.value.width/j.value,t=M.value.height/ne.value;return Math.max(e,t)}),P=y(()=>{let e=N.value*j.value,t=N.value*ne.value,n=r.offsetScale*N.value;return{offset:n,x:M.value.x-(e-M.value.width)/2-n,y:M.value.y-(t-M.value.height)/2-n,width:e+n*2,height:t+n*2}}),le=y(()=>!P.value.x||!P.value.y?``:`
2
2
  M${P.value.x-P.value.offset},${P.value.y-P.value.offset}
3
3
  h${P.value.width+P.value.offset*2}
4
4
  v${P.value.height+P.value.offset*2}
@@ -1 +1 @@
1
- import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{k as n,mt as r,v as i}from"./runtime-core.esm-bundler-DujKY9QV.js";import{P as a,mt as o}from"./src--GO-VSJ0.js";import{n as s}from"./cloud-client-0zD_NI6q.js";import{t as c}from"./src-DBipSD56.js";import{t as l}from"./useProjectCloudOrg-BnlKts7x.js";var u=n({__name:`SendToChatDialog`,setup(n,{expose:u}){let{t:d}=o(),f=a(),{orgId:p,cloudUser:m}=l(),h=t(null);function g(e,t){return t?d(`sendToChat.${e}`,t):d(`sendToChat.${e}`)}function _(){f.add({severity:`success`,summary:d(`sendToChat.sent`),life:2500})}function v(e){p.value&&h.value?.open(e)}return u({open:v}),(t,n)=>(r(),i(e(c),{ref_key:`dialogRef`,ref:h,client:e(s),t:g,"current-user-id":e(m)?.id,"org-id":e(p),"lock-organization":``,onSent:_},null,8,[`client`,`current-user-id`,`org-id`]))}});export{u as t};
1
+ import{B as e,C as t}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{k as n,mt as r,v as i}from"./runtime-core.esm-bundler-DujKY9QV.js";import{P as a,mt as o}from"./src--GO-VSJ0.js";import{n as s}from"./cloud-client-D_zCiW0s.js";import{t as c}from"./src-C-D_y7ou.js";import{t as l}from"./useProjectCloudOrg-CEN9-_OA.js";var u=n({__name:`SendToChatDialog`,setup(n,{expose:u}){let{t:d}=o(),f=a(),{orgId:p,cloudUser:m}=l(),h=t(null);function g(e,t){return t?d(`sendToChat.${e}`,t):d(`sendToChat.${e}`)}function _(){f.add({severity:`success`,summary:d(`sendToChat.sent`),life:2500})}function v(e){p.value&&h.value?.open(e)}return u({open:v}),(t,n)=>(r(),i(e(c),{ref_key:`dialogRef`,ref:h,client:e(s),t:g,"current-user-id":e(m)?.id,"org-id":e(p),"lock-organization":``,onSent:_},null,8,[`client`,`current-user-id`,`org-id`]))}});export{u as t};
@@ -1 +1 @@
1
- import{B as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{D as t,_ as n,b as r,g as i,k as a,mt as o}from"./runtime-core.esm-bundler-DujKY9QV.js";import{U as s,ft as c,mt as l}from"./src--GO-VSJ0.js";import{t as u}from"./agent.store-Co44dMZf.js";import{r as d,t as f}from"./process-BWkHpZOM.js";import{t as p}from"./ProcessControls-DY0HTKde.js";var m={class:`service-controls-bar`},h={class:`service-controls-bar__left`},g={class:`service-controls-bar__right`},_=c(a({__name:`ServiceControlsBar`,props:{service:{},processes:{}},setup(a){let c=a,_=i(()=>f(c.processes)),v=i(()=>_.value?_.value.state:`stopped`),{t:y}=l(),b=u(),x=i(()=>{let e=d(c.service);return e?b.getById(e)?.config.name??e:null}),S=i(()=>{switch(v.value){case`running`:return`success`;case`starting`:return`warn`;case`errored`:return`danger`;default:return`secondary`}});return(i,c)=>(o(),r(`div`,m,[n(`div`,h,[t(e(s),{value:v.value,severity:S.value,class:`service-controls-bar__tag`},null,8,[`value`,`severity`]),t(e(s),{value:x.value??e(y)(`serviceHeader.noAgent`),severity:x.value?`secondary`:`warn`,icon:`ti ti-server`,class:`service-controls-bar__tag`},null,8,[`value`,`severity`])]),n(`div`,g,[t(p,{"agent-id":e(d)(a.service,_.value)??``,"process-id":_.value?.id??a.service.id,state:_.value?.state??`stopped`},null,8,[`agent-id`,`process-id`,`state`])])]))}}),[[`__scopeId`,`data-v-16d68026`]]);export{_ as t};
1
+ import{B as e}from"./reactivity.esm-bundler-BQ9SB2vv.js";import{D as t,_ as n,b as r,g as i,k as a,mt as o}from"./runtime-core.esm-bundler-DujKY9QV.js";import{U as s,ft as c,mt as l}from"./src--GO-VSJ0.js";import{t as u}from"./agent.store-CKLAkF9a.js";import{r as d,t as f}from"./process-BWkHpZOM.js";import{t as p}from"./ProcessControls-BEeoNlNV.js";var m={class:`service-controls-bar`},h={class:`service-controls-bar__left`},g={class:`service-controls-bar__right`},_=c(a({__name:`ServiceControlsBar`,props:{service:{},processes:{}},setup(a){let c=a,_=i(()=>f(c.processes)),v=i(()=>_.value?_.value.state:`stopped`),{t:y}=l(),b=u(),x=i(()=>{let e=d(c.service);return e?b.getById(e)?.config.name??e:null}),S=i(()=>{switch(v.value){case`running`:return`success`;case`starting`:return`warn`;case`errored`:return`danger`;default:return`secondary`}});return(i,c)=>(o(),r(`div`,m,[n(`div`,h,[t(e(s),{value:v.value,severity:S.value,class:`service-controls-bar__tag`},null,8,[`value`,`severity`]),t(e(s),{value:x.value??e(y)(`serviceHeader.noAgent`),severity:x.value?`secondary`:`warn`,icon:`ti ti-server`,class:`service-controls-bar__tag`},null,8,[`value`,`severity`])]),n(`div`,g,[t(p,{"agent-id":e(d)(a.service,_.value)??``,"process-id":_.value?.id??a.service.id,state:_.value?.state??`stopped`},null,8,[`agent-id`,`process-id`,`state`])])]))}}),[[`__scopeId`,`data-v-16d68026`]]);export{_ as t};