@runeya/runeya 2.0.135 → 2.0.137
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/agent/index.js +11 -3
- package/agent/index.js.map +1 -1
- package/{agent-manager-TUFAFC6U.js → agent-manager-FUU72VGH.js} +3 -3
- package/{chat-IQBWQCTK.js → chat-C26CBAZX.js} +5 -5
- package/{chunk-GISLEYNE.js → chunk-FJLMXLMK.js} +4 -4
- package/{chunk-7JAJSV4L.js → chunk-J4GLFY7G.js} +2 -2
- package/{chunk-4RMM2OUU.js → chunk-NURPXHLB.js} +13 -4
- package/chunk-NURPXHLB.js.map +1 -0
- package/{chunk-M3UUGW5Z.js → chunk-P65BO7WZ.js} +70 -399
- package/chunk-P65BO7WZ.js.map +1 -0
- package/{companion-YQ7CGW7W.js → companion-Q67RAO3N.js} +4 -4
- package/index.js +4 -4
- package/{node-JU7A5NDT.js → node-4UUJN2WG.js} +4 -2
- package/package.json +1 -1
- package/{src-NMMPS4ZF.js → src-7O3GCEIB.js} +7 -7
- package/{src-NMMPS4ZF.js.map → src-7O3GCEIB.js.map} +1 -1
- package/web/assets/AgentScalarChatInterface.vue-BGGkpyp3.js +13 -0
- package/web/assets/AgentTerminalPage-B8gLray2.js +1 -0
- package/web/assets/AiChatPage-BKITsyMx.js +1 -0
- package/web/assets/AppLayout-B72S4nTi.css +1 -0
- package/web/assets/AppLayout-BYw7v2sp.js +1 -0
- package/web/assets/AuditPage-nHTwzyia.js +1 -0
- package/web/assets/CloudAccountPage-DuaZz2j4.js +1 -0
- package/web/assets/CloudAccountPage-XHxI-ixD.js +1 -0
- package/web/assets/CloudMessagingPage-B2N5K-Xs.js +2 -0
- package/web/assets/DashboardPage-VoWJeWh_.js +1 -0
- package/web/assets/DirectoryPickerDialog-B5SuJOhv.js +1 -0
- package/web/assets/{EditorIcon-Bhdvfd12.js → EditorIcon-DXYoMZnL.js} +2 -2
- package/web/assets/{EnvironmentForm-qEODCXoN.js → EnvironmentForm-D3pZuxVn.js} +2 -2
- package/web/assets/EnvironmentFormPage-BIXbPTN5.js +1 -0
- package/web/assets/EnvironmentListPage-CHa-Ni3w.js +1 -0
- package/web/assets/KanbanBoardPage-B46zbE2H.css +1 -0
- package/web/assets/KanbanBoardPage-BFTNpm8P.js +4 -0
- package/web/assets/KanbanListPage-CYuIrKXH.js +1 -0
- package/web/assets/LaunchProjectPage-jy-R3Fiw.js +1 -0
- package/web/assets/LaunchServicesPage-DX7nyo36.js +1 -0
- package/web/assets/LaunchShell-BHfseuPM.js +1 -0
- package/web/assets/LogViewer-C-pHXudR.js +3 -0
- package/web/assets/OrgKeyPrompt-OPnK5oPm.js +1 -0
- package/web/assets/OrgLogo-Cxa49Tl3.js +1 -0
- package/web/assets/{ProcessControls-DM8lfeiV.js → ProcessControls-DXDyR6XX.js} +1 -1
- package/web/assets/ProcessDetailPage-DNKTwgPW.js +1 -0
- package/web/assets/ProcessMetrics-CdQc_8Z0.js +168 -0
- package/web/assets/RandomJobTestPage-BE8HkgSb.js +2 -0
- package/web/assets/ScenarioEditorPage-COC03w7b.css +1 -0
- package/web/assets/ScenarioEditorPage-Coo6ExzZ.js +14 -0
- package/web/assets/SendToChatDialog-ClXerpCU.js +1 -0
- package/web/assets/ServiceControlsBar-C7HrPjQI.js +1 -0
- package/web/assets/{ServiceDetailPage-cQNK1uWq.css → ServiceDetailPage-BhFOqSte.css} +1 -1
- package/web/assets/ServiceDetailPage-Cxuy0Yix.js +2 -0
- package/web/assets/ServiceFormPage-CCOu1h8v.js +1 -0
- package/web/assets/{SettingsPage-CDugr781.css → SettingsPage-DA7lVKfg.css} +1 -1
- package/web/assets/SettingsPage-Dt1ViDQe.js +2063 -0
- package/web/assets/UnlockPage-C5iEOAKH.js +1 -0
- package/web/assets/VaultMigrationPage-CwRWvFY7.js +1 -0
- package/web/assets/VersionBadge-Bqb72GXf.js +1 -0
- package/web/assets/WikiPage-Bl1jDKKp.js +1 -0
- package/web/assets/WikiView-58u6vU3q.js +1 -0
- package/web/assets/WikiView-BqO5AEaY.css +1 -0
- package/web/assets/add-scalar-classes-CT5KQbzH.js +387 -0
- package/web/assets/{autocomplete-ChFfCprn.js → autocomplete-DobAPPYJ.js} +3 -3
- package/web/assets/{basic-shape-diamond.svg-DMXCGOOi.js → basic-shape-diamond.svg-FbeAPLc-.js} +1 -1
- package/web/assets/{basic-shape-hexagon.svg-CYIcPMdS.js → basic-shape-hexagon.svg-CtwcdpTe.js} +1 -1
- package/web/assets/{basic-shape-primary-circle-ellipse-round.svg-Cwmrd1Ez.js → basic-shape-primary-circle-ellipse-round.svg-DsSs3S2_.js} +1 -1
- package/web/assets/{basic-shape-primary-square-rectangle.svg-C6jxeZnm.js → basic-shape-primary-square-rectangle.svg-CNe1RNx8.js} +1 -1
- package/web/assets/{basic-shape-shield.svg-DbCz35E5.js → basic-shape-shield.svg-DwZMLfah.js} +1 -1
- package/web/assets/{browser-CIvjpXha.js → browser-DsZ9HxVm.js} +1 -1
- package/web/assets/{browser-Dqcl_H7_.js → browser-Dz1gvldT.js} +1 -1
- package/web/assets/card-46tM5yU0.js +32 -0
- package/web/assets/{checkbox-D2Iuu4UI.js → checkbox-DPknldTJ.js} +3 -3
- package/web/assets/chevronup-D2Lr2GiV.js +151 -0
- package/web/assets/{chip-C6j_aNV_.js → chip-Caiakd-N.js} +2 -2
- package/web/assets/client-KL5c1Dog.js +24 -0
- package/web/assets/cloud-chat.store-Belo5SKd.js +1 -0
- package/web/assets/cloud-client-Cqa2Udt8.js +1 -0
- package/web/assets/cloud-session-56bUtkSL.js +2 -0
- package/web/assets/cloud-session-Dqm0C6H5.js +1 -0
- package/web/assets/column-DQ53_qc6.js +763 -0
- package/web/assets/{composables-CSWX_0A0.js → composables-CHyZa9ag.js} +1 -1
- package/web/assets/{computer-device-desktop-monitor.svg-B2C-kd0i.js → computer-device-desktop-monitor.svg-CwiGN14T.js} +1 -1
- package/web/assets/{computer-device-desktop.svg-3yHh_J9J.js → computer-device-desktop.svg-BC2VdXDZ.js} +1 -1
- package/web/assets/{computer-device-laptop.svg-DFT8iA2v.js → computer-device-laptop.svg-BOp8AKN6.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung-back.svg-CMmFiUFT.js → computer-device-mobile-phone-android-samsung-back.svg-CmbpPX1u.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-android-samsung.svg-zfLcL76y.js → computer-device-mobile-phone-android-samsung.svg-_WGKWVtZ.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x-back.svg-avbsjvM5.js → computer-device-mobile-phone-iphone-x-back.svg-DmLh97KG.js} +1 -1
- package/web/assets/{computer-device-mobile-phone-iphone-x.svg-d5iGTMZf.js → computer-device-mobile-phone-iphone-x.svg-C7-5mdyV.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet-touch.svg-Bs2yfb4a.js → computer-device-mobile-tablet-touch.svg-DiUaSnhU.js} +1 -1
- package/web/assets/{computer-device-mobile-tablet.svg-C4zqv1Np.js → computer-device-mobile-tablet.svg-B6nfbYm_.js} +1 -1
- package/web/assets/{computer-device-network-ethernet-cat6.svg-BNu3-DX-.js → computer-device-network-ethernet-cat6.svg-DwtVKy79.js} +1 -1
- package/web/assets/{computer-device-network-lan-www.svg-DKWvhIUS.js → computer-device-network-lan-www.svg-vQKfG3Xz.js} +1 -1
- package/web/assets/{computer-device-network-wifi-connection.svg-BeVB4uVk.js → computer-device-network-wifi-connection.svg-DhHaOUge.js} +1 -1
- package/web/assets/{computer-device-network-wifi-router.svg-ByESRUy1.js → computer-device-network-wifi-router.svg-1dQS4k4J.js} +1 -1
- package/web/assets/{cssMode-CYkE5lQ9.js → cssMode-CdQL22W5.js} +1 -1
- package/web/assets/{divider-CA3yAI2V.js → divider-DhYR4BAO.js} +2 -2
- package/web/assets/{docx-preview-DWhG4PqM.js → docx-preview-D-jP_CCs.js} +1 -1
- package/web/assets/{ecology-science-erlenmeyer-flask.svg-D-XnpZzI.js → ecology-science-erlenmeyer-flask.svg-D76wQVA2.js} +1 -1
- package/web/assets/{fieldset-B8HuDLeH.js → fieldset-BtOjs_Hh.js} +2 -2
- package/web/assets/{freemarker2-D4-v7trZ.js → freemarker2-BADW9vhy.js} +1 -1
- package/web/assets/{handlebars-DjpO5k1R.js → handlebars-CwWQD_C8.js} +1 -1
- package/web/assets/{html-DFrFD9Vs.js → html-y87CEbe3.js} +1 -1
- package/web/assets/{htmlMode-DOefWnsd.js → htmlMode-CVagtvVh.js} +1 -1
- package/web/assets/{image-flash-lightning.svg-D3j4zBSy.js → image-flash-lightning.svg-OvpKi3a3.js} +1 -1
- package/web/assets/{image-picture-flower.svg-DQwZxx5i.js → image-picture-flower.svg-DLOePozT.js} +1 -1
- package/web/assets/index-CKOtBNaZ.css +1 -0
- package/web/assets/{index-C0stqCbw.js → index-CcIrffU_.js} +363 -583
- package/web/assets/{interface-alert-exclamation-diamond.svg-Wi3odtkW.js → interface-alert-exclamation-diamond.svg-4Vk7SoQ1.js} +1 -1
- package/web/assets/{interface-alert-exclamation-triangle-warning.svg-CReCCTTv.js → interface-alert-exclamation-triangle-warning.svg-BLAvc4am.js} +1 -1
- package/web/assets/{interface-alert-information-circle.svg-CcYDlXW6.js → interface-alert-information-circle.svg-CaAXpDAI.js} +1 -1
- package/web/assets/{interface-award-crown.svg-nShV1eoE.js → interface-award-crown.svg-CW7XG0wx.js} +1 -1
- package/web/assets/{interface-bookmark.svg-C7rl6oRl.js → interface-bookmark-tag.svg-DPWVVeZU.js} +1 -1
- package/web/assets/{interface-bookmark-tag.svg-Bcxcf9m_.js → interface-bookmark.svg-BpLEuOv2.js} +1 -1
- package/web/assets/{interface-calendar-date-one.svg-Dr1oFk40.js → interface-calendar-date-one.svg-DbBgvI4W.js} +1 -1
- package/web/assets/{interface-content-book-open-pages.svg-5k2_6iyY.js → interface-content-book-open-pages.svg-BbsuvPZM.js} +1 -1
- package/web/assets/{interface-content-book-page.svg-CVq67m2W.js → interface-content-book-page.svg-DbRPz1j8.js} +1 -1
- package/web/assets/{interface-content-file.svg-BTGOcunz.js → interface-content-file.svg-OJPKABxS.js} +1 -1
- package/web/assets/{interface-content-folder.svg-c7jw0JHU.js → interface-content-folder.svg-3D_5OE_-.js} +1 -1
- package/web/assets/interface-content-folder.svg-8mYqkDao.js +1 -0
- package/web/assets/{interface-copy-clipboard.svg-CDxFW9t5.js → interface-copy-clipboard.svg-DqthVh9J.js} +1 -1
- package/web/assets/{interface-edit-attachment.svg-ALzerCj2.js → interface-edit-attachment.svg-BAPCnZ0B.js} +1 -1
- package/web/assets/{interface-edit-binocular.svg-B8ugIA3a.js → interface-edit-binocular.svg-BoV39ouF.js} +1 -1
- package/web/assets/{interface-edit-magic-wand.svg-DUS1BcE7.js → interface-edit-magic-wand.svg-Cz36nKVn.js} +1 -1
- package/web/assets/{interface-edit-tool-paint-roller.svg-B2yecsyu.js → interface-edit-tool-paint-roller.svg-DZUQotD5.js} +1 -1
- package/web/assets/{interface-edit-tool-pencil.svg-CXrPC_TT.js → interface-edit-tool-pencil.svg-DBf1Y9Tj.js} +1 -1
- package/web/assets/{interface-favorite-award.svg-Cp_oIcCh.js → interface-favorite-award.svg-B93sRjxf.js} +1 -1
- package/web/assets/{interface-favorite-flag.svg-B36MDZwI.js → interface-favorite-flag.svg-DKHuT11J.js} +1 -1
- package/web/assets/{interface-favorite-heart.svg-CTV6u1U4.js → interface-favorite-heart.svg-Bw5FZQ7d.js} +1 -1
- package/web/assets/{interface-favorite-star.svg-OdL5QrWJ.js → interface-favorite-star.svg-CgLbct_b.js} +1 -1
- package/web/assets/{interface-favorite-stars-sparkles.svg-BqWJOXGz.js → interface-favorite-stars-sparkles.svg-B7cYS4ef.js} +1 -1
- package/web/assets/{interface-hierarchy-flowchart.svg-CuSQQZNq.js → interface-hierarchy-flowchart.svg-zwuaRdWq.js} +1 -1
- package/web/assets/{interface-home-house.svg-C3MlUubV.js → interface-home-house.svg-B85yMFCe.js} +1 -1
- package/web/assets/{interface-hyperlink.svg-BYd5gh77.js → interface-hyperlink.svg-US6b-Svn.js} +1 -1
- package/web/assets/{interface-lighting-brightness.svg-Dg3GdUm9.js → interface-lighting-brightness.svg-mZWkhb7f.js} +1 -1
- package/web/assets/{interface-lock-closed.svg-DwBww-yp.js → interface-lock-closed.svg-9oHuNwuY.js} +1 -1
- package/web/assets/{interface-lock-open-unlock.svg-BPSHjpM5.js → interface-lock-open-unlock.svg-DBetdJny.js} +1 -1
- package/web/assets/{interface-login-key.svg-CAKOhBJY.js → interface-login-key.svg-BZnZTYd1.js} +1 -1
- package/web/assets/{interface-search.svg-C-J35EwT.js → interface-search.svg-CMXAOoam.js} +1 -1
- package/web/assets/{interface-setting-cog.svg-CPTM4JUK.js → interface-setting-cog.svg-CKckatt7.js} +1 -1
- package/web/assets/{interface-share-megaphone-bullhorn.svg-De8kepxS.js → interface-share-megaphone-bullhorn.svg-DH7kVqN-.js} +1 -1
- package/web/assets/{interface-share-rocket.svg-Drx2GamR.js → interface-share-rocket.svg-BNXcMugi.js} +1 -1
- package/web/assets/{interface-share-satellite.svg-CpcvwNrN.js → interface-share-satellite.svg-Bb8t607w.js} +1 -1
- package/web/assets/{interface-share-space-ship.svg-C1rwdvlT.js → interface-share-space-ship.svg-Dk4rbLtF.js} +1 -1
- package/web/assets/{interface-share.svg-CgYmRRi3.js → interface-share.svg-CtX8dq5i.js} +1 -1
- package/web/assets/{interface-signal-square.svg-D18HXtaZ.js → interface-signal-square.svg-DmUIlYTd.js} +1 -1
- package/web/assets/{interface-time-clock-circle.svg-CnJh3zUx.js → interface-time-clock-circle.svg-D2ZNaXT3.js} +1 -1
- package/web/assets/{interface-time-hour-glass.svg-CJ43-28R.js → interface-time-hour-glass.svg-Ddo-8hHe.js} +1 -1
- package/web/assets/{interface-users-multiple.svg-DUoZG3ny.js → interface-users-multiple.svg-Jh7S0sT4.js} +1 -1
- package/web/assets/{interface-weather-moon.svg-C6iv_sYC.js → interface-weather-moon.svg-DbdQFgL2.js} +1 -1
- package/web/assets/{javascript-C9ITR2y1.js → javascript-BVGFyXBk.js} +1 -1
- package/web/assets/{jsonMode-CVg8GDEH.js → jsonMode-vnFlxYl9.js} +2 -2
- package/web/assets/{liquid-QQuSH6xu.js → liquid-DieKMEvN.js} +1 -1
- package/web/assets/{lspLanguageFeatures-Dw4848W6.js → lspLanguageFeatures-DoeI-8Y7.js} +3 -3
- package/web/assets/{mail-chat-bubble-square.svg-BazJ_62-.js → mail-chat-bubble-square.svg-CApdU2ea.js} +1 -1
- package/web/assets/{mail-send-email-paper-airplane.svg-B-Dxyqfp.js → mail-send-email-paper-airplane.svg-jjZ0KB32.js} +1 -1
- package/web/assets/{mail-send-envelope.svg-C8b7sbKN.js → mail-send-envelope.svg-B6Tsoh-8.js} +1 -1
- package/web/assets/{mdx-DAF1FZmF.js → mdx-BCkszXid.js} +1 -1
- package/web/assets/{minus-CSyILGbg.js → minus-DfLQX3s2.js} +2 -2
- package/web/assets/modal-CCco27Sn.js +5 -0
- package/web/assets/modal-D4J85_wC.js +1 -0
- package/web/assets/{money-cashier-receipt.svg--Lc3cf7X.js → money-cashier-receipt.svg-DM-I8Snr.js} +1 -1
- package/web/assets/{money-currency-dollar-pay.svg-Dj5mJsZo.js → money-currency-dollar-pay.svg-CkDRewrV.js} +1 -1
- package/web/assets/{money-graph-arrow-increase.svg-BxDK2s6g.js → money-graph-arrow-increase.svg-BT4KLHWz.js} +1 -1
- package/web/assets/{money-graph-bar-chart-increase.svg-DGZaFMZM.js → money-graph-bar-chart-increase.svg-EvyIJ3Uu.js} +1 -1
- package/web/assets/{multiselect-Dn8j6BKj.js → multiselect-BmjidXlj.js} +3 -3
- package/web/assets/{nature-ecology-leaf.svg-CWHdLRYI.js → nature-ecology-leaf.svg-uZBwXdg9.js} +1 -1
- package/web/assets/{password-BHZmKoIG.js → password-D1R5w1qL.js} +4 -4
- package/web/assets/{phone-telephone.svg-DsOG1joc.js → phone-telephone.svg-BSvOskIB.js} +1 -1
- package/web/assets/{plus-fHFXXVKA.js → plus-CNGSRnxy.js} +6 -6
- package/web/assets/process.store-p1LqnpY2.js +1 -0
- package/web/assets/{programming-bug.svg-QYUdmLY5.js → programming-bug.svg-CLnGs4K-.js} +1 -1
- package/web/assets/{programming-cloud.svg-C6znZJ-C.js → programming-cloud.svg-CxBovXBR.js} +1 -1
- package/web/assets/{programming-computer-database-server.svg-3XQZgkj3.js → programming-computer-database-server.svg-C1JmOyio.js} +1 -1
- package/web/assets/{programming-computer-database.svg-6OF1JaA-.js → programming-computer-database.svg-BRjyOzP4.js} +1 -1
- package/web/assets/{programming-module-four-layout.svg-DN7C2xQ3.js → programming-module-four-layout.svg-Blwzw6Qz.js} +1 -1
- package/web/assets/{programming-module-three.svg-8zjQz2zh.js → programming-module-three.svg-6bkrmWsU.js} +1 -1
- package/web/assets/{programming-module.svg-BQpaVQTI.js → programming-module.svg-CBS9xKxX.js} +1 -1
- package/web/assets/{programming-script-code.svg-C5U07Bnn.js → programming-script-code.svg-BVhyoAD3.js} +1 -1
- package/web/assets/project-launch.store-BBYtCcv8.js +1 -0
- package/web/assets/project.store-D_2v7amt.js +1 -0
- package/web/assets/{python-CIZTrsB5.js → python-CiPYtj_d.js} +1 -1
- package/web/assets/{radiobutton-DiazMmAi.js → radiobutton--KWBHcDP.js} +3 -2
- package/web/assets/{razor-BN7EghYh.js → razor-CSoWGP30.js} +1 -1
- package/web/assets/router-CRKT3825.js +1 -0
- package/web/assets/{selectbutton-BLjfO8t-.js → selectbutton-C0NL5n4w.js} +4 -4
- package/web/assets/settings-scope-DblmUa3N.js +1 -0
- package/web/assets/{settings.store-BfxfuLM2.js → settings.store-DKTQyerJ.js} +1 -1
- package/web/assets/{shopping-cart.svg-qy6s5BGQ.js → shopping-cart.svg-C-8NG_Po.js} +1 -1
- package/web/assets/{shopping-gift-present.svg-C9HdpVxJ.js → shopping-gift-present.svg-Bp6q5VzJ.js} +1 -1
- package/web/assets/{shopping-shipping-box-parcel-package.svg-CMFuFIDh.js → shopping-shipping-box-parcel-package.svg-DeWaEIwm.js} +1 -1
- package/web/assets/{src-DzTHX0Uv.js → src-BHR3l7pa.js} +17 -17
- package/web/assets/{src-CkT0Buv_.css → src-BN5gTC76.css} +1 -1
- package/web/assets/src-BRLkogf3.js +1 -0
- package/web/assets/{tag-new-circle.svg-CfhsqJra.js → tag-new-circle.svg-CTljXsqE.js} +1 -1
- package/web/assets/theme-BZzt_Sgl.js +1 -0
- package/web/assets/{toggleswitch-CjP0YQIo.js → toggleswitch-d41l5g27.js} +2 -2
- package/web/assets/{travel-map-earth-globe.svg-DoZqANqT.js → travel-map-earth-globe.svg-BUkcntCp.js} +1 -1
- package/web/assets/trpc-Db0Atu8A.js +1 -0
- package/web/assets/{tsMode-tM0mPX0S.js → tsMode-B2c-rCAa.js} +4 -4
- package/web/assets/{typescript-BEUIW-V_.js → typescript-CmW4u_GQ.js} +1 -1
- package/web/assets/useAiChatDrawer-0QJJVXul.js +1 -0
- package/web/assets/useCloudOrg-E4l-99WA.js +1 -0
- package/web/assets/useEnvVarAutocomplete-BDqUWoGr.js +102 -0
- package/web/assets/{useProjectCatalog-BdouNxux.js → useProjectCatalog-Cxt-hL1H.js} +1 -1
- package/web/assets/{useProjectCloudOrg-BHkyD0dP.js → useProjectCloudOrg-CwLTQLIO.js} +1 -1
- package/web/assets/useServiceUrlHost-VIA3uP5-.js +1 -0
- package/web/assets/{xml-dZzMKM-n.js → xml-BxMqu3hT.js} +1 -1
- package/web/assets/{yaml-Bm1gOrCp.js → yaml-Djx7E3R1.js} +1 -1
- package/web/index.html +2 -2
- package/chunk-4RMM2OUU.js.map +0 -1
- package/chunk-M3UUGW5Z.js.map +0 -1
- package/web/assets/AgentScalarChatInterface.vue-DMB64kMa.js +0 -13
- package/web/assets/AgentTerminalPage-RN_RhpdH.js +0 -1
- package/web/assets/AiChatPage-9ko8n9o-.js +0 -1
- package/web/assets/AppLayout-C_tqGN1Z.js +0 -1
- package/web/assets/AppLayout-Db2KGjwQ.css +0 -1
- package/web/assets/AuditPage-CiOsIB_G.js +0 -1
- package/web/assets/CloudAccountPage-BPQs7Ukh.js +0 -1
- package/web/assets/CloudAccountPage-vlELc9s4.js +0 -1
- package/web/assets/CloudMessagingPage-CXVBG7G_.js +0 -2
- package/web/assets/DashboardPage-DaN6l4Aq.js +0 -1
- package/web/assets/DirectoryPickerDialog-DMAE3RCc.js +0 -1
- package/web/assets/EnvironmentFormPage-CsdoKvWm.js +0 -1
- package/web/assets/EnvironmentListPage-DNvRlujy.js +0 -1
- package/web/assets/KanbanBoardPage-BvJB1vAN.js +0 -4
- package/web/assets/KanbanBoardPage-acfjgSse.css +0 -1
- package/web/assets/KanbanListPage-BXS70nXB.js +0 -1
- package/web/assets/LaunchProjectPage-qh5FY_Hp.js +0 -1
- package/web/assets/LaunchServicesPage-cRa4PpoA.js +0 -1
- package/web/assets/LaunchShell-Xp_uKnnV.js +0 -1
- package/web/assets/LogViewer-DEa33rcG.js +0 -3
- package/web/assets/OrgKeyPrompt-DjAzt1_e.js +0 -1
- package/web/assets/OrgLogo-B90FSNG_.js +0 -1
- package/web/assets/ProcessDetailPage-CWOy22x2.js +0 -1
- package/web/assets/ProcessMetrics-C2I4giT-.js +0 -51
- package/web/assets/RandomJobTestPage-DwHtCAFt.js +0 -2
- package/web/assets/ScenarioEditorPage-CsqHIJjY.js +0 -14
- package/web/assets/ScenarioEditorPage-GmFIXPDj.css +0 -1
- package/web/assets/SendToChatDialog-CKm3Uyu8.js +0 -1
- package/web/assets/ServiceControlsBar-Cqr7rrv_.js +0 -1
- package/web/assets/ServiceDetailPage-CcBr0uNs.js +0 -2
- package/web/assets/ServiceFormPage-CzSFKd5J.js +0 -1
- package/web/assets/SettingsPage-BXY3tCv6.js +0 -2063
- package/web/assets/UnlockPage-Dz_ZeUOS.js +0 -1
- package/web/assets/VaultMigrationPage-ac8mXUny.js +0 -1
- package/web/assets/VersionBadge-DkNYiMGe.js +0 -1
- package/web/assets/WikiPage-ZAFnZhOV.js +0 -1
- package/web/assets/WikiView-CaUVD3f1.css +0 -1
- package/web/assets/WikiView-DEv8qkPA.js +0 -1
- package/web/assets/add-scalar-classes-DsQIWkxF.js +0 -387
- package/web/assets/card-BFnzVWOY.js +0 -32
- package/web/assets/client-DI09uuoY.js +0 -24
- package/web/assets/cloud-chat.store-DiiPfn2Z.js +0 -1
- package/web/assets/cloud-client-CvBR_p1A.js +0 -1
- package/web/assets/cloud-session-B__x9RFv.js +0 -2
- package/web/assets/cloud-session-CL_GKNrJ.js +0 -1
- package/web/assets/column-CrgQlR1x.js +0 -763
- package/web/assets/index-rUoTy8xc.css +0 -1
- package/web/assets/interface-content-folder.svg-Vn-2b_F8.js +0 -1
- package/web/assets/modal-BmOMX0EL.js +0 -5
- package/web/assets/modal-X_BQCOfK.js +0 -1
- package/web/assets/process.store-C0m4Wixd.js +0 -1
- package/web/assets/project-launch.store-GKs5Jjsm.js +0 -1
- package/web/assets/project.store-C_os4Nr_.js +0 -1
- package/web/assets/router-29Kkqv0z.js +0 -1
- package/web/assets/settings-scope-nt8KoQ24.js +0 -1
- package/web/assets/src-BFi137TM.js +0 -1
- package/web/assets/tabpanel-D9tIljjF.js +0 -150
- package/web/assets/theme-To2Yx9kx.js +0 -1
- package/web/assets/trpc-DiE7rC1k.js +0 -1
- package/web/assets/useAiChatDrawer-DorHkhHZ.js +0 -1
- package/web/assets/useCloudOrg-ieBKFf0P.js +0 -1
- package/web/assets/useEnvVarAutocomplete-Dqk4Xmzl.js +0 -1
- package/web/assets/useServiceUrlHost-D3DylMsX.js +0 -1
- /package/{agent-manager-TUFAFC6U.js.map → agent-manager-FUU72VGH.js.map} +0 -0
- /package/{chat-IQBWQCTK.js.map → chat-C26CBAZX.js.map} +0 -0
- /package/{chunk-GISLEYNE.js.map → chunk-FJLMXLMK.js.map} +0 -0
- /package/{chunk-7JAJSV4L.js.map → chunk-J4GLFY7G.js.map} +0 -0
- /package/{companion-YQ7CGW7W.js.map → companion-Q67RAO3N.js.map} +0 -0
- /package/{node-JU7A5NDT.js.map → node-4UUJN2WG.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ai as e,Di as t,Hn as n,Ma as r,Pi as i,Ri as a,Ua as o,Vi as s,ca as c,ja as l,xa as u}from"./index-C0stqCbw.js";import{i as d,n as f,r as p}from"./useProjectCatalog-BdouNxux.js";var m=[`src`],h=n(s({__name:`OrgLogo`,props:{orgId:{},name:{default:``},size:{default:20}},setup(n){let s=n,h=o(!1),g=p(),_=d(),v=e(()=>_.value[s.orgId]??f(s.orgId,g.value[s.orgId])),y=e(()=>(s.name||`?`).charAt(0).toUpperCase());return u(v,()=>{h.value=!1}),(e,o)=>(c(),i(`span`,{class:`org-logo`,style:l({"--org-logo-size":`${n.size}px`})},[h.value?(c(),i(t,{key:1},[a(r(y.value),1)],64)):(c(),i(`img`,{key:0,src:v.value,alt:``,onError:o[0]||=e=>h.value=!0},null,40,m))],4))}}),[[`__scopeId`,`data-v-6364c3cc`]]);export{h as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Ai as e,Di as t,En as ee,Hn as n,Kn as r,Ma as i,Mi as te,Ni as a,Pi as o,Qa as s,Ua as c,Vi as l,ar as ne,bn as re,ca as u,ia as ie,it as ae,ji as d,jn as f,mr as oe,oa as se,zi as p}from"./index-C0stqCbw.js";import"./cloud-session-B__x9RFv.js";import"./src-BFi137TM.js";import{t as ce}from"./ProcessControls-DM8lfeiV.js";import"./useProjectCloudOrg-BHkyD0dP.js";import"./SendToChatDialog-CKm3Uyu8.js";import{n as m,t as h}from"./ProcessMetrics-C2I4giT-.js";import{t as le}from"./LogViewer-DEa33rcG.js";var ue={class:`process-detail`},de={key:0,class:`process-detail__loading`},fe={key:1,class:`process-detail__error`},pe={class:`process-detail__header`},me={class:`process-detail__header-left`},g={class:`process-detail__title`},_={class:`process-detail__id`},v={key:0,class:`process-detail__metrics`},y={class:`section-title`},b={key:1,class:`process-detail__metrics-skeleton`},x={class:`metric-skeleton`},S={class:`metric-skeleton`},C={class:`process-detail__info`},w={class:`info-grid`},T={key:0,class:`info-item`},E={class:`info-label`},D={class:`info-value`},O={key:1,class:`info-item`},k={class:`info-label`},A={class:`info-value`},j={class:`info-item`},M={class:`info-label`},N={class:`info-value`},P={key:2,class:`info-item`},F={class:`info-label`},I={class:`info-value`},L={key:3,class:`info-item`},R={class:`info-label`},he={class:`info-value`},ge={key:4,class:`info-item info-item--wide`},_e={class:`info-label`},ve={class:`info-value info-value--path`,"data-testid":`process-cwd`},ye={class:`process-detail__logs`},be={class:`section-title`},xe={class:`process-detail__log-container`},z=n(l({__name:`ProcessDetailPage`,props:{agentId:{},processId:{}},setup(n){let l=n,z=ne(),{t:B}=oe(),Se=ae(),Ce=e(()=>V.value?.agentId?Se.agents.find(e=>e.config.id===V.value.agentId)?.config.name??V.value.agentId:null),V=c(null),H=c([]),U=c(null),W=c(!1),G=c(!0),K=c(!0),q=c(null),J=null,Y=null,X=null,Z={running:{severity:`success`,icon:`pi pi-check-circle`},stopped:{severity:`secondary`,icon:`pi pi-stop-circle`},errored:{severity:`danger`,icon:`pi pi-times-circle`},starting:{severity:`warn`,icon:`pi pi-spin pi-spinner`}},Q=e(()=>Z[V.value?.state??`stopped`]??Z.stopped);async function $(){try{V.value=await f.process.get.query({agentId:l.agentId,id:l.processId})}catch(e){q.value=e instanceof Error?e.message:`Failed to load process`}}async function we(){K.value=!0;try{H.value=await f.process.logs.query({agentId:l.agentId,processId:l.processId})}catch{}finally{K.value=!1}}async function Te(){W.value=!0;try{U.value=await f.process.metrics.query({agentId:l.agentId,processId:l.processId})}catch{}finally{W.value=!1}}function Ee(){let e=f.process.onLog.subscribe({agentId:l.agentId,processId:l.processId},{onData(e){H.value=[...H.value,e],H.value.length>1e4&&(H.value=H.value.slice(H.value.length-1e4))}});J=()=>e.unsubscribe()}function De(){let e=f.process.onStatus.subscribe({agentId:l.agentId,processId:l.processId},{onData(e){V.value=e}});Y=()=>e.unsubscribe()}function Oe(){let e=f.process.onMetrics.subscribe({agentId:l.agentId,processId:l.processId},{onData(e){U.value=e}});X=()=>e.unsubscribe()}function ke(){$()}return ie(async()=>{G.value=!0,await Promise.all([$(),we(),Te()]),G.value=!1,Ee(),De(),Oe()}),se(()=>{J?.(),Y?.(),X?.()}),(e,n)=>(u(),o(`div`,ue,[G.value?(u(),o(`div`,de,[p(s(ee),{style:{width:`3rem`,height:`3rem`}}),d(`span`,null,i(s(B)(`processDetail.loading`)),1)])):q.value?(u(),o(`div`,fe,[n[2]||=d(`i`,{class:`pi pi-exclamation-triangle`,style:{"font-size":`2rem`,color:`var(--p-red-500)`}},null,-1),d(`p`,null,i(q.value),1),p(s(r),{label:s(B)(`processDetail.goBack`),icon:`pi pi-arrow-left`,severity:`secondary`,onClick:n[0]||=e=>s(z).back()},null,8,[`label`])])):V.value?(u(),o(t,{key:2},[d(`div`,pe,[d(`div`,me,[p(s(r),{icon:`pi pi-arrow-left`,text:``,rounded:``,severity:`secondary`,"aria-label":s(B)(`processDetail.goBack`),onClick:n[1]||=e=>s(z).back()},null,8,[`aria-label`]),d(`div`,g,[d(`h1`,null,i(V.value.serviceId),1),d(`span`,_,i(V.value.id),1)]),p(s(re),{value:V.value.state,severity:Q.value.severity,icon:Q.value.icon},null,8,[`value`,`severity`,`icon`])]),p(ce,{"agent-id":l.agentId,"process-id":l.processId,state:V.value.state,onAction:ke},null,8,[`agent-id`,`process-id`,`state`])]),U.value||W.value?(u(),o(`section`,v,[d(`h2`,y,i(s(B)(`processDetail.metrics`)),1),U.value?(u(),te(h,{key:0,cpu:U.value.cpu,memory:U.value.memory},null,8,[`cpu`,`memory`])):(u(),o(`div`,b,[d(`div`,x,[p(s(m),{width:`4rem`,height:`0.75rem`,class:`mb-2`}),p(s(m),{width:`3rem`,height:`1.75rem`,class:`mb-3`}),p(s(m),{width:`100%`,height:`6px`,"border-radius":`4px`})]),d(`div`,S,[p(s(m),{width:`4rem`,height:`0.75rem`,class:`mb-2`}),p(s(m),{width:`3rem`,height:`1.75rem`,class:`mb-3`}),p(s(m),{width:`6rem`,height:`0.65rem`})])]))])):a(``,!0),d(`section`,C,[d(`div`,w,[V.value.pid?(u(),o(`div`,T,[d(`span`,E,i(s(B)(`processDetail.pid`)),1),d(`span`,D,i(V.value.pid),1)])):a(``,!0),V.value.agentId?(u(),o(`div`,O,[d(`span`,k,i(s(B)(`processDetail.agent`)),1),d(`span`,A,i(Ce.value),1)])):a(``,!0),d(`div`,j,[d(`span`,M,i(s(B)(`processDetail.restarts`)),1),d(`span`,N,i(V.value.restartCount),1)]),V.value.startedAt?(u(),o(`div`,P,[d(`span`,F,i(s(B)(`processDetail.started`)),1),d(`span`,I,i(new Date(V.value.startedAt).toLocaleString()),1)])):a(``,!0),V.value.exitCode==null?a(``,!0):(u(),o(`div`,L,[d(`span`,R,i(s(B)(`processDetail.exitCode`)),1),d(`span`,he,i(V.value.exitCode),1)])),V.value.cwd?(u(),o(`div`,ge,[d(`span`,_e,i(s(B)(`processDetail.cwd`)),1),d(`span`,ve,i(V.value.cwd),1)])):a(``,!0)])]),d(`section`,ye,[d(`h2`,be,i(s(B)(`processDetail.logs`)),1),d(`div`,xe,[p(le,{logs:H.value,loading:K.value,"service-label":V.value?.serviceId},null,8,[`logs`,`loading`,`service-label`])])])],64)):a(``,!0)]))}}),[[`__scopeId`,`data-v-bc7cc41f`]]);export{z as default};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import{Ai as e,Hn as t,Ma as n,Pi as r,Qa as i,Qr as a,Vi as o,Xi as s,Y as c,ca as l,er as u,hr as d,ja as f,ji as p,mr as m,zi as h}from"./index-C0stqCbw.js";var g=d.extend({name:`skeleton`,style:`
|
|
2
|
-
.p-skeleton {
|
|
3
|
-
display: block;
|
|
4
|
-
overflow: hidden;
|
|
5
|
-
background: dt('skeleton.background');
|
|
6
|
-
border-radius: dt('skeleton.border.radius');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.p-skeleton::after {
|
|
10
|
-
content: '';
|
|
11
|
-
animation: p-skeleton-animation 1.2s infinite;
|
|
12
|
-
height: 100%;
|
|
13
|
-
left: 0;
|
|
14
|
-
position: absolute;
|
|
15
|
-
right: 0;
|
|
16
|
-
top: 0;
|
|
17
|
-
transform: translateX(-100%);
|
|
18
|
-
z-index: 1;
|
|
19
|
-
background: linear-gradient(90deg, rgba(255, 255, 255, 0), dt('skeleton.animation.background'), rgba(255, 255, 255, 0));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
[dir='rtl'] .p-skeleton::after {
|
|
23
|
-
animation-name: p-skeleton-animation-rtl;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.p-skeleton-circle {
|
|
27
|
-
border-radius: 50%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-skeleton-animation-none::after {
|
|
31
|
-
animation: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
@keyframes p-skeleton-animation {
|
|
35
|
-
from {
|
|
36
|
-
transform: translateX(-100%);
|
|
37
|
-
}
|
|
38
|
-
to {
|
|
39
|
-
transform: translateX(100%);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
@keyframes p-skeleton-animation-rtl {
|
|
44
|
-
from {
|
|
45
|
-
transform: translateX(100%);
|
|
46
|
-
}
|
|
47
|
-
to {
|
|
48
|
-
transform: translateX(-100%);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
`,classes:{root:function(e){var t=e.props;return[`p-skeleton p-component`,{"p-skeleton-circle":t.shape===`circle`,"p-skeleton-animation-none":t.animation===`none`}]}},inlineStyles:{root:{position:`relative`}}}),_={name:`BaseSkeleton`,extends:u,props:{shape:{type:String,default:`rectangle`},size:{type:String,default:null},width:{type:String,default:`100%`},height:{type:String,default:`1rem`},borderRadius:{type:String,default:null},animation:{type:String,default:`wave`}},style:g,provide:function(){return{$pcSkeleton:this,$parentInstance:this}}};function v(e){"@babel/helpers - typeof";return v=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},v(e)}function y(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e){var t=x(e,`string`);return v(t)==`symbol`?t:t+``}function x(e,t){if(v(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(v(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var S={name:`Skeleton`,extends:_,inheritAttrs:!1,computed:{containerStyle:function(){return this.size?{width:this.size,height:this.size,borderRadius:this.borderRadius}:{width:this.width,height:this.height,borderRadius:this.borderRadius}},dataP:function(){return a(y({},this.shape,this.shape))}}},C=[`data-p`];function w(e,t,n,i,a,o){return l(),r(`div`,s({class:e.cx(`root`),style:[e.sx(`root`),o.containerStyle],"aria-hidden":`true`},e.ptmi(`root`),{"data-p":o.dataP}),null,16,C)}S.render=w;var T={class:`process-metrics`},E={class:`metric-card`},D={class:`metric-card__header`},O={class:`metric-card__label`},k={class:`metric-card__value`},A={class:`metric-card`},j={class:`metric-card__header`},M={class:`metric-card__label`},N={class:`metric-card__value`},P={class:`metric-card__sub`},F=t(o({__name:`ProcessMetrics`,props:{cpu:{},memory:{}},setup(t){let a=t,{t:o}=m();function s(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}let u=e(()=>Math.min(Math.round(a.cpu*100)/100,100)),d=e(()=>s(a.memory)),g=e(()=>a.cpu>=80?`#ef4444`:a.cpu>=50?`#f59e0b`:`#22c55e`);return(e,t)=>(l(),r(`div`,T,[p(`div`,E,[p(`div`,D,[t[0]||=p(`i`,{class:`pi pi-microchip`},null,-1),p(`span`,O,n(i(o)(`processMetrics.cpu`)),1)]),p(`div`,k,n(u.value)+`%`,1),h(i(c),{value:u.value,"show-value":!1,class:`metric-card__bar`,style:f({"--p-progressbar-value-background":g.value})},null,8,[`value`,`style`])]),p(`div`,A,[p(`div`,j,[t[1]||=p(`i`,{class:`pi pi-database`},null,-1),p(`span`,M,n(i(o)(`processMetrics.memory`)),1)]),p(`div`,N,n(d.value),1),p(`div`,P,n(i(o)(`processMetrics.bytes`,{count:a.memory.toLocaleString()})),1)])]))}}),[[`__scopeId`,`data-v-28e6b1ac`]]);export{S as n,F as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{Hn as e,Kn as t,Ma as n,Pi as r,Qa as i,Ri as a,Ua as o,Vi as s,Zi as c,ca as l,ia as u,ji as d,jn as f,oa as p,zi as m}from"./index-C0stqCbw.js";var h={class:`random-job-test`},g={class:`random-job-test__actions`},_={class:`random-job-test__meta`},v={key:0,class:`random-job-test__empty`},y={key:1},b=`runeya:random-job-test:job-id`,x=`runeya:random-job-test:logs`,S=e(s({__name:`RandomJobTestPage`,setup(e){let s=o(null),S=o(!1),C=o([]),w=o(null),T=null;function E(){s.value?sessionStorage.setItem(b,s.value):sessionStorage.removeItem(b),sessionStorage.setItem(x,JSON.stringify(C.value))}function D(e){C.value=[...C.value,e],C.value.length>2e3&&(C.value=C.value.slice(C.value.length-2e3)),E(),c(()=>{w.value&&(w.value.scrollTop=w.value.scrollHeight)})}function O(){T?.unsubscribe(),T=null}function k(e){O(),T=f.debug.streamRandomJob.subscribe({jobId:e},{onData(e){e.type===`tick`?D(`[${new Date(e.at).toLocaleTimeString()}] #${e.index} -> ${e.value.toFixed(8)}`):(D(`[${new Date(e.at).toLocaleTimeString()}] done: ${e.reason}`),S.value=!1,s.value=null,E())},onError(e){D(`[sub] error: ${e.message}`),S.value=!1,E()},onComplete(){D(`[sub] complete`),S.value=!1,E()}}),D(`[sub] started for job ${e}`)}async function A(){if(S.value)return;C.value=[],E();let e=await f.debug.startRandomJob.mutate({intervalMs:300,maxTicks:1e3});s.value=e.jobId,S.value=!0,E(),D(`[job] started id=${e.jobId}, intervalMs=${e.intervalMs}, maxTicks=${e.maxTicks}`),k(e.jobId)}async function j(){if(s.value)try{await f.debug.stopRandomJob.mutate({jobId:s.value}),D(`[job] stop requested id=${s.value}`),S.value=!1,s.value=null,E()}catch(e){D(`[job] stop error: ${e.message}`)}}function M(){C.value=[],E()}return u(async()=>{let e=sessionStorage.getItem(x);if(e)try{let t=JSON.parse(e);Array.isArray(t)&&(C.value=t)}catch{}let t=sessionStorage.getItem(b);if(t){s.value=t;try{let e=await f.debug.randomJobStatus.query({jobId:t});S.value=e.running,E(),e.running?(D(`[job] reconnected id=${t}, tick=${e.tick}`),k(t)):(D(`[job] previous job ended (id=${t})`),s.value=null,E())}catch{S.value=!1,s.value=null,D(`[job] previous job not found`),E()}}}),p(()=>{O()}),(e,o)=>(l(),r(`div`,h,[o[3]||=d(`header`,{class:`random-job-test__header`},[d(`h1`,null,`Random Job Test`),d(`p`,null,`Click start to launch a server job and stream Math.random() values in real time.`)],-1),d(`div`,g,[m(i(t),{label:`Start job`,icon:`pi pi-play`,disabled:S.value,onClick:A},null,8,[`disabled`]),m(i(t),{label:`Stop`,icon:`pi pi-stop`,severity:`danger`,disabled:!S.value,onClick:j},null,8,[`disabled`]),m(i(t),{label:`Clear logs`,icon:`pi pi-trash`,severity:`secondary`,outlined:``,onClick:M})]),d(`div`,_,[d(`span`,null,[o[0]||=d(`strong`,null,`Job ID:`,-1),a(` `+n(s.value??`none`),1)]),d(`span`,null,[o[1]||=d(`strong`,null,`Status:`,-1),a(` `+n(S.value?`running`:`idle`),1)]),d(`span`,null,[o[2]||=d(`strong`,null,`Lines:`,-1),a(` `+n(C.value.length),1)])]),d(`section`,{ref_key:`logsEl`,ref:w,class:`random-job-test__logs`,"aria-live":`polite`},[C.value.length===0?(l(),r(`div`,v,`No logs yet.`)):(l(),r(`pre`,y,n(C.value.join(`
|
|
2
|
-
`)),1))],512)]))}}),[[`__scopeId`,`data-v-96a75827`]]);export{S as default};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import{Aa as e,Ai as t,B as n,Di as r,Ea as i,F as a,H as o,Hn as s,Ht as c,I as l,It as u,Ja as d,Ki as f,Kn as p,L as m,Ma as h,Mi as g,N as _,Ni as v,Nt as y,P as b,Pi as x,Qa as S,R as ee,Ri as te,Sa as ne,Ta as C,Ti as re,Tt as w,U as ie,Ua as T,Ui as ae,V as oe,Vi as E,Wn as se,Xi as ce,Zi as le,ar as ue,at as D,ca as O,da as k,fi as de,ft as A,ga as fe,ia as pe,ir as me,ja as he,ji as j,jn as ge,ka as _e,la as ve,ln as ye,ma as be,mr as xe,oa as Se,ot as Ce,pa as we,pi as Te,pt as Ee,rn as De,ua as Oe,un as ke,ur as Ae,wi as je,xa as Me,xn as Ne,ya as Pe,z as Fe,zi as M}from"./index-C0stqCbw.js";import{t as Ie}from"./uuid-H0yY5A03.js";import{t as Le}from"./checkbox-D2Iuu4UI.js";import{t as Re}from"./multiselect-Dn8j6BKj.js";var ze={name:`ControlButton`,compatConfig:{MODE:3}},Be=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},N={type:`button`,class:`vue-flow__controls-button`};function P(e,t,n,r,i,a){return O(),x(`button`,N,[k(e.$slots,`default`)])}var F=Be(ze,[[`render`,P]]),Ve={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`},He=[j(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`},null,-1)];function Ue(e,t){return O(),x(`svg`,Ve,He)}var I={render:Ue},We={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`},Ge=[j(`path`,{d:`M0 0h32v4.2H0z`},null,-1)];function Ke(e,t){return O(),x(`svg`,We,Ge)}var qe={render:Ke},Je={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`},Ye=[j(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0 0 27.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94a.919.919 0 0 1-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`},null,-1)];function Xe(e,t){return O(),x(`svg`,Je,Ye)}var Ze={render:Xe},Qe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},$e=[j(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 0 0 0 13.714v15.238A3.056 3.056 0 0 0 3.048 32h18.285a3.056 3.056 0 0 0 3.048-3.048V13.714a3.056 3.056 0 0 0-3.048-3.047zM12.19 24.533a3.056 3.056 0 0 1-3.047-3.047 3.056 3.056 0 0 1 3.047-3.048 3.056 3.056 0 0 1 3.048 3.048 3.056 3.056 0 0 1-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`},null,-1)];function et(e,t){return O(),x(`svg`,Qe,$e)}var tt={render:et},L={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`},R=[j(`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 z(e,t){return O(),x(`svg`,L,R)}var B={render:z},nt=E({name:`Controls`,compatConfig:{MODE:3},props:{showZoom:{type:Boolean,default:!0},showFitView:{type:Boolean,default:!0},showInteractive:{type:Boolean,default:!0},fitViewParams:{},position:{default:()=>a.BottomLeft}},emits:[`zoomIn`,`zoomOut`,`fitView`,`interactionChange`],setup(e,{emit:t}){let{nodesDraggable:n,nodesConnectable:i,elementsSelectable:a,setInteractive:s,zoomIn:c,zoomOut:u,fitView:f,viewport:p,minZoom:m,maxZoom:h}=o(),_=d(()=>n.value||i.value||a.value),y=d(()=>p.value.zoom<=m.value),b=d(()=>p.value.zoom>=h.value);function ee(){c(),t(`zoomIn`)}function te(){u(),t(`zoomOut`)}function ne(){f(e.fitViewParams),t(`fitView`)}function re(){s(!_.value),t(`interactionChange`,!_.value)}return(e,t)=>(O(),g(S(l),{class:`vue-flow__controls`,position:e.position},{default:C(()=>[k(e.$slots,`top`),e.showZoom?(O(),x(r,{key:0},[k(e.$slots,`control-zoom-in`,{},()=>[M(F,{class:`vue-flow__controls-zoomin`,disabled:b.value,onClick:ee},{default:C(()=>[k(e.$slots,`icon-zoom-in`,{},()=>[(O(),g(be(S(I))))])]),_:3},8,[`disabled`])]),k(e.$slots,`control-zoom-out`,{},()=>[M(F,{class:`vue-flow__controls-zoomout`,disabled:y.value,onClick:te},{default:C(()=>[k(e.$slots,`icon-zoom-out`,{},()=>[(O(),g(be(S(qe))))])]),_:3},8,[`disabled`])])],64)):v(``,!0),e.showFitView?k(e.$slots,`control-fit-view`,{key:1},()=>[M(F,{class:`vue-flow__controls-fitview`,onClick:ne},{default:C(()=>[k(e.$slots,`icon-fit-view`,{},()=>[(O(),g(be(S(Ze))))])]),_:3})]):v(``,!0),e.showInteractive?k(e.$slots,`control-interactive`,{key:2},()=>[e.showInteractive?(O(),g(F,{key:0,class:`vue-flow__controls-interactive`,onClick:re},{default:C(()=>[_.value?k(e.$slots,`icon-unlock`,{key:0},()=>[(O(),g(be(S(B))))]):v(``,!0),_.value?v(``,!0):k(e.$slots,`icon-lock`,{key:1},()=>[(O(),g(be(S(tt))))])]),_:3})):v(``,!0)]):v(``,!0),k(e.$slots,`default`)]),_:3},8,[`position`]))}}),rt={value:()=>{}};function V(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new it(n)}function it(e){this._=e}function at(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}it.prototype=V.prototype={constructor:it,on:function(e,t){var n=this._,r=at(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=ot(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=st(n[i],e.name,t);else if(t==null)for(i in n)n[i]=st(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new it(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function ot(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function st(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=rt,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var ct=`http://www.w3.org/1999/xhtml`,lt={svg:`http://www.w3.org/2000/svg`,xhtml:ct,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function ut(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),lt.hasOwnProperty(t)?{space:lt[t],local:e}:e}function dt(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===ct&&t.documentElement.namespaceURI===ct?t.createElement(e):t.createElementNS(n,e)}}function ft(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function pt(e){var t=ut(e);return(t.local?ft:dt)(t)}function mt(){}function ht(e){return e==null?mt:function(){return this.querySelector(e)}}function gt(e){typeof e!=`function`&&(e=ht(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new q(r,this._parents)}function _t(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function vt(){return[]}function yt(e){return e==null?vt:function(){return this.querySelectorAll(e)}}function bt(e){return function(){return _t(e.apply(this,arguments))}}function H(e){e=typeof e==`function`?bt(e):yt(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new q(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 q(r,this._parents)}function At(e){return Array(e.length)}function jt(){return new q(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 q(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 q(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 q(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 q(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 K(){return!this.node()}function Jt(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 Yt(e){return function(){this.removeAttribute(e)}}function Xt(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Zt(e,t){return function(){this.setAttribute(e,t)}}function Qt(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function $t(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function en(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 tn(e,t){var n=ut(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Xt:Yt:typeof t==`function`?n.local?en:$t:n.local?Qt:Zt)(n,t))}function nn(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function rn(e){return function(){this.style.removeProperty(e)}}function an(e,t,n){return function(){this.style.setProperty(e,t,n)}}function on(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function sn(e,t,n){return arguments.length>1?this.each((t==null?rn:typeof t==`function`?on:an)(e,t,n??``)):cn(this.node(),e)}function cn(e,t){return e.style.getPropertyValue(t)||nn(e).getComputedStyle(e,null).getPropertyValue(t)}function ln(e){return function(){delete this[e]}}function un(e,t){return function(){this[e]=t}}function dn(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function fn(e,t){return arguments.length>1?this.each((t==null?ln:typeof t==`function`?dn:un)(e,t)):this.node()[e]}function pn(e){return e.trim().split(/^|\s+/)}function mn(e){return e.classList||new hn(e)}function hn(e){this._node=e,this._names=pn(e.getAttribute(`class`)||``)}hn.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 gn(e,t){for(var n=mn(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function _n(e,t){for(var n=mn(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function vn(e){return function(){gn(this,e)}}function yn(e){return function(){_n(this,e)}}function bn(e,t){return function(){(t.apply(this,arguments)?gn:_n)(this,e)}}function xn(e,t){var n=pn(e+``);if(arguments.length<2){for(var r=mn(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?bn:t?vn:yn)(n,t))}function Sn(){this.textContent=``}function Cn(e){return function(){this.textContent=e}}function wn(e){return function(){this.textContent=e.apply(this,arguments)??``}}function Tn(e){return arguments.length?this.each(e==null?Sn:(typeof e==`function`?wn:Cn)(e)):this.node().textContent}function En(){this.innerHTML=``}function Dn(e){return function(){this.innerHTML=e}}function On(e){return function(){this.innerHTML=e.apply(this,arguments)??``}}function kn(e){return arguments.length?this.each(e==null?En:(typeof e==`function`?On:Dn)(e)):this.node().innerHTML}function An(){this.nextSibling&&this.parentNode.appendChild(this)}function jn(){return this.each(An)}function Mn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Nn(){return this.each(Mn)}function Pn(e){var t=typeof e==`function`?e:pt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Fn(){return null}function In(e,t){var n=typeof e==`function`?e:pt(e),r=t==null?Fn:typeof t==`function`?t:ht(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Ln(){var e=this.parentNode;e&&e.removeChild(this)}function Rn(){return this.each(Ln)}function zn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Bn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vn(e){return this.select(e?Bn:zn)}function Hn(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function Un(e){return function(t){e.call(this,t,this.__data__)}}function Wn(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 Gn(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 Kn(e,t,n){return function(){var r=this.__on,i,a=Un(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 qn(e,t,n){var r=Wn(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?Kn:Gn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function Jn(e,t,n){var r=nn(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 Yn(e,t){return function(){return Jn(this,e,t)}}function Xn(e,t){return function(){return Jn(this,e,t.apply(this,arguments))}}function Zn(e,t){return this.each((typeof t==`function`?Xn:Yn)(e,t))}function*Qn(){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 $n=[null];function q(e,t){this._groups=e,this._parents=t}function er(){return new q([[document.documentElement]],$n)}function tr(){return this}q.prototype=er.prototype={constructor:q,select:gt,selectAll:H,selectChild:Tt,selectChildren:Ot,filter:kt,data:Lt,enter:jt,exit:zt,join:Bt,merge:Vt,selection:tr,order:G,sort:Ht,call:Wt,nodes:Gt,node:Kt,size:qt,empty:K,each:Jt,attr:tn,style:sn,property:fn,classed:xn,text:Tn,html:kn,raise:jn,lower:Nn,append:Pn,insert:In,remove:Rn,clone:Vn,datum:Hn,on:qn,dispatch:Zn,[Symbol.iterator]:Qn};function nr(e){return typeof e==`string`?new q([[document.querySelector(e)]],[document.documentElement]):new q([[e]],$n)}function rr(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ir(e,t){if(e=rr(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 ar={capture:!0,passive:!1};function or(e){e.preventDefault(),e.stopImmediatePropagation()}function sr(e){var t=e.document.documentElement,n=nr(e).on(`dragstart.drag`,or,ar);`onselectstart`in t?n.on(`selectstart.drag`,or,ar):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function cr(e,t){var n=e.document.documentElement,r=nr(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,or,ar),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 lr(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ur(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function dr(){}var fr=.7,pr=1/fr,mr=`\\s*([+-]?\\d+)\\s*`,hr=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,J=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,gr=/^#([0-9a-f]{3,8})$/,_r=RegExp(`^rgb\\(${mr},${mr},${mr}\\)$`),vr=RegExp(`^rgb\\(${J},${J},${J}\\)$`),yr=RegExp(`^rgba\\(${mr},${mr},${mr},${hr}\\)$`),br=RegExp(`^rgba\\(${J},${J},${J},${hr}\\)$`),xr=RegExp(`^hsl\\(${hr},${J},${J}\\)$`),Sr=RegExp(`^hsla\\(${hr},${J},${J},${hr}\\)$`),Cr={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};lr(dr,Or,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wr,formatHex:wr,formatHex8:Tr,formatHsl:Er,formatRgb:Dr,toString:Dr});function wr(){return this.rgb().formatHex()}function Tr(){return this.rgb().formatHex8()}function Er(){return Br(this).formatHsl()}function Dr(){return this.rgb().formatRgb()}function Or(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=gr.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kr(t):n===3?new Y(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ar(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ar(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=_r.exec(e))?new Y(t[1],t[2],t[3],1):(t=vr.exec(e))?new Y(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yr.exec(e))?Ar(t[1],t[2],t[3],t[4]):(t=br.exec(e))?Ar(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xr.exec(e))?zr(t[1],t[2]/100,t[3]/100,1):(t=Sr.exec(e))?zr(t[1],t[2]/100,t[3]/100,t[4]):Cr.hasOwnProperty(e)?kr(Cr[e]):e===`transparent`?new Y(NaN,NaN,NaN,0):null}function kr(e){return new Y(e>>16&255,e>>8&255,e&255,1)}function Ar(e,t,n,r){return r<=0&&(e=t=n=NaN),new Y(e,t,n,r)}function jr(e){return e instanceof dr||(e=Or(e)),e?(e=e.rgb(),new Y(e.r,e.g,e.b,e.opacity)):new Y}function Mr(e,t,n,r){return arguments.length===1?jr(e):new Y(e,t,n,r??1)}function Y(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}lr(Y,Mr,ur(dr,{brighter(e){return e=e==null?pr:pr**+e,new Y(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?fr:fr**+e,new Y(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Y(Lr(this.r),Lr(this.g),Lr(this.b),Ir(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:Nr,formatHex:Nr,formatHex8:Pr,formatRgb:Fr,toString:Fr}));function Nr(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}`}function Pr(){return`#${Rr(this.r)}${Rr(this.g)}${Rr(this.b)}${Rr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Fr(){let e=Ir(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Lr(this.r)}, ${Lr(this.g)}, ${Lr(this.b)}${e===1?`)`:`, ${e})`}`}function Ir(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Lr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Rr(e){return e=Lr(e),(e<16?`0`:``)+e.toString(16)}function zr(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new X(e,t,n,r)}function Br(e){if(e instanceof X)return new X(e.h,e.s,e.l,e.opacity);if(e instanceof dr||(e=Or(e)),!e)return new X;if(e instanceof X)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 X(o,s,c,e.opacity)}function Vr(e,t,n,r){return arguments.length===1?Br(e):new X(e,t,n,r??1)}function X(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}lr(X,Vr,ur(dr,{brighter(e){return e=e==null?pr:pr**+e,new X(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?fr:fr**+e,new X(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 Y(Wr(e>=240?e-240:e+120,i,r),Wr(e,i,r),Wr(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new X(Hr(this.h),Ur(this.s),Ur(this.l),Ir(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=Ir(this.opacity);return`${e===1?`hsl(`:`hsla(`}${Hr(this.h)}, ${Ur(this.s)*100}%, ${Ur(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function Hr(e){return e=(e||0)%360,e<0?e+360:e}function Ur(e){return Math.max(0,Math.min(1,e||0))}function Wr(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 Gr=e=>()=>e;function Kr(e,t){return function(n){return e+n*t}}function qr(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Jr(e){return(e=+e)==1?Yr:function(t,n){return n-t?qr(t,n,e):Gr(isNaN(t)?n:t)}}function Yr(e,t){var n=t-e;return n?Kr(e,n):Gr(isNaN(e)?t:e)}var Xr=function e(t){var n=Jr(t);function r(e,t){var r=n((e=Mr(e)).r,(t=Mr(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=Yr(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 Zr(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Qr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$r=new RegExp(Qr.source,`g`);function ei(e){return function(){return e}}function ti(e){return function(t){return e(t)+``}}function ni(e,t){var n=Qr.lastIndex=$r.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Qr.exec(e))&&(i=$r.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:Zr(r,i)})),n=$r.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ti(c[0].x):ei(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 ri=180/Math.PI,ii={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function ai(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)*ri,skewX:Math.atan(c)*ri,scaleX:o,scaleY:s}}var oi;function si(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?ii:ai(t.a,t.b,t.c,t.d,t.e,t.f)}function ci(e){return e==null||(oi||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),oi.setAttribute(`transform`,e),!(e=oi.transform.baseVal.consolidate()))?ii:(e=e.matrix,ai(e.a,e.b,e.c,e.d,e.e,e.f))}function li(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:Zr(e,i)},{i:c-2,x:Zr(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:Zr(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:Zr(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:Zr(e,n)},{i:s-2,x:Zr(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 ui=li(si,`px, `,`px)`,`deg)`),di=li(ci,`, `,`)`,`)`),fi=1e-12;function pi(e){return((e=Math.exp(e))+1/e)/2}function mi(e){return((e=Math.exp(e))-1/e)/2}function hi(e){return((e=Math.exp(2*e))-1)/(e+1)}var gi=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<fi)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=pi(y),c=s/(n*g)*(i*hi(t*r+y)-mi(y));return[a+c*d,o+c*f,s*i/pi(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),_i=0,vi=0,yi=0,bi=1e3,xi,Si,Ci=0,wi=0,Ti=0,Ei=typeof performance==`object`&&performance.now?performance:Date,Di=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Oi(){return wi||=(Di(ki),Ei.now()+Ti)}function ki(){wi=0}function Ai(){this._call=this._time=this._next=null}Ai.prototype=ji.prototype={constructor:Ai,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Oi():+n)+(t==null?0:+t),!this._next&&Si!==this&&(Si?Si._next=this:xi=this,Si=this),this._call=e,this._time=n,Ii()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ii())}};function ji(e,t,n){var r=new Ai;return r.restart(e,t,n),r}function Mi(){Oi(),++_i;for(var e=xi,t;e;)(t=wi-e._time)>=0&&e._call.call(void 0,t),e=e._next;--_i}function Ni(){wi=(Ci=Ei.now())+Ti,_i=vi=0;try{Mi()}finally{_i=0,Fi(),wi=0}}function Pi(){var e=Ei.now(),t=e-Ci;t>bi&&(Ti-=t,Ci=e)}function Fi(){for(var e,t=xi,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:xi=n);Si=e,Ii(r)}function Ii(e){_i||(vi&&=clearTimeout(vi),e-wi>24?(e<1/0&&(vi=setTimeout(Ni,e-Ei.now()-Ti)),yi&&=clearInterval(yi)):(yi||=(Ci=Ei.now(),setInterval(Pi,bi)),_i=1,Di(Ni)))}function Li(e,t,n){var r=new Ai;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var Ri=V(`start`,`end`,`cancel`,`interrupt`),zi=[],Bi=0,Vi=1,Hi=2,Ui=3,Wi=4,Gi=5,Ki=6;function qi(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Yi(e,n,{name:t,index:r,group:i,on:Ri,tween:zi,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Bi})}function Ji(e,t){var n=Q(e,t);if(n.state>Bi)throw Error(`too late; already scheduled`);return n}function Z(e,t){var n=Q(e,t);if(n.state>Ui)throw Error(`too late; already running`);return n}function Q(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function Yi(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=ji(a,0,n.time);function a(e){n.state=Vi,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!==Vi)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===Ui)return Li(o);f.state===Wi?(f.state=Ki,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=Ki,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(Li(function(){n.state===Ui&&(n.state=Wi,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=Hi,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===Hi){for(n.state=Ui,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=Gi,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===Gi&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=Ki,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function Xi(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>Hi&&r.state<Gi,r.state=Ki,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Zi(e){return this.each(function(){Xi(this,e)})}function Qi(e,t){var n,r;return function(){var i=Z(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 $i(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Z(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 ea(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=Q(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?Qi:$i)(n,e,t))}function ta(e,t,n){var r=e._id;return e.each(function(){var e=Z(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return Q(e,r).value[t]}}function na(e,t){var n;return(typeof t==`number`?Zr:t instanceof Or?Xr:(n=Or(t))?(t=n,Xr):ni)(e,t)}function ra(e){return function(){this.removeAttribute(e)}}function ia(e){return function(){this.removeAttributeNS(e.space,e.local)}}function aa(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 oa(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 sa(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 ca(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 la(e,t){var n=ut(e),r=n===`transform`?di:na;return this.attrTween(e,typeof t==`function`?(n.local?ca:sa)(n,r,ta(this,`attr.`+e,t)):t==null?(n.local?ia:ra)(n):(n.local?oa:aa)(n,r,t))}function ua(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function da(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function fa(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 pa(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&ua(e,i)),n}return i._value=t,i}function ma(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=ut(e);return this.tween(n,(r.local?fa:pa)(r,t))}function ha(e,t){return function(){Ji(this,e).delay=+t.apply(this,arguments)}}function ga(e,t){return t=+t,function(){Ji(this,e).delay=t}}function _a(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?ha:ga)(t,e)):Q(this.node(),t).delay}function va(e,t){return function(){Z(this,e).duration=+t.apply(this,arguments)}}function ya(e,t){return t=+t,function(){Z(this,e).duration=t}}function ba(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?va:ya)(t,e)):Q(this.node(),t).duration}function xa(e,t){if(typeof t!=`function`)throw Error();return function(){Z(this,e).ease=t}}function Sa(e){var t=this._id;return arguments.length?this.each(xa(t,e)):Q(this.node(),t).ease}function Ca(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Z(this,e).ease=n}}function wa(e){if(typeof e!=`function`)throw Error();return this.each(Ca(this._id,e))}function Ta(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 eo(r,this._parents,this._name,this._id)}function Ea(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 eo(o,this._parents,this._name,this._id)}function Da(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 Oa(e,t,n){var r,i,a=Da(t)?Ji:Z;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function ka(e,t){var n=this._id;return arguments.length<2?Q(this.node(),n).on.on(e):this.each(Oa(n,e,t))}function Aa(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ja(){return this.on(`end.remove`,Aa(this._id))}function Ma(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=ht(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,qi(l[f],t,n,f,l,Q(u,n)));return new eo(a,this._parents,t,n)}function Na(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=yt(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=Q(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&qi(p,t,n,h,f,m);a.push(f),o.push(u)}return new eo(a,o,t,n)}var Pa=er.prototype.constructor;function Fa(){return new Pa(this._groups,this._parents)}function Ia(e,t){var n,r,i;return function(){var a=cn(this,e),o=(this.style.removeProperty(e),cn(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function La(e){return function(){this.style.removeProperty(e)}}function Ra(e,t,n){var r,i=n+``,a;return function(){var o=cn(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function za(e,t,n){var r,i,a;return function(){var o=cn(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),cn(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function Ba(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Z(this,e),l=c.on,u=c.value[a]==null?s||=La(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function Va(e,t,n){var r=(e+=``)==`transform`?ui:na;return t==null?this.styleTween(e,Ia(e,r)).on(`end.style.`+e,La(e)):typeof t==`function`?this.styleTween(e,za(e,r,ta(this,`style.`+e,t))).each(Ba(this._id,e)):this.styleTween(e,Ra(e,r,t),n).on(`end.style.`+e,null)}function Ha(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Ua(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ha(e,a,n)),r}return a._value=t,a}function Wa(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,Ua(e,t,n??``))}function Ga(e){return function(){this.textContent=e}}function Ka(e){return function(){this.textContent=e(this)??``}}function qa(e){return this.tween(`text`,typeof e==`function`?Ka(ta(this,`text`,e)):Ga(e==null?``:e+``))}function Ja(e){return function(t){this.textContent=e.call(this,t)}}function Ya(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Ja(r)),t}return r._value=e,r}function Xa(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,Ya(e))}function Za(){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=Q(c,t);qi(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new eo(r,this._parents,e,n)}function Qa(){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=Z(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 $a=0;function eo(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function to(){return++$a}var no=er.prototype;eo.prototype={constructor:eo,select:Ma,selectAll:Na,selectChild:no.selectChild,selectChildren:no.selectChildren,filter:Ta,merge:Ea,selection:Fa,transition:Za,call:no.call,nodes:no.nodes,node:no.node,size:no.size,empty:no.empty,each:no.each,on:ka,attr:la,attrTween:ma,style:Va,styleTween:Wa,text:qa,textTween:Xa,remove:ja,tween:ea,delay:_a,duration:ba,ease:Sa,easeVarying:wa,end:Qa,[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 eo?(t=e._id,e=e._name):(t=to(),(n=io).time=Oi(),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])&&qi(c,e,t,l,o,n||ao(c,t));return new eo(r,this._parents,e,t)}er.prototype.interrupt=Zi,er.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=gi,l=V(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,go).on(`wheel.zoom`,te,{passive:!1}).on(`mousedown.zoom`,ne).on(`dblclick.zoom`,C).filter(i).on(`touchstart.zoom`,re).on(`touchmove.zoom`,w).on(`touchend.zoom touchcancel.zoom`,ie).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 ee(e,t)}function ee(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}ee.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=nr(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 te(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=ir(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)],Xi(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 ne(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=nr(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=ir(t,i),l=t.clientX,u=t.clientY;sr(t.view),fo(t),a.mouse=[c,this.__zoom.invert(c)],Xi(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]=ir(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),cr(e.view,a.moved),po(e),a.event(e).end()}}function C(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=ir(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?nr(this).transition().duration(s).call(x,d,c,r):nr(this).call(_.transform,d,c,r)}}function re(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=ir(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)),Xi(this),a.start())}}function w(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=ir(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 ie(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=ir(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=nr(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=E({name:`MiniMapNode`,compatConfig:{MODE:3},inheritAttrs:!1,props:{id:{},type:{},selected:{type:Boolean},dragging:{type:Boolean},position:{},dimensions:{},borderRadius:{},color:{},shapeRendering:{},strokeColor:{},strokeWidth:{},hidden:{type:Boolean}},emits:[`click`,`dblclick`,`mouseenter`,`mousemove`,`mouseleave`],setup(t,{emit:n}){let i=t,a=f(xo),o=fe(),s=d(()=>o.style??{});function c(e){n(`click`,e)}function l(e){n(`dblclick`,e)}function u(e){n(`mouseenter`,e)}function p(e){n(`mousemove`,e)}function m(e){n(`mouseleave`,e)}return(t,n)=>!t.hidden&&t.dimensions.width!==0&&t.dimensions.height!==0?(O(),x(r,{key:0},[S(a)[`node-${i.type}`]?(O(),g(be(S(a)[`node-${i.type}`]),e(ce({key:0},{...i,...t.$attrs})),null,16)):(O(),x(`rect`,ce({key:1,id:t.id},t.$attrs,{class:[`vue-flow__minimap-node`,{selected:t.selected,dragging:t.dragging}],x:t.position.x,y:t.position.y,rx:t.borderRadius,ry:t.borderRadius,width:t.dimensions.width,height:t.dimensions.height,fill:t.color||s.value.background||s.value.backgroundColor,stroke:t.strokeColor,"stroke-width":t.strokeWidth,"shape-rendering":t.shapeRendering,onClick:c,onDblclick:l,onMouseenter:u,onMousemove:p,onMouseleave:m}),null,16,So))],64)):v(``,!0)}}),wo=[`width`,`height`,`viewBox`,`aria-labelledby`],To=[`id`],Eo=[`d`,`fill`,`stroke`,`stroke-width`],Do=E({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(e,{emit:i}){let a=Pe(),s=fe(),{id:c,edges:u,viewport:f,translateExtent:p,dimensions:m,emits:_,d3Selection:y,d3Zoom:b,getNodesInitialized:te}=o(),re=T();ve(xo,a);let w=d(()=>e.width??s.style?.width??200),ae=d(()=>e.height??s.style?.height??150),E=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`,se=t(()=>typeof e.nodeColor==`string`?()=>e.nodeColor:e.nodeColor),ce=t(()=>typeof e.nodeStrokeColor==`string`?()=>e.nodeStrokeColor:e.nodeStrokeColor),le=t(()=>typeof e.nodeClassName==`string`?()=>e.nodeClassName:typeof e.nodeClassName==`function`?e.nodeClassName:()=>``),ue=t(()=>n(te.value.filter(e=>!e.hidden))),D=t(()=>({x:-f.value.x/f.value.zoom,y:-f.value.y/f.value.zoom,width:m.value.width/f.value.zoom,height:m.value.height/f.value.zoom})),k=t(()=>te.value&&te.value.length?ee(ue.value,D.value):D.value),de=t(()=>{let e=k.value.width/w.value,t=k.value.height/ae.value;return Math.max(e,t)}),A=t(()=>{let t=de.value*w.value,n=de.value*ae.value,r=e.offsetScale*de.value;return{offset:r,x:k.value.x-(t-k.value.width)/2-r,y:k.value.y-(n-k.value.height)/2-r,width:t+r*2,height:n+r*2}}),pe=t(()=>!A.value.x||!A.value.y?``:`
|
|
2
|
-
M${A.value.x-A.value.offset},${A.value.y-A.value.offset}
|
|
3
|
-
h${A.value.width+A.value.offset*2}
|
|
4
|
-
v${A.value.height+A.value.offset*2}
|
|
5
|
-
h${-A.value.width-A.value.offset*2}z
|
|
6
|
-
M${D.value.x+e.maskBorderRadius},${D.value.y}
|
|
7
|
-
h${D.value.width-2*e.maskBorderRadius}
|
|
8
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},${e.maskBorderRadius}
|
|
9
|
-
v${D.value.height-2*e.maskBorderRadius}
|
|
10
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},${e.maskBorderRadius}
|
|
11
|
-
h${-(D.value.width-2*e.maskBorderRadius)}
|
|
12
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 -${e.maskBorderRadius},-${e.maskBorderRadius}
|
|
13
|
-
v${-(D.value.height-2*e.maskBorderRadius)}
|
|
14
|
-
a${e.maskBorderRadius},${e.maskBorderRadius} 0 0 1 ${e.maskBorderRadius},-${e.maskBorderRadius}z`);ne(t=>{if(re.value){let n=nr(re.value),r=bo().wheelDelta(t=>ie(t)*(e.zoomStep/10)).on(`zoom`,e.pannable?t=>{if(t.sourceEvent.type!==`mousemove`||!y.value||!b.value)return;let n=de.value*Math.max(1,f.value.zoom)*(e.inversePan?-1:1),r={x:f.value.x-t.sourceEvent.movementX*n,y:f.value.y-t.sourceEvent.movementY*n},i=[[0,0],[m.value.width,m.value.height]],a=uo.translate(r.x,r.y).scale(f.value.zoom),o=b.value.constrain()(a,i,p.value);b.value.transform(y.value,o)}:()=>{}).on(`zoom.wheel`,e.zoomable?t=>{if(t.sourceEvent.type!==`wheel`||!y.value||!b.value)return;let n=t.sourceEvent.ctrlKey&&oe()?10:1,r=-t.sourceEvent.deltaY*(t.sourceEvent.deltaMode===1?.05:t.sourceEvent.deltaMode?1:.002)*e.zoomStep,i=f.value.zoom*2**(r*n);b.value.scaleTo(y.value,i)}:()=>{});n.call(r),t(()=>{n.on(`zoom`,null)})}},{flush:`post`});function me(e){let[t,n]=ir(e);i(`click`,{event:e,position:{x:t,y:n}})}function ge(e,t){let n={event:e,node:t,connectedEdges:Fe([t],u.value)};_.miniMapNodeClick(n),i(`nodeClick`,n)}function ye(e,t){let n={event:e,node:t,connectedEdges:Fe([t],u.value)};_.miniMapNodeDoubleClick(n),i(`nodeDblclick`,n)}function be(e,t){let n={event:e,node:t,connectedEdges:Fe([t],u.value)};_.miniMapNodeMouseEnter(n),i(`nodeMouseenter`,n)}function xe(e,t){let n={event:e,node:t,connectedEdges:Fe([t],u.value)};_.miniMapNodeMouseMove(n),i(`nodeMousemove`,n)}function Se(e,t){let n={event:e,node:t,connectedEdges:Fe([t],u.value)};_.miniMapNodeMouseLeave(n),i(`nodeMouseleave`,n)}return(e,t)=>(O(),g(S(l),{position:e.position,class:_e([`vue-flow__minimap`,{pannable:e.pannable,zoomable:e.zoomable}])},{default:C(()=>[(O(),x(`svg`,{ref_key:`el`,ref:re,width:w.value,height:ae.value,viewBox:[A.value.x,A.value.y,A.value.width,A.value.height].join(` `),role:`img`,"aria-labelledby":`vue-flow__minimap-${S(c)}`,onClick:me},[e.ariaLabel?(O(),x(`title`,{key:0,id:`vue-flow__minimap-${S(c)}`},h(e.ariaLabel),9,To)):v(``,!0),(O(!0),x(r,null,Oe(S(te),t=>(O(),g(Co,{id:t.id,key:t.id,f:``,position:t.computedPosition,dimensions:t.dimensions,selected:t.selected,dragging:t.dragging,style:he(t.style),class:_e(le.value(t)),color:se.value(t),"border-radius":e.nodeBorderRadius,"stroke-color":ce.value(t),"stroke-width":e.nodeStrokeWidth,"shape-rendering":S(E),type:t.type,hidden:t.hidden,onClick:e=>ge(e,t),onDblclick:e=>ye(e,t),onMouseenter:e=>be(e,t),onMousemove:e=>xe(e,t),onMouseleave:e=>Se(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)),j(`path`,{class:`vue-flow__minimap-mask`,d:pe.value,fill:e.maskColor,stroke:e.maskStrokeColor,"stroke-width":e.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:n}=xe();function r(t){let r=(typeof e==`function`?e():e.value)?.labels?.[t];if(!r)return Oo[t];let i=n.value;return r[i]??r[i.split(`-`)[0]]??Oo[t]}return t(()=>({group:r(`group`),node:r(`node`),role:r(`role`),leader:r(`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=s(E({__name:`ScenarioNodeEditor`,props:{node:{},groups:{},nodes:{},leaderId:{},preset:{},traversalMode:{}},emits:[`update`,`delete`,`set-leader`],setup(e,{emit:n}){let i=e,{t:a}=xe(),{claudeCodeAvailable:o,codexAvailable:s}=de(Ce()),c=n;function l(e){return e===`codex`?``:`sonnet`}let u=T({...i.node,aiCli:i.node.aiCli??`claude-code`,model:i.node.model??l(i.node.aiCli),injectParentOutputs:i.node.injectParentOutputs??!1,injectedAncestorIds:i.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(i.node);Me(()=>i.node,e=>{f=d(e),u.value=d(e)},{deep:!0}),Me(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=t(()=>i.preset?.roles.length?i.preset.roles.map(e=>({label:e.name,value:e.id})):[]),m=t(()=>[{label:`Claude Code${o.value?``:` — non installé`}`,value:`claude-code`,disabled:!o.value},{label:`Codex (OpenAI)${s.value?``:` — non installé`}`,value:`codex`,disabled:!s.value}]),_=t(()=>u.value.aiCli===`codex`?[]:[{label:a(`scenarioNodeEditor.modelHaiku`),value:`haiku`},{label:a(`scenarioNodeEditor.modelSonnet`),value:`sonnet`},{label:a(`scenarioNodeEditor.modelOpus`),value:`opus`}]);Me(()=>u.value.aiCli,(e,t)=>{if(e===t)return;let n={"claude-code":`sonnet`,codex:``};u.value.model=n[e]??`sonnet`});let y=t(()=>i.groups.map(e=>({label:e.name,value:e.id}))),b=t(()=>i.nodes.filter(e=>e.id!==i.node.id).map(e=>({label:e.label||e.id,value:e.id}))),ee=t(()=>i.traversalMode===`topological`);Me(()=>u.value.parentIds,()=>{let e=new Map(i.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 ne=t(()=>{let e=new Map(i.nodes.map(e=>[e.id,e])),t=new Set,n=[...i.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 i.nodes.filter(e=>t.has(e.id)).map(e=>({label:e.label||e.id,value:e.id}))}),C=t(()=>i.node.id===i.leaderId);t(()=>!C.value);let re=t(()=>!C.value),w=ko(()=>i.preset),ie=t(()=>i.preset?.roles.find(e=>e.id===u.value.role));return(e,t)=>(O(),x(`div`,Ao,[j(`div`,jo,[j(`div`,Mo,[j(`label`,No,h(S(a)(`scenarioNodeEditor.label`)),1),M(S(Ne),{id:`scennode-label`,modelValue:u.value.label,"onUpdate:modelValue":t[0]||=e=>u.value.label=e,class:`w-full`,size:`small`,placeholder:`${S(w).node} name`},null,8,[`modelValue`,`placeholder`])]),p.value.length?(O(),x(`div`,Po,[j(`label`,Fo,h(S(w).role),1),M(S(De),{"input-id":`scennode-role`,modelValue:u.value.role,"onUpdate:modelValue":t[1]||=e=>u.value.role=e,options:p.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`])])):v(``,!0)]),ie.value?.systemPrompt?(O(),x(`div`,Io,[j(`span`,Lo,h(S(a)(`scenarioNodeEditor.systemPrompt`)),1),j(`p`,Ro,h(ie.value.systemPrompt),1)])):v(``,!0),j(`div`,zo,[j(`div`,Bo,[j(`label`,Vo,h(S(w).group),1),M(S(De),{"input-id":`scennode-group`,modelValue:u.value.groupId,"onUpdate:modelValue":t[2]||=e=>u.value.groupId=e,options:y.value,"option-label":`label`,"option-value":`value`,placeholder:`Select a ${S(w).group.toLowerCase()}`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])]),re.value?(O(),x(`div`,Ho,[j(`label`,Uo,h(S(a)(`scenarioNodeEditor.reportsTo`)),1),M(S(De),{"input-id":`scennode-parent`,"model-value":u.value.parentIds[0]??null,options:b.value,"option-label":`label`,"option-value":`value`,placeholder:S(a)(`scenarioNodeEditor.noParent`),"show-clear":!0,class:`w-full`,size:`small`,"onUpdate:modelValue":t[3]||=e=>{u.value.parentIds=e?[e,...u.value.parentIds.slice(1)]:u.value.parentIds.slice(1)}},null,8,[`model-value`,`options`,`placeholder`])])):v(``,!0)]),u.value.type===`ask`?v(``,!0):(O(),x(r,{key:1},[j(`div`,Wo,[j(`div`,Go,[j(`label`,Ko,h(S(a)(`scenarioNodeEditor.aiRunner`)),1),M(S(De),{"input-id":`scennode-aicli`,modelValue:u.value.aiCli,"onUpdate:modelValue":t[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`])]),j(`div`,qo,[j(`label`,Jo,h(S(a)(`scenarioNodeEditor.model`)),1),u.value.aiCli===`codex`?(O(),x(`small`,Yo,h(S(a)(`scenarioNodeEditor.modelAuto`)),1)):(O(),g(S(De),{key:0,"input-id":`scennode-model`,modelValue:u.value.model,"onUpdate:modelValue":t[5]||=e=>u.value.model=e,options:_.value,"option-label":`label`,"option-value":`value`,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`]))])]),j(`div`,Xo,[M(S(Le),{modelValue:u.value.canAddNode,"onUpdate:modelValue":t[6]||=e=>u.value.canAddNode=e,binary:``,"input-id":`canAddNode`},null,8,[`modelValue`]),j(`label`,Zo,h(S(a)(`scenarioNodeEditor.canSpawnNodes`)),1)]),ee.value&&!C.value?(O(),x(r,{key:0},[j(`div`,Qo,[M(S(Le),{modelValue:u.value.injectParentOutputs,"onUpdate:modelValue":t[7]||=e=>u.value.injectParentOutputs=e,binary:``,"input-id":`injectParentOutputs`},null,8,[`modelValue`]),j(`label`,$o,h(S(a)(`scenarioNodeEditor.injectParentOutputs`)),1)]),ne.value.length>0?(O(),x(`div`,es,[j(`label`,ts,h(S(a)(`scenarioNodeEditor.injectedAncestorIds`)),1),M(S(Re),{"input-id":`scennode-ancestors`,modelValue:u.value.injectedAncestorIds,"onUpdate:modelValue":t[8]||=e=>u.value.injectedAncestorIds=e,options:ne.value,"option-label":`label`,"option-value":`value`,placeholder:S(a)(`scenarioNodeEditor.injectedAncestorIdsPlaceholder`),filter:``,class:`w-full`,size:`small`},null,8,[`modelValue`,`options`,`placeholder`])])):v(``,!0)],64)):v(``,!0)],64)),j(`div`,ns,[M(S(Le),{"model-value":C.value,binary:``,"input-id":`isLeader`,disabled:C.value,"onUpdate:modelValue":t[9]||=e=>c(`set-leader`,i.node.id)},null,8,[`model-value`,`disabled`]),j(`label`,rs,[te(h(S(w).leader)+` `,1),j(`span`,is,h(S(a)(`scenarioNodeEditor.entryPoint`)),1)])]),u.value.type===`ask`?(O(),x(`div`,as,[j(`label`,os,h(S(a)(`scenarioNodeEditor.question`)),1),M(S(ye),{id:`scennode-question`,modelValue:u.value.question,"onUpdate:modelValue":t[10]||=e=>u.value.question=e,rows:`4`,class:`w-full`,style:{resize:`none`},placeholder:S(a)(`scenarioNodeEditor.questionPlaceholder`)},null,8,[`modelValue`,`placeholder`])])):(O(),x(`div`,ss,[j(`label`,cs,h(S(a)(`scenarioNodeEditor.prompt`)),1),M(S(ye),{id:`scennode-prompt`,modelValue:u.value.prompt,"onUpdate:modelValue":t[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=s(E({__name:`ScenarioEditorPage`,setup(n){let{t:a}=xe(),s=me(),l=ue(),d=Ae(),f=T(!1),ee=T([]),ne=T(localStorage.getItem(dc)===`true`),ie=T(!1),oe=T(!1),E=D(),{setCenter:k,updateNode:de,getSelectedNodes:fe,getSelectedEdges:he,removeSelectedElements:ve,fitView:be,viewport:Ce}=o(fc);function Me(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 R.value){let n=t.parentIds.findIndex(n=>`e-${n}-${t.id}`===e);if(n!==-1){H(t.id,{parentIds:t.parentIds.filter((e,t)=>t!==n)});break}}W.value=void 0;return}for(let e of fe.value)L.value.some(t=>t.id===e.id)?mt(e.id):R.value.some(t=>t.id===e.id)&&bt(e.id)}}let Pe=t(()=>s.params.id),Fe=t(()=>!Pe.value),Re=T(`New scenario`),ze=T(``),Be=T(``),N=T(``),P=T(`hierarchical`),F=T(void 0),Ve=T(!1),He=T([]),Ue=t(()=>He.value.find(e=>e.id===F.value)),I=ko(Ue),We=T();function Ge(e){We.value?.toggle(e)}function Ke(e){We.value?.hide(),gt(e)}async function qe(){try{He.value=await ge.scenario.listPresets.query()}catch{}}let Je=T(!1),Ye=T(void 0),Xe=T(0);function Ze(e){F.value=e;let t=He.value.find(t=>t.id===e);t?.defaultTraversalMode&&(P.value=t.defaultTraversalMode),t?.initialData?(L.value=[...t.initialData.groups],R.value=[...t.initialData.nodes],N.value=t.initialData.leaderId,z.value=void 0,B.value=void 0):e||(L.value=[],R.value=[],N.value=``,z.value=void 0,B.value=void 0)}function Qe(){return R.value.length>0||L.value.length>0}function $e(e){let t=e?He.value.find(t=>t.id===e):void 0;(!e||t?.initialData)&&Qe()?(Ye.value=e,Je.value=!0):Ze(e)}function et(){Je.value=!1,Ze(Ye.value),Ye.value=void 0}function tt(){Je.value=!1,Ye.value=void 0,Xe.value++}let L=T([]),R=T([]),z=T(),B=T(),rt=T(!1),V=T(null),it=T(`ai`),at=t(()=>{let e=new Map;if(!z.value)return e;let t=z.value,n=R.value.find(e=>e.id===t);if(!n)return e;let r=R.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}),ot=t(()=>{let e=z.value?(()=>{let e=z.value,t=R.value.find(t=>t.id===e),n=R.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(R.value.filter(t=>e.has(t.id)&&t.groupId).map(e=>e.groupId)):null,n=B.value??null,r=n?new Set(R.value.filter(e=>e.groupId===n).map(e=>e.id)):null,i=L.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 R.value)for(let t of e.parentIds??[]){let n=st(e.id)<st(t),r=a.get(t)??{hasUp:!1,hasDown:!1};n?r.hasUp=!0:r.hasDown=!0,a.set(t,r)}let o=R.value.map(t=>{let n=a.get(t.id)??{hasUp:!1,hasDown:!1},i=at.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===N.value,type:t.type,roleName:Ue.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 st(e){let t=R.value.find(t=>t.id===e);return t?t.groupId?(L.value.find(e=>e.id===t.groupId)?.position.y??0)+t.position.y:t.position.y:0}let ct=t(()=>{let e=new Map;for(let t of R.value)e.set(t.id,0);let t=new Map;for(let e of R.value)t.set(e.id,[]);for(let e of R.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 R.value)e.get(t.id)===0&&i(t.id);return n}),lt=t(()=>{let e=[],t=P.value===`topological`;for(let n of R.value)for(let r of n.parentIds??[]){let i=`e-${r}-${n.id}`,a=W.value===i,o=!W.value&&!!z.value&&(z.value===r||z.value===n.id),s=a||o,c=ct.value.has(i),l=st(n.id)<st(r),u=R.value.find(e=>e.id===r)?.groupId??null,d=n.groupId??null,f=!!B.value&&u!==B.value&&d!==B.value||z.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});t(()=>R.value.map(e=>({id:e.id,label:e.label||e.id})));function ut(){let e={id:`group-${Ie().slice(0,8)}`,name:`Group ${L.value.length+1}`,position:{x:100*L.value.length,y:100*L.value.length},width:300,height:200};L.value=[...L.value,e]}let dt=T(!1),ft=T(null),pt=T(0);function mt(e){let t=R.value.filter(t=>t.groupId===e).length;if(t>0){ft.value=e,pt.value=t,dt.value=!0;return}ht(e)}function ht(e){let t=R.value.filter(t=>t.groupId===e).map(e=>e.id);R.value=R.value.filter(e=>!t.includes(e.id)).map(e=>({...e,parentIds:e.parentIds.filter(e=>!t.includes(e))})),L.value=L.value.filter(t=>t.id!==e),B.value===e&&(B.value=void 0),z.value&&t.includes(z.value)&&(z.value=void 0)}function gt(e=`ai`){if(!L.value.length){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.noGroupsSummary`),detail:a(`scenarioEditor.toast.noGroupsDetail`),life:3e3});return}it.value=e,V.value=L.value[0]?.id??null,rt.value=!0}function _t(e){if(!e)return{x:100,y:100};let t=R.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 vt(e){if(!e)return;let t=L.value.find(t=>t.id===e);if(!t)return;let n=R.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 L.value)t.id!==e&&(t.position.y??0)>=s&&U(t.id,{position:{x:t.position.x,y:(t.position.y??0)+c}})}function yt(){if(!V.value){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.groupRequiredSummary`),detail:a(`scenarioEditor.toast.groupRequiredDetail`),life:3e3});return}let e=`node-${Ie().slice(0,8)}`,t={id:e,type:it.value,parentIds:[],groupId:V.value,label:``,role:`other`,prompt:``,question:``,autoGenerated:!0,canAddNode:!1,aiCli:`claude-code`,model:`sonnet`,position:_t(V.value),injectParentOutputs:!1,injectedAncestorIds:[]};R.value=[...R.value,t],R.value.length===1&&(N.value=e),vt(V.value),rt.value=!1,z.value=e,le(()=>updateNodeInternals(R.value.map(e=>e.id)))}function bt(e){if(e===N.value){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.leaderSummary`),detail:a(`scenarioEditor.toast.leaderDetail`),life:3e3});return}let t=new Set(R.value.filter(t=>t.parentIds[0]===e).map(e=>e.id));R.value=R.value.filter(t=>t.id!==e).map(e=>t.has(e.id)?{...e,parentId:N.value}:e),z.value===e&&(z.value=void 0)}function H(e,t){R.value=R.value.map(n=>n.id===e?{...n,...t}:n);let n=R.value.find(t=>t.id===e);if(n&&(`label`in t&&de(e,{data:{label:n.label,isLeader:n.id===N.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}),R.value=R.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 R.value){let n=e.parentIds??[],r=n.findIndex(n=>`e-${n}-${e.id}`===t.id);if(r!==-1){H(e.id,{parentIds:n.filter((e,t)=>t!==r)});break}}}}function wt(e){for(let t of e)t.type===`dimensions`&&t.dimensions&&L.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&&L.value.find(e=>e.id===t.id)&&U(t.id,{position:t.position}),t.type===`remove`&&R.value.some(e=>e.id===t.id)&&bt(t.id)}function U(e,t){L.value=L.value.map(n=>n.id===e?{...n,...t}:n)}function Tt(e){let t=e.node.id,n=e.node.position,r=L.value.find(e=>e.id===t),i=R.value.find(e=>e.id===t);r?U(t,{position:n}):i&&(H(t,{position:n}),Et(t,n.y)),Mt({refit:!1})}function Et(e,t){let n=R.value.find(t=>t.id===e);if(!n)return;let r=n.parentIds[0]??null,i=new Set(R.value.filter(e=>(e.parentIds[0]??null)===r).map(e=>e.id));if(i.size<=1)return;let a=R.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=R.value.map((e,t)=>({n:e,i:t})).filter(({n:e})=>i.has(e.id)).map(({i:e})=>e),s=[...R.value];o.forEach((e,t)=>{s[e]=a[t]}),R.value=s}let W=T();function Dt(e){let t=e.edge.id;W.value===t?(W.value=void 0,ve({edges:[e.edge]})):W.value=t}function Ot(e){let t=e.node.id;W.value=void 0,L.value.some(e=>e.id===t)?B.value===t?(B.value=void 0,ve({nodes:[e.node]})):(B.value=t,z.value=void 0):R.value.some(e=>e.id===t)&&(z.value===t?(z.value=void 0,ve({nodes:[e.node]})):(z.value=t,B.value=void 0))}function kt(e){let t=e.target,n=e.source;if(n===t)return;let r=R.value.find(e=>e.id===t);if(!r)return;let i=r.parentIds??[];i.includes(n)||(P.value===`hierarchical`?(H(t,{parentIds:[n]}),i.length>0&&!ne.value&&(oe.value=!1,ie.value=!0)):H(t,{parentIds:[...i,n]}),le(()=>Mt({refit:!1})))}function At(){oe.value&&(ne.value=!0,localStorage.setItem(dc,`true`)),ie.value=!1}function jt(){R.value=R.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 R.value)t.set(e.id,[]);for(let e of R.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=R.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=R.value.filter(e=>e.parentIds.length===0),s=o.length>0?o.map(e=>e.id):[N.value];for(let e of s)a(e,0),r+=$+_c,i=void 0;for(let e of R.value){let t=n.get(e.id);t&&H(e.id,{position:t})}for(let e of L.value){let t=R.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&&H(e.id,{position:{x:t.x-i,y:t.y-a}})}}e&&le(()=>be({includeHiddenNodes:!1,padding:.1,maxZoom:Ce.value.zoom}))}function Nt(e){if(e===`hierarchical`){let e=R.value.filter(e=>e.parentIds.length>1).length;if(R.value.reduce((e,t)=>e+Math.max(0,t.parentIds.length-1),0),e>0){let e=new Map(R.value.map(e=>[e.id,e]));ee.value=R.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}))),f.value=!0;return}jt()}P.value=e}function Pt(e){z.value&&H(z.value,e)}function Ft(e){bt(e)}function It(){let e=new Set(R.value.map(e=>e.id));e.has(N.value)||(N.value=R.value[0]?.id??`leader`),R.value=R.value.map(t=>{if(t.id===N.value)return{...t,parentIds:[]};let n=(t.parentIds??[]).filter(t=>e.has(t));return n.length===0&&t.id!==N.value?{...t,parentIds:[N.value]}:n.length===(t.parentIds??[]).length?t:{...t,parentIds:n}})}async function Lt(){if(Fe.value)return;await E.fetchScenarios();let e=E.scenarios.find(e=>e.id===Pe.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}Re.value=e.name,ze.value=e.icon??``,Be.value=e.description??``,N.value=e.leaderId,P.value=e.traversalMode??`hierarchical`,F.value=e.presetId,Ve.value=e.isPublished??!1,L.value=[...e.groups],R.value=[...e.nodes]}async function Rt(){if(!Re.value.trim()){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.nameRequired`),life:3e3});return}if(!R.value.length){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.nodeRequired`),life:3e3});return}if(!R.value.some(e=>e.id===N.value)){d.add({severity:`warn`,summary:a(`scenarioEditor.toast.validationSummary`),detail:a(`scenarioEditor.toast.leaderRequired`),life:3e3});return}It();let e={name:Re.value.trim(),icon:ze.value.trim()||void 0,description:Be.value.trim()||void 0,leaderId:N.value,traversalMode:P.value,presetId:F.value,isPublished:Ve.value,groups:L.value,nodes:R.value};try{if(Fe.value){let t=await E.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 E.updateScenario(Pe.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=T(!1),Vt=T(``),G=T(!1),Ht=T(``),Ut=T(``),Wt=T(1),Gt=T(null),Kt=T(null),qt=y({leaderId:u().max(128),groups:w(A).max(100),nodes:w(Ee).max(500)}),K=T(null),Jt=null;function Yt(){!Vt.value.trim()||G.value||(Jt?.unsubscribe(),Ht.value=``,K.value=null,Ut.value=``,G.value=!0,Jt=ge.scenario.streamGenerateWithAI.subscribe({prompt:Vt.value.trim(),providerId:Gt.value??void 0,model:Kt.value??void 0,current:L.value.length>0||R.value.length>0?{leaderId:N.value,groups:L.value,nodes:R.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{K.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 Xt(){if(!K.value)return;let{leaderId:e,groups:t,nodes:n}=K.value;N.value=e,L.value=t,R.value=n,K.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 Zt=T(!1),Qt=T(!1),$t=T(``),en=T(``),tn=t(()=>JSON.stringify({name:Re.value,description:Be.value||void 0,leaderId:N.value,groups:L.value,nodes:R.value},null,2));async function nn(){await navigator.clipboard.writeText(tn.value),d.add({severity:`success`,summary:a(`scenarioEditor.toast.copiedSummary`),life:2e3})}let rn=y({leaderId:u().max(128),groups:w(A).max(100),nodes:w(Ee).max(500),name:u().max(200).optional(),description:u().max(2e3).optional()});function an(){en.value=``;try{let e=rn.parse(JSON.parse($t.value));e.name&&(Re.value=e.name),e.description&&(Be.value=e.description),N.value=e.leaderId,L.value=e.groups,R.value=e.nodes,Qt.value=!1,d.add({severity:`success`,summary:a(`scenarioEditor.toast.importedSummary`),life:2e3})}catch(e){en.value=e.message}}return Se(()=>{Jt?.unsubscribe()}),pe(async()=>{await Promise.all([Lt(),qe()])}),(t,n)=>{let o=we(`tooltip`);return O(),x(r,null,[j(`div`,us,[j(`div`,ds,[j(`div`,fs,[M(S(p),{icon:`pi pi-arrow-left`,text:``,rounded:``,onClick:zt}),i((O(),x(`div`,ps,[j(`i`,{class:_e(ze.value?`pi ${ze.value}`:`pi pi-image`),style:{opacity:`0.5`}},null,2),M(S(Ne),{modelValue:ze.value,"onUpdate:modelValue":n[0]||=e=>ze.value=e,style:{width:`130px`,"font-size":`0.8rem`},placeholder:`pi-building`},null,8,[`modelValue`])])),[[o,`PrimeIcons class (ex: pi-building, pi-users)`,void 0,{bottom:!0}]]),M(S(Ne),{modelValue:Re.value,"onUpdate:modelValue":n[1]||=e=>Re.value=e,class:`scenario-editor__name`,placeholder:S(a)(`scenarioEditor.placeholderName`)},null,8,[`modelValue`,`placeholder`]),M(S(Ne),{modelValue:Be.value,"onUpdate:modelValue":n[2]||=e=>Be.value=e,class:`scenario-editor__desc`,placeholder:S(a)(`scenarioEditor.placeholderDescription`)},null,8,[`modelValue`,`placeholder`]),n[40]||=j(`div`,{style:{flex:`1`}},null,-1),i(M(S(p),{icon:Ve.value?`pi pi-globe`:`pi pi-lock`,severity:Ve.value?`success`:`secondary`,text:``,rounded:``,onClick:n[3]||=e=>Ve.value=!Ve.value},null,8,[`icon`,`severity`]),[[o,Ve.value?S(a)(`scenarioEditor.tooltipUnpublish`):S(a)(`scenarioEditor.tooltipPublish`),void 0,{bottom:!0}]]),i(M(S(p),{icon:`pi pi-save`,onClick:Rt},null,512),[[o,S(a)(`scenarioEditor.tooltipSave`),void 0,{bottom:!0}]])]),j(`div`,ms,[He.value.length>0?(O(),g(S(De),{key:Xe.value,"model-value":F.value,options:[{label:S(a)(`scenarioEditor.noPreset`),value:void 0},...He.value.map(e=>({label:e.name,value:e.id}))],"option-label":`label`,"option-value":`value`,size:`small`,placeholder:S(a)(`scenarioEditor.noPreset`),class:`scenario-editor__preset-select`,"onUpdate:modelValue":$e},null,8,[`model-value`,`options`,`placeholder`])):v(``,!0),M(S(De),{"model-value":P.value,options:[{label:S(a)(`scenarioEditor.traversalHierarchical`),value:`hierarchical`},{label:S(a)(`scenarioEditor.traversalTopological`),value:`topological`}],"option-label":`label`,"option-value":`value`,size:`small`,disabled:Ue.value!=null&&Ue.value.canChangeTraversalMode===!1,class:`scenario-editor__traversal-select`,"onUpdate:modelValue":Nt},null,8,[`model-value`,`options`,`disabled`]),i(j(`i`,hs,null,512),[[o,{value:S(a)(`scenarioEditor.traversalHelp`),escape:!1},void 0,{bottom:!0}]]),n[43]||=j(`div`,{class:`scenario-editor__toolbar-sep`},null,-1),i(M(S(p),{title:S(I).group,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:S(I).group,class:`scenario-editor__toolbar-btn`,onClick:ut},null,8,[`title`,`label`]),[[o,`${S(a)(`actions.add`)} ${S(I).group.toLowerCase()}`,void 0,{bottom:!0}]]),i(M(S(p),{title:S(I).node,icon:`pi pi-plus`,text:``,size:`small`,severity:`secondary`,label:S(I).node,class:`scenario-editor__toolbar-btn`,onClick:Ge},null,8,[`title`,`label`]),[[o,`${S(a)(`actions.add`)} ${S(I).node.toLowerCase()}`,void 0,{bottom:!0}]]),M(S(ke),{ref_key:`addNodePopover`,ref:We},{default:C(()=>[j(`div`,gs,[j(`button`,{class:`add-node-popover__item`,onClick:n[4]||=e=>Ke(`ai`)},[n[41]||=j(`i`,{class:`pi pi-microchip-ai`,style:{"font-size":`1.1rem`}},null,-1),j(`div`,_s,[j(`span`,vs,`AI `+h(S(I).node),1),j(`span`,ys,h(S(a)(`scenarioEditor.aiNodeDesc`)),1)])]),j(`button`,{class:`add-node-popover__item`,onClick:n[5]||=e=>Ke(`ask`)},[n[42]||=j(`i`,{class:`pi pi-comment`,style:{"font-size":`1.1rem`}},null,-1),j(`div`,bs,[j(`span`,xs,`Ask `+h(S(I).node),1),j(`span`,Ss,h(S(a)(`scenarioEditor.askNodeDesc`)),1)])])])]),_:1},512),n[44]||=j(`div`,{style:{flex:`1`}},null,-1),i(M(S(p),{icon:`pi pi-sitemap`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:Mt},null,512),[[o,S(a)(`scenarioEditor.tooltipAutoLayout`),void 0,{bottom:!0}]]),i(M(S(p),{icon:`pi pi-upload`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[6]||=e=>{Qt.value=!0,$t.value=``,en.value=``}},null,512),[[o,S(a)(`scenarioEditor.tooltipImport`),void 0,{bottom:!0}]]),i(M(S(p),{icon:`pi pi-download`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[7]||=e=>Zt.value=!0},null,512),[[o,S(a)(`scenarioEditor.tooltipExport`),void 0,{bottom:!0}]]),i(M(S(p),{icon:`pi pi-sparkles`,text:``,rounded:``,size:`small`,severity:Bt.value?`contrast`:`secondary`,onClick:n[8]||=e=>Bt.value=!Bt.value},null,8,[`severity`]),[[o,Bt.value?S(a)(`scenarioEditor.tooltipCloseAI`):S(a)(`scenarioEditor.tooltipGenerateAI`),void 0,{bottom:!0}]])])]),j(`div`,Cs,[Bt.value?(O(),x(`div`,ws,[j(`div`,Ts,[n[45]||=j(`i`,{class:`pi pi-sparkles`},null,-1),j(`span`,null,h(S(a)(`scenarioEditor.aiPanelTitle`)),1)]),Wt.value>0?(O(),x(`div`,Es,[j(`label`,Ds,h(S(a)(`scenarioEditor.aiProvider`)),1),M(c,{"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:S(a)(`scenarioEditor.aiSelectProvider`),class:`w-full`,disabled:G.value,onLoaded:n[11]||=e=>Wt.value=e},null,8,[`modelValue`,`model`,`placeholder`,`disabled`])])):(O(),x(`div`,Os,[n[46]||=j(`i`,{class:`pi pi-exclamation-triangle`},null,-1),j(`span`,{innerHTML:S(a)(`scenarioEditor.aiNoProvider`)},null,8,ks)])),M(S(ye),{modelValue:Vt.value,"onUpdate:modelValue":n[12]||=e=>Vt.value=e,placeholder:S(a)(`scenarioEditor.aiPromptPlaceholder`),rows:4,class:`scenario-editor__ai-textarea`,disabled:G.value,onKeydown:je(re(Yt,[`ctrl`]),[`enter`])},null,8,[`modelValue`,`placeholder`,`disabled`,`onKeydown`]),M(S(p),{label:G.value?S(a)(`scenarioEditor.aiGenerating`):R.value.length>0?S(a)(`scenarioEditor.aiModify`):S(a)(`scenarioEditor.aiGenerate`),icon:`pi pi-sparkles`,loading:G.value,disabled:!Vt.value.trim(),class:`scenario-editor__ai-btn`,onClick:Yt},null,8,[`label`,`loading`,`disabled`]),j(`p`,As,h(S(a)(`scenarioEditor.aiHint`)),1),Ht.value||G.value?(O(),x(`div`,js,[j(`div`,Ms,[G.value?(O(),x(`i`,Ns)):K.value?(O(),x(`i`,Ps)):(O(),x(`i`,Fs)),j(`span`,null,h(G.value?S(a)(`scenarioEditor.aiGenerating`):K.value?S(a)(`scenarioEditor.aiValidJson`):S(a)(`scenarioEditor.aiRawResponse`)),1)]),j(`pre`,Is,h(Ht.value),1)])):v(``,!0),Ut.value?(O(),x(`div`,Ls,[n[47]||=j(`i`,{class:`pi pi-times-circle`},null,-1),te(` `+h(Ut.value),1)])):v(``,!0),K.value?(O(),g(S(p),{key:4,label:S(a)(`scenarioEditor.aiApply`),icon:`pi pi-check`,severity:`success`,class:`scenario-editor__ai-btn`,onClick:Xt},null,8,[`label`])):v(``,!0)])):v(``,!0),j(`div`,{class:`scenario-editor__canvas`,tabindex:`0`,onKeydown:Me},[M(S(m),{nodes:ot.value,edges:lt.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=>{z.value=void 0,B.value=void 0,W.value=void 0},onConnect:kt,onNodesChange:wt,onEdgesChange:Ct},{"node-default":C(t=>[M(_,e(ae(t)),null,16)]),"node-group":C(e=>[M(b,ce(e,{onUpdateLabel:xt,onResizeEnd:St,onRemove:mt}),null,16)]),default:C(()=>[M(S(nt)),M(S(Do))]),_:1},8,[`nodes`,`edges`])],32),M(Te,{name:`drawer`},{default:C(()=>[B.value||z.value?(O(),x(`div`,Rs,[j(`div`,zs,[j(`i`,{class:_e([B.value?`pi pi-users`:`pi pi-microchip-ai`,`detail-header__icon`])},null,2),j(`span`,Bs,h(B.value?S(I).group:S(I).node),1),M(S(p),{icon:`pi pi-times`,text:``,rounded:``,size:`small`,class:`detail-header__close`,onClick:n[14]||=e=>{B.value=void 0,z.value=void 0}})]),B.value&&L.value.find(e=>e.id===B.value)?(O(),x(r,{key:0},[j(`div`,Vs,[j(`div`,Hs,[j(`label`,Us,h(S(a)(`scenarioEditor.groupName`)),1),M(S(Ne),{id:`scened-group-name`,"model-value":L.value.find(e=>e.id===B.value).name,class:`w-full`,size:`small`,"onUpdate:modelValue":n[15]||=e=>U(B.value,{name:e})},null,8,[`model-value`])]),j(`div`,Ws,[j(`label`,Gs,h(S(a)(`scenarioEditor.groupDescription`)),1),M(S(ye),{id:`scened-group-desc`,"model-value":L.value.find(e=>e.id===B.value).description??``,class:`w-full`,placeholder:S(a)(`scenarioEditor.groupDescriptionPlaceholder`),rows:`3`,"auto-resize":``,style:{resize:`none`},"onUpdate:modelValue":n[16]||=e=>U(B.value,{description:e||void 0})},null,8,[`model-value`,`placeholder`])]),j(`div`,Ks,[j(`label`,qs,h(S(a)(`scenarioEditor.groupAccentColor`)),1),j(`div`,Js,[j(`input`,{id:`scened-group-color`,type:`color`,value:L.value.find(e=>e.id===B.value).color??`#6366f1`,class:`detail-color-picker`,onInput:n[17]||=e=>U(B.value,{color:e.target.value})},null,40,Ys),M(S(Ne),{"model-value":L.value.find(e=>e.id===B.value).color??``,placeholder:`#6366f1`,size:`small`,class:`detail-color-text`,"onUpdate:modelValue":n[18]||=e=>U(B.value,{color:e||void 0})},null,8,[`model-value`]),L.value.find(e=>e.id===B.value).color?i((O(),g(S(p),{key:0,icon:`pi pi-times`,text:``,rounded:``,size:`small`,severity:`secondary`,onClick:n[19]||=e=>U(B.value,{color:void 0})},null,512)),[[o,S(a)(`scenarioEditor.groupResetColor`)]]):v(``,!0)])])]),j(`div`,Xs,[M(S(p),{label:`${S(a)(`actions.delete`)} ${S(I).group.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[20]||=e=>mt(B.value)},null,8,[`label`])])],64)):z.value&&R.value.find(e=>e.id===z.value)?(O(),x(r,{key:1},[(O(),g(ls,{key:z.value,node:R.value.find(e=>e.id===z.value),groups:L.value,nodes:R.value,"leader-id":N.value,preset:Ue.value,"traversal-mode":P.value,onUpdate:Pt,onDelete:Ft,onSetLeader:n[21]||=e=>N.value=e},null,8,[`node`,`groups`,`nodes`,`leader-id`,`preset`,`traversal-mode`])),z.value===N.value?v(``,!0):(O(),x(`div`,Zs,[M(S(p),{label:`${S(a)(`actions.delete`)} ${S(I).node.toLowerCase()}`,icon:`pi pi-trash`,severity:`danger`,outlined:``,size:`small`,class:`w-full`,onClick:n[22]||=e=>Ft(z.value)},null,8,[`label`])]))],64)):v(``,!0)])):v(``,!0)]),_:1})])]),M(S(se),{visible:ie.value,"onUpdate:visible":n[24]||=e=>ie.value=e,header:S(a)(`scenarioEditor.multiParentNoticeTitle`),modal:``,style:{width:`420px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.ok`),onClick:At},null,8,[`label`])]),default:C(()=>[j(`p`,Qs,h(S(a)(`scenarioEditor.multiParentNoticeMessage`)),1),j(`div`,$s,[M(S(Le),{modelValue:oe.value,"onUpdate:modelValue":n[23]||=e=>oe.value=e,binary:``,"input-id":`dontShowAgain`},null,8,[`modelValue`]),j(`label`,ec,h(S(a)(`scenarioEditor.dontShowAgain`)),1)])]),_:1},8,[`visible`,`header`]),M(S(se),{visible:dt.value,"onUpdate:visible":n[27]||=e=>dt.value=e,header:S(a)(`scenarioEditor.deleteGroupTitle`),modal:``,style:{width:`380px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.cancel`),text:``,onClick:n[25]||=e=>dt.value=!1},null,8,[`label`]),M(S(p),{label:S(a)(`actions.delete`),severity:`danger`,onClick:n[26]||=()=>{dt.value=!1,ht(ft.value)}},null,8,[`label`])]),default:C(()=>[j(`p`,tc,h(S(a)(`scenarioEditor.deleteGroupMessage`,{count:pt.value})),1)]),_:1},8,[`visible`,`header`]),M(S(se),{visible:f.value,"onUpdate:visible":n[30]||=e=>f.value=e,header:S(a)(`scenarioEditor.switchToHierarchicalTitle`),modal:``,style:{width:`400px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.cancel`),text:``,onClick:n[28]||=e=>f.value=!1},null,8,[`label`]),M(S(p),{label:S(a)(`actions.confirm`),severity:`danger`,onClick:n[29]||=()=>{f.value=!1,P.value=`hierarchical`,jt()}},null,8,[`label`])]),default:C(()=>[j(`p`,nc,h(S(a)(`scenarioEditor.switchToHierarchicalMessage`)),1),j(`ul`,rc,[(O(!0),x(r,null,Oe(ee.value,e=>(O(),x(`li`,{key:`${e.from}-${e.to}`},[j(`span`,ic,h(e.from),1),n[48]||=j(`i`,{class:`pi pi-arrow-right switch-dialog__arrow`},null,-1),j(`span`,ac,h(e.to),1)]))),128))])]),_:1},8,[`visible`,`header`]),M(S(se),{visible:rt.value,"onUpdate:visible":n[33]||=e=>rt.value=e,header:it.value===`ask`?`${S(a)(`actions.add`)} Ask ${S(I).node}`:`${S(a)(`actions.add`)} AI ${S(I).node}`,modal:``,style:{width:`360px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[32]||=e=>rt.value=!1},null,8,[`label`]),M(S(p),{label:S(a)(`actions.add`),icon:`pi pi-user-plus`,disabled:!V.value,onClick:yt},null,8,[`label`,`disabled`])]),default:C(()=>[j(`div`,oc,[j(`label`,sc,[te(h(S(I).group)+` `,1),n[49]||=j(`span`,{class:`required`},`*`,-1)]),M(S(De),{"input-id":`scened-add-node-group`,modelValue:V.value,"onUpdate:modelValue":n[31]||=e=>V.value=e,options:L.value.map(e=>({label:e.name,value:e.id})),"option-label":`label`,"option-value":`value`,placeholder:`${S(a)(`actions.add`)} ${S(I).group.toLowerCase()}`,class:`w-full`},null,8,[`modelValue`,`options`,`placeholder`])])]),_:1},8,[`visible`,`header`]),M(S(se),{visible:Zt.value,"onUpdate:visible":n[35]||=e=>Zt.value=e,header:S(a)(`scenarioEditor.exportHeader`),modal:``,style:{width:`600px`}},{footer:C(()=>[M(S(p),{label:S(a)(`scenarioEditor.copyJson`),icon:`pi pi-copy`,onClick:nn},null,8,[`label`]),M(S(p),{label:S(a)(`actions.close`),severity:`secondary`,text:``,onClick:n[34]||=e=>Zt.value=!1},null,8,[`label`])]),default:C(()=>[j(`pre`,cc,h(tn.value),1)]),_:1},8,[`visible`,`header`]),M(S(se),{visible:Qt.value,"onUpdate:visible":n[38]||=e=>Qt.value=e,header:S(a)(`scenarioEditor.importHeader`),modal:``,style:{width:`600px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:n[37]||=e=>Qt.value=!1},null,8,[`label`]),M(S(p),{label:S(a)(`actions.apply`),icon:`pi pi-check`,disabled:!$t.value.trim(),onClick:an},null,8,[`label`,`disabled`])]),default:C(()=>[M(S(ye),{modelValue:$t.value,"onUpdate:modelValue":n[36]||=e=>$t.value=e,rows:`12`,class:`w-full`,placeholder:S(a)(`scenarioEditor.importPlaceholder`)},null,8,[`modelValue`,`placeholder`]),en.value?(O(),x(`p`,lc,h(en.value),1)):v(``,!0)]),_:1},8,[`visible`,`header`]),M(S(se),{visible:Je.value,"onUpdate:visible":n[39]||=e=>Je.value=e,header:S(a)(`scenarioEditor.applyPresetHeader`),modal:``,style:{width:`400px`}},{footer:C(()=>[M(S(p),{label:S(a)(`actions.cancel`),severity:`secondary`,text:``,onClick:tt},null,8,[`label`]),M(S(p),{label:S(a)(`scenarioEditor.applyPresetConfirm`),icon:`pi pi-refresh`,severity:`warn`,onClick:et},null,8,[`label`])]),default:C(()=>[j(`p`,uc,h(S(a)(`scenarioEditor.applyPresetMessage`)),1)]),_:1},8,[`visible`,`header`])],64)}}}),[[`__scopeId`,`data-v-bd84df09`]]);export{vc as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.vue-flow__controls{box-shadow:0 0 2px 1px #00000014}.vue-flow__controls-button{box-sizing:content-box;cursor:pointer;-webkit-user-select:none;user-select:none;background:#fefefe;border:none;border-bottom:1px solid #eee;justify-content:center;align-items:center;width:16px;height:16px;padding:5px;display:flex}.vue-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.vue-flow__controls-button:hover{background:#f4f4f4}.vue-flow__controls-button:disabled{pointer-events:none}.vue-flow__controls-button:disabled svg{fill-opacity:.4}.vue-flow__minimap{background-color:#fff}.vue-flow__minimap.pannable{cursor:grab}.vue-flow__minimap.dragging{cursor:grabbing}.vue-flow__minimap-mask.pannable{cursor:grab}.scenario-node-editor[data-v-d47fface]{flex-direction:column;flex:1;gap:.6rem;padding:1rem;display:flex;overflow-y:auto}.form-row[data-v-d47fface]{grid-template-columns:1fr 1fr;gap:.5rem;display:grid}.form-row>.form-group[data-v-d47fface]{min-width:0}.form-group[data-v-d47fface]{flex-direction:column;gap:.25rem;display:flex}.form-label[data-v-d47fface]{opacity:.55;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:600}.inline-check[data-v-d47fface]{align-items:center;gap:.5rem;padding:.25rem 0;font-size:.85rem;display:flex}.form-note[data-v-d47fface]{opacity:.6;align-self:center;font-size:.75rem}.role-preview[data-v-d47fface]{background:var(--p-content-hover-background,#6366f10f);border:1px solid var(--p-content-border-color);border-radius:4px;padding:.5rem .6rem}.role-preview__label[data-v-d47fface]{text-transform:uppercase;letter-spacing:.05em;opacity:.5;font-size:.7rem;font-weight:600}.role-preview__text[data-v-d47fface]{opacity:.75;white-space:pre-wrap;margin:.25rem 0 0;font-size:.78rem;line-height:1.4}.scenario-editor[data-v-bd84df09]{flex-direction:column;height:100%;display:flex}.scenario-editor__toolbar[data-v-bd84df09]{border-bottom:1px solid var(--p-content-border-color);flex-direction:column;flex-shrink:0;display:flex}.scenario-editor__toolbar-row[data-v-bd84df09]{align-items:center;gap:.4rem;padding:.35rem 1rem;display:flex}.scenario-editor__toolbar-row--primary[data-v-bd84df09]{border-bottom:1px solid var(--p-content-border-color)}.scenario-editor__toolbar-row--secondary[data-v-bd84df09]{padding-top:.25rem;padding-bottom:.25rem}.scenario-editor__toolbar-sep[data-v-bd84df09]{background:var(--p-content-border-color);width:1px;height:16px;margin:0 .2rem}.scenario-editor__icon-input[data-v-bd84df09]{border:1px solid var(--p-surface-300);background:var(--p-surface-0);border-radius:4px;align-items:center;gap:.4rem;padding:0 .4rem;display:flex}.scenario-editor__name[data-v-bd84df09]{width:200px}.scenario-editor__desc[data-v-bd84df09]{width:220px;font-size:.9rem}.scenario-editor__traversal-select[data-v-bd84df09]{width:150px;font-size:.85rem}.scenario-editor__traversal-help[data-v-bd84df09]{opacity:.5;cursor:help;flex-shrink:0;font-size:.85rem}.scenario-editor__traversal-help[data-v-bd84df09]:hover{opacity:.9}.scenario-editor__leader[data-v-bd84df09]{width:160px}.scenario-editor__content[data-v-bd84df09]{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.scenario-editor__canvas[data-v-bd84df09]{flex:1;width:100%;height:100%;min-height:0;position:relative}.scenario-editor__panel--editor[data-v-bd84df09]{border-left:1px solid var(--p-content-border-color);background:var(--p-content-background);z-index:10;flex-direction:column;width:340px;display:flex;position:absolute;top:0;bottom:0;right:0;overflow:hidden;box-shadow:-4px 0 24px #0000004d}.detail-header[data-v-bd84df09]{border-bottom:1px solid var(--p-content-border-color);flex-shrink:0;align-items:center;gap:.6rem;padding:.75rem 1rem;display:flex}.detail-header__icon[data-v-bd84df09]{opacity:.7;font-size:.95rem}.detail-header__title[data-v-bd84df09]{font-size:.9rem;font-weight:600}.detail-header__close[data-v-bd84df09]{margin-left:auto}.detail-body[data-v-bd84df09]{flex-direction:column;flex:1;gap:.85rem;padding:1rem;display:flex;overflow-y:auto}.detail-field[data-v-bd84df09]{flex-direction:column;gap:.35rem;display:flex}.detail-label[data-v-bd84df09]{opacity:.55;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:600}.detail-color-row[data-v-bd84df09]{align-items:center;gap:.5rem;display:flex}.detail-color-picker[data-v-bd84df09]{cursor:pointer;background:0 0;border:none;border-radius:4px;flex-shrink:0;width:32px;height:32px;padding:2px}.detail-color-text[data-v-bd84df09]{flex:1;font-family:monospace;font-size:.85rem}.detail-footer[data-v-bd84df09]{border-top:1px solid var(--p-content-border-color);flex-shrink:0;padding:.75rem 1rem}.add-node-form[data-v-bd84df09]{flex-direction:column;gap:.5rem;padding:.5rem 0 1rem;display:flex}.add-node-label[data-v-bd84df09]{font-size:.875rem;font-weight:600}.required[data-v-bd84df09]{color:var(--p-red-400)}.scenario-editor__ai-panel[data-v-bd84df09]{border-right:1px solid var(--p-content-border-color);flex-direction:column;flex-shrink:0;gap:.75rem;width:320px;padding:1rem;display:flex;overflow-y:auto}.scenario-editor__ai-panel-header[data-v-bd84df09]{align-items:center;gap:.5rem;font-size:.95rem;font-weight:600;display:flex}.scenario-editor__ai-provider[data-v-bd84df09]{flex-direction:column;gap:.4rem;display:flex}.scenario-editor__ai-provider-label[data-v-bd84df09]{opacity:.6;font-size:.8rem}.scenario-editor__ai-no-provider[data-v-bd84df09]{color:var(--p-orange-400);background:color-mix(in srgb, var(--p-orange-400) 8%, transparent);border:1px solid color-mix(in srgb, var(--p-orange-400) 25%, transparent);border-radius:4px;align-items:center;gap:.5rem;padding:.5rem .75rem;font-size:.82rem;display:flex}.scenario-editor__ai-textarea[data-v-bd84df09]{resize:vertical;width:100%}.scenario-editor__ai-btn[data-v-bd84df09]{width:100%}.scenario-editor__ai-hint[data-v-bd84df09]{opacity:.4;margin:0;font-size:.75rem}.scenario-editor__ai-stream[data-v-bd84df09]{background:var(--p-content-hover-background);border:1px solid var(--p-content-border-color);border-radius:4px;padding:.5rem}.scenario-editor__ai-stream-label[data-v-bd84df09]{opacity:.55;align-items:center;gap:.4rem;margin-bottom:.4rem;font-size:.78rem;display:flex}.scenario-editor__ai-stream-text[data-v-bd84df09]{opacity:.5;white-space:pre-wrap;word-break:break-all;max-height:180px;margin:0;font-size:.7rem;overflow-y:auto}.scenario-editor__ai-error[data-v-bd84df09]{color:var(--p-red-400);align-items:center;gap:.4rem;font-size:.82rem;display:flex}.export-json[data-v-bd84df09]{background:var(--p-content-hover-background);border:1px solid var(--p-content-border-color);white-space:pre-wrap;word-break:break-all;border-radius:4px;max-height:400px;padding:.75rem;font-size:.78rem;overflow-y:auto}.import-error[data-v-bd84df09]{color:var(--p-red-400);margin-top:.5rem;font-size:.82rem}.scenario-editor__toolbar-btn[data-v-bd84df09]{gap:.3rem;font-size:.78rem}.add-node-popover[data-v-bd84df09]{flex-direction:column;gap:.25rem;min-width:200px;padding:.25rem;display:flex}.add-node-popover__item[data-v-bd84df09]{cursor:pointer;color:var(--p-text-color);text-align:left;background:0 0;border:none;border-radius:4px;align-items:center;gap:.75rem;width:100%;padding:.6rem .75rem;transition:background .15s;display:flex}.add-node-popover__item[data-v-bd84df09]:hover{background:var(--p-content-hover-background)}.add-node-popover__item svg[data-v-bd84df09]{opacity:.7;flex-shrink:0}.add-node-popover__item-text[data-v-bd84df09]{flex-direction:column;gap:.1rem;display:flex}.add-node-popover__item-label[data-v-bd84df09]{font-size:.85rem;font-weight:600}.add-node-popover__item-desc[data-v-bd84df09]{opacity:.5;font-size:.75rem}.switch-dialog__intro{opacity:.8;margin:0 0 .75rem;font-size:.875rem}.switch-dialog__links{flex-direction:column;gap:.4rem;margin:0;padding:0;list-style:none;display:flex}.switch-dialog__links li{align-items:center;gap:.5rem;font-size:.85rem;display:flex}.switch-dialog__node{background:var(--p-content-hover-background);border:1px solid var(--p-content-border-color);border-radius:4px;padding:.15rem .4rem;font-family:monospace}.switch-dialog__arrow{opacity:.5;font-size:.7rem}.drawer-enter-active,.drawer-leave-active{transition:transform .22s cubic-bezier(.4,0,.2,1)}.drawer-enter-from,.drawer-leave-to{transform:translate(100%)}.scenario-flow-canvas .vue-flow__pane{background-color:#0b0c14;background-image:radial-gradient(circle,#6366f18c 1.5px,#0000 1.5px);background-size:28px 28px}.scenario-flow-canvas .vue-flow__background{background-color:#0b0c14}.scenario-flow-canvas .vue-flow__node-default{box-shadow:none!important;background:0 0!important;border:none!important;border-radius:0!important;padding:0!important}.scenario-flow-canvas .vue-flow__node-group{box-shadow:none!important;background:0 0!important;border:none!important;padding:0!important}.scenario-flow-canvas .vue-flow__edge-path{stroke:#6366f18c;stroke-width:2.5px;filter:drop-shadow(0 0 3px #6366f166)}.scenario-flow-canvas .vue-flow__edge.animated .vue-flow__edge-path{will-change:stroke-dashoffset;animation:1.2s linear infinite scenario-dash}@keyframes scenario-dash{0%{stroke-dashoffset:8px}to{stroke-dashoffset:0}}.scenario-flow-canvas .vue-flow__edge.selected:not(.edge--cycle) .vue-flow__edge-path{stroke:#a855f7!important;stroke-width:4px!important;filter:drop-shadow(0 0 8px #a855f7cc)!important}.scenario-flow-canvas .vue-flow__edge.edge--cycle .vue-flow__edge-path{stroke:#ef4444!important;stroke-width:3px!important;filter:drop-shadow(0 0 6px #ef4444b3)!important}.scenario-flow-canvas .vue-flow__connection-path{stroke:#6366f199;stroke-width:2px;stroke-dasharray:6 4}.scenario-flow-canvas .vue-flow__selection{background:#6366f10f;border:1px dashed #6366f180}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{Mi as e,Qa as t,Ua as n,Vi as r,b as i,ca as a,mr as o,ur as s}from"./index-C0stqCbw.js";import{t as c}from"./src-BFi137TM.js";import{t as l}from"./useProjectCloudOrg-BHkyD0dP.js";var u=r({__name:`SendToChatDialog`,setup(r,{expose:u}){let{t:d}=o(),f=s(),{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}),(n,r)=>(a(),e(t(c),{ref_key:`dialogRef`,ref:h,client:t(i),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,Hn as t,Pi as n,Qa as r,Vi as i,bn as a,c as o,ca as s,it as c,ji as l,mr as u,u as d,zi as f}from"./index-C0stqCbw.js";import{t as p}from"./ProcessControls-DM8lfeiV.js";var m={class:`service-controls-bar`},h={class:`service-controls-bar__left`},g={class:`service-controls-bar__right`},_=t(i({__name:`ServiceControlsBar`,props:{service:{},processes:{}},setup(t){let i=t,_=e(()=>o(i.processes)),v=e(()=>_.value?_.value.state:`stopped`),{t:y}=u(),b=c(),x=e(()=>{let e=d(i.service);return e?b.getById(e)?.config.name??e:null}),S=e(()=>{switch(v.value){case`running`:return`success`;case`starting`:return`warn`;case`errored`:return`danger`;default:return`secondary`}});return(e,i)=>(s(),n(`div`,m,[l(`div`,h,[f(r(a),{value:v.value,severity:S.value,class:`service-controls-bar__tag`},null,8,[`value`,`severity`]),f(r(a),{value:x.value??r(y)(`serviceHeader.noAgent`),severity:x.value?`secondary`:`warn`,icon:`pi pi-server`,class:`service-controls-bar__tag`},null,8,[`value`,`severity`])]),l(`div`,g,[f(p,{"agent-id":r(d)(t.service,_.value)??``,"process-id":_.value?.id??t.service.id,state:_.value?.state??`stopped`},null,8,[`agent-id`,`process-id`,`state`])])]))}}),[[`__scopeId`,`data-v-171f20af`]]);export{_ as t};
|