@runeya/runeya 2.0.112 → 2.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/assets/AgentScalarChatInterface.vue-KL1b2GDm.js +13 -0
- package/web/assets/AgentTerminalPage-DubTDN3-.js +1 -0
- package/web/assets/AiChatPage-Df1JNWxr.js +1 -0
- package/web/assets/AppLayout--ZEfeH5K.js +1 -0
- package/web/assets/AppLayout-kIdcdJ2n.css +1 -0
- package/web/assets/AuditPage-DZLY64zx.js +1 -0
- package/web/assets/CloudAccountPage-BpfFidgM.js +1 -0
- package/web/assets/CloudAccountPage-CCk0FKF8.js +1 -0
- package/web/assets/CloudMessagingPage-DbnjE6pg.js +2 -0
- package/web/assets/DashboardPage-CPgdr3U-.js +164 -0
- package/web/assets/DirectoryPickerDialog-BtX228xy.js +1 -0
- package/web/assets/{EditorIcon-1DXtvm7m.js → EditorIcon-RLOjIqbo.js} +2 -2
- package/web/assets/EnvironmentForm-Cwi5EARv.js +108 -0
- package/web/assets/EnvironmentFormPage-CMK0lTUK.js +1 -0
- package/web/assets/EnvironmentListPage-CY76bL-Y.js +1 -0
- package/web/assets/KanbanBoardPage-DtVoDQR4.js +4 -0
- package/web/assets/KanbanListPage-Cp_XsnaI.js +1 -0
- package/web/assets/LaunchProjectPage-BDcx3UWP.js +1 -0
- package/web/assets/LaunchServicesPage-BHfVXHts.js +1 -0
- package/web/assets/LogViewer-CC8Rnu8H.js +3 -0
- package/web/assets/OrgKeyPrompt-BpeV56y2.js +1 -0
- package/web/assets/{ProcessControls-DLPytGR-.js → ProcessControls-BR7DB2V1.js} +1 -1
- package/web/assets/ProcessDetailPage-CqKOMDor.js +1 -0
- package/web/assets/{ProcessMetrics-CfU-_0xI.js → ProcessMetrics-hLgUsuYP.js} +2 -2
- package/web/assets/RandomJobTestPage-Dxeo-YM8.js +2 -0
- package/web/assets/ScenarioEditorPage-Ct0Hot5L.js +14 -0
- package/web/assets/SendToChatDialog-BFMK2Ylc.js +1 -0
- package/web/assets/ServiceControlsBar-BrB5-hwX.js +1 -0
- package/web/assets/ServiceDetailPage-CvzKj0y5.js +2 -0
- package/web/assets/ServiceFormPage-BQ9egUsd.js +1 -0
- package/web/assets/SettingsPage-BkDnemDo.js +2063 -0
- package/web/assets/UnlockPage-CfC9KlpU.js +1 -0
- package/web/assets/VaultMigrationPage--yZMLWJE.js +1 -0
- package/web/assets/VersionBadge-BwEG46HR.js +1 -0
- package/web/assets/WikiPage-BIdskAWp.js +1 -0
- package/web/assets/WikiView-BxEI8-0-.js +1 -0
- package/web/assets/add-scalar-classes-cHsZv3GE.js +387 -0
- package/web/assets/autocomplete-B25vU3CM.js +308 -0
- package/web/assets/{basic-shape-diamond.svg-PBuzhzyL.js → basic-shape-diamond.svg-BUMCcN0D.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-vZ1_C97b.js → basic-shape-hexagon.svg-BmAnv1Zn.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-DBK0STQa.js → basic-shape-primary-circle-ellipse-round.svg-CF2Cg5AY.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-DjCfpmjR.js → basic-shape-primary-square-rectangle.svg-rdMfkqQB.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-DmaAGacc.js → basic-shape-shield.svg-CoSrJaBH.js} +1 -1
- package/web/assets/{browser-6whmj0DA.js → browser-BoyoXZWS.js} +1 -1
- package/web/assets/{browser-8fowKj4x.js → browser-DbK6HdIJ.js} +1 -1
- package/web/assets/card-DWrsZeyX.js +32 -0
- package/web/assets/{checkbox-CW4_BCzd.js → checkbox-cWhIZvRq.js} +3 -3
- package/web/assets/{chip-BMIkgaOI.js → chip-BCDh4zSF.js} +2 -2
- package/web/assets/client-CoJfWFgW.js +24 -0
- package/web/assets/cloud-chat.store-D3IBLjfr.js +1 -0
- package/web/assets/cloud-client-1ktrZbIZ.js +1 -0
- package/web/assets/{cloud-session-BxDy2HVL.js → cloud-session-CshGFFZq.js} +2 -2
- package/web/assets/cloud-session-xsmHULd2.js +1 -0
- package/web/assets/column-CUcKvWQ-.js +907 -0
- package/web/assets/{computer-device-desktop-monitor.svg-Blwr-wR-.js → computer-device-desktop-monitor.svg-D3Nf3GcY.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-CvNohuFO.js → computer-device-desktop.svg-BQCxMSv9.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-g2PmPGkD.js → computer-device-laptop.svg-dEMc6BOr.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-C9pSbl_O.js → computer-device-mobile-phone-android-samsung-back.svg-B2oauuK7.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-BNHefVHU.js → computer-device-mobile-phone-android-samsung.svg-DbvTvgW3.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-Dg8ATtJA.js → computer-device-mobile-phone-iphone-x-back.svg-BffVzG1Z.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-Du3FKSEj.js → computer-device-mobile-phone-iphone-x.svg-DaKjCh5i.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-H6GqpM1S.js → computer-device-mobile-tablet-touch.svg-D6enlKZz.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-rsu8KKri.js → computer-device-mobile-tablet.svg-DczqjS80.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-DzIHXUbc.js → computer-device-network-ethernet-cat6.svg-DlENyx_k.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-BcRl-DsB.js → computer-device-network-lan-www.svg-yNt-aX4h.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-BQfc3Yv3.js → computer-device-network-wifi-connection.svg-BF4mr605.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-DATh-sJZ.js → computer-device-network-wifi-router.svg-DRoqUaxt.js} +1 -1
- package/web/assets/{cssMode-DYq4p3pS.js → cssMode-C3skDop0.js} +1 -1
- package/web/assets/{divider-BqkvJcrT.js → divider-BNfKWMBt.js} +2 -2
- package/web/assets/{docx-preview-rILu4Ooo.js → docx-preview-BcKna2tp.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-BfLpsLp3.js → ecology-science-erlenmeyer-flask.svg-DzIlVRs4.js} +1 -1
- package/web/assets/{fieldset-BKU3xCS_.js → fieldset-BuBMzF7s.js} +2 -2
- package/web/assets/{freemarker2-f8qPtCZo.js → freemarker2-8KoXWZV4.js} +1 -1
- package/web/assets/{handlebars-PLC0YnCq.js → handlebars-Di1mMCka.js} +1 -1
- package/web/assets/{html-R1rJfKYz.js → html-_oD0gCXS.js} +1 -1
- package/web/assets/{htmlMode-CXUNeFnh.js → htmlMode-oO0BRqxZ.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-CMRw7fl0.js → image-flash-lightning.svg-C5G7CIjI.js} +1 -1
- package/web/assets/{image-picture-flower.svg-OZf43WPd.js → image-picture-flower.svg-BlSjH6n2.js} +1 -1
- package/web/assets/{index-C3STxTyh.js → index-Bb59Dhi7.js} +293 -293
- package/web/assets/index-DnKWcxcI.css +1 -0
- package/web/assets/{interface-alert-exclamation-diamond.svg-C9vsWz3u.js → interface-alert-exclamation-diamond.svg-CSuNI4Up.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-jLeG-Qaw.js → interface-alert-exclamation-triangle-warning.svg-BS-GmL7u.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-1xEbdvYS.js → interface-alert-information-circle.svg-lxDiR_kN.js} +1 -1
- package/web/assets/{interface-award-crown.svg-bM-an9km.js → interface-award-crown.svg-Bg3g-gp9.js} +1 -1
- package/web/assets/{interface-bookmark.svg-4kmGsjaB.js → interface-bookmark-tag.svg-CJhcnt4y.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-BQQR5Fec.js → interface-bookmark.svg-DjFjxPmF.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-CLrDHXXm.js → interface-calendar-date-one.svg-BxlfBDAQ.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-h7WfByRE.js → interface-content-book-open-pages.svg-DRFINaMA.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-Bx91re2q.js → interface-content-book-page.svg-BvTE7WKM.js} +1 -1
- package/web/assets/{interface-content-file.svg-CQjUUrgh.js → interface-content-file.svg-nUkQbRVq.js} +1 -1
- package/web/assets/interface-content-folder.svg-Ceg2HWM6.js +1 -0
- package/web/assets/{interface-content-folder.svg-B9cFyNvV.js → interface-content-folder.svg-Dk0gmwET.js} +1 -1
- package/web/assets/{interface-copy-clipboard.svg-B3S8Vfxo.js → interface-copy-clipboard.svg-w8BtIe-u.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-CQZVxhlC.js → interface-edit-attachment.svg-DgMGWEa8.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-DfC2Pahm.js → interface-edit-binocular.svg-DN6G5CSY.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-Bfhqp5lu.js → interface-edit-magic-wand.svg-C1n98Lqv.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-0FDuGPfN.js → interface-edit-tool-paint-roller.svg-1LYXizgp.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-D7KkgfzG.js → interface-edit-tool-pencil.svg-BRO1_1Q-.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-C3RAkfuB.js → interface-favorite-award.svg-K3RoRC9Z.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-Bj2vRHQv.js → interface-favorite-flag.svg-eOXzJzTe.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CXq0lOy-.js → interface-favorite-heart.svg-DKmWOfFT.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-Baf01IBk.js → interface-favorite-star.svg-B4ZMi-k_.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-8_eGhT6F.js → interface-favorite-stars-sparkles.svg-Ccy5ljOs.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-DVGI2yW7.js → interface-hierarchy-flowchart.svg-Bds4M5Kf.js} +1 -1
- package/web/assets/{interface-home-house.svg-DZl5Evdt.js → interface-home-house.svg-aj5qQvoL.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-CEBnVwRT.js → interface-hyperlink.svg-BWH__vGU.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-CUQwWui5.js → interface-lighting-brightness.svg-SIIaOEUo.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-pZ-LeNa4.js → interface-lock-closed.svg-DPmezgF_.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BliMiE5K.js → interface-lock-open-unlock.svg-nZAvhfDP.js} +1 -1
- package/web/assets/{interface-login-key.svg-DKsHsETI.js → interface-login-key.svg-DNzo1Ns4.js} +1 -1
- package/web/assets/{interface-search.svg-FcK6AapL.js → interface-search.svg-BNwuY49S.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-06g-WCkx.js → interface-setting-cog.svg-CkWrZG44.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-Bqh6bbEA.js → interface-share-megaphone-bullhorn.svg-CQbFb4I6.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-BQJZCYRF.js → interface-share-rocket.svg-B3qkIino.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-Em_VWjzx.js → interface-share-satellite.svg-D1XVQrMX.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-Bu_QD7lg.js → interface-share-space-ship.svg-CG0wysjx.js} +1 -1
- package/web/assets/{interface-share.svg-CndhTESN.js → interface-share.svg-fGDZRZpK.js} +1 -1
- package/web/assets/{interface-signal-square.svg-DVpXZefh.js → interface-signal-square.svg-728gMSFK.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-PW_7DCaT.js → interface-time-clock-circle.svg-FIPylr8W.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-CRo5gAN6.js → interface-time-hour-glass.svg-kzYL54EY.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-DPWNkDAF.js → interface-users-multiple.svg-CQBUiGvK.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-BOImwH8c.js → interface-weather-moon.svg-ATClcUHD.js} +1 -1
- package/web/assets/{javascript-BUF7UEGr.js → javascript-BqC30lYi.js} +1 -1
- package/web/assets/{jsonMode-t_hVvnT9.js → jsonMode-C_1z-3bo.js} +2 -2
- package/web/assets/{liquid-DPtzG1Ex.js → liquid-CcIJLQp6.js} +1 -1
- package/web/assets/{lspLanguageFeatures-CnYwfMpR.js → lspLanguageFeatures-Dkkq6B5B.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-BwQ712nx.js → mail-chat-bubble-square.svg-DPS_WcTb.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-DVT1Rr05.js → mail-send-email-paper-airplane.svg-DecU3TSM.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-DMPF4nfU.js → mail-send-envelope.svg-B0WUbrJn.js} +1 -1
- package/web/assets/{mdx-Ev7Vt2Et.js → mdx-B6rZ9uHL.js} +1 -1
- package/web/assets/{minus-8Syk4U9f.js → minus-DeqQKZj2.js} +2 -2
- package/web/assets/modal-Dusr9NrR.js +5 -0
- package/web/assets/modal-HmXW4Uc-.js +1 -0
- package/web/assets/{money-cashier-receipt.svg-BGkNgMnT.js → money-cashier-receipt.svg-D_YgywQm.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-BFWldbXb.js → money-currency-dollar-pay.svg-Cn6r6wOa.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-BtmZdQqW.js → money-graph-arrow-increase.svg-CJNTNw-n.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-13UVcDRv.js → money-graph-bar-chart-increase.svg-CppRtHGi.js} +1 -1
- package/web/assets/multiselect-CnW-FejM.js +251 -0
- package/web/assets/{nature-ecology-leaf.svg-BUxD5cvD.js → nature-ecology-leaf.svg-CQ0MN2L3.js} +1 -1
- package/web/assets/{password-Bi0MGGHq.js → password-CAxjRWlv.js} +4 -4
- package/web/assets/{phone-telephone.svg-v8iEsFKp.js → phone-telephone.svg-B1B58EPX.js} +1 -1
- package/web/assets/{plus-DpOiBJot.js → plus-BbJtYZcc.js} +6 -6
- package/web/assets/process.store-QaoIwjwH.js +1 -0
- package/web/assets/{programming-bug.svg-DWbQAqkb.js → programming-bug.svg-BEWm8EI_.js} +1 -1
- package/web/assets/{programming-cloud.svg-DEJb3BXH.js → programming-cloud.svg-CdySvaW9.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-DrRhowmH.js → programming-computer-database-server.svg-CWEUaz7j.js} +1 -1
- package/web/assets/{programming-computer-database.svg-BENj2ccz.js → programming-computer-database.svg-CfKj2TgZ.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-DxlxVrHQ.js → programming-module-four-layout.svg-C76Rw3Ex.js} +1 -1
- package/web/assets/{programming-module-three.svg-DUcbV5fK.js → programming-module-three.svg-CcHnlghQ.js} +1 -1
- package/web/assets/{programming-module.svg-CuE3_TQx.js → programming-module.svg-ZvGCRQcI.js} +1 -1
- package/web/assets/{programming-script-code.svg-D2D4dNgL.js → programming-script-code.svg-Cn120r4b.js} +1 -1
- package/web/assets/project-launch.store-7hF99jG1.js +1 -0
- package/web/assets/project.store-BrqNEqwE.js +1 -0
- package/web/assets/{python-Dmf5gldj.js → python-DW1zllmK.js} +1 -1
- package/web/assets/{razor-DbV6-aad.js → razor-BZpBWSzp.js} +1 -1
- package/web/assets/router-CD789Ucf.js +1 -0
- package/web/assets/settings-scope-CaZf4U98.js +1 -0
- package/web/assets/{settings.store-CC3xIkfJ.js → settings.store-CpWWaJPT.js} +1 -1
- package/web/assets/{shopping-cart.svg-CiQsy6Nw.js → shopping-cart.svg-Dw4bDHk1.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-CnpMOWNF.js → shopping-gift-present.svg-D2vpkgp3.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-CCthnGYX.js → shopping-shipping-box-parcel-package.svg-ZBGm8HDh.js} +1 -1
- package/web/assets/{src-HVRU8Mgy.js → src-BPpAUSsR.js} +25 -25
- package/web/assets/src-Bztv-8u_.js +1 -0
- package/web/assets/src-Dq-jXQXa.js +572 -0
- package/web/assets/{tabpanel-DjCbPciG.js → tabpanel-BK5mk4wY.js} +3 -3
- package/web/assets/{tag-new-circle.svg-D4Q5d0v7.js → tag-new-circle.svg-DZvtaqP7.js} +1 -1
- package/web/assets/theme-DAC0A2ah.js +1 -0
- package/web/assets/{toggleswitch-CAzbBCEx.js → toggleswitch-DV2NI7sP.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-CqNRoHbM.js → travel-map-earth-globe.svg-DGAqIUIb.js} +1 -1
- package/web/assets/trpc-C8aEpqHN.js +1 -0
- package/web/assets/{tsMode-CsSAagiw.js → tsMode-BG0XT-Oz.js} +5 -5
- package/web/assets/{typescript-DKgCTT5e.js → typescript-U9wvdaB0.js} +1 -1
- package/web/assets/useAiChatDrawer-DnBcJs6b.js +1 -0
- package/web/assets/{useCloudOrg-Cf4fKph_.js → useCloudOrg-BGJUSqH6.js} +1 -1
- package/web/assets/useEnvVarAutocomplete-YTyAq2GI.js +1 -0
- package/web/assets/{useProjectCatalog-KNHOI1Dj.js → useProjectCatalog-ieXa-NY9.js} +1 -1
- package/web/assets/useProjectCloudOrg-BZ6GS8YW.js +1 -0
- package/web/assets/useServiceUrlHost-C8K_BFms.js +1 -0
- package/web/assets/{xml-CRDnGqGZ.js → xml-JveuDgU5.js} +1 -1
- package/web/assets/{yaml-BjVvTIlo.js → yaml-BNmzGPG1.js} +1 -1
- package/web/index.html +2 -2
- package/web/assets/AgentScalarChatInterface.vue-D8L1qMnP.js +0 -13
- package/web/assets/AgentTerminalPage-Chx1ZkXf.js +0 -1
- package/web/assets/AiChatPage-DeymBNnY.js +0 -1
- package/web/assets/AppLayout-BEOMwU1S.css +0 -1
- package/web/assets/AppLayout-KMbnHSdu.js +0 -1
- package/web/assets/AuditPage-DqaUtbcO.js +0 -1
- package/web/assets/CloudAccountPage-B8h1HsJl.js +0 -1
- package/web/assets/CloudAccountPage-Cu1n85_c.js +0 -1
- package/web/assets/CloudMessagingPage-C_zZtU8E.js +0 -2
- package/web/assets/DashboardPage-CjsKPyXD.js +0 -164
- package/web/assets/DirectoryPickerDialog-5MiJKRfc.js +0 -1
- package/web/assets/EnvironmentForm-BqGZTdZC.js +0 -108
- package/web/assets/EnvironmentFormPage-C9aJJ8E8.js +0 -1
- package/web/assets/EnvironmentListPage-B7HsZarb.js +0 -1
- package/web/assets/KanbanBoardPage-dqGMbjuh.js +0 -4
- package/web/assets/KanbanListPage-DXViCKTY.js +0 -1
- package/web/assets/LaunchProjectPage-MiZFB_0o.js +0 -1
- package/web/assets/LaunchServicesPage-C4rfh_1M.js +0 -1
- package/web/assets/LogViewer-OrRd9GPK.js +0 -3
- package/web/assets/OrgKeyPrompt-D8k2POKf.js +0 -1
- package/web/assets/ProcessDetailPage-YhRNgz9n.js +0 -1
- package/web/assets/RandomJobTestPage-BPao_uWM.js +0 -2
- package/web/assets/ScenarioEditorPage-DUt-fyHh.js +0 -14
- package/web/assets/SendToChatDialog-CZnQkSjV.js +0 -1
- package/web/assets/ServiceControlsBar-FEKaTZpW.js +0 -1
- package/web/assets/ServiceDetailPage-BMBGAlT9.js +0 -2
- package/web/assets/ServiceFormPage-B8-esDJb.js +0 -1
- package/web/assets/SettingsPage-Bu55iA-H.js +0 -2063
- package/web/assets/UnlockPage-DzHUFN5D.js +0 -1
- package/web/assets/VaultMigrationPage-DUwdS4R3.js +0 -1
- package/web/assets/VersionBadge-BamuXGJG.js +0 -1
- package/web/assets/WikiPage-DttQz6SM.js +0 -1
- package/web/assets/WikiView-HxKC_z_B.js +0 -1
- package/web/assets/add-scalar-classes-BBQceaWE.js +0 -387
- package/web/assets/autocomplete-DDdg8uWF.js +0 -308
- package/web/assets/card-0RUbyEjT.js +0 -32
- package/web/assets/client-Zv2B0OOp.js +0 -24
- package/web/assets/cloud-chat.store-cvRkhAwy.js +0 -1
- package/web/assets/cloud-client-2mgUtdk1.js +0 -1
- package/web/assets/cloud-session-AV6nVTtY.js +0 -1
- package/web/assets/column-DSDLyaDN.js +0 -907
- package/web/assets/index-DWNL2YPM.css +0 -1
- package/web/assets/interface-content-folder.svg-BPvWC3z_.js +0 -1
- package/web/assets/modal-Bb8LwFay.js +0 -1
- package/web/assets/modal-DdsQR8Ed.js +0 -5
- package/web/assets/multiselect-BHq9_nBK.js +0 -251
- package/web/assets/process.store-D7wKTQ9s.js +0 -1
- package/web/assets/project-launch.store-zLYsFPXJ.js +0 -1
- package/web/assets/project.store-DhFTJJYC.js +0 -1
- package/web/assets/router-CDzXhK1o.js +0 -1
- package/web/assets/settings-scope-BuHu9I1x.js +0 -1
- package/web/assets/src-CwD_enr9.js +0 -572
- package/web/assets/src-D2pHP5dY.js +0 -1
- package/web/assets/theme-hW8ih2oq.js +0 -1
- package/web/assets/trpc-CtAGDdPR.js +0 -1
- package/web/assets/useAiChatDrawer-CV6qDJ2t.js +0 -1
- package/web/assets/useEnvVarAutocomplete-7Y2oifod.js +0 -1
- package/web/assets/useProjectCloudOrg-DJPAoob6.js +0 -1
- package/web/assets/useServiceUrlHost-D_O6E1-V.js +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{Aa as e,Ai as t,An as n,At as r,B as i,Bi as a,Ci as o,Ei as s,G as c,Gi as l,Gn as u,H as d,Hi as f,J as p,Ja as m,K as h,Li as g,Mi as _,Ni as v,Oa as y,Qa as b,Ri as x,Rt as S,Ta as C,U as ee,Ua as w,Un as T,V as te,Vn as E,Vt as ne,W as re,Xi as ie,Y as ae,Yi as oe,_n as se,_t as ce,aa as le,ba as D,bn as ue,ca as de,dt as O,fa as fe,fi as pe,ha as me,hn as he,ir as ge,ja as k,ji as A,ka as _e,ki as j,la as ve,ln as ye,lr as be,pa as xe,pi as Se,pr as Ce,q as we,qt as Te,ra as Ee,rr as De,sa as M,ua as N,ut as Oe,va as ke,vt as Ae,wa as P,wi as je,xa as Me,z as Ne}from"./index-C3STxTyh.js";import{t as Pe}from"./uuid--pMuF47W.js";import{t as Fe}from"./checkbox-CW4_BCzd.js";import{t as Ie}from"./multiselect-BHq9_nBK.js";var Le={name:`ControlButton`,compatConfig:{MODE:3}},Re=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},F={type:`button`,class:`vue-flow__controls-button`};function I(e,t,n,r,i,a){return M(),v(`button`,F,[N(e.$slots,`default`)])}var ze=Re(Le,[[`render`,I]]),Be={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},Ve=[t(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`},null,-1)];function He(e,t){return M(),v(`svg`,Be,Ve)}var L={render:He},Ue={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},We=[t(`path`,{d:`M0 0h32v4.2H0z`},null,-1)];function Ge(e,t){return M(),v(`svg`,Ue,We)}var Ke={render:Ge},qe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},Je=[t(`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 Ye(e,t){return M(),v(`svg`,qe,Je)}var Xe={render:Ye},Ze={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},Qe=[t(`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 $e(e,t){return M(),v(`svg`,Ze,Qe)}var et={render:$e},R={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},z=[t(`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 B(e,t){return M(),v(`svg`,R,z)}var V={render:B},tt=a({name:`Controls`,compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>te.BottomLeft}},emits:[`zoomIn`,`zoomOut`,`fitView`,`interactionChange`],setup(e,{emit:t}){let{nodesDraggable:n,nodesConnectable:r,elementsSelectable:i,setInteractive:a,zoomIn:o,zoomOut:c,fitView:l,viewport:u,minZoom:f,maxZoom:h}=p(),g=m(()=>n.value||r.value||i.value),y=m(()=>u.value.zoom<=f.value),S=m(()=>u.value.zoom>=h.value);function C(){o(),t(`zoomIn`)}function ee(){c(),t(`zoomOut`)}function w(){l(e.fitViewParams),t(`fitView`)}function T(){a(!g.value),t(`interactionChange`,!g.value)}return(e,t)=>(M(),A(b(d),{class:`vue-flow__controls`,position:e.position},{default:P(()=>[N(e.$slots,`top`),e.showZoom?(M(),v(s,{key:0},[N(e.$slots,`control-zoom-in`,{},()=>[x(ze,{class:`vue-flow__controls-zoomin`,disabled:S.value,onClick:C},{default:P(()=>[N(e.$slots,`icon-zoom-in`,{},()=>[(M(),A(xe(b(L))))])]),_:3},8,[`disabled`])]),N(e.$slots,`control-zoom-out`,{},()=>[x(ze,{class:`vue-flow__controls-zoomout`,disabled:y.value,onClick:ee},{default:P(()=>[N(e.$slots,`icon-zoom-out`,{},()=>[(M(),A(xe(b(Ke))))])]),_:3},8,[`disabled`])])],64)):_(``,!0),e.showFitView?N(e.$slots,`control-fit-view`,{key:1},()=>[x(ze,{class:`vue-flow__controls-fitview`,onClick:w},{default:P(()=>[N(e.$slots,`icon-fit-view`,{},()=>[(M(),A(xe(b(Xe))))])]),_:3})]):_(``,!0),e.showInteractive?N(e.$slots,`control-interactive`,{key:2},()=>[e.showInteractive?(M(),A(ze,{key:0,class:`vue-flow__controls-interactive`,onClick:T},{default:P(()=>[g.value?N(e.$slots,`icon-unlock`,{key:0},()=>[(M(),A(xe(b(V))))]):_(``,!0),g.value?_(``,!0):N(e.$slots,`icon-lock`,{key:1},()=>[(M(),A(xe(b(et))))])]),_:3})):_(``,!0)]):_(``,!0),N(e.$slots,`default`)]),_:3},8,[`position`]))}}),nt={value:()=>{}};function H(){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 rt(n)}function rt(e){this._=e}function it(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}})}rt.prototype=H.prototype={constructor:rt,on:function(e,t){var n=this._,r=it(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=at(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]=ot(n[i],e.name,t);else if(t==null)for(i in n)n[i]=ot(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 rt(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 at(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function ot(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=nt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var st=`http://www.w3.org/1999/xhtml`,ct={svg:`http://www.w3.org/2000/svg`,xhtml:st,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function lt(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),ct.hasOwnProperty(t)?{space:ct[t],local:e}:e}function ut(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===st&&t.documentElement.namespaceURI===st?t.createElement(e):t.createElementNS(n,e)}}function dt(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function ft(e){var t=lt(e);return(t.local?dt:ut)(t)}function pt(){}function mt(e){return e==null?pt:function(){return this.querySelector(e)}}function ht(e){typeof e!=`function`&&(e=mt(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 K(r,this._parents)}function gt(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function _t(){return[]}function vt(e){return e==null?_t:function(){return this.querySelectorAll(e)}}function yt(e){return function(){return gt(e.apply(this,arguments))}}function bt(e){e=typeof e==`function`?yt(e):vt(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 K(r,i)}function xt(e){return function(){return this.matches(e)}}function St(e){return function(t){return t.matches(e)}}var Ct=Array.prototype.find;function wt(e){return function(){return Ct.call(this.children,e)}}function U(){return this.firstElementChild}function Tt(e){return this.select(e==null?U:wt(typeof e==`function`?e:St(e)))}var Et=Array.prototype.filter;function W(){return Array.from(this.children)}function Dt(e){return function(){return Et.call(this.children,e)}}function Ot(e){return this.selectAll(e==null?W:Dt(typeof e==`function`?e:St(e)))}function kt(e){typeof e!=`function`&&(e=xt(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 K(r,this._parents)}function At(e){return Array(e.length)}function jt(){return new K(this._enter||this._groups.map(At),this._parents)}function Mt(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Mt.prototype={constructor:Mt,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 Nt(e){return function(){return e}}function Pt(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 Mt(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function Ft(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 Mt(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function It(e){return e.__data__}function Lt(e,t){if(!arguments.length)return Array.from(this,It);var n=t?Ft:Pt,r=this._parents,i=this._groups;typeof e!=`function`&&(e=Nt(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=Rt(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 K(o,r),o._enter=s,o._exit=c,o}function Rt(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function zt(){return new K(this._exit||this._groups.map(At),this._parents)}function Bt(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 Vt(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 K(s,this._parents)}function G(){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 Ht(e){e||=Ut;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 K(i,this._parents).order()}function Ut(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Wt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Gt(){return Array.from(this)}function Kt(){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 qt(){let e=0;for(let t of this)++e;return e}function Jt(){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=lt(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(){this.textContent=e.apply(this,arguments)??``}}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(){this.innerHTML=e.apply(this,arguments)??``}}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:ft(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:ft(e),r=t==null?In:typeof t==`function`?t:mt(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 K(e,t){this._groups=e,this._parents=t}function tr(){return new K([[document.documentElement]],er)}function nr(){return this}K.prototype=tr.prototype={constructor:K,select:ht,selectAll:bt,selectChild:Tt,selectChildren:Ot,filter:kt,data:Lt,enter:jt,exit:zt,join:Bt,merge:Vt,selection:nr,order:G,sort:Ht,call:Wt,nodes:Gt,node:Kt,size:qt,empty:Jt,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 K([[document.querySelector(e)]],[document.documentElement]):new K([[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*`,q=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,_r=/^#([0-9a-f]{3,8})$/,vr=RegExp(`^rgb\\(${hr},${hr},${hr}\\)$`),yr=RegExp(`^rgb\\(${q},${q},${q}\\)$`),br=RegExp(`^rgba\\(${hr},${hr},${hr},${gr}\\)$`),xr=RegExp(`^rgba\\(${q},${q},${q},${gr}\\)$`),Sr=RegExp(`^hsl\\(${gr},${q},${q}\\)$`),Cr=RegExp(`^hsla\\(${gr},${q},${q},${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 J(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 J(t[1],t[2],t[3],1):(t=yr.exec(e))?new J(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 J(NaN,NaN,NaN,0):null}function Ar(e){return new J(e>>16&255,e>>8&255,e&255,1)}function jr(e,t,n,r){return r<=0&&(e=t=n=NaN),new J(e,t,n,r)}function Mr(e){return e instanceof fr||(e=kr(e)),e?(e=e.rgb(),new J(e.r,e.g,e.b,e.opacity)):new J}function Nr(e,t,n,r){return arguments.length===1?Mr(e):new J(e,t,n,r??1)}function J(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}ur(J,Nr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new J(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new J(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new J(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 Y(e,t,n,r)}function Vr(e){if(e instanceof Y)return new Y(e.h,e.s,e.l,e.opacity);if(e instanceof fr||(e=kr(e)),!e)return new Y;if(e instanceof Y)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 Y(o,s,c,e.opacity)}function Hr(e,t,n,r){return arguments.length===1?Vr(e):new Y(e,t,n,r??1)}function Y(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}ur(Y,Hr,dr(fr,{brighter(e){return e=e==null?mr:mr**+e,new Y(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?pr:pr**+e,new Y(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 J(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 Y(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=H(`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=Z(e,t);if(n.state>Vi)throw Error(`too late; already scheduled`);return n}function X(e,t){var n=Z(e,t);if(n.state>Wi)throw Error(`too late; already running`);return n}function Z(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=X(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=X(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=Z(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=X(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Z(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=lt(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=lt(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)):Z(this.node(),t).delay}function ya(e,t){return function(){X(this,e).duration=+t.apply(this,arguments)}}function ba(e,t){return t=+t,function(){X(this,e).duration=t}}function xa(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ya:ba)(t,e)):Z(this.node(),t).duration}function Sa(e,t){if(typeof t!=`function`)throw Error();return function(){X(this,e).ease=t}}function Ca(e){var t=this._id;return arguments.length?this.each(Sa(t,e)):Z(this.node(),t).ease}function wa(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();X(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=xt(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 Q(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 Q(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:X;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?Z(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=mt(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,Z(u,n)));return new Q(a,this._parents,t,n)}function Pa(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=vt(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=Z(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 Q(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=X(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(){this.textContent=e(this)??``}}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=to(),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=Z(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 Q(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=X(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 Q(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function to(){return++eo}var no=tr.prototype;Q.prototype={constructor:Q,select:Na,selectAll:Pa,selectChild:no.selectChild,selectChildren:no.selectChildren,filter:Ea,merge:Da,selection:Ia,transition:Qa,call:no.call,nodes:no.nodes,node:no.node,size:no.size,empty:no.empty,each:no.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]:no[Symbol.iterator]};function ro(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var io={time:null,delay:0,duration:250,ease:ro};function ao(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function oo(e){var t,n;e instanceof Q?(t=e._id,e=e._name):(t=to(),(n=io).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||ao(c,t));return new Q(r,this._parents,e,t)}tr.prototype.interrupt=Qi,tr.prototype.transition=oo;var so=e=>()=>e;function co(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 lo(e,t,n){this.k=e,this.x=t,this.y=n}lo.prototype={constructor:lo,scale:function(e){return e===1?this:new lo(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new lo(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 uo=new lo(1,0,0);lo.prototype;function fo(e){e.stopImmediatePropagation()}function po(e){e.preventDefault(),e.stopImmediatePropagation()}function mo(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function ho(){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 go(){return this.__zoom||uo}function _o(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function vo(){return navigator.maxTouchPoints||`ontouchstart`in this}function yo(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 bo(){var e=mo,t=ho,n=yo,r=_o,i=vo,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=_i,l=H(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,go).on(`wheel.zoom`,ee,{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`,ne).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`,go),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(uo.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 lo(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 lo(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 lo(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 C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.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 co(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function ee(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();po(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),fo(t),a.mouse=[c,this.__zoom.invert(c)],Zi(this),a.start();function d(e){if(po(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),po(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);po(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(fo(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(po(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 ne(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(fo(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:so(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:so(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:so(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:so([[+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 xo=Symbol(`MiniMapSlots`),So=[`id`,`x`,`y`,`rx`,`ry`,`width`,`height`,`fill`,`stroke`,`stroke-width`,`shape-rendering`],Co=a({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(e,{emit:t}){let n=e,r=l(xo),i=me(),a=m(()=>i.style??{});function o(e){t(`click`,e)}function c(e){t(`dblclick`,e)}function u(e){t(`mouseenter`,e)}function d(e){t(`mousemove`,e)}function f(e){t(`mouseleave`,e)}return(e,t)=>!e.hidden&&e.dimensions.width!==0&&e.dimensions.height!==0?(M(),v(s,{key:0},[b(r)[`node-${n.type}`]?(M(),A(xe(b(r)[`node-${n.type}`]),_e(oe({key:0},{...n,...e.$attrs})),null,16)):(M(),v(`rect`,oe({key:1,id:e.id},e.$attrs,{class:[`vue-flow__minimap-node`,{selected:e.selected,dragging:e.dragging}],x:e.position.x,y:e.position.y,rx:e.borderRadius,ry:e.borderRadius,width:e.dimensions.width,height:e.dimensions.height,fill:e.color||a.value.background||a.value.backgroundColor,stroke:e.strokeColor,"stroke-width":e.strokeWidth,"shape-rendering":e.shapeRendering,onClick:o,onDblclick:c,onMouseenter:u,onMousemove:d,onMouseleave:f}),null,16,So))],64)):_(``,!0)}}),wo=[`width`,`height`,`viewBox`,`aria-labelledby`],To=[`id`],Eo=[`d`,`fill`,`stroke`,`stroke-width`],Do=a({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(n,{emit:r}){let i=ke(),a=me(),{id:o,edges:l,viewport:u,translateExtent:f,dimensions:g,emits:x,d3Selection:S,d3Zoom:C,getNodesInitialized:ee}=p(),T=w();de(xo,i);let te=m(()=>n.width??a.style?.width??200),E=m(()=>n.height??a.style?.height??150),ne=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`,ie=j(()=>typeof n.nodeColor==`string`?()=>n.nodeColor:n.nodeColor),oe=j(()=>typeof n.nodeStrokeColor==`string`?()=>n.nodeStrokeColor:n.nodeStrokeColor),se=j(()=>typeof n.nodeClassName==`string`?()=>n.nodeClassName:typeof n.nodeClassName==`function`?n.nodeClassName:()=>``),ce=j(()=>h(ee.value.filter(e=>!e.hidden))),le=j(()=>({x:-u.value.x/u.value.zoom,y:-u.value.y/u.value.zoom,width:g.value.width/u.value.zoom,height:g.value.height/u.value.zoom})),D=j(()=>ee.value&&ee.value.length?re(ce.value,le.value):le.value),ue=j(()=>{let e=D.value.width/te.value,t=D.value.height/E.value;return Math.max(e,t)}),O=j(()=>{let e=ue.value*te.value,t=ue.value*E.value,r=n.offsetScale*ue.value;return{offset:r,x:D.value.x-(e-D.value.width)/2-r,y:D.value.y-(t-D.value.height)/2-r,width:e+r*2,height:t+r*2}}),fe=j(()=>!O.value.x||!O.value.y?``:`
|
|
2
|
-
M${O.value.x-O.value.offset},${O.value.y-O.value.offset}
|
|
3
|
-
h${O.value.width+O.value.offset*2}
|
|
4
|
-
v${O.value.height+O.value.offset*2}
|
|
5
|
-
h${-O.value.width-O.value.offset*2}z
|
|
6
|
-
M${le.value.x+n.maskBorderRadius},${le.value.y}
|
|
7
|
-
h${le.value.width-2*n.maskBorderRadius}
|
|
8
|
-
a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},${n.maskBorderRadius}
|
|
9
|
-
v${le.value.height-2*n.maskBorderRadius}
|
|
10
|
-
a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 -${n.maskBorderRadius},${n.maskBorderRadius}
|
|
11
|
-
h${-(le.value.width-2*n.maskBorderRadius)}
|
|
12
|
-
a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 -${n.maskBorderRadius},-${n.maskBorderRadius}
|
|
13
|
-
v${-(le.value.height-2*n.maskBorderRadius)}
|
|
14
|
-
a${n.maskBorderRadius},${n.maskBorderRadius} 0 0 1 ${n.maskBorderRadius},-${n.maskBorderRadius}z`);Me(e=>{if(T.value){let t=rr(T.value),r=bo().wheelDelta(e=>ae(e)*(n.zoomStep/10)).on(`zoom`,n.pannable?e=>{if(e.sourceEvent.type!==`mousemove`||!S.value||!C.value)return;let t=ue.value*Math.max(1,u.value.zoom)*(n.inversePan?-1:1),r={x:u.value.x-e.sourceEvent.movementX*t,y:u.value.y-e.sourceEvent.movementY*t},i=[[0,0],[g.value.width,g.value.height]],a=uo.translate(r.x,r.y).scale(u.value.zoom),o=C.value.constrain()(a,i,f.value);C.value.transform(S.value,o)}:()=>{}).on(`zoom.wheel`,n.zoomable?e=>{if(e.sourceEvent.type!==`wheel`||!S.value||!C.value)return;let t=e.sourceEvent.ctrlKey&&we()?10:1,r=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*n.zoomStep,i=u.value.zoom*2**(r*t);C.value.scaleTo(S.value,i)}:()=>{});t.call(r),e(()=>{t.on(`zoom`,null)})}},{flush:`post`});function pe(e){let[t,n]=ar(e);r(`click`,{event:e,position:{x:t,y:n}})}function he(e,t){let n={event:e,node:t,connectedEdges:c([t],l.value)};x.miniMapNodeClick(n),r(`nodeClick`,n)}function ge(e,t){let n={event:e,node:t,connectedEdges:c([t],l.value)};x.miniMapNodeDoubleClick(n),r(`nodeDblclick`,n)}function _e(e,t){let n={event:e,node:t,connectedEdges:c([t],l.value)};x.miniMapNodeMouseEnter(n),r(`nodeMouseenter`,n)}function ye(e,t){let n={event:e,node:t,connectedEdges:c([t],l.value)};x.miniMapNodeMouseMove(n),r(`nodeMousemove`,n)}function be(e,t){let n={event:e,node:t,connectedEdges:c([t],l.value)};x.miniMapNodeMouseLeave(n),r(`nodeMouseleave`,n)}return(n,r)=>(M(),A(b(d),{position:n.position,class:y([`vue-flow__minimap`,{pannable:n.pannable,zoomable:n.zoomable}])},{default:P(()=>[(M(),v(`svg`,{ref_key:`el`,ref:T,width:te.value,height:E.value,viewBox:[O.value.x,O.value.y,O.value.width,O.value.height].join(` `),role:`img`,"aria-labelledby":`vue-flow__minimap-${b(o)}`,onClick:pe},[n.ariaLabel?(M(),v(`title`,{key:0,id:`vue-flow__minimap-${b(o)}`},k(n.ariaLabel),9,To)):_(``,!0),(M(!0),v(s,null,ve(b(ee),t=>(M(),A(Co,{id:t.id,key:t.id,f:``,position:t.computedPosition,dimensions:t.dimensions,selected:t.selected,dragging:t.dragging,style:e(t.style),class:y(se.value(t)),color:ie.value(t),"border-radius":n.nodeBorderRadius,"stroke-color":oe.value(t),"stroke-width":n.nodeStrokeWidth,"shape-rendering":b(ne),type:t.type,hidden:t.hidden,onClick:e=>he(e,t),onDblclick:e=>ge(e,t),onMouseenter:e=>_e(e,t),onMousemove:e=>ye(e,t),onMouseleave:e=>be(e,t)},null,8,[`id`,`position`,`dimensions`,`selected`,`dragging`,`style`,`class`,`color`,`border-radius`,`stroke-color`,`stroke-width`,`shape-rendering`,`type`,`hidden`,`onClick`,`onDblclick`,`onMouseenter`,`onMousemove`,`onMouseleave`]))),128)),t(`path`,{class:`vue-flow__minimap-mask`,d:fe.value,fill:n.maskColor,stroke:n.maskStrokeColor,"stroke-width":n.maskStrokeWidth,"fill-rule":`evenodd`},null,8,Eo)],8,wo))]),_:1},8,[`position`,`class`]))}}),Oo={group:`Group`,node:`Node`,role:`Role`,leader:`Leader`};function ko(e){let{locale:t}=Ce();function n(n){let r=(typeof e==`function`?e():e.value)?.labels?.[n];if(!r)return Oo[n];let i=t.value;return r[i]??r[i.split(`-`)[0]]??Oo[n]}return j(()=>({group:n(`group`),node:n(`node`),role:n(`role`),leader:n(`leader`)}))}var Ao={class:`scenario-node-editor`},jo={class:`form-row`},Mo={class:`form-group`},No={class:`form-label`,for:`scennode-label`},Po={key:0,class:`form-group`},Fo={class:`form-label`,for:`scennode-role`},Io={key:0,class:`role-preview`},Lo={class:`role-preview__label`},Ro={class:`role-preview__text`},zo={class:`form-row`},Bo={class:`form-group`},Vo={class:`form-label`,for:`scennode-group`},Ho={key:0,class:`form-group`},Uo={class:`form-label`,for:`scennode-parent`},Wo={class:`form-row`},Go={class:`form-group`},Ko={class:`form-label`,for:`scennode-aicli`},qo={class:`form-group`},Jo={class:`form-label`,for:`scennode-model`},Yo={key:1,class:`form-note`},Xo={class:`inline-check`},Zo={for:`canAddNode`},Qo={class:`inline-check`},$o={for:`injectParentOutputs`},es={key:0,class:`form-group`},ts={class:`form-label`,for:`scennode-ancestors`},ns={class:`inline-check`},rs={for:`isLeader`},is={class:`form-note`},as={key:2,class:`form-group`},os={class:`form-label`,for:`scennode-question`},ss={key:3,class:`form-group`},cs={class:`form-label`,for:`scennode-prompt`},ls=E(a({__name:`ScenarioNodeEditor`,props:{node:{},groups:{},nodes:{},leaderId:{},preset:{},traversalMode:{}},emits:[`update`,`delete`,`set-leader`],setup(e,{emit:n}){let r=e,{t:i}=Ce(),{claudeCodeAvailable:a,codexAvailable:o}=pe(O()),c=n;function l(e){return e===`codex`?``:`sonnet`}let u=w({...r.node,aiCli:r.node.aiCli??`claude-code`,model:r.node.model??l(r.node.aiCli),injectParentOutputs:r.node.injectParentOutputs??!1,injectedAncestorIds:r.node.injectedAncestorIds??[]});function d(e){return{...e,aiCli:e.aiCli??`claude-code`,model:e.model??l(e.aiCli),injectParentOutputs:e.injectParentOutputs??!1,injectedAncestorIds:e.injectedAncestorIds??[]}}let f=d(r.node);D(()=>r.node,e=>{f=d(e),u.value=d(e)},{deep:!0}),D(u,e=>{let t={};e.label!==f.label&&(t.label=e.label),e.role!==f.role&&(t.role=e.role),e.groupId!==f.groupId&&(t.groupId=e.groupId),JSON.stringify(e.parentIds)!==JSON.stringify(f.parentIds)&&(t.parentIds=e.parentIds),e.prompt!==f.prompt&&(t.prompt=e.prompt),e.question!==f.question&&(t.question=e.question),e.canAddNode!==f.canAddNode&&(t.canAddNode=e.canAddNode),e.aiCli!==f.aiCli&&(t.aiCli=e.aiCli),e.model!==f.model&&(t.model=e.model),e.injectParentOutputs!==f.injectParentOutputs&&(t.injectParentOutputs=e.injectParentOutputs),JSON.stringify(e.injectedAncestorIds)!==JSON.stringify(f.injectedAncestorIds)&&(t.injectedAncestorIds=e.injectedAncestorIds),Object.keys(t).length>0&&c(`update`,t)},{deep:!0});let p=j(()=>r.preset?.roles.length?r.preset.roles.map(e=>({label:e.name,value:e.id})):[]),m=j(()=>[{label:`Claude Code${a.value?``:` — non installé`}`,value:`claude-code`,disabled:!a.value},{label:`Codex (OpenAI)${o.value?``:` — non installé`}`,value:`codex`,disabled:!o.value}]),h=j(()=>u.value.aiCli===`codex`?[]:[{label:i(`scenarioNodeEditor.modelHaiku`),value:`haiku`},{label:i(`scenarioNodeEditor.modelSonnet`),value:`sonnet`},{label:i(`scenarioNodeEditor.modelOpus`),value:`opus`}]);D(()=>u.value.aiCli,(e,t)=>{if(e===t)return;let n={"claude-code":`sonnet`,codex:``};u.value.model=n[e]??`sonnet`});let y=j(()=>r.groups.map(e=>({label:e.name,value:e.id}))),S=j(()=>r.nodes.filter(e=>e.id!==r.node.id).map(e=>({label:e.label||e.id,value:e.id}))),C=j(()=>r.traversalMode===`topological`);D(()=>u.value.parentIds,()=>{let e=new Map(r.nodes.map(e=>[e.id,e])),t=new Set,n=[...u.value.parentIds];for(;n.length>0;){let r=n.shift();if(!t.has(r)){t.add(r);let i=e.get(r);i&&n.push(...i.parentIds)}}u.value.injectedAncestorIds=(u.value.injectedAncestorIds??[]).filter(e=>t.has(e))});let ee=j(()=>{let e=new Map(r.nodes.map(e=>[e.id,e])),t=new Set,n=[...r.node.parentIds??[]];for(;n.length>0;){let r=n.shift();if(!t.has(r)){t.add(r);let i=e.get(r);i&&n.push(...i.parentIds)}}return r.nodes.filter(e=>t.has(e.id)).map(e=>({label:e.label||e.id,value:e.id}))}),T=j(()=>r.node.id===r.leaderId);j(()=>!T.value);let te=j(()=>!T.value),E=ko(()=>r.preset),ne=j(()=>r.preset?.roles.find(e=>e.id===u.value.role));return(e,n)=>(M(),v(`div`,Ao,[t(`div`,jo,[t(`div`,Mo,[t(`label`,No,k(b(i)(`scenarioNodeEditor.label`)),1),x(b(se),{id:`scennode-label`,modelValue:u.value.label,"onUpdate:modelValue":n[0]||=e=>u.value.label=e,class:`w-full`,size:`small`,placeholder:`${b(E).node} name`},null,8,[`modelValue`,`placeholder`])]),p.value.length?(M(),v(`div`,Po,[t(`label`,Fo,k(b(E).role),1),x(b(ye),{"input-id":`scennode-role`,modelValue:u.value.role,"onUpdate:modelValue":n[1]||=e=>u.value.role=e,options:p.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`])])):_(``,!0)]),ne.value?.systemPrompt?(M(),v(`div`,Io,[t(`span`,Lo,k(b(i)(`scenarioNodeEditor.systemPrompt`)),1),t(`p`,Ro,k(ne.value.systemPrompt),1)])):_(``,!0),t(`div`,zo,[t(`div`,Bo,[t(`label`,Vo,k(b(E).group),1),x(b(ye),{"input-id":`scennode-group`,modelValue:u.value.groupId,"onUpdate:modelValue":n[2]||=e=>u.value.groupId=e,options:y.value,"option-label":`label`,"option-value":`value`,placeholder:`Select a ${b(E).group.toLowerCase()}`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])]),te.value?(M(),v(`div`,Ho,[t(`label`,Uo,k(b(i)(`scenarioNodeEditor.reportsTo`)),1),x(b(ye),{"input-id":`scennode-parent`,"model-value":u.value.parentIds[0]??null,options:S.value,"option-label":`label`,"option-value":`value`,placeholder:b(i)(`scenarioNodeEditor.noParent`),"show-clear":!0,class:`w-full`,size:`small`,"onUpdate:modelValue":n[3]||=e=>{u.value.parentIds=e?[e,...u.value.parentIds.slice(1)]:u.value.parentIds.slice(1)}},null,8,[`model-value`,`options`,`placeholder`])])):_(``,!0)]),u.value.type===`ask`?_(``,!0):(M(),v(s,{key:1},[t(`div`,Wo,[t(`div`,Go,[t(`label`,Ko,k(b(i)(`scenarioNodeEditor.aiRunner`)),1),x(b(ye),{"input-id":`scennode-aicli`,modelValue:u.value.aiCli,"onUpdate:modelValue":n[4]||=e=>u.value.aiCli=e,options:m.value,"option-label":`label`,"option-value":`value`,"option-disabled":`disabled`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`])]),t(`div`,qo,[t(`label`,Jo,k(b(i)(`scenarioNodeEditor.model`)),1),u.value.aiCli===`codex`?(M(),v(`small`,Yo,k(b(i)(`scenarioNodeEditor.modelAuto`)),1)):(M(),A(b(ye),{key:0,"input-id":`scennode-model`,modelValue:u.value.model,"onUpdate:modelValue":n[5]||=e=>u.value.model=e,options:h.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`]))])]),t(`div`,Xo,[x(b(Fe),{modelValue:u.value.canAddNode,"onUpdate:modelValue":n[6]||=e=>u.value.canAddNode=e,binary:``,"input-id":`canAddNode`},null,8,[`modelValue`]),t(`label`,Zo,k(b(i)(`scenarioNodeEditor.canSpawnNodes`)),1)]),C.value&&!T.value?(M(),v(s,{key:0},[t(`div`,Qo,[x(b(Fe),{modelValue:u.value.injectParentOutputs,"onUpdate:modelValue":n[7]||=e=>u.value.injectParentOutputs=e,binary:``,"input-id":`injectParentOutputs`},null,8,[`modelValue`]),t(`label`,$o,k(b(i)(`scenarioNodeEditor.injectParentOutputs`)),1)]),ee.value.length>0?(M(),v(`div`,es,[t(`label`,ts,k(b(i)(`scenarioNodeEditor.injectedAncestorIds`)),1),x(b(Ie),{"input-id":`scennode-ancestors`,modelValue:u.value.injectedAncestorIds,"onUpdate:modelValue":n[8]||=e=>u.value.injectedAncestorIds=e,options:ee.value,"option-label":`label`,"option-value":`value`,placeholder:b(i)(`scenarioNodeEditor.injectedAncestorIdsPlaceholder`),filter:``,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])])):_(``,!0)],64)):_(``,!0)],64)),t(`div`,ns,[x(b(Fe),{"model-value":T.value,binary:``,"input-id":`isLeader`,disabled:T.value,"onUpdate:modelValue":n[9]||=e=>c(`set-leader`,r.node.id)},null,8,[`model-value`,`disabled`]),t(`label`,rs,[g(k(b(E).leader)+` `,1),t(`span`,is,k(b(i)(`scenarioNodeEditor.entryPoint`)),1)])]),u.value.type===`ask`?(M(),v(`div`,as,[t(`label`,os,k(b(i)(`scenarioNodeEditor.question`)),1),x(b(he),{id:`scennode-question`,modelValue:u.value.question,"onUpdate:modelValue":n[10]||=e=>u.value.question=e,rows:`4`,class:`w-full`,style:{resize:`none`},placeholder:b(i)(`scenarioNodeEditor.questionPlaceholder`)},null,8,[`modelValue`,`placeholder`])])):(M(),v(`div`,ss,[t(`label`,cs,k(b(i)(`scenarioNodeEditor.prompt`)),1),x(b(he),{id:`scennode-prompt`,modelValue:u.value.prompt,"onUpdate:modelValue":n[11]||=e=>u.value.prompt=e,rows:`8`,class:`w-full`,style:{resize:`none`}},null,8,[`modelValue`])]))]))}}),[[`__scopeId`,`data-v-d47fface`]]),us={class:`scenario-editor`},ds={class:`scenario-editor__toolbar`},fs={class:`scenario-editor__toolbar-row scenario-editor__toolbar-row--primary`},ps={class:`scenario-editor__icon-input`},ms={class:`scenario-editor__toolbar-row scenario-editor__toolbar-row--secondary`},hs={class:`pi pi-question-circle scenario-editor__traversal-help`},gs={class:`add-node-popover`},_s={class:`add-node-popover__item-text`},vs={class:`add-node-popover__item-label`},ys={class:`add-node-popover__item-desc`},bs={class:`add-node-popover__item-text`},xs={class:`add-node-popover__item-label`},Ss={class:`add-node-popover__item-desc`},Cs={class:`scenario-editor__content`},ws={key:0,class:`scenario-editor__ai-panel`},Ts={class:`scenario-editor__ai-panel-header`},Es={key:0,class:`scenario-editor__ai-provider`},Ds={for:`scened-ai-provider`,class:`scenario-editor__ai-provider-label`},Os={key:1,class:`scenario-editor__ai-no-provider`},ks=[`innerHTML`],As={class:`scenario-editor__ai-hint`},js={key:2,class:`scenario-editor__ai-stream`},Ms={class:`scenario-editor__ai-stream-label`},Ns={key:0,class:`pi pi-spin pi-spinner`},Ps={key:1,class:`pi pi-check`,style:{color:`var(--p-green-500)`}},Fs={key:2,class:`pi pi-exclamation-triangle`,style:{color:`var(--p-orange-500)`}},Is={class:`scenario-editor__ai-stream-text`},Ls={key:3,class:`scenario-editor__ai-error`},Rs={key:0,class:`scenario-editor__panel scenario-editor__panel--editor`},zs={class:`detail-header`},Bs={class:`detail-header__title`},Vs={class:`detail-body`},Hs={class:`detail-field`},Us={for:`scened-group-name`,class:`detail-label`},Ws={class:`detail-field`},Gs={for:`scened-group-desc`,class:`detail-label`},Ks={class:`detail-field`},qs={for:`scened-group-color`,class:`detail-label`},Js={class:`detail-color-row`},Ys=[`value`],Xs={class:`detail-footer`},Zs={key:0,class:`detail-footer`},Qs={class:`switch-dialog__intro`},$s={class:`inline-check`,style:{"margin-top":`1rem`,gap:`0.6rem`}},ec={for:`dontShowAgain`,style:{"font-size":`0.85rem`,cursor:`pointer`}},tc={class:`switch-dialog__intro`},nc={class:`switch-dialog__intro`},rc={class:`switch-dialog__links`},ic={class:`switch-dialog__node`},ac={class:`switch-dialog__node`},oc={class:`add-node-form`},sc={for:`scened-add-node-group`,class:`add-node-label`},cc={class:`export-json`},lc={key:0,class:`import-error`},uc={style:{margin:`0 0 1rem`}},dc=`runeya:hierarchical-multi-parent-notice-dismissed`,fc=`scenario-flow`,pc=160,mc=48,$=24,hc=32,gc=60,_c=10,vc=E(a({__name:`ScenarioEditorPage`,setup(e){let{t:a}=Ce(),c=De(),l=ge(),d=be(),m=w(!1),h=w([]),te=w(localStorage.getItem(dc)===`true`),E=w(!1),re=w(!1),ae=Oe(),{setCenter:D,updateNode:de,getSelectedNodes:O,getSelectedEdges:pe,removeSelectedElements:me,fitView:xe,viewport:we}=p(fc);function N(e){if(e.key!==`Delete`&&e.key!==`Backspace`)return;let t=e.target;if(!(t.tagName===`INPUT`||t.tagName===`TEXTAREA`)){if(W.value){let e=W.value;for(let t of z.value){let n=t.parentIds.findIndex(n=>`e-${n}-${t.id}`===e);if(n!==-1){bt(t.id,{parentIds:t.parentIds.filter((e,t)=>t!==n)});break}}W.value=void 0;return}for(let e of O.value)R.value.some(t=>t.id===e.id)?pt(e.id):z.value.some(t=>t.id===e.id)&&yt(e.id)}}let ke=j(()=>c.params.id),Me=j(()=>!ke.value),Ie=w(`New scenario`),Le=w(``),Re=w(``),F=w(``),I=w(`hierarchical`),ze=w(void 0),Be=w(!1),Ve=w([]),He=j(()=>Ve.value.find(e=>e.id===ze.value)),L=ko(He),Ue=w();function We(e){Ue.value?.toggle(e)}function Ge(e){Ue.value?.hide(),ht(e)}async function Ke(){try{Ve.value=await n.scenario.listPresets.query()}catch{}}let qe=w(!1),Je=w(void 0),Ye=w(0);function Xe(e){ze.value=e;let t=Ve.value.find(t=>t.id===e);t?.defaultTraversalMode&&(I.value=t.defaultTraversalMode),t?.initialData?(R.value=[...t.initialData.groups],z.value=[...t.initialData.nodes],F.value=t.initialData.leaderId,B.value=void 0,V.value=void 0):e||(R.value=[],z.value=[],F.value=``,B.value=void 0,V.value=void 0)}function Ze(){return z.value.length>0||R.value.length>0}function Qe(e){let t=e?Ve.value.find(t=>t.id===e):void 0;(!e||t?.initialData)&&Ze()?(Je.value=e,qe.value=!0):Xe(e)}function $e(){qe.value=!1,Xe(Je.value),Je.value=void 0}function et(){qe.value=!1,Je.value=void 0,Ye.value++}let R=w([]),z=w([]),B=w(),V=w(),nt=w(!1),H=w(null),rt=w(`ai`),it=j(()=>{let e=new Map;if(!B.value)return e;let t=B.value,n=z.value.find(e=>e.id===t);if(!n)return e;let r=z.value.filter(e=>(e.parentIds??[]).includes(t)||(n.parentIds??[]).includes(e.id)),i=new Map;for(let e of r){let t=e.groupId??null;i.has(t)||i.set(t,[]),i.get(t).push(e)}for(let t of i.values())t.length<=1||[...t].sort((e,t)=>e.position.x-t.position.x).forEach((t,n)=>e.set(t.id,-n*15));return e}),at=j(()=>{let e=B.value?(()=>{let e=B.value,t=z.value.find(t=>t.id===e),n=z.value.filter(n=>(n.parentIds??[]).includes(e)||(t?.parentIds??[]).includes(n.id)).map(e=>e.id);return new Set([e,...n])})():null,t=e?new Set(z.value.filter(t=>e.has(t.id)&&t.groupId).map(e=>e.groupId)):null,n=V.value??null,r=n?new Set(z.value.filter(e=>e.groupId===n).map(e=>e.id)):null,i=R.value.map(e=>{let r=t&&!t.has(e.id),i=n&&e.id!==n,a=r||i,o=n===e.id;return{id:e.id,type:`group`,position:e.position,zIndex:o?500:1,style:{width:`${e.width}px`,height:`${e.height}px`,opacity:a?`0.25`:`1`,transition:`opacity 0.15s ease`},data:{label:e.name,color:e.color??void 0},draggable:!0,selectable:!0}}),a=new Map;for(let e of z.value)for(let t of e.parentIds??[]){let n=ot(e.id)<ot(t),r=a.get(t)??{hasUp:!1,hasDown:!1};n?r.hasUp=!0:r.hasDown=!0,a.set(t,r)}let o=z.value.map(t=>{let n=a.get(t.id)??{hasUp:!1,hasDown:!1},i=it.value.get(t.id)??0,o=e&&!e.has(t.id),s=r&&!r.has(t.id),c=o||s,l=r?.has(t.id);return{id:t.id,position:{x:t.position.x+i,y:t.position.y},zIndex:l?1500:1e3,style:c?{opacity:`0.25`,transition:`opacity 0.15s ease`}:{opacity:`1`,transition:`opacity 0.15s ease`},data:{label:t.label,isLeader:t.id===F.value,type:t.type,roleName:He.value?.roles.find(e=>e.id===t.role)?.name,showTopHandle:n.hasUp,showBottomHandle:n.hasDown||!n.hasUp},draggable:!0,selectable:!0,parentNode:t.groupId??void 0,extent:t.groupId?`parent`:void 0}});return[...i,...o]});function ot(e){let t=z.value.find(t=>t.id===e);return t?t.groupId?(R.value.find(e=>e.id===t.groupId)?.position.y??0)+t.position.y:t.position.y:0}let st=j(()=>{let e=new Map;for(let t of z.value)e.set(t.id,0);let t=new Map;for(let e of z.value)t.set(e.id,[]);for(let e of z.value)for(let n of e.parentIds??[])t.get(n)?.push(e.id);let n=new Set,r=[];function i(a){e.set(a,1),r.push(a);for(let o of t.get(a)??[])if(e.get(o)===1){let e=r.indexOf(o);for(let t=e;t<r.length-1;t++)n.add(`e-${r[t]}-${r[t+1]}`);n.add(`e-${a}-${o}`)}else e.get(o)===0&&i(o);r.pop(),e.set(a,2)}for(let t of z.value)e.get(t.id)===0&&i(t.id);return n}),ct=j(()=>{let e=[],t=I.value===`topological`;for(let n of z.value)for(let r of n.parentIds??[]){let i=`e-${r}-${n.id}`,a=W.value===i,o=!W.value&&!!B.value&&(B.value===r||B.value===n.id),s=a||o,c=st.value.has(i),l=ot(n.id)<ot(r),u=z.value.find(e=>e.id===r)?.groupId??null,d=n.groupId??null,f=!!V.value&&u!==V.value&&d!==V.value||B.value&&!W.value&&!s||W.value&&!a;e.push({id:i,source:r,target:n.id,sourceHandle:l?`source-top`:`source-bottom`,type:`step`,zIndex:c?700:s?600:500,class:c?`edge--cycle`:void 0,animated:t,style:{stroke:c?`rgb(239,68,68)`:s?`rgb(168,85,247)`:`rgba(99,102,241,0.55)`,strokeWidth:c||s?3:2.5,opacity:f?.15:1,...t?{strokeDasharray:`5,3`}:{}}})}return e});j(()=>z.value.map(e=>({id:e.id,label:e.label||e.id})));function lt(){let e={id:`group-${Pe().slice(0,8)}`,name:`Group ${R.value.length+1}`,position:{x:100*R.value.length,y:100*R.value.length},width:300,height:200};R.value=[...R.value,e]}let ut=w(!1),dt=w(null),ft=w(0);function pt(e){let t=z.value.filter(t=>t.groupId===e).length;if(t>0){dt.value=e,ft.value=t,ut.value=!0;return}mt(e)}function mt(e){let t=z.value.filter(t=>t.groupId===e).map(e=>e.id);z.value=z.value.filter(e=>!t.includes(e.id)).map(e=>({...e,parentIds:e.parentIds.filter(e=>!t.includes(e))})),R.value=R.value.filter(t=>t.id!==e),V.value===e&&(V.value=void 0),B.value&&t.includes(B.value)&&(B.value=void 0)}function ht(e=`ai`){if(!R.value.length){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.noGroupsSummary`),detail:a(`scenarioEditor.toast.noGroupsDetail`),life:3e3});return}rt.value=e,H.value=R.value[0]?.id??null,nt.value=!0}function gt(e){if(!e)return{x:100,y:100};let t=z.value.filter(t=>t.groupId===e);if(t.length===0)return{x:$,y:hc+$};let n=t.reduce((e,t)=>e.position.y>t.position.y?e:t);return{x:n.position.x,y:n.position.y+mc+_c}}function _t(e){if(!e)return;let t=R.value.find(t=>t.id===e);if(!t)return;let n=z.value.filter(t=>t.groupId===e);if(n.length===0)return;let r=Math.max(...n.map(e=>e.position.y+mc)),i=Math.max(...n.map(e=>e.position.x+pc)),a=r+$,o=Math.max(t.width??200,i+$),s=(t.position.y??0)+(t.height??0),c=(t.position.y??0)+a-s;if(U(e,{width:o,height:a}),c>0)for(let t of R.value)t.id!==e&&(t.position.y??0)>=s&&U(t.id,{position:{x:t.position.x,y:(t.position.y??0)+c}})}function vt(){if(!H.value){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.groupRequiredSummary`),detail:a(`scenarioEditor.toast.groupRequiredDetail`),life:3e3});return}let e=`node-${Pe().slice(0,8)}`,t={id:e,type:rt.value,parentIds:[],groupId:H.value,label:``,role:`other`,prompt:``,question:``,autoGenerated:!0,canAddNode:!1,aiCli:`claude-code`,model:`sonnet`,position:gt(H.value),injectParentOutputs:!1,injectedAncestorIds:[]};z.value=[...z.value,t],z.value.length===1&&(F.value=e),_t(H.value),nt.value=!1,B.value=e,ie(()=>updateNodeInternals(z.value.map(e=>e.id)))}function yt(e){if(e===F.value){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.leaderSummary`),detail:a(`scenarioEditor.toast.leaderDetail`),life:3e3});return}let t=new Set(z.value.filter(t=>t.parentIds[0]===e).map(e=>e.id));z.value=z.value.filter(t=>t.id!==e).map(e=>t.has(e.id)?{...e,parentId:F.value}:e),B.value===e&&(B.value=void 0)}function bt(e,t){z.value=z.value.map(n=>n.id===e?{...n,...t}:n);let n=z.value.find(t=>t.id===e);if(n&&(`label`in t&&de(e,{data:{label:n.label,isLeader:n.id===F.value}}),`groupId`in t)){let n={x:50,y:50};de(e,{parentNode:t.groupId??void 0,extent:t.groupId?`parent`:void 0,position:n}),z.value=z.value.map(t=>t.id===e?{...t,position:n}:t)}}function xt(e,t){U(e,{name:t}),de(e,{data:{label:t}})}function St(e,t,n){}function Ct(e){for(let t of e)if(t.type===`remove`){let e=t.id?.split(`-`);if(!e||e.length<3)continue;for(let e of z.value){let n=e.parentIds??[],r=n.findIndex(n=>`e-${n}-${e.id}`===t.id);if(r!==-1){bt(e.id,{parentIds:n.filter((e,t)=>t!==r)});break}}}}function wt(e){for(let t of e)t.type===`dimensions`&&t.dimensions&&R.value.find(e=>e.id===t.id)&&U(t.id,{width:t.dimensions.width,height:t.dimensions.height}),t.type===`position`&&t.position&&!t.dragging&&R.value.find(e=>e.id===t.id)&&U(t.id,{position:t.position}),t.type===`remove`&&z.value.some(e=>e.id===t.id)&&yt(t.id)}function U(e,t){R.value=R.value.map(n=>n.id===e?{...n,...t}:n)}function Tt(e){let t=e.node.id,n=e.node.position,r=R.value.find(e=>e.id===t),i=z.value.find(e=>e.id===t);r?U(t,{position:n}):i&&(bt(t,{position:n}),Et(t,n.y)),Mt({refit:!1})}function Et(e,t){let n=z.value.find(t=>t.id===e);if(!n)return;let r=n.parentIds[0]??null,i=new Set(z.value.filter(e=>(e.parentIds[0]??null)===r).map(e=>e.id));if(i.size<=1)return;let a=z.value.filter(e=>i.has(e.id)).sort((n,r)=>(n.id===e?t:n.position.y)-(r.id===e?t:r.position.y)),o=z.value.map((e,t)=>({n:e,i:t})).filter(({n:e})=>i.has(e.id)).map(({i:e})=>e),s=[...z.value];o.forEach((e,t)=>{s[e]=a[t]}),z.value=s}let W=w();function Dt(e){let t=e.edge.id;W.value===t?(W.value=void 0,me({edges:[e.edge]})):W.value=t}function Ot(e){let t=e.node.id;W.value=void 0,R.value.some(e=>e.id===t)?V.value===t?(V.value=void 0,me({nodes:[e.node]})):(V.value=t,B.value=void 0):z.value.some(e=>e.id===t)&&(B.value===t?(B.value=void 0,me({nodes:[e.node]})):(B.value=t,V.value=void 0))}function kt(e){let t=e.target,n=e.source;if(n===t)return;let r=z.value.find(e=>e.id===t);if(!r)return;let i=r.parentIds??[];i.includes(n)||(I.value===`hierarchical`?(bt(t,{parentIds:[n]}),i.length>0&&!te.value&&(re.value=!1,E.value=!0)):bt(t,{parentIds:[...i,n]}),ie(()=>Mt({refit:!1})))}function At(){re.value&&(te.value=!0,localStorage.setItem(dc,`true`)),E.value=!1}function jt(){z.value=z.value.map(e=>({...e,parentIds:e.parentIds.slice(0,1),injectParentOutputs:!1,injectedAncestorIds:[]}))}function Mt({refit:e=!0}={}){let t=new Map;for(let e of z.value)t.set(e.id,[]);for(let e of z.value)e.parentIds[0]&&t.has(e.parentIds[0])&&t.get(e.parentIds[0]).push(e.id);let n=new Map,r=0,i;function a(e,o){let s=z.value.find(t=>t.id===e).groupId??null;s!==i&&(i!==void 0&&(r+=$),s!==null&&(r+=hc+$),i=s),n.set(e,{x:o*gc,y:r}),r+=mc+_c;for(let n of t.get(e)??[])a(n,o+1)}let o=z.value.filter(e=>e.parentIds.length===0),s=o.length>0?o.map(e=>e.id):[F.value];for(let e of s)a(e,0),r+=$+_c,i=void 0;for(let e of z.value){let t=n.get(e.id);t&&bt(e.id,{position:t})}for(let e of R.value){let t=z.value.filter(t=>t.groupId===e.id);if(t.length===0)continue;let r=t.map(e=>n.get(e.id)??e.position),i=Math.min(...r.map(e=>e.x))-$,a=Math.min(...r.map(e=>e.y))-$-hc,o=Math.max(...r.map(e=>e.x+pc))+$,s=Math.max(...r.map(e=>e.y+mc))+$;U(e.id,{position:{x:i,y:a},width:o-i,height:s-a});for(let e of t){let t=n.get(e.id);t&&bt(e.id,{position:{x:t.x-i,y:t.y-a}})}}e&&ie(()=>xe({includeHiddenNodes:!1,padding:.1,maxZoom:we.value.zoom}))}function Nt(e){if(e===`hierarchical`){let e=z.value.filter(e=>e.parentIds.length>1).length;if(z.value.reduce((e,t)=>e+Math.max(0,t.parentIds.length-1),0),e>0){let e=new Map(z.value.map(e=>[e.id,e]));h.value=z.value.filter(e=>e.parentIds.length>1).flatMap(t=>t.parentIds.slice(1).map(n=>({from:e.get(n)?.label||n,to:t.label||t.id}))),m.value=!0;return}jt()}I.value=e}function Pt(e){B.value&&bt(B.value,e)}function Ft(e){yt(e)}function It(){let e=new Set(z.value.map(e=>e.id));e.has(F.value)||(F.value=z.value[0]?.id??`leader`),z.value=z.value.map(t=>{if(t.id===F.value)return{...t,parentIds:[]};let n=(t.parentIds??[]).filter(t=>e.has(t));return n.length===0&&t.id!==F.value?{...t,parentIds:[F.value]}:n.length===(t.parentIds??[]).length?t:{...t,parentIds:n}})}async function Lt(){if(Me.value)return;await ae.fetchScenarios();let e=ae.scenarios.find(e=>e.id===ke.value);if(!e){d.add({severity:`error`,summary:a(`scenarioEditor.toast.notFoundSummary`),detail:a(`scenarioEditor.toast.notFoundDetail`),life:3e3}),l.push({name:`settings`,query:{section:`scenario`}});return}Ie.value=e.name,Le.value=e.icon??``,Re.value=e.description??``,F.value=e.leaderId,I.value=e.traversalMode??`hierarchical`,ze.value=e.presetId,Be.value=e.isPublished??!1,R.value=[...e.groups],z.value=[...e.nodes]}async function Rt(){if(!Ie.value.trim()){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.nameRequired`),life:3e3});return}if(!z.value.length){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.nodeRequired`),life:3e3});return}if(!z.value.some(e=>e.id===F.value)){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.leaderRequired`),life:3e3});return}It();let e={name:Ie.value.trim(),icon:Le.value.trim()||void 0,description:Re.value.trim()||void 0,leaderId:F.value,traversalMode:I.value,presetId:ze.value,isPublished:Be.value,groups:R.value,nodes:z.value};try{if(Me.value){let t=await ae.createScenario(e);d.add({severity:`success`,summary:a(`scenarioEditor.toast.createdSummary`),detail:a(`scenarioEditor.toast.createdDetail`),life:2500}),l.replace({name:`scenario-edit`,params:{id:t.id}})}else await ae.updateScenario(ke.value,e),d.add({severity:`success`,summary:a(`scenarioEditor.toast.savedSummary`),detail:a(`scenarioEditor.toast.savedDetail`),life:2500})}catch(e){d.add({severity:`error`,summary:`Error`,detail:e.message,life:3500})}}function zt(){l.push({name:`settings`,query:{section:`scenario`}})}let Bt=w(!1),Vt=w(``),G=w(!1),Ht=w(``),Ut=w(``),Wt=w(1),Gt=w(null),Kt=w(null),qt=S({leaderId:ne().max(128),groups:r(ce).max(100),nodes:r(Ae).max(500)}),Jt=w(null),Yt=null;function Xt(){!Vt.value.trim()||G.value||(Yt?.unsubscribe(),Ht.value=``,Jt.value=null,Ut.value=``,G.value=!0,Yt=n.scenario.streamGenerateWithAI.subscribe({prompt:Vt.value.trim(),providerId:Gt.value??void 0,model:Kt.value??void 0,current:R.value.length>0||z.value.length>0?{leaderId:F.value,groups:R.value,nodes:z.value}:void 0},{onData(e){if(e.type===`delta`)Ht.value+=e.text;else if(e.type===`done`){G.value=!1;let e=Ht.value.trim(),t=e.match(/```(?:json)?\s*([\s\S]*?)```/);t&&(e=t[1].trim());try{Jt.value=qt.parse(JSON.parse(e))}catch{Ut.value=a(`scenarioEditor.toast.invalidJson`)}}},onError(e){G.value=!1,Ut.value=e.message??`Unknown error`},onComplete(){G.value=!1}}))}function Zt(){if(!Jt.value)return;let{leaderId:e,groups:t,nodes:n}=Jt.value;F.value=e,R.value=t,z.value=n,Jt.value=null,Ht.value=``,Vt.value=``,Bt.value=!1,d.add({severity:`success`,summary:a(`scenarioEditor.toast.appliedSummary`),detail:a(`scenarioEditor.toast.appliedDetail`),life:3e3})}let Qt=w(!1),$t=w(!1),en=w(``),tn=w(``),nn=j(()=>JSON.stringify({name:Ie.value,description:Re.value||void 0,leaderId:F.value,groups:R.value,nodes:z.value},null,2));async function rn(){await navigator.clipboard.writeText(nn.value),d.add({severity:`success`,summary:a(`scenarioEditor.toast.copiedSummary`),life:2e3})}let an=S({leaderId:ne().max(128),groups:r(ce).max(100),nodes:r(Ae).max(500),name:ne().max(200).optional(),description:ne().max(2e3).optional()});function on(){tn.value=``;try{let e=an.parse(JSON.parse(en.value));e.name&&(Ie.value=e.name),e.description&&(Re.value=e.description),F.value=e.leaderId,R.value=e.groups,z.value=e.nodes,$t.value=!1,d.add({severity:`success`,summary:a(`scenarioEditor.toast.importedSummary`),life:2e3})}catch(e){tn.value=e.message}}return le(()=>{Yt?.unsubscribe()}),Ee(async()=>{await Promise.all([Lt(),Ke()])}),(e,n)=>{let r=fe(`tooltip`);return M(),v(s,null,[t(`div`,us,[t(`div`,ds,[t(`div`,fs,[x(b(u),{icon:`pi pi-arrow-left`,text:``,rounded:``,onClick:zt}),C((M(),v(`div`,ps,[t(`i`,{class:y(Le.value?`pi ${Le.value}`:`pi pi-image`),style:{opacity:`0.5`}},null,2),x(b(se),{modelValue:Le.value,"onUpdate:modelValue":n[0]||=e=>Le.value=e,style:{width:`130px`,"font-size":`0.8rem`},placeholder:`pi-building`},null,8,[`modelValue`])])),[[r,`PrimeIcons class (ex: pi-building, pi-users)`,void 0,{bottom:!0}]]),x(b(se),{modelValue:Ie.value,"onUpdate:modelValue":n[1]||=e=>Ie.value=e,class:`scenario-editor__name`,placeholder:b(a)(`scenarioEditor.placeholderName`)},null,8,[`modelValue`,`placeholder`]),x(b(se),{modelValue:Re.value,"onUpdate:modelValue":n[2]||=e=>Re.value=e,class:`scenario-editor__desc`,placeholder:b(a)(`scenarioEditor.placeholderDescription`)},null,8,[`modelValue`,`placeholder`]),n[40]||=t(`div`,{style:{flex:`1`}},null,-1),C(x(b(u),{icon:Be.value?`pi pi-globe`:`pi pi-lock`,severity:Be.value?`success`:`secondary`,text:``,rounded:``,onClick:n[3]||=e=>Be.value=!Be.value},null,8,[`icon`,`severity`]),[[r,Be.value?b(a)(`scenarioEditor.tooltipUnpublish`):b(a)(`scenarioEditor.tooltipPublish`),void 0,{bottom:!0}]]),C(x(b(u),{icon:`pi pi-save`,onClick:Rt},null,512),[[r,b(a)(`scenarioEditor.tooltipSave`),void 0,{bottom:!0}]])]),t(`div`,ms,[Ve.value.length>0?(M(),A(b(ye),{key:Ye.value,"model-value":ze.value,options:[{label:b(a)(`scenarioEditor.noPreset`),value:void 0},...Ve.value.map(e=>({label:e.name,value:e.id}))],"option-label":`label`,"option-value":`value`,size:`small`,placeholder:b(a)(`scenarioEditor.noPreset`),class:`scenario-editor__preset-select`,"onUpdate:modelValue":Qe},null,8,[`model-value`,`options`,`placeholder`])):_(``,!0),x(b(ye),{"model-value":I.value,options:[{label:b(a)(`scenarioEditor.traversalHierarchical`),value:`hierarchical`},{label:b(a)(`scenarioEditor.traversalTopological`),value:`topological`}],"option-label":`label`,"option-value":`value`,size:`small`,disabled:He.value!=null&&He.value.canChangeTraversalMode===!1,class:`scenario-editor__traversal-select`,"onUpdate:modelValue":Nt},null,8,[`model-value`,`options`,`disabled`]),C(t(`i`,hs,null,512),[[r,{value:b(a)(`scenarioEditor.traversalHelp`),escape:!1},void 0,{bottom:!0}]]),n[43]||=t(`div`,{class:`scenario-editor__toolbar-sep`},null,-1),C(x(b(u),{title:b(L).group,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:b(L).group,class:`scenario-editor__toolbar-btn`,onClick:lt},null,8,[`title`,`label`]),[[r,`${b(a)(`actions.add`)} ${b(L).group.toLowerCase()}`,void 0,{bottom:!0}]]),C(x(b(u),{title:b(L).node,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:b(L).node,class:`scenario-editor__toolbar-btn`,onClick:We},null,8,[`title`,`label`]),[[r,`${b(a)(`actions.add`)} ${b(L).node.toLowerCase()}`,void 0,{bottom:!0}]]),x(b(ue),{ref_key:`addNodePopover`,ref:Ue},{default:P(()=>[t(`div`,gs,[t(`button`,{class:`add-node-popover__item`,onClick:n[4]||=e=>Ge(`ai`)},[n[41]||=t(`i`,{class:`pi pi-microchip-ai`,style:{"font-size":`1.1rem`}},null,-1),t(`div`,_s,[t(`span`,vs,`AI `+k(b(L).node),1),t(`span`,ys,k(b(a)(`scenarioEditor.aiNodeDesc`)),1)])]),t(`button`,{class:`add-node-popover__item`,onClick:n[5]||=e=>Ge(`ask`)},[n[42]||=t(`i`,{class:`pi pi-comment`,style:{"font-size":`1.1rem`}},null,-1),t(`div`,bs,[t(`span`,xs,`Ask `+k(b(L).node),1),t(`span`,Ss,k(b(a)(`scenarioEditor.askNodeDesc`)),1)])])])]),_:1},512),n[44]||=t(`div`,{style:{flex:`1`}},null,-1),C(x(b(u),{icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:Mt},null,512),[[r,b(a)(`scenarioEditor.tooltipAutoLayout`),void 0,{bottom:!0}]]),C(x(b(u),{icon:`pi pi-upload`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[6]||=e=>{$t.value=!0,en.value=``,tn.value=``}},null,512),[[r,b(a)(`scenarioEditor.tooltipImport`),void 0,{bottom:!0}]]),C(x(b(u),{icon:`pi pi-download`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[7]||=e=>Qt.value=!0},null,512),[[r,b(a)(`scenarioEditor.tooltipExport`),void 0,{bottom:!0}]]),C(x(b(u),{icon:`pi pi-sparkles`,text:``,rounded:``,size:`small`,severity:Bt.value?`contrast`:`secondary`,onClick:n[8]||=e=>Bt.value=!Bt.value},null,8,[`severity`]),[[r,Bt.value?b(a)(`scenarioEditor.tooltipCloseAI`):b(a)(`scenarioEditor.tooltipGenerateAI`),void 0,{bottom:!0}]])])]),t(`div`,Cs,[Bt.value?(M(),v(`div`,ws,[t(`div`,Ts,[n[45]||=t(`i`,{class:`pi pi-sparkles`},null,-1),t(`span`,null,k(b(a)(`scenarioEditor.aiPanelTitle`)),1)]),Wt.value>0?(M(),v(`div`,Es,[t(`label`,Ds,k(b(a)(`scenarioEditor.aiProvider`)),1),x(Te,{"input-id":`scened-ai-provider`,modelValue:Gt.value,"onUpdate:modelValue":n[9]||=e=>Gt.value=e,model:Kt.value,"onUpdate:model":n[10]||=e=>Kt.value=e,"storage-key":`runeya.scenario.generateAi`,"hide-when-single":!1,placeholder:b(a)(`scenarioEditor.aiSelectProvider`),class:`w-full`,disabled:G.value,onLoaded:n[11]||=e=>Wt.value=e},null,8,[`modelValue`,`model`,`placeholder`,`disabled`])])):(M(),v(`div`,Os,[n[46]||=t(`i`,{class:`pi pi-exclamation-triangle`},null,-1),t(`span`,{innerHTML:b(a)(`scenarioEditor.aiNoProvider`)},null,8,ks)])),x(b(he),{modelValue:Vt.value,"onUpdate:modelValue":n[12]||=e=>Vt.value=e,placeholder:b(a)(`scenarioEditor.aiPromptPlaceholder`),rows:4,class:`scenario-editor__ai-textarea`,disabled:G.value,onKeydown:o(je(Xt,[`ctrl`]),[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`,`onKeydown`]),x(b(u),{label:G.value?b(a)(`scenarioEditor.aiGenerating`):z.value.length>0?b(a)(`scenarioEditor.aiModify`):b(a)(`scenarioEditor.aiGenerate`),icon:`pi pi-sparkles`,loading:G.value,disabled:!Vt.value.trim(),class:`scenario-editor__ai-btn`,onClick:Xt},null,8,[`label`,`loading`,`disabled`]),t(`p`,As,k(b(a)(`scenarioEditor.aiHint`)),1),Ht.value||G.value?(M(),v(`div`,js,[t(`div`,Ms,[G.value?(M(),v(`i`,Ns)):Jt.value?(M(),v(`i`,Ps)):(M(),v(`i`,Fs)),t(`span`,null,k(G.value?b(a)(`scenarioEditor.aiGenerating`):Jt.value?b(a)(`scenarioEditor.aiValidJson`):b(a)(`scenarioEditor.aiRawResponse`)),1)]),t(`pre`,Is,k(Ht.value),1)])):_(``,!0),Ut.value?(M(),v(`div`,Ls,[n[47]||=t(`i`,{class:`pi pi-times-circle`},null,-1),g(` `+k(Ut.value),1)])):_(``,!0),Jt.value?(M(),A(b(u),{key:4,label:b(a)(`scenarioEditor.aiApply`),icon:`pi pi-check`,severity:`success`,class:`scenario-editor__ai-btn`,onClick:Zt},null,8,[`label`])):_(``,!0)])):_(``,!0),t(`div`,{class:`scenario-editor__canvas`,tabindex:`0`,onKeydown:N},[x(b(ee),{nodes:at.value,edges:ct.value,"nodes-draggable":!0,"nodes-connectable":!0,"elements-selectable":!0,"delete-key-code":null,"fit-view-on-init":``,id:fc,class:`scenario-flow-canvas`,onNodeDragStop:Tt,onNodeClick:Ot,onEdgeClick:Dt,onPaneClick:n[13]||=e=>{B.value=void 0,V.value=void 0,W.value=void 0},onConnect:kt,onNodesChange:wt,onEdgesChange:Ct},{"node-default":P(e=>[x(Ne,_e(f(e)),null,16)]),"node-group":P(e=>[x(i,oe(e,{onUpdateLabel:xt,onResizeEnd:St,onRemove:pt}),null,16)]),default:P(()=>[x(b(tt)),x(b(Do))]),_:1},8,[`nodes`,`edges`])],32),x(Se,{name:`drawer`},{default:P(()=>[V.value||B.value?(M(),v(`div`,Rs,[t(`div`,zs,[t(`i`,{class:y([V.value?`pi pi-users`:`pi pi-microchip-ai`,`detail-header__icon`])},null,2),t(`span`,Bs,k(V.value?b(L).group:b(L).node),1),x(b(u),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,class:`detail-header__close`,onClick:n[14]||=e=>{V.value=void 0,B.value=void 0}})]),V.value&&R.value.find(e=>e.id===V.value)?(M(),v(s,{key:0},[t(`div`,Vs,[t(`div`,Hs,[t(`label`,Us,k(b(a)(`scenarioEditor.groupName`)),1),x(b(se),{id:`scened-group-name`,"model-value":R.value.find(e=>e.id===V.value).name,class:`w-full`,size:`small`,"onUpdate:modelValue":n[15]||=e=>U(V.value,{name:e})},null,8,[`model-value`])]),t(`div`,Ws,[t(`label`,Gs,k(b(a)(`scenarioEditor.groupDescription`)),1),x(b(he),{id:`scened-group-desc`,"model-value":R.value.find(e=>e.id===V.value).description??``,class:`w-full`,placeholder:b(a)(`scenarioEditor.groupDescriptionPlaceholder`),rows:`3`,"auto-resize":``,style:{resize:`none`},"onUpdate:modelValue":n[16]||=e=>U(V.value,{description:e||void 0})},null,8,[`model-value`,`placeholder`])]),t(`div`,Ks,[t(`label`,qs,k(b(a)(`scenarioEditor.groupAccentColor`)),1),t(`div`,Js,[t(`input`,{id:`scened-group-color`,type:`color`,value:R.value.find(e=>e.id===V.value).color??`#6366f1`,class:`detail-color-picker`,onInput:n[17]||=e=>U(V.value,{color:e.target.value})},null,40,Ys),x(b(se),{"model-value":R.value.find(e=>e.id===V.value).color??``,placeholder:`#6366f1`,size:`small`,class:`detail-color-text`,"onUpdate:modelValue":n[18]||=e=>U(V.value,{color:e||void 0})},null,8,[`model-value`]),R.value.find(e=>e.id===V.value).color?C((M(),A(b(u),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[19]||=e=>U(V.value,{color:void 0})},null,512)),[[r,b(a)(`scenarioEditor.groupResetColor`)]]):_(``,!0)])])]),t(`div`,Xs,[x(b(u),{label:`${b(a)(`actions.delete`)} ${b(L).group.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[20]||=e=>pt(V.value)},null,8,[`label`])])],64)):B.value&&z.value.find(e=>e.id===B.value)?(M(),v(s,{key:1},[(M(),A(ls,{key:B.value,node:z.value.find(e=>e.id===B.value),groups:R.value,nodes:z.value,"leader-id":F.value,preset:He.value,"traversal-mode":I.value,onUpdate:Pt,onDelete:Ft,onSetLeader:n[21]||=e=>F.value=e},null,8,[`node`,`groups`,`nodes`,`leader-id`,`preset`,`traversal-mode`])),B.value===F.value?_(``,!0):(M(),v(`div`,Zs,[x(b(u),{label:`${b(a)(`actions.delete`)} ${b(L).node.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[22]||=e=>Ft(B.value)},null,8,[`label`])]))],64)):_(``,!0)])):_(``,!0)]),_:1})])]),x(b(T),{visible:E.value,"onUpdate:visible":n[24]||=e=>E.value=e,header:b(a)(`scenarioEditor.multiParentNoticeTitle`),modal:``,style:{width:`420px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.ok`),onClick:At},null,8,[`label`])]),default:P(()=>[t(`p`,Qs,k(b(a)(`scenarioEditor.multiParentNoticeMessage`)),1),t(`div`,$s,[x(b(Fe),{modelValue:re.value,"onUpdate:modelValue":n[23]||=e=>re.value=e,binary:``,"input-id":`dontShowAgain`},null,8,[`modelValue`]),t(`label`,ec,k(b(a)(`scenarioEditor.dontShowAgain`)),1)])]),_:1},8,[`visible`,`header`]),x(b(T),{visible:ut.value,"onUpdate:visible":n[27]||=e=>ut.value=e,header:b(a)(`scenarioEditor.deleteGroupTitle`),modal:``,style:{width:`380px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.cancel`),text:``,onClick:n[25]||=e=>ut.value=!1},null,8,[`label`]),x(b(u),{label:b(a)(`actions.delete`),severity:`danger`,onClick:n[26]||=()=>{ut.value=!1,mt(dt.value)}},null,8,[`label`])]),default:P(()=>[t(`p`,tc,k(b(a)(`scenarioEditor.deleteGroupMessage`,{count:ft.value})),1)]),_:1},8,[`visible`,`header`]),x(b(T),{visible:m.value,"onUpdate:visible":n[30]||=e=>m.value=e,header:b(a)(`scenarioEditor.switchToHierarchicalTitle`),modal:``,style:{width:`400px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.cancel`),text:``,onClick:n[28]||=e=>m.value=!1},null,8,[`label`]),x(b(u),{label:b(a)(`actions.confirm`),severity:`danger`,onClick:n[29]||=()=>{m.value=!1,I.value=`hierarchical`,jt()}},null,8,[`label`])]),default:P(()=>[t(`p`,nc,k(b(a)(`scenarioEditor.switchToHierarchicalMessage`)),1),t(`ul`,rc,[(M(!0),v(s,null,ve(h.value,e=>(M(),v(`li`,{key:`${e.from}-${e.to}`},[t(`span`,ic,k(e.from),1),n[48]||=t(`i`,{class:`pi pi-arrow-right switch-dialog__arrow`},null,-1),t(`span`,ac,k(e.to),1)]))),128))])]),_:1},8,[`visible`,`header`]),x(b(T),{visible:nt.value,"onUpdate:visible":n[33]||=e=>nt.value=e,header:rt.value===`ask`?`${b(a)(`actions.add`)} Ask ${b(L).node}`:`${b(a)(`actions.add`)} AI ${b(L).node}`,modal:``,style:{width:`360px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[32]||=e=>nt.value=!1},null,8,[`label`]),x(b(u),{label:b(a)(`actions.add`),icon:`pi pi-user-plus`,disabled:!H.value,onClick:vt},null,8,[`label`,`disabled`])]),default:P(()=>[t(`div`,oc,[t(`label`,sc,[g(k(b(L).group)+` `,1),n[49]||=t(`span`,{class:`required`},`*`,-1)]),x(b(ye),{"input-id":`scened-add-node-group`,modelValue:H.value,"onUpdate:modelValue":n[31]||=e=>H.value=e,options:R.value.map(e=>({label:e.name,value:e.id})),"option-label":`label`,"option-value":`value`,placeholder:`${b(a)(`actions.add`)} ${b(L).group.toLowerCase()}`,class:`w-full`},null,8,[`modelValue`,`options`,`placeholder`])])]),_:1},8,[`visible`,`header`]),x(b(T),{visible:Qt.value,"onUpdate:visible":n[35]||=e=>Qt.value=e,header:b(a)(`scenarioEditor.exportHeader`),modal:``,style:{width:`600px`}},{footer:P(()=>[x(b(u),{label:b(a)(`scenarioEditor.copyJson`),icon:`pi pi-copy`,onClick:rn},null,8,[`label`]),x(b(u),{label:b(a)(`actions.close`),severity:`secondary`,text:``,onClick:n[34]||=e=>Qt.value=!1},null,8,[`label`])]),default:P(()=>[t(`pre`,cc,k(nn.value),1)]),_:1},8,[`visible`,`header`]),x(b(T),{visible:$t.value,"onUpdate:visible":n[38]||=e=>$t.value=e,header:b(a)(`scenarioEditor.importHeader`),modal:``,style:{width:`600px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[37]||=e=>$t.value=!1},null,8,[`label`]),x(b(u),{label:b(a)(`actions.apply`),icon:`pi pi-check`,disabled:!en.value.trim(),onClick:on},null,8,[`label`,`disabled`])]),default:P(()=>[x(b(he),{modelValue:en.value,"onUpdate:modelValue":n[36]||=e=>en.value=e,rows:`12`,class:`w-full`,placeholder:b(a)(`scenarioEditor.importPlaceholder`)},null,8,[`modelValue`,`placeholder`]),tn.value?(M(),v(`p`,lc,k(tn.value),1)):_(``,!0)]),_:1},8,[`visible`,`header`]),x(b(T),{visible:qe.value,"onUpdate:visible":n[39]||=e=>qe.value=e,header:b(a)(`scenarioEditor.applyPresetHeader`),modal:``,style:{width:`400px`}},{footer:P(()=>[x(b(u),{label:b(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:et},null,8,[`label`]),x(b(u),{label:b(a)(`scenarioEditor.applyPresetConfirm`),icon:`pi pi-refresh`,severity:`warn`,onClick:$e},null,8,[`label`])]),default:P(()=>[t(`p`,uc,k(b(a)(`scenarioEditor.applyPresetMessage`)),1)]),_:1},8,[`visible`,`header`])],64)}}}),[[`__scopeId`,`data-v-bd84df09`]]);export{vc as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Bi as e,Qa as t,Ua as n,ji as r,lr as i,pr as a,sa as o,x as s}from"./index-C3STxTyh.js";import{t as c}from"./src-D2pHP5dY.js";import{t as l}from"./useProjectCloudOrg-DJPAoob6.js";var u=e({__name:`SendToChatDialog`,setup(e,{expose:u}){let{t:d}=a(),f=i(),{orgId:p,cloudUser:m}=l(),h=n(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}),(e,n)=>(o(),r(t(c),{ref_key:`dialogRef`,ref:h,client:t(s),t:g,"current-user-id":t(m)?.id,"org-id":t(p),"lock-organization":``,onSent:_},null,8,[`client`,`current-user-id`,`org-id`]))}});export{u as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ai as e,Bi as t,Ni as n,Qa as r,Ri as i,Vn as a,d as o,gn as s,ki as c,lt as l,pr as u,sa as d}from"./index-C3STxTyh.js";import{t as f}from"./ProcessControls-DLPytGR-.js";var p={class:`service-controls-bar`},m={class:`service-controls-bar__left`},h={class:`service-controls-bar__right`},g=a(t({__name:`ServiceControlsBar`,props:{service:{},processes:{}},setup(t){let a=t,g=c(()=>o(a.processes)),_=c(()=>g.value?g.value.state:`stopped`),{t:v}=u(),y=l(),b=c(()=>{let e=a.service.effectiveAgentId;return e?y.getById(e)?.config.name??e:null}),x=c(()=>{switch(_.value){case`running`:return`success`;case`starting`:return`warn`;case`errored`:return`danger`;default:return`secondary`}});return(a,o)=>(d(),n(`div`,p,[e(`div`,m,[i(r(s),{value:_.value,severity:x.value,class:`service-controls-bar__tag`},null,8,[`value`,`severity`]),i(r(s),{value:b.value??r(v)(`serviceHeader.noAgent`),severity:b.value?`secondary`:`warn`,icon:`pi pi-server`,class:`service-controls-bar__tag`},null,8,[`value`,`severity`])]),e(`div`,h,[i(f,{"agent-id":g.value?.agentId??t.service.agentId??``,"process-id":g.value?.id??t.service.id,state:g.value?.state??`stopped`},null,8,[`agent-id`,`process-id`,`state`])])]))}}),[[`__scopeId`,`data-v-381d0967`]]);export{g as t};
|