From 8dea8dc910d2e0302a02be6bb1f0c7931813cd29 Mon Sep 17 00:00:00 2001 From: "Temporal Data (cicd)" Date: Fri, 1 Nov 2024 16:52:09 +0000 Subject: [PATCH] Update UI Server --- .../_app/immutable/assets/23.DdeQs7xt.css | 1 - .../_app/immutable/assets/23.ZlWIrbKZ.css | 1 + .../_app/immutable/assets/_page.DdeQs7xt.css | 1 - .../_app/immutable/assets/_page.ZlWIrbKZ.css | 1 + .../_app/immutable/assets/app.C-Zoegwg.css | 1 + .../_app/immutable/assets/app.CIEpXG4M.css | 1 - .../_app/immutable/assets/app.Cqqh5LXg.css | 1 + .../_app/immutable/assets/app.DoM7g6DN.css | 1 - ...T.css => event-summary-table.6pdwVgt3.css} | 2 +- ...u.css => event-summary-table.BaNA1EhH.css} | 2 +- ...dion.DEmefb3Z.js => accordion.B8FZU59C.js} | 2 +- ....B1lGV7ud.js => active-events.hFekhesG.js} | 2 +- ...8.js => add-search-attributes.Bb3B2Swh.js} | 2 +- ...user.BOlglCm6.js => auth-user.CfsLeCYD.js} | 2 +- ...HaOhdY.js => batch-operations.D8oOXKtp.js} | 2 +- ...{button.BpRIS9ld.js => button.hs88FdV4.js} | 2 +- ...ock.BkCXXL0z.js => code-block.DGWayI9q.js} | 26 +++++++++---------- ...bobox.Iz37dSfH.js => combobox.BZAKUnsN.js} | 2 +- ...E1aVf.js => copy-to-clipboard.VBIGxkFt.js} | 2 +- ...user.BxGCJ_SI.js => core-user.DrkCNXj3.js} | 2 +- ...mode.DlqJSTFW.js => dark-mode.BvUzLjRz.js} | 2 +- ...wjK.js => data-encoder-config.BAPO1ve2.js} | 2 +- ...4.js => data-encoder-settings.2-uv_2-b.js} | 2 +- ...r.B_90sJUu.js => data-encoder.CsUWoJ2q.js} | 2 +- ...r.rFK9EOf0.js => data-encoder.XIVVN3o2.js} | 2 +- ...BTpeWKqJ.js => decode-payload.CR1Tto5x.js} | 2 +- ...BbGvULr4.js => encode-payload.DnXS3ERP.js} | 2 +- .../{entry.DLEzeuD9.js => entry.kylZibtV.js} | 2 +- .../{error.aZkLDhWZ.js => error.CjC3VuFL.js} | 2 +- ... => event-history-file-import.BWMNMNHv.js} | 2 +- .../chunks/event-summary-table.BGH464r2.js | 1 + .../chunks/event-summary-table.Bjd71qae.js | 1 - ...DFs0nrNV.js => events-service.BZohXMj_.js} | 2 +- ...{events.Dh9P6F73.js => events.CbhKe7Ai.js} | 2 +- ....js => filter-or-copy-buttons.CemQB_H1.js} | 2 +- ....NIuiMMoD.js => filter-select.Cuzm5_PX.js} | 2 +- ...et-single-attribute-for-event.C6hE5al8.js} | 2 +- ...on.CDcPAnTL.js => icon-button.BoA3mGH0.js} | 2 +- .../chunks/import-events.CEl85Dnc.js | 1 + .../chunks/import-events.Dljx0mMh.js | 1 - .../{index.CI5Z4Pgd.js => index.B3hS-irb.js} | 2 +- .../{index.DCblj7qv.js => index.B7_EN-g2.js} | 2 +- .../{index.Bde7eNxE.js => index.Nss_n040.js} | 2 +- .../{index.DJYN40WT.js => index.lRK1fBz3.js} | 2 +- .../{input.CTzUOpgs.js => input.Dizl7Mgk.js} | 2 +- .../{link.BJceiGbc.js => link.C_v4aoat.js} | 2 +- .../{logo.DmG7EKIA.js => logo.UJexZLaa.js} | 2 +- ...kdown.CpYkuk44.js => markdown.BEeC1bWs.js} | 2 +- ...on.20KWkPAy.js => menu-button.DYcE3c8N.js} | 2 +- .../{menu.FCESMtRU.js => menu.B3Snjx4c.js} | 2 +- .../{modal.DyMhWY1J.js => modal.BxyQo5_L.js} | 2 +- ...fQvn.js => namespaces-service.CPFqCmJx.js} | 2 +- .../immutable/chunks/namespaces.619_s9Tr.js | 1 - .../immutable/chunks/namespaces.DEm0M_ie.js | 1 + ...orm.BNYVknO-.js => nexus-form.sJTgAfD6.js} | 2 +- ....BPsrr5_T.js => nexus-service.CnR3KXfY.js} | 2 +- ...{option.Bt5AmPHo.js => option.BuKObSE0.js} | 2 +- ...ated.L2uilqIm.js => paginated.CcIszT9D.js} | 2 +- ...ated.BsR1kdqH.js => paginated.CfuFFT3F.js} | 2 +- ...ion.Dxf-be3Z.js => pagination.1KQhGwzN.js} | 2 +- ...ion.BCeOU9Ta.js => pagination.B2FxfgZG.js} | 2 +- .../_app/immutable/chunks/paths.C1CnfzR-.js | 1 + .../_app/immutable/chunks/paths.DlAH43M2.js | 1 - ...lOPrRzg.js => payload-decoder.C_mCVVdL.js} | 2 +- ...> payload-input-with-encoding.CjdKAmav.js} | 2 +- ....BbQDy2Xg.js => payload-input.BCsK9YCY.js} | 2 +- ....Bvu2qNDI.js => persist-store.DeOEcwHN.js} | 2 +- ...XEUeA9H.js => pollers-service.BcPp2B7I.js} | 2 +- ....D3ysowbA.js => query-service.BpCb13SU.js} | 2 +- ...ut.yEAROJgW.js => radio-input.OzdV2p8V.js} | 2 +- ....BTloiRV6.js => route-for-api.DGDQNXtX.js} | 2 +- ...-for.BjP6gGR7.js => route-for.B9fTWV7L.js} | 2 +- ...FD2l.js => schedule-form-view.Sl7Y_1Oq.js} | 2 +- ...PKxx.js => schedule-frequency.Bpvyfzre.js} | 2 +- ...ules.DZMegXhn.js => schedules.BI2Sbv1C.js} | 2 +- ...QpIly.js => search-attributes.Dmice2E5.js} | 2 +- ...fKSI4U.js => settings-service.lqZRRkVY.js} | 2 +- ...n.CWfYBMpf.js => split-button.70FZ_ydj.js} | 2 +- ...{stores.Dz-RNcUk.js => stores.Ds4o9nwd.js} | 2 +- .../{tab.CpZOxof2.js => tab.y0H1rcBf.js} | 2 +- ...at.D2wF3ave.js => time-format.BLKgLEx9.js} | 2 +- ...er.BvbblB8x.js => time-picker.G0x2sfcZ.js} | 2 +- ...r6rH.js => to-time-difference.l4Q9xnPU.js} | 2 +- ...oaster.D-OAJjvv.js => toaster.p5hsABhI.js} | 2 +- ...Cubqph53.js => toggle-buttons.cS3NnOtm.js} | 2 +- ...late.ncUacGRD.js => translate.9wzy45oZ.js} | 2 +- ...js => update-query-parameters.DTvdkkGj.js} | 2 +- ...sions.CeMhowfV.js => versions.BSCVnN4z.js} | 2 +- ...e.CpbGX-wq.js => worker-table.BTld4JO6.js} | 2 +- ...gc8s1JU.js => workflow-counts.D3FzL32z.js} | 2 +- ...s => workflow-create-disabled.BovVEcSd.js} | 2 +- ...js => workflow-json-navigator.sqiRvlQE.js} | 2 +- ...n.DcChDuxV.js => workflow-run.CoKQBOG_.js} | 2 +- ...=> workflow-terminate-enabled.5VU8mX4o.js} | 2 +- ...lows.BzgE0E1S.js => workflows.Cse8qlOg.js} | 2 +- .../_app/immutable/entry/app.Cg8NqhWv.js | 2 -- .../_app/immutable/entry/app.DhqdLS7j.js | 2 ++ .../_app/immutable/entry/start.TxMCp5N8.js | 1 - .../_app/immutable/entry/start.rDyhpDSO.js | 1 + .../nodes/{1.BhgCFllH.js => 1.C5LQnY0e.js} | 2 +- .../nodes/{10.EIXLH7k9.js => 10.CRr1YwQ1.js} | 2 +- .../nodes/{11.rbZzRztA.js => 11.BBIfjXhP.js} | 2 +- .../nodes/{12.DSRPizbx.js => 12.BZ18BAHA.js} | 2 +- .../nodes/{13.DW978geN.js => 13.mVbeR_sr.js} | 2 +- .../nodes/{14.BCP5k91W.js => 14.D1uml7DU.js} | 2 +- .../nodes/{15.CTlFIzVM.js => 15.LwWhC-sc.js} | 2 +- .../nodes/{16.DYm3t1OC.js => 16.KQoNOEjE.js} | 2 +- .../nodes/{17.cPOI0IGM.js => 17.hkGt17IV.js} | 2 +- .../nodes/{18.DxrAxMVp.js => 18.CLYvwiyG.js} | 2 +- .../nodes/{19.CAKcRNTA.js => 19.DstKIVrK.js} | 2 +- .../nodes/{2.BOq6cVGU.js => 2.gAdzXo33.js} | 2 +- .../nodes/{20.BRKCESap.js => 20.zy3apo8s.js} | 2 +- .../nodes/{21.j3wmBe2Z.js => 21.BqvboFmv.js} | 2 +- .../nodes/{22.C9eoZ9Zn.js => 22.B_C6GDmb.js} | 2 +- .../local/_app/immutable/nodes/23.BP9LTO0G.js | 1 + .../local/_app/immutable/nodes/23.CDwnffOj.js | 1 - .../nodes/{24.CHw1Q09s.js => 24.k7h2mvTa.js} | 2 +- .../nodes/{25.D4nY7nvZ.js => 25.CRXnl26E.js} | 2 +- .../nodes/{26.CDQOaka1.js => 26.BjioyYdH.js} | 2 +- .../nodes/{28.7A7izdim.js => 28.CktOawpV.js} | 2 +- .../nodes/{29.7Vw4hMuw.js => 29.C5VU778x.js} | 2 +- .../nodes/{3.CALA-tyn.js => 3.DPtmlwhS.js} | 2 +- .../nodes/{30.CqqTTHxo.js => 30.BrN2lZKQ.js} | 2 +- .../nodes/{32.pphDLbtv.js => 32.CbjV9l1U.js} | 2 +- .../local/_app/immutable/nodes/33.CAfZbG17.js | 1 + .../local/_app/immutable/nodes/33.D6UHv9eO.js | 1 - .../nodes/{34.QysnXzBa.js => 34.CmRhJUwi.js} | 2 +- .../nodes/{35.CUqsp5ZR.js => 35.Cmq5uW0_.js} | 2 +- .../nodes/{36.DjUbZSFv.js => 36.BZuxtmh0.js} | 2 +- .../nodes/{37.QysnXzBa.js => 37.CmRhJUwi.js} | 2 +- .../nodes/{38.QysnXzBa.js => 38.CmRhJUwi.js} | 2 +- .../nodes/{39.CpF36kwV.js => 39.CaeGOORd.js} | 2 +- .../nodes/{4.B3mgOWfd.js => 4.9j4L6jmF.js} | 2 +- .../nodes/{40.BECBiniA.js => 40.DQDnGBWV.js} | 2 +- .../nodes/{41.DUr9qQjS.js => 41.C6rfCHSE.js} | 2 +- .../nodes/{42.BFxLa9wr.js => 42.CHGs0HHm.js} | 2 +- .../nodes/{43.D9S71pAt.js => 43.DqmIkYfr.js} | 2 +- .../nodes/{44.CXjtdn97.js => 44.D60ZzcQ_.js} | 2 +- .../nodes/{45.x1LiIHi-.js => 45.B-TLuIb4.js} | 2 +- .../nodes/{46.DUQthmfu.js => 46.DgUopdD6.js} | 2 +- .../nodes/{47.DdQhpBWt.js => 47.heQt60Vb.js} | 2 +- .../nodes/{48.BSUzc4rz.js => 48.nRDxtd1K.js} | 2 +- .../nodes/{49.Bg4JBSA7.js => 49.BtaIZfCW.js} | 2 +- .../nodes/{5.D7BgctVj.js => 5.gTk0G_dj.js} | 2 +- .../nodes/{50.DcnjwYSw.js => 50.Ct-GzfE8.js} | 2 +- .../nodes/{51.C7mbBFF_.js => 51.wAEGmlDx.js} | 2 +- .../nodes/{52.C7mbBFF_.js => 52.wAEGmlDx.js} | 2 +- .../nodes/{7.BBnZN2fU.js => 7.BQkJzEIm.js} | 2 +- .../nodes/{8.DMqgyztx.js => 8.Dyn-TH2r.js} | 2 +- .../nodes/{9.Dy64mKZZ.js => 9.Dki_NxDW.js} | 2 +- ui/assets/local/_app/version.json | 2 +- ui/assets/local/index.html | 16 ++++++------ 152 files changed, 160 insertions(+), 160 deletions(-) delete mode 100644 ui/assets/local/_app/immutable/assets/23.DdeQs7xt.css create mode 100644 ui/assets/local/_app/immutable/assets/23.ZlWIrbKZ.css delete mode 100644 ui/assets/local/_app/immutable/assets/_page.DdeQs7xt.css create mode 100644 ui/assets/local/_app/immutable/assets/_page.ZlWIrbKZ.css create mode 100644 ui/assets/local/_app/immutable/assets/app.C-Zoegwg.css delete mode 100644 ui/assets/local/_app/immutable/assets/app.CIEpXG4M.css create mode 100644 ui/assets/local/_app/immutable/assets/app.Cqqh5LXg.css delete mode 100644 ui/assets/local/_app/immutable/assets/app.DoM7g6DN.css rename ui/assets/local/_app/immutable/assets/{event-summary-table.C4RU4QOT.css => event-summary-table.6pdwVgt3.css} (57%) rename ui/assets/local/_app/immutable/assets/{event-summary-table.Dd3U297u.css => event-summary-table.BaNA1EhH.css} (57%) rename ui/assets/local/_app/immutable/chunks/{accordion.DEmefb3Z.js => accordion.B8FZU59C.js} (99%) rename ui/assets/local/_app/immutable/chunks/{active-events.B1lGV7ud.js => active-events.hFekhesG.js} (81%) rename ui/assets/local/_app/immutable/chunks/{add-search-attributes.B9SzC6V8.js => add-search-attributes.Bb3B2Swh.js} (97%) rename ui/assets/local/_app/immutable/chunks/{auth-user.BOlglCm6.js => auth-user.CfsLeCYD.js} (81%) rename ui/assets/local/_app/immutable/chunks/{batch-operations.BeHaOhdY.js => batch-operations.D8oOXKtp.js} (89%) rename ui/assets/local/_app/immutable/chunks/{button.BpRIS9ld.js => button.hs88FdV4.js} (98%) rename ui/assets/local/_app/immutable/chunks/{code-block.BkCXXL0z.js => code-block.DGWayI9q.js} (60%) rename ui/assets/local/_app/immutable/chunks/{combobox.Iz37dSfH.js => combobox.BZAKUnsN.js} (99%) rename ui/assets/local/_app/immutable/chunks/{copy-to-clipboard.Dh7E1aVf.js => copy-to-clipboard.VBIGxkFt.js} (76%) rename ui/assets/local/_app/immutable/chunks/{core-user.BxGCJ_SI.js => core-user.DrkCNXj3.js} (62%) rename ui/assets/local/_app/immutable/chunks/{dark-mode.DlqJSTFW.js => dark-mode.BvUzLjRz.js} (79%) rename ui/assets/local/_app/immutable/chunks/{data-encoder-config.D-DAVwjK.js => data-encoder-config.BAPO1ve2.js} (80%) rename ui/assets/local/_app/immutable/chunks/{data-encoder-settings.87VBLn14.js => data-encoder-settings.2-uv_2-b.js} (97%) rename ui/assets/local/_app/immutable/chunks/{data-encoder.B_90sJUu.js => data-encoder.CsUWoJ2q.js} (89%) rename ui/assets/local/_app/immutable/chunks/{data-encoder.rFK9EOf0.js => data-encoder.XIVVN3o2.js} (79%) rename ui/assets/local/_app/immutable/chunks/{decode-payload.BTpeWKqJ.js => decode-payload.CR1Tto5x.js} (95%) rename ui/assets/local/_app/immutable/chunks/{encode-payload.BbGvULr4.js => encode-payload.DnXS3ERP.js} (82%) rename ui/assets/local/_app/immutable/chunks/{entry.DLEzeuD9.js => entry.kylZibtV.js} (99%) rename ui/assets/local/_app/immutable/chunks/{error.aZkLDhWZ.js => error.CjC3VuFL.js} (94%) rename ui/assets/local/_app/immutable/chunks/{event-history-file-import.C5IunOHG.js => event-history-file-import.BWMNMNHv.js} (80%) create mode 100644 ui/assets/local/_app/immutable/chunks/event-summary-table.BGH464r2.js delete mode 100644 ui/assets/local/_app/immutable/chunks/event-summary-table.Bjd71qae.js rename ui/assets/local/_app/immutable/chunks/{events-service.DFs0nrNV.js => events-service.BZohXMj_.js} (87%) rename ui/assets/local/_app/immutable/chunks/{events.Dh9P6F73.js => events.CbhKe7Ai.js} (86%) rename ui/assets/local/_app/immutable/chunks/{filter-or-copy-buttons.DaW7N_eF.js => filter-or-copy-buttons.CemQB_H1.js} (98%) rename ui/assets/local/_app/immutable/chunks/{filter-select.NIuiMMoD.js => filter-select.Cuzm5_PX.js} (98%) rename ui/assets/local/_app/immutable/chunks/{get-single-attribute-for-event.B37Av_rg.js => get-single-attribute-for-event.C6hE5al8.js} (96%) rename ui/assets/local/_app/immutable/chunks/{icon-button.CDcPAnTL.js => icon-button.BoA3mGH0.js} (95%) create mode 100644 ui/assets/local/_app/immutable/chunks/import-events.CEl85Dnc.js delete mode 100644 ui/assets/local/_app/immutable/chunks/import-events.Dljx0mMh.js rename ui/assets/local/_app/immutable/chunks/{index.CI5Z4Pgd.js => index.B3hS-irb.js} (98%) rename ui/assets/local/_app/immutable/chunks/{index.DCblj7qv.js => index.B7_EN-g2.js} (97%) rename ui/assets/local/_app/immutable/chunks/{index.Bde7eNxE.js => index.Nss_n040.js} (98%) rename ui/assets/local/_app/immutable/chunks/{index.DJYN40WT.js => index.lRK1fBz3.js} (91%) rename ui/assets/local/_app/immutable/chunks/{input.CTzUOpgs.js => input.Dizl7Mgk.js} (98%) rename ui/assets/local/_app/immutable/chunks/{link.BJceiGbc.js => link.C_v4aoat.js} (97%) rename ui/assets/local/_app/immutable/chunks/{logo.DmG7EKIA.js => logo.UJexZLaa.js} (98%) rename ui/assets/local/_app/immutable/chunks/{markdown.CpYkuk44.js => markdown.BEeC1bWs.js} (95%) rename ui/assets/local/_app/immutable/chunks/{menu-button.20KWkPAy.js => menu-button.DYcE3c8N.js} (97%) rename ui/assets/local/_app/immutable/chunks/{menu.FCESMtRU.js => menu.B3Snjx4c.js} (98%) rename ui/assets/local/_app/immutable/chunks/{modal.DyMhWY1J.js => modal.BxyQo5_L.js} (96%) rename ui/assets/local/_app/immutable/chunks/{namespaces-service.24nHfQvn.js => namespaces-service.CPFqCmJx.js} (83%) delete mode 100644 ui/assets/local/_app/immutable/chunks/namespaces.619_s9Tr.js create mode 100644 ui/assets/local/_app/immutable/chunks/namespaces.DEm0M_ie.js rename ui/assets/local/_app/immutable/chunks/{nexus-form.BNYVknO-.js => nexus-form.sJTgAfD6.js} (97%) rename ui/assets/local/_app/immutable/chunks/{nexus-service.BPsrr5_T.js => nexus-service.CnR3KXfY.js} (92%) rename ui/assets/local/_app/immutable/chunks/{option.Bt5AmPHo.js => option.BuKObSE0.js} (97%) rename ui/assets/local/_app/immutable/chunks/{paginated.L2uilqIm.js => paginated.CcIszT9D.js} (96%) rename ui/assets/local/_app/immutable/chunks/{paginated.BsR1kdqH.js => paginated.CfuFFT3F.js} (78%) rename ui/assets/local/_app/immutable/chunks/{pagination.Dxf-be3Z.js => pagination.1KQhGwzN.js} (97%) rename ui/assets/local/_app/immutable/chunks/{pagination.BCeOU9Ta.js => pagination.B2FxfgZG.js} (96%) create mode 100644 ui/assets/local/_app/immutable/chunks/paths.C1CnfzR-.js delete mode 100644 ui/assets/local/_app/immutable/chunks/paths.DlAH43M2.js rename ui/assets/local/_app/immutable/chunks/{payload-decoder.DlOPrRzg.js => payload-decoder.C_mCVVdL.js} (84%) rename ui/assets/local/_app/immutable/chunks/{payload-input-with-encoding.BapU-_VF.js => payload-input-with-encoding.CjdKAmav.js} (94%) rename ui/assets/local/_app/immutable/chunks/{payload-input.BbQDy2Xg.js => payload-input.BCsK9YCY.js} (97%) rename ui/assets/local/_app/immutable/chunks/{persist-store.Bvu2qNDI.js => persist-store.DeOEcwHN.js} (93%) rename ui/assets/local/_app/immutable/chunks/{pollers-service.YXEUeA9H.js => pollers-service.BcPp2B7I.js} (97%) rename ui/assets/local/_app/immutable/chunks/{query-service.D3ysowbA.js => query-service.BpCb13SU.js} (91%) rename ui/assets/local/_app/immutable/chunks/{radio-input.yEAROJgW.js => radio-input.OzdV2p8V.js} (98%) rename ui/assets/local/_app/immutable/chunks/{route-for-api.BTloiRV6.js => route-for-api.DGDQNXtX.js} (94%) rename ui/assets/local/_app/immutable/chunks/{route-for.BjP6gGR7.js => route-for.B9fTWV7L.js} (97%) rename ui/assets/local/_app/immutable/chunks/{schedule-form-view.BfrSFD2l.js => schedule-form-view.Sl7Y_1Oq.js} (98%) rename ui/assets/local/_app/immutable/chunks/{schedule-frequency.SW9tPKxx.js => schedule-frequency.Bpvyfzre.js} (96%) rename ui/assets/local/_app/immutable/chunks/{schedules.DZMegXhn.js => schedules.BI2Sbv1C.js} (94%) rename ui/assets/local/_app/immutable/chunks/{search-attributes.C9oQpIly.js => search-attributes.Dmice2E5.js} (92%) rename ui/assets/local/_app/immutable/chunks/{settings-service.6ZfKSI4U.js => settings-service.lqZRRkVY.js} (96%) rename ui/assets/local/_app/immutable/chunks/{split-button.CWfYBMpf.js => split-button.70FZ_ydj.js} (96%) rename ui/assets/local/_app/immutable/chunks/{stores.Dz-RNcUk.js => stores.Ds4o9nwd.js} (83%) rename ui/assets/local/_app/immutable/chunks/{tab.CpZOxof2.js => tab.y0H1rcBf.js} (98%) rename ui/assets/local/_app/immutable/chunks/{time-format.D2wF3ave.js => time-format.BLKgLEx9.js} (99%) rename ui/assets/local/_app/immutable/chunks/{time-picker.BvbblB8x.js => time-picker.G0x2sfcZ.js} (98%) rename ui/assets/local/_app/immutable/chunks/{to-time-difference.ZrFqr6rH.js => to-time-difference.l4Q9xnPU.js} (91%) rename ui/assets/local/_app/immutable/chunks/{toaster.D-OAJjvv.js => toaster.p5hsABhI.js} (94%) rename ui/assets/local/_app/immutable/chunks/{toggle-buttons.Cubqph53.js => toggle-buttons.cS3NnOtm.js} (98%) rename ui/assets/local/_app/immutable/chunks/{translate.ncUacGRD.js => translate.9wzy45oZ.js} (92%) rename ui/assets/local/_app/immutable/chunks/{update-query-parameters.DVJ0yHKX.js => update-query-parameters.DTvdkkGj.js} (85%) rename ui/assets/local/_app/immutable/chunks/{versions.CeMhowfV.js => versions.BSCVnN4z.js} (58%) rename ui/assets/local/_app/immutable/chunks/{worker-table.CpbGX-wq.js => worker-table.BTld4JO6.js} (97%) rename ui/assets/local/_app/immutable/chunks/{workflow-counts.Bgc8s1JU.js => workflow-counts.D3FzL32z.js} (90%) rename ui/assets/local/_app/immutable/chunks/{workflow-create-disabled.Dpno7PTz.js => workflow-create-disabled.BovVEcSd.js} (77%) rename ui/assets/local/_app/immutable/chunks/{workflow-json-navigator.D-VSmCkm.js => workflow-json-navigator.sqiRvlQE.js} (97%) rename ui/assets/local/_app/immutable/chunks/{workflow-run.DcChDuxV.js => workflow-run.CoKQBOG_.js} (50%) rename ui/assets/local/_app/immutable/chunks/{workflow-terminate-enabled.B8WATLoM.js => workflow-terminate-enabled.5VU8mX4o.js} (94%) rename ui/assets/local/_app/immutable/chunks/{workflows.BzgE0E1S.js => workflows.Cse8qlOg.js} (94%) delete mode 100644 ui/assets/local/_app/immutable/entry/app.Cg8NqhWv.js create mode 100644 ui/assets/local/_app/immutable/entry/app.DhqdLS7j.js delete mode 100644 ui/assets/local/_app/immutable/entry/start.TxMCp5N8.js create mode 100644 ui/assets/local/_app/immutable/entry/start.rDyhpDSO.js rename ui/assets/local/_app/immutable/nodes/{1.BhgCFllH.js => 1.C5LQnY0e.js} (87%) rename ui/assets/local/_app/immutable/nodes/{10.EIXLH7k9.js => 10.CRr1YwQ1.js} (93%) rename ui/assets/local/_app/immutable/nodes/{11.rbZzRztA.js => 11.BBIfjXhP.js} (81%) rename ui/assets/local/_app/immutable/nodes/{12.DSRPizbx.js => 12.BZ18BAHA.js} (75%) rename ui/assets/local/_app/immutable/nodes/{13.DW978geN.js => 13.mVbeR_sr.js} (94%) rename ui/assets/local/_app/immutable/nodes/{14.BCP5k91W.js => 14.D1uml7DU.js} (76%) rename ui/assets/local/_app/immutable/nodes/{15.CTlFIzVM.js => 15.LwWhC-sc.js} (81%) rename ui/assets/local/_app/immutable/nodes/{16.DYm3t1OC.js => 16.KQoNOEjE.js} (81%) rename ui/assets/local/_app/immutable/nodes/{17.cPOI0IGM.js => 17.hkGt17IV.js} (81%) rename ui/assets/local/_app/immutable/nodes/{18.DxrAxMVp.js => 18.CLYvwiyG.js} (95%) rename ui/assets/local/_app/immutable/nodes/{19.CAKcRNTA.js => 19.DstKIVrK.js} (98%) rename ui/assets/local/_app/immutable/nodes/{2.BOq6cVGU.js => 2.gAdzXo33.js} (98%) rename ui/assets/local/_app/immutable/nodes/{20.BRKCESap.js => 20.zy3apo8s.js} (97%) rename ui/assets/local/_app/immutable/nodes/{21.j3wmBe2Z.js => 21.BqvboFmv.js} (96%) rename ui/assets/local/_app/immutable/nodes/{22.C9eoZ9Zn.js => 22.B_C6GDmb.js} (98%) create mode 100644 ui/assets/local/_app/immutable/nodes/23.BP9LTO0G.js delete mode 100644 ui/assets/local/_app/immutable/nodes/23.CDwnffOj.js rename ui/assets/local/_app/immutable/nodes/{24.CHw1Q09s.js => 24.k7h2mvTa.js} (97%) rename ui/assets/local/_app/immutable/nodes/{25.D4nY7nvZ.js => 25.CRXnl26E.js} (93%) rename ui/assets/local/_app/immutable/nodes/{26.CDQOaka1.js => 26.BjioyYdH.js} (89%) rename ui/assets/local/_app/immutable/nodes/{28.7A7izdim.js => 28.CktOawpV.js} (98%) rename ui/assets/local/_app/immutable/nodes/{29.7Vw4hMuw.js => 29.C5VU778x.js} (97%) rename ui/assets/local/_app/immutable/nodes/{3.CALA-tyn.js => 3.DPtmlwhS.js} (93%) rename ui/assets/local/_app/immutable/nodes/{30.CqqTTHxo.js => 30.BrN2lZKQ.js} (83%) rename ui/assets/local/_app/immutable/nodes/{32.pphDLbtv.js => 32.CbjV9l1U.js} (95%) create mode 100644 ui/assets/local/_app/immutable/nodes/33.CAfZbG17.js delete mode 100644 ui/assets/local/_app/immutable/nodes/33.D6UHv9eO.js rename ui/assets/local/_app/immutable/nodes/{34.QysnXzBa.js => 34.CmRhJUwi.js} (81%) rename ui/assets/local/_app/immutable/nodes/{35.CUqsp5ZR.js => 35.Cmq5uW0_.js} (88%) rename ui/assets/local/_app/immutable/nodes/{36.DjUbZSFv.js => 36.BZuxtmh0.js} (84%) rename ui/assets/local/_app/immutable/nodes/{37.QysnXzBa.js => 37.CmRhJUwi.js} (81%) rename ui/assets/local/_app/immutable/nodes/{38.QysnXzBa.js => 38.CmRhJUwi.js} (81%) rename ui/assets/local/_app/immutable/nodes/{39.CpF36kwV.js => 39.CaeGOORd.js} (94%) rename ui/assets/local/_app/immutable/nodes/{4.B3mgOWfd.js => 4.9j4L6jmF.js} (94%) rename ui/assets/local/_app/immutable/nodes/{40.BECBiniA.js => 40.DQDnGBWV.js} (97%) rename ui/assets/local/_app/immutable/nodes/{41.DUr9qQjS.js => 41.C6rfCHSE.js} (94%) rename ui/assets/local/_app/immutable/nodes/{42.BFxLa9wr.js => 42.CHGs0HHm.js} (97%) rename ui/assets/local/_app/immutable/nodes/{43.D9S71pAt.js => 43.DqmIkYfr.js} (76%) rename ui/assets/local/_app/immutable/nodes/{44.CXjtdn97.js => 44.D60ZzcQ_.js} (86%) rename ui/assets/local/_app/immutable/nodes/{45.x1LiIHi-.js => 45.B-TLuIb4.js} (92%) rename ui/assets/local/_app/immutable/nodes/{46.DUQthmfu.js => 46.DgUopdD6.js} (95%) rename ui/assets/local/_app/immutable/nodes/{47.DdQhpBWt.js => 47.heQt60Vb.js} (96%) rename ui/assets/local/_app/immutable/nodes/{48.BSUzc4rz.js => 48.nRDxtd1K.js} (94%) rename ui/assets/local/_app/immutable/nodes/{49.Bg4JBSA7.js => 49.BtaIZfCW.js} (90%) rename ui/assets/local/_app/immutable/nodes/{5.D7BgctVj.js => 5.gTk0G_dj.js} (85%) rename ui/assets/local/_app/immutable/nodes/{50.DcnjwYSw.js => 50.Ct-GzfE8.js} (93%) rename ui/assets/local/_app/immutable/nodes/{51.C7mbBFF_.js => 51.wAEGmlDx.js} (92%) rename ui/assets/local/_app/immutable/nodes/{52.C7mbBFF_.js => 52.wAEGmlDx.js} (92%) rename ui/assets/local/_app/immutable/nodes/{7.BBnZN2fU.js => 7.BQkJzEIm.js} (95%) rename ui/assets/local/_app/immutable/nodes/{8.DMqgyztx.js => 8.Dyn-TH2r.js} (97%) rename ui/assets/local/_app/immutable/nodes/{9.Dy64mKZZ.js => 9.Dki_NxDW.js} (91%) diff --git a/ui/assets/local/_app/immutable/assets/23.DdeQs7xt.css b/ui/assets/local/_app/immutable/assets/23.DdeQs7xt.css deleted file mode 100644 index baa4b5492..000000000 --- a/ui/assets/local/_app/immutable/assets/23.DdeQs7xt.css +++ /dev/null @@ -1 +0,0 @@ -.frequency.svelte-dhsfg0{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(233 213 255/var(--tw-text-opacity));display:flex;flex-direction:column;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;height:auto;line-height:1.25rem;max-height:8rem;overflow:auto;padding:.5rem}.cell.svelte-tyvqki{padding:.5rem;text-align:left} diff --git a/ui/assets/local/_app/immutable/assets/23.ZlWIrbKZ.css b/ui/assets/local/_app/immutable/assets/23.ZlWIrbKZ.css new file mode 100644 index 000000000..a65f1a223 --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/23.ZlWIrbKZ.css @@ -0,0 +1 @@ +.frequency.svelte-11lgv9h{background-color:rgb(var(--color-surface-primary));border-color:rgb(var(--color-border-subtle));border-radius:.5rem;border-width:2px;display:flex;flex-direction:column;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;height:auto;line-height:1.25rem;max-height:8rem;overflow:auto;padding:.5rem}.cell.svelte-tyvqki{padding:.5rem;text-align:left} diff --git a/ui/assets/local/_app/immutable/assets/_page.DdeQs7xt.css b/ui/assets/local/_app/immutable/assets/_page.DdeQs7xt.css deleted file mode 100644 index baa4b5492..000000000 --- a/ui/assets/local/_app/immutable/assets/_page.DdeQs7xt.css +++ /dev/null @@ -1 +0,0 @@ -.frequency.svelte-dhsfg0{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity));border-radius:.5rem;color:rgb(233 213 255/var(--tw-text-opacity));display:flex;flex-direction:column;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;height:auto;line-height:1.25rem;max-height:8rem;overflow:auto;padding:.5rem}.cell.svelte-tyvqki{padding:.5rem;text-align:left} diff --git a/ui/assets/local/_app/immutable/assets/_page.ZlWIrbKZ.css b/ui/assets/local/_app/immutable/assets/_page.ZlWIrbKZ.css new file mode 100644 index 000000000..a65f1a223 --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/_page.ZlWIrbKZ.css @@ -0,0 +1 @@ +.frequency.svelte-11lgv9h{background-color:rgb(var(--color-surface-primary));border-color:rgb(var(--color-border-subtle));border-radius:.5rem;border-width:2px;display:flex;flex-direction:column;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.875rem;height:auto;line-height:1.25rem;max-height:8rem;overflow:auto;padding:.5rem}.cell.svelte-tyvqki{padding:.5rem;text-align:left} diff --git a/ui/assets/local/_app/immutable/assets/app.C-Zoegwg.css b/ui/assets/local/_app/immutable/assets/app.C-Zoegwg.css new file mode 100644 index 000000000..0169cdef8 --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/app.C-Zoegwg.css @@ -0,0 +1 @@ +@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal.CBYe6022.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-wght-normal.DHeaknKs.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-ext-wght-normal.vpOIeGzY.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-wght-normal.RGdUHdk5.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-vietnamese-wght-normal.CZXuW_xV.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-ext-wght-normal.Wjt_kzju.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-wght-normal.DwMxL0mc.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-ext-400-normal.BKF826Yq.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-ext-400-normal.BFsbWmlE.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-400-normal.B3X9Q3bl.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-400-normal.RSQprfZD.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-ext-400-normal.XHIljJF7.woff2) format("woff2"),url(./noto-sans-mono-greek-ext-400-normal.BEKqrG7O.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-400-normal.BmWTa5Ro.woff2) format("woff2"),url(./noto-sans-mono-greek-400-normal.6qDloMmh.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(./noto-sans-mono-vietnamese-400-normal.BIG_m5Nd.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-ext-400-normal.Cko1VWhC.woff2) format("woff2"),url(./noto-sans-mono-latin-ext-400-normal.D2jd28eN.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-400-normal.C7CPWNDy.woff2) format("woff2"),url(./noto-sans-mono-latin-400-normal.DGdyLmRn.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-danger{background-color:rgb(var(--color-surface-danger));color:rgb(var(--color-text-primary))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.surface-retry{background-color:#ff9b70;color:rgb(var(--color-text-black))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-0\.5{left:.125rem}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[160px\]{top:160px}.top-\[260px\]{top:260px}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.top-\[700px\]{top:700px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[39\]{z-index:39}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[16rem\]{max-height:16rem}.max-h-\[20rem\]{max-height:20rem}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[16rem\]{width:16rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-24{--tw-translate-x:-6rem}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-12{--tw-translate-x:3rem}.translate-x-12,.translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-24{--tw-translate-x:6rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-90,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity:1;color:rgb(45 51 130/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.\*\:rounded-none>*{border-radius:0}.\*\:border-t-0>*{border-top-width:0}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1536px){.max-2xl\:w-full{width:100%}}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}.max-lg\:flex-col{flex-direction:column}}@media not all and (min-width:768px){.max-md\:fixed{position:fixed}.max-md\:bottom-16{bottom:4rem}.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:sticky{position:sticky}.md\:top-12{top:3rem}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-\[24rem\]{width:24rem}.md\:w-\[26rem\]{width:26rem}.md\:w-\[400px\]{width:400px}.md\:w-auto{width:auto}.md\:min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:border-r-2{border-right-width:2px}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:block{display:block}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-2\/3{width:66.666667%}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:max-w-xl{max-width:36rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:justify-between{justify-content:space-between}.xl\:gap-8{gap:2rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.\[\&\:not\(\:last-child\)\]\:border-r-2:not(:last-child){border-right-width:2px}.\[\&\>\*\:first-child\]\:rounded-t-2xl>:first-child{border-top-left-radius:1rem;border-top-right-radius:1rem}.\[\&\>\*\:first-child\]\:border-t-2>:first-child{border-top-width:2px}.\[\&\>\*\:last-child\]\:rounded-b-2xl>:last-child{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-child\]\:rounded-l-lg:first-child{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-child\]\:rounded-r-lg:last-child{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.CIEpXG4M.css b/ui/assets/local/_app/immutable/assets/app.CIEpXG4M.css deleted file mode 100644 index 4a21b2d9d..000000000 --- a/ui/assets/local/_app/immutable/assets/app.CIEpXG4M.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-ext-wght-normal.CBYe6022.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-wght-normal.DHeaknKs.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-ext-wght-normal.vpOIeGzY.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-wght-normal.RGdUHdk5.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-vietnamese-wght-normal.CZXuW_xV.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-ext-wght-normal.Wjt_kzju.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-wght-normal.DwMxL0mc.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.BKF826Yq.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.BFsbWmlE.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.B3X9Q3bl.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.RSQprfZD.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.XHIljJF7.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.BEKqrG7O.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.BmWTa5Ro.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.6qDloMmh.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-vietnamese-400-normal.BIG_m5Nd.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.Cko1VWhC.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.D2jd28eN.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.C7CPWNDy.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.DGdyLmRn.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-danger{background-color:rgb(var(--color-surface-danger));color:rgb(var(--color-text-primary))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.surface-retry{background-color:#ff9b70;color:rgb(var(--color-text-black))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-0\.5{left:.125rem}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[160px\]{top:160px}.top-\[260px\]{top:260px}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.top-\[700px\]{top:700px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[39\]{z-index:39}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[16rem\]{max-height:16rem}.max-h-\[20rem\]{max-height:20rem}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[16rem\]{width:16rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-24{--tw-translate-x:-6rem}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-12{--tw-translate-x:3rem}.translate-x-12,.translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-24{--tw-translate-x:6rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-90,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity:1;color:rgb(45 51 130/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.\*\:rounded-none>*{border-radius:0}.\*\:border-t-0>*{border-top-width:0}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1536px){.max-2xl\:w-full{width:100%}}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}.max-lg\:flex-col{flex-direction:column}}@media not all and (min-width:768px){.max-md\:fixed{position:fixed}.max-md\:bottom-16{bottom:4rem}.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:sticky{position:sticky}.md\:top-12{top:3rem}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-\[24rem\]{width:24rem}.md\:w-\[26rem\]{width:26rem}.md\:w-\[400px\]{width:400px}.md\:w-auto{width:auto}.md\:min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:border-r-2{border-right-width:2px}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:block{display:block}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-2\/3{width:66.666667%}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:max-w-xl{max-width:36rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:justify-between{justify-content:space-between}.xl\:gap-8{gap:2rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.\[\&\:not\(\:last-child\)\]\:border-r-2:not(:last-child){border-right-width:2px}.\[\&\>\*\:first-child\]\:rounded-t-2xl>:first-child{border-top-left-radius:1rem;border-top-right-radius:1rem}.\[\&\>\*\:first-child\]\:border-t-2>:first-child{border-top-width:2px}.\[\&\>\*\:last-child\]\:rounded-b-2xl>:last-child{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-child\]\:rounded-l-lg:first-child{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-child\]\:rounded-r-lg:last-child{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.Cqqh5LXg.css b/ui/assets/local/_app/immutable/assets/app.Cqqh5LXg.css new file mode 100644 index 000000000..893e292bb --- /dev/null +++ b/ui/assets/local/_app/immutable/assets/app.Cqqh5LXg.css @@ -0,0 +1 @@ +@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-ext-wght-normal.CBYe6022.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-cyrillic-wght-normal.DHeaknKs.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-ext-wght-normal.vpOIeGzY.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-greek-wght-normal.RGdUHdk5.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-vietnamese-wght-normal.CZXuW_xV.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-ext-wght-normal.Wjt_kzju.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(/_app/immutable/assets/inter-latin-wght-normal.DwMxL0mc.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.BKF826Yq.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-ext-400-normal.BFsbWmlE.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.B3X9Q3bl.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-cyrillic-400-normal.RSQprfZD.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.XHIljJF7.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-ext-400-normal.BEKqrG7O.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.BmWTa5Ro.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-greek-400-normal.6qDloMmh.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-vietnamese-400-normal.BIG_m5Nd.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.Cko1VWhC.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-ext-400-normal.D2jd28eN.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.C7CPWNDy.woff2) format("woff2"),url(/_app/immutable/assets/noto-sans-mono-latin-400-normal.DGdyLmRn.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-danger{background-color:rgb(var(--color-surface-danger));color:rgb(var(--color-text-primary))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.surface-retry{background-color:#ff9b70;color:rgb(var(--color-text-black))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-0\.5{left:.125rem}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[160px\]{top:160px}.top-\[260px\]{top:260px}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.top-\[700px\]{top:700px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[39\]{z-index:39}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[16rem\]{max-height:16rem}.max-h-\[20rem\]{max-height:20rem}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[16rem\]{width:16rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-24{--tw-translate-x:-6rem}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-12{--tw-translate-x:3rem}.translate-x-12,.translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-24{--tw-translate-x:6rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-90,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity:1;color:rgb(45 51 130/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.\*\:rounded-none>*{border-radius:0}.\*\:border-t-0>*{border-top-width:0}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1536px){.max-2xl\:w-full{width:100%}}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}.max-lg\:flex-col{flex-direction:column}}@media not all and (min-width:768px){.max-md\:fixed{position:fixed}.max-md\:bottom-16{bottom:4rem}.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:sticky{position:sticky}.md\:top-12{top:3rem}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-\[24rem\]{width:24rem}.md\:w-\[26rem\]{width:26rem}.md\:w-\[400px\]{width:400px}.md\:w-auto{width:auto}.md\:min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:border-r-2{border-right-width:2px}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:block{display:block}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-2\/3{width:66.666667%}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:max-w-xl{max-width:36rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:justify-between{justify-content:space-between}.xl\:gap-8{gap:2rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.\[\&\:not\(\:last-child\)\]\:border-r-2:not(:last-child){border-right-width:2px}.\[\&\>\*\:first-child\]\:rounded-t-2xl>:first-child{border-top-left-radius:1rem;border-top-right-radius:1rem}.\[\&\>\*\:first-child\]\:border-t-2>:first-child{border-top-width:2px}.\[\&\>\*\:last-child\]\:rounded-b-2xl>:last-child{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-child\]\:rounded-l-lg:first-child{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-child\]\:rounded-r-lg:last-child{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/app.DoM7g6DN.css b/ui/assets/local/_app/immutable/assets/app.DoM7g6DN.css deleted file mode 100644 index 9356cde00..000000000 --- a/ui/assets/local/_app/immutable/assets/app.DoM7g6DN.css +++ /dev/null @@ -1 +0,0 @@ -@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-ext-wght-normal.CBYe6022.woff2) format("woff2-variations");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-cyrillic-wght-normal.DHeaknKs.woff2) format("woff2-variations");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-ext-wght-normal.vpOIeGzY.woff2) format("woff2-variations");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-greek-wght-normal.RGdUHdk5.woff2) format("woff2-variations");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-vietnamese-wght-normal.CZXuW_xV.woff2) format("woff2-variations");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-ext-wght-normal.Wjt_kzju.woff2) format("woff2-variations");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Inter Variable;font-style:normal;font-weight:100 900;src:url(./inter-latin-wght-normal.DwMxL0mc.woff2) format("woff2-variations");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-ext-400-normal.BKF826Yq.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-ext-400-normal.BFsbWmlE.woff) format("woff");unicode-range:u+0460-052f,u+1c80-1c88,u+20b4,u+2de0-2dff,u+a640-a69f,u+fe2e-fe2f}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-cyrillic-400-normal.B3X9Q3bl.woff2) format("woff2"),url(./noto-sans-mono-cyrillic-400-normal.RSQprfZD.woff) format("woff");unicode-range:u+0301,u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-ext-400-normal.XHIljJF7.woff2) format("woff2"),url(./noto-sans-mono-greek-ext-400-normal.BEKqrG7O.woff) format("woff");unicode-range:u+1f??}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-greek-400-normal.BmWTa5Ro.woff2) format("woff2"),url(./noto-sans-mono-greek-400-normal.6qDloMmh.woff) format("woff");unicode-range:u+0370-03ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA8oABAAAAAAKLQAAA7GAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGoECG4dgHIJCBmA/U1RBVEQAgUQRCAqqWKVCC4IeAAE2AiQDhCQEIAWEbgeJfgwHG+YjMwMmhc0Asv9DgjZGCPo7sZqDDyNEwgSIZmOzKywiQRkl4IEy+NiZYm7SjagwyrvTXGEHf1kd/9erNO8vsK+if3TtfbFl8PT599/vqurbB8/qB4+FDGKSQPFEwkcmJ8HMuj/gtv4NMNhAmzKiwEQs6nAKFijGjMKOi/7468q+quIqG3io3+939iLeNRH6m45qIqllCJlSmI53Ep1I/hWb7m9BwyuXnvCEeKgPr+v0+3NUig+MvlsS4odG5DaFzZWFAn4TGdVLen+Di1HFHAFhUzQgdrH+pxHgP61VnuzfVW+5jsDtHAdQuA6Si9ARpram5s9WauqAe/tYESmgvj7oDpJQJ2PjANgCKkBhAFjpMzpSRmgVeHJfat/4utalEWoQ2hKM6JTgNUnWx2evv/YVQKhlAIBiAMKDIaAP6GF8rXW6pWOHhZPOE092dsnlHHcstPKUM85FViqvTFaKRkcx1MwJJ0ymt+2bYwSk+pmFMjYJzwTO9q+pBjj797Jq4JwELXXA4QBZAwVCz28pME4Pxx3ADCgJPlEwLzkj5hUSKUds4KEQ49DE+ujSon6xbaViAn1YxI0uu+/Wml5qWEV8mYfYc0u4MMmwDh1U71Q29wRZ7iLFIYl/Em7gE3dAxKQ8K1sglSPQbClKVUAyEpKAIsuhdq2/njrHpnMgG2/jk5kzJSKdRn53yld6Ty/d4zTnb5yzc3cpX7d0kU7TMXcg7hRSkmkr2cW17GuJ+bOlJqtxJQlq7bNJZcWsFtYs0N7rnNPJOiUrQpuQZ69SBbPoiSMxJsslMbQWJHr4kMQgv/PUmWfDe2R19+YLxG8OCZ3vceKobxdh58+IeOz7JeZZva7iXbK61HcXizd0e8/PIP7erc4/Ju7fDFB2gwq86a3pN4/ay97HjIAuJwsiQ3t1cjeAGcshvrVHnfBK1IgaFD7kKNHwHIUUlKMJmc4MmnbD5hOk6fwEfxq2oJRDVyYpO/ZC1kCohax1HIQMbAuZ7fW1DSAQwS1797xzA2zX5VifTODFO2iaaPGtuY0mqlxadPOzzHknXftpr4/BII8BYn0/fXg/M2i05BF0zcjj0/SezjyUcjKuyUAvyhKA6fY7ljVCIxHQrkziMk7VBZg5kPcXkxflEjgA4Wp7vp/gnuM05LJxDdqrDgSOEDEFpRS00LPNlS0IAod3WioREqIwZa1GARvqvm2lcQ362K7VpYzYYc4j36b/ynmQJwRZisZnNLIwHjWJOUusOT7nQ/2n+h9hdQ1IuR+SFI73VMqCeNiEdT5mwoLzsf7zE5P8kn1U6zR5n36z/qT+EPDttPkStn7b8MfZB0F/nL53mZBQSg7T6OEnHXtN0qAAwBWADAJDoDXYK/wX2MlArc2EzC3mmOvPtuzYahpJJQn9m9KUq4IsqifE4P7jA8wpNJq1OYNKd6SzTVGalTnTcal5IAqG2ptRrM1pHCtzC6aFSykM9DRPMy/IAjOiU4rpRjSMwPJRdf+8eZzB0VGbbJUKy/p2BjTgfgFDVEZKhA6ZlCwo0l7tpkaOX7uGXbwyFI5dnqHs81Ygx6+iF+Yz4FjfRJcihpGeJ5zBLl66poO3Szc1lpOLZZOql+3r7oKBYEMHD7IhS6szR6XKHYhU7tbcBhRVoitOn5htI5lHLu+BY2fmjZJLAdqVrh9jixjYcTl33tWzed9XJoaoyEqETsqCAu0uZMJurG8nHNtRa37aB2Onehqf85SyL8+RLO02BjJnK9a3e72TqgDLGbrigI0snm+Xi+VtuHy5WrsKmbBavYy6ByYQOhAjhw/bYTB4/rw3SvbnZRv9WELr06umlNe07cm9bKx/eBhBZGBwz4mEvlnr4qurf7949f0PHbzgA+iyi74rznuj1dqrrj23Um71lBO24HL1+S4nRtavf9adnsxcbfdChGrRX67fCtaF+MrkLt+PTJjHUdkOzYVjG85HXphLIk7ZjwN58BbEHAq270YmbEO1S2yQgeVv98HH9nCd0bfPfNQaFzVaedUVmPs4KJft2sdBsKG1K9kpAyOr178JS/fscEe5JQwKKn69CnQjuopQXikPbJ6dJp6fzptn8Fu0Kils1azoeQbfmw7yR2w5ELolCtmdCEXEH9kcqBP8R+N+XiroEcyw0Yz7B19qEsGNLbSfml7HXdqQl+O9tcJiixymZGQ4TIstLOTGy/lioeN49XTJQA5fKnQar1Y7jZcIwYeaXhrv36Y4rT4eyco6Gx510FbJO6Y+K/NrKxMCwrizuWRZ5fLKQv4PZ4Asn96vNfkH1Sw1TnpI40ubFKbIoyPwGs8UpInEkEq4sX4ptm6OSel5drFlNerCCil1DCVX+JEpDUh2DkgMCyZIH1B1oEvgIMyhKrvjErtysuN6GhNxcWlseIPcZwoiCk7LdI30z2IuVlzKtZTgjk6Ji/2S0hWoEBT8fWYT19EE1DObzPjPOzhyJ5dUDifVxUkO/lRujkuiyL1Ski/orOWLxfX8+C5C7F4RL8x24Um5SSEueXHxLmphMDcVryHiXPOEIUChEuqCgjK1Kp6bkBCp56gENmqWlCYxCrC+B2c/22ReFG0kWzhNenHQXnrfPntc9FlW8kxy5ft3pZVReffz3fxTxX4wr5bx29HpB4NBdXKk/XIfYRjQSHwk8KX4042xtArdyJreGA3Rqe6pl6J0a4k+OT7c3JG6cFaaxjRlfMd/fUR4R3m0dEwgWFJDFC5RQsdKSXZoR5kA95g0cZsxzYdDv5nzXZZIKM+WLGFKJcKiTJtotnprmBgvqyoWF7vZJ6oTYWKl26NtRwO//zFKEyaY37pqVeb/fPDOl6Qms6Nr33RZO2n7YqjpyeB34f7Rt+cHmG1IY9kWhoMF8++a0JwIUZCtwtPCktVT09Sf8JPLz6UEWDbtFDpu79NYuf+TPqfN17jO+tQDdgH+IKoviiUKcFnEW8Zkye3pCxu5ExdZ8xP8gjyvewnDP0CPE2bdknhL3k8o2cHmbLO23sZh71huvcLJZR+f1qf03uSH6OLZzvwDWNr3vOjDAb7zbBV6kdzbIQS8MpYolsBk6ll1zE18APVMGxyI1KfBE49yIr9pM2grpWLCjwgQx30IJmMUECIZkeZrUdiVfoqodrE0sDXEMqwHi4SrNaTh77tkjnCLjkWPCi2L+kK4t10ddhApkRf34pqsrgX6t1js3yRT2565wDQ/2JJ5uHABFxxwniBjB6OxyQ04cLGXpkT1zcG0Hxlc31z5AJOHycPkYfIweRimiUkuQmNoZd7JbhZyPZGEDL5fZsiVq/QhZ0ngw4u8oGZbLvyIEiUyt9EeX0QzqSHVj1gu+T2Gaj+4pgIuOPAjA2cnXcwmG7HSLRF1VT++cVz0qPobIeS1TpRWo3A532NYL5FvKLplZL4k8k48aibZPlM0aWInTNGEsQhOPDqBfGKxDxYrdaEWHb3gkh7ghxNaCuCmnVgL76pB4USCrZBpesn40grCXDhZgFhTXjRAtBVEGbQVwKCtsMR5Ay44gEm2JRNZOM7JvxfJJFlow1wQhUQ4nu+Lx0JWVP/g19L6YkRJ/ceIUP8YimP9DVanRmXlBXz9fbbk/KChe3HrYaeBUuiY9ZuUX0XvY4BW6uwC8t503Rygg96LzVQr3023zpQHboZW2aBnYnapp+ckK7fklDtqtkhKU6ZQz8ha2eh1LSGfzQkP5fpPymN5Rq2dbJ+To9rKNgR9DD2XRSdys1ok5BNWa6E/fWy19JL1nRFjtde1A3Taf9FXFZ683uO9HnfnrOSx/KjWLhymdbSUskdB33r5n0b7HSnrKO/qsfQ7PW3Nz6sGpy66SvS1M8+irz3hqe0/KY/lGbV2oV1aR7VVNvB76zdw2dJ8+UwZT87o1Hsko2SSDdtvUs1KnemLTLVybMlns20grhmD01BMI7Vdgxn0kGQU6WVQsxnTdqwG1tiVz+aG58sZc73X4ifCqso6VpY/s9cCxEXfa5YWEP7e3FJ+y2qrmF0e54HKEOTJXi9XR15HgDYt+Hr6XTJhzv9jsv0P+OXY6SeA3zc7nCxezP3uDPAUgOBnhDN1NRLhtwCi2/RUWUIBiDYN2RBBdRRAYnILex3xSUERITlOk2mw/DWfxAFSQl06xDSJZtCb0KEdAsz0iAlrHKKWiFOFz0NiuPZDEm7JfoVbW8RagOyeup3Cbaxqb2t6zeyIt7rXu6MHRt7GV/TjLGGKALz5AzkufN2hOQFeRK/FJFEbVpNUfrhJZpRXk5weHkzKqHZsktdhycR8gzQdRYRc5ZOUVK4r4InCLPWa1CpSQ0WjVIvKT64MV4FvMXp+2AbNovXWdmWJJpqea1m4QJNq1Fij4Spiq2cTwzVdi3EZO1cXr6WoV7cywDxlpK1qgmkTpeeaYkJzX8766aWPvvpnT3deTHdenIDz7hmfNMNNJicnEVM+7+19SZdk1jfo1NQYU63rIyv7CRb0qGy37HSOJuuqAr4kLRurtZmmTUbzkjsam22miaatirc7rlevVpBdar68BtNyH1Spa5G0ToCkTcqOrtqF9bW5Gjm+RgkfiouUHaUf/iNfgRQxTIsOPfQzxAjjCUnh0mXL8284LnvkLepKQzdMK6675bYb0bMd1yOUcSGVNkzLdlzPD8IoTtIsL8qqbtquH8ZpXtZtP87rft7vJ5EpVBqdwWSxOSAEI1weXyAUiSVSmVyhVKk1WhTDCZ3eYDSZLXEtjlab3eF0uT1enz/xhxDom3n77wbqf6axoKHCVf97IYPbtdH9Ejwb42dxjL1WgVzJV3X3nyAOEr9t6pP8cj/XL1Oxil87NF/nAjoFLCAQMAgoGDgEJBQ0DCyc9EoDQCBgEFAwcAhIKGgYWDjplQGAQMAgoGDgEJBQ0DCwcNIrCwCBgEFAwcAhIKGgYWDhpFcOAAIBg4CCgUNAQkHDwMJJrzwABAEFA4e4K1kTl3PWzy+Xwx/s5P8Jxxmjou+ff6jTh/l7H5O2GmAg2jeBebk17DlgiOjghWj0erZDcxvVkc1ArLSLoe4V2u2ErZH8Z09vwGUAAA==) format("woff2"),url(./noto-sans-mono-vietnamese-400-normal.BIG_m5Nd.woff) format("woff");unicode-range:u+0102-0103,u+0110-0111,u+0128-0129,u+0168-0169,u+01a0-01a1,u+01af-01b0,u+0300-0301,u+0303-0304,u+0308-0309,u+0323,u+0329,u+1ea0-1ef9,u+20ab}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-ext-400-normal.Cko1VWhC.woff2) format("woff2"),url(./noto-sans-mono-latin-ext-400-normal.D2jd28eN.woff) format("woff");unicode-range:u+0100-02af,u+0304,u+0308,u+0329,u+1e00-1e9f,u+1ef2-1eff,u+2020,u+20a0-20ab,u+20ad-20cf,u+2113,u+2c60-2c7f,u+a720-a7ff}@font-face{font-display:swap;font-family:Noto Sans Mono;font-style:normal;font-weight:400;src:url(./noto-sans-mono-latin-400-normal.C7CPWNDy.woff2) format("woff2"),url(./noto-sans-mono-latin-400-normal.DGdyLmRn.woff) format("woff");unicode-range:u+00??,u+0131,u+0152-0153,u+02bb-02bc,u+02c6,u+02da,u+02dc,u+0304,u+0308,u+0329,u+2000-206f,u+2074,u+20ac,u+2122,u+2191,u+2193,u+2212,u+2215,u+feff,u+fffd}/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border-color:rgb(var(--color-border-primary));border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:normal;-webkit-tap-highlight-color:transparent;font-family:Inter,ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:normal;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}:root{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:20 20 20;--color-text-secondary:39 56 96;--color-text-inverse:248 250 252;--color-text-subtle:70 90 120;--color-text-danger:199 22 7;--color-text-information:68 76 231;--color-text-success:0 150 78;--color-text-warning:220 122 3;--color-text-pink:255 38 255;--color-text-brand:68 76 231;--color-surface-background:248 250 252;--color-surface-primary:255 255 255;--color-surface-secondary:248 250 252;--color-surface-subtle:201 217 240;--color-surface-table:20 20 20;--color-surface-success:213 255 235;--color-surface-success-loud:0 192 95;--color-surface-information:224 234 255;--color-surface-information-loud:68 76 231;--color-surface-danger:255 228 212;--color-surface-warning:255 244 198;--color-surface-brand:68 76 231;--color-surface-inverse:20 20 20;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:47 52 164;--color-interactive-secondary-surface:255 255 255;--color-interactive-secondary-hover:232 239 255;--color-interactive-secondary-active:174 190 217;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:201 217 240;--color-interactive-ghost-active:201 217 240;--color-interactive-table-hover:224 234 255;--color-border-primary:20 20 20;--color-border-secondary:146 164 195;--color-border-subtle:174 190 217;--color-border-table:20 20 20;--color-border-inverse:248 250 252;--color-border-information:68 76 231;--color-border-success:0 192 95;--color-border-warning:254 195 33;--color-border-danger:255 69 24;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}[data-theme=dark]{--color-text-black:20 20 20;--color-text-white:248 250 252;--color-text-primary:248 250 252;--color-text-secondary:146 164 195;--color-text-inverse:20 20 20;--color-text-subtle:70 90 120;--color-text-danger:255 102 55;--color-text-information:97 115 243;--color-text-success:0 192 95;--color-text-warning:248 162 8;--color-text-pink:255 97 250;--color-text-brand:128 152 249;--color-surface-background:20 20 20;--color-surface-primary:0 0 0;--color-surface-secondary:15 23 42;--color-surface-subtle:39 56 96;--color-surface-table:30 41 59;--color-surface-success:0 55 29;--color-surface-success-loud:0 192 95;--color-surface-information:26 28 76;--color-surface-information-loud:68 76 231;--color-surface-danger:69 5 5;--color-surface-warning:70 27 2;--color-surface-brand:97 115 243;--color-surface-inverse:248 250 252;--color-surface-black:0 0 0;--color-interactive-surface:68 76 231;--color-interactive-hover:54 59 204;--color-interactive-active:45 51 130;--color-interactive-secondary-surface:102 124 161;--color-interactive-secondary-hover:30 41 59;--color-interactive-secondary-active:39 56 96;--color-interactive-danger-surface:255 155 112;--color-interactive-danger-hover:255 102 55;--color-interactive-danger-active:255 69 24;--color-interactive-ghost-hover:70 90 120;--color-interactive-ghost-active:15 23 42;--color-interactive-table-hover:30 41 59;--color-border-primary:124 143 177;--color-border-secondary:70 90 120;--color-border-subtle:39 56 96;--color-border-table:30 41 59;--color-border-inverse:20 20 20;--color-border-information:97 115 243;--color-border-success:0 150 78;--color-border-warning:182 85 7;--color-border-danger:255 102 55;--color-border-focus-info:68 76 231;--color-border-focus-danger:240 36 6}h1{font-size:1.875rem}h1,h2{font-weight:500}h2{font-size:1.5rem}h3{font-size:1.25rem}h3,h4{font-weight:500}h4{font-size:1.125rem}h5{font-size:1rem}h5,h6{font-weight:500}.body-normal,h6{font-size:.875rem}.body-normal{font-weight:400}.body-medium{font-size:.875rem;font-weight:500}.body-small{font-size:.75rem;font-weight:400}.body-small-medium{font-size:.75rem;font-weight:500}.body-small-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;font-weight:400}*,body,html{box-sizing:border-box}body{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary));font-size:.875rem;font-weight:400;overscroll-behavior:none;position:relative}input[type=search]::-webkit-search-cancel-button{display:none}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(147,197,253,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.surface-background{background-color:rgb(var(--color-surface-background));color:rgb(var(--color-text-primary))}.surface-primary{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-secondary{background-color:rgb(var(--color-surface-secondary));color:rgb(var(--color-text-primary))}.surface-interactive{background-color:rgb(var(--color-interactive-surface));color:rgb(var(--color-text-primary))}.surface-interactive:focus-visible{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:hover{background-color:rgb(var(--color-interactive-hover))}.surface-interactive:active{background-color:rgb(var(--color-interactive-active))}.surface-interactive-secondary{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.surface-interactive-secondary:active{background-color:rgb(var(--color-interactive-secondary-active))}.surface-interactive-danger{background-color:rgb(var(--color-interactive-danger-surface));color:rgb(var(--color-text-black))}.surface-interactive-danger:focus-visible{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:hover{background-color:rgb(var(--color-interactive-danger-hover))}.surface-interactive-danger:active{background-color:rgb(var(--color-interactive-danger-active))}.surface-interactive-ghost{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.surface-interactive-ghost:active{background-color:rgb(var(--color-interactive-ghost-active))}.surface-inverse{background-color:rgb(var(--color-surface-inverse));color:rgb(var(--color-text-inverse))}.surface-subtle{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-primary))}.surface-table{background-color:rgb(var(--color-surface-table));color:rgb(var(--color-text-inverse))}.surface-warning{background-color:rgb(var(--color-surface-subtle));color:rgb(var(--color-text-black))}.surface-danger{background-color:rgb(var(--color-surface-danger));color:rgb(var(--color-text-primary))}.surface-black{background-color:rgb(var(--color-surface-black));color:rgb(var(--color-text-white))}.surface-retry{background-color:#ff9b70;color:rgb(var(--color-text-black))}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.not-sr-only{clip:auto;height:auto;margin:0;overflow:visible;padding:0;position:static;white-space:normal;width:auto}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.static{position:static}.\!fixed{position:fixed!important}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-bottom-6{bottom:-1.5rem}.-top-6{top:-1.5rem}.bottom-0{bottom:0}.bottom-5{bottom:1.25rem}.left-0{left:0}.left-0\.5{left:.125rem}.left-1\/2{left:50%}.left-24{left:6rem}.left-\[60px\]{left:60px}.left-auto{left:auto}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-5{right:1.25rem}.right-8{right:2rem}.right-auto{right:auto}.top-0{top:0}.top-1{top:.25rem}.top-2{top:.5rem}.top-\[160px\]{top:160px}.top-\[260px\]{top:260px}.top-\[40px\]{top:40px}.top-\[50\%\]{top:50%}.top-\[540px\]{top:540px}.top-\[700px\]{top:700px}.z-100{z-index:100}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}.z-\[39\]{z-index:39}.z-\[55\]{z-index:55}.z-\[99999\]{z-index:99999}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.col-span-2{grid-column:span 2/span 2}.float-right{float:right}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-auto{margin:auto}.-mx-4{margin-left:-1rem;margin-right:-1rem}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3{margin-left:.75rem;margin-right:.75rem}.mx-\[8px\]{margin-left:8px;margin-right:8px}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-bottom:.25rem;margin-top:.25rem}.my-12{margin-bottom:3rem;margin-top:3rem}.my-2{margin-bottom:.5rem;margin-top:.5rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-7{margin-bottom:1.75rem;margin-top:1.75rem}.my-\[20vh\]{margin-bottom:20vh;margin-top:20vh}.-mb-2{margin-bottom:-.5rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-10{margin-top:-2.5rem}.-mt-12{margin-top:-3rem}.-mt-2{margin-top:-.5rem}.-mt-6{margin-top:-1.5rem}.mb-1{margin-bottom:.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-7{margin-left:1.75rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-6{margin-right:1.5rem}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-32{margin-top:8rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-8{margin-top:2rem}.box-border{box-sizing:border-box}.box-content{box-sizing:content-box}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-auto{aspect-ratio:auto}.aspect-square{aspect-ratio:1/1}.h-0{height:0}.h-0\.5{height:.125rem}.h-1{height:.25rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-96{height:24rem}.h-\[224px\]{height:224px}.h-\[24px\]{height:24px}.h-\[540px\]{height:540px}.h-\[5px\]{height:5px}.h-\[64px\]{height:64px}.h-\[calc\(100\%-2\.5rem\)\]{height:calc(100% - 2.5rem)}.h-\[calc\(100\%-64px\)\]{height:calc(100% - 64px)}.h-auto{height:auto}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-20{max-height:5rem}.max-h-32{max-height:8rem}.max-h-52{max-height:13rem}.max-h-96{max-height:24rem}.max-h-\[16rem\]{max-height:16rem}.max-h-\[20rem\]{max-height:20rem}.max-h-fit{max-height:-moz-fit-content;max-height:fit-content}.min-h-80{min-height:20rem}.min-h-\[1\.25rem\]{min-height:1.25rem}.min-h-\[154px\]{min-height:154px}.min-h-\[2\.5rem\]{min-height:2.5rem}.min-h-\[24px\]{min-height:24px}.min-h-\[600px\]{min-height:600px}.min-h-fit{min-height:-moz-fit-content;min-height:fit-content}.min-h-screen{min-height:100vh}.w-0{width:0}.w-1{width:.25rem}.w-1\.5{width:.375rem}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\/12{width:16.666667%}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3\/12{width:25%}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-4\/12{width:33.333333%}.w-40{width:10rem}.w-44{width:11rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-6\/12{width:50%}.w-60{width:15rem}.w-64{width:16rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-9\/12{width:75%}.w-96{width:24rem}.w-\[10rem\]{width:10rem}.w-\[16rem\]{width:16rem}.w-\[1px\]{width:1px}.w-\[240px\]{width:240px}.w-\[24px\]{width:24px}.w-\[25rem\]{width:25rem}.w-\[265px\]{width:265px}.w-\[27rem\]{width:27rem}.w-\[32px\]{width:32px}.w-\[35vw\]{width:35vw}.w-\[500px\]{width:500px}.w-\[calc\(100\%-6rem\)\]{width:calc(100% - 6rem)}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-screen{width:100vw}.min-w-0{min-width:0}.min-w-\[280px\]{min-width:280px}.min-w-\[32px\]{min-width:32px}.min-w-\[600px\]{min-width:600px}.min-w-\[80px\]{min-width:80px}.min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.min-w-max{min-width:-moz-max-content;min-width:max-content}.min-w-min{min-width:-moz-min-content;min-width:min-content}.max-w-16{max-width:4rem}.max-w-60{max-width:15rem}.max-w-80{max-width:20rem}.max-w-\[3rem\]{max-width:3rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-auto{flex:1 1 auto}.flex-none{flex:none}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/3{flex-basis:33.333333%}.table-auto{table-layout:auto}.table-fixed{table-layout:fixed}.border-separate{border-collapse:separate}.border-spacing-0{--tw-border-spacing-x:0px;--tw-border-spacing-y:0px;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y)}.origin-bottom-left{transform-origin:bottom left}.-translate-x-1\/2{--tw-translate-x:-50%}.-translate-x-1\/2,.-translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-24{--tw-translate-x:-6rem}.-translate-x-full{--tw-translate-x:-100%}.-translate-x-full,.-translate-y-1\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y:-50%}.-translate-y-full{--tw-translate-y:-100%}.-translate-y-full,.translate-x-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x:0px}.translate-x-12{--tw-translate-x:3rem}.translate-x-12,.translate-x-24{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-24{--tw-translate-x:6rem}.translate-x-\[10px\]{--tw-translate-x:10px}.translate-x-\[10px\],.translate-y-\[-10px\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-10px\]{--tw-translate-y:-10px}.translate-y-\[-50\%\]{--tw-translate-y:-50%}.rotate-90,.translate-y-\[-50\%\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate:90deg}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-flow-row{grid-auto-flow:row}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[2rem\]{grid-template-columns:2rem}.grid-rows-\[fit-content\(1\.5rem\)_minmax\(3rem\,4rem\)_1fr_8rem\]{grid-template-rows:fit-content(1.5rem) minmax(3rem,4rem) 1fr 8rem}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-between{align-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.gap-0{gap:0}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-\[1px\]{gap:1px}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-4{row-gap:1rem}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1rem*var(--tw-space-y-reverse));margin-top:calc(1rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.\!overflow-visible{overflow:visible!important}.overflow-visible{overflow:visible}.overflow-scroll{overflow:scroll}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.overflow-x-scroll{overflow-x:scroll}.overflow-y-scroll{overflow-y:scroll}.truncate{overflow:hidden;white-space:nowrap}.text-ellipsis,.truncate{text-overflow:ellipsis}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-line{white-space:pre-line}.whitespace-pre-wrap{white-space:pre-wrap}.whitespace-break-spaces{white-space:break-spaces}.text-wrap{text-wrap:wrap}.text-nowrap{text-wrap:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\[50\%\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.rounded-sm{border-radius:.125rem}.rounded-xl{border-radius:.75rem}.rounded-b{border-bottom-left-radius:.25rem;border-bottom-right-radius:.25rem}.rounded-b-md{border-bottom-left-radius:.375rem;border-bottom-right-radius:.375rem}.rounded-l-none{border-bottom-left-radius:0;border-top-left-radius:0}.rounded-r{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem}.rounded-r-none{border-bottom-right-radius:0;border-top-right-radius:0}.rounded-t{border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-t-md{border-top-left-radius:.375rem;border-top-right-radius:.375rem}.rounded-bl-lg{border-bottom-left-radius:.5rem}.rounded-bl-none{border-bottom-left-radius:0}.rounded-br{border-bottom-right-radius:.25rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-br-none{border-bottom-right-radius:0}.rounded-tl-lg{border-top-left-radius:.5rem}.rounded-tl-none{border-top-left-radius:0}.rounded-tr{border-top-right-radius:.25rem}.rounded-tr-lg{border-top-right-radius:.5rem}.rounded-tr-none{border-top-right-radius:0}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-y{border-bottom-width:1px;border-top-width:1px}.\!border-l-0{border-left-width:0!important}.\!border-r-0{border-right-width:0!important}.border-b{border-bottom-width:1px}.border-b-0{border-bottom-width:0}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-r{border-right-width:1px}.border-r-2{border-right-width:2px}.border-t{border-top-width:1px}.border-t-2{border-top-width:2px}.border-solid{border-style:solid}.border-\[transparent\]{border-color:transparent}.border-danger{border-color:rgb(var(--color-border-danger))}.border-green-200{--tw-border-opacity:1;border-color:rgb(174 255 216/var(--tw-border-opacity))}.border-information{border-color:rgb(var(--color-border-information))}.border-orange-500{--tw-border-opacity:1;border-color:rgb(249 115 22/var(--tw-border-opacity))}.border-primary{border-color:rgb(var(--color-border-primary))}.border-secondary{border-color:rgb(var(--color-border-secondary))}.border-slate-100{--tw-border-opacity:1;border-color:rgb(201 217 240/var(--tw-border-opacity))}.border-slate-200{--tw-border-opacity:1;border-color:rgb(174 190 217/var(--tw-border-opacity))}.border-slate-700{--tw-border-opacity:1;border-color:rgb(70 90 120/var(--tw-border-opacity))}.border-subtle{border-color:rgb(var(--color-border-subtle))}.border-success{border-color:rgb(var(--color-border-success))}.border-table{border-color:rgb(var(--color-border-table))}.border-transparent{border-color:transparent}.border-warning{border-color:rgb(var(--color-border-warning))}.border-white\/10{border-color:#ffffff1a}.border-b-transparent{border-bottom-color:transparent}.border-l-primary{border-left-color:rgb(var(--color-border-primary))}.border-l-transparent{border-left-color:transparent}.border-r-primary{border-right-color:rgb(var(--color-border-primary))}.border-r-transparent{border-right-color:transparent}.bg-\[\#DDD6FE\]{--tw-bg-opacity:1;background-color:rgb(221 214 254/var(--tw-bg-opacity))}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity:1;background-color:rgb(191 215 254/var(--tw-bg-opacity))}.bg-blue-300{--tw-bg-opacity:1;background-color:rgb(147 187 253/var(--tw-bg-opacity))}.bg-current{background-color:currentColor}.bg-danger{background-color:rgb(var(--color-surface-danger))}.bg-green-200{--tw-bg-opacity:1;background-color:rgb(174 255 216/var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity:1;background-color:rgb(224 234 255/var(--tw-bg-opacity))}.bg-indigo-200{--tw-bg-opacity:1;background-color:rgb(198 216 255/var(--tw-bg-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(68 76 231/var(--tw-bg-opacity))}.bg-information{background-color:rgb(var(--color-surface-information))}.bg-interactive{background-color:rgb(var(--color-interactive-surface))}.bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.bg-interactive-error{background-color:rgb(var(--color-interactive-danger-surface))}.bg-interactive-secondary-active{background-color:rgb(var(--color-interactive-secondary-active))}.bg-interactive-table-hover{background-color:rgb(var(--color-interactive-table-hover))}.bg-interactive\/50{background-color:rgb(var(--color-interactive-surface)/.5)}.bg-inverse{background-color:rgb(var(--color-surface-inverse))}.bg-orange-100{--tw-bg-opacity:1;background-color:rgb(255 230 213/var(--tw-bg-opacity))}.bg-orange-200{--tw-bg-opacity:1;background-color:rgb(254 204 170/var(--tw-bg-opacity))}.bg-pink-200{--tw-bg-opacity:1;background-color:rgb(254 199 255/var(--tw-bg-opacity))}.bg-primary{background-color:rgb(var(--color-surface-primary))}.bg-purple-100{--tw-bg-opacity:1;background-color:rgb(239 233 254/var(--tw-bg-opacity))}.bg-purple-200{--tw-bg-opacity:1;background-color:rgb(226 214 254/var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity:1;background-color:rgb(255 228 212/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(255 196 168/var(--tw-bg-opacity))}.bg-slate-100{--tw-bg-opacity:1;background-color:rgb(201 217 240/var(--tw-bg-opacity))}.bg-slate-100\/50{background-color:#c9d9f080}.bg-slate-200{--tw-bg-opacity:1;background-color:rgb(174 190 217/var(--tw-bg-opacity))}.bg-slate-800{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity))}.bg-space-black{--tw-bg-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity))}.bg-subtle{background-color:rgb(var(--color-surface-subtle))}.bg-success{background-color:rgb(var(--color-surface-success))}.bg-transparent{background-color:transparent}.bg-warning{background-color:rgb(var(--color-surface-warning))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:#ffffff0d}.bg-yellow-200{--tw-bg-opacity:1;background-color:rgb(254 233 137/var(--tw-bg-opacity))}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-100{--tw-gradient-from:#dbe8fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(219,232,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-blue-200{--tw-gradient-from:#bfd7fe var(--tw-gradient-from-position);--tw-gradient-to:rgba(191,215,254,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-indigo-600{--tw-gradient-from:#444ce7 var(--tw-gradient-from-position);--tw-gradient-to:rgba(68,76,231,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-pink-100{--tw-gradient-from:#fee4ff var(--tw-gradient-from-position);--tw-gradient-to:rgba(254,228,255,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-red-100{--tw-gradient-from:#ffe4d4 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,228,212,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-slate-100{--tw-gradient-from:#c9d9f0 var(--tw-gradient-from-position);--tw-gradient-to:rgba(201,217,240,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.from-yellow-100{--tw-gradient-from:#fff4c6 var(--tw-gradient-from-position);--tw-gradient-to:rgba(255,244,198,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.via-slate-200{--tw-gradient-to:rgba(174,190,217,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#aebed9 var(--tw-gradient-via-position),var(--tw-gradient-to)}.to-indigo-900{--tw-gradient-to:#2d3382 var(--tw-gradient-to-position)}.to-indigo-950{--tw-gradient-to:#1a1c4c var(--tw-gradient-to-position)}.to-pink-200{--tw-gradient-to:#fec7ff var(--tw-gradient-to-position)}.to-purple-100{--tw-gradient-to:#efe9fe var(--tw-gradient-to-position)}.to-red-200{--tw-gradient-to:#ffc4a8 var(--tw-gradient-to-position)}.to-slate-300{--tw-gradient-to:#92a4c3 var(--tw-gradient-to-position)}.to-yellow-200{--tw-gradient-to:#fee989 var(--tw-gradient-to-position)}.bg-clip-padding{background-clip:padding-box}.fill-current{fill:currentColor}.p-0{padding:0}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-px{padding:1px}.px-0{padding-left:0;padding-right:0}.px-0\.5{padding-left:.125rem;padding-right:.125rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-1\.5{padding-bottom:.375rem;padding-top:.375rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-5{padding-bottom:1.25rem;padding-top:1.25rem}.py-8{padding-bottom:2rem;padding-top:2rem}.\!pt-0{padding-top:0!important}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-16{padding-bottom:4rem}.pb-2{padding-bottom:.5rem}.pb-20{padding-bottom:5rem}.pb-24{padding-bottom:6rem}.pb-4{padding-bottom:1rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-1\.5{padding-left:.375rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pr-0{padding-right:0}.pr-0\.5{padding-right:.125rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-0\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-10{padding-top:2.5rem}.pt-2{padding-top:.5rem}.pt-24{padding-top:6rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-8xl{font-size:6rem;line-height:1}.text-\[0\.6rem\]{font-size:.6rem}.text-\[12px\]{font-size:12px}.text-\[12rem\]{font-size:12rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.capitalize{text-transform:capitalize}.leading-3{line-height:.75rem}.leading-4{line-height:1rem}.leading-8{line-height:2rem}.leading-\[18px\]{line-height:18px}.text{color:rgb(var(--color-text-primary))}.text-\[\#C9D9F0\]{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-\[\#e9d5ff\]{--tw-text-opacity:1;color:rgb(233 213 255/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.text-danger{color:rgb(var(--color-text-danger))}.text-green-700{--tw-text-opacity:1;color:rgb(0 150 78/var(--tw-text-opacity))}.text-indigo-900{--tw-text-opacity:1;color:rgb(45 51 130/var(--tw-text-opacity))}.text-information{color:rgb(var(--color-text-information))}.text-inverse{color:rgb(var(--color-text-inverse))}.text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.text-primary{color:rgb(var(--color-text-primary))}.text-purple-200{--tw-text-opacity:1;color:rgb(226 214 254/var(--tw-text-opacity))}.text-red-700{--tw-text-opacity:1;color:rgb(199 22 7/var(--tw-text-opacity))}.text-secondary{color:rgb(var(--color-text-secondary))}.text-slate-100{--tw-text-opacity:1;color:rgb(201 217 240/var(--tw-text-opacity))}.text-slate-300{--tw-text-opacity:1;color:rgb(146 164 195/var(--tw-text-opacity))}.text-slate-500{--tw-text-opacity:1;color:rgb(102 124 161/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.no-underline{text-decoration-line:none}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-65{opacity:.65}.opacity-90{opacity:.9}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-\[inset_0_0_0_2px\]{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-\[inset_0_0_0_2px\]{--tw-shadow:inset 0 0 0 2px;--tw-shadow-colored:inset 0 0 0 2px var(--tw-shadow-color)}.shadow-md{--tw-shadow:0 4px 6px -1px rgba(0,0,0,.1),0 2px 4px -2px rgba(0,0,0,.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color),0 2px 4px -2px var(--tw-shadow-color)}.shadow-md,.shadow-xl{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color)}.shadow-white{--tw-shadow-color:#fff;--tw-shadow:var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.outline-2{outline-width:2px}.ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.invert{--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.\!filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-\[opacity\,transform\]{transition-duration:.15s;transition-property:opacity,transform;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-shadow{transition-duration:.15s;transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-width{transition-duration:.15s;transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-200{transition-duration:.2s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.hover\:surface-interactive-secondary:hover{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-secondary:hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:surface-interactive-secondary:hover:active{background-color:rgb(var(--color-interactive-secondary-active))}.hover\:surface-interactive-ghost:hover{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.hover\:surface-interactive-ghost:hover:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.hover\:surface-interactive-ghost:hover:active{background-color:rgb(var(--color-interactive-ghost-active))}.focus-visible\:surface-interactive-secondary:focus-visible{background-color:rgb(var(--color-interactive-secondary-surface));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-secondary:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:surface-interactive-secondary:focus-visible:active{background-color:rgb(var(--color-interactive-secondary-active))}.focus-visible\:surface-interactive-ghost:focus-visible{background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.focus-visible\:surface-interactive-ghost:focus-visible:focus-visible{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:hover{background-color:rgb(var(--color-interactive-ghost-hover))}.focus-visible\:surface-interactive-ghost:focus-visible:active{background-color:rgb(var(--color-interactive-ghost-active))}.dark\:focus-within\:surface-primary:focus-within:where([data-theme=dark],[data-theme=dark] *){background-color:rgb(var(--color-surface-primary));color:rgb(var(--color-text-primary))}.\*\:rounded-none>*{border-radius:0}.\*\:border-t-0>*{border-top-width:0}.placeholder\:text-secondary::-moz-placeholder{color:rgb(var(--color-text-secondary))}.placeholder\:text-secondary::placeholder{color:rgb(var(--color-text-secondary))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:left-\[calc\(100\%_\+_1\.5rem\)\]:after{content:var(--tw-content);left:calc(100% + 1.5rem)}.after\:top-0:after{content:var(--tw-content);top:0}.after\:hidden:after{content:var(--tw-content);display:none}.after\:h-8:after{content:var(--tw-content);height:2rem}.after\:items-center:after{align-items:center;content:var(--tw-content)}.after\:rounded-md:after{border-radius:.375rem;content:var(--tw-content)}.after\:bg-slate-800:after{--tw-bg-opacity:1;background-color:rgb(39 56 96/var(--tw-bg-opacity));content:var(--tw-content)}.after\:p-1:after{content:var(--tw-content);padding:.25rem}.after\:px-2:after{content:var(--tw-content);padding-left:.5rem;padding-right:.5rem}.after\:text-xs:after{content:var(--tw-content);font-size:.75rem;line-height:1rem}.after\:text-white:after{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity));content:var(--tw-content)}.after\:content-\[attr\(data-tooltip\)\]:after{--tw-content:attr(data-tooltip);content:var(--tw-content)}.first\:pt-0:first-child{padding-top:0}.last\:border-b-0:last-child{border-bottom-width:0}.first-of-type\:rounded-bl-lg:first-of-type{border-bottom-left-radius:.5rem}.first-of-type\:rounded-tl:first-of-type{border-top-left-radius:.25rem}.first-of-type\:rounded-tl-lg:first-of-type{border-top-left-radius:.5rem}.first-of-type\:rounded-tr-lg:first-of-type{border-top-right-radius:.5rem}.last-of-type\:rounded-bl-lg:last-of-type{border-bottom-left-radius:.5rem}.last-of-type\:rounded-br-lg:last-of-type{border-bottom-right-radius:.5rem}.last-of-type\:border-0:last-of-type{border-width:0}.last-of-type\:border-b-0:last-of-type{border-bottom-width:0}.focus-within\:border-danger:focus-within{border-color:rgb(var(--color-border-danger))}.focus-within\:border-information:focus-within{border-color:rgb(var(--color-border-information))}.focus-within\:border-interactive:focus-within{border-color:rgb(var(--color-interactive-surface))}.focus-within\:outline-none:focus-within{outline:2px solid transparent;outline-offset:2px}.focus-within\:ring-4:focus-within{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-within\:ring-inset:focus-within{--tw-ring-inset:inset}.focus-within\:ring-primary\/70:focus-within{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.hover\:scale-125:hover{--tw-scale-x:1.25;--tw-scale-y:1.25;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:border-information:hover{border-color:rgb(var(--color-border-information))}.hover\:bg-interactive-hover:hover{background-color:rgb(var(--color-interactive-hover))}.hover\:bg-interactive-secondary-hover:hover{background-color:rgb(var(--color-interactive-secondary-hover))}.hover\:bg-interactive-table-hover:hover{background-color:rgb(var(--color-interactive-table-hover))}.hover\:bg-white:hover{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.hover\:bg-gradient-to-br:hover{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.hover\:text-black:hover{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.hover\:text-blue-700:hover{--tw-text-opacity:1;color:rgb(29 100 216/var(--tw-text-opacity))}.hover\:text-brand:hover{color:rgb(var(--color-text-brand))}.hover\:text-primary:hover{color:rgb(var(--color-text-primary))}.hover\:underline:hover{text-decoration-line:underline}.focus\:translate-y-0:focus{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus-visible\:rounded-sm:focus-visible{border-radius:.125rem}.focus-visible\:border-inverse:focus-visible{border-color:rgb(var(--color-border-inverse))}.focus-visible\:border-table:focus-visible{border-color:rgb(var(--color-border-table))}.focus-visible\:border-transparent:focus-visible{border-color:transparent}.focus-visible\:bg-interactive-secondary-hover:focus-visible{background-color:rgb(var(--color-interactive-secondary-hover))}.focus-visible\:text-brand:focus-visible{color:rgb(var(--color-text-brand))}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:ring-4:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:ring-danger\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-danger)/.7)}.focus-visible\:ring-primary\/70:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group:focus-within .group-focus-within\:visible{visibility:visible}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:inline-block{display:inline-block}.group:hover .group-hover\:border-information{border-color:rgb(var(--color-border-information))}.group:hover .group-hover\:border-transparent{border-color:transparent}.group:hover .group-hover\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .group-hover\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.group:hover .group-hover\:opacity-100{opacity:1}.group:hover .group-hover\:opacity-90{opacity:.9}.group:hover .group-hover\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.group:hover .group-hover\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.group:focus .group-focus\:opacity-100{opacity:1}.group.surface-primary .group-\[\.surface-primary\]\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:bg-black:hover{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:hover\:text-white:hover{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.peer:checked~.peer-checked\:justify-end{justify-content:flex-end}.peer:checked~.peer-checked\:border-danger{border-color:rgb(var(--color-border-danger))}.peer:checked~.peer-checked\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.peer:checked~.peer-checked\:text-off-white{--tw-text-opacity:1;color:rgb(248 250 252/var(--tw-text-opacity))}.group:hover .peer:checked~.group-hover\:peer-checked\:border-transparent{border-color:transparent}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.group:hover .peer:checked~.group-hover\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.peer:indeterminate~.peer-indeterminate\:border-interactive{border-color:rgb(var(--color-interactive-surface))}.peer:indeterminate~.peer-indeterminate\:bg-interactive{background-color:rgb(var(--color-interactive-surface))}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:border-transparent{border-color:transparent}.group:hover .peer:indeterminate~.group-hover\:peer-indeterminate\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:border-inverse{border-color:rgb(var(--color-border-inverse))}.peer:focus-visible~.peer-focus-visible\:border-transparent{border-color:transparent}.peer:focus-visible~.peer-focus-visible\:bg-interactive-active{background-color:rgb(var(--color-interactive-active))}.peer:focus-visible~.peer-focus-visible\:bg-interactive-secondary-hover{background-color:rgb(var(--color-interactive-secondary-hover))}.peer:focus-visible~.peer-focus-visible\:ring-4{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.peer:focus-visible~.peer-focus-visible\:ring-primary\/70{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.peer:focus-visible:checked~.peer-focus-visible\:peer-checked\:bg-interactive-hover{background-color:rgb(var(--color-interactive-hover))}.data-\[nav\=open\]\:w-\[180px\][data-nav=open]{width:180px}.data-\[nav\=open\]\:grid-cols-\[100\%\][data-nav=open]{grid-template-columns:100%}.group[data-nav=open] .group-data-\[nav\=open\]\:visible{visibility:visible}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hidden,.group[data-nav=open] .group-data-\[nav\=open\]\:hidden{display:none}.group[data-nav=open] .group-data-\[nav\=open\]\:rotate-180{--tw-rotate:180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-nav=open] .group-data-\[nav\=open\]\:justify-start{justify-content:flex-start}.group[data-nav=closed] .group-data-\[nav\=closed\]\:justify-center{justify-content:center}.group[data-nav=closed] .group-data-\[nav\=closed\]\:p-1{padding:.25rem}.group[data-nav=open] .group-data-\[nav\=open\]\:px-2\.5{padding-left:.625rem;padding-right:.625rem}.group[data-nav=open] .group-data-\[nav\=open\]\:py-2{padding-bottom:.5rem;padding-top:.5rem}.group[data-nav=open] .group-data-\[nav\=open\]\:opacity-100{opacity:1}.group[data-nav=closed] .group-data-\[nav\=closed\]\:hover\:after\:flex:hover:after{content:var(--tw-content);display:flex}@media not all and (min-width:1536px){.max-2xl\:w-full{width:100%}}@media not all and (min-width:1280px){.max-xl\:hidden{display:none}}@media not all and (min-width:1024px){.max-lg\:hidden{display:none}.max-lg\:flex-col{flex-direction:column}}@media not all and (min-width:768px){.max-md\:fixed{position:fixed}.max-md\:bottom-16{bottom:4rem}.max-md\:hidden{display:none}}@media not all and (min-width:640px){.max-sm\:flex{display:flex}.max-sm\:hidden{display:none}.max-sm\:flex-col{flex-direction:column}}@media (min-width:640px){.sm\:grid{display:grid}.sm\:hidden{display:none}.sm\:w-\[20rem\]{width:20rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:items-center{align-items:center}}@media (min-width:768px){.md\:sticky{position:sticky}.md\:top-12{top:3rem}.md\:order-2{order:2}.md\:order-3{order:3}.md\:order-4{order:4}.md\:order-5{order:5}.md\:order-6{order:6}.md\:order-8{order:8}.md\:mt-6{margin-top:1.5rem}.md\:block{display:block}.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:table-row{display:table-row}.md\:hidden{display:none}.md\:w-1\/2{width:50%}.md\:w-2\/3{width:66.666667%}.md\:w-\[24rem\]{width:24rem}.md\:w-\[26rem\]{width:26rem}.md\:w-\[400px\]{width:400px}.md\:w-auto{width:auto}.md\:min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.md\:max-w-full{max-width:100%}.md\:max-w-lg{max-width:32rem}.md\:table-fixed{table-layout:fixed}.md\:columns-2{-moz-columns:2;column-count:2}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:gap-4{gap:1rem}.md\:gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.md\:rounded-full{border-radius:9999px}.md\:p-12{padding:3rem}.md\:p-8{padding:2rem}.md\:px-2{padding-left:.5rem;padding-right:.5rem}.md\:px-8{padding-left:2rem;padding-right:2rem}.md\:pb-0{padding-bottom:0}.md\:pr-24{padding-right:6rem}.md\:pt-20{padding-top:5rem}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:w-1\/3{width:33.333333%}.lg\:w-2\/3{width:66.666667%}.lg\:w-3\/4{width:75%}.lg\:w-3\/5{width:60%}.lg\:w-56{width:14rem}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:flex-row{flex-direction:row}.lg\:border-r-2{border-right-width:2px}.lg\:py-8{padding-bottom:2rem;padding-top:2rem}.lg\:pr-2{padding-right:.5rem}}@media (min-width:1280px){.xl\:order-2{order:2}.xl\:order-3{order:3}.xl\:order-4{order:4}.xl\:order-5{order:5}.xl\:order-6{order:6}.xl\:order-7{order:7}.xl\:block{display:block}.xl\:flex{display:flex}.xl\:table-cell{display:table-cell}.xl\:hidden{display:none}.xl\:w-1\/2{width:50%}.xl\:w-1\/3{width:33.333333%}.xl\:w-2\/3{width:66.666667%}.xl\:min-w-\[520px\]{min-width:520px}.xl\:max-w-2xl{max-width:42rem}.xl\:max-w-xl{max-width:36rem}.xl\:columns-3{-moz-columns:3;column-count:3}.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.xl\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.xl\:flex-row{flex-direction:row}.xl\:flex-nowrap{flex-wrap:nowrap}.xl\:items-center{align-items:center}.xl\:justify-between{justify-content:space-between}.xl\:gap-8{gap:2rem}.xl\:gap-x-16{-moz-column-gap:4rem;column-gap:4rem}.xl\:border-b-0{border-bottom-width:0}.xl\:border-r-2{border-right-width:2px}.xl\:px-4{padding-left:1rem;padding-right:1rem}.xl\:pr-48{padding-right:12rem}.xl\:text-left{text-align:left}}@media (min-width:1536px){.\32xl\:w-1\/2{width:50%}}.dark\:border-slate-500:where([data-theme=dark],[data-theme=dark] *){--tw-border-opacity:1;border-color:rgb(102 124 161/var(--tw-border-opacity))}.dark\:bg-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(87 110 143/var(--tw-bg-opacity))}.dark\:bg-gradient-to-r:where([data-theme=dark],[data-theme=dark] *){background-image:linear-gradient(to right,var(--tw-gradient-stops))}.dark\:from-slate-600:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-from:#576e8f var(--tw-gradient-from-position);--tw-gradient-to:rgba(87,110,143,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.dark\:via-slate-700:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:rgba(70,90,120,0) var(--tw-gradient-to-position);--tw-gradient-stops:var(--tw-gradient-from),#465a78 var(--tw-gradient-via-position),var(--tw-gradient-to)}.dark\:to-slate-800:where([data-theme=dark],[data-theme=dark] *){--tw-gradient-to:#273860 var(--tw-gradient-to-position)}.dark\:text-slate-400:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(124 143 177/var(--tw-text-opacity))}.dark\:text-white:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\:shadow-slate-900:where([data-theme=dark],[data-theme=dark] *){--tw-shadow-color:#1e293b;--tw-shadow:var(--tw-shadow-colored)}.dark\:invert:where([data-theme=dark],[data-theme=dark] *){--tw-invert:invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.focus-visible\:dark\:ring-success:where([data-theme=dark],[data-theme=dark] *):focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:bg-white:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:bg-white:hover:where([data-theme=dark],[data-theme=dark] *){--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group.surface-primary .group-\[\.surface-primary\]\:dark\:hover\:text-black:hover:where([data-theme=dark],[data-theme=dark] *){--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.\[\&\:not\(\:last-child\)\]\:border-r-2:not(:last-child){border-right-width:2px}.\[\&\>\*\:first-child\]\:rounded-t-2xl>:first-child{border-top-left-radius:1rem;border-top-right-radius:1rem}.\[\&\>\*\:first-child\]\:border-t-2>:first-child{border-top-width:2px}.\[\&\>\*\:last-child\]\:rounded-b-2xl>:last-child{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem}.focus-visible\:\[\&_\[role\=button\]\]\:outline-none [role=button]:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_\[role\=button\]\]\:ring-4 [role=button]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-primary\/70 [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_\[role\=button\]\]\:ring-success [role=button]:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.focus-visible\:\[\&_a\]\:outline-none a:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:\[\&_a\]\:ring-4 a:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\:\[\&_a\]\:ring-primary\/70 a:focus-visible{--tw-ring-color:rgb(var(--color-border-focus-info)/.7)}.focus-visible\:\[\&_a\]\:ring-success a:focus-visible{--tw-ring-color:rgb(var(--color-surface-success-loud))}.button-group>.\[\.button-group\>\&\:first-child\]\:rounded-l-lg:first-child{border-bottom-left-radius:.5rem;border-top-left-radius:.5rem}.button-group>.\[\.button-group\>\&\:last-child\]\:rounded-r-lg:last-child{border-bottom-right-radius:.5rem;border-top-right-radius:.5rem}.button-group>.\[\.button-group\>\&\]\:rounded-none,.input-group>.\[\.input-group\>\&\]\:rounded-none{border-radius:0}.input-group>.first\:\[\.input-group\>\&\]\:rounded-l:first-child{border-bottom-left-radius:.25rem;border-top-left-radius:.25rem}.input-group>.last\:\[\.input-group\>\&\]\:rounded-r:last-child{border-bottom-right-radius:.25rem;border-top-right-radius:.25rem} diff --git a/ui/assets/local/_app/immutable/assets/event-summary-table.C4RU4QOT.css b/ui/assets/local/_app/immutable/assets/event-summary-table.6pdwVgt3.css similarity index 57% rename from ui/assets/local/_app/immutable/assets/event-summary-table.C4RU4QOT.css rename to ui/assets/local/_app/immutable/assets/event-summary-table.6pdwVgt3.css index b790df5cd..f6db71836 100644 --- a/ui/assets/local/_app/immutable/assets/event-summary-table.C4RU4QOT.css +++ b/ui/assets/local/_app/immutable/assets/event-summary-table.6pdwVgt3.css @@ -1 +1 @@ -.dot.svelte-1rumg40,g.svelte-1rumg40{outline:none}.dot.svelte-1rumg40{stroke:#141414;fill:#e8efff;cursor:pointer;opacity:1}.command.svelte-1rumg40,.marker.svelte-1rumg40{fill:#ebebeb}.timer.svelte-1rumg40{fill:#fbbf24}.signal.svelte-1rumg40{fill:#d300d8}.activity.svelte-1rumg40{fill:#a78bfa}.pending.svelte-1rumg40{stroke:#a78bfa;fill:#141414}.child-workflow.svelte-1rumg40{fill:#b2f8d9}.update.svelte-1rumg40{fill:#06b6d4}.workflow.svelte-1rumg40{fill:#059669}.Started.svelte-1rumg40{fill:#92a4c3}.Completed.svelte-1rumg40{stroke:#00964e;fill:#00f37e}.Fired.svelte-1rumg40{stroke:#fed64b;fill:#f8a208}.Signaled.svelte-1rumg40{stroke:#ff26ff;fill:#d300d8}.Failed.svelte-1rumg40,.Terminated.svelte-1rumg40{stroke:#c71607;fill:#ff4518}.TimedOut.svelte-1rumg40{stroke:#f97316;fill:#c2570c}.Canceled.svelte-1rumg40{stroke:#fff4c6;fill:#fed64b}.line.svelte-xmy546{stroke:#444ce7;cursor:pointer;opacity:1;outline:none}.none.svelte-xmy546{stroke:#141414;opacity:.65}.scheduling.svelte-xmy546{opacity:.35}.command.svelte-xmy546,.marker.svelte-xmy546,.workflow.svelte-xmy546{stroke:#ebebeb}.timer.svelte-xmy546{stroke:#fbbf24}.signal.svelte-xmy546{stroke:#d300d8}.activity.svelte-xmy546,.pending.svelte-xmy546{stroke:#a78bfa}.retry.svelte-xmy546{stroke:#ff9b70}.child-workflow.svelte-xmy546{stroke:#67e4f9}.Completed.svelte-xmy546{stroke:#00964e}.Failed.svelte-xmy546,.Terminated.svelte-xmy546{stroke:#c71607}.Signaled.svelte-xmy546{stroke:#d300d8}.Fired.svelte-xmy546{stroke:#f8a208}.TimedOut.svelte-xmy546{stroke:#f97316}.Canceled.svelte-xmy546{stroke:#fed64b}.Running.svelte-xmy546{stroke:#3b82f6}.animate-line.svelte-xmy546{stroke-dashoffset:0;animation:svelte-xmy546-dash 60s linear infinite}@keyframes svelte-xmy546-dash{0%{stroke-dashoffset:200}to{stroke-dashoffset:0}}.content.svelte-1dhlqx8{display:block;padding:.25rem .5rem;text-align:left;width:100%}.code-block-row.svelte-1dhlqx8{display:block;-webkit-user-select:all;-moz-user-select:all;user-select:all}.code-block-row.svelte-1dhlqx8,.detail-row.svelte-1dhlqx8{padding-bottom:.25rem;padding-top:.25rem;text-align:left;width:100%}.detail-row.svelte-1dhlqx8{align-items:center;display:flex;gap:.5rem}.content.svelte-xg3mkm{align-items:center;display:block;display:flex;gap:1rem;padding:.25rem .5rem;text-align:left;width:100%}@media (min-width:1280px){.content.svelte-xg3mkm{display:flex}}@media (min-width:1280px){.three-events.svelte-15sf0vo{width:33.333333%}.two-events.svelte-15sf0vo{width:50%}}.pending.svelte-15sf0vo{background:repeating-linear-gradient(90deg,#444ce7,#444ce7 4px,#2f34a4 0 8px)}.payload.svelte-1ft3ysk{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;overflow:hidden;padding:.125rem .25rem}.row.svelte-117pdmd.svelte-117pdmd{align-items:center;display:flex;font-size:.875rem;gap:1rem;line-height:1.25rem;padding-left:.25rem;padding-right:.25rem;text-decoration-line:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.failure.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-danger));border-width:1px}.failure.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-danger))}.canceled.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-warning));border-width:1px}.canceled.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-warning))}.terminated.svelte-117pdmd.svelte-117pdmd{--tw-border-opacity:1;border-color:rgb(211 0 216/var(--tw-border-opacity));border-width:1px}.terminated.svelte-117pdmd .event-name.svelte-117pdmd{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.expanded-cell.svelte-117pdmd.svelte-117pdmd{font-size:.875rem;line-height:1.25rem;text-decoration-line:none}.typedError.svelte-117pdmd .expanded-cell.svelte-117pdmd{border-bottom-width:0}.row.typedError.svelte-117pdmd.svelte-117pdmd{border-radius:.5rem}.row.typedError.expanded.svelte-117pdmd.svelte-117pdmd{border-bottom-left-radius:0;border-bottom-right-radius:0}.row.svelte-1dtt6u6{align-items:center;display:flex;gap:1rem;padding-left:.25rem;padding-right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.expanded-cell.svelte-1dtt6u6,.row.svelte-1dtt6u6{font-size:.875rem;line-height:1.25rem;text-decoration-line:none} +.dot.svelte-1rumg40,g.svelte-1rumg40{outline:none}.dot.svelte-1rumg40{stroke:#141414;fill:#e8efff;cursor:pointer;opacity:1}.command.svelte-1rumg40,.marker.svelte-1rumg40{fill:#ebebeb}.timer.svelte-1rumg40{fill:#fbbf24}.signal.svelte-1rumg40{fill:#d300d8}.activity.svelte-1rumg40{fill:#a78bfa}.pending.svelte-1rumg40{stroke:#a78bfa;fill:#141414}.child-workflow.svelte-1rumg40{fill:#b2f8d9}.update.svelte-1rumg40{fill:#06b6d4}.workflow.svelte-1rumg40{fill:#059669}.Started.svelte-1rumg40{fill:#92a4c3}.Completed.svelte-1rumg40{stroke:#00964e;fill:#00f37e}.Fired.svelte-1rumg40{stroke:#fed64b;fill:#f8a208}.Signaled.svelte-1rumg40{stroke:#ff26ff;fill:#d300d8}.Failed.svelte-1rumg40,.Terminated.svelte-1rumg40{stroke:#c71607;fill:#ff4518}.TimedOut.svelte-1rumg40{stroke:#f97316;fill:#c2570c}.Canceled.svelte-1rumg40{stroke:#fff4c6;fill:#fed64b}.line.svelte-xmy546{stroke:#444ce7;cursor:pointer;opacity:1;outline:none}.none.svelte-xmy546{stroke:#141414;opacity:.65}.scheduling.svelte-xmy546{opacity:.35}.command.svelte-xmy546,.marker.svelte-xmy546,.workflow.svelte-xmy546{stroke:#ebebeb}.timer.svelte-xmy546{stroke:#fbbf24}.signal.svelte-xmy546{stroke:#d300d8}.activity.svelte-xmy546,.pending.svelte-xmy546{stroke:#a78bfa}.retry.svelte-xmy546{stroke:#ff9b70}.child-workflow.svelte-xmy546{stroke:#67e4f9}.Completed.svelte-xmy546{stroke:#00964e}.Failed.svelte-xmy546,.Terminated.svelte-xmy546{stroke:#c71607}.Signaled.svelte-xmy546{stroke:#d300d8}.Fired.svelte-xmy546{stroke:#f8a208}.TimedOut.svelte-xmy546{stroke:#f97316}.Canceled.svelte-xmy546{stroke:#fed64b}.Running.svelte-xmy546{stroke:#3b82f6}.animate-line.svelte-xmy546{stroke-dashoffset:0;animation:svelte-xmy546-dash 60s linear infinite}@keyframes svelte-xmy546-dash{0%{stroke-dashoffset:200}to{stroke-dashoffset:0}}.content.svelte-1dhlqx8{display:block;padding:.25rem .5rem;text-align:left;width:100%}.code-block-row.svelte-1dhlqx8{display:block;-webkit-user-select:all;-moz-user-select:all;user-select:all}.code-block-row.svelte-1dhlqx8,.detail-row.svelte-1dhlqx8{padding-bottom:.25rem;padding-top:.25rem;text-align:left;width:100%}.detail-row.svelte-1dhlqx8{align-items:center;display:flex;gap:.5rem}.content.svelte-xg3mkm{align-items:center;display:block;display:flex;gap:1rem;padding:.25rem .5rem;text-align:left;width:100%}@media (min-width:1280px){.content.svelte-xg3mkm{display:flex}}@media (min-width:1280px){.three-events.svelte-15sf0vo{width:33.333333%}.two-events.svelte-15sf0vo{width:50%}}.pending.svelte-15sf0vo{background:repeating-linear-gradient(90deg,#444ce7,#444ce7 4px,#2f34a4 0 8px)}.payload.svelte-1acrhfj{background-color:rgb(var(--color-surface-primary));border-color:rgb(var(--color-border-subtle));border-radius:.25rem;border-width:2px;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;overflow:hidden;padding:.125rem .25rem}.row.svelte-117pdmd.svelte-117pdmd{align-items:center;display:flex;font-size:.875rem;gap:1rem;line-height:1.25rem;padding-left:.25rem;padding-right:.25rem;text-decoration-line:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.failure.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-danger));border-width:1px}.failure.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-danger))}.canceled.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-warning));border-width:1px}.canceled.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-warning))}.terminated.svelte-117pdmd.svelte-117pdmd{--tw-border-opacity:1;border-color:rgb(211 0 216/var(--tw-border-opacity));border-width:1px}.terminated.svelte-117pdmd .event-name.svelte-117pdmd{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.expanded-cell.svelte-117pdmd.svelte-117pdmd{font-size:.875rem;line-height:1.25rem;text-decoration-line:none}.typedError.svelte-117pdmd .expanded-cell.svelte-117pdmd{border-bottom-width:0}.row.typedError.svelte-117pdmd.svelte-117pdmd{border-radius:.5rem}.row.typedError.expanded.svelte-117pdmd.svelte-117pdmd{border-bottom-left-radius:0;border-bottom-right-radius:0}.row.svelte-1dtt6u6{align-items:center;display:flex;gap:1rem;padding-left:.25rem;padding-right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.expanded-cell.svelte-1dtt6u6,.row.svelte-1dtt6u6{font-size:.875rem;line-height:1.25rem;text-decoration-line:none} diff --git a/ui/assets/local/_app/immutable/assets/event-summary-table.Dd3U297u.css b/ui/assets/local/_app/immutable/assets/event-summary-table.BaNA1EhH.css similarity index 57% rename from ui/assets/local/_app/immutable/assets/event-summary-table.Dd3U297u.css rename to ui/assets/local/_app/immutable/assets/event-summary-table.BaNA1EhH.css index fb2f3598c..3b1f618fb 100644 --- a/ui/assets/local/_app/immutable/assets/event-summary-table.Dd3U297u.css +++ b/ui/assets/local/_app/immutable/assets/event-summary-table.BaNA1EhH.css @@ -1 +1 @@ -.dot.svelte-1rumg40,g.svelte-1rumg40{outline:none}.dot.svelte-1rumg40{stroke:#141414;fill:#e8efff;cursor:pointer;opacity:1}.command.svelte-1rumg40,.marker.svelte-1rumg40{fill:#ebebeb}.timer.svelte-1rumg40{fill:#fbbf24}.signal.svelte-1rumg40{fill:#d300d8}.activity.svelte-1rumg40{fill:#a78bfa}.pending.svelte-1rumg40{stroke:#a78bfa;fill:#141414}.child-workflow.svelte-1rumg40{fill:#b2f8d9}.update.svelte-1rumg40{fill:#06b6d4}.workflow.svelte-1rumg40{fill:#059669}.Started.svelte-1rumg40{fill:#92a4c3}.Completed.svelte-1rumg40{stroke:#00964e;fill:#00f37e}.Fired.svelte-1rumg40{stroke:#fed64b;fill:#f8a208}.Signaled.svelte-1rumg40{stroke:#ff26ff;fill:#d300d8}.Failed.svelte-1rumg40,.Terminated.svelte-1rumg40{stroke:#c71607;fill:#ff4518}.TimedOut.svelte-1rumg40{stroke:#f97316;fill:#c2570c}.Canceled.svelte-1rumg40{stroke:#fff4c6;fill:#fed64b}.line.svelte-xmy546{stroke:#444ce7;cursor:pointer;opacity:1;outline:none}.none.svelte-xmy546{stroke:#141414;opacity:.65}.scheduling.svelte-xmy546{opacity:.35}.command.svelte-xmy546,.marker.svelte-xmy546,.workflow.svelte-xmy546{stroke:#ebebeb}.timer.svelte-xmy546{stroke:#fbbf24}.signal.svelte-xmy546{stroke:#d300d8}.activity.svelte-xmy546,.pending.svelte-xmy546{stroke:#a78bfa}.retry.svelte-xmy546{stroke:#ff9b70}.child-workflow.svelte-xmy546{stroke:#67e4f9}.Completed.svelte-xmy546{stroke:#00964e}.Failed.svelte-xmy546,.Terminated.svelte-xmy546{stroke:#c71607}.Signaled.svelte-xmy546{stroke:#d300d8}.Fired.svelte-xmy546{stroke:#f8a208}.TimedOut.svelte-xmy546{stroke:#f97316}.Canceled.svelte-xmy546{stroke:#fed64b}.Running.svelte-xmy546{stroke:#3b82f6}.animate-line.svelte-xmy546{stroke-dashoffset:0;animation:svelte-xmy546-dash 60s linear infinite}@keyframes svelte-xmy546-dash{0%{stroke-dashoffset:200}to{stroke-dashoffset:0}}.content.svelte-1dhlqx8{display:block;padding:.25rem .5rem;text-align:left;width:100%}.code-block-row.svelte-1dhlqx8{display:block;-webkit-user-select:all;-moz-user-select:all;user-select:all}.code-block-row.svelte-1dhlqx8,.detail-row.svelte-1dhlqx8{padding-bottom:.25rem;padding-top:.25rem;text-align:left;width:100%}.detail-row.svelte-1dhlqx8{align-items:center;display:flex;gap:.5rem}.content.svelte-xg3mkm{align-items:center;display:block;display:flex;gap:1rem;padding:.25rem .5rem;text-align:left;width:100%}@media (min-width:1280px){.content.svelte-xg3mkm{display:flex}}@media (min-width:1280px){.three-events.svelte-15sf0vo{width:33.333333%}.two-events.svelte-15sf0vo{width:50%}}.pending.svelte-15sf0vo{background:repeating-linear-gradient(90deg,#444ce7,#444ce7 4px,#2f34a4 0,#2f34a4 8px)}.payload.svelte-1ft3ysk{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(20 20 20/var(--tw-bg-opacity));border-radius:.25rem;color:rgb(255 255 255/var(--tw-text-opacity));font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;overflow:hidden;padding:.125rem .25rem}.row.svelte-117pdmd.svelte-117pdmd{align-items:center;display:flex;font-size:.875rem;gap:1rem;line-height:1.25rem;padding-left:.25rem;padding-right:.25rem;text-decoration-line:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.failure.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-danger));border-width:1px}.failure.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-danger))}.canceled.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-warning));border-width:1px}.canceled.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-warning))}.terminated.svelte-117pdmd.svelte-117pdmd{--tw-border-opacity:1;border-color:rgb(211 0 216/var(--tw-border-opacity));border-width:1px}.terminated.svelte-117pdmd .event-name.svelte-117pdmd{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.expanded-cell.svelte-117pdmd.svelte-117pdmd{font-size:.875rem;line-height:1.25rem;text-decoration-line:none}.typedError.svelte-117pdmd .expanded-cell.svelte-117pdmd{border-bottom-width:0}.row.typedError.svelte-117pdmd.svelte-117pdmd{border-radius:.5rem}.row.typedError.expanded.svelte-117pdmd.svelte-117pdmd{border-bottom-left-radius:0;border-bottom-right-radius:0}.row.svelte-1dtt6u6{align-items:center;display:flex;gap:1rem;padding-left:.25rem;padding-right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.expanded-cell.svelte-1dtt6u6,.row.svelte-1dtt6u6{font-size:.875rem;line-height:1.25rem;text-decoration-line:none} +.dot.svelte-1rumg40,g.svelte-1rumg40{outline:none}.dot.svelte-1rumg40{stroke:#141414;fill:#e8efff;cursor:pointer;opacity:1}.command.svelte-1rumg40,.marker.svelte-1rumg40{fill:#ebebeb}.timer.svelte-1rumg40{fill:#fbbf24}.signal.svelte-1rumg40{fill:#d300d8}.activity.svelte-1rumg40{fill:#a78bfa}.pending.svelte-1rumg40{stroke:#a78bfa;fill:#141414}.child-workflow.svelte-1rumg40{fill:#b2f8d9}.update.svelte-1rumg40{fill:#06b6d4}.workflow.svelte-1rumg40{fill:#059669}.Started.svelte-1rumg40{fill:#92a4c3}.Completed.svelte-1rumg40{stroke:#00964e;fill:#00f37e}.Fired.svelte-1rumg40{stroke:#fed64b;fill:#f8a208}.Signaled.svelte-1rumg40{stroke:#ff26ff;fill:#d300d8}.Failed.svelte-1rumg40,.Terminated.svelte-1rumg40{stroke:#c71607;fill:#ff4518}.TimedOut.svelte-1rumg40{stroke:#f97316;fill:#c2570c}.Canceled.svelte-1rumg40{stroke:#fff4c6;fill:#fed64b}.line.svelte-xmy546{stroke:#444ce7;cursor:pointer;opacity:1;outline:none}.none.svelte-xmy546{stroke:#141414;opacity:.65}.scheduling.svelte-xmy546{opacity:.35}.command.svelte-xmy546,.marker.svelte-xmy546,.workflow.svelte-xmy546{stroke:#ebebeb}.timer.svelte-xmy546{stroke:#fbbf24}.signal.svelte-xmy546{stroke:#d300d8}.activity.svelte-xmy546,.pending.svelte-xmy546{stroke:#a78bfa}.retry.svelte-xmy546{stroke:#ff9b70}.child-workflow.svelte-xmy546{stroke:#67e4f9}.Completed.svelte-xmy546{stroke:#00964e}.Failed.svelte-xmy546,.Terminated.svelte-xmy546{stroke:#c71607}.Signaled.svelte-xmy546{stroke:#d300d8}.Fired.svelte-xmy546{stroke:#f8a208}.TimedOut.svelte-xmy546{stroke:#f97316}.Canceled.svelte-xmy546{stroke:#fed64b}.Running.svelte-xmy546{stroke:#3b82f6}.animate-line.svelte-xmy546{stroke-dashoffset:0;animation:svelte-xmy546-dash 60s linear infinite}@keyframes svelte-xmy546-dash{0%{stroke-dashoffset:200}to{stroke-dashoffset:0}}.content.svelte-1dhlqx8{display:block;padding:.25rem .5rem;text-align:left;width:100%}.code-block-row.svelte-1dhlqx8{display:block;-webkit-user-select:all;-moz-user-select:all;user-select:all}.code-block-row.svelte-1dhlqx8,.detail-row.svelte-1dhlqx8{padding-bottom:.25rem;padding-top:.25rem;text-align:left;width:100%}.detail-row.svelte-1dhlqx8{align-items:center;display:flex;gap:.5rem}.content.svelte-xg3mkm{align-items:center;display:block;display:flex;gap:1rem;padding:.25rem .5rem;text-align:left;width:100%}@media (min-width:1280px){.content.svelte-xg3mkm{display:flex}}@media (min-width:1280px){.three-events.svelte-15sf0vo{width:33.333333%}.two-events.svelte-15sf0vo{width:50%}}.pending.svelte-15sf0vo{background:repeating-linear-gradient(90deg,#444ce7,#444ce7 4px,#2f34a4 0,#2f34a4 8px)}.payload.svelte-1acrhfj{background-color:rgb(var(--color-surface-primary));border-color:rgb(var(--color-border-subtle));border-radius:.25rem;border-width:2px;font-family:Noto Sans Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:.75rem;line-height:1rem;overflow:hidden;padding:.125rem .25rem}.row.svelte-117pdmd.svelte-117pdmd{align-items:center;display:flex;font-size:.875rem;gap:1rem;line-height:1.25rem;padding-left:.25rem;padding-right:.25rem;text-decoration-line:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.failure.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-danger));border-width:1px}.failure.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-danger))}.canceled.svelte-117pdmd.svelte-117pdmd{border-color:rgb(var(--color-border-warning));border-width:1px}.canceled.svelte-117pdmd .event-name.svelte-117pdmd{color:rgb(var(--color-text-warning))}.terminated.svelte-117pdmd.svelte-117pdmd{--tw-border-opacity:1;border-color:rgb(211 0 216/var(--tw-border-opacity));border-width:1px}.terminated.svelte-117pdmd .event-name.svelte-117pdmd{--tw-text-opacity:1;color:rgb(211 0 216/var(--tw-text-opacity))}.expanded-cell.svelte-117pdmd.svelte-117pdmd{font-size:.875rem;line-height:1.25rem;text-decoration-line:none}.typedError.svelte-117pdmd .expanded-cell.svelte-117pdmd{border-bottom-width:0}.row.typedError.svelte-117pdmd.svelte-117pdmd{border-radius:.5rem}.row.typedError.expanded.svelte-117pdmd.svelte-117pdmd{border-bottom-left-radius:0;border-bottom-right-radius:0}.row.svelte-1dtt6u6{align-items:center;display:flex;gap:1rem;padding-left:.25rem;padding-right:.25rem;-webkit-user-select:none;-moz-user-select:none;user-select:none}.expanded-cell.svelte-1dtt6u6,.row.svelte-1dtt6u6{font-size:.875rem;line-height:1.25rem;text-decoration-line:none} diff --git a/ui/assets/local/_app/immutable/chunks/accordion.DEmefb3Z.js b/ui/assets/local/_app/immutable/chunks/accordion.B8FZU59C.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/accordion.DEmefb3Z.js rename to ui/assets/local/_app/immutable/chunks/accordion.B8FZU59C.js index be87ef33e..d145789a1 100644 --- a/ui/assets/local/_app/immutable/chunks/accordion.DEmefb3Z.js +++ b/ui/assets/local/_app/immutable/chunks/accordion.B8FZU59C.js @@ -1 +1 @@ -import{s as Fe,x as we,i as oe,f as V,D as Ie,z as de,A as Ge,v as Me,B as De,a as W,h as z,b as q,t as le,j as C,k as F,d as S,l as te,m as b,H as ge,E as pe,n as u,q as se,u as X,g as Y,e as Z,p as ve,F as Ve,G as Oe}from"./scheduler.C46pS-76.js";import{S as Ue,i as Je,g as ne,b as k,e as ie,t as d,c as ae,a as re,m as fe,d as ue}from"./index.dOVbn71B.js";import{g as ze}from"./spread.CgU5AtxT.js";import{B as Ce}from"./badge.jG5hkqHT.js";import{I as ke}from"./icon.CfkHLDdJ.js";import{v as Ke}from"./toaster.D-OAJjvv.js";import{t as Te}from"./tw-merge.Ds6tgvmq.js";const Le=s=>({}),ye=s=>({}),Qe=s=>({}),Ae=s=>({}),Re=s=>({}),Be=s=>({}),We=s=>({}),He=s=>({}),Xe=s=>({}),Ne=s=>({});function Ye(s){let e,l,t,o,m,E,G,c,w,v,T,P,O,H,j,I,_=s[4]&&Pe(s);const U=s[11].summary,a=W(U,s,s[14],Ae),N=s[11].action,y=W(N,s,s[14],ye);let g=s[6]&&je(s);const J=s[11].default,r=W(J,s,s[14],null);let L=[{class:"surface-primary w-full rounded-2xl border-2 border-subtle p-4"},s[9]],Q={};for(let n=0;n{_=null}),ie()),(!I||p&2)&&se(E,n[1]),a&&a.p&&(!I||p&16384)&&X(a,U,n,n[14],I?Z(U,n[14],p,Qe):Y(n[14]),Ae),y&&y.p&&(!I||p&16384)&&X(y,N,n,n[14],I?Z(N,n[14],p,Le):Y(n[14]),ye),n[6]?g?(g.p(n,p),p&64&&d(g,1)):(g=je(n),g.c(),d(g,1),g.m(T,P)):g&&(ne(),k(g,1,1,()=>{g=null}),ie()),(!I||p&8)&&se(O,n[3]),r&&r.p&&(!I||p&16384)&&X(r,J,n,n[14],I?Z(J,n[14],p,null):Y(n[14]),null),(!I||p&1)&&ge(j,"hidden",!n[0]),pe(e,Q=ze(L,[{class:"surface-primary w-full rounded-2xl border-2 border-subtle p-4"},p&512&&n[9]]))},i(n){I||(d(_),d(a,n),d(y,n),d(g),d(r,n),I=!0)},o(n){k(_),k(a,n),k(y,n),k(g),k(r,n),I=!1},d(n){n&&V(e),_&&_.d(),a&&a.d(n),y&&y.d(n),g&&g.d(),r&&r.d(n)}}}function Ze(s){let e,l,t,o,m,E,G,c,w,v,T,P,O,H,j,I,_,U,a,N,y,g,J,r,L,Q,n=s[4]&&qe(s);const p=s[11].summary,A=W(p,s,s[14],Ne),K=s[11].description,D=W(K,s,s[14],He),$=s[11].action,B=W($,s,s[14],Be);P=new ke({props:{class:"m-2 shrink-0",name:s[0]?"chevron-up":"chevron-down"}});let h=s[6]&&Se(s);const be=s[11].default,M=W(be,s,s[14],null);let he=[{class:J=Te("surface-primary w-full rounded-2xl border-2 border-subtle p-2 focus-within:ring-4 focus-within:ring-inset focus-within:ring-primary/70",s[7])},s[9]],ce={};for(let i=0;i{n=null}),ie()),(!r||f&2)&&se(E,i[1]),A&&A.p&&(!r||f&16384)&&X(A,p,i,i[14],r?Z(p,i[14],f,Xe):Y(i[14]),Ne),D&&D.p&&(!r||f&16384)&&X(D,K,i,i[14],r?Z(K,i[14],f,We):Y(i[14]),He),B&&B.p&&(!r||f&16384)&&X(B,$,i,i[14],r?Z($,i[14],f,Re):Y(i[14]),Be);const R={};f&1&&(R.name=i[0]?"chevron-up":"chevron-down"),P.$set(R),i[6]?h?(h.p(i,f),f&64&&d(h,1)):(h=Se(i),h.c(),d(h,1),h.m(H,j)):h&&(ne(),k(h,1,1,()=>{h=null}),ie()),(!r||f&8)&&se(I,i[3]),(!r||f&4&&_!==(_=i[2]+"-trigger"))&&b(l,"id",_),(!r||f&1)&&b(l,"aria-expanded",i[0]),(!r||f&4&&U!==(U=i[2]+"-content"))&&b(l,"aria-controls",U),M&&M.p&&(!r||f&16384)&&X(M,be,i,i[14],r?Z(be,i[14],f,null):Y(i[14]),null),(!r||f&4&&y!==(y=i[2]+"-content"))&&b(N,"id",y),(!r||f&4&&g!==(g=i[2]+"-trigger"))&&b(N,"aria-labelledby",g),(!r||f&1)&&ge(N,"hidden",!i[0]),pe(e,ce=ze(he,[(!r||f&128&&J!==(J=Te("surface-primary w-full rounded-2xl border-2 border-subtle p-2 focus-within:ring-4 focus-within:ring-inset focus-within:ring-primary/70",i[7])))&&{class:J},f&512&&i[9]]))},i(i){r||(d(n),d(A,i),d(D,i),d(B,i),d(P.$$.fragment,i),d(h),d(M,i),r=!0)},o(i){k(n),k(A,i),k(D,i),k(B,i),k(P.$$.fragment,i),k(h),k(M,i),r=!1},d(i){i&&V(e),n&&n.d(),A&&A.d(i),D&&D.d(i),B&&B.d(i),ue(P),h&&h.d(),M&&M.d(i),L=!1,Oe(Q)}}}function Pe(s){let e,l;return e=new ke({props:{name:s[4]}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function je(s){let e,l;return e=new Ce({props:{class:"mr-2",type:"danger",$$slots:{default:[$e]},$$scope:{ctx:s}}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16448&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function $e(s){let e;return{c(){e=le(s[6])},l(l){e=te(l,s[6])},m(l,t){oe(l,e,t)},p(l,t){t&64&&se(e,l[6])},d(l){l&&V(e)}}}function qe(s){let e,l;return e=new ke({props:{name:s[4]}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function Se(s){let e,l;return e=new Ce({props:{class:"mr-2",type:"danger",$$slots:{default:[xe]},$$scope:{ctx:s}}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16448&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function xe(s){let e;return{c(){e=le(s[6])},l(l){e=te(l,s[6])},m(l,t){oe(l,e,t)},p(l,t){t&64&&se(e,l[6])},d(l){l&&V(e)}}}function el(s){let e,l,t,o;const m=[Ze,Ye],E=[];function G(c,w){return c[5]?0:1}return e=G(s),l=E[e]=m[e](s),{c(){l.c(),t=we()},l(c){l.l(c),t=we()},m(c,w){E[e].m(c,w),oe(c,t,w),o=!0},p(c,[w]){let v=e;e=G(c),e===v?E[e].p(c,w):(ne(),k(E[v],1,1,()=>{E[v]=null}),ie(),l=E[e],l?l.p(c,w):(l=E[e]=m[e](c),l.c()),d(l,1),l.m(t.parentNode,t))},i(c){o||(d(l),o=!0)},o(c){k(l),o=!1},d(c){c&&V(t),E[e].d(c)}}}function ll(s,e,l){const t=["title","id","subtitle","icon","open","expandable","error","onToggle","class"];let o=Ie(e,t),{$$slots:m={},$$scope:E}=e,{title:G}=e,{id:c=Ke()}=e,{subtitle:w=""}=e,{icon:v=null}=e,{open:T=!1}=e,{expandable:P=!0}=e,{error:O=""}=e,{onToggle:H=Me}=e,{class:j=""}=e;const I=()=>{l(0,T=!T),H()};function _(a){De.call(this,s,a)}function U(a){De.call(this,s,a)}return s.$$set=a=>{e=de(de({},e),Ge(a)),l(9,o=Ie(e,t)),"title"in a&&l(1,G=a.title),"id"in a&&l(2,c=a.id),"subtitle"in a&&l(3,w=a.subtitle),"icon"in a&&l(4,v=a.icon),"open"in a&&l(0,T=a.open),"expandable"in a&&l(5,P=a.expandable),"error"in a&&l(6,O=a.error),"onToggle"in a&&l(10,H=a.onToggle),"class"in a&&l(7,j=a.class),"$$scope"in a&&l(14,E=a.$$scope)},[T,G,c,w,v,P,O,j,I,o,H,m,_,U,E]}class fl extends Ue{constructor(e){super(),Je(this,e,ll,el,Fe,{title:1,id:2,subtitle:3,icon:4,open:0,expandable:5,error:6,onToggle:10,class:7})}}export{fl as A}; +import{s as Fe,x as we,i as oe,f as V,D as Ie,z as de,A as Ge,v as Me,B as De,a as W,h as z,b as q,t as le,j as C,k as F,d as S,l as te,m as b,H as ge,E as pe,n as u,q as se,u as X,g as Y,e as Z,p as ve,F as Ve,G as Oe}from"./scheduler.C46pS-76.js";import{S as Ue,i as Je,g as ne,b as k,e as ie,t as d,c as ae,a as re,m as fe,d as ue}from"./index.dOVbn71B.js";import{g as ze}from"./spread.CgU5AtxT.js";import{B as Ce}from"./badge.jG5hkqHT.js";import{I as ke}from"./icon.CfkHLDdJ.js";import{v as Ke}from"./toaster.p5hsABhI.js";import{t as Te}from"./tw-merge.Ds6tgvmq.js";const Le=s=>({}),ye=s=>({}),Qe=s=>({}),Ae=s=>({}),Re=s=>({}),Be=s=>({}),We=s=>({}),He=s=>({}),Xe=s=>({}),Ne=s=>({});function Ye(s){let e,l,t,o,m,E,G,c,w,v,T,P,O,H,j,I,_=s[4]&&Pe(s);const U=s[11].summary,a=W(U,s,s[14],Ae),N=s[11].action,y=W(N,s,s[14],ye);let g=s[6]&&je(s);const J=s[11].default,r=W(J,s,s[14],null);let L=[{class:"surface-primary w-full rounded-2xl border-2 border-subtle p-4"},s[9]],Q={};for(let n=0;n{_=null}),ie()),(!I||p&2)&&se(E,n[1]),a&&a.p&&(!I||p&16384)&&X(a,U,n,n[14],I?Z(U,n[14],p,Qe):Y(n[14]),Ae),y&&y.p&&(!I||p&16384)&&X(y,N,n,n[14],I?Z(N,n[14],p,Le):Y(n[14]),ye),n[6]?g?(g.p(n,p),p&64&&d(g,1)):(g=je(n),g.c(),d(g,1),g.m(T,P)):g&&(ne(),k(g,1,1,()=>{g=null}),ie()),(!I||p&8)&&se(O,n[3]),r&&r.p&&(!I||p&16384)&&X(r,J,n,n[14],I?Z(J,n[14],p,null):Y(n[14]),null),(!I||p&1)&&ge(j,"hidden",!n[0]),pe(e,Q=ze(L,[{class:"surface-primary w-full rounded-2xl border-2 border-subtle p-4"},p&512&&n[9]]))},i(n){I||(d(_),d(a,n),d(y,n),d(g),d(r,n),I=!0)},o(n){k(_),k(a,n),k(y,n),k(g),k(r,n),I=!1},d(n){n&&V(e),_&&_.d(),a&&a.d(n),y&&y.d(n),g&&g.d(),r&&r.d(n)}}}function Ze(s){let e,l,t,o,m,E,G,c,w,v,T,P,O,H,j,I,_,U,a,N,y,g,J,r,L,Q,n=s[4]&&qe(s);const p=s[11].summary,A=W(p,s,s[14],Ne),K=s[11].description,D=W(K,s,s[14],He),$=s[11].action,B=W($,s,s[14],Be);P=new ke({props:{class:"m-2 shrink-0",name:s[0]?"chevron-up":"chevron-down"}});let h=s[6]&&Se(s);const be=s[11].default,M=W(be,s,s[14],null);let he=[{class:J=Te("surface-primary w-full rounded-2xl border-2 border-subtle p-2 focus-within:ring-4 focus-within:ring-inset focus-within:ring-primary/70",s[7])},s[9]],ce={};for(let i=0;i{n=null}),ie()),(!r||f&2)&&se(E,i[1]),A&&A.p&&(!r||f&16384)&&X(A,p,i,i[14],r?Z(p,i[14],f,Xe):Y(i[14]),Ne),D&&D.p&&(!r||f&16384)&&X(D,K,i,i[14],r?Z(K,i[14],f,We):Y(i[14]),He),B&&B.p&&(!r||f&16384)&&X(B,$,i,i[14],r?Z($,i[14],f,Re):Y(i[14]),Be);const R={};f&1&&(R.name=i[0]?"chevron-up":"chevron-down"),P.$set(R),i[6]?h?(h.p(i,f),f&64&&d(h,1)):(h=Se(i),h.c(),d(h,1),h.m(H,j)):h&&(ne(),k(h,1,1,()=>{h=null}),ie()),(!r||f&8)&&se(I,i[3]),(!r||f&4&&_!==(_=i[2]+"-trigger"))&&b(l,"id",_),(!r||f&1)&&b(l,"aria-expanded",i[0]),(!r||f&4&&U!==(U=i[2]+"-content"))&&b(l,"aria-controls",U),M&&M.p&&(!r||f&16384)&&X(M,be,i,i[14],r?Z(be,i[14],f,null):Y(i[14]),null),(!r||f&4&&y!==(y=i[2]+"-content"))&&b(N,"id",y),(!r||f&4&&g!==(g=i[2]+"-trigger"))&&b(N,"aria-labelledby",g),(!r||f&1)&&ge(N,"hidden",!i[0]),pe(e,ce=ze(he,[(!r||f&128&&J!==(J=Te("surface-primary w-full rounded-2xl border-2 border-subtle p-2 focus-within:ring-4 focus-within:ring-inset focus-within:ring-primary/70",i[7])))&&{class:J},f&512&&i[9]]))},i(i){r||(d(n),d(A,i),d(D,i),d(B,i),d(P.$$.fragment,i),d(h),d(M,i),r=!0)},o(i){k(n),k(A,i),k(D,i),k(B,i),k(P.$$.fragment,i),k(h),k(M,i),r=!1},d(i){i&&V(e),n&&n.d(),A&&A.d(i),D&&D.d(i),B&&B.d(i),ue(P),h&&h.d(),M&&M.d(i),L=!1,Oe(Q)}}}function Pe(s){let e,l;return e=new ke({props:{name:s[4]}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function je(s){let e,l;return e=new Ce({props:{class:"mr-2",type:"danger",$$slots:{default:[$e]},$$scope:{ctx:s}}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16448&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function $e(s){let e;return{c(){e=le(s[6])},l(l){e=te(l,s[6])},m(l,t){oe(l,e,t)},p(l,t){t&64&&se(e,l[6])},d(l){l&&V(e)}}}function qe(s){let e,l;return e=new ke({props:{name:s[4]}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16&&(m.name=t[4]),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function Se(s){let e,l;return e=new Ce({props:{class:"mr-2",type:"danger",$$slots:{default:[xe]},$$scope:{ctx:s}}}),{c(){ae(e.$$.fragment)},l(t){re(e.$$.fragment,t)},m(t,o){fe(e,t,o),l=!0},p(t,o){const m={};o&16448&&(m.$$scope={dirty:o,ctx:t}),e.$set(m)},i(t){l||(d(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){ue(e,t)}}}function xe(s){let e;return{c(){e=le(s[6])},l(l){e=te(l,s[6])},m(l,t){oe(l,e,t)},p(l,t){t&64&&se(e,l[6])},d(l){l&&V(e)}}}function el(s){let e,l,t,o;const m=[Ze,Ye],E=[];function G(c,w){return c[5]?0:1}return e=G(s),l=E[e]=m[e](s),{c(){l.c(),t=we()},l(c){l.l(c),t=we()},m(c,w){E[e].m(c,w),oe(c,t,w),o=!0},p(c,[w]){let v=e;e=G(c),e===v?E[e].p(c,w):(ne(),k(E[v],1,1,()=>{E[v]=null}),ie(),l=E[e],l?l.p(c,w):(l=E[e]=m[e](c),l.c()),d(l,1),l.m(t.parentNode,t))},i(c){o||(d(l),o=!0)},o(c){k(l),o=!1},d(c){c&&V(t),E[e].d(c)}}}function ll(s,e,l){const t=["title","id","subtitle","icon","open","expandable","error","onToggle","class"];let o=Ie(e,t),{$$slots:m={},$$scope:E}=e,{title:G}=e,{id:c=Ke()}=e,{subtitle:w=""}=e,{icon:v=null}=e,{open:T=!1}=e,{expandable:P=!0}=e,{error:O=""}=e,{onToggle:H=Me}=e,{class:j=""}=e;const I=()=>{l(0,T=!T),H()};function _(a){De.call(this,s,a)}function U(a){De.call(this,s,a)}return s.$$set=a=>{e=de(de({},e),Ge(a)),l(9,o=Ie(e,t)),"title"in a&&l(1,G=a.title),"id"in a&&l(2,c=a.id),"subtitle"in a&&l(3,w=a.subtitle),"icon"in a&&l(4,v=a.icon),"open"in a&&l(0,T=a.open),"expandable"in a&&l(5,P=a.expandable),"error"in a&&l(6,O=a.error),"onToggle"in a&&l(10,H=a.onToggle),"class"in a&&l(7,j=a.class),"$$scope"in a&&l(14,E=a.$$scope)},[T,G,c,w,v,P,O,j,I,o,H,m,_,U,E]}class fl extends Ue{constructor(e){super(),Je(this,e,ll,el,Fe,{title:1,id:2,subtitle:3,icon:4,open:0,expandable:5,error:6,onToggle:10,class:7})}}export{fl as A}; diff --git a/ui/assets/local/_app/immutable/chunks/active-events.B1lGV7ud.js b/ui/assets/local/_app/immutable/chunks/active-events.hFekhesG.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/active-events.B1lGV7ud.js rename to ui/assets/local/_app/immutable/chunks/active-events.hFekhesG.js index df47f082a..3c2874346 100644 --- a/ui/assets/local/_app/immutable/chunks/active-events.B1lGV7ud.js +++ b/ui/assets/local/_app/immutable/chunks/active-events.hFekhesG.js @@ -1 +1 @@ -import{w as e}from"./entry.DLEzeuD9.js";import{C as a}from"./scheduler.C46pS-76.js";const i=200,o=e(0),r=e(i),c=e([]),s=e([]),l=()=>{s.set([]),c.set([]),o.set(0),r.set(i)},f=()=>{s.set([]),c.set([])},m=t=>{c.set([]),a(s).includes(t.id)?s.set(a(s).filter(n=>n!==t.id)):s.set([...a(s),t.id])};export{s as a,l as b,f as c,o as d,r as e,i,m as s}; +import{w as e}from"./entry.kylZibtV.js";import{C as a}from"./scheduler.C46pS-76.js";const i=200,o=e(0),r=e(i),c=e([]),s=e([]),l=()=>{s.set([]),c.set([]),o.set(0),r.set(i)},f=()=>{s.set([]),c.set([])},m=t=>{c.set([]),a(s).includes(t.id)?s.set(a(s).filter(n=>n!==t.id)):s.set([...a(s),t.id])};export{s as a,l as b,f as c,o as d,r as e,i,m as s}; diff --git a/ui/assets/local/_app/immutable/chunks/add-search-attributes.B9SzC6V8.js b/ui/assets/local/_app/immutable/chunks/add-search-attributes.Bb3B2Swh.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/add-search-attributes.B9SzC6V8.js rename to ui/assets/local/_app/immutable/chunks/add-search-attributes.Bb3B2Swh.js index f54c668ca..617f283a9 100644 --- a/ui/assets/local/_app/immutable/chunks/add-search-attributes.B9SzC6V8.js +++ b/ui/assets/local/_app/immutable/chunks/add-search-attributes.Bb3B2Swh.js @@ -1 +1 @@ -import{s as V,N as S,h as H,b as R,j as Y,k as Z,d as q,f as D,m as B,i as E,n as N,O as C,V as oe,a4 as ue,c as re,x as W,y as ae,t as K,l as P,q as fe,v as G}from"./scheduler.C46pS-76.js";import{S as L,i as M,f as I,c as $,a as k,m as w,t as b,b as h,d as T,g as J,e as Q}from"./index.dOVbn71B.js";import{e as F}from"./each.C6O0oV7R.js";import{B as le}from"./button.BpRIS9ld.js";import{t as A}from"./translate.BBe5dcco.js";import{c as ie}from"./search-attributes.C9oQpIly.js";import{S as se,O as z}from"./option.Bt5AmPHo.js";import{D as ce,T as me,S as j}from"./time-picker.BvbblB8x.js";import{g as _e}from"./time-format.D2wF3ave.js";import{s as y}from"./format-time.6TuExJAg.js";import{N as pe}from"./number-input.DL-aHAg2.js";import{I as ge}from"./input.CTzUOpgs.js";function de(r){let t,u,n,a,i,e,l,o;u=new ce({props:{label:A("common.value")+" ("+A("common.utc")+")",selected:r[0],todayLabel:A("common.today"),closeLabel:A("common.close"),clearLabel:A("common.clear-input-button-label")}}),u.$on("datechange",r[4]);function s(f){r[7](f)}function c(f){r[8](f)}function d(f){r[9](f)}let p={twelveHourClock:!1};return r[1]!==void 0&&(p.hour=r[1]),r[2]!==void 0&&(p.minute=r[2]),r[3]!==void 0&&(p.second=r[3]),a=new me({props:p}),S.push(()=>I(a,"hour",s)),S.push(()=>I(a,"minute",c)),S.push(()=>I(a,"second",d)),a.$on("timechange",r[5]),{c(){t=H("div"),$(u.$$.fragment),n=R(),$(a.$$.fragment),this.h()},l(f){t=Y(f,"DIV",{class:!0});var g=Z(t);k(u.$$.fragment,g),n=q(g),k(a.$$.fragment,g),g.forEach(D),this.h()},h(){B(t,"class","flex flex-col gap-2")},m(f,g){E(f,t,g),w(u,t,null),N(t,n),w(a,t,null),o=!0},p(f,[g]){const O={};g&1&&(O.selected=f[0]),u.$set(O);const _={};!i&&g&2&&(i=!0,_.hour=f[1],C(()=>i=!1)),!e&&g&4&&(e=!0,_.minute=f[2],C(()=>e=!1)),!l&&g&8&&(l=!0,_.second=f[3],C(()=>l=!1)),a.$set(_)},i(f){o||(b(u.$$.fragment,f),b(a.$$.fragment,f),o=!0)},o(f){h(u.$$.fragment,f),h(a.$$.fragment,f),o=!1},d(f){f&&D(t),T(u),T(a)}}}function be(r,t,u){let{value:n}=t,a=y(new Date),i="",e="",l="";oe(()=>{if(n){const f=new Date(n),g=new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate());u(0,a=y(g)),u(1,i=String(f.getUTCHours())),u(2,e=String(f.getUTCMinutes())),u(3,l=String(f.getUTCSeconds()))}else s()});const o=f=>{u(0,a=y(f.detail)),s()},s=()=>{u(6,n=_e({date:a,hour:i,minute:e,second:l}))};function c(f){i=f,u(1,i)}function d(f){e=f,u(2,e)}function p(f){l=f,u(3,l)}return r.$$set=f=>{"value"in f&&u(6,n=f.value)},[a,i,e,l,o,s,n,c,d,p]}class he extends L{constructor(t){super(),M(this,t,be,de,V,{value:6})}}function ve(r){let t,u,n;function a(e){r[2](e)}let i={label:A("common.value"),id:"attribute-value"};return r[0]!==void 0&&(i.value=r[0]),t=new pe({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,[l]){const o={};!u&&l&1&&(u=!0,o.value=e[0],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function $e(r){const t=Number(r);return t||(r===0||r==="0")?t:null}function ke(r,t,u){let n,{value:a}=t;ue(()=>{u(1,a=n)});function i(e){n=e,u(0,n),u(1,a)}return r.$$set=e=>{"value"in e&&u(1,a=e.value)},r.$$.update=()=>{r.$$.dirty&2&&u(0,n=$e(a))},[n,a,i]}class we extends L{constructor(t){super(),M(this,t,ke,ve,V,{value:1})}}function Te(r){let t,u,n;function a(e){r[2](e)}let i={label:A("common.value"),id:"attribute-value",class:"grow"};return r[0]!==void 0&&(i.value=r[0]),t=new ge({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,[l]){const o={};!u&&l&1&&(u=!0,o.value=e[0],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ae(r,t,u){let n,{value:a}=t;ue(()=>{u(1,a=n)});function i(e){n=e,u(0,n),u(1,a)}return r.$$set=e=>{"value"in e&&u(1,a=e.value)},r.$$.update=()=>{r.$$.dirty&2&&u(0,n=a?String(a):null)},[n,a,i]}class De extends L{constructor(t){super(),M(this,t,Ae,Te,V,{value:1})}}function X(r,t,u){const n=r.slice();return n[15]=t[u].value,n[16]=t[u].label,n[2]=t[u].type,n}function Se(r){let t=r[16]+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p(n,a){a&16&&t!==(t=n[16]+"")&&fe(u,t)},d(n){n&&D(u)}}}function x(r){let t,u;return t=new z({props:{disabled:r[3](r[15]),value:r[15],description:r[2],$$slots:{default:[Se]},$$scope:{ctx:r}}}),{c(){$(t.$$.fragment)},l(n){k(t.$$.fragment,n)},m(n,a){w(t,n,a),u=!0},p(n,a){const i={};a&24&&(i.disabled=n[3](n[15])),a&16&&(i.value=n[15]),a&16&&(i.description=n[2]),a&524304&&(i.$$scope={dirty:a,ctx:n}),t.$set(i)},i(n){u||(b(t.$$.fragment,n),u=!0)},o(n){h(t.$$.fragment,n),u=!1},d(n){T(t,n)}}}function Ce(r){let t,u,n=F(r[4]),a=[];for(let e=0;eh(a[e],1,1,()=>{a[e]=null});return{c(){for(let e=0;eI(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ee(r){let t,u,n;function a(e){r[11](e)}let i={};return r[0].value!==void 0&&(i.value=r[0].value),t=new we({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Oe(r){let t,u,n;function a(e){r[10](e)}let i={};return r[0].value!==void 0&&(i.value=r[0].value),t=new he({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ue(r){let t,u,n;function a(e){r[9](e)}let i={label:A("common.value"),id:"attribute-value",$$slots:{default:[qe]},$$scope:{ctx:r}};return r[0].value!==void 0&&(i.value=r[0].value),t=new se({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};l&524288&&(o.$$scope={dirty:l,ctx:e}),!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ne(r){let t=A("common.true")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function Re(r){let t=A("common.false")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function qe(r){let t,u,n,a;return t=new z({props:{value:!0,$$slots:{default:[Ne]},$$scope:{ctx:r}}}),n=new z({props:{value:!1,$$slots:{default:[Re]},$$scope:{ctx:r}}}),{c(){$(t.$$.fragment),u=R(),$(n.$$.fragment)},l(i){k(t.$$.fragment,i),u=q(i),k(n.$$.fragment,i)},m(i,e){w(t,i,e),E(i,u,e),w(n,i,e),a=!0},p(i,e){const l={};e&524288&&(l.$$scope={dirty:e,ctx:i}),t.$set(l);const o={};e&524288&&(o.$$scope={dirty:e,ctx:i}),n.$set(o)},i(i){a||(b(t.$$.fragment,i),b(n.$$.fragment,i),a=!0)},o(i){h(t.$$.fragment,i),h(n.$$.fragment,i),a=!1},d(i){i&&D(u),T(t,i),T(n,i)}}}function Be(r){let t,u,n,a,i,e,l,o,s,c;function d(_){r[8](_)}let p={id:"search-attribute",label:A("workflows.custom-search-attribute"),class:"w-full",placeholder:A("workflows.select-attribute"),onChange:r[5],$$slots:{default:[Ce]},$$scope:{ctx:r}};r[0].attribute!==void 0&&(p.value=r[0].attribute),n=new se({props:p}),S.push(()=>I(n,"value",d));const f=[Ue,Oe,Ee,Ie],g=[];function O(_,v){return _[2]===j.BOOL?0:_[2]===j.DATETIME?1:_[2]===j.INT||_[2]===j.DOUBLE?2:3}return e=O(r),l=g[e]=f[e](r),s=new le({props:{variant:"ghost",leadingIcon:"close",class:"mt-6 w-10 rounded-full"}}),s.$on("click",r[13]),{c(){t=H("div"),u=H("div"),$(n.$$.fragment),i=R(),l.c(),o=R(),$(s.$$.fragment),this.h()},l(_){t=Y(_,"DIV",{class:!0});var v=Z(t);u=Y(v,"DIV",{class:!0});var m=Z(u);k(n.$$.fragment,m),m.forEach(D),i=q(v),l.l(v),o=q(v),k(s.$$.fragment,v),v.forEach(D),this.h()},h(){B(u,"class","min-w-fit"),B(t,"class","flex items-start gap-2")},m(_,v){E(_,t,v),N(t,u),w(n,u,null),N(t,i),g[e].m(t,null),N(t,o),w(s,t,null),c=!0},p(_,[v]){const m={};v&524312&&(m.$$scope={dirty:v,ctx:_}),!a&&v&1&&(a=!0,m.value=_[0].attribute,C(()=>a=!1)),n.$set(m);let U=e;e=O(_),e===U?g[e].p(_,v):(J(),h(g[U],1,1,()=>{g[U]=null}),Q(),l=g[e],l?l.p(_,v):(l=g[e]=f[e](_),l.c()),b(l,1),l.m(t,o))},i(_){c||(b(n.$$.fragment,_),b(l),b(s.$$.fragment,_),c=!0)},o(_){h(n.$$.fragment,_),h(l),h(s.$$.fragment,_),c=!1},d(_){_&&D(t),T(n),g[e].d(),T(s)}}}function Ve(r,t,u){let n,a,i,e;re(r,ie,m=>u(14,e=m));let{attributesToAdd:l=[]}=t,{searchAttributes:o=e}=t,{attribute:s}=t,{onRemove:c}=t;const d=m=>{n!==o[m]&&u(0,s.value=null,s)};function p(m){r.$$.not_equal(s.attribute,m)&&(s.attribute=m,u(0,s))}function f(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function g(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function O(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function _(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}const v=()=>c(s.attribute);return r.$$set=m=>{"attributesToAdd"in m&&u(6,l=m.attributesToAdd),"searchAttributes"in m&&u(7,o=m.searchAttributes),"attribute"in m&&u(0,s=m.attribute),"onRemove"in m&&u(1,c=m.onRemove)},r.$$.update=()=>{r.$$.dirty&129&&u(2,n=o[s.attribute]),r.$$.dirty&128&&u(4,a=[...Object.entries(o)].map(([m,U])=>({label:m,value:m,type:U})).filter(({type:m})=>m!=="KeywordList")),r.$$.dirty&64&&u(3,i=m=>!!l.find(U=>U.attribute===m))},[s,c,n,i,a,d,l,o,p,f,g,O,_,v]}class Le extends L{constructor(t){super(),M(this,t,Ve,Be,V,{attributesToAdd:6,searchAttributes:7,attribute:0,onRemove:1})}}function ee(r,t,u){const n=r.slice();return n[7]=t[u],n[8]=t,n[9]=u,n}function te(r){let t,u,n;function a(e){r[6](e,r[7],r[8],r[9])}let i={attributesToAdd:r[0],onRemove:r[4]};return r[7]!==void 0&&(i.attribute=r[7]),t=new Le({props:i}),S.push(()=>I(t,"attribute",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){r=e;const o={};l&1&&(o.attributesToAdd=r[0]),!u&&l&1&&(u=!0,o.attribute=r[7],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Me(r){let t=A("workflows.add-search-attribute")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function je(r){let t,u,n,a,i,e=F(r[0]),l=[];for(let s=0;sh(l[s],1,1,()=>{l[s]=null});return n=new le({props:{variant:"ghost",leadingIcon:"add",disabled:!r[2].length||r[0].length===r[2].length||r[0].filter(ne).length>0,$$slots:{default:[Me]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){t=H("div");for(let s=0;s0),c&1024&&(d.$$scope={dirty:c,ctx:s}),n.$set(d),(!i||c&2&&a!==(a="flex flex-col gap-2 "+s[1]))&&B(t,"class",a)},i(s){if(!i){for(let c=0;cr.value===""||r.value===null;function He(r,t,u){let n,a;re(r,ie,c=>u(5,a=c));let{class:i=""}=t,{attributesToAdd:e=[]}=t;const l=()=>{u(0,e=[...e,{attribute:"",value:null}])},o=c=>{u(0,e=e.filter(d=>d.attribute!==c))};function s(c,d,p,f){p[f]=c,u(0,e)}return r.$$set=c=>{"class"in c&&u(1,i=c.class),"attributesToAdd"in c&&u(0,e=c.attributesToAdd)},r.$$.update=()=>{r.$$.dirty&32&&u(2,n=Object.keys(a))},[e,i,n,l,o,a,s]}class xe extends L{constructor(t){super(),M(this,t,He,je,V,{class:1,attributesToAdd:0})}}export{xe as A}; +import{s as V,N as S,h as H,b as R,j as Y,k as Z,d as q,f as D,m as B,i as E,n as N,O as C,V as oe,a4 as ue,c as re,x as W,y as ae,t as K,l as P,q as fe,v as G}from"./scheduler.C46pS-76.js";import{S as L,i as M,f as I,c as $,a as k,m as w,t as b,b as h,d as T,g as J,e as Q}from"./index.dOVbn71B.js";import{e as F}from"./each.C6O0oV7R.js";import{B as le}from"./button.hs88FdV4.js";import{t as A}from"./translate.BBe5dcco.js";import{c as ie}from"./search-attributes.Dmice2E5.js";import{S as se,O as z}from"./option.BuKObSE0.js";import{D as ce,T as me,S as j}from"./time-picker.G0x2sfcZ.js";import{g as _e}from"./time-format.BLKgLEx9.js";import{s as y}from"./format-time.6TuExJAg.js";import{N as pe}from"./number-input.DL-aHAg2.js";import{I as ge}from"./input.Dizl7Mgk.js";function de(r){let t,u,n,a,i,e,l,o;u=new ce({props:{label:A("common.value")+" ("+A("common.utc")+")",selected:r[0],todayLabel:A("common.today"),closeLabel:A("common.close"),clearLabel:A("common.clear-input-button-label")}}),u.$on("datechange",r[4]);function s(f){r[7](f)}function c(f){r[8](f)}function d(f){r[9](f)}let p={twelveHourClock:!1};return r[1]!==void 0&&(p.hour=r[1]),r[2]!==void 0&&(p.minute=r[2]),r[3]!==void 0&&(p.second=r[3]),a=new me({props:p}),S.push(()=>I(a,"hour",s)),S.push(()=>I(a,"minute",c)),S.push(()=>I(a,"second",d)),a.$on("timechange",r[5]),{c(){t=H("div"),$(u.$$.fragment),n=R(),$(a.$$.fragment),this.h()},l(f){t=Y(f,"DIV",{class:!0});var g=Z(t);k(u.$$.fragment,g),n=q(g),k(a.$$.fragment,g),g.forEach(D),this.h()},h(){B(t,"class","flex flex-col gap-2")},m(f,g){E(f,t,g),w(u,t,null),N(t,n),w(a,t,null),o=!0},p(f,[g]){const O={};g&1&&(O.selected=f[0]),u.$set(O);const _={};!i&&g&2&&(i=!0,_.hour=f[1],C(()=>i=!1)),!e&&g&4&&(e=!0,_.minute=f[2],C(()=>e=!1)),!l&&g&8&&(l=!0,_.second=f[3],C(()=>l=!1)),a.$set(_)},i(f){o||(b(u.$$.fragment,f),b(a.$$.fragment,f),o=!0)},o(f){h(u.$$.fragment,f),h(a.$$.fragment,f),o=!1},d(f){f&&D(t),T(u),T(a)}}}function be(r,t,u){let{value:n}=t,a=y(new Date),i="",e="",l="";oe(()=>{if(n){const f=new Date(n),g=new Date(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate());u(0,a=y(g)),u(1,i=String(f.getUTCHours())),u(2,e=String(f.getUTCMinutes())),u(3,l=String(f.getUTCSeconds()))}else s()});const o=f=>{u(0,a=y(f.detail)),s()},s=()=>{u(6,n=_e({date:a,hour:i,minute:e,second:l}))};function c(f){i=f,u(1,i)}function d(f){e=f,u(2,e)}function p(f){l=f,u(3,l)}return r.$$set=f=>{"value"in f&&u(6,n=f.value)},[a,i,e,l,o,s,n,c,d,p]}class he extends L{constructor(t){super(),M(this,t,be,de,V,{value:6})}}function ve(r){let t,u,n;function a(e){r[2](e)}let i={label:A("common.value"),id:"attribute-value"};return r[0]!==void 0&&(i.value=r[0]),t=new pe({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,[l]){const o={};!u&&l&1&&(u=!0,o.value=e[0],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function $e(r){const t=Number(r);return t||(r===0||r==="0")?t:null}function ke(r,t,u){let n,{value:a}=t;ue(()=>{u(1,a=n)});function i(e){n=e,u(0,n),u(1,a)}return r.$$set=e=>{"value"in e&&u(1,a=e.value)},r.$$.update=()=>{r.$$.dirty&2&&u(0,n=$e(a))},[n,a,i]}class we extends L{constructor(t){super(),M(this,t,ke,ve,V,{value:1})}}function Te(r){let t,u,n;function a(e){r[2](e)}let i={label:A("common.value"),id:"attribute-value",class:"grow"};return r[0]!==void 0&&(i.value=r[0]),t=new ge({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,[l]){const o={};!u&&l&1&&(u=!0,o.value=e[0],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ae(r,t,u){let n,{value:a}=t;ue(()=>{u(1,a=n)});function i(e){n=e,u(0,n),u(1,a)}return r.$$set=e=>{"value"in e&&u(1,a=e.value)},r.$$.update=()=>{r.$$.dirty&2&&u(0,n=a?String(a):null)},[n,a,i]}class De extends L{constructor(t){super(),M(this,t,Ae,Te,V,{value:1})}}function X(r,t,u){const n=r.slice();return n[15]=t[u].value,n[16]=t[u].label,n[2]=t[u].type,n}function Se(r){let t=r[16]+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p(n,a){a&16&&t!==(t=n[16]+"")&&fe(u,t)},d(n){n&&D(u)}}}function x(r){let t,u;return t=new z({props:{disabled:r[3](r[15]),value:r[15],description:r[2],$$slots:{default:[Se]},$$scope:{ctx:r}}}),{c(){$(t.$$.fragment)},l(n){k(t.$$.fragment,n)},m(n,a){w(t,n,a),u=!0},p(n,a){const i={};a&24&&(i.disabled=n[3](n[15])),a&16&&(i.value=n[15]),a&16&&(i.description=n[2]),a&524304&&(i.$$scope={dirty:a,ctx:n}),t.$set(i)},i(n){u||(b(t.$$.fragment,n),u=!0)},o(n){h(t.$$.fragment,n),u=!1},d(n){T(t,n)}}}function Ce(r){let t,u,n=F(r[4]),a=[];for(let e=0;eh(a[e],1,1,()=>{a[e]=null});return{c(){for(let e=0;eI(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ee(r){let t,u,n;function a(e){r[11](e)}let i={};return r[0].value!==void 0&&(i.value=r[0].value),t=new we({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Oe(r){let t,u,n;function a(e){r[10](e)}let i={};return r[0].value!==void 0&&(i.value=r[0].value),t=new he({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ue(r){let t,u,n;function a(e){r[9](e)}let i={label:A("common.value"),id:"attribute-value",$$slots:{default:[qe]},$$scope:{ctx:r}};return r[0].value!==void 0&&(i.value=r[0].value),t=new se({props:i}),S.push(()=>I(t,"value",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){const o={};l&524288&&(o.$$scope={dirty:l,ctx:e}),!u&&l&1&&(u=!0,o.value=e[0].value,C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Ne(r){let t=A("common.true")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function Re(r){let t=A("common.false")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function qe(r){let t,u,n,a;return t=new z({props:{value:!0,$$slots:{default:[Ne]},$$scope:{ctx:r}}}),n=new z({props:{value:!1,$$slots:{default:[Re]},$$scope:{ctx:r}}}),{c(){$(t.$$.fragment),u=R(),$(n.$$.fragment)},l(i){k(t.$$.fragment,i),u=q(i),k(n.$$.fragment,i)},m(i,e){w(t,i,e),E(i,u,e),w(n,i,e),a=!0},p(i,e){const l={};e&524288&&(l.$$scope={dirty:e,ctx:i}),t.$set(l);const o={};e&524288&&(o.$$scope={dirty:e,ctx:i}),n.$set(o)},i(i){a||(b(t.$$.fragment,i),b(n.$$.fragment,i),a=!0)},o(i){h(t.$$.fragment,i),h(n.$$.fragment,i),a=!1},d(i){i&&D(u),T(t,i),T(n,i)}}}function Be(r){let t,u,n,a,i,e,l,o,s,c;function d(_){r[8](_)}let p={id:"search-attribute",label:A("workflows.custom-search-attribute"),class:"w-full",placeholder:A("workflows.select-attribute"),onChange:r[5],$$slots:{default:[Ce]},$$scope:{ctx:r}};r[0].attribute!==void 0&&(p.value=r[0].attribute),n=new se({props:p}),S.push(()=>I(n,"value",d));const f=[Ue,Oe,Ee,Ie],g=[];function O(_,v){return _[2]===j.BOOL?0:_[2]===j.DATETIME?1:_[2]===j.INT||_[2]===j.DOUBLE?2:3}return e=O(r),l=g[e]=f[e](r),s=new le({props:{variant:"ghost",leadingIcon:"close",class:"mt-6 w-10 rounded-full"}}),s.$on("click",r[13]),{c(){t=H("div"),u=H("div"),$(n.$$.fragment),i=R(),l.c(),o=R(),$(s.$$.fragment),this.h()},l(_){t=Y(_,"DIV",{class:!0});var v=Z(t);u=Y(v,"DIV",{class:!0});var m=Z(u);k(n.$$.fragment,m),m.forEach(D),i=q(v),l.l(v),o=q(v),k(s.$$.fragment,v),v.forEach(D),this.h()},h(){B(u,"class","min-w-fit"),B(t,"class","flex items-start gap-2")},m(_,v){E(_,t,v),N(t,u),w(n,u,null),N(t,i),g[e].m(t,null),N(t,o),w(s,t,null),c=!0},p(_,[v]){const m={};v&524312&&(m.$$scope={dirty:v,ctx:_}),!a&&v&1&&(a=!0,m.value=_[0].attribute,C(()=>a=!1)),n.$set(m);let U=e;e=O(_),e===U?g[e].p(_,v):(J(),h(g[U],1,1,()=>{g[U]=null}),Q(),l=g[e],l?l.p(_,v):(l=g[e]=f[e](_),l.c()),b(l,1),l.m(t,o))},i(_){c||(b(n.$$.fragment,_),b(l),b(s.$$.fragment,_),c=!0)},o(_){h(n.$$.fragment,_),h(l),h(s.$$.fragment,_),c=!1},d(_){_&&D(t),T(n),g[e].d(),T(s)}}}function Ve(r,t,u){let n,a,i,e;re(r,ie,m=>u(14,e=m));let{attributesToAdd:l=[]}=t,{searchAttributes:o=e}=t,{attribute:s}=t,{onRemove:c}=t;const d=m=>{n!==o[m]&&u(0,s.value=null,s)};function p(m){r.$$.not_equal(s.attribute,m)&&(s.attribute=m,u(0,s))}function f(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function g(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function O(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}function _(m){r.$$.not_equal(s.value,m)&&(s.value=m,u(0,s))}const v=()=>c(s.attribute);return r.$$set=m=>{"attributesToAdd"in m&&u(6,l=m.attributesToAdd),"searchAttributes"in m&&u(7,o=m.searchAttributes),"attribute"in m&&u(0,s=m.attribute),"onRemove"in m&&u(1,c=m.onRemove)},r.$$.update=()=>{r.$$.dirty&129&&u(2,n=o[s.attribute]),r.$$.dirty&128&&u(4,a=[...Object.entries(o)].map(([m,U])=>({label:m,value:m,type:U})).filter(({type:m})=>m!=="KeywordList")),r.$$.dirty&64&&u(3,i=m=>!!l.find(U=>U.attribute===m))},[s,c,n,i,a,d,l,o,p,f,g,O,_,v]}class Le extends L{constructor(t){super(),M(this,t,Ve,Be,V,{attributesToAdd:6,searchAttributes:7,attribute:0,onRemove:1})}}function ee(r,t,u){const n=r.slice();return n[7]=t[u],n[8]=t,n[9]=u,n}function te(r){let t,u,n;function a(e){r[6](e,r[7],r[8],r[9])}let i={attributesToAdd:r[0],onRemove:r[4]};return r[7]!==void 0&&(i.attribute=r[7]),t=new Le({props:i}),S.push(()=>I(t,"attribute",a)),{c(){$(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,l){w(t,e,l),n=!0},p(e,l){r=e;const o={};l&1&&(o.attributesToAdd=r[0]),!u&&l&1&&(u=!0,o.attribute=r[7],C(()=>u=!1)),t.$set(o)},i(e){n||(b(t.$$.fragment,e),n=!0)},o(e){h(t.$$.fragment,e),n=!1},d(e){T(t,e)}}}function Me(r){let t=A("workflows.add-search-attribute")+"",u;return{c(){u=K(t)},l(n){u=P(n,t)},m(n,a){E(n,u,a)},p:G,d(n){n&&D(u)}}}function je(r){let t,u,n,a,i,e=F(r[0]),l=[];for(let s=0;sh(l[s],1,1,()=>{l[s]=null});return n=new le({props:{variant:"ghost",leadingIcon:"add",disabled:!r[2].length||r[0].length===r[2].length||r[0].filter(ne).length>0,$$slots:{default:[Me]},$$scope:{ctx:r}}}),n.$on("click",r[3]),{c(){t=H("div");for(let s=0;s0),c&1024&&(d.$$scope={dirty:c,ctx:s}),n.$set(d),(!i||c&2&&a!==(a="flex flex-col gap-2 "+s[1]))&&B(t,"class",a)},i(s){if(!i){for(let c=0;cr.value===""||r.value===null;function He(r,t,u){let n,a;re(r,ie,c=>u(5,a=c));let{class:i=""}=t,{attributesToAdd:e=[]}=t;const l=()=>{u(0,e=[...e,{attribute:"",value:null}])},o=c=>{u(0,e=e.filter(d=>d.attribute!==c))};function s(c,d,p,f){p[f]=c,u(0,e)}return r.$$set=c=>{"class"in c&&u(1,i=c.class),"attributesToAdd"in c&&u(0,e=c.attributesToAdd)},r.$$.update=()=>{r.$$.dirty&32&&u(2,n=Object.keys(a))},[e,i,n,l,o,a,s]}class xe extends L{constructor(t){super(),M(this,t,He,je,V,{class:1,attributesToAdd:0})}}export{xe as A}; diff --git a/ui/assets/local/_app/immutable/chunks/auth-user.BOlglCm6.js b/ui/assets/local/_app/immutable/chunks/auth-user.CfsLeCYD.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/auth-user.BOlglCm6.js rename to ui/assets/local/_app/immutable/chunks/auth-user.CfsLeCYD.js index 59611c18e..0a42ce5d8 100644 --- a/ui/assets/local/_app/immutable/chunks/auth-user.BOlglCm6.js +++ b/ui/assets/local/_app/immutable/chunks/auth-user.CfsLeCYD.js @@ -1 +1 @@ -import{C as n}from"./scheduler.C46pS-76.js";import{p as i}from"./persist-store.Bvu2qNDI.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; +import{C as n}from"./scheduler.C46pS-76.js";import{p as i}from"./persist-store.DeOEcwHN.js";const s=i("AuthUser",{}),m=()=>n(s),p=t=>{const{accessToken:e,idToken:r,name:o,email:a,picture:c}=t;if(!e)throw new Error("No access token");s.set({accessToken:e,idToken:r,name:o,email:a,picture:c})},U=()=>{s.set({})};export{s as a,U as c,m as g,p as s}; diff --git a/ui/assets/local/_app/immutable/chunks/batch-operations.BeHaOhdY.js b/ui/assets/local/_app/immutable/chunks/batch-operations.D8oOXKtp.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/batch-operations.BeHaOhdY.js rename to ui/assets/local/_app/immutable/chunks/batch-operations.D8oOXKtp.js index 1dcc721b6..d18049649 100644 --- a/ui/assets/local/_app/immutable/chunks/batch-operations.BeHaOhdY.js +++ b/ui/assets/local/_app/immutable/chunks/batch-operations.D8oOXKtp.js @@ -1 +1 @@ -import{w as l}from"./entry.DLEzeuD9.js";import{C as y}from"./scheduler.C46pS-76.js";import{A as n}from"./workflow-actions.TBME1SPK.js";import{g as I}from"./auth-user.BOlglCm6.js";import{p as w}from"./persist-store.Bvu2qNDI.js";import{t as T}from"./versions.CeMhowfV.js";import{s as f}from"./parse-with-big-int.BKSBwM2t.js";import{r as c,a as m,i as p}from"./route-for-api.BTloiRV6.js";import{c as h,d as i}from"./screaming-enums.w0zEi9dM.js";const k=e=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},C=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return p(y(T),"1.19")?{...o,executions:t.workflows.map(C)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function S(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const V=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{R({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function R({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:h(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function _(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const N=w("auto-refresh-batch-operation",!1);export{N as a,S as b,V as c,R as d,Q as e,a as i,_ as l}; +import{w as l}from"./entry.kylZibtV.js";import{C as y}from"./scheduler.C46pS-76.js";import{A as n}from"./workflow-actions.TBME1SPK.js";import{g as I}from"./auth-user.CfsLeCYD.js";import{p as w}from"./persist-store.DeOEcwHN.js";import{t as T}from"./versions.BSCVnN4z.js";import{s as f}from"./parse-with-big-int.BKSBwM2t.js";import{r as c,a as m,i as p}from"./route-for-api.DGDQNXtX.js";import{c as h,d as i}from"./screaming-enums.w0zEi9dM.js";const k=e=>e.map(o=>o.runId).reduce((o,r,s,u)=>(o+=`RunId="${r}"`,s!==u.length-1&&(o+=" OR "),o),""),j=(e,t)=>{const o=I().email;switch(e){case n.Cancel:return{cancellationOperation:{identity:o}};case n.Terminate:return{terminationOperation:{identity:o}};case n.Reset:return{resetOperation:{identity:o,options:t==="first"?{firstWorkflowTask:{}}:{lastWorkflowTask:{}},resetType:t==="first"?1:2}}}},C=({id:e,runId:t})=>({workflowId:e,runId:t}),b=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...j(e,t.resetType)};if(t.workflows)return p(y(T),"1.19")?{...o,executions:t.workflows.map(C)}:{...o,visibilityQuery:k(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function S(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Cancel,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}async function Q(e){const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Terminate,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})}const V=async e=>{const t=c("batch-operations",{namespace:e.namespace,batchJobId:e.jobId}),o=b(n.Reset,e);await m(t,{options:{method:"POST",body:f(o)},notifyOnError:!1}),a.set({jobId:o.jobId,namespace:o.namespace})};async function d({namespace:e,jobId:t}){return new Promise((o,r)=>{R({namespace:e,jobId:t}).then(({state:s,completeOperationCount:u})=>{s==="Failed"?r():s!=="Running"?o(u):setTimeout(()=>{try{o(d({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function R({jobId:e,namespace:t},o=fetch){const r=c("batch-operations",{namespace:t,batchJobId:e}),s=await m(r,{request:o});return g(s)}const g=e=>({...e,operationType:h(e.operationType),state:i(e.state),startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt((e==null?void 0:e.totalOperationCount)??"0",10),completeOperationCount:parseInt((e==null?void 0:e.completeOperationCount)??"0",10),failureOperationCount:parseInt((e==null?void 0:e.failureOperationCount)??"0",10)});async function _(e,t=fetch){const o=c("batch-operations.list",{namespace:e,batchJobId:""}),r=await m(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(P):[]}}const P=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:i(e.state)}),a=l();a.subscribe(async e=>{e&&await d(e).then(()=>a.set(void 0))});const N=w("auto-refresh-batch-operation",!1);export{N as a,S as b,V as c,R as d,Q as e,a as i,_ as l}; diff --git a/ui/assets/local/_app/immutable/chunks/button.BpRIS9ld.js b/ui/assets/local/_app/immutable/chunks/button.hs88FdV4.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/button.BpRIS9ld.js rename to ui/assets/local/_app/immutable/chunks/button.hs88FdV4.js index 76fa41218..0348f7e10 100644 --- a/ui/assets/local/_app/immutable/chunks/button.BpRIS9ld.js +++ b/ui/assets/local/_app/immutable/chunks/button.hs88FdV4.js @@ -1 +1 @@ -import{s as de,x as V,i as y,f as z,D as J,z as G,A as ce,B as Q,a as ee,h as q,b as S,j as P,k as j,d as A,E as H,n as B,p as O,F as U,u as te,g as ne,e as le,G as me,H as K,t as ie,l as ae,q as re}from"./scheduler.C46pS-76.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as C,a as D,m as T,d as F}from"./index.dOVbn71B.js";import{g as se}from"./spread.CgU5AtxT.js";import{c as _e}from"./index.Bb4qSo10.js";import{g as pe}from"./entry.DLEzeuD9.js";import{B as oe}from"./badge.jG5hkqHT.js";import{I as L}from"./icon.CfkHLDdJ.js";import{t as W}from"./tw-merge.Ds6tgvmq.js";function he(l){let e,t,i,n,r,u,M,m,o=(l[5]||l[4])&&X(l);const I=l[15].default,k=ee(I,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let a=0;a{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,I,a,a[18],u?le(I,a[18],c,null):ne(a[18]),null),a[6]?s?(s.p(a,c),c&64&&_(s,1)):(s=Y(a),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),a[7]>0?p?(p.p(a,c),c&128&&_(p,1)):(p=Z(a),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:a[3]},(!u||c&256)&&{id:a[8]},{type:"button"},(!u||c&2055&&r!==(r=W(a[12]({variant:a[0],size:a[1],borderRadiusModifier:a[2]}),a[11])))&&{class:r},c&16384&&a[14]]))},i(a){u||(_(o),_(k,a),_(s),_(p),u=!0)},o(a){h(o),h(k,a),h(s),h(p),u=!1},d(a){a&&z(e),o&&o.d(),k&&k.d(a),s&&s.d(),p&&p.d(),M=!1,me(m)}}}function ve(l){let e,t,i,n,r,u,M,m,o,I,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),a=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:M=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?a?(a.p(f,g),g&128&&_(a,1)):(a=x(f),a.c(),_(a,1),a.m(e,null)):a&&(E(),h(a,1,1,()=>{a=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&M!==(M=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:M},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(a),o=!0)},o(f){h(s),h(v,f),h(b),h(a),o=!1},d(f){f&&z(e),s&&s.d(),v&&v.d(f),b&&b.d(),a&&a.d(),I=!1,k()}}}function X(l){let e,t,i;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=q("span"),C(t.$$.fragment),this.h()},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!i||r&16)&&K(e,"animate-spin",n[4])},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function Y(l){let e,t,i;return t=new L({props:{name:l[6]}}),{c(){e=q("span"),C(t.$$.fragment)},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z)},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(i){D(e.$$.fragment,i)},m(i,n){T(e,i,n),t=!0},p(i,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:i}),e.$set(r)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){F(e,i)}}}function ke(l){let e;return{c(){e=ie(l[7])},l(t){e=ae(t,l[7])},m(t,i){y(t,e,i)},p(t,i){i&128&&re(e,t[7])},d(t){t&&z(e)}}}function w(l){let e,t,i;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=q("span"),C(t.$$.fragment),this.h()},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!i||r&16)&&K(e,"animate-spin",n[4])},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function $(l){let e,t,i;return t=new L({props:{name:l[6]}}),{c(){e=q("span"),C(t.$$.fragment)},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z)},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ze]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(i){D(e.$$.fragment,i)},m(i,n){T(e,i,n),t=!0},p(i,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:i}),e.$set(r)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){F(e,i)}}}function ze(l){let e;return{c(){e=ie(l[7])},l(t){e=ae(t,l[7])},m(t,i){y(t,e,i)},p(t,i){i&128&&re(e,t[7])},d(t){t&&z(e)}}}function Ie(l){let e,t,i,n;const r=[ve,he],u=[];function M(m,o){return m[9]&&!m[3]?0:1}return e=M(l),t=u[e]=r[e](l),{c(){t.c(),i=V()},l(m){t.l(m),i=V()},m(m,o){u[e].m(m,o),y(m,i,o),n=!0},p(m,[o]){let I=e;e=M(m),e===I?u[e].p(m,o):(E(),h(u[I],1,1,()=>{u[I]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(i.parentNode,i))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&z(i),u[e].d(m)}}}function Me(l,e,t){const i=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=J(e,i),{$$slots:r={},$$scope:u}=e;const M=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-child]:rounded-l-lg","[.button-group>&:last-child]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:I=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:a=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),pe(c))};function fe(d){Q.call(this,l,d)}function ue(d){Q.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=J(e,i)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,I=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,a=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,I,k,s,p,v,b,a,c,R,f,M,g,n,r,fe,ue,u]}class Pe extends be{constructor(e){super(),ge(this,e,Me,Ie,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{Pe as B}; +import{s as de,x as V,i as y,f as z,D as J,z as G,A as ce,B as Q,a as ee,h as q,b as S,j as P,k as j,d as A,E as H,n as B,p as O,F as U,u as te,g as ne,e as le,G as me,H as K,t as ie,l as ae,q as re}from"./scheduler.C46pS-76.js";import{S as be,i as ge,g as E,b as h,e as N,t as _,c as C,a as D,m as T,d as F}from"./index.dOVbn71B.js";import{g as se}from"./spread.CgU5AtxT.js";import{c as _e}from"./index.Bb4qSo10.js";import{g as pe}from"./entry.kylZibtV.js";import{B as oe}from"./badge.jG5hkqHT.js";import{I as L}from"./icon.CfkHLDdJ.js";import{t as W}from"./tw-merge.Ds6tgvmq.js";function he(l){let e,t,i,n,r,u,M,m,o=(l[5]||l[4])&&X(l);const I=l[15].default,k=ee(I,l,l[18],null);let s=l[6]&&Y(l),p=l[7]>0&&Z(l),v=[{disabled:l[3]},{id:l[8]},{type:"button"},{class:r=W(l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]}),l[11])},l[14]],b={};for(let a=0;a{o=null}),N()),k&&k.p&&(!u||c&262144)&&te(k,I,a,a[18],u?le(I,a[18],c,null):ne(a[18]),null),a[6]?s?(s.p(a,c),c&64&&_(s,1)):(s=Y(a),s.c(),_(s,1),s.m(e,n)):s&&(E(),h(s,1,1,()=>{s=null}),N()),a[7]>0?p?(p.p(a,c),c&128&&_(p,1)):(p=Z(a),p.c(),_(p,1),p.m(e,null)):p&&(E(),h(p,1,1,()=>{p=null}),N()),H(e,b=se(v,[(!u||c&8)&&{disabled:a[3]},(!u||c&256)&&{id:a[8]},{type:"button"},(!u||c&2055&&r!==(r=W(a[12]({variant:a[0],size:a[1],borderRadiusModifier:a[2]}),a[11])))&&{class:r},c&16384&&a[14]]))},i(a){u||(_(o),_(k,a),_(s),_(p),u=!0)},o(a){h(o),h(k,a),h(s),h(p),u=!1},d(a){a&&z(e),o&&o.d(),k&&k.d(a),s&&s.d(),p&&p.d(),M=!1,me(m)}}}function ve(l){let e,t,i,n,r,u,M,m,o,I,k,s=(l[5]||l[4])&&w(l);const p=l[15].default,v=ee(p,l,l[18],null);let b=l[6]&&$(l),a=l[7]>0&&x(l),c=[{href:l[9]},{id:l[8]},{role:"button"},{type:"button"},{target:r=l[10]?"_blank":null},{rel:u=l[10]?"noreferrer":null},{class:M=l[12]({variant:l[0],size:l[1],borderRadiusModifier:l[2]})},{tabindex:m=l[9]?null:0},l[14]],R={};for(let f=0;f{s=null}),N()),v&&v.p&&(!o||g&262144)&&te(v,p,f,f[18],o?le(p,f[18],g,null):ne(f[18]),null),f[6]?b?(b.p(f,g),g&64&&_(b,1)):(b=$(f),b.c(),_(b,1),b.m(e,n)):b&&(E(),h(b,1,1,()=>{b=null}),N()),f[7]>0?a?(a.p(f,g),g&128&&_(a,1)):(a=x(f),a.c(),_(a,1),a.m(e,null)):a&&(E(),h(a,1,1,()=>{a=null}),N()),H(e,R=se(c,[(!o||g&512)&&{href:f[9]},(!o||g&256)&&{id:f[8]},{role:"button"},{type:"button"},(!o||g&1024&&r!==(r=f[10]?"_blank":null))&&{target:r},(!o||g&1024&&u!==(u=f[10]?"noreferrer":null))&&{rel:u},(!o||g&7&&M!==(M=f[12]({variant:f[0],size:f[1],borderRadiusModifier:f[2]})))&&{class:M},(!o||g&512&&m!==(m=f[9]?null:0))&&{tabindex:m},g&16384&&f[14]]))},i(f){o||(_(s),_(v,f),_(b),_(a),o=!0)},o(f){h(s),h(v,f),h(b),h(a),o=!1},d(f){f&&z(e),s&&s.d(),v&&v.d(f),b&&b.d(),a&&a.d(),I=!1,k()}}}function X(l){let e,t,i;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=q("span"),C(t.$$.fragment),this.h()},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!i||r&16)&&K(e,"animate-spin",n[4])},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function Y(l){let e,t,i;return t=new L({props:{name:l[6]}}),{c(){e=q("span"),C(t.$$.fragment)},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z)},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function Z(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ke]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(i){D(e.$$.fragment,i)},m(i,n){T(e,i,n),t=!0},p(i,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:i}),e.$set(r)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){F(e,i)}}}function ke(l){let e;return{c(){e=ie(l[7])},l(t){e=ae(t,l[7])},m(t,i){y(t,e,i)},p(t,i){i&128&&re(e,t[7])},d(t){t&&z(e)}}}function w(l){let e,t,i;return t=new L({props:{name:l[4]?"spinner":l[5]}}),{c(){e=q("span"),C(t.$$.fragment),this.h()},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z),this.h()},h(){K(e,"animate-spin",l[4])},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&48&&(u.name=n[4]?"spinner":n[5]),t.$set(u),(!i||r&16)&&K(e,"animate-spin",n[4])},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function $(l){let e,t,i;return t=new L({props:{name:l[6]}}),{c(){e=q("span"),C(t.$$.fragment)},l(n){e=P(n,"SPAN",{});var r=j(e);D(t.$$.fragment,r),r.forEach(z)},m(n,r){y(n,e,r),T(t,e,null),i=!0},p(n,r){const u={};r&64&&(u.name=n[6]),t.$set(u)},i(n){i||(_(t.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),i=!1},d(n){n&&z(e),F(t)}}}function x(l){let e,t;return e=new oe({props:{class:"badge absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[ze]},$$scope:{ctx:l}}}),{c(){C(e.$$.fragment)},l(i){D(e.$$.fragment,i)},m(i,n){T(e,i,n),t=!0},p(i,n){const r={};n&262272&&(r.$$scope={dirty:n,ctx:i}),e.$set(r)},i(i){t||(_(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){F(e,i)}}}function ze(l){let e;return{c(){e=ie(l[7])},l(t){e=ae(t,l[7])},m(t,i){y(t,e,i)},p(t,i){i&128&&re(e,t[7])},d(t){t&&z(e)}}}function Ie(l){let e,t,i,n;const r=[ve,he],u=[];function M(m,o){return m[9]&&!m[3]?0:1}return e=M(l),t=u[e]=r[e](l),{c(){t.c(),i=V()},l(m){t.l(m),i=V()},m(m,o){u[e].m(m,o),y(m,i,o),n=!0},p(m,[o]){let I=e;e=M(m),e===I?u[e].p(m,o):(E(),h(u[I],1,1,()=>{u[I]=null}),N(),t=u[e],t?t.p(m,o):(t=u[e]=r[e](m),t.c()),_(t,1),t.m(i.parentNode,i))},i(m){n||(_(t),n=!0)},o(m){h(t),n=!1},d(m){m&&z(i),u[e].d(m)}}}function Me(l,e,t){const i=["variant","size","borderRadiusModifier","disabled","loading","leadingIcon","trailingIcon","count","id","href","target","class"];let n=J(e,i),{$$slots:r={},$$scope:u}=e;const M=_e(["relative","flex","w-fit","items-center","justify-center","border-2","gap-2","rounded-lg","disabled:opacity-50","disabled:cursor-not-allowed","border-box","transition-colors","transition-shadow","focus-visible:outline-none","focus-visible:border-inverse","focus-visible:ring-4","whitespace-nowrap","no-underline","[.button-group>&]:rounded-none","[.button-group>&:first-child]:rounded-l-lg","[.button-group>&:last-child]:rounded-r-lg","[.input-group>&]:rounded-none","last:[.input-group>&]:rounded-r","first:[.input-group>&]:rounded-l"],{variants:{variant:{primary:"surface-interactive border-transparent text-white focus-visible:ring-primary/70",secondary:"surface-primary border-subtle focus-visible:ring-primary/70 hover:surface-interactive-secondary focus-visible:surface-interactive-secondary",destructive:"surface-interactive-danger border-transparent focus-visible:ring-danger/70",ghost:"bg-transparent border-transparent text-primary hover:surface-interactive-ghost focus-visible:surface-interactive-ghost focus-visible:ring-primary/70","table-header":"bg-transparent border-transparent text-off-white focus-visible:ring-primary/70 focus-visible:border-transparent"},size:{xs:"h-8 text-xs px-2 py-1",sm:"h-9 text-sm px-4 py-1.5",md:"h-10 text-base px-4 py-2",lg:"h-11 text-lg px-5 py-2.5"},borderRadiusModifier:{square:"rounded-none","square-left":"rounded-l-none","square-right":"rounded-r-none"}},defaultVariants:{variant:"primary",size:"md"}});let{variant:m="primary"}=e,{size:o="md"}=e,{borderRadiusModifier:I=null}=e,{disabled:k=!1}=e,{loading:s=!1}=e,{leadingIcon:p=null}=e,{trailingIcon:v=null}=e,{count:b=0}=e,{id:a=null}=e,{href:c=null}=e,{target:R=null}=e,{class:f=""}=e;const g=d=>{d.button===1||R||d.metaKey||(d.preventDefault(),pe(c))};function fe(d){Q.call(this,l,d)}function ue(d){Q.call(this,l,d)}return l.$$set=d=>{e=G(G({},e),ce(d)),t(14,n=J(e,i)),"variant"in d&&t(0,m=d.variant),"size"in d&&t(1,o=d.size),"borderRadiusModifier"in d&&t(2,I=d.borderRadiusModifier),"disabled"in d&&t(3,k=d.disabled),"loading"in d&&t(4,s=d.loading),"leadingIcon"in d&&t(5,p=d.leadingIcon),"trailingIcon"in d&&t(6,v=d.trailingIcon),"count"in d&&t(7,b=d.count),"id"in d&&t(8,a=d.id),"href"in d&&t(9,c=d.href),"target"in d&&t(10,R=d.target),"class"in d&&t(11,f=d.class),"$$scope"in d&&t(18,u=d.$$scope)},[m,o,I,k,s,p,v,b,a,c,R,f,M,g,n,r,fe,ue,u]}class Pe extends be{constructor(e){super(),ge(this,e,Me,Ie,de,{variant:0,size:1,borderRadiusModifier:2,disabled:3,loading:4,leadingIcon:5,trailingIcon:6,count:7,id:8,href:9,target:10,class:11})}}export{Pe as B}; diff --git a/ui/assets/local/_app/immutable/chunks/code-block.BkCXXL0z.js b/ui/assets/local/_app/immutable/chunks/code-block.DGWayI9q.js similarity index 60% rename from ui/assets/local/_app/immutable/chunks/code-block.BkCXXL0z.js rename to ui/assets/local/_app/immutable/chunks/code-block.DGWayI9q.js index 49f812819..2b05e45b5 100644 --- a/ui/assets/local/_app/immutable/chunks/code-block.BkCXXL0z.js +++ b/ui/assets/local/_app/immutable/chunks/code-block.DGWayI9q.js @@ -1,14 +1,14 @@ -import{s as za,z as Us,h as gr,b as Wa,j as mr,k as yr,f as vs,d as ja,E as br,H as Pe,m as qa,i as Ka,n as wr,D as kr,r as Ua,c as Ga,V as Qa,A as xr,N as Ja}from"./scheduler.C46pS-76.js";import{S as Ya,i as _a,t as ji,g as $a,b as Gs,e as Xa,c as Za,a as tf,m as ef,d as sf}from"./index.dOVbn71B.js";import{g as nf}from"./spread.CgU5AtxT.js";import{B as rf}from"./button.C_N-TSlx.js";import{c as of}from"./copy-to-clipboard.Dh7E1aVf.js";import{p as lf,s as hf}from"./parse-with-big-int.BKSBwM2t.js";import{c as tt}from"./icon.CfkHLDdJ.js";class V{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=Fe(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),zt.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=Fe(this,t,e);let i=[];return this.decompose(t,e,i,0),zt.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new ii(this),r=new ii(t);for(let o=e,l=e;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(t=1){return new ii(this,t)}iterRange(t,e=this.length){return new cl(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new ul(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?V.empty:t.length<=32?new Y(t):zt.from(Y.split(t,[]))}}class Y extends V{constructor(t,e=af(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((e?i:l)>=t)return new ff(s,l,i,o);s=l+1,i++}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new Y(Sr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(s&1){let o=i.pop(),l=qi(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new Y(l,o.length+r.length));else{let h=l.length>>1;i.push(new Y(l.slice(0,h)),new Y(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof Y))return super.replace(t,e,i);[t,e]=Fe(this,t,e);let s=qi(this.text,qi(i.text,Sr(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new Y(s,r):zt.from(Y.split(s,[]),r)}sliceString(t,e=this.length,i=` -`){[t,e]=Fe(this,t,e);let s="";for(let r=0,o=0;r<=e&&ot&&o&&(s+=i),tr&&(s+=l.slice(Math.max(0,t-r),e-r)),r=h+1}return s}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],s=-1;for(let r of t)i.push(r),s+=r.length+1,i.length==32&&(e.push(new Y(i,s)),i=[],s=-1);return s>-1&&e.push(new Y(i,s)),e}}class zt extends V{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,h=i+o.lines-1;if((e?h:l)>=t)return o.lineInner(t,e,i,s);s=l+1,i=h+1}}decompose(t,e,i,s){for(let r=0,o=0;o<=e&&r=o){let a=s&((o<=t?1:0)|(h>=e?2:0));o>=t&&h<=e&&!a?i.push(l):l.decompose(t-o,e-o,i,a)}o=h+1}}replace(t,e,i){if([t,e]=Fe(this,t,e),i.lines=r&&e<=l){let h=o.replace(t-r,e-r,i),a=this.lines-o.lines+h.lines;if(h.lines>4&&h.lines>a>>6){let f=this.children.slice();return f[s]=h,new zt(f,this.length-(e-t)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` -`){[t,e]=Fe(this,t,e);let s="";for(let r=0,o=0;rt&&r&&(s+=i),to&&(s+=l.sliceString(t-o,e-o,i)),o=h+1}return s}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof zt))return 0;let i=0,[s,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=e,r+=e){if(s==o||r==l)return i;let h=this.children[s],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new Y(d,e)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],h=0,a=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof zt)for(let g of d.children)c(g);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof Y&&h&&(p=f[f.length-1])instanceof Y&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new Y(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>s&&u(),h+=d.lines,a+=d.length+1,f.push(d))}function u(){h!=0&&(l.push(f.length==1?f[0]:zt.from(f,a)),a=-1,h=f.length=0)}for(let d of t)c(d);return u(),l.length==1?l[0]:new zt(l,e)}}V.empty=new Y([""],0);function af(n){let t=-1;for(let e of n)t+=e.length+1;return t}function qi(n,t,e=0,i=1e9){for(let s=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-s)),s0?1:(t instanceof Y?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof Y?s.text.length:s.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(s instanceof Y){let h=s.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=s.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof Y?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class cl{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new ii(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*e,this.value=s.length<=i?s:e<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class ul{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:s}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(V.prototype[Symbol.iterator]=function(){return this.iter()},ii.prototype[Symbol.iterator]=cl.prototype[Symbol.iterator]=ul.prototype[Symbol.iterator]=function(){return this});class ff{constructor(t,e,i,s){this.from=t,this.to=e,this.number=i,this.text=s}get length(){return this.to-this.from}}function Fe(n,t,e){return t=Math.max(0,Math.min(n.length,t)),[t,Math.max(t,Math.min(n.length,e))]}let Re="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;nn)return Re[t-1]<=n;return!1}function vr(n){return n>=127462&&n<=127487}const Cr=8205;function ht(n,t,e=!0,i=!0){return(e?dl:uf)(n,t,i)}function dl(n,t,e){if(t==n.length)return t;t&&pl(n.charCodeAt(t))&&gl(n.charCodeAt(t-1))&&t--;let i=mt(n,t);for(t+=Wt(i);t=0&&vr(mt(n,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function uf(n,t,e){for(;t>0;){let i=dl(n,t-2,e);if(i=56320&&n<57344}function gl(n){return n>=55296&&n<56320}function mt(n,t){let e=n.charCodeAt(t);if(!gl(e)||t+1==n.length)return e;let i=n.charCodeAt(t+1);return pl(i)?(e-55296<<10)+(i-56320)+65536:e}function ml(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function Wt(n){return n<65536?1:2}const Qs=/\r\n?|\n/;var dt=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(dt||(dt={}));class Kt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-s);r+=l}else{if(i!=dt.Simple&&a>=t&&(i==dt.TrackDel&&st||i==dt.TrackBefore&&st))return null;if(a>t||a==t&&e<0&&!l)return t==s||e<0?r:r+h;r+=h}s=a}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return r}touchesRange(t,e=t){for(let i=0,s=0;i=0&&s<=e&&l>=t)return se?"cover":!0;s=l}return!1}toString(){let t="";for(let e=0;e=0?":"+s:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Kt(t)}static create(t){return new Kt(t)}}class X extends Kt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Js(this,(e,i,s,r,o)=>t=t.replace(s,s+(i-e),o),!1),t}mapDesc(t,e=!1){return Ys(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let s=0,r=0;s=0){e[s]=l,e[s+1]=o;let h=s>>1;for(;i.length0&&ne(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let s=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!s.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?V.of(d.split(i||Qs)):d:V.empty,g=p.length;if(c==u&&g==0)return;co&&ot(s,c-o,-1),ot(s,u-c,g),ne(r,s,p),o=u}}return a(t),h(!l),l}static empty(t){return new X(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==n[s+1]?n[s]+=t:t==0&&n[s]==0?n[s+1]+=e:i?(n[s]+=t,n[s+1]+=e):n.push(t,e)}function ne(n,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],h=n.sections[o++];t(s,a,r,f,c),s=a,r=f}}}function Ys(n,t,e,i=!1){let s=[],r=i?[]:null,o=new oi(n),l=new oi(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);ot(s,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);a+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class oi{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?V.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?V.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class ye{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,s;return this.empty?i=s=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new ye(i,s,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return w.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return w.range(this.anchor,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return w.range(t.anchor,t.head)}static create(t,e,i){return new ye(t,e,i)}}class w{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:w.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;it.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new w(t.ranges.map(e=>ye.fromJSON(e)),t.main)}static single(t,e=t){return new w([w.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;st?8:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((s,r)=>s.from-r.from),e=t.indexOf(i);for(let s=1;sr.head?w.range(h,l):w.range(l,h))}}return new w(t,e)}}function bl(n,t){for(let e of n.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let Hn=0;class P{constructor(t,e,i,s,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=s,this.id=Hn++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(t={}){return new P(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:zn),!!t.static,t.enables)}of(t){return new Ki([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ki(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Ki(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function zn(n,t){return n==t||n.length==t.length&&n.every((e,i)=>e===t[i])}class Ki{constructor(t,e,i,s){this.dependencies=t,this.facet=e,this.type=i,this.value=s,this.id=Hn++}dynamicSlot(t){var e;let i=this.value,s=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let c of this.dependencies)c=="doc"?h=!0:c=="selection"?a=!0:((e=t[c.id])!==null&&e!==void 0?e:1)&1||f.push(t[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||_s(c,f)){let d=i(c);if(l?!Ar(d,c.values[o],s):!s(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let g=Xi(u,p);if(this.dependencies.every(m=>m instanceof P?u.facet(m)===c.facet(m):m instanceof Tt?u.field(m,!1)==c.field(m,!1):!0)||(l?Ar(d=i(c),g,s):s(d=i(c),g)))return c.values[o]=g,0}else d=i(c);return c.values[o]=d,1}}}}function Ar(n,t,e){if(n.length!=t.length)return!1;for(let i=0;in[h.id]),s=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=n[t.id]>>1;function l(h){let a=[];for(let f=0;fi===s),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(Or).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,s)=>{let r=i.values[e],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[e]=s.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,Or.of({field:this,create:t})]}get extension(){return this}}const me={lowest:4,low:3,default:2,high:1,highest:0};function Qe(n){return t=>new wl(t,n)}const mi={highest:Qe(me.highest),high:Qe(me.high),default:Qe(me.default),low:Qe(me.low),lowest:Qe(me.lowest)};class wl{constructor(t,e){this.inner=t,this.prec=e}}class gs{of(t){return new $s(this,t)}reconfigure(t){return gs.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class $s{constructor(t,e){this.compartment=t,this.inner=e}}class $i{constructor(t,e,i,s,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let s=[],r=Object.create(null),o=new Map;for(let u of pf(t,e,o))u instanceof Tt?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of s)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=f&&f[u]||[];if(d.every(m=>m.type==0))if(l[p.id]=h.length<<1|1,zn(g,d))h.push(i.facet(p));else{let m=p.combine(d.map(y=>y.value));h.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(l[m.id]=h.length<<1|1,h.push(m.value)):(l[m.id]=a.length<<1,a.push(y=>m.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(m=>df(m,p,d))}}let c=a.map(u=>u(l));return new $i(t,o,c,l,h,r)}}function pf(n,t,e){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let h=s.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof $s&&e.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof $s){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof wl)r(o.inner,o.prec);else if(o instanceof Tt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Ki)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,me.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(n,me.default),i.reduce((o,l)=>o.concat(l))}function si(n,t){if(t&1)return 2;let e=t>>1,i=n.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[e]=4;let s=n.computeSlot(n,n.config.dynamicSlots[e]);return n.status[e]=2|s}function Xi(n,t){return t&1?n.config.staticValues[t>>1]:n.values[t>>1]}const kl=P.define(),Xs=P.define({combine:n=>n.some(t=>t),static:!0}),xl=P.define({combine:n=>n.length?n[0]:void 0,static:!0}),Sl=P.define(),vl=P.define(),Cl=P.define(),Al=P.define({combine:n=>n.length?n[0]:!1});class Xt{constructor(t,e){this.type=t,this.value=e}static define(){return new gf}}class gf{of(t){return new Xt(this,t)}}class mf{constructor(t){this.map=t}of(t){return new j(this,t)}}class j{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new j(this.type,e)}is(t){return this.type==t}static define(t={}){return new mf(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let s of t){let r=s.map(e);r&&i.push(r)}return i}}j.reconfigure=j.define();j.appendConfig=j.define();class Z{constructor(t,e,i,s,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&bl(i,e.newLength),r.some(l=>l.type==Z.time)||(this.annotations=r.concat(Z.time.of(Date.now())))}static create(t,e,i,s,r,o){return new Z(t,e,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Z.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}Z.time=Xt.define();Z.userEvent=Xt.define();Z.addToHistory=Xt.define();Z.remote=Xt.define();function yf(n,t){let e=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof Z?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Z?n=r[0]:n=Ml(t,Ee(r),!1)}return n}function wf(n){let t=n.startState,e=t.facet(Cl),i=n;for(let s=e.length-1;s>=0;s--){let r=e[s](n);r&&Object.keys(r).length&&(i=Ol(i,Zs(t,r,n.changes.newLength),!0))}return i==n?n:Z.create(t,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const kf=[];function Ee(n){return n==null?kf:Array.isArray(n)?n:[n]}var xt=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(xt||(xt={}));const xf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let tn;try{tn=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Sf(n){if(tn)return tn.test(n);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||xf.test(e)))return!0}return!1}function vf(n){return t=>{if(!/\S/.test(t))return xt.Space;if(Sf(t))return xt.Word;for(let e=0;e-1)return xt.Word;return xt.Other}}class N{constructor(t,e,i,s,r,o){this.config=t,this.doc=e,this.selection=i,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(a,h)),e=null),s.set(l.value.compartment,l.value.extension)):l.is(j.reconfigure)?(e=null,i=l.value):l.is(j.appendConfig)&&(e=null,i=Ee(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=$i.resolve(i,s,this),r=new N(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(h,a)=>a.reconfigure(h,this),null).values);let o=t.startState.facet(Xs)?t.newSelection:t.newSelection.asSingle();new N(e,t.newDoc,o,r,(l,h)=>h.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:w.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Ee(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return N.create({doc:t.doc,selection:w.fromJSON(t.selection),extensions:e.extensions?s.concat([e.extensions]):s})}static create(t={}){let e=$i.resolve(t.extensions||[],new Map),i=t.doc instanceof V?t.doc:V.of((t.doc||"").split(e.staticFacet(N.lineSeparator)||Qs)),s=t.selection?t.selection instanceof w?t.selection:w.single(t.selection.anchor,t.selection.head):w.single(0);return bl(s,i.length),e.staticFacet(Xs)||(s=s.asSingle()),new N(e,i,s,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(N.tabSize)}get lineBreak(){return this.facet(N.lineSeparator)||` -`}get readOnly(){return this.facet(Al)}phrase(t,...e){for(let i of this.facet(N.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>e.length?i:e[r-1]})),t}languageDataAt(t,e,i=-1){let s=[];for(let r of this.facet(kl))for(let o of r(this,e,i))Object.prototype.hasOwnProperty.call(o,t)&&s.push(o[t]);return s}charCategorizer(t){return vf(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:s}=this.doc.lineAt(t),r=this.charCategorizer(t),o=t-i,l=t-i;for(;o>0;){let h=ht(e,o,!1);if(r(e.slice(h,o))!=xt.Word)break;o=h}for(;ln.length?n[0]:4});N.lineSeparator=xl;N.readOnly=Al;N.phrases=P.define({compare(n,t){let e=Object.keys(n),i=Object.keys(t);return e.length==i.length&&e.every(s=>n[s]==t[s])}});N.languageData=kl;N.changeFilter=Sl;N.transactionFilter=vl;N.transactionExtender=Cl;gs.reconfigure=j.define();function ms(n,t,e={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(e,r))i[r]=e[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in t)i[s]===void 0&&(i[s]=t[s]);return i}class Se{eq(t){return this==t}range(t,e=t){return en.create(t,e,this)}}Se.prototype.startSide=Se.prototype.endSide=0;Se.prototype.point=!1;Se.prototype.mapMode=dt.TrackDel;let en=class Tl{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(t,e,i){return new Tl(t,e,i)}};function sn(n,t){return n.from-t.from||n.value.startSide-t.value.startSide}class Wn{constructor(t,e,i,s){this.from=t,this.to=e,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let h=o+l>>1,a=r[h]-t||(i?this.value[h].endSide:this.value[h].startSide)-e;if(h==o)return a>=0?o:l;a>=0?l=h:o=h+1}}between(t,e,i,s){for(let r=this.findIndex(e,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&a.startSide>0&&a.endSide<=0)continue;(d-u||a.endSide-a.startSide)<0||(o<0&&(o=u),a.point&&(l=Math.max(l,d-u)),i.push(a),s.push(u-o),r.push(d-o))}return{mapped:i.length?new Wn(s,r,i,l):null,pos:o}}}class L{constructor(t,e,i,s){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=s}static create(t,e,i,s){return new L(t,e,i,s)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=t,o=t.filter;if(e.length==0&&!o)return this;if(i&&(e=e.slice().sort(sn)),this.isEmpty)return e.length?L.of(e):this;let l=new Pl(this,null,-1).goto(0),h=0,a=[],f=new He;for(;l.value||h=0){let c=e[h++];f.addInner(c.from,c.to,c.value)||a.push(c)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&t<=r+o.length&&o.between(r,t-r,e-r,i)===!1)return}this.nextLayer.between(t,e,i)}}iter(t=0){return li.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return li.from(t).goto(e)}static compare(t,e,i,s,r=-1){let o=t.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),l=e.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),h=Mr(o,l,i),a=new Je(o,h,r),f=new Je(l,h,r);i.iterGaps((c,u,d)=>Tr(a,c,f,u,d,s)),i.empty&&i.length==0&&Tr(a,0,f,0,0,s)}static eq(t,e,i=0,s){s==null&&(s=999999999);let r=t.filter(f=>!f.isEmpty&&e.indexOf(f)<0),o=e.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=Mr(r,o),h=new Je(r,l,0).goto(i),a=new Je(o,l,0).goto(i);for(;;){if(h.to!=a.to||!nn(h.active,a.active)||h.point&&(!a.point||!h.point.eq(a.point)))return!1;if(h.to>s)return!0;h.next(),a.next()}}static spans(t,e,i,s,r=-1){let o=new Je(t,null,r).goto(e),l=e,h=o.openStart;for(;;){let a=Math.min(o.to,i);if(o.point){let f=o.activeForPoint(o.to),c=o.pointFroml&&(s.span(l,a,o.active,h),h=o.openEnd(a));if(o.to>i)return h+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(t,e=!1){let i=new He;for(let s of t instanceof en?[t]:e?Cf(t):t)i.add(s.from,s.to,s.value);return i.finish()}static join(t){if(!t.length)return L.empty;let e=t[t.length-1];for(let i=t.length-2;i>=0;i--)for(let s=t[i];s!=L.empty;s=s.nextLayer)e=new L(s.chunkPos,s.chunk,e,Math.max(s.maxPoint,e.maxPoint));return e}}L.empty=new L([],[],null,-1);function Cf(n){if(n.length>1)for(let t=n[0],e=1;e0)return n.slice().sort(sn);t=i}return n}L.empty.nextLayer=L.empty;class He{finishChunk(t){this.chunks.push(new Wn(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new He)).add(t,e,i)}addInner(t,e,i){let s=t-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(L.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=L.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Mr(n,t,e){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new Pl(o,e,i,r));return s.length==1?s[0]:new li(s)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)Cs(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)Cs(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),Cs(this.heap,0)}}}function Cs(n,t){for(let e=n[t];;){let i=(t<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),e.compare(s)<0)break;n[i]=e,n[t]=s,t=i}}class Je{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=li.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Si(this.active,t),Si(this.activeTo,t),Si(this.activeRank,t),this.minActive=Pr(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:s,rank:r}=this.cursor;for(;e0;)e++;vi(this.active,e,i),vi(this.activeTo,e,s),vi(this.activeRank,e,r),t&&vi(t,e,this.cursor.from),this.minActive=Pr(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>t){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&Si(i,s)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function Tr(n,t,e,i,s,r){n.goto(t),e.goto(i);let o=i+s,l=i,h=i-t;for(;;){let a=n.to+h-e.to||n.endSide-e.endSide,f=a<0?n.to+h:e.to,c=Math.min(f,o);if(n.point||e.point?n.point&&e.point&&(n.point==e.point||n.point.eq(e.point))&&nn(n.activeForPoint(n.to),e.activeForPoint(e.to))||r.comparePoint(l,c,n.point,e.point):c>l&&!nn(n.active,e.active)&&r.compareRange(l,c,n.active,e.active),f>o)break;l=f,a<=0&&n.next(),a>=0&&e.next()}}function nn(n,t){if(n.length!=t.length)return!1;for(let e=0;e=t;i--)n[i+1]=n[i];n[t]=e}function Pr(n,t){let e=-1,i=1e9;for(let s=0;s=t)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?e-r%e:1,s=ht(n,s)}return i===!0?-1:n.length}const rn="ͼ",Dr=typeof Symbol>"u"?"__"+rn:Symbol.for(rn),on=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Br=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};let ze=class{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(g=>o.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(s(o),t[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=Br[Dr]||1;return Br[Dr]=t+1,rn+t.toString(36)}static mount(t,e,i){let s=t[on],r=i&&i.nonce;s?r&&s.setNonce(r):s=new Of(t,r),s.mount(Array.isArray(e)?e:[e],t)}},Rr=new Map,Of=class{constructor(t,e){let i=t.ownerDocument||t,s=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&s.CSSStyleSheet){let r=Rr.get(i);if(r)return t[on]=r;this.sheet=new s.CSSStyleSheet,Rr.set(i,this)}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[on]=this}mount(t,e){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(h,1),r--,h=-1),h==-1){if(this.modules.splice(r++,0,l),i)for(let a=0;a",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Er=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Mf=typeof navigator<"u"&&/Mac/.test(navigator.platform),Tf=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Pf=Mf||Er&&+Er[1]<57;for(var st=0;st<10;st++)he[48+st]=he[96+st]=String(st);for(var st=1;st<=24;st++)he[st+111]="F"+st;for(var st=65;st<=90;st++)he[st]=String.fromCharCode(st+32),hi[st]=String.fromCharCode(st);for(var As in he)hi.hasOwnProperty(As)||(hi[As]=he[As]);function Df(n){var t=Pf&&(n.ctrlKey||n.altKey||n.metaKey)||Tf&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",e=!t&&n.key||(n.shiftKey?hi:he)[n.keyCode]||n.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function ai(n){let t;return n.nodeType==11?t=n.getSelection?n:n.ownerDocument:t=n,t.getSelection()}function ln(n,t){return t?n==t||n.contains(t.nodeType!=1?t.parentNode:t):!1}function Bf(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Ui(n,t){if(!t.anchorNode)return!1;try{return ln(n,t.anchorNode)}catch{return!1}}function fi(n){return n.nodeType==3?Ce(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function ni(n,t,e,i){return e?Ir(n,t,e,i,-1)||Ir(n,t,e,i,1):!1}function ve(n){for(var t=0;;t++)if(n=n.previousSibling,!n)return t}function Zi(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Ir(n,t,e,i,s){for(;;){if(n==e&&t==i)return!0;if(t==(s<0?0:_t(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;t=ve(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[t+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;t=s<0?_t(n):0}else return!1}}function _t(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function qn(n,t){let e=t?n.left:n.right;return{left:e,right:e,top:n.top,bottom:n.bottom}}function Rf(n){let t=n.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Dl(n,t){let e=t.width/n.offsetWidth,i=t.height/n.offsetHeight;return(e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-n.offsetWidth)<1)&&(e=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-n.offsetHeight)<1)&&(i=1),{scaleX:e,scaleY:i}}function Ef(n,t,e,i,s,r,o,l){let h=n.ownerDocument,a=h.defaultView||window;for(let f=n,c=!1;f&&!c;)if(f.nodeType==1){let u,d=f==h.body,p=1,g=1;if(d)u=Rf(a);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(c=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let b=f.getBoundingClientRect();({scaleX:p,scaleY:g}=Dl(f,b)),u={left:b.left,right:b.left+f.clientWidth*p,top:b.top,bottom:b.top+f.clientHeight*g}}let m=0,y=0;if(s=="nearest")t.top0&&t.bottom>u.bottom+y&&(y=t.bottom-u.bottom+y+o)):t.bottom>u.bottom&&(y=t.bottom-u.bottom+o,e<0&&t.top-y0&&t.right>u.right+m&&(m=t.right-u.right+m+r)):t.right>u.right&&(m=t.right-u.right+r,e<0&&t.lefts.clientHeight&&(i=s),!e&&s.scrollWidth>s.clientWidth&&(e=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:e,y:i}}class Nf{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?_t(e):0),i,Math.min(t.focusOffset,i?_t(i):0))}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let De=null;function Bl(n){if(n.setActive)return n.setActive();if(De)return n.focus(De);let t=[];for(let e=n;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(n.focus(De==null?{get preventScroll(){return De={preventScroll:!0},!0}}:void 0),!De){De=!1;for(let e=0;eMath.max(1,n.scrollHeight-n.clientHeight-4)}function Il(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&i>0)return{node:e,offset:i};if(e.nodeType==1&&i>0){if(e.contentEditable=="false")return null;e=e.childNodes[i-1],i=_t(e)}else if(e.parentNode&&!Zi(e))i=ve(e),e=e.parentNode;else return null}}function Nl(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&ie)return c.domBoundsAround(t,e,a);if(u>=t&&s==-1&&(s=h,r=a),a>e&&c.dom.parentNode==this.dom){o=h,l=f;break}f=u,a=u+c.breakAfter}return{from:r,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),e.flags&1)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Kn){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Vl(n,t,e,i,s,r,o,l,h){let{children:a}=n,f=a.length?a[t]:null,c=r.length?r[r.length-1]:null,u=c?c.breakAfter:o;if(!(t==i&&f&&!o&&!u&&r.length<2&&f.merge(e,s,r.length?c:null,e==0,l,h))){if(i0&&(!o&&r.length&&f.merge(e,f.length,r[0],!1,l,0)?f.breakAfter=r.shift().breakAfter:(e2);var C={mac:Hr||/Mac/.test(ct.platform),windows:/Win/.test(ct.platform),linux:/Linux|X11/.test(ct.platform),ie:ys,ie_version:Hl?hn.documentMode||6:fn?+fn[1]:an?+an[1]:0,gecko:Vr,gecko_version:Vr?+(/Firefox\/(\d+)/.exec(ct.userAgent)||[0,0])[1]:0,chrome:!!Os,chrome_version:Os?+Os[1]:0,ios:Hr,android:/Android\b/.test(ct.userAgent),webkit:Fr,safari:zl,webkit_version:Fr?+(/\bAppleWebKit\/(\d+)/.exec(ct.userAgent)||[0,0])[1]:0,tabSize:hn.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const Ff=256;class Bt extends W{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,e,i){return this.flags&8||i&&(!(i instanceof Bt)||this.length-(e-t)+i.length>Ff||i.flags&8)?!1:(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new Bt(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=this.flags&8,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new lt(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return Hf(this.dom,t,e)}}class $t extends W{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){if(Rl(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,s,r,o){return i&&(!(i instanceof $t&&i.mark.eq(this.mark))||t&&r<=0||et&&e.push(i=t&&(s=r),i=h,r++}let o=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new $t(this.mark,e,o)}domAtPos(t){return Wl(this,t)}coordsAt(t,e){return ql(this,t,e)}}function Hf(n,t,e){let i=n.nodeValue.length;t>i&&(t=i);let s=t,r=t,o=0;t==0&&e<0||t==i&&e>=0?C.chrome||C.gecko||(t?(s--,o=1):r=0)?0:l.length-1];return C.safari&&!o&&h.width==0&&(h=Array.prototype.find.call(l,a=>a.width)||h),o?qn(h,o<0):h||null}class be extends W{static create(t,e,i){return new be(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=be.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,i,s,r,o){return i&&(!(i instanceof be)||!this.widget.compare(i.widget)||t>0&&r<=0||e0)?lt.before(this.dom):lt.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),r=null;if(!s.length)return null;let o=this.side?this.side<0:t>0;for(let l=o?s.length-1:0;r=s[l],!(t>0?l==0:l==s.length-1||r.top0?lt.before(this.dom):lt.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return V.empty}get isHidden(){return!0}}Bt.prototype.children=be.prototype.children=We.prototype.children=Kn;function Wl(n,t){let e=n.dom,{children:i}=n,s=0;for(let r=0;sr&&t0;r--){let o=i[r-1];if(o.dom.parentNode==e)return o.domAtPos(o.length)}for(let r=s;r0&&t instanceof $t&&s.length&&(i=s[s.length-1])instanceof $t&&i.mark.eq(t.mark)?jl(i,t.children[0],e-1):(s.push(t),t.setParent(n)),n.length+=t.length}function ql(n,t,e){let i=null,s=-1,r=null,o=-1;function l(a,f){for(let c=0,u=0;c=f&&(d.children.length?l(d,f-u):(!r||r.isHidden&&e>0)&&(p>f||u==p&&d.getSide()>0)?(r=d,o=f-u):(u-1?1:0)!=s.length-(e&&s.indexOf(e)>-1?1:0))return!1;for(let r of i)if(r!=e&&(s.indexOf(r)==-1||n[r]!==t[r]))return!1;return!0}function un(n,t,e){let i=!1;if(t)for(let s in t)e&&s in e||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(e)for(let s in e)t&&t[s]==e[s]||(i=!0,s=="style"?n.style.cssText=e[s]:n.setAttribute(s,e[s]));return i}function Wf(n){let t=Object.create(null);for(let e=0;e0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){ts(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){jl(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=cn(e,this.attrs||{})),i&&(this.attrs=cn({class:i},this.attrs||{}))}domAtPos(t){return Wl(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?this.flags&4&&(Rl(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(un(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let s=this.dom.lastChild;for(;s&&W.get(s)instanceof $t;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=W.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!C.ios||!this.children.some(r=>r instanceof Bt))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof Bt)||/[^ -~]/.test(i.text))return null;let s=fi(i.dom);if(s.length!=1)return null;t+=s[0].width,e=s[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let i=ql(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,r=i.bottom-i.top;if(Math.abs(r-s.lineHeight)<2&&s.textHeight=e){if(r instanceof $)return r;if(o>e)break}s=o+r.breakAfter}return null}}class Yt extends W{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,r,o){return i&&(!(i instanceof Yt)||!this.widget.compare(i.widget)||t>0&&r<=0||e0}}class yi{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Ct=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(Ct||(Ct={}));class K extends Se{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new bi(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new ae(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=Kl(t,e);i=(r?e?-3e8:-1:5e8)-1,s=(o?e?2e8:1:-6e8)+1}return new ae(t,i,s,e,t.widget||null,!0)}static line(t){return new wi(t)}static set(t,e=!1){return L.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}K.none=L.empty;class bi extends K{constructor(t){let{start:e,end:i}=Kl(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof bi&&this.tagName==t.tagName&&(this.class||((e=this.attrs)===null||e===void 0?void 0:e.class))==(t.class||((i=t.attrs)===null||i===void 0?void 0:i.class))&&ts(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}bi.prototype.point=!1;class wi extends K{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof wi&&this.spec.class==t.spec.class&&ts(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}wi.prototype.mapMode=dt.TrackBefore;wi.prototype.point=!0;class ae extends K{constructor(t,e,i,s,r,o){super(e,i,r,t),this.block=s,this.isReplace=o,this.mapMode=s?e<=0?dt.TrackBefore:dt.TrackAfter:dt.TrackDel}get type(){return this.startSide!=this.endSide?Ct.WidgetRange:this.startSide<=0?Ct.WidgetBefore:Ct.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof ae&&jf(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}ae.prototype.point=!0;function Kl(n,t=!1){let{inclusiveStart:e,inclusiveEnd:i}=n;return e==null&&(e=n.inclusive),i==null&&(i=n.inclusive),{start:e??t,end:i??t}}function jf(n,t){return n==t||!!(n&&t&&n.compare(t))}function dn(n,t,e,i=0){let s=e.length-1;s>=0&&e[s]+i>=n?e[s]=Math.max(e[s],t):e.push(n,t)}class ri{constructor(t,e,i,s){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Yt&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new $),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Ci(new We(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Yt)&&this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=r,this.textOff=0}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Ci(new Bt(this.text.slice(this.textOff,this.textOff+s)),e),i),this.atCursorPos=!0,this.textOff+=s,t-=s,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof ae){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=e-t;if(i instanceof ae)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Yt(i.widget||je.block,l,i));else{let h=be.create(i.widget||je.inline,l,l?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&r<=s.length&&(t0),f=!h.isEditable&&(ts.length||i.startSide<=0),c=this.getLine();this.pendingBuffer==2&&!a&&!h.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),a&&(c.append(Ci(new We(1),s),r),r=s.length+Math.max(0,r-s.length)),c.append(Ci(h,s),r),this.atCursorPos=f,this.pendingBuffer=f?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=r)}static build(t,e,i,s,r){let o=new ri(t,e,i,r);return o.openEnd=L.spans(s,e,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Ci(n,t){for(let e of t)n=new $t(e,[n],n.length);return n}class je extends yi{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}je.inline=new je("span");je.block=new je("div");var _=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(_||(_={}));const Ae=_.LTR,Un=_.RTL;function Ul(n){let t=[];for(let e=0;e=e){if(l.level==i)return o;(r<0||(s!=0?s<0?l.frome:t[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function Ql(n,t){if(n.length!=t.length)return!1;for(let e=0;e=0;g-=3)if(Nt[g+1]==-d){let m=Nt[g+2],y=m&2?s:m&4?m&1?r:s:0;y&&(z[c]=z[Nt[g]]=y),l=g;break}}else{if(Nt.length==189)break;Nt[l++]=c,Nt[l++]=u,Nt[l++]=h}else if((p=z[c])==2||p==1){let g=p==s;h=g?0:1;for(let m=l-3;m>=0;m-=3){let y=Nt[m+2];if(y&2)break;if(g)Nt[m+2]|=2;else{if(y&4)break;Nt[m+2]|=4}}}}}function Jf(n,t,e,i){for(let s=0,r=i;s<=e.length;s++){let o=s?e[s-1].to:n,l=sh;)p==m&&(p=e[--g].from,m=g?e[g-1].to:n),z[--p]=d;h=f}else r=a,h++}}}function gn(n,t,e,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let h=t,a=0;hh&&o.push(new re(h,g.from,d));let m=g.direction==Ae!=!(d%2);mn(n,m?i+1:i,s,g.inner,g.from,g.to,o),h=g.to}p=g.to}else{if(p==e||(f?z[p]!=l:z[p]==l))break;p++}u?gn(n,h,p,i+1,s,u,o):ht;){let f=!0,c=!1;if(!a||h>r[a-1].to){let g=z[h-1];g!=l&&(f=!1,c=g==16)}let u=!f&&l==1?[]:null,d=f?i:i+1,p=h;t:for(;;)if(a&&p==r[a-1].to){if(c)break t;let g=r[--a];if(!f)for(let m=g.from,y=a;;){if(m==t)break t;if(y&&r[y-1].to==m)m=r[--y].from;else{if(z[m-1]==l)break t;break}}if(u)u.push(g);else{g.toz.length;)z[z.length]=256;let i=[],s=t==Ae?0:1;return mn(n,s,s,e,0,n.length,i),i}function Jl(n){return[new re(0,n,0)]}let Yl="";function _f(n,t,e,i,s){var r;let o=i.head-n.from,l=re.find(t,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),h=t[l],a=h.side(s,e);if(o==a){let u=l+=s?1:-1;if(u<0||u>=t.length)return null;h=t[l=u],o=h.side(!s,e),a=h.side(s,e)}let f=ht(n.text,o,h.forward(s,e));(fh.to)&&(f=a),Yl=n.text.slice(Math.min(o,f),Math.max(o,f));let c=l==(s?t.length-1:0)?null:t[l+(s?1:-1)];return c&&f==a&&c.level+(s?0:1)n.some(t=>t)}),Xf=P.define({combine:n=>n.some(t=>t)}),sh=P.define();class Ne{constructor(t,e="nearest",i="nearest",s=5,r=5,o=!1){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(t){return t.empty?this:new Ne(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Ne(w.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Ai=j.define({map:(n,t)=>n.map(t)}),nh=j.define();function bt(n,t,e){let i=n.facet(Zl);i.length?i[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const ie=P.define({combine:n=>n.length?n[0]:!0});let Zf=0;const Xe=P.define();class Rt{constructor(t,e,i,s,r){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=s,this.extension=r(this)}static define(t,e){const{eventHandlers:i,eventObservers:s,provide:r,decorations:o}=e||{};return new Rt(Zf++,t,i,s,l=>{let h=[Xe.of(l)];return o&&h.push(ci.of(a=>{let f=a.plugin(l);return f?o(f):K.none})),r&&h.push(r(l)),h})}static fromClass(t,e){return Rt.define(i=>new t(i),e)}}class Ms{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(bt(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){bt(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(i){bt(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const rh=P.define(),Gn=P.define(),ci=P.define(),oh=P.define(),Qn=P.define(),lh=P.define();function Wr(n,t){let e=n.state.facet(lh);if(!e.length)return e;let i=e.map(r=>r instanceof Function?r(n):r),s=[];return L.spans(i,t.from,t.to,{point(){},span(r,o,l,h){let a=r-t.from,f=o-t.from,c=s;for(let u=l.length-1;u>=0;u--,h--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=$f(t.text,a,f)),h>0&&c.length&&(p=c[c.length-1]).to==a&&p.direction==d)p.to=f,c=p.inner;else{let g={from:a,to:f,direction:d,inner:[]};c.push(g),c=g.inner}}}}),s}const hh=P.define();function ah(n){let t=0,e=0,i=0,s=0;for(let r of n.state.facet(hh)){let o=r(n);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(e=Math.max(e,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:t,right:e,top:i,bottom:s}}const Ze=P.define();class At{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new At(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAf)break;r+=2}if(!h)return i;new At(h.fromA,h.toA,h.fromB,h.toB).addToSet(i),o=h.toA,l=h.toB}}}class es{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=X.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let s=[];this.changes.iterChangedRanges((r,o,l,h)=>s.push(new At(r,o,l,h))),this.changedRanges=s}static create(t,e,i){return new es(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class jr extends W{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=K.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new $],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new At(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:a,toA:f})=>fthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((e=this.domChanged)===null||e===void 0)&&e.newSel?s=this.domChanged.newSel.head:!oc(t.changes,this.hasComposition)&&!t.selectionSet&&(s=t.state.selection.main.head));let r=s>-1?ec(this.view,t.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:a,to:f}=this.hasComposition;i=new At(a,f,t.changes.mapPos(a,-1),t.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(C.ie||C.chrome)&&!r&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.updateDeco(),h=nc(o,l,t.changes);return i=At.extendWithRanges(i,h),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,t.startState.doc.length,r),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=C.chrome||C.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||s.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?s[o]:null;if(!l)break;let{fromA:h,toA:a,fromB:f,toB:c}=l,u,d,p,g;if(i&&i.range.fromBf){let k=ri.build(this.view.state.doc,f,i.range.fromB,this.decorations,this.dynamicDecorationMap),v=ri.build(this.view.state.doc,i.range.toB,c,this.decorations,this.dynamicDecorationMap);d=k.breakAtStart,p=k.openStart,g=v.openEnd;let M=this.compositionView(i);v.breakAtStart?M.breakAfter=1:v.content.length&&M.merge(M.length,M.length,v.content[0],!1,v.openStart,0)&&(M.breakAfter=v.content[0].breakAfter,v.content.shift()),k.content.length&&M.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),u=k.content.concat(M).concat(v.content)}else({content:u,breakAtStart:d,openStart:p,openEnd:g}=ri.build(this.view.state.doc,f,c,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=r.findPos(a,1),{i:b,off:S}=r.findPos(h,-1);Vl(this,b,S,m,y,u,d,p,g)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let i of e.effects)i.is(nh)&&(this.editContextFormatting=i.value)}compositionView(t){let e=new Bt(t.text.nodeValue);e.flags|=8;for(let{deco:s}of t.marks)e=new $t(s,[e],e.length);let i=new $;return i.append(e,0),i}fixCompositionDOM(t){let e=(r,o)=>{o.flags|=8|(o.children.some(h=>h.flags&7)?1:0),this.markedForComposition.add(o);let l=W.get(r);l&&l!=o&&(l.dom=null),o.setDOM(r)},i=this.childPos(t.range.fromB,1),s=this.children[i.i];e(t.line,s);for(let r=t.marks.length-1;r>=-1;r--)i=s.childPos(i.off,1),s=s.children[i.i],e(r>=0?t.marks[r].node:t.text,s)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,r=!s&&Ui(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||e||r))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,h=this.moveToLine(this.domAtPos(l.anchor)),a=l.empty?h:this.moveToLine(this.domAtPos(l.head));if(C.gecko&&l.empty&&!this.hasComposition&&tc(h)){let c=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(c,h.node.childNodes[h.offset]||null)),h=a=new lt(c,0),o=!0}let f=this.view.observer.selectionRange;(o||!f.focusNode||(!ni(h.node,h.offset,f.anchorNode,f.anchorOffset)||!ni(a.node,a.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,l))&&(this.view.observer.ignore(()=>{C.android&&C.chrome&&this.dom.contains(f.focusNode)&&rc(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let c=ai(this.view.root);if(c)if(l.empty){if(C.gecko){let u=ic(h.node,h.offset);if(u&&u!=3){let d=(u==1?Il:Nl)(h.node,h.offset);d&&(h=new lt(d.node,d.offset))}}c.collapse(h.node,h.offset),l.bidiLevel!=null&&c.caretBidiLevel!==void 0&&(c.caretBidiLevel=l.bidiLevel)}else if(c.extend){c.collapse(h.node,h.offset);try{c.extend(a.node,a.offset)}catch{}}else{let u=document.createRange();l.anchor>l.head&&([h,a]=[a,h]),u.setEnd(a.node,a.offset),u.setStart(h.node,h.offset),c.removeAllRanges(),c.addRange(u)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(h,a)),this.impreciseAnchor=h.precise?null:new lt(f.anchorNode,f.anchorOffset),this.impreciseHead=a.precise?null:new lt(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&ni(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=ai(t.root),{anchorNode:s,anchorOffset:r}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let o=$.find(this,e.head);if(!o)return;let l=o.posAtStart;if(e.head==l||e.head==l+o.length)return;let h=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!h||!a||h.bottom>a.top)return;let f=this.domAtPos(e.head+e.assoc);i.collapse(f.node,f.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,r)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let r=W.get(e.childNodes[s]);r instanceof $&&(i=r.domAtPos(r.length))}return i?new lt(i.node,i.offset,!0):t}nearest(t){for(let e=t;e;){let i=W.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;o--){let l=this.children[o],h=r-l.breakAfter,a=h-l.length;if(ht||l.covers(1))&&(!i||l instanceof $&&!(i instanceof $&&e>=0)))i=l,s=a;else if(i&&a==t&&h==t&&l instanceof Yt&&Math.abs(e)<2){if(l.deco.startSide<0)break;o&&(i=null)}r=a}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),s=this.children[e];if(!(s instanceof $))return null;for(;s.children.length;){let{i:l,off:h}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=h}if(!(s instanceof Bt))return null;let r=ht(s.text,i);if(r==i)return null;let o=Ce(s.dom,i,r).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,h=this.view.textDirection==_.LTR;for(let a=0,f=0;fs)break;if(a>=i){let d=c.dom.getBoundingClientRect();if(e.push(d.height),o){let p=c.dom.lastChild,g=p?fi(p):[];if(g.length){let m=g[g.length-1],y=h?m.right-d.left:d.right-m.left;y>l&&(l=y,this.minWidth=r,this.minWidthFrom=a,this.minWidthTo=u)}}}a=u+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?_.RTL:_.LTR}measureTextSize(){for(let r of this.children)if(r instanceof $){let o=r.measureTextSize();if(o)return o}let t=document.createElement("div"),e,i,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let r=fi(t.firstChild)[0];e=t.getBoundingClientRect().height,i=r?r.width/27:7,s=r?r.height:e,t.remove()}),{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new Ll(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let r=s==e.viewports.length?null:e.viewports[s],o=r?r.from-1:this.length;if(o>i){let l=(e.lineBlockAt(o).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(K.replace({widget:new qr(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return K.set(t)}updateDeco(){let t=1,e=this.view.state.facet(ci).map(r=>(this.dynamicDecorationMap[t++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(oh).map((r,o)=>{let l=typeof r=="function";return l&&(i=!0),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[t++]=i,e.push(L.join(s))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];te.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=ah(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:l,offsetHeight:h}=this.view.scrollDOM;Ef(this.view.scrollDOM,o,e.head{it.from&&(e=!0)}),e}function lc(n,t,e=1){let i=n.charCategorizer(t),s=n.doc.lineAt(t),r=t-s.from;if(s.length==0)return w.cursor(t);r==0?e=1:r==s.length&&(e=-1);let o=r,l=r;e<0?o=ht(s.text,r,!1):l=ht(s.text,r);let h=i(s.text.slice(o,l));for(;o>0;){let a=ht(s.text,o,!1);if(i(s.text.slice(a,o))!=h)break;o=a}for(;ln?t.left-n:Math.max(0,n-t.right)}function ac(n,t){return t.top>n?t.top-n:Math.max(0,n-t.bottom)}function Ts(n,t){return n.topt.top+1}function Kr(n,t){return tn.bottom?{top:n.top,left:n.left,right:n.right,bottom:t}:n}function bn(n,t,e){let i,s,r,o,l=!1,h,a,f,c;for(let p=n.firstChild;p;p=p.nextSibling){let g=fi(p);for(let m=0;mS||o==S&&r>b){i=p,s=y,r=b,o=S;let k=S?e0?m0)}b==0?e>y.bottom&&(!f||f.bottomy.top)&&(a=p,c=y):f&&Ts(f,y)?f=Ur(f,y.bottom):c&&Ts(c,y)&&(c=Kr(c,y.top))}}if(f&&f.bottom>=e?(i=h,s=f):c&&c.top<=e&&(i=a,s=c),!i)return{node:n,offset:0};let u=Math.max(s.left,Math.min(s.right,t));if(i.nodeType==3)return Gr(i,u,e);if(l&&i.contentEditable!="false")return bn(i,u,e);let d=Array.prototype.indexOf.call(n.childNodes,i)+(t>=(s.left+s.right)/2?1:0);return{node:n,offset:d}}function Gr(n,t,e){let i=n.nodeValue.length,s=-1,r=1e9,o=0;for(let l=0;le?f.top-e:e-f.bottom)-1;if(f.left-1<=t&&f.right+1>=t&&c=(f.left+f.right)/2,d=u;if((C.chrome||C.gecko)&&Ce(n,l).getBoundingClientRect().left==f.right&&(d=!u),c<=0)return{node:n,offset:l+(d?1:0)};s=l+(d?1:0),r=c}}}return{node:n,offset:s>-1?s:o>0?n.nodeValue.length:0}}function ch(n,t,e,i=-1){var s,r;let o=n.contentDOM.getBoundingClientRect(),l=o.top+n.viewState.paddingTop,h,{docHeight:a}=n.viewState,{x:f,y:c}=t,u=c-l;if(u<0)return 0;if(u>a)return n.state.doc.length;for(let k=n.viewState.heightOracle.textHeight/2,v=!1;h=n.elementAtHeight(u),h.type!=Ct.Text;)for(;u=i>0?h.bottom+k:h.top-k,!(u>=0&&u<=a);){if(v)return e?null:0;v=!0,i=-i}c=l+u;let d=h.from;if(dn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:e?null:Qr(n,o,h,f,c);let p=n.dom.ownerDocument,g=n.root.elementFromPoint?n.root:p,m=g.elementFromPoint(f,c);m&&!n.contentDOM.contains(m)&&(m=null),m||(f=Math.max(o.left+1,Math.min(o.right-1,f)),m=g.elementFromPoint(f,c),m&&!n.contentDOM.contains(m)&&(m=null));let y,b=-1;if(m&&((s=n.docView.nearest(m))===null||s===void 0?void 0:s.isEditable)!=!1){if(p.caretPositionFromPoint){let k=p.caretPositionFromPoint(f,c);k&&({offsetNode:y,offset:b}=k)}else if(p.caretRangeFromPoint){let k=p.caretRangeFromPoint(f,c);k&&({startContainer:y,startOffset:b}=k,(!n.contentDOM.contains(y)||C.safari&&fc(y,b,f)||C.chrome&&cc(y,b,f))&&(y=void 0))}}if(!y||!n.docView.dom.contains(y)){let k=$.find(n.docView,d);if(!k)return u>h.top+h.height/2?h.to:h.from;({node:y,offset:b}=bn(k.dom,f,c))}let S=n.docView.nearest(y);if(!S)return null;if(S.isWidget&&((r=S.dom)===null||r===void 0?void 0:r.nodeType)==1){let k=S.dom.getBoundingClientRect();return t.yn.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,h=Math.floor((s-e.top-(n.defaultLineHeight-l)*.5)/l);r+=h*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(e.from,e.to);return e.from+Af(o,r,n.state.tabSize)}function fc(n,t,e){let i;if(n.nodeType!=3||t!=(i=n.nodeValue.length))return!1;for(let s=n.nextSibling;s;s=s.nextSibling)if(s.nodeType!=1||s.nodeName!="BR")return!1;return Ce(n,i-1,i).getBoundingClientRect().left>e}function cc(n,t,e){if(t!=0)return!1;for(let s=n;;){let r=s.parentNode;if(!r||r.nodeType!=1||r.firstChild!=s)return!1;if(r.classList.contains("cm-line"))break;s=r}let i=n.nodeType==1?n.getBoundingClientRect():Ce(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return e-i.left>5}function uc(n,t){let e=n.lineBlockAt(t);if(Array.isArray(e.type)){for(let i of e.type)if(i.to>t||i.to==t&&(i.to==e.to||i.type==Ct.Text))return i}return e}function dc(n,t,e,i){let s=uc(n,t.head),r=!i||s.type!=Ct.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(t.assoc<0&&t.head>s.from?t.head-1:t.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),h=n.posAtCoords({x:e==(l==_.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(h!=null)return w.cursor(h,e?-1:1)}return w.cursor(e?s.to:s.from,e?-1:1)}function Jr(n,t,e,i){let s=n.state.doc.lineAt(t.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=t,h=null;;){let a=_f(s,r,o,l,e),f=Yl;if(!a){if(s.number==(e?n.state.doc.lines:1))return l;f=` -`,s=n.state.doc.line(s.number+(e?1:-1)),r=n.bidiSpans(s),a=n.visualLineSide(s,!e)}if(h){if(!h(f))return l}else{if(!i)return a;h=i(f)}l=a}}function pc(n,t,e){let i=n.state.charCategorizer(t),s=i(e);return r=>{let o=i(r);return s==xt.Space&&(s=o),s==o}}function gc(n,t,e,i){let s=t.head,r=e?1:-1;if(s==(e?n.state.doc.length:0))return w.cursor(s,t.assoc);let o=t.goalColumn,l,h=n.contentDOM.getBoundingClientRect(),a=n.coordsAtPos(s,t.assoc||-1),f=n.documentTop;if(a)o==null&&(o=a.left-h.left),l=r<0?a.top:a.bottom;else{let d=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(h.right-h.left,n.defaultCharacterWidth*(s-d.from))),l=(r<0?d.top:d.bottom)+f}let c=h.left+o,u=i??n.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=l+(u+d)*r,g=ch(n,{x:c,y:p},!1,r);if(ph.bottom||(r<0?gs)){let m=n.docView.coordsForChar(g),y=!m||p{if(t>r&&ts(n)),e.from,t.head>e.from?-1:1);return i==e.from?e:w.cursor(i,inull),C.gecko&&Rc(t.contentDOM.ownerDocument)}handleEvent(t){!Cc(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,e){let i=this.handlers[t];if(i){for(let s of i.observers)s(this.view,e);for(let s of i.handlers){if(e.defaultPrevented)break;if(s(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=yc(t),i=this.handlers,s=this.view.contentDOM;for(let r in e)if(r!="scroll"){let o=!e[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!e[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&dh.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),C.android&&C.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return C.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=uh.find(i=>i.keyCode==t.keyCode))&&!t.ctrlKey||bc.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(t){let e=this.pendingIOSKey;return!e||e.key=="Enter"&&t&&t.from0?!0:C.safari&&!C.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Yr(n,t){return(e,i)=>{try{return t.call(n,i,e)}catch(s){bt(e.state,s)}}}function yc(n){let t=Object.create(null);function e(i){return t[i]||(t[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec;if(s&&s.domEventHandlers)for(let r in s.domEventHandlers){let o=s.domEventHandlers[r];o&&e(r).handlers.push(Yr(i.value,o))}if(s&&s.domEventObservers)for(let r in s.domEventObservers){let o=s.domEventObservers[r];o&&e(r).observers.push(Yr(i.value,o))}}for(let i in Et)e(i).handlers.push(Et[i]);for(let i in Mt)e(i).observers.push(Mt[i]);return t}const uh=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],bc="dthko",dh=[16,17,18,20,91,92,224,225],Oi=6;function Mi(n){return Math.max(0,n)*.7+8}function wc(n,t){return Math.max(Math.abs(n.clientX-t.clientX),Math.abs(n.clientY-t.clientY))}class kc{constructor(t,e,i,s){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=If(t.contentDOM),this.atoms=t.state.facet(Qn).map(o=>o(t));let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(N.allowMultipleSelections)&&xc(t,e),this.dragging=vc(t,e)&&mh(e)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&wc(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let h=ah(this.view);t.clientX-h.left<=s+Oi?e=-Mi(s-t.clientX):t.clientX+h.right>=o-Oi&&(e=Mi(t.clientX-o)),t.clientY-h.top<=r+Oi?i=-Mi(r-t.clientY):t.clientY+h.bottom>=l-Oi&&(i=Mi(t.clientY-l)),this.setScrollSpeed(e,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ie.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function xc(n,t){let e=n.state.facet(_l);return e.length?e[0](t):C.mac?t.metaKey:t.ctrlKey}function Sc(n,t){let e=n.state.facet($l);return e.length?e[0](t):C.mac?!t.altKey:!t.ctrlKey}function vc(n,t){let{main:e}=n.state.selection;if(e.empty)return!1;let i=ai(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function Cc(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,i;e!=n.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=W.get(e))&&i.ignoreEvent(t))return!1;return!0}const Et=Object.create(null),Mt=Object.create(null),ph=C.ie&&C.ie_version<15||C.ios&&C.webkit_version<604;function Ac(n){let t=n.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{n.focus(),e.remove(),gh(n,e.value)},50)}function gh(n,t){let{state:e}=n,i,s=1,r=e.toText(t),o=r.lines==e.selection.ranges.length;if(wn!=null&&e.selection.ranges.every(h=>h.empty)&&wn==r.toString()){let h=-1;i=e.changeByRange(a=>{let f=e.doc.lineAt(a.from);if(f.from==h)return{range:a};h=f.from;let c=e.toText((o?r.line(s++).text:t)+e.lineBreak);return{changes:{from:f.from,insert:c},range:w.cursor(a.from+c.length)}})}else o?i=e.changeByRange(h=>{let a=r.line(s++);return{changes:{from:h.from,to:h.to,insert:a.text},range:w.cursor(h.from+a.length)}}):i=e.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Mt.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};Et.keydown=(n,t)=>(n.inputState.setSelectionOrigin("select"),t.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Mt.touchstart=(n,t)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Mt.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};Et.mousedown=(n,t)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let i of n.state.facet(Xl))if(e=i(n,t),e)break;if(!e&&t.button==0&&(e=Tc(n,t)),e){let i=!n.hasFocus;n.inputState.startMouseSelection(new kc(n,t,e,i)),i&&n.observer.ignore(()=>{Bl(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(t),s.dragging===!1}return!1};function _r(n,t,e,i){if(i==1)return w.cursor(t,e);if(i==2)return lc(n.state,t,e);{let s=$.find(n.docView,t),r=n.state.doc.lineAt(s?s.posAtEnd:t),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return lt>=e.top&&t<=e.bottom&&n>=e.left&&n<=e.right;function Oc(n,t,e,i){let s=$.find(n.docView,t);if(!s)return 1;let r=t-s.posAtStart;if(r==0)return 1;if(r==s.length)return-1;let o=s.coordsAt(r,-1);if(o&&$r(e,i,o))return-1;let l=s.coordsAt(r,1);return l&&$r(e,i,l)?1:o&&o.bottom>=i?-1:1}function Xr(n,t){let e=n.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:Oc(n,e,t.clientX,t.clientY)}}const Mc=C.ie&&C.ie_version<=11;let Zr=null,to=0,eo=0;function mh(n){if(!Mc)return n.detail;let t=Zr,e=eo;return Zr=n,eo=Date.now(),to=!t||e>Date.now()-400&&Math.abs(t.clientX-n.clientX)<2&&Math.abs(t.clientY-n.clientY)<2?(to+1)%3:1}function Tc(n,t){let e=Xr(n,t),i=mh(t),s=n.state.selection;return{update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),s=s.map(r.changes))},get(r,o,l){let h=Xr(n,r),a,f=_r(n,h.pos,h.bias,i);if(e.pos!=h.pos&&!o){let c=_r(n,e.pos,e.bias,i),u=Math.min(c.from,f.from),d=Math.max(c.to,f.to);f=u1&&(a=Pc(s,h.pos))?a:l?s.addRange(f):w.create([f])}}}function Pc(n,t){for(let e=0;e=t)return w.create(n.ranges.slice(0,e).concat(n.ranges.slice(e+1)),n.mainIndex==e?0:n.mainIndex-(n.mainIndex>e?1:0))}return null}Et.dragstart=(n,t)=>{let{selection:{main:e}}=n.state;if(t.target.draggable){let s=n.docView.nearest(t.target);if(s&&s.isWidget){let r=s.posAtStart,o=r+s.length;(r>=e.to||o<=e.from)&&(e=w.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",n.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Et.dragend=n=>(n.inputState.draggedContent=null,!1);function io(n,t,e,i){if(!e)return;let s=n.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&Sc(n,t)?{from:r.from,to:r.to}:null,l={from:s,insert:e},h=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:h,selection:{anchor:h.mapPos(s,-1),head:h.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Et.drop=(n,t)=>{if(!t.dataTransfer)return!1;if(n.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let i=Array(e.length),s=0,r=()=>{++s==e.length&&io(n,t,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(e[o])}return!0}else{let i=t.dataTransfer.getData("Text");if(i)return io(n,t,i,!0),!0}return!1};Et.paste=(n,t)=>{if(n.state.readOnly)return!0;n.observer.flush();let e=ph?null:t.clipboardData;return e?(gh(n,e.getData("text/plain")||e.getData("text/uri-list")),!0):(Ac(n),!1)};function Dc(n,t){let e=n.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function Bc(n){let t=[],e=[],i=!1;for(let s of n.selection.ranges)s.empty||(t.push(n.sliceDoc(s.from,s.to)),e.push(s));if(!t.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(t.push(o.text),e.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:t.join(n.lineBreak),ranges:e,linewise:i}}let wn=null;Et.copy=Et.cut=(n,t)=>{let{text:e,ranges:i,linewise:s}=Bc(n.state);if(!e&&!s)return!1;wn=s?e:null,t.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=ph?null:t.clipboardData;return r?(r.clearData(),r.setData("text/plain",e),!0):(Dc(n,e),!1)};const yh=Xt.define();function bh(n,t){let e=[];for(let i of n.facet(eh)){let s=i(n,t);s&&e.push(s)}return e?n.update({effects:e,annotations:yh.of(!0)}):null}function wh(n){setTimeout(()=>{let t=n.hasFocus;if(t!=n.inputState.notifiedFocused){let e=bh(n.state,t);e?n.dispatch(e):n.update([])}},10)}Mt.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),wh(n)};Mt.blur=n=>{n.observer.clearSelectionRange(),wh(n)};Mt.compositionstart=Mt.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Mt.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,C.chrome&&C.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Mt.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Et.beforeinput=(n,t)=>{var e;let i;if(C.chrome&&C.android&&(i=uh.find(s=>s.inputType==t.inputType))&&(n.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let s=((e=window.visualViewport)===null||e===void 0?void 0:e.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>s+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return C.ios&&t.inputType=="deleteContentForward"&&n.observer.flushSoon(),C.safari&&t.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Mt.compositionend(n,t),20),!1};const so=new Set;function Rc(n){so.has(n)||(so.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const no=["pre-wrap","normal","pre-line","break-spaces"];class Ec{constructor(t){this.lineWrapping=t,this.doc=V.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return no.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,h=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=r,h){this.heightSamples={};for(let a=0;a0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>Qi&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return at.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:h,toA:a,fromB:f,toB:c}=s[l],u=r.lineAt(h,G.ByPosNoHeight,i.setDoc(e),0,0),d=u.to>=a?u:r.lineAt(a,G.ByPosNoHeight,i,0,0);for(c+=d.to-a,a=d.to;l>0&&u.from<=s[l-1].toA;)h=s[l-1].fromA,f=s[l-1].fromB,l--,hr*2){let l=t[e-1];l.break?t.splice(--e,1,l.left,null,l.right):t.splice(--e,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(r>s*2){let l=t[i];l.break?t.splice(i,1,l.left,null,l.right):t.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(s=r&&o(this.blockAt(0,i,s,r))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class gt extends kh{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,s){return new jt(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];return i.length==1&&(s instanceof gt||s instanceof it&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof it?s=new gt(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):at.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class it extends at{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,r=s-i+1,o,l=0;if(t.lineWrapping){let h=Math.min(this.height,t.lineHeight*r);o=h/r,this.length>r+1&&(l=(this.height-h)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(t,e,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:h}=this.heightMetrics(e,s);if(e.lineWrapping){let a=s+(t0){let r=i[i.length-1];r instanceof it?i[i.length-1]=new it(r.length+s):i.push(null,new it(s-1))}if(t>0){let r=i[0];r instanceof it?i[0]=new it(t+r.length):i.unshift(new it(t-1),null)}return at.of(i)}decomposeLeft(t,e){e.push(new it(t-1),null)}decomposeRight(t,e){e.push(null,new it(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let r=e+this.length;if(s&&s.from<=e+this.length&&s.more){let o=[],l=Math.max(e,s.from),h=-1;for(s.from>e&&o.push(new it(s.from-e-1).updateHeight(t,e));l<=r&&s.more;){let f=t.doc.lineAt(l).length;o.length&&o.push(null);let c=s.heights[s.index++];h==-1?h=c:Math.abs(c-h)>=Qi&&(h=-2);let u=new gt(f,c);u.outdated=!1,o.push(u),l+=f+1}l<=r&&o.push(null,new it(r-l).updateHeight(t,l));let a=at.of(o);return(h<0||Math.abs(a.height-this.height)>=Qi||Math.abs(h-this.heightMetrics(t,e).perLine)>=Qi)&&(t.heightChanged=!0),a}else(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Nc extends at{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let r=i+this.left.height;return tl))return a;let f=e==G.ByPosNoHeight?G.ByPosNoHeight:G.ByPos;return h?a.join(this.right.lineAt(l,f,i,o,l)):this.left.lineAt(l,f,i,s,r).join(a)}forEachLine(t,e,i,s,r,o){let l=s+this.left.height,h=r+this.left.length+this.break;if(this.break)t=h&&this.right.forEachLine(t,e,i,l,h,o);else{let a=this.lineAt(h,G.ByPos,i,s,r);t=t&&a.from<=e&&o(a),e>a.to&&this.right.forEachLine(a.to+1,e,i,l,h,o)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let r=[];t>0&&this.decomposeLeft(t,r);let o=r.length;for(let l of i)r.push(l);if(t>0&&ro(r,o-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?at.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:r,right:o}=this,l=e+r.length+this.break,h=null;return s&&s.from<=e+r.length&&s.more?h=r=r.updateHeight(t,e,i,s):r.updateHeight(t,e,i),s&&s.from<=l+o.length&&s.more?h=o=o.updateHeight(t,l,i,s):o.updateHeight(t,l,i),h?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function ro(n,t){let e,i;n[t]==null&&(e=n[t-1])instanceof it&&(i=n[t+1])instanceof it&&n.splice(t-1,3,new it(e.length+1+i.length))}const Lc=5;class Jn{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof gt?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new gt(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=Lc)&&this.addLineDeco(s,r,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new gt(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new it(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof gt)return t;let e=new gt(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof gt)&&!this.isCovered?this.nodes.push(new gt(0,-1)):(this.writtenTof.clientHeight||f.scrollWidth>f.clientWidth)&&c.overflow!="visible"){let u=f.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),h=a==n.parentNode?u.bottom:Math.min(h,u.bottom)}a=c.position=="absolute"||c.position=="fixed"?f.offsetParent:f.parentNode}else if(a.nodeType==11)a=a.host;else break;return{left:r-e.left,right:Math.max(r,o)-e.left,top:l-(e.top+t),bottom:Math.max(l,h)-(e.top+t)}}function zc(n,t){let e=n.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class Ds{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Ec(e),this.stateDeco=t.facet(ci).filter(i=>typeof i!="function"),this.heightMap=at.empty().applyChanges(this.stateDeco,V.empty,this.heightOracle.setDoc(t.doc),[new At(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=K.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);t.push(new Ti(r,o))}}return this.viewports=t.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?lo:new Yn(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(ti(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(ci).filter(f=>typeof f!="function");let s=t.changedRanges,r=At.extendWithRanges(s,Vc(i,this.stateDeco,t?t.changes:X.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(t.flags|=2),l?(this.scrollAnchorPos=t.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let h=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headh.to)||!this.viewportIsAppropriate(h))&&(h=this.getViewport(0,e));let a=h.from!=this.viewport.from||h.to!=this.viewport.to;this.viewport=h,t.flags|=this.updateForViewport(),(a||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Xf)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?_.RTL:_.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),l=e.getBoundingClientRect(),h=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let a=0,f=0;if(l.width&&l.height){let{scaleX:k,scaleY:v}=Dl(e,l);(k>.005&&Math.abs(this.scaleX-k)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=k,this.scaleY=v,a|=8,o=h=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=c||this.paddingBottom!=u)&&(this.paddingTop=c,this.paddingBottom=u,a|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(h=!0),this.editorWidth=t.scrollDOM.clientWidth,a|=8);let d=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=El(t.scrollDOM);let p=(this.printing?zc:Hc)(e,this.paddingTop),g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(h=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=t.scrollDOM.clientHeight,a|=8),h){let k=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(k)&&(o=!0),o||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:v,charWidth:M,textHeight:A}=t.docView.measureTextSize();o=v>0&&s.refresh(r,v,M,A,b/M,k),o&&(t.docView.minWidth=0,a|=8)}g>0&&m>0?f=Math.max(g,m):g<0&&m<0&&(f=Math.min(g,m)),s.heightChanged=!1;for(let v of this.viewports){let M=v.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(v);this.heightMap=(o?at.empty().applyChanges(this.stateDeco,V.empty,this.heightOracle,[new At(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new Ic(v.from,M))}s.heightChanged&&(a|=2)}let S=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(a&2&&(a|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),a|=this.updateForViewport()),(a&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,h=new Ti(s.lineAt(o-i*1e3,G.ByHeight,r,0,0).from,s.lineAt(l+(1-i)*1e3,G.ByHeight,r,0,0).to);if(e){let{head:a}=e.range;if(ah.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(a,G.ByPos,r,0,0),u;e.y=="center"?u=(c.top+c.bottom)/2-f/2:e.y=="start"||e.y=="nearest"&&a=l+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r>1,o=s<<1;if(this.defaultTextDirection!=_.LTR&&!i)return[];let l=[],h=(f,c,u,d)=>{if(c-ff&&yy.from>=u.from&&y.to<=u.to&&Math.abs(y.from-f)y.fromb));if(!m){if(cy.from<=c&&y.to>=c)){let y=e.moveToLineBoundary(w.cursor(c),!1,!0).head;y>f&&(c=y)}m=new Ds(f,c,this.gapSize(u,f,c,d))}l.push(m)},a=f=>{if(f.lengthf.from&&h(f.from,d,f,c),pe.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];L.spans(t,this.viewport.from,this.viewport.to,{span(s,r){e.push({from:s,to:r})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((s,r)=>s.from!=e[r].from||s.to!=e[r].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||ti(this.heightMap.lineAt(t,G.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||ti(this.heightMap.lineAt(this.scaler.fromDOM(t),G.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return ti(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Ti{constructor(t,e){this.from=t,this.to=e}}function jc(n,t,e){let i=[],s=n,r=0;return L.spans(e,n,t,{span(){},point(o,l){o>s&&(i.push({from:s,to:o}),r+=o-s),s=l}},20),s=1)return t[t.length-1].to;let i=Math.floor(n*e);for(let s=0;;s++){let{from:r,to:o}=t[s],l=o-r;if(i<=l)return r+i;i-=l}}function Di(n,t){let e=0;for(let{from:i,to:s}of n.ranges){if(t<=s){e+=t-i;break}e+=s-i}return e/n.total}function qc(n,t){for(let e of n)if(t(e))return e}const lo={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class Yn{constructor(t,e,i){let s=0,r=0,o=0;this.viewports=i.map(({from:l,to:h})=>{let a=e.lineAt(l,G.ByPos,t,0,0).top,f=e.lineAt(h,G.ByPos,t,0,0).bottom;return s+=f-a,{from:l,to:h,top:a,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let r=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to):!1}}function ti(n,t){if(t.scale==1)return n;let e=t.toDOM(n.top),i=t.toDOM(n.bottom);return new jt(n.from,n.length,e,i-e,Array.isArray(n._content)?n._content.map(s=>ti(s,t)):n._content)}const Bi=P.define({combine:n=>n.join(" ")}),kn=P.define({combine:n=>n.indexOf(!0)>-1}),xn=ze.newName(),xh=ze.newName(),Sh=ze.newName(),vh={"&light":"."+xh,"&dark":"."+Sh};function Sn(n,t,e){return new ze(t,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!e||!e[s])throw new RangeError(`Unsupported selector: ${s}`);return e[s]}):n+" "+i}})}const Kc=Sn("."+xn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},vh),ei="￿";class Uc{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(N.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=ei}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=s.nextSibling;if(o==e)break;let l=W.get(s),h=W.get(o);(l&&h?l.breakAfter:(l?l.breakAfter:Zi(s))||Zi(o)&&(s.nodeName!="BR"||s.cmIgnore)&&this.text.length>r)&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(e))&&(r=l.index,o=l[0].length),this.append(e.slice(i,r<0?e.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=o-1);i=r+o}}readNode(t){if(t.cmIgnore)return;let e=W.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(Gc(t,i.node,i.offset)?e:0))}}function Gc(n,t,e){for(;;){if(!t||e<_t(t))return!1;if(t==n)return!0;e=ve(t)+1,t=t.parentNode}}class ho{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class Qc{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:r,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let l=r||o?[]:_c(t),h=new Uc(l,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=$c(l,this.bounds.from)}else{let l=t.observer.selectionRange,h=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!ln(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),a=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!ln(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=t.viewport;if((C.ios||C.chrome)&&t.state.selection.main.empty&&h!=a&&(f.from>0||f.toDate.now()-100?n.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,h=s.from,a=null;(r===8||C.android&&t.text.length=s.from&&e.to<=s.to&&(e.from!=s.from||e.to!=s.to)&&s.to-s.from-(e.to-e.from)<=4?e={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,e.from).append(e.insert).append(n.state.doc.slice(e.to,s.to))}:(C.mac||C.android)&&e&&e.from==e.to&&e.from==s.head-1&&/^\. ?$/.test(e.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&e.insert.length==2&&(i=w.single(i.main.anchor-1,i.main.head-1)),e={from:s.from,to:s.to,insert:V.of([" "])}):C.chrome&&e&&e.from==e.to&&e.from==s.head&&e.insert.toString()==` - `&&n.lineWrapping&&(i&&(i=w.single(i.main.anchor-1,i.main.head-1)),e={from:s.from,to:s.to,insert:V.of([" "])}),e)return Ah(n,e,i,r);if(i&&!i.main.eq(s)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function Ah(n,t,e,i=-1){if(C.ios&&n.inputState.flushIOSKey(t))return!0;let s=n.state.selection.main;if(C.android&&(t.to==s.to&&(t.from==s.from||t.from==s.from-1&&n.state.sliceDoc(t.from,s.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Ie(n.contentDOM,"Enter",13)||(t.from==s.from-1&&t.to==s.to&&t.insert.length==0||i==8&&t.insert.lengths.head)&&Ie(n.contentDOM,"Backspace",8)||t.from==s.from&&t.to==s.to+1&&t.insert.length==0&&Ie(n.contentDOM,"Delete",46)))return!0;let r=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=Jc(n,t,e));return n.state.facet(th).some(h=>h(n,t.from,t.to,r,l))||n.dispatch(l()),!0}function Jc(n,t,e){let i,s=n.state,r=s.selection.main;if(t.from>=r.from&&t.to<=r.to&&t.to-t.from>=(r.to-r.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&n.inputState.composing<0){let l=r.fromt.to?s.sliceDoc(t.to,r.to):"";i=s.replaceSelection(n.state.toText(l+t.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let l=s.changes(t),h=e&&e.main.to<=l.newLength?e.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&t.to<=r.to&&t.to>=r.to-10){let a=n.state.sliceDoc(t.from,t.to),f,c=e&&fh(n,e.main.head);if(c){let p=t.insert.length-(t.to-t.from);f={from:c.from,to:c.to-p}}else f=n.state.doc.lineAt(r.head);let u=r.to-t.to,d=r.to-r.from;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:l,range:h||p.map(l)};let g=p.to-u,m=g-a.length;if(p.to-p.from!=d||n.state.sliceDoc(m,g)!=a||p.to>=f.from&&p.from<=f.to)return{range:p};let y=s.changes({from:m,to:g,insert:t.insert}),b=p.to-r.to;return{changes:y,range:h?w.range(Math.max(0,h.anchor+b),Math.max(0,h.head+b)):p.map(y)}})}else i={changes:l,selection:h&&s.selection.replaceRange(h)}}let o="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,o+=".compose",n.inputState.compositionFirstChange&&(o+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:o,scrollIntoView:!0})}function Yc(n,t,e,i){let s=Math.min(n.length,t.length),r=0;for(;r0&&l>0&&n.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(i=="end"){let h=Math.max(0,r-Math.min(o,l));e-=o+h-r}if(o=o?r-e:0;r-=h,l=r+(l-o),o=r}else if(l=l?r-e:0;r-=h,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function _c(n){let t=[];if(n.root.activeElement!=n.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return e&&(t.push(new ho(e,i)),(s!=e||r!=i)&&t.push(new ho(s,r))),t}function $c(n,t){if(n.length==0)return null;let e=n[0].pos,i=n.length==2?n[1].pos:e;return e>-1&&i>-1?w.single(e+t,i+t):null}const Xc={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Bs=C.ie&&C.ie_version<=11;class Zc{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new Nf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(C.ie&&C.ie_version<=11||C.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&t.constructor.EDIT_CONTEXT!==!1&&!(C.chrome&&C.chrome_version<126)&&(this.editContext=new eu(t),t.state.facet(ie)&&(t.contentDOM.editContext=this.editContext.editContext)),Bs&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){t.type=="change"&&!t.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ie)?i.root.activeElement!=this.dom:!Ui(i.dom,s))return;let r=s.anchorNode&&i.docView.nearest(s.anchorNode);if(r&&r.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(C.ie&&C.ie_version<=11||C.android&&C.chrome)&&!i.state.selection.main.empty&&s.focusNode&&ni(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=ai(t.root);if(!e)return!1;let i=C.safari&&t.root.nodeType==11&&Bf(this.dom.ownerDocument)==this.dom&&tu(this.view,e)||e;if(!i||this.selectionRange.eq(i))return!1;let s=Ui(this.dom,i);return s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Ie(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=!1;for(let r of t){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),e==-1?{from:e,to:i}=o:(e=Math.min(o.from,e),i=Math.max(o.to,i)))}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Ui(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Qc(this.view,t,e,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,s=Ch(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(t.type=="attributes"),t.type=="attributes"&&(e.flags|=4),t.type=="childList"){let i=ao(e,t.previousSibling||t.target.previousSibling,-1),s=ao(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(ie)!=t.state.facet(ie)&&(t.view.contentDOM.editContext=t.state.facet(ie)?this.editContext.editContext:null))}destroy(){var t,e,i;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function ao(n,t,e){for(;t;){let i=W.get(t);if(i&&i.parent==n)return i;let s=t.parentNode;t=s!=n.dom?s:e>0?t.nextSibling:t.previousSibling}return null}function fo(n,t){let e=t.startContainer,i=t.startOffset,s=t.endContainer,r=t.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor);return ni(o.node,o.offset,s,r)&&([e,i,s,r]=[s,r,e,i]),{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}}function tu(n,t){if(t.getComposedRanges){let s=t.getComposedRanges(n.root)[0];if(s)return fo(n,s)}let e=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),e=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),e?fo(n,e):null}class eu{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=i=>{let{anchor:s}=t.state.selection.main,r={from:this.toEditorPos(i.updateRangeStart),to:this.toEditorPos(i.updateRangeEnd),insert:V.of(i.text.split(` -`))};r.from==this.from&&sthis.to&&(r.to=s),!(r.from==r.to&&!r.insert.length)&&(this.pendingContextChange=r,t.state.readOnly||Ah(t,r,w.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd))),this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)))},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(o!="None"&&l!="None"){let h=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(K.mark({attributes:{style:h}}).range(this.toEditorPos(r.rangeStart),this.toEditorPos(r.rangeEnd)))}}t.dispatch({effects:nh.of(K.set(s))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{t.inputState.composing=-1,t.inputState.compositionFirstChange=null};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=ai(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=!1,s=this.pendingContextChange;return t.changes.iterChanges((r,o,l,h,a)=>{if(i)return;let f=a.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(a)){s=this.pendingContextChange=null,e+=f,this.to+=f;return}else s=null,this.revertPending(t.state);if(r+=e,o+=e,o<=this.from)this.from+=f,this.to+=f;else if(rthis.to||this.to-this.from+a.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),a.toString()),this.to+=f}e+=f}),s&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange;!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)):(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),s=this.toContextPos(e.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class D{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:e}=t;this.dispatchTransactions=t.dispatchTransactions||e&&(i=>i.forEach(s=>e(s,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Lf(t.parent)||document,this.viewState=new oo(t.state||N.create(t)),t.scrollTo&&t.scrollTo.is(Ai)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Xe).map(i=>new Ms(i));for(let i of this.plugins)i.update(this);this.observer=new Zc(this),this.inputState=new mc(this),this.inputState.ensureHandlers(this.plugins),this.docView=new jr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let e=t.length==1&&t[0]instanceof Z?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,r=this.state;for(let u of t){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,l=0,h=null;t.some(u=>u.annotation(yh))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,h=bh(r,o),h||(l=1));let a=this.observer.delayedAndroidKey,f=null;if(a?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(f=null)):this.observer.clear(),r.facet(N.phrases)!=this.state.facet(N.phrases))return this.setState(r);s=es.create(this,r,t),s.flags|=l;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let u of t){if(c&&(c=c.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection;c=new Ne(d.empty?d:w.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of u.effects)d.is(Ai)&&(c=d.value.clip(this.state))}this.viewState.update(s,c),this.bidiCache=is.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(Ze)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(u=>u.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(Bi)!=s.state.facet(Bi)&&(this.viewState.mustMeasureContent=!0),(e||i||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),e&&this.docViewUpdate(),!s.empty)for(let u of this.state.facet(yn))try{u(s)}catch(d){bt(this.state,d,"update listener")}(h||f)&&Promise.resolve().then(()=>{h&&this.state==h.startState&&this.dispatch(h),f&&!Ch(this,f)&&a.force&&Ie(this.contentDOM,a.key,a.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new oo(t),this.plugins=t.facet(Xe).map(i=>new Ms(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new jr(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Xe),i=t.state.facet(Xe);if(e!=i){let s=[];for(let r of i){let o=e.indexOf(r);if(o<0)s.push(new Ms(r));else{let l=this.plugins[o];l.mustUpdate=t,s.push(l)}}for(let r of this.plugins)r.mustUpdate!=t&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=t;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(El(i))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(s);r=d.from,o=d.top}this.updateState=1;let h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];h&4||([this.measureRequests,a]=[a,this.measureRequests]);let f=a.map(d=>{try{return d.read(this)}catch(p){return bt(this.state,p),co}}),c=es.create(this,this.state,[]),u=!1;c.flags|=h,e?e.flags|=h:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let d=0;d1||p<-1){s=s+p,i.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(yn))l(e)}get themeClasses(){return xn+" "+(this.state.facet(kn)?Sh:xh)+" "+this.state.facet(Bi)}updateAttrs(){let t=uo(this,rh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ie)?"true":"false",class:"cm-content",style:`${C.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),uo(this,Gn,e);let i=this.observer.ignore(()=>{let s=un(this.contentDOM,this.contentAttrs,e),r=un(this.dom,this.editorAttrs,t);return s||r});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)if(s.is(D.announce)){e&&(this.announceDOM.textContent=""),e=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(Ze);let t=this.state.facet(D.cspNonce);ze.mount(this.root,this.styleModules.concat(Kc).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;ei.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return Ps(this,t,Jr(this,t,e,i))}moveByGroup(t,e){return Ps(this,t,Jr(this,t,e,i=>pc(this,t.head,i)))}visualLineSide(t,e){let i=this.bidiSpans(t),s=this.textDirectionAt(t.from),r=i[e?i.length-1:0];return w.cursor(r.side(e,s)+t.from,r.forward(!e,s)?1:-1)}moveToLineBoundary(t,e,i=!0){return dc(this,t,e,i)}moveVertically(t,e,i){return Ps(this,t,gc(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),ch(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),r=this.bidiSpans(s),o=r[re.find(r,t-s.from,-1,e)];return qn(i,o.dir==_.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(ih)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>iu)return Jl(t.length);let e=this.textDirectionAt(t.from),i;for(let r of this.bidiCache)if(r.from==t.from&&r.dir==e&&(r.fresh||Ql(r.isolates,i=Wr(this,t))))return r.order;i||(i=Wr(this,t));let s=Yf(t.text,e,i);return this.bidiCache.push(new is(t.from,t.to,e,i,!0,s)),s}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||C.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Bl(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return Ai.of(new Ne(typeof t=="number"?w.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return Ai.of(new Ne(w.cursor(i.from),"start","start",i.top-t,e,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return Rt.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return Rt.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=ze.newName(),s=[Bi.of(i),Ze.of(Sn(`.${i}`,t))];return e&&e.dark&&s.push(kn.of(!0)),s}static baseTheme(t){return mi.lowest(Ze.of(Sn("."+xn,t,vh)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&W.get(i)||W.get(t);return((e=s==null?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}D.styleModule=Ze;D.inputHandler=th;D.scrollHandler=sh;D.focusChangeEffect=eh;D.perLineTextDirection=ih;D.exceptionSink=Zl;D.updateListener=yn;D.editable=ie;D.mouseSelectionStyle=Xl;D.dragMovesSelection=$l;D.clickAddsSelectionRange=_l;D.decorations=ci;D.outerDecorations=oh;D.atomicRanges=Qn;D.bidiIsolatedRanges=lh;D.scrollMargins=hh;D.darkTheme=kn;D.cspNonce=P.define({combine:n=>n.length?n[0]:""});D.contentAttributes=Gn;D.editorAttributes=rh;D.lineWrapping=D.contentAttributes.of({class:"cm-lineWrapping"});D.announce=j.define();const iu=4096,co={};class is{constructor(t,e,i,s,r,o){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=r,this.order=o}static update(t,e){if(e.empty&&!t.some(r=>r.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:_.LTR;for(let r=Math.max(0,t.length-10);r=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&cn(o,e)}return e}const su=C.mac?"mac":C.windows?"win":C.linux?"linux":"key";function nu(n,t){const e=n.split(/-(?!$)/);let i=e[e.length-1];i=="Space"&&(i=" ");let s,r,o,l;for(let h=0;hi.concat(s),[]))),e}let se=null;const lu=4e3;function hu(n,t=su){let e=Object.create(null),i=Object.create(null),s=(o,l)=>{let h=i[o];if(h==null)i[o]=l;else if(h!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,h,a,f)=>{var c,u;let d=e[o]||(e[o]=Object.create(null)),p=l.split(/ (?!$)/).map(y=>nu(y,t));for(let y=1;y{let k=se={view:S,prefix:b,scope:o};return setTimeout(()=>{se==k&&(se=null)},lu),!0}]})}let g=p.join(" ");s(g,!1);let m=d[g]||(d[g]={preventDefault:!1,stopPropagation:!1,run:((u=(c=d._any)===null||c===void 0?void 0:c.run)===null||u===void 0?void 0:u.slice())||[]});h&&m.run.push(h),a&&(m.preventDefault=!0),f&&(m.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let a of l){let f=e[a]||(e[a]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:c}=o;for(let u in f)f[u].run.push(d=>c(d,vn))}let h=o[t]||o.key;if(h)for(let a of l)r(a,h,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(a,"Shift-"+h,o.shift,o.preventDefault,o.stopPropagation)}return e}let vn=null;function au(n,t,e,i){vn=t;let s=Df(t),r=mt(s,0),o=Wt(r)==s.length&&s!=" ",l="",h=!1,a=!1,f=!1;se&&se.view==e&&se.scope==i&&(l=se.prefix+" ",dh.indexOf(t.keyCode)<0&&(a=!0,se=null));let c=new Set,u=m=>{if(m){for(let y of m.run)if(!c.has(y)&&(c.add(y),y(e)))return m.stopPropagation&&(f=!0),!0;m.preventDefault&&(m.stopPropagation&&(f=!0),a=!0)}return!1},d=n[i],p,g;return d&&(u(d[l+Ri(s,t,!o)])?h=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(C.windows&&t.ctrlKey&&t.altKey)&&(p=he[t.keyCode])&&p!=s?(u(d[l+Ri(p,t,!0)])||t.shiftKey&&(g=hi[t.keyCode])!=s&&g!=p&&u(d[l+Ri(g,t,!1)]))&&(h=!0):o&&t.shiftKey&&u(d[l+Ri(s,t,!0)])&&(h=!0),!h&&u(d._any)&&(h=!0)),a&&(h=!0),h&&f&&t.stopPropagation(),vn=null,h}const fu=!C.ios,go={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};fu&&(go[".cm-line"].caretColor=go[".cm-content"].caretColor="transparent !important");const Ye="-10000px";class cu{constructor(t,e,i,s){this.facet=e,this.createTooltipView=i,this.removeTooltipView=s,this.input=t.state.facet(e),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=i(o,r))}update(t,e){var i;let s=t.state.facet(this.facet),r=s.filter(h=>h);if(s===this.input){for(let h of this.tooltipViews)h.update&&h.update(t);return!1}let o=[],l=e?[]:null;for(let h=0;he[a]=h),e.length=l.length),this.input=s,this.tooltips=r,this.tooltipViews=o,!0}}function uu(n){let{win:t}=n;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Rs=P.define({combine:n=>{var t,e,i;return{position:C.ios?"absolute":((t=n.find(s=>s.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=n.find(s=>s.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||uu}}}),mo=new WeakMap,Oh=Rt.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=n.state.facet(Rs);this.position=t.position,this.parent=t.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new cu(n,Mh,(e,i)=>this.createTooltip(e,i),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(n,this.above);t&&this.observeIntersection();let e=t||n.geometryChanged,i=n.state.facet(Rs);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;e=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(n,t){let e=n.create(this.view),i=t?t.dom:null;if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",e.dom.appendChild(s)}return e.dom.style.position=this.position,e.dom.style.top=Ye,e.dom.style.left="0px",this.container.insertBefore(e.dom,i),e.mount&&e.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(e.dom),e}destroy(){var n,t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=this.view.dom.getBoundingClientRect(),t=1,e=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(C.gecko)i=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==Ye&&s.style.left=="0px"){let r=s.getBoundingClientRect();i=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(i||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map((s,r)=>{let o=this.manager.tooltipViews[r];return o.getCoords?o.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(Rs).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(n){var t;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:e,space:i,scaleX:s,scaleY:r}=n,o=[];for(let l=0;l=Math.min(e.bottom,i.bottom)||c.rightMath.min(e.right,i.right)+.1){f.style.top=Ye;continue}let d=h.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,g=u.right-u.left,m=(t=mo.get(a))!==null&&t!==void 0?t:u.bottom-u.top,y=a.offset||pu,b=this.view.textDirection==_.LTR,S=u.width>i.right-i.left?b?i.left:i.right-u.width:b?Math.max(i.left,Math.min(c.left-(d?14:0)+y.x,i.right-g)):Math.min(Math.max(i.left,c.left-g+(d?14:0)-y.x),i.right-g),k=this.above[l];!h.strictSide&&(k?c.top-(u.bottom-u.top)-y.yi.bottom)&&k==i.bottom-c.bottom>c.top-i.top&&(k=this.above[l]=!k);let v=(k?c.top-i.top:i.bottom-c.bottom)-p;if(vS&&I.topM&&(M=k?I.top-m-2-p:I.bottom+p+2);if(this.position=="absolute"?(f.style.top=(M-n.parent.top)/r+"px",f.style.left=(S-n.parent.left)/s+"px"):(f.style.top=M/r+"px",f.style.left=S/s+"px"),d){let I=c.left+(b?y.x:-y.x)-(S+14-7);d.style.left=I/s+"px"}a.overlap!==!0&&o.push({left:S,top:M,right:A,bottom:M+m}),f.classList.toggle("cm-tooltip-above",k),f.classList.toggle("cm-tooltip-below",!k),a.positioned&&a.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=Ye}},{eventObservers:{scroll(){this.maybeMeasure()}}}),du=D.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),pu={x:0,y:0},Mh=P.define({enables:[Oh,du]});function Th(n,t){let e=n.plugin(Oh);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}class Oe extends Se{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Oe.prototype.elementClass="";Oe.prototype.toDOM=void 0;Oe.prototype.mapMode=dt.TrackBefore;Oe.prototype.startSide=Oe.prototype.endSide=-1;Oe.prototype.point=!0;const Es=P.define(),gu={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>L.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ji=P.define();function mu(n){return[yu(),Ji.of(Object.assign(Object.assign({},gu),n))]}const yo=P.define({combine:n=>n.some(t=>t)});function yu(n){return[bu]}const bu=Rt.fromClass(class{constructor(n){this.view=n,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Ji).map(t=>new wo(n,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!n.state.facet(yo),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}update(n){if(this.updateGutters(n)){let t=this.prevViewport,e=n.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8)}n.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(yo)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=n.view.viewport}syncGutters(n){let t=this.dom.nextSibling;n&&this.dom.remove();let e=L.iter(this.view.state.facet(Es),this.view.viewport.from),i=[],s=this.gutters.map(r=>new wu(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let l of r.type)if(l.type==Ct.Text&&o){Cn(e,i,l.from);for(let h of s)h.line(this.view,l,i);o=!1}else if(l.widget)for(let h of s)h.widget(this.view,l)}else if(r.type==Ct.Text){Cn(e,i,r.from);for(let o of s)o.line(this.view,r,i)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(n){let t=n.startState.facet(Ji),e=n.state.facet(Ji),i=n.docChanged||n.heightChanged||n.viewportChanged||!L.eq(n.startState.facet(Es),n.state.facet(Es),n.view.viewport.from,n.view.viewport.to);if(t==e)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let r of e){let o=t.indexOf(r);o<0?s.push(new wo(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)this.dom.appendChild(r.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove()}},{provide:n=>D.scrollMargins.of(t=>{let e=t.plugin(n);return!e||e.gutters.length==0||!e.fixed?null:t.textDirection==_.LTR?{left:e.dom.offsetWidth*t.scaleX}:{right:e.dom.offsetWidth*t.scaleX}})});function bo(n){return Array.isArray(n)?n:[n]}function Cn(n,t,e){for(;n.value&&n.from<=e;)n.from==e&&t.push(n.value),n.next()}class wu{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=L.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,r=(e.top-this.height)/t.scaleY,o=e.height/t.scaleY;if(this.i==s.elements.length){let l=new Ph(t,o,r,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(t,o,r,i);this.height=e.bottom,this.i++}line(t,e,i){let s=[];Cn(this.cursor,s,e.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(t,e,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e);i&&this.addElement(t,e,[i])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class wo{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let h=r.getBoundingClientRect();o=(h.top+h.bottom)/2}else o=s.clientY;let l=t.lineBlockAtHeight(o-t.documentTop);e.domEventHandlers[i](t,l,s)&&s.preventDefault()});this.markers=bo(e.markers(t)),e.initialSpacer&&(this.spacer=new Ph(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=bo(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],t);s!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[s])}let i=t.view.viewport;return!L.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Ph{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),ku(this.markers,s)||this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let l=o,h=r{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=wt.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}};E.closedBy=new E({deserialize:n=>n.split(" ")});E.openedBy=new E({deserialize:n=>n.split(" ")});E.group=new E({deserialize:n=>n.split(" ")});E.isolate=new E({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});E.contextHash=new E({perNode:!0});E.lookAhead=new E({perNode:!0});E.mounted=new E({perNode:!0});class ss{constructor(t,e,i){this.tree=t,this.overlay=e,this.parser=i}static get(t){return t&&t.props&&t.props[E.mounted.id]}}const Su=Object.create(null);let wt=class Bh{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):Su,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new Bh(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(E.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return i=>{for(let s=i.prop(E.group),r=-1;r<(s?s.length:0);r++){let o=e[r<0?i.name:s[r]];if(o)return o}}}};wt.none=new wt("",Object.create(null),0,8);class bs{constructor(t){this.types=t;for(let e=0;e0;for(let h=this.cursor(o|et.IncludeAnonymous);;){let a=!1;if(h.from<=r&&h.to>=s&&(!l&&h.type.isAnonymous||e(h)!==!1)){if(h.firstChild())continue;a=!0}for(;a&&i&&(l||!h.type.isAnonymous)&&i(h),!h.nextSibling();){if(!h.parent())return;a=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:Zn(wt.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,s)=>new q(this.type,e,i,s,this.propValues),t.makeTree||((e,i,s)=>new q(wt.none,e,i,s)))}static build(t){return Ou(t)}}q.empty=new q(wt.none,[],[],0);class $n{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $n(this.buffer,this.index)}}class fe{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return wt.none}toString(){let t=[];for(let e=0;e0));h=o[h+3]);return l}slice(t,e,i){let s=this.buffer,r=new Uint16Array(e-t),o=0;for(let l=t,h=0;l=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return!0}}function ui(n,t,e,i){for(var s;n.from==n.to||(e<1?n.from>=t:n.from>t)||(e>-1?n.to<=t:n.to0?l.length:-1;t!=a;t+=e){let f=l[t],c=h[t]+o.from;if(Rh(s,i,c,c+f.length)){if(f instanceof fe){if(r&et.ExcludeBuffers)continue;let u=f.findChild(0,f.buffer.length,e,i-c,s);if(u>-1)return new oe(new vu(o,f,t,c),null,u)}else if(r&et.IncludeAnonymous||!f.type.isAnonymous||Xn(f)){let u;if(!(r&et.IgnoreMounts)&&(u=ss.get(f))&&!u.overlay)return new Ot(u.tree,c,t,o);let d=new Ot(f,c,t,o);return r&et.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(e<0?f.children.length-1:0,e,i,s)}}}if(r&et.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+e:t=e<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,i=0){let s;if(!(i&et.IgnoreOverlays)&&(s=ss.get(this._tree))&&s.overlay){let r=t-this.from;for(let{from:o,to:l}of s.overlay)if((e>0?o<=r:o=r:l>r))return new Ot(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function xo(n,t,e,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(e!=null){for(let o=!1;!o;)if(o=s.type.is(e),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(t)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function An(n,t,e=t.length-1){for(let i=n.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return!1;e--}}return!0}class vu{constructor(t,e,i,s){this.parent=t,this.buffer=e,this.index=i,this.start=s}}class oe extends Eh{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new oe(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,i=0){if(i&et.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new oe(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new oe(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new oe(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];t.push(i.slice(s,r,o)),e.push(0)}return new q(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Ih(n){if(!n.length)return null;let t=0,e=n[0];for(let r=1;re.from||o.to=t){let l=new Ot(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(ui(l,t,e,!1))}}return s?Ih(s):i}class On{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Ot)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:i,buffer:s}=this.buffer;return this.type=e||s.set.types[s.buffer[t]],this.from=i+s.buffer[t+1],this.to=i+s.buffer[t+2],!0}yield(t){return t?t instanceof Ot?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&et.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&et.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&et.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(e.findChild(s,this.index,-1,0,4))}else{let s=e.buffer[this.index+3];if(s<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:s}=this;if(s){if(t>0){if(this.index-1)for(let r=e+t,o=t<0?-1:i._tree.children.length;r!=o;r+=t){let l=i._tree.children[r];if(this.mode&et.IncludeAnonymous||l instanceof fe||!l.type.isAnonymous||Xn(l))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==s){if(s==this.index)return o;e=o,i=r+1;break t}s=this.stack[--r]}for(let s=i;s=0;r--){if(r<0)return An(this.node,t,s);let o=i[e.buffer[this.stack[r]]];if(!o.isAnonymous){if(t[s]&&t[s]!=o.name)return!1;s--}}return!0}}function Xn(n){return n.children.some(t=>t instanceof fe||!t.type.isAnonymous||Xn(t))}function Ou(n){var t;let{buffer:e,nodeSet:i,maxBufferLength:s=Dh,reused:r=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(e)?new $n(e,e.length):e,h=i.types,a=0,f=0;function c(v,M,A,I,H,F){let{id:B,start:R,end:Q,size:U}=l,O=f;for(;U<0;)if(l.next(),U==-1){let Qt=r[B];A.push(Qt),I.push(R-v);return}else if(U==-3){a=B;return}else if(U==-4){f=B;return}else throw new RangeError(`Unrecognized record size: ${U}`);let J=h[B],Gt,de,dr=R-v;if(Q-R<=s&&(de=m(l.pos-M,H))){let Qt=new Uint16Array(de.size-de.skip),kt=l.pos-de.size,It=Qt.length;for(;l.pos>kt;)It=y(de.start,Qt,It);Gt=new fe(Qt,Q-de.start,i),dr=de.start-v}else{let Qt=l.pos-U;l.next();let kt=[],It=[],pe=B>=o?B:-1,Te=0,xi=Q;for(;l.pos>Qt;)pe>=0&&l.id==pe&&l.size>=0?(l.end<=xi-s&&(p(kt,It,R,Te,l.end,xi,pe,O),Te=kt.length,xi=l.end),l.next()):F>2500?u(R,Qt,kt,It):c(R,Qt,kt,It,pe,F+1);if(pe>=0&&Te>0&&Te-1&&Te>0){let pr=d(J);Gt=Zn(J,kt,It,0,kt.length,0,Q-R,pr,pr)}else Gt=g(J,kt,It,Q-R,O-Q)}A.push(Gt),I.push(dr)}function u(v,M,A,I){let H=[],F=0,B=-1;for(;l.pos>M;){let{id:R,start:Q,end:U,size:O}=l;if(O>4)l.next();else{if(B>-1&&Q=0;U-=3)R[O++]=H[U],R[O++]=H[U+1]-Q,R[O++]=H[U+2]-Q,R[O++]=O;A.push(new fe(R,H[2]-Q,i)),I.push(Q-v)}}function d(v){return(M,A,I)=>{let H=0,F=M.length-1,B,R;if(F>=0&&(B=M[F])instanceof q){if(!F&&B.type==v&&B.length==I)return B;(R=B.prop(E.lookAhead))&&(H=A[F]+B.length+R)}return g(v,M,A,I,H)}}function p(v,M,A,I,H,F,B,R){let Q=[],U=[];for(;v.length>I;)Q.push(v.pop()),U.push(M.pop()+A-H);v.push(g(i.types[B],Q,U,F-H,R-F)),M.push(H-A)}function g(v,M,A,I,H=0,F){if(a){let B=[E.contextHash,a];F=F?[B].concat(F):[B]}if(H>25){let B=[E.lookAhead,H];F=F?[B].concat(F):[B]}return new q(v,M,A,I,F)}function m(v,M){let A=l.fork(),I=0,H=0,F=0,B=A.end-s,R={size:0,start:0,skip:0};t:for(let Q=A.pos-v;A.pos>Q;){let U=A.size;if(A.id==M&&U>=0){R.size=I,R.start=H,R.skip=F,F+=4,I+=4,A.next();continue}let O=A.pos-U;if(U<0||O=o?4:0,Gt=A.start;for(A.next();A.pos>O;){if(A.size<0)if(A.size==-3)J+=4;else break t;else A.id>=o&&(J+=4);A.next()}H=Gt,I+=U,F+=J}return(M<0||I==v)&&(R.size=I,R.start=H,R.skip=F),R.size>4?R:void 0}function y(v,M,A){let{id:I,start:H,end:F,size:B}=l;if(l.next(),B>=0&&I4){let Q=l.pos-(B-4);for(;l.pos>Q;)A=y(v,M,A)}M[--A]=R,M[--A]=F-v,M[--A]=H-v,M[--A]=I}else B==-3?a=I:B==-4&&(f=I);return A}let b=[],S=[];for(;l.pos>0;)c(n.start||0,n.bufferStart||0,b,S,-1,0);let k=(t=n.length)!==null&&t!==void 0?t:b.length?S[0]+b[0].length:0;return new q(h[n.topID],b.reverse(),S.reverse(),k)}const So=new WeakMap;function Yi(n,t){if(!n.isAnonymous||t instanceof fe||t.type!=n)return 1;let e=So.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=n||!(i instanceof q)){e=1;break}e+=Yi(n,i)}So.set(t,e)}return e}function Zn(n,t,e,i,s,r,o,l,h){let a=0;for(let p=i;p=f)break;M+=A}if(S==k+1){if(M>f){let A=p[k];d(A.children,A.positions,0,A.children.length,g[k]+b);continue}c.push(p[k])}else{let A=g[S-1]+p[S-1].length-v;c.push(Zn(n,p,g,k,S,v,A,null,h))}u.push(v+b-r)}}return d(t,e,i,s,0),(l||h)(c,u,o)}class xe{constructor(t,e,i,s,r=!1,o=!1){this.from=t,this.to=e,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],i=!1){let s=[new xe(0,t.length,t,0,!1,i)];for(let r of e)r.to>t.length&&s.push(r);return s}static applyChanges(t,e,i=128){if(!e.length)return t;let s=[],r=1,o=t.length?t[0]:null;for(let l=0,h=0,a=0;;l++){let f=l=i)for(;o&&o.from=u.from||c<=u.to||a){let d=Math.max(u.from,h)-a,p=Math.min(u.to,c)-a;u=d>=p?null:new xe(d,p,u.tree,u.offset+a,l>0,!!f)}if(u&&s.push(u),o.to>c)break;o=rnew Is(s.from,s.to)):[new Is(0,0)]:[new Is(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let s=this.startParse(t,e,i);for(;;){let r=s.advance();if(r)return r}}}class Mu{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new E({perNode:!0});let Tu=0;class rt{constructor(t={}){this.id=Tu++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=di.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}}rt.closedBy=new rt({deserialize:n=>n.split(" ")});rt.openedBy=new rt({deserialize:n=>n.split(" ")});rt.group=new rt({deserialize:n=>n.split(" ")});rt.contextHash=new rt({perNode:!0});rt.lookAhead=new rt({perNode:!0});rt.mounted=new rt({perNode:!0});const Pu=Object.create(null);class di{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):Pu,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new di(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(rt.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return i=>{for(let s=i.prop(rt.group),r=-1;r<(s?s.length:0);r++){let o=e[r<0?i.name:s[r]];if(o)return o}}}}di.none=new di("",Object.create(null),0,8);var vo;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(vo||(vo={}));new rt({perNode:!0});let Du=0;class Ht{constructor(t,e,i){this.set=t,this.base=e,this.modified=i,this.id=Du++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let e=new Ht([],null,[]);if(e.set.push(e),t)for(let i of t.set)e.set.push(i);return e}static defineModifier(){let t=new ns;return e=>e.modified.indexOf(t)>-1?e:ns.get(e.base||e,e.modified.concat(t).sort((i,s)=>i.id-s.id))}}let Bu=0;class ns{constructor(){this.instances=[],this.id=Bu++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(l=>l.base==t&&Ru(e,l.modified));if(i)return i;let s=[],r=new Ht(s,t,e);for(let l of e)l.instances.push(r);let o=Eu(e);for(let l of t.set)if(!l.modified.length)for(let h of o)s.push(ns.get(l,h));return r}}function Ru(n,t){return n.length==t.length&&n.every((e,i)=>e==t[i])}function Eu(n){let t=[[]];for(let e=0;ei.length-e.length)}function Nh(n){let t=Object.create(null);for(let e in n){let i=n[e];Array.isArray(i)||(i=[i]);for(let s of e.split(" "))if(s){let r=[],o=2,l=s;for(let c=0;;){if(l=="..."&&c>0&&c+3==s.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+s);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==s.length)break;let d=s[c++];if(c==s.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+s);l=s.slice(c)}let h=r.length-1,a=r[h];if(!a)throw new RangeError("Invalid path: "+s);let f=new rs(i,o,h>0?r.slice(0,h):null);t[a]=f.sort(t[a])}}return Lh.add(t)}const Lh=new rt;class rs{constructor(t,e,i,s){this.tags=t,this.mode=e,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=s;for(let l of r)for(let h of l.set){let a=e[h.id];if(a){o=o?o+" "+a:a;break}}return o},scope:i}}function Iu(n,t){let e=null;for(let i of n){let s=i.style(t);s&&(e=e?e+" "+s:s)}return e}function Nu(n,t,e,i=0,s=n.length){let r=new Lu(i,Array.isArray(t)?t:[t],e);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s)}class Lu{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,s,r){let{type:o,from:l,to:h}=t;if(l>=i||h<=e)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let a=s,f=Vu(t)||rs.empty,c=Iu(r,f.tags);if(c&&(a&&(a+=" "),a+=c,f.mode==1&&(s+=(s?" ":"")+c)),this.startSpan(t.from,a),f.opaque)return;let u=t.tree&&t.tree.prop(rt.mounted);if(u&&u.overlay){let d=t.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(m=>!m.scope||m.scope(u.tree.type)),g=t.firstChild();for(let m=0,y=l;;m++){let b=m=S||!t.nextSibling())););if(!b||S>i)break;y=b.to+l,y>e&&(this.highlightRange(d.cursor(),Math.max(e,b.from+l),Math.min(i,y),s,p),this.startSpan(y,a))}g&&t.parent()}else if(t.firstChild()){do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,s,r),this.startSpan(Math.min(i,t.to),a)}while(t.nextSibling());t.parent()}}}function Vu(n){let t=n.type.prop(Lh);for(;t&&t.context&&!n.matchContext(t.context);)t=t.next;return t||null}const x=Ht.define,Ii=x(),te=x(),Co=x(te),Ao=x(te),ee=x(),Ni=x(ee),Ns=x(ee),Ft=x(),ge=x(Ft),Lt=x(),Vt=x(),Mn=x(),_e=x(Mn),Li=x(),T={comment:Ii,lineComment:x(Ii),blockComment:x(Ii),docComment:x(Ii),name:te,variableName:x(te),typeName:Co,tagName:x(Co),propertyName:Ao,attributeName:x(Ao),className:x(te),labelName:x(te),namespace:x(te),macroName:x(te),literal:ee,string:Ni,docString:x(Ni),character:x(Ni),attributeValue:x(Ni),number:Ns,integer:x(Ns),float:x(Ns),bool:x(ee),regexp:x(ee),escape:x(ee),color:x(ee),url:x(ee),keyword:Lt,self:x(Lt),null:x(Lt),atom:x(Lt),unit:x(Lt),modifier:x(Lt),operatorKeyword:x(Lt),controlKeyword:x(Lt),definitionKeyword:x(Lt),moduleKeyword:x(Lt),operator:Vt,derefOperator:x(Vt),arithmeticOperator:x(Vt),logicOperator:x(Vt),bitwiseOperator:x(Vt),compareOperator:x(Vt),updateOperator:x(Vt),definitionOperator:x(Vt),typeOperator:x(Vt),controlOperator:x(Vt),punctuation:Mn,separator:x(Mn),bracket:_e,angleBracket:x(_e),squareBracket:x(_e),paren:x(_e),brace:x(_e),content:Ft,heading:ge,heading1:x(ge),heading2:x(ge),heading3:x(ge),heading4:x(ge),heading5:x(ge),heading6:x(ge),contentSeparator:x(Ft),list:x(Ft),quote:x(Ft),emphasis:x(Ft),strong:x(Ft),link:x(Ft),monospace:x(Ft),strikethrough:x(Ft),inserted:x(),deleted:x(),changed:x(),invalid:x(),meta:Li,documentMeta:x(Li),annotation:x(Li),processingInstruction:x(Li),definition:Ht.defineModifier(),constant:Ht.defineModifier(),function:Ht.defineModifier(),standard:Ht.defineModifier(),local:Ht.defineModifier(),special:Ht.defineModifier()};Vh([{tag:T.link,class:"tok-link"},{tag:T.heading,class:"tok-heading"},{tag:T.emphasis,class:"tok-emphasis"},{tag:T.strong,class:"tok-strong"},{tag:T.keyword,class:"tok-keyword"},{tag:T.atom,class:"tok-atom"},{tag:T.bool,class:"tok-bool"},{tag:T.url,class:"tok-url"},{tag:T.labelName,class:"tok-labelName"},{tag:T.inserted,class:"tok-inserted"},{tag:T.deleted,class:"tok-deleted"},{tag:T.literal,class:"tok-literal"},{tag:T.string,class:"tok-string"},{tag:T.number,class:"tok-number"},{tag:[T.regexp,T.escape,T.special(T.string)],class:"tok-string2"},{tag:T.variableName,class:"tok-variableName"},{tag:T.local(T.variableName),class:"tok-variableName tok-local"},{tag:T.definition(T.variableName),class:"tok-variableName tok-definition"},{tag:T.special(T.variableName),class:"tok-variableName2"},{tag:T.definition(T.propertyName),class:"tok-propertyName tok-definition"},{tag:T.typeName,class:"tok-typeName"},{tag:T.namespace,class:"tok-namespace"},{tag:T.className,class:"tok-className"},{tag:T.macroName,class:"tok-macroName"},{tag:T.propertyName,class:"tok-propertyName"},{tag:T.operator,class:"tok-operator"},{tag:T.comment,class:"tok-comment"},{tag:T.meta,class:"tok-meta"},{tag:T.invalid,class:"tok-invalid"},{tag:T.punctuation,class:"tok-punctuation"}]);const Tn="ͼ",Oo=typeof Symbol>"u"?"__"+Tn:Symbol.for(Tn),Pn=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Mo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class To{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(g=>o.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(s(o),t[o],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=Mo[Oo]||1;return Mo[Oo]=t+1,Tn+t.toString(36)}static mount(t,e){(t[Pn]||new Fu(t)).mount(Array.isArray(e)?e:[e])}}let Vi=null;class Fu{constructor(t){if(!t.head&&t.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Vi)return t.adoptedStyleSheets=[Vi.sheet].concat(t.adoptedStyleSheets),t[Pn]=Vi;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),Vi=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[Pn]=this}mount(t){let e=this.sheet,i=0,s=0;for(let r=0;r-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,o),e)for(let h=0;ht.concat(n):void 0})}const Hu=new E;class St{constructor(t,e,i=[],s=""){this.data=t,this.name=s,N.prototype.hasOwnProperty("tree")||Object.defineProperty(N.prototype,"tree",{get(){return ft(this)}}),this.parser=e,this.extension=[ce.of(this),N.languageData.of((r,o,l)=>{let h=Po(r,o,l),a=h.type.prop(we);if(!a)return[];let f=r.facet(a),c=h.type.prop(Hu);if(c){let u=h.resolve(o-h.from,l);for(let d of c)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(f)}}return f})].concat(i)}isActiveAt(t,e,i=-1){return Po(t,e,i).type.prop(we)==this.data}findRegions(t){let e=t.facet(ce);if((e==null?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],s=(r,o)=>{if(r.prop(we)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(E.mounted);if(l){if(l.tree.prop(we)==this.data){if(l.overlay)for(let h of l.overlay)i.push({from:h.from+o,to:h.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let h=i.length;if(s(l.tree,l.overlay[0].from+o),i.length>h)return}}for(let h=0;hi.isTop?e:void 0)]}),t.name)}configure(t,e){return new os(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ft(n){let t=n.field(St.state,!1);return t?t.tree:q.empty}class zu{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let $e=null;class qe{constructor(t,e,i=[],s,r,o,l,h){this.parser=t,this.state=e,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=h,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new qe(t,e,[],q.empty,0,i,[],null)}startParse(){return this.parser.startParse(new zu(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=q.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(xe.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=$e;$e=this;try{return t()}finally{$e=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=Do(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let h=[];if(t.iterChangedRanges((a,f,c,u)=>h.push({fromA:a,toA:f,fromB:c,toB:u})),i=xe.applyChanges(i,h),s=q.empty,r=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let a of this.skipped){let f=t.mapPos(a.from,1),c=t.mapPos(a.to,-1);ft.from&&(this.fragments=Do(this.fragments,s,r),this.skipped.splice(i--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends tr{createParse(e,i,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let h=$e;if(h){for(let a of s)h.tempSkipped.push(a);t&&(h.scheduleOn=h.scheduleOn?Promise.all([h.scheduleOn,t]):t)}return this.parsedPos=o,new q(wt.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return $e}}function Do(n,t,e){return xe.applyChanges(n,[{fromA:t,toA:e,fromB:t,toB:e}])}class Ke{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Ke(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=qe.create(t.facet(ce).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Ke(i)}}St.state=Tt.define({create:Ke.init,update(n,t){for(let e of t.effects)if(e.is(St.setState))return e.value;return t.startState.facet(ce)!=t.state.facet(ce)?Ke.init(t.state):n.apply(t)}});let Hh=n=>{let t=setTimeout(()=>n(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Hh=n=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(n,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const Vs=typeof navigator<"u"&&(!((Ls=navigator.scheduling)===null||Ls===void 0)&&Ls.isInputPending)?()=>navigator.scheduling.isInputPending():null,Wu=Rt.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(St.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(St.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=Hh(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnds+1e3,h=r.context.work(()=>Vs&&Vs()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-e,(h||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:St.setState.of(new Ke(r.context))})),this.chunkBudget>0&&!(h&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>bt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),ce=P.define({combine(n){return n.length?n[0]:null},enables:n=>[St.state,Wu,D.contentAttributes.compute([n],t=>{let e=t.facet(n);return e&&e.name?{"data-language":e.name}:{}})]});class ju{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const zh=P.define(),er=P.define({combine:n=>{if(!n.length)return" ";let t=n[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return t}});function Ue(n){let t=n.facet(er);return t.charCodeAt(0)==9?n.tabSize*t.length:t.length}function Dn(n,t){let e="",i=n.tabSize,s=n.facet(er)[0];if(s==" "){for(;t>=i;)e+=" ",t-=i;s=" "}for(let r=0;r=t?qu(n,e,t):null}class ir{constructor(t,e={}){this.state=t,this.options=e,this.unit=Ue(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==t?{text:"",from:t}:(e<0?s-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return jn(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:s}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const jh=new E;function qu(n,t,e){let i=t.resolveStack(e),s=i.node.enterUnfinishedNodesBefore(e);if(s!=i.node){let r=[];for(let o=s;o!=i.node;o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return qh(i,n,e)}function qh(n,t,e){for(let i=n;i;i=i.next){let s=Uu(i.node);if(s)return s(sr.create(t,e,i))}return 0}function Ku(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Uu(n){let t=n.type.prop(jh);if(t)return t;let e=n.firstChild,i;if(e&&(i=e.type.prop(E.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>Yu(o,!0,1,void 0,r&&!Ku(o)?s.from:void 0)}return n.parent==null?Gu:null}function Gu(){return 0}class sr extends ir{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new sr(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Qu(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return qh(this.context.next,this.base,this.pos)}}function Qu(n,t){for(let e=t;e;e=e.parent)if(n==e)return!0;return!1}function Ju(n){let t=n.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(e.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let l=e.to;;){let h=t.childAfter(l);if(!h||h==i)return null;if(!h.type.isSkipped)return h.from{let i=n&&n.test(e.textAfter);return e.baseIndent+(i?0:t*e.unit)}}const _u=200;function $u(){return N.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let t=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!t.length)return n;let e=n.newDoc,{head:i}=n.newSelection.main,s=e.lineAt(i);if(i>s.from+_u)return n;let r=e.sliceString(s.from,i);if(!t.some(a=>a.test(r)))return n;let{state:o}=n,l=-1,h=[];for(let{head:a}of o.selection.ranges){let f=o.doc.lineAt(a);if(f.from==l)continue;l=f.from;let c=Wh(o,f.from);if(c==null)continue;let u=/^\s*/.exec(f.text)[0],d=Dn(o,c);u!=d&&h.push({from:f.from,to:f.from+u.length,insert:d})}return h.length?[n,{changes:h,sequential:!0}]:n})}const Xu=P.define(),Kh=new E;function Zu(n){let t=n.firstChild,e=n.lastChild;return t&&t.toe)continue;if(r&&l.from=t&&a.to>e&&(r=a)}}return r}function ed(n){let t=n.lastChild;return t&&t.to==n.to&&t.type.isError}function Ro(n,t,e){for(let i of n.facet(Xu)){let s=i(n,t,e);if(s)return s}return td(n,t,e)}function Uh(n,t){let e=t.mapPos(n.from,1),i=t.mapPos(n.to,-1);return e>=i?void 0:{from:e,to:i}}const Gh=j.define({map:Uh}),nr=j.define({map:Uh}),ls=Tt.define({create(){return K.none},update(n,t){n=n.map(t.changes);for(let e of t.effects)if(e.is(Gh)&&!id(n,e.value.from,e.value.to)){let{preparePlaceholder:i}=t.state.facet(Qh),s=i?K.replace({widget:new rd(i(t.state,e.value))}):Eo;n=n.update({add:[s.range(e.value.from,e.value.to)]})}else e.is(nr)&&(n=n.update({filter:(i,s)=>e.value.from!=i||e.value.to!=s,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:i}=t.selection.main;n.between(i,i,(s,r)=>{si&&(e=!0)}),e&&(n=n.update({filterFrom:i,filterTo:i,filter:(s,r)=>r<=i||s>=i}))}return n},provide:n=>D.decorations.from(n),toJSON(n,t){let e=[];return n.between(0,t.doc.length,(i,s)=>{e.push(i,s)}),e},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!s||s.from>r)&&(s={from:r,to:o})}),s}function id(n,t,e){let i=!1;return n.between(t,t,(s,r)=>{s==t&&r==e&&(i=!0)}),i}const sd={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Qh=P.define({combine(n){return ms(n,sd)}});function nd(n){return[ls,hd]}function Jh(n,t){let{state:e}=n,i=e.facet(Qh),s=o=>{let l=n.lineBlockAt(n.posAtDOM(o.target)),h=Bn(n.state,l.from,l.to);h&&n.dispatch({effects:nr.of(h)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,t);let r=document.createElement("span");return r.textContent=i.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const Eo=K.replace({widget:new class extends yi{toDOM(n){return Jh(n,null)}}});class rd extends yi{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Jh(t,this.value)}}const od={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Fs extends Oe{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function ld(n={}){let t=Object.assign(Object.assign({},od),n),e=new Fs(t,!0),i=new Fs(t,!1),s=Rt.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(ce)!=o.state.facet(ce)||o.startState.field(ls,!1)!=o.state.field(ls,!1)||ft(o.startState)!=ft(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new He;for(let h of o.viewportLineBlocks){let a=Bn(o.state,h.from,h.to)?i:Ro(o.state,h.from,h.to)?e:null;a&&l.add(h.from,h.from,a)}return l.finish()}}),{domEventHandlers:r}=t;return[s,mu({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(s))===null||l===void 0?void 0:l.markers)||L.empty},initialSpacer(){return new Fs(t,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(o,l,h)=>{if(r.click&&r.click(o,l,h))return!0;let a=Bn(o.state,l.from,l.to);if(a)return o.dispatch({effects:nr.of(a)}),!0;let f=Ro(o.state,l.from,l.to);return f?(o.dispatch({effects:Gh.of(f)}),!0):!1}})}),nd()]}const hd=D.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ws{constructor(t,e){this.specs=t;let i;function s(l){let h=To.newName();return(i||(i=Object.create(null)))["."+h]=l,h}const r=typeof e.all=="string"?e.all:e.all?s(e.all):void 0,o=e.scope;this.scope=o instanceof St?l=>l.prop(we)==o.data:o?l=>l==o:void 0,this.style=Vh(t.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new To(i):null,this.themeType=e.themeType}static define(t,e){return new ws(t,e||{})}}const Rn=P.define(),Yh=P.define({combine(n){return n.length?[n[0]]:null}});function Hs(n){let t=n.facet(Rn);return t.length?t:n.facet(Yh)}function ad(n,t){let e=[cd],i;return n instanceof ws&&(n.module&&e.push(D.styleModule.of(n.module)),i=n.themeType),t!=null&&t.fallback?e.push(Yh.of(n)):i?e.push(Rn.computeN([D.darkTheme],s=>s.facet(D.darkTheme)==(i=="dark")?[n]:[])):e.push(Rn.of(n)),e}class fd{constructor(t){this.markCache=Object.create(null),this.tree=ft(t.state),this.decorations=this.buildDeco(t,Hs(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=ft(t.state),i=Hs(t.state),s=i!=Hs(t.startState),{viewport:r}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length=r.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=r.to)}buildDeco(t,e){if(!e||!this.tree.length)return K.none;let i=new He;for(let{from:s,to:r}of t.visibleRanges)Nu(this.tree,e,(o,l,h)=>{i.add(o,l,this.markCache[h]||(this.markCache[h]=K.mark({class:h})))},s,r);return i.finish()}}const cd=mi.high(Rt.fromClass(fd,{decorations:n=>n.decorations})),ud=D.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),_h=1e4,$h="()[]{}",Xh=P.define({combine(n){return ms(n,{afterCursor:!0,brackets:$h,maxScanDistance:_h,renderMatch:gd})}}),dd=K.mark({class:"cm-matchingBracket"}),pd=K.mark({class:"cm-nonmatchingBracket"});function gd(n){let t=[],e=n.matched?dd:pd;return t.push(e.range(n.start.from,n.start.to)),n.end&&t.push(e.range(n.end.from,n.end.to)),t}const md=Tt.define({create(){return K.none},update(n,t){if(!t.docChanged&&!t.selection)return n;let e=[],i=t.state.facet(Xh);for(let s of t.state.selection.ranges){if(!s.empty)continue;let r=Fi(t.state,s.head,-1,i)||s.head>0&&Fi(t.state,s.head-1,1,i)||i.afterCursor&&(Fi(t.state,s.head,1,i)||s.headD.decorations.from(n)}),yd=[md,ud];function bd(n={}){return[Xh.of(n),yd]}const wd=new E;function En(n,t,e){let i=n.prop(t<0?E.openedBy:E.closedBy);if(i)return i;if(n.name.length==1){let s=e.indexOf(n.name);if(s>-1&&s%2==(t<0?1:0))return[e[s+t]]}return null}function In(n){let t=n.type.prop(wd);return t?t(n.node):n}function Fi(n,t,e,i={}){let s=i.maxScanDistance||_h,r=i.brackets||$h,o=ft(n),l=o.resolveInner(t,e);for(let h=l;h;h=h.parent){let a=En(h.type,e,r);if(a&&h.from0?t>=f.from&&tf.from&&t<=f.to))return kd(n,t,e,h,f,a,r)}}return xd(n,t,e,o,l.type,s,r)}function kd(n,t,e,i,s,r,o){let l=i.parent,h={from:s.from,to:s.to},a=0,f=l==null?void 0:l.cursor();if(f&&(e<0?f.childBefore(i.from):f.childAfter(i.to)))do if(e<0?f.to<=i.from:f.from>=i.to){if(a==0&&r.indexOf(f.type.name)>-1&&f.from0)return null;let a={from:e<0?t-1:t,to:e>0?t+1:t},f=n.doc.iterRange(t,e>0?n.doc.length:0),c=0;for(let u=0;!f.next().done&&u<=r;){let d=f.value;e<0&&(u+=d.length);let p=t+u*e;for(let g=e>0?0:d.length-1,m=e>0?d.length:-1;g!=m;g+=e){let y=o.indexOf(d[g]);if(!(y<0||i.resolveInner(p+g,1).type!=s))if(y%2==0==e>0)c++;else{if(c==1)return{start:a,end:{from:p+g,to:p+g+1},matched:y>>1==h>>1};c--}}e>0&&(u+=d.length)}return f.done?{start:a,matched:!1}:null}function Io(n,t,e,i=0,s=0){t==null&&(t=n.search(/[^\s\u00a0]/),t==-1&&(t=n.length));let r=s;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,t.length);return s(r)==s(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let s=this.string.slice(this.pos).match(t);return s&&s.index>0?null:(s&&e!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function Sd(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||vd,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||lr}}function vd(n){if(typeof n!="object")return n;let t={};for(let e in n){let i=n[e];t[e]=i instanceof Array?i.slice():i}return t}const No=new WeakMap;class rr extends St{constructor(t){let e=Fh(t.languageData),i=Sd(t),s,r=new class extends tr{createParse(o,l,h){return new Ad(s,o,l,h)}};super(e,r,[zh.of((o,l)=>this.getIndent(o,l))],t.name),this.topNode=Td(e),s=this,this.streamParser=i,this.stateAfter=new E({perNode:!0}),this.tokenTable=t.tokenTable?new sa(i.tokenTable):Md}static define(t){return new rr(t)}getIndent(t,e){let i=ft(t.state),s=i.resolve(e);for(;s&&s.type!=this.topNode;)s=s.parent;if(!s)return null;let r,{overrideIndentation:o}=t.options;o&&(r=No.get(t.state),r!=null&&r1e4)return null;for(;h=i&&e+t.length<=s&&t.prop(n.stateAfter);if(r)return{state:n.streamParser.copyState(r),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],h=e+t.positions[o],a=l instanceof q&&h=t.length)return t;!s&&t.type==n.topNode&&(s=!0);for(let r=t.children.length-1;r>=0;r--){let o=t.positions[r],l=t.children[r],h;if(oe&&or(n,s.tree,0-s.offset,e,o),h;if(l&&(h=ta(n,s.tree,e+s.offset,l.pos+s.offset,!1)))return{state:l.state,tree:h}}return{state:n.streamParser.startState(i?Ue(i):4),tree:q.empty}}let Ad=class{constructor(t,e,i,s){this.lang=t,this.input=e,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=qe.get(),o=s[0].from,{state:l,tree:h}=Cd(t,i,o,r==null?void 0:r.state);this.state=l,this.parsedPos=this.chunkStart=o+h.length;for(let a=0;a=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==` +import{s as ja,z as Gs,h as gr,b as qa,j as mr,k as yr,f as Cs,d as Ka,E as br,H as De,m as Ua,i as Ga,n as wr,D as kr,c as xr,r as Qa,V as _a,A as Sr,N as Ya}from"./scheduler.C46pS-76.js";import{S as Ja,i as Xa,t as Ki,g as $a,b as Qs,e as Za,c as tf,a as ef,m as sf,d as nf}from"./index.dOVbn71B.js";import{g as rf}from"./spread.CgU5AtxT.js";import{B as of}from"./button.C_N-TSlx.js";import{c as lf}from"./copy-to-clipboard.VBIGxkFt.js";import{u as hf}from"./dark-mode.BvUzLjRz.js";import{p as af,s as ff}from"./parse-with-big-int.BKSBwM2t.js";import{c as it}from"./icon.CfkHLDdJ.js";import{t as vr}from"./tw-merge.Ds6tgvmq.js";class F{lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,!1,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,!0,1,0)}replace(t,e,i){[t,e]=He(this,t,e);let s=[];return this.decompose(0,t,s,2),i.length&&i.decompose(0,i.length,s,3),this.decompose(e,this.length,s,1),jt.from(s,this.length-(e-t)+i.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){[t,e]=He(this,t,e);let i=[];return this.decompose(t,e,i,0),jt.from(i,e-t)}eq(t){if(t==this)return!0;if(t.length!=this.length||t.lines!=this.lines)return!1;let e=this.scanIdentical(t,1),i=this.length-this.scanIdentical(t,-1),s=new si(this),r=new si(t);for(let o=e,l=e;;){if(s.next(o),r.next(o),o=0,s.lineBreak!=r.lineBreak||s.done!=r.done||s.value!=r.value)return!1;if(l+=s.value.length,s.done||l>=i)return!0}}iter(t=1){return new si(this,t)}iterRange(t,e=this.length){return new dl(this,t,e)}iterLines(t,e){let i;if(t==null)i=this.iter();else{e==null&&(e=this.lines+1);let s=this.line(t).from;i=this.iterRange(s,Math.max(s,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new pl(i)}toString(){return this.sliceString(0)}toJSON(){let t=[];return this.flatten(t),t}constructor(){}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");return t.length==1&&!t[0]?F.empty:t.length<=32?new Y(t):jt.from(Y.split(t,[]))}}class Y extends F{constructor(t,e=cf(t)){super(),this.text=t,this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.text[r],l=s+o.length;if((e?i:l)>=t)return new uf(s,l,i,o);s=l+1,i++}}decompose(t,e,i,s){let r=t<=0&&e>=this.length?this:new Y(Cr(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(s&1){let o=i.pop(),l=Ui(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new Y(l,o.length+r.length));else{let h=l.length>>1;i.push(new Y(l.slice(0,h)),new Y(l.slice(h)))}}else i.push(r)}replace(t,e,i){if(!(i instanceof Y))return super.replace(t,e,i);[t,e]=He(this,t,e);let s=Ui(this.text,Ui(i.text,Cr(this.text,0,t)),e),r=this.length+i.length-(e-t);return s.length<=32?new Y(s,r):jt.from(Y.split(s,[]),r)}sliceString(t,e=this.length,i=` +`){[t,e]=He(this,t,e);let s="";for(let r=0,o=0;r<=e&&ot&&o&&(s+=i),tr&&(s+=l.slice(Math.max(0,t-r),e-r)),r=h+1}return s}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let i=[],s=-1;for(let r of t)i.push(r),s+=r.length+1,i.length==32&&(e.push(new Y(i,s)),i=[],s=-1);return s>-1&&e.push(new Y(i,s)),e}}class jt extends F{constructor(t,e){super(),this.children=t,this.length=e,this.lines=0;for(let i of t)this.lines+=i.lines}lineInner(t,e,i,s){for(let r=0;;r++){let o=this.children[r],l=s+o.length,h=i+o.lines-1;if((e?h:l)>=t)return o.lineInner(t,e,i,s);s=l+1,i=h+1}}decompose(t,e,i,s){for(let r=0,o=0;o<=e&&r=o){let a=s&((o<=t?1:0)|(h>=e?2:0));o>=t&&h<=e&&!a?i.push(l):l.decompose(t-o,e-o,i,a)}o=h+1}}replace(t,e,i){if([t,e]=He(this,t,e),i.lines=r&&e<=l){let h=o.replace(t-r,e-r,i),a=this.lines-o.lines+h.lines;if(h.lines>4&&h.lines>a>>6){let f=this.children.slice();return f[s]=h,new jt(f,this.length-(e-t)+i.length)}return super.replace(r,l,h)}r=l+1}return super.replace(t,e,i)}sliceString(t,e=this.length,i=` +`){[t,e]=He(this,t,e);let s="";for(let r=0,o=0;rt&&r&&(s+=i),to&&(s+=l.sliceString(t-o,e-o,i)),o=h+1}return s}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof jt))return 0;let i=0,[s,r,o,l]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;s+=e,r+=e){if(s==o||r==l)return i;let h=this.children[s],a=t.children[r];if(h!=a)return i+h.scanIdentical(a,e);i+=h.length+1}}static from(t,e=t.reduce((i,s)=>i+s.length+1,-1)){let i=0;for(let d of t)i+=d.lines;if(i<32){let d=[];for(let p of t)p.flatten(d);return new Y(d,e)}let s=Math.max(32,i>>5),r=s<<1,o=s>>1,l=[],h=0,a=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof jt)for(let g of d.children)c(g);else d.lines>o&&(h>o||!h)?(u(),l.push(d)):d instanceof Y&&h&&(p=f[f.length-1])instanceof Y&&d.lines+p.lines<=32?(h+=d.lines,a+=d.length+1,f[f.length-1]=new Y(p.text.concat(d.text),p.length+1+d.length)):(h+d.lines>s&&u(),h+=d.lines,a+=d.length+1,f.push(d))}function u(){h!=0&&(l.push(f.length==1?f[0]:jt.from(f,a)),a=-1,h=f.length=0)}for(let d of t)c(d);return u(),l.length==1?l[0]:new jt(l,e)}}F.empty=new Y([""],0);function cf(n){let t=-1;for(let e of n)t+=e.length+1;return t}function Ui(n,t,e=0,i=1e9){for(let s=0,r=0,o=!0;r=e&&(h>i&&(l=l.slice(0,i-s)),s0?1:(t instanceof Y?t.text.length:t.children.length)<<1]}nextInner(t,e){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,s=this.nodes[i],r=this.offsets[i],o=r>>1,l=s instanceof Y?s.text.length:s.children.length;if(o==(e>0?l:0)){if(i==0)return this.done=!0,this.value="",this;e>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(e>0?0:1)){if(this.offsets[i]+=e,t==0)return this.lineBreak=!0,this.value=` +`,this;t--}else if(s instanceof Y){let h=s.text[o+(e<0?-1:0)];if(this.offsets[i]+=e,h.length>Math.max(0,t))return this.value=t==0?h:e>0?h.slice(t):h.slice(0,h.length-t),this;t-=h.length}else{let h=s.children[o+(e<0?-1:0)];t>h.length?(t-=h.length,this.offsets[i]+=e):(e<0&&this.offsets[i]--,this.nodes.push(h),this.offsets.push(e>0?1:(h instanceof Y?h.text.length:h.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class dl{constructor(t,e,i){this.value="",this.done=!1,this.cursor=new si(t,e>i?-1:1),this.pos=e>i?t.length:0,this.from=Math.min(e,i),this.to=Math.max(e,i)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let i=e<0?this.pos-this.from:this.to-this.pos;t>i&&(t=i),i-=t;let{value:s}=this.cursor.next(t);return this.pos+=(s.length+t)*e,this.value=s.length<=i?s:e<0?s.slice(s.length-i):s.slice(0,i),this.done=!this.value,this}next(t=0){return t<0?t=Math.max(t,this.from-this.pos):t>0&&(t=Math.min(t,this.to-this.pos)),this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class pl{constructor(t){this.inner=t,this.afterBreak=!0,this.value="",this.done=!1}next(t=0){let{done:e,lineBreak:i,value:s}=this.inner.next(t);return e&&this.afterBreak?(this.value="",this.afterBreak=!1):e?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=s,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(F.prototype[Symbol.iterator]=function(){return this.iter()},si.prototype[Symbol.iterator]=dl.prototype[Symbol.iterator]=pl.prototype[Symbol.iterator]=function(){return this});class uf{constructor(t,e,i,s){this.from=t,this.to=e,this.number=i,this.text=s}get length(){return this.to-this.from}}function He(n,t,e){return t=Math.max(0,Math.min(n.length,t)),[t,Math.max(t,Math.min(n.length,e))]}let Ee="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(n=>n?parseInt(n,36):1);for(let n=1;nn)return Ee[t-1]<=n;return!1}function Ar(n){return n>=127462&&n<=127487}const Or=8205;function at(n,t,e=!0,i=!0){return(e?gl:pf)(n,t,i)}function gl(n,t,e){if(t==n.length)return t;t&&ml(n.charCodeAt(t))&&yl(n.charCodeAt(t-1))&&t--;let i=bt(n,t);for(t+=qt(i);t=0&&Ar(bt(n,o));)r++,o-=2;if(r%2==0)break;t+=2}else break}return t}function pf(n,t,e){for(;t>0;){let i=gl(n,t-2,e);if(i=56320&&n<57344}function yl(n){return n>=55296&&n<56320}function bt(n,t){let e=n.charCodeAt(t);if(!yl(e)||t+1==n.length)return e;let i=n.charCodeAt(t+1);return ml(i)?(e-55296<<10)+(i-56320)+65536:e}function bl(n){return n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode((n>>10)+55296,(n&1023)+56320))}function qt(n){return n<65536?1:2}const _s=/\r\n?|\n/;var pt=function(n){return n[n.Simple=0]="Simple",n[n.TrackDel=1]="TrackDel",n[n.TrackBefore=2]="TrackBefore",n[n.TrackAfter=3]="TrackAfter",n}(pt||(pt={}));class Gt{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return r+(t-s);r+=l}else{if(i!=pt.Simple&&a>=t&&(i==pt.TrackDel&&st||i==pt.TrackBefore&&st))return null;if(a>t||a==t&&e<0&&!l)return t==s||e<0?r:r+h;r+=h}s=a}if(t>s)throw new RangeError(`Position ${t} is out of range for changeset of length ${s}`);return r}touchesRange(t,e=t){for(let i=0,s=0;i=0&&s<=e&&l>=t)return se?"cover":!0;s=l}return!1}toString(){let t="";for(let e=0;e=0?":"+s:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(e=>typeof e!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Gt(t)}static create(t){return new Gt(t)}}class $ extends Gt{constructor(t,e){super(t),this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");return Ys(this,(e,i,s,r,o)=>t=t.replace(s,s+(i-e),o),!1),t}mapDesc(t,e=!1){return Js(this,t,e,!0)}invert(t){let e=this.sections.slice(),i=[];for(let s=0,r=0;s=0){e[s]=l,e[s+1]=o;let h=s>>1;for(;i.length0&&oe(i,e,r.text),r.forward(f),l+=f}let a=t[o++];for(;l>1].toJSON()))}return t}static of(t,e,i){let s=[],r=[],o=0,l=null;function h(f=!1){if(!f&&!s.length)return;ou||c<0||u>e)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${e})`);let p=d?typeof d=="string"?F.of(d.split(i||_s)):d:F.empty,g=p.length;if(c==u&&g==0)return;co&<(s,c-o,-1),lt(s,u-c,g),oe(r,s,p),o=u}}return a(t),h(!l),l}static empty(t){return new $(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],i=[];for(let s=0;sl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)e.push(r[0],0);else{for(;i.length=0&&e<=0&&e==n[s+1]?n[s]+=t:t==0&&n[s]==0?n[s+1]+=e:i?(n[s]+=t,n[s+1]+=e):n.push(t,e)}function oe(n,t,e){if(e.length==0)return;let i=t.length-2>>1;if(i>1])),!(e||o==n.sections.length||n.sections[o+1]<0);)l=n.sections[o++],h=n.sections[o++];t(s,a,r,f,c),s=a,r=f}}}function Js(n,t,e,i=!1){let s=[],r=i?[]:null,o=new li(n),l=new li(t);for(let h=-1;;)if(o.ins==-1&&l.ins==-1){let a=Math.min(o.len,l.len);lt(s,a,-1),o.forward(a),l.forward(a)}else if(l.ins>=0&&(o.ins<0||h==o.i||o.off==0&&(l.len=0&&h=0){let a=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);a+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lenh||o.ins>=0&&o.len>h)&&(l||i.length>a),r.forward2(h),o.forward(h)}}}}class li{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return e>=t.length?F.empty:t[e]}textBit(t){let{inserted:e}=this.set,i=this.i-2>>1;return i>=e.length&&!t?F.empty:e[i].slice(this.off,t==null?void 0:this.off+t)}forward(t){t==this.len?this.next():(this.len-=t,this.off+=t)}forward2(t){this.ins==-1?this.forward(t):t==this.ins?this.next():(this.ins-=t,this.off+=t)}}class be{constructor(t,e,i){this.from=t,this.to=e,this.flags=i}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let t=this.flags&7;return t==7?null:t}get goalColumn(){let t=this.flags>>6;return t==16777215?void 0:t}map(t,e=-1){let i,s;return this.empty?i=s=t.mapPos(this.from,e):(i=t.mapPos(this.from,1),s=t.mapPos(this.to,-1)),i==this.from&&s==this.to?this:new be(i,s,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return w.range(t,e);let i=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return w.range(this.anchor,i)}eq(t,e=!1){return this.anchor==t.anchor&&this.head==t.head&&(!e||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return w.range(t.anchor,t.head)}static create(t,e,i){return new be(t,e,i)}}class w{constructor(t,e){this.ranges=t,this.mainIndex=e}map(t,e=-1){return t.empty?this:w.create(this.ranges.map(i=>i.map(t,e)),this.mainIndex)}eq(t,e=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let i=0;it.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new w(t.ranges.map(e=>be.fromJSON(e)),t.main)}static single(t,e=t){return new w([w.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,s=0;st?8:0)|r)}static normalized(t,e=0){let i=t[e];t.sort((s,r)=>s.from-r.from),e=t.indexOf(i);for(let s=1;sr.head?w.range(h,l):w.range(l,h))}}return new w(t,e)}}function kl(n,t){for(let e of n.ranges)if(e.to>t)throw new RangeError("Selection points outside of document")}let zn=0;class T{constructor(t,e,i,s,r){this.combine=t,this.compareInput=e,this.compare=i,this.isStatic=s,this.id=zn++,this.default=t([]),this.extensions=typeof r=="function"?r(this):r}get reader(){return this}static define(t={}){return new T(t.combine||(e=>e),t.compareInput||((e,i)=>e===i),t.compare||(t.combine?(e,i)=>e===i:Wn),!!t.static,t.enables)}of(t){return new Gi([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Gi(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new Gi(t,this,2,e)}from(t,e){return e||(e=i=>i),this.compute([t],i=>e(i.field(t)))}}function Wn(n,t){return n==t||n.length==t.length&&n.every((e,i)=>e===t[i])}class Gi{constructor(t,e,i,s){this.dependencies=t,this.facet=e,this.type=i,this.value=s,this.id=zn++}dynamicSlot(t){var e;let i=this.value,s=this.facet.compareInput,r=this.id,o=t[r]>>1,l=this.type==2,h=!1,a=!1,f=[];for(let c of this.dependencies)c=="doc"?h=!0:c=="selection"?a=!0:((e=t[c.id])!==null&&e!==void 0?e:1)&1||f.push(t[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(h&&u.docChanged||a&&(u.docChanged||u.selection)||Xs(c,f)){let d=i(c);if(l?!Mr(d,c.values[o],s):!s(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let g=ts(u,p);if(this.dependencies.every(m=>m instanceof T?u.facet(m)===c.facet(m):m instanceof Dt?u.field(m,!1)==c.field(m,!1):!0)||(l?Mr(d=i(c),g,s):s(d=i(c),g)))return c.values[o]=g,0}else d=i(c);return c.values[o]=d,1}}}}function Mr(n,t,e){if(n.length!=t.length)return!1;for(let i=0;in[h.id]),s=e.map(h=>h.type),r=i.filter(h=>!(h&1)),o=n[t.id]>>1;function l(h){let a=[];for(let f=0;fi===s),t);return t.provide&&(e.provides=t.provide(e)),e}create(t){let e=t.facet(Tr).find(i=>i.field==this);return((e==null?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:i=>(i.values[e]=this.create(i),1),update:(i,s)=>{let r=i.values[e],o=this.updateF(r,s);return this.compareF(r,o)?0:(i.values[e]=o,1)},reconfigure:(i,s)=>s.config.address[this.id]!=null?(i.values[e]=s.field(this),0):(i.values[e]=this.create(i),1)}}init(t){return[this,Tr.of({field:this,create:t})]}get extension(){return this}}const ye={lowest:4,low:3,default:2,high:1,highest:0};function _e(n){return t=>new xl(t,n)}const yi={highest:_e(ye.highest),high:_e(ye.high),default:_e(ye.default),low:_e(ye.low),lowest:_e(ye.lowest)};class xl{constructor(t,e){this.inner=t,this.prec=e}}class ys{of(t){return new $s(this,t)}reconfigure(t){return ys.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class $s{constructor(t,e){this.compartment=t,this.inner=e}}class Zi{constructor(t,e,i,s,r,o){for(this.base=t,this.compartments=e,this.dynamicSlots=i,this.address=s,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,e,i){let s=[],r=Object.create(null),o=new Map;for(let u of mf(t,e,o))u instanceof Dt?s.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),h=[],a=[];for(let u of s)l[u.id]=a.length<<1,a.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,g=f&&f[u]||[];if(d.every(m=>m.type==0))if(l[p.id]=h.length<<1|1,Wn(g,d))h.push(i.facet(p));else{let m=p.combine(d.map(y=>y.value));h.push(i&&p.compare(m,i.facet(p))?i.facet(p):m)}else{for(let m of d)m.type==0?(l[m.id]=h.length<<1|1,h.push(m.value)):(l[m.id]=a.length<<1,a.push(y=>m.dynamicSlot(y)));l[p.id]=a.length<<1,a.push(m=>gf(m,p,d))}}let c=a.map(u=>u(l));return new Zi(t,o,c,l,h,r)}}function mf(n,t,e){let i=[[],[],[],[],[]],s=new Map;function r(o,l){let h=s.get(o);if(h!=null){if(h<=l)return;let a=i[h].indexOf(o);a>-1&&i[h].splice(a,1),o instanceof $s&&e.delete(o.compartment)}if(s.set(o,l),Array.isArray(o))for(let a of o)r(a,l);else if(o instanceof $s){if(e.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let a=t.get(o.compartment)||o.inner;e.set(o.compartment,a),r(a,l)}else if(o instanceof xl)r(o.inner,o.prec);else if(o instanceof Dt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof Gi)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,ye.default);else{let a=o.extension;if(!a)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(a,l)}}return r(n,ye.default),i.reduce((o,l)=>o.concat(l))}function ni(n,t){if(t&1)return 2;let e=t>>1,i=n.status[e];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;n.status[e]=4;let s=n.computeSlot(n,n.config.dynamicSlots[e]);return n.status[e]=2|s}function ts(n,t){return t&1?n.config.staticValues[t>>1]:n.values[t>>1]}const Sl=T.define(),Zs=T.define({combine:n=>n.some(t=>t),static:!0}),vl=T.define({combine:n=>n.length?n[0]:void 0,static:!0}),Cl=T.define(),Al=T.define(),Ol=T.define(),Ml=T.define({combine:n=>n.length?n[0]:!1});class te{constructor(t,e){this.type=t,this.value=e}static define(){return new yf}}class yf{of(t){return new te(this,t)}}class bf{constructor(t){this.map=t}of(t){return new j(this,t)}}class j{constructor(t,e){this.type=t,this.value=e}map(t){let e=this.type.map(this.value,t);return e===void 0?void 0:e==this.value?this:new j(this.type,e)}is(t){return this.type==t}static define(t={}){return new bf(t.map||(e=>e))}static mapEffects(t,e){if(!t.length)return t;let i=[];for(let s of t){let r=s.map(e);r&&i.push(r)}return i}}j.reconfigure=j.define();j.appendConfig=j.define();class Z{constructor(t,e,i,s,r,o){this.startState=t,this.changes=e,this.selection=i,this.effects=s,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&kl(i,e.newLength),r.some(l=>l.type==Z.time)||(this.annotations=r.concat(Z.time.of(Date.now())))}static create(t,e,i,s,r,o){return new Z(t,e,i,s,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(Z.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}Z.time=te.define();Z.userEvent=te.define();Z.addToHistory=te.define();Z.remote=te.define();function wf(n,t){let e=[];for(let i=0,s=0;;){let r,o;if(i=n[i]))r=n[i++],o=n[i++];else if(s=0;s--){let r=i[s](n);r instanceof Z?n=r:Array.isArray(r)&&r.length==1&&r[0]instanceof Z?n=r[0]:n=Pl(t,Ie(r),!1)}return n}function xf(n){let t=n.startState,e=t.facet(Ol),i=n;for(let s=e.length-1;s>=0;s--){let r=e[s](n);r&&Object.keys(r).length&&(i=Tl(i,tn(t,r,n.changes.newLength),!0))}return i==n?n:Z.create(t,n.changes,n.selection,i.effects,i.annotations,i.scrollIntoView)}const Sf=[];function Ie(n){return n==null?Sf:Array.isArray(n)?n:[n]}var vt=function(n){return n[n.Word=0]="Word",n[n.Space=1]="Space",n[n.Other=2]="Other",n}(vt||(vt={}));const vf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let en;try{en=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Cf(n){if(en)return en.test(n);for(let t=0;t"€"&&(e.toUpperCase()!=e.toLowerCase()||vf.test(e)))return!0}return!1}function Af(n){return t=>{if(!/\S/.test(t))return vt.Space;if(Cf(t))return vt.Word;for(let e=0;e-1)return vt.Word;return vt.Other}}class L{constructor(t,e,i,s,r,o){this.config=t,this.doc=e,this.selection=i,this.values=s,this.status=t.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ls.set(a,h)),e=null),s.set(l.value.compartment,l.value.extension)):l.is(j.reconfigure)?(e=null,i=l.value):l.is(j.appendConfig)&&(e=null,i=Ie(i).concat(l.value));let r;e?r=t.startState.values.slice():(e=Zi.resolve(i,s,this),r=new L(e,this.doc,this.selection,e.dynamicSlots.map(()=>null),(h,a)=>a.reconfigure(h,this),null).values);let o=t.startState.facet(Zs)?t.newSelection:t.newSelection.asSingle();new L(e,t.newDoc,o,r,(l,h)=>h.update(l,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(e=>({changes:{from:e.from,to:e.to,insert:t},range:w.cursor(e.from+t.length)}))}changeByRange(t){let e=this.selection,i=t(e.ranges[0]),s=this.changes(i.changes),r=[i.range],o=Ie(i.effects);for(let l=1;lo.spec.fromJSON(l,h)))}}return L.create({doc:t.doc,selection:w.fromJSON(t.selection),extensions:e.extensions?s.concat([e.extensions]):s})}static create(t={}){let e=Zi.resolve(t.extensions||[],new Map),i=t.doc instanceof F?t.doc:F.of((t.doc||"").split(e.staticFacet(L.lineSeparator)||_s)),s=t.selection?t.selection instanceof w?t.selection:w.single(t.selection.anchor,t.selection.head):w.single(0);return kl(s,i.length),e.staticFacet(Zs)||(s=s.asSingle()),new L(e,i,s,e.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(L.tabSize)}get lineBreak(){return this.facet(L.lineSeparator)||` +`}get readOnly(){return this.facet(Ml)}phrase(t,...e){for(let i of this.facet(L.phrases))if(Object.prototype.hasOwnProperty.call(i,t)){t=i[t];break}return e.length&&(t=t.replace(/\$(\$|\d*)/g,(i,s)=>{if(s=="$")return"$";let r=+(s||1);return!r||r>e.length?i:e[r-1]})),t}languageDataAt(t,e,i=-1){let s=[];for(let r of this.facet(Sl))for(let o of r(this,e,i))Object.prototype.hasOwnProperty.call(o,t)&&s.push(o[t]);return s}charCategorizer(t){return Af(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:i,length:s}=this.doc.lineAt(t),r=this.charCategorizer(t),o=t-i,l=t-i;for(;o>0;){let h=at(e,o,!1);if(r(e.slice(h,o))!=vt.Word)break;o=h}for(;ln.length?n[0]:4});L.lineSeparator=vl;L.readOnly=Ml;L.phrases=T.define({compare(n,t){let e=Object.keys(n),i=Object.keys(t);return e.length==i.length&&e.every(s=>n[s]==t[s])}});L.languageData=Sl;L.changeFilter=Cl;L.transactionFilter=Al;L.transactionExtender=Ol;ys.reconfigure=j.define();function bs(n,t,e={}){let i={};for(let s of n)for(let r of Object.keys(s)){let o=s[r],l=i[r];if(l===void 0)i[r]=o;else if(!(l===o||o===void 0))if(Object.hasOwnProperty.call(e,r))i[r]=e[r](l,o);else throw new Error("Config merge conflict for field "+r)}for(let s in t)i[s]===void 0&&(i[s]=t[s]);return i}class ve{eq(t){return this==t}range(t,e=t){return sn.create(t,e,this)}}ve.prototype.startSide=ve.prototype.endSide=0;ve.prototype.point=!1;ve.prototype.mapMode=pt.TrackDel;let sn=class Dl{constructor(t,e,i){this.from=t,this.to=e,this.value=i}static create(t,e,i){return new Dl(t,e,i)}};function nn(n,t){return n.from-t.from||n.value.startSide-t.value.startSide}class jn{constructor(t,e,i,s){this.from=t,this.to=e,this.value=i,this.maxPoint=s}get length(){return this.to[this.to.length-1]}findIndex(t,e,i,s=0){let r=i?this.to:this.from;for(let o=s,l=r.length;;){if(o==l)return o;let h=o+l>>1,a=r[h]-t||(i?this.value[h].endSide:this.value[h].startSide)-e;if(h==o)return a>=0?o:l;a>=0?l=h:o=h+1}}between(t,e,i,s){for(let r=this.findIndex(e,-1e9,!0),o=this.findIndex(i,1e9,!1,r);rd||u==d&&a.startSide>0&&a.endSide<=0)continue;(d-u||a.endSide-a.startSide)<0||(o<0&&(o=u),a.point&&(l=Math.max(l,d-u)),i.push(a),s.push(u-o),r.push(d-o))}return{mapped:i.length?new jn(s,r,i,l):null,pos:o}}}class V{constructor(t,e,i,s){this.chunkPos=t,this.chunk=e,this.nextLayer=i,this.maxPoint=s}static create(t,e,i,s){return new V(t,e,i,s)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:i=!1,filterFrom:s=0,filterTo:r=this.length}=t,o=t.filter;if(e.length==0&&!o)return this;if(i&&(e=e.slice().sort(nn)),this.isEmpty)return e.length?V.of(e):this;let l=new Bl(this,null,-1).goto(0),h=0,a=[],f=new ze;for(;l.value||h=0){let c=e[h++];f.addInner(c.from,c.to,c.value)||a.push(c)}else l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||rl.to||r=r&&t<=r+o.length&&o.between(r,t-r,e-r,i)===!1)return}this.nextLayer.between(t,e,i)}}iter(t=0){return hi.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return hi.from(t).goto(e)}static compare(t,e,i,s,r=-1){let o=t.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),l=e.filter(c=>c.maxPoint>0||!c.isEmpty&&c.maxPoint>=r),h=Pr(o,l,i),a=new Ye(o,h,r),f=new Ye(l,h,r);i.iterGaps((c,u,d)=>Dr(a,c,f,u,d,s)),i.empty&&i.length==0&&Dr(a,0,f,0,0,s)}static eq(t,e,i=0,s){s==null&&(s=999999999);let r=t.filter(f=>!f.isEmpty&&e.indexOf(f)<0),o=e.filter(f=>!f.isEmpty&&t.indexOf(f)<0);if(r.length!=o.length)return!1;if(!r.length)return!0;let l=Pr(r,o),h=new Ye(r,l,0).goto(i),a=new Ye(o,l,0).goto(i);for(;;){if(h.to!=a.to||!rn(h.active,a.active)||h.point&&(!a.point||!h.point.eq(a.point)))return!1;if(h.to>s)return!0;h.next(),a.next()}}static spans(t,e,i,s,r=-1){let o=new Ye(t,null,r).goto(e),l=e,h=o.openStart;for(;;){let a=Math.min(o.to,i);if(o.point){let f=o.activeForPoint(o.to),c=o.pointFroml&&(s.span(l,a,o.active,h),h=o.openEnd(a));if(o.to>i)return h+(o.point&&o.to>i?1:0);l=o.to,o.next()}}static of(t,e=!1){let i=new ze;for(let s of t instanceof sn?[t]:e?Of(t):t)i.add(s.from,s.to,s.value);return i.finish()}static join(t){if(!t.length)return V.empty;let e=t[t.length-1];for(let i=t.length-2;i>=0;i--)for(let s=t[i];s!=V.empty;s=s.nextLayer)e=new V(s.chunkPos,s.chunk,e,Math.max(s.maxPoint,e.maxPoint));return e}}V.empty=new V([],[],null,-1);function Of(n){if(n.length>1)for(let t=n[0],e=1;e0)return n.slice().sort(nn);t=i}return n}V.empty.nextLayer=V.empty;class ze{finishChunk(t){this.chunks.push(new jn(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,t&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(t,e,i){this.addInner(t,e,i)||(this.nextLayer||(this.nextLayer=new ze)).add(t,e,i)}addInner(t,e,i){let s=t-this.lastTo||i.startSide-this.last.endSide;if(s<=0&&(t-this.lastFrom||i.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return s<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=t),this.from.push(t-this.chunkStart),this.to.push(e-this.chunkStart),this.last=i,this.lastFrom=t,this.lastTo=e,this.value.push(i),i.point&&(this.maxPoint=Math.max(this.maxPoint,e-t)),!0)}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint),this.chunks.push(e),this.chunkPos.push(t);let i=e.value.length-1;return this.last=e.value[i],this.lastFrom=e.from[i]+t,this.lastTo=e.to[i]+t,!0}finish(){return this.finishInner(V.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let e=V.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,e}}function Pr(n,t,e){let i=new Map;for(let r of n)for(let o=0;o=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=i&&s.push(new Bl(o,e,i,r));return s.length==1?s[0]:new hi(s)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let i of this.heap)i.goto(t,e);for(let i=this.heap.length>>1;i>=0;i--)As(this.heap,i);return this.next(),this}forward(t,e){for(let i of this.heap)i.forward(t,e);for(let i=this.heap.length>>1;i>=0;i--)As(this.heap,i);(this.to-t||this.value.endSide-e)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let t=this.heap[0];this.from=t.from,this.to=t.to,this.value=t.value,this.rank=t.rank,t.value&&t.next(),As(this.heap,0)}}}function As(n,t){for(let e=n[t];;){let i=(t<<1)+1;if(i>=n.length)break;let s=n[i];if(i+1=0&&(s=n[i+1],i++),e.compare(s)<0)break;n[i]=e,n[t]=s,t=i}}class Ye{constructor(t,e,i){this.minPoint=i,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=hi.from(t,e,i)}goto(t,e=-1e9){return this.cursor.goto(t,e),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=t,this.endSide=e,this.openStart=-1,this.next(),this}forward(t,e){for(;this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0;)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Ci(this.active,t),Ci(this.activeTo,t),Ci(this.activeRank,t),this.minActive=Br(this.active,this.activeTo)}addActive(t){let e=0,{value:i,to:s,rank:r}=this.cursor;for(;e0;)e++;Ai(this.active,e,i),Ai(this.activeTo,e,s),Ai(this.activeRank,e,r),t&&Ai(t,e,this.cursor.from),this.minActive=Br(this.active,this.activeTo)}next(){let t=this.to,e=this.point;this.point=null;let i=this.openStart<0?[]:null;for(;;){let s=this.minActive;if(s>-1&&(this.activeTo[s]-this.cursor.from||this.active[s].endSide-this.cursor.startSide)<0){if(this.activeTo[s]>t){this.to=this.activeTo[s],this.endSide=this.active[s].endSide;break}this.removeActive(s),i&&Ci(i,s)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let r=this.cursor.value;if(!r.point)this.addActive(i),this.cursor.next();else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&i[s]=0&&!(this.activeRank[i]t||this.activeTo[i]==t&&this.active[i].endSide>=this.point.endSide)&&e.push(this.active[i]);return e.reverse()}openEnd(t){let e=0;for(let i=this.activeTo.length-1;i>=0&&this.activeTo[i]>t;i--)e++;return e}}function Dr(n,t,e,i,s,r){n.goto(t),e.goto(i);let o=i+s,l=i,h=i-t;for(;;){let a=n.to+h-e.to||n.endSide-e.endSide,f=a<0?n.to+h:e.to,c=Math.min(f,o);if(n.point||e.point?n.point&&e.point&&(n.point==e.point||n.point.eq(e.point))&&rn(n.activeForPoint(n.to),e.activeForPoint(e.to))||r.comparePoint(l,c,n.point,e.point):c>l&&!rn(n.active,e.active)&&r.compareRange(l,c,n.active,e.active),f>o)break;l=f,a<=0&&n.next(),a>=0&&e.next()}}function rn(n,t){if(n.length!=t.length)return!1;for(let e=0;e=t;i--)n[i+1]=n[i];n[t]=e}function Br(n,t){let e=-1,i=1e9;for(let s=0;s=t)return s;if(s==n.length)break;r+=n.charCodeAt(s)==9?e-r%e:1,s=at(n,s)}return i===!0?-1:n.length}const on="ͼ",Rr=typeof Symbol>"u"?"__"+on:Symbol.for(on),ln=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Er=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};let We=class{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(g=>o.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(s(o),t[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=Er[Rr]||1;return Er[Rr]=t+1,on+t.toString(36)}static mount(t,e,i){let s=t[ln],r=i&&i.nonce;s?r&&s.setNonce(r):s=new Tf(t,r),s.mount(Array.isArray(e)?e:[e],t)}},Ir=new Map,Tf=class{constructor(t,e){let i=t.ownerDocument||t,s=i.defaultView;if(!t.head&&t.adoptedStyleSheets&&s.CSSStyleSheet){let r=Ir.get(i);if(r)return t[ln]=r;this.sheet=new s.CSSStyleSheet,Ir.set(i,this)}else this.styleTag=i.createElement("style"),e&&this.styleTag.setAttribute("nonce",e);this.modules=[],t[ln]=this}mount(t,e){let i=this.sheet,s=0,r=0;for(let o=0;o-1&&(this.modules.splice(h,1),r--,h=-1),h==-1){if(this.modules.splice(r++,0,l),i)for(let a=0;a",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Nr=typeof navigator<"u"&&/Chrome\/(\d+)/.exec(navigator.userAgent),Pf=typeof navigator<"u"&&/Mac/.test(navigator.platform),Df=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Bf=Pf||Nr&&+Nr[1]<57;for(var st=0;st<10;st++)fe[48+st]=fe[96+st]=String(st);for(var st=1;st<=24;st++)fe[st+111]="F"+st;for(var st=65;st<=90;st++)fe[st]=String.fromCharCode(st+32),ai[st]=String.fromCharCode(st);for(var Os in fe)ai.hasOwnProperty(Os)||(ai[Os]=fe[Os]);function Rf(n){var t=Bf&&(n.ctrlKey||n.altKey||n.metaKey)||Df&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",e=!t&&n.key||(n.shiftKey?ai:fe)[n.keyCode]||n.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}function fi(n){let t;return n.nodeType==11?t=n.getSelection?n:n.ownerDocument:t=n,t.getSelection()}function hn(n,t){return t?n==t||n.contains(t.nodeType!=1?t.parentNode:t):!1}function Ef(n){let t=n.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function Qi(n,t){if(!t.anchorNode)return!1;try{return hn(n,t.anchorNode)}catch{return!1}}function ci(n){return n.nodeType==3?Ae(n,0,n.nodeValue.length).getClientRects():n.nodeType==1?n.getClientRects():[]}function ri(n,t,e,i){return e?Lr(n,t,e,i,-1)||Lr(n,t,e,i,1):!1}function Ce(n){for(var t=0;;t++)if(n=n.previousSibling,!n)return t}function es(n){return n.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(n.nodeName)}function Lr(n,t,e,i,s){for(;;){if(n==e&&t==i)return!0;if(t==(s<0?0:$t(n))){if(n.nodeName=="DIV")return!1;let r=n.parentNode;if(!r||r.nodeType!=1)return!1;t=Ce(n)+(s<0?0:1),n=r}else if(n.nodeType==1){if(n=n.childNodes[t+(s<0?-1:0)],n.nodeType==1&&n.contentEditable=="false")return!1;t=s<0?$t(n):0}else return!1}}function $t(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Kn(n,t){let e=t?n.left:n.right;return{left:e,right:e,top:n.top,bottom:n.bottom}}function If(n){let t=n.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:n.innerWidth,top:0,bottom:n.innerHeight}}function Rl(n,t){let e=t.width/n.offsetWidth,i=t.height/n.offsetHeight;return(e>.995&&e<1.005||!isFinite(e)||Math.abs(t.width-n.offsetWidth)<1)&&(e=1),(i>.995&&i<1.005||!isFinite(i)||Math.abs(t.height-n.offsetHeight)<1)&&(i=1),{scaleX:e,scaleY:i}}function Nf(n,t,e,i,s,r,o,l){let h=n.ownerDocument,a=h.defaultView||window;for(let f=n,c=!1;f&&!c;)if(f.nodeType==1){let u,d=f==h.body,p=1,g=1;if(d)u=If(a);else{if(/^(fixed|sticky)$/.test(getComputedStyle(f).position)&&(c=!0),f.scrollHeight<=f.clientHeight&&f.scrollWidth<=f.clientWidth){f=f.assignedSlot||f.parentNode;continue}let b=f.getBoundingClientRect();({scaleX:p,scaleY:g}=Rl(f,b)),u={left:b.left,right:b.left+f.clientWidth*p,top:b.top,bottom:b.top+f.clientHeight*g}}let m=0,y=0;if(s=="nearest")t.top0&&t.bottom>u.bottom+y&&(y=t.bottom-u.bottom+y+o)):t.bottom>u.bottom&&(y=t.bottom-u.bottom+o,e<0&&t.top-y0&&t.right>u.right+m&&(m=t.right-u.right+m+r)):t.right>u.right&&(m=t.right-u.right+r,e<0&&t.lefts.clientHeight&&(i=s),!e&&s.scrollWidth>s.clientWidth&&(e=s),s=s.assignedSlot||s.parentNode;else if(s.nodeType==11)s=s.host;else break;return{x:e,y:i}}class Vf{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){let{anchorNode:e,focusNode:i}=t;this.set(e,Math.min(t.anchorOffset,e?$t(e):0),i,Math.min(t.focusOffset,i?$t(i):0))}set(t,e,i,s){this.anchorNode=t,this.anchorOffset=e,this.focusNode=i,this.focusOffset=s}}let Be=null;function El(n){if(n.setActive)return n.setActive();if(Be)return n.focus(Be);let t=[];for(let e=n;e&&(t.push(e,e.scrollTop,e.scrollLeft),e!=e.ownerDocument);e=e.parentNode);if(n.focus(Be==null?{get preventScroll(){return Be={preventScroll:!0},!0}}:void 0),!Be){Be=!1;for(let e=0;eMath.max(1,n.scrollHeight-n.clientHeight-4)}function Ll(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&i>0)return{node:e,offset:i};if(e.nodeType==1&&i>0){if(e.contentEditable=="false")return null;e=e.childNodes[i-1],i=$t(e)}else if(e.parentNode&&!es(e))i=Ce(e),e=e.parentNode;else return null}}function Vl(n,t){for(let e=n,i=t;;){if(e.nodeType==3&&ie)return c.domBoundsAround(t,e,a);if(u>=t&&s==-1&&(s=h,r=a),a>e&&c.dom.parentNode==this.dom){o=h,l=f;break}f=u,a=u+c.breakAfter}return{from:r,to:l<0?i+this.length:l,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t&&(e.flags|=2),e.flags&1)return;e.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=Un){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=t-this.pos,this;let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function Hl(n,t,e,i,s,r,o,l,h){let{children:a}=n,f=a.length?a[t]:null,c=r.length?r[r.length-1]:null,u=c?c.breakAfter:o;if(!(t==i&&f&&!o&&!u&&r.length<2&&f.merge(e,s,r.length?c:null,e==0,l,h))){if(i0&&(!o&&r.length&&f.merge(e,f.length,r[0],!1,l,0)?f.breakAfter=r.shift().breakAfter:(e2);var C={mac:Wr||/Mac/.test(ut.platform),windows:/Win/.test(ut.platform),linux:/Linux|X11/.test(ut.platform),ie:ws,ie_version:Wl?an.documentMode||6:cn?+cn[1]:fn?+fn[1]:0,gecko:Hr,gecko_version:Hr?+(/Firefox\/(\d+)/.exec(ut.userAgent)||[0,0])[1]:0,chrome:!!Ms,chrome_version:Ms?+Ms[1]:0,ios:Wr,android:/Android\b/.test(ut.userAgent),webkit:zr,safari:jl,webkit_version:zr?+(/\bAppleWebKit\/(\d+)/.exec(ut.userAgent)||[0,0])[1]:0,tabSize:an.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const zf=256;class Et extends W{constructor(t){super(),this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(e&&e.node==this.dom&&(e.written=!0),this.dom.nodeValue=this.text)}reuseDOM(t){t.nodeType==3&&this.createDOM(t)}merge(t,e,i){return this.flags&8||i&&(!(i instanceof Et)||this.length-(e-t)+i.length>zf||i.flags&8)?!1:(this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e),this.markDirty(),!0)}split(t){let e=new Et(this.text.slice(t));return this.text=this.text.slice(0,t),this.markDirty(),e.flags|=this.flags&8,e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new ht(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return Wf(this.dom,t,e)}}class Zt extends W{constructor(t,e=[],i=0){super(),this.mark=t,this.children=e,this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){if(Il(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,e){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,e)}merge(t,e,i,s,r,o){return i&&(!(i instanceof Zt&&i.mark.eq(this.mark))||t&&r<=0||et&&e.push(i=t&&(s=r),i=h,r++}let o=this.length-t;return this.length=t,s>-1&&(this.children.length=s,this.markDirty()),new Zt(this.mark,e,o)}domAtPos(t){return ql(this,t)}coordsAt(t,e){return Ul(this,t,e)}}function Wf(n,t,e){let i=n.nodeValue.length;t>i&&(t=i);let s=t,r=t,o=0;t==0&&e<0||t==i&&e>=0?C.chrome||C.gecko||(t?(s--,o=1):r=0)?0:l.length-1];return C.safari&&!o&&h.width==0&&(h=Array.prototype.find.call(l,a=>a.width)||h),o?Kn(h,o<0):h||null}class we extends W{static create(t,e,i){return new we(t,e,i)}constructor(t,e,i){super(),this.widget=t,this.length=e,this.side=i,this.prevWidget=null}split(t){let e=we.create(this.widget,this.length-t,this.side);return this.length-=t,e}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,e,i,s,r,o){return i&&(!(i instanceof we)||!this.widget.compare(i.widget)||t>0&&r<=0||e0)?ht.before(this.dom):ht.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.widget.coordsAt(this.dom,t,e);if(i)return i;let s=this.dom.getClientRects(),r=null;if(!s.length)return null;let o=this.side?this.side<0:t>0;for(let l=o?s.length-1:0;r=s[l],!(t>0?l==0:l==s.length-1||r.top0?ht.before(this.dom):ht.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return F.empty}get isHidden(){return!0}}Et.prototype.children=we.prototype.children=je.prototype.children=Un;function ql(n,t){let e=n.dom,{children:i}=n,s=0;for(let r=0;sr&&t0;r--){let o=i[r-1];if(o.dom.parentNode==e)return o.domAtPos(o.length)}for(let r=s;r0&&t instanceof Zt&&s.length&&(i=s[s.length-1])instanceof Zt&&i.mark.eq(t.mark)?Kl(i,t.children[0],e-1):(s.push(t),t.setParent(n)),n.length+=t.length}function Ul(n,t,e){let i=null,s=-1,r=null,o=-1;function l(a,f){for(let c=0,u=0;c=f&&(d.children.length?l(d,f-u):(!r||r.isHidden&&e>0)&&(p>f||u==p&&d.getSide()>0)?(r=d,o=f-u):(u-1?1:0)!=s.length-(e&&s.indexOf(e)>-1?1:0))return!1;for(let r of i)if(r!=e&&(s.indexOf(r)==-1||n[r]!==t[r]))return!1;return!0}function dn(n,t,e){let i=!1;if(t)for(let s in t)e&&s in e||(i=!0,s=="style"?n.style.cssText="":n.removeAttribute(s));if(e)for(let s in e)t&&t[s]==e[s]||(i=!0,s=="style"?n.style.cssText=e[s]:n.setAttribute(s,e[s]));return i}function qf(n){let t=Object.create(null);for(let e=0;e0&&this.children[i-1].length==0;)this.children[--i].destroy();return this.children.length=i,this.markDirty(),this.length=t,e}transferDOM(t){this.dom&&(this.markDirty(),t.setDOM(this.dom),t.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(t){is(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,e){Kl(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;e&&(this.attrs=un(e,this.attrs||{})),i&&(this.attrs=un({class:i},this.attrs||{}))}domAtPos(t){return ql(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,e){var i;this.dom?this.flags&4&&(Il(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(dn(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(t,e);let s=this.dom.lastChild;for(;s&&W.get(s)instanceof Zt;)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=W.get(s))===null||i===void 0?void 0:i.isEditable)==!1&&(!C.ios||!this.children.some(r=>r instanceof Et))){let r=document.createElement("BR");r.cmIgnore=!0,this.dom.appendChild(r)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof Et)||/[^ -~]/.test(i.text))return null;let s=ci(i.dom);if(s.length!=1)return null;t+=s[0].width,e=s[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(t,e){let i=Ul(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:s}=this.parent.view.viewState,r=i.bottom-i.top;if(Math.abs(r-s.lineHeight)<2&&s.textHeight=e){if(r instanceof X)return r;if(o>e)break}s=o+r.breakAfter}return null}}class Xt extends W{constructor(t,e,i){super(),this.widget=t,this.length=e,this.deco=i,this.breakAfter=0,this.prevWidget=null}merge(t,e,i,s,r,o){return i&&(!(i instanceof Xt)||!this.widget.compare(i.widget)||t>0&&r<=0||e0}}class bi{eq(t){return!1}updateDOM(t,e){return!1}compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(t){return!0}coordsAt(t,e,i){return null}get isHidden(){return!1}get editable(){return!1}destroy(t){}}var Ot=function(n){return n[n.Text=0]="Text",n[n.WidgetBefore=1]="WidgetBefore",n[n.WidgetAfter=2]="WidgetAfter",n[n.WidgetRange=3]="WidgetRange",n}(Ot||(Ot={}));class K extends ve{constructor(t,e,i,s){super(),this.startSide=t,this.endSide=e,this.widget=i,this.spec=s}get heightRelevant(){return!1}static mark(t){return new wi(t)}static widget(t){let e=Math.max(-1e4,Math.min(1e4,t.side||0)),i=!!t.block;return e+=i&&!t.inlineOrder?e>0?3e8:-4e8:e>0?1e8:-1e8,new ce(t,e,e,i,t.widget||null,!1)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap)i=-5e8,s=4e8;else{let{start:r,end:o}=Gl(t,e);i=(r?e?-3e8:-1:5e8)-1,s=(o?e?2e8:1:-6e8)+1}return new ce(t,i,s,e,t.widget||null,!0)}static line(t){return new ki(t)}static set(t,e=!1){return V.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}K.none=V.empty;class wi extends K{constructor(t){let{start:e,end:i}=Gl(t);super(e?-1:5e8,i?1:-6e8,null,t),this.tagName=t.tagName||"span",this.class=t.class||"",this.attrs=t.attributes||null}eq(t){var e,i;return this==t||t instanceof wi&&this.tagName==t.tagName&&(this.class||((e=this.attrs)===null||e===void 0?void 0:e.class))==(t.class||((i=t.attrs)===null||i===void 0?void 0:i.class))&&is(this.attrs,t.attrs,"class")}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}wi.prototype.point=!1;class ki extends K{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof ki&&this.spec.class==t.spec.class&&is(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}ki.prototype.mapMode=pt.TrackBefore;ki.prototype.point=!0;class ce extends K{constructor(t,e,i,s,r,o){super(e,i,r,t),this.block=s,this.isReplace=o,this.mapMode=s?e<=0?pt.TrackBefore:pt.TrackAfter:pt.TrackDel}get type(){return this.startSide!=this.endSide?Ot.WidgetRange:this.startSide<=0?Ot.WidgetBefore:Ot.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof ce&&Kf(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}ce.prototype.point=!0;function Gl(n,t=!1){let{inclusiveStart:e,inclusiveEnd:i}=n;return e==null&&(e=n.inclusive),i==null&&(i=n.inclusive),{start:e??t,end:i??t}}function Kf(n,t){return n==t||!!(n&&t&&n.compare(t))}function pn(n,t,e,i=0){let s=e.length-1;s>=0&&e[s]+i>=n?e[s]=Math.max(e[s],t):e.push(n,t)}class oi{constructor(t,e,i,s){this.doc=t,this.pos=e,this.end=i,this.disallowBlockEffectsFor=s,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=t.iter(),this.skip=e}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let t=this.content[this.content.length-1];return!(t.breakAfter||t instanceof Xt&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new X),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(Oi(new je(-1),t),t.length),this.pendingBuffer=0)}addBlockWidget(t){this.flushBuffer(),this.curLine=null,this.content.push(t)}finish(t){this.pendingBuffer&&t<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(t&&this.content.length&&this.content[this.content.length-1]instanceof Xt)&&this.getLine()}buildText(t,e,i){for(;t>0;){if(this.textOff==this.text.length){let{value:r,lineBreak:o,done:l}=this.cursor.next(this.skip);if(this.skip=0,l)throw new Error("Ran out of text content when drawing inline views");if(o){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=r,this.textOff=0}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i)),this.getLine().append(Oi(new Et(this.text.slice(this.textOff,this.textOff+s)),e),i),this.atCursorPos=!0,this.textOff+=s,t-=s,i=0}}span(t,e,i,s){this.buildText(e-t,i,s),this.pos=e,this.openStart<0&&(this.openStart=s)}point(t,e,i,s,r,o){if(this.disallowBlockEffectsFor[o]&&i instanceof ce){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let l=e-t;if(i instanceof ce)if(i.block)i.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Xt(i.widget||qe.block,l,i));else{let h=we.create(i.widget||qe.inline,l,l?0:i.startSide),a=this.atCursorPos&&!h.isEditable&&r<=s.length&&(t0),f=!h.isEditable&&(ts.length||i.startSide<=0),c=this.getLine();this.pendingBuffer==2&&!a&&!h.isEditable&&(this.pendingBuffer=0),this.flushBuffer(s),a&&(c.append(Oi(new je(1),s),r),r=s.length+Math.max(0,r-s.length)),c.append(Oi(h,s),r),this.atCursorPos=f,this.pendingBuffer=f?ts.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=s.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(i);l&&(this.textOff+l<=this.text.length?this.textOff+=l:(this.skip+=l-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=e),this.openStart<0&&(this.openStart=r)}static build(t,e,i,s,r){let o=new oi(t,e,i,r);return o.openEnd=V.spans(s,e,i,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function Oi(n,t){for(let e of t)n=new Zt(e,[n],n.length);return n}class qe extends bi{constructor(t){super(),this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}qe.inline=new qe("span");qe.block=new qe("div");var J=function(n){return n[n.LTR=0]="LTR",n[n.RTL=1]="RTL",n}(J||(J={}));const Oe=J.LTR,Gn=J.RTL;function Ql(n){let t=[];for(let e=0;e=e){if(l.level==i)return o;(r<0||(s!=0?s<0?l.frome:t[r].level>l.level))&&(r=o)}}if(r<0)throw new RangeError("Index out of range");return r}}function Yl(n,t){if(n.length!=t.length)return!1;for(let e=0;e=0;g-=3)if(Vt[g+1]==-d){let m=Vt[g+2],y=m&2?s:m&4?m&1?r:s:0;y&&(z[c]=z[Vt[g]]=y),l=g;break}}else{if(Vt.length==189)break;Vt[l++]=c,Vt[l++]=u,Vt[l++]=h}else if((p=z[c])==2||p==1){let g=p==s;h=g?0:1;for(let m=l-3;m>=0;m-=3){let y=Vt[m+2];if(y&2)break;if(g)Vt[m+2]|=2;else{if(y&4)break;Vt[m+2]|=4}}}}}function Jf(n,t,e,i){for(let s=0,r=i;s<=e.length;s++){let o=s?e[s-1].to:n,l=sh;)p==m&&(p=e[--g].from,m=g?e[g-1].to:n),z[--p]=d;h=f}else r=a,h++}}}function mn(n,t,e,i,s,r,o){let l=i%2?2:1;if(i%2==s%2)for(let h=t,a=0;hh&&o.push(new le(h,g.from,d));let m=g.direction==Oe!=!(d%2);yn(n,m?i+1:i,s,g.inner,g.from,g.to,o),h=g.to}p=g.to}else{if(p==e||(f?z[p]!=l:z[p]==l))break;p++}u?mn(n,h,p,i+1,s,u,o):ht;){let f=!0,c=!1;if(!a||h>r[a-1].to){let g=z[h-1];g!=l&&(f=!1,c=g==16)}let u=!f&&l==1?[]:null,d=f?i:i+1,p=h;t:for(;;)if(a&&p==r[a-1].to){if(c)break t;let g=r[--a];if(!f)for(let m=g.from,y=a;;){if(m==t)break t;if(y&&r[y-1].to==m)m=r[--y].from;else{if(z[m-1]==l)break t;break}}if(u)u.push(g);else{g.toz.length;)z[z.length]=256;let i=[],s=t==Oe?0:1;return yn(n,s,s,e,0,n.length,i),i}function Jl(n){return[new le(0,n,0)]}let Xl="";function $f(n,t,e,i,s){var r;let o=i.head-n.from,l=le.find(t,o,(r=i.bidiLevel)!==null&&r!==void 0?r:-1,i.assoc),h=t[l],a=h.side(s,e);if(o==a){let u=l+=s?1:-1;if(u<0||u>=t.length)return null;h=t[l=u],o=h.side(!s,e),a=h.side(s,e)}let f=at(n.text,o,h.forward(s,e));(fh.to)&&(f=a),Xl=n.text.slice(Math.min(o,f),Math.max(o,f));let c=l==(s?t.length-1:0)?null:t[l+(s?1:-1)];return c&&f==a&&c.level+(s?0:1)n.some(t=>t)}),tc=T.define({combine:n=>n.some(t=>t)}),rh=T.define();class Le{constructor(t,e="nearest",i="nearest",s=5,r=5,o=!1){this.range=t,this.y=e,this.x=i,this.yMargin=s,this.xMargin=r,this.isSnapshot=o}map(t){return t.empty?this:new Le(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(t){return this.range.to<=t.doc.length?this:new Le(w.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Mi=j.define({map:(n,t)=>n.map(t)}),oh=j.define();function kt(n,t,e){let i=n.facet(eh);i.length?i[0](t):window.onerror?window.onerror(String(t),e,void 0,void 0,t):e?console.error(e+":",t):console.error(t)}const ne=T.define({combine:n=>n.length?n[0]:!0});let ec=0;const Ze=T.define();class It{constructor(t,e,i,s,r){this.id=t,this.create=e,this.domEventHandlers=i,this.domEventObservers=s,this.extension=r(this)}static define(t,e){const{eventHandlers:i,eventObservers:s,provide:r,decorations:o}=e||{};return new It(ec++,t,i,s,l=>{let h=[Ze.of(l)];return o&&h.push(ui.of(a=>{let f=a.plugin(l);return f?o(f):K.none})),r&&h.push(r(l)),h})}static fromClass(t,e){return It.define(i=>new t(i),e)}}class Ts{constructor(t){this.spec=t,this.mustUpdate=null,this.value=null}update(t){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(i){if(kt(e.state,i,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(t)}catch(e){kt(t.state,e,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(t){var e;if(!((e=this.value)===null||e===void 0)&&e.destroy)try{this.value.destroy()}catch(i){kt(t.state,i,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const lh=T.define(),Qn=T.define(),ui=T.define(),hh=T.define(),_n=T.define(),ah=T.define();function qr(n,t){let e=n.state.facet(ah);if(!e.length)return e;let i=e.map(r=>r instanceof Function?r(n):r),s=[];return V.spans(i,t.from,t.to,{point(){},span(r,o,l,h){let a=r-t.from,f=o-t.from,c=s;for(let u=l.length-1;u>=0;u--,h--){let d=l[u].spec.bidiIsolate,p;if(d==null&&(d=Zf(t.text,a,f)),h>0&&c.length&&(p=c[c.length-1]).to==a&&p.direction==d)p.to=f,c=p.inner;else{let g={from:a,to:f,direction:d,inner:[]};c.push(g),c=g.inner}}}}),s}const fh=T.define();function ch(n){let t=0,e=0,i=0,s=0;for(let r of n.state.facet(fh)){let o=r(n);o&&(o.left!=null&&(t=Math.max(t,o.left)),o.right!=null&&(e=Math.max(e,o.right)),o.top!=null&&(i=Math.max(i,o.top)),o.bottom!=null&&(s=Math.max(s,o.bottom)))}return{left:t,right:e,top:i,bottom:s}}const ti=T.define();class Mt{constructor(t,e,i,s){this.fromA=t,this.toA=e,this.fromB=i,this.toB=s}join(t){return new Mt(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(!(s.fromA>i.toA)){if(s.toAf)break;r+=2}if(!h)return i;new Mt(h.fromA,h.toA,h.fromB,h.toB).addToSet(i),o=h.toA,l=h.toB}}}class ss{constructor(t,e,i){this.view=t,this.state=e,this.transactions=i,this.flags=0,this.startState=t.state,this.changes=$.empty(this.startState.doc.length);for(let r of i)this.changes=this.changes.compose(r.changes);let s=[];this.changes.iterChangedRanges((r,o,l,h)=>s.push(new Mt(r,o,l,h))),this.changedRanges=s}static create(t,e,i){return new ss(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(t=>t.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Kr extends W{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=K.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new X],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Mt(0,0,0,t.state.doc.length)],0,null)}update(t){var e;let i=t.changedRanges;this.minWidth>0&&i.length&&(i.every(({fromA:a,toA:f})=>fthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let s=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((e=this.domChanged)===null||e===void 0)&&e.newSel?s=this.domChanged.newSel.head:!hc(t.changes,this.hasComposition)&&!t.selectionSet&&(s=t.state.selection.main.head));let r=s>-1?sc(this.view,t.changes,s):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:a,to:f}=this.hasComposition;i=new Mt(a,f,t.changes.mapPos(a,-1),t.changes.mapPos(f,1)).addToSet(i.slice())}this.hasComposition=r?{from:r.range.fromB,to:r.range.toB}:null,(C.ie||C.chrome)&&!r&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,l=this.updateDeco(),h=oc(o,l,t.changes);return i=Mt.extendWithRanges(i,h),!(this.flags&7)&&i.length==0?!1:(this.updateInner(i,t.startState.doc.length,r),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,e,i){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,e,i);let{observer:s}=this.view;s.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let o=C.chrome||C.ios?{node:s.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||s.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let r=[];if(this.view.viewport.from||this.view.viewport.to=0?s[o]:null;if(!l)break;let{fromA:h,toA:a,fromB:f,toB:c}=l,u,d,p,g;if(i&&i.range.fromBf){let k=oi.build(this.view.state.doc,f,i.range.fromB,this.decorations,this.dynamicDecorationMap),v=oi.build(this.view.state.doc,i.range.toB,c,this.decorations,this.dynamicDecorationMap);d=k.breakAtStart,p=k.openStart,g=v.openEnd;let P=this.compositionView(i);v.breakAtStart?P.breakAfter=1:v.content.length&&P.merge(P.length,P.length,v.content[0],!1,v.openStart,0)&&(P.breakAfter=v.content[0].breakAfter,v.content.shift()),k.content.length&&P.merge(0,0,k.content[k.content.length-1],!0,0,k.openEnd)&&k.content.pop(),u=k.content.concat(P).concat(v.content)}else({content:u,breakAtStart:d,openStart:p,openEnd:g}=oi.build(this.view.state.doc,f,c,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=r.findPos(a,1),{i:b,off:S}=r.findPos(h,-1);Hl(this,b,S,m,y,u,d,p,g)}i&&this.fixCompositionDOM(i)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let e of t.transactions)for(let i of e.effects)i.is(oh)&&(this.editContextFormatting=i.value)}compositionView(t){let e=new Et(t.text.nodeValue);e.flags|=8;for(let{deco:s}of t.marks)e=new Zt(s,[e],e.length);let i=new X;return i.append(e,0),i}fixCompositionDOM(t){let e=(r,o)=>{o.flags|=8|(o.children.some(h=>h.flags&7)?1:0),this.markedForComposition.add(o);let l=W.get(r);l&&l!=o&&(l.dom=null),o.setDOM(r)},i=this.childPos(t.range.fromB,1),s=this.children[i.i];e(t.line,s);for(let r=t.marks.length-1;r>=-1;r--)i=s.childPos(i.off,1),s=s.children[i.i],e(r>=0?t.marks[r].node:t.text,s)}updateSelection(t=!1,e=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom,r=!s&&Qi(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||e||r))return;let o=this.forceSelection;this.forceSelection=!1;let l=this.view.state.selection.main,h=this.moveToLine(this.domAtPos(l.anchor)),a=l.empty?h:this.moveToLine(this.domAtPos(l.head));if(C.gecko&&l.empty&&!this.hasComposition&&ic(h)){let c=document.createTextNode("");this.view.observer.ignore(()=>h.node.insertBefore(c,h.node.childNodes[h.offset]||null)),h=a=new ht(c,0),o=!0}let f=this.view.observer.selectionRange;(o||!f.focusNode||(!ri(h.node,h.offset,f.anchorNode,f.anchorOffset)||!ri(a.node,a.offset,f.focusNode,f.focusOffset))&&!this.suppressWidgetCursorChange(f,l))&&(this.view.observer.ignore(()=>{C.android&&C.chrome&&this.dom.contains(f.focusNode)&&lc(f.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let c=fi(this.view.root);if(c)if(l.empty){if(C.gecko){let u=nc(h.node,h.offset);if(u&&u!=3){let d=(u==1?Ll:Vl)(h.node,h.offset);d&&(h=new ht(d.node,d.offset))}}c.collapse(h.node,h.offset),l.bidiLevel!=null&&c.caretBidiLevel!==void 0&&(c.caretBidiLevel=l.bidiLevel)}else if(c.extend){c.collapse(h.node,h.offset);try{c.extend(a.node,a.offset)}catch{}}else{let u=document.createRange();l.anchor>l.head&&([h,a]=[a,h]),u.setEnd(a.node,a.offset),u.setStart(h.node,h.offset),c.removeAllRanges(),c.addRange(u)}r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),i&&i.focus())}),this.view.observer.setSelectionRange(h,a)),this.impreciseAnchor=h.precise?null:new ht(f.anchorNode,f.anchorOffset),this.impreciseHead=a.precise?null:new ht(f.focusNode,f.focusOffset)}suppressWidgetCursorChange(t,e){return this.hasComposition&&e.empty&&ri(t.focusNode,t.focusOffset,t.anchorNode,t.anchorOffset)&&this.posFromDOM(t.focusNode,t.focusOffset)==e.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:t}=this,e=t.state.selection.main,i=fi(t.root),{anchorNode:s,anchorOffset:r}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let o=X.find(this,e.head);if(!o)return;let l=o.posAtStart;if(e.head==l||e.head==l+o.length)return;let h=this.coordsAt(e.head,-1),a=this.coordsAt(e.head,1);if(!h||!a||h.bottom>a.top)return;let f=this.domAtPos(e.head+e.assoc);i.collapse(f.node,f.offset),i.modify("move",e.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let c=t.observer.selectionRange;t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from&&i.collapse(s,r)}moveToLine(t){let e=this.dom,i;if(t.node!=e)return t;for(let s=t.offset;!i&&s=0;s--){let r=W.get(e.childNodes[s]);r instanceof X&&(i=r.domAtPos(r.length))}return i?new ht(i.node,i.offset,!0):t}nearest(t){for(let e=t;e;){let i=W.get(e);if(i&&i.rootView==this)return i;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;e=0;o--){let l=this.children[o],h=r-l.breakAfter,a=h-l.length;if(ht||l.covers(1))&&(!i||l instanceof X&&!(i instanceof X&&e>=0)))i=l,s=a;else if(i&&a==t&&h==t&&l instanceof Xt&&Math.abs(e)<2){if(l.deco.startSide<0)break;o&&(i=null)}r=a}return i?i.coordsAt(t-s,e):null}coordsForChar(t){let{i:e,off:i}=this.childPos(t,1),s=this.children[e];if(!(s instanceof X))return null;for(;s.children.length;){let{i:l,off:h}=s.childPos(i,1);for(;;l++){if(l==s.children.length)return null;if((s=s.children[l]).length)break}i=h}if(!(s instanceof Et))return null;let r=at(s.text,i);if(r==i)return null;let o=Ae(s.dom,i,r).getClientRects();for(let l=0;lMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,l=-1,h=this.view.textDirection==J.LTR;for(let a=0,f=0;fs)break;if(a>=i){let d=c.dom.getBoundingClientRect();if(e.push(d.height),o){let p=c.dom.lastChild,g=p?ci(p):[];if(g.length){let m=g[g.length-1],y=h?m.right-d.left:d.right-m.left;y>l&&(l=y,this.minWidth=r,this.minWidthFrom=a,this.minWidthTo=u)}}}a=u+c.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?J.RTL:J.LTR}measureTextSize(){for(let r of this.children)if(r instanceof X){let o=r.measureTextSize();if(o)return o}let t=document.createElement("div"),e,i,s;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let r=ci(t.firstChild)[0];e=t.getBoundingClientRect().height,i=r?r.width/27:7,s=r?r.height:e,t.remove()}),{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;return e&&(t-=this.children[--e].length),new Fl(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let r=s==e.viewports.length?null:e.viewports[s],o=r?r.from-1:this.length;if(o>i){let l=(e.lineBlockAt(o).bottom-e.lineBlockAt(i).top)/this.view.scaleY;t.push(K.replace({widget:new Ur(l),block:!0,inclusive:!0,isBlockGap:!0}).range(i,o))}if(!r)break;i=r.to+1}return K.set(t)}updateDeco(){let t=1,e=this.view.state.facet(ui).map(r=>(this.dynamicDecorationMap[t++]=typeof r=="function")?r(this.view):r),i=!1,s=this.view.state.facet(hh).map((r,o)=>{let l=typeof r=="function";return l&&(i=!0),l?r(this.view):r});for(s.length&&(this.dynamicDecorationMap[t++]=i,e.push(V.join(s))),this.decorations=[this.editContextFormatting,...e,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];te.anchor?-1:1),s;if(!i)return;!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1))&&(i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)});let r=ch(this.view),o={left:i.left-r.left,top:i.top-r.top,right:i.right+r.right,bottom:i.bottom+r.bottom},{offsetWidth:l,offsetHeight:h}=this.view.scrollDOM;Nf(this.view.scrollDOM,o,e.head{it.from&&(e=!0)}),e}function ac(n,t,e=1){let i=n.charCategorizer(t),s=n.doc.lineAt(t),r=t-s.from;if(s.length==0)return w.cursor(t);r==0?e=1:r==s.length&&(e=-1);let o=r,l=r;e<0?o=at(s.text,r,!1):l=at(s.text,r);let h=i(s.text.slice(o,l));for(;o>0;){let a=at(s.text,o,!1);if(i(s.text.slice(a,o))!=h)break;o=a}for(;ln?t.left-n:Math.max(0,n-t.right)}function cc(n,t){return t.top>n?t.top-n:Math.max(0,n-t.bottom)}function Ps(n,t){return n.topt.top+1}function Gr(n,t){return tn.bottom?{top:n.top,left:n.left,right:n.right,bottom:t}:n}function wn(n,t,e){let i,s,r,o,l=!1,h,a,f,c;for(let p=n.firstChild;p;p=p.nextSibling){let g=ci(p);for(let m=0;mS||o==S&&r>b){i=p,s=y,r=b,o=S;let k=S?e0?m0)}b==0?e>y.bottom&&(!f||f.bottomy.top)&&(a=p,c=y):f&&Ps(f,y)?f=Qr(f,y.bottom):c&&Ps(c,y)&&(c=Gr(c,y.top))}}if(f&&f.bottom>=e?(i=h,s=f):c&&c.top<=e&&(i=a,s=c),!i)return{node:n,offset:0};let u=Math.max(s.left,Math.min(s.right,t));if(i.nodeType==3)return _r(i,u,e);if(l&&i.contentEditable!="false")return wn(i,u,e);let d=Array.prototype.indexOf.call(n.childNodes,i)+(t>=(s.left+s.right)/2?1:0);return{node:n,offset:d}}function _r(n,t,e){let i=n.nodeValue.length,s=-1,r=1e9,o=0;for(let l=0;le?f.top-e:e-f.bottom)-1;if(f.left-1<=t&&f.right+1>=t&&c=(f.left+f.right)/2,d=u;if((C.chrome||C.gecko)&&Ae(n,l).getBoundingClientRect().left==f.right&&(d=!u),c<=0)return{node:n,offset:l+(d?1:0)};s=l+(d?1:0),r=c}}}return{node:n,offset:s>-1?s:o>0?n.nodeValue.length:0}}function dh(n,t,e,i=-1){var s,r;let o=n.contentDOM.getBoundingClientRect(),l=o.top+n.viewState.paddingTop,h,{docHeight:a}=n.viewState,{x:f,y:c}=t,u=c-l;if(u<0)return 0;if(u>a)return n.state.doc.length;for(let k=n.viewState.heightOracle.textHeight/2,v=!1;h=n.elementAtHeight(u),h.type!=Ot.Text;)for(;u=i>0?h.bottom+k:h.top-k,!(u>=0&&u<=a);){if(v)return e?null:0;v=!0,i=-i}c=l+u;let d=h.from;if(dn.viewport.to)return n.viewport.to==n.state.doc.length?n.state.doc.length:e?null:Yr(n,o,h,f,c);let p=n.dom.ownerDocument,g=n.root.elementFromPoint?n.root:p,m=g.elementFromPoint(f,c);m&&!n.contentDOM.contains(m)&&(m=null),m||(f=Math.max(o.left+1,Math.min(o.right-1,f)),m=g.elementFromPoint(f,c),m&&!n.contentDOM.contains(m)&&(m=null));let y,b=-1;if(m&&((s=n.docView.nearest(m))===null||s===void 0?void 0:s.isEditable)!=!1){if(p.caretPositionFromPoint){let k=p.caretPositionFromPoint(f,c);k&&({offsetNode:y,offset:b}=k)}else if(p.caretRangeFromPoint){let k=p.caretRangeFromPoint(f,c);k&&({startContainer:y,startOffset:b}=k,(!n.contentDOM.contains(y)||C.safari&&uc(y,b,f)||C.chrome&&dc(y,b,f))&&(y=void 0))}}if(!y||!n.docView.dom.contains(y)){let k=X.find(n.docView,d);if(!k)return u>h.top+h.height/2?h.to:h.from;({node:y,offset:b}=wn(k.dom,f,c))}let S=n.docView.nearest(y);if(!S)return null;if(S.isWidget&&((r=S.dom)===null||r===void 0?void 0:r.nodeType)==1){let k=S.dom.getBoundingClientRect();return t.yn.defaultLineHeight*1.5){let l=n.viewState.heightOracle.textHeight,h=Math.floor((s-e.top-(n.defaultLineHeight-l)*.5)/l);r+=h*n.viewState.heightOracle.lineLength}let o=n.state.sliceDoc(e.from,e.to);return e.from+Mf(o,r,n.state.tabSize)}function uc(n,t,e){let i;if(n.nodeType!=3||t!=(i=n.nodeValue.length))return!1;for(let s=n.nextSibling;s;s=s.nextSibling)if(s.nodeType!=1||s.nodeName!="BR")return!1;return Ae(n,i-1,i).getBoundingClientRect().left>e}function dc(n,t,e){if(t!=0)return!1;for(let s=n;;){let r=s.parentNode;if(!r||r.nodeType!=1||r.firstChild!=s)return!1;if(r.classList.contains("cm-line"))break;s=r}let i=n.nodeType==1?n.getBoundingClientRect():Ae(n,0,Math.max(n.nodeValue.length,1)).getBoundingClientRect();return e-i.left>5}function pc(n,t){let e=n.lineBlockAt(t);if(Array.isArray(e.type)){for(let i of e.type)if(i.to>t||i.to==t&&(i.to==e.to||i.type==Ot.Text))return i}return e}function gc(n,t,e,i){let s=pc(n,t.head),r=!i||s.type!=Ot.Text||!(n.lineWrapping||s.widgetLineBreaks)?null:n.coordsAtPos(t.assoc<0&&t.head>s.from?t.head-1:t.head);if(r){let o=n.dom.getBoundingClientRect(),l=n.textDirectionAt(s.from),h=n.posAtCoords({x:e==(l==J.LTR)?o.right-1:o.left+1,y:(r.top+r.bottom)/2});if(h!=null)return w.cursor(h,e?-1:1)}return w.cursor(e?s.to:s.from,e?-1:1)}function Jr(n,t,e,i){let s=n.state.doc.lineAt(t.head),r=n.bidiSpans(s),o=n.textDirectionAt(s.from);for(let l=t,h=null;;){let a=$f(s,r,o,l,e),f=Xl;if(!a){if(s.number==(e?n.state.doc.lines:1))return l;f=` +`,s=n.state.doc.line(s.number+(e?1:-1)),r=n.bidiSpans(s),a=n.visualLineSide(s,!e)}if(h){if(!h(f))return l}else{if(!i)return a;h=i(f)}l=a}}function mc(n,t,e){let i=n.state.charCategorizer(t),s=i(e);return r=>{let o=i(r);return s==vt.Space&&(s=o),s==o}}function yc(n,t,e,i){let s=t.head,r=e?1:-1;if(s==(e?n.state.doc.length:0))return w.cursor(s,t.assoc);let o=t.goalColumn,l,h=n.contentDOM.getBoundingClientRect(),a=n.coordsAtPos(s,t.assoc||-1),f=n.documentTop;if(a)o==null&&(o=a.left-h.left),l=r<0?a.top:a.bottom;else{let d=n.viewState.lineBlockAt(s);o==null&&(o=Math.min(h.right-h.left,n.defaultCharacterWidth*(s-d.from))),l=(r<0?d.top:d.bottom)+f}let c=h.left+o,u=i??n.viewState.heightOracle.textHeight>>1;for(let d=0;;d+=10){let p=l+(u+d)*r,g=dh(n,{x:c,y:p},!1,r);if(ph.bottom||(r<0?gs)){let m=n.docView.coordsForChar(g),y=!m||p{if(t>r&&ts(n)),e.from,t.head>e.from?-1:1);return i==e.from?e:w.cursor(i,inull),C.gecko&&Ic(t.contentDOM.ownerDocument)}handleEvent(t){!Oc(this.view,t)||this.ignoreDuringComposition(t)||t.type=="keydown"&&this.keydown(t)||this.runHandlers(t.type,t)}runHandlers(t,e){let i=this.handlers[t];if(i){for(let s of i.observers)s(this.view,e);for(let s of i.handlers){if(e.defaultPrevented)break;if(s(this.view,e)){e.preventDefault();break}}}}ensureHandlers(t){let e=wc(t),i=this.handlers,s=this.view.contentDOM;for(let r in e)if(r!="scroll"){let o=!e[r].handlers.length,l=i[r];l&&o!=!l.handlers.length&&(s.removeEventListener(r,this.handleEvent),l=null),l||s.addEventListener(r,this.handleEvent,{passive:o})}for(let r in i)r!="scroll"&&!e[r]&&s.removeEventListener(r,this.handleEvent);this.handlers=e}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&gh.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),C.android&&C.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let e;return C.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((e=ph.find(i=>i.keyCode==t.keyCode))&&!t.ctrlKey||kc.indexOf(t.key)>-1&&t.ctrlKey&&!t.shiftKey)?(this.pendingIOSKey=e||t,setTimeout(()=>this.flushIOSKey(),250),!0):(t.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(t){let e=this.pendingIOSKey;return!e||e.key=="Enter"&&t&&t.from0?!0:C.safari&&!C.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(t){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=t}update(t){this.view.observer.update(t),this.mouseSelection&&this.mouseSelection.update(t),this.draggedContent&&t.docChanged&&(this.draggedContent=this.draggedContent.map(t.changes)),t.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Xr(n,t){return(e,i)=>{try{return t.call(n,i,e)}catch(s){kt(e.state,s)}}}function wc(n){let t=Object.create(null);function e(i){return t[i]||(t[i]={observers:[],handlers:[]})}for(let i of n){let s=i.spec;if(s&&s.domEventHandlers)for(let r in s.domEventHandlers){let o=s.domEventHandlers[r];o&&e(r).handlers.push(Xr(i.value,o))}if(s&&s.domEventObservers)for(let r in s.domEventObservers){let o=s.domEventObservers[r];o&&e(r).observers.push(Xr(i.value,o))}}for(let i in Nt)e(i).handlers.push(Nt[i]);for(let i in Pt)e(i).observers.push(Pt[i]);return t}const ph=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],kc="dthko",gh=[16,17,18,20,91,92,224,225],Ti=6;function Pi(n){return Math.max(0,n)*.7+8}function xc(n,t){return Math.max(Math.abs(n.clientX-t.clientX),Math.abs(n.clientY-t.clientY))}class Sc{constructor(t,e,i,s){this.view=t,this.startEvent=e,this.style=i,this.mustSelect=s,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=e,this.scrollParents=Lf(t.contentDOM),this.atoms=t.state.facet(_n).map(o=>o(t));let r=t.contentDOM.ownerDocument;r.addEventListener("mousemove",this.move=this.move.bind(this)),r.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=e.shiftKey,this.multiple=t.state.facet(L.allowMultipleSelections)&&vc(t,e),this.dragging=Ac(t,e)&&bh(e)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&xc(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let e=0,i=0,s=0,r=0,o=this.view.win.innerWidth,l=this.view.win.innerHeight;this.scrollParents.x&&({left:s,right:o}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:r,bottom:l}=this.scrollParents.y.getBoundingClientRect());let h=ch(this.view);t.clientX-h.left<=s+Ti?e=-Pi(s-t.clientX):t.clientX+h.right>=o-Ti&&(e=Pi(t.clientX-o)),t.clientY-h.top<=r+Ti?i=-Pi(r-t.clientY):t.clientY+h.bottom>=l-Ti&&(i=Pi(t.clientY-l)),this.setScrollSpeed(e,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e},t||e?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){let{x:t,y:e}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),e&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=e,e=0),(t||e)&&this.view.win.scrollBy(t,e),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let e=null;for(let i=0;ie.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function vc(n,t){let e=n.state.facet($l);return e.length?e[0](t):C.mac?t.metaKey:t.ctrlKey}function Cc(n,t){let e=n.state.facet(Zl);return e.length?e[0](t):C.mac?!t.altKey:!t.ctrlKey}function Ac(n,t){let{main:e}=n.state.selection;if(e.empty)return!1;let i=fi(n.root);if(!i||i.rangeCount==0)return!0;let s=i.getRangeAt(0).getClientRects();for(let r=0;r=t.clientX&&o.top<=t.clientY&&o.bottom>=t.clientY)return!0}return!1}function Oc(n,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let e=t.target,i;e!=n.contentDOM;e=e.parentNode)if(!e||e.nodeType==11||(i=W.get(e))&&i.ignoreEvent(t))return!1;return!0}const Nt=Object.create(null),Pt=Object.create(null),mh=C.ie&&C.ie_version<15||C.ios&&C.webkit_version<604;function Mc(n){let t=n.dom.parentNode;if(!t)return;let e=t.appendChild(document.createElement("textarea"));e.style.cssText="position: fixed; left: -10000px; top: 10px",e.focus(),setTimeout(()=>{n.focus(),e.remove(),yh(n,e.value)},50)}function yh(n,t){let{state:e}=n,i,s=1,r=e.toText(t),o=r.lines==e.selection.ranges.length;if(kn!=null&&e.selection.ranges.every(h=>h.empty)&&kn==r.toString()){let h=-1;i=e.changeByRange(a=>{let f=e.doc.lineAt(a.from);if(f.from==h)return{range:a};h=f.from;let c=e.toText((o?r.line(s++).text:t)+e.lineBreak);return{changes:{from:f.from,insert:c},range:w.cursor(a.from+c.length)}})}else o?i=e.changeByRange(h=>{let a=r.line(s++);return{changes:{from:h.from,to:h.to,insert:a.text},range:w.cursor(h.from+a.length)}}):i=e.replaceSelection(r);n.dispatch(i,{userEvent:"input.paste",scrollIntoView:!0})}Pt.scroll=n=>{n.inputState.lastScrollTop=n.scrollDOM.scrollTop,n.inputState.lastScrollLeft=n.scrollDOM.scrollLeft};Nt.keydown=(n,t)=>(n.inputState.setSelectionOrigin("select"),t.keyCode==27&&n.inputState.tabFocusMode!=0&&(n.inputState.tabFocusMode=Date.now()+2e3),!1);Pt.touchstart=(n,t)=>{n.inputState.lastTouchTime=Date.now(),n.inputState.setSelectionOrigin("select.pointer")};Pt.touchmove=n=>{n.inputState.setSelectionOrigin("select.pointer")};Nt.mousedown=(n,t)=>{if(n.observer.flush(),n.inputState.lastTouchTime>Date.now()-2e3)return!1;let e=null;for(let i of n.state.facet(th))if(e=i(n,t),e)break;if(!e&&t.button==0&&(e=Dc(n,t)),e){let i=!n.hasFocus;n.inputState.startMouseSelection(new Sc(n,t,e,i)),i&&n.observer.ignore(()=>{El(n.contentDOM);let r=n.root.activeElement;r&&!r.contains(n.contentDOM)&&r.blur()});let s=n.inputState.mouseSelection;if(s)return s.start(t),s.dragging===!1}return!1};function $r(n,t,e,i){if(i==1)return w.cursor(t,e);if(i==2)return ac(n.state,t,e);{let s=X.find(n.docView,t),r=n.state.doc.lineAt(s?s.posAtEnd:t),o=s?s.posAtStart:r.from,l=s?s.posAtEnd:r.to;return lt>=e.top&&t<=e.bottom&&n>=e.left&&n<=e.right;function Tc(n,t,e,i){let s=X.find(n.docView,t);if(!s)return 1;let r=t-s.posAtStart;if(r==0)return 1;if(r==s.length)return-1;let o=s.coordsAt(r,-1);if(o&&Zr(e,i,o))return-1;let l=s.coordsAt(r,1);return l&&Zr(e,i,l)?1:o&&o.bottom>=i?-1:1}function to(n,t){let e=n.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:e,bias:Tc(n,e,t.clientX,t.clientY)}}const Pc=C.ie&&C.ie_version<=11;let eo=null,io=0,so=0;function bh(n){if(!Pc)return n.detail;let t=eo,e=so;return eo=n,so=Date.now(),io=!t||e>Date.now()-400&&Math.abs(t.clientX-n.clientX)<2&&Math.abs(t.clientY-n.clientY)<2?(io+1)%3:1}function Dc(n,t){let e=to(n,t),i=bh(t),s=n.state.selection;return{update(r){r.docChanged&&(e.pos=r.changes.mapPos(e.pos),s=s.map(r.changes))},get(r,o,l){let h=to(n,r),a,f=$r(n,h.pos,h.bias,i);if(e.pos!=h.pos&&!o){let c=$r(n,e.pos,e.bias,i),u=Math.min(c.from,f.from),d=Math.max(c.to,f.to);f=u1&&(a=Bc(s,h.pos))?a:l?s.addRange(f):w.create([f])}}}function Bc(n,t){for(let e=0;e=t)return w.create(n.ranges.slice(0,e).concat(n.ranges.slice(e+1)),n.mainIndex==e?0:n.mainIndex-(n.mainIndex>e?1:0))}return null}Nt.dragstart=(n,t)=>{let{selection:{main:e}}=n.state;if(t.target.draggable){let s=n.docView.nearest(t.target);if(s&&s.isWidget){let r=s.posAtStart,o=r+s.length;(r>=e.to||o<=e.from)&&(e=w.range(r,o))}}let{inputState:i}=n;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=e,t.dataTransfer&&(t.dataTransfer.setData("Text",n.state.sliceDoc(e.from,e.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Nt.dragend=n=>(n.inputState.draggedContent=null,!1);function no(n,t,e,i){if(!e)return;let s=n.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:r}=n.inputState,o=i&&r&&Cc(n,t)?{from:r.from,to:r.to}:null,l={from:s,insert:e},h=n.state.changes(o?[o,l]:l);n.focus(),n.dispatch({changes:h,selection:{anchor:h.mapPos(s,-1),head:h.mapPos(s,1)},userEvent:o?"move.drop":"input.drop"}),n.inputState.draggedContent=null}Nt.drop=(n,t)=>{if(!t.dataTransfer)return!1;if(n.state.readOnly)return!0;let e=t.dataTransfer.files;if(e&&e.length){let i=Array(e.length),s=0,r=()=>{++s==e.length&&no(n,t,i.filter(o=>o!=null).join(n.state.lineBreak),!1)};for(let o=0;o{/[\x00-\x08\x0e-\x1f]{2}/.test(l.result)||(i[o]=l.result),r()},l.readAsText(e[o])}return!0}else{let i=t.dataTransfer.getData("Text");if(i)return no(n,t,i,!0),!0}return!1};Nt.paste=(n,t)=>{if(n.state.readOnly)return!0;n.observer.flush();let e=mh?null:t.clipboardData;return e?(yh(n,e.getData("text/plain")||e.getData("text/uri-list")),!0):(Mc(n),!1)};function Rc(n,t){let e=n.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px",i.value=t,i.focus(),i.selectionEnd=t.length,i.selectionStart=0,setTimeout(()=>{i.remove(),n.focus()},50)}function Ec(n){let t=[],e=[],i=!1;for(let s of n.selection.ranges)s.empty||(t.push(n.sliceDoc(s.from,s.to)),e.push(s));if(!t.length){let s=-1;for(let{from:r}of n.selection.ranges){let o=n.doc.lineAt(r);o.number>s&&(t.push(o.text),e.push({from:o.from,to:Math.min(n.doc.length,o.to+1)})),s=o.number}i=!0}return{text:t.join(n.lineBreak),ranges:e,linewise:i}}let kn=null;Nt.copy=Nt.cut=(n,t)=>{let{text:e,ranges:i,linewise:s}=Ec(n.state);if(!e&&!s)return!1;kn=s?e:null,t.type=="cut"&&!n.state.readOnly&&n.dispatch({changes:i,scrollIntoView:!0,userEvent:"delete.cut"});let r=mh?null:t.clipboardData;return r?(r.clearData(),r.setData("text/plain",e),!0):(Rc(n,e),!1)};const wh=te.define();function kh(n,t){let e=[];for(let i of n.facet(sh)){let s=i(n,t);s&&e.push(s)}return e?n.update({effects:e,annotations:wh.of(!0)}):null}function xh(n){setTimeout(()=>{let t=n.hasFocus;if(t!=n.inputState.notifiedFocused){let e=kh(n.state,t);e?n.dispatch(e):n.update([])}},10)}Pt.focus=n=>{n.inputState.lastFocusTime=Date.now(),!n.scrollDOM.scrollTop&&(n.inputState.lastScrollTop||n.inputState.lastScrollLeft)&&(n.scrollDOM.scrollTop=n.inputState.lastScrollTop,n.scrollDOM.scrollLeft=n.inputState.lastScrollLeft),xh(n)};Pt.blur=n=>{n.observer.clearSelectionRange(),xh(n)};Pt.compositionstart=Pt.compositionupdate=n=>{n.observer.editContext||(n.inputState.compositionFirstChange==null&&(n.inputState.compositionFirstChange=!0),n.inputState.composing<0&&(n.inputState.composing=0))};Pt.compositionend=n=>{n.observer.editContext||(n.inputState.composing=-1,n.inputState.compositionEndedAt=Date.now(),n.inputState.compositionPendingKey=!0,n.inputState.compositionPendingChange=n.observer.pendingRecords().length>0,n.inputState.compositionFirstChange=null,C.chrome&&C.android?n.observer.flushSoon():n.inputState.compositionPendingChange?Promise.resolve().then(()=>n.observer.flush()):setTimeout(()=>{n.inputState.composing<0&&n.docView.hasComposition&&n.update([])},50))};Pt.contextmenu=n=>{n.inputState.lastContextMenu=Date.now()};Nt.beforeinput=(n,t)=>{var e;let i;if(C.chrome&&C.android&&(i=ph.find(s=>s.inputType==t.inputType))&&(n.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let s=((e=window.visualViewport)===null||e===void 0?void 0:e.height)||0;setTimeout(()=>{var r;(((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0)>s+10&&n.hasFocus&&(n.contentDOM.blur(),n.focus())},100)}return C.ios&&t.inputType=="deleteContentForward"&&n.observer.flushSoon(),C.safari&&t.inputType=="insertText"&&n.inputState.composing>=0&&setTimeout(()=>Pt.compositionend(n,t),20),!1};const ro=new Set;function Ic(n){ro.has(n)||(ro.add(n),n.addEventListener("copy",()=>{}),n.addEventListener("cut",()=>{}))}const oo=["pre-wrap","normal","pre-line","break-spaces"];class Nc{constructor(t){this.lineWrapping=t,this.doc=F.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;return this.lineWrapping&&(i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength))),this.lineHeight*i}heightForLine(t){return this.lineWrapping?(1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(t){return this.doc=t,this}mustRefreshForWrapping(t){return oo.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=!1;for(let i=0;i-1,h=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=l;if(this.lineWrapping=l,this.lineHeight=e,this.charWidth=i,this.textHeight=s,this.lineLength=r,h){this.heightSamples={};for(let a=0;a0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,e){this.height!=e&&(Math.abs(this.height-e)>Yi&&(t.heightChanged=!0),this.height=e)}replace(t,e,i){return ft.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let r=this,o=i.doc;for(let l=s.length-1;l>=0;l--){let{fromA:h,toA:a,fromB:f,toB:c}=s[l],u=r.lineAt(h,Q.ByPosNoHeight,i.setDoc(e),0,0),d=u.to>=a?u:r.lineAt(a,Q.ByPosNoHeight,i,0,0);for(c+=d.to-a,a=d.to;l>0&&u.from<=s[l-1].toA;)h=s[l-1].fromA,f=s[l-1].fromB,l--,hr*2){let l=t[e-1];l.break?t.splice(--e,1,l.left,null,l.right):t.splice(--e,1,l.left,l.right),i+=1+l.break,s-=l.size}else if(r>s*2){let l=t[i];l.break?t.splice(i,1,l.left,null,l.right):t.splice(i,1,l.left,l.right),i+=2+l.break,r-=l.size}else break;else if(s=r&&o(this.blockAt(0,i,s,r))}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more&&this.setHeight(t,s.heights[s.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class yt extends Sh{constructor(t,e){super(t,e,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,e,i,s){return new Kt(s,this.length,i,this.height,this.breaks)}replace(t,e,i){let s=i[0];return i.length==1&&(s instanceof yt||s instanceof et&&s.flags&4)&&Math.abs(this.length-s.length)<10?(s instanceof et?s=new yt(s.length,this.height):s.height=this.height,this.outdated||(s.outdated=!1),s):ft.of(i)}updateHeight(t,e=0,i=!1,s){return s&&s.from<=e&&s.more?this.setHeight(t,s.heights[s.index++]):(i||this.outdated)&&this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed))+this.breaks*t.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class et extends ft{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number,r=s-i+1,o,l=0;if(t.lineWrapping){let h=Math.min(this.height,t.lineHeight*r);o=h/r,this.length>r+1&&(l=(this.height-h)/(this.length-r-1))}else o=this.height/r;return{firstLine:i,lastLine:s,perLine:o,perChar:l}}blockAt(t,e,i,s){let{firstLine:r,lastLine:o,perLine:l,perChar:h}=this.heightMetrics(e,s);if(e.lineWrapping){let a=s+(t0){let r=i[i.length-1];r instanceof et?i[i.length-1]=new et(r.length+s):i.push(null,new et(s-1))}if(t>0){let r=i[0];r instanceof et?i[0]=new et(t+r.length):i.unshift(new et(t-1),null)}return ft.of(i)}decomposeLeft(t,e){e.push(new et(t-1),null)}decomposeRight(t,e){e.push(null,new et(this.length-t-1))}updateHeight(t,e=0,i=!1,s){let r=e+this.length;if(s&&s.from<=e+this.length&&s.more){let o=[],l=Math.max(e,s.from),h=-1;for(s.from>e&&o.push(new et(s.from-e-1).updateHeight(t,e));l<=r&&s.more;){let f=t.doc.lineAt(l).length;o.length&&o.push(null);let c=s.heights[s.index++];h==-1?h=c:Math.abs(c-h)>=Yi&&(h=-2);let u=new yt(f,c);u.outdated=!1,o.push(u),l+=f+1}l<=r&&o.push(null,new et(r-l).updateHeight(t,l));let a=ft.of(o);return(h<0||Math.abs(a.height-this.height)>=Yi||Math.abs(h-this.heightMetrics(t,e).perLine)>=Yi)&&(t.heightChanged=!0),a}else(i||this.outdated)&&(this.setHeight(t,t.heightForGap(e,e+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Vc extends ft{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0)),this.left=t,this.right=i,this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let r=i+this.left.height;return tl))return a;let f=e==Q.ByPosNoHeight?Q.ByPosNoHeight:Q.ByPos;return h?a.join(this.right.lineAt(l,f,i,o,l)):this.left.lineAt(l,f,i,s,r).join(a)}forEachLine(t,e,i,s,r,o){let l=s+this.left.height,h=r+this.left.length+this.break;if(this.break)t=h&&this.right.forEachLine(t,e,i,l,h,o);else{let a=this.lineAt(h,Q.ByPos,i,s,r);t=t&&a.from<=e&&o(a),e>a.to&&this.right.forEachLine(a.to+1,e,i,l,h,o)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let r=[];t>0&&this.decomposeLeft(t,r);let o=r.length;for(let l of i)r.push(l);if(t>0&&lo(r,o-1),e=i&&e.push(null)),t>i&&this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);t2*e.size||e.size>2*t.size?ft.of(this.break?[t,null,e]:[t,e]):(this.left=t,this.right=e,this.height=t.height+e.height,this.outdated=t.outdated||e.outdated,this.size=t.size+e.size,this.length=t.length+this.break+e.length,this)}updateHeight(t,e=0,i=!1,s){let{left:r,right:o}=this,l=e+r.length+this.break,h=null;return s&&s.from<=e+r.length&&s.more?h=r=r.updateHeight(t,e,i,s):r.updateHeight(t,e,i),s&&s.from<=l+o.length&&s.more?h=o=o.updateHeight(t,l,i,s):o.updateHeight(t,l,i),h?this.balanced(r,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function lo(n,t){let e,i;n[t]==null&&(e=n[t-1])instanceof et&&(i=n[t+1])instanceof et&&n.splice(t-1,3,new et(e.length+1+i.length))}const Fc=5;class Yn{constructor(t,e){this.pos=t,this.oracle=e,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let i=Math.min(e,this.lineEnd),s=this.nodes[this.nodes.length-1];s instanceof yt?s.length+=i-this.pos:(i>this.pos||!this.isCovered)&&this.nodes.push(new yt(i-this.pos,-1)),this.writtenTo=i,e>i&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=e}point(t,e,i){if(t=Fc)&&this.addLineDeco(s,r,o)}else e>t&&this.span(t,e);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=e,this.writtenTot&&this.nodes.push(new yt(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,e){let i=new et(e-t);return this.oracle.doc.lineAt(t).to==e&&(i.flags|=4),i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof yt)return t;let e=new yt(0,-1);return this.nodes.push(e),e}addBlock(t){this.enterLine();let e=t.deco;e&&e.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(t),this.writtenTo=this.pos=this.pos+t.length,e&&e.endSide>0&&(this.covering=t)}addLineDeco(t,e,i){let s=this.ensureLine();s.length+=i,s.collapsed+=i,s.widgetHeight=Math.max(s.widgetHeight,t),s.breaks+=e,this.writtenTo=this.pos=this.pos+i}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(e instanceof yt)&&!this.isCovered?this.nodes.push(new yt(0,-1)):(this.writtenTof.clientHeight||f.scrollWidth>f.clientWidth)&&c.overflow!="visible"){let u=f.getBoundingClientRect();r=Math.max(r,u.left),o=Math.min(o,u.right),l=Math.max(l,u.top),h=a==n.parentNode?u.bottom:Math.min(h,u.bottom)}a=c.position=="absolute"||c.position=="fixed"?f.offsetParent:f.parentNode}else if(a.nodeType==11)a=a.host;else break;return{left:r-e.left,right:Math.max(r,o)-e.left,top:l-(e.top+t),bottom:Math.max(l,h)-(e.top+t)}}function jc(n,t){let e=n.getBoundingClientRect();return{left:0,right:e.right-e.left,top:t,bottom:e.bottom-(e.top+t)}}class Bs{constructor(t,e,i){this.from=t,this.to=e,this.size=i}static same(t,e){if(t.length!=e.length)return!1;for(let i=0;itypeof i!="function"&&i.class=="cm-lineWrapping");this.heightOracle=new Nc(e),this.stateDeco=t.facet(ui).filter(i=>typeof i!="function"),this.heightMap=ft.empty().applyChanges(this.stateDeco,F.empty,this.heightOracle.setDoc(t.doc),[new Mt(0,0,0,t.doc.length)]);for(let i=0;i<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());i++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=K.set(this.lineGaps.map(i=>i.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some(({from:r,to:o})=>s>=r&&s<=o)){let{from:r,to:o}=this.lineBlockAt(s);t.push(new Di(r,o))}}return this.viewports=t.sort((i,s)=>i.from-s.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?ao:new Jn(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(ei(t,this.scaler))})}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(ui).filter(f=>typeof f!="function");let s=t.changedRanges,r=Mt.extendWithRanges(s,Hc(i,this.stateDeco,t?t.changes:$.empty(this.state.doc.length))),o=this.heightMap.height,l=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),r),this.heightMap.height!=o&&(t.flags|=2),l?(this.scrollAnchorPos=t.changes.mapPos(l.from,-1),this.scrollAnchorHeight=l.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let h=r.length?this.mapViewport(this.viewport,t.changes):this.viewport;(e&&(e.range.headh.to)||!this.viewportIsAppropriate(h))&&(h=this.getViewport(0,e));let a=h.from!=this.viewport.from||h.to!=this.viewport.to;this.viewport=h,t.flags|=this.updateForViewport(),(a||!t.changes.empty||t.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),e&&(this.scrollTarget=e),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(tc)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e),s=this.heightOracle,r=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?J.RTL:J.LTR;let o=this.heightOracle.mustRefreshForWrapping(r),l=e.getBoundingClientRect(),h=o||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height,this.mustMeasureContent=!1;let a=0,f=0;if(l.width&&l.height){let{scaleX:k,scaleY:v}=Rl(e,l);(k>.005&&Math.abs(this.scaleX-k)>.005||v>.005&&Math.abs(this.scaleY-v)>.005)&&(this.scaleX=k,this.scaleY=v,a|=8,o=h=!0)}let c=(parseInt(i.paddingTop)||0)*this.scaleY,u=(parseInt(i.paddingBottom)||0)*this.scaleY;(this.paddingTop!=c||this.paddingBottom!=u)&&(this.paddingTop=c,this.paddingBottom=u,a|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(s.lineWrapping&&(h=!0),this.editorWidth=t.scrollDOM.clientWidth,a|=8);let d=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=d&&(this.scrollAnchorHeight=-1,this.scrollTop=d),this.scrolledToBottom=Nl(t.scrollDOM);let p=(this.printing?jc:Wc)(e,this.paddingTop),g=p.top-this.pixelViewport.top,m=p.bottom-this.pixelViewport.bottom;this.pixelViewport=p;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(h=!0)),!this.inView&&!this.scrollTarget)return 0;let b=l.width;if((this.contentDOMWidth!=b||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=l.width,this.editorHeight=t.scrollDOM.clientHeight,a|=8),h){let k=t.docView.measureVisibleLineHeights(this.viewport);if(s.mustRefreshForHeights(k)&&(o=!0),o||s.lineWrapping&&Math.abs(b-this.contentDOMWidth)>s.charWidth){let{lineHeight:v,charWidth:P,textHeight:O}=t.docView.measureTextSize();o=v>0&&s.refresh(r,v,P,O,b/P,k),o&&(t.docView.minWidth=0,a|=8)}g>0&&m>0?f=Math.max(g,m):g<0&&m<0&&(f=Math.min(g,m)),s.heightChanged=!1;for(let v of this.viewports){let P=v.from==this.viewport.from?k:t.docView.measureVisibleLineHeights(v);this.heightMap=(o?ft.empty().applyChanges(this.stateDeco,F.empty,this.heightOracle,[new Mt(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(s,0,o,new Lc(v.from,P))}s.heightChanged&&(a|=2)}let S=!this.viewportIsAppropriate(this.viewport,f)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return S&&(a&2&&(a|=this.updateScaler()),this.viewport=this.getViewport(f,this.scrollTarget),a|=this.updateForViewport()),(a&2||S)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]:this.lineGaps,t)),a|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),s=this.heightMap,r=this.heightOracle,{visibleTop:o,visibleBottom:l}=this,h=new Di(s.lineAt(o-i*1e3,Q.ByHeight,r,0,0).from,s.lineAt(l+(1-i)*1e3,Q.ByHeight,r,0,0).to);if(e){let{head:a}=e.range;if(ah.to){let f=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),c=s.lineAt(a,Q.ByPos,r,0,0),u;e.y=="center"?u=(c.top+c.bottom)/2-f/2:e.y=="start"||e.y=="nearest"&&a=l+Math.max(10,Math.min(i,250)))&&s>o-2*1e3&&r>1,o=s<<1;if(this.defaultTextDirection!=J.LTR&&!i)return[];let l=[],h=(f,c,u,d)=>{if(c-ff&&yy.from>=u.from&&y.to<=u.to&&Math.abs(y.from-f)y.fromb));if(!m){if(cy.from<=c&&y.to>=c)){let y=e.moveToLineBoundary(w.cursor(c),!1,!0).head;y>f&&(c=y)}m=new Bs(f,c,this.gapSize(u,f,c,d))}l.push(m)},a=f=>{if(f.lengthf.from&&h(f.from,d,f,c),pe.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let e=[];V.spans(t,this.viewport.from,this.viewport.to,{span(s,r){e.push({from:s,to:r})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some((s,r)=>s.from!=e[r].from||s.to!=e[r].to);return this.visibleRanges=e,i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(e=>e.from<=t&&e.to>=t)||ei(this.heightMap.lineAt(t,Q.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(e=>e.top<=t&&e.bottom>=t)||ei(this.heightMap.lineAt(this.scaler.fromDOM(t),Q.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(t){let e=this.lineBlockAtHeight(t+8);return e.from>=this.viewport.from||this.viewportLines[0].top-t>200?e:this.viewportLines[0]}elementAtHeight(t){return ei(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class Di{constructor(t,e){this.from=t,this.to=e}}function Kc(n,t,e){let i=[],s=n,r=0;return V.spans(e,n,t,{span(){},point(o,l){o>s&&(i.push({from:s,to:o}),r+=o-s),s=l}},20),s=1)return t[t.length-1].to;let i=Math.floor(n*e);for(let s=0;;s++){let{from:r,to:o}=t[s],l=o-r;if(i<=l)return r+i;i-=l}}function Ri(n,t){let e=0;for(let{from:i,to:s}of n.ranges){if(t<=s){e+=t-i;break}e+=s-i}return e/n.total}function Uc(n,t){for(let e of n)if(t(e))return e}const ao={toDOM(n){return n},fromDOM(n){return n},scale:1,eq(n){return n==this}};class Jn{constructor(t,e,i){let s=0,r=0,o=0;this.viewports=i.map(({from:l,to:h})=>{let a=e.lineAt(l,Q.ByPos,t,0,0).top,f=e.lineAt(h,Q.ByPos,t,0,0).bottom;return s+=f-a,{from:l,to:h,top:a,bottom:f,domTop:0,domBottom:0}}),this.scale=(7e6-s)/(e.height-s);for(let l of this.viewports)l.domTop=o+(l.top-r)*this.scale,o=l.domBottom=l.domTop+(l.bottom-l.top),r=l.bottom}toDOM(t){for(let e=0,i=0,s=0;;e++){let r=ee.from==t.viewports[i].from&&e.to==t.viewports[i].to):!1}}function ei(n,t){if(t.scale==1)return n;let e=t.toDOM(n.top),i=t.toDOM(n.bottom);return new Kt(n.from,n.length,e,i-e,Array.isArray(n._content)?n._content.map(s=>ei(s,t)):n._content)}const Ei=T.define({combine:n=>n.join(" ")}),xn=T.define({combine:n=>n.indexOf(!0)>-1}),Sn=We.newName(),vh=We.newName(),Ch=We.newName(),Ah={"&light":"."+vh,"&dark":"."+Ch};function vn(n,t,e){return new We(t,{finish(i){return/&/.test(i)?i.replace(/&\w*/,s=>{if(s=="&")return n;if(!e||!e[s])throw new RangeError(`Unsupported selector: ${s}`);return e[s]}):n+" "+i}})}const Gc=vn("."+Sn,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Ah),ii="￿";class Qc{constructor(t,e){this.points=t,this.text="",this.lineSeparator=e.facet(L.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=ii}readRange(t,e){if(!t)return this;let i=t.parentNode;for(let s=t;;){this.findPointBefore(i,s);let r=this.text.length;this.readNode(s);let o=s.nextSibling;if(o==e)break;let l=W.get(s),h=W.get(o);(l&&h?l.breakAfter:(l?l.breakAfter:es(s))||es(o)&&(s.nodeName!="BR"||s.cmIgnore)&&this.text.length>r)&&this.lineBreak(),s=o}return this.findPointBefore(i,e),this}readTextNode(t){let e=t.nodeValue;for(let i of this.points)i.node==t&&(i.pos=this.text.length+Math.min(i.offset,e.length));for(let i=0,s=this.lineSeparator?null:/\r\n?|\n/g;;){let r=-1,o=1,l;if(this.lineSeparator?(r=e.indexOf(this.lineSeparator,i),o=this.lineSeparator.length):(l=s.exec(e))&&(r=l.index,o=l[0].length),this.append(e.slice(i,r<0?e.length:r)),r<0)break;if(this.lineBreak(),o>1)for(let h of this.points)h.node==t&&h.pos>this.text.length&&(h.pos-=o-1);i=r+o}}readNode(t){if(t.cmIgnore)return;let e=W.get(t),i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let s=i.iter();!s.next().done;)s.lineBreak?this.lineBreak():this.append(s.value)}else t.nodeType==3?this.readTextNode(t):t.nodeName=="BR"?t.nextSibling&&this.lineBreak():t.nodeType==1&&this.readRange(t.firstChild,null)}findPointBefore(t,e){for(let i of this.points)i.node==t&&t.childNodes[i.offset]==e&&(i.pos=this.text.length)}findPointInside(t,e){for(let i of this.points)(t.nodeType==3?i.node==t:t.contains(i.node))&&(i.pos=this.text.length+(_c(t,i.node,i.offset)?e:0))}}function _c(n,t,e){for(;;){if(!t||e<$t(t))return!1;if(t==n)return!0;e=Ce(t)+1,t=t.parentNode}}class fo{constructor(t,e){this.node=t,this.offset=e,this.pos=-1}}class Yc{constructor(t,e,i,s){this.typeOver=s,this.bounds=null,this.text="",this.domChanged=e>-1;let{impreciseHead:r,impreciseAnchor:o}=t.docView;if(t.state.readOnly&&e>-1)this.newSel=null;else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let l=r||o?[]:$c(t),h=new Qc(l,t.state);h.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=h.text,this.newSel=Zc(l,this.bounds.from)}else{let l=t.observer.selectionRange,h=r&&r.node==l.focusNode&&r.offset==l.focusOffset||!hn(t.contentDOM,l.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(l.focusNode,l.focusOffset),a=o&&o.node==l.anchorNode&&o.offset==l.anchorOffset||!hn(t.contentDOM,l.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(l.anchorNode,l.anchorOffset),f=t.viewport;if((C.ios||C.chrome)&&t.state.selection.main.empty&&h!=a&&(f.from>0||f.toDate.now()-100?n.inputState.lastKeyCode:-1;if(t.bounds){let{from:o,to:l}=t.bounds,h=s.from,a=null;(r===8||C.android&&t.text.length=s.from&&e.to<=s.to&&(e.from!=s.from||e.to!=s.to)&&s.to-s.from-(e.to-e.from)<=4?e={from:s.from,to:s.to,insert:n.state.doc.slice(s.from,e.from).append(e.insert).append(n.state.doc.slice(e.to,s.to))}:(C.mac||C.android)&&e&&e.from==e.to&&e.from==s.head-1&&/^\. ?$/.test(e.insert.toString())&&n.contentDOM.getAttribute("autocorrect")=="off"?(i&&e.insert.length==2&&(i=w.single(i.main.anchor-1,i.main.head-1)),e={from:s.from,to:s.to,insert:F.of([" "])}):C.chrome&&e&&e.from==e.to&&e.from==s.head&&e.insert.toString()==` + `&&n.lineWrapping&&(i&&(i=w.single(i.main.anchor-1,i.main.head-1)),e={from:s.from,to:s.to,insert:F.of([" "])}),e)return Mh(n,e,i,r);if(i&&!i.main.eq(s)){let o=!1,l="select";return n.inputState.lastSelectionTime>Date.now()-50&&(n.inputState.lastSelectionOrigin=="select"&&(o=!0),l=n.inputState.lastSelectionOrigin),n.dispatch({selection:i,scrollIntoView:o,userEvent:l}),!0}else return!1}function Mh(n,t,e,i=-1){if(C.ios&&n.inputState.flushIOSKey(t))return!0;let s=n.state.selection.main;if(C.android&&(t.to==s.to&&(t.from==s.from||t.from==s.from-1&&n.state.sliceDoc(t.from,s.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Ne(n.contentDOM,"Enter",13)||(t.from==s.from-1&&t.to==s.to&&t.insert.length==0||i==8&&t.insert.lengths.head)&&Ne(n.contentDOM,"Backspace",8)||t.from==s.from&&t.to==s.to+1&&t.insert.length==0&&Ne(n.contentDOM,"Delete",46)))return!0;let r=t.insert.toString();n.inputState.composing>=0&&n.inputState.composing++;let o,l=()=>o||(o=Jc(n,t,e));return n.state.facet(ih).some(h=>h(n,t.from,t.to,r,l))||n.dispatch(l()),!0}function Jc(n,t,e){let i,s=n.state,r=s.selection.main;if(t.from>=r.from&&t.to<=r.to&&t.to-t.from>=(r.to-r.from)/3&&(!e||e.main.empty&&e.main.from==t.from+t.insert.length)&&n.inputState.composing<0){let l=r.fromt.to?s.sliceDoc(t.to,r.to):"";i=s.replaceSelection(n.state.toText(l+t.insert.sliceString(0,void 0,n.state.lineBreak)+h))}else{let l=s.changes(t),h=e&&e.main.to<=l.newLength?e.main:void 0;if(s.selection.ranges.length>1&&n.inputState.composing>=0&&t.to<=r.to&&t.to>=r.to-10){let a=n.state.sliceDoc(t.from,t.to),f,c=e&&uh(n,e.main.head);if(c){let p=t.insert.length-(t.to-t.from);f={from:c.from,to:c.to-p}}else f=n.state.doc.lineAt(r.head);let u=r.to-t.to,d=r.to-r.from;i=s.changeByRange(p=>{if(p.from==r.from&&p.to==r.to)return{changes:l,range:h||p.map(l)};let g=p.to-u,m=g-a.length;if(p.to-p.from!=d||n.state.sliceDoc(m,g)!=a||p.to>=f.from&&p.from<=f.to)return{range:p};let y=s.changes({from:m,to:g,insert:t.insert}),b=p.to-r.to;return{changes:y,range:h?w.range(Math.max(0,h.anchor+b),Math.max(0,h.head+b)):p.map(y)}})}else i={changes:l,selection:h&&s.selection.replaceRange(h)}}let o="input.type";return(n.composing||n.inputState.compositionPendingChange&&n.inputState.compositionEndedAt>Date.now()-50)&&(n.inputState.compositionPendingChange=!1,o+=".compose",n.inputState.compositionFirstChange&&(o+=".start",n.inputState.compositionFirstChange=!1)),s.update(i,{userEvent:o,scrollIntoView:!0})}function Xc(n,t,e,i){let s=Math.min(n.length,t.length),r=0;for(;r0&&l>0&&n.charCodeAt(o-1)==t.charCodeAt(l-1);)o--,l--;if(i=="end"){let h=Math.max(0,r-Math.min(o,l));e-=o+h-r}if(o=o?r-e:0;r-=h,l=r+(l-o),o=r}else if(l=l?r-e:0;r-=h,o=r+(o-l),l=r}return{from:r,toA:o,toB:l}}function $c(n){let t=[];if(n.root.activeElement!=n.contentDOM)return t;let{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}=n.observer.selectionRange;return e&&(t.push(new fo(e,i)),(s!=e||r!=i)&&t.push(new fo(s,r))),t}function Zc(n,t){if(n.length==0)return null;let e=n[0].pos,i=n.length==2?n[1].pos:e;return e>-1&&i>-1?w.single(e+t,i+t):null}const tu={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Rs=C.ie&&C.ie_version<=11;class eu{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new Vf,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(e=>{for(let i of e)this.queue.push(i);(C.ie&&C.ie_version<=11||C.ios&&t.composing)&&e.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&t.constructor.EDIT_CONTEXT!==!1&&!(C.chrome&&C.chrome_version<126)&&(this.editContext=new su(t),t.state.facet(ne)&&(t.contentDOM.editContext=this.editContext.editContext)),Rs&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var e;((e=this.view.docView)===null||e===void 0?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runHandlers("scroll",t),this.intersecting&&this.view.measure()}onScroll(t){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){t.type=="change"&&!t.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some((e,i)=>e!=t[i]))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(ne)?i.root.activeElement!=this.dom:!Qi(i.dom,s))return;let r=s.anchorNode&&i.docView.nearest(s.anchorNode);if(r&&r.ignoreEvent(t)){e||(this.selectionChanged=!1);return}(C.ie&&C.ie_version<=11||C.android&&C.chrome)&&!i.state.selection.main.empty&&s.focusNode&&ri(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,e=fi(t.root);if(!e)return!1;let i=C.safari&&t.root.nodeType==11&&Ef(this.dom.ownerDocument)==this.dom&&iu(this.view,e)||e;if(!i||this.selectionRange.eq(i))return!1;let s=Qi(this.dom,i);return s&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let r=this.delayedAndroidKey;r&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=r.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&r.force&&Ne(this.dom,r.key,r.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(s)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let e=-1,i=-1,s=!1;for(let r of t){let o=this.readMutation(r);o&&(o.typeOver&&(s=!0),e==-1?{from:e,to:i}=o:(e=Math.min(o.from,e),i=Math.max(o.to,i)))}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords(),s=this.selectionChanged&&Qi(this.dom,this.selectionRange);if(t<0&&!s)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let r=new Yc(this.view,t,e,i);return this.view.docView.domChanged={newSel:r.newSel?r.newSel.main:null},r}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let e=this.readChange();if(!e)return this.view.requestMeasure(),!1;let i=this.view.state,s=Oh(this.view,e);return this.view.state==i&&(e.domChanged||e.newSel&&!e.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;if(e.markDirty(t.type=="attributes"),t.type=="attributes"&&(e.flags|=4),t.type=="childList"){let i=co(e,t.previousSibling||t.target.previousSibling,-1),s=co(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:!1}}else return t.type=="characterData"?{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}:null}setWindow(t){t!=this.win&&(this.removeWindowListeners(this.win),this.win=t,this.addWindowListeners(this.win))}addWindowListeners(t){t.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):t.addEventListener("beforeprint",this.onPrint),t.addEventListener("scroll",this.onScroll),t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(ne)!=t.state.facet(ne)&&(t.view.contentDOM.editContext=t.state.facet(ne)?this.editContext.editContext:null))}destroy(){var t,e,i;this.stop(),(t=this.intersection)===null||t===void 0||t.disconnect(),(e=this.gapIntersection)===null||e===void 0||e.disconnect(),(i=this.resizeScroll)===null||i===void 0||i.disconnect();for(let s of this.scrollTargets)s.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function co(n,t,e){for(;t;){let i=W.get(t);if(i&&i.parent==n)return i;let s=t.parentNode;t=s!=n.dom?s:e>0?t.nextSibling:t.previousSibling}return null}function uo(n,t){let e=t.startContainer,i=t.startOffset,s=t.endContainer,r=t.endOffset,o=n.docView.domAtPos(n.state.selection.main.anchor);return ri(o.node,o.offset,s,r)&&([e,i,s,r]=[s,r,e,i]),{anchorNode:e,anchorOffset:i,focusNode:s,focusOffset:r}}function iu(n,t){if(t.getComposedRanges){let s=t.getComposedRanges(n.root)[0];if(s)return uo(n,s)}let e=null;function i(s){s.preventDefault(),s.stopImmediatePropagation(),e=s.getTargetRanges()[0]}return n.contentDOM.addEventListener("beforeinput",i,!0),n.dom.ownerDocument.execCommand("indent"),n.contentDOM.removeEventListener("beforeinput",i,!0),e?uo(n,e):null}class su{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(t.state);let e=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=i=>{let{anchor:s}=t.state.selection.main,r={from:this.toEditorPos(i.updateRangeStart),to:this.toEditorPos(i.updateRangeEnd),insert:F.of(i.text.split(` +`))};r.from==this.from&&sthis.to&&(r.to=s),!(r.from==r.to&&!r.insert.length)&&(this.pendingContextChange=r,t.state.readOnly||Mh(t,r,w.single(this.toEditorPos(i.selectionStart),this.toEditorPos(i.selectionEnd))),this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)))},this.handlers.characterboundsupdate=i=>{let s=[],r=null;for(let o=this.toEditorPos(i.rangeStart),l=this.toEditorPos(i.rangeEnd);o{let s=[];for(let r of i.getTextFormats()){let o=r.underlineStyle,l=r.underlineThickness;if(o!="None"&&l!="None"){let h=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${l=="Thin"?1:2}px`;s.push(K.mark({attributes:{style:h}}).range(this.toEditorPos(r.rangeStart),this.toEditorPos(r.rangeEnd)))}}t.dispatch({effects:oh.of(K.set(s))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{t.inputState.composing=-1,t.inputState.compositionFirstChange=null};for(let i in this.handlers)e.addEventListener(i,this.handlers[i]);this.measureReq={read:i=>{this.editContext.updateControlBounds(i.contentDOM.getBoundingClientRect());let s=fi(i.root);s&&s.rangeCount&&this.editContext.updateSelectionBounds(s.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let e=0,i=!1,s=this.pendingContextChange;return t.changes.iterChanges((r,o,l,h,a)=>{if(i)return;let f=a.length-(o-r);if(s&&o>=s.to)if(s.from==r&&s.to==o&&s.insert.eq(a)){s=this.pendingContextChange=null,e+=f,this.to+=f;return}else s=null,this.revertPending(t.state);if(r+=e,o+=e,o<=this.from)this.from+=f,this.to+=f;else if(rthis.to||this.to-this.from+a.length>3e4){i=!0;return}this.editContext.updateText(this.toContextPos(r),this.toContextPos(o),a.toString()),this.to+=f}e+=f}),s&&!i&&this.revertPending(t.state),!i}update(t){let e=this.pendingContextChange;!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)):(t.docChanged||t.selectionSet||e)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:e}=t.selection.main;this.from=Math.max(0,e-1e4),this.to=Math.min(t.doc.length,e+1e4)}revertPending(t){let e=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(e.from),this.toContextPos(e.from+e.insert.length),t.doc.sliceString(e.from,e.to))}setSelection(t){let{main:e}=t.selection,i=this.toContextPos(Math.max(this.from,Math.min(this.to,e.anchor))),s=this.toContextPos(e.head);(this.editContext.selectionStart!=i||this.editContext.selectionEnd!=s)&&this.editContext.updateSelection(i,s)}rangeIsValid(t){let{head:e}=t.selection.main;return!(this.from>0&&e-this.from<500||this.to1e4*3)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class D{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(t={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),t.parent&&t.parent.appendChild(this.dom);let{dispatch:e}=t;this.dispatchTransactions=t.dispatchTransactions||e&&(i=>i.forEach(s=>e(s,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=t.root||Ff(t.parent)||document,this.viewState=new ho(t.state||L.create(t)),t.scrollTo&&t.scrollTo.is(Mi)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Ze).map(i=>new Ts(i));for(let i of this.plugins)i.update(this);this.observer=new eu(this),this.inputState=new bc(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Kr(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let e=t.length==1&&t[0]instanceof Z?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(e,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=!1,i=!1,s,r=this.state;for(let u of t){if(u.startState!=r)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");r=u.state}if(this.destroyed){this.viewState.state=r;return}let o=this.hasFocus,l=0,h=null;t.some(u=>u.annotation(wh))?(this.inputState.notifiedFocused=o,l=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,h=kh(r,o),h||(l=1));let a=this.observer.delayedAndroidKey,f=null;if(a?(this.observer.clearDelayedAndroidKey(),f=this.observer.readChange(),(f&&!this.state.doc.eq(r.doc)||!this.state.selection.eq(r.selection))&&(f=null)):this.observer.clear(),r.facet(L.phrases)!=this.state.facet(L.phrases))return this.setState(r);s=ss.create(this,r,t),s.flags|=l;let c=this.viewState.scrollTarget;try{this.updateState=2;for(let u of t){if(c&&(c=c.map(u.changes)),u.scrollIntoView){let{main:d}=u.state.selection;c=new Le(d.empty?d:w.cursor(d.head,d.head>d.anchor?-1:1))}for(let d of u.effects)d.is(Mi)&&(c=d.value.clip(this.state))}this.viewState.update(s,c),this.bidiCache=ns.update(this.bidiCache,s.changes),s.empty||(this.updatePlugins(s),this.inputState.update(s)),e=this.docView.update(s),this.state.facet(ti)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(e,t.some(u=>u.isUserEvent("select.pointer")))}finally{this.updateState=0}if(s.startState.facet(Ei)!=s.state.facet(Ei)&&(this.viewState.mustMeasureContent=!0),(e||i||c||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),e&&this.docViewUpdate(),!s.empty)for(let u of this.state.facet(bn))try{u(s)}catch(d){kt(this.state,d,"update listener")}(h||f)&&Promise.resolve().then(()=>{h&&this.state==h.startState&&this.dispatch(h),f&&!Oh(this,f)&&a.force&&Ne(this.contentDOM,a.key,a.keyCode)})}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let i of this.plugins)i.destroy(this);this.viewState=new ho(t),this.plugins=t.facet(Ze).map(i=>new Ts(i)),this.pluginMap.clear();for(let i of this.plugins)i.update(this);this.docView.destroy(),this.docView=new Kr(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}e&&this.focus(),this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Ze),i=t.state.facet(Ze);if(e!=i){let s=[];for(let r of i){let o=e.indexOf(r);if(o<0)s.push(new Ts(r));else{let l=this.plugins[o];l.mustUpdate=t,s.push(l)}}for(let r of this.plugins)r.mustUpdate!=t&&r.destroy(this);this.plugins=s,this.pluginMap.clear()}else for(let s of this.plugins)s.mustUpdate=t;for(let s=0;s-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let e=null,i=this.scrollDOM,s=i.scrollTop*this.scaleY,{scrollAnchorPos:r,scrollAnchorHeight:o}=this.viewState;Math.abs(s-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let l=0;;l++){if(o<0)if(Nl(i))r=-1,o=this.viewState.heightMap.height;else{let d=this.viewState.scrollAnchorAt(s);r=d.from,o=d.top}this.updateState=1;let h=this.viewState.measure(this);if(!h&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(l>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let a=[];h&4||([this.measureRequests,a]=[a,this.measureRequests]);let f=a.map(d=>{try{return d.read(this)}catch(p){return kt(this.state,p),po}}),c=ss.create(this,this.state,[]),u=!1;c.flags|=h,e?e.flags|=h:e=c,this.updateState=2,c.empty||(this.updatePlugins(c),this.inputState.update(c),this.updateAttrs(),u=this.docView.update(c),u&&this.docViewUpdate());for(let d=0;d1||p<-1){s=s+p,i.scrollTop=s/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(bn))l(e)}get themeClasses(){return Sn+" "+(this.state.facet(xn)?Ch:vh)+" "+this.state.facet(Ei)}updateAttrs(){let t=go(this,lh,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(ne)?"true":"false",class:"cm-content",style:`${C.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(e["aria-readonly"]="true"),go(this,Qn,e);let i=this.observer.ignore(()=>{let s=dn(this.contentDOM,this.contentAttrs,e),r=dn(this.dom,this.editorAttrs,t);return s||r});return this.editorAttrs=t,this.contentAttrs=e,i}showAnnouncements(t){let e=!0;for(let i of t)for(let s of i.effects)if(s.is(D.announce)){e&&(this.announceDOM.textContent=""),e=!1;let r=this.announceDOM.appendChild(document.createElement("div"));r.textContent=s.value}}mountStyles(){this.styleModules=this.state.facet(ti);let t=this.state.facet(D.cspNonce);We.mount(this.root,this.styleModules.concat(Gc).reverse(),t?{nonce:t}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(t){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null){for(let e=0;ei.spec==t)||null),e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(t){return this.readMeasured(),this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){return this.readMeasured(),this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return Ds(this,t,Jr(this,t,e,i))}moveByGroup(t,e){return Ds(this,t,Jr(this,t,e,i=>mc(this,t.head,i)))}visualLineSide(t,e){let i=this.bidiSpans(t),s=this.textDirectionAt(t.from),r=i[e?i.length-1:0];return w.cursor(r.side(e,s)+t.from,r.forward(!e,s)?1:-1)}moveToLineBoundary(t,e,i=!0){return gc(this,t,e,i)}moveVertically(t,e,i){return Ds(this,t,yc(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=!0){return this.readMeasured(),dh(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),r=this.bidiSpans(s),o=r[le.find(r,t-s.from,-1,e)];return Kn(i,o.dir==J.LTR==e>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(nh)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>nu)return Jl(t.length);let e=this.textDirectionAt(t.from),i;for(let r of this.bidiCache)if(r.from==t.from&&r.dir==e&&(r.fresh||Yl(r.isolates,i=qr(this,t))))return r.order;i||(i=qr(this,t));let s=Xf(t.text,e,i);return this.bidiCache.push(new ns(t.from,t.to,e,i,!0,s)),s}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||C.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{El(this.contentDOM),this.docView.updateSelection()})}setRoot(t){this._root!=t&&(this._root=t,this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let t of this.plugins)t.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(t,e={}){return Mi.of(new Le(typeof t=="number"?w.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:e}=this.scrollDOM,i=this.viewState.scrollAnchorAt(t);return Mi.of(new Le(w.cursor(i.from),"start","start",i.top-t,e,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return It.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return It.define(()=>({}),{eventObservers:t})}static theme(t,e){let i=We.newName(),s=[Ei.of(i),ti.of(vn(`.${i}`,t))];return e&&e.dark&&s.push(xn.of(!0)),s}static baseTheme(t){return yi.lowest(ti.of(vn("."+Sn,t,Ah)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content"),s=i&&W.get(i)||W.get(t);return((e=s==null?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}D.styleModule=ti;D.inputHandler=ih;D.scrollHandler=rh;D.focusChangeEffect=sh;D.perLineTextDirection=nh;D.exceptionSink=eh;D.updateListener=bn;D.editable=ne;D.mouseSelectionStyle=th;D.dragMovesSelection=Zl;D.clickAddsSelectionRange=$l;D.decorations=ui;D.outerDecorations=hh;D.atomicRanges=_n;D.bidiIsolatedRanges=ah;D.scrollMargins=fh;D.darkTheme=xn;D.cspNonce=T.define({combine:n=>n.length?n[0]:""});D.contentAttributes=Qn;D.editorAttributes=lh;D.lineWrapping=D.contentAttributes.of({class:"cm-lineWrapping"});D.announce=j.define();const nu=4096,po={};class ns{constructor(t,e,i,s,r,o){this.from=t,this.to=e,this.dir=i,this.isolates=s,this.fresh=r,this.order=o}static update(t,e){if(e.empty&&!t.some(r=>r.fresh))return t;let i=[],s=t.length?t[t.length-1].dir:J.LTR;for(let r=Math.max(0,t.length-10);r=0;s--){let r=i[s],o=typeof r=="function"?r(n):r;o&&un(o,e)}return e}const ru=C.mac?"mac":C.windows?"win":C.linux?"linux":"key";function ou(n,t){const e=n.split(/-(?!$)/);let i=e[e.length-1];i=="Space"&&(i=" ");let s,r,o,l;for(let h=0;hi.concat(s),[]))),e}let re=null;const au=4e3;function fu(n,t=ru){let e=Object.create(null),i=Object.create(null),s=(o,l)=>{let h=i[o];if(h==null)i[o]=l;else if(h!=l)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},r=(o,l,h,a,f)=>{var c,u;let d=e[o]||(e[o]=Object.create(null)),p=l.split(/ (?!$)/).map(y=>ou(y,t));for(let y=1;y{let k=re={view:S,prefix:b,scope:o};return setTimeout(()=>{re==k&&(re=null)},au),!0}]})}let g=p.join(" ");s(g,!1);let m=d[g]||(d[g]={preventDefault:!1,stopPropagation:!1,run:((u=(c=d._any)===null||c===void 0?void 0:c.run)===null||u===void 0?void 0:u.slice())||[]});h&&m.run.push(h),a&&(m.preventDefault=!0),f&&(m.stopPropagation=!0)};for(let o of n){let l=o.scope?o.scope.split(" "):["editor"];if(o.any)for(let a of l){let f=e[a]||(e[a]=Object.create(null));f._any||(f._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:c}=o;for(let u in f)f[u].run.push(d=>c(d,Cn))}let h=o[t]||o.key;if(h)for(let a of l)r(a,h,o.run,o.preventDefault,o.stopPropagation),o.shift&&r(a,"Shift-"+h,o.shift,o.preventDefault,o.stopPropagation)}return e}let Cn=null;function cu(n,t,e,i){Cn=t;let s=Rf(t),r=bt(s,0),o=qt(r)==s.length&&s!=" ",l="",h=!1,a=!1,f=!1;re&&re.view==e&&re.scope==i&&(l=re.prefix+" ",gh.indexOf(t.keyCode)<0&&(a=!0,re=null));let c=new Set,u=m=>{if(m){for(let y of m.run)if(!c.has(y)&&(c.add(y),y(e)))return m.stopPropagation&&(f=!0),!0;m.preventDefault&&(m.stopPropagation&&(f=!0),a=!0)}return!1},d=n[i],p,g;return d&&(u(d[l+Ii(s,t,!o)])?h=!0:o&&(t.altKey||t.metaKey||t.ctrlKey)&&!(C.windows&&t.ctrlKey&&t.altKey)&&(p=fe[t.keyCode])&&p!=s?(u(d[l+Ii(p,t,!0)])||t.shiftKey&&(g=ai[t.keyCode])!=s&&g!=p&&u(d[l+Ii(g,t,!1)]))&&(h=!0):o&&t.shiftKey&&u(d[l+Ii(s,t,!0)])&&(h=!0),!h&&u(d._any)&&(h=!0)),a&&(h=!0),h&&f&&t.stopPropagation(),Cn=null,h}const uu=!C.ios,yo={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};uu&&(yo[".cm-line"].caretColor=yo[".cm-content"].caretColor="transparent !important");const Je="-10000px";class du{constructor(t,e,i,s){this.facet=e,this.createTooltipView=i,this.removeTooltipView=s,this.input=t.state.facet(e),this.tooltips=this.input.filter(o=>o);let r=null;this.tooltipViews=this.tooltips.map(o=>r=i(o,r))}update(t,e){var i;let s=t.state.facet(this.facet),r=s.filter(h=>h);if(s===this.input){for(let h of this.tooltipViews)h.update&&h.update(t);return!1}let o=[],l=e?[]:null;for(let h=0;he[a]=h),e.length=l.length),this.input=s,this.tooltips=r,this.tooltipViews=o,!0}}function pu(n){let{win:t}=n;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const Es=T.define({combine:n=>{var t,e,i;return{position:C.ios?"absolute":((t=n.find(s=>s.position))===null||t===void 0?void 0:t.position)||"fixed",parent:((e=n.find(s=>s.parent))===null||e===void 0?void 0:e.parent)||null,tooltipSpace:((i=n.find(s=>s.tooltipSpace))===null||i===void 0?void 0:i.tooltipSpace)||pu}}}),bo=new WeakMap,Th=It.fromClass(class{constructor(n){this.view=n,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=n.state.facet(Es);this.position=t.position,this.parent=t.parent,this.classes=n.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new du(n,Ph,(e,i)=>this.createTooltip(e,i),e=>{this.resizeObserver&&this.resizeObserver.unobserve(e.dom),e.dom.remove()}),this.above=this.manager.tooltips.map(e=>!!e.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),n.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let n of this.manager.tooltipViews)this.intersectionObserver.observe(n.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(n){n.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(n,this.above);t&&this.observeIntersection();let e=t||n.geometryChanged,i=n.state.facet(Es);if(i.position!=this.position&&!this.madeAbsolute){this.position=i.position;for(let s of this.manager.tooltipViews)s.dom.style.position=this.position;e=!0}if(i.parent!=this.parent){this.parent&&this.container.remove(),this.parent=i.parent,this.createContainer();for(let s of this.manager.tooltipViews)this.container.appendChild(s.dom);e=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);e&&this.maybeMeasure()}createTooltip(n,t){let e=n.create(this.view),i=t?t.dom:null;if(e.dom.classList.add("cm-tooltip"),n.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let s=document.createElement("div");s.className="cm-tooltip-arrow",e.dom.appendChild(s)}return e.dom.style.position=this.position,e.dom.style.top=Je,e.dom.style.left="0px",this.container.insertBefore(e.dom,i),e.mount&&e.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(e.dom),e}destroy(){var n,t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews)i.dom.remove(),(n=i.destroy)===null||n===void 0||n.call(i);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(e=this.intersectionObserver)===null||e===void 0||e.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let n=this.view.dom.getBoundingClientRect(),t=1,e=1,i=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:s}=this.manager.tooltipViews[0];if(C.gecko)i=s.offsetParent!=this.container.ownerDocument.body;else if(s.style.top==Je&&s.style.left=="0px"){let r=s.getBoundingClientRect();i=Math.abs(r.top+1e4)>1||Math.abs(r.left)>1}}if(i||this.position=="absolute")if(this.parent){let s=this.parent.getBoundingClientRect();s.width&&s.height&&(t=s.width/this.parent.offsetWidth,e=s.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:e}=this.view.viewState);return{editor:n,parent:this.parent?this.container.getBoundingClientRect():n,pos:this.manager.tooltips.map((s,r)=>{let o=this.manager.tooltipViews[r];return o.getCoords?o.getCoords(s.pos):this.view.coordsAtPos(s.pos)}),size:this.manager.tooltipViews.map(({dom:s})=>s.getBoundingClientRect()),space:this.view.state.facet(Es).tooltipSpace(this.view),scaleX:t,scaleY:e,makeAbsolute:i}}writeMeasure(n){var t;if(n.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let l of this.manager.tooltipViews)l.dom.style.position="absolute"}let{editor:e,space:i,scaleX:s,scaleY:r}=n,o=[];for(let l=0;l=Math.min(e.bottom,i.bottom)||c.rightMath.min(e.right,i.right)+.1){f.style.top=Je;continue}let d=h.arrow?a.dom.querySelector(".cm-tooltip-arrow"):null,p=d?7:0,g=u.right-u.left,m=(t=bo.get(a))!==null&&t!==void 0?t:u.bottom-u.top,y=a.offset||mu,b=this.view.textDirection==J.LTR,S=u.width>i.right-i.left?b?i.left:i.right-u.width:b?Math.max(i.left,Math.min(c.left-(d?14:0)+y.x,i.right-g)):Math.min(Math.max(i.left,c.left-g+(d?14:0)-y.x),i.right-g),k=this.above[l];!h.strictSide&&(k?c.top-(u.bottom-u.top)-y.yi.bottom)&&k==i.bottom-c.bottom>c.top-i.top&&(k=this.above[l]=!k);let v=(k?c.top-i.top:i.bottom-c.bottom)-p;if(vS&&B.topP&&(P=k?B.top-m-2-p:B.bottom+p+2);if(this.position=="absolute"?(f.style.top=(P-n.parent.top)/r+"px",f.style.left=(S-n.parent.left)/s+"px"):(f.style.top=P/r+"px",f.style.left=S/s+"px"),d){let B=c.left+(b?y.x:-y.x)-(S+14-7);d.style.left=B/s+"px"}a.overlap!==!0&&o.push({left:S,top:P,right:O,bottom:P+m}),f.classList.toggle("cm-tooltip-above",k),f.classList.toggle("cm-tooltip-below",!k),a.positioned&&a.positioned(n.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let n of this.manager.tooltipViews)n.dom.style.top=Je}},{eventObservers:{scroll(){this.maybeMeasure()}}}),gu=D.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),mu={x:0,y:0},Ph=T.define({enables:[Th,gu]});function Dh(n,t){let e=n.plugin(Th);if(!e)return null;let i=e.manager.tooltips.indexOf(t);return i<0?null:e.manager.tooltipViews[i]}class Me extends ve{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}Me.prototype.elementClass="";Me.prototype.toDOM=void 0;Me.prototype.mapMode=pt.TrackBefore;Me.prototype.startSide=Me.prototype.endSide=-1;Me.prototype.point=!0;const Is=T.define(),yu={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>V.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ji=T.define();function bu(n){return[wu(),Ji.of(Object.assign(Object.assign({},yu),n))]}const wo=T.define({combine:n=>n.some(t=>t)});function wu(n){return[ku]}const ku=It.fromClass(class{constructor(n){this.view=n,this.prevViewport=n.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=n.state.facet(Ji).map(t=>new xo(n,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!n.state.facet(wo),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),n.scrollDOM.insertBefore(this.dom,n.contentDOM)}update(n){if(this.updateGutters(n)){let t=this.prevViewport,e=n.view.viewport,i=Math.min(t.to,e.to)-Math.max(t.from,e.from);this.syncGutters(i<(e.to-e.from)*.8)}n.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(wo)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=n.view.viewport}syncGutters(n){let t=this.dom.nextSibling;n&&this.dom.remove();let e=V.iter(this.view.state.facet(Is),this.view.viewport.from),i=[],s=this.gutters.map(r=>new xu(r,this.view.viewport,-this.view.documentPadding.top));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let o=!0;for(let l of r.type)if(l.type==Ot.Text&&o){An(e,i,l.from);for(let h of s)h.line(this.view,l,i);o=!1}else if(l.widget)for(let h of s)h.widget(this.view,l)}else if(r.type==Ot.Text){An(e,i,r.from);for(let o of s)o.line(this.view,r,i)}else if(r.widget)for(let o of s)o.widget(this.view,r);for(let r of s)r.finish();n&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(n){let t=n.startState.facet(Ji),e=n.state.facet(Ji),i=n.docChanged||n.heightChanged||n.viewportChanged||!V.eq(n.startState.facet(Is),n.state.facet(Is),n.view.viewport.from,n.view.viewport.to);if(t==e)for(let s of this.gutters)s.update(n)&&(i=!0);else{i=!0;let s=[];for(let r of e){let o=t.indexOf(r);o<0?s.push(new xo(this.view,r)):(this.gutters[o].update(n),s.push(this.gutters[o]))}for(let r of this.gutters)r.dom.remove(),s.indexOf(r)<0&&r.destroy();for(let r of s)this.dom.appendChild(r.dom);this.gutters=s}return i}destroy(){for(let n of this.gutters)n.destroy();this.dom.remove()}},{provide:n=>D.scrollMargins.of(t=>{let e=t.plugin(n);return!e||e.gutters.length==0||!e.fixed?null:t.textDirection==J.LTR?{left:e.dom.offsetWidth*t.scaleX}:{right:e.dom.offsetWidth*t.scaleX}})});function ko(n){return Array.isArray(n)?n:[n]}function An(n,t,e){for(;n.value&&n.from<=e;)n.from==e&&t.push(n.value),n.next()}class xu{constructor(t,e,i){this.gutter=t,this.height=i,this.i=0,this.cursor=V.iter(t.markers,e.from)}addElement(t,e,i){let{gutter:s}=this,r=(e.top-this.height)/t.scaleY,o=e.height/t.scaleY;if(this.i==s.elements.length){let l=new Bh(t,o,r,i);s.elements.push(l),s.dom.appendChild(l.dom)}else s.elements[this.i].update(t,o,r,i);this.height=e.bottom,this.i++}line(t,e,i){let s=[];An(this.cursor,s,e.from),i.length&&(s=s.concat(i));let r=this.gutter.config.lineMarker(t,e,s);r&&s.unshift(r);let o=this.gutter;s.length==0&&!o.config.renderEmptyElements||this.addElement(t,e,s)}widget(t,e){let i=this.gutter.config.widgetMarker(t,e.widget,e);i&&this.addElement(t,e,[i])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let e=t.elements.pop();t.dom.removeChild(e.dom),e.destroy()}}}class xo{constructor(t,e){this.view=t,this.config=e,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers)this.dom.addEventListener(i,s=>{let r=s.target,o;if(r!=this.dom&&this.dom.contains(r)){for(;r.parentNode!=this.dom;)r=r.parentNode;let h=r.getBoundingClientRect();o=(h.top+h.bottom)/2}else o=s.clientY;let l=t.lineBlockAtHeight(o-t.documentTop);e.domEventHandlers[i](t,l,s)&&s.preventDefault()});this.markers=ko(e.markers(t)),e.initialSpacer&&(this.spacer=new Bh(t,0,0,[e.initialSpacer(t)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(t){let e=this.markers;if(this.markers=ko(this.config.markers(t.view)),this.spacer&&this.config.updateSpacer){let s=this.config.updateSpacer(this.spacer.markers[0],t);s!=this.spacer.markers[0]&&this.spacer.update(t.view,0,0,[s])}let i=t.view.viewport;return!V.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):!1)}destroy(){for(let t of this.elements)t.destroy()}}class Bh{constructor(t,e,i,s){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(t,e,i,s)}update(t,e,i,s){this.height!=e&&(this.height=e,this.dom.style.height=e+"px"),this.above!=i&&(this.dom.style.marginTop=(this.above=i)?i+"px":""),Su(this.markers,s)||this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let r=0,o=0;;){let l=o,h=r{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=xt.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}};I.closedBy=new I({deserialize:n=>n.split(" ")});I.openedBy=new I({deserialize:n=>n.split(" ")});I.group=new I({deserialize:n=>n.split(" ")});I.isolate=new I({deserialize:n=>{if(n&&n!="rtl"&&n!="ltr"&&n!="auto")throw new RangeError("Invalid value for isolate: "+n);return n||"auto"}});I.contextHash=new I({perNode:!0});I.lookAhead=new I({perNode:!0});I.mounted=new I({perNode:!0});class rs{constructor(t,e,i){this.tree=t,this.overlay=e,this.parser=i}static get(t){return t&&t.props&&t.props[I.mounted.id]}}const Cu=Object.create(null);let xt=class Eh{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):Cu,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new Eh(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(I.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return i=>{for(let s=i.prop(I.group),r=-1;r<(s?s.length:0);r++){let o=e[r<0?i.name:s[r]];if(o)return o}}}};xt.none=new xt("",Object.create(null),0,8);class ks{constructor(t){this.types=t;for(let e=0;e0;for(let h=this.cursor(o|tt.IncludeAnonymous);;){let a=!1;if(h.from<=r&&h.to>=s&&(!l&&h.type.isAnonymous||e(h)!==!1)){if(h.firstChild())continue;a=!0}for(;a&&i&&(l||!h.type.isAnonymous)&&i(h),!h.nextSibling();){if(!h.parent())return;a=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let e in this.props)t.push([+e,this.props[e]]);return t}balance(t={}){return this.children.length<=8?this:tr(xt.none,this.children,this.positions,0,this.children.length,0,this.length,(e,i,s)=>new q(this.type,e,i,s,this.propValues),t.makeTree||((e,i,s)=>new q(xt.none,e,i,s)))}static build(t){return Tu(t)}}q.empty=new q(xt.none,[],[],0);class $n{constructor(t,e){this.buffer=t,this.index=e}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new $n(this.buffer,this.index)}}class ue{constructor(t,e,i){this.buffer=t,this.length=e,this.set=i}get type(){return xt.none}toString(){let t=[];for(let e=0;e0));h=o[h+3]);return l}slice(t,e,i){let s=this.buffer,r=new Uint16Array(e-t),o=0;for(let l=t,h=0;l=t&&et;case 1:return e<=t&&i>t;case 2:return i>t;case 4:return!0}}function di(n,t,e,i){for(var s;n.from==n.to||(e<1?n.from>=t:n.from>t)||(e>-1?n.to<=t:n.to0?l.length:-1;t!=a;t+=e){let f=l[t],c=h[t]+o.from;if(Ih(s,i,c,c+f.length)){if(f instanceof ue){if(r&tt.ExcludeBuffers)continue;let u=f.findChild(0,f.buffer.length,e,i-c,s);if(u>-1)return new he(new Au(o,f,t,c),null,u)}else if(r&tt.IncludeAnonymous||!f.type.isAnonymous||Zn(f)){let u;if(!(r&tt.IgnoreMounts)&&(u=rs.get(f))&&!u.overlay)return new Tt(u.tree,c,t,o);let d=new Tt(f,c,t,o);return r&tt.IncludeAnonymous||!d.type.isAnonymous?d:d.nextChild(e<0?f.children.length-1:0,e,i,s)}}}if(r&tt.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?t=o.index+e:t=e<0?-1:o._parent._tree.children.length,o=o._parent,!o))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,e,i=0){let s;if(!(i&tt.IgnoreOverlays)&&(s=rs.get(this._tree))&&s.overlay){let r=t-this.from;for(let{from:o,to:l}of s.overlay)if((e>0?o<=r:o=r:l>r))return new Tt(s.tree,s.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,t,e,i)}nextSignificantParent(){let t=this;for(;t.type.isAnonymous&&t._parent;)t=t._parent;return t}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function vo(n,t,e,i){let s=n.cursor(),r=[];if(!s.firstChild())return r;if(e!=null){for(let o=!1;!o;)if(o=s.type.is(e),!s.nextSibling())return r}for(;;){if(i!=null&&s.type.is(i))return r;if(s.type.is(t)&&r.push(s.node),!s.nextSibling())return i==null?r:[]}}function On(n,t,e=t.length-1){for(let i=n.parent;e>=0;i=i.parent){if(!i)return!1;if(!i.type.isAnonymous){if(t[e]&&t[e]!=i.name)return!1;e--}}return!0}class Au{constructor(t,e,i,s){this.parent=t,this.buffer=e,this.index=i,this.start=s}}class he extends Nh{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,e,i){super(),this.context=t,this._parent=e,this.index=i,this.type=t.buffer.set.types[t.buffer.buffer[i]]}child(t,e,i){let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.context.start,i);return r<0?null:new he(this.context,this,r)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,e,i=0){if(i&tt.ExcludeBuffers)return null;let{buffer:s}=this.context,r=s.findChild(this.index+4,s.buffer[this.index+3],e>0?1:-1,t-this.context.start,e);return r<0?null:new he(this.context,this,r)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,e=t.buffer[this.index+3];return e<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new he(this.context,this._parent,e):this.externalSibling(1)}get prevSibling(){let{buffer:t}=this.context,e=this._parent?this._parent.index+4:0;return this.index==e?this.externalSibling(-1):new he(this.context,this._parent,t.findChild(e,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],e=[],{buffer:i}=this.context,s=this.index+4,r=i.buffer[this.index+3];if(r>s){let o=i.buffer[this.index+1];t.push(i.slice(s,r,o)),e.push(0)}return new q(this.type,t,e,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function Lh(n){if(!n.length)return null;let t=0,e=n[0];for(let r=1;re.from||o.to=t){let l=new Tt(o.tree,o.overlay[0].from+r.from,-1,r);(s||(s=[i])).push(di(l,t,e,!1))}}return s?Lh(s):i}class Mn{get name(){return this.type.name}constructor(t,e=0){if(this.mode=e,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,t instanceof Tt)this.yieldNode(t);else{this._tree=t.context.parent,this.buffer=t.context;for(let i=t._parent;i;i=i._parent)this.stack.unshift(i.index);this.bufferNode=t,this.yieldBuf(t.index)}}yieldNode(t){return t?(this._tree=t,this.type=t.type,this.from=t.from,this.to=t.to,!0):!1}yieldBuf(t,e){this.index=t;let{start:i,buffer:s}=this.buffer;return this.type=e||s.set.types[s.buffer[t]],this.from=i+s.buffer[t+1],this.to=i+s.buffer[t+2],!0}yield(t){return t?t instanceof Tt?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,e,i){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,e,i,this.mode));let{buffer:s}=this.buffer,r=s.findChild(this.index+4,s.buffer[this.index+3],t,e-this.buffer.start,i);return r<0?!1:(this.stack.push(this.index),this.yieldBuf(r))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,e,i=this.mode){return this.buffer?i&tt.ExcludeBuffers?!1:this.enterChild(1,t,e):this.yield(this._tree.enter(t,e,i))}parent(){if(!this.buffer)return this.yieldNode(this.mode&tt.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&tt.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:e}=this.buffer,i=this.stack.length-1;if(t<0){let s=i<0?0:this.stack[i]+4;if(this.index!=s)return this.yieldBuf(e.findChild(s,this.index,-1,0,4))}else{let s=e.buffer[this.index+3];if(s<(i<0?e.buffer.length:e.buffer[this.stack[i]+3]))return this.yieldBuf(s)}return i<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let e,i,{buffer:s}=this;if(s){if(t>0){if(this.index-1)for(let r=e+t,o=t<0?-1:i._tree.children.length;r!=o;r+=t){let l=i._tree.children[r];if(this.mode&tt.IncludeAnonymous||l instanceof ue||!l.type.isAnonymous||Zn(l))return!1}return!0}move(t,e){if(e&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,e=0){for(;(this.from==this.to||(e<1?this.from>=t:this.from>t)||(e>-1?this.to<=t:this.to=0;){for(let o=t;o;o=o._parent)if(o.index==s){if(s==this.index)return o;e=o,i=r+1;break t}s=this.stack[--r]}for(let s=i;s=0;r--){if(r<0)return On(this.node,t,s);let o=i[e.buffer[this.stack[r]]];if(!o.isAnonymous){if(t[s]&&t[s]!=o.name)return!1;s--}}return!0}}function Zn(n){return n.children.some(t=>t instanceof ue||!t.type.isAnonymous||Zn(t))}function Tu(n){var t;let{buffer:e,nodeSet:i,maxBufferLength:s=Rh,reused:r=[],minRepeatType:o=i.types.length}=n,l=Array.isArray(e)?new $n(e,e.length):e,h=i.types,a=0,f=0;function c(v,P,O,B,H,N){let{id:R,start:E,end:U,size:G}=l,ot=f;for(;G<0;)if(l.next(),G==-1){let Yt=r[R];O.push(Yt),B.push(E-v);return}else if(G==-3){a=R;return}else if(G==-4){f=R;return}else throw new RangeError(`Unrecognized record size: ${G}`);let _t=h[R],M,_,mt=E-v;if(U-E<=s&&(_=m(l.pos-P,H))){let Yt=new Uint16Array(_.size-_.skip),St=l.pos-_.size,Lt=Yt.length;for(;l.pos>St;)Lt=y(_.start,Yt,Lt);M=new ue(Yt,U-_.start,i),mt=_.start-v}else{let Yt=l.pos-G;l.next();let St=[],Lt=[],ge=R>=o?R:-1,Pe=0,vi=U;for(;l.pos>Yt;)ge>=0&&l.id==ge&&l.size>=0?(l.end<=vi-s&&(p(St,Lt,E,Pe,l.end,vi,ge,ot),Pe=St.length,vi=l.end),l.next()):N>2500?u(E,Yt,St,Lt):c(E,Yt,St,Lt,ge,N+1);if(ge>=0&&Pe>0&&Pe-1&&Pe>0){let pr=d(_t);M=tr(_t,St,Lt,0,St.length,0,U-E,pr,pr)}else M=g(_t,St,Lt,U-E,ot-U)}O.push(M),B.push(mt)}function u(v,P,O,B){let H=[],N=0,R=-1;for(;l.pos>P;){let{id:E,start:U,end:G,size:ot}=l;if(ot>4)l.next();else{if(R>-1&&U=0;G-=3)E[ot++]=H[G],E[ot++]=H[G+1]-U,E[ot++]=H[G+2]-U,E[ot++]=ot;O.push(new ue(E,H[2]-U,i)),B.push(U-v)}}function d(v){return(P,O,B)=>{let H=0,N=P.length-1,R,E;if(N>=0&&(R=P[N])instanceof q){if(!N&&R.type==v&&R.length==B)return R;(E=R.prop(I.lookAhead))&&(H=O[N]+R.length+E)}return g(v,P,O,B,H)}}function p(v,P,O,B,H,N,R,E){let U=[],G=[];for(;v.length>B;)U.push(v.pop()),G.push(P.pop()+O-H);v.push(g(i.types[R],U,G,N-H,E-N)),P.push(H-O)}function g(v,P,O,B,H=0,N){if(a){let R=[I.contextHash,a];N=N?[R].concat(N):[R]}if(H>25){let R=[I.lookAhead,H];N=N?[R].concat(N):[R]}return new q(v,P,O,B,N)}function m(v,P){let O=l.fork(),B=0,H=0,N=0,R=O.end-s,E={size:0,start:0,skip:0};t:for(let U=O.pos-v;O.pos>U;){let G=O.size;if(O.id==P&&G>=0){E.size=B,E.start=H,E.skip=N,N+=4,B+=4,O.next();continue}let ot=O.pos-G;if(G<0||ot=o?4:0,M=O.start;for(O.next();O.pos>ot;){if(O.size<0)if(O.size==-3)_t+=4;else break t;else O.id>=o&&(_t+=4);O.next()}H=M,B+=G,N+=_t}return(P<0||B==v)&&(E.size=B,E.start=H,E.skip=N),E.size>4?E:void 0}function y(v,P,O){let{id:B,start:H,end:N,size:R}=l;if(l.next(),R>=0&&B4){let U=l.pos-(R-4);for(;l.pos>U;)O=y(v,P,O)}P[--O]=E,P[--O]=N-v,P[--O]=H-v,P[--O]=B}else R==-3?a=B:R==-4&&(f=B);return O}let b=[],S=[];for(;l.pos>0;)c(n.start||0,n.bufferStart||0,b,S,-1,0);let k=(t=n.length)!==null&&t!==void 0?t:b.length?S[0]+b[0].length:0;return new q(h[n.topID],b.reverse(),S.reverse(),k)}const Co=new WeakMap;function Xi(n,t){if(!n.isAnonymous||t instanceof ue||t.type!=n)return 1;let e=Co.get(t);if(e==null){e=1;for(let i of t.children){if(i.type!=n||!(i instanceof q)){e=1;break}e+=Xi(n,i)}Co.set(t,e)}return e}function tr(n,t,e,i,s,r,o,l,h){let a=0;for(let p=i;p=f)break;P+=O}if(S==k+1){if(P>f){let O=p[k];d(O.children,O.positions,0,O.children.length,g[k]+b);continue}c.push(p[k])}else{let O=g[S-1]+p[S-1].length-v;c.push(tr(n,p,g,k,S,v,O,null,h))}u.push(v+b-r)}}return d(t,e,i,s,0),(l||h)(c,u,o)}class Se{constructor(t,e,i,s,r=!1,o=!1){this.from=t,this.to=e,this.tree=i,this.offset=s,this.open=(r?1:0)|(o?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,e=[],i=!1){let s=[new Se(0,t.length,t,0,!1,i)];for(let r of e)r.to>t.length&&s.push(r);return s}static applyChanges(t,e,i=128){if(!e.length)return t;let s=[],r=1,o=t.length?t[0]:null;for(let l=0,h=0,a=0;;l++){let f=l=i)for(;o&&o.from=u.from||c<=u.to||a){let d=Math.max(u.from,h)-a,p=Math.min(u.to,c)-a;u=d>=p?null:new Se(d,p,u.tree,u.offset+a,l>0,!!f)}if(u&&s.push(u),o.to>c)break;o=rnew Ns(s.from,s.to)):[new Ns(0,0)]:[new Ns(0,t.length)],this.createParse(t,e||[],i)}parse(t,e,i){let s=this.startParse(t,e,i);for(;;){let r=s.advance();if(r)return r}}}class Pu{constructor(t){this.string=t}get length(){return this.string.length}chunk(t){return this.string.slice(t)}get lineChunks(){return!1}read(t,e){return this.string.slice(t,e)}}new I({perNode:!0});let Du=0;class rt{constructor(t={}){this.id=Du++,this.perNode=!!t.perNode,this.deserialize=t.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(t){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof t!="function"&&(t=pi.match(t)),e=>{let i=t(e);return i===void 0?null:[this,i]}}}rt.closedBy=new rt({deserialize:n=>n.split(" ")});rt.openedBy=new rt({deserialize:n=>n.split(" ")});rt.group=new rt({deserialize:n=>n.split(" ")});rt.contextHash=new rt({perNode:!0});rt.lookAhead=new rt({perNode:!0});rt.mounted=new rt({perNode:!0});const Bu=Object.create(null);class pi{constructor(t,e,i,s=0){this.name=t,this.props=e,this.id=i,this.flags=s}static define(t){let e=t.props&&t.props.length?Object.create(null):Bu,i=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),s=new pi(t.name||"",e,t.id,i);if(t.props){for(let r of t.props)if(Array.isArray(r)||(r=r(s)),r){if(r[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");e[r[0].id]=r[1]}}return s}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let e=this.prop(rt.group);return e?e.indexOf(t)>-1:!1}return this.id==t}static match(t){let e=Object.create(null);for(let i in t)for(let s of i.split(" "))e[s]=t[i];return i=>{for(let s=i.prop(rt.group),r=-1;r<(s?s.length:0);r++){let o=e[r<0?i.name:s[r]];if(o)return o}}}}pi.none=new pi("",Object.create(null),0,8);var Ao;(function(n){n[n.ExcludeBuffers=1]="ExcludeBuffers",n[n.IncludeAnonymous=2]="IncludeAnonymous",n[n.IgnoreMounts=4]="IgnoreMounts",n[n.IgnoreOverlays=8]="IgnoreOverlays"})(Ao||(Ao={}));new rt({perNode:!0});let Ru=0;class Wt{constructor(t,e,i){this.set=t,this.base=e,this.modified=i,this.id=Ru++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let e=new Wt([],null,[]);if(e.set.push(e),t)for(let i of t.set)e.set.push(i);return e}static defineModifier(){let t=new os;return e=>e.modified.indexOf(t)>-1?e:os.get(e.base||e,e.modified.concat(t).sort((i,s)=>i.id-s.id))}}let Eu=0;class os{constructor(){this.instances=[],this.id=Eu++}static get(t,e){if(!e.length)return t;let i=e[0].instances.find(l=>l.base==t&&Iu(e,l.modified));if(i)return i;let s=[],r=new Wt(s,t,e);for(let l of e)l.instances.push(r);let o=Nu(e);for(let l of t.set)if(!l.modified.length)for(let h of o)s.push(os.get(l,h));return r}}function Iu(n,t){return n.length==t.length&&n.every((e,i)=>e==t[i])}function Nu(n){let t=[[]];for(let e=0;ei.length-e.length)}function Vh(n){let t=Object.create(null);for(let e in n){let i=n[e];Array.isArray(i)||(i=[i]);for(let s of e.split(" "))if(s){let r=[],o=2,l=s;for(let c=0;;){if(l=="..."&&c>0&&c+3==s.length){o=1;break}let u=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(l);if(!u)throw new RangeError("Invalid path: "+s);if(r.push(u[0]=="*"?"":u[0][0]=='"'?JSON.parse(u[0]):u[0]),c+=u[0].length,c==s.length)break;let d=s[c++];if(c==s.length&&d=="!"){o=0;break}if(d!="/")throw new RangeError("Invalid path: "+s);l=s.slice(c)}let h=r.length-1,a=r[h];if(!a)throw new RangeError("Invalid path: "+s);let f=new ls(i,o,h>0?r.slice(0,h):null);t[a]=f.sort(t[a])}}return Fh.add(t)}const Fh=new rt;class ls{constructor(t,e,i,s){this.tags=t,this.mode=e,this.context=i,this.next=s}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let o=s;for(let l of r)for(let h of l.set){let a=e[h.id];if(a){o=o?o+" "+a:a;break}}return o},scope:i}}function Lu(n,t){let e=null;for(let i of n){let s=i.style(t);s&&(e=e?e+" "+s:s)}return e}function Vu(n,t,e,i=0,s=n.length){let r=new Fu(i,Array.isArray(t)?t:[t],e);r.highlightRange(n.cursor(),i,s,"",r.highlighters),r.flush(s)}class Fu{constructor(t,e,i){this.at=t,this.highlighters=e,this.span=i,this.class=""}startSpan(t,e){e!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=e)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,e,i,s,r){let{type:o,from:l,to:h}=t;if(l>=i||h<=e)return;o.isTop&&(r=this.highlighters.filter(d=>!d.scope||d.scope(o)));let a=s,f=Hu(t)||ls.empty,c=Lu(r,f.tags);if(c&&(a&&(a+=" "),a+=c,f.mode==1&&(s+=(s?" ":"")+c)),this.startSpan(t.from,a),f.opaque)return;let u=t.tree&&t.tree.prop(rt.mounted);if(u&&u.overlay){let d=t.node.enter(u.overlay[0].from+l,1),p=this.highlighters.filter(m=>!m.scope||m.scope(u.tree.type)),g=t.firstChild();for(let m=0,y=l;;m++){let b=m=S||!t.nextSibling())););if(!b||S>i)break;y=b.to+l,y>e&&(this.highlightRange(d.cursor(),Math.max(e,b.from+l),Math.min(i,y),s,p),this.startSpan(y,a))}g&&t.parent()}else if(t.firstChild()){do if(!(t.to<=e)){if(t.from>=i)break;this.highlightRange(t,e,i,s,r),this.startSpan(Math.min(i,t.to),a)}while(t.nextSibling());t.parent()}}}function Hu(n){let t=n.type.prop(Fh);for(;t&&t.context&&!n.matchContext(t.context);)t=t.next;return t||null}const x=Wt.define,Li=x(),ie=x(),Oo=x(ie),Mo=x(ie),se=x(),Vi=x(se),Ls=x(se),zt=x(),me=x(zt),Ft=x(),Ht=x(),Tn=x(),Xe=x(Tn),Fi=x(),A={comment:Li,lineComment:x(Li),blockComment:x(Li),docComment:x(Li),name:ie,variableName:x(ie),typeName:Oo,tagName:x(Oo),propertyName:Mo,attributeName:x(Mo),className:x(ie),labelName:x(ie),namespace:x(ie),macroName:x(ie),literal:se,string:Vi,docString:x(Vi),character:x(Vi),attributeValue:x(Vi),number:Ls,integer:x(Ls),float:x(Ls),bool:x(se),regexp:x(se),escape:x(se),color:x(se),url:x(se),keyword:Ft,self:x(Ft),null:x(Ft),atom:x(Ft),unit:x(Ft),modifier:x(Ft),operatorKeyword:x(Ft),controlKeyword:x(Ft),definitionKeyword:x(Ft),moduleKeyword:x(Ft),operator:Ht,derefOperator:x(Ht),arithmeticOperator:x(Ht),logicOperator:x(Ht),bitwiseOperator:x(Ht),compareOperator:x(Ht),updateOperator:x(Ht),definitionOperator:x(Ht),typeOperator:x(Ht),controlOperator:x(Ht),punctuation:Tn,separator:x(Tn),bracket:Xe,angleBracket:x(Xe),squareBracket:x(Xe),paren:x(Xe),brace:x(Xe),content:zt,heading:me,heading1:x(me),heading2:x(me),heading3:x(me),heading4:x(me),heading5:x(me),heading6:x(me),contentSeparator:x(zt),list:x(zt),quote:x(zt),emphasis:x(zt),strong:x(zt),link:x(zt),monospace:x(zt),strikethrough:x(zt),inserted:x(),deleted:x(),changed:x(),invalid:x(),meta:Fi,documentMeta:x(Fi),annotation:x(Fi),processingInstruction:x(Fi),definition:Wt.defineModifier(),constant:Wt.defineModifier(),function:Wt.defineModifier(),standard:Wt.defineModifier(),local:Wt.defineModifier(),special:Wt.defineModifier()};Hh([{tag:A.link,class:"tok-link"},{tag:A.heading,class:"tok-heading"},{tag:A.emphasis,class:"tok-emphasis"},{tag:A.strong,class:"tok-strong"},{tag:A.keyword,class:"tok-keyword"},{tag:A.atom,class:"tok-atom"},{tag:A.bool,class:"tok-bool"},{tag:A.url,class:"tok-url"},{tag:A.labelName,class:"tok-labelName"},{tag:A.inserted,class:"tok-inserted"},{tag:A.deleted,class:"tok-deleted"},{tag:A.literal,class:"tok-literal"},{tag:A.string,class:"tok-string"},{tag:A.number,class:"tok-number"},{tag:[A.regexp,A.escape,A.special(A.string)],class:"tok-string2"},{tag:A.variableName,class:"tok-variableName"},{tag:A.local(A.variableName),class:"tok-variableName tok-local"},{tag:A.definition(A.variableName),class:"tok-variableName tok-definition"},{tag:A.special(A.variableName),class:"tok-variableName2"},{tag:A.definition(A.propertyName),class:"tok-propertyName tok-definition"},{tag:A.typeName,class:"tok-typeName"},{tag:A.namespace,class:"tok-namespace"},{tag:A.className,class:"tok-className"},{tag:A.macroName,class:"tok-macroName"},{tag:A.propertyName,class:"tok-propertyName"},{tag:A.operator,class:"tok-operator"},{tag:A.comment,class:"tok-comment"},{tag:A.meta,class:"tok-meta"},{tag:A.invalid,class:"tok-invalid"},{tag:A.punctuation,class:"tok-punctuation"}]);const Pn="ͼ",To=typeof Symbol>"u"?"__"+Pn:Symbol.for(Pn),Dn=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),Po=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Do{constructor(t,e){this.rules=[];let{finish:i}=e||{};function s(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function r(o,l,h,a){let f=[],c=/^@(\w+)\b/.exec(o[0]),u=c&&c[1]=="keyframes";if(c&&l==null)return h.push(o[0]+";");for(let d in l){let p=l[d];if(/&/.test(d))r(d.split(/,\s*/).map(g=>o.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),p,h);else if(p&&typeof p=="object"){if(!c)throw new RangeError("The value of a property ("+d+") should be a primitive value.");r(s(d),p,f,u)}else p!=null&&f.push(d.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+p+";")}(f.length||u)&&h.push((i&&!c&&!a?o.map(i):o).join(", ")+" {"+f.join(" ")+"}")}for(let o in t)r(s(o),t[o],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=Po[To]||1;return Po[To]=t+1,Pn+t.toString(36)}static mount(t,e){(t[Dn]||new zu(t)).mount(Array.isArray(e)?e:[e])}}let Hi=null;class zu{constructor(t){if(!t.head&&t.adoptedStyleSheets&&typeof CSSStyleSheet<"u"){if(Hi)return t.adoptedStyleSheets=[Hi.sheet].concat(t.adoptedStyleSheets),t[Dn]=Hi;this.sheet=new CSSStyleSheet,t.adoptedStyleSheets=[this.sheet].concat(t.adoptedStyleSheets),Hi=this}else{this.styleTag=(t.ownerDocument||t).createElement("style");let e=t.head||t;e.insertBefore(this.styleTag,e.firstChild)}this.modules=[],t[Dn]=this}mount(t){let e=this.sheet,i=0,s=0;for(let r=0;r-1&&(this.modules.splice(l,1),s--,l=-1),l==-1){if(this.modules.splice(s++,0,o),e)for(let h=0;ht.concat(n):void 0})}const Wu=new I;class Ct{constructor(t,e,i=[],s=""){this.data=t,this.name=s,L.prototype.hasOwnProperty("tree")||Object.defineProperty(L.prototype,"tree",{get(){return ct(this)}}),this.parser=e,this.extension=[de.of(this),L.languageData.of((r,o,l)=>{let h=Bo(r,o,l),a=h.type.prop(ke);if(!a)return[];let f=r.facet(a),c=h.type.prop(Wu);if(c){let u=h.resolve(o-h.from,l);for(let d of c)if(d.test(u,r)){let p=r.facet(d.facet);return d.type=="replace"?p:p.concat(f)}}return f})].concat(i)}isActiveAt(t,e,i=-1){return Bo(t,e,i).type.prop(ke)==this.data}findRegions(t){let e=t.facet(de);if((e==null?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let i=[],s=(r,o)=>{if(r.prop(ke)==this.data){i.push({from:o,to:o+r.length});return}let l=r.prop(I.mounted);if(l){if(l.tree.prop(ke)==this.data){if(l.overlay)for(let h of l.overlay)i.push({from:h.from+o,to:h.to+o});else i.push({from:o,to:o+r.length});return}else if(l.overlay){let h=i.length;if(s(l.tree,l.overlay[0].from+o),i.length>h)return}}for(let h=0;hi.isTop?e:void 0)]}),t.name)}configure(t,e){return new hs(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function ct(n){let t=n.field(Ct.state,!1);return t?t.tree:q.empty}class ju{constructor(t){this.doc=t,this.cursorPos=0,this.string="",this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){return this.string=this.cursor.next(t-this.cursorPos).value,this.cursorPos=t+this.string.length,this.cursorPos-this.string.length}chunk(t){return this.syncTo(t),this.string}get lineChunks(){return!0}read(t,e){let i=this.cursorPos-this.string.length;return t=this.cursorPos?this.doc.sliceString(t,e):this.string.slice(t-i,e-i)}}let $e=null;class Ke{constructor(t,e,i=[],s,r,o,l,h){this.parser=t,this.state=e,this.fragments=i,this.tree=s,this.treeLen=r,this.viewport=o,this.skipped=l,this.scheduleOn=h,this.parse=null,this.tempSkipped=[]}static create(t,e,i){return new Ke(t,e,[],q.empty,0,i,[],null)}startParse(){return this.parser.startParse(new ju(this.state.doc),this.fragments)}work(t,e){return e!=null&&e>=this.state.doc.length&&(e=void 0),this.tree!=q.empty&&this.isDone(e??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var i;if(typeof t=="number"){let s=Date.now()+t;t=()=>Date.now()>s}for(this.parse||(this.parse=this.startParse()),e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(e=this.parse.advance()););}),this.treeLen=t,this.tree=e,this.fragments=this.withoutTempSkipped(Se.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let e=$e;$e=this;try{return t()}finally{$e=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=Ro(t,e.from,e.to);return t}changes(t,e){let{fragments:i,tree:s,treeLen:r,viewport:o,skipped:l}=this;if(this.takeTree(),!t.empty){let h=[];if(t.iterChangedRanges((a,f,c,u)=>h.push({fromA:a,toA:f,fromB:c,toB:u})),i=Se.applyChanges(i,h),s=q.empty,r=0,o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)},this.skipped.length){l=[];for(let a of this.skipped){let f=t.mapPos(a.from,1),c=t.mapPos(a.to,-1);ft.from&&(this.fragments=Ro(this.fragments,s,r),this.skipped.splice(i--,1))}return this.skipped.length>=e?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends er{createParse(e,i,s){let r=s[0].from,o=s[s.length-1].to;return{parsedPos:r,advance(){let h=$e;if(h){for(let a of s)h.tempSkipped.push(a);t&&(h.scheduleOn=h.scheduleOn?Promise.all([h.scheduleOn,t]):t)}return this.parsedPos=o,new q(xt.none,[],[],o-r)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return $e}}function Ro(n,t,e){return Se.applyChanges(n,[{fromA:t,toA:e,fromB:t,toB:e}])}class Ue{constructor(t){this.context=t,this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state),i=this.context.treeLen==t.startState.doc.length?void 0:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);return e.work(20,i)||e.takeTree(),new Ue(e)}static init(t){let e=Math.min(3e3,t.doc.length),i=Ke.create(t.facet(de).parser,t,{from:0,to:e});return i.work(20,e)||i.takeTree(),new Ue(i)}}Ct.state=Dt.define({create:Ue.init,update(n,t){for(let e of t.effects)if(e.is(Ct.setState))return e.value;return t.startState.facet(de)!=t.state.facet(de)?Ue.init(t.state):n.apply(t)}});let Wh=n=>{let t=setTimeout(()=>n(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(Wh=n=>{let t=-1,e=setTimeout(()=>{t=requestIdleCallback(n,{timeout:400})},100);return()=>t<0?clearTimeout(e):cancelIdleCallback(t)});const Fs=typeof navigator<"u"&&(!((Vs=navigator.scheduling)===null||Vs===void 0)&&Vs.isInputPending)?()=>navigator.scheduling.isInputPending():null,qu=It.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let e=this.view.state.field(Ct.state).context;(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(Ct.state);(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))&&(this.working=Wh(this.work))}work(t){this.working=null;let e=Date.now();if(this.chunkEnds+1e3,h=r.context.work(()=>Fs&&Fs()||Date.now()>o,s+(l?0:1e5));this.chunkBudget-=Date.now()-e,(h||this.chunkBudget<=0)&&(r.context.takeTree(),this.view.dispatch({effects:Ct.setState.of(new Ue(r.context))})),this.chunkBudget>0&&!(h&&!l)&&this.scheduleWork(),this.checkAsyncSchedule(r.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(e=>kt(this.view.state,e)).then(()=>this.workScheduled--),t.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),de=T.define({combine(n){return n.length?n[0]:null},enables:n=>[Ct.state,qu,D.contentAttributes.compute([n],t=>{let e=t.facet(n);return e&&e.name?{"data-language":e.name}:{}})]});class Ku{constructor(t,e=[]){this.language=t,this.support=e,this.extension=[t,e]}}const jh=T.define(),ir=T.define({combine:n=>{if(!n.length)return" ";let t=n[0];if(!t||/\S/.test(t)||Array.from(t).some(e=>e!=t[0]))throw new Error("Invalid indent unit: "+JSON.stringify(n[0]));return t}});function Ge(n){let t=n.facet(ir);return t.charCodeAt(0)==9?n.tabSize*t.length:t.length}function Bn(n,t){let e="",i=n.tabSize,s=n.facet(ir)[0];if(s==" "){for(;t>=i;)e+=" ",t-=i;s=" "}for(let r=0;r=t?Uu(n,e,t):null}class sr{constructor(t,e={}){this.state=t,this.options=e,this.unit=Ge(t)}lineAt(t,e=1){let i=this.state.doc.lineAt(t),{simulateBreak:s,simulateDoubleBreak:r}=this.options;return s!=null&&s>=i.from&&s<=i.to?r&&s==t?{text:"",from:t}:(e<0?s-1&&(r+=o-this.countColumn(i,i.search(/\S|$/))),r}countColumn(t,e=t.length){return qn(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:i,from:s}=this.lineAt(t,e),r=this.options.overrideIndentation;if(r){let o=r(s);if(o>-1)return o}return this.countColumn(i,i.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Kh=new I;function Uu(n,t,e){let i=t.resolveStack(e),s=i.node.enterUnfinishedNodesBefore(e);if(s!=i.node){let r=[];for(let o=s;o!=i.node;o=o.parent)r.push(o);for(let o=r.length-1;o>=0;o--)i={node:r[o],next:i}}return Uh(i,n,e)}function Uh(n,t,e){for(let i=n;i;i=i.next){let s=Qu(i.node);if(s)return s(nr.create(t,e,i))}return 0}function Gu(n){return n.pos==n.options.simulateBreak&&n.options.simulateDoubleBreak}function Qu(n){let t=n.type.prop(Kh);if(t)return t;let e=n.firstChild,i;if(e&&(i=e.type.prop(I.closedBy))){let s=n.lastChild,r=s&&i.indexOf(s.name)>-1;return o=>Xu(o,!0,1,void 0,r&&!Gu(o)?s.from:void 0)}return n.parent==null?_u:null}function _u(){return 0}class nr extends sr{constructor(t,e,i){super(t.state,t.options),this.base=t,this.pos=e,this.context=i}get node(){return this.context.node}static create(t,e,i){return new nr(t,e,i)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let i=t.resolve(e.from);for(;i.parent&&i.parent.from==i.from;)i=i.parent;if(Yu(i,t))break;e=this.state.doc.lineAt(i.from)}return this.lineIndent(e.from)}continue(){return Uh(this.context.next,this.base,this.pos)}}function Yu(n,t){for(let e=t;e;e=e.parent)if(n==e)return!0;return!1}function Ju(n){let t=n.node,e=t.childAfter(t.from),i=t.lastChild;if(!e)return null;let s=n.options.simulateBreak,r=n.state.doc.lineAt(e.from),o=s==null||s<=r.from?r.to:Math.min(r.to,s);for(let l=e.to;;){let h=t.childAfter(l);if(!h||h==i)return null;if(!h.type.isSkipped)return h.from{let i=n&&n.test(e.textAfter);return e.baseIndent+(i?0:t*e.unit)}}const $u=200;function Zu(){return L.transactionFilter.of(n=>{if(!n.docChanged||!n.isUserEvent("input.type")&&!n.isUserEvent("input.complete"))return n;let t=n.startState.languageDataAt("indentOnInput",n.startState.selection.main.head);if(!t.length)return n;let e=n.newDoc,{head:i}=n.newSelection.main,s=e.lineAt(i);if(i>s.from+$u)return n;let r=e.sliceString(s.from,i);if(!t.some(a=>a.test(r)))return n;let{state:o}=n,l=-1,h=[];for(let{head:a}of o.selection.ranges){let f=o.doc.lineAt(a);if(f.from==l)continue;l=f.from;let c=qh(o,f.from);if(c==null)continue;let u=/^\s*/.exec(f.text)[0],d=Bn(o,c);u!=d&&h.push({from:f.from,to:f.from+u.length,insert:d})}return h.length?[n,{changes:h,sequential:!0}]:n})}const td=T.define(),Gh=new I;function ed(n){let t=n.firstChild,e=n.lastChild;return t&&t.toe)continue;if(r&&l.from=t&&a.to>e&&(r=a)}}return r}function sd(n){let t=n.lastChild;return t&&t.to==n.to&&t.type.isError}function Io(n,t,e){for(let i of n.facet(td)){let s=i(n,t,e);if(s)return s}return id(n,t,e)}function Qh(n,t){let e=t.mapPos(n.from,1),i=t.mapPos(n.to,-1);return e>=i?void 0:{from:e,to:i}}const _h=j.define({map:Qh}),rr=j.define({map:Qh}),as=Dt.define({create(){return K.none},update(n,t){n=n.map(t.changes);for(let e of t.effects)if(e.is(_h)&&!nd(n,e.value.from,e.value.to)){let{preparePlaceholder:i}=t.state.facet(Yh),s=i?K.replace({widget:new ld(i(t.state,e.value))}):No;n=n.update({add:[s.range(e.value.from,e.value.to)]})}else e.is(rr)&&(n=n.update({filter:(i,s)=>e.value.from!=i||e.value.to!=s,filterFrom:e.value.from,filterTo:e.value.to}));if(t.selection){let e=!1,{head:i}=t.selection.main;n.between(i,i,(s,r)=>{si&&(e=!0)}),e&&(n=n.update({filterFrom:i,filterTo:i,filter:(s,r)=>r<=i||s>=i}))}return n},provide:n=>D.decorations.from(n),toJSON(n,t){let e=[];return n.between(0,t.doc.length,(i,s)=>{e.push(i,s)}),e},fromJSON(n){if(!Array.isArray(n)||n.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let e=0;e{(!s||s.from>r)&&(s={from:r,to:o})}),s}function nd(n,t,e){let i=!1;return n.between(t,t,(s,r)=>{s==t&&r==e&&(i=!0)}),i}const rd={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Yh=T.define({combine(n){return bs(n,rd)}});function od(n){return[as,fd]}function Jh(n,t){let{state:e}=n,i=e.facet(Yh),s=o=>{let l=n.lineBlockAt(n.posAtDOM(o.target)),h=Rn(n.state,l.from,l.to);h&&n.dispatch({effects:rr.of(h)}),o.preventDefault()};if(i.placeholderDOM)return i.placeholderDOM(n,s,t);let r=document.createElement("span");return r.textContent=i.placeholderText,r.setAttribute("aria-label",e.phrase("folded code")),r.title=e.phrase("unfold"),r.className="cm-foldPlaceholder",r.onclick=s,r}const No=K.replace({widget:new class extends bi{toDOM(n){return Jh(n,null)}}});class ld extends bi{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Jh(t,this.value)}}const hd={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Hs extends Me{constructor(t,e){super(),this.config=t,this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");return e.textContent=this.open?this.config.openText:this.config.closedText,e.title=t.state.phrase(this.open?"Fold line":"Unfold line"),e}}function ad(n={}){let t=Object.assign(Object.assign({},hd),n),e=new Hs(t,!0),i=new Hs(t,!1),s=It.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(de)!=o.state.facet(de)||o.startState.field(as,!1)!=o.state.field(as,!1)||ct(o.startState)!=ct(o.state)||t.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let l=new ze;for(let h of o.viewportLineBlocks){let a=Rn(o.state,h.from,h.to)?i:Io(o.state,h.from,h.to)?e:null;a&&l.add(h.from,h.from,a)}return l.finish()}}),{domEventHandlers:r}=t;return[s,bu({class:"cm-foldGutter",markers(o){var l;return((l=o.plugin(s))===null||l===void 0?void 0:l.markers)||V.empty},initialSpacer(){return new Hs(t,!1)},domEventHandlers:Object.assign(Object.assign({},r),{click:(o,l,h)=>{if(r.click&&r.click(o,l,h))return!0;let a=Rn(o.state,l.from,l.to);if(a)return o.dispatch({effects:rr.of(a)}),!0;let f=Io(o.state,l.from,l.to);return f?(o.dispatch({effects:_h.of(f)}),!0):!1}})}),od()]}const fd=D.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class xi{constructor(t,e){this.specs=t;let i;function s(l){let h=Do.newName();return(i||(i=Object.create(null)))["."+h]=l,h}const r=typeof e.all=="string"?e.all:e.all?s(e.all):void 0,o=e.scope;this.scope=o instanceof Ct?l=>l.prop(ke)==o.data:o?l=>l==o:void 0,this.style=Hh(t.map(l=>({tag:l.tag,class:l.class||s(Object.assign({},l,{tag:null}))})),{all:r}).style,this.module=i?new Do(i):null,this.themeType=e.themeType}static define(t,e){return new xi(t,e||{})}}const En=T.define(),Xh=T.define({combine(n){return n.length?[n[0]]:null}});function zs(n){let t=n.facet(En);return t.length?t:n.facet(Xh)}function cd(n,t){let e=[dd],i;return n instanceof xi&&(n.module&&e.push(D.styleModule.of(n.module)),i=n.themeType),t!=null&&t.fallback?e.push(Xh.of(n)):i?e.push(En.computeN([D.darkTheme],s=>s.facet(D.darkTheme)==(i=="dark")?[n]:[])):e.push(En.of(n)),e}class ud{constructor(t){this.markCache=Object.create(null),this.tree=ct(t.state),this.decorations=this.buildDeco(t,zs(t.state)),this.decoratedTo=t.viewport.to}update(t){let e=ct(t.state),i=zs(t.state),s=i!=zs(t.startState),{viewport:r}=t.view,o=t.changes.mapPos(this.decoratedTo,1);e.length=r.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=o):(e!=this.tree||t.viewportChanged||s)&&(this.tree=e,this.decorations=this.buildDeco(t.view,i),this.decoratedTo=r.to)}buildDeco(t,e){if(!e||!this.tree.length)return K.none;let i=new ze;for(let{from:s,to:r}of t.visibleRanges)Vu(this.tree,e,(o,l,h)=>{i.add(o,l,this.markCache[h]||(this.markCache[h]=K.mark({class:h})))},s,r);return i.finish()}}const dd=yi.high(It.fromClass(ud,{decorations:n=>n.decorations})),pd=D.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),$h=1e4,Zh="()[]{}",ta=T.define({combine(n){return bs(n,{afterCursor:!0,brackets:Zh,maxScanDistance:$h,renderMatch:yd})}}),gd=K.mark({class:"cm-matchingBracket"}),md=K.mark({class:"cm-nonmatchingBracket"});function yd(n){let t=[],e=n.matched?gd:md;return t.push(e.range(n.start.from,n.start.to)),n.end&&t.push(e.range(n.end.from,n.end.to)),t}const bd=Dt.define({create(){return K.none},update(n,t){if(!t.docChanged&&!t.selection)return n;let e=[],i=t.state.facet(ta);for(let s of t.state.selection.ranges){if(!s.empty)continue;let r=zi(t.state,s.head,-1,i)||s.head>0&&zi(t.state,s.head-1,1,i)||i.afterCursor&&(zi(t.state,s.head,1,i)||s.headD.decorations.from(n)}),wd=[bd,pd];function kd(n={}){return[ta.of(n),wd]}const xd=new I;function In(n,t,e){let i=n.prop(t<0?I.openedBy:I.closedBy);if(i)return i;if(n.name.length==1){let s=e.indexOf(n.name);if(s>-1&&s%2==(t<0?1:0))return[e[s+t]]}return null}function Nn(n){let t=n.type.prop(xd);return t?t(n.node):n}function zi(n,t,e,i={}){let s=i.maxScanDistance||$h,r=i.brackets||Zh,o=ct(n),l=o.resolveInner(t,e);for(let h=l;h;h=h.parent){let a=In(h.type,e,r);if(a&&h.from0?t>=f.from&&tf.from&&t<=f.to))return Sd(n,t,e,h,f,a,r)}}return vd(n,t,e,o,l.type,s,r)}function Sd(n,t,e,i,s,r,o){let l=i.parent,h={from:s.from,to:s.to},a=0,f=l==null?void 0:l.cursor();if(f&&(e<0?f.childBefore(i.from):f.childAfter(i.to)))do if(e<0?f.to<=i.from:f.from>=i.to){if(a==0&&r.indexOf(f.type.name)>-1&&f.from0)return null;let a={from:e<0?t-1:t,to:e>0?t+1:t},f=n.doc.iterRange(t,e>0?n.doc.length:0),c=0;for(let u=0;!f.next().done&&u<=r;){let d=f.value;e<0&&(u+=d.length);let p=t+u*e;for(let g=e>0?0:d.length-1,m=e>0?d.length:-1;g!=m;g+=e){let y=o.indexOf(d[g]);if(!(y<0||i.resolveInner(p+g,1).type!=s))if(y%2==0==e>0)c++;else{if(c==1)return{start:a,end:{from:p+g,to:p+g+1},matched:y>>1==h>>1};c--}}e>0&&(u+=d.length)}return f.done?{start:a,matched:!1}:null}function Lo(n,t,e,i=0,s=0){t==null&&(t=n.search(/[^\s\u00a0]/),t==-1&&(t=n.length));let r=s;for(let o=i;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.pose}eatSpace(){let t=this.pos;for(;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0}backUp(t){this.pos-=t}column(){return this.lastColumnPosi?o.toLowerCase():o,r=this.string.substr(this.pos,t.length);return s(r)==s(t)?(e!==!1&&(this.pos+=t.length),!0):null}else{let s=this.string.slice(this.pos).match(t);return s&&s.index>0?null:(s&&e!==!1&&(this.pos+=s[0].length),s)}}current(){return this.string.slice(this.start,this.pos)}}function Cd(n){return{name:n.name||"",token:n.token,blankLine:n.blankLine||(()=>{}),startState:n.startState||(()=>!0),copyState:n.copyState||Ad,indent:n.indent||(()=>null),languageData:n.languageData||{},tokenTable:n.tokenTable||hr}}function Ad(n){if(typeof n!="object")return n;let t={};for(let e in n){let i=n[e];t[e]=i instanceof Array?i.slice():i}return t}const Vo=new WeakMap;class or extends Ct{constructor(t){let e=zh(t.languageData),i=Cd(t),s,r=new class extends er{createParse(o,l,h){return new Md(s,o,l,h)}};super(e,r,[jh.of((o,l)=>this.getIndent(o,l))],t.name),this.topNode=Dd(e),s=this,this.streamParser=i,this.stateAfter=new I({perNode:!0}),this.tokenTable=t.tokenTable?new ra(i.tokenTable):Pd}static define(t){return new or(t)}getIndent(t,e){let i=ct(t.state),s=i.resolve(e);for(;s&&s.type!=this.topNode;)s=s.parent;if(!s)return null;let r,{overrideIndentation:o}=t.options;o&&(r=Vo.get(t.state),r!=null&&r1e4)return null;for(;h=i&&e+t.length<=s&&t.prop(n.stateAfter);if(r)return{state:n.streamParser.copyState(r),pos:e+t.length};for(let o=t.children.length-1;o>=0;o--){let l=t.children[o],h=e+t.positions[o],a=l instanceof q&&h=t.length)return t;!s&&t.type==n.topNode&&(s=!0);for(let r=t.children.length-1;r>=0;r--){let o=t.positions[r],l=t.children[r],h;if(oe&&lr(n,s.tree,0-s.offset,e,o),h;if(l&&(h=ia(n,s.tree,e+s.offset,l.pos+s.offset,!1)))return{state:l.state,tree:h}}return{state:n.streamParser.startState(i?Ge(i):4),tree:q.empty}}let Md=class{constructor(t,e,i,s){this.lang=t,this.input=e,this.fragments=i,this.ranges=s,this.stoppedAt=null,this.chunks=[],this.chunkPos=[],this.chunk=[],this.chunkReused=void 0,this.rangeIndex=0,this.to=s[s.length-1].to;let r=Ke.get(),o=s[0].from,{state:l,tree:h}=Od(t,i,o,r==null?void 0:r.state);this.state=l,this.parsedPos=this.chunkStart=o+h.length;for(let a=0;a=e?this.finish():t&&this.parsedPos>=t.viewport.to?(t.skipUntilInView(this.parsedPos,e),this.finish()):null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(this.input.lineChunks)e==` `&&(e="");else{let i=e.indexOf(` -`);i>-1&&(e=e.slice(0,i))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(e=e.slice(0,r-(i-e.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);e+=l,i=o+l.length}return{line:e,end:i}}skipGapsTo(t,e,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=t+e;if(i>0?s>r:s>=r)break;let o=this.ranges[++this.rangeIndex].from;e+=o-s}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let o=this.chunk.length;r=this.skipGapsTo(i,r,-1),i+=r,s+=this.chunk.length-o}return this.chunk.push(t,e,i,s),r}parseLine(t){let{line:e,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,o=new Zh(e,t?t.state.tabSize:4,t?Ue(t.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=ea(r.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,s)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return s}throw new Error("Stream parser failed to advance stream.")}const lr=Object.create(null),pi=[wt.none],Od=new bs(pi),Lo=[],Vo=Object.create(null),ia=Object.create(null);for(let[n,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])ia[n]=na(lr,t);class sa{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),ia)}resolve(t){return t?this.table[t]||(this.table[t]=na(this.extra,t)):0}}const Md=new sa(lr);function zs(n,t){Lo.indexOf(n)>-1||(Lo.push(n),console.warn(t))}function na(n,t){let e=[];for(let l of t.split(" ")){let h=[];for(let a of l.split(".")){let f=n[a]||T[a];f?typeof f=="function"?h.length?h=h.map(f):zs(a,`Modifier ${a} used at start of tag`):h.length?zs(a,`Tag ${a} used as modifier`):h=Array.isArray(f)?f:[f]:zs(a,`Unknown highlighting tag ${a}`)}for(let a of h)e.push(a)}if(!e.length)return 0;let i=t.replace(/ /g,"_"),s=i+" "+e.map(l=>l.id),r=Vo[s];if(r)return r.id;let o=Vo[s]=wt.define({id:pi.length,name:i,props:[Nh({[i]:e})]});return pi.push(o),o.id}function Td(n){let t=wt.define({id:pi.length,name:"Document",props:[we.add(()=>n)],top:!0});return pi.push(t),t}_.RTL,_.LTR;class ra{constructor(t,e,i,s){this.state=t,this.pos=e,this.explicit=i,this.view=s,this.abortListeners=[]}tokenBefore(t){let e=ft(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),s=e.text.slice(i-e.from,this.pos-e.from),r=s.search(oa(t,!1));return r<0?null:{from:i+r,to:this.pos,text:s.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(t,e){t=="abort"&&this.abortListeners&&this.abortListeners.push(e)}}function Fo(n){let t=Object.keys(n).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Pd(n){let t=Object.create(null),e=Object.create(null);for(let{label:s}of n){t[s[0]]=!0;for(let r=1;rtypeof s=="string"?{label:s}:s),[e,i]=t.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:Pd(t);return s=>{let r=s.matchBefore(i);return r||s.explicit?{from:r?r.from:s.pos,options:t,validFor:e}:null}}class Ho{constructor(t,e,i,s){this.completion=t,this.source=e,this.match=i,this.score=s}}function le(n){return n.selection.main.from}function oa(n,t){var e;let{source:i}=n,s=t&&i[0]!="^",r=i[i.length-1]!="$";return!s&&!r?n:new RegExp(`${s?"^":""}(?:${i})${r?"$":""}`,(e=n.flags)!==null&&e!==void 0?e:n.ignoreCase?"i":"")}const la=Xt.define();function Bd(n,t,e,i){let{main:s}=n.selection,r=e-s.from,o=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>l!=s&&e!=i&&n.sliceDoc(l.from+r,l.from+o)!=n.sliceDoc(e,i)?{range:l}:{changes:{from:l.from+r,to:i==s.from?l.to:l.from+o,insert:t},range:w.cursor(l.from+r+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const zo=new WeakMap;function Rd(n){if(!Array.isArray(n))return n;let t=zo.get(n);return t||zo.set(n,t=Dd(n)),t}const hs=j.define(),gi=j.define();class Ed{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&v<=57||v>=97&&v<=122?2:v>=65&&v<=90?1:0:(M=ml(v))!=M.toLowerCase()?1:M!=M.toUpperCase()?2:0;(!b||A==1&&m||k==0&&A!=0)&&(e[c]==v||i[c]==v&&(u=!0)?o[c++]=b:o.length&&(y=!1)),k=A,b+=Wt(v)}return c==h&&o[0]==0&&y?this.result(-100+(u?-200:0),o,t):d==h&&p==0?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):l>-1?this.ret(-700-t.length,[l,l+this.pattern.length]):d==h?this.ret(-900-t.length,[p,g]):c==h?this.result(-100+(u?-200:0)+-700+(y?0:-1100),o,t):e.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,t)}result(t,e,i){let s=[],r=0;for(let o of e){let l=o+(this.astral?Wt(mt(i,o)):1);r&&s[r-1]==o?s[r-1]=l:(s[r++]=o,s[r++]=l)}return this.ret(t-i.length,s)}}class Id{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Nd,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>Wo(t(i),e(i)),optionClass:(t,e)=>i=>Wo(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function Wo(n,t){return n?t?n+" "+t:n:t}function Nd(n,t,e,i,s,r){let o=n.textDirection==_.RTL,l=o,h=!1,a="top",f,c,u=t.left-s.left,d=s.right-t.right,p=i.right-i.left,g=i.bottom-i.top;if(l&&u=g||b>t.top?f=e.bottom-t.top:(a="bottom",f=t.bottom-e.top)}let m=(t.bottom-t.top)/r.offsetHeight,y=(t.right-t.left)/r.offsetWidth;return{style:`${a}: ${f/m}px; max-width: ${c/y}px`,class:"cm-completionInfo-"+(h?o?"left-narrow":"right-narrow":l?"left":"right")}}function Ld(n){let t=n.addToOptions.slice();return n.icons&&t.push({render(e){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),e.type&&i.classList.add(...e.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(e,i,s,r){let o=document.createElement("span");o.className="cm-completionLabel";let l=e.displayLabel||e.label,h=0;for(let a=0;ah&&o.appendChild(document.createTextNode(l.slice(h,f)));let u=o.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(l.slice(f,c))),u.className="cm-completionMatchedText",h=c}return he.position-i.position).map(e=>e.render)}function Ws(n,t,e){if(n<=e)return{from:0,to:n};if(t<0&&(t=0),t<=n>>1){let s=Math.floor(t/e);return{from:s*e,to:(s+1)*e}}let i=Math.floor((n-t)/e);return{from:n-(i+1)*e,to:n-i*e}}class Vd{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:h=>this.placeInfo(h),key:this},this.space=null,this.currentClass="";let s=t.state.field(e),{options:r,selected:o}=s.open,l=t.state.facet(nt);this.optionContent=Ld(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=Ws(r.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",h=>{let{options:a}=t.state.field(e).open;for(let f=h.target,c;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(c=/-(\d+)$/.exec(f.id))&&+c[1]{let a=t.state.field(this.stateField,!1);a&&a.tooltip&&t.state.facet(nt).closeOnBlur&&h.relatedTarget!=t.contentDOM&&t.dispatch({effects:gi.of(null)})}),this.showOptions(r,s.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let i=t.state.field(this.stateField),s=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=s){let{options:r,selected:o,disabled:l}=i.open;(!s.open||s.open.options!=r)&&(this.range=Ws(r.length,o,t.state.facet(nt).maxRenderedOptions),this.showOptions(r,i.id)),this.updateSel(),l!=((e=s.open)===null||e===void 0?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=Ws(e.options.length,e.selected,this.view.state.facet(nt).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:s}=i;if(!s)return;let r=typeof s=="string"?document.createTextNode(s):s(i);if(!r)return;"then"in r?r.then(o=>{o&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(o,i)}).catch(o=>bt(this.view.state,o,"completion info")):this.addInfoPane(r,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",t.nodeType!=null)i.appendChild(t),this.infoDestroy=null;else{let{dom:s,destroy:r}=t;i.appendChild(s),this.infoDestroy=r||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&Hd(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=t.getBoundingClientRect(),r=this.space;if(!r){let o=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return s.top>Math.min(r.bottom,e.bottom)-10||s.bottomi.from||i.from==0))if(r=u,typeof a!="string"&&a.header)s.appendChild(a.header(a));else{let d=s.appendChild(document.createElement("completion-section"));d.textContent=u}}const f=s.appendChild(document.createElement("li"));f.id=e+"-"+o,f.setAttribute("role","option");let c=this.optionClass(l);c&&(f.className=c);for(let u of this.optionContent){let d=u(l,this.view.state,this.view,h);d&&f.appendChild(d)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.tonew Vd(e,n,t)}function Hd(n,t){let e=n.getBoundingClientRect(),i=t.getBoundingClientRect(),s=e.height/n.offsetHeight;i.tope.bottom&&(n.scrollTop+=(i.bottom-e.bottom)/s)}function jo(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function zd(n,t){let e=[],i=null,s=a=>{e.push(a);let{section:f}=a.completion;if(f){i||(i=[]);let c=typeof f=="string"?f:f.name;i.some(u=>u.name==c)||i.push(typeof f=="string"?{name:c}:f)}},r=t.facet(nt);for(let a of n)if(a.hasResult()){let f=a.result.getMatch;if(a.result.filter===!1)for(let c of a.result.options)s(new Ho(c,a.source,f?f(c):[],1e9-e.length));else{let c=t.sliceDoc(a.from,a.to),u,d=r.filterStrict?new Id(c):new Ed(c);for(let p of a.result.options)if(u=d.match(p.label)){let g=p.displayLabel?f?f(p,u.matched):[]:u.matched;s(new Ho(p,a.source,g,u.score+(p.boost||0)))}}}if(i){let a=Object.create(null),f=0,c=(u,d)=>{var p,g;return((p=u.rank)!==null&&p!==void 0?p:1e9)-((g=d.rank)!==null&&g!==void 0?g:1e9)||(u.namec.score-f.score||h(f.completion,c.completion))){let f=a.completion;!l||l.label!=f.label||l.detail!=f.detail||l.type!=null&&f.type!=null&&l.type!=f.type||l.apply!=f.apply||l.boost!=f.boost?o.push(a):jo(a.completion)>jo(l)&&(o[o.length-1]=a),l=a.completion}return o}class Be{constructor(t,e,i,s,r,o){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=s,this.selected=r,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new Be(this.options,qo(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,s,r){let o=zd(t,e);if(!o.length)return s&&t.some(h=>h.state==1)?new Be(s.options,s.attrs,s.tooltip,s.timestamp,s.selected,!0):null;let l=e.facet(nt).selectOnOpen?0:-1;if(s&&s.selected!=l&&s.selected!=-1){let h=s.options[s.selected].completion;for(let a=0;aa.hasResult()?Math.min(h,a.from):h,1e8),create:Gd,above:r.aboveCursor},s?s.timestamp:Date.now(),l,!1)}map(t){return new Be(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class as{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new as(Kd,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,i=e.facet(nt),r=(i.override||e.languageDataAt("autocomplete",le(e)).map(Rd)).map(l=>(this.active.find(a=>a.source==l)||new yt(l,this.active.some(a=>a.state!=0)?1:0)).update(t,i));r.length==this.active.length&&r.every((l,h)=>l==this.active[h])&&(r=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!Wd(r,this.active)?o=Be.build(r,e,this.id,o,i):o&&o.disabled&&!r.some(l=>l.state==1)&&(o=null),!o&&r.every(l=>l.state!=1)&&r.some(l=>l.hasResult())&&(r=r.map(l=>l.hasResult()?new yt(l.source,0):l));for(let l of t.effects)l.is(fa)&&(o=o&&o.setSelected(l.value,this.id));return r==this.active&&o==this.open?this:new as(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?jd:qd}}function Wd(n,t){if(n==t)return!0;for(let e=0,i=0;;){for(;e-1&&(e["aria-activedescendant"]=n+"-"+t),e}const Kd=[];function ha(n,t){if(n.isUserEvent("input.complete")){let i=n.annotation(la);if(i&&t.activateOnCompletion(i))return 12}let e=n.isUserEvent("input.type");return e&&t.activateOnTyping?5:e?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class yt{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=ha(t,e),s=this;(i&8||i&16&&this.touches(t))&&(s=new yt(s.source,0)),i&4&&s.state==0&&(s=new yt(this.source,1)),s=s.updateFor(t,i);for(let r of t.effects)if(r.is(hs))s=new yt(s.source,1,r.value?le(t.state):-1);else if(r.is(gi))s=new yt(s.source,0);else if(r.is(aa))for(let o of r.value)o.source==s.source&&(s=o);return s}updateFor(t,e){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new yt(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(le(t.state))}}class Le extends yt{constructor(t,e,i,s,r){super(t,2,e),this.result=i,this.from=s,this.to=r}hasResult(){return!0}updateFor(t,e){var i;if(!(e&3))return this.map(t.changes);let s=this.result;s.map&&!t.changes.empty&&(s=s.map(s,t.changes));let r=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),l=le(t.state);if((this.explicitPos<0?l<=r:lo||!s||e&2&&le(t.startState)==this.from)return new yt(this.source,e&4?1:0);let h=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return Ud(s.validFor,t.state,r,o)?new Le(this.source,h,s,r,o):s.update&&(s=s.update(s,r,o,new ra(t.state,l,h>=0)))?new Le(this.source,h,s,s.from,(i=s.to)!==null&&i!==void 0?i:le(t.state)):new yt(this.source,1,h)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new Le(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new yt(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function Ud(n,t,e,i){if(!n)return!1;let s=t.sliceDoc(e,i);return typeof n=="function"?n(s,e,i,t):oa(n,!0).test(s)}const aa=j.define({map(n,t){return n.map(e=>e.map(t))}}),fa=j.define(),ut=Tt.define({create(){return as.start()},update(n,t){return n.update(t)},provide:n=>[Mh.from(n,t=>t.tooltip),D.contentAttributes.from(n,t=>t.attrs)]});function hr(n,t){const e=t.completion.apply||t.completion.label;let i=n.state.field(ut).active.find(s=>s.source==t.source);return i instanceof Le?(typeof e=="string"?n.dispatch(Object.assign(Object.assign({},Bd(n.state,e,i.from,i.to)),{annotations:la.of(t.completion)})):e(n,t.completion,i.from,i.to),!0):!1}const Gd=Fd(ut,hr);function Hi(n,t="option"){return e=>{let i=e.state.field(ut,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(n?1:-1):n?0:o-1;return l<0?l=t=="page"?0:o-1:l>=o&&(l=t=="page"?o-1:0),e.dispatch({effects:fa.of(l)}),!0}}const Qd=n=>{let t=n.state.field(ut,!1);return n.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampn.state.field(ut,!1)?(n.dispatch({effects:hs.of(!0)}),!0):!1,Yd=n=>{let t=n.state.field(ut,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(n.dispatch({effects:gi.of(null)}),!0)};class _d{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const $d=50,Xd=1e3,Zd=Rt.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of n.state.field(ut).active)t.state==1&&this.startQuery(t)}update(n){let t=n.state.field(ut),e=n.state.facet(nt);if(!n.selectionSet&&!n.docChanged&&n.startState.field(ut)==t)return;let i=n.transactions.some(r=>{let o=ha(r,e);return o&8||(r.selection||r.docChanged)&&!(o&3)});for(let r=0;r$d&&Date.now()-o.time>Xd){for(let l of o.context.abortListeners)try{l()}catch(h){bt(this.view.state,h)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(r=>r.effects.some(o=>o.is(hs)))&&(this.pendingStart=!0);let s=this.pendingStart?50:e.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let r of n.transactions)r.isUserEvent("input.type")?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,t=n.field(ut);for(let e of t.active)e.state==1&&!this.running.some(i=>i.active.source==e.source)&&this.startQuery(e)}startQuery(n){let{state:t}=this.view,e=le(t),i=new ra(t,e,n.explicitPos==e,this.view),s=new _d(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(r=>{s.context.aborted||(s.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:gi.of(null)}),bt(this.view.state,r)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(nt).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(nt);for(let i=0;io.source==s.active.source);if(r&&r.state==1)if(s.done==null){let o=new yt(s.active.source,0);for(let l of s.updates)o=o.update(l,e);o.state!=1&&t.push(o)}else this.startQuery(r)}t.length&&this.view.dispatch({effects:aa.of(t)})}},{eventHandlers:{blur(n){let t=this.view.state.field(ut,!1);if(t&&t.tooltip&&this.view.state.facet(nt).closeOnBlur){let e=t.open&&Th(this.view,t.open.tooltip);(!e||!e.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:gi.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:hs.of(!1)}),20),this.composing=0}}}),tp=typeof navigator=="object"&&/Win/.test(navigator.platform),ep=mi.highest(D.domEventHandlers({keydown(n,t){let e=t.state.field(ut,!1);if(!e||!e.open||e.open.disabled||e.open.selected<0||n.key.length>1||n.ctrlKey&&!(tp&&n.altKey)||n.metaKey)return!1;let i=e.open.options[e.open.selected],s=e.active.find(o=>o.source==i.source),r=i.completion.commitCharacters||s.result.commitCharacters;return r&&r.indexOf(n.key)>-1&&hr(t,i),!1}})),ip=D.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),fs={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},ke=j.define({map(n,t){let e=t.mapPos(n,-1,dt.TrackAfter);return e??void 0}}),ar=new class extends Se{};ar.startSide=1;ar.endSide=-1;const ca=Tt.define({create(){return L.empty},update(n,t){if(n=n.map(t.changes),t.selection){let e=t.state.doc.lineAt(t.selection.main.head);n=n.update({filter:i=>i>=e.from&&i<=e.to})}for(let e of t.effects)e.is(ke)&&(n=n.update({add:[ar.range(e.value,e.value+1)]}));return n}});function sp(){return[lp,ca]}const js="()[]{}<>";function np(n){for(let t=0;t{if((op?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&Wt(mt(i,0))==1||t!=s.from||e!=s.to)return!1;let r=hp(n.state,i);return r?(n.dispatch(r),!0):!1});function hp(n,t){let e=rp(n,n.selection.main.head),i=e.brackets||fs.brackets;for(let s of i){let r=np(mt(s,0));if(t==s)return r==s?cp(n,s,i.indexOf(s+s+s)>-1,e):ap(n,s,r,e.before||fs.before);if(t==r&&ua(n,n.selection.main.from))return fp(n,s,r)}return null}function ua(n,t){let e=!1;return n.field(ca).between(0,n.doc.length,i=>{i==t&&(e=!0)}),e}function fr(n,t){let e=n.sliceString(t,t+2);return e.slice(0,Wt(mt(e,0)))}function ap(n,t,e,i){let s=null,r=n.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:e,from:o.to}],effects:ke.of(o.to+t.length),range:w.range(o.anchor+t.length,o.head+t.length)};let l=fr(n.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+e,from:o.head},effects:ke.of(o.head+t.length),range:w.cursor(o.head+t.length)}:{range:s=o}});return s?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function fp(n,t,e){let i=null,s=n.changeByRange(r=>r.empty&&fr(n.doc,r.head)==e?{changes:{from:r.head,to:r.head+e.length,insert:e},range:w.cursor(r.head+e.length)}:i={range:r});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function cp(n,t,e,i){let s=i.stringPrefixes||fs.stringPrefixes,r=null,o=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:t,from:l.to}],effects:ke.of(l.to+t.length),range:w.range(l.anchor+t.length,l.head+t.length)};let h=l.head,a=fr(n.doc,h),f;if(a==t){if(Ko(n,h))return{changes:{insert:t+t,from:h},effects:ke.of(h+t.length),range:w.cursor(h+t.length)};if(ua(n,h)){let u=e&&n.sliceDoc(h,h+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:h,to:h+u.length,insert:u},range:w.cursor(h+u.length)}}}else{if(e&&n.sliceDoc(h-2*t.length,h)==t+t&&(f=Uo(n,h-2*t.length,s))>-1&&Ko(n,f))return{changes:{insert:t+t+t+t,from:h},effects:ke.of(h+t.length),range:w.cursor(h+t.length)};if(n.charCategorizer(h)(a)!=xt.Word&&Uo(n,h,s)>-1&&!up(n,h,t,s))return{changes:{insert:t+t,from:h},effects:ke.of(h+t.length),range:w.cursor(h+t.length)}}return{range:r=l}});return r?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Ko(n,t){let e=ft(n).resolveInner(t+1);return e.parent&&e.from==t}function up(n,t,e,i){let s=ft(n).resolveInner(t,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+e.length+r)),h=l.indexOf(e);if(!h||h>-1&&i.indexOf(l.slice(0,h))>-1){let f=s.firstChild;for(;f&&f.from==s.from&&f.to-f.from>e.length+h;){if(n.sliceDoc(f.to-e.length,f.to)==e)return!1;f=f.firstChild}return!0}let a=s.to==t&&s.parent;if(!a)break;s=a}return!1}function Uo(n,t,e){let i=n.charCategorizer(t);if(i(n.sliceDoc(t-1,t))!=xt.Word)return t;for(let s of e){let r=t-s.length;if(n.sliceDoc(r,t)==s&&i(n.sliceDoc(r-1,r))!=xt.Word)return r}return-1}function dp(n={}){return[ep,ut,nt.of(n),Zd,gp,ip]}const pp=[{key:"Ctrl-Space",run:Jd},{key:"Escape",run:Yd},{key:"ArrowDown",run:Hi(!0)},{key:"ArrowUp",run:Hi(!1)},{key:"PageDown",run:Hi(!0,"page")},{key:"PageUp",run:Hi(!1,"page")},{key:"Enter",run:Qd}],gp=mi.highest(_n.computeN([nt],n=>n.facet(nt).defaultKeymap?[pp]:[])),Nn=Xt.define(),mp=Xt.define(),yp=P.define(),bp=P.define({combine(n){return ms(n,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,s)=>t(i,s)||e(i,s)})}}),wp=Tt.define({create(){return qt.empty},update(n,t){let e=t.state.facet(bp),i=t.annotation(Nn);if(i){let h=pt.fromTransaction(t,i.selection),a=i.side,f=a==0?n.undone:n.done;return h?f=cs(f,f.length,e.minDepth,h):f=pa(f,t.startState.selection),new qt(a==0?i.rest:f,a==0?f:i.rest)}let s=t.annotation(mp);if((s=="full"||s=="before")&&(n=n.isolate()),t.annotation(Z.addToHistory)===!1)return t.changes.empty?n:n.addMapping(t.changes.desc);let r=pt.fromTransaction(t),o=t.annotation(Z.time),l=t.annotation(Z.userEvent);return r?n=n.addChanges(r,o,l,e,t):t.selection&&(n=n.addSelection(t.startState.selection,o,l,e.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(t=>t.toJSON()),undone:n.undone.map(t=>t.toJSON())}},fromJSON(n){return new qt(n.done.map(pt.fromJSON),n.undone.map(pt.fromJSON))}});function ks(n,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let s=e.field(wp,!1);if(!s)return!1;let r=s.pop(n,e,t);return r?(i(r),!0):!1}}const kp=ks(0,!1),Go=ks(1,!1),xp=ks(0,!0),Sp=ks(1,!0);class pt{constructor(t,e,i,s,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(t){return new pt(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(t){return new pt(t.changes&&X.fromJSON(t.changes),[],t.mapped&&Kt.fromJSON(t.mapped),t.startSelection&&w.fromJSON(t.startSelection),t.selectionsAfter.map(w.fromJSON))}static fromTransaction(t,e){let i=vt;for(let s of t.startState.facet(yp)){let r=s(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new pt(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,vt)}static selection(t){return new pt(void 0,vt,void 0,void 0,t)}}function cs(n,t,e,i){let s=t+1>e+20?t-e-1:0,r=n.slice(s,t);return r.push(i),r}function vp(n,t){let e=[],i=!1;return n.iterChangedRanges((s,r)=>e.push(s,r)),t.iterChangedRanges((s,r,o,l)=>{for(let h=0;h=a&&o<=f&&(i=!0)}}),i}function Cp(n,t){return n.ranges.length==t.ranges.length&&n.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}function da(n,t){return n.length?t.length?n.concat(t):n:t}const vt=[],Ap=200;function pa(n,t){if(n.length){let e=n[n.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-Ap));return i.length&&i[i.length-1].eq(t)?n:(i.push(t),cs(n,n.length-1,1e9,e.setSelAfter(i)))}else return[pt.selection([t])]}function Op(n){let t=n[n.length-1],e=n.slice();return e[n.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function qs(n,t){if(!n.length)return n;let e=n.length,i=vt;for(;e;){let s=Mp(n[e-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let r=n.slice(0,e);return r[e-1]=s,r}else t=s.mapped,e--,i=s.selectionsAfter}return i.length?[pt.selection(i)]:vt}function Mp(n,t,e){let i=da(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(t)):vt,e);if(!n.changes)return pt.selection(i);let s=n.changes.map(t),r=t.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(r):r;return new pt(s,j.mapEffects(n.effects,t),o,n.startSelection.map(r),i)}const Tp=/^(input\.type|delete)($|\.)/;class qt{constructor(t,e,i=0,s=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new qt(this.done,this.undone):this}addChanges(t,e,i,s,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&t.changes&&(!i||Tp.test(i))&&(!l.selectionsAfter.length&&e-this.prevTime0&&e-this.prevTimee.empty?n.moveByChar(e,t):xs(e,t))}function Pt(n){return n.textDirectionAt(n.state.selection.main.head)==_.LTR}const ma=n=>ga(n,!Pt(n)),ya=n=>ga(n,Pt(n));function ba(n,t){return Zt(n,e=>e.empty?n.moveByGroup(e,t):xs(e,t))}const Dp=n=>ba(n,!Pt(n)),Bp=n=>ba(n,Pt(n));function wa(n,t){return Zt(n,e=>{if(!e.empty)return xs(e,t);let i=n.moveVertically(e,t);return i.head!=e.head?i:n.moveToLineBoundary(e,t)})}const ka=n=>wa(n,!1),xa=n=>wa(n,!0);function Sa(n){let t=n.scrollDOM.clientHeighto.empty?n.moveVertically(o,t,e.height):xs(o,t));if(s.eq(i.selection))return!1;let r;if(e.selfScroll){let o=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),h=l.top+e.marginTop,a=l.bottom-e.marginBottom;o&&o.top>h&&o.bottomva(n,!1),Ln=n=>va(n,!0);function ue(n,t,e){let i=n.lineBlockAt(t.head),s=n.moveToLineBoundary(t,e);if(s.head==t.head&&s.head!=(e?i.to:i.from)&&(s=n.moveToLineBoundary(t,e,!1)),!e&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(s=w.cursor(i.from+r))}return s}const Rp=n=>Zt(n,t=>ue(n,t,!0)),Ep=n=>Zt(n,t=>ue(n,t,!1)),Ip=n=>Zt(n,t=>ue(n,t,!Pt(n))),Np=n=>Zt(n,t=>ue(n,t,Pt(n))),Lp=n=>Zt(n,t=>w.cursor(n.lineBlockAt(t.head).from,1)),Vp=n=>Zt(n,t=>w.cursor(n.lineBlockAt(t.head).to,-1));function Ut(n,t){let e=cr(n.state.selection,i=>{let s=t(i);return w.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return e.eq(n.state.selection)?!1:(n.dispatch(Me(n.state,e)),!0)}function Ca(n,t){return Ut(n,e=>n.moveByChar(e,t))}const Aa=n=>Ca(n,!Pt(n)),Oa=n=>Ca(n,Pt(n));function Ma(n,t){return Ut(n,e=>n.moveByGroup(e,t))}const Fp=n=>Ma(n,!Pt(n)),Hp=n=>Ma(n,Pt(n));function Ta(n,t){return Ut(n,e=>n.moveVertically(e,t))}const Pa=n=>Ta(n,!1),Da=n=>Ta(n,!0);function Ba(n,t){return Ut(n,e=>n.moveVertically(e,t,Sa(n).height))}const Jo=n=>Ba(n,!1),Yo=n=>Ba(n,!0),zp=n=>Ut(n,t=>ue(n,t,!0)),Wp=n=>Ut(n,t=>ue(n,t,!1)),jp=n=>Ut(n,t=>ue(n,t,!Pt(n))),qp=n=>Ut(n,t=>ue(n,t,Pt(n))),Kp=n=>Ut(n,t=>w.cursor(n.lineBlockAt(t.head).from)),Up=n=>Ut(n,t=>w.cursor(n.lineBlockAt(t.head).to)),_o=({state:n,dispatch:t})=>(t(Me(n,{anchor:0})),!0),$o=({state:n,dispatch:t})=>(t(Me(n,{anchor:n.doc.length})),!0),Xo=({state:n,dispatch:t})=>(t(Me(n,{anchor:n.selection.main.anchor,head:0})),!0),Zo=({state:n,dispatch:t})=>(t(Me(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),Gp=({state:n,dispatch:t})=>(t(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0);function ki(n,t){if(n.state.readOnly)return!1;let e="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let h=t(r);ho&&(e="delete.forward",h=zi(n,h,!0)),o=Math.min(o,h),l=Math.max(l,h)}else o=zi(n,o,!1),l=zi(n,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:w.cursor(o,os(n)))i.between(t,t,(s,r)=>{st&&(t=e?r:s)});return t}const Ra=(n,t,e)=>ki(n,i=>{let s=i.from,{state:r}=n,o=r.doc.lineAt(s),l,h;if(e&&!t&&s>o.from&&sRa(n,!1,!0),Ea=n=>Ra(n,!0,!1),Ia=(n,t)=>ki(n,e=>{let i=e.head,{state:s}=n,r=s.doc.lineAt(i),o=s.charCategorizer(i);for(let l=null;;){if(i==(t?r.to:r.from)){i==e.head&&r.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let h=ht(r.text,i-r.from,t)+r.from,a=r.text.slice(Math.min(i,h)-r.from,Math.max(i,h)-r.from),f=o(a);if(l!=null&&f!=l)break;(a!=" "||i!=e.head)&&(l=f),i=h}return i}),Na=n=>Ia(n,!1),Qp=n=>Ia(n,!0),Jp=n=>ki(n,t=>{let e=n.lineBlockAt(t.head).to;return t.headki(n,t=>{let e=n.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)}),_p=n=>ki(n,t=>{let e=n.moveToLineBoundary(t,!0).head;return t.head{if(n.readOnly)return!1;let e=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:V.of(["",""])},range:w.cursor(i.from)}));return t(n.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},Xp=({state:n,dispatch:t})=>{if(n.readOnly)return!1;let e=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,r=n.doc.lineAt(s),o=s==r.from?s-1:ht(r.text,s-r.from,!1)+r.from,l=s==r.to?s+1:ht(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(o,s))},range:w.cursor(l)}});return e.changes.empty?!1:(t(n.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function Zp(n,t){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=ft(n).resolveInner(t),i=e.childBefore(t),s=e.childAfter(t),r;return i&&s&&i.to<=t&&s.from>=t&&(r=i.type.prop(E.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const tg=eg(!1);function eg(n){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(s=>{let{from:r,to:o}=s,l=t.doc.lineAt(r),h=!n&&r==o&&Zp(t,r);n&&(r=o=(o<=l.to?l:t.doc.lineAt(o)).to);let a=new ir(t,{simulateBreak:r,simulateDoubleBreak:!!h}),f=Wh(a,r);for(f==null&&(f=jn(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));ol.from&&r({mac:n.key,run:n.run,shift:n.shift})));var tl={};class us{constructor(t,e,i,s,r,o,l,h,a,f=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=s,this.pos=r,this.score=o,this.buffer=l,this.bufferBase=h,this.curContext=a,this.lookAhead=f,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let s=t.parser.context;return new us(t,[],e,i,i,0,[],0,s?new el(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,i=t&65535,{parser:s}=this.p,r=s.dynamicPrecedence(i);if(r&&(this.score+=r),e==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i=2e3&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,i,s=4,r=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(e==i)return;if(o.buffer[l-2]>=e){o.buffer[l-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(t,e,i,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4);this.buffer[o]=t,this.buffer[o+1]=e,this.buffer[o+2]=i,this.buffer[o+3]=s}}shift(t,e,i){let s=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let r=t,{parser:o}=this.p;(i>this.pos||e<=o.maxNode)&&(this.pos=i,o.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,s),this.shiftContext(e,s),e<=o.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,i){t&65536?this.reduce(t):this.shift(t,e,i)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(e,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),s=t.bufferBase+e;for(;t&&s==t.bufferBase;)t=t.parent;return new us(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new ng(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(i==0)return!1;if(!(i&65536))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let s=[];for(let r=0,o;rh&1&&l==o)||s.push(e[r],o)}e=s}let i=[];for(let s=0;s>19,s=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],s,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class el{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var il;(function(n){n[n.Insert=200]="Insert",n[n.Delete=190]="Delete",n[n.Reduce=100]="Reduce",n[n.MaxNext=4]="MaxNext",n[n.MaxInsertStackDepth=300]="MaxInsertStackDepth",n[n.DampenInsertStackDepth=120]="DampenInsertStackDepth",n[n.MinBigReduction=2e3]="MinBigReduction"})(il||(il={}));class ng{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,i=t>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=s}}class ds{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new ds(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new ds(this.stack,this.pos,this.index)}}function Wi(n,t=Uint16Array){if(typeof n!="string")return n;let e=null;for(let i=0,s=0;i=92&&o--,o>=34&&o--;let h=o-32;if(h>=46&&(h-=46,l=!0),r+=h,l)break;r*=46}e?e[s++]=r:e=new t(r)}return e}class _i{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const sl=new _i;class rg{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=sl,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,s=this.rangeIndex,r=this.pos+t;for(;ri.to:r>=i.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];r+=o.from-i.to,i=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,s;if(e>=0&&e=this.chunk2Pos&&il.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=sl,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let s of this.ranges){if(s.from>=e)break;s.to>t&&(i+=this.input.read(Math.max(s.from,t),Math.min(s.to,e)))}return i}}class Ve{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;og(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Ve.prototype.contextual=Ve.prototype.fallback=Ve.prototype.extend=!1;Ve.prototype.fallback=Ve.prototype.extend=!1;function og(n,t,e,i,s,r){let o=0,l=1<0){let p=n[d];if(h.allows(p)&&(t.token.value==-1||t.token.value==p||lg(p,t.token.value,s,r))){t.acceptToken(p);break}}let f=t.next,c=0,u=n[o+2];if(t.next<0&&u>c&&n[a+u*3-3]==65535&&n[a+u*3-3]==65535){o=n[a+u*3-1];continue t}for(;c>1,p=a+d+(d<<1),g=n[p],m=n[p+1]||65536;if(f=m)c=d+1;else{o=n[p+2],t.advance();continue t}}break}}function nl(n,t,e){for(let i=t,s;(s=n[i])!=65535;i++)if(s==e)return i-t;return-1}function lg(n,t,e,i){let s=nl(e,i,t);return s<0||nl(e,i,n)t)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(n.length,Math.max(i.from+1,t+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:n.length}}class hg{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?ol(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?ol(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(r instanceof q){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+r.length}}}class ag{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(i=>new _i)}getActions(t){let e=0,i=null,{parser:s}=t.p,{tokenizers:r}=s,o=s.stateSlot(t.state,3),l=t.curContext?t.curContext.hash:0,h=0;for(let a=0;ac.end+25&&(h=Math.max(c.lookAhead,h)),c.value!=0)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!f.extend&&(i=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return h&&t.setLookAhead(h),!i&&t.pos==this.stream.end&&(i=new _i,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new _i,{pos:i,p:s}=t;return e.start=i,e.end=Math.min(i+1,s.stream.end),e.value=i==s.stream.end?s.parser.eofTerm:0,e}updateCachedToken(t,e,i){let s=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(s,t),i),t.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(l>>1)){l&1?t.extended=l>>1:t.value=l>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,e,i,s){for(let r=0;rt.bufferLength*4?new hg(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,i=this.stacks=[],s,r;if(this.bigReductionCount>1e3&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe)i.push(l);else{if(this.advanceStack(l,i,t))continue;{s||(s=[],r=[]),s.push(l);let h=this.tokens.getMainToken(l);r.push(h.value,h.end)}}break}}if(!i.length){let o=s&&ug(s);if(o)return this.stackToTree(o);if(this.parser.strict)throw Dt&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,i);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,h)=>h.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>e)&&this.recovering--}else if(i.length>1)t:for(let o=0;o500&&a.buffer.length>500)if((l.score-a.score||l.buffer.length-a.buffer.length)>0)i.splice(h--,1);else{i.splice(o--,1);continue t}}}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,f=a?t.curContext.hash:0;for(let c=this.fragments.nodeAt(s);c;){let u=this.parser.nodeSet.types[c.type.id]==c.type?r.getGoto(t.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(E.contextHash)||0)==f))return t.useNode(c,u),Dt&&console.log(o+this.stackID(t)+` (via reuse of ${r.getName(c.type.id)})`),!0;if(!(c instanceof q)||c.children.length==0||c.positions[0]>0)break;let d=c.children[0];if(d instanceof q&&c.positions[0]==0)c=d;else break}}let l=r.stateSlot(t.state,4);if(l>0)return t.reduce(l),Dt&&console.log(o+this.stackID(t)+` (via always-reduce ${r.getName(l&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let h=this.tokens.getActions(t);for(let a=0;as?e.push(p):i.push(p)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return hl(t,e),!0}}runRecovery(t,e,i){let s=null,r=!1;for(let o=0;o ":"";if(l.deadEnd&&(r||(r=!0,l.restart(),Dt&&console.log(f+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let c=l.split(),u=f;for(let d=0;c.forceReduce()&&d<10&&(Dt&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));d++)Dt&&(u=this.stackID(c)+" -> ");for(let d of l.recoverByInsert(h))Dt&&console.log(f+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>l.pos?(a==l.pos&&(a++,h=0),l.recoverByDelete(h,a),Dt&&console.log(f+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),hl(l,i)):(!s||s.scoret.topRules[l][1]),s=[];for(let l=0;l=0)r(f,h,l[a++]);else{let c=l[a+-f];for(let u=-f;u>0;u--)r(l[a++],h,c);a++}}}this.nodeSet=new bs(e.map((l,h)=>wt.define({name:h>=this.minRepeatTerm?void 0:l,id:h,props:s[h],top:i.indexOf(h)>-1,error:h==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(h)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Dh;let o=Wi(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Ve(o,l):l),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let s=new fg(this,t,e,i);for(let r of this.wrappers)s=r(s,t,e,i);return s}getGoto(t,e,i=!1){let s=this.goto;if(e>=s[0])return-1;for(let r=s[e+1];;){let o=s[r++],l=o&1,h=s[r++];if(l&&i)return h;for(let a=r+(o>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Jt(this.data,i+2);else return!1;if(e==Jt(this.data,i+1))return!0}}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Jt(this.data,i+2);else break;if(!(this.data[i+2]&1)){let s=this.data[i+1];e.some((r,o)=>o&1&&r==s)||e.push(this.data[i],s)}}return e}configure(t){let e=Object.assign(Object.create(ps.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(i=>{let s=t.tokenizers.find(r=>r.from==i);return s?s.to:i})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,s)=>{let r=t.specializers.find(l=>l.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return e.specializers[s]=al(o),o})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let r of t.split(" ")){let o=e.indexOf(r);o>=0&&(i[o]=!0)}let s=null;for(let r=0;ri)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scoren.external(e,i)<<1|t}return n.get}const dg=Nh({String:T.string,Number:T.number,"True False":T.bool,PropertyName:T.propertyName,Null:T.null,",":T.separator,"[ ]":T.squareBracket,"{ }":T.brace}),pg=ps.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[dg],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),gg=os.define({name:"json",parser:pg.configure({props:[jh.add({Object:Bo({except:/^\s*\}/}),Array:Bo({except:/^\s*\]/})}),Kh.add({"Object Array":Zu})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function mg(){return new ju(gg)}var Fn={};function ur(n,t){for(var e=0;e1&&n.eat("$");var e=n.next();return/['"({]/.test(e)?(t.tokens[0]=Ss(e,e=="("?"quote":e=="{"?"def":"string"),Ge(n,t)):(/\d/.test(e)||n.eatWhile(/\w/),t.tokens.shift(),"def")};function wg(n){return function(t,e){return t.sol()&&t.string==n&&e.tokens.shift(),t.skipToEnd(),"string.special"}}function Ge(n,t){return(t.tokens[0]||yg)(n,t)}const kg={name:"shell",startState:function(){return{tokens:[]}},token:function(n,t){return Ge(n,t)},languageData:{autocomplete:La.concat(Va,Fa),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},xg=D.theme({"&":{color:"white",backgroundColor:tt.black,borderRadius:"0.75rem",borderWidth:"2px",borderColor:tt.slate[600],padding:"0.5rem"},".cm-matchingBracket":{backgroundColor:tt.black},".cm-scroller":{fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace'},".cm-content":{caretColor:tt.white,fontSize:"0.875em"},".cm-editor&.cm-focused":{outline:`1px solid ${tt.indigo[600]}`},"&.cm-focused .cm-matchingBracket":{backgroundColor:tt.slate[700]},"&.cm-focused .cm-cursor":{borderLeftColor:tt.white},"&.cm-focused .cm-selectionBackground, ::selection":{backgroundColor:tt.indigo[500]},".cm-gutters":{backgroundColor:tt.black,color:tt.white,borderRight:"none"},".cm-line":{color:"#ccc"}},{dark:!1}),Sg=ws.define([{tag:T.punctuation,color:tt.slate[200]},{tag:T.string,color:tt.slate[200]},{tag:T.propertyName,color:tt.indigo[400]},{tag:T.bool,color:tt.slate[200]},{tag:T.number,color:tt.slate[200]},{tag:T.operator,color:tt.pink[500]},{tag:T.comment,color:tt.green[600]},{tag:T.variableName,color:tt.pink[500]}]);function fl(n){let t,e;return t=new rf({props:{copyIconTitle:n[4],copySuccessIconTitle:n[5],class:"absolute right-1 top-1 text-secondary","data-theme":"dark",copied:n[7]}}),t.$on("click",n[9]),{c(){Za(t.$$.fragment)},l(i){tf(t.$$.fragment,i)},m(i,s){ef(t,i,s),e=!0},p(i,s){const r={};s&16&&(r.copyIconTitle=i[4]),s&32&&(r.copySuccessIconTitle=i[5]),s&128&&(r.copied=i[7]),t.$set(r)},i(i){e||(ji(t.$$.fragment,i),e=!0)},o(i){Gs(t.$$.fragment,i),e=!1},d(i){sf(t,i)}}}function vg(n){let t,e,i,s,r,o=[{class:n[0]},{"data-testid":i=n[10].testId},n[11]],l={};for(let a=0;a{h=null}),Xa())},i(a){r||(ji(h),r=!0)},o(a){Gs(h),r=!1},d(a){a&&vs(t),n[17](null),h&&h.d()}}}function Cg(n,t,e){let i;const s=["content","class","editable","inline","language","copyable","copyIconTitle","copySuccessIconTitle","minHeight","maxHeight","label"];let r=kr(t,s),o;const l=Ua();let{content:h}=t,{class:a=null}=t,{editable:f=!1}=t,{inline:c=!1}=t,{language:u="json"}=t,{copyable:d=!0}=t,{copyIconTitle:p=""}=t,{copySuccessIconTitle:g=""}=t,{minHeight:m=void 0}=t,{maxHeight:y=void 0}=t,{label:b=""}=t;const{copy:S,copied:k}=of();Ga(n,k,O=>e(7,o=O));const v=O=>{S(O,h)};let M,A;const I=O=>{if(!O)return;let J;try{J=lf(O)}catch{J=O}return hf(J,void 0,c?0:2)},H=({value:O,language:J})=>J==="json"?I(O):O,F=()=>new D({parent:M,state:B(i),dispatch(O){A.update([O]),O.docChanged&&l("change",A.state.doc.toString())}}),B=O=>{const J=[_n.of([...sg,...Pp]),xg,ad(Sg,{fallback:!0}),er.of(" "),sp(),dp(),$u(),bd(),N.readOnly.of(!f),D.editable.of(f),D.contentAttributes.of({"aria-label":b})];return u==="json"&&J.push(mg()),u==="shell"&&J.push(rr.define(kg)),c||J.push(D.lineWrapping),!c&&!f&&J.push(ld()),(m||y)&&(J.push(D.theme({"&":{...m?{"min-height":`${m}px`}:{},...y?{"max-height":`${y}px`}:{}}})),J.push(D.contentAttributes.of({tabindex:"0"}))),N.create({doc:O,extensions:J})};Qa(()=>(A=F(),()=>A.destroy()));const R=(O="",J=!0)=>{const Gt=J?H({value:O,language:u}):O;A.dispatch({changes:{from:0,to:A.state.doc.length,insert:Gt}})},Q=()=>{A&&(!f||A.state.doc.toString()!==h)&&R(h)};function U(O){Ja[O?"unshift":"push"](()=>{M=O,e(6,M)})}return n.$$set=O=>{e(10,t=Us(Us({},t),xr(O))),e(11,r=kr(t,s)),"content"in O&&e(12,h=O.content),"class"in O&&e(0,a=O.class),"editable"in O&&e(1,f=O.editable),"inline"in O&&e(2,c=O.inline),"language"in O&&e(13,u=O.language),"copyable"in O&&e(3,d=O.copyable),"copyIconTitle"in O&&e(4,p=O.copyIconTitle),"copySuccessIconTitle"in O&&e(5,g=O.copySuccessIconTitle),"minHeight"in O&&e(14,m=O.minHeight),"maxHeight"in O&&e(15,y=O.maxHeight),"label"in O&&e(16,b=O.label)},n.$$.update=()=>{n.$$.dirty&12288&&(i=H({value:h,language:u})),n.$$.dirty&12288&&Q()},t=xr(t),[a,f,c,d,p,g,M,o,k,v,t,r,h,u,m,y,b,U]}class Fg extends Ya{constructor(t){super(),_a(this,t,Cg,vg,za,{content:12,class:0,editable:1,inline:2,language:13,copyable:3,copyIconTitle:4,copySuccessIconTitle:5,minHeight:14,maxHeight:15,label:16})}}export{Fg as C}; +`);i>-1&&(e=e.slice(0,i))}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),i=t+e.length;for(let s=this.rangeIndex;;){let r=this.ranges[s].to;if(r>=i||(e=e.slice(0,r-(i-e.length)),s++,s==this.ranges.length))break;let o=this.ranges[s].from,l=this.lineAfter(o);e+=l,i=o+l.length}return{line:e,end:i}}skipGapsTo(t,e,i){for(;;){let s=this.ranges[this.rangeIndex].to,r=t+e;if(i>0?s>r:s>=r)break;let o=this.ranges[++this.rangeIndex].from;e+=o-s}return e}moveRangeIndex(){for(;this.ranges[this.rangeIndex].to1){r=this.skipGapsTo(e,r,1),e+=r;let o=this.chunk.length;r=this.skipGapsTo(i,r,-1),i+=r,s+=this.chunk.length-o}return this.chunk.push(t,e,i,s),r}parseLine(t){let{line:e,end:i}=this.nextLine(),s=0,{streamParser:r}=this.lang,o=new ea(e,t?t.state.tabSize:4,t?Ge(t.state):2);if(o.eol())r.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let l=sa(r.token,o,this.state);if(l&&(s=this.emitToken(this.lang.tokenTable.resolve(l),this.parsedPos+o.start,this.parsedPos+o.pos,4,s)),o.start>1e4)break}this.parsedPos=i,this.moveRangeIndex(),this.parsedPost.start)return s}throw new Error("Stream parser failed to advance stream.")}const hr=Object.create(null),gi=[xt.none],Td=new ks(gi),Fo=[],Ho=Object.create(null),na=Object.create(null);for(let[n,t]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])na[n]=oa(hr,t);class ra{constructor(t){this.extra=t,this.table=Object.assign(Object.create(null),na)}resolve(t){return t?this.table[t]||(this.table[t]=oa(this.extra,t)):0}}const Pd=new ra(hr);function Ws(n,t){Fo.indexOf(n)>-1||(Fo.push(n),console.warn(t))}function oa(n,t){let e=[];for(let l of t.split(" ")){let h=[];for(let a of l.split(".")){let f=n[a]||A[a];f?typeof f=="function"?h.length?h=h.map(f):Ws(a,`Modifier ${a} used at start of tag`):h.length?Ws(a,`Tag ${a} used as modifier`):h=Array.isArray(f)?f:[f]:Ws(a,`Unknown highlighting tag ${a}`)}for(let a of h)e.push(a)}if(!e.length)return 0;let i=t.replace(/ /g,"_"),s=i+" "+e.map(l=>l.id),r=Ho[s];if(r)return r.id;let o=Ho[s]=xt.define({id:gi.length,name:i,props:[Vh({[i]:e})]});return gi.push(o),o.id}function Dd(n){let t=xt.define({id:gi.length,name:"Document",props:[ke.add(()=>n)],top:!0});return gi.push(t),t}J.RTL,J.LTR;class la{constructor(t,e,i,s){this.state=t,this.pos=e,this.explicit=i,this.view=s,this.abortListeners=[]}tokenBefore(t){let e=ct(this.state).resolveInner(this.pos,-1);for(;e&&t.indexOf(e.name)<0;)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos),i=Math.max(e.from,this.pos-250),s=e.text.slice(i-e.from,this.pos-e.from),r=s.search(ha(t,!1));return r<0?null:{from:i+r,to:this.pos,text:s.slice(r)}}get aborted(){return this.abortListeners==null}addEventListener(t,e){t=="abort"&&this.abortListeners&&this.abortListeners.push(e)}}function zo(n){let t=Object.keys(n).join(""),e=/\w/.test(t);return e&&(t=t.replace(/\w/g,"")),`[${e?"\\w":""}${t.replace(/[^\w\s]/g,"\\$&")}]`}function Bd(n){let t=Object.create(null),e=Object.create(null);for(let{label:s}of n){t[s[0]]=!0;for(let r=1;rtypeof s=="string"?{label:s}:s),[e,i]=t.every(s=>/^\w+$/.test(s.label))?[/\w*$/,/\w+$/]:Bd(t);return s=>{let r=s.matchBefore(i);return r||s.explicit?{from:r?r.from:s.pos,options:t,validFor:e}:null}}class Wo{constructor(t,e,i,s){this.completion=t,this.source=e,this.match=i,this.score=s}}function ae(n){return n.selection.main.from}function ha(n,t){var e;let{source:i}=n,s=t&&i[0]!="^",r=i[i.length-1]!="$";return!s&&!r?n:new RegExp(`${s?"^":""}(?:${i})${r?"$":""}`,(e=n.flags)!==null&&e!==void 0?e:n.ignoreCase?"i":"")}const aa=te.define();function Ed(n,t,e,i){let{main:s}=n.selection,r=e-s.from,o=i-s.from;return Object.assign(Object.assign({},n.changeByRange(l=>l!=s&&e!=i&&n.sliceDoc(l.from+r,l.from+o)!=n.sliceDoc(e,i)?{range:l}:{changes:{from:l.from+r,to:i==s.from?l.to:l.from+o,insert:t},range:w.cursor(l.from+r+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const jo=new WeakMap;function Id(n){if(!Array.isArray(n))return n;let t=jo.get(n);return t||jo.set(n,t=Rd(n)),t}const fs=j.define(),mi=j.define();class Nd{constructor(t){this.pattern=t,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let e=0;e=48&&v<=57||v>=97&&v<=122?2:v>=65&&v<=90?1:0:(P=bl(v))!=P.toLowerCase()?1:P!=P.toUpperCase()?2:0;(!b||O==1&&m||k==0&&O!=0)&&(e[c]==v||i[c]==v&&(u=!0)?o[c++]=b:o.length&&(y=!1)),k=O,b+=qt(v)}return c==h&&o[0]==0&&y?this.result(-100+(u?-200:0),o,t):d==h&&p==0?this.ret(-200-t.length+(g==t.length?0:-100),[0,g]):l>-1?this.ret(-700-t.length,[l,l+this.pattern.length]):d==h?this.ret(-900-t.length,[p,g]):c==h?this.result(-100+(u?-200:0)+-700+(y?0:-1100),o,t):e.length==2?null:this.result((s[0]?-700:0)+-200+-1100,s,t)}result(t,e,i){let s=[],r=0;for(let o of e){let l=o+(this.astral?qt(bt(i,o)):1);r&&s[r-1]==o?s[r-1]=l:(s[r++]=o,s[r++]=l)}return this.ret(t-i.length,s)}}class Ld{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:Vd,filterStrict:!1,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>i=>qo(t(i),e(i)),optionClass:(t,e)=>i=>qo(t(i),e(i)),addToOptions:(t,e)=>t.concat(e),filterStrict:(t,e)=>t||e})}});function qo(n,t){return n?t?n+" "+t:n:t}function Vd(n,t,e,i,s,r){let o=n.textDirection==J.RTL,l=o,h=!1,a="top",f,c,u=t.left-s.left,d=s.right-t.right,p=i.right-i.left,g=i.bottom-i.top;if(l&&u=g||b>t.top?f=e.bottom-t.top:(a="bottom",f=t.bottom-e.top)}let m=(t.bottom-t.top)/r.offsetHeight,y=(t.right-t.left)/r.offsetWidth;return{style:`${a}: ${f/m}px; max-width: ${c/y}px`,class:"cm-completionInfo-"+(h?o?"left-narrow":"right-narrow":l?"left":"right")}}function Fd(n){let t=n.addToOptions.slice();return n.icons&&t.push({render(e){let i=document.createElement("div");return i.classList.add("cm-completionIcon"),e.type&&i.classList.add(...e.type.split(/\s+/g).map(s=>"cm-completionIcon-"+s)),i.setAttribute("aria-hidden","true"),i},position:20}),t.push({render(e,i,s,r){let o=document.createElement("span");o.className="cm-completionLabel";let l=e.displayLabel||e.label,h=0;for(let a=0;ah&&o.appendChild(document.createTextNode(l.slice(h,f)));let u=o.appendChild(document.createElement("span"));u.appendChild(document.createTextNode(l.slice(f,c))),u.className="cm-completionMatchedText",h=c}return he.position-i.position).map(e=>e.render)}function js(n,t,e){if(n<=e)return{from:0,to:n};if(t<0&&(t=0),t<=n>>1){let s=Math.floor(t/e);return{from:s*e,to:(s+1)*e}}let i=Math.floor((n-t)/e);return{from:n-(i+1)*e,to:n-i*e}}class Hd{constructor(t,e,i){this.view=t,this.stateField=e,this.applyCompletion=i,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:h=>this.placeInfo(h),key:this},this.space=null,this.currentClass="";let s=t.state.field(e),{options:r,selected:o}=s.open,l=t.state.facet(nt);this.optionContent=Fd(l),this.optionClass=l.optionClass,this.tooltipClass=l.tooltipClass,this.range=js(r.length,o,l.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",h=>{let{options:a}=t.state.field(e).open;for(let f=h.target,c;f&&f!=this.dom;f=f.parentNode)if(f.nodeName=="LI"&&(c=/-(\d+)$/.exec(f.id))&&+c[1]{let a=t.state.field(this.stateField,!1);a&&a.tooltip&&t.state.facet(nt).closeOnBlur&&h.relatedTarget!=t.contentDOM&&t.dispatch({effects:mi.of(null)})}),this.showOptions(r,s.id)}mount(){this.updateSel()}showOptions(t,e){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,e,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var e;let i=t.state.field(this.stateField),s=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),i!=s){let{options:r,selected:o,disabled:l}=i.open;(!s.open||s.open.options!=r)&&(this.range=js(r.length,o,t.state.facet(nt).maxRenderedOptions),this.showOptions(r,i.id)),this.updateSel(),l!=((e=s.open)===null||e===void 0?void 0:e.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!l)}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let i of this.currentClass.split(" "))i&&this.dom.classList.remove(i);for(let i of e.split(" "))i&&this.dom.classList.add(i);this.currentClass=e}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if((e.selected>-1&&e.selected=this.range.to)&&(this.range=js(e.options.length,e.selected,this.view.state.facet(nt).maxRenderedOptions),this.showOptions(e.options,t.id)),this.updateSelectedOption(e.selected)){this.destroyInfo();let{completion:i}=e.options[e.selected],{info:s}=i;if(!s)return;let r=typeof s=="string"?document.createTextNode(s):s(i);if(!r)return;"then"in r?r.then(o=>{o&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(o,i)}).catch(o=>kt(this.view.state,o,"completion info")):this.addInfoPane(r,i)}}addInfoPane(t,e){this.destroyInfo();let i=this.info=document.createElement("div");if(i.className="cm-tooltip cm-completionInfo",t.nodeType!=null)i.appendChild(t),this.infoDestroy=null;else{let{dom:s,destroy:r}=t;i.appendChild(s),this.infoDestroy=r||null}this.dom.appendChild(i),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let i=this.list.firstChild,s=this.range.from;i;i=i.nextSibling,s++)i.nodeName!="LI"||!i.id?s--:s==t?i.hasAttribute("aria-selected")||(i.setAttribute("aria-selected","true"),e=i):i.hasAttribute("aria-selected")&&i.removeAttribute("aria-selected");return e&&Wd(this.list,e),e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect(),i=this.info.getBoundingClientRect(),s=t.getBoundingClientRect(),r=this.space;if(!r){let o=this.dom.ownerDocument.defaultView||window;r={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return s.top>Math.min(r.bottom,e.bottom)-10||s.bottomi.from||i.from==0))if(r=u,typeof a!="string"&&a.header)s.appendChild(a.header(a));else{let d=s.appendChild(document.createElement("completion-section"));d.textContent=u}}const f=s.appendChild(document.createElement("li"));f.id=e+"-"+o,f.setAttribute("role","option");let c=this.optionClass(l);c&&(f.className=c);for(let u of this.optionContent){let d=u(l,this.view.state,this.view,h);d&&f.appendChild(d)}}return i.from&&s.classList.add("cm-completionListIncompleteTop"),i.tonew Hd(e,n,t)}function Wd(n,t){let e=n.getBoundingClientRect(),i=t.getBoundingClientRect(),s=e.height/n.offsetHeight;i.tope.bottom&&(n.scrollTop+=(i.bottom-e.bottom)/s)}function Ko(n){return(n.boost||0)*100+(n.apply?10:0)+(n.info?5:0)+(n.type?1:0)}function jd(n,t){let e=[],i=null,s=a=>{e.push(a);let{section:f}=a.completion;if(f){i||(i=[]);let c=typeof f=="string"?f:f.name;i.some(u=>u.name==c)||i.push(typeof f=="string"?{name:c}:f)}},r=t.facet(nt);for(let a of n)if(a.hasResult()){let f=a.result.getMatch;if(a.result.filter===!1)for(let c of a.result.options)s(new Wo(c,a.source,f?f(c):[],1e9-e.length));else{let c=t.sliceDoc(a.from,a.to),u,d=r.filterStrict?new Ld(c):new Nd(c);for(let p of a.result.options)if(u=d.match(p.label)){let g=p.displayLabel?f?f(p,u.matched):[]:u.matched;s(new Wo(p,a.source,g,u.score+(p.boost||0)))}}}if(i){let a=Object.create(null),f=0,c=(u,d)=>{var p,g;return((p=u.rank)!==null&&p!==void 0?p:1e9)-((g=d.rank)!==null&&g!==void 0?g:1e9)||(u.namec.score-f.score||h(f.completion,c.completion))){let f=a.completion;!l||l.label!=f.label||l.detail!=f.detail||l.type!=null&&f.type!=null&&l.type!=f.type||l.apply!=f.apply||l.boost!=f.boost?o.push(a):Ko(a.completion)>Ko(l)&&(o[o.length-1]=a),l=a.completion}return o}class Re{constructor(t,e,i,s,r,o){this.options=t,this.attrs=e,this.tooltip=i,this.timestamp=s,this.selected=r,this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new Re(this.options,Uo(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,i,s,r){let o=jd(t,e);if(!o.length)return s&&t.some(h=>h.state==1)?new Re(s.options,s.attrs,s.tooltip,s.timestamp,s.selected,!0):null;let l=e.facet(nt).selectOnOpen?0:-1;if(s&&s.selected!=l&&s.selected!=-1){let h=s.options[s.selected].completion;for(let a=0;aa.hasResult()?Math.min(h,a.from):h,1e8),create:_d,above:r.aboveCursor},s?s.timestamp:Date.now(),l,!1)}map(t){return new Re(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class cs{constructor(t,e,i){this.active=t,this.id=e,this.open=i}static start(){return new cs(Gd,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,i=e.facet(nt),r=(i.override||e.languageDataAt("autocomplete",ae(e)).map(Id)).map(l=>(this.active.find(a=>a.source==l)||new wt(l,this.active.some(a=>a.state!=0)?1:0)).update(t,i));r.length==this.active.length&&r.every((l,h)=>l==this.active[h])&&(r=this.active);let o=this.open;o&&t.docChanged&&(o=o.map(t.changes)),t.selection||r.some(l=>l.hasResult()&&t.changes.touchesRange(l.from,l.to))||!qd(r,this.active)?o=Re.build(r,e,this.id,o,i):o&&o.disabled&&!r.some(l=>l.state==1)&&(o=null),!o&&r.every(l=>l.state!=1)&&r.some(l=>l.hasResult())&&(r=r.map(l=>l.hasResult()?new wt(l.source,0):l));for(let l of t.effects)l.is(ua)&&(o=o&&o.setSelected(l.value,this.id));return r==this.active&&o==this.open?this:new cs(r,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Kd:Ud}}function qd(n,t){if(n==t)return!0;for(let e=0,i=0;;){for(;e-1&&(e["aria-activedescendant"]=n+"-"+t),e}const Gd=[];function fa(n,t){if(n.isUserEvent("input.complete")){let i=n.annotation(aa);if(i&&t.activateOnCompletion(i))return 12}let e=n.isUserEvent("input.type");return e&&t.activateOnTyping?5:e?1:n.isUserEvent("delete.backward")?2:n.selection?8:n.docChanged?16:0}class wt{constructor(t,e,i=-1){this.source=t,this.state=e,this.explicitPos=i}hasResult(){return!1}update(t,e){let i=fa(t,e),s=this;(i&8||i&16&&this.touches(t))&&(s=new wt(s.source,0)),i&4&&s.state==0&&(s=new wt(this.source,1)),s=s.updateFor(t,i);for(let r of t.effects)if(r.is(fs))s=new wt(s.source,1,r.value?ae(t.state):-1);else if(r.is(mi))s=new wt(s.source,0);else if(r.is(ca))for(let o of r.value)o.source==s.source&&(s=o);return s}updateFor(t,e){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new wt(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(ae(t.state))}}class Ve extends wt{constructor(t,e,i,s,r){super(t,2,e),this.result=i,this.from=s,this.to=r}hasResult(){return!0}updateFor(t,e){var i;if(!(e&3))return this.map(t.changes);let s=this.result;s.map&&!t.changes.empty&&(s=s.map(s,t.changes));let r=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1),l=ae(t.state);if((this.explicitPos<0?l<=r:lo||!s||e&2&&ae(t.startState)==this.from)return new wt(this.source,e&4?1:0);let h=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return Qd(s.validFor,t.state,r,o)?new Ve(this.source,h,s,r,o):s.update&&(s=s.update(s,r,o,new la(t.state,l,h>=0)))?new Ve(this.source,h,s,s.from,(i=s.to)!==null&&i!==void 0?i:ae(t.state)):new wt(this.source,1,h)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new Ve(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new wt(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function Qd(n,t,e,i){if(!n)return!1;let s=t.sliceDoc(e,i);return typeof n=="function"?n(s,e,i,t):ha(n,!0).test(s)}const ca=j.define({map(n,t){return n.map(e=>e.map(t))}}),ua=j.define(),dt=Dt.define({create(){return cs.start()},update(n,t){return n.update(t)},provide:n=>[Ph.from(n,t=>t.tooltip),D.contentAttributes.from(n,t=>t.attrs)]});function ar(n,t){const e=t.completion.apply||t.completion.label;let i=n.state.field(dt).active.find(s=>s.source==t.source);return i instanceof Ve?(typeof e=="string"?n.dispatch(Object.assign(Object.assign({},Ed(n.state,e,i.from,i.to)),{annotations:aa.of(t.completion)})):e(n,t.completion,i.from,i.to),!0):!1}const _d=zd(dt,ar);function Wi(n,t="option"){return e=>{let i=e.state.field(dt,!1);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+s*(n?1:-1):n?0:o-1;return l<0?l=t=="page"?0:o-1:l>=o&&(l=t=="page"?o-1:0),e.dispatch({effects:ua.of(l)}),!0}}const Yd=n=>{let t=n.state.field(dt,!1);return n.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampn.state.field(dt,!1)?(n.dispatch({effects:fs.of(!0)}),!0):!1,Xd=n=>{let t=n.state.field(dt,!1);return!t||!t.active.some(e=>e.state!=0)?!1:(n.dispatch({effects:mi.of(null)}),!0)};class $d{constructor(t,e){this.active=t,this.context=e,this.time=Date.now(),this.updates=[],this.done=void 0}}const Zd=50,tp=1e3,ep=It.fromClass(class{constructor(n){this.view=n,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of n.state.field(dt).active)t.state==1&&this.startQuery(t)}update(n){let t=n.state.field(dt),e=n.state.facet(nt);if(!n.selectionSet&&!n.docChanged&&n.startState.field(dt)==t)return;let i=n.transactions.some(r=>{let o=fa(r,e);return o&8||(r.selection||r.docChanged)&&!(o&3)});for(let r=0;rZd&&Date.now()-o.time>tp){for(let l of o.context.abortListeners)try{l()}catch(h){kt(this.view.state,h)}o.context.abortListeners=null,this.running.splice(r--,1)}else o.updates.push(...n.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),n.transactions.some(r=>r.effects.some(o=>o.is(fs)))&&(this.pendingStart=!0);let s=this.pendingStart?50:e.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(r=>r.state==1&&!this.running.some(o=>o.active.source==r.source))?setTimeout(()=>this.startUpdate(),s):-1,this.composing!=0)for(let r of n.transactions)r.isUserEvent("input.type")?this.composing=2:this.composing==2&&r.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:n}=this.view,t=n.field(dt);for(let e of t.active)e.state==1&&!this.running.some(i=>i.active.source==e.source)&&this.startQuery(e)}startQuery(n){let{state:t}=this.view,e=ae(t),i=new la(t,e,n.explicitPos==e,this.view),s=new $d(n,i);this.running.push(s),Promise.resolve(n.source(i)).then(r=>{s.context.aborted||(s.done=r||null,this.scheduleAccept())},r=>{this.view.dispatch({effects:mi.of(null)}),kt(this.view.state,r)})}scheduleAccept(){this.running.every(n=>n.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(nt).updateSyncTime))}accept(){var n;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],e=this.view.state.facet(nt);for(let i=0;io.source==s.active.source);if(r&&r.state==1)if(s.done==null){let o=new wt(s.active.source,0);for(let l of s.updates)o=o.update(l,e);o.state!=1&&t.push(o)}else this.startQuery(r)}t.length&&this.view.dispatch({effects:ca.of(t)})}},{eventHandlers:{blur(n){let t=this.view.state.field(dt,!1);if(t&&t.tooltip&&this.view.state.facet(nt).closeOnBlur){let e=t.open&&Dh(this.view,t.open.tooltip);(!e||!e.dom.contains(n.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:mi.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:fs.of(!1)}),20),this.composing=0}}}),ip=typeof navigator=="object"&&/Win/.test(navigator.platform),sp=yi.highest(D.domEventHandlers({keydown(n,t){let e=t.state.field(dt,!1);if(!e||!e.open||e.open.disabled||e.open.selected<0||n.key.length>1||n.ctrlKey&&!(ip&&n.altKey)||n.metaKey)return!1;let i=e.open.options[e.open.selected],s=e.active.find(o=>o.source==i.source),r=i.completion.commitCharacters||s.result.commitCharacters;return r&&r.indexOf(n.key)>-1&&ar(t,i),!1}})),np=D.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}}),us={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},xe=j.define({map(n,t){let e=t.mapPos(n,-1,pt.TrackAfter);return e??void 0}}),fr=new class extends ve{};fr.startSide=1;fr.endSide=-1;const da=Dt.define({create(){return V.empty},update(n,t){if(n=n.map(t.changes),t.selection){let e=t.state.doc.lineAt(t.selection.main.head);n=n.update({filter:i=>i>=e.from&&i<=e.to})}for(let e of t.effects)e.is(xe)&&(n=n.update({add:[fr.range(e.value,e.value+1)]}));return n}});function rp(){return[ap,da]}const qs="()[]{}<>";function op(n){for(let t=0;t{if((hp?n.composing:n.compositionStarted)||n.state.readOnly)return!1;let s=n.state.selection.main;if(i.length>2||i.length==2&&qt(bt(i,0))==1||t!=s.from||e!=s.to)return!1;let r=fp(n.state,i);return r?(n.dispatch(r),!0):!1});function fp(n,t){let e=lp(n,n.selection.main.head),i=e.brackets||us.brackets;for(let s of i){let r=op(bt(s,0));if(t==s)return r==s?dp(n,s,i.indexOf(s+s+s)>-1,e):cp(n,s,r,e.before||us.before);if(t==r&&pa(n,n.selection.main.from))return up(n,s,r)}return null}function pa(n,t){let e=!1;return n.field(da).between(0,n.doc.length,i=>{i==t&&(e=!0)}),e}function cr(n,t){let e=n.sliceString(t,t+2);return e.slice(0,qt(bt(e,0)))}function cp(n,t,e,i){let s=null,r=n.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:e,from:o.to}],effects:xe.of(o.to+t.length),range:w.range(o.anchor+t.length,o.head+t.length)};let l=cr(n.doc,o.head);return!l||/\s/.test(l)||i.indexOf(l)>-1?{changes:{insert:t+e,from:o.head},effects:xe.of(o.head+t.length),range:w.cursor(o.head+t.length)}:{range:s=o}});return s?null:n.update(r,{scrollIntoView:!0,userEvent:"input.type"})}function up(n,t,e){let i=null,s=n.changeByRange(r=>r.empty&&cr(n.doc,r.head)==e?{changes:{from:r.head,to:r.head+e.length,insert:e},range:w.cursor(r.head+e.length)}:i={range:r});return i?null:n.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function dp(n,t,e,i){let s=i.stringPrefixes||us.stringPrefixes,r=null,o=n.changeByRange(l=>{if(!l.empty)return{changes:[{insert:t,from:l.from},{insert:t,from:l.to}],effects:xe.of(l.to+t.length),range:w.range(l.anchor+t.length,l.head+t.length)};let h=l.head,a=cr(n.doc,h),f;if(a==t){if(Go(n,h))return{changes:{insert:t+t,from:h},effects:xe.of(h+t.length),range:w.cursor(h+t.length)};if(pa(n,h)){let u=e&&n.sliceDoc(h,h+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:h,to:h+u.length,insert:u},range:w.cursor(h+u.length)}}}else{if(e&&n.sliceDoc(h-2*t.length,h)==t+t&&(f=Qo(n,h-2*t.length,s))>-1&&Go(n,f))return{changes:{insert:t+t+t+t,from:h},effects:xe.of(h+t.length),range:w.cursor(h+t.length)};if(n.charCategorizer(h)(a)!=vt.Word&&Qo(n,h,s)>-1&&!pp(n,h,t,s))return{changes:{insert:t+t,from:h},effects:xe.of(h+t.length),range:w.cursor(h+t.length)}}return{range:r=l}});return r?null:n.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function Go(n,t){let e=ct(n).resolveInner(t+1);return e.parent&&e.from==t}function pp(n,t,e,i){let s=ct(n).resolveInner(t,-1),r=i.reduce((o,l)=>Math.max(o,l.length),0);for(let o=0;o<5;o++){let l=n.sliceDoc(s.from,Math.min(s.to,s.from+e.length+r)),h=l.indexOf(e);if(!h||h>-1&&i.indexOf(l.slice(0,h))>-1){let f=s.firstChild;for(;f&&f.from==s.from&&f.to-f.from>e.length+h;){if(n.sliceDoc(f.to-e.length,f.to)==e)return!1;f=f.firstChild}return!0}let a=s.to==t&&s.parent;if(!a)break;s=a}return!1}function Qo(n,t,e){let i=n.charCategorizer(t);if(i(n.sliceDoc(t-1,t))!=vt.Word)return t;for(let s of e){let r=t-s.length;if(n.sliceDoc(r,t)==s&&i(n.sliceDoc(r-1,r))!=vt.Word)return r}return-1}function gp(n={}){return[sp,dt,nt.of(n),ep,yp,np]}const mp=[{key:"Ctrl-Space",run:Jd},{key:"Escape",run:Xd},{key:"ArrowDown",run:Wi(!0)},{key:"ArrowUp",run:Wi(!1)},{key:"PageDown",run:Wi(!0,"page")},{key:"PageUp",run:Wi(!1,"page")},{key:"Enter",run:Yd}],yp=yi.highest(Xn.computeN([nt],n=>n.facet(nt).defaultKeymap?[mp]:[])),Ln=te.define(),bp=te.define(),wp=T.define(),kp=T.define({combine(n){return bs(n,{minDepth:100,newGroupDelay:500,joinToEvent:(t,e)=>e},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(t,e)=>(i,s)=>t(i,s)||e(i,s)})}}),xp=Dt.define({create(){return Ut.empty},update(n,t){let e=t.state.facet(kp),i=t.annotation(Ln);if(i){let h=gt.fromTransaction(t,i.selection),a=i.side,f=a==0?n.undone:n.done;return h?f=ds(f,f.length,e.minDepth,h):f=ma(f,t.startState.selection),new Ut(a==0?i.rest:f,a==0?f:i.rest)}let s=t.annotation(bp);if((s=="full"||s=="before")&&(n=n.isolate()),t.annotation(Z.addToHistory)===!1)return t.changes.empty?n:n.addMapping(t.changes.desc);let r=gt.fromTransaction(t),o=t.annotation(Z.time),l=t.annotation(Z.userEvent);return r?n=n.addChanges(r,o,l,e,t):t.selection&&(n=n.addSelection(t.startState.selection,o,l,e.newGroupDelay)),(s=="full"||s=="after")&&(n=n.isolate()),n},toJSON(n){return{done:n.done.map(t=>t.toJSON()),undone:n.undone.map(t=>t.toJSON())}},fromJSON(n){return new Ut(n.done.map(gt.fromJSON),n.undone.map(gt.fromJSON))}});function xs(n,t){return function({state:e,dispatch:i}){if(!t&&e.readOnly)return!1;let s=e.field(xp,!1);if(!s)return!1;let r=s.pop(n,e,t);return r?(i(r),!0):!1}}const Sp=xs(0,!1),_o=xs(1,!1),vp=xs(0,!0),Cp=xs(1,!0);class gt{constructor(t,e,i,s,r){this.changes=t,this.effects=e,this.mapped=i,this.startSelection=s,this.selectionsAfter=r}setSelAfter(t){return new gt(this.changes,this.effects,this.mapped,this.startSelection,t)}toJSON(){var t,e,i;return{changes:(t=this.changes)===null||t===void 0?void 0:t.toJSON(),mapped:(e=this.mapped)===null||e===void 0?void 0:e.toJSON(),startSelection:(i=this.startSelection)===null||i===void 0?void 0:i.toJSON(),selectionsAfter:this.selectionsAfter.map(s=>s.toJSON())}}static fromJSON(t){return new gt(t.changes&&$.fromJSON(t.changes),[],t.mapped&&Gt.fromJSON(t.mapped),t.startSelection&&w.fromJSON(t.startSelection),t.selectionsAfter.map(w.fromJSON))}static fromTransaction(t,e){let i=At;for(let s of t.startState.facet(wp)){let r=s(t);r.length&&(i=i.concat(r))}return!i.length&&t.changes.empty?null:new gt(t.changes.invert(t.startState.doc),i,void 0,e||t.startState.selection,At)}static selection(t){return new gt(void 0,At,void 0,void 0,t)}}function ds(n,t,e,i){let s=t+1>e+20?t-e-1:0,r=n.slice(s,t);return r.push(i),r}function Ap(n,t){let e=[],i=!1;return n.iterChangedRanges((s,r)=>e.push(s,r)),t.iterChangedRanges((s,r,o,l)=>{for(let h=0;h=a&&o<=f&&(i=!0)}}),i}function Op(n,t){return n.ranges.length==t.ranges.length&&n.ranges.filter((e,i)=>e.empty!=t.ranges[i].empty).length===0}function ga(n,t){return n.length?t.length?n.concat(t):n:t}const At=[],Mp=200;function ma(n,t){if(n.length){let e=n[n.length-1],i=e.selectionsAfter.slice(Math.max(0,e.selectionsAfter.length-Mp));return i.length&&i[i.length-1].eq(t)?n:(i.push(t),ds(n,n.length-1,1e9,e.setSelAfter(i)))}else return[gt.selection([t])]}function Tp(n){let t=n[n.length-1],e=n.slice();return e[n.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),e}function Ks(n,t){if(!n.length)return n;let e=n.length,i=At;for(;e;){let s=Pp(n[e-1],t,i);if(s.changes&&!s.changes.empty||s.effects.length){let r=n.slice(0,e);return r[e-1]=s,r}else t=s.mapped,e--,i=s.selectionsAfter}return i.length?[gt.selection(i)]:At}function Pp(n,t,e){let i=ga(n.selectionsAfter.length?n.selectionsAfter.map(l=>l.map(t)):At,e);if(!n.changes)return gt.selection(i);let s=n.changes.map(t),r=t.mapDesc(n.changes,!0),o=n.mapped?n.mapped.composeDesc(r):r;return new gt(s,j.mapEffects(n.effects,t),o,n.startSelection.map(r),i)}const Dp=/^(input\.type|delete)($|\.)/;class Ut{constructor(t,e,i=0,s=void 0){this.done=t,this.undone=e,this.prevTime=i,this.prevUserEvent=s}isolate(){return this.prevTime?new Ut(this.done,this.undone):this}addChanges(t,e,i,s,r){let o=this.done,l=o[o.length-1];return l&&l.changes&&!l.changes.empty&&t.changes&&(!i||Dp.test(i))&&(!l.selectionsAfter.length&&e-this.prevTime0&&e-this.prevTimee.empty?n.moveByChar(e,t):Ss(e,t))}function Bt(n){return n.textDirectionAt(n.state.selection.main.head)==J.LTR}const ba=n=>ya(n,!Bt(n)),wa=n=>ya(n,Bt(n));function ka(n,t){return ee(n,e=>e.empty?n.moveByGroup(e,t):Ss(e,t))}const Rp=n=>ka(n,!Bt(n)),Ep=n=>ka(n,Bt(n));function xa(n,t){return ee(n,e=>{if(!e.empty)return Ss(e,t);let i=n.moveVertically(e,t);return i.head!=e.head?i:n.moveToLineBoundary(e,t)})}const Sa=n=>xa(n,!1),va=n=>xa(n,!0);function Ca(n){let t=n.scrollDOM.clientHeighto.empty?n.moveVertically(o,t,e.height):Ss(o,t));if(s.eq(i.selection))return!1;let r;if(e.selfScroll){let o=n.coordsAtPos(i.selection.main.head),l=n.scrollDOM.getBoundingClientRect(),h=l.top+e.marginTop,a=l.bottom-e.marginBottom;o&&o.top>h&&o.bottomAa(n,!1),Vn=n=>Aa(n,!0);function pe(n,t,e){let i=n.lineBlockAt(t.head),s=n.moveToLineBoundary(t,e);if(s.head==t.head&&s.head!=(e?i.to:i.from)&&(s=n.moveToLineBoundary(t,e,!1)),!e&&s.head==i.from&&i.length){let r=/^\s*/.exec(n.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;r&&t.head!=i.from+r&&(s=w.cursor(i.from+r))}return s}const Ip=n=>ee(n,t=>pe(n,t,!0)),Np=n=>ee(n,t=>pe(n,t,!1)),Lp=n=>ee(n,t=>pe(n,t,!Bt(n))),Vp=n=>ee(n,t=>pe(n,t,Bt(n))),Fp=n=>ee(n,t=>w.cursor(n.lineBlockAt(t.head).from,1)),Hp=n=>ee(n,t=>w.cursor(n.lineBlockAt(t.head).to,-1));function Qt(n,t){let e=ur(n.state.selection,i=>{let s=t(i);return w.range(i.anchor,s.head,s.goalColumn,s.bidiLevel||void 0)});return e.eq(n.state.selection)?!1:(n.dispatch(Te(n.state,e)),!0)}function Oa(n,t){return Qt(n,e=>n.moveByChar(e,t))}const Ma=n=>Oa(n,!Bt(n)),Ta=n=>Oa(n,Bt(n));function Pa(n,t){return Qt(n,e=>n.moveByGroup(e,t))}const zp=n=>Pa(n,!Bt(n)),Wp=n=>Pa(n,Bt(n));function Da(n,t){return Qt(n,e=>n.moveVertically(e,t))}const Ba=n=>Da(n,!1),Ra=n=>Da(n,!0);function Ea(n,t){return Qt(n,e=>n.moveVertically(e,t,Ca(n).height))}const Jo=n=>Ea(n,!1),Xo=n=>Ea(n,!0),jp=n=>Qt(n,t=>pe(n,t,!0)),qp=n=>Qt(n,t=>pe(n,t,!1)),Kp=n=>Qt(n,t=>pe(n,t,!Bt(n))),Up=n=>Qt(n,t=>pe(n,t,Bt(n))),Gp=n=>Qt(n,t=>w.cursor(n.lineBlockAt(t.head).from)),Qp=n=>Qt(n,t=>w.cursor(n.lineBlockAt(t.head).to)),$o=({state:n,dispatch:t})=>(t(Te(n,{anchor:0})),!0),Zo=({state:n,dispatch:t})=>(t(Te(n,{anchor:n.doc.length})),!0),tl=({state:n,dispatch:t})=>(t(Te(n,{anchor:n.selection.main.anchor,head:0})),!0),el=({state:n,dispatch:t})=>(t(Te(n,{anchor:n.selection.main.anchor,head:n.doc.length})),!0),_p=({state:n,dispatch:t})=>(t(n.update({selection:{anchor:0,head:n.doc.length},userEvent:"select"})),!0);function Si(n,t){if(n.state.readOnly)return!1;let e="delete.selection",{state:i}=n,s=i.changeByRange(r=>{let{from:o,to:l}=r;if(o==l){let h=t(r);ho&&(e="delete.forward",h=ji(n,h,!0)),o=Math.min(o,h),l=Math.max(l,h)}else o=ji(n,o,!1),l=ji(n,l,!0);return o==l?{range:r}:{changes:{from:o,to:l},range:w.cursor(o,os(n)))i.between(t,t,(s,r)=>{st&&(t=e?r:s)});return t}const Ia=(n,t,e)=>Si(n,i=>{let s=i.from,{state:r}=n,o=r.doc.lineAt(s),l,h;if(e&&!t&&s>o.from&&sIa(n,!1,!0),Na=n=>Ia(n,!0,!1),La=(n,t)=>Si(n,e=>{let i=e.head,{state:s}=n,r=s.doc.lineAt(i),o=s.charCategorizer(i);for(let l=null;;){if(i==(t?r.to:r.from)){i==e.head&&r.number!=(t?s.doc.lines:1)&&(i+=t?1:-1);break}let h=at(r.text,i-r.from,t)+r.from,a=r.text.slice(Math.min(i,h)-r.from,Math.max(i,h)-r.from),f=o(a);if(l!=null&&f!=l)break;(a!=" "||i!=e.head)&&(l=f),i=h}return i}),Va=n=>La(n,!1),Yp=n=>La(n,!0),Jp=n=>Si(n,t=>{let e=n.lineBlockAt(t.head).to;return t.headSi(n,t=>{let e=n.moveToLineBoundary(t,!1).head;return t.head>e?e:Math.max(0,t.head-1)}),$p=n=>Si(n,t=>{let e=n.moveToLineBoundary(t,!0).head;return t.head{if(n.readOnly)return!1;let e=n.changeByRange(i=>({changes:{from:i.from,to:i.to,insert:F.of(["",""])},range:w.cursor(i.from)}));return t(n.update(e,{scrollIntoView:!0,userEvent:"input"})),!0},tg=({state:n,dispatch:t})=>{if(n.readOnly)return!1;let e=n.changeByRange(i=>{if(!i.empty||i.from==0||i.from==n.doc.length)return{range:i};let s=i.from,r=n.doc.lineAt(s),o=s==r.from?s-1:at(r.text,s-r.from,!1)+r.from,l=s==r.to?s+1:at(r.text,s-r.from,!0)+r.from;return{changes:{from:o,to:l,insert:n.doc.slice(s,l).append(n.doc.slice(o,s))},range:w.cursor(l)}});return e.changes.empty?!1:(t(n.update(e,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function eg(n,t){if(/\(\)|\[\]|\{\}/.test(n.sliceDoc(t-1,t+1)))return{from:t,to:t};let e=ct(n).resolveInner(t),i=e.childBefore(t),s=e.childAfter(t),r;return i&&s&&i.to<=t&&s.from>=t&&(r=i.type.prop(I.closedBy))&&r.indexOf(s.name)>-1&&n.doc.lineAt(i.to).from==n.doc.lineAt(s.from).from&&!/\S/.test(n.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}const ig=sg(!1);function sg(n){return({state:t,dispatch:e})=>{if(t.readOnly)return!1;let i=t.changeByRange(s=>{let{from:r,to:o}=s,l=t.doc.lineAt(r),h=!n&&r==o&&eg(t,r);n&&(r=o=(o<=l.to?l:t.doc.lineAt(o)).to);let a=new sr(t,{simulateBreak:r,simulateDoubleBreak:!!h}),f=qh(a,r);for(f==null&&(f=qn(/^\s*/.exec(t.doc.lineAt(r).text)[0],t.tabSize));ol.from&&r({mac:n.key,run:n.run,shift:n.shift})));var il={};class ps{constructor(t,e,i,s,r,o,l,h,a,f=0,c){this.p=t,this.stack=e,this.state=i,this.reducePos=s,this.pos=r,this.score=o,this.buffer=l,this.bufferBase=h,this.curContext=a,this.lookAhead=f,this.parent=c}toString(){return`[${this.stack.filter((t,e)=>e%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,i=0){let s=t.parser.context;return new ps(t,[],e,i,i,0,[],0,s?new sl(s,s.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length),this.state=t}reduce(t){let e=t>>19,i=t&65535,{parser:s}=this.p,r=s.dynamicPrecedence(i);if(r&&(this.score+=r),e==0){this.pushState(s.getGoto(this.state,i,!0),this.reducePos),i=2e3&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=h):this.p.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,i,s=4,r=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&o.buffer[l-4]==0&&o.buffer[l-1]>-1){if(e==i)return;if(o.buffer[l-2]>=e){o.buffer[l-2]=i;return}}}if(!r||this.pos==i)this.buffer.push(t,e,i,s);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>i;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,s>4&&(s-=4);this.buffer[o]=t,this.buffer[o+1]=e,this.buffer[o+2]=i,this.buffer[o+3]=s}}shift(t,e,i){let s=this.pos;if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(e,s),e<=this.p.parser.maxNode&&this.buffer.push(e,s,i,4);else{let r=t,{parser:o}=this.p;(i>this.pos||e<=o.maxNode)&&(this.pos=i,o.stateFlag(r,1)||(this.reducePos=i)),this.pushState(r,s),this.shiftContext(e,s),e<=o.maxNode&&this.buffer.push(e,s,i,4)}}apply(t,e,i){t&65536?this.reduce(t):this.shift(t,e,i)}useNode(t,e){let i=this.p.reused.length-1;(i<0||this.p.reused[i]!=t)&&(this.p.reused.push(t),i++);let s=this.pos;this.reducePos=this.pos=s+t.length,this.pushState(e,s),this.buffer.push(i,s,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,e=t.buffer.length;for(;e>0&&t.buffer[e-2]>t.reducePos;)e-=4;let i=t.buffer.slice(e),s=t.bufferBase+e;for(;t&&s==t.bufferBase;)t=t.parent;return new ps(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,i,s,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let i=t<=this.p.parser.maxNode;i&&this.storeNode(t,this.pos,e,4),this.storeNode(0,this.pos,e,i?8:4),this.pos=this.reducePos=e,this.score-=190}canShift(t){for(let e=new og(this);;){let i=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(i==0)return!1;if(!(i&65536))return!0;e.reduce(i)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>8||this.stack.length>=120){let s=[];for(let r=0,o;rh&1&&l==o)||s.push(e[r],o)}e=s}let i=[];for(let s=0;s>19,s=t&65535,r=this.stack.length-i*3;if(r<0||e.getGoto(this.stack[r],s,!1)<0)return!1;this.storeNode(0,this.reducePos,this.reducePos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let e=0;ethis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class sl{constructor(t,e){this.tracker=t,this.context=e,this.hash=t.strict?t.hash(e):0}}var nl;(function(n){n[n.Insert=200]="Insert",n[n.Delete=190]="Delete",n[n.Reduce=100]="Reduce",n[n.MaxNext=4]="MaxNext",n[n.MaxInsertStackDepth=300]="MaxInsertStackDepth",n[n.DampenInsertStackDepth=120]="DampenInsertStackDepth",n[n.MinBigReduction=2e3]="MinBigReduction"})(nl||(nl={}));class og{constructor(t){this.start=t,this.state=t.state,this.stack=t.stack,this.base=this.stack.length}reduce(t){let e=t&65535,i=t>>19;i==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(i-1)*3;let s=this.start.p.parser.getGoto(this.stack[this.base-3],e,!0);this.state=s}}class gs{constructor(t,e,i){this.stack=t,this.pos=e,this.index=i,this.buffer=t.buffer,this.index==0&&this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new gs(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;t!=null&&(this.index=this.stack.bufferBase-t.bufferBase,this.stack=t,this.buffer=t.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new gs(this.stack,this.pos,this.index)}}function qi(n,t=Uint16Array){if(typeof n!="string")return n;let e=null;for(let i=0,s=0;i=92&&o--,o>=34&&o--;let h=o-32;if(h>=46&&(h-=46,l=!0),r+=h,l)break;r*=46}e?e[s++]=r:e=new t(r)}return e}class $i{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const rl=new $i;class lg{constructor(t,e){this.input=t,this.ranges=e,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=rl,this.rangeIndex=0,this.pos=this.chunkPos=e[0].from,this.range=e[0],this.end=e[e.length-1].to,this.readNext()}resolveOffset(t,e){let i=this.range,s=this.rangeIndex,r=this.pos+t;for(;ri.to:r>=i.to;){if(s==this.ranges.length-1)return null;let o=this.ranges[++s];r+=o.from-i.to,i=o}return r}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,i,s;if(e>=0&&e=this.chunk2Pos&&il.to&&(this.chunk2=this.chunk2.slice(0,l.to-i)),s=this.chunk2.charCodeAt(0)}}return i>=this.token.lookAhead&&(this.token.lookAhead=i+1),s}acceptToken(t,e=0){let i=e?this.resolveOffset(e,-1):this.pos;if(i==null||i=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,e){if(e?(this.token=e,e.start=t,e.lookAhead=t+1,e.value=e.extended=-1):this.token=rl,this.pos!=t){if(this.pos=t,t==this.end)return this.setDone(),this;for(;t=this.range.to;)this.range=this.ranges[++this.rangeIndex];t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let i="";for(let s of this.ranges){if(s.from>=e)break;s.to>t&&(i+=this.input.read(Math.max(s.from,t),Math.min(s.to,e)))}return i}}class Fe{constructor(t,e){this.data=t,this.id=e}token(t,e){let{parser:i}=e.p;hg(this.data,t,e,this.id,i.data,i.tokenPrecTable)}}Fe.prototype.contextual=Fe.prototype.fallback=Fe.prototype.extend=!1;Fe.prototype.fallback=Fe.prototype.extend=!1;function hg(n,t,e,i,s,r){let o=0,l=1<0){let p=n[d];if(h.allows(p)&&(t.token.value==-1||t.token.value==p||ag(p,t.token.value,s,r))){t.acceptToken(p);break}}let f=t.next,c=0,u=n[o+2];if(t.next<0&&u>c&&n[a+u*3-3]==65535&&n[a+u*3-3]==65535){o=n[a+u*3-1];continue t}for(;c>1,p=a+d+(d<<1),g=n[p],m=n[p+1]||65536;if(f=m)c=d+1;else{o=n[p+2],t.advance();continue t}}break}}function ol(n,t,e){for(let i=t,s;(s=n[i])!=65535;i++)if(s==e)return i-t;return-1}function ag(n,t,e,i){let s=ol(e,i,t);return s<0||ol(e,i,n)t)&&!i.type.isError)return e<0?Math.max(0,Math.min(i.to-1,t-25)):Math.min(n.length,Math.max(i.from+1,t+25));if(e<0?i.prevSibling():i.nextSibling())break;if(!i.parent())return e<0?0:n.length}}class fg{constructor(t,e){this.fragments=t,this.nodeSet=e,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){for(this.safeFrom=t.openStart?hl(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?hl(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=o,null;if(r instanceof q){if(o==t){if(o=Math.max(this.safeFrom,t)&&(this.trees.push(r),this.start.push(o),this.index.push(0))}else this.index[e]++,this.nextStart=o+r.length}}}class cg{constructor(t,e){this.stream=e,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(i=>new $i)}getActions(t){let e=0,i=null,{parser:s}=t.p,{tokenizers:r}=s,o=s.stateSlot(t.state,3),l=t.curContext?t.curContext.hash:0,h=0;for(let a=0;ac.end+25&&(h=Math.max(c.lookAhead,h)),c.value!=0)){let u=e;if(c.extended>-1&&(e=this.addActions(t,c.extended,c.end,e)),e=this.addActions(t,c.value,c.end,e),!f.extend&&(i=c,e>u))break}}for(;this.actions.length>e;)this.actions.pop();return h&&t.setLookAhead(h),!i&&t.pos==this.stream.end&&(i=new $i,i.value=t.p.parser.eofTerm,i.start=i.end=t.pos,e=this.addActions(t,i.value,i.end,e)),this.mainToken=i,this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new $i,{pos:i,p:s}=t;return e.start=i,e.end=Math.min(i+1,s.stream.end),e.value=i==s.stream.end?s.parser.eofTerm:0,e}updateCachedToken(t,e,i){let s=this.stream.clipPos(i.pos);if(e.token(this.stream.reset(s,t),i),t.value>-1){let{parser:r}=i.p;for(let o=0;o=0&&i.p.parser.dialect.allows(l>>1)){l&1?t.extended=l>>1:t.value=l>>1;break}}}else t.value=0,t.end=this.stream.clipPos(s+1)}putAction(t,e,i,s){for(let r=0;rt.bufferLength*4?new fg(i,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos,i=this.stacks=[],s,r;if(this.bigReductionCount>1e3&&t.length==1){let[o]=t;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe)i.push(l);else{if(this.advanceStack(l,i,t))continue;{s||(s=[],r=[]),s.push(l);let h=this.tokens.getMainToken(l);r.push(h.value,h.end)}}break}}if(!i.length){let o=s&&pg(s);if(o)return this.stackToTree(o);if(this.parser.strict)throw Rt&&s&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+e);this.recovering||(this.recovering=5)}if(this.recovering&&s){let o=this.stoppedAt!=null&&s[0].pos>this.stoppedAt?s[0]:this.runRecovery(s,r,i);if(o)return this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(i.length>o)for(i.sort((l,h)=>h.score-l.score);i.length>o;)i.pop();i.some(l=>l.reducePos>e)&&this.recovering--}else if(i.length>1)t:for(let o=0;o500&&a.buffer.length>500)if((l.score-a.score||l.buffer.length-a.buffer.length)>0)i.splice(h--,1);else{i.splice(o--,1);continue t}}}this.minStackPos=i[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&s>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let a=t.curContext&&t.curContext.tracker.strict,f=a?t.curContext.hash:0;for(let c=this.fragments.nodeAt(s);c;){let u=this.parser.nodeSet.types[c.type.id]==c.type?r.getGoto(t.state,c.type.id):-1;if(u>-1&&c.length&&(!a||(c.prop(I.contextHash)||0)==f))return t.useNode(c,u),Rt&&console.log(o+this.stackID(t)+` (via reuse of ${r.getName(c.type.id)})`),!0;if(!(c instanceof q)||c.children.length==0||c.positions[0]>0)break;let d=c.children[0];if(d instanceof q&&c.positions[0]==0)c=d;else break}}let l=r.stateSlot(t.state,4);if(l>0)return t.reduce(l),Rt&&console.log(o+this.stackID(t)+` (via always-reduce ${r.getName(l&65535)})`),!0;if(t.stack.length>=15e3)for(;t.stack.length>9e3&&t.forceReduce(););let h=this.tokens.getActions(t);for(let a=0;as?e.push(p):i.push(p)}return!1}advanceFully(t,e){let i=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>i)return fl(t,e),!0}}runRecovery(t,e,i){let s=null,r=!1;for(let o=0;o ":"";if(l.deadEnd&&(r||(r=!0,l.restart(),Rt&&console.log(f+this.stackID(l)+" (restarted)"),this.advanceFully(l,i))))continue;let c=l.split(),u=f;for(let d=0;c.forceReduce()&&d<10&&(Rt&&console.log(u+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,i));d++)Rt&&(u=this.stackID(c)+" -> ");for(let d of l.recoverByInsert(h))Rt&&console.log(f+this.stackID(d)+" (via recover-insert)"),this.advanceFully(d,i);this.stream.end>l.pos?(a==l.pos&&(a++,h=0),l.recoverByDelete(h,a),Rt&&console.log(f+this.stackID(l)+` (via recover-delete ${this.parser.getName(h)})`),fl(l,i)):(!s||s.scoret.topRules[l][1]),s=[];for(let l=0;l=0)r(f,h,l[a++]);else{let c=l[a+-f];for(let u=-f;u>0;u--)r(l[a++],h,c);a++}}}this.nodeSet=new ks(e.map((l,h)=>xt.define({name:h>=this.minRepeatTerm?void 0:l,id:h,props:s[h],top:i.indexOf(h)>-1,error:h==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(h)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=Rh;let o=qi(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let l=0;ltypeof l=="number"?new Fe(o,l):l),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,i){let s=new ug(this,t,e,i);for(let r of this.wrappers)s=r(s,t,e,i);return s}getGoto(t,e,i=!1){let s=this.goto;if(e>=s[0])return-1;for(let r=s[e+1];;){let o=s[r++],l=o&1,h=s[r++];if(l&&i)return h;for(let a=r+(o>>1);r0}validAction(t,e){if(e==this.stateSlot(t,4))return!0;for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Jt(this.data,i+2);else return!1;if(e==Jt(this.data,i+1))return!0}}nextStates(t){let e=[];for(let i=this.stateSlot(t,1);;i+=3){if(this.data[i]==65535)if(this.data[i+1]==1)i=Jt(this.data,i+2);else break;if(!(this.data[i+2]&1)){let s=this.data[i+1];e.some((r,o)=>o&1&&r==s)||e.push(this.data[i],s)}}return e}configure(t){let e=Object.assign(Object.create(ms.prototype),this);if(t.props&&(e.nodeSet=this.nodeSet.extend(...t.props)),t.top){let i=this.topRules[t.top];if(!i)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=i}return t.tokenizers&&(e.tokenizers=this.tokenizers.map(i=>{let s=t.tokenizers.find(r=>r.from==i);return s?s.to:i})),t.specializers&&(e.specializers=this.specializers.slice(),e.specializerSpecs=this.specializerSpecs.map((i,s)=>{let r=t.specializers.find(l=>l.from==i.external);if(!r)return i;let o=Object.assign(Object.assign({},i),{external:r.to});return e.specializers[s]=cl(o),o})),t.contextTracker&&(e.context=t.contextTracker),t.dialect&&(e.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(e.strict=t.strict),t.wrap&&(e.wrappers=e.wrappers.concat(t.wrap)),t.bufferLength!=null&&(e.bufferLength=t.bufferLength),e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),i=e.map(()=>!1);if(t)for(let r of t.split(" ")){let o=e.indexOf(r);o>=0&&(i[o]=!0)}let s=null;for(let r=0;ri)&&e.p.parser.stateFlag(e.state,2)&&(!t||t.scoren.external(e,i)<<1|t}return n.get}const gg=Vh({String:A.string,Number:A.number,"True False":A.bool,PropertyName:A.propertyName,Null:A.null,",":A.separator,"[ ]":A.squareBracket,"{ }":A.brace}),mg=ms.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[gg],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),yg=hs.define({name:"json",parser:mg.configure({props:[Kh.add({Object:Eo({except:/^\s*\}/}),Array:Eo({except:/^\s*\]/})}),Gh.add({"Object Array":ed})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function bg(){return new Ku(yg)}var Hn={};function dr(n,t){for(var e=0;e1&&n.eat("$");var e=n.next();return/['"({]/.test(e)?(t.tokens[0]=vs(e,e=="("?"quote":e=="{"?"def":"string"),Qe(n,t)):(/\d/.test(e)||n.eatWhile(/\w/),t.tokens.shift(),"def")};function xg(n){return function(t,e){return t.sol()&&t.string==n&&e.tokens.shift(),t.skipToEnd(),"string.special"}}function Qe(n,t){return(t.tokens[0]||wg)(n,t)}const Sg={name:"shell",startState:function(){return{tokens:[]}},token:function(n,t){return Qe(n,t)},languageData:{autocomplete:Fa.concat(Ha,za),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}},vg=n=>D.theme({"&":{borderRadius:"0.25rem",padding:"0.5rem"},".cm-scroller":{fontFamily:'Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace'},".cm-content":{fontSize:"0.875em"},".cm-editor&.cm-focused":{outline:`3px solid ${it.indigo[600]}`},".cm-gutters":{backgroundColor:"transparent",borderRight:"none"}},{dark:n}),Cg=xi.define([{tag:A.punctuation,color:it.slate[800]},{tag:A.string,color:it.slate[800]},{tag:A.propertyName,color:it.indigo[600]},{tag:A.bool,color:it.slate[800]},{tag:A.number,color:it.slate[800]},{tag:A.operator,color:it.pink[400]},{tag:A.comment,color:it.green[400]},{tag:A.variableName,color:it.pink[600]}],{themeType:"light"}),Ag=xi.define([{tag:A.punctuation,color:it.slate[200]},{tag:A.string,color:it.slate[200]},{tag:A.propertyName,color:it.indigo[400]},{tag:A.bool,color:it.slate[200]},{tag:A.number,color:it.slate[200]},{tag:A.operator,color:it.pink[500]},{tag:A.comment,color:it.green[600]},{tag:A.variableName,color:it.pink[500]}],{themeType:"dark"});function ul(n){let t,e;return t=new of({props:{copyIconTitle:n[4],copySuccessIconTitle:n[5],class:"absolute right-3 top-1 text-secondary","data-theme":"dark",copied:n[7]}}),t.$on("click",n[9]),{c(){tf(t.$$.fragment)},l(i){ef(t.$$.fragment,i)},m(i,s){sf(t,i,s),e=!0},p(i,s){const r={};s&16&&(r.copyIconTitle=i[4]),s&32&&(r.copySuccessIconTitle=i[5]),s&128&&(r.copied=i[7]),t.$set(r)},i(i){e||(Ki(t.$$.fragment,i),e=!0)},o(i){Qs(t.$$.fragment,i),e=!1},d(i){nf(t,i)}}}function Og(n){let t,e,i,s,r,o,l=[{class:i=vr("surface-primary rounded border-2 border-subtle",n[0])},{"data-testid":s=n[10].testId},n[11]],h={};for(let f=0;f{a=null}),Za())},i(f){o||(Ki(a),o=!0)},o(f){Qs(a),o=!1},d(f){f&&Cs(t),n[18](null),a&&a.d()}}}function Mg(n,t,e){let i;const s=["content","class","editable","inline","language","copyable","copyIconTitle","copySuccessIconTitle","minHeight","maxHeight","label"];let r=kr(t,s),o,l;xr(n,hf,M=>e(17,o=M));const h=Qa();let{content:a}=t,{class:f=null}=t,{editable:c=!1}=t,{inline:u=!1}=t,{language:d="json"}=t,{copyable:p=!0}=t,{copyIconTitle:g=""}=t,{copySuccessIconTitle:m=""}=t,{minHeight:y=void 0}=t,{maxHeight:b=void 0}=t,{label:S=""}=t;const{copy:k,copied:v}=lf();xr(n,v,M=>e(7,l=M));const P=M=>{k(M,a)};let O,B;const H=M=>{if(!M)return;let _;try{_=af(M)}catch{_=M}return ff(_,void 0,u?0:2)},N=({value:M,language:_})=>_==="json"?H(M):M,R=M=>new D({parent:O,state:E(i,M),dispatch(_){B.update([_]),_.docChanged&&h("change",B.state.doc.toString())}}),E=(M,_)=>{const mt=[Xn.of([...rg,...Bp]),vg(_),cd(_?Ag:Cg,{fallback:!0}),ir.of(" "),rp(),gp(),Zu(),kd(),L.readOnly.of(!c),D.editable.of(c),D.contentAttributes.of({"aria-label":S})];return d==="json"&&mt.push(bg()),d==="shell"&&mt.push(or.define(Sg)),u||mt.push(D.lineWrapping),!u&&!c&&mt.push(ad()),(y||b)&&(mt.push(D.theme({"&":{...y?{"min-height":`${y}px`}:{},...b?{"max-height":`${b}px`}:{}}})),mt.push(D.contentAttributes.of({tabindex:"0"}))),L.create({doc:M,extensions:mt})};_a(()=>(U(o),()=>B==null?void 0:B.destroy()));const U=M=>{B&&B.destroy(),B=R(M)},G=(M="",_=!0)=>{const mt=_?N({value:M,language:d}):M;B.dispatch({changes:{from:0,to:B.state.doc.length,insert:mt}})},ot=()=>{B&&(!c||B.state.doc.toString()!==a)&&G(a)};function _t(M){Ya[M?"unshift":"push"](()=>{O=M,e(6,O)})}return n.$$set=M=>{e(10,t=Gs(Gs({},t),Sr(M))),e(11,r=kr(t,s)),"content"in M&&e(12,a=M.content),"class"in M&&e(0,f=M.class),"editable"in M&&e(1,c=M.editable),"inline"in M&&e(2,u=M.inline),"language"in M&&e(13,d=M.language),"copyable"in M&&e(3,p=M.copyable),"copyIconTitle"in M&&e(4,g=M.copyIconTitle),"copySuccessIconTitle"in M&&e(5,m=M.copySuccessIconTitle),"minHeight"in M&&e(14,y=M.minHeight),"maxHeight"in M&&e(15,b=M.maxHeight),"label"in M&&e(16,S=M.label)},n.$$.update=()=>{n.$$.dirty&12288&&(i=N({value:a,language:d})),n.$$.dirty&131072&&U(o),n.$$.dirty&12288&&ot()},t=Sr(t),[f,c,u,p,g,m,O,l,v,P,t,r,a,d,y,b,S,o,_t]}class qg extends Ja{constructor(t){super(),Xa(this,t,Mg,Og,ja,{content:12,class:0,editable:1,inline:2,language:13,copyable:3,copyIconTitle:4,copySuccessIconTitle:5,minHeight:14,maxHeight:15,label:16})}}export{qg as C}; diff --git a/ui/assets/local/_app/immutable/chunks/combobox.Iz37dSfH.js b/ui/assets/local/_app/immutable/chunks/combobox.BZAKUnsN.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/combobox.Iz37dSfH.js rename to ui/assets/local/_app/immutable/chunks/combobox.BZAKUnsN.js index fcc68f308..1beb61f3c 100644 --- a/ui/assets/local/_app/immutable/chunks/combobox.Iz37dSfH.js +++ b/ui/assets/local/_app/immutable/chunks/combobox.BZAKUnsN.js @@ -1 +1 @@ -import{s as Oe,r as el,t as ie,l as ne,i as C,q as re,f as k,a as he,u as ke,g as pe,e as Le,B as pl,x as B,D as ve,K as Ll,c as Sl,z as Ie,A as De,N as ll,b as F,h as le,d as G,j as te,k as oe,E as Me,H as M,m as be,n as X,p as me,F as _e,O as Cl,G as Al,w as Ae,v as Il,y as tl}from"./scheduler.C46pS-76.js";import{S as il,i as nl,c as q,a as T,m as N,t as b,b as g,d as V,g as H,e as j,f as Ol}from"./index.dOVbn71B.js";import{e as de}from"./each.C6O0oV7R.js";import{g as El}from"./spread.CgU5AtxT.js";import{w as zl}from"./entry.DLEzeuD9.js";import{C as ql,M as Tl}from"./checkbox.CZ5w22eC.js";import{d as Nl,M as Vl,a as Kl}from"./menu.FCESMtRU.js";import{L as vl}from"./label.BlTcUXFh.js";import{B as Dl}from"./badge.jG5hkqHT.js";import{C as Ml}from"./chip.jHqj-PnK.js";import{I as Bl}from"./icon.CfkHLDdJ.js";import{T as Rl}from"./tooltip.D2lOlqUw.js";import{t as Be}from"./tw-merge.Ds6tgvmq.js";const Hl=n=>({}),Re=n=>({slot:"leading"}),jl=n=>({}),He=n=>({slot:"trailing"});function Pl(n){let l;return{c(){l=ie(n[3])},l(i){l=ne(i,n[3])},m(i,e){C(i,l,e)},p(i,e){e&8&&re(l,i[3])},d(i){i&&k(l)}}}function je(n){let l,i;return l=new ql({props:{checked:n[0]}}),l.$on("change",n[6]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t&1&&(s.checked=e[0]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Fl(n){let l,i,e=n[2]&&je(n);return{c(){e&&e.c(),l=B()},l(t){e&&e.l(t),l=B()},m(t,s){e&&e.m(t,s),C(t,l,s),i=!0},p(t,s){t[2]?e?(e.p(t,s),s&4&&b(e,1)):(e=je(t),e.c(),b(e,1),e.m(l.parentNode,l)):e&&(H(),g(e,1,1,()=>{e=null}),j())},i(t){i||(b(e),i=!0)},o(t){g(e),i=!1},d(t){t&&k(l),e&&e.d(t)}}}function Gl(n){let l;const i=n[5].leading,e=he(i,n,n[8],Re),t=e||Fl(n);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,o){t&&t.m(s,o),l=!0},p(s,o){e?e.p&&(!l||o&256)&&ke(e,i,s,s[8],l?Le(i,s[8],o,Hl):pe(s[8]),Re):t&&t.p&&(!l||o&5)&&t.p(s,l?o:-1)},i(s){l||(b(t,s),l=!0)},o(s){g(t,s),l=!1},d(s){t&&t.d(s)}}}function Ul(n){let l;const i=n[5].trailing,e=he(i,n,n[8],He);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s&256)&&ke(e,i,t,t[8],l?Le(i,t[8],s,jl):pe(t[8]),He)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function Jl(n){let l,i;return l=new Nl({props:{role:"option",class:"break-all","aria-selected":n[0],"aria-disabled":n[1],selected:!n[2]&&n[0],disabled:n[1],$$slots:{trailing:[Ul],leading:[Gl],default:[Pl]},$$scope:{ctx:n}}}),l.$on("click",n[7]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,[t]){const s={};t&1&&(s["aria-selected"]=e[0]),t&2&&(s["aria-disabled"]=e[1]),t&5&&(s.selected=!e[2]&&e[0]),t&2&&(s.disabled=e[1]),t&269&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Ql(n,l,i){let{$$slots:e={},$$scope:t}=l;const s=el();let{selected:o=!1}=l,{disabled:r=!1}=l,{multiselect:f=!1}=l,{label:u}=l;const _=()=>s("click");function v(A){pl.call(this,n,A)}return n.$$set=A=>{"selected"in A&&i(0,o=A.selected),"disabled"in A&&i(1,r=A.disabled),"multiselect"in A&&i(2,f=A.multiselect),"label"in A&&i(3,u=A.label),"$$scope"in A&&i(8,t=A.$$scope)},[o,r,f,u,s,e,_,v,t]}class ge extends il{constructor(l){super(),nl(this,l,Ql,Jl,Oe,{selected:0,disabled:1,multiselect:2,label:3})}}function Pe(n,l,i){const e=n.slice();return e[62]=l[i],e}const Wl=n=>({}),Fe=n=>({}),Xl=n=>({}),Ge=n=>({});function Ue(n,l,i){const e=n.slice();return e[65]=l[i],e}function Je(n){let l,i;return l=new Bl({props:{width:20,height:20,class:"ml-2",name:n[12]}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&4096&&(s.name=e[12]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Qe(n){let l,i,e,t;const s=[Zl,Yl],o=[];function r(f,u){return f[15]?0:1}return l=r(n),i=o[l]=s[l](n),{c(){i.c(),e=B()},l(f){i.l(f),e=B()},m(f,u){o[l].m(f,u),C(f,e,u),t=!0},p(f,u){let _=l;l=r(f),l===_?o[l].p(f,u):(H(),g(o[_],1,1,()=>{o[_]=null}),j(),i=o[l],i?i.p(f,u):(i=o[l]=s[l](f),i.c()),b(i,1),i.m(e.parentNode,e))},i(f){t||(b(i),t=!0)},o(f){g(i),t=!1},d(f){f&&k(e),o[l].d(f)}}}function Yl(n){let l,i;return l=new Dl({props:{$$slots:{default:[yl]},$$scope:{ctx:n}}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&2097153|t[1]&4194304&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Zl(n){let l,i,e,t=de(n[0].slice(0,n[16])),s=[];for(let f=0;fg(s[f],1,1,()=>{s[f]=null});let r=n[0].length>n[16]&&Xe(n);return{c(){for(let f=0;ff[16]?r?r.p(f,u):(r=Xe(f),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i(f){if(!e){for(let u=0;u{o[_]=null}),j(),e=o[i],e?e.p(f,u):(e=o[i]=s[i](f),e.c()),b(e,1),e.m(l,null))},i(f){t||(b(e),t=!0)},o(f){g(e),t=!1},d(f){f&&k(l),o[i].d()}}}function $l(n){let l;const i=n[48].action,e=he(i,n,n[53],Fe);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s[1]&4194304)&&ke(e,i,t,t[53],l?Le(i,t[53],s,Wl):pe(t[53]),Fe)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function xl(n){let l,i;return l=new Rl({props:{text:n[20],right:!0,$$slots:{default:[et]},$$scope:{ctx:n}}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&1048576&&(s.text=e[20]),t[1]&4194304&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function et(n){let l;const i=n[48].action,e=he(i,n,n[53],Ge);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s[1]&4194304)&&ke(e,i,t,t[53],l?Le(i,t[53],s,Xl):pe(t[53]),Ge)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function Ze(n){let l,i,e,t,s,o;return l=new ge({props:{disabled:n[0].length===n[8].length,label:n[17]}}),l.$on("click",n[34]),e=new ge({props:{disabled:n[0].length===0,label:n[18]}}),e.$on("click",n[35]),s=new Tl({}),{c(){q(l.$$.fragment),i=F(),q(e.$$.fragment),t=F(),q(s.$$.fragment)},l(r){T(l.$$.fragment,r),i=G(r),T(e.$$.fragment,r),t=G(r),T(s.$$.fragment,r)},m(r,f){N(l,r,f),C(r,i,f),N(e,r,f),C(r,t,f),N(s,r,f),o=!0},p(r,f){const u={};f[0]&257&&(u.disabled=r[0].length===r[8].length),f[0]&131072&&(u.label=r[17]),l.$set(u);const _={};f[0]&1&&(_.disabled=r[0].length===0),f[0]&262144&&(_.label=r[18]),e.$set(_)},i(r){o||(b(l.$$.fragment,r),b(e.$$.fragment,r),b(s.$$.fragment,r),o=!0)},o(r){g(l.$$.fragment,r),g(e.$$.fragment,r),g(s.$$.fragment,r),o=!1},d(r){r&&(k(i),k(t)),V(l,r),V(e,r),V(s,r)}}}function ye(n){let l,i;return l=new ge({props:{disabled:!0,label:n[5]}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&32&&(s.label=e[5]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function we(n){let l,i;function e(){return n[51](n[62])}return l=new ge({props:{multiselect:n[4],selected:n[39](n[62]),label:n[31](n[62])}}),l.$on("click",e),{c(){q(l.$$.fragment)},l(t){T(l.$$.fragment,t)},m(t,s){N(l,t,s),i=!0},p(t,s){n=t;const o={};s[0]&16&&(o.multiselect=n[4]),s[0]&33554432&&(o.selected=n[39](n[62])),s[0]&33554432&&(o.label=n[31](n[62])),l.$set(o)},i(t){i||(b(l.$$.fragment,t),i=!0)},o(t){g(l.$$.fragment,t),i=!1},d(t){V(l,t)}}}function $e(n){let l,i,e=de(n[25]),t=[];for(let r=0;rg(t[r],1,1,()=>{t[r]=null});let o=null;return e.length||(o=ye(n)),{c(){for(let r=0;r{o=null}),j()):(o=ye(r),o.c(),b(o,1),o.m(l.parentNode,l))}},i(r){if(!i){for(let f=0;f{o=null}),j()),u[0]&1&&Oe(e,e=f[0])?(H(),g(r,1,1,Il),j(),r=$e(f),r.c(),b(r,1),r.m(t.parentNode,t)):r.p(f,u)},i(f){s||(b(o),b(r),s=!0)},o(f){g(o),g(r),s=!1},d(f){f&&(k(i),k(t)),o&&o.d(f),r.d(f)}}}function xe(n){let l,i;return{c(){l=le("span"),i=ie(n[13]),this.h()},l(e){l=te(e,"SPAN",{class:!0});var t=oe(l);i=ne(t,n[13]),t.forEach(k),this.h()},h(){be(l,"class","error svelte-1uhk191")},m(e,t){C(e,l,t),X(l,i)},p(e,t){t[0]&8192&&re(i,e[13])},d(e){e&&k(l)}}}function tt(n){let l,i,e,t,s,o=n[4]&&n[30](n[0])&&n[0].length>0,r,f,u,_,v,A,Y,E,d,Z,U,S,R,se;l=new vl({props:{class:"pb-1",hidden:n[7],required:n[11],label:n[3],for:n[2]}});let p=n[12]&&Je(n),L=o&&Qe(n),$=[{id:n[2]},{placeholder:n[9]},{required:n[11]},{readOnly:n[10]},{disabled:n[6]},{type:"text"},{value:n[22]},{class:u=Be("combobox-input",n[1])},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},{"data-1p-ignore":"true"},{"aria-controls":_=n[2]+"-listbox"},{"aria-expanded":n[26]},{"aria-required":n[11]},{"aria-autocomplete":"list"},{"data-testid":v=n[40]["data-testid"]??n[2]},n[41]],I={};for(let c=0;c<$.length;c+=1)I=Ie(I,$[c]);let h=n[42].action&&Ye(n);function y(c){n[52](c)}let J={keepOpen:n[4],id:n[2]+"-listbox",role:"listbox",class:"w-full",$$slots:{default:[lt]},$$scope:{ctx:n}};n[24]!==void 0&&(J.menuElement=n[24]),E=new Kl({props:J}),ll.push(()=>Ol(E,"menuElement",y));let O=n[13]&&!n[14]&&xe(n);return{c(){q(l.$$.fragment),i=F(),e=le("div"),p&&p.c(),t=F(),s=le("div"),L&&L.c(),r=F(),f=le("input"),A=F(),h&&h.c(),Y=F(),q(E.$$.fragment),Z=F(),O&&O.c(),U=B(),this.h()},l(c){T(l.$$.fragment,c),i=G(c),e=te(c,"DIV",{class:!0});var m=oe(e);p&&p.l(m),t=G(m),s=te(m,"DIV",{class:!0});var K=oe(s);L&&L.l(K),r=G(K),f=te(K,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"data-1p-ignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),K.forEach(k),A=G(m),h&&h.l(m),m.forEach(k),Y=G(c),T(E.$$.fragment,c),Z=G(c),O&&O.l(c),U=B(),this.h()},h(){Me(f,I),M(f,"disabled",n[6]),M(f,"svelte-1uhk191",!0),be(s,"class","input-wrapper svelte-1uhk191"),M(s,"gap-1",n[4]),M(s,"py-1",n[4]&&n[15]),be(e,"class","combobox-wrapper svelte-1uhk191"),M(e,"disabled",n[6]),M(e,"invalid",!n[14])},m(c,m){N(l,c,m),C(c,i,m),C(c,e,m),p&&p.m(e,null),X(e,t),X(e,s),L&&L.m(s,null),X(s,r),X(s,f),"value"in I&&(f.value=I.value),f.autofocus&&f.focus(),n[50](f),X(e,A),h&&h.m(e,null),C(c,Y,m),N(E,c,m),C(c,Z,m),O&&O.m(c,m),C(c,U,m),S=!0,R||(se=[me(f,"focus",_e(n[28])),me(f,"input",_e(n[37])),me(f,"keydown",_e(n[36])),me(f,"click",_e(n[38]))],R=!0)},p(c,m){const K={};m[0]&128&&(K.hidden=c[7]),m[0]&2048&&(K.required=c[11]),m[0]&8&&(K.label=c[3]),m[0]&4&&(K.for=c[2]),l.$set(K),c[12]?p?(p.p(c,m),m[0]&4096&&b(p,1)):(p=Je(c),p.c(),b(p,1),p.m(e,t)):p&&(H(),g(p,1,1,()=>{p=null}),j()),m[0]&17&&(o=c[4]&&c[30](c[0])&&c[0].length>0),o?L?(L.p(c,m),m[0]&17&&b(L,1)):(L=Qe(c),L.c(),b(L,1),L.m(s,r)):L&&(H(),g(L,1,1,()=>{L=null}),j()),Me(f,I=El($,[(!S||m[0]&4)&&{id:c[2]},(!S||m[0]&512)&&{placeholder:c[9]},(!S||m[0]&2048)&&{required:c[11]},(!S||m[0]&1024)&&{readOnly:c[10]},(!S||m[0]&64)&&{disabled:c[6]},{type:"text"},(!S||m[0]&4194304&&f.value!==c[22])&&{value:c[22]},(!S||m[0]&2&&u!==(u=Be("combobox-input",c[1])))&&{class:u},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},{"data-1p-ignore":"true"},(!S||m[0]&4&&_!==(_=c[2]+"-listbox"))&&{"aria-controls":_},(!S||m[0]&67108864)&&{"aria-expanded":c[26]},(!S||m[0]&2048)&&{"aria-required":c[11]},{"aria-autocomplete":"list"},(!S||m[0]&4|m[1]&512&&v!==(v=c[40]["data-testid"]??c[2]))&&{"data-testid":v},m[1]&1024&&c[41]])),"value"in I&&(f.value=I.value),M(f,"disabled",c[6]),M(f,"svelte-1uhk191",!0),(!S||m[0]&16)&&M(s,"gap-1",c[4]),(!S||m[0]&32784)&&M(s,"py-1",c[4]&&c[15]),c[42].action?h?(h.p(c,m),m[1]&2048&&b(h,1)):(h=Ye(c),h.c(),b(h,1),h.m(e,null)):h&&(H(),g(h,1,1,()=>{h=null}),j()),(!S||m[0]&64)&&M(e,"disabled",c[6]),(!S||m[0]&16384)&&M(e,"invalid",!c[14]);const Q={};m[0]&16&&(Q.keepOpen=c[4]),m[0]&4&&(Q.id=c[2]+"-listbox"),m[0]&33947953|m[1]&4194304&&(Q.$$scope={dirty:m,ctx:c}),!d&&m[0]&16777216&&(d=!0,Q.menuElement=c[24],Cl(()=>d=!1)),E.$set(Q),c[13]&&!c[14]?O?O.p(c,m):(O=xe(c),O.c(),O.m(U.parentNode,U)):O&&(O.d(1),O=null)},i(c){S||(b(l.$$.fragment,c),b(p),b(L),b(h),b(E.$$.fragment,c),S=!0)},o(c){g(l.$$.fragment,c),g(p),g(L),g(h),g(E.$$.fragment,c),S=!1},d(c){c&&(k(i),k(e),k(Y),k(Z),k(U)),V(l,c),p&&p.d(),L&&L.d(),n[50](null),h&&h.d(),V(E,c),O&&O.d(c),R=!1,Al(se)}}}function it(n){let l,i;return l=new Vl({props:{open:n[27],$$slots:{default:[tt]},$$scope:{ctx:n}}}),l.$on("close",n[29]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&134217727|t[1]&4197888&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function nt(n,l,i){let e;const t=["class","id","label","multiselect","value","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","error","valid","displayChips","chipLimit","selectAllLabel","deselectAllLabel","removeChipLabel","actionTooltip","numberOfItemsSelectedLabel"];let s=ve(l,t),o,{$$slots:r={},$$scope:f}=l;const u=Ll(r),_=el();let{class:v=""}=l,{id:A}=l,{label:Y}=l,{multiselect:E=!1}=l,{value:d=E?[]:void 0}=l,{noResultsText:Z}=l,{disabled:U=!1}=l,{labelHidden:S=!1}=l,{options:R}=l,{placeholder:se=null}=l,{readonly:p=!1}=l,{required:L=!1}=l,{leadingIcon:$=null}=l,{optionValueKey:I=null}=l,{optionLabelKey:h=I}=l,{minSize:y=0}=l,{maxSize:J=120}=l,{error:O=""}=l,{valid:c=!0}=l,{displayChips:m=!0}=l,{chipLimit:K=5}=l,{selectAllLabel:Q="Select All"}=l,{deselectAllLabel:Ee="Deselect All"}=l,{removeChipLabel:ze="Remove Option"}=l,{actionTooltip:qe=""}=l,{numberOfItemsSelectedLabel:Te=a=>`${a} option${a>1?"s":""} selected`}=l,P="",w,ue,D;const fe=zl(!1);Sl(n,fe,a=>i(26,o=a));const ce=()=>{Ae(fe,o=!0,o),D.focus(),D.select()},sl=()=>{o&&(Ae(fe,o=!1,o),_("close",{selectedOption:w}),Se())},fl=()=>{_("close",{selectedOption:w}),Se()},Se=()=>{i(22,P=Ce(w)),i(25,e=R)},W=a=>Array.isArray(a),x=a=>typeof a=="string",ee=a=>typeof a=="object",ae=a=>a===null||typeof a!="object"?!1:I!==null&&h!==null&&I in a&&h in a,Ce=a=>{if(!a)return W(d)?"":d??"";if(x(a))return a;if(ee(a)&&ae(a))return String(a[h])},al=a=>{if(x(a)&&(W(d)?d.includes(a)?i(0,d=d.filter(z=>z!==a)):i(0,d=[...d,a]):i(0,d=a)),ee(a)&&ae(a)){const z=String(a[I]);W(d)?d.includes(z)?i(0,d=d.filter(kl=>kl!==z)):i(0,d=[...d,z]):i(0,d=z)}},Ne=a=>{al(a),_("change",{value:a}),E||Se()},Ve=a=>{W(d)&&i(0,d=d.filter(z=>z!==a))},ol=()=>{!E||!W(d)||i(0,d=e.map(a=>{if(ee(a)&&ae(a))return String(a[I]);if(x(a))return a}))},rl=()=>{i(0,d=[])},Ke=()=>{const a=ue.querySelector('li[role="option"]:not([aria-disabled="true"])');a&&requestAnimationFrame(()=>a.focus())},ul=a=>{switch(a.key){case"Escape":sl();break;case"ArrowDown":ce(),Ke();break;case"Enter":ce(),Ke();break}},cl=a=>{i(22,P=a.currentTarget.value),_("filter",P),o||Ae(fe,o=!0,o),i(25,e=R.filter(z=>{if(x(z))return z.toLowerCase().includes(a.currentTarget.value.toLowerCase());if(ee(z)&&ae(z))return String(z[h]).toLowerCase().includes(a.currentTarget.value.toLowerCase())}))},ml=()=>{o||ce()},_l=a=>{if(ee(a)){const z=String(a[I]);return W(d)?d.includes(z):d===z}else if(x(a))return W(d)?d.includes(a):d===a;return!1},bl=a=>Ve(a);function dl(a){ll[a?"unshift":"push"](()=>{D=a,i(23,D),i(22,P),i(45,y),i(46,J),i(4,E),i(8,R),i(0,d),i(43,I),i(47,w)})}const gl=a=>Ne(a);function hl(a){ue=a,i(24,ue)}return n.$$set=a=>{i(40,l=Ie(Ie({},l),De(a))),i(41,s=ve(l,t)),"class"in a&&i(1,v=a.class),"id"in a&&i(2,A=a.id),"label"in a&&i(3,Y=a.label),"multiselect"in a&&i(4,E=a.multiselect),"value"in a&&i(0,d=a.value),"noResultsText"in a&&i(5,Z=a.noResultsText),"disabled"in a&&i(6,U=a.disabled),"labelHidden"in a&&i(7,S=a.labelHidden),"options"in a&&i(8,R=a.options),"placeholder"in a&&i(9,se=a.placeholder),"readonly"in a&&i(10,p=a.readonly),"required"in a&&i(11,L=a.required),"leadingIcon"in a&&i(12,$=a.leadingIcon),"optionValueKey"in a&&i(43,I=a.optionValueKey),"optionLabelKey"in a&&i(44,h=a.optionLabelKey),"minSize"in a&&i(45,y=a.minSize),"maxSize"in a&&i(46,J=a.maxSize),"error"in a&&i(13,O=a.error),"valid"in a&&i(14,c=a.valid),"displayChips"in a&&i(15,m=a.displayChips),"chipLimit"in a&&i(16,K=a.chipLimit),"selectAllLabel"in a&&i(17,Q=a.selectAllLabel),"deselectAllLabel"in a&&i(18,Ee=a.deselectAllLabel),"removeChipLabel"in a&&i(19,ze=a.removeChipLabel),"actionTooltip"in a&&i(20,qe=a.actionTooltip),"numberOfItemsSelectedLabel"in a&&i(21,Te=a.numberOfItemsSelectedLabel),"$$scope"in a&&i(53,f=a.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&256&&i(25,e=R),n.$$.dirty[0]&273|n.$$.dirty[1]&69632&&(E||(i(47,w=R.find(a=>{if(x(a))return a===d;if(ee(a)&&ae(a))return a[I]===d})),i(22,P=Ce(w)))),n.$$.dirty[0]&12582912|n.$$.dirty[1]&49152&&D&&P&&(P.lengthJ?i(23,D.size=J,D):i(23,D.size=P.length,D))},l=De(l),[d,v,A,Y,E,Z,U,S,R,se,p,L,$,O,c,m,K,Q,Ee,ze,qe,Te,P,D,ue,e,o,fe,ce,fl,W,Ce,Ne,Ve,ol,rl,ul,cl,ml,_l,l,s,u,I,h,y,J,w,r,bl,dl,gl,hl,f]}class kt extends il{constructor(l){super(),nl(this,l,nt,it,Oe,{class:1,id:2,label:3,multiselect:4,value:0,noResultsText:5,disabled:6,labelHidden:7,options:8,placeholder:9,readonly:10,required:11,leadingIcon:12,optionValueKey:43,optionLabelKey:44,minSize:45,maxSize:46,error:13,valid:14,displayChips:15,chipLimit:16,selectAllLabel:17,deselectAllLabel:18,removeChipLabel:19,actionTooltip:20,numberOfItemsSelectedLabel:21},null,[-1,-1,-1])}}export{kt as C}; +import{s as Oe,r as el,t as ie,l as ne,i as C,q as re,f as k,a as he,u as ke,g as pe,e as Le,B as pl,x as B,D as ve,K as Ll,c as Sl,z as Ie,A as De,N as ll,b as F,h as le,d as G,j as te,k as oe,E as Me,H as M,m as be,n as X,p as me,F as _e,O as Cl,G as Al,w as Ae,v as Il,y as tl}from"./scheduler.C46pS-76.js";import{S as il,i as nl,c as q,a as T,m as N,t as b,b as g,d as V,g as H,e as j,f as Ol}from"./index.dOVbn71B.js";import{e as de}from"./each.C6O0oV7R.js";import{g as El}from"./spread.CgU5AtxT.js";import{w as zl}from"./entry.kylZibtV.js";import{C as ql,M as Tl}from"./checkbox.CZ5w22eC.js";import{d as Nl,M as Vl,a as Kl}from"./menu.B3Snjx4c.js";import{L as vl}from"./label.BlTcUXFh.js";import{B as Dl}from"./badge.jG5hkqHT.js";import{C as Ml}from"./chip.jHqj-PnK.js";import{I as Bl}from"./icon.CfkHLDdJ.js";import{T as Rl}from"./tooltip.D2lOlqUw.js";import{t as Be}from"./tw-merge.Ds6tgvmq.js";const Hl=n=>({}),Re=n=>({slot:"leading"}),jl=n=>({}),He=n=>({slot:"trailing"});function Pl(n){let l;return{c(){l=ie(n[3])},l(i){l=ne(i,n[3])},m(i,e){C(i,l,e)},p(i,e){e&8&&re(l,i[3])},d(i){i&&k(l)}}}function je(n){let l,i;return l=new ql({props:{checked:n[0]}}),l.$on("change",n[6]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t&1&&(s.checked=e[0]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Fl(n){let l,i,e=n[2]&&je(n);return{c(){e&&e.c(),l=B()},l(t){e&&e.l(t),l=B()},m(t,s){e&&e.m(t,s),C(t,l,s),i=!0},p(t,s){t[2]?e?(e.p(t,s),s&4&&b(e,1)):(e=je(t),e.c(),b(e,1),e.m(l.parentNode,l)):e&&(H(),g(e,1,1,()=>{e=null}),j())},i(t){i||(b(e),i=!0)},o(t){g(e),i=!1},d(t){t&&k(l),e&&e.d(t)}}}function Gl(n){let l;const i=n[5].leading,e=he(i,n,n[8],Re),t=e||Fl(n);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,o){t&&t.m(s,o),l=!0},p(s,o){e?e.p&&(!l||o&256)&&ke(e,i,s,s[8],l?Le(i,s[8],o,Hl):pe(s[8]),Re):t&&t.p&&(!l||o&5)&&t.p(s,l?o:-1)},i(s){l||(b(t,s),l=!0)},o(s){g(t,s),l=!1},d(s){t&&t.d(s)}}}function Ul(n){let l;const i=n[5].trailing,e=he(i,n,n[8],He);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s&256)&&ke(e,i,t,t[8],l?Le(i,t[8],s,jl):pe(t[8]),He)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function Jl(n){let l,i;return l=new Nl({props:{role:"option",class:"break-all","aria-selected":n[0],"aria-disabled":n[1],selected:!n[2]&&n[0],disabled:n[1],$$slots:{trailing:[Ul],leading:[Gl],default:[Pl]},$$scope:{ctx:n}}}),l.$on("click",n[7]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,[t]){const s={};t&1&&(s["aria-selected"]=e[0]),t&2&&(s["aria-disabled"]=e[1]),t&5&&(s.selected=!e[2]&&e[0]),t&2&&(s.disabled=e[1]),t&269&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Ql(n,l,i){let{$$slots:e={},$$scope:t}=l;const s=el();let{selected:o=!1}=l,{disabled:r=!1}=l,{multiselect:f=!1}=l,{label:u}=l;const _=()=>s("click");function v(A){pl.call(this,n,A)}return n.$$set=A=>{"selected"in A&&i(0,o=A.selected),"disabled"in A&&i(1,r=A.disabled),"multiselect"in A&&i(2,f=A.multiselect),"label"in A&&i(3,u=A.label),"$$scope"in A&&i(8,t=A.$$scope)},[o,r,f,u,s,e,_,v,t]}class ge extends il{constructor(l){super(),nl(this,l,Ql,Jl,Oe,{selected:0,disabled:1,multiselect:2,label:3})}}function Pe(n,l,i){const e=n.slice();return e[62]=l[i],e}const Wl=n=>({}),Fe=n=>({}),Xl=n=>({}),Ge=n=>({});function Ue(n,l,i){const e=n.slice();return e[65]=l[i],e}function Je(n){let l,i;return l=new Bl({props:{width:20,height:20,class:"ml-2",name:n[12]}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&4096&&(s.name=e[12]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Qe(n){let l,i,e,t;const s=[Zl,Yl],o=[];function r(f,u){return f[15]?0:1}return l=r(n),i=o[l]=s[l](n),{c(){i.c(),e=B()},l(f){i.l(f),e=B()},m(f,u){o[l].m(f,u),C(f,e,u),t=!0},p(f,u){let _=l;l=r(f),l===_?o[l].p(f,u):(H(),g(o[_],1,1,()=>{o[_]=null}),j(),i=o[l],i?i.p(f,u):(i=o[l]=s[l](f),i.c()),b(i,1),i.m(e.parentNode,e))},i(f){t||(b(i),t=!0)},o(f){g(i),t=!1},d(f){f&&k(e),o[l].d(f)}}}function Yl(n){let l,i;return l=new Dl({props:{$$slots:{default:[yl]},$$scope:{ctx:n}}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&2097153|t[1]&4194304&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function Zl(n){let l,i,e,t=de(n[0].slice(0,n[16])),s=[];for(let f=0;fg(s[f],1,1,()=>{s[f]=null});let r=n[0].length>n[16]&&Xe(n);return{c(){for(let f=0;ff[16]?r?r.p(f,u):(r=Xe(f),r.c(),r.m(i.parentNode,i)):r&&(r.d(1),r=null)},i(f){if(!e){for(let u=0;u{o[_]=null}),j(),e=o[i],e?e.p(f,u):(e=o[i]=s[i](f),e.c()),b(e,1),e.m(l,null))},i(f){t||(b(e),t=!0)},o(f){g(e),t=!1},d(f){f&&k(l),o[i].d()}}}function $l(n){let l;const i=n[48].action,e=he(i,n,n[53],Fe);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s[1]&4194304)&&ke(e,i,t,t[53],l?Le(i,t[53],s,Wl):pe(t[53]),Fe)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function xl(n){let l,i;return l=new Rl({props:{text:n[20],right:!0,$$slots:{default:[et]},$$scope:{ctx:n}}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&1048576&&(s.text=e[20]),t[1]&4194304&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function et(n){let l;const i=n[48].action,e=he(i,n,n[53],Ge);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,s){e&&e.m(t,s),l=!0},p(t,s){e&&e.p&&(!l||s[1]&4194304)&&ke(e,i,t,t[53],l?Le(i,t[53],s,Xl):pe(t[53]),Ge)},i(t){l||(b(e,t),l=!0)},o(t){g(e,t),l=!1},d(t){e&&e.d(t)}}}function Ze(n){let l,i,e,t,s,o;return l=new ge({props:{disabled:n[0].length===n[8].length,label:n[17]}}),l.$on("click",n[34]),e=new ge({props:{disabled:n[0].length===0,label:n[18]}}),e.$on("click",n[35]),s=new Tl({}),{c(){q(l.$$.fragment),i=F(),q(e.$$.fragment),t=F(),q(s.$$.fragment)},l(r){T(l.$$.fragment,r),i=G(r),T(e.$$.fragment,r),t=G(r),T(s.$$.fragment,r)},m(r,f){N(l,r,f),C(r,i,f),N(e,r,f),C(r,t,f),N(s,r,f),o=!0},p(r,f){const u={};f[0]&257&&(u.disabled=r[0].length===r[8].length),f[0]&131072&&(u.label=r[17]),l.$set(u);const _={};f[0]&1&&(_.disabled=r[0].length===0),f[0]&262144&&(_.label=r[18]),e.$set(_)},i(r){o||(b(l.$$.fragment,r),b(e.$$.fragment,r),b(s.$$.fragment,r),o=!0)},o(r){g(l.$$.fragment,r),g(e.$$.fragment,r),g(s.$$.fragment,r),o=!1},d(r){r&&(k(i),k(t)),V(l,r),V(e,r),V(s,r)}}}function ye(n){let l,i;return l=new ge({props:{disabled:!0,label:n[5]}}),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&32&&(s.label=e[5]),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function we(n){let l,i;function e(){return n[51](n[62])}return l=new ge({props:{multiselect:n[4],selected:n[39](n[62]),label:n[31](n[62])}}),l.$on("click",e),{c(){q(l.$$.fragment)},l(t){T(l.$$.fragment,t)},m(t,s){N(l,t,s),i=!0},p(t,s){n=t;const o={};s[0]&16&&(o.multiselect=n[4]),s[0]&33554432&&(o.selected=n[39](n[62])),s[0]&33554432&&(o.label=n[31](n[62])),l.$set(o)},i(t){i||(b(l.$$.fragment,t),i=!0)},o(t){g(l.$$.fragment,t),i=!1},d(t){V(l,t)}}}function $e(n){let l,i,e=de(n[25]),t=[];for(let r=0;rg(t[r],1,1,()=>{t[r]=null});let o=null;return e.length||(o=ye(n)),{c(){for(let r=0;r{o=null}),j()):(o=ye(r),o.c(),b(o,1),o.m(l.parentNode,l))}},i(r){if(!i){for(let f=0;f{o=null}),j()),u[0]&1&&Oe(e,e=f[0])?(H(),g(r,1,1,Il),j(),r=$e(f),r.c(),b(r,1),r.m(t.parentNode,t)):r.p(f,u)},i(f){s||(b(o),b(r),s=!0)},o(f){g(o),g(r),s=!1},d(f){f&&(k(i),k(t)),o&&o.d(f),r.d(f)}}}function xe(n){let l,i;return{c(){l=le("span"),i=ie(n[13]),this.h()},l(e){l=te(e,"SPAN",{class:!0});var t=oe(l);i=ne(t,n[13]),t.forEach(k),this.h()},h(){be(l,"class","error svelte-1uhk191")},m(e,t){C(e,l,t),X(l,i)},p(e,t){t[0]&8192&&re(i,e[13])},d(e){e&&k(l)}}}function tt(n){let l,i,e,t,s,o=n[4]&&n[30](n[0])&&n[0].length>0,r,f,u,_,v,A,Y,E,d,Z,U,S,R,se;l=new vl({props:{class:"pb-1",hidden:n[7],required:n[11],label:n[3],for:n[2]}});let p=n[12]&&Je(n),L=o&&Qe(n),$=[{id:n[2]},{placeholder:n[9]},{required:n[11]},{readOnly:n[10]},{disabled:n[6]},{type:"text"},{value:n[22]},{class:u=Be("combobox-input",n[1])},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},{"data-1p-ignore":"true"},{"aria-controls":_=n[2]+"-listbox"},{"aria-expanded":n[26]},{"aria-required":n[11]},{"aria-autocomplete":"list"},{"data-testid":v=n[40]["data-testid"]??n[2]},n[41]],I={};for(let c=0;c<$.length;c+=1)I=Ie(I,$[c]);let h=n[42].action&&Ye(n);function y(c){n[52](c)}let J={keepOpen:n[4],id:n[2]+"-listbox",role:"listbox",class:"w-full",$$slots:{default:[lt]},$$scope:{ctx:n}};n[24]!==void 0&&(J.menuElement=n[24]),E=new Kl({props:J}),ll.push(()=>Ol(E,"menuElement",y));let O=n[13]&&!n[14]&&xe(n);return{c(){q(l.$$.fragment),i=F(),e=le("div"),p&&p.c(),t=F(),s=le("div"),L&&L.c(),r=F(),f=le("input"),A=F(),h&&h.c(),Y=F(),q(E.$$.fragment),Z=F(),O&&O.c(),U=B(),this.h()},l(c){T(l.$$.fragment,c),i=G(c),e=te(c,"DIV",{class:!0});var m=oe(e);p&&p.l(m),t=G(m),s=te(m,"DIV",{class:!0});var K=oe(s);L&&L.l(K),r=G(K),f=te(K,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"data-1p-ignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),K.forEach(k),A=G(m),h&&h.l(m),m.forEach(k),Y=G(c),T(E.$$.fragment,c),Z=G(c),O&&O.l(c),U=B(),this.h()},h(){Me(f,I),M(f,"disabled",n[6]),M(f,"svelte-1uhk191",!0),be(s,"class","input-wrapper svelte-1uhk191"),M(s,"gap-1",n[4]),M(s,"py-1",n[4]&&n[15]),be(e,"class","combobox-wrapper svelte-1uhk191"),M(e,"disabled",n[6]),M(e,"invalid",!n[14])},m(c,m){N(l,c,m),C(c,i,m),C(c,e,m),p&&p.m(e,null),X(e,t),X(e,s),L&&L.m(s,null),X(s,r),X(s,f),"value"in I&&(f.value=I.value),f.autofocus&&f.focus(),n[50](f),X(e,A),h&&h.m(e,null),C(c,Y,m),N(E,c,m),C(c,Z,m),O&&O.m(c,m),C(c,U,m),S=!0,R||(se=[me(f,"focus",_e(n[28])),me(f,"input",_e(n[37])),me(f,"keydown",_e(n[36])),me(f,"click",_e(n[38]))],R=!0)},p(c,m){const K={};m[0]&128&&(K.hidden=c[7]),m[0]&2048&&(K.required=c[11]),m[0]&8&&(K.label=c[3]),m[0]&4&&(K.for=c[2]),l.$set(K),c[12]?p?(p.p(c,m),m[0]&4096&&b(p,1)):(p=Je(c),p.c(),b(p,1),p.m(e,t)):p&&(H(),g(p,1,1,()=>{p=null}),j()),m[0]&17&&(o=c[4]&&c[30](c[0])&&c[0].length>0),o?L?(L.p(c,m),m[0]&17&&b(L,1)):(L=Qe(c),L.c(),b(L,1),L.m(s,r)):L&&(H(),g(L,1,1,()=>{L=null}),j()),Me(f,I=El($,[(!S||m[0]&4)&&{id:c[2]},(!S||m[0]&512)&&{placeholder:c[9]},(!S||m[0]&2048)&&{required:c[11]},(!S||m[0]&1024)&&{readOnly:c[10]},(!S||m[0]&64)&&{disabled:c[6]},{type:"text"},(!S||m[0]&4194304&&f.value!==c[22])&&{value:c[22]},(!S||m[0]&2&&u!==(u=Be("combobox-input",c[1])))&&{class:u},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},{"data-1p-ignore":"true"},(!S||m[0]&4&&_!==(_=c[2]+"-listbox"))&&{"aria-controls":_},(!S||m[0]&67108864)&&{"aria-expanded":c[26]},(!S||m[0]&2048)&&{"aria-required":c[11]},{"aria-autocomplete":"list"},(!S||m[0]&4|m[1]&512&&v!==(v=c[40]["data-testid"]??c[2]))&&{"data-testid":v},m[1]&1024&&c[41]])),"value"in I&&(f.value=I.value),M(f,"disabled",c[6]),M(f,"svelte-1uhk191",!0),(!S||m[0]&16)&&M(s,"gap-1",c[4]),(!S||m[0]&32784)&&M(s,"py-1",c[4]&&c[15]),c[42].action?h?(h.p(c,m),m[1]&2048&&b(h,1)):(h=Ye(c),h.c(),b(h,1),h.m(e,null)):h&&(H(),g(h,1,1,()=>{h=null}),j()),(!S||m[0]&64)&&M(e,"disabled",c[6]),(!S||m[0]&16384)&&M(e,"invalid",!c[14]);const Q={};m[0]&16&&(Q.keepOpen=c[4]),m[0]&4&&(Q.id=c[2]+"-listbox"),m[0]&33947953|m[1]&4194304&&(Q.$$scope={dirty:m,ctx:c}),!d&&m[0]&16777216&&(d=!0,Q.menuElement=c[24],Cl(()=>d=!1)),E.$set(Q),c[13]&&!c[14]?O?O.p(c,m):(O=xe(c),O.c(),O.m(U.parentNode,U)):O&&(O.d(1),O=null)},i(c){S||(b(l.$$.fragment,c),b(p),b(L),b(h),b(E.$$.fragment,c),S=!0)},o(c){g(l.$$.fragment,c),g(p),g(L),g(h),g(E.$$.fragment,c),S=!1},d(c){c&&(k(i),k(e),k(Y),k(Z),k(U)),V(l,c),p&&p.d(),L&&L.d(),n[50](null),h&&h.d(),V(E,c),O&&O.d(c),R=!1,Al(se)}}}function it(n){let l,i;return l=new Vl({props:{open:n[27],$$slots:{default:[tt]},$$scope:{ctx:n}}}),l.$on("close",n[29]),{c(){q(l.$$.fragment)},l(e){T(l.$$.fragment,e)},m(e,t){N(l,e,t),i=!0},p(e,t){const s={};t[0]&134217727|t[1]&4197888&&(s.$$scope={dirty:t,ctx:e}),l.$set(s)},i(e){i||(b(l.$$.fragment,e),i=!0)},o(e){g(l.$$.fragment,e),i=!1},d(e){V(l,e)}}}function nt(n,l,i){let e;const t=["class","id","label","multiselect","value","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize","error","valid","displayChips","chipLimit","selectAllLabel","deselectAllLabel","removeChipLabel","actionTooltip","numberOfItemsSelectedLabel"];let s=ve(l,t),o,{$$slots:r={},$$scope:f}=l;const u=Ll(r),_=el();let{class:v=""}=l,{id:A}=l,{label:Y}=l,{multiselect:E=!1}=l,{value:d=E?[]:void 0}=l,{noResultsText:Z}=l,{disabled:U=!1}=l,{labelHidden:S=!1}=l,{options:R}=l,{placeholder:se=null}=l,{readonly:p=!1}=l,{required:L=!1}=l,{leadingIcon:$=null}=l,{optionValueKey:I=null}=l,{optionLabelKey:h=I}=l,{minSize:y=0}=l,{maxSize:J=120}=l,{error:O=""}=l,{valid:c=!0}=l,{displayChips:m=!0}=l,{chipLimit:K=5}=l,{selectAllLabel:Q="Select All"}=l,{deselectAllLabel:Ee="Deselect All"}=l,{removeChipLabel:ze="Remove Option"}=l,{actionTooltip:qe=""}=l,{numberOfItemsSelectedLabel:Te=a=>`${a} option${a>1?"s":""} selected`}=l,P="",w,ue,D;const fe=zl(!1);Sl(n,fe,a=>i(26,o=a));const ce=()=>{Ae(fe,o=!0,o),D.focus(),D.select()},sl=()=>{o&&(Ae(fe,o=!1,o),_("close",{selectedOption:w}),Se())},fl=()=>{_("close",{selectedOption:w}),Se()},Se=()=>{i(22,P=Ce(w)),i(25,e=R)},W=a=>Array.isArray(a),x=a=>typeof a=="string",ee=a=>typeof a=="object",ae=a=>a===null||typeof a!="object"?!1:I!==null&&h!==null&&I in a&&h in a,Ce=a=>{if(!a)return W(d)?"":d??"";if(x(a))return a;if(ee(a)&&ae(a))return String(a[h])},al=a=>{if(x(a)&&(W(d)?d.includes(a)?i(0,d=d.filter(z=>z!==a)):i(0,d=[...d,a]):i(0,d=a)),ee(a)&&ae(a)){const z=String(a[I]);W(d)?d.includes(z)?i(0,d=d.filter(kl=>kl!==z)):i(0,d=[...d,z]):i(0,d=z)}},Ne=a=>{al(a),_("change",{value:a}),E||Se()},Ve=a=>{W(d)&&i(0,d=d.filter(z=>z!==a))},ol=()=>{!E||!W(d)||i(0,d=e.map(a=>{if(ee(a)&&ae(a))return String(a[I]);if(x(a))return a}))},rl=()=>{i(0,d=[])},Ke=()=>{const a=ue.querySelector('li[role="option"]:not([aria-disabled="true"])');a&&requestAnimationFrame(()=>a.focus())},ul=a=>{switch(a.key){case"Escape":sl();break;case"ArrowDown":ce(),Ke();break;case"Enter":ce(),Ke();break}},cl=a=>{i(22,P=a.currentTarget.value),_("filter",P),o||Ae(fe,o=!0,o),i(25,e=R.filter(z=>{if(x(z))return z.toLowerCase().includes(a.currentTarget.value.toLowerCase());if(ee(z)&&ae(z))return String(z[h]).toLowerCase().includes(a.currentTarget.value.toLowerCase())}))},ml=()=>{o||ce()},_l=a=>{if(ee(a)){const z=String(a[I]);return W(d)?d.includes(z):d===z}else if(x(a))return W(d)?d.includes(a):d===a;return!1},bl=a=>Ve(a);function dl(a){ll[a?"unshift":"push"](()=>{D=a,i(23,D),i(22,P),i(45,y),i(46,J),i(4,E),i(8,R),i(0,d),i(43,I),i(47,w)})}const gl=a=>Ne(a);function hl(a){ue=a,i(24,ue)}return n.$$set=a=>{i(40,l=Ie(Ie({},l),De(a))),i(41,s=ve(l,t)),"class"in a&&i(1,v=a.class),"id"in a&&i(2,A=a.id),"label"in a&&i(3,Y=a.label),"multiselect"in a&&i(4,E=a.multiselect),"value"in a&&i(0,d=a.value),"noResultsText"in a&&i(5,Z=a.noResultsText),"disabled"in a&&i(6,U=a.disabled),"labelHidden"in a&&i(7,S=a.labelHidden),"options"in a&&i(8,R=a.options),"placeholder"in a&&i(9,se=a.placeholder),"readonly"in a&&i(10,p=a.readonly),"required"in a&&i(11,L=a.required),"leadingIcon"in a&&i(12,$=a.leadingIcon),"optionValueKey"in a&&i(43,I=a.optionValueKey),"optionLabelKey"in a&&i(44,h=a.optionLabelKey),"minSize"in a&&i(45,y=a.minSize),"maxSize"in a&&i(46,J=a.maxSize),"error"in a&&i(13,O=a.error),"valid"in a&&i(14,c=a.valid),"displayChips"in a&&i(15,m=a.displayChips),"chipLimit"in a&&i(16,K=a.chipLimit),"selectAllLabel"in a&&i(17,Q=a.selectAllLabel),"deselectAllLabel"in a&&i(18,Ee=a.deselectAllLabel),"removeChipLabel"in a&&i(19,ze=a.removeChipLabel),"actionTooltip"in a&&i(20,qe=a.actionTooltip),"numberOfItemsSelectedLabel"in a&&i(21,Te=a.numberOfItemsSelectedLabel),"$$scope"in a&&i(53,f=a.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&256&&i(25,e=R),n.$$.dirty[0]&273|n.$$.dirty[1]&69632&&(E||(i(47,w=R.find(a=>{if(x(a))return a===d;if(ee(a)&&ae(a))return a[I]===d})),i(22,P=Ce(w)))),n.$$.dirty[0]&12582912|n.$$.dirty[1]&49152&&D&&P&&(P.lengthJ?i(23,D.size=J,D):i(23,D.size=P.length,D))},l=De(l),[d,v,A,Y,E,Z,U,S,R,se,p,L,$,O,c,m,K,Q,Ee,ze,qe,Te,P,D,ue,e,o,fe,ce,fl,W,Ce,Ne,Ve,ol,rl,ul,cl,ml,_l,l,s,u,I,h,y,J,w,r,bl,dl,gl,hl,f]}class kt extends il{constructor(l){super(),nl(this,l,nt,it,Oe,{class:1,id:2,label:3,multiselect:4,value:0,noResultsText:5,disabled:6,labelHidden:7,options:8,placeholder:9,readonly:10,required:11,leadingIcon:12,optionValueKey:43,optionLabelKey:44,minSize:45,maxSize:46,error:13,valid:14,displayChips:15,chipLimit:16,selectAllLabel:17,deselectAllLabel:18,removeChipLabel:19,actionTooltip:20,numberOfItemsSelectedLabel:21},null,[-1,-1,-1])}}export{kt as C}; diff --git a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.Dh7E1aVf.js b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.VBIGxkFt.js similarity index 76% rename from ui/assets/local/_app/immutable/chunks/copy-to-clipboard.Dh7E1aVf.js rename to ui/assets/local/_app/immutable/chunks/copy-to-clipboard.VBIGxkFt.js index 994f8281c..7e3ddf0f1 100644 --- a/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.Dh7E1aVf.js +++ b/ui/assets/local/_app/immutable/chunks/copy-to-clipboard.VBIGxkFt.js @@ -1 +1 @@ -import{w as c}from"./entry.DLEzeuD9.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; +import{w as c}from"./entry.kylZibtV.js";const i=(r=2e3)=>{const o=c(!1);return{copy:async(t,e)=>{t.preventDefault(),t.stopPropagation();try{await navigator.clipboard.writeText(e),o.set(!0),setTimeout(()=>{o.set(!1)},r)}catch(a){console.error(a)}},copied:o}};export{i as c}; diff --git a/ui/assets/local/_app/immutable/chunks/core-user.BxGCJ_SI.js b/ui/assets/local/_app/immutable/chunks/core-user.DrkCNXj3.js similarity index 62% rename from ui/assets/local/_app/immutable/chunks/core-user.BxGCJ_SI.js rename to ui/assets/local/_app/immutable/chunks/core-user.DrkCNXj3.js index 840294792..beb917182 100644 --- a/ui/assets/local/_app/immutable/chunks/core-user.BxGCJ_SI.js +++ b/ui/assets/local/_app/immutable/chunks/core-user.DrkCNXj3.js @@ -1 +1 @@ -import{r}from"./entry.DLEzeuD9.js";import{a1 as t,L as o}from"./scheduler.C46pS-76.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; +import{r}from"./entry.kylZibtV.js";import{a1 as t,L as o}from"./scheduler.C46pS-76.js";const e="CoreUser",s=r({namespaceWriteDisabled:()=>!1}),c=()=>t(e)?o(e):s;export{c}; diff --git a/ui/assets/local/_app/immutable/chunks/dark-mode.DlqJSTFW.js b/ui/assets/local/_app/immutable/chunks/dark-mode.BvUzLjRz.js similarity index 79% rename from ui/assets/local/_app/immutable/chunks/dark-mode.DlqJSTFW.js rename to ui/assets/local/_app/immutable/chunks/dark-mode.BvUzLjRz.js index 9f33d90d6..c61693d2a 100644 --- a/ui/assets/local/_app/immutable/chunks/dark-mode.DlqJSTFW.js +++ b/ui/assets/local/_app/immutable/chunks/dark-mode.BvUzLjRz.js @@ -1 +1 @@ -import{p as a}from"./persist-store.Bvu2qNDI.js";var r={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s=a("dark mode",!!r.VITE_DARK_MODE,!0),o=e=>{s.subscribe(t=>{t?e.dataset.theme="dark":e.dataset.theme="light"})};export{o as d,s as u}; +import{p as a}from"./persist-store.DeOEcwHN.js";var r={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const s=a("dark mode",!!r.VITE_DARK_MODE,!0),o=e=>{s.subscribe(t=>{t?e.dataset.theme="dark":e.dataset.theme="light"})};export{o as d,s as u}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-config.D-DAVwjK.js b/ui/assets/local/_app/immutable/chunks/data-encoder-config.BAPO1ve2.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/data-encoder-config.D-DAVwjK.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-config.BAPO1ve2.js index c8a4a4965..d7c4c46ca 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-config.D-DAVwjK.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-config.BAPO1ve2.js @@ -1 +1 @@ -import{w as r}from"./entry.DLEzeuD9.js";import{p as t}from"./persist-store.Bvu2qNDI.js";import{h as c}from"./has.BWrERxPV.js";const o=s=>(s==null?void 0:s.substring(0,8))==="https://",n=s=>(s==null?void 0:s.substring(0,7))==="http://",f=s=>n(s)||o(s),d=t("endpoint",null,!0),m=t("passAccessToken",!1,!0),p=t("includeCredentials",!1,!0),g=t("overrideRemoteCodecConfiguration",!1,!0),e=r("notRequested"),a=r("");function E(s){e.set("error"),s&&c(s,"message")&&typeof s.message=="string"?a.set(s.message):a.set("")}function v(){e.set("success")}function C(){e.set("notRequested")}export{v as a,f as b,d as c,p as i,e as l,g as o,m as p,C as r,E as s,o as v}; +import{w as r}from"./entry.kylZibtV.js";import{p as t}from"./persist-store.DeOEcwHN.js";import{h as c}from"./has.BWrERxPV.js";const o=s=>(s==null?void 0:s.substring(0,8))==="https://",n=s=>(s==null?void 0:s.substring(0,7))==="http://",f=s=>n(s)||o(s),d=t("endpoint",null,!0),m=t("passAccessToken",!1,!0),p=t("includeCredentials",!1,!0),g=t("overrideRemoteCodecConfiguration",!1,!0),e=r("notRequested"),a=r("");function E(s){e.set("error"),s&&c(s,"message")&&typeof s.message=="string"?a.set(s.message):a.set("")}function v(){e.set("success")}function C(){e.set("notRequested")}export{v as a,f as b,d as c,p as i,e as l,g as o,m as p,C as r,E as s,o as v}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.87VBLn14.js b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2-uv_2-b.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/data-encoder-settings.87VBLn14.js rename to ui/assets/local/_app/immutable/chunks/data-encoder-settings.2-uv_2-b.js index 3fa5cb58c..738470dd9 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder-settings.87VBLn14.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder-settings.2-uv_2-b.js @@ -1 +1 @@ -import{s as me,h as R,b as O,j as B,k as P,d as M,f as T,m as C,W as ee,H as le,i as F,n as E,$ as he,p as te,F as We,G as Fe,t as K,l as Q,q as de,a as Ge,u as Xe,g as ze,e as Je,B as oe,N as se,O as re,v as fe,x as ve,c as Z,a9 as Ke,w as y}from"./scheduler.C46pS-76.js";import{S as pe,i as ge,c as G,a as X,m as z,t as q,g as Re,b as j,e as Be,d as J,f as ie,h as Qe}from"./index.dOVbn71B.js";import{L as Ue}from"./label.BlTcUXFh.js";import{t as ne}from"./tw-merge.Ds6tgvmq.js";import{T as be}from"./toggle-switch.C9lxIG0w.js";import{t as A}from"./translate.BBe5dcco.js";import{o as we,i as ke,p as Ee,c as Ce,v as Ye,b as Ze}from"./data-encoder-config.D-DAVwjK.js";import{r as Te}from"./workflow-run.DcChDuxV.js";import{L as ye}from"./link.BJceiGbc.js";import{B as De}from"./button.BpRIS9ld.js";import{A as $e}from"./accordion.DEmefb3Z.js";import{p as xe}from"./stores.Dz-RNcUk.js";import{a as et}from"./index.mPGqfhEB.js";import{w as Pe}from"./entry.DLEzeuD9.js";import{R as tt,a as Ve}from"./radio-input.yEAROJgW.js";const nt=l=>({}),Ae=l=>({});function Ie(l){let n,e;return{c(){n=R("p"),e=K(l[11]),this.h()},l(t){n=B(t,"P",{class:!0});var r=P(n);e=Q(r,l[11]),r.forEach(T),this.h()},h(){C(n,"class","-mt-1 text-sm")},m(t,r){F(t,n,r),E(n,e)},p(t,r){r&2048&&de(e,t[11])},d(t){t&&T(n)}}}function Le(l){let n,e,t=l[2]&&Se(l);const r=l[15].error,i=Ge(r,l,l[14],Ae);return{c(){t&&t.c(),n=O(),i&&i.c()},l(s){t&&t.l(s),n=M(s),i&&i.l(s)},m(s,g){t&&t.m(s,g),F(s,n,g),i&&i.m(s,g),e=!0},p(s,g){s[2]?t?t.p(s,g):(t=Se(s),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),i&&i.p&&(!e||g&16384)&&Xe(i,r,s,s[14],e?Je(r,s[14],g,nt):ze(s[14]),Ae)},i(s){e||(q(i,s),e=!0)},o(s){j(i,s),e=!1},d(s){s&&T(n),t&&t.d(s),i&&i.d(s)}}}function Se(l){let n,e;return{c(){n=R("p"),e=K(l[2])},l(t){n=B(t,"P",{});var r=P(n);e=Q(r,l[2]),r.forEach(T)},m(t,r){F(t,n,r),E(n,e)},p(t,r){r&4&&de(e,t[2])},d(t){t&&T(n)}}}function He(l){var g;let n,e,t=(((g=l[0])==null?void 0:g.length)??0)+"",r,i,s;return{c(){n=R("span"),e=R("span"),r=K(t),i=K(" / "),s=K(l[12]),this.h()},l(f){n=B(f,"SPAN",{class:!0});var u=P(n);e=B(u,"SPAN",{class:!0});var h=P(e);r=Q(h,t),h.forEach(T),i=Q(u," / "),s=Q(u,l[12]),u.forEach(T),this.h()},h(){var f,u;C(e,"class","text-information svelte-1ps5vu5"),le(e,"warn",l[12]-((f=l[0])==null?void 0:f.length)<=5),le(e,"error",l[12]===((u=l[0])==null?void 0:u.length)),C(n,"class","count svelte-1ps5vu5")},m(f,u){F(f,n,u),E(n,e),E(e,r),E(n,i),E(n,s)},p(f,u){var h,m,w;u&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&de(r,t),u&4097&&le(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),u&4097&&le(e,"error",f[12]===((w=f[0])==null?void 0:w.length)),u&4096&&de(s,f[12])},d(f){f&&T(n)}}}function lt(l){let n,e,t,r,i,s,g,f,u,h,m,w,I,H,N,b,L,D;e=new Ue({props:{required:l[10],hidden:l[8],label:l[7],for:l[9]}});let _=l[11]&&Ie(l),o=!l[3]&&Le(l),v=l[12]&&!l[1]&&He(l);return{c(){n=R("div"),G(e.$$.fragment),t=O(),_&&_.c(),r=O(),i=R("div"),s=R("textarea"),h=O(),m=R("div"),w=R("div"),o&&o.c(),H=O(),v&&v.c(),this.h()},l(a){n=B(a,"DIV",{class:!0});var c=P(n);X(e.$$.fragment,c),t=M(c),_&&_.l(c),r=M(c),i=B(c,"DIV",{class:!0});var V=P(i);s=B(V,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),P(s).forEach(T),V.forEach(T),h=M(c),m=B(c,"DIV",{class:!0});var d=P(m);w=B(d,"DIV",{class:!0,"aria-live":!0});var k=P(w);o&&o.l(k),k.forEach(T),H=M(d),v&&v.l(d),d.forEach(T),c.forEach(T),this.h()},h(){C(s,"class",g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",l[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"),C(s,"id",l[9]),s.disabled=l[1],C(s,"placeholder",l[4]),C(s,"rows",l[5]),C(s,"spellcheck",l[6]),C(s,"maxlength",f=l[12]>0?l[12]:void 0),C(i,"class",u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!l[3]&&"error",!l[1]&&"hover:border-information"))+" svelte-1ps5vu5"),C(w,"class","error-msg svelte-1ps5vu5"),C(w,"aria-live",I=l[3]?"off":"assertive"),le(w,"min-width",l[12]),C(m,"class","flex justify-between gap-2"),C(n,"class",N=ee(ne("group flex flex-col gap-1",l[13]))+" svelte-1ps5vu5")},m(a,c){F(a,n,c),z(e,n,null),E(n,t),_&&_.m(n,null),E(n,r),E(n,i),E(i,s),he(s,l[0]),E(n,h),E(n,m),E(m,w),o&&o.m(w,null),E(m,H),v&&v.m(m,null),b=!0,L||(D=[te(s,"input",l[21]),te(s,"input",l[16]),te(s,"change",l[17]),te(s,"focus",l[18]),te(s,"blur",l[19]),te(s,"keydown",We(l[20]))],L=!0)},p(a,[c]){const V={};c&1024&&(V.required=a[10]),c&256&&(V.hidden=a[8]),c&128&&(V.label=a[7]),c&512&&(V.for=a[9]),e.$set(V),a[11]?_?_.p(a,c):(_=Ie(a),_.c(),_.m(n,r)):_&&(_.d(1),_=null),(!b||c&2&&g!==(g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",a[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"))&&C(s,"class",g),(!b||c&512)&&C(s,"id",a[9]),(!b||c&2)&&(s.disabled=a[1]),(!b||c&16)&&C(s,"placeholder",a[4]),(!b||c&32)&&C(s,"rows",a[5]),(!b||c&64)&&C(s,"spellcheck",a[6]),(!b||c&4096&&f!==(f=a[12]>0?a[12]:void 0))&&C(s,"maxlength",f),c&1&&he(s,a[0]),(!b||c&10&&u!==(u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!a[3]&&"error",!a[1]&&"hover:border-information"))+" svelte-1ps5vu5"))&&C(i,"class",u),a[3]?o&&(Re(),j(o,1,1,()=>{o=null}),Be()):o?(o.p(a,c),c&8&&q(o,1)):(o=Le(a),o.c(),q(o,1),o.m(w,null)),(!b||c&8&&I!==(I=a[3]?"off":"assertive"))&&C(w,"aria-live",I),(!b||c&4096)&&le(w,"min-width",a[12]),a[12]&&!a[1]?v?v.p(a,c):(v=He(a),v.c(),v.m(m,null)):v&&(v.d(1),v=null),(!b||c&8192&&N!==(N=ee(ne("group flex flex-col gap-1",a[13]))+" svelte-1ps5vu5"))&&C(n,"class",N)},i(a){b||(q(e.$$.fragment,a),q(o),b=!0)},o(a){j(e.$$.fragment,a),j(o),b=!1},d(a){a&&T(n),J(e),_&&_.d(),o&&o.d(),v&&v.d(),L=!1,Fe(D)}}}function st(l,n,e){let{$$slots:t={},$$scope:r}=n,{disabled:i=!1}=n,{error:s=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:u=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:w}=n,{labelHidden:I=!1}=n,{id:H}=n,{required:N=!1}=n,{description:b=""}=n,{maxLength:L=0}=n,{class:D="text-primary"}=n;function _(d){oe.call(this,l,d)}function o(d){oe.call(this,l,d)}function v(d){oe.call(this,l,d)}function a(d){oe.call(this,l,d)}function c(d){oe.call(this,l,d)}function V(){m=this.value,e(0,m)}return l.$$set=d=>{"disabled"in d&&e(1,i=d.disabled),"error"in d&&e(2,s=d.error),"isValid"in d&&e(3,g=d.isValid),"placeholder"in d&&e(4,f=d.placeholder),"rows"in d&&e(5,u=d.rows),"spellcheck"in d&&e(6,h=d.spellcheck),"value"in d&&e(0,m=d.value),"label"in d&&e(7,w=d.label),"labelHidden"in d&&e(8,I=d.labelHidden),"id"in d&&e(9,H=d.id),"required"in d&&e(10,N=d.required),"description"in d&&e(11,b=d.description),"maxLength"in d&&e(12,L=d.maxLength),"class"in d&&e(13,D=d.class),"$$scope"in d&&e(14,r=d.$$scope)},[m,i,s,g,f,u,h,w,I,H,N,b,L,D,r,t,_,o,v,a,c,V]}class rt extends pe{constructor(n){super(),ge(this,n,st,lt,me,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function qe(l){let n,e=A("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=R("small"),t=K(e),this.h()},l(r){n=B(r,"SMALL",{"data-testid":!0});var i=P(n);t=Q(i,e),i.forEach(T),this.h()},h(){C(n,"data-testid","data-encoder-cross-origin-credentials")},m(r,i){F(r,n,i),E(n,t)},p:fe,d(r){r&&T(n)}}}function it(l){let n,e,t,r,i,s,g,f,u,h,m,w;function I(o){l[4](o)}let H={id:"data-encoder-endpoint-input",rows:3,placeholder:A("data-encoder.endpoint-placeholder"),error:l[3],isValid:!l[3],label:A("data-encoder.endpoint-title"),description:A("data-encoder.endpoint-description")};l[0]!==void 0&&(H.value=l[0]),t=new rt({props:H}),se.push(()=>ie(t,"value",I));function N(o){l[5](o)}let b={label:A("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};l[1]!==void 0&&(b.checked=l[1]),s=new be({props:b}),se.push(()=>ie(s,"checked",N));function L(o){l[6](o)}let D={label:A("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};l[2]!==void 0&&(D.checked=l[2]),u=new be({props:D}),se.push(()=>ie(u,"checked",L));let _=l[2]&&qe();return{c(){n=R("div"),e=R("div"),G(t.$$.fragment),i=O(),G(s.$$.fragment),f=O(),G(u.$$.fragment),m=O(),_&&_.c(),this.h()},l(o){n=B(o,"DIV",{class:!0});var v=P(n);e=B(v,"DIV",{class:!0});var a=P(e);X(t.$$.fragment,a),i=M(a),X(s.$$.fragment,a),f=M(a),X(u.$$.fragment,a),m=M(a),_&&_.l(a),a.forEach(T),v.forEach(T),this.h()},h(){C(e,"class","flex flex-col gap-2"),C(n,"class","flex flex-col gap-4")},m(o,v){F(o,n,v),E(n,e),z(t,e,null),E(e,i),z(s,e,null),E(e,f),z(u,e,null),E(e,m),_&&_.m(e,null),w=!0},p(o,[v]){const a={};v&8&&(a.error=o[3]),v&8&&(a.isValid=!o[3]),!r&&v&1&&(r=!0,a.value=o[0],re(()=>r=!1)),t.$set(a);const c={};!g&&v&2&&(g=!0,c.checked=o[1],re(()=>g=!1)),s.$set(c);const V={};!h&&v&4&&(h=!0,V.checked=o[2],re(()=>h=!1)),u.$set(V),o[2]?_?_.p(o,v):(_=qe(),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(o){w||(q(t.$$.fragment,o),q(s.$$.fragment,o),q(u.$$.fragment,o),w=!0)},o(o){j(t.$$.fragment,o),j(s.$$.fragment,o),j(u.$$.fragment,o),w=!1},d(o){o&&T(n),J(t),J(s),J(u),_&&_.d()}}}function at(l,n,e){let{endpoint:t=""}=n,{passToken:r=!1}=n,{includeCreds:i=!1}=n,{error:s=""}=n;function g(h){t=h,e(0,t)}function f(h){r=h,e(1,r)}function u(h){i=h,e(2,i)}return l.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,r=h.passToken),"includeCreds"in h&&e(2,i=h.includeCreds),"error"in h&&e(3,s=h.error)},[t,r,i,s,g,f,u]}class ot extends pe{constructor(n){super(),ge(this,n,at,it,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const dt=l=>l.replace(/\/+$/,"");function Ne(l){let n,e,t,r,i=A("common.codec-server")+"",s,g,f,u=A("data-encoder.codec-server-description-prefix")+"",h,m,w,I=A("data-encoder.codec-server-description-suffix",{level:l[5]})+"",H,N,b,L,D,_,o,v,a,c,V,d,k,ue,ae;m=new ye({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[ft]},$$scope:{ctx:l}}}),b=new $e({props:{"data-testid":"override-accordion",title:l[6]?A("data-encoder.browser-override-description",{level:l[5]}):A("data-encoder.no-browser-override-description",{level:l[5]}),$$slots:{default:[ut]},$$scope:{ctx:l}}});function je(p){l[14](p)}function Oe(p){l[15](p)}function Me(p){l[16](p)}let ce={error:l[4]};return l[0]!==void 0&&(ce.endpoint=l[0]),l[1]!==void 0&&(ce.passToken=l[1]),l[3]!==void 0&&(ce.includeCreds=l[3]),D=new ot({props:ce}),se.push(()=>ie(D,"endpoint",je)),se.push(()=>ie(D,"passToken",Oe)),se.push(()=>ie(D,"includeCreds",Me)),V=new De({props:{disabled:!!l[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[_t]},$$scope:{ctx:l}}}),V.$on("click",l[9]),k=new De({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[mt]},$$scope:{ctx:l}}}),k.$on("click",l[8]),{c(){n=R("aside"),e=R("div"),t=R("div"),r=R("h3"),s=K(i),g=O(),f=R("p"),h=K(u),G(m.$$.fragment),w=O(),H=K(I),N=O(),G(b.$$.fragment),L=O(),G(D.$$.fragment),a=O(),c=R("div"),G(V.$$.fragment),d=O(),G(k.$$.fragment),this.h()},l(p){n=B(p,"ASIDE",{class:!0});var S=P(n);e=B(S,"DIV",{class:!0});var W=P(e);t=B(W,"DIV",{class:!0});var x=P(t);r=B(x,"H3",{"data-testid":!0});var Y=P(r);s=Q(Y,i),Y.forEach(T),x.forEach(T),g=M(W),f=B(W,"P",{class:!0});var U=P(f);h=Q(U,u),X(m.$$.fragment,U),w=M(U),H=Q(U,I),U.forEach(T),N=M(W),X(b.$$.fragment,W),L=M(W),X(D.$$.fragment,W),a=M(W),c=B(W,"DIV",{class:!0});var $=P(c);X(V.$$.fragment,$),d=M($),X(k.$$.fragment,$),$.forEach(T),W.forEach(T),S.forEach(T),this.h()},h(){C(r,"data-testid","data-encoder-title"),C(t,"class","flex items-center justify-between space-x-2"),C(f,"class","text-sm"),C(c,"class","flex items-center gap-4"),C(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),C(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-4 md:p-12")},m(p,S){F(p,n,S),E(n,e),E(e,t),E(t,r),E(r,s),E(e,g),E(e,f),E(f,h),z(m,f,null),E(f,w),E(f,H),E(e,N),z(b,e,null),E(e,L),z(D,e,null),E(e,a),E(e,c),z(V,c,null),E(c,d),z(k,c,null),ae=!0},p(p,S){const W={};S&4194304&&(W.$$scope={dirty:S,ctx:p}),m.$set(W),(!ae||S&32)&&I!==(I=A("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&de(H,I);const x={};S&96&&(x.title=p[6]?A("data-encoder.browser-override-description",{level:p[5]}):A("data-encoder.no-browser-override-description",{level:p[5]})),S&4194336&&(x.$$scope={dirty:S,ctx:p}),b.$set(x);const Y={};S&16&&(Y.error=p[4]),!_&&S&1&&(_=!0,Y.endpoint=p[0],re(()=>_=!1)),!o&&S&2&&(o=!0,Y.passToken=p[1],re(()=>o=!1)),!v&&S&8&&(v=!0,Y.includeCreds=p[3],re(()=>v=!1)),D.$set(Y);const U={};S&16&&(U.disabled=!!p[4]),S&4194304&&(U.$$scope={dirty:S,ctx:p}),V.$set(U);const $={};S&4194304&&($.$$scope={dirty:S,ctx:p}),k.$set($)},i(p){ae||(q(m.$$.fragment,p),q(b.$$.fragment,p),q(D.$$.fragment,p),q(V.$$.fragment,p),q(k.$$.fragment,p),p&&(ue||Ke(()=>{ue=Qe(n,et,{y:-50,delay:0,duration:500}),ue.start()})),ae=!0)},o(p){j(m.$$.fragment,p),j(b.$$.fragment,p),j(D.$$.fragment,p),j(V.$$.fragment,p),j(k.$$.fragment,p),ae=!1},d(p){p&&T(n),J(m),J(b),J(D),J(V),J(k)}}}function ft(l){let n=A("common.codec-server")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function ct(l){let n,e,t,r;return n=new Ve({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:A("data-encoder.no-browser-override-description",{level:l[5]})}}),t=new Ve({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:A("data-encoder.browser-override-description",{level:l[5]})}}),{c(){G(n.$$.fragment),e=O(),G(t.$$.fragment)},l(i){X(n.$$.fragment,i),e=M(i),X(t.$$.fragment,i)},m(i,s){z(n,i,s),F(i,e,s),z(t,i,s),r=!0},p(i,s){const g={};s&32&&(g.label=A("data-encoder.no-browser-override-description",{level:i[5]})),n.$set(g);const f={};s&32&&(f.label=A("data-encoder.browser-override-description",{level:i[5]})),t.$set(f)},i(i){r||(q(n.$$.fragment,i),q(t.$$.fragment,i),r=!0)},o(i){j(n.$$.fragment,i),j(t.$$.fragment,i),r=!1},d(i){i&&T(e),J(n,i),J(t,i)}}}function ut(l){let n,e;return n=new tt({props:{name:"override",group:l[7],$$slots:{default:[ct]},$$scope:{ctx:l}}}),{c(){G(n.$$.fragment)},l(t){X(n.$$.fragment,t)},m(t,r){z(n,t,r),e=!0},p(t,r){const i={};r&4194336&&(i.$$scope={dirty:r,ctx:t}),n.$set(i)},i(t){e||(q(n.$$.fragment,t),e=!0)},o(t){j(n.$$.fragment,t),e=!1},d(t){J(n,t)}}}function _t(l){let n=A("common.apply")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function mt(l){let n=A("common.cancel")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function pt(l){let n,e,t=l[2]&&Ne(l);return{c(){t&&t.c(),n=ve()},l(r){t&&t.l(r),n=ve()},m(r,i){t&&t.m(r,i),F(r,n,i),e=!0},p(r,[i]){r[2]?t?(t.p(r,i),i&4&&q(t,1)):(t=Ne(r),t.c(),q(t,1),t.m(n.parentNode,n)):t&&(Re(),j(t,1,1,()=>{t=null}),Be())},i(r){e||(q(t),e=!0)},o(r){j(t),e=!1},d(r){r&&T(n),t&&t.d(r)}}}const _e=Pe(!1);function gt(l,n,e){let t,r,i,s,g,f,u,h=fe,m,w,I;Z(l,Te,k=>e(17,i=k)),Z(l,xe,k=>e(13,s=k)),Z(l,we,k=>e(18,f=k)),Z(l,_e,k=>e(2,u=k)),Z(l,ke,k=>e(19,m=k)),Z(l,Ee,k=>e(20,w=k)),Z(l,Ce,k=>e(21,I=k)),l.$$.on_destroy.push(()=>h());var H,N,b;let L=I??"",D=w??!1,_=m??!1,o=Pe(f);Z(l,o,k=>e(6,g=k));const v=()=>{e(0,L=I),e(1,D=w),e(3,_=m),y(o,g=f,g),y(_e,u=!1,u)},a=()=>{e(4,t=""),y(Ce,I=dt(L),I),y(Ee,w=D,w),y(ke,m=_,m),y(_e,u=!1,u),y(we,f=g,f),s.url.pathname.endsWith("history")&&y(Te,i=Date.now(),i)};function c(k){L=k,e(0,L)}function V(k){D=k,e(1,D)}function d(k){_=k,e(3,_)}return l.$$.update=()=>{l.$$.dirty&15360&&e(5,r=!(e(12,b=e(11,N=e(10,H=s.data)===null||H===void 0?void 0:H.settings)===null||N===void 0?void 0:N.runtimeEnvironment)===null||b===void 0)&&b.isCloud?A("common.namespaces"):A("common.cluster")),l.$$.dirty&3&&(D&&!Ye(L)?e(4,t=A("data-encoder.access-token-https-error")):L&&!Ze(L)?e(4,t=A("data-encoder.prefix-error")):e(4,t="")),l.$$.dirty&4&&(u||v())},e(4,t=""),[L,D,u,_,t,r,g,o,v,a,H,N,b,s,c,V,d]}class qt extends pe{constructor(n){super(),ge(this,n,gt,pt,me,{})}}export{qt as D,_e as v}; +import{s as me,h as R,b as O,j as B,k as P,d as M,f as T,m as C,W as ee,H as le,i as F,n as E,$ as he,p as te,F as We,G as Fe,t as K,l as Q,q as de,a as Ge,u as Xe,g as ze,e as Je,B as oe,N as se,O as re,v as fe,x as ve,c as Z,a9 as Ke,w as y}from"./scheduler.C46pS-76.js";import{S as pe,i as ge,c as G,a as X,m as z,t as q,g as Re,b as j,e as Be,d as J,f as ie,h as Qe}from"./index.dOVbn71B.js";import{L as Ue}from"./label.BlTcUXFh.js";import{t as ne}from"./tw-merge.Ds6tgvmq.js";import{T as be}from"./toggle-switch.C9lxIG0w.js";import{t as A}from"./translate.BBe5dcco.js";import{o as we,i as ke,p as Ee,c as Ce,v as Ye,b as Ze}from"./data-encoder-config.BAPO1ve2.js";import{r as Te}from"./workflow-run.CoKQBOG_.js";import{L as ye}from"./link.C_v4aoat.js";import{B as De}from"./button.hs88FdV4.js";import{A as $e}from"./accordion.B8FZU59C.js";import{p as xe}from"./stores.Ds4o9nwd.js";import{a as et}from"./index.mPGqfhEB.js";import{w as Pe}from"./entry.kylZibtV.js";import{R as tt,a as Ve}from"./radio-input.OzdV2p8V.js";const nt=l=>({}),Ae=l=>({});function Ie(l){let n,e;return{c(){n=R("p"),e=K(l[11]),this.h()},l(t){n=B(t,"P",{class:!0});var r=P(n);e=Q(r,l[11]),r.forEach(T),this.h()},h(){C(n,"class","-mt-1 text-sm")},m(t,r){F(t,n,r),E(n,e)},p(t,r){r&2048&&de(e,t[11])},d(t){t&&T(n)}}}function Le(l){let n,e,t=l[2]&&Se(l);const r=l[15].error,i=Ge(r,l,l[14],Ae);return{c(){t&&t.c(),n=O(),i&&i.c()},l(s){t&&t.l(s),n=M(s),i&&i.l(s)},m(s,g){t&&t.m(s,g),F(s,n,g),i&&i.m(s,g),e=!0},p(s,g){s[2]?t?t.p(s,g):(t=Se(s),t.c(),t.m(n.parentNode,n)):t&&(t.d(1),t=null),i&&i.p&&(!e||g&16384)&&Xe(i,r,s,s[14],e?Je(r,s[14],g,nt):ze(s[14]),Ae)},i(s){e||(q(i,s),e=!0)},o(s){j(i,s),e=!1},d(s){s&&T(n),t&&t.d(s),i&&i.d(s)}}}function Se(l){let n,e;return{c(){n=R("p"),e=K(l[2])},l(t){n=B(t,"P",{});var r=P(n);e=Q(r,l[2]),r.forEach(T)},m(t,r){F(t,n,r),E(n,e)},p(t,r){r&4&&de(e,t[2])},d(t){t&&T(n)}}}function He(l){var g;let n,e,t=(((g=l[0])==null?void 0:g.length)??0)+"",r,i,s;return{c(){n=R("span"),e=R("span"),r=K(t),i=K(" / "),s=K(l[12]),this.h()},l(f){n=B(f,"SPAN",{class:!0});var u=P(n);e=B(u,"SPAN",{class:!0});var h=P(e);r=Q(h,t),h.forEach(T),i=Q(u," / "),s=Q(u,l[12]),u.forEach(T),this.h()},h(){var f,u;C(e,"class","text-information svelte-1ps5vu5"),le(e,"warn",l[12]-((f=l[0])==null?void 0:f.length)<=5),le(e,"error",l[12]===((u=l[0])==null?void 0:u.length)),C(n,"class","count svelte-1ps5vu5")},m(f,u){F(f,n,u),E(n,e),E(e,r),E(n,i),E(n,s)},p(f,u){var h,m,w;u&1&&t!==(t=(((h=f[0])==null?void 0:h.length)??0)+"")&&de(r,t),u&4097&&le(e,"warn",f[12]-((m=f[0])==null?void 0:m.length)<=5),u&4097&&le(e,"error",f[12]===((w=f[0])==null?void 0:w.length)),u&4096&&de(s,f[12])},d(f){f&&T(n)}}}function lt(l){let n,e,t,r,i,s,g,f,u,h,m,w,I,H,N,b,L,D;e=new Ue({props:{required:l[10],hidden:l[8],label:l[7],for:l[9]}});let _=l[11]&&Ie(l),o=!l[3]&&Le(l),v=l[12]&&!l[1]&&He(l);return{c(){n=R("div"),G(e.$$.fragment),t=O(),_&&_.c(),r=O(),i=R("div"),s=R("textarea"),h=O(),m=R("div"),w=R("div"),o&&o.c(),H=O(),v&&v.c(),this.h()},l(a){n=B(a,"DIV",{class:!0});var c=P(n);X(e.$$.fragment,c),t=M(c),_&&_.l(c),r=M(c),i=B(c,"DIV",{class:!0});var V=P(i);s=B(V,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0,maxlength:!0}),P(s).forEach(T),V.forEach(T),h=M(c),m=B(c,"DIV",{class:!0});var d=P(m);w=B(d,"DIV",{class:!0,"aria-live":!0});var k=P(w);o&&o.l(k),k.forEach(T),H=M(d),v&&v.l(d),d.forEach(T),c.forEach(T),this.h()},h(){C(s,"class",g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",l[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"),C(s,"id",l[9]),s.disabled=l[1],C(s,"placeholder",l[4]),C(s,"rows",l[5]),C(s,"spellcheck",l[6]),C(s,"maxlength",f=l[12]>0?l[12]:void 0),C(i,"class",u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!l[3]&&"error",!l[1]&&"hover:border-information"))+" svelte-1ps5vu5"),C(w,"class","error-msg svelte-1ps5vu5"),C(w,"aria-live",I=l[3]?"off":"assertive"),le(w,"min-width",l[12]),C(m,"class","flex justify-between gap-2"),C(n,"class",N=ee(ne("group flex flex-col gap-1",l[13]))+" svelte-1ps5vu5")},m(a,c){F(a,n,c),z(e,n,null),E(n,t),_&&_.m(n,null),E(n,r),E(n,i),E(i,s),he(s,l[0]),E(n,h),E(n,m),E(m,w),o&&o.m(w,null),E(m,H),v&&v.m(m,null),b=!0,L||(D=[te(s,"input",l[21]),te(s,"input",l[16]),te(s,"change",l[17]),te(s,"focus",l[18]),te(s,"blur",l[19]),te(s,"keydown",We(l[20]))],L=!0)},p(a,[c]){const V={};c&1024&&(V.required=a[10]),c&256&&(V.hidden=a[8]),c&128&&(V.label=a[7]),c&512&&(V.for=a[9]),e.$set(V),a[11]?_?_.p(a,c):(_=Ie(a),_.c(),_.m(n,r)):_&&(_.d(1),_=null),(!b||c&2&&g!==(g=ee(ne("surface-primary min-h-fit w-full rounded-lg px-3 py-2 text-sm focus-visible:outline-none",a[1]&&"cursor-not-allowed opacity-50"))+" svelte-1ps5vu5"))&&C(s,"class",g),(!b||c&512)&&C(s,"id",a[9]),(!b||c&2)&&(s.disabled=a[1]),(!b||c&16)&&C(s,"placeholder",a[4]),(!b||c&32)&&C(s,"rows",a[5]),(!b||c&64)&&C(s,"spellcheck",a[6]),(!b||c&4096&&f!==(f=a[12]>0?a[12]:void 0))&&C(s,"maxlength",f),c&1&&he(s,a[0]),(!b||c&10&&u!==(u=ee(ne("relative box-border inline-flex w-full rounded-lg border-2 border-subtle focus-within:border-information focus-within:ring-4 focus-within:ring-primary/70",!a[3]&&"error",!a[1]&&"hover:border-information"))+" svelte-1ps5vu5"))&&C(i,"class",u),a[3]?o&&(Re(),j(o,1,1,()=>{o=null}),Be()):o?(o.p(a,c),c&8&&q(o,1)):(o=Le(a),o.c(),q(o,1),o.m(w,null)),(!b||c&8&&I!==(I=a[3]?"off":"assertive"))&&C(w,"aria-live",I),(!b||c&4096)&&le(w,"min-width",a[12]),a[12]&&!a[1]?v?v.p(a,c):(v=He(a),v.c(),v.m(m,null)):v&&(v.d(1),v=null),(!b||c&8192&&N!==(N=ee(ne("group flex flex-col gap-1",a[13]))+" svelte-1ps5vu5"))&&C(n,"class",N)},i(a){b||(q(e.$$.fragment,a),q(o),b=!0)},o(a){j(e.$$.fragment,a),j(o),b=!1},d(a){a&&T(n),J(e),_&&_.d(),o&&o.d(),v&&v.d(),L=!1,Fe(D)}}}function st(l,n,e){let{$$slots:t={},$$scope:r}=n,{disabled:i=!1}=n,{error:s=""}=n,{isValid:g=!0}=n,{placeholder:f=""}=n,{rows:u=5}=n,{spellcheck:h=null}=n,{value:m}=n,{label:w}=n,{labelHidden:I=!1}=n,{id:H}=n,{required:N=!1}=n,{description:b=""}=n,{maxLength:L=0}=n,{class:D="text-primary"}=n;function _(d){oe.call(this,l,d)}function o(d){oe.call(this,l,d)}function v(d){oe.call(this,l,d)}function a(d){oe.call(this,l,d)}function c(d){oe.call(this,l,d)}function V(){m=this.value,e(0,m)}return l.$$set=d=>{"disabled"in d&&e(1,i=d.disabled),"error"in d&&e(2,s=d.error),"isValid"in d&&e(3,g=d.isValid),"placeholder"in d&&e(4,f=d.placeholder),"rows"in d&&e(5,u=d.rows),"spellcheck"in d&&e(6,h=d.spellcheck),"value"in d&&e(0,m=d.value),"label"in d&&e(7,w=d.label),"labelHidden"in d&&e(8,I=d.labelHidden),"id"in d&&e(9,H=d.id),"required"in d&&e(10,N=d.required),"description"in d&&e(11,b=d.description),"maxLength"in d&&e(12,L=d.maxLength),"class"in d&&e(13,D=d.class),"$$scope"in d&&e(14,r=d.$$scope)},[m,i,s,g,f,u,h,w,I,H,N,b,L,D,r,t,_,o,v,a,c,V]}class rt extends pe{constructor(n){super(),ge(this,n,st,lt,me,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,maxLength:12,class:13})}}function qe(l){let n,e=A("data-encoder.include-cross-origin-credentials-warning")+"",t;return{c(){n=R("small"),t=K(e),this.h()},l(r){n=B(r,"SMALL",{"data-testid":!0});var i=P(n);t=Q(i,e),i.forEach(T),this.h()},h(){C(n,"data-testid","data-encoder-cross-origin-credentials")},m(r,i){F(r,n,i),E(n,t)},p:fe,d(r){r&&T(n)}}}function it(l){let n,e,t,r,i,s,g,f,u,h,m,w;function I(o){l[4](o)}let H={id:"data-encoder-endpoint-input",rows:3,placeholder:A("data-encoder.endpoint-placeholder"),error:l[3],isValid:!l[3],label:A("data-encoder.endpoint-title"),description:A("data-encoder.endpoint-description")};l[0]!==void 0&&(H.value=l[0]),t=new rt({props:H}),se.push(()=>ie(t,"value",I));function N(o){l[5](o)}let b={label:A("data-encoder.pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};l[1]!==void 0&&(b.checked=l[1]),s=new be({props:b}),se.push(()=>ie(s,"checked",N));function L(o){l[6](o)}let D={label:A("data-encoder.include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};l[2]!==void 0&&(D.checked=l[2]),u=new be({props:D}),se.push(()=>ie(u,"checked",L));let _=l[2]&&qe();return{c(){n=R("div"),e=R("div"),G(t.$$.fragment),i=O(),G(s.$$.fragment),f=O(),G(u.$$.fragment),m=O(),_&&_.c(),this.h()},l(o){n=B(o,"DIV",{class:!0});var v=P(n);e=B(v,"DIV",{class:!0});var a=P(e);X(t.$$.fragment,a),i=M(a),X(s.$$.fragment,a),f=M(a),X(u.$$.fragment,a),m=M(a),_&&_.l(a),a.forEach(T),v.forEach(T),this.h()},h(){C(e,"class","flex flex-col gap-2"),C(n,"class","flex flex-col gap-4")},m(o,v){F(o,n,v),E(n,e),z(t,e,null),E(e,i),z(s,e,null),E(e,f),z(u,e,null),E(e,m),_&&_.m(e,null),w=!0},p(o,[v]){const a={};v&8&&(a.error=o[3]),v&8&&(a.isValid=!o[3]),!r&&v&1&&(r=!0,a.value=o[0],re(()=>r=!1)),t.$set(a);const c={};!g&&v&2&&(g=!0,c.checked=o[1],re(()=>g=!1)),s.$set(c);const V={};!h&&v&4&&(h=!0,V.checked=o[2],re(()=>h=!1)),u.$set(V),o[2]?_?_.p(o,v):(_=qe(),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(o){w||(q(t.$$.fragment,o),q(s.$$.fragment,o),q(u.$$.fragment,o),w=!0)},o(o){j(t.$$.fragment,o),j(s.$$.fragment,o),j(u.$$.fragment,o),w=!1},d(o){o&&T(n),J(t),J(s),J(u),_&&_.d()}}}function at(l,n,e){let{endpoint:t=""}=n,{passToken:r=!1}=n,{includeCreds:i=!1}=n,{error:s=""}=n;function g(h){t=h,e(0,t)}function f(h){r=h,e(1,r)}function u(h){i=h,e(2,i)}return l.$$set=h=>{"endpoint"in h&&e(0,t=h.endpoint),"passToken"in h&&e(1,r=h.passToken),"includeCreds"in h&&e(2,i=h.includeCreds),"error"in h&&e(3,s=h.error)},[t,r,i,s,g,f,u]}class ot extends pe{constructor(n){super(),ge(this,n,at,it,me,{endpoint:0,passToken:1,includeCreds:2,error:3})}}const dt=l=>l.replace(/\/+$/,"");function Ne(l){let n,e,t,r,i=A("common.codec-server")+"",s,g,f,u=A("data-encoder.codec-server-description-prefix")+"",h,m,w,I=A("data-encoder.codec-server-description-suffix",{level:l[5]})+"",H,N,b,L,D,_,o,v,a,c,V,d,k,ue,ae;m=new ye({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[ft]},$$scope:{ctx:l}}}),b=new $e({props:{"data-testid":"override-accordion",title:l[6]?A("data-encoder.browser-override-description",{level:l[5]}):A("data-encoder.no-browser-override-description",{level:l[5]}),$$slots:{default:[ut]},$$scope:{ctx:l}}});function je(p){l[14](p)}function Oe(p){l[15](p)}function Me(p){l[16](p)}let ce={error:l[4]};return l[0]!==void 0&&(ce.endpoint=l[0]),l[1]!==void 0&&(ce.passToken=l[1]),l[3]!==void 0&&(ce.includeCreds=l[3]),D=new ot({props:ce}),se.push(()=>ie(D,"endpoint",je)),se.push(()=>ie(D,"passToken",Oe)),se.push(()=>ie(D,"includeCreds",Me)),V=new De({props:{disabled:!!l[4],"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[_t]},$$scope:{ctx:l}}}),V.$on("click",l[9]),k=new De({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[mt]},$$scope:{ctx:l}}}),k.$on("click",l[8]),{c(){n=R("aside"),e=R("div"),t=R("div"),r=R("h3"),s=K(i),g=O(),f=R("p"),h=K(u),G(m.$$.fragment),w=O(),H=K(I),N=O(),G(b.$$.fragment),L=O(),G(D.$$.fragment),a=O(),c=R("div"),G(V.$$.fragment),d=O(),G(k.$$.fragment),this.h()},l(p){n=B(p,"ASIDE",{class:!0});var S=P(n);e=B(S,"DIV",{class:!0});var W=P(e);t=B(W,"DIV",{class:!0});var x=P(t);r=B(x,"H3",{"data-testid":!0});var Y=P(r);s=Q(Y,i),Y.forEach(T),x.forEach(T),g=M(W),f=B(W,"P",{class:!0});var U=P(f);h=Q(U,u),X(m.$$.fragment,U),w=M(U),H=Q(U,I),U.forEach(T),N=M(W),X(b.$$.fragment,W),L=M(W),X(D.$$.fragment,W),a=M(W),c=B(W,"DIV",{class:!0});var $=P(c);X(V.$$.fragment,$),d=M($),X(k.$$.fragment,$),$.forEach(T),W.forEach(T),S.forEach(T),this.h()},h(){C(r,"data-testid","data-encoder-title"),C(t,"class","flex items-center justify-between space-x-2"),C(f,"class","text-sm"),C(c,"class","flex items-center gap-4"),C(e,"class","flex w-full flex-col gap-4 xl:w-1/2"),C(n,"class","surface-primary relative flex h-[540px] w-full flex-col gap-6 overflow-auto border-b border-subtle p-4 md:p-12")},m(p,S){F(p,n,S),E(n,e),E(e,t),E(t,r),E(r,s),E(e,g),E(e,f),E(f,h),z(m,f,null),E(f,w),E(f,H),E(e,N),z(b,e,null),E(e,L),z(D,e,null),E(e,a),E(e,c),z(V,c,null),E(c,d),z(k,c,null),ae=!0},p(p,S){const W={};S&4194304&&(W.$$scope={dirty:S,ctx:p}),m.$set(W),(!ae||S&32)&&I!==(I=A("data-encoder.codec-server-description-suffix",{level:p[5]})+"")&&de(H,I);const x={};S&96&&(x.title=p[6]?A("data-encoder.browser-override-description",{level:p[5]}):A("data-encoder.no-browser-override-description",{level:p[5]})),S&4194336&&(x.$$scope={dirty:S,ctx:p}),b.$set(x);const Y={};S&16&&(Y.error=p[4]),!_&&S&1&&(_=!0,Y.endpoint=p[0],re(()=>_=!1)),!o&&S&2&&(o=!0,Y.passToken=p[1],re(()=>o=!1)),!v&&S&8&&(v=!0,Y.includeCreds=p[3],re(()=>v=!1)),D.$set(Y);const U={};S&16&&(U.disabled=!!p[4]),S&4194304&&(U.$$scope={dirty:S,ctx:p}),V.$set(U);const $={};S&4194304&&($.$$scope={dirty:S,ctx:p}),k.$set($)},i(p){ae||(q(m.$$.fragment,p),q(b.$$.fragment,p),q(D.$$.fragment,p),q(V.$$.fragment,p),q(k.$$.fragment,p),p&&(ue||Ke(()=>{ue=Qe(n,et,{y:-50,delay:0,duration:500}),ue.start()})),ae=!0)},o(p){j(m.$$.fragment,p),j(b.$$.fragment,p),j(D.$$.fragment,p),j(V.$$.fragment,p),j(k.$$.fragment,p),ae=!1},d(p){p&&T(n),J(m),J(b),J(D),J(V),J(k)}}}function ft(l){let n=A("common.codec-server")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function ct(l){let n,e,t,r;return n=new Ve({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:A("data-encoder.no-browser-override-description",{level:l[5]})}}),t=new Ve({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:A("data-encoder.browser-override-description",{level:l[5]})}}),{c(){G(n.$$.fragment),e=O(),G(t.$$.fragment)},l(i){X(n.$$.fragment,i),e=M(i),X(t.$$.fragment,i)},m(i,s){z(n,i,s),F(i,e,s),z(t,i,s),r=!0},p(i,s){const g={};s&32&&(g.label=A("data-encoder.no-browser-override-description",{level:i[5]})),n.$set(g);const f={};s&32&&(f.label=A("data-encoder.browser-override-description",{level:i[5]})),t.$set(f)},i(i){r||(q(n.$$.fragment,i),q(t.$$.fragment,i),r=!0)},o(i){j(n.$$.fragment,i),j(t.$$.fragment,i),r=!1},d(i){i&&T(e),J(n,i),J(t,i)}}}function ut(l){let n,e;return n=new tt({props:{name:"override",group:l[7],$$slots:{default:[ct]},$$scope:{ctx:l}}}),{c(){G(n.$$.fragment)},l(t){X(n.$$.fragment,t)},m(t,r){z(n,t,r),e=!0},p(t,r){const i={};r&4194336&&(i.$$scope={dirty:r,ctx:t}),n.$set(i)},i(t){e||(q(n.$$.fragment,t),e=!0)},o(t){j(n.$$.fragment,t),e=!1},d(t){J(n,t)}}}function _t(l){let n=A("common.apply")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function mt(l){let n=A("common.cancel")+"",e;return{c(){e=K(n)},l(t){e=Q(t,n)},m(t,r){F(t,e,r)},p:fe,d(t){t&&T(e)}}}function pt(l){let n,e,t=l[2]&&Ne(l);return{c(){t&&t.c(),n=ve()},l(r){t&&t.l(r),n=ve()},m(r,i){t&&t.m(r,i),F(r,n,i),e=!0},p(r,[i]){r[2]?t?(t.p(r,i),i&4&&q(t,1)):(t=Ne(r),t.c(),q(t,1),t.m(n.parentNode,n)):t&&(Re(),j(t,1,1,()=>{t=null}),Be())},i(r){e||(q(t),e=!0)},o(r){j(t),e=!1},d(r){r&&T(n),t&&t.d(r)}}}const _e=Pe(!1);function gt(l,n,e){let t,r,i,s,g,f,u,h=fe,m,w,I;Z(l,Te,k=>e(17,i=k)),Z(l,xe,k=>e(13,s=k)),Z(l,we,k=>e(18,f=k)),Z(l,_e,k=>e(2,u=k)),Z(l,ke,k=>e(19,m=k)),Z(l,Ee,k=>e(20,w=k)),Z(l,Ce,k=>e(21,I=k)),l.$$.on_destroy.push(()=>h());var H,N,b;let L=I??"",D=w??!1,_=m??!1,o=Pe(f);Z(l,o,k=>e(6,g=k));const v=()=>{e(0,L=I),e(1,D=w),e(3,_=m),y(o,g=f,g),y(_e,u=!1,u)},a=()=>{e(4,t=""),y(Ce,I=dt(L),I),y(Ee,w=D,w),y(ke,m=_,m),y(_e,u=!1,u),y(we,f=g,f),s.url.pathname.endsWith("history")&&y(Te,i=Date.now(),i)};function c(k){L=k,e(0,L)}function V(k){D=k,e(1,D)}function d(k){_=k,e(3,_)}return l.$$.update=()=>{l.$$.dirty&15360&&e(5,r=!(e(12,b=e(11,N=e(10,H=s.data)===null||H===void 0?void 0:H.settings)===null||N===void 0?void 0:N.runtimeEnvironment)===null||b===void 0)&&b.isCloud?A("common.namespaces"):A("common.cluster")),l.$$.dirty&3&&(D&&!Ye(L)?e(4,t=A("data-encoder.access-token-https-error")):L&&!Ze(L)?e(4,t=A("data-encoder.prefix-error")):e(4,t="")),l.$$.dirty&4&&(u||v())},e(4,t=""),[L,D,u,_,t,r,g,o,v,a,H,N,b,s,c,V,d]}class qt extends pe{constructor(n){super(),ge(this,n,gt,pt,me,{})}}export{qt as D,_e as v}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder.B_90sJUu.js b/ui/assets/local/_app/immutable/chunks/data-encoder.CsUWoJ2q.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/data-encoder.B_90sJUu.js rename to ui/assets/local/_app/immutable/chunks/data-encoder.CsUWoJ2q.js index b0f53d6b9..331f1ab5b 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder.B_90sJUu.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder.CsUWoJ2q.js @@ -1 +1 @@ -import{C as o}from"./scheduler.C46pS-76.js";import{p as i}from"./stores.Dz-RNcUk.js";import{t as k}from"./translate.BBe5dcco.js";import{a as f}from"./auth-user.BOlglCm6.js";import{c as u,o as m,p as E,i as A,v as O,s as h,a as y}from"./data-encoder-config.D-DAVwjK.js";import{s as T}from"./parse-with-big-int.BKSBwM2t.js";const b=(e,a=u,n=m)=>{var t;return o(n)&&o(a)||((t=e==null?void 0:e.codec)==null?void 0:t.endpoint)||o(a)||""},x=(e,a=E,n=u,d=m)=>{var s,r;const t=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.passAccessToken):!!o(a);return t?!!o(a):p},P=(e,a=A,n=u,d=m)=>{var s,r;const t=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.includeCredentials):!!o(a);return t?!!o(a):p};async function C({type:e,payloads:a,namespace:n=o(i).params.namespace,settings:d=o(i).data.settings}){const t=b(d),p=x(d),s=P(d),r={"Content-Type":"application/json","X-Namespace":n};if(p)if(O(t)){let c=o(f).accessToken;const l=o(f).idToken;globalThis!=null&&globalThis.AccessToken?c=await(globalThis==null?void 0:globalThis.AccessToken()):l&&(r["Authorization-Extras"]=l),r.Authorization=`Bearer ${c}`}else return h(),a;const v=s?{headers:r,credentials:"include",method:"POST",body:T(a)}:{headers:r,method:"POST",body:T(a)};return fetch(t+`/${e}`,v).then(c=>{if(c.ok===!1)throw{statusCode:c.status,statusText:c.statusText,response:c,message:k(`common.${e}-failed`)};return c.json()}).then(c=>(y(),c)).catch(c=>{if(h(c),e==="decode")return a;throw c})}async function z({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return C({type:"decode",payloads:e,namespace:a,settings:n})}async function B({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return C({type:"encode",payloads:e,namespace:a,settings:n})}export{x as a,P as b,z as d,B as e,b as g}; +import{C as o}from"./scheduler.C46pS-76.js";import{p as i}from"./stores.Ds4o9nwd.js";import{t as k}from"./translate.BBe5dcco.js";import{a as f}from"./auth-user.CfsLeCYD.js";import{c as u,o as m,p as E,i as A,v as O,s as h,a as y}from"./data-encoder-config.BAPO1ve2.js";import{s as T}from"./parse-with-big-int.BKSBwM2t.js";const b=(e,a=u,n=m)=>{var t;return o(n)&&o(a)||((t=e==null?void 0:e.codec)==null?void 0:t.endpoint)||o(a)||""},x=(e,a=E,n=u,d=m)=>{var s,r;const t=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.passAccessToken):!!o(a);return t?!!o(a):p},P=(e,a=A,n=u,d=m)=>{var s,r;const t=o(d)&&o(n),p=(s=e==null?void 0:e.codec)!=null&&s.endpoint?!!((r=e==null?void 0:e.codec)!=null&&r.includeCredentials):!!o(a);return t?!!o(a):p};async function C({type:e,payloads:a,namespace:n=o(i).params.namespace,settings:d=o(i).data.settings}){const t=b(d),p=x(d),s=P(d),r={"Content-Type":"application/json","X-Namespace":n};if(p)if(O(t)){let c=o(f).accessToken;const l=o(f).idToken;globalThis!=null&&globalThis.AccessToken?c=await(globalThis==null?void 0:globalThis.AccessToken()):l&&(r["Authorization-Extras"]=l),r.Authorization=`Bearer ${c}`}else return h(),a;const v=s?{headers:r,credentials:"include",method:"POST",body:T(a)}:{headers:r,method:"POST",body:T(a)};return fetch(t+`/${e}`,v).then(c=>{if(c.ok===!1)throw{statusCode:c.status,statusText:c.statusText,response:c,message:k(`common.${e}-failed`)};return c.json()}).then(c=>(y(),c)).catch(c=>{if(h(c),e==="decode")return a;throw c})}async function z({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return C({type:"decode",payloads:e,namespace:a,settings:n})}async function B({payloads:e,namespace:a=o(i).params.namespace,settings:n=o(i).data.settings}){return C({type:"encode",payloads:e,namespace:a,settings:n})}export{x as a,P as b,z as d,B as e,b as g}; diff --git a/ui/assets/local/_app/immutable/chunks/data-encoder.rFK9EOf0.js b/ui/assets/local/_app/immutable/chunks/data-encoder.XIVVN3o2.js similarity index 79% rename from ui/assets/local/_app/immutable/chunks/data-encoder.rFK9EOf0.js rename to ui/assets/local/_app/immutable/chunks/data-encoder.XIVVN3o2.js index 3fb1d1b54..0e83ecb6e 100644 --- a/ui/assets/local/_app/immutable/chunks/data-encoder.rFK9EOf0.js +++ b/ui/assets/local/_app/immutable/chunks/data-encoder.XIVVN3o2.js @@ -1 +1 @@ -import{w,d as A}from"./entry.DLEzeuD9.js";import{p as B}from"./stores.Dz-RNcUk.js";import{a as N}from"./auth-user.BOlglCm6.js";import{c as b,o as v,l as x}from"./data-encoder-config.D-DAVwjK.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; +import{w,d as A}from"./entry.kylZibtV.js";import{p as B}from"./stores.Ds4o9nwd.js";import{a as N}from"./auth-user.CfsLeCYD.js";import{c as b,o as v,l as x}from"./data-encoder-config.BAPO1ve2.js";const I=w("notRequested"),J=A([B,b,v,x,I,N],([s,t,k,e,n,c])=>{var d,i,a,m,u,l,R,f,q;const T=s.params.namespace,r=(a=(i=(d=s==null?void 0:s.data)==null?void 0:d.settings)==null?void 0:i.codec)==null?void 0:a.endpoint,h=!!((l=(u=(m=s==null?void 0:s.data)==null?void 0:m.settings)==null?void 0:u.codec)!=null&&l.passAccessToken),C=!!((q=(f=(R=s==null?void 0:s.data)==null?void 0:R.settings)==null?void 0:f.codec)!=null&&q.includeCredentials),o=k?t:r||t,E=c==null?void 0:c.accessToken;return{namespace:T,settingsEndpoint:r,settingsPassAccessToken:h,settingsIncludeCredentials:C,endpoint:o,accessToken:E,hasNotRequested:o?e==="notRequested":n==="notRequested",hasError:o?e==="error":n==="error",hasSuccess:o?e==="success":n==="success"}});export{J as d}; diff --git a/ui/assets/local/_app/immutable/chunks/decode-payload.BTpeWKqJ.js b/ui/assets/local/_app/immutable/chunks/decode-payload.CR1Tto5x.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/decode-payload.BTpeWKqJ.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.CR1Tto5x.js index d81f1196f..f3eaf424a 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.BTpeWKqJ.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.CR1Tto5x.js @@ -1 +1 @@ -import{C as h}from"./scheduler.C46pS-76.js";import{p as u}from"./stores.Dz-RNcUk.js";import{g as C,d as p}from"./data-encoder.B_90sJUu.js";import{a as W}from"./auth-user.BOlglCm6.js";import{a as w}from"./atob.ODDrCDK_.js";import{f as g,h as i}from"./has.BWrERxPV.js";import{p as x}from"./parse-with-big-int.BKSBwM2t.js";const P=e=>Array.isArray(e)?e:[e];function l(e,o=!0){var c;if(e===null)return e;try{const r=x(w(String((e==null?void 0:e.data)??"")));return o?r:{...e,data:r}}catch(r){console.warn("Could not parse payload: ",r)}return w(String(((c=e==null?void 0:e.metadata)==null?void 0:c.encoding)??""))==="binary/null"?o?null:{...e,data:null}:e}const J=(e,o=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const s=e.searchAttributes.indexedFields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}else if(i(e,"searchAttributes")){const s=e.searchAttributes;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"memo")&&i(e.memo,"fields")){const s=e.memo.fields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"header")&&i(e.header,"fields")){const s=e.header.fields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"queryResult")){const s=e==null?void 0:e.queryResult;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}return e},j=e=>async(o,s=!0)=>{if(C(e)){const c=await p({payloads:{payloads:o},settings:e});return((c==null?void 0:c.payloads)??[]).map(r=>l(r,s))}else return o.map(c=>l(c,s))},R=e=>async o=>{if(C(e)){const s=await p({payloads:{payloads:o},settings:e});return(s==null?void 0:s.payloads)??[]}else return o},m=(e,...o)=>{for(const s of o)if(e===s)return!0;return!1},K=async(e,o=h(u).data.settings)=>{try{return(await j(o)([e]))[0]||""}catch{return""}},E=async(e,o=h(u).params.namespace,s=h(u).data.settings,c=h(W).accessToken)=>{const r=j(s);if(e)for(const d of Object.keys(e))if(m(d,"payloads","encodedAttributes")&&e[d]){const f=P(e[d]),a=await r(f);e[d]=m(d,"encodedAttributes")?a[0]:a}else{const f=e[d];g(f)&&(e[d]=await E(f,o,s,c))}return e},b=e=>{if(!g(e))return!1;const o=Object.keys(e);return o.length===2&&o.includes("metadata")&&o.includes("data")},q=async(e,o,s,c,r="readable",d=!0)=>{if(!e)return e;const f=r==="readable"?j(s):R(s),a={...e};if(e){if(b(a)){const n=P(a),t=await f(n,d);return(t==null?void 0:t[0])||a}for(const n of Object.keys(a))if(m(n,"payloads","encodedAttributes")&&a[n]){const t=P(a[n]),k=await f(t,d);a[n]=m(n,"encodedAttributes")?k[0]:k}else{const t=a[n];g(t)&&(a[n]=await q(t,o,s,c,r,d))}}return a},O=async({attributes:e,namespace:o,settings:s,accessToken:c})=>await E(e,o,s,c);export{K as a,l as b,q as c,J as d,O as e,b as i}; +import{C as h}from"./scheduler.C46pS-76.js";import{p as u}from"./stores.Ds4o9nwd.js";import{g as C,d as p}from"./data-encoder.CsUWoJ2q.js";import{a as W}from"./auth-user.CfsLeCYD.js";import{a as w}from"./atob.ODDrCDK_.js";import{f as g,h as i}from"./has.BWrERxPV.js";import{p as x}from"./parse-with-big-int.BKSBwM2t.js";const P=e=>Array.isArray(e)?e:[e];function l(e,o=!0){var c;if(e===null)return e;try{const r=x(w(String((e==null?void 0:e.data)??"")));return o?r:{...e,data:r}}catch(r){console.warn("Could not parse payload: ",r)}return w(String(((c=e==null?void 0:e.metadata)==null?void 0:c.encoding)??""))==="binary/null"?o?null:{...e,data:null}:e}const J=(e,o=!0)=>{if(i(e,"searchAttributes")&&i(e.searchAttributes,"indexedFields")){const s=e.searchAttributes.indexedFields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}else if(i(e,"searchAttributes")){const s=e.searchAttributes;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"memo")&&i(e.memo,"fields")){const s=e.memo.fields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"header")&&i(e.header,"fields")){const s=e.header.fields;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}if(i(e,"queryResult")){const s=e==null?void 0:e.queryResult;Object.entries(s).forEach(([c,r])=>{s[c]=l(r,o)})}return e},j=e=>async(o,s=!0)=>{if(C(e)){const c=await p({payloads:{payloads:o},settings:e});return((c==null?void 0:c.payloads)??[]).map(r=>l(r,s))}else return o.map(c=>l(c,s))},R=e=>async o=>{if(C(e)){const s=await p({payloads:{payloads:o},settings:e});return(s==null?void 0:s.payloads)??[]}else return o},m=(e,...o)=>{for(const s of o)if(e===s)return!0;return!1},K=async(e,o=h(u).data.settings)=>{try{return(await j(o)([e]))[0]||""}catch{return""}},E=async(e,o=h(u).params.namespace,s=h(u).data.settings,c=h(W).accessToken)=>{const r=j(s);if(e)for(const d of Object.keys(e))if(m(d,"payloads","encodedAttributes")&&e[d]){const f=P(e[d]),a=await r(f);e[d]=m(d,"encodedAttributes")?a[0]:a}else{const f=e[d];g(f)&&(e[d]=await E(f,o,s,c))}return e},b=e=>{if(!g(e))return!1;const o=Object.keys(e);return o.length===2&&o.includes("metadata")&&o.includes("data")},q=async(e,o,s,c,r="readable",d=!0)=>{if(!e)return e;const f=r==="readable"?j(s):R(s),a={...e};if(e){if(b(a)){const n=P(a),t=await f(n,d);return(t==null?void 0:t[0])||a}for(const n of Object.keys(a))if(m(n,"payloads","encodedAttributes")&&a[n]){const t=P(a[n]),k=await f(t,d);a[n]=m(n,"encodedAttributes")?k[0]:k}else{const t=a[n];g(t)&&(a[n]=await q(t,o,s,c,r,d))}}return a},O=async({attributes:e,namespace:o,settings:s,accessToken:c})=>await E(e,o,s,c);export{K as a,l as b,q as c,J as d,O as e,b as i}; diff --git a/ui/assets/local/_app/immutable/chunks/encode-payload.BbGvULr4.js b/ui/assets/local/_app/immutable/chunks/encode-payload.DnXS3ERP.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/encode-payload.BbGvULr4.js rename to ui/assets/local/_app/immutable/chunks/encode-payload.DnXS3ERP.js index 1d27df657..05ec338e1 100644 --- a/ui/assets/local/_app/immutable/chunks/encode-payload.BbGvULr4.js +++ b/ui/assets/local/_app/immutable/chunks/encode-payload.DnXS3ERP.js @@ -1 +1 @@ -import{C as i}from"./scheduler.C46pS-76.js";import{e as d}from"./data-encoder.B_90sJUu.js";import{d as c}from"./data-encoder.rFK9EOf0.js";import{B as p}from"./prod-browser.CoG0geaG.js";import{p as l,s as f}from"./parse-with-big-int.BKSBwM2t.js";const m=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),r=(o,t=p)=>t?m(o):o,S=o=>{if(o){const t=l(o),n=t==null?void 0:t[0];if(n)return f(n)}return""},g=(o,t="json/plain")=>({metadata:{encoding:r(t)},data:r(JSON.stringify(o))}),h=async(o,t,n=!0)=>{let a=null;if(o){const s=JSON.parse(o);if(a=[g(s,t)],i(c).endpoint&&n){const e=await d({payloads:{payloads:a}});a=(e==null?void 0:e.payloads)??null}}return a};export{h as e,S as g,g as s}; +import{C as i}from"./scheduler.C46pS-76.js";import{e as d}from"./data-encoder.CsUWoJ2q.js";import{d as c}from"./data-encoder.XIVVN3o2.js";import{B as p}from"./prod-browser.CoG0geaG.js";import{p as l,s as f}from"./parse-with-big-int.BKSBwM2t.js";const m=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),r=(o,t=p)=>t?m(o):o,S=o=>{if(o){const t=l(o),n=t==null?void 0:t[0];if(n)return f(n)}return""},g=(o,t="json/plain")=>({metadata:{encoding:r(t)},data:r(JSON.stringify(o))}),h=async(o,t,n=!0)=>{let a=null;if(o){const s=JSON.parse(o);if(a=[g(s,t)],i(c).endpoint&&n){const e=await d({payloads:{payloads:a}});a=(e==null?void 0:e.payloads)??null}}return a};export{h as e,S as g,g as s}; diff --git a/ui/assets/local/_app/immutable/chunks/entry.DLEzeuD9.js b/ui/assets/local/_app/immutable/chunks/entry.kylZibtV.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/entry.DLEzeuD9.js rename to ui/assets/local/_app/immutable/chunks/entry.kylZibtV.js index 3ecd36699..b762d644d 100644 --- a/ui/assets/local/_app/immutable/chunks/entry.DLEzeuD9.js +++ b/ui/assets/local/_app/immutable/chunks/entry.kylZibtV.js @@ -1,3 +1,3 @@ -import{v as F,P as ot,G as st,s as it,Y as ct,a6 as lt,V as ft}from"./scheduler.C46pS-76.js";import{a as ut,b as I}from"./paths.DlAH43M2.js";import{H as ne,S as ge,R as je}from"./control.CYgJF_JY.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=At.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=St(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Ht="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],Yt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,H=!1,V=!1,Ke=!1,be=!1,Ee,k,S,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],S=(o=history.state)==null?void 0:o[G],k||(k=S=Date.now(),history.replaceState({...history.state,[D]:k,[G]:S},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function Ye(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function ze(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),Ye(S),Le(Ce,M)}async function We(e,t,n,r){return Y({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function zt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),ze(S);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Gt(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const A=new URL(v,n);return s&&d(A.href),A.origin===n.origin&&(v=A.href.slice(n.origin.length)),Q?kt(v,A.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Ae(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const A=[];for(let p=0;pPromise.resolve({}),server_data_node:Ae(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Se(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||we.forEach(s=>s(i)),a?null:o}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Se(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=S;l(),H=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),Ye(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[G]:S+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,S)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(Yt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==_&&document.activeElement!==document.body;!r&&!A&&tn(),Ne=!0,f.props.page&&(R=f.props.page),H=!1,e==="popstate"&&ze(S),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&zt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===z.viewport&&n.observe(o),l.preload_code===z.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),Y({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[G],l=le(location)===le(w.url);if(c===S&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,S=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[G]:S},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` +import{v as F,P as ot,G as st,s as it,Y as ct,a6 as lt,V as ft}from"./scheduler.C46pS-76.js";import{a as ut,b as I}from"./paths.C1CnfzR-.js";import{H as ne,S as ge,R as je}from"./control.CYgJF_JY.js";new URL("sveltekit-internal://");function dt(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function ht(e){return e.split("%25").map(decodeURI).join("%25")}function pt(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function le({href:e}){return e.split("#")[0]}const gt=["href","pathname","search","toString","toJSON"];function mt(e,t,n){const r=new URL(e);Object.defineProperty(r,"searchParams",{value:new Proxy(r.searchParams,{get(a,o){if(o==="get"||o==="getAll"||o==="has")return s=>(n(s),a[o](s));t();const i=Reflect.get(a,o);return typeof i=="function"?i.bind(a):i}}),enumerable:!0,configurable:!0});for(const a of gt)Object.defineProperty(r,a,{get(){return t(),e[a]},enumerable:!0,configurable:!0});return r}const _t="/__data.json",yt=".html__data.json";function wt(e){return e.endsWith(".html")?e.replace(/\.html$/,yt):e.replace(/\/$/,"")+_t}function vt(...e){let t=5381;for(const n of e)if(typeof n=="string"){let r=n.length;for(;r;)t=t*33^n.charCodeAt(--r)}else if(ArrayBuffer.isView(n)){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let a=r.length;for(;a;)t=t*33^r[--a]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}function bt(e){const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r((e instanceof Request?e.method:(t==null?void 0:t.method)||"GET")!=="GET"&&q.delete(me(e)),De(e,t));const q=new Map;function Et(e,t){const n=me(e,t),r=document.querySelector(n);if(r!=null&&r.textContent){let{body:a,...o}=JSON.parse(r.textContent);const i=r.getAttribute("data-ttl");return i&&q.set(n,{body:a,init:o,ttl:1e3*Number(i)}),r.getAttribute("data-b64")!==null&&(a=bt(a)),Promise.resolve(new Response(a,o))}return window.fetch(e,t)}function kt(e,t,n){if(q.size>0){const r=me(e,n),a=q.get(r);if(a){if(performance.now(){const a=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(r);if(a)return t.push({name:a[1],matcher:a[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const o=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(r);if(o)return t.push({name:o[1],matcher:o[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!r)return;const i=r.split(/\[(.+?)\](?!\])/);return"/"+i.map((c,l)=>{if(l%2){if(c.startsWith("x+"))return fe(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return fe(String.fromCharCode(...c.slice(2).split("-").map(f=>parseInt(f,16))));const u=At.exec(c),[,h,g,d,m]=u;return t.push({name:d,matcher:m,optional:!!h,rest:!!g,chained:g?l===1&&i[0]==="":!1}),g?"(.*?)":h?"([^/]*)?":"([^/]+?)"}return fe(c)}).join("")}).join("")}/?$`),params:t}}function Rt(e){return!/^\([^)]+\)$/.test(e)}function It(e){return e.slice(1).split("/").filter(Rt)}function Lt(e,t,n){const r={},a=e.slice(1),o=a.filter(s=>s!==void 0);let i=0;for(let s=0;su).join("/"),i=0),l===void 0){c.rest&&(r[c.name]="");continue}if(!c.matcher||n[c.matcher](l)){r[c.name]=l;const u=t[s+1],h=a[s+1];u&&!u.rest&&u.optional&&h&&c.chained&&(i=0),!u&&!h&&Object.keys(r).length===o.length&&(i=0);continue}if(c.optional&&c.chained){i++;continue}return}if(!i)return r}function fe(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Pt({nodes:e,server_loads:t,dictionary:n,matchers:r}){const a=new Set(t);return Object.entries(n).map(([s,[c,l,u]])=>{const{pattern:h,params:g}=St(s),d={id:s,exec:m=>{const f=h.exec(m);if(f)return Lt(f,g,r)},errors:[1,...u||[]].map(m=>e[m]),layouts:[0,...l||[]].map(i),leaf:o(c)};return d.errors.length=d.layouts.length=Math.max(d.errors.length,d.layouts.length),d});function o(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function i(s){return s===void 0?s:[a.has(s),e[s]]}}function $e(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Le(e,t,n=JSON.stringify){const r=n(t);try{sessionStorage[e]=r}catch{}}const O=[];function Ut(e,t){return{subscribe:ae(e,t).subscribe}}function ae(e,t=F){let n;const r=new Set;function a(s){if(it(e,s)&&(e=s,n)){const c=!O.length;for(const l of r)l[1](),O.push(l,e);if(c){for(let l=0;l{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:a,update:o,subscribe:i}}function on(e,t,n){const r=!Array.isArray(e),a=r?[e]:e;if(!a.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return Ut(n,(i,s)=>{let c=!1;const l=[];let u=0,h=F;const g=()=>{if(u)return;h();const m=t(r?l[0]:l,i,s);o?i(m):h=ct(m)?m:F},d=a.map((m,f)=>ot(m,_=>{l[f]=_,u&=~(1<{u|=1<i)}function a(i){n=!1,t.set(i)}function o(i){let s;return t.subscribe(c=>{(s===void 0||n&&c!==s)&&i(s=c)})}return{notify:r,set:a,subscribe:o}}function Tt(){const{set:e,subscribe:t}=ae(!1);let n;async function r(){clearTimeout(n);try{const a=await fetch(`${ut}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!a.ok)return!1;const i=(await a.json()).version!==xt;return i&&(e(!0),clearTimeout(n)),i}catch{return!1}}return{subscribe:t,check:r}}function re(e,t){return e.origin!==K||!e.pathname.startsWith(t)}const Ot=-1,jt=-2,Dt=-3,$t=-4,Ct=-5,Vt=-6;function Ft(e,t){if(typeof e=="number")return a(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const n=e,r=Array(n.length);function a(o,i=!1){if(o===Ot)return;if(o===Dt)return NaN;if(o===$t)return 1/0;if(o===Ct)return-1/0;if(o===Vt)return-0;if(i)throw new Error("Invalid input");if(o in r)return r[o];const s=n[o];if(!s||typeof s!="object")r[o]=s;else if(Array.isArray(s))if(typeof s[0]=="string"){const c=s[0],l=t==null?void 0:t[c];if(l)return r[o]=l(a(s[1]));switch(c){case"Date":r[o]=new Date(s[1]);break;case"Set":const u=new Set;r[o]=u;for(let d=1;dt!=null)}const Mt="x-sveltekit-invalidated",Ht="x-sveltekit-trailing-slash";function J(e){return e instanceof ne||e instanceof ge?e.status:500}function Bt(e){return e instanceof ge?e.text:"Internal Error"}const T=$e(Ve)??{},M=$e(Ce)??{},U={url:Ue({}),page:Ue({}),navigating:ae(null),updated:Tt()};function ye(e){T[e]=_e()}function Kt(e,t){let n=e+1;for(;T[n];)delete T[n],n+=1;for(n=t+1;M[n];)delete M[n],n+=1}function $(e){return location.href=e.href,new Promise(()=>{})}function xe(){}let oe,he,X,L,pe,C;const Be=[],Z=[];let P=null;const we=[],Yt=[];let N=[],w={branch:[],error:null,url:null},ve=!1,Q=!1,Ne=!0,H=!1,V=!1,Ke=!1,be=!1,Ee,k,S,R,ee;async function sn(e,t,n){var a,o;document.URL!==location.href&&(location.href=location.href),C=e,oe=Pt(e),L=document.documentElement,pe=t,he=e.nodes[0],X=e.nodes[1],he(),X(),k=(a=history.state)==null?void 0:a[D],S=(o=history.state)==null?void 0:o[G],k||(k=S=Date.now(),history.replaceState({...history.state,[D]:k,[G]:S},""));const r=T[k];r&&(history.scrollRestoration="manual",scrollTo(r.x,r.y)),n?await en(pe,n):Zt(location.href,{replaceState:!0}),Qt()}function Ye(e){Z.some(t=>t==null?void 0:t.snapshot)&&(M[e]=Z.map(t=>{var n;return(n=t==null?void 0:t.snapshot)==null?void 0:n.capture()}))}function ze(e){var t;(t=M[e])==null||t.forEach((n,r)=>{var a,o;(o=(a=Z[r])==null?void 0:a.snapshot)==null||o.restore(n)})}function Te(){ye(k),Le(Ve,T),Ye(S),Le(Ce,M)}async function We(e,t,n,r){return Y({type:"goto",url:qe(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:n,nav_token:r,accept:()=>{t.invalidateAll&&(be=!0)}})}async function zt(e){return P={id:e.id,promise:Xe(e).then(t=>(t.type==="loaded"&&t.state.error&&(P=null),t))},P.promise}async function ue(e){const t=oe.find(n=>n.exec(Ze(e)));t&&await Promise.all([...t.layouts,t.leaf].map(n=>n==null?void 0:n[1]()))}function Je(e,t){var a;w=e.state;const n=document.querySelector("style[data-sveltekit]");n&&n.remove(),R=e.props.page,Ee=new C.root({target:t,props:{...e.props,stores:U,components:Z},hydrate:!0}),ze(S);const r={from:null,to:{params:w.params,route:{id:((a=w.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter",complete:Promise.resolve()};N.forEach(o=>o(r)),Q=!0}async function te({url:e,params:t,branch:n,status:r,error:a,route:o,form:i}){let s="never";if(I&&(e.pathname===I||e.pathname===I+"/"))s="always";else for(const d of n)(d==null?void 0:d.slash)!==void 0&&(s=d.slash);e.pathname=dt(e.pathname,s),e.search=e.search;const c={type:"loaded",state:{url:e,params:t,branch:n,error:a,route:o},props:{constructors:Gt(n).map(d=>d.node.component),page:R}};i!==void 0&&(c.props.form=i);let l={},u=!R,h=0;for(let d=0;d(s&&(c.route=!0),f[_])}),params:new Proxy(r,{get:(f,_)=>(s&&c.params.add(_),f[_])}),data:(o==null?void 0:o.data)??null,url:mt(n,()=>{s&&(c.url=!0)},f=>{s&&c.search_params.add(f)}),async fetch(f,_){let v;f instanceof Request?(v=f.url,_={body:f.method==="GET"||f.method==="HEAD"?void 0:await f.blob(),cache:f.cache,credentials:f.credentials,headers:f.headers,integrity:f.integrity,keepalive:f.keepalive,method:f.method,mode:f.mode,redirect:f.redirect,referrer:f.referrer,referrerPolicy:f.referrerPolicy,signal:f.signal,..._}):v=f;const A=new URL(v,n);return s&&d(A.href),A.origin===n.origin&&(v=A.href.slice(n.origin.length)),Q?kt(v,A.href,_):Et(v,_)},setHeaders:()=>{},depends:d,parent(){return s&&(c.parent=!0),t()},untrack(f){s=!1;try{return f()}finally{s=!0}}};i=await l.universal.load.call(null,m)??null}return{node:l,loader:e,server:o,universal:(h=l.universal)!=null&&h.load?{type:"data",data:i,uses:c}:null,data:i??(o==null?void 0:o.data)??null,slash:((g=l.universal)==null?void 0:g.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(e,t,n,r,a,o){if(be)return!0;if(!a)return!1;if(a.parent&&e||a.route&&t||a.url&&n)return!0;for(const i of a.search_params)if(r.has(i))return!0;for(const i of a.params)if(o[i]!==w.params[i])return!0;for(const i of a.dependencies)if(Be.some(s=>s(new URL(i))))return!0;return!1}function Ae(e,t){return(e==null?void 0:e.type)==="data"?e:(e==null?void 0:e.type)==="skip"?t??null:null}function Wt(e,t){if(!e)return new Set(t.searchParams.keys());const n=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const r of n){const a=e.searchParams.getAll(r),o=t.searchParams.getAll(r);a.every(i=>o.includes(i))&&o.every(i=>a.includes(i))&&n.delete(r)}return n}async function Xe({id:e,invalidating:t,url:n,params:r,route:a}){if((P==null?void 0:P.id)===e)return P.promise;const{errors:o,layouts:i,leaf:s}=a,c=[...i,s];o.forEach(p=>p==null?void 0:p().catch(()=>{})),c.forEach(p=>p==null?void 0:p[1]().catch(()=>{}));let l=null;const u=w.url?e!==w.url.pathname+w.url.search:!1,h=w.route?a.id!==w.route.id:!1,g=Wt(w.url,n);let d=!1;const m=c.map((p,y)=>{var x;const b=w.branch[y],E=!!(p!=null&&p[0])&&((b==null?void 0:b.loader)!==p[1]||Oe(d,h,u,g,(x=b.server)==null?void 0:x.uses,r));return E&&(d=!0),E});if(m.some(Boolean)){try{l=await nt(n,m)}catch(p){return se({status:J(p),error:await B(p,{url:n,params:r,route:{id:a.id}}),url:n,route:a})}if(l.type==="redirect")return l}const f=l==null?void 0:l.nodes;let _=!1;const v=c.map(async(p,y)=>{var ie;if(!p)return;const b=w.branch[y],E=f==null?void 0:f[y];if((!E||E.type==="skip")&&p[1]===(b==null?void 0:b.loader)&&!Oe(_,h,u,g,(ie=b.universal)==null?void 0:ie.uses,r))return b;if(_=!0,(E==null?void 0:E.type)==="error")throw E;return ke({loader:p[1],url:n,params:r,route:a,parent:async()=>{var Ie;const Re={};for(let ce=0;ce{});const A=[];for(let p=0;pPromise.resolve({}),server_data_node:Ae(o)}),c={node:await X(),loader:X,universal:null,server:null,data:null};return await te({url:n,params:a,branch:[s,c],status:e,error:t,route:null})}function Se(e,t){if(!e||re(e,I))return;let n;try{n=C.hooks.reroute({url:new URL(e)})??e.pathname}catch{return}const r=Ze(n);for(const a of oe){const o=a.exec(r);if(o)return{id:e.pathname+e.search,invalidating:t,route:a,params:pt(o),url:e}}}function Ze(e){return ht(e.slice(I.length)||"/")}function Qe({url:e,type:t,intent:n,delta:r}){let a=!1;const o=rt(w,n,e,t);r!==void 0&&(o.navigation.delta=r);const i={...o.navigation,cancel:()=>{a=!0,o.reject(new Error("navigation cancelled"))}};return H||we.forEach(s=>s(i)),a?null:o}async function Y({type:e,url:t,popped:n,keepfocus:r,noscroll:a,replace_state:o,state:i={},redirect_count:s=0,nav_token:c={},accept:l=xe,block:u=xe}){const h=Se(t,!1),g=Qe({url:t,type:e,delta:n==null?void 0:n.delta,intent:h});if(!g){u();return}const d=k,m=S;l(),H=!0,Q&&U.navigating.set(g.navigation),ee=c;let f=h&&await Xe(h);if(!f){if(re(t,I))return await $(t);f=await et(t,{id:null},await B(new ge(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404)}if(t=(h==null?void 0:h.url)||t,ee!==c)return g.reject(new Error("navigation aborted")),!1;if(f.type==="redirect")if(s>=20)f=await se({status:500,error:await B(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}});else return We(new URL(f.location,t).href,{},s+1,c),!1;else f.props.page.status>=400&&await U.updated.check()&&await $(t);if(Be.length=0,be=!1,ye(d),Ye(m),f.props.page.url.pathname!==t.pathname&&(t.pathname=f.props.page.url.pathname),i=n?n.state:i,!n){const p=o?0:1,y={[D]:k+=p,[G]:S+=p,[Fe]:i};(o?history.replaceState:history.pushState).call(history,y,"",t),o||Kt(k,S)}if(P=null,f.props.page.state=i,Q){w=f.state,f.props.page&&(f.props.page.url=t);const p=(await Promise.all(Yt.map(y=>y(g.navigation)))).filter(y=>typeof y=="function");if(p.length>0){let y=function(){N=N.filter(b=>!p.includes(b))};p.push(y),N.push(...p)}Ee.$set(f.props),Ke=!0}else Je(f,pe);const{activeElement:_}=document;await lt();const v=n?n.scroll:a?_e():null;if(Ne){const p=t.hash&&document.getElementById(decodeURIComponent(t.hash.slice(1)));v?scrollTo(v.x,v.y):p?p.scrollIntoView():scrollTo(0,0)}const A=document.activeElement!==_&&document.activeElement!==document.body;!r&&!A&&tn(),Ne=!0,f.props.page&&(R=f.props.page),H=!1,e==="popstate"&&ze(S),g.fulfil(void 0),N.forEach(p=>p(g.navigation)),U.navigating.set(null)}async function et(e,t,n,r){return e.origin===K&&e.pathname===location.pathname&&!ve?await se({status:r,error:n,url:e,route:t}):await $(e)}function Xt(){let e;L.addEventListener("mousemove",o=>{const i=o.target;clearTimeout(e),e=setTimeout(()=>{r(i,2)},20)});function t(o){r(o.composedPath()[0],1)}L.addEventListener("mousedown",t),L.addEventListener("touchstart",t,{passive:!0});const n=new IntersectionObserver(o=>{for(const i of o)i.isIntersecting&&(ue(i.target.href),n.unobserve(i.target))},{threshold:0});function r(o,i){const s=Me(o,L);if(!s)return;const{url:c,external:l,download:u}=de(s,I);if(l||u)return;const h=W(s);if(!h.reload)if(i<=h.preload_data){const g=Se(c,!1);g&&zt(g)}else i<=h.preload_code&&ue(c.pathname)}function a(){n.disconnect();for(const o of L.querySelectorAll("a")){const{url:i,external:s,download:c}=de(o,I);if(s||c)continue;const l=W(o);l.reload||(l.preload_code===z.viewport&&n.observe(o),l.preload_code===z.eager&&ue(i.pathname))}}N.push(a),a()}function B(e,t){if(e instanceof ne)return e.body;const n=J(e),r=Bt(e);return C.hooks.handleError({error:e,event:t,status:n,message:r})??{message:r}}function tt(e,t){ft(()=>(e.push(t),()=>{const n=e.indexOf(t);e.splice(n,1)}))}function cn(e){tt(N,e)}function ln(e){tt(we,e)}function Zt(e,t={}){return e=qe(e),e.origin!==K?Promise.reject(new Error("goto: invalid URL")):We(e,t,0)}function Qt(){var t;history.scrollRestoration="manual",addEventListener("beforeunload",n=>{let r=!1;if(Te(),!H){const a=rt(w,void 0,null,"leave"),o={...a.navigation,cancel:()=>{r=!0,a.reject(new Error("navigation cancelled"))}};we.forEach(i=>i(o))}r?(n.preventDefault(),n.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Te()}),(t=navigator.connection)!=null&&t.saveData||Xt(),L.addEventListener("click",n=>{var g;if(n.button||n.which!==1||n.metaKey||n.ctrlKey||n.shiftKey||n.altKey||n.defaultPrevented)return;const r=Me(n.composedPath()[0],L);if(!r)return;const{url:a,external:o,target:i,download:s}=de(r,I);if(!a)return;if(i==="_parent"||i==="_top"){if(window.parent!==window)return}else if(i&&i!=="_self")return;const c=W(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:")||s)return;if(o||c.reload){Qe({url:a,type:"link"})?H=!0:n.preventDefault();return}const[u,h]=a.href.split("#");if(h!==void 0&&u===le(location)){const[,d]=w.url.href.split("#");if(d===h){n.preventDefault(),h===""||h==="top"&&r.ownerDocument.getElementById("top")===null?window.scrollTo({top:0}):(g=r.ownerDocument.getElementById(h))==null||g.scrollIntoView();return}if(V=!0,ye(k),e(a),!c.replace_state)return;V=!1}n.preventDefault(),Y({type:"link",url:a,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??a.href===location.href})}),L.addEventListener("submit",n=>{if(n.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(n.target),a=n.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const i=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(re(i,I))return;const s=n.target,c=W(s);if(c.reload)return;n.preventDefault(),n.stopPropagation();const l=new FormData(s),u=a==null?void 0:a.getAttribute("name");u&&l.append(u,(a==null?void 0:a.getAttribute("value"))??""),i.search=new URLSearchParams(l).toString(),Y({type:"form",url:i,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??i.href===location.href})}),addEventListener("popstate",async n=>{var r;if((r=n.state)!=null&&r[D]){const a=n.state[D];if(ee={},a===k)return;const o=T[a],i=n.state[Fe]??{},s=new URL(n.state[Nt]??location.href),c=n.state[G],l=le(location)===le(w.url);if(c===S&&(Ke||l)){e(s),T[k]=_e(),o&&scrollTo(o.x,o.y),i!==R.state&&(R={...R,state:i},Ee.$set({page:R})),k=a;return}const h=a-k;await Y({type:"popstate",url:s,popped:{state:i,scroll:o,delta:h},accept:()=>{k=a,S=c},block:()=>{history.go(-h)},nav_token:ee})}else if(!V){const a=new URL(location.href);e(a)}}),addEventListener("hashchange",()=>{V&&(V=!1,history.replaceState({...history.state,[D]:++k,[G]:S},"",location.href))});for(const n of document.querySelectorAll("link"))n.rel==="icon"&&(n.href=n.href);addEventListener("pageshow",n=>{n.persisted&&U.navigating.set(null)});function e(n){w.url=n,U.page.set({...R,url:n}),U.page.notify()}}async function en(e,{status:t=200,error:n,node_ids:r,params:a,route:o,data:i,form:s}){ve=!0;const c=new URL(location.href);({params:a={},route:o={id:null}}=Se(c,!1)||{});let l;try{const u=r.map(async(d,m)=>{const f=i[m];return f!=null&&f.uses&&(f.uses=at(f.uses)),ke({loader:C.nodes[d],url:c,params:a,route:o,parent:async()=>{const _={};for(let v=0;vd===o.id);if(g){const d=g.layouts;for(let m=0;mo?"1":"0").join(""));const r=await De(n.href);if(!r.ok){let o;throw(a=r.headers.get("content-type"))!=null&&a.includes("application/json")?o=await r.json():r.status===404?o="Not Found":r.status===500&&(o="Internal Error"),new ne(r.status,o)}return new Promise(async o=>{var h;const i=new Map,s=r.body.getReader(),c=new TextDecoder;function l(g){return Ft(g,{Promise:d=>new Promise((m,f)=>{i.set(d,{fulfil:m,reject:f})})})}let u="";for(;;){const{done:g,value:d}=await s.read();if(g&&!u)break;for(u+=!d&&u?` `:c.decode(d,{stream:!0});;){const m=u.indexOf(` `);if(m===-1)break;const f=JSON.parse(u.slice(0,m));if(u=u.slice(m+1),f.type==="redirect")return o(f);if(f.type==="data")(h=f.nodes)==null||h.forEach(_=>{(_==null?void 0:_.type)==="data"&&(_.uses=at(_.uses),_.data=l(_.data))}),o(f);else if(f.type==="chunk"){const{id:_,data:v,error:A}=f,p=i.get(_);i.delete(_),A?p.reject(l(A)):p.fulfil(l(v))}}}})}function at(e){return{dependencies:new Set((e==null?void 0:e.dependencies)??[]),params:new Set((e==null?void 0:e.params)??[]),parent:!!(e!=null&&e.parent),route:!!(e!=null&&e.route),url:!!(e!=null&&e.url),search_params:new Set((e==null?void 0:e.search_params)??[])}}function tn(){const e=document.querySelector("[autofocus]");if(e)e.focus();else{const t=document.body,n=t.getAttribute("tabindex");t.tabIndex=-1,t.focus({preventScroll:!0,focusVisible:!1}),n!==null?t.setAttribute("tabindex",n):t.removeAttribute("tabindex");const r=getSelection();if(r&&r.type!=="None"){const a=[];for(let o=0;o{if(r.rangeCount===a.length){for(let o=0;o{a=u,o=h});return i.catch(()=>{}),{navigation:{from:{params:e.params,route:{id:((c=e.route)==null?void 0:c.id)??null},url:e.url},to:n&&{params:(t==null?void 0:t.params)??null,route:{id:((l=t==null?void 0:t.route)==null?void 0:l.id)??null},url:n},willUnload:!t,type:r,complete:i},fulfil:a,reject:o}}export{cn as a,ln as b,sn as c,on as d,Zt as g,Ut as r,U as s,ae as w}; diff --git a/ui/assets/local/_app/immutable/chunks/error.aZkLDhWZ.js b/ui/assets/local/_app/immutable/chunks/error.CjC3VuFL.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/error.aZkLDhWZ.js rename to ui/assets/local/_app/immutable/chunks/error.CjC3VuFL.js index ddaa2a06d..09d0d22ba 100644 --- a/ui/assets/local/_app/immutable/chunks/error.aZkLDhWZ.js +++ b/ui/assets/local/_app/immutable/chunks/error.CjC3VuFL.js @@ -1,4 +1,4 @@ -import{s as D,h,t as C,b as y,j as p,k as $,l as k,f as _,d as N,o as U,m,i as B,n,p as H,q as I,r as z}from"./scheduler.C46pS-76.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.dOVbn71B.js";import{a as V}from"./entry.DLEzeuD9.js";import{L as W}from"./link.BJceiGbc.js";import{h as X}from"./has.BWrERxPV.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,v,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` +import{s as D,h,t as C,b as y,j as p,k as $,l as k,f as _,d as N,o as U,m,i as B,n,p as H,q as I,r as z}from"./scheduler.C46pS-76.js";import{S as A,i as F,c as G,a as J,m as K,t as M,b as Q,d as R}from"./index.dOVbn71B.js";import{a as V}from"./entry.kylZibtV.js";import{L as W}from"./link.C_v4aoat.js";import{h as X}from"./has.BWrERxPV.js";function Y(l){let t;return{c(){t=C("jump on our Slack Channel")},l(e){t=k(e,"jump on our Slack Channel")},m(e,a){B(e,t,a)},d(e){e&&_(t)}}}function Z(l){let t,e,a,d,i,E="Uh oh. There's an error.",x,o,T,w,c,u,P="Try a refresh",S,f,j,v,q,L;return f=new W({props:{newTab:!0,href:"https://temporal.io/slack",$$slots:{default:[Y]},$$scope:{ctx:l}}}),{c(){t=h("section"),e=h("h1"),a=C(l[0]),d=y(),i=h("p"),i.textContent=E,x=y(),o=h("p"),T=C(l[1]),w=y(),c=h("p"),u=h("button"),u.textContent=P,S=C(` or `),G(f.$$.fragment),j=C("."),this.h()},l(r){t=p(r,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var s=$(t);e=p(s,"H1",{class:!0});var g=$(e);a=k(g,l[0]),g.forEach(_),d=N(s),i=p(s,"P",{class:!0,"data-svelte-h":!0}),U(i)!=="svelte-h7qijb"&&(i.textContent=E),x=N(s),o=p(s,"P",{class:!0});var O=$(o);T=k(O,l[1]),O.forEach(_),w=N(s),c=p(s,"P",{class:!0});var b=$(c);u=p(b,"BUTTON",{class:!0,tabindex:!0,"data-svelte-h":!0}),U(u)!=="svelte-kruuqs"&&(u.textContent=P),S=k(b,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.C5IunOHG.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.BWMNMNHv.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.C5IunOHG.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.BWMNMNHv.js index 1209f90dd..0bd315ad2 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.C5IunOHG.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.BWMNMNHv.js @@ -1 +1 @@ -import{s as L,h as y,b,j as E,k as N,d as w,f as g,m as d,i as C,n as _,p as U,c as j,t as G,l as H,v as T}from"./scheduler.C46pS-76.js";import{S as q,i as D,c as x,a as I,m as S,t as F,b as k,d as A}from"./index.dOVbn71B.js";import{g as P}from"./entry.DLEzeuD9.js";import{B as R}from"./button.BpRIS9ld.js";import{L as V}from"./label.BlTcUXFh.js";import{t as u}from"./translate.BBe5dcco.js";import{g as W}from"./index.DCblj7qv.js";import{t as z}from"./index.DJYN40WT.js";import{i as J,a as K}from"./import-events.Dljx0mMh.js";import{l as M}from"./namespaces.619_s9Tr.js";import{t as B}from"./toaster.D-OAJjvv.js";import{p as O}from"./parse-with-big-int.BKSBwM2t.js";import{r as Q}from"./route-for.BjP6gGR7.js";function X(m){let e=u("common.import")+"",o;return{c(){o=G(e)},l(a){o=H(a,e)},m(a,r){C(a,o,r)},p:T,d(a){a&&g(o)}}}function Y(m){let e,o,a,r,p,i,f,n,c;return o=new V({props:{hidden:!0,for:"import-event-history-file-upload",label:u("events.import-event-history-file-upload")}}),i=new R({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[X]},$$scope:{ctx:m}}}),i.$on("click",m[2]),{c(){e=y("div"),x(o.$$.fragment),a=b(),r=y("input"),p=b(),x(i.$$.fragment),this.h()},l(t){e=E(t,"DIV",{class:!0});var s=N(e);I(o.$$.fragment,s),a=w(s),r=E(s,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),p=w(s),I(i.$$.fragment,s),s.forEach(g),this.h()},h(){d(r,"id","import-event-history-file-upload"),d(r,"class","import-input block rounded-md border border-slate-200 p-2"),d(r,"type","file"),d(r,"accept",".json"),d(e,"class","flex flex-col items-start gap-2 md:flex-row md:items-center")},m(t,s){C(t,e,s),S(o,e,null),_(e,a),_(e,r),_(e,p),S(i,e,null),f=!0,n||(c=U(r,"change",m[1]),n=!0)},p(t,[s]){const l={};s&1&&(l.disabled=!t[0]),s&32&&(l.$$scope={dirty:s,ctx:t}),i.$set(l)},i(t){f||(F(o.$$.fragment,t),F(i.$$.fragment,t),f=!0)},o(t){k(o.$$.fragment,t),k(i.$$.fragment,t),f=!1},d(t){t&&g(e),A(o),A(i),n=!1,c()}}}function Z(m,e,o){let a;j(m,M,n=>o(4,a=n));let r,p=!1;return[p,async n=>{var c;const t=n.target,s=(c=t==null?void 0:t.files)===null||c===void 0?void 0:c[0],l=new FileReader;s&&(l.readAsText(s),l.onload=()=>{var v,h;try{const $=(h=(v=l==null?void 0:l.result)===null||v===void 0?void 0:v.toString())!==null&&h!==void 0?h:"";r=O($),o(0,p=!0)}catch{B.push({variant:"error",message:u("events.event-history-load-error")}),o(0,p=!1)}})},async()=>{try{const n=await z(Array.isArray(r)?r:r==null?void 0:r.events),c=W(n);J.set(n),K.set(c),o(0,p=!1);const t=Q(a,"feed");P(t)}catch(n){console.error(n),B.push({variant:"error",message:u("events.event-history-import-error")})}}]}class dt extends q{constructor(e){super(),D(this,e,Z,Y,L,{})}}export{dt as E}; +import{s as L,h as y,b,j as E,k as N,d as w,f as g,m as d,i as C,n as _,p as U,c as j,t as G,l as H,v as T}from"./scheduler.C46pS-76.js";import{S as q,i as D,c as x,a as I,m as S,t as F,b as k,d as A}from"./index.dOVbn71B.js";import{g as P}from"./entry.kylZibtV.js";import{B as R}from"./button.hs88FdV4.js";import{L as V}from"./label.BlTcUXFh.js";import{t as u}from"./translate.BBe5dcco.js";import{g as W}from"./index.B7_EN-g2.js";import{t as z}from"./index.lRK1fBz3.js";import{i as J,a as K}from"./import-events.CEl85Dnc.js";import{l as M}from"./namespaces.DEm0M_ie.js";import{t as B}from"./toaster.p5hsABhI.js";import{p as O}from"./parse-with-big-int.BKSBwM2t.js";import{r as Q}from"./route-for.B9fTWV7L.js";function X(m){let e=u("common.import")+"",o;return{c(){o=G(e)},l(a){o=H(a,e)},m(a,r){C(a,o,r)},p:T,d(a){a&&g(o)}}}function Y(m){let e,o,a,r,p,i,f,n,c;return o=new V({props:{hidden:!0,for:"import-event-history-file-upload",label:u("events.import-event-history-file-upload")}}),i=new R({props:{leadingIcon:"file-upload",disabled:!m[0],$$slots:{default:[X]},$$scope:{ctx:m}}}),i.$on("click",m[2]),{c(){e=y("div"),x(o.$$.fragment),a=b(),r=y("input"),p=b(),x(i.$$.fragment),this.h()},l(t){e=E(t,"DIV",{class:!0});var s=N(e);I(o.$$.fragment,s),a=w(s),r=E(s,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),p=w(s),I(i.$$.fragment,s),s.forEach(g),this.h()},h(){d(r,"id","import-event-history-file-upload"),d(r,"class","import-input block rounded-md border border-slate-200 p-2"),d(r,"type","file"),d(r,"accept",".json"),d(e,"class","flex flex-col items-start gap-2 md:flex-row md:items-center")},m(t,s){C(t,e,s),S(o,e,null),_(e,a),_(e,r),_(e,p),S(i,e,null),f=!0,n||(c=U(r,"change",m[1]),n=!0)},p(t,[s]){const l={};s&1&&(l.disabled=!t[0]),s&32&&(l.$$scope={dirty:s,ctx:t}),i.$set(l)},i(t){f||(F(o.$$.fragment,t),F(i.$$.fragment,t),f=!0)},o(t){k(o.$$.fragment,t),k(i.$$.fragment,t),f=!1},d(t){t&&g(e),A(o),A(i),n=!1,c()}}}function Z(m,e,o){let a;j(m,M,n=>o(4,a=n));let r,p=!1;return[p,async n=>{var c;const t=n.target,s=(c=t==null?void 0:t.files)===null||c===void 0?void 0:c[0],l=new FileReader;s&&(l.readAsText(s),l.onload=()=>{var v,h;try{const $=(h=(v=l==null?void 0:l.result)===null||v===void 0?void 0:v.toString())!==null&&h!==void 0?h:"";r=O($),o(0,p=!0)}catch{B.push({variant:"error",message:u("events.event-history-load-error")}),o(0,p=!1)}})},async()=>{try{const n=await z(Array.isArray(r)?r:r==null?void 0:r.events),c=W(n);J.set(n),K.set(c),o(0,p=!1);const t=Q(a,"feed");P(t)}catch(n){console.error(n),B.push({variant:"error",message:u("events.event-history-import-error")})}}]}class dt extends q{constructor(e){super(),D(this,e,Z,Y,L,{})}}export{dt as E}; diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.BGH464r2.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.BGH464r2.js new file mode 100644 index 000000000..ba78d81eb --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.BGH464r2.js @@ -0,0 +1 @@ +import{s as ce,a as _n,I as Le,J as Se,k as A,f as v,m as k,i as T,n as b,u as hn,g as gn,e as vn,H as U,v as Fe,x,c as ue,h as P,j as C,a2 as qe,y as Be,D as ut,z as be,A as Ae,t as z,l as q,q as ne,b as j,d as G,o as je,p as Ye,F as Ze,a9 as pn}from"./scheduler.C46pS-76.js";import{S as de,i as me,t as h,g as J,b as p,e as X,c as V,a as O,m as R,d as B,h as kn,k as bn}from"./index.dOVbn71B.js";import{e as ae,u as xe,o as et}from"./each.C6O0oV7R.js";import{P as wn}from"./paginated.CcIszT9D.js";import{t as re}from"./translate.BBe5dcco.js";import{i as se,a as tt,b as En,e as yn,c as In,d as Tn}from"./index.B7_EN-g2.js";import{i as we}from"./index.lRK1fBz3.js";import{b as tn,h as Dn,i as An,e as Pn,f as Cn}from"./events.CbhKe7Ai.js";import{i as Ee,d as Ce,e as Ln,f as Sn,h as nn,j as ct,k as Fn,l as Vn}from"./get-single-attribute-for-event.C6hE5al8.js";import{c as On,d as Rn,e as nt,t as Ve}from"./to-time-difference.l4Q9xnPU.js";import{I as Ne}from"./icon.CfkHLDdJ.js";import{E as Bn}from"./empty-state.BO9uOKUe.js";import{L as Nn}from"./loading.BLsNkl8r.js";import{g as ln,a as rn}from"./spread.CgU5AtxT.js";import{f as Wn,s as Hn}from"./index.mPGqfhEB.js";import{p as Ge}from"./stores.Ds4o9nwd.js";import{L as Pe}from"./link.C_v4aoat.js";import{T as dt}from"./tooltip.D2lOlqUw.js";import{t as lt,f as ye,r as sn}from"./time-format.BLKgLEx9.js";import{f as Ie,s as Xe}from"./format-camel-case.ByTIZu23.js";import{u as mt}from"./format-time.6TuExJAg.js";import{f as jn,C as Gn}from"./get-event-categorization.BzHsmJUX.js";import{b as He,g as Mn,j as $n,B as Re}from"./route-for.B9fTWV7L.js";import{B as fn}from"./badge.jG5hkqHT.js";import{C as Me}from"./code-block.DGWayI9q.js";import{C as on}from"./index.Nss_n040.js";import"./i18next.DhwiOCyc.js";import"./auth-user.CfsLeCYD.js";import"./data-encoder-config.BAPO1ve2.js";import"./parse-with-big-int.BKSBwM2t.js";import{P as $e}from"./payload-decoder.C_mCVVdL.js";const zn=(i,e)=>e?i.filter(n=>we(n)&&n.classification==="Failed"||we(n)&&n.classification==="TimedOut"||Ee(n)||Ce(n)||se(n)&&(n.isPending||n.finalClassification==="Failed"||n.finalClassification==="TimedOut")):i,Ji=(i,e)=>e?i.filter(n=>se(n)&&(n.isPending||n.finalClassification==="Failed"||n.finalClassification==="TimedOut")):i,qn=200,ke=6,Xi={height:ke*5,gutter:ke*8,radius:ke*2,fontSizeRatio:ke*4},it={height:32,gutter:ke*2,radius:4,fontSizeRatio:ke*4},Ke={height:ke*4,gutter:ke*3,radius:ke,fontSizeRatio:ke*4},Yi={workflow:"workflow",signal:"signal",activity:"activity",nexus:"nexus",timer:"retention","local-activity":"feather","child-workflow":"relationship",update:"update",other:"terminal"},Zi=(i,e,n,t,l)=>{const{radius:r}=l,s=i[0],f=i[i.length-1];let o=!1,a="start",u=0;const c=s>1/3*n;let m=!c&&f<2/3*n&&!t;c&&(a="end"),m&&(u=i.indexOf(f));const _=1.5*r;let d=m?f+_:s-_;if(!m&&!c&&(o=!0,m=!0,d=s+_,i.length===2&&t&&i[1]-i[0]2)){const g=i[1]-i[0];i[2]-i[1]>g&&(u=1,d=i[1]+_)}return{textPosition:[d,e],textIndex:u,textAnchor:a,backdrop:o}},Kn=(i,e)=>{const n=e.find(l=>l.eventIds.has(i.id));return n?Array.from(n.eventIds).indexOf(i.id)===1&&n.eventList.length===3:!1},Qe=(i,e)=>parseInt(i)===parseInt(e)-1,Qn=i=>{const e=Array.from(i.eventIds);if(e.length===1)return!0;if(e.length===2)return Qe(e[0],e[1]);if(e.length===3)return Qe(e[0],e[1])&&Qe(e[1],e[2])},Un=(i,e)=>{const n=tt(e,i);if(n.level!==void 0)return n.level;const t=e.filter(s=>s.isPending&&s.id!==n.id).filter(s=>parseInt(s.initialEvent.id)s.eventList.length>1&&!s.isPending&&s.id!==n.id).filter(s=>parseInt(s.initialEvent.id)parseInt(s.lastEvent.id)>parseInt(n.initialEvent.id)),r=[...t,...l];return!r.length&&Qn(n)&&(n.level=0),n.level=r.length+1,n.level},an=(i,e,n,t,l)=>{const r=tt(n,e);let s=0,f=0;if(!r)return{nextDistance:s,offset:f};if(r.eventList.length===1&&!r.isPending)return{nextDistance:s,offset:f};const o=we(e)&&r.eventList.indexOf(e),a=we(e)&&r.eventList[o+1];if((!we(e)||e.category!=="workflow")&&(f=Un(e,n)),!a&&!r.isPending)return{nextDistance:s,offset:f};let u=0;a?u=parseInt(a.id)-parseInt(e.id):r.isPending&&we(e)&&(u=i.length-parseInt(e.id)+2);const c=u*t;return s=l==="ascending"?c:-c,{nextDistance:s,offset:f}},xi=i=>{switch(i){case"Completed":return"#00f37e";case"Failed":case"Terminated":return"#ff4518";case"Signaled":return"#d300d8";case"Fired":return"#f8a208";case"TimedOut":return"#F97316";case"Canceled":return"#fed64b";case"Running":return"#3b82f6";case"Pending":return"#a78bfa";case"Retrying":return"#FF9B70";default:return"#ffffff"}},er=(i,e,n,t,l)=>i.filter(r=>l==="ascending"?parseInt(r)parseInt(e.id)).map(r=>{const s=n.find(f=>f.id===r);return Yn(s,t)}).reduce((r,s)=>r+s,0),Jn=i=>{const e=On(i);return i.pendingActivity?{...Rn(i.pendingActivity),...e}:e},Xn=200,Yn=(i,e)=>{const n=e>=960,t=Jn(i),l=Object.entries(t).filter(([,a])=>typeof a=="object"),r=Object.entries(t).filter(([,a])=>typeof a!="object"),s=l.length*Xn,f=(n?1:2)*r.length*Ke.fontSizeRatio+Ke.fontSizeRatio,o=i.category==="child-workflow"?f+qn:f;return Math.max(s,o)+3*Ke.fontSizeRatio};function _t(i){let e,n;return e=new Ne({props:{name:i[3],x:i[6]-i[2]/2,y:i[5]-i[2]/2,width:i[2],height:i[2],class:"text-black"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.name=t[3]),l&68&&(r.x=t[6]-t[2]/2),l&36&&(r.y=t[5]-t[2]/2),l&4&&(r.width=t[2]),l&4&&(r.height=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Zn(i){let e,n,t,l;const r=i[9].default,s=_n(r,i,i[8],null);let f=i[3]&&_t(i);return{c(){e=Le("g"),n=Le("circle"),s&&s.c(),f&&f.c(),this.h()},l(o){e=Se(o,"g",{class:!0});var a=A(e);n=Se(a,"circle",{class:!0,"stroke-width":!0,cx:!0,cy:!0,r:!0});var u=A(n);s&&s.l(u),u.forEach(v),f&&f.l(a),a.forEach(v),this.h()},h(){k(n,"class",t="dot "+i[0]+" "+i[1]+" svelte-1rumg40"),k(n,"stroke-width",i[4]),k(n,"cx",i[6]),k(n,"cy",i[5]),k(n,"r",i[2]),k(e,"class","svelte-1rumg40")},m(o,a){T(o,e,a),b(e,n),s&&s.m(n,null),f&&f.m(e,null),l=!0},p(o,[a]){s&&s.p&&(!l||a&256)&&hn(s,r,o,o[8],l?vn(r,o[8],a,null):gn(o[8]),null),(!l||a&3&&t!==(t="dot "+o[0]+" "+o[1]+" svelte-1rumg40"))&&k(n,"class",t),(!l||a&16)&&k(n,"stroke-width",o[4]),(!l||a&64)&&k(n,"cx",o[6]),(!l||a&32)&&k(n,"cy",o[5]),(!l||a&4)&&k(n,"r",o[2]),o[3]?f?(f.p(o,a),a&8&&h(f,1)):(f=_t(o),f.c(),h(f,1),f.m(e,null)):f&&(J(),p(f,1,1,()=>{f=null}),X())},i(o){l||(h(s,o),h(f),l=!0)},o(o){p(s,o),p(f),l=!1},d(o){o&&v(e),s&&s.d(o),f&&f.d()}}}function xn(i,e,n){let t,l,{$$slots:r={},$$scope:s}=e;const{radius:f}=it;let{point:o}=e,{category:a=void 0}=e,{classification:u=void 0}=e,{r:c=f}=e,{icon:m=void 0}=e,{strokeWidth:_=2}=e;return i.$$set=d=>{"point"in d&&n(7,o=d.point),"category"in d&&n(0,a=d.category),"classification"in d&&n(1,u=d.classification),"r"in d&&n(2,c=d.r),"icon"in d&&n(3,m=d.icon),"strokeWidth"in d&&n(4,_=d.strokeWidth),"$$scope"in d&&n(8,s=d.$$scope)},i.$$.update=()=>{i.$$.dirty&128&&n(6,[t,l]=o,t,(n(5,l),n(7,o)))},[a,u,c,m,_,l,t,o,s,r]}class un extends de{constructor(e){super(),me(this,e,xn,Zn,ce,{point:7,category:0,classification:1,r:2,icon:3,strokeWidth:4})}}function el(i){let e,n,t,l,r;return{c(){e=Le("line"),this.h()},l(s){e=Se(s,"line",{class:!0,"stroke-width":!0,"stroke-dasharray":!0,x1:!0,x2:!0,y1:!0,y2:!0}),A(e).forEach(v),this.h()},h(){k(e,"class",n="line "+i[0]+" "+i[1]+" "+i[2]+" svelte-xmy546"),k(e,"stroke-width",i[5]),k(e,"stroke-dasharray",t=i[4]?"3":i[6]),k(e,"x1",l=Math.max(0,i[10])),k(e,"x2",r=Math.max(0,i[8])),k(e,"y1",i[9]),k(e,"y2",i[7]),U(e,"scheduling",i[3]),U(e,"animate-line",i[4])},m(s,f){T(s,e,f)},p(s,[f]){f&7&&n!==(n="line "+s[0]+" "+s[1]+" "+s[2]+" svelte-xmy546")&&k(e,"class",n),f&32&&k(e,"stroke-width",s[5]),f&80&&t!==(t=s[4]?"3":s[6])&&k(e,"stroke-dasharray",t),f&1024&&l!==(l=Math.max(0,s[10]))&&k(e,"x1",l),f&256&&r!==(r=Math.max(0,s[8]))&&k(e,"x2",r),f&512&&k(e,"y1",s[9]),f&128&&k(e,"y2",s[7]),f&15&&U(e,"scheduling",s[3]),f&23&&U(e,"animate-line",s[4])},i:Fe,o:Fe,d(s){s&&v(e)}}}function tl(i,e,n){let t,l,r,s,{startPoint:f=[0,1e3]}=e,{endPoint:o=[0,1e3]}=e,{status:a=void 0}=e,{category:u=void 0}=e,{classification:c=void 0}=e,{scheduling:m=!1}=e,{pending:_=!1}=e,{strokeWidth:d=2}=e,{strokeDasharray:E="none"}=e;return i.$$set=g=>{"startPoint"in g&&n(11,f=g.startPoint),"endPoint"in g&&n(12,o=g.endPoint),"status"in g&&n(0,a=g.status),"category"in g&&n(1,u=g.category),"classification"in g&&n(2,c=g.classification),"scheduling"in g&&n(3,m=g.scheduling),"pending"in g&&n(4,_=g.pending),"strokeWidth"in g&&n(5,d=g.strokeWidth),"strokeDasharray"in g&&n(6,E=g.strokeDasharray)},i.$$.update=()=>{i.$$.dirty&2048&&n(10,[t,l]=f,t,(n(9,l),n(11,f))),i.$$.dirty&4096&&n(8,[r,s]=o,r,(n(7,s),n(12,o)))},[a,u,c,m,_,d,E,s,r,l,t,f,o]}class rt extends de{constructor(e){super(),me(this,e,tl,el,ce,{startPoint:11,endPoint:12,status:0,category:1,classification:2,scheduling:3,pending:4,strokeWidth:5,strokeDasharray:6})}}function ht(i){let e,n;return e=new rt({props:{startPoint:[i[1],i[9]],endPoint:[i[1]-i[6]-i[10],i[9]]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&514&&(r.startPoint=[t[1],t[9]]),l&578&&(r.endPoint=[t[1]-t[6]-t[10],t[9]]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function gt(i){let e,n;return e=new un({props:{point:[i[1]-i[6],i[9]],classification:i[7],strokeWidth:1}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&578&&(r.point=[t[1]-t[6],t[9]]),l&128&&(r.classification=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function vt(i){var t;let e,n;return e=new rt({props:{startPoint:[i[1]-i[6]-i[10]/2+i[11],i[9]+i[10]+i[11]/2],endPoint:[i[1]-i[6]-i[10]/2+i[11],i[9]+i[8]+i[10]],category:(t=i[0])!=null&&t.pendingActivity?i[0].pendingActivity.attempt>1?"retry":"pending":i[4],pending:i[2]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){var f;const s={};r&578&&(s.startPoint=[l[1]-l[6]-l[10]/2+l[11],l[9]+l[10]+l[11]/2]),r&834&&(s.endPoint=[l[1]-l[6]-l[10]/2+l[11],l[9]+l[8]+l[10]]),r&17&&(s.category=(f=l[0])!=null&&f.pendingActivity?l[0].pendingActivity.attempt>1?"retry":"pending":l[4]),r&4&&(s.pending=l[2]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function pt(i){let e,n;return e=new un({props:{point:[i[1]-i[6],i[9]],classification:i[7],strokeWidth:1}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&578&&(r.point=[t[1]-t[6],t[9]]),l&128&&(r.classification=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function nl(i){let e,n,t,l,r,s=i[5]&&ht(i),f=!i[3]&>(i),o=i[8]&&vt(i),a=i[3]&&pt(i);return{c(){e=Le("g"),s&&s.c(),n=x(),f&&f.c(),t=x(),o&&o.c(),l=x(),a&&a.c(),this.h()},l(u){e=Se(u,"g",{role:!0,tabindex:!0,class:!0});var c=A(e);s&&s.l(c),n=x(),f&&f.l(c),t=x(),o&&o.l(c),l=x(),a&&a.l(c),c.forEach(v),this.h()},h(){k(e,"role","button"),k(e,"tabindex","0"),k(e,"class","relative cursor-pointer")},m(u,c){T(u,e,c),s&&s.m(e,null),b(e,n),f&&f.m(e,null),b(e,t),o&&o.m(e,null),b(e,l),a&&a.m(e,null),r=!0},p(u,[c]){u[5]?s?(s.p(u,c),c&32&&h(s,1)):(s=ht(u),s.c(),h(s,1),s.m(e,n)):s&&(J(),p(s,1,1,()=>{s=null}),X()),u[3]?f&&(J(),p(f,1,1,()=>{f=null}),X()):f?(f.p(u,c),c&8&&h(f,1)):(f=gt(u),f.c(),h(f,1),f.m(e,t)),u[8]?o?(o.p(u,c),c&256&&h(o,1)):(o=vt(u),o.c(),h(o,1),o.m(e,l)):o&&(J(),p(o,1,1,()=>{o=null}),X()),u[3]?a?(a.p(u,c),c&8&&h(a,1)):(a=pt(u),a.c(),h(a,1),a.m(e,null)):a&&(J(),p(a,1,1,()=>{a=null}),X())},i(u){r||(h(s),h(f),h(o),h(a),r=!0)},o(u){p(s),p(f),p(o),p(a),r=!1},d(u){u&&v(e),s&&s.d(),f&&f.d(),o&&o.d(),a&&a.d()}}}function ll(i,e,n){let t,l,r,s,f,o,a,u,c,m,_;ue(i,tn,w=>n(18,_=w));let{event:d}=e,{group:E}=e,{history:g}=e,{groups:N}=e,{index:H}=e,{canvasWidth:F}=e;const{height:Y,radius:$}=it,I=$/2;return i.$$set=w=>{"event"in w&&n(12,d=w.event),"group"in w&&n(0,E=w.group),"history"in w&&n(13,g=w.history),"groups"in w&&n(14,N=w.groups),"index"in w&&n(15,H=w.index),"canvasWidth"in w&&n(1,F=w.canvasWidth)},i.$$.update=()=>{i.$$.dirty&32768&&n(9,t=H*Y+Y/2),i.$$.dirty&290816&&n(17,{nextDistance:l,offset:r}=an(g,d,N,Y,_),l,(n(16,r),n(13,g),n(12,d),n(14,N),n(18,_))),i.$$.dirty&196608&&n(8,s=r>0&&l),i.$$.dirty&4096&&n(7,f=Ee(d)||Ce(d)?"pending":d==null?void 0:d.classification),i.$$.dirty&65536&&n(6,o=r*1.75*$),i.$$.dirty&4097&&n(2,a=we(d)&&(E==null?void 0:E.lastEvent.id)===(d==null?void 0:d.id)&&(E==null?void 0:E.isPending)),i.$$.dirty&86016&&n(5,u=Ee(d)||Ce(d)||r===0?!1:!Kn(d,N)),i.$$.dirty&4100&&n(4,c=Ee(d)||Ce(d)?"pending":a?d==null?void 0:d.category:""),i.$$.dirty&262144&&n(3,m=_==="descending")},[E,F,a,m,c,u,o,f,s,t,$,I,d,g,N,H,r,l,_]}class il extends de{constructor(e){super(),me(this,e,ll,nl,ce,{event:12,group:0,history:13,groups:14,index:15,canvasWidth:1})}}function kt(i,e,n){const t=i.slice();t[13]=e[n],t[16]=n;const l=tt(t[4],t[13]);return t[14]=l,t}function bt(i){let e,n;return e=new il({props:{event:i[13],group:i[14],groups:i[4],history:i[0],canvasWidth:i[2],index:i[16]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.event=t[13]),l&17&&(r.group=t[14]),l&16&&(r.groups=t[4]),l&1&&(r.history=t[0]),l&4&&(r.canvasWidth=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function rl(i){let e,n,t,l,r,s,f;t=new rt({props:{startPoint:[i[2],0],endPoint:[i[2],i[3]],strokeWidth:3}});let o=ae(i[0]),a=[];for(let c=0;cp(a[c],1,1,()=>{a[c]=null});return{c(){e=P("div"),n=Le("svg"),V(t.$$.fragment),l=Le("svg");for(let c=0;cWe)},m(c,m){T(c,e,m),b(e,n),R(t,n,null),b(n,l);for(let _=0;_We)},i(c){if(!f){h(t.$$.fragment,c);for(let m=0;mn(8,f=g)),ue(i,Dn,g=>n(9,o=g));let{groups:a}=e,{history:u}=e;const{height:c,radius:m}=it,_=4*m;let d=_,E=0;return i.$$set=g=>{"groups"in g&&n(5,a=g.groups),"history"in g&&n(0,u=g.history)},i.$$.update=()=>{i.$$.dirty&768&&n(7,t=En(o,f)),i.$$.dirty&160&&n(4,l=[...t,...a]),i.$$.dirty&1&&n(3,r=u.length*c),i.$$.dirty&291&&n(6,s=g=>{g.forEach(N=>{const{offset:H}=an(u,N,a,c,f);n(1,d=Math.max(d,H*1.75*m+_)),n(2,E=Math.min(d-2*m,We))})}),i.$$.dirty&65&&s(u)},[u,d,E,r,l,a,s,t,f,o]}class fl extends de{constructor(e){super(),me(this,e,sl,rl,ce,{groups:5,history:0})}}function ol(i){let e,n;return e=new Bn({props:{title:i[1],content:i[2]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.title=t[1]),l&4&&(r.content=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function al(i){let e,n;return e=new Nn({}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p:Fe,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ul(i){let e,n,t,l;const r=[al,ol],s=[];function f(o,a){return o[0]?0:1}return e=f(i),n=s[e]=r[e](i),{c(){n.c(),t=x()},l(o){n.l(o),t=x()},m(o,a){s[e].m(o,a),T(o,t,a),l=!0},p(o,[a]){let u=e;e=f(o),e===u?s[e].p(o,a):(J(),p(s[u],1,1,()=>{s[u]=null}),X(),n=s[e],n?n.p(o,a):(n=s[e]=r[e](o),n.c()),h(n,1),n.m(t.parentNode,t))},i(o){l||(h(n),l=!0)},o(o){p(n),l=!1},d(o){o&&v(t),s[e].d(o)}}}function cl(i,e,n){let{loading:t=!1}=e,{title:l=re("events.empty-state-title")}=e,{content:r=re("events.empty-state-description")}=e;return i.$$set=s=>{"loading"in s&&n(0,t=s.loading),"title"in s&&n(1,l=s.title),"content"in s&&n(2,r=s.content)},[t,l,r]}class dl extends de{constructor(e){super(),me(this,e,cl,ul,ce,{loading:0,title:1,content:2})}}function ml(i){let e;return{c(){e=z(i[0])},l(n){e=q(n,i[0])},m(n,t){T(n,e,t)},p(n,t){t&1&&ne(e,n[0])},d(n){n&&v(e)}}}function _l(i){let e,n;return e=new Pe({props:{class:i[3].class,href:i[2],light:i[1],$$slots:{default:[ml]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,[l]){const r={};l&8&&(r.class=t[3].class),l&4&&(r.href=t[2]),l&2&&(r.light=t[1]),l&16385&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function hl(i,e,n){let t,l,r,s,f,o,a,u;const c=["value","attributes","type","light"];let m=ut(e,c),_;ue(i,Ge,H=>n(13,_=H));let{value:d}=e,{attributes:E}=e,{type:g}=e,{light:N=!1}=e;return i.$$set=H=>{e=be(be({},e),Ae(H)),n(3,m=ut(e,c)),"value"in H&&n(0,d=H.value),"attributes"in H&&n(4,E=H.attributes),"type"in H&&n(5,g=H.type),"light"in H&&n(1,N=H.light)},i.$$.update=()=>{i.$$.dirty&8192&&n(12,{workflow:t,namespace:l}=_.params,t,(n(11,l),n(13,_))),i.$$.dirty&6145&&n(10,r=He({namespace:l,workflow:t,run:d})),i.$$.dirty&2049&&n(9,s=Mn({namespace:l,queue:d})),i.$$.dirty&2064&&n(8,f=He({namespace:l,workflow:E.workflowExecutionWorkflowId,run:E.workflowExecutionRunId})),i.$$.dirty&1&&n(7,o=$n(d)),i.$$.dirty&1920&&n(6,a={execution:r,"task-queue":s,"child-workflow":f,"nexus-endpoint":o}),i.$$.dirty&96&&n(2,u=a[g])},[d,N,u,m,E,g,a,o,f,s,r,l,t,_]}class cn extends de{constructor(e){super(),me(this,e,hl,_l,ce,{value:0,attributes:4,type:5,light:1})}}function gl(i){let e,n,t=Ie(i[0])+"",l,r,s,f;return s=new fn({props:{type:"subtle",class:"inline-block whitespace-pre-wrap",$$slots:{default:[kl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),l=z(t),r=j(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var u=A(n);l=q(u,t),u.forEach(v),r=G(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content detail-row svelte-1dhlqx8")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){(!f||a&1)&&t!==(t=Ie(o[0])+"")&&ne(l,t);const u={};a&579&&(u.$$scope={dirty:a,ctx:o}),s.$set(u)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function vl(i){let e,n,t=Ie(i[0])+"",l,r,s,f;return s=new on({props:{copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title"),content:String(i[1]),$$slots:{default:[bl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),l=z(t),r=j(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var u=A(n);l=q(u,t),u.forEach(v),r=G(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content detail-row svelte-1dhlqx8")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){(!f||a&1)&&t!==(t=Ie(o[0])+"")&&ne(l,t);const u={};a&2&&(u.content=String(o[1])),a&534&&(u.$$scope={dirty:a,ctx:o}),s.$set(u)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function pl(i){let e,n,t,l=Ie(i[0])+"",r,s,f,o,a,u;const c=[yl,El,wl],m=[];function _(E,g){var N;return(N=E[1])!=null&&N.payloads?0:E[0]==="searchAttributes"?1:2}f=_(i),o=m[f]=c[f](i);let d=i[5]&&wt(i);return{c(){e=P("div"),n=P("div"),t=P("p"),r=z(l),s=j(),o.c(),a=j(),d&&d.c(),this.h()},l(E){e=C(E,"DIV",{class:!0});var g=A(e);n=C(g,"DIV",{class:!0});var N=A(n);t=C(N,"P",{class:!0});var H=A(t);r=q(H,l),H.forEach(v),s=G(N),o.l(N),N.forEach(v),a=G(g),d&&d.l(g),g.forEach(v),this.h()},h(){k(t,"class","text-sm"),k(n,"class","flex flex-col"),k(e,"class","content code-block-row svelte-1dhlqx8")},m(E,g){T(E,e,g),b(e,n),b(n,t),b(t,r),b(n,s),m[f].m(n,null),b(e,a),d&&d.m(e,null),u=!0},p(E,g){(!u||g&1)&&l!==(l=Ie(E[0])+"")&&ne(r,l);let N=f;f=_(E),f===N?m[f].p(E,g):(J(),p(m[N],1,1,()=>{m[N]=null}),X(),o=m[f],o?o.p(E,g):(o=m[f]=c[f](E),o.c()),h(o,1),o.m(n,null)),E[5]?d?(d.p(E,g),g&32&&h(d,1)):(d=wt(E),d.c(),h(d,1),d.m(e,null)):d&&(J(),p(d,1,1,()=>{d=null}),X())},i(E){u||(h(o),h(d),u=!0)},o(E){p(o),p(d),u=!1},d(E){E&&v(e),m[f].d(),d&&d.d()}}}function kl(i){let e=(ct(i[0])?ye(i[1],i[6]):i[1])+"",n;return{c(){n=z(e)},l(t){n=q(t,e)},m(t,l){T(t,n,l)},p(t,l){l&67&&e!==(e=(ct(t[0])?ye(t[1],t[6]):t[1])+"")&&ne(n,e)},d(t){t&&v(n)}}}function bl(i){let e,n;return e=new cn({props:{value:String(i[1]),attributes:i[2],type:i[4],class:"whitespace-pre-line"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=String(t[1])),l&4&&(r.attributes=t[2]),l&16&&(r.type=t[4]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wl(i){let e,n;return e=new $e({props:{value:i[3],$$slots:{default:[Il,({decodedValue:t})=>({8:t}),({decodedValue:t})=>t?256:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.value=t[3]),l&768&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function El(i){let e,n;return e=new $e({props:{key:"searchAttributes",value:{searchAttributes:i[3]},$$slots:{default:[Tl,({decodedValue:t})=>({8:t}),({decodedValue:t})=>t?256:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.value={searchAttributes:t[3]}),l&768&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function yl(i){let e,n;return e=new $e({props:{value:i[1],key:"payloads",$$slots:{default:[Dl,({decodedValue:t})=>({8:t}),({decodedValue:t})=>t?256:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&768&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Il(i){let e,n;return e=new Me({props:{content:i[8],maxHeight:384,copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&256&&(r.content=t[8]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Tl(i){let e,n;return e=new Me({props:{content:i[8],maxHeight:384,copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&256&&(r.content=t[8]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Dl(i){let e,n;return e=new Me({props:{content:i[8],maxHeight:384,copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&256&&(r.content=t[8]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wt(i){let e,n,t=re("workflows.call-stack-tab")+"",l,r,s,f;return s=new Me({props:{content:i[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){e=P("div"),n=P("p"),l=z(t),r=j(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var u=A(n);l=q(u,t),u.forEach(v),r=G(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","flex flex-col")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){const u={};a&32&&(u.content=o[5]),s.$set(u)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function Al(i){let e,n,t,l,r;const s=[pl,vl,gl],f=[];function o(a,u){return typeof a[1]=="object"?0:a[4]!=="none"?1:2}return n=o(i),t=f[n]=s[n](i),{c(){e=P("div"),t.c(),this.h()},l(a){e=C(a,"DIV",{class:!0});var u=A(e);t.l(u),u.forEach(v),this.h()},h(){k(e,"class",l="flex "+i[7].class+" svelte-1dhlqx8")},m(a,u){T(a,e,u),f[n].m(e,null),r=!0},p(a,[u]){let c=n;n=o(a),n===c?f[n].p(a,u):(J(),p(f[c],1,1,()=>{f[c]=null}),X(),t=f[n],t?t.p(a,u):(t=f[n]=s[n](a),t.c()),h(t,1),t.m(e,null)),(!r||u&128&&l!==(l="flex "+a[7].class+" svelte-1dhlqx8"))&&k(e,"class",l)},i(a){r||(h(t),r=!0)},o(a){p(t),r=!1},d(a){a&&v(e),f[n].d()}}}function Pl(i,e,n){let t,l,r,s;ue(i,lt,u=>n(6,s=u));let{key:f}=e,{value:o}=e,{attributes:a}=e;return i.$$set=u=>{n(7,e=be(be({},e),Ae(u))),"key"in u&&n(0,f=u.key),"value"in u&&n(1,o=u.value),"attributes"in u&&n(2,a=u.attributes)},i.$$.update=()=>{i.$$.dirty&2&&n(3,t=Ln(o)),i.$$.dirty&8&&n(5,l=Sn(t)),i.$$.dirty&5&&n(4,r=nn(f,a))},e=Ae(e),[f,o,a,t,r,l,s,e]}class st extends de{constructor(e){super(),me(this,e,Pl,Al,ce,{key:0,value:1,attributes:2})}}function Et(i,e,n){const t=i.slice();return t[1]=e[n],t}function Ue(i){const e=i.slice(),n=He({namespace:e[1].workflowEvent.namespace,workflow:e[1].workflowEvent.workflowId,run:e[1].workflowEvent.runId});return e[4]=n,e}function yt(i){let e,n,t="Link",l,r,s,f;return r=new Pe({props:{class:"whitespace-pre-line",href:i[4],$$slots:{default:[Cl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),n.textContent=t,l=j(),V(r.$$.fragment),s=j(),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0,"data-svelte-h":!0}),je(n)!=="svelte-tg0iwv"&&(n.textContent=t),l=G(a),O(r.$$.fragment,a),s=G(a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content svelte-xg3mkm")},m(o,a){T(o,e,a),b(e,n),b(e,l),R(r,e,null),b(e,s),f=!0},p(o,a){const u={};a&1&&(u.href=o[4]),a&33&&(u.$$scope={dirty:a,ctx:o}),r.$set(u)},i(o){f||(h(r.$$.fragment,o),f=!0)},o(o){p(r.$$.fragment,o),f=!1},d(o){o&&v(e),B(r)}}}function Cl(i){let e=i[1].workflowEvent.workflowId+"",n;return{c(){n=z(e)},l(t){n=q(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[1].workflowEvent.workflowId+"")&&ne(n,e)},d(t){t&&v(n)}}}function It(i){var l;let e,n,t=((l=i[1])==null?void 0:l.workflowEvent)&&yt(Ue(i));return{c(){t&&t.c(),e=x()},l(r){t&&t.l(r),e=x()},m(r,s){t&&t.m(r,s),T(r,e,s),n=!0},p(r,s){var f;(f=r[1])!=null&&f.workflowEvent?t?(t.p(Ue(r),s),s&1&&h(t,1)):(t=yt(Ue(r)),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(J(),p(t,1,1,()=>{t=null}),X())},i(r){n||(h(t),n=!0)},o(r){p(t),n=!1},d(r){r&&v(e),t&&t.d(r)}}}function Ll(i){let e,n,t=ae(i[0]),l=[];for(let s=0;sp(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{"links"in l&&n(0,t=l.links)},[t]}class dn extends de{constructor(e){super(),me(this,e,Sl,Ll,ce,{links:0})}}function Tt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Dt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Je(i){const e=i.slice(),n=Object.entries(e[2]);return e[6]=n,e}function At(i,e,n){const t=i.slice();t[11]=e[n];const l=nt(t[11]);t[12]=l;const r=Object.entries(t[12]);return t[6]=r,t}function Pt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Fl(i){const e=i.slice(),n=nt(e[1]);e[12]=n;const t=Object.entries(e[12]);return e[6]=t,e}function Vl(i){var u;let e,n,t,l,r=[],s=new Map,f;t=new dn({props:{links:(u=i[1])==null?void 0:u.links}});let o=ae(i[6]);const a=c=>c[7];for(let c=0;cp(s[a],1,1,()=>{s[a]=null});let o=i[2]&&Ft(Je(i));return{c(){e=P("div"),n=P("div");for(let a=0;a{o=null}),X())},i(a){if(!l){for(let u=0;uI[7];for(let I=0;I_[7];for(let _=0;_{s[c]=null}),X()),~e?(n=s[e],n?n.p(o(a,e),u):(n=s[e]=r[e](o(a,e)),n.c()),h(n,1),n.m(t.parentNode,t)):n=null)},i(a){l||(h(n),l=!0)},o(a){p(n),l=!1},d(a){a&&v(t),~e&&s[e].d(a)}}}function Bl(i,e,n){let t,l,r,s;ue(i,lt,a=>n(4,r=a)),ue(i,sn,a=>n(5,s=a));let{group:f=void 0}=e,{event:o=void 0}=e;return i.$$set=a=>{"group"in a&&n(0,f=a.group),"event"in a&&n(1,o=a.event)},i.$$.update=()=>{i.$$.dirty&1&&n(2,t=(f==null?void 0:f.pendingActivity)||(f==null?void 0:f.pendingNexusOperation)),i.$$.dirty&5&&n(3,l=f&&(f.eventList.length>1||t))},[f,o,t,l,r,s]}class ft extends de{constructor(e){super(),me(this,e,Bl,Rl,ce,{group:0,event:1})}}function Ot(i){let e,n,t,l,r,s=i[3]&&Rt(i);const f=[Hl,Wl,Nl],o=[];function a(u,c){return typeof u[1]=="object"?0:u[4]!=="none"?1:2}return t=a(i),l=o[t]=f[t](i),{c(){e=P("div"),s&&s.c(),n=j(),l.c(),this.h()},l(u){e=C(u,"DIV",{class:!0});var c=A(e);s&&s.l(c),n=G(c),l.l(c),c.forEach(v),this.h()},h(){k(e,"class","flex max-w-xl items-center gap-2 first:pt-0 last:border-b-0 md:w-auto")},m(u,c){T(u,e,c),s&&s.m(e,null),b(e,n),o[t].m(e,null),r=!0},p(u,c){u[3]?s?s.p(u,c):(s=Rt(u),s.c(),s.m(e,n)):s&&(s.d(1),s=null);let m=t;t=a(u),t===m?o[t].p(u,c):(J(),p(o[m],1,1,()=>{o[m]=null}),X(),l=o[t],l?l.p(u,c):(l=o[t]=f[t](u),l.c()),h(l,1),l.m(e,null))},i(u){r||(h(l),r=!0)},o(u){p(l),r=!1},d(u){u&&v(e),s&&s.d(),o[t].d()}}}function Rt(i){let e,n=Ie(i[0])+"",t;return{c(){e=P("p"),t=z(n),this.h()},l(l){e=C(l,"P",{class:!0});var r=A(e);t=q(r,n),r.forEach(v),this.h()},h(){k(e,"class","whitespace-nowrap text-right text-xs")},m(l,r){T(l,e,r),b(e,t)},p(l,r){r&1&&n!==(n=Ie(l[0])+"")&&ne(t,n)},d(l){l&&v(e)}}}function Nl(i){let e,n;return e=new fn({props:{type:"subtle",class:"block select-none truncate",$$slots:{default:[jl]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&130&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Wl(i){let e,n;return e=new on({props:{copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title"),content:i[1],"container-class":"truncate",$$slots:{default:[Gl]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.content=t[1]),l&150&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Hl(i){let e,n,t;return n=new $e({props:{value:i[1],key:"payloads",$$slots:{default:[Ml,({decodedValue:l})=>({6:l}),({decodedValue:l})=>l?64:0]},$$scope:{ctx:i}}}),{c(){e=P("div"),V(n.$$.fragment),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=A(e);O(n.$$.fragment,r),r.forEach(v),this.h()},h(){k(e,"class","flex max-w-sm items-center justify-between gap-2 overflow-hidden pr-1 xl:flex-nowrap")},m(l,r){T(l,e,r),R(n,e,null),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),r&224&&(s.$$scope={dirty:r,ctx:l}),n.$set(s)},i(l){t||(h(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&v(e),B(n)}}}function jl(i){let e;return{c(){e=z(i[1])},l(n){e=q(n,i[1])},m(n,t){T(n,e,t)},p(n,t){t&2&&ne(e,n[1])},d(n){n&&v(e)}}}function Gl(i){let e,n;return e=new cn({props:{value:i[1],attributes:i[2],type:i[4],class:"truncate"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&4&&(r.attributes=t[2]),l&16&&(r.type=t[4]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ml(i){let e,n,t,l=i[6]+"",r,s;return{c(){e=P("div"),n=P("code"),t=P("pre"),r=z(l),this.h()},l(f){e=C(f,"DIV",{class:!0});var o=A(e);n=C(o,"CODE",{});var a=A(n);t=C(a,"PRE",{});var u=A(t);r=q(u,l),u.forEach(v),a.forEach(v),o.forEach(v),this.h()},h(){k(e,"class",s="payload "+i[5].class+" svelte-1acrhfj")},m(f,o){T(f,e,o),b(e,n),b(n,t),b(t,r)},p(f,o){o&64&&l!==(l=f[6]+"")&&ne(r,l),o&32&&s!==(s="payload "+f[5].class+" svelte-1acrhfj")&&k(e,"class",s)},d(f){f&&v(e)}}}function $l(i){let e,n,t=i[0]&&Ot(i);return{c(){t&&t.c(),e=x()},l(l){t&&t.l(l),e=x()},m(l,r){t&&t.m(l,r),T(l,e,r),n=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&h(t,1)):(t=Ot(l),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(J(),p(t,1,1,()=>{t=null}),X())},i(l){n||(h(t),n=!0)},o(l){p(t),n=!1},d(l){l&&v(e),t&&t.d(l)}}}function zl(i,e,n){let t,{key:l}=e,{value:r}=e,{attributes:s}=e,{showKey:f=!0}=e;return i.$$set=o=>{n(5,e=be(be({},e),Ae(o))),"key"in o&&n(0,l=o.key),"value"in o&&n(1,r=o.value),"attributes"in o&&n(2,s=o.attributes),"showKey"in o&&n(3,f=o.showKey)},i.$$.update=()=>{i.$$.dirty&5&&n(4,t=nn(l,s))},e=Ae(e),[l,r,s,f,t,e]}class ze extends de{constructor(e){super(),me(this,e,zl,$l,ce,{key:0,value:1,attributes:2,showKey:3})}}function ql(i){let e=i[0].workflowEvent.workflowId+"",n;return{c(){n=z(e)},l(t){n=q(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[0].workflowEvent.workflowId+"")&&ne(n,e)},d(t){t&&v(n)}}}function Kl(i){let e,n,t="Link",l,r,s,f;return r=new Pe({props:{href:i[1],$$slots:{default:[ql]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),n.textContent=t,l=j(),V(r.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0,"data-svelte-h":!0}),je(n)!=="svelte-1txiatz"&&(n.textContent=t),l=G(a),O(r.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","max-w-fit whitespace-nowrap text-right text-xs"),k(e,"class",s="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 xl:max-w-xl "+i[2].class)},m(o,a){T(o,e,a),b(e,n),b(e,l),R(r,e,null),f=!0},p(o,[a]){const u={};a&2&&(u.href=o[1]),a&9&&(u.$$scope={dirty:a,ctx:o}),r.$set(u),(!f||a&4&&s!==(s="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 xl:max-w-xl "+o[2].class))&&k(e,"class",s)},i(o){f||(h(r.$$.fragment,o),f=!0)},o(o){p(r.$$.fragment,o),f=!1},d(o){o&&v(e),B(r)}}}function Ql(i,e,n){let t,{link:l}=e;return i.$$set=r=>{n(2,e=be(be({},e),Ae(r))),"link"in r&&n(0,l=r.link)},i.$$.update=()=>{i.$$.dirty&1&&n(1,t=He({namespace:l.workflowEvent.namespace,workflow:l.workflowEvent.workflowId,run:l.workflowEvent.runId}))},e=Ae(e),[l,t,e]}class Ul extends de{constructor(e){super(),me(this,e,Ql,Kl,ce,{link:0})}}function Bt(i,e,n){const t=i.slice();return t[39]=e[n],t}function Jl(i){let e,n,t;return n=new Pe({props:{"data-testid":"link",href:i[24],$$slots:{default:[Yl]},$$scope:{ctx:i}}}),{c(){e=P("td"),V(n.$$.fragment)},l(l){e=C(l,"TD",{});var r=A(e);O(n.$$.fragment,r),r.forEach(v)},m(l,r){T(l,e,r),R(n,e,null),t=!0},p(l,r){const s={};r[0]&16777216&&(s.href=l[24]),r[0]&1|r[1]&2048&&(s.$$scope={dirty:r,ctx:l}),n.$set(s)},i(l){t||(h(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&v(e),B(n)}}}function Xl(i){let e,n,t,l=ae(i[0].eventList),r=[];for(let f=0;fp(r[f],1,1,()=>{r[f]=null});return{c(){e=P("td"),n=P("div");for(let f=0;f1&&"surface-retry rounded px-1 py-0.5")+" svelte-117pdmd")},m(m,_){T(m,e,_),R(n,e,null),b(e,t),b(e,r),b(e,s),b(e,f),b(e,o),c&&c.m(e,null),u=!0},p(m,_){(!u||_[0]&8192)&&ne(f,m[13]),m[14]?c?c.p(m,_):(c=Ht(m),c.c(),c.m(e,null)):c&&(c.d(1),c=null),(!u||_[0]&8192&&a!==(a="flex items-center gap-1 "+(m[13]>1&&"surface-retry rounded px-1 py-0.5")+" svelte-117pdmd"))&&k(e,"class",a)},i(m){u||(h(n.$$.fragment,m),u=!0)},o(m){p(n.$$.fragment,m),u=!1},d(m){m&&v(e),B(n),c&&c.d()}}}function Ht(i){let e,n=(i[14].maximumAttempts||"∞")+"",t,l,r,s=i[13]>1&&jt(i);return{c(){e=z("/ "),t=z(n),l=j(),s&&s.c(),r=x()},l(f){e=q(f,"/ "),t=q(f,n),l=G(f),s&&s.l(f),r=x()},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),s&&s.m(f,o),T(f,r,o)},p(f,o){o[0]&16384&&n!==(n=(f[14].maximumAttempts||"∞")+"")&&ne(t,n),f[13]>1?s?s.p(f,o):(s=jt(f),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(f){f&&(v(e),v(t),v(l),v(r)),s&&s.d(f)}}}function jt(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[14].scheduledTime,negativeDefault:"None"})+"",s;return{c(){e=z("• "),t=z(n),l=j(),s=z(r)},l(f){e=q(f,"• "),t=q(f,n),l=G(f),s=q(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o[0]&16384&&r!==(r=Ve({date:f[14].scheduledTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function Gt(i){let e,n;return e=new Ul({props:{link:i[8].links[0],class:"max-w-xl truncate"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l[0]&256&&(r.link=t[8].links[0]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Mt(i){let e,n;const t=[i[7],{attributes:i[23]}];let l={};for(let r=0;r{s&&(r&&r.end(1),l=kn(e,Wn,{}),l.start())}),s=!0)},o(f){p(t.$$.fragment,f),l&&l.invalidate(),f&&(r=bn(e,Hn,{duration:175})),s=!1},d(f){f&&v(e),B(t),f&&r&&r.end()}}}function ti(i){var Z,he,ve,pe;let e,n,t,l,r,s,f,o,a,u,c,m,_,d,E,g,N,H,F,Y,$,I,w,L,le,oe;const fe=[Xl,Jl],ie=[];function _e(y,W){return W[0]&1&&(n=null),n==null&&(n=!!se(y[0])),n?0:1}t=_e(i,[-1,-1]),l=ie[t]=fe[t](i),f=new dt({props:{hide:se(i[0])&&!i[21]||!i[22],text:se(i[0])?`Duration: ${i[21]}`:`+${i[22]}`,bottom:!0,$$slots:{default:[xl]},$$scope:{ctx:i}}}),u=new dt({props:{hide:se(i[0])&&!i[21]||!i[22],text:se(i[0])?`Duration: ${i[21]}`:`+${i[22]}`,bottom:!0,$$slots:{default:[ei]},$$scope:{ctx:i}}});let Q=i[13]&&Wt(i),te=((he=(Z=i[8])==null?void 0:Z.links)==null?void 0:he.length)&&Gt(i),D=((ve=i[7])==null?void 0:ve.key)&&Mt(i),K=i[12]&&$t(i),M=i[3]&&((pe=i[15])==null?void 0:pe.key)&&zt(i),S=i[20]&&qt(i);return{c(){e=P("tr"),l.c(),r=j(),s=P("td"),V(f.$$.fragment),o=j(),a=P("td"),V(u.$$.fragment),c=j(),m=P("td"),_=P("p"),d=z(i[16]),E=j(),g=P("td"),Q&&Q.c(),N=j(),te&&te.c(),H=j(),D&&D.c(),F=j(),K&&K.c(),Y=j(),M&&M.c(),I=j(),S&&S.c(),w=x(),this.h()},l(y){e=C(y,"TR",{class:!0,id:!0,"data-testid":!0});var W=A(e);l.l(W),r=G(W),s=C(W,"TD",{class:!0});var ee=A(s);O(f.$$.fragment,ee),ee.forEach(v),o=G(W),a=C(W,"TD",{class:!0});var Te=A(a);O(u.$$.fragment,Te),Te.forEach(v),c=G(W),m=C(W,"TD",{class:!0});var De=A(m);_=C(De,"P",{class:!0});var Oe=A(_);d=q(Oe,i[16]),Oe.forEach(v),De.forEach(v),E=G(W),g=C(W,"TD",{class:!0});var ge=A(g);Q&&Q.l(ge),N=G(ge),te&&te.l(ge),H=G(ge),D&&D.l(ge),F=G(ge),K&&K.l(ge),Y=G(ge),M&&M.l(ge),ge.forEach(v),W.forEach(v),I=G(y),S&&S.l(y),w=x(),this.h()},h(){k(s,"class","text-right md:hidden"),k(a,"class","hidden text-right md:block"),k(_,"class","event-name whitespace-nowrap font-semibold md:text-base svelte-117pdmd"),k(m,"class","truncate md:min-w-fit"),k(g,"class","hidden w-full items-center gap-2 text-right text-sm font-normal md:flex xl:text-left"),k(e,"class","row dense svelte-117pdmd"),k(e,"id",$=`${i[0].id}-${i[2]}`),k(e,"data-testid","event-summary-row"),U(e,"expanded",i[20]&&!i[4]),U(e,"active",i[6]),U(e,"failure",i[19]),U(e,"canceled",i[18]),U(e,"terminated",i[17]),U(e,"typedError",i[5])},m(y,W){T(y,e,W),ie[t].m(e,null),b(e,r),b(e,s),R(f,s,null),b(e,o),b(e,a),R(u,a,null),b(e,c),b(e,m),b(m,_),b(_,d),b(e,E),b(e,g),Q&&Q.m(g,null),b(g,N),te&&te.m(g,null),b(g,H),D&&D.m(g,null),b(g,F),K&&K.m(g,null),b(g,Y),M&&M.m(g,null),T(y,I,W),S&&S.m(y,W),T(y,w,W),L=!0,le||(oe=Ye(e,"click",Ze(i[27])),le=!0)},p(y,W){var Oe,ge,ot,at;let ee=t;t=_e(y,W),t===ee?ie[t].p(y,W):(J(),p(ie[ee],1,1,()=>{ie[ee]=null}),X(),l=ie[t],l?l.p(y,W):(l=ie[t]=fe[t](y),l.c()),h(l,1),l.m(e,r));const Te={};W[0]&6291457&&(Te.hide=se(y[0])&&!y[21]||!y[22]),W[0]&6291457&&(Te.text=se(y[0])?`Duration: ${y[21]}`:`+${y[22]}`),W[0]&100663552|W[1]&2048&&(Te.$$scope={dirty:W,ctx:y}),f.$set(Te);const De={};W[0]&6291457&&(De.hide=se(y[0])&&!y[21]||!y[22]),W[0]&6291457&&(De.text=se(y[0])?`Duration: ${y[21]}`:`+${y[22]}`),W[0]&100663552|W[1]&2048&&(De.$$scope={dirty:W,ctx:y}),u.$set(De),(!L||W[0]&65536)&&ne(d,y[16]),y[13]?Q?(Q.p(y,W),W[0]&8192&&h(Q,1)):(Q=Wt(y),Q.c(),h(Q,1),Q.m(g,N)):Q&&(J(),p(Q,1,1,()=>{Q=null}),X()),(ge=(Oe=y[8])==null?void 0:Oe.links)!=null&&ge.length?te?(te.p(y,W),W[0]&256&&h(te,1)):(te=Gt(y),te.c(),h(te,1),te.m(g,H)):te&&(J(),p(te,1,1,()=>{te=null}),X()),(ot=y[7])!=null&&ot.key?D?(D.p(y,W),W[0]&128&&h(D,1)):(D=Mt(y),D.c(),h(D,1),D.m(g,F)):D&&(J(),p(D,1,1,()=>{D=null}),X()),y[12]?K?(K.p(y,W),W[0]&4096&&h(K,1)):(K=$t(y),K.c(),h(K,1),K.m(g,Y)):K&&(J(),p(K,1,1,()=>{K=null}),X()),y[3]&&((at=y[15])!=null&&at.key)?M?(M.p(y,W),W[0]&32776&&h(M,1)):(M=zt(y),M.c(),h(M,1),M.m(g,null)):M&&(J(),p(M,1,1,()=>{M=null}),X()),(!L||W[0]&5&&$!==($=`${y[0].id}-${y[2]}`))&&k(e,"id",$),(!L||W[0]&1048592)&&U(e,"expanded",y[20]&&!y[4]),(!L||W[0]&64)&&U(e,"active",y[6]),(!L||W[0]&524288)&&U(e,"failure",y[19]),(!L||W[0]&262144)&&U(e,"canceled",y[18]),(!L||W[0]&131072)&&U(e,"terminated",y[17]),(!L||W[0]&32)&&U(e,"typedError",y[5]),y[20]?S?(S.p(y,W),W[0]&1048576&&h(S,1)):(S=qt(y),S.c(),h(S,1),S.m(w.parentNode,w)):S&&(J(),p(S,1,1,()=>{S=null}),X())},i(y){L||(h(l),h(f.$$.fragment,y),h(u.$$.fragment,y),h(Q),h(te),h(D),h(K),h(M),h(S),L=!0)},o(y){p(l),p(f.$$.fragment,y),p(u.$$.fragment,y),p(Q),p(te),p(D),p(K),p(M),p(S),L=!1},d(y){y&&(v(e),v(I),v(w)),ie[t].d(),B(f),B(u),Q&&Q.d(),te&&te.d(),D&&D.d(),K&&K.d(),M&&M.d(),S&&S.d(y),le=!1,oe()}}}function ni(i,e,n){let t,l,r,s,f,o,a,u,c,m,_,d,E,g,N,H,F,Y,$,I,w,L;ue(i,Ge,ee=>n(38,I=ee)),ue(i,lt,ee=>n(25,w=ee)),ue(i,sn,ee=>n(26,L=ee));var le,oe,fe,ie,_e,Q,te;let{event:D}=e,{group:K=void 0}=e,{initialItem:M}=e,{index:S=0}=e,{compact:Z=!1}=e,{expandAll:he=!1}=e,{typedError:ve=!1}=e,{active:pe=!1}=e,{onRowClick:y=Fe}=e;const W=()=>{n(20,o=!o),y()};return i.$$set=ee=>{"event"in ee&&n(0,D=ee.event),"group"in ee&&n(1,K=ee.group),"initialItem"in ee&&n(28,M=ee.initialItem),"index"in ee&&n(2,S=ee.index),"compact"in ee&&n(3,Z=ee.compact),"expandAll"in ee&&n(4,he=ee.expandAll),"typedError"in ee&&n(5,ve=ee.typedError),"active"in ee&&n(6,pe=ee.active),"onRowClick"in ee&&n(29,y=ee.onRowClick)},i.$$.update=()=>{i.$$.dirty[0]&1&&n(37,t=se(D)?Array.from(D.events.keys()).shift():D.id),i.$$.dirty[1]&128&&n(10,{workflow:l,run:r,namespace:s}=I.params,l,(n(9,r),n(38,I)),(n(11,s),n(38,I))),i.$$.dirty[0]&3585&&n(24,f=Re({eventId:D.id,namespace:s,workflow:l,run:r})),i.$$.dirty[0]&16&&n(20,o=he),i.$$.dirty[0]&1&&n(23,a=nt(D)),i.$$.dirty[0]&1|i.$$.dirty[1]&64&&n(8,u=se(D)?D.events.get(t):D),i.$$.dirty[0]&1342177537&&n(22,c=mt({start:M==null?void 0:M.eventTime,end:se(D)?n(30,le=D.initialEvent)===null||le===void 0?void 0:le.eventTime:u.eventTime,includeMillisecondsForUnderSecond:!0})),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&n(21,m=se(D)?mt({start:n(31,oe=D.initialEvent)===null||oe===void 0?void 0:oe.eventTime,end:n(32,fe=D.lastEvent)===null||fe===void 0?void 0:fe.eventTime,includeMillisecondsForUnderSecond:!0}):""),i.$$.dirty[0]&1&&n(19,_=yn(D)),i.$$.dirty[0]&1&&n(18,d=In(D)),i.$$.dirty[0]&1&&n(17,E=Tn(D)),i.$$.dirty[0]&1&&n(16,g=se(D)?D.label:jn(D)?"Local Activity":Xe(D.name)),i.$$.dirty[0]&1&&n(7,N=Fn(se(D)?D.initialEvent:D)),i.$$.dirty[0]&129&&n(15,H=Vn(se(D)?D.lastEvent:D,N==null?void 0:N.key)),i.$$.dirty[0]&1&&n(14,F=se(D)&&(D==null?void 0:D.pendingActivity)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&n(13,Y=se(D)&&D.isPending&&((n(33,ie=D==null?void 0:D.pendingActivity)===null||ie===void 0?void 0:ie.attempt)||(n(34,_e=D==null?void 0:D.pendingNexusOperation)===null||_e===void 0?void 0:_e.attempt))),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&n(12,$=se(D)&&!D.isPending&&(n(36,te=n(35,Q=D.eventList.find(Gn))===null||Q===void 0?void 0:Q.attributes)===null||te===void 0?void 0:te.attempt))},[D,K,S,Z,he,ve,pe,N,u,r,l,s,$,Y,F,H,g,E,d,_,o,m,c,a,f,w,L,W,M,y,le,oe,fe,ie,_e,Q,te,t,I]}class mn extends de{constructor(e){super(),me(this,e,ni,ti,ce,{event:0,group:1,initialItem:28,index:2,compact:3,expandAll:4,typedError:5,active:6,onRowClick:29},null,[-1,-1])}}function li(i){let e=i[0].activityId+"",n;return{c(){n=z(e)},l(t){n=q(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[0].activityId+"")&&ne(n,e)},d(t){t&&v(n)}}}function Kt(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[0].scheduledTime,negativeDefault:"None"})+"",s;return{c(){e=z("• "),t=z(n),l=j(),s=z(r)},l(f){e=q(f,"• "),t=q(f,n),l=G(f),s=q(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o&1&&r!==(r=Ve({date:f[0].scheduledTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function Qt(i){let e,n,t,l;return t=new ft({props:{group:i[1]}}),{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),this.h()},l(r){e=C(r,"TR",{class:!0});var s=A(e);n=C(s,"TD",{class:!0,colspan:!0});var f=A(n);O(t.$$.fragment,f),f.forEach(v),s.forEach(v),this.h()},h(){k(n,"class","expanded-cell w-full svelte-1dtt6u6"),k(n,"colspan","3"),k(e,"class","row expanded svelte-1dtt6u6")},m(r,s){T(r,e,s),b(e,n),R(t,n,null),l=!0},p(r,s){const f={};s&2&&(f.group=r[1]),t.$set(f)},i(r){l||(h(t.$$.fragment,r),l=!0)},o(r){p(t.$$.fragment,r),l=!1},d(r){r&&v(e),B(t)}}}function ii(i){let e,n,t,l,r,s,f,o="Pending Activity",a,u,c,m,_=re("workflows.attempt")+"",d,E,g=i[0].attempt+"",N,H,F=(i[0].maximumAttempts||"∞")+"",Y,$,I,w,L,le,oe,fe,ie,_e,Q,te,D;t=new Pe({props:{"data-testid":"link",href:i[6],$$slots:{default:[li]},$$scope:{ctx:i}}}),c=new Ne({props:{class:"mr-1.5 inline",name:"retry"}});let K=i[0].attempt>1&&Kt(i);L=new ze({props:{key:"activityType",value:i[0].activityType,showKey:!0,attributes:i[0]}});let M=i[5]&&Qt(i);return{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),l=j(),r=P("td"),s=P("div"),f=P("p"),f.textContent=o,a=j(),u=P("div"),V(c.$$.fragment),m=j(),d=z(_),E=j(),N=z(g),H=z(" / "),Y=z(F),$=j(),K&&K.c(),w=j(),V(L.$$.fragment),le=j(),oe=P("td"),ie=j(),M&&M.c(),_e=x(),this.h()},l(S){e=C(S,"TR",{class:!0,id:!0,"data-testid":!0});var Z=A(e);n=C(Z,"TD",{});var he=A(n);O(t.$$.fragment,he),he.forEach(v),l=G(Z),r=C(Z,"TD",{class:!0});var ve=A(r);s=C(ve,"DIV",{class:!0});var pe=A(s);f=C(pe,"P",{class:!0,"data-svelte-h":!0}),je(f)!=="svelte-j2hnnc"&&(f.textContent=o),a=G(pe),u=C(pe,"DIV",{class:!0});var y=A(u);O(c.$$.fragment,y),m=G(y),d=q(y,_),E=G(y),N=q(y,g),H=q(y," / "),Y=q(y,F),$=G(y),K&&K.l(y),y.forEach(v),w=G(pe),O(L.$$.fragment,pe),pe.forEach(v),ve.forEach(v),le=G(Z),oe=C(Z,"TD",{}),A(oe).forEach(v),Z.forEach(v),ie=G(S),M&&M.l(S),_e=x(),this.h()},h(){k(f,"class","event-name truncate font-semibold md:text-base"),k(u,"class",I="flex items-center gap-1 "+(i[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"),k(s,"class","flex w-full items-center gap-2"),k(r,"class","w-full overflow-hidden text-right font-normal xl:text-left"),k(e,"class","row dense svelte-1dtt6u6"),k(e,"id",fe=`${i[0].id}-${i[2]}`),k(e,"data-testid","pending-activity-summary-row"),U(e,"expanded",i[5]&&!i[3]),U(e,"active",i[4])},m(S,Z){T(S,e,Z),b(e,n),R(t,n,null),b(e,l),b(e,r),b(r,s),b(s,f),b(s,a),b(s,u),R(c,u,null),b(u,m),b(u,d),b(u,E),b(u,N),b(u,H),b(u,Y),b(u,$),K&&K.m(u,null),b(s,w),R(L,s,null),b(e,le),b(e,oe),T(S,ie,Z),M&&M.m(S,Z),T(S,_e,Z),Q=!0,te||(D=Ye(e,"click",Ze(i[7])),te=!0)},p(S,[Z]){const he={};Z&64&&(he.href=S[6]),Z&8193&&(he.$$scope={dirty:Z,ctx:S}),t.$set(he),(!Q||Z&1)&&g!==(g=S[0].attempt+"")&&ne(N,g),(!Q||Z&1)&&F!==(F=(S[0].maximumAttempts||"∞")+"")&&ne(Y,F),S[0].attempt>1?K?K.p(S,Z):(K=Kt(S),K.c(),K.m(u,null)):K&&(K.d(1),K=null),(!Q||Z&1&&I!==(I="flex items-center gap-1 "+(S[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"))&&k(u,"class",I);const ve={};Z&1&&(ve.value=S[0].activityType),Z&1&&(ve.attributes=S[0]),L.$set(ve),(!Q||Z&5&&fe!==(fe=`${S[0].id}-${S[2]}`))&&k(e,"id",fe),(!Q||Z&40)&&U(e,"expanded",S[5]&&!S[3]),(!Q||Z&16)&&U(e,"active",S[4]),S[5]?M?(M.p(S,Z),Z&32&&h(M,1)):(M=Qt(S),M.c(),h(M,1),M.m(_e.parentNode,_e)):M&&(J(),p(M,1,1,()=>{M=null}),X())},i(S){Q||(h(t.$$.fragment,S),h(c.$$.fragment,S),h(L.$$.fragment,S),h(M),Q=!0)},o(S){p(t.$$.fragment,S),p(c.$$.fragment,S),p(L.$$.fragment,S),p(M),Q=!1},d(S){S&&(v(e),v(ie),v(_e)),B(t),B(c),K&&K.d(),B(L),M&&M.d(S),te=!1,D()}}}function ri(i,e,n){let t,l,r,s,f,o;ue(i,Ge,g=>n(12,o=g));let{event:a}=e,{group:u=void 0}=e,{index:c}=e,{expandAll:m=!1}=e,{active:_=!1}=e,{onRowClick:d=Fe}=e;const E=()=>{n(5,t=!t),d()};return i.$$set=g=>{"event"in g&&n(0,a=g.event),"group"in g&&n(1,u=g.group),"index"in g&&n(2,c=g.index),"expandAll"in g&&n(3,m=g.expandAll),"active"in g&&n(4,_=g.active),"onRowClick"in g&&n(8,d=g.onRowClick)},i.$$.update=()=>{i.$$.dirty&8&&n(5,t=m),i.$$.dirty&4096&&n(10,{workflow:l,run:r,namespace:s}=o.params,l,(n(9,r),n(12,o)),(n(11,s),n(12,o))),i.$$.dirty&3585&&n(6,f=Re({eventId:a.activityId,namespace:s,workflow:l,run:r}))},[a,u,c,m,_,t,f,E,d,r,l,s,o]}class si extends de{constructor(e){super(),me(this,e,ri,ii,ce,{event:0,group:1,index:2,expandAll:3,active:4,onRowClick:8})}}function fi(i){let e=(i[0].scheduledEventId||"")+"",n;return{c(){n=z(e)},l(t){n=q(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=(t[0].scheduledEventId||"")+"")&&ne(n,e)},d(t){t&&v(n)}}}function Ut(i){let e,n,t,l=re("workflows.attempt")+"",r,s,f=i[0].attempt+"",o,a,u,c;n=new Ne({props:{class:"mr-1.5 inline",name:"retry"}});let m=i[0].attempt>1&&Jt(i);return{c(){e=P("div"),V(n.$$.fragment),t=j(),r=z(l),s=j(),o=z(f),a=j(),m&&m.c(),this.h()},l(_){e=C(_,"DIV",{class:!0});var d=A(e);O(n.$$.fragment,d),t=G(d),r=q(d,l),s=G(d),o=q(d,f),a=G(d),m&&m.l(d),d.forEach(v),this.h()},h(){k(e,"class",u="flex items-center gap-1 "+(i[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6")},m(_,d){T(_,e,d),R(n,e,null),b(e,t),b(e,r),b(e,s),b(e,o),b(e,a),m&&m.m(e,null),c=!0},p(_,d){(!c||d&1)&&f!==(f=_[0].attempt+"")&&ne(o,f),_[0].attempt>1?m?m.p(_,d):(m=Jt(_),m.c(),m.m(e,null)):m&&(m.d(1),m=null),(!c||d&1&&u!==(u="flex items-center gap-1 "+(_[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"))&&k(e,"class",u)},i(_){c||(h(n.$$.fragment,_),c=!0)},o(_){p(n.$$.fragment,_),c=!1},d(_){_&&v(e),B(n),m&&m.d()}}}function Jt(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[0].nextAttemptScheduleTime,negativeDefault:"None"})+"",s;return{c(){e=z("• "),t=z(n),l=j(),s=z(r)},l(f){e=q(f,"• "),t=q(f,n),l=G(f),s=q(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o&1&&r!==(r=Ve({date:f[0].nextAttemptScheduleTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function Xt(i){let e,n,t,l;return t=new ft({props:{group:i[1]}}),{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),this.h()},l(r){e=C(r,"TR",{class:!0});var s=A(e);n=C(s,"TD",{class:!0,colspan:!0});var f=A(n);O(t.$$.fragment,f),f.forEach(v),s.forEach(v),this.h()},h(){k(n,"class","expanded-cell w-full svelte-1dtt6u6"),k(n,"colspan","3"),k(e,"class","row expanded svelte-1dtt6u6")},m(r,s){T(r,e,s),b(e,n),R(t,n,null),l=!0},p(r,s){const f={};s&2&&(f.group=r[1]),t.$set(f)},i(r){l||(h(t.$$.fragment,r),l=!0)},o(r){p(t.$$.fragment,r),l=!1},d(r){r&&v(e),B(t)}}}function oi(i){let e,n,t,l,r,s,f,o,a,u,c="Pending Nexus Operation",m,_,d,E,g,N,H,F,Y;t=new Pe({props:{"data-testid":"link",href:i[6],$$slots:{default:[fi]},$$scope:{ctx:i}}}),o=new Ne({props:{name:"nexus"}});let $=i[0].attempt&&Ut(i),I=i[5]&&Xt(i);return{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),l=j(),r=P("td"),s=P("div"),f=P("div"),V(o.$$.fragment),a=j(),u=P("p"),u.textContent=c,m=j(),$&&$.c(),_=j(),d=P("td"),g=j(),I&&I.c(),N=x(),this.h()},l(w){e=C(w,"TR",{class:!0,id:!0,"data-testid":!0});var L=A(e);n=C(L,"TD",{class:!0});var le=A(n);O(t.$$.fragment,le),le.forEach(v),l=G(L),r=C(L,"TD",{class:!0});var oe=A(r);s=C(oe,"DIV",{class:!0});var fe=A(s);f=C(fe,"DIV",{class:!0});var ie=A(f);O(o.$$.fragment,ie),a=G(ie),u=C(ie,"P",{class:!0,"data-svelte-h":!0}),je(u)!=="svelte-4gs7dx"&&(u.textContent=c),m=G(ie),$&&$.l(ie),ie.forEach(v),fe.forEach(v),oe.forEach(v),_=G(L),d=C(L,"TD",{}),A(d).forEach(v),L.forEach(v),g=G(w),I&&I.l(w),N=x(),this.h()},h(){k(n,"class","w-12 text-left"),k(u,"class","font-semibold md:text-base"),k(f,"class","flex w-full items-center gap-2"),k(s,"class","flex"),k(r,"class","w-full overflow-hidden text-right text-sm font-normal xl:text-left"),k(e,"class","row dense svelte-1dtt6u6"),k(e,"id",E=`${i[0].scheduledEventId}-${i[2]}`),k(e,"data-testid","pending-nexus-summary-row"),U(e,"expanded",i[5]&&!i[3]),U(e,"active",i[4])},m(w,L){T(w,e,L),b(e,n),R(t,n,null),b(e,l),b(e,r),b(r,s),b(s,f),R(o,f,null),b(f,a),b(f,u),b(f,m),$&&$.m(f,null),b(e,_),b(e,d),T(w,g,L),I&&I.m(w,L),T(w,N,L),H=!0,F||(Y=Ye(e,"click",Ze(i[7])),F=!0)},p(w,[L]){const le={};L&64&&(le.href=w[6]),L&8193&&(le.$$scope={dirty:L,ctx:w}),t.$set(le),w[0].attempt?$?($.p(w,L),L&1&&h($,1)):($=Ut(w),$.c(),h($,1),$.m(f,null)):$&&(J(),p($,1,1,()=>{$=null}),X()),(!H||L&5&&E!==(E=`${w[0].scheduledEventId}-${w[2]}`))&&k(e,"id",E),(!H||L&40)&&U(e,"expanded",w[5]&&!w[3]),(!H||L&16)&&U(e,"active",w[4]),w[5]?I?(I.p(w,L),L&32&&h(I,1)):(I=Xt(w),I.c(),h(I,1),I.m(N.parentNode,N)):I&&(J(),p(I,1,1,()=>{I=null}),X())},i(w){H||(h(t.$$.fragment,w),h(o.$$.fragment,w),h($),h(I),H=!0)},o(w){p(t.$$.fragment,w),p(o.$$.fragment,w),p($),p(I),H=!1},d(w){w&&(v(e),v(g),v(N)),B(t),B(o),$&&$.d(),I&&I.d(w),F=!1,Y()}}}function ai(i,e,n){let t,l,r,s,f,o;ue(i,Ge,g=>n(12,o=g));let{event:a}=e,{group:u=void 0}=e,{index:c}=e,{expandAll:m=!1}=e,{active:_=!1}=e,{onRowClick:d=Fe}=e;const E=()=>{n(5,t=!t),d()};return i.$$set=g=>{"event"in g&&n(0,a=g.event),"group"in g&&n(1,u=g.group),"index"in g&&n(2,c=g.index),"expandAll"in g&&n(3,m=g.expandAll),"active"in g&&n(4,_=g.active),"onRowClick"in g&&n(8,d=g.onRowClick)},i.$$.update=()=>{i.$$.dirty&8&&n(5,t=m),i.$$.dirty&4096&&n(10,{workflow:l,run:r,namespace:s}=o.params,l,(n(9,r),n(12,o)),(n(11,s),n(12,o))),i.$$.dirty&3585&&n(6,f=Re({eventId:a.scheduledEventId,namespace:s,workflow:l,run:r}))},[a,u,c,m,_,t,f,E,d,r,l,s,o]}class ui extends de{constructor(e){super(),me(this,e,ai,oi,ce,{event:0,group:1,index:2,expandAll:3,active:4,onRowClick:8})}}function Yt(i,e,n){const t=i.slice();return t[17]=e[n],t[19]=n,t}function Zt(i){let e,n;return e=new fl({props:{groups:i[1],history:i[8](i[16])}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.groups=t[1]),l&65536&&(r.history=t[8](t[16])),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function xt(i){let e,n;return e=new dl({props:{loading:!i[4].length}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.loading=!t[4].length),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ci(i){let e,n;function t(...l){return i[14](i[17],...l)}return e=new mn({props:{event:i[17],index:i[19],group:i[1].find(t),compact:i[3],expandAll:i[6],initialItem:i[7]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&8&&(s.compact=i[3]),r&64&&(s.expandAll=i[6]),r&128&&(s.initialItem=i[7]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function di(i){let e,n;function t(...l){return i[13](i[17],...l)}return e=new ui({props:{event:i[17],index:i[19],group:i[1].find(t),expandAll:i[6]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&64&&(s.expandAll=i[6]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function mi(i){let e,n;function t(...l){return i[12](i[17],...l)}return e=new si({props:{event:i[17],index:i[19],group:i[1].find(t),expandAll:i[6]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&64&&(s.expandAll=i[6]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function _i(i){let e,n;return e=new mn({props:{event:i[17],index:i[19],group:i[17],compact:i[3],expandAll:i[6],initialItem:i[7]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&65536&&(r.event=t[17]),l&65536&&(r.group=t[17]),l&8&&(r.compact=t[3]),l&64&&(r.expandAll=t[6]),l&128&&(r.initialItem=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function en(i){let e,n,t,l,r,s,f;const o=[_i,mi,di,ci],a=[];function u(c,m){return m&65536&&(e=null),m&65536&&(n=null),m&65536&&(t=null),e==null&&(e=!!se(c[17])),e?0:(n==null&&(n=!!Ee(c[17])),n?1:(t==null&&(t=!!Ce(c[17])),t?2:3))}return l=u(i,-1),r=a[l]=o[l](i),{c(){r.c(),s=x()},l(c){r.l(c),s=x()},m(c,m){a[l].m(c,m),T(c,s,m),f=!0},p(c,m){let _=l;l=u(c,m),l===_?a[l].p(c,m):(J(),p(a[_],1,1,()=>{a[_]=null}),X(),r=a[l],r?r.p(c,m):(r=a[l]=o[l](c),r.c()),h(r,1),r.m(s.parentNode,s))},i(c){f||(h(r),f=!0)},o(c){p(r),f=!1},d(c){c&&v(s),a[l].d(c)}}}function hi(i){let e,n,t,l=!i[3]&&Zt(i),r=ae(i[16]),s=[];for(let a=0;ap(s[a],1,1,()=>{s[a]=null});let o=null;return r.length||(o=xt(i)),{c(){l&&l.c(),e=j(),n=P("div");for(let a=0;a{l=null}),X()):l?(l.p(a,u),u&8&&h(l,1)):(l=Zt(a),l.c(),h(l,1),l.m(e.parentNode,e)),u&65754){r=ae(a[16]);let c;for(c=0;c{o=null}),X()):(o=xt(a),o.c(),h(o,1),o.m(n,null))}},i(a){if(!t){h(l);for(let u=0;u({16:t}),({visibleItems:t})=>t?65536:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,[l]){const r={};l&4&&(r.updating=t[2]),l&33&&(r.items=t[5](t[0])),l&1114330&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function vi(i,e,n){let t,l,r,s,f,o;ue(i,An,F=>n(10,s=F)),ue(i,Pn,F=>n(11,f=F)),ue(i,Cn,F=>n(4,o=F));let{items:a}=e,{groups:u=[]}=e,{updating:c=!1}=e,{compact:m=!1}=e,{openExpanded:_=!1}=e;const d=F=>F,E=(F,Y)=>{var $;return Ee(F)&&(($=Y==null?void 0:Y.pendingActivity)==null?void 0:$.id)===F.id},g=(F,Y)=>{var $;return Ce(F)&&(($=Y==null?void 0:Y.pendingNexusOperation)==null?void 0:$.scheduledEventId)===F.scheduledEventId},N=(F,Y)=>we(F)&&Y.eventIds.has(F.id),H=F=>re("common.go-to-page",{page:F});return i.$$set=F=>{"items"in F&&n(0,a=F.items),"groups"in F&&n(1,u=F.groups),"updating"in F&&n(2,c=F.updating),"compact"in F&&n(3,m=F.compact),"openExpanded"in F&&n(9,_=F.openExpanded)},i.$$.update=()=>{i.$$.dirty&16&&n(7,t=o==null?void 0:o[0]),i.$$.dirty&2560&&n(6,l=_||f==="true"),i.$$.dirty&1024&&n(5,r=F=>zn(F,s))},[a,u,c,m,o,r,l,t,d,_,s,f,E,g,N,H]}class tr extends de{constructor(e){super(),me(this,e,vi,gi,ce,{items:0,groups:1,updating:2,compact:3,openExpanded:9})}}export{Yi as C,Ke as D,tr as E,rt as L,Xi as T,cn as a,Yn as b,qn as c,un as d,Ji as e,er as f,xi as g,Jn as m,Xn as s,Zi as t}; diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.Bjd71qae.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.Bjd71qae.js deleted file mode 100644 index f8123cefa..000000000 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.Bjd71qae.js +++ /dev/null @@ -1 +0,0 @@ -import{s as ce,a as _n,I as Le,J as Se,k as A,f as v,m as k,i as T,n as b,u as hn,g as gn,e as vn,H as U,v as Fe,x,c as ue,h as P,j as C,a2 as Ke,y as Be,D as ut,z as be,A as Ae,t as q,l as K,q as ne,b as G,d as j,o as Ge,p as Ye,F as Ze,a9 as pn}from"./scheduler.C46pS-76.js";import{S as de,i as me,t as h,g as J,b as p,e as X,c as V,a as O,m as R,d as B,h as kn,k as bn}from"./index.dOVbn71B.js";import{e as ae,u as xe,o as et}from"./each.C6O0oV7R.js";import{P as wn}from"./paginated.L2uilqIm.js";import{t as re}from"./translate.BBe5dcco.js";import{i as se,a as tt,b as En,e as yn,c as In,d as Tn}from"./index.DCblj7qv.js";import{i as we}from"./index.DJYN40WT.js";import{b as tn,h as Dn,i as An,e as Pn,f as Cn}from"./events.Dh9P6F73.js";import{i as Ee,d as Ce,e as Ln,f as Sn,h as nn,j as ct,k as Fn,l as Vn}from"./get-single-attribute-for-event.B37Av_rg.js";import{c as On,d as Rn,e as nt,t as Ve}from"./to-time-difference.ZrFqr6rH.js";import{I as Ne}from"./icon.CfkHLDdJ.js";import{E as Bn}from"./empty-state.BO9uOKUe.js";import{L as Nn}from"./loading.BLsNkl8r.js";import{g as ln,a as rn}from"./spread.CgU5AtxT.js";import{f as Wn,s as Hn}from"./index.mPGqfhEB.js";import{p as je}from"./stores.Dz-RNcUk.js";import{L as Pe}from"./link.BJceiGbc.js";import{T as dt}from"./tooltip.D2lOlqUw.js";import{t as lt,f as ye,r as sn}from"./time-format.D2wF3ave.js";import{f as Ie,s as Xe}from"./format-camel-case.ByTIZu23.js";import{u as mt}from"./format-time.6TuExJAg.js";import{f as Gn,C as jn}from"./get-event-categorization.BzHsmJUX.js";import{b as He,g as Mn,j as zn,B as Re}from"./route-for.BjP6gGR7.js";import{B as fn}from"./badge.jG5hkqHT.js";import{C as Me}from"./code-block.BkCXXL0z.js";import{C as on}from"./index.Bde7eNxE.js";import"./i18next.DhwiOCyc.js";import"./auth-user.BOlglCm6.js";import"./data-encoder-config.D-DAVwjK.js";import"./parse-with-big-int.BKSBwM2t.js";import{P as ze}from"./payload-decoder.DlOPrRzg.js";const qn=(i,e)=>e?i.filter(n=>we(n)&&n.classification==="Failed"||we(n)&&n.classification==="TimedOut"||Ee(n)||Ce(n)||se(n)&&(n.isPending||n.finalClassification==="Failed"||n.finalClassification==="TimedOut")):i,Ji=(i,e)=>e?i.filter(n=>se(n)&&(n.isPending||n.finalClassification==="Failed"||n.finalClassification==="TimedOut")):i,Kn=200,ke=6,Xi={height:ke*5,gutter:ke*8,radius:ke*2,fontSizeRatio:ke*4},it={height:32,gutter:ke*2,radius:4,fontSizeRatio:ke*4},$e={height:ke*4,gutter:ke*3,radius:ke,fontSizeRatio:ke*4},Yi={workflow:"workflow",signal:"signal",activity:"activity",nexus:"nexus",timer:"retention","local-activity":"feather","child-workflow":"relationship",update:"update",other:"terminal"},Zi=(i,e,n,t,l)=>{const{radius:r}=l,s=i[0],f=i[i.length-1];let o=!1,a="start",c=0;const u=s>1/3*n;let m=!u&&f<2/3*n&&!t;u&&(a="end"),m&&(c=i.indexOf(f));const _=1.5*r;let d=m?f+_:s-_;if(!m&&!u&&(o=!0,m=!0,d=s+_,i.length===2&&t&&i[1]-i[0]2)){const g=i[1]-i[0];i[2]-i[1]>g&&(c=1,d=i[1]+_)}return{textPosition:[d,e],textIndex:c,textAnchor:a,backdrop:o}},$n=(i,e)=>{const n=e.find(l=>l.eventIds.has(i.id));return n?Array.from(n.eventIds).indexOf(i.id)===1&&n.eventList.length===3:!1},Qe=(i,e)=>parseInt(i)===parseInt(e)-1,Qn=i=>{const e=Array.from(i.eventIds);if(e.length===1)return!0;if(e.length===2)return Qe(e[0],e[1]);if(e.length===3)return Qe(e[0],e[1])&&Qe(e[1],e[2])},Un=(i,e)=>{const n=tt(e,i);if(n.level!==void 0)return n.level;const t=e.filter(s=>s.isPending&&s.id!==n.id).filter(s=>parseInt(s.initialEvent.id)s.eventList.length>1&&!s.isPending&&s.id!==n.id).filter(s=>parseInt(s.initialEvent.id)parseInt(s.lastEvent.id)>parseInt(n.initialEvent.id)),r=[...t,...l];return!r.length&&Qn(n)&&(n.level=0),n.level=r.length+1,n.level},an=(i,e,n,t,l)=>{const r=tt(n,e);let s=0,f=0;if(!r)return{nextDistance:s,offset:f};if(r.eventList.length===1&&!r.isPending)return{nextDistance:s,offset:f};const o=we(e)&&r.eventList.indexOf(e),a=we(e)&&r.eventList[o+1];if((!we(e)||e.category!=="workflow")&&(f=Un(e,n)),!a&&!r.isPending)return{nextDistance:s,offset:f};let c=0;a?c=parseInt(a.id)-parseInt(e.id):r.isPending&&we(e)&&(c=i.length-parseInt(e.id)+2);const u=c*t;return s=l==="ascending"?u:-u,{nextDistance:s,offset:f}},xi=i=>{switch(i){case"Completed":return"#00f37e";case"Failed":case"Terminated":return"#ff4518";case"Signaled":return"#d300d8";case"Fired":return"#f8a208";case"TimedOut":return"#F97316";case"Canceled":return"#fed64b";case"Running":return"#3b82f6";case"Pending":return"#a78bfa";case"Retrying":return"#FF9B70";default:return"#ffffff"}},er=(i,e,n,t,l)=>i.filter(r=>l==="ascending"?parseInt(r)parseInt(e.id)).map(r=>{const s=n.find(f=>f.id===r);return Yn(s,t)}).reduce((r,s)=>r+s,0),Jn=i=>{const e=On(i);return i.pendingActivity?{...Rn(i.pendingActivity),...e}:e},Xn=200,Yn=(i,e)=>{const n=e>=960,t=Jn(i),l=Object.entries(t).filter(([,a])=>typeof a=="object"),r=Object.entries(t).filter(([,a])=>typeof a!="object"),s=l.length*Xn,f=(n?1:2)*r.length*$e.fontSizeRatio+$e.fontSizeRatio,o=i.category==="child-workflow"?f+Kn:f;return Math.max(s,o)+3*$e.fontSizeRatio};function _t(i){let e,n;return e=new Ne({props:{name:i[3],x:i[6]-i[2]/2,y:i[5]-i[2]/2,width:i[2],height:i[2],class:"text-black"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.name=t[3]),l&68&&(r.x=t[6]-t[2]/2),l&36&&(r.y=t[5]-t[2]/2),l&4&&(r.width=t[2]),l&4&&(r.height=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Zn(i){let e,n,t,l;const r=i[9].default,s=_n(r,i,i[8],null);let f=i[3]&&_t(i);return{c(){e=Le("g"),n=Le("circle"),s&&s.c(),f&&f.c(),this.h()},l(o){e=Se(o,"g",{class:!0});var a=A(e);n=Se(a,"circle",{class:!0,"stroke-width":!0,cx:!0,cy:!0,r:!0});var c=A(n);s&&s.l(c),c.forEach(v),f&&f.l(a),a.forEach(v),this.h()},h(){k(n,"class",t="dot "+i[0]+" "+i[1]+" svelte-1rumg40"),k(n,"stroke-width",i[4]),k(n,"cx",i[6]),k(n,"cy",i[5]),k(n,"r",i[2]),k(e,"class","svelte-1rumg40")},m(o,a){T(o,e,a),b(e,n),s&&s.m(n,null),f&&f.m(e,null),l=!0},p(o,[a]){s&&s.p&&(!l||a&256)&&hn(s,r,o,o[8],l?vn(r,o[8],a,null):gn(o[8]),null),(!l||a&3&&t!==(t="dot "+o[0]+" "+o[1]+" svelte-1rumg40"))&&k(n,"class",t),(!l||a&16)&&k(n,"stroke-width",o[4]),(!l||a&64)&&k(n,"cx",o[6]),(!l||a&32)&&k(n,"cy",o[5]),(!l||a&4)&&k(n,"r",o[2]),o[3]?f?(f.p(o,a),a&8&&h(f,1)):(f=_t(o),f.c(),h(f,1),f.m(e,null)):f&&(J(),p(f,1,1,()=>{f=null}),X())},i(o){l||(h(s,o),h(f),l=!0)},o(o){p(s,o),p(f),l=!1},d(o){o&&v(e),s&&s.d(o),f&&f.d()}}}function xn(i,e,n){let t,l,{$$slots:r={},$$scope:s}=e;const{radius:f}=it;let{point:o}=e,{category:a=void 0}=e,{classification:c=void 0}=e,{r:u=f}=e,{icon:m=void 0}=e,{strokeWidth:_=2}=e;return i.$$set=d=>{"point"in d&&n(7,o=d.point),"category"in d&&n(0,a=d.category),"classification"in d&&n(1,c=d.classification),"r"in d&&n(2,u=d.r),"icon"in d&&n(3,m=d.icon),"strokeWidth"in d&&n(4,_=d.strokeWidth),"$$scope"in d&&n(8,s=d.$$scope)},i.$$.update=()=>{i.$$.dirty&128&&n(6,[t,l]=o,t,(n(5,l),n(7,o)))},[a,c,u,m,_,l,t,o,s,r]}class un extends de{constructor(e){super(),me(this,e,xn,Zn,ce,{point:7,category:0,classification:1,r:2,icon:3,strokeWidth:4})}}function el(i){let e,n,t,l,r;return{c(){e=Le("line"),this.h()},l(s){e=Se(s,"line",{class:!0,"stroke-width":!0,"stroke-dasharray":!0,x1:!0,x2:!0,y1:!0,y2:!0}),A(e).forEach(v),this.h()},h(){k(e,"class",n="line "+i[0]+" "+i[1]+" "+i[2]+" svelte-xmy546"),k(e,"stroke-width",i[5]),k(e,"stroke-dasharray",t=i[4]?"3":i[6]),k(e,"x1",l=Math.max(0,i[10])),k(e,"x2",r=Math.max(0,i[8])),k(e,"y1",i[9]),k(e,"y2",i[7]),U(e,"scheduling",i[3]),U(e,"animate-line",i[4])},m(s,f){T(s,e,f)},p(s,[f]){f&7&&n!==(n="line "+s[0]+" "+s[1]+" "+s[2]+" svelte-xmy546")&&k(e,"class",n),f&32&&k(e,"stroke-width",s[5]),f&80&&t!==(t=s[4]?"3":s[6])&&k(e,"stroke-dasharray",t),f&1024&&l!==(l=Math.max(0,s[10]))&&k(e,"x1",l),f&256&&r!==(r=Math.max(0,s[8]))&&k(e,"x2",r),f&512&&k(e,"y1",s[9]),f&128&&k(e,"y2",s[7]),f&15&&U(e,"scheduling",s[3]),f&23&&U(e,"animate-line",s[4])},i:Fe,o:Fe,d(s){s&&v(e)}}}function tl(i,e,n){let t,l,r,s,{startPoint:f=[0,1e3]}=e,{endPoint:o=[0,1e3]}=e,{status:a=void 0}=e,{category:c=void 0}=e,{classification:u=void 0}=e,{scheduling:m=!1}=e,{pending:_=!1}=e,{strokeWidth:d=2}=e,{strokeDasharray:E="none"}=e;return i.$$set=g=>{"startPoint"in g&&n(11,f=g.startPoint),"endPoint"in g&&n(12,o=g.endPoint),"status"in g&&n(0,a=g.status),"category"in g&&n(1,c=g.category),"classification"in g&&n(2,u=g.classification),"scheduling"in g&&n(3,m=g.scheduling),"pending"in g&&n(4,_=g.pending),"strokeWidth"in g&&n(5,d=g.strokeWidth),"strokeDasharray"in g&&n(6,E=g.strokeDasharray)},i.$$.update=()=>{i.$$.dirty&2048&&n(10,[t,l]=f,t,(n(9,l),n(11,f))),i.$$.dirty&4096&&n(8,[r,s]=o,r,(n(7,s),n(12,o)))},[a,c,u,m,_,d,E,s,r,l,t,f,o]}class rt extends de{constructor(e){super(),me(this,e,tl,el,ce,{startPoint:11,endPoint:12,status:0,category:1,classification:2,scheduling:3,pending:4,strokeWidth:5,strokeDasharray:6})}}function ht(i){let e,n;return e=new rt({props:{startPoint:[i[1],i[9]],endPoint:[i[1]-i[6]-i[10],i[9]]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&514&&(r.startPoint=[t[1],t[9]]),l&578&&(r.endPoint=[t[1]-t[6]-t[10],t[9]]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function gt(i){let e,n;return e=new un({props:{point:[i[1]-i[6],i[9]],classification:i[7],strokeWidth:1}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&578&&(r.point=[t[1]-t[6],t[9]]),l&128&&(r.classification=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function vt(i){var t;let e,n;return e=new rt({props:{startPoint:[i[1]-i[6]-i[10]/2+i[11],i[9]+i[10]+i[11]/2],endPoint:[i[1]-i[6]-i[10]/2+i[11],i[9]+i[8]+i[10]],category:(t=i[0])!=null&&t.pendingActivity?i[0].pendingActivity.attempt>1?"retry":"pending":i[4],pending:i[2]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){var f;const s={};r&578&&(s.startPoint=[l[1]-l[6]-l[10]/2+l[11],l[9]+l[10]+l[11]/2]),r&834&&(s.endPoint=[l[1]-l[6]-l[10]/2+l[11],l[9]+l[8]+l[10]]),r&17&&(s.category=(f=l[0])!=null&&f.pendingActivity?l[0].pendingActivity.attempt>1?"retry":"pending":l[4]),r&4&&(s.pending=l[2]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function pt(i){let e,n;return e=new un({props:{point:[i[1]-i[6],i[9]],classification:i[7],strokeWidth:1}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&578&&(r.point=[t[1]-t[6],t[9]]),l&128&&(r.classification=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function nl(i){let e,n,t,l,r,s=i[5]&&ht(i),f=!i[3]&>(i),o=i[8]&&vt(i),a=i[3]&&pt(i);return{c(){e=Le("g"),s&&s.c(),n=x(),f&&f.c(),t=x(),o&&o.c(),l=x(),a&&a.c(),this.h()},l(c){e=Se(c,"g",{role:!0,tabindex:!0,class:!0});var u=A(e);s&&s.l(u),n=x(),f&&f.l(u),t=x(),o&&o.l(u),l=x(),a&&a.l(u),u.forEach(v),this.h()},h(){k(e,"role","button"),k(e,"tabindex","0"),k(e,"class","relative cursor-pointer")},m(c,u){T(c,e,u),s&&s.m(e,null),b(e,n),f&&f.m(e,null),b(e,t),o&&o.m(e,null),b(e,l),a&&a.m(e,null),r=!0},p(c,[u]){c[5]?s?(s.p(c,u),u&32&&h(s,1)):(s=ht(c),s.c(),h(s,1),s.m(e,n)):s&&(J(),p(s,1,1,()=>{s=null}),X()),c[3]?f&&(J(),p(f,1,1,()=>{f=null}),X()):f?(f.p(c,u),u&8&&h(f,1)):(f=gt(c),f.c(),h(f,1),f.m(e,t)),c[8]?o?(o.p(c,u),u&256&&h(o,1)):(o=vt(c),o.c(),h(o,1),o.m(e,l)):o&&(J(),p(o,1,1,()=>{o=null}),X()),c[3]?a?(a.p(c,u),u&8&&h(a,1)):(a=pt(c),a.c(),h(a,1),a.m(e,null)):a&&(J(),p(a,1,1,()=>{a=null}),X())},i(c){r||(h(s),h(f),h(o),h(a),r=!0)},o(c){p(s),p(f),p(o),p(a),r=!1},d(c){c&&v(e),s&&s.d(),f&&f.d(),o&&o.d(),a&&a.d()}}}function ll(i,e,n){let t,l,r,s,f,o,a,c,u,m,_;ue(i,tn,w=>n(18,_=w));let{event:d}=e,{group:E}=e,{history:g}=e,{groups:N}=e,{index:H}=e,{canvasWidth:F}=e;const{height:Y,radius:z}=it,I=z/2;return i.$$set=w=>{"event"in w&&n(12,d=w.event),"group"in w&&n(0,E=w.group),"history"in w&&n(13,g=w.history),"groups"in w&&n(14,N=w.groups),"index"in w&&n(15,H=w.index),"canvasWidth"in w&&n(1,F=w.canvasWidth)},i.$$.update=()=>{i.$$.dirty&32768&&n(9,t=H*Y+Y/2),i.$$.dirty&290816&&n(17,{nextDistance:l,offset:r}=an(g,d,N,Y,_),l,(n(16,r),n(13,g),n(12,d),n(14,N),n(18,_))),i.$$.dirty&196608&&n(8,s=r>0&&l),i.$$.dirty&4096&&n(7,f=Ee(d)||Ce(d)?"pending":d==null?void 0:d.classification),i.$$.dirty&65536&&n(6,o=r*1.75*z),i.$$.dirty&4097&&n(2,a=we(d)&&(E==null?void 0:E.lastEvent.id)===(d==null?void 0:d.id)&&(E==null?void 0:E.isPending)),i.$$.dirty&86016&&n(5,c=Ee(d)||Ce(d)||r===0?!1:!$n(d,N)),i.$$.dirty&4100&&n(4,u=Ee(d)||Ce(d)?"pending":a?d==null?void 0:d.category:""),i.$$.dirty&262144&&n(3,m=_==="descending")},[E,F,a,m,u,c,o,f,s,t,z,I,d,g,N,H,r,l,_]}class il extends de{constructor(e){super(),me(this,e,ll,nl,ce,{event:12,group:0,history:13,groups:14,index:15,canvasWidth:1})}}function kt(i,e,n){const t=i.slice();t[13]=e[n],t[16]=n;const l=tt(t[4],t[13]);return t[14]=l,t}function bt(i){let e,n;return e=new il({props:{event:i[13],group:i[14],groups:i[4],history:i[0],canvasWidth:i[2],index:i[16]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.event=t[13]),l&17&&(r.group=t[14]),l&16&&(r.groups=t[4]),l&1&&(r.history=t[0]),l&4&&(r.canvasWidth=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function rl(i){let e,n,t,l,r,s,f;t=new rt({props:{startPoint:[i[2],0],endPoint:[i[2],i[3]],strokeWidth:3}});let o=ae(i[0]),a=[];for(let u=0;up(a[u],1,1,()=>{a[u]=null});return{c(){e=P("div"),n=Le("svg"),V(t.$$.fragment),l=Le("svg");for(let u=0;uWe)},m(u,m){T(u,e,m),b(e,n),R(t,n,null),b(n,l);for(let _=0;_We)},i(u){if(!f){h(t.$$.fragment,u);for(let m=0;mn(8,f=g)),ue(i,Dn,g=>n(9,o=g));let{groups:a}=e,{history:c}=e;const{height:u,radius:m}=it,_=4*m;let d=_,E=0;return i.$$set=g=>{"groups"in g&&n(5,a=g.groups),"history"in g&&n(0,c=g.history)},i.$$.update=()=>{i.$$.dirty&768&&n(7,t=En(o,f)),i.$$.dirty&160&&n(4,l=[...t,...a]),i.$$.dirty&1&&n(3,r=c.length*u),i.$$.dirty&291&&n(6,s=g=>{g.forEach(N=>{const{offset:H}=an(c,N,a,u,f);n(1,d=Math.max(d,H*1.75*m+_)),n(2,E=Math.min(d-2*m,We))})}),i.$$.dirty&65&&s(c)},[c,d,E,r,l,a,s,t,f,o]}class fl extends de{constructor(e){super(),me(this,e,sl,rl,ce,{groups:5,history:0})}}function ol(i){let e,n;return e=new Bn({props:{title:i[1],content:i[2]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.title=t[1]),l&4&&(r.content=t[2]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function al(i){let e,n;return e=new Nn({}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p:Fe,i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ul(i){let e,n,t,l;const r=[al,ol],s=[];function f(o,a){return o[0]?0:1}return e=f(i),n=s[e]=r[e](i),{c(){n.c(),t=x()},l(o){n.l(o),t=x()},m(o,a){s[e].m(o,a),T(o,t,a),l=!0},p(o,[a]){let c=e;e=f(o),e===c?s[e].p(o,a):(J(),p(s[c],1,1,()=>{s[c]=null}),X(),n=s[e],n?n.p(o,a):(n=s[e]=r[e](o),n.c()),h(n,1),n.m(t.parentNode,t))},i(o){l||(h(n),l=!0)},o(o){p(n),l=!1},d(o){o&&v(t),s[e].d(o)}}}function cl(i,e,n){let{loading:t=!1}=e,{title:l=re("events.empty-state-title")}=e,{content:r=re("events.empty-state-description")}=e;return i.$$set=s=>{"loading"in s&&n(0,t=s.loading),"title"in s&&n(1,l=s.title),"content"in s&&n(2,r=s.content)},[t,l,r]}class dl extends de{constructor(e){super(),me(this,e,cl,ul,ce,{loading:0,title:1,content:2})}}function ml(i){let e;return{c(){e=q(i[0])},l(n){e=K(n,i[0])},m(n,t){T(n,e,t)},p(n,t){t&1&&ne(e,n[0])},d(n){n&&v(e)}}}function _l(i){let e,n;return e=new Pe({props:{class:i[3].class,href:i[2],light:i[1],$$slots:{default:[ml]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,[l]){const r={};l&8&&(r.class=t[3].class),l&4&&(r.href=t[2]),l&2&&(r.light=t[1]),l&16385&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function hl(i,e,n){let t,l,r,s,f,o,a,c;const u=["value","attributes","type","light"];let m=ut(e,u),_;ue(i,je,H=>n(13,_=H));let{value:d}=e,{attributes:E}=e,{type:g}=e,{light:N=!1}=e;return i.$$set=H=>{e=be(be({},e),Ae(H)),n(3,m=ut(e,u)),"value"in H&&n(0,d=H.value),"attributes"in H&&n(4,E=H.attributes),"type"in H&&n(5,g=H.type),"light"in H&&n(1,N=H.light)},i.$$.update=()=>{i.$$.dirty&8192&&n(12,{workflow:t,namespace:l}=_.params,t,(n(11,l),n(13,_))),i.$$.dirty&6145&&n(10,r=He({namespace:l,workflow:t,run:d})),i.$$.dirty&2049&&n(9,s=Mn({namespace:l,queue:d})),i.$$.dirty&2064&&n(8,f=He({namespace:l,workflow:E.workflowExecutionWorkflowId,run:E.workflowExecutionRunId})),i.$$.dirty&1&&n(7,o=zn(d)),i.$$.dirty&1920&&n(6,a={execution:r,"task-queue":s,"child-workflow":f,"nexus-endpoint":o}),i.$$.dirty&96&&n(2,c=a[g])},[d,N,c,m,E,g,a,o,f,s,r,l,t,_]}class cn extends de{constructor(e){super(),me(this,e,hl,_l,ce,{value:0,attributes:4,type:5,light:1})}}function gl(i){let e,n,t=Ie(i[0])+"",l,r,s,f;return s=new fn({props:{type:"subtle",class:"inline-block whitespace-pre-wrap",$$slots:{default:[kl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),l=q(t),r=G(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var c=A(n);l=K(c,t),c.forEach(v),r=j(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content detail-row svelte-1dhlqx8")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){(!f||a&1)&&t!==(t=Ie(o[0])+"")&&ne(l,t);const c={};a&1155&&(c.$$scope={dirty:a,ctx:o}),s.$set(c)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function vl(i){let e,n,t=Ie(i[0])+"",l,r,s,f;return s=new on({props:{copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title"),content:String(i[1]),$$slots:{default:[bl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),l=q(t),r=G(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var c=A(n);l=K(c,t),c.forEach(v),r=j(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content detail-row svelte-1dhlqx8")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){(!f||a&1)&&t!==(t=Ie(o[0])+"")&&ne(l,t);const c={};a&2&&(c.content=String(o[1])),a&1062&&(c.$$scope={dirty:a,ctx:o}),s.$set(c)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function pl(i){let e,n,t,l=Ie(i[0])+"",r,s,f,o,a,c;const u=[yl,El,wl],m=[];function _(E,g){var N;return(N=E[1])!=null&&N.payloads?0:E[0]==="searchAttributes"?1:2}f=_(i),o=m[f]=u[f](i);let d=i[6]&&!i[3]&&wt(i);return{c(){e=P("div"),n=P("div"),t=P("p"),r=q(l),s=G(),o.c(),a=G(),d&&d.c(),this.h()},l(E){e=C(E,"DIV",{class:!0});var g=A(e);n=C(g,"DIV",{class:!0});var N=A(n);t=C(N,"P",{class:!0});var H=A(t);r=K(H,l),H.forEach(v),s=j(N),o.l(N),N.forEach(v),a=j(g),d&&d.l(g),g.forEach(v),this.h()},h(){k(t,"class","text-sm"),k(n,"class","flex flex-col"),k(e,"class","content code-block-row svelte-1dhlqx8")},m(E,g){T(E,e,g),b(e,n),b(n,t),b(t,r),b(n,s),m[f].m(n,null),b(e,a),d&&d.m(e,null),c=!0},p(E,g){(!c||g&1)&&l!==(l=Ie(E[0])+"")&&ne(r,l);let N=f;f=_(E),f===N?m[f].p(E,g):(J(),p(m[N],1,1,()=>{m[N]=null}),X(),o=m[f],o?o.p(E,g):(o=m[f]=u[f](E),o.c()),h(o,1),o.m(n,null)),E[6]&&!E[3]?d?(d.p(E,g),g&72&&h(d,1)):(d=wt(E),d.c(),h(d,1),d.m(e,null)):d&&(J(),p(d,1,1,()=>{d=null}),X())},i(E){c||(h(o),h(d),c=!0)},o(E){p(o),p(d),c=!1},d(E){E&&v(e),m[f].d(),d&&d.d()}}}function kl(i){let e=(ct(i[0])?ye(i[1],i[7]):i[1])+"",n;return{c(){n=q(e)},l(t){n=K(t,e)},m(t,l){T(t,n,l)},p(t,l){l&131&&e!==(e=(ct(t[0])?ye(t[1],t[7]):t[1])+"")&&ne(n,e)},d(t){t&&v(n)}}}function bl(i){let e,n;return e=new cn({props:{value:String(i[1]),attributes:i[2],type:i[5],class:"whitespace-pre-line"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=String(t[1])),l&4&&(r.attributes=t[2]),l&32&&(r.type=t[5]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wl(i){let e,n;return e=new ze({props:{value:i[4],$$slots:{default:[Il,({decodedValue:t})=>({9:t}),({decodedValue:t})=>t?512:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.value=t[4]),l&1544&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function El(i){let e,n;return e=new ze({props:{key:"searchAttributes",value:{searchAttributes:i[4]},$$slots:{default:[Tl,({decodedValue:t})=>({9:t}),({decodedValue:t})=>t?512:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.value={searchAttributes:t[4]}),l&1544&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function yl(i){let e,n;return e=new ze({props:{value:i[1],key:"payloads",$$slots:{default:[Dl,({decodedValue:t})=>({9:t}),({decodedValue:t})=>t?512:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&1544&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Il(i){let e,n;return e=new Me({props:{content:i[9],maxHeight:384,inline:i[3],copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&512&&(r.content=t[9]),l&8&&(r.inline=t[3]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Tl(i){let e,n;return e=new Me({props:{content:i[9],maxHeight:384,inline:i[3],copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&512&&(r.content=t[9]),l&8&&(r.inline=t[3]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Dl(i){let e,n;return e=new Me({props:{content:i[9],maxHeight:384,inline:i[3],copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&512&&(r.content=t[9]),l&8&&(r.inline=t[3]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function wt(i){let e,n,t=re("workflows.call-stack-tab")+"",l,r,s,f;return s=new Me({props:{content:i[6],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title")}}),{c(){e=P("div"),n=P("p"),l=q(t),r=G(),V(s.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0});var c=A(n);l=K(c,t),c.forEach(v),r=j(a),O(s.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","flex flex-col")},m(o,a){T(o,e,a),b(e,n),b(n,l),b(e,r),R(s,e,null),f=!0},p(o,a){const c={};a&64&&(c.content=o[6]),s.$set(c)},i(o){f||(h(s.$$.fragment,o),f=!0)},o(o){p(s.$$.fragment,o),f=!1},d(o){o&&v(e),B(s)}}}function Al(i){let e,n,t,l,r;const s=[pl,vl,gl],f=[];function o(a,c){return typeof a[1]=="object"?0:a[5]!=="none"?1:2}return n=o(i),t=f[n]=s[n](i),{c(){e=P("div"),t.c(),this.h()},l(a){e=C(a,"DIV",{class:!0});var c=A(e);t.l(c),c.forEach(v),this.h()},h(){k(e,"class",l="flex "+i[8].class+" svelte-1dhlqx8")},m(a,c){T(a,e,c),f[n].m(e,null),r=!0},p(a,[c]){let u=n;n=o(a),n===u?f[n].p(a,c):(J(),p(f[u],1,1,()=>{f[u]=null}),X(),t=f[n],t?t.p(a,c):(t=f[n]=s[n](a),t.c()),h(t,1),t.m(e,null)),(!r||c&256&&l!==(l="flex "+a[8].class+" svelte-1dhlqx8"))&&k(e,"class",l)},i(a){r||(h(t),r=!0)},o(a){p(t),r=!1},d(a){a&&v(e),f[n].d()}}}function Pl(i,e,n){let t,l,r,s;ue(i,lt,u=>n(7,s=u));let{key:f}=e,{value:o}=e,{attributes:a}=e,{inline:c=!1}=e;return i.$$set=u=>{n(8,e=be(be({},e),Ae(u))),"key"in u&&n(0,f=u.key),"value"in u&&n(1,o=u.value),"attributes"in u&&n(2,a=u.attributes),"inline"in u&&n(3,c=u.inline)},i.$$.update=()=>{i.$$.dirty&2&&n(4,t=Ln(o)),i.$$.dirty&16&&n(6,l=Sn(t)),i.$$.dirty&5&&n(5,r=nn(f,a))},e=Ae(e),[f,o,a,c,t,r,l,s,e]}class st extends de{constructor(e){super(),me(this,e,Pl,Al,ce,{key:0,value:1,attributes:2,inline:3})}}function Et(i,e,n){const t=i.slice();return t[1]=e[n],t}function Ue(i){const e=i.slice(),n=He({namespace:e[1].workflowEvent.namespace,workflow:e[1].workflowEvent.workflowId,run:e[1].workflowEvent.runId});return e[4]=n,e}function yt(i){let e,n,t="Link",l,r,s,f;return r=new Pe({props:{class:"whitespace-pre-line",href:i[4],$$slots:{default:[Cl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),n.textContent=t,l=G(),V(r.$$.fragment),s=G(),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0,"data-svelte-h":!0}),Ge(n)!=="svelte-tg0iwv"&&(n.textContent=t),l=j(a),O(r.$$.fragment,a),s=j(a),a.forEach(v),this.h()},h(){k(n,"class","text-sm"),k(e,"class","content svelte-xg3mkm")},m(o,a){T(o,e,a),b(e,n),b(e,l),R(r,e,null),b(e,s),f=!0},p(o,a){const c={};a&1&&(c.href=o[4]),a&33&&(c.$$scope={dirty:a,ctx:o}),r.$set(c)},i(o){f||(h(r.$$.fragment,o),f=!0)},o(o){p(r.$$.fragment,o),f=!1},d(o){o&&v(e),B(r)}}}function Cl(i){let e=i[1].workflowEvent.workflowId+"",n;return{c(){n=q(e)},l(t){n=K(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[1].workflowEvent.workflowId+"")&&ne(n,e)},d(t){t&&v(n)}}}function It(i){var l;let e,n,t=((l=i[1])==null?void 0:l.workflowEvent)&&yt(Ue(i));return{c(){t&&t.c(),e=x()},l(r){t&&t.l(r),e=x()},m(r,s){t&&t.m(r,s),T(r,e,s),n=!0},p(r,s){var f;(f=r[1])!=null&&f.workflowEvent?t?(t.p(Ue(r),s),s&1&&h(t,1)):(t=yt(Ue(r)),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(J(),p(t,1,1,()=>{t=null}),X())},i(r){n||(h(t),n=!0)},o(r){p(t),n=!1},d(r){r&&v(e),t&&t.d(r)}}}function Ll(i){let e,n,t=ae(i[0]),l=[];for(let s=0;sp(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{"links"in l&&n(0,t=l.links)},[t]}class dn extends de{constructor(e){super(),me(this,e,Sl,Ll,ce,{links:0})}}function Tt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Dt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Je(i){const e=i.slice(),n=Object.entries(e[2]);return e[6]=n,e}function At(i,e,n){const t=i.slice();t[11]=e[n];const l=nt(t[11]);t[12]=l;const r=Object.entries(t[12]);return t[6]=r,t}function Pt(i,e,n){const t=i.slice();return t[7]=e[n][0],t[8]=e[n][1],t}function Fl(i){const e=i.slice(),n=nt(e[1]);e[12]=n;const t=Object.entries(e[12]);return e[6]=t,e}function Vl(i){var c;let e,n,t,l,r=[],s=new Map,f;t=new dn({props:{links:(c=i[1])==null?void 0:c.links}});let o=ae(i[6]);const a=u=>u[7];for(let u=0;up(s[a],1,1,()=>{s[a]=null});let o=i[2]&&Ft(Je(i));return{c(){e=P("div"),n=P("div");for(let a=0;a{o=null}),X())},i(a){if(!l){for(let c=0;cI[7];for(let I=0;I_[7];for(let _=0;_{s[u]=null}),X()),~e?(n=s[e],n?n.p(o(a,e),c):(n=s[e]=r[e](o(a,e)),n.c()),h(n,1),n.m(t.parentNode,t)):n=null)},i(a){l||(h(n),l=!0)},o(a){p(n),l=!1},d(a){a&&v(t),~e&&s[e].d(a)}}}function Bl(i,e,n){let t,l,r,s;ue(i,lt,a=>n(4,r=a)),ue(i,sn,a=>n(5,s=a));let{group:f=void 0}=e,{event:o=void 0}=e;return i.$$set=a=>{"group"in a&&n(0,f=a.group),"event"in a&&n(1,o=a.event)},i.$$.update=()=>{i.$$.dirty&1&&n(2,t=(f==null?void 0:f.pendingActivity)||(f==null?void 0:f.pendingNexusOperation)),i.$$.dirty&5&&n(3,l=f&&(f.eventList.length>1||t))},[f,o,t,l,r,s]}class ft extends de{constructor(e){super(),me(this,e,Bl,Rl,ce,{group:0,event:1})}}function Ot(i){let e,n,t,l,r,s=i[3]&&Rt(i);const f=[Hl,Wl,Nl],o=[];function a(c,u){return typeof c[1]=="object"?0:c[4]!=="none"?1:2}return t=a(i),l=o[t]=f[t](i),{c(){e=P("div"),s&&s.c(),n=G(),l.c(),this.h()},l(c){e=C(c,"DIV",{class:!0});var u=A(e);s&&s.l(u),n=j(u),l.l(u),u.forEach(v),this.h()},h(){k(e,"class","flex max-w-xl items-center gap-2 first:pt-0 last:border-b-0 md:w-auto")},m(c,u){T(c,e,u),s&&s.m(e,null),b(e,n),o[t].m(e,null),r=!0},p(c,u){c[3]?s?s.p(c,u):(s=Rt(c),s.c(),s.m(e,n)):s&&(s.d(1),s=null);let m=t;t=a(c),t===m?o[t].p(c,u):(J(),p(o[m],1,1,()=>{o[m]=null}),X(),l=o[t],l?l.p(c,u):(l=o[t]=f[t](c),l.c()),h(l,1),l.m(e,null))},i(c){r||(h(l),r=!0)},o(c){p(l),r=!1},d(c){c&&v(e),s&&s.d(),o[t].d()}}}function Rt(i){let e,n=Ie(i[0])+"",t;return{c(){e=P("p"),t=q(n),this.h()},l(l){e=C(l,"P",{class:!0});var r=A(e);t=K(r,n),r.forEach(v),this.h()},h(){k(e,"class","whitespace-nowrap text-right text-xs")},m(l,r){T(l,e,r),b(e,t)},p(l,r){r&1&&n!==(n=Ie(l[0])+"")&&ne(t,n)},d(l){l&&v(e)}}}function Nl(i){let e,n;return e=new fn({props:{type:"subtle",class:"block select-none truncate",$$slots:{default:[Gl]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&130&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Wl(i){let e,n;return e=new on({props:{copyIconTitle:re("common.copy-icon-title"),copySuccessIconTitle:re("common.copy-success-icon-title"),content:i[1],"container-class":"truncate",$$slots:{default:[jl]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.content=t[1]),l&150&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Hl(i){let e,n,t;return n=new ze({props:{value:i[1],key:"payloads",$$slots:{default:[Ml,({decodedValue:l})=>({6:l}),({decodedValue:l})=>l?64:0]},$$scope:{ctx:i}}}),{c(){e=P("div"),V(n.$$.fragment),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=A(e);O(n.$$.fragment,r),r.forEach(v),this.h()},h(){k(e,"class","flex max-w-sm items-center justify-between gap-2 overflow-hidden pr-1 xl:flex-nowrap")},m(l,r){T(l,e,r),R(n,e,null),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),r&224&&(s.$$scope={dirty:r,ctx:l}),n.$set(s)},i(l){t||(h(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&v(e),B(n)}}}function Gl(i){let e;return{c(){e=q(i[1])},l(n){e=K(n,i[1])},m(n,t){T(n,e,t)},p(n,t){t&2&&ne(e,n[1])},d(n){n&&v(e)}}}function jl(i){let e,n;return e=new cn({props:{value:i[1],attributes:i[2],type:i[4],class:"truncate"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&4&&(r.attributes=t[2]),l&16&&(r.type=t[4]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Ml(i){let e,n,t,l=i[6]+"",r,s;return{c(){e=P("div"),n=P("code"),t=P("pre"),r=q(l),this.h()},l(f){e=C(f,"DIV",{class:!0});var o=A(e);n=C(o,"CODE",{});var a=A(n);t=C(a,"PRE",{});var c=A(t);r=K(c,l),c.forEach(v),a.forEach(v),o.forEach(v),this.h()},h(){k(e,"class",s="payload "+i[5].class+" svelte-1ft3ysk")},m(f,o){T(f,e,o),b(e,n),b(n,t),b(t,r)},p(f,o){o&64&&l!==(l=f[6]+"")&&ne(r,l),o&32&&s!==(s="payload "+f[5].class+" svelte-1ft3ysk")&&k(e,"class",s)},d(f){f&&v(e)}}}function zl(i){let e,n,t=i[0]&&Ot(i);return{c(){t&&t.c(),e=x()},l(l){t&&t.l(l),e=x()},m(l,r){t&&t.m(l,r),T(l,e,r),n=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&h(t,1)):(t=Ot(l),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(J(),p(t,1,1,()=>{t=null}),X())},i(l){n||(h(t),n=!0)},o(l){p(t),n=!1},d(l){l&&v(e),t&&t.d(l)}}}function ql(i,e,n){let t,{key:l}=e,{value:r}=e,{attributes:s}=e,{showKey:f=!0}=e;return i.$$set=o=>{n(5,e=be(be({},e),Ae(o))),"key"in o&&n(0,l=o.key),"value"in o&&n(1,r=o.value),"attributes"in o&&n(2,s=o.attributes),"showKey"in o&&n(3,f=o.showKey)},i.$$.update=()=>{i.$$.dirty&5&&n(4,t=nn(l,s))},e=Ae(e),[l,r,s,f,t,e]}class qe extends de{constructor(e){super(),me(this,e,ql,zl,ce,{key:0,value:1,attributes:2,showKey:3})}}function Kl(i){let e=i[0].workflowEvent.workflowId+"",n;return{c(){n=q(e)},l(t){n=K(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[0].workflowEvent.workflowId+"")&&ne(n,e)},d(t){t&&v(n)}}}function $l(i){let e,n,t="Link",l,r,s,f;return r=new Pe({props:{href:i[1],$$slots:{default:[Kl]},$$scope:{ctx:i}}}),{c(){e=P("div"),n=P("p"),n.textContent=t,l=G(),V(r.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var a=A(e);n=C(a,"P",{class:!0,"data-svelte-h":!0}),Ge(n)!=="svelte-1txiatz"&&(n.textContent=t),l=j(a),O(r.$$.fragment,a),a.forEach(v),this.h()},h(){k(n,"class","max-w-fit whitespace-nowrap text-right text-xs"),k(e,"class",s="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 xl:max-w-xl "+i[2].class)},m(o,a){T(o,e,a),b(e,n),b(e,l),R(r,e,null),f=!0},p(o,[a]){const c={};a&2&&(c.href=o[1]),a&9&&(c.$$scope={dirty:a,ctx:o}),r.$set(c),(!f||a&4&&s!==(s="flex flex-row items-center gap-2 overflow-hidden first:pt-0 last:border-b-0 xl:max-w-xl "+o[2].class))&&k(e,"class",s)},i(o){f||(h(r.$$.fragment,o),f=!0)},o(o){p(r.$$.fragment,o),f=!1},d(o){o&&v(e),B(r)}}}function Ql(i,e,n){let t,{link:l}=e;return i.$$set=r=>{n(2,e=be(be({},e),Ae(r))),"link"in r&&n(0,l=r.link)},i.$$.update=()=>{i.$$.dirty&1&&n(1,t=He({namespace:l.workflowEvent.namespace,workflow:l.workflowEvent.workflowId,run:l.workflowEvent.runId}))},e=Ae(e),[l,t,e]}class Ul extends de{constructor(e){super(),me(this,e,Ql,$l,ce,{link:0})}}function Bt(i,e,n){const t=i.slice();return t[39]=e[n],t}function Jl(i){let e,n,t;return n=new Pe({props:{"data-testid":"link",href:i[24],$$slots:{default:[Yl]},$$scope:{ctx:i}}}),{c(){e=P("td"),V(n.$$.fragment)},l(l){e=C(l,"TD",{});var r=A(e);O(n.$$.fragment,r),r.forEach(v)},m(l,r){T(l,e,r),R(n,e,null),t=!0},p(l,r){const s={};r[0]&16777216&&(s.href=l[24]),r[0]&1|r[1]&2048&&(s.$$scope={dirty:r,ctx:l}),n.$set(s)},i(l){t||(h(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&v(e),B(n)}}}function Xl(i){let e,n,t,l=ae(i[0].eventList),r=[];for(let f=0;fp(r[f],1,1,()=>{r[f]=null});return{c(){e=P("td"),n=P("div");for(let f=0;f1&&"surface-retry rounded px-1 py-0.5")+" svelte-117pdmd")},m(m,_){T(m,e,_),R(n,e,null),b(e,t),b(e,r),b(e,s),b(e,f),b(e,o),u&&u.m(e,null),c=!0},p(m,_){(!c||_[0]&8192)&&ne(f,m[13]),m[14]?u?u.p(m,_):(u=Ht(m),u.c(),u.m(e,null)):u&&(u.d(1),u=null),(!c||_[0]&8192&&a!==(a="flex items-center gap-1 "+(m[13]>1&&"surface-retry rounded px-1 py-0.5")+" svelte-117pdmd"))&&k(e,"class",a)},i(m){c||(h(n.$$.fragment,m),c=!0)},o(m){p(n.$$.fragment,m),c=!1},d(m){m&&v(e),B(n),u&&u.d()}}}function Ht(i){let e,n=(i[14].maximumAttempts||"∞")+"",t,l,r,s=i[13]>1&&Gt(i);return{c(){e=q("/ "),t=q(n),l=G(),s&&s.c(),r=x()},l(f){e=K(f,"/ "),t=K(f,n),l=j(f),s&&s.l(f),r=x()},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),s&&s.m(f,o),T(f,r,o)},p(f,o){o[0]&16384&&n!==(n=(f[14].maximumAttempts||"∞")+"")&&ne(t,n),f[13]>1?s?s.p(f,o):(s=Gt(f),s.c(),s.m(r.parentNode,r)):s&&(s.d(1),s=null)},d(f){f&&(v(e),v(t),v(l),v(r)),s&&s.d(f)}}}function Gt(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[14].scheduledTime,negativeDefault:"None"})+"",s;return{c(){e=q("• "),t=q(n),l=G(),s=q(r)},l(f){e=K(f,"• "),t=K(f,n),l=j(f),s=K(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o[0]&16384&&r!==(r=Ve({date:f[14].scheduledTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function jt(i){let e,n;return e=new Ul({props:{link:i[8].links[0],class:"max-w-xl truncate"}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l[0]&256&&(r.link=t[8].links[0]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function Mt(i){let e,n;const t=[i[7],{attributes:i[23]}];let l={};for(let r=0;r{s&&(r&&r.end(1),l=kn(e,Wn,{}),l.start())}),s=!0)},o(f){p(t.$$.fragment,f),l&&l.invalidate(),f&&(r=bn(e,Hn,{duration:175})),s=!1},d(f){f&&v(e),B(t),f&&r&&r.end()}}}function ti(i){var Z,he,ve,pe;let e,n,t,l,r,s,f,o,a,c,u,m,_,d,E,g,N,H,F,Y,z,I,w,L,le,oe;const fe=[Xl,Jl],ie=[];function _e(y,W){return W[0]&1&&(n=null),n==null&&(n=!!se(y[0])),n?0:1}t=_e(i,[-1,-1]),l=ie[t]=fe[t](i),f=new dt({props:{hide:se(i[0])&&!i[21]||!i[22],text:se(i[0])?`Duration: ${i[21]}`:`+${i[22]}`,bottom:!0,$$slots:{default:[xl]},$$scope:{ctx:i}}}),c=new dt({props:{hide:se(i[0])&&!i[21]||!i[22],text:se(i[0])?`Duration: ${i[21]}`:`+${i[22]}`,bottom:!0,$$slots:{default:[ei]},$$scope:{ctx:i}}});let Q=i[13]&&Wt(i),te=((he=(Z=i[8])==null?void 0:Z.links)==null?void 0:he.length)&&jt(i),D=((ve=i[7])==null?void 0:ve.key)&&Mt(i),$=i[12]&&zt(i),M=i[3]&&((pe=i[15])==null?void 0:pe.key)&&qt(i),S=i[20]&&Kt(i);return{c(){e=P("tr"),l.c(),r=G(),s=P("td"),V(f.$$.fragment),o=G(),a=P("td"),V(c.$$.fragment),u=G(),m=P("td"),_=P("p"),d=q(i[16]),E=G(),g=P("td"),Q&&Q.c(),N=G(),te&&te.c(),H=G(),D&&D.c(),F=G(),$&&$.c(),Y=G(),M&&M.c(),I=G(),S&&S.c(),w=x(),this.h()},l(y){e=C(y,"TR",{class:!0,id:!0,"data-testid":!0});var W=A(e);l.l(W),r=j(W),s=C(W,"TD",{class:!0});var ee=A(s);O(f.$$.fragment,ee),ee.forEach(v),o=j(W),a=C(W,"TD",{class:!0});var Te=A(a);O(c.$$.fragment,Te),Te.forEach(v),u=j(W),m=C(W,"TD",{class:!0});var De=A(m);_=C(De,"P",{class:!0});var Oe=A(_);d=K(Oe,i[16]),Oe.forEach(v),De.forEach(v),E=j(W),g=C(W,"TD",{class:!0});var ge=A(g);Q&&Q.l(ge),N=j(ge),te&&te.l(ge),H=j(ge),D&&D.l(ge),F=j(ge),$&&$.l(ge),Y=j(ge),M&&M.l(ge),ge.forEach(v),W.forEach(v),I=j(y),S&&S.l(y),w=x(),this.h()},h(){k(s,"class","text-right md:hidden"),k(a,"class","hidden text-right md:block"),k(_,"class","event-name whitespace-nowrap font-semibold md:text-base svelte-117pdmd"),k(m,"class","truncate md:min-w-fit"),k(g,"class","hidden w-full items-center gap-2 text-right text-sm font-normal md:flex xl:text-left"),k(e,"class","row dense svelte-117pdmd"),k(e,"id",z=`${i[0].id}-${i[2]}`),k(e,"data-testid","event-summary-row"),U(e,"expanded",i[20]&&!i[4]),U(e,"active",i[6]),U(e,"failure",i[19]),U(e,"canceled",i[18]),U(e,"terminated",i[17]),U(e,"typedError",i[5])},m(y,W){T(y,e,W),ie[t].m(e,null),b(e,r),b(e,s),R(f,s,null),b(e,o),b(e,a),R(c,a,null),b(e,u),b(e,m),b(m,_),b(_,d),b(e,E),b(e,g),Q&&Q.m(g,null),b(g,N),te&&te.m(g,null),b(g,H),D&&D.m(g,null),b(g,F),$&&$.m(g,null),b(g,Y),M&&M.m(g,null),T(y,I,W),S&&S.m(y,W),T(y,w,W),L=!0,le||(oe=Ye(e,"click",Ze(i[27])),le=!0)},p(y,W){var Oe,ge,ot,at;let ee=t;t=_e(y,W),t===ee?ie[t].p(y,W):(J(),p(ie[ee],1,1,()=>{ie[ee]=null}),X(),l=ie[t],l?l.p(y,W):(l=ie[t]=fe[t](y),l.c()),h(l,1),l.m(e,r));const Te={};W[0]&6291457&&(Te.hide=se(y[0])&&!y[21]||!y[22]),W[0]&6291457&&(Te.text=se(y[0])?`Duration: ${y[21]}`:`+${y[22]}`),W[0]&100663552|W[1]&2048&&(Te.$$scope={dirty:W,ctx:y}),f.$set(Te);const De={};W[0]&6291457&&(De.hide=se(y[0])&&!y[21]||!y[22]),W[0]&6291457&&(De.text=se(y[0])?`Duration: ${y[21]}`:`+${y[22]}`),W[0]&100663552|W[1]&2048&&(De.$$scope={dirty:W,ctx:y}),c.$set(De),(!L||W[0]&65536)&&ne(d,y[16]),y[13]?Q?(Q.p(y,W),W[0]&8192&&h(Q,1)):(Q=Wt(y),Q.c(),h(Q,1),Q.m(g,N)):Q&&(J(),p(Q,1,1,()=>{Q=null}),X()),(ge=(Oe=y[8])==null?void 0:Oe.links)!=null&&ge.length?te?(te.p(y,W),W[0]&256&&h(te,1)):(te=jt(y),te.c(),h(te,1),te.m(g,H)):te&&(J(),p(te,1,1,()=>{te=null}),X()),(ot=y[7])!=null&&ot.key?D?(D.p(y,W),W[0]&128&&h(D,1)):(D=Mt(y),D.c(),h(D,1),D.m(g,F)):D&&(J(),p(D,1,1,()=>{D=null}),X()),y[12]?$?($.p(y,W),W[0]&4096&&h($,1)):($=zt(y),$.c(),h($,1),$.m(g,Y)):$&&(J(),p($,1,1,()=>{$=null}),X()),y[3]&&((at=y[15])!=null&&at.key)?M?(M.p(y,W),W[0]&32776&&h(M,1)):(M=qt(y),M.c(),h(M,1),M.m(g,null)):M&&(J(),p(M,1,1,()=>{M=null}),X()),(!L||W[0]&5&&z!==(z=`${y[0].id}-${y[2]}`))&&k(e,"id",z),(!L||W[0]&1048592)&&U(e,"expanded",y[20]&&!y[4]),(!L||W[0]&64)&&U(e,"active",y[6]),(!L||W[0]&524288)&&U(e,"failure",y[19]),(!L||W[0]&262144)&&U(e,"canceled",y[18]),(!L||W[0]&131072)&&U(e,"terminated",y[17]),(!L||W[0]&32)&&U(e,"typedError",y[5]),y[20]?S?(S.p(y,W),W[0]&1048576&&h(S,1)):(S=Kt(y),S.c(),h(S,1),S.m(w.parentNode,w)):S&&(J(),p(S,1,1,()=>{S=null}),X())},i(y){L||(h(l),h(f.$$.fragment,y),h(c.$$.fragment,y),h(Q),h(te),h(D),h($),h(M),h(S),L=!0)},o(y){p(l),p(f.$$.fragment,y),p(c.$$.fragment,y),p(Q),p(te),p(D),p($),p(M),p(S),L=!1},d(y){y&&(v(e),v(I),v(w)),ie[t].d(),B(f),B(c),Q&&Q.d(),te&&te.d(),D&&D.d(),$&&$.d(),M&&M.d(),S&&S.d(y),le=!1,oe()}}}function ni(i,e,n){let t,l,r,s,f,o,a,c,u,m,_,d,E,g,N,H,F,Y,z,I,w,L;ue(i,je,ee=>n(38,I=ee)),ue(i,lt,ee=>n(25,w=ee)),ue(i,sn,ee=>n(26,L=ee));var le,oe,fe,ie,_e,Q,te;let{event:D}=e,{group:$=void 0}=e,{initialItem:M}=e,{index:S=0}=e,{compact:Z=!1}=e,{expandAll:he=!1}=e,{typedError:ve=!1}=e,{active:pe=!1}=e,{onRowClick:y=Fe}=e;const W=()=>{n(20,o=!o),y()};return i.$$set=ee=>{"event"in ee&&n(0,D=ee.event),"group"in ee&&n(1,$=ee.group),"initialItem"in ee&&n(28,M=ee.initialItem),"index"in ee&&n(2,S=ee.index),"compact"in ee&&n(3,Z=ee.compact),"expandAll"in ee&&n(4,he=ee.expandAll),"typedError"in ee&&n(5,ve=ee.typedError),"active"in ee&&n(6,pe=ee.active),"onRowClick"in ee&&n(29,y=ee.onRowClick)},i.$$.update=()=>{i.$$.dirty[0]&1&&n(37,t=se(D)?Array.from(D.events.keys()).shift():D.id),i.$$.dirty[1]&128&&n(10,{workflow:l,run:r,namespace:s}=I.params,l,(n(9,r),n(38,I)),(n(11,s),n(38,I))),i.$$.dirty[0]&3585&&n(24,f=Re({eventId:D.id,namespace:s,workflow:l,run:r})),i.$$.dirty[0]&16&&n(20,o=he),i.$$.dirty[0]&1&&n(23,a=nt(D)),i.$$.dirty[0]&1|i.$$.dirty[1]&64&&n(8,c=se(D)?D.events.get(t):D),i.$$.dirty[0]&1342177537&&n(22,u=mt({start:M==null?void 0:M.eventTime,end:se(D)?n(30,le=D.initialEvent)===null||le===void 0?void 0:le.eventTime:c.eventTime,includeMillisecondsForUnderSecond:!0})),i.$$.dirty[0]&1|i.$$.dirty[1]&3&&n(21,m=se(D)?mt({start:n(31,oe=D.initialEvent)===null||oe===void 0?void 0:oe.eventTime,end:n(32,fe=D.lastEvent)===null||fe===void 0?void 0:fe.eventTime,includeMillisecondsForUnderSecond:!0}):""),i.$$.dirty[0]&1&&n(19,_=yn(D)),i.$$.dirty[0]&1&&n(18,d=In(D)),i.$$.dirty[0]&1&&n(17,E=Tn(D)),i.$$.dirty[0]&1&&n(16,g=se(D)?D.label:Gn(D)?"Local Activity":Xe(D.name)),i.$$.dirty[0]&1&&n(7,N=Fn(se(D)?D.initialEvent:D)),i.$$.dirty[0]&129&&n(15,H=Vn(se(D)?D.lastEvent:D,N==null?void 0:N.key)),i.$$.dirty[0]&1&&n(14,F=se(D)&&(D==null?void 0:D.pendingActivity)),i.$$.dirty[0]&1|i.$$.dirty[1]&12&&n(13,Y=se(D)&&D.isPending&&((n(33,ie=D==null?void 0:D.pendingActivity)===null||ie===void 0?void 0:ie.attempt)||(n(34,_e=D==null?void 0:D.pendingNexusOperation)===null||_e===void 0?void 0:_e.attempt))),i.$$.dirty[0]&1|i.$$.dirty[1]&48&&n(12,z=se(D)&&!D.isPending&&(n(36,te=n(35,Q=D.eventList.find(jn))===null||Q===void 0?void 0:Q.attributes)===null||te===void 0?void 0:te.attempt))},[D,$,S,Z,he,ve,pe,N,c,r,l,s,z,Y,F,H,g,E,d,_,o,m,u,a,f,w,L,W,M,y,le,oe,fe,ie,_e,Q,te,t,I]}class mn extends de{constructor(e){super(),me(this,e,ni,ti,ce,{event:0,group:1,initialItem:28,index:2,compact:3,expandAll:4,typedError:5,active:6,onRowClick:29},null,[-1,-1])}}function li(i){let e=i[0].activityId+"",n;return{c(){n=q(e)},l(t){n=K(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=t[0].activityId+"")&&ne(n,e)},d(t){t&&v(n)}}}function $t(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[0].scheduledTime,negativeDefault:"None"})+"",s;return{c(){e=q("• "),t=q(n),l=G(),s=q(r)},l(f){e=K(f,"• "),t=K(f,n),l=j(f),s=K(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o&1&&r!==(r=Ve({date:f[0].scheduledTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function Qt(i){let e,n,t,l;return t=new ft({props:{group:i[1]}}),{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),this.h()},l(r){e=C(r,"TR",{class:!0});var s=A(e);n=C(s,"TD",{class:!0,colspan:!0});var f=A(n);O(t.$$.fragment,f),f.forEach(v),s.forEach(v),this.h()},h(){k(n,"class","expanded-cell w-full svelte-1dtt6u6"),k(n,"colspan","3"),k(e,"class","row expanded svelte-1dtt6u6")},m(r,s){T(r,e,s),b(e,n),R(t,n,null),l=!0},p(r,s){const f={};s&2&&(f.group=r[1]),t.$set(f)},i(r){l||(h(t.$$.fragment,r),l=!0)},o(r){p(t.$$.fragment,r),l=!1},d(r){r&&v(e),B(t)}}}function ii(i){let e,n,t,l,r,s,f,o="Pending Activity",a,c,u,m,_=re("workflows.attempt")+"",d,E,g=i[0].attempt+"",N,H,F=(i[0].maximumAttempts||"∞")+"",Y,z,I,w,L,le,oe,fe,ie,_e,Q,te,D;t=new Pe({props:{"data-testid":"link",href:i[6],$$slots:{default:[li]},$$scope:{ctx:i}}}),u=new Ne({props:{class:"mr-1.5 inline",name:"retry"}});let $=i[0].attempt>1&&$t(i);L=new qe({props:{key:"activityType",value:i[0].activityType,showKey:!0,attributes:i[0]}});let M=i[5]&&Qt(i);return{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),l=G(),r=P("td"),s=P("div"),f=P("p"),f.textContent=o,a=G(),c=P("div"),V(u.$$.fragment),m=G(),d=q(_),E=G(),N=q(g),H=q(" / "),Y=q(F),z=G(),$&&$.c(),w=G(),V(L.$$.fragment),le=G(),oe=P("td"),ie=G(),M&&M.c(),_e=x(),this.h()},l(S){e=C(S,"TR",{class:!0,id:!0,"data-testid":!0});var Z=A(e);n=C(Z,"TD",{});var he=A(n);O(t.$$.fragment,he),he.forEach(v),l=j(Z),r=C(Z,"TD",{class:!0});var ve=A(r);s=C(ve,"DIV",{class:!0});var pe=A(s);f=C(pe,"P",{class:!0,"data-svelte-h":!0}),Ge(f)!=="svelte-j2hnnc"&&(f.textContent=o),a=j(pe),c=C(pe,"DIV",{class:!0});var y=A(c);O(u.$$.fragment,y),m=j(y),d=K(y,_),E=j(y),N=K(y,g),H=K(y," / "),Y=K(y,F),z=j(y),$&&$.l(y),y.forEach(v),w=j(pe),O(L.$$.fragment,pe),pe.forEach(v),ve.forEach(v),le=j(Z),oe=C(Z,"TD",{}),A(oe).forEach(v),Z.forEach(v),ie=j(S),M&&M.l(S),_e=x(),this.h()},h(){k(f,"class","event-name truncate font-semibold md:text-base"),k(c,"class",I="flex items-center gap-1 "+(i[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"),k(s,"class","flex w-full items-center gap-2"),k(r,"class","w-full overflow-hidden text-right font-normal xl:text-left"),k(e,"class","row dense svelte-1dtt6u6"),k(e,"id",fe=`${i[0].id}-${i[2]}`),k(e,"data-testid","pending-activity-summary-row"),U(e,"expanded",i[5]&&!i[3]),U(e,"active",i[4])},m(S,Z){T(S,e,Z),b(e,n),R(t,n,null),b(e,l),b(e,r),b(r,s),b(s,f),b(s,a),b(s,c),R(u,c,null),b(c,m),b(c,d),b(c,E),b(c,N),b(c,H),b(c,Y),b(c,z),$&&$.m(c,null),b(s,w),R(L,s,null),b(e,le),b(e,oe),T(S,ie,Z),M&&M.m(S,Z),T(S,_e,Z),Q=!0,te||(D=Ye(e,"click",Ze(i[7])),te=!0)},p(S,[Z]){const he={};Z&64&&(he.href=S[6]),Z&8193&&(he.$$scope={dirty:Z,ctx:S}),t.$set(he),(!Q||Z&1)&&g!==(g=S[0].attempt+"")&&ne(N,g),(!Q||Z&1)&&F!==(F=(S[0].maximumAttempts||"∞")+"")&&ne(Y,F),S[0].attempt>1?$?$.p(S,Z):($=$t(S),$.c(),$.m(c,null)):$&&($.d(1),$=null),(!Q||Z&1&&I!==(I="flex items-center gap-1 "+(S[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"))&&k(c,"class",I);const ve={};Z&1&&(ve.value=S[0].activityType),Z&1&&(ve.attributes=S[0]),L.$set(ve),(!Q||Z&5&&fe!==(fe=`${S[0].id}-${S[2]}`))&&k(e,"id",fe),(!Q||Z&40)&&U(e,"expanded",S[5]&&!S[3]),(!Q||Z&16)&&U(e,"active",S[4]),S[5]?M?(M.p(S,Z),Z&32&&h(M,1)):(M=Qt(S),M.c(),h(M,1),M.m(_e.parentNode,_e)):M&&(J(),p(M,1,1,()=>{M=null}),X())},i(S){Q||(h(t.$$.fragment,S),h(u.$$.fragment,S),h(L.$$.fragment,S),h(M),Q=!0)},o(S){p(t.$$.fragment,S),p(u.$$.fragment,S),p(L.$$.fragment,S),p(M),Q=!1},d(S){S&&(v(e),v(ie),v(_e)),B(t),B(u),$&&$.d(),B(L),M&&M.d(S),te=!1,D()}}}function ri(i,e,n){let t,l,r,s,f,o;ue(i,je,g=>n(12,o=g));let{event:a}=e,{group:c=void 0}=e,{index:u}=e,{expandAll:m=!1}=e,{active:_=!1}=e,{onRowClick:d=Fe}=e;const E=()=>{n(5,t=!t),d()};return i.$$set=g=>{"event"in g&&n(0,a=g.event),"group"in g&&n(1,c=g.group),"index"in g&&n(2,u=g.index),"expandAll"in g&&n(3,m=g.expandAll),"active"in g&&n(4,_=g.active),"onRowClick"in g&&n(8,d=g.onRowClick)},i.$$.update=()=>{i.$$.dirty&8&&n(5,t=m),i.$$.dirty&4096&&n(10,{workflow:l,run:r,namespace:s}=o.params,l,(n(9,r),n(12,o)),(n(11,s),n(12,o))),i.$$.dirty&3585&&n(6,f=Re({eventId:a.activityId,namespace:s,workflow:l,run:r}))},[a,c,u,m,_,t,f,E,d,r,l,s,o]}class si extends de{constructor(e){super(),me(this,e,ri,ii,ce,{event:0,group:1,index:2,expandAll:3,active:4,onRowClick:8})}}function fi(i){let e=(i[0].scheduledEventId||"")+"",n;return{c(){n=q(e)},l(t){n=K(t,e)},m(t,l){T(t,n,l)},p(t,l){l&1&&e!==(e=(t[0].scheduledEventId||"")+"")&&ne(n,e)},d(t){t&&v(n)}}}function Ut(i){let e,n,t,l=re("workflows.attempt")+"",r,s,f=i[0].attempt+"",o,a,c,u;n=new Ne({props:{class:"mr-1.5 inline",name:"retry"}});let m=i[0].attempt>1&&Jt(i);return{c(){e=P("div"),V(n.$$.fragment),t=G(),r=q(l),s=G(),o=q(f),a=G(),m&&m.c(),this.h()},l(_){e=C(_,"DIV",{class:!0});var d=A(e);O(n.$$.fragment,d),t=j(d),r=K(d,l),s=j(d),o=K(d,f),a=j(d),m&&m.l(d),d.forEach(v),this.h()},h(){k(e,"class",c="flex items-center gap-1 "+(i[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6")},m(_,d){T(_,e,d),R(n,e,null),b(e,t),b(e,r),b(e,s),b(e,o),b(e,a),m&&m.m(e,null),u=!0},p(_,d){(!u||d&1)&&f!==(f=_[0].attempt+"")&&ne(o,f),_[0].attempt>1?m?m.p(_,d):(m=Jt(_),m.c(),m.m(e,null)):m&&(m.d(1),m=null),(!u||d&1&&c!==(c="flex items-center gap-1 "+(_[0].attempt>1&&"surface-retry rounded px-1 py-0.5")+" svelte-1dtt6u6"))&&k(e,"class",c)},i(_){u||(h(n.$$.fragment,_),u=!0)},o(_){p(n.$$.fragment,_),u=!1},d(_){_&&v(e),B(n),m&&m.d()}}}function Jt(i){let e,n=re("workflows.next-retry")+"",t,l,r=Ve({date:i[0].nextAttemptScheduleTime,negativeDefault:"None"})+"",s;return{c(){e=q("• "),t=q(n),l=G(),s=q(r)},l(f){e=K(f,"• "),t=K(f,n),l=j(f),s=K(f,r)},m(f,o){T(f,e,o),T(f,t,o),T(f,l,o),T(f,s,o)},p(f,o){o&1&&r!==(r=Ve({date:f[0].nextAttemptScheduleTime,negativeDefault:"None"})+"")&&ne(s,r)},d(f){f&&(v(e),v(t),v(l),v(s))}}}function Xt(i){let e,n,t,l;return t=new ft({props:{group:i[1]}}),{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),this.h()},l(r){e=C(r,"TR",{class:!0});var s=A(e);n=C(s,"TD",{class:!0,colspan:!0});var f=A(n);O(t.$$.fragment,f),f.forEach(v),s.forEach(v),this.h()},h(){k(n,"class","expanded-cell w-full svelte-1dtt6u6"),k(n,"colspan","3"),k(e,"class","row expanded svelte-1dtt6u6")},m(r,s){T(r,e,s),b(e,n),R(t,n,null),l=!0},p(r,s){const f={};s&2&&(f.group=r[1]),t.$set(f)},i(r){l||(h(t.$$.fragment,r),l=!0)},o(r){p(t.$$.fragment,r),l=!1},d(r){r&&v(e),B(t)}}}function oi(i){let e,n,t,l,r,s,f,o,a,c,u="Pending Nexus Operation",m,_,d,E,g,N,H,F,Y;t=new Pe({props:{"data-testid":"link",href:i[6],$$slots:{default:[fi]},$$scope:{ctx:i}}}),o=new Ne({props:{name:"nexus"}});let z=i[0].attempt&&Ut(i),I=i[5]&&Xt(i);return{c(){e=P("tr"),n=P("td"),V(t.$$.fragment),l=G(),r=P("td"),s=P("div"),f=P("div"),V(o.$$.fragment),a=G(),c=P("p"),c.textContent=u,m=G(),z&&z.c(),_=G(),d=P("td"),g=G(),I&&I.c(),N=x(),this.h()},l(w){e=C(w,"TR",{class:!0,id:!0,"data-testid":!0});var L=A(e);n=C(L,"TD",{class:!0});var le=A(n);O(t.$$.fragment,le),le.forEach(v),l=j(L),r=C(L,"TD",{class:!0});var oe=A(r);s=C(oe,"DIV",{class:!0});var fe=A(s);f=C(fe,"DIV",{class:!0});var ie=A(f);O(o.$$.fragment,ie),a=j(ie),c=C(ie,"P",{class:!0,"data-svelte-h":!0}),Ge(c)!=="svelte-4gs7dx"&&(c.textContent=u),m=j(ie),z&&z.l(ie),ie.forEach(v),fe.forEach(v),oe.forEach(v),_=j(L),d=C(L,"TD",{}),A(d).forEach(v),L.forEach(v),g=j(w),I&&I.l(w),N=x(),this.h()},h(){k(n,"class","w-12 text-left"),k(c,"class","font-semibold md:text-base"),k(f,"class","flex w-full items-center gap-2"),k(s,"class","flex"),k(r,"class","w-full overflow-hidden text-right text-sm font-normal xl:text-left"),k(e,"class","row dense svelte-1dtt6u6"),k(e,"id",E=`${i[0].scheduledEventId}-${i[2]}`),k(e,"data-testid","pending-nexus-summary-row"),U(e,"expanded",i[5]&&!i[3]),U(e,"active",i[4])},m(w,L){T(w,e,L),b(e,n),R(t,n,null),b(e,l),b(e,r),b(r,s),b(s,f),R(o,f,null),b(f,a),b(f,c),b(f,m),z&&z.m(f,null),b(e,_),b(e,d),T(w,g,L),I&&I.m(w,L),T(w,N,L),H=!0,F||(Y=Ye(e,"click",Ze(i[7])),F=!0)},p(w,[L]){const le={};L&64&&(le.href=w[6]),L&8193&&(le.$$scope={dirty:L,ctx:w}),t.$set(le),w[0].attempt?z?(z.p(w,L),L&1&&h(z,1)):(z=Ut(w),z.c(),h(z,1),z.m(f,null)):z&&(J(),p(z,1,1,()=>{z=null}),X()),(!H||L&5&&E!==(E=`${w[0].scheduledEventId}-${w[2]}`))&&k(e,"id",E),(!H||L&40)&&U(e,"expanded",w[5]&&!w[3]),(!H||L&16)&&U(e,"active",w[4]),w[5]?I?(I.p(w,L),L&32&&h(I,1)):(I=Xt(w),I.c(),h(I,1),I.m(N.parentNode,N)):I&&(J(),p(I,1,1,()=>{I=null}),X())},i(w){H||(h(t.$$.fragment,w),h(o.$$.fragment,w),h(z),h(I),H=!0)},o(w){p(t.$$.fragment,w),p(o.$$.fragment,w),p(z),p(I),H=!1},d(w){w&&(v(e),v(g),v(N)),B(t),B(o),z&&z.d(),I&&I.d(w),F=!1,Y()}}}function ai(i,e,n){let t,l,r,s,f,o;ue(i,je,g=>n(12,o=g));let{event:a}=e,{group:c=void 0}=e,{index:u}=e,{expandAll:m=!1}=e,{active:_=!1}=e,{onRowClick:d=Fe}=e;const E=()=>{n(5,t=!t),d()};return i.$$set=g=>{"event"in g&&n(0,a=g.event),"group"in g&&n(1,c=g.group),"index"in g&&n(2,u=g.index),"expandAll"in g&&n(3,m=g.expandAll),"active"in g&&n(4,_=g.active),"onRowClick"in g&&n(8,d=g.onRowClick)},i.$$.update=()=>{i.$$.dirty&8&&n(5,t=m),i.$$.dirty&4096&&n(10,{workflow:l,run:r,namespace:s}=o.params,l,(n(9,r),n(12,o)),(n(11,s),n(12,o))),i.$$.dirty&3585&&n(6,f=Re({eventId:a.scheduledEventId,namespace:s,workflow:l,run:r}))},[a,c,u,m,_,t,f,E,d,r,l,s,o]}class ui extends de{constructor(e){super(),me(this,e,ai,oi,ce,{event:0,group:1,index:2,expandAll:3,active:4,onRowClick:8})}}function Yt(i,e,n){const t=i.slice();return t[17]=e[n],t[19]=n,t}function Zt(i){let e,n;return e=new fl({props:{groups:i[1],history:i[8](i[16])}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.groups=t[1]),l&65536&&(r.history=t[8](t[16])),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function xt(i){let e,n;return e=new dl({props:{loading:!i[4].length}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.loading=!t[4].length),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function ci(i){let e,n;function t(...l){return i[14](i[17],...l)}return e=new mn({props:{event:i[17],index:i[19],group:i[1].find(t),compact:i[3],expandAll:i[6],initialItem:i[7]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&8&&(s.compact=i[3]),r&64&&(s.expandAll=i[6]),r&128&&(s.initialItem=i[7]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function di(i){let e,n;function t(...l){return i[13](i[17],...l)}return e=new ui({props:{event:i[17],index:i[19],group:i[1].find(t),expandAll:i[6]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&64&&(s.expandAll=i[6]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function mi(i){let e,n;function t(...l){return i[12](i[17],...l)}return e=new si({props:{event:i[17],index:i[19],group:i[1].find(t),expandAll:i[6]}}),{c(){V(e.$$.fragment)},l(l){O(e.$$.fragment,l)},m(l,r){R(e,l,r),n=!0},p(l,r){i=l;const s={};r&65536&&(s.event=i[17]),r&65538&&(s.group=i[1].find(t)),r&64&&(s.expandAll=i[6]),e.$set(s)},i(l){n||(h(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){B(e,l)}}}function _i(i){let e,n;return e=new mn({props:{event:i[17],index:i[19],group:i[17],compact:i[3],expandAll:i[6],initialItem:i[7]}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,l){const r={};l&65536&&(r.event=t[17]),l&65536&&(r.group=t[17]),l&8&&(r.compact=t[3]),l&64&&(r.expandAll=t[6]),l&128&&(r.initialItem=t[7]),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function en(i){let e,n,t,l,r,s,f;const o=[_i,mi,di,ci],a=[];function c(u,m){return m&65536&&(e=null),m&65536&&(n=null),m&65536&&(t=null),e==null&&(e=!!se(u[17])),e?0:(n==null&&(n=!!Ee(u[17])),n?1:(t==null&&(t=!!Ce(u[17])),t?2:3))}return l=c(i,-1),r=a[l]=o[l](i),{c(){r.c(),s=x()},l(u){r.l(u),s=x()},m(u,m){a[l].m(u,m),T(u,s,m),f=!0},p(u,m){let _=l;l=c(u,m),l===_?a[l].p(u,m):(J(),p(a[_],1,1,()=>{a[_]=null}),X(),r=a[l],r?r.p(u,m):(r=a[l]=o[l](u),r.c()),h(r,1),r.m(s.parentNode,s))},i(u){f||(h(r),f=!0)},o(u){p(r),f=!1},d(u){u&&v(s),a[l].d(u)}}}function hi(i){let e,n,t,l=!i[3]&&Zt(i),r=ae(i[16]),s=[];for(let a=0;ap(s[a],1,1,()=>{s[a]=null});let o=null;return r.length||(o=xt(i)),{c(){l&&l.c(),e=G(),n=P("div");for(let a=0;a{l=null}),X()):l?(l.p(a,c),c&8&&h(l,1)):(l=Zt(a),l.c(),h(l,1),l.m(e.parentNode,e)),c&65754){r=ae(a[16]);let u;for(u=0;u{o=null}),X()):(o=xt(a),o.c(),h(o,1),o.m(n,null))}},i(a){if(!t){h(l);for(let c=0;c({16:t}),({visibleItems:t})=>t?65536:0]},$$scope:{ctx:i}}}),{c(){V(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,l){R(e,t,l),n=!0},p(t,[l]){const r={};l&4&&(r.updating=t[2]),l&33&&(r.items=t[5](t[0])),l&1114330&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(h(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){B(e,t)}}}function vi(i,e,n){let t,l,r,s,f,o;ue(i,An,F=>n(10,s=F)),ue(i,Pn,F=>n(11,f=F)),ue(i,Cn,F=>n(4,o=F));let{items:a}=e,{groups:c=[]}=e,{updating:u=!1}=e,{compact:m=!1}=e,{openExpanded:_=!1}=e;const d=F=>F,E=(F,Y)=>{var z;return Ee(F)&&((z=Y==null?void 0:Y.pendingActivity)==null?void 0:z.id)===F.id},g=(F,Y)=>{var z;return Ce(F)&&((z=Y==null?void 0:Y.pendingNexusOperation)==null?void 0:z.scheduledEventId)===F.scheduledEventId},N=(F,Y)=>we(F)&&Y.eventIds.has(F.id),H=F=>re("common.go-to-page",{page:F});return i.$$set=F=>{"items"in F&&n(0,a=F.items),"groups"in F&&n(1,c=F.groups),"updating"in F&&n(2,u=F.updating),"compact"in F&&n(3,m=F.compact),"openExpanded"in F&&n(9,_=F.openExpanded)},i.$$.update=()=>{i.$$.dirty&16&&n(7,t=o==null?void 0:o[0]),i.$$.dirty&2560&&n(6,l=_||f==="true"),i.$$.dirty&1024&&n(5,r=F=>qn(F,s))},[a,c,u,m,o,r,l,t,d,_,s,f,E,g,N,H]}class tr extends de{constructor(e){super(),me(this,e,vi,gi,ce,{items:0,groups:1,updating:2,compact:3,openExpanded:9})}}export{Yi as C,$e as D,tr as E,rt as L,Xi as T,cn as a,Yn as b,Kn as c,un as d,Ji as e,er as f,xi as g,Jn as m,Xn as s,Zi as t}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.DFs0nrNV.js b/ui/assets/local/_app/immutable/chunks/events-service.BZohXMj_.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/events-service.DFs0nrNV.js rename to ui/assets/local/_app/immutable/chunks/events-service.BZohXMj_.js index 41c9f4b37..3df48f2ac 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.DFs0nrNV.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.BZohXMj_.js @@ -1 +1 @@ -import{t as p}from"./index.DJYN40WT.js";import{f as I}from"./events.Dh9P6F73.js";import{r as x}from"./workflow-run.DcChDuxV.js";import{j as N}from"./has.BWrERxPV.js";import{p as q}from"./paginated.BsR1kdqH.js";import{r as m,a as y}from"./route-for-api.BTloiRV6.js";var R=A;function A(e,o,s){var n=null,t=null,r=s&&s.leading,a=s&&s.trailing;r==null&&(r=!0),a==null&&(a=!r),r==!0&&(a=!1);var c=function(){n&&(clearTimeout(n),n=null)},l=function(){var i=t;c(),i&&i()},u=function(){var i=r&&!n,f=this,w=arguments;if(t=function(){return e.apply(f,w)},n||(n=setTimeout(function(){if(n=null,a)return t()},o)),i)return i=!1,t()};return u.cancel=c,u.flush=l,u}const F=e=>!N(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",$=async({namespace:e,workflowId:o,runId:s,sort:n,onStart:t,onUpdate:r,onComplete:a})=>{const c=F(n),l=m(c,{namespace:e,workflowId:o});return(await q(async i=>y(l,{token:i,request:fetch,params:{"execution.runId":s}}),{onStart:t,onUpdate:r,onComplete:a})).history.events},P=R(()=>{x.set(Date.now())},5e3),k=async({namespace:e,workflowId:o,runId:s,sort:n="ascending",signal:t,historySize:r})=>{const a=()=>{t&&I.set([])},c=(v,d)=>{var g,E;if(!t)return;I.set([...p((g=v.history)==null?void 0:g.events)]);const h=(E=d==null?void 0:d.history)==null?void 0:E.events;r&&(h==null?void 0:h.every(H=>parseInt(H.eventId)>parseInt(r)))&&P()},l=()=>{t&&x.set(Date.now())},u=F(n),i=m(u,{namespace:e,workflowId:o}),f=await q(async v=>y(i,{token:v,request:fetch,params:{"execution.runId":s,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:c,onComplete:l});return f!=null&&f.history?await p(f.history.events):[]},S=async({namespace:e,workflowId:o,runId:s,sort:n,maximumPageSize:t="20"})=>{const r=m(`events.${n}`,{namespace:e,workflowId:o});try{return(await y(r,{request:fetch,params:{maximumPageSize:t,"execution.runId":s}})).history.events}catch{return[]}},z=async e=>{const o=await S({...e,sort:"ascending",maximumPageSize:"1"});return(await p(o))[0]};export{z as a,$ as b,k as f,P as t}; +import{t as p}from"./index.lRK1fBz3.js";import{f as I}from"./events.CbhKe7Ai.js";import{r as x}from"./workflow-run.CoKQBOG_.js";import{j as N}from"./has.BWrERxPV.js";import{p as q}from"./paginated.CfuFFT3F.js";import{r as m,a as y}from"./route-for-api.DGDQNXtX.js";var R=A;function A(e,o,s){var n=null,t=null,r=s&&s.leading,a=s&&s.trailing;r==null&&(r=!0),a==null&&(a=!r),r==!0&&(a=!1);var c=function(){n&&(clearTimeout(n),n=null)},l=function(){var i=t;c(),i&&i()},u=function(){var i=r&&!n,f=this,w=arguments;if(t=function(){return e.apply(f,w)},n||(n=setTimeout(function(){if(n=null,a)return t()},o)),i)return i=!1,t()};return u.cancel=c,u.flush=l,u}const F=e=>!N(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",$=async({namespace:e,workflowId:o,runId:s,sort:n,onStart:t,onUpdate:r,onComplete:a})=>{const c=F(n),l=m(c,{namespace:e,workflowId:o});return(await q(async i=>y(l,{token:i,request:fetch,params:{"execution.runId":s}}),{onStart:t,onUpdate:r,onComplete:a})).history.events},P=R(()=>{x.set(Date.now())},5e3),k=async({namespace:e,workflowId:o,runId:s,sort:n="ascending",signal:t,historySize:r})=>{const a=()=>{t&&I.set([])},c=(v,d)=>{var g,E;if(!t)return;I.set([...p((g=v.history)==null?void 0:g.events)]);const h=(E=d==null?void 0:d.history)==null?void 0:E.events;r&&(h==null?void 0:h.every(H=>parseInt(H.eventId)>parseInt(r)))&&P()},l=()=>{t&&x.set(Date.now())},u=F(n),i=m(u,{namespace:e,workflowId:o}),f=await q(async v=>y(i,{token:v,request:fetch,params:{"execution.runId":s,waitNewEvent:t?"true":"false"},options:{signal:t}}),{onStart:a,onUpdate:c,onComplete:l});return f!=null&&f.history?await p(f.history.events):[]},S=async({namespace:e,workflowId:o,runId:s,sort:n,maximumPageSize:t="20"})=>{const r=m(`events.${n}`,{namespace:e,workflowId:o});try{return(await y(r,{request:fetch,params:{maximumPageSize:t,"execution.runId":s}})).history.events}catch{return[]}},z=async e=>{const o=await S({...e,sort:"ascending",maximumPageSize:"1"});return(await p(o))[0]};export{z as a,$ as b,k as f,P as t}; diff --git a/ui/assets/local/_app/immutable/chunks/events.Dh9P6F73.js b/ui/assets/local/_app/immutable/chunks/events.CbhKe7Ai.js similarity index 86% rename from ui/assets/local/_app/immutable/chunks/events.Dh9P6F73.js rename to ui/assets/local/_app/immutable/chunks/events.CbhKe7Ai.js index 3767b00b6..7f3038b95 100644 --- a/ui/assets/local/_app/immutable/chunks/events.Dh9P6F73.js +++ b/ui/assets/local/_app/immutable/chunks/events.CbhKe7Ai.js @@ -1 +1 @@ -import{d as s,w as r}from"./entry.DLEzeuD9.js";import{p as a}from"./stores.Dz-RNcUk.js";import{a as d}from"./auth-user.BOlglCm6.js";import{r as f}from"./workflow-run.DcChDuxV.js";import{d as c}from"./encode-uri.BOkQ1rrX.js";import{g as p,f as m,h as v}from"./get-event-categorization.BzHsmJUX.js";import{p as o}from"./persist-store.Bvu2qNDI.js";import{C as l}from"./scheduler.C46pS-76.js";o("autoRefreshWorkflow","off");const G=o("eventView","feed",!0),J=o("expandAllEvents","false"),w=o("eventFilterSort","descending");o("eventShowElapsed","false");const y=s([a],([e])=>e.url.searchParams.get("query")),K=o("showChildWorkflows",!0,!0),g=s([a],([e])=>e.url.searchParams.get("category")),E=s([a],([e])=>e.url.searchParams.get("classification")),u=s([y,g,E],([e,t,n])=>({query:e,category:t,classification:n})),h=e=>u.subscribe(({query:t})=>{!t&&l(k).length&&e([])}),N=o("searchInputView",!1,!0),k=r([],h),F=e=>u.subscribe(({query:t})=>{!t&&l(S).length&&e([])}),S=r([],F),b=e=>u.subscribe(({category:t})=>{!t&&l(H)&&e(null)}),H=r(void 0,b),I=p.map(({value:e})=>e),T=r(I),Q=r(!1),q=s([a],([e])=>e.params.namespace?c(e.params.namespace):""),C=s([a],([e])=>e.params.workflow?c(e.params.workflow):""),V=s([a],([e])=>e.params.run?c(e.params.run):""),W=s([a],([e])=>{var t;return(t=e.data)==null?void 0:t.settings}),x=s([d],([e])=>e==null?void 0:e.accessToken),A=s([q,C,V,w],([e,t,n,i])=>({namespace:e,workflowId:t,runId:n,sort:i}));s([A,W,x,f],([e,t,n,i])=>({...e,settings:t,accessToken:n,refresh:f,$refresh:i}));const X=r(null),O=r([]),Y=r(!1),P=r([]),Z=s([P,T],([e,t])=>e.filter(n=>m(n)?t.includes("local-activity"):t.includes(n.category))),U=s(O,e=>e.filter(v)),$=o("decodeEventHistory",!0,!0),ee=o("downloadEventHistorySetting","encoded",!0);export{H as a,w as b,K as c,$ as d,J as e,O as f,P as g,Z as h,Q as i,N as j,T as k,ee as l,G as m,Y as p,U as r,S as s,X as t,k as w}; +import{d as s,w as r}from"./entry.kylZibtV.js";import{p as a}from"./stores.Ds4o9nwd.js";import{a as d}from"./auth-user.CfsLeCYD.js";import{r as f}from"./workflow-run.CoKQBOG_.js";import{d as c}from"./encode-uri.BOkQ1rrX.js";import{g as p,f as m,h as v}from"./get-event-categorization.BzHsmJUX.js";import{p as o}from"./persist-store.DeOEcwHN.js";import{C as l}from"./scheduler.C46pS-76.js";o("autoRefreshWorkflow","off");const G=o("eventView","feed",!0),J=o("expandAllEvents","false"),w=o("eventFilterSort","descending");o("eventShowElapsed","false");const y=s([a],([e])=>e.url.searchParams.get("query")),K=o("showChildWorkflows",!0,!0),g=s([a],([e])=>e.url.searchParams.get("category")),E=s([a],([e])=>e.url.searchParams.get("classification")),u=s([y,g,E],([e,t,n])=>({query:e,category:t,classification:n})),h=e=>u.subscribe(({query:t})=>{!t&&l(k).length&&e([])}),N=o("searchInputView",!1,!0),k=r([],h),F=e=>u.subscribe(({query:t})=>{!t&&l(S).length&&e([])}),S=r([],F),b=e=>u.subscribe(({category:t})=>{!t&&l(H)&&e(null)}),H=r(void 0,b),I=p.map(({value:e})=>e),T=r(I),Q=r(!1),q=s([a],([e])=>e.params.namespace?c(e.params.namespace):""),C=s([a],([e])=>e.params.workflow?c(e.params.workflow):""),V=s([a],([e])=>e.params.run?c(e.params.run):""),W=s([a],([e])=>{var t;return(t=e.data)==null?void 0:t.settings}),x=s([d],([e])=>e==null?void 0:e.accessToken),A=s([q,C,V,w],([e,t,n,i])=>({namespace:e,workflowId:t,runId:n,sort:i}));s([A,W,x,f],([e,t,n,i])=>({...e,settings:t,accessToken:n,refresh:f,$refresh:i}));const X=r(null),O=r([]),Y=r(!1),P=r([]),Z=s([P,T],([e,t])=>e.filter(n=>m(n)?t.includes("local-activity"):t.includes(n.category))),U=s(O,e=>e.filter(v)),$=o("decodeEventHistory",!0,!0),ee=o("downloadEventHistorySetting","encoded",!0);export{H as a,w as b,K as c,$ as d,J as e,O as f,P as g,Z as h,Q as i,N as j,T as k,ee as l,G as m,Y as p,U as r,S as s,X as t,k as w}; diff --git a/ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.DaW7N_eF.js b/ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.CemQB_H1.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.DaW7N_eF.js rename to ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.CemQB_H1.js index 8a3d5998f..bb57dcfea 100644 --- a/ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.DaW7N_eF.js +++ b/ui/assets/local/_app/immutable/chunks/filter-or-copy-buttons.CemQB_H1.js @@ -1 +1 @@ -import{s as D,x as S,i as d,f as m,c as K,h as y,b as L,j as k,k as T,d as P,m as _,W as q,n as Q,H as N,p as H,F as M,X as V,Y as R,v as W}from"./scheduler.C46pS-76.js";import{S as Z,i as x,t as r,g as b,b as u,e as h,c as X,a as Y,m as z,d as A}from"./index.dOVbn71B.js";import{I as G}from"./icon.CfkHLDdJ.js";import{c as $}from"./copy-to-clipboard.Dh7E1aVf.js";import{t as E}from"./tw-merge.Ds6tgvmq.js";function B(s){let e,i,t,c,n=s[1]&&C(s),l=s[2]&&U(s);return{c(){e=y("div"),n&&n.c(),i=L(),l&&l.c(),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=T(e);n&&n.l(f),i=P(f),l&&l.l(f),f.forEach(m),this.h()},h(){_(e,"class",t=q(E("copy-or-filter",s[9]))+" svelte-qwjj97")},m(o,f){d(o,e,f),n&&n.m(e,null),Q(e,i),l&&l.m(e,null),c=!0},p(o,f){o[1]?n?(n.p(o,f),f&2&&r(n,1)):(n=C(o),n.c(),r(n,1),n.m(e,i)):n&&(b(),u(n,1,1,()=>{n=null}),h()),o[2]?l?(l.p(o,f),f&4&&r(l,1)):(l=U(o),l.c(),r(l,1),l.m(e,null)):l&&(b(),u(l,1,1,()=>{l=null}),h()),(!c||f&512&&t!==(t=q(E("copy-or-filter",o[9]))+" svelte-qwjj97"))&&_(e,"class",t)},i(o){c||(r(n),r(l),c=!0)},o(o){u(n),u(l),c=!1},d(o){o&&m(e),n&&n.d(),l&&l.d()}}}function C(s){let e,i=s[5],t,c,n,l=O(s);return{c(){e=y("button"),l.c(),this.h()},l(o){e=k(o,"BUTTON",{class:!0,id:!0});var f=T(e);l.l(f),f.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","filter-button"),N(e,"filtered",s[5])},m(o,f){d(o,e,f),l.m(e,null),t=!0,c||(n=H(e,"click",M(V(function(){R(s[4])&&s[4].apply(this,arguments)}))),c=!0)},p(o,f){s=o,f&32&&D(i,i=s[5])?(b(),u(l,1,1,W),h(),l=O(s),l.c(),r(l,1),l.m(e,null)):l.p(s,f),(!t||f&32)&&N(e,"filtered",s[5])},i(o){t||(r(l),t=!0)},o(o){u(l),t=!1},d(o){o&&m(e),l.d(o),c=!1,n()}}}function O(s){let e,i;return e=new G({props:{title:s[8],name:"filter",class:"m-1"}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,c){z(e,t,c),i=!0},p(t,c){const n={};c&256&&(n.title=t[8]),e.$set(n)},i(t){i||(r(e.$$.fragment,t),i=!0)},o(t){u(e.$$.fragment,t),i=!1},d(t){A(e,t)}}}function U(s){let e,i,t,c,n;return i=new G({props:{title:s[10]?s[7]:s[6],name:s[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=y("button"),X(i.$$.fragment),this.h()},l(l){e=k(l,"BUTTON",{class:!0,id:!0});var o=T(e);Y(i.$$.fragment,o),o.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","copy-button")},m(l,o){d(l,e,o),z(i,e,null),t=!0,c||(n=H(e,"click",M(V(s[13]))),c=!0)},p(l,o){const f={};o&1216&&(f.title=l[10]?l[7]:l[6]),o&1024&&(f.name=l[10]?"checkmark":"copy"),i.$set(f)},i(l){t||(r(i.$$.fragment,l),t=!0)},o(l){u(i.$$.fragment,l),t=!1},d(l){l&&m(e),A(i),c=!1,n()}}}function ee(s){let e,i,t=s[0]&&B(s);return{c(){t&&t.c(),e=S()},l(c){t&&t.l(c),e=S()},m(c,n){t&&t.m(c,n),d(c,e,n),i=!0},p(c,[n]){c[0]?t?(t.p(c,n),n&1&&r(t,1)):(t=B(c),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(b(),u(t,1,1,()=>{t=null}),h())},i(c){i||(r(t),i=!0)},o(c){u(t),i=!1},d(c){c&&m(e),t&&t.d(c)}}}function te(s,e,i){let t,{show:c=!1}=e,{filterable:n=!0}=e,{copyable:l=!0}=e,{content:o}=e,{onFilter:f=W}=e,{filtered:g=!1}=e,{copyIconTitle:I}=e,{copySuccessIconTitle:p}=e,{filterIconTitle:w}=e,{class:j=""}=e;const{copy:F,copied:v}=$();K(s,v,a=>i(10,t=a));const J=a=>F(a,o);return s.$$set=a=>{"show"in a&&i(0,c=a.show),"filterable"in a&&i(1,n=a.filterable),"copyable"in a&&i(2,l=a.copyable),"content"in a&&i(3,o=a.content),"onFilter"in a&&i(4,f=a.onFilter),"filtered"in a&&i(5,g=a.filtered),"copyIconTitle"in a&&i(6,I=a.copyIconTitle),"copySuccessIconTitle"in a&&i(7,p=a.copySuccessIconTitle),"filterIconTitle"in a&&i(8,w=a.filterIconTitle),"class"in a&&i(9,j=a.class)},[c,n,l,o,f,g,I,p,w,j,t,F,v,J]}class se extends Z{constructor(e){super(),x(this,e,te,ee,D,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}export{se as F}; +import{s as D,x as S,i as d,f as m,c as K,h as y,b as L,j as k,k as T,d as P,m as _,W as q,n as Q,H as N,p as H,F as M,X as V,Y as R,v as W}from"./scheduler.C46pS-76.js";import{S as Z,i as x,t as r,g as b,b as u,e as h,c as X,a as Y,m as z,d as A}from"./index.dOVbn71B.js";import{I as G}from"./icon.CfkHLDdJ.js";import{c as $}from"./copy-to-clipboard.VBIGxkFt.js";import{t as E}from"./tw-merge.Ds6tgvmq.js";function B(s){let e,i,t,c,n=s[1]&&C(s),l=s[2]&&U(s);return{c(){e=y("div"),n&&n.c(),i=L(),l&&l.c(),this.h()},l(o){e=k(o,"DIV",{class:!0});var f=T(e);n&&n.l(f),i=P(f),l&&l.l(f),f.forEach(m),this.h()},h(){_(e,"class",t=q(E("copy-or-filter",s[9]))+" svelte-qwjj97")},m(o,f){d(o,e,f),n&&n.m(e,null),Q(e,i),l&&l.m(e,null),c=!0},p(o,f){o[1]?n?(n.p(o,f),f&2&&r(n,1)):(n=C(o),n.c(),r(n,1),n.m(e,i)):n&&(b(),u(n,1,1,()=>{n=null}),h()),o[2]?l?(l.p(o,f),f&4&&r(l,1)):(l=U(o),l.c(),r(l,1),l.m(e,null)):l&&(b(),u(l,1,1,()=>{l=null}),h()),(!c||f&512&&t!==(t=q(E("copy-or-filter",o[9]))+" svelte-qwjj97"))&&_(e,"class",t)},i(o){c||(r(n),r(l),c=!0)},o(o){u(n),u(l),c=!1},d(o){o&&m(e),n&&n.d(),l&&l.d()}}}function C(s){let e,i=s[5],t,c,n,l=O(s);return{c(){e=y("button"),l.c(),this.h()},l(o){e=k(o,"BUTTON",{class:!0,id:!0});var f=T(e);l.l(f),f.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","filter-button"),N(e,"filtered",s[5])},m(o,f){d(o,e,f),l.m(e,null),t=!0,c||(n=H(e,"click",M(V(function(){R(s[4])&&s[4].apply(this,arguments)}))),c=!0)},p(o,f){s=o,f&32&&D(i,i=s[5])?(b(),u(l,1,1,W),h(),l=O(s),l.c(),r(l,1),l.m(e,null)):l.p(s,f),(!t||f&32)&&N(e,"filtered",s[5])},i(o){t||(r(l),t=!0)},o(o){u(l),t=!1},d(o){o&&m(e),l.d(o),c=!1,n()}}}function O(s){let e,i;return e=new G({props:{title:s[8],name:"filter",class:"m-1"}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,c){z(e,t,c),i=!0},p(t,c){const n={};c&256&&(n.title=t[8]),e.$set(n)},i(t){i||(r(e.$$.fragment,t),i=!0)},o(t){u(e.$$.fragment,t),i=!1},d(t){A(e,t)}}}function U(s){let e,i,t,c,n;return i=new G({props:{title:s[10]?s[7]:s[6],name:s[10]?"checkmark":"copy",class:"m-1"}}),{c(){e=y("button"),X(i.$$.fragment),this.h()},l(l){e=k(l,"BUTTON",{class:!0,id:!0});var o=T(e);Y(i.$$.fragment,o),o.forEach(m),this.h()},h(){_(e,"class","copy-or-filter-button svelte-qwjj97"),_(e,"id","copy-button")},m(l,o){d(l,e,o),z(i,e,null),t=!0,c||(n=H(e,"click",M(V(s[13]))),c=!0)},p(l,o){const f={};o&1216&&(f.title=l[10]?l[7]:l[6]),o&1024&&(f.name=l[10]?"checkmark":"copy"),i.$set(f)},i(l){t||(r(i.$$.fragment,l),t=!0)},o(l){u(i.$$.fragment,l),t=!1},d(l){l&&m(e),A(i),c=!1,n()}}}function ee(s){let e,i,t=s[0]&&B(s);return{c(){t&&t.c(),e=S()},l(c){t&&t.l(c),e=S()},m(c,n){t&&t.m(c,n),d(c,e,n),i=!0},p(c,[n]){c[0]?t?(t.p(c,n),n&1&&r(t,1)):(t=B(c),t.c(),r(t,1),t.m(e.parentNode,e)):t&&(b(),u(t,1,1,()=>{t=null}),h())},i(c){i||(r(t),i=!0)},o(c){u(t),i=!1},d(c){c&&m(e),t&&t.d(c)}}}function te(s,e,i){let t,{show:c=!1}=e,{filterable:n=!0}=e,{copyable:l=!0}=e,{content:o}=e,{onFilter:f=W}=e,{filtered:g=!1}=e,{copyIconTitle:I}=e,{copySuccessIconTitle:p}=e,{filterIconTitle:w}=e,{class:j=""}=e;const{copy:F,copied:v}=$();K(s,v,a=>i(10,t=a));const J=a=>F(a,o);return s.$$set=a=>{"show"in a&&i(0,c=a.show),"filterable"in a&&i(1,n=a.filterable),"copyable"in a&&i(2,l=a.copyable),"content"in a&&i(3,o=a.content),"onFilter"in a&&i(4,f=a.onFilter),"filtered"in a&&i(5,g=a.filtered),"copyIconTitle"in a&&i(6,I=a.copyIconTitle),"copySuccessIconTitle"in a&&i(7,p=a.copySuccessIconTitle),"filterIconTitle"in a&&i(8,w=a.filterIconTitle),"class"in a&&i(9,j=a.class)},[c,n,l,o,f,g,I,p,w,j,t,F,v,J]}class se extends Z{constructor(e){super(),x(this,e,te,ee,D,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}export{se as F}; diff --git a/ui/assets/local/_app/immutable/chunks/filter-select.NIuiMMoD.js b/ui/assets/local/_app/immutable/chunks/filter-select.Cuzm5_PX.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/filter-select.NIuiMMoD.js rename to ui/assets/local/_app/immutable/chunks/filter-select.Cuzm5_PX.js index 33faae6cb..524041703 100644 --- a/ui/assets/local/_app/immutable/chunks/filter-select.NIuiMMoD.js +++ b/ui/assets/local/_app/immutable/chunks/filter-select.Cuzm5_PX.js @@ -1 +1 @@ -import{s as T,a as z,h as D,j as F,k as I,f as k,$ as J,m as K,i as E,u as A,g as G,e as H,z as q,A as p,t as oe,l as ue,q as fe,b as ie,d as re,E as R,a9 as ce,H as N,n as U,ae as W,af as P,p as X,G as _e,D as Y,x as B,y as le,B as me,ag as he,N as ge,O as de,c as be}from"./scheduler.C46pS-76.js";import{S as M,i as Q,t as d,b as v,c as L,a as O,m as V,d as j,g as te,e as ae,f as ve}from"./index.dOVbn71B.js";import{e as C}from"./each.C6O0oV7R.js";import{g as se,a as ke}from"./spread.CgU5AtxT.js";import{p as qe}from"./stores.Dz-RNcUk.js";import{u as Se}from"./update-query-parameters.DVJ0yHKX.js";import{L as pe}from"./label.BlTcUXFh.js";import{t as Z}from"./tw-merge.Ds6tgvmq.js";function Ee(u){let e;return{c(){e=oe(u[0])},l(n){e=ue(n,u[0])},m(n,s){E(n,e,s)},p(n,s){s&1&&fe(e,n[0])},d(n){n&&k(e)}}}function Ne(u){let e,n,s;const l=u[3].default,f=z(l,u,u[2],null),t=f||Ee(u);return{c(){e=D("option"),t&&t.c(),this.h()},l(a){e=F(a,"OPTION",{class:!0});var o=I(e);t&&t.l(o),o.forEach(k),this.h()},h(){e.__value=u[0],J(e,e.__value),K(e,"class",n="border-0 "+u[1].class)},m(a,o){E(a,e,o),t&&t.m(e,null),s=!0},p(a,[o]){f?f.p&&(!s||o&4)&&A(f,l,a,a[2],s?H(l,a[2],o,null):G(a[2]),null):t&&t.p&&(!s||o&1)&&t.p(a,s?o:-1),(!s||o&1)&&(e.__value=a[0],J(e,e.__value)),(!s||o&2&&n!==(n="border-0 "+a[1].class))&&K(e,"class",n)},i(a){s||(d(t,a),s=!0)},o(a){v(t,a),s=!1},d(a){a&&k(e),t&&t.d(a)}}}function Pe(u,e,n){let{$$slots:s={},$$scope:l}=e,{value:f=null}=e;return u.$$set=t=>{n(1,e=q(q({},e),p(t))),"value"in t&&n(0,f=t.value),"$$scope"in t&&n(2,l=t.$$scope)},e=p(e),[f,e,l,s]}class ne extends M{constructor(e){super(),Q(this,e,Pe,Ne,T,{value:0})}}function y(u,e,n){const s=u.slice();return s[13]=e[n],s}function w(u){let e,n;return e=new ne({props:{value:u[13]}}),{c(){L(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,l){V(e,s,l),n=!0},p(s,l){const f={};l&128&&(f.value=s[13]),e.$set(f)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){v(e.$$.fragment,s),n=!1},d(s){j(e,s)}}}function Be(u){let e,n,s=C(u[7]),l=[];for(let t=0;tv(l[t],1,1,()=>{l[t]=null});return{c(){for(let t=0;tu[12].call(l)),N(l,"remove",u[4]),N(l,"svelte-lrhs4a",!0)},m(i,_){E(i,e,_),V(n,e,null),U(e,s),U(e,l),h&&h.m(l,null),"value"in g&&(g.multiple?W:P)(l,g.value),l.autofocus&&l.focus(),P(l,u[0],!0),t=!0,a||(o=[X(l,"change",u[12]),X(l,"change",u[11])],a=!0)},p(i,[_]){const r={};_&64&&(r.required=i[6]),_&8&&(r.label=i[3]),_&4&&(r.for=i[2]),n.$set(r),b?b.p&&(!t||_&512)&&A(b,c,i,i[9],t?H(c,i[9],_,null):G(i[9]),null):h&&h.p&&(!t||_&128)&&h.p(i,t?_:-1),R(l,g=se(S,[(!t||_&2&&f!==(f=Z("inline h-10 w-full rounded-lg border px-2 text-base",i[1])))&&{class:f},(!t||_&32)&&{name:i[5]},(!t||_&4)&&{id:i[2]},_&256&&i[8]])),_&294&&"value"in g&&(g.multiple?W:P)(l,g.value),_&1&&P(l,i[0]),N(l,"remove",i[4]),N(l,"svelte-lrhs4a",!0)},i(i){t||(d(n.$$.fragment,i),d(h,i),t=!0)},o(i){v(n.$$.fragment,i),v(h,i),t=!1},d(i){i&&k(e),j(n),h&&h.d(i),a=!1,_e(o)}}}function Le(u,e,n){const s=["class","id","value","label","arrow","name","required","options"];let l=Y(e,s),{$$slots:f={},$$scope:t}=e,{class:a=null}=e,{id:o}=e,{value:c}=e,{label:b}=e,{arrow:h=!1}=e,{name:S=o}=e,{required:g=!1}=e,{options:i=[]}=e;function _(m){me.call(this,u,m)}function r(){c=he(this),n(0,c)}return u.$$set=m=>{e=q(q({},e),p(m)),n(8,l=Y(e,s)),"class"in m&&n(1,a=m.class),"id"in m&&n(2,o=m.id),"value"in m&&n(0,c=m.value),"label"in m&&n(3,b=m.label),"arrow"in m&&n(4,h=m.arrow),"name"in m&&n(5,S=m.name),"required"in m&&n(6,g=m.required),"options"in m&&n(7,i=m.options),"$$scope"in m&&n(9,t=m.$$scope)},[c,a,o,b,h,S,g,i,l,t,f,_,r]}class Oe extends M{constructor(e){super(),Q(this,e,Le,Ce,T,{class:1,id:2,value:0,label:3,arrow:4,name:5,required:6,options:7})}}function x(u,e,n){const s=u.slice();return s[14]=e[n],s}function $(u){let e,n;return e=new ne({props:{value:u[14]}}),{c(){L(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,l){V(e,s,l),n=!0},p(s,l){const f={};l&2&&(f.value=s[14]),e.$set(f)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){v(e.$$.fragment,s),n=!1},d(s){j(e,s)}}}function Ve(u){let e,n,s=C(u[1].map(ee)),l=[];for(let t=0;tv(l[t],1,1,()=>{l[t]=null});return{c(){for(let t=0;tve(e,"value",f)),e.$on("change",u[4]),{c(){L(e.$$.fragment)},l(a){O(e.$$.fragment,a)},m(a,o){V(e,a,o),s=!0},p(a,[o]){const c=o&41?se(l,[o&8&&{id:a[3]},o&1&&{label:a[0]},o&32&&ke(a[5])]):{};o&2050&&(c.$$scope={dirty:o,ctx:a}),!n&&o&4&&(n=!0,c.value=a[2],de(()=>n=!1)),e.$set(c)},i(a){s||(d(e.$$.fragment,a),s=!0)},o(a){v(e.$$.fragment,a),s=!1},d(a){j(e,a)}}}const ee=u=>u.toString();function Fe(u,e,n){let s;be(u,qe,r=>n(12,s=r));let{$$slots:l={},$$scope:f}=e,{label:t}=e,{value:a}=e,{options:o=[]}=e,{parameter:c=null}=e,{position:b=void 0}=e;const h=`${c||t}-${b?`${b}-filter`:"filter"}`;let g=c&&s.url.searchParams.get(c)||a&&a.toString();const i=()=>{Se({parameter:c,value:g,url:s.url}).then(r=>n(6,a=r))};function _(r){g=r,n(2,g)}return u.$$set=r=>{n(5,e=q(q({},e),p(r))),"label"in r&&n(0,t=r.label),"value"in r&&n(6,a=r.value),"options"in r&&n(1,o=r.options),"parameter"in r&&n(7,c=r.parameter),"position"in r&&n(8,b=r.position),"$$scope"in r&&n(11,f=r.$$scope)},e=p(e),[t,o,g,h,i,e,a,c,b,l,_,f]}class Je extends M{constructor(e){super(),Q(this,e,Fe,De,T,{label:0,value:6,options:1,parameter:7,position:8})}}export{Je as F,Oe as S,ne as a}; +import{s as T,a as z,h as D,j as F,k as I,f as k,$ as J,m as K,i as E,u as A,g as G,e as H,z as q,A as p,t as oe,l as ue,q as fe,b as ie,d as re,E as R,a9 as ce,H as N,n as U,ae as W,af as P,p as X,G as _e,D as Y,x as B,y as le,B as me,ag as he,N as ge,O as de,c as be}from"./scheduler.C46pS-76.js";import{S as M,i as Q,t as d,b as v,c as L,a as O,m as V,d as j,g as te,e as ae,f as ve}from"./index.dOVbn71B.js";import{e as C}from"./each.C6O0oV7R.js";import{g as se,a as ke}from"./spread.CgU5AtxT.js";import{p as qe}from"./stores.Ds4o9nwd.js";import{u as Se}from"./update-query-parameters.DTvdkkGj.js";import{L as pe}from"./label.BlTcUXFh.js";import{t as Z}from"./tw-merge.Ds6tgvmq.js";function Ee(u){let e;return{c(){e=oe(u[0])},l(n){e=ue(n,u[0])},m(n,s){E(n,e,s)},p(n,s){s&1&&fe(e,n[0])},d(n){n&&k(e)}}}function Ne(u){let e,n,s;const l=u[3].default,f=z(l,u,u[2],null),t=f||Ee(u);return{c(){e=D("option"),t&&t.c(),this.h()},l(a){e=F(a,"OPTION",{class:!0});var o=I(e);t&&t.l(o),o.forEach(k),this.h()},h(){e.__value=u[0],J(e,e.__value),K(e,"class",n="border-0 "+u[1].class)},m(a,o){E(a,e,o),t&&t.m(e,null),s=!0},p(a,[o]){f?f.p&&(!s||o&4)&&A(f,l,a,a[2],s?H(l,a[2],o,null):G(a[2]),null):t&&t.p&&(!s||o&1)&&t.p(a,s?o:-1),(!s||o&1)&&(e.__value=a[0],J(e,e.__value)),(!s||o&2&&n!==(n="border-0 "+a[1].class))&&K(e,"class",n)},i(a){s||(d(t,a),s=!0)},o(a){v(t,a),s=!1},d(a){a&&k(e),t&&t.d(a)}}}function Pe(u,e,n){let{$$slots:s={},$$scope:l}=e,{value:f=null}=e;return u.$$set=t=>{n(1,e=q(q({},e),p(t))),"value"in t&&n(0,f=t.value),"$$scope"in t&&n(2,l=t.$$scope)},e=p(e),[f,e,l,s]}class ne extends M{constructor(e){super(),Q(this,e,Pe,Ne,T,{value:0})}}function y(u,e,n){const s=u.slice();return s[13]=e[n],s}function w(u){let e,n;return e=new ne({props:{value:u[13]}}),{c(){L(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,l){V(e,s,l),n=!0},p(s,l){const f={};l&128&&(f.value=s[13]),e.$set(f)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){v(e.$$.fragment,s),n=!1},d(s){j(e,s)}}}function Be(u){let e,n,s=C(u[7]),l=[];for(let t=0;tv(l[t],1,1,()=>{l[t]=null});return{c(){for(let t=0;tu[12].call(l)),N(l,"remove",u[4]),N(l,"svelte-lrhs4a",!0)},m(i,_){E(i,e,_),V(n,e,null),U(e,s),U(e,l),h&&h.m(l,null),"value"in g&&(g.multiple?W:P)(l,g.value),l.autofocus&&l.focus(),P(l,u[0],!0),t=!0,a||(o=[X(l,"change",u[12]),X(l,"change",u[11])],a=!0)},p(i,[_]){const r={};_&64&&(r.required=i[6]),_&8&&(r.label=i[3]),_&4&&(r.for=i[2]),n.$set(r),b?b.p&&(!t||_&512)&&A(b,c,i,i[9],t?H(c,i[9],_,null):G(i[9]),null):h&&h.p&&(!t||_&128)&&h.p(i,t?_:-1),R(l,g=se(S,[(!t||_&2&&f!==(f=Z("inline h-10 w-full rounded-lg border px-2 text-base",i[1])))&&{class:f},(!t||_&32)&&{name:i[5]},(!t||_&4)&&{id:i[2]},_&256&&i[8]])),_&294&&"value"in g&&(g.multiple?W:P)(l,g.value),_&1&&P(l,i[0]),N(l,"remove",i[4]),N(l,"svelte-lrhs4a",!0)},i(i){t||(d(n.$$.fragment,i),d(h,i),t=!0)},o(i){v(n.$$.fragment,i),v(h,i),t=!1},d(i){i&&k(e),j(n),h&&h.d(i),a=!1,_e(o)}}}function Le(u,e,n){const s=["class","id","value","label","arrow","name","required","options"];let l=Y(e,s),{$$slots:f={},$$scope:t}=e,{class:a=null}=e,{id:o}=e,{value:c}=e,{label:b}=e,{arrow:h=!1}=e,{name:S=o}=e,{required:g=!1}=e,{options:i=[]}=e;function _(m){me.call(this,u,m)}function r(){c=he(this),n(0,c)}return u.$$set=m=>{e=q(q({},e),p(m)),n(8,l=Y(e,s)),"class"in m&&n(1,a=m.class),"id"in m&&n(2,o=m.id),"value"in m&&n(0,c=m.value),"label"in m&&n(3,b=m.label),"arrow"in m&&n(4,h=m.arrow),"name"in m&&n(5,S=m.name),"required"in m&&n(6,g=m.required),"options"in m&&n(7,i=m.options),"$$scope"in m&&n(9,t=m.$$scope)},[c,a,o,b,h,S,g,i,l,t,f,_,r]}class Oe extends M{constructor(e){super(),Q(this,e,Le,Ce,T,{class:1,id:2,value:0,label:3,arrow:4,name:5,required:6,options:7})}}function x(u,e,n){const s=u.slice();return s[14]=e[n],s}function $(u){let e,n;return e=new ne({props:{value:u[14]}}),{c(){L(e.$$.fragment)},l(s){O(e.$$.fragment,s)},m(s,l){V(e,s,l),n=!0},p(s,l){const f={};l&2&&(f.value=s[14]),e.$set(f)},i(s){n||(d(e.$$.fragment,s),n=!0)},o(s){v(e.$$.fragment,s),n=!1},d(s){j(e,s)}}}function Ve(u){let e,n,s=C(u[1].map(ee)),l=[];for(let t=0;tv(l[t],1,1,()=>{l[t]=null});return{c(){for(let t=0;tve(e,"value",f)),e.$on("change",u[4]),{c(){L(e.$$.fragment)},l(a){O(e.$$.fragment,a)},m(a,o){V(e,a,o),s=!0},p(a,[o]){const c=o&41?se(l,[o&8&&{id:a[3]},o&1&&{label:a[0]},o&32&&ke(a[5])]):{};o&2050&&(c.$$scope={dirty:o,ctx:a}),!n&&o&4&&(n=!0,c.value=a[2],de(()=>n=!1)),e.$set(c)},i(a){s||(d(e.$$.fragment,a),s=!0)},o(a){v(e.$$.fragment,a),s=!1},d(a){j(e,a)}}}const ee=u=>u.toString();function Fe(u,e,n){let s;be(u,qe,r=>n(12,s=r));let{$$slots:l={},$$scope:f}=e,{label:t}=e,{value:a}=e,{options:o=[]}=e,{parameter:c=null}=e,{position:b=void 0}=e;const h=`${c||t}-${b?`${b}-filter`:"filter"}`;let g=c&&s.url.searchParams.get(c)||a&&a.toString();const i=()=>{Se({parameter:c,value:g,url:s.url}).then(r=>n(6,a=r))};function _(r){g=r,n(2,g)}return u.$$set=r=>{n(5,e=q(q({},e),p(r))),"label"in r&&n(0,t=r.label),"value"in r&&n(6,a=r.value),"options"in r&&n(1,o=r.options),"parameter"in r&&n(7,c=r.parameter),"position"in r&&n(8,b=r.position),"$$scope"in r&&n(11,f=r.$$scope)},e=p(e),[t,o,g,h,i,e,a,c,b,l,_,f]}class Je extends M{constructor(e){super(),Q(this,e,Fe,De,T,{label:0,value:6,options:1,parameter:7,position:8})}}export{Je as F,Oe as S,ne as a}; diff --git a/ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.B37Av_rg.js b/ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.C6hE5al8.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.B37Av_rg.js rename to ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.C6hE5al8.js index a22b64772..2611f2db8 100644 --- a/ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.B37Av_rg.js +++ b/ui/assets/local/_app/immutable/chunks/get-single-attribute-for-event.C6hE5al8.js @@ -1 +1 @@ -import{i as E}from"./index.DJYN40WT.js";import{c as g}from"./format-camel-case.ByTIZu23.js";import{b as T,i as b}from"./decode-payload.BTpeWKqJ.js";import{h as o,f as k}from"./has.BWrERxPV.js";import{f as x}from"./get-event-categorization.BzHsmJUX.js";const I=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!o(t,"activityType"),S=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!(o(t,"operation")&&o(t,"endpoint")),f={key:"",value:""},A=new Set(["suggestContinueAsNew","historySizeBytes"]),c=(t,r)=>!(r===null||r===void 0||r===""||r==="0s"||t==="type"||(!r||r==="0")&&A.has(t)),D=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],X=t=>D.includes(t),Y=(t,r)=>!(r===null||r===void 0||r===""||r==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!r||r==="0")&&A.has(t)),Z=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),$=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(r=>r!==void 0),L=t=>{if(k(t)){if(o(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const r in t)if(k(t[r]))return L(t[r])}},K=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],v=(t,r)=>R(t)?"execution":N(t)?"task-queue":O(t,r)?"child-workflow":Q(t)?"nexus-endpoint":"none",R=t=>{for(const r of K)if(t===r)return!0;return!1},j=["taskQueueName"],N=t=>{for(const r of j)if(t===r)return!0;return!1},W=["workflowExecutionWorkflowId","workflowExecutionRunId"],O=(t,r)=>{const e=!!(r!=null&&r.workflowExecutionWorkflowId&&(r!=null&&r.workflowExecutionRunId));for(const i of W)if(t===i&&e)return!0;return!1},P=["endpointId"],Q=t=>{for(const r of P)if(t===r)return!0;return!1},tt=t=>{var r;return(r=t==null?void 0:t.toLowerCase())==null?void 0:r.endsWith("time")},a=(t,r)=>{if(typeof r=="object"){if(b(r))return{key:t,value:r};const[e]=Object.keys(r);return e?e==="payloads"?{key:t,value:r}:{key:t+g(e),value:r[e]}:{key:t,value:{}}}else return{key:t,value:r.toString()}},w=["activityType","signalName","workflowType","result","failure","input","outcome","workflowExecution","taskQueue","startToFireTimeout","attempt","historySizeBytes","identity","parentInitiatedEventId","endpointId"],C=({attributes:t})=>{for(const[r,e]of Object.entries(t))if(c(r,e))return a(r,e)},F=t=>{if(o(t,"ActivityType"))return t.ActivityType;if(o(t,"activity_type"))return t.activity_type},B=t=>{var r,e,i;return!!((i=(e=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:e.type)!=null&&i.payloads)},z=t=>{var e,i,u,d,l,p;const r=C(t);if(x(t)){const n=(((u=(i=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:i.data)==null?void 0:u.payloads)||((p=(l=(d=t.markerRecordedEventAttributes)==null?void 0:d.details)==null?void 0:l.type)==null?void 0:p.payloads)||[]).map(h=>T(h)),s=n==null?void 0:n[0];if(B(t)&&s)return a("ActivityType",s);const m=F(s);if(m)return a("ActivityType",m)}for(const y of w)for(const[n,s]of Object.entries(t.attributes))if(n===y&&c(n,s))return a(n,s);return r||f},V=t=>({key:"attempt",value:t.attempt.toString()}),_=t=>t.attempt?{key:"attempt",value:t.attempt.toString()}:f,q=t=>E(t)?z(t):I(t)?V(t):S(t)?_(t):f,rt=t=>t?q(t):f,et=(t,r)=>{if(!t||!(t!=null&&t.attributes))return f;for(const e of w)for(const[i,u]of Object.entries(t.attributes))if(i===e&&i!==r&&c(i,u))return a(i,u);return f};export{Y as a,Z as b,X as c,S as d,$ as e,L as f,q as g,v as h,I as i,tt as j,rt as k,et as l,D as p,c as s}; +import{i as E}from"./index.lRK1fBz3.js";import{c as g}from"./format-camel-case.ByTIZu23.js";import{b as T,i as b}from"./decode-payload.CR1Tto5x.js";import{h as o,f as k}from"./has.BWrERxPV.js";import{f as x}from"./get-event-categorization.BzHsmJUX.js";const I=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!o(t,"activityType"),S=t=>t===null||typeof t!="object"||Array.isArray(t)?!1:!!(o(t,"operation")&&o(t,"endpoint")),f={key:"",value:""},A=new Set(["suggestContinueAsNew","historySizeBytes"]),c=(t,r)=>!(r===null||r===void 0||r===""||r==="0s"||t==="type"||(!r||r==="0")&&A.has(t)),D=["attempt","maximumAttempts","heartbeatDetails","lastHeartbeatTime","lastFailure","lastStartedTime","scheduledTime","expirationTime","lastWorkerIdentity"],X=t=>D.includes(t),Y=(t,r)=>!(r===null||r===void 0||r===""||r==="0s"||t==="type"||t==="workflowId"||t==="initiatedEventId"||t==="startedEventId"||t==="scheduledEventId"||t==="activityId"||t==="namespace"||t==="namespaceId"||t==="workflowTaskCompletedEventId"||t==="taskQueueKind"||(!r||r==="0")&&A.has(t)),Z=t=>!(t===null||t===void 0||t===""||Array.isArray(t)&&!t.length),$=t=>typeof t=="string"?t:[t==null?void 0:t.payloads,t==null?void 0:t.indexedFields,t==null?void 0:t.points,t].find(r=>r!==void 0),L=t=>{if(k(t)){if(o(t,"stackTrace")&&t.stackTrace)return t.stackTrace;for(const r in t)if(k(t[r]))return L(t[r])}},K=["baseRunId","continuedExecutionRunId","firstExecutionRunId","newExecutionRunId","newRunId","originalExecutionRunId"],v=(t,r)=>R(t)?"execution":N(t)?"task-queue":O(t,r)?"child-workflow":Q(t)?"nexus-endpoint":"none",R=t=>{for(const r of K)if(t===r)return!0;return!1},j=["taskQueueName"],N=t=>{for(const r of j)if(t===r)return!0;return!1},W=["workflowExecutionWorkflowId","workflowExecutionRunId"],O=(t,r)=>{const e=!!(r!=null&&r.workflowExecutionWorkflowId&&(r!=null&&r.workflowExecutionRunId));for(const i of W)if(t===i&&e)return!0;return!1},P=["endpointId"],Q=t=>{for(const r of P)if(t===r)return!0;return!1},tt=t=>{var r;return(r=t==null?void 0:t.toLowerCase())==null?void 0:r.endsWith("time")},a=(t,r)=>{if(typeof r=="object"){if(b(r))return{key:t,value:r};const[e]=Object.keys(r);return e?e==="payloads"?{key:t,value:r}:{key:t+g(e),value:r[e]}:{key:t,value:{}}}else return{key:t,value:r.toString()}},w=["activityType","signalName","workflowType","result","failure","input","outcome","workflowExecution","taskQueue","startToFireTimeout","attempt","historySizeBytes","identity","parentInitiatedEventId","endpointId"],C=({attributes:t})=>{for(const[r,e]of Object.entries(t))if(c(r,e))return a(r,e)},F=t=>{if(o(t,"ActivityType"))return t.ActivityType;if(o(t,"activity_type"))return t.activity_type},B=t=>{var r,e,i;return!!((i=(e=(r=t.markerRecordedEventAttributes)==null?void 0:r.details)==null?void 0:e.type)!=null&&i.payloads)},z=t=>{var e,i,u,d,l,p;const r=C(t);if(x(t)){const n=(((u=(i=(e=t.markerRecordedEventAttributes)==null?void 0:e.details)==null?void 0:i.data)==null?void 0:u.payloads)||((p=(l=(d=t.markerRecordedEventAttributes)==null?void 0:d.details)==null?void 0:l.type)==null?void 0:p.payloads)||[]).map(h=>T(h)),s=n==null?void 0:n[0];if(B(t)&&s)return a("ActivityType",s);const m=F(s);if(m)return a("ActivityType",m)}for(const y of w)for(const[n,s]of Object.entries(t.attributes))if(n===y&&c(n,s))return a(n,s);return r||f},V=t=>({key:"attempt",value:t.attempt.toString()}),_=t=>t.attempt?{key:"attempt",value:t.attempt.toString()}:f,q=t=>E(t)?z(t):I(t)?V(t):S(t)?_(t):f,rt=t=>t?q(t):f,et=(t,r)=>{if(!t||!(t!=null&&t.attributes))return f;for(const e of w)for(const[i,u]of Object.entries(t.attributes))if(i===e&&i!==r&&c(i,u))return a(i,u);return f};export{Y as a,Z as b,X as c,S as d,$ as e,L as f,q as g,v as h,I as i,tt as j,rt as k,et as l,D as p,c as s}; diff --git a/ui/assets/local/_app/immutable/chunks/icon-button.CDcPAnTL.js b/ui/assets/local/_app/immutable/chunks/icon-button.BoA3mGH0.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/icon-button.CDcPAnTL.js rename to ui/assets/local/_app/immutable/chunks/icon-button.BoA3mGH0.js index 7d4f61158..23c1814b9 100644 --- a/ui/assets/local/_app/immutable/chunks/icon-button.CDcPAnTL.js +++ b/ui/assets/local/_app/immutable/chunks/icon-button.BoA3mGH0.js @@ -1 +1 @@ -import{s as _,z as c,D as u,A as g,B as h}from"./scheduler.C46pS-76.js";import{S as d,i as v,c as k,a as I,m as B,t as S,b as j,d as p}from"./index.dOVbn71B.js";import{g as q,a as z}from"./spread.CgU5AtxT.js";import{B as A}from"./button.BpRIS9ld.js";import{t as f}from"./tw-merge.Ds6tgvmq.js";function C(s){let t,l;const o=[{variant:s[3]},{leadingIcon:s[1]},{class:f("h-9 w-9 shrink-0 rounded-full p-0",s[0])},{"aria-label":s[2]},s[4]];let r={};for(let a=0;a{t=c(c({},t),g(e)),l(4,r=u(t,o)),"class"in e&&l(0,a=e.class),"icon"in e&&l(1,n=e.icon),"label"in e&&l(2,i=e.label),"variant"in e&&l(3,m=e.variant)},[a,n,i,m,r,b]}class G extends d{constructor(t){super(),v(this,t,D,C,_,{class:0,icon:1,label:2,variant:3})}}export{G as I}; +import{s as _,z as c,D as u,A as g,B as h}from"./scheduler.C46pS-76.js";import{S as d,i as v,c as k,a as I,m as B,t as S,b as j,d as p}from"./index.dOVbn71B.js";import{g as q,a as z}from"./spread.CgU5AtxT.js";import{B as A}from"./button.hs88FdV4.js";import{t as f}from"./tw-merge.Ds6tgvmq.js";function C(s){let t,l;const o=[{variant:s[3]},{leadingIcon:s[1]},{class:f("h-9 w-9 shrink-0 rounded-full p-0",s[0])},{"aria-label":s[2]},s[4]];let r={};for(let a=0;a{t=c(c({},t),g(e)),l(4,r=u(t,o)),"class"in e&&l(0,a=e.class),"icon"in e&&l(1,n=e.icon),"label"in e&&l(2,i=e.label),"variant"in e&&l(3,m=e.variant)},[a,n,i,m,r,b]}class G extends d{constructor(t){super(),v(this,t,D,C,_,{class:0,icon:1,label:2,variant:3})}}export{G as I}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.CEl85Dnc.js b/ui/assets/local/_app/immutable/chunks/import-events.CEl85Dnc.js new file mode 100644 index 000000000..bf51b17ad --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/import-events.CEl85Dnc.js @@ -0,0 +1 @@ +import{w as t}from"./entry.kylZibtV.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/import-events.Dljx0mMh.js b/ui/assets/local/_app/immutable/chunks/import-events.Dljx0mMh.js deleted file mode 100644 index 3142a510c..000000000 --- a/ui/assets/local/_app/immutable/chunks/import-events.Dljx0mMh.js +++ /dev/null @@ -1 +0,0 @@ -import{w as t}from"./entry.DLEzeuD9.js";const r=t([]),s=t([]);export{s as a,r as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.CI5Z4Pgd.js b/ui/assets/local/_app/immutable/chunks/index.B3hS-irb.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.CI5Z4Pgd.js rename to ui/assets/local/_app/immutable/chunks/index.B3hS-irb.js index ad419307f..e73e923cf 100644 --- a/ui/assets/local/_app/immutable/chunks/index.CI5Z4Pgd.js +++ b/ui/assets/local/_app/immutable/chunks/index.B3hS-irb.js @@ -1,3 +1,3 @@ -import{C as Me,s as le,L as ae,c as q,b as B,d as N,i as k,f as g,w as Y,t as P,l as V,q as X,x as W,y as De,v as J,a as _e,u as de,g as pe,e as $e,h as H,j as y,k as Q,m as A,N as x,n as U,O as ee,H as ce,a9 as we,a7 as sl,a4 as Ul,p as Le,K as Ml,a0 as pt,Y as al,G as ul,X as Ke,F as et,r as Rl,B as Pl,o as rt,P as $t}from"./scheduler.C46pS-76.js";import{S as ne,i as re,c as v,a as I,m as L,t as p,b as $,d as E,g as z,e as j,f as te,h as Se,j as bt}from"./index.dOVbn71B.js";import{f as Vl,a as he}from"./index.mPGqfhEB.js";import{w as Ne,d as Ge}from"./entry.DLEzeuD9.js";import{p as Re}from"./stores.Dz-RNcUk.js";import{B as it}from"./button.BpRIS9ld.js";import{t as S}from"./translate.BBe5dcco.js";import{c as Wl}from"./pagination.BCeOU9Ta.js";import{s as Pe,b as Hl,c as yl}from"./search-attributes.C9oQpIly.js";import{d as fl,b as Kl,u as cl,e as Oe,i as Ql,f as gt,T as zl,t as jl,c as ql}from"./translate.ncUacGRD.js";import{S as ie,D as ot,T as st}from"./time-picker.BvbblB8x.js";import{u as Gl}from"./update-query-parameters.DVJ0yHKX.js";import{e as Z,u as at,o as ut}from"./each.C6O0oV7R.js";import{M as Ve}from"./menu-button.20KWkPAy.js";import{M as We,a as He,d as se,f as Yl,e as Xl}from"./menu.FCESMtRU.js";import{l as ze,m as ht}from"./has.BWrERxPV.js";import{I as ge}from"./icon-button.CDcPAnTL.js";import{t as ml,a as Jl,b as Zl,d as wt,r as xl,f as je}from"./time-format.D2wF3ave.js";import{I as Fe}from"./icon.CfkHLDdJ.js";import{I as Ye}from"./input.CTzUOpgs.js";import{M as Xe,C as en}from"./checkbox.CZ5w22eC.js";import{a as _l}from"./radio-input.yEAROJgW.js";import{S as tn,O as ln}from"./option.Bt5AmPHo.js";import{i as nn,z as rn}from"./workflows.BzgE0E1S.js";import{r as dl,b as pl,s as Qe,d as on,q as sn}from"./format-time.6TuExJAg.js";import{W as $l}from"./workflow-status.4hwv3weu.js";import{C as an}from"./chip.jHqj-PnK.js";import{N as un}from"./number-input.DL-aHAg2.js";import{t as qe}from"./tw-merge.Ds6tgvmq.js";import{n as fn}from"./namespaces.619_s9Tr.js";import{p as ft}from"./persist-store.Bvu2qNDI.js";var cn=6e4;function mn(r,e){dl(2,arguments);var l=pl(e);return fl(r,l*cn)}function _n(r,e){dl(2,arguments);var l=pl(e);return fl(r,l*1e3)}function Ee(r){return r==="ExecutionStatus"}function Ae({attribute:r,type:e},l=Pe){if(Ee(r))return!1;if(e===ie.KEYWORD)return!0;const t=Me(l)[r];return[ie.KEYWORD,ie.TEXT,"String"].includes(t)}function bl({attribute:r,type:e},l=Pe){return e===ie.KEYWORDLIST?!0:Me(l)[r]===ie.KEYWORDLIST}function gl({attribute:r,type:e},l=Pe){if(e===ie.INT)return!0;const t=Me(l)[r];return t===ie.INT||t===ie.DOUBLE}function dn(r){return["ExecutionDuration"].includes(r)}function ct({attribute:r,type:e},l=Pe){return e===ie.DATETIME?!0:Me(l)[r]===ie.DATETIME}function hl({attribute:r,type:e},l=Pe){return e===ie.BOOL?!0:Me(l)[r]===ie.BOOL}function wl({attribute:r,type:e}){return Ee(r)?"status-filter":Ae({attribute:r,type:e})||gl({attribute:r,type:e})||ct({attribute:r,type:e})?"conditional-menu-button":bl({attribute:r,type:e})?"list-filter":hl({attribute:r,type:e})?"boolean-filter":""}function kt(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function pn(r){let e;return{c(){e=P(r[1])},l(l){e=V(l,r[1])},m(l,t){k(l,e,t)},p(l,t){t&2&&X(e,l[1])},d(l){l&&g(e)}}}function $n(r){let e=r[9]+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p:J,d(n){n&&(g(l),g(t))}}}function vt(r){let e,l;function t(){return r[7](r[8])}return e=new se({props:{class:"text-nowrap",$$slots:{default:[$n]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&4096&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function bn(r){let e,l,t=Z(r[4]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(0,o=d));const u=[{value:"true",label:S("common.true")},{value:"false",label:S("common.false")},{value:"is",label:S("common.is-null")},{value:"is not",label:S("common.is-not-null")}],f=d=>{ze(d)?(Y(a,o.conditional=d,o),Y(a,o.value=null,o)):(Y(a,o.conditional="=",o),Y(a,o.value=d,o)),s()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,i=u.find(d=>d.value===o.value||d.value===o.conditional))!==null&&i!==void 0?i:u[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,a,s,u,i,t,f]}class kn extends ne{constructor(e){super(),re(this,e,wn,hn,le,{})}}function vn(r){let e,l;return e=new ge({props:{label:S("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function In(r){const{resetFilter:e}=ae(ue);return[e]}class ye extends ne{constructor(e){super(),re(this,e,In,vn,le,{})}}function It(r,e,l){const t=r.slice();return t[22]=e[l].value,t[23]=e[l].label,t}function Ln(r){let e;return{c(){e=P(r[5])},l(l){e=V(l,r[5])},m(l,t){k(l,e,t)},p(l,t){t&32&&X(e,l[5])},d(l){l&&g(e)}}}function En(r){let e=(r[23]??r[22])+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p:J,d(n){n&&(g(l),g(t))}}}function Lt(r){let e,l;function t(){return r[17](r[22])}return e=new se({props:{$$slots:{default:[En]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&262144&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function Cn(r){let e,l,t=Z(r[10]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i{o=null}),j()):o?(o.p(i,a),a&64&&p(o,1)):(o=Et(i),o.c(),p(o,1),o.m(t.parentNode,t))},i(i){n||(p(e.$$.fragment,i),p(o),n=!0)},o(i){$(e.$$.fragment,i),$(o),n=!1},d(i){i&&(g(l),g(t)),E(e,i),o&&o.d(i)}}}function Tn(r,e,l){let t,n,o,i,a,s,{$$slots:u={},$$scope:f}=e;var d;const{filter:_,focusedElementId:c,handleSubmit:m}=ae(ue);q(r,_,G=>l(4,a=G)),q(r,c,G=>l(7,s=G));const b=[{value:">"},{value:">="},{value:"="},{value:"!="},{value:"<="},{value:"<"}];let{options:h=b}=e,{disabled:C=!1}=e,{inputId:F}=e,{noBorderLeft:T=!1}=e,{noBorderRight:w=!1}=e,O=[...h,{value:"is",label:S("common.is-null")},{value:"is not",label:S("common.is-not-null")}];function K(){Y(_,a.value=null,a),m()}function M(){t||Y(_,a.conditional=O[0].value,a)}const oe=G=>{Y(_,a.conditional=G,a),Y(c,s=F,s),ze(G)&&K()};return r.$$set=G=>{"options"in G&&l(12,h=G.options),"disabled"in G&&l(0,C=G.disabled),"inputId"in G&&l(1,F=G.inputId),"noBorderLeft"in G&&l(2,T=G.noBorderLeft),"noBorderRight"in G&&l(3,w=G.noBorderRight),"$$scope"in G&&l(18,f=G.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(14,t=O.find(G=>G.value===a.conditional)),r.$$.dirty&16384&&M(),r.$$.dirty&16&&l(6,n=ze(a.conditional)),r.$$.dirty&16384&&l(15,o=t??O[0]),r.$$.dirty&40960&&l(5,i=l(13,d=o==null?void 0:o.label)!==null&&d!==void 0?d:o==null?void 0:o.value)},[C,F,T,w,a,i,n,s,_,c,O,K,h,d,t,o,u,oe,f]}class Je extends ne{constructor(e){super(),re(this,e,Tn,Sn,le,{options:12,disabled:0,inputId:1,noBorderLeft:2,noBorderRight:3})}}function Ct(r,e,l){const t=r.slice();return t[40]=e[l],t}function Bn(r){let e=S("workflows.select-time")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function Nn(r){let e,l,t,n,o,i;return e=new se({props:{$$slots:{default:[Un]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new Xe({}),o=new se({props:{$$slots:{default:[Mn]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment),n=B(),v(o.$$.fragment)},l(a){I(e.$$.fragment,a),l=N(a),I(t.$$.fragment,a),n=N(a),I(o.$$.fragment,a)},m(a,s){L(e,a,s),k(a,l,s),L(t,a,s),k(a,n,s),L(o,a,s),i=!0},p(a,s){const u={};s[0]&2053|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);const f={};s[0]&236|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),o.$set(f)},i(a){i||(p(e.$$.fragment,a),p(t.$$.fragment,a),p(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){a&&(g(l),g(n)),E(e,a),E(t,a),E(o,a)}}}function On(r){let e,l,t,n,o,i;return e=new se({props:{$$slots:{default:[Rn]},$$scope:{ctx:r}}}),t=new Xe({}),o=new se({props:{$$slots:{default:[Pn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment),n=B(),v(o.$$.fragment)},l(a){I(e.$$.fragment,a),l=N(a),I(t.$$.fragment,a),n=N(a),I(o.$$.fragment,a)},m(a,s){L(e,a,s),k(a,l,s),L(t,a,s),k(a,n,s),L(o,a,s),i=!0},p(a,s){const u={};s[0]&232|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);const f={};s[0]&1808|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),o.$set(f)},i(a){i||(p(e.$$.fragment,a),p(t.$$.fragment,a),p(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){a&&(g(l),g(n)),E(e,a),E(t,a),E(o,a)}}}function Fn(r){let e=r[40]+"",l,t,n=S("common.ago")+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p:J,d(i){i&&(g(l),g(t),g(o))}}}function Dt(r){let e,l;return e=new ln({props:{value:r[40],$$slots:{default:[Fn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function An(r){let e,l,t=Z(r[15]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;ite(o,"value",d));function c(b){r[32](b)}let m={id:"relative-datetime-unit-input",label:S("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[An]},$$scope:{ctx:r}};return r[11]!==void 0&&(m.value=r[11]),s=new tn({props:m}),x.push(()=>te(s,"value",c)),{c(){e=H("div"),v(l.$$.fragment),t=B(),n=H("div"),v(o.$$.fragment),a=B(),v(s.$$.fragment),this.h()},l(b){e=y(b,"DIV",{class:!0});var h=Q(e);I(l.$$.fragment,h),t=N(h),n=y(h,"DIV",{class:!0});var C=Q(n);I(o.$$.fragment,C),a=N(C),I(s.$$.fragment,C),C.forEach(g),h.forEach(g),this.h()},h(){A(n,"class","ml-6 flex gap-2 pt-2"),A(e,"class","flex flex-col")},m(b,h){k(b,e,h),L(l,e,null),U(e,t),U(e,n),L(o,n,null),U(n,a),L(s,n,null),f=!0},p(b,h){const C={};h[0]&1&&(C.error=b[20](b[0])),h[0]&4&&(C.disabled=b[2]!=="relative"),!i&&h[0]&1&&(i=!0,C.value=b[0],ee(()=>i=!1)),o.$set(C);const F={};h[0]&4&&(F.disabled=b[2]!=="relative"),h[1]&4096&&(F.$$scope={dirty:h,ctx:b}),!u&&h[0]&2048&&(u=!0,F.value=b[11],ee(()=>u=!1)),s.$set(F)},i(b){f||(p(l.$$.fragment,b),p(o.$$.fragment,b),p(s.$$.fragment,b),f=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(s.$$.fragment,b),f=!1},d(b){b&&g(e),E(l),E(o),E(s)}}}function Mn(r){let e,l,t,n,o,i,a,s,u,f,d;l=new _l({props:{label:S("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new ot({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function _(h){r[34](h)}function c(h){r[35](h)}function m(h){r[36](h)}let b={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(b.hour=r[5]),r[6]!==void 0&&(b.minute=r[6]),r[7]!==void 0&&(b.second=r[7]),a=new st({props:b}),x.push(()=>te(a,"hour",_)),x.push(()=>te(a,"minute",c)),x.push(()=>te(a,"second",m)),{c(){e=H("div"),v(l.$$.fragment),t=B(),n=H("div"),v(o.$$.fragment),i=B(),v(a.$$.fragment),this.h()},l(h){e=y(h,"DIV",{class:!0});var C=Q(e);I(l.$$.fragment,C),t=N(C),n=y(C,"DIV",{class:!0});var F=Q(n);I(o.$$.fragment,F),i=N(F),I(a.$$.fragment,F),F.forEach(g),C.forEach(g),this.h()},h(){A(n,"class","ml-6 flex flex-col gap-2"),A(e,"class","flex flex-col gap-2")},m(h,C){k(h,e,C),L(l,e,null),U(e,t),U(e,n),L(o,n,null),U(n,i),L(a,n,null),d=!0},p(h,C){const F={};C[0]&8&&(F.selected=h[3]),C[0]&4&&(F.disabled=h[2]!=="absolute"),o.$set(F);const T={};C[0]&4&&(T.disabled=h[2]!=="absolute"),!s&&C[0]&32&&(s=!0,T.hour=h[5],ee(()=>s=!1)),!u&&C[0]&64&&(u=!0,T.minute=h[6],ee(()=>u=!1)),!f&&C[0]&128&&(f=!0,T.second=h[7],ee(()=>f=!1)),a.$set(T)},i(h){d||(p(l.$$.fragment,h),p(o.$$.fragment,h),p(a.$$.fragment,h),d=!0)},o(h){$(l.$$.fragment,h),$(o.$$.fragment,h),$(a.$$.fragment,h),d=!1},d(h){h&&g(e),E(l),E(o),E(a)}}}function Rn(r){let e,l,t,n,o,i,a,s;l=new ot({props:{label:S("common.start"),selected:r[3],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function u(c){r[25](c)}function f(c){r[26](c)}function d(c){r[27](c)}let _={twelveHourClock:!1};return r[5]!==void 0&&(_.hour=r[5]),r[6]!==void 0&&(_.minute=r[6]),r[7]!==void 0&&(_.second=r[7]),n=new st({props:_}),x.push(()=>te(n,"hour",u)),x.push(()=>te(n,"minute",f)),x.push(()=>te(n,"second",d)),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(c){e=y(c,"DIV",{class:!0});var m=Q(e);I(l.$$.fragment,m),t=N(m),I(n.$$.fragment,m),m.forEach(g),this.h()},h(){A(e,"class","flex flex-col gap-2")},m(c,m){k(c,e,m),L(l,e,null),U(e,t),L(n,e,null),s=!0},p(c,m){const b={};m[0]&8&&(b.selected=c[3]),l.$set(b);const h={};!o&&m[0]&32&&(o=!0,h.hour=c[5],ee(()=>o=!1)),!i&&m[0]&64&&(i=!0,h.minute=c[6],ee(()=>i=!1)),!a&&m[0]&128&&(a=!0,h.second=c[7],ee(()=>a=!1)),n.$set(h)},i(c){s||(p(l.$$.fragment,c),p(n.$$.fragment,c),s=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),s=!1},d(c){c&&g(e),E(l),E(n)}}}function Pn(r){let e,l,t,n,o,i,a,s;l=new ot({props:{label:S("common.end"),selected:r[4],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function u(c){r[28](c)}function f(c){r[29](c)}function d(c){r[30](c)}let _={twelveHourClock:!1};return r[8]!==void 0&&(_.hour=r[8]),r[9]!==void 0&&(_.minute=r[9]),r[10]!==void 0&&(_.second=r[10]),n=new st({props:_}),x.push(()=>te(n,"hour",u)),x.push(()=>te(n,"minute",f)),x.push(()=>te(n,"second",d)),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(c){e=y(c,"DIV",{class:!0});var m=Q(e);I(l.$$.fragment,m),t=N(m),I(n.$$.fragment,m),m.forEach(g),this.h()},h(){A(e,"class","flex flex-col gap-2")},m(c,m){k(c,e,m),L(l,e,null),U(e,t),L(n,e,null),s=!0},p(c,m){const b={};m[0]&16&&(b.selected=c[4]),l.$set(b);const h={};!o&&m[0]&256&&(o=!0,h.hour=c[8],ee(()=>o=!1)),!i&&m[0]&512&&(i=!0,h.minute=c[9],ee(()=>i=!1)),!a&&m[0]&1024&&(a=!0,h.second=c[10],ee(()=>a=!1)),n.$set(h)},i(c){s||(p(l.$$.fragment,c),p(n.$$.fragment,c),s=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),s=!1},d(c){c&&g(e),E(l),E(n)}}}function Vn(r){let e=S("common.apply")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function Wn(r){let e,l,t=S("common.based-on-time-preface")+"",n,o,i,a;return e=new Fe({props:{name:"clock","aria-hidden":"true"}}),{c(){v(e.$$.fragment),l=B(),n=P(t),o=B(),i=P(r[13])},l(s){I(e.$$.fragment,s),l=N(s),n=V(s,t),o=N(s),i=V(s,r[13])},m(s,u){L(e,s,u),k(s,l,u),k(s,n,u),k(s,o,u),k(s,i,u),a=!0},p(s,u){(!a||u[0]&8192)&&X(i,s[13])},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),a=!1},d(s){s&&(g(l),g(n),g(o),g(i)),E(e,s)}}}function Hn(r){let e,l,t,n,o,i,a,s,u,f;const d=[On,Nn],_=[];function c(m,b){return m[1]?0:1}return e=c(r),l=_[e]=d[e](r),n=new Xe({}),a=new it({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[Vn]},$$scope:{ctx:r}}}),a.$on("click",r[19]),u=new se({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[Wn]},$$scope:{ctx:r}}}),{c(){l.c(),t=B(),v(n.$$.fragment),o=B(),i=H("div"),v(a.$$.fragment),s=B(),v(u.$$.fragment),this.h()},l(m){l.l(m),t=N(m),I(n.$$.fragment,m),o=N(m),i=y(m,"DIV",{class:!0});var b=Q(i);I(a.$$.fragment,b),b.forEach(g),s=N(m),I(u.$$.fragment,m),this.h()},h(){A(i,"class","flex items-center p-2")},m(m,b){_[e].m(m,b),k(m,t,b),L(n,m,b),k(m,o,b),k(m,i,b),L(a,i,null),k(m,s,b),L(u,m,b),f=!0},p(m,b){let h=e;e=c(m),e===h?_[e].p(m,b):(z(),$(_[h],1,1,()=>{_[h]=null}),j(),l=_[e],l?l.p(m,b):(l=_[e]=d[e](m),l.c()),p(l,1),l.m(t.parentNode,t));const C={};b[0]&4096&&(C.disabled=m[12]),b[1]&4096&&(C.$$scope={dirty:b,ctx:m}),a.$set(C);const F={};b[0]&8192|b[1]&4096&&(F.$$scope={dirty:b,ctx:m}),u.$set(F)},i(m){f||(p(l),p(n.$$.fragment,m),p(a.$$.fragment,m),p(u.$$.fragment,m),f=!0)},o(m){$(l),$(n.$$.fragment,m),$(a.$$.fragment,m),$(u.$$.fragment,m),f=!1},d(m){m&&(g(t),g(o),g(i),g(s)),_[e].d(m),E(n,m),E(a),E(u,m)}}}function yn(r){let e,l,t,n;return e=new Ve({props:{id:"time-range-filter",controls:"time-range-filter-menu",class:"whitespace-nowrap",$$slots:{default:[Bn]},$$scope:{ctx:r}}}),t=new He({props:{keepOpen:!0,id:"time-range-filter-menu",class:"max-h-fit w-[27rem] !overflow-visible",$$slots:{default:[Hn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment)},l(o){I(e.$$.fragment,o),l=N(o),I(t.$$.fragment,o)},m(o,i){L(e,o,i),k(o,l,i),L(t,o,i),n=!0},p(o,i){const a={};i[1]&4096&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i[0]&16383|i[1]&4096&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){o&&g(l),E(e,o),E(t,o)}}}function Kn(r){let e,l;return e=new We({props:{$$slots:{default:[yn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[0]&16383|n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Qn(r){let e,l;return e=new Je({props:{inputId:"time-range-filter",options:[{value:"<=",label:S("common.before")},{value:"BETWEEN",label:S("common.between")},{value:">=",label:S("common.after")}],noBorderLeft:!0,noBorderRight:!0,$$slots:{default:[Kn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[0]&16383|n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function zn(r,e,l){let t,n,o,i,a,s,u,f;q(r,ml,R=>l(23,s=R)),q(r,nn,R=>l(24,f=R));const{filter:d,handleSubmit:_}=ae(ue);q(r,d,R=>l(22,a=R));let c=Qe(new Date),m=Qe(new Date),b="",h="",C="",F="",T="",w="";const O=["minutes","hours","days"];let K=O[0],M="";const oe=Ne("relative");q(r,oe,R=>l(2,u=R));const G=R=>{l(3,c=Qe(R.detail))},me=R=>{l(4,m=Qe(R.detail))},ve=(R,be)=>{let fe=new Date(R);return be.hour&&(fe=Kl(fe,parseInt(be.hour))),be.minute&&(fe=mn(fe,parseInt(be.minute))),be.second&&(fe=_n(fe,parseInt(be.second))),fe},Te=()=>{if(u==="relative"&&!o){if(!M)return;Y(d,a.value=on(`${M} ${K}`),a),Y(d,a.customDate=!1,a)}else{let R=ve(c,{hour:b,minute:h,second:C}),be=ve(m,{hour:F,minute:T,second:w});const fe=Zl(s),dt=wt.zonedTimeToUtc(R,fe).toISOString(),Fl=wt.zonedTimeToUtc(be,fe).toISOString(),Al=o?`BETWEEN "${dt}" AND "${Fl}"`:dt;Y(d,a.value=Al,a),t?(Y(d,a.customDate=!0,a),Y(d,a.conditional="",a)):Y(d,a.customDate=!1,a)}_()},Ie=R=>R?isNaN(Number(R))||isNaN(parseFloat(R)):!1;function D(R){b=R,l(5,b)}function Be(R){h=R,l(6,h)}function xe(R){C=R,l(7,C)}function Il(R){F=R,l(8,F)}function Ll(R){T=R,l(9,T)}function El(R){w=R,l(10,w)}function Cl(R){M=R,l(0,M)}function Dl(R){K=R,l(11,K)}const Sl=()=>Y(oe,u="relative",u);function Tl(R){b=R,l(5,b)}function Bl(R){h=R,l(6,h)}function Nl(R){C=R,l(7,C)}const Ol=()=>Y(oe,u="absolute",u);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=a.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Jl(s)),r.$$.dirty[0]&16777218&&l(21,o=t||!f),r.$$.dirty[0]&2097157&&l(12,i=u==="relative"&&!o&&(!M||Ie(M)))},[M,t,u,c,m,b,h,C,F,T,w,K,i,n,d,O,oe,G,me,Te,Ie,o,a,s,f,D,Be,xe,Il,Ll,El,Cl,Dl,Sl,Tl,Bl,Nl,Ol]}class jn extends ne{constructor(e){super(),re(this,e,zn,Qn,le,{},null,[-1,-1])}}function qn(r){let e,l,t;function n(i){r[7](i)}let o={label:r[0].attribute,labelHidden:!0,id:"duration-filter",type:"search",placeholder:`${S("common.enter")} ${r[0].attribute} (${S("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[2]!==void 0&&(o.value=r[2]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),e.$on("keydown",r[4]),e.$on("input",r[5]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};a&1&&(s.label=i[0].attribute),a&1&&(s.placeholder=`${S("common.enter")} ${i[0].attribute} (${S("workflows.duration-filter-placeholder")})`),a&2&&(s.valid=i[1]),!l&&a&4&&(l=!0,s.value=i[2],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Gn(r){let e,l;return e=new Je({props:{inputId:"duration-filter",noBorderLeft:!0,$$slots:{default:[qn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&519&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Yn(r,e,l){let t,n,o;const{filter:i,handleSubmit:a}=ae(ue);q(r,i,_=>l(0,o=_));let s=!0;const u=_=>{const c=n.trim();s&&_.key==="Enter"&&c!==""&&(Y(i,o.value=c,o),_.preventDefault(),a())},f=_=>{sn(_.target.value.trim())?l(1,s=!0):l(1,s=!1)};function d(_){n=_,l(2,n),l(6,t),l(0,o)}return r.$$.update=()=>{r.$$.dirty&1&&l(6,{value:t}=o,t),r.$$.dirty&64&&l(2,n=t)},[o,s,n,i,u,f,t,d]}class Xn extends ne{constructor(e){super(),re(this,e,Yn,Gn,le,{})}}function St(r,e,l){const t=r.slice();t[17]=e[l],t[24]=l;const n=t[17];return t[18]=n.attribute,t[19]=n.type,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Tt(r){let e,l,t,n,o;function i(){return r[14](r[24])}function a(){return r[15](r[24],r[17])}return l=new an({props:{removeButtonLabel:S("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[rr]},$$scope:{ctx:r}}}),l.$on("remove",i),l.$on("click",a),{c(){e=H("div"),v(l.$$.fragment),this.h()},l(s){e=y(s,"DIV",{"data-testid":!0});var u=Q(e);I(l.$$.fragment,u),u.forEach(g),this.h()},h(){A(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(s,u){k(s,e,u),L(l,e,null),o=!0},p(s,u){r=s;const f={};u&2&&(f.removeButtonLabel=S("workflows.remove-filter-label",{attribute:r[18]})),u&33554482&&(f.$$scope={dirty:u,ctx:r}),l.$set(f),(!o||u&2&&t!==(t=r[17].attribute+"-"+r[24]))&&A(e,"data-testid",t)},i(s){o||(p(l.$$.fragment,s),s&&(n||we(()=>{n=Se(e,Vl,{}),n.start()})),o=!0)},o(s){$(l.$$.fragment,s),o=!1},d(s){s&&g(e),E(l)}}}function Jn(r){let e,l=r[18]+"",t,n,o,i;function a(f,d){return d&2&&(o=null),d&2&&(i=null),o==null&&(o=!!ze(f[21])),o?tr:(i==null&&(i=!!ct({attribute:f[18],type:f[19]})),i?er:xn)}let s=a(r,-1),u=s(r);return{c(){e=H("span"),t=P(l),n=B(),u.c(),this.h()},l(f){e=y(f,"SPAN",{class:!0});var d=Q(e);t=V(d,l),n=N(d),u.l(d),d.forEach(g),this.h()},h(){A(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,d){k(f,e,d),U(e,t),U(e,n),u.m(e,null)},p(f,d){d&2&&l!==(l=f[18]+"")&&X(t,l),s===(s=a(f,d))&&u?u.p(f,d):(u.d(1),u=s(f),u&&(u.c(),u.m(e,null)))},i:J,o:J,d(f){f&&g(e),u.d()}}}function Zn(r){let e,l=r[18]+"",t,n,o=r[21]+"",i,a,s,u,f;return u=new $l({props:{status:r[20]}}),{c(){e=H("span"),t=P(l),n=B(),i=P(o),a=B(),s=H("span"),v(u.$$.fragment),this.h()},l(d){e=y(d,"SPAN",{class:!0});var _=Q(e);t=V(_,l),n=N(_),i=V(_,o),a=N(_),s=y(_,"SPAN",{class:!0});var c=Q(s);I(u.$$.fragment,c),c.forEach(g),_.forEach(g),this.h()},h(){A(s,"class","-py-1 ml-1"),A(e,"class","flex")},m(d,_){k(d,e,_),U(e,t),U(e,n),U(e,i),U(e,a),U(e,s),L(u,s,null),f=!0},p(d,_){(!f||_&2)&&l!==(l=d[18]+"")&&X(t,l),(!f||_&2)&&o!==(o=d[21]+"")&&X(i,o);const c={};_&2&&(c.status=d[20]),u.$set(c)},i(d){f||(p(u.$$.fragment,d),f=!0)},o(d){$(u.$$.fragment,d),f=!1},d(d){d&&g(e),E(u)}}}function xn(r){let e=(ht(r[21])?S("common.starts-with").toLocaleLowerCase():r[21])+"",l,t,n=(Ae({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=(ht(i[21])?S("common.starts-with").toLocaleLowerCase():i[21])+"")&&X(l,e),a&2&&n!==(n=(Ae({attribute:i[18],type:i[19]})?`"${i[20]}"`:i[20])+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function er(r){let e;function l(o,i){return o[22]?nr:lr}let t=l(r),n=t(r);return{c(){n.c(),e=W()},l(o){n.l(o),e=W()},m(o,i){n.m(o,i),k(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){o&&g(e),n.d(o)}}}function tr(r){let e=r[21]+"",l,t,n=r[20]+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=i[21]+"")&&X(l,e),a&2&&n!==(n=i[20]+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function lr(r){let e=r[10](r[21])+"",l,t,n=je(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=i[10](i[21])+"")&&X(l,e),a&50&&n!==(n=je(i[20],i[4],{relative:i[5],abbrFormat:!0})+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function nr(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&X(l,e)},d(t){t&&g(l)}}}function rr(r){let e,l,t,n,o;const i=[Zn,Jn],a=[];function s(u,f){return f&2&&(e=null),e==null&&(e=!!(u[18]==="ExecutionStatus"&&Ql(u[20]))),e?0:1}return l=s(r,-1),t=a[l]=i[l](r),{c(){t.c(),n=W()},l(u){t.l(u),n=W()},m(u,f){a[l].m(u,f),k(u,n,f),o=!0},p(u,f){let d=l;l=s(u,f),l===d?a[l].p(u,f):(z(),$(a[d],1,1,()=>{a[d]=null}),j(),t=a[l],t?t.p(u,f):(t=a[l]=i[l](u),t.c()),p(t,1),t.m(n.parentNode,n))},i(u){o||(p(t),o=!0)},o(u){$(t),o=!1},d(u){u&&g(n),a[l].d(u)}}}function Bt(r,e){let l,t,n,o=e[18]&&Tt(e);return{key:r,first:null,c(){l=W(),o&&o.c(),t=W(),this.h()},l(i){l=W(),o&&o.l(i),t=W(),this.h()},h(){this.first=l},m(i,a){k(i,l,a),o&&o.m(i,a),k(i,t,a),n=!0},p(i,a){e=i,e[18]?o?(o.p(e,a),a&2&&p(o,1)):(o=Tt(e),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(z(),$(o,1,1,()=>{o=null}),j())},i(i){n||(p(o),n=!0)},o(i){$(o),n=!1},d(i){i&&(g(l),g(t)),o&&o.d(i)}}}function Nt(r){let e,l;return e=new it({props:{variant:"secondary",size:"xs",$$slots:{default:[ir]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ir(r){let e=S("common.view-more")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function or(r){let e,l=[],t=new Map,n,o,i=Z(r[1]);const a=u=>`${u[17].attribute}-${u[24]}`;for(let u=0;u{s=null}),j()),(!o||f&2)&&ce(e,"pt-2",u[1].length)},i(u){if(!o){for(let f=0;fl(16,a=w)),q(r,ml,w=>l(4,s=w)),q(r,xl,w=>l(5,u=w));let{filters:f}=e;const{filter:d,activeQueryIndex:_}=ae(ue);q(r,d,w=>l(3,i=w)),q(r,_,w=>l(2,o=w));const c=w=>{if(f.splice(w,1),l(12,f),cl(a.url,f),w===f.length){const O=f[f.length-1];O&&(O.operator="")}w===o?(Y(_,o=null,o),Y(d,i=Oe(),i)):w{n&&l(13,m+=5)},h=w=>["<","<="].includes(w)?S("common.before").toLowerCase():[">",">="].includes(w)?S("common.after").toLowerCase():w,C=(w,O,K)=>{const[M,oe,G,me]=w.split(" ");return`${M.toLowerCase()} ${je(oe,O,{relative:K,abbrFormat:!0})} ${G.toLowerCase()} ${je(me,O,{relative:K,abbrFormat:!0})}`},F=w=>c(w),T=(w,O)=>{Y(_,o=w,o),Y(d,i={...O},i)};return r.$$set=w=>{"filters"in w&&l(12,f=w.filters)},r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=f.slice(0,m)),r.$$.dirty&12288&&l(0,n=mte(e,"value",n)),e.$on("keydown",r[3]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&1&&(l=!0,s.value=i[0],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function fr(r){let e,l;return e=new Je({props:{inputId:"number-filter",noBorderLeft:!0,$$slots:{default:[ur]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&513&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}const kl=0;function cr(r,e,l){let t,n,o,i;const{filter:a,focusedElementId:s,handleSubmit:u}=ae(ue);q(r,a,_=>l(5,o=_)),q(r,s,_=>l(7,i=_));const f=_=>{Y(s,i="",i),_.key==="Enter"&&n!==null&&n>=kl&&(Y(a,o.value=String(n),o),_.preventDefault(),u())};function d(_){n=_,l(0,n),l(4,t),l(5,o)}return r.$$.update=()=>{r.$$.dirty&32&&l(4,{value:t}=o,t),r.$$.dirty&16&&l(0,n=t?Number(t):null)},[n,a,s,f,t,o,d]}class mr extends ne{constructor(e){super(),re(this,e,cr,fr,le,{})}}function Ot(r,e,l){const t=r.slice();t[16]=e[l].value,t[17]=e[l].label,t[18]=e[l].type;const n=kr(t[16],t[0]);return t[19]=n,t}function _r(r){let e=(r[4].attribute||S("workflows.filter"))+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&16&&e!==(e=(t[4].attribute||S("workflows.filter"))+"")&&X(l,e)},d(t){t&&g(l)}}}function Ft(r){let e,l;return e=new Fe({props:{name:"filter"}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function dr(r){let e,l,t=!r[4].attribute&&Ft();return{c(){t&&t.c(),e=W()},l(n){t&&t.l(n),e=W()},m(n,o){t&&t.m(n,o),k(n,e,o),l=!0},p(n,o){n[4].attribute?t&&(z(),$(t,1,1,()=>{t=null}),j()):t?o&16&&p(t,1):(t=Ft(),t.c(),p(t,1),t.m(e.parentNode,e))},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){n&&g(e),t&&t.d(n)}}}function pr(r){let e,l,t;function n(i){r[12](i)}let o={label:S("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:S("common.search"),class:"w-full"};return r[1]!==void 0&&(o.value=r[1]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&2&&(l=!0,s.value=i[1],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function At(r){let e,l;return e=new se({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[$r]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function $r(r){let e=S("common.no-results")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function br(r){let e=r[17]+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p(n,o){o&4&&e!==(e=n[17]+"")&&X(l,e)},d(n){n&&(g(l),g(t))}}}function Ut(r){let e,l;function t(){return r[14](r[16],r[18])}return e=new se({props:{disabled:r[19],$$slots:{default:[br]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&5&&(i.disabled=r[19]),o&4194308&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function gr(r){let e,l,t,n;e=new se({props:{class:"p-0",hoverable:!1,$$slots:{default:[pr]},$$scope:{ctx:r}}}),e.$on("click",r[13]);let o=Z(r[2]),i=[];for(let u=0;u$(i[u],1,1,()=>{i[u]=null});let s=null;return o.length||(s=At(r)),{c(){v(e.$$.fragment),l=B();for(let u=0;u{s=null}),j()):(s=At(u),s.c(),p(s,1),s.m(t.parentNode,t))}},i(u){if(!n){p(e.$$.fragment,u);for(let f=0;f["=","!=","is","is not"].includes(l.conditional)&&l.attribute===r)}function vr(r,e,l){let t,n,o,i,a,{filters:s}=e,{options:u}=e;const{filter:f,activeQueryIndex:d,focusedElementId:_}=ae(ue);q(r,f,T=>l(4,a=T)),q(r,d,T=>l(3,i=T)),q(r,_,T=>l(15,o=T));function c(T,w){l(1,m=""),f.set({...Oe(),attribute:T,conditional:"=",type:w}),Y(_,o=wl({attribute:T,type:w}),o)}let m="";const b=()=>l(1,m="");function h(T){m=T,l(1,m)}const C=()=>{var T;(T=document.getElementById("filter-search"))==null||T.focus()},F=(T,w)=>{c(T,w)};return r.$$set=T=>{"filters"in T&&l(0,s=T.filters),"options"in T&&l(9,u=T.options)},r.$$.update=()=>{r.$$.dirty&512&&l(10,t=u.filter(({value:T,type:w})=>!bl({attribute:T,type:w}))),r.$$.dirty&1026&&l(2,n=m?t.filter(T=>T.value.toLowerCase().includes(m.toLowerCase())):t)},[s,m,n,i,a,f,d,_,c,u,t,b,h,C,F]}class Ir extends ne{constructor(e){super(),re(this,e,vr,wr,le,{filters:0,options:9})}}function Mt(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...i){return r[12](t[17],...i)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function Lr(r){let e=r[1].attribute+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&X(l,e)},d(t){t&&g(l)}}}function Er(r){let e,l;return e=new $l({props:{status:r[17]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Cr(r){let e,l;return e=new zl({props:{key:"workflows.all-statuses"}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Dr(r){let e,l,t,n;const o=[Cr,Er],i=[];function a(s,u){return s[17]==="All"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){l.p(s,u)},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function Sr(r){let e,l;function t(){return r[10](r[17])}return e=new en({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&1&&(i.checked=r[18]),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function Rt(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new se({props:{"data-testid":e[17],$$slots:{leading:[Sr],default:[Dr]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=W(),v(t.$$.fragment),this.h()},l(i){l=W(),I(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){k(i,l,a),L(t,i,a),n=!0},p(i,a){e=i;const s={};a&2097153&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(i){n||(p(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),E(t,i)}}}function Tr(r){let e=[],l=new Map,t,n,o,i=Z(gt);const a=s=>s[17];for(let s=0;sl(13,i=w));let{filters:s}=e;const{filter:u,resetFilter:f}=ae(ue);q(r,u,w=>l(1,o=w));const d=Ne(!0);q(r,d,w=>l(2,a=w));function _(){l(7,s=t),cl(i.url,s)}function c(w){return{...o,value:w}}function m(w){return w.length===1?[c(w[0].value)]:w.map((O,K)=>{const M=K===w.length-1?"":"OR";return{...O,operator:M}})}const b=w=>{if(w==="All")l(8,t=s.filter(O=>O.attribute!=="ExecutionStatus"));else if(n.find(O=>O.value===w)){const O=s.filter(K=>!Ee(K.attribute));l(8,t=[...O,...m(n.filter(K=>K.value!==w))])}else if(!n.length)l(8,t=[...t,c(w)]);else{const O=t.filter(K=>!Ee(K.attribute));l(8,t=[...O,...m([...n,c(w)])])}_()},h=()=>{a&&f()},C=w=>b(w),F=w=>{b(w)},T=(w,O)=>O.value===w;return r.$$set=w=>{"filters"in w&&l(7,s=w.filters)},r.$$.update=()=>{r.$$.dirty&128&&l(8,t=[...s]),r.$$.dirty&256&&l(0,n=t.filter(w=>Ee(w.attribute)))},[n,o,a,u,f,d,b,s,t,h,C,F,T]}class Fr extends ne{constructor(e){super(),re(this,e,Or,Nr,le,{filters:7})}}function Ar(r){let e,l,t;function n(i){r[7](i)}let o={label:r[0].attribute,labelHidden:!0,id:"text-filter",type:"search",placeholder:`${S("common.enter")} ${r[0].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[2]!==void 0&&(o.value=r[2]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),e.$on("keydown",r[4]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};a&1&&(s.label=i[0].attribute),a&1&&(s.placeholder=`${S("common.enter")} ${i[0].attribute}`),!l&&a&4&&(l=!0,s.value=i[2],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ur(r){let e,l;return e=new Je({props:{options:r[1],inputId:"text-filter",noBorderLeft:!0,$$slots:{default:[Ar]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&2&&(o.options=t[1]),n&517&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Mr(r,e,l){let t,n,o,i,a;q(r,rn,_=>l(6,a=_));const{filter:s,handleSubmit:u}=ae(ue);q(r,s,_=>l(0,i=_));function f(_){_.key==="Enter"&&n!==""&&(_.preventDefault(),Y(s,i.value=n,i),u())}function d(_){n=_,l(2,n),l(5,t),l(0,i)}return r.$$.update=()=>{r.$$.dirty&1&&l(5,{value:t}=i,t),r.$$.dirty&32&&l(2,n=t),r.$$.dirty&65&&l(1,o=[{value:"=",label:S("common.equal-to")},{value:"!=",label:S("common.not-equal-to")},...a&&i.type===ie.KEYWORD?[{value:"STARTS_WITH",label:S("common.starts-with")}]:[]])},[i,o,n,s,f,t,a,d]}class Rr extends ne{constructor(e){super(),re(this,e,Mr,Ur,le,{})}}const Pr=r=>({}),Pt=r=>({});function Vt(r){let e,l,t,n,o,i,a,s;const u=[Wr,Vr],f=[];function d(c,m){return m&8&&(l=null),l==null&&(l=!!Ee(c[3])),l?0:1}t=d(r,-1),n=f[t]=u[t](r);let _=r[3]&&Wt(r);return{c(){e=H("div"),n.c(),o=B(),_&&_.c(),this.h()},l(c){e=y(c,"DIV",{class:!0,role:!0});var m=Q(e);n.l(m),o=N(m),_&&_.l(m),m.forEach(g),this.h()},h(){A(e,"class","flex items-center svelte-1qtxzn6"),A(e,"role","none"),ce(e,"filter",!r[5])},m(c,m){k(c,e,m),f[t].m(e,null),U(e,o),_&&_.m(e,null),i=!0,a||(s=Le(e,"keyup",r[10]),a=!0)},p(c,m){let b=t;t=d(c,m),t===b?f[t].p(c,m):(z(),$(f[b],1,1,()=>{f[b]=null}),j(),n=f[t],n?n.p(c,m):(n=f[t]=u[t](c),n.c()),p(n,1),n.m(e,o)),c[3]?_?(_.p(c,m),m&8&&p(_,1)):(_=Wt(c),_.c(),p(_,1),_.m(e,null)):_&&(z(),$(_,1,1,()=>{_=null}),j()),(!i||m&32)&&ce(e,"filter",!c[5])},i(c){i||(p(n),p(_),i=!0)},o(c){$(n),$(_),i=!1},d(c){c&&g(e),f[t].d(),_&&_.d(),a=!1,s()}}}function Vr(r){let e,l;return e=new Ir({props:{filters:r[0],options:r[1]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.filters=t[0]),n&2&&(o.options=t[1]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Wr(r){let e,l,t;function n(i){r[16](i)}let o={};return r[0]!==void 0&&(o.filters=r[0]),e=new Fr({props:o}),x.push(()=>te(e,"filters",n)),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&1&&(l=!0,s.filters=i[0],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Wt(r){let e,l,t,n,o,i,a,s,u;const f=[zr,Qr,Kr,yr,Hr],d=[];function _(c,m){return m&24&&(e=null),m&8&&(l=null),m&24&&(t=null),m&24&&(n=null),m&24&&(o=null),e==null&&(e=!!Ae({attribute:c[3],type:c[4]})),e?0:(l==null&&(l=!!dn(c[3])),l?1:(t==null&&(t=!!gl({attribute:c[3],type:c[4]})),t?2:(n==null&&(n=!!ct({attribute:c[3],type:c[4]})),n?3:(o==null&&(o=!!hl({attribute:c[3],type:c[4]})),o?4:-1))))}return~(i=_(r,-1))&&(a=d[i]=f[i](r)),{c(){a&&a.c(),s=W()},l(c){a&&a.l(c),s=W()},m(c,m){~i&&d[i].m(c,m),k(c,s,m),u=!0},p(c,m){let b=i;i=_(c,m),i!==b&&(a&&(z(),$(d[b],1,1,()=>{d[b]=null}),j()),~i?(a=d[i],a||(a=d[i]=f[i](c),a.c()),p(a,1),a.m(s.parentNode,s)):a=null)},i(c){u||(p(a),u=!0)},o(c){$(a),u=!1},d(c){c&&g(s),~i&&d[i].d(c)}}}function Hr(r){let e,l,t,n,o,i;return l=new kn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function yr(r){let e,l,t,n,o,i;return l=new jn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Kr(r){let e,l,t,n,o,i;return l=new mr({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Qr(r){let e,l,t,n,o,i;return l=new Xn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function zr(r){let e,l,t,n,o,i;return l=new Rr({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Ht(r){let e,l;return e=new it({props:{variant:"ghost",$$slots:{default:[jr]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&262144&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function jr(r){let e=S("common.clear-all")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function qr(r){let e,l,t,n,o,i,a,s,u,f,d;const _=r[15].default,c=_e(_,r,r[18],null);let m=r[2]&&Vt(r),b=r[5]&&Ht(r);const h=r[15].actions,C=_e(h,r,r[18],Pt);function F(w){r[17](w)}let T={};return r[0]!==void 0&&(T.filters=r[0]),u=new ar({props:T}),x.push(()=>te(u,"filters",F)),{c(){e=H("div"),l=H("div"),c&&c.c(),t=B(),m&&m.c(),n=B(),o=H("div"),b&&b.c(),a=B(),C&&C.c(),s=B(),v(u.$$.fragment),this.h()},l(w){e=y(w,"DIV",{class:!0});var O=Q(e);l=y(O,"DIV",{class:!0});var K=Q(l);c&&c.l(K),t=N(K),m&&m.l(K),n=N(K),o=y(K,"DIV",{class:!0});var M=Q(o);b&&b.l(M),M.forEach(g),a=N(K),C&&C.l(K),K.forEach(g),s=N(O),I(u.$$.fragment,O),O.forEach(g),this.h()},h(){A(o,"class",i="flex flex-col sm:flex-row "+(r[5]?"w-full justify-between":"justify-end")),A(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),A(e,"class","flex grow flex-col")},m(w,O){k(w,e,O),U(e,l),c&&c.m(l,null),U(l,t),m&&m.m(l,null),U(l,n),U(l,o),b&&b.m(o,null),U(l,a),C&&C.m(l,null),U(e,s),L(u,e,null),d=!0},p(w,[O]){c&&c.p&&(!d||O&262144)&&de(c,_,w,w[18],d?$e(_,w[18],O,null):pe(w[18]),null),w[2]?m?(m.p(w,O),O&4&&p(m,1)):(m=Vt(w),m.c(),p(m,1),m.m(l,n)):m&&(z(),$(m,1,1,()=>{m=null}),j()),w[5]?b?(b.p(w,O),O&32&&p(b,1)):(b=Ht(w),b.c(),p(b,1),b.m(o,null)):b&&(z(),$(b,1,1,()=>{b=null}),j()),(!d||O&32&&i!==(i="flex flex-col sm:flex-row "+(w[5]?"w-full justify-between":"justify-end")))&&A(o,"class",i),C&&C.p&&(!d||O&262144)&&de(C,h,w,w[18],d?$e(h,w[18],O,Pr):pe(w[18]),Pt);const K={};!f&&O&1&&(f=!0,K.filters=w[0],ee(()=>f=!1)),u.$set(K)},i(w){d||(p(c,w),p(m),p(b),p(C,w),p(u.$$.fragment,w),d=!0)},o(w){$(c,w),$(m),$(b),$(C,w),$(u.$$.fragment,w),d=!1},d(w){w&&g(e),c&&c.d(w),m&&m.d(),b&&b.d(),C&&C.d(w),E(u)}}}const ue="filter-context";function Gr(r,e,l){let t,n,o,i,a,s,u,f,d;q(r,Re,D=>l(14,f=D)),q(r,Hl,D=>l(21,d=D));let{$$slots:_={},$$scope:c}=e,{filters:m}=e,{options:b=d}=e,{showFilter:h=!0}=e,{refresh:C}=e;const F=Ne(Oe());q(r,F,D=>l(13,u=D));const T=Ne(null);q(r,T,D=>l(12,s=D));const w=Ne("");q(r,w,D=>l(20,a=D)),sl(ue,{filter:F,activeQueryIndex:T,handleSubmit:K,focusedElementId:w,resetFilter:me});function O(){const D=jl(ql(m));D&&D===o?C():Gl({url:f.url,parameter:"query",value:D,allowEmpty:!0,clearParameters:[Wl]})}function K(){s!==null?(l(0,m[s]=u,m),Y(T,s=null,s)):l(0,m=[...m,u]),F.set(Oe()),O()}function M(){l(0,m=[]),O()}function oe(){s!==null&&Y(w,a=wl({attribute:t,type:n}),a)}function G(){if(a){const D=document.getElementById(a);D&&(D.focus(),D instanceof HTMLButtonElement&&D.click())}}Ul(()=>{G()});function me(){T.set(null),F.set(Oe())}function ve(D){D.key==="Escape"&&!Ae({attribute:t,type:n})&&me()}function Te(D){m=D,l(0,m)}function Ie(D){m=D,l(0,m)}return r.$$set=D=>{"filters"in D&&l(0,m=D.filters),"options"in D&&l(1,b=D.options),"showFilter"in D&&l(2,h=D.showFilter),"refresh"in D&&l(11,C=D.refresh),"$$scope"in D&&l(18,c=D.$$scope)},r.$$.update=()=>{r.$$.dirty&8192&&l(3,{attribute:t,type:n}=u,t,(l(4,n),l(13,u))),r.$$.dirty&16384&&(o=f.url.searchParams.get("query")),r.$$.dirty&13&&l(5,i=h&&m.length&&!t),r.$$.dirty&4096&&oe(),r.$$.dirty&4&&!h&&me()},[m,b,h,t,n,i,F,T,w,M,ve,C,s,u,f,_,Te,Ie,c]}class po extends ne{constructor(e){super(),re(this,e,Gr,qr,le,{filters:0,options:1,showFilter:2,refresh:11})}}const Yr=r=>({}),yt=r=>({});function Kt(r){let e,l;const t=r[4].subtitle,n=_e(t,r,r[3],yt);return{c(){e=H("p"),n&&n.c(),this.h()},l(o){e=y(o,"P",{class:!0});var i=Q(e);n&&n.l(i),i.forEach(g),this.h()},h(){A(e,"class","text-xs font-normal")},m(o,i){k(o,e,i),n&&n.m(e,null),l=!0},p(o,i){n&&n.p&&(!l||i&8)&&de(n,t,o,o[3],l?$e(t,o[3],i,Yr):pe(o[3]),yt)},i(o){l||(p(n,o),l=!0)},o(o){$(n,o),l=!1},d(o){o&&g(e),n&&n.d(o)}}}function Xr(r){let e,l,t,n,o,i,a,s=r[2].subtitle&&Kt(r);const u=r[4].default,f=_e(u,r,r[3],null);return{c(){e=H("div"),l=H("h2"),t=P(r[0]),n=B(),s&&s.c(),o=B(),i=H("div"),f&&f.c(),this.h()},l(d){e=y(d,"DIV",{class:!0});var _=Q(e);l=y(_,"H2",{});var c=Q(l);t=V(c,r[0]),c.forEach(g),n=N(_),s&&s.l(_),_.forEach(g),o=N(d),i=y(d,"DIV",{class:!0});var m=Q(i);f&&f.l(m),m.forEach(g),this.h()},h(){A(e,"class","title-wrapper "+r[1]+" svelte-549248"),A(i,"class","content "+r[1]+" svelte-549248")},m(d,_){k(d,e,_),U(e,l),U(l,t),U(e,n),s&&s.m(e,null),k(d,o,_),k(d,i,_),f&&f.m(i,null),a=!0},p(d,[_]){(!a||_&1)&&X(t,d[0]),d[2].subtitle?s?(s.p(d,_),_&4&&p(s,1)):(s=Kt(d),s.c(),p(s,1),s.m(e,null)):s&&(z(),$(s,1,1,()=>{s=null}),j()),f&&f.p&&(!a||_&8)&&de(f,u,d,d[3],a?$e(u,d[3],_,null):pe(d[3]),null)},i(d){a||(p(s),p(f,d),a=!0)},o(d){$(s),$(f,d),a=!1},d(d){d&&(g(e),g(o),g(i)),s&&s.d(),f&&f.d(d)}}}function Jr(r,e,l){let{$$slots:t={},$$scope:n}=e;const o=Ml(t);let{title:i=""}=e,a=ae("drawer-pos");return r.$$set=s=>{"title"in s&&l(0,i=s.title),"$$scope"in s&&l(3,n=s.$$scope)},[i,a,o,n,t]}class Zr extends ne{constructor(e){super(),re(this,e,Jr,Xr,le,{title:0})}}const xr=r=>({}),Qt=r=>({});function zt(r){let e,l,t,n,o,i,a,s,u,f;const d=r[10]["close-button"],_=_e(d,r,r[9],Qt),c=_||ei(r),m=r[10].default,b=_e(m,r,r[9],null);return{c(){e=H("aside"),l=H("div"),t=H("div"),c&&c.c(),n=B(),b&&b.c(),this.h()},l(h){e=y(h,"ASIDE",{id:!0,class:!0,role:!0});var C=Q(e);l=y(C,"DIV",{class:!0});var F=Q(l);t=y(F,"DIV",{class:!0});var T=Q(t);c&&c.l(T),T.forEach(g),n=N(F),b&&b.l(F),F.forEach(g),C.forEach(g),this.h()},h(){A(t,"class","absolute right-2 top-2"),A(l,"class","relative h-full"),ce(l,"pt-10",r[6]),A(e,"id",r[4]),A(e,"class",o=qe("surface-primary fixed z-[55] h-auto overflow-y-auto border-subtle text-primary",r[1]==="bottom"&&"bottom-0 left-0 right-0 border-t",r[1]==="right"&&"bottom-0 right-0 top-0 h-full rounded-bl-lg rounded-tr-none border-l",r[2]&&"bg-black text-off-white",r[7])),A(e,"role","region"),ce(e,"max-w-fit",r[1]==="right")},m(h,C){k(h,e,C),U(e,l),U(l,t),c&&c.m(t,null),U(l,n),b&&b.m(l,null),s=!0,u||(f=[pt(Yl.call(null,e,!0)),pt(i=Xl.call(null,e,r[3]))],u=!0)},p(h,C){r=h,_?_.p&&(!s||C&512)&&de(_,d,r,r[9],s?$e(d,r[9],C,xr):pe(r[9]),Qt):c&&c.p&&(!s||C&45)&&c.p(r,s?C:-1),b&&b.p&&(!s||C&512)&&de(b,m,r,r[9],s?$e(m,r[9],C,null):pe(r[9]),null),(!s||C&64)&&ce(l,"pt-10",r[6]),(!s||C&16)&&A(e,"id",r[4]),(!s||C&134&&o!==(o=qe("surface-primary fixed z-[55] h-auto overflow-y-auto border-subtle text-primary",r[1]==="bottom"&&"bottom-0 left-0 right-0 border-t",r[1]==="right"&&"bottom-0 right-0 top-0 h-full rounded-bl-lg rounded-tr-none border-l",r[2]&&"bg-black text-off-white",r[7])))&&A(e,"class",o),i&&al(i.update)&&C&8&&i.update.call(null,r[3]),(!s||C&134)&&ce(e,"max-w-fit",r[1]==="right")},i(h){s||(p(c,h),p(b,h),h&&we(()=>{s&&(a||(a=bt(e,he,r[8],!0)),a.run(1))}),s=!0)},o(h){$(c,h),$(b,h),h&&(a||(a=bt(e,he,r[8],!1)),a.run(0)),s=!1},d(h){h&&g(e),c&&c.d(h),b&&b.d(h),h&&a&&a.end(),u=!1,ul(f)}}}function ei(r){let e,l;return e=new ge({props:{"data-testid":"drawer-close-button",label:r[5],class:qe(r[2]?"text-white":"text-primary","hover:text-primary"),icon:"close","aria-expanded":r[0],"aria-controls":"navigation-drawer"}}),e.$on("click",function(){al(r[3])&&r[3].apply(this,arguments)}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){r=t;const o={};n&32&&(o.label=r[5]),n&4&&(o.class=qe(r[2]?"text-white":"text-primary","hover:text-primary")),n&1&&(o["aria-expanded"]=r[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ti(r){let e,l,t=r[0]&&zt(r);return{c(){t&&t.c(),e=W()},l(n){t&&t.l(n),e=W()},m(n,o){t&&t.m(n,o),k(n,e,o),l=!0},p(n,[o]){n[0]?t?(t.p(n,o),o&1&&p(t,1)):(t=zt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),$(t,1,1,()=>{t=null}),j())},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){n&&g(e),t&&t.d(n)}}}function li(r,e,l){let t,{$$slots:n={},$$scope:o}=e,{open:i=!1}=e,{position:a="bottom"}=e,{dark:s=!0}=e,{onClick:u}=e,{id:f="navigation-drawer"}=e,{closeButtonLabel:d}=e,{closePadding:_=!0}=e,{class:c=""}=e;return r.$$set=m=>{"open"in m&&l(0,i=m.open),"position"in m&&l(1,a=m.position),"dark"in m&&l(2,s=m.dark),"onClick"in m&&l(3,u=m.onClick),"id"in m&&l(4,f=m.id),"closeButtonLabel"in m&&l(5,d=m.closeButtonLabel),"closePadding"in m&&l(6,_=m.closePadding),"class"in m&&l(7,c=m.class),"$$scope"in m&&l(9,o=m.$$scope)},r.$$.update=()=>{r.$$.dirty&2&&l(8,t={duration:500,...a==="bottom"?{y:200}:{x:200}}),r.$$.dirty&2&&sl("drawer-pos",a)},[i,a,s,u,f,d,_,c,t,o,n]}class ni extends ne{constructor(e){super(),re(this,e,li,ti,le,{open:0,position:1,dark:2,onClick:3,id:4,closeButtonLabel:5,closePadding:6,class:7})}}const ri=2,Ce={WORKFLOWS:"workflows",SCHEDULES:"schedules"},Ue=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],jt=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1},{label:"Scheduled By ID",pinned:!1},{label:"Scheduled Start Time",pinned:!1}],mt=[{label:"Status",pinned:!1},{label:"Schedule ID",pinned:!1},{label:"Workflow Type",pinned:!1},{label:"Recent Runs",pinned:!1},{label:"Upcoming Runs",pinned:!1},{label:"Schedule Spec",pinned:!1}],vl=r=>r.label!=="Parent Workflow ID",ii=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(vl):r=Ue}catch{r=Ue}return r},lt=ft("namespace-workflow-table-columns",{}),nt=ft("namespace-schedules-table-columns",{}),Ze=Ge([fn,Re,lt,nt],([r,e,l,t])=>{const n={},o=(u,f,d,_)=>{var m;if(!((m=u==null?void 0:u[f])!=null&&m.length))return u[f]=[...d],u[f];const c=u[f].filter(vl);return c.length!==u[f].length&&(u[f]=c,_(u)),u[f]},i=u=>({workflows:o(l,u,ii(),f=>lt.set(f)),schedules:o(t,u,mt,f=>nt.set(f))}),a=(r==null?void 0:r.reduce((u,{namespaceInfo:{name:f}})=>({...u,[f]:i(f)}),n))??{},{namespace:s}=e.params;return a[s]?a:{...a,[s]:i(s)}});ft("workflow-table-pinned-columns-width");const $o=(r,e)=>Ge(Ze,l=>{var t;return[...Ue,...(t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud?jt.filter(n=>n.label!=="Parent Namespace"):jt].filter(n=>{var o,i;return!((i=(o=l[r])==null?void 0:o.workflows)!=null&&i.some(a=>a.label===n.label))})}),bo=r=>Ge(Ze,e=>[...mt].filter(l=>{var t,n;return!((n=(t=e[r])==null?void 0:t.schedules)!=null&&n.some(o=>o.label===l.label))})),oi=(r,e=Ce.WORKFLOWS)=>Ge([yl,Ze],([l,t])=>Object.keys(l).filter(n=>{var o,i;return!((i=(o=t[r])==null?void 0:o[e])!=null&&i.some(a=>a.label===n))}).map(n=>({label:n,pinned:!1}))),si=r=>{switch(r){case Ce.WORKFLOWS:return Ue;case Ce.SCHEDULES:return mt}},ai=(r,e)=>{const l=si(r.payload.table);switch(r.type){case"CONFIGURABLE_COLUMN.ADD":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l;return{...e,[n]:[...o,{label:t,pinned:!1}]}}case"CONFIGURABLE_COLUMN.REMOVE":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l;return{...e,[n]:o.filter(({label:i})=>i!==t)}}case"CONFIGURABLE_COLUMN.PIN":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l,i=o.findIndex(({label:f})=>f===t),a=o[i].pinned;let s=-1;for(let f=o.length-1;f>=0;f--)if(o[f].pinned){s=f;break}const u=[...o];return u[i].pinned=!a,i>s&&!a?u.splice(s+1,0,u.splice(i,1)[0]):i=0;f--)if(i[f].pinned){s=f;break}const u=[...i];return n<=s&&!a?u[t].pinned=!0:n>s&&a&&(u[t].pinned=!1),u.splice(n,0,u.splice(t,1)[0]),{...e,[o]:u.map((f,d)=>d>ri-1?{...f,pinned:!1}:f)}}default:return e}},ui=r=>{switch(r){case Ce.WORKFLOWS:return lt;case Ce.SCHEDULES:return nt}},_t=r=>{ui(r.payload.table).update(l=>ai(r,l))},qt=(r,e,l)=>{_t({type:"CONFIGURABLE_COLUMN.ADD",payload:{label:r,namespace:e,table:l}})},fi=(r,e,l)=>{_t({type:"CONFIGURABLE_COLUMN.REMOVE",payload:{label:r,namespace:e,table:l}})},ci=(r,e,l,t)=>{_t({type:"CONFIGURABLE_COLUMN.MOVE",payload:{from:r,to:e,namespace:l,table:t}})};function Gt(r){let e,l,t,n,o;return l=new ge({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new ge({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=Q(e);I(l.$$.fragment,a),t=N(a),I(n.$$.fragment,a),a.forEach(g),this.h()},h(){A(e,"class","flex items-center")},m(i,a){k(i,e,a),L(l,e,null),U(e,t),L(n,e,null),o=!0},p(i,a){const s={};a&32&&(s.disabled=i[5]===0),a&2&&(s["data-testid"]="orderable-list-item-"+i[1]+"-move-up-button"),a&128&&(s.label=i[7]),l.$set(s);const u={};a&96&&(u.disabled=i[5]===i[6]-1),a&2&&(u["data-testid"]="orderable-list-item-"+i[1]+"-move-down-button"),a&256&&(u.label=i[8]),n.$set(u)},i(i){o||(p(l.$$.fragment,i),p(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),E(l),E(n)}}}function Yt(r){let e,l,t,n;const o=[_i,mi],i=[];function a(s,u){return s[3]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){let f=e;e=a(s),e===f?i[e].p(s,u):(z(),$(i[f],1,1,()=>{i[f]=null}),j(),l=i[e],l?l.p(s,u):(l=i[e]=o[e](s),l.c()),p(l,1),l.m(t.parentNode,t))},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function mi(r){let e,l;return e=new ge({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function _i(r){let e,l;return e=new ge({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Xt(r){let e,l,t,n;const o=[pi,di],i=[];function a(s,u){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){let f=e;e=a(s),e===f?i[e].p(s,u):(z(),$(i[f],1,1,()=>{i[f]=null}),j(),l=i[e],l?l.p(s,u):(l=i[e]=o[e](s),l.c()),p(l,1),l.m(t.parentNode,t))},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function di(r){let e,l;return e=new ge({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function pi(r){let e,l;return e=new ge({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function $i(r){let e,l,t,n,o,i,a,s,u,f,d,_=!r[0]&&!r[4]&&Gt(r),c=!r[0]&&!r[4]&&r[5]<=r[2]-1&&Yt(r),m=!r[4]&&Xt(r);return{c(){e=H("li"),l=H("div"),_&&_.c(),t=B(),n=P(r[1]),o=B(),c&&c.c(),i=B(),m&&m.c(),this.h()},l(b){e=y(b,"LI",{draggable:!0,class:!0,"data-testid":!0});var h=Q(e);l=y(h,"DIV",{class:!0});var C=Q(l);_&&_.l(C),t=N(C),n=V(C,r[1]),o=N(C),c&&c.l(C),C.forEach(g),i=N(h),m&&m.l(h),h.forEach(g),this.h()},h(){A(l,"class","flex flex-row items-center gap-2"),A(e,"draggable",a=!r[0]&&!r[4]),A(e,"class","orderable-item group svelte-1dcsc6y"),A(e,"data-testid",s="orderable-list-item-"+r[1]),ce(e,"readonly",r[4])},m(b,h){k(b,e,h),U(e,l),_&&_.m(l,null),U(l,t),U(l,n),U(l,o),c&&c.m(l,null),U(e,i),m&&m.m(e,null),u=!0,f||(d=[Le(e,"dragstart",r[25]),Le(e,"drop",Ke(r[26])),Le(e,"dragenter",et(Ke(r[16]))),Le(e,"dragleave",et(Ke(r[17]))),Le(e,"dragover",et(Ke(r[18])))],f=!0)},p(b,[h]){!b[0]&&!b[4]?_?(_.p(b,h),h&17&&p(_,1)):(_=Gt(b),_.c(),p(_,1),_.m(l,t)):_&&(z(),$(_,1,1,()=>{_=null}),j()),(!u||h&2)&&X(n,b[1]),!b[0]&&!b[4]&&b[5]<=b[2]-1?c?(c.p(b,h),h&53&&p(c,1)):(c=Yt(b),c.c(),p(c,1),c.m(l,null)):c&&(z(),$(c,1,1,()=>{c=null}),j()),b[4]?m&&(z(),$(m,1,1,()=>{m=null}),j()):m?(m.p(b,h),h&16&&p(m,1)):(m=Xt(b),m.c(),p(m,1),m.m(e,null)),(!u||h&17&&a!==(a=!b[0]&&!b[4]))&&A(e,"draggable",a),(!u||h&2&&s!==(s="orderable-list-item-"+b[1]))&&A(e,"data-testid",s),(!u||h&16)&&ce(e,"readonly",b[4])},i(b){u||(p(_),p(c),p(m),u=!0)},o(b){$(_),$(c),$(m),u=!1},d(b){b&&g(e),_&&_.d(),c&&c.d(),m&&m.d(),f=!1,ul(d)}}}function bi(r,e,l){const t=Rl();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:i=void 0}=e,{pinned:a=!1}=e,{readonly:s=!1}=e,{index:u=0}=e,{totalItems:f=0}=e,{moveUpButtonLabel:d=""}=e,{moveDownButtonLabel:_=""}=e,{pinButtonLabel:c=""}=e,{unpinButtonLabel:m=""}=e,{addButtonLabel:b=""}=e,{removeButtonLabel:h=""}=e;const C=(D,Be)=>{n||s||(D.dataTransfer.setData("text/plain",Be.toString()),D.dataTransfer.dropEffect="move")},F=(D,Be)=>{D.currentTarget.classList.remove("dragging-over");const xe=parseInt(D.dataTransfer.getData("text/plain"));t("moveItem",{from:xe,to:Be})},T=D=>D.currentTarget.classList.add("dragging-over"),w=D=>D.currentTarget.classList.remove("dragging-over");function O(D){Pl.call(this,r,D)}const K=()=>t("moveItem",{from:u,to:u-1}),M=()=>t("moveItem",{from:u,to:u+1}),oe=()=>t("pinItem"),G=()=>t("pinItem"),me=()=>t("addItem"),ve=()=>t("removeItem"),Te=D=>C(D,u),Ie=D=>F(D,u);return r.$$set=D=>{"static"in D&&l(0,n=D.static),"label"in D&&l(1,o=D.label),"maxPinnedItems"in D&&l(2,i=D.maxPinnedItems),"pinned"in D&&l(3,a=D.pinned),"readonly"in D&&l(4,s=D.readonly),"index"in D&&l(5,u=D.index),"totalItems"in D&&l(6,f=D.totalItems),"moveUpButtonLabel"in D&&l(7,d=D.moveUpButtonLabel),"moveDownButtonLabel"in D&&l(8,_=D.moveDownButtonLabel),"pinButtonLabel"in D&&l(9,c=D.pinButtonLabel),"unpinButtonLabel"in D&&l(10,m=D.unpinButtonLabel),"addButtonLabel"in D&&l(11,b=D.addButtonLabel),"removeButtonLabel"in D&&l(12,h=D.removeButtonLabel)},[n,o,i,a,s,u,f,d,_,c,m,b,h,t,C,F,T,w,O,K,M,oe,G,me,ve,Te,Ie]}class ke extends ne{constructor(e){super(),re(this,e,bi,$i,le,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const gi=r=>({}),Jt=r=>({});function hi(r){let e;return{c(){e=P("Items")},l(l){e=V(l,"Items")},m(l,t){k(l,e,t)},d(l){l&&g(e)}}}function wi(r){let e,l;return e=new ke({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ki(r){let e,l,t,n,o;const i=r[1].heading,a=_e(i,r,r[0],Jt),s=a||hi(),u=r[1].default,f=_e(u,r,r[0],null),d=f||wi();return{c(){e=H("div"),l=H("h5"),s&&s.c(),t=B(),n=H("ol"),d&&d.c(),this.h()},l(_){e=y(_,"DIV",{class:!0});var c=Q(e);l=y(c,"H5",{});var m=Q(l);s&&s.l(m),m.forEach(g),t=N(c),n=y(c,"OL",{class:!0});var b=Q(n);d&&d.l(b),b.forEach(g),c.forEach(g),this.h()},h(){A(n,"class","orderable-list svelte-156atv5"),A(e,"class","orderable-section svelte-156atv5")},m(_,c){k(_,e,c),U(e,l),s&&s.m(l,null),U(e,t),U(e,n),d&&d.m(n,null),o=!0},p(_,[c]){a&&a.p&&(!o||c&1)&&de(a,i,_,_[0],o?$e(i,_[0],c,gi):pe(_[0]),Jt),f&&f.p&&(!o||c&1)&&de(f,u,_,_[0],o?$e(u,_[0],c,null):pe(_[0]),null)},i(_){o||(p(s,_),p(d,_),o=!0)},o(_){$(s,_),$(d,_),o=!1},d(_){_&&g(e),s&&s.d(_),d&&d.d(_)}}}function vi(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let tt=class extends ne{constructor(e){super(),re(this,e,vi,ki,le,{})}};function Zt(r,e,l){const t=r.slice();return t[16]=e[l].label,t}function xt(r,e,l){const t=r.slice();return t[16]=e[l].label,t}function el(r,e,l){const t=r.slice();return t[16]=e[l].label,t[22]=l,t}function tl(r){let e,l;return e=new ke({props:{readonly:!0,label:S("workflows.no-headings-in-view")}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ll(r,e){let l,t,n;function o(){return e[13](e[16])}return t=new ke({props:{index:e[22],label:e[16],totalItems:e[5].length,addButtonLabel:S("workflows.add-column-label",{column:e[16]}),removeButtonLabel:S("workflows.remove-column-label",{column:e[16]}),moveUpButtonLabel:S("workflows.move-column-up-label",{column:e[16]}),moveDownButtonLabel:S("workflows.move-column-down-label",{column:e[16]}),pinButtonLabel:S("workflows.pin-column-label",{column:e[16]}),unpinButtonLabel:S("workflows.unpin-column-label",{column:e[16]})}}),t.$on("moveItem",e[12]),t.$on("removeItem",o),{key:r,first:null,c(){l=W(),v(t.$$.fragment),this.h()},l(i){l=W(),I(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){k(i,l,a),L(t,i,a),n=!0},p(i,a){e=i;const s={};a&32&&(s.index=e[22]),a&32&&(s.label=e[16]),a&32&&(s.totalItems=e[5].length),a&32&&(s.addButtonLabel=S("workflows.add-column-label",{column:e[16]})),a&32&&(s.removeButtonLabel=S("workflows.remove-column-label",{column:e[16]})),a&32&&(s.moveUpButtonLabel=S("workflows.move-column-up-label",{column:e[16]})),a&32&&(s.moveDownButtonLabel=S("workflows.move-column-down-label",{column:e[16]})),a&32&&(s.pinButtonLabel=S("workflows.pin-column-label",{column:e[16]})),a&32&&(s.unpinButtonLabel=S("workflows.unpin-column-label",{column:e[16]})),t.$set(s)},i(i){n||(p(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),E(t,i)}}}function Ii(r){let e=[],l=new Map,t,n,o=Z(r[5]);const i=s=>s[16];for(let s=0;s{a=null}),j()):(a=tl(),a.c(),p(a,1),a.m(t.parentNode,t)))},i(s){if(!n){for(let u=0;u$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=nl()),{c(){for(let a=0;a{i=null}),j()):(i=nl(),i.c(),p(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=il()),{c(){for(let a=0;a{i=null}),j()):(i=il(),i.c(),p(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s(u(),u=$t(C,M=>l(6,s=M)),C),d,_=J,c=()=>(_(),_=$t(o,M=>l(7,d=M)),o);q(r,Ze,M=>l(10,i=M)),q(r,Re,M=>l(11,a=M)),r.$$.on_destroy.push(()=>u()),r.$$.on_destroy.push(()=>_());var m,b;let{table:h}=e,{availableColumns:C}=e;f();let{type:F}=e;const T=M=>ci(M.detail.from,M.detail.to,t,h),w=M=>fi(M,t,h),O=M=>qt(M,t,h),K=M=>qt(M,t,h);return r.$$set=M=>{"table"in M&&l(0,h=M.table),"availableColumns"in M&&f(l(1,C=M.availableColumns)),"type"in M&&l(2,F=M.type)},r.$$.update=()=>{r.$$.dirty&2048&&l(3,t=a.params.namespace),r.$$.dirty&1801&&l(5,n=l(9,b=l(8,m=i==null?void 0:i[t])===null||m===void 0?void 0:m[h])!==null&&b!==void 0?b:[]),r.$$.dirty&9&&c(l(4,o=oi(t,h)))},[h,C,F,t,o,n,s,d,m,b,i,a,T,w,O,K]}class Ni extends ne{constructor(e){super(),re(this,e,Bi,Ti,le,{table:0,availableColumns:1,type:2})}}function Oi(r){let e,l;return e=new Ni({props:{availableColumns:r[1],table:r[2],type:r[3]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.availableColumns=t[1]),n&4&&(o.table=t[2]),n&8&&(o.type=t[3]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Fi(r){let e,l,t,n,o,i,a,s,u,f,d,_;return l=new Fe({props:{class:"inline",name:"add"}}),n=new Fe({props:{class:"inline",name:"chevron-selector-vertical"}}),i=new Fe({props:{class:"inline",name:"hyphen"}}),{c(){e=P("Add ("),v(l.$$.fragment),t=P("), re-arrange ("),v(n.$$.fragment),o=P("), and remove ("),v(i.$$.fragment),a=P("), "),s=P(r[3]),u=P(` Headings to +import{C as Me,s as le,L as ae,c as q,b as B,d as N,i as k,f as g,w as Y,t as P,l as V,q as X,x as W,y as De,v as J,a as _e,u as de,g as pe,e as $e,h as H,j as y,k as Q,m as A,N as x,n as U,O as ee,H as ce,a9 as we,a7 as sl,a4 as Ul,p as Le,K as Ml,a0 as pt,Y as al,G as ul,X as Ke,F as et,r as Rl,B as Pl,o as rt,P as $t}from"./scheduler.C46pS-76.js";import{S as ne,i as re,c as v,a as I,m as L,t as p,b as $,d as E,g as z,e as j,f as te,h as Se,j as bt}from"./index.dOVbn71B.js";import{f as Vl,a as he}from"./index.mPGqfhEB.js";import{w as Ne,d as Ge}from"./entry.kylZibtV.js";import{p as Re}from"./stores.Ds4o9nwd.js";import{B as it}from"./button.hs88FdV4.js";import{t as S}from"./translate.BBe5dcco.js";import{c as Wl}from"./pagination.B2FxfgZG.js";import{s as Pe,b as Hl,c as yl}from"./search-attributes.Dmice2E5.js";import{d as fl,b as Kl,u as cl,e as Oe,i as Ql,f as gt,T as zl,t as jl,c as ql}from"./translate.9wzy45oZ.js";import{S as ie,D as ot,T as st}from"./time-picker.G0x2sfcZ.js";import{u as Gl}from"./update-query-parameters.DTvdkkGj.js";import{e as Z,u as at,o as ut}from"./each.C6O0oV7R.js";import{M as Ve}from"./menu-button.DYcE3c8N.js";import{M as We,a as He,d as se,f as Yl,e as Xl}from"./menu.B3Snjx4c.js";import{l as ze,m as ht}from"./has.BWrERxPV.js";import{I as ge}from"./icon-button.BoA3mGH0.js";import{t as ml,a as Jl,b as Zl,d as wt,r as xl,f as je}from"./time-format.BLKgLEx9.js";import{I as Fe}from"./icon.CfkHLDdJ.js";import{I as Ye}from"./input.Dizl7Mgk.js";import{M as Xe,C as en}from"./checkbox.CZ5w22eC.js";import{a as _l}from"./radio-input.OzdV2p8V.js";import{S as tn,O as ln}from"./option.BuKObSE0.js";import{i as nn,z as rn}from"./workflows.Cse8qlOg.js";import{r as dl,b as pl,s as Qe,d as on,q as sn}from"./format-time.6TuExJAg.js";import{W as $l}from"./workflow-status.4hwv3weu.js";import{C as an}from"./chip.jHqj-PnK.js";import{N as un}from"./number-input.DL-aHAg2.js";import{t as qe}from"./tw-merge.Ds6tgvmq.js";import{n as fn}from"./namespaces.DEm0M_ie.js";import{p as ft}from"./persist-store.DeOEcwHN.js";var cn=6e4;function mn(r,e){dl(2,arguments);var l=pl(e);return fl(r,l*cn)}function _n(r,e){dl(2,arguments);var l=pl(e);return fl(r,l*1e3)}function Ee(r){return r==="ExecutionStatus"}function Ae({attribute:r,type:e},l=Pe){if(Ee(r))return!1;if(e===ie.KEYWORD)return!0;const t=Me(l)[r];return[ie.KEYWORD,ie.TEXT,"String"].includes(t)}function bl({attribute:r,type:e},l=Pe){return e===ie.KEYWORDLIST?!0:Me(l)[r]===ie.KEYWORDLIST}function gl({attribute:r,type:e},l=Pe){if(e===ie.INT)return!0;const t=Me(l)[r];return t===ie.INT||t===ie.DOUBLE}function dn(r){return["ExecutionDuration"].includes(r)}function ct({attribute:r,type:e},l=Pe){return e===ie.DATETIME?!0:Me(l)[r]===ie.DATETIME}function hl({attribute:r,type:e},l=Pe){return e===ie.BOOL?!0:Me(l)[r]===ie.BOOL}function wl({attribute:r,type:e}){return Ee(r)?"status-filter":Ae({attribute:r,type:e})||gl({attribute:r,type:e})||ct({attribute:r,type:e})?"conditional-menu-button":bl({attribute:r,type:e})?"list-filter":hl({attribute:r,type:e})?"boolean-filter":""}function kt(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function pn(r){let e;return{c(){e=P(r[1])},l(l){e=V(l,r[1])},m(l,t){k(l,e,t)},p(l,t){t&2&&X(e,l[1])},d(l){l&&g(e)}}}function $n(r){let e=r[9]+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p:J,d(n){n&&(g(l),g(t))}}}function vt(r){let e,l;function t(){return r[7](r[8])}return e=new se({props:{class:"text-nowrap",$$slots:{default:[$n]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&4096&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function bn(r){let e,l,t=Z(r[4]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(0,o=d));const u=[{value:"true",label:S("common.true")},{value:"false",label:S("common.false")},{value:"is",label:S("common.is-null")},{value:"is not",label:S("common.is-not-null")}],f=d=>{ze(d)?(Y(a,o.conditional=d,o),Y(a,o.value=null,o)):(Y(a,o.conditional="=",o),Y(a,o.value=d,o)),s()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,i=u.find(d=>d.value===o.value||d.value===o.conditional))!==null&&i!==void 0?i:u[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,a,s,u,i,t,f]}class kn extends ne{constructor(e){super(),re(this,e,wn,hn,le,{})}}function vn(r){let e,l;return e=new ge({props:{label:S("common.close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function In(r){const{resetFilter:e}=ae(ue);return[e]}class ye extends ne{constructor(e){super(),re(this,e,In,vn,le,{})}}function It(r,e,l){const t=r.slice();return t[22]=e[l].value,t[23]=e[l].label,t}function Ln(r){let e;return{c(){e=P(r[5])},l(l){e=V(l,r[5])},m(l,t){k(l,e,t)},p(l,t){t&32&&X(e,l[5])},d(l){l&&g(e)}}}function En(r){let e=(r[23]??r[22])+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p:J,d(n){n&&(g(l),g(t))}}}function Lt(r){let e,l;function t(){return r[17](r[22])}return e=new se({props:{$$slots:{default:[En]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&262144&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function Cn(r){let e,l,t=Z(r[10]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;i{o=null}),j()):o?(o.p(i,a),a&64&&p(o,1)):(o=Et(i),o.c(),p(o,1),o.m(t.parentNode,t))},i(i){n||(p(e.$$.fragment,i),p(o),n=!0)},o(i){$(e.$$.fragment,i),$(o),n=!1},d(i){i&&(g(l),g(t)),E(e,i),o&&o.d(i)}}}function Tn(r,e,l){let t,n,o,i,a,s,{$$slots:u={},$$scope:f}=e;var d;const{filter:_,focusedElementId:c,handleSubmit:m}=ae(ue);q(r,_,G=>l(4,a=G)),q(r,c,G=>l(7,s=G));const b=[{value:">"},{value:">="},{value:"="},{value:"!="},{value:"<="},{value:"<"}];let{options:h=b}=e,{disabled:C=!1}=e,{inputId:F}=e,{noBorderLeft:T=!1}=e,{noBorderRight:w=!1}=e,O=[...h,{value:"is",label:S("common.is-null")},{value:"is not",label:S("common.is-not-null")}];function K(){Y(_,a.value=null,a),m()}function M(){t||Y(_,a.conditional=O[0].value,a)}const oe=G=>{Y(_,a.conditional=G,a),Y(c,s=F,s),ze(G)&&K()};return r.$$set=G=>{"options"in G&&l(12,h=G.options),"disabled"in G&&l(0,C=G.disabled),"inputId"in G&&l(1,F=G.inputId),"noBorderLeft"in G&&l(2,T=G.noBorderLeft),"noBorderRight"in G&&l(3,w=G.noBorderRight),"$$scope"in G&&l(18,f=G.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(14,t=O.find(G=>G.value===a.conditional)),r.$$.dirty&16384&&M(),r.$$.dirty&16&&l(6,n=ze(a.conditional)),r.$$.dirty&16384&&l(15,o=t??O[0]),r.$$.dirty&40960&&l(5,i=l(13,d=o==null?void 0:o.label)!==null&&d!==void 0?d:o==null?void 0:o.value)},[C,F,T,w,a,i,n,s,_,c,O,K,h,d,t,o,u,oe,f]}class Je extends ne{constructor(e){super(),re(this,e,Tn,Sn,le,{options:12,disabled:0,inputId:1,noBorderLeft:2,noBorderRight:3})}}function Ct(r,e,l){const t=r.slice();return t[40]=e[l],t}function Bn(r){let e=S("workflows.select-time")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function Nn(r){let e,l,t,n,o,i;return e=new se({props:{$$slots:{default:[Un]},$$scope:{ctx:r}}}),e.$on("click",r[33]),t=new Xe({}),o=new se({props:{$$slots:{default:[Mn]},$$scope:{ctx:r}}}),o.$on("click",r[37]),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment),n=B(),v(o.$$.fragment)},l(a){I(e.$$.fragment,a),l=N(a),I(t.$$.fragment,a),n=N(a),I(o.$$.fragment,a)},m(a,s){L(e,a,s),k(a,l,s),L(t,a,s),k(a,n,s),L(o,a,s),i=!0},p(a,s){const u={};s[0]&2053|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);const f={};s[0]&236|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),o.$set(f)},i(a){i||(p(e.$$.fragment,a),p(t.$$.fragment,a),p(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){a&&(g(l),g(n)),E(e,a),E(t,a),E(o,a)}}}function On(r){let e,l,t,n,o,i;return e=new se({props:{$$slots:{default:[Rn]},$$scope:{ctx:r}}}),t=new Xe({}),o=new se({props:{$$slots:{default:[Pn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment),n=B(),v(o.$$.fragment)},l(a){I(e.$$.fragment,a),l=N(a),I(t.$$.fragment,a),n=N(a),I(o.$$.fragment,a)},m(a,s){L(e,a,s),k(a,l,s),L(t,a,s),k(a,n,s),L(o,a,s),i=!0},p(a,s){const u={};s[0]&232|s[1]&4096&&(u.$$scope={dirty:s,ctx:a}),e.$set(u);const f={};s[0]&1808|s[1]&4096&&(f.$$scope={dirty:s,ctx:a}),o.$set(f)},i(a){i||(p(e.$$.fragment,a),p(t.$$.fragment,a),p(o.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),$(o.$$.fragment,a),i=!1},d(a){a&&(g(l),g(n)),E(e,a),E(t,a),E(o,a)}}}function Fn(r){let e=r[40]+"",l,t,n=S("common.ago")+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p:J,d(i){i&&(g(l),g(t),g(o))}}}function Dt(r){let e,l;return e=new ln({props:{value:r[40],$$slots:{default:[Fn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function An(r){let e,l,t=Z(r[15]),n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;ite(o,"value",d));function c(b){r[32](b)}let m={id:"relative-datetime-unit-input",label:S("common.time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[An]},$$scope:{ctx:r}};return r[11]!==void 0&&(m.value=r[11]),s=new tn({props:m}),x.push(()=>te(s,"value",c)),{c(){e=H("div"),v(l.$$.fragment),t=B(),n=H("div"),v(o.$$.fragment),a=B(),v(s.$$.fragment),this.h()},l(b){e=y(b,"DIV",{class:!0});var h=Q(e);I(l.$$.fragment,h),t=N(h),n=y(h,"DIV",{class:!0});var C=Q(n);I(o.$$.fragment,C),a=N(C),I(s.$$.fragment,C),C.forEach(g),h.forEach(g),this.h()},h(){A(n,"class","ml-6 flex gap-2 pt-2"),A(e,"class","flex flex-col")},m(b,h){k(b,e,h),L(l,e,null),U(e,t),U(e,n),L(o,n,null),U(n,a),L(s,n,null),f=!0},p(b,h){const C={};h[0]&1&&(C.error=b[20](b[0])),h[0]&4&&(C.disabled=b[2]!=="relative"),!i&&h[0]&1&&(i=!0,C.value=b[0],ee(()=>i=!1)),o.$set(C);const F={};h[0]&4&&(F.disabled=b[2]!=="relative"),h[1]&4096&&(F.$$scope={dirty:h,ctx:b}),!u&&h[0]&2048&&(u=!0,F.value=b[11],ee(()=>u=!1)),s.$set(F)},i(b){f||(p(l.$$.fragment,b),p(o.$$.fragment,b),p(s.$$.fragment,b),f=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(s.$$.fragment,b),f=!1},d(b){b&&g(e),E(l),E(o),E(s)}}}function Mn(r){let e,l,t,n,o,i,a,s,u,f,d;l=new _l({props:{label:S("common.absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new ot({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function _(h){r[34](h)}function c(h){r[35](h)}function m(h){r[36](h)}let b={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(b.hour=r[5]),r[6]!==void 0&&(b.minute=r[6]),r[7]!==void 0&&(b.second=r[7]),a=new st({props:b}),x.push(()=>te(a,"hour",_)),x.push(()=>te(a,"minute",c)),x.push(()=>te(a,"second",m)),{c(){e=H("div"),v(l.$$.fragment),t=B(),n=H("div"),v(o.$$.fragment),i=B(),v(a.$$.fragment),this.h()},l(h){e=y(h,"DIV",{class:!0});var C=Q(e);I(l.$$.fragment,C),t=N(C),n=y(C,"DIV",{class:!0});var F=Q(n);I(o.$$.fragment,F),i=N(F),I(a.$$.fragment,F),F.forEach(g),C.forEach(g),this.h()},h(){A(n,"class","ml-6 flex flex-col gap-2"),A(e,"class","flex flex-col gap-2")},m(h,C){k(h,e,C),L(l,e,null),U(e,t),U(e,n),L(o,n,null),U(n,i),L(a,n,null),d=!0},p(h,C){const F={};C[0]&8&&(F.selected=h[3]),C[0]&4&&(F.disabled=h[2]!=="absolute"),o.$set(F);const T={};C[0]&4&&(T.disabled=h[2]!=="absolute"),!s&&C[0]&32&&(s=!0,T.hour=h[5],ee(()=>s=!1)),!u&&C[0]&64&&(u=!0,T.minute=h[6],ee(()=>u=!1)),!f&&C[0]&128&&(f=!0,T.second=h[7],ee(()=>f=!1)),a.$set(T)},i(h){d||(p(l.$$.fragment,h),p(o.$$.fragment,h),p(a.$$.fragment,h),d=!0)},o(h){$(l.$$.fragment,h),$(o.$$.fragment,h),$(a.$$.fragment,h),d=!1},d(h){h&&g(e),E(l),E(o),E(a)}}}function Rn(r){let e,l,t,n,o,i,a,s;l=new ot({props:{label:S("common.start"),selected:r[3],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label")}}),l.$on("datechange",r[17]);function u(c){r[25](c)}function f(c){r[26](c)}function d(c){r[27](c)}let _={twelveHourClock:!1};return r[5]!==void 0&&(_.hour=r[5]),r[6]!==void 0&&(_.minute=r[6]),r[7]!==void 0&&(_.second=r[7]),n=new st({props:_}),x.push(()=>te(n,"hour",u)),x.push(()=>te(n,"minute",f)),x.push(()=>te(n,"second",d)),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(c){e=y(c,"DIV",{class:!0});var m=Q(e);I(l.$$.fragment,m),t=N(m),I(n.$$.fragment,m),m.forEach(g),this.h()},h(){A(e,"class","flex flex-col gap-2")},m(c,m){k(c,e,m),L(l,e,null),U(e,t),L(n,e,null),s=!0},p(c,m){const b={};m[0]&8&&(b.selected=c[3]),l.$set(b);const h={};!o&&m[0]&32&&(o=!0,h.hour=c[5],ee(()=>o=!1)),!i&&m[0]&64&&(i=!0,h.minute=c[6],ee(()=>i=!1)),!a&&m[0]&128&&(a=!0,h.second=c[7],ee(()=>a=!1)),n.$set(h)},i(c){s||(p(l.$$.fragment,c),p(n.$$.fragment,c),s=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),s=!1},d(c){c&&g(e),E(l),E(n)}}}function Pn(r){let e,l,t,n,o,i,a,s;l=new ot({props:{label:S("common.end"),selected:r[4],todayLabel:S("common.today"),closeLabel:S("common.close"),clearLabel:S("common.clear-input-button-label")}}),l.$on("datechange",r[18]);function u(c){r[28](c)}function f(c){r[29](c)}function d(c){r[30](c)}let _={twelveHourClock:!1};return r[8]!==void 0&&(_.hour=r[8]),r[9]!==void 0&&(_.minute=r[9]),r[10]!==void 0&&(_.second=r[10]),n=new st({props:_}),x.push(()=>te(n,"hour",u)),x.push(()=>te(n,"minute",f)),x.push(()=>te(n,"second",d)),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(c){e=y(c,"DIV",{class:!0});var m=Q(e);I(l.$$.fragment,m),t=N(m),I(n.$$.fragment,m),m.forEach(g),this.h()},h(){A(e,"class","flex flex-col gap-2")},m(c,m){k(c,e,m),L(l,e,null),U(e,t),L(n,e,null),s=!0},p(c,m){const b={};m[0]&16&&(b.selected=c[4]),l.$set(b);const h={};!o&&m[0]&256&&(o=!0,h.hour=c[8],ee(()=>o=!1)),!i&&m[0]&512&&(i=!0,h.minute=c[9],ee(()=>i=!1)),!a&&m[0]&1024&&(a=!0,h.second=c[10],ee(()=>a=!1)),n.$set(h)},i(c){s||(p(l.$$.fragment,c),p(n.$$.fragment,c),s=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),s=!1},d(c){c&&g(e),E(l),E(n)}}}function Vn(r){let e=S("common.apply")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function Wn(r){let e,l,t=S("common.based-on-time-preface")+"",n,o,i,a;return e=new Fe({props:{name:"clock","aria-hidden":"true"}}),{c(){v(e.$$.fragment),l=B(),n=P(t),o=B(),i=P(r[13])},l(s){I(e.$$.fragment,s),l=N(s),n=V(s,t),o=N(s),i=V(s,r[13])},m(s,u){L(e,s,u),k(s,l,u),k(s,n,u),k(s,o,u),k(s,i,u),a=!0},p(s,u){(!a||u[0]&8192)&&X(i,s[13])},i(s){a||(p(e.$$.fragment,s),a=!0)},o(s){$(e.$$.fragment,s),a=!1},d(s){s&&(g(l),g(n),g(o),g(i)),E(e,s)}}}function Hn(r){let e,l,t,n,o,i,a,s,u,f;const d=[On,Nn],_=[];function c(m,b){return m[1]?0:1}return e=c(r),l=_[e]=d[e](r),n=new Xe({}),a=new it({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[Vn]},$$scope:{ctx:r}}}),a.$on("click",r[19]),u=new se({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[Wn]},$$scope:{ctx:r}}}),{c(){l.c(),t=B(),v(n.$$.fragment),o=B(),i=H("div"),v(a.$$.fragment),s=B(),v(u.$$.fragment),this.h()},l(m){l.l(m),t=N(m),I(n.$$.fragment,m),o=N(m),i=y(m,"DIV",{class:!0});var b=Q(i);I(a.$$.fragment,b),b.forEach(g),s=N(m),I(u.$$.fragment,m),this.h()},h(){A(i,"class","flex items-center p-2")},m(m,b){_[e].m(m,b),k(m,t,b),L(n,m,b),k(m,o,b),k(m,i,b),L(a,i,null),k(m,s,b),L(u,m,b),f=!0},p(m,b){let h=e;e=c(m),e===h?_[e].p(m,b):(z(),$(_[h],1,1,()=>{_[h]=null}),j(),l=_[e],l?l.p(m,b):(l=_[e]=d[e](m),l.c()),p(l,1),l.m(t.parentNode,t));const C={};b[0]&4096&&(C.disabled=m[12]),b[1]&4096&&(C.$$scope={dirty:b,ctx:m}),a.$set(C);const F={};b[0]&8192|b[1]&4096&&(F.$$scope={dirty:b,ctx:m}),u.$set(F)},i(m){f||(p(l),p(n.$$.fragment,m),p(a.$$.fragment,m),p(u.$$.fragment,m),f=!0)},o(m){$(l),$(n.$$.fragment,m),$(a.$$.fragment,m),$(u.$$.fragment,m),f=!1},d(m){m&&(g(t),g(o),g(i),g(s)),_[e].d(m),E(n,m),E(a),E(u,m)}}}function yn(r){let e,l,t,n;return e=new Ve({props:{id:"time-range-filter",controls:"time-range-filter-menu",class:"whitespace-nowrap",$$slots:{default:[Bn]},$$scope:{ctx:r}}}),t=new He({props:{keepOpen:!0,id:"time-range-filter-menu",class:"max-h-fit w-[27rem] !overflow-visible",$$slots:{default:[Hn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment),l=B(),v(t.$$.fragment)},l(o){I(e.$$.fragment,o),l=N(o),I(t.$$.fragment,o)},m(o,i){L(e,o,i),k(o,l,i),L(t,o,i),n=!0},p(o,i){const a={};i[1]&4096&&(a.$$scope={dirty:i,ctx:o}),e.$set(a);const s={};i[0]&16383|i[1]&4096&&(s.$$scope={dirty:i,ctx:o}),t.$set(s)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){o&&g(l),E(e,o),E(t,o)}}}function Kn(r){let e,l;return e=new We({props:{$$slots:{default:[yn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[0]&16383|n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Qn(r){let e,l;return e=new Je({props:{inputId:"time-range-filter",options:[{value:"<=",label:S("common.before")},{value:"BETWEEN",label:S("common.between")},{value:">=",label:S("common.after")}],noBorderLeft:!0,noBorderRight:!0,$$slots:{default:[Kn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n[0]&16383|n[1]&4096&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function zn(r,e,l){let t,n,o,i,a,s,u,f;q(r,ml,R=>l(23,s=R)),q(r,nn,R=>l(24,f=R));const{filter:d,handleSubmit:_}=ae(ue);q(r,d,R=>l(22,a=R));let c=Qe(new Date),m=Qe(new Date),b="",h="",C="",F="",T="",w="";const O=["minutes","hours","days"];let K=O[0],M="";const oe=Ne("relative");q(r,oe,R=>l(2,u=R));const G=R=>{l(3,c=Qe(R.detail))},me=R=>{l(4,m=Qe(R.detail))},ve=(R,be)=>{let fe=new Date(R);return be.hour&&(fe=Kl(fe,parseInt(be.hour))),be.minute&&(fe=mn(fe,parseInt(be.minute))),be.second&&(fe=_n(fe,parseInt(be.second))),fe},Te=()=>{if(u==="relative"&&!o){if(!M)return;Y(d,a.value=on(`${M} ${K}`),a),Y(d,a.customDate=!1,a)}else{let R=ve(c,{hour:b,minute:h,second:C}),be=ve(m,{hour:F,minute:T,second:w});const fe=Zl(s),dt=wt.zonedTimeToUtc(R,fe).toISOString(),Fl=wt.zonedTimeToUtc(be,fe).toISOString(),Al=o?`BETWEEN "${dt}" AND "${Fl}"`:dt;Y(d,a.value=Al,a),t?(Y(d,a.customDate=!0,a),Y(d,a.conditional="",a)):Y(d,a.customDate=!1,a)}_()},Ie=R=>R?isNaN(Number(R))||isNaN(parseFloat(R)):!1;function D(R){b=R,l(5,b)}function Be(R){h=R,l(6,h)}function xe(R){C=R,l(7,C)}function Il(R){F=R,l(8,F)}function Ll(R){T=R,l(9,T)}function El(R){w=R,l(10,w)}function Cl(R){M=R,l(0,M)}function Dl(R){K=R,l(11,K)}const Sl=()=>Y(oe,u="relative",u);function Tl(R){b=R,l(5,b)}function Bl(R){h=R,l(6,h)}function Nl(R){C=R,l(7,C)}const Ol=()=>Y(oe,u="absolute",u);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=a.conditional==="BETWEEN"),r.$$.dirty[0]&8388608&&l(13,n=Jl(s)),r.$$.dirty[0]&16777218&&l(21,o=t||!f),r.$$.dirty[0]&2097157&&l(12,i=u==="relative"&&!o&&(!M||Ie(M)))},[M,t,u,c,m,b,h,C,F,T,w,K,i,n,d,O,oe,G,me,Te,Ie,o,a,s,f,D,Be,xe,Il,Ll,El,Cl,Dl,Sl,Tl,Bl,Nl,Ol]}class jn extends ne{constructor(e){super(),re(this,e,zn,Qn,le,{},null,[-1,-1])}}function qn(r){let e,l,t;function n(i){r[7](i)}let o={label:r[0].attribute,labelHidden:!0,id:"duration-filter",type:"search",placeholder:`${S("common.enter")} ${r[0].attribute} (${S("workflows.duration-filter-placeholder")})`,icon:"search",class:"w-full",unroundLeft:!0,valid:r[1]};return r[2]!==void 0&&(o.value=r[2]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),e.$on("keydown",r[4]),e.$on("input",r[5]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};a&1&&(s.label=i[0].attribute),a&1&&(s.placeholder=`${S("common.enter")} ${i[0].attribute} (${S("workflows.duration-filter-placeholder")})`),a&2&&(s.valid=i[1]),!l&&a&4&&(l=!0,s.value=i[2],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Gn(r){let e,l;return e=new Je({props:{inputId:"duration-filter",noBorderLeft:!0,$$slots:{default:[qn]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&519&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Yn(r,e,l){let t,n,o;const{filter:i,handleSubmit:a}=ae(ue);q(r,i,_=>l(0,o=_));let s=!0;const u=_=>{const c=n.trim();s&&_.key==="Enter"&&c!==""&&(Y(i,o.value=c,o),_.preventDefault(),a())},f=_=>{sn(_.target.value.trim())?l(1,s=!0):l(1,s=!1)};function d(_){n=_,l(2,n),l(6,t),l(0,o)}return r.$$.update=()=>{r.$$.dirty&1&&l(6,{value:t}=o,t),r.$$.dirty&64&&l(2,n=t)},[o,s,n,i,u,f,t,d]}class Xn extends ne{constructor(e){super(),re(this,e,Yn,Gn,le,{})}}function St(r,e,l){const t=r.slice();t[17]=e[l],t[24]=l;const n=t[17];return t[18]=n.attribute,t[19]=n.type,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Tt(r){let e,l,t,n,o;function i(){return r[14](r[24])}function a(){return r[15](r[24],r[17])}return l=new an({props:{removeButtonLabel:S("workflows.remove-filter-label",{attribute:r[18]}),intent:"default",button:!0,$$slots:{default:[rr]},$$scope:{ctx:r}}}),l.$on("remove",i),l.$on("click",a),{c(){e=H("div"),v(l.$$.fragment),this.h()},l(s){e=y(s,"DIV",{"data-testid":!0});var u=Q(e);I(l.$$.fragment,u),u.forEach(g),this.h()},h(){A(e,"data-testid",t=r[17].attribute+"-"+r[24])},m(s,u){k(s,e,u),L(l,e,null),o=!0},p(s,u){r=s;const f={};u&2&&(f.removeButtonLabel=S("workflows.remove-filter-label",{attribute:r[18]})),u&33554482&&(f.$$scope={dirty:u,ctx:r}),l.$set(f),(!o||u&2&&t!==(t=r[17].attribute+"-"+r[24]))&&A(e,"data-testid",t)},i(s){o||(p(l.$$.fragment,s),s&&(n||we(()=>{n=Se(e,Vl,{}),n.start()})),o=!0)},o(s){$(l.$$.fragment,s),o=!1},d(s){s&&g(e),E(l)}}}function Jn(r){let e,l=r[18]+"",t,n,o,i;function a(f,d){return d&2&&(o=null),d&2&&(i=null),o==null&&(o=!!ze(f[21])),o?tr:(i==null&&(i=!!ct({attribute:f[18],type:f[19]})),i?er:xn)}let s=a(r,-1),u=s(r);return{c(){e=H("span"),t=P(l),n=B(),u.c(),this.h()},l(f){e=y(f,"SPAN",{class:!0});var d=Q(e);t=V(d,l),n=N(d),u.l(d),d.forEach(g),this.h()},h(){A(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,d){k(f,e,d),U(e,t),U(e,n),u.m(e,null)},p(f,d){d&2&&l!==(l=f[18]+"")&&X(t,l),s===(s=a(f,d))&&u?u.p(f,d):(u.d(1),u=s(f),u&&(u.c(),u.m(e,null)))},i:J,o:J,d(f){f&&g(e),u.d()}}}function Zn(r){let e,l=r[18]+"",t,n,o=r[21]+"",i,a,s,u,f;return u=new $l({props:{status:r[20]}}),{c(){e=H("span"),t=P(l),n=B(),i=P(o),a=B(),s=H("span"),v(u.$$.fragment),this.h()},l(d){e=y(d,"SPAN",{class:!0});var _=Q(e);t=V(_,l),n=N(_),i=V(_,o),a=N(_),s=y(_,"SPAN",{class:!0});var c=Q(s);I(u.$$.fragment,c),c.forEach(g),_.forEach(g),this.h()},h(){A(s,"class","-py-1 ml-1"),A(e,"class","flex")},m(d,_){k(d,e,_),U(e,t),U(e,n),U(e,i),U(e,a),U(e,s),L(u,s,null),f=!0},p(d,_){(!f||_&2)&&l!==(l=d[18]+"")&&X(t,l),(!f||_&2)&&o!==(o=d[21]+"")&&X(i,o);const c={};_&2&&(c.status=d[20]),u.$set(c)},i(d){f||(p(u.$$.fragment,d),f=!0)},o(d){$(u.$$.fragment,d),f=!1},d(d){d&&g(e),E(u)}}}function xn(r){let e=(ht(r[21])?S("common.starts-with").toLocaleLowerCase():r[21])+"",l,t,n=(Ae({attribute:r[18],type:r[19]})?`"${r[20]}"`:r[20])+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=(ht(i[21])?S("common.starts-with").toLocaleLowerCase():i[21])+"")&&X(l,e),a&2&&n!==(n=(Ae({attribute:i[18],type:i[19]})?`"${i[20]}"`:i[20])+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function er(r){let e;function l(o,i){return o[22]?nr:lr}let t=l(r),n=t(r);return{c(){n.c(),e=W()},l(o){n.l(o),e=W()},m(o,i){n.m(o,i),k(o,e,i)},p(o,i){t===(t=l(o))&&n?n.p(o,i):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){o&&g(e),n.d(o)}}}function tr(r){let e=r[21]+"",l,t,n=r[20]+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=i[21]+"")&&X(l,e),a&2&&n!==(n=i[20]+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function lr(r){let e=r[10](r[21])+"",l,t,n=je(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=P(e),t=B(),o=P(n)},l(i){l=V(i,e),t=N(i),o=V(i,n)},m(i,a){k(i,l,a),k(i,t,a),k(i,o,a)},p(i,a){a&2&&e!==(e=i[10](i[21])+"")&&X(l,e),a&50&&n!==(n=je(i[20],i[4],{relative:i[5],abbrFormat:!0})+"")&&X(o,n)},d(i){i&&(g(l),g(t),g(o))}}}function nr(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&X(l,e)},d(t){t&&g(l)}}}function rr(r){let e,l,t,n,o;const i=[Zn,Jn],a=[];function s(u,f){return f&2&&(e=null),e==null&&(e=!!(u[18]==="ExecutionStatus"&&Ql(u[20]))),e?0:1}return l=s(r,-1),t=a[l]=i[l](r),{c(){t.c(),n=W()},l(u){t.l(u),n=W()},m(u,f){a[l].m(u,f),k(u,n,f),o=!0},p(u,f){let d=l;l=s(u,f),l===d?a[l].p(u,f):(z(),$(a[d],1,1,()=>{a[d]=null}),j(),t=a[l],t?t.p(u,f):(t=a[l]=i[l](u),t.c()),p(t,1),t.m(n.parentNode,n))},i(u){o||(p(t),o=!0)},o(u){$(t),o=!1},d(u){u&&g(n),a[l].d(u)}}}function Bt(r,e){let l,t,n,o=e[18]&&Tt(e);return{key:r,first:null,c(){l=W(),o&&o.c(),t=W(),this.h()},l(i){l=W(),o&&o.l(i),t=W(),this.h()},h(){this.first=l},m(i,a){k(i,l,a),o&&o.m(i,a),k(i,t,a),n=!0},p(i,a){e=i,e[18]?o?(o.p(e,a),a&2&&p(o,1)):(o=Tt(e),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(z(),$(o,1,1,()=>{o=null}),j())},i(i){n||(p(o),n=!0)},o(i){$(o),n=!1},d(i){i&&(g(l),g(t)),o&&o.d(i)}}}function Nt(r){let e,l;return e=new it({props:{variant:"secondary",size:"xs",$$slots:{default:[ir]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ir(r){let e=S("common.view-more")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function or(r){let e,l=[],t=new Map,n,o,i=Z(r[1]);const a=u=>`${u[17].attribute}-${u[24]}`;for(let u=0;u{s=null}),j()),(!o||f&2)&&ce(e,"pt-2",u[1].length)},i(u){if(!o){for(let f=0;fl(16,a=w)),q(r,ml,w=>l(4,s=w)),q(r,xl,w=>l(5,u=w));let{filters:f}=e;const{filter:d,activeQueryIndex:_}=ae(ue);q(r,d,w=>l(3,i=w)),q(r,_,w=>l(2,o=w));const c=w=>{if(f.splice(w,1),l(12,f),cl(a.url,f),w===f.length){const O=f[f.length-1];O&&(O.operator="")}w===o?(Y(_,o=null,o),Y(d,i=Oe(),i)):w{n&&l(13,m+=5)},h=w=>["<","<="].includes(w)?S("common.before").toLowerCase():[">",">="].includes(w)?S("common.after").toLowerCase():w,C=(w,O,K)=>{const[M,oe,G,me]=w.split(" ");return`${M.toLowerCase()} ${je(oe,O,{relative:K,abbrFormat:!0})} ${G.toLowerCase()} ${je(me,O,{relative:K,abbrFormat:!0})}`},F=w=>c(w),T=(w,O)=>{Y(_,o=w,o),Y(d,i={...O},i)};return r.$$set=w=>{"filters"in w&&l(12,f=w.filters)},r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=f.slice(0,m)),r.$$.dirty&12288&&l(0,n=mte(e,"value",n)),e.$on("keydown",r[3]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&1&&(l=!0,s.value=i[0],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function fr(r){let e,l;return e=new Je({props:{inputId:"number-filter",noBorderLeft:!0,$$slots:{default:[ur]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&513&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}const kl=0;function cr(r,e,l){let t,n,o,i;const{filter:a,focusedElementId:s,handleSubmit:u}=ae(ue);q(r,a,_=>l(5,o=_)),q(r,s,_=>l(7,i=_));const f=_=>{Y(s,i="",i),_.key==="Enter"&&n!==null&&n>=kl&&(Y(a,o.value=String(n),o),_.preventDefault(),u())};function d(_){n=_,l(0,n),l(4,t),l(5,o)}return r.$$.update=()=>{r.$$.dirty&32&&l(4,{value:t}=o,t),r.$$.dirty&16&&l(0,n=t?Number(t):null)},[n,a,s,f,t,o,d]}class mr extends ne{constructor(e){super(),re(this,e,cr,fr,le,{})}}function Ot(r,e,l){const t=r.slice();t[16]=e[l].value,t[17]=e[l].label,t[18]=e[l].type;const n=kr(t[16],t[0]);return t[19]=n,t}function _r(r){let e=(r[4].attribute||S("workflows.filter"))+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&16&&e!==(e=(t[4].attribute||S("workflows.filter"))+"")&&X(l,e)},d(t){t&&g(l)}}}function Ft(r){let e,l;return e=new Fe({props:{name:"filter"}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function dr(r){let e,l,t=!r[4].attribute&&Ft();return{c(){t&&t.c(),e=W()},l(n){t&&t.l(n),e=W()},m(n,o){t&&t.m(n,o),k(n,e,o),l=!0},p(n,o){n[4].attribute?t&&(z(),$(t,1,1,()=>{t=null}),j()):t?o&16&&p(t,1):(t=Ft(),t.c(),p(t,1),t.m(e.parentNode,e))},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){n&&g(e),t&&t.d(n)}}}function pr(r){let e,l,t;function n(i){r[12](i)}let o={label:S("common.search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:S("common.search"),class:"w-full"};return r[1]!==void 0&&(o.value=r[1]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&2&&(l=!0,s.value=i[1],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function At(r){let e,l;return e=new se({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[$r]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function $r(r){let e=S("common.no-results")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function br(r){let e=r[17]+"",l,t;return{c(){l=P(e),t=B()},l(n){l=V(n,e),t=N(n)},m(n,o){k(n,l,o),k(n,t,o)},p(n,o){o&4&&e!==(e=n[17]+"")&&X(l,e)},d(n){n&&(g(l),g(t))}}}function Ut(r){let e,l;function t(){return r[14](r[16],r[18])}return e=new se({props:{disabled:r[19],$$slots:{default:[br]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&5&&(i.disabled=r[19]),o&4194308&&(i.$$scope={dirty:o,ctx:r}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function gr(r){let e,l,t,n;e=new se({props:{class:"p-0",hoverable:!1,$$slots:{default:[pr]},$$scope:{ctx:r}}}),e.$on("click",r[13]);let o=Z(r[2]),i=[];for(let u=0;u$(i[u],1,1,()=>{i[u]=null});let s=null;return o.length||(s=At(r)),{c(){v(e.$$.fragment),l=B();for(let u=0;u{s=null}),j()):(s=At(u),s.c(),p(s,1),s.m(t.parentNode,t))}},i(u){if(!n){p(e.$$.fragment,u);for(let f=0;f["=","!=","is","is not"].includes(l.conditional)&&l.attribute===r)}function vr(r,e,l){let t,n,o,i,a,{filters:s}=e,{options:u}=e;const{filter:f,activeQueryIndex:d,focusedElementId:_}=ae(ue);q(r,f,T=>l(4,a=T)),q(r,d,T=>l(3,i=T)),q(r,_,T=>l(15,o=T));function c(T,w){l(1,m=""),f.set({...Oe(),attribute:T,conditional:"=",type:w}),Y(_,o=wl({attribute:T,type:w}),o)}let m="";const b=()=>l(1,m="");function h(T){m=T,l(1,m)}const C=()=>{var T;(T=document.getElementById("filter-search"))==null||T.focus()},F=(T,w)=>{c(T,w)};return r.$$set=T=>{"filters"in T&&l(0,s=T.filters),"options"in T&&l(9,u=T.options)},r.$$.update=()=>{r.$$.dirty&512&&l(10,t=u.filter(({value:T,type:w})=>!bl({attribute:T,type:w}))),r.$$.dirty&1026&&l(2,n=m?t.filter(T=>T.value.toLowerCase().includes(m.toLowerCase())):t)},[s,m,n,i,a,f,d,_,c,u,t,b,h,C,F]}class Ir extends ne{constructor(e){super(),re(this,e,vr,wr,le,{filters:0,options:9})}}function Mt(r,e,l){const t=r.slice();t[17]=e[l];const n=t[0].some(function(...i){return r[12](t[17],...i)})||!t[0].length&&t[17]==="All";return t[18]=n,t}function Lr(r){let e=r[1].attribute+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&X(l,e)},d(t){t&&g(l)}}}function Er(r){let e,l;return e=new $l({props:{status:r[17]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Cr(r){let e,l;return e=new zl({props:{key:"workflows.all-statuses"}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Dr(r){let e,l,t,n;const o=[Cr,Er],i=[];function a(s,u){return s[17]==="All"?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){l.p(s,u)},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function Sr(r){let e,l;function t(){return r[10](r[17])}return e=new en({props:{slot:"leading",checked:r[18],label:r[17],labelHidden:!0}}),e.$on("click",t),{c(){v(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,o){L(e,n,o),l=!0},p(n,o){r=n;const i={};o&1&&(i.checked=r[18]),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){E(e,n)}}}function Rt(r,e){let l,t,n;function o(){return e[11](e[17])}return t=new se({props:{"data-testid":e[17],$$slots:{leading:[Sr],default:[Dr]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=W(),v(t.$$.fragment),this.h()},l(i){l=W(),I(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){k(i,l,a),L(t,i,a),n=!0},p(i,a){e=i;const s={};a&2097153&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(i){n||(p(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),E(t,i)}}}function Tr(r){let e=[],l=new Map,t,n,o,i=Z(gt);const a=s=>s[17];for(let s=0;sl(13,i=w));let{filters:s}=e;const{filter:u,resetFilter:f}=ae(ue);q(r,u,w=>l(1,o=w));const d=Ne(!0);q(r,d,w=>l(2,a=w));function _(){l(7,s=t),cl(i.url,s)}function c(w){return{...o,value:w}}function m(w){return w.length===1?[c(w[0].value)]:w.map((O,K)=>{const M=K===w.length-1?"":"OR";return{...O,operator:M}})}const b=w=>{if(w==="All")l(8,t=s.filter(O=>O.attribute!=="ExecutionStatus"));else if(n.find(O=>O.value===w)){const O=s.filter(K=>!Ee(K.attribute));l(8,t=[...O,...m(n.filter(K=>K.value!==w))])}else if(!n.length)l(8,t=[...t,c(w)]);else{const O=t.filter(K=>!Ee(K.attribute));l(8,t=[...O,...m([...n,c(w)])])}_()},h=()=>{a&&f()},C=w=>b(w),F=w=>{b(w)},T=(w,O)=>O.value===w;return r.$$set=w=>{"filters"in w&&l(7,s=w.filters)},r.$$.update=()=>{r.$$.dirty&128&&l(8,t=[...s]),r.$$.dirty&256&&l(0,n=t.filter(w=>Ee(w.attribute)))},[n,o,a,u,f,d,b,s,t,h,C,F,T]}class Fr extends ne{constructor(e){super(),re(this,e,Or,Nr,le,{filters:7})}}function Ar(r){let e,l,t;function n(i){r[7](i)}let o={label:r[0].attribute,labelHidden:!0,id:"text-filter",type:"search",placeholder:`${S("common.enter")} ${r[0].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[2]!==void 0&&(o.value=r[2]),e=new Ye({props:o}),x.push(()=>te(e,"value",n)),e.$on("keydown",r[4]),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};a&1&&(s.label=i[0].attribute),a&1&&(s.placeholder=`${S("common.enter")} ${i[0].attribute}`),!l&&a&4&&(l=!0,s.value=i[2],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ur(r){let e,l;return e=new Je({props:{options:r[1],inputId:"text-filter",noBorderLeft:!0,$$slots:{default:[Ar]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&2&&(o.options=t[1]),n&517&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Mr(r,e,l){let t,n,o,i,a;q(r,rn,_=>l(6,a=_));const{filter:s,handleSubmit:u}=ae(ue);q(r,s,_=>l(0,i=_));function f(_){_.key==="Enter"&&n!==""&&(_.preventDefault(),Y(s,i.value=n,i),u())}function d(_){n=_,l(2,n),l(5,t),l(0,i)}return r.$$.update=()=>{r.$$.dirty&1&&l(5,{value:t}=i,t),r.$$.dirty&32&&l(2,n=t),r.$$.dirty&65&&l(1,o=[{value:"=",label:S("common.equal-to")},{value:"!=",label:S("common.not-equal-to")},...a&&i.type===ie.KEYWORD?[{value:"STARTS_WITH",label:S("common.starts-with")}]:[]])},[i,o,n,s,f,t,a,d]}class Rr extends ne{constructor(e){super(),re(this,e,Mr,Ur,le,{})}}const Pr=r=>({}),Pt=r=>({});function Vt(r){let e,l,t,n,o,i,a,s;const u=[Wr,Vr],f=[];function d(c,m){return m&8&&(l=null),l==null&&(l=!!Ee(c[3])),l?0:1}t=d(r,-1),n=f[t]=u[t](r);let _=r[3]&&Wt(r);return{c(){e=H("div"),n.c(),o=B(),_&&_.c(),this.h()},l(c){e=y(c,"DIV",{class:!0,role:!0});var m=Q(e);n.l(m),o=N(m),_&&_.l(m),m.forEach(g),this.h()},h(){A(e,"class","flex items-center svelte-1qtxzn6"),A(e,"role","none"),ce(e,"filter",!r[5])},m(c,m){k(c,e,m),f[t].m(e,null),U(e,o),_&&_.m(e,null),i=!0,a||(s=Le(e,"keyup",r[10]),a=!0)},p(c,m){let b=t;t=d(c,m),t===b?f[t].p(c,m):(z(),$(f[b],1,1,()=>{f[b]=null}),j(),n=f[t],n?n.p(c,m):(n=f[t]=u[t](c),n.c()),p(n,1),n.m(e,o)),c[3]?_?(_.p(c,m),m&8&&p(_,1)):(_=Wt(c),_.c(),p(_,1),_.m(e,null)):_&&(z(),$(_,1,1,()=>{_=null}),j()),(!i||m&32)&&ce(e,"filter",!c[5])},i(c){i||(p(n),p(_),i=!0)},o(c){$(n),$(_),i=!1},d(c){c&&g(e),f[t].d(),_&&_.d(),a=!1,s()}}}function Vr(r){let e,l;return e=new Ir({props:{filters:r[0],options:r[1]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.filters=t[0]),n&2&&(o.options=t[1]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Wr(r){let e,l,t;function n(i){r[16](i)}let o={};return r[0]!==void 0&&(o.filters=r[0]),e=new Fr({props:o}),x.push(()=>te(e,"filters",n)),{c(){v(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){L(e,i,a),t=!0},p(i,a){const s={};!l&&a&1&&(l=!0,s.filters=i[0],ee(()=>l=!1)),e.$set(s)},i(i){t||(p(e.$$.fragment,i),t=!0)},o(i){$(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Wt(r){let e,l,t,n,o,i,a,s,u;const f=[zr,Qr,Kr,yr,Hr],d=[];function _(c,m){return m&24&&(e=null),m&8&&(l=null),m&24&&(t=null),m&24&&(n=null),m&24&&(o=null),e==null&&(e=!!Ae({attribute:c[3],type:c[4]})),e?0:(l==null&&(l=!!dn(c[3])),l?1:(t==null&&(t=!!gl({attribute:c[3],type:c[4]})),t?2:(n==null&&(n=!!ct({attribute:c[3],type:c[4]})),n?3:(o==null&&(o=!!hl({attribute:c[3],type:c[4]})),o?4:-1))))}return~(i=_(r,-1))&&(a=d[i]=f[i](r)),{c(){a&&a.c(),s=W()},l(c){a&&a.l(c),s=W()},m(c,m){~i&&d[i].m(c,m),k(c,s,m),u=!0},p(c,m){let b=i;i=_(c,m),i!==b&&(a&&(z(),$(d[b],1,1,()=>{d[b]=null}),j()),~i?(a=d[i],a||(a=d[i]=f[i](c),a.c()),p(a,1),a.m(s.parentNode,s)):a=null)},i(c){u||(p(a),u=!0)},o(c){$(a),u=!1},d(c){c&&g(s),~i&&d[i].d(c)}}}function Hr(r){let e,l,t,n,o,i;return l=new kn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function yr(r){let e,l,t,n,o,i;return l=new jn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Kr(r){let e,l,t,n,o,i;return l=new mr({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Qr(r){let e,l,t,n,o,i;return l=new Xn({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function zr(r){let e,l,t,n,o,i;return l=new Rr({}),n=new ye({}),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(a){e=y(a,"DIV",{class:!0});var s=Q(e);I(l.$$.fragment,s),t=N(s),I(n.$$.fragment,s),s.forEach(g),this.h()},h(){A(e,"class","flex w-full items-center")},m(a,s){k(a,e,s),L(l,e,null),U(e,t),L(n,e,null),i=!0},i(a){i||(p(l.$$.fragment,a),p(n.$$.fragment,a),a&&(o||we(()=>{o=Se(e,he,{x:-100,duration:150}),o.start()})),i=!0)},o(a){$(l.$$.fragment,a),$(n.$$.fragment,a),i=!1},d(a){a&&g(e),E(l),E(n)}}}function Ht(r){let e,l;return e=new it({props:{variant:"ghost",$$slots:{default:[jr]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&262144&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function jr(r){let e=S("common.clear-all")+"",l;return{c(){l=P(e)},l(t){l=V(t,e)},m(t,n){k(t,l,n)},p:J,d(t){t&&g(l)}}}function qr(r){let e,l,t,n,o,i,a,s,u,f,d;const _=r[15].default,c=_e(_,r,r[18],null);let m=r[2]&&Vt(r),b=r[5]&&Ht(r);const h=r[15].actions,C=_e(h,r,r[18],Pt);function F(w){r[17](w)}let T={};return r[0]!==void 0&&(T.filters=r[0]),u=new ar({props:T}),x.push(()=>te(u,"filters",F)),{c(){e=H("div"),l=H("div"),c&&c.c(),t=B(),m&&m.c(),n=B(),o=H("div"),b&&b.c(),a=B(),C&&C.c(),s=B(),v(u.$$.fragment),this.h()},l(w){e=y(w,"DIV",{class:!0});var O=Q(e);l=y(O,"DIV",{class:!0});var K=Q(l);c&&c.l(K),t=N(K),m&&m.l(K),n=N(K),o=y(K,"DIV",{class:!0});var M=Q(o);b&&b.l(M),M.forEach(g),a=N(K),C&&C.l(K),K.forEach(g),s=N(O),I(u.$$.fragment,O),O.forEach(g),this.h()},h(){A(o,"class",i="flex flex-col sm:flex-row "+(r[5]?"w-full justify-between":"justify-end")),A(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),A(e,"class","flex grow flex-col")},m(w,O){k(w,e,O),U(e,l),c&&c.m(l,null),U(l,t),m&&m.m(l,null),U(l,n),U(l,o),b&&b.m(o,null),U(l,a),C&&C.m(l,null),U(e,s),L(u,e,null),d=!0},p(w,[O]){c&&c.p&&(!d||O&262144)&&de(c,_,w,w[18],d?$e(_,w[18],O,null):pe(w[18]),null),w[2]?m?(m.p(w,O),O&4&&p(m,1)):(m=Vt(w),m.c(),p(m,1),m.m(l,n)):m&&(z(),$(m,1,1,()=>{m=null}),j()),w[5]?b?(b.p(w,O),O&32&&p(b,1)):(b=Ht(w),b.c(),p(b,1),b.m(o,null)):b&&(z(),$(b,1,1,()=>{b=null}),j()),(!d||O&32&&i!==(i="flex flex-col sm:flex-row "+(w[5]?"w-full justify-between":"justify-end")))&&A(o,"class",i),C&&C.p&&(!d||O&262144)&&de(C,h,w,w[18],d?$e(h,w[18],O,Pr):pe(w[18]),Pt);const K={};!f&&O&1&&(f=!0,K.filters=w[0],ee(()=>f=!1)),u.$set(K)},i(w){d||(p(c,w),p(m),p(b),p(C,w),p(u.$$.fragment,w),d=!0)},o(w){$(c,w),$(m),$(b),$(C,w),$(u.$$.fragment,w),d=!1},d(w){w&&g(e),c&&c.d(w),m&&m.d(),b&&b.d(),C&&C.d(w),E(u)}}}const ue="filter-context";function Gr(r,e,l){let t,n,o,i,a,s,u,f,d;q(r,Re,D=>l(14,f=D)),q(r,Hl,D=>l(21,d=D));let{$$slots:_={},$$scope:c}=e,{filters:m}=e,{options:b=d}=e,{showFilter:h=!0}=e,{refresh:C}=e;const F=Ne(Oe());q(r,F,D=>l(13,u=D));const T=Ne(null);q(r,T,D=>l(12,s=D));const w=Ne("");q(r,w,D=>l(20,a=D)),sl(ue,{filter:F,activeQueryIndex:T,handleSubmit:K,focusedElementId:w,resetFilter:me});function O(){const D=jl(ql(m));D&&D===o?C():Gl({url:f.url,parameter:"query",value:D,allowEmpty:!0,clearParameters:[Wl]})}function K(){s!==null?(l(0,m[s]=u,m),Y(T,s=null,s)):l(0,m=[...m,u]),F.set(Oe()),O()}function M(){l(0,m=[]),O()}function oe(){s!==null&&Y(w,a=wl({attribute:t,type:n}),a)}function G(){if(a){const D=document.getElementById(a);D&&(D.focus(),D instanceof HTMLButtonElement&&D.click())}}Ul(()=>{G()});function me(){T.set(null),F.set(Oe())}function ve(D){D.key==="Escape"&&!Ae({attribute:t,type:n})&&me()}function Te(D){m=D,l(0,m)}function Ie(D){m=D,l(0,m)}return r.$$set=D=>{"filters"in D&&l(0,m=D.filters),"options"in D&&l(1,b=D.options),"showFilter"in D&&l(2,h=D.showFilter),"refresh"in D&&l(11,C=D.refresh),"$$scope"in D&&l(18,c=D.$$scope)},r.$$.update=()=>{r.$$.dirty&8192&&l(3,{attribute:t,type:n}=u,t,(l(4,n),l(13,u))),r.$$.dirty&16384&&(o=f.url.searchParams.get("query")),r.$$.dirty&13&&l(5,i=h&&m.length&&!t),r.$$.dirty&4096&&oe(),r.$$.dirty&4&&!h&&me()},[m,b,h,t,n,i,F,T,w,M,ve,C,s,u,f,_,Te,Ie,c]}class po extends ne{constructor(e){super(),re(this,e,Gr,qr,le,{filters:0,options:1,showFilter:2,refresh:11})}}const Yr=r=>({}),yt=r=>({});function Kt(r){let e,l;const t=r[4].subtitle,n=_e(t,r,r[3],yt);return{c(){e=H("p"),n&&n.c(),this.h()},l(o){e=y(o,"P",{class:!0});var i=Q(e);n&&n.l(i),i.forEach(g),this.h()},h(){A(e,"class","text-xs font-normal")},m(o,i){k(o,e,i),n&&n.m(e,null),l=!0},p(o,i){n&&n.p&&(!l||i&8)&&de(n,t,o,o[3],l?$e(t,o[3],i,Yr):pe(o[3]),yt)},i(o){l||(p(n,o),l=!0)},o(o){$(n,o),l=!1},d(o){o&&g(e),n&&n.d(o)}}}function Xr(r){let e,l,t,n,o,i,a,s=r[2].subtitle&&Kt(r);const u=r[4].default,f=_e(u,r,r[3],null);return{c(){e=H("div"),l=H("h2"),t=P(r[0]),n=B(),s&&s.c(),o=B(),i=H("div"),f&&f.c(),this.h()},l(d){e=y(d,"DIV",{class:!0});var _=Q(e);l=y(_,"H2",{});var c=Q(l);t=V(c,r[0]),c.forEach(g),n=N(_),s&&s.l(_),_.forEach(g),o=N(d),i=y(d,"DIV",{class:!0});var m=Q(i);f&&f.l(m),m.forEach(g),this.h()},h(){A(e,"class","title-wrapper "+r[1]+" svelte-549248"),A(i,"class","content "+r[1]+" svelte-549248")},m(d,_){k(d,e,_),U(e,l),U(l,t),U(e,n),s&&s.m(e,null),k(d,o,_),k(d,i,_),f&&f.m(i,null),a=!0},p(d,[_]){(!a||_&1)&&X(t,d[0]),d[2].subtitle?s?(s.p(d,_),_&4&&p(s,1)):(s=Kt(d),s.c(),p(s,1),s.m(e,null)):s&&(z(),$(s,1,1,()=>{s=null}),j()),f&&f.p&&(!a||_&8)&&de(f,u,d,d[3],a?$e(u,d[3],_,null):pe(d[3]),null)},i(d){a||(p(s),p(f,d),a=!0)},o(d){$(s),$(f,d),a=!1},d(d){d&&(g(e),g(o),g(i)),s&&s.d(),f&&f.d(d)}}}function Jr(r,e,l){let{$$slots:t={},$$scope:n}=e;const o=Ml(t);let{title:i=""}=e,a=ae("drawer-pos");return r.$$set=s=>{"title"in s&&l(0,i=s.title),"$$scope"in s&&l(3,n=s.$$scope)},[i,a,o,n,t]}class Zr extends ne{constructor(e){super(),re(this,e,Jr,Xr,le,{title:0})}}const xr=r=>({}),Qt=r=>({});function zt(r){let e,l,t,n,o,i,a,s,u,f;const d=r[10]["close-button"],_=_e(d,r,r[9],Qt),c=_||ei(r),m=r[10].default,b=_e(m,r,r[9],null);return{c(){e=H("aside"),l=H("div"),t=H("div"),c&&c.c(),n=B(),b&&b.c(),this.h()},l(h){e=y(h,"ASIDE",{id:!0,class:!0,role:!0});var C=Q(e);l=y(C,"DIV",{class:!0});var F=Q(l);t=y(F,"DIV",{class:!0});var T=Q(t);c&&c.l(T),T.forEach(g),n=N(F),b&&b.l(F),F.forEach(g),C.forEach(g),this.h()},h(){A(t,"class","absolute right-2 top-2"),A(l,"class","relative h-full"),ce(l,"pt-10",r[6]),A(e,"id",r[4]),A(e,"class",o=qe("surface-primary fixed z-[55] h-auto overflow-y-auto border-subtle text-primary",r[1]==="bottom"&&"bottom-0 left-0 right-0 border-t",r[1]==="right"&&"bottom-0 right-0 top-0 h-full rounded-bl-lg rounded-tr-none border-l",r[2]&&"bg-black text-off-white",r[7])),A(e,"role","region"),ce(e,"max-w-fit",r[1]==="right")},m(h,C){k(h,e,C),U(e,l),U(l,t),c&&c.m(t,null),U(l,n),b&&b.m(l,null),s=!0,u||(f=[pt(Yl.call(null,e,!0)),pt(i=Xl.call(null,e,r[3]))],u=!0)},p(h,C){r=h,_?_.p&&(!s||C&512)&&de(_,d,r,r[9],s?$e(d,r[9],C,xr):pe(r[9]),Qt):c&&c.p&&(!s||C&45)&&c.p(r,s?C:-1),b&&b.p&&(!s||C&512)&&de(b,m,r,r[9],s?$e(m,r[9],C,null):pe(r[9]),null),(!s||C&64)&&ce(l,"pt-10",r[6]),(!s||C&16)&&A(e,"id",r[4]),(!s||C&134&&o!==(o=qe("surface-primary fixed z-[55] h-auto overflow-y-auto border-subtle text-primary",r[1]==="bottom"&&"bottom-0 left-0 right-0 border-t",r[1]==="right"&&"bottom-0 right-0 top-0 h-full rounded-bl-lg rounded-tr-none border-l",r[2]&&"bg-black text-off-white",r[7])))&&A(e,"class",o),i&&al(i.update)&&C&8&&i.update.call(null,r[3]),(!s||C&134)&&ce(e,"max-w-fit",r[1]==="right")},i(h){s||(p(c,h),p(b,h),h&&we(()=>{s&&(a||(a=bt(e,he,r[8],!0)),a.run(1))}),s=!0)},o(h){$(c,h),$(b,h),h&&(a||(a=bt(e,he,r[8],!1)),a.run(0)),s=!1},d(h){h&&g(e),c&&c.d(h),b&&b.d(h),h&&a&&a.end(),u=!1,ul(f)}}}function ei(r){let e,l;return e=new ge({props:{"data-testid":"drawer-close-button",label:r[5],class:qe(r[2]?"text-white":"text-primary","hover:text-primary"),icon:"close","aria-expanded":r[0],"aria-controls":"navigation-drawer"}}),e.$on("click",function(){al(r[3])&&r[3].apply(this,arguments)}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){r=t;const o={};n&32&&(o.label=r[5]),n&4&&(o.class=qe(r[2]?"text-white":"text-primary","hover:text-primary")),n&1&&(o["aria-expanded"]=r[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ti(r){let e,l,t=r[0]&&zt(r);return{c(){t&&t.c(),e=W()},l(n){t&&t.l(n),e=W()},m(n,o){t&&t.m(n,o),k(n,e,o),l=!0},p(n,[o]){n[0]?t?(t.p(n,o),o&1&&p(t,1)):(t=zt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),$(t,1,1,()=>{t=null}),j())},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){n&&g(e),t&&t.d(n)}}}function li(r,e,l){let t,{$$slots:n={},$$scope:o}=e,{open:i=!1}=e,{position:a="bottom"}=e,{dark:s=!0}=e,{onClick:u}=e,{id:f="navigation-drawer"}=e,{closeButtonLabel:d}=e,{closePadding:_=!0}=e,{class:c=""}=e;return r.$$set=m=>{"open"in m&&l(0,i=m.open),"position"in m&&l(1,a=m.position),"dark"in m&&l(2,s=m.dark),"onClick"in m&&l(3,u=m.onClick),"id"in m&&l(4,f=m.id),"closeButtonLabel"in m&&l(5,d=m.closeButtonLabel),"closePadding"in m&&l(6,_=m.closePadding),"class"in m&&l(7,c=m.class),"$$scope"in m&&l(9,o=m.$$scope)},r.$$.update=()=>{r.$$.dirty&2&&l(8,t={duration:500,...a==="bottom"?{y:200}:{x:200}}),r.$$.dirty&2&&sl("drawer-pos",a)},[i,a,s,u,f,d,_,c,t,o,n]}class ni extends ne{constructor(e){super(),re(this,e,li,ti,le,{open:0,position:1,dark:2,onClick:3,id:4,closeButtonLabel:5,closePadding:6,class:7})}}const ri=2,Ce={WORKFLOWS:"workflows",SCHEDULES:"schedules"},Ue=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],jt=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1},{label:"Scheduled By ID",pinned:!1},{label:"Scheduled Start Time",pinned:!1}],mt=[{label:"Status",pinned:!1},{label:"Schedule ID",pinned:!1},{label:"Workflow Type",pinned:!1},{label:"Recent Runs",pinned:!1},{label:"Upcoming Runs",pinned:!1},{label:"Schedule Spec",pinned:!1}],vl=r=>r.label!=="Parent Workflow ID",ii=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(vl):r=Ue}catch{r=Ue}return r},lt=ft("namespace-workflow-table-columns",{}),nt=ft("namespace-schedules-table-columns",{}),Ze=Ge([fn,Re,lt,nt],([r,e,l,t])=>{const n={},o=(u,f,d,_)=>{var m;if(!((m=u==null?void 0:u[f])!=null&&m.length))return u[f]=[...d],u[f];const c=u[f].filter(vl);return c.length!==u[f].length&&(u[f]=c,_(u)),u[f]},i=u=>({workflows:o(l,u,ii(),f=>lt.set(f)),schedules:o(t,u,mt,f=>nt.set(f))}),a=(r==null?void 0:r.reduce((u,{namespaceInfo:{name:f}})=>({...u,[f]:i(f)}),n))??{},{namespace:s}=e.params;return a[s]?a:{...a,[s]:i(s)}});ft("workflow-table-pinned-columns-width");const $o=(r,e)=>Ge(Ze,l=>{var t;return[...Ue,...(t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud?jt.filter(n=>n.label!=="Parent Namespace"):jt].filter(n=>{var o,i;return!((i=(o=l[r])==null?void 0:o.workflows)!=null&&i.some(a=>a.label===n.label))})}),bo=r=>Ge(Ze,e=>[...mt].filter(l=>{var t,n;return!((n=(t=e[r])==null?void 0:t.schedules)!=null&&n.some(o=>o.label===l.label))})),oi=(r,e=Ce.WORKFLOWS)=>Ge([yl,Ze],([l,t])=>Object.keys(l).filter(n=>{var o,i;return!((i=(o=t[r])==null?void 0:o[e])!=null&&i.some(a=>a.label===n))}).map(n=>({label:n,pinned:!1}))),si=r=>{switch(r){case Ce.WORKFLOWS:return Ue;case Ce.SCHEDULES:return mt}},ai=(r,e)=>{const l=si(r.payload.table);switch(r.type){case"CONFIGURABLE_COLUMN.ADD":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l;return{...e,[n]:[...o,{label:t,pinned:!1}]}}case"CONFIGURABLE_COLUMN.REMOVE":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l;return{...e,[n]:o.filter(({label:i})=>i!==t)}}case"CONFIGURABLE_COLUMN.PIN":{const{label:t,namespace:n}=r.payload,o=(e==null?void 0:e[n])??l,i=o.findIndex(({label:f})=>f===t),a=o[i].pinned;let s=-1;for(let f=o.length-1;f>=0;f--)if(o[f].pinned){s=f;break}const u=[...o];return u[i].pinned=!a,i>s&&!a?u.splice(s+1,0,u.splice(i,1)[0]):i=0;f--)if(i[f].pinned){s=f;break}const u=[...i];return n<=s&&!a?u[t].pinned=!0:n>s&&a&&(u[t].pinned=!1),u.splice(n,0,u.splice(t,1)[0]),{...e,[o]:u.map((f,d)=>d>ri-1?{...f,pinned:!1}:f)}}default:return e}},ui=r=>{switch(r){case Ce.WORKFLOWS:return lt;case Ce.SCHEDULES:return nt}},_t=r=>{ui(r.payload.table).update(l=>ai(r,l))},qt=(r,e,l)=>{_t({type:"CONFIGURABLE_COLUMN.ADD",payload:{label:r,namespace:e,table:l}})},fi=(r,e,l)=>{_t({type:"CONFIGURABLE_COLUMN.REMOVE",payload:{label:r,namespace:e,table:l}})},ci=(r,e,l,t)=>{_t({type:"CONFIGURABLE_COLUMN.MOVE",payload:{from:r,to:e,namespace:l,table:t}})};function Gt(r){let e,l,t,n,o;return l=new ge({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new ge({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=H("div"),v(l.$$.fragment),t=B(),v(n.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=Q(e);I(l.$$.fragment,a),t=N(a),I(n.$$.fragment,a),a.forEach(g),this.h()},h(){A(e,"class","flex items-center")},m(i,a){k(i,e,a),L(l,e,null),U(e,t),L(n,e,null),o=!0},p(i,a){const s={};a&32&&(s.disabled=i[5]===0),a&2&&(s["data-testid"]="orderable-list-item-"+i[1]+"-move-up-button"),a&128&&(s.label=i[7]),l.$set(s);const u={};a&96&&(u.disabled=i[5]===i[6]-1),a&2&&(u["data-testid"]="orderable-list-item-"+i[1]+"-move-down-button"),a&256&&(u.label=i[8]),n.$set(u)},i(i){o||(p(l.$$.fragment,i),p(n.$$.fragment,i),o=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),o=!1},d(i){i&&g(e),E(l),E(n)}}}function Yt(r){let e,l,t,n;const o=[_i,mi],i=[];function a(s,u){return s[3]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){let f=e;e=a(s),e===f?i[e].p(s,u):(z(),$(i[f],1,1,()=>{i[f]=null}),j(),l=i[e],l?l.p(s,u):(l=i[e]=o[e](s),l.c()),p(l,1),l.m(t.parentNode,t))},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function mi(r){let e,l;return e=new ge({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function _i(r){let e,l;return e=new ge({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Xt(r){let e,l,t,n;const o=[pi,di],i=[];function a(s,u){return s[0]?0:1}return e=a(r),l=i[e]=o[e](r),{c(){l.c(),t=W()},l(s){l.l(s),t=W()},m(s,u){i[e].m(s,u),k(s,t,u),n=!0},p(s,u){let f=e;e=a(s),e===f?i[e].p(s,u):(z(),$(i[f],1,1,()=>{i[f]=null}),j(),l=i[e],l?l.p(s,u):(l=i[e]=o[e](s),l.c()),p(l,1),l.m(t.parentNode,t))},i(s){n||(p(l),n=!0)},o(s){$(l),n=!1},d(s){s&&g(t),i[e].d(s)}}}function di(r){let e,l;return e=new ge({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function pi(r){let e,l;return e=new ge({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function $i(r){let e,l,t,n,o,i,a,s,u,f,d,_=!r[0]&&!r[4]&&Gt(r),c=!r[0]&&!r[4]&&r[5]<=r[2]-1&&Yt(r),m=!r[4]&&Xt(r);return{c(){e=H("li"),l=H("div"),_&&_.c(),t=B(),n=P(r[1]),o=B(),c&&c.c(),i=B(),m&&m.c(),this.h()},l(b){e=y(b,"LI",{draggable:!0,class:!0,"data-testid":!0});var h=Q(e);l=y(h,"DIV",{class:!0});var C=Q(l);_&&_.l(C),t=N(C),n=V(C,r[1]),o=N(C),c&&c.l(C),C.forEach(g),i=N(h),m&&m.l(h),h.forEach(g),this.h()},h(){A(l,"class","flex flex-row items-center gap-2"),A(e,"draggable",a=!r[0]&&!r[4]),A(e,"class","orderable-item group svelte-1dcsc6y"),A(e,"data-testid",s="orderable-list-item-"+r[1]),ce(e,"readonly",r[4])},m(b,h){k(b,e,h),U(e,l),_&&_.m(l,null),U(l,t),U(l,n),U(l,o),c&&c.m(l,null),U(e,i),m&&m.m(e,null),u=!0,f||(d=[Le(e,"dragstart",r[25]),Le(e,"drop",Ke(r[26])),Le(e,"dragenter",et(Ke(r[16]))),Le(e,"dragleave",et(Ke(r[17]))),Le(e,"dragover",et(Ke(r[18])))],f=!0)},p(b,[h]){!b[0]&&!b[4]?_?(_.p(b,h),h&17&&p(_,1)):(_=Gt(b),_.c(),p(_,1),_.m(l,t)):_&&(z(),$(_,1,1,()=>{_=null}),j()),(!u||h&2)&&X(n,b[1]),!b[0]&&!b[4]&&b[5]<=b[2]-1?c?(c.p(b,h),h&53&&p(c,1)):(c=Yt(b),c.c(),p(c,1),c.m(l,null)):c&&(z(),$(c,1,1,()=>{c=null}),j()),b[4]?m&&(z(),$(m,1,1,()=>{m=null}),j()):m?(m.p(b,h),h&16&&p(m,1)):(m=Xt(b),m.c(),p(m,1),m.m(e,null)),(!u||h&17&&a!==(a=!b[0]&&!b[4]))&&A(e,"draggable",a),(!u||h&2&&s!==(s="orderable-list-item-"+b[1]))&&A(e,"data-testid",s),(!u||h&16)&&ce(e,"readonly",b[4])},i(b){u||(p(_),p(c),p(m),u=!0)},o(b){$(_),$(c),$(m),u=!1},d(b){b&&g(e),_&&_.d(),c&&c.d(),m&&m.d(),f=!1,ul(d)}}}function bi(r,e,l){const t=Rl();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:i=void 0}=e,{pinned:a=!1}=e,{readonly:s=!1}=e,{index:u=0}=e,{totalItems:f=0}=e,{moveUpButtonLabel:d=""}=e,{moveDownButtonLabel:_=""}=e,{pinButtonLabel:c=""}=e,{unpinButtonLabel:m=""}=e,{addButtonLabel:b=""}=e,{removeButtonLabel:h=""}=e;const C=(D,Be)=>{n||s||(D.dataTransfer.setData("text/plain",Be.toString()),D.dataTransfer.dropEffect="move")},F=(D,Be)=>{D.currentTarget.classList.remove("dragging-over");const xe=parseInt(D.dataTransfer.getData("text/plain"));t("moveItem",{from:xe,to:Be})},T=D=>D.currentTarget.classList.add("dragging-over"),w=D=>D.currentTarget.classList.remove("dragging-over");function O(D){Pl.call(this,r,D)}const K=()=>t("moveItem",{from:u,to:u-1}),M=()=>t("moveItem",{from:u,to:u+1}),oe=()=>t("pinItem"),G=()=>t("pinItem"),me=()=>t("addItem"),ve=()=>t("removeItem"),Te=D=>C(D,u),Ie=D=>F(D,u);return r.$$set=D=>{"static"in D&&l(0,n=D.static),"label"in D&&l(1,o=D.label),"maxPinnedItems"in D&&l(2,i=D.maxPinnedItems),"pinned"in D&&l(3,a=D.pinned),"readonly"in D&&l(4,s=D.readonly),"index"in D&&l(5,u=D.index),"totalItems"in D&&l(6,f=D.totalItems),"moveUpButtonLabel"in D&&l(7,d=D.moveUpButtonLabel),"moveDownButtonLabel"in D&&l(8,_=D.moveDownButtonLabel),"pinButtonLabel"in D&&l(9,c=D.pinButtonLabel),"unpinButtonLabel"in D&&l(10,m=D.unpinButtonLabel),"addButtonLabel"in D&&l(11,b=D.addButtonLabel),"removeButtonLabel"in D&&l(12,h=D.removeButtonLabel)},[n,o,i,a,s,u,f,d,_,c,m,b,h,t,C,F,T,w,O,K,M,oe,G,me,ve,Te,Ie]}class ke extends ne{constructor(e){super(),re(this,e,bi,$i,le,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const gi=r=>({}),Jt=r=>({});function hi(r){let e;return{c(){e=P("Items")},l(l){e=V(l,"Items")},m(l,t){k(l,e,t)},d(l){l&&g(e)}}}function wi(r){let e,l;return e=new ke({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ki(r){let e,l,t,n,o;const i=r[1].heading,a=_e(i,r,r[0],Jt),s=a||hi(),u=r[1].default,f=_e(u,r,r[0],null),d=f||wi();return{c(){e=H("div"),l=H("h5"),s&&s.c(),t=B(),n=H("ol"),d&&d.c(),this.h()},l(_){e=y(_,"DIV",{class:!0});var c=Q(e);l=y(c,"H5",{});var m=Q(l);s&&s.l(m),m.forEach(g),t=N(c),n=y(c,"OL",{class:!0});var b=Q(n);d&&d.l(b),b.forEach(g),c.forEach(g),this.h()},h(){A(n,"class","orderable-list svelte-156atv5"),A(e,"class","orderable-section svelte-156atv5")},m(_,c){k(_,e,c),U(e,l),s&&s.m(l,null),U(e,t),U(e,n),d&&d.m(n,null),o=!0},p(_,[c]){a&&a.p&&(!o||c&1)&&de(a,i,_,_[0],o?$e(i,_[0],c,gi):pe(_[0]),Jt),f&&f.p&&(!o||c&1)&&de(f,u,_,_[0],o?$e(u,_[0],c,null):pe(_[0]),null)},i(_){o||(p(s,_),p(d,_),o=!0)},o(_){$(s,_),$(d,_),o=!1},d(_){_&&g(e),s&&s.d(_),d&&d.d(_)}}}function vi(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let tt=class extends ne{constructor(e){super(),re(this,e,vi,ki,le,{})}};function Zt(r,e,l){const t=r.slice();return t[16]=e[l].label,t}function xt(r,e,l){const t=r.slice();return t[16]=e[l].label,t}function el(r,e,l){const t=r.slice();return t[16]=e[l].label,t[22]=l,t}function tl(r){let e,l;return e=new ke({props:{readonly:!0,label:S("workflows.no-headings-in-view")}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p:J,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function ll(r,e){let l,t,n;function o(){return e[13](e[16])}return t=new ke({props:{index:e[22],label:e[16],totalItems:e[5].length,addButtonLabel:S("workflows.add-column-label",{column:e[16]}),removeButtonLabel:S("workflows.remove-column-label",{column:e[16]}),moveUpButtonLabel:S("workflows.move-column-up-label",{column:e[16]}),moveDownButtonLabel:S("workflows.move-column-down-label",{column:e[16]}),pinButtonLabel:S("workflows.pin-column-label",{column:e[16]}),unpinButtonLabel:S("workflows.unpin-column-label",{column:e[16]})}}),t.$on("moveItem",e[12]),t.$on("removeItem",o),{key:r,first:null,c(){l=W(),v(t.$$.fragment),this.h()},l(i){l=W(),I(t.$$.fragment,i),this.h()},h(){this.first=l},m(i,a){k(i,l,a),L(t,i,a),n=!0},p(i,a){e=i;const s={};a&32&&(s.index=e[22]),a&32&&(s.label=e[16]),a&32&&(s.totalItems=e[5].length),a&32&&(s.addButtonLabel=S("workflows.add-column-label",{column:e[16]})),a&32&&(s.removeButtonLabel=S("workflows.remove-column-label",{column:e[16]})),a&32&&(s.moveUpButtonLabel=S("workflows.move-column-up-label",{column:e[16]})),a&32&&(s.moveDownButtonLabel=S("workflows.move-column-down-label",{column:e[16]})),a&32&&(s.pinButtonLabel=S("workflows.pin-column-label",{column:e[16]})),a&32&&(s.unpinButtonLabel=S("workflows.unpin-column-label",{column:e[16]})),t.$set(s)},i(i){n||(p(t.$$.fragment,i),n=!0)},o(i){$(t.$$.fragment,i),n=!1},d(i){i&&g(l),E(t,i)}}}function Ii(r){let e=[],l=new Map,t,n,o=Z(r[5]);const i=s=>s[16];for(let s=0;s{a=null}),j()):(a=tl(),a.c(),p(a,1),a.m(t.parentNode,t)))},i(s){if(!n){for(let u=0;u$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=nl()),{c(){for(let a=0;a{i=null}),j()):(i=nl(),i.c(),p(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s$(n[a],1,1,()=>{n[a]=null});let i=null;return t.length||(i=il()),{c(){for(let a=0;a{i=null}),j()):(i=il(),i.c(),p(i,1),i.m(e.parentNode,e))}},i(a){if(!l){for(let s=0;s(u(),u=$t(C,M=>l(6,s=M)),C),d,_=J,c=()=>(_(),_=$t(o,M=>l(7,d=M)),o);q(r,Ze,M=>l(10,i=M)),q(r,Re,M=>l(11,a=M)),r.$$.on_destroy.push(()=>u()),r.$$.on_destroy.push(()=>_());var m,b;let{table:h}=e,{availableColumns:C}=e;f();let{type:F}=e;const T=M=>ci(M.detail.from,M.detail.to,t,h),w=M=>fi(M,t,h),O=M=>qt(M,t,h),K=M=>qt(M,t,h);return r.$$set=M=>{"table"in M&&l(0,h=M.table),"availableColumns"in M&&f(l(1,C=M.availableColumns)),"type"in M&&l(2,F=M.type)},r.$$.update=()=>{r.$$.dirty&2048&&l(3,t=a.params.namespace),r.$$.dirty&1801&&l(5,n=l(9,b=l(8,m=i==null?void 0:i[t])===null||m===void 0?void 0:m[h])!==null&&b!==void 0?b:[]),r.$$.dirty&9&&c(l(4,o=oi(t,h)))},[h,C,F,t,o,n,s,d,m,b,i,a,T,w,O,K]}class Ni extends ne{constructor(e){super(),re(this,e,Bi,Ti,le,{table:0,availableColumns:1,type:2})}}function Oi(r){let e,l;return e=new Ni({props:{availableColumns:r[1],table:r[2],type:r[3]}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.availableColumns=t[1]),n&4&&(o.table=t[2]),n&8&&(o.type=t[3]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Fi(r){let e,l,t,n,o,i,a,s,u,f,d,_;return l=new Fe({props:{class:"inline",name:"add"}}),n=new Fe({props:{class:"inline",name:"chevron-selector-vertical"}}),i=new Fe({props:{class:"inline",name:"hyphen"}}),{c(){e=P("Add ("),v(l.$$.fragment),t=P("), re-arrange ("),v(n.$$.fragment),o=P("), and remove ("),v(i.$$.fragment),a=P("), "),s=P(r[3]),u=P(` Headings to personalize the `),f=P(r[4]),d=P(" Table.")},l(c){e=V(c,"Add ("),I(l.$$.fragment,c),t=V(c,"), re-arrange ("),I(n.$$.fragment,c),o=V(c,"), and remove ("),I(i.$$.fragment,c),a=V(c,"), "),s=V(c,r[3]),u=V(c,` Headings to personalize the `),f=V(c,r[4]),d=V(c," Table.")},m(c,m){k(c,e,m),L(l,c,m),k(c,t,m),L(n,c,m),k(c,o,m),L(i,c,m),k(c,a,m),k(c,s,m),k(c,u,m),k(c,f,m),k(c,d,m),_=!0},p(c,m){(!_||m&8)&&X(s,c[3]),(!_||m&16)&&X(f,c[4])},i(c){_||(p(l.$$.fragment,c),p(n.$$.fragment,c),p(i.$$.fragment,c),_=!0)},o(c){$(l.$$.fragment,c),$(n.$$.fragment,c),$(i.$$.fragment,c),_=!1},d(c){c&&(g(e),g(t),g(o),g(a),g(s),g(u),g(f),g(d)),E(l,c),E(n,c),E(i,c)}}}function Ai(r){let e,l;return e=new Zr({props:{title:S("workflows.configure-headers",{title:r[4]}),$$slots:{subtitle:[Fi],default:[Oi]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,n){const o={};n&16&&(o.title=S("workflows.configure-headers",{title:t[4]})),n&94&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Ui(r){let e,l;return e=new ni({props:{open:r[0],onClick:r[5],position:"right",id:r[2]+"-table-configuration-drawer",dark:!1,closeButtonLabel:S("workflows.close-configure-headers",{title:r[4]}),class:"w-[35vw] min-w-min max-w-fit",$$slots:{default:[Ai]},$$scope:{ctx:r}}}),{c(){v(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){L(e,t,n),l=!0},p(t,[n]){const o={};n&1&&(o.open=t[0]),n&4&&(o.id=t[2]+"-table-configuration-drawer"),n&16&&(o.closeButtonLabel=S("workflows.close-configure-headers",{title:t[4]})),n&94&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){E(e,t)}}}function Mi(r,e,l){let{availableColumns:t}=e,{open:n}=e,{table:o=Ce.WORKFLOWS}=e,{type:i}=e,{title:a}=e;const s=()=>{l(0,n=!1)};return r.$$set=u=>{"availableColumns"in u&&l(1,t=u.availableColumns),"open"in u&&l(0,n=u.open),"table"in u&&l(2,o=u.table),"type"in u&&l(3,i=u.type),"title"in u&&l(4,a=u.title)},[n,t,o,i,a,s]}class ho extends ne{constructor(e){super(),re(this,e,Mi,Ui,le,{availableColumns:1,open:0,table:2,type:3,title:4})}}export{ho as C,po as S,Ce as T,bo as a,$o as b,Ze as c}; diff --git a/ui/assets/local/_app/immutable/chunks/index.DCblj7qv.js b/ui/assets/local/_app/immutable/chunks/index.B7_EN-g2.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/index.DCblj7qv.js rename to ui/assets/local/_app/immutable/chunks/index.B7_EN-g2.js index 192f15168..949025294 100644 --- a/ui/assets/local/_app/immutable/chunks/index.DCblj7qv.js +++ b/ui/assets/local/_app/immutable/chunks/index.B7_EN-g2.js @@ -1 +1 @@ -import{h as K}from"./has.BWrERxPV.js";import{l as p,m as g,n as v,o as C,p as z,q as H,r as W,s as J,a as N,c as F,t as Q,u as _,v as h,w as V,x as G,y as L,z as X,b as P,A as x,B as Y,d as U,C as Z,D as tt,E as it,F as et,i as rt,G as nt,H as st,I as at,J as dt,K as ot,L as ut,M as R,N as M,O as k,P as T,Q as w,R as S,f as E,S as m,T as b,U as lt}from"./get-event-categorization.BzHsmJUX.js";import{i as ct}from"./index.DJYN40WT.js";import{i as Et,d as ft,g as pt}from"./get-single-attribute-for-event.B37Av_rg.js";import{h as gt}from"./format-time.6TuExJAg.js";const kt=(t,i)=>{let e;return p(t)&&(e=i.find(n=>n.activityId===t.attributes.activityId)),e},mt=(t,i)=>{let e;return g(t)&&(e=i.find(n=>n.scheduledEventId===t.id)),e},yt=(t,i)=>t.find(e=>{var n,r;if(ct(i))return e.eventIds.has(i.id);if(Et(i))return((n=e.pendingActivity)==null?void 0:n.id)===i.id;if(ft(i))return((r=e==null?void 0:e.pendingNexusOperation)==null?void 0:r.scheduledEventId)===(i==null?void 0:i.scheduledEventId)}),j=t=>v(t)||C(t)||z(t)||H(t)||W(t)||J(t)||N(t)||F(t)||Q(t)||_(t)||h(t)||V(t),vt=t=>O(t)?t.isFailureOrTimedOut:j(t),q=t=>G(t)||L(t)||X(t)||P(t)||x(t),Ct=t=>O(t)?t.isCanceled:q(t),B=t=>Y(t)||U(t),Wt=t=>O(t)?t.isTerminated:B(t),I=t=>Z(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):tt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):C(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):it(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):et(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):U(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):rt(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):P(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):N(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):F(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):nt(t)?String(t.timerFiredEventAttributes.startedEventId):L(t)?String(t.timerCanceledEventAttributes.startedEventId):st(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):at(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):dt(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):ot(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):ut(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):W(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):R(t)?String(t.nexusOperationStartedEventAttributes.scheduledEventId):M(t)?String(t.nexusOperationCompletedEventAttributes.scheduledEventId):h(t)?String(t.nexusOperationFailedEventAttributes.scheduledEventId):x(t)?String(t.nexusOperationCanceledEventAttributes.scheduledEventId):t.id,$=t=>{var i,e,n,r,u,s,c,d,l,a,f,y;if(!t)return"";if(p(t))return(e=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:e.name;if(k(t))return`${(n=t.timerStartedEventAttributes)==null?void 0:n.timerId} (${gt((r=t.timerStartedEventAttributes)==null?void 0:r.startToFireTimeout)})`;if(T(t))return(u=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:u.signalName;if(w(t))return(s=t.workflowExecutionSignaledEventAttributes)==null?void 0:s.signalName;if(S(t))return E(t)?"Local Activity":(c=t.markerRecordedEventAttributes)==null?void 0:c.markerName;if(m(t))return(l=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:l.name;if(b(t))return(y=(f=(a=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:a.acceptedRequest)==null?void 0:f.input)==null?void 0:y.name;if(g(t))return`${t.nexusOperationScheduledEventAttributes.service}.${t.nexusOperationScheduledEventAttributes.operation}`},At=t=>{if(!t)return"";if(p(t))return"Activity";if(k(t))return"Timer";if(T(t))return"Signal";if(w(t))return"Signal received";if(E(t))return"Local Activity";if(S(t))return"Marker";if(m(t))return"Child Workflow";if(b(t))return"Workflow Update";if(g(t)||R(t))return"Nexus Operation"},ht=t=>{var i,e;return t?E(t)?((e=(i=pt(t))==null?void 0:i.value)==null?void 0:e.toString())??"Local Activity":$(t):""},A=({events:t})=>{let i=0,e;for(const n of t.values()){const r=Number(n.id);r>=i&&(i=r,e=n)}return e},o=t=>{const i=I(t),e=$(t),n=At(t),r=ht(t),{timestamp:u,category:s,classification:c}=t,d=new Map,l=new Set;return d.set(t.id,t),l.add(t.id),{id:i,name:e,label:n,displayName:r,events:d,eventIds:l,initialEvent:t,timestamp:u,category:E(t)?"local-activity":s,classification:c,level:void 0,pendingActivity:void 0,pendingNexusOperation:void 0,get eventTime(){var a;return(a=this.lastEvent)==null?void 0:a.eventTime},get attributes(){var a;return(a=A(this))==null?void 0:a.attributes},get eventList(){return Array.from(this.events,([a,f])=>f)},get lastEvent(){return A(this)},get finalClassification(){return A(this).classification},get isPending(){return!!this.pendingActivity||!!this.pendingNexusOperation||k(this.initialEvent)&&this.eventList.length===1||m(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(j)},get isCanceled(){return!!this.eventList.find(q)},get isTerminated(){return!!this.eventList.find(B)}}},xt=t=>{if(p(t)||m(t)||k(t)||T(t)||w(t))return o(t);if(S(t))return E(t),o(t);if(b(t)||g(t))return o(t)},Tt=t=>{if(lt(t))return o(t)},D=(t,i,e=void 0,n=void 0)=>{if(!t)return;t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,e&&(t.pendingActivity=e),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity,n&&(t.pendingNexusOperation=n);const r=M(i)||h(i)||x(i);t.pendingNexusOperation&&r&&delete t.pendingNexusOperation},Nt=(t,i="ascending",e=[],n=[])=>{const r={},u=s=>{const c=I(s),d=xt(s),l=kt(s,e),a=mt(s,n);d?(r[d.id]=d,l&&(d.pendingActivity=l),a&&(d.pendingNexusOperation=a)):D(r[c],s,l,a)};if(i==="ascending")for(const s of t)u(s);else for(let s=t.length-1;s>=0;s--)u(t[s]);return i==="descending"?Object.values(r).reverse():Object.values(r)},O=t=>t==null?!1:K(t,"events"),Ft=(t,i="ascending")=>{const e={},n=r=>{const u=I(r),s=Tt(r);s?e[s.id]=s:D(e[u],r)};if(i==="ascending")for(const r of t)n(r);else for(let r=t.length-1;r>=0;r--)n(t[r]);return i==="descending"?Object.values(e).reverse():Object.values(e)};export{yt as a,Ft as b,Ct as c,Wt as d,vt as e,Nt as g,O as i}; +import{h as K}from"./has.BWrERxPV.js";import{l as p,m as g,n as v,o as C,p as z,q as H,r as W,s as J,a as N,c as F,t as Q,u as _,v as h,w as V,x as G,y as L,z as X,b as P,A as x,B as Y,d as U,C as Z,D as tt,E as it,F as et,i as rt,G as nt,H as st,I as at,J as dt,K as ot,L as ut,M as R,N as M,O as k,P as T,Q as w,R as S,f as E,S as m,T as b,U as lt}from"./get-event-categorization.BzHsmJUX.js";import{i as ct}from"./index.lRK1fBz3.js";import{i as Et,d as ft,g as pt}from"./get-single-attribute-for-event.C6hE5al8.js";import{h as gt}from"./format-time.6TuExJAg.js";const kt=(t,i)=>{let e;return p(t)&&(e=i.find(n=>n.activityId===t.attributes.activityId)),e},mt=(t,i)=>{let e;return g(t)&&(e=i.find(n=>n.scheduledEventId===t.id)),e},yt=(t,i)=>t.find(e=>{var n,r;if(ct(i))return e.eventIds.has(i.id);if(Et(i))return((n=e.pendingActivity)==null?void 0:n.id)===i.id;if(ft(i))return((r=e==null?void 0:e.pendingNexusOperation)==null?void 0:r.scheduledEventId)===(i==null?void 0:i.scheduledEventId)}),j=t=>v(t)||C(t)||z(t)||H(t)||W(t)||J(t)||N(t)||F(t)||Q(t)||_(t)||h(t)||V(t),vt=t=>O(t)?t.isFailureOrTimedOut:j(t),q=t=>G(t)||L(t)||X(t)||P(t)||x(t),Ct=t=>O(t)?t.isCanceled:q(t),B=t=>Y(t)||U(t),Wt=t=>O(t)?t.isTerminated:B(t),I=t=>Z(t)?String(t.activityTaskStartedEventAttributes.scheduledEventId):G(t)?String(t.activityTaskCanceledEventAttributes.scheduledEventId):tt(t)?String(t.activityTaskCancelRequestedEventAttributes.scheduledEventId):C(t)?String(t.activityTaskFailedEventAttributes.scheduledEventId):v(t)?String(t.activityTaskTimedOutEventAttributes.scheduledEventId):it(t)?String(t.activityTaskCompletedEventAttributes.scheduledEventId):et(t)?String(t.childWorkflowExecutionStartedEventAttributes.initiatedEventId):U(t)?String(t.childWorkflowExecutionTerminatedEventAttributes.initiatedEventId):rt(t)?String(t.childWorkflowExecutionCompletedEventAttributes.initiatedEventId):P(t)?String(t.childWorkflowExecutionCanceledEventAttributes.initiatedEventId):N(t)?String(t.childWorkflowExecutionFailedEventAttributes.initiatedEventId):F(t)?String(t.childWorkflowExecutionTimedOutEventAttributes.initiatedEventId):nt(t)?String(t.timerFiredEventAttributes.startedEventId):L(t)?String(t.timerCanceledEventAttributes.startedEventId):st(t)?String(t.workflowExecutionUpdateCompletedEventAttributes.acceptedEventId):at(t)?String(t.externalWorkflowExecutionSignaledEventAttributes.initiatedEventId):dt(t)?String(t.workflowTaskStartedEventAttributes.scheduledEventId):ot(t)?String(t.workflowTaskCompletedEventAttributes.scheduledEventId):ut(t)?String(t.workflowTaskFailedEventAttributes.scheduledEventId):W(t)?String(t.workflowTaskTimedOutEventAttributes.scheduledEventId):R(t)?String(t.nexusOperationStartedEventAttributes.scheduledEventId):M(t)?String(t.nexusOperationCompletedEventAttributes.scheduledEventId):h(t)?String(t.nexusOperationFailedEventAttributes.scheduledEventId):x(t)?String(t.nexusOperationCanceledEventAttributes.scheduledEventId):t.id,$=t=>{var i,e,n,r,u,s,c,d,l,a,f,y;if(!t)return"";if(p(t))return(e=(i=t.activityTaskScheduledEventAttributes)==null?void 0:i.activityType)==null?void 0:e.name;if(k(t))return`${(n=t.timerStartedEventAttributes)==null?void 0:n.timerId} (${gt((r=t.timerStartedEventAttributes)==null?void 0:r.startToFireTimeout)})`;if(T(t))return(u=t.signalExternalWorkflowExecutionInitiatedEventAttributes)==null?void 0:u.signalName;if(w(t))return(s=t.workflowExecutionSignaledEventAttributes)==null?void 0:s.signalName;if(S(t))return E(t)?"Local Activity":(c=t.markerRecordedEventAttributes)==null?void 0:c.markerName;if(m(t))return(l=(d=t.startChildWorkflowExecutionInitiatedEventAttributes)==null?void 0:d.workflowType)==null?void 0:l.name;if(b(t))return(y=(f=(a=t.workflowExecutionUpdateAcceptedEventAttributes)==null?void 0:a.acceptedRequest)==null?void 0:f.input)==null?void 0:y.name;if(g(t))return`${t.nexusOperationScheduledEventAttributes.service}.${t.nexusOperationScheduledEventAttributes.operation}`},At=t=>{if(!t)return"";if(p(t))return"Activity";if(k(t))return"Timer";if(T(t))return"Signal";if(w(t))return"Signal received";if(E(t))return"Local Activity";if(S(t))return"Marker";if(m(t))return"Child Workflow";if(b(t))return"Workflow Update";if(g(t)||R(t))return"Nexus Operation"},ht=t=>{var i,e;return t?E(t)?((e=(i=pt(t))==null?void 0:i.value)==null?void 0:e.toString())??"Local Activity":$(t):""},A=({events:t})=>{let i=0,e;for(const n of t.values()){const r=Number(n.id);r>=i&&(i=r,e=n)}return e},o=t=>{const i=I(t),e=$(t),n=At(t),r=ht(t),{timestamp:u,category:s,classification:c}=t,d=new Map,l=new Set;return d.set(t.id,t),l.add(t.id),{id:i,name:e,label:n,displayName:r,events:d,eventIds:l,initialEvent:t,timestamp:u,category:E(t)?"local-activity":s,classification:c,level:void 0,pendingActivity:void 0,pendingNexusOperation:void 0,get eventTime(){var a;return(a=this.lastEvent)==null?void 0:a.eventTime},get attributes(){var a;return(a=A(this))==null?void 0:a.attributes},get eventList(){return Array.from(this.events,([a,f])=>f)},get lastEvent(){return A(this)},get finalClassification(){return A(this).classification},get isPending(){return!!this.pendingActivity||!!this.pendingNexusOperation||k(this.initialEvent)&&this.eventList.length===1||m(this.initialEvent)&&this.eventList.length===2},get isFailureOrTimedOut(){return!!this.eventList.find(j)},get isCanceled(){return!!this.eventList.find(q)},get isTerminated(){return!!this.eventList.find(B)}}},xt=t=>{if(p(t)||m(t)||k(t)||T(t)||w(t))return o(t);if(S(t))return E(t),o(t);if(b(t)||g(t))return o(t)},Tt=t=>{if(lt(t))return o(t)},D=(t,i,e=void 0,n=void 0)=>{if(!t)return;t.events.set(i.id,i),t.eventIds.add(i.id),t.timestamp=i.timestamp,e&&(t.pendingActivity=e),t.pendingActivity&&t.eventList.length===3&&delete t.pendingActivity,n&&(t.pendingNexusOperation=n);const r=M(i)||h(i)||x(i);t.pendingNexusOperation&&r&&delete t.pendingNexusOperation},Nt=(t,i="ascending",e=[],n=[])=>{const r={},u=s=>{const c=I(s),d=xt(s),l=kt(s,e),a=mt(s,n);d?(r[d.id]=d,l&&(d.pendingActivity=l),a&&(d.pendingNexusOperation=a)):D(r[c],s,l,a)};if(i==="ascending")for(const s of t)u(s);else for(let s=t.length-1;s>=0;s--)u(t[s]);return i==="descending"?Object.values(r).reverse():Object.values(r)},O=t=>t==null?!1:K(t,"events"),Ft=(t,i="ascending")=>{const e={},n=r=>{const u=I(r),s=Tt(r);s?e[s.id]=s:D(e[u],r)};if(i==="ascending")for(const r of t)n(r);else for(let r=t.length-1;r>=0;r--)n(t[r]);return i==="descending"?Object.values(e).reverse():Object.values(e)};export{yt as a,Ft as b,Ct as c,Wt as d,vt as e,Nt as g,O as i}; diff --git a/ui/assets/local/_app/immutable/chunks/index.Bde7eNxE.js b/ui/assets/local/_app/immutable/chunks/index.Nss_n040.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/index.Bde7eNxE.js rename to ui/assets/local/_app/immutable/chunks/index.Nss_n040.js index 59d75c032..239a1c34c 100644 --- a/ui/assets/local/_app/immutable/chunks/index.Bde7eNxE.js +++ b/ui/assets/local/_app/immutable/chunks/index.Nss_n040.js @@ -1 +1 @@ -import{s as L,x as C,i as v,f as m,K as M,c as Q,z as A,A as E,a as N,h as T,b as B,j as I,k as y,d as q,m as h,n as S,u as O,g as P,e as j,p as R,t as z,l as D,H as d,q as H}from"./scheduler.C46pS-76.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as K,a as U,m as V,d as F}from"./index.dOVbn71B.js";import{c as w}from"./copy-to-clipboard.Dh7E1aVf.js";import{B as G}from"./button.C_N-TSlx.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),K(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),U(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),V(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),F(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),K(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),U(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),V(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,L,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; +import{s as L,x as C,i as v,f as m,K as M,c as Q,z as A,A as E,a as N,h as T,b as B,j as I,k as y,d as q,m as h,n as S,u as O,g as P,e as j,p as R,t as z,l as D,H as d,q as H}from"./scheduler.C46pS-76.js";import{S as W,i as X,g as Y,b as g,e as Z,t as k,c as K,a as U,m as V,d as F}from"./index.dOVbn71B.js";import{c as w}from"./copy-to-clipboard.VBIGxkFt.js";import{B as G}from"./button.C_N-TSlx.js";function $(s){let e,o,t,n,l;const u=s[11].default,p=N(u,s,s[10],null),c=p||ee(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("div"),c&&c.c(),o=B(),K(t.$$.fragment),this.h()},l(a){e=I(a,"DIV",{class:!0});var i=y(e);c&&c.l(i),o=q(i),U(t.$$.fragment,i),i.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 "+s[8]["container-class"])},m(a,i){v(a,e,i),c&&c.m(e,null),S(e,o),V(t,e,null),l=!0},p(a,i){p?p.p&&(!l||i&1024)&&O(p,u,a,a[10],l?j(u,a[10],i,null):P(a[10]),null):c&&c.p&&(!l||i&769)&&c.p(a,l?i:-1);const f={};i&8&&(f.copyIconTitle=a[3]),i&16&&(f.copySuccessIconTitle=a[4]),i&2&&(f.class=a[1]?"visible":"invisible group-hover:visible"),i&32&&(f.copied=a[5]),t.$set(f),(!l||i&256&&n!==(n="group flex items-center gap-1 "+a[8]["container-class"]))&&h(e,"class",n)},i(a){l||(k(c,a),k(t.$$.fragment,a),l=!0)},o(a){g(c,a),g(t.$$.fragment,a),l=!1},d(a){a&&m(e),c&&c.d(a),F(t)}}}function x(s){let e,o,t,n,l,u,p;const c=s[11].default,a=N(c,s,s[10],null),i=a||le(s);return t=new G({props:{copyIconTitle:s[3],copySuccessIconTitle:s[4],class:s[1]?"visible":"invisible group-hover:visible",copied:s[5]}}),t.$on("click",s[7]),{c(){e=T("button"),i&&i.c(),o=B(),K(t.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var r=y(e);i&&i.l(r),o=q(r),U(t.$$.fragment,r),r.forEach(m),this.h()},h(){h(e,"class",n="group flex items-center gap-1 break-all "+s[8]["container-class"])},m(f,r){v(f,e,r),i&&i.m(e,null),S(e,o),V(t,e,null),l=!0,u||(p=R(e,"click",s[7]),u=!0)},p(f,r){a?a.p&&(!l||r&1024)&&O(a,c,f,f[10],l?j(c,f[10],r,null):P(f[10]),null):i&&i.p&&(!l||r&769)&&i.p(f,l?r:-1);const b={};r&8&&(b.copyIconTitle=f[3]),r&16&&(b.copySuccessIconTitle=f[4]),r&2&&(b.class=f[1]?"visible":"invisible group-hover:visible"),r&32&&(b.copied=f[5]),t.$set(b),(!l||r&256&&n!==(n="group flex items-center gap-1 break-all "+f[8]["container-class"]))&&h(e,"class",n)},i(f){l||(k(i,f),k(t.$$.fragment,f),l=!0)},o(f){g(i,f),g(t.$$.fragment,f),l=!1},d(f){f&&m(e),i&&i.d(f),F(t),u=!1,p()}}}function ee(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function le(s){let e,o,t;return{c(){e=T("span"),o=z(s[0]),this.h()},l(n){e=I(n,"SPAN",{class:!0});var l=y(e);o=D(l,s[0]),l.forEach(m),this.h()},h(){h(e,"class",t=s[8].class),d(e,"select-all",!s[9].default)},m(n,l){v(n,e,l),S(e,o)},p(n,l){l&1&&H(o,n[0]),l&256&&t!==(t=n[8].class)&&h(e,"class",t),l&768&&d(e,"select-all",!n[9].default)},d(n){n&&m(e)}}}function se(s){let e,o,t,n;const l=[x,$],u=[];function p(c,a){return c[2]?0:1}return e=p(s),o=u[e]=l[e](s),{c(){o.c(),t=C()},l(c){o.l(c),t=C()},m(c,a){u[e].m(c,a),v(c,t,a),n=!0},p(c,[a]){let i=e;e=p(c),e===i?u[e].p(c,a):(Y(),g(u[i],1,1,()=>{u[i]=null}),Z(),o=u[e],o?o.p(c,a):(o=u[e]=l[e](c),o.c()),k(o,1),o.m(t.parentNode,t))},i(c){n||(k(o),n=!0)},o(c){g(o),n=!1},d(c){c&&m(t),u[e].d(c)}}}function oe(s,e,o){let t,{$$slots:n={},$$scope:l}=e;const u=M(n);let{content:p}=e,{visible:c=!1}=e,{clickAllToCopy:a=!1}=e,{copyIconTitle:i}=e,{copySuccessIconTitle:f}=e;const{copy:r,copied:b}=w();Q(s,b,_=>o(5,t=_));function J(_){r(_,p)}return s.$$set=_=>{o(8,e=A(A({},e),E(_))),"content"in _&&o(0,p=_.content),"visible"in _&&o(1,c=_.visible),"clickAllToCopy"in _&&o(2,a=_.clickAllToCopy),"copyIconTitle"in _&&o(3,i=_.copyIconTitle),"copySuccessIconTitle"in _&&o(4,f=_.copySuccessIconTitle),"$$scope"in _&&o(10,l=_.$$scope)},e=E(e),[p,c,a,i,f,t,b,J,e,u,l,n]}class ie extends W{constructor(e){super(),X(this,e,oe,se,L,{content:0,visible:1,clickAllToCopy:2,copyIconTitle:3,copySuccessIconTitle:4})}}export{ie as C}; diff --git a/ui/assets/local/_app/immutable/chunks/index.DJYN40WT.js b/ui/assets/local/_app/immutable/chunks/index.lRK1fBz3.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/index.DJYN40WT.js rename to ui/assets/local/_app/immutable/chunks/index.lRK1fBz3.js index d12019e74..eb2f27754 100644 --- a/ui/assets/local/_app/immutable/chunks/index.DJYN40WT.js +++ b/ui/assets/local/_app/immutable/chunks/index.lRK1fBz3.js @@ -1 +1 @@ -import"./entry.DLEzeuD9.js";import"./i18next.DhwiOCyc.js";import"./auth-user.BOlglCm6.js";import"./data-encoder-config.D-DAVwjK.js";import"./parse-with-big-int.BKSBwM2t.js";import{h as m}from"./has.BWrERxPV.js";import{f as r}from"./time-format.D2wF3ave.js";import{j as c,k as u}from"./get-event-categorization.BzHsmJUX.js";import{e as T}from"./screaming-enums.w0zEi9dM.js";import{a as d}from"./format-time.6TuExJAg.js";const p=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],k=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of p)if(e.includes(t))return t},w=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],y=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],g=e=>{for(const t of w)if(t===e)return!0;return!1},b=e=>{for(const t of y)if(t===e)return!0;return!1},x=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[i]=t;return!(t.length!==1||typeof e[i]!="string")},C=e=>{for(const t of Object.values(e))return t};function S(e,t=!1){for(const[i,o]of Object.entries(e))x(o)&&(e[i]=C(o)),g(i)&&!t&&(e[i]=r(o)),b(i)&&(e[i]=d(o));return e}const A=e=>{const t=String(e.eventId),i=T(e.eventType),o=r(String(e.eventTime)),n=k(i),s=u(i),{key:a,attributes:f}=c(e),l=(e==null?void 0:e.links)||[];return{...e,name:i,id:t,eventType:i,timestamp:o,classification:n,category:s,links:l,attributes:S({type:a,...f})}},q=e=>e.map(A),H=e=>e===null||typeof e!="object"||Array.isArray(e)?!1:!!m(e,"eventType"),N=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{N as f,H as i,S as s,q as t}; +import"./entry.kylZibtV.js";import"./i18next.DhwiOCyc.js";import"./auth-user.CfsLeCYD.js";import"./data-encoder-config.BAPO1ve2.js";import"./parse-with-big-int.BKSBwM2t.js";import{h as m}from"./has.BWrERxPV.js";import{f as r}from"./time-format.BLKgLEx9.js";import{j as c,k as u}from"./get-event-categorization.BzHsmJUX.js";import{e as T}from"./screaming-enums.w0zEi9dM.js";import{a as d}from"./format-time.6TuExJAg.js";const p=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],k=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const t of p)if(e.includes(t))return t},w=["closeTime","createTime","currentAttemptScheduledTime","earliestTime","eventTime","executionTime","expirationTime","expireTime","lastAccessTime","lastHeartbeatTime","lastStartedTime","lastUpdateTime","latestTime","releaseTime","scheduledTime","startedTime","startTime","workflowExecutionExpirationTime"],y=["backoffStartInterval","defaultWorkflowTaskTimeout","firstWorkflowTaskBackoff","heartbeatTimeout","initialInterval","maximumInterval","scheduleToCloseTimeout","scheduleToStartTimeout","startToCloseTimeout","startToFireTimeout","workflowExecutionRetentionPeriod","workflowExecutionRetentionTtl","workflowExecutionTimeout","workflowRunTimeout","workflowTaskTimeout"],g=e=>{for(const t of w)if(t===e)return!0;return!1},b=e=>{for(const t of y)if(t===e)return!0;return!1},x=e=>{if(e===null||e===void 0||typeof e!="object")return!1;const t=Object.keys(e),[i]=t;return!(t.length!==1||typeof e[i]!="string")},C=e=>{for(const t of Object.values(e))return t};function S(e,t=!1){for(const[i,o]of Object.entries(e))x(o)&&(e[i]=C(o)),g(i)&&!t&&(e[i]=r(o)),b(i)&&(e[i]=d(o));return e}const A=e=>{const t=String(e.eventId),i=T(e.eventType),o=r(String(e.eventTime)),n=k(i),s=u(i),{key:a,attributes:f}=c(e),l=(e==null?void 0:e.links)||[];return{...e,name:i,id:t,eventType:i,timestamp:o,classification:n,category:s,links:l,attributes:S({type:a,...f})}},q=e=>e.map(A),H=e=>e===null||typeof e!="object"||Array.isArray(e)?!1:!!m(e,"eventType"),N=e=>{const t={...e};return delete t.name,delete t.id,delete t.timestamp,delete t.classification,delete t.category,delete t.attributes,t};export{N as f,H as i,S as s,q as t}; diff --git a/ui/assets/local/_app/immutable/chunks/input.CTzUOpgs.js b/ui/assets/local/_app/immutable/chunks/input.Dizl7Mgk.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/input.CTzUOpgs.js rename to ui/assets/local/_app/immutable/chunks/input.Dizl7Mgk.js index 3d3b15f4e..a0f55439a 100644 --- a/ui/assets/local/_app/immutable/chunks/input.CTzUOpgs.js +++ b/ui/assets/local/_app/immutable/chunks/input.Dizl7Mgk.js @@ -1 +1 @@ -import{s as Ue,a as he,z as re,h as V,b as U,t as ue,j as H,k as P,d as j,f as L,l as oe,E as me,H as h,m as p,W as _e,i as W,n as q,$ as be,p as z,F as ge,a0 as je,u as ke,g as ve,e as qe,q as se,G as ze,D as Le,K as Ge,r as Ke,c as Me,A as Be,B as x,v as Oe}from"./scheduler.C46pS-76.js";import{S as We,i as Je,c as $,a as ee,m as le,t as T,g as ce,b as N,e as de,d as te}from"./index.dOVbn71B.js";import{g as Qe}from"./spread.CgU5AtxT.js";import{I as fe}from"./icon.CfkHLDdJ.js";import{L as Xe}from"./label.BlTcUXFh.js";import{c as Ye}from"./copy-to-clipboard.Dh7E1aVf.js";import{I as Ze}from"./icon-button.CDcPAnTL.js";import{t as Ie}from"./tw-merge.Ds6tgvmq.js";const ye=t=>({disabled:t[0]&1}),pe=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]});function De(t){let e,l,u;return l=new fe({props:{name:t[5]}}),{c(){e=V("span"),$(l.$$.fragment),this.h()},l(a){e=H(a,"SPAN",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","icon-container svelte-1tq4pou")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&32&&(s.name=a[5]),l.$set(s)},i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function xe(t){let e,l,u;return l=new Ze({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0,"data-testid":!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","clear-icon-container svelte-1tq4pou"),p(e,"data-testid","clear-input")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&8388608&&(s.label=a[23]),l.$set(s)},i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function $e(t){let e,l,u;return l=new fe({props:{name:"lock"}}),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","disabled-icon-container svelte-1tq4pou")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p:Oe,i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function el(t){let e,l,u,a,r,s,_;const f=[tl,ll],g=[];function R(c,m){return c[25]?0:1}return u=R(t),a=g[u]=f[u](t),{c(){e=V("div"),l=V("button"),a.c(),this.h()},l(c){e=H(c,"DIV",{class:!0});var m=P(e);l=H(m,"BUTTON",{"aria-label":!0});var C=P(l);a.l(C),C.forEach(L),m.forEach(L),this.h()},h(){p(l,"aria-label",t[22]),p(e,"class","copy-icon-container svelte-1tq4pou")},m(c,m){W(c,e,m),q(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(c,m){let C=u;u=R(c),u!==C&&(ce(),N(g[C],1,1,()=>{g[C]=null}),de(),a=g[u],a||(a=g[u]=f[u](c),a.c()),T(a,1),a.m(l,null)),(!r||m[0]&4194304)&&p(l,"aria-label",c[22])},i(c){r||(T(a),r=!0)},o(c){N(a),r=!1},d(c){c&&L(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new fe({props:{name:"copy"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(T(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function tl(t){let e,l;return e=new fe({props:{name:"checkmark"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(T(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function Te(t){let e,l,u=t[1].length+"",a,r,s;return{c(){e=V("span"),l=V("span"),a=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=H(_,"SPAN",{class:!0});var f=P(e);l=H(f,"SPAN",{class:!0});var g=P(l);a=oe(g,u),g.forEach(L),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(L),this.h()},h(){p(l,"class","svelte-1tq4pou"),h(l,"ok",t[14]-t[1].length>5),h(l,"warn",t[14]-t[1].length<=5),h(l,"error",t[14]===t[1].length),p(e,"class","count svelte-1tq4pou")},m(_,f){W(_,e,f),q(e,l),q(l,a),q(e,r),q(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&se(a,u),f[0]&16386&&h(l,"ok",_[14]-_[1].length>5),f[0]&16386&&h(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&h(l,"error",_[14]===_[1].length),f[0]&16384&&se(s,_[14])},d(_){_&&L(e)}}}function Ce(t){let e,l;return{c(){e=V("div"),l=ue(t[7]),this.h()},l(u){e=H(u,"DIV",{class:!0});var a=P(e);l=oe(a,t[7]),a.forEach(L),this.h()},h(){p(e,"class","suffix svelte-1tq4pou")},m(u,a){W(u,e,a),q(e,l)},p(u,a){a[0]&128&&se(l,u[7])},d(u){u&&L(e)}}}function nl(t){let e,l,u,a,r,s,_,f,g,R,c,m,C,G,J,Q,B,A,K,M,d,X,ne;l=new Xe({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const Y=t[35]["before-input"],E=he(Y,t,t[34],Ee);let b=t[5]&&De(t),Z=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{"data-1p-ignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":t[26]},t[32]],O={};for(let n=0;n{b=null}),de()),me(f,O=Qe(Z,[{class:"input"},(!d||o[0]&1)&&{disabled:n[0]},{"data-lpignore":"true"},{"data-1p-ignore":"true"},(!d||o[0]&16384&&g!==(g=n[14]>0?n[14]:void 0))&&{maxlength:g},(!d||o[0]&64)&&{placeholder:n[6]},(!d||o[0]&4)&&{id:n[2]},(!d||o[0]&256)&&{name:n[8]},(!d||o[0]&65536)&&{spellcheck:n[16]},(!d||o[0]&2097152)&&{required:n[21]},(!d||o[0]&2048)&&{autocomplete:n[11]},{"data-testid":n[26]},o[1]&2&&n[32]])),o[0]&2&&f.value!==n[1]&&be(f,n[1]),h(f,"disabled",n[0]),h(f,"svelte-1tq4pou",!0);let I=c;c=ae(n),c===I?~c&&S[c].p(n,o):(m&&(ce(),N(S[I],1,1,()=>{S[I]=null}),de()),~c?(m=S[c],m?m.p(n,o):(m=S[c]=y[c](n),m.c()),T(m,1),m.m(s,C)):m=null),n[14]&&!n[0]&&!n[15]?k?k.p(n,o):(k=Te(n),k.c(),k.m(s,G)):k&&(k.d(1),k=null),n[7]?v?v.p(n,o):(v=Ce(n),v.c(),v.m(s,null)):v&&(v.d(1),v=null),(!d||o[0]&1)&&h(s,"disabled",n[0]),(!d||o[0]&1048576)&&h(s,"error",n[20]),(!d||o[0]&524288)&&h(s,"noBorder",n[19]),(!d||o[0]&262144|o[1]&1)&&h(s,"unroundLeft",n[18]||n[31]["before-input"]),(!d||o[0]&131072|o[1]&1)&&h(s,"unroundRight",n[17]||n[31]["after-input"]),(!d||o[0]&4096)&&h(s,"invalid",!n[12]),D&&D.p&&(!d||o[0]&1|o[1]&8)&&ke(D,w,n,n[34],d?qe(w,n[34],o,ye):ve(n[34]),pe),(!d||o[0]&8192)&&se(A,n[13]),(!d||o[0]&1048576&&K!==(K=n[20]?"alert":null))&&p(B,"role",K),(!d||o[0]&4096)&&h(B,"invalid",!n[12]),(!d||o[0]&1048576)&&h(B,"error",n[20]),(!d||o[0]&8192)&&h(B,"hidden",!n[13]),(!d||o[0]&16777216&&M!==(M=_e(Ie("flex flex-col gap-1",n[24]))+" svelte-1tq4pou"))&&p(e,"class",M)},i(n){d||(T(l.$$.fragment,n),T(E,n),T(b),T(m),T(D,n),d=!0)},o(n){N(l.$$.fragment,n),N(E,n),N(b),N(m),N(D,n),d=!1},d(n){n&&L(e),te(l),E&&E.d(n),b&&b.d(),~c&&S[c].d(),k&&k.d(),v&&v.d(),D&&D.d(n),X=!1,ze(ne)}}}function al(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let a=Le(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:R}=e,{label:c}=e,{labelHidden:m=!1}=e,{icon:C=null}=e,{placeholder:G=""}=e,{suffix:J=""}=e,{name:Q=g}=e,{copyable:B=!1}=e,{disabled:A=!1}=e,{clearable:K=!1}=e,{autocomplete:M="off"}=e,{valid:d=!0}=e,{hintText:X=""}=e,{maxLength:ne=0}=e,{hideCount:Y=!1}=e,{spellcheck:E=null}=e,{unroundRight:b=!1}=e,{unroundLeft:Z=!1}=e,{noBorder:O=!1}=e,{autoFocus:y=!1}=e,{error:S=!1}=e,{required:ae=!1}=e,{copyButtonLabel:k=""}=e,{clearButtonLabel:v=""}=e,{class:w=""}=e,D=e["data-testid"]||g;function n(i){y&&i&&i.focus()}const o=Ke();function F(){l(1,R=""),o("clear",{})}const{copy:I,copied:ie}=Ye();Me(t,ie,i=>l(25,r=i));function Fe(i){x.call(this,t,i)}function Ne(i){x.call(this,t,i)}function Re(i){x.call(this,t,i)}function Ve(i){x.call(this,t,i)}function He(i){x.call(this,t,i)}function Pe(i){x.call(this,t,i)}function Se(){R=this.value,l(1,R)}const Ae=i=>I(i,R);return t.$$set=i=>{l(45,e=re(re({},e),Be(i))),l(32,a=Le(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,R=i.value),"label"in i&&l(3,c=i.label),"labelHidden"in i&&l(4,m=i.labelHidden),"icon"in i&&l(5,C=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,J=i.suffix),"name"in i&&l(8,Q=i.name),"copyable"in i&&l(9,B=i.copyable),"disabled"in i&&l(0,A=i.disabled),"clearable"in i&&l(10,K=i.clearable),"autocomplete"in i&&l(11,M=i.autocomplete),"valid"in i&&l(12,d=i.valid),"hintText"in i&&l(13,X=i.hintText),"maxLength"in i&&l(14,ne=i.maxLength),"hideCount"in i&&l(15,Y=i.hideCount),"spellcheck"in i&&l(16,E=i.spellcheck),"unroundRight"in i&&l(17,b=i.unroundRight),"unroundLeft"in i&&l(18,Z=i.unroundLeft),"noBorder"in i&&l(19,O=i.noBorder),"autoFocus"in i&&l(33,y=i.autoFocus),"error"in i&&l(20,S=i.error),"required"in i&&l(21,ae=i.required),"copyButtonLabel"in i&&l(22,k=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,v=i.clearButtonLabel),"class"in i&&l(24,w=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,A=A||B)},e=Be(e),[A,R,g,c,m,C,G,J,Q,B,K,M,d,X,ne,Y,E,b,Z,O,S,ae,k,v,w,r,D,n,F,I,ie,f,a,y,_,s,Fe,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends We{constructor(e){super(),Je(this,e,al,nl,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; +import{s as Ue,a as he,z as re,h as V,b as U,t as ue,j as H,k as P,d as j,f as L,l as oe,E as me,H as h,m as p,W as _e,i as W,n as q,$ as be,p as z,F as ge,a0 as je,u as ke,g as ve,e as qe,q as se,G as ze,D as Le,K as Ge,r as Ke,c as Me,A as Be,B as x,v as Oe}from"./scheduler.C46pS-76.js";import{S as We,i as Je,c as $,a as ee,m as le,t as T,g as ce,b as N,e as de,d as te}from"./index.dOVbn71B.js";import{g as Qe}from"./spread.CgU5AtxT.js";import{I as fe}from"./icon.CfkHLDdJ.js";import{L as Xe}from"./label.BlTcUXFh.js";import{c as Ye}from"./copy-to-clipboard.VBIGxkFt.js";import{I as Ze}from"./icon-button.BoA3mGH0.js";import{t as Ie}from"./tw-merge.Ds6tgvmq.js";const ye=t=>({disabled:t[0]&1}),pe=t=>({disabled:t[0]}),we=t=>({disabled:t[0]&1}),Ee=t=>({disabled:t[0]});function De(t){let e,l,u;return l=new fe({props:{name:t[5]}}),{c(){e=V("span"),$(l.$$.fragment),this.h()},l(a){e=H(a,"SPAN",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","icon-container svelte-1tq4pou")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&32&&(s.name=a[5]),l.$set(s)},i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function xe(t){let e,l,u;return l=new Ze({props:{label:t[23],icon:"close"}}),l.$on("click",t[28]),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0,"data-testid":!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","clear-icon-container svelte-1tq4pou"),p(e,"data-testid","clear-input")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p(a,r){const s={};r[0]&8388608&&(s.label=a[23]),l.$set(s)},i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function $e(t){let e,l,u;return l=new fe({props:{name:"lock"}}),{c(){e=V("div"),$(l.$$.fragment),this.h()},l(a){e=H(a,"DIV",{class:!0});var r=P(e);ee(l.$$.fragment,r),r.forEach(L),this.h()},h(){p(e,"class","disabled-icon-container svelte-1tq4pou")},m(a,r){W(a,e,r),le(l,e,null),u=!0},p:Oe,i(a){u||(T(l.$$.fragment,a),u=!0)},o(a){N(l.$$.fragment,a),u=!1},d(a){a&&L(e),te(l)}}}function el(t){let e,l,u,a,r,s,_;const f=[tl,ll],g=[];function R(c,m){return c[25]?0:1}return u=R(t),a=g[u]=f[u](t),{c(){e=V("div"),l=V("button"),a.c(),this.h()},l(c){e=H(c,"DIV",{class:!0});var m=P(e);l=H(m,"BUTTON",{"aria-label":!0});var C=P(l);a.l(C),C.forEach(L),m.forEach(L),this.h()},h(){p(l,"aria-label",t[22]),p(e,"class","copy-icon-container svelte-1tq4pou")},m(c,m){W(c,e,m),q(e,l),g[u].m(l,null),r=!0,s||(_=z(l,"click",t[43]),s=!0)},p(c,m){let C=u;u=R(c),u!==C&&(ce(),N(g[C],1,1,()=>{g[C]=null}),de(),a=g[u],a||(a=g[u]=f[u](c),a.c()),T(a,1),a.m(l,null)),(!r||m[0]&4194304)&&p(l,"aria-label",c[22])},i(c){r||(T(a),r=!0)},o(c){N(a),r=!1},d(c){c&&L(e),g[u].d(),s=!1,_()}}}function ll(t){let e,l;return e=new fe({props:{name:"copy"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(T(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function tl(t){let e,l;return e=new fe({props:{name:"checkmark"}}),{c(){$(e.$$.fragment)},l(u){ee(e.$$.fragment,u)},m(u,a){le(e,u,a),l=!0},i(u){l||(T(e.$$.fragment,u),l=!0)},o(u){N(e.$$.fragment,u),l=!1},d(u){te(e,u)}}}function Te(t){let e,l,u=t[1].length+"",a,r,s;return{c(){e=V("span"),l=V("span"),a=ue(u),r=ue("/"),s=ue(t[14]),this.h()},l(_){e=H(_,"SPAN",{class:!0});var f=P(e);l=H(f,"SPAN",{class:!0});var g=P(l);a=oe(g,u),g.forEach(L),r=oe(f,"/"),s=oe(f,t[14]),f.forEach(L),this.h()},h(){p(l,"class","svelte-1tq4pou"),h(l,"ok",t[14]-t[1].length>5),h(l,"warn",t[14]-t[1].length<=5),h(l,"error",t[14]===t[1].length),p(e,"class","count svelte-1tq4pou")},m(_,f){W(_,e,f),q(e,l),q(l,a),q(e,r),q(e,s)},p(_,f){f[0]&2&&u!==(u=_[1].length+"")&&se(a,u),f[0]&16386&&h(l,"ok",_[14]-_[1].length>5),f[0]&16386&&h(l,"warn",_[14]-_[1].length<=5),f[0]&16386&&h(l,"error",_[14]===_[1].length),f[0]&16384&&se(s,_[14])},d(_){_&&L(e)}}}function Ce(t){let e,l;return{c(){e=V("div"),l=ue(t[7]),this.h()},l(u){e=H(u,"DIV",{class:!0});var a=P(e);l=oe(a,t[7]),a.forEach(L),this.h()},h(){p(e,"class","suffix svelte-1tq4pou")},m(u,a){W(u,e,a),q(e,l)},p(u,a){a[0]&128&&se(l,u[7])},d(u){u&&L(e)}}}function nl(t){let e,l,u,a,r,s,_,f,g,R,c,m,C,G,J,Q,B,A,K,M,d,X,ne;l=new Xe({props:{required:t[21],label:t[3],hidden:t[4],for:t[2]}});const Y=t[35]["before-input"],E=he(Y,t,t[34],Ee);let b=t[5]&&De(t),Z=[{class:"input"},{disabled:t[0]},{"data-lpignore":"true"},{"data-1p-ignore":"true"},{maxlength:g=t[14]>0?t[14]:void 0},{placeholder:t[6]},{id:t[2]},{name:t[8]},{spellcheck:t[16]},{required:t[21]},{autocomplete:t[11]},{"data-testid":t[26]},t[32]],O={};for(let n=0;n{b=null}),de()),me(f,O=Qe(Z,[{class:"input"},(!d||o[0]&1)&&{disabled:n[0]},{"data-lpignore":"true"},{"data-1p-ignore":"true"},(!d||o[0]&16384&&g!==(g=n[14]>0?n[14]:void 0))&&{maxlength:g},(!d||o[0]&64)&&{placeholder:n[6]},(!d||o[0]&4)&&{id:n[2]},(!d||o[0]&256)&&{name:n[8]},(!d||o[0]&65536)&&{spellcheck:n[16]},(!d||o[0]&2097152)&&{required:n[21]},(!d||o[0]&2048)&&{autocomplete:n[11]},{"data-testid":n[26]},o[1]&2&&n[32]])),o[0]&2&&f.value!==n[1]&&be(f,n[1]),h(f,"disabled",n[0]),h(f,"svelte-1tq4pou",!0);let I=c;c=ae(n),c===I?~c&&S[c].p(n,o):(m&&(ce(),N(S[I],1,1,()=>{S[I]=null}),de()),~c?(m=S[c],m?m.p(n,o):(m=S[c]=y[c](n),m.c()),T(m,1),m.m(s,C)):m=null),n[14]&&!n[0]&&!n[15]?k?k.p(n,o):(k=Te(n),k.c(),k.m(s,G)):k&&(k.d(1),k=null),n[7]?v?v.p(n,o):(v=Ce(n),v.c(),v.m(s,null)):v&&(v.d(1),v=null),(!d||o[0]&1)&&h(s,"disabled",n[0]),(!d||o[0]&1048576)&&h(s,"error",n[20]),(!d||o[0]&524288)&&h(s,"noBorder",n[19]),(!d||o[0]&262144|o[1]&1)&&h(s,"unroundLeft",n[18]||n[31]["before-input"]),(!d||o[0]&131072|o[1]&1)&&h(s,"unroundRight",n[17]||n[31]["after-input"]),(!d||o[0]&4096)&&h(s,"invalid",!n[12]),D&&D.p&&(!d||o[0]&1|o[1]&8)&&ke(D,w,n,n[34],d?qe(w,n[34],o,ye):ve(n[34]),pe),(!d||o[0]&8192)&&se(A,n[13]),(!d||o[0]&1048576&&K!==(K=n[20]?"alert":null))&&p(B,"role",K),(!d||o[0]&4096)&&h(B,"invalid",!n[12]),(!d||o[0]&1048576)&&h(B,"error",n[20]),(!d||o[0]&8192)&&h(B,"hidden",!n[13]),(!d||o[0]&16777216&&M!==(M=_e(Ie("flex flex-col gap-1",n[24]))+" svelte-1tq4pou"))&&p(e,"class",M)},i(n){d||(T(l.$$.fragment,n),T(E,n),T(b),T(m),T(D,n),d=!0)},o(n){N(l.$$.fragment,n),N(E,n),N(b),N(m),N(D,n),d=!1},d(n){n&&L(e),te(l),E&&E.d(n),b&&b.d(),~c&&S[c].d(),k&&k.d(),v&&v.d(),D&&D.d(n),X=!1,ze(ne)}}}function al(t,e,l){const u=["id","value","label","labelHidden","icon","placeholder","suffix","name","copyable","disabled","clearable","autocomplete","valid","hintText","maxLength","hideCount","spellcheck","unroundRight","unroundLeft","noBorder","autoFocus","error","required","copyButtonLabel","clearButtonLabel","class"];let a=Le(e,u),r,{$$slots:s={},$$scope:_}=e;const f=Ge(s);let{id:g}=e,{value:R}=e,{label:c}=e,{labelHidden:m=!1}=e,{icon:C=null}=e,{placeholder:G=""}=e,{suffix:J=""}=e,{name:Q=g}=e,{copyable:B=!1}=e,{disabled:A=!1}=e,{clearable:K=!1}=e,{autocomplete:M="off"}=e,{valid:d=!0}=e,{hintText:X=""}=e,{maxLength:ne=0}=e,{hideCount:Y=!1}=e,{spellcheck:E=null}=e,{unroundRight:b=!1}=e,{unroundLeft:Z=!1}=e,{noBorder:O=!1}=e,{autoFocus:y=!1}=e,{error:S=!1}=e,{required:ae=!1}=e,{copyButtonLabel:k=""}=e,{clearButtonLabel:v=""}=e,{class:w=""}=e,D=e["data-testid"]||g;function n(i){y&&i&&i.focus()}const o=Ke();function F(){l(1,R=""),o("clear",{})}const{copy:I,copied:ie}=Ye();Me(t,ie,i=>l(25,r=i));function Fe(i){x.call(this,t,i)}function Ne(i){x.call(this,t,i)}function Re(i){x.call(this,t,i)}function Ve(i){x.call(this,t,i)}function He(i){x.call(this,t,i)}function Pe(i){x.call(this,t,i)}function Se(){R=this.value,l(1,R)}const Ae=i=>I(i,R);return t.$$set=i=>{l(45,e=re(re({},e),Be(i))),l(32,a=Le(e,u)),"id"in i&&l(2,g=i.id),"value"in i&&l(1,R=i.value),"label"in i&&l(3,c=i.label),"labelHidden"in i&&l(4,m=i.labelHidden),"icon"in i&&l(5,C=i.icon),"placeholder"in i&&l(6,G=i.placeholder),"suffix"in i&&l(7,J=i.suffix),"name"in i&&l(8,Q=i.name),"copyable"in i&&l(9,B=i.copyable),"disabled"in i&&l(0,A=i.disabled),"clearable"in i&&l(10,K=i.clearable),"autocomplete"in i&&l(11,M=i.autocomplete),"valid"in i&&l(12,d=i.valid),"hintText"in i&&l(13,X=i.hintText),"maxLength"in i&&l(14,ne=i.maxLength),"hideCount"in i&&l(15,Y=i.hideCount),"spellcheck"in i&&l(16,E=i.spellcheck),"unroundRight"in i&&l(17,b=i.unroundRight),"unroundLeft"in i&&l(18,Z=i.unroundLeft),"noBorder"in i&&l(19,O=i.noBorder),"autoFocus"in i&&l(33,y=i.autoFocus),"error"in i&&l(20,S=i.error),"required"in i&&l(21,ae=i.required),"copyButtonLabel"in i&&l(22,k=i.copyButtonLabel),"clearButtonLabel"in i&&l(23,v=i.clearButtonLabel),"class"in i&&l(24,w=i.class),"$$scope"in i&&l(34,_=i.$$scope)},t.$$.update=()=>{t.$$.dirty[0]&513&&l(0,A=A||B)},e=Be(e),[A,R,g,c,m,C,G,J,Q,B,K,M,d,X,ne,Y,E,b,Z,O,S,ae,k,v,w,r,D,n,F,I,ie,f,a,y,_,s,Fe,Ne,Re,Ve,He,Pe,Se,Ae]}class hl extends We{constructor(e){super(),Je(this,e,al,nl,Ue,{id:2,value:1,label:3,labelHidden:4,icon:5,placeholder:6,suffix:7,name:8,copyable:9,disabled:0,clearable:10,autocomplete:11,valid:12,hintText:13,maxLength:14,hideCount:15,spellcheck:16,unroundRight:17,unroundLeft:18,noBorder:19,autoFocus:33,error:20,required:21,copyButtonLabel:22,clearButtonLabel:23,class:24},null,[-1,-1])}}export{hl as I}; diff --git a/ui/assets/local/_app/immutable/chunks/link.BJceiGbc.js b/ui/assets/local/_app/immutable/chunks/link.C_v4aoat.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/link.BJceiGbc.js rename to ui/assets/local/_app/immutable/chunks/link.C_v4aoat.js index 7b8dfbf4a..67d6dab79 100644 --- a/ui/assets/local/_app/immutable/chunks/link.BJceiGbc.js +++ b/ui/assets/local/_app/immutable/chunks/link.C_v4aoat.js @@ -1 +1 @@ -import{s as K,a as M,z as q,h as N,b as C,j as P,k as B,d as D,f as A,E,H as k,i as H,n as I,p as G,F as J,u as O,g as Q,e as R,D as S,A as U,t as V,l as W,q as X}from"./scheduler.C46pS-76.js";import{S as Y,i as Z,t as v,g as y,b as L,e as p,c as w,a as x,m as $,d as ee}from"./index.dOVbn71B.js";import{g as le}from"./spread.CgU5AtxT.js";import{g as te}from"./entry.DLEzeuD9.js";import{I as ae}from"./icon.CfkHLDdJ.js";import{t as j}from"./tw-merge.Ds6tgvmq.js";function z(a){let e,t;return e=new ae({props:{class:"mt-0.5",name:a[4]}}),{c(){w(e.$$.fragment)},l(n){x(e.$$.fragment,n)},m(n,c){$(e,n,c),t=!0},p(n,c){const m={};c&16&&(m.name=n[4]),e.$set(m)},i(n){t||(v(e.$$.fragment,n),t=!0)},o(n){L(e.$$.fragment,n),t=!1},d(n){ee(e,n)}}}function F(a){let e;return{c(){e=V(a[5])},l(t){e=W(t,a[5])},m(t,n){H(t,e,n)},p(t,n){n&32&&X(e,t[5])},d(t){t&&A(e)}}}function se(a){let e,t,n,c,m,_,g,o,h,b,i=a[4]&&z(a),r=a[5]&&F(a);const d=a[10].default,u=M(d,a,a[9],null);let s=[{href:a[1]},{target:c=a[3]?"_blank":null},{rel:m=a[3]?"noreferrer":null},{class:_=j("link",a[4]?"inline-flex":"inline",a[0])},{tabindex:g=a[1]?null:0},a[8]],T={};for(let l=0;l{i=null}),p()),l[5]?r?r.p(l,f):(r=F(l),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&O(u,d,l,l[9],o?R(d,l[9],f,null):Q(l[9]),null),E(e,T=le(s,[(!o||f&2)&&{href:l[1]},(!o||f&8&&c!==(c=l[3]?"_blank":null))&&{target:c},(!o||f&8&&m!==(m=l[3]?"noreferrer":null))&&{rel:m},(!o||f&17&&_!==(_=j("link",l[4]?"inline-flex":"inline",l[0])))&&{class:_},(!o||f&2&&g!==(g=l[1]?null:0))&&{tabindex:g},f&256&&l[8]])),k(e,"active",l[2]),k(e,"light",l[6]),k(e,"svelte-99rel4",!0)},i(l){o||(v(i),v(u,l),o=!0)},o(l){L(i),L(u,l),o=!1},d(l){l&&A(e),i&&i.d(),r&&r.d(),u&&u.d(l),h=!1,b()}}}function ne(a,e,t){const n=["class","href","active","newTab","icon","text","light"];let c=S(e,n),{$$slots:m={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{light:d=!1}=e;const u=s=>{s.button===1||b||s.metaKey||(s.preventDefault(),te(o))};return a.$$set=s=>{e=q(q({},e),U(s)),t(8,c=S(e,n)),"class"in s&&t(0,g=s.class),"href"in s&&t(1,o=s.href),"active"in s&&t(2,h=s.active),"newTab"in s&&t(3,b=s.newTab),"icon"in s&&t(4,i=s.icon),"text"in s&&t(5,r=s.text),"light"in s&&t(6,d=s.light),"$$scope"in s&&t(9,_=s.$$scope)},[g,o,h,b,i,r,d,u,c,_,m]}class me extends Y{constructor(e){super(),Z(this,e,ne,se,K,{class:0,href:1,active:2,newTab:3,icon:4,text:5,light:6})}}export{me as L}; +import{s as K,a as M,z as q,h as N,b as C,j as P,k as B,d as D,f as A,E,H as k,i as H,n as I,p as G,F as J,u as O,g as Q,e as R,D as S,A as U,t as V,l as W,q as X}from"./scheduler.C46pS-76.js";import{S as Y,i as Z,t as v,g as y,b as L,e as p,c as w,a as x,m as $,d as ee}from"./index.dOVbn71B.js";import{g as le}from"./spread.CgU5AtxT.js";import{g as te}from"./entry.kylZibtV.js";import{I as ae}from"./icon.CfkHLDdJ.js";import{t as j}from"./tw-merge.Ds6tgvmq.js";function z(a){let e,t;return e=new ae({props:{class:"mt-0.5",name:a[4]}}),{c(){w(e.$$.fragment)},l(n){x(e.$$.fragment,n)},m(n,c){$(e,n,c),t=!0},p(n,c){const m={};c&16&&(m.name=n[4]),e.$set(m)},i(n){t||(v(e.$$.fragment,n),t=!0)},o(n){L(e.$$.fragment,n),t=!1},d(n){ee(e,n)}}}function F(a){let e;return{c(){e=V(a[5])},l(t){e=W(t,a[5])},m(t,n){H(t,e,n)},p(t,n){n&32&&X(e,t[5])},d(t){t&&A(e)}}}function se(a){let e,t,n,c,m,_,g,o,h,b,i=a[4]&&z(a),r=a[5]&&F(a);const d=a[10].default,u=M(d,a,a[9],null);let s=[{href:a[1]},{target:c=a[3]?"_blank":null},{rel:m=a[3]?"noreferrer":null},{class:_=j("link",a[4]?"inline-flex":"inline",a[0])},{tabindex:g=a[1]?null:0},a[8]],T={};for(let l=0;l{i=null}),p()),l[5]?r?r.p(l,f):(r=F(l),r.c(),r.m(e,n)):r&&(r.d(1),r=null),u&&u.p&&(!o||f&512)&&O(u,d,l,l[9],o?R(d,l[9],f,null):Q(l[9]),null),E(e,T=le(s,[(!o||f&2)&&{href:l[1]},(!o||f&8&&c!==(c=l[3]?"_blank":null))&&{target:c},(!o||f&8&&m!==(m=l[3]?"noreferrer":null))&&{rel:m},(!o||f&17&&_!==(_=j("link",l[4]?"inline-flex":"inline",l[0])))&&{class:_},(!o||f&2&&g!==(g=l[1]?null:0))&&{tabindex:g},f&256&&l[8]])),k(e,"active",l[2]),k(e,"light",l[6]),k(e,"svelte-99rel4",!0)},i(l){o||(v(i),v(u,l),o=!0)},o(l){L(i),L(u,l),o=!1},d(l){l&&A(e),i&&i.d(),r&&r.d(),u&&u.d(l),h=!1,b()}}}function ne(a,e,t){const n=["class","href","active","newTab","icon","text","light"];let c=S(e,n),{$$slots:m={},$$scope:_}=e,{class:g=""}=e,{href:o}=e,{active:h=!1}=e,{newTab:b=!1}=e,{icon:i=null}=e,{text:r=""}=e,{light:d=!1}=e;const u=s=>{s.button===1||b||s.metaKey||(s.preventDefault(),te(o))};return a.$$set=s=>{e=q(q({},e),U(s)),t(8,c=S(e,n)),"class"in s&&t(0,g=s.class),"href"in s&&t(1,o=s.href),"active"in s&&t(2,h=s.active),"newTab"in s&&t(3,b=s.newTab),"icon"in s&&t(4,i=s.icon),"text"in s&&t(5,r=s.text),"light"in s&&t(6,d=s.light),"$$scope"in s&&t(9,_=s.$$scope)},[g,o,h,b,i,r,d,u,c,_,m]}class me extends Y{constructor(e){super(),Z(this,e,ne,se,K,{class:0,href:1,active:2,newTab:3,icon:4,text:5,light:6})}}export{me as L}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.DmG7EKIA.js b/ui/assets/local/_app/immutable/chunks/logo.UJexZLaa.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/logo.DmG7EKIA.js rename to ui/assets/local/_app/immutable/chunks/logo.UJexZLaa.js index 63910d2ee..5def7aa51 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.DmG7EKIA.js +++ b/ui/assets/local/_app/immutable/chunks/logo.UJexZLaa.js @@ -1,3 +1,3 @@ -import{s as g,h as m,t as _,j as p,k as h,f as d,l as b,m as o,i as x,n as u,v as k,c as w}from"./scheduler.C46pS-76.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.dOVbn71B.js";import{p as E}from"./stores.Dz-RNcUk.js";import{I as G}from"./icon.CfkHLDdJ.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` +import{s as g,h as m,t as _,j as p,k as h,f as d,l as b,m as o,i as x,n as u,v as k,c as w}from"./scheduler.C46pS-76.js";import{S as $,i as y,c as C,a as F,m as I,t as M,b as Z,d as j}from"./index.dOVbn71B.js";import{p as E}from"./stores.Ds4o9nwd.js";import{I as G}from"./icon.CfkHLDdJ.js";function L(c){let e,s,n,t,r,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=m("a"),s=m("div"),n=m("div"),C(t.$$.fragment),r=_(` Give Feedback`),this.h()},l(a){e=p(a,"A",{href:!0,target:!0,"data-testid":!0,rel:!0});var l=h(e);s=p(l,"DIV",{class:!0});var f=h(s);n=p(f,"DIV",{class:!0});var v=h(n);F(t.$$.fragment,v),v.forEach(d),r=b(f,` Give Feedback`),f.forEach(d),l.forEach(d),this.h()},h(){o(n,"class","feedback-icon svelte-1909j35"),o(s,"class","feedback-button svelte-1909j35"),o(e,"href",c[0]),o(e,"target","_blank"),o(e,"data-testid","give-feedback"),o(e,"rel","noreferrer")},m(a,l){x(a,e,l),u(e,s),u(s,n),I(t,n,null),u(s,r),i=!0},p:k,i(a){i||(M(t.$$.fragment,a),i=!0)},o(a){Z(t.$$.fragment,a),i=!1},d(a){a&&d(e),j(t)}}}function P(c,e,s){let n;w(c,E,a=>s(3,n=a));var t,r;return[((r=(t=n.data)===null||t===void 0?void 0:t.settings)===null||r===void 0?void 0:r.feedbackURL)||"https://github.com/temporalio/ui/issues/new/choose"]}class q extends ${constructor(e){super(),y(this,e,P,L,g,{})}}const A="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='100px'%20height='100px'%20viewBox='0%200%20100%20100'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20version='1.1'%3e%3c!--%20Generated%20by%20Pixelmator%20Pro%202.1.3%20--%3e%3cpath%20id='Path'%20d='M65.816%2034.224%20C63.684%2018.251%2058.288%204.917%2049.999%204.917%2041.711%204.917%2036.314%2018.251%2034.182%2034.224%2018.208%2036.357%204.874%2041.753%204.874%2050.042%204.874%2058.33%2018.211%2063.727%2034.182%2065.859%2036.314%2081.83%2041.711%2095.167%2049.999%2095.167%2058.288%2095.167%2063.684%2081.83%2065.816%2065.859%2081.79%2063.727%2095.124%2058.33%2095.124%2050.042%2095.124%2041.753%2081.788%2036.357%2065.816%2034.224%20Z%20M33.661%2061.206%20C18.363%2058.997%209.44%2053.939%209.44%2050.042%209.44%2046.144%2018.363%2041.087%2033.661%2038.877%2033.324%2042.56%2033.149%2046.319%2033.149%2050.042%2033.149%2053.764%2033.324%2057.526%2033.661%2061.206%20Z%20M49.999%209.483%20C53.897%209.483%2058.954%2018.405%2061.164%2033.703%2057.483%2033.367%2053.721%2033.191%2049.999%2033.191%2046.277%2033.191%2042.515%2033.367%2038.835%2033.703%2041.044%2018.405%2046.102%209.483%2049.999%209.483%20Z%20M66.338%2061.206%20C65.585%2061.316%2062.496%2061.678%2061.715%2061.755%2061.638%2062.539%2061.273%2065.625%2061.166%2066.378%2058.956%2081.676%2053.899%2090.598%2050.001%2090.598%2046.104%2090.598%2041.047%2081.676%2038.837%2066.378%2038.73%2065.625%2038.365%2062.536%2038.288%2061.755%2037.932%2058.129%2037.717%2054.234%2037.717%2050.042%2037.717%2045.85%2037.932%2041.954%2038.288%2038.326%2041.914%2037.97%2045.809%2037.755%2050.001%2037.755%2054.194%2037.755%2058.089%2037.97%2061.715%2038.326%2062.499%2038.403%2065.585%2038.767%2066.338%2038.875%2081.636%2041.085%2090.56%2046.144%2090.56%2050.039%2090.56%2053.935%2081.636%2058.997%2066.338%2061.206%20Z'%20fill='%23ffffff'%20fill-opacity='1'%20stroke='none'/%3e%3c/svg%3e";export{q as F,A as L}; diff --git a/ui/assets/local/_app/immutable/chunks/markdown.CpYkuk44.js b/ui/assets/local/_app/immutable/chunks/markdown.BEeC1bWs.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/markdown.CpYkuk44.js rename to ui/assets/local/_app/immutable/chunks/markdown.BEeC1bWs.js index a1f65d6bc..920a3ee7b 100644 --- a/ui/assets/local/_app/immutable/chunks/markdown.CpYkuk44.js +++ b/ui/assets/local/_app/immutable/chunks/markdown.BEeC1bWs.js @@ -1 +1 @@ -import{s as f,h as d,j as _,k as p,f as c,m as a,i as k,v as u,c as w,U as m,p as y,N as I}from"./scheduler.C46pS-76.js";import{S as M,i as C}from"./index.dOVbn71B.js";import{u as E}from"./dark-mode.DlqJSTFW.js";function h(r){let e,o,s,n;return{c(){e=d("iframe"),this.h()},l(t){e=_(t,"IFRAME",{title:!0,src:!0,class:!0}),p(e).forEach(c),this.h()},h(){a(e,"title","output"),m(e.src,o="/render?content="+encodeURIComponent(r[0])+"&theme="+r[2])||a(e,"src",o),a(e,"class","w-full rounded-md shadow-md dark:shadow-slate-900")},m(t,i){k(t,e,i),r[5](e),s||(n=y(e,"load",r[3]),s=!0)},p(t,i){i&5&&!m(e.src,o="/render?content="+encodeURIComponent(t[0])+"&theme="+t[2])&&a(e,"src",o)},d(t){t&&c(e),r[5](null),s=!1,n()}}}function R(r){let e,o=r[2],s=h(r);return{c(){e=d("section"),s.c(),this.h()},l(n){e=_(n,"SECTION",{class:!0});var t=p(e);s.l(t),t.forEach(c),this.h()},h(){a(e,"class","h-full w-full")},m(n,t){k(n,e,t),s.m(e,null)},p(n,[t]){t&4&&f(o,o=n[2])?(s.d(1),s=h(n),s.c(),s.m(e,null)):s.p(n,t)},i:u,o:u,d(n){n&&c(e),s.d(n)}}}function S(r,e,o){let s,n;w(r,E,l=>o(4,n=l));let{content:t}=e,i;const b=()=>{i&&(o(1,i.height="",i),o(1,i.height=i.contentWindow.document.body.scrollHeight+2+"px",i))};function g(l){I[l?"unshift":"push"](()=>{i=l,o(1,i)})}return r.$$set=l=>{"content"in l&&o(0,t=l.content)},r.$$.update=()=>{r.$$.dirty&16&&o(2,s=n?"dark":"light")},[t,i,s,b,n,g]}class N extends M{constructor(e){super(),C(this,e,S,R,f,{content:0})}}export{N as M}; +import{s as f,h as d,j as _,k as p,f as c,m as a,i as k,v as u,c as w,U as m,p as y,N as I}from"./scheduler.C46pS-76.js";import{S as M,i as C}from"./index.dOVbn71B.js";import{u as E}from"./dark-mode.BvUzLjRz.js";function h(r){let e,o,s,n;return{c(){e=d("iframe"),this.h()},l(t){e=_(t,"IFRAME",{title:!0,src:!0,class:!0}),p(e).forEach(c),this.h()},h(){a(e,"title","output"),m(e.src,o="/render?content="+encodeURIComponent(r[0])+"&theme="+r[2])||a(e,"src",o),a(e,"class","w-full rounded-md shadow-md dark:shadow-slate-900")},m(t,i){k(t,e,i),r[5](e),s||(n=y(e,"load",r[3]),s=!0)},p(t,i){i&5&&!m(e.src,o="/render?content="+encodeURIComponent(t[0])+"&theme="+t[2])&&a(e,"src",o)},d(t){t&&c(e),r[5](null),s=!1,n()}}}function R(r){let e,o=r[2],s=h(r);return{c(){e=d("section"),s.c(),this.h()},l(n){e=_(n,"SECTION",{class:!0});var t=p(e);s.l(t),t.forEach(c),this.h()},h(){a(e,"class","h-full w-full")},m(n,t){k(n,e,t),s.m(e,null)},p(n,[t]){t&4&&f(o,o=n[2])?(s.d(1),s=h(n),s.c(),s.m(e,null)):s.p(n,t)},i:u,o:u,d(n){n&&c(e),s.d(n)}}}function S(r,e,o){let s,n;w(r,E,l=>o(4,n=l));let{content:t}=e,i;const b=()=>{i&&(o(1,i.height="",i),o(1,i.height=i.contentWindow.document.body.scrollHeight+2+"px",i))};function g(l){I[l?"unshift":"push"](()=>{i=l,o(1,i)})}return r.$$set=l=>{"content"in l&&o(0,t=l.content)},r.$$.update=()=>{r.$$.dirty&16&&o(2,s=n?"dark":"light")},[t,i,s,b,n,g]}class N extends M{constructor(e){super(),C(this,e,S,R,f,{content:0})}}export{N as M}; diff --git a/ui/assets/local/_app/immutable/chunks/menu-button.20KWkPAy.js b/ui/assets/local/_app/immutable/chunks/menu-button.DYcE3c8N.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/menu-button.20KWkPAy.js rename to ui/assets/local/_app/immutable/chunks/menu-button.DYcE3c8N.js index cc99bef6e..9a0bf9ba8 100644 --- a/ui/assets/local/_app/immutable/chunks/menu-button.20KWkPAy.js +++ b/ui/assets/local/_app/immutable/chunks/menu-button.DYcE3c8N.js @@ -1 +1 @@ -import{s as ae,z as T,D as U,K as le,r as ne,L as oe,c as V,A as ie,w as z,a as C,b as M,h as Z,x as H,d as N,j as w,k as y,f as h,m as $,H as P,i as k,u as S,g as q,e as B,t as fe,l as re,q as ue}from"./scheduler.C46pS-76.js";import{S as ce,i as me,c as j,a as F,m as K,t as g,b as p,d as L,g as R,e as X}from"./index.dOVbn71B.js";import{g as _e,a as de}from"./spread.CgU5AtxT.js";import{B as be}from"./badge.jG5hkqHT.js";import{B as ge}from"./button.BpRIS9ld.js";import{I as he}from"./icon.CfkHLDdJ.js";import{b as pe,c as ke}from"./menu.FCESMtRU.js";import{t as G}from"./tw-merge.Ds6tgvmq.js";const Ee=a=>({}),J=a=>({}),ve=a=>({}),Q=a=>({});function W(a){let t,s,n;return s=new he({props:{name:a[8]?"chevron-up":"chevron-down"}}),{c(){t=Z("div"),j(s.$$.fragment),this.h()},l(f){t=w(f,"DIV",{class:!0});var l=y(t);F(s.$$.fragment,l),l.forEach(h),this.h()},h(){$(t,"class","flex")},m(f,l){k(f,t,l),K(s,t,null),n=!0},p(f,l){const i={};l&256&&(i.name=f[8]?"chevron-up":"chevron-down"),s.$set(i)},i(f){n||(g(s.$$.fragment,f),n=!0)},o(f){p(s.$$.fragment,f),n=!1},d(f){f&&h(t),L(s)}}}function Y(a){let t,s;return t=new be({props:{class:"absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[Ie]},$$scope:{ctx:a}}}),{c(){j(t.$$.fragment)},l(n){F(t.$$.fragment,n)},m(n,f){K(t,n,f),s=!0},p(n,f){const l={};f&65540&&(l.$$scope={dirty:f,ctx:n}),t.$set(l)},i(n){s||(g(t.$$.fragment,n),s=!0)},o(n){p(t.$$.fragment,n),s=!1},d(n){L(t,n)}}}function Ie(a){let t;return{c(){t=fe(a[2])},l(s){t=re(s,a[2])},m(s,n){k(s,t,n)},p(s,n){n&4&&ue(t,s[2])},d(s){s&&h(t)}}}function De(a){let t,s,n,f,l,i,m;const v=a[15].leading,b=C(v,a,a[16],Q),I=a[15].default,_=C(I,a,a[16],null);let u=a[4]&&W(a);const E=a[15].trailing,d=C(E,a,a[16],J);let c=a[2]>0&&Y(a);return{c(){b&&b.c(),t=M(),s=Z("div"),_&&_.c(),n=M(),u&&u.c(),f=M(),d&&d.c(),l=M(),c&&c.c(),i=H(),this.h()},l(e){b&&b.l(e),t=N(e),s=w(e,"DIV",{class:!0});var r=y(s);_&&_.l(r),r.forEach(h),n=N(e),u&&u.l(e),f=N(e),d&&d.l(e),l=N(e),c&&c.l(e),i=H(),this.h()},h(){$(s,"class","flex grow items-center"),P(s,"hidden",!a[14].default)},m(e,r){b&&b.m(e,r),k(e,t,r),k(e,s,r),_&&_.m(s,null),k(e,n,r),u&&u.m(e,r),k(e,f,r),d&&d.m(e,r),k(e,l,r),c&&c.m(e,r),k(e,i,r),m=!0},p(e,r){b&&b.p&&(!m||r&65536)&&S(b,v,e,e[16],m?B(v,e[16],r,ve):q(e[16]),Q),_&&_.p&&(!m||r&65536)&&S(_,I,e,e[16],m?B(I,e[16],r,null):q(e[16]),null),(!m||r&16384)&&P(s,"hidden",!e[14].default),e[4]?u?(u.p(e,r),r&16&&g(u,1)):(u=W(e),u.c(),g(u,1),u.m(f.parentNode,f)):u&&(R(),p(u,1,1,()=>{u=null}),X()),d&&d.p&&(!m||r&65536)&&S(d,E,e,e[16],m?B(E,e[16],r,Ee):q(e[16]),J),e[2]>0?c?(c.p(e,r),r&4&&g(c,1)):(c=Y(e),c.c(),g(c,1),c.m(i.parentNode,i)):c&&(R(),p(c,1,1,()=>{c=null}),X())},i(e){m||(g(b,e),g(_,e),g(u),g(d,e),g(c),m=!0)},o(e){p(b,e),p(_,e),p(u),p(d,e),p(c),m=!1},d(e){e&&(h(t),h(s),h(n),h(f),h(l),h(i)),b&&b.d(e),_&&_.d(e),u&&u.d(e),d&&d.d(e),c&&c.d(e)}}}function Me(a){let t,s;const n=[{id:a[5]},{disabled:a[3]},{type:"button"},{"aria-haspopup":!a[3]},{"aria-controls":a[1]},{"aria-expanded":a[8]},{"aria-label":a[6]},{variant:a[7]},{class:G(a[0])},a[13]];let f={$$slots:{default:[De]},$$scope:{ctx:a}};for(let l=0;ls(8,i=o)),V(a,O,o=>s(17,l=o));const ee=()=>{D.update(o=>{let A=o;return E||(A=!o),x("click",{open:A}),A})},te=o=>{switch(o.key){case"Escape":z(D,i=!1,i);break;case"ArrowDown":o.preventDefault(),i?se():z(D,i=!0,i);break}},se=()=>{const o=Array.from(l.querySelectorAll(ke));o&&o[0]&&requestAnimationFrame(()=>o[0].focus())};return a.$$set=o=>{t=T(T({},t),ie(o)),s(13,f=U(t,n)),"class"in o&&s(0,I=o.class),"controls"in o&&s(1,_=o.controls),"count"in o&&s(2,u=o.count),"disabled"in o&&s(3,E=o.disabled),"hasIndicator"in o&&s(4,d=o.hasIndicator),"id"in o&&s(5,c=o.id),"label"in o&&s(6,e=o.label),"variant"in o&&s(7,r=o.variant),"$$scope"in o&&s(16,v=o.$$scope)},[I,_,u,E,d,c,e,r,i,D,O,ee,te,f,b,m,v]}class Ke extends ce{constructor(t){super(),me(this,t,Ne,Me,ae,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,variant:7})}}export{Ke as M}; +import{s as ae,z as T,D as U,K as le,r as ne,L as oe,c as V,A as ie,w as z,a as C,b as M,h as Z,x as H,d as N,j as w,k as y,f as h,m as $,H as P,i as k,u as S,g as q,e as B,t as fe,l as re,q as ue}from"./scheduler.C46pS-76.js";import{S as ce,i as me,c as j,a as F,m as K,t as g,b as p,d as L,g as R,e as X}from"./index.dOVbn71B.js";import{g as _e,a as de}from"./spread.CgU5AtxT.js";import{B as be}from"./badge.jG5hkqHT.js";import{B as ge}from"./button.hs88FdV4.js";import{I as he}from"./icon.CfkHLDdJ.js";import{b as pe,c as ke}from"./menu.B3Snjx4c.js";import{t as G}from"./tw-merge.Ds6tgvmq.js";const Ee=a=>({}),J=a=>({}),ve=a=>({}),Q=a=>({});function W(a){let t,s,n;return s=new he({props:{name:a[8]?"chevron-up":"chevron-down"}}),{c(){t=Z("div"),j(s.$$.fragment),this.h()},l(f){t=w(f,"DIV",{class:!0});var l=y(t);F(s.$$.fragment,l),l.forEach(h),this.h()},h(){$(t,"class","flex")},m(f,l){k(f,t,l),K(s,t,null),n=!0},p(f,l){const i={};l&256&&(i.name=f[8]?"chevron-up":"chevron-down"),s.$set(i)},i(f){n||(g(s.$$.fragment,f),n=!0)},o(f){p(s.$$.fragment,f),n=!1},d(f){f&&h(t),L(s)}}}function Y(a){let t,s;return t=new be({props:{class:"absolute right-0 top-0 origin-bottom-left translate-x-[10px] translate-y-[-10px]",type:"count",$$slots:{default:[Ie]},$$scope:{ctx:a}}}),{c(){j(t.$$.fragment)},l(n){F(t.$$.fragment,n)},m(n,f){K(t,n,f),s=!0},p(n,f){const l={};f&65540&&(l.$$scope={dirty:f,ctx:n}),t.$set(l)},i(n){s||(g(t.$$.fragment,n),s=!0)},o(n){p(t.$$.fragment,n),s=!1},d(n){L(t,n)}}}function Ie(a){let t;return{c(){t=fe(a[2])},l(s){t=re(s,a[2])},m(s,n){k(s,t,n)},p(s,n){n&4&&ue(t,s[2])},d(s){s&&h(t)}}}function De(a){let t,s,n,f,l,i,m;const v=a[15].leading,b=C(v,a,a[16],Q),I=a[15].default,_=C(I,a,a[16],null);let u=a[4]&&W(a);const E=a[15].trailing,d=C(E,a,a[16],J);let c=a[2]>0&&Y(a);return{c(){b&&b.c(),t=M(),s=Z("div"),_&&_.c(),n=M(),u&&u.c(),f=M(),d&&d.c(),l=M(),c&&c.c(),i=H(),this.h()},l(e){b&&b.l(e),t=N(e),s=w(e,"DIV",{class:!0});var r=y(s);_&&_.l(r),r.forEach(h),n=N(e),u&&u.l(e),f=N(e),d&&d.l(e),l=N(e),c&&c.l(e),i=H(),this.h()},h(){$(s,"class","flex grow items-center"),P(s,"hidden",!a[14].default)},m(e,r){b&&b.m(e,r),k(e,t,r),k(e,s,r),_&&_.m(s,null),k(e,n,r),u&&u.m(e,r),k(e,f,r),d&&d.m(e,r),k(e,l,r),c&&c.m(e,r),k(e,i,r),m=!0},p(e,r){b&&b.p&&(!m||r&65536)&&S(b,v,e,e[16],m?B(v,e[16],r,ve):q(e[16]),Q),_&&_.p&&(!m||r&65536)&&S(_,I,e,e[16],m?B(I,e[16],r,null):q(e[16]),null),(!m||r&16384)&&P(s,"hidden",!e[14].default),e[4]?u?(u.p(e,r),r&16&&g(u,1)):(u=W(e),u.c(),g(u,1),u.m(f.parentNode,f)):u&&(R(),p(u,1,1,()=>{u=null}),X()),d&&d.p&&(!m||r&65536)&&S(d,E,e,e[16],m?B(E,e[16],r,Ee):q(e[16]),J),e[2]>0?c?(c.p(e,r),r&4&&g(c,1)):(c=Y(e),c.c(),g(c,1),c.m(i.parentNode,i)):c&&(R(),p(c,1,1,()=>{c=null}),X())},i(e){m||(g(b,e),g(_,e),g(u),g(d,e),g(c),m=!0)},o(e){p(b,e),p(_,e),p(u),p(d,e),p(c),m=!1},d(e){e&&(h(t),h(s),h(n),h(f),h(l),h(i)),b&&b.d(e),_&&_.d(e),u&&u.d(e),d&&d.d(e),c&&c.d(e)}}}function Me(a){let t,s;const n=[{id:a[5]},{disabled:a[3]},{type:"button"},{"aria-haspopup":!a[3]},{"aria-controls":a[1]},{"aria-expanded":a[8]},{"aria-label":a[6]},{variant:a[7]},{class:G(a[0])},a[13]];let f={$$slots:{default:[De]},$$scope:{ctx:a}};for(let l=0;ls(8,i=o)),V(a,O,o=>s(17,l=o));const ee=()=>{D.update(o=>{let A=o;return E||(A=!o),x("click",{open:A}),A})},te=o=>{switch(o.key){case"Escape":z(D,i=!1,i);break;case"ArrowDown":o.preventDefault(),i?se():z(D,i=!0,i);break}},se=()=>{const o=Array.from(l.querySelectorAll(ke));o&&o[0]&&requestAnimationFrame(()=>o[0].focus())};return a.$$set=o=>{t=T(T({},t),ie(o)),s(13,f=U(t,n)),"class"in o&&s(0,I=o.class),"controls"in o&&s(1,_=o.controls),"count"in o&&s(2,u=o.count),"disabled"in o&&s(3,E=o.disabled),"hasIndicator"in o&&s(4,d=o.hasIndicator),"id"in o&&s(5,c=o.id),"label"in o&&s(6,e=o.label),"variant"in o&&s(7,r=o.variant),"$$scope"in o&&s(16,v=o.$$scope)},[I,_,u,E,d,c,e,r,i,D,O,ee,te,f,b,m,v]}class Ke extends ce{constructor(t){super(),me(this,t,Ne,Me,ae,{class:0,controls:1,count:2,disabled:3,hasIndicator:4,id:5,label:6,variant:7})}}export{Ke as M}; diff --git a/ui/assets/local/_app/immutable/chunks/menu.FCESMtRU.js b/ui/assets/local/_app/immutable/chunks/menu.B3Snjx4c.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/menu.FCESMtRU.js rename to ui/assets/local/_app/immutable/chunks/menu.B3Snjx4c.js index 6f0cc9fd1..9aa0febac 100644 --- a/ui/assets/local/_app/immutable/chunks/menu.FCESMtRU.js +++ b/ui/assets/local/_app/immutable/chunks/menu.B3Snjx4c.js @@ -1 +1 @@ -import{s as $,a as q,z as A,h as U,j as H,k as V,f as T,E as N,i as X,a0 as ve,u as K,g as R,e as B,D as G,r as me,a7 as pe,A as ee,v as Ee,P as Le,w as j,x as ae,L as _e,c as J,b as Y,d as Z,m as x,H as k,n as P,p as Q,F as te,G as he,t as Me,l as Oe,q as Te,a9 as ie,aa as Ie,B as ye,N as Ce}from"./scheduler.C46pS-76.js";import{S as le,i as se,t as I,b as y,g as be,e as ge,c as Ae,a as De,m as Ne,d as Se,h as ze}from"./index.dOVbn71B.js";import{g as w}from"./spread.CgU5AtxT.js";import{I as Pe}from"./icon.CfkHLDdJ.js";import{t as S}from"./tw-merge.Ds6tgvmq.js";import{a as Ue}from"./index.mPGqfhEB.js";import{w as F}from"./entry.DLEzeuD9.js";const He=(t,e)=>{const l=n=>{t&&!t.contains(n.target)&&!n.defaultPrevented&&e(n)};return document.addEventListener("click",l,!0),{destroy(){document.removeEventListener("click",l,!0)}}},Ve=t=>({open:t&2}),re=t=>({open:t[1]});function je(t){let e,l,n,u,h;const _=t[5].default,r=q(_,t,t[4],re);let d=[{class:l=S("relative",t[0])},t[3]],m={};for(let o=0;o(_(),_=Le(i,M=>l(6,h=M)),i);t.$$.on_destroy.push(()=>_());let{$$slots:d={},$$scope:m}=e,{class:o=""}=e,{open:i=F(!1)}=e;r();const L=F(!1),p=F(null),a=me(),f=()=>{h&&(a("close"),j(i,h=!1,h))};return pe(ne,{open:i,keepOpen:L,menuElement:p}),t.$$set=M=>{e=A(A({},e),ee(M)),l(3,u=G(e,n)),"class"in M&&l(0,o=M.class),"open"in M&&r(l(1,i=M.open)),"$$scope"in M&&l(4,m=M.$$scope)},[o,i,f,u,m,d]}class tt extends le{constructor(e){super(),se(this,e,qe,je,$,{class:0,open:1})}}const Ke=t=>({}),ue=t=>({}),Re=t=>({}),oe=t=>({});function Be(t){let e,l,n,u,h,_,r,d,m,o,i,L,p;const a=t[15].leading,f=q(a,t,t[14],oe),M=t[15].default,v=q(M,t,t[14],null);let b=t[1]&&fe(),g=t[5]&&ce(t);const C=t[15].trailing,O=q(C,t,t[14],ue);let z=[{role:"menuitem"},{class:d=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",t[0])},{"aria-hidden":m=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:o=t[3]?-1:0},t[13]],D={};for(let c=0;c{b=null}),ge()),(!i||s&64)&&k(u,"centered",c[6]),c[5]?g?g.p(c,s):(g=ce(c),g.c(),g.m(n,null)):g&&(g.d(1),g=null),O&&O.p&&(!i||s&16384)&&K(O,C,c,c[14],i?B(C,c[14],s,Ke):R(c[14]),ue),N(e,D=w(z,[{role:"menuitem"},(!i||s&1&&d!==(d=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",c[0])))&&{class:d},(!i||s&8&&m!==(m=c[3]?"true":"false"))&&{"aria-hidden":m},(!i||s&8)&&{"aria-disabled":c[3]},(!i||s&8&&o!==(o=c[3]?-1:0))&&{tabindex:o},s&8192&&c[13]])),k(e,"destructive",c[2]),k(e,"disabled",c[3]),k(e,"selected",c[1]),k(e,"hoverable",c[7]),k(e,"svelte-123wmc7",!0)},i(c){i||(I(f,c),I(v,c),I(b),I(O,c),i=!0)},o(c){y(f,c),y(v,c),y(b),y(O,c),i=!1},d(c){c&&T(e),f&&f.d(c),v&&v.d(c),b&&b.d(),g&&g.d(),O&&O.d(c),L=!1,he(p)}}}function Ge(t){let e,l,n,u,h,_,r,d,m;const o=t[15].default,i=q(o,t,t[14],null);let L=[{href:t[4]},{target:l=t[8]?"_blank":null},{rel:n=t[8]?"noreferrer":null},{role:"menuitem"},{class:u=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",t[0])},{"aria-hidden":h=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:_=t[3]?-1:0},t[13]],p={};for(let a=0;a{_[o]=null}),ge(),l=_[e],l?l.p(d,m):(l=_[e]=h[e](d),l.c()),I(l,1),l.m(n.parentNode,n))},i(d){u||(I(l),u=!0)},o(d){y(l),u=!1},d(d){d&&T(n),_[e].d(d)}}}const de='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function Je(t,e,l){const n=["class","selected","destructive","disabled","href","description","centered","hoverable","newTab"];let u=G(e,n),h,_,{$$slots:r={},$$scope:d}=e,{class:m=""}=e,{selected:o=void 0}=e,{destructive:i=!1}=e,{disabled:L=!1}=e,{href:p=null}=e,{description:a=null}=e,{centered:f=!1}=e,{hoverable:M=!0}=e,{newTab:v=!1}=e;const{keepOpen:b,open:g}=_e(ne);J(t,b,s=>l(17,_=s)),J(t,g,s=>l(16,h=s));const C=me(),O=s=>{switch(s.key){case"Escape":j(g,h=!1,h);break;case"ArrowDown":case"ArrowRight":z(s.currentTarget);break;case"ArrowUp":case"ArrowLeft":D(s.currentTarget);break;case" ":case"Enter":C("click"),_||j(g,h=!1,h);break}},z=s=>{let E=s.nextElementSibling;for(;E&&!E.matches(de);)E=E.nextElementSibling;E&&E instanceof HTMLLIElement&&E.focus()},D=s=>{let E=s.previousElementSibling;for(;E&&!E.matches(de);)E=E.previousElementSibling;E&&E instanceof HTMLLIElement&&E.focus()},c=()=>{_||j(g,h=!1,h),C("click")};return t.$$set=s=>{e=A(A({},e),ee(s)),l(13,u=G(e,n)),"class"in s&&l(0,m=s.class),"selected"in s&&l(1,o=s.selected),"destructive"in s&&l(2,i=s.destructive),"disabled"in s&&l(3,L=s.disabled),"href"in s&&l(4,p=s.href),"description"in s&&l(5,a=s.description),"centered"in s&&l(6,f=s.centered),"hoverable"in s&&l(7,M=s.hoverable),"newTab"in s&&l(8,v=s.newTab),"$$scope"in s&&l(14,d=s.$$scope)},[m,o,i,L,p,a,f,M,v,b,g,O,c,u,d,r]}class lt extends le{constructor(e){super(),se(this,e,Je,Xe,$,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6,hoverable:7,newTab:8})}}const ke=t=>Array.from(t.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),st=(t,e)=>{let l,n;const u=m=>{m.key==="Tab"&&(m.shiftKey?document.activeElement===l&&(n.focus(),m.preventDefault()):document.activeElement===n&&(l.focus(),m.preventDefault()))},h=(m=!1)=>{if(e===!1)return;const o=ke(t);l=o[0],n=o[o.length-1],m||l==null||l.focus(),l==null||l.addEventListener("keydown",u),n==null||n.addEventListener("keydown",u)},_=()=>{l==null||l.removeEventListener("keydown",u),n==null||n.removeEventListener("keydown",u)},r=(m,o)=>(m.length&&(_(),h(!0)),o);return new MutationObserver(r).observe(t,{childList:!0,subtree:!0}),h(),{update(m){e=m,m?h():_()},destroy(){_()}}};function Qe(t){let e,l,n,u,h,_,r,d,m;const o=t[14].default,i=q(o,t,t[13],null);let L=[{role:"menu"},{class:l=S("menu","max-h-[20rem]",t[3],t[1])},{"aria-labelledby":t[2]},{tabindex:n=-1},{style:u=t[3]==="top-right"||t[3]==="top-left"?`top: -${t[4]+16}px;`:""},{id:t[2]},t[10]],p={};for(let a=0;at[17].call(e)),k(e,"hidden",!t[5]),k(e,"svelte-1xapi5z",!0)},m(a,f){X(a,e,f),i&&i.m(e,null),t[16](e),h=Ie(e,t[17].bind(e)),r=!0,d||(m=[Q(e,"focusout",t[9]),Q(e,"click",te(t[15]))],d=!0)},p(a,[f]){i&&i.p&&(!r||f&8192)&&K(i,o,a,a[13],r?B(o,a[13],f,null):R(a[13]),null),N(e,p=w(L,[{role:"menu"},(!r||f&10&&l!==(l=S("menu","max-h-[20rem]",a[3],a[1])))&&{class:l},(!r||f&4)&&{"aria-labelledby":a[2]},{tabindex:n},(!r||f&24&&u!==(u=a[3]==="top-right"||a[3]==="top-left"?`top: -${a[4]+16}px;`:""))&&{style:u},(!r||f&4)&&{id:a[2]},f&1024&&a[10]])),k(e,"hidden",!a[5]),k(e,"svelte-1xapi5z",!0)},i(a){r||(I(i,a),a&&(_||ie(()=>{_=ze(e,Ue,{duration:100}),_.start()})),r=!0)},o(a){y(i,a),r=!1},d(a){a&&T(e),i&&i.d(a),t[16](null),h(),d=!1,he(m)}}}function We(t,e,l){let n,u;const h=["class","id","keepOpen","position","menuElement"];let _=G(e,h),r,d,m,{$$slots:o={},$$scope:i}=e,{class:L=""}=e,p=0,{id:a}=e,{keepOpen:f=!1}=e,{position:M="left"}=e,{menuElement:v=null}=e;const{keepOpen:b,menuElement:g,open:C}=_e(ne);J(t,b,s=>l(19,d=s)),J(t,g,s=>l(20,m=s)),J(t,C,s=>l(5,r=s));const O=s=>{!d&&s.target===u&&j(C,r=!1,r)};function z(s){ye.call(this,t,s)}function D(s){Ce[s?"unshift":"push"](()=>{v=s,l(0,v)})}function c(){p=this.clientHeight,l(4,p)}return t.$$set=s=>{e=A(A({},e),ee(s)),l(10,_=G(e,h)),"class"in s&&l(1,L=s.class),"id"in s&&l(2,a=s.id),"keepOpen"in s&&l(11,f=s.keepOpen),"position"in s&&l(3,M=s.position),"menuElement"in s&&l(0,v=s.menuElement),"$$scope"in s&&l(13,i=s.$$scope)},t.$$.update=()=>{t.$$.dirty&2048&&j(b,d=f,d),t.$$.dirty&1&&j(g,m=v,m),t.$$.dirty&1&&l(12,n=v?ke(v):[]),t.$$.dirty&4096&&(u=n[n.length-1])},[v,L,a,M,p,r,b,g,C,O,_,f,n,i,o,z,D,c]}class nt extends le{constructor(e){super(),se(this,e,We,Qe,$,{class:1,id:2,keepOpen:11,position:3,menuElement:0})}}export{tt as M,nt as a,ne as b,de as c,lt as d,He as e,st as f}; +import{s as $,a as q,z as A,h as U,j as H,k as V,f as T,E as N,i as X,a0 as ve,u as K,g as R,e as B,D as G,r as me,a7 as pe,A as ee,v as Ee,P as Le,w as j,x as ae,L as _e,c as J,b as Y,d as Z,m as x,H as k,n as P,p as Q,F as te,G as he,t as Me,l as Oe,q as Te,a9 as ie,aa as Ie,B as ye,N as Ce}from"./scheduler.C46pS-76.js";import{S as le,i as se,t as I,b as y,g as be,e as ge,c as Ae,a as De,m as Ne,d as Se,h as ze}from"./index.dOVbn71B.js";import{g as w}from"./spread.CgU5AtxT.js";import{I as Pe}from"./icon.CfkHLDdJ.js";import{t as S}from"./tw-merge.Ds6tgvmq.js";import{a as Ue}from"./index.mPGqfhEB.js";import{w as F}from"./entry.kylZibtV.js";const He=(t,e)=>{const l=n=>{t&&!t.contains(n.target)&&!n.defaultPrevented&&e(n)};return document.addEventListener("click",l,!0),{destroy(){document.removeEventListener("click",l,!0)}}},Ve=t=>({open:t&2}),re=t=>({open:t[1]});function je(t){let e,l,n,u,h;const _=t[5].default,r=q(_,t,t[4],re);let d=[{class:l=S("relative",t[0])},t[3]],m={};for(let o=0;o(_(),_=Le(i,M=>l(6,h=M)),i);t.$$.on_destroy.push(()=>_());let{$$slots:d={},$$scope:m}=e,{class:o=""}=e,{open:i=F(!1)}=e;r();const L=F(!1),p=F(null),a=me(),f=()=>{h&&(a("close"),j(i,h=!1,h))};return pe(ne,{open:i,keepOpen:L,menuElement:p}),t.$$set=M=>{e=A(A({},e),ee(M)),l(3,u=G(e,n)),"class"in M&&l(0,o=M.class),"open"in M&&r(l(1,i=M.open)),"$$scope"in M&&l(4,m=M.$$scope)},[o,i,f,u,m,d]}class tt extends le{constructor(e){super(),se(this,e,qe,je,$,{class:0,open:1})}}const Ke=t=>({}),ue=t=>({}),Re=t=>({}),oe=t=>({});function Be(t){let e,l,n,u,h,_,r,d,m,o,i,L,p;const a=t[15].leading,f=q(a,t,t[14],oe),M=t[15].default,v=q(M,t,t[14],null);let b=t[1]&&fe(),g=t[5]&&ce(t);const C=t[15].trailing,O=q(C,t,t[14],ue);let z=[{role:"menuitem"},{class:d=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",t[0])},{"aria-hidden":m=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:o=t[3]?-1:0},t[13]],D={};for(let c=0;c{b=null}),ge()),(!i||s&64)&&k(u,"centered",c[6]),c[5]?g?g.p(c,s):(g=ce(c),g.c(),g.m(n,null)):g&&(g.d(1),g=null),O&&O.p&&(!i||s&16384)&&K(O,C,c,c[14],i?B(C,c[14],s,Ke):R(c[14]),ue),N(e,D=w(z,[{role:"menuitem"},(!i||s&1&&d!==(d=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",c[0])))&&{class:d},(!i||s&8&&m!==(m=c[3]?"true":"false"))&&{"aria-hidden":m},(!i||s&8)&&{"aria-disabled":c[3]},(!i||s&8&&o!==(o=c[3]?-1:0))&&{tabindex:o},s&8192&&c[13]])),k(e,"destructive",c[2]),k(e,"disabled",c[3]),k(e,"selected",c[1]),k(e,"hoverable",c[7]),k(e,"svelte-123wmc7",!0)},i(c){i||(I(f,c),I(v,c),I(b),I(O,c),i=!0)},o(c){y(f,c),y(v,c),y(b),y(O,c),i=!1},d(c){c&&T(e),f&&f.d(c),v&&v.d(c),b&&b.d(),g&&g.d(),O&&O.d(c),L=!1,he(p)}}}function Ge(t){let e,l,n,u,h,_,r,d,m;const o=t[15].default,i=q(o,t,t[14],null);let L=[{href:t[4]},{target:l=t[8]?"_blank":null},{rel:n=t[8]?"noreferrer":null},{role:"menuitem"},{class:u=S("menu-item","m-1 px-3 py-2","flex items-center gap-2",t[0])},{"aria-hidden":h=t[3]?"true":"false"},{"aria-disabled":t[3]},{tabindex:_=t[3]?-1:0},t[13]],p={};for(let a=0;a{_[o]=null}),ge(),l=_[e],l?l.p(d,m):(l=_[e]=h[e](d),l.c()),I(l,1),l.m(n.parentNode,n))},i(d){u||(I(l),u=!0)},o(d){y(l),u=!1},d(d){d&&T(n),_[e].d(d)}}}const de='input, li[role="option"]:not([aria-disabled="true"]), li[role="menuitem"]:not([aria-disabled="true"])';function Je(t,e,l){const n=["class","selected","destructive","disabled","href","description","centered","hoverable","newTab"];let u=G(e,n),h,_,{$$slots:r={},$$scope:d}=e,{class:m=""}=e,{selected:o=void 0}=e,{destructive:i=!1}=e,{disabled:L=!1}=e,{href:p=null}=e,{description:a=null}=e,{centered:f=!1}=e,{hoverable:M=!0}=e,{newTab:v=!1}=e;const{keepOpen:b,open:g}=_e(ne);J(t,b,s=>l(17,_=s)),J(t,g,s=>l(16,h=s));const C=me(),O=s=>{switch(s.key){case"Escape":j(g,h=!1,h);break;case"ArrowDown":case"ArrowRight":z(s.currentTarget);break;case"ArrowUp":case"ArrowLeft":D(s.currentTarget);break;case" ":case"Enter":C("click"),_||j(g,h=!1,h);break}},z=s=>{let E=s.nextElementSibling;for(;E&&!E.matches(de);)E=E.nextElementSibling;E&&E instanceof HTMLLIElement&&E.focus()},D=s=>{let E=s.previousElementSibling;for(;E&&!E.matches(de);)E=E.previousElementSibling;E&&E instanceof HTMLLIElement&&E.focus()},c=()=>{_||j(g,h=!1,h),C("click")};return t.$$set=s=>{e=A(A({},e),ee(s)),l(13,u=G(e,n)),"class"in s&&l(0,m=s.class),"selected"in s&&l(1,o=s.selected),"destructive"in s&&l(2,i=s.destructive),"disabled"in s&&l(3,L=s.disabled),"href"in s&&l(4,p=s.href),"description"in s&&l(5,a=s.description),"centered"in s&&l(6,f=s.centered),"hoverable"in s&&l(7,M=s.hoverable),"newTab"in s&&l(8,v=s.newTab),"$$scope"in s&&l(14,d=s.$$scope)},[m,o,i,L,p,a,f,M,v,b,g,O,c,u,d,r]}class lt extends le{constructor(e){super(),se(this,e,Je,Xe,$,{class:0,selected:1,destructive:2,disabled:3,href:4,description:5,centered:6,hoverable:7,newTab:8})}}const ke=t=>Array.from(t.querySelectorAll('[href], button, textarea, input, div[contentEditable="true"], select, [tabindex][tabindex="0"]')).filter(e=>!e.hasAttribute("disabled")&&e.getAttribute("tabindex")!=="-1"),st=(t,e)=>{let l,n;const u=m=>{m.key==="Tab"&&(m.shiftKey?document.activeElement===l&&(n.focus(),m.preventDefault()):document.activeElement===n&&(l.focus(),m.preventDefault()))},h=(m=!1)=>{if(e===!1)return;const o=ke(t);l=o[0],n=o[o.length-1],m||l==null||l.focus(),l==null||l.addEventListener("keydown",u),n==null||n.addEventListener("keydown",u)},_=()=>{l==null||l.removeEventListener("keydown",u),n==null||n.removeEventListener("keydown",u)},r=(m,o)=>(m.length&&(_(),h(!0)),o);return new MutationObserver(r).observe(t,{childList:!0,subtree:!0}),h(),{update(m){e=m,m?h():_()},destroy(){_()}}};function Qe(t){let e,l,n,u,h,_,r,d,m;const o=t[14].default,i=q(o,t,t[13],null);let L=[{role:"menu"},{class:l=S("menu","max-h-[20rem]",t[3],t[1])},{"aria-labelledby":t[2]},{tabindex:n=-1},{style:u=t[3]==="top-right"||t[3]==="top-left"?`top: -${t[4]+16}px;`:""},{id:t[2]},t[10]],p={};for(let a=0;at[17].call(e)),k(e,"hidden",!t[5]),k(e,"svelte-1xapi5z",!0)},m(a,f){X(a,e,f),i&&i.m(e,null),t[16](e),h=Ie(e,t[17].bind(e)),r=!0,d||(m=[Q(e,"focusout",t[9]),Q(e,"click",te(t[15]))],d=!0)},p(a,[f]){i&&i.p&&(!r||f&8192)&&K(i,o,a,a[13],r?B(o,a[13],f,null):R(a[13]),null),N(e,p=w(L,[{role:"menu"},(!r||f&10&&l!==(l=S("menu","max-h-[20rem]",a[3],a[1])))&&{class:l},(!r||f&4)&&{"aria-labelledby":a[2]},{tabindex:n},(!r||f&24&&u!==(u=a[3]==="top-right"||a[3]==="top-left"?`top: -${a[4]+16}px;`:""))&&{style:u},(!r||f&4)&&{id:a[2]},f&1024&&a[10]])),k(e,"hidden",!a[5]),k(e,"svelte-1xapi5z",!0)},i(a){r||(I(i,a),a&&(_||ie(()=>{_=ze(e,Ue,{duration:100}),_.start()})),r=!0)},o(a){y(i,a),r=!1},d(a){a&&T(e),i&&i.d(a),t[16](null),h(),d=!1,he(m)}}}function We(t,e,l){let n,u;const h=["class","id","keepOpen","position","menuElement"];let _=G(e,h),r,d,m,{$$slots:o={},$$scope:i}=e,{class:L=""}=e,p=0,{id:a}=e,{keepOpen:f=!1}=e,{position:M="left"}=e,{menuElement:v=null}=e;const{keepOpen:b,menuElement:g,open:C}=_e(ne);J(t,b,s=>l(19,d=s)),J(t,g,s=>l(20,m=s)),J(t,C,s=>l(5,r=s));const O=s=>{!d&&s.target===u&&j(C,r=!1,r)};function z(s){ye.call(this,t,s)}function D(s){Ce[s?"unshift":"push"](()=>{v=s,l(0,v)})}function c(){p=this.clientHeight,l(4,p)}return t.$$set=s=>{e=A(A({},e),ee(s)),l(10,_=G(e,h)),"class"in s&&l(1,L=s.class),"id"in s&&l(2,a=s.id),"keepOpen"in s&&l(11,f=s.keepOpen),"position"in s&&l(3,M=s.position),"menuElement"in s&&l(0,v=s.menuElement),"$$scope"in s&&l(13,i=s.$$scope)},t.$$.update=()=>{t.$$.dirty&2048&&j(b,d=f,d),t.$$.dirty&1&&j(g,m=v,m),t.$$.dirty&1&&l(12,n=v?ke(v):[]),t.$$.dirty&4096&&(u=n[n.length-1])},[v,L,a,M,p,r,b,g,C,O,_,f,n,i,o,z,D,c]}class nt extends le{constructor(e){super(),se(this,e,We,Qe,$,{class:1,id:2,keepOpen:11,position:3,menuElement:0})}}export{tt as M,nt as a,ne as b,de as c,lt as d,He as e,st as f}; diff --git a/ui/assets/local/_app/immutable/chunks/modal.DyMhWY1J.js b/ui/assets/local/_app/immutable/chunks/modal.BxyQo5_L.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/modal.DyMhWY1J.js rename to ui/assets/local/_app/immutable/chunks/modal.BxyQo5_L.js index c24f6d3f6..dd495877d 100644 --- a/ui/assets/local/_app/immutable/chunks/modal.DyMhWY1J.js +++ b/ui/assets/local/_app/immutable/chunks/modal.BxyQo5_L.js @@ -1 +1 @@ -import{s as Te,a as ie,z as Y,h as S,b as X,t as Z,j as z,k as F,d as y,f as E,l as p,m as D,H as I,E as oe,i as w,n as T,p as W,X as Me,a0 as ke,u as se,g as ne,e as fe,q as x,G as De,D as re,r as Ee,A as de,N as Ne}from"./scheduler.C46pS-76.js";import{S as Ce,i as Ie,c as $,a as ee,m as te,t as M,g as ce,b as N,e as me,d as le}from"./index.dOVbn71B.js";import{g as Ve}from"./spread.CgU5AtxT.js";import{B as ve}from"./button.BpRIS9ld.js";import{f as je}from"./menu.FCESMtRU.js";import{I as qe}from"./icon-button.CDcPAnTL.js";import{t as ue}from"./tw-merge.Ds6tgvmq.js";const Ae=t=>({}),ge=t=>({}),Be=t=>({}),_e=t=>({});function he(t){let e,a;return e=new qe({props:{label:t[3],icon:"close",class:"float-right m-4"}}),e.$on("click",t[14]),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),a=!0},p(i,r){const m={};r&8&&(m.label=i[3]),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){le(e,i)}}}function Ge(t){let e;return{c(){e=Z(t[3])},l(a){e=p(a,t[3])},m(a,i){w(a,e,i)},p(a,i){i&8&&x(e,a[3])},d(a){a&&E(e)}}}function be(t){let e,a;return e=new ve({props:{variant:t[4],loading:t[7],disabled:t[5]||t[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[Oe]},$$scope:{ctx:t}}}),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),a=!0},p(i,r){const m={};r&16&&(m.variant=i[4]),r&128&&(m.loading=i[7]),r&160&&(m.disabled=i[5]||i[7]),r&4194308&&(m.$$scope={dirty:r,ctx:i}),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){le(e,i)}}}function Oe(t){let e;return{c(){e=Z(t[2])},l(a){e=p(a,t[2])},m(a,i){w(a,e,i)},p(a,i){i&4&&x(e,a[2])},d(a){a&&E(e)}}}function Pe(t){let e,a,i,r,m,g,u,A,_,V,j,B,h,b,G,v,C,q,n,O,H,f=!t[7]&&he(t);const L=t[20].title,d=ie(L,t,t[22],_e),R=t[20].content,c=ie(R,t,t[22],ge);b=new ve({props:{variant:"ghost",disabled:t[7],$$slots:{default:[Ge]},$$scope:{ctx:t}}}),b.$on("click",t[14]);let l=!t[1]&&be(t),k=[{id:t[9]},{class:v=ue("body",t[10])},{"aria-modal":"true"},{"aria-labelledby":C="modal-title-"+t[9]},{"data-testid":q=t[16]["data-testid"]},t[17]],J={};for(let o=0;o{f=null}),me()):f?(f.p(o,s),s&128&&M(f,1)):(f=he(o),f.c(),M(f,1),f.m(e,a)),d&&d.p&&(!n||s&4194304)&&se(d,L,o,o[22],n?fe(L,o[22],s,Be):ne(o[22]),_e),(!n||s&512&&r!==(r="modal-title-"+o[9]))&&D(i,"id",r),c&&c.p&&(!n||s&4194304)&&se(c,R,o,o[22],n?fe(R,o[22],s,Ae):ne(o[22]),ge),(!n||s&1)&&x(V,o[0]),(!n||s&1)&&I(_,"hidden",!o[0]),(!n||s&512&&j!==(j="modal-content-"+o[9]))&&D(u,"id",j);const P={};s&128&&(P.disabled=o[7]),s&4194312&&(P.$$scope={dirty:s,ctx:o}),b.$set(P),o[1]?l&&(ce(),N(l,1,1,()=>{l=null}),me()):l?(l.p(o,s),s&2&&M(l,1)):(l=be(o),l.c(),M(l,1),l.m(h,null)),oe(e,J=Ve(k,[(!n||s&512)&&{id:o[9]},(!n||s&1024&&v!==(v=ue("body",o[10])))&&{class:v},{"aria-modal":"true"},(!n||s&512&&C!==(C="modal-title-"+o[9]))&&{"aria-labelledby":C},(!n||s&65536&&q!==(q=o[16]["data-testid"]))&&{"data-testid":q},s&131072&&o[17]])),I(e,"large",o[6]),I(e,"hightlightNav",o[8]),I(e,"svelte-1e3wwdt",!0)},i(o){n||(M(f),M(d,o),M(c,o),M(b.$$.fragment,o),M(l),n=!0)},o(o){N(f),N(d,o),N(c,o),N(b.$$.fragment,o),N(l),n=!1},d(o){o&&E(e),f&&f.d(),d&&d.d(o),c&&c.d(o),le(b),l&&l.d(),t[21](null),O=!1,De(H)}}}function Se(t,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let r=re(e,i),{$$slots:m={},$$scope:g}=e,{hideConfirm:u=!1}=e,{confirmText:A}=e,{cancelText:_}=e,{confirmType:V="primary"}=e,{confirmDisabled:j=!1}=e,{large:B=!1}=e,{loading:h=!1}=e,{hightlightNav:b=!1}=e,{id:G}=e,{open:v}=e,{error:C=""}=e,{class:q=""}=e,n;const O=(l,k)=>{l?k==null||k.showModal():k==null||k.close()},H=Ee(),f=()=>{H("cancelModal"),a(18,v=!1),a(0,C="")},L=()=>{H("confirmModal")},d=()=>{a(18,v=!1)},R=l=>{l.target===n&&d()};function c(l){Ne[l?"unshift":"push"](()=>{n=l,a(11,n)})}return t.$$set=l=>{a(16,e=Y(Y({},e),de(l))),a(17,r=re(e,i)),"hideConfirm"in l&&a(1,u=l.hideConfirm),"confirmText"in l&&a(2,A=l.confirmText),"cancelText"in l&&a(3,_=l.cancelText),"confirmType"in l&&a(4,V=l.confirmType),"confirmDisabled"in l&&a(5,j=l.confirmDisabled),"large"in l&&a(6,B=l.large),"loading"in l&&a(7,h=l.loading),"hightlightNav"in l&&a(8,b=l.hightlightNav),"id"in l&&a(9,G=l.id),"open"in l&&a(18,v=l.open),"error"in l&&a(0,C=l.error),"class"in l&&a(10,q=l.class),"$$scope"in l&&a(22,g=l.$$scope)},t.$$.update=()=>{t.$$.dirty&264192&&O(v,n),t.$$.dirty&264192&&v&&n&&n.focus()},e=de(e),[C,u,A,_,V,j,B,h,b,G,q,n,f,L,d,R,e,r,v,O,m,c,g]}class Je extends Ce{constructor(e){super(),Ie(this,e,Se,Pe,Te,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:18,error:0,class:10,toggleModal:19})}get toggleModal(){return this.$$.ctx[19]}}export{Je as M}; +import{s as Te,a as ie,z as Y,h as S,b as X,t as Z,j as z,k as F,d as y,f as E,l as p,m as D,H as I,E as oe,i as w,n as T,p as W,X as Me,a0 as ke,u as se,g as ne,e as fe,q as x,G as De,D as re,r as Ee,A as de,N as Ne}from"./scheduler.C46pS-76.js";import{S as Ce,i as Ie,c as $,a as ee,m as te,t as M,g as ce,b as N,e as me,d as le}from"./index.dOVbn71B.js";import{g as Ve}from"./spread.CgU5AtxT.js";import{B as ve}from"./button.hs88FdV4.js";import{f as je}from"./menu.B3Snjx4c.js";import{I as qe}from"./icon-button.BoA3mGH0.js";import{t as ue}from"./tw-merge.Ds6tgvmq.js";const Ae=t=>({}),ge=t=>({}),Be=t=>({}),_e=t=>({});function he(t){let e,a;return e=new qe({props:{label:t[3],icon:"close",class:"float-right m-4"}}),e.$on("click",t[14]),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),a=!0},p(i,r){const m={};r&8&&(m.label=i[3]),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){le(e,i)}}}function Ge(t){let e;return{c(){e=Z(t[3])},l(a){e=p(a,t[3])},m(a,i){w(a,e,i)},p(a,i){i&8&&x(e,a[3])},d(a){a&&E(e)}}}function be(t){let e,a;return e=new ve({props:{variant:t[4],loading:t[7],disabled:t[5]||t[7],"data-testid":"confirm-modal-button",type:"submit",$$slots:{default:[Oe]},$$scope:{ctx:t}}}),{c(){$(e.$$.fragment)},l(i){ee(e.$$.fragment,i)},m(i,r){te(e,i,r),a=!0},p(i,r){const m={};r&16&&(m.variant=i[4]),r&128&&(m.loading=i[7]),r&160&&(m.disabled=i[5]||i[7]),r&4194308&&(m.$$scope={dirty:r,ctx:i}),e.$set(m)},i(i){a||(M(e.$$.fragment,i),a=!0)},o(i){N(e.$$.fragment,i),a=!1},d(i){le(e,i)}}}function Oe(t){let e;return{c(){e=Z(t[2])},l(a){e=p(a,t[2])},m(a,i){w(a,e,i)},p(a,i){i&4&&x(e,a[2])},d(a){a&&E(e)}}}function Pe(t){let e,a,i,r,m,g,u,A,_,V,j,B,h,b,G,v,C,q,n,O,H,f=!t[7]&&he(t);const L=t[20].title,d=ie(L,t,t[22],_e),R=t[20].content,c=ie(R,t,t[22],ge);b=new ve({props:{variant:"ghost",disabled:t[7],$$slots:{default:[Ge]},$$scope:{ctx:t}}}),b.$on("click",t[14]);let l=!t[1]&&be(t),k=[{id:t[9]},{class:v=ue("body",t[10])},{"aria-modal":"true"},{"aria-labelledby":C="modal-title-"+t[9]},{"data-testid":q=t[16]["data-testid"]},t[17]],J={};for(let o=0;o{f=null}),me()):f?(f.p(o,s),s&128&&M(f,1)):(f=he(o),f.c(),M(f,1),f.m(e,a)),d&&d.p&&(!n||s&4194304)&&se(d,L,o,o[22],n?fe(L,o[22],s,Be):ne(o[22]),_e),(!n||s&512&&r!==(r="modal-title-"+o[9]))&&D(i,"id",r),c&&c.p&&(!n||s&4194304)&&se(c,R,o,o[22],n?fe(R,o[22],s,Ae):ne(o[22]),ge),(!n||s&1)&&x(V,o[0]),(!n||s&1)&&I(_,"hidden",!o[0]),(!n||s&512&&j!==(j="modal-content-"+o[9]))&&D(u,"id",j);const P={};s&128&&(P.disabled=o[7]),s&4194312&&(P.$$scope={dirty:s,ctx:o}),b.$set(P),o[1]?l&&(ce(),N(l,1,1,()=>{l=null}),me()):l?(l.p(o,s),s&2&&M(l,1)):(l=be(o),l.c(),M(l,1),l.m(h,null)),oe(e,J=Ve(k,[(!n||s&512)&&{id:o[9]},(!n||s&1024&&v!==(v=ue("body",o[10])))&&{class:v},{"aria-modal":"true"},(!n||s&512&&C!==(C="modal-title-"+o[9]))&&{"aria-labelledby":C},(!n||s&65536&&q!==(q=o[16]["data-testid"]))&&{"data-testid":q},s&131072&&o[17]])),I(e,"large",o[6]),I(e,"hightlightNav",o[8]),I(e,"svelte-1e3wwdt",!0)},i(o){n||(M(f),M(d,o),M(c,o),M(b.$$.fragment,o),M(l),n=!0)},o(o){N(f),N(d,o),N(c,o),N(b.$$.fragment,o),N(l),n=!1},d(o){o&&E(e),f&&f.d(),d&&d.d(o),c&&c.d(o),le(b),l&&l.d(),t[21](null),O=!1,De(H)}}}function Se(t,e,a){const i=["hideConfirm","confirmText","cancelText","confirmType","confirmDisabled","large","loading","hightlightNav","id","open","error","class","toggleModal"];let r=re(e,i),{$$slots:m={},$$scope:g}=e,{hideConfirm:u=!1}=e,{confirmText:A}=e,{cancelText:_}=e,{confirmType:V="primary"}=e,{confirmDisabled:j=!1}=e,{large:B=!1}=e,{loading:h=!1}=e,{hightlightNav:b=!1}=e,{id:G}=e,{open:v}=e,{error:C=""}=e,{class:q=""}=e,n;const O=(l,k)=>{l?k==null||k.showModal():k==null||k.close()},H=Ee(),f=()=>{H("cancelModal"),a(18,v=!1),a(0,C="")},L=()=>{H("confirmModal")},d=()=>{a(18,v=!1)},R=l=>{l.target===n&&d()};function c(l){Ne[l?"unshift":"push"](()=>{n=l,a(11,n)})}return t.$$set=l=>{a(16,e=Y(Y({},e),de(l))),a(17,r=re(e,i)),"hideConfirm"in l&&a(1,u=l.hideConfirm),"confirmText"in l&&a(2,A=l.confirmText),"cancelText"in l&&a(3,_=l.cancelText),"confirmType"in l&&a(4,V=l.confirmType),"confirmDisabled"in l&&a(5,j=l.confirmDisabled),"large"in l&&a(6,B=l.large),"loading"in l&&a(7,h=l.loading),"hightlightNav"in l&&a(8,b=l.hightlightNav),"id"in l&&a(9,G=l.id),"open"in l&&a(18,v=l.open),"error"in l&&a(0,C=l.error),"class"in l&&a(10,q=l.class),"$$scope"in l&&a(22,g=l.$$scope)},t.$$.update=()=>{t.$$.dirty&264192&&O(v,n),t.$$.dirty&264192&&v&&n&&n.focus()},e=de(e),[C,u,A,_,V,j,B,h,b,G,q,n,f,L,d,R,e,r,v,O,m,c,g]}class Je extends Ce{constructor(e){super(),Ie(this,e,Se,Pe,Te,{hideConfirm:1,confirmText:2,cancelText:3,confirmType:4,confirmDisabled:5,large:6,loading:7,hightlightNav:8,id:9,open:18,error:0,class:10,toggleModal:19})}get toggleModal(){return this.$$.ctx[19]}}export{Je as M}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces-service.24nHfQvn.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.CPFqCmJx.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/namespaces-service.24nHfQvn.js rename to ui/assets/local/_app/immutable/chunks/namespaces-service.CPFqCmJx.js index 4035a8fe0..30e4f4091 100644 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.24nHfQvn.js +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.CPFqCmJx.js @@ -1 +1 @@ -import{n as c}from"./namespaces.619_s9Tr.js";import{t as m}from"./toaster.D-OAJjvv.js";import{p as u}from"./paginated.BsR1kdqH.js";import{r as p,a as f}from"./route-for-api.BTloiRV6.js";import{t as i,a as y}from"./screaming-enums.w0zEi9dM.js";const v={namespaces:[]},h=t=>{var e;return t.config&&(t.config.historyArchivalState=i(t.config.historyArchivalState),t.config.visibilityArchivalState=i(t.config.visibilityArchivalState)),t.namespaceInfo&&(t.namespaceInfo.state=y((e=t.namespaceInfo)==null?void 0:e.state)),t};async function I(t,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:r}=t;if(r.isCloud){c.set([]);return}try{const s=p("namespaces"),a=await u(async n=>f(s,{request:e,token:n,onError:()=>m.push({variant:"error",message:"Unable to fetch namespaces"})})),l=((a==null?void 0:a.namespaces)??[]).filter(n=>o||n.namespaceInfo.name!=="temporal-system").map(h);c.set(l)}catch{c.set([])}}async function d(t,e,o=fetch){const[r]=v.namespaces,s=p("namespace",{namespace:t}),a=await f(s,{request:o,onError:()=>m.push({variant:"error",message:"Unable to fetch namespaces"})});return a?h(a):r}export{I as a,d as f}; +import{n as c}from"./namespaces.DEm0M_ie.js";import{t as m}from"./toaster.p5hsABhI.js";import{p as u}from"./paginated.CfuFFT3F.js";import{r as p,a as f}from"./route-for-api.DGDQNXtX.js";import{t as i,a as y}from"./screaming-enums.w0zEi9dM.js";const v={namespaces:[]},h=t=>{var e;return t.config&&(t.config.historyArchivalState=i(t.config.historyArchivalState),t.config.visibilityArchivalState=i(t.config.visibilityArchivalState)),t.namespaceInfo&&(t.namespaceInfo.state=y((e=t.namespaceInfo)==null?void 0:e.state)),t};async function I(t,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:r}=t;if(r.isCloud){c.set([]);return}try{const s=p("namespaces"),a=await u(async n=>f(s,{request:e,token:n,onError:()=>m.push({variant:"error",message:"Unable to fetch namespaces"})})),l=((a==null?void 0:a.namespaces)??[]).filter(n=>o||n.namespaceInfo.name!=="temporal-system").map(h);c.set(l)}catch{c.set([])}}async function d(t,e,o=fetch){const[r]=v.namespaces,s=p("namespace",{namespace:t}),a=await f(s,{request:o,onError:()=>m.push({variant:"error",message:"Unable to fetch namespaces"})});return a?h(a):r}export{I as a,d as f}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.619_s9Tr.js b/ui/assets/local/_app/immutable/chunks/namespaces.619_s9Tr.js deleted file mode 100644 index 3adadb8a8..000000000 --- a/ui/assets/local/_app/immutable/chunks/namespaces.619_s9Tr.js +++ /dev/null @@ -1 +0,0 @@ -import{w as s}from"./entry.DLEzeuD9.js";import{p as a}from"./persist-store.Bvu2qNDI.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces.DEm0M_ie.js b/ui/assets/local/_app/immutable/chunks/namespaces.DEm0M_ie.js new file mode 100644 index 000000000..182a0cee4 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/namespaces.DEm0M_ie.js @@ -0,0 +1 @@ +import{w as s}from"./entry.kylZibtV.js";import{p as a}from"./persist-store.DeOEcwHN.js";const r=a("lastNamespace","default",!0),o=s([]);export{r as l,o as n}; diff --git a/ui/assets/local/_app/immutable/chunks/nexus-form.BNYVknO-.js b/ui/assets/local/_app/immutable/chunks/nexus-form.sJTgAfD6.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/nexus-form.BNYVknO-.js rename to ui/assets/local/_app/immutable/chunks/nexus-form.sJTgAfD6.js index f4ed9c213..9ff3a158c 100644 --- a/ui/assets/local/_app/immutable/chunks/nexus-form.BNYVknO-.js +++ b/ui/assets/local/_app/immutable/chunks/nexus-form.sJTgAfD6.js @@ -1,2 +1,2 @@ const __vite__fileDeps=["./index.BGOuuoxm.js","./preload-helper.D6kgxu3v.js","../assets/index.CJGLmN9A.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{s as we,x as Me,i as z,f as h,c as Ce,a as Ne,u as De,g as Ee,e as Te,h as O,j as y,k as G,m as J,v as re,r as ze,V as Be,M as Ke,N as ue,b as I,t as te,d as L,l as ne,o as Ge,n as v,O as pe,w as Re,q as Je}from"./scheduler.C46pS-76.js";import{S as Pe,i as Ie,g as Qe,b as $,e as je,t as k,f as ge,c as S,a as F,m as H,d as A}from"./index.dOVbn71B.js";import{w as Ue}from"./entry.DLEzeuD9.js";import{p as We}from"./stores.Dz-RNcUk.js";import{A as Xe}from"./alert.nnKn2vnv.js";import{C as Oe}from"./combobox.Iz37dSfH.js";import{I as Se}from"./input.CTzUOpgs.js";import{_ as Ye}from"./preload-helper.D6kgxu3v.js";import{u as Ze}from"./dark-mode.DlqJSTFW.js";import{M as xe}from"./markdown.CpYkuk44.js";import{T as et,a as Fe}from"./toggle-buttons.Cubqph53.js";import{t as E}from"./translate.BBe5dcco.js";const tt=s=>({}),He=s=>({});function nt(s){let e;const t=s[3].fallback,n=Ne(t,s,s[2],He);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,l){n&&n.m(a,l),e=!0},p(a,l){n&&n.p&&(!e||l&4)&&De(n,t,a,a[2],e?Te(t,a[2],l,tt):Ee(a[2]),He)},i(a){e||(k(n,a),e=!0)},o(a){$(n,a),e=!1},d(a){n&&n.d(a)}}}function st(s){let e;const t=s[3].default,n=Ne(t,s,s[2],null);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,l){n&&n.m(a,l),e=!0},p(a,l){n&&n.p&&(!e||l&4)&&De(n,t,a,a[2],e?Te(t,a[2],l,null):Ee(a[2]),null)},i(a){e||(k(n,a),e=!0)},o(a){$(n,a),e=!1},d(a){n&&n.d(a)}}}function lt(s){let e,t,n,a;const l=[st,nt],r=[];function _(c,f){var m,w,T;return c[0]||(T=(w=(m=c[1].data)==null?void 0:m.settings)==null?void 0:w.runtimeEnvironment)!=null&&T.isCloud?0:1}return e=_(s),t=r[e]=l[e](s),{c(){t.c(),n=Me()},l(c){t.l(c),n=Me()},m(c,f){r[e].m(c,f),z(c,n,f),a=!0},p(c,[f]){let m=e;e=_(c),e===m?r[e].p(c,f):(Qe(),$(r[m],1,1,()=>{r[m]=null}),je(),t=r[e],t?t.p(c,f):(t=r[e]=l[e](c),t.c()),k(t,1),t.m(n.parentNode,n))},i(c){a||(k(t),a=!0)},o(c){$(t),a=!1},d(c){c&&h(n),r[e].d(c)}}}function at(s,e,t){let n;Ce(s,We,_=>t(1,n=_));let{$$slots:a={},$$scope:l}=e,{isCloud:r=!1}=e;return s.$$set=_=>{"isCloud"in _&&t(0,r=_.isCloud),"$$scope"in _&&t(2,l=_.$$scope)},[r,n,l,a]}class ot extends Pe{constructor(e){super(),Ie(this,e,at,lt,we,{isCloud:0})}}function rt(s){let e;return{c(){e=O("div"),this.h()},l(t){e=y(t,"DIV",{class:!0}),G(e).forEach(h),this.h()},h(){J(e,"class","h-full min-h-80")},m(t,n){z(t,e,n),s[4](e)},p:re,i:re,o:re,d(t){t&&h(e),s[4](null)}}}function it(s,e,t){let n;Ce(s,Ze,f=>t(3,n=f));const a=ze();let l,r,{content:_=""}=e;Be(async()=>{t(2,l=(await Ye(()=>import("./index.BGOuuoxm.js").then(w=>w.i),__vite__mapDeps([0,1,2]),import.meta.url)).default);const f=l.editor.create(r,{language:"markdown"}),m=l.editor.createModel(_,"markdown");m.onDidChangeContent(()=>{const w=m.getValue();a("change",{value:w})}),f.setModel(m)}),Ke(()=>{l==null||l.editor.getModels().forEach(f=>f.dispose())});function c(f){ue[f?"unshift":"push"](()=>{r=f,t(0,r)})}return s.$$set=f=>{"content"in f&&t(1,_=f.content)},s.$$.update=()=>{s.$$.dirty&12&&(n?l==null||l.editor.setTheme("vs-dark"):l==null||l.editor.setTheme("vs"))},[r,_,l,n,c]}class ut extends Pe{constructor(e){super(),Ie(this,e,it,rt,we,{content:1})}}const ct=s=>({}),Ae=s=>({});function ft(s){let e,t,n=E("nexus.access-policy")+"",a,l,r,_=E("nexus.allowed-caller-namespaces-description")+"",c,f,m,w,T;function B(d){s[20](d)}let N={id:"caller-namespace-filter-menu",multiselect:!0,displayChips:!1,options:s[12],label:E("nexus.allowed-caller-namespaces"),leadingIcon:"search",noResultsText:E("common.no-results"),valid:!!s[9].length,error:"Please select at least one Namespace.",placeholder:E("nexus.select-namespaces"),optionValueKey:"value",optionLabelKey:"label"};return s[9]!==void 0&&(N.value=s[9]),m=new Oe({props:N}),ue.push(()=>ge(m,"value",B)),{c(){e=O("div"),t=O("p"),a=te(n),l=I(),r=O("p"),c=te(_),f=I(),S(m.$$.fragment),this.h()},l(d){e=y(d,"DIV",{class:!0});var b=G(e);t=y(b,"P",{class:!0});var g=G(t);a=ne(g,n),g.forEach(h),l=L(b),r=y(b,"P",{class:!0});var p=G(r);c=ne(p,_),p.forEach(h),b.forEach(h),f=L(d),F(m.$$.fragment,d),this.h()},h(){J(t,"class","text-base text-primary"),J(r,"class","text-xs text-secondary"),J(e,"class","flex flex-col gap-0")},m(d,b){z(d,e,b),v(e,t),v(t,a),v(e,l),v(e,r),v(r,c),z(d,f,b),H(m,d,b),T=!0},p(d,b){const g={};b[0]&4096&&(g.options=d[12]),b[0]&512&&(g.valid=!!d[9].length),!w&&b[0]&512&&(w=!0,g.value=d[9],pe(()=>w=!1)),m.$set(g)},i(d){T||(k(m.$$.fragment,d),T=!0)},o(d){$(m.$$.fragment,d),T=!1},d(d){d&&(h(e),h(f)),A(m,d)}}}function mt(s){let e=E("common.description")+"",t;return{c(){t=te(e)},l(n){t=ne(n,e)},m(n,a){z(n,t,a)},p:re,d(n){n&&h(t)}}}function dt(s){let e=E("common.preview")+"",t;return{c(){t=te(e)},l(n){t=ne(n,e)},m(n,a){z(n,t,a)},p:re,d(n){n&&h(t)}}}function _t(s){let e,t,n,a;return e=new Fe({props:{active:s[10]===!1,"data-testid":"description-editor",$$slots:{default:[mt]},$$scope:{ctx:s}}}),e.$on("click",s[21]),n=new Fe({props:{active:s[10]===!0,"data-testid":"description-preview",$$slots:{default:[dt]},$$scope:{ctx:s}}}),n.$on("click",s[22]),{c(){S(e.$$.fragment),t=I(),S(n.$$.fragment)},l(l){F(e.$$.fragment,l),t=L(l),F(n.$$.fragment,l)},m(l,r){H(e,l,r),z(l,t,r),H(n,l,r),a=!0},p(l,r){const _={};r[0]&1024&&(_.active=l[10]===!1),r[0]&16777216&&(_.$$scope={dirty:r,ctx:l}),e.$set(_);const c={};r[0]&1024&&(c.active=l[10]===!0),r[0]&16777216&&(c.$$scope={dirty:r,ctx:l}),n.$set(c)},i(l){a||(k(e.$$.fragment,l),k(n.$$.fragment,l),a=!0)},o(l){$(e.$$.fragment,l),$(n.$$.fragment,l),a=!1},d(l){l&&h(t),A(e,l),A(n,l)}}}function pt(s){let e,t;return e=new ut({props:{content:s[6]}}),e.$on("change",s[23]),{c(){S(e.$$.fragment)},l(n){F(e.$$.fragment,n)},m(n,a){H(e,n,a),t=!0},p(n,a){const l={};a[0]&64&&(l.content=n[6]),e.$set(l)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){$(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function gt(s){let e,t;return e=new xe({props:{content:s[6]}}),{c(){S(e.$$.fragment)},l(n){F(e.$$.fragment,n)},m(n,a){H(e,n,a),t=!0},p(n,a){const l={};a[0]&64&&(l.content=n[6]),e.$set(l)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){$(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vt(s){var n;let e=((n=s[1])==null?void 0:n.message)+"",t;return{c(){t=te(e)},l(a){t=ne(a,e)},m(a,l){z(a,t,l)},p(a,l){var r;l[0]&2&&e!==(e=((r=a[1])==null?void 0:r.message)+"")&&Je(t,e)},d(a){a&&h(t)}}}function bt(s){var Le;let e,t,n,a,l,r,_=E("nexus.target")+"",c,f,m,w=E("nexus.target-description")+"",T,B,N,d,b,g,p,se,V,le,M,ae,R,D,C,U,q,x="Do not include sensitive data.",W,X,K,Y;function ve(o){s[17](o)}let ce={required:!0,disabled:s[2],error:!s[5]||!s[11](s[5]),hintText:s[4],label:E("nexus.endpoint-name"),id:"name",maxLength:255,placeholder:E("nexus.endpoint-name-placeholder")};s[5]!==void 0&&(ce.value=s[5]),t=new Se({props:ce}),ue.push(()=>ge(t,"value",ve));function be(o){s[18](o)}let fe={label:E("nexus.target-namespace"),noResultsText:E("common.no-results"),valid:!!s[7],error:"Please select a target Namespace.",required:!0,id:"target-namespace",placeholder:E("nexus.select-namespace"),leadingIcon:"namespace-switcher",options:s[0],optionValueKey:"namespace",minSize:32};s[7]!==void 0&&(fe.value=s[7]),N=new Oe({props:fe}),ue.push(()=>ge(N,"value",be));function he(o){s[19](o)}let me={required:!0,error:!s[8],label:E("common.task-queue"),id:"task-queue",placeholder:E("nexus.task-queue-placeholder")};s[8]!==void 0&&(me.value=s[8]),g=new Se({props:me}),ue.push(()=>ge(g,"value",he)),V=new ot({props:{isCloud:s[3],$$slots:{default:[ft]},$$scope:{ctx:s}}}),M=new et({props:{$$slots:{default:[_t]},$$scope:{ctx:s}}});const u=[gt,pt],Q=[];function de(o,i){return o[10]?0:1}D=de(s),C=Q[D]=u[D](s);const ie=s[16].footer,P=Ne(ie,s,s[24],Ae);return K=new Xe({props:{title:(Le=s[1])==null?void 0:Le.statusText,intent:"error",hidden:!s[1],$$slots:{default:[vt]},$$scope:{ctx:s}}}),{c(){e=O("div"),S(t.$$.fragment),a=I(),l=O("div"),r=O("p"),c=te(_),f=I(),m=O("p"),T=te(w),B=I(),S(N.$$.fragment),b=I(),S(g.$$.fragment),se=I(),S(V.$$.fragment),le=I(),S(M.$$.fragment),ae=I(),R=O("div"),C.c(),U=I(),q=O("p"),q.textContent=x,W=I(),P&&P.c(),X=I(),S(K.$$.fragment),this.h()},l(o){e=y(o,"DIV",{class:!0});var i=G(e);F(t.$$.fragment,i),a=L(i),l=y(i,"DIV",{class:!0});var j=G(l);r=y(j,"P",{class:!0});var ee=G(r);c=ne(ee,_),ee.forEach(h),f=L(j),m=y(j,"P",{class:!0});var oe=G(m);T=ne(oe,w),oe.forEach(h),j.forEach(h),B=L(i),F(N.$$.fragment,i),b=L(i),F(g.$$.fragment,i),se=L(i),F(V.$$.fragment,i),le=L(i),F(M.$$.fragment,i),ae=L(i),R=y(i,"DIV",{});var Z=G(R);C.l(Z),U=L(Z),q=y(Z,"P",{class:!0,"data-svelte-h":!0}),Ge(q)!=="svelte-11lgqx1"&&(q.textContent=x),Z.forEach(h),W=L(i),P&&P.l(i),i.forEach(h),X=L(o),F(K.$$.fragment,o),this.h()},h(){J(r,"class","text-base text-primary"),J(m,"class","text-xs text-secondary"),J(l,"class","flex flex-col gap-0"),J(q,"class","my-2 text-xs text-secondary"),J(e,"class","flex w-full flex-col gap-4 xl:w-1/2")},m(o,i){z(o,e,i),H(t,e,null),v(e,a),v(e,l),v(l,r),v(r,c),v(l,f),v(l,m),v(m,T),v(e,B),H(N,e,null),v(e,b),H(g,e,null),v(e,se),H(V,e,null),v(e,le),H(M,e,null),v(e,ae),v(e,R),Q[D].m(R,null),v(R,U),v(R,q),v(e,W),P&&P.m(e,null),z(o,X,i),H(K,o,i),Y=!0},p(o,i){var qe;const j={};i[0]&4&&(j.disabled=o[2]),i[0]&2080&&(j.error=!o[5]||!o[11](o[5])),i[0]&16&&(j.hintText=o[4]),!n&&i[0]&32&&(n=!0,j.value=o[5],pe(()=>n=!1)),t.$set(j);const ee={};i[0]&128&&(ee.valid=!!o[7]),i[0]&1&&(ee.options=o[0]),!d&&i[0]&128&&(d=!0,ee.value=o[7],pe(()=>d=!1)),N.$set(ee);const oe={};i[0]&256&&(oe.error=!o[8]),!p&&i[0]&256&&(p=!0,oe.value=o[8],pe(()=>p=!1)),g.$set(oe);const Z={};i[0]&8&&(Z.isCloud=o[3]),i[0]&16781824&&(Z.$$scope={dirty:i,ctx:o}),V.$set(Z);const Ve={};i[0]&16778240&&(Ve.$$scope={dirty:i,ctx:o}),M.$set(Ve);let $e=D;D=de(o),D===$e?Q[D].p(o,i):(Qe(),$(Q[$e],1,1,()=>{Q[$e]=null}),je(),C=Q[D],C?C.p(o,i):(C=Q[D]=u[D](o),C.c()),k(C,1),C.m(R,U)),P&&P.p&&(!Y||i[0]&16777216)&&De(P,ie,o,o[24],Y?Te(ie,o[24],i,ct):Ee(o[24]),Ae);const _e={};i[0]&2&&(_e.title=(qe=o[1])==null?void 0:qe.statusText),i[0]&2&&(_e.hidden=!o[1]),i[0]&16777218&&(_e.$$scope={dirty:i,ctx:o}),K.$set(_e)},i(o){Y||(k(t.$$.fragment,o),k(N.$$.fragment,o),k(g.$$.fragment,o),k(V.$$.fragment,o),k(M.$$.fragment,o),k(C),k(P,o),k(K.$$.fragment,o),Y=!0)},o(o){$(t.$$.fragment,o),$(N.$$.fragment,o),$(g.$$.fragment,o),$(V.$$.fragment,o),$(M.$$.fragment,o),$(C),$(P,o),$(K.$$.fragment,o),Y=!1},d(o){o&&(h(e),h(X)),A(t),A(N),A(g),A(V),A(M),Q[D].d(),P&&P.d(o),A(K,o)}}}const ye={spec:{name:"",descriptionString:"",target:{worker:{namespace:"",taskQueue:""}},allowedCallerNamespaces:[]}},ke=Ue(ye);function ht(s,e,t){let n,a,l,r=re;Ce(s,ke,u=>t(34,l=u)),s.$$.on_destroy.push(()=>r());let{$$slots:_={},$$scope:c}=e;var f,m,w,T,B,N,d,b,g;let{endpoint:p=void 0}=e,{targetNamespaceList:se=[]}=e,{callerNamespaceList:V=[]}=e,{error:le=void 0}=e,{nameDisabled:M=!1}=e,{isCloud:ae=!0}=e,{nameHintText:R}=e,{nameRegexPattern:D}=e,C=((f=p==null?void 0:p.spec)===null||f===void 0?void 0:f.name)||"",U=((m=p==null?void 0:p.spec)===null||m===void 0?void 0:m.descriptionString)||"",q=((B=(T=(w=p==null?void 0:p.spec)===null||w===void 0?void 0:w.target)===null||T===void 0?void 0:T.worker)===null||B===void 0?void 0:B.namespace)||"",x=((b=(d=(N=p==null?void 0:p.spec)===null||N===void 0?void 0:N.target)===null||d===void 0?void 0:d.worker)===null||b===void 0?void 0:b.taskQueue)||"",W=((g=p==null?void 0:p.spec)===null||g===void 0?void 0:g.allowedCallerNamespaces)||[],X=!1;const K=(u,Q,de,ie,P)=>{Re(ke,l={spec:{name:u,descriptionString:Q,target:{worker:{namespace:de,taskQueue:ie}},allowedCallerNamespaces:P}},l)};Ke(()=>{Re(ke,l=ye,l)});function Y(u){C=u,t(5,C)}function ve(u){q=u,t(7,q)}function ce(u){x=u,t(8,x)}function be(u){W=u,t(9,W)}const fe=()=>t(10,X=!1),he=()=>t(10,X=!0),me=u=>t(6,U=u.detail.value);return s.$$set=u=>{"endpoint"in u&&t(13,p=u.endpoint),"targetNamespaceList"in u&&t(0,se=u.targetNamespaceList),"callerNamespaceList"in u&&t(14,V=u.callerNamespaceList),"error"in u&&t(1,le=u.error),"nameDisabled"in u&&t(2,M=u.nameDisabled),"isCloud"in u&&t(3,ae=u.isCloud),"nameHintText"in u&&t(4,R=u.nameHintText),"nameRegexPattern"in u&&t(15,D=u.nameRegexPattern),"$$scope"in u&&t(24,c=u.$$scope)},s.$$.update=()=>{s.$$.dirty[0]&992&&K(C,U,q,x,W),s.$$.dirty[0]&16384&&t(12,n=V.map(u=>({value:u.namespace,label:u.namespace}))),s.$$.dirty[0]&32768&&t(11,a=u=>D.test(u))},[se,le,M,ae,R,C,U,q,x,W,X,a,n,p,V,D,_,Y,ve,ce,be,fe,he,me,c]}class qt extends Pe{constructor(e){super(),Ie(this,e,ht,bt,we,{endpoint:13,targetNamespaceList:0,callerNamespaceList:14,error:1,nameDisabled:2,isCloud:3,nameHintText:4,nameRegexPattern:15},null,[-1,-1])}}export{qt as N,ke as e}; +import{s as we,x as Me,i as z,f as h,c as Ce,a as Ne,u as De,g as Ee,e as Te,h as O,j as y,k as G,m as J,v as re,r as ze,V as Be,M as Ke,N as ue,b as I,t as te,d as L,l as ne,o as Ge,n as v,O as pe,w as Re,q as Je}from"./scheduler.C46pS-76.js";import{S as Pe,i as Ie,g as Qe,b as $,e as je,t as k,f as ge,c as S,a as F,m as H,d as A}from"./index.dOVbn71B.js";import{w as Ue}from"./entry.kylZibtV.js";import{p as We}from"./stores.Ds4o9nwd.js";import{A as Xe}from"./alert.nnKn2vnv.js";import{C as Oe}from"./combobox.BZAKUnsN.js";import{I as Se}from"./input.Dizl7Mgk.js";import{_ as Ye}from"./preload-helper.D6kgxu3v.js";import{u as Ze}from"./dark-mode.BvUzLjRz.js";import{M as xe}from"./markdown.BEeC1bWs.js";import{T as et,a as Fe}from"./toggle-buttons.cS3NnOtm.js";import{t as E}from"./translate.BBe5dcco.js";const tt=s=>({}),He=s=>({});function nt(s){let e;const t=s[3].fallback,n=Ne(t,s,s[2],He);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,l){n&&n.m(a,l),e=!0},p(a,l){n&&n.p&&(!e||l&4)&&De(n,t,a,a[2],e?Te(t,a[2],l,tt):Ee(a[2]),He)},i(a){e||(k(n,a),e=!0)},o(a){$(n,a),e=!1},d(a){n&&n.d(a)}}}function st(s){let e;const t=s[3].default,n=Ne(t,s,s[2],null);return{c(){n&&n.c()},l(a){n&&n.l(a)},m(a,l){n&&n.m(a,l),e=!0},p(a,l){n&&n.p&&(!e||l&4)&&De(n,t,a,a[2],e?Te(t,a[2],l,null):Ee(a[2]),null)},i(a){e||(k(n,a),e=!0)},o(a){$(n,a),e=!1},d(a){n&&n.d(a)}}}function lt(s){let e,t,n,a;const l=[st,nt],r=[];function _(c,f){var m,w,T;return c[0]||(T=(w=(m=c[1].data)==null?void 0:m.settings)==null?void 0:w.runtimeEnvironment)!=null&&T.isCloud?0:1}return e=_(s),t=r[e]=l[e](s),{c(){t.c(),n=Me()},l(c){t.l(c),n=Me()},m(c,f){r[e].m(c,f),z(c,n,f),a=!0},p(c,[f]){let m=e;e=_(c),e===m?r[e].p(c,f):(Qe(),$(r[m],1,1,()=>{r[m]=null}),je(),t=r[e],t?t.p(c,f):(t=r[e]=l[e](c),t.c()),k(t,1),t.m(n.parentNode,n))},i(c){a||(k(t),a=!0)},o(c){$(t),a=!1},d(c){c&&h(n),r[e].d(c)}}}function at(s,e,t){let n;Ce(s,We,_=>t(1,n=_));let{$$slots:a={},$$scope:l}=e,{isCloud:r=!1}=e;return s.$$set=_=>{"isCloud"in _&&t(0,r=_.isCloud),"$$scope"in _&&t(2,l=_.$$scope)},[r,n,l,a]}class ot extends Pe{constructor(e){super(),Ie(this,e,at,lt,we,{isCloud:0})}}function rt(s){let e;return{c(){e=O("div"),this.h()},l(t){e=y(t,"DIV",{class:!0}),G(e).forEach(h),this.h()},h(){J(e,"class","h-full min-h-80")},m(t,n){z(t,e,n),s[4](e)},p:re,i:re,o:re,d(t){t&&h(e),s[4](null)}}}function it(s,e,t){let n;Ce(s,Ze,f=>t(3,n=f));const a=ze();let l,r,{content:_=""}=e;Be(async()=>{t(2,l=(await Ye(()=>import("./index.BGOuuoxm.js").then(w=>w.i),__vite__mapDeps([0,1,2]),import.meta.url)).default);const f=l.editor.create(r,{language:"markdown"}),m=l.editor.createModel(_,"markdown");m.onDidChangeContent(()=>{const w=m.getValue();a("change",{value:w})}),f.setModel(m)}),Ke(()=>{l==null||l.editor.getModels().forEach(f=>f.dispose())});function c(f){ue[f?"unshift":"push"](()=>{r=f,t(0,r)})}return s.$$set=f=>{"content"in f&&t(1,_=f.content)},s.$$.update=()=>{s.$$.dirty&12&&(n?l==null||l.editor.setTheme("vs-dark"):l==null||l.editor.setTheme("vs"))},[r,_,l,n,c]}class ut extends Pe{constructor(e){super(),Ie(this,e,it,rt,we,{content:1})}}const ct=s=>({}),Ae=s=>({});function ft(s){let e,t,n=E("nexus.access-policy")+"",a,l,r,_=E("nexus.allowed-caller-namespaces-description")+"",c,f,m,w,T;function B(d){s[20](d)}let N={id:"caller-namespace-filter-menu",multiselect:!0,displayChips:!1,options:s[12],label:E("nexus.allowed-caller-namespaces"),leadingIcon:"search",noResultsText:E("common.no-results"),valid:!!s[9].length,error:"Please select at least one Namespace.",placeholder:E("nexus.select-namespaces"),optionValueKey:"value",optionLabelKey:"label"};return s[9]!==void 0&&(N.value=s[9]),m=new Oe({props:N}),ue.push(()=>ge(m,"value",B)),{c(){e=O("div"),t=O("p"),a=te(n),l=I(),r=O("p"),c=te(_),f=I(),S(m.$$.fragment),this.h()},l(d){e=y(d,"DIV",{class:!0});var b=G(e);t=y(b,"P",{class:!0});var g=G(t);a=ne(g,n),g.forEach(h),l=L(b),r=y(b,"P",{class:!0});var p=G(r);c=ne(p,_),p.forEach(h),b.forEach(h),f=L(d),F(m.$$.fragment,d),this.h()},h(){J(t,"class","text-base text-primary"),J(r,"class","text-xs text-secondary"),J(e,"class","flex flex-col gap-0")},m(d,b){z(d,e,b),v(e,t),v(t,a),v(e,l),v(e,r),v(r,c),z(d,f,b),H(m,d,b),T=!0},p(d,b){const g={};b[0]&4096&&(g.options=d[12]),b[0]&512&&(g.valid=!!d[9].length),!w&&b[0]&512&&(w=!0,g.value=d[9],pe(()=>w=!1)),m.$set(g)},i(d){T||(k(m.$$.fragment,d),T=!0)},o(d){$(m.$$.fragment,d),T=!1},d(d){d&&(h(e),h(f)),A(m,d)}}}function mt(s){let e=E("common.description")+"",t;return{c(){t=te(e)},l(n){t=ne(n,e)},m(n,a){z(n,t,a)},p:re,d(n){n&&h(t)}}}function dt(s){let e=E("common.preview")+"",t;return{c(){t=te(e)},l(n){t=ne(n,e)},m(n,a){z(n,t,a)},p:re,d(n){n&&h(t)}}}function _t(s){let e,t,n,a;return e=new Fe({props:{active:s[10]===!1,"data-testid":"description-editor",$$slots:{default:[mt]},$$scope:{ctx:s}}}),e.$on("click",s[21]),n=new Fe({props:{active:s[10]===!0,"data-testid":"description-preview",$$slots:{default:[dt]},$$scope:{ctx:s}}}),n.$on("click",s[22]),{c(){S(e.$$.fragment),t=I(),S(n.$$.fragment)},l(l){F(e.$$.fragment,l),t=L(l),F(n.$$.fragment,l)},m(l,r){H(e,l,r),z(l,t,r),H(n,l,r),a=!0},p(l,r){const _={};r[0]&1024&&(_.active=l[10]===!1),r[0]&16777216&&(_.$$scope={dirty:r,ctx:l}),e.$set(_);const c={};r[0]&1024&&(c.active=l[10]===!0),r[0]&16777216&&(c.$$scope={dirty:r,ctx:l}),n.$set(c)},i(l){a||(k(e.$$.fragment,l),k(n.$$.fragment,l),a=!0)},o(l){$(e.$$.fragment,l),$(n.$$.fragment,l),a=!1},d(l){l&&h(t),A(e,l),A(n,l)}}}function pt(s){let e,t;return e=new ut({props:{content:s[6]}}),e.$on("change",s[23]),{c(){S(e.$$.fragment)},l(n){F(e.$$.fragment,n)},m(n,a){H(e,n,a),t=!0},p(n,a){const l={};a[0]&64&&(l.content=n[6]),e.$set(l)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){$(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function gt(s){let e,t;return e=new xe({props:{content:s[6]}}),{c(){S(e.$$.fragment)},l(n){F(e.$$.fragment,n)},m(n,a){H(e,n,a),t=!0},p(n,a){const l={};a[0]&64&&(l.content=n[6]),e.$set(l)},i(n){t||(k(e.$$.fragment,n),t=!0)},o(n){$(e.$$.fragment,n),t=!1},d(n){A(e,n)}}}function vt(s){var n;let e=((n=s[1])==null?void 0:n.message)+"",t;return{c(){t=te(e)},l(a){t=ne(a,e)},m(a,l){z(a,t,l)},p(a,l){var r;l[0]&2&&e!==(e=((r=a[1])==null?void 0:r.message)+"")&&Je(t,e)},d(a){a&&h(t)}}}function bt(s){var Le;let e,t,n,a,l,r,_=E("nexus.target")+"",c,f,m,w=E("nexus.target-description")+"",T,B,N,d,b,g,p,se,V,le,M,ae,R,D,C,U,q,x="Do not include sensitive data.",W,X,K,Y;function ve(o){s[17](o)}let ce={required:!0,disabled:s[2],error:!s[5]||!s[11](s[5]),hintText:s[4],label:E("nexus.endpoint-name"),id:"name",maxLength:255,placeholder:E("nexus.endpoint-name-placeholder")};s[5]!==void 0&&(ce.value=s[5]),t=new Se({props:ce}),ue.push(()=>ge(t,"value",ve));function be(o){s[18](o)}let fe={label:E("nexus.target-namespace"),noResultsText:E("common.no-results"),valid:!!s[7],error:"Please select a target Namespace.",required:!0,id:"target-namespace",placeholder:E("nexus.select-namespace"),leadingIcon:"namespace-switcher",options:s[0],optionValueKey:"namespace",minSize:32};s[7]!==void 0&&(fe.value=s[7]),N=new Oe({props:fe}),ue.push(()=>ge(N,"value",be));function he(o){s[19](o)}let me={required:!0,error:!s[8],label:E("common.task-queue"),id:"task-queue",placeholder:E("nexus.task-queue-placeholder")};s[8]!==void 0&&(me.value=s[8]),g=new Se({props:me}),ue.push(()=>ge(g,"value",he)),V=new ot({props:{isCloud:s[3],$$slots:{default:[ft]},$$scope:{ctx:s}}}),M=new et({props:{$$slots:{default:[_t]},$$scope:{ctx:s}}});const u=[gt,pt],Q=[];function de(o,i){return o[10]?0:1}D=de(s),C=Q[D]=u[D](s);const ie=s[16].footer,P=Ne(ie,s,s[24],Ae);return K=new Xe({props:{title:(Le=s[1])==null?void 0:Le.statusText,intent:"error",hidden:!s[1],$$slots:{default:[vt]},$$scope:{ctx:s}}}),{c(){e=O("div"),S(t.$$.fragment),a=I(),l=O("div"),r=O("p"),c=te(_),f=I(),m=O("p"),T=te(w),B=I(),S(N.$$.fragment),b=I(),S(g.$$.fragment),se=I(),S(V.$$.fragment),le=I(),S(M.$$.fragment),ae=I(),R=O("div"),C.c(),U=I(),q=O("p"),q.textContent=x,W=I(),P&&P.c(),X=I(),S(K.$$.fragment),this.h()},l(o){e=y(o,"DIV",{class:!0});var i=G(e);F(t.$$.fragment,i),a=L(i),l=y(i,"DIV",{class:!0});var j=G(l);r=y(j,"P",{class:!0});var ee=G(r);c=ne(ee,_),ee.forEach(h),f=L(j),m=y(j,"P",{class:!0});var oe=G(m);T=ne(oe,w),oe.forEach(h),j.forEach(h),B=L(i),F(N.$$.fragment,i),b=L(i),F(g.$$.fragment,i),se=L(i),F(V.$$.fragment,i),le=L(i),F(M.$$.fragment,i),ae=L(i),R=y(i,"DIV",{});var Z=G(R);C.l(Z),U=L(Z),q=y(Z,"P",{class:!0,"data-svelte-h":!0}),Ge(q)!=="svelte-11lgqx1"&&(q.textContent=x),Z.forEach(h),W=L(i),P&&P.l(i),i.forEach(h),X=L(o),F(K.$$.fragment,o),this.h()},h(){J(r,"class","text-base text-primary"),J(m,"class","text-xs text-secondary"),J(l,"class","flex flex-col gap-0"),J(q,"class","my-2 text-xs text-secondary"),J(e,"class","flex w-full flex-col gap-4 xl:w-1/2")},m(o,i){z(o,e,i),H(t,e,null),v(e,a),v(e,l),v(l,r),v(r,c),v(l,f),v(l,m),v(m,T),v(e,B),H(N,e,null),v(e,b),H(g,e,null),v(e,se),H(V,e,null),v(e,le),H(M,e,null),v(e,ae),v(e,R),Q[D].m(R,null),v(R,U),v(R,q),v(e,W),P&&P.m(e,null),z(o,X,i),H(K,o,i),Y=!0},p(o,i){var qe;const j={};i[0]&4&&(j.disabled=o[2]),i[0]&2080&&(j.error=!o[5]||!o[11](o[5])),i[0]&16&&(j.hintText=o[4]),!n&&i[0]&32&&(n=!0,j.value=o[5],pe(()=>n=!1)),t.$set(j);const ee={};i[0]&128&&(ee.valid=!!o[7]),i[0]&1&&(ee.options=o[0]),!d&&i[0]&128&&(d=!0,ee.value=o[7],pe(()=>d=!1)),N.$set(ee);const oe={};i[0]&256&&(oe.error=!o[8]),!p&&i[0]&256&&(p=!0,oe.value=o[8],pe(()=>p=!1)),g.$set(oe);const Z={};i[0]&8&&(Z.isCloud=o[3]),i[0]&16781824&&(Z.$$scope={dirty:i,ctx:o}),V.$set(Z);const Ve={};i[0]&16778240&&(Ve.$$scope={dirty:i,ctx:o}),M.$set(Ve);let $e=D;D=de(o),D===$e?Q[D].p(o,i):(Qe(),$(Q[$e],1,1,()=>{Q[$e]=null}),je(),C=Q[D],C?C.p(o,i):(C=Q[D]=u[D](o),C.c()),k(C,1),C.m(R,U)),P&&P.p&&(!Y||i[0]&16777216)&&De(P,ie,o,o[24],Y?Te(ie,o[24],i,ct):Ee(o[24]),Ae);const _e={};i[0]&2&&(_e.title=(qe=o[1])==null?void 0:qe.statusText),i[0]&2&&(_e.hidden=!o[1]),i[0]&16777218&&(_e.$$scope={dirty:i,ctx:o}),K.$set(_e)},i(o){Y||(k(t.$$.fragment,o),k(N.$$.fragment,o),k(g.$$.fragment,o),k(V.$$.fragment,o),k(M.$$.fragment,o),k(C),k(P,o),k(K.$$.fragment,o),Y=!0)},o(o){$(t.$$.fragment,o),$(N.$$.fragment,o),$(g.$$.fragment,o),$(V.$$.fragment,o),$(M.$$.fragment,o),$(C),$(P,o),$(K.$$.fragment,o),Y=!1},d(o){o&&(h(e),h(X)),A(t),A(N),A(g),A(V),A(M),Q[D].d(),P&&P.d(o),A(K,o)}}}const ye={spec:{name:"",descriptionString:"",target:{worker:{namespace:"",taskQueue:""}},allowedCallerNamespaces:[]}},ke=Ue(ye);function ht(s,e,t){let n,a,l,r=re;Ce(s,ke,u=>t(34,l=u)),s.$$.on_destroy.push(()=>r());let{$$slots:_={},$$scope:c}=e;var f,m,w,T,B,N,d,b,g;let{endpoint:p=void 0}=e,{targetNamespaceList:se=[]}=e,{callerNamespaceList:V=[]}=e,{error:le=void 0}=e,{nameDisabled:M=!1}=e,{isCloud:ae=!0}=e,{nameHintText:R}=e,{nameRegexPattern:D}=e,C=((f=p==null?void 0:p.spec)===null||f===void 0?void 0:f.name)||"",U=((m=p==null?void 0:p.spec)===null||m===void 0?void 0:m.descriptionString)||"",q=((B=(T=(w=p==null?void 0:p.spec)===null||w===void 0?void 0:w.target)===null||T===void 0?void 0:T.worker)===null||B===void 0?void 0:B.namespace)||"",x=((b=(d=(N=p==null?void 0:p.spec)===null||N===void 0?void 0:N.target)===null||d===void 0?void 0:d.worker)===null||b===void 0?void 0:b.taskQueue)||"",W=((g=p==null?void 0:p.spec)===null||g===void 0?void 0:g.allowedCallerNamespaces)||[],X=!1;const K=(u,Q,de,ie,P)=>{Re(ke,l={spec:{name:u,descriptionString:Q,target:{worker:{namespace:de,taskQueue:ie}},allowedCallerNamespaces:P}},l)};Ke(()=>{Re(ke,l=ye,l)});function Y(u){C=u,t(5,C)}function ve(u){q=u,t(7,q)}function ce(u){x=u,t(8,x)}function be(u){W=u,t(9,W)}const fe=()=>t(10,X=!1),he=()=>t(10,X=!0),me=u=>t(6,U=u.detail.value);return s.$$set=u=>{"endpoint"in u&&t(13,p=u.endpoint),"targetNamespaceList"in u&&t(0,se=u.targetNamespaceList),"callerNamespaceList"in u&&t(14,V=u.callerNamespaceList),"error"in u&&t(1,le=u.error),"nameDisabled"in u&&t(2,M=u.nameDisabled),"isCloud"in u&&t(3,ae=u.isCloud),"nameHintText"in u&&t(4,R=u.nameHintText),"nameRegexPattern"in u&&t(15,D=u.nameRegexPattern),"$$scope"in u&&t(24,c=u.$$scope)},s.$$.update=()=>{s.$$.dirty[0]&992&&K(C,U,q,x,W),s.$$.dirty[0]&16384&&t(12,n=V.map(u=>({value:u.namespace,label:u.namespace}))),s.$$.dirty[0]&32768&&t(11,a=u=>D.test(u))},[se,le,M,ae,R,C,U,q,x,W,X,a,n,p,V,D,_,Y,ve,ce,be,fe,he,me,c]}class qt extends Pe{constructor(e){super(),Ie(this,e,ht,bt,we,{endpoint:13,targetNamespaceList:0,callerNamespaceList:14,error:1,nameDisabled:2,isCloud:3,nameHintText:4,nameRegexPattern:15},null,[-1,-1])}}export{qt as N,ke as e}; diff --git a/ui/assets/local/_app/immutable/chunks/nexus-service.BPsrr5_T.js b/ui/assets/local/_app/immutable/chunks/nexus-service.CnR3KXfY.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/nexus-service.BPsrr5_T.js rename to ui/assets/local/_app/immutable/chunks/nexus-service.CnR3KXfY.js index e8bcb6f2b..61730902c 100644 --- a/ui/assets/local/_app/immutable/chunks/nexus-service.BPsrr5_T.js +++ b/ui/assets/local/_app/immutable/chunks/nexus-service.CnR3KXfY.js @@ -1 +1 @@ -import{s as r}from"./parse-with-big-int.BKSBwM2t.js";import{r as s,a as i}from"./route-for-api.BTloiRV6.js";const c=async(n="",t=fetch)=>{const o=s("nexus-endpoints"),{endpoints:e}=await i(o,{request:t,params:{name:n}});return e||[]},u=async(n,t=fetch)=>{const o=s("nexus-endpoint",{endpointId:n});return await i(o,{request:t,notifyOnError:!1})},f=async(n,t=fetch)=>{const o=s("nexus-endpoints");return await i(o,{request:t,options:{method:"POST",body:r({...n})},notifyOnError:!1})},h=async(n,t,o=fetch)=>{const e=s("nexus-endpoint.update",{endpointId:n});return await i(e,{request:o,options:{method:"POST",body:r({...t})},notifyOnError:!1})},m=async(n,t,o=fetch)=>{const e=s("nexus-endpoint",{endpointId:n});return await i(e,{request:o,options:{method:"DELETE"},params:{version:t}})};export{c as a,f as c,m as d,u as f,h as u}; +import{s as r}from"./parse-with-big-int.BKSBwM2t.js";import{r as s,a as i}from"./route-for-api.DGDQNXtX.js";const c=async(n="",t=fetch)=>{const o=s("nexus-endpoints"),{endpoints:e}=await i(o,{request:t,params:{name:n}});return e||[]},u=async(n,t=fetch)=>{const o=s("nexus-endpoint",{endpointId:n});return await i(o,{request:t,notifyOnError:!1})},f=async(n,t=fetch)=>{const o=s("nexus-endpoints");return await i(o,{request:t,options:{method:"POST",body:r({...n})},notifyOnError:!1})},h=async(n,t,o=fetch)=>{const e=s("nexus-endpoint.update",{endpointId:n});return await i(e,{request:o,options:{method:"POST",body:r({...t})},notifyOnError:!1})},m=async(n,t,o=fetch)=>{const e=s("nexus-endpoint",{endpointId:n});return await i(e,{request:o,options:{method:"DELETE"},params:{version:t}})};export{c as a,f as c,m as d,u as f,h as u}; diff --git a/ui/assets/local/_app/immutable/chunks/option.Bt5AmPHo.js b/ui/assets/local/_app/immutable/chunks/option.BuKObSE0.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/option.Bt5AmPHo.js rename to ui/assets/local/_app/immutable/chunks/option.BuKObSE0.js index decedfcfe..b9c9651ef 100644 --- a/ui/assets/local/_app/immutable/chunks/option.Bt5AmPHo.js +++ b/ui/assets/local/_app/immutable/chunks/option.BuKObSE0.js @@ -1 +1 @@ -import{s as Y,D as B,c as T,a7 as he,V as se,w as K,z as V,A as oe,b as Q,d as R,i as q,v as ue,f as k,a as D,u as A,g as j,e as z,h as fe,x as G,j as re,E as x,H as W,L as Ce,r as pe,M as ke,k as ve,N as qe}from"./scheduler.C46pS-76.js";import{S as ce,i as de,c as I,a as E,m as M,t as m,b as g,d as N,g as Z,e as y}from"./index.dOVbn71B.js";import{w as X}from"./entry.DLEzeuD9.js";import{I as me}from"./icon.CfkHLDdJ.js";import{M as Ie,a as Ee,d as Me}from"./menu.FCESMtRU.js";import{g as Ne}from"./spread.CgU5AtxT.js";import{L as Se}from"./label.BlTcUXFh.js";import{M as He}from"./menu-button.20KWkPAy.js";const Le=i=>({}),ee=i=>({slot:"leading"});function te(i){let t,a;return t=new me({props:{slot:"trailing",name:"lock"}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Oe(i){let t,a,e,l,n,f=[{id:i[3]},{value:a=!i[0]&&i[4]!==""?i[4]:i[10]},{tabindex:"-1"},{disabled:!0},{required:i[9]},{"aria-required":i[9]},i[15]],r={};for(let o=0;o{s=null}),y())},i(o){n||(m(s),n=!0)},o(o){g(s),n=!1},d(o){o&&(k(t),k(e),k(l)),s&&s.d(o)}}}function le(i){let t,a;return t=new me({props:{name:i[6]}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,l){const n={};l&64&&(n.name=e[6]),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Pe(i){let t,a,e=i[6]&&le(i);return{c(){e&&e.c(),t=G()},l(l){e&&e.l(l),t=G()},m(l,n){e&&e.m(l,n),q(l,t,n),a=!0},p(l,n){l[6]?e?(e.p(l,n),n&64&&m(e,1)):(e=le(l),e.c(),m(e,1),e.m(t.parentNode,t)):e&&(Z(),g(e,1,1,()=>{e=null}),y())},i(l){a||(m(e),a=!0)},o(l){g(e),a=!1},d(l){l&&k(t),e&&e.d(l)}}}function Te(i){let t;const a=i[17].leading,e=D(a,i,i[18],ee),l=e||Pe(i);return{c(){l&&l.c()},l(n){l&&l.l(n)},m(n,f){l&&l.m(n,f),t=!0},p(n,f){e?e.p&&(!t||f&262144)&&A(e,a,n,n[18],t?z(a,n[18],f,Le):j(n[18]),ee):l&&l.p&&(!t||f&64)&&l.p(n,t?f:-1)},i(n){t||(m(l,n),t=!0)},o(n){g(l,n),t=!1},d(n){l&&l.d(n)}}}function ne(i){let t,a;return t=new He({props:{hasIndicator:!i[5],disabled:i[5],controls:i[3]+"-select",variant:i[8],"data-testid":`${i[15]["data-testid"]??""}-button`,$$slots:{leading:[Te],default:[Oe]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,l){const n={};l&32&&(n.hasIndicator=!e[5]),l&32&&(n.disabled=e[5]),l&8&&(n.controls=e[3]+"-select"),l&256&&(n.variant=e[8]),l&32768&&(n["data-testid"]=`${e[15]["data-testid"]??""}-button`),l&296569&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Ve(i){let t;const a=i[17].default,e=D(a,i,i[18],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&262144)&&A(e,a,l,l[18],t?z(a,l[18],n,null):j(l[18]),null)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function De(i){let t,a,e=i[10],l,n,f;t=new Se({props:{class:"pb-1",label:i[1],hidden:i[2],for:i[3],required:i[9]}});let r=ne(i);return n=new Ee({props:{role:"listbox",id:i[3]+"-select",class:i[7],$$slots:{default:[Ve]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment),a=Q(),r.c(),l=Q(),I(n.$$.fragment)},l(s){E(t.$$.fragment,s),a=R(s),r.l(s),l=R(s),E(n.$$.fragment,s)},m(s,o){M(t,s,o),q(s,a,o),r.m(s,o),q(s,l,o),M(n,s,o),f=!0},p(s,o){const d={};o&2&&(d.label=s[1]),o&4&&(d.hidden=s[2]),o&8&&(d.for=s[3]),o&512&&(d.required=s[9]),t.$set(d),o&1024&&Y(e,e=s[10])?(Z(),g(r,1,1,ue),y(),r=ne(s),r.c(),m(r,1),r.m(l.parentNode,l)):r.p(s,o);const h={};o&8&&(h.id=s[3]+"-select"),o&128&&(h.class=s[7]),o&262144&&(h.$$scope={dirty:o,ctx:s}),n.$set(h)},i(s){f||(m(t.$$.fragment,s),m(r),m(n.$$.fragment,s),f=!0)},o(s){g(t.$$.fragment,s),g(r),g(n.$$.fragment,s),f=!1},d(s){s&&(k(a),k(l)),N(t,s),r.d(s),N(n,s)}}}function Ae(i){let t,a;return t=new Ie({props:{open:i[14],$$slots:{default:[De]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,[l]){const n={};l&296959&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}const _e="select-context";function je(i,t,a){const e=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","onChange","menuClass","variant","required"];let l=B(t,e),n,f,r,{$$slots:s={},$$scope:o}=t,{label:d}=t,{labelHidden:h=!1}=t,{id:F}=t,{value:_=void 0}=t,{placeholder:H=""}=t,{disabled:L=!1}=t,{leadingIcon:O=null}=t,{onChange:S=ue}=t,{menuClass:C=void 0}=t,{variant:b="secondary"}=t,{required:U=!1}=t;const p=X(_);T(i,p,u=>a(20,r=u));const P=X([]);T(i,P,u=>a(19,f=u));const v=X(_==null?void 0:_.toString());T(i,v,u=>a(10,n=u));const c=X(!1);function J(){K(p,r=_,r),K(v,n=w(_),n)}const ge=u=>{a(0,_=u),S(_)};function w(u){const $=f.find(be=>be.value===u);return $!==void 0?$.label:""}return he(_e,{selectValue:p,selectLabel:v,options:P,open:c,handleChange:ge}),se(()=>{K(v,n=w(_),n)}),i.$$set=u=>{t=V(V({},t),oe(u)),a(15,l=B(t,e)),"label"in u&&a(1,d=u.label),"labelHidden"in u&&a(2,h=u.labelHidden),"id"in u&&a(3,F=u.id),"value"in u&&a(0,_=u.value),"placeholder"in u&&a(4,H=u.placeholder),"disabled"in u&&a(5,L=u.disabled),"leadingIcon"in u&&a(6,O=u.leadingIcon),"onChange"in u&&a(16,S=u.onChange),"menuClass"in u&&a(7,C=u.menuClass),"variant"in u&&a(8,b=u.variant),"required"in u&&a(9,U=u.required),"$$scope"in u&&a(18,o=u.$$scope)},i.$$.update=()=>{i.$$.dirty&1&&J()},[_,d,h,F,H,L,O,C,b,U,n,p,P,v,c,l,S,s,o]}class $e extends ce{constructor(t){super(),de(this,t,je,Ae,Y,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,onChange:16,menuClass:7,variant:8,required:9})}}const ze=i=>({}),ae=i=>({slot:"leading"}),Fe=i=>({}),ie=i=>({slot:"trailing"});function Ue(i){let t,a;const e=i[12].default,l=D(e,i,i[14],null);return{c(){t=fe("span"),l&&l.c()},l(n){t=re(n,"SPAN",{});var f=ve(t);l&&l.l(f),f.forEach(k)},m(n,f){q(n,t,f),l&&l.m(t,null),i[13](t),a=!0},p(n,f){l&&l.p&&(!a||f&16384)&&A(l,e,n,n[14],a?z(e,n[14],f,null):j(n[14]),null)},i(n){a||(m(l,n),a=!0)},o(n){g(l,n),a=!1},d(n){n&&k(t),l&&l.d(n),i[13](null)}}}function We(i){let t;const a=i[12].leading,e=D(a,i,i[14],ae);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&16384)&&A(e,a,l,l[14],t?z(a,l[14],n,ze):j(l[14]),ae)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Xe(i){let t;const a=i[12].trailing,e=D(a,i,i[14],ie);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&16384)&&A(e,a,l,l[14],t?z(a,l[14],n,Fe):j(l[14]),ie)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Be(i){let t,a;return t=new Me({props:{role:"option",selected:i[4],description:i[0],disabled:i[1],class:i[2],"data-testid":i[8]["data-testid"]??"",$$slots:{trailing:[Xe],leading:[We],default:[Ue]},$$scope:{ctx:i}}}),t.$on("click",i[7]),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,[l]){const n={};l&16&&(n.selected=e[4]),l&1&&(n.description=e[0]),l&2&&(n.disabled=e[1]),l&4&&(n.class=e[2]),l&256&&(n["data-testid"]=e[8]["data-testid"]??""),l&16392&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Ge(i,t,a){const e=["value","description","disabled","class"];let l=B(t,e),n,f,{$$slots:r={},$$scope:s}=t;const{selectValue:o,handleChange:d,options:h}=Ce(_e);T(i,o,c=>a(11,f=c)),T(i,h,c=>a(16,n=c));const F=pe();let{value:_}=t,{description:H=""}=t,{disabled:L=!1}=t,{class:O=""}=t,S=!1,C,b,U,p;se(()=>{b&&(p=b.textContent,n.push({value:_,label:p,nativeElement:U}))}),ke(()=>{let c=n.findIndex(J=>J.value===_);c!==void 0&&n.splice(c,1)});const P=()=>{d(C),F("click",{value:C})};function v(c){qe[c?"unshift":"push"](()=>{b=c,a(3,b)})}return i.$$set=c=>{t=V(V({},t),oe(c)),a(8,l=B(t,e)),"value"in c&&a(9,_=c.value),"description"in c&&a(0,H=c.description),"disabled"in c&&a(1,L=c.disabled),"class"in c&&a(2,O=c.class),"$$scope"in c&&a(14,s=c.$$scope)},i.$$.update=()=>{i.$$.dirty&3592&&b&&(a(10,C=_??b.textContent),a(4,S=f===C),p=b.textContent)},[H,L,O,b,S,o,h,P,l,_,C,f,r,v,s]}class xe extends ce{constructor(t){super(),de(this,t,Ge,Be,Y,{value:9,description:0,disabled:1,class:2})}}export{xe as O,$e as S}; +import{s as Y,D as B,c as T,a7 as he,V as se,w as K,z as V,A as oe,b as Q,d as R,i as q,v as ue,f as k,a as D,u as A,g as j,e as z,h as fe,x as G,j as re,E as x,H as W,L as Ce,r as pe,M as ke,k as ve,N as qe}from"./scheduler.C46pS-76.js";import{S as ce,i as de,c as I,a as E,m as M,t as m,b as g,d as N,g as Z,e as y}from"./index.dOVbn71B.js";import{w as X}from"./entry.kylZibtV.js";import{I as me}from"./icon.CfkHLDdJ.js";import{M as Ie,a as Ee,d as Me}from"./menu.B3Snjx4c.js";import{g as Ne}from"./spread.CgU5AtxT.js";import{L as Se}from"./label.BlTcUXFh.js";import{M as He}from"./menu-button.DYcE3c8N.js";const Le=i=>({}),ee=i=>({slot:"leading"});function te(i){let t,a;return t=new me({props:{slot:"trailing",name:"lock"}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Oe(i){let t,a,e,l,n,f=[{id:i[3]},{value:a=!i[0]&&i[4]!==""?i[4]:i[10]},{tabindex:"-1"},{disabled:!0},{required:i[9]},{"aria-required":i[9]},i[15]],r={};for(let o=0;o{s=null}),y())},i(o){n||(m(s),n=!0)},o(o){g(s),n=!1},d(o){o&&(k(t),k(e),k(l)),s&&s.d(o)}}}function le(i){let t,a;return t=new me({props:{name:i[6]}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,l){const n={};l&64&&(n.name=e[6]),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Pe(i){let t,a,e=i[6]&&le(i);return{c(){e&&e.c(),t=G()},l(l){e&&e.l(l),t=G()},m(l,n){e&&e.m(l,n),q(l,t,n),a=!0},p(l,n){l[6]?e?(e.p(l,n),n&64&&m(e,1)):(e=le(l),e.c(),m(e,1),e.m(t.parentNode,t)):e&&(Z(),g(e,1,1,()=>{e=null}),y())},i(l){a||(m(e),a=!0)},o(l){g(e),a=!1},d(l){l&&k(t),e&&e.d(l)}}}function Te(i){let t;const a=i[17].leading,e=D(a,i,i[18],ee),l=e||Pe(i);return{c(){l&&l.c()},l(n){l&&l.l(n)},m(n,f){l&&l.m(n,f),t=!0},p(n,f){e?e.p&&(!t||f&262144)&&A(e,a,n,n[18],t?z(a,n[18],f,Le):j(n[18]),ee):l&&l.p&&(!t||f&64)&&l.p(n,t?f:-1)},i(n){t||(m(l,n),t=!0)},o(n){g(l,n),t=!1},d(n){l&&l.d(n)}}}function ne(i){let t,a;return t=new He({props:{hasIndicator:!i[5],disabled:i[5],controls:i[3]+"-select",variant:i[8],"data-testid":`${i[15]["data-testid"]??""}-button`,$$slots:{leading:[Te],default:[Oe]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,l){const n={};l&32&&(n.hasIndicator=!e[5]),l&32&&(n.disabled=e[5]),l&8&&(n.controls=e[3]+"-select"),l&256&&(n.variant=e[8]),l&32768&&(n["data-testid"]=`${e[15]["data-testid"]??""}-button`),l&296569&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Ve(i){let t;const a=i[17].default,e=D(a,i,i[18],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&262144)&&A(e,a,l,l[18],t?z(a,l[18],n,null):j(l[18]),null)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function De(i){let t,a,e=i[10],l,n,f;t=new Se({props:{class:"pb-1",label:i[1],hidden:i[2],for:i[3],required:i[9]}});let r=ne(i);return n=new Ee({props:{role:"listbox",id:i[3]+"-select",class:i[7],$$slots:{default:[Ve]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment),a=Q(),r.c(),l=Q(),I(n.$$.fragment)},l(s){E(t.$$.fragment,s),a=R(s),r.l(s),l=R(s),E(n.$$.fragment,s)},m(s,o){M(t,s,o),q(s,a,o),r.m(s,o),q(s,l,o),M(n,s,o),f=!0},p(s,o){const d={};o&2&&(d.label=s[1]),o&4&&(d.hidden=s[2]),o&8&&(d.for=s[3]),o&512&&(d.required=s[9]),t.$set(d),o&1024&&Y(e,e=s[10])?(Z(),g(r,1,1,ue),y(),r=ne(s),r.c(),m(r,1),r.m(l.parentNode,l)):r.p(s,o);const h={};o&8&&(h.id=s[3]+"-select"),o&128&&(h.class=s[7]),o&262144&&(h.$$scope={dirty:o,ctx:s}),n.$set(h)},i(s){f||(m(t.$$.fragment,s),m(r),m(n.$$.fragment,s),f=!0)},o(s){g(t.$$.fragment,s),g(r),g(n.$$.fragment,s),f=!1},d(s){s&&(k(a),k(l)),N(t,s),r.d(s),N(n,s)}}}function Ae(i){let t,a;return t=new Ie({props:{open:i[14],$$slots:{default:[De]},$$scope:{ctx:i}}}),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,[l]){const n={};l&296959&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}const _e="select-context";function je(i,t,a){const e=["label","labelHidden","id","value","placeholder","disabled","leadingIcon","onChange","menuClass","variant","required"];let l=B(t,e),n,f,r,{$$slots:s={},$$scope:o}=t,{label:d}=t,{labelHidden:h=!1}=t,{id:F}=t,{value:_=void 0}=t,{placeholder:H=""}=t,{disabled:L=!1}=t,{leadingIcon:O=null}=t,{onChange:S=ue}=t,{menuClass:C=void 0}=t,{variant:b="secondary"}=t,{required:U=!1}=t;const p=X(_);T(i,p,u=>a(20,r=u));const P=X([]);T(i,P,u=>a(19,f=u));const v=X(_==null?void 0:_.toString());T(i,v,u=>a(10,n=u));const c=X(!1);function J(){K(p,r=_,r),K(v,n=w(_),n)}const ge=u=>{a(0,_=u),S(_)};function w(u){const $=f.find(be=>be.value===u);return $!==void 0?$.label:""}return he(_e,{selectValue:p,selectLabel:v,options:P,open:c,handleChange:ge}),se(()=>{K(v,n=w(_),n)}),i.$$set=u=>{t=V(V({},t),oe(u)),a(15,l=B(t,e)),"label"in u&&a(1,d=u.label),"labelHidden"in u&&a(2,h=u.labelHidden),"id"in u&&a(3,F=u.id),"value"in u&&a(0,_=u.value),"placeholder"in u&&a(4,H=u.placeholder),"disabled"in u&&a(5,L=u.disabled),"leadingIcon"in u&&a(6,O=u.leadingIcon),"onChange"in u&&a(16,S=u.onChange),"menuClass"in u&&a(7,C=u.menuClass),"variant"in u&&a(8,b=u.variant),"required"in u&&a(9,U=u.required),"$$scope"in u&&a(18,o=u.$$scope)},i.$$.update=()=>{i.$$.dirty&1&&J()},[_,d,h,F,H,L,O,C,b,U,n,p,P,v,c,l,S,s,o]}class $e extends ce{constructor(t){super(),de(this,t,je,Ae,Y,{label:1,labelHidden:2,id:3,value:0,placeholder:4,disabled:5,leadingIcon:6,onChange:16,menuClass:7,variant:8,required:9})}}const ze=i=>({}),ae=i=>({slot:"leading"}),Fe=i=>({}),ie=i=>({slot:"trailing"});function Ue(i){let t,a;const e=i[12].default,l=D(e,i,i[14],null);return{c(){t=fe("span"),l&&l.c()},l(n){t=re(n,"SPAN",{});var f=ve(t);l&&l.l(f),f.forEach(k)},m(n,f){q(n,t,f),l&&l.m(t,null),i[13](t),a=!0},p(n,f){l&&l.p&&(!a||f&16384)&&A(l,e,n,n[14],a?z(e,n[14],f,null):j(n[14]),null)},i(n){a||(m(l,n),a=!0)},o(n){g(l,n),a=!1},d(n){n&&k(t),l&&l.d(n),i[13](null)}}}function We(i){let t;const a=i[12].leading,e=D(a,i,i[14],ae);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&16384)&&A(e,a,l,l[14],t?z(a,l[14],n,ze):j(l[14]),ae)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Xe(i){let t;const a=i[12].trailing,e=D(a,i,i[14],ie);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,n){e&&e.m(l,n),t=!0},p(l,n){e&&e.p&&(!t||n&16384)&&A(e,a,l,l[14],t?z(a,l[14],n,Fe):j(l[14]),ie)},i(l){t||(m(e,l),t=!0)},o(l){g(e,l),t=!1},d(l){e&&e.d(l)}}}function Be(i){let t,a;return t=new Me({props:{role:"option",selected:i[4],description:i[0],disabled:i[1],class:i[2],"data-testid":i[8]["data-testid"]??"",$$slots:{trailing:[Xe],leading:[We],default:[Ue]},$$scope:{ctx:i}}}),t.$on("click",i[7]),{c(){I(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,l){M(t,e,l),a=!0},p(e,[l]){const n={};l&16&&(n.selected=e[4]),l&1&&(n.description=e[0]),l&2&&(n.disabled=e[1]),l&4&&(n.class=e[2]),l&256&&(n["data-testid"]=e[8]["data-testid"]??""),l&16392&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){a||(m(t.$$.fragment,e),a=!0)},o(e){g(t.$$.fragment,e),a=!1},d(e){N(t,e)}}}function Ge(i,t,a){const e=["value","description","disabled","class"];let l=B(t,e),n,f,{$$slots:r={},$$scope:s}=t;const{selectValue:o,handleChange:d,options:h}=Ce(_e);T(i,o,c=>a(11,f=c)),T(i,h,c=>a(16,n=c));const F=pe();let{value:_}=t,{description:H=""}=t,{disabled:L=!1}=t,{class:O=""}=t,S=!1,C,b,U,p;se(()=>{b&&(p=b.textContent,n.push({value:_,label:p,nativeElement:U}))}),ke(()=>{let c=n.findIndex(J=>J.value===_);c!==void 0&&n.splice(c,1)});const P=()=>{d(C),F("click",{value:C})};function v(c){qe[c?"unshift":"push"](()=>{b=c,a(3,b)})}return i.$$set=c=>{t=V(V({},t),oe(c)),a(8,l=B(t,e)),"value"in c&&a(9,_=c.value),"description"in c&&a(0,H=c.description),"disabled"in c&&a(1,L=c.disabled),"class"in c&&a(2,O=c.class),"$$scope"in c&&a(14,s=c.$$scope)},i.$$.update=()=>{i.$$.dirty&3592&&b&&(a(10,C=_??b.textContent),a(4,S=f===C),p=b.textContent)},[H,L,O,b,S,o,h,P,l,_,C,f,r,v,s]}class xe extends ce{constructor(t){super(),de(this,t,Ge,Be,Y,{value:9,description:0,disabled:1,class:2})}}export{xe as O,$e as S}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.L2uilqIm.js b/ui/assets/local/_app/immutable/chunks/paginated.CcIszT9D.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/paginated.L2uilqIm.js rename to ui/assets/local/_app/immutable/chunks/paginated.CcIszT9D.js index 2ffa26d86..f04158664 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.L2uilqIm.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.CcIszT9D.js @@ -1 +1 @@ -import{s as me,D as R,c as ge,z as U,A as _e,a as A,u as C,g as O,e as E,h as D,j as F,k as le,f as p,m as _,i as L,y as pe,b as he,d as be,n as de,v as H,P as Pe,x as W,o as ve,t as ke,l as Le,q as Be}from"./scheduler.C46pS-76.js";import{S as Ie,i as ye,c as d,a as P,m as v,t as m,b as g,d as k,g as ie,e as re}from"./index.dOVbn71B.js";import{e as Y}from"./each.C6O0oV7R.js";import{p as Se}from"./stores.Dz-RNcUk.js";import{B as ze}from"./button.BpRIS9ld.js";import{I as w}from"./icon-button.CDcPAnTL.js";import{F as He}from"./filter-select.NIuiMMoD.js";import{p as N,c as z,a as Ne,M as x,d as Ae,o as Ce}from"./pagination.BCeOU9Ta.js";import{u as b}from"./update-query-parameters.DVJ0yHKX.js";import{P as Oe}from"./index.DfB8KN6E.js";const Ee=s=>({visibleItems:s&2048}),$=s=>({visibleItems:s[11].items}),je=s=>({}),ee=s=>({slot:"caption"}),qe=s=>({visibleItems:s&2048}),te=s=>({slot:"headers",visibleItems:s[11].items});function ae(s,a,n){const t=s.slice();return t[25]=a[n],t}const De=s=>({updating:s&2}),ne=s=>({slot:"empty",updating:s[1]});function Fe(s){let a;const n=s[20].default,t=A(n,s,s[24],$);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16779264)&&C(t,n,e,e[24],a?E(n,e[24],l,Ee):O(e[24]),$)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Ke(s){let a;const n=s[20].caption,t=A(n,s,s[24],ee);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16777216)&&C(t,n,e,e[24],a?E(n,e[24],l,je):O(e[24]),ee)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Me(s){let a;const n=s[20].headers,t=A(n,s,s[24],te);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16779264)&&C(t,n,e,e[24],a?E(n,e[24],l,qe):O(e[24]),te)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Ve(s){let a,n;return a=new He({props:{label:s[2],parameter:N,value:s[9],options:s[7]}}),{c(){d(a.$$.fragment)},l(t){P(a.$$.fragment,t)},m(t,e){v(a,t,e),n=!0},p(t,e){const l={};e&4&&(l.label=t[2]),e&512&&(l.value=t[9]),e&128&&(l.options=t[7]),a.$set(l)},i(t){n||(m(a.$$.fragment,t),n=!0)},o(t){g(a.$$.fragment,t),n=!1},d(t){k(a,t)}}}function Ge(s){let a,n;function t(){return s[23](s[25])}return a=new ze({props:{variant:"ghost",size:"sm",class:s[25]===s[11].currentPage?"bg-interactive-secondary-active":"","aria-label":s[3](s[25]),$$slots:{default:[Te]},$$scope:{ctx:s}}}),a.$on("click",t),{c(){d(a.$$.fragment)},l(e){P(a.$$.fragment,e)},m(e,l){v(a,e,l),n=!0},p(e,l){s=e;const r={};l&2048&&(r.class=s[25]===s[11].currentPage?"bg-interactive-secondary-active":""),l&2056&&(r["aria-label"]=s[3](s[25])),l&16779264&&(r.$$scope={dirty:l,ctx:s}),a.$set(r)},i(e){n||(m(a.$$.fragment,e),n=!0)},o(e){g(a.$$.fragment,e),n=!1},d(e){k(a,e)}}}function Qe(s){let a,n="...";return{c(){a=D("span"),a.textContent=n,this.h()},l(t){a=F(t,"SPAN",{class:!0,"data-svelte-h":!0}),ve(a)!=="svelte-8xq9dv"&&(a.textContent=n),this.h()},h(){_(a,"class","text-primary")},m(t,e){L(t,a,e)},p:H,i:H,o:H,d(t){t&&p(a)}}}function Te(s){let a=s[25]+"",n;return{c(){n=ke(a)},l(t){n=Le(t,a)},m(t,e){L(t,n,e)},p(t,e){e&2048&&a!==(a=t[25]+"")&&Be(n,a)},d(t){t&&p(n)}}}function se(s){let a,n,t,e,l;const r=[Qe,Ge],i=[];function o(u,c){return c&2048&&(a=null),a==null&&(a=!!isNaN(u[25])),a?0:1}return n=o(s,-1),t=i[n]=r[n](s),{c(){t.c(),e=W()},l(u){t.l(u),e=W()},m(u,c){i[n].m(u,c),L(u,e,c),l=!0},p(u,c){let h=n;n=o(u,c),n===h?i[n].p(u,c):(ie(),g(i[h],1,1,()=>{i[h]=null}),re(),t=i[n],t?t.p(u,c):(t=i[n]=r[n](u),t.c()),m(t,1),t.m(e.parentNode,e))},i(u){l||(m(t),l=!0)},o(u){g(t),l=!1},d(u){u&&p(e),i[n].d(u)}}}function Xe(s){let a,n,t=Y(s[11].pageShortcuts),e=[];for(let r=0;rg(e[r],1,1,()=>{e[r]=null});return{c(){a=D("div");for(let r=0;r(c(),c=Pe(r,f=>n(11,u=f)),r),j;ge(s,Se,f=>n(19,j=f)),s.$$.on_destroy.push(()=>c());let{$$slots:oe={},$$scope:K}=a;var B,I;let{items:q}=a,{variant:M="primary"}=a,{updating:V=!1}=a,{perPageLabel:G}=a,{pageButtonLabel:Q}=a,{nextPageButtonLabel:T}=a,{previousPageButtonLabel:X}=a,{maxHeight:Z=""}=a,{pageSizeOptions:y=Ce}=a,{fixed:J=!1}=a;const S=f=>{b({parameter:z,value:f,url:t})},ue=()=>S(u.currentPage-1),fe=()=>S(u.currentPage+1),ce=f=>S(f);return s.$$set=f=>{a=U(U({},a),_e(f)),n(13,o=R(a,i)),"items"in f&&n(14,q=f.items),"variant"in f&&n(0,M=f.variant),"updating"in f&&n(1,V=f.updating),"perPageLabel"in f&&n(2,G=f.perPageLabel),"pageButtonLabel"in f&&n(3,Q=f.pageButtonLabel),"nextPageButtonLabel"in f&&n(4,T=f.nextPageButtonLabel),"previousPageButtonLabel"in f&&n(5,X=f.previousPageButtonLabel),"maxHeight"in f&&n(6,Z=f.maxHeight),"pageSizeOptions"in f&&n(7,y=f.pageSizeOptions),"fixed"in f&&n(8,J=f.fixed),"$$scope"in f&&n(24,K=f.$$scope)},s.$$.update=()=>{s.$$.dirty&524288&&n(18,t=j.url),s.$$.dirty&295040&&n(9,e=n(15,B=t.searchParams.get(N))!==null&&B!==void 0?B:y[0]),s.$$.dirty&327680&&n(17,l=n(16,I=t.searchParams.get(z))!==null&&I!==void 0?I:"1"),s.$$.dirty&147968&&h(n(10,r=Ne(q,e,l))),s.$$.dirty&262784&&(parseInt(e,10)>parseInt(x,10)?b({parameter:N,value:x,url:t}):y.includes(e)||b({parameter:N,value:Ae,url:t})),s.$$.dirty&395264&&(u.totalPages&&parseInt(l,10)>u.totalPages?b({parameter:z,value:u.totalPages,url:t}):(l===null||parseInt(l,10)<0)&&b({parameter:z,value:"1",url:t})),s.$$.dirty&132608&&(l&&r.jumpToPage(l),e&&r.adjustPageSize(e))},[M,V,G,Q,T,X,Z,y,J,e,r,u,S,o,q,B,I,l,t,j,oe,ue,fe,ce,K]}class lt extends Ie{constructor(a){super(),ye(this,a,Ue,Re,me,{items:14,variant:0,updating:1,perPageLabel:2,pageButtonLabel:3,nextPageButtonLabel:4,previousPageButtonLabel:5,maxHeight:6,pageSizeOptions:7,fixed:8})}}export{lt as P}; +import{s as me,D as R,c as ge,z as U,A as _e,a as A,u as C,g as O,e as E,h as D,j as F,k as le,f as p,m as _,i as L,y as pe,b as he,d as be,n as de,v as H,P as Pe,x as W,o as ve,t as ke,l as Le,q as Be}from"./scheduler.C46pS-76.js";import{S as Ie,i as ye,c as d,a as P,m as v,t as m,b as g,d as k,g as ie,e as re}from"./index.dOVbn71B.js";import{e as Y}from"./each.C6O0oV7R.js";import{p as Se}from"./stores.Ds4o9nwd.js";import{B as ze}from"./button.hs88FdV4.js";import{I as w}from"./icon-button.BoA3mGH0.js";import{F as He}from"./filter-select.Cuzm5_PX.js";import{p as N,c as z,a as Ne,M as x,d as Ae,o as Ce}from"./pagination.B2FxfgZG.js";import{u as b}from"./update-query-parameters.DTvdkkGj.js";import{P as Oe}from"./index.DfB8KN6E.js";const Ee=s=>({visibleItems:s&2048}),$=s=>({visibleItems:s[11].items}),je=s=>({}),ee=s=>({slot:"caption"}),qe=s=>({visibleItems:s&2048}),te=s=>({slot:"headers",visibleItems:s[11].items});function ae(s,a,n){const t=s.slice();return t[25]=a[n],t}const De=s=>({updating:s&2}),ne=s=>({slot:"empty",updating:s[1]});function Fe(s){let a;const n=s[20].default,t=A(n,s,s[24],$);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16779264)&&C(t,n,e,e[24],a?E(n,e[24],l,Ee):O(e[24]),$)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Ke(s){let a;const n=s[20].caption,t=A(n,s,s[24],ee);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16777216)&&C(t,n,e,e[24],a?E(n,e[24],l,je):O(e[24]),ee)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Me(s){let a;const n=s[20].headers,t=A(n,s,s[24],te);return{c(){t&&t.c()},l(e){t&&t.l(e)},m(e,l){t&&t.m(e,l),a=!0},p(e,l){t&&t.p&&(!a||l&16779264)&&C(t,n,e,e[24],a?E(n,e[24],l,qe):O(e[24]),te)},i(e){a||(m(t,e),a=!0)},o(e){g(t,e),a=!1},d(e){t&&t.d(e)}}}function Ve(s){let a,n;return a=new He({props:{label:s[2],parameter:N,value:s[9],options:s[7]}}),{c(){d(a.$$.fragment)},l(t){P(a.$$.fragment,t)},m(t,e){v(a,t,e),n=!0},p(t,e){const l={};e&4&&(l.label=t[2]),e&512&&(l.value=t[9]),e&128&&(l.options=t[7]),a.$set(l)},i(t){n||(m(a.$$.fragment,t),n=!0)},o(t){g(a.$$.fragment,t),n=!1},d(t){k(a,t)}}}function Ge(s){let a,n;function t(){return s[23](s[25])}return a=new ze({props:{variant:"ghost",size:"sm",class:s[25]===s[11].currentPage?"bg-interactive-secondary-active":"","aria-label":s[3](s[25]),$$slots:{default:[Te]},$$scope:{ctx:s}}}),a.$on("click",t),{c(){d(a.$$.fragment)},l(e){P(a.$$.fragment,e)},m(e,l){v(a,e,l),n=!0},p(e,l){s=e;const r={};l&2048&&(r.class=s[25]===s[11].currentPage?"bg-interactive-secondary-active":""),l&2056&&(r["aria-label"]=s[3](s[25])),l&16779264&&(r.$$scope={dirty:l,ctx:s}),a.$set(r)},i(e){n||(m(a.$$.fragment,e),n=!0)},o(e){g(a.$$.fragment,e),n=!1},d(e){k(a,e)}}}function Qe(s){let a,n="...";return{c(){a=D("span"),a.textContent=n,this.h()},l(t){a=F(t,"SPAN",{class:!0,"data-svelte-h":!0}),ve(a)!=="svelte-8xq9dv"&&(a.textContent=n),this.h()},h(){_(a,"class","text-primary")},m(t,e){L(t,a,e)},p:H,i:H,o:H,d(t){t&&p(a)}}}function Te(s){let a=s[25]+"",n;return{c(){n=ke(a)},l(t){n=Le(t,a)},m(t,e){L(t,n,e)},p(t,e){e&2048&&a!==(a=t[25]+"")&&Be(n,a)},d(t){t&&p(n)}}}function se(s){let a,n,t,e,l;const r=[Qe,Ge],i=[];function o(u,c){return c&2048&&(a=null),a==null&&(a=!!isNaN(u[25])),a?0:1}return n=o(s,-1),t=i[n]=r[n](s),{c(){t.c(),e=W()},l(u){t.l(u),e=W()},m(u,c){i[n].m(u,c),L(u,e,c),l=!0},p(u,c){let h=n;n=o(u,c),n===h?i[n].p(u,c):(ie(),g(i[h],1,1,()=>{i[h]=null}),re(),t=i[n],t?t.p(u,c):(t=i[n]=r[n](u),t.c()),m(t,1),t.m(e.parentNode,e))},i(u){l||(m(t),l=!0)},o(u){g(t),l=!1},d(u){u&&p(e),i[n].d(u)}}}function Xe(s){let a,n,t=Y(s[11].pageShortcuts),e=[];for(let r=0;rg(e[r],1,1,()=>{e[r]=null});return{c(){a=D("div");for(let r=0;r(c(),c=Pe(r,f=>n(11,u=f)),r),j;ge(s,Se,f=>n(19,j=f)),s.$$.on_destroy.push(()=>c());let{$$slots:oe={},$$scope:K}=a;var B,I;let{items:q}=a,{variant:M="primary"}=a,{updating:V=!1}=a,{perPageLabel:G}=a,{pageButtonLabel:Q}=a,{nextPageButtonLabel:T}=a,{previousPageButtonLabel:X}=a,{maxHeight:Z=""}=a,{pageSizeOptions:y=Ce}=a,{fixed:J=!1}=a;const S=f=>{b({parameter:z,value:f,url:t})},ue=()=>S(u.currentPage-1),fe=()=>S(u.currentPage+1),ce=f=>S(f);return s.$$set=f=>{a=U(U({},a),_e(f)),n(13,o=R(a,i)),"items"in f&&n(14,q=f.items),"variant"in f&&n(0,M=f.variant),"updating"in f&&n(1,V=f.updating),"perPageLabel"in f&&n(2,G=f.perPageLabel),"pageButtonLabel"in f&&n(3,Q=f.pageButtonLabel),"nextPageButtonLabel"in f&&n(4,T=f.nextPageButtonLabel),"previousPageButtonLabel"in f&&n(5,X=f.previousPageButtonLabel),"maxHeight"in f&&n(6,Z=f.maxHeight),"pageSizeOptions"in f&&n(7,y=f.pageSizeOptions),"fixed"in f&&n(8,J=f.fixed),"$$scope"in f&&n(24,K=f.$$scope)},s.$$.update=()=>{s.$$.dirty&524288&&n(18,t=j.url),s.$$.dirty&295040&&n(9,e=n(15,B=t.searchParams.get(N))!==null&&B!==void 0?B:y[0]),s.$$.dirty&327680&&n(17,l=n(16,I=t.searchParams.get(z))!==null&&I!==void 0?I:"1"),s.$$.dirty&147968&&h(n(10,r=Ne(q,e,l))),s.$$.dirty&262784&&(parseInt(e,10)>parseInt(x,10)?b({parameter:N,value:x,url:t}):y.includes(e)||b({parameter:N,value:Ae,url:t})),s.$$.dirty&395264&&(u.totalPages&&parseInt(l,10)>u.totalPages?b({parameter:z,value:u.totalPages,url:t}):(l===null||parseInt(l,10)<0)&&b({parameter:z,value:"1",url:t})),s.$$.dirty&132608&&(l&&r.jumpToPage(l),e&&r.adjustPageSize(e))},[M,V,G,Q,T,X,Z,y,J,e,r,u,S,o,q,B,I,l,t,j,oe,ue,fe,ce,K]}class lt extends Ie{constructor(a){super(),ye(this,a,Ue,Re,me,{items:14,variant:0,updating:1,perPageLabel:2,pageButtonLabel:3,nextPageButtonLabel:4,previousPageButtonLabel:5,maxHeight:6,pageSizeOptions:7,fixed:8})}}export{lt as P}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.BsR1kdqH.js b/ui/assets/local/_app/immutable/chunks/paginated.CfuFFT3F.js similarity index 78% rename from ui/assets/local/_app/immutable/chunks/paginated.BsR1kdqH.js rename to ui/assets/local/_app/immutable/chunks/paginated.CfuFFT3F.js index bde3bf172..c9a5730c9 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.BsR1kdqH.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.CfuFFT3F.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.BTloiRV6.js";import{i as c}from"./persist-store.Bvu2qNDI.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:f}={})=>{!f&&c(e)&&e();try{const o=await i(u);if(o){const{nextPageToken:n,...y}=o,a=p(f,y);return c(s)&&s(a,y),n?k(i,{onStart:e,onUpdate:s,onComplete:r,token:n,previousProps:a}):(c(r)&&r(a),a)}}catch(o){t(o)}};export{k as p}; +import{h as g}from"./route-for-api.DGDQNXtX.js";import{i as c}from"./persist-store.DeOEcwHN.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:f}={})=>{!f&&c(e)&&e();try{const o=await i(u);if(o){const{nextPageToken:n,...y}=o,a=p(f,y);return c(s)&&s(a,y),n?k(i,{onStart:e,onUpdate:s,onComplete:r,token:n,previousProps:a}):(c(r)&&r(a),a)}}catch(o){t(o)}};export{k as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.Dxf-be3Z.js b/ui/assets/local/_app/immutable/chunks/pagination.1KQhGwzN.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/pagination.Dxf-be3Z.js rename to ui/assets/local/_app/immutable/chunks/pagination.1KQhGwzN.js index 1d2f40a94..51e315a77 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.Dxf-be3Z.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.1KQhGwzN.js @@ -1 +1 @@ -import{s as it,a9 as qe,a as se,h as S,b as G,j as E,k as L,f as g,d as H,m as b,W as Ce,i as Q,n as p,aa as ot,p as re,u as ne,g as ie,e as oe,G as at,D as Ge,c as rt,K as ft,V as ut,z as He,A as _t,v as fe,P as ct,t as Y,l as x,q as de}from"./scheduler.C46pS-76.js";import{S as mt,i as bt,t as P,g as Se,b as A,e as Ee,c as Le,a as Ae,m as Ne,d as Be}from"./index.dOVbn71B.js";import{p as gt}from"./stores.Dz-RNcUk.js";import{F as st}from"./filter-select.NIuiMMoD.js";import{S as nt}from"./index.BVsZFann.js";import{b as dt,p as he,M as Je,o as Re,d as pt,a as vt}from"./pagination.BCeOU9Ta.js";import{u as De}from"./update-query-parameters.DVJ0yHKX.js";const ht=({width:e,height:t,screenWidth:a,breakpoint:s=1279})=>e&&t&&a>s?`position: absolute; right: ${e+20}px; top: -${t}px`:"",Pt=e=>({}),Qe=e=>({}),kt=e=>({}),Xe=e=>({}),It=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ze=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),wt=e=>({}),Ye=e=>({}),St=e=>({}),xe=e=>({}),Et=e=>({}),$e=e=>({}),Lt=e=>({}),et=e=>({});function tt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Re,position:"top"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function At(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Y(t),s=Y("–"),o=Y(i),h=Y(" of "),m=Y(u)},l(n){a=x(n,t),s=x(n,"–"),o=x(n,i),h=x(n," of "),m=x(n,u)},m(n,r){Q(n,a,r),Q(n,s,r),Q(n,o,r),Q(n,h,r),Q(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(g(a),g(s),g(o),g(h),g(m))}}}function Nt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Bt(e){let t,a,s,i,o,h,u,m,n,r,X,z,V,N,ee;const w=[Nt,At],K=[];function B(c,v){return c[1]?0:1}return u=B(e),m=K[u]=w[u](e),{c(){t=S("div"),a=S("button"),s=S("span"),o=G(),h=S("p"),m.c(),n=G(),r=S("button"),X=S("span"),this.h()},l(c){t=E(c,"DIV",{class:!0});var v=L(t);a=E(v,"BUTTON",{class:!0,"aria-label":!0});var y=L(a);s=E(y,"SPAN",{class:!0}),L(s).forEach(g),y.forEach(g),o=H(v),h=E(v,"P",{});var $=L(h);m.l($),$.forEach(g),n=H(v),r=E(v,"BUTTON",{class:!0,"aria-label":!0});var J=L(r);X=E(J,"SPAN",{class:!0}),L(X).forEach(g),J.forEach(g),v.forEach(g),this.h()},h(){b(s,"class","arrow arrow-left svelte-1rg14t4"),b(a,"class","caret svelte-1rg14t4"),a.disabled=i=!e[9].hasPrevious,b(a,"aria-label",e[3]),b(X,"class","arrow arrow-right svelte-1rg14t4"),b(r,"class","caret svelte-1rg14t4"),r.disabled=z=!e[9].hasNext,b(r,"aria-label",e[4]),b(t,"class","flex items-center justify-center gap-3")},m(c,v){Q(c,t,v),p(t,a),p(a,s),p(t,o),p(t,h),K[u].m(h,null),p(t,n),p(t,r),p(r,X),V=!0,N||(ee=[re(a,"click",e[27]),re(r,"click",e[28])],N=!0)},p(c,v){(!V||v[0]&512&&i!==(i=!c[9].hasPrevious))&&(a.disabled=i),(!V||v[0]&8)&&b(a,"aria-label",c[3]);let y=u;u=B(c),u===y?K[u].p(c,v):(Se(),A(K[y],1,1,()=>{K[y]=null}),Ee(),m=K[u],m?m.p(c,v):(m=K[u]=w[u](c),m.c()),P(m,1),m.m(h,null)),(!V||v[0]&512&&z!==(z=!c[9].hasNext))&&(r.disabled=z),(!V||v[0]&16)&&b(r,"aria-label",c[4])},i(c){V||(P(m),V=!0)},o(c){A(m),V=!1},d(c){c&&g(t),K[u].d(),N=!1,at(ee)}}}function lt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Re,position:"bottom"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Y(t),s=Y("–"),o=Y(i),h=Y(" of "),m=Y(u)},l(n){a=x(n,t),s=x(n,"–"),o=x(n,i),h=x(n," of "),m=x(n,u)},m(n,r){Q(n,a,r),Q(n,s,r),Q(n,o,r),Q(n,h,r),Q(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(g(a),g(s),g(o),g(h),g(m))}}}function zt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function yt(e){let t,a,s,i,o,h,u,m,n,r,X,z,V,N,ee,w,K,B,c,v,y,$,J,j,D,ae,R,Z,U,ue,_e,ce,d,pe,Pe;qe(e[26]);const ve=e[25]["action-top-left"],T=se(ve,e,e[24],et),_=e[25]["action-top-center"],W=se(_,e,e[24],$e);let k=!e[0]&&tt(e);const Ke=e[25]["pagination-top"],ke=se(Ke,e,e[24],xe),F=ke||Bt(e),ze=e[25]["action-top-right"],O=se(ze,e,e[24],Ye),ye=e[25].default,M=se(ye,e,e[24],Ze),Ve=e[25]["action-bottom-left"],q=se(Ve,e,e[24],Xe);let I=!e[0]&<(e);const Te=[zt,Kt],te=[];function Ue(l,f){return l[1]?0:1}j=Ue(e),D=te[j]=Te[j](e);const je=e[25]["action-bottom-right"],C=se(je,e,e[24],Qe);return{c(){t=S("div"),a=S("div"),s=S("div"),T&&T.c(),i=G(),o=S("nav"),W&&W.c(),h=G(),u=S("div"),k&&k.c(),m=G(),F&&F.c(),n=G(),O&&O.c(),z=G(),M&&M.c(),V=G(),N=S("nav"),q&&q.c(),ee=G(),w=S("div"),I&&I.c(),K=G(),B=S("div"),c=S("button"),v=S("span"),$=G(),J=S("p"),D.c(),ae=G(),R=S("button"),Z=S("span"),ue=G(),C&&C.c(),this.h()},l(l){t=E(l,"DIV",{class:!0});var f=L(t);a=E(f,"DIV",{class:!0});var le=L(a);s=E(le,"DIV",{class:!0});var We=L(s);T&&T.l(We),We.forEach(g),i=H(le),o=E(le,"NAV",{style:!0,class:!0,"aria-label":!0});var me=L(o);W&&W.l(me),h=H(me),u=E(me,"DIV",{class:!0});var Ie=L(u);k&&k.l(Ie),m=H(Ie),F&&F.l(Ie),Ie.forEach(g),n=H(me),O&&O.l(me),me.forEach(g),le.forEach(g),z=H(f),M&&M.l(f),V=H(f),N=E(f,"NAV",{class:!0,"aria-label":!0});var we=L(N);q&&q.l(we),ee=H(we),w=E(we,"DIV",{class:!0});var be=L(w);I&&I.l(be),K=H(be),B=E(be,"DIV",{class:!0});var ge=L(B);c=E(ge,"BUTTON",{class:!0,"aria-label":!0});var Fe=L(c);v=E(Fe,"SPAN",{class:!0}),L(v).forEach(g),Fe.forEach(g),$=H(ge),J=E(ge,"P",{});var Oe=L(J);D.l(Oe),Oe.forEach(g),ae=H(ge),R=E(ge,"BUTTON",{class:!0,"aria-label":!0});var Me=L(R);Z=E(Me,"SPAN",{class:!0}),L(Z).forEach(g),Me.forEach(g),ge.forEach(g),ue=H(be),C&&C.l(be),be.forEach(g),we.forEach(g),f.forEach(g),this.h()},h(){b(s,"class","w-full"),b(u,"class","flex gap-4"),b(o,"style",e[10]),b(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),b(o,"aria-label",r=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),b(a,"class","flex flex-col items-center justify-between gap-2 md:flex-row md:items-start"),b(v,"class","arrow arrow-left svelte-1rg14t4"),b(c,"class","caret svelte-1rg14t4"),c.disabled=y=!e[9].hasPrevious,b(c,"aria-label",e[3]),b(Z,"class","arrow arrow-right svelte-1rg14t4"),b(R,"class","caret svelte-1rg14t4"),R.disabled=U=!e[9].hasNext,b(R,"aria-label",e[4]),b(B,"class","flex items-center justify-center gap-3"),b(w,"class","flex gap-4"),b(N,"class",_e=Ce(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"),b(N,"aria-label",ce=e[14]["aria-label"]+" 2"),b(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,f){Q(l,t,f),p(t,a),p(a,s),T&&T.m(s,null),p(a,i),p(a,o),W&&W.m(o,null),p(o,h),p(o,u),k&&k.m(u,null),p(u,m),F&&F.m(u,null),p(o,n),O&&O.m(o,null),X=ot(o,e[29].bind(o)),p(t,z),M&&M.m(t,null),p(t,V),p(t,N),q&&q.m(N,null),p(N,ee),p(N,w),I&&I.m(w,null),p(w,K),p(w,B),p(B,c),p(c,v),p(B,$),p(B,J),te[j].m(J,null),p(B,ae),p(B,R),p(R,Z),p(w,ue),C&&C.m(w,null),d=!0,pe||(Pe=[re(window,"resize",e[12]),re(window,"keydown",e[13]),re(window,"resize",e[26]),re(c,"click",e[30]),re(R,"click",e[31])],pe=!0)},p(l,f){T&&T.p&&(!d||f[0]&16777216)&&ne(T,ve,l,l[24],d?oe(ve,l[24],f,Lt):ie(l[24]),et),W&&W.p&&(!d||f[0]&16777216)&&ne(W,_,l,l[24],d?oe(_,l[24],f,Et):ie(l[24]),$e),l[0]?k&&(Se(),A(k,1,1,()=>{k=null}),Ee()):k?(k.p(l,f),f[0]&1&&P(k,1)):(k=tt(l),k.c(),P(k,1),k.m(u,m)),ke?ke.p&&(!d||f[0]&16777216)&&ne(ke,Ke,l,l[24],d?oe(Ke,l[24],f,St):ie(l[24]),xe):F&&F.p&&(!d||f[0]&666)&&F.p(l,d?f:[-1,-1]),O&&O.p&&(!d||f[0]&16777216)&&ne(O,ze,l,l[24],d?oe(ze,l[24],f,wt):ie(l[24]),Ye),(!d||f[0]&1024)&&b(o,"style",l[10]),(!d||f[0]&16384&&r!==(r=l[14]["aria-label"]+" 1"))&&b(o,"aria-label",r),M&&M.p&&(!d||f[0]&16777856)&&ne(M,ye,l,l[24],d?oe(ye,l[24],f,It):ie(l[24]),Ze),q&&q.p&&(!d||f[0]&16777216)&&ne(q,Ve,l,l[24],d?oe(Ve,l[24],f,kt):ie(l[24]),Xe),l[0]?I&&(Se(),A(I,1,1,()=>{I=null}),Ee()):I?(I.p(l,f),f[0]&1&&P(I,1)):(I=lt(l),I.c(),P(I,1),I.m(w,K)),(!d||f[0]&512&&y!==(y=!l[9].hasPrevious))&&(c.disabled=y),(!d||f[0]&8)&&b(c,"aria-label",l[3]);let le=j;j=Ue(l),j===le?te[j].p(l,f):(Se(),A(te[le],1,1,()=>{te[le]=null}),Ee(),D=te[j],D?D.p(l,f):(D=te[j]=Te[j](l),D.c()),P(D,1),D.m(J,null)),(!d||f[0]&512&&U!==(U=!l[9].hasNext))&&(R.disabled=U),(!d||f[0]&16)&&b(R,"aria-label",l[4]),C&&C.p&&(!d||f[0]&16777216)&&ne(C,je,l,l[24],d?oe(je,l[24],f,Pt):ie(l[24]),Qe),(!d||f[0]&32768&&_e!==(_e=Ce(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"))&&b(N,"class",_e),(!d||f[0]&16384&&ce!==(ce=l[14]["aria-label"]+" 2"))&&b(N,"aria-label",ce)},i(l){d||(P(T,l),P(W,l),P(k),P(F,l),P(O,l),P(M,l),P(q,l),P(I),P(D),P(C,l),d=!0)},o(l){A(T,l),A(W,l),A(k),A(F,l),A(O,l),A(M,l),A(q,l),A(I),A(D),A(C,l),d=!1},d(l){l&&g(t),T&&T.d(l),W&&W.d(l),k&&k.d(),F&&F.d(l),O&&O.d(l),X(),M&&M.d(l),q&&q.d(l),I&&I.d(),te[j].d(),C&&C.d(l),pe=!1,at(Pe)}}}function Vt(e,t,a){let s,i,o,h;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Ge(t,u),n,r=fe,X=()=>(r(),r=ct(i,_=>a(9,n=_)),i),z;rt(e,gt,_=>a(23,z=_)),e.$$.on_destroy.push(()=>r());let{$$slots:V={},$$scope:N}=t;const ee=ft(V);var w;let{items:K}=t,{floatId:B=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:y=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:J}=t,{previousButtonLabel:j}=t,{nextButtonLabel:D}=t,ae,R,Z;ut(()=>{ue(),Number(c)>0&&U()});const U=()=>{De({parameter:v,value:n.currentPage,url:z.url})},ue=()=>{var _;B&&a(21,R=(_=document.getElementById(B))===null||_===void 0?void 0:_.clientWidth)};async function _e(_){switch(_.code){case"ArrowRight":case"KeyL":n.hasNext&&!_.metaKey&&(i.next(),U());break;case"ArrowLeft":case"KeyH":n.hasPrevious&&!_.metaKey&&(i.previous(),U());break;case"ArrowUp":case"KeyK":i.previousRow();break;case"ArrowDown":case"KeyJ":i.nextRow();break}}function ce(){a(5,ae=window.innerWidth)}const d=()=>{i.previous(),U()},pe=()=>{i.next(),U()};function Pe(){Z=this.clientHeight,a(6,Z)}const ve=()=>{i.previous(),U()},T=()=>{i.next(),U()};return e.$$set=_=>{t=He(He({},t),_t(_)),a(14,m=Ge(t,u)),"items"in _&&a(16,K=_.items),"floatId"in _&&a(17,B=_.floatId),"startingIndex"in _&&a(18,c=_.startingIndex),"currentPageKey"in _&&a(19,v=_.currentPageKey),"itemsPerPage"in _&&a(0,y=_.itemsPerPage),"updating"in _&&a(1,$=_.updating),"pageSizeSelectLabel"in _&&a(2,J=_.pageSizeSelectLabel),"previousButtonLabel"in _&&a(3,j=_.previousButtonLabel),"nextButtonLabel"in _&&a(4,D=_.nextButtonLabel),"$$scope"in _&&a(24,N=_.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&a(8,s=y!==null?String(y):String(dt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(s,10)>parseInt(Je,10)?De({parameter:he,value:Je,url:z.url}):Re.includes(s)||De({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&X(a(7,i=vt(K,s,c))),e.$$.dirty[0]&9961984&&a(22,o=a(20,w=z.url.searchParams.get(v))!==null&&w!==void 0?w:n.currentPage),e.$$.dirty[0]&4194432&&i.jumpToPage(o),e.$$.dirty[0]&2097248&&a(10,h=ht({width:R,height:Z,screenWidth:ae}))},[y,$,J,j,D,ae,Z,i,s,n,h,U,ue,_e,m,ee,K,B,c,v,w,R,o,z,N,V,ce,d,pe,Pe,ve,T]}class Ot extends mt{constructor(t){super(),bt(this,t,Vt,yt,it,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Ot as P}; +import{s as it,a9 as qe,a as se,h as S,b as G,j as E,k as L,f as g,d as H,m as b,W as Ce,i as Q,n as p,aa as ot,p as re,u as ne,g as ie,e as oe,G as at,D as Ge,c as rt,K as ft,V as ut,z as He,A as _t,v as fe,P as ct,t as Y,l as x,q as de}from"./scheduler.C46pS-76.js";import{S as mt,i as bt,t as P,g as Se,b as A,e as Ee,c as Le,a as Ae,m as Ne,d as Be}from"./index.dOVbn71B.js";import{p as gt}from"./stores.Ds4o9nwd.js";import{F as st}from"./filter-select.Cuzm5_PX.js";import{S as nt}from"./index.BVsZFann.js";import{b as dt,p as he,M as Je,o as Re,d as pt,a as vt}from"./pagination.B2FxfgZG.js";import{u as De}from"./update-query-parameters.DTvdkkGj.js";const ht=({width:e,height:t,screenWidth:a,breakpoint:s=1279})=>e&&t&&a>s?`position: absolute; right: ${e+20}px; top: -${t}px`:"",Pt=e=>({}),Qe=e=>({}),kt=e=>({}),Xe=e=>({}),It=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),Ze=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),wt=e=>({}),Ye=e=>({}),St=e=>({}),xe=e=>({}),Et=e=>({}),$e=e=>({}),Lt=e=>({}),et=e=>({});function tt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Re,position:"top"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function At(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Y(t),s=Y("–"),o=Y(i),h=Y(" of "),m=Y(u)},l(n){a=x(n,t),s=x(n,"–"),o=x(n,i),h=x(n," of "),m=x(n,u)},m(n,r){Q(n,a,r),Q(n,s,r),Q(n,o,r),Q(n,h,r),Q(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(g(a),g(s),g(o),g(h),g(m))}}}function Nt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Bt(e){let t,a,s,i,o,h,u,m,n,r,X,z,V,N,ee;const w=[Nt,At],K=[];function B(c,v){return c[1]?0:1}return u=B(e),m=K[u]=w[u](e),{c(){t=S("div"),a=S("button"),s=S("span"),o=G(),h=S("p"),m.c(),n=G(),r=S("button"),X=S("span"),this.h()},l(c){t=E(c,"DIV",{class:!0});var v=L(t);a=E(v,"BUTTON",{class:!0,"aria-label":!0});var y=L(a);s=E(y,"SPAN",{class:!0}),L(s).forEach(g),y.forEach(g),o=H(v),h=E(v,"P",{});var $=L(h);m.l($),$.forEach(g),n=H(v),r=E(v,"BUTTON",{class:!0,"aria-label":!0});var J=L(r);X=E(J,"SPAN",{class:!0}),L(X).forEach(g),J.forEach(g),v.forEach(g),this.h()},h(){b(s,"class","arrow arrow-left svelte-1rg14t4"),b(a,"class","caret svelte-1rg14t4"),a.disabled=i=!e[9].hasPrevious,b(a,"aria-label",e[3]),b(X,"class","arrow arrow-right svelte-1rg14t4"),b(r,"class","caret svelte-1rg14t4"),r.disabled=z=!e[9].hasNext,b(r,"aria-label",e[4]),b(t,"class","flex items-center justify-center gap-3")},m(c,v){Q(c,t,v),p(t,a),p(a,s),p(t,o),p(t,h),K[u].m(h,null),p(t,n),p(t,r),p(r,X),V=!0,N||(ee=[re(a,"click",e[27]),re(r,"click",e[28])],N=!0)},p(c,v){(!V||v[0]&512&&i!==(i=!c[9].hasPrevious))&&(a.disabled=i),(!V||v[0]&8)&&b(a,"aria-label",c[3]);let y=u;u=B(c),u===y?K[u].p(c,v):(Se(),A(K[y],1,1,()=>{K[y]=null}),Ee(),m=K[u],m?m.p(c,v):(m=K[u]=w[u](c),m.c()),P(m,1),m.m(h,null)),(!V||v[0]&512&&z!==(z=!c[9].hasNext))&&(r.disabled=z),(!V||v[0]&16)&&b(r,"aria-label",c[4])},i(c){V||(P(m),V=!0)},o(c){A(m),V=!1},d(c){c&&g(t),K[u].d(),N=!1,at(ee)}}}function lt(e){let t,a;return t=new st({props:{label:e[2],parameter:he,value:e[8],options:Re,position:"bottom"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p(s,i){const o={};i[0]&4&&(o.label=s[2]),i[0]&256&&(o.value=s[8]),t.$set(o)},i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function Kt(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",a,s,i=e[9].endingIndex+1+"",o,h,u=e[9].length+"",m;return{c(){a=Y(t),s=Y("–"),o=Y(i),h=Y(" of "),m=Y(u)},l(n){a=x(n,t),s=x(n,"–"),o=x(n,i),h=x(n," of "),m=x(n,u)},m(n,r){Q(n,a,r),Q(n,s,r),Q(n,o,r),Q(n,h,r),Q(n,m,r)},p(n,r){r[0]&512&&t!==(t=(n[9].length?n[9].startingIndex+1:0)+"")&&de(a,t),r[0]&512&&i!==(i=n[9].endingIndex+1+"")&&de(o,i),r[0]&512&&u!==(u=n[9].length+"")&&de(m,u)},i:fe,o:fe,d(n){n&&(g(a),g(s),g(o),g(h),g(m))}}}function zt(e){let t,a;return t=new nt({props:{class:"block h-5 w-24"}}),{c(){Le(t.$$.fragment)},l(s){Ae(t.$$.fragment,s)},m(s,i){Ne(t,s,i),a=!0},p:fe,i(s){a||(P(t.$$.fragment,s),a=!0)},o(s){A(t.$$.fragment,s),a=!1},d(s){Be(t,s)}}}function yt(e){let t,a,s,i,o,h,u,m,n,r,X,z,V,N,ee,w,K,B,c,v,y,$,J,j,D,ae,R,Z,U,ue,_e,ce,d,pe,Pe;qe(e[26]);const ve=e[25]["action-top-left"],T=se(ve,e,e[24],et),_=e[25]["action-top-center"],W=se(_,e,e[24],$e);let k=!e[0]&&tt(e);const Ke=e[25]["pagination-top"],ke=se(Ke,e,e[24],xe),F=ke||Bt(e),ze=e[25]["action-top-right"],O=se(ze,e,e[24],Ye),ye=e[25].default,M=se(ye,e,e[24],Ze),Ve=e[25]["action-bottom-left"],q=se(Ve,e,e[24],Xe);let I=!e[0]&<(e);const Te=[zt,Kt],te=[];function Ue(l,f){return l[1]?0:1}j=Ue(e),D=te[j]=Te[j](e);const je=e[25]["action-bottom-right"],C=se(je,e,e[24],Qe);return{c(){t=S("div"),a=S("div"),s=S("div"),T&&T.c(),i=G(),o=S("nav"),W&&W.c(),h=G(),u=S("div"),k&&k.c(),m=G(),F&&F.c(),n=G(),O&&O.c(),z=G(),M&&M.c(),V=G(),N=S("nav"),q&&q.c(),ee=G(),w=S("div"),I&&I.c(),K=G(),B=S("div"),c=S("button"),v=S("span"),$=G(),J=S("p"),D.c(),ae=G(),R=S("button"),Z=S("span"),ue=G(),C&&C.c(),this.h()},l(l){t=E(l,"DIV",{class:!0});var f=L(t);a=E(f,"DIV",{class:!0});var le=L(a);s=E(le,"DIV",{class:!0});var We=L(s);T&&T.l(We),We.forEach(g),i=H(le),o=E(le,"NAV",{style:!0,class:!0,"aria-label":!0});var me=L(o);W&&W.l(me),h=H(me),u=E(me,"DIV",{class:!0});var Ie=L(u);k&&k.l(Ie),m=H(Ie),F&&F.l(Ie),Ie.forEach(g),n=H(me),O&&O.l(me),me.forEach(g),le.forEach(g),z=H(f),M&&M.l(f),V=H(f),N=E(f,"NAV",{class:!0,"aria-label":!0});var we=L(N);q&&q.l(we),ee=H(we),w=E(we,"DIV",{class:!0});var be=L(w);I&&I.l(be),K=H(be),B=E(be,"DIV",{class:!0});var ge=L(B);c=E(ge,"BUTTON",{class:!0,"aria-label":!0});var Fe=L(c);v=E(Fe,"SPAN",{class:!0}),L(v).forEach(g),Fe.forEach(g),$=H(ge),J=E(ge,"P",{});var Oe=L(J);D.l(Oe),Oe.forEach(g),ae=H(ge),R=E(ge,"BUTTON",{class:!0,"aria-label":!0});var Me=L(R);Z=E(Me,"SPAN",{class:!0}),L(Z).forEach(g),Me.forEach(g),ge.forEach(g),ue=H(be),C&&C.l(be),be.forEach(g),we.forEach(g),f.forEach(g),this.h()},h(){b(s,"class","w-full"),b(u,"class","flex gap-4"),b(o,"style",e[10]),b(o,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),b(o,"aria-label",r=e[14]["aria-label"]+" 1"),qe(()=>e[29].call(o)),b(a,"class","flex flex-col items-center justify-between gap-2 md:flex-row md:items-start"),b(v,"class","arrow arrow-left svelte-1rg14t4"),b(c,"class","caret svelte-1rg14t4"),c.disabled=y=!e[9].hasPrevious,b(c,"aria-label",e[3]),b(Z,"class","arrow arrow-right svelte-1rg14t4"),b(R,"class","caret svelte-1rg14t4"),R.disabled=U=!e[9].hasNext,b(R,"aria-label",e[4]),b(B,"class","flex items-center justify-center gap-3"),b(w,"class","flex gap-4"),b(N,"class",_e=Ce(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"),b(N,"aria-label",ce=e[14]["aria-label"]+" 2"),b(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(l,f){Q(l,t,f),p(t,a),p(a,s),T&&T.m(s,null),p(a,i),p(a,o),W&&W.m(o,null),p(o,h),p(o,u),k&&k.m(u,null),p(u,m),F&&F.m(u,null),p(o,n),O&&O.m(o,null),X=ot(o,e[29].bind(o)),p(t,z),M&&M.m(t,null),p(t,V),p(t,N),q&&q.m(N,null),p(N,ee),p(N,w),I&&I.m(w,null),p(w,K),p(w,B),p(B,c),p(c,v),p(B,$),p(B,J),te[j].m(J,null),p(B,ae),p(B,R),p(R,Z),p(w,ue),C&&C.m(w,null),d=!0,pe||(Pe=[re(window,"resize",e[12]),re(window,"keydown",e[13]),re(window,"resize",e[26]),re(c,"click",e[30]),re(R,"click",e[31])],pe=!0)},p(l,f){T&&T.p&&(!d||f[0]&16777216)&&ne(T,ve,l,l[24],d?oe(ve,l[24],f,Lt):ie(l[24]),et),W&&W.p&&(!d||f[0]&16777216)&&ne(W,_,l,l[24],d?oe(_,l[24],f,Et):ie(l[24]),$e),l[0]?k&&(Se(),A(k,1,1,()=>{k=null}),Ee()):k?(k.p(l,f),f[0]&1&&P(k,1)):(k=tt(l),k.c(),P(k,1),k.m(u,m)),ke?ke.p&&(!d||f[0]&16777216)&&ne(ke,Ke,l,l[24],d?oe(Ke,l[24],f,St):ie(l[24]),xe):F&&F.p&&(!d||f[0]&666)&&F.p(l,d?f:[-1,-1]),O&&O.p&&(!d||f[0]&16777216)&&ne(O,ze,l,l[24],d?oe(ze,l[24],f,wt):ie(l[24]),Ye),(!d||f[0]&1024)&&b(o,"style",l[10]),(!d||f[0]&16384&&r!==(r=l[14]["aria-label"]+" 1"))&&b(o,"aria-label",r),M&&M.p&&(!d||f[0]&16777856)&&ne(M,ye,l,l[24],d?oe(ye,l[24],f,It):ie(l[24]),Ze),q&&q.p&&(!d||f[0]&16777216)&&ne(q,Ve,l,l[24],d?oe(Ve,l[24],f,kt):ie(l[24]),Xe),l[0]?I&&(Se(),A(I,1,1,()=>{I=null}),Ee()):I?(I.p(l,f),f[0]&1&&P(I,1)):(I=lt(l),I.c(),P(I,1),I.m(w,K)),(!d||f[0]&512&&y!==(y=!l[9].hasPrevious))&&(c.disabled=y),(!d||f[0]&8)&&b(c,"aria-label",l[3]);let le=j;j=Ue(l),j===le?te[j].p(l,f):(Se(),A(te[le],1,1,()=>{te[le]=null}),Ee(),D=te[j],D?D.p(l,f):(D=te[j]=Te[j](l),D.c()),P(D,1),D.m(J,null)),(!d||f[0]&512&&U!==(U=!l[9].hasNext))&&(R.disabled=U),(!d||f[0]&16)&&b(R,"aria-label",l[4]),C&&C.p&&(!d||f[0]&16777216)&&ne(C,je,l,l[24],d?oe(je,l[24],f,Pt):ie(l[24]),Qe),(!d||f[0]&32768&&_e!==(_e=Ce(`flex ${l[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1rg14t4"))&&b(N,"class",_e),(!d||f[0]&16384&&ce!==(ce=l[14]["aria-label"]+" 2"))&&b(N,"aria-label",ce)},i(l){d||(P(T,l),P(W,l),P(k),P(F,l),P(O,l),P(M,l),P(q,l),P(I),P(D),P(C,l),d=!0)},o(l){A(T,l),A(W,l),A(k),A(F,l),A(O,l),A(M,l),A(q,l),A(I),A(D),A(C,l),d=!1},d(l){l&&g(t),T&&T.d(l),W&&W.d(l),k&&k.d(),F&&F.d(l),O&&O.d(l),X(),M&&M.d(l),q&&q.d(l),I&&I.d(),te[j].d(),C&&C.d(l),pe=!1,at(Pe)}}}function Vt(e,t,a){let s,i,o,h;const u=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let m=Ge(t,u),n,r=fe,X=()=>(r(),r=ct(i,_=>a(9,n=_)),i),z;rt(e,gt,_=>a(23,z=_)),e.$$.on_destroy.push(()=>r());let{$$slots:V={},$$scope:N}=t;const ee=ft(V);var w;let{items:K}=t,{floatId:B=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:v="page"}=t,{itemsPerPage:y=null}=t,{updating:$=!1}=t,{pageSizeSelectLabel:J}=t,{previousButtonLabel:j}=t,{nextButtonLabel:D}=t,ae,R,Z;ut(()=>{ue(),Number(c)>0&&U()});const U=()=>{De({parameter:v,value:n.currentPage,url:z.url})},ue=()=>{var _;B&&a(21,R=(_=document.getElementById(B))===null||_===void 0?void 0:_.clientWidth)};async function _e(_){switch(_.code){case"ArrowRight":case"KeyL":n.hasNext&&!_.metaKey&&(i.next(),U());break;case"ArrowLeft":case"KeyH":n.hasPrevious&&!_.metaKey&&(i.previous(),U());break;case"ArrowUp":case"KeyK":i.previousRow();break;case"ArrowDown":case"KeyJ":i.nextRow();break}}function ce(){a(5,ae=window.innerWidth)}const d=()=>{i.previous(),U()},pe=()=>{i.next(),U()};function Pe(){Z=this.clientHeight,a(6,Z)}const ve=()=>{i.previous(),U()},T=()=>{i.next(),U()};return e.$$set=_=>{t=He(He({},t),_t(_)),a(14,m=Ge(t,u)),"items"in _&&a(16,K=_.items),"floatId"in _&&a(17,B=_.floatId),"startingIndex"in _&&a(18,c=_.startingIndex),"currentPageKey"in _&&a(19,v=_.currentPageKey),"itemsPerPage"in _&&a(0,y=_.itemsPerPage),"updating"in _&&a(1,$=_.updating),"pageSizeSelectLabel"in _&&a(2,J=_.pageSizeSelectLabel),"previousButtonLabel"in _&&a(3,j=_.previousButtonLabel),"nextButtonLabel"in _&&a(4,D=_.nextButtonLabel),"$$scope"in _&&a(24,N=_.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&a(8,s=y!==null?String(y):String(dt(z.url.searchParams.get(he))).toString()),e.$$.dirty[0]&8388864&&(parseInt(s,10)>parseInt(Je,10)?De({parameter:he,value:Je,url:z.url}):Re.includes(s)||De({parameter:he,value:pt,url:z.url})),e.$$.dirty[0]&327936&&X(a(7,i=vt(K,s,c))),e.$$.dirty[0]&9961984&&a(22,o=a(20,w=z.url.searchParams.get(v))!==null&&w!==void 0?w:n.currentPage),e.$$.dirty[0]&4194432&&i.jumpToPage(o),e.$$.dirty[0]&2097248&&a(10,h=ht({width:R,height:Z,screenWidth:ae}))},[y,$,J,j,D,ae,Z,i,s,n,h,U,ue,_e,m,ee,K,B,c,v,w,R,o,z,N,V,ce,d,pe,Pe,ve,T]}class Ot extends mt{constructor(t){super(),bt(this,t,Vt,yt,it,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{Ot as P}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.BCeOU9Ta.js b/ui/assets/local/_app/immutable/chunks/pagination.B2FxfgZG.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/pagination.BCeOU9Ta.js rename to ui/assets/local/_app/immutable/chunks/pagination.B2FxfgZG.js index fe1c463d8..2a44bc036 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.BCeOU9Ta.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.B2FxfgZG.js @@ -1 +1 @@ -import{d as B,w as l}from"./entry.DLEzeuD9.js";import{C as o}from"./scheduler.C46pS-76.js";const d=100,M=["100","250","500"],k="per-page",q="page",z=M[M.length-1],h=(t,n)=>Math.floor(t/n)+1,C=(t,n)=>n<=9?new Array(n).fill(0).map((f,u)=>u+1):t<5?[1,2,3,4,5,NaN,n-2,n-1,n]:t>=5&&t<=n-5?[1,2,NaN,t-1,t,t+1,NaN,n-1,n]:t>=n-5?[1,2,NaN,n-5,n-4,n-3,n-2,n-1,n]:[],S=(t,n,f)=>{if(isNaN(t)||t<=1)return 0;if(t>m(n,f)){const u=f.length-n;return u>0?u:0}return Math.floor(n*(t-1))},G=(t,n,f)=>{const u=h(t,n);return S(u,n,f)},R=(t,n)=>Math.min(t-1,n-1),m=(t,n)=>Math.ceil(n.length/t),p=(t,n)=>isNaN(t)||t<0?0:tt>=n.length||t<0,D=(t=[],n=d,f=0)=>{n=O(n);const u=G(x(f),n,t),c=l(n),i=l(u),s=l(void 0),_=r=>{c.set(x(r))},A=()=>{I(),i.update(r=>{const e=r+o(c);return g(e,t)?r:p(e,t)})},j=()=>{I(),i.update(r=>{const e=r-o(c);return p(e,t)})},v=r=>{const e=o(c),a=S(Number(r),e,t),N=t.slice(a,a+e).length;return o(s)>N-1&&s.set(N-1),i.set(a)},y=r=>{const e=h(Number(r),o(c));v(e)},b=r=>{for(let e=0;e{const e=b(r);return h(e,o(c))},I=(r=void 0)=>{r===void 0&&s.set(r);const e=t.slice(o(i),o(i)+o(c)).length,a=R(e,o(c));r<=a&&s.set(r)},T=()=>{const r=t.slice(o(i),o(i)+o(c)).length,e=R(r,o(c));o(s)===void 0?s.set(0):o(s){const r=o(s)>=1?o(s)-1:0;s.set(r)},{subscribe:K}=B([i,c,s],([r,e,a])=>{const N=m(e,t),w=h(r,e);return{items:t.slice(r,r+e),initialItem:t[0],hasPrevious:!g(r-e,t),hasNext:!g(r+e,t),startingIndex:r,endingIndex:p(r+e-1,t),length:t.length,pageSize:e,currentPage:w,totalPages:N,activeRowIndex:a,pageShortcuts:C(w,N)}});return{subscribe:K,adjustPageSize:_,next:A,previous:j,jumpToPage:v,jumpToIndex:y,findIndex:b,findPage:F,nextRow:T,previousRow:E,setActiveRowIndex:I}},O=(t=d)=>{const n=x(t);return isNaN(n)||!n?d:n},x=(t=0)=>{const n=Number(t);return isNaN(n)||!n?0:Math.abs(n)};export{z as M,D as a,O as b,q as c,d,M as o,k as p}; +import{d as B,w as l}from"./entry.kylZibtV.js";import{C as o}from"./scheduler.C46pS-76.js";const d=100,M=["100","250","500"],k="per-page",q="page",z=M[M.length-1],h=(t,n)=>Math.floor(t/n)+1,C=(t,n)=>n<=9?new Array(n).fill(0).map((f,u)=>u+1):t<5?[1,2,3,4,5,NaN,n-2,n-1,n]:t>=5&&t<=n-5?[1,2,NaN,t-1,t,t+1,NaN,n-1,n]:t>=n-5?[1,2,NaN,n-5,n-4,n-3,n-2,n-1,n]:[],S=(t,n,f)=>{if(isNaN(t)||t<=1)return 0;if(t>m(n,f)){const u=f.length-n;return u>0?u:0}return Math.floor(n*(t-1))},G=(t,n,f)=>{const u=h(t,n);return S(u,n,f)},R=(t,n)=>Math.min(t-1,n-1),m=(t,n)=>Math.ceil(n.length/t),p=(t,n)=>isNaN(t)||t<0?0:tt>=n.length||t<0,D=(t=[],n=d,f=0)=>{n=O(n);const u=G(x(f),n,t),c=l(n),i=l(u),s=l(void 0),_=r=>{c.set(x(r))},A=()=>{I(),i.update(r=>{const e=r+o(c);return g(e,t)?r:p(e,t)})},j=()=>{I(),i.update(r=>{const e=r-o(c);return p(e,t)})},v=r=>{const e=o(c),a=S(Number(r),e,t),N=t.slice(a,a+e).length;return o(s)>N-1&&s.set(N-1),i.set(a)},y=r=>{const e=h(Number(r),o(c));v(e)},b=r=>{for(let e=0;e{const e=b(r);return h(e,o(c))},I=(r=void 0)=>{r===void 0&&s.set(r);const e=t.slice(o(i),o(i)+o(c)).length,a=R(e,o(c));r<=a&&s.set(r)},T=()=>{const r=t.slice(o(i),o(i)+o(c)).length,e=R(r,o(c));o(s)===void 0?s.set(0):o(s){const r=o(s)>=1?o(s)-1:0;s.set(r)},{subscribe:K}=B([i,c,s],([r,e,a])=>{const N=m(e,t),w=h(r,e);return{items:t.slice(r,r+e),initialItem:t[0],hasPrevious:!g(r-e,t),hasNext:!g(r+e,t),startingIndex:r,endingIndex:p(r+e-1,t),length:t.length,pageSize:e,currentPage:w,totalPages:N,activeRowIndex:a,pageShortcuts:C(w,N)}});return{subscribe:K,adjustPageSize:_,next:A,previous:j,jumpToPage:v,jumpToIndex:y,findIndex:b,findPage:F,nextRow:T,previousRow:E,setActiveRowIndex:I}},O=(t=d)=>{const n=x(t);return isNaN(n)||!n?d:n},x=(t=0)=>{const n=Number(t);return isNaN(n)||!n?0:Math.abs(n)};export{z as M,D as a,O as b,q as c,d,M as o,k as p}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.C1CnfzR-.js b/ui/assets/local/_app/immutable/chunks/paths.C1CnfzR-.js new file mode 100644 index 000000000..3e0324ed9 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.C1CnfzR-.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1csuzjo)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1csuzjo)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.DlAH43M2.js b/ui/assets/local/_app/immutable/chunks/paths.DlAH43M2.js deleted file mode 100644 index 20ecdef8f..000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.DlAH43M2.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_1ip12pi)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1ip12pi)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-decoder.DlOPrRzg.js b/ui/assets/local/_app/immutable/chunks/payload-decoder.C_mCVVdL.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/payload-decoder.DlOPrRzg.js rename to ui/assets/local/_app/immutable/chunks/payload-decoder.C_mCVVdL.js index 4e7067df5..2db1908ec 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-decoder.DlOPrRzg.js +++ b/ui/assets/local/_app/immutable/chunks/payload-decoder.C_mCVVdL.js @@ -1 +1 @@ -import{s as V,a as T,u as v,g as E,e as I,c as h}from"./scheduler.C46pS-76.js";import{S,i as U,t as W,b as q}from"./index.dOVbn71B.js";import{p as w}from"./stores.Dz-RNcUk.js";import{a as B}from"./auth-user.BOlglCm6.js";import{c as j,d as z}from"./decode-payload.BTpeWKqJ.js";import{g as F,a as G,b as H}from"./data-encoder.B_90sJUu.js";import{s as m}from"./parse-with-big-int.BKSBwM2t.js";const J=e=>({decodedValue:e&1}),C=e=>({decodedValue:e[0]});function K(e){let n;const s=e[10].default,o=T(s,e,e[9],C);return{c(){o&&o.c()},l(t){o&&o.l(t)},m(t,d){o&&o.m(t,d),n=!0},p(t,[d]){o&&o.p&&(!n||d&513)&&v(o,s,t,t[9],n?I(s,t[9],d,J):E(t[9]),C)},i(t){n||(W(o,t),n=!0)},o(t){q(o,t),n=!1},d(t){o&&o.d(t)}}}function L(e,n,s){let o,t,d,g,y,c;h(e,B,a=>s(12,y=a)),h(e,w,a=>s(8,c=a));let{$$slots:P={},$$scope:k}=n;var r;let{value:i}=n,{key:l=""}=n,{onDecode:u=void 0}=n,A=l&&(i!=null&&i[l])?i[l]:i,f=m(A);const D=async a=>{try{const p=await j(a,c.params.namespace,g,y.accessToken),_=z(p),b=l&&(_==null?void 0:_[l]);b?s(0,f=m(b)):s(0,f=m(_)),u&&u(f)}catch{console.error("Could not decode payloads")}};return e.$$set=a=>{"value"in a&&s(1,i=a.value),"key"in a&&s(2,l=a.key),"onDecode"in a&&s(3,u=a.onDecode),"$$scope"in a&&s(9,k=a.$$scope)},e.$$.update=()=>{e.$$.dirty&256&&s(7,o=F(c.data.settings)),e.$$.dirty&256&&s(6,t=G(c.data.settings)),e.$$.dirty&256&&s(5,d=H(c.data.settings)),e.$$.dirty&496&&(g={...c.data.settings,codec:{...s(4,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:o,passAccessToken:t,includeCredentials:d}}),e.$$.dirty&2&&D(i)},[f,i,l,u,r,d,t,o,c,k,P]}class Z extends S{constructor(n){super(),U(this,n,L,K,V,{value:1,key:2,onDecode:3})}}export{Z as P}; +import{s as V,a as T,u as v,g as E,e as I,c as h}from"./scheduler.C46pS-76.js";import{S,i as U,t as W,b as q}from"./index.dOVbn71B.js";import{p as w}from"./stores.Ds4o9nwd.js";import{a as B}from"./auth-user.CfsLeCYD.js";import{c as j,d as z}from"./decode-payload.CR1Tto5x.js";import{g as F,a as G,b as H}from"./data-encoder.CsUWoJ2q.js";import{s as m}from"./parse-with-big-int.BKSBwM2t.js";const J=e=>({decodedValue:e&1}),C=e=>({decodedValue:e[0]});function K(e){let n;const s=e[10].default,o=T(s,e,e[9],C);return{c(){o&&o.c()},l(t){o&&o.l(t)},m(t,d){o&&o.m(t,d),n=!0},p(t,[d]){o&&o.p&&(!n||d&513)&&v(o,s,t,t[9],n?I(s,t[9],d,J):E(t[9]),C)},i(t){n||(W(o,t),n=!0)},o(t){q(o,t),n=!1},d(t){o&&o.d(t)}}}function L(e,n,s){let o,t,d,g,y,c;h(e,B,a=>s(12,y=a)),h(e,w,a=>s(8,c=a));let{$$slots:P={},$$scope:k}=n;var r;let{value:i}=n,{key:l=""}=n,{onDecode:u=void 0}=n,A=l&&(i!=null&&i[l])?i[l]:i,f=m(A);const D=async a=>{try{const p=await j(a,c.params.namespace,g,y.accessToken),_=z(p),b=l&&(_==null?void 0:_[l]);b?s(0,f=m(b)):s(0,f=m(_)),u&&u(f)}catch{console.error("Could not decode payloads")}};return e.$$set=a=>{"value"in a&&s(1,i=a.value),"key"in a&&s(2,l=a.key),"onDecode"in a&&s(3,u=a.onDecode),"$$scope"in a&&s(9,k=a.$$scope)},e.$$.update=()=>{e.$$.dirty&256&&s(7,o=F(c.data.settings)),e.$$.dirty&256&&s(6,t=G(c.data.settings)),e.$$.dirty&256&&s(5,d=H(c.data.settings)),e.$$.dirty&496&&(g={...c.data.settings,codec:{...s(4,r=c.data.settings)===null||r===void 0?void 0:r.codec,endpoint:o,passAccessToken:t,includeCredentials:d}}),e.$$.dirty&2&&D(i)},[f,i,l,u,r,d,t,o,c,k,P]}class Z extends S{constructor(n){super(),U(this,n,L,K,V,{value:1,key:2,onDecode:3})}}export{Z as P}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.BapU-_VF.js b/ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.CjdKAmav.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.BapU-_VF.js rename to ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.CjdKAmav.js index b341a13a1..dfdbff490 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.BapU-_VF.js +++ b/ui/assets/local/_app/immutable/chunks/payload-input-with-encoding.CjdKAmav.js @@ -1 +1 @@ -import{s as z,h as I,t as A,b as q,j as R,k as S,l as B,f as g,d as H,m as N,i as y,n as E,M as F,N as V,O as C,v as O,P as G,w as J}from"./scheduler.C46pS-76.js";import{S as K,i as L,c as m,a as _,m as b,t as h,b as $,d as v,f as D}from"./index.dOVbn71B.js";import{C as Q}from"./card.DbXyfCsc.js";import{R as U,a as M}from"./radio-input.yEAROJgW.js";import{t as T}from"./translate.BBe5dcco.js";import{P as W}from"./payload-input.BbQDy2Xg.js";import{v as X}from"./toaster.D-OAJjvv.js";function Y(s){let n,a,u,l;return n=new M({props:{id:"json/plain",value:"json/plain",label:"json/plain"}}),u=new M({props:{id:"json/protobuf",value:"json/protobuf",label:"json/protobuf"}}),{c(){m(n.$$.fragment),a=q(),m(u.$$.fragment)},l(e){_(n.$$.fragment,e),a=H(e),_(u.$$.fragment,e)},m(e,o){b(n,e,o),y(e,a,o),b(u,e,o),l=!0},p:O,i(e){l||(h(n.$$.fragment,e),h(u.$$.fragment,e),l=!0)},o(e){$(n.$$.fragment,e),$(u.$$.fragment,e),l=!1},d(e){e&&g(a),v(n,e),v(u,e)}}}function Z(s){let n,a,u,l,e,o,p,r;function f(i){s[5](i)}function d(i){s[6](i)}let w={error:s[4],id:s[3]};s[0]!==void 0&&(w.input=s[0]),s[2]!==void 0&&(w.loading=s[2]),n=new W({props:w}),V.push(()=>D(n,"input",f)),V.push(()=>D(n,"loading",d));function P(i){s[7](i)}let j={description:T("workflows.encoding"),name:"encoding",$$slots:{default:[Y]},$$scope:{ctx:s}};return s[1]!==void 0&&(j.group=s[1]),o=new U({props:j}),V.push(()=>D(o,"group",P)),{c(){m(n.$$.fragment),l=q(),e=I("div"),m(o.$$.fragment),this.h()},l(i){_(n.$$.fragment,i),l=H(i),e=R(i,"DIV",{class:!0});var t=S(e);_(o.$$.fragment,t),t.forEach(g),this.h()},h(){N(e,"class","flex items-end justify-between")},m(i,t){b(n,i,t),y(i,l,t),y(i,e,t),b(o,e,null),r=!0},p(i,t){const c={};t&16&&(c.error=i[4]),t&8&&(c.id=i[3]),!a&&t&1&&(a=!0,c.input=i[0],C(()=>a=!1)),!u&&t&4&&(u=!0,c.loading=i[2],C(()=>u=!1)),n.$set(c);const k={};t&1024&&(k.$$scope={dirty:t,ctx:i}),!p&&t&2&&(p=!0,k.group=i[1],C(()=>p=!1)),o.$set(k)},i(i){r||(h(n.$$.fragment,i),h(o.$$.fragment,i),r=!0)},o(i){$(n.$$.fragment,i),$(o.$$.fragment,i),r=!1},d(i){i&&(g(l),g(e)),v(n,i),v(o)}}}function x(s){let n,a,u=T("workflows.input")+"",l,e,o,p;return o=new Q({props:{class:"flex flex-col gap-2",$$slots:{default:[Z]},$$scope:{ctx:s}}}),{c(){n=I("div"),a=I("h5"),l=A(u),e=q(),m(o.$$.fragment),this.h()},l(r){n=R(r,"DIV",{});var f=S(n);a=R(f,"H5",{class:!0});var d=S(a);l=B(d,u),d.forEach(g),e=H(f),_(o.$$.fragment,f),f.forEach(g),this.h()},h(){N(a,"class","pb-1 text-sm font-medium")},m(r,f){y(r,n,f),E(n,a),E(a,l),E(n,e),b(o,n,null),p=!0},p(r,[f]){const d={};f&1055&&(d.$$scope={dirty:f,ctx:r}),o.$set(d)},i(r){p||(h(o.$$.fragment,r),p=!0)},o(r){$(o.$$.fragment,r),p=!1},d(r){r&&g(n),v(o)}}}const nn=["json/plain","json/protobuf"],fn=s=>nn.includes(s);function en(s,n,a){let u,l=O,e=()=>(l(),l=G(r,t=>a(8,u=t)),r);s.$$.on_destroy.push(()=>l());let{id:o=X()}=n,{input:p}=n,{encoding:r}=n;e();let{error:f=!1}=n,{loading:d=!1}=n;F(()=>{J(r,u="json/plain",u)});function P(t){p=t,a(0,p)}function j(t){d=t,a(2,d)}function i(t){r=t,e(a(1,r))}return s.$$set=t=>{"id"in t&&a(3,o=t.id),"input"in t&&a(0,p=t.input),"encoding"in t&&e(a(1,r=t.encoding)),"error"in t&&a(4,f=t.error),"loading"in t&&a(2,d=t.loading)},[p,r,d,o,f,P,j,i]}class pn extends K{constructor(n){super(),L(this,n,en,x,z,{id:3,input:0,encoding:1,error:4,loading:2})}}export{pn as P,fn as i}; +import{s as z,h as I,t as A,b as q,j as R,k as S,l as B,f as g,d as H,m as N,i as y,n as E,M as F,N as V,O as C,v as O,P as G,w as J}from"./scheduler.C46pS-76.js";import{S as K,i as L,c as m,a as _,m as b,t as h,b as $,d as v,f as D}from"./index.dOVbn71B.js";import{C as Q}from"./card.DbXyfCsc.js";import{R as U,a as M}from"./radio-input.OzdV2p8V.js";import{t as T}from"./translate.BBe5dcco.js";import{P as W}from"./payload-input.BCsK9YCY.js";import{v as X}from"./toaster.p5hsABhI.js";function Y(s){let n,a,u,l;return n=new M({props:{id:"json/plain",value:"json/plain",label:"json/plain"}}),u=new M({props:{id:"json/protobuf",value:"json/protobuf",label:"json/protobuf"}}),{c(){m(n.$$.fragment),a=q(),m(u.$$.fragment)},l(e){_(n.$$.fragment,e),a=H(e),_(u.$$.fragment,e)},m(e,o){b(n,e,o),y(e,a,o),b(u,e,o),l=!0},p:O,i(e){l||(h(n.$$.fragment,e),h(u.$$.fragment,e),l=!0)},o(e){$(n.$$.fragment,e),$(u.$$.fragment,e),l=!1},d(e){e&&g(a),v(n,e),v(u,e)}}}function Z(s){let n,a,u,l,e,o,p,r;function f(i){s[5](i)}function d(i){s[6](i)}let w={error:s[4],id:s[3]};s[0]!==void 0&&(w.input=s[0]),s[2]!==void 0&&(w.loading=s[2]),n=new W({props:w}),V.push(()=>D(n,"input",f)),V.push(()=>D(n,"loading",d));function P(i){s[7](i)}let j={description:T("workflows.encoding"),name:"encoding",$$slots:{default:[Y]},$$scope:{ctx:s}};return s[1]!==void 0&&(j.group=s[1]),o=new U({props:j}),V.push(()=>D(o,"group",P)),{c(){m(n.$$.fragment),l=q(),e=I("div"),m(o.$$.fragment),this.h()},l(i){_(n.$$.fragment,i),l=H(i),e=R(i,"DIV",{class:!0});var t=S(e);_(o.$$.fragment,t),t.forEach(g),this.h()},h(){N(e,"class","flex items-end justify-between")},m(i,t){b(n,i,t),y(i,l,t),y(i,e,t),b(o,e,null),r=!0},p(i,t){const c={};t&16&&(c.error=i[4]),t&8&&(c.id=i[3]),!a&&t&1&&(a=!0,c.input=i[0],C(()=>a=!1)),!u&&t&4&&(u=!0,c.loading=i[2],C(()=>u=!1)),n.$set(c);const k={};t&1024&&(k.$$scope={dirty:t,ctx:i}),!p&&t&2&&(p=!0,k.group=i[1],C(()=>p=!1)),o.$set(k)},i(i){r||(h(n.$$.fragment,i),h(o.$$.fragment,i),r=!0)},o(i){$(n.$$.fragment,i),$(o.$$.fragment,i),r=!1},d(i){i&&(g(l),g(e)),v(n,i),v(o)}}}function x(s){let n,a,u=T("workflows.input")+"",l,e,o,p;return o=new Q({props:{class:"flex flex-col gap-2",$$slots:{default:[Z]},$$scope:{ctx:s}}}),{c(){n=I("div"),a=I("h5"),l=A(u),e=q(),m(o.$$.fragment),this.h()},l(r){n=R(r,"DIV",{});var f=S(n);a=R(f,"H5",{class:!0});var d=S(a);l=B(d,u),d.forEach(g),e=H(f),_(o.$$.fragment,f),f.forEach(g),this.h()},h(){N(a,"class","pb-1 text-sm font-medium")},m(r,f){y(r,n,f),E(n,a),E(a,l),E(n,e),b(o,n,null),p=!0},p(r,[f]){const d={};f&1055&&(d.$$scope={dirty:f,ctx:r}),o.$set(d)},i(r){p||(h(o.$$.fragment,r),p=!0)},o(r){$(o.$$.fragment,r),p=!1},d(r){r&&g(n),v(o)}}}const nn=["json/plain","json/protobuf"],fn=s=>nn.includes(s);function en(s,n,a){let u,l=O,e=()=>(l(),l=G(r,t=>a(8,u=t)),r);s.$$.on_destroy.push(()=>l());let{id:o=X()}=n,{input:p}=n,{encoding:r}=n;e();let{error:f=!1}=n,{loading:d=!1}=n;F(()=>{J(r,u="json/plain",u)});function P(t){p=t,a(0,p)}function j(t){d=t,a(2,d)}function i(t){r=t,e(a(1,r))}return s.$$set=t=>{"id"in t&&a(3,o=t.id),"input"in t&&a(0,p=t.input),"encoding"in t&&e(a(1,r=t.encoding)),"error"in t&&a(4,f=t.error),"loading"in t&&a(2,d=t.loading)},[p,r,d,o,f,P,j,i]}class pn extends K{constructor(n){super(),L(this,n,en,x,z,{id:3,input:0,encoding:1,error:4,loading:2})}}export{pn as P,fn as i}; diff --git a/ui/assets/local/_app/immutable/chunks/payload-input.BbQDy2Xg.js b/ui/assets/local/_app/immutable/chunks/payload-input.BCsK9YCY.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/payload-input.BbQDy2Xg.js rename to ui/assets/local/_app/immutable/chunks/payload-input.BCsK9YCY.js index 661a808b8..aad424e27 100644 --- a/ui/assets/local/_app/immutable/chunks/payload-input.BbQDy2Xg.js +++ b/ui/assets/local/_app/immutable/chunks/payload-input.BCsK9YCY.js @@ -1 +1 @@ -import{s as F,h as S,b as V,j,k as q,f as k,d as A,m,i as D,p as J,t as M,l as O,H as N,n as y,v as z,q as G,M as K}from"./scheduler.C46pS-76.js";import{S as R,i as B,c as E,a as C,m as L,t as w,b as T,d as P,g as Q,e as W}from"./index.dOVbn71B.js";import{C as X}from"./code-block.BkCXXL0z.js";import{I as Y}from"./icon.CfkHLDdJ.js";import{t as I}from"./translate.BBe5dcco.js";import{t as Z,v as x}from"./toaster.D-OAJjvv.js";import{L as $}from"./label.BlTcUXFh.js";import{T as ee}from"./tooltip.D2lOlqUw.js";function te(a){let e,t,n,l,o,d,u;return t=new Y({props:{name:"upload"}}),{c(){e=S("label"),E(t.$$.fragment),n=V(),l=S("input"),this.h()},l(r){e=j(r,"LABEL",{for:!0,class:!0});var s=q(e);C(t.$$.fragment,s),s.forEach(k),n=A(r),l=j(r,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),this.h()},h(){m(e,"for",a[0]),m(e,"class","file-upload-label svelte-nqh6y4"),m(l,"id",a[0]),m(l,"class","hidden"),m(l,"type","file"),m(l,"accept",a[1])},m(r,s){D(r,e,s),L(t,e,null),D(r,n,s),D(r,l,s),o=!0,d||(u=J(l,"change",a[2]),d=!0)},p(r,[s]){(!o||s&1)&&m(e,"for",r[0]),(!o||s&1)&&m(l,"id",r[0]),(!o||s&2)&&m(l,"accept",r[1])},i(r){o||(w(t.$$.fragment,r),o=!0)},o(r){T(t.$$.fragment,r),o=!1},d(r){r&&(k(e),k(n),k(l)),P(t),d=!1,u()}}}function ne(a,e,t){let{id:n}=e,{accept:l=".json"}=e,{onUpload:o}=e;const d=u=>{var r;const s=u.target,h=(r=s==null?void 0:s.files)===null||r===void 0?void 0:r[0],p=new FileReader;h&&(p.readAsText(h),p.onload=()=>{var b,i;try{const g=(i=(b=p==null?void 0:p.result)===null||b===void 0?void 0:b.toString())!==null&&i!==void 0?i:"";o(g)}catch{Z.push({variant:"error",message:I("common.upload-error")})}})};return a.$$set=u=>{"id"in u&&t(0,n=u.id),"accept"in u&&t(1,l=u.accept),"onUpload"in u&&t(3,o=u.onUpload)},[n,l,d,o]}class le extends R{constructor(e){super(),B(this,e,ne,te,F,{id:0,accept:1,onUpload:3})}}function H(a){let e,t;return e=new X({props:{id:a[3],maxHeight:320,content:a[0],editable:!0,copyable:!1}}),e.$on("change",a[6]),{c(){E(e.$$.fragment)},l(n){C(e.$$.fragment,n)},m(n,l){L(e,n,l),t=!0},p(n,l){const o={};l&8&&(o.id=n[3]),l&1&&(o.content=n[0]),e.$set(o)},i(n){t||(w(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){P(e,n)}}}function ae(a){let e,t;return e=new le({props:{id:a[3]+"-input-file-upload",onUpload:a[7]}}),{c(){E(e.$$.fragment)},l(n){C(e.$$.fragment,n)},m(n,l){L(e,n,l),t=!0},p(n,l){const o={};l&8&&(o.id=n[3]+"-input-file-upload"),e.$set(o)},i(n){t||(w(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){P(e,n)}}}function oe(a){let e,t,n,l,o=a[2],d,u,r,s,h=(a[1]?I("common.input-valid-json"):a[5])+"",p,b,i,g;t=new $({props:{for:a[3],label:a[4]}});let _=H(a);return u=new ee({props:{text:I("common.upload-json"),topRight:!0,$$slots:{default:[ae]},$$scope:{ctx:a}}}),{c(){e=S("div"),E(t.$$.fragment),n=V(),l=S("div"),_.c(),d=V(),E(u.$$.fragment),r=V(),s=S("span"),p=M(h),this.h()},l(f){e=j(f,"DIV",{class:!0});var c=q(e);C(t.$$.fragment,c),n=A(c),l=j(c,"DIV",{class:!0});var v=q(l);_.l(v),d=A(v),C(u.$$.fragment,v),v.forEach(k),r=A(c),s=j(c,"SPAN",{class:!0,role:!0});var U=q(s);p=O(U,h),U.forEach(k),c.forEach(k),this.h()},h(){m(l,"class","flex gap-2"),m(s,"class",b="text-xs "+(a[1]?"text-danger":"text-primary")+" inline-block"),m(s,"role",i=a[1]?"alert":null),N(s,"hidden",!a[5]&&!a[1]),m(e,"class","flex flex-col gap-2")},m(f,c){D(f,e,c),L(t,e,null),y(e,n),y(e,l),_.m(l,null),y(l,d),L(u,l,null),y(e,r),y(e,s),y(s,p),g=!0},p(f,[c]){const v={};c&8&&(v.for=f[3]),c&16&&(v.label=f[4]),t.$set(v),c&4&&F(o,o=f[2])?(Q(),T(_,1,1,z),W(),_=H(f),_.c(),w(_,1),_.m(l,d)):_.p(f,c);const U={};c&1032&&(U.$$scope={dirty:c,ctx:f}),u.$set(U),(!g||c&34)&&h!==(h=(f[1]?I("common.input-valid-json"):f[5])+"")&&G(p,h),(!g||c&2&&b!==(b="text-xs "+(f[1]?"text-danger":"text-primary")+" inline-block"))&&m(s,"class",b),(!g||c&2&&i!==(i=f[1]?"alert":null))&&m(s,"role",i),(!g||c&34)&&N(s,"hidden",!f[5]&&!f[1])},i(f){g||(w(t.$$.fragment,f),w(_),w(u.$$.fragment,f),g=!0)},o(f){T(t.$$.fragment,f),T(_),T(u.$$.fragment,f),g=!1},d(f){f&&k(e),P(t),_.d(f),P(u)}}}function re(a,e,t){let{id:n=x()}=e,{error:l=!1}=e,{input:o}=e,{label:d=I("workflows.signal-payload-input-label")}=e,{loading:u=!1}=e,{hintText:r=I("workflows.signal-payload-input-label-hint")}=e;const s=i=>{if(!o)return!0;try{return JSON.parse(i),!0}catch{return!1}},h=i=>{t(0,o=i.detail)},p=()=>{t(0,o=""),t(2,u=!1)},b=i=>{t(0,o=i)};return K(p),a.$$set=i=>{"id"in i&&t(3,n=i.id),"error"in i&&t(1,l=i.error),"input"in i&&t(0,o=i.input),"label"in i&&t(4,d=i.label),"loading"in i&&t(2,u=i.loading),"hintText"in i&&t(5,r=i.hintText)},a.$$.update=()=>{a.$$.dirty&1&&t(1,l=!s(o))},[o,l,u,n,d,r,h,b]}class ge extends R{constructor(e){super(),B(this,e,re,oe,F,{id:3,error:1,input:0,label:4,loading:2,hintText:5})}}export{ge as P}; +import{s as F,h as S,b as V,j,k as q,f as k,d as A,m,i as D,p as J,t as M,l as O,H as N,n as y,v as z,q as G,M as K}from"./scheduler.C46pS-76.js";import{S as R,i as B,c as E,a as C,m as L,t as w,b as T,d as P,g as Q,e as W}from"./index.dOVbn71B.js";import{C as X}from"./code-block.DGWayI9q.js";import{I as Y}from"./icon.CfkHLDdJ.js";import{t as I}from"./translate.BBe5dcco.js";import{t as Z,v as x}from"./toaster.p5hsABhI.js";import{L as $}from"./label.BlTcUXFh.js";import{T as ee}from"./tooltip.D2lOlqUw.js";function te(a){let e,t,n,l,o,d,u;return t=new Y({props:{name:"upload"}}),{c(){e=S("label"),E(t.$$.fragment),n=V(),l=S("input"),this.h()},l(r){e=j(r,"LABEL",{for:!0,class:!0});var s=q(e);C(t.$$.fragment,s),s.forEach(k),n=A(r),l=j(r,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),this.h()},h(){m(e,"for",a[0]),m(e,"class","file-upload-label svelte-nqh6y4"),m(l,"id",a[0]),m(l,"class","hidden"),m(l,"type","file"),m(l,"accept",a[1])},m(r,s){D(r,e,s),L(t,e,null),D(r,n,s),D(r,l,s),o=!0,d||(u=J(l,"change",a[2]),d=!0)},p(r,[s]){(!o||s&1)&&m(e,"for",r[0]),(!o||s&1)&&m(l,"id",r[0]),(!o||s&2)&&m(l,"accept",r[1])},i(r){o||(w(t.$$.fragment,r),o=!0)},o(r){T(t.$$.fragment,r),o=!1},d(r){r&&(k(e),k(n),k(l)),P(t),d=!1,u()}}}function ne(a,e,t){let{id:n}=e,{accept:l=".json"}=e,{onUpload:o}=e;const d=u=>{var r;const s=u.target,h=(r=s==null?void 0:s.files)===null||r===void 0?void 0:r[0],p=new FileReader;h&&(p.readAsText(h),p.onload=()=>{var b,i;try{const g=(i=(b=p==null?void 0:p.result)===null||b===void 0?void 0:b.toString())!==null&&i!==void 0?i:"";o(g)}catch{Z.push({variant:"error",message:I("common.upload-error")})}})};return a.$$set=u=>{"id"in u&&t(0,n=u.id),"accept"in u&&t(1,l=u.accept),"onUpload"in u&&t(3,o=u.onUpload)},[n,l,d,o]}class le extends R{constructor(e){super(),B(this,e,ne,te,F,{id:0,accept:1,onUpload:3})}}function H(a){let e,t;return e=new X({props:{id:a[3],maxHeight:320,content:a[0],editable:!0,copyable:!1}}),e.$on("change",a[6]),{c(){E(e.$$.fragment)},l(n){C(e.$$.fragment,n)},m(n,l){L(e,n,l),t=!0},p(n,l){const o={};l&8&&(o.id=n[3]),l&1&&(o.content=n[0]),e.$set(o)},i(n){t||(w(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){P(e,n)}}}function ae(a){let e,t;return e=new le({props:{id:a[3]+"-input-file-upload",onUpload:a[7]}}),{c(){E(e.$$.fragment)},l(n){C(e.$$.fragment,n)},m(n,l){L(e,n,l),t=!0},p(n,l){const o={};l&8&&(o.id=n[3]+"-input-file-upload"),e.$set(o)},i(n){t||(w(e.$$.fragment,n),t=!0)},o(n){T(e.$$.fragment,n),t=!1},d(n){P(e,n)}}}function oe(a){let e,t,n,l,o=a[2],d,u,r,s,h=(a[1]?I("common.input-valid-json"):a[5])+"",p,b,i,g;t=new $({props:{for:a[3],label:a[4]}});let _=H(a);return u=new ee({props:{text:I("common.upload-json"),topRight:!0,$$slots:{default:[ae]},$$scope:{ctx:a}}}),{c(){e=S("div"),E(t.$$.fragment),n=V(),l=S("div"),_.c(),d=V(),E(u.$$.fragment),r=V(),s=S("span"),p=M(h),this.h()},l(f){e=j(f,"DIV",{class:!0});var c=q(e);C(t.$$.fragment,c),n=A(c),l=j(c,"DIV",{class:!0});var v=q(l);_.l(v),d=A(v),C(u.$$.fragment,v),v.forEach(k),r=A(c),s=j(c,"SPAN",{class:!0,role:!0});var U=q(s);p=O(U,h),U.forEach(k),c.forEach(k),this.h()},h(){m(l,"class","flex gap-2"),m(s,"class",b="text-xs "+(a[1]?"text-danger":"text-primary")+" inline-block"),m(s,"role",i=a[1]?"alert":null),N(s,"hidden",!a[5]&&!a[1]),m(e,"class","flex flex-col gap-2")},m(f,c){D(f,e,c),L(t,e,null),y(e,n),y(e,l),_.m(l,null),y(l,d),L(u,l,null),y(e,r),y(e,s),y(s,p),g=!0},p(f,[c]){const v={};c&8&&(v.for=f[3]),c&16&&(v.label=f[4]),t.$set(v),c&4&&F(o,o=f[2])?(Q(),T(_,1,1,z),W(),_=H(f),_.c(),w(_,1),_.m(l,d)):_.p(f,c);const U={};c&1032&&(U.$$scope={dirty:c,ctx:f}),u.$set(U),(!g||c&34)&&h!==(h=(f[1]?I("common.input-valid-json"):f[5])+"")&&G(p,h),(!g||c&2&&b!==(b="text-xs "+(f[1]?"text-danger":"text-primary")+" inline-block"))&&m(s,"class",b),(!g||c&2&&i!==(i=f[1]?"alert":null))&&m(s,"role",i),(!g||c&34)&&N(s,"hidden",!f[5]&&!f[1])},i(f){g||(w(t.$$.fragment,f),w(_),w(u.$$.fragment,f),g=!0)},o(f){T(t.$$.fragment,f),T(_),T(u.$$.fragment,f),g=!1},d(f){f&&k(e),P(t),_.d(f),P(u)}}}function re(a,e,t){let{id:n=x()}=e,{error:l=!1}=e,{input:o}=e,{label:d=I("workflows.signal-payload-input-label")}=e,{loading:u=!1}=e,{hintText:r=I("workflows.signal-payload-input-label-hint")}=e;const s=i=>{if(!o)return!0;try{return JSON.parse(i),!0}catch{return!1}},h=i=>{t(0,o=i.detail)},p=()=>{t(0,o=""),t(2,u=!1)},b=i=>{t(0,o=i)};return K(p),a.$$set=i=>{"id"in i&&t(3,n=i.id),"error"in i&&t(1,l=i.error),"input"in i&&t(0,o=i.input),"label"in i&&t(4,d=i.label),"loading"in i&&t(2,u=i.loading),"hintText"in i&&t(5,r=i.hintText)},a.$$.update=()=>{a.$$.dirty&1&&t(1,l=!s(o))},[o,l,u,n,d,r,h,b]}class ge extends R{constructor(e){super(),B(this,e,re,oe,F,{id:3,error:1,input:0,label:4,loading:2,hintText:5})}}export{ge as P}; diff --git a/ui/assets/local/_app/immutable/chunks/persist-store.Bvu2qNDI.js b/ui/assets/local/_app/immutable/chunks/persist-store.DeOEcwHN.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/persist-store.Bvu2qNDI.js rename to ui/assets/local/_app/immutable/chunks/persist-store.DeOEcwHN.js index 07a2324ae..33b318932 100644 --- a/ui/assets/local/_app/immutable/chunks/persist-store.Bvu2qNDI.js +++ b/ui/assets/local/_app/immutable/chunks/persist-store.DeOEcwHN.js @@ -1 +1 @@ -import{w as I}from"./entry.DLEzeuD9.js";import{p as S,s as p}from"./parse-with-big-int.BKSBwM2t.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; +import{w as I}from"./entry.kylZibtV.js";import{p as S,s as p}from"./parse-with-big-int.BKSBwM2t.js";const m=e=>typeof e=="function";function y(e,a=null,u=!1){var l,c;let n=m(a)?a():a,o;try{(l=window==null?void 0:window.localStorage)!=null&&l.getItem(e)&&(n=S(((c=window==null?void 0:window.localStorage)==null?void 0:c.getItem(e))??""))}catch{n=null}const{subscribe:g,set:i,update:f}=I(n);if(u)try{o=new BroadcastChannel(`persist-store-${e}`),o==null||o.addEventListener("message",t=>{i(t.data)})}catch{console.error("Browser does not support BroadcastChannel")}return{subscribe:g,set:t=>{var r,s;o&&o.postMessage(t),t===null?(r=window==null?void 0:window.localStorage)==null||r.removeItem(e):(s=window==null?void 0:window.localStorage)==null||s.setItem(e,p(t)),i(t)},update:t=>{var r;(r=window==null?void 0:window.localStorage)==null||r.removeItem(e),f(s=>{var d;const w=t(s);return(d=window==null?void 0:window.localStorage)==null||d.setItem(e,p(w)),w})}}}export{m as i,y as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.YXEUeA9H.js b/ui/assets/local/_app/immutable/chunks/pollers-service.BcPp2B7I.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/pollers-service.YXEUeA9H.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.BcPp2B7I.js index 036613c5a..595afa1ba 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.YXEUeA9H.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.BcPp2B7I.js @@ -1 +1 @@ -import{t as l}from"./translate.BBe5dcco.js";import{r as h,a as g}from"./route-for-api.BTloiRV6.js";const p=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),y=e=>{if(!(!e||!e.length))return e[e.length-1]},k=e=>e?e.slice(0,e.length-1).reverse():[],C=e=>{var n;const t=p(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return y(t[0].buildIds)},v=e=>{var t,s;if(e!=null&&e.assignedBuildId)return e.assignedBuildId;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},T=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},A=e=>[...new Set(e==null?void 0:e.map(T).filter(Boolean))],F=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning});async function W(e,t=fetch){var a;const s=h("task-queue",e),n=await g(s,{request:t,params:{taskQueueType:"1"}}),r=await g(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(u=>{u.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(u=>{u.taskQueueTypes=["WORKFLOW"]});const c=u=>(d,m)=>{const f=d[m.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return d[m.identity]={lastAccessTime:!f.lastAccessTime||f.lastAccessTimen.pollers.some(d=>{if(u.identity===d.identity)return u.taskQueueTypes=[...d.taskQueueTypes,...u.taskQueueTypes],u})),(a=r.pollers)==null||a.reduce(c("ACTIVITY"),n.pollers.reduce(c("WORKFLOW"),{}));const i=r.pollers.length?r.pollers:n.pollers,o=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:i,taskQueueStatus:o}}async function B(e,t=fetch){const s=await I(e,t),n=await Q(e,t),r=p(n);return{rules:s,compatibility:n,versionSets:r}}async function I(e,t=fetch){const s=h("task-queue.rules",e);return g(s,{request:t,handleError:n=>{}})}async function Q(e,t=fetch){const s=h("task-queue.compatibility",e);return g(s,{request:t,handleError:n=>{}})}async function E(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,c=h("worker-task-reachability",{namespace:s}),i=new URLSearchParams;if(n.length)for(const o of n)i.append("buildIds",o);else i.append("buildIds",""),i.append("taskQueues",r);return await g(c,{request:t,params:i,handleError:o=>({buildIdReachability:[]})})}function V(e){return!e||!e.length?l("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?l("common.maybe"):l("common.no")}function O(e,t,s){var i,o;const n=(i=e==null?void 0:e.buildIdReachability)==null?void 0:i.find(a=>a.buildId===s);if(!n)return"";const r=(o=n==null?void 0:n.taskQueueReachability)==null?void 0:o.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const c=r==null?void 0:r.reachability;return V(c)}export{p as a,C as b,T as c,O as d,y as e,k as f,W as g,B as h,A as i,E as j,v as k,F as p}; +import{t as l}from"./translate.BBe5dcco.js";import{r as h,a as g}from"./route-for-api.DGDQNXtX.js";const p=e=>(e!=null&&e.majorVersionSets?[...e.majorVersionSets]:[]).reverse(),y=e=>{if(!(!e||!e.length))return e[e.length-1]},k=e=>e?e.slice(0,e.length-1).reverse():[],C=e=>{var n;const t=p(e);if(!t.length)return;const s=(n=t[0])==null?void 0:n.buildIds;if(s!=null&&s.length)return y(t[0].buildIds)},v=e=>{var t,s;if(e!=null&&e.assignedBuildId)return e.assignedBuildId;if((t=e==null?void 0:e.mostRecentWorkerVersionStamp)!=null&&t.useVersioning)return((s=e.mostRecentWorkerVersionStamp)==null?void 0:s.buildId)||void 0},T=e=>{var t,s;if((t=e==null?void 0:e.workerVersionCapabilities)!=null&&t.useVersioning)return((s=e.workerVersionCapabilities)==null?void 0:s.buildId)||void 0},A=e=>[...new Set(e==null?void 0:e.map(T).filter(Boolean))],F=e=>e==null?void 0:e.some(t=>{var s;return(s=t==null?void 0:t.workerVersionCapabilities)==null?void 0:s.useVersioning});async function W(e,t=fetch){var a;const s=h("task-queue",e),n=await g(s,{request:t,params:{taskQueueType:"1"}}),r=await g(s,{request:t,params:{taskQueueType:"2"}});n!=null&&n.pollers||(n.pollers=[]),r!=null&&r.pollers||(r.pollers=[]),r.pollers.forEach(u=>{u.taskQueueTypes=["ACTIVITY"]}),n.pollers.forEach(u=>{u.taskQueueTypes=["WORKFLOW"]});const c=u=>(d,m)=>{const f=d[m.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return d[m.identity]={lastAccessTime:!f.lastAccessTime||f.lastAccessTimen.pollers.some(d=>{if(u.identity===d.identity)return u.taskQueueTypes=[...d.taskQueueTypes,...u.taskQueueTypes],u})),(a=r.pollers)==null||a.reduce(c("ACTIVITY"),n.pollers.reduce(c("WORKFLOW"),{}));const i=r.pollers.length?r.pollers:n.pollers,o=r.pollers.length?r.taskQueueStatus:n.taskQueueStatus;return{pollers:i,taskQueueStatus:o}}async function B(e,t=fetch){const s=await I(e,t),n=await Q(e,t),r=p(n);return{rules:s,compatibility:n,versionSets:r}}async function I(e,t=fetch){const s=h("task-queue.rules",e);return g(s,{request:t,handleError:n=>{}})}async function Q(e,t=fetch){const s=h("task-queue.compatibility",e);return g(s,{request:t,handleError:n=>{}})}async function E(e,t=fetch){const{namespace:s,buildIds:n,queue:r}=e,c=h("worker-task-reachability",{namespace:s}),i=new URLSearchParams;if(n.length)for(const o of n)i.append("buildIds",o);else i.append("buildIds",""),i.append("taskQueues",r);return await g(c,{request:t,params:i,handleError:o=>({buildIdReachability:[]})})}function V(e){return!e||!e.length?l("workers.ready-to-be-retired"):e.length===1&&e.includes("CLOSED")?l("common.maybe"):l("common.no")}function O(e,t,s){var i,o;const n=(i=e==null?void 0:e.buildIdReachability)==null?void 0:i.find(a=>a.buildId===s);if(!n)return"";const r=(o=n==null?void 0:n.taskQueueReachability)==null?void 0:o.find(a=>(a==null?void 0:a.taskQueue)===t);if(!r)return"";const c=r==null?void 0:r.reachability;return V(c)}export{p as a,C as b,T as c,O as d,y as e,k as f,W as g,B as h,A as i,E as j,v as k,F as p}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.D3ysowbA.js b/ui/assets/local/_app/immutable/chunks/query-service.BpCb13SU.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/query-service.D3ysowbA.js rename to ui/assets/local/_app/immutable/chunks/query-service.BpCb13SU.js index eecd6d995..7ce9b84aa 100644 --- a/ui/assets/local/_app/immutable/chunks/query-service.D3ysowbA.js +++ b/ui/assets/local/_app/immutable/chunks/query-service.BpCb13SU.js @@ -1 +1 @@ -import{e as f}from"./decode-payload.BTpeWKqJ.js";import{h as d}from"./has.BWrERxPV.js";import{s as c}from"./parse-with-big-int.BKSBwM2t.js";import{r as y,a as m}from"./route-for-api.BTloiRV6.js";const p=t=>{const a=t.indexOf("["),n=t.indexOf("]");return t.slice(a+1,n).split(" ").filter(r=>r!=="__stack_trace").map(r=>r.endsWith(",")?{name:r.slice(0,r.length-1)}:{name:r})},l=async(t,a,n)=>(a=await a,{namespace:t,workflowId:a.id,queryType:n});async function _({workflow:t,namespace:a,queryType:n,queryArgs:r},o=fetch,i){t=await t;const e=await l(a,t,n),s=y("query",e);return await m(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:n,queryArgs:r}})},request:o,onError:i,notifyOnError:!1})}async function I(t,a,n){var r,o,i;try{const e=await u({...t,queryType:"__temporal_workflow_metadata"},a,n);return(o=(r=e==null?void 0:e.definition)==null?void 0:r.queryDefinitions)==null?void 0:o.filter(s=>(s==null?void 0:s.name)!=="__stack_trace")}catch(e){if((i=e.message)!=null&&i.includes("__temporal_workflow_metadata"))return p(e.message);throw e}}async function u(t,a,n,r=fetch){return _(t,r).then(async o=>{const{queryResult:i}=o??{queryResult:{payloads:[]}};let e=i.payloads;try{if(e[0]){const s=await f({attributes:i,namespace:t.namespace,settings:a,accessToken:n});d(s,"payloads")&&Array.isArray(s.payloads)&&(e=s.payloads[0])}return e}catch{return typeof e!="string"?c(e):e}})}async function T(t,a,n){return u({...t,queryType:"__stack_trace"},a,n)}export{I as a,u as b,T as g}; +import{e as f}from"./decode-payload.CR1Tto5x.js";import{h as d}from"./has.BWrERxPV.js";import{s as c}from"./parse-with-big-int.BKSBwM2t.js";import{r as y,a as m}from"./route-for-api.DGDQNXtX.js";const p=t=>{const a=t.indexOf("["),n=t.indexOf("]");return t.slice(a+1,n).split(" ").filter(r=>r!=="__stack_trace").map(r=>r.endsWith(",")?{name:r.slice(0,r.length-1)}:{name:r})},l=async(t,a,n)=>(a=await a,{namespace:t,workflowId:a.id,queryType:n});async function _({workflow:t,namespace:a,queryType:n,queryArgs:r},o=fetch,i){t=await t;const e=await l(a,t,n),s=y("query",e);return await m(s,{options:{method:"POST",body:c({execution:{workflowId:t.id,runId:t.runId},query:{queryType:n,queryArgs:r}})},request:o,onError:i,notifyOnError:!1})}async function I(t,a,n){var r,o,i;try{const e=await u({...t,queryType:"__temporal_workflow_metadata"},a,n);return(o=(r=e==null?void 0:e.definition)==null?void 0:r.queryDefinitions)==null?void 0:o.filter(s=>(s==null?void 0:s.name)!=="__stack_trace")}catch(e){if((i=e.message)!=null&&i.includes("__temporal_workflow_metadata"))return p(e.message);throw e}}async function u(t,a,n,r=fetch){return _(t,r).then(async o=>{const{queryResult:i}=o??{queryResult:{payloads:[]}};let e=i.payloads;try{if(e[0]){const s=await f({attributes:i,namespace:t.namespace,settings:a,accessToken:n});d(s,"payloads")&&Array.isArray(s.payloads)&&(e=s.payloads[0])}return e}catch{return typeof e!="string"?c(e):e}})}async function T(t,a,n){return u({...t,queryType:"__stack_trace"},a,n)}export{I as a,u as b,T as g}; diff --git a/ui/assets/local/_app/immutable/chunks/radio-input.yEAROJgW.js b/ui/assets/local/_app/immutable/chunks/radio-input.OzdV2p8V.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/radio-input.yEAROJgW.js rename to ui/assets/local/_app/immutable/chunks/radio-input.OzdV2p8V.js index 185afbcf1..eabbc2355 100644 --- a/ui/assets/local/_app/immutable/chunks/radio-input.yEAROJgW.js +++ b/ui/assets/local/_app/immutable/chunks/radio-input.OzdV2p8V.js @@ -1 +1 @@ -import{s as U,a as Y,z as g,h as p,b as I,j as v,k,d as A,f as _,E as H,i as h,n as E,u as Z,g as y,e as w,D as N,a7 as x,A as V,t as L,l as O,m as b,q as S,L as $,c as ee,a8 as le,H as P,p as ae}from"./scheduler.C46pS-76.js";import{S as j,i as z,t as M,b as X,c as ie,a as se,m as te,d as ne}from"./index.dOVbn71B.js";import{g as B}from"./spread.CgU5AtxT.js";import{w as ue}from"./entry.DLEzeuD9.js";import{L as fe}from"./label.BlTcUXFh.js";import{t as T}from"./tw-merge.Ds6tgvmq.js";function q(t){let e,i;return{c(){e=p("p"),i=L(t[1]),this.h()},l(f){e=v(f,"P",{class:!0});var s=k(e);i=O(s,t[1]),s.forEach(_),this.h()},h(){b(e,"class","text-sm font-medium")},m(f,s){h(f,e,s),E(e,i)},p(f,s){s&2&&S(i,f[1])},d(f){f&&_(e)}}}function re(t){let e,i,f,s,l=t[1]&&q(t);const r=t[6].default,n=Y(r,t,t[5],null);let c=[{class:f=T("flex flex-col gap-2 p-1",t[0])},t[2]],m={};for(let u=0;u{e=g(g({},e),V(a)),i(2,s=N(e,f)),"class"in a&&i(0,n=a.class),"name"in a&&i(3,c=a.name),"group"in a&&i(4,m=a.group),"description"in a&&i(1,u=a.description),"$$scope"in a&&i(5,r=a.$$scope)},[n,u,s,c,m,r,l]}class ke extends j{constructor(e){super(),z(this,e,oe,re,U,{class:0,name:3,group:4,description:1})}}function de(t){let e,i,f,s,l,r,n,c,m=[{type:"radio"},{class:"surface-primary"},{"aria-describedby":i=t[3]?`${t[1]}-description`:null},{name:t[7]},{__value:t[0]},{id:t[1]},{disabled:t[5]},t[9]],u={};for(let a=0;ai(6,l=o));const Q=[[]];function W(){l=this.__value,D.set(l)}return t.$$set=o=>{e=g(g({},e),V(o)),i(9,s=N(e,f)),"value"in o&&i(0,n=o.value),"id"in o&&i(1,c=o.id),"label"in o&&i(2,m=o.label),"description"in o&&i(3,u=o.description),"labelHidden"in o&&i(4,a=o.labelHidden),"disabled"in o&&i(5,d=o.disabled),"group"in o&&i(10,R=o.group),"name"in o&&i(11,C=o.name)},[n,c,m,u,a,d,l,K,D,s,R,C,W,Q]}class Ee extends j{constructor(e){super(),z(this,e,me,ce,U,{value:0,id:1,label:2,description:3,labelHidden:4,disabled:5,group:10,name:11})}}export{ke as R,Ee as a}; +import{s as U,a as Y,z as g,h as p,b as I,j as v,k,d as A,f as _,E as H,i as h,n as E,u as Z,g as y,e as w,D as N,a7 as x,A as V,t as L,l as O,m as b,q as S,L as $,c as ee,a8 as le,H as P,p as ae}from"./scheduler.C46pS-76.js";import{S as j,i as z,t as M,b as X,c as ie,a as se,m as te,d as ne}from"./index.dOVbn71B.js";import{g as B}from"./spread.CgU5AtxT.js";import{w as ue}from"./entry.kylZibtV.js";import{L as fe}from"./label.BlTcUXFh.js";import{t as T}from"./tw-merge.Ds6tgvmq.js";function q(t){let e,i;return{c(){e=p("p"),i=L(t[1]),this.h()},l(f){e=v(f,"P",{class:!0});var s=k(e);i=O(s,t[1]),s.forEach(_),this.h()},h(){b(e,"class","text-sm font-medium")},m(f,s){h(f,e,s),E(e,i)},p(f,s){s&2&&S(i,f[1])},d(f){f&&_(e)}}}function re(t){let e,i,f,s,l=t[1]&&q(t);const r=t[6].default,n=Y(r,t,t[5],null);let c=[{class:f=T("flex flex-col gap-2 p-1",t[0])},t[2]],m={};for(let u=0;u{e=g(g({},e),V(a)),i(2,s=N(e,f)),"class"in a&&i(0,n=a.class),"name"in a&&i(3,c=a.name),"group"in a&&i(4,m=a.group),"description"in a&&i(1,u=a.description),"$$scope"in a&&i(5,r=a.$$scope)},[n,u,s,c,m,r,l]}class ke extends j{constructor(e){super(),z(this,e,oe,re,U,{class:0,name:3,group:4,description:1})}}function de(t){let e,i,f,s,l,r,n,c,m=[{type:"radio"},{class:"surface-primary"},{"aria-describedby":i=t[3]?`${t[1]}-description`:null},{name:t[7]},{__value:t[0]},{id:t[1]},{disabled:t[5]},t[9]],u={};for(let a=0;ai(6,l=o));const Q=[[]];function W(){l=this.__value,D.set(l)}return t.$$set=o=>{e=g(g({},e),V(o)),i(9,s=N(e,f)),"value"in o&&i(0,n=o.value),"id"in o&&i(1,c=o.id),"label"in o&&i(2,m=o.label),"description"in o&&i(3,u=o.description),"labelHidden"in o&&i(4,a=o.labelHidden),"disabled"in o&&i(5,d=o.disabled),"group"in o&&i(10,R=o.group),"name"in o&&i(11,C=o.name)},[n,c,m,u,a,d,l,K,D,s,R,C,W,Q]}class Ee extends j{constructor(e){super(),z(this,e,me,ce,U,{value:0,id:1,label:2,description:3,labelHidden:4,disabled:5,group:10,name:11})}}export{ke as R,Ee as a}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.BTloiRV6.js b/ui/assets/local/_app/immutable/chunks/route-for-api.DGDQNXtX.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/route-for-api.BTloiRV6.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.DGDQNXtX.js index 7f506b910..b427a2a78 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.BTloiRV6.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.DGDQNXtX.js @@ -1 +1 @@ -import{B as e}from"./prod-browser.CoG0geaG.js";import{g as $}from"./auth-user.BOlglCm6.js";import{w as C}from"./entry.DLEzeuD9.js";import{t as N}from"./toaster.D-OAJjvv.js";import{h as b}from"./has.BWrERxPV.js";import{i as R}from"./is-network-error.Dq2Kfkkh.js";import{o as k,t as F}from"./route-for.BjP6gGR7.js";import{i as O}from"./persist-store.Bvu2qNDI.js";import{C as v}from"./scheduler.C46pS-76.js";import{b as W}from"./paths.DlAH43M2.js";import{p as I}from"./stores.Dz-RNcUk.js";const P=C(null),j=(i,n=N,o=P,c=e)=>{if(!(i instanceof DOMException&&i.name==="AbortError"))throw typeof i=="string"?n.push({variant:"error",message:i}):i.report=!1,i instanceof Error&&n.push({variant:"error",message:i.message}),T(i)&&c&&window.location.assign(k(i==null?void 0:i.message)),x(i)&&c&&window.location.assign(k(i==null?void 0:i.message)),R(i)&&(n.push({variant:"error",message:`${i.statusCode} ${i.statusText}`}),o.set(i)),i},sn=(i,n=e)=>{var c;const o=`${i==null?void 0:i.status} ${(c=i==null?void 0:i.body)==null?void 0:c.message}`;if(T(i)&&n){window.location.assign(k(o));return}if(x(i)&&n){window.location.assign(k(o));return}},T=i=>U(i,401),x=i=>U(i,403),U=(i,n)=>b(i,"statusCode")?i.statusCode===n:b(i,"status")?i.status===n:!1,un=async(i,n={})=>{const{params:o={},request:c=fetch,token:t,notifyOnError:s=!0,handleError:u=j,onError:f,isBrowser:g=e}=n;let{options:w}=n,h=new URLSearchParams;if(o!=null&&o.entries)h=o,t&&h.set("nextPageToken",t);else{const l=t?{next_page_token:t}:{};h=new URLSearchParams({...o,...l})}const q=F(i,h);try{w=S(w,g),i.endsWith("api/v1/settings")||(w=await _(w,g));const l=await c(q,w),d=await l.json(),{status:E,statusText:A}=l;if(!l.ok)if(f&&O(f))f({status:E,statusText:A,body:d});else throw{statusCode:l.status,statusText:l.statusText,response:l,message:(d==null?void 0:d.message)??l.statusText};return d}catch(l){if(s)u(l);else throw l}},S=(i,n=e)=>{const o={credentials:"include",...i};return o.headers=L(i==null?void 0:i.headers,n),o},_=async(i,n=e)=>(globalThis!=null&&globalThis.AccessToken?i.headers=await y(i==null?void 0:i.headers,globalThis.AccessToken,n):$().accessToken&&(i.headers=await y(i==null?void 0:i.headers,async()=>$().accessToken,n),i.headers=z(i==null?void 0:i.headers,$().idToken,n)),i),y=async(i,n,o=e)=>{if(i||(i={}),!o)return i;try{const c=await n();c&&(i.Authorization=`Bearer ${c}`)}catch(c){console.error(c)}return i},z=(i={},n,o=e)=>(o&&n&&(i["Authorization-Extras"]=n),i),L=(i,n=e)=>{if(i||(i={}),i["Caller-Type"]="operator",!n)return i;const o="_csrf=",c="X-CSRF-TOKEN";try{let s=document.cookie.split(";").find(u=>u.includes(o));s&&!i[c]&&(s=s.trim().slice(o.length),i[c]=s)}catch(t){console.error(t)}return i};function B(i=e){const n="",o=!n.startsWith("http");let c="";return o?c=i?window.location.origin+n:"":c=n,c.endsWith("/")&&(c=c.slice(0,-1)),c}const tn=(i,n)=>{if(!i||!n)return!1;const[o,c,t]=i.split(".").map(Number),[s,u,f]=n.split(".").map(Number);return o!==s?o>s:c!==u?c>u:t>f},J=(i,n)=>{if(!i||!n)return!1;const[o,c,t]=i.split(".").map(Number),[s,u,f]=n.split(".").map(Number);return o!==s?s>o:c!==u?c===void 0&&u||c===void 0&&u===void 0?!0:u>c:t===void 0&&f||t===void 0&&(f===void 0||isNaN(f))?!0:f>=t},D=(i,n)=>i?i.replace("%namespace%",n):"",H=i=>{var s,u;let n="";const o=(s=v(I).data)==null?void 0:s.webUrl,c=o&&i,t=((u=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:u.apiUrl)&&i;return c?n=o:t?(console.warn("Using fallback api url, web url not found"),n=D(globalThis.AppConfig.apiUrl,i)):n=B(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${W}`,n},K=i=>(i.startsWith("/")&&(i=i.slice(1)),`/api/v1/${i}`),M=(i,n)=>`${H(n)}${i}`,X=i=>{var o,c,t;const n=(t=(c=(o=v(I))==null?void 0:o.data)==null?void 0:c.settings)==null?void 0:t.version;return Object.keys(i??{}).reduce((s,u)=>(n&&J("2.23.0",n)?s[u]=encodeURIComponent(i[u]):s[u]=encodeURIComponent(encodeURIComponent(i[u])),s),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:"",endpointId:""})};function G(i,n,o=!0){o&&(n=X(n));const c={systemInfo:"/system-info",cluster:"/cluster-info",namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,"events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`,"nexus-endpoints":"/nexus/endpoints","nexus-endpoint":`/nexus/endpoints/${n.endpointId}`,"nexus-endpoint.update":`/nexus/endpoints/${n.endpointId}/update`};return K(c[i])}function ln(i,n,o=!0){const c=G(i,n,o);return M(c,n==null?void 0:n.namespace)}export{un as a,H as b,sn as c,T as d,x as e,B as g,j as h,tn as i,J as m,P as n,G as p,ln as r}; +import{B as e}from"./prod-browser.CoG0geaG.js";import{g as $}from"./auth-user.CfsLeCYD.js";import{w as C}from"./entry.kylZibtV.js";import{t as N}from"./toaster.p5hsABhI.js";import{h as b}from"./has.BWrERxPV.js";import{i as R}from"./is-network-error.Dq2Kfkkh.js";import{o as k,t as F}from"./route-for.B9fTWV7L.js";import{i as O}from"./persist-store.DeOEcwHN.js";import{C as v}from"./scheduler.C46pS-76.js";import{b as W}from"./paths.C1CnfzR-.js";import{p as I}from"./stores.Ds4o9nwd.js";const P=C(null),j=(i,n=N,o=P,c=e)=>{if(!(i instanceof DOMException&&i.name==="AbortError"))throw typeof i=="string"?n.push({variant:"error",message:i}):i.report=!1,i instanceof Error&&n.push({variant:"error",message:i.message}),T(i)&&c&&window.location.assign(k(i==null?void 0:i.message)),x(i)&&c&&window.location.assign(k(i==null?void 0:i.message)),R(i)&&(n.push({variant:"error",message:`${i.statusCode} ${i.statusText}`}),o.set(i)),i},sn=(i,n=e)=>{var c;const o=`${i==null?void 0:i.status} ${(c=i==null?void 0:i.body)==null?void 0:c.message}`;if(T(i)&&n){window.location.assign(k(o));return}if(x(i)&&n){window.location.assign(k(o));return}},T=i=>U(i,401),x=i=>U(i,403),U=(i,n)=>b(i,"statusCode")?i.statusCode===n:b(i,"status")?i.status===n:!1,un=async(i,n={})=>{const{params:o={},request:c=fetch,token:t,notifyOnError:s=!0,handleError:u=j,onError:f,isBrowser:g=e}=n;let{options:w}=n,h=new URLSearchParams;if(o!=null&&o.entries)h=o,t&&h.set("nextPageToken",t);else{const l=t?{next_page_token:t}:{};h=new URLSearchParams({...o,...l})}const q=F(i,h);try{w=S(w,g),i.endsWith("api/v1/settings")||(w=await _(w,g));const l=await c(q,w),d=await l.json(),{status:E,statusText:A}=l;if(!l.ok)if(f&&O(f))f({status:E,statusText:A,body:d});else throw{statusCode:l.status,statusText:l.statusText,response:l,message:(d==null?void 0:d.message)??l.statusText};return d}catch(l){if(s)u(l);else throw l}},S=(i,n=e)=>{const o={credentials:"include",...i};return o.headers=L(i==null?void 0:i.headers,n),o},_=async(i,n=e)=>(globalThis!=null&&globalThis.AccessToken?i.headers=await y(i==null?void 0:i.headers,globalThis.AccessToken,n):$().accessToken&&(i.headers=await y(i==null?void 0:i.headers,async()=>$().accessToken,n),i.headers=z(i==null?void 0:i.headers,$().idToken,n)),i),y=async(i,n,o=e)=>{if(i||(i={}),!o)return i;try{const c=await n();c&&(i.Authorization=`Bearer ${c}`)}catch(c){console.error(c)}return i},z=(i={},n,o=e)=>(o&&n&&(i["Authorization-Extras"]=n),i),L=(i,n=e)=>{if(i||(i={}),i["Caller-Type"]="operator",!n)return i;const o="_csrf=",c="X-CSRF-TOKEN";try{let s=document.cookie.split(";").find(u=>u.includes(o));s&&!i[c]&&(s=s.trim().slice(o.length),i[c]=s)}catch(t){console.error(t)}return i};function B(i=e){const n="",o=!n.startsWith("http");let c="";return o?c=i?window.location.origin+n:"":c=n,c.endsWith("/")&&(c=c.slice(0,-1)),c}const tn=(i,n)=>{if(!i||!n)return!1;const[o,c,t]=i.split(".").map(Number),[s,u,f]=n.split(".").map(Number);return o!==s?o>s:c!==u?c>u:t>f},J=(i,n)=>{if(!i||!n)return!1;const[o,c,t]=i.split(".").map(Number),[s,u,f]=n.split(".").map(Number);return o!==s?s>o:c!==u?c===void 0&&u||c===void 0&&u===void 0?!0:u>c:t===void 0&&f||t===void 0&&(f===void 0||isNaN(f))?!0:f>=t},D=(i,n)=>i?i.replace("%namespace%",n):"",H=i=>{var s,u;let n="";const o=(s=v(I).data)==null?void 0:s.webUrl,c=o&&i,t=((u=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:u.apiUrl)&&i;return c?n=o:t?(console.warn("Using fallback api url, web url not found"),n=D(globalThis.AppConfig.apiUrl,i)):n=B(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${W}`,n},K=i=>(i.startsWith("/")&&(i=i.slice(1)),`/api/v1/${i}`),M=(i,n)=>`${H(n)}${i}`,X=i=>{var o,c,t;const n=(t=(c=(o=v(I))==null?void 0:o.data)==null?void 0:c.settings)==null?void 0:t.version;return Object.keys(i??{}).reduce((s,u)=>(n&&J("2.23.0",n)?s[u]=encodeURIComponent(i[u]):s[u]=encodeURIComponent(encodeURIComponent(i[u])),s),{namespace:"",workflowId:"",scheduleId:"",queue:"",queryType:"",signalName:"",batchJobId:"",activityId:"",endpointId:""})};function G(i,n,o=!0){o&&(n=X(n));const c={systemInfo:"/system-info",cluster:"/cluster-info",namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,"events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/history-reverse`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/query/${n.queryType}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,"schedule.patch":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/patch`,"schedule.edit":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}/update`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-build-id-compatibility`,"task-queue.rules":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/worker-versioning-rules`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/signal/${n.signalName}`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/archived-workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflow-count`,"activity.complete":`/namespaces/${n.namespace}/activities/complete-by-id`,"activity.fail":`/namespaces/${n.namespace}/activities/fail-by-id`,"batch-operations.list":`/namespaces/${n.namespace}/batch-operations`,"batch-operations":`/namespaces/${n.namespace}/batch-operations/${n==null?void 0:n.batchJobId}`,"nexus-endpoints":"/nexus/endpoints","nexus-endpoint":`/nexus/endpoints/${n.endpointId}`,"nexus-endpoint.update":`/nexus/endpoints/${n.endpointId}/update`};return K(c[i])}function ln(i,n,o=!0){const c=G(i,n,o);return M(c,n==null?void 0:n.namespace)}export{un as a,H as b,sn as c,T as d,x as e,B as g,j as h,tn as i,J as m,P as n,G as p,ln as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.BjP6gGR7.js b/ui/assets/local/_app/immutable/chunks/route-for.B9fTWV7L.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for.BjP6gGR7.js rename to ui/assets/local/_app/immutable/chunks/route-for.B9fTWV7L.js index 637ddc5b2..a74f0fda8 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.BjP6gGR7.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.B9fTWV7L.js @@ -1 +1 @@ -import{B as w}from"./prod-browser.CoG0geaG.js";import{b as o}from"./paths.DlAH43M2.js";import{e as c}from"./encode-uri.BOkQ1rrX.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},k=()=>`${o}/namespaces`,g=()=>`${o}/nexus`,S=r=>`${o}/nexus/${r}`,P=r=>`${o}/nexus/${r}/edit`,v=()=>`${o}/nexus/create`,a=({namespace:r})=>`${o}/namespaces/${r}`,U=()=>`${o}/select-namespace`,f=r=>`${a(r)}/workflows`,y=({namespace:r,workflowId:t,taskQueue:e,workflowType:n})=>$(`${a({namespace:r})}/workflows/start-workflow`,{workflowId:t||"",taskQueue:e||"",workflowType:n||""}),E=({namespace:r,query:t,page:e})=>$(f({namespace:r}),{query:t,...e&&{page:e}}),x=r=>`${a(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${f(e)}/${n}/${t}`},l=r=>`${a(r)}/schedules`,R=({namespace:r})=>`${l({namespace:r})}/create`,W=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}`},L=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}/edit`},N=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return $(`${e}`,r)},b=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,q=r=>`${s(r)}/workers`,B=r=>`${s(r)}/relationships`,A=r=>{const t=c(r.queue);return`${a({namespace:r.namespace})}/task-queues/${t}`},C=r=>`${s(r)}/call-stack`,H=r=>`${s(r)}/query`,Q=r=>`${s(r)}/metadata`,I=r=>`${s(r)}/pending-activities`,O=r=>{const{settings:t,searchParams:e,originUrl:n}=r,u=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const F=e.get(h);F&&u.searchParams.set(h,F)}),!u.searchParams.get("returnUrl")&&n&&u.searchParams.set("returnUrl",n),u.toString()},T=(r="",t=w)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},j=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,z=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,D=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{L as A,b as B,x as C,k as D,a,N as b,C as c,O as d,f as e,U as f,A as g,g as h,P as i,S as j,D as k,l,W as m,z as n,T as o,v as p,R as q,j as r,y as s,$ as t,q as u,B as v,I as w,H as x,Q as y,E as z}; +import{B as w}from"./prod-browser.CoG0geaG.js";import{b as o}from"./paths.C1CnfzR-.js";import{e as c}from"./encode-uri.BOkQ1rrX.js";const $=(r,t)=>{const e=t instanceof URLSearchParams;return t&&!e&&(t=new URLSearchParams(t)),t?`${r}?${t}`:r},k=()=>`${o}/namespaces`,g=()=>`${o}/nexus`,S=r=>`${o}/nexus/${r}`,P=r=>`${o}/nexus/${r}/edit`,v=()=>`${o}/nexus/create`,a=({namespace:r})=>`${o}/namespaces/${r}`,U=()=>`${o}/select-namespace`,f=r=>`${a(r)}/workflows`,y=({namespace:r,workflowId:t,taskQueue:e,workflowType:n})=>$(`${a({namespace:r})}/workflows/start-workflow`,{workflowId:t||"",taskQueue:e||"",workflowType:n||""}),E=({namespace:r,query:t,page:e})=>$(f({namespace:r}),{query:t,...e&&{page:e}}),x=r=>`${a(r)}/archival`,s=({workflow:r,run:t,...e})=>{const n=c(r);return`${f(e)}/${n}/${t}`},l=r=>`${a(r)}/schedules`,R=({namespace:r})=>`${l({namespace:r})}/create`,W=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}`},L=({scheduleId:r,namespace:t})=>{const e=c(r);return`${l({namespace:t})}/${e}/edit`},N=({queryParams:r,...t})=>{const e=`${s(t)}/history`;return $(`${e}`,r)},b=({eventId:r,...t})=>`${s(t)}/history/events/${r}`,q=r=>`${s(r)}/workers`,B=r=>`${s(r)}/relationships`,A=r=>{const t=c(r.queue);return`${a({namespace:r.namespace})}/task-queues/${t}`},C=r=>`${s(r)}/call-stack`,H=r=>`${s(r)}/query`,Q=r=>`${s(r)}/metadata`,I=r=>`${s(r)}/pending-activities`,O=r=>{const{settings:t,searchParams:e,originUrl:n}=r,u=new URL(`${o}/auth/sso`,t.baseUrl);let i=t.auth.options??[];return i=[...i,"returnUrl"],i.forEach(h=>{if(!e)return;const F=e.get(h);F&&u.searchParams.set(h,F)}),!u.searchParams.get("returnUrl")&&n&&u.searchParams.set("returnUrl",n),u.toString()},T=(r="",t=w)=>{if(t){const e=new URL(`${o}/login`,window.location.origin);return e.searchParams.set("returnUrl",window.location.href),r&&e.searchParams.set("error",r),e.toString()}return`${o}/login`},j=(r,t)=>r&&t?`${o}/import/events/${r}/workflow/run/history/${t}`:`${o}/import/events`,z=({namespace:r})=>`${o}/namespaces/${r}/batch-operations`,D=({namespace:r,jobId:t})=>`${o}/namespaces/${r}/batch-operations/${t}`;export{L as A,b as B,x as C,k as D,a,N as b,C as c,O as d,f as e,U as f,A as g,g as h,P as i,S as j,D as k,l,W as m,z as n,T as o,v as p,R as q,j as r,y as s,$ as t,q as u,B as v,I as w,H as x,Q as y,E as z}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.BfrSFD2l.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.Sl7Y_1Oq.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.BfrSFD2l.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.Sl7Y_1Oq.js index f9270bd32..ba66f50b6 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.BfrSFD2l.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.Sl7Y_1Oq.js @@ -1 +1 @@ -import{s as Ie,a as Hn,z as cn,h as z,j as F,k as K,f as p,E as vn,H as sn,i as Q,u as Pn,g as qn,e as Ln,D as bn,L as zn,c as tn,A as Fn,m as ee,n as $,y as an,t as le,b as C,l as se,d as D,v as ve,N as L,O as N,o as fn,P as Nn,w as hn,M as Qn}from"./scheduler.C46pS-76.js";import{S as Ee,i as Se,t as k,b as O,g as Le,e as Ne,c as T,a as V,m as A,d as H,f as B}from"./index.dOVbn71B.js";import{w as Un}from"./entry.DLEzeuD9.js";import{p as Bn}from"./stores.Dz-RNcUk.js";import{I as Te}from"./input.CTzUOpgs.js";import{c as Kn,T as Rn,a as Jn,b as en}from"./tab.CpZOxof2.js";import{g as Gn}from"./spread.CgU5AtxT.js";import{t as R}from"./translate.BBe5dcco.js";import{e as Ae}from"./each.C6O0oV7R.js";import{B as Ge}from"./button.BpRIS9ld.js";import{m as $n,T as Xn,g as rn,w as wn}from"./time-picker.BvbblB8x.js";import{I as Yn}from"./icon.CfkHLDdJ.js";import{S as Zn}from"./schedule-frequency.SW9tPKxx.js";import{S as xn,O as un}from"./option.Bt5AmPHo.js";import{A as et}from"./alert.nnKn2vnv.js";import{L as nt}from"./link.BJceiGbc.js";import{L as tt}from"./loading.BLsNkl8r.js";import{e as dn,l as lt}from"./schedules.DZMegXhn.js";import{d as kn}from"./decode-payload.BTpeWKqJ.js";import{m as st,l as it}from"./route-for.BjP6gGR7.js";import{m as yn}from"./workflows.BzgE0E1S.js";import{A as ut}from"./add-search-attributes.B9SzC6V8.js";import{a as at}from"./atob.ODDrCDK_.js";import{g as rt}from"./encode-payload.BbGvULr4.js";import{P as ot}from"./payload-decoder.DlOPrRzg.js";import{P as ft,i as dt}from"./payload-input-with-encoding.BapU-_VF.js";function ct(t){let e,n;const s=t[7].default,l=Hn(s,t,t[6],null);let a=[{id:t[0]},{"aria-labelledby":t[1]},{tabindex:"0"},{role:"tabpanel"},t[4]],f={};for(let i=0;in(5,f=_)),d(r),t.$$set=_=>{e=cn(cn({},e),Fn(_)),n(4,a=bn(e,l)),"id"in _&&n(0,r=_.id),"tabId"in _&&n(1,u=_.tabId),"$$scope"in _&&n(6,o=_.$$scope)},t.$$.update=()=>{t.$$.dirty&33&&n(2,s=f===r)},[r,u,s,h,a,f,o,i]}class nn extends Ee{constructor(e){super(),Se(this,e,ht,ct,Ie,{id:0,tabId:1})}}function On(t,e,n){const s=t.slice();s[4]=e[n];const l=s[0].includes(s[4]);return s[5]=l,s}function _t(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function In(t){let e,n;function s(...l){return t[3](t[4],...l)}return e=new Ge({props:{variant:"secondary",class:t[5]&&"bg-interactive-secondary-active",$$slots:{default:[_t]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function mt(t){let e,n,s,l=Ae(t[1]),a=[];for(let i=0;iO(a[i],1,1,()=>{a[i]=null});return{c(){e=z("div"),n=z("div");for(let i=0;io+1);let{daysOfMonth:l}=e;const a=(i,o)=>{i.metaKey?l.includes(o)?l.filter(r=>r!==o):n(0,l=[...l,o]):n(0,l=[o])},f=(i,o)=>a(o,i);return t.$$set=i=>{"daysOfMonth"in i&&n(0,l=i.daysOfMonth)},[l,s,a,f]}class pt extends Ee{constructor(e){super(),Se(this,e,gt,mt,Ie,{daysOfMonth:0})}}function En(t,e,n){const s=t.slice();s[3]=e[n].label,s[4]=e[n].value;const l=s[0].includes(s[4]);return s[5]=l,s}function vt(t){let e=t[3]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Sn(t){let e,n;function s(...l){return t[2](t[4],...l)}return e=new Ge({props:{variant:"secondary",class:t[5]&&"bg-interactive-secondary-active",$$slots:{default:[vt]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function bt(t){let e,n,s=Ae($n),l=[];for(let f=0;fO(l[f],1,1,()=>{l[f]=null});return{c(){e=z("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&n(0,s=s.filter(o=>o!=="*")),s.includes(i)?n(0,s=s.filter(o=>o!==i)):n(0,s=[...s,i])):n(0,s=[i])},a=(f,i)=>l(i,f);return t.$$set=f=>{"months"in f&&n(0,s=f.months)},[s,l,a]}class wt extends Ee{constructor(e){super(),Se(this,e,$t,bt,Ie,{months:0})}}function kt(t){let e,n,s=R("schedules.time-view-heading")+"",l,a,f,i=R("schedules.time-view-description")+"",o,r,u,d,h,_,c,v,w,m,W=R("common.based-on-time-preface")+"",ne,q,b;function y(U){t[2](U)}function P(U){t[3](U)}let X={twelveHourClock:!1,includeSeconds:!1};return t[0]!==void 0&&(X.hour=t[0]),t[1]!==void 0&&(X.minute=t[1]),u=new Xn({props:X}),L.push(()=>B(u,"hour",y)),L.push(()=>B(u,"minute",P)),v=new Yn({props:{name:"clock","aria-hidden":"true"}}),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),_=C(),c=z("div"),T(v.$$.fragment),w=C(),m=z("span"),ne=le(W),q=le(" Universal Standard Time (UTC)"),this.h()},l(U){e=F(U,"DIV",{class:!0});var Y=K(e);n=F(Y,"H3",{});var G=K(n);l=se(G,s),G.forEach(p),a=D(Y),f=F(Y,"P",{});var S=K(f);o=se(S,i),S.forEach(p),r=D(Y),V(u.$$.fragment,Y),_=D(Y),c=F(Y,"DIV",{class:!0});var j=K(c);V(v.$$.fragment,j),w=D(j),m=F(j,"SPAN",{class:!0});var ie=K(m);ne=se(ie,W),q=se(ie," Universal Standard Time (UTC)"),ie.forEach(p),j.forEach(p),Y.forEach(p),this.h()},h(){ee(m,"class","text-xs font-normal text-slate-500"),ee(c,"class","flex w-full flex-row items-center gap-2"),ee(e,"class","flex flex-col gap-4")},m(U,Y){Q(U,e,Y),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),$(e,_),$(e,c),A(v,c,null),$(c,w),$(c,m),$(m,ne),$(m,q),b=!0},p(U,[Y]){const G={};!d&&Y&1&&(d=!0,G.hour=U[0],N(()=>d=!1)),!h&&Y&2&&(h=!0,G.minute=U[1],N(()=>h=!1)),u.$set(G)},i(U){b||(k(u.$$.fragment,U),k(v.$$.fragment,U),b=!0)},o(U){O(u.$$.fragment,U),O(v.$$.fragment,U),b=!1},d(U){U&&p(e),H(u),H(v)}}}function yt(t,e,n){let{hour:s=""}=e,{minute:l=""}=e;function a(i){s=i,n(0,s)}function f(i){l=i,n(1,l)}return t.$$set=i=>{"hour"in i&&n(0,s=i.hour),"minute"in i&&n(1,l=i.minute)},[s,l,a,f]}class jn extends Ee{constructor(e){super(),Se(this,e,yt,kt,Ie,{hour:0,minute:1})}}function Ot(t){let e,n,s=R("schedules.recurring-dates-heading")+"",l,a,f,i=R("schedules.recurring-dates-description")+"",o,r,u,d,h,_,c,v,w,m,W,ne,q;function b(S){t[4](S)}let y={};t[0]!==void 0&&(y.daysOfMonth=t[0]),d=new pt({props:y}),L.push(()=>B(d,"daysOfMonth",b));function P(S){t[5](S)}let X={};t[1]!==void 0&&(X.months=t[1]),c=new wt({props:X}),L.push(()=>B(c,"months",P));function U(S){t[6](S)}function Y(S){t[7](S)}let G={};return t[2]!==void 0&&(G.hour=t[2]),t[3]!==void 0&&(G.minute=t[3]),m=new jn({props:G}),L.push(()=>B(m,"hour",U)),L.push(()=>B(m,"minute",Y)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),u=z("div"),T(d.$$.fragment),_=C(),T(c.$$.fragment),w=C(),T(m.$$.fragment),this.h()},l(S){e=F(S,"DIV",{class:!0});var j=K(e);n=F(j,"H3",{});var ie=K(n);l=se(ie,s),ie.forEach(p),a=D(j),f=F(j,"P",{});var x=K(f);o=se(x,i),x.forEach(p),r=D(j),u=F(j,"DIV",{class:!0});var te=K(u);V(d.$$.fragment,te),_=D(te),V(c.$$.fragment,te),te.forEach(p),j.forEach(p),w=D(S),V(m.$$.fragment,S),this.h()},h(){ee(u,"class","flex w-full flex-col gap-4"),ee(e,"class","my-2 flex flex-col gap-4")},m(S,j){Q(S,e,j),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),$(e,u),A(d,u,null),$(u,_),A(c,u,null),Q(S,w,j),A(m,S,j),q=!0},p(S,[j]){const ie={};!h&&j&1&&(h=!0,ie.daysOfMonth=S[0],N(()=>h=!1)),d.$set(ie);const x={};!v&&j&2&&(v=!0,x.months=S[1],N(()=>v=!1)),c.$set(x);const te={};!W&&j&4&&(W=!0,te.hour=S[2],N(()=>W=!1)),!ne&&j&8&&(ne=!0,te.minute=S[3],N(()=>ne=!1)),m.$set(te)},i(S){q||(k(d.$$.fragment,S),k(c.$$.fragment,S),k(m.$$.fragment,S),q=!0)},o(S){O(d.$$.fragment,S),O(c.$$.fragment,S),O(m.$$.fragment,S),q=!1},d(S){S&&(p(e),p(w)),H(d),H(c),H(m,S)}}}function It(t,e,n){let{daysOfMonth:s}=e,{months:l}=e,{hour:a}=e,{minute:f}=e;function i(d){s=d,n(0,s)}function o(d){l=d,n(1,l)}function r(d){a=d,n(2,a)}function u(d){f=d,n(3,f)}return t.$$set=d=>{"daysOfMonth"in d&&n(0,s=d.daysOfMonth),"months"in d&&n(1,l=d.months),"hour"in d&&n(2,a=d.hour),"minute"in d&&n(3,f=d.minute)},[s,l,a,f,i,o,r,u]}class Et extends Ee{constructor(e){super(),Se(this,e,It,Ot,Ie,{daysOfMonth:0,months:1,hour:2,minute:3})}}function Cn(t,e,n){const s=t.slice();s[4]=e[n].label,s[5]=e[n].value;const l=s[0].includes(s[5]);return s[6]=l,s}function Dn(t,e,n){const s=t.slice();s[4]=e[n].label,s[5]=e[n].value;const l=s[0].includes(s[5]);return s[6]=l,s}function St(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Wn(t){let e,n;function s(...l){return t[2](t[5],...l)}return e=new Ge({props:{variant:"secondary",class:t[6]&&"bg-interactive-secondary-active",$$slots:{default:[St]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Ct(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Mn(t){let e,n;function s(...l){return t[3](t[5],...l)}return e=new Ge({props:{variant:"secondary",class:t[6]&&"bg-interactive-secondary-active",$$slots:{default:[Ct]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Dt(t){let e,n,s,l,a,f=Ae(rn),i=[];for(let h=0;hO(i[h],1,1,()=>{i[h]=null});let r=Ae(wn),u=[];for(let h=0;hO(u[h],1,1,()=>{u[h]=null});return{c(){e=z("div"),n=z("div");for(let h=0;h{i.metaKey?(rn.find(r=>r.value===o)?n(0,s=[o]):s.find(r=>rn.find(u=>u.value===r))&&n(0,s=[o]),s.includes(o)?s.filter(r=>r!==o):n(0,s=[...s,o])):n(0,s=[o])},a=(i,o)=>l(o,i),f=(i,o)=>l(o,i);return t.$$set=i=>{"daysOfWeek"in i&&n(0,s=i.daysOfWeek)},[s,l,a,f]}class Mt extends Ee{constructor(e){super(),Se(this,e,Wt,Dt,Ie,{daysOfWeek:0})}}function Tt(t){let e,n,s=R("schedules.recurring-days-heading")+"",l,a,f,i=R("schedules.recurring-days-description")+"",o,r,u,d,h,_,c,v,w;function m(y){t[3](y)}let W={};t[0]!==void 0&&(W.daysOfWeek=t[0]),u=new Mt({props:W}),L.push(()=>B(u,"daysOfWeek",m));function ne(y){t[4](y)}function q(y){t[5](y)}let b={};return t[1]!==void 0&&(b.hour=t[1]),t[2]!==void 0&&(b.minute=t[2]),_=new jn({props:b}),L.push(()=>B(_,"hour",ne)),L.push(()=>B(_,"minute",q)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),h=C(),T(_.$$.fragment),this.h()},l(y){e=F(y,"DIV",{class:!0});var P=K(e);n=F(P,"H3",{});var X=K(n);l=se(X,s),X.forEach(p),a=D(P),f=F(P,"P",{});var U=K(f);o=se(U,i),U.forEach(p),r=D(P),V(u.$$.fragment,P),P.forEach(p),h=D(y),V(_.$$.fragment,y),this.h()},h(){ee(e,"class","my-2 flex flex-col gap-4")},m(y,P){Q(y,e,P),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),Q(y,h,P),A(_,y,P),w=!0},p(y,[P]){const X={};!d&&P&1&&(d=!0,X.daysOfWeek=y[0],N(()=>d=!1)),u.$set(X);const U={};!c&&P&2&&(c=!0,U.hour=y[1],N(()=>c=!1)),!v&&P&4&&(v=!0,U.minute=y[2],N(()=>v=!1)),_.$set(U)},i(y){w||(k(u.$$.fragment,y),k(_.$$.fragment,y),w=!0)},o(y){O(u.$$.fragment,y),O(_.$$.fragment,y),w=!1},d(y){y&&(p(e),p(h)),H(u),H(_,y)}}}function Vt(t,e,n){let{daysOfWeek:s}=e,{hour:l}=e,{minute:a}=e;function f(r){s=r,n(0,s)}function i(r){l=r,n(1,l)}function o(r){a=r,n(2,a)}return t.$$set=r=>{"daysOfWeek"in r&&n(0,s=r.daysOfWeek),"hour"in r&&n(1,l=r.hour),"minute"in r&&n(2,a=r.minute)},[s,l,a,f,i,o]}class At extends Ee{constructor(e){super(),Se(this,e,Vt,Tt,Ie,{daysOfWeek:0,hour:1,minute:2})}}function Ht(t){let e=R("common.days")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Pt(t){let e=R("common.hours-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function qt(t){let e=R("common.minutes-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Lt(t){let e=R("common.seconds-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Nt(t){let e,n,s,l,a,f,i,o;return e=new un({props:{value:"days",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),s=new un({props:{value:"hrs",$$slots:{default:[Pt]},$$scope:{ctx:t}}}),a=new un({props:{value:"min",$$slots:{default:[qt]},$$scope:{ctx:t}}}),i=new un({props:{value:"sec",$$slots:{default:[Lt]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment),n=C(),T(s.$$.fragment),l=C(),T(a.$$.fragment),f=C(),T(i.$$.fragment)},l(r){V(e.$$.fragment,r),n=D(r),V(s.$$.fragment,r),l=D(r),V(a.$$.fragment,r),f=D(r),V(i.$$.fragment,r)},m(r,u){A(e,r,u),Q(r,n,u),A(s,r,u),Q(r,l,u),A(a,r,u),Q(r,f,u),A(i,r,u),o=!0},p(r,u){const d={};u&16384&&(d.$$scope={dirty:u,ctx:r}),e.$set(d);const h={};u&16384&&(h.$$scope={dirty:u,ctx:r}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:r}),a.$set(_);const c={};u&16384&&(c.$$scope={dirty:u,ctx:r}),i.$set(c)},i(r){o||(k(e.$$.fragment,r),k(s.$$.fragment,r),k(a.$$.fragment,r),k(i.$$.fragment,r),o=!0)},o(r){O(e.$$.fragment,r),O(s.$$.fragment,r),O(a.$$.fragment,r),O(i.$$.fragment,r),o=!1},d(r){r&&(p(n),p(l),p(f)),H(e,r),H(s,r),H(a,r),H(i,r)}}}function Bt(t){let e,n,s=R("schedules.interval-view-heading")+"",l,a,f,i=R("schedules.interval-view-description")+"",o,r,u,d,h,_,c,v=":",w,m,W,ne,q,b=":",y,P,X,U,Y,G=":",S,j,ie,x,te,ge=R("schedules.offset-heading")+"",me,he,ce,E=R("schedules.offset-description")+"",be,$e,fe,oe,de,pe,_e,we,ye;function He(M){t[8](M)}let Be={id:"days",class:"w-28",label:R("common.days"),labelHidden:!0,placeholder:"000",suffix:R("common.days"),hideCount:!0,maxLength:3,error:t[7](t[0])};t[0]!==void 0&&(Be.value=t[0]),d=new Te({props:Be}),L.push(()=>B(d,"value",He));function je(M){t[9](M)}let ze={id:"hour-interval",class:"w-24",label:R("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[1])};t[1]!==void 0&&(ze.value=t[1]),m=new Te({props:ze}),L.push(()=>B(m,"value",je));function Fe(M){t[10](M)}let Qe={id:"minute-interval",class:"w-24",label:R("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[2])};t[2]!==void 0&&(Qe.value=t[2]),P=new Te({props:Qe}),L.push(()=>B(P,"value",Fe));function Xe(M){t[11](M)}let Ve={id:"second",class:"w-24",label:R("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[3])};t[3]!==void 0&&(Ve.value=t[3]),j=new Te({props:Ve}),L.push(()=>B(j,"value",Xe));function Ye(M){t[12](M)}let Pe={id:"phase",class:"w-28",label:R("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:t[7](t[4])};t[5]!==void 0&&(Pe.value=t[5]),oe=new Te({props:Pe}),L.push(()=>B(oe,"value",Ye));function Ze(M){t[13](M)}let Ue={label:R("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Nt]},$$scope:{ctx:t}};return t[6]!==void 0&&(Ue.value=t[6]),_e=new xn({props:Ue}),L.push(()=>B(_e,"value",Ze)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),u=z("div"),T(d.$$.fragment),_=C(),c=z("div"),c.textContent=v,w=C(),T(m.$$.fragment),ne=C(),q=z("div"),q.textContent=b,y=C(),T(P.$$.fragment),U=C(),Y=z("div"),Y.textContent=G,S=C(),T(j.$$.fragment),x=C(),te=z("h3"),me=le(ge),he=C(),ce=z("p"),be=le(E),$e=C(),fe=z("div"),T(oe.$$.fragment),pe=C(),T(_e.$$.fragment),this.h()},l(M){e=F(M,"DIV",{class:!0});var Z=K(e);n=F(Z,"H3",{});var Ce=K(n);l=se(Ce,s),Ce.forEach(p),a=D(Z),f=F(Z,"P",{});var De=K(f);o=se(De,i),De.forEach(p),r=D(Z),u=F(Z,"DIV",{class:!0});var ue=K(u);V(d.$$.fragment,ue),_=D(ue),c=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(c)!=="svelte-qa0xbj"&&(c.textContent=v),w=D(ue),V(m.$$.fragment,ue),ne=D(ue),q=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(q)!=="svelte-qa0xbj"&&(q.textContent=b),y=D(ue),V(P.$$.fragment,ue),U=D(ue),Y=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(Y)!=="svelte-qa0xbj"&&(Y.textContent=G),S=D(ue),V(j.$$.fragment,ue),ue.forEach(p),x=D(Z),te=F(Z,"H3",{class:!0});var We=K(te);me=se(We,ge),We.forEach(p),he=D(Z),ce=F(Z,"P",{});var Me=K(ce);be=se(Me,E),Me.forEach(p),$e=D(Z),fe=F(Z,"DIV",{class:!0});var ae=K(fe);V(oe.$$.fragment,ae),pe=D(ae),V(_e.$$.fragment,ae),ae.forEach(p),Z.forEach(p),this.h()},h(){ee(c,"class","hidden lg:block"),ee(q,"class","hidden lg:block"),ee(Y,"class","hidden lg:block"),ee(u,"class","flex flex-col items-center gap-2 lg:flex-row"),ee(te,"class","mt-4"),ee(fe,"class","flex w-48 gap-2"),ee(e,"class","my-2 flex flex-col gap-4")},m(M,Z){Q(M,e,Z),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),$(e,u),A(d,u,null),$(u,_),$(u,c),$(u,w),A(m,u,null),$(u,ne),$(u,q),$(u,y),A(P,u,null),$(u,U),$(u,Y),$(u,S),A(j,u,null),$(e,x),$(e,te),$(te,me),$(e,he),$(e,ce),$(ce,be),$(e,$e),$(e,fe),A(oe,fe,null),$(fe,pe),A(_e,fe,null),ye=!0},p(M,[Z]){const Ce={};Z&1&&(Ce.error=M[7](M[0])),!h&&Z&1&&(h=!0,Ce.value=M[0],N(()=>h=!1)),d.$set(Ce);const De={};Z&2&&(De.error=M[7](M[1])),!W&&Z&2&&(W=!0,De.value=M[1],N(()=>W=!1)),m.$set(De);const ue={};Z&4&&(ue.error=M[7](M[2])),!X&&Z&4&&(X=!0,ue.value=M[2],N(()=>X=!1)),P.$set(ue);const We={};Z&8&&(We.error=M[7](M[3])),!ie&&Z&8&&(ie=!0,We.value=M[3],N(()=>ie=!1)),j.$set(We);const Me={};Z&16&&(Me.error=M[7](M[4])),!de&&Z&32&&(de=!0,Me.value=M[5],N(()=>de=!1)),oe.$set(Me);const ae={};Z&16384&&(ae.$$scope={dirty:Z,ctx:M}),!we&&Z&64&&(we=!0,ae.value=M[6],N(()=>we=!1)),_e.$set(ae)},i(M){ye||(k(d.$$.fragment,M),k(m.$$.fragment,M),k(P.$$.fragment,M),k(j.$$.fragment,M),k(oe.$$.fragment,M),k(_e.$$.fragment,M),ye=!0)},o(M){O(d.$$.fragment,M),O(m.$$.fragment,M),O(P.$$.fragment,M),O(j.$$.fragment,M),O(oe.$$.fragment,M),O(_e.$$.fragment,M),ye=!1},d(M){M&&p(e),H(d),H(m),H(P),H(j),H(oe),H(_e)}}}function jt(t,e,n){let{days:s=""}=e,{hour:l=""}=e,{minute:a=""}=e,{second:f=""}=e,{phase:i=""}=e,o="",r="min";const u=m=>m?isNaN(parseInt(m)):!1;function d(m){s=m,n(0,s)}function h(m){l=m,n(1,l)}function _(m){a=m,n(2,a)}function c(m){f=m,n(3,f)}function v(m){o=m,n(5,o)}function w(m){r=m,n(6,r)}return t.$$set=m=>{"days"in m&&n(0,s=m.days),"hour"in m&&n(1,l=m.hour),"minute"in m&&n(2,a=m.minute),"second"in m&&n(3,f=m.second),"phase"in m&&n(4,i=m.phase)},t.$$.update=()=>{t.$$.dirty&96&&o&&(r==="days"?n(4,i=(parseInt(o)*60*60*24).toString()+"s"):r==="hrs"?n(4,i=(parseInt(o)*60*60).toString()+"s"):r==="min"?n(4,i=(parseInt(o)*60).toString()+"s"):r==="sec"&&n(4,i=parseInt(o).toString()+"s"))},[s,l,a,f,i,o,r,u,d,h,_,c,v,w]}class zt extends Ee{constructor(e){super(),Se(this,e,jt,Bt,Ie,{days:0,hour:1,minute:2,second:3,phase:4})}}const Ft=t=>({preset:t[0]&1024}),Tn=t=>({preset:t[10]});function Vn(t){let e,n;return e=new en({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:t[12]}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1024&&(a.onClick=s[12]),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Qt(t){let e,n,s,l,a,f,i,o,r,u=t[9]&&Vn(t);return n=new en({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:t[13]}}),l=new en({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:t[14]}}),f=new en({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:t[15]}}),o=new en({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:t[16]}}),{c(){u&&u.c(),e=C(),T(n.$$.fragment),s=C(),T(l.$$.fragment),a=C(),T(f.$$.fragment),i=C(),T(o.$$.fragment)},l(d){u&&u.l(d),e=D(d),V(n.$$.fragment,d),s=D(d),V(l.$$.fragment,d),a=D(d),V(f.$$.fragment,d),i=D(d),V(o.$$.fragment,d)},m(d,h){u&&u.m(d,h),Q(d,e,h),A(n,d,h),Q(d,s,h),A(l,d,h),Q(d,a,h),A(f,d,h),Q(d,i,h),A(o,d,h),r=!0},p(d,h){d[9]?u?(u.p(d,h),h[0]&512&&k(u,1)):(u=Vn(d),u.c(),k(u,1),u.m(e.parentNode,e)):u&&(Le(),O(u,1,1,()=>{u=null}),Ne());const _={};h[0]&1024&&(_.onClick=d[13]),n.$set(_);const c={};h[0]&1024&&(c.onClick=d[14]),l.$set(c);const v={};h[0]&1024&&(v.onClick=d[15]),f.$set(v);const w={};h[0]&1024&&(w.onClick=d[16]),o.$set(w)},i(d){r||(k(u),k(n.$$.fragment,d),k(l.$$.fragment,d),k(f.$$.fragment,d),k(o.$$.fragment,d),r=!0)},o(d){O(u),O(n.$$.fragment,d),O(l.$$.fragment,d),O(f.$$.fragment,d),O(o.$$.fragment,d),r=!1},d(d){d&&(p(e),p(s),p(a),p(i)),u&&u.d(d),H(n,d),H(l,d),H(f,d),H(o,d)}}}function An(t){let e,n;return e=new nn({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Ut]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1073742336&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Ut(t){var s,l,a,f,i,o,r,u;let e,n;return e=new Zn({props:{calendar:(a=(l=(s=t[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:a[0],interval:(o=(i=(f=t[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:o[0],timezoneName:(u=(r=t[9])==null?void 0:r.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(d){V(e.$$.fragment,d)},m(d,h){A(e,d,h),n=!0},p(d,h){var c,v,w,m,W,ne,q,b;const _={};h[0]&512&&(_.calendar=(w=(v=(c=d[9])==null?void 0:c.spec)==null?void 0:v.structuredCalendar)==null?void 0:w[0]),h[0]&512&&(_.interval=(ne=(W=(m=d[9])==null?void 0:m.spec)==null?void 0:W.interval)==null?void 0:ne[0]),h[0]&512&&(_.timezoneName=(b=(q=d[9])==null?void 0:q.spec)==null?void 0:b.timezoneName),e.$set(_)},i(d){n||(k(e.$$.fragment,d),n=!0)},o(d){O(e.$$.fragment,d),n=!1},d(d){H(e,d)}}}function Kt(t){let e,n,s,l,a,f,i;function o(c){t[17](c)}function r(c){t[18](c)}function u(c){t[19](c)}function d(c){t[20](c)}function h(c){t[21](c)}let _={};return t[3]!==void 0&&(_.days=t[3]),t[4]!==void 0&&(_.hour=t[4]),t[5]!==void 0&&(_.minute=t[5]),t[6]!==void 0&&(_.second=t[6]),t[7]!==void 0&&(_.phase=t[7]),e=new zt({props:_}),L.push(()=>B(e,"days",o)),L.push(()=>B(e,"hour",r)),L.push(()=>B(e,"minute",u)),L.push(()=>B(e,"second",d)),L.push(()=>B(e,"phase",h)),{c(){T(e.$$.fragment)},l(c){V(e.$$.fragment,c)},m(c,v){A(e,c,v),i=!0},p(c,v){const w={};!n&&v[0]&8&&(n=!0,w.days=c[3],N(()=>n=!1)),!s&&v[0]&16&&(s=!0,w.hour=c[4],N(()=>s=!1)),!l&&v[0]&32&&(l=!0,w.minute=c[5],N(()=>l=!1)),!a&&v[0]&64&&(a=!0,w.second=c[6],N(()=>a=!1)),!f&&v[0]&128&&(f=!0,w.phase=c[7],N(()=>f=!1)),e.$set(w)},i(c){i||(k(e.$$.fragment,c),i=!0)},o(c){O(e.$$.fragment,c),i=!1},d(c){H(e,c)}}}function Rt(t){let e,n,s,l,a;function f(u){t[22](u)}function i(u){t[23](u)}function o(u){t[24](u)}let r={};return t[0]!==void 0&&(r.daysOfWeek=t[0]),t[4]!==void 0&&(r.hour=t[4]),t[5]!==void 0&&(r.minute=t[5]),e=new At({props:r}),L.push(()=>B(e,"daysOfWeek",f)),L.push(()=>B(e,"hour",i)),L.push(()=>B(e,"minute",o)),{c(){T(e.$$.fragment)},l(u){V(e.$$.fragment,u)},m(u,d){A(e,u,d),a=!0},p(u,d){const h={};!n&&d[0]&1&&(n=!0,h.daysOfWeek=u[0],N(()=>n=!1)),!s&&d[0]&16&&(s=!0,h.hour=u[4],N(()=>s=!1)),!l&&d[0]&32&&(l=!0,h.minute=u[5],N(()=>l=!1)),e.$set(h)},i(u){a||(k(e.$$.fragment,u),a=!0)},o(u){O(e.$$.fragment,u),a=!1},d(u){H(e,u)}}}function Jt(t){let e,n,s,l,a,f;function i(h){t[25](h)}function o(h){t[26](h)}function r(h){t[27](h)}function u(h){t[28](h)}let d={};return t[1]!==void 0&&(d.daysOfMonth=t[1]),t[2]!==void 0&&(d.months=t[2]),t[4]!==void 0&&(d.hour=t[4]),t[5]!==void 0&&(d.minute=t[5]),e=new Et({props:d}),L.push(()=>B(e,"daysOfMonth",i)),L.push(()=>B(e,"months",o)),L.push(()=>B(e,"hour",r)),L.push(()=>B(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){V(e.$$.fragment,h)},m(h,_){A(e,h,_),f=!0},p(h,_){const c={};!n&&_[0]&2&&(n=!0,c.daysOfMonth=h[1],N(()=>n=!1)),!s&&_[0]&4&&(s=!0,c.months=h[2],N(()=>s=!1)),!l&&_[0]&16&&(l=!0,c.hour=h[4],N(()=>l=!1)),!a&&_[0]&32&&(a=!0,c.minute=h[5],N(()=>a=!1)),e.$set(c)},i(h){f||(k(e.$$.fragment,h),f=!0)},o(h){O(e.$$.fragment,h),f=!1},d(h){H(e,h)}}}function Gt(t){let e,n,s=R("schedules.cron-view-title")+"",l,a,f,i=R("schedules.cron-view-description")+"",o,r,u,d,h;function _(v){t[29](v)}let c={label:R("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return t[8]!==void 0&&(c.value=t[8]),u=new Te({props:c}),L.push(()=>B(u,"value",_)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),this.h()},l(v){e=F(v,"DIV",{class:!0});var w=K(e);n=F(w,"H3",{});var m=K(n);l=se(m,s),m.forEach(p),a=D(w),f=F(w,"P",{});var W=K(f);o=se(W,i),W.forEach(p),r=D(w),V(u.$$.fragment,w),w.forEach(p),this.h()},h(){ee(e,"class","my-2 flex w-full flex-col gap-4")},m(v,w){Q(v,e,w),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),h=!0},p(v,w){const m={};!d&&w[0]&256&&(d=!0,m.value=v[8],N(()=>d=!1)),u.$set(m)},i(v){h||(k(u.$$.fragment,v),h=!0)},o(v){O(u.$$.fragment,v),h=!1},d(v){v&&p(e),H(u)}}}function Xt(t){let e,n=R("schedules.schedule-spec")+"",s,l,a,f,i,o,r,u,d,h,_,c,v,w,m;a=new Jn({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Qt]},$$scope:{ctx:t}}});let W=t[9]&&An(t);r=new nn({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Kt]},$$scope:{ctx:t}}}),d=new nn({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Rt]},$$scope:{ctx:t}}}),_=new nn({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Jt]},$$scope:{ctx:t}}}),v=new nn({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Gt]},$$scope:{ctx:t}}});const ne=t[11].default,q=Hn(ne,t,t[30],Tn);return{c(){e=z("h2"),s=le(n),l=C(),T(a.$$.fragment),f=C(),i=z("div"),W&&W.c(),o=C(),T(r.$$.fragment),u=C(),T(d.$$.fragment),h=C(),T(_.$$.fragment),c=C(),T(v.$$.fragment),w=C(),q&&q.c(),this.h()},l(b){e=F(b,"H2",{class:!0});var y=K(e);s=se(y,n),y.forEach(p),l=D(b),V(a.$$.fragment,b),f=D(b),i=F(b,"DIV",{class:!0});var P=K(i);W&&W.l(P),o=D(P),V(r.$$.fragment,P),u=D(P),V(d.$$.fragment,P),h=D(P),V(_.$$.fragment,P),c=D(P),V(v.$$.fragment,P),P.forEach(p),w=D(b),q&&q.l(b),this.h()},h(){ee(e,"class","mb-4"),ee(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(b,y){Q(b,e,y),$(e,s),Q(b,l,y),A(a,b,y),Q(b,f,y),Q(b,i,y),W&&W.m(i,null),$(i,o),A(r,i,null),$(i,u),A(d,i,null),$(i,h),A(_,i,null),$(i,c),A(v,i,null),Q(b,w,y),q&&q.m(b,y),m=!0},p(b,y){const P={};y[0]&1073743360&&(P.$$scope={dirty:y,ctx:b}),a.$set(P),b[9]?W?(W.p(b,y),y[0]&512&&k(W,1)):(W=An(b),W.c(),k(W,1),W.m(i,o)):W&&(Le(),O(W,1,1,()=>{W=null}),Ne());const X={};y[0]&1073742072&&(X.$$scope={dirty:y,ctx:b}),r.$set(X);const U={};y[0]&1073741873&&(U.$$scope={dirty:y,ctx:b}),d.$set(U);const Y={};y[0]&1073741878&&(Y.$$scope={dirty:y,ctx:b}),_.$set(Y);const G={};y[0]&1073742080&&(G.$$scope={dirty:y,ctx:b}),v.$set(G),q&&q.p&&(!m||y[0]&1073742848)&&Pn(q,ne,b,b[30],m?Ln(ne,b[30],y,Ft):qn(b[30]),Tn)},i(b){m||(k(a.$$.fragment,b),k(W),k(r.$$.fragment,b),k(d.$$.fragment,b),k(_.$$.fragment,b),k(v.$$.fragment,b),k(q,b),m=!0)},o(b){O(a.$$.fragment,b),O(W),O(r.$$.fragment,b),O(d.$$.fragment,b),O(_.$$.fragment,b),O(v.$$.fragment,b),O(q,b),m=!1},d(b){b&&(p(e),p(l),p(f),p(i),p(w)),H(a,b),W&&W.d(),H(r),H(d),H(_),H(v),q&&q.d(b)}}}function Yt(t){let e,n;return e=new Rn({props:{class:"mt-8 w-full",$$slots:{default:[Xt]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1073743871&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Zt(t,e,n){let s;tn(t,Bn,E=>n(31,s=E));let{$$slots:l={},$$scope:a}=e,i=s.params.schedule?"existing":"interval",{schedule:o=null}=e,{daysOfWeek:r}=e,{daysOfMonth:u}=e,{months:d}=e,{days:h}=e,{hour:_}=e,{minute:c}=e,{second:v}=e,{phase:w}=e,{cronString:m}=e;const W=()=>{n(0,r=[]),n(1,u=[]),n(2,d=[]),n(3,h=""),n(4,_=""),n(5,c=""),n(6,v=""),n(7,w=""),n(8,m="")},ne=()=>n(10,i="existing"),q=()=>n(10,i="interval"),b=()=>n(10,i="week"),y=()=>n(10,i="month"),P=()=>n(10,i="string");function X(E){h=E,n(3,h)}function U(E){_=E,n(4,_)}function Y(E){c=E,n(5,c)}function G(E){v=E,n(6,v)}function S(E){w=E,n(7,w)}function j(E){r=E,n(0,r)}function ie(E){_=E,n(4,_)}function x(E){c=E,n(5,c)}function te(E){u=E,n(1,u)}function ge(E){d=E,n(2,d)}function me(E){_=E,n(4,_)}function he(E){c=E,n(5,c)}function ce(E){m=E,n(8,m)}return t.$$set=E=>{"schedule"in E&&n(9,o=E.schedule),"daysOfWeek"in E&&n(0,r=E.daysOfWeek),"daysOfMonth"in E&&n(1,u=E.daysOfMonth),"months"in E&&n(2,d=E.months),"days"in E&&n(3,h=E.days),"hour"in E&&n(4,_=E.hour),"minute"in E&&n(5,c=E.minute),"second"in E&&n(6,v=E.second),"phase"in E&&n(7,w=E.phase),"cronString"in E&&n(8,m=E.cronString),"$$scope"in E&&n(30,a=E.$$scope)},W(),[r,u,d,h,_,c,v,w,m,o,i,l,ne,q,b,y,P,X,U,Y,G,S,j,ie,x,te,ge,me,he,ce,a]}class xt extends Ee{constructor(e){super(),Se(this,e,Zt,Yt,Ie,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function el(t){let e,n,s,l,a;function f(u){t[5](u)}function i(u){t[6](u)}function o(u){t[7](u)}let r={id:"schedule-payload-input"};return t[0]!==void 0&&(r.input=t[0]),t[1]!==void 0&&(r.encoding=t[1]),t[3]!==void 0&&(r.loading=t[3]),e=new ft({props:r}),L.push(()=>B(e,"input",f)),L.push(()=>B(e,"encoding",i)),L.push(()=>B(e,"loading",o)),{c(){T(e.$$.fragment)},l(u){V(e.$$.fragment,u)},m(u,d){A(e,u,d),a=!0},p(u,d){const h={};!n&&d&1&&(n=!0,h.input=u[0],N(()=>n=!1)),!s&&d&2&&(s=!0,h.encoding=u[1],N(()=>s=!1)),!l&&d&8&&(l=!0,h.loading=u[3],N(()=>l=!1)),e.$set(h)},i(u){a||(k(e.$$.fragment,u),a=!0)},o(u){O(e.$$.fragment,u),a=!1},d(u){H(e,u)}}}function nl(t){let e,n,s;return n=new ot({props:{value:t[2],key:"payloads",onDecode:t[4],$$slots:{default:[el]},$$scope:{ctx:t}}}),{c(){e=z("div"),T(n.$$.fragment),this.h()},l(l){e=F(l,"DIV",{class:!0});var a=K(e);V(n.$$.fragment,a),a.forEach(p),this.h()},h(){ee(e,"class","flex flex-col gap-1")},m(l,a){Q(l,e,a),A(n,e,null),s=!0},p(l,[a]){const f={};a&4&&(f.value=l[2]),a&523&&(f.$$scope={dirty:a,ctx:l}),n.$set(f)},i(l){s||(k(n.$$.fragment,l),s=!0)},o(l){O(n.$$.fragment,l),s=!1},d(l){l&&p(e),H(n)}}}function tl(t,e,n){let s,l=ve,a=()=>(l(),l=Nn(i,c=>n(8,s=c)),i);t.$$.on_destroy.push(()=>l());let{input:f}=e,{encoding:i}=e;a();let{payloads:o}=e,r=!0;const u=c=>{var v,w,m;n(0,f=rt(c));const W=at(String((m=(w=(v=o==null?void 0:o.payloads[0])===null||v===void 0?void 0:v.metadata)===null||w===void 0?void 0:w.encoding)!==null&&m!==void 0?m:"json/plain"));dt(W)&&hn(i,s=W,s),n(3,r=!1)};function d(c){f=c,n(0,f)}function h(c){i=c,a(n(1,i))}function _(c){r=c,n(3,r)}return t.$$set=c=>{"input"in c&&n(0,f=c.input),"encoding"in c&&a(n(1,i=c.encoding)),"payloads"in c&&n(2,o=c.payloads)},[f,i,o,r,u,d,h,_]}class ll extends Ee{constructor(e){super(),Se(this,e,tl,nl,Ie,{input:0,encoding:1,payloads:2})}}function sl(t){var ln,I,Oe;let e,n,s,l,a,f,i,o,r,u,d,h,_,c,v,w,m,W,ne,q,b,y,P,X,U,Y,G,S,j,ie,x,te,ge,me,he,ce,E,be,$e,fe,oe,de,pe;n=new nt({props:{href:t[25],icon:"chevron-left",$$slots:{default:[ul]},$$scope:{ctx:t}}});function _e(g){t[32](g)}let we={id:"name",label:R("schedules.name-label"),error:t[14].name,maxLength:232,disabled:!!t[21],required:!0};t[1]!==void 0&&(we.value=t[1]),r=new Te({props:we}),L.push(()=>B(r,"value",_e)),r.$on("input",t[28]),r.$on("blur",t[29]);function ye(g){t[33](g)}let He={id:"workflowType",label:R("schedules.workflow-type-label"),error:t[14].workflowType,required:!0};t[2]!==void 0&&(He.value=t[2]),_=new Te({props:He}),L.push(()=>B(_,"value",ye)),_.$on("input",t[28]),_.$on("blur",t[29]);function Be(g){t[34](g)}let je={id:"workflowId",label:R("schedules.workflow-id-label"),error:t[14].workflowId,required:!0};t[3]!==void 0&&(je.value=t[3]),m=new Te({props:je}),L.push(()=>B(m,"value",Be)),m.$on("input",t[28]),m.$on("blur",t[29]);function ze(g){t[35](g)}let Fe={id:"taskQueue",label:R("schedules.task-queue-label"),error:t[14].taskQueue,required:!0};t[4]!==void 0&&(Fe.value=t[4]),b=new Te({props:Fe}),L.push(()=>B(b,"value",ze)),b.$on("input",t[28]),b.$on("blur",t[29]);function Qe(g){t[36](g)}function Xe(g){t[37](g)}let Ve={payloads:(Oe=(I=(ln=t[0])==null?void 0:ln.action)==null?void 0:I.startWorkflow)==null?void 0:Oe.input};t[5]!==void 0&&(Ve.input=t[5]),t[15]!==void 0&&(Ve.encoding=t[15]),X=new ll({props:Ve}),L.push(()=>B(X,"input",Qe)),L.push(()=>B(X,"encoding",Xe));function Ye(g){t[38](g)}let Pe={class:"w-full"};t[17]!==void 0&&(Pe.attributesToAdd=t[17]),S=new ut({props:Pe}),L.push(()=>B(S,"attributesToAdd",Ye));function Ze(g){t[40](g)}function Ue(g){t[41](g)}function M(g){t[42](g)}function Z(g){t[43](g)}function Ce(g){t[44](g)}function De(g){t[45](g)}function ue(g){t[46](g)}function We(g){t[47](g)}function Me(g){t[48](g)}let ae={schedule:t[0],$$slots:{default:[ol,({preset:g})=>({63:g}),({preset:g})=>[0,0,g?2:0]]},$$scope:{ctx:t}};return t[6]!==void 0&&(ae.daysOfWeek=t[6]),t[7]!==void 0&&(ae.daysOfMonth=t[7]),t[8]!==void 0&&(ae.months=t[8]),t[9]!==void 0&&(ae.days=t[9]),t[10]!==void 0&&(ae.hour=t[10]),t[11]!==void 0&&(ae.minute=t[11]),t[12]!==void 0&&(ae.second=t[12]),t[16]!==void 0&&(ae.phase=t[16]),t[13]!==void 0&&(ae.cronString=t[13]),x=new xt({props:ae}),L.push(()=>B(x,"daysOfWeek",Ze)),L.push(()=>B(x,"daysOfMonth",Ue)),L.push(()=>B(x,"months",M)),L.push(()=>B(x,"days",Z)),L.push(()=>B(x,"hour",Ce)),L.push(()=>B(x,"minute",De)),L.push(()=>B(x,"second",ue)),L.push(()=>B(x,"phase",We)),L.push(()=>B(x,"cronString",Me)),de=new et({props:{intent:"error",title:t[19],hidden:!t[19]}}),{c(){e=z("header"),T(n.$$.fragment),s=C(),l=z("h1"),a=le(t[22]),f=C(),i=z("form"),o=z("div"),T(r.$$.fragment),d=C(),h=z("div"),T(_.$$.fragment),v=C(),w=z("div"),T(m.$$.fragment),ne=C(),q=z("div"),T(b.$$.fragment),P=C(),T(X.$$.fragment),G=C(),T(S.$$.fragment),ie=C(),T(x.$$.fragment),oe=C(),T(de.$$.fragment),this.h()},l(g){e=F(g,"HEADER",{class:!0});var J=K(e);V(n.$$.fragment,J),s=D(J),l=F(J,"H1",{});var xe=K(l);a=se(xe,t[22]),xe.forEach(p),J.forEach(p),f=D(g),i=F(g,"FORM",{class:!0});var re=K(i);o=F(re,"DIV",{class:!0});var Ke=K(o);V(r.$$.fragment,Ke),Ke.forEach(p),d=D(re),h=F(re,"DIV",{class:!0});var Re=K(h);V(_.$$.fragment,Re),Re.forEach(p),v=D(re),w=F(re,"DIV",{class:!0});var Je=K(w);V(m.$$.fragment,Je),Je.forEach(p),ne=D(re),q=F(re,"DIV",{class:!0});var qe=K(q);V(b.$$.fragment,qe),qe.forEach(p),P=D(re),V(X.$$.fragment,re),G=D(re),V(S.$$.fragment,re),ie=D(re),V(x.$$.fragment,re),oe=D(re),V(de.$$.fragment,re),re.forEach(p),this.h()},h(){ee(e,"class","mb-12 flex flex-col gap-4"),ee(o,"class","w-full"),ee(h,"class","w-full"),ee(w,"class","w-full"),ee(q,"class","w-full"),ee(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(g,J){Q(g,e,J),A(n,e,null),$(e,s),$(e,l),$(l,a),Q(g,f,J),Q(g,i,J),$(i,o),A(r,o,null),$(i,d),$(i,h),A(_,h,null),$(i,v),$(i,w),A(m,w,null),$(i,ne),$(i,q),A(b,q,null),$(i,P),A(X,i,null),$(i,G),A(S,i,null),$(i,ie),A(x,i,null),$(i,oe),A(de,i,null),pe=!0},p(g,J){var mn,gn,pn;const xe={};J[2]&4&&(xe.$$scope={dirty:J,ctx:g}),n.$set(xe);const re={};J[0]&16384&&(re.error=g[14].name),!u&&J[0]&2&&(u=!0,re.value=g[1],N(()=>u=!1)),r.$set(re);const Ke={};J[0]&16384&&(Ke.error=g[14].workflowType),!c&&J[0]&4&&(c=!0,Ke.value=g[2],N(()=>c=!1)),_.$set(Ke);const Re={};J[0]&16384&&(Re.error=g[14].workflowId),!W&&J[0]&8&&(W=!0,Re.value=g[3],N(()=>W=!1)),m.$set(Re);const Je={};J[0]&16384&&(Je.error=g[14].taskQueue),!y&&J[0]&16&&(y=!0,Je.value=g[4],N(()=>y=!1)),b.$set(Je);const qe={};J[0]&1&&(qe.payloads=(pn=(gn=(mn=g[0])==null?void 0:mn.action)==null?void 0:gn.startWorkflow)==null?void 0:pn.input),!U&&J[0]&32&&(U=!0,qe.input=g[5],N(()=>U=!1)),!Y&&J[0]&32768&&(Y=!0,qe.encoding=g[15],N(()=>Y=!1)),X.$set(qe);const _n={};!j&&J[0]&131072&&(j=!0,_n.attributesToAdd=g[17],N(()=>j=!1)),S.$set(_n);const ke={};J[0]&1&&(ke.schedule=g[0]),J[0]&262145|J[2]&6&&(ke.$$scope={dirty:J,ctx:g}),!te&&J[0]&64&&(te=!0,ke.daysOfWeek=g[6],N(()=>te=!1)),!ge&&J[0]&128&&(ge=!0,ke.daysOfMonth=g[7],N(()=>ge=!1)),!me&&J[0]&256&&(me=!0,ke.months=g[8],N(()=>me=!1)),!he&&J[0]&512&&(he=!0,ke.days=g[9],N(()=>he=!1)),!ce&&J[0]&1024&&(ce=!0,ke.hour=g[10],N(()=>ce=!1)),!E&&J[0]&2048&&(E=!0,ke.minute=g[11],N(()=>E=!1)),!be&&J[0]&4096&&(be=!0,ke.second=g[12],N(()=>be=!1)),!$e&&J[0]&65536&&($e=!0,ke.phase=g[16],N(()=>$e=!1)),!fe&&J[0]&8192&&(fe=!0,ke.cronString=g[13],N(()=>fe=!1)),x.$set(ke);const on={};J[0]&524288&&(on.title=g[19]),J[0]&524288&&(on.hidden=!g[19]),de.$set(on)},i(g){pe||(k(n.$$.fragment,g),k(r.$$.fragment,g),k(_.$$.fragment,g),k(m.$$.fragment,g),k(b.$$.fragment,g),k(X.$$.fragment,g),k(S.$$.fragment,g),k(x.$$.fragment,g),k(de.$$.fragment,g),pe=!0)},o(g){O(n.$$.fragment,g),O(r.$$.fragment,g),O(_.$$.fragment,g),O(m.$$.fragment,g),O(b.$$.fragment,g),O(X.$$.fragment,g),O(S.$$.fragment,g),O(x.$$.fragment,g),O(de.$$.fragment,g),pe=!1},d(g){g&&(p(e),p(f),p(i)),H(n),H(r),H(_),H(m),H(b),H(X),H(S),H(x),H(de)}}}function il(t){let e,n;return e=new tt({props:{title:t[23]}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p:ve,i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function ul(t){let e;return{c(){e=le(t[24])},l(n){e=se(n,t[24])},m(n,s){Q(n,e,s)},p:ve,d(n){n&&p(e)}}}function al(t){let e;return{c(){e=le(t[26])},l(n){e=se(n,t[26])},m(n,s){Q(n,e,s)},p:ve,d(n){n&&p(e)}}}function rl(t){let e=R("common.cancel")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function ol(t){let e,n,s,l,a;function f(){return t[39](t[63])}return n=new Ge({props:{disabled:t[18](t[63])||!yn(),$$slots:{default:[al]},$$scope:{ctx:t}}}),n.$on("click",f),l=new Ge({props:{variant:"ghost",href:t[25],$$slots:{default:[rl]},$$scope:{ctx:t}}}),{c(){e=z("div"),T(n.$$.fragment),s=C(),T(l.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var o=K(e);V(n.$$.fragment,o),s=D(o),V(l.$$.fragment,o),o.forEach(p),this.h()},h(){ee(e,"class","mt-8 flex items-center gap-2")},m(i,o){Q(i,e,o),A(n,e,null),$(e,s),A(l,e,null),a=!0},p(i,o){t=i;const r={};o[0]&262144|o[2]&2&&(r.disabled=t[18](t[63])||!yn()),o[2]&4&&(r.$$scope={dirty:o,ctx:t}),n.$set(r);const u={};o[2]&4&&(u.$$scope={dirty:o,ctx:t}),l.$set(u)},i(i){a||(k(n.$$.fragment,i),k(l.$$.fragment,i),a=!0)},o(i){O(n.$$.fragment,i),O(l.$$.fragment,i),a=!1},d(i){i&&p(e),H(n),H(l)}}}function fl(t){let e,n,s,l;const a=[il,sl],f=[];function i(o,r){return o[20]?0:1}return n=i(t),s=f[n]=a[n](t),{c(){e=z("div"),s.c(),this.h()},l(o){e=F(o,"DIV",{class:!0});var r=K(e);s.l(r),r.forEach(p),this.h()},h(){ee(e,"class","pb-20")},m(o,r){Q(o,e,r),f[n].m(e,null),l=!0},p(o,r){let u=n;n=i(o),n===u?f[n].p(o,r):(Le(),O(f[u],1,1,()=>{f[u]=null}),Ne(),s=f[n],s?s.p(o,r):(s=f[n]=a[n](o),s.c()),k(s,1),s.m(e,null))},i(o){l||(k(s),l=!0)},o(o){O(s),l=!1},d(o){o&&p(e),f[n].d()}}}function dl(t,e,n){let s,l,a,f=ve,i=()=>(f(),f=Nn(ce,I=>n(56,a=I)),ce),o,r;tn(t,dn,I=>n(19,l=I)),tn(t,Bn,I=>n(57,o=I)),tn(t,lt,I=>n(20,r=I)),t.$$.on_destroy.push(()=>f());var u,d,h,_,c,v,w;let{schedule:m=null}=e,{searchAttributes:W={}}=e,{onConfirm:ne}=e,q=o.params.namespace,b=o.params.schedule,y=R(m?"schedules.edit":"schedules.create"),P=R(m?"schedules.editing":"schedules.creating"),X=R(m?"schedules.back-to-schedule":"schedules.back-to-schedules"),U=m?st({namespace:q,scheduleId:b}):it({namespace:q}),Y=m?R("common.save"):R("schedules.create"),G={},S=b??"";const j=kn((u=m==null?void 0:m.action)===null||u===void 0?void 0:u.startWorkflow),ie=kn({searchAttributes:W}),x=(d=ie==null?void 0:ie.searchAttributes.indexedFields)!==null&&d!==void 0?d:{};let te=(_=(h=j==null?void 0:j.workflowType)===null||h===void 0?void 0:h.name)!==null&&_!==void 0?_:"",ge=(c=j==null?void 0:j.workflowId)!==null&&c!==void 0?c:"",me=(w=(v=j==null?void 0:j.taskQueue)===null||v===void 0?void 0:v.name)!==null&&w!==void 0?w:"",he="",ce=Un("json/plain");i();let E=[],be=[],$e=[],fe="",oe="",de="",pe="",_e="",we="",ye=Object.entries(x).map(([I,Oe])=>({attribute:I,value:Oe}));const He=(I,Oe)=>{const g={name:S.trimEnd(),workflowType:te,workflowId:ge,taskQueue:me,input:he,encoding:a,hour:oe,minute:de,second:pe,phase:_e,cronString:we,daysOfWeek:E,daysOfMonth:be,days:fe,months:$e,searchAttributes:ye};ne(I,g,Oe)},Be=I=>{const{id:Oe}=I.target;n(14,G[Oe]=!1,G),l&&hn(dn,l="",l)},je=I=>{const{value:Oe,id:g}=I.target;Oe.trim()?n(14,G[g]=!1,G):n(14,G[g]=!0,G)},ze=I=>{if(!he)return n(14,G.input=!1,G),!0;try{return JSON.parse(I),n(14,G.input=!1,G),!0}catch{return n(14,G.input=!0,G),!1}};Qn(()=>hn(dn,l="",l));function Fe(I){S=I,n(1,S)}function Qe(I){te=I,n(2,te)}function Xe(I){ge=I,n(3,ge)}function Ve(I){me=I,n(4,me)}function Ye(I){he=I,n(5,he)}function Pe(I){ce=I,i(n(15,ce))}function Ze(I){ye=I,n(17,ye)}const Ue=I=>He(I,m);function M(I){E=I,n(6,E)}function Z(I){be=I,n(7,be)}function Ce(I){$e=I,n(8,$e)}function De(I){fe=I,n(9,fe)}function ue(I){oe=I,n(10,oe)}function We(I){de=I,n(11,de)}function Me(I){pe=I,n(12,pe)}function ae(I){_e=I,n(16,_e)}function ln(I){we=I,n(13,we)}return t.$$set=I=>{"schedule"in I&&n(0,m=I.schedule),"searchAttributes"in I&&n(30,W=I.searchAttributes),"onConfirm"in I&&n(31,ne=I.onConfirm)},t.$$.update=()=>{t.$$.dirty[0]&16382&&n(18,s=I=>!S||!te||!ge||!me||!ze(he)?!0:I==="interval"?!fe&&!oe&&!de&&!pe:I==="week"?!E.length:I==="month"?!be.length||!$e.length:I==="string"?!we:!1)},[m,S,te,ge,me,he,E,be,$e,fe,oe,de,pe,we,G,ce,_e,ye,s,l,r,b,y,P,X,U,Y,He,Be,je,W,ne,Fe,Qe,Xe,Ve,Ye,Pe,Ze,Ue,M,Z,Ce,De,ue,We,Me,ae,ln]}class Ll extends Ee{constructor(e){super(),Se(this,e,dl,fl,Ie,{schedule:0,searchAttributes:30,onConfirm:31},null,[-1,-1,-1])}}export{Ll as S}; +import{s as Ie,a as Hn,z as cn,h as z,j as F,k as K,f as p,E as vn,H as sn,i as Q,u as Pn,g as qn,e as Ln,D as bn,L as zn,c as tn,A as Fn,m as ee,n as $,y as an,t as le,b as C,l as se,d as D,v as ve,N as L,O as N,o as fn,P as Nn,w as hn,M as Qn}from"./scheduler.C46pS-76.js";import{S as Ee,i as Se,t as k,b as O,g as Le,e as Ne,c as T,a as V,m as A,d as H,f as B}from"./index.dOVbn71B.js";import{w as Un}from"./entry.kylZibtV.js";import{p as Bn}from"./stores.Ds4o9nwd.js";import{I as Te}from"./input.Dizl7Mgk.js";import{c as Kn,T as Rn,a as Jn,b as en}from"./tab.y0H1rcBf.js";import{g as Gn}from"./spread.CgU5AtxT.js";import{t as R}from"./translate.BBe5dcco.js";import{e as Ae}from"./each.C6O0oV7R.js";import{B as Ge}from"./button.hs88FdV4.js";import{m as $n,T as Xn,g as rn,w as wn}from"./time-picker.G0x2sfcZ.js";import{I as Yn}from"./icon.CfkHLDdJ.js";import{S as Zn}from"./schedule-frequency.Bpvyfzre.js";import{S as xn,O as un}from"./option.BuKObSE0.js";import{A as et}from"./alert.nnKn2vnv.js";import{L as nt}from"./link.C_v4aoat.js";import{L as tt}from"./loading.BLsNkl8r.js";import{e as dn,l as lt}from"./schedules.BI2Sbv1C.js";import{d as kn}from"./decode-payload.CR1Tto5x.js";import{m as st,l as it}from"./route-for.B9fTWV7L.js";import{m as yn}from"./workflows.Cse8qlOg.js";import{A as ut}from"./add-search-attributes.Bb3B2Swh.js";import{a as at}from"./atob.ODDrCDK_.js";import{g as rt}from"./encode-payload.DnXS3ERP.js";import{P as ot}from"./payload-decoder.C_mCVVdL.js";import{P as ft,i as dt}from"./payload-input-with-encoding.CjdKAmav.js";function ct(t){let e,n;const s=t[7].default,l=Hn(s,t,t[6],null);let a=[{id:t[0]},{"aria-labelledby":t[1]},{tabindex:"0"},{role:"tabpanel"},t[4]],f={};for(let i=0;in(5,f=_)),d(r),t.$$set=_=>{e=cn(cn({},e),Fn(_)),n(4,a=bn(e,l)),"id"in _&&n(0,r=_.id),"tabId"in _&&n(1,u=_.tabId),"$$scope"in _&&n(6,o=_.$$scope)},t.$$.update=()=>{t.$$.dirty&33&&n(2,s=f===r)},[r,u,s,h,a,f,o,i]}class nn extends Ee{constructor(e){super(),Se(this,e,ht,ct,Ie,{id:0,tabId:1})}}function On(t,e,n){const s=t.slice();s[4]=e[n];const l=s[0].includes(s[4]);return s[5]=l,s}function _t(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function In(t){let e,n;function s(...l){return t[3](t[4],...l)}return e=new Ge({props:{variant:"secondary",class:t[5]&&"bg-interactive-secondary-active",$$slots:{default:[_t]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function mt(t){let e,n,s,l=Ae(t[1]),a=[];for(let i=0;iO(a[i],1,1,()=>{a[i]=null});return{c(){e=z("div"),n=z("div");for(let i=0;io+1);let{daysOfMonth:l}=e;const a=(i,o)=>{i.metaKey?l.includes(o)?l.filter(r=>r!==o):n(0,l=[...l,o]):n(0,l=[o])},f=(i,o)=>a(o,i);return t.$$set=i=>{"daysOfMonth"in i&&n(0,l=i.daysOfMonth)},[l,s,a,f]}class pt extends Ee{constructor(e){super(),Se(this,e,gt,mt,Ie,{daysOfMonth:0})}}function En(t,e,n){const s=t.slice();s[3]=e[n].label,s[4]=e[n].value;const l=s[0].includes(s[4]);return s[5]=l,s}function vt(t){let e=t[3]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Sn(t){let e,n;function s(...l){return t[2](t[4],...l)}return e=new Ge({props:{variant:"secondary",class:t[5]&&"bg-interactive-secondary-active",$$slots:{default:[vt]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[5]&&"bg-interactive-secondary-active"),a&256&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function bt(t){let e,n,s=Ae($n),l=[];for(let f=0;fO(l[f],1,1,()=>{l[f]=null});return{c(){e=z("div");for(let f=0;f{f.metaKey&&i!=="*"?(s.includes("*")&&n(0,s=s.filter(o=>o!=="*")),s.includes(i)?n(0,s=s.filter(o=>o!==i)):n(0,s=[...s,i])):n(0,s=[i])},a=(f,i)=>l(i,f);return t.$$set=f=>{"months"in f&&n(0,s=f.months)},[s,l,a]}class wt extends Ee{constructor(e){super(),Se(this,e,$t,bt,Ie,{months:0})}}function kt(t){let e,n,s=R("schedules.time-view-heading")+"",l,a,f,i=R("schedules.time-view-description")+"",o,r,u,d,h,_,c,v,w,m,W=R("common.based-on-time-preface")+"",ne,q,b;function y(U){t[2](U)}function P(U){t[3](U)}let X={twelveHourClock:!1,includeSeconds:!1};return t[0]!==void 0&&(X.hour=t[0]),t[1]!==void 0&&(X.minute=t[1]),u=new Xn({props:X}),L.push(()=>B(u,"hour",y)),L.push(()=>B(u,"minute",P)),v=new Yn({props:{name:"clock","aria-hidden":"true"}}),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),_=C(),c=z("div"),T(v.$$.fragment),w=C(),m=z("span"),ne=le(W),q=le(" Universal Standard Time (UTC)"),this.h()},l(U){e=F(U,"DIV",{class:!0});var Y=K(e);n=F(Y,"H3",{});var G=K(n);l=se(G,s),G.forEach(p),a=D(Y),f=F(Y,"P",{});var S=K(f);o=se(S,i),S.forEach(p),r=D(Y),V(u.$$.fragment,Y),_=D(Y),c=F(Y,"DIV",{class:!0});var j=K(c);V(v.$$.fragment,j),w=D(j),m=F(j,"SPAN",{class:!0});var ie=K(m);ne=se(ie,W),q=se(ie," Universal Standard Time (UTC)"),ie.forEach(p),j.forEach(p),Y.forEach(p),this.h()},h(){ee(m,"class","text-xs font-normal text-slate-500"),ee(c,"class","flex w-full flex-row items-center gap-2"),ee(e,"class","flex flex-col gap-4")},m(U,Y){Q(U,e,Y),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),$(e,_),$(e,c),A(v,c,null),$(c,w),$(c,m),$(m,ne),$(m,q),b=!0},p(U,[Y]){const G={};!d&&Y&1&&(d=!0,G.hour=U[0],N(()=>d=!1)),!h&&Y&2&&(h=!0,G.minute=U[1],N(()=>h=!1)),u.$set(G)},i(U){b||(k(u.$$.fragment,U),k(v.$$.fragment,U),b=!0)},o(U){O(u.$$.fragment,U),O(v.$$.fragment,U),b=!1},d(U){U&&p(e),H(u),H(v)}}}function yt(t,e,n){let{hour:s=""}=e,{minute:l=""}=e;function a(i){s=i,n(0,s)}function f(i){l=i,n(1,l)}return t.$$set=i=>{"hour"in i&&n(0,s=i.hour),"minute"in i&&n(1,l=i.minute)},[s,l,a,f]}class jn extends Ee{constructor(e){super(),Se(this,e,yt,kt,Ie,{hour:0,minute:1})}}function Ot(t){let e,n,s=R("schedules.recurring-dates-heading")+"",l,a,f,i=R("schedules.recurring-dates-description")+"",o,r,u,d,h,_,c,v,w,m,W,ne,q;function b(S){t[4](S)}let y={};t[0]!==void 0&&(y.daysOfMonth=t[0]),d=new pt({props:y}),L.push(()=>B(d,"daysOfMonth",b));function P(S){t[5](S)}let X={};t[1]!==void 0&&(X.months=t[1]),c=new wt({props:X}),L.push(()=>B(c,"months",P));function U(S){t[6](S)}function Y(S){t[7](S)}let G={};return t[2]!==void 0&&(G.hour=t[2]),t[3]!==void 0&&(G.minute=t[3]),m=new jn({props:G}),L.push(()=>B(m,"hour",U)),L.push(()=>B(m,"minute",Y)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),u=z("div"),T(d.$$.fragment),_=C(),T(c.$$.fragment),w=C(),T(m.$$.fragment),this.h()},l(S){e=F(S,"DIV",{class:!0});var j=K(e);n=F(j,"H3",{});var ie=K(n);l=se(ie,s),ie.forEach(p),a=D(j),f=F(j,"P",{});var x=K(f);o=se(x,i),x.forEach(p),r=D(j),u=F(j,"DIV",{class:!0});var te=K(u);V(d.$$.fragment,te),_=D(te),V(c.$$.fragment,te),te.forEach(p),j.forEach(p),w=D(S),V(m.$$.fragment,S),this.h()},h(){ee(u,"class","flex w-full flex-col gap-4"),ee(e,"class","my-2 flex flex-col gap-4")},m(S,j){Q(S,e,j),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),$(e,u),A(d,u,null),$(u,_),A(c,u,null),Q(S,w,j),A(m,S,j),q=!0},p(S,[j]){const ie={};!h&&j&1&&(h=!0,ie.daysOfMonth=S[0],N(()=>h=!1)),d.$set(ie);const x={};!v&&j&2&&(v=!0,x.months=S[1],N(()=>v=!1)),c.$set(x);const te={};!W&&j&4&&(W=!0,te.hour=S[2],N(()=>W=!1)),!ne&&j&8&&(ne=!0,te.minute=S[3],N(()=>ne=!1)),m.$set(te)},i(S){q||(k(d.$$.fragment,S),k(c.$$.fragment,S),k(m.$$.fragment,S),q=!0)},o(S){O(d.$$.fragment,S),O(c.$$.fragment,S),O(m.$$.fragment,S),q=!1},d(S){S&&(p(e),p(w)),H(d),H(c),H(m,S)}}}function It(t,e,n){let{daysOfMonth:s}=e,{months:l}=e,{hour:a}=e,{minute:f}=e;function i(d){s=d,n(0,s)}function o(d){l=d,n(1,l)}function r(d){a=d,n(2,a)}function u(d){f=d,n(3,f)}return t.$$set=d=>{"daysOfMonth"in d&&n(0,s=d.daysOfMonth),"months"in d&&n(1,l=d.months),"hour"in d&&n(2,a=d.hour),"minute"in d&&n(3,f=d.minute)},[s,l,a,f,i,o,r,u]}class Et extends Ee{constructor(e){super(),Se(this,e,It,Ot,Ie,{daysOfMonth:0,months:1,hour:2,minute:3})}}function Cn(t,e,n){const s=t.slice();s[4]=e[n].label,s[5]=e[n].value;const l=s[0].includes(s[5]);return s[6]=l,s}function Dn(t,e,n){const s=t.slice();s[4]=e[n].label,s[5]=e[n].value;const l=s[0].includes(s[5]);return s[6]=l,s}function St(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Wn(t){let e,n;function s(...l){return t[2](t[5],...l)}return e=new Ge({props:{variant:"secondary",class:t[6]&&"bg-interactive-secondary-active",$$slots:{default:[St]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Ct(t){let e=t[4]+"",n,s;return{c(){n=le(e),s=C()},l(l){n=se(l,e),s=D(l)},m(l,a){Q(l,n,a),Q(l,s,a)},p:ve,d(l){l&&(p(n),p(s))}}}function Mn(t){let e,n;function s(...l){return t[3](t[5],...l)}return e=new Ge({props:{variant:"secondary",class:t[6]&&"bg-interactive-secondary-active",$$slots:{default:[Ct]},$$scope:{ctx:t}}}),e.$on("click",s),{c(){T(e.$$.fragment)},l(l){V(e.$$.fragment,l)},m(l,a){A(e,l,a),n=!0},p(l,a){t=l;const f={};a&1&&(f.class=t[6]&&"bg-interactive-secondary-active"),a&2048&&(f.$$scope={dirty:a,ctx:t}),e.$set(f)},i(l){n||(k(e.$$.fragment,l),n=!0)},o(l){O(e.$$.fragment,l),n=!1},d(l){H(e,l)}}}function Dt(t){let e,n,s,l,a,f=Ae(rn),i=[];for(let h=0;hO(i[h],1,1,()=>{i[h]=null});let r=Ae(wn),u=[];for(let h=0;hO(u[h],1,1,()=>{u[h]=null});return{c(){e=z("div"),n=z("div");for(let h=0;h{i.metaKey?(rn.find(r=>r.value===o)?n(0,s=[o]):s.find(r=>rn.find(u=>u.value===r))&&n(0,s=[o]),s.includes(o)?s.filter(r=>r!==o):n(0,s=[...s,o])):n(0,s=[o])},a=(i,o)=>l(o,i),f=(i,o)=>l(o,i);return t.$$set=i=>{"daysOfWeek"in i&&n(0,s=i.daysOfWeek)},[s,l,a,f]}class Mt extends Ee{constructor(e){super(),Se(this,e,Wt,Dt,Ie,{daysOfWeek:0})}}function Tt(t){let e,n,s=R("schedules.recurring-days-heading")+"",l,a,f,i=R("schedules.recurring-days-description")+"",o,r,u,d,h,_,c,v,w;function m(y){t[3](y)}let W={};t[0]!==void 0&&(W.daysOfWeek=t[0]),u=new Mt({props:W}),L.push(()=>B(u,"daysOfWeek",m));function ne(y){t[4](y)}function q(y){t[5](y)}let b={};return t[1]!==void 0&&(b.hour=t[1]),t[2]!==void 0&&(b.minute=t[2]),_=new jn({props:b}),L.push(()=>B(_,"hour",ne)),L.push(()=>B(_,"minute",q)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),h=C(),T(_.$$.fragment),this.h()},l(y){e=F(y,"DIV",{class:!0});var P=K(e);n=F(P,"H3",{});var X=K(n);l=se(X,s),X.forEach(p),a=D(P),f=F(P,"P",{});var U=K(f);o=se(U,i),U.forEach(p),r=D(P),V(u.$$.fragment,P),P.forEach(p),h=D(y),V(_.$$.fragment,y),this.h()},h(){ee(e,"class","my-2 flex flex-col gap-4")},m(y,P){Q(y,e,P),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),Q(y,h,P),A(_,y,P),w=!0},p(y,[P]){const X={};!d&&P&1&&(d=!0,X.daysOfWeek=y[0],N(()=>d=!1)),u.$set(X);const U={};!c&&P&2&&(c=!0,U.hour=y[1],N(()=>c=!1)),!v&&P&4&&(v=!0,U.minute=y[2],N(()=>v=!1)),_.$set(U)},i(y){w||(k(u.$$.fragment,y),k(_.$$.fragment,y),w=!0)},o(y){O(u.$$.fragment,y),O(_.$$.fragment,y),w=!1},d(y){y&&(p(e),p(h)),H(u),H(_,y)}}}function Vt(t,e,n){let{daysOfWeek:s}=e,{hour:l}=e,{minute:a}=e;function f(r){s=r,n(0,s)}function i(r){l=r,n(1,l)}function o(r){a=r,n(2,a)}return t.$$set=r=>{"daysOfWeek"in r&&n(0,s=r.daysOfWeek),"hour"in r&&n(1,l=r.hour),"minute"in r&&n(2,a=r.minute)},[s,l,a,f,i,o]}class At extends Ee{constructor(e){super(),Se(this,e,Vt,Tt,Ie,{daysOfWeek:0,hour:1,minute:2})}}function Ht(t){let e=R("common.days")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Pt(t){let e=R("common.hours-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function qt(t){let e=R("common.minutes-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Lt(t){let e=R("common.seconds-abbreviated")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function Nt(t){let e,n,s,l,a,f,i,o;return e=new un({props:{value:"days",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),s=new un({props:{value:"hrs",$$slots:{default:[Pt]},$$scope:{ctx:t}}}),a=new un({props:{value:"min",$$slots:{default:[qt]},$$scope:{ctx:t}}}),i=new un({props:{value:"sec",$$slots:{default:[Lt]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment),n=C(),T(s.$$.fragment),l=C(),T(a.$$.fragment),f=C(),T(i.$$.fragment)},l(r){V(e.$$.fragment,r),n=D(r),V(s.$$.fragment,r),l=D(r),V(a.$$.fragment,r),f=D(r),V(i.$$.fragment,r)},m(r,u){A(e,r,u),Q(r,n,u),A(s,r,u),Q(r,l,u),A(a,r,u),Q(r,f,u),A(i,r,u),o=!0},p(r,u){const d={};u&16384&&(d.$$scope={dirty:u,ctx:r}),e.$set(d);const h={};u&16384&&(h.$$scope={dirty:u,ctx:r}),s.$set(h);const _={};u&16384&&(_.$$scope={dirty:u,ctx:r}),a.$set(_);const c={};u&16384&&(c.$$scope={dirty:u,ctx:r}),i.$set(c)},i(r){o||(k(e.$$.fragment,r),k(s.$$.fragment,r),k(a.$$.fragment,r),k(i.$$.fragment,r),o=!0)},o(r){O(e.$$.fragment,r),O(s.$$.fragment,r),O(a.$$.fragment,r),O(i.$$.fragment,r),o=!1},d(r){r&&(p(n),p(l),p(f)),H(e,r),H(s,r),H(a,r),H(i,r)}}}function Bt(t){let e,n,s=R("schedules.interval-view-heading")+"",l,a,f,i=R("schedules.interval-view-description")+"",o,r,u,d,h,_,c,v=":",w,m,W,ne,q,b=":",y,P,X,U,Y,G=":",S,j,ie,x,te,ge=R("schedules.offset-heading")+"",me,he,ce,E=R("schedules.offset-description")+"",be,$e,fe,oe,de,pe,_e,we,ye;function He(M){t[8](M)}let Be={id:"days",class:"w-28",label:R("common.days"),labelHidden:!0,placeholder:"000",suffix:R("common.days"),hideCount:!0,maxLength:3,error:t[7](t[0])};t[0]!==void 0&&(Be.value=t[0]),d=new Te({props:Be}),L.push(()=>B(d,"value",He));function je(M){t[9](M)}let ze={id:"hour-interval",class:"w-24",label:R("common.hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.hours-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[1])};t[1]!==void 0&&(ze.value=t[1]),m=new Te({props:ze}),L.push(()=>B(m,"value",je));function Fe(M){t[10](M)}let Qe={id:"minute-interval",class:"w-24",label:R("common.minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.minutes-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[2])};t[2]!==void 0&&(Qe.value=t[2]),P=new Te({props:Qe}),L.push(()=>B(P,"value",Fe));function Xe(M){t[11](M)}let Ve={id:"second",class:"w-24",label:R("common.seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:R("common.seconds-abbreviated"),hideCount:!0,maxLength:2,error:t[7](t[3])};t[3]!==void 0&&(Ve.value=t[3]),j=new Te({props:Ve}),L.push(()=>B(j,"value",Xe));function Ye(M){t[12](M)}let Pe={id:"phase",class:"w-28",label:R("schedules.offset-heading"),labelHidden:!0,placeholder:"00",maxLength:3,hideCount:!0,error:t[7](t[4])};t[5]!==void 0&&(Pe.value=t[5]),oe=new Te({props:Pe}),L.push(()=>B(oe,"value",Ye));function Ze(M){t[13](M)}let Ue={label:R("schedules.offset-unit"),labelHidden:!0,id:"phase-unit",$$slots:{default:[Nt]},$$scope:{ctx:t}};return t[6]!==void 0&&(Ue.value=t[6]),_e=new xn({props:Ue}),L.push(()=>B(_e,"value",Ze)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),u=z("div"),T(d.$$.fragment),_=C(),c=z("div"),c.textContent=v,w=C(),T(m.$$.fragment),ne=C(),q=z("div"),q.textContent=b,y=C(),T(P.$$.fragment),U=C(),Y=z("div"),Y.textContent=G,S=C(),T(j.$$.fragment),x=C(),te=z("h3"),me=le(ge),he=C(),ce=z("p"),be=le(E),$e=C(),fe=z("div"),T(oe.$$.fragment),pe=C(),T(_e.$$.fragment),this.h()},l(M){e=F(M,"DIV",{class:!0});var Z=K(e);n=F(Z,"H3",{});var Ce=K(n);l=se(Ce,s),Ce.forEach(p),a=D(Z),f=F(Z,"P",{});var De=K(f);o=se(De,i),De.forEach(p),r=D(Z),u=F(Z,"DIV",{class:!0});var ue=K(u);V(d.$$.fragment,ue),_=D(ue),c=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(c)!=="svelte-qa0xbj"&&(c.textContent=v),w=D(ue),V(m.$$.fragment,ue),ne=D(ue),q=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(q)!=="svelte-qa0xbj"&&(q.textContent=b),y=D(ue),V(P.$$.fragment,ue),U=D(ue),Y=F(ue,"DIV",{class:!0,"data-svelte-h":!0}),fn(Y)!=="svelte-qa0xbj"&&(Y.textContent=G),S=D(ue),V(j.$$.fragment,ue),ue.forEach(p),x=D(Z),te=F(Z,"H3",{class:!0});var We=K(te);me=se(We,ge),We.forEach(p),he=D(Z),ce=F(Z,"P",{});var Me=K(ce);be=se(Me,E),Me.forEach(p),$e=D(Z),fe=F(Z,"DIV",{class:!0});var ae=K(fe);V(oe.$$.fragment,ae),pe=D(ae),V(_e.$$.fragment,ae),ae.forEach(p),Z.forEach(p),this.h()},h(){ee(c,"class","hidden lg:block"),ee(q,"class","hidden lg:block"),ee(Y,"class","hidden lg:block"),ee(u,"class","flex flex-col items-center gap-2 lg:flex-row"),ee(te,"class","mt-4"),ee(fe,"class","flex w-48 gap-2"),ee(e,"class","my-2 flex flex-col gap-4")},m(M,Z){Q(M,e,Z),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),$(e,u),A(d,u,null),$(u,_),$(u,c),$(u,w),A(m,u,null),$(u,ne),$(u,q),$(u,y),A(P,u,null),$(u,U),$(u,Y),$(u,S),A(j,u,null),$(e,x),$(e,te),$(te,me),$(e,he),$(e,ce),$(ce,be),$(e,$e),$(e,fe),A(oe,fe,null),$(fe,pe),A(_e,fe,null),ye=!0},p(M,[Z]){const Ce={};Z&1&&(Ce.error=M[7](M[0])),!h&&Z&1&&(h=!0,Ce.value=M[0],N(()=>h=!1)),d.$set(Ce);const De={};Z&2&&(De.error=M[7](M[1])),!W&&Z&2&&(W=!0,De.value=M[1],N(()=>W=!1)),m.$set(De);const ue={};Z&4&&(ue.error=M[7](M[2])),!X&&Z&4&&(X=!0,ue.value=M[2],N(()=>X=!1)),P.$set(ue);const We={};Z&8&&(We.error=M[7](M[3])),!ie&&Z&8&&(ie=!0,We.value=M[3],N(()=>ie=!1)),j.$set(We);const Me={};Z&16&&(Me.error=M[7](M[4])),!de&&Z&32&&(de=!0,Me.value=M[5],N(()=>de=!1)),oe.$set(Me);const ae={};Z&16384&&(ae.$$scope={dirty:Z,ctx:M}),!we&&Z&64&&(we=!0,ae.value=M[6],N(()=>we=!1)),_e.$set(ae)},i(M){ye||(k(d.$$.fragment,M),k(m.$$.fragment,M),k(P.$$.fragment,M),k(j.$$.fragment,M),k(oe.$$.fragment,M),k(_e.$$.fragment,M),ye=!0)},o(M){O(d.$$.fragment,M),O(m.$$.fragment,M),O(P.$$.fragment,M),O(j.$$.fragment,M),O(oe.$$.fragment,M),O(_e.$$.fragment,M),ye=!1},d(M){M&&p(e),H(d),H(m),H(P),H(j),H(oe),H(_e)}}}function jt(t,e,n){let{days:s=""}=e,{hour:l=""}=e,{minute:a=""}=e,{second:f=""}=e,{phase:i=""}=e,o="",r="min";const u=m=>m?isNaN(parseInt(m)):!1;function d(m){s=m,n(0,s)}function h(m){l=m,n(1,l)}function _(m){a=m,n(2,a)}function c(m){f=m,n(3,f)}function v(m){o=m,n(5,o)}function w(m){r=m,n(6,r)}return t.$$set=m=>{"days"in m&&n(0,s=m.days),"hour"in m&&n(1,l=m.hour),"minute"in m&&n(2,a=m.minute),"second"in m&&n(3,f=m.second),"phase"in m&&n(4,i=m.phase)},t.$$.update=()=>{t.$$.dirty&96&&o&&(r==="days"?n(4,i=(parseInt(o)*60*60*24).toString()+"s"):r==="hrs"?n(4,i=(parseInt(o)*60*60).toString()+"s"):r==="min"?n(4,i=(parseInt(o)*60).toString()+"s"):r==="sec"&&n(4,i=parseInt(o).toString()+"s"))},[s,l,a,f,i,o,r,u,d,h,_,c,v,w]}class zt extends Ee{constructor(e){super(),Se(this,e,jt,Bt,Ie,{days:0,hour:1,minute:2,second:3,phase:4})}}const Ft=t=>({preset:t[0]&1024}),Tn=t=>({preset:t[10]});function Vn(t){let e,n;return e=new en({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:t[12]}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1024&&(a.onClick=s[12]),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Qt(t){let e,n,s,l,a,f,i,o,r,u=t[9]&&Vn(t);return n=new en({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:t[13]}}),l=new en({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:t[14]}}),f=new en({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:t[15]}}),o=new en({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:t[16]}}),{c(){u&&u.c(),e=C(),T(n.$$.fragment),s=C(),T(l.$$.fragment),a=C(),T(f.$$.fragment),i=C(),T(o.$$.fragment)},l(d){u&&u.l(d),e=D(d),V(n.$$.fragment,d),s=D(d),V(l.$$.fragment,d),a=D(d),V(f.$$.fragment,d),i=D(d),V(o.$$.fragment,d)},m(d,h){u&&u.m(d,h),Q(d,e,h),A(n,d,h),Q(d,s,h),A(l,d,h),Q(d,a,h),A(f,d,h),Q(d,i,h),A(o,d,h),r=!0},p(d,h){d[9]?u?(u.p(d,h),h[0]&512&&k(u,1)):(u=Vn(d),u.c(),k(u,1),u.m(e.parentNode,e)):u&&(Le(),O(u,1,1,()=>{u=null}),Ne());const _={};h[0]&1024&&(_.onClick=d[13]),n.$set(_);const c={};h[0]&1024&&(c.onClick=d[14]),l.$set(c);const v={};h[0]&1024&&(v.onClick=d[15]),f.$set(v);const w={};h[0]&1024&&(w.onClick=d[16]),o.$set(w)},i(d){r||(k(u),k(n.$$.fragment,d),k(l.$$.fragment,d),k(f.$$.fragment,d),k(o.$$.fragment,d),r=!0)},o(d){O(u),O(n.$$.fragment,d),O(l.$$.fragment,d),O(f.$$.fragment,d),O(o.$$.fragment,d),r=!1},d(d){d&&(p(e),p(s),p(a),p(i)),u&&u.d(d),H(n,d),H(l,d),H(f,d),H(o,d)}}}function An(t){let e,n;return e=new nn({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Ut]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1073742336&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Ut(t){var s,l,a,f,i,o,r,u;let e,n;return e=new Zn({props:{calendar:(a=(l=(s=t[9])==null?void 0:s.spec)==null?void 0:l.structuredCalendar)==null?void 0:a[0],interval:(o=(i=(f=t[9])==null?void 0:f.spec)==null?void 0:i.interval)==null?void 0:o[0],timezoneName:(u=(r=t[9])==null?void 0:r.spec)==null?void 0:u.timezoneName}}),{c(){T(e.$$.fragment)},l(d){V(e.$$.fragment,d)},m(d,h){A(e,d,h),n=!0},p(d,h){var c,v,w,m,W,ne,q,b;const _={};h[0]&512&&(_.calendar=(w=(v=(c=d[9])==null?void 0:c.spec)==null?void 0:v.structuredCalendar)==null?void 0:w[0]),h[0]&512&&(_.interval=(ne=(W=(m=d[9])==null?void 0:m.spec)==null?void 0:W.interval)==null?void 0:ne[0]),h[0]&512&&(_.timezoneName=(b=(q=d[9])==null?void 0:q.spec)==null?void 0:b.timezoneName),e.$set(_)},i(d){n||(k(e.$$.fragment,d),n=!0)},o(d){O(e.$$.fragment,d),n=!1},d(d){H(e,d)}}}function Kt(t){let e,n,s,l,a,f,i;function o(c){t[17](c)}function r(c){t[18](c)}function u(c){t[19](c)}function d(c){t[20](c)}function h(c){t[21](c)}let _={};return t[3]!==void 0&&(_.days=t[3]),t[4]!==void 0&&(_.hour=t[4]),t[5]!==void 0&&(_.minute=t[5]),t[6]!==void 0&&(_.second=t[6]),t[7]!==void 0&&(_.phase=t[7]),e=new zt({props:_}),L.push(()=>B(e,"days",o)),L.push(()=>B(e,"hour",r)),L.push(()=>B(e,"minute",u)),L.push(()=>B(e,"second",d)),L.push(()=>B(e,"phase",h)),{c(){T(e.$$.fragment)},l(c){V(e.$$.fragment,c)},m(c,v){A(e,c,v),i=!0},p(c,v){const w={};!n&&v[0]&8&&(n=!0,w.days=c[3],N(()=>n=!1)),!s&&v[0]&16&&(s=!0,w.hour=c[4],N(()=>s=!1)),!l&&v[0]&32&&(l=!0,w.minute=c[5],N(()=>l=!1)),!a&&v[0]&64&&(a=!0,w.second=c[6],N(()=>a=!1)),!f&&v[0]&128&&(f=!0,w.phase=c[7],N(()=>f=!1)),e.$set(w)},i(c){i||(k(e.$$.fragment,c),i=!0)},o(c){O(e.$$.fragment,c),i=!1},d(c){H(e,c)}}}function Rt(t){let e,n,s,l,a;function f(u){t[22](u)}function i(u){t[23](u)}function o(u){t[24](u)}let r={};return t[0]!==void 0&&(r.daysOfWeek=t[0]),t[4]!==void 0&&(r.hour=t[4]),t[5]!==void 0&&(r.minute=t[5]),e=new At({props:r}),L.push(()=>B(e,"daysOfWeek",f)),L.push(()=>B(e,"hour",i)),L.push(()=>B(e,"minute",o)),{c(){T(e.$$.fragment)},l(u){V(e.$$.fragment,u)},m(u,d){A(e,u,d),a=!0},p(u,d){const h={};!n&&d[0]&1&&(n=!0,h.daysOfWeek=u[0],N(()=>n=!1)),!s&&d[0]&16&&(s=!0,h.hour=u[4],N(()=>s=!1)),!l&&d[0]&32&&(l=!0,h.minute=u[5],N(()=>l=!1)),e.$set(h)},i(u){a||(k(e.$$.fragment,u),a=!0)},o(u){O(e.$$.fragment,u),a=!1},d(u){H(e,u)}}}function Jt(t){let e,n,s,l,a,f;function i(h){t[25](h)}function o(h){t[26](h)}function r(h){t[27](h)}function u(h){t[28](h)}let d={};return t[1]!==void 0&&(d.daysOfMonth=t[1]),t[2]!==void 0&&(d.months=t[2]),t[4]!==void 0&&(d.hour=t[4]),t[5]!==void 0&&(d.minute=t[5]),e=new Et({props:d}),L.push(()=>B(e,"daysOfMonth",i)),L.push(()=>B(e,"months",o)),L.push(()=>B(e,"hour",r)),L.push(()=>B(e,"minute",u)),{c(){T(e.$$.fragment)},l(h){V(e.$$.fragment,h)},m(h,_){A(e,h,_),f=!0},p(h,_){const c={};!n&&_[0]&2&&(n=!0,c.daysOfMonth=h[1],N(()=>n=!1)),!s&&_[0]&4&&(s=!0,c.months=h[2],N(()=>s=!1)),!l&&_[0]&16&&(l=!0,c.hour=h[4],N(()=>l=!1)),!a&&_[0]&32&&(a=!0,c.minute=h[5],N(()=>a=!1)),e.$set(c)},i(h){f||(k(e.$$.fragment,h),f=!0)},o(h){O(e.$$.fragment,h),f=!1},d(h){H(e,h)}}}function Gt(t){let e,n,s=R("schedules.cron-view-title")+"",l,a,f,i=R("schedules.cron-view-description")+"",o,r,u,d,h;function _(v){t[29](v)}let c={label:R("schedules.cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return t[8]!==void 0&&(c.value=t[8]),u=new Te({props:c}),L.push(()=>B(u,"value",_)),{c(){e=z("div"),n=z("h3"),l=le(s),a=C(),f=z("p"),o=le(i),r=C(),T(u.$$.fragment),this.h()},l(v){e=F(v,"DIV",{class:!0});var w=K(e);n=F(w,"H3",{});var m=K(n);l=se(m,s),m.forEach(p),a=D(w),f=F(w,"P",{});var W=K(f);o=se(W,i),W.forEach(p),r=D(w),V(u.$$.fragment,w),w.forEach(p),this.h()},h(){ee(e,"class","my-2 flex w-full flex-col gap-4")},m(v,w){Q(v,e,w),$(e,n),$(n,l),$(e,a),$(e,f),$(f,o),$(e,r),A(u,e,null),h=!0},p(v,w){const m={};!d&&w[0]&256&&(d=!0,m.value=v[8],N(()=>d=!1)),u.$set(m)},i(v){h||(k(u.$$.fragment,v),h=!0)},o(v){O(u.$$.fragment,v),h=!1},d(v){v&&p(e),H(u)}}}function Xt(t){let e,n=R("schedules.schedule-spec")+"",s,l,a,f,i,o,r,u,d,h,_,c,v,w,m;a=new Jn({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Qt]},$$scope:{ctx:t}}});let W=t[9]&&An(t);r=new nn({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Kt]},$$scope:{ctx:t}}}),d=new nn({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Rt]},$$scope:{ctx:t}}}),_=new nn({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Jt]},$$scope:{ctx:t}}}),v=new nn({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Gt]},$$scope:{ctx:t}}});const ne=t[11].default,q=Hn(ne,t,t[30],Tn);return{c(){e=z("h2"),s=le(n),l=C(),T(a.$$.fragment),f=C(),i=z("div"),W&&W.c(),o=C(),T(r.$$.fragment),u=C(),T(d.$$.fragment),h=C(),T(_.$$.fragment),c=C(),T(v.$$.fragment),w=C(),q&&q.c(),this.h()},l(b){e=F(b,"H2",{class:!0});var y=K(e);s=se(y,n),y.forEach(p),l=D(b),V(a.$$.fragment,b),f=D(b),i=F(b,"DIV",{class:!0});var P=K(i);W&&W.l(P),o=D(P),V(r.$$.fragment,P),u=D(P),V(d.$$.fragment,P),h=D(P),V(_.$$.fragment,P),c=D(P),V(v.$$.fragment,P),P.forEach(p),w=D(b),q&&q.l(b),this.h()},h(){ee(e,"class","mb-4"),ee(i,"class","mt-4 flex w-full flex-wrap gap-6")},m(b,y){Q(b,e,y),$(e,s),Q(b,l,y),A(a,b,y),Q(b,f,y),Q(b,i,y),W&&W.m(i,null),$(i,o),A(r,i,null),$(i,u),A(d,i,null),$(i,h),A(_,i,null),$(i,c),A(v,i,null),Q(b,w,y),q&&q.m(b,y),m=!0},p(b,y){const P={};y[0]&1073743360&&(P.$$scope={dirty:y,ctx:b}),a.$set(P),b[9]?W?(W.p(b,y),y[0]&512&&k(W,1)):(W=An(b),W.c(),k(W,1),W.m(i,o)):W&&(Le(),O(W,1,1,()=>{W=null}),Ne());const X={};y[0]&1073742072&&(X.$$scope={dirty:y,ctx:b}),r.$set(X);const U={};y[0]&1073741873&&(U.$$scope={dirty:y,ctx:b}),d.$set(U);const Y={};y[0]&1073741878&&(Y.$$scope={dirty:y,ctx:b}),_.$set(Y);const G={};y[0]&1073742080&&(G.$$scope={dirty:y,ctx:b}),v.$set(G),q&&q.p&&(!m||y[0]&1073742848)&&Pn(q,ne,b,b[30],m?Ln(ne,b[30],y,Ft):qn(b[30]),Tn)},i(b){m||(k(a.$$.fragment,b),k(W),k(r.$$.fragment,b),k(d.$$.fragment,b),k(_.$$.fragment,b),k(v.$$.fragment,b),k(q,b),m=!0)},o(b){O(a.$$.fragment,b),O(W),O(r.$$.fragment,b),O(d.$$.fragment,b),O(_.$$.fragment,b),O(v.$$.fragment,b),O(q,b),m=!1},d(b){b&&(p(e),p(l),p(f),p(i),p(w)),H(a,b),W&&W.d(),H(r),H(d),H(_),H(v),q&&q.d(b)}}}function Yt(t){let e,n;return e=new Rn({props:{class:"mt-8 w-full",$$slots:{default:[Xt]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p(s,l){const a={};l[0]&1073743871&&(a.$$scope={dirty:l,ctx:s}),e.$set(a)},i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function Zt(t,e,n){let s;tn(t,Bn,E=>n(31,s=E));let{$$slots:l={},$$scope:a}=e,i=s.params.schedule?"existing":"interval",{schedule:o=null}=e,{daysOfWeek:r}=e,{daysOfMonth:u}=e,{months:d}=e,{days:h}=e,{hour:_}=e,{minute:c}=e,{second:v}=e,{phase:w}=e,{cronString:m}=e;const W=()=>{n(0,r=[]),n(1,u=[]),n(2,d=[]),n(3,h=""),n(4,_=""),n(5,c=""),n(6,v=""),n(7,w=""),n(8,m="")},ne=()=>n(10,i="existing"),q=()=>n(10,i="interval"),b=()=>n(10,i="week"),y=()=>n(10,i="month"),P=()=>n(10,i="string");function X(E){h=E,n(3,h)}function U(E){_=E,n(4,_)}function Y(E){c=E,n(5,c)}function G(E){v=E,n(6,v)}function S(E){w=E,n(7,w)}function j(E){r=E,n(0,r)}function ie(E){_=E,n(4,_)}function x(E){c=E,n(5,c)}function te(E){u=E,n(1,u)}function ge(E){d=E,n(2,d)}function me(E){_=E,n(4,_)}function he(E){c=E,n(5,c)}function ce(E){m=E,n(8,m)}return t.$$set=E=>{"schedule"in E&&n(9,o=E.schedule),"daysOfWeek"in E&&n(0,r=E.daysOfWeek),"daysOfMonth"in E&&n(1,u=E.daysOfMonth),"months"in E&&n(2,d=E.months),"days"in E&&n(3,h=E.days),"hour"in E&&n(4,_=E.hour),"minute"in E&&n(5,c=E.minute),"second"in E&&n(6,v=E.second),"phase"in E&&n(7,w=E.phase),"cronString"in E&&n(8,m=E.cronString),"$$scope"in E&&n(30,a=E.$$scope)},W(),[r,u,d,h,_,c,v,w,m,o,i,l,ne,q,b,y,P,X,U,Y,G,S,j,ie,x,te,ge,me,he,ce,a]}class xt extends Ee{constructor(e){super(),Se(this,e,Zt,Yt,Ie,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function el(t){let e,n,s,l,a;function f(u){t[5](u)}function i(u){t[6](u)}function o(u){t[7](u)}let r={id:"schedule-payload-input"};return t[0]!==void 0&&(r.input=t[0]),t[1]!==void 0&&(r.encoding=t[1]),t[3]!==void 0&&(r.loading=t[3]),e=new ft({props:r}),L.push(()=>B(e,"input",f)),L.push(()=>B(e,"encoding",i)),L.push(()=>B(e,"loading",o)),{c(){T(e.$$.fragment)},l(u){V(e.$$.fragment,u)},m(u,d){A(e,u,d),a=!0},p(u,d){const h={};!n&&d&1&&(n=!0,h.input=u[0],N(()=>n=!1)),!s&&d&2&&(s=!0,h.encoding=u[1],N(()=>s=!1)),!l&&d&8&&(l=!0,h.loading=u[3],N(()=>l=!1)),e.$set(h)},i(u){a||(k(e.$$.fragment,u),a=!0)},o(u){O(e.$$.fragment,u),a=!1},d(u){H(e,u)}}}function nl(t){let e,n,s;return n=new ot({props:{value:t[2],key:"payloads",onDecode:t[4],$$slots:{default:[el]},$$scope:{ctx:t}}}),{c(){e=z("div"),T(n.$$.fragment),this.h()},l(l){e=F(l,"DIV",{class:!0});var a=K(e);V(n.$$.fragment,a),a.forEach(p),this.h()},h(){ee(e,"class","flex flex-col gap-1")},m(l,a){Q(l,e,a),A(n,e,null),s=!0},p(l,[a]){const f={};a&4&&(f.value=l[2]),a&523&&(f.$$scope={dirty:a,ctx:l}),n.$set(f)},i(l){s||(k(n.$$.fragment,l),s=!0)},o(l){O(n.$$.fragment,l),s=!1},d(l){l&&p(e),H(n)}}}function tl(t,e,n){let s,l=ve,a=()=>(l(),l=Nn(i,c=>n(8,s=c)),i);t.$$.on_destroy.push(()=>l());let{input:f}=e,{encoding:i}=e;a();let{payloads:o}=e,r=!0;const u=c=>{var v,w,m;n(0,f=rt(c));const W=at(String((m=(w=(v=o==null?void 0:o.payloads[0])===null||v===void 0?void 0:v.metadata)===null||w===void 0?void 0:w.encoding)!==null&&m!==void 0?m:"json/plain"));dt(W)&&hn(i,s=W,s),n(3,r=!1)};function d(c){f=c,n(0,f)}function h(c){i=c,a(n(1,i))}function _(c){r=c,n(3,r)}return t.$$set=c=>{"input"in c&&n(0,f=c.input),"encoding"in c&&a(n(1,i=c.encoding)),"payloads"in c&&n(2,o=c.payloads)},[f,i,o,r,u,d,h,_]}class ll extends Ee{constructor(e){super(),Se(this,e,tl,nl,Ie,{input:0,encoding:1,payloads:2})}}function sl(t){var ln,I,Oe;let e,n,s,l,a,f,i,o,r,u,d,h,_,c,v,w,m,W,ne,q,b,y,P,X,U,Y,G,S,j,ie,x,te,ge,me,he,ce,E,be,$e,fe,oe,de,pe;n=new nt({props:{href:t[25],icon:"chevron-left",$$slots:{default:[ul]},$$scope:{ctx:t}}});function _e(g){t[32](g)}let we={id:"name",label:R("schedules.name-label"),error:t[14].name,maxLength:232,disabled:!!t[21],required:!0};t[1]!==void 0&&(we.value=t[1]),r=new Te({props:we}),L.push(()=>B(r,"value",_e)),r.$on("input",t[28]),r.$on("blur",t[29]);function ye(g){t[33](g)}let He={id:"workflowType",label:R("schedules.workflow-type-label"),error:t[14].workflowType,required:!0};t[2]!==void 0&&(He.value=t[2]),_=new Te({props:He}),L.push(()=>B(_,"value",ye)),_.$on("input",t[28]),_.$on("blur",t[29]);function Be(g){t[34](g)}let je={id:"workflowId",label:R("schedules.workflow-id-label"),error:t[14].workflowId,required:!0};t[3]!==void 0&&(je.value=t[3]),m=new Te({props:je}),L.push(()=>B(m,"value",Be)),m.$on("input",t[28]),m.$on("blur",t[29]);function ze(g){t[35](g)}let Fe={id:"taskQueue",label:R("schedules.task-queue-label"),error:t[14].taskQueue,required:!0};t[4]!==void 0&&(Fe.value=t[4]),b=new Te({props:Fe}),L.push(()=>B(b,"value",ze)),b.$on("input",t[28]),b.$on("blur",t[29]);function Qe(g){t[36](g)}function Xe(g){t[37](g)}let Ve={payloads:(Oe=(I=(ln=t[0])==null?void 0:ln.action)==null?void 0:I.startWorkflow)==null?void 0:Oe.input};t[5]!==void 0&&(Ve.input=t[5]),t[15]!==void 0&&(Ve.encoding=t[15]),X=new ll({props:Ve}),L.push(()=>B(X,"input",Qe)),L.push(()=>B(X,"encoding",Xe));function Ye(g){t[38](g)}let Pe={class:"w-full"};t[17]!==void 0&&(Pe.attributesToAdd=t[17]),S=new ut({props:Pe}),L.push(()=>B(S,"attributesToAdd",Ye));function Ze(g){t[40](g)}function Ue(g){t[41](g)}function M(g){t[42](g)}function Z(g){t[43](g)}function Ce(g){t[44](g)}function De(g){t[45](g)}function ue(g){t[46](g)}function We(g){t[47](g)}function Me(g){t[48](g)}let ae={schedule:t[0],$$slots:{default:[ol,({preset:g})=>({63:g}),({preset:g})=>[0,0,g?2:0]]},$$scope:{ctx:t}};return t[6]!==void 0&&(ae.daysOfWeek=t[6]),t[7]!==void 0&&(ae.daysOfMonth=t[7]),t[8]!==void 0&&(ae.months=t[8]),t[9]!==void 0&&(ae.days=t[9]),t[10]!==void 0&&(ae.hour=t[10]),t[11]!==void 0&&(ae.minute=t[11]),t[12]!==void 0&&(ae.second=t[12]),t[16]!==void 0&&(ae.phase=t[16]),t[13]!==void 0&&(ae.cronString=t[13]),x=new xt({props:ae}),L.push(()=>B(x,"daysOfWeek",Ze)),L.push(()=>B(x,"daysOfMonth",Ue)),L.push(()=>B(x,"months",M)),L.push(()=>B(x,"days",Z)),L.push(()=>B(x,"hour",Ce)),L.push(()=>B(x,"minute",De)),L.push(()=>B(x,"second",ue)),L.push(()=>B(x,"phase",We)),L.push(()=>B(x,"cronString",Me)),de=new et({props:{intent:"error",title:t[19],hidden:!t[19]}}),{c(){e=z("header"),T(n.$$.fragment),s=C(),l=z("h1"),a=le(t[22]),f=C(),i=z("form"),o=z("div"),T(r.$$.fragment),d=C(),h=z("div"),T(_.$$.fragment),v=C(),w=z("div"),T(m.$$.fragment),ne=C(),q=z("div"),T(b.$$.fragment),P=C(),T(X.$$.fragment),G=C(),T(S.$$.fragment),ie=C(),T(x.$$.fragment),oe=C(),T(de.$$.fragment),this.h()},l(g){e=F(g,"HEADER",{class:!0});var J=K(e);V(n.$$.fragment,J),s=D(J),l=F(J,"H1",{});var xe=K(l);a=se(xe,t[22]),xe.forEach(p),J.forEach(p),f=D(g),i=F(g,"FORM",{class:!0});var re=K(i);o=F(re,"DIV",{class:!0});var Ke=K(o);V(r.$$.fragment,Ke),Ke.forEach(p),d=D(re),h=F(re,"DIV",{class:!0});var Re=K(h);V(_.$$.fragment,Re),Re.forEach(p),v=D(re),w=F(re,"DIV",{class:!0});var Je=K(w);V(m.$$.fragment,Je),Je.forEach(p),ne=D(re),q=F(re,"DIV",{class:!0});var qe=K(q);V(b.$$.fragment,qe),qe.forEach(p),P=D(re),V(X.$$.fragment,re),G=D(re),V(S.$$.fragment,re),ie=D(re),V(x.$$.fragment,re),oe=D(re),V(de.$$.fragment,re),re.forEach(p),this.h()},h(){ee(e,"class","mb-12 flex flex-col gap-4"),ee(o,"class","w-full"),ee(h,"class","w-full"),ee(w,"class","w-full"),ee(q,"class","w-full"),ee(i,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(g,J){Q(g,e,J),A(n,e,null),$(e,s),$(e,l),$(l,a),Q(g,f,J),Q(g,i,J),$(i,o),A(r,o,null),$(i,d),$(i,h),A(_,h,null),$(i,v),$(i,w),A(m,w,null),$(i,ne),$(i,q),A(b,q,null),$(i,P),A(X,i,null),$(i,G),A(S,i,null),$(i,ie),A(x,i,null),$(i,oe),A(de,i,null),pe=!0},p(g,J){var mn,gn,pn;const xe={};J[2]&4&&(xe.$$scope={dirty:J,ctx:g}),n.$set(xe);const re={};J[0]&16384&&(re.error=g[14].name),!u&&J[0]&2&&(u=!0,re.value=g[1],N(()=>u=!1)),r.$set(re);const Ke={};J[0]&16384&&(Ke.error=g[14].workflowType),!c&&J[0]&4&&(c=!0,Ke.value=g[2],N(()=>c=!1)),_.$set(Ke);const Re={};J[0]&16384&&(Re.error=g[14].workflowId),!W&&J[0]&8&&(W=!0,Re.value=g[3],N(()=>W=!1)),m.$set(Re);const Je={};J[0]&16384&&(Je.error=g[14].taskQueue),!y&&J[0]&16&&(y=!0,Je.value=g[4],N(()=>y=!1)),b.$set(Je);const qe={};J[0]&1&&(qe.payloads=(pn=(gn=(mn=g[0])==null?void 0:mn.action)==null?void 0:gn.startWorkflow)==null?void 0:pn.input),!U&&J[0]&32&&(U=!0,qe.input=g[5],N(()=>U=!1)),!Y&&J[0]&32768&&(Y=!0,qe.encoding=g[15],N(()=>Y=!1)),X.$set(qe);const _n={};!j&&J[0]&131072&&(j=!0,_n.attributesToAdd=g[17],N(()=>j=!1)),S.$set(_n);const ke={};J[0]&1&&(ke.schedule=g[0]),J[0]&262145|J[2]&6&&(ke.$$scope={dirty:J,ctx:g}),!te&&J[0]&64&&(te=!0,ke.daysOfWeek=g[6],N(()=>te=!1)),!ge&&J[0]&128&&(ge=!0,ke.daysOfMonth=g[7],N(()=>ge=!1)),!me&&J[0]&256&&(me=!0,ke.months=g[8],N(()=>me=!1)),!he&&J[0]&512&&(he=!0,ke.days=g[9],N(()=>he=!1)),!ce&&J[0]&1024&&(ce=!0,ke.hour=g[10],N(()=>ce=!1)),!E&&J[0]&2048&&(E=!0,ke.minute=g[11],N(()=>E=!1)),!be&&J[0]&4096&&(be=!0,ke.second=g[12],N(()=>be=!1)),!$e&&J[0]&65536&&($e=!0,ke.phase=g[16],N(()=>$e=!1)),!fe&&J[0]&8192&&(fe=!0,ke.cronString=g[13],N(()=>fe=!1)),x.$set(ke);const on={};J[0]&524288&&(on.title=g[19]),J[0]&524288&&(on.hidden=!g[19]),de.$set(on)},i(g){pe||(k(n.$$.fragment,g),k(r.$$.fragment,g),k(_.$$.fragment,g),k(m.$$.fragment,g),k(b.$$.fragment,g),k(X.$$.fragment,g),k(S.$$.fragment,g),k(x.$$.fragment,g),k(de.$$.fragment,g),pe=!0)},o(g){O(n.$$.fragment,g),O(r.$$.fragment,g),O(_.$$.fragment,g),O(m.$$.fragment,g),O(b.$$.fragment,g),O(X.$$.fragment,g),O(S.$$.fragment,g),O(x.$$.fragment,g),O(de.$$.fragment,g),pe=!1},d(g){g&&(p(e),p(f),p(i)),H(n),H(r),H(_),H(m),H(b),H(X),H(S),H(x),H(de)}}}function il(t){let e,n;return e=new tt({props:{title:t[23]}}),{c(){T(e.$$.fragment)},l(s){V(e.$$.fragment,s)},m(s,l){A(e,s,l),n=!0},p:ve,i(s){n||(k(e.$$.fragment,s),n=!0)},o(s){O(e.$$.fragment,s),n=!1},d(s){H(e,s)}}}function ul(t){let e;return{c(){e=le(t[24])},l(n){e=se(n,t[24])},m(n,s){Q(n,e,s)},p:ve,d(n){n&&p(e)}}}function al(t){let e;return{c(){e=le(t[26])},l(n){e=se(n,t[26])},m(n,s){Q(n,e,s)},p:ve,d(n){n&&p(e)}}}function rl(t){let e=R("common.cancel")+"",n;return{c(){n=le(e)},l(s){n=se(s,e)},m(s,l){Q(s,n,l)},p:ve,d(s){s&&p(n)}}}function ol(t){let e,n,s,l,a;function f(){return t[39](t[63])}return n=new Ge({props:{disabled:t[18](t[63])||!yn(),$$slots:{default:[al]},$$scope:{ctx:t}}}),n.$on("click",f),l=new Ge({props:{variant:"ghost",href:t[25],$$slots:{default:[rl]},$$scope:{ctx:t}}}),{c(){e=z("div"),T(n.$$.fragment),s=C(),T(l.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var o=K(e);V(n.$$.fragment,o),s=D(o),V(l.$$.fragment,o),o.forEach(p),this.h()},h(){ee(e,"class","mt-8 flex items-center gap-2")},m(i,o){Q(i,e,o),A(n,e,null),$(e,s),A(l,e,null),a=!0},p(i,o){t=i;const r={};o[0]&262144|o[2]&2&&(r.disabled=t[18](t[63])||!yn()),o[2]&4&&(r.$$scope={dirty:o,ctx:t}),n.$set(r);const u={};o[2]&4&&(u.$$scope={dirty:o,ctx:t}),l.$set(u)},i(i){a||(k(n.$$.fragment,i),k(l.$$.fragment,i),a=!0)},o(i){O(n.$$.fragment,i),O(l.$$.fragment,i),a=!1},d(i){i&&p(e),H(n),H(l)}}}function fl(t){let e,n,s,l;const a=[il,sl],f=[];function i(o,r){return o[20]?0:1}return n=i(t),s=f[n]=a[n](t),{c(){e=z("div"),s.c(),this.h()},l(o){e=F(o,"DIV",{class:!0});var r=K(e);s.l(r),r.forEach(p),this.h()},h(){ee(e,"class","pb-20")},m(o,r){Q(o,e,r),f[n].m(e,null),l=!0},p(o,r){let u=n;n=i(o),n===u?f[n].p(o,r):(Le(),O(f[u],1,1,()=>{f[u]=null}),Ne(),s=f[n],s?s.p(o,r):(s=f[n]=a[n](o),s.c()),k(s,1),s.m(e,null))},i(o){l||(k(s),l=!0)},o(o){O(s),l=!1},d(o){o&&p(e),f[n].d()}}}function dl(t,e,n){let s,l,a,f=ve,i=()=>(f(),f=Nn(ce,I=>n(56,a=I)),ce),o,r;tn(t,dn,I=>n(19,l=I)),tn(t,Bn,I=>n(57,o=I)),tn(t,lt,I=>n(20,r=I)),t.$$.on_destroy.push(()=>f());var u,d,h,_,c,v,w;let{schedule:m=null}=e,{searchAttributes:W={}}=e,{onConfirm:ne}=e,q=o.params.namespace,b=o.params.schedule,y=R(m?"schedules.edit":"schedules.create"),P=R(m?"schedules.editing":"schedules.creating"),X=R(m?"schedules.back-to-schedule":"schedules.back-to-schedules"),U=m?st({namespace:q,scheduleId:b}):it({namespace:q}),Y=m?R("common.save"):R("schedules.create"),G={},S=b??"";const j=kn((u=m==null?void 0:m.action)===null||u===void 0?void 0:u.startWorkflow),ie=kn({searchAttributes:W}),x=(d=ie==null?void 0:ie.searchAttributes.indexedFields)!==null&&d!==void 0?d:{};let te=(_=(h=j==null?void 0:j.workflowType)===null||h===void 0?void 0:h.name)!==null&&_!==void 0?_:"",ge=(c=j==null?void 0:j.workflowId)!==null&&c!==void 0?c:"",me=(w=(v=j==null?void 0:j.taskQueue)===null||v===void 0?void 0:v.name)!==null&&w!==void 0?w:"",he="",ce=Un("json/plain");i();let E=[],be=[],$e=[],fe="",oe="",de="",pe="",_e="",we="",ye=Object.entries(x).map(([I,Oe])=>({attribute:I,value:Oe}));const He=(I,Oe)=>{const g={name:S.trimEnd(),workflowType:te,workflowId:ge,taskQueue:me,input:he,encoding:a,hour:oe,minute:de,second:pe,phase:_e,cronString:we,daysOfWeek:E,daysOfMonth:be,days:fe,months:$e,searchAttributes:ye};ne(I,g,Oe)},Be=I=>{const{id:Oe}=I.target;n(14,G[Oe]=!1,G),l&&hn(dn,l="",l)},je=I=>{const{value:Oe,id:g}=I.target;Oe.trim()?n(14,G[g]=!1,G):n(14,G[g]=!0,G)},ze=I=>{if(!he)return n(14,G.input=!1,G),!0;try{return JSON.parse(I),n(14,G.input=!1,G),!0}catch{return n(14,G.input=!0,G),!1}};Qn(()=>hn(dn,l="",l));function Fe(I){S=I,n(1,S)}function Qe(I){te=I,n(2,te)}function Xe(I){ge=I,n(3,ge)}function Ve(I){me=I,n(4,me)}function Ye(I){he=I,n(5,he)}function Pe(I){ce=I,i(n(15,ce))}function Ze(I){ye=I,n(17,ye)}const Ue=I=>He(I,m);function M(I){E=I,n(6,E)}function Z(I){be=I,n(7,be)}function Ce(I){$e=I,n(8,$e)}function De(I){fe=I,n(9,fe)}function ue(I){oe=I,n(10,oe)}function We(I){de=I,n(11,de)}function Me(I){pe=I,n(12,pe)}function ae(I){_e=I,n(16,_e)}function ln(I){we=I,n(13,we)}return t.$$set=I=>{"schedule"in I&&n(0,m=I.schedule),"searchAttributes"in I&&n(30,W=I.searchAttributes),"onConfirm"in I&&n(31,ne=I.onConfirm)},t.$$.update=()=>{t.$$.dirty[0]&16382&&n(18,s=I=>!S||!te||!ge||!me||!ze(he)?!0:I==="interval"?!fe&&!oe&&!de&&!pe:I==="week"?!E.length:I==="month"?!be.length||!$e.length:I==="string"?!we:!1)},[m,S,te,ge,me,he,E,be,$e,fe,oe,de,pe,we,G,ce,_e,ye,s,l,r,b,y,P,X,U,Y,He,Be,je,W,ne,Fe,Qe,Xe,Ve,Ye,Pe,Ze,Ue,M,Z,Ce,De,ue,We,Me,ae,ln]}class Ll extends Ee{constructor(e){super(),Se(this,e,dl,fl,Ie,{schedule:0,searchAttributes:30,onConfirm:31},null,[-1,-1,-1])}}export{Ll as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-frequency.SW9tPKxx.js b/ui/assets/local/_app/immutable/chunks/schedule-frequency.Bpvyfzre.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/schedule-frequency.SW9tPKxx.js rename to ui/assets/local/_app/immutable/chunks/schedule-frequency.Bpvyfzre.js index 2394e96b5..92e726ff9 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-frequency.SW9tPKxx.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-frequency.Bpvyfzre.js @@ -1 +1 @@ -import{s as I,x as _,i as T,v as j,f,z as h,A as k,h as g,b as q,j as v,k as b,d as E,m as z,n as y}from"./scheduler.C46pS-76.js";import{S as H,i as L,g as M,b as u,e as A,t as d,c as B,a as D,m as P,d as U}from"./index.dOVbn71B.js";import{C as V}from"./code-block.BkCXXL0z.js";import{t as N}from"./translate.BBe5dcco.js";import{s as C}from"./parse-with-big-int.BKSBwM2t.js";function S(s){let n,a,r=N("common.timezone",{timezone:s[2]})+"",t,e,o,l;return e=new V({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:C(s[0]||s[1])}}),{c(){n=g("div"),a=g("p"),t=q(),B(e.$$.fragment),this.h()},l(i){n=v(i,"DIV",{class:!0});var c=b(n);a=v(c,"P",{});var m=b(a);m.forEach(f),t=E(c),D(e.$$.fragment,c),c.forEach(f),this.h()},h(){z(n,"class",o="flex flex-col "+s[4].class)},m(i,c){T(i,n,c),y(n,a),a.innerHTML=r,y(n,t),P(e,n,null),l=!0},p(i,c){(!l||c&4)&&r!==(r=N("common.timezone",{timezone:i[2]})+"")&&(a.innerHTML=r);const m={};c&8&&(m.inline=i[3]),c&3&&(m.content=C(i[0]||i[1])),e.$set(m),(!l||c&16&&o!==(o="flex flex-col "+i[4].class))&&z(n,"class",o)},i(i){l||(d(e.$$.fragment,i),l=!0)},o(i){u(e.$$.fragment,i),l=!1},d(i){i&&f(n),U(e)}}}function W(s){let n=[s[0],s[1]],a,r,t=S(s);return{c(){t.c(),a=_()},l(e){t.l(e),a=_()},m(e,o){t.m(e,o),T(e,a,o),r=!0},p(e,[o]){o&3&&I(n,n=[e[0],e[1]])?(M(),u(t,1,1,j),A(),t=S(e),t.c(),d(t,1),t.m(a.parentNode,a)):t.p(e,o)},i(e){r||(d(t),r=!0)},o(e){u(t),r=!1},d(e){e&&f(a),t.d(e)}}}function p(s,n,a){let{calendar:r=void 0}=n,{interval:t=void 0}=n,{timezoneName:e="UTC"}=n,{inline:o=!1}=n;return s.$$set=l=>{a(4,n=h(h({},n),k(l))),"calendar"in l&&a(0,r=l.calendar),"interval"in l&&a(1,t=l.interval),"timezoneName"in l&&a(2,e=l.timezoneName),"inline"in l&&a(3,o=l.inline)},n=k(n),[r,t,e,o,n]}class Q extends H{constructor(n){super(),L(this,n,p,W,I,{calendar:0,interval:1,timezoneName:2,inline:3})}}export{Q as S}; +import{s as I,x as _,i as T,v as j,f,z as h,A as k,h as g,b as q,j as v,k as b,d as E,m as z,n as y}from"./scheduler.C46pS-76.js";import{S as H,i as L,g as M,b as u,e as A,t as d,c as B,a as D,m as P,d as U}from"./index.dOVbn71B.js";import{C as V}from"./code-block.DGWayI9q.js";import{t as N}from"./translate.BBe5dcco.js";import{s as C}from"./parse-with-big-int.BKSBwM2t.js";function S(s){let n,a,r=N("common.timezone",{timezone:s[2]})+"",t,e,o,l;return e=new V({props:{copyable:!0,inline:s[3],testId:"schedule-calendar",language:"json",content:C(s[0]||s[1])}}),{c(){n=g("div"),a=g("p"),t=q(),B(e.$$.fragment),this.h()},l(i){n=v(i,"DIV",{class:!0});var c=b(n);a=v(c,"P",{});var m=b(a);m.forEach(f),t=E(c),D(e.$$.fragment,c),c.forEach(f),this.h()},h(){z(n,"class",o="flex flex-col "+s[4].class)},m(i,c){T(i,n,c),y(n,a),a.innerHTML=r,y(n,t),P(e,n,null),l=!0},p(i,c){(!l||c&4)&&r!==(r=N("common.timezone",{timezone:i[2]})+"")&&(a.innerHTML=r);const m={};c&8&&(m.inline=i[3]),c&3&&(m.content=C(i[0]||i[1])),e.$set(m),(!l||c&16&&o!==(o="flex flex-col "+i[4].class))&&z(n,"class",o)},i(i){l||(d(e.$$.fragment,i),l=!0)},o(i){u(e.$$.fragment,i),l=!1},d(i){i&&f(n),U(e)}}}function W(s){let n=[s[0],s[1]],a,r,t=S(s);return{c(){t.c(),a=_()},l(e){t.l(e),a=_()},m(e,o){t.m(e,o),T(e,a,o),r=!0},p(e,[o]){o&3&&I(n,n=[e[0],e[1]])?(M(),u(t,1,1,j),A(),t=S(e),t.c(),d(t,1),t.m(a.parentNode,a)):t.p(e,o)},i(e){r||(d(t),r=!0)},o(e){u(t),r=!1},d(e){e&&f(a),t.d(e)}}}function p(s,n,a){let{calendar:r=void 0}=n,{interval:t=void 0}=n,{timezoneName:e="UTC"}=n,{inline:o=!1}=n;return s.$$set=l=>{a(4,n=h(h({},n),k(l))),"calendar"in l&&a(0,r=l.calendar),"interval"in l&&a(1,t=l.interval),"timezoneName"in l&&a(2,e=l.timezoneName),"inline"in l&&a(3,o=l.inline)},n=k(n),[r,t,e,o,n]}class Q extends H{constructor(n){super(),L(this,n,p,W,I,{calendar:0,interval:1,timezoneName:2,inline:3})}}export{Q as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.DZMegXhn.js b/ui/assets/local/_app/immutable/chunks/schedules.BI2Sbv1C.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/schedules.DZMegXhn.js rename to ui/assets/local/_app/immutable/chunks/schedules.BI2Sbv1C.js index 460d4a6b2..36f500bce 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.DZMegXhn.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.BI2Sbv1C.js @@ -1 +1 @@ -import{w as P,g as A}from"./entry.DLEzeuD9.js";import{t as $}from"./translate.BBe5dcco.js";import"./i18next.DhwiOCyc.js";import{s as k}from"./parse-with-big-int.BKSBwM2t.js";import{r as p,a as m}from"./route-for-api.BTloiRV6.js";import{v as b}from"./toaster.D-OAJjvv.js";import{s as _}from"./workflows.BzgE0E1S.js";import{e as O}from"./encode-payload.BbGvULr4.js";import{l as C,m as D}from"./route-for.BjP6gGR7.js";const Y=async(e,o,t,s=fetch)=>(n=100,i="")=>{const a=p("schedules",{namespace:e});return m(a,{params:{maximumPageSize:String(n),nextPageToken:i,...o?{query:o}:{}},request:s,onError:t}).then(({schedules:r,nextPageToken:c})=>({items:r,nextPageToken:c?String(c):""}))};async function Z(e,o=fetch){const t=p("schedule",e);return m(t,{request:o})}async function ee(e,o=fetch){const t=p("schedule",e);return m(t,{request:o,options:{method:"DELETE"}})}async function Q({namespace:e,scheduleId:o,body:t}){let s="";const n=r=>{var c;return s=((c=r==null?void 0:r.body)==null?void 0:c.message)??`Error creating schedule: ${r.status}: ${r.statusText}`},i=p("schedule",{namespace:e,scheduleId:o}),{conflictToken:a}=await m(i,{options:{method:"POST",body:k({request_id:b(),...t})},onError:n});return{conflictToken:a,error:s}}async function z({namespace:e,scheduleId:o,body:t}){let s="";const n=a=>{var r;return s=((r=a==null?void 0:a.body)==null?void 0:r.message)??`Error editing schedule: ${a.status}: ${a.statusText}`},i=p("schedule.edit",{namespace:e,scheduleId:o});return await m(i,{options:{method:"POST",body:k({request_id:b(),...t})},onError:n}),{error:s}}async function te({namespace:e,scheduleId:o,reason:t}){const s={patch:{pause:t}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})},onError:i=>console.error(i)})}async function se({namespace:e,scheduleId:o,reason:t}){const s={patch:{unpause:t}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})}})}async function oe({namespace:e,scheduleId:o,overlapPolicy:t}){const s={patch:{triggerImmediately:{overlapPolicy:t}}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})}})}async function ne({namespace:e,scheduleId:o,overlapPolicy:t,startTime:s,endTime:n}){const i={patch:{backfillRequest:[{overlapPolicy:t,startTime:s,endTime:n}]}},a=p("schedule.patch",{namespace:e,scheduleId:o});return await m(a,{options:{method:"POST",body:k({...i,request_id:b()})}})}const I=e=>e?parseInt(e):0,B=(e,o,t,s)=>`${I(e)*60*60*24+I(o)*60*60+I(t)*60+I(s)}s`,R=({months:e=[],daysOfMonth:o=[],daysOfWeek:t=[]})=>{var r,c;const s=e.sort((d,u)=>parseInt(d)-parseInt(u)).join(","),n=o.sort((d,u)=>d-u).join(","),a=(((c=(r=t==null?void 0:t[0])==null?void 0:r.split(","))==null?void 0:c.length)>1?t[0].split(","):t).sort((d,u)=>parseInt(d)-parseInt(u)).join(",");return{month:s,dayOfMonth:n,dayOfWeek:a}},j=(e,o,t)=>{const{hour:s,minute:n,second:i,phase:a,cronString:r}=o,{preset:c,months:d,days:u,daysOfMonth:f,daysOfWeek:g}=t;if(c==="string"){const l=`${r}#${r}`;e.schedule.spec.cronString=[l],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(c==="interval"){const l=B(u,s,n,i);e.schedule.spec.interval=[{interval:l,phase:a||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:l,dayOfMonth:y,dayOfWeek:w}=R({months:d,daysOfMonth:f,daysOfWeek:g});e.schedule.spec.calendar=[{year:"*",month:c==="month"?l:"",dayOfMonth:c==="month"?y:"",dayOfWeek:c==="week"?w:"",hour:s,minute:n,second:i}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},re=async({action:e,spec:o,presets:t})=>{const{namespace:s,name:n,workflowId:i,workflowType:a,taskQueue:r,input:c,encoding:d,searchAttributes:u}=e;let f;if(c)try{f=await O(c,d)}catch(y){S.set(`${$("data-encoder.encode-error")}: ${y==null?void 0:y.message}`);return}const g={schedule_id:n.trim(),searchAttributes:u.length===0?null:{indexedFields:{..._(u)}},schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:i,workflowType:{name:a},taskQueue:{name:r},input:f?{payloads:f}:null}}}};j(g,o,t),T.set(!0);const{error:l}=await Q({scheduleId:n,namespace:s,body:g});l?(S.set(l),T.set(!1)):setTimeout(()=>{S.set(""),T.set(!1),A(C({namespace:s}))},2e3)},ae=async({action:e,spec:o,presets:t},s,n)=>{var q,x;const{namespace:i,name:a,workflowId:r,workflowType:c,taskQueue:d,input:u,encoding:f,searchAttributes:g}=e;let l;if(u)try{l=await O(u,f)}catch(h){S.set(`${$("data-encoder.encode-error")}: ${h==null?void 0:h.message}`);return}const{preset:y}=t,w={schedule_id:n,searchAttributes:g.length===0?null:{indexedFields:{..._(g)}},schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:r,workflowType:{name:c},taskQueue:{name:d},input:l?{payloads:l}:null}}}},v=(x=(q=w.schedule.action.startWorkflow)==null?void 0:q.header)==null?void 0:x.fields;if(v&&Object.keys(v).length>0)try{const h=Object.entries(v);for(const[F,W]of h){const M=await O(k(W),"json/plain");v[F]=M[0]}}catch(h){S.set(`${$("data-encoder.encode-error")}: ${h==null?void 0:h.message}`);return}y==="existing"?w.schedule.spec=s.spec:(j(w,o,t),w.schedule.spec.structuredCalendar=[]),T.set(!0);const{error:E}=await z({namespace:i,scheduleId:n,body:w});E?(S.set(E),T.set(!1)):setTimeout(()=>{A(D({namespace:i,scheduleId:a})),S.set(""),T.set(!1)},2e3)},T=P(!1),S=P(""),ce=P("0");export{re as a,ce as b,Y as c,ee as d,S as e,Z as f,ne as g,T as l,te as p,ae as s,oe as t,se as u}; +import{w as P,g as A}from"./entry.kylZibtV.js";import{t as $}from"./translate.BBe5dcco.js";import"./i18next.DhwiOCyc.js";import{s as k}from"./parse-with-big-int.BKSBwM2t.js";import{r as p,a as m}from"./route-for-api.DGDQNXtX.js";import{v as b}from"./toaster.p5hsABhI.js";import{s as _}from"./workflows.Cse8qlOg.js";import{e as O}from"./encode-payload.DnXS3ERP.js";import{l as C,m as D}from"./route-for.B9fTWV7L.js";const Y=async(e,o,t,s=fetch)=>(n=100,i="")=>{const a=p("schedules",{namespace:e});return m(a,{params:{maximumPageSize:String(n),nextPageToken:i,...o?{query:o}:{}},request:s,onError:t}).then(({schedules:r,nextPageToken:c})=>({items:r,nextPageToken:c?String(c):""}))};async function Z(e,o=fetch){const t=p("schedule",e);return m(t,{request:o})}async function ee(e,o=fetch){const t=p("schedule",e);return m(t,{request:o,options:{method:"DELETE"}})}async function Q({namespace:e,scheduleId:o,body:t}){let s="";const n=r=>{var c;return s=((c=r==null?void 0:r.body)==null?void 0:c.message)??`Error creating schedule: ${r.status}: ${r.statusText}`},i=p("schedule",{namespace:e,scheduleId:o}),{conflictToken:a}=await m(i,{options:{method:"POST",body:k({request_id:b(),...t})},onError:n});return{conflictToken:a,error:s}}async function z({namespace:e,scheduleId:o,body:t}){let s="";const n=a=>{var r;return s=((r=a==null?void 0:a.body)==null?void 0:r.message)??`Error editing schedule: ${a.status}: ${a.statusText}`},i=p("schedule.edit",{namespace:e,scheduleId:o});return await m(i,{options:{method:"POST",body:k({request_id:b(),...t})},onError:n}),{error:s}}async function te({namespace:e,scheduleId:o,reason:t}){const s={patch:{pause:t}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})},onError:i=>console.error(i)})}async function se({namespace:e,scheduleId:o,reason:t}){const s={patch:{unpause:t}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})}})}async function oe({namespace:e,scheduleId:o,overlapPolicy:t}){const s={patch:{triggerImmediately:{overlapPolicy:t}}},n=p("schedule.patch",{namespace:e,scheduleId:o});return await m(n,{options:{method:"POST",body:k({...s,request_id:b()})}})}async function ne({namespace:e,scheduleId:o,overlapPolicy:t,startTime:s,endTime:n}){const i={patch:{backfillRequest:[{overlapPolicy:t,startTime:s,endTime:n}]}},a=p("schedule.patch",{namespace:e,scheduleId:o});return await m(a,{options:{method:"POST",body:k({...i,request_id:b()})}})}const I=e=>e?parseInt(e):0,B=(e,o,t,s)=>`${I(e)*60*60*24+I(o)*60*60+I(t)*60+I(s)}s`,R=({months:e=[],daysOfMonth:o=[],daysOfWeek:t=[]})=>{var r,c;const s=e.sort((d,u)=>parseInt(d)-parseInt(u)).join(","),n=o.sort((d,u)=>d-u).join(","),a=(((c=(r=t==null?void 0:t[0])==null?void 0:r.split(","))==null?void 0:c.length)>1?t[0].split(","):t).sort((d,u)=>parseInt(d)-parseInt(u)).join(",");return{month:s,dayOfMonth:n,dayOfWeek:a}},j=(e,o,t)=>{const{hour:s,minute:n,second:i,phase:a,cronString:r}=o,{preset:c,months:d,days:u,daysOfMonth:f,daysOfWeek:g}=t;if(c==="string"){const l=`${r}#${r}`;e.schedule.spec.cronString=[l],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(c==="interval"){const l=B(u,s,n,i);e.schedule.spec.interval=[{interval:l,phase:a||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:l,dayOfMonth:y,dayOfWeek:w}=R({months:d,daysOfMonth:f,daysOfWeek:g});e.schedule.spec.calendar=[{year:"*",month:c==="month"?l:"",dayOfMonth:c==="month"?y:"",dayOfWeek:c==="week"?w:"",hour:s,minute:n,second:i}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},re=async({action:e,spec:o,presets:t})=>{const{namespace:s,name:n,workflowId:i,workflowType:a,taskQueue:r,input:c,encoding:d,searchAttributes:u}=e;let f;if(c)try{f=await O(c,d)}catch(y){S.set(`${$("data-encoder.encode-error")}: ${y==null?void 0:y.message}`);return}const g={schedule_id:n.trim(),searchAttributes:u.length===0?null:{indexedFields:{..._(u)}},schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:i,workflowType:{name:a},taskQueue:{name:r},input:f?{payloads:f}:null}}}};j(g,o,t),T.set(!0);const{error:l}=await Q({scheduleId:n,namespace:s,body:g});l?(S.set(l),T.set(!1)):setTimeout(()=>{S.set(""),T.set(!1),A(C({namespace:s}))},2e3)},ae=async({action:e,spec:o,presets:t},s,n)=>{var q,x;const{namespace:i,name:a,workflowId:r,workflowType:c,taskQueue:d,input:u,encoding:f,searchAttributes:g}=e;let l;if(u)try{l=await O(u,f)}catch(h){S.set(`${$("data-encoder.encode-error")}: ${h==null?void 0:h.message}`);return}const{preset:y}=t,w={schedule_id:n,searchAttributes:g.length===0?null:{indexedFields:{..._(g)}},schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:r,workflowType:{name:c},taskQueue:{name:d},input:l?{payloads:l}:null}}}},v=(x=(q=w.schedule.action.startWorkflow)==null?void 0:q.header)==null?void 0:x.fields;if(v&&Object.keys(v).length>0)try{const h=Object.entries(v);for(const[F,W]of h){const M=await O(k(W),"json/plain");v[F]=M[0]}}catch(h){S.set(`${$("data-encoder.encode-error")}: ${h==null?void 0:h.message}`);return}y==="existing"?w.schedule.spec=s.spec:(j(w,o,t),w.schedule.spec.structuredCalendar=[]),T.set(!0);const{error:E}=await z({namespace:i,scheduleId:n,body:w});E?(S.set(E),T.set(!1)):setTimeout(()=>{A(D({namespace:i,scheduleId:a})),S.set(""),T.set(!1)},2e3)},T=P(!1),S=P(""),ce=P("0");export{re as a,ce as b,Y as c,ee as d,S as e,Z as f,ne as g,T as l,te as p,ae as s,oe as t,se as u}; diff --git a/ui/assets/local/_app/immutable/chunks/search-attributes.C9oQpIly.js b/ui/assets/local/_app/immutable/chunks/search-attributes.Dmice2E5.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/search-attributes.C9oQpIly.js rename to ui/assets/local/_app/immutable/chunks/search-attributes.Dmice2E5.js index 549e6d03b..d1c4a72a5 100644 --- a/ui/assets/local/_app/immutable/chunks/search-attributes.C9oQpIly.js +++ b/ui/assets/local/_app/immutable/chunks/search-attributes.Dmice2E5.js @@ -1 +1 @@ -import{d as r,w as o}from"./entry.DLEzeuD9.js";import{C as c}from"./scheduler.C46pS-76.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; +import{d as r,w as o}from"./entry.kylZibtV.js";import{C as c}from"./scheduler.C46pS-76.js";const i=o({customAttributes:{},systemAttributes:{}}),b=r([i],([t])=>({...t.customAttributes,...t.systemAttributes}));r([i],([t])=>t.systemAttributes);const l=r([i],([t])=>t.customAttributes),p=t=>{const e=c(l);return t in e},f=(t,e)=>{var s;return e in(((s=t==null?void 0:t.searchAttributes)==null?void 0:s.indexedFields)??{})},m=r([b],([t])=>t?Object.entries(t).map(([e,s])=>({label:e,value:e,type:s})):[]),h=r([m],([t])=>{const e=["ExecutionStatus","WorkflowId","WorkflowType","RunId","StartTime","CloseTime"];return t.sort((s,u)=>s.labelu.label?1:0).sort((s,u)=>{const n=e.indexOf(s.value),a=e.indexOf(u.value);return n<0?1:a<0?-1:n-a})});export{i as a,h as b,l as c,p as i,b as s,f as w}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.6ZfKSI4U.js b/ui/assets/local/_app/immutable/chunks/settings-service.lqZRRkVY.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/settings-service.6ZfKSI4U.js rename to ui/assets/local/_app/immutable/chunks/settings-service.lqZRRkVY.js index 6428c881e..d69d03684 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.6ZfKSI4U.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.lqZRRkVY.js @@ -1 +1 @@ -import{r as m,a as b,g as D}from"./route-for-api.BTloiRV6.js";var k={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return k.VITE_TEMPORAL_UI_BUILD_TARGET??null}const i=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,d,c,f;const w=m("settings"),r=await b(w,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:D(),codec:{endpoint:(d=r==null?void 0:r.Codec)==null?void 0:d.Endpoint,passAccessToken:(c=r==null?void 0:r.Codec)==null?void 0:c.PassAccessToken,includeCredentials:(f=r==null?void 0:r.Codec)==null?void 0:f.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),startWorkflowDisabled:!!(r!=null&&r.StartWorkflowDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),refreshWorkflowCountsDisabled:!!(r!=null&&r.RefreshWorkflowCountsDisabled),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":i.test(window.location.hostname)},get isLocal(){return a?a==="local":i.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f}; +import{r as m,a as b,g as D}from"./route-for-api.DGDQNXtX.js";var k={VITE_TEMPORAL_PORT:"7233",VITE_API:"",VITE_MODE:"development",BASE_URL:"./",MODE:"production",DEV:!1,PROD:!0,SSR:!1};function E(){return k.VITE_TEMPORAL_UI_BUILD_TARGET??null}const i=/(tmprl\.cloud|tmprl-test\.cloud)$/,A=async(u=fetch)=>{var l,o,d,c,f;const w=m("settings"),r=await b(w,{request:u}),a=E();return{auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(o=r==null?void 0:r.Auth)==null?void 0:o.Options},bannerText:r==null?void 0:r.BannerText,baseUrl:D(),codec:{endpoint:(d=r==null?void 0:r.Codec)==null?void 0:d.Endpoint,passAccessToken:(c=r==null?void 0:r.Codec)==null?void 0:c.PassAccessToken,includeCredentials:(f=r==null?void 0:r.Codec)==null?void 0:f.IncludeCredentials},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),startWorkflowDisabled:!!(r!=null&&r.StartWorkflowDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),refreshWorkflowCountsDisabled:!!(r!=null&&r.RefreshWorkflowCountsDisabled),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":i.test(window.location.hostname)},get isLocal(){return a?a==="local":i.test(window.location.hostname)},envOverride:!!a},version:r==null?void 0:r.Version}};export{A as f}; diff --git a/ui/assets/local/_app/immutable/chunks/split-button.CWfYBMpf.js b/ui/assets/local/_app/immutable/chunks/split-button.70FZ_ydj.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/split-button.CWfYBMpf.js rename to ui/assets/local/_app/immutable/chunks/split-button.70FZ_ydj.js index 5d8de0020..7730afe88 100644 --- a/ui/assets/local/_app/immutable/chunks/split-button.CWfYBMpf.js +++ b/ui/assets/local/_app/immutable/chunks/split-button.70FZ_ydj.js @@ -1 +1 @@ -import{s as p,z as S,A as B,h as z,b as M,j as E,k as N,d as I,f as g,m as V,i as D,n as F,B as G,t as H,l as J,q as K,a as O,u as P,g as Q,e as R}from"./scheduler.C46pS-76.js";import{S as T,i as U,c as h,a as k,m as A,t as m,b as d,d as C,g as W,e as X}from"./index.dOVbn71B.js";import{B as Y}from"./button.BpRIS9ld.js";import{I as Z}from"./icon.CfkHLDdJ.js";import{M as v}from"./menu-button.20KWkPAy.js";import{M as y,a as w}from"./menu.FCESMtRU.js";function q(i){let e,a;return e=new Z({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,n){A(e,t,n),a=!0},p(t,n){const l={};n&4&&(l.name=t[2]),e.$set(l)},i(t){a||(m(e.$$.fragment,t),a=!0)},o(t){d(e.$$.fragment,t),a=!1},d(t){C(e,t)}}}function $(i){let e,a,t,n=i[2]&&q(i);return{c(){n&&n.c(),e=M(),a=H(i[0])},l(l){n&&n.l(l),e=I(l),a=J(l,i[0])},m(l,o){n&&n.m(l,o),D(l,e,o),D(l,a,o),t=!0},p(l,o){l[2]?n?(n.p(l,o),o&4&&m(n,1)):(n=q(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(W(),d(n,1,1,()=>{n=null}),X()),(!t||o&1)&&K(a,l[0])},i(l){t||(m(n),t=!0)},o(l){d(n),t=!1},d(l){l&&(g(e),g(a)),n&&n.d(l)}}}function x(i){let e;const a=i[10].default,t=O(a,i,i[12],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&4096)&&P(t,a,n,n[12],e?R(a,n[12],l,null):Q(n[12]),null)},i(n){e||(m(t,n),e=!0)},o(n){d(t,n),e=!1},d(n){t&&t.d(n)}}}function ee(i){let e,a,t,n,l,o,_;return a=new Y({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",href:i[7],$$slots:{default:[$]},$$scope:{ctx:i}}}),a.$on("click",i[11]),n=new v({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new w({props:{id:i[3]+"-menu",position:i[5],class:i[8],$$slots:{default:[x]},$$scope:{ctx:i}}}),{c(){e=z("div"),h(a.$$.fragment),t=M(),h(n.$$.fragment),l=M(),h(o.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var f=N(e);k(a.$$.fragment,f),t=I(f),k(n.$$.fragment,f),f.forEach(g),l=I(s),k(o.$$.fragment,s),this.h()},h(){V(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),A(a,e,null),F(e,t),A(n,e,null),D(s,l,f),A(o,s,f),_=!0},p(s,f){const r={};f&80&&(r.disabled=s[4]||s[6]),f&8&&(r.id=s[3]+"-primary-button"),f&128&&(r.href=s[7]),f&4101&&(r.$$scope={dirty:f,ctx:s}),a.$set(r);const c={};f&8&&(c.id=s[3]+"-menu-button"),f&2&&(c.label=s[1]),f&8&&(c.controls=s[3]+"-menu"),f&16&&(c.disabled=s[4]),n.$set(c);const b={};f&8&&(b.id=s[3]+"-menu"),f&32&&(b.position=s[5]),f&256&&(b.class=s[8]),f&4096&&(b.$$scope={dirty:f,ctx:s}),o.$set(b)},i(s){_||(m(a.$$.fragment,s),m(n.$$.fragment,s),m(o.$$.fragment,s),_=!0)},o(s){d(a.$$.fragment,s),d(n.$$.fragment,s),d(o.$$.fragment,s),_=!1},d(s){s&&(g(e),g(l)),C(a),C(n),C(o,s)}}}function ne(i){let e,a;return e=new y({props:{class:i[9].class,$$slots:{default:[ee]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,n){A(e,t,n),a=!0},p(t,[n]){const l={};n&512&&(l.class=t[9].class),n&4607&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){a||(m(e.$$.fragment,t),a=!0)},o(t){d(e.$$.fragment,t),a=!1},d(t){C(e,t)}}}function te(i,e,a){let{$$slots:t={},$$scope:n}=e,{label:l}=e,{menuLabel:o}=e,{icon:_=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:r="left"}=e,{primaryActionDisabled:c=!1}=e,{href:b=void 0}=e,{menuClass:L=void 0}=e;function j(u){G.call(this,i,u)}return i.$$set=u=>{a(9,e=S(S({},e),B(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,_=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,r=u.position),"primaryActionDisabled"in u&&a(6,c=u.primaryActionDisabled),"href"in u&&a(7,b=u.href),"menuClass"in u&&a(8,L=u.menuClass),"$$scope"in u&&a(12,n=u.$$scope)},e=B(e),[l,o,_,s,f,r,c,b,L,e,t,j,n]}class oe extends T{constructor(e){super(),U(this,e,te,ne,p,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6,href:7,menuClass:8})}}export{oe as S}; +import{s as p,z as S,A as B,h as z,b as M,j as E,k as N,d as I,f as g,m as V,i as D,n as F,B as G,t as H,l as J,q as K,a as O,u as P,g as Q,e as R}from"./scheduler.C46pS-76.js";import{S as T,i as U,c as h,a as k,m as A,t as m,b as d,d as C,g as W,e as X}from"./index.dOVbn71B.js";import{B as Y}from"./button.hs88FdV4.js";import{I as Z}from"./icon.CfkHLDdJ.js";import{M as v}from"./menu-button.DYcE3c8N.js";import{M as y,a as w}from"./menu.B3Snjx4c.js";function q(i){let e,a;return e=new Z({props:{name:i[2]}}),{c(){h(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,n){A(e,t,n),a=!0},p(t,n){const l={};n&4&&(l.name=t[2]),e.$set(l)},i(t){a||(m(e.$$.fragment,t),a=!0)},o(t){d(e.$$.fragment,t),a=!1},d(t){C(e,t)}}}function $(i){let e,a,t,n=i[2]&&q(i);return{c(){n&&n.c(),e=M(),a=H(i[0])},l(l){n&&n.l(l),e=I(l),a=J(l,i[0])},m(l,o){n&&n.m(l,o),D(l,e,o),D(l,a,o),t=!0},p(l,o){l[2]?n?(n.p(l,o),o&4&&m(n,1)):(n=q(l),n.c(),m(n,1),n.m(e.parentNode,e)):n&&(W(),d(n,1,1,()=>{n=null}),X()),(!t||o&1)&&K(a,l[0])},i(l){t||(m(n),t=!0)},o(l){d(n),t=!1},d(l){l&&(g(e),g(a)),n&&n.d(l)}}}function x(i){let e;const a=i[10].default,t=O(a,i,i[12],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&4096)&&P(t,a,n,n[12],e?R(a,n[12],l,null):Q(n[12]),null)},i(n){e||(m(t,n),e=!0)},o(n){d(t,n),e=!1},d(n){t&&t.d(n)}}}function ee(i){let e,a,t,n,l,o,_;return a=new Y({props:{disabled:i[4]||i[6],id:i[3]+"-primary-button",href:i[7],$$slots:{default:[$]},$$scope:{ctx:i}}}),a.$on("click",i[11]),n=new v({props:{class:"max-w-fit grow-0 px-3",id:i[3]+"-menu-button",label:i[1],controls:i[3]+"-menu",variant:"primary",disabled:i[4],hasIndicator:!0}}),o=new w({props:{id:i[3]+"-menu",position:i[5],class:i[8],$$slots:{default:[x]},$$scope:{ctx:i}}}),{c(){e=z("div"),h(a.$$.fragment),t=M(),h(n.$$.fragment),l=M(),h(o.$$.fragment),this.h()},l(s){e=E(s,"DIV",{class:!0});var f=N(e);k(a.$$.fragment,f),t=I(f),k(n.$$.fragment,f),f.forEach(g),l=I(s),k(o.$$.fragment,s),this.h()},h(){V(e,"class","button-group flex h-10 cursor-pointer flex-row gap-[1px]")},m(s,f){D(s,e,f),A(a,e,null),F(e,t),A(n,e,null),D(s,l,f),A(o,s,f),_=!0},p(s,f){const r={};f&80&&(r.disabled=s[4]||s[6]),f&8&&(r.id=s[3]+"-primary-button"),f&128&&(r.href=s[7]),f&4101&&(r.$$scope={dirty:f,ctx:s}),a.$set(r);const c={};f&8&&(c.id=s[3]+"-menu-button"),f&2&&(c.label=s[1]),f&8&&(c.controls=s[3]+"-menu"),f&16&&(c.disabled=s[4]),n.$set(c);const b={};f&8&&(b.id=s[3]+"-menu"),f&32&&(b.position=s[5]),f&256&&(b.class=s[8]),f&4096&&(b.$$scope={dirty:f,ctx:s}),o.$set(b)},i(s){_||(m(a.$$.fragment,s),m(n.$$.fragment,s),m(o.$$.fragment,s),_=!0)},o(s){d(a.$$.fragment,s),d(n.$$.fragment,s),d(o.$$.fragment,s),_=!1},d(s){s&&(g(e),g(l)),C(a),C(n),C(o,s)}}}function ne(i){let e,a;return e=new y({props:{class:i[9].class,$$slots:{default:[ee]},$$scope:{ctx:i}}}),{c(){h(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,n){A(e,t,n),a=!0},p(t,[n]){const l={};n&512&&(l.class=t[9].class),n&4607&&(l.$$scope={dirty:n,ctx:t}),e.$set(l)},i(t){a||(m(e.$$.fragment,t),a=!0)},o(t){d(e.$$.fragment,t),a=!1},d(t){C(e,t)}}}function te(i,e,a){let{$$slots:t={},$$scope:n}=e,{label:l}=e,{menuLabel:o}=e,{icon:_=void 0}=e,{id:s}=e,{disabled:f=!1}=e,{position:r="left"}=e,{primaryActionDisabled:c=!1}=e,{href:b=void 0}=e,{menuClass:L=void 0}=e;function j(u){G.call(this,i,u)}return i.$$set=u=>{a(9,e=S(S({},e),B(u))),"label"in u&&a(0,l=u.label),"menuLabel"in u&&a(1,o=u.menuLabel),"icon"in u&&a(2,_=u.icon),"id"in u&&a(3,s=u.id),"disabled"in u&&a(4,f=u.disabled),"position"in u&&a(5,r=u.position),"primaryActionDisabled"in u&&a(6,c=u.primaryActionDisabled),"href"in u&&a(7,b=u.href),"menuClass"in u&&a(8,L=u.menuClass),"$$scope"in u&&a(12,n=u.$$scope)},e=B(e),[l,o,_,s,f,r,c,b,L,e,t,j,n]}class oe extends T{constructor(e){super(),U(this,e,te,ne,p,{label:0,menuLabel:1,icon:2,id:3,disabled:4,position:5,primaryActionDisabled:6,href:7,menuClass:8})}}export{oe as S}; diff --git a/ui/assets/local/_app/immutable/chunks/stores.Dz-RNcUk.js b/ui/assets/local/_app/immutable/chunks/stores.Ds4o9nwd.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/stores.Dz-RNcUk.js rename to ui/assets/local/_app/immutable/chunks/stores.Ds4o9nwd.js index 7979a3f27..661090ae5 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.Dz-RNcUk.js +++ b/ui/assets/local/_app/immutable/chunks/stores.Ds4o9nwd.js @@ -1 +1 @@ -import{s as t}from"./entry.DLEzeuD9.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; +import{s as t}from"./entry.kylZibtV.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{b as p,c as u}; diff --git a/ui/assets/local/_app/immutable/chunks/tab.CpZOxof2.js b/ui/assets/local/_app/immutable/chunks/tab.y0H1rcBf.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/tab.CpZOxof2.js rename to ui/assets/local/_app/immutable/chunks/tab.y0H1rcBf.js index 019220c16..a15cb1549 100644 --- a/ui/assets/local/_app/immutable/chunks/tab.CpZOxof2.js +++ b/ui/assets/local/_app/immutable/chunks/tab.y0H1rcBf.js @@ -1 +1 @@ -import{s as P,a as A,z as h,h as O,j as S,k as M,f as g,E as k,H as v,i as D,u as V,g as j,e as q,D as T,A as I,a7 as y,M as F,x as G,L as p,c as w,t as x,b as $,l as ee,d as te,ad as J,n as K,p as le,ah as ae,v as se}from"./scheduler.C46pS-76.js";import{S as B,i as H,t as E,b as N}from"./index.dOVbn71B.js";import{g as L}from"./spread.CgU5AtxT.js";import{t as Q}from"./tw-merge.Ds6tgvmq.js";import{k as ie}from"./has.BWrERxPV.js";import{w as R}from"./entry.DLEzeuD9.js";function ne(s){let e,i,f;const t=s[4].default,l=A(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends B{constructor(e){super(),H(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=A(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),F(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),F(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends B{constructor(e){super(),H(this,e,fe,oe,P,{})}}function z(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=A(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,U,Z,e,l,b,C,o,a,n]}class Ce extends B{constructor(e){super(),H(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{Te as T,ge as a,Ce as b,W as c}; +import{s as P,a as A,z as h,h as O,j as S,k as M,f as g,E as k,H as v,i as D,u as V,g as j,e as q,D as T,A as I,a7 as y,M as F,x as G,L as p,c as w,t as x,b as $,l as ee,d as te,ad as J,n as K,p as le,ah as ae,v as se}from"./scheduler.C46pS-76.js";import{S as B,i as H,t as E,b as N}from"./index.dOVbn71B.js";import{g as L}from"./spread.CgU5AtxT.js";import{t as Q}from"./tw-merge.Ds6tgvmq.js";import{k as ie}from"./has.BWrERxPV.js";import{w as R}from"./entry.kylZibtV.js";function ne(s){let e,i,f;const t=s[4].default,l=A(t,s,s[3],null);let o=[{class:i=Q("tab-list",s[1])},{role:"tablist"},{"aria-label":s[0]},s[2]],n={};for(let a=0;a{e=h(h({},e),I(r)),i(2,t=T(e,f)),"label"in r&&i(0,n=r.label),"class"in r&&i(1,a=r.class),"$$scope"in r&&i(3,o=r.$$scope)},[n,a,t,o,l]}class ge extends B{constructor(e){super(),H(this,e,ue,ne,P,{label:0,class:1})}}function oe(s){let e,i;const f=s[2].default,t=A(f,s,s[1],null);let l=[{class:"tabs"},s[0]],o={};for(let n=0;n{n.push(c),r.update(m=>m||c),F(()=>{const m=n.indexOf(c);n.splice(m,1),r.update(u=>u===c?n[m]||n[n.length-1]:u)})},registerPanel:c=>{a.push(c),d.update(m=>m||c),F(()=>{const m=a.indexOf(c);a.splice(m,1),d.update(u=>u===c?a[m]||a[a.length-1]:u)})},selectTab:c=>{const m=n.indexOf(c);r.set(c),d.set(a[m])},activeTab:r,activePanel:d}),s.$$set=c=>{e=h(h({},e),I(c)),i(0,t=T(e,f)),"$$scope"in c&&i(1,o=c.$$scope)},[t,o,l]}class Te extends B{constructor(e){super(),H(this,e,fe,oe,P,{})}}function z(s){let e,i,f,t,l,o,n,a;const r=s[14].default,d=A(r,s,s[13],null);let c=[{role:"tab"},{class:"tab"},{"aria-selected":s[5]},{"aria-controls":s[3]},{tabindex:t=s[5]?0:-1},{id:s[1]},{href:s[2]},{"data-testid":l=s[1]??s[8]["data-testid"]},s[9]],m={};for(let u=0;ui(12,o=_)),X(d);const Z=()=>{u||(Y(d),C&&C())};return s.$$set=_=>{i(8,e=h(h({},e),I(_))),i(9,l=T(e,t)),"label"in _&&i(0,r=_.label),"id"in _&&i(1,d=_.id),"href"in _&&i(2,c=_.href),"panelId"in _&&i(3,m=_.panelId),"disabled"in _&&i(4,u=_.disabled),"active"in _&&i(10,b=_.active),"onClick"in _&&i(11,C=_.onClick),"$$scope"in _&&i(13,a=_.$$scope)},s.$$.update=()=>{s.$$.dirty&5122&&i(5,f=ie(b)?o===d:b)},e=I(e),[r,d,c,m,u,f,U,Z,e,l,b,C,o,a,n]}class Ce extends B{constructor(e){super(),H(this,e,de,re,P,{label:0,id:1,href:2,panelId:3,disabled:4,active:10,onClick:11})}}export{Te as T,ge as a,Ce as b,W as c}; diff --git a/ui/assets/local/_app/immutable/chunks/time-format.D2wF3ave.js b/ui/assets/local/_app/immutable/chunks/time-format.BLKgLEx9.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/time-format.D2wF3ave.js rename to ui/assets/local/_app/immutable/chunks/time-format.BLKgLEx9.js index 3ce587492..334db1b50 100644 --- a/ui/assets/local/_app/immutable/chunks/time-format.D2wF3ave.js +++ b/ui/assets/local/_app/immutable/chunks/time-format.BLKgLEx9.js @@ -1 +1 @@ -import{p as da}from"./persist-store.Bvu2qNDI.js";import{r as Q,x as la,t as R,y as Ea,z as V,A as Ca,B as ca,C as ma,D as Ga,E as ka,F as Na,G as Ia}from"./format-time.6TuExJAg.js";var se={exports:{}},fe={exports:{}},de={exports:{}},le={exports:{}},ce={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){if(v.length1?"s":"")+" required, but only "+v.length+" present")}o.exports=e.default})(ce,ce.exports);var P=ce.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function v(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(t){return typeof t}:v=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(n)}function u(n){return(0,l.default)(1,arguments),n instanceof Date||v(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}o.exports=e.default})(le,le.exports);var Ua=le.exports,me={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function v(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(t){return typeof t}:v=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(n)}function u(n){(0,l.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||v(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}o.exports=e.default})(me,me.exports);var I=me.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Ua),f=u(I),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,v.default)(1,arguments),!(0,l.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}o.exports=e.default})(de,de.exports);var Ya=de.exports,ve={exports:{}},Te={exports:{}},he={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){if(f===null||f===!0||f===!1)return NaN;var v=Number(f);return isNaN(v)?v:v<0?Math.ceil(v):Math.floor(v)}o.exports=e.default})(he,he.exports);var F=he.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(F),f=u(I),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,v.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,l.default)(t);return new Date(r+c)}o.exports=e.default})(Te,Te.exports);var Wa=Te.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Wa),f=u(P),v=u(F);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,v.default)(t);return(0,l.default)(a,-r)}o.exports=e.default})(ve,ve.exports);var Ra=ve.exports,be={exports:{}},pe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=v(I),f=v(P);function v(a){return a&&a.__esModule?a:{default:a}}var u=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,l.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/u)+1}o.exports=e.default})(pe,pe.exports);var Fa=pe.exports,ge={exports:{}},Me={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=v(I),f=v(P);function v(n){return n&&n.__esModule?n:{default:n}}function u(n){(0,f.default)(1,arguments);var a=1,t=(0,l.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}o.exports=e.default})(Ae,Ae.exports);var va=Ae.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(va),f=u(aa),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,v.default)(1,arguments);var t=(0,l.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}o.exports=e.default})(_e,_e.exports);var Ha=_e.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=n(I),f=n(aa),v=n(Ha),u=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,u.default)(1,arguments);var c=(0,l.default)(r),g=(0,f.default)(c).getTime()-(0,v.default)(c).getTime();return Math.round(g/a)+1}o.exports=e.default})(ge,ge.exports);var La=ge.exports,xe={exports:{}},ye={exports:{}},H={};Object.defineProperty(H,"__esModule",{value:!0});H.getDefaultOptions=$a;H.setDefaultOptions=qa;var Ta={};function $a(){return Ta}function qa(o){Ta=o}(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var l=n(I),f=n(P),v=n(F),u=H;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,s;(0,f.default)(1,arguments);var m=(0,u.getDefaultOptions)(),i=(0,v.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:m.weekStartsOn)!==null&&g!==void 0?g:(T=m.locale)===null||T===void 0||(s=T.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&c!==void 0?c:0);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,l.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,v.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,v.default)(_,c);return i.getTime()>=y.getTime()?d+1:i.getTime()>=A.getTime()?d:d-1}o.exports=e.default})(De,De.exports);var ha=De.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=a(ha),f=a(P),v=a(ta),u=a(F),n=H;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,s,m;(0,f.default)(1,arguments);var i=(0,n.getDefaultOptions)(),d=(0,u.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:i.firstWeekContainsDate)!==null&&x!==void 0?x:(s=i.locale)===null||s===void 0||(m=s.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,l.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,v.default)(w,c);return S}o.exports=e.default})(we,we.exports);var Ba=we.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=n(I),f=n(ta),v=n(Ba),u=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,u.default)(1,arguments);var g=(0,l.default)(r),x=(0,f.default)(g,c).getTime()-(0,v.default)(g,c).getTime();return Math.round(x/a)+1}o.exports=e.default})(xe,xe.exports);var Xa=xe.exports,Se={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){for(var u=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,l.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,l.default)(r+1,2)},d:function(a,t){return(0,l.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,l.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,l.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,l.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,l.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,l.default)(g,t.length)}},u=v;e.default=u,o.exports=e.default})(ze,ze.exports);var Za=ze.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(Fa),f=r(La),v=r(va),u=r(Xa),n=r(ha),a=r(ba),t=r(Za);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(s,m,i){var d=s.getUTCFullYear()>0?1:0;switch(m){case"G":case"GG":case"GGG":return i.era(d,{width:"abbreviated"});case"GGGGG":return i.era(d,{width:"narrow"});case"GGGG":default:return i.era(d,{width:"wide"})}},y:function(s,m,i){if(m==="yo"){var d=s.getUTCFullYear(),b=d>0?d:1-d;return i.ordinalNumber(b,{unit:"year"})}return t.default.y(s,m)},Y:function(s,m,i,d){var b=(0,n.default)(s,d),w=b>0?b:1-b;if(m==="YY"){var S=w%100;return(0,a.default)(S,2)}return m==="Yo"?i.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,m.length)},R:function(s,m){var i=(0,v.default)(s);return(0,a.default)(i,m.length)},u:function(s,m){var i=s.getUTCFullYear();return(0,a.default)(i,m.length)},Q:function(s,m,i){var d=Math.ceil((s.getUTCMonth()+1)/3);switch(m){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return i.ordinalNumber(d,{unit:"quarter"});case"QQQ":return i.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(d,{width:"wide",context:"formatting"})}},q:function(s,m,i){var d=Math.ceil((s.getUTCMonth()+1)/3);switch(m){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return i.ordinalNumber(d,{unit:"quarter"});case"qqq":return i.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(d,{width:"wide",context:"standalone"})}},M:function(s,m,i){var d=s.getUTCMonth();switch(m){case"M":case"MM":return t.default.M(s,m);case"Mo":return i.ordinalNumber(d+1,{unit:"month"});case"MMM":return i.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(d,{width:"wide",context:"formatting"})}},L:function(s,m,i){var d=s.getUTCMonth();switch(m){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return i.ordinalNumber(d+1,{unit:"month"});case"LLL":return i.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(d,{width:"wide",context:"standalone"})}},w:function(s,m,i,d){var b=(0,u.default)(s,d);return m==="wo"?i.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,m.length)},I:function(s,m,i){var d=(0,f.default)(s);return m==="Io"?i.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,m.length)},d:function(s,m,i){return m==="do"?i.ordinalNumber(s.getUTCDate(),{unit:"date"}):t.default.d(s,m)},D:function(s,m,i){var d=(0,l.default)(s);return m==="Do"?i.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,m.length)},E:function(s,m,i){var d=s.getUTCDay();switch(m){case"E":case"EE":case"EEE":return i.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(d,{width:"short",context:"formatting"});case"EEEE":default:return i.day(d,{width:"wide",context:"formatting"})}},e:function(s,m,i,d){var b=s.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(m){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return i.ordinalNumber(w,{unit:"day"});case"eee":return i.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(b,{width:"short",context:"formatting"});case"eeee":default:return i.day(b,{width:"wide",context:"formatting"})}},c:function(s,m,i,d){var b=s.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(m){case"c":return String(w);case"cc":return(0,a.default)(w,m.length);case"co":return i.ordinalNumber(w,{unit:"day"});case"ccc":return i.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(b,{width:"narrow",context:"standalone"});case"cccccc":return i.day(b,{width:"short",context:"standalone"});case"cccc":default:return i.day(b,{width:"wide",context:"standalone"})}},i:function(s,m,i){var d=s.getUTCDay(),b=d===0?7:d;switch(m){case"i":return String(b);case"ii":return(0,a.default)(b,m.length);case"io":return i.ordinalNumber(b,{unit:"day"});case"iii":return i.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(d,{width:"short",context:"formatting"});case"iiii":default:return i.day(d,{width:"wide",context:"formatting"})}},a:function(s,m,i){var d=s.getUTCHours(),b=d/12>=1?"pm":"am";switch(m){case"a":case"aa":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(s,m,i){var d=s.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",m){case"b":case"bb":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(s,m,i){var d=s.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,m){case"B":case"BB":case"BBB":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(s,m,i){if(m==="ho"){var d=s.getUTCHours()%12;return d===0&&(d=12),i.ordinalNumber(d,{unit:"hour"})}return t.default.h(s,m)},H:function(s,m,i){return m==="Ho"?i.ordinalNumber(s.getUTCHours(),{unit:"hour"}):t.default.H(s,m)},K:function(s,m,i){var d=s.getUTCHours()%12;return m==="Ko"?i.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,m.length)},k:function(s,m,i){var d=s.getUTCHours();return d===0&&(d=24),m==="ko"?i.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,m.length)},m:function(s,m,i){return m==="mo"?i.ordinalNumber(s.getUTCMinutes(),{unit:"minute"}):t.default.m(s,m)},s:function(s,m,i){return m==="so"?i.ordinalNumber(s.getUTCSeconds(),{unit:"second"}):t.default.s(s,m)},S:function(s,m){return t.default.S(s,m)},X:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();if(w===0)return"Z";switch(m){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(s,m,i,d){var b=d._originalDate||s,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,m.length)},T:function(s,m,i,d){var b=d._originalDate||s,w=b.getTime();return(0,a.default)(w,m.length)}};function x(T,s){var m=T>0?"-":"+",i=Math.abs(T),d=Math.floor(i/60),b=i%60;if(b===0)return m+String(d);var w=s;return m+String(d)+w+(0,a.default)(b,2)}function h(T,s){if(T%60===0){var m=T>0?"-":"+";return m+(0,a.default)(Math.abs(T)/60,2)}return M(T,s)}function M(T,s){var m=s||"",i=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return i+b+m+w}var p=g;e.default=p,o.exports=e.default})(be,be.exports);var Va=be.exports,Oe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},v=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return l(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",l(g,r)).replace("{{time}}",f(x,r))},u={p:f,P:v},n=u;e.default=n,o.exports=e.default})(Oe,Oe.exports);var Ka=Oe.exports,Pe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){var v=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return v.setUTCFullYear(f.getFullYear()),f.getTime()-v.getTime()}o.exports=e.default})(Pe,Pe.exports);var pa=Pe.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=ja;q.isProtectedWeekYearToken=et;q.throwProtectedError=at;var Qa=["D","DD"],Ja=["YY","YYYY"];function ja(o){return Qa.indexOf(o)!==-1}function et(o){return Ja.indexOf(o)!==-1}function at(o,e,l){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ee={exports:{}},Ce={exports:{}},Ge={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=l[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},v=f;e.default=v,o.exports=e.default})(Ge,Ge.exports);var tt=Ge.exports,ke={exports:{}},Ne={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=v.width?String(v.width):f.defaultWidth,n=f.formats[u]||f.formats[f.defaultWidth];return n}}o.exports=e.default})(Ne,Ne.exports);var rt=Ne.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(rt);function f(r){return r&&r.__esModule?r:{default:r}}var v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},u={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,l.default)({formats:v,defaultWidth:"full"}),time:(0,l.default)({formats:u,defaultWidth:"full"}),dateTime:(0,l.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,o.exports=e.default})(ke,ke.exports);var nt=ke.exports,Ie={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return l[n]},v=f;e.default=v,o.exports=e.default})(Ie,Ie.exports);var it=Ie.exports,Ue={exports:{}},Ye={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){return function(v,u){var n=u!=null&&u.context?String(u.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=u!=null&&u.width?String(u.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=u!=null&&u.width?String(u.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(v):v;return a[x]}}o.exports=e.default})(Ye,Ye.exports);var ot=Ye.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(ot);function f(h){return h&&h.__esModule?h:{default:h}}var v={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),s=T%100;if(s>20||s<10)switch(s%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,l.default)({values:v,defaultWidth:"wide"}),quarter:(0,l.default)({values:u,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,l.default)({values:n,defaultWidth:"wide"}),day:(0,l.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,l.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,o.exports=e.default})(Ue,Ue.exports);var ut=Ue.exports,We={exports:{}},Re={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(u){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&u.matchPatterns[t]||u.matchPatterns[u.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&u.parsePatterns[t]||u.parsePatterns[u.defaultParseWidth],h=Array.isArray(x)?v(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=u.valueCallback?u.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(u,n){for(var a in u)if(u.hasOwnProperty(a)&&n(u[a]))return a}function v(u,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=v.match(f.matchPattern);if(!n)return null;var a=n[0],t=v.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=u.valueCallback?u.valueCallback(r):r;var c=v.slice(a.length);return{value:r,rest:c}}}o.exports=e.default})(Fe,Fe.exports);var ft=Fe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=v(st),f=v(ft);function v(i){return i&&i.__esModule?i:{default:i}}var u=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},s={ordinalNumber:(0,f.default)({matchPattern:u,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,l.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,l.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,l.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,l.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,l.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},m=s;e.default=m,o.exports=e.default})(We,We.exports);var dt=We.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=a(tt),f=a(nt),v=a(it),u=a(ut),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:l.default,formatLong:f.default,formatRelative:v.default,localize:u.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,o.exports=e.default})(Ce,Ce.exports);var lt=Ce.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(lt);function f(u){return u&&u.__esModule?u:{default:u}}var v=l.default;e.default=v,o.exports=e.default})(Ee,Ee.exports);var ct=Ee.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var l=h(Ya),f=h(Ra),v=h(I),u=h(Va),n=h(Ka),a=h(pa),t=q,r=h(F),c=h(P),g=H,x=h(ct);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,s=/''/g,m=/[a-zA-Z]/;function i(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,j,ee,ae,te,re,ne;(0,c.default)(2,arguments);var Da=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,ie=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(ie>=1&&ie<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var oe=(0,r.default)((k=(N=(j=(ee=S==null?void 0:S.weekStartsOn)!==null&&ee!==void 0?ee:S==null||(ae=S.locale)===null||ae===void 0||(te=ae.options)===null||te===void 0?void 0:te.weekStartsOn)!==null&&j!==void 0?j:L.weekStartsOn)!==null&&N!==void 0?N:(re=L.locale)===null||re===void 0||(ne=re.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&k!==void 0?k:0);if(!(oe>=0&&oe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,v.default)(b);if(!(0,l.default)(X))throw new RangeError("Invalid time value");var Sa=(0,a.default)(X),za=(0,f.default)(X,Sa),Oa={firstWeekContainsDate:ie,weekStartsOn:oe,locale:$,_originalDate:X},Pa=Da.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=u.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(za,E,$.localize,Oa);if(W.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Pa}function d(b){var w=b.match(T);return w?w[1].replace(s,"'"):b}o.exports=e.default})(fe,fe.exports);var mt=fe.exports,He={exports:{}},Le={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(n,a,t){var r=u(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):v(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function v(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function u(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}o.exports=e.default})(Le,Le.exports);var vt=Le.exports,$e={exports:{}},qe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(t,r){var c=a(r);return c.formatToParts?v(c,t):u(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function v(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function u(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}o.exports=e.default})(qe,qe.exports);var Tt=qe.exports,Be={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v,u,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,v,u),c.setUTCHours(n,a,t,r),c}o.exports=e.default})(Be,Be.exports);var ga=Be.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=v(Tt),f=v(ga);function v(p){return p&&p.__esModule?p:{default:p}}var u=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,s){var m,i;if(p===""||(m=a.timezoneZ.exec(p),m))return 0;var d;if(m=a.timezoneHH.exec(p),m)return d=parseInt(m[1],10),x(d)?-(d*u):NaN;if(m=a.timezoneHHMM.exec(p),m){d=parseInt(m[1],10);var b=parseInt(m[2],10);return x(d,b)?(i=Math.abs(d)*u+b*n,d>0?-i:i):NaN}if(M(p)){T=new Date(T||Date.now());var w=s?T:r(T),S=c(w,p),y=s?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var s=(0,l.default)(p,T),m=(0,f.default)(s[0],s[1]-1,s[2],s[3]%24,s[4],s[5],0).getTime(),i=p.getTime(),d=i%1e3;return i-=d>=0?d:1e3+d,m-i}function g(p,T,s){var m=p.getTime(),i=m-T,d=c(new Date(i),s);if(T===d)return T;i-=d-T;var b=c(new Date(i),s);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}o.exports=e.default})($e,$e.exports);var B=$e.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=v(vt),f=v(B);function v(h){return h&&h.__esModule?h:{default:h}}var u=60*1e3,n={X:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);if(s===0)return"Z";switch(M){case"X":return c(s);case"XXXX":case"XX":return r(s);case"XXXXX":case"XXX":default:return r(s,":")}},x:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(s);case"xxxx":case"xx":return r(s);case"xxxxx":case"xxx":default:return r(s,":")}},O:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(s,":");case"OOOO":default:return"GMT"+r(s,":")}},z:function(h,M,p,T){var s=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,l.default)("short",s,T);case"zzzz":default:return(0,l.default)("long",s,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/u:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",s=Math.abs(h),m=t(Math.floor(s/60),2),i=t(Math.floor(s%60),2);return T+m+p+i}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),s=Math.floor(T/60),m=T%60;if(m===0)return p+String(s);var i=M;return p+String(s)+i+t(m,2)}var x=n;e.default=x,o.exports=e.default})(He,He.exports);var ht=He.exports,Xe={exports:{}},Ze={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=l;e.default=f,o.exports=e.default})(Ze,Ze.exports);var Ma=Ze.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var l=n(F),f=n(pa),v=n(B),u=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:u.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,l.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,v.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var s=[31,28,31,30,31,30,31,31,30,31,30,31],m=[31,29,31,30,31,30,31,31,30,31,30,31];function i(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=i(y);if(D&&A>m[_]||!D&&A>s[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=i(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}o.exports=e.default})(Xe,Xe.exports);var J=Xe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var l=u(mt),f=u(ht),v=u(J);function u(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,v.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var s=p.indexOf(T),m=p[s-1]==="'",i=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return m?i.substring(0,s-1)+i.substring(s+1):i},g)}return(0,l.default)(t,g,x)}o.exports=e.default})(se,se.exports);var _a=se.exports,Ve={exports:{}},Ke={exports:{}},Qe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var u in v)Object.prototype.hasOwnProperty.call(v,u)&&(f[u]=v[u]);return f}o.exports=e.default})(Qe,Qe.exports);var bt=Qe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var l=f(bt);function f(u){return u&&u.__esModule?u:{default:u}}function v(u){return(0,l.default)({},u)}o.exports=e.default})(Ke,Ke.exports);var Aa=Ke.exports,Je={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=v(B),f=v(J);function v(n){return n&&n.__esModule?n:{default:n}}function u(n,a,t){var r=(0,f.default)(n,t),c=(0,l.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}o.exports=e.default})(Je,Je.exports);var xa=Je.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Aa),f=u(_a),v=u(xa);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,l.default)(c);return g.timeZone=t,(0,f.default)((0,v.default)(a,t),r,g)}o.exports=e.default})(Ve,Ve.exports);var pt=Ve.exports,je={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var l=f(B);function f(u){return u&&u.__esModule?u:{default:u}}function v(u,n){return-(0,l.default)(u,n)}o.exports=e.default})(je,je.exports);var gt=je.exports,ea={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=a(Aa),f=a(J),v=a(Ma),u=a(B),n=a(ga);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(v.default)){var x=(0,l.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,u.default)(c,new Date(M));return new Date(M+p)}o.exports=e.default})(ea,ea.exports);var Mt=ea.exports,ia={format:_a,formatInTimeZone:pt,getTimezoneOffset:gt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:Mt};function ra(o,e){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l]);return o}function ya(o){return ra({},o)}var oa=1440,_t=2520,ue=43200,At=86400;function xt(o,e,l){var f,v;Q(2,arguments);var u=ma(),n=(f=(v=void 0)!==null&&v!==void 0?v:u.locale)!==null&&f!==void 0?f:ca;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=la(o,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ra(ya(l),{addSuffix:!1,comparison:a}),r,c;a>0?(r=R(e),c=R(o)):(r=R(o),c=R(e));var g=Ea(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(o)):(c=R(o),g=R(e));var x=String((u=void 0)!==null&&u!==void 0?u:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),s=(M-T)/ua,m=void 0,i;if(p<1?i="second":p<60?i="minute":p9?`${l}:00`:`0${l}:00`;if(o>0)return`${e}+${f}`;if(o<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function zt(){const o=wa(),e=Ot.find(({zones:l})=>l==null?void 0:l.includes(o));return e?`${e.label} (${e.abbr})`:o}function It(o){if(o==="local")return zt();const e=na[o];return e?`${o} (${e.abbr})`:o}function Ut({date:o=new Date,hour:e=0,minute:l=0,second:f=0}={}){const v=Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),Number(e),Number(l),Number(f));return new Date(v).toISOString()}const Yt=da("timeFormat","UTC"),Wt=da("relativeTime",!1),na={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Ot=Object.entries(na).map(([o,e])=>({label:o,value:o,...e})).sort((o,e)=>o.label>e.label?1:e.label>o.label?-1:0),Pt=o=>{var e;return o==="local"?wa():((e=na[o])==null?void 0:e.zones[0])??o};export{Ot as T,It as a,Pt as b,zt as c,ia as d,na as e,Gt as f,Ut as g,Nt as h,kt as i,Wt as r,Yt as t}; +import{p as da}from"./persist-store.DeOEcwHN.js";import{r as Q,x as la,t as R,y as Ea,z as V,A as Ca,B as ca,C as ma,D as Ga,E as ka,F as Na,G as Ia}from"./format-time.6TuExJAg.js";var se={exports:{}},fe={exports:{}},de={exports:{}},le={exports:{}},ce={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){if(v.length1?"s":"")+" required, but only "+v.length+" present")}o.exports=e.default})(ce,ce.exports);var P=ce.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function v(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(t){return typeof t}:v=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(n)}function u(n){return(0,l.default)(1,arguments),n instanceof Date||v(n)==="object"&&Object.prototype.toString.call(n)==="[object Date]"}o.exports=e.default})(le,le.exports);var Ua=le.exports,me={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=f(P);function f(n){return n&&n.__esModule?n:{default:n}}function v(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(t){return typeof t}:v=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(n)}function u(n){(0,l.default)(1,arguments);var a=Object.prototype.toString.call(n);return n instanceof Date||v(n)==="object"&&a==="[object Date]"?new Date(n.getTime()):typeof n=="number"||a==="[object Number]"?new Date(n):((typeof n=="string"||a==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}o.exports=e.default})(me,me.exports);var I=me.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Ua),f=u(I),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a){if((0,v.default)(1,arguments),!(0,l.default)(a)&&typeof a!="number")return!1;var t=(0,f.default)(a);return!isNaN(Number(t))}o.exports=e.default})(de,de.exports);var Ya=de.exports,ve={exports:{}},Te={exports:{}},he={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){if(f===null||f===!0||f===!1)return NaN;var v=Number(f);return isNaN(v)?v:v<0?Math.ceil(v):Math.floor(v)}o.exports=e.default})(he,he.exports);var F=he.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(F),f=u(I),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,v.default)(2,arguments);var r=(0,f.default)(a).getTime(),c=(0,l.default)(t);return new Date(r+c)}o.exports=e.default})(Te,Te.exports);var Wa=Te.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Wa),f=u(P),v=u(F);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t){(0,f.default)(2,arguments);var r=(0,v.default)(t);return(0,l.default)(a,-r)}o.exports=e.default})(ve,ve.exports);var Ra=ve.exports,be={exports:{}},pe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=v(I),f=v(P);function v(a){return a&&a.__esModule?a:{default:a}}var u=864e5;function n(a){(0,f.default)(1,arguments);var t=(0,l.default)(a),r=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var c=t.getTime(),g=r-c;return Math.floor(g/u)+1}o.exports=e.default})(pe,pe.exports);var Fa=pe.exports,ge={exports:{}},Me={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=v(I),f=v(P);function v(n){return n&&n.__esModule?n:{default:n}}function u(n){(0,f.default)(1,arguments);var a=1,t=(0,l.default)(n),r=t.getUTCDay(),c=(r=g.getTime()?r+1:t.getTime()>=h.getTime()?r:r-1}o.exports=e.default})(Ae,Ae.exports);var va=Ae.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(va),f=u(aa),v=u(P);function u(a){return a&&a.__esModule?a:{default:a}}function n(a){(0,v.default)(1,arguments);var t=(0,l.default)(a),r=new Date(0);r.setUTCFullYear(t,0,4),r.setUTCHours(0,0,0,0);var c=(0,f.default)(r);return c}o.exports=e.default})(_e,_e.exports);var Ha=_e.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=n(I),f=n(aa),v=n(Ha),u=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r){(0,u.default)(1,arguments);var c=(0,l.default)(r),g=(0,f.default)(c).getTime()-(0,v.default)(c).getTime();return Math.round(g/a)+1}o.exports=e.default})(ge,ge.exports);var La=ge.exports,xe={exports:{}},ye={exports:{}},H={};Object.defineProperty(H,"__esModule",{value:!0});H.getDefaultOptions=$a;H.setDefaultOptions=qa;var Ta={};function $a(){return Ta}function qa(o){Ta=o}(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var l=n(I),f=n(P),v=n(F),u=H;function n(t){return t&&t.__esModule?t:{default:t}}function a(t,r){var c,g,x,h,M,p,T,s;(0,f.default)(1,arguments);var m=(0,u.getDefaultOptions)(),i=(0,v.default)((c=(g=(x=(h=r==null?void 0:r.weekStartsOn)!==null&&h!==void 0?h:r==null||(M=r.locale)===null||M===void 0||(p=M.options)===null||p===void 0?void 0:p.weekStartsOn)!==null&&x!==void 0?x:m.weekStartsOn)!==null&&g!==void 0?g:(T=m.locale)===null||T===void 0||(s=T.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&c!==void 0?c:0);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=(0,l.default)(t),b=d.getUTCDay(),w=(b=1&&w<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=new Date(0);S.setUTCFullYear(d+1,0,w),S.setUTCHours(0,0,0,0);var y=(0,v.default)(S,c),_=new Date(0);_.setUTCFullYear(d,0,w),_.setUTCHours(0,0,0,0);var A=(0,v.default)(_,c);return i.getTime()>=y.getTime()?d+1:i.getTime()>=A.getTime()?d:d-1}o.exports=e.default})(De,De.exports);var ha=De.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=a(ha),f=a(P),v=a(ta),u=a(F),n=H;function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c){var g,x,h,M,p,T,s,m;(0,f.default)(1,arguments);var i=(0,n.getDefaultOptions)(),d=(0,u.default)((g=(x=(h=(M=c==null?void 0:c.firstWeekContainsDate)!==null&&M!==void 0?M:c==null||(p=c.locale)===null||p===void 0||(T=p.options)===null||T===void 0?void 0:T.firstWeekContainsDate)!==null&&h!==void 0?h:i.firstWeekContainsDate)!==null&&x!==void 0?x:(s=i.locale)===null||s===void 0||(m=s.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&g!==void 0?g:1),b=(0,l.default)(r,c),w=new Date(0);w.setUTCFullYear(b,0,d),w.setUTCHours(0,0,0,0);var S=(0,v.default)(w,c);return S}o.exports=e.default})(we,we.exports);var Ba=we.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=n(I),f=n(ta),v=n(Ba),u=n(P);function n(r){return r&&r.__esModule?r:{default:r}}var a=6048e5;function t(r,c){(0,u.default)(1,arguments);var g=(0,l.default)(r),x=(0,f.default)(g,c).getTime()-(0,v.default)(g,c).getTime();return Math.round(x/a)+1}o.exports=e.default})(xe,xe.exports);var Xa=xe.exports,Se={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){for(var u=f<0?"-":"",n=Math.abs(f).toString();n.length0?r:1-r;return(0,l.default)(t==="yy"?c%100:c,t.length)},M:function(a,t){var r=a.getUTCMonth();return t==="M"?String(r+1):(0,l.default)(r+1,2)},d:function(a,t){return(0,l.default)(a.getUTCDate(),t.length)},a:function(a,t){var r=a.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(a,t){return(0,l.default)(a.getUTCHours()%12||12,t.length)},H:function(a,t){return(0,l.default)(a.getUTCHours(),t.length)},m:function(a,t){return(0,l.default)(a.getUTCMinutes(),t.length)},s:function(a,t){return(0,l.default)(a.getUTCSeconds(),t.length)},S:function(a,t){var r=t.length,c=a.getUTCMilliseconds(),g=Math.floor(c*Math.pow(10,r-3));return(0,l.default)(g,t.length)}},u=v;e.default=u,o.exports=e.default})(ze,ze.exports);var Za=ze.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=r(Fa),f=r(La),v=r(va),u=r(Xa),n=r(ha),a=r(ba),t=r(Za);function r(T){return T&&T.__esModule?T:{default:T}}var c={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},g={G:function(s,m,i){var d=s.getUTCFullYear()>0?1:0;switch(m){case"G":case"GG":case"GGG":return i.era(d,{width:"abbreviated"});case"GGGGG":return i.era(d,{width:"narrow"});case"GGGG":default:return i.era(d,{width:"wide"})}},y:function(s,m,i){if(m==="yo"){var d=s.getUTCFullYear(),b=d>0?d:1-d;return i.ordinalNumber(b,{unit:"year"})}return t.default.y(s,m)},Y:function(s,m,i,d){var b=(0,n.default)(s,d),w=b>0?b:1-b;if(m==="YY"){var S=w%100;return(0,a.default)(S,2)}return m==="Yo"?i.ordinalNumber(w,{unit:"year"}):(0,a.default)(w,m.length)},R:function(s,m){var i=(0,v.default)(s);return(0,a.default)(i,m.length)},u:function(s,m){var i=s.getUTCFullYear();return(0,a.default)(i,m.length)},Q:function(s,m,i){var d=Math.ceil((s.getUTCMonth()+1)/3);switch(m){case"Q":return String(d);case"QQ":return(0,a.default)(d,2);case"Qo":return i.ordinalNumber(d,{unit:"quarter"});case"QQQ":return i.quarter(d,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(d,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(d,{width:"wide",context:"formatting"})}},q:function(s,m,i){var d=Math.ceil((s.getUTCMonth()+1)/3);switch(m){case"q":return String(d);case"qq":return(0,a.default)(d,2);case"qo":return i.ordinalNumber(d,{unit:"quarter"});case"qqq":return i.quarter(d,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(d,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(d,{width:"wide",context:"standalone"})}},M:function(s,m,i){var d=s.getUTCMonth();switch(m){case"M":case"MM":return t.default.M(s,m);case"Mo":return i.ordinalNumber(d+1,{unit:"month"});case"MMM":return i.month(d,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(d,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(d,{width:"wide",context:"formatting"})}},L:function(s,m,i){var d=s.getUTCMonth();switch(m){case"L":return String(d+1);case"LL":return(0,a.default)(d+1,2);case"Lo":return i.ordinalNumber(d+1,{unit:"month"});case"LLL":return i.month(d,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(d,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(d,{width:"wide",context:"standalone"})}},w:function(s,m,i,d){var b=(0,u.default)(s,d);return m==="wo"?i.ordinalNumber(b,{unit:"week"}):(0,a.default)(b,m.length)},I:function(s,m,i){var d=(0,f.default)(s);return m==="Io"?i.ordinalNumber(d,{unit:"week"}):(0,a.default)(d,m.length)},d:function(s,m,i){return m==="do"?i.ordinalNumber(s.getUTCDate(),{unit:"date"}):t.default.d(s,m)},D:function(s,m,i){var d=(0,l.default)(s);return m==="Do"?i.ordinalNumber(d,{unit:"dayOfYear"}):(0,a.default)(d,m.length)},E:function(s,m,i){var d=s.getUTCDay();switch(m){case"E":case"EE":case"EEE":return i.day(d,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(d,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(d,{width:"short",context:"formatting"});case"EEEE":default:return i.day(d,{width:"wide",context:"formatting"})}},e:function(s,m,i,d){var b=s.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(m){case"e":return String(w);case"ee":return(0,a.default)(w,2);case"eo":return i.ordinalNumber(w,{unit:"day"});case"eee":return i.day(b,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(b,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(b,{width:"short",context:"formatting"});case"eeee":default:return i.day(b,{width:"wide",context:"formatting"})}},c:function(s,m,i,d){var b=s.getUTCDay(),w=(b-d.weekStartsOn+8)%7||7;switch(m){case"c":return String(w);case"cc":return(0,a.default)(w,m.length);case"co":return i.ordinalNumber(w,{unit:"day"});case"ccc":return i.day(b,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(b,{width:"narrow",context:"standalone"});case"cccccc":return i.day(b,{width:"short",context:"standalone"});case"cccc":default:return i.day(b,{width:"wide",context:"standalone"})}},i:function(s,m,i){var d=s.getUTCDay(),b=d===0?7:d;switch(m){case"i":return String(b);case"ii":return(0,a.default)(b,m.length);case"io":return i.ordinalNumber(b,{unit:"day"});case"iii":return i.day(d,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(d,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(d,{width:"short",context:"formatting"});case"iiii":default:return i.day(d,{width:"wide",context:"formatting"})}},a:function(s,m,i){var d=s.getUTCHours(),b=d/12>=1?"pm":"am";switch(m){case"a":case"aa":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},b:function(s,m,i){var d=s.getUTCHours(),b;switch(d===12?b=c.noon:d===0?b=c.midnight:b=d/12>=1?"pm":"am",m){case"b":case"bb":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},B:function(s,m,i){var d=s.getUTCHours(),b;switch(d>=17?b=c.evening:d>=12?b=c.afternoon:d>=4?b=c.morning:b=c.night,m){case"B":case"BB":case"BBB":return i.dayPeriod(b,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(b,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(b,{width:"wide",context:"formatting"})}},h:function(s,m,i){if(m==="ho"){var d=s.getUTCHours()%12;return d===0&&(d=12),i.ordinalNumber(d,{unit:"hour"})}return t.default.h(s,m)},H:function(s,m,i){return m==="Ho"?i.ordinalNumber(s.getUTCHours(),{unit:"hour"}):t.default.H(s,m)},K:function(s,m,i){var d=s.getUTCHours()%12;return m==="Ko"?i.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,m.length)},k:function(s,m,i){var d=s.getUTCHours();return d===0&&(d=24),m==="ko"?i.ordinalNumber(d,{unit:"hour"}):(0,a.default)(d,m.length)},m:function(s,m,i){return m==="mo"?i.ordinalNumber(s.getUTCMinutes(),{unit:"minute"}):t.default.m(s,m)},s:function(s,m,i){return m==="so"?i.ordinalNumber(s.getUTCSeconds(),{unit:"second"}):t.default.s(s,m)},S:function(s,m){return t.default.S(s,m)},X:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();if(w===0)return"Z";switch(m){case"X":return h(w);case"XXXX":case"XX":return M(w);case"XXXXX":case"XXX":default:return M(w,":")}},x:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"x":return h(w);case"xxxx":case"xx":return M(w);case"xxxxx":case"xxx":default:return M(w,":")}},O:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"O":case"OO":case"OOO":return"GMT"+x(w,":");case"OOOO":default:return"GMT"+M(w,":")}},z:function(s,m,i,d){var b=d._originalDate||s,w=b.getTimezoneOffset();switch(m){case"z":case"zz":case"zzz":return"GMT"+x(w,":");case"zzzz":default:return"GMT"+M(w,":")}},t:function(s,m,i,d){var b=d._originalDate||s,w=Math.floor(b.getTime()/1e3);return(0,a.default)(w,m.length)},T:function(s,m,i,d){var b=d._originalDate||s,w=b.getTime();return(0,a.default)(w,m.length)}};function x(T,s){var m=T>0?"-":"+",i=Math.abs(T),d=Math.floor(i/60),b=i%60;if(b===0)return m+String(d);var w=s;return m+String(d)+w+(0,a.default)(b,2)}function h(T,s){if(T%60===0){var m=T>0?"-":"+";return m+(0,a.default)(Math.abs(T)/60,2)}return M(T,s)}function M(T,s){var m=s||"",i=T>0?"-":"+",d=Math.abs(T),b=(0,a.default)(Math.floor(d/60),2),w=(0,a.default)(d%60,2);return i+b+m+w}var p=g;e.default=p,o.exports=e.default})(be,be.exports);var Va=be.exports,Oe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=function(t,r){switch(t){case"P":return r.date({width:"short"});case"PP":return r.date({width:"medium"});case"PPP":return r.date({width:"long"});case"PPPP":default:return r.date({width:"full"})}},f=function(t,r){switch(t){case"p":return r.time({width:"short"});case"pp":return r.time({width:"medium"});case"ppp":return r.time({width:"long"});case"pppp":default:return r.time({width:"full"})}},v=function(t,r){var c=t.match(/(P+)(p+)?/)||[],g=c[1],x=c[2];if(!x)return l(t,r);var h;switch(g){case"P":h=r.dateTime({width:"short"});break;case"PP":h=r.dateTime({width:"medium"});break;case"PPP":h=r.dateTime({width:"long"});break;case"PPPP":default:h=r.dateTime({width:"full"});break}return h.replace("{{date}}",l(g,r)).replace("{{time}}",f(x,r))},u={p:f,P:v},n=u;e.default=n,o.exports=e.default})(Oe,Oe.exports);var Ka=Oe.exports,Pe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){var v=new Date(Date.UTC(f.getFullYear(),f.getMonth(),f.getDate(),f.getHours(),f.getMinutes(),f.getSeconds(),f.getMilliseconds()));return v.setUTCFullYear(f.getFullYear()),f.getTime()-v.getTime()}o.exports=e.default})(Pe,Pe.exports);var pa=Pe.exports,q={};Object.defineProperty(q,"__esModule",{value:!0});q.isProtectedDayOfYearToken=ja;q.isProtectedWeekYearToken=et;q.throwProtectedError=at;var Qa=["D","DD"],Ja=["YY","YYYY"];function ja(o){return Qa.indexOf(o)!==-1}function et(o){return Ja.indexOf(o)!==-1}function at(o,e,l){if(o==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(o==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(l,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ee={exports:{}},Ce={exports:{}},Ge={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},f=function(n,a,t){var r,c=l[n];return typeof c=="string"?r=c:a===1?r=c.one:r=c.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+r:r+" ago":r},v=f;e.default=v,o.exports=e.default})(Ge,Ge.exports);var tt=Ge.exports,ke={exports:{}},Ne={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){return function(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=v.width?String(v.width):f.defaultWidth,n=f.formats[u]||f.formats[f.defaultWidth];return n}}o.exports=e.default})(Ne,Ne.exports);var rt=Ne.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(rt);function f(r){return r&&r.__esModule?r:{default:r}}var v={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},u={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},n={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},a={date:(0,l.default)({formats:v,defaultWidth:"full"}),time:(0,l.default)({formats:u,defaultWidth:"full"}),dateTime:(0,l.default)({formats:n,defaultWidth:"full"})},t=a;e.default=t,o.exports=e.default})(ke,ke.exports);var nt=ke.exports,Ie={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f=function(n,a,t,r){return l[n]},v=f;e.default=v,o.exports=e.default})(Ie,Ie.exports);var it=Ie.exports,Ue={exports:{}},Ye={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f){return function(v,u){var n=u!=null&&u.context?String(u.context):"standalone",a;if(n==="formatting"&&f.formattingValues){var t=f.defaultFormattingWidth||f.defaultWidth,r=u!=null&&u.width?String(u.width):t;a=f.formattingValues[r]||f.formattingValues[t]}else{var c=f.defaultWidth,g=u!=null&&u.width?String(u.width):f.defaultWidth;a=f.values[g]||f.values[c]}var x=f.argumentCallback?f.argumentCallback(v):v;return a[x]}}o.exports=e.default})(Ye,Ye.exports);var ot=Ye.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(ot);function f(h){return h&&h.__esModule?h:{default:h}}var v={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},u={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},n={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},t={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},r={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},c=function(M,p){var T=Number(M),s=T%100;if(s>20||s<10)switch(s%10){case 1:return T+"st";case 2:return T+"nd";case 3:return T+"rd"}return T+"th"},g={ordinalNumber:c,era:(0,l.default)({values:v,defaultWidth:"wide"}),quarter:(0,l.default)({values:u,defaultWidth:"wide",argumentCallback:function(M){return M-1}}),month:(0,l.default)({values:n,defaultWidth:"wide"}),day:(0,l.default)({values:a,defaultWidth:"wide"}),dayPeriod:(0,l.default)({values:t,defaultWidth:"wide",formattingValues:r,defaultFormattingWidth:"wide"})},x=g;e.default=x,o.exports=e.default})(Ue,Ue.exports);var ut=Ue.exports,We={exports:{}},Re={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(u){return function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=a.width,r=t&&u.matchPatterns[t]||u.matchPatterns[u.defaultMatchWidth],c=n.match(r);if(!c)return null;var g=c[0],x=t&&u.parsePatterns[t]||u.parsePatterns[u.defaultParseWidth],h=Array.isArray(x)?v(x,function(T){return T.test(g)}):f(x,function(T){return T.test(g)}),M;M=u.valueCallback?u.valueCallback(h):h,M=a.valueCallback?a.valueCallback(M):M;var p=n.slice(g.length);return{value:M,rest:p}}}function f(u,n){for(var a in u)if(u.hasOwnProperty(a)&&n(u[a]))return a}function v(u,n){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},n=v.match(f.matchPattern);if(!n)return null;var a=n[0],t=v.match(f.parsePattern);if(!t)return null;var r=f.valueCallback?f.valueCallback(t[0]):t[0];r=u.valueCallback?u.valueCallback(r):r;var c=v.slice(a.length);return{value:r,rest:c}}}o.exports=e.default})(Fe,Fe.exports);var ft=Fe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=v(st),f=v(ft);function v(i){return i&&i.__esModule?i:{default:i}}var u=/^(\d+)(th|st|nd|rd)?/i,n=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},t={any:[/^b/i,/^(a|c)/i]},r={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},c={any:[/1/i,/2/i,/3/i,/4/i]},g={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},x={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},M={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},p={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},T={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},s={ordinalNumber:(0,f.default)({matchPattern:u,parsePattern:n,valueCallback:function(d){return parseInt(d,10)}}),era:(0,l.default)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:t,defaultParseWidth:"any"}),quarter:(0,l.default)({matchPatterns:r,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any",valueCallback:function(d){return d+1}}),month:(0,l.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:x,defaultParseWidth:"any"}),day:(0,l.default)({matchPatterns:h,defaultMatchWidth:"wide",parsePatterns:M,defaultParseWidth:"any"}),dayPeriod:(0,l.default)({matchPatterns:p,defaultMatchWidth:"any",parsePatterns:T,defaultParseWidth:"any"})},m=s;e.default=m,o.exports=e.default})(We,We.exports);var dt=We.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=a(tt),f=a(nt),v=a(it),u=a(ut),n=a(dt);function a(c){return c&&c.__esModule?c:{default:c}}var t={code:"en-US",formatDistance:l.default,formatLong:f.default,formatRelative:v.default,localize:u.default,match:n.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},r=t;e.default=r,o.exports=e.default})(Ce,Ce.exports);var lt=Ce.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=f(lt);function f(u){return u&&u.__esModule?u:{default:u}}var v=l.default;e.default=v,o.exports=e.default})(Ee,Ee.exports);var ct=Ee.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var l=h(Ya),f=h(Ra),v=h(I),u=h(Va),n=h(Ka),a=h(pa),t=q,r=h(F),c=h(P),g=H,x=h(ct);function h(b){return b&&b.__esModule?b:{default:b}}var M=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,p=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,T=/^'([^]*?)'?$/,s=/''/g,m=/[a-zA-Z]/;function i(b,w,S){var y,_,A,D,z,O,C,U,G,Y,k,N,j,ee,ae,te,re,ne;(0,c.default)(2,arguments);var Da=String(w),L=(0,g.getDefaultOptions)(),$=(y=(_=S==null?void 0:S.locale)!==null&&_!==void 0?_:L.locale)!==null&&y!==void 0?y:x.default,ie=(0,r.default)((A=(D=(z=(O=S==null?void 0:S.firstWeekContainsDate)!==null&&O!==void 0?O:S==null||(C=S.locale)===null||C===void 0||(U=C.options)===null||U===void 0?void 0:U.firstWeekContainsDate)!==null&&z!==void 0?z:L.firstWeekContainsDate)!==null&&D!==void 0?D:(G=L.locale)===null||G===void 0||(Y=G.options)===null||Y===void 0?void 0:Y.firstWeekContainsDate)!==null&&A!==void 0?A:1);if(!(ie>=1&&ie<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var oe=(0,r.default)((k=(N=(j=(ee=S==null?void 0:S.weekStartsOn)!==null&&ee!==void 0?ee:S==null||(ae=S.locale)===null||ae===void 0||(te=ae.options)===null||te===void 0?void 0:te.weekStartsOn)!==null&&j!==void 0?j:L.weekStartsOn)!==null&&N!==void 0?N:(re=L.locale)===null||re===void 0||(ne=re.options)===null||ne===void 0?void 0:ne.weekStartsOn)!==null&&k!==void 0?k:0);if(!(oe>=0&&oe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!$.localize)throw new RangeError("locale must contain localize property");if(!$.formatLong)throw new RangeError("locale must contain formatLong property");var X=(0,v.default)(b);if(!(0,l.default)(X))throw new RangeError("Invalid time value");var Sa=(0,a.default)(X),za=(0,f.default)(X,Sa),Oa={firstWeekContainsDate:ie,weekStartsOn:oe,locale:$,_originalDate:X},Pa=Da.match(p).map(function(E){var W=E[0];if(W==="p"||W==="P"){var Z=n.default[W];return Z(E,$.formatLong)}return E}).join("").match(M).map(function(E){if(E==="''")return"'";var W=E[0];if(W==="'")return d(E);var Z=u.default[W];if(Z)return!(S!=null&&S.useAdditionalWeekYearTokens)&&(0,t.isProtectedWeekYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),!(S!=null&&S.useAdditionalDayOfYearTokens)&&(0,t.isProtectedDayOfYearToken)(E)&&(0,t.throwProtectedError)(E,w,String(b)),Z(za,E,$.localize,Oa);if(W.match(m))throw new RangeError("Format string contains an unescaped latin alphabet character `"+W+"`");return E}).join("");return Pa}function d(b){var w=b.match(T);return w?w[1].replace(s,"'"):b}o.exports=e.default})(fe,fe.exports);var mt=fe.exports,He={exports:{}},Le={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(n,a,t){var r=u(n,t.timeZone,t.locale);return r.formatToParts?f(r,a):v(r,a)}function f(n,a){for(var t=n.formatToParts(a),r=t.length-1;r>=0;--r)if(t[r].type==="timeZoneName")return t[r].value}function v(n,a){var t=n.format(a).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(t);return r?r[0].substr(1):""}function u(n,a,t){if(t&&!t.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(t?[t.code,"en-US"]:void 0,{timeZone:a,timeZoneName:n})}o.exports=e.default})(Le,Le.exports);var vt=Le.exports,$e={exports:{}},qe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(t,r){var c=a(r);return c.formatToParts?v(c,t):u(c,t)}var f={year:0,month:1,day:2,hour:3,minute:4,second:5};function v(t,r){try{for(var c=t.formatToParts(r),g=[],x=0;x=0&&(g[h]=parseInt(c[x].value,10))}return g}catch(M){if(M instanceof RangeError)return[NaN];throw M}}function u(t,r){var c=t.format(r).replace(/\u200E/g,""),g=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(c);return[g[3],g[1],g[2],g[4],g[5],g[6]]}var n={};function a(t){if(!n[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),c=r==="06/25/2014, 00:00:00"||r==="‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";n[t]=c?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return n[t]}o.exports=e.default})(qe,qe.exports);var Tt=qe.exports,Be={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v,u,n,a,t,r){var c=new Date(0);return c.setUTCFullYear(f,v,u),c.setUTCHours(n,a,t,r),c}o.exports=e.default})(Be,Be.exports);var ga=Be.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=v(Tt),f=v(ga);function v(p){return p&&p.__esModule?p:{default:p}}var u=36e5,n=6e4,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function t(p,T,s){var m,i;if(p===""||(m=a.timezoneZ.exec(p),m))return 0;var d;if(m=a.timezoneHH.exec(p),m)return d=parseInt(m[1],10),x(d)?-(d*u):NaN;if(m=a.timezoneHHMM.exec(p),m){d=parseInt(m[1],10);var b=parseInt(m[2],10);return x(d,b)?(i=Math.abs(d)*u+b*n,d>0?-i:i):NaN}if(M(p)){T=new Date(T||Date.now());var w=s?T:r(T),S=c(w,p),y=s?S:g(T,S,p);return-y}return NaN}function r(p){return(0,f.default)(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds())}function c(p,T){var s=(0,l.default)(p,T),m=(0,f.default)(s[0],s[1]-1,s[2],s[3]%24,s[4],s[5],0).getTime(),i=p.getTime(),d=i%1e3;return i-=d>=0?d:1e3+d,m-i}function g(p,T,s){var m=p.getTime(),i=m-T,d=c(new Date(i),s);if(T===d)return T;i-=d-T;var b=c(new Date(i),s);return d===b?d:Math.max(d,b)}function x(p,T){return-23<=p&&p<=23&&(T==null||0<=T&&T<=59)}var h={};function M(p){if(h[p])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:p}),h[p]=!0,!0}catch{return!1}}o.exports=e.default})($e,$e.exports);var B=$e.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=v(vt),f=v(B);function v(h){return h&&h.__esModule?h:{default:h}}var u=60*1e3,n={X:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);if(s===0)return"Z";switch(M){case"X":return c(s);case"XXXX":case"XX":return r(s);case"XXXXX":case"XXX":default:return r(s,":")}},x:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);switch(M){case"x":return c(s);case"xxxx":case"xx":return r(s);case"xxxxx":case"xxx":default:return r(s,":")}},O:function(h,M,p,T){var s=a(T.timeZone,T._originalDate||h);switch(M){case"O":case"OO":case"OOO":return"GMT"+g(s,":");case"OOOO":default:return"GMT"+r(s,":")}},z:function(h,M,p,T){var s=T._originalDate||h;switch(M){case"z":case"zz":case"zzz":return(0,l.default)("short",s,T);case"zzzz":default:return(0,l.default)("long",s,T)}}};function a(h,M){var p=h?(0,f.default)(h,M,!0)/u:M.getTimezoneOffset();if(Number.isNaN(p))throw new RangeError("Invalid time zone specified: "+h);return p}function t(h,M){for(var p=h<0?"-":"",T=Math.abs(h).toString();T.length0?"-":"+",s=Math.abs(h),m=t(Math.floor(s/60),2),i=t(Math.floor(s%60),2);return T+m+p+i}function c(h,M){if(h%60===0){var p=h>0?"-":"+";return p+t(Math.abs(h)/60,2)}return r(h,M)}function g(h,M){var p=h>0?"-":"+",T=Math.abs(h),s=Math.floor(T/60),m=T%60;if(m===0)return p+String(s);var i=M;return p+String(s)+i+t(m,2)}var x=n;e.default=x,o.exports=e.default})(He,He.exports);var ht=He.exports,Xe={exports:{}},Ze={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,f=l;e.default=f,o.exports=e.default})(Ze,Ze.exports);var Ma=Ze.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=g;var l=n(F),f=n(pa),v=n(B),u=n(Ma);function n(y){return y&&y.__esModule?y:{default:y}}var a=36e5,t=6e4,r=2,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:u.default};function g(y,_){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(y===null)return new Date(NaN);var A=_||{},D=A.additionalDigits==null?r:(0,l.default)(A.additionalDigits);if(D!==2&&D!==1&&D!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(y instanceof Date||typeof y=="object"&&Object.prototype.toString.call(y)==="[object Date]")return new Date(y.getTime());if(typeof y=="number"||Object.prototype.toString.call(y)==="[object Number]")return new Date(y);if(!(typeof y=="string"||Object.prototype.toString.call(y)==="[object String]"))return new Date(NaN);var z=x(y),O=h(z.date,D),C=O.year,U=O.restDateString,G=M(U,C);if(isNaN(G))return new Date(NaN);if(G){var Y=G.getTime(),k=0,N;if(z.time&&(k=p(z.time),isNaN(k)))return new Date(NaN);if(z.timeZone||A.timeZone){if(N=(0,v.default)(z.timeZone||A.timeZone,new Date(Y+k)),isNaN(N))return new Date(NaN)}else N=(0,f.default)(new Date(Y+k)),N=(0,f.default)(new Date(Y+k+N));return new Date(Y+k+N)}else return new Date(NaN)}function x(y){var _={},A=c.dateTimePattern.exec(y),D;if(A?(_.date=A[1],D=A[3]):(A=c.datePattern.exec(y),A?(_.date=A[1],D=A[2]):(_.date=null,D=y)),D){var z=c.timeZone.exec(D);z?(_.time=D.replace(z[1],""),_.timeZone=z[1].trim()):_.time=D}return _}function h(y,_){var A=c.YYY[_],D=c.YYYYY[_],z;if(z=c.YYYY.exec(y)||D.exec(y),z){var O=z[1];return{year:parseInt(O,10),restDateString:y.slice(O.length)}}if(z=c.YY.exec(y)||A.exec(y),z){var C=z[1];return{year:parseInt(C,10)*100,restDateString:y.slice(C.length)}}return{year:null}}function M(y,_){if(_===null)return null;var A,D,z,O;if(y.length===0)return D=new Date(0),D.setUTCFullYear(_),D;if(A=c.MM.exec(y),A)return D=new Date(0),z=parseInt(A[1],10)-1,d(_,z)?(D.setUTCFullYear(_,z),D):new Date(NaN);if(A=c.DDD.exec(y),A){D=new Date(0);var C=parseInt(A[1],10);return b(_,C)?(D.setUTCFullYear(_,0,C),D):new Date(NaN)}if(A=c.MMDD.exec(y),A){D=new Date(0),z=parseInt(A[1],10)-1;var U=parseInt(A[2],10);return d(_,z,U)?(D.setUTCFullYear(_,z,U),D):new Date(NaN)}if(A=c.Www.exec(y),A)return O=parseInt(A[1],10)-1,w(_,O)?T(_,O):new Date(NaN);if(A=c.WwwD.exec(y),A){O=parseInt(A[1],10)-1;var G=parseInt(A[2],10)-1;return w(_,O,G)?T(_,O,G):new Date(NaN)}return null}function p(y){var _,A,D;if(_=c.HH.exec(y),_)return A=parseFloat(_[1].replace(",",".")),S(A)?A%24*a:NaN;if(_=c.HHMM.exec(y),_)return A=parseInt(_[1],10),D=parseFloat(_[2].replace(",",".")),S(A,D)?A%24*a+D*t:NaN;if(_=c.HHMMSS.exec(y),_){A=parseInt(_[1],10),D=parseInt(_[2],10);var z=parseFloat(_[3].replace(",","."));return S(A,D,z)?A%24*a+D*t+z*1e3:NaN}return null}function T(y,_,A){_=_||0,A=A||0;var D=new Date(0);D.setUTCFullYear(y,0,4);var z=D.getUTCDay()||7,O=_*7+A+1-z;return D.setUTCDate(D.getUTCDate()+O),D}var s=[31,28,31,30,31,30,31,31,30,31,30,31],m=[31,29,31,30,31,30,31,31,30,31,30,31];function i(y){return y%400===0||y%4===0&&y%100!==0}function d(y,_,A){if(_<0||_>11)return!1;if(A!=null){if(A<1)return!1;var D=i(y);if(D&&A>m[_]||!D&&A>s[_])return!1}return!0}function b(y,_){if(_<1)return!1;var A=i(y);return!(A&&_>366||!A&&_>365)}function w(y,_,A){return!(_<0||_>52||A!=null&&(A<0||A>6))}function S(y,_,A){return!(y!=null&&(y<0||y>=25)||_!=null&&(_<0||_>=60)||A!=null&&(A<0||A>=60))}o.exports=e.default})(Xe,Xe.exports);var J=Xe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var l=u(mt),f=u(ht),v=u(J);function u(t){return t&&t.__esModule?t:{default:t}}var n=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function a(t,r,c){var g=String(r),x=c||{},h=g.match(n);if(h){var M=(0,v.default)(t,x);g=h.reduce(function(p,T){if(T[0]==="'")return p;var s=p.indexOf(T),m=p[s-1]==="'",i=p.replace(T,"'"+f.default[T[0]](M,T,null,x)+"'");return m?i.substring(0,s-1)+i.substring(s+1):i},g)}return(0,l.default)(t,g,x)}o.exports=e.default})(se,se.exports);var _a=se.exports,Ve={exports:{}},Ke={exports:{}},Qe={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;function l(f,v){if(f==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var u in v)Object.prototype.hasOwnProperty.call(v,u)&&(f[u]=v[u]);return f}o.exports=e.default})(Qe,Qe.exports);var bt=Qe.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var l=f(bt);function f(u){return u&&u.__esModule?u:{default:u}}function v(u){return(0,l.default)({},u)}o.exports=e.default})(Ke,Ke.exports);var Aa=Ke.exports,Je={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=u;var l=v(B),f=v(J);function v(n){return n&&n.__esModule?n:{default:n}}function u(n,a,t){var r=(0,f.default)(n,t),c=(0,l.default)(a,r,!0),g=new Date(r.getTime()-c),x=new Date(0);return x.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),x.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),x}o.exports=e.default})(Je,Je.exports);var xa=Je.exports;(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=u(Aa),f=u(_a),v=u(xa);function u(a){return a&&a.__esModule?a:{default:a}}function n(a,t,r,c){var g=(0,l.default)(c);return g.timeZone=t,(0,f.default)((0,v.default)(a,t),r,g)}o.exports=e.default})(Ve,Ve.exports);var pt=Ve.exports,je={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=v;var l=f(B);function f(u){return u&&u.__esModule?u:{default:u}}function v(u,n){return-(0,l.default)(u,n)}o.exports=e.default})(je,je.exports);var gt=je.exports,ea={exports:{}};(function(o,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;var l=a(Aa),f=a(J),v=a(Ma),u=a(B),n=a(ga);function a(r){return r&&r.__esModule?r:{default:r}}function t(r,c,g){if(typeof r=="string"&&!r.match(v.default)){var x=(0,l.default)(g);return x.timeZone=c,(0,f.default)(r,x)}var h=(0,f.default)(r,g),M=(0,n.default)(h.getFullYear(),h.getMonth(),h.getDate(),h.getHours(),h.getMinutes(),h.getSeconds(),h.getMilliseconds()).getTime(),p=(0,u.default)(c,new Date(M));return new Date(M+p)}o.exports=e.default})(ea,ea.exports);var Mt=ea.exports,ia={format:_a,formatInTimeZone:pt,getTimezoneOffset:gt,toDate:J,utcToZonedTime:xa,zonedTimeToUtc:Mt};function ra(o,e){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&(o[l]=e[l]);return o}function ya(o){return ra({},o)}var oa=1440,_t=2520,ue=43200,At=86400;function xt(o,e,l){var f,v;Q(2,arguments);var u=ma(),n=(f=(v=void 0)!==null&&v!==void 0?v:u.locale)!==null&&f!==void 0?f:ca;if(!n.formatDistance)throw new RangeError("locale must contain formatDistance property");var a=la(o,e);if(isNaN(a))throw new RangeError("Invalid time value");var t=ra(ya(l),{addSuffix:!1,comparison:a}),r,c;a>0?(r=R(e),c=R(o)):(r=R(o),c=R(e));var g=Ea(c,r),x=(V(c)-V(r))/1e3,h=Math.round((g-x)/60),M;if(h<2)return h===0?n.formatDistance("lessThanXMinutes",1,t):n.formatDistance("xMinutes",h,t);if(h<45)return n.formatDistance("xMinutes",h,t);if(h<90)return n.formatDistance("aboutXHours",1,t);if(h0?(c=R(e),g=R(o)):(c=R(o),g=R(e));var x=String((u=void 0)!==null&&u!==void 0?u:"round"),h;if(x==="floor")h=Math.floor;else if(x==="ceil")h=Math.ceil;else if(x==="round")h=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var M=g.getTime()-c.getTime(),p=M/ua,T=V(g)-V(c),s=(M-T)/ua,m=void 0,i;if(p<1?i="second":p<60?i="minute":p9?`${l}:00`:`0${l}:00`;if(o>0)return`${e}+${f}`;if(o<0)return`${e}-${f}`}function wa(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function zt(){const o=wa(),e=Ot.find(({zones:l})=>l==null?void 0:l.includes(o));return e?`${e.label} (${e.abbr})`:o}function It(o){if(o==="local")return zt();const e=na[o];return e?`${o} (${e.abbr})`:o}function Ut({date:o=new Date,hour:e=0,minute:l=0,second:f=0}={}){const v=Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),Number(e),Number(l),Number(f));return new Date(v).toISOString()}const Yt=da("timeFormat","UTC"),Wt=da("relativeTime",!1),na={"Greenwich Mean Time":{abbr:"GMT",offset:0,zones:["Africa/Abidjan","Africa/Accra","Africa/Bamako","Africa/Banjul","Africa/Bissau","Africa/Conakry","Africa/Dakar","Africa/Freetown","Africa/Lome","Africa/Monrovia","Africa/Nouakchott","Africa/Ouagadougou","Africa/Sao_Tome","America/Danmarkshavn","Atlantic/Reykjavik","Atlantic/St_Helena"]},"East Africa Time":{abbr:"GMT+3",offset:3,zones:["Africa/Addis_Ababa","Africa/Asmera","Africa/Dar_es_Salaam","Africa/Djibouti","Africa/Kampala","Africa/Mogadishu","Africa/Nairobi","Indian/Antananarivo","Indian/Comoro","Indian/Mayotte"]},"Central European Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Algiers","Africa/Tunis"]},"West Africa Standard Time":{abbr:"GMT+1",offset:1,zones:["Africa/Bangui","Africa/Brazzaville","Africa/Douala","Africa/Kinshasa","Africa/Lagos","Africa/Libreville","Africa/Luanda","Africa/Malabo","Africa/Ndjamena","Africa/Niamey","Africa/Porto-Novo"]},"Central Africa Time":{abbr:"GMT+2",offset:2,zones:["Africa/Blantyre","Africa/Bujumbura","Africa/Gaborone","Africa/Harare","Africa/Juba","Africa/Khartoum","Africa/Kigali","Africa/Lubumbashi","Africa/Lusaka","Africa/Maputo","Africa/Windhoek"]},"Eastern European Summer Time":{abbr:"GMT+3",offset:3,zones:["Africa/Cairo","Asia/Beirut","Asia/Gaza","Asia/Hebron","Asia/Nicosia","Europe/Athens","Europe/Bucharest","Europe/Chisinau","Europe/Helsinki","Europe/Kiev","Europe/Mariehamn","Europe/Riga","Europe/Sofia","Europe/Tallinn","Europe/Uzhgorod","Europe/Vilnius","Europe/Zaporozhye"]},"GMT+01:00":{abbr:"GMT+1",offset:1,zones:["Africa/Casablanca","Africa/El_Aaiun","Europe/Guernsey","Europe/Isle_of_Man","Europe/Jersey"]},"Central European Summer Time":{abbr:"GMT+2",offset:2,zones:["Africa/Ceuta","Arctic/Longyearbyen","Europe/Amsterdam","Europe/Andorra","Europe/Belgrade","Europe/Berlin","Europe/Bratislava","Europe/Brussels","Europe/Budapest","Europe/Busingen","Europe/Copenhagen","Europe/Gibraltar","Europe/Ljubljana","Europe/Luxembourg","Europe/Madrid","Europe/Malta","Europe/Monaco","Europe/Oslo","Europe/Paris","Europe/Podgorica","Europe/Prague","Europe/Rome","Europe/San_Marino","Europe/Sarajevo","Europe/Skopje","Europe/Stockholm","Europe/Tirane","Europe/Vaduz","Europe/Vatican","Europe/Vienna","Europe/Warsaw","Europe/Zagreb","Europe/Zurich"]},"South Africa Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Johannesburg","Africa/Maseru","Africa/Mbabane"]},"Eastern European Standard Time":{abbr:"GMT+2",offset:2,zones:["Africa/Tripoli","Europe/Kaliningrad"]},"Hawaii-Aleutian Daylight Time":{abbr:"HADT",offset:-9,zones:["America/Adak"]},"Alaska Daylight Time":{abbr:"AKDT",offset:-8,zones:["America/Anchorage","America/Juneau","America/Metlakatla","America/Nome","America/Sitka","America/Yakutat"]},"Atlantic Standard Time":{abbr:"AST",offset:-4,zones:["America/Anguilla","America/Antigua","America/Aruba","America/Barbados","America/Blanc-Sablon","America/Curacao","America/Dominica","America/Grenada","America/Guadeloupe","America/Kralendijk","America/Lower_Princes","America/Marigot","America/Martinique","America/Montserrat","America/Port_of_Spain","America/Puerto_Rico","America/Santo_Domingo","America/St_Barthelemy","America/St_Kitts","America/St_Lucia","America/St_Thomas","America/St_Vincent","America/Tortola"]},"Brasilia Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Araguaina","America/Bahia","America/Belem","America/Fortaleza","America/Maceio","America/Recife","America/Santarem","America/Sao_Paulo"]},"Argentina Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Argentina/La_Rioja","America/Argentina/Rio_Gallegos","America/Argentina/Salta","America/Argentina/San_Juan","America/Argentina/San_Luis","America/Argentina/Tucuman","America/Argentina/Ushuaia","America/Buenos_Aires","America/Catamarca","America/Cordoba","America/Jujuy","America/Mendoza"]},"Paraguay Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Asuncion"]},"Central Standard Time":{abbr:"CST",offset:-6,zones:["America/Bahia_Banderas","America/Belize","America/Chihuahua","America/Costa_Rica","America/El_Salvador","America/Guatemala","America/Managua","America/Merida","America/Mexico_City","America/Monterrey","America/Regina","America/Swift_Current","America/Tegucigalpa"]},"Amazon Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Boa_Vista","America/Campo_Grande","America/Cuiaba","America/Manaus","America/Porto_Velho"]},"Colombia Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Bogota"]},"Mountain Daylight Time":{abbr:"MDT",offset:-6,zones:["America/Boise","America/Cambridge_Bay","America/Ciudad_Juarez","America/Denver","America/Edmonton","America/Inuvik","America/Yellowknife"]},"Eastern Standard Time":{abbr:"EST",offset:-5,zones:["America/Cancun","America/Cayman","America/Coral_Harbour","America/Jamaica","America/Panama"]},"Venezuela Time":{abbr:"GMT-4",offset:-4,zones:["America/Caracas"]},"French Guiana Time":{abbr:"GMT-3",offset:-3,zones:["America/Cayenne"]},"Central Daylight Time":{abbr:"CDT",offset:-5,zones:["America/Chicago","America/Indiana/Knox","America/Indiana/Tell_City","America/Matamoros","America/Menominee","America/North_Dakota/Beulah","America/North_Dakota/Center","America/North_Dakota/New_Salem","America/Ojinaga","America/Rainy_River","America/Rankin_Inlet","America/Resolute","America/Winnipeg"]},"Mountain Standard Time":{abbr:"MST",offset:-7,zones:["America/Creston","America/Dawson_Creek","America/Fort_Nelson","America/Phoenix"]},"Yukon Time":{abbr:"GMT-7",offset:-7,zones:["America/Dawson","America/Whitehorse"]},"Eastern Daylight Time":{abbr:"EDT",offset:-4,zones:["America/Detroit","America/Grand_Turk","America/Indiana/Marengo","America/Indiana/Petersburg","America/Indiana/Vevay","America/Indiana/Vincennes","America/Indiana/Winamac","America/Indianapolis","America/Iqaluit","America/Kentucky/Monticello","America/Louisville","America/Nassau","America/New_York","America/Nipigon","America/Pangnirtung","America/Port-au-Prince","America/Thunder_Bay","America/Toronto"]},"Acre Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Eirunepe","America/Rio_Branco"]},"Atlantic Daylight Time":{abbr:"ADT",offset:-3,zones:["America/Glace_Bay","America/Goose_Bay","America/Halifax","America/Moncton","America/Thule","Atlantic/Bermuda"]},"West Greenland Summer Time":{abbr:"GMT-2",offset:-2,zones:["America/Godthab"]},"Ecuador Time":{abbr:"GMT-5",offset:-5,zones:["America/Guayaquil"]},"Guyana Time":{abbr:"GMT-4",offset:-4,zones:["America/Guyana"]},"Cuba Daylight Time":{abbr:"GMT-4",offset:-4,zones:["America/Havana"]},"Mexican Pacific Standard Time":{abbr:"GMT-7",offset:-7,zones:["America/Hermosillo","America/Mazatlan"]},"Bolivia Time":{abbr:"GMT-4",offset:-4,zones:["America/La_Paz"]},"Peru Standard Time":{abbr:"GMT-5",offset:-5,zones:["America/Lima"]},"Pacific Daylight Time":{abbr:"PDT",offset:-7,zones:["America/Los_Angeles","America/Tijuana","America/Vancouver"]},"St. Pierre & Miquelon Daylight Time":{abbr:"GMT-2",offset:-2,zones:["America/Miquelon"]},"Uruguay Standard Time":{abbr:"GMT-3",offset:-3,zones:["America/Montevideo"]},"GMT-04:00":{abbr:"GMT-4",offset:-4,zones:["America/Montreal"]},"Fernando de Noronha Standard Time":{abbr:"GMT-2",offset:-2,zones:["America/Noronha"]},"Suriname Time":{abbr:"GMT-3",offset:-3,zones:["America/Paramaribo"]},"GMT-03:00":{abbr:"GMT-3",offset:-3,zones:["America/Punta_Arenas","Antarctica/Palmer"]},"Northwest Mexico Daylight Time":{abbr:"GMT-7",offset:-7,zones:["America/Santa_Isabel"]},"Chile Standard Time":{abbr:"GMT-4",offset:-4,zones:["America/Santiago"]},"East Greenland Summer Time":{abbr:"GMT",offset:0,zones:["America/Scoresbysund"]},"Newfoundland Daylight Time":{abbr:"GMT-2:30",offset:-3,zones:["America/St_Johns"]},"Casey Time":{abbr:"GMT+11",offset:11,zones:["Antarctica/Casey"]},"Davis Time":{abbr:"GMT+7",offset:7,zones:["Antarctica/Davis"]},"Dumont-d’Urville Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/DumontDUrville"]},"Australian Eastern Standard Time":{abbr:"GMT+10",offset:10,zones:["Antarctica/Macquarie","Australia/Brisbane","Australia/Currie","Australia/Hobart","Australia/Lindeman","Australia/Melbourne","Australia/Sydney"]},"Mawson Time":{abbr:"GMT+5",offset:5,zones:["Antarctica/Mawson"]},"New Zealand Standard Time":{abbr:"GMT+12",offset:12,zones:["Antarctica/McMurdo","Pacific/Auckland"]},"Rothera Time":{abbr:"GMT-3",offset:-3,zones:["Antarctica/Rothera"]},"Syowa Time":{abbr:"GMT+3",offset:3,zones:["Antarctica/Syowa"]},"GMT+02:00":{abbr:"GMT+2",offset:2,zones:["Antarctica/Troll"]},"Vostok Time":{abbr:"GMT+6",offset:6,zones:["Antarctica/Vostok"]},"Arabian Standard Time":{abbr:"GMT+3",offset:3,zones:["Asia/Aden","Asia/Baghdad","Asia/Bahrain","Asia/Kuwait","Asia/Qatar","Asia/Riyadh"]},"East Kazakhstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Almaty","Asia/Qostanay"]},"GMT+03:00":{abbr:"GMT+3",offset:3,zones:["Asia/Amman","Asia/Damascus","Asia/Famagusta","Europe/Istanbul","Europe/Kirov"]},"Anadyr Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Anadyr"]},"West Kazakhstan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Aqtau","Asia/Aqtobe","Asia/Atyrau","Asia/Oral","Asia/Qyzylorda"]},"Turkmenistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Ashgabat"]},"Azerbaijan Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Baku"]},"Indochina Time":{abbr:"GMT+7",offset:7,zones:["Asia/Bangkok","Asia/Phnom_Penh","Asia/Saigon","Asia/Vientiane"]},"GMT+07:00":{abbr:"GMT+7",offset:7,zones:["Asia/Barnaul","Asia/Tomsk"]},"Kyrgyzstan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Bishkek"]},"Brunei Darussalam Time":{abbr:"GMT+8",offset:8,zones:["Asia/Brunei"]},"India Standard Time":{abbr:"GMT+5:30",offset:5,zones:["Asia/Calcutta","Asia/Colombo"]},"Yakutsk Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Chita","Asia/Khandyga","Asia/Yakutsk"]},"Ulaanbaatar Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Choibalsan","Asia/Ulaanbaatar"]},"Bangladesh Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Dhaka"]},"East Timor Time":{abbr:"GMT+9",offset:9,zones:["Asia/Dili"]},"Gulf Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Dubai","Asia/Muscat"]},"Tajikistan Time":{abbr:"GMT+5",offset:5,zones:["Asia/Dushanbe"]},"Hong Kong Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Hong_Kong"]},"Hovd Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Hovd"]},"Irkutsk Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Irkutsk"]},"Western Indonesia Time":{abbr:"GMT+7",offset:7,zones:["Asia/Jakarta","Asia/Pontianak"]},"Eastern Indonesia Time":{abbr:"GMT+9",offset:9,zones:["Asia/Jayapura"]},"Israel Daylight Time":{abbr:"GMT+3",offset:3,zones:["Asia/Jerusalem"]},"Afghanistan Time":{abbr:"GMT+4:30",offset:4,zones:["Asia/Kabul"]},"Petropavlovsk-Kamchatski Standard Time":{abbr:"GMT+12",offset:12,zones:["Asia/Kamchatka"]},"Pakistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Karachi"]},"Nepal Time":{abbr:"GMT+5:45",offset:5,zones:["Asia/Katmandu"]},"Krasnoyarsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Krasnoyarsk","Asia/Novokuznetsk"]},"Malaysia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Kuala_Lumpur","Asia/Kuching"]},"China Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Macau","Asia/Shanghai"]},"Magadan Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Magadan"]},"Central Indonesia Time":{abbr:"GMT+8",offset:8,zones:["Asia/Makassar"]},"Philippine Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Manila"]},"Novosibirsk Standard Time":{abbr:"GMT+7",offset:7,zones:["Asia/Novosibirsk"]},"Omsk Standard Time":{abbr:"GMT+6",offset:6,zones:["Asia/Omsk"]},"Korean Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Pyongyang","Asia/Seoul"]},"Myanmar Time":{abbr:"GMT+6:30",offset:6,zones:["Asia/Rangoon"]},"Sakhalin Standard Time":{abbr:"GMT+11",offset:11,zones:["Asia/Sakhalin"]},"Uzbekistan Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Samarkand","Asia/Tashkent"]},"Singapore Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Singapore"]},"GMT+11:00":{abbr:"GMT+11",offset:11,zones:["Asia/Srednekolymsk","Pacific/Bougainville"]},"Taipei Standard Time":{abbr:"GMT+8",offset:8,zones:["Asia/Taipei"]},"Georgia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Tbilisi"]},"Iran Standard Time":{abbr:"GMT+3:30",offset:3,zones:["Asia/Tehran"]},"Bhutan Time":{abbr:"GMT+6",offset:6,zones:["Asia/Thimphu"]},"Japan Standard Time":{abbr:"GMT+9",offset:9,zones:["Asia/Tokyo"]},"GMT+06:00":{abbr:"GMT+6",offset:6,zones:["Asia/Urumqi"]},"Vladivostok Standard Time":{abbr:"GMT+10",offset:10,zones:["Asia/Ust-Nera","Asia/Vladivostok"]},"Yekaterinburg Standard Time":{abbr:"GMT+5",offset:5,zones:["Asia/Yekaterinburg"]},"Armenia Standard Time":{abbr:"GMT+4",offset:4,zones:["Asia/Yerevan"]},"Azores Summer Time":{abbr:"GMT",offset:0,zones:["Atlantic/Azores"]},"Western European Summer Time":{abbr:"GMT+1",offset:1,zones:["Atlantic/Canary","Atlantic/Faeroe","Atlantic/Madeira","Europe/Lisbon"]},"Cape Verde Standard Time":{abbr:"GMT-1",offset:-1,zones:["Atlantic/Cape_Verde"]},"South Georgia Time":{abbr:"GMT-2",offset:-2,zones:["Atlantic/South_Georgia"]},"Falkland Islands Standard Time":{abbr:"GMT-3",offset:-3,zones:["Atlantic/Stanley"]},"Australian Central Standard Time":{abbr:"GMT+9:30",offset:9,zones:["Australia/Adelaide","Australia/Broken_Hill","Australia/Darwin"]},"Australian Central Western Standard Time":{abbr:"GMT+8:45",offset:8,zones:["Australia/Eucla"]},"Lord Howe Standard Time":{abbr:"GMT+10:30",offset:10,zones:["Australia/Lord_Howe"]},"Australian Western Standard Time":{abbr:"GMT+8",offset:8,zones:["Australia/Perth"]},"GMT+04:00":{abbr:"GMT+4",offset:4,zones:["Europe/Astrakhan","Europe/Saratov","Europe/Ulyanovsk"]},"Irish Standard Time":{abbr:"GMT+1",offset:1,zones:["Europe/Dublin"]},"British Summer Time":{abbr:"GMT+1",offset:1,zones:["Europe/London"]},"Moscow Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Minsk","Europe/Moscow","Europe/Simferopol"]},"Samara Standard Time":{abbr:"GMT+4",offset:4,zones:["Europe/Samara"]},"Volgograd Standard Time":{abbr:"GMT+3",offset:3,zones:["Europe/Volgograd"]},"Indian Ocean Time":{abbr:"GMT+6",offset:6,zones:["Indian/Chagos"]},"Christmas Island Time":{abbr:"GMT+7",offset:7,zones:["Indian/Christmas"]},"Cocos Islands Time":{abbr:"GMT+6:30",offset:6,zones:["Indian/Cocos"]},"French Southern & Antarctic Time":{abbr:"GMT+5",offset:5,zones:["Indian/Kerguelen"]},"Seychelles Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mahe"]},"Maldives Time":{abbr:"GMT+5",offset:5,zones:["Indian/Maldives"]},"Mauritius Standard Time":{abbr:"GMT+4",offset:4,zones:["Indian/Mauritius"]},"Réunion Time":{abbr:"GMT+4",offset:4,zones:["Indian/Reunion"]},"Apia Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Apia"]},"Chatham Standard Time":{abbr:"GMT+12:45",offset:12,zones:["Pacific/Chatham"]},"Easter Island Standard Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Easter"]},"Vanuatu Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Efate"]},"Phoenix Islands Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Enderbury"]},"Tokelau Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Fakaofo"]},"Fiji Standard Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Fiji"]},"Tuvalu Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Funafuti"]},"Galapagos Time":{abbr:"GMT-6",offset:-6,zones:["Pacific/Galapagos"]},"Gambier Time":{abbr:"GMT-9",offset:-9,zones:["Pacific/Gambier"]},"Solomon Islands Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Guadalcanal"]},"Chamorro Standard Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Guam","Pacific/Saipan"]},"Hawaii-Aleutian Standard Time":{abbr:"HST",offset:-10,zones:["Pacific/Honolulu","Pacific/Johnston"]},"Line Islands Time":{abbr:"GMT+14",offset:14,zones:["Pacific/Kiritimati"]},"Kosrae Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Kosrae"]},"Marshall Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Kwajalein","Pacific/Majuro"]},"Marquesas Time":{abbr:"GMT-9:30",offset:-10,zones:["Pacific/Marquesas"]},"Samoa Standard Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Midway","Pacific/Pago_Pago"]},"Nauru Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Nauru"]},"Niue Time":{abbr:"GMT-11",offset:-11,zones:["Pacific/Niue"]},"Norfolk Island Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Norfolk"]},"New Caledonia Standard Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Noumea"]},"Palau Time":{abbr:"GMT+9",offset:9,zones:["Pacific/Palau"]},"Pitcairn Time":{abbr:"GMT-8",offset:-8,zones:["Pacific/Pitcairn"]},"Ponape Time":{abbr:"GMT+11",offset:11,zones:["Pacific/Ponape"]},"Papua New Guinea Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Port_Moresby"]},"Cook Islands Standard Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Rarotonga"]},"Tahiti Time":{abbr:"GMT-10",offset:-10,zones:["Pacific/Tahiti"]},"Gilbert Islands Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Tarawa"]},"Tonga Standard Time":{abbr:"GMT+13",offset:13,zones:["Pacific/Tongatapu"]},"Chuuk Time":{abbr:"GMT+10",offset:10,zones:["Pacific/Truk"]},"Wake Island Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wake"]},"Wallis & Futuna Time":{abbr:"GMT+12",offset:12,zones:["Pacific/Wallis"]}},Ot=Object.entries(na).map(([o,e])=>({label:o,value:o,...e})).sort((o,e)=>o.label>e.label?1:e.label>o.label?-1:0),Pt=o=>{var e;return o==="local"?wa():((e=na[o])==null?void 0:e.zones[0])??o};export{Ot as T,It as a,Pt as b,zt as c,ia as d,na as e,Gt as f,Ut as g,Nt as h,kt as i,Wt as r,Yt as t}; diff --git a/ui/assets/local/_app/immutable/chunks/time-picker.BvbblB8x.js b/ui/assets/local/_app/immutable/chunks/time-picker.G0x2sfcZ.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/time-picker.BvbblB8x.js rename to ui/assets/local/_app/immutable/chunks/time-picker.G0x2sfcZ.js index f8f71de33..9ab9d5a7c 100644 --- a/ui/assets/local/_app/immutable/chunks/time-picker.BvbblB8x.js +++ b/ui/assets/local/_app/immutable/chunks/time-picker.G0x2sfcZ.js @@ -1 +1 @@ -import{s as ke,h as y,b as M,j as E,k as I,f as p,d as L,m as k,i as H,n as b,v as x,y as We,r as we,t as U,l as q,x as ce,H as $,p as ae,Y as je,q as se,a0 as Ke,o as Je,G as ze,N as _e,O as be}from"./scheduler.C46pS-76.js";import{S as De,i as ye,c as F,a as j,m as R,t as T,g as ge,b as S,e as ve,d as W,f as pe}from"./index.dOVbn71B.js";import{e as Ge}from"./menu.FCESMtRU.js";import{t as Se}from"./translate.BBe5dcco.js";import{e as de,u as Xe,d as Qe}from"./each.C6O0oV7R.js";import{I as Ce}from"./icon.CfkHLDdJ.js";import{I as he}from"./input.CTzUOpgs.js";import{T as Ze,a as Ne}from"./toggle-buttons.Cubqph53.js";const Et={BOOL:"Bool",DATETIME:"Datetime",DOUBLE:"Double",INT:"Int",KEYWORD:"Keyword",TEXT:"Text",KEYWORDLIST:"KeywordList",UNSPECIFIED:"Unspecified"},Re=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],It=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],Be=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],$e=[31,28,31,30,31,30,31,31,30,31,30,31],xe=t=>t%4===0,et=()=>Array.from({length:42}).map(()=>0),tt=(t,e)=>t!==1?$e[t]:xe(e)?29:28,lt=(t,e)=>{const a=new Date(e,t,1).getMonth();return{name:Re[a],days:tt(a,e)}},He=t=>Re.filter(e=>e.value!=="*")[t],nt=(t,e)=>{const{days:l}=lt(t,e),a=et(),r=new Date(e,t,1).getDay();Array.from({length:l}).forEach((o,i)=>{const s=r+i;a[s]=i+1});const n=a.map(o=>Array.isArray(o)?void 0:o);return n[35]?n:n.slice(0,-7)};function Oe(t,e,l){const a=t.slice();return a[9]=e[l].allowed,a[10]=e[l].value,a[12]=l,a}function Pe(t,e,l){const a=t.slice();return a[13]=e[l],a}function Ve(t){let e,l=t[13].label.slice(0,2)+"",a;return{c(){e=y("p"),a=U(l),this.h()},l(r){e=E(r,"P",{class:!0});var n=I(e);a=q(n,l),n.forEach(p),this.h()},h(){k(e,"class","cell svelte-1qa9vfx")},m(r,n){H(r,e,n),b(e,a)},p:x,d(r){r&&p(e)}}}function at(t){let e;return{c(){e=y("div"),this.h()},l(l){e=E(l,"DIV",{class:!0}),I(e).forEach(p),this.h()},h(){k(e,"class","cell svelte-1qa9vfx")},m(l,a){H(l,e,a)},p:x,d(l){l&&p(e)}}}function st(t){let e,l=(t[10]||"")+"",a,r,n,o;function i(){return t[6](t[10])}return{c(){e=y("button"),a=U(l),r=M(),this.h()},l(s){e=E(s,"BUTTON",{type:!0,class:!0});var c=I(e);a=q(c,l),r=L(c),c.forEach(p),this.h()},h(){k(e,"type","button"),k(e,"class","cell svelte-1qa9vfx"),$(e,"highlight",t[9]&&t[10]),$(e,"disabled",!t[9]),$(e,"selected",new Date(t[0].getFullYear(),t[0].getMonth(),t[0].getDate()).getTime()===new Date(t[2],t[1],t[10]).getTime())},m(s,c){H(s,e,c),b(e,a),b(e,r),n||(o=ae(e,"click",function(){je(t[9]&&t[10]?i:x)&&(t[9]&&t[10]?i:x).apply(this,arguments)}),n=!0)},p(s,c){t=s,c&8&&l!==(l=(t[10]||"")+"")&&se(a,l),c&8&&$(e,"highlight",t[9]&&t[10]),c&8&&$(e,"disabled",!t[9]),c&15&&$(e,"selected",new Date(t[0].getFullYear(),t[0].getMonth(),t[0].getDate()).getTime()===new Date(t[2],t[1],t[10]).getTime())},d(s){s&&p(e),n=!1,o()}}}function Ye(t,e){let l,a;function r(i,s){return i[10]?st:at}let n=r(e),o=n(e);return{key:t,first:null,c(){l=ce(),o.c(),a=ce(),this.h()},l(i){l=ce(),o.l(i),a=ce(),this.h()},h(){this.first=l},m(i,s){H(i,l,s),o.m(i,s),H(i,a,s)},p(i,s){e=i,n===(n=r(e))&&o?o.p(e,s):(o.d(1),o=n(e),o&&(o.c(),o.m(a.parentNode,a)))},d(i){i&&(p(l),p(a)),o.d(i)}}}function ot(t){let e,l,a,r,n=[],o=new Map,i=de(Be),s=[];for(let d=0;dd[12];for(let d=0;d!0}=e,s=[];const c=u=>{a("datechange",new Date(o,n,u))},g=(u,h,_)=>_?i(new Date(u,h,_)):!0,d=u=>c(u);return t.$$set=u=>{"date"in u&&l(0,r=u.date),"month"in u&&l(1,n=u.month),"year"in u&&l(2,o=u.year),"isAllowed"in u&&l(5,i=u.isAllowed)},t.$$.update=()=>{t.$$.dirty&6&&l(3,s=nt(n,o).map(u=>({value:u,allowed:g(o,n,u)})))},[r,n,o,s,c,i,d]}class it extends De{constructor(e){super(),ye(this,e,rt,ot,ke,{date:0,month:1,year:2,isAllowed:5})}}function Ue(t){var Ie;let e,l,a,r,n,o,i,s,c,g,d=(((Ie=He(t[8]))==null?void 0:Ie.label)??"")+"",u,h,_,v,m,f,O="Next Month",P,C,z,ee,te,K,w,V,G,N,J,Q,le,Y,Z,X,me,Ee;return s=new Ce({props:{name:"chevron-left"}}),K=new Ce({props:{name:"chevron-right"}}),V=new it({props:{month:t[8],year:t[9],date:t[0],isAllowed:t[1]}}),V.$on("datechange",t[15]),{c(){e=y("div"),l=y("div"),a=y("div"),r=y("button"),n=y("span"),o=U(t[16]),i=M(),F(s.$$.fragment),c=M(),g=y("div"),u=U(d),h=M(),_=U(t[9]),v=M(),m=y("div"),f=y("span"),f.textContent=O,P=M(),C=y("button"),z=y("span"),ee=U(t[17]),te=M(),F(K.$$.fragment),w=M(),F(V.$$.fragment),G=M(),N=y("div"),J=y("button"),Q=U(t[4]),le=M(),Y=y("button"),Z=U(t[5]),this.h()},l(D){e=E(D,"DIV",{class:!0});var A=I(e);l=E(A,"DIV",{class:!0});var B=I(l);a=E(B,"DIV",{class:!0});var ne=I(a);r=E(ne,"BUTTON",{type:!0,title:!0});var oe=I(r);n=E(oe,"SPAN",{class:!0});var Te=I(n);o=q(Te,t[16]),Te.forEach(p),i=L(oe),j(s.$$.fragment,oe),oe.forEach(p),ne.forEach(p),c=L(B),g=E(B,"DIV",{class:!0});var re=I(g);u=q(re,d),h=L(re),_=q(re,t[9]),re.forEach(p),v=L(B),m=E(B,"DIV",{class:!0});var ie=I(m);f=E(ie,"SPAN",{class:!0,"data-svelte-h":!0}),Je(f)!=="svelte-uyb8ys"&&(f.textContent=O),P=L(ie),C=E(ie,"BUTTON",{type:!0,title:!0});var ue=I(C);z=E(ue,"SPAN",{class:!0});var Ae=I(z);ee=q(Ae,t[17]),Ae.forEach(p),te=L(ue),j(K.$$.fragment,ue),ue.forEach(p),ie.forEach(p),B.forEach(p),w=L(A),j(V.$$.fragment,A),G=L(A),N=E(A,"DIV",{class:!0});var fe=I(N);J=E(fe,"BUTTON",{type:!0,class:!0});var Me=I(J);Q=q(Me,t[4]),Me.forEach(p),le=L(fe),Y=E(fe,"BUTTON",{type:!0,class:!0});var Le=I(Y);Z=q(Le,t[5]),Le.forEach(p),fe.forEach(p),A.forEach(p),this.h()},h(){k(n,"class","sr-only"),k(r,"type","button"),k(r,"title",t[16]),k(a,"class","flex items-center justify-center"),k(g,"class","flex items-center justify-center"),k(f,"class","sr-only"),k(z,"class","sr-only"),k(C,"type","button"),k(C,"title",t[17]),k(m,"class","flex items-center justify-center"),k(l,"class","mx-3 my-2 flex items-center justify-around"),k(J,"type","button"),k(J,"class","cursor-pointer text-[12px]"),k(Y,"type","button"),k(Y,"class","cursor-pointer text-[12px]"),k(N,"class","my-1 flex justify-between px-2"),k(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(D,A){H(D,e,A),b(e,l),b(l,a),b(a,r),b(r,n),b(n,o),b(r,i),R(s,r,null),b(l,c),b(l,g),b(g,u),b(g,h),b(g,_),b(l,v),b(l,m),b(m,f),b(m,P),b(m,C),b(C,z),b(z,ee),b(C,te),R(K,C,null),b(e,w),R(V,e,null),b(e,G),b(e,N),b(N,J),b(J,Q),b(N,le),b(N,Y),b(Y,Z),X=!0,me||(Ee=[ae(r,"click",t[14]),ae(C,"click",t[13]),ae(J,"click",t[18]),ae(Y,"click",t[19])],me=!0)},p(D,A){var ne;(!X||A&256)&&d!==(d=(((ne=He(D[8]))==null?void 0:ne.label)??"")+"")&&se(u,d),(!X||A&512)&&se(_,D[9]);const B={};A&256&&(B.month=D[8]),A&512&&(B.year=D[9]),A&1&&(B.date=D[0]),A&2&&(B.isAllowed=D[1]),V.$set(B),(!X||A&16)&&se(Q,D[4]),(!X||A&32)&&se(Z,D[5])},i(D){X||(T(s.$$.fragment,D),T(K.$$.fragment,D),T(V.$$.fragment,D),X=!0)},o(D){S(s.$$.fragment,D),S(K.$$.fragment,D),S(V.$$.fragment,D),X=!1},d(D){D&&p(e),W(s),W(K),W(V),me=!1,ze(Ee)}}}function ut(t){let e,l,a,r,n,o,i;l=new he({props:{id:"datepicker",label:t[2],labelHidden:t[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:t[0].toDateString(),clearable:!0,clearButtonLabel:t[6],disabled:t[7]}}),l.$on("focus",t[11]),l.$on("input",t[12]);let s=t[10]&&Ue(t);return{c(){e=y("div"),F(l.$$.fragment),a=M(),s&&s.c(),this.h()},l(c){e=E(c,"DIV",{class:!0});var g=I(e);j(l.$$.fragment,g),a=L(g),s&&s.l(g),g.forEach(p),this.h()},h(){k(e,"class","relative")},m(c,g){H(c,e,g),R(l,e,null),b(e,a),s&&s.m(e,null),n=!0,o||(i=Ke(r=Ge.call(null,e,t[20])),o=!0)},p(c,[g]){const d={};g&4&&(d.label=c[2]),g&8&&(d.labelHidden=c[3]),g&1&&(d.value=c[0].toDateString()),g&64&&(d.clearButtonLabel=c[6]),g&128&&(d.disabled=c[7]),l.$set(d),c[10]?s?(s.p(c,g),g&1024&&T(s,1)):(s=Ue(c),s.c(),T(s,1),s.m(e,null)):s&&(ge(),S(s,1,1,()=>{s=null}),ve()),r&&je(r.update)&&g&1024&&r.update.call(null,c[20])},i(c){n||(T(l.$$.fragment,c),T(s),n=!0)},o(c){S(l.$$.fragment,c),S(s),n=!1},d(c){c&&p(e),W(l),s&&s.d(),o=!1,i()}}}function ft(t,e,l){const a=we();let{isAllowed:r=()=>!0}=e,{selected:n=new Date}=e,{label:o}=e,{labelHidden:i=!1}=e,{todayLabel:s}=e,{closeLabel:c}=e,{clearLabel:g}=e,{disabled:d=!1}=e,u,h,_=!1;const v=()=>{l(10,_=!0)},m=w=>{const G=w.target.value;if(G.length===8){const N=G==null?void 0:G.split("/"),Q=2e3+parseInt(N[2]),le=parseInt(N[0])-1,Y=parseInt(N[1]),Z=new Date(Q,le,Y);a("datechange",Z)}},f=()=>{if(u===11){l(8,u=0),l(9,h=h+1);return}l(8,u=u+1)},O=()=>{if(u===0){l(8,u=11),l(9,h-=1);return}l(8,u-=1)},P=w=>{l(10,_=!1),a("datechange",w.detail)},C=Se("date-picker.previous-month"),z=Se("date-picker.next-month"),ee=()=>l(0,n=new Date),te=()=>l(10,_=!1),K=()=>l(10,_=!1);return t.$$set=w=>{"isAllowed"in w&&l(1,r=w.isAllowed),"selected"in w&&l(0,n=w.selected),"label"in w&&l(2,o=w.label),"labelHidden"in w&&l(3,i=w.labelHidden),"todayLabel"in w&&l(4,s=w.todayLabel),"closeLabel"in w&&l(5,c=w.closeLabel),"clearLabel"in w&&l(6,g=w.clearLabel),"disabled"in w&&l(7,d=w.disabled)},t.$$.update=()=>{t.$$.dirty&1&&(l(8,u=n.getMonth()),l(9,h=n.getFullYear()))},[n,r,o,i,s,c,g,d,u,h,_,v,m,f,O,P,C,z,ee,te,K]}class Tt extends De{constructor(e){super(),ye(this,e,ft,ut,ke,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function qe(t){let e,l,a;function r(o){t[10](o)}let n={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(t[0])>59,disabled:t[6]};return t[2]!==void 0&&(n.value=t[2]),e=new he({props:n}),_e.push(()=>pe(e,"value",r)),e.$on("input",t[7]),{c(){F(e.$$.fragment)},l(o){j(e.$$.fragment,o)},m(o,i){R(e,o,i),a=!0},p(o,i){const s={};i&1&&(s.error=parseInt(o[0])>59),i&64&&(s.disabled=o[6]),!l&&i&4&&(l=!0,s.value=o[2],be(()=>l=!1)),e.$set(s)},i(o){a||(T(e.$$.fragment,o),a=!0)},o(o){S(e.$$.fragment,o),a=!1},d(o){W(e,o)}}}function Fe(t){let e,l;return e=new Ze({props:{$$slots:{default:[ht]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},l(a){j(e.$$.fragment,a)},m(a,r){R(e,a,r),l=!0},p(a,r){const n={};r&16392&&(n.$$scope={dirty:r,ctx:a}),e.$set(n)},i(a){l||(T(e.$$.fragment,a),l=!0)},o(a){S(e.$$.fragment,a),l=!1},d(a){W(e,a)}}}function ct(t){let e;return{c(){e=U("AM")},l(l){e=q(l,"AM")},m(l,a){H(l,e,a)},d(l){l&&p(e)}}}function dt(t){let e;return{c(){e=U("PM")},l(l){e=q(l,"PM")},m(l,a){H(l,e,a)},d(l){l&&p(e)}}}function ht(t){let e,l,a,r;return e=new Ne({props:{active:t[3]==="AM",$$slots:{default:[ct]},$$scope:{ctx:t}}}),e.$on("click",t[11]),a=new Ne({props:{active:t[3]==="PM",$$slots:{default:[dt]},$$scope:{ctx:t}}}),a.$on("click",t[12]),{c(){F(e.$$.fragment),l=M(),F(a.$$.fragment)},l(n){j(e.$$.fragment,n),l=L(n),j(a.$$.fragment,n)},m(n,o){R(e,n,o),H(n,l,o),R(a,n,o),r=!0},p(n,o){const i={};o&8&&(i.active=n[3]==="AM"),o&16384&&(i.$$scope={dirty:o,ctx:n}),e.$set(i);const s={};o&8&&(s.active=n[3]==="PM"),o&16384&&(s.$$scope={dirty:o,ctx:n}),a.$set(s)},i(n){r||(T(e.$$.fragment,n),T(a.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),S(a.$$.fragment,n),r=!1},d(n){n&&p(l),W(e,n),W(a,n)}}}function mt(t){let e,l,a,r,n,o,i,s,c;function g(m){t[8](m)}let d={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:t[4]?parseInt(t[0])>12:parseInt(t[0])>23,disabled:t[6]};t[0]!==void 0&&(d.value=t[0]),l=new he({props:d}),_e.push(()=>pe(l,"value",g)),l.$on("input",t[7]);function u(m){t[9](m)}let h={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(t[0])>59,disabled:t[6]};t[1]!==void 0&&(h.value=t[1]),n=new he({props:h}),_e.push(()=>pe(n,"value",u)),n.$on("input",t[7]);let _=t[5]&&qe(t),v=t[4]&&Fe(t);return{c(){e=y("div"),F(l.$$.fragment),r=M(),F(n.$$.fragment),i=M(),_&&_.c(),s=M(),v&&v.c(),this.h()},l(m){e=E(m,"DIV",{class:!0});var f=I(e);j(l.$$.fragment,f),r=L(f),j(n.$$.fragment,f),i=L(f),_&&_.l(f),s=L(f),v&&v.l(f),f.forEach(p),this.h()},h(){k(e,"class","flex gap-2")},m(m,f){H(m,e,f),R(l,e,null),b(e,r),R(n,e,null),b(e,i),_&&_.m(e,null),b(e,s),v&&v.m(e,null),c=!0},p(m,[f]){const O={};f&17&&(O.error=m[4]?parseInt(m[0])>12:parseInt(m[0])>23),f&64&&(O.disabled=m[6]),!a&&f&1&&(a=!0,O.value=m[0],be(()=>a=!1)),l.$set(O);const P={};f&1&&(P.error=parseInt(m[0])>59),f&64&&(P.disabled=m[6]),!o&&f&2&&(o=!0,P.value=m[1],be(()=>o=!1)),n.$set(P),m[5]?_?(_.p(m,f),f&32&&T(_,1)):(_=qe(m),_.c(),T(_,1),_.m(e,s)):_&&(ge(),S(_,1,1,()=>{_=null}),ve()),m[4]?v?(v.p(m,f),f&16&&T(v,1)):(v=Fe(m),v.c(),T(v,1),v.m(e,null)):v&&(ge(),S(v,1,1,()=>{v=null}),ve())},i(m){c||(T(l.$$.fragment,m),T(n.$$.fragment,m),T(_),T(v),c=!0)},o(m){S(l.$$.fragment,m),S(n.$$.fragment,m),S(_),S(v),c=!1},d(m){m&&p(e),W(l),W(n),_&&_.d(),v&&v.d()}}}function _t(t,e,l){let{hour:a=""}=e,{minute:r=""}=e,{second:n=""}=e,{half:o="AM"}=e,{twelveHourClock:i=!0}=e,{includeSeconds:s=!0}=e,{disabled:c=!1}=e;const g=we(),d=f=>{const O=f.target;g("timechange",O.value)};function u(f){a=f,l(0,a)}function h(f){r=f,l(1,r)}function _(f){n=f,l(2,n)}const v=()=>l(3,o="AM"),m=()=>l(3,o="PM");return t.$$set=f=>{"hour"in f&&l(0,a=f.hour),"minute"in f&&l(1,r=f.minute),"second"in f&&l(2,n=f.second),"half"in f&&l(3,o=f.half),"twelveHourClock"in f&&l(4,i=f.twelveHourClock),"includeSeconds"in f&&l(5,s=f.includeSeconds),"disabled"in f&&l(6,c=f.disabled)},[a,r,n,o,i,s,c,d,u,h,_,v,m]}class At extends De{constructor(e){super(),ye(this,e,_t,mt,ke,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{Tt as D,Et as S,At as T,It as g,Re as m,Be as w}; +import{s as ke,h as y,b as M,j as E,k as I,f as p,d as L,m as k,i as H,n as b,v as x,y as We,r as we,t as U,l as q,x as ce,H as $,p as ae,Y as je,q as se,a0 as Ke,o as Je,G as ze,N as _e,O as be}from"./scheduler.C46pS-76.js";import{S as De,i as ye,c as F,a as j,m as R,t as T,g as ge,b as S,e as ve,d as W,f as pe}from"./index.dOVbn71B.js";import{e as Ge}from"./menu.B3Snjx4c.js";import{t as Se}from"./translate.BBe5dcco.js";import{e as de,u as Xe,d as Qe}from"./each.C6O0oV7R.js";import{I as Ce}from"./icon.CfkHLDdJ.js";import{I as he}from"./input.Dizl7Mgk.js";import{T as Ze,a as Ne}from"./toggle-buttons.cS3NnOtm.js";const Et={BOOL:"Bool",DATETIME:"Datetime",DOUBLE:"Double",INT:"Int",KEYWORD:"Keyword",TEXT:"Text",KEYWORDLIST:"KeywordList",UNSPECIFIED:"Unspecified"},Re=[{label:"Every month",value:"*"},{label:"January",value:"1"},{label:"February",value:"2"},{label:"March",value:"3"},{label:"April",value:"4"},{label:"May",value:"5"},{label:"June",value:"6"},{label:"July",value:"7"},{label:"August",value:"8"},{label:"September",value:"9"},{label:"October",value:"10"},{label:"November",value:"11"},{label:"December",value:"12"}],It=[{label:"Everyday",value:"*"},{label:"Weekdays",value:"1,2,3,4,5"},{label:"Weekends",value:"6,7"}],Be=[{label:"Sunday",value:"7"},{label:"Monday",value:"1"},{label:"Tuesday",value:"2"},{label:"Wednesday",value:"3"},{label:"Thursday",value:"4"},{label:"Friday",value:"5"},{label:"Saturday",value:"6"}],$e=[31,28,31,30,31,30,31,31,30,31,30,31],xe=t=>t%4===0,et=()=>Array.from({length:42}).map(()=>0),tt=(t,e)=>t!==1?$e[t]:xe(e)?29:28,lt=(t,e)=>{const a=new Date(e,t,1).getMonth();return{name:Re[a],days:tt(a,e)}},He=t=>Re.filter(e=>e.value!=="*")[t],nt=(t,e)=>{const{days:l}=lt(t,e),a=et(),r=new Date(e,t,1).getDay();Array.from({length:l}).forEach((o,i)=>{const s=r+i;a[s]=i+1});const n=a.map(o=>Array.isArray(o)?void 0:o);return n[35]?n:n.slice(0,-7)};function Oe(t,e,l){const a=t.slice();return a[9]=e[l].allowed,a[10]=e[l].value,a[12]=l,a}function Pe(t,e,l){const a=t.slice();return a[13]=e[l],a}function Ve(t){let e,l=t[13].label.slice(0,2)+"",a;return{c(){e=y("p"),a=U(l),this.h()},l(r){e=E(r,"P",{class:!0});var n=I(e);a=q(n,l),n.forEach(p),this.h()},h(){k(e,"class","cell svelte-1qa9vfx")},m(r,n){H(r,e,n),b(e,a)},p:x,d(r){r&&p(e)}}}function at(t){let e;return{c(){e=y("div"),this.h()},l(l){e=E(l,"DIV",{class:!0}),I(e).forEach(p),this.h()},h(){k(e,"class","cell svelte-1qa9vfx")},m(l,a){H(l,e,a)},p:x,d(l){l&&p(e)}}}function st(t){let e,l=(t[10]||"")+"",a,r,n,o;function i(){return t[6](t[10])}return{c(){e=y("button"),a=U(l),r=M(),this.h()},l(s){e=E(s,"BUTTON",{type:!0,class:!0});var c=I(e);a=q(c,l),r=L(c),c.forEach(p),this.h()},h(){k(e,"type","button"),k(e,"class","cell svelte-1qa9vfx"),$(e,"highlight",t[9]&&t[10]),$(e,"disabled",!t[9]),$(e,"selected",new Date(t[0].getFullYear(),t[0].getMonth(),t[0].getDate()).getTime()===new Date(t[2],t[1],t[10]).getTime())},m(s,c){H(s,e,c),b(e,a),b(e,r),n||(o=ae(e,"click",function(){je(t[9]&&t[10]?i:x)&&(t[9]&&t[10]?i:x).apply(this,arguments)}),n=!0)},p(s,c){t=s,c&8&&l!==(l=(t[10]||"")+"")&&se(a,l),c&8&&$(e,"highlight",t[9]&&t[10]),c&8&&$(e,"disabled",!t[9]),c&15&&$(e,"selected",new Date(t[0].getFullYear(),t[0].getMonth(),t[0].getDate()).getTime()===new Date(t[2],t[1],t[10]).getTime())},d(s){s&&p(e),n=!1,o()}}}function Ye(t,e){let l,a;function r(i,s){return i[10]?st:at}let n=r(e),o=n(e);return{key:t,first:null,c(){l=ce(),o.c(),a=ce(),this.h()},l(i){l=ce(),o.l(i),a=ce(),this.h()},h(){this.first=l},m(i,s){H(i,l,s),o.m(i,s),H(i,a,s)},p(i,s){e=i,n===(n=r(e))&&o?o.p(e,s):(o.d(1),o=n(e),o&&(o.c(),o.m(a.parentNode,a)))},d(i){i&&(p(l),p(a)),o.d(i)}}}function ot(t){let e,l,a,r,n=[],o=new Map,i=de(Be),s=[];for(let d=0;dd[12];for(let d=0;d!0}=e,s=[];const c=u=>{a("datechange",new Date(o,n,u))},g=(u,h,_)=>_?i(new Date(u,h,_)):!0,d=u=>c(u);return t.$$set=u=>{"date"in u&&l(0,r=u.date),"month"in u&&l(1,n=u.month),"year"in u&&l(2,o=u.year),"isAllowed"in u&&l(5,i=u.isAllowed)},t.$$.update=()=>{t.$$.dirty&6&&l(3,s=nt(n,o).map(u=>({value:u,allowed:g(o,n,u)})))},[r,n,o,s,c,i,d]}class it extends De{constructor(e){super(),ye(this,e,rt,ot,ke,{date:0,month:1,year:2,isAllowed:5})}}function Ue(t){var Ie;let e,l,a,r,n,o,i,s,c,g,d=(((Ie=He(t[8]))==null?void 0:Ie.label)??"")+"",u,h,_,v,m,f,O="Next Month",P,C,z,ee,te,K,w,V,G,N,J,Q,le,Y,Z,X,me,Ee;return s=new Ce({props:{name:"chevron-left"}}),K=new Ce({props:{name:"chevron-right"}}),V=new it({props:{month:t[8],year:t[9],date:t[0],isAllowed:t[1]}}),V.$on("datechange",t[15]),{c(){e=y("div"),l=y("div"),a=y("div"),r=y("button"),n=y("span"),o=U(t[16]),i=M(),F(s.$$.fragment),c=M(),g=y("div"),u=U(d),h=M(),_=U(t[9]),v=M(),m=y("div"),f=y("span"),f.textContent=O,P=M(),C=y("button"),z=y("span"),ee=U(t[17]),te=M(),F(K.$$.fragment),w=M(),F(V.$$.fragment),G=M(),N=y("div"),J=y("button"),Q=U(t[4]),le=M(),Y=y("button"),Z=U(t[5]),this.h()},l(D){e=E(D,"DIV",{class:!0});var A=I(e);l=E(A,"DIV",{class:!0});var B=I(l);a=E(B,"DIV",{class:!0});var ne=I(a);r=E(ne,"BUTTON",{type:!0,title:!0});var oe=I(r);n=E(oe,"SPAN",{class:!0});var Te=I(n);o=q(Te,t[16]),Te.forEach(p),i=L(oe),j(s.$$.fragment,oe),oe.forEach(p),ne.forEach(p),c=L(B),g=E(B,"DIV",{class:!0});var re=I(g);u=q(re,d),h=L(re),_=q(re,t[9]),re.forEach(p),v=L(B),m=E(B,"DIV",{class:!0});var ie=I(m);f=E(ie,"SPAN",{class:!0,"data-svelte-h":!0}),Je(f)!=="svelte-uyb8ys"&&(f.textContent=O),P=L(ie),C=E(ie,"BUTTON",{type:!0,title:!0});var ue=I(C);z=E(ue,"SPAN",{class:!0});var Ae=I(z);ee=q(Ae,t[17]),Ae.forEach(p),te=L(ue),j(K.$$.fragment,ue),ue.forEach(p),ie.forEach(p),B.forEach(p),w=L(A),j(V.$$.fragment,A),G=L(A),N=E(A,"DIV",{class:!0});var fe=I(N);J=E(fe,"BUTTON",{type:!0,class:!0});var Me=I(J);Q=q(Me,t[4]),Me.forEach(p),le=L(fe),Y=E(fe,"BUTTON",{type:!0,class:!0});var Le=I(Y);Z=q(Le,t[5]),Le.forEach(p),fe.forEach(p),A.forEach(p),this.h()},h(){k(n,"class","sr-only"),k(r,"type","button"),k(r,"title",t[16]),k(a,"class","flex items-center justify-center"),k(g,"class","flex items-center justify-center"),k(f,"class","sr-only"),k(z,"class","sr-only"),k(C,"type","button"),k(C,"title",t[17]),k(m,"class","flex items-center justify-center"),k(l,"class","mx-3 my-2 flex items-center justify-around"),k(J,"type","button"),k(J,"class","cursor-pointer text-[12px]"),k(Y,"type","button"),k(Y,"class","cursor-pointer text-[12px]"),k(N,"class","my-1 flex justify-between px-2"),k(e,"class","surface-primary absolute z-30 inline-block rounded border border-subtle shadow")},m(D,A){H(D,e,A),b(e,l),b(l,a),b(a,r),b(r,n),b(n,o),b(r,i),R(s,r,null),b(l,c),b(l,g),b(g,u),b(g,h),b(g,_),b(l,v),b(l,m),b(m,f),b(m,P),b(m,C),b(C,z),b(z,ee),b(C,te),R(K,C,null),b(e,w),R(V,e,null),b(e,G),b(e,N),b(N,J),b(J,Q),b(N,le),b(N,Y),b(Y,Z),X=!0,me||(Ee=[ae(r,"click",t[14]),ae(C,"click",t[13]),ae(J,"click",t[18]),ae(Y,"click",t[19])],me=!0)},p(D,A){var ne;(!X||A&256)&&d!==(d=(((ne=He(D[8]))==null?void 0:ne.label)??"")+"")&&se(u,d),(!X||A&512)&&se(_,D[9]);const B={};A&256&&(B.month=D[8]),A&512&&(B.year=D[9]),A&1&&(B.date=D[0]),A&2&&(B.isAllowed=D[1]),V.$set(B),(!X||A&16)&&se(Q,D[4]),(!X||A&32)&&se(Z,D[5])},i(D){X||(T(s.$$.fragment,D),T(K.$$.fragment,D),T(V.$$.fragment,D),X=!0)},o(D){S(s.$$.fragment,D),S(K.$$.fragment,D),S(V.$$.fragment,D),X=!1},d(D){D&&p(e),W(s),W(K),W(V),me=!1,ze(Ee)}}}function ut(t){let e,l,a,r,n,o,i;l=new he({props:{id:"datepicker",label:t[2],labelHidden:t[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:t[0].toDateString(),clearable:!0,clearButtonLabel:t[6],disabled:t[7]}}),l.$on("focus",t[11]),l.$on("input",t[12]);let s=t[10]&&Ue(t);return{c(){e=y("div"),F(l.$$.fragment),a=M(),s&&s.c(),this.h()},l(c){e=E(c,"DIV",{class:!0});var g=I(e);j(l.$$.fragment,g),a=L(g),s&&s.l(g),g.forEach(p),this.h()},h(){k(e,"class","relative")},m(c,g){H(c,e,g),R(l,e,null),b(e,a),s&&s.m(e,null),n=!0,o||(i=Ke(r=Ge.call(null,e,t[20])),o=!0)},p(c,[g]){const d={};g&4&&(d.label=c[2]),g&8&&(d.labelHidden=c[3]),g&1&&(d.value=c[0].toDateString()),g&64&&(d.clearButtonLabel=c[6]),g&128&&(d.disabled=c[7]),l.$set(d),c[10]?s?(s.p(c,g),g&1024&&T(s,1)):(s=Ue(c),s.c(),T(s,1),s.m(e,null)):s&&(ge(),S(s,1,1,()=>{s=null}),ve()),r&&je(r.update)&&g&1024&&r.update.call(null,c[20])},i(c){n||(T(l.$$.fragment,c),T(s),n=!0)},o(c){S(l.$$.fragment,c),S(s),n=!1},d(c){c&&p(e),W(l),s&&s.d(),o=!1,i()}}}function ft(t,e,l){const a=we();let{isAllowed:r=()=>!0}=e,{selected:n=new Date}=e,{label:o}=e,{labelHidden:i=!1}=e,{todayLabel:s}=e,{closeLabel:c}=e,{clearLabel:g}=e,{disabled:d=!1}=e,u,h,_=!1;const v=()=>{l(10,_=!0)},m=w=>{const G=w.target.value;if(G.length===8){const N=G==null?void 0:G.split("/"),Q=2e3+parseInt(N[2]),le=parseInt(N[0])-1,Y=parseInt(N[1]),Z=new Date(Q,le,Y);a("datechange",Z)}},f=()=>{if(u===11){l(8,u=0),l(9,h=h+1);return}l(8,u=u+1)},O=()=>{if(u===0){l(8,u=11),l(9,h-=1);return}l(8,u-=1)},P=w=>{l(10,_=!1),a("datechange",w.detail)},C=Se("date-picker.previous-month"),z=Se("date-picker.next-month"),ee=()=>l(0,n=new Date),te=()=>l(10,_=!1),K=()=>l(10,_=!1);return t.$$set=w=>{"isAllowed"in w&&l(1,r=w.isAllowed),"selected"in w&&l(0,n=w.selected),"label"in w&&l(2,o=w.label),"labelHidden"in w&&l(3,i=w.labelHidden),"todayLabel"in w&&l(4,s=w.todayLabel),"closeLabel"in w&&l(5,c=w.closeLabel),"clearLabel"in w&&l(6,g=w.clearLabel),"disabled"in w&&l(7,d=w.disabled)},t.$$.update=()=>{t.$$.dirty&1&&(l(8,u=n.getMonth()),l(9,h=n.getFullYear()))},[n,r,o,i,s,c,g,d,u,h,_,v,m,f,O,P,C,z,ee,te,K]}class Tt extends De{constructor(e){super(),ye(this,e,ft,ut,ke,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}function qe(t){let e,l,a;function r(o){t[10](o)}let n={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,hideCount:!0,error:parseInt(t[0])>59,disabled:t[6]};return t[2]!==void 0&&(n.value=t[2]),e=new he({props:n}),_e.push(()=>pe(e,"value",r)),e.$on("input",t[7]),{c(){F(e.$$.fragment)},l(o){j(e.$$.fragment,o)},m(o,i){R(e,o,i),a=!0},p(o,i){const s={};i&1&&(s.error=parseInt(o[0])>59),i&64&&(s.disabled=o[6]),!l&&i&4&&(l=!0,s.value=o[2],be(()=>l=!1)),e.$set(s)},i(o){a||(T(e.$$.fragment,o),a=!0)},o(o){S(e.$$.fragment,o),a=!1},d(o){W(e,o)}}}function Fe(t){let e,l;return e=new Ze({props:{$$slots:{default:[ht]},$$scope:{ctx:t}}}),{c(){F(e.$$.fragment)},l(a){j(e.$$.fragment,a)},m(a,r){R(e,a,r),l=!0},p(a,r){const n={};r&16392&&(n.$$scope={dirty:r,ctx:a}),e.$set(n)},i(a){l||(T(e.$$.fragment,a),l=!0)},o(a){S(e.$$.fragment,a),l=!1},d(a){W(e,a)}}}function ct(t){let e;return{c(){e=U("AM")},l(l){e=q(l,"AM")},m(l,a){H(l,e,a)},d(l){l&&p(e)}}}function dt(t){let e;return{c(){e=U("PM")},l(l){e=q(l,"PM")},m(l,a){H(l,e,a)},d(l){l&&p(e)}}}function ht(t){let e,l,a,r;return e=new Ne({props:{active:t[3]==="AM",$$slots:{default:[ct]},$$scope:{ctx:t}}}),e.$on("click",t[11]),a=new Ne({props:{active:t[3]==="PM",$$slots:{default:[dt]},$$scope:{ctx:t}}}),a.$on("click",t[12]),{c(){F(e.$$.fragment),l=M(),F(a.$$.fragment)},l(n){j(e.$$.fragment,n),l=L(n),j(a.$$.fragment,n)},m(n,o){R(e,n,o),H(n,l,o),R(a,n,o),r=!0},p(n,o){const i={};o&8&&(i.active=n[3]==="AM"),o&16384&&(i.$$scope={dirty:o,ctx:n}),e.$set(i);const s={};o&8&&(s.active=n[3]==="PM"),o&16384&&(s.$$scope={dirty:o,ctx:n}),a.$set(s)},i(n){r||(T(e.$$.fragment,n),T(a.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),S(a.$$.fragment,n),r=!1},d(n){n&&p(l),W(e,n),W(a,n)}}}function mt(t){let e,l,a,r,n,o,i,s,c;function g(m){t[8](m)}let d={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,hideCount:!0,error:t[4]?parseInt(t[0])>12:parseInt(t[0])>23,disabled:t[6]};t[0]!==void 0&&(d.value=t[0]),l=new he({props:d}),_e.push(()=>pe(l,"value",g)),l.$on("input",t[7]);function u(m){t[9](m)}let h={id:"minute",label:"min",labelHidden:!0,placeholder:"00",suffix:"min",maxLength:2,hideCount:!0,error:parseInt(t[0])>59,disabled:t[6]};t[1]!==void 0&&(h.value=t[1]),n=new he({props:h}),_e.push(()=>pe(n,"value",u)),n.$on("input",t[7]);let _=t[5]&&qe(t),v=t[4]&&Fe(t);return{c(){e=y("div"),F(l.$$.fragment),r=M(),F(n.$$.fragment),i=M(),_&&_.c(),s=M(),v&&v.c(),this.h()},l(m){e=E(m,"DIV",{class:!0});var f=I(e);j(l.$$.fragment,f),r=L(f),j(n.$$.fragment,f),i=L(f),_&&_.l(f),s=L(f),v&&v.l(f),f.forEach(p),this.h()},h(){k(e,"class","flex gap-2")},m(m,f){H(m,e,f),R(l,e,null),b(e,r),R(n,e,null),b(e,i),_&&_.m(e,null),b(e,s),v&&v.m(e,null),c=!0},p(m,[f]){const O={};f&17&&(O.error=m[4]?parseInt(m[0])>12:parseInt(m[0])>23),f&64&&(O.disabled=m[6]),!a&&f&1&&(a=!0,O.value=m[0],be(()=>a=!1)),l.$set(O);const P={};f&1&&(P.error=parseInt(m[0])>59),f&64&&(P.disabled=m[6]),!o&&f&2&&(o=!0,P.value=m[1],be(()=>o=!1)),n.$set(P),m[5]?_?(_.p(m,f),f&32&&T(_,1)):(_=qe(m),_.c(),T(_,1),_.m(e,s)):_&&(ge(),S(_,1,1,()=>{_=null}),ve()),m[4]?v?(v.p(m,f),f&16&&T(v,1)):(v=Fe(m),v.c(),T(v,1),v.m(e,null)):v&&(ge(),S(v,1,1,()=>{v=null}),ve())},i(m){c||(T(l.$$.fragment,m),T(n.$$.fragment,m),T(_),T(v),c=!0)},o(m){S(l.$$.fragment,m),S(n.$$.fragment,m),S(_),S(v),c=!1},d(m){m&&p(e),W(l),W(n),_&&_.d(),v&&v.d()}}}function _t(t,e,l){let{hour:a=""}=e,{minute:r=""}=e,{second:n=""}=e,{half:o="AM"}=e,{twelveHourClock:i=!0}=e,{includeSeconds:s=!0}=e,{disabled:c=!1}=e;const g=we(),d=f=>{const O=f.target;g("timechange",O.value)};function u(f){a=f,l(0,a)}function h(f){r=f,l(1,r)}function _(f){n=f,l(2,n)}const v=()=>l(3,o="AM"),m=()=>l(3,o="PM");return t.$$set=f=>{"hour"in f&&l(0,a=f.hour),"minute"in f&&l(1,r=f.minute),"second"in f&&l(2,n=f.second),"half"in f&&l(3,o=f.half),"twelveHourClock"in f&&l(4,i=f.twelveHourClock),"includeSeconds"in f&&l(5,s=f.includeSeconds),"disabled"in f&&l(6,c=f.disabled)},[a,r,n,o,i,s,c,d,u,h,_,v,m]}class At extends De{constructor(e){super(),ye(this,e,_t,mt,ke,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,includeSeconds:5,disabled:6})}}export{Tt as D,Et as S,At as T,It as g,Re as m,Be as w}; diff --git a/ui/assets/local/_app/immutable/chunks/to-time-difference.ZrFqr6rH.js b/ui/assets/local/_app/immutable/chunks/to-time-difference.l4Q9xnPU.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/to-time-difference.ZrFqr6rH.js rename to ui/assets/local/_app/immutable/chunks/to-time-difference.l4Q9xnPU.js index 202eb813a..f988e0366 100644 --- a/ui/assets/local/_app/immutable/chunks/to-time-difference.ZrFqr6rH.js +++ b/ui/assets/local/_app/immutable/chunks/to-time-difference.l4Q9xnPU.js @@ -1 +1 @@ -import{C as u}from"./scheduler.C46pS-76.js";import{t as n}from"./translate.BBe5dcco.js";import{f as d,r as p,t as b}from"./time-format.D2wF3ave.js";import{c as f}from"./format-camel-case.ByTIZu23.js";import{s as l,a as h,p as c,b as y,c as w}from"./get-single-attribute-for-event.B37Av_rg.js";const D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),A=new Set(["maximumAttempts"]),g=(e,t)=>e===0?n("workflows.no-expiration"):t,v=(e,t)=>e?e-t:n("workflows.unlimited"),$=e=>e||n("workflows.unlimited"),x=(e,t)=>e==="maximumAttempts"&&!t?n("workflows.unlimited"):t,a=(e,t)=>{if(D.has(t)&&typeof e[t]=="object"){for(const[s,r]of Object.entries(e[t]))y(r)&&(A.has(s)?e[`${t}${f(s)}`]=x(s,r):e[`${t}${f(s)}`]=r);delete e[t]}},F=e=>{const t={};if(e.attributes)for(const[s,r]of Object.entries(e.attributes))l(s,r)&&(t[s]=r),a(t,s);return t},S=e=>{const t={};return e.eventList.forEach(s=>{for(const[r,o]of Object.entries(s.attributes))l(r,o)&&(t[r]=o),a(t,r)}),Object.keys(t).forEach(s=>{h(s,t[s])||delete t[s]}),t},T=e=>{const t={},s=Object.entries(e).sort(([r],[o])=>c.indexOf(r)-c.indexOf(o));for(const[r,o]of s){const i=w(r),m=r.toLowerCase().includes("time")?d(String(o),u(b),{relative:u(p)}):o;i&&(t[r]=m),a(t,r)}return t},L=({date:e,now:t=Date.now(),negativeDefault:s})=>{if(!e)return"";const r=String(e);try{const i=(Number(new Date(r))-t)/1e3;return s&&i<0?s:isNaN(i)?"":`${i.toFixed(0)}s`}catch{return""}};export{$ as a,g as b,S as c,T as d,F as e,v as f,L as t}; +import{C as u}from"./scheduler.C46pS-76.js";import{t as n}from"./translate.BBe5dcco.js";import{f as d,r as p,t as b}from"./time-format.BLKgLEx9.js";import{c as f}from"./format-camel-case.ByTIZu23.js";import{s as l,a as h,p as c,b as y,c as w}from"./get-single-attribute-for-event.C6hE5al8.js";const D=new Set(["taskQueue","retryPolicy","parentWorkflowExecution","workflowExecution","meta"]),A=new Set(["maximumAttempts"]),g=(e,t)=>e===0?n("workflows.no-expiration"):t,v=(e,t)=>e?e-t:n("workflows.unlimited"),$=e=>e||n("workflows.unlimited"),x=(e,t)=>e==="maximumAttempts"&&!t?n("workflows.unlimited"):t,a=(e,t)=>{if(D.has(t)&&typeof e[t]=="object"){for(const[s,r]of Object.entries(e[t]))y(r)&&(A.has(s)?e[`${t}${f(s)}`]=x(s,r):e[`${t}${f(s)}`]=r);delete e[t]}},F=e=>{const t={};if(e.attributes)for(const[s,r]of Object.entries(e.attributes))l(s,r)&&(t[s]=r),a(t,s);return t},S=e=>{const t={};return e.eventList.forEach(s=>{for(const[r,o]of Object.entries(s.attributes))l(r,o)&&(t[r]=o),a(t,r)}),Object.keys(t).forEach(s=>{h(s,t[s])||delete t[s]}),t},T=e=>{const t={},s=Object.entries(e).sort(([r],[o])=>c.indexOf(r)-c.indexOf(o));for(const[r,o]of s){const i=w(r),m=r.toLowerCase().includes("time")?d(String(o),u(b),{relative:u(p)}):o;i&&(t[r]=m),a(t,r)}return t},L=({date:e,now:t=Date.now(),negativeDefault:s})=>{if(!e)return"";const r=String(e);try{const i=(Number(new Date(r))-t)/1e3;return s&&i<0?s:isNaN(i)?"":`${i.toFixed(0)}s`}catch{return""}};export{$ as a,g as b,S as c,T as d,F as e,v as f,L as t}; diff --git a/ui/assets/local/_app/immutable/chunks/toaster.D-OAJjvv.js b/ui/assets/local/_app/immutable/chunks/toaster.p5hsABhI.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/toaster.D-OAJjvv.js rename to ui/assets/local/_app/immutable/chunks/toaster.p5hsABhI.js index 2eee1f45b..52a3aac86 100644 --- a/ui/assets/local/_app/immutable/chunks/toaster.D-OAJjvv.js +++ b/ui/assets/local/_app/immutable/chunks/toaster.p5hsABhI.js @@ -1 +1 @@ -import{w as r}from"./entry.DLEzeuD9.js";let i;const a=new Uint8Array(16);function p(){if(!i&&(i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function m(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const y=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),c={randomUUID:y};function l(t,n,d){if(c.randomUUID&&!n&&!t)return c.randomUUID();t=t||{};const o=t.random||(t.rng||p)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,m(o)}const u=r([]),U=t=>{const n={id:l(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const d=setTimeout(()=>{s(n.id),clearTimeout(d)},n.duration)},s=t=>{u.update(n=>n.filter(d=>d.id!==t))},g=()=>{u.set([])},x={push:U,pop:s,clear:g,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{x as t,l as v}; +import{w as r}from"./entry.kylZibtV.js";let i;const a=new Uint8Array(16);function p(){if(!i&&(i=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!i))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return i(a)}const e=[];for(let t=0;t<256;++t)e.push((t+256).toString(16).slice(1));function m(t,n=0){return(e[t[n+0]]+e[t[n+1]]+e[t[n+2]]+e[t[n+3]]+"-"+e[t[n+4]]+e[t[n+5]]+"-"+e[t[n+6]]+e[t[n+7]]+"-"+e[t[n+8]]+e[t[n+9]]+"-"+e[t[n+10]]+e[t[n+11]]+e[t[n+12]]+e[t[n+13]]+e[t[n+14]]+e[t[n+15]]).toLowerCase()}const y=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),c={randomUUID:y};function l(t,n,d){if(c.randomUUID&&!n&&!t)return c.randomUUID();t=t||{};const o=t.random||(t.rng||p)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,m(o)}const u=r([]),U=t=>{const n={id:l(),duration:3e3,variant:"primary",...t};u.update(o=>[...o,n]);const d=setTimeout(()=>{s(n.id),clearTimeout(d)},n.duration)},s=t=>{u.update(n=>n.filter(d=>d.id!==t))},g=()=>{u.set([])},x={push:U,pop:s,clear:g,toasts:u,set:u.set,subscribe:u.subscribe,update:u.update};export{x as t,l as v}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-buttons.Cubqph53.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.cS3NnOtm.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.Cubqph53.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.cS3NnOtm.js index cbdccaef6..81c0c8466 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.Cubqph53.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.cS3NnOtm.js @@ -1 +1 @@ -import{L as X,s as I,x as v,i as g,f as p,D as B,c as Y,K as Z,z as E,A as y,h as k,j as C,k as N,ad as H,H as d,p as w,B as $,a as A,u as D,g as S,e as P,b as x,d as ee,m as V,n as te,a7 as le}from"./scheduler.C46pS-76.js";import{S as M,i as U,t as m,b as h,c as F,a as G,m as J,d as O,g as Q,e as R}from"./index.dOVbn71B.js";import{g as se}from"./spread.CgU5AtxT.js";import{p as ne}from"./stores.Dz-RNcUk.js";import{I as ae}from"./icon.CfkHLDdJ.js";import{T as oe}from"./tooltip.D2lOlqUw.js";import{t as K}from"./tw-merge.Ds6tgvmq.js";function ie(n){return X(n)}function ue(n){let t;const s=n[10].default,o=A(s,n,n[12],null);return{c(){o&&o.c()},l(l){o&&o.l(l)},m(l,e){o&&o.m(l,e),t=!0},p(l,e){o&&o.p&&(!t||e&4096)&&D(o,s,l,l[12],t?P(s,l[12],e,null):S(l[12]),null)},i(l){t||(m(o,l),t=!0)},o(l){h(o,l),t=!1},d(l){o&&o.d(l)}}}function re(n){let t,s,o,l;s=new ae({props:{name:n[1]}});let e=n[9].default&&L(n);return{c(){t=k("div"),F(s.$$.fragment),o=x(),e&&e.c(),this.h()},l(a){t=C(a,"DIV",{class:!0});var f=N(t);G(s.$$.fragment,f),o=ee(f),e&&e.l(f),f.forEach(p),this.h()},h(){V(t,"class","flex items-center gap-2")},m(a,f){g(a,t,f),J(s,t,null),te(t,o),e&&e.m(t,null),l=!0},p(a,f){const u={};f&2&&(u.name=a[1]),s.$set(u),a[9].default?e?(e.p(a,f),f&512&&m(e,1)):(e=L(a),e.c(),m(e,1),e.m(t,null)):e&&(Q(),h(e,1,1,()=>{e=null}),R())},i(a){l||(m(s.$$.fragment,a),m(e),l=!0)},o(a){h(s.$$.fragment,a),h(e),l=!1},d(a){a&&p(t),O(s),e&&e.d()}}}function L(n){let t,s;const o=n[10].default,l=A(o,n,n[12],null);return{c(){t=k("span"),l&&l.c(),this.h()},l(e){t=C(e,"SPAN",{class:!0});var a=N(t);l&&l.l(a),a.forEach(p),this.h()},h(){V(t,"class","hidden md:block")},m(e,a){g(e,t,a),l&&l.m(t,null),s=!0},p(e,a){l&&l.p&&(!s||a&4096)&&D(l,o,e,e[12],s?P(o,e[12],a,null):S(e[12]),null)},i(e){s||(m(l,e),s=!0)},o(e){h(l,e),s=!1},d(e){e&&p(t),l&&l.d(e)}}}function fe(n){let t,s,o,l;const e=[re,ue],a=[];function f(u,_){return u[1]?0:1}return t=f(n),s=a[t]=e[t](n),{c(){s.c(),o=v()},l(u){s.l(u),o=v()},m(u,_){a[t].m(u,_),g(u,o,_),l=!0},p(u,_){let i=t;t=f(u),t===i?a[t].p(u,_):(Q(),h(a[i],1,1,()=>{a[i]=null}),R(),s=a[t],s?s.p(u,_):(s=a[t]=e[t](u),s.c()),m(s,1),s.m(o.parentNode,o))},i(u){l||(m(s),l=!0)},o(u){h(s),l=!1},d(u){u&&p(o),a[t].d(u)}}}function T(n){let t,s,o,l,e,a,f;s=new oe({props:{hide:!n[6],text:n[6],top:!0,$$slots:{default:[fe]},$$scope:{ctx:n}}});let u=[{class:o=K("toggle-button",n[0])},{href:l=n[3]?n[3]+n[7].url.search:null},{role:"button"},{tabindex:"0"},n[8]],_={};for(let i=0;is(7,e=r));let{$$slots:a={},$$scope:f}=t;const u=Z(a);let{class:_=""}=t,{icon:i=null}=t,{group:c=ie("group")}=t,{href:b=""}=t,{base:j=b}=t,{active:q=!1}=t,{tooltip:z=""}=t;function W(r){$.call(this,n,r)}return n.$$set=r=>{t=E(E({},t),y(r)),s(8,l=B(t,o)),"class"in r&&s(0,_=r.class),"icon"in r&&s(1,i=r.icon),"group"in r&&s(2,c=r.group),"href"in r&&s(3,b=r.href),"base"in r&&s(4,j=r.base),"active"in r&&s(5,q=r.active),"tooltip"in r&&s(6,z=r.tooltip),"$$scope"in r&&s(12,f=r.$$scope)},[_,i,c,b,j,q,z,e,l,u,a,W,f]}class Ne extends M{constructor(t){super(),U(this,t,_e,ce,I,{class:0,icon:1,group:2,href:3,base:4,active:5,tooltip:6})}}function me(n){let t,s;const o=n[1].default,l=A(o,n,n[0],null);return{c(){t=k("div"),l&&l.c(),this.h()},l(e){t=C(e,"DIV",{class:!0});var a=N(t);l&&l.l(a),a.forEach(p),this.h()},h(){V(t,"class","flex")},m(e,a){g(e,t,a),l&&l.m(t,null),s=!0},p(e,[a]){l&&l.p&&(!s||a&1)&&D(l,o,e,e[0],s?P(o,e[0],a,null):S(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){h(l,e),s=!1},d(e){e&&p(t),l&&l.d(e)}}}function de(n,t,s){let{$$slots:o={},$$scope:l}=t;return le("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,o]}class Te extends M{constructor(t){super(),U(this,t,de,me,I,{})}}export{Te as T,Ne as a}; +import{L as X,s as I,x as v,i as g,f as p,D as B,c as Y,K as Z,z as E,A as y,h as k,j as C,k as N,ad as H,H as d,p as w,B as $,a as A,u as D,g as S,e as P,b as x,d as ee,m as V,n as te,a7 as le}from"./scheduler.C46pS-76.js";import{S as M,i as U,t as m,b as h,c as F,a as G,m as J,d as O,g as Q,e as R}from"./index.dOVbn71B.js";import{g as se}from"./spread.CgU5AtxT.js";import{p as ne}from"./stores.Ds4o9nwd.js";import{I as ae}from"./icon.CfkHLDdJ.js";import{T as oe}from"./tooltip.D2lOlqUw.js";import{t as K}from"./tw-merge.Ds6tgvmq.js";function ie(n){return X(n)}function ue(n){let t;const s=n[10].default,o=A(s,n,n[12],null);return{c(){o&&o.c()},l(l){o&&o.l(l)},m(l,e){o&&o.m(l,e),t=!0},p(l,e){o&&o.p&&(!t||e&4096)&&D(o,s,l,l[12],t?P(s,l[12],e,null):S(l[12]),null)},i(l){t||(m(o,l),t=!0)},o(l){h(o,l),t=!1},d(l){o&&o.d(l)}}}function re(n){let t,s,o,l;s=new ae({props:{name:n[1]}});let e=n[9].default&&L(n);return{c(){t=k("div"),F(s.$$.fragment),o=x(),e&&e.c(),this.h()},l(a){t=C(a,"DIV",{class:!0});var f=N(t);G(s.$$.fragment,f),o=ee(f),e&&e.l(f),f.forEach(p),this.h()},h(){V(t,"class","flex items-center gap-2")},m(a,f){g(a,t,f),J(s,t,null),te(t,o),e&&e.m(t,null),l=!0},p(a,f){const u={};f&2&&(u.name=a[1]),s.$set(u),a[9].default?e?(e.p(a,f),f&512&&m(e,1)):(e=L(a),e.c(),m(e,1),e.m(t,null)):e&&(Q(),h(e,1,1,()=>{e=null}),R())},i(a){l||(m(s.$$.fragment,a),m(e),l=!0)},o(a){h(s.$$.fragment,a),h(e),l=!1},d(a){a&&p(t),O(s),e&&e.d()}}}function L(n){let t,s;const o=n[10].default,l=A(o,n,n[12],null);return{c(){t=k("span"),l&&l.c(),this.h()},l(e){t=C(e,"SPAN",{class:!0});var a=N(t);l&&l.l(a),a.forEach(p),this.h()},h(){V(t,"class","hidden md:block")},m(e,a){g(e,t,a),l&&l.m(t,null),s=!0},p(e,a){l&&l.p&&(!s||a&4096)&&D(l,o,e,e[12],s?P(o,e[12],a,null):S(e[12]),null)},i(e){s||(m(l,e),s=!0)},o(e){h(l,e),s=!1},d(e){e&&p(t),l&&l.d(e)}}}function fe(n){let t,s,o,l;const e=[re,ue],a=[];function f(u,_){return u[1]?0:1}return t=f(n),s=a[t]=e[t](n),{c(){s.c(),o=v()},l(u){s.l(u),o=v()},m(u,_){a[t].m(u,_),g(u,o,_),l=!0},p(u,_){let i=t;t=f(u),t===i?a[t].p(u,_):(Q(),h(a[i],1,1,()=>{a[i]=null}),R(),s=a[t],s?s.p(u,_):(s=a[t]=e[t](u),s.c()),m(s,1),s.m(o.parentNode,o))},i(u){l||(m(s),l=!0)},o(u){h(s),l=!1},d(u){u&&p(o),a[t].d(u)}}}function T(n){let t,s,o,l,e,a,f;s=new oe({props:{hide:!n[6],text:n[6],top:!0,$$slots:{default:[fe]},$$scope:{ctx:n}}});let u=[{class:o=K("toggle-button",n[0])},{href:l=n[3]?n[3]+n[7].url.search:null},{role:"button"},{tabindex:"0"},n[8]],_={};for(let i=0;is(7,e=r));let{$$slots:a={},$$scope:f}=t;const u=Z(a);let{class:_=""}=t,{icon:i=null}=t,{group:c=ie("group")}=t,{href:b=""}=t,{base:j=b}=t,{active:q=!1}=t,{tooltip:z=""}=t;function W(r){$.call(this,n,r)}return n.$$set=r=>{t=E(E({},t),y(r)),s(8,l=B(t,o)),"class"in r&&s(0,_=r.class),"icon"in r&&s(1,i=r.icon),"group"in r&&s(2,c=r.group),"href"in r&&s(3,b=r.href),"base"in r&&s(4,j=r.base),"active"in r&&s(5,q=r.active),"tooltip"in r&&s(6,z=r.tooltip),"$$scope"in r&&s(12,f=r.$$scope)},[_,i,c,b,j,q,z,e,l,u,a,W,f]}class Ne extends M{constructor(t){super(),U(this,t,_e,ce,I,{class:0,icon:1,group:2,href:3,base:4,active:5,tooltip:6})}}function me(n){let t,s;const o=n[1].default,l=A(o,n,n[0],null);return{c(){t=k("div"),l&&l.c(),this.h()},l(e){t=C(e,"DIV",{class:!0});var a=N(t);l&&l.l(a),a.forEach(p),this.h()},h(){V(t,"class","flex")},m(e,a){g(e,t,a),l&&l.m(t,null),s=!0},p(e,[a]){l&&l.p&&(!s||a&1)&&D(l,o,e,e[0],s?P(o,e[0],a,null):S(e[0]),null)},i(e){s||(m(l,e),s=!0)},o(e){h(l,e),s=!1},d(e){e&&p(t),l&&l.d(e)}}}function de(n,t,s){let{$$slots:o={},$$scope:l}=t;return le("group",!0),n.$$set=e=>{"$$scope"in e&&s(0,l=e.$$scope)},[l,o]}class Te extends M{constructor(t){super(),U(this,t,de,me,I,{})}}export{Te as T,Ne as a}; diff --git a/ui/assets/local/_app/immutable/chunks/translate.ncUacGRD.js b/ui/assets/local/_app/immutable/chunks/translate.9wzy45oZ.js similarity index 92% rename from ui/assets/local/_app/immutable/chunks/translate.ncUacGRD.js rename to ui/assets/local/_app/immutable/chunks/translate.9wzy45oZ.js index ec5bf10ce..516616664 100644 --- a/ui/assets/local/_app/immutable/chunks/translate.ncUacGRD.js +++ b/ui/assets/local/_app/immutable/chunks/translate.9wzy45oZ.js @@ -1 +1 @@ -import{r as D,t as W,b as k,i as F,c as C,d as T,e as N}from"./format-time.6TuExJAg.js";import{d as $}from"./index.i9NI_-YN.js";import{c as B}from"./pagination.BCeOU9Ta.js";import{S as c}from"./time-picker.BvbblB8x.js";import{C as K,s as L,x as g,i as S,f as A,a as q,u as P,g as Q,e as V,t as Y,l as M,q as H,v as h}from"./scheduler.C46pS-76.js";import{i as v}from"./workflows.BzgE0E1S.js";import{l as m,m as U,n as E,b as j,a as z,o as J}from"./has.BWrERxPV.js";import{t as G}from"./tokenize.bmJ3_w3l.js";import{i as w}from"./time-format.D2wF3ave.js";import{u as X}from"./update-query-parameters.DVJ0yHKX.js";import{S as Z,i as x,g as ee,b as p,e as te,t as _}from"./index.dOVbn71B.js";import{t as re}from"./translate.BBe5dcco.js";function oe(t,e){D(2,arguments);var r=W(t).getTime(),o=k(e);return new Date(r+o)}var se=36e5;function Ke(t,e){D(2,arguments);var r=k(e);return oe(t,r*se)}const ae={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},ne=(t,e)=>!(t===null&&!m(e)||t===void 0||t===""||typeof t=="string"&&t==="undefined"),b=(t,e)=>e===c.BOOL?t.toLowerCase()==="true":`"${t}"`,ie=t=>{const e=ae[t]??t;return typeof e=="string"&&/\s/g.test(e)?"`"+e+"`":e},le=(t,e,r,o="=",s,l)=>{const i=ie(t);return r==="All"?"":l?`${i} ${r}`:m(o)?`\`${i}\` ${o} ${r}`:F(r)||C(r)?s||K(v)?`${i} ${o} "${T(r)}"`:`${i} BETWEEN "${T(r)}" AND "${N()}"`:U(o)?`\`${i}\` ${o} ${b(r,e)}`:`\`${i}\`${o}${b(r,e)}`},ue=(t,e)=>t.map(({attribute:r,type:o,value:s,conditional:l,operator:i,parenthesis:a,customDate:u})=>{if(ne(s,l)){let n=le(r,o,s,l,e,u);return a==="("?n=`(${n}`:a===")"&&(n=`${n})`),i&&(n=`${n} ${i} `),n}}).filter(Boolean),ce=(t=[],e=!1)=>ue(t,e).join(""),O=t=>e=>e.toLowerCase()===t.toLowerCase(),fe=(t,e)=>t[e+1],me=(t,e)=>t[e+2],de=(t,e)=>t[e+3],pe=(t,e)=>t[e-2],_e=O(c.DATETIME),ye=O(c.BOOL),d=()=>({attribute:"",type:c.KEYWORD,value:"",operator:"",parenthesis:"",conditional:""}),Te={ExecutionStatus:c.KEYWORD,StartTime:c.DATETIME,CloseTime:c.DATETIME,WorkflowId:c.KEYWORD,WorkflowType:c.KEYWORD,RunId:c.KEYWORD},Le=(t,e=Te)=>{const r=G(t),o=[];let s=d();if(!t)return[];try{return r.forEach((l,i)=>{const a=fe(r,i),u=me(r,i);if(e[l])if(s.attribute=l,s.type=e[l],m(a)){const n=`${a} ${u}`;s.value=m(n)?de(r,i):u}else if(_e(e[l])){const n=u,f=w(n);if(E(a)){const y=r[i+4],I=w(y);f&&I?(s.value=`BETWEEN "${n}" AND "${y}"`,s.customDate=!0):console.error("Error parsing Datetime field from query")}else f?s.value=n:console.error("Error parsing Datetime field from query")}else ye(s.type)?(s.value=a.replace("=",""),s.conditional="="):s.value=u;if(j(l)){const n=`${l} ${a}`;m(n)?s.conditional=n:s.conditional=l}z(l)&&(s.parenthesis=l),J(l)&&!E(pe(r,i))&&(s.operator=l,o.push(s),s=d()),i===r.length-1&&(o.push(s),s=d())}),o}catch(l){return console.error("Error setting filter parameters: ",l),[]}},ge=t=>{const e=t.filter(a=>a.attribute==="ExecutionStatus"&&a.value),r=t.filter(a=>a.attribute==="WorkflowId"&&a.value),o=t.filter(a=>a.attribute==="WorkflowType"&&a.value),s=t.filter(a=>a.attribute==="RunId"&&a.value),l=t.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),i=[e,r,s,o,l].filter(a=>a.length);return i.forEach((a,u)=>{var n,f;a.length&&((n=i[u+1])!=null&&n.length)?a[a.length-1].operator="AND":a.length&&!((f=i[u+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...r,...s,...o,...l]},he=t=>(t.forEach((e,r)=>{const o=t[r-1];o&&!o.operator&&(o.operator="AND");const s=t[r+1];s||(e.operator=""),e.operator==="OR"&&(s==null?void 0:s.attribute)!==e.attribute?(e.parenthesis="",e.operator=""):e.operator==="OR"&&(o==null?void 0:o.operator)!=="OR"?e.parenthesis="(":(o==null?void 0:o.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),t),qe=$((t,e,r=!1)=>{const o=r?ge(e):he(e),s=ce(o);X({url:t,parameter:"query",value:s,allowEmpty:!1,clearParameters:[B]})},300),R=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Pe(t){return R.includes(t)}const Qe=["All",...R];function Ee(t){let e;const r=t[5].default,o=q(r,t,t[4],null);return{c(){o&&o.c()},l(s){o&&o.l(s)},m(s,l){o&&o.m(s,l),e=!0},p(s,l){o&&o.p&&(!e||l&16)&&P(o,r,s,s[4],e?V(r,s[4],l,null):Q(s[4]),null)},i(s){e||(_(o,s),e=!0)},o(s){p(o,s),e=!1},d(s){o&&o.d(s)}}}function we(t){let e;return{c(){e=Y(t[1])},l(r){e=M(r,t[1])},m(r,o){S(r,e,o)},p(r,o){o&2&&H(e,r[1])},i:h,o:h,d(r){r&&A(e)}}}function be(t){let e,r,o,s;const l=[we,Ee],i=[];function a(u,n){return u[1]!==u[0]?0:1}return e=a(t),r=i[e]=l[e](t),{c(){r.c(),o=g()},l(u){r.l(u),o=g()},m(u,n){i[e].m(u,n),S(u,o,n),s=!0},p(u,[n]){let f=e;e=a(u),e===f?i[e].p(u,n):(ee(),p(i[f],1,1,()=>{i[f]=null}),te(),r=i[e],r?r.p(u,n):(r=i[e]=l[e](u),r.c()),_(r,1),r.m(o.parentNode,o))},i(u){s||(_(r),s=!0)},o(u){p(r),s=!1},d(u){u&&A(o),i[e].d(u)}}}function De(t,e,r){let o,{$$slots:s={},$$scope:l}=e,{key:i}=e,{count:a=void 0}=e,{replace:u=void 0}=e;return t.$$set=n=>{"key"in n&&r(0,i=n.key),"count"in n&&r(2,a=n.count),"replace"in n&&r(3,u=n.replace),"$$scope"in n&&r(4,l=n.$$scope)},t.$$.update=()=>{t.$$.dirty&13&&r(1,o=re(i,{...u,count:a}))},[i,o,a,u,l,s]}class Ve extends Z{constructor(e){super(),x(this,e,De,be,L,{key:0,count:2,replace:3})}}export{Ve as T,Le as a,Ke as b,he as c,oe as d,d as e,Qe as f,Pe as i,ce as t,qe as u,R as w}; +import{r as D,t as W,b as k,i as F,c as C,d as T,e as N}from"./format-time.6TuExJAg.js";import{d as $}from"./index.i9NI_-YN.js";import{c as B}from"./pagination.B2FxfgZG.js";import{S as c}from"./time-picker.G0x2sfcZ.js";import{C as K,s as L,x as g,i as S,f as A,a as q,u as P,g as Q,e as V,t as Y,l as M,q as H,v as h}from"./scheduler.C46pS-76.js";import{i as v}from"./workflows.Cse8qlOg.js";import{l as m,m as U,n as E,b as j,a as z,o as J}from"./has.BWrERxPV.js";import{t as G}from"./tokenize.bmJ3_w3l.js";import{i as w}from"./time-format.BLKgLEx9.js";import{u as X}from"./update-query-parameters.DTvdkkGj.js";import{S as Z,i as x,g as ee,b as p,e as te,t as _}from"./index.dOVbn71B.js";import{t as re}from"./translate.BBe5dcco.js";function oe(t,e){D(2,arguments);var r=W(t).getTime(),o=k(e);return new Date(r+o)}var se=36e5;function Ke(t,e){D(2,arguments);var r=k(e);return oe(t,r*se)}const ae={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},ne=(t,e)=>!(t===null&&!m(e)||t===void 0||t===""||typeof t=="string"&&t==="undefined"),b=(t,e)=>e===c.BOOL?t.toLowerCase()==="true":`"${t}"`,ie=t=>{const e=ae[t]??t;return typeof e=="string"&&/\s/g.test(e)?"`"+e+"`":e},le=(t,e,r,o="=",s,l)=>{const i=ie(t);return r==="All"?"":l?`${i} ${r}`:m(o)?`\`${i}\` ${o} ${r}`:F(r)||C(r)?s||K(v)?`${i} ${o} "${T(r)}"`:`${i} BETWEEN "${T(r)}" AND "${N()}"`:U(o)?`\`${i}\` ${o} ${b(r,e)}`:`\`${i}\`${o}${b(r,e)}`},ue=(t,e)=>t.map(({attribute:r,type:o,value:s,conditional:l,operator:i,parenthesis:a,customDate:u})=>{if(ne(s,l)){let n=le(r,o,s,l,e,u);return a==="("?n=`(${n}`:a===")"&&(n=`${n})`),i&&(n=`${n} ${i} `),n}}).filter(Boolean),ce=(t=[],e=!1)=>ue(t,e).join(""),O=t=>e=>e.toLowerCase()===t.toLowerCase(),fe=(t,e)=>t[e+1],me=(t,e)=>t[e+2],de=(t,e)=>t[e+3],pe=(t,e)=>t[e-2],_e=O(c.DATETIME),ye=O(c.BOOL),d=()=>({attribute:"",type:c.KEYWORD,value:"",operator:"",parenthesis:"",conditional:""}),Te={ExecutionStatus:c.KEYWORD,StartTime:c.DATETIME,CloseTime:c.DATETIME,WorkflowId:c.KEYWORD,WorkflowType:c.KEYWORD,RunId:c.KEYWORD},Le=(t,e=Te)=>{const r=G(t),o=[];let s=d();if(!t)return[];try{return r.forEach((l,i)=>{const a=fe(r,i),u=me(r,i);if(e[l])if(s.attribute=l,s.type=e[l],m(a)){const n=`${a} ${u}`;s.value=m(n)?de(r,i):u}else if(_e(e[l])){const n=u,f=w(n);if(E(a)){const y=r[i+4],I=w(y);f&&I?(s.value=`BETWEEN "${n}" AND "${y}"`,s.customDate=!0):console.error("Error parsing Datetime field from query")}else f?s.value=n:console.error("Error parsing Datetime field from query")}else ye(s.type)?(s.value=a.replace("=",""),s.conditional="="):s.value=u;if(j(l)){const n=`${l} ${a}`;m(n)?s.conditional=n:s.conditional=l}z(l)&&(s.parenthesis=l),J(l)&&!E(pe(r,i))&&(s.operator=l,o.push(s),s=d()),i===r.length-1&&(o.push(s),s=d())}),o}catch(l){return console.error("Error setting filter parameters: ",l),[]}},ge=t=>{const e=t.filter(a=>a.attribute==="ExecutionStatus"&&a.value),r=t.filter(a=>a.attribute==="WorkflowId"&&a.value),o=t.filter(a=>a.attribute==="WorkflowType"&&a.value),s=t.filter(a=>a.attribute==="RunId"&&a.value),l=t.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),i=[e,r,s,o,l].filter(a=>a.length);return i.forEach((a,u)=>{var n,f;a.length&&((n=i[u+1])!=null&&n.length)?a[a.length-1].operator="AND":a.length&&!((f=i[u+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...r,...s,...o,...l]},he=t=>(t.forEach((e,r)=>{const o=t[r-1];o&&!o.operator&&(o.operator="AND");const s=t[r+1];s||(e.operator=""),e.operator==="OR"&&(s==null?void 0:s.attribute)!==e.attribute?(e.parenthesis="",e.operator=""):e.operator==="OR"&&(o==null?void 0:o.operator)!=="OR"?e.parenthesis="(":(o==null?void 0:o.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),t),qe=$((t,e,r=!1)=>{const o=r?ge(e):he(e),s=ce(o);X({url:t,parameter:"query",value:s,allowEmpty:!1,clearParameters:[B]})},300),R=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Pe(t){return R.includes(t)}const Qe=["All",...R];function Ee(t){let e;const r=t[5].default,o=q(r,t,t[4],null);return{c(){o&&o.c()},l(s){o&&o.l(s)},m(s,l){o&&o.m(s,l),e=!0},p(s,l){o&&o.p&&(!e||l&16)&&P(o,r,s,s[4],e?V(r,s[4],l,null):Q(s[4]),null)},i(s){e||(_(o,s),e=!0)},o(s){p(o,s),e=!1},d(s){o&&o.d(s)}}}function we(t){let e;return{c(){e=Y(t[1])},l(r){e=M(r,t[1])},m(r,o){S(r,e,o)},p(r,o){o&2&&H(e,r[1])},i:h,o:h,d(r){r&&A(e)}}}function be(t){let e,r,o,s;const l=[we,Ee],i=[];function a(u,n){return u[1]!==u[0]?0:1}return e=a(t),r=i[e]=l[e](t),{c(){r.c(),o=g()},l(u){r.l(u),o=g()},m(u,n){i[e].m(u,n),S(u,o,n),s=!0},p(u,[n]){let f=e;e=a(u),e===f?i[e].p(u,n):(ee(),p(i[f],1,1,()=>{i[f]=null}),te(),r=i[e],r?r.p(u,n):(r=i[e]=l[e](u),r.c()),_(r,1),r.m(o.parentNode,o))},i(u){s||(_(r),s=!0)},o(u){p(r),s=!1},d(u){u&&A(o),i[e].d(u)}}}function De(t,e,r){let o,{$$slots:s={},$$scope:l}=e,{key:i}=e,{count:a=void 0}=e,{replace:u=void 0}=e;return t.$$set=n=>{"key"in n&&r(0,i=n.key),"count"in n&&r(2,a=n.count),"replace"in n&&r(3,u=n.replace),"$$scope"in n&&r(4,l=n.$$scope)},t.$$.update=()=>{t.$$.dirty&13&&r(1,o=re(i,{...u,count:a}))},[i,o,a,u,l,s]}class Ve extends Z{constructor(e){super(),x(this,e,De,be,L,{key:0,count:2,replace:3})}}export{Ve as T,Le as a,Ke as b,he as c,oe as d,d as e,Qe as f,Pe as i,ce as t,qe as u,R as w}; diff --git a/ui/assets/local/_app/immutable/chunks/update-query-parameters.DVJ0yHKX.js b/ui/assets/local/_app/immutable/chunks/update-query-parameters.DTvdkkGj.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/update-query-parameters.DVJ0yHKX.js rename to ui/assets/local/_app/immutable/chunks/update-query-parameters.DTvdkkGj.js index 3c3d3ad88..5cfce2e04 100644 --- a/ui/assets/local/_app/immutable/chunks/update-query-parameters.DVJ0yHKX.js +++ b/ui/assets/local/_app/immutable/chunks/update-query-parameters.DTvdkkGj.js @@ -1 +1 @@ -import{g as h}from"./entry.DLEzeuD9.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; +import{g as h}from"./entry.kylZibtV.js";const p={keepFocus:!0,noScroll:!0},S=async({parameter:n,value:e,url:c,goto:f=h,allowEmpty:i=!1,clearParameters:a=[]})=>{const g=String(e),r={};c.searchParams.forEach((o,s)=>{s!==n&&(r[s]=o)});const t=new URLSearchParams(r);e?t.set(n,g):i&&t.set(n,""),a.length&&a.forEach(o=>{t.delete(o)});{const o=t==null?void 0:t.toString(),s=o?`${c.pathname}?${o}`:c.pathname;f(s,p)}return e};export{S as u}; diff --git a/ui/assets/local/_app/immutable/chunks/versions.CeMhowfV.js b/ui/assets/local/_app/immutable/chunks/versions.BSCVnN4z.js similarity index 58% rename from ui/assets/local/_app/immutable/chunks/versions.CeMhowfV.js rename to ui/assets/local/_app/immutable/chunks/versions.BSCVnN4z.js index 879e6c2f5..e12e76010 100644 --- a/ui/assets/local/_app/immutable/chunks/versions.CeMhowfV.js +++ b/ui/assets/local/_app/immutable/chunks/versions.BSCVnN4z.js @@ -1 +1 @@ -import{d as o}from"./entry.DLEzeuD9.js";import{p as e}from"./stores.Dz-RNcUk.js";const s=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),n=o([e],([r])=>r.data.settings),p=o([s],([r])=>r==null?void 0:r.serverVersion),d=o([n],([r])=>r==null?void 0:r.version);export{s as c,n as s,p as t,d as u}; +import{d as o}from"./entry.kylZibtV.js";import{p as e}from"./stores.Ds4o9nwd.js";const s=o([e],([r])=>{var a;return(a=r.data)==null?void 0:a.cluster}),n=o([e],([r])=>r.data.settings),p=o([s],([r])=>r==null?void 0:r.serverVersion),d=o([n],([r])=>r==null?void 0:r.version);export{s as c,n as s,p as t,d as u}; diff --git a/ui/assets/local/_app/immutable/chunks/worker-table.CpbGX-wq.js b/ui/assets/local/_app/immutable/chunks/worker-table.BTld4JO6.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/worker-table.CpbGX-wq.js rename to ui/assets/local/_app/immutable/chunks/worker-table.BTld4JO6.js index 298e0bcdc..4db769aee 100644 --- a/ui/assets/local/_app/immutable/chunks/worker-table.CpbGX-wq.js +++ b/ui/assets/local/_app/immutable/chunks/worker-table.BTld4JO6.js @@ -1 +1 @@ -import{s as ue,h as w,t as x,b as P,j as k,k as T,l as F,d as D,f as c,m as $,i as _,n as g,c as ee,q as J,x as te,y as pe,v as M}from"./scheduler.C46pS-76.js";import{S as fe,i as me,c as K,a as L,m as S,t as H,b as V,d as Y,g as le,e as se}from"./index.dOVbn71B.js";import{e as ae}from"./each.C6O0oV7R.js";import{B as de}from"./badge.jG5hkqHT.js";import{E as _e}from"./empty-state.BO9uOKUe.js";import{T as $e,a as he,b as we}from"./table.Cg5jABZi.js";import{t as C}from"./translate.BBe5dcco.js";import"./auth-user.BOlglCm6.js";import"./toaster.D-OAJjvv.js";import"./paths.DlAH43M2.js";import"./entry.DLEzeuD9.js";import{t as ke,r as Te,f as re}from"./time-format.D2wF3ave.js";import{I as ge}from"./icon.CfkHLDdJ.js";function ve(u){let e,s;return e=new ge({props:{name:u[0]?"checkmark":"close",class:"m-auto "+(u[0]?"text-blue-700":"text-primary"),title:u[0]?C("common.yes"):C("common.no")}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.name=t[0]?"checkmark":"close"),l&1&&(r.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),l&1&&(r.title=t[0]?C("common.yes"):C("common.no")),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function be(u,e,s){let{includesTaskQueueType:t}=e;return u.$$set=l=>{"includesTaskQueueType"in l&&s(0,t=l.includesTaskQueueType)},[t]}class oe extends fe{constructor(e){super(),me(this,e,be,ve,ue,{includesTaskQueueType:0})}}function ne(u,e,s){const t=u.slice();return t[3]=e[s],t}function Ee(u){var t,l;let e=(((l=(t=u[0])==null?void 0:t.pollers)==null?void 0:l.length)||0)+"",s;return{c(){s=x(e)},l(r){s=F(r,e)},m(r,a){_(r,s,a)},p(r,a){var f,n;a&1&&e!==(e=(((n=(f=r[0])==null?void 0:f.pollers)==null?void 0:n.length)||0)+"")&&J(s,e)},d(r){r&&c(s)}}}function ce(u){let e,s,t,l,r;return t=new _e({props:{title:C("workflows.workers-empty-state")}}),{c(){e=w("tr"),s=w("td"),K(t.$$.fragment),l=P(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=T(e);s=k(f,"TD",{colspan:!0});var n=T(s);L(t.$$.fragment,n),n.forEach(c),l=D(f),f.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(a,f){_(a,e,f),g(e,s),S(t,s,null),g(e,l),r=!0},p:M,i(a){r||(H(t.$$.fragment,a),r=!0)},o(a){V(t.$$.fragment,a),r=!1},d(a){a&&c(e),Y(t)}}}function ye(u){var b,z;let e,s,t=u[3].identity+"",l,r,a,f,n=(((z=(b=u[3])==null?void 0:b.workerVersionCapabilities)==null?void 0:z.buildId)??"")+"",o,p,m,v,y=re(u[3].lastAccessTime,u[1],{relative:u[2]})+"",W,j,A,Q,I,E,O,B,d;return Q=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("WORKFLOW")}}),O=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=w("td"),s=w("p"),l=x(t),r=P(),a=w("td"),f=w("p"),o=x(n),p=P(),m=w("td"),v=w("p"),W=x(y),j=P(),A=w("td"),K(Q.$$.fragment),I=P(),E=w("td"),K(O.$$.fragment),B=P(),this.h()},l(i){e=k(i,"TD",{class:!0,"data-testid":!0});var h=T(e);s=k(h,"P",{class:!0});var N=T(s);l=F(N,t),N.forEach(c),h.forEach(c),r=D(i),a=k(i,"TD",{class:!0,"data-testid":!0});var R=T(a);f=k(R,"P",{class:!0});var q=T(f);o=F(q,n),q.forEach(c),R.forEach(c),p=D(i),m=k(i,"TD",{class:!0,"data-testid":!0});var G=T(m);v=k(G,"P",{class:!0});var U=T(v);W=F(U,y),U.forEach(c),G.forEach(c),j=D(i),A=k(i,"TD",{"data-testid":!0});var X=T(A);L(Q.$$.fragment,X),X.forEach(c),I=D(i),E=k(i,"TD",{"data-testid":!0});var Z=T(E);L(O.$$.fragment,Z),Z.forEach(c),B=D(i),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(f,"class","select-all break-all"),$(a,"class","text-left"),$(a,"data-testid","worker-build-id"),$(v,"class","select-all"),$(m,"class","text-left"),$(m,"data-testid","worker-last-access-time"),$(A,"data-testid","workflow-poller"),$(E,"data-testid","activity-poller")},m(i,h){_(i,e,h),g(e,s),g(s,l),_(i,r,h),_(i,a,h),g(a,f),g(f,o),_(i,p,h),_(i,m,h),g(m,v),g(v,W),_(i,j,h),_(i,A,h),S(Q,A,null),_(i,I,h),_(i,E,h),S(O,E,null),_(i,B,h),d=!0},p(i,h){var q,G;(!d||h&1)&&t!==(t=i[3].identity+"")&&J(l,t),(!d||h&1)&&n!==(n=(((G=(q=i[3])==null?void 0:q.workerVersionCapabilities)==null?void 0:G.buildId)??"")+"")&&J(o,n),(!d||h&7)&&y!==(y=re(i[3].lastAccessTime,i[1],{relative:i[2]})+"")&&J(W,y);const N={};h&1&&(N.includesTaskQueueType=i[3].taskQueueTypes.includes("WORKFLOW")),Q.$set(N);const R={};h&1&&(R.includesTaskQueueType=i[3].taskQueueTypes.includes("ACTIVITY")),O.$set(R)},i(i){d||(H(Q.$$.fragment,i),H(O.$$.fragment,i),d=!0)},o(i){V(Q.$$.fragment,i),V(O.$$.fragment,i),d=!1},d(i){i&&(c(e),c(r),c(a),c(p),c(m),c(j),c(A),c(I),c(E),c(B)),Y(Q),Y(O)}}}function ie(u){let e,s;return e=new we({props:{"data-testid":"worker-row",$$slots:{default:[ye]},$$scope:{ctx:u}}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,l){const r={};l&71&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function Qe(u){var f;let e,s,t=ae((f=u[0])==null?void 0:f.pollers),l=[];for(let n=0;nV(l[n],1,1,()=>{l[n]=null});let a=null;return t.length||(a=ce()),{c(){for(let n=0;n{a=null}),se()):(a=ce(),a.c(),H(a,1),a.m(e.parentNode,e))}},i(n){if(!s){for(let o=0;os(1,t=a)),ee(u,Te,a=>s(2,l=a));let{workers:r}=e;return u.$$set=a=>{"workers"in a&&s(0,r=a.workers)},[r,t,l]}class Ye extends fe{constructor(e){super(),me(this,e,He,Ce,ue,{workers:0})}}export{oe as P,Ye as W}; +import{s as ue,h as w,t as x,b as P,j as k,k as T,l as F,d as D,f as c,m as $,i as _,n as g,c as ee,q as J,x as te,y as pe,v as M}from"./scheduler.C46pS-76.js";import{S as fe,i as me,c as K,a as L,m as S,t as H,b as V,d as Y,g as le,e as se}from"./index.dOVbn71B.js";import{e as ae}from"./each.C6O0oV7R.js";import{B as de}from"./badge.jG5hkqHT.js";import{E as _e}from"./empty-state.BO9uOKUe.js";import{T as $e,a as he,b as we}from"./table.Cg5jABZi.js";import{t as C}from"./translate.BBe5dcco.js";import"./auth-user.CfsLeCYD.js";import"./toaster.p5hsABhI.js";import"./paths.C1CnfzR-.js";import"./entry.kylZibtV.js";import{t as ke,r as Te,f as re}from"./time-format.BLKgLEx9.js";import{I as ge}from"./icon.CfkHLDdJ.js";function ve(u){let e,s;return e=new ge({props:{name:u[0]?"checkmark":"close",class:"m-auto "+(u[0]?"text-blue-700":"text-primary"),title:u[0]?C("common.yes"):C("common.no")}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.name=t[0]?"checkmark":"close"),l&1&&(r.class="m-auto "+(t[0]?"text-blue-700":"text-primary")),l&1&&(r.title=t[0]?C("common.yes"):C("common.no")),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function be(u,e,s){let{includesTaskQueueType:t}=e;return u.$$set=l=>{"includesTaskQueueType"in l&&s(0,t=l.includesTaskQueueType)},[t]}class oe extends fe{constructor(e){super(),me(this,e,be,ve,ue,{includesTaskQueueType:0})}}function ne(u,e,s){const t=u.slice();return t[3]=e[s],t}function Ee(u){var t,l;let e=(((l=(t=u[0])==null?void 0:t.pollers)==null?void 0:l.length)||0)+"",s;return{c(){s=x(e)},l(r){s=F(r,e)},m(r,a){_(r,s,a)},p(r,a){var f,n;a&1&&e!==(e=(((n=(f=r[0])==null?void 0:f.pollers)==null?void 0:n.length)||0)+"")&&J(s,e)},d(r){r&&c(s)}}}function ce(u){let e,s,t,l,r;return t=new _e({props:{title:C("workflows.workers-empty-state")}}),{c(){e=w("tr"),s=w("td"),K(t.$$.fragment),l=P(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=T(e);s=k(f,"TD",{colspan:!0});var n=T(s);L(t.$$.fragment,n),n.forEach(c),l=D(f),f.forEach(c),this.h()},h(){$(s,"colspan",6),$(e,"class","w-full")},m(a,f){_(a,e,f),g(e,s),S(t,s,null),g(e,l),r=!0},p:M,i(a){r||(H(t.$$.fragment,a),r=!0)},o(a){V(t.$$.fragment,a),r=!1},d(a){a&&c(e),Y(t)}}}function ye(u){var b,z;let e,s,t=u[3].identity+"",l,r,a,f,n=(((z=(b=u[3])==null?void 0:b.workerVersionCapabilities)==null?void 0:z.buildId)??"")+"",o,p,m,v,y=re(u[3].lastAccessTime,u[1],{relative:u[2]})+"",W,j,A,Q,I,E,O,B,d;return Q=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("WORKFLOW")}}),O=new oe({props:{includesTaskQueueType:u[3].taskQueueTypes.includes("ACTIVITY")}}),{c(){e=w("td"),s=w("p"),l=x(t),r=P(),a=w("td"),f=w("p"),o=x(n),p=P(),m=w("td"),v=w("p"),W=x(y),j=P(),A=w("td"),K(Q.$$.fragment),I=P(),E=w("td"),K(O.$$.fragment),B=P(),this.h()},l(i){e=k(i,"TD",{class:!0,"data-testid":!0});var h=T(e);s=k(h,"P",{class:!0});var N=T(s);l=F(N,t),N.forEach(c),h.forEach(c),r=D(i),a=k(i,"TD",{class:!0,"data-testid":!0});var R=T(a);f=k(R,"P",{class:!0});var q=T(f);o=F(q,n),q.forEach(c),R.forEach(c),p=D(i),m=k(i,"TD",{class:!0,"data-testid":!0});var G=T(m);v=k(G,"P",{class:!0});var U=T(v);W=F(U,y),U.forEach(c),G.forEach(c),j=D(i),A=k(i,"TD",{"data-testid":!0});var X=T(A);L(Q.$$.fragment,X),X.forEach(c),I=D(i),E=k(i,"TD",{"data-testid":!0});var Z=T(E);L(O.$$.fragment,Z),Z.forEach(c),B=D(i),this.h()},h(){$(s,"class","select-all"),$(e,"class","text-left"),$(e,"data-testid","worker-identity"),$(f,"class","select-all break-all"),$(a,"class","text-left"),$(a,"data-testid","worker-build-id"),$(v,"class","select-all"),$(m,"class","text-left"),$(m,"data-testid","worker-last-access-time"),$(A,"data-testid","workflow-poller"),$(E,"data-testid","activity-poller")},m(i,h){_(i,e,h),g(e,s),g(s,l),_(i,r,h),_(i,a,h),g(a,f),g(f,o),_(i,p,h),_(i,m,h),g(m,v),g(v,W),_(i,j,h),_(i,A,h),S(Q,A,null),_(i,I,h),_(i,E,h),S(O,E,null),_(i,B,h),d=!0},p(i,h){var q,G;(!d||h&1)&&t!==(t=i[3].identity+"")&&J(l,t),(!d||h&1)&&n!==(n=(((G=(q=i[3])==null?void 0:q.workerVersionCapabilities)==null?void 0:G.buildId)??"")+"")&&J(o,n),(!d||h&7)&&y!==(y=re(i[3].lastAccessTime,i[1],{relative:i[2]})+"")&&J(W,y);const N={};h&1&&(N.includesTaskQueueType=i[3].taskQueueTypes.includes("WORKFLOW")),Q.$set(N);const R={};h&1&&(R.includesTaskQueueType=i[3].taskQueueTypes.includes("ACTIVITY")),O.$set(R)},i(i){d||(H(Q.$$.fragment,i),H(O.$$.fragment,i),d=!0)},o(i){V(Q.$$.fragment,i),V(O.$$.fragment,i),d=!1},d(i){i&&(c(e),c(r),c(a),c(p),c(m),c(j),c(A),c(I),c(E),c(B)),Y(Q),Y(O)}}}function ie(u){let e,s;return e=new we({props:{"data-testid":"worker-row",$$slots:{default:[ye]},$$scope:{ctx:u}}}),{c(){K(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,l){S(e,t,l),s=!0},p(t,l){const r={};l&71&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(H(e.$$.fragment,t),s=!0)},o(t){V(e.$$.fragment,t),s=!1},d(t){Y(e,t)}}}function Qe(u){var f;let e,s,t=ae((f=u[0])==null?void 0:f.pollers),l=[];for(let n=0;nV(l[n],1,1,()=>{l[n]=null});let a=null;return t.length||(a=ce()),{c(){for(let n=0;n{a=null}),se()):(a=ce(),a.c(),H(a,1),a.m(e.parentNode,e))}},i(n){if(!s){for(let o=0;os(1,t=a)),ee(u,Te,a=>s(2,l=a));let{workers:r}=e;return u.$$set=a=>{"workers"in a&&s(0,r=a.workers)},[r,t,l]}class Ye extends fe{constructor(e){super(),me(this,e,He,Ce,ue,{workers:0})}}export{oe as P,Ye as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-counts.Bgc8s1JU.js b/ui/assets/local/_app/immutable/chunks/workflow-counts.D3FzL32z.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/workflow-counts.Bgc8s1JU.js rename to ui/assets/local/_app/immutable/chunks/workflow-counts.D3FzL32z.js index fcad917bf..3b88eeb8c 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-counts.Bgc8s1JU.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-counts.D3FzL32z.js @@ -1 +1 @@ -import{s as H,h as L,j as z,k as J,f as d,m as rt,i as W,c as h,M as at,w as S,x as v,v as ut,b as lt,d as ct,n as ft,p as it}from"./scheduler.C46pS-76.js";import{S as X,i as Z,c as Q,a as q,m as B,t as k,b as g,d as M,g as x,e as $}from"./index.dOVbn71B.js";import{e as N,u as mt,o as _t}from"./each.C6O0oV7R.js";import{p as pt}from"./stores.Dz-RNcUk.js";import{S as wt}from"./index.BVsZFann.js";import{t as ht,c as dt,w as D}from"./translate.ncUacGRD.js";import{r as kt,w as I,d as gt,q as yt,b as G}from"./workflows.BzgE0E1S.js";import{w as K}from"./events.Dh9P6F73.js";import{c as bt}from"./pagination.BCeOU9Ta.js";import{S as Ct}from"./time-picker.BvbblB8x.js";import{b as St}from"./decode-payload.BTpeWKqJ.js";import{u as vt}from"./update-query-parameters.DVJ0yHKX.js";import{W as It}from"./workflow-status.4hwv3weu.js";const U=(n,e,t)=>{const r=Math.pow(3600/n,1/t),c=n*Math.pow(r,e);return Math.min(3600,Math.round(c))};function Wt(n){let e,t;return e=new It({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){Q(e.$$.fragment)},l(o){q(e.$$.fragment,o)},m(o,r){B(e,o,r),t=!0},p(o,[r]){const c={};r&2&&(c.count=o[1]),r&4&&(c.newCount=o[2]),r&1&&(c.status=o[0]),r&1&&(c["test-id"]="workflow-status-"+o[0]),e.$set(c)},i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),t=!1},d(o){M(e,o)}}}function Et(n,e,t){let{status:o}=e,{count:r=0}=e,{newCount:c=0}=e;return n.$$set=f=>{"status"in f&&t(0,o=f.status),"count"in f&&t(1,r=f.count),"newCount"in f&&t(2,c=f.newCount)},[o,r,c]}class Ft extends X{constructor(e){super(),Z(this,e,Et,Wt,H,{status:0,count:1,newCount:2})}}function V(n,e,t){const o=n.slice();return o[23]=e[t].count,o[24]=e[t].status,o}function Pt(n){let e,t;return e=new wt({props:{class:"h-6 w-24 rounded"}}),{c(){Q(e.$$.fragment)},l(o){q(e.$$.fragment,o)},m(o,r){B(e,o,r),t=!0},p:ut,i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),t=!1},d(o){M(e,o)}}}function Qt(n){let e,t,o,r,c,f;function u(...l){return n[10](n[24],...l)}function s(...l){return n[11](n[24],...l)}t=new Ft({props:{status:n[24],count:n[23],newCount:n[1].find(u)?n[1].find(s).count-n[23]:0}});function m(){return n[12](n[24])}return{c(){e=L("button"),Q(t.$$.fragment),o=lt()},l(l){e=z(l,"BUTTON",{});var i=J(e);q(t.$$.fragment,i),o=ct(i),i.forEach(d)},m(l,i){W(l,e,i),B(t,e,null),ft(e,o),r=!0,c||(f=it(e,"click",m),c=!0)},p(l,i){n=l;const p={};i&1&&(p.status=n[24]),i&1&&(p.count=n[23]),i&3&&(p.newCount=n[1].find(u)?n[1].find(s).count-n[23]:0),t.$set(p)},i(l){r||(k(t.$$.fragment,l),r=!0)},o(l){g(t.$$.fragment,l),r=!1},d(l){l&&d(e),M(t),c=!1,f()}}}function Y(n,e){let t,o,r,c,f;const u=[Qt,Pt],s=[];function m(l,i){return l[2]?1:0}return o=m(e),r=s[o]=u[o](e),{key:n,first:null,c(){t=v(),r.c(),c=v(),this.h()},l(l){t=v(),r.l(l),c=v(),this.h()},h(){this.first=t},m(l,i){W(l,t,i),s[o].m(l,i),W(l,c,i),f=!0},p(l,i){e=l;let p=o;o=m(e),o===p?s[o].p(e,i):(x(),g(s[p],1,1,()=>{s[p]=null}),$(),r=s[o],r?r.p(e,i):(r=s[o]=u[o](e),r.c()),k(r,1),r.m(c.parentNode,c))},i(l){f||(k(r),f=!0)},o(l){g(r),f=!1},d(l){l&&(d(t),d(c)),s[o].d(l)}}}function qt(n){let e,t=[],o=new Map,r,c=N(n[0]);const f=u=>u[24];for(let u=0;ut(7,c=a)),h(n,pt,a=>t(8,f=a)),h(n,K,a=>t(15,u=a)),h(n,I,a=>t(16,s=a)),h(n,gt,a=>t(17,m=a)),h(n,yt,a=>t(9,l=a));let{staticQuery:i=""}=e,p=[],E=[],b,y=1,C=!1;at(()=>{T()});const tt=()=>{if(y+=1,clearInterval(b),y<=P){const a=U(j,y,P)*1e3;b=setInterval(()=>R(),a)}},T=()=>{clearInterval(b),t(1,E=[]),S(I,s.newCount=0,s),y=1,t(2,C=!0)},O=(a=[])=>a.map(_=>{const w=St(_==null?void 0:_.groupValues[0]),F=parseInt(_.count);return{status:w,count:F}}).sort((_,w)=>D.indexOf(_.status)-D.indexOf(w.status)),R=async()=>{tt();try{const{count:a,groups:_}=await G({namespace:o,query:r});S(I,s.newCount=parseInt(a)-s.count,s),t(1,E=O(_))}catch(a){console.error("Fetching workflow counts failed: ",a==null?void 0:a.message)}finally{t(2,C=!1)}},et=async()=>{if(T(),!m){const a=U(j,y,P)*1e3;b=setInterval(()=>R(),a)}try{const{count:a,groups:_}=await G({namespace:o,query:r});S(I,s.count=parseInt(a),s),t(0,p=O(_))}catch(a){console.error("Fetching workflow counts failed: ",a==null?void 0:a.message)}finally{t(2,C=!1)}},A=a=>{if(!u.some(w=>w.attribute==="ExecutionStatus"&&w.value===a)){const w={attribute:"ExecutionStatus",type:Ct.KEYWORD,value:a,operator:"",conditional:"=",parenthesis:""};S(K,u=[...u,w],u);const F=ht(dt(u));vt({url:f.url,parameter:"query",value:F,clearParameters:[bt]})}},ot=(a,_)=>_.status===a,nt=(a,_)=>_.status===a,st=a=>A(a);return n.$$set=a=>{"staticQuery"in a&&t(4,i=a.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(5,o=f.params.namespace),n.$$.dirty&528&&t(6,r=i||l),n.$$.dirty&224&&et()},[p,E,C,A,i,o,r,c,f,l,ot,nt,st]}class Ht extends X{constructor(e){super(),Z(this,e,Bt,qt,H,{staticQuery:4})}}export{Ht as W}; +import{s as H,h as L,j as z,k as J,f as d,m as rt,i as W,c as h,M as at,w as S,x as v,v as ut,b as lt,d as ct,n as ft,p as it}from"./scheduler.C46pS-76.js";import{S as X,i as Z,c as Q,a as q,m as B,t as k,b as g,d as M,g as x,e as $}from"./index.dOVbn71B.js";import{e as N,u as mt,o as _t}from"./each.C6O0oV7R.js";import{p as pt}from"./stores.Ds4o9nwd.js";import{S as wt}from"./index.BVsZFann.js";import{t as ht,c as dt,w as D}from"./translate.9wzy45oZ.js";import{r as kt,w as I,d as gt,q as yt,b as G}from"./workflows.Cse8qlOg.js";import{w as K}from"./events.CbhKe7Ai.js";import{c as bt}from"./pagination.B2FxfgZG.js";import{S as Ct}from"./time-picker.G0x2sfcZ.js";import{b as St}from"./decode-payload.CR1Tto5x.js";import{u as vt}from"./update-query-parameters.DTvdkkGj.js";import{W as It}from"./workflow-status.4hwv3weu.js";const U=(n,e,t)=>{const r=Math.pow(3600/n,1/t),c=n*Math.pow(r,e);return Math.min(3600,Math.round(c))};function Wt(n){let e,t;return e=new It({props:{count:n[1],newCount:n[2],status:n[0],"test-id":"workflow-status-"+n[0]}}),{c(){Q(e.$$.fragment)},l(o){q(e.$$.fragment,o)},m(o,r){B(e,o,r),t=!0},p(o,[r]){const c={};r&2&&(c.count=o[1]),r&4&&(c.newCount=o[2]),r&1&&(c.status=o[0]),r&1&&(c["test-id"]="workflow-status-"+o[0]),e.$set(c)},i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),t=!1},d(o){M(e,o)}}}function Et(n,e,t){let{status:o}=e,{count:r=0}=e,{newCount:c=0}=e;return n.$$set=f=>{"status"in f&&t(0,o=f.status),"count"in f&&t(1,r=f.count),"newCount"in f&&t(2,c=f.newCount)},[o,r,c]}class Ft extends X{constructor(e){super(),Z(this,e,Et,Wt,H,{status:0,count:1,newCount:2})}}function V(n,e,t){const o=n.slice();return o[23]=e[t].count,o[24]=e[t].status,o}function Pt(n){let e,t;return e=new wt({props:{class:"h-6 w-24 rounded"}}),{c(){Q(e.$$.fragment)},l(o){q(e.$$.fragment,o)},m(o,r){B(e,o,r),t=!0},p:ut,i(o){t||(k(e.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),t=!1},d(o){M(e,o)}}}function Qt(n){let e,t,o,r,c,f;function u(...l){return n[10](n[24],...l)}function s(...l){return n[11](n[24],...l)}t=new Ft({props:{status:n[24],count:n[23],newCount:n[1].find(u)?n[1].find(s).count-n[23]:0}});function m(){return n[12](n[24])}return{c(){e=L("button"),Q(t.$$.fragment),o=lt()},l(l){e=z(l,"BUTTON",{});var i=J(e);q(t.$$.fragment,i),o=ct(i),i.forEach(d)},m(l,i){W(l,e,i),B(t,e,null),ft(e,o),r=!0,c||(f=it(e,"click",m),c=!0)},p(l,i){n=l;const p={};i&1&&(p.status=n[24]),i&1&&(p.count=n[23]),i&3&&(p.newCount=n[1].find(u)?n[1].find(s).count-n[23]:0),t.$set(p)},i(l){r||(k(t.$$.fragment,l),r=!0)},o(l){g(t.$$.fragment,l),r=!1},d(l){l&&d(e),M(t),c=!1,f()}}}function Y(n,e){let t,o,r,c,f;const u=[Qt,Pt],s=[];function m(l,i){return l[2]?1:0}return o=m(e),r=s[o]=u[o](e),{key:n,first:null,c(){t=v(),r.c(),c=v(),this.h()},l(l){t=v(),r.l(l),c=v(),this.h()},h(){this.first=t},m(l,i){W(l,t,i),s[o].m(l,i),W(l,c,i),f=!0},p(l,i){e=l;let p=o;o=m(e),o===p?s[o].p(e,i):(x(),g(s[p],1,1,()=>{s[p]=null}),$(),r=s[o],r?r.p(e,i):(r=s[o]=u[o](e),r.c()),k(r,1),r.m(c.parentNode,c))},i(l){f||(k(r),f=!0)},o(l){g(r),f=!1},d(l){l&&(d(t),d(c)),s[o].d(l)}}}function qt(n){let e,t=[],o=new Map,r,c=N(n[0]);const f=u=>u[24];for(let u=0;ut(7,c=a)),h(n,pt,a=>t(8,f=a)),h(n,K,a=>t(15,u=a)),h(n,I,a=>t(16,s=a)),h(n,gt,a=>t(17,m=a)),h(n,yt,a=>t(9,l=a));let{staticQuery:i=""}=e,p=[],E=[],b,y=1,C=!1;at(()=>{T()});const tt=()=>{if(y+=1,clearInterval(b),y<=P){const a=U(j,y,P)*1e3;b=setInterval(()=>R(),a)}},T=()=>{clearInterval(b),t(1,E=[]),S(I,s.newCount=0,s),y=1,t(2,C=!0)},O=(a=[])=>a.map(_=>{const w=St(_==null?void 0:_.groupValues[0]),F=parseInt(_.count);return{status:w,count:F}}).sort((_,w)=>D.indexOf(_.status)-D.indexOf(w.status)),R=async()=>{tt();try{const{count:a,groups:_}=await G({namespace:o,query:r});S(I,s.newCount=parseInt(a)-s.count,s),t(1,E=O(_))}catch(a){console.error("Fetching workflow counts failed: ",a==null?void 0:a.message)}finally{t(2,C=!1)}},et=async()=>{if(T(),!m){const a=U(j,y,P)*1e3;b=setInterval(()=>R(),a)}try{const{count:a,groups:_}=await G({namespace:o,query:r});S(I,s.count=parseInt(a),s),t(0,p=O(_))}catch(a){console.error("Fetching workflow counts failed: ",a==null?void 0:a.message)}finally{t(2,C=!1)}},A=a=>{if(!u.some(w=>w.attribute==="ExecutionStatus"&&w.value===a)){const w={attribute:"ExecutionStatus",type:Ct.KEYWORD,value:a,operator:"",conditional:"=",parenthesis:""};S(K,u=[...u,w],u);const F=ht(dt(u));vt({url:f.url,parameter:"query",value:F,clearParameters:[bt]})}},ot=(a,_)=>_.status===a,nt=(a,_)=>_.status===a,st=a=>A(a);return n.$$set=a=>{"staticQuery"in a&&t(4,i=a.staticQuery)},n.$$.update=()=>{n.$$.dirty&256&&t(5,o=f.params.namespace),n.$$.dirty&528&&t(6,r=i||l),n.$$.dirty&224&&et()},[p,E,C,A,i,o,r,c,f,l,ot,nt,st]}class Ht extends X{constructor(e){super(),Z(this,e,Bt,qt,H,{staticQuery:4})}}export{Ht as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.Dpno7PTz.js b/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.BovVEcSd.js similarity index 77% rename from ui/assets/local/_app/immutable/chunks/workflow-create-disabled.Dpno7PTz.js rename to ui/assets/local/_app/immutable/chunks/workflow-create-disabled.BovVEcSd.js index 7890aa26e..f02994f35 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.Dpno7PTz.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-create-disabled.BovVEcSd.js @@ -1 +1 @@ -import{C as o}from"./scheduler.C46pS-76.js";import{c}from"./core-user.BxGCJ_SI.js";const l=(e,i)=>{var r,s;const t=c(),a=o(t).namespaceWriteDisabled(e.params.namespace);return(s=(r=e==null?void 0:e.data)==null?void 0:r.settings)!=null&&s.startWorkflowDisabled?!0:a};export{l as w}; +import{C as o}from"./scheduler.C46pS-76.js";import{c}from"./core-user.DrkCNXj3.js";const l=(e,i)=>{var r,s;const t=c(),a=o(t).namespaceWriteDisabled(e.params.namespace);return(s=(r=e==null?void 0:e.data)==null?void 0:r.settings)!=null&&s.startWorkflowDisabled?!0:a};export{l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.D-VSmCkm.js b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.sqiRvlQE.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/workflow-json-navigator.D-VSmCkm.js rename to ui/assets/local/_app/immutable/chunks/workflow-json-navigator.sqiRvlQE.js index 8f45bf393..12f0c7d24 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.D-VSmCkm.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-json-navigator.sqiRvlQE.js @@ -1 +1 @@ -import{s as ne,z as ue,h as D,t as ae,b as B,j as A,k as O,l as re,f as y,d as C,m,a2 as _e,H as K,E as be,i as J,n as p,$ as te,p as q,q as oe,a3 as ie,G as Ne,D as ge,A as he,N as Pe,a as Ve,O as Oe,u as Se,g as Ue,e as je,c as We,x as se,v as Te}from"./scheduler.C46pS-76.js";import{S as De,i as Ae,c as Q,a as Y,m as Z,t as W,b as L,d as $,f as Le,g as fe,e as ce}from"./index.dOVbn71B.js";import{C as He}from"./code-block.BkCXXL0z.js";import{g as Re}from"./spread.CgU5AtxT.js";import{L as ve}from"./label.BlTcUXFh.js";import{o as ke}from"./omit.C8ejR22J.js";import{t as G}from"./translate.BBe5dcco.js";import{f as le}from"./index.DJYN40WT.js";import{d as Xe}from"./events.Dh9P6F73.js";import{s as ye}from"./parse-with-big-int.BKSBwM2t.js";import{P as ze}from"./payload-decoder.DlOPrRzg.js";function Be(t){let l,s,e,n,a,d,c,b,E=(t[0]??"")+"",T,P,u,w,z,N,S,k,I,V,R,_,M,f,H,h,v,X,x,o=[{id:w=t[6]+"-range"},{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y border-primary"},{min:t[3]},{max:t[4]},{step:t[5]},ke(t[14],"class")],g={};for(let r=0;r{if(Number.isNaN(f.currentTarget.valueAsNumber)){s(0,w=E);return}s(9,z=f.currentTarget.valueAsNumber>=E&&f.currentTarget.valueAsNumber<=T)},k=({value:f,min:H,max:h})=>(f-H)*100/(h-H),I=({outputElement:f,outputXPos:H})=>{var h;const v=(h=f==null?void 0:f.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(H*v/100)},V=()=>{s(8,e=k({value:w,min:E,max:T})),s(10,n=I({outputElement:N,outputXPos:e}))};function R(f){Pe[f?"unshift":"push"](()=>{N=f,s(7,N)})}function _(){w=ie(this.value),s(0,w)}function M(){w=ie(this.value),s(0,w)}return t.$$set=f=>{s(13,l=ue(ue({},l),he(f))),s(14,d=ge(l,a)),"label"in f&&s(1,c=f.label),"labelHidden"in f&&s(2,b=f.labelHidden),"min"in f&&s(3,E=f.min),"max"in f&&s(4,T=f.max),"step"in f&&s(5,P=f.step),"id"in f&&s(6,u=f.id),"value"in f&&s(0,w=f.value)},t.$$.update=()=>{t.$$.dirty&25&&s(8,e=k({value:w,min:E,max:T})),t.$$.dirty&409&&(w?(s(8,e=k({value:w,min:E,max:T})),s(10,n=I({outputElement:N,outputXPos:e}))):(s(8,e=0),s(10,n=0))),t.$$.dirty&384&&s(10,n=I({outputElement:N,outputXPos:e}))},l=he(l),[w,c,b,E,T,P,u,N,e,z,n,S,V,l,d,R,_,M]}class Ke extends De{constructor(l){super(),Ae(this,l,Ce,Be,ne,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const qe=t=>({}),Ee=t=>({});function Me(t){let l=t[1],s,e,n=we(t);return{c(){n.c(),s=se()},l(a){n.l(a),s=se()},m(a,d){n.m(a,d),J(a,s,d),e=!0},p(a,d){d&2&&ne(l,l=a[1])?(fe(),L(n,1,1,Te),ce(),n=we(a),n.c(),W(n,1),n.m(s.parentNode,s)):n.p(a,d)},i(a){e||(W(n),e=!0)},o(a){L(n),e=!1},d(a){a&&y(s),n.d(a)}}}function Ge(t){let l=[t[1],t[2]],s,e,n=Ie(t);return{c(){n.c(),s=se()},l(a){n.l(a),s=se()},m(a,d){n.m(a,d),J(a,s,d),e=!0},p(a,d){d&6&&ne(l,l=[a[1],a[2]])?(fe(),L(n,1,1,Te),ce(),n=Ie(a),n.c(),W(n,1),n.m(s.parentNode,s)):n.p(a,d)},i(a){e||(W(n),e=!0)},o(a){L(n),e=!1},d(a){a&&y(s),n.d(a)}}}function we(t){let l,s;return l=new He({props:{content:ye(le(t[0][t[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&3&&(a.content=ye(le(e[0][e[1]-1]),void 0,2)),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Fe(t){let l,s;return l=new He({props:{content:t[9],testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&512&&(a.content=e[9]),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Ie(t){let l,s;return l=new ze({props:{value:le(t[0][t[1]-1]),$$slots:{default:[Fe,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:t}}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&3&&(a.value=le(e[0][e[1]-1])),n&768&&(a.$$scope={dirty:n,ctx:e}),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Je(t){let l,s,e,n,a,d,c,b,E,T,P,u,w,z,N,S,k,I,V,R,_;function M(o){t[5](o)}let f={label:G("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:t[0].length};t[1]!==void 0&&(f.value=t[1]),e=new Ke({props:f}),Pe.push(()=>Le(e,"value",M));const H=t[4].decode,h=Ve(H,t,t[8],Ee),v=[Ge,Me],X=[];function x(o,g){return o[2]?0:1}return k=x(t),I=X[k]=v[k](t),{c(){l=D("div"),s=D("div"),Q(e.$$.fragment),a=B(),d=D("div"),c=D("button"),b=D("span"),T=B(),P=D("button"),u=D("span"),z=B(),h&&h.c(),N=B(),S=D("div"),I.c(),this.h()},l(o){l=A(o,"DIV",{class:!0});var g=O(l);s=A(g,"DIV",{class:!0});var r=O(s);Y(e.$$.fragment,r),a=C(r),d=A(r,"DIV",{class:!0});var i=O(d);c=A(i,"BUTTON",{class:!0,"aria-label":!0});var j=O(c);b=A(j,"SPAN",{class:!0}),O(b).forEach(y),j.forEach(y),T=C(i),P=A(i,"BUTTON",{class:!0,"aria-label":!0});var U=O(P);u=A(U,"SPAN",{class:!0}),O(u).forEach(y),U.forEach(y),i.forEach(y),r.forEach(y),z=C(g),h&&h.l(g),g.forEach(y),N=C(o),S=A(o,"DIV",{class:!0});var ee=O(S);I.l(ee),ee.forEach(y),this.h()},h(){m(b,"class","arrow arrow-left svelte-1ryp6u1"),K(b,"arrow-left-disabled",t[1]===1),m(c,"class","caret svelte-1ryp6u1"),c.disabled=E=t[1]===1,m(c,"aria-label",G("common.previous")),m(u,"class","arrow arrow-right svelte-1ryp6u1"),K(u,"arrow-right-disabled",t[1]===t[0].length),m(P,"class","caret svelte-1ryp6u1"),P.disabled=w=t[1]===t[0].length,m(P,"aria-label",G("common.next")),m(d,"class","flex items-center justify-center gap-3"),m(s,"class","bg-gray-100 flex w-full gap-4"),m(l,"class","flex gap-4 max-sm:flex-col"),m(S,"class","py-4")},m(o,g){J(o,l,g),p(l,s),Z(e,s,null),p(s,a),p(s,d),p(d,c),p(c,b),p(d,T),p(d,P),p(P,u),p(l,z),h&&h.m(l,null),J(o,N,g),J(o,S,g),X[k].m(S,null),V=!0,R||(_=[q(window,"keydown",t[3]),q(c,"click",t[6]),q(P,"click",t[7])],R=!0)},p(o,[g]){const r={};g&1&&(r.max=o[0].length),!n&&g&2&&(n=!0,r.value=o[1],Oe(()=>n=!1)),e.$set(r),(!V||g&2)&&K(b,"arrow-left-disabled",o[1]===1),(!V||g&2&&E!==(E=o[1]===1))&&(c.disabled=E),(!V||g&3)&&K(u,"arrow-right-disabled",o[1]===o[0].length),(!V||g&3&&w!==(w=o[1]===o[0].length))&&(P.disabled=w),h&&h.p&&(!V||g&256)&&Se(h,H,o,o[8],V?je(H,o[8],g,qe):Ue(o[8]),Ee);let i=k;k=x(o),k===i?X[k].p(o,g):(fe(),L(X[i],1,1,()=>{X[i]=null}),ce(),I=X[k],I?I.p(o,g):(I=X[k]=v[k](o),I.c()),W(I,1),I.m(S,null))},i(o){V||(W(e.$$.fragment,o),W(h,o),W(I),V=!0)},o(o){L(e.$$.fragment,o),L(h,o),L(I),V=!1},d(o){o&&(y(l),y(N),y(S)),$(e),h&&h.d(o),X[k].d(),R=!1,Ne(_)}}}function Qe(t,l,s){let e;We(t,Xe,u=>s(2,e=u));let{$$slots:n={},$$scope:a}=l,{events:d=[]}=l,c=1;function b(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&s(1,c-=1);break}}function E(u){c=u,s(1,c)}const T=()=>{s(1,c-=1)},P=()=>{s(1,c+=1)};return t.$$set=u=>{"events"in u&&s(0,d=u.events),"$$scope"in u&&s(8,a=u.$$scope)},[d,c,e,b,n,E,T,P,a]}class ot extends De{constructor(l){super(),Ae(this,l,Qe,Je,ne,{events:0})}}export{ot as W}; +import{s as ne,z as ue,h as D,t as ae,b as B,j as A,k as O,l as re,f as y,d as C,m,a2 as _e,H as K,E as be,i as J,n as p,$ as te,p as q,q as oe,a3 as ie,G as Ne,D as ge,A as he,N as Pe,a as Ve,O as Oe,u as Se,g as Ue,e as je,c as We,x as se,v as Te}from"./scheduler.C46pS-76.js";import{S as De,i as Ae,c as Q,a as Y,m as Z,t as W,b as L,d as $,f as Le,g as fe,e as ce}from"./index.dOVbn71B.js";import{C as He}from"./code-block.DGWayI9q.js";import{g as Re}from"./spread.CgU5AtxT.js";import{L as ve}from"./label.BlTcUXFh.js";import{o as ke}from"./omit.C8ejR22J.js";import{t as G}from"./translate.BBe5dcco.js";import{f as le}from"./index.lRK1fBz3.js";import{d as Xe}from"./events.CbhKe7Ai.js";import{s as ye}from"./parse-with-big-int.BKSBwM2t.js";import{P as ze}from"./payload-decoder.C_mCVVdL.js";function Be(t){let l,s,e,n,a,d,c,b,E=(t[0]??"")+"",T,P,u,w,z,N,S,k,I,V,R,_,M,f,H,h,v,X,x,o=[{id:w=t[6]+"-range"},{name:"range"},{type:"range"},{class:"h-0 w-full cursor-pointer appearance-none rounded border-y border-primary"},{min:t[3]},{max:t[4]},{step:t[5]},ke(t[14],"class")],g={};for(let r=0;r{if(Number.isNaN(f.currentTarget.valueAsNumber)){s(0,w=E);return}s(9,z=f.currentTarget.valueAsNumber>=E&&f.currentTarget.valueAsNumber<=T)},k=({value:f,min:H,max:h})=>(f-H)*100/(h-H),I=({outputElement:f,outputXPos:H})=>{var h;const v=(h=f==null?void 0:f.clientWidth)!==null&&h!==void 0?h:15;return Math.floor(H*v/100)},V=()=>{s(8,e=k({value:w,min:E,max:T})),s(10,n=I({outputElement:N,outputXPos:e}))};function R(f){Pe[f?"unshift":"push"](()=>{N=f,s(7,N)})}function _(){w=ie(this.value),s(0,w)}function M(){w=ie(this.value),s(0,w)}return t.$$set=f=>{s(13,l=ue(ue({},l),he(f))),s(14,d=ge(l,a)),"label"in f&&s(1,c=f.label),"labelHidden"in f&&s(2,b=f.labelHidden),"min"in f&&s(3,E=f.min),"max"in f&&s(4,T=f.max),"step"in f&&s(5,P=f.step),"id"in f&&s(6,u=f.id),"value"in f&&s(0,w=f.value)},t.$$.update=()=>{t.$$.dirty&25&&s(8,e=k({value:w,min:E,max:T})),t.$$.dirty&409&&(w?(s(8,e=k({value:w,min:E,max:T})),s(10,n=I({outputElement:N,outputXPos:e}))):(s(8,e=0),s(10,n=0))),t.$$.dirty&384&&s(10,n=I({outputElement:N,outputXPos:e}))},l=he(l),[w,c,b,E,T,P,u,N,e,z,n,S,V,l,d,R,_,M]}class Ke extends De{constructor(l){super(),Ae(this,l,Ce,Be,ne,{label:1,labelHidden:2,min:3,max:4,step:5,id:6,value:0})}}const qe=t=>({}),Ee=t=>({});function Me(t){let l=t[1],s,e,n=we(t);return{c(){n.c(),s=se()},l(a){n.l(a),s=se()},m(a,d){n.m(a,d),J(a,s,d),e=!0},p(a,d){d&2&&ne(l,l=a[1])?(fe(),L(n,1,1,Te),ce(),n=we(a),n.c(),W(n,1),n.m(s.parentNode,s)):n.p(a,d)},i(a){e||(W(n),e=!0)},o(a){L(n),e=!1},d(a){a&&y(s),n.d(a)}}}function Ge(t){let l=[t[1],t[2]],s,e,n=Ie(t);return{c(){n.c(),s=se()},l(a){n.l(a),s=se()},m(a,d){n.m(a,d),J(a,s,d),e=!0},p(a,d){d&6&&ne(l,l=[a[1],a[2]])?(fe(),L(n,1,1,Te),ce(),n=Ie(a),n.c(),W(n,1),n.m(s.parentNode,s)):n.p(a,d)},i(a){e||(W(n),e=!0)},o(a){L(n),e=!1},d(a){a&&y(s),n.d(a)}}}function we(t){let l,s;return l=new He({props:{content:ye(le(t[0][t[1]-1]),void 0,2),testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&3&&(a.content=ye(le(e[0][e[1]-1]),void 0,2)),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Fe(t){let l,s;return l=new He({props:{content:t[9],testId:"event-history-json",copyIconTitle:G("common.copy-icon-title"),copySuccessIconTitle:G("common.copy-success-icon-title")}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&512&&(a.content=e[9]),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Ie(t){let l,s;return l=new ze({props:{value:le(t[0][t[1]-1]),$$slots:{default:[Fe,({decodedValue:e})=>({9:e}),({decodedValue:e})=>e?512:0]},$$scope:{ctx:t}}}),{c(){Q(l.$$.fragment)},l(e){Y(l.$$.fragment,e)},m(e,n){Z(l,e,n),s=!0},p(e,n){const a={};n&3&&(a.value=le(e[0][e[1]-1])),n&768&&(a.$$scope={dirty:n,ctx:e}),l.$set(a)},i(e){s||(W(l.$$.fragment,e),s=!0)},o(e){L(l.$$.fragment,e),s=!1},d(e){$(l,e)}}}function Je(t){let l,s,e,n,a,d,c,b,E,T,P,u,w,z,N,S,k,I,V,R,_;function M(o){t[5](o)}let f={label:G("common.event"),labelHidden:!0,id:"range-input-event-history",min:1,max:t[0].length};t[1]!==void 0&&(f.value=t[1]),e=new Ke({props:f}),Pe.push(()=>Le(e,"value",M));const H=t[4].decode,h=Ve(H,t,t[8],Ee),v=[Ge,Me],X=[];function x(o,g){return o[2]?0:1}return k=x(t),I=X[k]=v[k](t),{c(){l=D("div"),s=D("div"),Q(e.$$.fragment),a=B(),d=D("div"),c=D("button"),b=D("span"),T=B(),P=D("button"),u=D("span"),z=B(),h&&h.c(),N=B(),S=D("div"),I.c(),this.h()},l(o){l=A(o,"DIV",{class:!0});var g=O(l);s=A(g,"DIV",{class:!0});var r=O(s);Y(e.$$.fragment,r),a=C(r),d=A(r,"DIV",{class:!0});var i=O(d);c=A(i,"BUTTON",{class:!0,"aria-label":!0});var j=O(c);b=A(j,"SPAN",{class:!0}),O(b).forEach(y),j.forEach(y),T=C(i),P=A(i,"BUTTON",{class:!0,"aria-label":!0});var U=O(P);u=A(U,"SPAN",{class:!0}),O(u).forEach(y),U.forEach(y),i.forEach(y),r.forEach(y),z=C(g),h&&h.l(g),g.forEach(y),N=C(o),S=A(o,"DIV",{class:!0});var ee=O(S);I.l(ee),ee.forEach(y),this.h()},h(){m(b,"class","arrow arrow-left svelte-1ryp6u1"),K(b,"arrow-left-disabled",t[1]===1),m(c,"class","caret svelte-1ryp6u1"),c.disabled=E=t[1]===1,m(c,"aria-label",G("common.previous")),m(u,"class","arrow arrow-right svelte-1ryp6u1"),K(u,"arrow-right-disabled",t[1]===t[0].length),m(P,"class","caret svelte-1ryp6u1"),P.disabled=w=t[1]===t[0].length,m(P,"aria-label",G("common.next")),m(d,"class","flex items-center justify-center gap-3"),m(s,"class","bg-gray-100 flex w-full gap-4"),m(l,"class","flex gap-4 max-sm:flex-col"),m(S,"class","py-4")},m(o,g){J(o,l,g),p(l,s),Z(e,s,null),p(s,a),p(s,d),p(d,c),p(c,b),p(d,T),p(d,P),p(P,u),p(l,z),h&&h.m(l,null),J(o,N,g),J(o,S,g),X[k].m(S,null),V=!0,R||(_=[q(window,"keydown",t[3]),q(c,"click",t[6]),q(P,"click",t[7])],R=!0)},p(o,[g]){const r={};g&1&&(r.max=o[0].length),!n&&g&2&&(n=!0,r.value=o[1],Oe(()=>n=!1)),e.$set(r),(!V||g&2)&&K(b,"arrow-left-disabled",o[1]===1),(!V||g&2&&E!==(E=o[1]===1))&&(c.disabled=E),(!V||g&3)&&K(u,"arrow-right-disabled",o[1]===o[0].length),(!V||g&3&&w!==(w=o[1]===o[0].length))&&(P.disabled=w),h&&h.p&&(!V||g&256)&&Se(h,H,o,o[8],V?je(H,o[8],g,qe):Ue(o[8]),Ee);let i=k;k=x(o),k===i?X[k].p(o,g):(fe(),L(X[i],1,1,()=>{X[i]=null}),ce(),I=X[k],I?I.p(o,g):(I=X[k]=v[k](o),I.c()),W(I,1),I.m(S,null))},i(o){V||(W(e.$$.fragment,o),W(h,o),W(I),V=!0)},o(o){L(e.$$.fragment,o),L(h,o),L(I),V=!1},d(o){o&&(y(l),y(N),y(S)),$(e),h&&h.d(o),X[k].d(),R=!1,Ne(_)}}}function Qe(t,l,s){let e;We(t,Xe,u=>s(2,e=u));let{$$slots:n={},$$scope:a}=l,{events:d=[]}=l,c=1;function b(u){switch(u.code){case"ArrowRight":case"KeyL":u.preventDefault(),u.stopPropagation(),c1&&s(1,c-=1);break}}function E(u){c=u,s(1,c)}const T=()=>{s(1,c-=1)},P=()=>{s(1,c+=1)};return t.$$set=u=>{"events"in u&&s(0,d=u.events),"$$scope"in u&&s(8,a=u.$$scope)},[d,c,e,b,n,E,T,P,a]}class ot extends De{constructor(l){super(),Ae(this,l,Qe,Je,ne,{events:0})}}export{ot as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-run.DcChDuxV.js b/ui/assets/local/_app/immutable/chunks/workflow-run.CoKQBOG_.js similarity index 50% rename from ui/assets/local/_app/immutable/chunks/workflow-run.DcChDuxV.js rename to ui/assets/local/_app/immutable/chunks/workflow-run.CoKQBOG_.js index 0c5382fae..32b63a72f 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-run.DcChDuxV.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-run.CoKQBOG_.js @@ -1 +1 @@ -import{w as r}from"./entry.DLEzeuD9.js";import{p as o}from"./persist-store.Bvu2qNDI.js";const w=r(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=r(e);o("workflowSummaryView",!0,!0);o("workflowTimelineView",!0,!0);export{e as i,w as r,l as w}; +import{w as r}from"./entry.kylZibtV.js";import{p as o}from"./persist-store.DeOEcwHN.js";const w=r(0),e={workflow:null,workers:{pollers:[],taskQueueStatus:null}},l=r(e);o("workflowSummaryView",!0,!0);o("workflowTimelineView",!0,!0);export{e as i,w as r,l as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.B8WATLoM.js b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.5VU8mX4o.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.B8WATLoM.js rename to ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.5VU8mX4o.js index 10b2f0fe1..43369023e 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.B8WATLoM.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.5VU8mX4o.js @@ -1 +1 @@ -import{s as q,N as g,O as k,h as T,t as y,j as D,k as E,l as C,f as w,m as I,i as A,n as b,v as M,P as O,w as V,b as Q,d as U}from"./scheduler.C46pS-76.js";import{S as z,i as B,f as W,c as P,a as v,m as N,t as R,b as S,d as j}from"./index.dOVbn71B.js";import{M as F}from"./modal.DyMhWY1J.js";import{t as h}from"./translate.BBe5dcco.js";import{h as X,t as Y}from"./workflows.BzgE0E1S.js";import{t as G}from"./toaster.D-OAJjvv.js";import{i as J}from"./is-network-error.Dq2Kfkkh.js";import{I as Z}from"./input.CTzUOpgs.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=y(o)},l(r){e=D(r,"P",{});var l=E(e);a=C(l,o),l.forEach(w)},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("confirmModal",t[4]),{c(){P(e.$$.fragment)},l(n){v(e.$$.fragment,n)},m(n,s){N(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(R(e.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function oe(t,e,o){let a,r=M,l=()=>(r(),r=O(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const _=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),V(s,a=Date.now(),a),G.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=J(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,_,m,n,p,H]}class _e extends z{constructor(e){super(),B(this,e,oe,ee,q,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),g.push(()=>W(i,"value",s)),{c(){e=T("div"),o=T("p"),r=y(a),l=Q(),P(i.$$.fragment),this.h()},l(f){e=D(f,"DIV",{slot:!0});var _=E(e);o=D(_,"P",{});var p=E(o);r=C(p,a),p.forEach(w),l=U(_),v(i.$$.fragment,_),_.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,_){A(f,e,_),b(e,o),b(o,r),b(e,l),N(i,e,null),n=!0},p(f,_){const p={};!m&&_&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(R(i.$$.fragment,f),n=!0)},o(f){S(i.$$.fragment,f),n=!1},d(f){f&&w(e),j(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){P(e.$$.fragment)},l(n){v(e.$$.fragment,n)},m(n,s){N(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(R(e.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function ae(t,e,o){let a,r=M,l=()=>(r(),r=O(s,d=>o(12,a=d)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",_=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,_=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),V(s,a=Date.now(),a),G.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(d){o(3,f=J(d)?d.message:h("common.unknown-error"))}finally{o(4,_=!1)}};function u(d){c=d,o(2,c)}function K(d){f=d,o(3,f)}function L(d){i=d,o(0,i)}return t.$$set=d=>{"open"in d&&o(0,i=d.open),"workflow"in d&&o(7,m=d.workflow),"namespace"in d&&o(8,n=d.namespace),"refresh"in d&&l(o(1,s=d.refresh))},[i,s,c,f,_,p,H,m,n,u,K,L]}class he extends z{constructor(e){super(),B(this,e,ae,re,q,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=(t,e,o)=>!t.disableWriteActions&&!t.workflowCancelDisabled&&!e.namespaceWriteDisabled(o),we=(t,e,o)=>!t.disableWriteActions&&!t.workflowResetDisabled&&!e.namespaceWriteDisabled(o),be=(t,e,o)=>!t.disableWriteActions&&!t.workflowTerminateDisabled&&!e.namespaceWriteDisabled(o);export{_e as C,he as T,be as a,we as b,pe as w}; +import{s as q,N as g,O as k,h as T,t as y,j as D,k as E,l as C,f as w,m as I,i as A,n as b,v as M,P as O,w as V,b as Q,d as U}from"./scheduler.C46pS-76.js";import{S as z,i as B,f as W,c as P,a as v,m as N,t as R,b as S,d as j}from"./index.dOVbn71B.js";import{M as F}from"./modal.BxyQo5_L.js";import{t as h}from"./translate.BBe5dcco.js";import{h as X,t as Y}from"./workflows.Cse8qlOg.js";import{t as G}from"./toaster.p5hsABhI.js";import{i as J}from"./is-network-error.Dq2Kfkkh.js";import{I as Z}from"./input.Dizl7Mgk.js";function x(t){let e,o=h("workflows.cancel-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function $(t){let e,o=h("workflows.cancel-modal-confirmation")+"",a;return{c(){e=T("p"),a=y(o)},l(r){e=D(r,"P",{});var l=E(e);a=C(l,o),l.forEach(w)},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function ee(t){let e,o,a,r;function l(n){t[7](n)}function i(n){t[8](n)}let m={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:h("common.confirm"),cancelText:h("common.cancel"),loading:t[2],confirmType:"destructive",$$slots:{content:[$],title:[x]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("confirmModal",t[4]),{c(){P(e.$$.fragment)},l(n){v(e.$$.fragment,n)},m(n,s){N(e,n,s),r=!0},p(n,[s]){const c={};s&4&&(c.loading=n[2]),s&1024&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(R(e.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function oe(t,e,o){let a,r=M,l=()=>(r(),r=O(s,u=>o(9,a=u)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c,f="";const _=async()=>{o(3,f=""),o(2,c=!0);try{await X({namespace:n,workflow:m}),o(0,i=!1),V(s,a=Date.now(),a),G.push({id:"workflow-cancelation-success-toast",message:h("workflows.cancel-success")})}catch(u){o(3,f=J(u)?u.message:h("common.unknown-error"))}finally{o(2,c=!1)}};function p(u){f=u,o(3,f)}function H(u){i=u,o(0,i)}return t.$$set=u=>{"open"in u&&o(0,i=u.open),"workflow"in u&&o(5,m=u.workflow),"namespace"in u&&o(6,n=u.namespace),"refresh"in u&&l(o(1,s=u.refresh))},[i,s,c,f,_,m,n,p,H]}class _e extends z{constructor(e){super(),B(this,e,oe,ee,q,{open:0,workflow:5,namespace:6,refresh:1})}}function ne(t){let e,o=h("workflows.terminate-modal-title")+"",a;return{c(){e=T("h3"),a=y(o),this.h()},l(r){e=D(r,"H3",{slot:!0});var l=E(e);a=C(l,o),l.forEach(w),this.h()},h(){I(e,"slot","title")},m(r,l){A(r,e,l),b(e,a)},p:M,d(r){r&&w(e)}}}function te(t){let e,o,a=h("workflows.terminate-modal-confirmation")+"",r,l,i,m,n;function s(f){t[9](f)}let c={id:"workflow-termination-reason",class:"mt-4",placeholder:h("common.reason-placeholder"),label:h("common.reason-placeholder"),labelHidden:!0};return t[2]!==void 0&&(c.value=t[2]),i=new Z({props:c}),g.push(()=>W(i,"value",s)),{c(){e=T("div"),o=T("p"),r=y(a),l=Q(),P(i.$$.fragment),this.h()},l(f){e=D(f,"DIV",{slot:!0});var _=E(e);o=D(_,"P",{});var p=E(o);r=C(p,a),p.forEach(w),l=U(_),v(i.$$.fragment,_),_.forEach(w),this.h()},h(){I(e,"slot","content")},m(f,_){A(f,e,_),b(e,o),b(o,r),b(e,l),N(i,e,null),n=!0},p(f,_){const p={};!m&&_&4&&(m=!0,p.value=f[2],k(()=>m=!1)),i.$set(p)},i(f){n||(R(i.$$.fragment,f),n=!0)},o(f){S(i.$$.fragment,f),n=!1},d(f){f&&w(e),j(i)}}}function re(t){let e,o,a,r;function l(n){t[10](n)}function i(n){t[11](n)}let m={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",loading:t[4],confirmText:h("workflows.terminate"),cancelText:h("common.cancel"),confirmType:"destructive",$$slots:{content:[te],title:[ne]},$$scope:{ctx:t}};return t[3]!==void 0&&(m.error=t[3]),t[0]!==void 0&&(m.open=t[0]),e=new F({props:m}),g.push(()=>W(e,"error",l)),g.push(()=>W(e,"open",i)),e.$on("cancelModal",t[5]),e.$on("confirmModal",t[6]),{c(){P(e.$$.fragment)},l(n){v(e.$$.fragment,n)},m(n,s){N(e,n,s),r=!0},p(n,[s]){const c={};s&16&&(c.loading=n[4]),s&8196&&(c.$$scope={dirty:s,ctx:n}),!o&&s&8&&(o=!0,c.error=n[3],k(()=>o=!1)),!a&&s&1&&(a=!0,c.open=n[0],k(()=>a=!1)),e.$set(c)},i(n){r||(R(e.$$.fragment,n),r=!0)},o(n){S(e.$$.fragment,n),r=!1},d(n){j(e,n)}}}function ae(t,e,o){let a,r=M,l=()=>(r(),r=O(s,d=>o(12,a=d)),s);t.$$.on_destroy.push(()=>r());let{open:i}=e,{workflow:m}=e,{namespace:n}=e,{refresh:s}=e;l();let c="",f="",_=!1;const p=()=>{o(0,i=!1),o(2,c="")},H=async()=>{o(3,f=""),o(4,_=!0);try{await Y({workflow:m,namespace:n,reason:c}),o(0,i=!1),o(2,c=""),V(s,a=Date.now(),a),G.push({id:"workflow-termination-success-toast",message:h("workflows.terminate-success")})}catch(d){o(3,f=J(d)?d.message:h("common.unknown-error"))}finally{o(4,_=!1)}};function u(d){c=d,o(2,c)}function K(d){f=d,o(3,f)}function L(d){i=d,o(0,i)}return t.$$set=d=>{"open"in d&&o(0,i=d.open),"workflow"in d&&o(7,m=d.workflow),"namespace"in d&&o(8,n=d.namespace),"refresh"in d&&l(o(1,s=d.refresh))},[i,s,c,f,_,p,H,m,n,u,K,L]}class he extends z{constructor(e){super(),B(this,e,ae,re,q,{open:0,workflow:7,namespace:8,refresh:1})}}const pe=(t,e,o)=>!t.disableWriteActions&&!t.workflowCancelDisabled&&!e.namespaceWriteDisabled(o),we=(t,e,o)=>!t.disableWriteActions&&!t.workflowResetDisabled&&!e.namespaceWriteDisabled(o),be=(t,e,o)=>!t.disableWriteActions&&!t.workflowTerminateDisabled&&!e.namespaceWriteDisabled(o);export{_e as C,he as T,be as a,we as b,pe as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.BzgE0E1S.js b/ui/assets/local/_app/immutable/chunks/workflows.Cse8qlOg.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/workflows.BzgE0E1S.js rename to ui/assets/local/_app/immutable/chunks/workflows.Cse8qlOg.js index c7a028c67..fa592918a 100644 --- a/ui/assets/local/_app/immutable/chunks/workflows.BzgE0E1S.js +++ b/ui/assets/local/_app/immutable/chunks/workflows.Cse8qlOg.js @@ -1 +1 @@ -import{d as m,r as it,w as I}from"./entry.DLEzeuD9.js";import{p as h}from"./stores.Dz-RNcUk.js";import{t as T}from"./translate.BBe5dcco.js";import{v as q,C as k}from"./scheduler.C46pS-76.js";import{r as E,a as w,i as G,b as ct,p as ut,c as ft,d as lt,e as dt,m as W}from"./route-for-api.BTloiRV6.js";import{A as _}from"./workflow-actions.TBME1SPK.js";import{b as wt,c as Et}from"./decode-payload.BTpeWKqJ.js";import{f as mt,g as kt,h as ht}from"./screaming-enums.w0zEi9dM.js";import{s as Pt,c as z,t as b}from"./versions.CeMhowfV.js";import{s as yt}from"./index.DJYN40WT.js";import{a as C}from"./auth-user.BOlglCm6.js";import{c as It}from"./events.Dh9P6F73.js";import{e as X,s as Tt}from"./encode-payload.BbGvULr4.js";import{s as A}from"./parse-with-big-int.BKSBwM2t.js";import{i as _t,c as At,d as Q,e as St}from"./format-time.6TuExJAg.js";import{a as gt}from"./events-service.DFs0nrNV.js";import{v as bt}from"./toaster.D-OAJjvv.js";const xt=async(t,o,n=fetch)=>{let r=0;try{const e=E("workflows.count",{namespace:t}),s=await w(e,{params:o?{query:o}:{},onError:q,handleError:q,request:n});r=parseInt((s==null?void 0:s.count)||"0")}catch{}return{count:r}},Ao=async({namespace:t,query:o})=>{const n="GROUP BY ExecutionStatus",r=E("workflows.count",{namespace:t}),{count:e,groups:s}=await w(r,{params:{query:o?`${o} ${n}`:`${n}`},notifyOnError:!1});return{count:e??"0",groups:s}},So=async({namespace:t})=>{const o='TemporalNamespaceDivision="TemporalScheduler" AND ExecutionStatus="Running"',n=E("workflows.count",{namespace:t}),{count:r}=await w(n,{params:{query:o},notifyOnError:!1});return r??"0"},Lt=(t=Pt)=>!k(t).disableWriteActions,Wt=(t=[])=>t.map(o=>{const n=yt(o,!0),r=o.activityId;return{...n,id:r}}),Ct=t=>t?t.map(o=>({...o,state:kt(o.state)})):[],Rt=t=>t?t.map(o=>({...o,state:ht(o.state)})):[],Yt=t=>!t||!t.indexedFields?{}:{indexedFields:Object.entries(t.indexedFields).reduce((n,[r,e])=>({...n,[r]:wt(e)}),{})},R=t=>{var D,O,U,F,v,B,$,V;const o=Yt(t.workflowExecutionInfo.searchAttributes),n=t.workflowExecutionInfo.memo,r=t.workflowExecutionInfo.type.name,e=t.workflowExecutionInfo.execution.workflowId,s=t.workflowExecutionInfo.execution.runId,a=t.workflowExecutionInfo.startTime,u=t.workflowExecutionInfo.closeTime,i=t.workflowExecutionInfo.executionTime,f=mt(t.workflowExecutionInfo.status),l=f==="Running",d=t.workflowExecutionInfo.historyLength,c=t.workflowExecutionInfo.historySizeBytes,P=`/workflows/${e}/${s}`,y=((O=(D=t==null?void 0:t.executionConfig)==null?void 0:D.taskQueue)==null?void 0:O.name)||((U=t==null?void 0:t.workflowExecutionInfo)==null?void 0:U.taskQueue),p=(F=t==null?void 0:t.workflowExecutionInfo)==null?void 0:F.mostRecentWorkerVersionStamp,J=(v=t==null?void 0:t.workflowExecutionInfo)==null?void 0:v.assignedBuildId,M=(B=t==null?void 0:t.workflowExecutionInfo)==null?void 0:B.parentNamespaceId,Z=($=t==null?void 0:t.workflowExecutionInfo)==null?void 0:$.parentExecution,tt=t.workflowExecutionInfo.stateTransitionCount,ot=(V=t.executionConfig)==null?void 0:V.defaultWorkflowTaskTimeout,nt=Wt(t.pendingActivities),rt=(t==null?void 0:t.pendingChildren)??[],et=Ct(t==null?void 0:t.pendingNexusOperations),st=t==null?void 0:t.pendingWorkflowTask,at=Rt(t==null?void 0:t.callbacks);return{name:r,id:e,runId:s,startTime:a,endTime:u,executionTime:i,status:f,historyEvents:d,historySizeBytes:c,searchAttributes:o,memo:n,url:P,taskQueue:y,assignedBuildId:J,mostRecentWorkerVersionStamp:p,pendingActivities:nt,pendingChildren:rt,pendingNexusOperations:et,pendingWorkflowTask:st,callbacks:at,parentNamespaceId:M,parent:Z,stateTransitionCount:tt,isRunning:l,defaultWorkflowTaskTimeout:ot,get canBeTerminated(){return l&&Lt()}}},Y=t=>(t.executions||[]).map(o=>R({workflowExecutionInfo:o})),Nt=(t,o)=>{var n;return((n=t==null?void 0:t.visibilityStore)==null?void 0:n.includes("elasticsearch"))||G(o,"1.19")},pt=t=>{var o;return(o=t==null?void 0:t.visibilityStore)==null?void 0:o.includes("elasticsearch")},x=m([h],([t])=>{var o,n,r;return(r=(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),j=m([z,b,x],([t,o,n])=>Nt(t,o)||n);m([z,x],([t,o])=>pt(t)||o);var S=(t=>(t[t.RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED=0]="RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED",t[t.RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL=1]="RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL",t[t.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE=2]="RESET_REAPPLY_EXCLUDE_TYPE_UPDATE",t))(S||{}),g=(t=>(t[t.RESET_REAPPLY_TYPE_UNSPECIFIED=0]="RESET_REAPPLY_TYPE_UNSPECIFIED",t[t.RESET_REAPPLY_TYPE_SIGNAL=1]="RESET_REAPPLY_TYPE_SIGNAL",t[t.RESET_REAPPLY_TYPE_NONE=2]="RESET_REAPPLY_TYPE_NONE",t[t.RESET_REAPPLY_TYPE_ALL_ELIGIBLE=3]="RESET_REAPPLY_TYPE_ALL_ELIGIBLE",t))(g||{});const Dt={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ot=["workflowId","workflowType","timeRange","executionStatus","closeTime"],Ut=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),Ft=t=>{if(typeof t!="string")return!1;for(const o of Ot)if(o===t)return!0;return!1},vt=(t,o,n)=>{const r=Dt[t];return o==="All"?"":_t(o)||At(o)?n||k(j)?`${r} > "${Q(o)}"`:`${r} BETWEEN "${Q(o)}" AND "${St()}"`:`${r}="${o}"`},Bt=(t,o)=>Object.entries(t).map(([n,r])=>{if(Ft(n)&&Ut(r))return vt(n,r,o)}).filter(Boolean),$t=(t,o=!1)=>Bt(t,o).join(" and ");function Vt(t){console.error("Unhandled action:",t)}const qt=(t,o)=>{let n;switch(t){case _.Cancel:n=T("workflows.canceled");break;case _.Reset:n=T("workflows.reset");break;case _.Terminate:n=T("workflows.terminated");break;default:Vt(t)}return o?T("workflows.workflow-action-reason-placeholder-with-email",{action:n,email:o}):T("workflows.workflow-action-reason-placeholder",{action:n})},K=({action:t,reason:o,email:n})=>{const r=qt(t,n);return o?[o.trim(),r].join(" "):r},N=async(t,o,n=fetch,r=!1)=>{const e=o.query||$t(o,r);let s;try{s=decodeURIComponent(e)}catch{s=e}const a=r?"workflows.archived":"workflows";let u="";const i=c=>{var P,y;ft(c),(P=c==null?void 0:c.body)!=null&&P.message||c!=null&&c.status?u=((y=c==null?void 0:c.body)==null?void 0:y.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:u="Error fetching workflows: Server failed to respond"},f=E(a,{namespace:t}),{executions:l,nextPageToken:d}=await w(f,{params:{query:s},onError:i,handleError:i,request:n})??{executions:[],nextPageToken:""};return{workflows:Y({executions:l}),nextPageToken:String(d),error:u}},go=async({namespace:t,workflowId:o,url:n},r=fetch)=>{var l;const e="workflows",s=n??ct(t),a=ut(e,{namespace:t}),u=s+a,{executions:i}=await w(u,{params:{query:`WorkflowId="${o}"`,pageSize:"1"},request:r})??{executions:[]},f=(l=Y({executions:i}))==null?void 0:l[0];return{runId:f==null?void 0:f.runId}},bo=async(t,o=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const s=u=>{(lt(u)||dt(u))&&(e=!1)},a=E(r,{namespace:t});return await w(a,{params:{pageSize:"1"},onError:s,handleError:s,request:o}),{authorized:e}},xo=async(t,o,n=fetch)=>N(t,o,n,!0);async function Lo(t,o=fetch){const n=E("workflow",{namespace:t.namespace,workflowId:t.workflowId});return w(n,{request:o,notifyOnError:!1,params:{"execution.runId":t.runId}}).then(r=>({workflow:R(r)})).catch(r=>({error:r}))}async function Wo({workflow:t,namespace:o,reason:n}){const r=E("workflow.terminate",{namespace:o,workflowId:t.id}),e=k(C).email,s=K({reason:n,action:_.Terminate,email:e});return await w(r,{options:{method:"POST",body:A({reason:s,...e&&{identity:e}})},notifyOnError:!1,params:{"execution.runId":t.runId}})}async function Co({namespace:t,workflow:{id:o,runId:n}},r=fetch){const e=E("workflow.cancel",{namespace:t,workflowId:o});return w(e,{request:r,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function Ro({namespace:t,workflow:{id:o,runId:n},name:r,input:e,encoding:s}){const a=E("workflow.signal",{namespace:t,workflowId:o,signalName:r}),u=await X(e,s),i=k(h).data.settings,f=(i==null?void 0:i.version)??"",d=G(f,"2.22")?{signalName:r,workflowExecution:{workflowId:o,runId:n},input:{payloads:u}}:{signalName:r,input:{payloads:u},params:{"execution.runId":n}};return w(a,{notifyOnError:!1,options:{method:"POST",body:A(d)}})}async function Yo({namespace:t,workflow:{id:o,runId:n},eventId:r,reason:e,includeSignals:s,excludeSignals:a,excludeUpdates:u}){const i=E("workflow.reset",{namespace:t,workflowId:o}),f=k(C).email,l=K({action:_.Reset,reason:e,email:f}),d={workflowExecution:{workflowId:o,runId:n},workflowTaskFinishEventId:r,requestId:bt(),reason:l};if(k(x)||W("1.24.0",k(b))){const c=[];!a&&!u&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED),a&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL),u&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE),d.resetReapplyExcludeTypes=c,d.resetReapplyType=g.RESET_REAPPLY_TYPE_ALL_ELIGIBLE}else{let c;s?c=g.RESET_REAPPLY_TYPE_SIGNAL:c=g.RESET_REAPPLY_TYPE_NONE,d.resetReapplyType=c}return w(i,{notifyOnError:!1,options:{method:"POST",body:A(d)},params:{"execution.runId":n}})}async function No(t,o=fetch){const n=e=>{console.error(e)},r=E("workflow",t);return w(r,{request:o,onError:n,handleError:n}).then(R)}async function po(t,o,n){if(!k(H))return[];try{let r=`ParentWorkflowId = "${o}"`;n&&(r+=` AND ParentRunId = "${n}"`);const{workflows:e}=await N(t,{query:r});return e}catch{return[]}}const Qt=t=>{if(!t.length)return{};const o={};return t.forEach(n=>{o[n.attribute]=Tt(String(n.value))}),o};async function Do({namespace:t,workflowId:o,taskQueue:n,workflowType:r,input:e,encoding:s,searchAttributes:a}){const u=E("workflow",{namespace:t,workflowId:o});let i;if(e)try{i=await X(e,s)}catch{console.error("Could not decode input for starting workflow")}const f=A({workflowId:o,taskQueue:{name:n},workflowType:{name:r},input:i?{payloads:i}:null,searchAttributes:a.length===0?null:{indexedFields:{...Qt(a)}}});return w(u,{notifyOnError:!1,options:{method:"POST",body:f}})}const Oo=async({namespace:t,workflowType:o,workflowId:n})=>{var s,a,u;const r=i=>{console.error(i)},e={input:"",searchAttributes:void 0};try{let i="";o&&n?i=`WorkflowType = "${o}" AND WorkflowId = "${n}"`:o?i=`WorkflowType = "${o}"`:n&&(i=`WorkflowId = "${n}"`);const f=E("workflows",{namespace:t}),l=await w(f,{params:{query:i,pageSize:"1"},handleError:r});if(!((s=l==null?void 0:l.executions)!=null&&s[0]))return e;const d=Y(l)[0],P=await gt({namespace:t,workflowId:d.id,runId:d.runId}),y=await Et((a=P==null?void 0:P.attributes)==null?void 0:a.input,t,k(h).data.settings,k(C).accessToken);return{input:A(y==null?void 0:y.payloads[0]),searchAttributes:(u=d==null?void 0:d.searchAttributes)==null?void 0:u.indexedFields}}catch{return e}},Gt=300,zt=async(t,o,n)=>{o.set(!0);try{await n()}catch(r){console.error(r)}t.set(!1),setTimeout(()=>{o.set(!1)},Gt)},Xt=m([h],([t])=>{var o,n,r;return!!((r=(n=(o=t.data)==null?void 0:o.systemInfo)==null?void 0:n.capabilities)!=null&&r.countGroupByExecutionStatus)}),Uo=m([h,b],([t,o])=>{var e,s,a;const n=W("1.23.0",o),r=!!((a=(s=(e=t.data)==null?void 0:e.systemInfo)==null?void 0:s.capabilities)!=null&&a.prefixSearch);return n||r}),jt=I(0),Kt=m([h],([t])=>{var o,n;return(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.hideWorkflowQueryErrors}),Fo=m([h],([t])=>{var o,n;return(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.refreshWorkflowCountsDisabled}),H=m([x,b],([t,o])=>t||W("1.23.0",o)),Ht=m([h],([t])=>t.url.searchParams.get("query")),Jt=m([Ht,H,It],([t,o,n])=>o&&!n?t?`ParentWorkflowId is NULL AND ${t}`:"ParentWorkflowId is NULL":t),Mt=m([h],([t])=>t.params.namespace),Zt=m([Mt,Jt,jt,j,Kt],([t,o,n,r,e])=>({namespace:t,query:o,refresh:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})),to=t=>{eo.set({...t,newCount:0})},oo=t=>Zt.subscribe(({namespace:o,query:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})=>{zt(ro,no,async()=>{const{workflows:s,error:a}=await N(o,{query:n});if(t(s),r&&!k(Xt)){const u=await xt(o,n);to(u)}a?e?L.set(T("workflows.workflows-error-querying")):L.set(a):L.set("")})}),vo=I(""),no=I(!0),ro=I(!0),eo=I({count:0,newCount:0}),L=I(""),Bo=it([],oo),$o=I("");export{$o as A,qt as B,H as C,Bo as D,ro as E,no as F,L as G,bo as a,Ao as b,vo as c,Fo as d,Oo as e,go as f,Do as g,Co as h,j as i,po as j,So as k,x as l,Lt as m,xo as n,$t as o,Yo as p,Jt as q,jt as r,Qt as s,Wo as t,Ro as u,Lo as v,eo as w,No as x,Xt as y,Uo as z}; +import{d as m,r as it,w as I}from"./entry.kylZibtV.js";import{p as h}from"./stores.Ds4o9nwd.js";import{t as T}from"./translate.BBe5dcco.js";import{v as q,C as k}from"./scheduler.C46pS-76.js";import{r as E,a as w,i as G,b as ct,p as ut,c as ft,d as lt,e as dt,m as W}from"./route-for-api.DGDQNXtX.js";import{A as _}from"./workflow-actions.TBME1SPK.js";import{b as wt,c as Et}from"./decode-payload.CR1Tto5x.js";import{f as mt,g as kt,h as ht}from"./screaming-enums.w0zEi9dM.js";import{s as Pt,c as z,t as b}from"./versions.BSCVnN4z.js";import{s as yt}from"./index.lRK1fBz3.js";import{a as C}from"./auth-user.CfsLeCYD.js";import{c as It}from"./events.CbhKe7Ai.js";import{e as X,s as Tt}from"./encode-payload.DnXS3ERP.js";import{s as A}from"./parse-with-big-int.BKSBwM2t.js";import{i as _t,c as At,d as Q,e as St}from"./format-time.6TuExJAg.js";import{a as gt}from"./events-service.BZohXMj_.js";import{v as bt}from"./toaster.p5hsABhI.js";const xt=async(t,o,n=fetch)=>{let r=0;try{const e=E("workflows.count",{namespace:t}),s=await w(e,{params:o?{query:o}:{},onError:q,handleError:q,request:n});r=parseInt((s==null?void 0:s.count)||"0")}catch{}return{count:r}},Ao=async({namespace:t,query:o})=>{const n="GROUP BY ExecutionStatus",r=E("workflows.count",{namespace:t}),{count:e,groups:s}=await w(r,{params:{query:o?`${o} ${n}`:`${n}`},notifyOnError:!1});return{count:e??"0",groups:s}},So=async({namespace:t})=>{const o='TemporalNamespaceDivision="TemporalScheduler" AND ExecutionStatus="Running"',n=E("workflows.count",{namespace:t}),{count:r}=await w(n,{params:{query:o},notifyOnError:!1});return r??"0"},Lt=(t=Pt)=>!k(t).disableWriteActions,Wt=(t=[])=>t.map(o=>{const n=yt(o,!0),r=o.activityId;return{...n,id:r}}),Ct=t=>t?t.map(o=>({...o,state:kt(o.state)})):[],Rt=t=>t?t.map(o=>({...o,state:ht(o.state)})):[],Yt=t=>!t||!t.indexedFields?{}:{indexedFields:Object.entries(t.indexedFields).reduce((n,[r,e])=>({...n,[r]:wt(e)}),{})},R=t=>{var D,O,U,F,v,B,$,V;const o=Yt(t.workflowExecutionInfo.searchAttributes),n=t.workflowExecutionInfo.memo,r=t.workflowExecutionInfo.type.name,e=t.workflowExecutionInfo.execution.workflowId,s=t.workflowExecutionInfo.execution.runId,a=t.workflowExecutionInfo.startTime,u=t.workflowExecutionInfo.closeTime,i=t.workflowExecutionInfo.executionTime,f=mt(t.workflowExecutionInfo.status),l=f==="Running",d=t.workflowExecutionInfo.historyLength,c=t.workflowExecutionInfo.historySizeBytes,P=`/workflows/${e}/${s}`,y=((O=(D=t==null?void 0:t.executionConfig)==null?void 0:D.taskQueue)==null?void 0:O.name)||((U=t==null?void 0:t.workflowExecutionInfo)==null?void 0:U.taskQueue),p=(F=t==null?void 0:t.workflowExecutionInfo)==null?void 0:F.mostRecentWorkerVersionStamp,J=(v=t==null?void 0:t.workflowExecutionInfo)==null?void 0:v.assignedBuildId,M=(B=t==null?void 0:t.workflowExecutionInfo)==null?void 0:B.parentNamespaceId,Z=($=t==null?void 0:t.workflowExecutionInfo)==null?void 0:$.parentExecution,tt=t.workflowExecutionInfo.stateTransitionCount,ot=(V=t.executionConfig)==null?void 0:V.defaultWorkflowTaskTimeout,nt=Wt(t.pendingActivities),rt=(t==null?void 0:t.pendingChildren)??[],et=Ct(t==null?void 0:t.pendingNexusOperations),st=t==null?void 0:t.pendingWorkflowTask,at=Rt(t==null?void 0:t.callbacks);return{name:r,id:e,runId:s,startTime:a,endTime:u,executionTime:i,status:f,historyEvents:d,historySizeBytes:c,searchAttributes:o,memo:n,url:P,taskQueue:y,assignedBuildId:J,mostRecentWorkerVersionStamp:p,pendingActivities:nt,pendingChildren:rt,pendingNexusOperations:et,pendingWorkflowTask:st,callbacks:at,parentNamespaceId:M,parent:Z,stateTransitionCount:tt,isRunning:l,defaultWorkflowTaskTimeout:ot,get canBeTerminated(){return l&&Lt()}}},Y=t=>(t.executions||[]).map(o=>R({workflowExecutionInfo:o})),Nt=(t,o)=>{var n;return((n=t==null?void 0:t.visibilityStore)==null?void 0:n.includes("elasticsearch"))||G(o,"1.19")},pt=t=>{var o;return(o=t==null?void 0:t.visibilityStore)==null?void 0:o.includes("elasticsearch")},x=m([h],([t])=>{var o,n,r;return(r=(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),j=m([z,b,x],([t,o,n])=>Nt(t,o)||n);m([z,x],([t,o])=>pt(t)||o);var S=(t=>(t[t.RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED=0]="RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED",t[t.RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL=1]="RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL",t[t.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE=2]="RESET_REAPPLY_EXCLUDE_TYPE_UPDATE",t))(S||{}),g=(t=>(t[t.RESET_REAPPLY_TYPE_UNSPECIFIED=0]="RESET_REAPPLY_TYPE_UNSPECIFIED",t[t.RESET_REAPPLY_TYPE_SIGNAL=1]="RESET_REAPPLY_TYPE_SIGNAL",t[t.RESET_REAPPLY_TYPE_NONE=2]="RESET_REAPPLY_TYPE_NONE",t[t.RESET_REAPPLY_TYPE_ALL_ELIGIBLE=3]="RESET_REAPPLY_TYPE_ALL_ELIGIBLE",t))(g||{});const Dt={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ot=["workflowId","workflowType","timeRange","executionStatus","closeTime"],Ut=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),Ft=t=>{if(typeof t!="string")return!1;for(const o of Ot)if(o===t)return!0;return!1},vt=(t,o,n)=>{const r=Dt[t];return o==="All"?"":_t(o)||At(o)?n||k(j)?`${r} > "${Q(o)}"`:`${r} BETWEEN "${Q(o)}" AND "${St()}"`:`${r}="${o}"`},Bt=(t,o)=>Object.entries(t).map(([n,r])=>{if(Ft(n)&&Ut(r))return vt(n,r,o)}).filter(Boolean),$t=(t,o=!1)=>Bt(t,o).join(" and ");function Vt(t){console.error("Unhandled action:",t)}const qt=(t,o)=>{let n;switch(t){case _.Cancel:n=T("workflows.canceled");break;case _.Reset:n=T("workflows.reset");break;case _.Terminate:n=T("workflows.terminated");break;default:Vt(t)}return o?T("workflows.workflow-action-reason-placeholder-with-email",{action:n,email:o}):T("workflows.workflow-action-reason-placeholder",{action:n})},K=({action:t,reason:o,email:n})=>{const r=qt(t,n);return o?[o.trim(),r].join(" "):r},N=async(t,o,n=fetch,r=!1)=>{const e=o.query||$t(o,r);let s;try{s=decodeURIComponent(e)}catch{s=e}const a=r?"workflows.archived":"workflows";let u="";const i=c=>{var P,y;ft(c),(P=c==null?void 0:c.body)!=null&&P.message||c!=null&&c.status?u=((y=c==null?void 0:c.body)==null?void 0:y.message)??`Error fetching workflows: ${c.status}: ${c.statusText}`:u="Error fetching workflows: Server failed to respond"},f=E(a,{namespace:t}),{executions:l,nextPageToken:d}=await w(f,{params:{query:s},onError:i,handleError:i,request:n})??{executions:[],nextPageToken:""};return{workflows:Y({executions:l}),nextPageToken:String(d),error:u}},go=async({namespace:t,workflowId:o,url:n},r=fetch)=>{var l;const e="workflows",s=n??ct(t),a=ut(e,{namespace:t}),u=s+a,{executions:i}=await w(u,{params:{query:`WorkflowId="${o}"`,pageSize:"1"},request:r})??{executions:[]},f=(l=Y({executions:i}))==null?void 0:l[0];return{runId:f==null?void 0:f.runId}},bo=async(t,o=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const s=u=>{(lt(u)||dt(u))&&(e=!1)},a=E(r,{namespace:t});return await w(a,{params:{pageSize:"1"},onError:s,handleError:s,request:o}),{authorized:e}},xo=async(t,o,n=fetch)=>N(t,o,n,!0);async function Lo(t,o=fetch){const n=E("workflow",{namespace:t.namespace,workflowId:t.workflowId});return w(n,{request:o,notifyOnError:!1,params:{"execution.runId":t.runId}}).then(r=>({workflow:R(r)})).catch(r=>({error:r}))}async function Wo({workflow:t,namespace:o,reason:n}){const r=E("workflow.terminate",{namespace:o,workflowId:t.id}),e=k(C).email,s=K({reason:n,action:_.Terminate,email:e});return await w(r,{options:{method:"POST",body:A({reason:s,...e&&{identity:e}})},notifyOnError:!1,params:{"execution.runId":t.runId}})}async function Co({namespace:t,workflow:{id:o,runId:n}},r=fetch){const e=E("workflow.cancel",{namespace:t,workflowId:o});return w(e,{request:r,notifyOnError:!1,options:{method:"POST"},params:{"execution.runId":n}})}async function Ro({namespace:t,workflow:{id:o,runId:n},name:r,input:e,encoding:s}){const a=E("workflow.signal",{namespace:t,workflowId:o,signalName:r}),u=await X(e,s),i=k(h).data.settings,f=(i==null?void 0:i.version)??"",d=G(f,"2.22")?{signalName:r,workflowExecution:{workflowId:o,runId:n},input:{payloads:u}}:{signalName:r,input:{payloads:u},params:{"execution.runId":n}};return w(a,{notifyOnError:!1,options:{method:"POST",body:A(d)}})}async function Yo({namespace:t,workflow:{id:o,runId:n},eventId:r,reason:e,includeSignals:s,excludeSignals:a,excludeUpdates:u}){const i=E("workflow.reset",{namespace:t,workflowId:o}),f=k(C).email,l=K({action:_.Reset,reason:e,email:f}),d={workflowExecution:{workflowId:o,runId:n},workflowTaskFinishEventId:r,requestId:bt(),reason:l};if(k(x)||W("1.24.0",k(b))){const c=[];!a&&!u&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_UNSPECIFIED),a&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_SIGNAL),u&&c.push(S.RESET_REAPPLY_EXCLUDE_TYPE_UPDATE),d.resetReapplyExcludeTypes=c,d.resetReapplyType=g.RESET_REAPPLY_TYPE_ALL_ELIGIBLE}else{let c;s?c=g.RESET_REAPPLY_TYPE_SIGNAL:c=g.RESET_REAPPLY_TYPE_NONE,d.resetReapplyType=c}return w(i,{notifyOnError:!1,options:{method:"POST",body:A(d)},params:{"execution.runId":n}})}async function No(t,o=fetch){const n=e=>{console.error(e)},r=E("workflow",t);return w(r,{request:o,onError:n,handleError:n}).then(R)}async function po(t,o,n){if(!k(H))return[];try{let r=`ParentWorkflowId = "${o}"`;n&&(r+=` AND ParentRunId = "${n}"`);const{workflows:e}=await N(t,{query:r});return e}catch{return[]}}const Qt=t=>{if(!t.length)return{};const o={};return t.forEach(n=>{o[n.attribute]=Tt(String(n.value))}),o};async function Do({namespace:t,workflowId:o,taskQueue:n,workflowType:r,input:e,encoding:s,searchAttributes:a}){const u=E("workflow",{namespace:t,workflowId:o});let i;if(e)try{i=await X(e,s)}catch{console.error("Could not decode input for starting workflow")}const f=A({workflowId:o,taskQueue:{name:n},workflowType:{name:r},input:i?{payloads:i}:null,searchAttributes:a.length===0?null:{indexedFields:{...Qt(a)}}});return w(u,{notifyOnError:!1,options:{method:"POST",body:f}})}const Oo=async({namespace:t,workflowType:o,workflowId:n})=>{var s,a,u;const r=i=>{console.error(i)},e={input:"",searchAttributes:void 0};try{let i="";o&&n?i=`WorkflowType = "${o}" AND WorkflowId = "${n}"`:o?i=`WorkflowType = "${o}"`:n&&(i=`WorkflowId = "${n}"`);const f=E("workflows",{namespace:t}),l=await w(f,{params:{query:i,pageSize:"1"},handleError:r});if(!((s=l==null?void 0:l.executions)!=null&&s[0]))return e;const d=Y(l)[0],P=await gt({namespace:t,workflowId:d.id,runId:d.runId}),y=await Et((a=P==null?void 0:P.attributes)==null?void 0:a.input,t,k(h).data.settings,k(C).accessToken);return{input:A(y==null?void 0:y.payloads[0]),searchAttributes:(u=d==null?void 0:d.searchAttributes)==null?void 0:u.indexedFields}}catch{return e}},Gt=300,zt=async(t,o,n)=>{o.set(!0);try{await n()}catch(r){console.error(r)}t.set(!1),setTimeout(()=>{o.set(!1)},Gt)},Xt=m([h],([t])=>{var o,n,r;return!!((r=(n=(o=t.data)==null?void 0:o.systemInfo)==null?void 0:n.capabilities)!=null&&r.countGroupByExecutionStatus)}),Uo=m([h,b],([t,o])=>{var e,s,a;const n=W("1.23.0",o),r=!!((a=(s=(e=t.data)==null?void 0:e.systemInfo)==null?void 0:s.capabilities)!=null&&a.prefixSearch);return n||r}),jt=I(0),Kt=m([h],([t])=>{var o,n;return(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.hideWorkflowQueryErrors}),Fo=m([h],([t])=>{var o,n;return(n=(o=t.data)==null?void 0:o.settings)==null?void 0:n.refreshWorkflowCountsDisabled}),H=m([x,b],([t,o])=>t||W("1.23.0",o)),Ht=m([h],([t])=>t.url.searchParams.get("query")),Jt=m([Ht,H,It],([t,o,n])=>o&&!n?t?`ParentWorkflowId is NULL AND ${t}`:"ParentWorkflowId is NULL":t),Mt=m([h],([t])=>t.params.namespace),Zt=m([Mt,Jt,jt,j,Kt],([t,o,n,r,e])=>({namespace:t,query:o,refresh:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})),to=t=>{eo.set({...t,newCount:0})},oo=t=>Zt.subscribe(({namespace:o,query:n,supportsAdvancedVisibility:r,hideWorkflowQueryErrors:e})=>{zt(ro,no,async()=>{const{workflows:s,error:a}=await N(o,{query:n});if(t(s),r&&!k(Xt)){const u=await xt(o,n);to(u)}a?e?L.set(T("workflows.workflows-error-querying")):L.set(a):L.set("")})}),vo=I(""),no=I(!0),ro=I(!0),eo=I({count:0,newCount:0}),L=I(""),Bo=it([],oo),$o=I("");export{$o as A,qt as B,H as C,Bo as D,ro as E,no as F,L as G,bo as a,Ao as b,vo as c,Fo as d,Oo as e,go as f,Do as g,Co as h,j as i,po as j,So as k,x as l,Lt as m,xo as n,$t as o,Yo as p,Jt as q,jt as r,Qt as s,Wo as t,Ro as u,Lo as v,eo as w,No as x,Xt as y,Uo as z}; diff --git a/ui/assets/local/_app/immutable/entry/app.Cg8NqhWv.js b/ui/assets/local/_app/immutable/entry/app.Cg8NqhWv.js deleted file mode 100644 index 2f7c9c636..000000000 --- a/ui/assets/local/_app/immutable/entry/app.Cg8NqhWv.js +++ /dev/null @@ -1,2 +0,0 @@ -const __vite__fileDeps=["../nodes/0.BdxXJO8T.js","../chunks/i18next.DhwiOCyc.js","../chunks/layout.Co5naKTs.js","../chunks/scheduler.C46pS-76.js","../chunks/index.dOVbn71B.js","../nodes/1.BhgCFllH.js","../chunks/stores.Dz-RNcUk.js","../chunks/entry.DLEzeuD9.js","../chunks/paths.DlAH43M2.js","../chunks/control.CYgJF_JY.js","../chunks/error.aZkLDhWZ.js","../chunks/link.BJceiGbc.js","../chunks/spread.CgU5AtxT.js","../chunks/icon.CfkHLDdJ.js","../chunks/_commonjsHelpers.Cpj98o6Y.js","../chunks/tw-merge.Ds6tgvmq.js","../assets/link.D2fkgxx0.css","../chunks/has.BWrERxPV.js","../chunks/is-network-error.Dq2Kfkkh.js","../chunks/parse-with-big-int.BKSBwM2t.js","../assets/app.DoM7g6DN.css","../nodes/2.BOq6cVGU.js","../chunks/index.g5YcAAdQ.js","../chunks/route-for-api.BTloiRV6.js","../chunks/prod-browser.CoG0geaG.js","../chunks/auth-user.BOlglCm6.js","../chunks/persist-store.Bvu2qNDI.js","../chunks/toaster.D-OAJjvv.js","../chunks/route-for.BjP6gGR7.js","../chunks/encode-uri.BOkQ1rrX.js","../chunks/namespaces-service.24nHfQvn.js","../chunks/namespaces.619_s9Tr.js","../chunks/paginated.BsR1kdqH.js","../chunks/screaming-enums.w0zEi9dM.js","../chunks/settings-service.6ZfKSI4U.js","../chunks/atob.ODDrCDK_.js","../chunks/index.mPGqfhEB.js","../chunks/button.BpRIS9ld.js","../chunks/index.Bb4qSo10.js","../chunks/badge.jG5hkqHT.js","../chunks/logo.Ce1lSHm5.js","../chunks/translate.BBe5dcco.js","../chunks/each.C6O0oV7R.js","../chunks/input.CTzUOpgs.js","../chunks/label.BlTcUXFh.js","../chunks/copy-to-clipboard.Dh7E1aVf.js","../chunks/icon-button.CDcPAnTL.js","../assets/input.b3fFufxq.css","../chunks/data-encoder-settings.87VBLn14.js","../chunks/toggle-switch.C9lxIG0w.js","../chunks/data-encoder-config.D-DAVwjK.js","../chunks/workflow-run.DcChDuxV.js","../chunks/accordion.DEmefb3Z.js","../chunks/radio-input.yEAROJgW.js","../assets/radio-input.DKF9ou3a.css","../assets/data-encoder-settings.PofgkyHB.css","../chunks/menu-button.20KWkPAy.js","../chunks/menu.FCESMtRU.js","../assets/menu.DYkBWUeZ.css","../chunks/checkbox.CZ5w22eC.js","../chunks/omit.C8ejR22J.js","../chunks/time-format.D2wF3ave.js","../chunks/format-time.6TuExJAg.js","../chunks/format-camel-case.ByTIZu23.js","../chunks/data-encoder.rFK9EOf0.js","../chunks/dark-mode.DlqJSTFW.js","../chunks/tooltip.D2lOlqUw.js","../assets/tooltip.CtW_a8tz.css","../chunks/combobox.Iz37dSfH.js","../chunks/chip.jHqj-PnK.js","../assets/chip.BPx0qQXX.css","../assets/combobox.D7Obbm9F.css","../chunks/active-events.B1lGV7ud.js","../chunks/events.Dh9P6F73.js","../chunks/get-event-categorization.BzHsmJUX.js","../chunks/batch-operations.BeHaOhdY.js","../chunks/workflow-actions.TBME1SPK.js","../chunks/versions.CeMhowfV.js","../assets/2.BElXW6Qh.css","../nodes/3.CALA-tyn.js","../chunks/page-title.DNhqE1Lj.js","../nodes/4.B3mgOWfd.js","../chunks/event-history-file-import.C5IunOHG.js","../chunks/index.DCblj7qv.js","../chunks/index.DJYN40WT.js","../chunks/get-single-attribute-for-event.B37Av_rg.js","../chunks/decode-payload.BTpeWKqJ.js","../chunks/data-encoder.B_90sJUu.js","../chunks/import-events.Dljx0mMh.js","../chunks/toggle-buttons.Cubqph53.js","../assets/toggle-buttons.BT8Km5QO.css","../nodes/5.D7BgctVj.js","../chunks/search-attributes.C9oQpIly.js","../nodes/6.723kceAm.js","../nodes/7.BBnZN2fU.js","../chunks/workflows.BzgE0E1S.js","../chunks/encode-payload.BbGvULr4.js","../chunks/events-service.DFs0nrNV.js","../chunks/button.C_N-TSlx.js","../chunks/loading.BLsNkl8r.js","../chunks/workflow-terminate-enabled.B8WATLoM.js","../chunks/modal.DyMhWY1J.js","../assets/modal.BXOAXcdP.css","../chunks/option.Bt5AmPHo.js","../assets/option.BOa2BvWN.css","../chunks/payload-input-with-encoding.BapU-_VF.js","../chunks/card.DbXyfCsc.js","../assets/card.C1v2hj_B.css","../chunks/payload-input.BbQDy2Xg.js","../chunks/code-block.BkCXXL0z.js","../assets/payload-input.Br8XGAQp.css","../chunks/split-button.CWfYBMpf.js","../chunks/core-user.BxGCJ_SI.js","../chunks/workflow-create-disabled.Dpno7PTz.js","../chunks/workflow-status.4hwv3weu.js","../assets/workflow-status.B6OnKLss.css","../chunks/compatibility-badge.DuX1WIlP.js","../chunks/pollers-service.YXEUeA9H.js","../chunks/alert.nnKn2vnv.js","../assets/alert.BuYZJEBB.css","../chunks/index.Bde7eNxE.js","../chunks/tab.CpZOxof2.js","../assets/tab.C83jbgWp.css","../chunks/get-workflow-relationships.CLftvMta.js","../nodes/8.DMqgyztx.js","../nodes/9.Dy64mKZZ.js","../chunks/nexus-service.BPsrr5_T.js","../nodes/10.EIXLH7k9.js","../nodes/11.rbZzRztA.js","../nodes/12.DSRPizbx.js","../nodes/13.DW978geN.js","../nodes/14.BCP5k91W.js","../nodes/15.CTlFIzVM.js","../chunks/event-summary-table.Bjd71qae.js","../chunks/paginated.L2uilqIm.js","../chunks/filter-select.NIuiMMoD.js","../chunks/update-query-parameters.DVJ0yHKX.js","../assets/filter-select.CAwG4T2j.css","../chunks/pagination.BCeOU9Ta.js","../chunks/index.DfB8KN6E.js","../chunks/progress-bar.BQmuebCS.js","../assets/progress-bar.D978yvww.css","../assets/index.DxFrKVUC.css","../chunks/to-time-difference.ZrFqr6rH.js","../chunks/empty-state.BO9uOKUe.js","../chunks/payload-decoder.DlOPrRzg.js","../assets/event-summary-table.Dd3U297u.css","../nodes/16.DYm3t1OC.js","../nodes/17.cPOI0IGM.js","../chunks/workflow-json-navigator.D-VSmCkm.js","../assets/workflow-json-navigator.BX61Hysp.css","../nodes/18.DxrAxMVp.js","../chunks/pagination.Dxf-be3Z.js","../chunks/index.BVsZFann.js","../assets/index.C3RZBpNl.css","../assets/pagination.c98Vb7i2.css","../chunks/table.Cg5jABZi.js","../assets/table.ByDTm1mG.css","../nodes/19.CAKcRNTA.js","../nodes/20.BRKCESap.js","../chunks/filter-or-copy-buttons.DaW7N_eF.js","../assets/filter-or-copy-buttons.Dy7KKe4y.css","../chunks/tokenize.bmJ3_w3l.js","../chunks/index.i9NI_-YN.js","../assets/20.CzAJKgvx.css","../nodes/21.j3wmBe2Z.js","../chunks/await_block.BfN27BCg.js","../nodes/22.C9eoZ9Zn.js","../assets/22.CtpS311x.css","../nodes/23.CDwnffOj.js","../chunks/schedules.DZMegXhn.js","../chunks/index.CI5Z4Pgd.js","../chunks/translate.ncUacGRD.js","../chunks/time-picker.BvbblB8x.js","../assets/time-picker.Dt-MrnWC.css","../chunks/number-input.DL-aHAg2.js","../assets/number-input.CxQfs2q8.css","../assets/index.Wpkp0R14.css","../assets/23.DdeQs7xt.css","../nodes/24.CHw1Q09s.js","../chunks/schedule-frequency.SW9tPKxx.js","../chunks/workflow-counts.Bgc8s1JU.js","../assets/24.DdHqw_AR.css","../nodes/25.D4nY7nvZ.js","../chunks/schedule-form-view.BfrSFD2l.js","../chunks/add-search-attributes.B9SzC6V8.js","../assets/schedule-form-view.DPCA16YN.css","../nodes/26.CDQOaka1.js","../nodes/27.Dp65Nx7U.js","../nodes/28.7A7izdim.js","../chunks/worker-table.CpbGX-wq.js","../assets/28.CE0ywQI6.css","../nodes/29.7Vw4hMuw.js","../assets/29.Dk8mgxQy.css","../nodes/30.CqqTTHxo.js","../nodes/31.BWqwqGib.js","../nodes/32.pphDLbtv.js","../chunks/workflow-padded-layout.DTPWvpOw.js","../chunks/query-service.D3ysowbA.js","../nodes/33.D6UHv9eO.js","../assets/33.DBE2VVGW.css","../nodes/34.QysnXzBa.js","../nodes/35.CUqsp5ZR.js","../nodes/36.DjUbZSFv.js","../nodes/37.QysnXzBa.js","../nodes/38.QysnXzBa.js","../nodes/39.CpF36kwV.js","../nodes/40.BECBiniA.js","../assets/40.Bd6qRRkJ.css","../nodes/41.DUr9qQjS.js","../nodes/42.BFxLa9wr.js","../nodes/43.D9S71pAt.js","../nodes/44.CXjtdn97.js","../nodes/45.x1LiIHi-.js","../nodes/46.DUQthmfu.js","../assets/46.CkCvq2lE.css","../nodes/47.DdQhpBWt.js","../chunks/markdown.CpYkuk44.js","../nodes/48.BSUzc4rz.js","../chunks/nexus-form.BNYVknO-.js","../chunks/preload-helper.D6kgxu3v.js","../nodes/49.Bg4JBSA7.js","../nodes/50.DcnjwYSw.js","../assets/50.ByAjOMZR.css","../nodes/51.C7mbBFF_.js","../chunks/logo.DmG7EKIA.js","../assets/logo.DG0zzY6t.css","../nodes/52.C7mbBFF_.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); -import{_ as l}from"../chunks/preload-helper.D6kgxu3v.js";import{s as G,b as H,x as u,d as J,i as v,f as g,a4 as K,V as Q,h as W,j as X,k as Y,m as O,a2 as D,t as Z,l as x,q as ee,N as P,a5 as d,a6 as te}from"../chunks/scheduler.C46pS-76.js";import{S as re,i as ie,b as c,e as b,t as w,g as I,c as h,a as R,m as E,d as k}from"../chunks/index.dOVbn71B.js";const ve={};function ne(s){let e,r,o;var i=s[1][0];function p(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=d(i,p(s)),s[21](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&8&&(_.data=t[3]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][0])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[21](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[21](null),e&&k(e,t)}}}function oe(s){let e,r,o;var i=s[1][0];function p(t){return{props:{data:t[3],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[20](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&8&&(_.data=t[3]),n&4194551&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][0])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[20](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[20](null),e&&k(e,t)}}}function _e(s){let e,r,o;var i=s[1][1];function p(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=d(i,p(s)),s[19](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&16&&(_.data=t[4]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][1])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[19](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[19](null),e&&k(e,t)}}}function se(s){let e,r,o;var i=s[1][1];function p(t){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[18](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&16&&(_.data=t[4]),n&4194535&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][1])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[18](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[18](null),e&&k(e,t)}}}function ae(s){let e,r,o;var i=s[1][2];function p(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=d(i,p(s)),s[17](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&32&&(_.data=t[5]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][2])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[17](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[17](null),e&&k(e,t)}}}function le(s){let e,r,o;var i=s[1][2];function p(t){return{props:{data:t[5],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[16](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&32&&(_.data=t[5]),n&4194503&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][2])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[16](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[16](null),e&&k(e,t)}}}function fe(s){let e,r,o;var i=s[1][3];function p(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=d(i,p(s)),s[15](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&64&&(_.data=t[6]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][3])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[15](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[15](null),e&&k(e,t)}}}function pe(s){let e,r,o;var i=s[1][3];function p(t){return{props:{data:t[6],$$slots:{default:[me]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[14](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&64&&(_.data=t[6]),n&4194439&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][3])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[14](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[14](null),e&&k(e,t)}}}function me(s){let e,r,o;var i=s[1][4];function p(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=d(i,p(s)),s[13](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&128&&(_.data=t[7]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][4])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[13](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[13](null),e&&k(e,t)}}}function ue(s){let e,r,o,i;const p=[pe,fe],t=[];function n(_,a){return _[1][4]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function ce(s){let e,r,o,i;const p=[le,ae],t=[];function n(_,a){return _[1][3]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function we(s){let e,r,o,i;const p=[se,_e],t=[];function n(_,a){return _[1][2]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function N(s){let e,r=s[9]&&q(s);return{c(){e=W("div"),r&&r.c(),this.h()},l(o){e=X(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=Y(e);r&&r.l(i),i.forEach(g),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),D(e,"position","absolute"),D(e,"left","0"),D(e,"top","0"),D(e,"clip","rect(0 0 0 0)"),D(e,"clip-path","inset(50%)"),D(e,"overflow","hidden"),D(e,"white-space","nowrap"),D(e,"width","1px"),D(e,"height","1px")},m(o,i){v(o,e,i),r&&r.m(e,null)},p(o,i){o[9]?r?r.p(o,i):(r=q(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(o){o&&g(e),r&&r.d()}}}function q(s){let e;return{c(){e=Z(s[10])},l(r){e=x(r,s[10])},m(r,o){v(r,e,o)},p(r,o){o&1024&&ee(e,r[10])},d(r){r&&g(e)}}}function de(s){let e,r,o,i,p;const t=[oe,ne],n=[];function _(m,V){return m[1][1]?0:1}e=_(s),r=n[e]=t[e](s);let a=s[8]&&N(s);return{c(){r.c(),o=H(),a&&a.c(),i=u()},l(m){r.l(m),o=J(m),a&&a.l(m),i=u()},m(m,V){n[e].m(m,V),v(m,o,V),a&&a.m(m,V),v(m,i,V),p=!0},p(m,[V]){let A=e;e=_(m),e===A?n[e].p(m,V):(I(),c(n[A],1,1,()=>{n[A]=null}),b(),r=n[e],r?r.p(m,V):(r=n[e]=t[e](m),r.c()),w(r,1),r.m(o.parentNode,o)),m[8]?a?a.p(m,V):(a=N(m),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(m){p||(w(r),p=!0)},o(m){c(r),p=!1},d(m){m&&(g(o),g(i)),n[e].d(m),a&&a.d(m)}}}function he(s,e,r){let{stores:o}=e,{page:i}=e,{constructors:p}=e,{components:t=[]}=e,{form:n}=e,{data_0:_=null}=e,{data_1:a=null}=e,{data_2:m=null}=e,{data_3:V=null}=e,{data_4:A=null}=e;K(o.page.notify);let L=!1,T=!1,$=null;Q(()=>{const f=o.page.subscribe(()=>{L&&(r(9,T=!0),te().then(()=>{r(10,$=document.title||"untitled page")}))});return r(8,L=!0),f});function j(f){P[f?"unshift":"push"](()=>{t[4]=f,r(0,t)})}function y(f){P[f?"unshift":"push"](()=>{t[3]=f,r(0,t)})}function S(f){P[f?"unshift":"push"](()=>{t[3]=f,r(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[2]=f,r(0,t)})}function M(f){P[f?"unshift":"push"](()=>{t[2]=f,r(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[1]=f,r(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,r(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[0]=f,r(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[0]=f,r(0,t)})}return s.$$set=f=>{"stores"in f&&r(11,o=f.stores),"page"in f&&r(12,i=f.page),"constructors"in f&&r(1,p=f.constructors),"components"in f&&r(0,t=f.components),"form"in f&&r(2,n=f.form),"data_0"in f&&r(3,_=f.data_0),"data_1"in f&&r(4,a=f.data_1),"data_2"in f&&r(5,m=f.data_2),"data_3"in f&&r(6,V=f.data_3),"data_4"in f&&r(7,A=f.data_4)},s.$$.update=()=>{s.$$.dirty&6144&&o.page.set(i)},[t,p,n,_,a,m,V,A,L,T,$,o,i,j,y,S,C,M,U,z,B,F]}class be extends re{constructor(e){super(),ie(this,e,he,de,G,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Ie=[()=>l(()=>import("../nodes/0.BdxXJO8T.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>l(()=>import("../nodes/1.BhgCFllH.js"),__vite__mapDeps([5,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>l(()=>import("../nodes/2.BOq6cVGU.js"),__vite__mapDeps([21,22,9,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,30,31,32,33,34,35,4,36,37,12,38,39,15,13,40,41,1,42,43,44,45,46,47,48,49,50,51,11,16,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,10,72,73,74,75,76,77,78,20]),import.meta.url),()=>l(()=>import("../nodes/3.CALA-tyn.js"),__vite__mapDeps([79,3,4,6,7,8,9,80]),import.meta.url),()=>l(()=>import("../nodes/4.B3mgOWfd.js"),__vite__mapDeps([81,3,4,82,7,8,9,37,12,38,39,15,13,14,44,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,6,87,35,24,88,31,27,28,29,89,66,67,90]),import.meta.url),()=>l(()=>import("../nodes/5.D7BgctVj.js"),__vite__mapDeps([91,23,24,25,3,26,7,8,9,19,14,27,17,18,28,29,6,33,92,2,4]),import.meta.url),()=>l(()=>import("../nodes/6.723kceAm.js"),__vite__mapDeps([93,3,4,41,1]),import.meta.url),()=>l(()=>import("../nodes/7.BBnZN2fU.js"),__vite__mapDeps([94,3,4,6,7,8,9,48,44,12,15,49,41,1,50,26,19,14,17,51,11,13,16,37,38,39,52,27,36,53,54,55,95,23,24,25,18,28,29,76,86,87,35,33,77,84,61,62,74,73,96,64,97,32,98,99,40,42,100,101,57,58,46,102,43,45,47,59,60,103,56,104,105,106,107,108,109,66,67,110,111,112,113,114,115,116,117,118,119,120,121,122,31,123]),import.meta.url),()=>l(()=>import("../nodes/8.DMqgyztx.js"),__vite__mapDeps([124,3,4,6,7,8,9]),import.meta.url),()=>l(()=>import("../nodes/9.Dy64mKZZ.js"),__vite__mapDeps([125,126,19,14,23,24,25,3,26,7,8,9,27,17,18,28,29,6,86,87,41,1,50,35,4,10,11,12,13,15,16]),import.meta.url),()=>l(()=>import("../nodes/10.EIXLH7k9.js"),__vite__mapDeps([127,22,9,34,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,4,20]),import.meta.url),()=>l(()=>import("../nodes/11.rbZzRztA.js"),__vite__mapDeps([128,22,9,28,24,8,29,3,4,7,99,40,15,41,1,95,6,23,25,26,19,14,27,17,18,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31]),import.meta.url),()=>l(()=>import("../nodes/12.DSRPizbx.js"),__vite__mapDeps([129,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/13.DW978geN.js"),__vite__mapDeps([130,3,4,82,7,8,9,37,12,38,39,15,13,14,44,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,6,87,35,24,88,31,27,28,29,109,98,45,11,16]),import.meta.url),()=>l(()=>import("../nodes/14.BCP5k91W.js"),__vite__mapDeps([131,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/15.CTlFIzVM.js"),__vite__mapDeps([132,3,4,133,42,134,6,7,8,9,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,120,145,146,88]),import.meta.url),()=>l(()=>import("../nodes/16.DYm3t1OC.js"),__vite__mapDeps([147,3,4,133,42,134,6,7,8,9,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,120,145,146,88]),import.meta.url),()=>l(()=>import("../nodes/17.cPOI0IGM.js"),__vite__mapDeps([148,3,4,149,109,12,98,13,14,15,45,7,8,9,19,44,60,41,1,84,25,26,50,17,61,62,74,33,73,6,51,29,145,86,87,35,24,150,88]),import.meta.url),()=>l(()=>import("../nodes/18.DxrAxMVp.js"),__vite__mapDeps([151,3,4,42,6,7,8,9,80,144,13,12,14,11,15,16,152,135,136,44,137,153,154,138,155,156,140,141,157,41,1,31,26,19,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/19.CAKcRNTA.js"),__vite__mapDeps([158,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,4,42,80,39,38,15,106,107,156,12,140,141,157,41,1,92,77,62]),import.meta.url),()=>l(()=>import("../nodes/20.BRKCESap.js"),__vite__mapDeps([159,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,95,41,1,76,86,87,50,35,77,84,61,62,74,73,51,96,64,97,4,42,80,114,36,38,13,12,15,115,160,45,161,11,16,156,140,141,157,162,136,109,98,144,152,135,44,137,153,154,138,155,37,39,43,46,47,163,164]),import.meta.url),()=>l(()=>import("../nodes/21.j3wmBe2Z.js"),__vite__mapDeps([165,3,4,6,7,8,9,80,41,1,166,42,39,38,15,144,13,12,14,11,16,156,140,141,157,61,26,19,62,17,28,24,29,118,119,99,40,75,76,25,77,23,27,18,33]),import.meta.url),()=>l(()=>import("../nodes/22.C9eoZ9Zn.js"),__vite__mapDeps([167,3,4,6,7,8,9,80,41,1,166,61,26,19,14,62,17,39,38,15,49,44,12,66,13,67,75,76,25,77,23,24,27,18,28,29,33,106,107,11,16,168]),import.meta.url),()=>l(()=>import("../nodes/23.CDwnffOj.js"),__vite__mapDeps([169,3,4,6,7,8,9,80,42,41,1,95,23,24,25,26,19,14,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,170,114,36,38,13,12,15,115,11,16,171,37,39,138,92,172,163,173,57,58,43,44,45,46,47,89,66,67,90,174,162,136,56,59,60,53,54,103,104,69,70,175,176,31,177,118,119,144,99,40,135,137,139,140,141,142,112,178]),import.meta.url),()=>l(()=>import("../nodes/24.CHw1Q09s.js"),__vite__mapDeps([179,3,4,6,7,8,9,80,166,42,52,12,39,38,15,13,14,27,41,1,180,109,98,45,19,145,25,26,86,87,50,17,35,24,144,11,16,95,23,18,28,29,76,33,77,84,61,62,74,73,51,96,64,97,32,114,36,115,181,153,154,172,163,138,173,57,58,43,44,46,37,47,89,66,67,90,174,162,136,99,40,101,102,53,54,111,56,170,112,182]),import.meta.url),()=>l(()=>import("../nodes/25.D4nY7nvZ.js"),__vite__mapDeps([183,3,4,6,7,8,9,80,166,184,43,12,13,14,44,15,45,46,37,38,39,47,121,17,122,41,1,42,173,57,36,58,89,66,67,90,174,180,109,98,19,103,56,104,118,119,11,16,99,40,170,23,24,25,26,27,18,28,29,95,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,185,92,175,176,145,105,106,107,53,54,108,110,186]),import.meta.url),()=>l(()=>import("../nodes/26.CDQOaka1.js"),__vite__mapDeps([187,3,4,6,7,8,9,80,184,43,12,13,14,44,15,45,46,37,38,39,47,121,17,122,41,1,42,173,57,36,58,89,66,67,90,174,180,109,98,19,103,56,104,118,119,11,16,99,40,170,23,24,25,26,27,18,28,29,95,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,185,92,175,176,145,105,106,107,53,54,108,110,186]),import.meta.url),()=>l(()=>import("../nodes/27.Dp65Nx7U.js"),__vite__mapDeps([188,3,4]),import.meta.url),()=>l(()=>import("../nodes/28.7A7izdim.js"),__vite__mapDeps([189,3,4,6,7,8,9,80,166,190,42,39,38,15,144,13,12,14,156,140,141,157,41,1,25,26,19,27,61,62,17,121,122,117,23,24,18,28,29,116,153,154,191]),import.meta.url),()=>l(()=>import("../nodes/29.7Vw4hMuw.js"),__vite__mapDeps([192,3,4,6,7,8,9,80,101,12,37,38,39,15,13,14,57,36,58,46,102,41,1,172,62,17,163,138,173,42,43,44,45,47,89,66,67,90,174,95,23,24,25,26,19,27,18,28,29,76,86,87,50,35,33,77,84,61,74,73,51,96,64,97,32,162,136,75,53,54,100,171,92,56,59,60,103,104,114,115,69,70,175,176,31,177,49,181,153,154,118,119,11,16,99,40,134,135,137,139,140,141,142,160,161,112,113,193]),import.meta.url),()=>l(()=>import("../nodes/30.CqqTTHxo.js"),__vite__mapDeps([194,22,9,95,7,3,8,6,41,1,23,24,25,26,19,14,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32]),import.meta.url),()=>l(()=>import("../nodes/31.BWqwqGib.js"),__vite__mapDeps([195,22,9,3,4]),import.meta.url),()=>l(()=>import("../nodes/32.pphDLbtv.js"),__vite__mapDeps([196,3,4,6,7,8,9,80,41,1,197,166,118,12,13,14,15,119,37,38,39,109,98,45,19,144,11,16,99,40,198,86,87,25,26,50,17,35,24,23,27,18,28,29,51]),import.meta.url),()=>l(()=>import("../nodes/33.D6UHv9eO.js"),__vite__mapDeps([199,3,4,6,7,8,9,80,41,1,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,120,145,146,59,60,56,57,58,72,77,23,27,18,101,102,53,54,97,32,89,90,149,150,49,166,95,76,96,64,118,119,52,200]),import.meta.url),()=>l(()=>import("../nodes/34.QysnXzBa.js"),__vite__mapDeps([201,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/35.CUqsp5ZR.js"),__vite__mapDeps([202,3,4,6,7,8,9,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,120,145,146,97,32,23,27,18,123]),import.meta.url),()=>l(()=>import("../nodes/36.DjUbZSFv.js"),__vite__mapDeps([203,3,4,6,7,8,9,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,120,145,146,97,32,23,27,18]),import.meta.url),()=>l(()=>import("../nodes/37.QysnXzBa.js"),__vite__mapDeps([204,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/38.QysnXzBa.js"),__vite__mapDeps([205,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/39.CpF36kwV.js"),__vite__mapDeps([206,3,4,6,7,8,9,80,41,1,197,145,25,26,19,14,86,87,50,17,35,24,109,12,98,13,15,45,51]),import.meta.url),()=>l(()=>import("../nodes/40.BECBiniA.js"),__vite__mapDeps([207,3,4,6,7,8,9,80,41,1,197,42,39,38,15,109,12,98,13,14,45,19,144,11,16,156,140,141,157,66,67,61,26,62,17,51,143,63,85,84,25,50,74,33,86,87,35,24,208]),import.meta.url),()=>l(()=>import("../nodes/41.DUr9qQjS.js"),__vite__mapDeps([209,3,4,6,7,8,9,80,41,1,197,166,42,108,109,12,98,13,14,15,45,19,27,44,66,67,110,37,38,39,106,107,144,99,40,103,57,36,58,56,104,49,198,86,87,25,26,50,17,35,24,23,18,28,29,96,64]),import.meta.url),()=>l(()=>import("../nodes/42.BFxLa9wr.js"),__vite__mapDeps([210,3,4,6,7,8,9,80,42,11,12,13,14,15,16,152,135,136,44,137,153,154,138,155,156,140,141,157,41,1,28,24,29,114,36,38,115,95,23,25,26,19,27,17,18,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31,123,120,45,98,197]),import.meta.url),()=>l(()=>import("../nodes/43.D9S71pAt.js"),__vite__mapDeps([211,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/44.CXjtdn97.js"),__vite__mapDeps([212,3,4,6,7,8,9,80,41,1,197,190,42,39,38,15,144,13,12,14,156,140,141,157,25,26,19,27,61,62,17,11,16,28,24,29,51]),import.meta.url),()=>l(()=>import("../nodes/45.x1LiIHi-.js"),__vite__mapDeps([213,22,9,28,24,8,29,3,4,6,7,80,105,106,107,53,12,44,15,54,41,1,108,109,98,13,14,45,19,27,66,67,110,185,42,37,38,39,92,103,57,36,58,56,104,173,43,46,47,89,90,174,61,26,62,17,175,176,118,119,11,16,117,23,25,18,95,76,86,87,50,35,33,77,84,74,73,51,96,64,97,32,136,113,112]),import.meta.url),()=>l(()=>import("../nodes/46.DUQthmfu.js"),__vite__mapDeps([214,126,19,14,23,24,25,3,26,7,8,9,27,17,18,28,29,6,4,80,41,1,42,163,39,38,15,37,12,13,144,43,44,45,46,47,11,16,65,61,62,136,215]),import.meta.url),()=>l(()=>import("../nodes/47.DdQhpBWt.js"),__vite__mapDeps([216,3,4,6,7,8,9,80,41,1,42,37,12,38,39,15,13,14,120,45,98,11,16,217,65,26,19,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/48.BSUzc4rz.js"),__vite__mapDeps([218,3,4,7,8,9,6,80,41,1,37,12,38,39,15,13,14,43,44,45,46,47,11,16,101,57,36,58,102,219,118,119,68,42,59,60,69,70,66,67,71,220,65,26,19,217,89,90,28,24,29,126,23,25,27,17,18,31,96,87,50,64]),import.meta.url),()=>l(()=>import("../nodes/49.Bg4JBSA7.js"),__vite__mapDeps([221,3,4,7,8,9,6,80,41,1,37,12,38,39,15,13,14,11,16,219,118,119,68,42,59,60,44,57,36,58,69,70,66,67,71,43,45,46,47,220,65,26,19,217,89,90,28,24,29,126,23,25,27,17,18,31,96,87,50,64]),import.meta.url),()=>l(()=>import("../nodes/50.DcnjwYSw.js"),__vite__mapDeps([222,3,4,42,7,8,9,6,80,144,13,12,14,43,44,15,45,46,37,38,39,47,41,1,95,23,24,25,26,19,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31,223]),import.meta.url),()=>l(()=>import("../nodes/51.C7mbBFF_.js"),__vite__mapDeps([224,3,4,6,7,8,9,225,13,12,14,226,80,37,38,39,15,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/52.C7mbBFF_.js"),__vite__mapDeps([227,3,4,6,7,8,9,225,13,12,14,226,80,37,38,39,15,28,24,29]),import.meta.url)],Ve=[],De={"/(app)":[11,[2]],"/(app)/import":[12,[2,3]],"/(app)/import/events":[13,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[16,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[17,[2,3,4]],"/(login)/login":[51,[10]],"/(app)/namespaces":[18,[2]],"/(app)/namespaces/[namespace]":[19,[2,5]],"/(app)/namespaces/[namespace]/archival":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[21,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[26,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[25,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[27,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[28,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/start-workflow":[45,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[30,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/metadata":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[40,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[41,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/relationships":[42,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[43,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[44,[2,5,7]],"/(app)/nexus":[46,[2,8]],"/(app)/nexus/create":[49,[2,8]],"/(app)/nexus/[id]":[47,[2,8,9]],"/(app)/nexus/[id]/edit":[48,[2,8,9]],"/(app)/select-namespace":[50,[2]],"/(login)/signin":[52,[10]]},Pe={handleError:({error:s})=>{console.error(s)},reroute:()=>{}};export{De as dictionary,Pe as hooks,ve as matchers,Ie as nodes,be as root,Ve as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/app.DhqdLS7j.js b/ui/assets/local/_app/immutable/entry/app.DhqdLS7j.js new file mode 100644 index 000000000..0327b231c --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/app.DhqdLS7j.js @@ -0,0 +1,2 @@ +const __vite__fileDeps=["../nodes/0.BdxXJO8T.js","../chunks/i18next.DhwiOCyc.js","../chunks/layout.Co5naKTs.js","../chunks/scheduler.C46pS-76.js","../chunks/index.dOVbn71B.js","../nodes/1.C5LQnY0e.js","../chunks/stores.Ds4o9nwd.js","../chunks/entry.kylZibtV.js","../chunks/paths.C1CnfzR-.js","../chunks/control.CYgJF_JY.js","../chunks/error.CjC3VuFL.js","../chunks/link.C_v4aoat.js","../chunks/spread.CgU5AtxT.js","../chunks/icon.CfkHLDdJ.js","../chunks/_commonjsHelpers.Cpj98o6Y.js","../chunks/tw-merge.Ds6tgvmq.js","../assets/link.D2fkgxx0.css","../chunks/has.BWrERxPV.js","../chunks/is-network-error.Dq2Kfkkh.js","../chunks/parse-with-big-int.BKSBwM2t.js","../assets/app.C-Zoegwg.css","../nodes/2.gAdzXo33.js","../chunks/index.g5YcAAdQ.js","../chunks/route-for-api.DGDQNXtX.js","../chunks/prod-browser.CoG0geaG.js","../chunks/auth-user.CfsLeCYD.js","../chunks/persist-store.DeOEcwHN.js","../chunks/toaster.p5hsABhI.js","../chunks/route-for.B9fTWV7L.js","../chunks/encode-uri.BOkQ1rrX.js","../chunks/namespaces-service.CPFqCmJx.js","../chunks/namespaces.DEm0M_ie.js","../chunks/paginated.CfuFFT3F.js","../chunks/screaming-enums.w0zEi9dM.js","../chunks/settings-service.lqZRRkVY.js","../chunks/atob.ODDrCDK_.js","../chunks/index.mPGqfhEB.js","../chunks/button.hs88FdV4.js","../chunks/index.Bb4qSo10.js","../chunks/badge.jG5hkqHT.js","../chunks/logo.Ce1lSHm5.js","../chunks/translate.BBe5dcco.js","../chunks/each.C6O0oV7R.js","../chunks/input.Dizl7Mgk.js","../chunks/label.BlTcUXFh.js","../chunks/copy-to-clipboard.VBIGxkFt.js","../chunks/icon-button.BoA3mGH0.js","../assets/input.b3fFufxq.css","../chunks/data-encoder-settings.2-uv_2-b.js","../chunks/toggle-switch.C9lxIG0w.js","../chunks/data-encoder-config.BAPO1ve2.js","../chunks/workflow-run.CoKQBOG_.js","../chunks/accordion.B8FZU59C.js","../chunks/radio-input.OzdV2p8V.js","../assets/radio-input.DKF9ou3a.css","../assets/data-encoder-settings.PofgkyHB.css","../chunks/menu-button.DYcE3c8N.js","../chunks/menu.B3Snjx4c.js","../assets/menu.DYkBWUeZ.css","../chunks/checkbox.CZ5w22eC.js","../chunks/omit.C8ejR22J.js","../chunks/time-format.BLKgLEx9.js","../chunks/format-time.6TuExJAg.js","../chunks/format-camel-case.ByTIZu23.js","../chunks/data-encoder.XIVVN3o2.js","../chunks/dark-mode.BvUzLjRz.js","../chunks/tooltip.D2lOlqUw.js","../assets/tooltip.CtW_a8tz.css","../chunks/combobox.BZAKUnsN.js","../chunks/chip.jHqj-PnK.js","../assets/chip.BPx0qQXX.css","../assets/combobox.D7Obbm9F.css","../chunks/active-events.hFekhesG.js","../chunks/events.CbhKe7Ai.js","../chunks/get-event-categorization.BzHsmJUX.js","../chunks/batch-operations.D8oOXKtp.js","../chunks/workflow-actions.TBME1SPK.js","../chunks/versions.BSCVnN4z.js","../assets/2.BElXW6Qh.css","../nodes/3.DPtmlwhS.js","../chunks/page-title.DNhqE1Lj.js","../nodes/4.9j4L6jmF.js","../chunks/event-history-file-import.BWMNMNHv.js","../chunks/index.B7_EN-g2.js","../chunks/index.lRK1fBz3.js","../chunks/get-single-attribute-for-event.C6hE5al8.js","../chunks/decode-payload.CR1Tto5x.js","../chunks/data-encoder.CsUWoJ2q.js","../chunks/import-events.CEl85Dnc.js","../chunks/toggle-buttons.cS3NnOtm.js","../assets/toggle-buttons.BT8Km5QO.css","../nodes/5.gTk0G_dj.js","../chunks/search-attributes.Dmice2E5.js","../nodes/6.723kceAm.js","../nodes/7.BQkJzEIm.js","../chunks/workflows.Cse8qlOg.js","../chunks/encode-payload.DnXS3ERP.js","../chunks/events-service.BZohXMj_.js","../chunks/button.C_N-TSlx.js","../chunks/loading.BLsNkl8r.js","../chunks/workflow-terminate-enabled.5VU8mX4o.js","../chunks/modal.BxyQo5_L.js","../assets/modal.BXOAXcdP.css","../chunks/option.BuKObSE0.js","../assets/option.BOa2BvWN.css","../chunks/payload-input-with-encoding.CjdKAmav.js","../chunks/card.DbXyfCsc.js","../assets/card.C1v2hj_B.css","../chunks/payload-input.BCsK9YCY.js","../chunks/code-block.DGWayI9q.js","../assets/payload-input.Br8XGAQp.css","../chunks/split-button.70FZ_ydj.js","../chunks/core-user.DrkCNXj3.js","../chunks/workflow-create-disabled.BovVEcSd.js","../chunks/workflow-status.4hwv3weu.js","../assets/workflow-status.B6OnKLss.css","../chunks/compatibility-badge.DuX1WIlP.js","../chunks/pollers-service.BcPp2B7I.js","../chunks/alert.nnKn2vnv.js","../assets/alert.BuYZJEBB.css","../chunks/index.Nss_n040.js","../chunks/tab.y0H1rcBf.js","../assets/tab.C83jbgWp.css","../chunks/get-workflow-relationships.CLftvMta.js","../nodes/8.Dyn-TH2r.js","../nodes/9.Dki_NxDW.js","../chunks/nexus-service.CnR3KXfY.js","../nodes/10.CRr1YwQ1.js","../nodes/11.BBIfjXhP.js","../nodes/12.BZ18BAHA.js","../nodes/13.mVbeR_sr.js","../nodes/14.D1uml7DU.js","../nodes/15.LwWhC-sc.js","../chunks/event-summary-table.BGH464r2.js","../chunks/paginated.CcIszT9D.js","../chunks/filter-select.Cuzm5_PX.js","../chunks/update-query-parameters.DTvdkkGj.js","../assets/filter-select.CAwG4T2j.css","../chunks/pagination.B2FxfgZG.js","../chunks/index.DfB8KN6E.js","../chunks/progress-bar.BQmuebCS.js","../assets/progress-bar.D978yvww.css","../assets/index.DxFrKVUC.css","../chunks/to-time-difference.l4Q9xnPU.js","../chunks/empty-state.BO9uOKUe.js","../chunks/payload-decoder.C_mCVVdL.js","../assets/event-summary-table.BaNA1EhH.css","../nodes/16.KQoNOEjE.js","../nodes/17.hkGt17IV.js","../chunks/workflow-json-navigator.sqiRvlQE.js","../assets/workflow-json-navigator.BX61Hysp.css","../nodes/18.CLYvwiyG.js","../chunks/pagination.1KQhGwzN.js","../chunks/index.BVsZFann.js","../assets/index.C3RZBpNl.css","../assets/pagination.c98Vb7i2.css","../chunks/table.Cg5jABZi.js","../assets/table.ByDTm1mG.css","../nodes/19.DstKIVrK.js","../nodes/20.zy3apo8s.js","../chunks/filter-or-copy-buttons.CemQB_H1.js","../assets/filter-or-copy-buttons.Dy7KKe4y.css","../chunks/tokenize.bmJ3_w3l.js","../chunks/index.i9NI_-YN.js","../assets/20.CzAJKgvx.css","../nodes/21.BqvboFmv.js","../chunks/await_block.BfN27BCg.js","../nodes/22.B_C6GDmb.js","../assets/22.CtpS311x.css","../nodes/23.BP9LTO0G.js","../chunks/schedules.BI2Sbv1C.js","../chunks/index.B3hS-irb.js","../chunks/translate.9wzy45oZ.js","../chunks/time-picker.G0x2sfcZ.js","../assets/time-picker.Dt-MrnWC.css","../chunks/number-input.DL-aHAg2.js","../assets/number-input.CxQfs2q8.css","../assets/index.Wpkp0R14.css","../assets/23.ZlWIrbKZ.css","../nodes/24.k7h2mvTa.js","../chunks/schedule-frequency.Bpvyfzre.js","../chunks/workflow-counts.D3FzL32z.js","../assets/24.DdHqw_AR.css","../nodes/25.CRXnl26E.js","../chunks/schedule-form-view.Sl7Y_1Oq.js","../chunks/add-search-attributes.Bb3B2Swh.js","../assets/schedule-form-view.DPCA16YN.css","../nodes/26.BjioyYdH.js","../nodes/27.Dp65Nx7U.js","../nodes/28.CktOawpV.js","../chunks/worker-table.BTld4JO6.js","../assets/28.CE0ywQI6.css","../nodes/29.C5VU778x.js","../assets/29.Dk8mgxQy.css","../nodes/30.BrN2lZKQ.js","../nodes/31.BWqwqGib.js","../nodes/32.CbjV9l1U.js","../chunks/workflow-padded-layout.DTPWvpOw.js","../chunks/query-service.BpCb13SU.js","../nodes/33.CAfZbG17.js","../assets/33.DBE2VVGW.css","../nodes/34.CmRhJUwi.js","../nodes/35.Cmq5uW0_.js","../nodes/36.BZuxtmh0.js","../nodes/37.CmRhJUwi.js","../nodes/38.CmRhJUwi.js","../nodes/39.CaeGOORd.js","../nodes/40.DQDnGBWV.js","../assets/40.Bd6qRRkJ.css","../nodes/41.C6rfCHSE.js","../nodes/42.CHGs0HHm.js","../nodes/43.DqmIkYfr.js","../nodes/44.D60ZzcQ_.js","../nodes/45.B-TLuIb4.js","../nodes/46.DgUopdD6.js","../assets/46.CkCvq2lE.css","../nodes/47.heQt60Vb.js","../chunks/markdown.BEeC1bWs.js","../nodes/48.nRDxtd1K.js","../chunks/nexus-form.sJTgAfD6.js","../chunks/preload-helper.D6kgxu3v.js","../nodes/49.BtaIZfCW.js","../nodes/50.Ct-GzfE8.js","../assets/50.ByAjOMZR.css","../nodes/51.wAEGmlDx.js","../chunks/logo.UJexZLaa.js","../assets/logo.DG0zzY6t.css","../nodes/52.wAEGmlDx.js"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); +import{_ as l}from"../chunks/preload-helper.D6kgxu3v.js";import{s as G,b as H,x as u,d as J,i as v,f as g,a4 as K,V as Q,h as W,j as X,k as Y,m as O,a2 as D,t as Z,l as x,q as ee,N as P,a5 as d,a6 as te}from"../chunks/scheduler.C46pS-76.js";import{S as re,i as ie,b as c,e as b,t as w,g as I,c as h,a as R,m as E,d as k}from"../chunks/index.dOVbn71B.js";const ve={};function ne(s){let e,r,o;var i=s[1][0];function p(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=d(i,p(s)),s[21](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&8&&(_.data=t[3]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][0])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[21](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[21](null),e&&k(e,t)}}}function oe(s){let e,r,o;var i=s[1][0];function p(t){return{props:{data:t[3],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[20](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&8&&(_.data=t[3]),n&4194551&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][0])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[20](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[20](null),e&&k(e,t)}}}function _e(s){let e,r,o;var i=s[1][1];function p(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=d(i,p(s)),s[19](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&16&&(_.data=t[4]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][1])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[19](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[19](null),e&&k(e,t)}}}function se(s){let e,r,o;var i=s[1][1];function p(t){return{props:{data:t[4],$$slots:{default:[ce]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[18](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&16&&(_.data=t[4]),n&4194535&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][1])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[18](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[18](null),e&&k(e,t)}}}function ae(s){let e,r,o;var i=s[1][2];function p(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=d(i,p(s)),s[17](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&32&&(_.data=t[5]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][2])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[17](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[17](null),e&&k(e,t)}}}function le(s){let e,r,o;var i=s[1][2];function p(t){return{props:{data:t[5],$$slots:{default:[ue]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[16](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&32&&(_.data=t[5]),n&4194503&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][2])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[16](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[16](null),e&&k(e,t)}}}function fe(s){let e,r,o;var i=s[1][3];function p(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=d(i,p(s)),s[15](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&64&&(_.data=t[6]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][3])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[15](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[15](null),e&&k(e,t)}}}function pe(s){let e,r,o;var i=s[1][3];function p(t){return{props:{data:t[6],$$slots:{default:[me]},$$scope:{ctx:t}}}}return i&&(e=d(i,p(s)),s[14](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&64&&(_.data=t[6]),n&4194439&&(_.$$scope={dirty:n,ctx:t}),n&2&&i!==(i=t[1][3])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[14](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[14](null),e&&k(e,t)}}}function me(s){let e,r,o;var i=s[1][4];function p(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=d(i,p(s)),s[13](e)),{c(){e&&h(e.$$.fragment),r=u()},l(t){e&&R(e.$$.fragment,t),r=u()},m(t,n){e&&E(e,t,n),v(t,r,n),o=!0},p(t,n){const _={};if(n&128&&(_.data=t[7]),n&4&&(_.form=t[2]),n&2&&i!==(i=t[1][4])){if(e){I();const a=e;c(a.$$.fragment,1,0,()=>{k(a,1)}),b()}i?(e=d(i,p(t)),t[13](e),h(e.$$.fragment),w(e.$$.fragment,1),E(e,r.parentNode,r)):e=null}else i&&e.$set(_)},i(t){o||(e&&w(e.$$.fragment,t),o=!0)},o(t){e&&c(e.$$.fragment,t),o=!1},d(t){t&&g(r),s[13](null),e&&k(e,t)}}}function ue(s){let e,r,o,i;const p=[pe,fe],t=[];function n(_,a){return _[1][4]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function ce(s){let e,r,o,i;const p=[le,ae],t=[];function n(_,a){return _[1][3]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function we(s){let e,r,o,i;const p=[se,_e],t=[];function n(_,a){return _[1][2]?0:1}return e=n(s),r=t[e]=p[e](s),{c(){r.c(),o=u()},l(_){r.l(_),o=u()},m(_,a){t[e].m(_,a),v(_,o,a),i=!0},p(_,a){let m=e;e=n(_),e===m?t[e].p(_,a):(I(),c(t[m],1,1,()=>{t[m]=null}),b(),r=t[e],r?r.p(_,a):(r=t[e]=p[e](_),r.c()),w(r,1),r.m(o.parentNode,o))},i(_){i||(w(r),i=!0)},o(_){c(r),i=!1},d(_){_&&g(o),t[e].d(_)}}}function N(s){let e,r=s[9]&&q(s);return{c(){e=W("div"),r&&r.c(),this.h()},l(o){e=X(o,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=Y(e);r&&r.l(i),i.forEach(g),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),D(e,"position","absolute"),D(e,"left","0"),D(e,"top","0"),D(e,"clip","rect(0 0 0 0)"),D(e,"clip-path","inset(50%)"),D(e,"overflow","hidden"),D(e,"white-space","nowrap"),D(e,"width","1px"),D(e,"height","1px")},m(o,i){v(o,e,i),r&&r.m(e,null)},p(o,i){o[9]?r?r.p(o,i):(r=q(o),r.c(),r.m(e,null)):r&&(r.d(1),r=null)},d(o){o&&g(e),r&&r.d()}}}function q(s){let e;return{c(){e=Z(s[10])},l(r){e=x(r,s[10])},m(r,o){v(r,e,o)},p(r,o){o&1024&&ee(e,r[10])},d(r){r&&g(e)}}}function de(s){let e,r,o,i,p;const t=[oe,ne],n=[];function _(m,V){return m[1][1]?0:1}e=_(s),r=n[e]=t[e](s);let a=s[8]&&N(s);return{c(){r.c(),o=H(),a&&a.c(),i=u()},l(m){r.l(m),o=J(m),a&&a.l(m),i=u()},m(m,V){n[e].m(m,V),v(m,o,V),a&&a.m(m,V),v(m,i,V),p=!0},p(m,[V]){let A=e;e=_(m),e===A?n[e].p(m,V):(I(),c(n[A],1,1,()=>{n[A]=null}),b(),r=n[e],r?r.p(m,V):(r=n[e]=t[e](m),r.c()),w(r,1),r.m(o.parentNode,o)),m[8]?a?a.p(m,V):(a=N(m),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(m){p||(w(r),p=!0)},o(m){c(r),p=!1},d(m){m&&(g(o),g(i)),n[e].d(m),a&&a.d(m)}}}function he(s,e,r){let{stores:o}=e,{page:i}=e,{constructors:p}=e,{components:t=[]}=e,{form:n}=e,{data_0:_=null}=e,{data_1:a=null}=e,{data_2:m=null}=e,{data_3:V=null}=e,{data_4:A=null}=e;K(o.page.notify);let L=!1,T=!1,$=null;Q(()=>{const f=o.page.subscribe(()=>{L&&(r(9,T=!0),te().then(()=>{r(10,$=document.title||"untitled page")}))});return r(8,L=!0),f});function j(f){P[f?"unshift":"push"](()=>{t[4]=f,r(0,t)})}function y(f){P[f?"unshift":"push"](()=>{t[3]=f,r(0,t)})}function S(f){P[f?"unshift":"push"](()=>{t[3]=f,r(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[2]=f,r(0,t)})}function M(f){P[f?"unshift":"push"](()=>{t[2]=f,r(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[1]=f,r(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,r(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[0]=f,r(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[0]=f,r(0,t)})}return s.$$set=f=>{"stores"in f&&r(11,o=f.stores),"page"in f&&r(12,i=f.page),"constructors"in f&&r(1,p=f.constructors),"components"in f&&r(0,t=f.components),"form"in f&&r(2,n=f.form),"data_0"in f&&r(3,_=f.data_0),"data_1"in f&&r(4,a=f.data_1),"data_2"in f&&r(5,m=f.data_2),"data_3"in f&&r(6,V=f.data_3),"data_4"in f&&r(7,A=f.data_4)},s.$$.update=()=>{s.$$.dirty&6144&&o.page.set(i)},[t,p,n,_,a,m,V,A,L,T,$,o,i,j,y,S,C,M,U,z,B,F]}class be extends re{constructor(e){super(),ie(this,e,he,de,G,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Ie=[()=>l(()=>import("../nodes/0.BdxXJO8T.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),()=>l(()=>import("../nodes/1.C5LQnY0e.js"),__vite__mapDeps([5,3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),()=>l(()=>import("../nodes/2.gAdzXo33.js"),__vite__mapDeps([21,22,9,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,30,31,32,33,34,35,4,36,37,12,38,39,15,13,40,41,1,42,43,44,45,46,47,48,49,50,51,11,16,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,10,72,73,74,75,76,77,78,20]),import.meta.url),()=>l(()=>import("../nodes/3.DPtmlwhS.js"),__vite__mapDeps([79,3,4,6,7,8,9,80]),import.meta.url),()=>l(()=>import("../nodes/4.9j4L6jmF.js"),__vite__mapDeps([81,3,4,82,7,8,9,37,12,38,39,15,13,14,44,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,6,87,35,24,88,31,27,28,29,89,66,67,90]),import.meta.url),()=>l(()=>import("../nodes/5.gTk0G_dj.js"),__vite__mapDeps([91,23,24,25,3,26,7,8,9,19,14,27,17,18,28,29,6,33,92,2,4]),import.meta.url),()=>l(()=>import("../nodes/6.723kceAm.js"),__vite__mapDeps([93,3,4,41,1]),import.meta.url),()=>l(()=>import("../nodes/7.BQkJzEIm.js"),__vite__mapDeps([94,3,4,6,7,8,9,48,44,12,15,49,41,1,50,26,19,14,17,51,11,13,16,37,38,39,52,27,36,53,54,55,95,23,24,25,18,28,29,76,86,87,35,33,77,84,61,62,74,73,96,64,97,32,98,99,40,42,100,101,57,58,46,102,43,45,47,59,60,103,56,104,105,106,107,108,109,65,66,67,110,111,112,113,114,115,116,117,118,119,120,121,122,31,123]),import.meta.url),()=>l(()=>import("../nodes/8.Dyn-TH2r.js"),__vite__mapDeps([124,3,4,6,7,8,9]),import.meta.url),()=>l(()=>import("../nodes/9.Dki_NxDW.js"),__vite__mapDeps([125,126,19,14,23,24,25,3,26,7,8,9,27,17,18,28,29,6,86,87,41,1,50,35,4,10,11,12,13,15,16]),import.meta.url),()=>l(()=>import("../nodes/10.CRr1YwQ1.js"),__vite__mapDeps([127,22,9,34,23,24,25,3,26,7,8,19,14,27,17,18,28,29,6,4,20]),import.meta.url),()=>l(()=>import("../nodes/11.BBIfjXhP.js"),__vite__mapDeps([128,22,9,28,24,8,29,3,4,7,99,40,15,41,1,95,6,23,25,26,19,14,27,17,18,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31]),import.meta.url),()=>l(()=>import("../nodes/12.BZ18BAHA.js"),__vite__mapDeps([129,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/13.mVbeR_sr.js"),__vite__mapDeps([130,3,4,82,7,8,9,37,12,38,39,15,13,14,44,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,6,87,35,24,88,31,27,28,29,109,98,45,65,11,16]),import.meta.url),()=>l(()=>import("../nodes/14.D1uml7DU.js"),__vite__mapDeps([131,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/15.LwWhC-sc.js"),__vite__mapDeps([132,3,4,133,42,134,6,7,8,9,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,65,120,145,146,88]),import.meta.url),()=>l(()=>import("../nodes/16.KQoNOEjE.js"),__vite__mapDeps([147,3,4,133,42,134,6,7,8,9,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,65,120,145,146,88]),import.meta.url),()=>l(()=>import("../nodes/17.hkGt17IV.js"),__vite__mapDeps([148,3,4,149,109,12,98,13,14,15,45,7,8,9,65,26,19,44,60,41,1,84,25,50,17,61,62,74,33,73,6,51,29,145,86,87,35,24,150,88]),import.meta.url),()=>l(()=>import("../nodes/18.CLYvwiyG.js"),__vite__mapDeps([151,3,4,42,6,7,8,9,80,144,13,12,14,11,15,16,152,135,136,44,137,153,154,138,155,156,140,141,157,41,1,31,26,19,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/19.DstKIVrK.js"),__vite__mapDeps([158,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,4,42,80,39,38,15,106,107,156,12,140,141,157,41,1,92,77,62]),import.meta.url),()=>l(()=>import("../nodes/20.zy3apo8s.js"),__vite__mapDeps([159,30,31,7,3,8,9,26,19,14,27,32,23,24,25,17,18,28,29,6,33,95,41,1,76,86,87,50,35,77,84,61,62,74,73,51,96,64,97,4,42,80,114,36,38,13,12,15,115,160,45,161,11,16,156,140,141,157,162,136,109,98,65,144,152,135,44,137,153,154,138,155,37,39,43,46,47,163,164]),import.meta.url),()=>l(()=>import("../nodes/21.BqvboFmv.js"),__vite__mapDeps([165,3,4,6,7,8,9,80,41,1,166,42,39,38,15,144,13,12,14,11,16,156,140,141,157,61,26,19,62,17,28,24,29,118,119,99,40,75,76,25,77,23,27,18,33]),import.meta.url),()=>l(()=>import("../nodes/22.B_C6GDmb.js"),__vite__mapDeps([167,3,4,6,7,8,9,80,41,1,166,61,26,19,14,62,17,39,38,15,49,44,12,66,13,67,75,76,25,77,23,24,27,18,28,29,33,106,107,11,16,168]),import.meta.url),()=>l(()=>import("../nodes/23.BP9LTO0G.js"),__vite__mapDeps([169,3,4,6,7,8,9,80,42,41,1,95,23,24,25,26,19,14,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,170,114,36,38,13,12,15,115,11,16,171,37,39,138,92,172,163,173,57,58,43,44,45,46,47,89,66,67,90,174,162,136,56,59,60,53,54,103,104,69,70,175,176,31,177,118,119,144,99,40,135,137,139,140,141,142,112,178]),import.meta.url),()=>l(()=>import("../nodes/24.k7h2mvTa.js"),__vite__mapDeps([179,3,4,6,7,8,9,80,166,42,52,12,39,38,15,13,14,27,41,1,180,109,98,45,65,26,19,145,25,86,87,50,17,35,24,144,11,16,95,23,18,28,29,76,33,77,84,61,62,74,73,51,96,64,97,32,114,36,115,181,153,154,172,163,138,173,57,58,43,44,46,37,47,89,66,67,90,174,162,136,99,40,101,102,53,54,111,56,170,112,182]),import.meta.url),()=>l(()=>import("../nodes/25.CRXnl26E.js"),__vite__mapDeps([183,3,4,6,7,8,9,80,166,184,43,12,13,14,44,15,45,46,37,38,39,47,121,17,122,41,1,42,173,57,36,58,89,66,67,90,174,180,109,98,65,26,19,103,56,104,118,119,11,16,99,40,170,23,24,25,27,18,28,29,95,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,185,92,175,176,145,105,106,107,53,54,108,110,186]),import.meta.url),()=>l(()=>import("../nodes/26.BjioyYdH.js"),__vite__mapDeps([187,3,4,6,7,8,9,80,184,43,12,13,14,44,15,45,46,37,38,39,47,121,17,122,41,1,42,173,57,36,58,89,66,67,90,174,180,109,98,65,26,19,103,56,104,118,119,11,16,99,40,170,23,24,25,27,18,28,29,95,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,185,92,175,176,145,105,106,107,53,54,108,110,186]),import.meta.url),()=>l(()=>import("../nodes/27.Dp65Nx7U.js"),__vite__mapDeps([188,3,4]),import.meta.url),()=>l(()=>import("../nodes/28.CktOawpV.js"),__vite__mapDeps([189,3,4,6,7,8,9,80,166,190,42,39,38,15,144,13,12,14,156,140,141,157,41,1,25,26,19,27,61,62,17,121,122,117,23,24,18,28,29,116,153,154,191]),import.meta.url),()=>l(()=>import("../nodes/29.C5VU778x.js"),__vite__mapDeps([192,3,4,6,7,8,9,80,101,12,37,38,39,15,13,14,57,36,58,46,102,41,1,172,62,17,163,138,173,42,43,44,45,47,89,66,67,90,174,95,23,24,25,26,19,27,18,28,29,76,86,87,50,35,33,77,84,61,74,73,51,96,64,97,32,162,136,75,53,54,100,171,92,56,59,60,103,104,114,115,69,70,175,176,31,177,49,181,153,154,118,119,11,16,99,40,134,135,137,139,140,141,142,160,161,112,113,193]),import.meta.url),()=>l(()=>import("../nodes/30.BrN2lZKQ.js"),__vite__mapDeps([194,22,9,95,7,3,8,6,41,1,23,24,25,26,19,14,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32]),import.meta.url),()=>l(()=>import("../nodes/31.BWqwqGib.js"),__vite__mapDeps([195,22,9,3,4]),import.meta.url),()=>l(()=>import("../nodes/32.CbjV9l1U.js"),__vite__mapDeps([196,3,4,6,7,8,9,80,41,1,197,166,118,12,13,14,15,119,37,38,39,109,98,45,65,26,19,144,11,16,99,40,198,86,87,25,50,17,35,24,23,27,18,28,29,51]),import.meta.url),()=>l(()=>import("../nodes/33.CAfZbG17.js"),__vite__mapDeps([199,3,4,6,7,8,9,80,41,1,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,65,120,145,146,59,60,56,57,58,72,77,23,27,18,101,102,53,54,97,32,89,90,149,150,49,166,95,76,96,64,118,119,52,200]),import.meta.url),()=>l(()=>import("../nodes/34.CmRhJUwi.js"),__vite__mapDeps([201,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/35.Cmq5uW0_.js"),__vite__mapDeps([202,3,4,6,7,8,9,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,65,120,145,146,97,32,23,27,18,123]),import.meta.url),()=>l(()=>import("../nodes/36.BZuxtmh0.js"),__vite__mapDeps([203,3,4,6,7,8,9,133,42,134,37,12,38,39,15,13,14,46,135,136,44,137,138,139,140,141,142,41,1,83,17,74,84,25,26,19,50,61,62,33,85,63,86,87,35,24,73,51,29,143,144,99,40,36,11,16,66,67,28,109,98,45,65,120,145,146,97,32,23,27,18]),import.meta.url),()=>l(()=>import("../nodes/37.CmRhJUwi.js"),__vite__mapDeps([204,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/38.CmRhJUwi.js"),__vite__mapDeps([205,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/39.CaeGOORd.js"),__vite__mapDeps([206,3,4,6,7,8,9,80,41,1,197,145,25,26,19,14,86,87,50,17,35,24,109,12,98,13,15,45,65,51]),import.meta.url),()=>l(()=>import("../nodes/40.DQDnGBWV.js"),__vite__mapDeps([207,3,4,6,7,8,9,80,41,1,197,42,39,38,15,109,12,98,13,14,45,65,26,19,144,11,16,156,140,141,157,66,67,61,62,17,51,143,63,85,84,25,50,74,33,86,87,35,24,208]),import.meta.url),()=>l(()=>import("../nodes/41.C6rfCHSE.js"),__vite__mapDeps([209,3,4,6,7,8,9,80,41,1,197,166,42,108,109,12,98,13,14,15,45,65,26,19,27,44,66,67,110,37,38,39,106,107,144,99,40,103,57,36,58,56,104,49,198,86,87,25,50,17,35,24,23,18,28,29,96,64]),import.meta.url),()=>l(()=>import("../nodes/42.CHGs0HHm.js"),__vite__mapDeps([210,3,4,6,7,8,9,80,42,11,12,13,14,15,16,152,135,136,44,137,153,154,138,155,156,140,141,157,41,1,28,24,29,114,36,38,115,95,23,25,26,19,27,17,18,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31,123,120,45,98,197]),import.meta.url),()=>l(()=>import("../nodes/43.DqmIkYfr.js"),__vite__mapDeps([211,22,9,28,24,8,29]),import.meta.url),()=>l(()=>import("../nodes/44.D60ZzcQ_.js"),__vite__mapDeps([212,3,4,6,7,8,9,80,41,1,197,190,42,39,38,15,144,13,12,14,156,140,141,157,25,26,19,27,61,62,17,11,16,28,24,29,51]),import.meta.url),()=>l(()=>import("../nodes/45.B-TLuIb4.js"),__vite__mapDeps([213,22,9,28,24,8,29,3,4,6,7,80,105,106,107,53,12,44,15,54,41,1,108,109,98,13,14,45,65,26,19,27,66,67,110,185,42,37,38,39,92,103,57,36,58,56,104,173,43,46,47,89,90,174,61,62,17,175,176,118,119,11,16,117,23,25,18,95,76,86,87,50,35,33,77,84,74,73,51,96,64,97,32,136,113,112]),import.meta.url),()=>l(()=>import("../nodes/46.DgUopdD6.js"),__vite__mapDeps([214,126,19,14,23,24,25,3,26,7,8,9,27,17,18,28,29,6,4,80,41,1,42,163,39,38,15,37,12,13,144,43,44,45,46,47,11,16,65,61,62,136,215]),import.meta.url),()=>l(()=>import("../nodes/47.heQt60Vb.js"),__vite__mapDeps([216,3,4,6,7,8,9,80,41,1,42,37,12,38,39,15,13,14,120,45,98,11,16,217,65,26,19,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/48.nRDxtd1K.js"),__vite__mapDeps([218,3,4,7,8,9,6,80,41,1,37,12,38,39,15,13,14,43,44,45,46,47,11,16,101,57,36,58,102,219,118,119,68,42,59,60,69,70,66,67,71,220,65,26,19,217,89,90,28,24,29,126,23,25,27,17,18,31,96,87,50,64]),import.meta.url),()=>l(()=>import("../nodes/49.BtaIZfCW.js"),__vite__mapDeps([221,3,4,7,8,9,6,80,41,1,37,12,38,39,15,13,14,11,16,219,118,119,68,42,59,60,44,57,36,58,69,70,66,67,71,43,45,46,47,220,65,26,19,217,89,90,28,24,29,126,23,25,27,17,18,31,96,87,50,64]),import.meta.url),()=>l(()=>import("../nodes/50.Ct-GzfE8.js"),__vite__mapDeps([222,3,4,42,7,8,9,6,80,144,13,12,14,43,44,15,45,46,37,38,39,47,41,1,95,23,24,25,26,19,27,17,18,28,29,76,86,87,50,35,33,77,84,61,62,74,73,51,96,64,97,32,31,223]),import.meta.url),()=>l(()=>import("../nodes/51.wAEGmlDx.js"),__vite__mapDeps([224,3,4,6,7,8,9,225,13,12,14,226,80,37,38,39,15,28,24,29]),import.meta.url),()=>l(()=>import("../nodes/52.wAEGmlDx.js"),__vite__mapDeps([227,3,4,6,7,8,9,225,13,12,14,226,80,37,38,39,15,28,24,29]),import.meta.url)],Ve=[],De={"/(app)":[11,[2]],"/(app)/import":[12,[2,3]],"/(app)/import/events":[13,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[16,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[17,[2,3,4]],"/(login)/login":[51,[10]],"/(app)/namespaces":[18,[2]],"/(app)/namespaces/[namespace]":[19,[2,5]],"/(app)/namespaces/[namespace]/archival":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[21,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[26,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[24,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[25,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[27,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[28,[2,5,6]],"/(app)/namespaces/[namespace]/workflows":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/start-workflow":[45,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[30,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[31,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/call-stack":[32,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[33,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[34,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/event-groups/[id]":[35,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/events/[id]":[36,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[37,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[38,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/metadata":[39,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[40,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[41,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/relationships":[42,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[43,[2,5,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[44,[2,5,7]],"/(app)/nexus":[46,[2,8]],"/(app)/nexus/create":[49,[2,8]],"/(app)/nexus/[id]":[47,[2,8,9]],"/(app)/nexus/[id]/edit":[48,[2,8,9]],"/(app)/select-namespace":[50,[2]],"/(login)/signin":[52,[10]]},Pe={handleError:({error:s})=>{console.error(s)},reroute:()=>{}};export{De as dictionary,Pe as hooks,ve as matchers,Ie as nodes,be as root,Ve as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/start.TxMCp5N8.js b/ui/assets/local/_app/immutable/entry/start.TxMCp5N8.js deleted file mode 100644 index 9e4380f71..000000000 --- a/ui/assets/local/_app/immutable/entry/start.TxMCp5N8.js +++ /dev/null @@ -1 +0,0 @@ -import{c as a}from"../chunks/entry.DLEzeuD9.js";export{a as start}; diff --git a/ui/assets/local/_app/immutable/entry/start.rDyhpDSO.js b/ui/assets/local/_app/immutable/entry/start.rDyhpDSO.js new file mode 100644 index 000000000..06954189b --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/start.rDyhpDSO.js @@ -0,0 +1 @@ +import{c as a}from"../chunks/entry.kylZibtV.js";export{a as start}; diff --git a/ui/assets/local/_app/immutable/nodes/1.BhgCFllH.js b/ui/assets/local/_app/immutable/nodes/1.C5LQnY0e.js similarity index 87% rename from ui/assets/local/_app/immutable/nodes/1.BhgCFllH.js rename to ui/assets/local/_app/immutable/nodes/1.C5LQnY0e.js index 77aff5564..2007227ca 100644 --- a/ui/assets/local/_app/immutable/nodes/1.BhgCFllH.js +++ b/ui/assets/local/_app/immutable/nodes/1.C5LQnY0e.js @@ -1 +1 @@ -import{s as i,c as p}from"../chunks/scheduler.C46pS-76.js";import{S as c,i as u,c as f,a as _,m as g,t as l,b as $,d}from"../chunks/index.dOVbn71B.js";/* empty css */import{p as E}from"../chunks/stores.Dz-RNcUk.js";import{E as h}from"../chunks/error.aZkLDhWZ.js";import{i as b}from"../chunks/is-network-error.Dq2Kfkkh.js";import{p as y}from"../chunks/parse-with-big-int.BKSBwM2t.js";function q(o){let t,e;return t=new h({props:{error:o[1],status:o[0]}}),{c(){f(t.$$.fragment)},l(r){_(t.$$.fragment,r)},m(r,s){g(t,r,s),e=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){e||(l(t.$$.fragment,r),e=!0)},o(r){$(t.$$.fragment,r),e=!1},d(r){d(t,r)}}}function w(o,t,e){let r,s,n;p(o,E,m=>e(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return o.$$.update=()=>{o.$$.dirty&4&&e(1,r=n.error),o.$$.dirty&4&&e(0,s=n.status)},[s,r,n]}class N extends c{constructor(t){super(),u(this,t,w,q,i,{})}}export{N as component}; +import{s as i,c as p}from"../chunks/scheduler.C46pS-76.js";import{S as c,i as u,c as f,a as _,m as g,t as l,b as $,d}from"../chunks/index.dOVbn71B.js";/* empty css */import{p as E}from"../chunks/stores.Ds4o9nwd.js";import{E as h}from"../chunks/error.CjC3VuFL.js";import{i as b}from"../chunks/is-network-error.Dq2Kfkkh.js";import{p as y}from"../chunks/parse-with-big-int.BKSBwM2t.js";function q(o){let t,e;return t=new h({props:{error:o[1],status:o[0]}}),{c(){f(t.$$.fragment)},l(r){_(t.$$.fragment,r)},m(r,s){g(t,r,s),e=!0},p(r,[s]){const n={};s&2&&(n.error=r[1]),s&1&&(n.status=r[0]),t.$set(n)},i(r){e||(l(t.$$.fragment,r),e=!0)},o(r){$(t.$$.fragment,r),e=!1},d(r){d(t,r)}}}function w(o,t,e){let r,s,n;p(o,E,m=>e(2,n=m));let a;try{a=y(r.message),b(a)&&(s=a.statusCode)}catch(m){console.error(m)}return o.$$.update=()=>{o.$$.dirty&4&&e(1,r=n.error),o.$$.dirty&4&&e(0,s=n.status)},[s,r,n]}class N extends c{constructor(t){super(),u(this,t,w,q,i,{})}}export{N as component}; diff --git a/ui/assets/local/_app/immutable/nodes/10.EIXLH7k9.js b/ui/assets/local/_app/immutable/nodes/10.CRr1YwQ1.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/10.EIXLH7k9.js rename to ui/assets/local/_app/immutable/nodes/10.CRr1YwQ1.js index ae7e22cfc..3876027e4 100644 --- a/ui/assets/local/_app/immutable/nodes/10.EIXLH7k9.js +++ b/ui/assets/local/_app/immutable/nodes/10.CRr1YwQ1.js @@ -1 +1 @@ -/* empty css */import{e as r}from"../chunks/index.g5YcAAdQ.js";import{f as l}from"../chunks/settings-service.6ZfKSI4U.js";import{s as i,a as u,u as f,g as c,e as _}from"../chunks/scheduler.C46pS-76.js";import{S as m,i as p,t as d,b as g}from"../chunks/index.dOVbn71B.js";const $=!1,b=async function({fetch:o}){const s=await l(o);return s.auth.enabled||r(404),{settings:s}},w=Object.freeze(Object.defineProperty({__proto__:null,load:b,ssr:$},Symbol.toStringTag,{value:"Module"}));function y(o){let s;const a=o[1].default,e=u(a,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,[n]){e&&e.p&&(!s||n&1)&&f(e,a,t,t[0],s?_(a,t[0],n,null):c(t[0]),null)},i(t){s||(d(e,t),s=!0)},o(t){g(e,t),s=!1},d(t){e&&e.d(t)}}}function S(o,s,a){let{$$slots:e={},$$scope:t}=s;return o.$$set=n=>{"$$scope"in n&&a(0,t=n.$$scope)},[t,e]}class z extends m{constructor(s){super(),p(this,s,S,y,i,{})}}export{z as component,w as universal}; +/* empty css */import{e as r}from"../chunks/index.g5YcAAdQ.js";import{f as l}from"../chunks/settings-service.lqZRRkVY.js";import{s as i,a as u,u as f,g as c,e as _}from"../chunks/scheduler.C46pS-76.js";import{S as m,i as p,t as d,b as g}from"../chunks/index.dOVbn71B.js";const $=!1,b=async function({fetch:o}){const s=await l(o);return s.auth.enabled||r(404),{settings:s}},w=Object.freeze(Object.defineProperty({__proto__:null,load:b,ssr:$},Symbol.toStringTag,{value:"Module"}));function y(o){let s;const a=o[1].default,e=u(a,o,o[0],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,[n]){e&&e.p&&(!s||n&1)&&f(e,a,t,t[0],s?_(a,t[0],n,null):c(t[0]),null)},i(t){s||(d(e,t),s=!0)},o(t){g(e,t),s=!1},d(t){e&&e.d(t)}}}function S(o,s,a){let{$$slots:e={},$$scope:t}=s;return o.$$set=n=>{"$$scope"in n&&a(0,t=n.$$scope)},[t,e]}class z extends m{constructor(s){super(),p(this,s,S,y,i,{})}}export{z as component,w as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/11.rbZzRztA.js b/ui/assets/local/_app/immutable/nodes/11.BBIfjXhP.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/11.rbZzRztA.js rename to ui/assets/local/_app/immutable/nodes/11.BBIfjXhP.js index c752b2c4e..603996051 100644 --- a/ui/assets/local/_app/immutable/nodes/11.rbZzRztA.js +++ b/ui/assets/local/_app/immutable/nodes/11.BBIfjXhP.js @@ -1 +1 @@ -import{r as l}from"../chunks/index.g5YcAAdQ.js";import{e as u,f as m}from"../chunks/route-for.BjP6gGR7.js";import{s as f,v as p,c as d,V as g}from"../chunks/scheduler.C46pS-76.js";import{S as _,i as b,c as y,a as N,m as h,t as w,b as S,d as $}from"../chunks/index.dOVbn71B.js";import{g as c}from"../chunks/entry.DLEzeuD9.js";import{L as v}from"../chunks/loading.BLsNkl8r.js";import{a as C}from"../chunks/workflows.BzgE0E1S.js";import{l as x}from"../chunks/namespaces.619_s9Tr.js";const z=async({parent:s})=>{var o,r;const t=await s(),a=(o=t==null?void 0:t.settings)==null?void 0:o.defaultNamespace;return((r=t.settings.runtimeEnvironment)==null?void 0:r.isCloud)&&l(302,u({namespace:a})),{defaultNamespace:a}},q=Object.freeze(Object.defineProperty({__proto__:null,load:z},Symbol.toStringTag,{value:"Module"}));function F(s){let t,a;return t=new v({}),{c(){y(t.$$.fragment)},l(e){N(t.$$.fragment,e)},m(e,o){h(t,e,o),a=!0},p,i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){S(t.$$.fragment,e),a=!1},d(e){$(t,e)}}}function j(s,t,a){let e;d(s,x,n=>a(1,e=n));let{data:o}=t,{defaultNamespace:r}=o;const i=e&&e!=="default"?e:r;return g(async()=>{try{const{authorized:n}=await C(i);n?c(u({namespace:i})):c(m())}catch{c(m())}}),s.$$set=n=>{"data"in n&&a(0,o=n.data)},[o]}class A extends _{constructor(t){super(),b(this,t,j,F,f,{data:0})}}export{A as component,q as universal}; +import{r as l}from"../chunks/index.g5YcAAdQ.js";import{e as u,f as m}from"../chunks/route-for.B9fTWV7L.js";import{s as f,v as p,c as d,V as g}from"../chunks/scheduler.C46pS-76.js";import{S as _,i as b,c as y,a as N,m as h,t as w,b as S,d as $}from"../chunks/index.dOVbn71B.js";import{g as c}from"../chunks/entry.kylZibtV.js";import{L as v}from"../chunks/loading.BLsNkl8r.js";import{a as C}from"../chunks/workflows.Cse8qlOg.js";import{l as x}from"../chunks/namespaces.DEm0M_ie.js";const z=async({parent:s})=>{var o,r;const t=await s(),a=(o=t==null?void 0:t.settings)==null?void 0:o.defaultNamespace;return((r=t.settings.runtimeEnvironment)==null?void 0:r.isCloud)&&l(302,u({namespace:a})),{defaultNamespace:a}},q=Object.freeze(Object.defineProperty({__proto__:null,load:z},Symbol.toStringTag,{value:"Module"}));function F(s){let t,a;return t=new v({}),{c(){y(t.$$.fragment)},l(e){N(t.$$.fragment,e)},m(e,o){h(t,e,o),a=!0},p,i(e){a||(w(t.$$.fragment,e),a=!0)},o(e){S(t.$$.fragment,e),a=!1},d(e){$(t,e)}}}function j(s,t,a){let e;d(s,x,n=>a(1,e=n));let{data:o}=t,{defaultNamespace:r}=o;const i=e&&e!=="default"?e:r;return g(async()=>{try{const{authorized:n}=await C(i);n?c(u({namespace:i})):c(m())}catch{c(m())}}),s.$$set=n=>{"data"in n&&a(0,o=n.data)},[o]}class A extends _{constructor(t){super(),b(this,t,j,F,f,{data:0})}}export{A as component,q as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/12.DSRPizbx.js b/ui/assets/local/_app/immutable/nodes/12.BZ18BAHA.js similarity index 75% rename from ui/assets/local/_app/immutable/nodes/12.DSRPizbx.js rename to ui/assets/local/_app/immutable/nodes/12.BZ18BAHA.js index 46bdf8612..5aded8bf2 100644 --- a/ui/assets/local/_app/immutable/nodes/12.DSRPizbx.js +++ b/ui/assets/local/_app/immutable/nodes/12.BZ18BAHA.js @@ -1 +1 @@ -import{r as e}from"../chunks/index.g5YcAAdQ.js";import{r as o}from"../chunks/route-for.BjP6gGR7.js";const t=async()=>{const r=o();e(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{s as universal}; +import{r as e}from"../chunks/index.g5YcAAdQ.js";import{r as o}from"../chunks/route-for.B9fTWV7L.js";const t=async()=>{const r=o();e(302,r)},s=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{s as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/13.DW978geN.js b/ui/assets/local/_app/immutable/nodes/13.mVbeR_sr.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/13.DW978geN.js rename to ui/assets/local/_app/immutable/nodes/13.mVbeR_sr.js index de1d5673f..688b07d3e 100644 --- a/ui/assets/local/_app/immutable/nodes/13.DW978geN.js +++ b/ui/assets/local/_app/immutable/nodes/13.mVbeR_sr.js @@ -1 +1 @@ -import{s as tt,h as l,t as G,b as w,j as m,k as d,l as J,f as i,d as C,o as ot,m as r,i as et,n as a,v as st}from"../chunks/scheduler.C46pS-76.js";import{S as nt,i as at,c as H,a as T,m as D,t as S,b as V,d as j}from"../chunks/index.dOVbn71B.js";import{E as rt}from"../chunks/event-history-file-import.C5IunOHG.js";import{C as Y}from"../chunks/code-block.BkCXXL0z.js";import{L as it}from"../chunks/link.BJceiGbc.js";import{t as $}from"../chunks/translate.BBe5dcco.js";import{s as Z}from"../chunks/parse-with-big-int.BKSBwM2t.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=G(t)},l(e){s=J(e,t)},m(e,x){et(e,s,x)},p:st,d(e){e&&i(s)}}}function lt(v){let t,s,e,x=$("events.import-event-history")+"",O,q,E,h,A,o,g,K="type HistoryEvent = temporal.api.history.v1.IHistoryEvent",B,I,f,P,k,M=$("events.history-expected-formats")+"",W,z,p,_,F,y,L;return h=new rt({}),f=new it({props:{newTab:!0,href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),_=new Y({props:{content:Z(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),y=new Y({props:{content:Z(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),O=G(x),q=w(),E=l("div"),H(h.$$.fragment),A=w(),o=l("div"),g=l("code"),g.textContent=K,B=w(),I=l("div"),H(f.$$.fragment),P=w(),k=l("h2"),W=G(M),z=w(),p=l("div"),H(_.$$.fragment),F=w(),H(y.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=d(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var b=d(s);e=m(b,"H1",{"data-testid":!0});var Q=d(e);O=J(Q,x),Q.forEach(i),q=C(b),E=m(b,"DIV",{class:!0});var R=d(E);T(h.$$.fragment,R),R.forEach(i),b.forEach(i),A=C(c),o=m(c,"DIV",{class:!0});var u=d(o);g=m(u,"CODE",{class:!0,"data-svelte-h":!0}),ot(g)!=="svelte-g1pufg"&&(g.textContent=K),B=C(u),I=m(u,"DIV",{class:!0});var U=d(I);T(f.$$.fragment,U),U.forEach(i),P=C(u),k=m(u,"H2",{class:!0});var X=d(k);W=J(X,M),X.forEach(i),z=C(u),p=m(u,"DIV",{class:!0});var N=d(p);T(_.$$.fragment,N),F=C(N),T(y.$$.fragment,N),N.forEach(i),u.forEach(i),c.forEach(i),this.h()},h(){r(e,"data-testid","import-event-history"),r(E,"class","flex gap-4"),r(s,"id","event-history"),r(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),r(s,"aria-label",$("events.import-event-history")),r(g,"class","md:text-md font-mono text-sm leading-8"),r(I,"class","mt-4"),r(k,"class","mt-8"),r(p,"class","h-40 text-center"),r(o,"class","w-full md:w-1/2"),r(t,"class","flex flex-col gap-4")},m(n,c){et(n,t,c),a(t,s),a(s,e),a(e,O),a(s,q),a(s,E),D(h,E,null),a(t,A),a(t,o),a(o,g),a(o,B),a(o,I),D(f,I,null),a(o,P),a(o,k),a(k,W),a(o,z),a(o,p),D(_,p,null),a(p,F),D(y,p,null),L=!0},p(n,[c]){const b={};c&2&&(b.$$scope={dirty:c,ctx:n}),f.$set(b)},i(n){L||(S(h.$$.fragment,n),S(f.$$.fragment,n),S(_.$$.fragment,n),S(y.$$.fragment,n),L=!0)},o(n){V(h.$$.fragment,n),V(f.$$.fragment,n),V(_.$$.fragment,n),V(y.$$.fragment,n),L=!1},d(n){n&&i(t),j(h),j(f),j(_),j(y)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends nt{constructor(t){super(),at(this,t,ft,lt,tt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){H(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,x){D(t,e,x),s=!0},p:st,i(e){s||(S(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}class bt extends nt{constructor(t){super(),at(this,t,null,ut,tt,{})}}export{bt as component}; +import{s as tt,h as l,t as G,b as w,j as m,k as d,l as J,f as i,d as C,o as ot,m as r,i as et,n as a,v as st}from"../chunks/scheduler.C46pS-76.js";import{S as nt,i as at,c as H,a as T,m as D,t as S,b as V,d as j}from"../chunks/index.dOVbn71B.js";import{E as rt}from"../chunks/event-history-file-import.BWMNMNHv.js";import{C as Y}from"../chunks/code-block.DGWayI9q.js";import{L as it}from"../chunks/link.C_v4aoat.js";import{t as $}from"../chunks/translate.BBe5dcco.js";import{s as Z}from"../chunks/parse-with-big-int.BKSBwM2t.js";function ct(v){let t=$("events.api-history-link")+"",s;return{c(){s=G(t)},l(e){s=J(e,t)},m(e,x){et(e,s,x)},p:st,d(e){e&&i(s)}}}function lt(v){let t,s,e,x=$("events.import-event-history")+"",O,q,E,h,A,o,g,K="type HistoryEvent = temporal.api.history.v1.IHistoryEvent",B,I,f,P,k,M=$("events.history-expected-formats")+"",W,z,p,_,F,y,L;return h=new rt({}),f=new it({props:{newTab:!0,href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),_=new Y({props:{content:Z(v[0]),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),y=new Y({props:{content:Z(mt),inline:!0,copyIconTitle:$("common.copy-icon-title"),copySuccessIconTitle:$("common.copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),O=G(x),q=w(),E=l("div"),H(h.$$.fragment),A=w(),o=l("div"),g=l("code"),g.textContent=K,B=w(),I=l("div"),H(f.$$.fragment),P=w(),k=l("h2"),W=G(M),z=w(),p=l("div"),H(_.$$.fragment),F=w(),H(y.$$.fragment),this.h()},l(n){t=m(n,"SECTION",{class:!0});var c=d(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var b=d(s);e=m(b,"H1",{"data-testid":!0});var Q=d(e);O=J(Q,x),Q.forEach(i),q=C(b),E=m(b,"DIV",{class:!0});var R=d(E);T(h.$$.fragment,R),R.forEach(i),b.forEach(i),A=C(c),o=m(c,"DIV",{class:!0});var u=d(o);g=m(u,"CODE",{class:!0,"data-svelte-h":!0}),ot(g)!=="svelte-g1pufg"&&(g.textContent=K),B=C(u),I=m(u,"DIV",{class:!0});var U=d(I);T(f.$$.fragment,U),U.forEach(i),P=C(u),k=m(u,"H2",{class:!0});var X=d(k);W=J(X,M),X.forEach(i),z=C(u),p=m(u,"DIV",{class:!0});var N=d(p);T(_.$$.fragment,N),F=C(N),T(y.$$.fragment,N),N.forEach(i),u.forEach(i),c.forEach(i),this.h()},h(){r(e,"data-testid","import-event-history"),r(E,"class","flex gap-4"),r(s,"id","event-history"),r(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),r(s,"aria-label",$("events.import-event-history")),r(g,"class","md:text-md font-mono text-sm leading-8"),r(I,"class","mt-4"),r(k,"class","mt-8"),r(p,"class","h-40 text-center"),r(o,"class","w-full md:w-1/2"),r(t,"class","flex flex-col gap-4")},m(n,c){et(n,t,c),a(t,s),a(s,e),a(e,O),a(s,q),a(s,E),D(h,E,null),a(t,A),a(t,o),a(o,g),a(o,B),a(o,I),D(f,I,null),a(o,P),a(o,k),a(k,W),a(o,z),a(o,p),D(_,p,null),a(p,F),D(y,p,null),L=!0},p(n,[c]){const b={};c&2&&(b.$$scope={dirty:c,ctx:n}),f.$set(b)},i(n){L||(S(h.$$.fragment,n),S(f.$$.fragment,n),S(_.$$.fragment,n),S(y.$$.fragment,n),L=!0)},o(n){V(h.$$.fragment,n),V(f.$$.fragment,n),V(_.$$.fragment,n),V(y.$$.fragment,n),L=!1},d(n){n&&i(t),j(h),j(f),j(_),j(y)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends nt{constructor(t){super(),at(this,t,ft,lt,tt,{})}}function ut(v){let t,s;return t=new pt({}),{c(){H(t.$$.fragment)},l(e){T(t.$$.fragment,e)},m(e,x){D(t,e,x),s=!0},p:st,i(e){s||(S(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){j(t,e)}}}class bt extends nt{constructor(t){super(),at(this,t,null,ut,tt,{})}}export{bt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/14.BCP5k91W.js b/ui/assets/local/_app/immutable/nodes/14.D1uml7DU.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/14.BCP5k91W.js rename to ui/assets/local/_app/immutable/nodes/14.D1uml7DU.js index c922a458c..ef3a6a3e5 100644 --- a/ui/assets/local/_app/immutable/nodes/14.BCP5k91W.js +++ b/ui/assets/local/_app/immutable/nodes/14.D1uml7DU.js @@ -1 +1 @@ -import{r}from"../chunks/index.g5YcAAdQ.js";import{r as o}from"../chunks/route-for.BjP6gGR7.js";const t=async function(){const e=o("feed");r(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; +import{r}from"../chunks/index.g5YcAAdQ.js";import{r as o}from"../chunks/route-for.B9fTWV7L.js";const t=async function(){const e=o("feed");r(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{c as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/15.CTlFIzVM.js b/ui/assets/local/_app/immutable/nodes/15.LwWhC-sc.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/15.CTlFIzVM.js rename to ui/assets/local/_app/immutable/nodes/15.LwWhC-sc.js index 32208e211..d4dff5aa3 100644 --- a/ui/assets/local/_app/immutable/nodes/15.CTlFIzVM.js +++ b/ui/assets/local/_app/immutable/nodes/15.LwWhC-sc.js @@ -1 +1 @@ -import{s as f,c as i,w as _}from"../chunks/scheduler.C46pS-76.js";import{S as d,i as g,c as v,a as E,m as y,t as b,b as h,d as x}from"../chunks/index.dOVbn71B.js";import{E as C}from"../chunks/event-summary-table.Bjd71qae.js";import{e as c,a as F,b as S}from"../chunks/events.Dh9P6F73.js";import{a as A}from"../chunks/import-events.Dljx0mMh.js";function G(t){let r,o;return r=new C({props:{items:t[0],groups:t[0]}}),r.$on("expandAll",t[1]),{c(){v(r.$$.fragment)},l(e){E(r.$$.fragment,e)},m(e,s){y(r,e,s),o=!0},p(e,[s]){const a={};s&1&&(a.items=e[0]),s&1&&(a.groups=e[0]),r.$set(a)},i(e){o||(b(r.$$.fragment,e),o=!0)},o(e){h(r.$$.fragment,e),o=!1},d(e){x(r,e)}}}function w(t,r,o){let e,s,a,m,p,u;i(t,c,n=>o(6,a=n)),i(t,F,n=>o(3,m=n)),i(t,A,n=>o(4,p=n)),i(t,S,n=>o(5,u=n));function l(n){_(c,a=n.detail.expanded,a)}return t.$$.update=()=>{t.$$.dirty&48&&o(2,e=u==="descending"?[...p].reverse():p),t.$$.dirty&12&&o(0,s=e.filter(n=>m?m.includes(n.category):n))},[s,l,e,m,p,u]}class B extends d{constructor(r){super(),g(this,r,w,G,f,{})}}export{B as component}; +import{s as f,c as i,w as _}from"../chunks/scheduler.C46pS-76.js";import{S as d,i as g,c as v,a as E,m as y,t as b,b as h,d as x}from"../chunks/index.dOVbn71B.js";import{E as C}from"../chunks/event-summary-table.BGH464r2.js";import{e as c,a as F,b as S}from"../chunks/events.CbhKe7Ai.js";import{a as A}from"../chunks/import-events.CEl85Dnc.js";function G(t){let r,o;return r=new C({props:{items:t[0],groups:t[0]}}),r.$on("expandAll",t[1]),{c(){v(r.$$.fragment)},l(e){E(r.$$.fragment,e)},m(e,s){y(r,e,s),o=!0},p(e,[s]){const a={};s&1&&(a.items=e[0]),s&1&&(a.groups=e[0]),r.$set(a)},i(e){o||(b(r.$$.fragment,e),o=!0)},o(e){h(r.$$.fragment,e),o=!1},d(e){x(r,e)}}}function w(t,r,o){let e,s,a,m,p,u;i(t,c,n=>o(6,a=n)),i(t,F,n=>o(3,m=n)),i(t,A,n=>o(4,p=n)),i(t,S,n=>o(5,u=n));function l(n){_(c,a=n.detail.expanded,a)}return t.$$.update=()=>{t.$$.dirty&48&&o(2,e=u==="descending"?[...p].reverse():p),t.$$.dirty&12&&o(0,s=e.filter(n=>m?m.includes(n.category):n))},[s,l,e,m,p,u]}class B extends d{constructor(r){super(),g(this,r,w,G,f,{})}}export{B as component}; diff --git a/ui/assets/local/_app/immutable/nodes/16.DYm3t1OC.js b/ui/assets/local/_app/immutable/nodes/16.KQoNOEjE.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/16.DYm3t1OC.js rename to ui/assets/local/_app/immutable/nodes/16.KQoNOEjE.js index 5e7a68fa5..537945bee 100644 --- a/ui/assets/local/_app/immutable/nodes/16.DYm3t1OC.js +++ b/ui/assets/local/_app/immutable/nodes/16.KQoNOEjE.js @@ -1 +1 @@ -import{s as f,c as p,w as d}from"../chunks/scheduler.C46pS-76.js";import{S as _,i as g,c as v,a as y,m as E,t as b,b as x,d as h}from"../chunks/index.dOVbn71B.js";import{E as C}from"../chunks/event-summary-table.Bjd71qae.js";import{e as u,a as F,b as S}from"../chunks/events.Dh9P6F73.js";import{i as A}from"../chunks/import-events.Dljx0mMh.js";function w(r){let t,o;return t=new C({props:{items:r[0]}}),t.$on("expandAll",r[1]),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){E(t,e,s),o=!0},p(e,[s]){const a={};s&1&&(a.items=e[0]),t.$set(a)},i(e){o||(b(t.$$.fragment,e),o=!0)},o(e){x(t.$$.fragment,e),o=!1},d(e){h(t,e)}}}function q(r,t,o){let e,s,a,m,i,c;p(r,u,n=>o(6,a=n)),p(r,F,n=>o(3,m=n)),p(r,A,n=>o(4,i=n)),p(r,S,n=>o(5,c=n));function l(n){d(u,a=n.detail.expanded,a)}return r.$$.update=()=>{r.$$.dirty&48&&o(2,e=c==="descending"?[...i].reverse():i),r.$$.dirty&12&&o(0,s=e.filter(n=>m?m.includes(n.category):n))},[s,l,e,m,i,c]}class D extends _{constructor(t){super(),g(this,t,q,w,f,{})}}export{D as component}; +import{s as f,c as p,w as d}from"../chunks/scheduler.C46pS-76.js";import{S as _,i as g,c as v,a as y,m as E,t as b,b as x,d as h}from"../chunks/index.dOVbn71B.js";import{E as C}from"../chunks/event-summary-table.BGH464r2.js";import{e as u,a as F,b as S}from"../chunks/events.CbhKe7Ai.js";import{i as A}from"../chunks/import-events.CEl85Dnc.js";function w(r){let t,o;return t=new C({props:{items:r[0]}}),t.$on("expandAll",r[1]),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,s){E(t,e,s),o=!0},p(e,[s]){const a={};s&1&&(a.items=e[0]),t.$set(a)},i(e){o||(b(t.$$.fragment,e),o=!0)},o(e){x(t.$$.fragment,e),o=!1},d(e){h(t,e)}}}function q(r,t,o){let e,s,a,m,i,c;p(r,u,n=>o(6,a=n)),p(r,F,n=>o(3,m=n)),p(r,A,n=>o(4,i=n)),p(r,S,n=>o(5,c=n));function l(n){d(u,a=n.detail.expanded,a)}return r.$$.update=()=>{r.$$.dirty&48&&o(2,e=c==="descending"?[...i].reverse():i),r.$$.dirty&12&&o(0,s=e.filter(n=>m?m.includes(n.category):n))},[s,l,e,m,i,c]}class D extends _{constructor(t){super(),g(this,t,q,w,f,{})}}export{D as component}; diff --git a/ui/assets/local/_app/immutable/nodes/17.cPOI0IGM.js b/ui/assets/local/_app/immutable/nodes/17.hkGt17IV.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/17.cPOI0IGM.js rename to ui/assets/local/_app/immutable/nodes/17.hkGt17IV.js index 59df7f923..85b79787e 100644 --- a/ui/assets/local/_app/immutable/nodes/17.cPOI0IGM.js +++ b/ui/assets/local/_app/immutable/nodes/17.hkGt17IV.js @@ -1 +1 @@ -import{s as a,c as i}from"../chunks/scheduler.C46pS-76.js";import{S as m,i as c,c as p,a as f,m as u,t as _,b as l,d as $}from"../chunks/index.dOVbn71B.js";import{W as g}from"../chunks/workflow-json-navigator.D-VSmCkm.js";import{i as v}from"../chunks/import-events.Dljx0mMh.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){p(n.$$.fragment)},l(t){f(n.$$.fragment,t)},m(t,e){u(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(_(n.$$.fragment,t),o=!0)},o(t){l(n.$$.fragment,t),o=!1},d(t){$(n,t)}}}function d(r,n,o){let t;return i(r,v,e=>o(0,t=e)),[t]}class x extends m{constructor(n){super(),c(this,n,d,w,a,{})}}export{x as component}; +import{s as a,c as i}from"../chunks/scheduler.C46pS-76.js";import{S as m,i as c,c as p,a as f,m as u,t as _,b as l,d as $}from"../chunks/index.dOVbn71B.js";import{W as g}from"../chunks/workflow-json-navigator.sqiRvlQE.js";import{i as v}from"../chunks/import-events.CEl85Dnc.js";function w(r){let n,o;return n=new g({props:{events:r[0]}}),{c(){p(n.$$.fragment)},l(t){f(n.$$.fragment,t)},m(t,e){u(n,t,e),o=!0},p(t,[e]){const s={};e&1&&(s.events=t[0]),n.$set(s)},i(t){o||(_(n.$$.fragment,t),o=!0)},o(t){l(n.$$.fragment,t),o=!1},d(t){$(n,t)}}}function d(r,n,o){let t;return i(r,v,e=>o(0,t=e)),[t]}class x extends m{constructor(n){super(),c(this,n,d,w,a,{})}}export{x as component}; diff --git a/ui/assets/local/_app/immutable/nodes/18.DxrAxMVp.js b/ui/assets/local/_app/immutable/nodes/18.CLYvwiyG.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/18.DxrAxMVp.js rename to ui/assets/local/_app/immutable/nodes/18.CLYvwiyG.js index 20a5e5da9..63fee10e2 100644 --- a/ui/assets/local/_app/immutable/nodes/18.DxrAxMVp.js +++ b/ui/assets/local/_app/immutable/nodes/18.CLYvwiyG.js @@ -1 +1 @@ -import{s as M,b as B,h as P,t as I,x as y,d as q,j as L,k as N,l as S,f as i,m as E,i as $,n as C,c as A,v as H,y as Q,q as R}from"../chunks/scheduler.C46pS-76.js";import{S as U,i as V,c as d,a as b,m as k,b as u,e as J,t as p,d as v,g as K}from"../chunks/index.dOVbn71B.js";import{e as D}from"../chunks/each.C6O0oV7R.js";import{p as W}from"../chunks/stores.Dz-RNcUk.js";import{P as X}from"../chunks/page-title.DNhqE1Lj.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as Z}from"../chunks/link.BJceiGbc.js";import{P as ee}from"../chunks/pagination.Dxf-be3Z.js";import{T as te,a as ae,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as h}from"../chunks/translate.BBe5dcco.js";import{n as re}from"../chunks/namespaces.619_s9Tr.js";import{a as F}from"../chunks/route-for.BjP6gGR7.js";function O(c,t,n){const e=c.slice();return e[3]=t[n],e}function se(c){let t,n;return t=new Y({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:H,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function oe(c){let t,n;return t=new ee({props:{items:c[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[ue,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function le(c){let t=c[3].namespaceInfo.name+"",n;return{c(){n=I(t)},l(e){n=S(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&R(n,t)},d(e){e&&i(n)}}}function ce(c){let t,n,e,a;return n=new Z({props:{href:F({namespace:c[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:c}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=L(r,"TD",{});var s=N(t);b(n.$$.fragment,s),s.forEach(i),e=q(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=F({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&(i(t),i(e)),v(n)}}}function G(c){let t,n;return t=new ne({props:{$$slots:{default:[ce]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function fe(c){let t,n,e=D(c[2]),a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=z(c),l=g[o]=j[o](c),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=I(a),s=B(),l.c(),_=y(),this.h()},l(f){b(t.$$.fragment,f),n=q(f),e=L(f,"H1",{"data-testid":!0,class:!0});var m=N(e);r=S(m,a),m.forEach(i),s=q(f),l.l(f),_=y(),this.h()},h(){E(e,"data-testid","namespace-selector-title"),E(e,"class","mb-8")},m(f,m){k(t,f,m),$(f,n,m),$(f,e,m),C(e,r),$(f,s,m),g[o].m(f,m),$(f,_,m),T=!0},p(f,[m]){const w={};m&1&&(w.url=f[0].url.href),t.$set(w);let x=o;o=z(f),o===x?g[o].p(f,m):(K(),u(g[x],1,1,()=>{g[x]=null}),J(),l=g[o],l?l.p(f,m):(l=g[o]=j[o](f),l.c()),p(l,1),l.m(_.parentNode,_))},i(f){T||(p(t.$$.fragment,f),p(l),T=!0)},o(f){u(t.$$.fragment,f),u(l),T=!1},d(f){f&&(i(n),i(e),i(s),i(_)),v(t,f),g[o].d(f)}}}function _e(c,t,n){let e,a;return A(c,W,r=>n(0,e=r)),A(c,re,r=>n(1,a=r)),[e,a]}class Le extends U{constructor(t){super(),V(this,t,_e,$e,M,{})}}export{Le as component}; +import{s as M,b as B,h as P,t as I,x as y,d as q,j as L,k as N,l as S,f as i,m as E,i as $,n as C,c as A,v as H,y as Q,q as R}from"../chunks/scheduler.C46pS-76.js";import{S as U,i as V,c as d,a as b,m as k,b as u,e as J,t as p,d as v,g as K}from"../chunks/index.dOVbn71B.js";import{e as D}from"../chunks/each.C6O0oV7R.js";import{p as W}from"../chunks/stores.Ds4o9nwd.js";import{P as X}from"../chunks/page-title.DNhqE1Lj.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as Z}from"../chunks/link.C_v4aoat.js";import{P as ee}from"../chunks/pagination.1KQhGwzN.js";import{T as te,a as ae,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as h}from"../chunks/translate.BBe5dcco.js";import{n as re}from"../chunks/namespaces.DEm0M_ie.js";import{a as F}from"../chunks/route-for.B9fTWV7L.js";function O(c,t,n){const e=c.slice();return e[3]=t[n],e}function se(c){let t,n;return t=new Y({props:{title:h("namespaces.namespaces-empty-state-title"),content:h("namespaces.namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:H,i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function oe(c){let t,n;return t=new ee({props:{items:c[1],"aria-label":h("common.namespaces"),pageSizeSelectLabel:h("common.per-page"),previousButtonLabel:h("common.previous"),nextButtonLabel:h("common.next"),$$slots:{default:[ue,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function le(c){let t=c[3].namespaceInfo.name+"",n;return{c(){n=I(t)},l(e){n=S(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&R(n,t)},d(e){e&&i(n)}}}function ce(c){let t,n,e,a;return n=new Z({props:{href:F({namespace:c[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:c}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=L(r,"TD",{});var s=N(t);b(n.$$.fragment,s),s.forEach(i),e=q(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const o={};s&4&&(o.href=F({namespace:r[3].namespaceInfo.name})),s&68&&(o.$$scope={dirty:s,ctx:r}),n.$set(o)},i(r){a||(p(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&(i(t),i(e)),v(n)}}}function G(c){let t,n;return t=new ne({props:{$$slots:{default:[ce]},$$scope:{ctx:c}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(p(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){v(t,e)}}}function fe(c){let t,n,e=D(c[2]),a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return o=z(c),l=g[o]=j[o](c),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=I(a),s=B(),l.c(),_=y(),this.h()},l(f){b(t.$$.fragment,f),n=q(f),e=L(f,"H1",{"data-testid":!0,class:!0});var m=N(e);r=S(m,a),m.forEach(i),s=q(f),l.l(f),_=y(),this.h()},h(){E(e,"data-testid","namespace-selector-title"),E(e,"class","mb-8")},m(f,m){k(t,f,m),$(f,n,m),$(f,e,m),C(e,r),$(f,s,m),g[o].m(f,m),$(f,_,m),T=!0},p(f,[m]){const w={};m&1&&(w.url=f[0].url.href),t.$set(w);let x=o;o=z(f),o===x?g[o].p(f,m):(K(),u(g[x],1,1,()=>{g[x]=null}),J(),l=g[o],l?l.p(f,m):(l=g[o]=j[o](f),l.c()),p(l,1),l.m(_.parentNode,_))},i(f){T||(p(t.$$.fragment,f),p(l),T=!0)},o(f){u(t.$$.fragment,f),u(l),T=!1},d(f){f&&(i(n),i(e),i(s),i(_)),v(t,f),g[o].d(f)}}}function _e(c,t,n){let e,a;return A(c,W,r=>n(0,e=r)),A(c,re,r=>n(1,a=r)),[e,a]}class Le extends U{constructor(t){super(),V(this,t,_e,$e,M,{})}}export{Le as component}; diff --git a/ui/assets/local/_app/immutable/nodes/19.CAKcRNTA.js b/ui/assets/local/_app/immutable/nodes/19.DstKIVrK.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/19.CAKcRNTA.js rename to ui/assets/local/_app/immutable/nodes/19.DstKIVrK.js index a69d5d003..a70874b72 100644 --- a/ui/assets/local/_app/immutable/nodes/19.CAKcRNTA.js +++ b/ui/assets/local/_app/immutable/nodes/19.DstKIVrK.js @@ -1 +1 @@ -import{f as ht}from"../chunks/namespaces-service.24nHfQvn.js";import{s as vt,b as R,h as d,t as E,x as Je,d as I,j as p,k as v,l as D,f as s,m as B,i as $,n as f,q as z,c as Ne,V as gt,y as Tt,v as we,w as bt,o as Fe}from"../chunks/scheduler.C46pS-76.js";import{S as wt,i as Et,c as J,a as K,m as Q,t as j,b as F,e as mt,d as X,g as $t}from"../chunks/index.dOVbn71B.js";import{e as ft}from"../chunks/each.C6O0oV7R.js";import{p as Dt}from"../chunks/stores.Dz-RNcUk.js";import{P as At}from"../chunks/page-title.DNhqE1Lj.js";import{B as be}from"../chunks/badge.jG5hkqHT.js";import{C as Ct}from"../chunks/card.DbXyfCsc.js";import{T as qe,a as kt,b as Rt}from"../chunks/table.Cg5jABZi.js";import{t as L}from"../chunks/translate.BBe5dcco.js";import{l as ct}from"../chunks/namespaces.619_s9Tr.js";import{s as It}from"../chunks/search-attributes.C9oQpIly.js";import{t as St,u as Ht,s as Lt}from"../chunks/versions.CeMhowfV.js";import{f as ut}from"../chunks/format-time.6TuExJAg.js";const Nt=r=>{var t,l;const e=(t=r==null?void 0:r.replicationConfig)==null?void 0:t.clusters,a=(l=r==null?void 0:r.replicationConfig)==null?void 0:l.activeClusterName;return e!=null&&e.length?e.map(({clusterName:n})=>n===a?`${n} (active)`:n).join(", "):"Unknown"},Vt=async function({params:r,parent:e,url:a}){const{searchParams:t}=a;t.has("time-range")&&t.delete("time-range"),await e();const l=await ht(r.namespace),n=Nt(l);return{namespace:l,clusters:n}},Ta=Object.freeze(Object.defineProperty({__proto__:null,load:Vt},Symbol.toStringTag,{value:"Module"}));function dt(r,e,a){const t=r.slice();return t[13]=e[a][0],t[14]=e[a][1],t}function yt(r){var t;let e=((t=r[0])!=null&&t.isGlobalNamespace?L("common.yes"):L("common.no"))+"",a;return{c(){a=E(e)},l(l){a=D(l,e)},m(l,n){$(l,a,n)},p(l,n){var i;n&1&&e!==(e=((i=l[0])!=null&&i.isGlobalNamespace?L("common.yes"):L("common.no"))+"")&&z(a,e)},d(l){l&&s(a)}}}function Pt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.historyArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.historyArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Bt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.visibilityArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.visibilityArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Ot(r){var Ke,Qe,Xe,Ye,Ze,xe,et,tt,at,lt;let e,a,t=L("namespaces.owner")+"",l,n,i,c=(((Qe=(Ke=r[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Qe.ownerEmail)||L("common.unknown"))+"",o,u,g,V,O=L("namespaces.global")+"",P,C,b,_,y,w,Y,W=L("namespaces.retention-period")+"",Z,k,S,G=ut((Ye=(Xe=r[0])==null?void 0:Xe.config)==null?void 0:Ye.workflowExecutionRetentionTtl.toString())+"",m,A,M,x,pe=L("namespaces.history-archival")+"",le,ee,te,U,ae,se,_e,Re=L("namespaces.visibility-archival")+"",me,re,fe,h,H,q,ne,ie=L("namespaces.failover-version")+"",ce,ue,de,he=(((Ze=r[0])==null?void 0:Ze.failoverVersion)||"")+"",Ee,$e,oe,ve,De=L("namespaces.clusters")+"",Ie,Se,Ve,Ge,ge;return _=new be({props:{class:"px-1 py-0",type:r[8]((xe=r[0])==null?void 0:xe.isGlobalNamespace,!1),$$slots:{default:[yt]},$$scope:{ctx:r}}}),U=new be({props:{class:"px-1 py-0",type:r[7]((tt=(et=r[0])==null?void 0:et.config)==null?void 0:tt.historyArchivalState),$$slots:{default:[Pt]},$$scope:{ctx:r}}}),h=new be({props:{class:"px-1 py-0",type:r[7]((lt=(at=r[0])==null?void 0:at.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Bt]},$$scope:{ctx:r}}}),{c(){e=d("tr"),a=d("td"),l=E(t),n=R(),i=d("td"),o=E(c),u=R(),g=d("tr"),V=d("td"),P=E(O),C=R(),b=d("td"),J(_.$$.fragment),y=R(),w=d("tr"),Y=d("td"),Z=E(W),k=R(),S=d("td"),m=E(G),A=R(),M=d("tr"),x=d("td"),le=E(pe),ee=R(),te=d("td"),J(U.$$.fragment),ae=R(),se=d("tr"),_e=d("td"),me=E(Re),re=R(),fe=d("td"),J(h.$$.fragment),H=R(),q=d("tr"),ne=d("td"),ce=E(ie),ue=R(),de=d("td"),Ee=E(he),$e=R(),oe=d("tr"),ve=d("td"),Ie=E(De),Se=R(),Ve=d("td"),Ge=E(r[1]),this.h()},l(T){e=p(T,"TR",{"data-testid":!0});var N=v(e);a=p(N,"TD",{});var He=v(a);l=D(He,t),He.forEach(s),n=I(N),i=p(N,"TD",{});var Le=v(i);o=D(Le,c),Le.forEach(s),N.forEach(s),u=I(T),g=p(T,"TR",{"data-testid":!0});var Te=v(g);V=p(Te,"TD",{});var ye=v(V);P=D(ye,O),ye.forEach(s),C=I(Te),b=p(Te,"TD",{});var Pe=v(b);K(_.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),y=I(T),w=p(T,"TR",{"data-testid":!0});var Ae=v(w);Y=p(Ae,"TD",{});var Be=v(Y);Z=D(Be,W),Be.forEach(s),k=I(Ae),S=p(Ae,"TD",{});var Oe=v(S);m=D(Oe,G),Oe.forEach(s),Ae.forEach(s),A=I(T),M=p(T,"TR",{"data-testid":!0});var Ce=v(M);x=p(Ce,"TD",{});var Me=v(x);le=D(Me,pe),Me.forEach(s),ee=I(Ce),te=p(Ce,"TD",{});var je=v(te);K(U.$$.fragment,je),je.forEach(s),Ce.forEach(s),ae=I(T),se=p(T,"TR",{"data-testid":!0});var ke=v(se);_e=p(ke,"TD",{});var Ue=v(_e);me=D(Ue,Re),Ue.forEach(s),re=I(ke),fe=p(ke,"TD",{});var st=v(fe);K(h.$$.fragment,st),st.forEach(s),ke.forEach(s),H=I(T),q=p(T,"TR",{"data-testid":!0});var We=v(q);ne=p(We,"TD",{});var rt=v(ne);ce=D(rt,ie),rt.forEach(s),ue=I(We),de=p(We,"TD",{});var nt=v(de);Ee=D(nt,he),nt.forEach(s),We.forEach(s),$e=I(T),oe=p(T,"TR",{"data-testid":!0});var ze=v(oe);ve=p(ze,"TD",{});var ot=v(ve);Ie=D(ot,De),ot.forEach(s),Se=I(ze),Ve=p(ze,"TD",{});var it=v(Ve);Ge=D(it,r[1]),it.forEach(s),ze.forEach(s),this.h()},h(){B(e,"data-testid","namespace-owner"),B(g,"data-testid","namespace-global"),B(w,"data-testid","namespace-retention"),B(M,"data-testid","namespace-history"),B(se,"data-testid","namespace-visibility"),B(q,"data-testid","namespace-failover"),B(oe,"data-testid","namespace-clusters")},m(T,N){$(T,e,N),f(e,a),f(a,l),f(e,n),f(e,i),f(i,o),$(T,u,N),$(T,g,N),f(g,V),f(V,P),f(g,C),f(g,b),Q(_,b,null),$(T,y,N),$(T,w,N),f(w,Y),f(Y,Z),f(w,k),f(w,S),f(S,m),$(T,A,N),$(T,M,N),f(M,x),f(x,le),f(M,ee),f(M,te),Q(U,te,null),$(T,ae,N),$(T,se,N),f(se,_e),f(_e,me),f(se,re),f(se,fe),Q(h,fe,null),$(T,H,N),$(T,q,N),f(q,ne),f(ne,ce),f(q,ue),f(q,de),f(de,Ee),$(T,$e,N),$(T,oe,N),f(oe,ve),f(ve,Ie),f(oe,Se),f(oe,Ve),f(Ve,Ge),ge=!0},p(T,N){var ye,Pe,Ae,Be,Oe,Ce,Me,je,ke,Ue;(!ge||N&1)&&c!==(c=(((Pe=(ye=T[0])==null?void 0:ye.namespaceInfo)==null?void 0:Pe.ownerEmail)||L("common.unknown"))+"")&&z(o,c);const He={};N&1&&(He.type=T[8]((Ae=T[0])==null?void 0:Ae.isGlobalNamespace,!1)),N&131073&&(He.$$scope={dirty:N,ctx:T}),_.$set(He),(!ge||N&1)&&G!==(G=ut((Oe=(Be=T[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&z(m,G);const Le={};N&1&&(Le.type=T[7]((Me=(Ce=T[0])==null?void 0:Ce.config)==null?void 0:Me.historyArchivalState)),N&131073&&(Le.$$scope={dirty:N,ctx:T}),U.$set(Le);const Te={};N&1&&(Te.type=T[7]((ke=(je=T[0])==null?void 0:je.config)==null?void 0:ke.visibilityArchivalState)),N&131073&&(Te.$$scope={dirty:N,ctx:T}),h.$set(Te),(!ge||N&1)&&he!==(he=(((Ue=T[0])==null?void 0:Ue.failoverVersion)||"")+"")&&z(Ee,he),(!ge||N&2)&&z(Ge,T[1])},i(T){ge||(j(_.$$.fragment,T),j(U.$$.fragment,T),j(h.$$.fragment,T),ge=!0)},o(T){F(_.$$.fragment,T),F(U.$$.fragment,T),F(h.$$.fragment,T),ge=!1},d(T){T&&(s(e),s(u),s(g),s(y),s(w),s(A),s(M),s(ae),s(se),s(H),s(q),s($e),s(oe)),X(_),X(U),X(h)}}}function Mt(r){let e,a=`${L("namespaces.namespace")} ${L("common.details")}`,t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function jt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Ut(r){let e,a,t="Temporal Server Version",l,n,i,c,o,u,g="Temporal UI Version",V,O,P;return{c(){e=d("tr"),a=d("td"),a.textContent=t,l=R(),n=d("td"),i=E(r[3]),c=R(),o=d("tr"),u=d("td"),u.textContent=g,V=R(),O=d("td"),P=E(r[4]),this.h()},l(C){e=p(C,"TR",{"data-testid":!0});var b=v(e);a=p(b,"TD",{"data-svelte-h":!0}),Fe(a)!=="svelte-k30jnx"&&(a.textContent=t),l=I(b),n=p(b,"TD",{});var _=v(n);i=D(_,r[3]),_.forEach(s),b.forEach(s),c=I(C),o=p(C,"TR",{"data-testid":!0});var y=v(o);u=p(y,"TD",{"data-svelte-h":!0}),Fe(u)!=="svelte-1agaz4i"&&(u.textContent=g),V=I(y),O=p(y,"TD",{});var w=v(O);P=D(w,r[4]),w.forEach(s),y.forEach(s),this.h()},h(){B(e,"data-testid","server-version"),B(o,"data-testid","ui-version")},m(C,b){$(C,e,b),f(e,a),f(e,l),f(e,n),f(n,i),$(C,c,b),$(C,o,b),f(o,u),f(o,V),f(o,O),f(O,P)},p(C,b){b&8&&z(i,C[3]),b&16&&z(P,C[4])},d(C){C&&(s(e),s(c),s(o))}}}function Ft(r){let e,a=L("namespaces.versions")+"",t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Gt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-10s5xnz"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Wt(r){let e=r[9](r[5].disableWriteActions)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&z(a,e)},d(t){t&&s(a)}}}function zt(r){let e=r[9](r[5].workflowTerminateDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function qt(r){let e=r[9](r[5].workflowCancelDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Jt(r){let e=r[9](r[5].workflowSignalDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Kt(r){let e=r[9](r[5].workflowResetDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Qt(r){let e,a,t=L("namespaces.client-actions")+"",l,n,i,c,o,u,g,V=L("workflows.terminate-modal-title")+"",O,P,C,b,_,y,w,Y=L("workflows.cancel-modal-title")+"",W,Z,k,S,G,m,A,M=L("namespaces.signal-workflow")+"",x,pe,le,ee,te,U,ae,se=L("workflows.reset-modal-title")+"",_e,Re,me,re,fe;return c=new be({props:{class:"px-1 py-0",type:r[8](r[5].disableWriteActions),$$slots:{default:[Wt]},$$scope:{ctx:r}}}),b=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowTerminateDisabled),$$slots:{default:[zt]},$$scope:{ctx:r}}}),S=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:r}}}),ee=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowSignalDisabled),$$slots:{default:[Jt]},$$scope:{ctx:r}}}),re=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowResetDisabled),$$slots:{default:[Kt]},$$scope:{ctx:r}}}),{c(){e=d("tr"),a=d("td"),l=E(t),n=R(),i=d("td"),J(c.$$.fragment),o=R(),u=d("tr"),g=d("td"),O=E(V),P=R(),C=d("td"),J(b.$$.fragment),_=R(),y=d("tr"),w=d("td"),W=E(Y),Z=R(),k=d("td"),J(S.$$.fragment),G=R(),m=d("tr"),A=d("td"),x=E(M),pe=R(),le=d("td"),J(ee.$$.fragment),te=R(),U=d("tr"),ae=d("td"),_e=E(se),Re=R(),me=d("td"),J(re.$$.fragment)},l(h){e=p(h,"TR",{});var H=v(e);a=p(H,"TD",{});var q=v(a);l=D(q,t),q.forEach(s),n=I(H),i=p(H,"TD",{});var ne=v(i);K(c.$$.fragment,ne),ne.forEach(s),H.forEach(s),o=I(h),u=p(h,"TR",{});var ie=v(u);g=p(ie,"TD",{});var ce=v(g);O=D(ce,V),ce.forEach(s),P=I(ie),C=p(ie,"TD",{});var ue=v(C);K(b.$$.fragment,ue),ue.forEach(s),ie.forEach(s),_=I(h),y=p(h,"TR",{});var de=v(y);w=p(de,"TD",{});var he=v(w);W=D(he,Y),he.forEach(s),Z=I(de),k=p(de,"TD",{});var Ee=v(k);K(S.$$.fragment,Ee),Ee.forEach(s),de.forEach(s),G=I(h),m=p(h,"TR",{});var $e=v(m);A=p($e,"TD",{});var oe=v(A);x=D(oe,M),oe.forEach(s),pe=I($e),le=p($e,"TD",{});var ve=v(le);K(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=I(h),U=p(h,"TR",{});var De=v(U);ae=p(De,"TD",{});var Ie=v(ae);_e=D(Ie,se),Ie.forEach(s),Re=I(De),me=p(De,"TD",{});var Se=v(me);K(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m(h,H){$(h,e,H),f(e,a),f(a,l),f(e,n),f(e,i),Q(c,i,null),$(h,o,H),$(h,u,H),f(u,g),f(g,O),f(u,P),f(u,C),Q(b,C,null),$(h,_,H),$(h,y,H),f(y,w),f(w,W),f(y,Z),f(y,k),Q(S,k,null),$(h,G,H),$(h,m,H),f(m,A),f(A,x),f(m,pe),f(m,le),Q(ee,le,null),$(h,te,H),$(h,U,H),f(U,ae),f(ae,_e),f(U,Re),f(U,me),Q(re,me,null),fe=!0},p(h,H){const q={};H&32&&(q.type=h[8](h[5].disableWriteActions)),H&131104&&(q.$$scope={dirty:H,ctx:h}),c.$set(q);const ne={};H&32&&(ne.type=h[8](h[5].workflowTerminateDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:h}),b.$set(ne);const ie={};H&32&&(ie.type=h[8](h[5].workflowCancelDisabled)),H&131104&&(ie.$$scope={dirty:H,ctx:h}),S.$set(ie);const ce={};H&32&&(ce.type=h[8](h[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:h}),ee.$set(ce);const ue={};H&32&&(ue.type=h[8](h[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:h}),re.$set(ue)},i(h){fe||(j(c.$$.fragment,h),j(b.$$.fragment,h),j(S.$$.fragment,h),j(ee.$$.fragment,h),j(re.$$.fragment,h),fe=!0)},o(h){F(c.$$.fragment,h),F(b.$$.fragment,h),F(S.$$.fragment,h),F(ee.$$.fragment,h),F(re.$$.fragment,h),fe=!1},d(h){h&&(s(e),s(o),s(u),s(_),s(y),s(G),s(m),s(te),s(U)),X(c),X(b),X(S),X(ee),X(re)}}}function Xt(r){let e,a=L("namespaces.client-actions")+"",t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Yt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Zt(r){let e,a,t=L("common.details")+"",l,n,i,c,o,u,g=L("namespaces.versions")+"",V,O,P,C,b,_,y=L("namespaces.client-actions")+"",w,Y,W,Z;return i=new qe({props:{variant:"simple",$$slots:{headers:[jt],caption:[Mt],default:[Ot]},$$scope:{ctx:r}}}),P=new qe({props:{variant:"simple",$$slots:{headers:[Gt],caption:[Ft],default:[Ut]},$$scope:{ctx:r}}}),W=new qe({props:{variant:"simple",$$slots:{headers:[Yt],caption:[Xt],default:[Qt]},$$scope:{ctx:r}}}),{c(){e=d("article"),a=d("h3"),l=E(t),n=R(),J(i.$$.fragment),c=R(),o=d("article"),u=d("h3"),V=E(g),O=R(),J(P.$$.fragment),C=R(),b=d("article"),_=d("h3"),w=E(y),Y=R(),J(W.$$.fragment),this.h()},l(k){e=p(k,"ARTICLE",{class:!0});var S=v(e);a=p(S,"H3",{});var G=v(a);l=D(G,t),G.forEach(s),n=I(S),K(i.$$.fragment,S),S.forEach(s),c=I(k),o=p(k,"ARTICLE",{class:!0});var m=v(o);u=p(m,"H3",{});var A=v(u);V=D(A,g),A.forEach(s),O=I(m),K(P.$$.fragment,m),m.forEach(s),C=I(k),b=p(k,"ARTICLE",{class:!0});var M=v(b);_=p(M,"H3",{});var x=v(_);w=D(x,y),x.forEach(s),Y=I(M),K(W.$$.fragment,M),M.forEach(s),this.h()},h(){B(e,"class","namespace-info flex w-full flex-col"),B(o,"class","namespace-info flex w-full flex-col"),B(b,"class","namespace-info flex w-full flex-col")},m(k,S){$(k,e,S),f(e,a),f(a,l),f(e,n),Q(i,e,null),$(k,c,S),$(k,o,S),f(o,u),f(u,V),f(o,O),Q(P,o,null),$(k,C,S),$(k,b,S),f(b,_),f(_,w),f(b,Y),Q(W,b,null),Z=!0},p(k,S){const G={};S&131075&&(G.$$scope={dirty:S,ctx:k}),i.$set(G);const m={};S&131096&&(m.$$scope={dirty:S,ctx:k}),P.$set(m);const A={};S&131104&&(A.$$scope={dirty:S,ctx:k}),W.$set(A)},i(k){Z||(j(i.$$.fragment,k),j(P.$$.fragment,k),j(W.$$.fragment,k),Z=!0)},o(k){F(i.$$.fragment,k),F(P.$$.fragment,k),F(W.$$.fragment,k),Z=!1},d(k){k&&(s(e),s(c),s(o),s(C),s(b)),X(i),X(P),X(W)}}}function pt(r){let e,a,t=L("events.attribute-group.search-attributes")+"",l,n,i,c;return i=new qe({props:{class:"w-full",$$slots:{headers:[la],caption:[ta],default:[ea]},$$scope:{ctx:r}}}),{c(){e=d("section"),a=d("h3"),l=E(t),n=R(),J(i.$$.fragment),this.h()},l(o){e=p(o,"SECTION",{});var u=v(e);a=p(u,"H3",{class:!0});var g=v(a);l=D(g,t),g.forEach(s),n=I(u),K(i.$$.fragment,u),u.forEach(s),this.h()},h(){B(a,"class","my-4")},m(o,u){$(o,e,u),f(e,a),f(a,l),f(e,n),Q(i,e,null),c=!0},p(o,u){const g={};u&131136&&(g.$$scope={dirty:u,ctx:o}),i.$set(g)},i(o){c||(j(i.$$.fragment,o),c=!0)},o(o){F(i.$$.fragment,o),c=!1},d(o){o&&s(e),X(i)}}}function xt(r){let e,a=r[13]+"",t,l,n,i=r[14]+"",c,o;return{c(){e=d("td"),t=E(a),l=R(),n=d("td"),c=E(i),o=R()},l(u){e=p(u,"TD",{});var g=v(e);t=D(g,a),g.forEach(s),l=I(u),n=p(u,"TD",{});var V=v(n);c=D(V,i),V.forEach(s),o=I(u)},m(u,g){$(u,e,g),f(e,t),$(u,l,g),$(u,n,g),f(n,c),$(u,o,g)},p(u,g){g&64&&a!==(a=u[13]+"")&&z(t,a),g&64&&i!==(i=u[14]+"")&&z(c,i)},d(u){u&&(s(e),s(l),s(n),s(o))}}}function _t(r){let e,a;return e=new Rt({props:{$$slots:{default:[xt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,l){Q(e,t,l),a=!0},p(t,l){const n={};l&131136&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){X(e,t)}}}function ea(r){let e,a,t=ft(Object.entries(r[6])),l=[];for(let i=0;iF(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{w=null}),mt())},i(m){y||(j(e.$$.fragment,m),j(C.$$.fragment,m),j(w),y=!0)},o(m){F(e.$$.fragment,m),F(C.$$.fragment,m),F(w),y=!1},d(m){m&&(s(a),s(t),s(u),s(g),s(P),s(b),s(_)),X(e,m),X(C,m),w&&w.d(m)}}}function ra(r,e,a){let t,l,n,i,c,o,u,g;Ne(r,ct,_=>a(12,n=_)),Ne(r,Dt,_=>a(2,i=_)),Ne(r,St,_=>a(3,c=_)),Ne(r,Ht,_=>a(4,o=_)),Ne(r,Lt,_=>a(5,u=_)),Ne(r,It,_=>a(6,g=_));let{data:V}=e;var O;(function(_){_[_.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",_[_.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",_[_.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const P=_=>_===O.ARCHIVAL_STATE_ENABLED?"success":void 0,C=(_,y=!0)=>y?_?void 0:"success":_?"success":void 0,b=_=>_?L("common.disabled"):L("common.enabled");return gt(()=>{var _;bt(ct,n=(_=t==null?void 0:t.namespaceInfo)===null||_===void 0?void 0:_.name,n)}),r.$$set=_=>{"data"in _&&a(10,V=_.data)},r.$$.update=()=>{r.$$.dirty&1024&&a(0,{namespace:t,clusters:l}=V,t,(a(1,l),a(10,V)))},[t,l,i,c,o,u,g,P,C,b,V]}class ba extends wt{constructor(e){super(),Et(this,e,ra,sa,vt,{data:10})}}export{ba as component,Ta as universal}; +import{f as ht}from"../chunks/namespaces-service.CPFqCmJx.js";import{s as vt,b as R,h as d,t as E,x as Je,d as I,j as p,k as v,l as D,f as s,m as B,i as $,n as f,q as z,c as Ne,V as gt,y as Tt,v as we,w as bt,o as Fe}from"../chunks/scheduler.C46pS-76.js";import{S as wt,i as Et,c as J,a as K,m as Q,t as j,b as F,e as mt,d as X,g as $t}from"../chunks/index.dOVbn71B.js";import{e as ft}from"../chunks/each.C6O0oV7R.js";import{p as Dt}from"../chunks/stores.Ds4o9nwd.js";import{P as At}from"../chunks/page-title.DNhqE1Lj.js";import{B as be}from"../chunks/badge.jG5hkqHT.js";import{C as Ct}from"../chunks/card.DbXyfCsc.js";import{T as qe,a as kt,b as Rt}from"../chunks/table.Cg5jABZi.js";import{t as L}from"../chunks/translate.BBe5dcco.js";import{l as ct}from"../chunks/namespaces.DEm0M_ie.js";import{s as It}from"../chunks/search-attributes.Dmice2E5.js";import{t as St,u as Ht,s as Lt}from"../chunks/versions.BSCVnN4z.js";import{f as ut}from"../chunks/format-time.6TuExJAg.js";const Nt=r=>{var t,l;const e=(t=r==null?void 0:r.replicationConfig)==null?void 0:t.clusters,a=(l=r==null?void 0:r.replicationConfig)==null?void 0:l.activeClusterName;return e!=null&&e.length?e.map(({clusterName:n})=>n===a?`${n} (active)`:n).join(", "):"Unknown"},Vt=async function({params:r,parent:e,url:a}){const{searchParams:t}=a;t.has("time-range")&&t.delete("time-range"),await e();const l=await ht(r.namespace),n=Nt(l);return{namespace:l,clusters:n}},Ta=Object.freeze(Object.defineProperty({__proto__:null,load:Vt},Symbol.toStringTag,{value:"Module"}));function dt(r,e,a){const t=r.slice();return t[13]=e[a][0],t[14]=e[a][1],t}function yt(r){var t;let e=((t=r[0])!=null&&t.isGlobalNamespace?L("common.yes"):L("common.no"))+"",a;return{c(){a=E(e)},l(l){a=D(l,e)},m(l,n){$(l,a,n)},p(l,n){var i;n&1&&e!==(e=((i=l[0])!=null&&i.isGlobalNamespace?L("common.yes"):L("common.no"))+"")&&z(a,e)},d(l){l&&s(a)}}}function Pt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.historyArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.historyArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Bt(r){var t,l;let e=((l=(t=r[0])==null?void 0:t.config)==null?void 0:l.visibilityArchivalState)+"",a;return{c(){a=E(e)},l(n){a=D(n,e)},m(n,i){$(n,a,i)},p(n,i){var c,o;i&1&&e!==(e=((o=(c=n[0])==null?void 0:c.config)==null?void 0:o.visibilityArchivalState)+"")&&z(a,e)},d(n){n&&s(a)}}}function Ot(r){var Ke,Qe,Xe,Ye,Ze,xe,et,tt,at,lt;let e,a,t=L("namespaces.owner")+"",l,n,i,c=(((Qe=(Ke=r[0])==null?void 0:Ke.namespaceInfo)==null?void 0:Qe.ownerEmail)||L("common.unknown"))+"",o,u,g,V,O=L("namespaces.global")+"",P,C,b,_,y,w,Y,W=L("namespaces.retention-period")+"",Z,k,S,G=ut((Ye=(Xe=r[0])==null?void 0:Xe.config)==null?void 0:Ye.workflowExecutionRetentionTtl.toString())+"",m,A,M,x,pe=L("namespaces.history-archival")+"",le,ee,te,U,ae,se,_e,Re=L("namespaces.visibility-archival")+"",me,re,fe,h,H,q,ne,ie=L("namespaces.failover-version")+"",ce,ue,de,he=(((Ze=r[0])==null?void 0:Ze.failoverVersion)||"")+"",Ee,$e,oe,ve,De=L("namespaces.clusters")+"",Ie,Se,Ve,Ge,ge;return _=new be({props:{class:"px-1 py-0",type:r[8]((xe=r[0])==null?void 0:xe.isGlobalNamespace,!1),$$slots:{default:[yt]},$$scope:{ctx:r}}}),U=new be({props:{class:"px-1 py-0",type:r[7]((tt=(et=r[0])==null?void 0:et.config)==null?void 0:tt.historyArchivalState),$$slots:{default:[Pt]},$$scope:{ctx:r}}}),h=new be({props:{class:"px-1 py-0",type:r[7]((lt=(at=r[0])==null?void 0:at.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Bt]},$$scope:{ctx:r}}}),{c(){e=d("tr"),a=d("td"),l=E(t),n=R(),i=d("td"),o=E(c),u=R(),g=d("tr"),V=d("td"),P=E(O),C=R(),b=d("td"),J(_.$$.fragment),y=R(),w=d("tr"),Y=d("td"),Z=E(W),k=R(),S=d("td"),m=E(G),A=R(),M=d("tr"),x=d("td"),le=E(pe),ee=R(),te=d("td"),J(U.$$.fragment),ae=R(),se=d("tr"),_e=d("td"),me=E(Re),re=R(),fe=d("td"),J(h.$$.fragment),H=R(),q=d("tr"),ne=d("td"),ce=E(ie),ue=R(),de=d("td"),Ee=E(he),$e=R(),oe=d("tr"),ve=d("td"),Ie=E(De),Se=R(),Ve=d("td"),Ge=E(r[1]),this.h()},l(T){e=p(T,"TR",{"data-testid":!0});var N=v(e);a=p(N,"TD",{});var He=v(a);l=D(He,t),He.forEach(s),n=I(N),i=p(N,"TD",{});var Le=v(i);o=D(Le,c),Le.forEach(s),N.forEach(s),u=I(T),g=p(T,"TR",{"data-testid":!0});var Te=v(g);V=p(Te,"TD",{});var ye=v(V);P=D(ye,O),ye.forEach(s),C=I(Te),b=p(Te,"TD",{});var Pe=v(b);K(_.$$.fragment,Pe),Pe.forEach(s),Te.forEach(s),y=I(T),w=p(T,"TR",{"data-testid":!0});var Ae=v(w);Y=p(Ae,"TD",{});var Be=v(Y);Z=D(Be,W),Be.forEach(s),k=I(Ae),S=p(Ae,"TD",{});var Oe=v(S);m=D(Oe,G),Oe.forEach(s),Ae.forEach(s),A=I(T),M=p(T,"TR",{"data-testid":!0});var Ce=v(M);x=p(Ce,"TD",{});var Me=v(x);le=D(Me,pe),Me.forEach(s),ee=I(Ce),te=p(Ce,"TD",{});var je=v(te);K(U.$$.fragment,je),je.forEach(s),Ce.forEach(s),ae=I(T),se=p(T,"TR",{"data-testid":!0});var ke=v(se);_e=p(ke,"TD",{});var Ue=v(_e);me=D(Ue,Re),Ue.forEach(s),re=I(ke),fe=p(ke,"TD",{});var st=v(fe);K(h.$$.fragment,st),st.forEach(s),ke.forEach(s),H=I(T),q=p(T,"TR",{"data-testid":!0});var We=v(q);ne=p(We,"TD",{});var rt=v(ne);ce=D(rt,ie),rt.forEach(s),ue=I(We),de=p(We,"TD",{});var nt=v(de);Ee=D(nt,he),nt.forEach(s),We.forEach(s),$e=I(T),oe=p(T,"TR",{"data-testid":!0});var ze=v(oe);ve=p(ze,"TD",{});var ot=v(ve);Ie=D(ot,De),ot.forEach(s),Se=I(ze),Ve=p(ze,"TD",{});var it=v(Ve);Ge=D(it,r[1]),it.forEach(s),ze.forEach(s),this.h()},h(){B(e,"data-testid","namespace-owner"),B(g,"data-testid","namespace-global"),B(w,"data-testid","namespace-retention"),B(M,"data-testid","namespace-history"),B(se,"data-testid","namespace-visibility"),B(q,"data-testid","namespace-failover"),B(oe,"data-testid","namespace-clusters")},m(T,N){$(T,e,N),f(e,a),f(a,l),f(e,n),f(e,i),f(i,o),$(T,u,N),$(T,g,N),f(g,V),f(V,P),f(g,C),f(g,b),Q(_,b,null),$(T,y,N),$(T,w,N),f(w,Y),f(Y,Z),f(w,k),f(w,S),f(S,m),$(T,A,N),$(T,M,N),f(M,x),f(x,le),f(M,ee),f(M,te),Q(U,te,null),$(T,ae,N),$(T,se,N),f(se,_e),f(_e,me),f(se,re),f(se,fe),Q(h,fe,null),$(T,H,N),$(T,q,N),f(q,ne),f(ne,ce),f(q,ue),f(q,de),f(de,Ee),$(T,$e,N),$(T,oe,N),f(oe,ve),f(ve,Ie),f(oe,Se),f(oe,Ve),f(Ve,Ge),ge=!0},p(T,N){var ye,Pe,Ae,Be,Oe,Ce,Me,je,ke,Ue;(!ge||N&1)&&c!==(c=(((Pe=(ye=T[0])==null?void 0:ye.namespaceInfo)==null?void 0:Pe.ownerEmail)||L("common.unknown"))+"")&&z(o,c);const He={};N&1&&(He.type=T[8]((Ae=T[0])==null?void 0:Ae.isGlobalNamespace,!1)),N&131073&&(He.$$scope={dirty:N,ctx:T}),_.$set(He),(!ge||N&1)&&G!==(G=ut((Oe=(Be=T[0])==null?void 0:Be.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&z(m,G);const Le={};N&1&&(Le.type=T[7]((Me=(Ce=T[0])==null?void 0:Ce.config)==null?void 0:Me.historyArchivalState)),N&131073&&(Le.$$scope={dirty:N,ctx:T}),U.$set(Le);const Te={};N&1&&(Te.type=T[7]((ke=(je=T[0])==null?void 0:je.config)==null?void 0:ke.visibilityArchivalState)),N&131073&&(Te.$$scope={dirty:N,ctx:T}),h.$set(Te),(!ge||N&1)&&he!==(he=(((Ue=T[0])==null?void 0:Ue.failoverVersion)||"")+"")&&z(Ee,he),(!ge||N&2)&&z(Ge,T[1])},i(T){ge||(j(_.$$.fragment,T),j(U.$$.fragment,T),j(h.$$.fragment,T),ge=!0)},o(T){F(_.$$.fragment,T),F(U.$$.fragment,T),F(h.$$.fragment,T),ge=!1},d(T){T&&(s(e),s(u),s(g),s(y),s(w),s(A),s(M),s(ae),s(se),s(H),s(q),s($e),s(oe)),X(_),X(U),X(h)}}}function Mt(r){let e,a=`${L("namespaces.namespace")} ${L("common.details")}`,t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function jt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Ut(r){let e,a,t="Temporal Server Version",l,n,i,c,o,u,g="Temporal UI Version",V,O,P;return{c(){e=d("tr"),a=d("td"),a.textContent=t,l=R(),n=d("td"),i=E(r[3]),c=R(),o=d("tr"),u=d("td"),u.textContent=g,V=R(),O=d("td"),P=E(r[4]),this.h()},l(C){e=p(C,"TR",{"data-testid":!0});var b=v(e);a=p(b,"TD",{"data-svelte-h":!0}),Fe(a)!=="svelte-k30jnx"&&(a.textContent=t),l=I(b),n=p(b,"TD",{});var _=v(n);i=D(_,r[3]),_.forEach(s),b.forEach(s),c=I(C),o=p(C,"TR",{"data-testid":!0});var y=v(o);u=p(y,"TD",{"data-svelte-h":!0}),Fe(u)!=="svelte-1agaz4i"&&(u.textContent=g),V=I(y),O=p(y,"TD",{});var w=v(O);P=D(w,r[4]),w.forEach(s),y.forEach(s),this.h()},h(){B(e,"data-testid","server-version"),B(o,"data-testid","ui-version")},m(C,b){$(C,e,b),f(e,a),f(e,l),f(e,n),f(n,i),$(C,c,b),$(C,o,b),f(o,u),f(o,V),f(o,O),f(O,P)},p(C,b){b&8&&z(i,C[3]),b&16&&z(P,C[4])},d(C){C&&(s(e),s(c),s(o))}}}function Ft(r){let e,a=L("namespaces.versions")+"",t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Gt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-10s5xnz"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Wt(r){let e=r[9](r[5].disableWriteActions)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&z(a,e)},d(t){t&&s(a)}}}function zt(r){let e=r[9](r[5].workflowTerminateDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function qt(r){let e=r[9](r[5].workflowCancelDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Jt(r){let e=r[9](r[5].workflowSignalDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Kt(r){let e=r[9](r[5].workflowResetDisabled)+"",a;return{c(){a=E(e)},l(t){a=D(t,e)},m(t,l){$(t,a,l)},p(t,l){l&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&z(a,e)},d(t){t&&s(a)}}}function Qt(r){let e,a,t=L("namespaces.client-actions")+"",l,n,i,c,o,u,g,V=L("workflows.terminate-modal-title")+"",O,P,C,b,_,y,w,Y=L("workflows.cancel-modal-title")+"",W,Z,k,S,G,m,A,M=L("namespaces.signal-workflow")+"",x,pe,le,ee,te,U,ae,se=L("workflows.reset-modal-title")+"",_e,Re,me,re,fe;return c=new be({props:{class:"px-1 py-0",type:r[8](r[5].disableWriteActions),$$slots:{default:[Wt]},$$scope:{ctx:r}}}),b=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowTerminateDisabled),$$slots:{default:[zt]},$$scope:{ctx:r}}}),S=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowCancelDisabled),$$slots:{default:[qt]},$$scope:{ctx:r}}}),ee=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowSignalDisabled),$$slots:{default:[Jt]},$$scope:{ctx:r}}}),re=new be({props:{class:"px-1 py-0",type:r[8](r[5].workflowResetDisabled),$$slots:{default:[Kt]},$$scope:{ctx:r}}}),{c(){e=d("tr"),a=d("td"),l=E(t),n=R(),i=d("td"),J(c.$$.fragment),o=R(),u=d("tr"),g=d("td"),O=E(V),P=R(),C=d("td"),J(b.$$.fragment),_=R(),y=d("tr"),w=d("td"),W=E(Y),Z=R(),k=d("td"),J(S.$$.fragment),G=R(),m=d("tr"),A=d("td"),x=E(M),pe=R(),le=d("td"),J(ee.$$.fragment),te=R(),U=d("tr"),ae=d("td"),_e=E(se),Re=R(),me=d("td"),J(re.$$.fragment)},l(h){e=p(h,"TR",{});var H=v(e);a=p(H,"TD",{});var q=v(a);l=D(q,t),q.forEach(s),n=I(H),i=p(H,"TD",{});var ne=v(i);K(c.$$.fragment,ne),ne.forEach(s),H.forEach(s),o=I(h),u=p(h,"TR",{});var ie=v(u);g=p(ie,"TD",{});var ce=v(g);O=D(ce,V),ce.forEach(s),P=I(ie),C=p(ie,"TD",{});var ue=v(C);K(b.$$.fragment,ue),ue.forEach(s),ie.forEach(s),_=I(h),y=p(h,"TR",{});var de=v(y);w=p(de,"TD",{});var he=v(w);W=D(he,Y),he.forEach(s),Z=I(de),k=p(de,"TD",{});var Ee=v(k);K(S.$$.fragment,Ee),Ee.forEach(s),de.forEach(s),G=I(h),m=p(h,"TR",{});var $e=v(m);A=p($e,"TD",{});var oe=v(A);x=D(oe,M),oe.forEach(s),pe=I($e),le=p($e,"TD",{});var ve=v(le);K(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=I(h),U=p(h,"TR",{});var De=v(U);ae=p(De,"TD",{});var Ie=v(ae);_e=D(Ie,se),Ie.forEach(s),Re=I(De),me=p(De,"TD",{});var Se=v(me);K(re.$$.fragment,Se),Se.forEach(s),De.forEach(s)},m(h,H){$(h,e,H),f(e,a),f(a,l),f(e,n),f(e,i),Q(c,i,null),$(h,o,H),$(h,u,H),f(u,g),f(g,O),f(u,P),f(u,C),Q(b,C,null),$(h,_,H),$(h,y,H),f(y,w),f(w,W),f(y,Z),f(y,k),Q(S,k,null),$(h,G,H),$(h,m,H),f(m,A),f(A,x),f(m,pe),f(m,le),Q(ee,le,null),$(h,te,H),$(h,U,H),f(U,ae),f(ae,_e),f(U,Re),f(U,me),Q(re,me,null),fe=!0},p(h,H){const q={};H&32&&(q.type=h[8](h[5].disableWriteActions)),H&131104&&(q.$$scope={dirty:H,ctx:h}),c.$set(q);const ne={};H&32&&(ne.type=h[8](h[5].workflowTerminateDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:h}),b.$set(ne);const ie={};H&32&&(ie.type=h[8](h[5].workflowCancelDisabled)),H&131104&&(ie.$$scope={dirty:H,ctx:h}),S.$set(ie);const ce={};H&32&&(ce.type=h[8](h[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:h}),ee.$set(ce);const ue={};H&32&&(ue.type=h[8](h[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:h}),re.$set(ue)},i(h){fe||(j(c.$$.fragment,h),j(b.$$.fragment,h),j(S.$$.fragment,h),j(ee.$$.fragment,h),j(re.$$.fragment,h),fe=!0)},o(h){F(c.$$.fragment,h),F(b.$$.fragment,h),F(S.$$.fragment,h),F(ee.$$.fragment,h),F(re.$$.fragment,h),fe=!1},d(h){h&&(s(e),s(o),s(u),s(_),s(y),s(G),s(m),s(te),s(U)),X(c),X(b),X(S),X(ee),X(re)}}}function Xt(r){let e,a=L("namespaces.client-actions")+"",t;return{c(){e=d("caption"),t=E(a),this.h()},l(l){e=p(l,"CAPTION",{class:!0,slot:!0});var n=v(e);t=D(n,a),n.forEach(s),this.h()},h(){B(e,"class","sr-only"),B(e,"slot","caption")},m(l,n){$(l,e,n),f(e,t)},p:we,d(l){l&&s(e)}}}function Yt(r){let e,a='';return{c(){e=d("tr"),e.innerHTML=a,this.h()},l(t){e=p(t,"TR",{slot:!0,"data-svelte-h":!0}),Fe(e)!=="svelte-1o0fni"&&(e.innerHTML=a),this.h()},h(){B(e,"slot","headers")},m(t,l){$(t,e,l)},p:we,d(t){t&&s(e)}}}function Zt(r){let e,a,t=L("common.details")+"",l,n,i,c,o,u,g=L("namespaces.versions")+"",V,O,P,C,b,_,y=L("namespaces.client-actions")+"",w,Y,W,Z;return i=new qe({props:{variant:"simple",$$slots:{headers:[jt],caption:[Mt],default:[Ot]},$$scope:{ctx:r}}}),P=new qe({props:{variant:"simple",$$slots:{headers:[Gt],caption:[Ft],default:[Ut]},$$scope:{ctx:r}}}),W=new qe({props:{variant:"simple",$$slots:{headers:[Yt],caption:[Xt],default:[Qt]},$$scope:{ctx:r}}}),{c(){e=d("article"),a=d("h3"),l=E(t),n=R(),J(i.$$.fragment),c=R(),o=d("article"),u=d("h3"),V=E(g),O=R(),J(P.$$.fragment),C=R(),b=d("article"),_=d("h3"),w=E(y),Y=R(),J(W.$$.fragment),this.h()},l(k){e=p(k,"ARTICLE",{class:!0});var S=v(e);a=p(S,"H3",{});var G=v(a);l=D(G,t),G.forEach(s),n=I(S),K(i.$$.fragment,S),S.forEach(s),c=I(k),o=p(k,"ARTICLE",{class:!0});var m=v(o);u=p(m,"H3",{});var A=v(u);V=D(A,g),A.forEach(s),O=I(m),K(P.$$.fragment,m),m.forEach(s),C=I(k),b=p(k,"ARTICLE",{class:!0});var M=v(b);_=p(M,"H3",{});var x=v(_);w=D(x,y),x.forEach(s),Y=I(M),K(W.$$.fragment,M),M.forEach(s),this.h()},h(){B(e,"class","namespace-info flex w-full flex-col"),B(o,"class","namespace-info flex w-full flex-col"),B(b,"class","namespace-info flex w-full flex-col")},m(k,S){$(k,e,S),f(e,a),f(a,l),f(e,n),Q(i,e,null),$(k,c,S),$(k,o,S),f(o,u),f(u,V),f(o,O),Q(P,o,null),$(k,C,S),$(k,b,S),f(b,_),f(_,w),f(b,Y),Q(W,b,null),Z=!0},p(k,S){const G={};S&131075&&(G.$$scope={dirty:S,ctx:k}),i.$set(G);const m={};S&131096&&(m.$$scope={dirty:S,ctx:k}),P.$set(m);const A={};S&131104&&(A.$$scope={dirty:S,ctx:k}),W.$set(A)},i(k){Z||(j(i.$$.fragment,k),j(P.$$.fragment,k),j(W.$$.fragment,k),Z=!0)},o(k){F(i.$$.fragment,k),F(P.$$.fragment,k),F(W.$$.fragment,k),Z=!1},d(k){k&&(s(e),s(c),s(o),s(C),s(b)),X(i),X(P),X(W)}}}function pt(r){let e,a,t=L("events.attribute-group.search-attributes")+"",l,n,i,c;return i=new qe({props:{class:"w-full",$$slots:{headers:[la],caption:[ta],default:[ea]},$$scope:{ctx:r}}}),{c(){e=d("section"),a=d("h3"),l=E(t),n=R(),J(i.$$.fragment),this.h()},l(o){e=p(o,"SECTION",{});var u=v(e);a=p(u,"H3",{class:!0});var g=v(a);l=D(g,t),g.forEach(s),n=I(u),K(i.$$.fragment,u),u.forEach(s),this.h()},h(){B(a,"class","my-4")},m(o,u){$(o,e,u),f(e,a),f(a,l),f(e,n),Q(i,e,null),c=!0},p(o,u){const g={};u&131136&&(g.$$scope={dirty:u,ctx:o}),i.$set(g)},i(o){c||(j(i.$$.fragment,o),c=!0)},o(o){F(i.$$.fragment,o),c=!1},d(o){o&&s(e),X(i)}}}function xt(r){let e,a=r[13]+"",t,l,n,i=r[14]+"",c,o;return{c(){e=d("td"),t=E(a),l=R(),n=d("td"),c=E(i),o=R()},l(u){e=p(u,"TD",{});var g=v(e);t=D(g,a),g.forEach(s),l=I(u),n=p(u,"TD",{});var V=v(n);c=D(V,i),V.forEach(s),o=I(u)},m(u,g){$(u,e,g),f(e,t),$(u,l,g),$(u,n,g),f(n,c),$(u,o,g)},p(u,g){g&64&&a!==(a=u[13]+"")&&z(t,a),g&64&&i!==(i=u[14]+"")&&z(c,i)},d(u){u&&(s(e),s(l),s(n),s(o))}}}function _t(r){let e,a;return e=new Rt({props:{$$slots:{default:[xt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){K(e.$$.fragment,t)},m(t,l){Q(e,t,l),a=!0},p(t,l){const n={};l&131136&&(n.$$scope={dirty:l,ctx:t}),e.$set(n)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){X(e,t)}}}function ea(r){let e,a,t=ft(Object.entries(r[6])),l=[];for(let i=0;iF(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{w=null}),mt())},i(m){y||(j(e.$$.fragment,m),j(C.$$.fragment,m),j(w),y=!0)},o(m){F(e.$$.fragment,m),F(C.$$.fragment,m),F(w),y=!1},d(m){m&&(s(a),s(t),s(u),s(g),s(P),s(b),s(_)),X(e,m),X(C,m),w&&w.d(m)}}}function ra(r,e,a){let t,l,n,i,c,o,u,g;Ne(r,ct,_=>a(12,n=_)),Ne(r,Dt,_=>a(2,i=_)),Ne(r,St,_=>a(3,c=_)),Ne(r,Ht,_=>a(4,o=_)),Ne(r,Lt,_=>a(5,u=_)),Ne(r,It,_=>a(6,g=_));let{data:V}=e;var O;(function(_){_[_.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",_[_.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",_[_.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const P=_=>_===O.ARCHIVAL_STATE_ENABLED?"success":void 0,C=(_,y=!0)=>y?_?void 0:"success":_?"success":void 0,b=_=>_?L("common.disabled"):L("common.enabled");return gt(()=>{var _;bt(ct,n=(_=t==null?void 0:t.namespaceInfo)===null||_===void 0?void 0:_.name,n)}),r.$$set=_=>{"data"in _&&a(10,V=_.data)},r.$$.update=()=>{r.$$.dirty&1024&&a(0,{namespace:t,clusters:l}=V,t,(a(1,l),a(10,V)))},[t,l,i,c,o,u,g,P,C,b,V]}class ba extends wt{constructor(e){super(),Et(this,e,ra,sa,vt,{data:10})}}export{ba as component,Ta as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/2.BOq6cVGU.js b/ui/assets/local/_app/immutable/nodes/2.gAdzXo33.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/2.BOq6cVGU.js rename to ui/assets/local/_app/immutable/nodes/2.gAdzXo33.js index 592db35d2..c1bff54b1 100644 --- a/ui/assets/local/_app/immutable/nodes/2.BOq6cVGU.js +++ b/ui/assets/local/_app/immutable/nodes/2.gAdzXo33.js @@ -1,4 +1,4 @@ -import{r as Tn}from"../chunks/index.g5YcAAdQ.js";import{r as tn,a as nn,n as Fe}from"../chunks/route-for-api.BTloiRV6.js";import{a as En}from"../chunks/namespaces-service.24nHfQvn.js";import{f as Cn}from"../chunks/settings-service.6ZfKSI4U.js";import{c as ln,s as Ln,g as In,a as on}from"../chunks/auth-user.BOlglCm6.js";import{B as rn}from"../chunks/prod-browser.CoG0geaG.js";import{a as Bn}from"../chunks/atob.ODDrCDK_.js";import{p as Nn}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{o as sn,a as ze,e as qe,l as lt,n as ot,C as Sn,D as Dn,h as An,r as Vn}from"../chunks/route-for.BjP6gGR7.js";/* empty css */import{s as K,h as N,b as D,t as Y,j as S,k as V,d as A,l as J,f as $,m as v,H as ee,i as k,n as I,q as ce,c as j,z as re,A as ge,x as q,y as Se,N as Ye,O as Je,p as he,F as an,X as zn,V as yn,w as le,v as oe,Y as Ie,G as fn,a as se,a0 as Hn,u as ie,g as ae,e as fe,M as On,W as ye,a9 as Ze,D as $e,E as He,P as Pe,r as Rn,U as rt}from"../chunks/scheduler.C46pS-76.js";import{S as Q,i as X,t as g,g as W,b,e as G,c as w,a as T,m as E,d as C,f as xe,h as Pn,k as Un,j as st}from"../chunks/index.dOVbn71B.js";import{b as jn,w as Qe,a as Mn,g as it}from"../chunks/entry.DLEzeuD9.js";import{p as Te,u as Fn}from"../chunks/stores.Dz-RNcUk.js";import{s as at,a as ft}from"../chunks/index.mPGqfhEB.js";import{B as we}from"../chunks/button.BpRIS9ld.js";import{I as _e}from"../chunks/icon.CfkHLDdJ.js";import{L as cn}from"../chunks/logo.Ce1lSHm5.js";import{t as B}from"../chunks/translate.BBe5dcco.js";import{l as ke,n as qn}from"../chunks/namespaces.619_s9Tr.js";import{e as de,u as Wn,o as Gn}from"../chunks/each.C6O0oV7R.js";import{p as un}from"../chunks/persist-store.Bvu2qNDI.js";import{I as mn}from"../chunks/input.CTzUOpgs.js";import{v as Le,D as dn}from"../chunks/data-encoder-settings.87VBLn14.js";import{M as _n}from"../chunks/menu-button.20KWkPAy.js";import{M as pn,a as gn,d as Be}from"../chunks/menu.FCESMtRU.js";import{M as hn}from"../chunks/checkbox.CZ5w22eC.js";import{T as Kn}from"../chunks/toggle-switch.C9lxIG0w.js";import{r as Ae,t as Ve,c as Qn,T as ct,e as ut,h as mt}from"../chunks/time-format.D2wF3ave.js";import{c as Xn}from"../chunks/format-camel-case.ByTIZu23.js";import{d as et}from"../chunks/data-encoder.rFK9EOf0.js";import{d as Yn,u as Oe}from"../chunks/dark-mode.DlqJSTFW.js";import{t as ve}from"../chunks/tw-merge.Ds6tgvmq.js";import{g as Ue,a as bn}from"../chunks/spread.CgU5AtxT.js";import{c as Jn}from"../chunks/index.Bb4qSo10.js";import{L as $n}from"../chunks/link.BJceiGbc.js";import{I as je}from"../chunks/icon-button.CDcPAnTL.js";import{T as Me}from"../chunks/tooltip.D2lOlqUw.js";import{C as Zn}from"../chunks/combobox.Iz37dSfH.js";import{E as xn}from"../chunks/error.aZkLDhWZ.js";import{e as We,d as Ge,i as dt,b as el}from"../chunks/active-events.B1lGV7ud.js";import{f as tl,h as nl}from"../chunks/events.Dh9P6F73.js";import{i as ll}from"../chunks/batch-operations.BeHaOhdY.js";import{t as _t}from"../chunks/toaster.D-OAJjvv.js";const ol=async(o,e=fetch)=>{if(o.runtimeEnvironment.isCloud)return;const n=tn("cluster");return await nn(n,{request:e}).then(t=>t)},rl=async(o,e=fetch)=>{if(o.runtimeEnvironment.isCloud)return;const n=tn("systemInfo");return await nn(n,{request:e}).then(t=>t)},Re="user",sl=(o=rn)=>{if(!o)return{};const e=document.cookie.split(";");let n=0,t=e.find(r=>r.includes(Re+n)),l="";for(;t;){const[r,s]=t.split("=");l+=s,n++,t=e.find(a=>a.includes(Re+n))}if(l)try{const r=Bn(l),s=Nn(r);return{accessToken:s==null?void 0:s.AccessToken,idToken:s==null?void 0:s.IDToken,name:s==null?void 0:s.Name,picture:s==null?void 0:s.Picture,email:s==null?void 0:s.Email}}catch(r){console.error(r)}return{}},pt=(o=rn)=>{if(!o)return;const e=document.cookie.split(";");let n=0,t=e.find(l=>l.includes(Re+n));for(;t;){const[l]=t.split("=");document.cookie=`${l}=; max-age=-1; path=/`,n++,t=e.find(r=>r.includes(Re+n))}},il=(o,e)=>!o.auth.enabled||!!(e!=null&&e.accessToken),al=async function({fetch:o}){const e=await Cn(o);e.auth.enabled||(pt(),ln());const n=sl();n!=null&&n.accessToken&&(Ln(n),pt());const t=In();il(e,t)||Tn(302,sn()),En(e,o);const l=await ol(e,o),r=await rl(e,o);return{user:t,settings:e,cluster:l,systemInfo:r}},Vs=Object.freeze(Object.defineProperty({__proto__:null,load:al},Symbol.toStringTag,{value:"Module"})),Xe=un("navOpen",!1);function gt(o){let e,n,t;return n=new _e({props:{name:o[2],animate:o[4]}}),{c(){e=N("div"),w(n.$$.fragment),this.h()},l(l){e=S(l,"DIV",{class:!0,"data-tooltip":!0});var r=V(e);T(n.$$.fragment,r),r.forEach($),this.h()},h(){v(e,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),v(e,"data-tooltip",o[3])},m(l,r){k(l,e,r),E(n,e,null),t=!0},p(l,r){const s={};r&4&&(s.name=l[2]),r&16&&(s.animate=l[4]),n.$set(s),(!t||r&8)&&v(e,"data-tooltip",l[3])},i(l){t||(g(n.$$.fragment,l),t=!0)},o(l){b(n.$$.fragment,l),t=!1},d(l){l&&$(e),C(n)}}}function fl(o){let e,n,t,l,r,s,a,i,f,c=o[2]&>(o);return{c(){e=N("div"),n=N("a"),c&&c.c(),t=D(),l=N("div"),r=Y(o[1]),this.h()},l(m){e=S(m,"DIV",{role:!0,"data-testid":!0,class:!0});var _=V(e);n=S(_,"A",{href:!0,rel:!0,target:!0,"aria-hidden":!0,"aria-disabled":!0,tabindex:!0,class:!0});var u=V(n);c&&c.l(u),t=A(u),l=S(u,"DIV",{class:!0});var p=V(l);r=J(p,o[1]),p.forEach($),u.forEach($),_.forEach($),this.h()},h(){var m;v(l,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),ee(l,"pointer-events-none",!o[9]),v(n,"href",o[0]),v(n,"rel",o[8]),v(n,"target",o[7]),v(n,"aria-hidden",s=o[5]?"true":"false"),v(n,"aria-disabled",o[5]),v(n,"tabindex",a=o[5]?-1:0),v(n,"class","mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium svelte-9yb72z"),ee(n,"disabled",o[5]),ee(n,"active",o[6]),ee(n,"text-disabled",o[5]),v(e,"role","listitem"),v(e,"data-testid",i=((m=o[10])==null?void 0:m["data-testid"])||`${o[2]}-button`),v(e,"class","relative")},m(m,_){k(m,e,_),I(e,n),c&&c.m(n,null),I(n,t),I(n,l),I(l,r),f=!0},p(m,[_]){var u;m[2]?c?(c.p(m,_),_&4&&g(c,1)):(c=gt(m),c.c(),g(c,1),c.m(n,t)):c&&(W(),b(c,1,1,()=>{c=null}),G()),(!f||_&2)&&ce(r,m[1]),(!f||_&512)&&ee(l,"pointer-events-none",!m[9]),(!f||_&1)&&v(n,"href",m[0]),(!f||_&256)&&v(n,"rel",m[8]),(!f||_&128)&&v(n,"target",m[7]),(!f||_&32&&s!==(s=m[5]?"true":"false"))&&v(n,"aria-hidden",s),(!f||_&32)&&v(n,"aria-disabled",m[5]),(!f||_&32&&a!==(a=m[5]?-1:0))&&v(n,"tabindex",a),(!f||_&32)&&ee(n,"disabled",m[5]),(!f||_&64)&&ee(n,"active",m[6]),(!f||_&32)&&ee(n,"text-disabled",m[5]),(!f||_&1028&&i!==(i=((u=m[10])==null?void 0:u["data-testid"])||`${m[2]}-button`))&&v(e,"data-testid",i)},i(m){f||(g(c),f=!0)},o(m){b(c),f=!1},d(m){m&&$(e),c&&c.d()}}}function cl(o,e,n){let t,l,r,s,a;j(o,Te,d=>n(13,s=d)),j(o,Xe,d=>n(9,a=d));let{link:i}=e,{label:f}=e,{icon:c=void 0}=e,{tooltip:m=f}=e,{external:_=!1}=e,{animate:u=!1}=e,{disabled:p=!1}=e,{isActive:h=void 0}=e;return o.$$set=d=>{n(10,e=re(re({},e),ge(d))),"link"in d&&n(0,i=d.link),"label"in d&&n(1,f=d.label),"icon"in d&&n(2,c=d.icon),"tooltip"in d&&n(3,m=d.tooltip),"external"in d&&n(11,_=d.external),"animate"in d&&n(4,u=d.animate),"disabled"in d&&n(5,p=d.disabled),"isActive"in d&&n(12,h=d.isActive)},o.$$.update=()=>{o.$$.dirty&2048&&n(8,t=_?"noopener noreferrer":""),o.$$.dirty&2048&&n(7,l=_?"_blank":""),o.$$.dirty&12288&&n(6,r=h&&h(s.url.href))},e=ge(e),[i,f,c,m,u,p,r,l,t,a,e,_,h,s]}class vn extends Q{constructor(e){super(),X(this,e,cl,fl,K,{link:0,label:1,icon:2,tooltip:3,external:11,animate:4,disabled:5,isActive:12})}}function ht(o,e,n){const t=o.slice();return t[2]=e[n],t}function bt(o){let e,n,t=de(o[1]),l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){e=N("div");for(let s=0;s{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}function ml(o,e,n){let{open:t=!1}=e,{linkList:l}=e;return o.$$set=r=>{"open"in r&&n(0,t=r.open),"linkList"in r&&n(1,l=r.linkList)},[t,l]}class dl extends Q{constructor(e){super(),X(this,e,ml,ul,K,{open:0,linkList:1})}}function kt(o,e,n){const t=o.slice();return t[7]=e[n].namespace,t[8]=e[n].onClick,t}function wt(o){let e,n,t,l,r;function s(c){o[5](c)}let a={id:"namespace-search",type:"search",label:"Namespace search",labelHidden:!0,autoFocus:!0,placeholder:"Search",class:"sticky top-0 w-full"};o[1]!==void 0&&(a.value=o[1]),n=new mn({props:a}),Ye.push(()=>xe(n,"value",s));let i=de(o[2]),f=[];for(let c=0;ct=!1)),n.$set(_),m&12){i=de(c[2]);let u;for(u=0;u{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}function pl(o,e,n){let t,l;j(o,ke,c=>n(3,l=c));let{open:r=!1}=e,{namespaceList:s=[]}=e,a="";function i(c){a=c,n(1,a)}const f=(c,m)=>c(m);return o.$$set=c=>{"open"in c&&n(0,r=c.open),"namespaceList"in c&&n(4,s=c.namespaceList)},o.$$.update=()=>{o.$$.dirty&18&&n(2,t=(a?s.filter(({namespace:c})=>c.includes(a)):s).sort((c,m)=>c.namespace.localeCompare(m.namespace)))},[r,a,t,l,s,i,f]}class gl extends Q{constructor(e){super(),X(this,e,pl,_l,K,{open:0,namespaceList:4})}}function Et(o,e,n){const t=o.slice();return t[18]=e[n].value,t[19]=e[n].label,t[20]=e[n].offset,t[21]=e[n].abbr,t}function Ct(o,e,n){const t=o.slice();return t[18]=e[n].value,t[19]=e[n].label,t}function hl(o){let e;return{c(){e=Y(o[3])},l(n){e=J(n,o[3])},m(n,t){k(n,e,t)},p(n,t){t&8&&ce(e,n[3])},d(n){n&&$(e)}}}function bl(o){let e,n;return e=new _e({props:{slot:"leading",name:"clock"}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:oe,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Lt(o){let e,n,t,l,r,s,a,i=de(o[7]),f=[];for(let u=0;ub(f[u],1,1,()=>{f[u]=null});function m(u){o[16](u)}let _={label:B("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return o[5]!==void 0&&(_.checked=o[5]),t=new Kn({props:_}),Ye.push(()=>xe(t,"checked",m)),t.$on("change",o[9]),s=new hn({}),{c(){for(let u=0;ul=!1)),t.$set(h)},i(u){if(!a){for(let p=0;p{if(o.runtimeEnvironment.isCloud)return;const n=tn("cluster");return await nn(n,{request:e}).then(t=>t)},rl=async(o,e=fetch)=>{if(o.runtimeEnvironment.isCloud)return;const n=tn("systemInfo");return await nn(n,{request:e}).then(t=>t)},Re="user",sl=(o=rn)=>{if(!o)return{};const e=document.cookie.split(";");let n=0,t=e.find(r=>r.includes(Re+n)),l="";for(;t;){const[r,s]=t.split("=");l+=s,n++,t=e.find(a=>a.includes(Re+n))}if(l)try{const r=Bn(l),s=Nn(r);return{accessToken:s==null?void 0:s.AccessToken,idToken:s==null?void 0:s.IDToken,name:s==null?void 0:s.Name,picture:s==null?void 0:s.Picture,email:s==null?void 0:s.Email}}catch(r){console.error(r)}return{}},pt=(o=rn)=>{if(!o)return;const e=document.cookie.split(";");let n=0,t=e.find(l=>l.includes(Re+n));for(;t;){const[l]=t.split("=");document.cookie=`${l}=; max-age=-1; path=/`,n++,t=e.find(r=>r.includes(Re+n))}},il=(o,e)=>!o.auth.enabled||!!(e!=null&&e.accessToken),al=async function({fetch:o}){const e=await Cn(o);e.auth.enabled||(pt(),ln());const n=sl();n!=null&&n.accessToken&&(Ln(n),pt());const t=In();il(e,t)||Tn(302,sn()),En(e,o);const l=await ol(e,o),r=await rl(e,o);return{user:t,settings:e,cluster:l,systemInfo:r}},Vs=Object.freeze(Object.defineProperty({__proto__:null,load:al},Symbol.toStringTag,{value:"Module"})),Xe=un("navOpen",!1);function gt(o){let e,n,t;return n=new _e({props:{name:o[2],animate:o[4]}}),{c(){e=N("div"),w(n.$$.fragment),this.h()},l(l){e=S(l,"DIV",{class:!0,"data-tooltip":!0});var r=V(e);T(n.$$.fragment,r),r.forEach($),this.h()},h(){v(e,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),v(e,"data-tooltip",o[3])},m(l,r){k(l,e,r),E(n,e,null),t=!0},p(l,r){const s={};r&4&&(s.name=l[2]),r&16&&(s.animate=l[4]),n.$set(s),(!t||r&8)&&v(e,"data-tooltip",l[3])},i(l){t||(g(n.$$.fragment,l),t=!0)},o(l){b(n.$$.fragment,l),t=!1},d(l){l&&$(e),C(n)}}}function fl(o){let e,n,t,l,r,s,a,i,f,c=o[2]&>(o);return{c(){e=N("div"),n=N("a"),c&&c.c(),t=D(),l=N("div"),r=Y(o[1]),this.h()},l(m){e=S(m,"DIV",{role:!0,"data-testid":!0,class:!0});var _=V(e);n=S(_,"A",{href:!0,rel:!0,target:!0,"aria-hidden":!0,"aria-disabled":!0,tabindex:!0,class:!0});var u=V(n);c&&c.l(u),t=A(u),l=S(u,"DIV",{class:!0});var p=V(l);r=J(p,o[1]),p.forEach($),u.forEach($),_.forEach($),this.h()},h(){var m;v(l,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),ee(l,"pointer-events-none",!o[9]),v(n,"href",o[0]),v(n,"rel",o[8]),v(n,"target",o[7]),v(n,"aria-hidden",s=o[5]?"true":"false"),v(n,"aria-disabled",o[5]),v(n,"tabindex",a=o[5]?-1:0),v(n,"class","mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium svelte-9yb72z"),ee(n,"disabled",o[5]),ee(n,"active",o[6]),ee(n,"text-disabled",o[5]),v(e,"role","listitem"),v(e,"data-testid",i=((m=o[10])==null?void 0:m["data-testid"])||`${o[2]}-button`),v(e,"class","relative")},m(m,_){k(m,e,_),I(e,n),c&&c.m(n,null),I(n,t),I(n,l),I(l,r),f=!0},p(m,[_]){var u;m[2]?c?(c.p(m,_),_&4&&g(c,1)):(c=gt(m),c.c(),g(c,1),c.m(n,t)):c&&(W(),b(c,1,1,()=>{c=null}),G()),(!f||_&2)&&ce(r,m[1]),(!f||_&512)&&ee(l,"pointer-events-none",!m[9]),(!f||_&1)&&v(n,"href",m[0]),(!f||_&256)&&v(n,"rel",m[8]),(!f||_&128)&&v(n,"target",m[7]),(!f||_&32&&s!==(s=m[5]?"true":"false"))&&v(n,"aria-hidden",s),(!f||_&32)&&v(n,"aria-disabled",m[5]),(!f||_&32&&a!==(a=m[5]?-1:0))&&v(n,"tabindex",a),(!f||_&32)&&ee(n,"disabled",m[5]),(!f||_&64)&&ee(n,"active",m[6]),(!f||_&32)&&ee(n,"text-disabled",m[5]),(!f||_&1028&&i!==(i=((u=m[10])==null?void 0:u["data-testid"])||`${m[2]}-button`))&&v(e,"data-testid",i)},i(m){f||(g(c),f=!0)},o(m){b(c),f=!1},d(m){m&&$(e),c&&c.d()}}}function cl(o,e,n){let t,l,r,s,a;j(o,Te,d=>n(13,s=d)),j(o,Xe,d=>n(9,a=d));let{link:i}=e,{label:f}=e,{icon:c=void 0}=e,{tooltip:m=f}=e,{external:_=!1}=e,{animate:u=!1}=e,{disabled:p=!1}=e,{isActive:h=void 0}=e;return o.$$set=d=>{n(10,e=re(re({},e),ge(d))),"link"in d&&n(0,i=d.link),"label"in d&&n(1,f=d.label),"icon"in d&&n(2,c=d.icon),"tooltip"in d&&n(3,m=d.tooltip),"external"in d&&n(11,_=d.external),"animate"in d&&n(4,u=d.animate),"disabled"in d&&n(5,p=d.disabled),"isActive"in d&&n(12,h=d.isActive)},o.$$.update=()=>{o.$$.dirty&2048&&n(8,t=_?"noopener noreferrer":""),o.$$.dirty&2048&&n(7,l=_?"_blank":""),o.$$.dirty&12288&&n(6,r=h&&h(s.url.href))},e=ge(e),[i,f,c,m,u,p,r,l,t,a,e,_,h,s]}class vn extends Q{constructor(e){super(),X(this,e,cl,fl,K,{link:0,label:1,icon:2,tooltip:3,external:11,animate:4,disabled:5,isActive:12})}}function ht(o,e,n){const t=o.slice();return t[2]=e[n],t}function bt(o){let e,n,t=de(o[1]),l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){e=N("div");for(let s=0;s{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}function ml(o,e,n){let{open:t=!1}=e,{linkList:l}=e;return o.$$set=r=>{"open"in r&&n(0,t=r.open),"linkList"in r&&n(1,l=r.linkList)},[t,l]}class dl extends Q{constructor(e){super(),X(this,e,ml,ul,K,{open:0,linkList:1})}}function kt(o,e,n){const t=o.slice();return t[7]=e[n].namespace,t[8]=e[n].onClick,t}function wt(o){let e,n,t,l,r;function s(c){o[5](c)}let a={id:"namespace-search",type:"search",label:"Namespace search",labelHidden:!0,autoFocus:!0,placeholder:"Search",class:"sticky top-0 w-full"};o[1]!==void 0&&(a.value=o[1]),n=new mn({props:a}),Ye.push(()=>xe(n,"value",s));let i=de(o[2]),f=[];for(let c=0;ct=!1)),n.$set(_),m&12){i=de(c[2]);let u;for(u=0;u{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}function pl(o,e,n){let t,l;j(o,ke,c=>n(3,l=c));let{open:r=!1}=e,{namespaceList:s=[]}=e,a="";function i(c){a=c,n(1,a)}const f=(c,m)=>c(m);return o.$$set=c=>{"open"in c&&n(0,r=c.open),"namespaceList"in c&&n(4,s=c.namespaceList)},o.$$.update=()=>{o.$$.dirty&18&&n(2,t=(a?s.filter(({namespace:c})=>c.includes(a)):s).sort((c,m)=>c.namespace.localeCompare(m.namespace)))},[r,a,t,l,s,i,f]}class gl extends Q{constructor(e){super(),X(this,e,pl,_l,K,{open:0,namespaceList:4})}}function Et(o,e,n){const t=o.slice();return t[18]=e[n].value,t[19]=e[n].label,t[20]=e[n].offset,t[21]=e[n].abbr,t}function Ct(o,e,n){const t=o.slice();return t[18]=e[n].value,t[19]=e[n].label,t}function hl(o){let e;return{c(){e=Y(o[3])},l(n){e=J(n,o[3])},m(n,t){k(n,e,t)},p(n,t){t&8&&ce(e,n[3])},d(n){n&&$(e)}}}function bl(o){let e,n;return e=new _e({props:{slot:"leading",name:"clock"}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:oe,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Lt(o){let e,n,t,l,r,s,a,i=de(o[7]),f=[];for(let u=0;ub(f[u],1,1,()=>{f[u]=null});function m(u){o[16](u)}let _={label:B("common.relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return o[5]!==void 0&&(_.checked=o[5]),t=new Kn({props:_}),Ye.push(()=>xe(t,"checked",m)),t.$on("change",o[9]),s=new hn({}),{c(){for(let u=0;ul=!1)),t.$set(h)},i(u){if(!a){for(let p=0;pxe(e,"value",f)),l=new hn({});let m=!o[1]&&Lt(o),_=de(o[4]),u=[];for(let d=0;d<_.length;d+=1)u[d]=Nt(Et(o,_,d));const p=d=>b(u[d],1,1,()=>{u[d]=null});let h=null;return _.length||(h=Bt(o)),{c(){w(e.$$.fragment),t=D(),w(l.$$.fragment),r=D(),m&&m.c(),s=D();for(let d=0;dn=!1)),e.$set(R),d[1]?m&&(W(),b(m,1,1,()=>{m=null}),G()):m?(m.p(d,L),L&2&&g(m,1)):(m=Lt(d),m.c(),g(m,1),m.m(s.parentNode,s)),L&276){_=de(d[4]);let F;for(F=0;F<_.length;F+=1){const P=Et(d,_,F);u[F]?(u[F].p(P,L),g(u[F],1)):(u[F]=Nt(P),u[F].c(),g(u[F],1),u[F].m(a.parentNode,a))}for(W(),F=_.length;F{h=null}),G()):(h=Bt(d),h.c(),g(h,1),h.m(a.parentNode,a))}},i(d){if(!i){g(e.$$.fragment,d),g(l.$$.fragment,d),g(m);for(let L=0;L<_.length;L+=1)g(u[L]);i=!0}},o(d){b(e.$$.fragment,d),b(l.$$.fragment,d),b(m),u=u.filter(Boolean);for(let L=0;Ln(5,r=y)),j(o,Ve,y=>n(2,s=y));var a,i,f,c;let{position:m="right"}=e;const _=Qn(),u=[{label:B("common.utc"),value:"UTC"},{label:B("common.local"),value:"local"}];let p="";const h=y=>{r&&y!=="local"&&le(Ae,r=!1,r),le(Ve,s=y,s),n(1,p="")},d=y=>{y.target.checked&&s!=="local"&&le(Ve,s="local",s)};yn(()=>{String(s)==="relative"&&(le(Ve,s="local",s),le(Ae,r=!0,r))});function L(y){p=y,n(1,p)}const R=y=>h(y);function F(y){r=y,Ae.set(r)}const P=y=>h(y);return o.$$set=y=>{"position"in y&&n(0,m=y.position)},o.$$.update=()=>{o.$$.dirty&2&&n(4,t=p?ct.filter(({abbr:y,value:H,zones:Z})=>{const ne=p.trim().toLowerCase();return H.toLowerCase().includes(ne)||(y==null?void 0:y.toLowerCase().includes(ne))||(Z==null?void 0:Z.some(me=>me.toLowerCase().includes(ne)))}):ct),o.$$.dirty&15364&&n(3,l=n(13,c=n(11,i=n(10,a=ut[s])===null||a===void 0?void 0:a.abbr)!==null&&i!==void 0?i:n(12,f=ut[s])===null||f===void 0?void 0:f.label)!==null&&c!==void 0?c:Xn(s))},[m,p,s,l,t,r,_,u,h,d,a,i,f,c,L,R,F,P]}class kn extends Q{constructor(e){super(),X(this,e,Cl,El,K,{position:0})}}function St(o){let e,n,t;return n=new _e({props:{name:o[2],animate:o[4],active:o[5]}}),{c(){e=N("div"),w(n.$$.fragment),this.h()},l(l){e=S(l,"DIV",{class:!0,"data-tooltip":!0});var r=V(e);T(n.$$.fragment,r),r.forEach($),this.h()},h(){v(e,"class","flex h-6 w-6 items-center after:absolute after:left-[calc(100%_+_1.5rem)] after:top-0 after:hidden after:h-8 after:items-center after:rounded-md after:bg-slate-800 after:p-1 after:px-2 after:text-xs after:text-white after:content-[attr(data-tooltip)] group-data-[nav=closed]:hover:after:flex"),v(e,"data-tooltip",o[3])},m(l,r){k(l,e,r),E(n,e,null),t=!0},p(l,r){const s={};r&4&&(s.name=l[2]),r&16&&(s.animate=l[4]),r&32&&(s.active=l[5]),n.$set(s),(!t||r&8)&&v(e,"data-tooltip",l[3])},i(l){t||(g(n.$$.fragment,l),t=!0)},o(l){b(n.$$.fragment,l),t=!1},d(l){l&&$(e),C(n)}}}function Ll(o){let e,n,t,l,r,s,a,i,f=o[2]&&St(o);return{c(){e=N("div"),f&&f.c(),n=D(),t=N("div"),l=Y(o[1]),this.h()},l(c){e=S(c,"DIV",{role:!0,tabindex:!0,"data-testid":!0,class:!0});var m=V(e);f&&f.l(m),n=A(m),t=S(m,"DIV",{class:!0});var _=V(t);l=J(_,o[1]),_.forEach($),m.forEach($),this.h()},h(){v(t,"class","opacity-0 transition-opacity group-data-[nav=open]:opacity-100"),v(e,"role","button"),v(e,"tabindex","0"),v(e,"data-testid",r=o[7]["data-testid"]),v(e,"class","relative mb-1 flex items-center whitespace-nowrap rounded-lg p-1 pl-2 text-sm font-medium hover:bg-white hover:text-black group-[.surface-primary]:hover:bg-black group-[.surface-primary]:hover:text-white group-[.surface-primary]:dark:hover:bg-white group-[.surface-primary]:dark:hover:text-black svelte-1h8tova"),ee(e,"disabled",o[6])},m(c,m){k(c,e,m),f&&f.m(e,null),I(e,n),I(e,t),I(t,l),s=!0,a||(i=[he(e,"click",function(){Ie(o[0])&&o[0].apply(this,arguments)}),he(e,"keypress",function(){Ie(o[0])&&o[0].apply(this,arguments)})],a=!0)},p(c,[m]){o=c,o[2]?f?(f.p(o,m),m&4&&g(f,1)):(f=St(o),f.c(),g(f,1),f.m(e,n)):f&&(W(),b(f,1,1,()=>{f=null}),G()),(!s||m&2)&&ce(l,o[1]),(!s||m&128&&r!==(r=o[7]["data-testid"]))&&v(e,"data-testid",r),(!s||m&64)&&ee(e,"disabled",o[6])},i(c){s||(g(f),s=!0)},o(c){b(f),s=!1},d(c){c&&$(e),f&&f.d(),a=!1,fn(i)}}}function Il(o,e,n){let{onClick:t=()=>{}}=e,{label:l}=e,{icon:r=void 0}=e,{tooltip:s=l}=e,{animate:a=!1}=e,{active:i=!1}=e,{disabled:f=!1}=e;return o.$$set=c=>{n(7,e=re(re({},e),ge(c))),"onClick"in c&&n(0,t=c.onClick),"label"in c&&n(1,l=c.label),"icon"in c&&n(2,r=c.icon),"tooltip"in c&&n(3,s=c.tooltip),"animate"in c&&n(4,a=c.animate),"active"in c&&n(5,i=c.active),"disabled"in c&&n(6,f=c.disabled)},e=ge(e),[t,l,r,s,a,i,f,e]}class Ne extends Q{constructor(e){super(),X(this,e,Il,Ll,K,{onClick:0,label:1,icon:2,tooltip:3,animate:4,active:5,disabled:6})}}function Bl(o){let e,n,t,l;const r=o[1].default,s=se(r,o,o[0],null);return{c(){e=D(),s&&s.c()},l(a){e=A(a),s&&s.l(a)},m(a,i){k(a,e,i),s&&s.m(a,i),n=!0,t||(l=Hn(Yn.call(null,document.body)),t=!0)},p(a,[i]){s&&s.p&&(!n||i&1)&&ie(s,r,a,a[0],n?fe(r,a[0],i,null):ae(a[0]),null)},i(a){n||(g(s,a),n=!0)},o(a){b(s,a),n=!1},d(a){a&&$(e),s&&s.d(a),t=!1,l()}}}function Nl(o,e,n){let{$$slots:t={},$$scope:l}=e;return o.$$set=r=>{"$$scope"in r&&n(0,l=r.$$scope)},[l,t]}class Sl extends Q{constructor(e){super(),X(this,e,Nl,Bl,K,{})}}function Dt(o){let e,n,t,l,r,s,a,i,f,c,m,_;n=new kn({props:{position:"left"}}),l=new Ne({props:{onClick:o[4],tooltip:B("data-encoder.codec-server"),label:B("data-encoder.codec-server"),icon:o[2]?o[1].hasError?"transcoder-error":"transcoder-on":"transcoder-off"}}),s=new dn({}),c=new Ne({props:{onClick:o[7],tooltip:o[3]?B("common.night"):B("common.day"),label:o[3]?B("common.night"):B("common.day"),icon:o[3]?"moon":"sun"}});const u=o[6].default,p=se(u,o,o[5],null);return{c(){e=N("div"),w(n.$$.fragment),t=D(),w(l.$$.fragment),r=D(),w(s.$$.fragment),a=D(),i=N("div"),f=D(),w(c.$$.fragment),m=D(),p&&p.c(),this.h()},l(h){e=S(h,"DIV",{class:!0});var d=V(e);T(n.$$.fragment,d),t=A(d),T(l.$$.fragment,d),r=A(d),T(s.$$.fragment,d),a=A(d),i=S(d,"DIV",{class:!0}),V(i).forEach($),f=A(d),T(c.$$.fragment,d),m=A(d),p&&p.l(d),d.forEach($),this.h()},h(){v(i,"class","border-b-2 border-subtle"),v(e,"class","flex h-full flex-col justify-end gap-6 overflow-auto px-4 py-8")},m(h,d){k(h,e,d),E(n,e,null),I(e,t),E(l,e,null),I(e,r),E(s,e,null),I(e,a),I(e,i),I(e,f),E(c,e,null),I(e,m),p&&p.m(e,null),_=!0},p(h,d){const L={};d&6&&(L.icon=h[2]?h[1].hasError?"transcoder-error":"transcoder-on":"transcoder-off"),l.$set(L);const R={};d&8&&(R.onClick=h[7]),d&8&&(R.tooltip=h[3]?B("common.night"):B("common.day")),d&8&&(R.label=h[3]?B("common.night"):B("common.day")),d&8&&(R.icon=h[3]?"moon":"sun"),c.$set(R),p&&p.p&&(!_||d&32)&&ie(p,u,h,h[5],_?fe(u,h[5],d,null):ae(h[5]),null)},i(h){_||(g(n.$$.fragment,h),g(l.$$.fragment,h),g(s.$$.fragment,h),g(c.$$.fragment,h),g(p,h),_=!0)},o(h){b(n.$$.fragment,h),b(l.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),b(p,h),_=!1},d(h){h&&$(e),C(n),C(l),C(s),C(c),p&&p.d(h)}}}function Dl(o){let e,n,t=o[0]&&Dt(o);return{c(){t&&t.c(),e=q()},l(l){t&&t.l(l),e=q()},m(l,r){t&&t.m(l,r),k(l,e,r),n=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&g(t,1)):(t=Dt(l),t.c(),g(t,1),t.m(e.parentNode,e)):t&&(W(),b(t,1,1,()=>{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}function Al(o,e,n){let t,l,r,s;j(o,Le,_=>n(8,l=_)),j(o,et,_=>n(1,r=_)),j(o,Oe,_=>n(3,s=_));let{$$slots:a={},$$scope:i}=e,{open:f=!1}=e;const c=()=>{le(Le,l=!l,l)};On(()=>{le(Le,l=!1,l)});const m=()=>le(Oe,s=!s,s);return o.$$set=_=>{"open"in _&&n(0,f=_.open),"$$scope"in _&&n(5,i=_.$$scope)},o.$$.update=()=>{o.$$.dirty&2&&n(2,t=r==null?void 0:r.endpoint)},[f,r,t,s,c,i,a,m]}class Vl extends Q{constructor(e){super(),X(this,e,Al,Dl,K,{open:0})}}function At(o){let e,n,t,l,r,s,a,i,f;return n=new dl({props:{open:o[3],linkList:o[1]}}),l=new gl({props:{open:o[4],namespaceList:o[0]}}),s=new Vl({props:{open:o[5],$$slots:{default:[zl]},$$scope:{ctx:o}}}),{c(){e=N("div"),w(n.$$.fragment),t=D(),w(l.$$.fragment),r=D(),w(s.$$.fragment),this.h()},l(c){e=S(c,"DIV",{class:!0,"data-nav":!0});var m=V(e);T(n.$$.fragment,m),t=A(m),T(l.$$.fragment,m),r=A(m),T(s.$$.fragment,m),m.forEach($),this.h()},h(){v(e,"class","group surface-primary fixed top-0 z-50 h-[calc(100%-64px)] w-full overflow-auto md:hidden"),v(e,"data-nav","open")},m(c,m){k(c,e,m),E(n,e,null),I(e,t),E(l,e,null),I(e,r),E(s,e,null),f=!0},p(c,m){const _={};m&8&&(_.open=c[3]),m&2&&(_.linkList=c[1]),n.$set(_);const u={};m&16&&(u.open=c[4]),m&1&&(u.namespaceList=c[0]),l.$set(u);const p={};m&32&&(p.open=c[5]),m&65536&&(p.$$scope={dirty:m,ctx:c}),s.$set(p)},i(c){f||(g(n.$$.fragment,c),g(l.$$.fragment,c),g(s.$$.fragment,c),c&&Ze(()=>{f&&(i&&i.end(1),a=Pn(e,at,{duration:200,delay:0}),a.start())}),f=!0)},o(c){b(n.$$.fragment,c),b(l.$$.fragment,c),b(s.$$.fragment,c),a&&a.invalidate(),c&&(i=Un(e,at,{duration:200,delay:0})),f=!1},d(c){c&&$(e),C(n),C(l),C(s),c&&i&&i.end()}}}function zl(o){let e;const n=o[15].default,t=se(n,o,o[16],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&65536)&&ie(t,n,l,l[16],e?fe(n,l[16],r,null):ae(l[16]),null)},i(l){e||(g(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function yl(o){let e,n;return e=new cn({props:{height:32,width:32}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Hl(o){let e,n;return e=new _e({props:{name:"close",height:32,width:32}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Ol(o){let e=o[12](o[6])+"",n;return{c(){n=Y(e)},l(t){n=J(t,e)},m(t,l){k(t,n,l)},p(t,l){l&64&&e!==(e=t[12](t[6])+"")&&ce(n,e)},d(t){t&&$(n)}}}function Rl(o){let e,n;return e=new _e({props:{class:"text-white",name:"external-link"}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:oe,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Pl(o){let e,n,t;return n=new _e({props:{name:"astronaut",height:24,width:24}}),{c(){e=N("div"),w(n.$$.fragment),this.h()},l(l){e=S(l,"DIV",{class:!0});var r=V(e);T(n.$$.fragment,r),r.forEach($),this.h()},h(){v(e,"class","flex aspect-square w-[32px] min-w-[32px] items-center justify-center")},m(l,r){k(l,e,r),E(n,e,null),t=!0},i(l){t||(g(n.$$.fragment,l),t=!0)},o(l){b(n.$$.fragment,l),t=!1},d(l){l&&$(e),C(n)}}}function Ul(o){let e,n;return e=new _e({props:{name:"close",height:32,width:32}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function jl(o){let e,n,t,l,r,s,a,i,f,c,m,_,u,p,h,d,L,R,F,P,y=o[7]&&At(o);const H=[Hl,yl],Z=[];function ne(z,M){return z[3]?0:1}l=ne(o),r=Z[l]=H[l](o),i=new we({props:{variant:"ghost",leadingIcon:"namespace-switcher",size:"xs",class:"grow text-white",$$slots:{default:[Ol]},$$scope:{ctx:o}}}),i.$on("click",o[10]),_=new we({props:{variant:"ghost",size:"xs",href:ze({namespace:o[6]}),disabled:!o[8],$$slots:{default:[Rl]},$$scope:{ctx:o}}});const me=[Ul,Pl],x=[];function pe(z,M){return z[5]?0:1}return h=pe(o),d=x[h]=me[h](o),{c(){y&&y.c(),e=D(),n=N("nav"),t=N("button"),r.c(),s=D(),a=N("div"),w(i.$$.fragment),f=D(),c=N("div"),m=D(),w(_.$$.fragment),u=D(),p=N("button"),d.c(),this.h()},l(z){y&&y.l(z),e=A(z),n=S(z,"NAV",{class:!0,"data-testid":!0,"aria-label":!0});var M=V(n);t=S(M,"BUTTON",{class:!0,type:!0});var ue=V(t);r.l(ue),ue.forEach($),s=A(M),a=S(M,"DIV",{class:!0});var O=V(a);T(i.$$.fragment,O),f=A(O),c=S(O,"DIV",{class:!0}),V(c).forEach($),m=A(O),T(_.$$.fragment,O),O.forEach($),u=A(M),p=S(M,"BUTTON",{class:!0,type:!0});var U=V(p);d.l(U),U.forEach($),M.forEach($),this.h()},h(){v(t,"class","nav-button relative svelte-2a6sq5"),v(t,"type","button"),ee(t,"active-shadow",o[3]),v(c,"class","ml-1 h-full w-1 border-l-2 border-subtle"),v(a,"class","namespace-wrapper svelte-2a6sq5"),v(p,"class","nav-button svelte-2a6sq5"),v(p,"type","button"),ee(p,"active-shadow",o[5]),v(n,"class",L=ye(ve("fixed bottom-0 z-40 flex h-[64px] w-full flex-row items-center justify-between gap-5 px-4 py-2 transition-colors md:hidden",o[2]?"bg-gradient-to-b from-indigo-600 to-indigo-900 text-off-white focus-visible:[&_[role=button]]:ring-success focus-visible:[&_a]:ring-success":"surface-black border-t border-subtle"))+" svelte-2a6sq5"),v(n,"data-testid","top-nav"),v(n,"aria-label",B("common.main"))},m(z,M){y&&y.m(z,M),k(z,e,M),k(z,n,M),I(n,t),Z[l].m(t,null),I(n,s),I(n,a),E(i,a,null),I(a,f),I(a,c),I(a,m),E(_,a,null),I(n,u),I(n,p),x[h].m(p,null),R=!0,F||(P=[he(t,"click",o[9]),he(p,"click",o[11])],F=!0)},p(z,[M]){z[7]?y?(y.p(z,M),M&128&&g(y,1)):(y=At(z),y.c(),g(y,1),y.m(e.parentNode,e)):y&&(W(),b(y,1,1,()=>{y=null}),G());let ue=l;l=ne(z),l!==ue&&(W(),b(Z[ue],1,1,()=>{Z[ue]=null}),G(),r=Z[l],r||(r=Z[l]=H[l](z),r.c()),g(r,1),r.m(t,null)),(!R||M&8)&&ee(t,"active-shadow",z[3]);const O={};M&65600&&(O.$$scope={dirty:M,ctx:z}),i.$set(O);const U={};M&64&&(U.href=ze({namespace:z[6]})),M&256&&(U.disabled=!z[8]),M&65536&&(U.$$scope={dirty:M,ctx:z}),_.$set(U);let be=h;h=pe(z),h!==be&&(W(),b(x[be],1,1,()=>{x[be]=null}),G(),d=x[h],d||(d=x[h]=me[h](z),d.c()),g(d,1),d.m(p,null)),(!R||M&32)&&ee(p,"active-shadow",z[5]),(!R||M&4&&L!==(L=ye(ve("fixed bottom-0 z-40 flex h-[64px] w-full flex-row items-center justify-between gap-5 px-4 py-2 transition-colors md:hidden",z[2]?"bg-gradient-to-b from-indigo-600 to-indigo-900 text-off-white focus-visible:[&_[role=button]]:ring-success focus-visible:[&_a]:ring-success":"surface-black border-t border-subtle"))+" svelte-2a6sq5"))&&v(n,"class",L)},i(z){R||(g(y),g(r),g(i.$$.fragment,z),g(_.$$.fragment,z),g(d),R=!0)},o(z){b(y),b(r),b(i.$$.fragment,z),b(_.$$.fragment,z),b(d),R=!1},d(z){z&&($(e),$(n)),y&&y.d(z),Z[l].d(),C(i),C(_),x[h].d(),F=!1,fn(P)}}}function Ml(o,e,n){let t,l,r,s,a;j(o,ke,P=>n(13,s=P)),j(o,Te,P=>n(14,a=P));let{$$slots:i={},$$scope:f}=e,{namespaceList:c=[]}=e,{linkList:m}=e,{isCloud:_=!1}=e,u=!1,p=!1,h=!1;const d=()=>{n(5,h=!1),n(4,p=!1),n(3,u=!u)},L=()=>{n(3,u=!1),n(4,p=!p),n(5,h=!1)},R=()=>{n(3,u=!1),n(4,p=!1),n(5,h=!h)};jn(()=>{n(3,u=!1),n(5,h=!1),n(4,p=!1)});const F=P=>P.length>16?`${P.slice(0,8)}...${P.slice(-8)}`:P;return o.$$set=P=>{"namespaceList"in P&&n(0,c=P.namespaceList),"linkList"in P&&n(1,m=P.linkList),"isCloud"in P&&n(2,_=P.isCloud),"$$scope"in P&&n(16,f=P.$$scope)},o.$$.update=()=>{o.$$.dirty&24576&&n(6,t=a.params.namespace||s),o.$$.dirty&65&&n(8,l=c.some(P=>P.namespace===t)),o.$$.dirty&56&&n(7,r=u||p||h)},[c,m,_,u,p,h,t,r,l,d,L,R,F,s,a,i,f]}class Fl extends Q{constructor(e){super(),X(this,e,Ml,jl,K,{namespaceList:0,linkList:1,isCloud:2})}}function Vt(o){let e,n,t,l,r,s,a,i=o[3]&&zt(o),f=o[2]&&yt(o),c=[{class:s=ve(Ot({type:o[4]}),o[5])},o[8]],m={};for(let _=0;_{i=null}),G()),(!a||u&1)&&ce(l,_[0]),_[2]?f?(f.p(_,u),u&4&&g(f,1)):(f=yt(_),f.c(),g(f,1),f.m(e,null)):f&&(W(),b(f,1,1,()=>{f=null}),G()),He(e,m=Ue(c,[(!a||u&48&&s!==(s=ve(Ot({type:_[4]}),_[5])))&&{class:s},u&256&&_[8]]))},i(_){a||(g(i),g(f),a=!0)},o(_){b(i),b(f),a=!1},d(_){_&&$(e),i&&i.d(),f&&f.d()}}}function zt(o){let e,n;return e=new _e({props:{name:o[3]}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.name=t[3]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function yt(o){let e,n;return e=new we({props:{leadingIcon:"close",variant:"ghost",size:"xs",$$slots:{default:[ql]},$$scope:{ctx:o}}}),e.$on("click",o[7]),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&2050&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function ql(o){let e,n;return{c(){e=N("span"),n=Y(o[1]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var l=V(e);n=J(l,o[1]),l.forEach($),this.h()},h(){v(e,"class","sr-only")},m(t,l){k(t,e,l),I(e,n)},p(t,l){l&2&&ce(n,t[1])},d(t){t&&$(e)}}}function Wl(o){let e,n,t=o[6]&&Vt(o);return{c(){t&&t.c(),e=q()},l(l){t&&t.l(l),e=q()},m(l,r){t&&t.m(l,r),k(l,e,r),n=!0},p(l,[r]){l[6]?t?(t.p(l,r),r&64&&g(t,1)):(t=Vt(l),t.c(),g(t,1),t.m(e.parentNode,e)):t&&(W(),b(t,1,1,()=>{t=null}),G())},i(l){n||(g(t),n=!0)},o(l){b(t),n=!1},d(l){l&&$(e),t&&t.d(l)}}}const Ht=un("dismissed-banners",{}),Gl={default:"bg-indigo-200 text-indigo-900",danger:"surface-danger"},Ot=Jn(["w-full","md:sticky md:top-12","max-md:fixed max-md:bottom-16","z-[39]","flex items-center justify-between gap-2","px-4 py-2"],{variants:{type:Gl},defaultVariants:{type:"default"}});function Kl(o,e,n){let t;const l=["id","message","dismissLabel","dismissable","icon","type","class"];let r=$e(e,l),s,a=oe;j(o,Ht,d=>n(10,s=d)),o.$$.on_destroy.push(()=>a());let{id:i}=e,{message:f}=e,{dismissLabel:c=""}=e,{dismissable:m=!1}=e,{icon:_=null}=e,{type:u="default"}=e,{class:p=""}=e;const h=()=>{le(Ht,s[i]=!0,s)};return o.$$set=d=>{e=re(re({},e),ge(d)),n(8,r=$e(e,l)),"id"in d&&n(9,i=d.id),"message"in d&&n(0,f=d.message),"dismissLabel"in d&&n(1,c=d.dismissLabel),"dismissable"in d&&n(2,m=d.dismissable),"icon"in d&&n(3,_=d.icon),"type"in d&&n(4,u=d.type),"class"in d&&n(5,p=d.class)},o.$$.update=()=>{o.$$.dirty&1537&&n(6,t=f&&!s[i])},[f,c,m,_,u,p,t,h,r,i,s]}class wn extends Q{constructor(e){super(),X(this,e,Kl,Wl,K,{id:9,message:0,dismissLabel:1,dismissable:2,icon:3,type:4,class:5})}}const Ql=o=>({}),Rt=o=>({});function Xl(o){let e;const n=o[9].fallback,t=se(n,o,o[8],Rt);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&256)&&ie(t,n,l,l[8],e?fe(n,l[8],r,Ql):ae(l[8]),Rt)},i(l){e||(g(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Yl(o){let e,n;return e=new wn({props:{message:B("data-encoder.codec-server-error"),id:"transcoder-error",icon:"transcoder-error",type:"danger"}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:oe,i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Jl(o){let e,n,t,l;const r=[Yl,Xl],s=[];function a(i,f){return i[1].hasError&&i[0]?0:1}return e=a(o),n=s[e]=r[e](o),{c(){n.c(),t=q()},l(i){n.l(i),t=q()},m(i,f){s[e].m(i,f),k(i,t,f),l=!0},p(i,[f]){let c=e;e=a(i),e===c?s[e].p(i,f):(W(),b(s[c],1,1,()=>{s[c]=null}),G(),n=s[e],n?n.p(i,f):(n=s[e]=r[e](i),n.c()),g(n,1),n.m(t.parentNode,t))},i(i){l||(g(n),l=!0)},o(i){b(n),l=!1},d(i){i&&$(t),s[e].d(i)}}}function Zl(o,e,n){let t,l,r,s,a,i;j(o,Te,u=>n(6,s=u)),j(o,ke,u=>n(7,a=u)),j(o,et,u=>n(1,i=u));let{$$slots:f={},$$scope:c}=e;var m,_;return o.$$set=u=>{"$$scope"in u&&n(8,c=u.$$scope)},o.$$.update=()=>{o.$$.dirty&204&&n(5,t=n(3,_=n(2,m=s.params)===null||m===void 0?void 0:m.namespace)!==null&&_!==void 0?_:a),o.$$.dirty&64&&n(4,l=s.url.pathname.split("/")),o.$$.dirty&48&&n(0,r=t&&(l.includes("workflows")||l.includes("schedules")||l.includes("batch-operations")||l.includes("task-queues")||l.includes("import")))},[r,i,m,_,l,t,s,a,c,f]}class xl extends Q{constructor(e){super(),X(this,e,Zl,Jl,K,{})}}const eo=o=>({}),Pt=o=>({});function to(o){let e,n,t,l,r,s,a,i,f,c,m,_,u,p,h,d=B("common.version")+"",L,R,F,P,y,H,Z,ne;t=new cn({props:{height:24,width:24,class:"m-1"}}),s=new _e({props:{name:"chevron-right"}});const me=o[10].default,x=se(me,o,o[9],null),pe=o[10].bottom,z=se(pe,o,o[9],Pt);let M=[{class:P=ve("group grid h-screen min-h-[600px] w-16 grid-cols-[2rem] grid-rows-[fit-content(1.5rem)_minmax(3rem,4rem)_1fr_8rem] gap-2 border-r border-subtle px-4 py-5 transition-width data-[nav=open]:w-[180px] data-[nav=open]:grid-cols-[100%]","focus-visible:[&_[role=button]]:outline-none focus-visible:[&_[role=button]]:ring-4 focus-visible:[&_[role=button]]:ring-primary/70 focus-visible:[&_a]:outline-none focus-visible:[&_a]:ring-4 focus-visible:[&_a]:ring-primary/70",o[0]?"bg-gradient-to-b from-indigo-600 to-indigo-950 text-off-white focus-visible:[&_[role=button]]:ring-success focus-visible:[&_a]:ring-success":"surface-black")},{"data-nav":y=o[2]?"open":"closed"},{"data-testid":"navigation-header"},o[4]],ue={};for(let O=0;On(8,s=h)),j(o,Xe,h=>n(2,a=h));let{$$slots:i={},$$scope:f}=e;var c,m,_;let{isCloud:u=!1}=e;const p=()=>le(Xe,a=!a,a);return o.$$set=h=>{e=re(re({},e),ge(h)),n(4,r=$e(e,l)),"isCloud"in h&&n(0,u=h.isCloud),"$$scope"in h&&n(9,f=h.$$scope)},o.$$.update=()=>{o.$$.dirty&480&&n(1,t=n(7,_=n(6,m=n(5,c=s.data)===null||c===void 0?void 0:c.settings)===null||m===void 0?void 0:m.version)!==null&&_!==void 0?_:"")},[u,t,a,p,r,c,m,_,s,f,i]}class lo extends Q{constructor(e){super(),X(this,e,no,to,K,{isCloud:0})}}function Ut(o,e,n){const t=o.slice();return t[6]=e[n],t}const oo=o=>({}),jt=o=>({});function Mt(o){var r,s,a;let e,n,t,l=o[6].divider&&Ft();return n=new vn({props:{link:o[6].href,label:o[6].label,icon:o[6].icon,tooltip:((r=o[6])==null?void 0:r.tooltip)||o[6].label,external:(s=o[6])==null?void 0:s.external,animate:(a=o[6])==null?void 0:a.animate,isActive:o[6].isActive}}),{c(){l&&l.c(),e=D(),w(n.$$.fragment)},l(i){l&&l.l(i),e=A(i),T(n.$$.fragment,i)},m(i,f){l&&l.m(i,f),k(i,e,f),E(n,i,f),t=!0},p(i,f){var m,_,u;i[6].divider?l||(l=Ft(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null);const c={};f&2&&(c.link=i[6].href),f&2&&(c.label=i[6].label),f&2&&(c.icon=i[6].icon),f&2&&(c.tooltip=((m=i[6])==null?void 0:m.tooltip)||i[6].label),f&2&&(c.external=(_=i[6])==null?void 0:_.external),f&2&&(c.animate=(u=i[6])==null?void 0:u.animate),f&2&&(c.isActive=i[6].isActive),n.$set(c)},i(i){t||(g(n.$$.fragment,i),t=!0)},o(i){b(n.$$.fragment,i),t=!1},d(i){i&&$(e),l&&l.d(i),C(n,i)}}}function Ft(o){let e;return{c(){e=N("hr"),this.h()},l(n){e=S(n,"HR",{class:!0}),this.h()},h(){v(e,"class","-mx-4 my-4 border-subtle")},m(n,t){k(n,e,t)},d(n){n&&$(e)}}}function qt(o){var l;let e,n,t=!((l=o[6])!=null&&l.hidden)&&Mt(o);return{c(){t&&t.c(),e=q()},l(r){t&&t.l(r),e=q()},m(r,s){t&&t.m(r,s),k(r,e,s),n=!0},p(r,s){var a;(a=r[6])!=null&&a.hidden?t&&(W(),b(t,1,1,()=>{t=null}),G()):t?(t.p(r,s),s&2&&g(t,1)):(t=Mt(r),t.c(),g(t,1),t.m(e.parentNode,e))},i(r){n||(g(t),n=!0)},o(r){b(t),n=!1},d(r){r&&$(e),t&&t.d(r)}}}function ro(o){let e,n,t=de(o[1]),l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sn(2,t=f));let{$$slots:l={},$$scope:r}=e,{isCloud:s=!1}=e,{linkList:a}=e;const i=()=>le(Oe,t=!t,t);return o.$$set=f=>{"isCloud"in f&&n(0,s=f.isCloud),"linkList"in f&&n(1,a=f.linkList),"$$scope"in f&&n(5,r=f.$$scope)},[s,a,t,l,i,r]}class fo extends Q{constructor(e){super(),X(this,e,ao,io,K,{isCloud:0,linkList:1})}}function co(o){let e=B("common.skip-nav")+"",n;return{c(){n=Y(e)},l(t){n=J(t,e)},m(t,l){k(t,n,l)},p:oe,d(t){t&&$(n)}}}function uo(o){let e,n;return e=new $n({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[co]},$$scope:{ctx:o}}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,[l]){const r={};l&1&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}class mo extends Q{constructor(e){super(),X(this,e,null,uo,K,{})}}function _o(o){let e,n;return e=new Me({props:{bottomRight:!0,text:B("data-encoder.configure-codec-server"),$$slots:{default:[go]},$$scope:{ctx:o}}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function po(o){let e,n,t,l;const r=[$o,bo,ho],s=[];function a(i,f){var c;return(c=i[1])!=null&&c.hasNotRequested?0:i[1].hasError?1:i[1].hasSuccess?2:-1}return~(e=a(o))&&(n=s[e]=r[e](o)),{c(){n&&n.c(),t=q()},l(i){n&&n.l(i),t=q()},m(i,f){~e&&s[e].m(i,f),k(i,t,f),l=!0},p(i,f){let c=e;e=a(i),e===c?~e&&s[e].p(i,f):(n&&(W(),b(s[c],1,1,()=>{s[c]=null}),G()),~e?(n=s[e],n?n.p(i,f):(n=s[e]=r[e](i),n.c()),g(n,1),n.m(t.parentNode,t)):n=null)},i(i){l||(g(n),l=!0)},o(i){b(n),l=!1},d(i){i&&$(t),~e&&s[e].d(i)}}}function go(o){let e,n;return e=new je({props:{variant:o[0],label:B("data-encoder.configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),e.$on("click",o[2]),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.variant=t[0]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function ho(o){let e,n;return e=new Me({props:{bottomRight:!0,text:B("data-encoder.codec-server-success"),$$slots:{default:[vo]},$$scope:{ctx:o}}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function bo(o){let e,n;return e=new Me({props:{bottomRight:!0,text:B("data-encoder.codec-server-error"),$$slots:{default:[ko]},$$scope:{ctx:o}}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function $o(o){let e,n;return e=new Me({props:{bottomRight:!0,text:B("data-encoder.codec-server-configured"),$$slots:{default:[wo]},$$scope:{ctx:o}}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function vo(o){let e,n;return e=new je({props:{variant:o[0],label:B("data-encoder.codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),e.$on("click",o[2]),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.variant=t[0]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function ko(o){let e,n;return e=new je({props:{variant:o[0],label:B("data-encoder.codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),e.$on("click",o[2]),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.variant=t[0]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function wo(o){let e,n;return e=new je({props:{variant:o[0],label:B("data-encoder.codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),e.$on("click",o[2]),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.variant=t[0]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function To(o){let e,n,t,l;const r=[po,_o],s=[];function a(i,f){var c;return(c=i[1])!=null&&c.endpoint?0:1}return n=a(o),t=s[n]=r[n](o),{c(){e=N("div"),t.c(),this.h()},l(i){e=S(i,"DIV",{class:!0});var f=V(e);t.l(f),f.forEach($),this.h()},h(){v(e,"class","mx-1 flex items-center")},m(i,f){k(i,e,f),s[n].m(e,null),l=!0},p(i,[f]){let c=n;n=a(i),n===c?s[n].p(i,f):(W(),b(s[c],1,1,()=>{s[c]=null}),G(),t=s[n],t?t.p(i,f):(t=s[n]=r[n](i),t.c()),g(t,1),t.m(e,null))},i(i){l||(g(t),l=!0)},o(i){b(t),l=!1},d(i){i&&$(e),s[n].d()}}}function Eo(o,e,n){let t,l;j(o,Le,i=>n(3,t=i)),j(o,et,i=>n(1,l=i));const r=()=>{var i;le(Le,t=!t,t),t&&((i=document.getElementById("content-wrapper"))===null||i===void 0||i.scrollTo(0,0))};let s="ghost";const a=i=>{n(0,s=i?"primary":"ghost")};return o.$$.update=()=>{o.$$.dirty&8&&a(t)},[s,l,r,t]}class Co extends Q{constructor(e){super(),X(this,e,Eo,To,K,{})}}function Lo(o){let e,n;return e=new we({props:{slot:"action",variant:"ghost",size:"xs",href:ze({namespace:o[1]}),disabled:!o[3],leadingIcon:"external-link"}}),{c(){w(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.href=ze({namespace:t[1]})),l&8&&(r.disabled=!t[3]),e.$set(r)},i(t){n||(g(e.$$.fragment,t),n=!0)},o(t){b(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function Io(o){let e,n,t,l,r,s,a,i,f,c,m,_;Ze(o[8]),t=new Zn({props:{label:B("namespaces.namespace-label",{namespace:o[1]}),noResultsText:B("common.no-results"),labelHidden:!0,value:o[1],id:"namespace-switcher",leadingIcon:"namespace-switcher",options:o[0],optionValueKey:"namespace",minSize:32,actionTooltip:B("namespaces.go-to-namespace"),$$slots:{action:[Lo]},$$scope:{ctx:o}}}),t.$on("change",o[4]),s=new kn({props:{position:o[2]<768?"left":"right"}}),i=new Co({});const u=o[7].default,p=se(u,o,o[9],null);return{c(){e=N("nav"),n=N("div"),w(t.$$.fragment),l=D(),r=N("div"),w(s.$$.fragment),a=D(),w(i.$$.fragment),f=D(),p&&p.c(),this.h()},l(h){e=S(h,"NAV",{class:!0,"data-testid":!0,"aria-label":!0});var d=V(e);n=S(d,"DIV",{class:!0});var L=V(n);T(t.$$.fragment,L),L.forEach($),l=A(d),r=S(d,"DIV",{class:!0});var R=V(r);T(s.$$.fragment,R),a=A(R),T(i.$$.fragment,R),f=A(R),p&&p.l(R),R.forEach($),d.forEach($),this.h()},h(){v(n,"class","flex grow items-center"),v(r,"class","flex items-center gap-2"),v(e,"class","surface-primary sticky top-0 z-40 hidden w-full flex-col items-center justify-end border-b border-subtle p-1 px-4 md:flex md:flex-row md:px-8"),v(e,"data-testid","top-nav"),v(e,"aria-label",B("common.main"))},m(h,d){k(h,e,d),I(e,n),E(t,n,null),I(e,l),I(e,r),E(s,r,null),I(r,a),E(i,r,null),I(r,f),p&&p.m(r,null),c=!0,m||(_=he(window,"resize",o[8]),m=!0)},p(h,[d]){const L={};d&2&&(L.label=B("namespaces.namespace-label",{namespace:h[1]})),d&2&&(L.value=h[1]),d&1&&(L.options=h[0]),d&522&&(L.$$scope={dirty:d,ctx:h}),t.$set(L);const R={};d&4&&(R.position=h[2]<768?"left":"right"),s.$set(R),p&&p.p&&(!c||d&512)&&ie(p,u,h,h[9],c?fe(u,h[9],d,null):ae(h[9]),null)},i(h){c||(g(t.$$.fragment,h),g(s.$$.fragment,h),g(i.$$.fragment,h),g(p,h),c=!0)},o(h){b(t.$$.fragment,h),b(s.$$.fragment,h),b(i.$$.fragment,h),b(p,h),c=!1},d(h){h&&$(e),C(t),C(s),C(i),p&&p.d(h),m=!1,_()}}}function Bo(o,e,n){let t,l,r,s;j(o,ke,u=>n(5,r=u)),j(o,Te,u=>n(6,s=u));let{$$slots:a={},$$scope:i}=e,{namespaceList:f=[]}=e,c;const m=u=>{const p=u.detail.value;le(ke,r=p.namespace,r),p==null||p.onClick(p.namespace)};function _(){n(2,c=window.innerWidth)}return o.$$set=u=>{"namespaceList"in u&&n(0,f=u.namespaceList),"$$scope"in u&&n(9,i=u.$$scope)},o.$$.update=()=>{o.$$.dirty&96&&n(1,t=s.params.namespace||r),o.$$.dirty&3&&n(3,l=f.some(u=>u.namespace===t))},[f,t,c,l,m,r,s,a,_,i]}class No extends Q{constructor(e){super(),X(this,e,Bo,Io,K,{namespaceList:0})}}var So={};function Do(o){let e;const n=o[5].default,t=se(n,o,o[4],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&16)&&ie(t,n,l,l[4],e?fe(n,l[4],r,null):ae(l[4]),null)},i(l){e||(g(t,l),e=!0)},o(l){b(t,l),e=!1},d(l){t&&t.d(l)}}}function Ao(o){let e,n,t=o[1].message+"",l,r,s,a,i=(o[2]?o[1].stack:"")+"",f,c;return{c(){e=N("div"),n=N("b"),l=Y(t),r=D(),s=N("pre"),a=Y(" "),f=Y(i),c=Y(` `),this.h()},l(m){e=S(m,"DIV",{class:!0});var _=V(e);n=S(_,"B",{});var u=V(n);l=J(u,t),u.forEach($),r=A(_),s=S(_,"PRE",{class:!0});var p=V(s);a=J(p," "),f=J(p,i),c=J(p,` diff --git a/ui/assets/local/_app/immutable/nodes/20.BRKCESap.js b/ui/assets/local/_app/immutable/nodes/20.zy3apo8s.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/20.BRKCESap.js rename to ui/assets/local/_app/immutable/nodes/20.zy3apo8s.js index 0e5e74604..9935c07f3 100644 --- a/ui/assets/local/_app/immutable/nodes/20.BRKCESap.js +++ b/ui/assets/local/_app/immutable/nodes/20.zy3apo8s.js @@ -1 +1 @@ -import{f as mt}from"../chunks/namespaces-service.24nHfQvn.js";import{n as pt,o as ze}from"../chunks/workflows.BzgE0E1S.js";import{s as fe,c as ne,h as N,b as W,t as L,j as D,k as O,f as p,d as H,l as B,m as E,i as w,n as T,p as X,F as _t,X as ot,q as oe,G as $t,a as ht,u as dt,g as gt,e as wt,o as ae,v as K,z as Qe,A as Ue,B as Ge,N as nt,O as st,x as j,y as it}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,c as S,a as I,m as P,t as b,b as k,d as F,f as ft,g as J,e as Y}from"../chunks/index.dOVbn71B.js";import{e as ie,u as bt,o as vt}from"../chunks/each.C6O0oV7R.js";import{p as Ie}from"../chunks/stores.Dz-RNcUk.js";import{P as kt}from"../chunks/page-title.DNhqE1Lj.js";import{W as yt}from"../chunks/workflow-status.4hwv3weu.js";import{F as Me}from"../chunks/filter-or-copy-buttons.DaW7N_eF.js";import{L as Ne}from"../chunks/link.BJceiGbc.js";import{b as Tt,T as Et,a as Ct}from"../chunks/table.Cg5jABZi.js";import{t as v}from"../chunks/translate.BBe5dcco.js";import{t as qe,r as St,f as ee}from"../chunks/time-format.D2wF3ave.js";import{j as It,k as Pt,l as Ft,m as Xe,n as Ke}from"../chunks/format-time.6TuExJAg.js";import{t as qt}from"../chunks/tokenize.bmJ3_w3l.js";import{q as At}from"../chunks/has.BWrERxPV.js";import{b as Nt}from"../chunks/route-for.BjP6gGR7.js";import{u as ut}from"../chunks/update-query-parameters.DVJ0yHKX.js";import{C as De}from"../chunks/code-block.BkCXXL0z.js";import{E as Dt}from"../chunks/empty-state.BO9uOKUe.js";import{P as Wt}from"../chunks/pagination.Dxf-be3Z.js";import{g as Ht}from"../chunks/entry.DLEzeuD9.js";import{g as Lt}from"../chunks/_commonjsHelpers.Cpj98o6Y.js";import{B as Bt}from"../chunks/button.BpRIS9ld.js";import{I as ct}from"../chunks/input.CTzUOpgs.js";import{F as Ve,S as Ot,a as ve}from"../chunks/filter-select.NIuiMMoD.js";import{d as Rt}from"../chunks/index.i9NI_-YN.js";const jt=async function({params:o,url:t}){var f,m,C,y,q,U,R,V;const{searchParams:r}=t;r.has("time-range")||r.set("time-range","1 day");const e=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await mt(o.namespace),s=(C=(m=(f=a.config)==null?void 0:f.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:C.startsWith("s3://"),c=(U=(q=(y=a.config)==null?void 0:y.historyArchivalUri)==null?void 0:q.toLowerCase())==null?void 0:U.startsWith("gs://"),u=s||c,_=u?{}:{workflowId:e,workflowType:l,closeTime:i,executionStatus:n},$=((R=a==null?void 0:a.config)==null?void 0:R.historyArchivalState)==="Enabled",d=((V=a==null?void 0:a.config)==null?void 0:V.visibilityArchivalState)==="Enabled",h=$&&d?await pt(o.namespace,_,fetch):null;return{workflows:h?h.workflows:[],namespace:a,archivalEnabled:$,visibilityArchivalEnabled:d,archivalQueryingNotSupported:u}},hr=Object.freeze(Object.defineProperty({__proto__:null,load:jt},Symbol.toStringTag,{value:"Module"})),Pe=o=>t=>t.toLowerCase()===o.toLowerCase(),Se=(o,t)=>o[t+2],zt=o=>{if(o){for(const t of Ft)if(o[t])return{[t]:o[t]}}},Qt=Pe("WorkflowType"),Ut=Pe("WorkflowId"),Gt=Pe("StartTime"),Mt=Pe("ExecutionStatus"),Xt=o=>{const t=qt(o),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return t.forEach((e,l)=>{if(Ut(e)&&(r.workflowId=Se(t,l)),Qt(e)&&(r.workflowType=Se(t,l)),Mt(e)){const i=Se(t,l);At(i)&&(r.executionStatus=i)}if(Gt(e)){const i=Se(t,l);try{const n=It(i),a=zt(n);r.timeRange=Pt(a)}catch(n){console.error("Error parsing StartTime from query",n)}}}),r};function Kt(o){let t=o[0].id+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p(e,l){l&1&&t!==(t=e[0].id+"")&&oe(r,t)},d(e){e&&p(r)}}}function Vt(o){var He,Le,Be;let t,r,e,l,i,n,a,s,c,u=ee(o[0].startTime,o[4],{relative:o[5]})+"",_,$,d,h,f=v("workflows.workflow-name")+"",m,C,y,q,U=o[0].name+"",R,V,te,z,me,x,pe=ee(o[0].endTime,o[4],{relative:o[5]})+"",ke,ye,le,_e,$e=ee(o[0].startTime,o[4],{relative:o[5]})+"",Te,Ee,re,he,de=ee(o[0].endTime,o[4],{relative:o[5]})+"",Ce,G,Fe,We;return r=new yt({props:{status:o[0].status,delay:Xe(o[0].startTime)}}),i=new Ne({props:{href:o[2],$$slots:{default:[Kt]},$$scope:{ctx:o}}}),a=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),z=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[13],filtered:(Be=(Le=(He=o[3].url)==null?void 0:He.searchParams)==null?void 0:Le.get("query"))==null?void 0:Be.includes(o[0].name)}}),{c(){t=N("td"),S(r.$$.fragment),e=W(),l=N("td"),S(i.$$.fragment),n=W(),S(a.$$.fragment),s=W(),c=N("p"),_=L(u),$=W(),d=N("td"),h=N("h3"),m=L(f),C=L(":"),y=W(),q=N("button"),R=L(U),te=W(),S(z.$$.fragment),me=W(),x=N("p"),ke=L(pe),ye=W(),le=N("td"),_e=N("p"),Te=L($e),Ee=W(),re=N("td"),he=N("p"),Ce=L(de),this.h()},l(g){t=D(g,"TD",{});var A=O(t);I(r.$$.fragment,A),A.forEach(p),e=H(g),l=D(g,"TD",{class:!0});var M=O(l);I(i.$$.fragment,M),n=H(M),I(a.$$.fragment,M),s=H(M),c=D(M,"P",{class:!0});var se=O(c);_=B(se,u),se.forEach(p),M.forEach(p),$=H(g),d=D(g,"TD",{class:!0});var Q=O(d);h=D(Q,"H3",{class:!0});var Z=O(h);m=B(Z,f),C=B(Z,":"),Z.forEach(p),y=H(Q),q=D(Q,"BUTTON",{class:!0,"aria-label":!0});var ge=O(q);R=B(ge,U),ge.forEach(p),te=H(Q),I(z.$$.fragment,Q),me=H(Q),x=D(Q,"P",{class:!0});var we=O(x);ke=B(we,pe),we.forEach(p),Q.forEach(p),ye=H(g),le=D(g,"TD",{class:!0});var be=O(le);_e=D(be,"P",{});var Oe=O(_e);Te=B(Oe,$e),Oe.forEach(p),be.forEach(p),Ee=H(g),re=D(g,"TD",{class:!0});var Re=O(re);he=D(Re,"P",{});var je=O(he);Ce=B(je,de),je.forEach(p),Re.forEach(p),this.h()},h(){E(c,"class","inline-time-cell svelte-1haww6m"),E(l,"class","relative break-words pr-4"),E(h,"class","md:hidden"),E(q,"class","table-link"),E(q,"aria-label",V=v("workflows.filter-by",{workflowName:o[0].name})),E(x,"class","inline-time-cell svelte-1haww6m"),E(d,"class","relative truncate"),E(le,"class","time-cell svelte-1haww6m"),E(re,"class","time-cell svelte-1haww6m")},m(g,A){w(g,t,A),P(r,t,null),w(g,e,A),w(g,l,A),P(i,l,null),T(l,n),P(a,l,null),T(l,s),T(l,c),T(c,_),w(g,$,A),w(g,d,A),T(d,h),T(h,m),T(h,C),T(d,y),T(d,q),T(q,R),T(d,te),P(z,d,null),T(d,me),T(d,x),T(x,ke),w(g,ye,A),w(g,le,A),T(le,_e),T(_e,Te),w(g,Ee,A),w(g,re,A),T(re,he),T(he,Ce),G=!0,Fe||(We=[X(l,"mouseover",o[8]),X(l,"focus",o[9]),X(l,"mouseleave",o[10]),X(l,"blur",o[11]),X(q,"click",_t(ot(o[12]))),X(d,"mouseover",o[14]),X(d,"focus",o[15]),X(d,"mouseleave",o[16]),X(d,"blur",o[17])],Fe=!0)},p(g,A){var ge,we,be;const M={};A&1&&(M.status=g[0].status),A&1&&(M.delay=Xe(g[0].startTime)),r.$set(M);const se={};A&4&&(se.href=g[2]),A&262145&&(se.$$scope={dirty:A,ctx:g}),i.$set(se);const Q={};A&2&&(Q.show=g[1]),A&1&&(Q.content=g[0].id),a.$set(Q),(!G||A&49)&&u!==(u=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(_,u),(!G||A&1)&&U!==(U=g[0].name+"")&&oe(R,U),(!G||A&1&&V!==(V=v("workflows.filter-by",{workflowName:g[0].name})))&&E(q,"aria-label",V);const Z={};A&2&&(Z.show=g[1]),A&1&&(Z.content=g[0].name),A&1&&(Z.onFilter=g[13]),A&9&&(Z.filtered=(be=(we=(ge=g[3].url)==null?void 0:ge.searchParams)==null?void 0:we.get("query"))==null?void 0:be.includes(g[0].name)),z.$set(Z),(!G||A&49)&&pe!==(pe=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(ke,pe),(!G||A&49)&&$e!==($e=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(Te,$e),(!G||A&49)&&de!==(de=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(Ce,de)},i(g){G||(b(r.$$.fragment,g),b(i.$$.fragment,g),b(a.$$.fragment,g),b(z.$$.fragment,g),G=!0)},o(g){k(r.$$.fragment,g),k(i.$$.fragment,g),k(a.$$.fragment,g),k(z.$$.fragment,g),G=!1},d(g){g&&(p(t),p(e),p(l),p($),p(d),p(ye),p(le),p(Ee),p(re)),F(r),F(i),F(a),F(z),Fe=!1,$t(We)}}}function Zt(o){let t,r;return t=new Tt({props:{class:"hover:bg-interactive-table-hover",$$slots:{default:[Vt]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,[l]){const i={};l&262207&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Jt(o,t,r){let e,l,i,n;ne(o,Ie,R=>r(3,l=R)),ne(o,qe,R=>r(4,i=R)),ne(o,St,R=>r(5,n=R));let{namespace:a}=t,{workflow:s}=t,c=!1;const u=R=>{const V=ze({timeRange:"All"}),te=l.url.searchParams.get("query"),z=Xt(te??V),me=(z==null?void 0:z.workflowType)===R?"":R,x=ze({...z,workflowType:me});ut({url:l.url,parameter:"query",value:x,allowEmpty:!0})},_=()=>r(1,c=!0),$=()=>r(1,c=!0),d=()=>r(1,c=!1),h=()=>r(1,c=!1),f=()=>u(s.name),m=()=>u(s.name),C=()=>r(1,c=!0),y=()=>r(1,c=!0),q=()=>r(1,c=!1),U=()=>r(1,c=!1);return o.$$set=R=>{"namespace"in R&&r(7,a=R.namespace),"workflow"in R&&r(0,s=R.workflow)},o.$$.update=()=>{o.$$.dirty&129&&r(2,e=Nt({namespace:a,workflow:s.id,run:s.runId}))},[s,c,e,l,i,n,u,a,_,$,d,h,f,m,C,y,q,U]}class Yt extends ue{constructor(t){super(),ce(this,t,Jt,Zt,fe,{namespace:7,workflow:0})}}function xt(o){let t;const r=o[1].default,e=ht(r,o,o[2],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,i){e&&e.m(l,i),t=!0},p(l,i){e&&e.p&&(!t||i&4)&&dt(e,r,l,l[2],t?wt(r,l[2],i,null):gt(l[2]),null)},i(l){t||(b(e,l),t=!0)},o(l){k(e,l),t=!1},d(l){e&&e.d(l)}}}function el(o){let t,r="Workflows";return{c(){t=N("caption"),t.textContent=r,this.h()},l(e){t=D(e,"CAPTION",{class:!0,slot:!0,"data-svelte-h":!0}),ae(t)!=="svelte-qflexs"&&(t.textContent=r),this.h()},h(){E(t,"class","sr-only"),E(t,"slot","caption")},m(e,l){w(e,t,l)},p:K,d(e){e&&p(t)}}}function tl(o){let t,r="Status",e,l,i="Workflow ID",n,a,s="Type",c,u,_="Start",$,d,h="End",f,m,C="Summary";return{c(){t=N("th"),t.textContent=r,e=W(),l=N("th"),l.textContent=i,n=W(),a=N("th"),a.textContent=s,c=W(),u=N("th"),u.textContent=_,$=W(),d=N("th"),d.textContent=h,f=W(),m=N("th"),m.textContent=C,this.h()},l(y){t=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(t)!=="svelte-16bnp2i"&&(t.textContent=r),e=H(y),l=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(l)!=="svelte-115zk6j"&&(l.textContent=i),n=H(y),a=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(a)!=="svelte-lhnwb5"&&(a.textContent=s),c=H(y),u=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(u)!=="svelte-1xn3gxk"&&(u.textContent=_),$=H(y),d=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(d)!=="svelte-10ns7z5"&&(d.textContent=h),f=H(y),m=D(y,"TH",{class:!0,colspan:!0,"data-svelte-h":!0}),ae(m)!=="svelte-39g6qc"&&(m.textContent=C),this.h()},h(){E(t,"class","w-32 max-md:hidden"),E(l,"class","max-md:hidden md:w-auto"),E(a,"class","w-60 max-md:hidden"),E(u,"class","w-60 max-xl:hidden"),E(d,"class","w-60 max-xl:hidden"),E(m,"class","md:hidden"),E(m,"colspan","3")},m(y,q){w(y,t,q),w(y,e,q),w(y,l,q),w(y,n,q),w(y,a,q),w(y,c,q),w(y,u,q),w(y,$,q),w(y,d,q),w(y,f,q),w(y,m,q)},p:K,d(y){y&&(p(t),p(e),p(l),p(n),p(a),p(c),p(u),p($),p(d),p(f),p(m))}}}function ll(o){let t,r;return t=new Ct({props:{slot:"headers",$$slots:{default:[tl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&4&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function rl(o){let t,r;return t=new Et({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[ll],caption:[el],default:[xt]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,[l]){const i={};l&1&&(i.updating=e[0]),l&4&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function al(o,t,r){let{$$slots:e={},$$scope:l}=t,{updating:i=!1}=t;return o.$$set=n=>{"updating"in n&&r(0,i=n.updating),"$$scope"in n&&r(2,l=n.$$scope)},[i,e,l]}class ol extends ue{constructor(t){super(),ce(this,t,al,rl,fe,{updating:0})}}var Ae={exports:{}};(function(o,t){var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,e=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;o.exports=t=function(i){return i.replace(r,function(n){return"-"+n.toLowerCase()})},t.reverse=function(l){return l.replace(e,function(i){return i.slice(1).toUpperCase()})}})(Ae,Ae.exports);var nl=Ae.exports;const sl=Lt(nl);function il(o){let t;return{c(){t=L(o[1])},l(r){t=B(r,o[1])},m(r,e){w(r,t,e)},p(r,e){e&2&&oe(t,r[1])},d(r){r&&p(t)}}}function fl(o){let t,r;return t=new Bt({props:{slot:"after-input",type:"submit","data-testid":`${o[6]}-button`,$$slots:{default:[il]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1026&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function ul(o){let t,r,e,l,i;return r=new ct({props:{class:"w-full",label:o[1],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[2],placeholder:o[0],"data-testid":`${o[6]}-input`,$$slots:{"after-input":[fl]},$$scope:{ctx:o}}}),r.$on("input",o[8]),{c(){t=N("form"),S(r.$$.fragment),this.h()},l(n){t=D(n,"FORM",{role:!0,class:!0,"data-testid":!0});var a=O(t);I(r.$$.fragment,a),a.forEach(p),this.h()},h(){E(t,"role","search"),E(t,"class","flex items-center"),E(t,"data-testid",`${o[6]}-form`)},m(n,a){w(n,t,a),P(r,t,null),e=!0,l||(i=X(t,"submit",ot(o[7])),l=!0)},p(n,[a]){const s={};a&2&&(s.label=n[1]),a&32&&(s.id=n[5]),a&16&&(s.icon=n[4]?"search":null),a&8&&(s.name=n[3]),a&4&&(s.value=n[2]),a&1&&(s.placeholder=n[0]),a&1026&&(s.$$scope={dirty:a,ctx:n}),r.$set(s)},i(n){e||(b(r.$$.fragment,n),e=!0)},o(n){k(r.$$.fragment,n),e=!1},d(n){n&&p(t),F(r),l=!1,i()}}}function cl(o,t,r){let{placeholder:e=`${v("common.search")}…`}=t,{label:l=v("common.search")}=t,{value:i=""}=t,{name:n="query"}=t,{icon:a=!1}=t,{id:s=sl(`${l}-${n}`)}=t,c=t["data-testid"]||s;function u($){Ge.call(this,o,$)}function _($){Ge.call(this,o,$)}return o.$$set=$=>{r(9,t=Qe(Qe({},t),Ue($))),"placeholder"in $&&r(0,e=$.placeholder),"label"in $&&r(1,l=$.label),"value"in $&&r(2,i=$.value),"name"in $&&r(3,n=$.name),"icon"in $&&r(4,a=$.icon),"id"in $&&r(5,s=$.id)},t=Ue(t),[e,l,i,n,a,s,c,u,_]}class ml extends ue{constructor(t){super(),ce(this,t,cl,ul,fe,{placeholder:0,label:1,value:2,name:3,icon:4,id:5})}}function pl(o){let t,r,e;function l(n){o[6](n)}let i={type:"search",icon:"search",label:o[0],labelHidden:!0,placeholder:o[0],id:o[2]};return o[1]!==void 0&&(i.value=o[1]),t=new ct({props:i}),nt.push(()=>ft(t,"value",l)),{c(){S(t.$$.fragment)},l(n){I(t.$$.fragment,n)},m(n,a){P(t,n,a),e=!0},p(n,[a]){const s={};a&1&&(s.label=n[0]),a&1&&(s.placeholder=n[0]),!r&&a&2&&(r=!0,s.value=n[1],st(()=>r=!1)),t.$set(s)},i(n){e||(b(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){F(t,n)}}}function _l(o,t,r){let e;ne(o,Ie,_=>r(5,e=_));let{parameter:l}=t,{name:i}=t,{value:n}=t,a=l&&e.url.searchParams.get(l)||n;const s=`${l||i}-filter`,c=Rt(ut,300);function u(_){a=_,r(1,a)}return o.$$set=_=>{"parameter"in _&&r(3,l=_.parameter),"name"in _&&r(0,i=_.name),"value"in _&&r(4,n=_.value)},o.$$.update=()=>{o.$$.dirty&42&&c({parameter:l,value:a,url:e.url})},[i,a,s,l,n,e,u]}class Ze extends ue{constructor(t){super(),ce(this,t,_l,pl,fe,{parameter:3,name:0,value:4})}}function Je(o,t,r){const e=o.slice();return e[6]=t[r].value,e[7]=t[r].label,e}function Ye(o,t,r){const e=o.slice();return e[6]=t[r],e}function $l(o){let t,r;return t=new Ne({props:{href:`${o[0].url.pathname}?query=`,$$slots:{default:[dl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.href=`${e[0].url.pathname}?query=`),l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function hl(o){let t,r;return t=new Ne({props:{href:o[0].url.pathname,$$slots:{default:[gl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.href=e[0].url.pathname),l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function dl(o){let t=v("workflows.advanced-search")+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function gl(o){let t=v("workflows.basic-search")+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function wl(o){let t,r,e,l,i,n,a,s,c,u,_,$;r=new Ze({props:{parameter:"workflow-id",name:v("common.workflow-id"),value:Fl}}),l=new Ze({props:{parameter:"workflow-type",name:v("common.workflow-type"),value:ql}}),n=new Ve({props:{label:v("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[kl]},$$scope:{ctx:o}}}),s=new Ve({props:{label:v("common.status"),parameter:"status",value:null,$$slots:{default:[Tl]},$$scope:{ctx:o}}});function d(f){o[5](f)}let h={id:"filter-by-relative-time",label:v("common.time"),$$slots:{default:[Il]},$$scope:{ctx:o}};return o[2]!==void 0&&(h.value=o[2]),u=new Ot({props:h}),nt.push(()=>ft(u,"value",d)),{c(){t=N("div"),S(r.$$.fragment),e=W(),S(l.$$.fragment),i=W(),S(n.$$.fragment),a=W(),S(s.$$.fragment),c=W(),S(u.$$.fragment),this.h()},l(f){t=D(f,"DIV",{class:!0,role:!0});var m=O(t);I(r.$$.fragment,m),e=H(m),I(l.$$.fragment,m),i=H(m),I(n.$$.fragment,m),a=H(m),I(s.$$.fragment,m),c=H(m),I(u.$$.fragment,m),m.forEach(p),this.h()},h(){E(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),E(t,"role","search")},m(f,m){w(f,t,m),P(r,t,null),T(t,e),P(l,t,null),T(t,i),P(n,t,null),T(t,a),P(s,t,null),T(t,c),P(u,t,null),$=!0},p(f,m){const C={};m&4096&&(C.$$scope={dirty:m,ctx:f}),n.$set(C);const y={};m&4096&&(y.$$scope={dirty:m,ctx:f}),s.$set(y);const q={};m&4096&&(q.$$scope={dirty:m,ctx:f}),!_&&m&4&&(_=!0,q.value=f[2],st(()=>_=!1)),u.$set(q)},i(f){$||(b(r.$$.fragment,f),b(l.$$.fragment,f),b(n.$$.fragment,f),b(s.$$.fragment,f),b(u.$$.fragment,f),$=!0)},o(f){k(r.$$.fragment,f),k(l.$$.fragment,f),k(n.$$.fragment,f),k(s.$$.fragment,f),k(u.$$.fragment,f),$=!1},d(f){f&&p(t),F(r),F(l),F(n),F(s),F(u)}}}function bl(o){let t,r;return t=new ml({props:{icon:!0,placeholder:v("common.search"),value:o[0].url.searchParams.get("query")}}),t.$on("submit",o[4]),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.value=e[0].url.searchParams.get("query")),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function vl(o){let t=o[6]+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function xe(o){let t,r;return t=new ve({props:{value:o[6],$$slots:{default:[vl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function kl(o){let t,r,e=ie(Ke),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[7];for(let a=0;a{u[C]=null}),Y(),l=u[e],l?l.p(f,m):(l=u[e]=c[e](f),l.c()),b(l,1),l.m(r,null));let y=n;n=h(f),n===y?d[n].p(f,m):(J(),k(d[y],1,1,()=>{d[y]=null}),Y(),a=d[n],a?a.p(f,m):(a=d[n]=$[n](f),a.c()),b(a,1),a.m(t,null))},i(f){s||(b(l),b(a),s=!0)},o(f){k(l),k(a),s=!1},d(f){f&&p(t),u[e].d(),d[n].d()}}}let Fl="",ql="";function Al(o,t,r){let e,l,i;ne(o,Ie,c=>r(0,l=c)),ne(o,qe,c=>r(2,i=c));const n={All:{value:null,label:v("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:v("workflows.timed-out")},Completed:{value:"Completed",label:v("workflows.completed")},Failed:{value:"Failed",label:v("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:v("workflows.continued-as-new")},Canceled:{value:"Canceled",label:v("workflows.canceled")},Terminated:{value:"Terminated",label:v("workflows.terminated")}},a=c=>{const _=new FormData(c.target).get("query");l.url.searchParams.set("query",String(_)),Ht(l.url.toString())};function s(c){i=c,qe.set(i)}return o.$$.update=()=>{o.$$.dirty&1&&r(1,e=l.url.searchParams.has("query"))},[l,e,i,n,a,s]}class Nl extends ue{constructor(t){super(),ce(this,t,Al,Pl,fe,{})}}function tt(o,t,r){const e=o.slice();return e[8]=t[r],e}function Dl(o){let t,r=v("workflows.archival-disabled-title")+"",e,l,i,n=v("workflows.archival-disabled-details")+"",a,s,c,u,_,$,d;u=new De({props:{content:`temporal operator namespace update --history-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}});let h=!o[1]&<(o);return{c(){t=N("h1"),e=L(r),l=W(),i=N("p"),a=L(n),s=L(":"),c=W(),S(u.$$.fragment),_=W(),h&&h.c(),$=j(),this.h()},l(f){t=D(f,"H1",{"data-testid":!0});var m=O(t);e=B(m,r),m.forEach(p),l=H(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=B(C,":"),C.forEach(p),c=H(f),I(u.$$.fragment,f),_=H(f),h&&h.l(f),$=j(),this.h()},h(){E(t,"data-testid","archived-disabled-title")},m(f,m){w(f,t,m),T(t,e),w(f,l,m),w(f,i,m),T(i,a),T(i,s),w(f,c,m),P(u,f,m),w(f,_,m),h&&h.m(f,m),w(f,$,m),d=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --history-archival-state enabled ${f[4]}`),u.$set(C),f[1]?h&&(J(),k(h,1,1,()=>{h=null}),Y()):h?(h.p(f,m),m&2&&b(h,1)):(h=lt(f),h.c(),b(h,1),h.m($.parentNode,$))},i(f){d||(b(u.$$.fragment,f),b(h),d=!0)},o(f){k(u.$$.fragment,f),k(h),d=!1},d(f){f&&(p(t),p(l),p(i),p(c),p(_),p($)),F(u,f),h&&h.d(f)}}}function Wl(o){let t,r=v("workflows.visibility-disabled-archival")+"",e,l,i,n=v("workflows.archival-link-preface")+"",a,s,c=v("workflows.archival-link")+"",u,_,$,d,h;return d=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){t=N("h1"),e=L(r),l=W(),i=N("p"),a=L(n),s=N("a"),u=L(c),_=L(":"),$=W(),S(d.$$.fragment),this.h()},l(f){t=D(f,"H1",{"data-testid":!0});var m=O(t);e=B(m,r),m.forEach(p),l=H(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=D(C,"A",{class:!0,href:!0,target:!0,rel:!0});var y=O(s);u=B(y,c),y.forEach(p),_=B(C,":"),C.forEach(p),$=H(f),I(d.$$.fragment,f),this.h()},h(){E(t,"data-testid","visibility-disabled-title"),E(s,"class","text-blue-700 underline"),E(s,"href","https://docs.temporal.io/clusters#archival"),E(s,"target","_blank"),E(s,"rel","noreferrer")},m(f,m){w(f,t,m),T(t,e),w(f,l,m),w(f,i,m),T(i,a),T(i,s),T(s,u),T(i,_),w(f,$,m),P(d,f,m),h=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`),d.$set(C)},i(f){h||(b(d.$$.fragment,f),h=!0)},o(f){k(d.$$.fragment,f),h=!1},d(f){f&&(p(t),p(l),p(i),p($)),F(d,f)}}}function Hl(o){let t,r=v("workflows.archived-workflows")+"",e,l,i,n,a,s,c,u=!o[0]&&rt();const _=[Bl,Ll],$=[];function d(h,f){var m;return(m=h[3])!=null&&m.length?0:1}return n=d(o),a=$[n]=_[n](o),{c(){t=N("h1"),e=L(r),l=W(),u&&u.c(),i=W(),a.c(),s=j(),this.h()},l(h){t=D(h,"H1",{"data-testid":!0});var f=O(t);e=B(f,r),f.forEach(p),l=H(h),u&&u.l(h),i=H(h),a.l(h),s=j(),this.h()},h(){E(t,"data-testid","archived-enabled-title")},m(h,f){w(h,t,f),T(t,e),w(h,l,f),u&&u.m(h,f),w(h,i,f),$[n].m(h,f),w(h,s,f),c=!0},p(h,f){h[0]?u&&(J(),k(u,1,1,()=>{u=null}),Y()):u?f&1&&b(u,1):(u=rt(),u.c(),b(u,1),u.m(i.parentNode,i));let m=n;n=d(h),n===m?$[n].p(h,f):(J(),k($[m],1,1,()=>{$[m]=null}),Y(),a=$[n],a?a.p(h,f):(a=$[n]=_[n](h),a.c()),b(a,1),a.m(s.parentNode,s))},i(h){c||(b(u),b(a),c=!0)},o(h){k(u),k(a),c=!1},d(h){h&&(p(t),p(l),p(i),p(s)),u&&u.d(h),$[n].d(h)}}}function lt(o){let t,r=v("workflows.archival-link-preface")+"",e,l,i=v("workflows.archival-link")+"",n,a,s,c,u;return c=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){t=N("p"),e=L(r),l=N("a"),n=L(i),a=L(":"),s=W(),S(c.$$.fragment),this.h()},l(_){t=D(_,"P",{});var $=O(t);e=B($,r),l=D($,"A",{class:!0,href:!0,target:!0,rel:!0});var d=O(l);n=B(d,i),d.forEach(p),a=B($,":"),$.forEach(p),s=H(_),I(c.$$.fragment,_),this.h()},h(){E(l,"class","text-blue-700 underline"),E(l,"href","https://docs.temporal.io/clusters#archival"),E(l,"target","_blank"),E(l,"rel","noreferrer")},m(_,$){w(_,t,$),T(t,e),T(t,l),T(l,n),T(t,a),w(_,s,$),P(c,_,$),u=!0},p(_,$){const d={};$&16&&(d.content=`temporal operator namespace update --visibility-archival-state enabled ${_[4]}`),c.$set(d)},i(_){u||(b(c.$$.fragment,_),u=!0)},o(_){k(c.$$.fragment,_),u=!1},d(_){_&&(p(t),p(s)),F(c,_)}}}function rt(o){let t,r;return t=new Nl({}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Ll(o){let t,r;return t=new Dt({props:{title:v("workflows.workflow-empty-state-title"),content:v("workflows.archival-empty-state-description")}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p:K,i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Bl(o){let t,r;return t=new Wt({props:{items:o[3],"aria-label":v("workflows.archived-workflows"),pageSizeSelectLabel:v("common.per-page"),previousButtonLabel:v("common.previous"),nextButtonLabel:v("common.next"),$$slots:{default:[Rl,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&8&&(i.items=e[3]),l&2192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function at(o){let t,r;return t=new Yt({props:{workflow:o[8],namespace:o[4]}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&128&&(i.workflow=e[8]),l&16&&(i.namespace=e[4]),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Ol(o){let t,r,e=ie(o[7]),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[d]=null}),Y(),l=s[e],l?l.p(u,_):(l=s[e]=a[e](u),l.c()),b(l,1),l.m(i.parentNode,i))},i(u){n||(b(t.$$.fragment,u),b(l),n=!0)},o(u){k(t.$$.fragment,u),k(l),n=!1},d(u){u&&(p(r),p(i)),F(t,u),s[e].d(u)}}}function zl(o,t,r){let e,l,i,n,a,s;ne(o,Ie,u=>r(5,s=u));let{data:c}=t;return o.$$set=u=>{"data"in u&&r(6,c=u.data)},o.$$.update=()=>{o.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=c,e,(r(3,l),r(6,c)),(r(2,i),r(6,c)),(r(1,n),r(6,c)),(r(0,a),r(6,c)))},[a,n,i,l,e,s,c]}class dr extends ue{constructor(t){super(),ce(this,t,zl,jl,fe,{data:6})}}export{dr as component,hr as universal}; +import{f as mt}from"../chunks/namespaces-service.CPFqCmJx.js";import{n as pt,o as ze}from"../chunks/workflows.Cse8qlOg.js";import{s as fe,c as ne,h as N,b as W,t as L,j as D,k as O,f as p,d as H,l as B,m as E,i as w,n as T,p as X,F as _t,X as ot,q as oe,G as $t,a as ht,u as dt,g as gt,e as wt,o as ae,v as K,z as Qe,A as Ue,B as Ge,N as nt,O as st,x as j,y as it}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,c as S,a as I,m as P,t as b,b as k,d as F,f as ft,g as J,e as Y}from"../chunks/index.dOVbn71B.js";import{e as ie,u as bt,o as vt}from"../chunks/each.C6O0oV7R.js";import{p as Ie}from"../chunks/stores.Ds4o9nwd.js";import{P as kt}from"../chunks/page-title.DNhqE1Lj.js";import{W as yt}from"../chunks/workflow-status.4hwv3weu.js";import{F as Me}from"../chunks/filter-or-copy-buttons.CemQB_H1.js";import{L as Ne}from"../chunks/link.C_v4aoat.js";import{b as Tt,T as Et,a as Ct}from"../chunks/table.Cg5jABZi.js";import{t as v}from"../chunks/translate.BBe5dcco.js";import{t as qe,r as St,f as ee}from"../chunks/time-format.BLKgLEx9.js";import{j as It,k as Pt,l as Ft,m as Xe,n as Ke}from"../chunks/format-time.6TuExJAg.js";import{t as qt}from"../chunks/tokenize.bmJ3_w3l.js";import{q as At}from"../chunks/has.BWrERxPV.js";import{b as Nt}from"../chunks/route-for.B9fTWV7L.js";import{u as ut}from"../chunks/update-query-parameters.DTvdkkGj.js";import{C as De}from"../chunks/code-block.DGWayI9q.js";import{E as Dt}from"../chunks/empty-state.BO9uOKUe.js";import{P as Wt}from"../chunks/pagination.1KQhGwzN.js";import{g as Ht}from"../chunks/entry.kylZibtV.js";import{g as Lt}from"../chunks/_commonjsHelpers.Cpj98o6Y.js";import{B as Bt}from"../chunks/button.hs88FdV4.js";import{I as ct}from"../chunks/input.Dizl7Mgk.js";import{F as Ve,S as Ot,a as ve}from"../chunks/filter-select.Cuzm5_PX.js";import{d as Rt}from"../chunks/index.i9NI_-YN.js";const jt=async function({params:o,url:t}){var f,m,C,y,q,U,R,V;const{searchParams:r}=t;r.has("time-range")||r.set("time-range","1 day");const e=r.get("workflow-id"),l=r.get("workflow-type"),i=r.get("time-range"),n=r.get("status"),a=await mt(o.namespace),s=(C=(m=(f=a.config)==null?void 0:f.historyArchivalUri)==null?void 0:m.toLowerCase())==null?void 0:C.startsWith("s3://"),c=(U=(q=(y=a.config)==null?void 0:y.historyArchivalUri)==null?void 0:q.toLowerCase())==null?void 0:U.startsWith("gs://"),u=s||c,_=u?{}:{workflowId:e,workflowType:l,closeTime:i,executionStatus:n},$=((R=a==null?void 0:a.config)==null?void 0:R.historyArchivalState)==="Enabled",d=((V=a==null?void 0:a.config)==null?void 0:V.visibilityArchivalState)==="Enabled",h=$&&d?await pt(o.namespace,_,fetch):null;return{workflows:h?h.workflows:[],namespace:a,archivalEnabled:$,visibilityArchivalEnabled:d,archivalQueryingNotSupported:u}},hr=Object.freeze(Object.defineProperty({__proto__:null,load:jt},Symbol.toStringTag,{value:"Module"})),Pe=o=>t=>t.toLowerCase()===o.toLowerCase(),Se=(o,t)=>o[t+2],zt=o=>{if(o){for(const t of Ft)if(o[t])return{[t]:o[t]}}},Qt=Pe("WorkflowType"),Ut=Pe("WorkflowId"),Gt=Pe("StartTime"),Mt=Pe("ExecutionStatus"),Xt=o=>{const t=qt(o),r={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return t.forEach((e,l)=>{if(Ut(e)&&(r.workflowId=Se(t,l)),Qt(e)&&(r.workflowType=Se(t,l)),Mt(e)){const i=Se(t,l);At(i)&&(r.executionStatus=i)}if(Gt(e)){const i=Se(t,l);try{const n=It(i),a=zt(n);r.timeRange=Pt(a)}catch(n){console.error("Error parsing StartTime from query",n)}}}),r};function Kt(o){let t=o[0].id+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p(e,l){l&1&&t!==(t=e[0].id+"")&&oe(r,t)},d(e){e&&p(r)}}}function Vt(o){var He,Le,Be;let t,r,e,l,i,n,a,s,c,u=ee(o[0].startTime,o[4],{relative:o[5]})+"",_,$,d,h,f=v("workflows.workflow-name")+"",m,C,y,q,U=o[0].name+"",R,V,te,z,me,x,pe=ee(o[0].endTime,o[4],{relative:o[5]})+"",ke,ye,le,_e,$e=ee(o[0].startTime,o[4],{relative:o[5]})+"",Te,Ee,re,he,de=ee(o[0].endTime,o[4],{relative:o[5]})+"",Ce,G,Fe,We;return r=new yt({props:{status:o[0].status,delay:Xe(o[0].startTime)}}),i=new Ne({props:{href:o[2],$$slots:{default:[Kt]},$$scope:{ctx:o}}}),a=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),z=new Me({props:{copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title"),filterIconTitle:v("common.filter-workflows"),show:o[1],content:o[0].name,onFilter:o[13],filtered:(Be=(Le=(He=o[3].url)==null?void 0:He.searchParams)==null?void 0:Le.get("query"))==null?void 0:Be.includes(o[0].name)}}),{c(){t=N("td"),S(r.$$.fragment),e=W(),l=N("td"),S(i.$$.fragment),n=W(),S(a.$$.fragment),s=W(),c=N("p"),_=L(u),$=W(),d=N("td"),h=N("h3"),m=L(f),C=L(":"),y=W(),q=N("button"),R=L(U),te=W(),S(z.$$.fragment),me=W(),x=N("p"),ke=L(pe),ye=W(),le=N("td"),_e=N("p"),Te=L($e),Ee=W(),re=N("td"),he=N("p"),Ce=L(de),this.h()},l(g){t=D(g,"TD",{});var A=O(t);I(r.$$.fragment,A),A.forEach(p),e=H(g),l=D(g,"TD",{class:!0});var M=O(l);I(i.$$.fragment,M),n=H(M),I(a.$$.fragment,M),s=H(M),c=D(M,"P",{class:!0});var se=O(c);_=B(se,u),se.forEach(p),M.forEach(p),$=H(g),d=D(g,"TD",{class:!0});var Q=O(d);h=D(Q,"H3",{class:!0});var Z=O(h);m=B(Z,f),C=B(Z,":"),Z.forEach(p),y=H(Q),q=D(Q,"BUTTON",{class:!0,"aria-label":!0});var ge=O(q);R=B(ge,U),ge.forEach(p),te=H(Q),I(z.$$.fragment,Q),me=H(Q),x=D(Q,"P",{class:!0});var we=O(x);ke=B(we,pe),we.forEach(p),Q.forEach(p),ye=H(g),le=D(g,"TD",{class:!0});var be=O(le);_e=D(be,"P",{});var Oe=O(_e);Te=B(Oe,$e),Oe.forEach(p),be.forEach(p),Ee=H(g),re=D(g,"TD",{class:!0});var Re=O(re);he=D(Re,"P",{});var je=O(he);Ce=B(je,de),je.forEach(p),Re.forEach(p),this.h()},h(){E(c,"class","inline-time-cell svelte-1haww6m"),E(l,"class","relative break-words pr-4"),E(h,"class","md:hidden"),E(q,"class","table-link"),E(q,"aria-label",V=v("workflows.filter-by",{workflowName:o[0].name})),E(x,"class","inline-time-cell svelte-1haww6m"),E(d,"class","relative truncate"),E(le,"class","time-cell svelte-1haww6m"),E(re,"class","time-cell svelte-1haww6m")},m(g,A){w(g,t,A),P(r,t,null),w(g,e,A),w(g,l,A),P(i,l,null),T(l,n),P(a,l,null),T(l,s),T(l,c),T(c,_),w(g,$,A),w(g,d,A),T(d,h),T(h,m),T(h,C),T(d,y),T(d,q),T(q,R),T(d,te),P(z,d,null),T(d,me),T(d,x),T(x,ke),w(g,ye,A),w(g,le,A),T(le,_e),T(_e,Te),w(g,Ee,A),w(g,re,A),T(re,he),T(he,Ce),G=!0,Fe||(We=[X(l,"mouseover",o[8]),X(l,"focus",o[9]),X(l,"mouseleave",o[10]),X(l,"blur",o[11]),X(q,"click",_t(ot(o[12]))),X(d,"mouseover",o[14]),X(d,"focus",o[15]),X(d,"mouseleave",o[16]),X(d,"blur",o[17])],Fe=!0)},p(g,A){var ge,we,be;const M={};A&1&&(M.status=g[0].status),A&1&&(M.delay=Xe(g[0].startTime)),r.$set(M);const se={};A&4&&(se.href=g[2]),A&262145&&(se.$$scope={dirty:A,ctx:g}),i.$set(se);const Q={};A&2&&(Q.show=g[1]),A&1&&(Q.content=g[0].id),a.$set(Q),(!G||A&49)&&u!==(u=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(_,u),(!G||A&1)&&U!==(U=g[0].name+"")&&oe(R,U),(!G||A&1&&V!==(V=v("workflows.filter-by",{workflowName:g[0].name})))&&E(q,"aria-label",V);const Z={};A&2&&(Z.show=g[1]),A&1&&(Z.content=g[0].name),A&1&&(Z.onFilter=g[13]),A&9&&(Z.filtered=(be=(we=(ge=g[3].url)==null?void 0:ge.searchParams)==null?void 0:we.get("query"))==null?void 0:be.includes(g[0].name)),z.$set(Z),(!G||A&49)&&pe!==(pe=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(ke,pe),(!G||A&49)&&$e!==($e=ee(g[0].startTime,g[4],{relative:g[5]})+"")&&oe(Te,$e),(!G||A&49)&&de!==(de=ee(g[0].endTime,g[4],{relative:g[5]})+"")&&oe(Ce,de)},i(g){G||(b(r.$$.fragment,g),b(i.$$.fragment,g),b(a.$$.fragment,g),b(z.$$.fragment,g),G=!0)},o(g){k(r.$$.fragment,g),k(i.$$.fragment,g),k(a.$$.fragment,g),k(z.$$.fragment,g),G=!1},d(g){g&&(p(t),p(e),p(l),p($),p(d),p(ye),p(le),p(Ee),p(re)),F(r),F(i),F(a),F(z),Fe=!1,$t(We)}}}function Zt(o){let t,r;return t=new Tt({props:{class:"hover:bg-interactive-table-hover",$$slots:{default:[Vt]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,[l]){const i={};l&262207&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Jt(o,t,r){let e,l,i,n;ne(o,Ie,R=>r(3,l=R)),ne(o,qe,R=>r(4,i=R)),ne(o,St,R=>r(5,n=R));let{namespace:a}=t,{workflow:s}=t,c=!1;const u=R=>{const V=ze({timeRange:"All"}),te=l.url.searchParams.get("query"),z=Xt(te??V),me=(z==null?void 0:z.workflowType)===R?"":R,x=ze({...z,workflowType:me});ut({url:l.url,parameter:"query",value:x,allowEmpty:!0})},_=()=>r(1,c=!0),$=()=>r(1,c=!0),d=()=>r(1,c=!1),h=()=>r(1,c=!1),f=()=>u(s.name),m=()=>u(s.name),C=()=>r(1,c=!0),y=()=>r(1,c=!0),q=()=>r(1,c=!1),U=()=>r(1,c=!1);return o.$$set=R=>{"namespace"in R&&r(7,a=R.namespace),"workflow"in R&&r(0,s=R.workflow)},o.$$.update=()=>{o.$$.dirty&129&&r(2,e=Nt({namespace:a,workflow:s.id,run:s.runId}))},[s,c,e,l,i,n,u,a,_,$,d,h,f,m,C,y,q,U]}class Yt extends ue{constructor(t){super(),ce(this,t,Jt,Zt,fe,{namespace:7,workflow:0})}}function xt(o){let t;const r=o[1].default,e=ht(r,o,o[2],null);return{c(){e&&e.c()},l(l){e&&e.l(l)},m(l,i){e&&e.m(l,i),t=!0},p(l,i){e&&e.p&&(!t||i&4)&&dt(e,r,l,l[2],t?wt(r,l[2],i,null):gt(l[2]),null)},i(l){t||(b(e,l),t=!0)},o(l){k(e,l),t=!1},d(l){e&&e.d(l)}}}function el(o){let t,r="Workflows";return{c(){t=N("caption"),t.textContent=r,this.h()},l(e){t=D(e,"CAPTION",{class:!0,slot:!0,"data-svelte-h":!0}),ae(t)!=="svelte-qflexs"&&(t.textContent=r),this.h()},h(){E(t,"class","sr-only"),E(t,"slot","caption")},m(e,l){w(e,t,l)},p:K,d(e){e&&p(t)}}}function tl(o){let t,r="Status",e,l,i="Workflow ID",n,a,s="Type",c,u,_="Start",$,d,h="End",f,m,C="Summary";return{c(){t=N("th"),t.textContent=r,e=W(),l=N("th"),l.textContent=i,n=W(),a=N("th"),a.textContent=s,c=W(),u=N("th"),u.textContent=_,$=W(),d=N("th"),d.textContent=h,f=W(),m=N("th"),m.textContent=C,this.h()},l(y){t=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(t)!=="svelte-16bnp2i"&&(t.textContent=r),e=H(y),l=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(l)!=="svelte-115zk6j"&&(l.textContent=i),n=H(y),a=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(a)!=="svelte-lhnwb5"&&(a.textContent=s),c=H(y),u=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(u)!=="svelte-1xn3gxk"&&(u.textContent=_),$=H(y),d=D(y,"TH",{class:!0,"data-svelte-h":!0}),ae(d)!=="svelte-10ns7z5"&&(d.textContent=h),f=H(y),m=D(y,"TH",{class:!0,colspan:!0,"data-svelte-h":!0}),ae(m)!=="svelte-39g6qc"&&(m.textContent=C),this.h()},h(){E(t,"class","w-32 max-md:hidden"),E(l,"class","max-md:hidden md:w-auto"),E(a,"class","w-60 max-md:hidden"),E(u,"class","w-60 max-xl:hidden"),E(d,"class","w-60 max-xl:hidden"),E(m,"class","md:hidden"),E(m,"colspan","3")},m(y,q){w(y,t,q),w(y,e,q),w(y,l,q),w(y,n,q),w(y,a,q),w(y,c,q),w(y,u,q),w(y,$,q),w(y,d,q),w(y,f,q),w(y,m,q)},p:K,d(y){y&&(p(t),p(e),p(l),p(n),p(a),p(c),p(u),p($),p(d),p(f),p(m))}}}function ll(o){let t,r;return t=new Ct({props:{slot:"headers",$$slots:{default:[tl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&4&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function rl(o){let t,r;return t=new Et({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[ll],caption:[el],default:[xt]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,[l]){const i={};l&1&&(i.updating=e[0]),l&4&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function al(o,t,r){let{$$slots:e={},$$scope:l}=t,{updating:i=!1}=t;return o.$$set=n=>{"updating"in n&&r(0,i=n.updating),"$$scope"in n&&r(2,l=n.$$scope)},[i,e,l]}class ol extends ue{constructor(t){super(),ce(this,t,al,rl,fe,{updating:0})}}var Ae={exports:{}};(function(o,t){var r=/[A-Z\u00C0-\u00D6\u00D8-\u00DE]/g,e=/-[a-z\u00E0-\u00F6\u00F8-\u00FE]/g;o.exports=t=function(i){return i.replace(r,function(n){return"-"+n.toLowerCase()})},t.reverse=function(l){return l.replace(e,function(i){return i.slice(1).toUpperCase()})}})(Ae,Ae.exports);var nl=Ae.exports;const sl=Lt(nl);function il(o){let t;return{c(){t=L(o[1])},l(r){t=B(r,o[1])},m(r,e){w(r,t,e)},p(r,e){e&2&&oe(t,r[1])},d(r){r&&p(t)}}}function fl(o){let t,r;return t=new Bt({props:{slot:"after-input",type:"submit","data-testid":`${o[6]}-button`,$$slots:{default:[il]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1026&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function ul(o){let t,r,e,l,i;return r=new ct({props:{class:"w-full",label:o[1],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[2],placeholder:o[0],"data-testid":`${o[6]}-input`,$$slots:{"after-input":[fl]},$$scope:{ctx:o}}}),r.$on("input",o[8]),{c(){t=N("form"),S(r.$$.fragment),this.h()},l(n){t=D(n,"FORM",{role:!0,class:!0,"data-testid":!0});var a=O(t);I(r.$$.fragment,a),a.forEach(p),this.h()},h(){E(t,"role","search"),E(t,"class","flex items-center"),E(t,"data-testid",`${o[6]}-form`)},m(n,a){w(n,t,a),P(r,t,null),e=!0,l||(i=X(t,"submit",ot(o[7])),l=!0)},p(n,[a]){const s={};a&2&&(s.label=n[1]),a&32&&(s.id=n[5]),a&16&&(s.icon=n[4]?"search":null),a&8&&(s.name=n[3]),a&4&&(s.value=n[2]),a&1&&(s.placeholder=n[0]),a&1026&&(s.$$scope={dirty:a,ctx:n}),r.$set(s)},i(n){e||(b(r.$$.fragment,n),e=!0)},o(n){k(r.$$.fragment,n),e=!1},d(n){n&&p(t),F(r),l=!1,i()}}}function cl(o,t,r){let{placeholder:e=`${v("common.search")}…`}=t,{label:l=v("common.search")}=t,{value:i=""}=t,{name:n="query"}=t,{icon:a=!1}=t,{id:s=sl(`${l}-${n}`)}=t,c=t["data-testid"]||s;function u($){Ge.call(this,o,$)}function _($){Ge.call(this,o,$)}return o.$$set=$=>{r(9,t=Qe(Qe({},t),Ue($))),"placeholder"in $&&r(0,e=$.placeholder),"label"in $&&r(1,l=$.label),"value"in $&&r(2,i=$.value),"name"in $&&r(3,n=$.name),"icon"in $&&r(4,a=$.icon),"id"in $&&r(5,s=$.id)},t=Ue(t),[e,l,i,n,a,s,c,u,_]}class ml extends ue{constructor(t){super(),ce(this,t,cl,ul,fe,{placeholder:0,label:1,value:2,name:3,icon:4,id:5})}}function pl(o){let t,r,e;function l(n){o[6](n)}let i={type:"search",icon:"search",label:o[0],labelHidden:!0,placeholder:o[0],id:o[2]};return o[1]!==void 0&&(i.value=o[1]),t=new ct({props:i}),nt.push(()=>ft(t,"value",l)),{c(){S(t.$$.fragment)},l(n){I(t.$$.fragment,n)},m(n,a){P(t,n,a),e=!0},p(n,[a]){const s={};a&1&&(s.label=n[0]),a&1&&(s.placeholder=n[0]),!r&&a&2&&(r=!0,s.value=n[1],st(()=>r=!1)),t.$set(s)},i(n){e||(b(t.$$.fragment,n),e=!0)},o(n){k(t.$$.fragment,n),e=!1},d(n){F(t,n)}}}function _l(o,t,r){let e;ne(o,Ie,_=>r(5,e=_));let{parameter:l}=t,{name:i}=t,{value:n}=t,a=l&&e.url.searchParams.get(l)||n;const s=`${l||i}-filter`,c=Rt(ut,300);function u(_){a=_,r(1,a)}return o.$$set=_=>{"parameter"in _&&r(3,l=_.parameter),"name"in _&&r(0,i=_.name),"value"in _&&r(4,n=_.value)},o.$$.update=()=>{o.$$.dirty&42&&c({parameter:l,value:a,url:e.url})},[i,a,s,l,n,e,u]}class Ze extends ue{constructor(t){super(),ce(this,t,_l,pl,fe,{parameter:3,name:0,value:4})}}function Je(o,t,r){const e=o.slice();return e[6]=t[r].value,e[7]=t[r].label,e}function Ye(o,t,r){const e=o.slice();return e[6]=t[r],e}function $l(o){let t,r;return t=new Ne({props:{href:`${o[0].url.pathname}?query=`,$$slots:{default:[dl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.href=`${e[0].url.pathname}?query=`),l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function hl(o){let t,r;return t=new Ne({props:{href:o[0].url.pathname,$$slots:{default:[gl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.href=e[0].url.pathname),l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function dl(o){let t=v("workflows.advanced-search")+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function gl(o){let t=v("workflows.basic-search")+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function wl(o){let t,r,e,l,i,n,a,s,c,u,_,$;r=new Ze({props:{parameter:"workflow-id",name:v("common.workflow-id"),value:Fl}}),l=new Ze({props:{parameter:"workflow-type",name:v("common.workflow-type"),value:ql}}),n=new Ve({props:{label:v("workflows.time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[kl]},$$scope:{ctx:o}}}),s=new Ve({props:{label:v("common.status"),parameter:"status",value:null,$$slots:{default:[Tl]},$$scope:{ctx:o}}});function d(f){o[5](f)}let h={id:"filter-by-relative-time",label:v("common.time"),$$slots:{default:[Il]},$$scope:{ctx:o}};return o[2]!==void 0&&(h.value=o[2]),u=new Ot({props:h}),nt.push(()=>ft(u,"value",d)),{c(){t=N("div"),S(r.$$.fragment),e=W(),S(l.$$.fragment),i=W(),S(n.$$.fragment),a=W(),S(s.$$.fragment),c=W(),S(u.$$.fragment),this.h()},l(f){t=D(f,"DIV",{class:!0,role:!0});var m=O(t);I(r.$$.fragment,m),e=H(m),I(l.$$.fragment,m),i=H(m),I(n.$$.fragment,m),a=H(m),I(s.$$.fragment,m),c=H(m),I(u.$$.fragment,m),m.forEach(p),this.h()},h(){E(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),E(t,"role","search")},m(f,m){w(f,t,m),P(r,t,null),T(t,e),P(l,t,null),T(t,i),P(n,t,null),T(t,a),P(s,t,null),T(t,c),P(u,t,null),$=!0},p(f,m){const C={};m&4096&&(C.$$scope={dirty:m,ctx:f}),n.$set(C);const y={};m&4096&&(y.$$scope={dirty:m,ctx:f}),s.$set(y);const q={};m&4096&&(q.$$scope={dirty:m,ctx:f}),!_&&m&4&&(_=!0,q.value=f[2],st(()=>_=!1)),u.$set(q)},i(f){$||(b(r.$$.fragment,f),b(l.$$.fragment,f),b(n.$$.fragment,f),b(s.$$.fragment,f),b(u.$$.fragment,f),$=!0)},o(f){k(r.$$.fragment,f),k(l.$$.fragment,f),k(n.$$.fragment,f),k(s.$$.fragment,f),k(u.$$.fragment,f),$=!1},d(f){f&&p(t),F(r),F(l),F(n),F(s),F(u)}}}function bl(o){let t,r;return t=new ml({props:{icon:!0,placeholder:v("common.search"),value:o[0].url.searchParams.get("query")}}),t.$on("submit",o[4]),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&1&&(i.value=e[0].url.searchParams.get("query")),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function vl(o){let t=o[6]+"",r;return{c(){r=L(t)},l(e){r=B(e,t)},m(e,l){w(e,r,l)},p:K,d(e){e&&p(r)}}}function xe(o){let t,r;return t=new ve({props:{value:o[6],$$slots:{default:[vl]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&4096&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function kl(o){let t,r,e=ie(Ke),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;na[7];for(let a=0;a{u[C]=null}),Y(),l=u[e],l?l.p(f,m):(l=u[e]=c[e](f),l.c()),b(l,1),l.m(r,null));let y=n;n=h(f),n===y?d[n].p(f,m):(J(),k(d[y],1,1,()=>{d[y]=null}),Y(),a=d[n],a?a.p(f,m):(a=d[n]=$[n](f),a.c()),b(a,1),a.m(t,null))},i(f){s||(b(l),b(a),s=!0)},o(f){k(l),k(a),s=!1},d(f){f&&p(t),u[e].d(),d[n].d()}}}let Fl="",ql="";function Al(o,t,r){let e,l,i;ne(o,Ie,c=>r(0,l=c)),ne(o,qe,c=>r(2,i=c));const n={All:{value:null,label:v("workflows.all-statuses")},"Timed Out":{value:"TimedOut",label:v("workflows.timed-out")},Completed:{value:"Completed",label:v("workflows.completed")},Failed:{value:"Failed",label:v("workflows.failed")},"Continued as New":{value:"ContinuedAsNew",label:v("workflows.continued-as-new")},Canceled:{value:"Canceled",label:v("workflows.canceled")},Terminated:{value:"Terminated",label:v("workflows.terminated")}},a=c=>{const _=new FormData(c.target).get("query");l.url.searchParams.set("query",String(_)),Ht(l.url.toString())};function s(c){i=c,qe.set(i)}return o.$$.update=()=>{o.$$.dirty&1&&r(1,e=l.url.searchParams.has("query"))},[l,e,i,n,a,s]}class Nl extends ue{constructor(t){super(),ce(this,t,Al,Pl,fe,{})}}function tt(o,t,r){const e=o.slice();return e[8]=t[r],e}function Dl(o){let t,r=v("workflows.archival-disabled-title")+"",e,l,i,n=v("workflows.archival-disabled-details")+"",a,s,c,u,_,$,d;u=new De({props:{content:`temporal operator namespace update --history-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}});let h=!o[1]&<(o);return{c(){t=N("h1"),e=L(r),l=W(),i=N("p"),a=L(n),s=L(":"),c=W(),S(u.$$.fragment),_=W(),h&&h.c(),$=j(),this.h()},l(f){t=D(f,"H1",{"data-testid":!0});var m=O(t);e=B(m,r),m.forEach(p),l=H(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=B(C,":"),C.forEach(p),c=H(f),I(u.$$.fragment,f),_=H(f),h&&h.l(f),$=j(),this.h()},h(){E(t,"data-testid","archived-disabled-title")},m(f,m){w(f,t,m),T(t,e),w(f,l,m),w(f,i,m),T(i,a),T(i,s),w(f,c,m),P(u,f,m),w(f,_,m),h&&h.m(f,m),w(f,$,m),d=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --history-archival-state enabled ${f[4]}`),u.$set(C),f[1]?h&&(J(),k(h,1,1,()=>{h=null}),Y()):h?(h.p(f,m),m&2&&b(h,1)):(h=lt(f),h.c(),b(h,1),h.m($.parentNode,$))},i(f){d||(b(u.$$.fragment,f),b(h),d=!0)},o(f){k(u.$$.fragment,f),k(h),d=!1},d(f){f&&(p(t),p(l),p(i),p(c),p(_),p($)),F(u,f),h&&h.d(f)}}}function Wl(o){let t,r=v("workflows.visibility-disabled-archival")+"",e,l,i,n=v("workflows.archival-link-preface")+"",a,s,c=v("workflows.archival-link")+"",u,_,$,d,h;return d=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){t=N("h1"),e=L(r),l=W(),i=N("p"),a=L(n),s=N("a"),u=L(c),_=L(":"),$=W(),S(d.$$.fragment),this.h()},l(f){t=D(f,"H1",{"data-testid":!0});var m=O(t);e=B(m,r),m.forEach(p),l=H(f),i=D(f,"P",{});var C=O(i);a=B(C,n),s=D(C,"A",{class:!0,href:!0,target:!0,rel:!0});var y=O(s);u=B(y,c),y.forEach(p),_=B(C,":"),C.forEach(p),$=H(f),I(d.$$.fragment,f),this.h()},h(){E(t,"data-testid","visibility-disabled-title"),E(s,"class","text-blue-700 underline"),E(s,"href","https://docs.temporal.io/clusters#archival"),E(s,"target","_blank"),E(s,"rel","noreferrer")},m(f,m){w(f,t,m),T(t,e),w(f,l,m),w(f,i,m),T(i,a),T(i,s),T(s,u),T(i,_),w(f,$,m),P(d,f,m),h=!0},p(f,m){const C={};m&16&&(C.content=`temporal operator namespace update --visibility-archival-state enabled ${f[4]}`),d.$set(C)},i(f){h||(b(d.$$.fragment,f),h=!0)},o(f){k(d.$$.fragment,f),h=!1},d(f){f&&(p(t),p(l),p(i),p($)),F(d,f)}}}function Hl(o){let t,r=v("workflows.archived-workflows")+"",e,l,i,n,a,s,c,u=!o[0]&&rt();const _=[Bl,Ll],$=[];function d(h,f){var m;return(m=h[3])!=null&&m.length?0:1}return n=d(o),a=$[n]=_[n](o),{c(){t=N("h1"),e=L(r),l=W(),u&&u.c(),i=W(),a.c(),s=j(),this.h()},l(h){t=D(h,"H1",{"data-testid":!0});var f=O(t);e=B(f,r),f.forEach(p),l=H(h),u&&u.l(h),i=H(h),a.l(h),s=j(),this.h()},h(){E(t,"data-testid","archived-enabled-title")},m(h,f){w(h,t,f),T(t,e),w(h,l,f),u&&u.m(h,f),w(h,i,f),$[n].m(h,f),w(h,s,f),c=!0},p(h,f){h[0]?u&&(J(),k(u,1,1,()=>{u=null}),Y()):u?f&1&&b(u,1):(u=rt(),u.c(),b(u,1),u.m(i.parentNode,i));let m=n;n=d(h),n===m?$[n].p(h,f):(J(),k($[m],1,1,()=>{$[m]=null}),Y(),a=$[n],a?a.p(h,f):(a=$[n]=_[n](h),a.c()),b(a,1),a.m(s.parentNode,s))},i(h){c||(b(u),b(a),c=!0)},o(h){k(u),k(a),c=!1},d(h){h&&(p(t),p(l),p(i),p(s)),u&&u.d(h),$[n].d(h)}}}function lt(o){let t,r=v("workflows.archival-link-preface")+"",e,l,i=v("workflows.archival-link")+"",n,a,s,c,u;return c=new De({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`,language:"text",inline:!0,copyIconTitle:v("common.copy-icon-title"),copySuccessIconTitle:v("common.copy-success-icon-title")}}),{c(){t=N("p"),e=L(r),l=N("a"),n=L(i),a=L(":"),s=W(),S(c.$$.fragment),this.h()},l(_){t=D(_,"P",{});var $=O(t);e=B($,r),l=D($,"A",{class:!0,href:!0,target:!0,rel:!0});var d=O(l);n=B(d,i),d.forEach(p),a=B($,":"),$.forEach(p),s=H(_),I(c.$$.fragment,_),this.h()},h(){E(l,"class","text-blue-700 underline"),E(l,"href","https://docs.temporal.io/clusters#archival"),E(l,"target","_blank"),E(l,"rel","noreferrer")},m(_,$){w(_,t,$),T(t,e),T(t,l),T(l,n),T(t,a),w(_,s,$),P(c,_,$),u=!0},p(_,$){const d={};$&16&&(d.content=`temporal operator namespace update --visibility-archival-state enabled ${_[4]}`),c.$set(d)},i(_){u||(b(c.$$.fragment,_),u=!0)},o(_){k(c.$$.fragment,_),u=!1},d(_){_&&(p(t),p(s)),F(c,_)}}}function rt(o){let t,r;return t=new Nl({}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Ll(o){let t,r;return t=new Dt({props:{title:v("workflows.workflow-empty-state-title"),content:v("workflows.archival-empty-state-description")}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p:K,i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Bl(o){let t,r;return t=new Wt({props:{items:o[3],"aria-label":v("workflows.archived-workflows"),pageSizeSelectLabel:v("common.per-page"),previousButtonLabel:v("common.previous"),nextButtonLabel:v("common.next"),$$slots:{default:[Rl,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:o}}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&8&&(i.items=e[3]),l&2192&&(i.$$scope={dirty:l,ctx:e}),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function at(o){let t,r;return t=new Yt({props:{workflow:o[8],namespace:o[4]}}),{c(){S(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){P(t,e,l),r=!0},p(e,l){const i={};l&128&&(i.workflow=e[8]),l&16&&(i.namespace=e[4]),t.$set(i)},i(e){r||(b(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){F(t,e)}}}function Ol(o){let t,r,e=ie(o[7]),l=[];for(let n=0;nk(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[d]=null}),Y(),l=s[e],l?l.p(u,_):(l=s[e]=a[e](u),l.c()),b(l,1),l.m(i.parentNode,i))},i(u){n||(b(t.$$.fragment,u),b(l),n=!0)},o(u){k(t.$$.fragment,u),k(l),n=!1},d(u){u&&(p(r),p(i)),F(t,u),s[e].d(u)}}}function zl(o,t,r){let e,l,i,n,a,s;ne(o,Ie,u=>r(5,s=u));let{data:c}=t;return o.$$set=u=>{"data"in u&&r(6,c=u.data)},o.$$.update=()=>{o.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:i,visibilityArchivalEnabled:n,archivalQueryingNotSupported:a}=c,e,(r(3,l),r(6,c)),(r(2,i),r(6,c)),(r(1,n),r(6,c)),(r(0,a),r(6,c)))},[a,n,i,l,e,s,c]}class dr extends ue{constructor(t){super(),ce(this,t,zl,jl,fe,{data:6})}}export{dr as component,hr as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/21.j3wmBe2Z.js b/ui/assets/local/_app/immutable/nodes/21.BqvboFmv.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/21.j3wmBe2Z.js rename to ui/assets/local/_app/immutable/nodes/21.BqvboFmv.js index 5f6b46c11..f3c235717 100644 --- a/ui/assets/local/_app/immutable/nodes/21.j3wmBe2Z.js +++ b/ui/assets/local/_app/immutable/nodes/21.BqvboFmv.js @@ -1 +1 @@ -import{s as M,c as y,x as z,i as p,f as m,y as se,h as E,t as N,j as B,k as D,l as O,m as j,n as S,v as T,b as P,d as H,q as G}from"../chunks/scheduler.C46pS-76.js";import{S as Q,i as V,c as g,a as b,m as v,t as _,b as h,d as w,g as J,e as K}from"../chunks/index.dOVbn71B.js";import{p as oe}from"../chunks/stores.Dz-RNcUk.js";import{P as fe}from"../chunks/page-title.DNhqE1Lj.js";import{t as C}from"../chunks/translate.BBe5dcco.js";import{h as W,u as ie}from"../chunks/await_block.BfN27BCg.js";import{e as X}from"../chunks/each.C6O0oV7R.js";import{B as ce}from"../chunks/badge.jG5hkqHT.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as me}from"../chunks/link.BJceiGbc.js";import{T as ue,a as pe,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as $e,r as _e,f as U}from"../chunks/time-format.D2wF3ave.js";import{k as Z}from"../chunks/route-for.BjP6gGR7.js";import{A as he}from"../chunks/alert.nnKn2vnv.js";import{L as de}from"../chunks/loading.BLsNkl8r.js";import{l as x,i as ge}from"../chunks/batch-operations.BeHaOhdY.js";function ee(s,t,l){const e=s.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function te(s){let t,l;return t=new ne({props:{$$slots:{default:[be]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function be(s){let t,l,e,a,r,c,o;return l=new Y({props:{title:C("batch.empty-state-title")}}),r=new Y({props:{title:C("batch.empty-state-title")}}),{c(){t=E("td"),g(l.$$.fragment),e=P(),a=E("td"),g(r.$$.fragment),c=P(),this.h()},l(n){t=B(n,"TD",{class:!0,colspan:!0});var f=D(t);b(l.$$.fragment,f),f.forEach(m),e=H(n),a=B(n,"TD",{class:!0,colspan:!0});var $=D(a);b(r.$$.fragment,$),$.forEach(m),c=H(n),this.h()},h(){j(t,"class","max-sm:hidden"),j(t,"colspan","4"),j(a,"class","sm:hidden"),j(a,"colspan","2")},m(n,f){p(n,t,f),v(l,t,null),p(n,e,f),p(n,a,f),v(r,a,null),p(n,c,f),o=!0},p:T,i(n){o||(_(l.$$.fragment,n),_(r.$$.fragment,n),o=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),o=!1},d(n){n&&(m(t),m(e),m(a),m(c)),w(l),w(r)}}}function ve(s){let t=s[5]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&G(l,t)},d(e){e&&m(l)}}}function we(s){let t=s[6]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&G(l,t)},d(e){e&&m(l)}}}function ke(s){let t,l,e,a,r,c,o,n=U(s[7],s[2],{relative:s[3]})+"",f,$,d,F=U(s[8],s[2],{relative:s[3]})+"",k,q,I;return l=new ce({props:{type:s[4][s[5]],$$slots:{default:[ve]},$$scope:{ctx:s}}}),r=new me({props:{href:Z({namespace:s[0],jobId:s[6]}),$$slots:{default:[we]},$$scope:{ctx:s}}}),{c(){t=E("td"),g(l.$$.fragment),e=P(),a=E("td"),g(r.$$.fragment),c=P(),o=E("td"),f=N(n),$=P(),d=E("td"),k=N(F),q=P(),this.h()},l(i){t=B(i,"TD",{});var u=D(t);b(l.$$.fragment,u),u.forEach(m),e=H(i),a=B(i,"TD",{});var L=D(a);b(r.$$.fragment,L),L.forEach(m),c=H(i),o=B(i,"TD",{class:!0});var A=D(o);f=O(A,n),A.forEach(m),$=H(i),d=B(i,"TD",{class:!0});var R=D(d);k=O(R,F),R.forEach(m),q=H(i),this.h()},h(){j(o,"class","max-sm:hidden"),j(d,"class","max-sm:hidden")},m(i,u){p(i,t,u),v(l,t,null),p(i,e,u),p(i,a,u),v(r,a,null),p(i,c,u),p(i,o,u),S(o,f),p(i,$,u),p(i,d,u),S(d,k),p(i,q,u),I=!0},p(i,u){const L={};u&2&&(L.type=i[4][i[5]]),u&2050&&(L.$$scope={dirty:u,ctx:i}),l.$set(L);const A={};u&3&&(A.href=Z({namespace:i[0],jobId:i[6]})),u&2050&&(A.$$scope={dirty:u,ctx:i}),r.$set(A),(!I||u&14)&&n!==(n=U(i[7],i[2],{relative:i[3]})+"")&&G(f,n),(!I||u&14)&&F!==(F=U(i[8],i[2],{relative:i[3]})+"")&&G(k,F)},i(i){I||(_(l.$$.fragment,i),_(r.$$.fragment,i),I=!0)},o(i){h(l.$$.fragment,i),h(r.$$.fragment,i),I=!1},d(i){i&&(m(t),m(e),m(a),m(c),m(o),m($),m(d),m(q)),w(l),w(r)}}}function ae(s){let t,l;return t=new ne({props:{$$slots:{default:[ke]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Te(s){let t,l,e=X(s[1]),a=[];for(let o=0;oh(a[o],1,1,()=>{a[o]=null});let c=null;return e.length||(c=te(s)),{c(){for(let o=0;o{c=null}),K()):(c=te(o),c.c(),_(c,1),c.m(t.parentNode,t))}},i(o){if(!l){for(let n=0;nl(2,e=n)),y(s,_e,n=>l(3,a=n));let{namespace:r}=t,{operations:c}=t;const o={Completed:"success",Running:"primary",Failed:"danger",Unspecified:void 0};return s.$$set=n=>{"namespace"in n&&l(0,r=n.namespace),"operations"in n&&l(1,c=n.operations)},[r,c,e,a,o]}class He extends Q{constructor(t){super(),V(this,t,Pe,je,M,{namespace:0,operations:1})}}function le(s){s[2]=s[3].operations}function Ne(s){return{c:T,l:T,m:T,p:T,i:T,o:T,d:T}}function Oe(s){le(s);let t,l,e,a=s[1]&&re(s);return l=new He({props:{operations:s[2],namespace:s[0]}}),{c(){a&&a.c(),t=P(),g(l.$$.fragment)},l(r){a&&a.l(r),t=H(r),b(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),v(l,r,c),e=!0},p(r,c){le(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=re(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(J(),h(a,1,1,()=>{a=null}),K());const o={};c&1&&(o.operations=r[2]),c&1&&(o.namespace=r[0]),l.$set(o)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){r&&m(t),a&&a.d(r),w(l,r)}}}function re(s){let t,l;return t=new he({props:{icon:"info",intent:"info",title:C("batch.max-concurrent-alert-title"),$$slots:{default:[Ce]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Ce(s){let t=C("batch.max-concurrent-alert-description")+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p:T,d(e){e&&m(l)}}}function Fe(s){let t,l;return t=new de({}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p:T,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Ie(s){let t,l=C("batch.list-page-title")+"",e,a,r,c,o,n={ctx:s,current:null,token:null,hasCatch:!1,pending:Fe,then:Oe,catch:Ne,value:3,blocks:[,,,]};return W(c=x(s[0]),n),{c(){t=E("h1"),e=N(l),a=P(),r=z(),n.block.c()},l(f){t=B(f,"H1",{});var $=D(t);e=O($,l),$.forEach(m),a=H(f),r=z(),n.block.l(f)},m(f,$){p(f,t,$),S(t,e),p(f,a,$),p(f,r,$),n.block.m(f,n.anchor=$),n.mount=()=>r.parentNode,n.anchor=r,o=!0},p(f,[$]){s=f,n.ctx=s,$&1&&c!==(c=x(s[0]))&&W(c,n)||ie(n,s,$)},i(f){o||(_(n.block),o=!0)},o(f){for(let $=0;$<3;$+=1){const d=n.blocks[$];h(d)}o=!1},d(f){f&&(m(t),m(a),m(r)),n.block.d(f),n.token=null,n=null}}}function Le(s,t,l){let e;y(s,ge,r=>l(1,e=r));let{namespace:a}=t;return s.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ae extends Q{constructor(t){super(),V(this,t,Le,Ie,M,{namespace:0})}}function Se(s){let t,l,e,a;return t=new fe({props:{title:C("batch.list-page-title")}}),e=new Ae({props:{namespace:s[0]}}),{c(){g(t.$$.fragment),l=P(),g(e.$$.fragment)},l(r){b(t.$$.fragment,r),l=H(r),b(e.$$.fragment,r)},m(r,c){v(t,r,c),p(r,l,c),v(e,r,c),a=!0},p(r,[c]){const o={};c&1&&(o.namespace=r[0]),e.$set(o)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){r&&m(l),w(t,r),w(e,r)}}}function qe(s,t,l){let e,a;return y(s,oe,r=>l(1,a=r)),s.$$.update=()=>{s.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class tt extends Q{constructor(t){super(),V(this,t,qe,Se,M,{})}}export{tt as component}; +import{s as M,c as y,x as z,i as p,f as m,y as se,h as E,t as N,j as B,k as D,l as O,m as j,n as S,v as T,b as P,d as H,q as G}from"../chunks/scheduler.C46pS-76.js";import{S as Q,i as V,c as g,a as b,m as v,t as _,b as h,d as w,g as J,e as K}from"../chunks/index.dOVbn71B.js";import{p as oe}from"../chunks/stores.Ds4o9nwd.js";import{P as fe}from"../chunks/page-title.DNhqE1Lj.js";import{t as C}from"../chunks/translate.BBe5dcco.js";import{h as W,u as ie}from"../chunks/await_block.BfN27BCg.js";import{e as X}from"../chunks/each.C6O0oV7R.js";import{B as ce}from"../chunks/badge.jG5hkqHT.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as me}from"../chunks/link.C_v4aoat.js";import{T as ue,a as pe,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as $e,r as _e,f as U}from"../chunks/time-format.BLKgLEx9.js";import{k as Z}from"../chunks/route-for.B9fTWV7L.js";import{A as he}from"../chunks/alert.nnKn2vnv.js";import{L as de}from"../chunks/loading.BLsNkl8r.js";import{l as x,i as ge}from"../chunks/batch-operations.D8oOXKtp.js";function ee(s,t,l){const e=s.slice();return e[5]=t[l].state,e[6]=t[l].jobId,e[7]=t[l].startTime,e[8]=t[l].closeTime,e}function te(s){let t,l;return t=new ne({props:{$$slots:{default:[be]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2048&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function be(s){let t,l,e,a,r,c,o;return l=new Y({props:{title:C("batch.empty-state-title")}}),r=new Y({props:{title:C("batch.empty-state-title")}}),{c(){t=E("td"),g(l.$$.fragment),e=P(),a=E("td"),g(r.$$.fragment),c=P(),this.h()},l(n){t=B(n,"TD",{class:!0,colspan:!0});var f=D(t);b(l.$$.fragment,f),f.forEach(m),e=H(n),a=B(n,"TD",{class:!0,colspan:!0});var $=D(a);b(r.$$.fragment,$),$.forEach(m),c=H(n),this.h()},h(){j(t,"class","max-sm:hidden"),j(t,"colspan","4"),j(a,"class","sm:hidden"),j(a,"colspan","2")},m(n,f){p(n,t,f),v(l,t,null),p(n,e,f),p(n,a,f),v(r,a,null),p(n,c,f),o=!0},p:T,i(n){o||(_(l.$$.fragment,n),_(r.$$.fragment,n),o=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),o=!1},d(n){n&&(m(t),m(e),m(a),m(c)),w(l),w(r)}}}function ve(s){let t=s[5]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&G(l,t)},d(e){e&&m(l)}}}function we(s){let t=s[6]+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[6]+"")&&G(l,t)},d(e){e&&m(l)}}}function ke(s){let t,l,e,a,r,c,o,n=U(s[7],s[2],{relative:s[3]})+"",f,$,d,F=U(s[8],s[2],{relative:s[3]})+"",k,q,I;return l=new ce({props:{type:s[4][s[5]],$$slots:{default:[ve]},$$scope:{ctx:s}}}),r=new me({props:{href:Z({namespace:s[0],jobId:s[6]}),$$slots:{default:[we]},$$scope:{ctx:s}}}),{c(){t=E("td"),g(l.$$.fragment),e=P(),a=E("td"),g(r.$$.fragment),c=P(),o=E("td"),f=N(n),$=P(),d=E("td"),k=N(F),q=P(),this.h()},l(i){t=B(i,"TD",{});var u=D(t);b(l.$$.fragment,u),u.forEach(m),e=H(i),a=B(i,"TD",{});var L=D(a);b(r.$$.fragment,L),L.forEach(m),c=H(i),o=B(i,"TD",{class:!0});var A=D(o);f=O(A,n),A.forEach(m),$=H(i),d=B(i,"TD",{class:!0});var R=D(d);k=O(R,F),R.forEach(m),q=H(i),this.h()},h(){j(o,"class","max-sm:hidden"),j(d,"class","max-sm:hidden")},m(i,u){p(i,t,u),v(l,t,null),p(i,e,u),p(i,a,u),v(r,a,null),p(i,c,u),p(i,o,u),S(o,f),p(i,$,u),p(i,d,u),S(d,k),p(i,q,u),I=!0},p(i,u){const L={};u&2&&(L.type=i[4][i[5]]),u&2050&&(L.$$scope={dirty:u,ctx:i}),l.$set(L);const A={};u&3&&(A.href=Z({namespace:i[0],jobId:i[6]})),u&2050&&(A.$$scope={dirty:u,ctx:i}),r.$set(A),(!I||u&14)&&n!==(n=U(i[7],i[2],{relative:i[3]})+"")&&G(f,n),(!I||u&14)&&F!==(F=U(i[8],i[2],{relative:i[3]})+"")&&G(k,F)},i(i){I||(_(l.$$.fragment,i),_(r.$$.fragment,i),I=!0)},o(i){h(l.$$.fragment,i),h(r.$$.fragment,i),I=!1},d(i){i&&(m(t),m(e),m(a),m(c),m(o),m($),m(d),m(q)),w(l),w(r)}}}function ae(s){let t,l;return t=new ne({props:{$$slots:{default:[ke]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&2063&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Te(s){let t,l,e=X(s[1]),a=[];for(let o=0;oh(a[o],1,1,()=>{a[o]=null});let c=null;return e.length||(c=te(s)),{c(){for(let o=0;o{c=null}),K()):(c=te(o),c.c(),_(c,1),c.m(t.parentNode,t))}},i(o){if(!l){for(let n=0;nl(2,e=n)),y(s,_e,n=>l(3,a=n));let{namespace:r}=t,{operations:c}=t;const o={Completed:"success",Running:"primary",Failed:"danger",Unspecified:void 0};return s.$$set=n=>{"namespace"in n&&l(0,r=n.namespace),"operations"in n&&l(1,c=n.operations)},[r,c,e,a,o]}class He extends Q{constructor(t){super(),V(this,t,Pe,je,M,{namespace:0,operations:1})}}function le(s){s[2]=s[3].operations}function Ne(s){return{c:T,l:T,m:T,p:T,i:T,o:T,d:T}}function Oe(s){le(s);let t,l,e,a=s[1]&&re(s);return l=new He({props:{operations:s[2],namespace:s[0]}}),{c(){a&&a.c(),t=P(),g(l.$$.fragment)},l(r){a&&a.l(r),t=H(r),b(l.$$.fragment,r)},m(r,c){a&&a.m(r,c),p(r,t,c),v(l,r,c),e=!0},p(r,c){le(r),r[1]?a?(a.p(r,c),c&2&&_(a,1)):(a=re(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(J(),h(a,1,1,()=>{a=null}),K());const o={};c&1&&(o.operations=r[2]),c&1&&(o.namespace=r[0]),l.$set(o)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){r&&m(t),a&&a.d(r),w(l,r)}}}function re(s){let t,l;return t=new he({props:{icon:"info",intent:"info",title:C("batch.max-concurrent-alert-title"),$$slots:{default:[Ce]},$$scope:{ctx:s}}}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Ce(s){let t=C("batch.max-concurrent-alert-description")+"",l;return{c(){l=N(t)},l(e){l=O(e,t)},m(e,a){p(e,l,a)},p:T,d(e){e&&m(l)}}}function Fe(s){let t,l;return t=new de({}),{c(){g(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){v(t,e,a),l=!0},p:T,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Ie(s){let t,l=C("batch.list-page-title")+"",e,a,r,c,o,n={ctx:s,current:null,token:null,hasCatch:!1,pending:Fe,then:Oe,catch:Ne,value:3,blocks:[,,,]};return W(c=x(s[0]),n),{c(){t=E("h1"),e=N(l),a=P(),r=z(),n.block.c()},l(f){t=B(f,"H1",{});var $=D(t);e=O($,l),$.forEach(m),a=H(f),r=z(),n.block.l(f)},m(f,$){p(f,t,$),S(t,e),p(f,a,$),p(f,r,$),n.block.m(f,n.anchor=$),n.mount=()=>r.parentNode,n.anchor=r,o=!0},p(f,[$]){s=f,n.ctx=s,$&1&&c!==(c=x(s[0]))&&W(c,n)||ie(n,s,$)},i(f){o||(_(n.block),o=!0)},o(f){for(let $=0;$<3;$+=1){const d=n.blocks[$];h(d)}o=!1},d(f){f&&(m(t),m(a),m(r)),n.block.d(f),n.token=null,n=null}}}function Le(s,t,l){let e;y(s,ge,r=>l(1,e=r));let{namespace:a}=t;return s.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ae extends Q{constructor(t){super(),V(this,t,Le,Ie,M,{namespace:0})}}function Se(s){let t,l,e,a;return t=new fe({props:{title:C("batch.list-page-title")}}),e=new Ae({props:{namespace:s[0]}}),{c(){g(t.$$.fragment),l=P(),g(e.$$.fragment)},l(r){b(t.$$.fragment,r),l=H(r),b(e.$$.fragment,r)},m(r,c){v(t,r,c),p(r,l,c),v(e,r,c),a=!0},p(r,[c]){const o={};c&1&&(o.namespace=r[0]),e.$set(o)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){r&&m(l),w(t,r),w(e,r)}}}function qe(s,t,l){let e,a;return y(s,oe,r=>l(1,a=r)),s.$$.update=()=>{s.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class tt extends Q{constructor(t){super(),V(this,t,qe,Se,M,{})}}export{tt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/22.C9eoZ9Zn.js b/ui/assets/local/_app/immutable/nodes/22.B_C6GDmb.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/22.C9eoZ9Zn.js rename to ui/assets/local/_app/immutable/nodes/22.B_C6GDmb.js index 2d0705b81..7dfacc007 100644 --- a/ui/assets/local/_app/immutable/nodes/22.C9eoZ9Zn.js +++ b/ui/assets/local/_app/immutable/nodes/22.B_C6GDmb.js @@ -1 +1 @@ -import{s as Ee,h as p,t as E,b,j as u,k as m,l as k,f,d as g,m as v,i as re,n as s,q as M,v as P,c as Ie,r as nt,w as it,a2 as ge,H as xe,x as et}from"../chunks/scheduler.C46pS-76.js";import{S as we,i as Pe,c as X,a as Y,m as Z,t as j,g as rt,b as F,e as lt,d as x}from"../chunks/index.dOVbn71B.js";import{p as ct}from"../chunks/stores.Dz-RNcUk.js";import{P as ft}from"../chunks/page-title.DNhqE1Lj.js";import{t as V}from"../chunks/translate.BBe5dcco.js";import{h as pt,u as ut}from"../chunks/await_block.BfN27BCg.js";import{f as Re,t as mt,r as dt}from"../chunks/time-format.D2wF3ave.js";import{B as ht}from"../chunks/badge.jG5hkqHT.js";import{T as vt}from"../chunks/toggle-switch.C9lxIG0w.js";import{T as _t}from"../chunks/tooltip.D2lOlqUw.js";import{a as ye,d as $t}from"../chunks/batch-operations.BeHaOhdY.js";import{C as tt}from"../chunks/card.DbXyfCsc.js";import{L as bt}from"../chunks/link.BJceiGbc.js";import{n as at}from"../chunks/route-for.BjP6gGR7.js";function gt(o){let e,a,t=V("batch.details")+"",n,r,c,l,i=V("batch.operation-type")+"",d,h,O,z=o[0].operationType+"",B,U,_,$,D=V("batch.identity")+"",S,A,T,q=o[0].identity+"",L,K,y,G,me=V("common.reason")+"",de,J,Q,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,le,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ie,he=V("common.close-time")+"",pe,_e,ce,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",De,Ne,ue,$e,Be=V("batch.total-operations")+"",Fe,Ae,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),n=E(t),r=b(),c=p("div"),l=p("p"),d=E(i),h=b(),O=p("p"),B=E(z),U=b(),_=p("div"),$=p("p"),S=E(D),A=b(),T=p("p"),L=E(q),K=b(),y=p("div"),G=p("p"),de=E(me),J=b(),Q=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),le=p("p"),ne=E(oe),ve=b(),H=p("div"),ie=p("p"),pe=E(he),_e=b(),ce=p("p"),De=E(se),Ne=b(),ue=p("div"),$e=p("p"),Fe=E(Be),Ae=b(),be=p("p"),Ve=E(ke),this.h()},l(N){e=u(N,"DIV",{class:!0});var I=m(e);a=u(I,"P",{});var Ue=m(a);n=k(Ue,t),Ue.forEach(f),r=g(I),c=u(I,"DIV",{class:!0});var ze=m(c);l=u(ze,"P",{class:!0});var He=m(l);d=k(He,i),He.forEach(f),h=g(ze),O=u(ze,"P",{class:!0});var Me=m(O);B=k(Me,z),Me.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=m(_);$=u(Ce,"P",{class:!0});var qe=m($);S=k(qe,D),qe.forEach(f),A=g(Ce),T=u(Ce,"P",{class:!0});var Le=m(T);L=k(Le,q),Le.forEach(f),Ce.forEach(f),K=g(I),y=u(I,"DIV",{class:!0});var Te=m(y);G=u(Te,"P",{class:!0});var Ke=m(G);de=k(Ke,me),Ke.forEach(f),J=g(Te),Q=u(Te,"P",{class:!0});var Ge=m(Q);fe=k(Ge,ee),Ge.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=m(R);te=u(je,"P",{class:!0});var Je=m(te);C=k(Je,ae),Je.forEach(f),w=g(je),le=u(je,"P",{class:!0});var Qe=m(le);ne=k(Qe,oe),Qe.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=m(H);ie=u(Oe,"P",{class:!0});var We=m(ie);pe=k(We,he),We.forEach(f),_e=g(Oe),ce=u(Oe,"P",{class:!0});var Xe=m(ce);De=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Ne=g(I),ue=u(I,"DIV",{class:!0});var Se=m(ue);$e=u(Se,"P",{class:!0});var Ye=m($e);Fe=k(Ye,Be),Ye.forEach(f),Ae=g(Se),be=u(Se,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){v(l,"class","batch-operation-key svelte-z5po3c"),v(O,"class","batch-operation-value svelte-z5po3c"),v(c,"class","batch-operation-detail svelte-z5po3c"),v($,"class","batch-operation-key svelte-z5po3c"),v(T,"class","batch-operation-value svelte-z5po3c"),v(_,"class","batch-operation-detail svelte-z5po3c"),v(G,"class","batch-operation-key svelte-z5po3c"),v(Q,"class","batch-operation-value svelte-z5po3c"),v(y,"class","batch-operation-detail svelte-z5po3c"),v(te,"class","batch-operation-key svelte-z5po3c"),v(le,"class","batch-operation-value svelte-z5po3c"),v(R,"class","batch-operation-detail svelte-z5po3c"),v(ie,"class","batch-operation-key svelte-z5po3c"),v(ce,"class","batch-operation-value svelte-z5po3c"),v(H,"class","batch-operation-detail svelte-z5po3c"),v($e,"class","batch-operation-key svelte-z5po3c"),v(be,"class","batch-operation-value svelte-z5po3c"),v(ue,"class","batch-operation-detail svelte-z5po3c"),v(e,"class","flex flex-col gap-2")},m(N,I){re(N,e,I),s(e,a),s(a,n),s(e,r),s(e,c),s(c,l),s(l,d),s(c,h),s(c,O),s(O,B),s(e,U),s(e,_),s(_,$),s($,S),s(_,A),s(_,T),s(T,L),s(e,K),s(e,y),s(y,G),s(G,de),s(y,J),s(y,Q),s(Q,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,le),s(le,ne),s(e,ve),s(e,H),s(H,ie),s(ie,pe),s(H,_e),s(H,ce),s(ce,De),s(e,Ne),s(e,ue),s(ue,$e),s($e,Fe),s(ue,Ae),s(ue,be),s(be,Ve)},p(N,[I]){I&1&&z!==(z=N[0].operationType+"")&&M(B,z),I&1&&q!==(q=N[0].identity+"")&&M(L,q),I&1&&ee!==(ee=N[0].reason+"")&&M(fe,ee),I&7&&oe!==(oe=Re(N[0].startTime,N[1],{relative:N[2]})+"")&&M(ne,oe),I&7&&se!==(se=Re(N[0].closeTime,N[1],{relative:N[2]})+"")&&M(De,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&M(Ve,ke)},i:P,o:P,d(N){N&&f(e)}}}function Et(o,e,a){let t,n;Ie(o,mt,c=>a(1,t=c)),Ie(o,dt,c=>a(2,n=c));let{operation:r}=e;return o.$$set=c=>{"operation"in c&&a(0,r=c.operation)},[r,t,n]}class kt extends we{constructor(e){super(),Pe(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){re(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&M(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const r={};n&34&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const r={};n&2&&(r.checked=t[1]),e.$set(r)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Pt(o){let e,a,t,n,r=V("batch.describe-page-title")+"",c,l,i,d,h,O=o[0].jobId+"",z,B,U;i=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),n=p("h1"),c=E(r),l=b(),X(i.$$.fragment),d=b(),h=p("p"),z=E(O),B=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var D=m(e);a=u(D,"DIV",{class:!0});var S=m(a);t=u(S,"DIV",{class:!0});var A=m(t);n=u(A,"H1",{});var T=m(n);c=k(T,r),T.forEach(f),l=g(A),Y(i.$$.fragment,A),A.forEach(f),d=g(S),h=u(S,"P",{});var q=m(h);z=k(q,O),q.forEach(f),S.forEach(f),B=g(D),_&&_.l(D),D.forEach(f),this.h()},h(){v(t,"class","flex flex-row items-center gap-2 max-sm:flex-col"),v(a,"class","flex flex-col gap-2"),v(e,"class","flex items-center justify-between")},m($,D){re($,e,D),s(e,a),s(a,t),s(t,n),s(n,c),s(t,l),Z(i,t,null),s(a,d),s(a,h),s(h,z),s(e,B),_&&_.m(e,null),U=!0},p($,[D]){const S={};D&1&&(S.type=$[3][$[0].state]),D&33&&(S.$$scope={dirty:D,ctx:$}),i.$set(S),(!U||D&1)&&O!==(O=$[0].jobId+"")&&M(z,O),$[0].state==="Running"?_?(_.p($,D),D&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(rt(),F(_,1,1,()=>{_=null}),lt())},i($){U||(j(i.$$.fragment,$),j(_),U=!0)},o($){F(i.$$.fragment,$),F(_),U=!1},d($){$&&f(e),x(i),_&&_.d()}}}function Dt(o,e,a){let t;Ie(o,ye,i=>a(1,t=i));let{operation:n}=e;const r=nt(),c=i=>{const{checked:d}=i.target;r("toggleAutoRefresh",{checked:d}),it(ye,t=d,t)},l={Completed:"success",Running:"primary",Failed:"danger",Unspecified:void 0};return o.$$set=i=>{"operation"in i&&a(0,n=i.operation)},[n,t,c,l]}class Vt extends we{constructor(e){super(),Pe(this,e,Dt,Pt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",n,r,c,l,i,d=V("batch.operations-progress",{percent:o[3]})+"",h,O,z,B=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",U,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",D,S,A,T,q,L,K,y,G=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",me,de,J,Q=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),n=E(t),r=b(),c=p("div"),l=p("div"),i=p("span"),h=E(d),O=b(),z=p("span"),U=E(B),_=E(" / "),D=E($),S=b(),A=p("div"),T=p("div"),q=b(),L=p("div"),K=p("div"),y=p("span"),me=E(G),de=b(),J=p("span"),ee=E(Q),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=m(e);a=u(w,"P",{});var le=m(a);n=k(le,t),le.forEach(f),r=g(w),c=u(w,"DIV",{});var oe=m(c);l=u(oe,"DIV",{class:!0});var ne=m(l);i=u(ne,"SPAN",{class:!0});var ve=m(i);h=k(ve,d),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var H=m(z);U=k(H,B),_=k(H," / "),D=k(H,$),H.forEach(f),ne.forEach(f),S=g(oe),A=u(oe,"DIV",{class:!0});var ie=m(A);T=u(ie,"DIV",{class:!0,style:!0}),m(T).forEach(f),ie.forEach(f),oe.forEach(f),q=g(w),L=u(w,"DIV",{});var he=m(L);K=u(he,"DIV",{class:!0});var pe=m(K);y=u(pe,"SPAN",{class:!0});var _e=m(y);me=k(_e,G),_e.forEach(f),de=g(pe),J=u(pe,"SPAN",{class:!0});var ce=m(J);ee=k(ce,Q),ce.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=m(W);R=u(se,"DIV",{style:!0,class:!0}),m(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),m(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){v(i,"class","text-xs font-semibold"),v(z,"class","text-xs font-semibold"),v(l,"class","flex justify-between"),v(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),v(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),v(y,"class","text-xs font-semibold text-green-700"),v(J,"class","text-xs font-semibold"),xe(J,"text-red-700",o[2]>0),v(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),v(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),v(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),v(W,"class","relative h-2 w-full overflow-hidden rounded"),v(e,"class","flex flex-col gap-4")},m(C,w){re(C,e,w),s(e,a),s(a,n),s(e,r),s(e,c),s(c,l),s(l,i),s(i,h),s(l,O),s(l,z),s(z,U),s(z,_),s(z,D),s(c,S),s(c,A),s(A,T),s(e,q),s(e,L),s(L,K),s(K,y),s(y,me),s(K,de),s(K,J),s(J,ee),s(L,fe),s(L,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&d!==(d=V("batch.operations-progress",{percent:C[3]})+"")&&M(h,d),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&M(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&M(D,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&G!==(G=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&M(me,G),w&1&&Q!==(Q=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&M(ee,Q),w&4&&xe(J,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:P,o:P,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,n,r,c;return o.$$set=l=>{"operation"in l&&a(0,t=l.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:l,failureOperationCount:i,totalOperationCount:d}=t;a(1,n=Math.round(l/d*100)),a(2,r=Math.round(i/d*100)),a(3,c=Math.round((l+i)/d*100))}},[t,n,r,c]}class Tt extends we{constructor(e){super(),Pe(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){re(t,a,n)},p:P,d(t){t&&f(a)}}}function Ot(o){return{c:P,l:P,m:P,p:P,i:P,o:P,d:P}}function St(o){let e,a,t,n,r,c;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),r=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(r.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l),n=g(l),Y(r.$$.fragment,l)},m(l,i){Z(e,l,i),re(l,a,i),Z(t,l,i),re(l,n,i),Z(r,l,i),c=!0},p(l,i){const d={};i&256&&(d.$$scope={dirty:i,ctx:l}),t.$set(d);const h={};i&256&&(h.$$scope={dirty:i,ctx:l}),r.$set(h)},i(l){c||(j(e.$$.fragment,l),j(t.$$.fragment,l),j(r.$$.fragment,l),c=!0)},o(l){F(e.$$.fragment,l),F(t.$$.fragment,l),F(r.$$.fragment,l),c=!1},d(l){l&&(f(a),f(n)),x(e,l),x(t,l),x(r,l)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:P,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:P,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){return{c:P,l:P,m:P,p:P,i:P,o:P,d:P}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Ft,then:St,catch:Ot,value:7,blocks:[,,,]};return pt(o[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,r){re(n,e,r),t.block.m(n,t.anchor=r),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,r){o=n,ut(t,o,r)},i(n){a||(j(t.block),a=!0)},o(n){for(let r=0;r<3;r+=1){const c=t.blocks[r];F(c)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function At(o){let e,a,t,n,r=o[1],c;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let l=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),n=b(),l.c(),this.h()},l(i){e=u(i,"DIV",{class:!0});var d=m(e);a=u(d,"DIV",{class:!0});var h=m(a);Y(t.$$.fragment,h),h.forEach(f),n=g(d),l.l(d),d.forEach(f),this.h()},h(){v(a,"class","flex flex-row"),v(e,"class","flex flex-col gap-4")},m(i,d){re(i,e,d),s(e,a),Z(t,a,null),s(e,n),l.m(e,null),c=!0},p(i,[d]){const h={};d&1&&(h.href=at({namespace:i[0]})),d&256&&(h.$$scope={dirty:d,ctx:i}),t.$set(h),d&2&&Ee(r,r=i[1])?(rt(),F(l,1,1,P),lt(),l=st(i),l.c(),j(l,1),l.m(e,null)):l.p(i,d)},i(i){c||(j(t.$$.fragment,i),j(l),c=!0)},o(i){F(t.$$.fragment,i),F(l),c=!1},d(i){i&&f(e),x(t),l.d(i)}}}function yt(o,e,a){let t;Ie(o,ye,h=>a(6,t=h));let{namespace:n}=e,{jobId:r}=e,c=0,l;const i=h=>{h.detail.checked?a(1,c+=1):l&&window.clearTimeout(l)},d=()=>$t({jobId:r,namespace:n}).then(h=>(t&&h.state==="Running"&&(l=window.setTimeout(()=>{a(1,c+=1)},5e3)),h));return o.$$set=h=>{"namespace"in h&&a(0,n=h.namespace),"jobId"in h&&a(4,r=h.jobId)},[n,c,i,d,r]}class Bt extends we{constructor(e){super(),Pe(this,e,yt,At,Ee,{namespace:0,jobId:4})}}function Ut(o){let e,a,t,n;return e=new ft({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Bt({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(r){Y(e.$$.fragment,r),a=g(r),Y(t.$$.fragment,r)},m(r,c){Z(e,r,c),re(r,a,c),Z(t,r,c),n=!0},p(r,[c]){const l={};c&1&&(l.title=V("batch.describe-page-title")+" | "+r[0]),e.$set(l);const i={};c&1&&(i.jobId=r[0]),c&2&&(i.namespace=r[1]),t.$set(i)},i(r){n||(j(e.$$.fragment,r),j(t.$$.fragment,r),n=!0)},o(r){F(e.$$.fragment,r),F(t.$$.fragment,r),n=!1},d(r){r&&f(a),x(e,r),x(t,r)}}}function Ht(o,e,a){let t,n,r;return Ie(o,ct,c=>a(2,r=c)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=r.params.namespace),o.$$.dirty&4&&a(0,n=r.params.jobId)},[n,t,r]}class aa extends we{constructor(e){super(),Pe(this,e,Ht,Ut,Ee,{})}}export{aa as component}; +import{s as Ee,h as p,t as E,b,j as u,k as m,l as k,f,d as g,m as v,i as re,n as s,q as M,v as P,c as Ie,r as nt,w as it,a2 as ge,H as xe,x as et}from"../chunks/scheduler.C46pS-76.js";import{S as we,i as Pe,c as X,a as Y,m as Z,t as j,g as rt,b as F,e as lt,d as x}from"../chunks/index.dOVbn71B.js";import{p as ct}from"../chunks/stores.Ds4o9nwd.js";import{P as ft}from"../chunks/page-title.DNhqE1Lj.js";import{t as V}from"../chunks/translate.BBe5dcco.js";import{h as pt,u as ut}from"../chunks/await_block.BfN27BCg.js";import{f as Re,t as mt,r as dt}from"../chunks/time-format.BLKgLEx9.js";import{B as ht}from"../chunks/badge.jG5hkqHT.js";import{T as vt}from"../chunks/toggle-switch.C9lxIG0w.js";import{T as _t}from"../chunks/tooltip.D2lOlqUw.js";import{a as ye,d as $t}from"../chunks/batch-operations.D8oOXKtp.js";import{C as tt}from"../chunks/card.DbXyfCsc.js";import{L as bt}from"../chunks/link.C_v4aoat.js";import{n as at}from"../chunks/route-for.B9fTWV7L.js";function gt(o){let e,a,t=V("batch.details")+"",n,r,c,l,i=V("batch.operation-type")+"",d,h,O,z=o[0].operationType+"",B,U,_,$,D=V("batch.identity")+"",S,A,T,q=o[0].identity+"",L,K,y,G,me=V("common.reason")+"",de,J,Q,ee=o[0].reason+"",fe,W,R,te,ae=V("common.start-time")+"",C,w,le,oe=Re(o[0].startTime,o[1],{relative:o[2]})+"",ne,ve,H,ie,he=V("common.close-time")+"",pe,_e,ce,se=Re(o[0].closeTime,o[1],{relative:o[2]})+"",De,Ne,ue,$e,Be=V("batch.total-operations")+"",Fe,Ae,be,ke=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",Ve;return{c(){e=p("div"),a=p("p"),n=E(t),r=b(),c=p("div"),l=p("p"),d=E(i),h=b(),O=p("p"),B=E(z),U=b(),_=p("div"),$=p("p"),S=E(D),A=b(),T=p("p"),L=E(q),K=b(),y=p("div"),G=p("p"),de=E(me),J=b(),Q=p("p"),fe=E(ee),W=b(),R=p("div"),te=p("p"),C=E(ae),w=b(),le=p("p"),ne=E(oe),ve=b(),H=p("div"),ie=p("p"),pe=E(he),_e=b(),ce=p("p"),De=E(se),Ne=b(),ue=p("div"),$e=p("p"),Fe=E(Be),Ae=b(),be=p("p"),Ve=E(ke),this.h()},l(N){e=u(N,"DIV",{class:!0});var I=m(e);a=u(I,"P",{});var Ue=m(a);n=k(Ue,t),Ue.forEach(f),r=g(I),c=u(I,"DIV",{class:!0});var ze=m(c);l=u(ze,"P",{class:!0});var He=m(l);d=k(He,i),He.forEach(f),h=g(ze),O=u(ze,"P",{class:!0});var Me=m(O);B=k(Me,z),Me.forEach(f),ze.forEach(f),U=g(I),_=u(I,"DIV",{class:!0});var Ce=m(_);$=u(Ce,"P",{class:!0});var qe=m($);S=k(qe,D),qe.forEach(f),A=g(Ce),T=u(Ce,"P",{class:!0});var Le=m(T);L=k(Le,q),Le.forEach(f),Ce.forEach(f),K=g(I),y=u(I,"DIV",{class:!0});var Te=m(y);G=u(Te,"P",{class:!0});var Ke=m(G);de=k(Ke,me),Ke.forEach(f),J=g(Te),Q=u(Te,"P",{class:!0});var Ge=m(Q);fe=k(Ge,ee),Ge.forEach(f),Te.forEach(f),W=g(I),R=u(I,"DIV",{class:!0});var je=m(R);te=u(je,"P",{class:!0});var Je=m(te);C=k(Je,ae),Je.forEach(f),w=g(je),le=u(je,"P",{class:!0});var Qe=m(le);ne=k(Qe,oe),Qe.forEach(f),je.forEach(f),ve=g(I),H=u(I,"DIV",{class:!0});var Oe=m(H);ie=u(Oe,"P",{class:!0});var We=m(ie);pe=k(We,he),We.forEach(f),_e=g(Oe),ce=u(Oe,"P",{class:!0});var Xe=m(ce);De=k(Xe,se),Xe.forEach(f),Oe.forEach(f),Ne=g(I),ue=u(I,"DIV",{class:!0});var Se=m(ue);$e=u(Se,"P",{class:!0});var Ye=m($e);Fe=k(Ye,Be),Ye.forEach(f),Ae=g(Se),be=u(Se,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Se.forEach(f),I.forEach(f),this.h()},h(){v(l,"class","batch-operation-key svelte-z5po3c"),v(O,"class","batch-operation-value svelte-z5po3c"),v(c,"class","batch-operation-detail svelte-z5po3c"),v($,"class","batch-operation-key svelte-z5po3c"),v(T,"class","batch-operation-value svelte-z5po3c"),v(_,"class","batch-operation-detail svelte-z5po3c"),v(G,"class","batch-operation-key svelte-z5po3c"),v(Q,"class","batch-operation-value svelte-z5po3c"),v(y,"class","batch-operation-detail svelte-z5po3c"),v(te,"class","batch-operation-key svelte-z5po3c"),v(le,"class","batch-operation-value svelte-z5po3c"),v(R,"class","batch-operation-detail svelte-z5po3c"),v(ie,"class","batch-operation-key svelte-z5po3c"),v(ce,"class","batch-operation-value svelte-z5po3c"),v(H,"class","batch-operation-detail svelte-z5po3c"),v($e,"class","batch-operation-key svelte-z5po3c"),v(be,"class","batch-operation-value svelte-z5po3c"),v(ue,"class","batch-operation-detail svelte-z5po3c"),v(e,"class","flex flex-col gap-2")},m(N,I){re(N,e,I),s(e,a),s(a,n),s(e,r),s(e,c),s(c,l),s(l,d),s(c,h),s(c,O),s(O,B),s(e,U),s(e,_),s(_,$),s($,S),s(_,A),s(_,T),s(T,L),s(e,K),s(e,y),s(y,G),s(G,de),s(y,J),s(y,Q),s(Q,fe),s(e,W),s(e,R),s(R,te),s(te,C),s(R,w),s(R,le),s(le,ne),s(e,ve),s(e,H),s(H,ie),s(ie,pe),s(H,_e),s(H,ce),s(ce,De),s(e,Ne),s(e,ue),s(ue,$e),s($e,Fe),s(ue,Ae),s(ue,be),s(be,Ve)},p(N,[I]){I&1&&z!==(z=N[0].operationType+"")&&M(B,z),I&1&&q!==(q=N[0].identity+"")&&M(L,q),I&1&&ee!==(ee=N[0].reason+"")&&M(fe,ee),I&7&&oe!==(oe=Re(N[0].startTime,N[1],{relative:N[2]})+"")&&M(ne,oe),I&7&&se!==(se=Re(N[0].closeTime,N[1],{relative:N[2]})+"")&&M(De,se),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&M(Ve,ke)},i:P,o:P,d(N){N&&f(e)}}}function Et(o,e,a){let t,n;Ie(o,mt,c=>a(1,t=c)),Ie(o,dt,c=>a(2,n=c));let{operation:r}=e;return o.$$set=c=>{"operation"in c&&a(0,r=c.operation)},[r,t,n]}class kt extends we{constructor(e){super(),Pe(this,e,Et,gt,Ee,{operation:0})}}function It(o){let e=o[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){re(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&M(a,e)},d(t){t&&f(a)}}}function ot(o){let e,a;return e=new _t({props:{top:!0,text:V("common.auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const r={};n&34&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(o){let e,a;return e=new vt({props:{id:"batch-operation-auto-refresh",label:V("common.auto-refresh"),labelPosition:"left",checked:o[1]}}),e.$on("change",o[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const r={};n&2&&(r.checked=t[1]),e.$set(r)},i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Pt(o){let e,a,t,n,r=V("batch.describe-page-title")+"",c,l,i,d,h,O=o[0].jobId+"",z,B,U;i=new ht({props:{type:o[3][o[0].state],$$slots:{default:[It]},$$scope:{ctx:o}}});let _=o[0].state==="Running"&&ot(o);return{c(){e=p("div"),a=p("div"),t=p("div"),n=p("h1"),c=E(r),l=b(),X(i.$$.fragment),d=b(),h=p("p"),z=E(O),B=b(),_&&_.c(),this.h()},l($){e=u($,"DIV",{class:!0});var D=m(e);a=u(D,"DIV",{class:!0});var S=m(a);t=u(S,"DIV",{class:!0});var A=m(t);n=u(A,"H1",{});var T=m(n);c=k(T,r),T.forEach(f),l=g(A),Y(i.$$.fragment,A),A.forEach(f),d=g(S),h=u(S,"P",{});var q=m(h);z=k(q,O),q.forEach(f),S.forEach(f),B=g(D),_&&_.l(D),D.forEach(f),this.h()},h(){v(t,"class","flex flex-row items-center gap-2 max-sm:flex-col"),v(a,"class","flex flex-col gap-2"),v(e,"class","flex items-center justify-between")},m($,D){re($,e,D),s(e,a),s(a,t),s(t,n),s(n,c),s(t,l),Z(i,t,null),s(a,d),s(a,h),s(h,z),s(e,B),_&&_.m(e,null),U=!0},p($,[D]){const S={};D&1&&(S.type=$[3][$[0].state]),D&33&&(S.$$scope={dirty:D,ctx:$}),i.$set(S),(!U||D&1)&&O!==(O=$[0].jobId+"")&&M(z,O),$[0].state==="Running"?_?(_.p($,D),D&1&&j(_,1)):(_=ot($),_.c(),j(_,1),_.m(e,null)):_&&(rt(),F(_,1,1,()=>{_=null}),lt())},i($){U||(j(i.$$.fragment,$),j(_),U=!0)},o($){F(i.$$.fragment,$),F(_),U=!1},d($){$&&f(e),x(i),_&&_.d()}}}function Dt(o,e,a){let t;Ie(o,ye,i=>a(1,t=i));let{operation:n}=e;const r=nt(),c=i=>{const{checked:d}=i.target;r("toggleAutoRefresh",{checked:d}),it(ye,t=d,t)},l={Completed:"success",Running:"primary",Failed:"danger",Unspecified:void 0};return o.$$set=i=>{"operation"in i&&a(0,n=i.operation)},[n,t,c,l]}class Vt extends we{constructor(e){super(),Pe(this,e,Dt,Pt,Ee,{operation:0})}}function zt(o){let e,a,t=V("batch.results")+"",n,r,c,l,i,d=V("batch.operations-progress",{percent:o[3]})+"",h,O,z,B=Intl.NumberFormat("en-US").format(o[0].completeOperationCount)+"",U,_,$=Intl.NumberFormat("en-US").format(o[0].totalOperationCount)+"",D,S,A,T,q,L,K,y,G=V("batch.operations-succeeded",{count:o[0].completeOperationCount})+"",me,de,J,Q=V("batch.operations-failed",{count:o[0].failureOperationCount})+"",ee,fe,W,R,te,ae;return{c(){e=p("div"),a=p("p"),n=E(t),r=b(),c=p("div"),l=p("div"),i=p("span"),h=E(d),O=b(),z=p("span"),U=E(B),_=E(" / "),D=E($),S=b(),A=p("div"),T=p("div"),q=b(),L=p("div"),K=p("div"),y=p("span"),me=E(G),de=b(),J=p("span"),ee=E(Q),fe=b(),W=p("div"),R=p("div"),te=b(),ae=p("div"),this.h()},l(C){e=u(C,"DIV",{class:!0});var w=m(e);a=u(w,"P",{});var le=m(a);n=k(le,t),le.forEach(f),r=g(w),c=u(w,"DIV",{});var oe=m(c);l=u(oe,"DIV",{class:!0});var ne=m(l);i=u(ne,"SPAN",{class:!0});var ve=m(i);h=k(ve,d),ve.forEach(f),O=g(ne),z=u(ne,"SPAN",{class:!0});var H=m(z);U=k(H,B),_=k(H," / "),D=k(H,$),H.forEach(f),ne.forEach(f),S=g(oe),A=u(oe,"DIV",{class:!0});var ie=m(A);T=u(ie,"DIV",{class:!0,style:!0}),m(T).forEach(f),ie.forEach(f),oe.forEach(f),q=g(w),L=u(w,"DIV",{});var he=m(L);K=u(he,"DIV",{class:!0});var pe=m(K);y=u(pe,"SPAN",{class:!0});var _e=m(y);me=k(_e,G),_e.forEach(f),de=g(pe),J=u(pe,"SPAN",{class:!0});var ce=m(J);ee=k(ce,Q),ce.forEach(f),pe.forEach(f),fe=g(he),W=u(he,"DIV",{class:!0});var se=m(W);R=u(se,"DIV",{style:!0,class:!0}),m(R).forEach(f),te=g(se),ae=u(se,"DIV",{style:!0,class:!0}),m(ae).forEach(f),se.forEach(f),he.forEach(f),w.forEach(f),this.h()},h(){v(i,"class","text-xs font-semibold"),v(z,"class","text-xs font-semibold"),v(l,"class","flex justify-between"),v(T,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(T,"width",o[3]+"%"),v(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),v(y,"class","text-xs font-semibold text-green-700"),v(J,"class","text-xs font-semibold"),xe(J,"text-red-700",o[2]>0),v(K,"class","flex justify-between"),ge(R,"width",o[1]+"%"),v(R,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",o[2]+"%"),v(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),v(W,"class","relative h-2 w-full overflow-hidden rounded"),v(e,"class","flex flex-col gap-4")},m(C,w){re(C,e,w),s(e,a),s(a,n),s(e,r),s(e,c),s(c,l),s(l,i),s(i,h),s(l,O),s(l,z),s(z,U),s(z,_),s(z,D),s(c,S),s(c,A),s(A,T),s(e,q),s(e,L),s(L,K),s(K,y),s(y,me),s(K,de),s(K,J),s(J,ee),s(L,fe),s(L,W),s(W,R),s(W,te),s(W,ae)},p(C,[w]){w&8&&d!==(d=V("batch.operations-progress",{percent:C[3]})+"")&&M(h,d),w&1&&B!==(B=Intl.NumberFormat("en-US").format(C[0].completeOperationCount)+"")&&M(U,B),w&1&&$!==($=Intl.NumberFormat("en-US").format(C[0].totalOperationCount)+"")&&M(D,$),w&8&&ge(T,"width",C[3]+"%"),w&1&&G!==(G=V("batch.operations-succeeded",{count:C[0].completeOperationCount})+"")&&M(me,G),w&1&&Q!==(Q=V("batch.operations-failed",{count:C[0].failureOperationCount})+"")&&M(ee,Q),w&4&&xe(J,"text-red-700",C[2]>0),w&2&&ge(R,"width",C[1]+"%"),w&4&&ge(ae,"width",C[2]+"%")},i:P,o:P,d(C){C&&f(e)}}}function Ct(o,e,a){let{operation:t}=e,n,r,c;return o.$$set=l=>{"operation"in l&&a(0,t=l.operation)},o.$$.update=()=>{if(o.$$.dirty&1){const{completeOperationCount:l,failureOperationCount:i,totalOperationCount:d}=t;a(1,n=Math.round(l/d*100)),a(2,r=Math.round(i/d*100)),a(3,c=Math.round((l+i)/d*100))}},[t,n,r,c]}class Tt extends we{constructor(e){super(),Pe(this,e,Ct,zt,Ee,{operation:0})}}function jt(o){let e=V("batch.back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){re(t,a,n)},p:P,d(t){t&&f(a)}}}function Ot(o){return{c:P,l:P,m:P,p:P,i:P,o:P,d:P}}function St(o){let e,a,t,n,r,c;return e=new Vt({props:{operation:o[7]}}),e.$on("toggleAutoRefresh",o[2]),t=new tt({props:{$$slots:{default:[Rt]},$$scope:{ctx:o}}}),r=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(r.$$.fragment)},l(l){Y(e.$$.fragment,l),a=g(l),Y(t.$$.fragment,l),n=g(l),Y(r.$$.fragment,l)},m(l,i){Z(e,l,i),re(l,a,i),Z(t,l,i),re(l,n,i),Z(r,l,i),c=!0},p(l,i){const d={};i&256&&(d.$$scope={dirty:i,ctx:l}),t.$set(d);const h={};i&256&&(h.$$scope={dirty:i,ctx:l}),r.$set(h)},i(l){c||(j(e.$$.fragment,l),j(t.$$.fragment,l),j(r.$$.fragment,l),c=!0)},o(l){F(e.$$.fragment,l),F(t.$$.fragment,l),F(r.$$.fragment,l),c=!1},d(l){l&&(f(a),f(n)),x(e,l),x(t,l),x(r,l)}}}function Rt(o){let e,a;return e=new kt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:P,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(o){let e,a;return e=new Tt({props:{operation:o[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:P,i(t){a||(j(e.$$.fragment,t),a=!0)},o(t){F(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Ft(o){return{c:P,l:P,m:P,p:P,i:P,o:P,d:P}}function st(o){let e,a,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Ft,then:St,catch:Ot,value:7,blocks:[,,,]};return pt(o[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,r){re(n,e,r),t.block.m(n,t.anchor=r),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,r){o=n,ut(t,o,r)},i(n){a||(j(t.block),a=!0)},o(n){for(let r=0;r<3;r+=1){const c=t.blocks[r];F(c)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function At(o){let e,a,t,n,r=o[1],c;t=new bt({props:{href:at({namespace:o[0]}),icon:"chevron-left",$$slots:{default:[jt]},$$scope:{ctx:o}}});let l=st(o);return{c(){e=p("div"),a=p("div"),X(t.$$.fragment),n=b(),l.c(),this.h()},l(i){e=u(i,"DIV",{class:!0});var d=m(e);a=u(d,"DIV",{class:!0});var h=m(a);Y(t.$$.fragment,h),h.forEach(f),n=g(d),l.l(d),d.forEach(f),this.h()},h(){v(a,"class","flex flex-row"),v(e,"class","flex flex-col gap-4")},m(i,d){re(i,e,d),s(e,a),Z(t,a,null),s(e,n),l.m(e,null),c=!0},p(i,[d]){const h={};d&1&&(h.href=at({namespace:i[0]})),d&256&&(h.$$scope={dirty:d,ctx:i}),t.$set(h),d&2&&Ee(r,r=i[1])?(rt(),F(l,1,1,P),lt(),l=st(i),l.c(),j(l,1),l.m(e,null)):l.p(i,d)},i(i){c||(j(t.$$.fragment,i),j(l),c=!0)},o(i){F(t.$$.fragment,i),F(l),c=!1},d(i){i&&f(e),x(t),l.d(i)}}}function yt(o,e,a){let t;Ie(o,ye,h=>a(6,t=h));let{namespace:n}=e,{jobId:r}=e,c=0,l;const i=h=>{h.detail.checked?a(1,c+=1):l&&window.clearTimeout(l)},d=()=>$t({jobId:r,namespace:n}).then(h=>(t&&h.state==="Running"&&(l=window.setTimeout(()=>{a(1,c+=1)},5e3)),h));return o.$$set=h=>{"namespace"in h&&a(0,n=h.namespace),"jobId"in h&&a(4,r=h.jobId)},[n,c,i,d,r]}class Bt extends we{constructor(e){super(),Pe(this,e,yt,At,Ee,{namespace:0,jobId:4})}}function Ut(o){let e,a,t,n;return e=new ft({props:{title:V("batch.describe-page-title")+" | "+o[0]}}),t=new Bt({props:{jobId:o[0],namespace:o[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(r){Y(e.$$.fragment,r),a=g(r),Y(t.$$.fragment,r)},m(r,c){Z(e,r,c),re(r,a,c),Z(t,r,c),n=!0},p(r,[c]){const l={};c&1&&(l.title=V("batch.describe-page-title")+" | "+r[0]),e.$set(l);const i={};c&1&&(i.jobId=r[0]),c&2&&(i.namespace=r[1]),t.$set(i)},i(r){n||(j(e.$$.fragment,r),j(t.$$.fragment,r),n=!0)},o(r){F(e.$$.fragment,r),F(t.$$.fragment,r),n=!1},d(r){r&&f(a),x(e,r),x(t,r)}}}function Ht(o,e,a){let t,n,r;return Ie(o,ct,c=>a(2,r=c)),o.$$.update=()=>{o.$$.dirty&4&&a(1,t=r.params.namespace),o.$$.dirty&4&&a(0,n=r.params.jobId)},[n,t,r]}class aa extends we{constructor(e){super(),Pe(this,e,Ht,Ut,Ee,{})}}export{aa as component}; diff --git a/ui/assets/local/_app/immutable/nodes/23.BP9LTO0G.js b/ui/assets/local/_app/immutable/nodes/23.BP9LTO0G.js new file mode 100644 index 000000000..bcac52e09 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/23.BP9LTO0G.js @@ -0,0 +1 @@ +import{s as x,h as L,t as q,j as N,k as C,l as M,f as p,m as B,i as w,n as D,q as J,v as H,c as W,w as tt,x as V,z as me,A as ke,b as K,d as O,y as pe,a as te,p as ct,u as le,g as re,e as ne,D as Ie,V as lt,N as rt,O as nt}from"../chunks/scheduler.C46pS-76.js";import{S as ae,i as oe,g as Q,e as X,t as g,b as v,c as E,a as T,m as z,d as A,f as st}from"../chunks/index.dOVbn71B.js";import{p as ie}from"../chunks/stores.Ds4o9nwd.js";import{P as ut}from"../chunks/page-title.DNhqE1Lj.js";import{e as G,u as mt,o as dt}from"../chunks/each.C6O0oV7R.js";import{d as Pe,w as _t,g as ht}from"../chunks/entry.kylZibtV.js";import{t as y}from"../chunks/translate.BBe5dcco.js";import{k as pt,l as gt,m as at}from"../chunks/workflows.Cse8qlOg.js";import{b as $e,c as bt}from"../chunks/schedules.BI2Sbv1C.js";import{W as vt}from"../chunks/workflow-status.4hwv3weu.js";import{L as de}from"../chunks/link.C_v4aoat.js";import{t as kt,r as $t,f as _e}from"../chunks/time-format.BLKgLEx9.js";import{d as St}from"../chunks/decode-payload.CR1Tto5x.js";import{m as wt,b as De,q as Se}from"../chunks/route-for.B9fTWV7L.js";import{s as ye}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{T as It,C as Pt,c as Dt,a as yt,S as Et}from"../chunks/index.B3hS-irb.js";import{A as ot}from"../chunks/alert.nnKn2vnv.js";import{B as we}from"../chunks/button.hs88FdV4.js";import{E as fe}from"../chunks/empty-state.BO9uOKUe.js";import{I as Ee}from"../chunks/icon-button.BoA3mGH0.js";import{L as Tt}from"../chunks/loading.BLsNkl8r.js";import{F as zt}from"../chunks/filter-select.Cuzm5_PX.js";import{p as it,b as At,o as ft,d as he}from"../chunks/pagination.B2FxfgZG.js";import{p as Lt}from"../chunks/has.BWrERxPV.js";import{P as Nt}from"../chunks/index.DfB8KN6E.js";import{c as Ct}from"../chunks/core-user.DrkCNXj3.js";import{s as ve}from"../chunks/events.CbhKe7Ai.js";import{s as Ft,c as Bt}from"../chunks/search-attributes.Dmice2E5.js";import{t as Rt}from"../chunks/versions.BSCVnN4z.js";import{S as qt}from"../chunks/time-picker.G0x2sfcZ.js";import{a as Mt}from"../chunks/translate.9wzy45oZ.js";import{m as Kt}from"../chunks/route-for-api.DGDQNXtX.js";function Ot(s){let e,l=y("common.schedules-plural",{count:Number(s[0])})+"",t;return{c(){e=L("div"),t=q(l),this.h()},l(r){e=N(r,"DIV",{class:!0});var n=C(e);t=M(n,l),n.forEach(p),this.h()},h(){B(e,"class","flex flex-wrap items-center gap-2")},m(r,n){w(r,e,n),D(e,t)},p(r,[n]){n&1&&l!==(l=y("common.schedules-plural",{count:Number(r[0])})+"")&&J(t,l)},i:H,o:H,d(r){r&&p(e)}}}function Ut(s,e,l){let t,r,n;W(s,$e,f=>l(0,r=f)),W(s,ie,f=>l(2,n=f));const o=async()=>{try{tt($e,r=await pt({namespace:t}),r)}catch(f){console.error("Fetching schedules count failed: ",f==null?void 0:f.message)}};return s.$$.update=()=>{s.$$.dirty&4&&l(1,t=n.params.namespace),s.$$.dirty&2&&o()},[r,t,n]}class Wt extends ae{constructor(e){super(),oe(this,e,Ut,Ot,x,{})}}function Te(s){let e,l,t,r=ye(s[0]||s[1],void 0,2)+"",n,o;return{c(){e=L("div"),l=L("code"),t=L("pre"),n=q(r),this.h()},l(f){e=N(f,"DIV",{class:!0});var a=C(e);l=N(a,"CODE",{});var i=C(l);t=N(i,"PRE",{});var c=C(t);n=M(c,r),c.forEach(p),i.forEach(p),a.forEach(p),this.h()},h(){B(e,"class",o="frequency "+s[2].class+" svelte-11lgv9h")},m(f,a){w(f,e,a),D(e,l),D(l,t),D(t,n)},p(f,a){a&3&&r!==(r=ye(f[0]||f[1],void 0,2)+"")&&J(n,r),a&4&&o!==(o="frequency "+f[2].class+" svelte-11lgv9h")&&B(e,"class",o)},d(f){f&&p(e)}}}function Vt(s){let e=[s[0],s[1]],l,t=Te(s);return{c(){t.c(),l=V()},l(r){t.l(r),l=V()},m(r,n){t.m(r,n),w(r,l,n)},p(r,[n]){n&3&&x(e,e=[r[0],r[1]])?(t.d(1),t=Te(r),t.c(),t.m(l.parentNode,l)):t.p(r,n)},i:H,o:H,d(r){r&&p(l),t.d(r)}}}function Ht(s,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return s.$$set=n=>{l(2,e=me(me({},e),ke(n))),"calendar"in n&&l(0,t=n.calendar),"interval"in n&&l(1,r=n.interval)},e=ke(e),[t,r,e]}class jt extends ae{constructor(e){super(),oe(this,e,Ht,Vt,x,{calendar:0,interval:1})}}function ze(s,e,l){const t=s.slice();return t[18]=e[l].label,t}function Ae(s,e,l){const t=s.slice();return t[21]=e[l],t}function Le(s,e,l){const t=s.slice();return t[21]=e[l],t}function Yt(s){var n,o,f;let e,l=(((f=(o=(n=s[3])==null?void 0:n.searchAttributes)==null?void 0:o.indexedFields)==null?void 0:f[s[18]])??"")+"",t,r;return{c(){e=L("td"),t=q(l),r=K(),this.h()},l(a){e=N(a,"TD",{class:!0});var i=C(e);t=M(i,l),r=O(i),i.forEach(p),this.h()},h(){B(e,"class","cell svelte-tyvqki")},m(a,i){w(a,e,i),D(e,t),D(e,r)},p(a,i){var c,m,b;i&10&&l!==(l=(((b=(m=(c=a[3])==null?void 0:c.searchAttributes)==null?void 0:m.indexedFields)==null?void 0:b[a[18]])??"")+"")&&J(t,l)},i:H,o:H,d(a){a&&p(e)}}}function Jt(s){let e,l,t=y("common.timezone",{timezone:s[4]})+"",r,n,o,f;return n=new jt({props:{calendar:s[6],interval:s[5]}}),{c(){e=L("td"),l=L("p"),r=K(),E(n.$$.fragment),o=K(),this.h()},l(a){e=N(a,"TD",{class:!0});var i=C(e);l=N(i,"P",{});var c=C(l);c.forEach(p),r=O(i),T(n.$$.fragment,i),o=O(i),i.forEach(p),this.h()},h(){B(e,"class","cell svelte-tyvqki")},m(a,i){w(a,e,i),D(e,l),l.innerHTML=t,D(e,r),z(n,e,null),D(e,o),f=!0},p(a,i){(!f||i&16)&&t!==(t=y("common.timezone",{timezone:a[4]})+"")&&(l.innerHTML=t);const c={};i&64&&(c.calendar=a[6]),i&32&&(c.interval=a[5]),n.$set(c)},i(a){f||(g(n.$$.fragment,a),f=!0)},o(a){v(n.$$.fragment,a),f=!1},d(a){a&&p(e),A(n)}}}function Gt(s){var n,o,f;let e,l,t=G(((f=(o=(n=s[0])==null?void 0:n.info)==null?void 0:o.futureActionTimes)==null?void 0:f.slice(0,5))??[]),r=[];for(let a=0;av(n[i],1,1,()=>{n[i]=null});return{c(){e=L("td");for(let i=0;i{S[k]=null}),X(),c=S[i],c?c.p(e,_):(c=S[i]=h[i](e),c.c()),g(c,1),c.m(m.parentNode,m))},i(u){b||(g(c),b=!0)},o(u){v(c),b=!1},d(u){u&&(p(l),p(m)),S[i].d(u)}}}function ll(s){let e,l=[],t=new Map,r,n=G(s[1]);const o=f=>f[18];for(let f=0;fl(17,c=F)),W(s,kt,F=>l(7,m=F)),W(s,$t,F=>l(8,b=F));var h,S,d,u;let{namespace:_}=c.params,{schedule:k}=e,{columns:I}=e;const R=F=>{var Y;return(Y=F==null?void 0:F.sort((j,U)=>new Date(U.actualTime).getTime()-new Date(j.actualTime).getTime()).slice(0,5))!==null&&Y!==void 0?Y:[]};return s.$$set=F=>{"schedule"in F&&l(0,k=F.schedule),"columns"in F&&l(1,I=F.columns)},s.$$.update=()=>{s.$$.dirty&2049&&l(16,t=l(11,h=k==null?void 0:k.info)===null||h===void 0?void 0:h.spec),s.$$.dirty&69632&&l(6,r=l(12,S=t==null?void 0:t.structuredCalendar)===null||S===void 0?void 0:S[0]),s.$$.dirty&73728&&l(5,n=l(13,d=t==null?void 0:t.interval)===null||d===void 0?void 0:d[0]),s.$$.dirty&65536&&l(4,o=(t==null?void 0:t.timezoneName)||"UTC"),s.$$.dirty&16385&&l(15,f=l(14,u=k==null?void 0:k.searchAttributes)!==null&&u!==void 0?u:{}),s.$$.dirty&32768&&l(3,a=St({searchAttributes:f})),s.$$.dirty&1&&l(2,i=wt({namespace:_,scheduleId:k==null?void 0:k.scheduleId}))},[k,I,i,a,o,n,r,m,b,_,R,h,S,d,u,f,t]}class nl extends ae{constructor(e){super(),oe(this,e,rl,ll,x,{schedule:0,columns:1})}}const Be={key:it,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:he,pageSize:he,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},Re=s=>{const e=s[0];if(!e)return he;const l=parseInt(e.toString());return isNaN(l)?he:l},sl=(s,e=void 0)=>{if(e){const l=parseInt(e.toString());return isNaN(l)?Re(s):l}else return Re(s)};function al(s=ft,e=void 0){const l=sl(s,e),t=_t({...Be,previousPageSize:l,pageSize:l}),{set:r,update:n}=t,o=Pe([ie],([d])=>{const u=d.url.searchParams.get(it);return u?At(u):void 0}),{subscribe:f}=Pe([t,o],([d,u])=>{var F,Y,j;const _=((F=d.indexData[d.index])==null?void 0:F.items)??[],k=((Y=d.indexData[d.index])==null?void 0:Y.start)??0,I=((j=d.indexData[d.index])==null?void 0:j.end)??0,R=!!d.indexData[d.index+1];return{...d,visibleItems:_,indexStart:k,indexEnd:I,hasNextIndexData:R,pageSize:u??d.pageSize}}),a=(d,u,_)=>{const k=_.index,I={..._,indexData:{..._.indexData},hasNext:!!d,updating:!1,loading:!1};return u.length?(I.indexData[k]?(I.index=k+1,I.indexData[I.index]={nextToken:d,start:I.indexData[k].end+1,end:I.indexData[k].end+u.length,items:u},I.hasPrevious=!0):(I.indexData[k]={nextToken:d,start:1,end:u.length,items:u},I.hasPrevious=!1),I):{...I,hasNext:!1}},i=d=>{var _;const u={...d,index:d.index+1,hasPrevious:!0,loading:!1,updating:!1};return(_=u.indexData[u.index])!=null&&_.nextToken||(u.hasNext=!1),u},c=d=>{const u={...d,hasNext:!0,updating:!1,loading:!1,index:d.index>0?d.index-1:0};return u.index===0&&(u.hasPrevious=!1),u},m=d=>{var k,I;const u={...d},_=((I=(k=u.indexData[u.index])==null?void 0:k.items)==null?void 0:I.length)??0;return u.activeIndex<_-1&&(u.activeIndex=u.activeIndex+1),u},b=d=>{const u={...d},_=u.activeIndex>=1?u.activeIndex-1:0;return u.activeIndex=_,u},h=(d,u)=>({...d,activeIndex:u}),S=(d,u)=>({...d,pageSize:u,previousPageSize:u,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:f,nextPageWithItems:(d,u)=>n(_=>a(d,u,_)),nextPage:()=>n(d=>i(d)),previousPage:()=>n(d=>c(d)),setUpdating:()=>n(d=>({...d,updating:!0})),reset:()=>r(Be),resetPageSize:d=>n(u=>S(u,d)),nextRow:()=>n(d=>m(d)),previousRow:()=>n(d=>b(d)),setActiveIndex:d=>n(u=>h(u,d))}}const ol=s=>({visibleItems:s&512}),qe=s=>({visibleItems:s[9].visibleItems}),il=s=>({}),Me=s=>({slot:"caption"}),fl=s=>({visibleItems:s&512}),Ke=s=>({slot:"headers",visibleItems:s[9].visibleItems}),cl=s=>({}),Oe=s=>({}),ul=s=>({}),Ue=s=>({}),ml=s=>({}),We=s=>({}),dl=s=>({visibleItems:s&512}),Ve=s=>({visibleItems:s[9].visibleItems});function _l(s){let e;const l=s[22].default,t=te(l,s,s[23],qe);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8389120)&&le(t,l,r,r[23],e?ne(l,r[23],n,ol):re(r[23]),qe)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function hl(s){let e;const l=s[22].caption,t=te(l,s,s[23],Me);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8388608)&&le(t,l,r,r[23],e?ne(l,r[23],n,il):re(r[23]),Me)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function pl(s){let e;const l=s[22].headers,t=te(l,s,s[23],Ke);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8389120)&&le(t,l,r,r[23],e?ne(l,r[23],n,fl):re(r[23]),Ke)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function gl(s){let e;const l=s[22].empty,t=te(l,s,s[23],Oe),r=t||kl(s);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t?t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,cl):re(n[23]),Oe):r&&r.p&&(!e||o&12)&&r.p(n,e?o:-1)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function bl(s){let e;const l=s[22].error,t=te(l,s,s[23],Ue),r=t||Sl(s);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t?t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,ul):re(n[23]),Ue):r&&r.p&&(!e||o&1072)&&r.p(n,e?o:-1)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function vl(s){let e;const l=s[22].loading,t=te(l,s,s[23],We),r=t||wl();return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,ml):re(n[23]),We)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function kl(s){let e,l;return e=new fe({props:{title:s[2],content:s[3]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.title=t[2]),r&8&&(n.content=t[3]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function $l(s){var t;let e,l;return e=new ot({props:{intent:"error",title:((t=s[10])==null?void 0:t.message)??s[5]}}),{c(){E(e.$$.fragment)},l(r){T(e.$$.fragment,r)},m(r,n){z(e,r,n),l=!0},p(r,n){var f;const o={};n&1056&&(o.title=((f=r[10])==null?void 0:f.message)??r[5]),e.$set(o)},i(r){l||(g(e.$$.fragment,r),l=!0)},o(r){v(e.$$.fragment,r),l=!1},d(r){A(e,r)}}}function Sl(s){let e,l;return e=new fe({props:{title:s[4],$$slots:{default:[$l]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&16&&(n.title=t[4]),r&8389664&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function wl(s){let e,l;return e=new Tt({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Il(s){let e,l,t,r;const n=[vl,bl,gl],o=[];function f(a,i){return a[9].loading?0:a[10]?1:2}return e=f(s),l=o[e]=n[e](s),{c(){l.c(),t=V()},l(a){l.l(a),t=V()},m(a,i){o[e].m(a,i),w(a,t,i),r=!0},p(a,i){let c=e;e=f(a),e===c?o[e].p(a,i):(Q(),v(o[c],1,1,()=>{o[c]=null}),X(),l=o[e],l?l.p(a,i):(l=o[e]=n[e](a),l.c()),g(l,1),l.m(t.parentNode,t))},i(a){r||(g(l),r=!0)},o(a){v(l),r=!1},d(a){a&&p(t),o[e].d(a)}}}function Pl(s){let e,l;return e=new zt({props:{label:s[1],parameter:s[9].key,value:String(s[9].pageSize),options:s[8]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.label=t[1]),r&512&&(n.parameter=t[9].key),r&512&&(n.value=String(t[9].pageSize)),r&256&&(n.options=t[8]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function He(s){let e,l,t;return{c(){e=L("p"),l=q("of "),t=q(s[0])},l(r){e=N(r,"P",{});var n=C(e);l=M(n,"of "),t=M(n,s[0]),n.forEach(p)},m(r,n){w(r,e,n),D(e,l),D(e,t)},p(r,n){n&1&&J(t,r[0])},d(r){r&&p(e)}}}function Dl(s){let e,l,t,r,n,o=s[9].indexStart+"",f,a,i=s[9].indexEnd+"",c,m,b,h,S,d;l=new Ee({props:{label:s[6],disabled:!s[9].hasPrevious,icon:"arrow-left"}}),l.$on("click",s[11].previousPage);let u=s[0]&&He(s);return h=new Ee({props:{label:s[7],disabled:!s[9].hasNext,icon:"arrow-right"}}),h.$on("click",s[12]),{c(){e=L("nav"),E(l.$$.fragment),t=K(),r=L("div"),n=L("p"),f=q(o),a=q("–"),c=q(i),m=K(),u&&u.c(),b=K(),E(h.$$.fragment),this.h()},l(_){e=N(_,"NAV",{class:!0,"aria-label":!0,slot:!0});var k=C(e);T(l.$$.fragment,k),t=O(k),r=N(k,"DIV",{class:!0});var I=C(r);n=N(I,"P",{});var R=C(n);f=M(R,o),a=M(R,"–"),c=M(R,i),R.forEach(p),m=O(I),u&&u.l(I),I.forEach(p),b=O(k),T(h.$$.fragment,k),k.forEach(p),this.h()},h(){B(r,"class","flex gap-1"),B(e,"class","flex shrink-0 items-center gap-2"),B(e,"aria-label",S=s[14]["aria-label"]),B(e,"slot","actions-end")},m(_,k){w(_,e,k),z(l,e,null),D(e,t),D(e,r),D(r,n),D(n,f),D(n,a),D(n,c),D(r,m),u&&u.m(r,null),D(e,b),z(h,e,null),d=!0},p(_,k){const I={};k&64&&(I.label=_[6]),k&512&&(I.disabled=!_[9].hasPrevious),l.$set(I),(!d||k&512)&&o!==(o=_[9].indexStart+"")&&J(f,o),(!d||k&512)&&i!==(i=_[9].indexEnd+"")&&J(c,i),_[0]?u?u.p(_,k):(u=He(_),u.c(),u.m(r,null)):u&&(u.d(1),u=null);const R={};k&128&&(R.label=_[7]),k&512&&(R.disabled=!_[9].hasNext),h.$set(R),(!d||k&16384&&S!==(S=_[14]["aria-label"]))&&B(e,"aria-label",S)},i(_){d||(g(l.$$.fragment,_),g(h.$$.fragment,_),d=!0)},o(_){v(l.$$.fragment,_),v(h.$$.fragment,_),d=!1},d(_){_&&p(e),A(l),u&&u.d(),A(h)}}}function yl(s){let e,l,t,r,n;const o=s[22].header,f=te(o,s,s[23],Ve);return l=new Nt({props:{updating:s[9].updating,visibleItems:s[9].visibleItems,$$slots:{"actions-end":[Dl],"actions-start":[Pl],empty:[Il],headers:[pl],caption:[hl],default:[_l]},$$scope:{ctx:s}}}),{c(){f&&f.c(),e=K(),E(l.$$.fragment)},l(a){f&&f.l(a),e=O(a),T(l.$$.fragment,a)},m(a,i){f&&f.m(a,i),w(a,e,i),z(l,a,i),t=!0,r||(n=ct(window,"keydown",s[13]),r=!0)},p(a,[i]){f&&f.p&&(!t||i&8389120)&&le(f,o,a,a[23],t?ne(o,a[23],i,dl):re(a[23]),Ve);const c={};i&512&&(c.updating=a[9].updating),i&512&&(c.visibleItems=a[9].visibleItems),i&8407039&&(c.$$scope={dirty:i,ctx:a}),l.$set(c)},i(a){t||(g(f,a),g(l.$$.fragment,a),t=!0)},o(a){v(f,a),v(l.$$.fragment,a),t=!1},d(a){a&&p(e),f&&f.d(a),A(l,a),r=!1,n()}}}function El(s,e,l){let t;const r=["onError","onFetch","onShiftUp","onShiftDown","onSpace","total","pageSizeSelectLabel","emptyStateTitle","emptyStateMessage","errorTitle","errorMessage","itemsKeyname","previousButtonLabel","nextButtonLabel","pageSizeOptions"];let n=Ie(e,r),o,{$$slots:f={},$$scope:a}=e,{onError:i=void 0}=e,{onFetch:c}=e,{onShiftUp:m=void 0}=e,{onShiftDown:b=void 0}=e,{onSpace:h=void 0}=e,{total:S=""}=e,{pageSizeSelectLabel:d}=e,{emptyStateTitle:u=""}=e,{emptyStateMessage:_=""}=e,{errorTitle:k=""}=e,{errorMessage:I=""}=e,{itemsKeyname:R="items"}=e,{previousButtonLabel:F}=e,{nextButtonLabel:Y}=e,{pageSizeOptions:j=ft}=e,U=al(j,j[0]);W(s,U,$=>l(9,o=$));let ee;function ce(){ee&&l(10,ee=void 0)}lt(()=>{se()});async function se(){const $=await c();try{const P=await $(o.pageSize,""),{nextPageToken:Z}=P,be=P[R]||[];U.nextPageWithItems(Z,be)}catch(P){l(10,ee=P),i&&i(ee)}}async function ue(){if(ce(),U.setUpdating(),o.hasNextIndexData)U.nextPage();else try{const P=await(await c())(o.pageSize,o.indexData[o.index].nextToken),{nextPageToken:Z}=P,be=P[R]||[];U.nextPageWithItems(Z,be)}catch($){Lt($)&&i&&i($)}}async function ge($){const P=$.shiftKey;switch($.code){case"ArrowRight":case"KeyL":o.hasNext&&!o.updating&&ue();break;case"ArrowLeft":case"KeyH":o.hasPrevious&&!o.updating&&U.previousPage();break;case"ArrowUp":case"KeyK":P&&m?(m($),U.reset(),se()):U.previousRow();break;case"ArrowDown":case"KeyJ":P&&b?(b($),U.reset(),se()):U.nextRow();break;case"Space":h&&h($);break}}return s.$$set=$=>{e=me(me({},e),ke($)),l(14,n=Ie(e,r)),"onError"in $&&l(15,i=$.onError),"onFetch"in $&&l(16,c=$.onFetch),"onShiftUp"in $&&l(17,m=$.onShiftUp),"onShiftDown"in $&&l(18,b=$.onShiftDown),"onSpace"in $&&l(19,h=$.onSpace),"total"in $&&l(0,S=$.total),"pageSizeSelectLabel"in $&&l(1,d=$.pageSizeSelectLabel),"emptyStateTitle"in $&&l(2,u=$.emptyStateTitle),"emptyStateMessage"in $&&l(3,_=$.emptyStateMessage),"errorTitle"in $&&l(4,k=$.errorTitle),"errorMessage"in $&&l(5,I=$.errorMessage),"itemsKeyname"in $&&l(20,R=$.itemsKeyname),"previousButtonLabel"in $&&l(6,F=$.previousButtonLabel),"nextButtonLabel"in $&&l(7,Y=$.nextButtonLabel),"pageSizeOptions"in $&&l(8,j=$.pageSizeOptions),"$$scope"in $&&l(23,a=$.$$scope)},s.$$.update=()=>{s.$$.dirty&512&&l(21,t=!o.loading&&o.pageSize!==o.previousPageSize),s.$$.dirty&2097664&&t&&(U.resetPageSize(o.pageSize),se())},[S,d,u,_,k,I,F,Y,j,o,ee,U,ue,ge,n,i,c,m,b,h,R,t,f,a]}class Tl extends ae{constructor(e){super(),oe(this,e,El,yl,x,{onError:15,onFetch:16,onShiftUp:17,onShiftDown:18,onSpace:19,total:0,pageSizeSelectLabel:1,emptyStateTitle:2,emptyStateMessage:3,errorTitle:4,errorMessage:5,itemsKeyname:20,previousButtonLabel:6,nextButtonLabel:7,pageSizeOptions:8})}}function je(s,e,l){const t=s.slice();return t[33]=e[l],t}function Ye(s){const e=s[31].length||s[0];s[32]=e}function Je(s,e,l){const t=s.slice();return t[28]=e[l].label,t}function Ge(s){let e,l;return e=new nl({props:{schedule:s[33],columns:s[9]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[1]&1&&(n.schedule=t[33]),r[0]&512&&(n.columns=t[9]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function zl(s){let e,l,t=G(s[31]),r=[];for(let o=0;ov(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;ost(e,"filters",a)),r=new we({props:{leadingIcon:"settings",variant:"secondary"}}),r.$on("click",s[13]);let c=!s[8]&&Xe(s);return{c(){E(e.$$.fragment),t=K(),E(r.$$.fragment),n=K(),c&&c.c(),o=V()},l(m){T(e.$$.fragment,m),t=O(m),T(r.$$.fragment,m),n=O(m),c&&c.l(m),o=V()},m(m,b){z(e,m,b),w(m,t,b),z(r,m,b),w(m,n,b),c&&c.m(m,b),w(m,o,b),f=!0},p(m,b){const h={};b[0]&128&&(h.options=m[7]),b[0]&4&&(h.refresh=m[24]),!l&&b[0]&1024&&(l=!0,h.filters=m[10],nt(()=>l=!1)),e.$set(h),m[8]?c&&(Q(),v(c,1,1,()=>{c=null}),X()):c?(c.p(m,b),b[0]&256&&g(c,1)):(c=Xe(m),c.c(),g(c,1),c.m(o.parentNode,o))},i(m){f||(g(e.$$.fragment,m),g(r.$$.fragment,m),g(c),f=!0)},o(m){v(e.$$.fragment,m),v(r.$$.fragment,m),v(c),f=!1},d(m){m&&(p(t),p(n),p(o)),A(e,m),A(r,m),c&&c.d(m)}}}function Xe(s){let e,l;return e=new we({props:{"data-testid":"create-schedule",href:Se({namespace:s[1]}),disabled:!at(),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&2&&(n.href=Se({namespace:t[1]})),r[1]&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ll(s){let e=y("schedules.create")+"",l;return{c(){l=q(e)},l(t){l=M(t,e)},m(t,r){w(t,l,r)},p:H,d(t){t&&p(l)}}}function Nl(s){Ye(s);let e,l,t,r,n,o;t=new Wt({});let f=s[32]&&Qe(s);return{c(){e=L("div"),l=L("h1"),E(t.$$.fragment),r=K(),n=L("div"),f&&f.c(),this.h()},l(a){e=N(a,"DIV",{class:!0,slot:!0});var i=C(e);l=N(i,"H1",{class:!0});var c=C(l);T(t.$$.fragment,c),c.forEach(p),r=O(i),n=N(i,"DIV",{class:!0});var m=C(n);f&&f.l(m),m.forEach(p),i.forEach(p),this.h()},h(){B(l,"class","flex flex-col gap-0 md:flex-row md:items-center md:gap-2"),B(n,"class","flex flex-col justify-between gap-2 md:flex-row"),B(e,"class","flex flex-col gap-4"),B(e,"slot","header")},m(a,i){w(a,e,i),D(e,l),z(t,l,null),D(e,r),D(e,n),f&&f.m(n,null),o=!0},p(a,i){Ye(a),a[32]?f?(f.p(a,i),i[0]&1|i[1]&1&&g(f,1)):(f=Qe(a),f.c(),g(f,1),f.m(n,null)):f&&(Q(),v(f,1,1,()=>{f=null}),X())},i(a){o||(g(t.$$.fragment,a),g(f),o=!0)},o(a){v(t.$$.fragment,a),v(f),o=!1},d(a){a&&p(e),A(t),f&&f.d()}}}function Ze(s){let e,l=s[28]+"",t;return{c(){e=L("th"),t=q(l)},l(r){e=N(r,"TH",{});var n=C(e);t=M(n,l),n.forEach(p)},m(r,n){w(r,e,n),D(e,t)},p(r,n){n[0]&512&&l!==(l=r[28]+"")&&J(t,l)},d(r){r&&p(e)}}}function Cl(s){let e,l=G(s[9]),t=[];for(let r=0;r{d=null}),X()):d?(d.p(u,_),_[0]&256&&g(d,1)):(d=xe(u),d.c(),g(d,1),d.m(h.parentNode,h))},i(u){S||(g(n.$$.fragment,u),g(c.$$.fragment,u),g(d),S=!0)},o(u){v(n.$$.fragment,u),v(c.$$.fragment,u),v(d),S=!1},d(u){u&&(p(e),p(b),p(h)),A(n),A(c),d&&d.d(u)}}}function Ul(s){let e;return{c(){e=q(s[4])},l(l){e=M(l,s[4])},m(l,t){w(l,e,t)},p(l,t){t[0]&16&&J(e,l[4])},d(l){l&&p(e)}}}function Wl(s){let e,l;return e=new ot({props:{intent:"warning",icon:"warning",class:"mx-12",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&16|r[1]&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Vl(s){let e,l,t,r;const n=[Rl,Bl,Fl],o=[];function f(a,i){return a[4]?0:a[0]?1:2}return e=f(s),l=o[e]=n[e](s),{c(){l.c(),t=V()},l(a){l.l(a),t=V()},m(a,i){o[e].m(a,i),w(a,t,i),r=!0},p(a,i){let c=e;e=f(a),e===c?o[e].p(a,i):(Q(),v(o[c],1,1,()=>{o[c]=null}),X(),l=o[e],l?l.p(a,i):(l=o[e]=n[e](a),l.c()),g(l,1),l.m(t.parentNode,t))},i(a){r||(g(l),r=!0)},o(a){v(l),r=!1},d(a){a&&p(t),o[e].d(a)}}}function et(s){let e,l;return e=new Tl({props:{onFetch:s[6],onError:s[14],total:s[11],"aria-label":y("common.schedules"),pageSizeSelectLabel:y("common.per-page"),nextButtonLabel:y("common.next"),previousButtonLabel:y("common.previous"),emptyStateMessage:y("schedules.empty-state-title"),errorMessage:y("schedules.error-message-fetching"),$$slots:{empty:[Vl],headers:[Cl],header:[Nl,({visibleItems:t})=>({31:t}),({visibleItems:t})=>[0,t?1:0]],caption:[Al],default:[zl,({visibleItems:t})=>({31:t}),({visibleItems:t})=>[0,t?1:0]]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&64&&(n.onFetch=t[6]),r[0]&2048&&(n.total=t[11]),r[0]&1943|r[1]&33&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Hl(s){let e=[s[1],s[0],s[2]],l,t,r,n,o=et(s);function f(i){s[26](i)}let a={availableColumns:s[5],table:It.SCHEDULES,type:y("schedules.schedule"),title:y("common.schedules")};return s[3]!==void 0&&(a.open=s[3]),t=new Pt({props:a}),rt.push(()=>st(t,"open",f)),{c(){o.c(),l=K(),E(t.$$.fragment)},l(i){o.l(i),l=O(i),T(t.$$.fragment,i)},m(i,c){o.m(i,c),w(i,l,c),z(t,i,c),n=!0},p(i,c){c[0]&7&&x(e,e=[i[1],i[0],i[2]])?(Q(),v(o,1,1,H),X(),o=et(i),o.c(),g(o,1),o.m(l.parentNode,l)):o.p(i,c);const m={};c[0]&32&&(m.availableColumns=i[5]),!r&&c[0]&8&&(r=!0,m.open=i[3],nt(()=>r=!1)),t.$set(m)},i(i){n||(g(o),g(t.$$.fragment,i),n=!0)},o(i){v(o),v(t.$$.fragment,i),n=!1},d(i){i&&p(l),o.d(i),A(t,i)}}}function jl(s,e,l){let t,r,n,o,f,a,i,c,m,b,h,S,d,u,_,k;W(s,Ft,P=>l(27,c=P)),W(s,ve,P=>l(10,m=P)),W(s,ie,P=>l(17,b=P)),W(s,Bt,P=>l(18,h=P)),W(s,Rt,P=>l(19,S=P)),W(s,gt,P=>l(20,d=P)),W(s,Dt,P=>l(22,_=P)),W(s,$e,P=>l(11,k=P));var I,R;let F=Date.now(),Y=Ct();W(s,Y,P=>l(21,u=P));let j=!1,U="";const ee=()=>{l(3,j=!0)};lt(()=>{f&&tt(ve,m=Mt(f,c),m)});const ce=P=>{var Z;l(4,U=((Z=P==null?void 0:P.body)===null||Z===void 0?void 0:Z.message)||y("schedules.error-message-fetching"))},se=()=>ht(Se({namespace:t})),ue=()=>{l(2,F=Date.now())};function ge(P){m=P,ve.set(m)}function $(P){j=P,l(3,j)}return s.$$.update=()=>{s.$$.dirty[0]&131072&&l(1,t=b.params.namespace),s.$$.dirty[0]&4292610&&l(9,r=l(16,R=l(15,I=_==null?void 0:_[t])===null||I===void 0?void 0:I.schedules)!==null&&R!==void 0?R:[]),s.$$.dirty[0]&2097154&&l(8,n=u.namespaceWriteDisabled(t)),s.$$.dirty[0]&1835008&&l(7,o=Object.entries({...(d||Kt("1.25.0",S))&&{ScheduleId:qt.KEYWORD},...h}).map(([P,Z])=>({label:P,value:P,type:Z}))),s.$$.dirty[0]&131072&&l(0,f=b.url.searchParams.get("query")),s.$$.dirty[0]&3&&l(6,a=()=>(l(4,U=""),bt(t,f,ce))),s.$$.dirty[0]&2&&l(5,i=yt(t))},[f,t,F,j,U,i,a,o,n,r,m,k,Y,ee,ce,I,R,b,h,S,d,u,_,se,ue,ge,$]}class Yl extends ae{constructor(e){super(),oe(this,e,jl,Hl,x,{},null,[-1,-1])}}function Jl(s){let e,l,t,r;return e=new ut({props:{title:`Schedules | ${s[0].params.namespace}`,url:s[0].url.href}}),t=new Yl({}),{c(){E(e.$$.fragment),l=K(),E(t.$$.fragment)},l(n){T(e.$$.fragment,n),l=O(n),T(t.$$.fragment,n)},m(n,o){z(e,n,o),w(n,l,o),z(t,n,o),r=!0},p(n,[o]){const f={};o&1&&(f.title=`Schedules | ${n[0].params.namespace}`),o&1&&(f.url=n[0].url.href),e.$set(f)},i(n){r||(g(e.$$.fragment,n),g(t.$$.fragment,n),r=!0)},o(n){v(e.$$.fragment,n),v(t.$$.fragment,n),r=!1},d(n){n&&p(l),A(e,n),A(t,n)}}}function Gl(s,e,l){let t;return W(s,ie,r=>l(0,t=r)),[t]}class Er extends ae{constructor(e){super(),oe(this,e,Gl,Jl,x,{})}}export{Er as component}; diff --git a/ui/assets/local/_app/immutable/nodes/23.CDwnffOj.js b/ui/assets/local/_app/immutable/nodes/23.CDwnffOj.js deleted file mode 100644 index 6647d32bf..000000000 --- a/ui/assets/local/_app/immutable/nodes/23.CDwnffOj.js +++ /dev/null @@ -1 +0,0 @@ -import{s as x,h as L,t as q,j as N,k as C,l as M,f as p,m as B,i as w,n as D,q as J,v as H,c as W,w as tt,x as V,z as me,A as ke,b as K,d as O,y as pe,a as te,p as ct,u as le,g as re,e as ne,D as Ie,V as lt,N as rt,O as nt}from"../chunks/scheduler.C46pS-76.js";import{S as ae,i as oe,g as Q,e as X,t as g,b as v,c as E,a as T,m as z,d as A,f as st}from"../chunks/index.dOVbn71B.js";import{p as ie}from"../chunks/stores.Dz-RNcUk.js";import{P as ut}from"../chunks/page-title.DNhqE1Lj.js";import{e as G,u as mt,o as dt}from"../chunks/each.C6O0oV7R.js";import{d as Pe,w as _t,g as ht}from"../chunks/entry.DLEzeuD9.js";import{t as y}from"../chunks/translate.BBe5dcco.js";import{k as pt,l as gt,m as at}from"../chunks/workflows.BzgE0E1S.js";import{b as $e,c as bt}from"../chunks/schedules.DZMegXhn.js";import{W as vt}from"../chunks/workflow-status.4hwv3weu.js";import{L as de}from"../chunks/link.BJceiGbc.js";import{t as kt,r as $t,f as _e}from"../chunks/time-format.D2wF3ave.js";import{d as St}from"../chunks/decode-payload.BTpeWKqJ.js";import{m as wt,b as De,q as Se}from"../chunks/route-for.BjP6gGR7.js";import{s as ye}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{T as It,C as Pt,c as Dt,a as yt,S as Et}from"../chunks/index.CI5Z4Pgd.js";import{A as ot}from"../chunks/alert.nnKn2vnv.js";import{B as we}from"../chunks/button.BpRIS9ld.js";import{E as fe}from"../chunks/empty-state.BO9uOKUe.js";import{I as Ee}from"../chunks/icon-button.CDcPAnTL.js";import{L as Tt}from"../chunks/loading.BLsNkl8r.js";import{F as zt}from"../chunks/filter-select.NIuiMMoD.js";import{p as it,b as At,o as ft,d as he}from"../chunks/pagination.BCeOU9Ta.js";import{p as Lt}from"../chunks/has.BWrERxPV.js";import{P as Nt}from"../chunks/index.DfB8KN6E.js";import{c as Ct}from"../chunks/core-user.BxGCJ_SI.js";import{s as ve}from"../chunks/events.Dh9P6F73.js";import{s as Ft,c as Bt}from"../chunks/search-attributes.C9oQpIly.js";import{t as Rt}from"../chunks/versions.CeMhowfV.js";import{S as qt}from"../chunks/time-picker.BvbblB8x.js";import{a as Mt}from"../chunks/translate.ncUacGRD.js";import{m as Kt}from"../chunks/route-for-api.BTloiRV6.js";function Ot(s){let e,l=y("common.schedules-plural",{count:Number(s[0])})+"",t;return{c(){e=L("div"),t=q(l),this.h()},l(r){e=N(r,"DIV",{class:!0});var n=C(e);t=M(n,l),n.forEach(p),this.h()},h(){B(e,"class","flex flex-wrap items-center gap-2")},m(r,n){w(r,e,n),D(e,t)},p(r,[n]){n&1&&l!==(l=y("common.schedules-plural",{count:Number(r[0])})+"")&&J(t,l)},i:H,o:H,d(r){r&&p(e)}}}function Ut(s,e,l){let t,r,n;W(s,$e,f=>l(0,r=f)),W(s,ie,f=>l(2,n=f));const o=async()=>{try{tt($e,r=await pt({namespace:t}),r)}catch(f){console.error("Fetching schedules count failed: ",f==null?void 0:f.message)}};return s.$$.update=()=>{s.$$.dirty&4&&l(1,t=n.params.namespace),s.$$.dirty&2&&o()},[r,t,n]}class Wt extends ae{constructor(e){super(),oe(this,e,Ut,Ot,x,{})}}function Te(s){let e,l,t,r=ye(s[0]||s[1],void 0,2)+"",n,o;return{c(){e=L("div"),l=L("code"),t=L("pre"),n=q(r),this.h()},l(f){e=N(f,"DIV",{class:!0});var a=C(e);l=N(a,"CODE",{});var i=C(l);t=N(i,"PRE",{});var c=C(t);n=M(c,r),c.forEach(p),i.forEach(p),a.forEach(p),this.h()},h(){B(e,"class",o="frequency "+s[2].class+" svelte-dhsfg0")},m(f,a){w(f,e,a),D(e,l),D(l,t),D(t,n)},p(f,a){a&3&&r!==(r=ye(f[0]||f[1],void 0,2)+"")&&J(n,r),a&4&&o!==(o="frequency "+f[2].class+" svelte-dhsfg0")&&B(e,"class",o)},d(f){f&&p(e)}}}function Vt(s){let e=[s[0],s[1]],l,t=Te(s);return{c(){t.c(),l=V()},l(r){t.l(r),l=V()},m(r,n){t.m(r,n),w(r,l,n)},p(r,[n]){n&3&&x(e,e=[r[0],r[1]])?(t.d(1),t=Te(r),t.c(),t.m(l.parentNode,l)):t.p(r,n)},i:H,o:H,d(r){r&&p(l),t.d(r)}}}function Ht(s,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return s.$$set=n=>{l(2,e=me(me({},e),ke(n))),"calendar"in n&&l(0,t=n.calendar),"interval"in n&&l(1,r=n.interval)},e=ke(e),[t,r,e]}class jt extends ae{constructor(e){super(),oe(this,e,Ht,Vt,x,{calendar:0,interval:1})}}function ze(s,e,l){const t=s.slice();return t[18]=e[l].label,t}function Ae(s,e,l){const t=s.slice();return t[21]=e[l],t}function Le(s,e,l){const t=s.slice();return t[21]=e[l],t}function Yt(s){var n,o,f;let e,l=(((f=(o=(n=s[3])==null?void 0:n.searchAttributes)==null?void 0:o.indexedFields)==null?void 0:f[s[18]])??"")+"",t,r;return{c(){e=L("td"),t=q(l),r=K(),this.h()},l(a){e=N(a,"TD",{class:!0});var i=C(e);t=M(i,l),r=O(i),i.forEach(p),this.h()},h(){B(e,"class","cell svelte-tyvqki")},m(a,i){w(a,e,i),D(e,t),D(e,r)},p(a,i){var c,m,b;i&10&&l!==(l=(((b=(m=(c=a[3])==null?void 0:c.searchAttributes)==null?void 0:m.indexedFields)==null?void 0:b[a[18]])??"")+"")&&J(t,l)},i:H,o:H,d(a){a&&p(e)}}}function Jt(s){let e,l,t=y("common.timezone",{timezone:s[4]})+"",r,n,o,f;return n=new jt({props:{calendar:s[6],interval:s[5]}}),{c(){e=L("td"),l=L("p"),r=K(),E(n.$$.fragment),o=K(),this.h()},l(a){e=N(a,"TD",{class:!0});var i=C(e);l=N(i,"P",{});var c=C(l);c.forEach(p),r=O(i),T(n.$$.fragment,i),o=O(i),i.forEach(p),this.h()},h(){B(e,"class","cell svelte-tyvqki")},m(a,i){w(a,e,i),D(e,l),l.innerHTML=t,D(e,r),z(n,e,null),D(e,o),f=!0},p(a,i){(!f||i&16)&&t!==(t=y("common.timezone",{timezone:a[4]})+"")&&(l.innerHTML=t);const c={};i&64&&(c.calendar=a[6]),i&32&&(c.interval=a[5]),n.$set(c)},i(a){f||(g(n.$$.fragment,a),f=!0)},o(a){v(n.$$.fragment,a),f=!1},d(a){a&&p(e),A(n)}}}function Gt(s){var n,o,f;let e,l,t=G(((f=(o=(n=s[0])==null?void 0:n.info)==null?void 0:o.futureActionTimes)==null?void 0:f.slice(0,5))??[]),r=[];for(let a=0;av(n[i],1,1,()=>{n[i]=null});return{c(){e=L("td");for(let i=0;i{S[k]=null}),X(),c=S[i],c?c.p(e,_):(c=S[i]=h[i](e),c.c()),g(c,1),c.m(m.parentNode,m))},i(u){b||(g(c),b=!0)},o(u){v(c),b=!1},d(u){u&&(p(l),p(m)),S[i].d(u)}}}function ll(s){let e,l=[],t=new Map,r,n=G(s[1]);const o=f=>f[18];for(let f=0;fl(17,c=F)),W(s,kt,F=>l(7,m=F)),W(s,$t,F=>l(8,b=F));var h,S,d,u;let{namespace:_}=c.params,{schedule:k}=e,{columns:I}=e;const R=F=>{var Y;return(Y=F==null?void 0:F.sort((j,U)=>new Date(U.actualTime).getTime()-new Date(j.actualTime).getTime()).slice(0,5))!==null&&Y!==void 0?Y:[]};return s.$$set=F=>{"schedule"in F&&l(0,k=F.schedule),"columns"in F&&l(1,I=F.columns)},s.$$.update=()=>{s.$$.dirty&2049&&l(16,t=l(11,h=k==null?void 0:k.info)===null||h===void 0?void 0:h.spec),s.$$.dirty&69632&&l(6,r=l(12,S=t==null?void 0:t.structuredCalendar)===null||S===void 0?void 0:S[0]),s.$$.dirty&73728&&l(5,n=l(13,d=t==null?void 0:t.interval)===null||d===void 0?void 0:d[0]),s.$$.dirty&65536&&l(4,o=(t==null?void 0:t.timezoneName)||"UTC"),s.$$.dirty&16385&&l(15,f=l(14,u=k==null?void 0:k.searchAttributes)!==null&&u!==void 0?u:{}),s.$$.dirty&32768&&l(3,a=St({searchAttributes:f})),s.$$.dirty&1&&l(2,i=wt({namespace:_,scheduleId:k==null?void 0:k.scheduleId}))},[k,I,i,a,o,n,r,m,b,_,R,h,S,d,u,f,t]}class nl extends ae{constructor(e){super(),oe(this,e,rl,ll,x,{schedule:0,columns:1})}}const Be={key:it,loading:!0,updating:!1,hasNext:!1,hasPrevious:!1,index:0,previousPageSize:he,pageSize:he,indexData:{},visibleItems:[],hasNextIndexData:!1,indexStart:0,indexEnd:0,activeIndex:0},Re=s=>{const e=s[0];if(!e)return he;const l=parseInt(e.toString());return isNaN(l)?he:l},sl=(s,e=void 0)=>{if(e){const l=parseInt(e.toString());return isNaN(l)?Re(s):l}else return Re(s)};function al(s=ft,e=void 0){const l=sl(s,e),t=_t({...Be,previousPageSize:l,pageSize:l}),{set:r,update:n}=t,o=Pe([ie],([d])=>{const u=d.url.searchParams.get(it);return u?At(u):void 0}),{subscribe:f}=Pe([t,o],([d,u])=>{var F,Y,j;const _=((F=d.indexData[d.index])==null?void 0:F.items)??[],k=((Y=d.indexData[d.index])==null?void 0:Y.start)??0,I=((j=d.indexData[d.index])==null?void 0:j.end)??0,R=!!d.indexData[d.index+1];return{...d,visibleItems:_,indexStart:k,indexEnd:I,hasNextIndexData:R,pageSize:u??d.pageSize}}),a=(d,u,_)=>{const k=_.index,I={..._,indexData:{..._.indexData},hasNext:!!d,updating:!1,loading:!1};return u.length?(I.indexData[k]?(I.index=k+1,I.indexData[I.index]={nextToken:d,start:I.indexData[k].end+1,end:I.indexData[k].end+u.length,items:u},I.hasPrevious=!0):(I.indexData[k]={nextToken:d,start:1,end:u.length,items:u},I.hasPrevious=!1),I):{...I,hasNext:!1}},i=d=>{var _;const u={...d,index:d.index+1,hasPrevious:!0,loading:!1,updating:!1};return(_=u.indexData[u.index])!=null&&_.nextToken||(u.hasNext=!1),u},c=d=>{const u={...d,hasNext:!0,updating:!1,loading:!1,index:d.index>0?d.index-1:0};return u.index===0&&(u.hasPrevious=!1),u},m=d=>{var k,I;const u={...d},_=((I=(k=u.indexData[u.index])==null?void 0:k.items)==null?void 0:I.length)??0;return u.activeIndex<_-1&&(u.activeIndex=u.activeIndex+1),u},b=d=>{const u={...d},_=u.activeIndex>=1?u.activeIndex-1:0;return u.activeIndex=_,u},h=(d,u)=>({...d,activeIndex:u}),S=(d,u)=>({...d,pageSize:u,previousPageSize:u,index:0,indexData:{},loading:!0,updating:!1});return{subscribe:f,nextPageWithItems:(d,u)=>n(_=>a(d,u,_)),nextPage:()=>n(d=>i(d)),previousPage:()=>n(d=>c(d)),setUpdating:()=>n(d=>({...d,updating:!0})),reset:()=>r(Be),resetPageSize:d=>n(u=>S(u,d)),nextRow:()=>n(d=>m(d)),previousRow:()=>n(d=>b(d)),setActiveIndex:d=>n(u=>h(u,d))}}const ol=s=>({visibleItems:s&512}),qe=s=>({visibleItems:s[9].visibleItems}),il=s=>({}),Me=s=>({slot:"caption"}),fl=s=>({visibleItems:s&512}),Ke=s=>({slot:"headers",visibleItems:s[9].visibleItems}),cl=s=>({}),Oe=s=>({}),ul=s=>({}),Ue=s=>({}),ml=s=>({}),We=s=>({}),dl=s=>({visibleItems:s&512}),Ve=s=>({visibleItems:s[9].visibleItems});function _l(s){let e;const l=s[22].default,t=te(l,s,s[23],qe);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8389120)&&le(t,l,r,r[23],e?ne(l,r[23],n,ol):re(r[23]),qe)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function hl(s){let e;const l=s[22].caption,t=te(l,s,s[23],Me);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8388608)&&le(t,l,r,r[23],e?ne(l,r[23],n,il):re(r[23]),Me)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function pl(s){let e;const l=s[22].headers,t=te(l,s,s[23],Ke);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,n){t&&t.m(r,n),e=!0},p(r,n){t&&t.p&&(!e||n&8389120)&&le(t,l,r,r[23],e?ne(l,r[23],n,fl):re(r[23]),Ke)},i(r){e||(g(t,r),e=!0)},o(r){v(t,r),e=!1},d(r){t&&t.d(r)}}}function gl(s){let e;const l=s[22].empty,t=te(l,s,s[23],Oe),r=t||kl(s);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t?t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,cl):re(n[23]),Oe):r&&r.p&&(!e||o&12)&&r.p(n,e?o:-1)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function bl(s){let e;const l=s[22].error,t=te(l,s,s[23],Ue),r=t||Sl(s);return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t?t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,ul):re(n[23]),Ue):r&&r.p&&(!e||o&1072)&&r.p(n,e?o:-1)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function vl(s){let e;const l=s[22].loading,t=te(l,s,s[23],We),r=t||wl();return{c(){r&&r.c()},l(n){r&&r.l(n)},m(n,o){r&&r.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&8388608)&&le(t,l,n,n[23],e?ne(l,n[23],o,ml):re(n[23]),We)},i(n){e||(g(r,n),e=!0)},o(n){v(r,n),e=!1},d(n){r&&r.d(n)}}}function kl(s){let e,l;return e=new fe({props:{title:s[2],content:s[3]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&4&&(n.title=t[2]),r&8&&(n.content=t[3]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function $l(s){var t;let e,l;return e=new ot({props:{intent:"error",title:((t=s[10])==null?void 0:t.message)??s[5]}}),{c(){E(e.$$.fragment)},l(r){T(e.$$.fragment,r)},m(r,n){z(e,r,n),l=!0},p(r,n){var f;const o={};n&1056&&(o.title=((f=r[10])==null?void 0:f.message)??r[5]),e.$set(o)},i(r){l||(g(e.$$.fragment,r),l=!0)},o(r){v(e.$$.fragment,r),l=!1},d(r){A(e,r)}}}function Sl(s){let e,l;return e=new fe({props:{title:s[4],$$slots:{default:[$l]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&16&&(n.title=t[4]),r&8389664&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function wl(s){let e,l;return e=new Tt({}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Il(s){let e,l,t,r;const n=[vl,bl,gl],o=[];function f(a,i){return a[9].loading?0:a[10]?1:2}return e=f(s),l=o[e]=n[e](s),{c(){l.c(),t=V()},l(a){l.l(a),t=V()},m(a,i){o[e].m(a,i),w(a,t,i),r=!0},p(a,i){let c=e;e=f(a),e===c?o[e].p(a,i):(Q(),v(o[c],1,1,()=>{o[c]=null}),X(),l=o[e],l?l.p(a,i):(l=o[e]=n[e](a),l.c()),g(l,1),l.m(t.parentNode,t))},i(a){r||(g(l),r=!0)},o(a){v(l),r=!1},d(a){a&&p(t),o[e].d(a)}}}function Pl(s){let e,l;return e=new zt({props:{label:s[1],parameter:s[9].key,value:String(s[9].pageSize),options:s[8]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r&2&&(n.label=t[1]),r&512&&(n.parameter=t[9].key),r&512&&(n.value=String(t[9].pageSize)),r&256&&(n.options=t[8]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function He(s){let e,l,t;return{c(){e=L("p"),l=q("of "),t=q(s[0])},l(r){e=N(r,"P",{});var n=C(e);l=M(n,"of "),t=M(n,s[0]),n.forEach(p)},m(r,n){w(r,e,n),D(e,l),D(e,t)},p(r,n){n&1&&J(t,r[0])},d(r){r&&p(e)}}}function Dl(s){let e,l,t,r,n,o=s[9].indexStart+"",f,a,i=s[9].indexEnd+"",c,m,b,h,S,d;l=new Ee({props:{label:s[6],disabled:!s[9].hasPrevious,icon:"arrow-left"}}),l.$on("click",s[11].previousPage);let u=s[0]&&He(s);return h=new Ee({props:{label:s[7],disabled:!s[9].hasNext,icon:"arrow-right"}}),h.$on("click",s[12]),{c(){e=L("nav"),E(l.$$.fragment),t=K(),r=L("div"),n=L("p"),f=q(o),a=q("–"),c=q(i),m=K(),u&&u.c(),b=K(),E(h.$$.fragment),this.h()},l(_){e=N(_,"NAV",{class:!0,"aria-label":!0,slot:!0});var k=C(e);T(l.$$.fragment,k),t=O(k),r=N(k,"DIV",{class:!0});var I=C(r);n=N(I,"P",{});var R=C(n);f=M(R,o),a=M(R,"–"),c=M(R,i),R.forEach(p),m=O(I),u&&u.l(I),I.forEach(p),b=O(k),T(h.$$.fragment,k),k.forEach(p),this.h()},h(){B(r,"class","flex gap-1"),B(e,"class","flex shrink-0 items-center gap-2"),B(e,"aria-label",S=s[14]["aria-label"]),B(e,"slot","actions-end")},m(_,k){w(_,e,k),z(l,e,null),D(e,t),D(e,r),D(r,n),D(n,f),D(n,a),D(n,c),D(r,m),u&&u.m(r,null),D(e,b),z(h,e,null),d=!0},p(_,k){const I={};k&64&&(I.label=_[6]),k&512&&(I.disabled=!_[9].hasPrevious),l.$set(I),(!d||k&512)&&o!==(o=_[9].indexStart+"")&&J(f,o),(!d||k&512)&&i!==(i=_[9].indexEnd+"")&&J(c,i),_[0]?u?u.p(_,k):(u=He(_),u.c(),u.m(r,null)):u&&(u.d(1),u=null);const R={};k&128&&(R.label=_[7]),k&512&&(R.disabled=!_[9].hasNext),h.$set(R),(!d||k&16384&&S!==(S=_[14]["aria-label"]))&&B(e,"aria-label",S)},i(_){d||(g(l.$$.fragment,_),g(h.$$.fragment,_),d=!0)},o(_){v(l.$$.fragment,_),v(h.$$.fragment,_),d=!1},d(_){_&&p(e),A(l),u&&u.d(),A(h)}}}function yl(s){let e,l,t,r,n;const o=s[22].header,f=te(o,s,s[23],Ve);return l=new Nt({props:{updating:s[9].updating,visibleItems:s[9].visibleItems,$$slots:{"actions-end":[Dl],"actions-start":[Pl],empty:[Il],headers:[pl],caption:[hl],default:[_l]},$$scope:{ctx:s}}}),{c(){f&&f.c(),e=K(),E(l.$$.fragment)},l(a){f&&f.l(a),e=O(a),T(l.$$.fragment,a)},m(a,i){f&&f.m(a,i),w(a,e,i),z(l,a,i),t=!0,r||(n=ct(window,"keydown",s[13]),r=!0)},p(a,[i]){f&&f.p&&(!t||i&8389120)&&le(f,o,a,a[23],t?ne(o,a[23],i,dl):re(a[23]),Ve);const c={};i&512&&(c.updating=a[9].updating),i&512&&(c.visibleItems=a[9].visibleItems),i&8407039&&(c.$$scope={dirty:i,ctx:a}),l.$set(c)},i(a){t||(g(f,a),g(l.$$.fragment,a),t=!0)},o(a){v(f,a),v(l.$$.fragment,a),t=!1},d(a){a&&p(e),f&&f.d(a),A(l,a),r=!1,n()}}}function El(s,e,l){let t;const r=["onError","onFetch","onShiftUp","onShiftDown","onSpace","total","pageSizeSelectLabel","emptyStateTitle","emptyStateMessage","errorTitle","errorMessage","itemsKeyname","previousButtonLabel","nextButtonLabel","pageSizeOptions"];let n=Ie(e,r),o,{$$slots:f={},$$scope:a}=e,{onError:i=void 0}=e,{onFetch:c}=e,{onShiftUp:m=void 0}=e,{onShiftDown:b=void 0}=e,{onSpace:h=void 0}=e,{total:S=""}=e,{pageSizeSelectLabel:d}=e,{emptyStateTitle:u=""}=e,{emptyStateMessage:_=""}=e,{errorTitle:k=""}=e,{errorMessage:I=""}=e,{itemsKeyname:R="items"}=e,{previousButtonLabel:F}=e,{nextButtonLabel:Y}=e,{pageSizeOptions:j=ft}=e,U=al(j,j[0]);W(s,U,$=>l(9,o=$));let ee;function ce(){ee&&l(10,ee=void 0)}lt(()=>{se()});async function se(){const $=await c();try{const P=await $(o.pageSize,""),{nextPageToken:Z}=P,be=P[R]||[];U.nextPageWithItems(Z,be)}catch(P){l(10,ee=P),i&&i(ee)}}async function ue(){if(ce(),U.setUpdating(),o.hasNextIndexData)U.nextPage();else try{const P=await(await c())(o.pageSize,o.indexData[o.index].nextToken),{nextPageToken:Z}=P,be=P[R]||[];U.nextPageWithItems(Z,be)}catch($){Lt($)&&i&&i($)}}async function ge($){const P=$.shiftKey;switch($.code){case"ArrowRight":case"KeyL":o.hasNext&&!o.updating&&ue();break;case"ArrowLeft":case"KeyH":o.hasPrevious&&!o.updating&&U.previousPage();break;case"ArrowUp":case"KeyK":P&&m?(m($),U.reset(),se()):U.previousRow();break;case"ArrowDown":case"KeyJ":P&&b?(b($),U.reset(),se()):U.nextRow();break;case"Space":h&&h($);break}}return s.$$set=$=>{e=me(me({},e),ke($)),l(14,n=Ie(e,r)),"onError"in $&&l(15,i=$.onError),"onFetch"in $&&l(16,c=$.onFetch),"onShiftUp"in $&&l(17,m=$.onShiftUp),"onShiftDown"in $&&l(18,b=$.onShiftDown),"onSpace"in $&&l(19,h=$.onSpace),"total"in $&&l(0,S=$.total),"pageSizeSelectLabel"in $&&l(1,d=$.pageSizeSelectLabel),"emptyStateTitle"in $&&l(2,u=$.emptyStateTitle),"emptyStateMessage"in $&&l(3,_=$.emptyStateMessage),"errorTitle"in $&&l(4,k=$.errorTitle),"errorMessage"in $&&l(5,I=$.errorMessage),"itemsKeyname"in $&&l(20,R=$.itemsKeyname),"previousButtonLabel"in $&&l(6,F=$.previousButtonLabel),"nextButtonLabel"in $&&l(7,Y=$.nextButtonLabel),"pageSizeOptions"in $&&l(8,j=$.pageSizeOptions),"$$scope"in $&&l(23,a=$.$$scope)},s.$$.update=()=>{s.$$.dirty&512&&l(21,t=!o.loading&&o.pageSize!==o.previousPageSize),s.$$.dirty&2097664&&t&&(U.resetPageSize(o.pageSize),se())},[S,d,u,_,k,I,F,Y,j,o,ee,U,ue,ge,n,i,c,m,b,h,R,t,f,a]}class Tl extends ae{constructor(e){super(),oe(this,e,El,yl,x,{onError:15,onFetch:16,onShiftUp:17,onShiftDown:18,onSpace:19,total:0,pageSizeSelectLabel:1,emptyStateTitle:2,emptyStateMessage:3,errorTitle:4,errorMessage:5,itemsKeyname:20,previousButtonLabel:6,nextButtonLabel:7,pageSizeOptions:8})}}function je(s,e,l){const t=s.slice();return t[33]=e[l],t}function Ye(s){const e=s[31].length||s[0];s[32]=e}function Je(s,e,l){const t=s.slice();return t[28]=e[l].label,t}function Ge(s){let e,l;return e=new nl({props:{schedule:s[33],columns:s[9]}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[1]&1&&(n.schedule=t[33]),r[0]&512&&(n.columns=t[9]),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function zl(s){let e,l,t=G(s[31]),r=[];for(let o=0;ov(r[o],1,1,()=>{r[o]=null});return{c(){for(let o=0;ost(e,"filters",a)),r=new we({props:{leadingIcon:"settings",variant:"secondary"}}),r.$on("click",s[13]);let c=!s[8]&&Xe(s);return{c(){E(e.$$.fragment),t=K(),E(r.$$.fragment),n=K(),c&&c.c(),o=V()},l(m){T(e.$$.fragment,m),t=O(m),T(r.$$.fragment,m),n=O(m),c&&c.l(m),o=V()},m(m,b){z(e,m,b),w(m,t,b),z(r,m,b),w(m,n,b),c&&c.m(m,b),w(m,o,b),f=!0},p(m,b){const h={};b[0]&128&&(h.options=m[7]),b[0]&4&&(h.refresh=m[24]),!l&&b[0]&1024&&(l=!0,h.filters=m[10],nt(()=>l=!1)),e.$set(h),m[8]?c&&(Q(),v(c,1,1,()=>{c=null}),X()):c?(c.p(m,b),b[0]&256&&g(c,1)):(c=Xe(m),c.c(),g(c,1),c.m(o.parentNode,o))},i(m){f||(g(e.$$.fragment,m),g(r.$$.fragment,m),g(c),f=!0)},o(m){v(e.$$.fragment,m),v(r.$$.fragment,m),v(c),f=!1},d(m){m&&(p(t),p(n),p(o)),A(e,m),A(r,m),c&&c.d(m)}}}function Xe(s){let e,l;return e=new we({props:{"data-testid":"create-schedule",href:Se({namespace:s[1]}),disabled:!at(),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&2&&(n.href=Se({namespace:t[1]})),r[1]&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Ll(s){let e=y("schedules.create")+"",l;return{c(){l=q(e)},l(t){l=M(t,e)},m(t,r){w(t,l,r)},p:H,d(t){t&&p(l)}}}function Nl(s){Ye(s);let e,l,t,r,n,o;t=new Wt({});let f=s[32]&&Qe(s);return{c(){e=L("div"),l=L("h1"),E(t.$$.fragment),r=K(),n=L("div"),f&&f.c(),this.h()},l(a){e=N(a,"DIV",{class:!0,slot:!0});var i=C(e);l=N(i,"H1",{class:!0});var c=C(l);T(t.$$.fragment,c),c.forEach(p),r=O(i),n=N(i,"DIV",{class:!0});var m=C(n);f&&f.l(m),m.forEach(p),i.forEach(p),this.h()},h(){B(l,"class","flex flex-col gap-0 md:flex-row md:items-center md:gap-2"),B(n,"class","flex flex-col justify-between gap-2 md:flex-row"),B(e,"class","flex flex-col gap-4"),B(e,"slot","header")},m(a,i){w(a,e,i),D(e,l),z(t,l,null),D(e,r),D(e,n),f&&f.m(n,null),o=!0},p(a,i){Ye(a),a[32]?f?(f.p(a,i),i[0]&1|i[1]&1&&g(f,1)):(f=Qe(a),f.c(),g(f,1),f.m(n,null)):f&&(Q(),v(f,1,1,()=>{f=null}),X())},i(a){o||(g(t.$$.fragment,a),g(f),o=!0)},o(a){v(t.$$.fragment,a),v(f),o=!1},d(a){a&&p(e),A(t),f&&f.d()}}}function Ze(s){let e,l=s[28]+"",t;return{c(){e=L("th"),t=q(l)},l(r){e=N(r,"TH",{});var n=C(e);t=M(n,l),n.forEach(p)},m(r,n){w(r,e,n),D(e,t)},p(r,n){n[0]&512&&l!==(l=r[28]+"")&&J(t,l)},d(r){r&&p(e)}}}function Cl(s){let e,l=G(s[9]),t=[];for(let r=0;r{d=null}),X()):d?(d.p(u,_),_[0]&256&&g(d,1)):(d=xe(u),d.c(),g(d,1),d.m(h.parentNode,h))},i(u){S||(g(n.$$.fragment,u),g(c.$$.fragment,u),g(d),S=!0)},o(u){v(n.$$.fragment,u),v(c.$$.fragment,u),v(d),S=!1},d(u){u&&(p(e),p(b),p(h)),A(n),A(c),d&&d.d(u)}}}function Ul(s){let e;return{c(){e=q(s[4])},l(l){e=M(l,s[4])},m(l,t){w(l,e,t)},p(l,t){t[0]&16&&J(e,l[4])},d(l){l&&p(e)}}}function Wl(s){let e,l;return e=new ot({props:{intent:"warning",icon:"warning",class:"mx-12",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&16|r[1]&32&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Vl(s){let e,l,t,r;const n=[Rl,Bl,Fl],o=[];function f(a,i){return a[4]?0:a[0]?1:2}return e=f(s),l=o[e]=n[e](s),{c(){l.c(),t=V()},l(a){l.l(a),t=V()},m(a,i){o[e].m(a,i),w(a,t,i),r=!0},p(a,i){let c=e;e=f(a),e===c?o[e].p(a,i):(Q(),v(o[c],1,1,()=>{o[c]=null}),X(),l=o[e],l?l.p(a,i):(l=o[e]=n[e](a),l.c()),g(l,1),l.m(t.parentNode,t))},i(a){r||(g(l),r=!0)},o(a){v(l),r=!1},d(a){a&&p(t),o[e].d(a)}}}function et(s){let e,l;return e=new Tl({props:{onFetch:s[6],onError:s[14],total:s[11],"aria-label":y("common.schedules"),pageSizeSelectLabel:y("common.per-page"),nextButtonLabel:y("common.next"),previousButtonLabel:y("common.previous"),emptyStateMessage:y("schedules.empty-state-title"),errorMessage:y("schedules.error-message-fetching"),$$slots:{empty:[Vl],headers:[Cl],header:[Nl,({visibleItems:t})=>({31:t}),({visibleItems:t})=>[0,t?1:0]],caption:[Al],default:[zl,({visibleItems:t})=>({31:t}),({visibleItems:t})=>[0,t?1:0]]},$$scope:{ctx:s}}}),{c(){E(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,r){z(e,t,r),l=!0},p(t,r){const n={};r[0]&64&&(n.onFetch=t[6]),r[0]&2048&&(n.total=t[11]),r[0]&1943|r[1]&33&&(n.$$scope={dirty:r,ctx:t}),e.$set(n)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){A(e,t)}}}function Hl(s){let e=[s[1],s[0],s[2]],l,t,r,n,o=et(s);function f(i){s[26](i)}let a={availableColumns:s[5],table:It.SCHEDULES,type:y("schedules.schedule"),title:y("common.schedules")};return s[3]!==void 0&&(a.open=s[3]),t=new Pt({props:a}),rt.push(()=>st(t,"open",f)),{c(){o.c(),l=K(),E(t.$$.fragment)},l(i){o.l(i),l=O(i),T(t.$$.fragment,i)},m(i,c){o.m(i,c),w(i,l,c),z(t,i,c),n=!0},p(i,c){c[0]&7&&x(e,e=[i[1],i[0],i[2]])?(Q(),v(o,1,1,H),X(),o=et(i),o.c(),g(o,1),o.m(l.parentNode,l)):o.p(i,c);const m={};c[0]&32&&(m.availableColumns=i[5]),!r&&c[0]&8&&(r=!0,m.open=i[3],nt(()=>r=!1)),t.$set(m)},i(i){n||(g(o),g(t.$$.fragment,i),n=!0)},o(i){v(o),v(t.$$.fragment,i),n=!1},d(i){i&&p(l),o.d(i),A(t,i)}}}function jl(s,e,l){let t,r,n,o,f,a,i,c,m,b,h,S,d,u,_,k;W(s,Ft,P=>l(27,c=P)),W(s,ve,P=>l(10,m=P)),W(s,ie,P=>l(17,b=P)),W(s,Bt,P=>l(18,h=P)),W(s,Rt,P=>l(19,S=P)),W(s,gt,P=>l(20,d=P)),W(s,Dt,P=>l(22,_=P)),W(s,$e,P=>l(11,k=P));var I,R;let F=Date.now(),Y=Ct();W(s,Y,P=>l(21,u=P));let j=!1,U="";const ee=()=>{l(3,j=!0)};lt(()=>{f&&tt(ve,m=Mt(f,c),m)});const ce=P=>{var Z;l(4,U=((Z=P==null?void 0:P.body)===null||Z===void 0?void 0:Z.message)||y("schedules.error-message-fetching"))},se=()=>ht(Se({namespace:t})),ue=()=>{l(2,F=Date.now())};function ge(P){m=P,ve.set(m)}function $(P){j=P,l(3,j)}return s.$$.update=()=>{s.$$.dirty[0]&131072&&l(1,t=b.params.namespace),s.$$.dirty[0]&4292610&&l(9,r=l(16,R=l(15,I=_==null?void 0:_[t])===null||I===void 0?void 0:I.schedules)!==null&&R!==void 0?R:[]),s.$$.dirty[0]&2097154&&l(8,n=u.namespaceWriteDisabled(t)),s.$$.dirty[0]&1835008&&l(7,o=Object.entries({...(d||Kt("1.25.0",S))&&{ScheduleId:qt.KEYWORD},...h}).map(([P,Z])=>({label:P,value:P,type:Z}))),s.$$.dirty[0]&131072&&l(0,f=b.url.searchParams.get("query")),s.$$.dirty[0]&3&&l(6,a=()=>(l(4,U=""),bt(t,f,ce))),s.$$.dirty[0]&2&&l(5,i=yt(t))},[f,t,F,j,U,i,a,o,n,r,m,k,Y,ee,ce,I,R,b,h,S,d,u,_,se,ue,ge,$]}class Yl extends ae{constructor(e){super(),oe(this,e,jl,Hl,x,{},null,[-1,-1])}}function Jl(s){let e,l,t,r;return e=new ut({props:{title:`Schedules | ${s[0].params.namespace}`,url:s[0].url.href}}),t=new Yl({}),{c(){E(e.$$.fragment),l=K(),E(t.$$.fragment)},l(n){T(e.$$.fragment,n),l=O(n),T(t.$$.fragment,n)},m(n,o){z(e,n,o),w(n,l,o),z(t,n,o),r=!0},p(n,[o]){const f={};o&1&&(f.title=`Schedules | ${n[0].params.namespace}`),o&1&&(f.url=n[0].url.href),e.$set(f)},i(n){r||(g(e.$$.fragment,n),g(t.$$.fragment,n),r=!0)},o(n){v(e.$$.fragment,n),v(t.$$.fragment,n),r=!1},d(n){n&&p(l),A(e,n),A(t,n)}}}function Gl(s,e,l){let t;return W(s,ie,r=>l(0,t=r)),[t]}class Er extends ae{constructor(e){super(),oe(this,e,Gl,Jl,x,{})}}export{Er as component}; diff --git a/ui/assets/local/_app/immutable/nodes/24.CHw1Q09s.js b/ui/assets/local/_app/immutable/nodes/24.k7h2mvTa.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/24.CHw1Q09s.js rename to ui/assets/local/_app/immutable/nodes/24.k7h2mvTa.js index 56739d584..56fca69dd 100644 --- a/ui/assets/local/_app/immutable/nodes/24.CHw1Q09s.js +++ b/ui/assets/local/_app/immutable/nodes/24.k7h2mvTa.js @@ -1,3 +1,3 @@ -import{s as He,h as E,t as q,b as P,j as I,k as T,l as B,f,d as C,m as D,i as S,n as m,q as te,v as Q,a as xn,H as un,u as es,g as ts,e as ls,z as at,A as It,E as cn,D as fn,x as re,y as it,c as Ie,w as et,N as Ce,O as Re}from"../chunks/scheduler.C46pS-76.js";import{S as Le,i as Me,c as L,a as M,m as W,t as v,b as w,d as U,g as Se,e as Ae,f as Ne}from"../chunks/index.dOVbn71B.js";import{p as zn}from"../chunks/stores.Dz-RNcUk.js";import{P as ns}from"../chunks/page-title.DNhqE1Lj.js";import{h as gt,u as Fn}from"../chunks/await_block.BfN27BCg.js";import{e as Ve,u as ss,o as rs}from"../chunks/each.C6O0oV7R.js";import{w as os,g as as}from"../chunks/entry.DLEzeuD9.js";import{A as On}from"../chunks/accordion.DEmefb3Z.js";import{t as h}from"../chunks/translate.BBe5dcco.js";import{S as is}from"../chunks/schedule-frequency.SW9tPKxx.js";import{p as ot,s as vt}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{g as us}from"../chunks/spread.CgU5AtxT.js";import{B as cs}from"../chunks/badge.jG5hkqHT.js";import{C as Dt}from"../chunks/code-block.BkCXXL0z.js";import{P as jn}from"../chunks/payload-decoder.DlOPrRzg.js";import{E as Qn}from"../chunks/empty-state.BO9uOKUe.js";import{L as ut}from"../chunks/link.BJceiGbc.js";import{x as mn,y as fs,w as ms,r as dn,m as ds}from"../chunks/workflows.BzgE0E1S.js";import{t as St,r as At,f as Be,g as pn}from"../chunks/time-format.D2wF3ave.js";import{d as Tt}from"../chunks/encode-uri.BOkQ1rrX.js";import{z as hn,b as _n,l as bt,A as ps}from"../chunks/route-for.BjP6gGR7.js";import{W as Gn}from"../chunks/workflow-status.4hwv3weu.js";import{d as hs}from"../chunks/decode-payload.BTpeWKqJ.js";import{p as $n,s as Xe,o as _s}from"../chunks/format-time.6TuExJAg.js";import{W as $s}from"../chunks/workflow-counts.Bgc8s1JU.js";import{B as Jn}from"../chunks/button.BpRIS9ld.js";import{D as gn,T as vn}from"../chunks/time-picker.BvbblB8x.js";import{I as gs}from"../chunks/icon.CfkHLDdJ.js";import{I as vs}from"../chunks/input.CTzUOpgs.js";import{L as Kn}from"../chunks/loading.BLsNkl8r.js";import{d as ht}from"../chunks/menu.FCESMtRU.js";import{M as _t}from"../chunks/modal.DyMhWY1J.js";import{R as Xn,a as Yn}from"../chunks/radio-input.yEAROJgW.js";import{S as bs}from"../chunks/split-button.CWfYBMpf.js";import{b as ks,T as ws}from"../chunks/translate.ncUacGRD.js";import{l as $t,f as rt,d as Es,u as Is,p as Ts,t as Ds,g as Ss}from"../chunks/schedules.DZMegXhn.js";import{c as As}from"../chunks/core-user.BxGCJ_SI.js";function Ps(s){let e,l,t=h("common.notes")+"",n,o,r,i;return{c(){e=E("div"),l=E("h2"),n=q(t),o=P(),r=E("p"),i=q(s[0]),this.h()},l(a){e=I(a,"DIV",{});var u=T(e);l=I(u,"H2",{class:!0});var c=T(l);n=B(c,t),c.forEach(f),o=C(u),r=I(u,"P",{});var d=T(r);i=B(d,s[0]),d.forEach(f),u.forEach(f),this.h()},h(){D(l,"class","mb-4")},m(a,u){S(a,e,u),m(e,l),m(l,n),m(e,o),m(e,r),m(r,i)},p(a,[u]){u&1&&te(i,a[0])},i:Q,o:Q,d(a){a&&f(e)}}}function Cs(s,e,l){let{notes:t=""}=e;return s.$$set=n=>{"notes"in n&&l(0,t=n.notes)},[t]}class Rs extends Le{constructor(e){super(),Me(this,e,Cs,Ps,He,{notes:0})}}function bn(s){var a;let e,l=h("schedules.remaining-actions")+"",t,n,o,r=(((a=s[1])==null?void 0:a.remainingActions)??h("common.none"))+"",i;return{c(){e=E("li"),t=q(l),n=P(),o=E("span"),i=q(r),this.h()},l(u){e=I(u,"LI",{class:!0});var c=T(e);t=B(c,l),n=C(c),o=I(c,"SPAN",{class:!0});var d=T(o);i=B(d,r),d.forEach(f),c.forEach(f),this.h()},h(){D(o,"class","svelte-s42yf"),D(e,"class","svelte-s42yf")},m(u,c){S(u,e,c),m(e,t),m(e,n),m(e,o),m(o,i)},p(u,c){var d;c&2&&r!==(r=(((d=u[1])==null?void 0:d.remainingActions)??h("common.none"))+"")&&te(i,r)},d(u){u&&f(e)}}}function Ns(s){var $e,ge,x,We,ye,ve,Qe;let e,l,t=h("schedules.start-time")+"",n,o,r,i=((($e=s[0])==null?void 0:$e.startTime)??h("common.none"))+"",a,u,c,d=h("schedules.end-time")+"",k,$,b,_=(((ge=s[0])==null?void 0:ge.endTime)??h("common.none"))+"",p,g,R,Y=h("schedules.jitter")+"",J,ce,G,ae=(((x=s[0])==null?void 0:x.jitter)??h("common.none"))+"",K,ie,fe,le=h("schedules.exclusion-calendar")+"",Z,me,he,de=(((ye=(We=s[0])==null?void 0:We.excludeCalendar)==null?void 0:ye[0])??h("common.none"))+"",ke,pe,_e,ee,we=h("schedules.overlap-policy")+"",ue,ne,z,N=(((ve=s[2])==null?void 0:ve.overlapPolicy)??h("common.none"))+"",O,y=((Qe=s[1])==null?void 0:Qe.limitedActions)&&bn(s);return{c(){e=E("ul"),l=E("li"),n=q(t),o=P(),r=E("span"),a=q(i),u=P(),c=E("li"),k=q(d),$=P(),b=E("span"),p=q(_),g=P(),R=E("li"),J=q(Y),ce=P(),G=E("span"),K=q(ae),ie=P(),fe=E("li"),Z=q(le),me=P(),he=E("span"),ke=q(de),pe=P(),y&&y.c(),_e=P(),ee=E("li"),ue=q(we),ne=P(),z=E("span"),O=q(N),this.h()},l(oe){e=I(oe,"UL",{class:!0});var F=T(e);l=I(F,"LI",{class:!0});var Te=T(l);n=B(Te,t),o=C(Te),r=I(Te,"SPAN",{class:!0});var Ue=T(r);a=B(Ue,i),Ue.forEach(f),Te.forEach(f),u=C(F),c=I(F,"LI",{class:!0});var be=T(c);k=B(be,d),$=C(be),b=I(be,"SPAN",{class:!0});var se=T(b);p=B(se,_),se.forEach(f),be.forEach(f),g=C(F),R=I(F,"LI",{class:!0});var j=T(R);J=B(j,Y),ce=C(j),G=I(j,"SPAN",{class:!0});var X=T(G);K=B(X,ae),X.forEach(f),j.forEach(f),ie=C(F),fe=I(F,"LI",{class:!0});var qe=T(fe);Z=B(qe,le),me=C(qe),he=I(qe,"SPAN",{class:!0});var Ye=T(he);ke=B(Ye,de),Ye.forEach(f),qe.forEach(f),pe=C(F),y&&y.l(F),_e=C(F),ee=I(F,"LI",{class:!0});var ze=T(ee);ue=B(ze,we),ne=C(ze),z=I(ze,"SPAN",{class:!0});var Ze=T(z);O=B(Ze,N),Ze.forEach(f),ze.forEach(f),F.forEach(f),this.h()},h(){D(r,"class","svelte-s42yf"),D(l,"class","svelte-s42yf"),D(b,"class","svelte-s42yf"),D(c,"class","svelte-s42yf"),D(G,"class","svelte-s42yf"),D(R,"class","svelte-s42yf"),D(he,"class","svelte-s42yf"),D(fe,"class","svelte-s42yf"),D(z,"class","svelte-s42yf"),D(ee,"class","svelte-s42yf"),D(e,"class","settings-list svelte-s42yf")},m(oe,F){S(oe,e,F),m(e,l),m(l,n),m(l,o),m(l,r),m(r,a),m(e,u),m(e,c),m(c,k),m(c,$),m(c,b),m(b,p),m(e,g),m(e,R),m(R,J),m(R,ce),m(R,G),m(G,K),m(e,ie),m(e,fe),m(fe,Z),m(fe,me),m(fe,he),m(he,ke),m(e,pe),y&&y.m(e,null),m(e,_e),m(e,ee),m(ee,ue),m(ee,ne),m(ee,z),m(z,O)},p(oe,F){var Te,Ue,be,se,j,X,qe;F&1&&i!==(i=(((Te=oe[0])==null?void 0:Te.startTime)??h("common.none"))+"")&&te(a,i),F&1&&_!==(_=(((Ue=oe[0])==null?void 0:Ue.endTime)??h("common.none"))+"")&&te(p,_),F&1&&ae!==(ae=(((be=oe[0])==null?void 0:be.jitter)??h("common.none"))+"")&&te(K,ae),F&1&&de!==(de=(((j=(se=oe[0])==null?void 0:se.excludeCalendar)==null?void 0:j[0])??h("common.none"))+"")&&te(ke,de),(X=oe[1])!=null&&X.limitedActions?y?y.p(oe,F):(y=bn(oe),y.c(),y.m(e,_e)):y&&(y.d(1),y=null),F&4&&N!==(N=(((qe=oe[2])==null?void 0:qe.overlapPolicy)??h("common.none"))+"")&&te(O,N)},d(oe){oe&&f(e),y&&y.d()}}}function Vs(s){let e,l,t,n;return e=new Rs({props:{notes:s[3]}}),t=new On({props:{title:h("schedules.advanced-settings"),$$slots:{default:[Ns]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment),l=P(),L(t.$$.fragment)},l(o){M(e.$$.fragment,o),l=C(o),M(t.$$.fragment,o)},m(o,r){W(e,o,r),S(o,l,r),W(t,o,r),n=!0},p(o,[r]){const i={};r&8&&(i.notes=o[3]),e.$set(i);const a={};r&23&&(a.$$scope={dirty:r,ctx:o}),t.$set(a)},i(o){n||(v(e.$$.fragment,o),v(t.$$.fragment,o),n=!0)},o(o){w(e.$$.fragment,o),w(t.$$.fragment,o),n=!1},d(o){o&&f(l),U(e,o),U(t,o)}}}function Hs(s,e,l){let{spec:t}=e,{state:n}=e,{policies:o}=e,{notes:r=""}=e;return s.$$set=i=>{"spec"in i&&l(0,t=i.spec),"state"in i&&l(1,n=i.state),"policies"in i&&l(2,o=i.policies),"notes"in i&&l(3,r=i.notes)},[t,n,o,r]}class Ls extends Le{constructor(e){super(),Me(this,e,Hs,Vs,He,{spec:0,state:1,policies:2,notes:3})}}function Ms(s){let e,l,t;const n=s[3].default,o=xn(n,s,s[2],null);return{c(){e=E("div"),o&&o.c(),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);o&&o.l(i),i.forEach(f),this.h()},h(){D(e,"class",l="panel surface-primary "+s[1].class+" svelte-1lw5h6q"),un(e,"error",s[0])},m(r,i){S(r,e,i),o&&o.m(e,null),t=!0},p(r,[i]){o&&o.p&&(!t||i&4)&&es(o,n,r,r[2],t?ls(n,r[2],i,null):ts(r[2]),null),(!t||i&2&&l!==(l="panel surface-primary "+r[1].class+" svelte-1lw5h6q"))&&D(e,"class",l),(!t||i&3)&&un(e,"error",r[0])},i(r){t||(v(o,r),t=!0)},o(r){w(o,r),t=!1},d(r){r&&f(e),o&&o.d(r)}}}function Ws(s,e,l){let{$$slots:t={},$$scope:n}=e,{error:o=!1}=e;return s.$$set=r=>{l(1,e=at(at({},e),It(r))),"error"in r&&l(0,o=r.error),"$$scope"in r&&l(2,n=r.$$scope)},e=It(e),[o,e,n,t]}class ct extends Le{constructor(e){super(),Me(this,e,Ws,Ms,He,{error:0})}}function Us(s){let e,l=h("schedules.error-title")+"",t,n,o,r;return{c(){e=E("p"),t=q(l),n=P(),o=E("p"),r=q(s[0]),this.h()},l(i){e=I(i,"P",{class:!0});var a=T(e);t=B(a,l),a.forEach(f),n=C(i),o=I(i,"P",{class:!0});var u=T(o);r=B(u,s[0]),u.forEach(f),this.h()},h(){D(e,"class","error-text svelte-130heqv"),D(o,"class","error-text svelte-130heqv")},m(i,a){S(i,e,a),m(e,t),S(i,n,a),S(i,o,a),m(o,r)},p(i,a){a&1&&te(r,i[0])},d(i){i&&(f(e),f(n),f(o))}}}function qs(s){let e,l;return e=new ct({props:{error:!0,$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&3&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Bs(s,e,l){let{error:t=""}=e;return s.$$set=n=>{"error"in n&&l(0,t=n.error)},[t]}class Zn extends Le{constructor(e){super(),Me(this,e,Bs,qs,He,{error:0})}}function ys(s){let e,l=h("schedules.schedule-spec")+"",t,n,o,r,i;return r=new is({props:{calendar:s[0],interval:s[1],timezoneName:s[2],class:"text-base"}}),{c(){e=E("h2"),t=q(l),n=P(),o=E("div"),L(r.$$.fragment),this.h()},l(a){e=I(a,"H2",{class:!0});var u=T(e);t=B(u,l),u.forEach(f),n=C(a),o=I(a,"DIV",{class:!0});var c=T(o);M(r.$$.fragment,c),c.forEach(f),this.h()},h(){D(e,"class","mb-4"),D(o,"class","pr-2")},m(a,u){S(a,e,u),m(e,t),S(a,n,u),S(a,o,u),W(r,o,null),i=!0},p(a,u){const c={};u&1&&(c.calendar=a[0]),u&2&&(c.interval=a[1]),u&4&&(c.timezoneName=a[2]),r.$set(c)},i(a){i||(v(r.$$.fragment,a),i=!0)},o(a){w(r.$$.fragment,a),i=!1},d(a){a&&(f(e),f(n),f(o)),U(r)}}}function zs(s){let e,l;return e=new ct({props:{$$slots:{default:[ys]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&15&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Fs(s,e,l){let{calendar:t=void 0}=e,{interval:n=void 0}=e,{timezoneName:o="UTC"}=e;return s.$$set=r=>{"calendar"in r&&l(0,t=r.calendar),"interval"in r&&l(1,n=r.interval),"timezoneName"in r&&l(2,o=r.timezoneName)},[t,n,o]}class Os extends Le{constructor(e){super(),Me(this,e,Fs,zs,He,{calendar:0,interval:1,timezoneName:2})}}function kn(s,e,l){const t=s.slice();return t[12]=e[l],t}function wn(s){let e,l;return e=new cs({props:{type:"count",class:"rounded-sm",$$slots:{default:[js]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&32776&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function js(s){let e=s[3].length+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p(t,n){n&8&&e!==(e=t[3].length+"")&&te(l,e)},d(t){t&&f(l)}}}function Qs(s){let e,l;return e=new Dt({props:{content:s[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.content=t[2]?"Results will appear upon completion.":""),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Gs(s){let e,l,t,n;const o=[Ks,Js],r=[];function i(a,u){return a[6]?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,u){r[e].m(a,u),S(a,t,u),n=!0},p(a,u){let c=e;e=i(a),e===c?r[e].p(a,u):(Se(),w(r[c],1,1,()=>{r[c]=null}),Ae(),l=r[e],l?l.p(a,u):(l=r[e]=o[e](a),l.c()),v(l,1),l.m(t.parentNode,t))},i(a){n||(v(l),n=!0)},o(a){w(l),n=!1},d(a){a&&f(t),r[e].d(a)}}}function Js(s){let e,l;return e=new jn({props:{value:ot(s[0]),$$slots:{default:[Xs,({decodedValue:t})=>({11:t}),({decodedValue:t})=>t?2048:0]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.value=ot(t[0])),n&34816&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Ks(s){let e,l,t;return l=new jn({props:{value:s[4],key:"payloads",$$slots:{default:[Ys,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:s}}}),{c(){e=E("div"),L(l.$$.fragment),this.h()},l(n){e=I(n,"DIV",{class:!0});var o=T(e);M(l.$$.fragment,o),o.forEach(f),this.h()},h(){D(e,"class","max-h-96 overflow-auto p-1")},m(n,o){S(n,e,o),W(l,e,null),t=!0},p(n,o){const r={};o&16&&(r.value=n[4]),o&34816&&(r.$$scope={dirty:o,ctx:n}),l.$set(r)},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&f(e),U(l)}}}function Xs(s){let e,l;return e=new Dt({props:{content:s[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:h("common.copy-icon-title"),copySuccessIconTitle:h("common.copy-success-icon-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&2048&&(o.content=t[11]),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function En(s){let e,l;return e=new Dt({props:{content:vt(s[12]),class:"mb-2",copyIconTitle:h("common.copy-icon-title"),copySuccessIconTitle:h("common.copy-success-icon-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&2048&&(o.content=vt(t[12])),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Ys(s){let e,l,t=Ve(s[7](s[11])),n=[];for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r{u=null}),Ae());let g=r;r=k(_),r===g?d[r].p(_,p):(Se(),w(d[g],1,1,()=>{d[g]=null}),Ae(),i=d[r],i?i.p(_,p):(i=d[r]=c[r](_),i.c()),v(i,1),i.m(e,null)),cn(e,b=us($,[{class:"flex w-full flex-col"},p&256&&_[8]]))},i(_){a||(v(u),v(i),a=!0)},o(_){w(u),w(i),a=!1},d(_){_&&f(e),u&&u.d(),d[r].d()}}}function xs(s,e,l){let t,n,o,r;const i=["content","title","running"];let a=fn(e,i),{content:u}=e,{title:c}=e,{running:d=!1}=e;const k=_=>{try{return ot(_)}catch{return}},$=_=>{try{const p=ot(_);return Array.isArray(p)?ot(_):[]}catch{return[]}},b=_=>{try{const p=_==null?void 0:_.payloads;return Array.isArray(p)?p:[]}catch{return[]}};return s.$$set=_=>{e=at(at({},e),It(_)),l(8,a=fn(e,i)),"content"in _&&l(0,u=_.content),"title"in _&&l(1,c=_.title),"running"in _&&l(2,d=_.running)},s.$$.update=()=>{s.$$.dirty&1&&l(4,t=k(u)),s.$$.dirty&16&&l(3,n=b(t)),s.$$.dirty&8&&l(6,o=n.length>0),s.$$.dirty&8&&l(5,r=n.length>1)},[u,c,d,n,t,r,o,$,a]}class er extends Le{constructor(e){super(),Me(this,e,xs,Zs,He,{content:0,title:1,running:2})}}function tr(s){let e,l;return e=new er({props:{title:h("schedules.schedule-input"),content:vt(s[0])}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.content=vt(t[0])),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function lr(s){let e,l;return e=new ct({props:{$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&3&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function nr(s,e,l){let{input:t}=e;return s.$$set=n=>{"input"in n&&l(0,t=n.input)},[t]}class sr extends Le{constructor(e){super(),Me(this,e,nr,lr,He,{input:0})}}function In(s,e,l){const t=s.slice();return t[6]=e[l],t}function rr(s){let e=h("common.view-all-runs")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function or(s){let e,l,t,n,o=s[6].startWorkflowResult.workflowId+"",r,i,a,u,c=Be(s[6].actualTime,s[3],{relative:s[4]})+"",d;return{c(){e=E("div"),l=E("div"),t=P(),n=E("div"),r=q(o),i=P(),a=E("div"),u=E("p"),d=q(c),this.h()},l(k){e=I(k,"DIV",{class:!0});var $=T(e);l=I($,"DIV",{class:!0}),T(l).forEach(f),t=C($),n=I($,"DIV",{class:!0});var b=T(n);r=B(b,o),b.forEach(f),i=C($),a=I($,"DIV",{class:!0});var _=T(a);u=I(_,"P",{});var p=T(u);d=B(p,c),p.forEach(f),_.forEach(f),$.forEach(f),this.h()},h(){D(l,"class","w-28"),D(n,"class","w-96"),D(a,"class","ml-auto"),D(e,"class","row svelte-1qym6rq")},m(k,$){S(k,e,$),m(e,l),m(e,t),m(e,n),m(n,r),m(e,i),m(e,a),m(a,u),m(u,d)},p(k,$){$&1&&o!==(o=k[6].startWorkflowResult.workflowId+"")&&te(r,o),$&25&&c!==(c=Be(k[6].actualTime,k[3],{relative:k[4]})+"")&&te(d,c)},i:Q,o:Q,d(k){k&&f(e)}}}function ar(s){let e,l,t,n,o,r,i,a,u,c=Be(s[6].actualTime,s[3],{relative:s[4]})+"",d,k;return t=new Gn({props:{status:s[9].status}}),r=new ut({props:{href:_n({workflow:s[6].startWorkflowResult.workflowId,run:s[6].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[ir]},$$scope:{ctx:s}}}),{c(){e=E("div"),l=E("div"),L(t.$$.fragment),n=P(),o=E("div"),L(r.$$.fragment),i=P(),a=E("div"),u=E("p"),d=q(c),this.h()},l($){e=I($,"DIV",{class:!0});var b=T(e);l=I(b,"DIV",{class:!0});var _=T(l);M(t.$$.fragment,_),_.forEach(f),n=C(b),o=I(b,"DIV",{class:!0});var p=T(o);M(r.$$.fragment,p),p.forEach(f),i=C(b),a=I(b,"DIV",{class:!0});var g=T(a);u=I(g,"P",{});var R=T(u);d=B(R,c),R.forEach(f),g.forEach(f),b.forEach(f),this.h()},h(){D(l,"class","w-28"),D(o,"class","mx-2 w-auto break-words"),D(a,"class","ml-auto"),D(e,"class","row svelte-1qym6rq")},m($,b){S($,e,b),m(e,l),W(t,l,null),m(e,n),m(e,o),W(r,o,null),m(e,i),m(e,a),m(a,u),m(u,d),k=!0},p($,b){const _={};b&3&&(_.status=$[9].status),t.$set(_);const p={};b&3&&(p.href=_n({workflow:$[6].startWorkflowResult.workflowId,run:$[6].startWorkflowResult.runId,namespace:$[1]})),b&1025&&(p.$$scope={dirty:b,ctx:$}),r.$set(p),(!k||b&25)&&c!==(c=Be($[6].actualTime,$[3],{relative:$[4]})+"")&&te(d,c)},i($){k||(v(t.$$.fragment,$),v(r.$$.fragment,$),k=!0)},o($){w(t.$$.fragment,$),w(r.$$.fragment,$),k=!1},d($){$&&f(e),U(t),U(r)}}}function ir(s){let e=s[6].startWorkflowResult.workflowId+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p(t,n){n&1&&e!==(e=t[6].startWorkflowResult.workflowId+"")&&te(l,e)},d(t){t&&f(l)}}}function ur(s){return{c:Q,l:Q,m:Q,p:Q,i:Q,o:Q,d:Q}}function Tn(s,e){let l,t,n,o,r={ctx:e,current:null,token:null,hasCatch:!0,pending:ur,then:ar,catch:or,value:9,blocks:[,,,]};return gt(n=mn({namespace:e[1],workflowId:Tt(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch),r),{key:s,first:null,c(){l=re(),t=re(),r.block.c(),this.h()},l(i){l=re(),t=re(),r.block.l(i),this.h()},h(){this.first=l},m(i,a){S(i,l,a),S(i,t,a),r.block.m(i,r.anchor=a),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(i,a){e=i,r.ctx=e,a&3&&n!==(n=mn({namespace:e[1],workflowId:Tt(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch))&>(n,r)||Fn(r,e,a)},i(i){o||(v(r.block),o=!0)},o(i){for(let a=0;a<3;a+=1){const u=r.blocks[a];w(u)}o=!1},d(i){i&&(f(l),f(t)),r.block.d(i),r.token=null,r=null}}}function Dn(s){let e,l;return e=new Qn({props:{title:h("schedules.recent-runs-empty-state-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function cr(s){let e,l,t=h("schedules.recent-runs")+"",n,o,r,i,a=[],u=new Map,c,d,k;r=new ut({props:{href:hn({namespace:s[1],query:s[2]}),$$slots:{default:[rr]},$$scope:{ctx:s}}});let $=Ve(s[5](s[0]));const b=p=>{var g,R;return(R=(g=p[6])==null?void 0:g.startWorkflowResult)==null?void 0:R.workflowId};for(let p=0;p<$.length;p+=1){let g=In(s,$,p),R=b(g);u.set(R,a[p]=Tn(R,g))}let _=!s[0].length&&Dn();return{c(){e=E("div"),l=E("h2"),n=q(t),o=P(),L(r.$$.fragment),i=P();for(let p=0;p{_=null}),Ae()):_?(_.p(p,g),g&1&&v(_,1)):(_=Dn(),_.c(),v(_,1),_.m(d.parentNode,d))},i(p){if(!k){v(r.$$.fragment,p);for(let g=0;g<$.length;g+=1)v(a[g]);v(_),k=!0}},o(p){w(r.$$.fragment,p);for(let g=0;gl(3,t=u)),Ie(s,At,u=>l(4,n=u));let{recentRuns:o=[]}=e,{namespace:r}=e,{workflowQuery:i}=e;const a=u=>{var c,d;return(d=(c=u==null?void 0:u.sort((k,$)=>new Date($.actualTime).getTime()-new Date(k.actualTime).getTime()))===null||c===void 0?void 0:c.slice(0,5))!==null&&d!==void 0?d:[]};return s.$$set=u=>{"recentRuns"in u&&l(0,o=u.recentRuns),"namespace"in u&&l(1,r=u.namespace),"workflowQuery"in u&&l(2,i=u.workflowQuery)},[o,r,i,t,n,a]}class dr extends Le{constructor(e){super(),Me(this,e,mr,fr,He,{recentRuns:0,namespace:1,workflowQuery:2})}}function Sn(s,e,l){const t=s.slice();return t[5]=e[l][0],t[6]=e[l][1],t}function An(s){let e,l=Ve(Object.entries(s[0])),t=[];for(let n=0;n0,$$slots:{default:[pr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&2&&(o.subtitle=`${t[1]} ${h("events.custom-search")} ${$n(h("events.attribute"),t[1])}`),n&2&&(o.expandable=t[1]>0),n&515&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function _r(s,e,l){let t,n,o;var r;let{searchAttributes:i}=e;return s.$$set=a=>{"searchAttributes"in a&&l(2,i=a.searchAttributes)},s.$$.update=()=>{s.$$.dirty&4&&l(4,t=hs({searchAttributes:i})),s.$$.dirty&24&&l(0,n=l(3,r=t==null?void 0:t.searchAttributes.indexedFields)!==null&&r!==void 0?r:{}),s.$$.dirty&1&&l(1,o=Object.keys(n).length)},[n,o,i,r,t]}class $r extends Le{constructor(e){super(),Me(this,e,_r,hr,He,{searchAttributes:2})}}function Cn(s,e,l){const t=s.slice();return t[3]=e[l],t}function Rn(s){let e,l;return e=new Qn({props:{title:h("schedules.upcoming-runs-empty-state-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Nn(s){let e,l,t=Be(s[3],s[1],{relative:s[2],relativeLabel:h("common.from-now")})+"",n,o;return{c(){e=E("div"),l=E("p"),n=q(t),o=P(),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);l=I(i,"P",{});var a=T(l);n=B(a,t),a.forEach(f),o=C(i),i.forEach(f),this.h()},h(){D(e,"class","row svelte-9sf42k")},m(r,i){S(r,e,i),m(e,l),m(l,n),m(e,o)},p(r,i){i&7&&t!==(t=Be(r[3],r[1],{relative:r[2],relativeLabel:h("common.from-now")})+"")&&te(n,t)},d(r){r&&f(e)}}}function gr(s){let e,l=h("schedules.upcoming-runs")+"",t,n,o,r=Ve(s[0].slice(0,5)),i=[];for(let u=0;u{a=null}),Ae()):(a=Rn(),a.c(),v(a,1),a.m(o.parentNode,o))}},i:Q,o:Q,d(u){u&&(f(e),f(n),f(o)),it(i,u),a&&a.d(u)}}}function vr(s){let e,l;return e=new ct({props:{class:"w-full",$$slots:{default:[gr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&71&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function br(s,e,l){let t,n;Ie(s,St,r=>l(1,t=r)),Ie(s,At,r=>l(2,n=r));let{futureRuns:o=[]}=e;return s.$$set=r=>{"futureRuns"in r&&l(0,o=r.futureRuns)},[o,t,n]}class kr extends Le{constructor(e){super(),Me(this,e,br,vr,He,{futureRuns:0})}}function Vn(s,e,l){const t=s.slice();return t[66]=e[l],t}function Hn(s,e,l){const t=s.slice();return t[66]=e[l],t}function wr(s){var $;let e,l,t,n,o,r,i,a,u,c,d,k;return t=new ut({props:{href:bt({namespace:s[24]}),icon:"chevron-left",$$slots:{default:[Er]},$$scope:{ctx:s}}}),d=new Zn({props:{error:($=s[23])==null?void 0:$.message}}),{c(){e=E("header"),l=E("div"),L(t.$$.fragment),n=P(),o=E("h1"),r=q(s[25]),i=P(),a=E("p"),u=q(s[24]),c=P(),L(d.$$.fragment),this.h()},l(b){e=I(b,"HEADER",{class:!0});var _=T(e);l=I(_,"DIV",{class:!0});var p=T(l);M(t.$$.fragment,p),n=C(p),o=I(p,"H1",{class:!0,"data-testid":!0});var g=T(o);r=B(g,s[25]),g.forEach(f),i=C(p),a=I(p,"P",{class:!0});var R=T(a);u=B(R,s[24]),R.forEach(f),p.forEach(f),_.forEach(f),c=C(b),M(d.$$.fragment,b),this.h()},h(){D(o,"class","mt-8 select-all"),D(o,"data-testid","schedule-name"),D(a,"class","text-sm"),D(l,"class","relative flex flex-col gap-1"),D(e,"class","mb-8")},m(b,_){S(b,e,_),m(e,l),W(t,l,null),m(l,n),m(l,o),m(o,r),m(l,i),m(l,a),m(a,u),S(b,c,_),W(d,b,_),k=!0},p(b,_){var R;const p={};_[2]&512&&(p.$$scope={dirty:_,ctx:b}),t.$set(p);const g={};_[0]&2&&(g.error=(R=b[23])==null?void 0:R.message),d.$set(g)},i(b){k||(v(t.$$.fragment,b),v(d.$$.fragment,b),k=!0)},o(b){w(t.$$.fragment,b),w(d.$$.fragment,b),k=!1},d(b){b&&(f(e),f(c)),U(t),U(d,b)}}}function Er(s){let e=h("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Ir(s){let e,l,t,n;const o=[Dr,Tr],r=[];function i(a,u){return a[17]?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,u){r[e].m(a,u),S(a,t,u),n=!0},p(a,u){let c=e;e=i(a),e===c?r[e].p(a,u):(Se(),w(r[c],1,1,()=>{r[c]=null}),Ae(),l=r[e],l?l.p(a,u):(l=r[e]=o[e](a),l.c()),v(l,1),l.m(t.parentNode,t))},i(a){n||(v(l),n=!0)},o(a){w(l),n=!1},d(a){a&&f(t),r[e].d(a)}}}function Tr(s){var V,Pe,xe,Pt,Ct,Rt,Nt,Vt,Ht,Lt,Mt,Wt,Ut,qt,Bt,yt,zt,Ft,Ot,jt,Qt,Gt,Jt,Kt,Xt,Yt,Zt,xt,el,tl,ll,nl,sl,rl,ol,al,il,ul,cl,fl,ml,dl,pl,hl,_l;let e,l,t,n,o,r,i,a,u,c,d,k,$=((Ct=(Pt=(xe=(Pe=(V=s[65])==null?void 0:V.schedule)==null?void 0:Pe.action)==null?void 0:xe.startWorkflow)==null?void 0:Pt.workflowType)==null?void 0:Ct.name)+"",b,_,p,g,R=h("common.created",{created:Be((Nt=(Rt=s[65])==null?void 0:Rt.info)==null?void 0:Nt.createTime,s[18],{relative:s[19]})})+"",Y,J,ce,G,ae,K,ie,fe,le,Z,me,he,de,ke,pe,_e,ee,we,ue,ne,z,N,O,y,$e,ge,x,We,ye,ve,Qe,oe,F,Te,Ue,be;t=new ut({props:{href:bt({namespace:s[24]}),icon:"chevron-left",$$slots:{default:[Sr]},$$scope:{ctx:s}}}),c=new Gn({props:{status:(Vt=s[65])!=null&&Vt.schedule.state.paused?"Paused":"Running"}});let se=((Lt=(Ht=s[65])==null?void 0:Ht.info)==null?void 0:Lt.updateTime)&&Ln(s);G=new bs({props:{position:"right",label:(Ut=(Wt=(Mt=s[65])==null?void 0:Mt.schedule)==null?void 0:Wt.state)!=null&&Ut.paused?h("schedules.unpause"):h("schedules.pause"),menuLabel:h("schedules.schedule-actions"),id:"schedule-actions",disabled:s[16],$$slots:{default:[Nr]},$$scope:{ctx:s}}}),G.$on("click",s[44]);let j=((Bt=(qt=s[65])==null?void 0:qt.info)==null?void 0:Bt.invalidScheduleError)&&Mn(s),X=s[20]&&Wn(s);me=new dr({props:{namespace:s[24],recentRuns:(zt=(yt=s[65])==null?void 0:yt.info)==null?void 0:zt.recentActions,workflowQuery:s[26]}}),de=new kr({props:{futureRuns:(Ot=(Ft=s[65])==null?void 0:Ft.info)==null?void 0:Ot.futureActionTimes}}),pe=new Ls({props:{spec:(Qt=(jt=s[65])==null?void 0:jt.schedule)==null?void 0:Qt.spec,state:(Jt=(Gt=s[65])==null?void 0:Gt.schedule)==null?void 0:Jt.state,policies:(Xt=(Kt=s[65])==null?void 0:Kt.schedule)==null?void 0:Xt.policies,notes:(xt=(Zt=(Yt=s[65])==null?void 0:Yt.schedule)==null?void 0:Zt.state)==null?void 0:xt.notes}}),ee=new $r({props:{searchAttributes:((el=s[65])==null?void 0:el.searchAttributes)??{}}}),ne=new sr({props:{input:(sl=(nl=(ll=(tl=s[65])==null?void 0:tl.schedule)==null?void 0:ll.action)==null?void 0:nl.startWorkflow)==null?void 0:sl.input}}),N=new Os({props:{calendar:(il=(al=(ol=(rl=s[65])==null?void 0:rl.schedule)==null?void 0:ol.spec)==null?void 0:al.structuredCalendar)==null?void 0:il[0],interval:(ml=(fl=(cl=(ul=s[65])==null?void 0:ul.schedule)==null?void 0:cl.spec)==null?void 0:fl.interval)==null?void 0:ml[0],timezoneName:(hl=(pl=(dl=s[65])==null?void 0:dl.schedule)==null?void 0:pl.spec)==null?void 0:hl.timezoneName}});function qe(A){s[47](A)}function Ye(){return s[48](s[65])}let ze={id:"pause-schedule-modal",confirmType:"primary",confirmText:(_l=s[65])!=null&&_l.schedule.state.paused?h("schedules.unpause"):h("schedules.pause"),cancelText:h("common.cancel"),confirmDisabled:!s[5],$$slots:{content:[Lr],title:[Hr]},$$scope:{ctx:s}};s[2]!==void 0&&(ze.open=s[2]),y=new _t({props:ze}),Ce.push(()=>Ne(y,"open",qe)),y.$on("confirmModal",Ye),y.$on("cancelModal",s[39]);function Ze(A){s[49](A)}let ft={id:"trigger-schedule-modal",large:!0,confirmType:"primary",confirmText:h("schedules.trigger"),cancelText:h("common.cancel"),loading:s[6],$$slots:{content:[Ur],title:[Mr]},$$scope:{ctx:s}};s[3]!==void 0&&(ft.open=s[3]),x=new _t({props:ft}),Ce.push(()=>Ne(x,"open",Ze)),x.$on("confirmModal",s[50]),x.$on("cancelModal",s[33]);function kt(A){s[58](A)}let mt={id:"backfill-schedule-modal",large:!0,confirmType:"primary",confirmText:h("schedules.schedule"),cancelText:h("common.cancel"),loading:s[6],$$slots:{content:[zr],title:[qr]},$$scope:{ctx:s}};s[0]!==void 0&&(mt.open=s[0]),ve=new _t({props:mt}),Ce.push(()=>Ne(ve,"open",kt)),ve.$on("confirmModal",s[59]),ve.$on("cancelModal",s[37]);function wt(A){s[60](A)}function Et(A){s[61](A)}let tt={id:"delete-schedule-modal",confirmType:"destructive",confirmText:h("common.delete"),cancelText:h("common.cancel"),$$slots:{content:[Or],title:[Fr]},$$scope:{ctx:s}};return s[4]!==void 0&&(tt.open=s[4]),s[23]!==void 0&&(tt.error=s[23]),F=new _t({props:tt}),Ce.push(()=>Ne(F,"open",wt)),Ce.push(()=>Ne(F,"error",Et)),F.$on("confirmModal",s[31]),F.$on("cancelModal",s[39]),{c(){e=E("header"),l=E("div"),L(t.$$.fragment),n=P(),o=E("h1"),r=E("span"),i=q(s[25]),a=P(),u=E("div"),L(c.$$.fragment),d=P(),k=E("p"),b=q($),_=P(),p=E("div"),g=E("p"),Y=q(R),J=P(),se&&se.c(),ce=P(),L(G.$$.fragment),ae=P(),K=E("div"),j&&j.c(),ie=P(),X&&X.c(),fe=P(),le=E("div"),Z=E("div"),L(me.$$.fragment),he=P(),L(de.$$.fragment),ke=P(),L(pe.$$.fragment),_e=P(),L(ee.$$.fragment),we=P(),ue=E("div"),L(ne.$$.fragment),z=P(),L(N.$$.fragment),O=P(),L(y.$$.fragment),ge=P(),L(x.$$.fragment),ye=P(),L(ve.$$.fragment),oe=P(),L(F.$$.fragment),this.h()},l(A){e=I(A,"HEADER",{class:!0});var H=T(e);l=I(H,"DIV",{class:!0});var De=T(l);M(t.$$.fragment,De),n=C(De),o=I(De,"H1",{class:!0});var lt=T(o);r=I(lt,"SPAN",{class:!0,"data-testid":!0});var Je=T(r);i=B(Je,s[25]),Je.forEach(f),lt.forEach(f),a=C(De),u=I(De,"DIV",{class:!0});var Ke=T(u);M(c.$$.fragment,Ke),d=C(Ke),k=I(Ke,"P",{});var nt=T(k);b=B(nt,$),nt.forEach(f),Ke.forEach(f),_=C(De),p=I(De,"DIV",{class:!0});var Ge=T(p);g=I(Ge,"P",{});var st=T(g);Y=B(st,R),st.forEach(f),Ge.forEach(f),J=C(De),se&&se.l(De),De.forEach(f),ce=C(H),M(G.$$.fragment,H),H.forEach(f),ae=C(A),K=I(A,"DIV",{class:!0});var Fe=T(K);j&&j.l(Fe),ie=C(Fe),X&&X.l(Fe),fe=C(Fe),le=I(Fe,"DIV",{class:!0});var Oe=T(le);Z=I(Oe,"DIV",{class:!0});var Ee=T(Z);M(me.$$.fragment,Ee),he=C(Ee),M(de.$$.fragment,Ee),ke=C(Ee),M(pe.$$.fragment,Ee),_e=C(Ee),M(ee.$$.fragment,Ee),Ee.forEach(f),we=C(Oe),ue=I(Oe,"DIV",{class:!0});var je=T(ue);M(ne.$$.fragment,je),z=C(je),M(N.$$.fragment,je),je.forEach(f),Oe.forEach(f),Fe.forEach(f),O=C(A),M(y.$$.fragment,A),ge=C(A),M(x.$$.fragment,A),ye=C(A),M(ve.$$.fragment,A),oe=C(A),M(F.$$.fragment,A),this.h()},h(){D(r,"class","select-all"),D(r,"data-testid","schedule-name"),D(o,"class","relative flex items-center"),D(u,"class","flex items-center gap-2 text-lg"),D(p,"class","flex items-center gap-2 text-sm"),D(l,"class","relative flex flex-col gap-4"),D(e,"class","mb-8 flex flex-row justify-between gap-4"),D(Z,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),D(ue,"class","flex w-full flex-col gap-4 xl:w-1/3"),D(le,"class","flex flex-col gap-4 xl:flex-row"),D(K,"class","flex flex-col gap-4 pb-24")},m(A,H){S(A,e,H),m(e,l),W(t,l,null),m(l,n),m(l,o),m(o,r),m(r,i),m(l,a),m(l,u),W(c,u,null),m(u,d),m(u,k),m(k,b),m(l,_),m(l,p),m(p,g),m(g,Y),m(l,J),se&&se.m(l,null),m(e,ce),W(G,e,null),S(A,ae,H),S(A,K,H),j&&j.m(K,null),m(K,ie),X&&X.m(K,null),m(K,fe),m(K,le),m(le,Z),W(me,Z,null),m(Z,he),W(de,Z,null),m(Z,ke),W(pe,Z,null),m(Z,_e),W(ee,Z,null),m(le,we),m(le,ue),W(ne,ue,null),m(ue,z),W(N,ue,null),S(A,O,H),W(y,A,H),S(A,ge,H),W(x,A,H),S(A,ye,H),W(ve,A,H),S(A,oe,H),W(F,A,H),be=!0},p(A,H){var $l,gl,vl,bl,kl,wl,El,Il,Tl,Dl,Sl,Al,Pl,Cl,Rl,Nl,Vl,Hl,Ll,Ml,Wl,Ul,ql,Bl,yl,zl,Fl,Ol,jl,Ql,Gl,Jl,Kl,Xl,Yl,Zl,xl,en,tn,ln,nn,sn,rn,on,an;s=A;const De={};H[2]&512&&(De.$$scope={dirty:H,ctx:s}),t.$set(De);const lt={};H[0]&2&&(lt.status=($l=s[65])!=null&&$l.schedule.state.paused?"Paused":"Running"),c.$set(lt),(!be||H[0]&2)&&$!==($=((wl=(kl=(bl=(vl=(gl=s[65])==null?void 0:gl.schedule)==null?void 0:vl.action)==null?void 0:bl.startWorkflow)==null?void 0:kl.workflowType)==null?void 0:wl.name)+"")&&te(b,$),(!be||H[0]&786434)&&R!==(R=h("common.created",{created:Be((Il=(El=s[65])==null?void 0:El.info)==null?void 0:Il.createTime,s[18],{relative:s[19]})})+"")&&te(Y,R),(Dl=(Tl=s[65])==null?void 0:Tl.info)!=null&&Dl.updateTime?se?se.p(s,H):(se=Ln(s),se.c(),se.m(l,null)):se&&(se.d(1),se=null);const Je={};H[0]&2&&(Je.label=(Pl=(Al=(Sl=s[65])==null?void 0:Sl.schedule)==null?void 0:Al.state)!=null&&Pl.paused?h("schedules.unpause"):h("schedules.pause")),H[0]&65536&&(Je.disabled=s[16]),H[0]&25|H[2]&512&&(Je.$$scope={dirty:H,ctx:s}),G.$set(Je),(Rl=(Cl=s[65])==null?void 0:Cl.info)!=null&&Rl.invalidScheduleError?j?(j.p(s,H),H[0]&2&&v(j,1)):(j=Mn(s),j.c(),v(j,1),j.m(K,ie)):j&&(Se(),w(j,1,1,()=>{j=null}),Ae()),s[20]?X?(X.p(s,H),H[0]&1048576&&v(X,1)):(X=Wn(s),X.c(),v(X,1),X.m(K,fe)):X&&(Se(),w(X,1,1,()=>{X=null}),Ae());const Ke={};H[0]&2&&(Ke.recentRuns=(Vl=(Nl=s[65])==null?void 0:Nl.info)==null?void 0:Vl.recentActions),me.$set(Ke);const nt={};H[0]&2&&(nt.futureRuns=(Ll=(Hl=s[65])==null?void 0:Hl.info)==null?void 0:Ll.futureActionTimes),de.$set(nt);const Ge={};H[0]&2&&(Ge.spec=(Wl=(Ml=s[65])==null?void 0:Ml.schedule)==null?void 0:Wl.spec),H[0]&2&&(Ge.state=(ql=(Ul=s[65])==null?void 0:Ul.schedule)==null?void 0:ql.state),H[0]&2&&(Ge.policies=(yl=(Bl=s[65])==null?void 0:Bl.schedule)==null?void 0:yl.policies),H[0]&2&&(Ge.notes=(Ol=(Fl=(zl=s[65])==null?void 0:zl.schedule)==null?void 0:Fl.state)==null?void 0:Ol.notes),pe.$set(Ge);const st={};H[0]&2&&(st.searchAttributes=((jl=s[65])==null?void 0:jl.searchAttributes)??{}),ee.$set(st);const Fe={};H[0]&2&&(Fe.input=(Kl=(Jl=(Gl=(Ql=s[65])==null?void 0:Ql.schedule)==null?void 0:Gl.action)==null?void 0:Jl.startWorkflow)==null?void 0:Kl.input),ne.$set(Fe);const Oe={};H[0]&2&&(Oe.calendar=(xl=(Zl=(Yl=(Xl=s[65])==null?void 0:Xl.schedule)==null?void 0:Yl.spec)==null?void 0:Zl.structuredCalendar)==null?void 0:xl[0]),H[0]&2&&(Oe.interval=(nn=(ln=(tn=(en=s[65])==null?void 0:en.schedule)==null?void 0:tn.spec)==null?void 0:ln.interval)==null?void 0:nn[0]),H[0]&2&&(Oe.timezoneName=(on=(rn=(sn=s[65])==null?void 0:sn.schedule)==null?void 0:rn.spec)==null?void 0:on.timezoneName),N.$set(Oe);const Ee={};H[0]&2&&(Ee.confirmText=(an=s[65])!=null&&an.schedule.state.paused?h("schedules.unpause"):h("schedules.pause")),H[0]&32&&(Ee.confirmDisabled=!s[5]),H[0]&34|H[2]&512&&(Ee.$$scope={dirty:H,ctx:s}),!$e&&H[0]&4&&($e=!0,Ee.open=s[2],Re(()=>$e=!1)),y.$set(Ee);const je={};H[0]&64&&(je.loading=s[6]),H[2]&512&&(je.$$scope={dirty:H,ctx:s}),!We&&H[0]&8&&(We=!0,je.open=s[3],Re(()=>We=!1)),x.$set(je);const dt={};H[0]&64&&(dt.loading=s[6]),H[0]&65408|H[2]&512&&(dt.$$scope={dirty:H,ctx:s}),!Qe&&H[0]&1&&(Qe=!0,dt.open=s[0],Re(()=>Qe=!1)),ve.$set(dt);const pt={};H[2]&512&&(pt.$$scope={dirty:H,ctx:s}),!Te&&H[0]&16&&(Te=!0,pt.open=s[4],Re(()=>Te=!1)),!Ue&&H[0]&8388608&&(Ue=!0,pt.error=s[23],Re(()=>Ue=!1)),F.$set(pt)},i(A){be||(v(t.$$.fragment,A),v(c.$$.fragment,A),v(G.$$.fragment,A),v(j),v(X),v(me.$$.fragment,A),v(de.$$.fragment,A),v(pe.$$.fragment,A),v(ee.$$.fragment,A),v(ne.$$.fragment,A),v(N.$$.fragment,A),v(y.$$.fragment,A),v(x.$$.fragment,A),v(ve.$$.fragment,A),v(F.$$.fragment,A),be=!0)},o(A){w(t.$$.fragment,A),w(c.$$.fragment,A),w(G.$$.fragment,A),w(j),w(X),w(me.$$.fragment,A),w(de.$$.fragment,A),w(pe.$$.fragment,A),w(ee.$$.fragment,A),w(ne.$$.fragment,A),w(N.$$.fragment,A),w(y.$$.fragment,A),w(x.$$.fragment,A),w(ve.$$.fragment,A),w(F.$$.fragment,A),be=!1},d(A){A&&(f(e),f(ae),f(K),f(O),f(ge),f(ye),f(oe)),U(t),U(c),se&&se.d(),U(G),j&&j.d(),X&&X.d(),U(me),U(de),U(pe),U(ee),U(ne),U(N),U(y,A),U(x,A),U(ve,A),U(F,A)}}}function Dr(s){let e,l;return e=new Kn({props:{title:h("schedules.deleting"),class:"my-2"}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Sr(s){let e=h("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Ln(s){var o,r;let e,l,t=h("common.last-updated",{updated:Be((r=(o=s[65])==null?void 0:o.info)==null?void 0:r.updateTime,s[18],{relative:s[19]})})+"",n;return{c(){e=E("div"),l=E("p"),n=q(t),this.h()},l(i){e=I(i,"DIV",{class:!0});var a=T(e);l=I(a,"P",{});var u=T(l);n=B(u,t),u.forEach(f),a.forEach(f),this.h()},h(){D(e,"class","flex items-center gap-2 text-sm")},m(i,a){S(i,e,a),m(e,l),m(l,n)},p(i,a){var u,c;a[0]&786434&&t!==(t=h("common.last-updated",{updated:Be((c=(u=i[65])==null?void 0:u.info)==null?void 0:c.updateTime,i[18],{relative:i[19]})})+"")&&te(n,t)},d(i){i&&f(e)}}}function Ar(s){let e=h("schedules.trigger")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Pr(s){let e=h("schedules.backfill")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Cr(s){let e=h("common.edit")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Rr(s){let e=h("common.delete")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Nr(s){let e,l,t,n,o,r,i,a;return e=new ht({props:{"data-testid":"trigger-schedule",$$slots:{default:[Ar]},$$scope:{ctx:s}}}),e.$on("click",s[41]),t=new ht({props:{"data-testid":"backfill-schedule",$$slots:{default:[Pr]},$$scope:{ctx:s}}}),t.$on("click",s[42]),o=new ht({props:{"data-testid":"edit-schedule",href:ps({namespace:s[24],scheduleId:s[25]}),$$slots:{default:[Cr]},$$scope:{ctx:s}}}),i=new ht({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[Rr]},$$scope:{ctx:s}}}),i.$on("click",s[43]),{c(){L(e.$$.fragment),l=P(),L(t.$$.fragment),n=P(),L(o.$$.fragment),r=P(),L(i.$$.fragment)},l(u){M(e.$$.fragment,u),l=C(u),M(t.$$.fragment,u),n=C(u),M(o.$$.fragment,u),r=C(u),M(i.$$.fragment,u)},m(u,c){W(e,u,c),S(u,l,c),W(t,u,c),S(u,n,c),W(o,u,c),S(u,r,c),W(i,u,c),a=!0},p(u,c){const d={};c[2]&512&&(d.$$scope={dirty:c,ctx:u}),e.$set(d);const k={};c[2]&512&&(k.$$scope={dirty:c,ctx:u}),t.$set(k);const $={};c[2]&512&&($.$$scope={dirty:c,ctx:u}),o.$set($);const b={};c[2]&512&&(b.$$scope={dirty:c,ctx:u}),i.$set(b)},i(u){a||(v(e.$$.fragment,u),v(t.$$.fragment,u),v(o.$$.fragment,u),v(i.$$.fragment,u),a=!0)},o(u){w(e.$$.fragment,u),w(t.$$.fragment,u),w(o.$$.fragment,u),w(i.$$.fragment,u),a=!1},d(u){u&&(f(l),f(n),f(r)),U(e,u),U(t,u),U(o,u),U(i,u)}}}function Mn(s){var n,o;let e,l,t;return l=new Zn({props:{error:(o=(n=s[65])==null?void 0:n.info)==null?void 0:o.invalidScheduleError}}),{c(){e=E("div"),L(l.$$.fragment),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);M(l.$$.fragment,i),i.forEach(f),this.h()},h(){D(e,"class","w-full xl:w-1/2")},m(r,i){S(r,e,i),W(l,e,null),t=!0},p(r,i){var u,c;const a={};i[0]&2&&(a.error=(c=(u=r[65])==null?void 0:u.info)==null?void 0:c.invalidScheduleError),l.$set(a)},i(r){t||(v(l.$$.fragment,r),t=!0)},o(r){w(l.$$.fragment,r),t=!1},d(r){r&&f(e),U(l)}}}function Wn(s){let e,l,t,n=s[21].count.toLocaleString()+"",o,r,i,a,u,c,d,k;return i=new ws({props:{key:"common.workflows-plural",count:s[21].count}}),u=new Jn({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[Vr]},$$scope:{ctx:s}}}),u.$on("click",s[45]),d=new $s({props:{staticQuery:s[26]}}),{c(){e=E("div"),l=E("div"),t=E("span"),o=q(n),r=P(),L(i.$$.fragment),a=P(),L(u.$$.fragment),c=P(),L(d.$$.fragment),this.h()},l($){e=I($,"DIV",{class:!0});var b=T(e);l=I(b,"DIV",{class:!0});var _=T(l);t=I(_,"SPAN",{"data-testid":!0});var p=T(t);o=B(p,n),r=C(p),M(i.$$.fragment,p),p.forEach(f),a=C(_),M(u.$$.fragment,_),_.forEach(f),c=C(b),M(d.$$.fragment,b),b.forEach(f),this.h()},h(){D(t,"data-testid","workflow-count"),D(l,"class","flex items-center gap-2"),D(e,"class","flex w-full flex-col gap-2 text-lg")},m($,b){S($,e,b),m(e,l),m(l,t),m(t,o),m(t,r),W(i,t,null),m(l,a),W(u,l,null),m(e,c),W(d,e,null),k=!0},p($,b){(!k||b[0]&2097152)&&n!==(n=$[21].count.toLocaleString()+"")&&te(o,n);const _={};b[0]&2097152&&(_.count=$[21].count),i.$set(_);const p={};b[0]&2097152|b[2]&512&&(p.$$scope={dirty:b,ctx:$}),u.$set(p)},i($){k||(v(i.$$.fragment,$),v(u.$$.fragment,$),v(d.$$.fragment,$),k=!0)},o($){w(i.$$.fragment,$),w(u.$$.fragment,$),w(d.$$.fragment,$),k=!1},d($){$&&f(e),U(i),U(u),U(d)}}}function Un(s){let e,l=s[21].newCount.toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(n){e=B(n,"+"),t=B(n,l)},m(n,o){S(n,e,o),S(n,t,o)},p(n,o){o[0]&2097152&&l!==(l=n[21].newCount.toLocaleString()+"")&&te(t,l)},d(n){n&&(f(e),f(t))}}}function Vr(s){let e,l=s[21].newCount>0&&Un(s);return{c(){l&&l.c(),e=re()},l(t){l&&l.l(t),e=re()},m(t,n){l&&l.m(t,n),S(t,e,n)},p(t,n){t[21].newCount>0?l?l.p(t,n):(l=Un(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){t&&f(e),l&&l.d(t)}}}function Hr(s){var n;let e,l=((n=s[65])!=null&&n.schedule.state.paused?h("schedules.unpause-modal-title"):h("schedules.pause-modal-title"))+"",t;return{c(){e=E("h3"),t=q(l),this.h()},l(o){e=I(o,"H3",{slot:!0});var r=T(e);t=B(r,l),r.forEach(f),this.h()},h(){D(e,"slot","title")},m(o,r){S(o,e,r),m(e,t)},p(o,r){var i;r[0]&2&&l!==(l=((i=o[65])!=null&&i.schedule.state.paused?h("schedules.unpause-modal-title"):h("schedules.pause-modal-title"))+"")&&te(t,l)},d(o){o&&f(e)}}}function Lr(s){var _,p;let e,l,t=((_=s[65])!=null&&_.schedule.state.paused?h("schedules.unpause-modal-confirmation",{schedule:s[25]}):h("schedules.pause-modal-confirmation",{schedule:s[25]}))+"",n,o,r,i=((p=s[65])!=null&&p.schedule.state.paused?h("schedules.unpause-reason"):h("schedules.pause-reason"))+"",a,u,c,d,k;function $(g){s[46](g)}let b={id:"pause-reason",placeholder:h("common.reason"),label:h("common.reason"),labelHidden:!0};return s[5]!==void 0&&(b.value=s[5]),c=new vs({props:b}),Ce.push(()=>Ne(c,"value",$)),{c(){e=E("div"),l=E("p"),n=q(t),o=P(),r=E("p"),a=q(i),u=P(),L(c.$$.fragment),this.h()},l(g){e=I(g,"DIV",{slot:!0});var R=T(e);l=I(R,"P",{});var Y=T(l);n=B(Y,t),Y.forEach(f),o=C(R),r=I(R,"P",{class:!0});var J=T(r);a=B(J,i),J.forEach(f),u=C(R),M(c.$$.fragment,R),R.forEach(f),this.h()},h(){D(r,"class","my-4"),D(e,"slot","content")},m(g,R){S(g,e,R),m(e,l),m(l,n),m(e,o),m(e,r),m(r,a),m(e,u),W(c,e,null),k=!0},p(g,R){var J,ce;(!k||R[0]&2)&&t!==(t=((J=g[65])!=null&&J.schedule.state.paused?h("schedules.unpause-modal-confirmation",{schedule:g[25]}):h("schedules.pause-modal-confirmation",{schedule:g[25]}))+"")&&te(n,t),(!k||R[0]&2)&&i!==(i=((ce=g[65])!=null&&ce.schedule.state.paused?h("schedules.unpause-reason"):h("schedules.pause-reason"))+"")&&te(a,i);const Y={};!d&&R[0]&32&&(d=!0,Y.value=g[5],Re(()=>d=!1)),c.$set(Y)},i(g){k||(v(c.$$.fragment,g),k=!0)},o(g){w(c.$$.fragment,g),k=!1},d(g){g&&f(e),U(c)}}}function Mr(s){let e,l=h("schedules.trigger-modal-title")+"",t;return{c(){e=E("h3"),t=q(l),this.h()},l(n){e=I(n,"H3",{slot:!0});var o=T(e);t=B(o,l),o.forEach(f),this.h()},h(){D(e,"slot","title")},m(n,o){S(n,e,o),m(e,t)},p:Q,d(n){n&&f(e)}}}function qn(s){let e,l;return e=new Yn({props:{id:s[66].value,value:s[66].value,label:s[66].label,description:s[66].description}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Wr(s){let e,l,t=Ve(s[29]),n=[];for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rNe(o,"hour",de)),Ce.push(()=>Ne(o,"minute",ke)),Ce.push(()=>Ne(o,"second",pe)),c=new gn({props:{label:h("common.end"),selected:s[9],todayLabel:h("common.today"),closeLabel:h("common.close"),clearLabel:h("common.clear-input-button-label")}}),c.$on("datechange",s[36]);function ee(N){s[54](N)}function we(N){s[55](N)}function ue(N){s[56](N)}let ne={twelveHourClock:!1};s[13]!==void 0&&(ne.hour=s[13]),s[14]!==void 0&&(ne.minute=s[14]),s[15]!==void 0&&(ne.second=s[15]),k=new vn({props:ne}),Ce.push(()=>Ne(k,"hour",ee)),Ce.push(()=>Ne(k,"minute",we)),Ce.push(()=>Ne(k,"second",ue)),R=new gs({props:{name:"clock","aria-hidden":"true"}}),Z=new Xn({props:{group:s[28],name:"backfill-event-id",class:"h-auto overflow-auto",$$slots:{default:[Br]},$$scope:{ctx:s}}});let z=!s[7]&&yn(s);return{c(){e=E("div"),l=E("div"),L(t.$$.fragment),n=P(),L(o.$$.fragment),u=P(),L(c.$$.fragment),d=P(),L(k.$$.fragment),p=P(),g=E("div"),L(R.$$.fragment),Y=P(),J=E("span"),G=q(ce),ae=q(` Universal Standard Time +import{s as He,h as E,t as q,b as P,j as I,k as T,l as B,f,d as C,m as D,i as S,n as m,q as te,v as Q,a as xn,H as un,u as es,g as ts,e as ls,z as at,A as It,E as cn,D as fn,x as re,y as it,c as Ie,w as et,N as Ce,O as Re}from"../chunks/scheduler.C46pS-76.js";import{S as Le,i as Me,c as L,a as M,m as W,t as v,b as w,d as U,g as Se,e as Ae,f as Ne}from"../chunks/index.dOVbn71B.js";import{p as zn}from"../chunks/stores.Ds4o9nwd.js";import{P as ns}from"../chunks/page-title.DNhqE1Lj.js";import{h as gt,u as Fn}from"../chunks/await_block.BfN27BCg.js";import{e as Ve,u as ss,o as rs}from"../chunks/each.C6O0oV7R.js";import{w as os,g as as}from"../chunks/entry.kylZibtV.js";import{A as On}from"../chunks/accordion.B8FZU59C.js";import{t as h}from"../chunks/translate.BBe5dcco.js";import{S as is}from"../chunks/schedule-frequency.Bpvyfzre.js";import{p as ot,s as vt}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{g as us}from"../chunks/spread.CgU5AtxT.js";import{B as cs}from"../chunks/badge.jG5hkqHT.js";import{C as Dt}from"../chunks/code-block.DGWayI9q.js";import{P as jn}from"../chunks/payload-decoder.C_mCVVdL.js";import{E as Qn}from"../chunks/empty-state.BO9uOKUe.js";import{L as ut}from"../chunks/link.C_v4aoat.js";import{x as mn,y as fs,w as ms,r as dn,m as ds}from"../chunks/workflows.Cse8qlOg.js";import{t as St,r as At,f as Be,g as pn}from"../chunks/time-format.BLKgLEx9.js";import{d as Tt}from"../chunks/encode-uri.BOkQ1rrX.js";import{z as hn,b as _n,l as bt,A as ps}from"../chunks/route-for.B9fTWV7L.js";import{W as Gn}from"../chunks/workflow-status.4hwv3weu.js";import{d as hs}from"../chunks/decode-payload.CR1Tto5x.js";import{p as $n,s as Xe,o as _s}from"../chunks/format-time.6TuExJAg.js";import{W as $s}from"../chunks/workflow-counts.D3FzL32z.js";import{B as Jn}from"../chunks/button.hs88FdV4.js";import{D as gn,T as vn}from"../chunks/time-picker.G0x2sfcZ.js";import{I as gs}from"../chunks/icon.CfkHLDdJ.js";import{I as vs}from"../chunks/input.Dizl7Mgk.js";import{L as Kn}from"../chunks/loading.BLsNkl8r.js";import{d as ht}from"../chunks/menu.B3Snjx4c.js";import{M as _t}from"../chunks/modal.BxyQo5_L.js";import{R as Xn,a as Yn}from"../chunks/radio-input.OzdV2p8V.js";import{S as bs}from"../chunks/split-button.70FZ_ydj.js";import{b as ks,T as ws}from"../chunks/translate.9wzy45oZ.js";import{l as $t,f as rt,d as Es,u as Is,p as Ts,t as Ds,g as Ss}from"../chunks/schedules.BI2Sbv1C.js";import{c as As}from"../chunks/core-user.DrkCNXj3.js";function Ps(s){let e,l,t=h("common.notes")+"",n,o,r,i;return{c(){e=E("div"),l=E("h2"),n=q(t),o=P(),r=E("p"),i=q(s[0]),this.h()},l(a){e=I(a,"DIV",{});var u=T(e);l=I(u,"H2",{class:!0});var c=T(l);n=B(c,t),c.forEach(f),o=C(u),r=I(u,"P",{});var d=T(r);i=B(d,s[0]),d.forEach(f),u.forEach(f),this.h()},h(){D(l,"class","mb-4")},m(a,u){S(a,e,u),m(e,l),m(l,n),m(e,o),m(e,r),m(r,i)},p(a,[u]){u&1&&te(i,a[0])},i:Q,o:Q,d(a){a&&f(e)}}}function Cs(s,e,l){let{notes:t=""}=e;return s.$$set=n=>{"notes"in n&&l(0,t=n.notes)},[t]}class Rs extends Le{constructor(e){super(),Me(this,e,Cs,Ps,He,{notes:0})}}function bn(s){var a;let e,l=h("schedules.remaining-actions")+"",t,n,o,r=(((a=s[1])==null?void 0:a.remainingActions)??h("common.none"))+"",i;return{c(){e=E("li"),t=q(l),n=P(),o=E("span"),i=q(r),this.h()},l(u){e=I(u,"LI",{class:!0});var c=T(e);t=B(c,l),n=C(c),o=I(c,"SPAN",{class:!0});var d=T(o);i=B(d,r),d.forEach(f),c.forEach(f),this.h()},h(){D(o,"class","svelte-s42yf"),D(e,"class","svelte-s42yf")},m(u,c){S(u,e,c),m(e,t),m(e,n),m(e,o),m(o,i)},p(u,c){var d;c&2&&r!==(r=(((d=u[1])==null?void 0:d.remainingActions)??h("common.none"))+"")&&te(i,r)},d(u){u&&f(e)}}}function Ns(s){var $e,ge,x,We,ye,ve,Qe;let e,l,t=h("schedules.start-time")+"",n,o,r,i=((($e=s[0])==null?void 0:$e.startTime)??h("common.none"))+"",a,u,c,d=h("schedules.end-time")+"",k,$,b,_=(((ge=s[0])==null?void 0:ge.endTime)??h("common.none"))+"",p,g,R,Y=h("schedules.jitter")+"",J,ce,G,ae=(((x=s[0])==null?void 0:x.jitter)??h("common.none"))+"",K,ie,fe,le=h("schedules.exclusion-calendar")+"",Z,me,he,de=(((ye=(We=s[0])==null?void 0:We.excludeCalendar)==null?void 0:ye[0])??h("common.none"))+"",ke,pe,_e,ee,we=h("schedules.overlap-policy")+"",ue,ne,z,N=(((ve=s[2])==null?void 0:ve.overlapPolicy)??h("common.none"))+"",O,y=((Qe=s[1])==null?void 0:Qe.limitedActions)&&bn(s);return{c(){e=E("ul"),l=E("li"),n=q(t),o=P(),r=E("span"),a=q(i),u=P(),c=E("li"),k=q(d),$=P(),b=E("span"),p=q(_),g=P(),R=E("li"),J=q(Y),ce=P(),G=E("span"),K=q(ae),ie=P(),fe=E("li"),Z=q(le),me=P(),he=E("span"),ke=q(de),pe=P(),y&&y.c(),_e=P(),ee=E("li"),ue=q(we),ne=P(),z=E("span"),O=q(N),this.h()},l(oe){e=I(oe,"UL",{class:!0});var F=T(e);l=I(F,"LI",{class:!0});var Te=T(l);n=B(Te,t),o=C(Te),r=I(Te,"SPAN",{class:!0});var Ue=T(r);a=B(Ue,i),Ue.forEach(f),Te.forEach(f),u=C(F),c=I(F,"LI",{class:!0});var be=T(c);k=B(be,d),$=C(be),b=I(be,"SPAN",{class:!0});var se=T(b);p=B(se,_),se.forEach(f),be.forEach(f),g=C(F),R=I(F,"LI",{class:!0});var j=T(R);J=B(j,Y),ce=C(j),G=I(j,"SPAN",{class:!0});var X=T(G);K=B(X,ae),X.forEach(f),j.forEach(f),ie=C(F),fe=I(F,"LI",{class:!0});var qe=T(fe);Z=B(qe,le),me=C(qe),he=I(qe,"SPAN",{class:!0});var Ye=T(he);ke=B(Ye,de),Ye.forEach(f),qe.forEach(f),pe=C(F),y&&y.l(F),_e=C(F),ee=I(F,"LI",{class:!0});var ze=T(ee);ue=B(ze,we),ne=C(ze),z=I(ze,"SPAN",{class:!0});var Ze=T(z);O=B(Ze,N),Ze.forEach(f),ze.forEach(f),F.forEach(f),this.h()},h(){D(r,"class","svelte-s42yf"),D(l,"class","svelte-s42yf"),D(b,"class","svelte-s42yf"),D(c,"class","svelte-s42yf"),D(G,"class","svelte-s42yf"),D(R,"class","svelte-s42yf"),D(he,"class","svelte-s42yf"),D(fe,"class","svelte-s42yf"),D(z,"class","svelte-s42yf"),D(ee,"class","svelte-s42yf"),D(e,"class","settings-list svelte-s42yf")},m(oe,F){S(oe,e,F),m(e,l),m(l,n),m(l,o),m(l,r),m(r,a),m(e,u),m(e,c),m(c,k),m(c,$),m(c,b),m(b,p),m(e,g),m(e,R),m(R,J),m(R,ce),m(R,G),m(G,K),m(e,ie),m(e,fe),m(fe,Z),m(fe,me),m(fe,he),m(he,ke),m(e,pe),y&&y.m(e,null),m(e,_e),m(e,ee),m(ee,ue),m(ee,ne),m(ee,z),m(z,O)},p(oe,F){var Te,Ue,be,se,j,X,qe;F&1&&i!==(i=(((Te=oe[0])==null?void 0:Te.startTime)??h("common.none"))+"")&&te(a,i),F&1&&_!==(_=(((Ue=oe[0])==null?void 0:Ue.endTime)??h("common.none"))+"")&&te(p,_),F&1&&ae!==(ae=(((be=oe[0])==null?void 0:be.jitter)??h("common.none"))+"")&&te(K,ae),F&1&&de!==(de=(((j=(se=oe[0])==null?void 0:se.excludeCalendar)==null?void 0:j[0])??h("common.none"))+"")&&te(ke,de),(X=oe[1])!=null&&X.limitedActions?y?y.p(oe,F):(y=bn(oe),y.c(),y.m(e,_e)):y&&(y.d(1),y=null),F&4&&N!==(N=(((qe=oe[2])==null?void 0:qe.overlapPolicy)??h("common.none"))+"")&&te(O,N)},d(oe){oe&&f(e),y&&y.d()}}}function Vs(s){let e,l,t,n;return e=new Rs({props:{notes:s[3]}}),t=new On({props:{title:h("schedules.advanced-settings"),$$slots:{default:[Ns]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment),l=P(),L(t.$$.fragment)},l(o){M(e.$$.fragment,o),l=C(o),M(t.$$.fragment,o)},m(o,r){W(e,o,r),S(o,l,r),W(t,o,r),n=!0},p(o,[r]){const i={};r&8&&(i.notes=o[3]),e.$set(i);const a={};r&23&&(a.$$scope={dirty:r,ctx:o}),t.$set(a)},i(o){n||(v(e.$$.fragment,o),v(t.$$.fragment,o),n=!0)},o(o){w(e.$$.fragment,o),w(t.$$.fragment,o),n=!1},d(o){o&&f(l),U(e,o),U(t,o)}}}function Hs(s,e,l){let{spec:t}=e,{state:n}=e,{policies:o}=e,{notes:r=""}=e;return s.$$set=i=>{"spec"in i&&l(0,t=i.spec),"state"in i&&l(1,n=i.state),"policies"in i&&l(2,o=i.policies),"notes"in i&&l(3,r=i.notes)},[t,n,o,r]}class Ls extends Le{constructor(e){super(),Me(this,e,Hs,Vs,He,{spec:0,state:1,policies:2,notes:3})}}function Ms(s){let e,l,t;const n=s[3].default,o=xn(n,s,s[2],null);return{c(){e=E("div"),o&&o.c(),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);o&&o.l(i),i.forEach(f),this.h()},h(){D(e,"class",l="panel surface-primary "+s[1].class+" svelte-1lw5h6q"),un(e,"error",s[0])},m(r,i){S(r,e,i),o&&o.m(e,null),t=!0},p(r,[i]){o&&o.p&&(!t||i&4)&&es(o,n,r,r[2],t?ls(n,r[2],i,null):ts(r[2]),null),(!t||i&2&&l!==(l="panel surface-primary "+r[1].class+" svelte-1lw5h6q"))&&D(e,"class",l),(!t||i&3)&&un(e,"error",r[0])},i(r){t||(v(o,r),t=!0)},o(r){w(o,r),t=!1},d(r){r&&f(e),o&&o.d(r)}}}function Ws(s,e,l){let{$$slots:t={},$$scope:n}=e,{error:o=!1}=e;return s.$$set=r=>{l(1,e=at(at({},e),It(r))),"error"in r&&l(0,o=r.error),"$$scope"in r&&l(2,n=r.$$scope)},e=It(e),[o,e,n,t]}class ct extends Le{constructor(e){super(),Me(this,e,Ws,Ms,He,{error:0})}}function Us(s){let e,l=h("schedules.error-title")+"",t,n,o,r;return{c(){e=E("p"),t=q(l),n=P(),o=E("p"),r=q(s[0]),this.h()},l(i){e=I(i,"P",{class:!0});var a=T(e);t=B(a,l),a.forEach(f),n=C(i),o=I(i,"P",{class:!0});var u=T(o);r=B(u,s[0]),u.forEach(f),this.h()},h(){D(e,"class","error-text svelte-130heqv"),D(o,"class","error-text svelte-130heqv")},m(i,a){S(i,e,a),m(e,t),S(i,n,a),S(i,o,a),m(o,r)},p(i,a){a&1&&te(r,i[0])},d(i){i&&(f(e),f(n),f(o))}}}function qs(s){let e,l;return e=new ct({props:{error:!0,$$slots:{default:[Us]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&3&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Bs(s,e,l){let{error:t=""}=e;return s.$$set=n=>{"error"in n&&l(0,t=n.error)},[t]}class Zn extends Le{constructor(e){super(),Me(this,e,Bs,qs,He,{error:0})}}function ys(s){let e,l=h("schedules.schedule-spec")+"",t,n,o,r,i;return r=new is({props:{calendar:s[0],interval:s[1],timezoneName:s[2],class:"text-base"}}),{c(){e=E("h2"),t=q(l),n=P(),o=E("div"),L(r.$$.fragment),this.h()},l(a){e=I(a,"H2",{class:!0});var u=T(e);t=B(u,l),u.forEach(f),n=C(a),o=I(a,"DIV",{class:!0});var c=T(o);M(r.$$.fragment,c),c.forEach(f),this.h()},h(){D(e,"class","mb-4"),D(o,"class","pr-2")},m(a,u){S(a,e,u),m(e,t),S(a,n,u),S(a,o,u),W(r,o,null),i=!0},p(a,u){const c={};u&1&&(c.calendar=a[0]),u&2&&(c.interval=a[1]),u&4&&(c.timezoneName=a[2]),r.$set(c)},i(a){i||(v(r.$$.fragment,a),i=!0)},o(a){w(r.$$.fragment,a),i=!1},d(a){a&&(f(e),f(n),f(o)),U(r)}}}function zs(s){let e,l;return e=new ct({props:{$$slots:{default:[ys]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&15&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Fs(s,e,l){let{calendar:t=void 0}=e,{interval:n=void 0}=e,{timezoneName:o="UTC"}=e;return s.$$set=r=>{"calendar"in r&&l(0,t=r.calendar),"interval"in r&&l(1,n=r.interval),"timezoneName"in r&&l(2,o=r.timezoneName)},[t,n,o]}class Os extends Le{constructor(e){super(),Me(this,e,Fs,zs,He,{calendar:0,interval:1,timezoneName:2})}}function kn(s,e,l){const t=s.slice();return t[12]=e[l],t}function wn(s){let e,l;return e=new cs({props:{type:"count",class:"rounded-sm",$$slots:{default:[js]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&32776&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function js(s){let e=s[3].length+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p(t,n){n&8&&e!==(e=t[3].length+"")&&te(l,e)},d(t){t&&f(l)}}}function Qs(s){let e,l;return e=new Dt({props:{content:s[2]?"Results will appear upon completion.":"",language:"text",class:"mb-2 pt-1",maxHeight:384,copyable:!1}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.content=t[2]?"Results will appear upon completion.":""),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Gs(s){let e,l,t,n;const o=[Ks,Js],r=[];function i(a,u){return a[6]?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,u){r[e].m(a,u),S(a,t,u),n=!0},p(a,u){let c=e;e=i(a),e===c?r[e].p(a,u):(Se(),w(r[c],1,1,()=>{r[c]=null}),Ae(),l=r[e],l?l.p(a,u):(l=r[e]=o[e](a),l.c()),v(l,1),l.m(t.parentNode,t))},i(a){n||(v(l),n=!0)},o(a){w(l),n=!1},d(a){a&&f(t),r[e].d(a)}}}function Js(s){let e,l;return e=new jn({props:{value:ot(s[0]),$$slots:{default:[Xs,({decodedValue:t})=>({11:t}),({decodedValue:t})=>t?2048:0]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.value=ot(t[0])),n&34816&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Ks(s){let e,l,t;return l=new jn({props:{value:s[4],key:"payloads",$$slots:{default:[Ys,({decodedValue:n})=>({11:n}),({decodedValue:n})=>n?2048:0]},$$scope:{ctx:s}}}),{c(){e=E("div"),L(l.$$.fragment),this.h()},l(n){e=I(n,"DIV",{class:!0});var o=T(e);M(l.$$.fragment,o),o.forEach(f),this.h()},h(){D(e,"class","max-h-96 overflow-auto p-1")},m(n,o){S(n,e,o),W(l,e,null),t=!0},p(n,o){const r={};o&16&&(r.value=n[4]),o&34816&&(r.$$scope={dirty:o,ctx:n}),l.$set(r)},i(n){t||(v(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&f(e),U(l)}}}function Xs(s){let e,l;return e=new Dt({props:{content:s[11],class:"mb-2 pt-1",maxHeight:384,copyIconTitle:h("common.copy-icon-title"),copySuccessIconTitle:h("common.copy-success-icon-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&2048&&(o.content=t[11]),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function En(s){let e,l;return e=new Dt({props:{content:vt(s[12]),class:"mb-2",copyIconTitle:h("common.copy-icon-title"),copySuccessIconTitle:h("common.copy-success-icon-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&2048&&(o.content=vt(t[12])),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Ys(s){let e,l,t=Ve(s[7](s[11])),n=[];for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;r{u=null}),Ae());let g=r;r=k(_),r===g?d[r].p(_,p):(Se(),w(d[g],1,1,()=>{d[g]=null}),Ae(),i=d[r],i?i.p(_,p):(i=d[r]=c[r](_),i.c()),v(i,1),i.m(e,null)),cn(e,b=us($,[{class:"flex w-full flex-col"},p&256&&_[8]]))},i(_){a||(v(u),v(i),a=!0)},o(_){w(u),w(i),a=!1},d(_){_&&f(e),u&&u.d(),d[r].d()}}}function xs(s,e,l){let t,n,o,r;const i=["content","title","running"];let a=fn(e,i),{content:u}=e,{title:c}=e,{running:d=!1}=e;const k=_=>{try{return ot(_)}catch{return}},$=_=>{try{const p=ot(_);return Array.isArray(p)?ot(_):[]}catch{return[]}},b=_=>{try{const p=_==null?void 0:_.payloads;return Array.isArray(p)?p:[]}catch{return[]}};return s.$$set=_=>{e=at(at({},e),It(_)),l(8,a=fn(e,i)),"content"in _&&l(0,u=_.content),"title"in _&&l(1,c=_.title),"running"in _&&l(2,d=_.running)},s.$$.update=()=>{s.$$.dirty&1&&l(4,t=k(u)),s.$$.dirty&16&&l(3,n=b(t)),s.$$.dirty&8&&l(6,o=n.length>0),s.$$.dirty&8&&l(5,r=n.length>1)},[u,c,d,n,t,r,o,$,a]}class er extends Le{constructor(e){super(),Me(this,e,xs,Zs,He,{content:0,title:1,running:2})}}function tr(s){let e,l;return e=new er({props:{title:h("schedules.schedule-input"),content:vt(s[0])}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.content=vt(t[0])),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function lr(s){let e,l;return e=new ct({props:{$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&3&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function nr(s,e,l){let{input:t}=e;return s.$$set=n=>{"input"in n&&l(0,t=n.input)},[t]}class sr extends Le{constructor(e){super(),Me(this,e,nr,lr,He,{input:0})}}function In(s,e,l){const t=s.slice();return t[6]=e[l],t}function rr(s){let e=h("common.view-all-runs")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function or(s){let e,l,t,n,o=s[6].startWorkflowResult.workflowId+"",r,i,a,u,c=Be(s[6].actualTime,s[3],{relative:s[4]})+"",d;return{c(){e=E("div"),l=E("div"),t=P(),n=E("div"),r=q(o),i=P(),a=E("div"),u=E("p"),d=q(c),this.h()},l(k){e=I(k,"DIV",{class:!0});var $=T(e);l=I($,"DIV",{class:!0}),T(l).forEach(f),t=C($),n=I($,"DIV",{class:!0});var b=T(n);r=B(b,o),b.forEach(f),i=C($),a=I($,"DIV",{class:!0});var _=T(a);u=I(_,"P",{});var p=T(u);d=B(p,c),p.forEach(f),_.forEach(f),$.forEach(f),this.h()},h(){D(l,"class","w-28"),D(n,"class","w-96"),D(a,"class","ml-auto"),D(e,"class","row svelte-1qym6rq")},m(k,$){S(k,e,$),m(e,l),m(e,t),m(e,n),m(n,r),m(e,i),m(e,a),m(a,u),m(u,d)},p(k,$){$&1&&o!==(o=k[6].startWorkflowResult.workflowId+"")&&te(r,o),$&25&&c!==(c=Be(k[6].actualTime,k[3],{relative:k[4]})+"")&&te(d,c)},i:Q,o:Q,d(k){k&&f(e)}}}function ar(s){let e,l,t,n,o,r,i,a,u,c=Be(s[6].actualTime,s[3],{relative:s[4]})+"",d,k;return t=new Gn({props:{status:s[9].status}}),r=new ut({props:{href:_n({workflow:s[6].startWorkflowResult.workflowId,run:s[6].startWorkflowResult.runId,namespace:s[1]}),$$slots:{default:[ir]},$$scope:{ctx:s}}}),{c(){e=E("div"),l=E("div"),L(t.$$.fragment),n=P(),o=E("div"),L(r.$$.fragment),i=P(),a=E("div"),u=E("p"),d=q(c),this.h()},l($){e=I($,"DIV",{class:!0});var b=T(e);l=I(b,"DIV",{class:!0});var _=T(l);M(t.$$.fragment,_),_.forEach(f),n=C(b),o=I(b,"DIV",{class:!0});var p=T(o);M(r.$$.fragment,p),p.forEach(f),i=C(b),a=I(b,"DIV",{class:!0});var g=T(a);u=I(g,"P",{});var R=T(u);d=B(R,c),R.forEach(f),g.forEach(f),b.forEach(f),this.h()},h(){D(l,"class","w-28"),D(o,"class","mx-2 w-auto break-words"),D(a,"class","ml-auto"),D(e,"class","row svelte-1qym6rq")},m($,b){S($,e,b),m(e,l),W(t,l,null),m(e,n),m(e,o),W(r,o,null),m(e,i),m(e,a),m(a,u),m(u,d),k=!0},p($,b){const _={};b&3&&(_.status=$[9].status),t.$set(_);const p={};b&3&&(p.href=_n({workflow:$[6].startWorkflowResult.workflowId,run:$[6].startWorkflowResult.runId,namespace:$[1]})),b&1025&&(p.$$scope={dirty:b,ctx:$}),r.$set(p),(!k||b&25)&&c!==(c=Be($[6].actualTime,$[3],{relative:$[4]})+"")&&te(d,c)},i($){k||(v(t.$$.fragment,$),v(r.$$.fragment,$),k=!0)},o($){w(t.$$.fragment,$),w(r.$$.fragment,$),k=!1},d($){$&&f(e),U(t),U(r)}}}function ir(s){let e=s[6].startWorkflowResult.workflowId+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p(t,n){n&1&&e!==(e=t[6].startWorkflowResult.workflowId+"")&&te(l,e)},d(t){t&&f(l)}}}function ur(s){return{c:Q,l:Q,m:Q,p:Q,i:Q,o:Q,d:Q}}function Tn(s,e){let l,t,n,o,r={ctx:e,current:null,token:null,hasCatch:!0,pending:ur,then:ar,catch:or,value:9,blocks:[,,,]};return gt(n=mn({namespace:e[1],workflowId:Tt(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch),r),{key:s,first:null,c(){l=re(),t=re(),r.block.c(),this.h()},l(i){l=re(),t=re(),r.block.l(i),this.h()},h(){this.first=l},m(i,a){S(i,l,a),S(i,t,a),r.block.m(i,r.anchor=a),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(i,a){e=i,r.ctx=e,a&3&&n!==(n=mn({namespace:e[1],workflowId:Tt(e[6].startWorkflowResult.workflowId),runId:e[6].startWorkflowResult.runId},fetch))&>(n,r)||Fn(r,e,a)},i(i){o||(v(r.block),o=!0)},o(i){for(let a=0;a<3;a+=1){const u=r.blocks[a];w(u)}o=!1},d(i){i&&(f(l),f(t)),r.block.d(i),r.token=null,r=null}}}function Dn(s){let e,l;return e=new Qn({props:{title:h("schedules.recent-runs-empty-state-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function cr(s){let e,l,t=h("schedules.recent-runs")+"",n,o,r,i,a=[],u=new Map,c,d,k;r=new ut({props:{href:hn({namespace:s[1],query:s[2]}),$$slots:{default:[rr]},$$scope:{ctx:s}}});let $=Ve(s[5](s[0]));const b=p=>{var g,R;return(R=(g=p[6])==null?void 0:g.startWorkflowResult)==null?void 0:R.workflowId};for(let p=0;p<$.length;p+=1){let g=In(s,$,p),R=b(g);u.set(R,a[p]=Tn(R,g))}let _=!s[0].length&&Dn();return{c(){e=E("div"),l=E("h2"),n=q(t),o=P(),L(r.$$.fragment),i=P();for(let p=0;p{_=null}),Ae()):_?(_.p(p,g),g&1&&v(_,1)):(_=Dn(),_.c(),v(_,1),_.m(d.parentNode,d))},i(p){if(!k){v(r.$$.fragment,p);for(let g=0;g<$.length;g+=1)v(a[g]);v(_),k=!0}},o(p){w(r.$$.fragment,p);for(let g=0;gl(3,t=u)),Ie(s,At,u=>l(4,n=u));let{recentRuns:o=[]}=e,{namespace:r}=e,{workflowQuery:i}=e;const a=u=>{var c,d;return(d=(c=u==null?void 0:u.sort((k,$)=>new Date($.actualTime).getTime()-new Date(k.actualTime).getTime()))===null||c===void 0?void 0:c.slice(0,5))!==null&&d!==void 0?d:[]};return s.$$set=u=>{"recentRuns"in u&&l(0,o=u.recentRuns),"namespace"in u&&l(1,r=u.namespace),"workflowQuery"in u&&l(2,i=u.workflowQuery)},[o,r,i,t,n,a]}class dr extends Le{constructor(e){super(),Me(this,e,mr,fr,He,{recentRuns:0,namespace:1,workflowQuery:2})}}function Sn(s,e,l){const t=s.slice();return t[5]=e[l][0],t[6]=e[l][1],t}function An(s){let e,l=Ve(Object.entries(s[0])),t=[];for(let n=0;n0,$$slots:{default:[pr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&2&&(o.subtitle=`${t[1]} ${h("events.custom-search")} ${$n(h("events.attribute"),t[1])}`),n&2&&(o.expandable=t[1]>0),n&515&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function _r(s,e,l){let t,n,o;var r;let{searchAttributes:i}=e;return s.$$set=a=>{"searchAttributes"in a&&l(2,i=a.searchAttributes)},s.$$.update=()=>{s.$$.dirty&4&&l(4,t=hs({searchAttributes:i})),s.$$.dirty&24&&l(0,n=l(3,r=t==null?void 0:t.searchAttributes.indexedFields)!==null&&r!==void 0?r:{}),s.$$.dirty&1&&l(1,o=Object.keys(n).length)},[n,o,i,r,t]}class $r extends Le{constructor(e){super(),Me(this,e,_r,hr,He,{searchAttributes:2})}}function Cn(s,e,l){const t=s.slice();return t[3]=e[l],t}function Rn(s){let e,l;return e=new Qn({props:{title:h("schedules.upcoming-runs-empty-state-title")}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Nn(s){let e,l,t=Be(s[3],s[1],{relative:s[2],relativeLabel:h("common.from-now")})+"",n,o;return{c(){e=E("div"),l=E("p"),n=q(t),o=P(),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);l=I(i,"P",{});var a=T(l);n=B(a,t),a.forEach(f),o=C(i),i.forEach(f),this.h()},h(){D(e,"class","row svelte-9sf42k")},m(r,i){S(r,e,i),m(e,l),m(l,n),m(e,o)},p(r,i){i&7&&t!==(t=Be(r[3],r[1],{relative:r[2],relativeLabel:h("common.from-now")})+"")&&te(n,t)},d(r){r&&f(e)}}}function gr(s){let e,l=h("schedules.upcoming-runs")+"",t,n,o,r=Ve(s[0].slice(0,5)),i=[];for(let u=0;u{a=null}),Ae()):(a=Rn(),a.c(),v(a,1),a.m(o.parentNode,o))}},i:Q,o:Q,d(u){u&&(f(e),f(n),f(o)),it(i,u),a&&a.d(u)}}}function vr(s){let e,l;return e=new ct({props:{class:"w-full",$$slots:{default:[gr]},$$scope:{ctx:s}}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p(t,[n]){const o={};n&71&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function br(s,e,l){let t,n;Ie(s,St,r=>l(1,t=r)),Ie(s,At,r=>l(2,n=r));let{futureRuns:o=[]}=e;return s.$$set=r=>{"futureRuns"in r&&l(0,o=r.futureRuns)},[o,t,n]}class kr extends Le{constructor(e){super(),Me(this,e,br,vr,He,{futureRuns:0})}}function Vn(s,e,l){const t=s.slice();return t[66]=e[l],t}function Hn(s,e,l){const t=s.slice();return t[66]=e[l],t}function wr(s){var $;let e,l,t,n,o,r,i,a,u,c,d,k;return t=new ut({props:{href:bt({namespace:s[24]}),icon:"chevron-left",$$slots:{default:[Er]},$$scope:{ctx:s}}}),d=new Zn({props:{error:($=s[23])==null?void 0:$.message}}),{c(){e=E("header"),l=E("div"),L(t.$$.fragment),n=P(),o=E("h1"),r=q(s[25]),i=P(),a=E("p"),u=q(s[24]),c=P(),L(d.$$.fragment),this.h()},l(b){e=I(b,"HEADER",{class:!0});var _=T(e);l=I(_,"DIV",{class:!0});var p=T(l);M(t.$$.fragment,p),n=C(p),o=I(p,"H1",{class:!0,"data-testid":!0});var g=T(o);r=B(g,s[25]),g.forEach(f),i=C(p),a=I(p,"P",{class:!0});var R=T(a);u=B(R,s[24]),R.forEach(f),p.forEach(f),_.forEach(f),c=C(b),M(d.$$.fragment,b),this.h()},h(){D(o,"class","mt-8 select-all"),D(o,"data-testid","schedule-name"),D(a,"class","text-sm"),D(l,"class","relative flex flex-col gap-1"),D(e,"class","mb-8")},m(b,_){S(b,e,_),m(e,l),W(t,l,null),m(l,n),m(l,o),m(o,r),m(l,i),m(l,a),m(a,u),S(b,c,_),W(d,b,_),k=!0},p(b,_){var R;const p={};_[2]&512&&(p.$$scope={dirty:_,ctx:b}),t.$set(p);const g={};_[0]&2&&(g.error=(R=b[23])==null?void 0:R.message),d.$set(g)},i(b){k||(v(t.$$.fragment,b),v(d.$$.fragment,b),k=!0)},o(b){w(t.$$.fragment,b),w(d.$$.fragment,b),k=!1},d(b){b&&(f(e),f(c)),U(t),U(d,b)}}}function Er(s){let e=h("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Ir(s){let e,l,t,n;const o=[Dr,Tr],r=[];function i(a,u){return a[17]?0:1}return e=i(s),l=r[e]=o[e](s),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,u){r[e].m(a,u),S(a,t,u),n=!0},p(a,u){let c=e;e=i(a),e===c?r[e].p(a,u):(Se(),w(r[c],1,1,()=>{r[c]=null}),Ae(),l=r[e],l?l.p(a,u):(l=r[e]=o[e](a),l.c()),v(l,1),l.m(t.parentNode,t))},i(a){n||(v(l),n=!0)},o(a){w(l),n=!1},d(a){a&&f(t),r[e].d(a)}}}function Tr(s){var V,Pe,xe,Pt,Ct,Rt,Nt,Vt,Ht,Lt,Mt,Wt,Ut,qt,Bt,yt,zt,Ft,Ot,jt,Qt,Gt,Jt,Kt,Xt,Yt,Zt,xt,el,tl,ll,nl,sl,rl,ol,al,il,ul,cl,fl,ml,dl,pl,hl,_l;let e,l,t,n,o,r,i,a,u,c,d,k,$=((Ct=(Pt=(xe=(Pe=(V=s[65])==null?void 0:V.schedule)==null?void 0:Pe.action)==null?void 0:xe.startWorkflow)==null?void 0:Pt.workflowType)==null?void 0:Ct.name)+"",b,_,p,g,R=h("common.created",{created:Be((Nt=(Rt=s[65])==null?void 0:Rt.info)==null?void 0:Nt.createTime,s[18],{relative:s[19]})})+"",Y,J,ce,G,ae,K,ie,fe,le,Z,me,he,de,ke,pe,_e,ee,we,ue,ne,z,N,O,y,$e,ge,x,We,ye,ve,Qe,oe,F,Te,Ue,be;t=new ut({props:{href:bt({namespace:s[24]}),icon:"chevron-left",$$slots:{default:[Sr]},$$scope:{ctx:s}}}),c=new Gn({props:{status:(Vt=s[65])!=null&&Vt.schedule.state.paused?"Paused":"Running"}});let se=((Lt=(Ht=s[65])==null?void 0:Ht.info)==null?void 0:Lt.updateTime)&&Ln(s);G=new bs({props:{position:"right",label:(Ut=(Wt=(Mt=s[65])==null?void 0:Mt.schedule)==null?void 0:Wt.state)!=null&&Ut.paused?h("schedules.unpause"):h("schedules.pause"),menuLabel:h("schedules.schedule-actions"),id:"schedule-actions",disabled:s[16],$$slots:{default:[Nr]},$$scope:{ctx:s}}}),G.$on("click",s[44]);let j=((Bt=(qt=s[65])==null?void 0:qt.info)==null?void 0:Bt.invalidScheduleError)&&Mn(s),X=s[20]&&Wn(s);me=new dr({props:{namespace:s[24],recentRuns:(zt=(yt=s[65])==null?void 0:yt.info)==null?void 0:zt.recentActions,workflowQuery:s[26]}}),de=new kr({props:{futureRuns:(Ot=(Ft=s[65])==null?void 0:Ft.info)==null?void 0:Ot.futureActionTimes}}),pe=new Ls({props:{spec:(Qt=(jt=s[65])==null?void 0:jt.schedule)==null?void 0:Qt.spec,state:(Jt=(Gt=s[65])==null?void 0:Gt.schedule)==null?void 0:Jt.state,policies:(Xt=(Kt=s[65])==null?void 0:Kt.schedule)==null?void 0:Xt.policies,notes:(xt=(Zt=(Yt=s[65])==null?void 0:Yt.schedule)==null?void 0:Zt.state)==null?void 0:xt.notes}}),ee=new $r({props:{searchAttributes:((el=s[65])==null?void 0:el.searchAttributes)??{}}}),ne=new sr({props:{input:(sl=(nl=(ll=(tl=s[65])==null?void 0:tl.schedule)==null?void 0:ll.action)==null?void 0:nl.startWorkflow)==null?void 0:sl.input}}),N=new Os({props:{calendar:(il=(al=(ol=(rl=s[65])==null?void 0:rl.schedule)==null?void 0:ol.spec)==null?void 0:al.structuredCalendar)==null?void 0:il[0],interval:(ml=(fl=(cl=(ul=s[65])==null?void 0:ul.schedule)==null?void 0:cl.spec)==null?void 0:fl.interval)==null?void 0:ml[0],timezoneName:(hl=(pl=(dl=s[65])==null?void 0:dl.schedule)==null?void 0:pl.spec)==null?void 0:hl.timezoneName}});function qe(A){s[47](A)}function Ye(){return s[48](s[65])}let ze={id:"pause-schedule-modal",confirmType:"primary",confirmText:(_l=s[65])!=null&&_l.schedule.state.paused?h("schedules.unpause"):h("schedules.pause"),cancelText:h("common.cancel"),confirmDisabled:!s[5],$$slots:{content:[Lr],title:[Hr]},$$scope:{ctx:s}};s[2]!==void 0&&(ze.open=s[2]),y=new _t({props:ze}),Ce.push(()=>Ne(y,"open",qe)),y.$on("confirmModal",Ye),y.$on("cancelModal",s[39]);function Ze(A){s[49](A)}let ft={id:"trigger-schedule-modal",large:!0,confirmType:"primary",confirmText:h("schedules.trigger"),cancelText:h("common.cancel"),loading:s[6],$$slots:{content:[Ur],title:[Mr]},$$scope:{ctx:s}};s[3]!==void 0&&(ft.open=s[3]),x=new _t({props:ft}),Ce.push(()=>Ne(x,"open",Ze)),x.$on("confirmModal",s[50]),x.$on("cancelModal",s[33]);function kt(A){s[58](A)}let mt={id:"backfill-schedule-modal",large:!0,confirmType:"primary",confirmText:h("schedules.schedule"),cancelText:h("common.cancel"),loading:s[6],$$slots:{content:[zr],title:[qr]},$$scope:{ctx:s}};s[0]!==void 0&&(mt.open=s[0]),ve=new _t({props:mt}),Ce.push(()=>Ne(ve,"open",kt)),ve.$on("confirmModal",s[59]),ve.$on("cancelModal",s[37]);function wt(A){s[60](A)}function Et(A){s[61](A)}let tt={id:"delete-schedule-modal",confirmType:"destructive",confirmText:h("common.delete"),cancelText:h("common.cancel"),$$slots:{content:[Or],title:[Fr]},$$scope:{ctx:s}};return s[4]!==void 0&&(tt.open=s[4]),s[23]!==void 0&&(tt.error=s[23]),F=new _t({props:tt}),Ce.push(()=>Ne(F,"open",wt)),Ce.push(()=>Ne(F,"error",Et)),F.$on("confirmModal",s[31]),F.$on("cancelModal",s[39]),{c(){e=E("header"),l=E("div"),L(t.$$.fragment),n=P(),o=E("h1"),r=E("span"),i=q(s[25]),a=P(),u=E("div"),L(c.$$.fragment),d=P(),k=E("p"),b=q($),_=P(),p=E("div"),g=E("p"),Y=q(R),J=P(),se&&se.c(),ce=P(),L(G.$$.fragment),ae=P(),K=E("div"),j&&j.c(),ie=P(),X&&X.c(),fe=P(),le=E("div"),Z=E("div"),L(me.$$.fragment),he=P(),L(de.$$.fragment),ke=P(),L(pe.$$.fragment),_e=P(),L(ee.$$.fragment),we=P(),ue=E("div"),L(ne.$$.fragment),z=P(),L(N.$$.fragment),O=P(),L(y.$$.fragment),ge=P(),L(x.$$.fragment),ye=P(),L(ve.$$.fragment),oe=P(),L(F.$$.fragment),this.h()},l(A){e=I(A,"HEADER",{class:!0});var H=T(e);l=I(H,"DIV",{class:!0});var De=T(l);M(t.$$.fragment,De),n=C(De),o=I(De,"H1",{class:!0});var lt=T(o);r=I(lt,"SPAN",{class:!0,"data-testid":!0});var Je=T(r);i=B(Je,s[25]),Je.forEach(f),lt.forEach(f),a=C(De),u=I(De,"DIV",{class:!0});var Ke=T(u);M(c.$$.fragment,Ke),d=C(Ke),k=I(Ke,"P",{});var nt=T(k);b=B(nt,$),nt.forEach(f),Ke.forEach(f),_=C(De),p=I(De,"DIV",{class:!0});var Ge=T(p);g=I(Ge,"P",{});var st=T(g);Y=B(st,R),st.forEach(f),Ge.forEach(f),J=C(De),se&&se.l(De),De.forEach(f),ce=C(H),M(G.$$.fragment,H),H.forEach(f),ae=C(A),K=I(A,"DIV",{class:!0});var Fe=T(K);j&&j.l(Fe),ie=C(Fe),X&&X.l(Fe),fe=C(Fe),le=I(Fe,"DIV",{class:!0});var Oe=T(le);Z=I(Oe,"DIV",{class:!0});var Ee=T(Z);M(me.$$.fragment,Ee),he=C(Ee),M(de.$$.fragment,Ee),ke=C(Ee),M(pe.$$.fragment,Ee),_e=C(Ee),M(ee.$$.fragment,Ee),Ee.forEach(f),we=C(Oe),ue=I(Oe,"DIV",{class:!0});var je=T(ue);M(ne.$$.fragment,je),z=C(je),M(N.$$.fragment,je),je.forEach(f),Oe.forEach(f),Fe.forEach(f),O=C(A),M(y.$$.fragment,A),ge=C(A),M(x.$$.fragment,A),ye=C(A),M(ve.$$.fragment,A),oe=C(A),M(F.$$.fragment,A),this.h()},h(){D(r,"class","select-all"),D(r,"data-testid","schedule-name"),D(o,"class","relative flex items-center"),D(u,"class","flex items-center gap-2 text-lg"),D(p,"class","flex items-center gap-2 text-sm"),D(l,"class","relative flex flex-col gap-4"),D(e,"class","mb-8 flex flex-row justify-between gap-4"),D(Z,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),D(ue,"class","flex w-full flex-col gap-4 xl:w-1/3"),D(le,"class","flex flex-col gap-4 xl:flex-row"),D(K,"class","flex flex-col gap-4 pb-24")},m(A,H){S(A,e,H),m(e,l),W(t,l,null),m(l,n),m(l,o),m(o,r),m(r,i),m(l,a),m(l,u),W(c,u,null),m(u,d),m(u,k),m(k,b),m(l,_),m(l,p),m(p,g),m(g,Y),m(l,J),se&&se.m(l,null),m(e,ce),W(G,e,null),S(A,ae,H),S(A,K,H),j&&j.m(K,null),m(K,ie),X&&X.m(K,null),m(K,fe),m(K,le),m(le,Z),W(me,Z,null),m(Z,he),W(de,Z,null),m(Z,ke),W(pe,Z,null),m(Z,_e),W(ee,Z,null),m(le,we),m(le,ue),W(ne,ue,null),m(ue,z),W(N,ue,null),S(A,O,H),W(y,A,H),S(A,ge,H),W(x,A,H),S(A,ye,H),W(ve,A,H),S(A,oe,H),W(F,A,H),be=!0},p(A,H){var $l,gl,vl,bl,kl,wl,El,Il,Tl,Dl,Sl,Al,Pl,Cl,Rl,Nl,Vl,Hl,Ll,Ml,Wl,Ul,ql,Bl,yl,zl,Fl,Ol,jl,Ql,Gl,Jl,Kl,Xl,Yl,Zl,xl,en,tn,ln,nn,sn,rn,on,an;s=A;const De={};H[2]&512&&(De.$$scope={dirty:H,ctx:s}),t.$set(De);const lt={};H[0]&2&&(lt.status=($l=s[65])!=null&&$l.schedule.state.paused?"Paused":"Running"),c.$set(lt),(!be||H[0]&2)&&$!==($=((wl=(kl=(bl=(vl=(gl=s[65])==null?void 0:gl.schedule)==null?void 0:vl.action)==null?void 0:bl.startWorkflow)==null?void 0:kl.workflowType)==null?void 0:wl.name)+"")&&te(b,$),(!be||H[0]&786434)&&R!==(R=h("common.created",{created:Be((Il=(El=s[65])==null?void 0:El.info)==null?void 0:Il.createTime,s[18],{relative:s[19]})})+"")&&te(Y,R),(Dl=(Tl=s[65])==null?void 0:Tl.info)!=null&&Dl.updateTime?se?se.p(s,H):(se=Ln(s),se.c(),se.m(l,null)):se&&(se.d(1),se=null);const Je={};H[0]&2&&(Je.label=(Pl=(Al=(Sl=s[65])==null?void 0:Sl.schedule)==null?void 0:Al.state)!=null&&Pl.paused?h("schedules.unpause"):h("schedules.pause")),H[0]&65536&&(Je.disabled=s[16]),H[0]&25|H[2]&512&&(Je.$$scope={dirty:H,ctx:s}),G.$set(Je),(Rl=(Cl=s[65])==null?void 0:Cl.info)!=null&&Rl.invalidScheduleError?j?(j.p(s,H),H[0]&2&&v(j,1)):(j=Mn(s),j.c(),v(j,1),j.m(K,ie)):j&&(Se(),w(j,1,1,()=>{j=null}),Ae()),s[20]?X?(X.p(s,H),H[0]&1048576&&v(X,1)):(X=Wn(s),X.c(),v(X,1),X.m(K,fe)):X&&(Se(),w(X,1,1,()=>{X=null}),Ae());const Ke={};H[0]&2&&(Ke.recentRuns=(Vl=(Nl=s[65])==null?void 0:Nl.info)==null?void 0:Vl.recentActions),me.$set(Ke);const nt={};H[0]&2&&(nt.futureRuns=(Ll=(Hl=s[65])==null?void 0:Hl.info)==null?void 0:Ll.futureActionTimes),de.$set(nt);const Ge={};H[0]&2&&(Ge.spec=(Wl=(Ml=s[65])==null?void 0:Ml.schedule)==null?void 0:Wl.spec),H[0]&2&&(Ge.state=(ql=(Ul=s[65])==null?void 0:Ul.schedule)==null?void 0:ql.state),H[0]&2&&(Ge.policies=(yl=(Bl=s[65])==null?void 0:Bl.schedule)==null?void 0:yl.policies),H[0]&2&&(Ge.notes=(Ol=(Fl=(zl=s[65])==null?void 0:zl.schedule)==null?void 0:Fl.state)==null?void 0:Ol.notes),pe.$set(Ge);const st={};H[0]&2&&(st.searchAttributes=((jl=s[65])==null?void 0:jl.searchAttributes)??{}),ee.$set(st);const Fe={};H[0]&2&&(Fe.input=(Kl=(Jl=(Gl=(Ql=s[65])==null?void 0:Ql.schedule)==null?void 0:Gl.action)==null?void 0:Jl.startWorkflow)==null?void 0:Kl.input),ne.$set(Fe);const Oe={};H[0]&2&&(Oe.calendar=(xl=(Zl=(Yl=(Xl=s[65])==null?void 0:Xl.schedule)==null?void 0:Yl.spec)==null?void 0:Zl.structuredCalendar)==null?void 0:xl[0]),H[0]&2&&(Oe.interval=(nn=(ln=(tn=(en=s[65])==null?void 0:en.schedule)==null?void 0:tn.spec)==null?void 0:ln.interval)==null?void 0:nn[0]),H[0]&2&&(Oe.timezoneName=(on=(rn=(sn=s[65])==null?void 0:sn.schedule)==null?void 0:rn.spec)==null?void 0:on.timezoneName),N.$set(Oe);const Ee={};H[0]&2&&(Ee.confirmText=(an=s[65])!=null&&an.schedule.state.paused?h("schedules.unpause"):h("schedules.pause")),H[0]&32&&(Ee.confirmDisabled=!s[5]),H[0]&34|H[2]&512&&(Ee.$$scope={dirty:H,ctx:s}),!$e&&H[0]&4&&($e=!0,Ee.open=s[2],Re(()=>$e=!1)),y.$set(Ee);const je={};H[0]&64&&(je.loading=s[6]),H[2]&512&&(je.$$scope={dirty:H,ctx:s}),!We&&H[0]&8&&(We=!0,je.open=s[3],Re(()=>We=!1)),x.$set(je);const dt={};H[0]&64&&(dt.loading=s[6]),H[0]&65408|H[2]&512&&(dt.$$scope={dirty:H,ctx:s}),!Qe&&H[0]&1&&(Qe=!0,dt.open=s[0],Re(()=>Qe=!1)),ve.$set(dt);const pt={};H[2]&512&&(pt.$$scope={dirty:H,ctx:s}),!Te&&H[0]&16&&(Te=!0,pt.open=s[4],Re(()=>Te=!1)),!Ue&&H[0]&8388608&&(Ue=!0,pt.error=s[23],Re(()=>Ue=!1)),F.$set(pt)},i(A){be||(v(t.$$.fragment,A),v(c.$$.fragment,A),v(G.$$.fragment,A),v(j),v(X),v(me.$$.fragment,A),v(de.$$.fragment,A),v(pe.$$.fragment,A),v(ee.$$.fragment,A),v(ne.$$.fragment,A),v(N.$$.fragment,A),v(y.$$.fragment,A),v(x.$$.fragment,A),v(ve.$$.fragment,A),v(F.$$.fragment,A),be=!0)},o(A){w(t.$$.fragment,A),w(c.$$.fragment,A),w(G.$$.fragment,A),w(j),w(X),w(me.$$.fragment,A),w(de.$$.fragment,A),w(pe.$$.fragment,A),w(ee.$$.fragment,A),w(ne.$$.fragment,A),w(N.$$.fragment,A),w(y.$$.fragment,A),w(x.$$.fragment,A),w(ve.$$.fragment,A),w(F.$$.fragment,A),be=!1},d(A){A&&(f(e),f(ae),f(K),f(O),f(ge),f(ye),f(oe)),U(t),U(c),se&&se.d(),U(G),j&&j.d(),X&&X.d(),U(me),U(de),U(pe),U(ee),U(ne),U(N),U(y,A),U(x,A),U(ve,A),U(F,A)}}}function Dr(s){let e,l;return e=new Kn({props:{title:h("schedules.deleting"),class:"my-2"}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Sr(s){let e=h("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Ln(s){var o,r;let e,l,t=h("common.last-updated",{updated:Be((r=(o=s[65])==null?void 0:o.info)==null?void 0:r.updateTime,s[18],{relative:s[19]})})+"",n;return{c(){e=E("div"),l=E("p"),n=q(t),this.h()},l(i){e=I(i,"DIV",{class:!0});var a=T(e);l=I(a,"P",{});var u=T(l);n=B(u,t),u.forEach(f),a.forEach(f),this.h()},h(){D(e,"class","flex items-center gap-2 text-sm")},m(i,a){S(i,e,a),m(e,l),m(l,n)},p(i,a){var u,c;a[0]&786434&&t!==(t=h("common.last-updated",{updated:Be((c=(u=i[65])==null?void 0:u.info)==null?void 0:c.updateTime,i[18],{relative:i[19]})})+"")&&te(n,t)},d(i){i&&f(e)}}}function Ar(s){let e=h("schedules.trigger")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Pr(s){let e=h("schedules.backfill")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Cr(s){let e=h("common.edit")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Rr(s){let e=h("common.delete")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Nr(s){let e,l,t,n,o,r,i,a;return e=new ht({props:{"data-testid":"trigger-schedule",$$slots:{default:[Ar]},$$scope:{ctx:s}}}),e.$on("click",s[41]),t=new ht({props:{"data-testid":"backfill-schedule",$$slots:{default:[Pr]},$$scope:{ctx:s}}}),t.$on("click",s[42]),o=new ht({props:{"data-testid":"edit-schedule",href:ps({namespace:s[24],scheduleId:s[25]}),$$slots:{default:[Cr]},$$scope:{ctx:s}}}),i=new ht({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[Rr]},$$scope:{ctx:s}}}),i.$on("click",s[43]),{c(){L(e.$$.fragment),l=P(),L(t.$$.fragment),n=P(),L(o.$$.fragment),r=P(),L(i.$$.fragment)},l(u){M(e.$$.fragment,u),l=C(u),M(t.$$.fragment,u),n=C(u),M(o.$$.fragment,u),r=C(u),M(i.$$.fragment,u)},m(u,c){W(e,u,c),S(u,l,c),W(t,u,c),S(u,n,c),W(o,u,c),S(u,r,c),W(i,u,c),a=!0},p(u,c){const d={};c[2]&512&&(d.$$scope={dirty:c,ctx:u}),e.$set(d);const k={};c[2]&512&&(k.$$scope={dirty:c,ctx:u}),t.$set(k);const $={};c[2]&512&&($.$$scope={dirty:c,ctx:u}),o.$set($);const b={};c[2]&512&&(b.$$scope={dirty:c,ctx:u}),i.$set(b)},i(u){a||(v(e.$$.fragment,u),v(t.$$.fragment,u),v(o.$$.fragment,u),v(i.$$.fragment,u),a=!0)},o(u){w(e.$$.fragment,u),w(t.$$.fragment,u),w(o.$$.fragment,u),w(i.$$.fragment,u),a=!1},d(u){u&&(f(l),f(n),f(r)),U(e,u),U(t,u),U(o,u),U(i,u)}}}function Mn(s){var n,o;let e,l,t;return l=new Zn({props:{error:(o=(n=s[65])==null?void 0:n.info)==null?void 0:o.invalidScheduleError}}),{c(){e=E("div"),L(l.$$.fragment),this.h()},l(r){e=I(r,"DIV",{class:!0});var i=T(e);M(l.$$.fragment,i),i.forEach(f),this.h()},h(){D(e,"class","w-full xl:w-1/2")},m(r,i){S(r,e,i),W(l,e,null),t=!0},p(r,i){var u,c;const a={};i[0]&2&&(a.error=(c=(u=r[65])==null?void 0:u.info)==null?void 0:c.invalidScheduleError),l.$set(a)},i(r){t||(v(l.$$.fragment,r),t=!0)},o(r){w(l.$$.fragment,r),t=!1},d(r){r&&f(e),U(l)}}}function Wn(s){let e,l,t,n=s[21].count.toLocaleString()+"",o,r,i,a,u,c,d,k;return i=new ws({props:{key:"common.workflows-plural",count:s[21].count}}),u=new Jn({props:{size:"xs",variant:"ghost",leadingIcon:"retry",$$slots:{default:[Vr]},$$scope:{ctx:s}}}),u.$on("click",s[45]),d=new $s({props:{staticQuery:s[26]}}),{c(){e=E("div"),l=E("div"),t=E("span"),o=q(n),r=P(),L(i.$$.fragment),a=P(),L(u.$$.fragment),c=P(),L(d.$$.fragment),this.h()},l($){e=I($,"DIV",{class:!0});var b=T(e);l=I(b,"DIV",{class:!0});var _=T(l);t=I(_,"SPAN",{"data-testid":!0});var p=T(t);o=B(p,n),r=C(p),M(i.$$.fragment,p),p.forEach(f),a=C(_),M(u.$$.fragment,_),_.forEach(f),c=C(b),M(d.$$.fragment,b),b.forEach(f),this.h()},h(){D(t,"data-testid","workflow-count"),D(l,"class","flex items-center gap-2"),D(e,"class","flex w-full flex-col gap-2 text-lg")},m($,b){S($,e,b),m(e,l),m(l,t),m(t,o),m(t,r),W(i,t,null),m(l,a),W(u,l,null),m(e,c),W(d,e,null),k=!0},p($,b){(!k||b[0]&2097152)&&n!==(n=$[21].count.toLocaleString()+"")&&te(o,n);const _={};b[0]&2097152&&(_.count=$[21].count),i.$set(_);const p={};b[0]&2097152|b[2]&512&&(p.$$scope={dirty:b,ctx:$}),u.$set(p)},i($){k||(v(i.$$.fragment,$),v(u.$$.fragment,$),v(d.$$.fragment,$),k=!0)},o($){w(i.$$.fragment,$),w(u.$$.fragment,$),w(d.$$.fragment,$),k=!1},d($){$&&f(e),U(i),U(u),U(d)}}}function Un(s){let e,l=s[21].newCount.toLocaleString()+"",t;return{c(){e=q("+"),t=q(l)},l(n){e=B(n,"+"),t=B(n,l)},m(n,o){S(n,e,o),S(n,t,o)},p(n,o){o[0]&2097152&&l!==(l=n[21].newCount.toLocaleString()+"")&&te(t,l)},d(n){n&&(f(e),f(t))}}}function Vr(s){let e,l=s[21].newCount>0&&Un(s);return{c(){l&&l.c(),e=re()},l(t){l&&l.l(t),e=re()},m(t,n){l&&l.m(t,n),S(t,e,n)},p(t,n){t[21].newCount>0?l?l.p(t,n):(l=Un(t),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){t&&f(e),l&&l.d(t)}}}function Hr(s){var n;let e,l=((n=s[65])!=null&&n.schedule.state.paused?h("schedules.unpause-modal-title"):h("schedules.pause-modal-title"))+"",t;return{c(){e=E("h3"),t=q(l),this.h()},l(o){e=I(o,"H3",{slot:!0});var r=T(e);t=B(r,l),r.forEach(f),this.h()},h(){D(e,"slot","title")},m(o,r){S(o,e,r),m(e,t)},p(o,r){var i;r[0]&2&&l!==(l=((i=o[65])!=null&&i.schedule.state.paused?h("schedules.unpause-modal-title"):h("schedules.pause-modal-title"))+"")&&te(t,l)},d(o){o&&f(e)}}}function Lr(s){var _,p;let e,l,t=((_=s[65])!=null&&_.schedule.state.paused?h("schedules.unpause-modal-confirmation",{schedule:s[25]}):h("schedules.pause-modal-confirmation",{schedule:s[25]}))+"",n,o,r,i=((p=s[65])!=null&&p.schedule.state.paused?h("schedules.unpause-reason"):h("schedules.pause-reason"))+"",a,u,c,d,k;function $(g){s[46](g)}let b={id:"pause-reason",placeholder:h("common.reason"),label:h("common.reason"),labelHidden:!0};return s[5]!==void 0&&(b.value=s[5]),c=new vs({props:b}),Ce.push(()=>Ne(c,"value",$)),{c(){e=E("div"),l=E("p"),n=q(t),o=P(),r=E("p"),a=q(i),u=P(),L(c.$$.fragment),this.h()},l(g){e=I(g,"DIV",{slot:!0});var R=T(e);l=I(R,"P",{});var Y=T(l);n=B(Y,t),Y.forEach(f),o=C(R),r=I(R,"P",{class:!0});var J=T(r);a=B(J,i),J.forEach(f),u=C(R),M(c.$$.fragment,R),R.forEach(f),this.h()},h(){D(r,"class","my-4"),D(e,"slot","content")},m(g,R){S(g,e,R),m(e,l),m(l,n),m(e,o),m(e,r),m(r,a),m(e,u),W(c,e,null),k=!0},p(g,R){var J,ce;(!k||R[0]&2)&&t!==(t=((J=g[65])!=null&&J.schedule.state.paused?h("schedules.unpause-modal-confirmation",{schedule:g[25]}):h("schedules.pause-modal-confirmation",{schedule:g[25]}))+"")&&te(n,t),(!k||R[0]&2)&&i!==(i=((ce=g[65])!=null&&ce.schedule.state.paused?h("schedules.unpause-reason"):h("schedules.pause-reason"))+"")&&te(a,i);const Y={};!d&&R[0]&32&&(d=!0,Y.value=g[5],Re(()=>d=!1)),c.$set(Y)},i(g){k||(v(c.$$.fragment,g),k=!0)},o(g){w(c.$$.fragment,g),k=!1},d(g){g&&f(e),U(c)}}}function Mr(s){let e,l=h("schedules.trigger-modal-title")+"",t;return{c(){e=E("h3"),t=q(l),this.h()},l(n){e=I(n,"H3",{slot:!0});var o=T(e);t=B(o,l),o.forEach(f),this.h()},h(){D(e,"slot","title")},m(n,o){S(n,e,o),m(e,t)},p:Q,d(n){n&&f(e)}}}function qn(s){let e,l;return e=new Yn({props:{id:s[66].value,value:s[66].value,label:s[66].label,description:s[66].description}}),{c(){L(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){W(e,t,n),l=!0},p:Q,i(t){l||(v(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){U(e,t)}}}function Wr(s){let e,l,t=Ve(s[29]),n=[];for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rw(n[r],1,1,()=>{n[r]=null});return{c(){for(let r=0;rNe(o,"hour",de)),Ce.push(()=>Ne(o,"minute",ke)),Ce.push(()=>Ne(o,"second",pe)),c=new gn({props:{label:h("common.end"),selected:s[9],todayLabel:h("common.today"),closeLabel:h("common.close"),clearLabel:h("common.clear-input-button-label")}}),c.$on("datechange",s[36]);function ee(N){s[54](N)}function we(N){s[55](N)}function ue(N){s[56](N)}let ne={twelveHourClock:!1};s[13]!==void 0&&(ne.hour=s[13]),s[14]!==void 0&&(ne.minute=s[14]),s[15]!==void 0&&(ne.second=s[15]),k=new vn({props:ne}),Ce.push(()=>Ne(k,"hour",ee)),Ce.push(()=>Ne(k,"minute",we)),Ce.push(()=>Ne(k,"second",ue)),R=new gs({props:{name:"clock","aria-hidden":"true"}}),Z=new Xn({props:{group:s[28],name:"backfill-event-id",class:"h-auto overflow-auto",$$slots:{default:[Br]},$$scope:{ctx:s}}});let z=!s[7]&&yn(s);return{c(){e=E("div"),l=E("div"),L(t.$$.fragment),n=P(),L(o.$$.fragment),u=P(),L(c.$$.fragment),d=P(),L(k.$$.fragment),p=P(),g=E("div"),L(R.$$.fragment),Y=P(),J=E("span"),G=q(ce),ae=q(` Universal Standard Time (UTC)`),K=P(),ie=E("hr"),fe=P(),le=E("div"),L(Z.$$.fragment),me=P(),z&&z.c(),this.h()},l(N){e=I(N,"DIV",{slot:!0,class:!0});var O=T(e);l=I(O,"DIV",{class:!0});var y=T(l);M(t.$$.fragment,y),n=C(y),M(o.$$.fragment,y),u=C(y),M(c.$$.fragment,y),d=C(y),M(k.$$.fragment,y),p=C(y),g=I(y,"DIV",{class:!0});var $e=T(g);M(R.$$.fragment,$e),Y=C($e),J=I($e,"SPAN",{class:!0});var ge=T(J);G=B(ge,ce),ae=B(ge,` Universal Standard Time (UTC)`),ge.forEach(f),$e.forEach(f),y.forEach(f),K=C(O),ie=I(O,"HR",{tabindex:!0,"aria-hidden":!0,class:!0}),fe=C(O),le=I(O,"DIV",{class:!0});var x=T(le);M(Z.$$.fragment,x),me=C(x),z&&z.l(x),x.forEach(f),O.forEach(f),this.h()},h(){D(J,"class","text-xs font-normal text-slate-500"),D(g,"class","flex w-full flex-row items-center gap-2"),D(l,"class","flex flex-col gap-2 p-2"),D(ie,"tabindex","-1"),D(ie,"aria-hidden","true"),D(ie,"class","my-4 w-full border-subtle"),D(le,"class","flex max-h-52 flex-col gap-2 overflow-auto"),D(e,"slot","content"),D(e,"class","p-0")},m(N,O){S(N,e,O),m(e,l),W(t,l,null),m(l,n),W(o,l,null),m(l,u),W(c,l,null),m(l,d),W(k,l,null),m(l,p),m(l,g),W(R,g,null),m(g,Y),m(g,J),m(J,G),m(J,ae),m(e,K),m(e,ie),m(e,fe),m(e,le),W(Z,le,null),m(le,me),z&&z.m(le,null),he=!0},p(N,O){const y={};O[0]&256&&(y.selected=N[8]),t.$set(y);const $e={};!r&&O[0]&1024&&(r=!0,$e.hour=N[10],Re(()=>r=!1)),!i&&O[0]&2048&&(i=!0,$e.minute=N[11],Re(()=>i=!1)),!a&&O[0]&4096&&(a=!0,$e.second=N[12],Re(()=>a=!1)),o.$set($e);const ge={};O[0]&512&&(ge.selected=N[9]),c.$set(ge);const x={};!$&&O[0]&8192&&($=!0,x.hour=N[13],Re(()=>$=!1)),!b&&O[0]&16384&&(b=!0,x.minute=N[14],Re(()=>b=!1)),!_&&O[0]&32768&&(_=!0,x.second=N[15],Re(()=>_=!1)),k.$set(x);const We={};O[0]&128|O[2]&512&&(We.$$scope={dirty:O,ctx:N}),Z.$set(We),N[7]?z&&(Se(),w(z,1,1,()=>{z=null}),Ae()):z?(z.p(N,O),O[0]&128&&v(z,1)):(z=yn(N),z.c(),v(z,1),z.m(le,null))},i(N){he||(v(t.$$.fragment,N),v(o.$$.fragment,N),v(c.$$.fragment,N),v(k.$$.fragment,N),v(R.$$.fragment,N),v(Z.$$.fragment,N),v(z),he=!0)},o(N){w(t.$$.fragment,N),w(o.$$.fragment,N),w(c.$$.fragment,N),w(k.$$.fragment,N),w(R.$$.fragment,N),w(Z.$$.fragment,N),w(z),he=!1},d(N){N&&f(e),U(t),U(o),U(c),U(k),U(R),U(Z),z&&z.d()}}}function Fr(s){let e,l=h("schedules.delete-modal-title")+"",t;return{c(){e=E("h3"),t=q(l),this.h()},l(n){e=I(n,"H3",{slot:!0});var o=T(e);t=B(o,l),o.forEach(f),this.h()},h(){D(e,"slot","title")},m(n,o){S(n,e,o),m(e,t)},p:Q,d(n){n&&f(e)}}}function Or(s){let e,l,t=h("schedules.delete-modal-confirmation",{schedule:s[25]})+"",n;return{c(){e=E("div"),l=E("p"),n=q(t),this.h()},l(o){e=I(o,"DIV",{slot:!0});var r=T(e);l=I(r,"P",{});var i=T(l);n=B(i,t),i.forEach(f),r.forEach(f),this.h()},h(){D(e,"slot","content")},m(o,r){S(o,e,r),m(e,l),m(l,n)},p:Q,d(o){o&&f(e)}}}function jr(s){let e,l,t,n,o,r,i,a,u;return t=new ut({props:{href:bt({namespace:s[24]}),icon:"chevron-left",$$slots:{default:[Qr]},$$scope:{ctx:s}}}),a=new Kn({}),{c(){e=E("header"),l=E("div"),L(t.$$.fragment),n=P(),o=E("h1"),r=q(s[25]),i=P(),L(a.$$.fragment),this.h()},l(c){e=I(c,"HEADER",{class:!0});var d=T(e);l=I(d,"DIV",{class:!0});var k=T(l);M(t.$$.fragment,k),n=C(k),o=I(k,"H1",{class:!0,"data-testid":!0});var $=T(o);r=B($,s[25]),$.forEach(f),k.forEach(f),d.forEach(f),i=C(c),M(a.$$.fragment,c),this.h()},h(){D(o,"class","select-all"),D(o,"data-testid","schedule-name"),D(l,"class","relative flex flex-col gap-4"),D(e,"class","mb-8")},m(c,d){S(c,e,d),m(e,l),W(t,l,null),m(l,n),m(l,o),m(o,r),S(c,i,d),W(a,c,d),u=!0},p(c,d){const k={};d[2]&512&&(k.$$scope={dirty:d,ctx:c}),t.$set(k)},i(c){u||(v(t.$$.fragment,c),v(a.$$.fragment,c),u=!0)},o(c){w(t.$$.fragment,c),w(a.$$.fragment,c),u=!1},d(c){c&&(f(e),f(i)),U(t),U(a,c)}}}function Qr(s){let e=h("schedules.back-to-schedules")+"",l;return{c(){l=q(e)},l(t){l=B(t,e)},m(t,n){S(t,l,n)},p:Q,d(t){t&&f(l)}}}function Gr(s){let e,l,t,n={ctx:s,current:null,token:null,hasCatch:!0,pending:jr,then:Ir,catch:wr,value:65,error:23,blocks:[,,,]};return gt(l=s[1],n),{c(){e=re(),n.block.c()},l(o){e=re(),n.block.l(o)},m(o,r){S(o,e,r),n.block.m(o,n.anchor=r),n.mount=()=>e.parentNode,n.anchor=e,t=!0},p(o,r){s=o,n.ctx=s,r[0]&2&&l!==(l=s[1])&>(l,n)||Fn(n,s,r)},i(o){t||(v(n.block),t=!0)},o(o){for(let r=0;r<3;r+=1){const i=n.blocks[r];w(i)}t=!1},d(o){o&&f(e),n.block.d(o),n.token=null,n=null}}}function Jr(s,e,l){let t,n,o,r,i,a,u,c,d,k;Ie(s,$t,V=>l(17,o=V)),Ie(s,zn,V=>l(63,i=V)),Ie(s,St,V=>l(18,a=V)),Ie(s,At,V=>l(19,u=V)),Ie(s,fs,V=>l(20,c=V)),Ie(s,ms,V=>l(21,d=V)),Ie(s,dn,V=>l(22,k=V));let $=i.params.namespace,b=i.params.schedule,_=`TemporalScheduledById="${b}"`;const p={namespace:$,scheduleId:Tt(b)};let g=rt(p),R=!1,Y=!1,J=!1,ce=!1,G="",ae="",K=!1,ie=os("Unspecified");Ie(s,ie,V=>l(62,n=V));let fe=[{description:h("schedules.trigger-unspecified-description"),label:h("schedules.trigger-unspecified-title"),value:"Unspecified"},{description:h("schedules.trigger-buffer-all-description"),label:h("schedules.trigger-buffer-all-title"),value:"BufferAll"},{description:h("schedules.trigger-allow-all-description"),label:h("schedules.trigger-allow-all-title"),value:"AllowAll"},{description:h("schedules.trigger-skip-description"),label:h("schedules.trigger-skip-title"),value:"Skip"},{description:h("schedules.trigger-buffer-one-description"),label:h("schedules.trigger-buffer-one-title"),value:"BufferOne"},{description:h("schedules.trigger-cancel-other-description"),label:h("schedules.trigger-cancel-other-title"),value:"CancelOther"},{description:h("schedules.trigger-terminate-other-description"),label:h("schedules.trigger-terminate-other-title"),value:"TerminateOther"}],le=As();Ie(s,le,V=>l(40,r=V));const Z=async()=>{l(23,ae="");try{et($t,o=!0,o),await Es({namespace:$,scheduleId:b}),l(4,ce=!1),setTimeout(()=>{et($t,o=!1,o),as(bt({namespace:$}))},2e3),l(5,G="")}catch(V){l(23,ae=h("schedules.delete-schedule-error",{error:V==null?void 0:V.message})),et($t,o=!1,o)}},me=async V=>{var Pe,xe;!((xe=(Pe=V==null?void 0:V.schedule)===null||Pe===void 0?void 0:Pe.state)===null||xe===void 0)&&xe.paused?await Is({namespace:$,scheduleId:b,reason:G}):await Ts({namespace:$,scheduleId:b,reason:G}),l(1,g=rt(p)),l(5,G=""),l(2,R=!1)},he=()=>{l(3,Y=!1),et(ie,n="Unspecified",n)},de=async()=>{l(6,K=!0),await Ds({namespace:$,scheduleId:b,overlapPolicy:n}),setTimeout(()=>{l(1,g=rt(p)),he(),l(6,K=!1)},1e3)};let ke=!1,pe=Xe(new Date),_e=Xe(new Date),ee="",we="",ue="",ne="",z="",N="";const O=V=>{l(8,pe=Xe(V.detail))},y=V=>{l(9,_e=Xe(V.detail))},$e=()=>{const V=new Date(Date.now()),Pe=ks(V,1);l(10,ee=V.getUTCHours().toString()),l(11,we=V.getUTCMinutes().toString()),l(12,ue=V.getUTCSeconds().toString()),l(13,ne=Pe.getUTCHours().toString()),l(14,z=Pe.getUTCMinutes().toString()),l(15,N=Pe.getUTCSeconds().toString()),l(8,pe=Xe(new Date)),l(9,_e=ne{l(0,J=!1),l(7,ke=!1),et(ie,n="Unspecified",n)},x=async()=>{l(6,K=!0);const V=pn({date:pe,hour:ee,minute:we,second:ue}),Pe=pn({date:_e,hour:ne,minute:z,second:N});await Ss({namespace:$,scheduleId:b,overlapPolicy:n,startTime:V,endTime:Pe}),setTimeout(()=>{l(1,g=rt(p)),ge(),l(6,K=!1)},1e3)},We=()=>{l(5,G="")},ye=()=>l(3,Y=!0),ve=()=>l(0,J=!0),Qe=()=>l(4,ce=!0),oe=()=>l(2,R=!0),F=()=>{l(1,g=rt(p)),et(dn,k=Date.now(),k)};function Te(V){G=V,l(5,G)}function Ue(V){R=V,l(2,R)}const be=V=>me(V);function se(V){Y=V,l(3,Y)}const j=()=>de();function X(V){ee=V,l(10,ee)}function qe(V){we=V,l(11,we)}function Ye(V){ue=V,l(12,ue)}function ze(V){ne=V,l(13,ne)}function Ze(V){z=V,l(14,z)}function ft(V){N=V,l(15,N)}const kt=()=>l(7,ke=!0);function mt(V){J=V,l(0,J)}const wt=()=>x();function Et(V){ce=V,l(4,ce)}function tt(V){ae=V,l(23,ae)}return s.$$.update=()=>{s.$$.dirty[1]&512&&l(16,t=r.namespaceWriteDisabled($)||!ds()),s.$$.dirty[0]&1&&J&&$e()},[J,g,R,Y,ce,G,K,ke,pe,_e,ee,we,ue,ne,z,N,t,o,a,u,c,d,k,ae,$,b,_,p,ie,fe,le,Z,me,he,de,O,y,ge,x,We,r,ye,ve,Qe,oe,F,Te,Ue,be,se,j,X,qe,Ye,ze,Ze,ft,kt,mt,wt,Et,tt]}class Kr extends Le{constructor(e){super(),Me(this,e,Jr,Gr,He,{},null,[-1,-1,-1])}}function Xr(s){let e,l,t,n;return e=new ns({props:{title:`Schedule | ${s[1]}`,url:s[0].url.href}}),t=new Kr({}),{c(){L(e.$$.fragment),l=P(),L(t.$$.fragment)},l(o){M(e.$$.fragment,o),l=C(o),M(t.$$.fragment,o)},m(o,r){W(e,o,r),S(o,l,r),W(t,o,r),n=!0},p(o,[r]){const i={};r&1&&(i.url=o[0].url.href),e.$set(i)},i(o){n||(v(e.$$.fragment,o),v(t.$$.fragment,o),n=!0)},o(o){w(e.$$.fragment,o),w(t.$$.fragment,o),n=!1},d(o){o&&f(l),U(e,o),U(t,o)}}}function Yr(s,e,l){let t;Ie(s,zn,o=>l(0,t=o));const n=t.params.schedule;return[t,n]}class Mo extends Le{constructor(e){super(),Me(this,e,Yr,Xr,He,{})}}export{Mo as component}; diff --git a/ui/assets/local/_app/immutable/nodes/25.D4nY7nvZ.js b/ui/assets/local/_app/immutable/nodes/25.CRXnl26E.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/25.D4nY7nvZ.js rename to ui/assets/local/_app/immutable/nodes/25.CRXnl26E.js index 5a908577f..5ed3e39d9 100644 --- a/ui/assets/local/_app/immutable/nodes/25.D4nY7nvZ.js +++ b/ui/assets/local/_app/immutable/nodes/25.CRXnl26E.js @@ -1 +1 @@ -import{s as g,x as $,i as b,f as k,c as w,v as c,b as B,d as D}from"../chunks/scheduler.C46pS-76.js";import{S,i as y,t as l,b as i,c as m,a as f,m as p,d}from"../chunks/index.dOVbn71B.js";import{p as v}from"../chunks/stores.Dz-RNcUk.js";import{P as G}from"../chunks/page-title.DNhqE1Lj.js";import{h as H,u as J}from"../chunks/await_block.BfN27BCg.js";import{S as K}from"../chunks/schedule-form-view.BfrSFD2l.js";import{L as V}from"../chunks/loading.BLsNkl8r.js";import{t as X}from"../chunks/translate.BBe5dcco.js";import{f as Y,s as Z}from"../chunks/schedules.DZMegXhn.js";import{d as x}from"../chunks/encode-uri.BOkQ1rrX.js";function _(a){a[6]=a[8].schedule,a[7]=a[8].searchAttributes}function ee(a){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function te(a){_(a);let t,s;return t=new K({props:{onConfirm:a[1],schedule:a[6],searchAttributes:a[7]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,n){p(t,e,n),s=!0},p(e,n){_(e)},i(e){s||(l(t.$$.fragment,e),s=!0)},o(e){i(t.$$.fragment,e),s=!1},d(e){d(t,e)}}}function re(a){let t,s;return t=new V({props:{title:X("schedules.loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,n){p(t,e,n),s=!0},p:c,i(e){s||(l(t.$$.fragment,e),s=!0)},o(e){i(t.$$.fragment,e),s=!1},d(e){d(t,e)}}}function ne(a){let t,s,e={ctx:a,current:null,token:null,hasCatch:!1,pending:re,then:te,catch:ee,value:8,blocks:[,,,]};return H(a[0],e),{c(){t=$(),e.block.c()},l(n){t=$(),e.block.l(n)},m(n,r){b(n,t,r),e.block.m(n,e.anchor=r),e.mount=()=>t.parentNode,e.anchor=t,s=!0},p(n,[r]){a=n,J(e,a,r)},i(n){s||(l(e.block),s=!0)},o(n){for(let r=0;r<3;r+=1){const o=e.blocks[r];i(o)}s=!1},d(n){n&&k(t),e.block.d(n),e.token=null,e=null}}}function ae(a,t,s){let e;w(a,v,h=>s(2,e=h));let n=e.params.namespace,r=e.params.schedule;const o={namespace:n,scheduleId:x(r)};return[Y(o),(h,E,I)=>{const{name:A,workflowType:C,workflowId:F,taskQueue:P,input:L,encoding:O,hour:q,minute:M,second:N,phase:Q,cronString:R,daysOfWeek:T,daysOfMonth:U,days:W,months:j,searchAttributes:z}=E;Z({action:{namespace:n,name:A,workflowType:C,workflowId:F,taskQueue:P,input:L,encoding:O,searchAttributes:z},spec:{hour:q,minute:M,second:N,phase:Q,cronString:R},presets:{preset:h,daysOfWeek:T,daysOfMonth:U,months:j,days:W}},I,r)}]}class se extends S{constructor(t){super(),y(this,t,ae,ne,g,{})}}function oe(a){let t,s,e,n;return t=new G({props:{title:`Schedule Edit | ${a[0].params.schedule}`,url:a[0].url.href}}),e=new se({}),{c(){m(t.$$.fragment),s=B(),m(e.$$.fragment)},l(r){f(t.$$.fragment,r),s=D(r),f(e.$$.fragment,r)},m(r,o){p(t,r,o),b(r,s,o),p(e,r,o),n=!0},p(r,[o]){const u={};o&1&&(u.title=`Schedule Edit | ${r[0].params.schedule}`),o&1&&(u.url=r[0].url.href),t.$set(u)},i(r){n||(l(t.$$.fragment,r),l(e.$$.fragment,r),n=!0)},o(r){i(t.$$.fragment,r),i(e.$$.fragment,r),n=!1},d(r){r&&k(s),d(t,r),d(e,r)}}}function ce(a,t,s){let e;return w(a,v,n=>s(0,e=n)),[e]}class Se extends S{constructor(t){super(),y(this,t,ce,oe,g,{})}}export{Se as component}; +import{s as g,x as $,i as b,f as k,c as w,v as c,b as B,d as D}from"../chunks/scheduler.C46pS-76.js";import{S,i as y,t as l,b as i,c as m,a as f,m as p,d}from"../chunks/index.dOVbn71B.js";import{p as v}from"../chunks/stores.Ds4o9nwd.js";import{P as G}from"../chunks/page-title.DNhqE1Lj.js";import{h as H,u as J}from"../chunks/await_block.BfN27BCg.js";import{S as K}from"../chunks/schedule-form-view.Sl7Y_1Oq.js";import{L as V}from"../chunks/loading.BLsNkl8r.js";import{t as X}from"../chunks/translate.BBe5dcco.js";import{f as Y,s as Z}from"../chunks/schedules.BI2Sbv1C.js";import{d as x}from"../chunks/encode-uri.BOkQ1rrX.js";function _(a){a[6]=a[8].schedule,a[7]=a[8].searchAttributes}function ee(a){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function te(a){_(a);let t,s;return t=new K({props:{onConfirm:a[1],schedule:a[6],searchAttributes:a[7]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,n){p(t,e,n),s=!0},p(e,n){_(e)},i(e){s||(l(t.$$.fragment,e),s=!0)},o(e){i(t.$$.fragment,e),s=!1},d(e){d(t,e)}}}function re(a){let t,s;return t=new V({props:{title:X("schedules.loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,n){p(t,e,n),s=!0},p:c,i(e){s||(l(t.$$.fragment,e),s=!0)},o(e){i(t.$$.fragment,e),s=!1},d(e){d(t,e)}}}function ne(a){let t,s,e={ctx:a,current:null,token:null,hasCatch:!1,pending:re,then:te,catch:ee,value:8,blocks:[,,,]};return H(a[0],e),{c(){t=$(),e.block.c()},l(n){t=$(),e.block.l(n)},m(n,r){b(n,t,r),e.block.m(n,e.anchor=r),e.mount=()=>t.parentNode,e.anchor=t,s=!0},p(n,[r]){a=n,J(e,a,r)},i(n){s||(l(e.block),s=!0)},o(n){for(let r=0;r<3;r+=1){const o=e.blocks[r];i(o)}s=!1},d(n){n&&k(t),e.block.d(n),e.token=null,e=null}}}function ae(a,t,s){let e;w(a,v,h=>s(2,e=h));let n=e.params.namespace,r=e.params.schedule;const o={namespace:n,scheduleId:x(r)};return[Y(o),(h,E,I)=>{const{name:A,workflowType:C,workflowId:F,taskQueue:P,input:L,encoding:O,hour:q,minute:M,second:N,phase:Q,cronString:R,daysOfWeek:T,daysOfMonth:U,days:W,months:j,searchAttributes:z}=E;Z({action:{namespace:n,name:A,workflowType:C,workflowId:F,taskQueue:P,input:L,encoding:O,searchAttributes:z},spec:{hour:q,minute:M,second:N,phase:Q,cronString:R},presets:{preset:h,daysOfWeek:T,daysOfMonth:U,months:j,days:W}},I,r)}]}class se extends S{constructor(t){super(),y(this,t,ae,ne,g,{})}}function oe(a){let t,s,e,n;return t=new G({props:{title:`Schedule Edit | ${a[0].params.schedule}`,url:a[0].url.href}}),e=new se({}),{c(){m(t.$$.fragment),s=B(),m(e.$$.fragment)},l(r){f(t.$$.fragment,r),s=D(r),f(e.$$.fragment,r)},m(r,o){p(t,r,o),b(r,s,o),p(e,r,o),n=!0},p(r,[o]){const u={};o&1&&(u.title=`Schedule Edit | ${r[0].params.schedule}`),o&1&&(u.url=r[0].url.href),t.$set(u)},i(r){n||(l(t.$$.fragment,r),l(e.$$.fragment,r),n=!0)},o(r){i(t.$$.fragment,r),i(e.$$.fragment,r),n=!1},d(r){r&&k(s),d(t,r),d(e,r)}}}function ce(a,t,s){let e;return w(a,v,n=>s(0,e=n)),[e]}class Se extends S{constructor(t){super(),y(this,t,ce,oe,g,{})}}export{Se as component}; diff --git a/ui/assets/local/_app/immutable/nodes/26.CDQOaka1.js b/ui/assets/local/_app/immutable/nodes/26.BjioyYdH.js similarity index 89% rename from ui/assets/local/_app/immutable/nodes/26.CDQOaka1.js rename to ui/assets/local/_app/immutable/nodes/26.BjioyYdH.js index 12c06cdf8..2ae61db07 100644 --- a/ui/assets/local/_app/immutable/nodes/26.CDQOaka1.js +++ b/ui/assets/local/_app/immutable/nodes/26.BjioyYdH.js @@ -1 +1 @@ -import{s as l,v as W,c as g,b as j,d as z,i as B,f as D}from"../chunks/scheduler.C46pS-76.js";import{S as d,i as _,c as m,a as i,m as p,t as f,b as u,d as $}from"../chunks/index.dOVbn71B.js";import{p as h}from"../chunks/stores.Dz-RNcUk.js";import{P as E}from"../chunks/page-title.DNhqE1Lj.js";import{S as F}from"../chunks/schedule-form-view.BfrSFD2l.js";import{a as G}from"../chunks/schedules.DZMegXhn.js";function H(a){let t,n;return t=new F({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){i(t.$$.fragment,e)},m(e,s){p(t,e,s),n=!0},p:W,i(e){n||(f(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){$(t,e)}}}function J(a,t,n){let e;g(a,h,o=>n(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:b,taskQueue:y,input:C,encoding:k,hour:v,minute:P,second:x,phase:O,cronString:q,daysOfWeek:A,daysOfMonth:I,days:M,months:Q,searchAttributes:T}=c;G({action:{namespace:s,name:w,workflowType:S,workflowId:b,taskQueue:y,input:C,encoding:k,searchAttributes:T},spec:{hour:v,minute:P,second:x,phase:O,cronString:q},presets:{preset:o,daysOfWeek:A,daysOfMonth:I,months:Q,days:M}})}]}class K extends d{constructor(t){super(),_(this,t,J,H,l,{})}}function L(a){let t,n,e,s;return t=new E({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(t.$$.fragment),n=j(),m(e.$$.fragment)},l(r){i(t.$$.fragment,r),n=z(r),i(e.$$.fragment,r)},m(r,o){p(t,r,o),B(r,n,o),p(e,r,o),s=!0},p(r,[o]){const c={};o&1&&(c.url=r[0].url.href),t.$set(c)},i(r){s||(f(t.$$.fragment,r),f(e.$$.fragment,r),s=!0)},o(r){u(t.$$.fragment,r),u(e.$$.fragment,r),s=!1},d(r){r&&D(n),$(t,r),$(e,r)}}}function N(a,t,n){let e;g(a,h,r=>n(0,e=r));const s=e.params.namespace;return[e,s]}class ne extends d{constructor(t){super(),_(this,t,N,L,l,{})}}export{ne as component}; +import{s as l,v as W,c as g,b as j,d as z,i as B,f as D}from"../chunks/scheduler.C46pS-76.js";import{S as d,i as _,c as m,a as i,m as p,t as f,b as u,d as $}from"../chunks/index.dOVbn71B.js";import{p as h}from"../chunks/stores.Ds4o9nwd.js";import{P as E}from"../chunks/page-title.DNhqE1Lj.js";import{S as F}from"../chunks/schedule-form-view.Sl7Y_1Oq.js";import{a as G}from"../chunks/schedules.BI2Sbv1C.js";function H(a){let t,n;return t=new F({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){i(t.$$.fragment,e)},m(e,s){p(t,e,s),n=!0},p:W,i(e){n||(f(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){$(t,e)}}}function J(a,t,n){let e;g(a,h,o=>n(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:b,taskQueue:y,input:C,encoding:k,hour:v,minute:P,second:x,phase:O,cronString:q,daysOfWeek:A,daysOfMonth:I,days:M,months:Q,searchAttributes:T}=c;G({action:{namespace:s,name:w,workflowType:S,workflowId:b,taskQueue:y,input:C,encoding:k,searchAttributes:T},spec:{hour:v,minute:P,second:x,phase:O,cronString:q},presets:{preset:o,daysOfWeek:A,daysOfMonth:I,months:Q,days:M}})}]}class K extends d{constructor(t){super(),_(this,t,J,H,l,{})}}function L(a){let t,n,e,s;return t=new E({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(t.$$.fragment),n=j(),m(e.$$.fragment)},l(r){i(t.$$.fragment,r),n=z(r),i(e.$$.fragment,r)},m(r,o){p(t,r,o),B(r,n,o),p(e,r,o),s=!0},p(r,[o]){const c={};o&1&&(c.url=r[0].url.href),t.$set(c)},i(r){s||(f(t.$$.fragment,r),f(e.$$.fragment,r),s=!0)},o(r){u(t.$$.fragment,r),u(e.$$.fragment,r),s=!1},d(r){r&&D(n),$(t,r),$(e,r)}}}function N(a,t,n){let e;g(a,h,r=>n(0,e=r));const s=e.params.namespace;return[e,s]}class ne extends d{constructor(t){super(),_(this,t,N,L,l,{})}}export{ne as component}; diff --git a/ui/assets/local/_app/immutable/nodes/28.7A7izdim.js b/ui/assets/local/_app/immutable/nodes/28.CktOawpV.js similarity index 98% rename from ui/assets/local/_app/immutable/nodes/28.7A7izdim.js rename to ui/assets/local/_app/immutable/nodes/28.CktOawpV.js index 670594388..f4df5a1d7 100644 --- a/ui/assets/local/_app/immutable/nodes/28.7A7izdim.js +++ b/ui/assets/local/_app/immutable/nodes/28.CktOawpV.js @@ -1 +1 @@ -import{s as re,h as v,t as V,b as N,j as T,k as y,l as S,f as c,d as Q,m as b,i as h,n as R,c as ee,x as W,q as z,v as C,y as fe,H as ge,o as x,a as tt,u as lt,g as rt,e as st,a2 as me,w as ot}from"../chunks/scheduler.C46pS-76.js";import{S as se,i as ae,c as H,a as q,m as A,t as g,b as k,d as P,g as L,e as Y}from"../chunks/index.dOVbn71B.js";import{p as $e}from"../chunks/stores.Dz-RNcUk.js";import{P as it}from"../chunks/page-title.DNhqE1Lj.js";import{h as te,u as he}from"../chunks/await_block.BfN27BCg.js";import{P as be,W as ft}from"../chunks/worker-table.CpbGX-wq.js";import{T as ut,a as ct,b as ke}from"../chunks/tab.CpZOxof2.js";import{t as j}from"../chunks/translate.BBe5dcco.js";import{a as _t,b as mt,c as $t,d as ht,e as we,f as ve,h as Te,p as dt,i as pt,j as Ee,g as ye}from"../chunks/pollers-service.YXEUeA9H.js";import{p as gt}from"../chunks/persist-store.Bvu2qNDI.js";import{e as K,u as ue,o as ce}from"../chunks/each.C6O0oV7R.js";import{B as bt}from"../chunks/badge.jG5hkqHT.js";import{C as de}from"../chunks/compatibility-badge.DuX1WIlP.js";import{E as _e}from"../chunks/empty-state.BO9uOKUe.js";import{T as oe,a as ie,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as at,r as kt,f as le}from"../chunks/time-format.D2wF3ave.js";import"../chunks/auth-user.BOlglCm6.js";import"../chunks/toaster.D-OAJjvv.js";import"../chunks/paths.DlAH43M2.js";import"../chunks/entry.DLEzeuD9.js";import{S as wt}from"../chunks/index.BVsZFann.js";const Ie=gt("taskQueueView","workers",!0);function Ce(o,t,r){const e=o.slice();e[8]=t[r];const l=$t(e[8]);e[9]=l;const s=ht(e[2],e[0],e[9]);return e[10]=s,e}function De(o,t,r){const e=o.slice();return e[13]=t[r],e[15]=r,e}function Re(o,t,r){const e=o.slice();return e[9]=t[r],e}function Ne(o){let t,r,e,l,s;return e=new _e({props:{title:j("workers.no-version-sets-found")}}),{c(){t=v("tr"),r=v("td"),H(e.$$.fragment),l=N(),this.h()},l(a){t=T(a,"TR",{class:!0});var n=y(t);r=T(n,"TD",{colspan:!0});var f=y(r);q(e.$$.fragment,f),f.forEach(c),l=Q(n),n.forEach(c),this.h()},h(){b(r,"colspan","6"),b(t,"class","w-full")},m(a,n){h(a,t,n),R(t,r),A(e,r,null),R(t,l),s=!0},p:C,i(a){s||(g(e.$$.fragment,a),s=!0)},o(a){k(e.$$.fragment,a),s=!1},d(a){a&&c(t),P(e)}}}function Qe(o){let t=j("workers.overall")+"",r;return{c(){r=V(t)},l(e){r=S(e,t)},m(e,l){h(e,r,l)},p:C,d(e){e&&c(r)}}}function vt(o){let t,r=o[15]===0&&Qe();return{c(){r&&r.c(),t=W()},l(e){r&&r.l(e),t=W()},m(e,l){r&&r.m(e,l),h(e,t,l)},p(e,l){e[15]===0?r?r.p(e,l):(r=Qe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){e&&c(t),r&&r.d(e)}}}function Tt(o){let t=j("workers.default")+"",r;return{c(){r=V(t)},l(e){r=S(e,t)},m(e,l){h(e,r,l)},p:C,d(e){e&&c(r)}}}function Et(o){let t=j("workers.default")+"",r,e;return{c(){r=V(t),e=N()},l(l){r=S(l,t),e=Q(l)},m(l,s){h(l,r,s),h(l,e,s)},p:C,d(l){l&&(c(r),c(e))}}}function He(o){let t,r;return t=new de({props:{active:!1,buildId:o[9],$$slots:{"default-worker":[Et]},$$scope:{ctx:o}}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&16&&(s.buildId=e[9]),l&262144&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function yt(o){let t,r,e,l,s,a,n;r=new de({props:{defaultVersion:!0,active:o[15]===0,buildId:we(o[13].buildIds),$$slots:{"default-worker":[Tt],"overall-default-worker":[vt]},$$scope:{ctx:o}}});let f=K(ve(o[13].buildIds)),i=[];for(let u=0;uk(i[u],1,1,()=>{i[u]=null});return{c(){t=v("td"),H(r.$$.fragment),e=N(),l=v("td"),s=v("div");for(let u=0;uf[15];for(let f=0;f{n=null}),Y()):(n=Ne(),n.c(),g(n,1),n.m(e.parentNode,e)))},i(f){if(!l){for(let i=0;i{I=null}),Y()),(!M||E&98)&&i!==(i=le(D[8].lastAccessTime,D[5],{relative:D[6]})+"")&&z(_,i);const O={};E&2&&(O.includesTaskQueueType=D[8].taskQueueTypes.includes("WORKFLOW")),$.$set(O);const G={};E&2&&(G.includesTaskQueueType=D[8].taskQueueTypes.includes("ACTIVITY")),w.$set(G)},i(D){M||(g(I),g($.$$.fragment,D),g(w.$$.fragment,D),M=!0)},o(D){k(I),k($.$$.fragment,D),k(w.$$.fragment,D),M=!1},d(D){D&&(c(t),c(s),c(a),c(n),c(u),c(m),c(d),c(p),c(F)),I&&I.d(D),P($),P(w)}}}function Ve(o,t){let r,e,l;return e=new ne({props:{"data-testid":"worker-row",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),{key:o,first:null,c(){r=W(),H(e.$$.fragment),this.h()},l(s){r=W(),q(e.$$.fragment,s),this.h()},h(){this.first=r},m(s,a){h(s,r,a),A(e,s,a),l=!0},p(s,a){t=s;const n={};a&262255&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(e,s)}}}function qt(o){var f;let t=[],r=new Map,e,l,s=K((f=o[1])==null?void 0:f.pollers);const a=i=>i[8].identity;for(let i=0;i{n=null}),Y()):(n=Ae(i),n.c(),g(n,1),n.m(e.parentNode,e)))},i(i){if(!l){for(let _=0;_r(5,s=u)),ee(o,kt,u=>r(6,a=u));let{taskQueue:n}=t,{workers:f}=t,{reachability:i=void 0}=t,{compatibility:_=void 0}=t;return o.$$set=u=>{"taskQueue"in u&&r(0,n=u.taskQueue),"workers"in u&&r(1,f=u.workers),"reachability"in u&&r(2,i=u.reachability),"compatibility"in u&&r(7,_=u.compatibility)},o.$$.update=()=>{o.$$.dirty&128&&r(4,e=_t(_)),o.$$.dirty&128&&r(3,l=mt(_))},[n,f,i,l,e,s,a,_]}class Wt extends se{constructor(t){super(),ae(this,t,St,Vt,re,{taskQueue:0,workers:1,reachability:2,compatibility:7})}}function We(o,t,r){const e=o.slice();return e[12]=t[r],e[14]=r,e}function Fe(o,t,r){const e=o.slice();return e[12]=t[r],e[14]=r,e}function Oe(o){let t,r,e,l;return e=new _e({props:{title:j("workers.no-assignment-rules-found")}}),{c(){t=v("tr"),r=v("td"),H(e.$$.fragment),this.h()},l(s){t=T(s,"TR",{class:!0});var a=y(t);r=T(a,"TD",{colspan:!0});var n=y(r);q(e.$$.fragment,n),n.forEach(c),a.forEach(c),this.h()},h(){b(r,"colspan","6"),b(t,"class","w-full")},m(s,a){h(s,t,a),R(t,r),A(e,r,null),l=!0},p:C,i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(t),P(e)}}}function Ft(o){var M;let t,r=o[14]+"",e,l,s,a=((M=o[12].rule)==null?void 0:M.targetBuildId)+"",n,f,i,_=o[5](o[12]).toFixed(0)+"",u,m,$,d,p,w=le(o[12].createTime,o[4])+"",F;return{c(){t=v("td"),e=V(r),l=N(),s=v("td"),n=V(a),f=N(),i=v("td"),u=V(_),m=V("%"),$=N(),d=v("td"),p=v("p"),F=V(w),this.h()},l(I){t=T(I,"TD",{class:!0,"data-testid":!0});var B=y(t);e=S(B,r),B.forEach(c),l=Q(I),s=T(I,"TD",{class:!0,"data-testid":!0});var U=y(s);n=S(U,a),U.forEach(c),f=Q(I),i=T(I,"TD",{class:!0,"data-testid":!0});var D=y(i);u=S(D,_),m=S(D,"%"),D.forEach(c),$=Q(I),d=T(I,"TD",{class:!0,"data-testid":!0});var E=y(d);p=T(E,"P",{});var O=y(p);F=S(O,w),O.forEach(c),E.forEach(c),this.h()},h(){b(t,"class","text-left"),b(t,"data-testid","index"),b(s,"class","break-all text-left"),b(s,"data-testid","target-build-id"),b(i,"class","text-right"),b(i,"data-testid","target-ramp"),b(d,"class","justfiy-between flex w-full items-center text-right"),b(d,"data-testid","target-create-time")},m(I,B){h(I,t,B),R(t,e),h(I,l,B),h(I,s,B),R(s,n),h(I,f,B),h(I,i,B),R(i,u),R(i,m),h(I,$,B),h(I,d,B),R(d,p),R(p,F)},p(I,B){var U;B&4&&r!==(r=I[14]+"")&&z(e,r),B&4&&a!==(a=((U=I[12].rule)==null?void 0:U.targetBuildId)+"")&&z(n,a),B&4&&_!==(_=I[5](I[12]).toFixed(0)+"")&&z(u,_),B&20&&w!==(w=le(I[12].createTime,I[4])+"")&&z(F,w)},d(I){I&&(c(t),c(l),c(s),c(f),c(i),c($),c(d))}}}function je(o,t){let r,e,l;return e=new ne({props:{"data-testid":"version-row",$$slots:{default:[Ft]},$$scope:{ctx:t}}}),{key:o,first:null,c(){r=W(),H(e.$$.fragment),this.h()},l(s){r=W(),q(e.$$.fragment,s),this.h()},h(){this.first=r},m(s,a){h(s,r,a),A(e,s,a),l=!0},p(s,a){t=s;const n={};a&65556&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(e,s)}}}function Me(o){let t,r;return t=new ne({props:{"data-testid":"view-all",class:"surface-subtle cursor-pointer",$$slots:{default:[Ot]},$$scope:{ctx:o}}}),t.$on("click",o[11]),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&65536&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function Ot(o){let t,r,e,l=j("workers.show-inactive-assignment-rules")+"",s,a,n,f,i;return{c(){t=v("td"),r=N(),e=v("td"),s=V(l),a=N(),n=v("td"),f=N(),i=v("td"),this.h()},l(_){t=T(_,"TD",{}),y(t).forEach(c),r=Q(_),e=T(_,"TD",{class:!0});var u=y(e);s=S(u,l),u.forEach(c),a=Q(_),n=T(_,"TD",{}),y(n).forEach(c),f=Q(_),i=T(_,"TD",{}),y(i).forEach(c),this.h()},h(){b(e,"class","break-all text-left text-blue-700 underline")},m(_,u){h(_,t,u),h(_,r,u),h(_,e,u),R(e,s),h(_,a,u),h(_,n,u),h(_,f,u),h(_,i,u)},p:C,d(_){_&&(c(t),c(r),c(e),c(a),c(n),c(f),c(i))}}}function jt(o){var _;let t=[],r=new Map,e,l,s,a=K(o[2]);const n=u=>u[14];for(let u=0;u{f=null}),Y()):(f=Oe(),f.c(),g(f,1),f.m(e.parentNode,e))),!u[0]&&(($=u[1])!=null&&$.length)?i?(i.p(u,m),m&3&&g(i,1)):(i=Me(u),i.c(),g(i,1),i.m(l.parentNode,l)):i&&(L(),k(i,1,1,()=>{i=null}),Y())},i(u){if(!s){for(let m=0;mf[14];for(let f=0;f{n=null}),Y()):(n=Ke(),n.c(),g(n,1),n.m(e.parentNode,e)))},i(f){if(!l){for(let i=0;ir(4,_=p));let{rules:u}=t,m=!1;const $=p=>{var w,F,M;return!((w=p.rule)===null||w===void 0)&&w.percentageRamp?!((M=(F=p.rule)===null||F===void 0?void 0:F.percentageRamp)===null||M===void 0)&&M.rampPercentage?p.rule.percentageRamp.rampPercentage:0:100},d=()=>r(0,m=!m);return o.$$set=p=>{"rules"in p&&r(6,u=p.rules)},o.$$.update=()=>{o.$$.dirty&64&&r(9,{assignmentRules:e=[],compatibleRedirectRules:l=[]}=u,e,(r(3,l),r(6,u))),o.$$.dirty&512&&r(10,s=e.find(p=>$(p)===100)),o.$$.dirty&1536&&r(8,a=e.indexOf(s)),o.$$.dirty&768&&r(7,n=e.filter((p,w)=>w<=a)),o.$$.dirty&768&&r(1,f=e.filter((p,w)=>w>a)),o.$$.dirty&131&&r(2,i=m?[...n,...f]:n)},[m,f,i,l,_,$,u,n,a,e,s,d]}class Xt extends se{constructor(t){super(),ae(this,t,Jt,Gt,re,{rules:6})}}function Ye(o,t,r){const e=o.slice();return e[8]=t[r],e}function ze(o,t,r){const e=o.slice();return e[5]=t[r],e}function Ue(o,t,r){const e=o.slice();return e[5]=t[r],e[7]=r,e}const Zt=o=>({}),Ge=o=>({});function Je(o){let t,r,e;return r=new wt({props:{class:"h-4 w-full"}}),{c(){t=v("td"),H(r.$$.fragment),this.h()},l(l){t=T(l,"TD",{style:!0});var s=y(t);q(r.$$.fragment,s),s.forEach(c),this.h()},h(){me(t,"padding-right","0.5rem")},m(l,s){h(l,t,s),A(r,t,null),e=!0},p:C,i(l){e||(g(r.$$.fragment,l),e=!0)},o(l){k(r.$$.fragment,l),e=!1},d(l){l&&c(t),P(r)}}}function xt(o){let t,r,e=K(Array.from(new Array(o[1]))),l=[];for(let a=0;ak(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;ak(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a{"rows"in f&&r(0,s=f.rows),"columns"in f&&r(1,a=f.columns),"columnWidths"in f&&r(2,n=f.columnWidths),"$$scope"in f&&r(4,l=f.$$scope)},[s,a,n,e,l]}class nt extends se{constructor(t){super(),ae(this,t,al,sl,re,{rows:0,columns:1,columnWidths:2})}}function xe(o){o[9]=o[12].rules,o[10]=o[12].compatibility,o[11]=o[12].versionSets}const nl=o=>({compatibility:o&33}),et=o=>({compatibility:o[10]});function ol(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function il(o){xe(o);let t,r,e,l,s;const a=[cl,ul,fl],n=[];function f(i,_){var u;return _&37&&(t=null),t==null&&(t=!!i[2](i[9])),t?0:i[4]&&((u=i[11])!=null&&u.length)?1:2}return r=f(o,-1),e=n[r]=a[r](o),{c(){e.c(),l=W()},l(i){e.l(i),l=W()},m(i,_){n[r].m(i,_),h(i,l,_),s=!0},p(i,_){xe(i);let u=r;r=f(i,_),r===u?n[r].p(i,_):(L(),k(n[u],1,1,()=>{n[u]=null}),Y(),e=n[r],e?e.p(i,_):(e=n[r]=a[r](i),e.c()),g(e,1),e.m(l.parentNode,l))},i(i){s||(g(e),s=!0)},o(i){k(e),s=!1},d(i){i&&c(l),n[r].d(i)}}}function fl(o){let t,r="No versioning configured for task queue.";return{c(){t=v("p"),t.textContent=r},l(e){t=T(e,"P",{"data-svelte-h":!0}),x(t)!=="svelte-1l2qp7c"&&(t.textContent=r)},m(e,l){h(e,t,l)},p:C,i:C,o:C,d(e){e&&c(t)}}}function ul(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:$l,then:ml,catch:_l,value:13,blocks:[,,,]};return te(r=Ee({namespace:o[5],buildIds:o[3],queue:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,a){o=s,l.ctx=o,a&41&&r!==(r=Ee({namespace:o[5],buildIds:o[3],queue:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function cl(o){let t,r;return t=new Xt({props:{rules:o[9]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&33&&(s.rules=e[9]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function _l(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function ml(o){let t,r,e;const l=o[8].default,s=tt(l,o,o[7],et);return r=new Wt({props:{taskQueue:o[0],workers:o[1],compatibility:o[10],reachability:o[13]}}),{c(){s&&s.c(),t=N(),H(r.$$.fragment)},l(a){s&&s.l(a),t=Q(a),q(r.$$.fragment,a)},m(a,n){s&&s.m(a,n),h(a,t,n),A(r,a,n),e=!0},p(a,n){s&&s.p&&(!e||n&161)&<(s,l,a,a[7],e?st(l,a[7],n,nl):rt(a[7]),et);const f={};n&1&&(f.taskQueue=a[0]),n&2&&(f.workers=a[1]),n&33&&(f.compatibility=a[10]),n&41&&(f.reachability=a[13]),r.$set(f)},i(a){e||(g(s,a),g(r.$$.fragment,a),e=!0)},o(a){k(s,a),k(r.$$.fragment,a),e=!1},d(a){a&&c(t),s&&s.d(a),P(r,a)}}}function $l(o){let t,r;return t=new nt({props:{rows:3}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p:C,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function hl(o){let t,r;return t=new nt({props:{rows:3}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p:C,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function dl(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:hl,then:il,catch:ol,value:12,blocks:[,,,]};return te(r=Te({namespace:o[5],queue:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,[a]){o=s,l.ctx=o,a&33&&r!==(r=Te({namespace:o[5],queue:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function pl(o,t,r){let e,l,s,a,n;ee(o,$e,m=>r(6,n=m));let{$$slots:f={},$$scope:i}=t,{taskQueue:_}=t,{workers:u}=t;return o.$$set=m=>{"taskQueue"in m&&r(0,_=m.taskQueue),"workers"in m&&r(1,u=m.workers),"$$scope"in m&&r(7,i=m.$$scope)},o.$$.update=()=>{o.$$.dirty&64&&r(5,{namespace:e}=n.params,e),o.$$.dirty&2&&r(4,l=dt(u.pollers)),o.$$.dirty&2&&r(3,s=pt(u.pollers))},r(2,a=m=>(m==null?void 0:m.assignmentRules)||(m==null?void 0:m.compatibleRedirectRules)),[_,u,a,s,l,e,n,i,f]}class gl extends se{constructor(t){super(),ae(this,t,pl,dl,re,{taskQueue:0,workers:1})}}function bl(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function kl(o){let t,r,e,l,s,a,n,f,i;s=new ut({props:{$$slots:{default:[vl]},$$scope:{ctx:o}}});const _=[El,Tl],u=[];function m($,d){return $[2]==="versioning"?0:1}return n=m(o),f=u[n]=_[n](o),{c(){t=v("section"),r=v("h2"),e=V(o[1]),l=N(),H(s.$$.fragment),a=N(),f.c(),this.h()},l($){t=T($,"SECTION",{class:!0});var d=y(t);r=T(d,"H2",{"data-testid":!0});var p=y(r);e=S(p,o[1]),p.forEach(c),l=Q(d),q(s.$$.fragment,d),a=Q(d),f.l(d),d.forEach(c),this.h()},h(){b(r,"data-testid","task-queue-name"),b(t,"class","flex flex-col gap-4")},m($,d){h($,t,d),R(t,r),R(r,e),R(t,l),A(s,t,null),R(t,a),u[n].m(t,null),i=!0},p($,d){(!i||d&2)&&z(e,$[1]);const p={};d&260&&(p.$$scope={dirty:d,ctx:$}),s.$set(p);let w=n;n=m($),n===w?u[n].p($,d):(L(),k(u[w],1,1,()=>{u[w]=null}),Y(),f=u[n],f?f.p($,d):(f=u[n]=_[n]($),f.c()),g(f,1),f.m(t,null))},i($){i||(g(s.$$.fragment,$),g(f),i=!0)},o($){k(s.$$.fragment,$),k(f),i=!1},d($){$&&c(t),P(s),u[n].d()}}}function wl(o){let t,r,e,l;return t=new ke({props:{label:j("workers.workers"),id:"worker-tab",onClick:o[5],active:o[2]==="workers"}}),e=new ke({props:{label:j("workers.versioning"),id:"versioning-tab",onClick:o[6],active:o[2]==="versioning"}}),{c(){H(t.$$.fragment),r=N(),H(e.$$.fragment)},l(s){q(t.$$.fragment,s),r=Q(s),q(e.$$.fragment,s)},m(s,a){A(t,s,a),h(s,r,a),A(e,s,a),l=!0},p(s,a){const n={};a&4&&(n.active=s[2]==="workers"),t.$set(n);const f={};a&4&&(f.active=s[2]==="versioning"),e.$set(f)},i(s){l||(g(t.$$.fragment,s),g(e.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(t,s),P(e,s)}}}function vl(o){let t,r;return t=new ct({props:{class:"flex flex-wrap gap-6 p-4 pl-0",label:"task queue detail",$$slots:{default:[wl]},$$scope:{ctx:o}}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&260&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function Tl(o){let t,r;return t=new ft({props:{workers:o[7]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&3&&(s.workers=e[7]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function El(o){let t,r;return t=new gl({props:{taskQueue:o[1],workers:o[7]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&2&&(s.taskQueue=e[1]),l&3&&(s.workers=e[7]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function yl(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function Il(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:yl,then:kl,catch:bl,value:7,blocks:[,,,]};return te(r=ye({queue:o[1],namespace:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,[a]){o=s,l.ctx=o,a&3&&r!==(r=ye({queue:o[1],namespace:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function Cl(o,t,r){let e,l,s,a;ee(o,Ie,_=>r(2,s=_)),ee(o,$e,_=>r(4,a=_));const n=_=>{ot(Ie,s=_,s)},f=()=>n("workers"),i=()=>n("versioning");return o.$$.update=()=>{o.$$.dirty&16&&r(1,{queue:e,namespace:l}=a.params,e,(r(0,l),r(4,a)))},[l,e,s,n,a,f,i]}class Dl extends se{constructor(t){super(),ae(this,t,Cl,Il,re,{})}}function Rl(o){let t,r,e,l;return t=new it({props:{title:`Task Queue | ${o[1]}`,url:o[0].url.href}}),e=new Dl({}),{c(){H(t.$$.fragment),r=N(),H(e.$$.fragment)},l(s){q(t.$$.fragment,s),r=Q(s),q(e.$$.fragment,s)},m(s,a){A(t,s,a),h(s,r,a),A(e,s,a),l=!0},p(s,[a]){const n={};a&1&&(n.url=s[0].url.href),t.$set(n)},i(s){l||(g(t.$$.fragment,s),g(e.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(t,s),P(e,s)}}}function Nl(o,t,r){let e;ee(o,$e,s=>r(0,e=s));const l=e.params.queue;return[e,l]}class Zl extends se{constructor(t){super(),ae(this,t,Nl,Rl,re,{})}}export{Zl as component}; +import{s as re,h as v,t as V,b as N,j as T,k as y,l as S,f as c,d as Q,m as b,i as h,n as R,c as ee,x as W,q as z,v as C,y as fe,H as ge,o as x,a as tt,u as lt,g as rt,e as st,a2 as me,w as ot}from"../chunks/scheduler.C46pS-76.js";import{S as se,i as ae,c as H,a as q,m as A,t as g,b as k,d as P,g as L,e as Y}from"../chunks/index.dOVbn71B.js";import{p as $e}from"../chunks/stores.Ds4o9nwd.js";import{P as it}from"../chunks/page-title.DNhqE1Lj.js";import{h as te,u as he}from"../chunks/await_block.BfN27BCg.js";import{P as be,W as ft}from"../chunks/worker-table.BTld4JO6.js";import{T as ut,a as ct,b as ke}from"../chunks/tab.y0H1rcBf.js";import{t as j}from"../chunks/translate.BBe5dcco.js";import{a as _t,b as mt,c as $t,d as ht,e as we,f as ve,h as Te,p as dt,i as pt,j as Ee,g as ye}from"../chunks/pollers-service.BcPp2B7I.js";import{p as gt}from"../chunks/persist-store.DeOEcwHN.js";import{e as K,u as ue,o as ce}from"../chunks/each.C6O0oV7R.js";import{B as bt}from"../chunks/badge.jG5hkqHT.js";import{C as de}from"../chunks/compatibility-badge.DuX1WIlP.js";import{E as _e}from"../chunks/empty-state.BO9uOKUe.js";import{T as oe,a as ie,b as ne}from"../chunks/table.Cg5jABZi.js";import{t as at,r as kt,f as le}from"../chunks/time-format.BLKgLEx9.js";import"../chunks/auth-user.CfsLeCYD.js";import"../chunks/toaster.p5hsABhI.js";import"../chunks/paths.C1CnfzR-.js";import"../chunks/entry.kylZibtV.js";import{S as wt}from"../chunks/index.BVsZFann.js";const Ie=gt("taskQueueView","workers",!0);function Ce(o,t,r){const e=o.slice();e[8]=t[r];const l=$t(e[8]);e[9]=l;const s=ht(e[2],e[0],e[9]);return e[10]=s,e}function De(o,t,r){const e=o.slice();return e[13]=t[r],e[15]=r,e}function Re(o,t,r){const e=o.slice();return e[9]=t[r],e}function Ne(o){let t,r,e,l,s;return e=new _e({props:{title:j("workers.no-version-sets-found")}}),{c(){t=v("tr"),r=v("td"),H(e.$$.fragment),l=N(),this.h()},l(a){t=T(a,"TR",{class:!0});var n=y(t);r=T(n,"TD",{colspan:!0});var f=y(r);q(e.$$.fragment,f),f.forEach(c),l=Q(n),n.forEach(c),this.h()},h(){b(r,"colspan","6"),b(t,"class","w-full")},m(a,n){h(a,t,n),R(t,r),A(e,r,null),R(t,l),s=!0},p:C,i(a){s||(g(e.$$.fragment,a),s=!0)},o(a){k(e.$$.fragment,a),s=!1},d(a){a&&c(t),P(e)}}}function Qe(o){let t=j("workers.overall")+"",r;return{c(){r=V(t)},l(e){r=S(e,t)},m(e,l){h(e,r,l)},p:C,d(e){e&&c(r)}}}function vt(o){let t,r=o[15]===0&&Qe();return{c(){r&&r.c(),t=W()},l(e){r&&r.l(e),t=W()},m(e,l){r&&r.m(e,l),h(e,t,l)},p(e,l){e[15]===0?r?r.p(e,l):(r=Qe(),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null)},d(e){e&&c(t),r&&r.d(e)}}}function Tt(o){let t=j("workers.default")+"",r;return{c(){r=V(t)},l(e){r=S(e,t)},m(e,l){h(e,r,l)},p:C,d(e){e&&c(r)}}}function Et(o){let t=j("workers.default")+"",r,e;return{c(){r=V(t),e=N()},l(l){r=S(l,t),e=Q(l)},m(l,s){h(l,r,s),h(l,e,s)},p:C,d(l){l&&(c(r),c(e))}}}function He(o){let t,r;return t=new de({props:{active:!1,buildId:o[9],$$slots:{"default-worker":[Et]},$$scope:{ctx:o}}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&16&&(s.buildId=e[9]),l&262144&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function yt(o){let t,r,e,l,s,a,n;r=new de({props:{defaultVersion:!0,active:o[15]===0,buildId:we(o[13].buildIds),$$slots:{"default-worker":[Tt],"overall-default-worker":[vt]},$$scope:{ctx:o}}});let f=K(ve(o[13].buildIds)),i=[];for(let u=0;uk(i[u],1,1,()=>{i[u]=null});return{c(){t=v("td"),H(r.$$.fragment),e=N(),l=v("td"),s=v("div");for(let u=0;uf[15];for(let f=0;f{n=null}),Y()):(n=Ne(),n.c(),g(n,1),n.m(e.parentNode,e)))},i(f){if(!l){for(let i=0;i{I=null}),Y()),(!M||E&98)&&i!==(i=le(D[8].lastAccessTime,D[5],{relative:D[6]})+"")&&z(_,i);const O={};E&2&&(O.includesTaskQueueType=D[8].taskQueueTypes.includes("WORKFLOW")),$.$set(O);const G={};E&2&&(G.includesTaskQueueType=D[8].taskQueueTypes.includes("ACTIVITY")),w.$set(G)},i(D){M||(g(I),g($.$$.fragment,D),g(w.$$.fragment,D),M=!0)},o(D){k(I),k($.$$.fragment,D),k(w.$$.fragment,D),M=!1},d(D){D&&(c(t),c(s),c(a),c(n),c(u),c(m),c(d),c(p),c(F)),I&&I.d(D),P($),P(w)}}}function Ve(o,t){let r,e,l;return e=new ne({props:{"data-testid":"worker-row",$$slots:{default:[Ht]},$$scope:{ctx:t}}}),{key:o,first:null,c(){r=W(),H(e.$$.fragment),this.h()},l(s){r=W(),q(e.$$.fragment,s),this.h()},h(){this.first=r},m(s,a){h(s,r,a),A(e,s,a),l=!0},p(s,a){t=s;const n={};a&262255&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(e,s)}}}function qt(o){var f;let t=[],r=new Map,e,l,s=K((f=o[1])==null?void 0:f.pollers);const a=i=>i[8].identity;for(let i=0;i{n=null}),Y()):(n=Ae(i),n.c(),g(n,1),n.m(e.parentNode,e)))},i(i){if(!l){for(let _=0;_r(5,s=u)),ee(o,kt,u=>r(6,a=u));let{taskQueue:n}=t,{workers:f}=t,{reachability:i=void 0}=t,{compatibility:_=void 0}=t;return o.$$set=u=>{"taskQueue"in u&&r(0,n=u.taskQueue),"workers"in u&&r(1,f=u.workers),"reachability"in u&&r(2,i=u.reachability),"compatibility"in u&&r(7,_=u.compatibility)},o.$$.update=()=>{o.$$.dirty&128&&r(4,e=_t(_)),o.$$.dirty&128&&r(3,l=mt(_))},[n,f,i,l,e,s,a,_]}class Wt extends se{constructor(t){super(),ae(this,t,St,Vt,re,{taskQueue:0,workers:1,reachability:2,compatibility:7})}}function We(o,t,r){const e=o.slice();return e[12]=t[r],e[14]=r,e}function Fe(o,t,r){const e=o.slice();return e[12]=t[r],e[14]=r,e}function Oe(o){let t,r,e,l;return e=new _e({props:{title:j("workers.no-assignment-rules-found")}}),{c(){t=v("tr"),r=v("td"),H(e.$$.fragment),this.h()},l(s){t=T(s,"TR",{class:!0});var a=y(t);r=T(a,"TD",{colspan:!0});var n=y(r);q(e.$$.fragment,n),n.forEach(c),a.forEach(c),this.h()},h(){b(r,"colspan","6"),b(t,"class","w-full")},m(s,a){h(s,t,a),R(t,r),A(e,r,null),l=!0},p:C,i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(t),P(e)}}}function Ft(o){var M;let t,r=o[14]+"",e,l,s,a=((M=o[12].rule)==null?void 0:M.targetBuildId)+"",n,f,i,_=o[5](o[12]).toFixed(0)+"",u,m,$,d,p,w=le(o[12].createTime,o[4])+"",F;return{c(){t=v("td"),e=V(r),l=N(),s=v("td"),n=V(a),f=N(),i=v("td"),u=V(_),m=V("%"),$=N(),d=v("td"),p=v("p"),F=V(w),this.h()},l(I){t=T(I,"TD",{class:!0,"data-testid":!0});var B=y(t);e=S(B,r),B.forEach(c),l=Q(I),s=T(I,"TD",{class:!0,"data-testid":!0});var U=y(s);n=S(U,a),U.forEach(c),f=Q(I),i=T(I,"TD",{class:!0,"data-testid":!0});var D=y(i);u=S(D,_),m=S(D,"%"),D.forEach(c),$=Q(I),d=T(I,"TD",{class:!0,"data-testid":!0});var E=y(d);p=T(E,"P",{});var O=y(p);F=S(O,w),O.forEach(c),E.forEach(c),this.h()},h(){b(t,"class","text-left"),b(t,"data-testid","index"),b(s,"class","break-all text-left"),b(s,"data-testid","target-build-id"),b(i,"class","text-right"),b(i,"data-testid","target-ramp"),b(d,"class","justfiy-between flex w-full items-center text-right"),b(d,"data-testid","target-create-time")},m(I,B){h(I,t,B),R(t,e),h(I,l,B),h(I,s,B),R(s,n),h(I,f,B),h(I,i,B),R(i,u),R(i,m),h(I,$,B),h(I,d,B),R(d,p),R(p,F)},p(I,B){var U;B&4&&r!==(r=I[14]+"")&&z(e,r),B&4&&a!==(a=((U=I[12].rule)==null?void 0:U.targetBuildId)+"")&&z(n,a),B&4&&_!==(_=I[5](I[12]).toFixed(0)+"")&&z(u,_),B&20&&w!==(w=le(I[12].createTime,I[4])+"")&&z(F,w)},d(I){I&&(c(t),c(l),c(s),c(f),c(i),c($),c(d))}}}function je(o,t){let r,e,l;return e=new ne({props:{"data-testid":"version-row",$$slots:{default:[Ft]},$$scope:{ctx:t}}}),{key:o,first:null,c(){r=W(),H(e.$$.fragment),this.h()},l(s){r=W(),q(e.$$.fragment,s),this.h()},h(){this.first=r},m(s,a){h(s,r,a),A(e,s,a),l=!0},p(s,a){t=s;const n={};a&65556&&(n.$$scope={dirty:a,ctx:t}),e.$set(n)},i(s){l||(g(e.$$.fragment,s),l=!0)},o(s){k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(e,s)}}}function Me(o){let t,r;return t=new ne({props:{"data-testid":"view-all",class:"surface-subtle cursor-pointer",$$slots:{default:[Ot]},$$scope:{ctx:o}}}),t.$on("click",o[11]),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&65536&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function Ot(o){let t,r,e,l=j("workers.show-inactive-assignment-rules")+"",s,a,n,f,i;return{c(){t=v("td"),r=N(),e=v("td"),s=V(l),a=N(),n=v("td"),f=N(),i=v("td"),this.h()},l(_){t=T(_,"TD",{}),y(t).forEach(c),r=Q(_),e=T(_,"TD",{class:!0});var u=y(e);s=S(u,l),u.forEach(c),a=Q(_),n=T(_,"TD",{}),y(n).forEach(c),f=Q(_),i=T(_,"TD",{}),y(i).forEach(c),this.h()},h(){b(e,"class","break-all text-left text-blue-700 underline")},m(_,u){h(_,t,u),h(_,r,u),h(_,e,u),R(e,s),h(_,a,u),h(_,n,u),h(_,f,u),h(_,i,u)},p:C,d(_){_&&(c(t),c(r),c(e),c(a),c(n),c(f),c(i))}}}function jt(o){var _;let t=[],r=new Map,e,l,s,a=K(o[2]);const n=u=>u[14];for(let u=0;u{f=null}),Y()):(f=Oe(),f.c(),g(f,1),f.m(e.parentNode,e))),!u[0]&&(($=u[1])!=null&&$.length)?i?(i.p(u,m),m&3&&g(i,1)):(i=Me(u),i.c(),g(i,1),i.m(l.parentNode,l)):i&&(L(),k(i,1,1,()=>{i=null}),Y())},i(u){if(!s){for(let m=0;mf[14];for(let f=0;f{n=null}),Y()):(n=Ke(),n.c(),g(n,1),n.m(e.parentNode,e)))},i(f){if(!l){for(let i=0;ir(4,_=p));let{rules:u}=t,m=!1;const $=p=>{var w,F,M;return!((w=p.rule)===null||w===void 0)&&w.percentageRamp?!((M=(F=p.rule)===null||F===void 0?void 0:F.percentageRamp)===null||M===void 0)&&M.rampPercentage?p.rule.percentageRamp.rampPercentage:0:100},d=()=>r(0,m=!m);return o.$$set=p=>{"rules"in p&&r(6,u=p.rules)},o.$$.update=()=>{o.$$.dirty&64&&r(9,{assignmentRules:e=[],compatibleRedirectRules:l=[]}=u,e,(r(3,l),r(6,u))),o.$$.dirty&512&&r(10,s=e.find(p=>$(p)===100)),o.$$.dirty&1536&&r(8,a=e.indexOf(s)),o.$$.dirty&768&&r(7,n=e.filter((p,w)=>w<=a)),o.$$.dirty&768&&r(1,f=e.filter((p,w)=>w>a)),o.$$.dirty&131&&r(2,i=m?[...n,...f]:n)},[m,f,i,l,_,$,u,n,a,e,s,d]}class Xt extends se{constructor(t){super(),ae(this,t,Jt,Gt,re,{rules:6})}}function Ye(o,t,r){const e=o.slice();return e[8]=t[r],e}function ze(o,t,r){const e=o.slice();return e[5]=t[r],e}function Ue(o,t,r){const e=o.slice();return e[5]=t[r],e[7]=r,e}const Zt=o=>({}),Ge=o=>({});function Je(o){let t,r,e;return r=new wt({props:{class:"h-4 w-full"}}),{c(){t=v("td"),H(r.$$.fragment),this.h()},l(l){t=T(l,"TD",{style:!0});var s=y(t);q(r.$$.fragment,s),s.forEach(c),this.h()},h(){me(t,"padding-right","0.5rem")},m(l,s){h(l,t,s),A(r,t,null),e=!0},p:C,i(l){e||(g(r.$$.fragment,l),e=!0)},o(l){k(r.$$.fragment,l),e=!1},d(l){l&&c(t),P(r)}}}function xt(o){let t,r,e=K(Array.from(new Array(o[1]))),l=[];for(let a=0;ak(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;ak(l[a],1,1,()=>{l[a]=null});return{c(){for(let a=0;a{"rows"in f&&r(0,s=f.rows),"columns"in f&&r(1,a=f.columns),"columnWidths"in f&&r(2,n=f.columnWidths),"$$scope"in f&&r(4,l=f.$$scope)},[s,a,n,e,l]}class nt extends se{constructor(t){super(),ae(this,t,al,sl,re,{rows:0,columns:1,columnWidths:2})}}function xe(o){o[9]=o[12].rules,o[10]=o[12].compatibility,o[11]=o[12].versionSets}const nl=o=>({compatibility:o&33}),et=o=>({compatibility:o[10]});function ol(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function il(o){xe(o);let t,r,e,l,s;const a=[cl,ul,fl],n=[];function f(i,_){var u;return _&37&&(t=null),t==null&&(t=!!i[2](i[9])),t?0:i[4]&&((u=i[11])!=null&&u.length)?1:2}return r=f(o,-1),e=n[r]=a[r](o),{c(){e.c(),l=W()},l(i){e.l(i),l=W()},m(i,_){n[r].m(i,_),h(i,l,_),s=!0},p(i,_){xe(i);let u=r;r=f(i,_),r===u?n[r].p(i,_):(L(),k(n[u],1,1,()=>{n[u]=null}),Y(),e=n[r],e?e.p(i,_):(e=n[r]=a[r](i),e.c()),g(e,1),e.m(l.parentNode,l))},i(i){s||(g(e),s=!0)},o(i){k(e),s=!1},d(i){i&&c(l),n[r].d(i)}}}function fl(o){let t,r="No versioning configured for task queue.";return{c(){t=v("p"),t.textContent=r},l(e){t=T(e,"P",{"data-svelte-h":!0}),x(t)!=="svelte-1l2qp7c"&&(t.textContent=r)},m(e,l){h(e,t,l)},p:C,i:C,o:C,d(e){e&&c(t)}}}function ul(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:$l,then:ml,catch:_l,value:13,blocks:[,,,]};return te(r=Ee({namespace:o[5],buildIds:o[3],queue:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,a){o=s,l.ctx=o,a&41&&r!==(r=Ee({namespace:o[5],buildIds:o[3],queue:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function cl(o){let t,r;return t=new Xt({props:{rules:o[9]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&33&&(s.rules=e[9]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function _l(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function ml(o){let t,r,e;const l=o[8].default,s=tt(l,o,o[7],et);return r=new Wt({props:{taskQueue:o[0],workers:o[1],compatibility:o[10],reachability:o[13]}}),{c(){s&&s.c(),t=N(),H(r.$$.fragment)},l(a){s&&s.l(a),t=Q(a),q(r.$$.fragment,a)},m(a,n){s&&s.m(a,n),h(a,t,n),A(r,a,n),e=!0},p(a,n){s&&s.p&&(!e||n&161)&<(s,l,a,a[7],e?st(l,a[7],n,nl):rt(a[7]),et);const f={};n&1&&(f.taskQueue=a[0]),n&2&&(f.workers=a[1]),n&33&&(f.compatibility=a[10]),n&41&&(f.reachability=a[13]),r.$set(f)},i(a){e||(g(s,a),g(r.$$.fragment,a),e=!0)},o(a){k(s,a),k(r.$$.fragment,a),e=!1},d(a){a&&c(t),s&&s.d(a),P(r,a)}}}function $l(o){let t,r;return t=new nt({props:{rows:3}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p:C,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function hl(o){let t,r;return t=new nt({props:{rows:3}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p:C,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function dl(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:hl,then:il,catch:ol,value:12,blocks:[,,,]};return te(r=Te({namespace:o[5],queue:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,[a]){o=s,l.ctx=o,a&33&&r!==(r=Te({namespace:o[5],queue:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function pl(o,t,r){let e,l,s,a,n;ee(o,$e,m=>r(6,n=m));let{$$slots:f={},$$scope:i}=t,{taskQueue:_}=t,{workers:u}=t;return o.$$set=m=>{"taskQueue"in m&&r(0,_=m.taskQueue),"workers"in m&&r(1,u=m.workers),"$$scope"in m&&r(7,i=m.$$scope)},o.$$.update=()=>{o.$$.dirty&64&&r(5,{namespace:e}=n.params,e),o.$$.dirty&2&&r(4,l=dt(u.pollers)),o.$$.dirty&2&&r(3,s=pt(u.pollers))},r(2,a=m=>(m==null?void 0:m.assignmentRules)||(m==null?void 0:m.compatibleRedirectRules)),[_,u,a,s,l,e,n,i,f]}class gl extends se{constructor(t){super(),ae(this,t,pl,dl,re,{taskQueue:0,workers:1})}}function bl(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function kl(o){let t,r,e,l,s,a,n,f,i;s=new ut({props:{$$slots:{default:[vl]},$$scope:{ctx:o}}});const _=[El,Tl],u=[];function m($,d){return $[2]==="versioning"?0:1}return n=m(o),f=u[n]=_[n](o),{c(){t=v("section"),r=v("h2"),e=V(o[1]),l=N(),H(s.$$.fragment),a=N(),f.c(),this.h()},l($){t=T($,"SECTION",{class:!0});var d=y(t);r=T(d,"H2",{"data-testid":!0});var p=y(r);e=S(p,o[1]),p.forEach(c),l=Q(d),q(s.$$.fragment,d),a=Q(d),f.l(d),d.forEach(c),this.h()},h(){b(r,"data-testid","task-queue-name"),b(t,"class","flex flex-col gap-4")},m($,d){h($,t,d),R(t,r),R(r,e),R(t,l),A(s,t,null),R(t,a),u[n].m(t,null),i=!0},p($,d){(!i||d&2)&&z(e,$[1]);const p={};d&260&&(p.$$scope={dirty:d,ctx:$}),s.$set(p);let w=n;n=m($),n===w?u[n].p($,d):(L(),k(u[w],1,1,()=>{u[w]=null}),Y(),f=u[n],f?f.p($,d):(f=u[n]=_[n]($),f.c()),g(f,1),f.m(t,null))},i($){i||(g(s.$$.fragment,$),g(f),i=!0)},o($){k(s.$$.fragment,$),k(f),i=!1},d($){$&&c(t),P(s),u[n].d()}}}function wl(o){let t,r,e,l;return t=new ke({props:{label:j("workers.workers"),id:"worker-tab",onClick:o[5],active:o[2]==="workers"}}),e=new ke({props:{label:j("workers.versioning"),id:"versioning-tab",onClick:o[6],active:o[2]==="versioning"}}),{c(){H(t.$$.fragment),r=N(),H(e.$$.fragment)},l(s){q(t.$$.fragment,s),r=Q(s),q(e.$$.fragment,s)},m(s,a){A(t,s,a),h(s,r,a),A(e,s,a),l=!0},p(s,a){const n={};a&4&&(n.active=s[2]==="workers"),t.$set(n);const f={};a&4&&(f.active=s[2]==="versioning"),e.$set(f)},i(s){l||(g(t.$$.fragment,s),g(e.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(t,s),P(e,s)}}}function vl(o){let t,r;return t=new ct({props:{class:"flex flex-wrap gap-6 p-4 pl-0",label:"task queue detail",$$slots:{default:[wl]},$$scope:{ctx:o}}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&260&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function Tl(o){let t,r;return t=new ft({props:{workers:o[7]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&3&&(s.workers=e[7]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function El(o){let t,r;return t=new gl({props:{taskQueue:o[1],workers:o[7]}}),{c(){H(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,l){A(t,e,l),r=!0},p(e,l){const s={};l&2&&(s.taskQueue=e[1]),l&3&&(s.workers=e[7]),t.$set(s)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){P(t,e)}}}function yl(o){return{c:C,l:C,m:C,p:C,i:C,o:C,d:C}}function Il(o){let t,r,e,l={ctx:o,current:null,token:null,hasCatch:!1,pending:yl,then:kl,catch:bl,value:7,blocks:[,,,]};return te(r=ye({queue:o[1],namespace:o[0]}),l),{c(){t=W(),l.block.c()},l(s){t=W(),l.block.l(s)},m(s,a){h(s,t,a),l.block.m(s,l.anchor=a),l.mount=()=>t.parentNode,l.anchor=t,e=!0},p(s,[a]){o=s,l.ctx=o,a&3&&r!==(r=ye({queue:o[1],namespace:o[0]}))&&te(r,l)||he(l,o,a)},i(s){e||(g(l.block),e=!0)},o(s){for(let a=0;a<3;a+=1){const n=l.blocks[a];k(n)}e=!1},d(s){s&&c(t),l.block.d(s),l.token=null,l=null}}}function Cl(o,t,r){let e,l,s,a;ee(o,Ie,_=>r(2,s=_)),ee(o,$e,_=>r(4,a=_));const n=_=>{ot(Ie,s=_,s)},f=()=>n("workers"),i=()=>n("versioning");return o.$$.update=()=>{o.$$.dirty&16&&r(1,{queue:e,namespace:l}=a.params,e,(r(0,l),r(4,a)))},[l,e,s,n,a,f,i]}class Dl extends se{constructor(t){super(),ae(this,t,Cl,Il,re,{})}}function Rl(o){let t,r,e,l;return t=new it({props:{title:`Task Queue | ${o[1]}`,url:o[0].url.href}}),e=new Dl({}),{c(){H(t.$$.fragment),r=N(),H(e.$$.fragment)},l(s){q(t.$$.fragment,s),r=Q(s),q(e.$$.fragment,s)},m(s,a){A(t,s,a),h(s,r,a),A(e,s,a),l=!0},p(s,[a]){const n={};a&1&&(n.url=s[0].url.href),t.$set(n)},i(s){l||(g(t.$$.fragment,s),g(e.$$.fragment,s),l=!0)},o(s){k(t.$$.fragment,s),k(e.$$.fragment,s),l=!1},d(s){s&&c(r),P(t,s),P(e,s)}}}function Nl(o,t,r){let e;ee(o,$e,s=>r(0,e=s));const l=e.params.queue;return[e,l]}class Zl extends se{constructor(t){super(),ae(this,t,Nl,Rl,re,{})}}export{Zl as component}; diff --git a/ui/assets/local/_app/immutable/nodes/29.7Vw4hMuw.js b/ui/assets/local/_app/immutable/nodes/29.C5VU778x.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/29.7Vw4hMuw.js rename to ui/assets/local/_app/immutable/nodes/29.C5VU778x.js index 235ad61f6..df81fd3cc 100644 --- a/ui/assets/local/_app/immutable/nodes/29.7Vw4hMuw.js +++ b/ui/assets/local/_app/immutable/nodes/29.C5VU778x.js @@ -1 +1 @@ -import{s as ce,N as Y,a as Ee,h as Q,b as N,j as q,k as U,d as M,f as g,m as O,i as I,n as R,O as X,u as Se,g as Be,e as Ve,c as v,L as De,v as F,P as uo,t as z,l as K,q as se,w as ne,x as oe,p as je,X as jo,a9 as vt,Y as Eo,ai as So,U as yt,y as Me,G as Bo,D as jt,z as nt,A as Vo,H as Ge,V as Po,a7 as Wo}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as me,f as J,c as y,a as j,m as E,g as Z,b,e as x,t as h,d as S,h as Et}from"../chunks/index.dOVbn71B.js";import{p as Pe}from"../chunks/stores.Dz-RNcUk.js";import{P as Ao}from"../chunks/page-title.DNhqE1Lj.js";import{d as Le,w as de,g as Do}from"../chunks/entry.DLEzeuD9.js";import{M as it}from"../chunks/modal.DyMhWY1J.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{T as he,a as mo,u as Oo}from"../chunks/translate.ncUacGRD.js";import{A as pe}from"../chunks/workflow-actions.TBME1SPK.js";import{b as Fo,c as No,e as Mo}from"../chunks/batch-operations.BeHaOhdY.js";import{a as ft}from"../chunks/auth-user.BOlglCm6.js";import{v as Ne,t as ct}from"../chunks/toaster.D-OAJjvv.js";import{A as ke,B as ut,l as mt,r as Ie,C as Ro,D as _o,E as Lo,F as _t,G as Qo,i as po,w as ho,j as qo,c as St,y as Ho}from"../chunks/workflows.BzgE0E1S.js";import{i as pt}from"../chunks/is-network-error.Dq2Kfkkh.js";import{I as lt}from"../chunks/input.CTzUOpgs.js";import{R as Uo,a as Bt}from"../chunks/radio-input.yEAROJgW.js";import{a as zo,w as Ko,b as Go,T as Yo,C as Xo}from"../chunks/workflow-terminate-enabled.B8WATLoM.js";import{S as Jo,c as Zo,C as xo,b as er}from"../chunks/index.CI5Z4Pgd.js";import{t as dt,s as tr}from"../chunks/versions.CeMhowfV.js";import{m as bo,i as or}from"../chunks/route-for-api.BTloiRV6.js";import{a as rr,f as nr}from"../chunks/index.mPGqfhEB.js";import{B as We}from"../chunks/button.BpRIS9ld.js";import{w as we,j as Vt,c as Ye}from"../chunks/events.Dh9P6F73.js";import{c as lr}from"../chunks/pagination.BCeOU9Ta.js";import{s as go,c as ar,i as sr,w as ir}from"../chunks/search-attributes.C9oQpIly.js";import{u as fr}from"../chunks/update-query-parameters.DVJ0yHKX.js";import{I as ht}from"../chunks/icon.CfkHLDdJ.js";import{M as cr}from"../chunks/menu-button.20KWkPAy.js";import{M as ur,a as mr,d as Pt}from"../chunks/menu.FCESMtRU.js";import{T as wo}from"../chunks/toggle-switch.C9lxIG0w.js";import{s as _r}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{W as pr}from"../chunks/workflow-counts.Bgc8s1JU.js";import{e as be}from"../chunks/each.C6O0oV7R.js";import{A as dr}from"../chunks/alert.nnKn2vnv.js";import{L as bt}from"../chunks/link.BJceiGbc.js";import{L as hr}from"../chunks/loading.BLsNkl8r.js";import{P as br}from"../chunks/paginated.L2uilqIm.js";import{W as gr}from"../chunks/workflow-status.4hwv3weu.js";import{B as wr}from"../chunks/badge.jG5hkqHT.js";import{t as kr,r as $r,f as $e}from"../chunks/time-format.D2wF3ave.js";import{S as at}from"../chunks/time-picker.BvbblB8x.js";import{v as Wt}from"../chunks/format-time.6TuExJAg.js";import{F as Ir}from"../chunks/filter-or-copy-buttons.DaW7N_eF.js";import{b as Cr,s as st}from"../chunks/route-for.BjP6gGR7.js";import{C as ko}from"../chunks/checkbox.CZ5w22eC.js";import{c as Tr}from"../chunks/core-user.BxGCJ_SI.js";import{T as $o}from"../chunks/tooltip.D2lOlqUw.js";import{w as Xe}from"../chunks/workflow-create-disabled.Dpno7PTz.js";import{g as vr,a as yr}from"../chunks/spread.CgU5AtxT.js";import{l as At}from"../chunks/namespaces.619_s9Tr.js";const jr=!1,as=Object.freeze(Object.defineProperty({__proto__:null,ssr:jr},Symbol.toStringTag,{value:"Module"}));function Er(n){let t,o,e,r;const l=[Vr,Br],a=[];function i(s,c){return s[3]===pe.Reset?0:1}return o=i(n),e=a[o]=l[o](n),{c(){t=Q("p"),e.c()},l(s){t=q(s,"P",{});var c=U(t);e.l(c),c.forEach(g)},m(s,c){I(s,t,c),a[o].m(t,null),r=!0},p(s,c){let f=o;o=i(s),o===f?a[o].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),e=a[o],e?e.p(s,c):(e=a[o]=l[o](s),e.c()),h(e,1),e.m(t,null))},i(s){r||(h(e),r=!0)},o(s){b(e),r=!1},d(s){s&&g(t),a[o].d()}}}function Sr(n){let t,o,e,r,l,a,i,s,c,f;return o=new he({props:{key:"workflows.batch-operation-confirmation-all",replace:{action:n[7]}}}),c=new he({props:{key:"workflows.batch-operation-count-disclaimer",replace:{action:n[7]}}}),{c(){t=Q("p"),y(o.$$.fragment),e=N(),r=Q("div"),l=Q("code"),a=z(n[9]),i=N(),s=Q("span"),y(c.$$.fragment),this.h()},l(m){t=q(m,"P",{class:!0});var d=U(t);j(o.$$.fragment,d),d.forEach(g),e=M(m),r=q(m,"DIV",{class:!0});var u=U(r);l=q(u,"CODE",{"data-testid":!0});var _=U(l);a=K(_,n[9]),_.forEach(g),u.forEach(g),i=M(m),s=q(m,"SPAN",{class:!0});var p=U(s);j(c.$$.fragment,p),p.forEach(g),this.h()},h(){O(t,"class","mb-2"),O(l,"data-testid","batch-action-workflows-query"),O(r,"class","surface-subtle mb-2 overflow-scroll whitespace-nowrap rounded border border-subtle p-2"),O(s,"class","text-xs")},m(m,d){I(m,t,d),E(o,t,null),I(m,e,d),I(m,r,d),R(r,l),R(l,a),I(m,i,d),I(m,s,d),E(c,s,null),f=!0},p(m,d){const u={};d&128&&(u.replace={action:m[7]}),o.$set(u),(!f||d&512)&&se(a,m[9]);const _={};d&128&&(_.replace={action:m[7]}),c.$set(_)},i(m){f||(h(o.$$.fragment,m),h(c.$$.fragment,m),f=!0)},o(m){b(o.$$.fragment,m),b(c.$$.fragment,m),f=!1},d(m){m&&(g(t),g(e),g(r),g(i),g(s)),S(o),S(c)}}}function Br(n){let t,o;return t=new he({props:{key:"workflows.batch-confirmation",replace:{action:n[7]},count:n[10]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&128&&(l.replace={action:e[7]}),r&1024&&(l.count=e[10]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Vr(n){let t,o;return t=new he({props:{key:"workflows.batch-reset-confirmation",count:n[10]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&1024&&(l.count=e[10]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Pr(n){let t,o,e,r,l,a,i,s,c,f,m;const d=[Sr,Er],u=[];function _(W,T){return W[8]?0:1}o=_(n),e=u[o]=d[o](n);function p(W){n[15](W)}let w={id:"bulk-action-reason-"+n[3],label:A("common.reason"),hintText:A("workflows.batch-operation-confirmation-input-hint",{placeholder:n[4]}),placeholder:n[4]};n[0]!==void 0&&(w.value=n[0]),l=new lt({props:w}),Y.push(()=>J(l,"value",p));function C(W){n[16](W)}let V={id:"batch-operation-job-id",label:A("common.job-id"),hintText:n[2]?A("batch.job-id-input-hint"):A("batch.job-id-input-error"),placeholder:n[5],valid:n[2]};n[1]!==void 0&&(V.value=n[1]),s=new lt({props:V}),Y.push(()=>J(s,"value",C)),s.$on("input",n[12]);const P=n[14].default,B=Ee(P,n,n[13],null);return{c(){t=Q("div"),e.c(),r=N(),y(l.$$.fragment),i=N(),y(s.$$.fragment),f=N(),B&&B.c(),this.h()},l(W){t=q(W,"DIV",{class:!0});var T=U(t);e.l(T),r=M(T),j(l.$$.fragment,T),i=M(T),j(s.$$.fragment,T),f=M(T),B&&B.l(T),T.forEach(g),this.h()},h(){O(t,"class","mb-4 flex flex-col gap-4")},m(W,T){I(W,t,T),u[o].m(t,null),R(t,r),E(l,t,null),R(t,i),E(s,t,null),R(t,f),B&&B.m(t,null),m=!0},p(W,[T]){let G=o;o=_(W),o===G?u[o].p(W,T):(Z(),b(u[G],1,1,()=>{u[G]=null}),x(),e=u[o],e?e.p(W,T):(e=u[o]=d[o](W),e.c()),h(e,1),e.m(t,r));const ee={};T&8&&(ee.id="bulk-action-reason-"+W[3]),T&16&&(ee.hintText=A("workflows.batch-operation-confirmation-input-hint",{placeholder:W[4]})),T&16&&(ee.placeholder=W[4]),!a&&T&1&&(a=!0,ee.value=W[0],X(()=>a=!1)),l.$set(ee);const re={};T&4&&(re.hintText=W[2]?A("batch.job-id-input-hint"):A("batch.job-id-input-error")),T&32&&(re.placeholder=W[5]),T&4&&(re.valid=W[2]),!c&&T&2&&(c=!0,re.value=W[1],X(()=>c=!1)),s.$set(re),B&&B.p&&(!m||T&8192)&&Se(B,P,W,W[13],m?Ve(P,W[13],T,null):Be(W[13]),null)},i(W){m||(h(e),h(l.$$.fragment,W),h(s.$$.fragment,W),h(B,W),m=!0)},o(W){b(e),b(l.$$.fragment,W),b(s.$$.fragment,W),b(B,W),m=!1},d(W){W&&g(t),u[o].d(),S(l),S(s),B&&B.d(W)}}}function Wr(n,t,o){let e,r,l,a,i,s=F,c=()=>(s(),s=uo(r,k=>o(10,i=k)),r);v(n,ke,k=>o(9,a=k)),n.$$.on_destroy.push(()=>s());let{$$slots:f={},$$scope:m}=t,{action:d}=t,{reason:u}=t,{jobId:_}=t,{reasonPlaceholder:p}=t,{jobIdPlaceholder:w}=t,{jobIdValid:C}=t;const{allSelected:V,terminableWorkflows:P,cancelableWorkflows:B,selectedWorkflows:W}=De(Ae);v(n,V,k=>o(8,l=k));const T=k=>{switch(k){case pe.Cancel:return A("common.cancel");case pe.Terminate:return A("workflows.terminate");case pe.Reset:return A("workflows.reset")}},G=k=>Le([B,P,W],([ae,_e,le])=>{switch(k){case pe.Cancel:return ae.length;case pe.Terminate:return _e.length;case pe.Reset:return le.length}}),ee=k=>{o(2,C=/^[\w.~-]*$/.test(k.target.value))};function re(k){u=k,o(0,u)}function ie(k){_=k,o(1,_)}return n.$$set=k=>{"action"in k&&o(3,d=k.action),"reason"in k&&o(0,u=k.reason),"jobId"in k&&o(1,_=k.jobId),"reasonPlaceholder"in k&&o(4,p=k.reasonPlaceholder),"jobIdPlaceholder"in k&&o(5,w=k.jobIdPlaceholder),"jobIdValid"in k&&o(2,C=k.jobIdValid),"$$scope"in k&&o(13,m=k.$$scope)},n.$$.update=()=>{n.$$.dirty&8&&o(7,e=T(d)),n.$$.dirty&8&&c(o(6,r=G(d)))},[u,_,C,d,p,w,r,e,l,a,i,V,ee,m,f,re,ie]}class gt extends ue{constructor(t){super(),me(this,t,Wr,Pr,ce,{action:3,reason:0,jobId:1,reasonPlaceholder:4,jobIdPlaceholder:5,jobIdValid:2})}}function Ar(n){let t,o,e;return o=new he({props:{key:"workflows.batch-cancel-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Dr(n){let t,o,e,r,l;function a(f){n[14](f)}function i(f){n[15](f)}function s(f){n[16](f)}let c={jobIdPlaceholder:n[1],reasonPlaceholder:n[7],action:pe.Cancel};return n[4]!==void 0&&(c.reason=n[4]),n[3]!==void 0&&(c.jobId=n[3]),n[5]!==void 0&&(c.jobIdValid=n[5]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&2&&(d.jobIdPlaceholder=f[1]),!o&&m&16&&(o=!0,d.reason=f[4],X(()=>o=!1)),!e&&m&8&&(e=!0,d.jobId=f[3],X(()=>e=!1)),!r&&m&32&&(r=!0,d.jobIdValid=f[5],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function Or(n){let t,o,e,r;function l(s){n[17](s)}function a(s){n[18](s)}let i={id:"batch-cancel-confirmation-modal","data-testid":"batch-cancel-confirmation",confirmType:"destructive",cancelText:A("common.cancel"),confirmDisabled:!n[9],confirmText:A("common.confirm"),$$slots:{content:[Dr],title:[Ar]},$$scope:{ctx:n}};return n[0]!==void 0&&(i.open=n[0]),n[2]!==void 0&&(i.error=n[2]),t=new it({props:i}),Y.push(()=>J(t,"open",l)),Y.push(()=>J(t,"error",a)),t.$on("confirmModal",n[12]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&16777274&&(f.$$scope={dirty:c,ctx:s}),!o&&c&1&&(o=!0,f.open=s[0],X(()=>o=!1)),!e&&c&4&&(e=!0,f.error=s[2],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Fr(n,t,o){let e,r,l,a,i,s,c;v(n,ke,k=>o(20,r=k)),v(n,ft,k=>o(22,c=k));let{namespace:f}=t,{open:m}=t;const d=de("");v(n,d,k=>o(4,i=k));const u=ut(pe.Cancel,c.email),_=de("");v(n,_,k=>o(3,a=k));const p=de(!0);v(n,p,k=>o(5,s=k));let w=Ne(),C="";const{allSelected:V,cancelableWorkflows:P}=De(Ae);v(n,V,k=>o(21,l=k)),v(n,P,k=>o(19,e=k));const B=()=>{ne(d,i="",i),ne(_,a="",a),ne(p,s=!0,s),o(1,w=Ne())},W=async()=>{o(2,C="");const k={namespace:f,reason:i||u,jobId:a||w,...l?{query:r}:{workflows:e}};try{await Fo(k),o(0,m=!1),B(),ct.push({message:A("workflows.batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch(ae){o(2,C=pt(ae)?ae.message:A("common.unknown-error"))}};function T(k){i=k,d.set(i)}function G(k){a=k,_.set(a)}function ee(k){s=k,p.set(s)}function re(k){m=k,o(0,m)}function ie(k){C=k,o(2,C)}return n.$$set=k=>{"namespace"in k&&o(13,f=k.namespace),"open"in k&&o(0,m=k.open)},n.$$.update=()=>{n.$$.dirty&1&&m&&B()},[m,w,C,a,i,s,d,u,_,p,V,P,W,f,T,G,ee,re,ie]}class Nr extends ue{constructor(t){super(),me(this,t,Fr,Or,ce,{namespace:13,open:0})}}function Mr(n){let t,o,e;return o=new he({props:{key:"workflows.batch-reset-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Rr(n){let t,o,e,r;return t=new Bt({props:{id:"reset-event-first",value:"first",label:"First Workflow task"}}),e=new Bt({props:{id:"reset-event-last",value:"last",label:"Last Workflow task"}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p:F,i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function Lr(n){let t,o,e;function r(a){n[15](a)}let l={description:A("workflows.reset-event-radio-group-description"),name:"reset-event",$$slots:{default:[Rr]},$$scope:{ctx:n}};return n[3]!==void 0&&(l.group=n[3]),t=new Uo({props:l}),Y.push(()=>J(t,"group",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,i){const s={};i&134217728&&(s.$$scope={dirty:i,ctx:a}),!o&&i&8&&(o=!0,s.group=a[3],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function Qr(n){let t,o,e,r,l;function a(f){n[16](f)}function i(f){n[17](f)}function s(f){n[18](f)}let c={jobIdPlaceholder:n[2],reasonPlaceholder:n[8],action:pe.Reset,$$slots:{default:[Lr]},$$scope:{ctx:n}};return n[5]!==void 0&&(c.reason=n[5]),n[4]!==void 0&&(c.jobId=n[4]),n[6]!==void 0&&(c.jobIdValid=n[6]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&4&&(d.jobIdPlaceholder=f[2]),m&134217736&&(d.$$scope={dirty:m,ctx:f}),!o&&m&32&&(o=!0,d.reason=f[5],X(()=>o=!1)),!e&&m&16&&(e=!0,d.jobId=f[4],X(()=>e=!1)),!r&&m&64&&(r=!0,d.jobIdValid=f[6],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function qr(n){let t,o,e,r;function l(s){n[19](s)}function a(s){n[20](s)}let i={cancelText:A("common.cancel"),confirmText:A("workflows.reset"),id:"batch-reset-confirmation-modal",confirmType:"destructive",$$slots:{content:[Qr],title:[Mr]},$$scope:{ctx:n}};return n[1]!==void 0&&(i.error=n[1]),n[0]!==void 0&&(i.open=n[0]),t=new it({props:i}),Y.push(()=>J(t,"error",l)),Y.push(()=>J(t,"open",a)),t.$on("confirmModal",n[13]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&134217852&&(f.$$scope={dirty:c,ctx:s}),!o&&c&2&&(o=!0,f.error=s[1],X(()=>o=!1)),!e&&c&1&&(e=!0,f.open=s[0],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Hr(n,t,o){let e,r,l,a,i=F,s=()=>(i(),i=uo(C,H=>o(24,a=H)),C),c,f,m,d;v(n,ke,H=>o(22,r=H)),v(n,ft,H=>o(25,d=H)),n.$$.on_destroy.push(()=>i());let{namespace:u}=t,{open:_=!1}=t,p="",w=Ne(),C=de("first");s();const V=de("");v(n,V,H=>o(5,f=H));const P=ut(pe.Reset,d.email),B=de("");v(n,B,H=>o(4,c=H));const W=de(!0);v(n,W,H=>o(6,m=H));const{allSelected:T,selectedWorkflows:G}=De(Ae);v(n,T,H=>o(23,l=H)),v(n,G,H=>o(21,e=H));const ee=()=>{ne(V,f="",f),ne(B,c="",c),ne(W,m=!0,m),o(2,w=Ne())},re=async()=>{o(1,p="");const H={namespace:u,reason:f||P,jobId:c||w,resetType:a,...l?{query:r}:{workflows:e}};try{await No(H),o(0,_=!1),ee(),ct.push({message:A("workflows.batch-reset-all-success"),id:"batch-reset-success-toast"})}catch(Te){o(1,p=pt(Te)?Te.message:A("common.unknown-error"))}};function ie(H){C=H,s(o(3,C))}function k(H){f=H,V.set(f)}function ae(H){c=H,B.set(c)}function _e(H){m=H,W.set(m)}function le(H){p=H,o(1,p)}function Ce(H){_=H,o(0,_)}return n.$$set=H=>{"namespace"in H&&o(14,u=H.namespace),"open"in H&&o(0,_=H.open)},n.$$.update=()=>{n.$$.dirty&1&&_&&ee()},[_,p,w,C,c,f,m,V,P,B,W,T,G,re,u,ie,k,ae,_e,le,Ce]}class Ur extends ue{constructor(t){super(),me(this,t,Hr,qr,ce,{namespace:14,open:0})}}function zr(n){let t,o,e;return o=new he({props:{key:"workflows.batch-terminate-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Kr(n){let t,o,e,r,l;function a(f){n[14](f)}function i(f){n[15](f)}function s(f){n[16](f)}let c={reasonPlaceholder:n[7],jobIdPlaceholder:n[1],action:pe.Terminate};return n[4]!==void 0&&(c.reason=n[4]),n[3]!==void 0&&(c.jobId=n[3]),n[5]!==void 0&&(c.jobIdValid=n[5]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&2&&(d.jobIdPlaceholder=f[1]),!o&&m&16&&(o=!0,d.reason=f[4],X(()=>o=!1)),!e&&m&8&&(e=!0,d.jobId=f[3],X(()=>e=!1)),!r&&m&32&&(r=!0,d.jobIdValid=f[5],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function Gr(n){let t,o,e,r;function l(s){n[17](s)}function a(s){n[18](s)}let i={id:"batch-terminate-confirmation-modal","data-testid":"batch-terminate-confirmation",confirmType:"destructive",cancelText:A("common.cancel"),confirmDisabled:!n[9],confirmText:A("workflows.terminate"),$$slots:{content:[Kr],title:[zr]},$$scope:{ctx:n}};return n[0]!==void 0&&(i.open=n[0]),n[2]!==void 0&&(i.error=n[2]),t=new it({props:i}),Y.push(()=>J(t,"open",l)),Y.push(()=>J(t,"error",a)),t.$on("confirmModal",n[12]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&16777274&&(f.$$scope={dirty:c,ctx:s}),!o&&c&1&&(o=!0,f.open=s[0],X(()=>o=!1)),!e&&c&4&&(e=!0,f.error=s[2],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Yr(n,t,o){let e,r,l,a,i,s,c;v(n,ke,k=>o(20,r=k)),v(n,ft,k=>o(22,c=k));let{namespace:f}=t,{open:m}=t;const d=de("");v(n,d,k=>o(4,i=k));const u=ut(pe.Terminate,c.email),_=de("");v(n,_,k=>o(3,a=k));const p=de(!0);v(n,p,k=>o(5,s=k));let w=Ne(),C="";const{allSelected:V,terminableWorkflows:P}=De(Ae);v(n,V,k=>o(21,l=k)),v(n,P,k=>o(19,e=k));const B=()=>{ne(d,i="",i),ne(_,a="",a),ne(p,s=!0,s),o(1,w=Ne())},W=async()=>{o(2,C="");try{const k={namespace:f,reason:i||u,jobId:a||w,...l?{query:r}:{workflows:e}};await Mo(k),o(0,m=!1),B(),ct.push({message:A("workflows.batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(k){o(2,C=pt(k)?k.message:A("common.unknown-error"))}};function T(k){i=k,d.set(i)}function G(k){a=k,_.set(a)}function ee(k){s=k,p.set(s)}function re(k){m=k,o(0,m)}function ie(k){C=k,o(2,C)}return n.$$set=k=>{"namespace"in k&&o(13,f=k.namespace),"open"in k&&o(0,m=k.open)},n.$$.update=()=>{n.$$.dirty&1&&m&&B()},[m,w,C,a,i,s,d,u,_,p,V,P,W,f,T,G,ee,re,ie]}class Xr extends ue{constructor(t){super(),me(this,t,Yr,Gr,ce,{namespace:13,open:0})}}const Jr=n=>({}),Dt=n=>({});function Zr(n){let t;const o=n[4].fallback,e=Ee(o,n,n[3],Dt);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8)&&Se(e,o,r,r[3],t?Ve(o,r[3],l,Jr):Be(r[3]),Dt)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function xr(n){let t;const o=n[4].default,e=Ee(o,n,n[3],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8)&&Se(e,o,r,r[3],t?Ve(o,r[3],l,null):Be(r[3]),null)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function en(n){let t,o,e,r,l;const a=[xr,Zr],i=[];function s(c,f){return f&7&&(t=null),t==null&&(t=!!(c[1]||bo(c[0],c[2]))),t?0:1}return o=s(n,-1),e=i[o]=a[o](n),{c(){e.c(),r=oe()},l(c){e.l(c),r=oe()},m(c,f){i[o].m(c,f),I(c,r,f),l=!0},p(c,[f]){let m=o;o=s(c,f),o===m?i[o].p(c,f):(Z(),b(i[m],1,1,()=>{i[m]=null}),x(),e=i[o],e?e.p(c,f):(e=i[o]=a[o](c),e.c()),h(e,1),e.m(r.parentNode,r))},i(c){l||(h(e),l=!0)},o(c){b(e),l=!1},d(c){c&&g(r),i[o].d(c)}}}function tn(n,t,o){let e,r;v(n,mt,s=>o(1,e=s)),v(n,dt,s=>o(2,r=s));let{$$slots:l={},$$scope:a}=t,{minimumVersion:i}=t;return n.$$set=s=>{"minimumVersion"in s&&o(0,i=s.minimumVersion),"$$scope"in s&&o(3,a=s.$$scope)},[i,e,r,a,l]}class Io extends ue{constructor(t){super(),me(this,t,tn,en,ce,{minimumVersion:0})}}function on(n){let t=A("common.search")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function rn(n){let t,o,e,r,l,a,i,s,c,f,m,d;function u(p){n[5](p)}let _={id:"manual-search",type:"search",label:A("workflows.search-placeholder"),labelHidden:!0,placeholder:A("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:A("common.clear-input-button-label"),unroundRight:!0};return n[0]!==void 0&&(_.value=n[0]),r=new lt({props:_}),Y.push(()=>J(r,"value",u)),r.$on("clear",n[2]),i=new We({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[on]},$$scope:{ctx:n}}}),{c(){t=Q("div"),o=Q("div"),e=Q("form"),y(r.$$.fragment),a=N(),y(i.$$.fragment),this.h()},l(p){t=q(p,"DIV",{class:!0});var w=U(t);o=q(w,"DIV",{class:!0});var C=U(o);e=q(C,"FORM",{class:!0,role:!0});var V=U(e);j(r.$$.fragment,V),a=M(V),j(i.$$.fragment,V),V.forEach(g),C.forEach(g),w.forEach(g),this.h()},h(){O(e,"class","relative flex w-full items-center gap-0"),O(e,"role","search"),O(o,"class","flex w-full items-center gap-0"),O(t,"class","flex grow gap-4")},m(p,w){I(p,t,w),R(t,o),R(o,e),E(r,e,null),R(e,a),E(i,e,null),f=!0,m||(d=je(e,"submit",jo(n[1])),m=!0)},p(p,[w]){const C={};!l&&w&1&&(l=!0,C.value=p[0],X(()=>l=!1)),r.$set(C);const V={};w&2048&&(V.$$scope={dirty:w,ctx:p}),i.$set(V)},i(p){f||(h(r.$$.fragment,p),h(i.$$.fragment,p),p&&(s||vt(()=>{s=Et(e,rr,{x:-100,duration:150}),s.start()})),p&&(c||vt(()=>{c=Et(o,nr,{}),c.start()})),f=!0)},o(p){b(r.$$.fragment,p),b(i.$$.fragment,p),f=!1},d(p){p&&g(t),S(r),S(i),m=!1,d()}}}function nn(n,t,o){let e,r,l,a,i,s;v(n,Pe,_=>o(4,r=_)),v(n,Ie,_=>o(6,l=_)),v(n,go,_=>o(7,a=_)),v(n,we,_=>o(8,i=_)),v(n,ke,_=>o(9,s=_));let c="";function f(_){o(0,c=_)}const m=()=>{if(!c)ne(we,i=[],i),ne(ke,s="",s);else try{ne(we,i=mo(c,a),i)}catch(_){console.error(_)}c&&c===e?ne(Ie,l=Date.now(),l):fr({url:r.url,parameter:"query",value:c,allowEmpty:!0,clearParameters:[lr]})};function d(){m()}function u(_){c=_,o(0,c)}return n.$$.update=()=>{n.$$.dirty&16&&o(3,e=r.url.searchParams.get("query")),n.$$.dirty&8&&f(e)},[c,m,d,e,r,u]}class ln extends ue{constructor(t){super(),me(this,t,nn,rn,ce,{})}}const an=n=>{const t=_r({workflows:n},null,2);o(t,`workflows-${n==null?void 0:n.length}-${Date.now()}.json`,"text/plain");function o(e,r,l){const a=document.createElement("a"),i=new Blob([e],{type:l});a.href=URL.createObjectURL(i),a.download=r,a.click()}};function Ot(n){let t,o;return t=new ln({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function sn(n){let t,o,e=n[1]&&Ot();return{c(){e&&e.c(),t=oe()},l(r){e&&e.l(r),t=oe()},m(r,l){e&&e.m(r,l),I(r,t,l),o=!0},p(r,l){r[1]?e?l&2&&h(e,1):(e=Ot(),e.c(),h(e,1),e.m(t.parentNode,t)):e&&(Z(),b(e,1,1,()=>{e=null}),x())},i(r){o||(h(e),o=!0)},o(r){b(e),o=!1},d(r){r&&g(t),e&&e.d(r)}}}function fn(n){let t,o;return t=new ht({props:{name:"settings"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function cn(n){let t,o,e;function r(a){n[7](a)}let l={"data-testid":"show-child-workflow-toggle",label:A("workflows.show-children"),labelPosition:"left",id:"show-child-workflow-input"};return n[5]!==void 0&&(l.checked=n[5]),t=new wo({props:l}),Y.push(()=>J(t,"checked",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,i){const s={};!o&&i&32&&(o=!0,s.checked=a[5],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function un(n){let t=A("workflows.configure-headers",{title:A("common.workflows",{count:2})})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function mn(n){let t=A("common.download-json")+"",o,e,r,l;return r=new ht({props:{name:"download"}}),{c(){o=z(t),e=N(),y(r.$$.fragment)},l(a){o=K(a,t),e=M(a),j(r.$$.fragment,a)},m(a,i){I(a,o,i),I(a,e,i),E(r,a,i),l=!0},p:F,i(a){l||(h(r.$$.fragment,a),l=!0)},o(a){b(r.$$.fragment,a),l=!1},d(a){a&&(g(o),g(e)),S(r,a)}}}function _n(n){let t,o,e,r,l,a,i,s,c,f;o=new Io({props:{minimumVersion:"1.23.0",$$slots:{default:[cn]},$$scope:{ctx:n}}});function m(u){n[8](u)}let d={"data-testid":"manual-search-toggle",label:A("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return n[1]!==void 0&&(d.checked=n[1]),r=new wo({props:d}),Y.push(()=>J(r,"checked",m)),i=new Pt({props:{class:"m-0 py-0.5","data-testid":"workflows-summary-table-configuration-button",$$slots:{default:[un]},$$scope:{ctx:n}}}),i.$on("click",function(){Eo(n[0])&&n[0].apply(this,arguments)}),c=new Pt({props:{class:"m-0 py-0.5","data-testid":"export-history-button",$$slots:{default:[mn]},$$scope:{ctx:n}}}),c.$on("click",n[9]),{c(){t=Q("div"),y(o.$$.fragment),e=N(),y(r.$$.fragment),a=N(),y(i.$$.fragment),s=N(),y(c.$$.fragment),this.h()},l(u){t=q(u,"DIV",{class:!0});var _=U(t);j(o.$$.fragment,_),e=M(_),j(r.$$.fragment,_),a=M(_),j(i.$$.fragment,_),s=M(_),j(c.$$.fragment,_),_.forEach(g),this.h()},h(){O(t,"class","flex flex-col items-start gap-4 p-4 md:items-end")},m(u,_){I(u,t,_),E(o,t,null),R(t,e),E(r,t,null),R(t,a),E(i,t,null),R(t,s),E(c,t,null),f=!0},p(u,_){n=u;const p={};_&4128&&(p.$$scope={dirty:_,ctx:n}),o.$set(p);const w={};!l&&_&2&&(l=!0,w.checked=n[1],X(()=>l=!1)),r.$set(w);const C={};_&4096&&(C.$$scope={dirty:_,ctx:n}),i.$set(C);const V={};_&4096&&(V.$$scope={dirty:_,ctx:n}),c.$set(V)},i(u){f||(h(o.$$.fragment,u),h(r.$$.fragment,u),h(i.$$.fragment,u),h(c.$$.fragment,u),f=!0)},o(u){b(o.$$.fragment,u),b(r.$$.fragment,u),b(i.$$.fragment,u),b(c.$$.fragment,u),f=!1},d(u){u&&g(t),S(o),S(r),S(i),S(c)}}}function pn(n){let t,o,e,r;return t=new cr({props:{controls:"filter-configuration-menu",count:Number(n[1])+Number(n[4]&&n[5]),"data-testid":"filter-configuration-menu-button",class:"max-w-[3rem] text-nowrap md:max-w-full",$$slots:{leading:[fn]},$$scope:{ctx:n}}}),e=new mr({props:{id:"filter-configuration-menu",position:"right",$$slots:{default:[_n]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,a){const i={};a&50&&(i.count=Number(l[1])+Number(l[4]&&l[5])),a&4096&&(i.$$scope={dirty:a,ctx:l}),t.$set(i);const s={};a&4195&&(s.$$scope={dirty:a,ctx:l}),e.$set(s)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function dn(n){let t,o;return t=new ur({props:{$$slots:{default:[pn]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&4211&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function hn(n){let t,o,e;function r(a){n[11](a)}let l={showFilter:!n[1],refresh:n[10],$$slots:{actions:[dn],default:[sn]},$$scope:{ctx:n}};return n[2]!==void 0&&(l.filters=n[2]),t=new Jo({props:l}),Y.push(()=>J(t,"filters",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,[i]){const s={};i&2&&(s.showFilter=!a[1]),i&8&&(s.refresh=a[10]),i&4211&&(s.$$scope={dirty:i,ctx:a}),!o&&i&4&&(o=!0,s.filters=a[2],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function bn(n,t,o){let e,r,l,a,i,s;v(n,Vt,p=>o(1,e=p)),v(n,we,p=>o(2,r=p)),v(n,Ie,p=>o(3,l=p)),v(n,Ro,p=>o(4,a=p)),v(n,Ye,p=>o(5,i=p)),v(n,_o,p=>o(6,s=p));let{onClickConfigure:c}=t;function f(p){i=p,Ye.set(i)}function m(p){e=p,Vt.set(e)}const d=()=>an(s),u=()=>{ne(Ie,l=Date.now(),l)};function _(p){r=p,we.set(r)}return n.$$set=p=>{"onClickConfigure"in p&&o(0,c=p.onClickConfigure)},[c,e,r,l,a,i,s,f,m,d,u,_]}class gn extends ue{constructor(t){super(),me(this,t,bn,hn,ce,{onClickConfigure:0})}}function wn(n){let t=n[0].toLocaleString()+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=e[0].toLocaleString()+"")&&se(o,t)},d(e){e&&g(o)}}}function kn(n){let t,o=n[0].toLocaleString()+"",e;return{c(){t=z("+"),e=z(o)},l(r){t=K(r,"+"),e=K(r,o)},m(r,l){I(r,t,l),I(r,e,l)},p(r,l){l&1&&o!==(o=r[0].toLocaleString()+"")&&se(e,o)},d(r){r&&(g(t),g(e))}}}function $n(n){let t;function o(l,a){if(l[0]>0)return kn;if(l[0]<0)return wn}let e=o(n),r=e&&e(n);return{c(){r&&r.c(),t=oe()},l(l){r&&r.l(l),t=oe()},m(l,a){r&&r.m(l,a),I(l,t,a)},p(l,a){e===(e=o(l))&&r?r.p(l,a):(r&&r.d(1),r=e&&e(l),r&&(r.c(),r.m(t.parentNode,t)))},d(l){l&&g(t),r&&r.d(l)}}}function In(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:n[1]||n[2],$$slots:{default:[$n]},$$scope:{ctx:n}}}),t.$on("click",n[4]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,[r]){const l={};r&6&&(l.loading=e[1]||e[2]),r&33&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Cn(n,t,o){let e,r,l;v(n,Lo,s=>o(1,e=s)),v(n,_t,s=>o(2,r=s)),v(n,Ie,s=>o(3,l=s));let{count:a=0}=t;const i=()=>ne(Ie,l=Date.now(),l);return n.$$set=s=>{"count"in s&&o(0,a=s.count)},[a,e,r,l,i]}class Tn extends ue{constructor(t){super(),me(this,t,Cn,In,ce,{count:0})}}const rt=""+new URL("../assets/empty-state-dark_2x.BtTCLk6j.png",import.meta.url).href,Ft=""+new URL("../assets/empty-state-light_2x.BAwLJnNu.png",import.meta.url).href;function Nt(n,t,o){const e=n.slice();return e[7]=t[o],e}const vn=n=>({}),Mt=n=>({});function yn(n){let t,o,e,r,l,a;function i(u,_){return u[1]?Sn:En}let s=i(n),c=s(n);const f=[Pn,Vn,Bn],m=[];function d(u,_){return u[2]?0:u[1]?1:2}return e=d(n),r=m[e]=f[e](n),{c(){t=Q("h2"),c.c(),o=N(),r.c(),l=oe()},l(u){t=q(u,"H2",{});var _=U(t);c.l(_),_.forEach(g),o=M(u),r.l(u),l=oe()},m(u,_){I(u,t,_),c.m(t,null),I(u,o,_),m[e].m(u,_),I(u,l,_),a=!0},p(u,_){s===(s=i(u))&&c?c.p(u,_):(c.d(1),c=s(u),c&&(c.c(),c.m(t,null)));let p=e;e=d(u),e===p?m[e].p(u,_):(Z(),b(m[p],1,1,()=>{m[p]=null}),x(),r=m[e],r?r.p(u,_):(r=m[e]=f[e](u),r.c()),h(r,1),r.m(l.parentNode,l))},i(u){a||(h(r),a=!0)},o(u){b(r),a=!1},d(u){u&&(g(t),g(o),g(l)),c.d(),m[e].d(u)}}}function jn(n){let t,o;return t=new hr({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function En(n){let t=A("workflows.workflow-empty-state-title")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Sn(n){let t=A("workflows.workflow-query-empty-state-title")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Bn(n){let t,o,e=A("workflows.workflow-empty-state-description")+"",r,l,a,i,s,c,f;const m=n[5].cloud,d=Ee(m,n,n[6],Mt);a=new bt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Wn]},$$scope:{ctx:n}}});let u=be(n[3]),_=[];for(let w=0;wb(_[w],1,1,()=>{_[w]=null});return{c(){d&&d.c(),t=N(),o=Q("p"),r=z(e),l=N(),y(a.$$.fragment),i=z("."),s=N(),c=Q("ul");for(let w=0;w<_.length;w+=1)_[w].c();this.h()},l(w){d&&d.l(w),t=M(w),o=q(w,"P",{});var C=U(o);r=K(C,e),l=M(C),j(a.$$.fragment,C),i=K(C,"."),C.forEach(g),s=M(w),c=q(w,"UL",{class:!0});var V=U(c);for(let P=0;P<_.length;P+=1)_[P].l(V);V.forEach(g),this.h()},h(){O(c,"class","flex flex-col gap-2")},m(w,C){d&&d.m(w,C),I(w,t,C),I(w,o,C),R(o,r),R(o,l),E(a,o,null),R(o,i),I(w,s,C),I(w,c,C);for(let V=0;V<_.length;V+=1)_[V]&&_[V].m(c,null);f=!0},p(w,C){d&&d.p&&(!f||C&64)&&Se(d,m,w,w[6],f?Ve(m,w[6],C,vn):Be(w[6]),Mt);const V={};if(C&64&&(V.$$scope={dirty:C,ctx:w}),a.$set(V),C&8){u=be(w[3]);let P;for(P=0;P{u[C]=null}),x(),a=u[l],a?a.p(p,w):(a=u[l]=d[l](p),a.c()),h(a,1),a.m(r,null)),(!m||w&2&&!yt(c.src,f=p[1]?Ft:rt))&&O(c,"src",f)},i(p){m||(h(a),m=!0)},o(p){b(a),m=!1},d(p){p&&(g(o),g(e)),g(t),u[l].d()}}}function Fn(n,t,o){let e,r,l;v(n,Pe,f=>o(4,r=f)),v(n,Qo,f=>o(2,l=f));let{$$slots:a={},$$scope:i}=t,{updating:s=!1}=t;const c=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return n.$$set=f=>{"updating"in f&&o(0,s=f.updating),"$$scope"in f&&o(6,i=f.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&o(1,e=r.url.searchParams.get("query"))},[s,e,l,c,r,a,i]}class Nn extends ue{constructor(t){super(),me(this,t,Fn,On,ce,{updating:0})}}const Lt=(n,t=2)=>{if(!+n)return"0 Bytes";const o=1024,e=t<0?0:t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(n)/Math.log(o));return`${parseFloat((n/Math.pow(o,l)).toFixed(e))} ${r[l]}`},Mn={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function Rn(n){let t;return{c(){t=z(n[2])},l(o){t=K(o,n[2])},m(o,e){I(o,t,e)},p(o,e){e&4&&se(t,o[2])},d(o){o&&g(t)}}}function Ln(n){let t,o,e,r;return t=new bt({props:{href:n[3],$$slots:{default:[Rn]},$$scope:{ctx:n}}}),e=new Ir({props:{copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title"),filterIconTitle:A("common.filter-workflows"),show:n[1],content:n[2],onFilter:n[5],filtered:n[4].some(n[9])}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,[a]){const i={};a&8&&(i.href=l[3]),a&1028&&(i.$$scope={dirty:a,ctx:l}),t.$set(i);const s={};a&2&&(s.show=l[1]),a&4&&(s.content=l[2]),a&21&&(s.filtered=l[4].some(l[9])),e.$set(s)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function Qn(n,t,o){let e,r,l,a,i;v(n,we,u=>o(4,a=u)),v(n,Pe,u=>o(8,i=u));let{attribute:s}=t,{workflow:c}=t,{filterOrCopyButtonsVisible:f=!1}=t;const m=()=>{const u=a.find(p=>p.attribute===s),_=()=>a.filter(p=>p.attribute!==s);if(!u||u.value!==e){const p={attribute:s,type:at.KEYWORD,value:e,conditional:"=",operator:"",parenthesis:""};ne(we,a=[..._(),p],a)}else ne(we,a=[..._()],a);Oo(i.url,a)},d=u=>u.attribute===s&&u.value===e;return n.$$set=u=>{"attribute"in u&&o(0,s=u.attribute),"workflow"in u&&o(6,c=u.workflow),"filterOrCopyButtonsVisible"in u&&o(1,f=u.filterOrCopyButtonsVisible)},n.$$.update=()=>{n.$$.dirty&65&&o(2,e=c[Mn[s]]),n.$$.dirty&256&&o(7,r=i.params.namespace),n.$$.dirty&192&&o(3,l=Cr({namespace:r,workflow:c.id,run:c.runId}))},[s,f,e,l,a,m,c,r,i,d]}class wt extends ue{constructor(t){super(),me(this,t,Qn,Ln,ce,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function qn(n){const t=n.slice(),o=t[0].searchAttributes.indexedFields[t[2]];return t[10]=o,t}function Hn(n){var e,r;const t=n.slice(),o=(r=(e=t[0].searchAttributes)==null?void 0:e.indexedFields)==null?void 0:r.TemporalScheduledStartTime;return t[10]=o,t}function Un(n){let t,o,e,r,l;const a=[ll,nl,rl,ol,tl,el,xn,Zn,Jn,Xn,Yn,Gn,Kn],i=[];function s(f,m){return m&5&&(o=null),f[2]==="Status"?0:f[2]==="End"?1:f[2]==="Start"?2:f[2]==="Task Queue"?3:f[2]==="Parent Namespace"?4:f[2]==="History Size"?5:f[2]==="State Transitions"?6:f[2]==="Execution Time"?7:f[2]==="Execution Duration"?8:f[2]==="History Length"?9:f[2]==="Scheduled By ID"?10:f[2]==="Scheduled Start Time"?11:(o==null&&(o=!!(sr(f[2])&&ir(f[0],f[2]))),o?12:-1)}function c(f,m){return m===11?Hn(f):m===12?qn(f):f}return~(e=s(n,-1))&&(r=i[e]=a[e](c(n,e))),{c(){t=Q("td"),r&&r.c(),this.h()},l(f){t=q(f,"TD",{class:!0,"data-testid":!0});var m=U(t);r&&r.l(m),m.forEach(g),this.h()},h(){O(t,"class","workflows-summary-table-body-cell svelte-zhjx2p"),O(t,"data-testid","workflows-summary-table-body-cell")},m(f,m){I(f,t,m),~e&&i[e].m(t,null),l=!0},p(f,m){let d=e;e=s(f,m),e===d?~e&&i[e].p(c(f,e),m):(r&&(Z(),b(i[d],1,1,()=>{i[d]=null}),x()),~e?(r=i[e],r?r.p(c(f,e),m):(r=i[e]=a[e](c(f,e)),r.c()),h(r,1),r.m(t,null)):r=null)},i(f){l||(h(r),l=!0)},o(f){b(r),l=!1},d(f){f&&g(t),~e&&i[e].d()}}}function zn(n){let t,o,e,r,l,a;const i=[ml,ul,cl],s=[];function c(f,m){return f[2]==="Type"?0:f[2]==="Workflow ID"?1:f[2]==="Run ID"?2:-1}return~(o=c(n))&&(e=s[o]=i[o](n)),{c(){t=Q("td"),e&&e.c(),this.h()},l(f){t=q(f,"TD",{class:!0,"data-testid":!0});var m=U(t);e&&e.l(m),m.forEach(g),this.h()},h(){O(t,"class","workflows-summary-table-body-cell filterable svelte-zhjx2p"),O(t,"data-testid","workflows-summary-table-body-cell")},m(f,m){I(f,t,m),~o&&s[o].m(t,null),r=!0,l||(a=[je(t,"mouseover",n[6]),je(t,"focus",n[6]),je(t,"focusin",n[6]),je(t,"focusout",n[8]),je(t,"mouseleave",n[7]),je(t,"blur",n[7])],l=!0)},p(f,m){let d=o;o=c(f),o===d?~o&&s[o].p(f,m):(e&&(Z(),b(s[d],1,1,()=>{s[d]=null}),x()),~o?(e=s[o],e?e.p(f,m):(e=s[o]=i[o](f),e.c()),h(e,1),e.m(t,null)):e=null)},i(f){r||(h(e),r=!0)},o(f){b(e),r=!1},d(f){f&&g(t),~o&&s[o].d(),l=!1,Bo(a)}}}function Kn(n){let t,o,e,r;const l=[il,sl,al],a=[];function i(s,c){return s[5][s[2]]===at.DATETIME&&typeof s[10]=="string"?0:s[5][s[2]]===at.BOOL?1:2}return t=i(n),o=a[t]=l[t](n),{c(){o.c(),e=oe()},l(s){o.l(s),e=oe()},m(s,c){a[t].m(s,c),I(s,e,c),r=!0},p(s,c){let f=t;t=i(s),t===f?a[t].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),o=a[t],o?o.p(s,c):(o=a[t]=l[t](s),o.c()),h(o,1),o.m(e.parentNode,e))},i(s){r||(h(o),r=!0)},o(s){b(o),r=!1},d(s){s&&g(e),a[t].d(s)}}}function Gn(n){let t=(n[10]&&typeof n[10]=="string"?$e(n[10],n[3],{relative:n[4]}):"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=(e[10]&&typeof e[10]=="string"?$e(e[10],e[3],{relative:e[4]}):"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Yn(n){var e,r;let t=(((r=(e=n[0].searchAttributes)==null?void 0:e.indexedFields)==null?void 0:r.TemporalScheduledById)??"")+"",o;return{c(){o=z(t)},l(l){o=K(l,t)},m(l,a){I(l,o,a)},p(l,a){var i,s;a&1&&t!==(t=(((s=(i=l[0].searchAttributes)==null?void 0:i.indexedFields)==null?void 0:s.TemporalScheduledById)??"")+"")&&se(o,t)},i:F,o:F,d(l){l&&g(o)}}}function Xn(n){let t=(parseInt(n[0].historyEvents,10)>0?n[0].historyEvents:"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=(parseInt(e[0].historyEvents,10)>0?e[0].historyEvents:"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Jn(n){let t=Wt({start:n[0].startTime,end:n[0].endTime,includeMillisecondsForUnderSecond:!0})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=Wt({start:e[0].startTime,end:e[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Zn(n){let t=$e(n[0].executionTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].executionTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function xn(n){let t=(parseInt(n[0].stateTransitionCount,10)>0?n[0].stateTransitionCount:"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=(parseInt(e[0].stateTransitionCount,10)>0?e[0].stateTransitionCount:"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function el(n){let t=Lt(parseInt(n[0].historySizeBytes,10))+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=Lt(parseInt(e[0].historySizeBytes,10))+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function tl(n){var e;let t=(((e=n[0])==null?void 0:e.parentNamespaceId)??"")+"",o;return{c(){o=z(t)},l(r){o=K(r,t)},m(r,l){I(r,o,l)},p(r,l){var a;l&1&&t!==(t=(((a=r[0])==null?void 0:a.parentNamespaceId)??"")+"")&&se(o,t)},i:F,o:F,d(r){r&&g(o)}}}function ol(n){let t=n[0].taskQueue+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=e[0].taskQueue+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function rl(n){let t=$e(n[0].startTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].startTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function nl(n){let t=$e(n[0].endTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].endTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function ll(n){let t,o;return t=new gr({props:{status:n[0].status}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&1&&(l.status=e[0].status),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function al(n){let t=n[10]+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&5&&t!==(t=e[10]+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function sl(n){let t,o;return t=new wr({props:{$$slots:{default:[fl]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2053&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function il(n){let t=$e(n[10],n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&29&&t!==(t=$e(e[10],e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function fl(n){let t=n[10]+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&5&&t!==(t=e[10]+"")&&se(o,t)},d(e){e&&g(o)}}}function cl(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"RunId",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ul(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"WorkflowId",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ml(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"WorkflowType",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function _l(n){let t,o,e,r;const l=[zn,Un],a=[];function i(s,c){return s[2]==="Run ID"||s[2]==="Workflow ID"||s[2]==="Type"?0:1}return t=i(n),o=a[t]=l[t](n),{c(){o.c(),e=oe()},l(s){o.l(s),e=oe()},m(s,c){a[t].m(s,c),I(s,e,c),r=!0},p(s,[c]){let f=t;t=i(s),t===f?a[t].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),o=a[t],o?o.p(s,c):(o=a[t]=l[t](s),o.c()),h(o,1),o.m(e.parentNode,e))},i(s){r||(h(o),r=!0)},o(s){b(o),r=!1},d(s){s&&g(e),a[t].d(s)}}}function pl(n,t,o){let e,r,l,a;v(n,kr,u=>o(3,r=u)),v(n,$r,u=>o(4,l=u)),v(n,ar,u=>o(5,a=u));let{column:i}=t,{workflow:s}=t,c=!1;const f=()=>o(1,c=!0),m=()=>o(1,c=!1),d=u=>{const _=u.relatedTarget;_&&!["filter-button","copy-button"].includes(_.id)&&m()};return n.$$set=u=>{"column"in u&&o(9,i=u.column),"workflow"in u&&o(0,s=u.workflow)},n.$$.update=()=>{n.$$.dirty&512&&o(2,{label:e}=i,e)},[s,c,e,r,l,a,f,m,d,i]}class Co extends ue{constructor(t){super(),me(this,t,pl,_l,ce,{column:9,workflow:0})}}function dl(n){let t,o,e;return{c(){t=Q("th"),o=z(n[0]),this.h()},l(r){t=q(r,"TH",{"data-testid":!0});var l=U(t);o=K(l,n[0]),l.forEach(g),this.h()},h(){O(t,"data-testid",e="workflows-summary-table-header-cell-"+n[0])},m(r,l){I(r,t,l),R(t,o)},p(r,[l]){l&1&&se(o,r[0]),l&1&&e!==(e="workflows-summary-table-header-cell-"+r[0])&&O(t,"data-testid",e)},i:F,o:F,d(r){r&&g(t)}}}function hl(n,t,o){let e,{column:r}=t;return n.$$set=l=>{"column"in l&&o(1,r=l.column)},n.$$.update=()=>{n.$$.dirty&2&&o(0,{label:e}=r,e)},[e,r]}class bl extends ue{constructor(t){super(),me(this,t,hl,dl,ce,{column:1})}}const gl=["workflowCancelDisabled","workflowTerminateDisabled"],wl=n=>n.disableWriteActions||n.batchActionsDisabled?!1:gl.some(t=>!n[t]),To=Le([dt,po,tr,mt],([n,t,o,e])=>(e?!0:or(n,"1.18.0"))&&t&&wl(o));function kl(n){let t,o,e,r,l;o=new he({props:{key:"workflows.n-selected",count:n[1]}});let a=n[7]&&Qt(n);return{c(){t=Q("span"),y(o.$$.fragment),e=N(),a&&a.c(),r=oe(),this.h()},l(i){t=q(i,"SPAN",{class:!0});var s=U(t);j(o.$$.fragment,s),s.forEach(g),e=M(i),a&&a.l(i),r=oe(),this.h()},h(){O(t,"class","font-semibold")},m(i,s){I(i,t,s),E(o,t,null),I(i,e,s),a&&a.m(i,s),I(i,r,s),l=!0},p(i,s){const c={};s&2&&(c.count=i[1]),o.$set(c),i[7]?a?(a.p(i,s),s&128&&h(a,1)):(a=Qt(i),a.c(),h(a,1),a.m(r.parentNode,r)):a&&(Z(),b(a,1,1,()=>{a=null}),x())},i(i){l||(h(o.$$.fragment,i),h(a),l=!0)},o(i){b(o.$$.fragment,i),b(a),l=!1},d(i){i&&(g(t),g(e),g(r)),S(o),a&&a.d(i)}}}function $l(n){let t,o,e;return o=new he({props:{key:"workflows.all-selected",count:n[6].count}}),{c(){t=Q("span"),y(o.$$.fragment),this.h()},l(r){t=q(r,"SPAN",{class:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"class","font-semibold")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p(r,l){const a={};l&64&&(a.count=r[6].count),o.$set(a)},i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Qt(n){let t,o,e=A("workflows.select-all-leading")+"",r,l,a,i,s,c=A("workflows.select-all-trailing")+"",f,m,d,u,_;return i=new he({props:{key:"workflows.select-all",count:n[6].count}}),{c(){t=Q("span"),o=z("("),r=z(e),l=N(),a=Q("button"),y(i.$$.fragment),s=N(),f=z(c),m=z(")"),this.h()},l(p){t=q(p,"SPAN",{});var w=U(t);o=K(w,"("),r=K(w,e),l=M(w),a=q(w,"BUTTON",{"data-testid":!0,class:!0});var C=U(a);j(i.$$.fragment,C),C.forEach(g),s=M(w),f=K(w,c),m=K(w,")"),w.forEach(g),this.h()},h(){O(a,"data-testid","select-all-workflows"),O(a,"class","cursor-pointer underline")},m(p,w){I(p,t,w),R(t,o),R(t,r),R(t,l),R(t,a),E(i,a,null),R(t,s),R(t,f),R(t,m),d=!0,u||(_=je(a,"click",n[23]),u=!0)},p(p,w){const C={};w&64&&(C.count=p[6].count),i.$set(C)},i(p){d||(h(i.$$.fragment,p),d=!0)},o(p){b(i.$$.fragment,p),d=!1},d(p){p&&g(t),S(i),u=!1,_()}}}function qt(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",class:"text-off-white focus-visible:border-table","data-testid":"bulk-cancel-button",disabled:!n[8].length,$$slots:{default:[Il]},$$scope:{ctx:n}}}),t.$on("click",n[13]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&256&&(l.disabled=!e[8].length),r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Il(n){let t=A("workflows.request-cancellation")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Ht(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",class:"text-off-white focus-visible:border-table","data-testid":"bulk-reset-button",$$slots:{default:[Cl]},$$scope:{ctx:n}}}),t.$on("click",n[15]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Cl(n){let t=A("workflows.reset")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Ut(n){let t,o;return t=new We({props:{size:"xs",variant:"destructive",class:"focus-visible:border-table","data-testid":"bulk-terminate-button",$$slots:{default:[Tl]},$$scope:{ctx:n}}}),t.$on("click",n[14]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Tl(n){let t=A("workflows.terminate")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function vl(n){let t,o,e,r,l,a,i;const s=[$l,kl],c=[];function f(_,p){return _[5]?0:1}t=f(n),o=c[t]=s[t](n);let m=n[3]&&qt(n),d=n[2]&&Ht(n),u=n[4]&&Ut(n);return{c(){o.c(),e=N(),r=Q("div"),m&&m.c(),l=N(),d&&d.c(),a=N(),u&&u.c(),this.h()},l(_){o.l(_),e=M(_),r=q(_,"DIV",{class:!0});var p=U(r);m&&m.l(p),l=M(p),d&&d.l(p),a=M(p),u&&u.l(p),p.forEach(g),this.h()},h(){O(r,"class","ml-4 inline-flex gap-2")},m(_,p){c[t].m(_,p),I(_,e,p),I(_,r,p),m&&m.m(r,null),R(r,l),d&&d.m(r,null),R(r,a),u&&u.m(r,null),i=!0},p(_,[p]){let w=t;t=f(_),t===w?c[t].p(_,p):(Z(),b(c[w],1,1,()=>{c[w]=null}),x(),o=c[t],o?o.p(_,p):(o=c[t]=s[t](_),o.c()),h(o,1),o.m(e.parentNode,e)),_[3]?m?(m.p(_,p),p&8&&h(m,1)):(m=qt(_),m.c(),h(m,1),m.m(r,l)):m&&(Z(),b(m,1,1,()=>{m=null}),x()),_[2]?d?(d.p(_,p),p&4&&h(d,1)):(d=Ht(_),d.c(),h(d,1),d.m(r,a)):d&&(Z(),b(d,1,1,()=>{d=null}),x()),_[4]?u?(u.p(_,p),p&16&&h(u,1)):(u=Ut(_),u.c(),h(u,1),u.m(r,null)):u&&(Z(),b(u,1,1,()=>{u=null}),x())},i(_){i||(h(o),h(m),h(d),h(u),i=!0)},o(_){b(o),b(m),b(d),b(u),i=!1},d(_){_&&(g(e),g(r)),c[t].d(_),m&&m.d(),d&&d.d(),u&&u.d()}}}function yl(n,t,o){let e,r,l,a,i,s,c,f,m,d,u,_;v(n,dt,k=>o(18,a=k)),v(n,mt,k=>o(19,i=k)),v(n,Pe,k=>o(20,s=k)),v(n,ho,k=>o(6,d=k)),v(n,ke,k=>o(7,u=k));var p;let{workflows:w}=t;const{selectedWorkflows:C,allSelected:V,handleSelectAll:P,cancelableWorkflows:B,openBatchCancelConfirmationModal:W,openBatchTerminateConfirmationModal:T,openBatchResetConfirmationModal:G}=De(Ae);v(n,C,k=>o(22,f=k)),v(n,V,k=>o(5,m=k)),v(n,B,k=>o(8,_=k));let ee=Tr();v(n,ee,k=>o(21,c=k));let re;const ie=()=>P(w);return n.$$set=k=>{"workflows"in k&&o(0,w=k.workflows)},n.$$.update=()=>{n.$$.dirty&4325376&&o(1,re=o(17,p=f==null?void 0:f.length)!==null&&p!==void 0?p:0),n.$$.dirty&3145728&&o(4,e=zo(s.data.settings,c,s.params.namespace)),n.$$.dirty&3145728&&o(3,r=Ko(s.data.settings,c,s.params.namespace)),n.$$.dirty&3932160&&o(2,l=Go(s.data.settings,c,s.params.namespace)&&i?!0:bo("1.23.0",a))},[w,re,l,r,e,m,d,u,_,C,V,P,B,W,T,G,ee,p,a,i,s,c,f,ie]}class jl extends ue{constructor(t){super(),me(this,t,yl,vl,ce,{workflows:0})}}function zt(n){let t,o,e,r;function l(i){n[15](i)}let a={label:n[3],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",indeterminate:n[4]};return n[6]!==void 0&&(a.checked=n[6]),o=new ko({props:a}),Y.push(()=>J(o,"checked",l)),o.$on("change",n[11]),{c(){t=Q("th"),y(o.$$.fragment),this.h()},l(i){t=q(i,"TH",{class:!0});var s=U(t);j(o.$$.fragment,s),s.forEach(g),this.h()},h(){O(t,"class","batch-actions-checkbox-table-cell svelte-ususbo")},m(i,s){I(i,t,s),E(o,t,null),r=!0},p(i,s){const c={};s&8&&(c.label=i[3]),s&16&&(c.indeterminate=i[4]),!e&&s&64&&(e=!0,c.checked=i[6],X(()=>e=!1)),o.$set(c)},i(i){r||(h(o.$$.fragment,i),r=!0)},o(i){b(o.$$.fragment,i),r=!1},d(i){i&&g(t),S(o)}}}function El(n){let t;const o=n[14].default,e=Ee(o,n,n[13],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8192)&&Se(e,o,r,r[13],t?Ve(o,r[13],l,null):Be(r[13]),null)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function Sl(n){let t,o,e;return o=new jl({props:{workflows:n[0]}}),{c(){t=Q("th"),y(o.$$.fragment),this.h()},l(r){t=q(r,"TH",{class:!0,colspan:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"class","batch-actions-table-cell svelte-ususbo"),O(t,"colspan",n[2])},m(r,l){I(r,t,l),E(o,t,null),e=!0},p(r,l){const a={};l&1&&(a.workflows=r[0]),o.$set(a),(!e||l&4)&&O(t,"colspan",r[2])},i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Bl(n){let t,o,e,r,l,a,i,s,c,f=!n[1]&&n[5]&&zt(n);const m=[Sl,El],d=[];function u(_,p){return _[5]&&_[7]?0:1}return l=u(n),a=d[l]=m[l](n),{c(){t=Q("tr"),f&&f.c(),o=N(),e=Q("th"),r=N(),a.c(),i=N(),s=Q("th"),this.h()},l(_){t=q(_,"TR",{});var p=U(t);f&&f.l(p),o=M(p),e=q(p,"TH",{class:!0}),U(e).forEach(g),r=M(p),a.l(p),i=M(p),s=q(p,"TH",{class:!0}),U(s).forEach(g),p.forEach(g),this.h()},h(){O(e,"class","w-12"),O(s,"class","configuration-button-table-cell svelte-ususbo")},m(_,p){I(_,t,p),f&&f.m(t,null),R(t,o),R(t,e),R(t,r),d[l].m(t,null),R(t,i),R(t,s),c=!0},p(_,[p]){!_[1]&&_[5]?f?(f.p(_,p),p&34&&h(f,1)):(f=zt(_),f.c(),h(f,1),f.m(t,o)):f&&(Z(),b(f,1,1,()=>{f=null}),x());let w=l;l=u(_),l===w?d[l].p(_,p):(Z(),b(d[w],1,1,()=>{d[w]=null}),x(),a=d[l],a?a.p(_,p):(a=d[l]=m[l](_),a.c()),h(a,1),a.m(t,i))},i(_){c||(h(f),h(a),c=!0)},o(_){b(f),b(a),c=!1},d(_){_&&g(t),f&&f.d(),d[l].d()}}}function Vl(n,t,o){let e,r,l,a,i,s;v(n,To,B=>o(5,a=B));let{$$slots:c={},$$scope:f}=t,{workflows:m}=t,{empty:d}=t,{columnsCount:u}=t;const{handleSelectPage:_,selectedWorkflows:p,pageSelected:w,batchActionsVisible:C}=De(Ae);v(n,p,B=>o(12,l=B)),v(n,w,B=>o(6,i=B)),v(n,C,B=>o(7,s=B));const V=B=>{const{checked:W}=B.detail;_(W,m)};function P(B){i=B,w.set(i)}return n.$$set=B=>{"workflows"in B&&o(0,m=B.workflows),"empty"in B&&o(1,d=B.empty),"columnsCount"in B&&o(2,u=B.columnsCount),"$$scope"in B&&o(13,f=B.$$scope)},n.$$.update=()=>{n.$$.dirty&4097&&o(4,e=l.length>0&&l.lengthDo(e);return n.$$set=m=>{t=nt(nt({},t),Vo(m)),o(1,l=jt(t,r)),"namespace"in m&&o(2,a=m.namespace),"workflowId"in m&&o(3,i=m.workflowId),"taskQueue"in m&&o(4,s=m.taskQueue),"workflowType"in m&&o(5,c=m.workflowType)},n.$$.update=()=>{n.$$.dirty&60&&o(0,e=st({namespace:a,workflowId:i,taskQueue:s,workflowType:c}))},[e,l,a,i,s,c,f]}class Ol extends ue{constructor(t){super(),me(this,t,Dl,Al,ce,{namespace:2,workflowId:3,taskQueue:4,workflowType:5})}}function Kt(n){let t,o,e,r,l,a=!Xe(n[5]),i,s,c;function f(u){n[16](u)}let m={label:n[7],labelHidden:!0,value:n[0],disabled:n[11],"aria-label":n[7]};n[10]!==void 0&&(m.group=n[10]),o=new ko({props:m}),Y.push(()=>J(o,"group",f));let d=a&&Gt(n);return s=new Io({props:{minimumVersion:"1.23.0",$$slots:{default:[Ml]},$$scope:{ctx:n}}}),{c(){t=Q("td"),y(o.$$.fragment),r=N(),l=Q("td"),d&&d.c(),i=N(),y(s.$$.fragment),this.h()},l(u){t=q(u,"TD",{class:!0});var _=U(t);j(o.$$.fragment,_),_.forEach(g),r=M(u),l=q(u,"TD",{class:!0});var p=U(l);d&&d.l(p),i=M(p),j(s.$$.fragment,p),p.forEach(g),this.h()},h(){O(t,"class","relative"),O(l,"class","cursor-point relative flex items-center justify-center gap-0.5 pt-2")},m(u,_){I(u,t,_),E(o,t,null),I(u,r,_),I(u,l,_),d&&d.m(l,null),R(l,i),E(s,l,null),c=!0},p(u,_){const p={};_&128&&(p.label=u[7]),_&1&&(p.value=u[0]),_&2048&&(p.disabled=u[11]),_&128&&(p["aria-label"]=u[7]),!e&&_&1024&&(e=!0,p.group=u[10],X(()=>e=!1)),o.$set(p),_&32&&(a=!Xe(u[5])),a?d?(d.p(u,_),_&32&&h(d,1)):(d=Gt(u),d.c(),h(d,1),d.m(l,i)):d&&(Z(),b(d,1,1,()=>{d=null}),x());const w={};_&266333&&(w.$$scope={dirty:_,ctx:u}),s.$set(w)},i(u){c||(h(o.$$.fragment,u),h(d),h(s.$$.fragment,u),c=!0)},o(u){b(o.$$.fragment,u),b(d),b(s.$$.fragment,u),c=!1},d(u){u&&(g(t),g(r),g(l)),S(o),d&&d.d(),S(s)}}}function Gt(n){let t,o;return t=new Ol({props:{namespace:n[8],workflowId:n[0].id,taskQueue:n[0].taskQueue,workflowType:n[0].name}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&256&&(l.namespace=e[8]),r&1&&(l.workflowId=e[0].id),r&1&&(l.taskQueue=e[0].taskQueue),r&1&&(l.workflowType=e[0].name),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Yt(n){let t,o;return t=new We({props:{size:"xs",variant:n[6]?"primary":"ghost",$$slots:{default:[Nl]},$$scope:{ctx:n}}}),t.$on("click",n[17]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&64&&(l.variant=e[6]?"primary":"ghost"),r&262216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Fl(n){let t,o;return t=new ht({props:{name:"relationship",class:"scale-80"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Nl(n){let t,o;return t=new $o({props:{text:n[6]?A("workflows.children",{count:n[3]}):A("workflows.show-children"),topLeft:!0,$$slots:{default:[Fl]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&72&&(l.text=e[6]?A("workflows.children",{count:e[3]}):A("workflows.show-children")),r&262144&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Ml(n){let t,o,e=!n[12]&&!n[4]&&Yt(n);return{c(){e&&e.c(),t=oe()},l(r){e&&e.l(r),t=oe()},m(r,l){e&&e.m(r,l),I(r,t,l),o=!0},p(r,l){!r[12]&&!r[4]?e?(e.p(r,l),l&4112&&h(e,1)):(e=Yt(r),e.c(),h(e,1),e.m(t.parentNode,t)):e&&(Z(),b(e,1,1,()=>{e=null}),x())},i(r){o||(h(e),o=!0)},o(r){b(e),o=!1},d(r){r&&g(t),e&&e.d(r)}}}function Rl(n){let t,o,e,r,l,a=!n[1]&&n[9]&&Kt(n);const i=n[15].default,s=Ee(i,n,n[18],null);return{c(){t=Q("tr"),a&&a.c(),o=N(),s&&s.c(),e=N(),r=Q("td"),this.h()},l(c){t=q(c,"TR",{"data-testid":!0,class:!0});var f=U(t);a&&a.l(f),o=M(f),s&&s.l(f),e=M(f),r=q(f,"TD",{}),U(r).forEach(g),f.forEach(g),this.h()},h(){O(t,"data-testid","workflows-summary-configurable-table-row"),O(t,"class","svelte-1j41e4d"),Ge(t,"empty",n[1]),Ge(t,"child",n[4])},m(c,f){I(c,t,f),a&&a.m(t,null),R(t,o),s&&s.m(t,null),R(t,e),R(t,r),l=!0},p(c,[f]){!c[1]&&c[9]?a?(a.p(c,f),f&514&&h(a,1)):(a=Kt(c),a.c(),h(a,1),a.m(t,o)):a&&(Z(),b(a,1,1,()=>{a=null}),x()),s&&s.p&&(!l||f&262144)&&Se(s,i,c,c[18],l?Ve(i,c[18],f,null):Be(c[18]),null),(!l||f&2)&&Ge(t,"empty",c[1]),(!l||f&16)&&Ge(t,"child",c[4])},i(c){l||(h(a),h(s,c),l=!0)},o(c){b(a),b(s,c),l=!1},d(c){c&&g(t),a&&a.d(),s&&s.d(c)}}}function Ll(n,t,o){let e,r,l,a,i,s,c,f;v(n,Pe,T=>o(5,a=T)),v(n,To,T=>o(9,i=T)),v(n,Ye,T=>o(12,f=T));let{$$slots:m={},$$scope:d}=t,{workflow:u=void 0}=t,{empty:_=!1}=t,{viewChildren:p=F}=t,{childCount:w=void 0}=t,{child:C=!1}=t;const{allSelected:V,selectedWorkflows:P}=De(Ae);v(n,V,T=>o(11,c=T)),v(n,P,T=>o(10,s=T));function B(T){s=T,P.set(s)}const W=()=>p(u);return n.$$set=T=>{"workflow"in T&&o(0,u=T.workflow),"empty"in T&&o(1,_=T.empty),"viewChildren"in T&&o(2,p=T.viewChildren),"childCount"in T&&o(3,w=T.childCount),"child"in T&&o(4,C=T.child),"$$scope"in T&&o(18,d=T.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&o(8,{namespace:e}=a.params,e),n.$$.dirty&1&&o(7,r=A("workflows.select-workflow",{workflow:u==null?void 0:u.id})),n.$$.dirty&8&&o(6,l=w!==void 0)},[u,_,p,w,C,a,l,r,e,i,s,c,f,V,P,m,B,W,d]}class vo extends ue{constructor(t){super(),me(this,t,Ll,Rl,ce,{workflow:0,empty:1,viewChildren:2,childCount:3,child:4})}}function Xt(n,t,o){const e=n.slice();return e[24]=t[o],e}function Jt(n,t,o){const e=n.slice();return e[27]=t[o],e}function Zt(n,t,o){const e=n.slice();return e[21]=t[o],e}function xt(n,t,o){const e=n.slice();return e[21]=t[o],e}function eo(n,t,o){const e=n.slice();return e[21]=t[o],e}const Ql=n=>({}),to=n=>({slot:"cloud"});function oo(n){let t,o;return t=new Co({props:{workflow:n[24],column:n[21]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&1048576&&(l.workflow=e[24]),r[0]&8&&(l.column=e[21]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ql(n){let t,o,e=be(n[3]),r=[];for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;a{a=null}),x())},i(s){l||(h(t.$$.fragment,s),h(a),l=!0)},o(s){b(t.$$.fragment,s),b(a),l=!1},d(s){s&&(g(o),g(r)),S(t,s),a&&a.d(s)}}}function Ul(n){let t,o,e=be(n[20]),r=[];for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;a({19:e}),({updating:e})=>[e?524288:0]],headers:[Gl,({visibleItems:e})=>({20:e}),({visibleItems:e})=>[e?1048576:0]],caption:[zl],default:[Ul,({visibleItems:e})=>({20:e}),({visibleItems:e})=>[e?1048576:0]]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&16&&(l.updating=e[4]),r[0]&1&&(l.items=e[0]),r[0]&1703950&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Zl(n,t,o){let e,r,l,a,i,s,c,f,m,d,u;v(n,ke,T=>o(10,i=T)),v(n,Ie,T=>o(11,s=T)),v(n,Ye,T=>o(12,c=T)),v(n,_o,T=>o(0,f=T)),v(n,Zo,T=>o(13,m=T)),v(n,Pe,T=>o(14,d=T)),v(n,_t,T=>o(4,u=T));let{$$slots:_={},$$scope:p}=t;var w,C;let V=[];const P=()=>{o(8,V=[])},B=async T=>{if(a(T))o(8,V=V.filter(G=>G.workflowId!==T.id&&G.runId!==T.runId));else{const G=await qo(e,T.id,T.runId);o(8,V=[{workflowId:T.id,runId:T.runId,children:G},...V])}},W=T=>A("common.go-to-page",{page:T});return n.$$set=T=>{"$$scope"in T&&o(17,p=T.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&16384&&o(9,{namespace:e}=d.params,e),n.$$.dirty[0]&8896&&o(3,r=o(7,C=o(6,w=m==null?void 0:m[e])===null||w===void 0?void 0:w.workflows)!==null&&C!==void 0?C:[]),n.$$.dirty[0]&1&&o(2,l=f.length===0),n.$$.dirty[0]&7168&&P(),n.$$.dirty[0]&256&&o(1,a=T=>V.find(G=>G.workflowId===T.id&&G.runId===T.runId))},[f,a,l,r,u,B,w,C,V,e,i,s,c,m,d,_,W,p]}class xl extends ue{constructor(t){super(),me(this,t,Zl,Jl,ce,{},null,[-1,-1])}}const ea=n=>({}),io=n=>({slot:"cloud"});function ta(n){let t,o;return t=new he({props:{key:"workflows.recent-workflows"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function oa(n){let t,o=n[11].count.toLocaleString()+"",e,r,l,a;return l=new he({props:{key:"common.workflows-plural",count:n[11].count}}),{c(){t=Q("span"),e=z(o),r=N(),y(l.$$.fragment),this.h()},l(i){t=q(i,"SPAN",{"data-testid":!0});var s=U(t);e=K(s,o),s.forEach(g),r=M(i),j(l.$$.fragment,i),this.h()},h(){O(t,"data-testid","workflow-count")},m(i,s){I(i,t,s),R(t,e),I(i,r,s),E(l,i,s),a=!0},p(i,s){(!a||s[0]&2048)&&o!==(o=i[11].count.toLocaleString()+"")&&se(e,o);const c={};s[0]&2048&&(c.count=i[11].count),l.$set(c)},i(i){a||(h(l.$$.fragment,i),a=!0)},o(i){b(l.$$.fragment,i),a=!1},d(i){i&&(g(t),g(r)),S(l,i)}}}function fo(n){let t,o;return t=new We({props:{leadingIcon:"lightning-bolt",href:st({namespace:n[0]}),$$slots:{default:[ra]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&1&&(l.href=st({namespace:e[0]})),r[0]&134217728&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ra(n){let t=A("workflows.start-workflow")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function co(n){let t,o;return t=new pr({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function na(n){let t;const o=n[20].cloud,e=Ee(o,n,n[27],io);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l[0]&134217728)&&Se(e,o,r,r[27],t?Ve(o,r[27],l,ea):Be(r[27]),io)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function la(n){let t,o,e,r,l,a,i,s,c,f,m,d,u,_,p,w,C,V,P,B,W,T,G,ee=!Xe(n[1]),re,ie,k,ae,_e,le,Ce,H,Te,Re;function kt($){n[21]($)}let Je={namespace:n[0]};n[2]!==void 0&&(Je.open=n[2]),t=new Xr({props:Je}),Y.push(()=>J(t,"open",kt));function $t($){n[22]($)}let Ze={namespace:n[0]};n[3]!==void 0&&(Ze.open=n[3]),r=new Nr({props:Ze}),Y.push(()=>J(r,"open",$t));function Oe($){n[23]($)}let Qe={namespace:n[0]};n[4]!==void 0&&(Qe.open=n[4]),i=new Ur({props:Qe}),Y.push(()=>J(i,"open",Oe));function xe($){n[24]($)}let qe={refresh:Ie,namespace:n[0],workflow:n[9][0]};n[5]!==void 0&&(qe.open=n[5]),f=new Yo({props:qe}),Y.push(()=>J(f,"open",xe));function et($){n[25]($)}let He={refresh:Ie,namespace:n[0],workflow:n[9][0]};n[6]!==void 0&&(He.open=n[6]),u=new Xo({props:He}),Y.push(()=>J(u,"open",et));const Ue=[oa,ta],ge=[];function D($,L){return $[10]?0:1}P=D(n),B=ge[P]=Ue[P](n),T=new Tn({props:{count:n[11].newCount}});let te=ee&&fo(n),fe=n[12]&&co();ae=new gn({props:{onClickConfigure:n[16]}}),le=new xl({props:{$$slots:{cloud:[na]},$$scope:{ctx:n}}});function yo($){n[26]($)}let It={availableColumns:n[8],type:A("common.workflows",{count:1}),title:A("common.workflows",{count:2})};return n[7]!==void 0&&(It.open=n[7]),H=new xo({props:It}),Y.push(()=>J(H,"open",yo)),{c(){y(t.$$.fragment),e=N(),y(r.$$.fragment),a=N(),y(i.$$.fragment),c=N(),y(f.$$.fragment),d=N(),y(u.$$.fragment),p=N(),w=Q("header"),C=Q("div"),V=Q("h1"),B.c(),W=N(),y(T.$$.fragment),G=N(),te&&te.c(),re=N(),fe&&fe.c(),ie=N(),k=Q("div"),y(ae.$$.fragment),_e=N(),y(le.$$.fragment),Ce=N(),y(H.$$.fragment),this.h()},l($){j(t.$$.fragment,$),e=M($),j(r.$$.fragment,$),a=M($),j(i.$$.fragment,$),c=M($),j(f.$$.fragment,$),d=M($),j(u.$$.fragment,$),p=M($),w=q($,"HEADER",{class:!0});var L=U(w);C=q(L,"DIV",{class:!0});var ve=U(C);V=q(ve,"H1",{class:!0,"data-cy":!0});var ye=U(V);B.l(ye),W=M(ye),j(T.$$.fragment,ye),ye.forEach(g),G=M(ve),te&&te.l(ve),ve.forEach(g),re=M(L),fe&&fe.l(L),L.forEach(g),ie=M($),k=q($,"DIV",{class:!0});var Fe=U(k);j(ae.$$.fragment,Fe),Fe.forEach(g),_e=M($),j(le.$$.fragment,$),Ce=M($),j(H.$$.fragment,$),this.h()},h(){O(V,"class","flex items-center gap-2"),O(V,"data-cy","workflows-title"),O(C,"class","flex flex-col justify-between gap-2 md:flex-row"),O(w,"class","flex flex-col gap-2"),O(k,"class","flex flex-col gap-2 md:flex-row")},m($,L){E(t,$,L),I($,e,L),E(r,$,L),I($,a,L),E(i,$,L),I($,c,L),E(f,$,L),I($,d,L),E(u,$,L),I($,p,L),I($,w,L),R(w,C),R(C,V),ge[P].m(V,null),R(V,W),E(T,V,null),R(C,G),te&&te.m(C,null),R(w,re),fe&&fe.m(w,null),I($,ie,L),I($,k,L),E(ae,k,null),I($,_e,L),E(le,$,L),I($,Ce,L),E(H,$,L),Re=!0},p($,L){const ve={};L[0]&1&&(ve.namespace=$[0]),!o&&L[0]&4&&(o=!0,ve.open=$[2],X(()=>o=!1)),t.$set(ve);const ye={};L[0]&1&&(ye.namespace=$[0]),!l&&L[0]&8&&(l=!0,ye.open=$[3],X(()=>l=!1)),r.$set(ye);const Fe={};L[0]&1&&(Fe.namespace=$[0]),!s&&L[0]&16&&(s=!0,Fe.open=$[4],X(()=>s=!1)),i.$set(Fe);const ze={};L[0]&1&&(ze.namespace=$[0]),L[0]&512&&(ze.workflow=$[9][0]),!m&&L[0]&32&&(m=!0,ze.open=$[5],X(()=>m=!1)),f.$set(ze);const Ke={};L[0]&1&&(Ke.namespace=$[0]),L[0]&512&&(Ke.workflow=$[9][0]),!_&&L[0]&64&&(_=!0,Ke.open=$[6],X(()=>_=!1)),u.$set(Ke);let tt=P;P=D($),P===tt?ge[P].p($,L):(Z(),b(ge[tt],1,1,()=>{ge[tt]=null}),x(),B=ge[P],B?B.p($,L):(B=ge[P]=Ue[P]($),B.c()),h(B,1),B.m(V,W));const Ct={};L[0]&2048&&(Ct.count=$[11].newCount),T.$set(Ct),L[0]&2&&(ee=!Xe($[1])),ee?te?(te.p($,L),L[0]&2&&h(te,1)):(te=fo($),te.c(),h(te,1),te.m(C,null)):te&&(Z(),b(te,1,1,()=>{te=null}),x()),$[12]?fe?L[0]&4096&&h(fe,1):(fe=co(),fe.c(),h(fe,1),fe.m(w,null)):fe&&(Z(),b(fe,1,1,()=>{fe=null}),x());const Tt={};L[0]&134217728&&(Tt.$$scope={dirty:L,ctx:$}),le.$set(Tt);const ot={};L[0]&256&&(ot.availableColumns=$[8]),!Te&&L[0]&128&&(Te=!0,ot.open=$[7],X(()=>Te=!1)),H.$set(ot)},i($){Re||(h(t.$$.fragment,$),h(r.$$.fragment,$),h(i.$$.fragment,$),h(f.$$.fragment,$),h(u.$$.fragment,$),h(B),h(T.$$.fragment,$),h(te),h(fe),h(ae.$$.fragment,$),h(le.$$.fragment,$),h(H.$$.fragment,$),Re=!0)},o($){b(t.$$.fragment,$),b(r.$$.fragment,$),b(i.$$.fragment,$),b(f.$$.fragment,$),b(u.$$.fragment,$),b(B),b(T.$$.fragment,$),b(te),b(fe),b(ae.$$.fragment,$),b(le.$$.fragment,$),b(H.$$.fragment,$),Re=!1},d($){$&&(g(e),g(a),g(c),g(d),g(p),g(w),g(ie),g(k),g(_e),g(Ce)),S(t,$),S(r,$),S(i,$),S(f,$),S(u,$),ge[P].d(),S(T),te&&te.d(),fe&&fe.d(),S(ae),S(le,$),S(H,$)}}}const Ae="BATCH_OPERATION_CONTEXT";function aa(n,t,o){let e,r,l,a,i,s,c,f,m,d,u,_,p,w,C,V,P;v(n,_t,D=>o(19,i=D)),v(n,go,D=>o(30,m=D)),v(n,we,D=>o(31,d=D)),v(n,Pe,D=>o(1,u=D)),v(n,At,D=>o(32,_=D)),v(n,St,D=>o(33,p=D)),v(n,ke,D=>o(34,w=D)),v(n,po,D=>o(10,C=D)),v(n,ho,D=>o(11,V=D)),v(n,Ho,D=>o(12,P=D));let{$$slots:B={},$$scope:W}=t;Po(()=>{ne(At,_=u.params.namespace,_),e&&ne(we,d=mo(e,m),d)});const T=()=>{ne(ae,f=!1,f),ne(_e,c=!1,c),ne(le,s=[],s)};let G=!1,ee=!1,re=!1,ie=!1,k=!1;const ae=de(!1);v(n,ae,D=>o(29,f=D));const _e=de(!1);v(n,_e,D=>o(28,c=D));const le=de([]);v(n,le,D=>o(9,s=D));const Ce=Le(le,D=>D.length>0),H=Le(le,D=>D.filter(te=>te.canBeTerminated)),Te=Le(le,D=>D.filter(te=>te.status==="Running"));Wo(Ae,{allSelected:ae,pageSelected:_e,terminableWorkflows:H,cancelableWorkflows:Te,selectedWorkflows:le,batchActionsVisible:Ce,openBatchCancelConfirmationModal:()=>{s.length>1?o(3,ee=!0):o(6,k=!0)},openBatchTerminateConfirmationModal:()=>{s.length>1?o(2,G=!0):o(5,ie=!0)},openBatchResetConfirmationModal:()=>{o(4,re=!0)},handleSelectAll:D=>{ae.set(!0),le.set([...D])},handleSelectPage:(D,te)=>{_e.set(D),ae&&ae.set(!1),D?le.set([...te]):le.set([])}});let Oe=!1;const Qe=()=>{o(7,Oe=!0)};function xe(D){G=D,o(2,G)}function qe(D){ee=D,o(3,ee)}function et(D){re=D,o(4,re)}function He(D){ie=D,o(5,ie)}function Ue(D){k=D,o(6,k)}function ge(D){Oe=D,o(7,Oe)}return n.$$set=D=>{"$$scope"in D&&o(27,W=D.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&2&&o(17,e=u.url.searchParams.get("query")),n.$$.dirty[0]&131072&&ne(ke,w=e,w),n.$$.dirty[0]&2&&o(0,r=u.params.namespace),n.$$.dirty[0]&2&&o(18,l=u.url.searchParams.toString()),n.$$.dirty[0]&262144&&ne(St,p=l,p),n.$$.dirty[0]&3&&o(8,a=er(r,u.data.settings)),n.$$.dirty[0]&524288&&i&&T()},[r,u,G,ee,re,ie,k,Oe,a,s,C,V,P,ae,_e,le,Qe,e,l,i,B,xe,qe,et,He,Ue,ge,W]}class sa extends ue{constructor(t){super(),me(this,t,aa,la,ce,{},null,[-1,-1])}}function ia(n){let t,o,e,r;return t=new Ao({props:{title:`Workflows | ${n[0].params.namespace}`,url:n[0].url.href}}),e=new sa({}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,[a]){const i={};a&1&&(i.title=`Workflows | ${l[0].params.namespace}`),a&1&&(i.url=l[0].url.href),t.$set(i)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function fa(n,t,o){let e;return v(n,Pe,r=>o(0,e=r)),[e]}class ss extends ue{constructor(t){super(),me(this,t,fa,ia,ce,{})}}export{ss as component,as as universal}; +import{s as ce,N as Y,a as Ee,h as Q,b as N,j as q,k as U,d as M,f as g,m as O,i as I,n as R,O as X,u as Se,g as Be,e as Ve,c as v,L as De,v as F,P as uo,t as z,l as K,q as se,w as ne,x as oe,p as je,X as jo,a9 as vt,Y as Eo,ai as So,U as yt,y as Me,G as Bo,D as jt,z as nt,A as Vo,H as Ge,V as Po,a7 as Wo}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as me,f as J,c as y,a as j,m as E,g as Z,b,e as x,t as h,d as S,h as Et}from"../chunks/index.dOVbn71B.js";import{p as Pe}from"../chunks/stores.Ds4o9nwd.js";import{P as Ao}from"../chunks/page-title.DNhqE1Lj.js";import{d as Le,w as de,g as Do}from"../chunks/entry.kylZibtV.js";import{M as it}from"../chunks/modal.BxyQo5_L.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{T as he,a as mo,u as Oo}from"../chunks/translate.9wzy45oZ.js";import{A as pe}from"../chunks/workflow-actions.TBME1SPK.js";import{b as Fo,c as No,e as Mo}from"../chunks/batch-operations.D8oOXKtp.js";import{a as ft}from"../chunks/auth-user.CfsLeCYD.js";import{v as Ne,t as ct}from"../chunks/toaster.p5hsABhI.js";import{A as ke,B as ut,l as mt,r as Ie,C as Ro,D as _o,E as Lo,F as _t,G as Qo,i as po,w as ho,j as qo,c as St,y as Ho}from"../chunks/workflows.Cse8qlOg.js";import{i as pt}from"../chunks/is-network-error.Dq2Kfkkh.js";import{I as lt}from"../chunks/input.Dizl7Mgk.js";import{R as Uo,a as Bt}from"../chunks/radio-input.OzdV2p8V.js";import{a as zo,w as Ko,b as Go,T as Yo,C as Xo}from"../chunks/workflow-terminate-enabled.5VU8mX4o.js";import{S as Jo,c as Zo,C as xo,b as er}from"../chunks/index.B3hS-irb.js";import{t as dt,s as tr}from"../chunks/versions.BSCVnN4z.js";import{m as bo,i as or}from"../chunks/route-for-api.DGDQNXtX.js";import{a as rr,f as nr}from"../chunks/index.mPGqfhEB.js";import{B as We}from"../chunks/button.hs88FdV4.js";import{w as we,j as Vt,c as Ye}from"../chunks/events.CbhKe7Ai.js";import{c as lr}from"../chunks/pagination.B2FxfgZG.js";import{s as go,c as ar,i as sr,w as ir}from"../chunks/search-attributes.Dmice2E5.js";import{u as fr}from"../chunks/update-query-parameters.DTvdkkGj.js";import{I as ht}from"../chunks/icon.CfkHLDdJ.js";import{M as cr}from"../chunks/menu-button.DYcE3c8N.js";import{M as ur,a as mr,d as Pt}from"../chunks/menu.B3Snjx4c.js";import{T as wo}from"../chunks/toggle-switch.C9lxIG0w.js";import{s as _r}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{W as pr}from"../chunks/workflow-counts.D3FzL32z.js";import{e as be}from"../chunks/each.C6O0oV7R.js";import{A as dr}from"../chunks/alert.nnKn2vnv.js";import{L as bt}from"../chunks/link.C_v4aoat.js";import{L as hr}from"../chunks/loading.BLsNkl8r.js";import{P as br}from"../chunks/paginated.CcIszT9D.js";import{W as gr}from"../chunks/workflow-status.4hwv3weu.js";import{B as wr}from"../chunks/badge.jG5hkqHT.js";import{t as kr,r as $r,f as $e}from"../chunks/time-format.BLKgLEx9.js";import{S as at}from"../chunks/time-picker.G0x2sfcZ.js";import{v as Wt}from"../chunks/format-time.6TuExJAg.js";import{F as Ir}from"../chunks/filter-or-copy-buttons.CemQB_H1.js";import{b as Cr,s as st}from"../chunks/route-for.B9fTWV7L.js";import{C as ko}from"../chunks/checkbox.CZ5w22eC.js";import{c as Tr}from"../chunks/core-user.DrkCNXj3.js";import{T as $o}from"../chunks/tooltip.D2lOlqUw.js";import{w as Xe}from"../chunks/workflow-create-disabled.BovVEcSd.js";import{g as vr,a as yr}from"../chunks/spread.CgU5AtxT.js";import{l as At}from"../chunks/namespaces.DEm0M_ie.js";const jr=!1,as=Object.freeze(Object.defineProperty({__proto__:null,ssr:jr},Symbol.toStringTag,{value:"Module"}));function Er(n){let t,o,e,r;const l=[Vr,Br],a=[];function i(s,c){return s[3]===pe.Reset?0:1}return o=i(n),e=a[o]=l[o](n),{c(){t=Q("p"),e.c()},l(s){t=q(s,"P",{});var c=U(t);e.l(c),c.forEach(g)},m(s,c){I(s,t,c),a[o].m(t,null),r=!0},p(s,c){let f=o;o=i(s),o===f?a[o].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),e=a[o],e?e.p(s,c):(e=a[o]=l[o](s),e.c()),h(e,1),e.m(t,null))},i(s){r||(h(e),r=!0)},o(s){b(e),r=!1},d(s){s&&g(t),a[o].d()}}}function Sr(n){let t,o,e,r,l,a,i,s,c,f;return o=new he({props:{key:"workflows.batch-operation-confirmation-all",replace:{action:n[7]}}}),c=new he({props:{key:"workflows.batch-operation-count-disclaimer",replace:{action:n[7]}}}),{c(){t=Q("p"),y(o.$$.fragment),e=N(),r=Q("div"),l=Q("code"),a=z(n[9]),i=N(),s=Q("span"),y(c.$$.fragment),this.h()},l(m){t=q(m,"P",{class:!0});var d=U(t);j(o.$$.fragment,d),d.forEach(g),e=M(m),r=q(m,"DIV",{class:!0});var u=U(r);l=q(u,"CODE",{"data-testid":!0});var _=U(l);a=K(_,n[9]),_.forEach(g),u.forEach(g),i=M(m),s=q(m,"SPAN",{class:!0});var p=U(s);j(c.$$.fragment,p),p.forEach(g),this.h()},h(){O(t,"class","mb-2"),O(l,"data-testid","batch-action-workflows-query"),O(r,"class","surface-subtle mb-2 overflow-scroll whitespace-nowrap rounded border border-subtle p-2"),O(s,"class","text-xs")},m(m,d){I(m,t,d),E(o,t,null),I(m,e,d),I(m,r,d),R(r,l),R(l,a),I(m,i,d),I(m,s,d),E(c,s,null),f=!0},p(m,d){const u={};d&128&&(u.replace={action:m[7]}),o.$set(u),(!f||d&512)&&se(a,m[9]);const _={};d&128&&(_.replace={action:m[7]}),c.$set(_)},i(m){f||(h(o.$$.fragment,m),h(c.$$.fragment,m),f=!0)},o(m){b(o.$$.fragment,m),b(c.$$.fragment,m),f=!1},d(m){m&&(g(t),g(e),g(r),g(i),g(s)),S(o),S(c)}}}function Br(n){let t,o;return t=new he({props:{key:"workflows.batch-confirmation",replace:{action:n[7]},count:n[10]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&128&&(l.replace={action:e[7]}),r&1024&&(l.count=e[10]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Vr(n){let t,o;return t=new he({props:{key:"workflows.batch-reset-confirmation",count:n[10]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&1024&&(l.count=e[10]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Pr(n){let t,o,e,r,l,a,i,s,c,f,m;const d=[Sr,Er],u=[];function _(W,T){return W[8]?0:1}o=_(n),e=u[o]=d[o](n);function p(W){n[15](W)}let w={id:"bulk-action-reason-"+n[3],label:A("common.reason"),hintText:A("workflows.batch-operation-confirmation-input-hint",{placeholder:n[4]}),placeholder:n[4]};n[0]!==void 0&&(w.value=n[0]),l=new lt({props:w}),Y.push(()=>J(l,"value",p));function C(W){n[16](W)}let V={id:"batch-operation-job-id",label:A("common.job-id"),hintText:n[2]?A("batch.job-id-input-hint"):A("batch.job-id-input-error"),placeholder:n[5],valid:n[2]};n[1]!==void 0&&(V.value=n[1]),s=new lt({props:V}),Y.push(()=>J(s,"value",C)),s.$on("input",n[12]);const P=n[14].default,B=Ee(P,n,n[13],null);return{c(){t=Q("div"),e.c(),r=N(),y(l.$$.fragment),i=N(),y(s.$$.fragment),f=N(),B&&B.c(),this.h()},l(W){t=q(W,"DIV",{class:!0});var T=U(t);e.l(T),r=M(T),j(l.$$.fragment,T),i=M(T),j(s.$$.fragment,T),f=M(T),B&&B.l(T),T.forEach(g),this.h()},h(){O(t,"class","mb-4 flex flex-col gap-4")},m(W,T){I(W,t,T),u[o].m(t,null),R(t,r),E(l,t,null),R(t,i),E(s,t,null),R(t,f),B&&B.m(t,null),m=!0},p(W,[T]){let G=o;o=_(W),o===G?u[o].p(W,T):(Z(),b(u[G],1,1,()=>{u[G]=null}),x(),e=u[o],e?e.p(W,T):(e=u[o]=d[o](W),e.c()),h(e,1),e.m(t,r));const ee={};T&8&&(ee.id="bulk-action-reason-"+W[3]),T&16&&(ee.hintText=A("workflows.batch-operation-confirmation-input-hint",{placeholder:W[4]})),T&16&&(ee.placeholder=W[4]),!a&&T&1&&(a=!0,ee.value=W[0],X(()=>a=!1)),l.$set(ee);const re={};T&4&&(re.hintText=W[2]?A("batch.job-id-input-hint"):A("batch.job-id-input-error")),T&32&&(re.placeholder=W[5]),T&4&&(re.valid=W[2]),!c&&T&2&&(c=!0,re.value=W[1],X(()=>c=!1)),s.$set(re),B&&B.p&&(!m||T&8192)&&Se(B,P,W,W[13],m?Ve(P,W[13],T,null):Be(W[13]),null)},i(W){m||(h(e),h(l.$$.fragment,W),h(s.$$.fragment,W),h(B,W),m=!0)},o(W){b(e),b(l.$$.fragment,W),b(s.$$.fragment,W),b(B,W),m=!1},d(W){W&&g(t),u[o].d(),S(l),S(s),B&&B.d(W)}}}function Wr(n,t,o){let e,r,l,a,i,s=F,c=()=>(s(),s=uo(r,k=>o(10,i=k)),r);v(n,ke,k=>o(9,a=k)),n.$$.on_destroy.push(()=>s());let{$$slots:f={},$$scope:m}=t,{action:d}=t,{reason:u}=t,{jobId:_}=t,{reasonPlaceholder:p}=t,{jobIdPlaceholder:w}=t,{jobIdValid:C}=t;const{allSelected:V,terminableWorkflows:P,cancelableWorkflows:B,selectedWorkflows:W}=De(Ae);v(n,V,k=>o(8,l=k));const T=k=>{switch(k){case pe.Cancel:return A("common.cancel");case pe.Terminate:return A("workflows.terminate");case pe.Reset:return A("workflows.reset")}},G=k=>Le([B,P,W],([ae,_e,le])=>{switch(k){case pe.Cancel:return ae.length;case pe.Terminate:return _e.length;case pe.Reset:return le.length}}),ee=k=>{o(2,C=/^[\w.~-]*$/.test(k.target.value))};function re(k){u=k,o(0,u)}function ie(k){_=k,o(1,_)}return n.$$set=k=>{"action"in k&&o(3,d=k.action),"reason"in k&&o(0,u=k.reason),"jobId"in k&&o(1,_=k.jobId),"reasonPlaceholder"in k&&o(4,p=k.reasonPlaceholder),"jobIdPlaceholder"in k&&o(5,w=k.jobIdPlaceholder),"jobIdValid"in k&&o(2,C=k.jobIdValid),"$$scope"in k&&o(13,m=k.$$scope)},n.$$.update=()=>{n.$$.dirty&8&&o(7,e=T(d)),n.$$.dirty&8&&c(o(6,r=G(d)))},[u,_,C,d,p,w,r,e,l,a,i,V,ee,m,f,re,ie]}class gt extends ue{constructor(t){super(),me(this,t,Wr,Pr,ce,{action:3,reason:0,jobId:1,reasonPlaceholder:4,jobIdPlaceholder:5,jobIdValid:2})}}function Ar(n){let t,o,e;return o=new he({props:{key:"workflows.batch-cancel-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Dr(n){let t,o,e,r,l;function a(f){n[14](f)}function i(f){n[15](f)}function s(f){n[16](f)}let c={jobIdPlaceholder:n[1],reasonPlaceholder:n[7],action:pe.Cancel};return n[4]!==void 0&&(c.reason=n[4]),n[3]!==void 0&&(c.jobId=n[3]),n[5]!==void 0&&(c.jobIdValid=n[5]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&2&&(d.jobIdPlaceholder=f[1]),!o&&m&16&&(o=!0,d.reason=f[4],X(()=>o=!1)),!e&&m&8&&(e=!0,d.jobId=f[3],X(()=>e=!1)),!r&&m&32&&(r=!0,d.jobIdValid=f[5],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function Or(n){let t,o,e,r;function l(s){n[17](s)}function a(s){n[18](s)}let i={id:"batch-cancel-confirmation-modal","data-testid":"batch-cancel-confirmation",confirmType:"destructive",cancelText:A("common.cancel"),confirmDisabled:!n[9],confirmText:A("common.confirm"),$$slots:{content:[Dr],title:[Ar]},$$scope:{ctx:n}};return n[0]!==void 0&&(i.open=n[0]),n[2]!==void 0&&(i.error=n[2]),t=new it({props:i}),Y.push(()=>J(t,"open",l)),Y.push(()=>J(t,"error",a)),t.$on("confirmModal",n[12]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&16777274&&(f.$$scope={dirty:c,ctx:s}),!o&&c&1&&(o=!0,f.open=s[0],X(()=>o=!1)),!e&&c&4&&(e=!0,f.error=s[2],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Fr(n,t,o){let e,r,l,a,i,s,c;v(n,ke,k=>o(20,r=k)),v(n,ft,k=>o(22,c=k));let{namespace:f}=t,{open:m}=t;const d=de("");v(n,d,k=>o(4,i=k));const u=ut(pe.Cancel,c.email),_=de("");v(n,_,k=>o(3,a=k));const p=de(!0);v(n,p,k=>o(5,s=k));let w=Ne(),C="";const{allSelected:V,cancelableWorkflows:P}=De(Ae);v(n,V,k=>o(21,l=k)),v(n,P,k=>o(19,e=k));const B=()=>{ne(d,i="",i),ne(_,a="",a),ne(p,s=!0,s),o(1,w=Ne())},W=async()=>{o(2,C="");const k={namespace:f,reason:i||u,jobId:a||w,...l?{query:r}:{workflows:e}};try{await Fo(k),o(0,m=!1),B(),ct.push({message:A("workflows.batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch(ae){o(2,C=pt(ae)?ae.message:A("common.unknown-error"))}};function T(k){i=k,d.set(i)}function G(k){a=k,_.set(a)}function ee(k){s=k,p.set(s)}function re(k){m=k,o(0,m)}function ie(k){C=k,o(2,C)}return n.$$set=k=>{"namespace"in k&&o(13,f=k.namespace),"open"in k&&o(0,m=k.open)},n.$$.update=()=>{n.$$.dirty&1&&m&&B()},[m,w,C,a,i,s,d,u,_,p,V,P,W,f,T,G,ee,re,ie]}class Nr extends ue{constructor(t){super(),me(this,t,Fr,Or,ce,{namespace:13,open:0})}}function Mr(n){let t,o,e;return o=new he({props:{key:"workflows.batch-reset-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Rr(n){let t,o,e,r;return t=new Bt({props:{id:"reset-event-first",value:"first",label:"First Workflow task"}}),e=new Bt({props:{id:"reset-event-last",value:"last",label:"Last Workflow task"}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p:F,i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function Lr(n){let t,o,e;function r(a){n[15](a)}let l={description:A("workflows.reset-event-radio-group-description"),name:"reset-event",$$slots:{default:[Rr]},$$scope:{ctx:n}};return n[3]!==void 0&&(l.group=n[3]),t=new Uo({props:l}),Y.push(()=>J(t,"group",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,i){const s={};i&134217728&&(s.$$scope={dirty:i,ctx:a}),!o&&i&8&&(o=!0,s.group=a[3],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function Qr(n){let t,o,e,r,l;function a(f){n[16](f)}function i(f){n[17](f)}function s(f){n[18](f)}let c={jobIdPlaceholder:n[2],reasonPlaceholder:n[8],action:pe.Reset,$$slots:{default:[Lr]},$$scope:{ctx:n}};return n[5]!==void 0&&(c.reason=n[5]),n[4]!==void 0&&(c.jobId=n[4]),n[6]!==void 0&&(c.jobIdValid=n[6]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&4&&(d.jobIdPlaceholder=f[2]),m&134217736&&(d.$$scope={dirty:m,ctx:f}),!o&&m&32&&(o=!0,d.reason=f[5],X(()=>o=!1)),!e&&m&16&&(e=!0,d.jobId=f[4],X(()=>e=!1)),!r&&m&64&&(r=!0,d.jobIdValid=f[6],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function qr(n){let t,o,e,r;function l(s){n[19](s)}function a(s){n[20](s)}let i={cancelText:A("common.cancel"),confirmText:A("workflows.reset"),id:"batch-reset-confirmation-modal",confirmType:"destructive",$$slots:{content:[Qr],title:[Mr]},$$scope:{ctx:n}};return n[1]!==void 0&&(i.error=n[1]),n[0]!==void 0&&(i.open=n[0]),t=new it({props:i}),Y.push(()=>J(t,"error",l)),Y.push(()=>J(t,"open",a)),t.$on("confirmModal",n[13]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&134217852&&(f.$$scope={dirty:c,ctx:s}),!o&&c&2&&(o=!0,f.error=s[1],X(()=>o=!1)),!e&&c&1&&(e=!0,f.open=s[0],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Hr(n,t,o){let e,r,l,a,i=F,s=()=>(i(),i=uo(C,H=>o(24,a=H)),C),c,f,m,d;v(n,ke,H=>o(22,r=H)),v(n,ft,H=>o(25,d=H)),n.$$.on_destroy.push(()=>i());let{namespace:u}=t,{open:_=!1}=t,p="",w=Ne(),C=de("first");s();const V=de("");v(n,V,H=>o(5,f=H));const P=ut(pe.Reset,d.email),B=de("");v(n,B,H=>o(4,c=H));const W=de(!0);v(n,W,H=>o(6,m=H));const{allSelected:T,selectedWorkflows:G}=De(Ae);v(n,T,H=>o(23,l=H)),v(n,G,H=>o(21,e=H));const ee=()=>{ne(V,f="",f),ne(B,c="",c),ne(W,m=!0,m),o(2,w=Ne())},re=async()=>{o(1,p="");const H={namespace:u,reason:f||P,jobId:c||w,resetType:a,...l?{query:r}:{workflows:e}};try{await No(H),o(0,_=!1),ee(),ct.push({message:A("workflows.batch-reset-all-success"),id:"batch-reset-success-toast"})}catch(Te){o(1,p=pt(Te)?Te.message:A("common.unknown-error"))}};function ie(H){C=H,s(o(3,C))}function k(H){f=H,V.set(f)}function ae(H){c=H,B.set(c)}function _e(H){m=H,W.set(m)}function le(H){p=H,o(1,p)}function Ce(H){_=H,o(0,_)}return n.$$set=H=>{"namespace"in H&&o(14,u=H.namespace),"open"in H&&o(0,_=H.open)},n.$$.update=()=>{n.$$.dirty&1&&_&&ee()},[_,p,w,C,c,f,m,V,P,B,W,T,G,re,u,ie,k,ae,_e,le,Ce]}class Ur extends ue{constructor(t){super(),me(this,t,Hr,qr,ce,{namespace:14,open:0})}}function zr(n){let t,o,e;return o=new he({props:{key:"workflows.batch-terminate-modal-title"}}),{c(){t=Q("h3"),y(o.$$.fragment),this.h()},l(r){t=q(r,"H3",{slot:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"slot","title")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p:F,i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Kr(n){let t,o,e,r,l;function a(f){n[14](f)}function i(f){n[15](f)}function s(f){n[16](f)}let c={reasonPlaceholder:n[7],jobIdPlaceholder:n[1],action:pe.Terminate};return n[4]!==void 0&&(c.reason=n[4]),n[3]!==void 0&&(c.jobId=n[3]),n[5]!==void 0&&(c.jobIdValid=n[5]),t=new gt({props:c}),Y.push(()=>J(t,"reason",a)),Y.push(()=>J(t,"jobId",i)),Y.push(()=>J(t,"jobIdValid",s)),{c(){y(t.$$.fragment)},l(f){j(t.$$.fragment,f)},m(f,m){E(t,f,m),l=!0},p(f,m){const d={};m&2&&(d.jobIdPlaceholder=f[1]),!o&&m&16&&(o=!0,d.reason=f[4],X(()=>o=!1)),!e&&m&8&&(e=!0,d.jobId=f[3],X(()=>e=!1)),!r&&m&32&&(r=!0,d.jobIdValid=f[5],X(()=>r=!1)),t.$set(d)},i(f){l||(h(t.$$.fragment,f),l=!0)},o(f){b(t.$$.fragment,f),l=!1},d(f){S(t,f)}}}function Gr(n){let t,o,e,r;function l(s){n[17](s)}function a(s){n[18](s)}let i={id:"batch-terminate-confirmation-modal","data-testid":"batch-terminate-confirmation",confirmType:"destructive",cancelText:A("common.cancel"),confirmDisabled:!n[9],confirmText:A("workflows.terminate"),$$slots:{content:[Kr],title:[zr]},$$scope:{ctx:n}};return n[0]!==void 0&&(i.open=n[0]),n[2]!==void 0&&(i.error=n[2]),t=new it({props:i}),Y.push(()=>J(t,"open",l)),Y.push(()=>J(t,"error",a)),t.$on("confirmModal",n[12]),{c(){y(t.$$.fragment)},l(s){j(t.$$.fragment,s)},m(s,c){E(t,s,c),r=!0},p(s,[c]){const f={};c&16777274&&(f.$$scope={dirty:c,ctx:s}),!o&&c&1&&(o=!0,f.open=s[0],X(()=>o=!1)),!e&&c&4&&(e=!0,f.error=s[2],X(()=>e=!1)),t.$set(f)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){b(t.$$.fragment,s),r=!1},d(s){S(t,s)}}}function Yr(n,t,o){let e,r,l,a,i,s,c;v(n,ke,k=>o(20,r=k)),v(n,ft,k=>o(22,c=k));let{namespace:f}=t,{open:m}=t;const d=de("");v(n,d,k=>o(4,i=k));const u=ut(pe.Terminate,c.email),_=de("");v(n,_,k=>o(3,a=k));const p=de(!0);v(n,p,k=>o(5,s=k));let w=Ne(),C="";const{allSelected:V,terminableWorkflows:P}=De(Ae);v(n,V,k=>o(21,l=k)),v(n,P,k=>o(19,e=k));const B=()=>{ne(d,i="",i),ne(_,a="",a),ne(p,s=!0,s),o(1,w=Ne())},W=async()=>{o(2,C="");try{const k={namespace:f,reason:i||u,jobId:a||w,...l?{query:r}:{workflows:e}};await Mo(k),o(0,m=!1),B(),ct.push({message:A("workflows.batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(k){o(2,C=pt(k)?k.message:A("common.unknown-error"))}};function T(k){i=k,d.set(i)}function G(k){a=k,_.set(a)}function ee(k){s=k,p.set(s)}function re(k){m=k,o(0,m)}function ie(k){C=k,o(2,C)}return n.$$set=k=>{"namespace"in k&&o(13,f=k.namespace),"open"in k&&o(0,m=k.open)},n.$$.update=()=>{n.$$.dirty&1&&m&&B()},[m,w,C,a,i,s,d,u,_,p,V,P,W,f,T,G,ee,re,ie]}class Xr extends ue{constructor(t){super(),me(this,t,Yr,Gr,ce,{namespace:13,open:0})}}const Jr=n=>({}),Dt=n=>({});function Zr(n){let t;const o=n[4].fallback,e=Ee(o,n,n[3],Dt);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8)&&Se(e,o,r,r[3],t?Ve(o,r[3],l,Jr):Be(r[3]),Dt)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function xr(n){let t;const o=n[4].default,e=Ee(o,n,n[3],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8)&&Se(e,o,r,r[3],t?Ve(o,r[3],l,null):Be(r[3]),null)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function en(n){let t,o,e,r,l;const a=[xr,Zr],i=[];function s(c,f){return f&7&&(t=null),t==null&&(t=!!(c[1]||bo(c[0],c[2]))),t?0:1}return o=s(n,-1),e=i[o]=a[o](n),{c(){e.c(),r=oe()},l(c){e.l(c),r=oe()},m(c,f){i[o].m(c,f),I(c,r,f),l=!0},p(c,[f]){let m=o;o=s(c,f),o===m?i[o].p(c,f):(Z(),b(i[m],1,1,()=>{i[m]=null}),x(),e=i[o],e?e.p(c,f):(e=i[o]=a[o](c),e.c()),h(e,1),e.m(r.parentNode,r))},i(c){l||(h(e),l=!0)},o(c){b(e),l=!1},d(c){c&&g(r),i[o].d(c)}}}function tn(n,t,o){let e,r;v(n,mt,s=>o(1,e=s)),v(n,dt,s=>o(2,r=s));let{$$slots:l={},$$scope:a}=t,{minimumVersion:i}=t;return n.$$set=s=>{"minimumVersion"in s&&o(0,i=s.minimumVersion),"$$scope"in s&&o(3,a=s.$$scope)},[i,e,r,a,l]}class Io extends ue{constructor(t){super(),me(this,t,tn,en,ce,{minimumVersion:0})}}function on(n){let t=A("common.search")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function rn(n){let t,o,e,r,l,a,i,s,c,f,m,d;function u(p){n[5](p)}let _={id:"manual-search",type:"search",label:A("workflows.search-placeholder"),labelHidden:!0,placeholder:A("workflows.search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:A("common.clear-input-button-label"),unroundRight:!0};return n[0]!==void 0&&(_.value=n[0]),r=new lt({props:_}),Y.push(()=>J(r,"value",u)),r.$on("clear",n[2]),i=new We({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[on]},$$scope:{ctx:n}}}),{c(){t=Q("div"),o=Q("div"),e=Q("form"),y(r.$$.fragment),a=N(),y(i.$$.fragment),this.h()},l(p){t=q(p,"DIV",{class:!0});var w=U(t);o=q(w,"DIV",{class:!0});var C=U(o);e=q(C,"FORM",{class:!0,role:!0});var V=U(e);j(r.$$.fragment,V),a=M(V),j(i.$$.fragment,V),V.forEach(g),C.forEach(g),w.forEach(g),this.h()},h(){O(e,"class","relative flex w-full items-center gap-0"),O(e,"role","search"),O(o,"class","flex w-full items-center gap-0"),O(t,"class","flex grow gap-4")},m(p,w){I(p,t,w),R(t,o),R(o,e),E(r,e,null),R(e,a),E(i,e,null),f=!0,m||(d=je(e,"submit",jo(n[1])),m=!0)},p(p,[w]){const C={};!l&&w&1&&(l=!0,C.value=p[0],X(()=>l=!1)),r.$set(C);const V={};w&2048&&(V.$$scope={dirty:w,ctx:p}),i.$set(V)},i(p){f||(h(r.$$.fragment,p),h(i.$$.fragment,p),p&&(s||vt(()=>{s=Et(e,rr,{x:-100,duration:150}),s.start()})),p&&(c||vt(()=>{c=Et(o,nr,{}),c.start()})),f=!0)},o(p){b(r.$$.fragment,p),b(i.$$.fragment,p),f=!1},d(p){p&&g(t),S(r),S(i),m=!1,d()}}}function nn(n,t,o){let e,r,l,a,i,s;v(n,Pe,_=>o(4,r=_)),v(n,Ie,_=>o(6,l=_)),v(n,go,_=>o(7,a=_)),v(n,we,_=>o(8,i=_)),v(n,ke,_=>o(9,s=_));let c="";function f(_){o(0,c=_)}const m=()=>{if(!c)ne(we,i=[],i),ne(ke,s="",s);else try{ne(we,i=mo(c,a),i)}catch(_){console.error(_)}c&&c===e?ne(Ie,l=Date.now(),l):fr({url:r.url,parameter:"query",value:c,allowEmpty:!0,clearParameters:[lr]})};function d(){m()}function u(_){c=_,o(0,c)}return n.$$.update=()=>{n.$$.dirty&16&&o(3,e=r.url.searchParams.get("query")),n.$$.dirty&8&&f(e)},[c,m,d,e,r,u]}class ln extends ue{constructor(t){super(),me(this,t,nn,rn,ce,{})}}const an=n=>{const t=_r({workflows:n},null,2);o(t,`workflows-${n==null?void 0:n.length}-${Date.now()}.json`,"text/plain");function o(e,r,l){const a=document.createElement("a"),i=new Blob([e],{type:l});a.href=URL.createObjectURL(i),a.download=r,a.click()}};function Ot(n){let t,o;return t=new ln({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function sn(n){let t,o,e=n[1]&&Ot();return{c(){e&&e.c(),t=oe()},l(r){e&&e.l(r),t=oe()},m(r,l){e&&e.m(r,l),I(r,t,l),o=!0},p(r,l){r[1]?e?l&2&&h(e,1):(e=Ot(),e.c(),h(e,1),e.m(t.parentNode,t)):e&&(Z(),b(e,1,1,()=>{e=null}),x())},i(r){o||(h(e),o=!0)},o(r){b(e),o=!1},d(r){r&&g(t),e&&e.d(r)}}}function fn(n){let t,o;return t=new ht({props:{name:"settings"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function cn(n){let t,o,e;function r(a){n[7](a)}let l={"data-testid":"show-child-workflow-toggle",label:A("workflows.show-children"),labelPosition:"left",id:"show-child-workflow-input"};return n[5]!==void 0&&(l.checked=n[5]),t=new wo({props:l}),Y.push(()=>J(t,"checked",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,i){const s={};!o&&i&32&&(o=!0,s.checked=a[5],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function un(n){let t=A("workflows.configure-headers",{title:A("common.workflows",{count:2})})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function mn(n){let t=A("common.download-json")+"",o,e,r,l;return r=new ht({props:{name:"download"}}),{c(){o=z(t),e=N(),y(r.$$.fragment)},l(a){o=K(a,t),e=M(a),j(r.$$.fragment,a)},m(a,i){I(a,o,i),I(a,e,i),E(r,a,i),l=!0},p:F,i(a){l||(h(r.$$.fragment,a),l=!0)},o(a){b(r.$$.fragment,a),l=!1},d(a){a&&(g(o),g(e)),S(r,a)}}}function _n(n){let t,o,e,r,l,a,i,s,c,f;o=new Io({props:{minimumVersion:"1.23.0",$$slots:{default:[cn]},$$scope:{ctx:n}}});function m(u){n[8](u)}let d={"data-testid":"manual-search-toggle",label:A("workflows.view-search-input"),labelPosition:"left",id:"view-search-input"};return n[1]!==void 0&&(d.checked=n[1]),r=new wo({props:d}),Y.push(()=>J(r,"checked",m)),i=new Pt({props:{class:"m-0 py-0.5","data-testid":"workflows-summary-table-configuration-button",$$slots:{default:[un]},$$scope:{ctx:n}}}),i.$on("click",function(){Eo(n[0])&&n[0].apply(this,arguments)}),c=new Pt({props:{class:"m-0 py-0.5","data-testid":"export-history-button",$$slots:{default:[mn]},$$scope:{ctx:n}}}),c.$on("click",n[9]),{c(){t=Q("div"),y(o.$$.fragment),e=N(),y(r.$$.fragment),a=N(),y(i.$$.fragment),s=N(),y(c.$$.fragment),this.h()},l(u){t=q(u,"DIV",{class:!0});var _=U(t);j(o.$$.fragment,_),e=M(_),j(r.$$.fragment,_),a=M(_),j(i.$$.fragment,_),s=M(_),j(c.$$.fragment,_),_.forEach(g),this.h()},h(){O(t,"class","flex flex-col items-start gap-4 p-4 md:items-end")},m(u,_){I(u,t,_),E(o,t,null),R(t,e),E(r,t,null),R(t,a),E(i,t,null),R(t,s),E(c,t,null),f=!0},p(u,_){n=u;const p={};_&4128&&(p.$$scope={dirty:_,ctx:n}),o.$set(p);const w={};!l&&_&2&&(l=!0,w.checked=n[1],X(()=>l=!1)),r.$set(w);const C={};_&4096&&(C.$$scope={dirty:_,ctx:n}),i.$set(C);const V={};_&4096&&(V.$$scope={dirty:_,ctx:n}),c.$set(V)},i(u){f||(h(o.$$.fragment,u),h(r.$$.fragment,u),h(i.$$.fragment,u),h(c.$$.fragment,u),f=!0)},o(u){b(o.$$.fragment,u),b(r.$$.fragment,u),b(i.$$.fragment,u),b(c.$$.fragment,u),f=!1},d(u){u&&g(t),S(o),S(r),S(i),S(c)}}}function pn(n){let t,o,e,r;return t=new cr({props:{controls:"filter-configuration-menu",count:Number(n[1])+Number(n[4]&&n[5]),"data-testid":"filter-configuration-menu-button",class:"max-w-[3rem] text-nowrap md:max-w-full",$$slots:{leading:[fn]},$$scope:{ctx:n}}}),e=new mr({props:{id:"filter-configuration-menu",position:"right",$$slots:{default:[_n]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,a){const i={};a&50&&(i.count=Number(l[1])+Number(l[4]&&l[5])),a&4096&&(i.$$scope={dirty:a,ctx:l}),t.$set(i);const s={};a&4195&&(s.$$scope={dirty:a,ctx:l}),e.$set(s)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function dn(n){let t,o;return t=new ur({props:{$$slots:{default:[pn]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&4211&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function hn(n){let t,o,e;function r(a){n[11](a)}let l={showFilter:!n[1],refresh:n[10],$$slots:{actions:[dn],default:[sn]},$$scope:{ctx:n}};return n[2]!==void 0&&(l.filters=n[2]),t=new Jo({props:l}),Y.push(()=>J(t,"filters",r)),{c(){y(t.$$.fragment)},l(a){j(t.$$.fragment,a)},m(a,i){E(t,a,i),e=!0},p(a,[i]){const s={};i&2&&(s.showFilter=!a[1]),i&8&&(s.refresh=a[10]),i&4211&&(s.$$scope={dirty:i,ctx:a}),!o&&i&4&&(o=!0,s.filters=a[2],X(()=>o=!1)),t.$set(s)},i(a){e||(h(t.$$.fragment,a),e=!0)},o(a){b(t.$$.fragment,a),e=!1},d(a){S(t,a)}}}function bn(n,t,o){let e,r,l,a,i,s;v(n,Vt,p=>o(1,e=p)),v(n,we,p=>o(2,r=p)),v(n,Ie,p=>o(3,l=p)),v(n,Ro,p=>o(4,a=p)),v(n,Ye,p=>o(5,i=p)),v(n,_o,p=>o(6,s=p));let{onClickConfigure:c}=t;function f(p){i=p,Ye.set(i)}function m(p){e=p,Vt.set(e)}const d=()=>an(s),u=()=>{ne(Ie,l=Date.now(),l)};function _(p){r=p,we.set(r)}return n.$$set=p=>{"onClickConfigure"in p&&o(0,c=p.onClickConfigure)},[c,e,r,l,a,i,s,f,m,d,u,_]}class gn extends ue{constructor(t){super(),me(this,t,bn,hn,ce,{onClickConfigure:0})}}function wn(n){let t=n[0].toLocaleString()+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=e[0].toLocaleString()+"")&&se(o,t)},d(e){e&&g(o)}}}function kn(n){let t,o=n[0].toLocaleString()+"",e;return{c(){t=z("+"),e=z(o)},l(r){t=K(r,"+"),e=K(r,o)},m(r,l){I(r,t,l),I(r,e,l)},p(r,l){l&1&&o!==(o=r[0].toLocaleString()+"")&&se(e,o)},d(r){r&&(g(t),g(e))}}}function $n(n){let t;function o(l,a){if(l[0]>0)return kn;if(l[0]<0)return wn}let e=o(n),r=e&&e(n);return{c(){r&&r.c(),t=oe()},l(l){r&&r.l(l),t=oe()},m(l,a){r&&r.m(l,a),I(l,t,a)},p(l,a){e===(e=o(l))&&r?r.p(l,a):(r&&r.d(1),r=e&&e(l),r&&(r.c(),r.m(t.parentNode,t)))},d(l){l&&g(t),r&&r.d(l)}}}function In(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",leadingIcon:"retry",loading:n[1]||n[2],$$slots:{default:[$n]},$$scope:{ctx:n}}}),t.$on("click",n[4]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,[r]){const l={};r&6&&(l.loading=e[1]||e[2]),r&33&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Cn(n,t,o){let e,r,l;v(n,Lo,s=>o(1,e=s)),v(n,_t,s=>o(2,r=s)),v(n,Ie,s=>o(3,l=s));let{count:a=0}=t;const i=()=>ne(Ie,l=Date.now(),l);return n.$$set=s=>{"count"in s&&o(0,a=s.count)},[a,e,r,l,i]}class Tn extends ue{constructor(t){super(),me(this,t,Cn,In,ce,{count:0})}}const rt=""+new URL("../assets/empty-state-dark_2x.BtTCLk6j.png",import.meta.url).href,Ft=""+new URL("../assets/empty-state-light_2x.BAwLJnNu.png",import.meta.url).href;function Nt(n,t,o){const e=n.slice();return e[7]=t[o],e}const vn=n=>({}),Mt=n=>({});function yn(n){let t,o,e,r,l,a;function i(u,_){return u[1]?Sn:En}let s=i(n),c=s(n);const f=[Pn,Vn,Bn],m=[];function d(u,_){return u[2]?0:u[1]?1:2}return e=d(n),r=m[e]=f[e](n),{c(){t=Q("h2"),c.c(),o=N(),r.c(),l=oe()},l(u){t=q(u,"H2",{});var _=U(t);c.l(_),_.forEach(g),o=M(u),r.l(u),l=oe()},m(u,_){I(u,t,_),c.m(t,null),I(u,o,_),m[e].m(u,_),I(u,l,_),a=!0},p(u,_){s===(s=i(u))&&c?c.p(u,_):(c.d(1),c=s(u),c&&(c.c(),c.m(t,null)));let p=e;e=d(u),e===p?m[e].p(u,_):(Z(),b(m[p],1,1,()=>{m[p]=null}),x(),r=m[e],r?r.p(u,_):(r=m[e]=f[e](u),r.c()),h(r,1),r.m(l.parentNode,l))},i(u){a||(h(r),a=!0)},o(u){b(r),a=!1},d(u){u&&(g(t),g(o),g(l)),c.d(),m[e].d(u)}}}function jn(n){let t,o;return t=new hr({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function En(n){let t=A("workflows.workflow-empty-state-title")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Sn(n){let t=A("workflows.workflow-query-empty-state-title")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Bn(n){let t,o,e=A("workflows.workflow-empty-state-description")+"",r,l,a,i,s,c,f;const m=n[5].cloud,d=Ee(m,n,n[6],Mt);a=new bt({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Wn]},$$scope:{ctx:n}}});let u=be(n[3]),_=[];for(let w=0;wb(_[w],1,1,()=>{_[w]=null});return{c(){d&&d.c(),t=N(),o=Q("p"),r=z(e),l=N(),y(a.$$.fragment),i=z("."),s=N(),c=Q("ul");for(let w=0;w<_.length;w+=1)_[w].c();this.h()},l(w){d&&d.l(w),t=M(w),o=q(w,"P",{});var C=U(o);r=K(C,e),l=M(C),j(a.$$.fragment,C),i=K(C,"."),C.forEach(g),s=M(w),c=q(w,"UL",{class:!0});var V=U(c);for(let P=0;P<_.length;P+=1)_[P].l(V);V.forEach(g),this.h()},h(){O(c,"class","flex flex-col gap-2")},m(w,C){d&&d.m(w,C),I(w,t,C),I(w,o,C),R(o,r),R(o,l),E(a,o,null),R(o,i),I(w,s,C),I(w,c,C);for(let V=0;V<_.length;V+=1)_[V]&&_[V].m(c,null);f=!0},p(w,C){d&&d.p&&(!f||C&64)&&Se(d,m,w,w[6],f?Ve(m,w[6],C,vn):Be(w[6]),Mt);const V={};if(C&64&&(V.$$scope={dirty:C,ctx:w}),a.$set(V),C&8){u=be(w[3]);let P;for(P=0;P{u[C]=null}),x(),a=u[l],a?a.p(p,w):(a=u[l]=d[l](p),a.c()),h(a,1),a.m(r,null)),(!m||w&2&&!yt(c.src,f=p[1]?Ft:rt))&&O(c,"src",f)},i(p){m||(h(a),m=!0)},o(p){b(a),m=!1},d(p){p&&(g(o),g(e)),g(t),u[l].d()}}}function Fn(n,t,o){let e,r,l;v(n,Pe,f=>o(4,r=f)),v(n,Qo,f=>o(2,l=f));let{$$slots:a={},$$scope:i}=t,{updating:s=!1}=t;const c=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return n.$$set=f=>{"updating"in f&&o(0,s=f.updating),"$$scope"in f&&o(6,i=f.$$scope)},n.$$.update=()=>{n.$$.dirty&16&&o(1,e=r.url.searchParams.get("query"))},[s,e,l,c,r,a,i]}class Nn extends ue{constructor(t){super(),me(this,t,Fn,On,ce,{updating:0})}}const Lt=(n,t=2)=>{if(!+n)return"0 Bytes";const o=1024,e=t<0?0:t,r=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],l=Math.floor(Math.log(n)/Math.log(o));return`${parseFloat((n/Math.pow(o,l)).toFixed(e))} ${r[l]}`},Mn={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function Rn(n){let t;return{c(){t=z(n[2])},l(o){t=K(o,n[2])},m(o,e){I(o,t,e)},p(o,e){e&4&&se(t,o[2])},d(o){o&&g(t)}}}function Ln(n){let t,o,e,r;return t=new bt({props:{href:n[3],$$slots:{default:[Rn]},$$scope:{ctx:n}}}),e=new Ir({props:{copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title"),filterIconTitle:A("common.filter-workflows"),show:n[1],content:n[2],onFilter:n[5],filtered:n[4].some(n[9])}}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,[a]){const i={};a&8&&(i.href=l[3]),a&1028&&(i.$$scope={dirty:a,ctx:l}),t.$set(i);const s={};a&2&&(s.show=l[1]),a&4&&(s.content=l[2]),a&21&&(s.filtered=l[4].some(l[9])),e.$set(s)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function Qn(n,t,o){let e,r,l,a,i;v(n,we,u=>o(4,a=u)),v(n,Pe,u=>o(8,i=u));let{attribute:s}=t,{workflow:c}=t,{filterOrCopyButtonsVisible:f=!1}=t;const m=()=>{const u=a.find(p=>p.attribute===s),_=()=>a.filter(p=>p.attribute!==s);if(!u||u.value!==e){const p={attribute:s,type:at.KEYWORD,value:e,conditional:"=",operator:"",parenthesis:""};ne(we,a=[..._(),p],a)}else ne(we,a=[..._()],a);Oo(i.url,a)},d=u=>u.attribute===s&&u.value===e;return n.$$set=u=>{"attribute"in u&&o(0,s=u.attribute),"workflow"in u&&o(6,c=u.workflow),"filterOrCopyButtonsVisible"in u&&o(1,f=u.filterOrCopyButtonsVisible)},n.$$.update=()=>{n.$$.dirty&65&&o(2,e=c[Mn[s]]),n.$$.dirty&256&&o(7,r=i.params.namespace),n.$$.dirty&192&&o(3,l=Cr({namespace:r,workflow:c.id,run:c.runId}))},[s,f,e,l,a,m,c,r,i,d]}class wt extends ue{constructor(t){super(),me(this,t,Qn,Ln,ce,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function qn(n){const t=n.slice(),o=t[0].searchAttributes.indexedFields[t[2]];return t[10]=o,t}function Hn(n){var e,r;const t=n.slice(),o=(r=(e=t[0].searchAttributes)==null?void 0:e.indexedFields)==null?void 0:r.TemporalScheduledStartTime;return t[10]=o,t}function Un(n){let t,o,e,r,l;const a=[ll,nl,rl,ol,tl,el,xn,Zn,Jn,Xn,Yn,Gn,Kn],i=[];function s(f,m){return m&5&&(o=null),f[2]==="Status"?0:f[2]==="End"?1:f[2]==="Start"?2:f[2]==="Task Queue"?3:f[2]==="Parent Namespace"?4:f[2]==="History Size"?5:f[2]==="State Transitions"?6:f[2]==="Execution Time"?7:f[2]==="Execution Duration"?8:f[2]==="History Length"?9:f[2]==="Scheduled By ID"?10:f[2]==="Scheduled Start Time"?11:(o==null&&(o=!!(sr(f[2])&&ir(f[0],f[2]))),o?12:-1)}function c(f,m){return m===11?Hn(f):m===12?qn(f):f}return~(e=s(n,-1))&&(r=i[e]=a[e](c(n,e))),{c(){t=Q("td"),r&&r.c(),this.h()},l(f){t=q(f,"TD",{class:!0,"data-testid":!0});var m=U(t);r&&r.l(m),m.forEach(g),this.h()},h(){O(t,"class","workflows-summary-table-body-cell svelte-zhjx2p"),O(t,"data-testid","workflows-summary-table-body-cell")},m(f,m){I(f,t,m),~e&&i[e].m(t,null),l=!0},p(f,m){let d=e;e=s(f,m),e===d?~e&&i[e].p(c(f,e),m):(r&&(Z(),b(i[d],1,1,()=>{i[d]=null}),x()),~e?(r=i[e],r?r.p(c(f,e),m):(r=i[e]=a[e](c(f,e)),r.c()),h(r,1),r.m(t,null)):r=null)},i(f){l||(h(r),l=!0)},o(f){b(r),l=!1},d(f){f&&g(t),~e&&i[e].d()}}}function zn(n){let t,o,e,r,l,a;const i=[ml,ul,cl],s=[];function c(f,m){return f[2]==="Type"?0:f[2]==="Workflow ID"?1:f[2]==="Run ID"?2:-1}return~(o=c(n))&&(e=s[o]=i[o](n)),{c(){t=Q("td"),e&&e.c(),this.h()},l(f){t=q(f,"TD",{class:!0,"data-testid":!0});var m=U(t);e&&e.l(m),m.forEach(g),this.h()},h(){O(t,"class","workflows-summary-table-body-cell filterable svelte-zhjx2p"),O(t,"data-testid","workflows-summary-table-body-cell")},m(f,m){I(f,t,m),~o&&s[o].m(t,null),r=!0,l||(a=[je(t,"mouseover",n[6]),je(t,"focus",n[6]),je(t,"focusin",n[6]),je(t,"focusout",n[8]),je(t,"mouseleave",n[7]),je(t,"blur",n[7])],l=!0)},p(f,m){let d=o;o=c(f),o===d?~o&&s[o].p(f,m):(e&&(Z(),b(s[d],1,1,()=>{s[d]=null}),x()),~o?(e=s[o],e?e.p(f,m):(e=s[o]=i[o](f),e.c()),h(e,1),e.m(t,null)):e=null)},i(f){r||(h(e),r=!0)},o(f){b(e),r=!1},d(f){f&&g(t),~o&&s[o].d(),l=!1,Bo(a)}}}function Kn(n){let t,o,e,r;const l=[il,sl,al],a=[];function i(s,c){return s[5][s[2]]===at.DATETIME&&typeof s[10]=="string"?0:s[5][s[2]]===at.BOOL?1:2}return t=i(n),o=a[t]=l[t](n),{c(){o.c(),e=oe()},l(s){o.l(s),e=oe()},m(s,c){a[t].m(s,c),I(s,e,c),r=!0},p(s,c){let f=t;t=i(s),t===f?a[t].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),o=a[t],o?o.p(s,c):(o=a[t]=l[t](s),o.c()),h(o,1),o.m(e.parentNode,e))},i(s){r||(h(o),r=!0)},o(s){b(o),r=!1},d(s){s&&g(e),a[t].d(s)}}}function Gn(n){let t=(n[10]&&typeof n[10]=="string"?$e(n[10],n[3],{relative:n[4]}):"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=(e[10]&&typeof e[10]=="string"?$e(e[10],e[3],{relative:e[4]}):"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Yn(n){var e,r;let t=(((r=(e=n[0].searchAttributes)==null?void 0:e.indexedFields)==null?void 0:r.TemporalScheduledById)??"")+"",o;return{c(){o=z(t)},l(l){o=K(l,t)},m(l,a){I(l,o,a)},p(l,a){var i,s;a&1&&t!==(t=(((s=(i=l[0].searchAttributes)==null?void 0:i.indexedFields)==null?void 0:s.TemporalScheduledById)??"")+"")&&se(o,t)},i:F,o:F,d(l){l&&g(o)}}}function Xn(n){let t=(parseInt(n[0].historyEvents,10)>0?n[0].historyEvents:"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=(parseInt(e[0].historyEvents,10)>0?e[0].historyEvents:"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Jn(n){let t=Wt({start:n[0].startTime,end:n[0].endTime,includeMillisecondsForUnderSecond:!0})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=Wt({start:e[0].startTime,end:e[0].endTime,includeMillisecondsForUnderSecond:!0})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function Zn(n){let t=$e(n[0].executionTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].executionTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function xn(n){let t=(parseInt(n[0].stateTransitionCount,10)>0?n[0].stateTransitionCount:"")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=(parseInt(e[0].stateTransitionCount,10)>0?e[0].stateTransitionCount:"")+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function el(n){let t=Lt(parseInt(n[0].historySizeBytes,10))+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=Lt(parseInt(e[0].historySizeBytes,10))+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function tl(n){var e;let t=(((e=n[0])==null?void 0:e.parentNamespaceId)??"")+"",o;return{c(){o=z(t)},l(r){o=K(r,t)},m(r,l){I(r,o,l)},p(r,l){var a;l&1&&t!==(t=(((a=r[0])==null?void 0:a.parentNamespaceId)??"")+"")&&se(o,t)},i:F,o:F,d(r){r&&g(o)}}}function ol(n){let t=n[0].taskQueue+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&1&&t!==(t=e[0].taskQueue+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function rl(n){let t=$e(n[0].startTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].startTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function nl(n){let t=$e(n[0].endTime,n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&25&&t!==(t=$e(e[0].endTime,e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function ll(n){let t,o;return t=new gr({props:{status:n[0].status}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&1&&(l.status=e[0].status),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function al(n){let t=n[10]+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&5&&t!==(t=e[10]+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function sl(n){let t,o;return t=new wr({props:{$$slots:{default:[fl]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2053&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function il(n){let t=$e(n[10],n[3],{relative:n[4]})+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&29&&t!==(t=$e(e[10],e[3],{relative:e[4]})+"")&&se(o,t)},i:F,o:F,d(e){e&&g(o)}}}function fl(n){let t=n[10]+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p(e,r){r&5&&t!==(t=e[10]+"")&&se(o,t)},d(e){e&&g(o)}}}function cl(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"RunId",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ul(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"WorkflowId",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ml(n){let t,o;return t=new wt({props:{filterOrCopyButtonsVisible:n[1],attribute:"WorkflowType",workflow:n[0]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&2&&(l.filterOrCopyButtonsVisible=e[1]),r&1&&(l.workflow=e[0]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function _l(n){let t,o,e,r;const l=[zn,Un],a=[];function i(s,c){return s[2]==="Run ID"||s[2]==="Workflow ID"||s[2]==="Type"?0:1}return t=i(n),o=a[t]=l[t](n),{c(){o.c(),e=oe()},l(s){o.l(s),e=oe()},m(s,c){a[t].m(s,c),I(s,e,c),r=!0},p(s,[c]){let f=t;t=i(s),t===f?a[t].p(s,c):(Z(),b(a[f],1,1,()=>{a[f]=null}),x(),o=a[t],o?o.p(s,c):(o=a[t]=l[t](s),o.c()),h(o,1),o.m(e.parentNode,e))},i(s){r||(h(o),r=!0)},o(s){b(o),r=!1},d(s){s&&g(e),a[t].d(s)}}}function pl(n,t,o){let e,r,l,a;v(n,kr,u=>o(3,r=u)),v(n,$r,u=>o(4,l=u)),v(n,ar,u=>o(5,a=u));let{column:i}=t,{workflow:s}=t,c=!1;const f=()=>o(1,c=!0),m=()=>o(1,c=!1),d=u=>{const _=u.relatedTarget;_&&!["filter-button","copy-button"].includes(_.id)&&m()};return n.$$set=u=>{"column"in u&&o(9,i=u.column),"workflow"in u&&o(0,s=u.workflow)},n.$$.update=()=>{n.$$.dirty&512&&o(2,{label:e}=i,e)},[s,c,e,r,l,a,f,m,d,i]}class Co extends ue{constructor(t){super(),me(this,t,pl,_l,ce,{column:9,workflow:0})}}function dl(n){let t,o,e;return{c(){t=Q("th"),o=z(n[0]),this.h()},l(r){t=q(r,"TH",{"data-testid":!0});var l=U(t);o=K(l,n[0]),l.forEach(g),this.h()},h(){O(t,"data-testid",e="workflows-summary-table-header-cell-"+n[0])},m(r,l){I(r,t,l),R(t,o)},p(r,[l]){l&1&&se(o,r[0]),l&1&&e!==(e="workflows-summary-table-header-cell-"+r[0])&&O(t,"data-testid",e)},i:F,o:F,d(r){r&&g(t)}}}function hl(n,t,o){let e,{column:r}=t;return n.$$set=l=>{"column"in l&&o(1,r=l.column)},n.$$.update=()=>{n.$$.dirty&2&&o(0,{label:e}=r,e)},[e,r]}class bl extends ue{constructor(t){super(),me(this,t,hl,dl,ce,{column:1})}}const gl=["workflowCancelDisabled","workflowTerminateDisabled"],wl=n=>n.disableWriteActions||n.batchActionsDisabled?!1:gl.some(t=>!n[t]),To=Le([dt,po,tr,mt],([n,t,o,e])=>(e?!0:or(n,"1.18.0"))&&t&&wl(o));function kl(n){let t,o,e,r,l;o=new he({props:{key:"workflows.n-selected",count:n[1]}});let a=n[7]&&Qt(n);return{c(){t=Q("span"),y(o.$$.fragment),e=N(),a&&a.c(),r=oe(),this.h()},l(i){t=q(i,"SPAN",{class:!0});var s=U(t);j(o.$$.fragment,s),s.forEach(g),e=M(i),a&&a.l(i),r=oe(),this.h()},h(){O(t,"class","font-semibold")},m(i,s){I(i,t,s),E(o,t,null),I(i,e,s),a&&a.m(i,s),I(i,r,s),l=!0},p(i,s){const c={};s&2&&(c.count=i[1]),o.$set(c),i[7]?a?(a.p(i,s),s&128&&h(a,1)):(a=Qt(i),a.c(),h(a,1),a.m(r.parentNode,r)):a&&(Z(),b(a,1,1,()=>{a=null}),x())},i(i){l||(h(o.$$.fragment,i),h(a),l=!0)},o(i){b(o.$$.fragment,i),b(a),l=!1},d(i){i&&(g(t),g(e),g(r)),S(o),a&&a.d(i)}}}function $l(n){let t,o,e;return o=new he({props:{key:"workflows.all-selected",count:n[6].count}}),{c(){t=Q("span"),y(o.$$.fragment),this.h()},l(r){t=q(r,"SPAN",{class:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"class","font-semibold")},m(r,l){I(r,t,l),E(o,t,null),e=!0},p(r,l){const a={};l&64&&(a.count=r[6].count),o.$set(a)},i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Qt(n){let t,o,e=A("workflows.select-all-leading")+"",r,l,a,i,s,c=A("workflows.select-all-trailing")+"",f,m,d,u,_;return i=new he({props:{key:"workflows.select-all",count:n[6].count}}),{c(){t=Q("span"),o=z("("),r=z(e),l=N(),a=Q("button"),y(i.$$.fragment),s=N(),f=z(c),m=z(")"),this.h()},l(p){t=q(p,"SPAN",{});var w=U(t);o=K(w,"("),r=K(w,e),l=M(w),a=q(w,"BUTTON",{"data-testid":!0,class:!0});var C=U(a);j(i.$$.fragment,C),C.forEach(g),s=M(w),f=K(w,c),m=K(w,")"),w.forEach(g),this.h()},h(){O(a,"data-testid","select-all-workflows"),O(a,"class","cursor-pointer underline")},m(p,w){I(p,t,w),R(t,o),R(t,r),R(t,l),R(t,a),E(i,a,null),R(t,s),R(t,f),R(t,m),d=!0,u||(_=je(a,"click",n[23]),u=!0)},p(p,w){const C={};w&64&&(C.count=p[6].count),i.$set(C)},i(p){d||(h(i.$$.fragment,p),d=!0)},o(p){b(i.$$.fragment,p),d=!1},d(p){p&&g(t),S(i),u=!1,_()}}}function qt(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",class:"text-off-white focus-visible:border-table","data-testid":"bulk-cancel-button",disabled:!n[8].length,$$slots:{default:[Il]},$$scope:{ctx:n}}}),t.$on("click",n[13]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&256&&(l.disabled=!e[8].length),r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Il(n){let t=A("workflows.request-cancellation")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Ht(n){let t,o;return t=new We({props:{size:"xs",variant:"ghost",class:"text-off-white focus-visible:border-table","data-testid":"bulk-reset-button",$$slots:{default:[Cl]},$$scope:{ctx:n}}}),t.$on("click",n[15]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Cl(n){let t=A("workflows.reset")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function Ut(n){let t,o;return t=new We({props:{size:"xs",variant:"destructive",class:"focus-visible:border-table","data-testid":"bulk-terminate-button",$$slots:{default:[Tl]},$$scope:{ctx:n}}}),t.$on("click",n[14]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&16777216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Tl(n){let t=A("workflows.terminate")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function vl(n){let t,o,e,r,l,a,i;const s=[$l,kl],c=[];function f(_,p){return _[5]?0:1}t=f(n),o=c[t]=s[t](n);let m=n[3]&&qt(n),d=n[2]&&Ht(n),u=n[4]&&Ut(n);return{c(){o.c(),e=N(),r=Q("div"),m&&m.c(),l=N(),d&&d.c(),a=N(),u&&u.c(),this.h()},l(_){o.l(_),e=M(_),r=q(_,"DIV",{class:!0});var p=U(r);m&&m.l(p),l=M(p),d&&d.l(p),a=M(p),u&&u.l(p),p.forEach(g),this.h()},h(){O(r,"class","ml-4 inline-flex gap-2")},m(_,p){c[t].m(_,p),I(_,e,p),I(_,r,p),m&&m.m(r,null),R(r,l),d&&d.m(r,null),R(r,a),u&&u.m(r,null),i=!0},p(_,[p]){let w=t;t=f(_),t===w?c[t].p(_,p):(Z(),b(c[w],1,1,()=>{c[w]=null}),x(),o=c[t],o?o.p(_,p):(o=c[t]=s[t](_),o.c()),h(o,1),o.m(e.parentNode,e)),_[3]?m?(m.p(_,p),p&8&&h(m,1)):(m=qt(_),m.c(),h(m,1),m.m(r,l)):m&&(Z(),b(m,1,1,()=>{m=null}),x()),_[2]?d?(d.p(_,p),p&4&&h(d,1)):(d=Ht(_),d.c(),h(d,1),d.m(r,a)):d&&(Z(),b(d,1,1,()=>{d=null}),x()),_[4]?u?(u.p(_,p),p&16&&h(u,1)):(u=Ut(_),u.c(),h(u,1),u.m(r,null)):u&&(Z(),b(u,1,1,()=>{u=null}),x())},i(_){i||(h(o),h(m),h(d),h(u),i=!0)},o(_){b(o),b(m),b(d),b(u),i=!1},d(_){_&&(g(e),g(r)),c[t].d(_),m&&m.d(),d&&d.d(),u&&u.d()}}}function yl(n,t,o){let e,r,l,a,i,s,c,f,m,d,u,_;v(n,dt,k=>o(18,a=k)),v(n,mt,k=>o(19,i=k)),v(n,Pe,k=>o(20,s=k)),v(n,ho,k=>o(6,d=k)),v(n,ke,k=>o(7,u=k));var p;let{workflows:w}=t;const{selectedWorkflows:C,allSelected:V,handleSelectAll:P,cancelableWorkflows:B,openBatchCancelConfirmationModal:W,openBatchTerminateConfirmationModal:T,openBatchResetConfirmationModal:G}=De(Ae);v(n,C,k=>o(22,f=k)),v(n,V,k=>o(5,m=k)),v(n,B,k=>o(8,_=k));let ee=Tr();v(n,ee,k=>o(21,c=k));let re;const ie=()=>P(w);return n.$$set=k=>{"workflows"in k&&o(0,w=k.workflows)},n.$$.update=()=>{n.$$.dirty&4325376&&o(1,re=o(17,p=f==null?void 0:f.length)!==null&&p!==void 0?p:0),n.$$.dirty&3145728&&o(4,e=zo(s.data.settings,c,s.params.namespace)),n.$$.dirty&3145728&&o(3,r=Ko(s.data.settings,c,s.params.namespace)),n.$$.dirty&3932160&&o(2,l=Go(s.data.settings,c,s.params.namespace)&&i?!0:bo("1.23.0",a))},[w,re,l,r,e,m,d,u,_,C,V,P,B,W,T,G,ee,p,a,i,s,c,f,ie]}class jl extends ue{constructor(t){super(),me(this,t,yl,vl,ce,{workflows:0})}}function zt(n){let t,o,e,r;function l(i){n[15](i)}let a={label:n[3],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",indeterminate:n[4]};return n[6]!==void 0&&(a.checked=n[6]),o=new ko({props:a}),Y.push(()=>J(o,"checked",l)),o.$on("change",n[11]),{c(){t=Q("th"),y(o.$$.fragment),this.h()},l(i){t=q(i,"TH",{class:!0});var s=U(t);j(o.$$.fragment,s),s.forEach(g),this.h()},h(){O(t,"class","batch-actions-checkbox-table-cell svelte-ususbo")},m(i,s){I(i,t,s),E(o,t,null),r=!0},p(i,s){const c={};s&8&&(c.label=i[3]),s&16&&(c.indeterminate=i[4]),!e&&s&64&&(e=!0,c.checked=i[6],X(()=>e=!1)),o.$set(c)},i(i){r||(h(o.$$.fragment,i),r=!0)},o(i){b(o.$$.fragment,i),r=!1},d(i){i&&g(t),S(o)}}}function El(n){let t;const o=n[14].default,e=Ee(o,n,n[13],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l&8192)&&Se(e,o,r,r[13],t?Ve(o,r[13],l,null):Be(r[13]),null)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function Sl(n){let t,o,e;return o=new jl({props:{workflows:n[0]}}),{c(){t=Q("th"),y(o.$$.fragment),this.h()},l(r){t=q(r,"TH",{class:!0,colspan:!0});var l=U(t);j(o.$$.fragment,l),l.forEach(g),this.h()},h(){O(t,"class","batch-actions-table-cell svelte-ususbo"),O(t,"colspan",n[2])},m(r,l){I(r,t,l),E(o,t,null),e=!0},p(r,l){const a={};l&1&&(a.workflows=r[0]),o.$set(a),(!e||l&4)&&O(t,"colspan",r[2])},i(r){e||(h(o.$$.fragment,r),e=!0)},o(r){b(o.$$.fragment,r),e=!1},d(r){r&&g(t),S(o)}}}function Bl(n){let t,o,e,r,l,a,i,s,c,f=!n[1]&&n[5]&&zt(n);const m=[Sl,El],d=[];function u(_,p){return _[5]&&_[7]?0:1}return l=u(n),a=d[l]=m[l](n),{c(){t=Q("tr"),f&&f.c(),o=N(),e=Q("th"),r=N(),a.c(),i=N(),s=Q("th"),this.h()},l(_){t=q(_,"TR",{});var p=U(t);f&&f.l(p),o=M(p),e=q(p,"TH",{class:!0}),U(e).forEach(g),r=M(p),a.l(p),i=M(p),s=q(p,"TH",{class:!0}),U(s).forEach(g),p.forEach(g),this.h()},h(){O(e,"class","w-12"),O(s,"class","configuration-button-table-cell svelte-ususbo")},m(_,p){I(_,t,p),f&&f.m(t,null),R(t,o),R(t,e),R(t,r),d[l].m(t,null),R(t,i),R(t,s),c=!0},p(_,[p]){!_[1]&&_[5]?f?(f.p(_,p),p&34&&h(f,1)):(f=zt(_),f.c(),h(f,1),f.m(t,o)):f&&(Z(),b(f,1,1,()=>{f=null}),x());let w=l;l=u(_),l===w?d[l].p(_,p):(Z(),b(d[w],1,1,()=>{d[w]=null}),x(),a=d[l],a?a.p(_,p):(a=d[l]=m[l](_),a.c()),h(a,1),a.m(t,i))},i(_){c||(h(f),h(a),c=!0)},o(_){b(f),b(a),c=!1},d(_){_&&g(t),f&&f.d(),d[l].d()}}}function Vl(n,t,o){let e,r,l,a,i,s;v(n,To,B=>o(5,a=B));let{$$slots:c={},$$scope:f}=t,{workflows:m}=t,{empty:d}=t,{columnsCount:u}=t;const{handleSelectPage:_,selectedWorkflows:p,pageSelected:w,batchActionsVisible:C}=De(Ae);v(n,p,B=>o(12,l=B)),v(n,w,B=>o(6,i=B)),v(n,C,B=>o(7,s=B));const V=B=>{const{checked:W}=B.detail;_(W,m)};function P(B){i=B,w.set(i)}return n.$$set=B=>{"workflows"in B&&o(0,m=B.workflows),"empty"in B&&o(1,d=B.empty),"columnsCount"in B&&o(2,u=B.columnsCount),"$$scope"in B&&o(13,f=B.$$scope)},n.$$.update=()=>{n.$$.dirty&4097&&o(4,e=l.length>0&&l.lengthDo(e);return n.$$set=m=>{t=nt(nt({},t),Vo(m)),o(1,l=jt(t,r)),"namespace"in m&&o(2,a=m.namespace),"workflowId"in m&&o(3,i=m.workflowId),"taskQueue"in m&&o(4,s=m.taskQueue),"workflowType"in m&&o(5,c=m.workflowType)},n.$$.update=()=>{n.$$.dirty&60&&o(0,e=st({namespace:a,workflowId:i,taskQueue:s,workflowType:c}))},[e,l,a,i,s,c,f]}class Ol extends ue{constructor(t){super(),me(this,t,Dl,Al,ce,{namespace:2,workflowId:3,taskQueue:4,workflowType:5})}}function Kt(n){let t,o,e,r,l,a=!Xe(n[5]),i,s,c;function f(u){n[16](u)}let m={label:n[7],labelHidden:!0,value:n[0],disabled:n[11],"aria-label":n[7]};n[10]!==void 0&&(m.group=n[10]),o=new ko({props:m}),Y.push(()=>J(o,"group",f));let d=a&&Gt(n);return s=new Io({props:{minimumVersion:"1.23.0",$$slots:{default:[Ml]},$$scope:{ctx:n}}}),{c(){t=Q("td"),y(o.$$.fragment),r=N(),l=Q("td"),d&&d.c(),i=N(),y(s.$$.fragment),this.h()},l(u){t=q(u,"TD",{class:!0});var _=U(t);j(o.$$.fragment,_),_.forEach(g),r=M(u),l=q(u,"TD",{class:!0});var p=U(l);d&&d.l(p),i=M(p),j(s.$$.fragment,p),p.forEach(g),this.h()},h(){O(t,"class","relative"),O(l,"class","cursor-point relative flex items-center justify-center gap-0.5 pt-2")},m(u,_){I(u,t,_),E(o,t,null),I(u,r,_),I(u,l,_),d&&d.m(l,null),R(l,i),E(s,l,null),c=!0},p(u,_){const p={};_&128&&(p.label=u[7]),_&1&&(p.value=u[0]),_&2048&&(p.disabled=u[11]),_&128&&(p["aria-label"]=u[7]),!e&&_&1024&&(e=!0,p.group=u[10],X(()=>e=!1)),o.$set(p),_&32&&(a=!Xe(u[5])),a?d?(d.p(u,_),_&32&&h(d,1)):(d=Gt(u),d.c(),h(d,1),d.m(l,i)):d&&(Z(),b(d,1,1,()=>{d=null}),x());const w={};_&266333&&(w.$$scope={dirty:_,ctx:u}),s.$set(w)},i(u){c||(h(o.$$.fragment,u),h(d),h(s.$$.fragment,u),c=!0)},o(u){b(o.$$.fragment,u),b(d),b(s.$$.fragment,u),c=!1},d(u){u&&(g(t),g(r),g(l)),S(o),d&&d.d(),S(s)}}}function Gt(n){let t,o;return t=new Ol({props:{namespace:n[8],workflowId:n[0].id,taskQueue:n[0].taskQueue,workflowType:n[0].name}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&256&&(l.namespace=e[8]),r&1&&(l.workflowId=e[0].id),r&1&&(l.taskQueue=e[0].taskQueue),r&1&&(l.workflowType=e[0].name),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Yt(n){let t,o;return t=new We({props:{size:"xs",variant:n[6]?"primary":"ghost",$$slots:{default:[Nl]},$$scope:{ctx:n}}}),t.$on("click",n[17]),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&64&&(l.variant=e[6]?"primary":"ghost"),r&262216&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Fl(n){let t,o;return t=new ht({props:{name:"relationship",class:"scale-80"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Nl(n){let t,o;return t=new $o({props:{text:n[6]?A("workflows.children",{count:n[3]}):A("workflows.show-children"),topLeft:!0,$$slots:{default:[Fl]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r&72&&(l.text=e[6]?A("workflows.children",{count:e[3]}):A("workflows.show-children")),r&262144&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Ml(n){let t,o,e=!n[12]&&!n[4]&&Yt(n);return{c(){e&&e.c(),t=oe()},l(r){e&&e.l(r),t=oe()},m(r,l){e&&e.m(r,l),I(r,t,l),o=!0},p(r,l){!r[12]&&!r[4]?e?(e.p(r,l),l&4112&&h(e,1)):(e=Yt(r),e.c(),h(e,1),e.m(t.parentNode,t)):e&&(Z(),b(e,1,1,()=>{e=null}),x())},i(r){o||(h(e),o=!0)},o(r){b(e),o=!1},d(r){r&&g(t),e&&e.d(r)}}}function Rl(n){let t,o,e,r,l,a=!n[1]&&n[9]&&Kt(n);const i=n[15].default,s=Ee(i,n,n[18],null);return{c(){t=Q("tr"),a&&a.c(),o=N(),s&&s.c(),e=N(),r=Q("td"),this.h()},l(c){t=q(c,"TR",{"data-testid":!0,class:!0});var f=U(t);a&&a.l(f),o=M(f),s&&s.l(f),e=M(f),r=q(f,"TD",{}),U(r).forEach(g),f.forEach(g),this.h()},h(){O(t,"data-testid","workflows-summary-configurable-table-row"),O(t,"class","svelte-1j41e4d"),Ge(t,"empty",n[1]),Ge(t,"child",n[4])},m(c,f){I(c,t,f),a&&a.m(t,null),R(t,o),s&&s.m(t,null),R(t,e),R(t,r),l=!0},p(c,[f]){!c[1]&&c[9]?a?(a.p(c,f),f&514&&h(a,1)):(a=Kt(c),a.c(),h(a,1),a.m(t,o)):a&&(Z(),b(a,1,1,()=>{a=null}),x()),s&&s.p&&(!l||f&262144)&&Se(s,i,c,c[18],l?Ve(i,c[18],f,null):Be(c[18]),null),(!l||f&2)&&Ge(t,"empty",c[1]),(!l||f&16)&&Ge(t,"child",c[4])},i(c){l||(h(a),h(s,c),l=!0)},o(c){b(a),b(s,c),l=!1},d(c){c&&g(t),a&&a.d(),s&&s.d(c)}}}function Ll(n,t,o){let e,r,l,a,i,s,c,f;v(n,Pe,T=>o(5,a=T)),v(n,To,T=>o(9,i=T)),v(n,Ye,T=>o(12,f=T));let{$$slots:m={},$$scope:d}=t,{workflow:u=void 0}=t,{empty:_=!1}=t,{viewChildren:p=F}=t,{childCount:w=void 0}=t,{child:C=!1}=t;const{allSelected:V,selectedWorkflows:P}=De(Ae);v(n,V,T=>o(11,c=T)),v(n,P,T=>o(10,s=T));function B(T){s=T,P.set(s)}const W=()=>p(u);return n.$$set=T=>{"workflow"in T&&o(0,u=T.workflow),"empty"in T&&o(1,_=T.empty),"viewChildren"in T&&o(2,p=T.viewChildren),"childCount"in T&&o(3,w=T.childCount),"child"in T&&o(4,C=T.child),"$$scope"in T&&o(18,d=T.$$scope)},n.$$.update=()=>{n.$$.dirty&32&&o(8,{namespace:e}=a.params,e),n.$$.dirty&1&&o(7,r=A("workflows.select-workflow",{workflow:u==null?void 0:u.id})),n.$$.dirty&8&&o(6,l=w!==void 0)},[u,_,p,w,C,a,l,r,e,i,s,c,f,V,P,m,B,W,d]}class vo extends ue{constructor(t){super(),me(this,t,Ll,Rl,ce,{workflow:0,empty:1,viewChildren:2,childCount:3,child:4})}}function Xt(n,t,o){const e=n.slice();return e[24]=t[o],e}function Jt(n,t,o){const e=n.slice();return e[27]=t[o],e}function Zt(n,t,o){const e=n.slice();return e[21]=t[o],e}function xt(n,t,o){const e=n.slice();return e[21]=t[o],e}function eo(n,t,o){const e=n.slice();return e[21]=t[o],e}const Ql=n=>({}),to=n=>({slot:"cloud"});function oo(n){let t,o;return t=new Co({props:{workflow:n[24],column:n[21]}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&1048576&&(l.workflow=e[24]),r[0]&8&&(l.column=e[21]),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ql(n){let t,o,e=be(n[3]),r=[];for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;a{a=null}),x())},i(s){l||(h(t.$$.fragment,s),h(a),l=!0)},o(s){b(t.$$.fragment,s),b(a),l=!1},d(s){s&&(g(o),g(r)),S(t,s),a&&a.d(s)}}}function Ul(n){let t,o,e=be(n[20]),r=[];for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;ab(r[a],1,1,()=>{r[a]=null});return{c(){for(let a=0;a({19:e}),({updating:e})=>[e?524288:0]],headers:[Gl,({visibleItems:e})=>({20:e}),({visibleItems:e})=>[e?1048576:0]],caption:[zl],default:[Ul,({visibleItems:e})=>({20:e}),({visibleItems:e})=>[e?1048576:0]]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&16&&(l.updating=e[4]),r[0]&1&&(l.items=e[0]),r[0]&1703950&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function Zl(n,t,o){let e,r,l,a,i,s,c,f,m,d,u;v(n,ke,T=>o(10,i=T)),v(n,Ie,T=>o(11,s=T)),v(n,Ye,T=>o(12,c=T)),v(n,_o,T=>o(0,f=T)),v(n,Zo,T=>o(13,m=T)),v(n,Pe,T=>o(14,d=T)),v(n,_t,T=>o(4,u=T));let{$$slots:_={},$$scope:p}=t;var w,C;let V=[];const P=()=>{o(8,V=[])},B=async T=>{if(a(T))o(8,V=V.filter(G=>G.workflowId!==T.id&&G.runId!==T.runId));else{const G=await qo(e,T.id,T.runId);o(8,V=[{workflowId:T.id,runId:T.runId,children:G},...V])}},W=T=>A("common.go-to-page",{page:T});return n.$$set=T=>{"$$scope"in T&&o(17,p=T.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&16384&&o(9,{namespace:e}=d.params,e),n.$$.dirty[0]&8896&&o(3,r=o(7,C=o(6,w=m==null?void 0:m[e])===null||w===void 0?void 0:w.workflows)!==null&&C!==void 0?C:[]),n.$$.dirty[0]&1&&o(2,l=f.length===0),n.$$.dirty[0]&7168&&P(),n.$$.dirty[0]&256&&o(1,a=T=>V.find(G=>G.workflowId===T.id&&G.runId===T.runId))},[f,a,l,r,u,B,w,C,V,e,i,s,c,m,d,_,W,p]}class xl extends ue{constructor(t){super(),me(this,t,Zl,Jl,ce,{},null,[-1,-1])}}const ea=n=>({}),io=n=>({slot:"cloud"});function ta(n){let t,o;return t=new he({props:{key:"workflows.recent-workflows"}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p:F,i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function oa(n){let t,o=n[11].count.toLocaleString()+"",e,r,l,a;return l=new he({props:{key:"common.workflows-plural",count:n[11].count}}),{c(){t=Q("span"),e=z(o),r=N(),y(l.$$.fragment),this.h()},l(i){t=q(i,"SPAN",{"data-testid":!0});var s=U(t);e=K(s,o),s.forEach(g),r=M(i),j(l.$$.fragment,i),this.h()},h(){O(t,"data-testid","workflow-count")},m(i,s){I(i,t,s),R(t,e),I(i,r,s),E(l,i,s),a=!0},p(i,s){(!a||s[0]&2048)&&o!==(o=i[11].count.toLocaleString()+"")&&se(e,o);const c={};s[0]&2048&&(c.count=i[11].count),l.$set(c)},i(i){a||(h(l.$$.fragment,i),a=!0)},o(i){b(l.$$.fragment,i),a=!1},d(i){i&&(g(t),g(r)),S(l,i)}}}function fo(n){let t,o;return t=new We({props:{leadingIcon:"lightning-bolt",href:st({namespace:n[0]}),$$slots:{default:[ra]},$$scope:{ctx:n}}}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},p(e,r){const l={};r[0]&1&&(l.href=st({namespace:e[0]})),r[0]&134217728&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function ra(n){let t=A("workflows.start-workflow")+"",o;return{c(){o=z(t)},l(e){o=K(e,t)},m(e,r){I(e,o,r)},p:F,d(e){e&&g(o)}}}function co(n){let t,o;return t=new pr({}),{c(){y(t.$$.fragment)},l(e){j(t.$$.fragment,e)},m(e,r){E(t,e,r),o=!0},i(e){o||(h(t.$$.fragment,e),o=!0)},o(e){b(t.$$.fragment,e),o=!1},d(e){S(t,e)}}}function na(n){let t;const o=n[20].cloud,e=Ee(o,n,n[27],io);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,l){e&&e.m(r,l),t=!0},p(r,l){e&&e.p&&(!t||l[0]&134217728)&&Se(e,o,r,r[27],t?Ve(o,r[27],l,ea):Be(r[27]),io)},i(r){t||(h(e,r),t=!0)},o(r){b(e,r),t=!1},d(r){e&&e.d(r)}}}function la(n){let t,o,e,r,l,a,i,s,c,f,m,d,u,_,p,w,C,V,P,B,W,T,G,ee=!Xe(n[1]),re,ie,k,ae,_e,le,Ce,H,Te,Re;function kt($){n[21]($)}let Je={namespace:n[0]};n[2]!==void 0&&(Je.open=n[2]),t=new Xr({props:Je}),Y.push(()=>J(t,"open",kt));function $t($){n[22]($)}let Ze={namespace:n[0]};n[3]!==void 0&&(Ze.open=n[3]),r=new Nr({props:Ze}),Y.push(()=>J(r,"open",$t));function Oe($){n[23]($)}let Qe={namespace:n[0]};n[4]!==void 0&&(Qe.open=n[4]),i=new Ur({props:Qe}),Y.push(()=>J(i,"open",Oe));function xe($){n[24]($)}let qe={refresh:Ie,namespace:n[0],workflow:n[9][0]};n[5]!==void 0&&(qe.open=n[5]),f=new Yo({props:qe}),Y.push(()=>J(f,"open",xe));function et($){n[25]($)}let He={refresh:Ie,namespace:n[0],workflow:n[9][0]};n[6]!==void 0&&(He.open=n[6]),u=new Xo({props:He}),Y.push(()=>J(u,"open",et));const Ue=[oa,ta],ge=[];function D($,L){return $[10]?0:1}P=D(n),B=ge[P]=Ue[P](n),T=new Tn({props:{count:n[11].newCount}});let te=ee&&fo(n),fe=n[12]&&co();ae=new gn({props:{onClickConfigure:n[16]}}),le=new xl({props:{$$slots:{cloud:[na]},$$scope:{ctx:n}}});function yo($){n[26]($)}let It={availableColumns:n[8],type:A("common.workflows",{count:1}),title:A("common.workflows",{count:2})};return n[7]!==void 0&&(It.open=n[7]),H=new xo({props:It}),Y.push(()=>J(H,"open",yo)),{c(){y(t.$$.fragment),e=N(),y(r.$$.fragment),a=N(),y(i.$$.fragment),c=N(),y(f.$$.fragment),d=N(),y(u.$$.fragment),p=N(),w=Q("header"),C=Q("div"),V=Q("h1"),B.c(),W=N(),y(T.$$.fragment),G=N(),te&&te.c(),re=N(),fe&&fe.c(),ie=N(),k=Q("div"),y(ae.$$.fragment),_e=N(),y(le.$$.fragment),Ce=N(),y(H.$$.fragment),this.h()},l($){j(t.$$.fragment,$),e=M($),j(r.$$.fragment,$),a=M($),j(i.$$.fragment,$),c=M($),j(f.$$.fragment,$),d=M($),j(u.$$.fragment,$),p=M($),w=q($,"HEADER",{class:!0});var L=U(w);C=q(L,"DIV",{class:!0});var ve=U(C);V=q(ve,"H1",{class:!0,"data-cy":!0});var ye=U(V);B.l(ye),W=M(ye),j(T.$$.fragment,ye),ye.forEach(g),G=M(ve),te&&te.l(ve),ve.forEach(g),re=M(L),fe&&fe.l(L),L.forEach(g),ie=M($),k=q($,"DIV",{class:!0});var Fe=U(k);j(ae.$$.fragment,Fe),Fe.forEach(g),_e=M($),j(le.$$.fragment,$),Ce=M($),j(H.$$.fragment,$),this.h()},h(){O(V,"class","flex items-center gap-2"),O(V,"data-cy","workflows-title"),O(C,"class","flex flex-col justify-between gap-2 md:flex-row"),O(w,"class","flex flex-col gap-2"),O(k,"class","flex flex-col gap-2 md:flex-row")},m($,L){E(t,$,L),I($,e,L),E(r,$,L),I($,a,L),E(i,$,L),I($,c,L),E(f,$,L),I($,d,L),E(u,$,L),I($,p,L),I($,w,L),R(w,C),R(C,V),ge[P].m(V,null),R(V,W),E(T,V,null),R(C,G),te&&te.m(C,null),R(w,re),fe&&fe.m(w,null),I($,ie,L),I($,k,L),E(ae,k,null),I($,_e,L),E(le,$,L),I($,Ce,L),E(H,$,L),Re=!0},p($,L){const ve={};L[0]&1&&(ve.namespace=$[0]),!o&&L[0]&4&&(o=!0,ve.open=$[2],X(()=>o=!1)),t.$set(ve);const ye={};L[0]&1&&(ye.namespace=$[0]),!l&&L[0]&8&&(l=!0,ye.open=$[3],X(()=>l=!1)),r.$set(ye);const Fe={};L[0]&1&&(Fe.namespace=$[0]),!s&&L[0]&16&&(s=!0,Fe.open=$[4],X(()=>s=!1)),i.$set(Fe);const ze={};L[0]&1&&(ze.namespace=$[0]),L[0]&512&&(ze.workflow=$[9][0]),!m&&L[0]&32&&(m=!0,ze.open=$[5],X(()=>m=!1)),f.$set(ze);const Ke={};L[0]&1&&(Ke.namespace=$[0]),L[0]&512&&(Ke.workflow=$[9][0]),!_&&L[0]&64&&(_=!0,Ke.open=$[6],X(()=>_=!1)),u.$set(Ke);let tt=P;P=D($),P===tt?ge[P].p($,L):(Z(),b(ge[tt],1,1,()=>{ge[tt]=null}),x(),B=ge[P],B?B.p($,L):(B=ge[P]=Ue[P]($),B.c()),h(B,1),B.m(V,W));const Ct={};L[0]&2048&&(Ct.count=$[11].newCount),T.$set(Ct),L[0]&2&&(ee=!Xe($[1])),ee?te?(te.p($,L),L[0]&2&&h(te,1)):(te=fo($),te.c(),h(te,1),te.m(C,null)):te&&(Z(),b(te,1,1,()=>{te=null}),x()),$[12]?fe?L[0]&4096&&h(fe,1):(fe=co(),fe.c(),h(fe,1),fe.m(w,null)):fe&&(Z(),b(fe,1,1,()=>{fe=null}),x());const Tt={};L[0]&134217728&&(Tt.$$scope={dirty:L,ctx:$}),le.$set(Tt);const ot={};L[0]&256&&(ot.availableColumns=$[8]),!Te&&L[0]&128&&(Te=!0,ot.open=$[7],X(()=>Te=!1)),H.$set(ot)},i($){Re||(h(t.$$.fragment,$),h(r.$$.fragment,$),h(i.$$.fragment,$),h(f.$$.fragment,$),h(u.$$.fragment,$),h(B),h(T.$$.fragment,$),h(te),h(fe),h(ae.$$.fragment,$),h(le.$$.fragment,$),h(H.$$.fragment,$),Re=!0)},o($){b(t.$$.fragment,$),b(r.$$.fragment,$),b(i.$$.fragment,$),b(f.$$.fragment,$),b(u.$$.fragment,$),b(B),b(T.$$.fragment,$),b(te),b(fe),b(ae.$$.fragment,$),b(le.$$.fragment,$),b(H.$$.fragment,$),Re=!1},d($){$&&(g(e),g(a),g(c),g(d),g(p),g(w),g(ie),g(k),g(_e),g(Ce)),S(t,$),S(r,$),S(i,$),S(f,$),S(u,$),ge[P].d(),S(T),te&&te.d(),fe&&fe.d(),S(ae),S(le,$),S(H,$)}}}const Ae="BATCH_OPERATION_CONTEXT";function aa(n,t,o){let e,r,l,a,i,s,c,f,m,d,u,_,p,w,C,V,P;v(n,_t,D=>o(19,i=D)),v(n,go,D=>o(30,m=D)),v(n,we,D=>o(31,d=D)),v(n,Pe,D=>o(1,u=D)),v(n,At,D=>o(32,_=D)),v(n,St,D=>o(33,p=D)),v(n,ke,D=>o(34,w=D)),v(n,po,D=>o(10,C=D)),v(n,ho,D=>o(11,V=D)),v(n,Ho,D=>o(12,P=D));let{$$slots:B={},$$scope:W}=t;Po(()=>{ne(At,_=u.params.namespace,_),e&&ne(we,d=mo(e,m),d)});const T=()=>{ne(ae,f=!1,f),ne(_e,c=!1,c),ne(le,s=[],s)};let G=!1,ee=!1,re=!1,ie=!1,k=!1;const ae=de(!1);v(n,ae,D=>o(29,f=D));const _e=de(!1);v(n,_e,D=>o(28,c=D));const le=de([]);v(n,le,D=>o(9,s=D));const Ce=Le(le,D=>D.length>0),H=Le(le,D=>D.filter(te=>te.canBeTerminated)),Te=Le(le,D=>D.filter(te=>te.status==="Running"));Wo(Ae,{allSelected:ae,pageSelected:_e,terminableWorkflows:H,cancelableWorkflows:Te,selectedWorkflows:le,batchActionsVisible:Ce,openBatchCancelConfirmationModal:()=>{s.length>1?o(3,ee=!0):o(6,k=!0)},openBatchTerminateConfirmationModal:()=>{s.length>1?o(2,G=!0):o(5,ie=!0)},openBatchResetConfirmationModal:()=>{o(4,re=!0)},handleSelectAll:D=>{ae.set(!0),le.set([...D])},handleSelectPage:(D,te)=>{_e.set(D),ae&&ae.set(!1),D?le.set([...te]):le.set([])}});let Oe=!1;const Qe=()=>{o(7,Oe=!0)};function xe(D){G=D,o(2,G)}function qe(D){ee=D,o(3,ee)}function et(D){re=D,o(4,re)}function He(D){ie=D,o(5,ie)}function Ue(D){k=D,o(6,k)}function ge(D){Oe=D,o(7,Oe)}return n.$$set=D=>{"$$scope"in D&&o(27,W=D.$$scope)},n.$$.update=()=>{n.$$.dirty[0]&2&&o(17,e=u.url.searchParams.get("query")),n.$$.dirty[0]&131072&&ne(ke,w=e,w),n.$$.dirty[0]&2&&o(0,r=u.params.namespace),n.$$.dirty[0]&2&&o(18,l=u.url.searchParams.toString()),n.$$.dirty[0]&262144&&ne(St,p=l,p),n.$$.dirty[0]&3&&o(8,a=er(r,u.data.settings)),n.$$.dirty[0]&524288&&i&&T()},[r,u,G,ee,re,ie,k,Oe,a,s,C,V,P,ae,_e,le,Qe,e,l,i,B,xe,qe,et,He,Ue,ge,W]}class sa extends ue{constructor(t){super(),me(this,t,aa,la,ce,{},null,[-1,-1])}}function ia(n){let t,o,e,r;return t=new Ao({props:{title:`Workflows | ${n[0].params.namespace}`,url:n[0].url.href}}),e=new sa({}),{c(){y(t.$$.fragment),o=N(),y(e.$$.fragment)},l(l){j(t.$$.fragment,l),o=M(l),j(e.$$.fragment,l)},m(l,a){E(t,l,a),I(l,o,a),E(e,l,a),r=!0},p(l,[a]){const i={};a&1&&(i.title=`Workflows | ${l[0].params.namespace}`),a&1&&(i.url=l[0].url.href),t.$set(i)},i(l){r||(h(t.$$.fragment,l),h(e.$$.fragment,l),r=!0)},o(l){b(t.$$.fragment,l),b(e.$$.fragment,l),r=!1},d(l){l&&g(o),S(t,l),S(e,l)}}}function fa(n,t,o){let e;return v(n,Pe,r=>o(0,e=r)),[e]}class ss extends ue{constructor(t){super(),me(this,t,fa,ia,ce,{})}}export{ss as component,as as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/3.CALA-tyn.js b/ui/assets/local/_app/immutable/nodes/3.DPtmlwhS.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/3.CALA-tyn.js rename to ui/assets/local/_app/immutable/nodes/3.DPtmlwhS.js index a70fc3eca..5fdd6099a 100644 --- a/ui/assets/local/_app/immutable/nodes/3.CALA-tyn.js +++ b/ui/assets/local/_app/immutable/nodes/3.DPtmlwhS.js @@ -1 +1 @@ -import{s as p,a as u,b as _,d as c,i as $,u as g,g as d,e as b,f as h,c as y}from"../chunks/scheduler.C46pS-76.js";import{S as P,i as S,c as q,a as v,m as w,t as f,b as m,d as C}from"../chunks/index.dOVbn71B.js";import{p as E}from"../chunks/stores.Dz-RNcUk.js";import{P as H}from"../chunks/page-title.DNhqE1Lj.js";function I(o){let s,n,a;s=new H({props:{title:"Import Event History",url:o[0].url.href}});const i=o[2].default,e=u(i,o,o[1],null);return{c(){q(s.$$.fragment),n=_(),e&&e.c()},l(t){v(s.$$.fragment,t),n=c(t),e&&e.l(t)},m(t,r){w(s,t,r),$(t,n,r),e&&e.m(t,r),a=!0},p(t,[r]){const l={};r&1&&(l.url=t[0].url.href),s.$set(l),e&&e.p&&(!a||r&2)&&g(e,i,t,t[1],a?b(i,t[1],r,null):d(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){m(s.$$.fragment,t),m(e,t),a=!1},d(t){t&&h(n),C(s,t),e&&e.d(t)}}}function L(o,s,n){let a;y(o,E,t=>n(0,a=t));let{$$slots:i={},$$scope:e}=s;return o.$$set=t=>{"$$scope"in t&&n(1,e=t.$$scope)},[a,e,i]}class B extends P{constructor(s){super(),S(this,s,L,I,p,{})}}export{B as component}; +import{s as p,a as u,b as _,d as c,i as $,u as g,g as d,e as b,f as h,c as y}from"../chunks/scheduler.C46pS-76.js";import{S as P,i as S,c as q,a as v,m as w,t as f,b as m,d as C}from"../chunks/index.dOVbn71B.js";import{p as E}from"../chunks/stores.Ds4o9nwd.js";import{P as H}from"../chunks/page-title.DNhqE1Lj.js";function I(o){let s,n,a;s=new H({props:{title:"Import Event History",url:o[0].url.href}});const i=o[2].default,e=u(i,o,o[1],null);return{c(){q(s.$$.fragment),n=_(),e&&e.c()},l(t){v(s.$$.fragment,t),n=c(t),e&&e.l(t)},m(t,r){w(s,t,r),$(t,n,r),e&&e.m(t,r),a=!0},p(t,[r]){const l={};r&1&&(l.url=t[0].url.href),s.$set(l),e&&e.p&&(!a||r&2)&&g(e,i,t,t[1],a?b(i,t[1],r,null):d(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){m(s.$$.fragment,t),m(e,t),a=!1},d(t){t&&h(n),C(s,t),e&&e.d(t)}}}function L(o,s,n){let a;y(o,E,t=>n(0,a=t));let{$$slots:i={},$$scope:e}=s;return o.$$set=t=>{"$$scope"in t&&n(1,e=t.$$scope)},[a,e,i]}class B extends P{constructor(s){super(),S(this,s,L,I,p,{})}}export{B as component}; diff --git a/ui/assets/local/_app/immutable/nodes/30.CqqTTHxo.js b/ui/assets/local/_app/immutable/nodes/30.BrN2lZKQ.js similarity index 83% rename from ui/assets/local/_app/immutable/nodes/30.CqqTTHxo.js rename to ui/assets/local/_app/immutable/nodes/30.BrN2lZKQ.js index 40a37381f..57b05805f 100644 --- a/ui/assets/local/_app/immutable/nodes/30.CqqTTHxo.js +++ b/ui/assets/local/_app/immutable/nodes/30.BrN2lZKQ.js @@ -1 +1 @@ -import{r as n,e as s}from"../chunks/index.g5YcAAdQ.js";import{f as c}from"../chunks/workflows.BzgE0E1S.js";const f=async function({url:e,params:r}){const{namespace:t,workflow:a}=r,{runId:o}=await c({namespace:t,workflowId:a});o?n(302,`${e.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:f},Symbol.toStringTag,{value:"Module"}));export{p as universal}; +import{r as n,e as s}from"../chunks/index.g5YcAAdQ.js";import{f as c}from"../chunks/workflows.Cse8qlOg.js";const f=async function({url:e,params:r}){const{namespace:t,workflow:a}=r,{runId:o}=await c({namespace:t,workflowId:a});o?n(302,`${e.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:f},Symbol.toStringTag,{value:"Module"}));export{p as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/32.pphDLbtv.js b/ui/assets/local/_app/immutable/nodes/32.CbjV9l1U.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/32.pphDLbtv.js rename to ui/assets/local/_app/immutable/nodes/32.CbjV9l1U.js index 35eb49c20..81b0cea42 100644 --- a/ui/assets/local/_app/immutable/nodes/32.pphDLbtv.js +++ b/ui/assets/local/_app/immutable/nodes/32.CbjV9l1U.js @@ -1 +1 @@ -import{s as F,h as L,j as P,k as R,f as p,i as h,c as V,x as A,t as q,l as C,n as b,q as G,v as U,b as D,d as Q,m as B}from"../chunks/scheduler.C46pS-76.js";import{S as H,i as J,g as K,b as g,e as M,t as _,c as v,a as y,m as T,d as E}from"../chunks/index.dOVbn71B.js";import{p as X}from"../chunks/stores.Dz-RNcUk.js";import{P as Z}from"../chunks/page-title.DNhqE1Lj.js";import{t as d}from"../chunks/translate.BBe5dcco.js";import{W as x}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{h as j,u as ee}from"../chunks/await_block.BfN27BCg.js";import{A as te}from"../chunks/alert.nnKn2vnv.js";import{B as re}from"../chunks/button.BpRIS9ld.js";import{C as oe}from"../chunks/code-block.BkCXXL0z.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as le}from"../chunks/link.BJceiGbc.js";import{L as ne}from"../chunks/loading.BLsNkl8r.js";import{g as O}from"../chunks/query-service.D3ysowbA.js";import{a as ae}from"../chunks/auth-user.BOlglCm6.js";import{w as se}from"../chunks/workflow-run.DcChDuxV.js";function ce(a){let t,o;return t=new Y({props:{title:d("workflows.call-stack-empty-state"),testId:"query-call-stack-empty",$$slots:{default:[ue]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){T(t,e,r),o=!0},p(e,r){const l={};r&4105&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){E(t,e)}}}function fe(a){let t,o,e,r={ctx:a,current:null,token:null,hasCatch:!0,pending:_e,then:pe,catch:me,value:10,error:11,blocks:[,,,]};return j(o=a[2],r),{c(){t=A(),r.block.c()},l(l){t=A(),r.block.l(l)},m(l,n){h(l,t,n),r.block.m(l,r.anchor=n),r.mount=()=>t.parentNode,r.anchor=t,e=!0},p(l,n){a=l,r.ctx=a,n&4&&o!==(o=a[2])&&j(o,r)||ee(r,a,n)},i(l){e||(_(r.block),e=!0)},o(l){for(let n=0;n<3;n+=1){const s=r.blocks[n];g(s)}e=!1},d(l){l&&p(t),r.block.d(l),r.token=null,r=null}}}function z(a){var c;let t,o=d("workflows.call-stack-link-preface")+"",e,r,l=d("workflows.call-stack-link-postface",{taskQueue:(c=a[0])==null?void 0:c.taskQueue})+"",n,s;return r=new le({props:{newTab:!0,href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){t=L("p"),e=q(o),v(r.$$.fragment),n=q(l)},l(f){t=P(f,"P",{});var i=R(t);e=C(i,o),y(r.$$.fragment,i),n=C(i,l),i.forEach(p)},m(f,i){h(f,t,i),b(t,e),T(r,t,null),b(t,n),s=!0},p(f,i){var w;const $={};i&4096&&($.$$scope={dirty:i,ctx:f}),r.$set($),(!s||i&1)&&l!==(l=d("workflows.call-stack-link-postface",{taskQueue:(w=f[0])==null?void 0:w.taskQueue})+"")&&G(n,l)},i(f){s||(_(r.$$.fragment,f),s=!0)},o(f){g(r.$$.fragment,f),s=!1},d(f){f&&p(t),E(r)}}}function ie(a){let t=d("workflows.call-stack-link")+"",o;return{c(){o=q(t)},l(e){o=C(e,t)},m(e,r){h(e,o,r)},p:U,d(e){e&&p(o)}}}function ue(a){var r,l,n;let t,o,e=((r=a[0])==null?void 0:r.isRunning)&&((n=(l=a[3])==null?void 0:l.pollers)==null?void 0:n.length)===0&&z(a);return{c(){e&&e.c(),t=A()},l(s){e&&e.l(s),t=A()},m(s,c){e&&e.m(s,c),h(s,t,c),o=!0},p(s,c){var f,i,$;(f=s[0])!=null&&f.isRunning&&(($=(i=s[3])==null?void 0:i.pollers)==null?void 0:$.length)===0?e?(e.p(s,c),c&9&&_(e,1)):(e=z(s),e.c(),_(e,1),e.m(t.parentNode,t)):e&&(K(),g(e,1,1,()=>{e=null}),M())},i(s){o||(_(e),o=!0)},o(s){g(e),o=!1},d(s){s&&p(t),e&&e.d(s)}}}function me(a){var e;let t,o;return t=new Y({props:{title:d("common.error-occurred"),content:d("workflows.no-workers-running-message"),error:(e=a[11])==null?void 0:e.message}}),{c(){v(t.$$.fragment)},l(r){y(t.$$.fragment,r)},m(r,l){T(t,r,l),o=!0},p(r,l){var s;const n={};l&4&&(n.error=(s=r[11])==null?void 0:s.message),t.$set(n)},i(r){o||(_(t.$$.fragment,r),o=!0)},o(r){g(t.$$.fragment,r),o=!1},d(r){E(t,r)}}}function pe(a){let t,o,e,r,l,n,s=d("workflows.call-stack-at")+"",c,f,i=a[1].toLocaleTimeString()+"",$,w,m,I,W;return t=new te({props:{intent:"info",icon:"info",title:d("workflows.call-stack-alert"),class:"mb-4 w-fit"}}),r=new re({props:{leadingIcon:"retry",loading:ge,$$slots:{default:[$e]},$$scope:{ctx:a}}}),r.$on("click",a[4]),I=new oe({props:{content:a[10],language:"text",testId:"query-call-stack",copyIconTitle:d("common.copy-icon-title"),copySuccessIconTitle:d("common.copy-success-icon-title")}}),{c(){v(t.$$.fragment),o=D(),e=L("div"),v(r.$$.fragment),l=D(),n=L("p"),c=q(s),f=D(),$=q(i),w=D(),m=L("div"),v(I.$$.fragment),this.h()},l(u){y(t.$$.fragment,u),o=Q(u),e=P(u,"DIV",{class:!0});var k=R(e);y(r.$$.fragment,k),l=Q(k),n=P(k,"P",{});var S=R(n);c=C(S,s),f=Q(S),$=C(S,i),S.forEach(p),k.forEach(p),w=Q(u),m=P(u,"DIV",{class:!0});var N=R(m);y(I.$$.fragment,N),N.forEach(p),this.h()},h(){B(e,"class","flex items-center gap-4"),B(m,"class","my-2 flex h-full items-start")},m(u,k){T(t,u,k),h(u,o,k),h(u,e,k),T(r,e,null),b(e,l),b(e,n),b(n,c),b(n,f),b(n,$),h(u,w,k),h(u,m,k),T(I,m,null),W=!0},p(u,k){const S={};k&4096&&(S.$$scope={dirty:k,ctx:u}),r.$set(S),(!W||k&2)&&i!==(i=u[1].toLocaleTimeString()+"")&&G($,i);const N={};k&4&&(N.content=u[10]),I.$set(N)},i(u){W||(_(t.$$.fragment,u),_(r.$$.fragment,u),_(I.$$.fragment,u),W=!0)},o(u){g(t.$$.fragment,u),g(r.$$.fragment,u),g(I.$$.fragment,u),W=!1},d(u){u&&(p(o),p(e),p(w),p(m)),E(t,u),E(r),E(I)}}}function $e(a){let t=d("common.refresh")+"",o;return{c(){o=q(t)},l(e){o=C(e,t)},m(e,r){h(e,o,r)},p:U,d(e){e&&p(o)}}}function _e(a){let t,o,e,r,l=d("workflows.no-workers-failure-message")+"",n,s;return o=new ne({}),{c(){t=L("div"),v(o.$$.fragment),e=D(),r=L("p"),n=q(l),this.h()},l(c){t=P(c,"DIV",{class:!0});var f=R(t);y(o.$$.fragment,f),e=Q(f),r=P(f,"P",{});var i=R(r);n=C(i,l),i.forEach(p),f.forEach(p),this.h()},h(){B(t,"class","text-center")},m(c,f){h(c,t,f),T(o,t,null),b(t,e),b(t,r),b(r,n),s=!0},p:U,i(c){s||(_(o.$$.fragment,c),s=!0)},o(c){g(o.$$.fragment,c),s=!1},d(c){c&&p(t),E(o)}}}function ke(a){let t,o,e,r;const l=[fe,ce],n=[];function s(c,f){var i,$,w;return(i=c[0])!=null&&i.isRunning&&((w=($=c[3])==null?void 0:$.pollers)==null?void 0:w.length)>0?0:1}return o=s(a),e=n[o]=l[o](a),{c(){t=L("section"),e.c()},l(c){t=P(c,"SECTION",{});var f=R(t);e.l(f),f.forEach(p)},m(c,f){h(c,t,f),n[o].m(t,null),r=!0},p(c,[f]){let i=o;o=s(c),o===i?n[o].p(c,f):(K(),g(n[i],1,1,()=>{n[i]=null}),M(),e=n[o],e?e.p(c,f):(e=n[o]=l[o](c),e.c()),_(e,1),e.m(t,null))},i(c){r||(_(e),r=!0)},o(c){g(e),r=!1},d(c){c&&p(t),n[o].d()}}}let ge=!1;function de(a,t,o){let e,r,l,n,s;V(a,ae,m=>o(6,l=m)),V(a,X,m=>o(7,n=m)),V(a,se,m=>o(5,s=m));const{namespace:c}=n.params;let f=new Date;const i=()=>{var m;return O({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,l==null?void 0:l.accessToken)};let $;const w=()=>{var m;o(2,$=O({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,l==null?void 0:l.accessToken)),$.then(()=>{o(1,f=new Date)})};return a.$$.update=()=>{a.$$.dirty&32&&o(0,{workflow:e,workers:r}=s,e,(o(3,r),o(5,s))),a.$$.dirty&1&&e!=null&&e.isRunning&&o(2,$=i())},[e,f,$,r,w,s]}class we extends H{constructor(t){super(),J(this,t,de,ke,F,{})}}function he(a){let t,o;return t=new we({}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){T(t,e,r),o=!0},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){E(t,e)}}}function be(a){let t,o,e,r;return t=new Z({props:{title:`${d("workflows.call-stack-tab")} | ${a[1]}`,url:a[0].url.href}}),e=new x({props:{$$slots:{default:[he]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment),o=D(),v(e.$$.fragment)},l(l){y(t.$$.fragment,l),o=Q(l),y(e.$$.fragment,l)},m(l,n){T(t,l,n),h(l,o,n),T(e,l,n),r=!0},p(l,[n]){const s={};n&1&&(s.url=l[0].url.href),t.$set(s);const c={};n&4&&(c.$$scope={dirty:n,ctx:l}),e.$set(c)},i(l){r||(_(t.$$.fragment,l),_(e.$$.fragment,l),r=!0)},o(l){g(t.$$.fragment,l),g(e.$$.fragment,l),r=!1},d(l){l&&p(o),E(t,l),E(e,l)}}}function ve(a,t,o){let e;V(a,X,l=>o(0,e=l));const r=e.params.workflow;return[e,r]}class Be extends H{constructor(t){super(),J(this,t,ve,be,F,{})}}export{Be as component}; +import{s as F,h as L,j as P,k as R,f as p,i as h,c as V,x as A,t as q,l as C,n as b,q as G,v as U,b as D,d as Q,m as B}from"../chunks/scheduler.C46pS-76.js";import{S as H,i as J,g as K,b as g,e as M,t as _,c as v,a as y,m as T,d as E}from"../chunks/index.dOVbn71B.js";import{p as X}from"../chunks/stores.Ds4o9nwd.js";import{P as Z}from"../chunks/page-title.DNhqE1Lj.js";import{t as d}from"../chunks/translate.BBe5dcco.js";import{W as x}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{h as j,u as ee}from"../chunks/await_block.BfN27BCg.js";import{A as te}from"../chunks/alert.nnKn2vnv.js";import{B as re}from"../chunks/button.hs88FdV4.js";import{C as oe}from"../chunks/code-block.DGWayI9q.js";import{E as Y}from"../chunks/empty-state.BO9uOKUe.js";import{L as le}from"../chunks/link.C_v4aoat.js";import{L as ne}from"../chunks/loading.BLsNkl8r.js";import{g as O}from"../chunks/query-service.BpCb13SU.js";import{a as ae}from"../chunks/auth-user.CfsLeCYD.js";import{w as se}from"../chunks/workflow-run.CoKQBOG_.js";function ce(a){let t,o;return t=new Y({props:{title:d("workflows.call-stack-empty-state"),testId:"query-call-stack-empty",$$slots:{default:[ue]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){T(t,e,r),o=!0},p(e,r){const l={};r&4105&&(l.$$scope={dirty:r,ctx:e}),t.$set(l)},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){E(t,e)}}}function fe(a){let t,o,e,r={ctx:a,current:null,token:null,hasCatch:!0,pending:_e,then:pe,catch:me,value:10,error:11,blocks:[,,,]};return j(o=a[2],r),{c(){t=A(),r.block.c()},l(l){t=A(),r.block.l(l)},m(l,n){h(l,t,n),r.block.m(l,r.anchor=n),r.mount=()=>t.parentNode,r.anchor=t,e=!0},p(l,n){a=l,r.ctx=a,n&4&&o!==(o=a[2])&&j(o,r)||ee(r,a,n)},i(l){e||(_(r.block),e=!0)},o(l){for(let n=0;n<3;n+=1){const s=r.blocks[n];g(s)}e=!1},d(l){l&&p(t),r.block.d(l),r.token=null,r=null}}}function z(a){var c;let t,o=d("workflows.call-stack-link-preface")+"",e,r,l=d("workflows.call-stack-link-postface",{taskQueue:(c=a[0])==null?void 0:c.taskQueue})+"",n,s;return r=new le({props:{newTab:!0,href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){t=L("p"),e=q(o),v(r.$$.fragment),n=q(l)},l(f){t=P(f,"P",{});var i=R(t);e=C(i,o),y(r.$$.fragment,i),n=C(i,l),i.forEach(p)},m(f,i){h(f,t,i),b(t,e),T(r,t,null),b(t,n),s=!0},p(f,i){var w;const $={};i&4096&&($.$$scope={dirty:i,ctx:f}),r.$set($),(!s||i&1)&&l!==(l=d("workflows.call-stack-link-postface",{taskQueue:(w=f[0])==null?void 0:w.taskQueue})+"")&&G(n,l)},i(f){s||(_(r.$$.fragment,f),s=!0)},o(f){g(r.$$.fragment,f),s=!1},d(f){f&&p(t),E(r)}}}function ie(a){let t=d("workflows.call-stack-link")+"",o;return{c(){o=q(t)},l(e){o=C(e,t)},m(e,r){h(e,o,r)},p:U,d(e){e&&p(o)}}}function ue(a){var r,l,n;let t,o,e=((r=a[0])==null?void 0:r.isRunning)&&((n=(l=a[3])==null?void 0:l.pollers)==null?void 0:n.length)===0&&z(a);return{c(){e&&e.c(),t=A()},l(s){e&&e.l(s),t=A()},m(s,c){e&&e.m(s,c),h(s,t,c),o=!0},p(s,c){var f,i,$;(f=s[0])!=null&&f.isRunning&&(($=(i=s[3])==null?void 0:i.pollers)==null?void 0:$.length)===0?e?(e.p(s,c),c&9&&_(e,1)):(e=z(s),e.c(),_(e,1),e.m(t.parentNode,t)):e&&(K(),g(e,1,1,()=>{e=null}),M())},i(s){o||(_(e),o=!0)},o(s){g(e),o=!1},d(s){s&&p(t),e&&e.d(s)}}}function me(a){var e;let t,o;return t=new Y({props:{title:d("common.error-occurred"),content:d("workflows.no-workers-running-message"),error:(e=a[11])==null?void 0:e.message}}),{c(){v(t.$$.fragment)},l(r){y(t.$$.fragment,r)},m(r,l){T(t,r,l),o=!0},p(r,l){var s;const n={};l&4&&(n.error=(s=r[11])==null?void 0:s.message),t.$set(n)},i(r){o||(_(t.$$.fragment,r),o=!0)},o(r){g(t.$$.fragment,r),o=!1},d(r){E(t,r)}}}function pe(a){let t,o,e,r,l,n,s=d("workflows.call-stack-at")+"",c,f,i=a[1].toLocaleTimeString()+"",$,w,m,I,W;return t=new te({props:{intent:"info",icon:"info",title:d("workflows.call-stack-alert"),class:"mb-4 w-fit"}}),r=new re({props:{leadingIcon:"retry",loading:ge,$$slots:{default:[$e]},$$scope:{ctx:a}}}),r.$on("click",a[4]),I=new oe({props:{content:a[10],language:"text",testId:"query-call-stack",copyIconTitle:d("common.copy-icon-title"),copySuccessIconTitle:d("common.copy-success-icon-title")}}),{c(){v(t.$$.fragment),o=D(),e=L("div"),v(r.$$.fragment),l=D(),n=L("p"),c=q(s),f=D(),$=q(i),w=D(),m=L("div"),v(I.$$.fragment),this.h()},l(u){y(t.$$.fragment,u),o=Q(u),e=P(u,"DIV",{class:!0});var k=R(e);y(r.$$.fragment,k),l=Q(k),n=P(k,"P",{});var S=R(n);c=C(S,s),f=Q(S),$=C(S,i),S.forEach(p),k.forEach(p),w=Q(u),m=P(u,"DIV",{class:!0});var N=R(m);y(I.$$.fragment,N),N.forEach(p),this.h()},h(){B(e,"class","flex items-center gap-4"),B(m,"class","my-2 flex h-full items-start")},m(u,k){T(t,u,k),h(u,o,k),h(u,e,k),T(r,e,null),b(e,l),b(e,n),b(n,c),b(n,f),b(n,$),h(u,w,k),h(u,m,k),T(I,m,null),W=!0},p(u,k){const S={};k&4096&&(S.$$scope={dirty:k,ctx:u}),r.$set(S),(!W||k&2)&&i!==(i=u[1].toLocaleTimeString()+"")&&G($,i);const N={};k&4&&(N.content=u[10]),I.$set(N)},i(u){W||(_(t.$$.fragment,u),_(r.$$.fragment,u),_(I.$$.fragment,u),W=!0)},o(u){g(t.$$.fragment,u),g(r.$$.fragment,u),g(I.$$.fragment,u),W=!1},d(u){u&&(p(o),p(e),p(w),p(m)),E(t,u),E(r),E(I)}}}function $e(a){let t=d("common.refresh")+"",o;return{c(){o=q(t)},l(e){o=C(e,t)},m(e,r){h(e,o,r)},p:U,d(e){e&&p(o)}}}function _e(a){let t,o,e,r,l=d("workflows.no-workers-failure-message")+"",n,s;return o=new ne({}),{c(){t=L("div"),v(o.$$.fragment),e=D(),r=L("p"),n=q(l),this.h()},l(c){t=P(c,"DIV",{class:!0});var f=R(t);y(o.$$.fragment,f),e=Q(f),r=P(f,"P",{});var i=R(r);n=C(i,l),i.forEach(p),f.forEach(p),this.h()},h(){B(t,"class","text-center")},m(c,f){h(c,t,f),T(o,t,null),b(t,e),b(t,r),b(r,n),s=!0},p:U,i(c){s||(_(o.$$.fragment,c),s=!0)},o(c){g(o.$$.fragment,c),s=!1},d(c){c&&p(t),E(o)}}}function ke(a){let t,o,e,r;const l=[fe,ce],n=[];function s(c,f){var i,$,w;return(i=c[0])!=null&&i.isRunning&&((w=($=c[3])==null?void 0:$.pollers)==null?void 0:w.length)>0?0:1}return o=s(a),e=n[o]=l[o](a),{c(){t=L("section"),e.c()},l(c){t=P(c,"SECTION",{});var f=R(t);e.l(f),f.forEach(p)},m(c,f){h(c,t,f),n[o].m(t,null),r=!0},p(c,[f]){let i=o;o=s(c),o===i?n[o].p(c,f):(K(),g(n[i],1,1,()=>{n[i]=null}),M(),e=n[o],e?e.p(c,f):(e=n[o]=l[o](c),e.c()),_(e,1),e.m(t,null))},i(c){r||(_(e),r=!0)},o(c){g(e),r=!1},d(c){c&&p(t),n[o].d()}}}let ge=!1;function de(a,t,o){let e,r,l,n,s;V(a,ae,m=>o(6,l=m)),V(a,X,m=>o(7,n=m)),V(a,se,m=>o(5,s=m));const{namespace:c}=n.params;let f=new Date;const i=()=>{var m;return O({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,l==null?void 0:l.accessToken)};let $;const w=()=>{var m;o(2,$=O({workflow:e,namespace:c},(m=n.data)===null||m===void 0?void 0:m.settings,l==null?void 0:l.accessToken)),$.then(()=>{o(1,f=new Date)})};return a.$$.update=()=>{a.$$.dirty&32&&o(0,{workflow:e,workers:r}=s,e,(o(3,r),o(5,s))),a.$$.dirty&1&&e!=null&&e.isRunning&&o(2,$=i())},[e,f,$,r,w,s]}class we extends H{constructor(t){super(),J(this,t,de,ke,F,{})}}function he(a){let t,o;return t=new we({}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,r){T(t,e,r),o=!0},i(e){o||(_(t.$$.fragment,e),o=!0)},o(e){g(t.$$.fragment,e),o=!1},d(e){E(t,e)}}}function be(a){let t,o,e,r;return t=new Z({props:{title:`${d("workflows.call-stack-tab")} | ${a[1]}`,url:a[0].url.href}}),e=new x({props:{$$slots:{default:[he]},$$scope:{ctx:a}}}),{c(){v(t.$$.fragment),o=D(),v(e.$$.fragment)},l(l){y(t.$$.fragment,l),o=Q(l),y(e.$$.fragment,l)},m(l,n){T(t,l,n),h(l,o,n),T(e,l,n),r=!0},p(l,[n]){const s={};n&1&&(s.url=l[0].url.href),t.$set(s);const c={};n&4&&(c.$$scope={dirty:n,ctx:l}),e.$set(c)},i(l){r||(_(t.$$.fragment,l),_(e.$$.fragment,l),r=!0)},o(l){g(t.$$.fragment,l),g(e.$$.fragment,l),r=!1},d(l){l&&p(o),E(t,l),E(e,l)}}}function ve(a,t,o){let e;V(a,X,l=>o(0,e=l));const r=e.params.workflow;return[e,r]}class Be extends H{constructor(t){super(),J(this,t,ve,be,F,{})}}export{Be as component}; diff --git a/ui/assets/local/_app/immutable/nodes/33.CAfZbG17.js b/ui/assets/local/_app/immutable/nodes/33.CAfZbG17.js new file mode 100644 index 000000000..b47b691f5 --- /dev/null +++ b/ui/assets/local/_app/immutable/nodes/33.CAfZbG17.js @@ -0,0 +1 @@ +import{s as se,c as oe,b as R,d as B,i as v,f as g,w as _e,t as X,l as Y,v as ae,h as M,j as L,k as H,m as $,H as ye,x as ee,y as et,q as ie,C as Ht,N as it,O as bt,n as b,p as Ge,G as el,D as Me,z as Le,A as vt,a as st,u as ft,g as at,e as ut,M as hl,I as ke,J as we,W as Ft,a2 as Oe,F as $l,X as Rt,a9 as tl,aa as kl,o as wl}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,c as y,a as I,m as A,t as d,b as p,d as P,g as ne,e as le,f as Et,h as bl}from"../chunks/index.dOVbn71B.js";import{p as He}from"../chunks/stores.Ds4o9nwd.js";import{P as vl}from"../chunks/page-title.DNhqE1Lj.js";import{t as U}from"../chunks/translate.BBe5dcco.js";import{w as El,b as Tl}from"../chunks/entry.kylZibtV.js";import{C as Ye,E as yl,D as nl,a as Il,s as Ce,L as Se,g as Bt,b as ll,m as Al,c as Pl,T as Ve,d as gt,t as Wl,e as Dl,f as Cl}from"../chunks/event-summary-table.BGH464r2.js";import{e as he,u as pt,o as _t}from"../chunks/each.C6O0oV7R.js";import{M as Sl,C as ct}from"../chunks/checkbox.CZ5w22eC.js";import{I as Ie}from"../chunks/icon.CfkHLDdJ.js";import{M as Nl}from"../chunks/menu-button.DYcE3c8N.js";import{M as jl,a as Ol,d as ht}from"../chunks/menu.B3Snjx4c.js";import{V as Gt,g as Mt,W as rl,X as Vl,F as Hl}from"../chunks/get-event-categorization.BzHsmJUX.js";import{c as ol,s as il,a as Fl,b as Lt}from"../chunks/active-events.hFekhesG.js";import{k as Be,l as sl,h as fl,d as zt,i as $t,e as mt,b as Xe,m as Je,a as Ut,f as Tt,p as ze,g as Rl}from"../chunks/events.CbhKe7Ai.js";import{t as Bl}from"../chunks/versions.BSCVnN4z.js";import{i as Gl}from"../chunks/route-for-api.DGDQNXtX.js";import{M as Ml}from"../chunks/modal.BxyQo5_L.js";import{R as Ll,a as dt}from"../chunks/radio-input.OzdV2p8V.js";import{b as zl,f as Ul}from"../chunks/events-service.BZohXMj_.js";import{a as ql}from"../chunks/auth-user.CfsLeCYD.js";import{c as Ql,d as Jl}from"../chunks/decode-payload.CR1Tto5x.js";import{g as Xl,a as Yl,b as Kl}from"../chunks/data-encoder.CsUWoJ2q.js";import{s as Ke,p as Ze}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{T as kt,a as je}from"../chunks/toggle-buttons.cS3NnOtm.js";import{W as Zl}from"../chunks/workflow-json-navigator.sqiRvlQE.js";import{T as xl}from"../chunks/toggle-switch.C9lxIG0w.js";import{w as tt}from"../chunks/workflow-run.CoKQBOG_.js";import{C as Ae}from"../chunks/code-block.DGWayI9q.js";import{P as nt}from"../chunks/payload-decoder.C_mCVVdL.js";import{B as er}from"../chunks/button.hs88FdV4.js";import{t as lt,f as de,r as al}from"../chunks/time-format.BLKgLEx9.js";import{w as wt,u as xe}from"../chunks/format-time.6TuExJAg.js";import{s as rt,f as ot}from"../chunks/format-camel-case.ByTIZu23.js";import{h as tr,u as nr}from"../chunks/await_block.BfN27BCg.js";import{g as ul}from"../chunks/index.B7_EN-g2.js";import{v as lr}from"../chunks/workflows.Cse8qlOg.js";import{e as rr,h as or}from"../chunks/get-single-attribute-for-event.C6hE5al8.js";import{A as yt}from"../chunks/alert.nnKn2vnv.js";import{u as qt,z as Qt}from"../chunks/route-for.B9fTWV7L.js";import{C as ir}from"../chunks/index.Nss_n040.js";import{L as It}from"../chunks/link.C_v4aoat.js";import{T as cl}from"../chunks/tooltip.D2lOlqUw.js";import{i as sr}from"../chunks/screaming-enums.w0zEi9dM.js";import{A as ml}from"../chunks/accordion.B8FZU59C.js";import{B as Qe}from"../chunks/badge.jG5hkqHT.js";import{a as fr}from"../chunks/index.mPGqfhEB.js";const ar=o=>o==null?void 0:o.nexus;function Jt(o,e,n){const t=o.slice();return t[17]=e[n],t}function ur(o){let e=U("events.event-types")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function cr(o){let e,n,t;return n=new Ie({props:{name:"filter",class:o[3]&&"pt-0.5 text-white"}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{slot:!0,class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"slot","leading"),$(e,"class","flex h-6 w-6 flex-col items-center justify-center rounded-full transition-colors duration-200"),ye(e,"bg-interactive",o[3])},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r&8&&(i.class=l[3]&&"pt-0.5 text-white"),n.$set(i),(!t||r&8)&&ye(e,"bg-interactive",l[3])},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function mr(o){let e=U("common.all")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function dr(o){let e,n;return e=new ct({props:{slot:"leading",checked:o[2].length===o[0].length,label:U("common.all"),labelHidden:!0}}),e.$on("change",o[10]),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&5&&(r.checked=t[2].length===t[0].length),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function gr(o){let e=U("common.none")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function pr(o){let e,n;return e=new ct({props:{slot:"leading",checked:!o[2].length,label:U("common.none"),labelHidden:!0}}),e.$on("change",o[12]),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.checked=!t[2].length),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function _r(o){let e=o[17].label+"",n,t;return{c(){n=X(e),t=R()},l(l){n=Y(l,e),t=B(l)},m(l,r){v(l,n,r),v(l,t,r)},p(l,r){r&2&&e!==(e=l[17].label+"")&&ie(n,e)},d(l){l&&(g(n),g(t))}}}function hr(o){let e,n;function t(...r){return o[14](o[17],...r)}function l(){return o[15](o[17])}return e=new ct({props:{slot:"leading",checked:o[2].some(t),label:o[17].label,labelHidden:!0}}),e.$on("click",l),{c(){y(e.$$.fragment)},l(r){I(e.$$.fragment,r)},m(r,i){A(e,r,i),n=!0},p(r,i){o=r;const s={};i&6&&(s.checked=o[2].some(t)),i&2&&(s.label=o[17].label),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){P(e,r)}}}function Xt(o){let e,n;function t(){return o[16](o[17])}return e=new ht({props:{"data-testid":o[17].label,description:o[17].description,class:"items-start",$$slots:{leading:[hr],default:[_r]},$$scope:{ctx:o}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(l){I(e.$$.fragment,l)},m(l,r){A(e,l,r),n=!0},p(l,r){o=l;const i={};r&2&&(i["data-testid"]=o[17].label),r&2&&(i.description=o[17].description),r&1048582&&(i.$$scope={dirty:r,ctx:o}),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){P(e,l)}}}function $r(o){let e,n,t,l,r,i,s,f;e=new ht({props:{"data-testid":U("common.all"),$$slots:{leading:[dr],default:[mr]},$$scope:{ctx:o}}}),e.$on("click",o[11]),t=new ht({props:{"data-testid":U("common.none"),$$slots:{leading:[pr],default:[gr]},$$scope:{ctx:o}}}),t.$on("click",o[13]),r=new Sl({});let u=he(o[1]),a=[];for(let c=0;cp(a[c],1,1,()=>{a[c]=null});return{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment),i=R();for(let c=0;cn(2,i=W)),oe(o,He,W=>n(8,s=W)),oe(o,Bl,W=>n(9,f=W));var u;let{compact:a=!1}=e,m=El(!1);const c=({value:W})=>{ol(),_e(Be,i=i.some(z=>z===W)?i.filter(z=>z!==W):[...i,W],i)},_=()=>{_e(Be,i=t,i)},h=()=>{_e(Be,i=t,i)},D=()=>{_e(Be,i=[],i)},S=()=>{_e(Be,i=[],i)},O=(W,z)=>z===W.value,q=W=>c(W),Q=W=>{c(W)};return o.$$set=W=>{"compact"in W&&n(6,a=W.compact)},o.$$.update=()=>{o.$$.dirty&64&&n(0,t=a?Gt.map(W=>W.value):Mt.map(W=>W.value)),o.$$.dirty&64&&n(1,l=[...(a?Gt:Mt).map(W=>({...W,label:U(W.label),icon:Ye[W.value],description:U(W.description)}))]),o.$$.dirty&514&&Gl("1.21.0",f)&&n(1,l=l.filter(({value:W})=>W!=="update")),o.$$.dirty&386&&(ar(n(7,u=s.data.systemInfo)===null||u===void 0?void 0:u.capabilities)||n(1,l=l.filter(({value:W})=>W!=="nexus"))),o.$$.dirty&5&&n(3,r=i.length{const t=Xl(e),l=Yl(e),r=Kl(e),i={...e,codec:{...e==null?void 0:e.codec,endpoint:t,passAccessToken:l,includeCredentials:r}},s=!1;try{const f=await Ql(o,Ht(He).params.namespace,i,Ht(ql).accessToken,n,s);return Jl(f,s)}catch{return o}};function Yt(o,e,n){const t=Ke({events:o},null,2),l=document.createElement("a"),r=new Blob([t],{type:n});l.href=URL.createObjectURL(r),l.download=e,l.click()}const Tr=async({namespace:o,workflowId:e,runId:n,settings:t,decodeSetting:l})=>{try{const r=await zl({namespace:o,workflowId:e,runId:n,sort:"ascending"});if(l==="encoded")Yt(r,`${n}/events.json`,"text/plain");else{const i=[];for(const s of r){const f=await Er(s,t,l);i.push(f)}Yt(i,`${n}/events.json`,"text/plain")}}catch{console.error("Could not download event history")}};function yr(o){let e,n=U("common.download-json")+"",t;return{c(){e=M("h3"),t=X(n),this.h()},l(l){e=L(l,"H3",{slot:!0});var r=H(e);t=Y(r,n),r.forEach(g),this.h()},h(){$(e,"slot","title")},m(l,r){v(l,e,r),b(e,t)},p:ae,d(l){l&&g(e)}}}function Ir(o){let e,n,t,l,r,i;return e=new dt({props:{id:"use-encoded-setting","data-testid":"use-encoded-setting-input",value:"encoded",label:U("events.encoded")}}),t=new dt({props:{id:"use-decoded-setting","data-testid":"use-decoded-setting-input",value:"decoded",label:U("events.decoded"),description:U("events.decoded-description")}}),r=new dt({props:{id:"use-readable-setting","data-testid":"use-readable-setting-input",value:"readable",label:U("events.readable"),description:U("events.readable-description")}}),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment)},l(s){I(e.$$.fragment,s),n=B(s),I(t.$$.fragment,s),l=B(s),I(r.$$.fragment,s)},m(s,f){A(e,s,f),v(s,n,f),A(t,s,f),v(s,l,f),A(r,s,f),i=!0},p:ae,i(s){i||(d(e.$$.fragment,s),d(t.$$.fragment,s),d(r.$$.fragment,s),i=!0)},o(s){p(e.$$.fragment,s),p(t.$$.fragment,s),p(r.$$.fragment,s),i=!1},d(s){s&&(g(n),g(l)),P(e,s),P(t,s),P(r,s)}}}function Ar(o){let e,n,t;return n=new Ll({props:{group:sl,name:"decode-setting",class:"h-auto overflow-auto",$$slots:{default:[Ir]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{slot:!0,class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"slot","content"),$(e,"class","flex flex-col gap-4")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r&1024&&(i.$$scope={dirty:r,ctx:l}),n.$set(i)},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function Pr(o){let e,n,t;function l(i){o[5](i)}let r={id:"download-history",large:!0,confirmType:"primary",confirmText:U("common.download"),cancelText:U("common.cancel"),$$slots:{content:[Ar],title:[yr]},$$scope:{ctx:o}};return o[0]!==void 0&&(r.open=o[0]),e=new Ml({props:r}),it.push(()=>Et(e,"open",l)),e.$on("confirmModal",o[6]),e.$on("cancelModal",o[7]),{c(){y(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,s){A(e,i,s),t=!0},p(i,[s]){const f={};s&1024&&(f.$$scope={dirty:s,ctx:i}),!n&&s&1&&(n=!0,f.open=i[0],bt(()=>n=!1)),e.$set(f)},i(i){t||(d(e.$$.fragment,i),t=!0)},o(i){p(e.$$.fragment,i),t=!1},d(i){P(e,i)}}}function Wr(o,e,n){let t,l;oe(o,sl,_=>n(8,t=_)),oe(o,He,_=>n(9,l=_));let{open:r=!1}=e,{namespace:i}=e,{workflowId:s}=e,{runId:f}=e;const u=()=>{n(0,r=!1),Tr({namespace:i,workflowId:s,runId:f,settings:l.data.settings,decodeSetting:t})};function a(_){r=_,n(0,r)}const m=()=>u(),c=()=>n(0,r=!1);return o.$$set=_=>{"open"in _&&n(0,r=_.open),"namespace"in _&&n(2,i=_.namespace),"workflowId"in _&&n(3,s=_.workflowId),"runId"in _&&n(4,f=_.runId)},[r,u,i,s,f,a,m,c]}class Dr extends ue{constructor(e){super(),ce(this,e,Wr,Pr,se,{open:0,namespace:2,workflowId:3,runId:4})}}function Cr(o){let e,n,t;function l(i){o[2](i)}let r={slot:"decode",label:U("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[1]!==void 0&&(r.checked=o[1]),e=new xl({props:r}),it.push(()=>Et(e,"checked",l)),{c(){y(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,s){A(e,i,s),t=!0},p(i,s){const f={};!n&&s&2&&(n=!0,f.checked=i[1],bt(()=>n=!1)),e.$set(f)},i(i){t||(d(e.$$.fragment,i),t=!0)},o(i){p(e.$$.fragment,i),t=!1},d(i){P(e,i)}}}function Sr(o){let e,n;return e=new Zl({props:{events:o[0],$$slots:{decode:[Cr]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&1&&(r.events=t[0]),l&10&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Nr(o,e,n){let t,l;oe(o,fl,i=>n(0,t=i)),oe(o,zt,i=>n(1,l=i));function r(i){l=i,zt.set(l)}return[t,l,r]}class jr extends ue{constructor(e){super(),ce(this,e,Nr,Sr,se,{})}}function Kt(o,e,n){const t=o.slice();return t[4]=e[n],t}function Zt(o){let e,n,t,l,r,i=o[4].label+"",s,f,u,a,m;return n=new ct({props:{type:"checkbox",checked:o[0]}}),n.$on("click",o[2]),{c(){e=M("div"),y(n.$$.fragment),t=R(),l=M("div"),r=M("span"),s=X(i),f=R(),this.h()},l(c){e=L(c,"DIV",{class:!0});var _=H(e);I(n.$$.fragment,_),t=B(_),l=L(_,"DIV",{role:!0,tabindex:!0,class:!0});var h=H(l);r=L(h,"SPAN",{class:!0});var D=H(r);s=Y(D,i),D.forEach(g),h.forEach(g),f=B(_),_.forEach(g),this.h()},h(){$(r,"class","block"),$(l,"role","button"),$(l,"tabindex","0"),$(l,"class","flex cursor-pointer select-none items-center text-sm"),$(e,"class","flex items-center")},m(c,_){v(c,e,_),A(n,e,null),b(e,t),b(e,l),b(l,r),b(r,s),b(e,f),u=!0,a||(m=[Ge(l,"click",o[2]),Ge(l,"keydown",o[3])],a=!0)},p(c,_){const h={};_&1&&(h.checked=c[0]),n.$set(h)},i(c){u||(d(n.$$.fragment,c),u=!0)},o(c){p(n.$$.fragment,c),u=!1},d(c){c&&g(e),P(n),a=!1,el(m)}}}function Or(o){let e,n,t=he(o[1]),l=[];for(let i=0;ip(l[i],1,1,()=>{l[i]=null});return{c(){e=M("div");for(let i=0;in(0,t=s));const l=[{label:"Pending and Failed Only",value:"pending"}],r=()=>{ol(),_e($t,t=!t,t)};return[t,l,r,s=>s.key==="Enter"&&r]}class Hr extends ue{constructor(e){super(),ce(this,e,Vr,Or,se,{})}}function Fr(o){let e;return{c(){e=X("All")},l(n){e=Y(n,"All")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Rr(o){let e;return{c(){e=X("Compact")},l(n){e=Y(n,"Compact")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Br(o){let e;return{c(){e=X("JSON")},l(n){e=Y(n,"JSON")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Gr(o){let e,n,t,l,r,i;return e=new je({props:{active:o[4]==="feed","data-testid":"feed",$$slots:{default:[Fr]},$$scope:{ctx:o}}}),e.$on("click",o[11]),t=new je({props:{active:o[4]==="compact","data-testid":"compact",$$slots:{default:[Rr]},$$scope:{ctx:o}}}),t.$on("click",o[12]),r=new je({props:{active:o[4]==="json","data-testid":"json",$$slots:{default:[Br]},$$scope:{ctx:o}}}),r.$on("click",o[13]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment)},l(s){I(e.$$.fragment,s),n=B(s),I(t.$$.fragment,s),l=B(s),I(r.$$.fragment,s)},m(s,f){A(e,s,f),v(s,n,f),A(t,s,f),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f[0]&16&&(u.active=s[4]==="feed"),f[1]&2&&(u.$$scope={dirty:f,ctx:s}),e.$set(u);const a={};f[0]&16&&(a.active=s[4]==="compact"),f[1]&2&&(a.$$scope={dirty:f,ctx:s}),t.$set(a);const m={};f[0]&16&&(m.active=s[4]==="json"),f[1]&2&&(m.$$scope={dirty:f,ctx:s}),r.$set(m)},i(s){i||(d(e.$$.fragment,s),d(t.$$.fragment,s),d(r.$$.fragment,s),i=!0)},o(s){p(e.$$.fragment,s),p(t.$$.fragment,s),p(r.$$.fragment,s),i=!1},d(s){s&&(g(n),g(l)),P(e,s),P(t,s),P(r,s)}}}function xt(o){let e,n;return e=new kt({props:{$$slots:{default:[Lr]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&66|l[1]&2&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Mr(o){let e=o[1]?"Desc":"Asc",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l[0]&2&&e!==(e=t[1]?"Desc":"Asc")&&ie(n,e)},d(t){t&&g(n)}}}function Lr(o){let e,n,t,l;return e=new je({props:{icon:o[1]?"arrow-down":"arrow-up","data-testid":"zoom-in",$$slots:{default:[Mr]},$$scope:{ctx:o}}}),e.$on("click",o[14]),t=new je({props:{icon:o[6]?"chevron-up":"chevron-down","data-testid":"expandAll",tooltip:o[6]?"Collapse All Events":"Expand All Events"}}),t.$on("click",o[15]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,i){const s={};i[0]&2&&(s.icon=r[1]?"arrow-down":"arrow-up"),i[0]&2|i[1]&2&&(s.$$scope={dirty:i,ctx:r}),e.$set(s);const f={};i[0]&64&&(f.icon=r[6]?"chevron-up":"chevron-down"),i[0]&64&&(f.tooltip=r[6]?"Collapse All Events":"Expand All Events"),t.$set(f)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function zr(o){let e,n,t,l;return e=new je({props:{disabled:!o[3].isRunning,icon:o[10]?"play":"pause","data-testid":"pause",tooltip:o[10]?"Resume Live Updates":"Pause Live Updates"}}),e.$on("click",o[28]),t=new je({props:{"data-testid":"download",icon:"download",tooltip:"Download Event History"}}),t.$on("click",o[29]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,i){const s={};i[0]&8&&(s.disabled=!r[3].isRunning),i[0]&1024&&(s.icon=r[10]?"play":"pause"),i[0]&1024&&(s.tooltip=r[10]?"Resume Live Updates":"Pause Live Updates"),e.$set(s)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function en(o){let e,n;return e=new Hr({}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Ur(o){let e,n,t;return n=new yl({props:{updating:o[8],items:o[7],groups:o[0],compact:o[2]}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{"data-testid":!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"data-testid","event-summary-table")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r[0]&256&&(i.updating=l[8]),r[0]&128&&(i.items=l[7]),r[0]&1&&(i.groups=l[0]),r[0]&4&&(i.compact=l[2]),n.$set(i)},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function qr(o){let e,n,t;return n=new jr({}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"class","px-4")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p:ae,i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function Qr(o){let e,n,t,l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q;l=new kt({props:{$$slots:{default:[Gr]},$$scope:{ctx:o}}});let W=o[4]!=="json"&&xt(o);f=new kt({props:{$$slots:{default:[zr]},$$scope:{ctx:o}}});let z=o[4]!=="json"&&en();c=new vr({props:{compact:o[2]}});const N=[qr,Ur],C=[];function V(T,E){return T[4]==="json"?0:1}h=V(o),D=C[h]=N[h](o);function k(T){o[30](T)}let w={namespace:o[9],workflowId:o[3].id,runId:o[3].runId};return o[5]!==void 0&&(w.open=o[5]),O=new Dr({props:w}),it.push(()=>Et(O,"open",k)),{c(){e=M("div"),n=M("div"),t=M("div"),y(l.$$.fragment),r=R(),i=M("div"),W&&W.c(),s=R(),y(f.$$.fragment),u=R(),a=M("div"),z&&z.c(),m=R(),y(c.$$.fragment),_=R(),D.c(),S=R(),y(O.$$.fragment),this.h()},l(T){e=L(T,"DIV",{class:!0});var E=H(e);n=L(E,"DIV",{class:!0});var j=H(n);t=L(j,"DIV",{class:!0});var F=H(t);I(l.$$.fragment,F),F.forEach(g),r=B(j),i=L(j,"DIV",{class:!0});var te=H(i);W&&W.l(te),s=B(te),I(f.$$.fragment,te),te.forEach(g),j.forEach(g),u=B(E),a=L(E,"DIV",{class:!0});var Z=H(a);z&&z.l(Z),m=B(Z),I(c.$$.fragment,Z),Z.forEach(g),E.forEach(g),_=B(T),D.l(T),S=B(T),I(O.$$.fragment,T),this.h()},h(){$(t,"class","flex items-center gap-2 px-4"),$(i,"class","flex items-center gap-2 px-4"),$(n,"class","flex flex-col items-center gap-2 px-4 md:flex-row"),$(a,"class","flex w-full flex-col items-center justify-end gap-4 px-4 lg:flex-row"),$(e,"class","flex flex-col items-center justify-between gap-4 py-4 lg:flex-row lg:py-8")},m(T,E){v(T,e,E),b(e,n),b(n,t),A(l,t,null),b(n,r),b(n,i),W&&W.m(i,null),b(i,s),A(f,i,null),b(e,u),b(e,a),z&&z.m(a,null),b(a,m),A(c,a,null),v(T,_,E),C[h].m(T,E),v(T,S,E),A(O,T,E),Q=!0},p(T,E){const j={};E[0]&16|E[1]&2&&(j.$$scope={dirty:E,ctx:T}),l.$set(j),T[4]!=="json"?W?(W.p(T,E),E[0]&16&&d(W,1)):(W=xt(T),W.c(),d(W,1),W.m(i,s)):W&&(ne(),p(W,1,1,()=>{W=null}),le());const F={};E[0]&1064|E[1]&2&&(F.$$scope={dirty:E,ctx:T}),f.$set(F),T[4]!=="json"?z?E[0]&16&&d(z,1):(z=en(),z.c(),d(z,1),z.m(a,m)):z&&(ne(),p(z,1,1,()=>{z=null}),le());const te={};E[0]&4&&(te.compact=T[2]),c.$set(te);let Z=h;h=V(T),h===Z?C[h].p(T,E):(ne(),p(C[Z],1,1,()=>{C[Z]=null}),le(),D=C[h],D?D.p(T,E):(D=C[h]=N[h](T),D.c()),d(D,1),D.m(S.parentNode,S));const x={};E[0]&512&&(x.namespace=T[9]),E[0]&8&&(x.workflowId=T[3].id),E[0]&8&&(x.runId=T[3].runId),!q&&E[0]&32&&(q=!0,x.open=T[5],bt(()=>q=!1)),O.$set(x)},i(T){Q||(d(l.$$.fragment,T),d(W),d(f.$$.fragment,T),d(z),d(c.$$.fragment,T),d(D),d(O.$$.fragment,T),Q=!0)},o(T){p(l.$$.fragment,T),p(W),p(f.$$.fragment,T),p(z),p(c.$$.fragment,T),p(D),p(O.$$.fragment,T),Q=!1},d(T){T&&(g(e),g(_),g(S)),P(l),W&&W.d(),P(f),z&&z.d(),P(c),C[h].d(T),P(O,T)}}}function Jr(o,e,n){let t,l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q;oe(o,mt,re=>n(23,c=re)),oe(o,Xe,re=>n(24,_=re)),oe(o,Je,re=>n(4,h=re)),oe(o,He,re=>n(25,D=re)),oe(o,Ut,re=>n(31,S=re)),oe(o,Tt,re=>n(26,O=re)),oe(o,tt,re=>n(27,q=re)),oe(o,ze,re=>n(10,Q=re));var W,z,N,C;let{history:V}=e,{groups:k}=e,w=!1;const T=()=>{_e(Je,h="feed",h)},E=()=>{_e(Je,h="compact",h)},j=()=>{_e(Je,h="json",h)},F=()=>{r?_e(Xe,_="ascending",_):_e(Xe,_="descending",_)},te=()=>{f?_e(mt,c="false",c):_e(mt,c="true",c)},Z=()=>_e(ze,Q=!Q,Q),x=()=>n(5,w=!0);function ge(re){w=re,n(5,w)}return o.$$set=re=>{"history"in re&&n(16,V=re.history),"groups"in re&&n(0,k=re.groups)},o.$$.update=()=>{o.$$.dirty[0]&33554432&&n(9,{namespace:t}=D.params,t),o.$$.dirty[0]&134217728&&n(3,{workflow:l}=q,l),o.$$.dirty[0]&16777216&&n(1,r=_==="descending"),o.$$.dirty[0]&67108864&&n(8,i=!O.length),o.$$.dirty[0]&16&&n(2,s=h==="compact"),o.$$.dirty[0]&8388608&&n(6,f=c==="true"),o.$$.dirty[0]&35520512&&_e(Ut,S=!(n(18,z=n(17,W=D.url)===null||W===void 0?void 0:W.searchParams)===null||z===void 0)&&z.get("category")?n(20,C=n(19,N=D.url)===null||N===void 0?void 0:N.searchParams)===null||C===void 0?void 0:C.get("category").split(","):void 0,S),o.$$.dirty[0]&8&&n(22,u=l.pendingActivities),o.$$.dirty[0]&8&&n(21,a=l.pendingNexusOperations),o.$$.dirty[0]&6356999&&n(7,m=s?k:r?[...a,...u,...V]:[...V,...u,...a])},[k,r,s,l,h,w,f,m,i,t,Q,T,E,j,F,te,V,W,z,N,C,a,u,c,_,D,O,q,Z,x,ge]}class Xr extends ue{constructor(e){super(),ce(this,e,Jr,Qr,se,{history:16,groups:0},null,[-1,-1])}}const Yr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],Kr=o=>!!o.workflowExecutionStartedEventAttributes,Zr=o=>{for(const e of Yr)if(o.eventType===e)return!0;return!1},xr=o=>rl(o)?o.attributes.input:Vl(o)?o.attributes.result===null?null:o.attributes.result:o.attributes,eo=o=>{var i;let e,n,t=!1,l,r;for(const s of o)if(Kr(s)){l=s;continue}else if(Zr(s)){r=s;continue}return l&&(e=Ke(((i=l==null?void 0:l.workflowExecutionStartedEventAttributes)==null?void 0:i.input)??null)),r&&(t=rl(r),n=Ke(xr(r))),{input:e,results:n,contAsNew:t}},to=o=>{try{return Ze(o)}catch{return}},tn=o=>{try{const e=Ze(o);return Array.isArray(e)?Ze(o):[]}catch{return[]}},no=o=>{try{const e=o==null?void 0:o.payloads;return Array.isArray(e)?e:[]}catch{return[]}};function nn(o,e,n){const t=o.slice();return t[8]=e[n],t}function lo(o){let e,n;return e=new Ae({props:{content:o[2]?"Results will appear upon completion.":"null",language:"text",copyable:!1,maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.content=t[2]?"Results will appear upon completion.":"null"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ro(o){let e,n,t,l;const r=[io,oo],i=[];function s(f,u){return f[4]?0:1}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function oo(o){let e,n;return e=new nt({props:{value:Ze(o[1]),$$slots:{default:[so,({decodedValue:t})=>({7:t}),({decodedValue:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=Ze(t[1])),l&2176&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function io(o){let e,n;return e=new nt({props:{value:o[3],key:"payloads",$$slots:{default:[fo,({decodedValue:t})=>({7:t}),({decodedValue:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.value=t[3]),l&2176&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function so(o){let e,n;return e=new Ae({props:{content:o[7],copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.content=t[7]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ln(o){let e,n;return e=new Ae({props:{content:Ke(o[8]),copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.content=Ke(t[8])),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function fo(o){let e,n,t=he(tn(o[7])),l=[];for(let i=0;ip(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{a[h]=null}),le(),i=a[r],i?i.p(c,_):(i=a[r]=u[r](c),i.c()),d(i,1),i.m(e,null)),(!f||_&32&&s!==(s="flex w-full grow flex-col gap-2 py-4 "+c[5].class))&&$(e,"class",s)},i(c){f||(d(i),f=!0)},o(c){p(i),f=!1},d(c){c&&g(e),a[r].d()}}}function uo(o,e,n){let t,l,r;const i=["title","content","isRunning"];let s=Me(e,i),{title:f}=e,{content:u}=e,{isRunning:a}=e;return o.$$set=m=>{e=Le(Le({},e),vt(m)),n(5,s=Me(e,i)),"title"in m&&n(0,f=m.title),"content"in m&&n(1,u=m.content),"isRunning"in m&&n(2,a=m.isRunning)},o.$$.update=()=>{o.$$.dirty&2&&n(3,t=to(u)),o.$$.dirty&8&&n(6,l=no(t)),o.$$.dirty&64&&n(4,r=l.length>0)},[f,u,a,t,r,s,l]}class rn extends ue{constructor(e){super(),ce(this,e,uo,ao,se,{title:0,content:1,isRunning:2})}}function co(o){let e,n,t,l,r;return n=new rn({props:{content:o[1].input,isRunning:o[0],title:"Input"}}),l=new rn({props:{content:o[1].results,isRunning:o[0],title:"Result"}}),{c(){e=M("div"),y(n.$$.fragment),t=R(),y(l.$$.fragment),this.h()},l(i){e=L(i,"DIV",{class:!0,"data-testid":!0});var s=H(e);I(n.$$.fragment,s),t=B(s),I(l.$$.fragment,s),s.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-4 lg:flex-row"),$(e,"data-testid","input-and-result")},m(i,s){v(i,e,s),A(n,e,null),b(e,t),A(l,e,null),r=!0},p(i,[s]){const f={};s&2&&(f.content=i[1].input),s&1&&(f.isRunning=i[0]),n.$set(f);const u={};s&2&&(u.content=i[1].results),s&1&&(u.isRunning=i[0]),l.$set(u)},i(i){r||(d(n.$$.fragment,i),d(l.$$.fragment,i),r=!0)},o(i){p(n.$$.fragment,i),p(l.$$.fragment,i),r=!1},d(i){i&&g(e),P(n),P(l)}}}function mo(o,e,n){let t,l,r,i;return oe(o,tt,s=>n(2,r=s)),oe(o,Tt,s=>n(3,i=s)),o.$$.update=()=>{o.$$.dirty&8&&n(1,t=eo(i)),o.$$.dirty&4&&n(0,l=r.workflow.isRunning)},[l,t,r,i]}class go extends ue{constructor(e){super(),ce(this,e,mo,co,se,{})}}const po=o=>({endTime:o&1,duration:o&2}),on=o=>({endTime:o[0],duration:o[1]});function _o(o){let e;const n=o[6].default,t=st(n,o,o[5],on);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,[r]){t&&t.p&&(!e||r&35)&&ft(t,n,l,l[5],e?ut(n,l[5],r,po):at(l[5]),on)},i(l){e||(d(t,l),e=!0)},o(l){p(t,l),e=!1},d(l){t&&t.d(l)}}}function ho(o,e,n){let t,l,r;oe(o,ze,h=>n(4,r=h));let{$$slots:i={},$$scope:s}=e,{workflow:f}=e,{startTime:u}=e;const a=()=>{const h=new Date;return h.setSeconds(h.getSeconds()+1),h};let m;const c=h=>{h&&(clearInterval(m),m=null)},_=h=>{h?(clearInterval(m),m=null):!m&&f.isRunning&&(m=setInterval(()=>{n(0,t=a())},1e3))};return hl(()=>{clearInterval(m),m=null,_e(ze,r=!1,r)}),o.$$set=h=>{"workflow"in h&&n(2,f=h.workflow),"startTime"in h&&n(3,u=h.startTime),"$$scope"in h&&n(5,s=h.$$scope)},o.$$.update=()=>{o.$$.dirty&4&&n(0,t=(f==null?void 0:f.endTime)||a()),o.$$.dirty&9&&n(1,l=wt({start:u,end:t,onlyUnderSecond:!1})),o.$$.dirty&4&&c(f.endTime),o.$$.dirty&16&&_(r)},[t,l,f,u,r,s,i]}class $o extends ue{constructor(e){super(),ce(this,e,ho,_o,se,{workflow:2,startTime:3})}}function ko(o){let e,n,t;const l=o[8].default,r=st(l,o,o[7],null);return{c(){e=ke("rect"),r&&r.c(),this.h()},l(i){e=we(i,"rect",{x:!0,y:!0,width:!0,height:!0,class:!0,fill:!0});var s=H(e);r&&r.l(s),s.forEach(g),this.h()},h(){$(e,"x",o[5]),$(e,"y",o[4]),$(e,"width",o[0]),$(e,"height",o[1]),$(e,"class",n=Ft(o[2])+" svelte-19kmry1"),$(e,"fill",o[3])},m(i,s){v(i,e,s),r&&r.m(e,null),t=!0},p(i,[s]){r&&r.p&&(!t||s&128)&&ft(r,l,i,i[7],t?ut(l,i[7],s,null):at(i[7]),null),(!t||s&32)&&$(e,"x",i[5]),(!t||s&16)&&$(e,"y",i[4]),(!t||s&1)&&$(e,"width",i[0]),(!t||s&2)&&$(e,"height",i[1]),(!t||s&4&&n!==(n=Ft(i[2])+" svelte-19kmry1"))&&$(e,"class",n),(!t||s&8)&&$(e,"fill",i[3])},i(i){t||(d(r,i),t=!0)},o(i){p(r,i),t=!1},d(i){i&&g(e),r&&r.d(i)}}}function wo(o,e,n){let t,l,{$$slots:r={},$$scope:i}=e,{point:s}=e,{width:f}=e,{height:u}=e,{classification:a=void 0}=e,{fill:m="#141414"}=e;return o.$$set=c=>{"point"in c&&n(6,s=c.point),"width"in c&&n(0,f=c.width),"height"in c&&n(1,u=c.height),"classification"in c&&n(2,a=c.classification),"fill"in c&&n(3,m=c.fill),"$$scope"in c&&n(7,i=c.$$scope)},o.$$.update=()=>{o.$$.dirty&64&&n(5,[t,l]=s,t,(n(4,l),n(6,s)))},[f,u,a,m,l,t,s,i,r]}class sn extends ue{constructor(e){super(),ce(this,e,wo,ko,se,{point:6,width:0,height:1,classification:2,fill:3})}}function fn(o){o[7]=o[9].workflow,o[8]=o[9].history}function bo(o){return{c:ae,l:ae,m:ae,p:ae,i:ae,o:ae,d:ae}}function vo(o){fn(o);let e,n,t,l;return n=new gl({props:{workflow:o[7],groups:o[2](o[7],o[8]),readOnly:!0}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(r){e=L(r,"DIV",{class:!0,style:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"class",t="cursor-pointer overflow-auto "+o[3].class),Oe(e,"height",o[0]+"px")},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){fn(r),(!l||i&8&&t!==(t="cursor-pointer overflow-auto "+r[3].class))&&$(e,"class",t),(!l||i&1)&&Oe(e,"height",r[0]+"px")},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function Eo(o){return{c:ae,l:ae,m:ae,p:ae,i:ae,o:ae,d:ae}}function To(o){let e,n,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Eo,then:vo,catch:bo,value:9,blocks:[,,,]};return tr(o[1](),t),{c(){e=ee(),t.block.c()},l(l){e=ee(),t.block.l(l)},m(l,r){v(l,e,r),t.block.m(l,t.anchor=r),t.mount=()=>e.parentNode,t.anchor=e,n=!0},p(l,[r]){o=l,nr(t,o,r)},i(l){n||(d(t.block),n=!0)},o(l){for(let r=0;r<3;r+=1){const i=t.blocks[r];p(i)}n=!1},d(l){l&&g(e),t.block.d(l),t.token=null,t=null}}}function yo(o,e,n){const t=["namespace","workflowId","runId","height"];let l=Me(e,t),{namespace:r}=e,{workflowId:i}=e,{runId:s=""}=e,{height:f=400}=e;const u=async()=>{const[m,c]=await Promise.all([lr({namespace:r,workflowId:i,runId:s}),Ul({namespace:r,workflowId:i,runId:s})]);return{workflow:m.workflow,history:c}},a=(m,c)=>{var _;const h=(_=m==null?void 0:m.pendingActivities)!==null&&_!==void 0?_:[];return ul(c,"ascending",h)};return o.$$set=m=>{e=Le(Le({},e),vt(m)),n(3,l=Me(e,t)),"namespace"in m&&n(4,r=m.namespace),"workflowId"in m&&n(5,i=m.workflowId),"runId"in m&&n(6,s=m.runId),"height"in m&&n(0,f=m.height)},[f,u,a,l,r,i,s]}class Io extends ue{constructor(e){super(),ce(this,e,yo,To,se,{namespace:4,workflowId:5,runId:6,height:0})}}function Ao(o){let e;return{c(){e=X(o[1])},l(n){e=Y(n,o[1])},m(n,t){v(n,e,t)},p(n,t){t&2&&ie(e,n[1])},i:ae,o:ae,d(n){n&&g(e)}}}function Po(o){let e,n;return e=new Il({props:{value:o[1],attributes:o[2],type:o[4],light:!0}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&4&&(r.attributes=t[2]),l&16&&(r.type=t[4]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Wo(o){let e,n,t,l;const r=[So,Co,Do],i=[];function s(f,u){var a;return(a=f[1])!=null&&a.payloads?0:f[0]==="searchAttributes"?1:2}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Do(o){let e,n;return e=new nt({props:{value:o[5],$$slots:{default:[No,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.value=t[5]),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Co(o){let e,n;return e=new nt({props:{key:"searchAttributes",value:{searchAttributes:o[5]},$$slots:{default:[jo,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.value={searchAttributes:t[5]}),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function So(o){let e,n;return e=new nt({props:{value:o[1],key:"payloads",$$slots:{default:[Oo,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function an(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function No(o){let e=o[10],n,t,l=an(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=an(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function un(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function jo(o){let e=o[10],n,t,l=un(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=un(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function cn(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function Oo(o){let e=o[10],n,t,l=cn(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=cn(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Vo(o){let e,n,t,l;const r=[Wo,Po,Ao],i=[];function s(f,u){return typeof f[1]=="object"?0:f[4]!=="none"?1:2}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,[u]){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Ho(o,e,n){let t,l,r,i,{key:s}=e,{value:f}=e,{attributes:u}=e,{point:a=[0,0]}=e,{width:m}=e;const{fontSizeRatio:c}=nl;return o.$$set=_=>{"key"in _&&n(0,s=_.key),"value"in _&&n(1,f=_.value),"attributes"in _&&n(2,u=_.attributes),"point"in _&&n(9,a=_.point),"width"in _&&n(3,m=_.width)},o.$$.update=()=>{o.$$.dirty&512&&n(7,[t,l]=a,t,(n(6,l),n(9,a))),o.$$.dirty&2&&n(5,r=rr(f)),o.$$.dirty&5&&n(4,i=or(s,u))},[s,f,u,m,i,r,l,t,c,a]}class dl extends ue{constructor(e){super(),ce(this,e,Ho,Vo,se,{key:0,value:1,attributes:2,point:9,width:3})}}function mn(o){let e,n;return e=new Se({props:{startPoint:[o[10]-o[6],o[15]],endPoint:[o[10]+o[14],o[15]],status:o[1],strokeWidth:o[6]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&33856&&(r.startPoint=[t[10]-t[6],t[15]]),l&50176&&(r.endPoint=[t[10]+t[14],t[15]]),l&2&&(r.status=t[1]),l&64&&(r.strokeWidth=t[6]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function dn(o){let e,n;return e=new Ie({props:{name:o[7],x:o[4]==="end"?o[10]-o[12]-o[6]:o[10],y:o[15]-8,class:o[5]?"text-white":"text-primary"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.name=t[7]),l&5200&&(r.x=t[4]==="end"?t[10]-t[12]-t[6]:t[10]),l&32768&&(r.y=t[15]-8),l&32&&(r.class=t[5]?"text-white":"text-primary"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Fo(o){let e,n,t,l,r,i=o[5]&&mn(o),s=o[11]&&dn(o);const f=o[20].default,u=st(f,o,o[19],null);return{c(){i&&i.c(),e=R(),s&&s.c(),n=R(),t=ke("text"),u&&u.c(),this.h()},l(a){i&&i.l(a),e=B(a),s&&s.l(a),n=B(a),t=we(a,"text",{class:!0,x:!0,y:!0,"font-size":!0,"font-weight":!0,"text-anchor":!0});var m=H(t);u&&u.l(m),m.forEach(g),this.h()},h(){$(t,"class",l="cursor-pointer select-none outline-none "+o[0]+" text-primary svelte-1kes4n8"),$(t,"x",o[13]),$(t,"y",o[15]),$(t,"font-size",o[2]),$(t,"font-weight",o[3]),$(t,"text-anchor",o[4]),ye(t,"label",o[8]),ye(t,"backdrop",o[5])},m(a,m){i&&i.m(a,m),v(a,e,m),s&&s.m(a,m),v(a,n,m),v(a,t,m),u&&u.m(t,null),o[21](t),r=!0},p(a,[m]){a[5]?i?(i.p(a,m),m&32&&d(i,1)):(i=mn(a),i.c(),d(i,1),i.m(e.parentNode,e)):i&&(ne(),p(i,1,1,()=>{i=null}),le()),a[11]?s?(s.p(a,m),m&2048&&d(s,1)):(s=dn(a),s.c(),d(s,1),s.m(n.parentNode,n)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),u&&u.p&&(!r||m&524288)&&ft(u,f,a,a[19],r?ut(f,a[19],m,null):at(a[19]),null),(!r||m&1&&l!==(l="cursor-pointer select-none outline-none "+a[0]+" text-primary svelte-1kes4n8"))&&$(t,"class",l),(!r||m&8192)&&$(t,"x",a[13]),(!r||m&32768)&&$(t,"y",a[15]),(!r||m&4)&&$(t,"font-size",a[2]),(!r||m&8)&&$(t,"font-weight",a[3]),(!r||m&16)&&$(t,"text-anchor",a[4]),(!r||m&257)&&ye(t,"label",a[8]),(!r||m&33)&&ye(t,"backdrop",a[5])},i(a){r||(d(i),d(s),d(u,a),r=!0)},o(a){p(i),p(s),p(u,a),r=!1},d(a){a&&(g(e),g(n),g(t)),i&&i.d(a),s&&s.d(a),u&&u.d(a),o[21](null)}}}function Ro(o,e,n){let t,l,r,i,s,f,{$$slots:u={},$$scope:a}=e;var m;let{point:c=[0,0]}=e,{category:_=void 0}=e,{status:h="none"}=e,{fontSize:D="14px"}=e,{fontWeight:S="400"}=e,{textAnchor:O="start"}=e,{backdrop:q=!1}=e,{backdropHeight:Q=0}=e,{icon:W=void 0}=e,{config:z=void 0}=e,{label:N=!1}=e,C;function V(k){it[k?"unshift":"push"](()=>{C=k,n(9,C)})}return o.$$set=k=>{"point"in k&&n(16,c=k.point),"category"in k&&n(0,_=k.category),"status"in k&&n(1,h=k.status),"fontSize"in k&&n(2,D=k.fontSize),"fontWeight"in k&&n(3,S=k.fontWeight),"textAnchor"in k&&n(4,O=k.textAnchor),"backdrop"in k&&n(5,q=k.backdrop),"backdropHeight"in k&&n(6,Q=k.backdropHeight),"icon"in k&&n(7,W=k.icon),"config"in k&&n(17,z=k.config),"label"in k&&n(8,N=k.label),"$$scope"in k&&n(19,a=k.$$scope)},o.$$.update=()=>{o.$$.dirty&65536&&n(10,[t,l]=c,t,(n(15,l),n(16,c))),o.$$.dirty&131200&&n(11,r=W&&z),o.$$.dirty&262656&&n(12,i=(n(18,m=C==null?void 0:C.getBBox())===null||m===void 0?void 0:m.width)||0),o.$$.dirty&6144&&n(14,s=r?i+36:i+12),o.$$.dirty&134160&&n(13,f=r&&O==="start"?t+z.radius*2:t)},[_,h,D,S,O,q,Q,W,N,C,t,r,i,f,s,l,c,z,m,a,u,V]}class At extends ue{constructor(e){super(),ce(this,e,Ro,Fo,se,{point:16,category:0,status:1,fontSize:2,fontWeight:3,textAnchor:4,backdrop:5,backdropHeight:6,icon:7,config:17,label:8})}}function gn(o,e,n){const t=o.slice();return t[27]=e[n][0],t[28]=e[n][1],t[30]=n,t}function pn(o,e,n){const t=o.slice();t[27]=e[n][0],t[28]=e[n][1],t[30]=n;const l=t[8]+t[30]*Ce;return t[2]=l,t}function Bo(o){let e=ot(o[27])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l[0]&32&&e!==(e=ot(t[27])+"")&&ie(n,e)},d(t){t&&g(n)}}}function _n(o,e){let n,t,l,r;return t=new At({props:{point:[e[16],e[2]],label:!0,$$slots:{default:[Bo]},$$scope:{ctx:e}}}),l=new dl({props:{point:[e[16],e[2]+1.5*e[21]],key:e[27],value:e[28],attributes:e[3],width:e[15]}}),{key:o,first:null,c(){n=ee(),y(t.$$.fragment),y(l.$$.fragment),this.h()},l(i){n=ee(),I(t.$$.fragment,i),I(l.$$.fragment,i),this.h()},h(){this.first=n},m(i,s){v(i,n,s),A(t,i,s),A(l,i,s),r=!0},p(i,s){e=i;const f={};s[0]&65824&&(f.point=[e[16],e[2]]),s[0]&32|s[1]&2&&(f.$$scope={dirty:s,ctx:e}),t.$set(f);const u={};s[0]&65824&&(u.point=[e[16],e[2]+1.5*e[21]]),s[0]&32&&(u.key=e[27]),s[0]&32&&(u.value=e[28]),s[0]&8&&(u.attributes=e[3]),s[0]&32768&&(u.width=e[15]),l.$set(u)},i(i){r||(d(t.$$.fragment,i),d(l.$$.fragment,i),r=!0)},o(i){p(t.$$.fragment,i),p(l.$$.fragment,i),r=!1},d(i){i&&g(n),P(t,i),P(l,i)}}}function hn(o,e){let n,t,l=ot(e[27])+"",r,i,s,f,u;return f=new dl({props:{point:[e[1]+e[20],e[8]+e[30]*e[21]],key:e[27],value:e[28],attributes:e[3],width:e[7]}}),{key:o,first:null,c(){n=M("div"),t=M("div"),r=X(l),i=R(),s=M("div"),y(f.$$.fragment),this.h()},l(a){n=L(a,"DIV",{class:!0,style:!0});var m=H(n);t=L(m,"DIV",{class:!0});var c=H(t);r=Y(c,l),c.forEach(g),i=B(m),s=L(m,"DIV",{class:!0});var _=H(s);I(f.$$.fragment,_),_.forEach(g),m.forEach(g),this.h()},h(){$(t,"class","font-medium leading-3 text-[#C9D9F0]"),$(s,"class","text-wrap break-all leading-4"),$(n,"class","flex flex-col gap-0 text-sm text-white"),Oe(n,"height",2*e[21]+"px"),this.first=n},m(a,m){v(a,n,m),b(n,t),b(t,r),b(n,i),b(n,s),A(f,s,null),u=!0},p(a,m){e=a,(!u||m[0]&16)&&l!==(l=ot(e[27])+"")&&ie(r,l);const c={};m[0]&274&&(c.point=[e[1]+e[20],e[8]+e[30]*e[21]]),m[0]&16&&(c.key=e[27]),m[0]&16&&(c.value=e[28]),m[0]&8&&(c.attributes=e[3]),m[0]&128&&(c.width=e[7]),f.$set(c)},i(a){u||(d(f.$$.fragment,a),u=!0)},o(a){p(f.$$.fragment,a),u=!1},d(a){a&&g(n),P(f)}}}function $n(o){let e,n=o[0].eventList.length,t,l=kn(o);return{c(){e=ke("foreignObject"),l.c(),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);l.l(i),i.forEach(g),this.h()},h(){$(e,"x",o[1]),$(e,"y",o[13]),$(e,"width",o[12]),$(e,"height",o[11])},m(r,i){v(r,e,i),l.m(e,null),t=!0},p(r,i){i[0]&1&&se(n,n=r[0].eventList.length)?(ne(),p(l,1,1,ae),le(),l=kn(r),l.c(),d(l,1),l.m(e,null)):l.p(r,i),(!t||i[0]&2)&&$(e,"x",r[1]),(!t||i[0]&8192)&&$(e,"y",r[13]),(!t||i[0]&4096)&&$(e,"width",r[12]),(!t||i[0]&2048)&&$(e,"height",r[11])},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(e),l.d(r)}}}function kn(o){let e,n;return e=new Io({props:{namespace:o[18],workflowId:o[9].attributes.workflowExecution.workflowId,runId:o[9].attributes.workflowExecution.runId,height:o[11],width:o[12],class:"overflow-x-hidden rounded-br rounded-tr border-b-2 border-r-2 border-t-2 border-subtle bg-primary"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&262144&&(r.namespace=t[18]),l[0]&512&&(r.workflowId=t[9].attributes.workflowExecution.workflowId),l[0]&512&&(r.runId=t[9].attributes.workflowExecution.runId),l[0]&2048&&(r.height=t[11]),l[0]&4096&&(r.width=t[12]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Go(o){var fe,pe,Fe,Ue;let e,n,t,l,r,i,s,f=(o[19]?rt(o[19]):o[0].label)+"",u,a,m,c,_,h=xe({start:(pe=(fe=o[0])==null?void 0:fe.initialEvent)==null?void 0:pe.eventTime,end:(Ue=(Fe=o[0])==null?void 0:Fe.lastEvent)==null?void 0:Ue.eventTime,includeMilliseconds:!0})+"",D,S,O,q=U("common.close")+"",Q,W,z,N=[],C=new Map,V,k,w=[],T=new Map,E,j,F,te,Z;n=new sn({props:{point:[o[1],o[2]],width:o[7],height:o[17],fill:"#465A78"}}),t=new sn({props:{point:[o[1],o[2]],width:o[7],height:o[22],fill:"#1E293B"}}),W=new Ie({props:{name:"close"}});let x=he(o[5]);const ge=J=>J[27];for(let J=0;JJ[27];for(let J=0;J{G=null}),le())},i(J){if(!F){d(n.$$.fragment,J),d(t.$$.fragment,J),d(W.$$.fragment,J);for(let K=0;Kn(25,z=F));let{group:N}=e,{canvasWidth:C}=e,{x:V=0}=e,{y:k}=e;const{gutter:w,fontSizeRatio:T,height:E}=nl,j=()=>il(N);return o.$$set=F=>{"group"in F&&n(0,N=F.group),"canvasWidth"in F&&n(23,C=F.canvasWidth),"x"in F&&n(1,V=F.x),"y"in F&&n(2,k=F.y)},o.$$.update=()=>{o.$$.dirty[0]&1&&n(19,t=(N==null?void 0:N.finalClassification)||(N==null?void 0:N.classification)||(N==null?void 0:N.label)),o.$$.dirty[0]&1&&N!=null&&N.pendingActivity&&(N.pendingActivity.attempt>1?n(19,t="Retrying"):n(19,t="Pending")),o.$$.dirty[0]&33554432&&n(18,{namespace:l}=z.params,l),o.$$.dirty[0]&8388608&&n(7,r=C),o.$$.dirty[0]&129&&n(17,i=ll(N,r)),o.$$.dirty[0]&128&&n(24,s=r>=960),o.$$.dirty[0]&16777346&&n(16,f=V+w+(s?.666*r:.5*r)),o.$$.dirty[0]&16777344&&n(15,u=(s?.333*r:.5*r)-2*w),o.$$.dirty[0]&4&&n(8,a=E+k+T),o.$$.dirty[0]&1&&n(3,O=Al(N)),o.$$.dirty[0]&8&&n(4,Q=Object.entries(O).filter(([,F])=>typeof F!="object")),o.$$.dirty[0]&16777232&&n(6,m=T*Q.length*(s?1:2)+T),o.$$.dirty[0]&16777344&&n(14,c=(s?.666*r:.5*r)-w),o.$$.dirty[0]&320&&n(13,_=a+m),o.$$.dirty[0]&16777344&&n(12,h=s?.666*r:.5*r),o.$$.dirty[0]&8&&n(5,q=Object.entries(O).filter(([,F])=>typeof F=="object")),o.$$.dirty[0]&96&&n(11,D=Math.max(Pl,Ce*q.length-m)),o.$$.dirty[0]&1&&n(10,S=N.displayName),o.$$.dirty[0]&1&&n(9,W=N&&N.eventList.find(Hl))},[N,V,k,O,Q,q,m,r,a,W,S,D,h,_,c,u,f,i,l,t,w,T,E,C,s,z,j]}class Lo extends ue{constructor(e){super(),ce(this,e,Mo,Go,se,{group:0,canvasWidth:23,x:1,y:2},null,[-1,-1])}}function wn(o,e,n){const t=o.slice();t[8]=e[n],t[12]=n;const l=t[0]+t[12]*t[5];t[9]=l;const r=t[1]+t[6]*2;return t[10]=r,t}function zo(o){let e,n;return e=new Se({props:{strokeWidth:.5,startPoint:[o[9],0],endPoint:[o[9],o[1]]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.startPoint=[t[9],0]),l&35&&(r.endPoint=[t[9],t[1]]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Uo(o){let e,n=xe({start:o[2],end:new Date(new Date(o[2].toString()).getTime()+o[3]/Ne*o[12]),includeMilliseconds:o[3]/Ne<1e3})+"",t,l,r,i;return{c(){e=ke("text"),t=X(n),this.h()},l(s){e=we(s,"text",{fill:!0,"font-size":!0,transform:!0,x:!0,y:!0,class:!0});var f=H(e);t=Y(f,n),f.forEach(g),this.h()},h(){$(e,"fill","#fff"),$(e,"font-size","12"),$(e,"transform",l="rotate(90, "+o[9]+", "+o[10]+")"),$(e,"x",r=o[9]-o[6]),$(e,"y",i=o[10]),$(e,"class","svelte-1huxcs7")},m(s,f){v(s,e,f),b(e,t)},p(s,f){f&12&&n!==(n=xe({start:s[2],end:new Date(new Date(s[2].toString()).getTime()+s[3]/Ne*s[12]),includeMilliseconds:s[3]/Ne<1e3})+"")&&ie(t,n),f&35&&l!==(l="rotate(90, "+s[9]+", "+s[10]+")")&&$(e,"transform",l),f&33&&r!==(r=s[9]-s[6])&&$(e,"x",r),f&2&&i!==(i=s[10])&&$(e,"y",i)},d(s){s&&g(e)}}}function bn(o){let e,n,t,l=o[12]!==0&&zo(o),r=o[12]!==0&&Uo(o);return{c(){l&&l.c(),e=R(),r&&r.c(),n=ee()},l(i){l&&l.l(i),e=B(i),r&&r.l(i),n=ee()},m(i,s){l&&l.m(i,s),v(i,e,s),r&&r.m(i,s),v(i,n,s),t=!0},p(i,s){i[12]!==0&&l.p(i,s),i[12]!==0&&r.p(i,s)},i(i){t||(d(l),t=!0)},o(i){p(l),t=!1},d(i){i&&(g(e),g(n)),l&&l.d(i),r&&r.d(i)}}}function qo(o){let e,n,t,l;e=new Se({props:{strokeWidth:o[6]/2,startPoint:[o[0],o[1]],endPoint:[o[0]+o[4],o[1]]}});let r=he(Array(Ne)),i=[];for(let f=0;fp(i[f],1,1,()=>{i[f]=null});return{c(){y(e.$$.fragment),n=R();for(let f=0;f{"x1"in m&&n(0,r=m.x1),"x2"in m&&n(7,i=m.x2),"timelineHeight"in m&&n(1,s=m.timelineHeight),"startTime"in m&&n(2,f=m.startTime),"duration"in m&&n(3,u=m.duration)},o.$$.update=()=>{o.$$.dirty&129&&n(4,t=i-r),o.$$.dirty&16&&n(5,l=t/Ne)},[r,s,f,u,t,l,a,i]}class Jo extends ue{constructor(e){super(),ce(this,e,Qo,qo,se,{x1:0,x2:7,timelineHeight:1,startTime:2,duration:3})}}function vn(o,e,n){const t=o.slice();t[20]=e[n],t[24]=n;const l=t[7][t[24]+1];t[21]=l;const r=t[5]===t[24];return t[22]=r,t}function En(o){let e,n;return e=new Se({props:{startPoint:[o[20],o[0]],endPoint:[o[21],o[0]],category:o[1].category,classification:o[1].lastEvent.classification,strokeWidth:o[11]*2,scheduling:o[24]===0&&o[1].lastEvent.classification==="Completed"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&129&&(r.startPoint=[t[20],t[0]]),l&129&&(r.endPoint=[t[21],t[0]]),l&2&&(r.category=t[1].category),l&2&&(r.classification=t[1].lastEvent.classification),l&2&&(r.scheduling=t[24]===0&&t[1].lastEvent.classification==="Completed"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Tn(o){let e,n;return e=new Se({props:{startPoint:[o[20],o[0]],endPoint:[o[2]-o[10],o[0]],category:o[8]?o[8].attempt>1?"retry":"pending":o[1].category,classification:o[1].lastEvent.classification,pending:!0,strokeWidth:o[11]*2}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&129&&(r.startPoint=[t[20],t[0]]),l&5&&(r.endPoint=[t[2]-t[10],t[0]]),l&258&&(r.category=t[8]?t[8].attempt>1?"retry":"pending":t[1].category),l&2&&(r.classification=t[1].lastEvent.classification),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function yn(o){let e,n,t,l;const r=[Yo,Xo],i=[];function s(f,u){return f[8]?0:1}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Xo(o){let e,n;return e=new At({props:{point:o[4],textAnchor:o[6],backdrop:o[3],backdropHeight:o[11]*2,config:Ve,$$slots:{default:[Ko]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.point=t[4]),l&64&&(r.textAnchor=t[6]),l&8&&(r.backdrop=t[3]),l&33554434&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Yo(o){let e=o[8].attempt,n,t,l=In(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&256&&se(e,e=r[8].attempt)?(ne(),p(l,1,1,ae),le(),l=In(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Ko(o){var l;let e=((l=o[1])==null?void 0:l.displayName)+"",n,t;return{c(){n=X(e),t=R()},l(r){n=Y(r,e),t=B(r)},m(r,i){v(r,n,i),v(r,t,i)},p(r,i){var s;i&2&&e!==(e=((s=r[1])==null?void 0:s.displayName)+"")&&ie(n,e)},d(r){r&&(g(n),g(t))}}}function Zo(o){var _;let e=((_=o[1])==null?void 0:_.displayName)+"",n,t,l=U("workflows.attempt")+"",r,i,s=o[8].attempt+"",f,u,a=(o[8].maximumAttempts||"∞")+"",m,c;return{c(){n=X(e),t=X(" • "),r=X(l),i=R(),f=X(s),u=X(" / "),m=X(a),c=R()},l(h){n=Y(h,e),t=Y(h," • "),r=Y(h,l),i=B(h),f=Y(h,s),u=Y(h," / "),m=Y(h,a),c=B(h)},m(h,D){v(h,n,D),v(h,t,D),v(h,r,D),v(h,i,D),v(h,f,D),v(h,u,D),v(h,m,D),v(h,c,D)},p(h,D){var S;D&2&&e!==(e=((S=h[1])==null?void 0:S.displayName)+"")&&ie(n,e),D&256&&s!==(s=h[8].attempt+"")&&ie(f,s),D&256&&a!==(a=(h[8].maximumAttempts||"∞")+"")&&ie(m,a)},d(h){h&&(g(n),g(t),g(r),g(i),g(f),g(u),g(m),g(c))}}}function In(o){let e,n;return e=new At({props:{point:o[4],textAnchor:o[6],backdrop:o[3],backdropHeight:o[11]*2,config:Ve,icon:"retry",$$slots:{default:[Zo]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.point=t[4]),l&64&&(r.textAnchor=t[6]),l&8&&(r.backdrop=t[3]),l&33554690&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function An(o){var u;let e,n,t,l,r,i=o[21]&&En(o),s=!o[21]&&o[1].isPending&&Tn(o),f=o[22]&&yn(o);return l=new gt({props:{point:[o[20],o[0]],classification:(u=o[1].eventList[o[24]])==null?void 0:u.classification,icon:Ye[o[1].category],r:o[11]}}),{c(){i&&i.c(),e=ee(),s&&s.c(),n=ee(),f&&f.c(),t=ee(),y(l.$$.fragment)},l(a){i&&i.l(a),e=ee(),s&&s.l(a),n=ee(),f&&f.l(a),t=ee(),I(l.$$.fragment,a)},m(a,m){i&&i.m(a,m),v(a,e,m),s&&s.m(a,m),v(a,n,m),f&&f.m(a,m),v(a,t,m),A(l,a,m),r=!0},p(a,m){var _;a[21]?i?(i.p(a,m),m&128&&d(i,1)):(i=En(a),i.c(),d(i,1),i.m(e.parentNode,e)):i&&(ne(),p(i,1,1,()=>{i=null}),le()),!a[21]&&a[1].isPending?s?(s.p(a,m),m&130&&d(s,1)):(s=Tn(a),s.c(),d(s,1),s.m(n.parentNode,n)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),a[22]?f?(f.p(a,m),m&32&&d(f,1)):(f=yn(a),f.c(),d(f,1),f.m(t.parentNode,t)):f&&(ne(),p(f,1,1,()=>{f=null}),le());const c={};m&129&&(c.point=[a[20],a[0]]),m&2&&(c.classification=(_=a[1].eventList[a[24]])==null?void 0:_.classification),m&2&&(c.icon=Ye[a[1].category]),l.$set(c)},i(a){r||(d(i),d(s),d(f),d(l.$$.fragment,a),r=!0)},o(a){p(i),p(s),p(f),p(l.$$.fragment,a),r=!1},d(a){a&&(g(e),g(n),g(t)),i&&i.d(a),s&&s.d(a),f&&f.d(a),P(l,a)}}}function xo(o){let e,n,t,l,r=he(o[7]),i=[];for(let f=0;fp(i[f],1,1,()=>{i[f]=null});return{c(){e=ke("g");for(let f=0;f{const w=wt({start:_,end:C,onlyUnderSecond:!1}),T=m.eventList.map(Z=>{const ge=wt({start:_,end:Z.eventTime,onlyUnderSecond:!1})/w;return Math.round(ge*V)+Q}),{textAnchor:E,textIndex:j,textPosition:F,backdrop:te}=Wl(T,k,V,m.isPending,Ve);return{points:T,textAnchor:E,textIndex:j,textPosition:F,backdrop:te}},N=()=>{O||il(m)};return o.$$set=C=>{"y"in C&&n(0,a=C.y),"group"in C&&n(1,m=C.group),"activeGroups"in C&&n(14,c=C.activeGroups),"startTime"in C&&n(15,_=C.startTime),"endTime"in C&&n(16,h=C.endTime),"canvasWidth"in C&&n(2,D=C.canvasWidth),"active"in C&&n(13,S=C.active),"readOnly"in C&&n(17,O=C.readOnly)},o.$$.update=()=>{o.$$.dirty&4&&n(18,t=D-2*Q),o.$$.dirty&16386&&n(13,S=!c.length||c.includes(m.id)),o.$$.dirty&2&&n(8,l=m==null?void 0:m.pendingActivity),o.$$.dirty&327681&&n(7,{points:r,textAnchor:i,textIndex:s,textPosition:f,backdrop:u}=z(h,t,a),r,(n(6,i),n(16,h),n(18,t),n(0,a),n(2,D)),(n(5,s),n(16,h),n(18,t),n(0,a),n(2,D)),(n(4,f),n(16,h),n(18,t),n(0,a),n(2,D)),(n(3,u),n(16,h),n(18,t),n(0,a),n(2,D)))},[a,m,D,u,f,s,i,r,l,q,Q,W,N,S,c,_,h,O,t]}class ti extends ue{constructor(e){super(),ce(this,e,ei,xo,se,{y:0,group:1,activeGroups:14,startTime:15,endTime:16,canvasWidth:2,active:13,readOnly:17})}}function ni(o){let e,n,t,l,r,i,s;return n=new Se({props:{startPoint:[o[2],o[1]],endPoint:[o[3],o[1]],classification:o[0].status,strokeWidth:o[4]*2,pending:o[0].isRunning}}),t=new gt({props:{point:[o[2],o[1]],classification:o[0].status,r:o[4]}}),l=new Ie({props:{name:"workflow",x:o[2]-o[4]/2,y:o[1]-o[4]/2,width:o[4],height:o[4],strokeWidth:"4",class:"text-black"}}),r=new gt({props:{point:[o[3],o[1]],classification:o[0].status,r:o[4]}}),i=new Ie({props:{name:"workflow",x:o[3]-o[4]/2,y:o[1]-o[4]/2,width:o[4],height:o[4],strokeWidth:"4",class:"text-black"}}),{c(){e=ke("g"),y(n.$$.fragment),y(t.$$.fragment),y(l.$$.fragment),y(r.$$.fragment),y(i.$$.fragment),this.h()},l(f){e=we(f,"g",{role:!0,tabindex:!0,class:!0,height:!0});var u=H(e);I(n.$$.fragment,u),I(t.$$.fragment,u),I(l.$$.fragment,u),I(r.$$.fragment,u),I(i.$$.fragment,u),u.forEach(g),this.h()},h(){$(e,"role","button"),$(e,"tabindex","0"),$(e,"class","relative cursor-pointer svelte-k9v32"),$(e,"height",o[5])},m(f,u){v(f,e,u),A(n,e,null),A(t,e,null),A(l,e,null),A(r,e,null),A(i,e,null),s=!0},p(f,[u]){const a={};u&6&&(a.startPoint=[f[2],f[1]]),u&10&&(a.endPoint=[f[3],f[1]]),u&1&&(a.classification=f[0].status),u&1&&(a.pending=f[0].isRunning),n.$set(a);const m={};u&6&&(m.point=[f[2],f[1]]),u&1&&(m.classification=f[0].status),t.$set(m);const c={};u&4&&(c.x=f[2]-f[4]/2),u&2&&(c.y=f[1]-f[4]/2),l.$set(c);const _={};u&10&&(_.point=[f[3],f[1]]),u&1&&(_.classification=f[0].status),r.$set(_);const h={};u&8&&(h.x=f[3]-f[4]/2),u&2&&(h.y=f[1]-f[4]/2),i.$set(h)},i(f){s||(d(n.$$.fragment,f),d(t.$$.fragment,f),d(l.$$.fragment,f),d(r.$$.fragment,f),d(i.$$.fragment,f),s=!0)},o(f){p(n.$$.fragment,f),p(t.$$.fragment,f),p(l.$$.fragment,f),p(r.$$.fragment,f),p(i.$$.fragment,f),s=!1},d(f){f&&g(e),P(n),P(t),P(l),P(r),P(i)}}}function li(o,e,n){let t,l,{workflow:r}=e,{length:i}=e,{y:s}=e;const{radius:f,height:u,gutter:a}=Ve;return o.$$set=m=>{"workflow"in m&&n(0,r=m.workflow),"length"in m&&n(6,i=m.length),"y"in m&&n(1,s=m.y)},o.$$.update=()=>{o.$$.dirty&68&&n(3,l=t+i-2*a)},n(2,t=a),[r,s,t,l,f,u,i]}class ri extends ue{constructor(e){super(),ce(this,e,li,ni,se,{workflow:0,length:6,y:1})}}function Pn(o,e,n){const t=o.slice();t[28]=e[n],t[30]=n;const l=(t[30]+2)*t[15]+Cl(t[2],t[28],t[8],t[6],t[14]);return t[5]=l,t}function oi(o){let e,n;return e=new Ie({props:{name:o[9]===360?"chevron-down":"chevron-up",x:o[6]-2*o[17],y:o[17]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&512&&(r.name=t[9]===360?"chevron-down":"chevron-up"),l[0]&64&&(r.x=t[6]-2*t[17]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Wn(o){let e=o[28].eventList.length,n,t,l=Dn(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i[0]&256&&se(e,e=r[28].eventList.length)?(ne(),p(l,1,1,ae),le(),l=Dn(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Dn(o){let e,n;return e=new ti({props:{y:o[5],group:o[28],activeGroups:o[2],canvasWidth:o[6],startTime:o[12],endTime:o[26],readOnly:o[3]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&16708&&(r.y=t[5]),l[0]&256&&(r.group=t[28]),l[0]&4&&(r.activeGroups=t[2]),l[0]&64&&(r.canvasWidth=t[6]),l[0]&4096&&(r.startTime=t[12]),l[0]&67108864&&(r.endTime=t[26]),l[0]&8&&(r.readOnly=t[3]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Cn(o){let e,n;return e=new Lo({props:{y:o[5]+1.33*o[17],group:o[28],canvasWidth:o[6]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&16708&&(r.y=t[5]+1.33*t[17]),l[0]&256&&(r.group=t[28]),l[0]&64&&(r.canvasWidth=t[6]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Sn(o,e){let n,t,l=e[2].includes(e[28].id),r,i,s=e[5]>e[10]-2*e[15]&&e[5]e[10]-2*e[15]&&e[5]{s=null}),le()),a[0]&260&&(l=e[2].includes(e[28].id)),l?f?(f.p(e,a),a[0]&260&&d(f,1)):(f=Cn(e),f.c(),d(f,1),f.m(r.parentNode,r)):f&&(ne(),p(f,1,1,()=>{f=null}),le())},i(u){i||(d(s),d(f),i=!0)},o(u){p(s),p(f),i=!1},d(u){u&&(g(n),g(t),g(r)),s&&s.d(u),f&&f.d(u)}}}function ii(o){let e,n,t,l,r,i=de(o[12],o[13])+"",s,f,u,a=de(o[26],o[13])+"",m,c,_,h,D,S,O,q,Q=[],W=new Map,z,N;e=new er({props:{size:"xs",variant:"ghost",class:"sticky left-0.5 top-1",$$slots:{default:[oi]},$$scope:{ctx:o}}}),e.$on("click",o[18]),D=new Se({props:{startPoint:[o[16],0],endPoint:[o[16],o[7]],strokeWidth:o[17]/2}}),S=new Se({props:{startPoint:[o[6]-o[16],0],endPoint:[o[6]-o[16],o[7]],strokeWidth:o[17]/2}}),O=new Jo({props:{x1:o[16]-o[17]/4,x2:o[6]-o[16]+o[17]/4,timelineHeight:o[7],startTime:o[12],duration:o[27]}}),q=new ri({props:{workflow:o[1],y:o[15],length:o[6]}});let C=he(o[8]);const V=k=>k[28].id;for(let k=0;k({26:s,27:f}),({endTime:s,duration:f})=>[(s?67108864:0)|(f?134217728:0)]]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(s){e=L(s,"DIV",{class:!0,style:!0});var f=H(e);I(n.$$.fragment,f),f.forEach(g),this.h()},h(){$(e,"class","relative h-auto overflow-auto border-b-2 border-subtle"),Oe(e,"max-height",o[9]+"px"),tl(()=>o[25].call(e))},m(s,f){v(s,e,f),A(n,e,null),t=kl(e,o[25].bind(e)),l=!0,r||(i=Ge(e,"scroll",o[19]),r=!0)},p(s,f){const u={};f[0]&2&&(u.workflow=s[1]),f[0]&4096&&(u.startTime=s[12]),f[0]&201359359|f[1]&1&&(u.$$scope={dirty:f,ctx:s}),n.$set(u),(!l||f[0]&512)&&Oe(e,"max-height",s[9]+"px")},i(s){l||(d(n.$$.fragment,s),l=!0)},o(s){p(n.$$.fragment,s),l=!1},d(s){s&&g(e),P(n),t(),r=!1,i()}}}function fi(o,e,n){let t,l,r,i,s,f,u,a,m;oe(o,Tt,j=>n(23,f=j)),oe(o,$t,j=>n(24,u=j)),oe(o,lt,j=>n(13,a=j)),oe(o,Xe,j=>n(14,m=j));var c;let{x:_=0}=e,{y:h=0}=e,{workflow:D}=e,{groups:S}=e,{activeGroups:O=[]}=e,{readOnly:q=!1}=e,{workflowTaskFailedError:Q=void 0}=e;const{height:W,gutter:z,radius:N}=Ve;let C=0,V=360,k=0;const w=()=>{V===360?n(9,V=800):n(9,V=360)},T=j=>{var F;n(10,k=(F=j==null?void 0:j.target)===null||F===void 0?void 0:F.scrollTop)};function E(){C=this.clientWidth,n(6,C)}return o.$$set=j=>{"x"in j&&n(0,_=j.x),"y"in j&&n(5,h=j.y),"workflow"in j&&n(1,D=j.workflow),"groups"in j&&n(20,S=j.groups),"activeGroups"in j&&n(2,O=j.activeGroups),"readOnly"in j&&n(3,q=j.readOnly),"workflowTaskFailedError"in j&&n(4,Q=j.workflowTaskFailedError)},o.$$.update=()=>{o.$$.dirty[0]&17825792&&n(8,t=Dl(S,u)),o.$$.dirty[0]&10485762&&n(12,l=(n(21,c=f[0])===null||c===void 0?void 0:c.eventTime)||D.startTime),o.$$.dirty[0]&324&&n(22,r=O.map(j=>{const F=t.find(te=>te.id===j);return F?ll(F,C):0}).reduce((j,F)=>j+F,0)),o.$$.dirty[0]&4194560&&n(7,i=Math.max(W*(t.length+2),120)+r),o.$$.dirty[0]&128&&n(11,s=i+140)},[_,D,O,q,Q,h,C,i,t,V,k,s,l,a,m,W,z,N,w,T,S,c,r,f,u,E]}class gl extends ue{constructor(e){super(),ce(this,e,fi,si,se,{x:0,y:5,workflow:1,groups:20,activeGroups:2,readOnly:3,workflowTaskFailedError:4},null,[-1,-1])}}function Nn(o){let e,n=U("common.attempt")+"",t,l,r,i=o[0].attempt+"",s;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),s=X(i),this.h()},l(f){e=L(f,"P",{});var u=H(e);t=Y(u,n),l=B(u),r=L(u,"SPAN",{class:!0});var a=H(r);s=Y(a,i),a.forEach(g),u.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(f,u){v(f,e,u),b(e,t),b(e,l),b(e,r),b(r,s)},p(f,u){u&1&&i!==(i=f[0].attempt+"")&&ie(s,i)},d(f){f&&g(e)}}}function jn(o){let e,n=U("nexus.last-attempt-completed-time")+"",t,l,r,i;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),i=X(o[4]),this.h()},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),l=B(f),r=L(f,"SPAN",{class:!0});var u=H(r);i=Y(u,o[4]),u.forEach(g),f.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(s,f){v(s,e,f),b(e,t),b(e,l),b(e,r),b(r,i)},p(s,f){f&16&&ie(i,s[4])},d(s){s&&g(e)}}}function On(o){let e,n=U("nexus.next-attempt-scheduled-time")+"",t,l,r,i;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),i=X(o[3]),this.h()},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),l=B(f),r=L(f,"SPAN",{class:!0});var u=H(r);i=Y(u,o[3]),u.forEach(g),f.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(s,f){v(s,e,f),b(e,t),b(e,l),b(e,r),b(r,i)},p(s,f){f&8&&ie(i,s[3])},d(s){s&&g(e)}}}function Vn(o){let e,n,t=U("nexus.last-attempt-failure")+"",l,r,i,s;return i=new Ae({props:{content:o[2],language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),this.h()},l(f){e=L(f,"DIV",{class:!0});var u=H(e);n=L(u,"P",{});var a=H(n);l=Y(a,t),a.forEach(g),r=B(u),I(i.$$.fragment,u),u.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-2")},m(f,u){v(f,e,u),b(e,n),b(n,l),b(e,r),A(i,e,null),s=!0},p(f,u){const a={};u&4&&(a.content=f[2]),i.$set(a)},i(f){s||(d(i.$$.fragment,f),s=!0)},o(f){p(i.$$.fragment,f),s=!1},d(f){f&&g(e),P(i)}}}function ai(o){let e,n,t,l=U("common.url")+"",r,i,s,f=o[0].callback.nexus.url+"",u,a,m,c,_=U("common.state")+"",h,D,S,O=o[0].state+"",q,Q,W,z,N,C,V=o[0].attempt&&Nn(o),k=o[0].lastAttemptCompleteTime&&jn(o),w=o[0].nextAttemptScheduleTime&&On(o),T=o[2]&&Vn(o);return{c(){e=M("div"),n=M("div"),t=M("p"),r=X(l),i=R(),s=M("span"),u=X(f),a=R(),m=M("div"),c=M("p"),h=X(_),D=R(),S=M("span"),q=X(O),Q=R(),V&&V.c(),W=R(),k&&k.c(),z=R(),w&&w.c(),N=R(),T&&T.c(),this.h()},l(E){e=L(E,"DIV",{class:!0});var j=H(e);n=L(j,"DIV",{class:!0});var F=H(n);t=L(F,"P",{});var te=H(t);r=Y(te,l),i=B(te),s=L(te,"SPAN",{class:!0});var Z=H(s);u=Y(Z,f),Z.forEach(g),te.forEach(g),F.forEach(g),a=B(j),m=L(j,"DIV",{class:!0});var x=H(m);c=L(x,"P",{});var ge=H(c);h=Y(ge,_),D=B(ge),S=L(ge,"SPAN",{class:!0});var re=H(S);q=Y(re,O),re.forEach(g),ge.forEach(g),Q=B(x),V&&V.l(x),W=B(x),k&&k.l(x),z=B(x),w&&w.l(x),x.forEach(g),N=B(j),T&&T.l(j),j.forEach(g),this.h()},h(){$(s,"class","badge svelte-o7lh0s"),$(n,"class","flex items-center gap-2"),$(S,"class","badge svelte-o7lh0s"),$(m,"class","flex flex-col items-start gap-2 md:flex-row md:items-center"),$(e,"class","flex flex-col gap-2 pt-2")},m(E,j){v(E,e,j),b(e,n),b(n,t),b(t,r),b(t,i),b(t,s),b(s,u),b(e,a),b(e,m),b(m,c),b(c,h),b(c,D),b(c,S),b(S,q),b(m,Q),V&&V.m(m,null),b(m,W),k&&k.m(m,null),b(m,z),w&&w.m(m,null),b(e,N),T&&T.m(e,null),C=!0},p(E,j){(!C||j&1)&&f!==(f=E[0].callback.nexus.url+"")&&ie(u,f),(!C||j&1)&&O!==(O=E[0].state+"")&&ie(q,O),E[0].attempt?V?V.p(E,j):(V=Nn(E),V.c(),V.m(m,W)):V&&(V.d(1),V=null),E[0].lastAttemptCompleteTime?k?k.p(E,j):(k=jn(E),k.c(),k.m(m,z)):k&&(k.d(1),k=null),E[0].nextAttemptScheduleTime?w?w.p(E,j):(w=On(E),w.c(),w.m(m,null)):w&&(w.d(1),w=null),E[2]?T?(T.p(E,j),j&4&&d(T,1)):(T=Vn(E),T.c(),d(T,1),T.m(e,null)):T&&(ne(),p(T,1,1,()=>{T=null}),le())},i(E){C||(d(T),C=!0)},o(E){p(T),C=!1},d(E){E&&g(e),V&&V.d(),k&&k.d(),w&&w.d(),T&&T.d()}}}function ui(o){let e,n;return e=new yt({props:{icon:"nexus",intent:"info",title:o[1],$$slots:{default:[ai]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&2&&(r.title=t[1]),l&285&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ci(o,e,n){let t,l,r,i,s;oe(o,lt,m=>n(6,s=m));var f;let{callback:u}=e;const a={Standby:U("nexus.callback.standby"),Scheduled:U("nexus.callback.scheduled"),"Backing Off":U("nexus.callback.backing-off"),Failed:U("nexus.callback.failed"),Succeeded:U("nexus.callback.succeeded")};return o.$$set=m=>{"callback"in m&&n(0,u=m.callback)},o.$$.update=()=>{o.$$.dirty&65&&n(4,t=de(u.lastAttemptCompleteTime,s)),o.$$.dirty&65&&n(3,l=de(u.nextAttemptScheduleTime,s)),o.$$.dirty&33&&n(2,r=n(5,f=u==null?void 0:u.lastAttemptFailure)===null||f===void 0?void 0:f.message),o.$$.dirty&1&&n(1,i=a[u.state]||U("nexus.nexus-callback"))},[u,i,r,l,t,f,s]}class mi extends ue{constructor(e){super(),ce(this,e,ci,ui,se,{callback:0})}}function di(o){let e,n,t,l,r,i,s=o[0]&&Hn(o),f=o[5]&&Fn(o);const u=[_i,pi],a=[];function m(c,_){return c[4]?0:1}return t=m(o),l=a[t]=u[t](o),{c(){s&&s.c(),e=R(),f&&f.c(),n=R(),l.c(),r=ee()},l(c){s&&s.l(c),e=B(c),f&&f.l(c),n=B(c),l.l(c),r=ee()},m(c,_){s&&s.m(c,_),v(c,e,_),f&&f.m(c,_),v(c,n,_),a[t].m(c,_),v(c,r,_),i=!0},p(c,_){c[0]?s?s.p(c,_):(s=Hn(c),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c[5]?f?(f.p(c,_),_&32&&d(f,1)):(f=Fn(c),f.c(),d(f,1),f.m(n.parentNode,n)):f&&(ne(),p(f,1,1,()=>{f=null}),le());let h=t;t=m(c),t===h?a[t].p(c,_):(ne(),p(a[h],1,1,()=>{a[h]=null}),le(),l=a[t],l?l.p(c,_):(l=a[t]=u[t](c),l.c()),d(l,1),l.m(r.parentNode,r))},i(c){i||(d(f),d(l),i=!0)},o(c){p(f),p(l),i=!1},d(c){c&&(g(e),g(n),g(r)),s&&s.d(c),f&&f.d(c),a[t].d(c)}}}function gi(o){let e,n;return e=new ir({props:{copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),content:o[1],visible:!0,"container-class":"gap-1 w-full h-4",$$slots:{default:[Ei]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.content=t[1]),l&379&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Hn(o){let e;return{c(){e=X(o[0])},l(n){e=Y(n,o[0])},m(n,t){v(n,e,t)},p(n,t){t&1&&ie(e,n[0])},d(n){n&&g(e)}}}function Fn(o){let e,n;return e=new Ie({props:{name:o[5]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.name=t[5]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function pi(o){let e,n;return e=new cl({props:{text:o[6],hide:!o[6],top:!0,$$slots:{default:[hi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&64&&(r.text=t[6]),l&64&&(r.hide=!t[6]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function _i(o){let e,n;return e=new It({props:{href:o[4],class:"value",$$slots:{default:[$i]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.href=t[4]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function hi(o){let e,n;return{c(){e=M("span"),n=X(o[1]),this.h()},l(t){e=L(t,"SPAN",{class:!0});var l=H(e);n=Y(l,o[1]),l.forEach(g),this.h()},h(){$(e,"class","surface-subtle w-fit select-all truncate rounded-sm p-1 leading-4")},m(t,l){v(t,e,l),b(e,n)},p(t,l){l&2&&ie(n,t[1])},d(t){t&&g(e)}}}function $i(o){let e;return{c(){e=X(o[1])},l(n){e=Y(n,o[1])},m(n,t){v(n,e,t)},p(n,t){t&2&&ie(e,n[1])},d(n){n&&g(e)}}}function Rn(o){let e,n;return e=new Ie({props:{name:o[5]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.name=t[5]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Bn(o){let e;return{c(){e=X(o[0])},l(n){e=Y(n,o[0])},m(n,t){v(n,e,t)},p(n,t){t&1&&ie(e,n[0])},d(n){n&&g(e)}}}function ki(o){let e,n;return e=new cl({props:{text:o[6],hide:!o[6],top:!0,$$slots:{default:[bi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&64&&(r.text=t[6]),l&64&&(r.hide=!t[6]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function wi(o){let e,n;return e=new It({props:{href:o[4],class:"surface-subtle flex w-fit flex-row items-center gap-1 truncate rounded-sm p-1 leading-4",$$slots:{default:[vi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.href=t[4]),l&266&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function bi(o){let e,n;return{c(){e=M("span"),n=X(o[1]),this.h()},l(t){e=L(t,"SPAN",{class:!0});var l=H(e);n=Y(l,o[1]),l.forEach(g),this.h()},h(){$(e,"class","surface-subtle w-fit select-all truncate rounded-sm p-1 leading-4")},m(t,l){v(t,e,l),b(e,n)},p(t,l){l&2&&ie(n,t[1])},d(t){t&&g(e)}}}function Gn(o){let e,n;return e=new Ie({props:{name:"filter",class:"shrink-0"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function vi(o){let e,n,t,l,r,i=o[3]&&Gn();return{c(){e=M("span"),n=X(o[1]),t=R(),i&&i.c(),l=ee(),this.h()},l(s){e=L(s,"SPAN",{class:!0});var f=H(e);n=Y(f,o[1]),f.forEach(g),t=B(s),i&&i.l(s),l=ee(),this.h()},h(){$(e,"class","truncate")},m(s,f){v(s,e,f),b(e,n),v(s,t,f),i&&i.m(s,f),v(s,l,f),r=!0},p(s,f){(!r||f&2)&&ie(n,s[1]),s[3]?i?f&8&&d(i,1):(i=Gn(),i.c(),d(i,1),i.m(l.parentNode,l)):i&&(ne(),p(i,1,1,()=>{i=null}),le())},i(s){r||(d(i),r=!0)},o(s){p(i),r=!1},d(s){s&&(g(e),g(t),g(l)),i&&i.d(s)}}}function Ei(o){let e,n,t,l,r,i,s=o[5]&&Rn(o),f=o[0]&&Bn(o);const u=[wi,ki],a=[];function m(c,_){return c[4]?0:1}return t=m(o),l=a[t]=u[t](o),{c(){s&&s.c(),e=R(),f&&f.c(),n=R(),l.c(),r=ee()},l(c){s&&s.l(c),e=B(c),f&&f.l(c),n=B(c),l.l(c),r=ee()},m(c,_){s&&s.m(c,_),v(c,e,_),f&&f.m(c,_),v(c,n,_),a[t].m(c,_),v(c,r,_),i=!0},p(c,_){c[5]?s?(s.p(c,_),_&32&&d(s,1)):(s=Rn(c),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),c[0]?f?f.p(c,_):(f=Bn(c),f.c(),f.m(n.parentNode,n)):f&&(f.d(1),f=null);let h=t;t=m(c),t===h?a[t].p(c,_):(ne(),p(a[h],1,1,()=>{a[h]=null}),le(),l=a[t],l?l.p(c,_):(l=a[t]=u[t](c),l.c()),d(l,1),l.m(r.parentNode,r))},i(c){i||(d(s),d(l),i=!0)},o(c){p(s),p(l),i=!1},d(c){c&&(g(e),g(n),g(r)),s&&s.d(c),f&&f.d(c),a[t].d(c)}}}function Ti(o){let e,n,t,l,r;const i=[gi,di],s=[];function f(u,a){return u[2]?0:1}return n=f(o),t=s[n]=i[n](o),{c(){e=M("p"),t.c(),this.h()},l(u){e=L(u,"P",{class:!0});var a=H(e);t.l(a),a.forEach(g),this.h()},h(){$(e,"class",l="flex items-center gap-2 whitespace-nowrap "+o[7].class)},m(u,a){v(u,e,a),s[n].m(e,null),r=!0},p(u,[a]){let m=n;n=f(u),n===m?s[n].p(u,a):(ne(),p(s[m],1,1,()=>{s[m]=null}),le(),t=s[n],t?t.p(u,a):(t=s[n]=i[n](u),t.c()),d(t,1),t.m(e,null)),(!r||a&128&&l!==(l="flex items-center gap-2 whitespace-nowrap "+u[7].class))&&$(e,"class",l)},i(u){r||(d(t),r=!0)},o(u){p(t),r=!1},d(u){u&&g(e),s[n].d()}}}function yi(o,e,n){const t=["title","content","copyable","filterable","href","icon","tooltip"];let l=Me(e,t),{title:r=""}=e,{content:i}=e,{copyable:s=!1}=e,{filterable:f=!1}=e,{href:u=null}=e,{icon:a=void 0}=e,{tooltip:m=""}=e;return o.$$set=c=>{e=Le(Le({},e),vt(c)),n(7,l=Me(e,t)),"title"in c&&n(0,r=c.title),"content"in c&&n(1,i=c.content),"copyable"in c&&n(2,s=c.copyable),"filterable"in c&&n(3,f=c.filterable),"href"in c&&n(4,u=c.href),"icon"in c&&n(5,a=c.icon),"tooltip"in c&&n(6,m=c.tooltip)},[r,i,s,f,u,a,m,l]}class De extends ue{constructor(e){super(),ce(this,e,yi,Ti,se,{title:0,content:1,copyable:2,filterable:3,href:4,icon:5,tooltip:6})}}function Ii(o){var N,C,V,k,w,T,E,j,F,te,Z,x,ge,re,$e;let e,n,t="Summary",l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q,W,z;return i=new De({props:{title:U("common.start"),tooltip:o[4]?de((N=o[0])==null?void 0:N.startTime,o[5],{relative:!1}):de((C=o[0])==null?void 0:C.startTime,o[5],{relative:!0}),content:de((V=o[0])==null?void 0:V.startTime,o[5],{relative:o[4]}),class:"order-1 text-sm "}}),f=new De({props:{title:U("common.end"),tooltip:o[4]?de((k=o[0])==null?void 0:k.endTime,o[5],{relative:!1}):de((w=o[0])==null?void 0:w.endTime,o[5],{relative:!0}),content:(T=o[0])!=null&&T.endTime?de((E=o[0])==null?void 0:E.endTime,o[5],{relative:o[4]}):"-",class:"order-2 text-sm md:order-3 xl:order-4"}}),a=new De({props:{content:o[2],class:"order-3 text-sm md:order-5 xl:order-7",icon:"clock"}}),c=new De({props:{title:U("common.task-queue"),content:(j=o[0])==null?void 0:j.taskQueue,class:"order-4 text-sm md:order-8",href:qt({namespace:o[1].params.namespace,workflow:(F=o[0])==null?void 0:F.id,run:(te=o[0])==null?void 0:te.runId})}}),h=new De({props:{title:U("common.workflow-type"),content:(Z=o[0])==null?void 0:Z.name,copyable:!0,filterable:!0,class:"order-4 text-sm md:order-2 xl:order-2",href:Qt({namespace:o[3],query:`WorkflowType="${(x=o[0])==null?void 0:x.name}"`})}}),S=new De({props:{title:U("common.run-id"),content:(ge=o[0])==null?void 0:ge.runId,copyable:!0,class:"order-5 text-sm md:order-4 xl:order-5"}}),q=new De({props:{title:U("common.history-size-bytes"),content:(re=o[0])==null?void 0:re.historySizeBytes,class:"order-6 text-sm md:order-6 xl:order-3"}}),W=new De({props:{title:U("workflows.state-transitions"),content:($e=o[0])==null?void 0:$e.stateTransitionCount,class:"order-7 text-sm md:order-8 xl:order-6"}}),{c(){e=M("div"),n=M("h3"),n.textContent=t,l=R(),r=M("div"),y(i.$$.fragment),s=R(),y(f.$$.fragment),u=R(),y(a.$$.fragment),m=R(),y(c.$$.fragment),_=R(),y(h.$$.fragment),D=R(),y(S.$$.fragment),O=R(),y(q.$$.fragment),Q=R(),y(W.$$.fragment),this.h()},l(G){e=L(G,"DIV",{class:!0});var fe=H(e);n=L(fe,"H3",{class:!0,"data-svelte-h":!0}),wl(n)!=="svelte-2oqgqm"&&(n.textContent=t),l=B(fe),r=L(fe,"DIV",{class:!0});var pe=H(r);I(i.$$.fragment,pe),s=B(pe),I(f.$$.fragment,pe),u=B(pe),I(a.$$.fragment,pe),m=B(pe),I(c.$$.fragment,pe),_=B(pe),I(h.$$.fragment,pe),D=B(pe),I(S.$$.fragment,pe),O=B(pe),I(q.$$.fragment,pe),Q=B(pe),I(W.$$.fragment,pe),pe.forEach(g),fe.forEach(g),this.h()},h(){$(n,"class","flex items-center"),$(r,"class","surface-primary grid w-full grid-flow-row grid-cols-1 gap-2 rounded border-2 border-subtle p-2 md:grid-cols-2 xl:grid-cols-3"),$(e,"class","flex flex-col gap-2")},m(G,fe){v(G,e,fe),b(e,n),b(e,l),b(e,r),A(i,r,null),b(r,s),A(f,r,null),b(r,u),A(a,r,null),b(r,m),A(c,r,null),b(r,_),A(h,r,null),b(r,D),A(S,r,null),b(r,O),A(q,r,null),b(r,Q),A(W,r,null),z=!0},p(G,[fe]){var We,Ee,Pe,qe,Re,Te,Pt,Wt,Dt,Ct,St,Nt,jt,Ot,Vt;const pe={};fe&49&&(pe.tooltip=G[4]?de((We=G[0])==null?void 0:We.startTime,G[5],{relative:!1}):de((Ee=G[0])==null?void 0:Ee.startTime,G[5],{relative:!0})),fe&49&&(pe.content=de((Pe=G[0])==null?void 0:Pe.startTime,G[5],{relative:G[4]})),i.$set(pe);const Fe={};fe&49&&(Fe.tooltip=G[4]?de((qe=G[0])==null?void 0:qe.endTime,G[5],{relative:!1}):de((Re=G[0])==null?void 0:Re.endTime,G[5],{relative:!0})),fe&49&&(Fe.content=(Te=G[0])!=null&&Te.endTime?de((Pt=G[0])==null?void 0:Pt.endTime,G[5],{relative:G[4]}):"-"),f.$set(Fe);const Ue={};fe&4&&(Ue.content=G[2]),a.$set(Ue);const J={};fe&1&&(J.content=(Wt=G[0])==null?void 0:Wt.taskQueue),fe&3&&(J.href=qt({namespace:G[1].params.namespace,workflow:(Dt=G[0])==null?void 0:Dt.id,run:(Ct=G[0])==null?void 0:Ct.runId})),c.$set(J);const K={};fe&1&&(K.content=(St=G[0])==null?void 0:St.name),fe&9&&(K.href=Qt({namespace:G[3],query:`WorkflowType="${(Nt=G[0])==null?void 0:Nt.name}"`})),h.$set(K);const me={};fe&1&&(me.content=(jt=G[0])==null?void 0:jt.runId),S.$set(me);const be={};fe&1&&(be.content=(Ot=G[0])==null?void 0:Ot.historySizeBytes),q.$set(be);const ve={};fe&1&&(ve.content=(Vt=G[0])==null?void 0:Vt.stateTransitionCount),W.$set(ve)},i(G){z||(d(i.$$.fragment,G),d(f.$$.fragment,G),d(a.$$.fragment,G),d(c.$$.fragment,G),d(h.$$.fragment,G),d(S.$$.fragment,G),d(q.$$.fragment,G),d(W.$$.fragment,G),z=!0)},o(G){p(i.$$.fragment,G),p(f.$$.fragment,G),p(a.$$.fragment,G),p(c.$$.fragment,G),p(h.$$.fragment,G),p(S.$$.fragment,G),p(q.$$.fragment,G),p(W.$$.fragment,G),z=!1},d(G){G&&g(e),P(i),P(f),P(a),P(c),P(h),P(S),P(q),P(W)}}}function Ai(o,e,n){let t,l,r,i,s,f,u;return oe(o,tt,a=>n(6,i=a)),oe(o,He,a=>n(1,s=a)),oe(o,al,a=>n(4,f=a)),oe(o,lt,a=>n(5,u=a)),o.$$.update=()=>{o.$$.dirty&2&&n(3,{namespace:t}=s.params,t),o.$$.dirty&64&&n(0,{workflow:l}=i,l),o.$$.dirty&1&&n(2,r=xe({start:l==null?void 0:l.startTime,end:(l==null?void 0:l.endTime)||Date.now(),includeMilliseconds:!0}))},[l,s,r,t,f,u,i]}class Pi extends ue{constructor(e){super(),ce(this,e,Ai,Ii,se,{})}}function Wi(o){let e,n;const t=o[1].default,l=st(t,o,o[0],null);return{c(){e=M("div"),l&&l.c(),this.h()},l(r){e=L(r,"DIV",{class:!0});var i=H(e);l&&l.l(i),i.forEach(g),this.h()},h(){$(e,"class","*:rounded-none *:border-t-0 [&>*:first-child]:rounded-t-2xl [&>*:first-child]:border-t-2 [&>*:last-child]:rounded-b-2xl")},m(r,i){v(r,e,i),l&&l.m(e,null),n=!0},p(r,[i]){l&&l.p&&(!n||i&1)&&ft(l,t,r,r[0],n?ut(t,r[0],i,null):at(r[0]),null)},i(r){n||(d(l,r),n=!0)},o(r){p(l,r),n=!1},d(r){r&&g(e),l&&l.d(r)}}}function Di(o,e,n){let{$$slots:t={},$$scope:l}=e;return o.$$set=r=>{"$$scope"in r&&n(0,l=r.$$scope)},[l,t]}class Ci extends ue{constructor(e){super(),ce(this,e,Di,Wi,se,{})}}const Mn=o=>o.eventType==="WorkflowTaskFailed",Si=o=>o.eventType==="WorkflowTaskCompleted",pl=o=>{var t;const{workflowTaskFailedEventAttributes:{failure:e,cause:n}}=o;return((t=e==null?void 0:e.applicationFailureInfo)==null?void 0:t.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":sr(n)},Ni=o=>{const e=o.findIndex(Mn);if(e<0)return;const n=o.findIndex(Si),t=o.find(r=>Mn(r));if(pl(t)!=="ResetWorkflow"&&(n<0||e{{const n=[...o].reverse();return Ni(n)}};function Ln(o){let e,n;return e=new ml({props:{title:U("common.failure"),class:"text-sm",$$slots:{description:[Vi],default:[Oi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&3&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function zn(o){let e,n=U("common.source")+"",t,l,r,i;return r=new Ae({props:{content:o[0].source,language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("p"),t=X(n),l=R(),y(r.$$.fragment)},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),f.forEach(g),l=B(s),I(r.$$.fragment,s)},m(s,f){v(s,e,f),b(e,t),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f&1&&(u.content=s[0].source),r.$set(u)},i(s){i||(d(r.$$.fragment,s),i=!0)},o(s){p(r.$$.fragment,s),i=!1},d(s){s&&(g(e),g(l)),P(r,s)}}}function Un(o){let e,n=U("common.stack-trace")+"",t,l,r,i;return r=new Ae({props:{content:o[0].stackTrace,language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("p"),t=X(n),l=R(),y(r.$$.fragment)},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),f.forEach(g),l=B(s),I(r.$$.fragment,s)},m(s,f){v(s,e,f),b(e,t),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f&1&&(u.content=s[0].stackTrace),r.$set(u)},i(s){i||(d(r.$$.fragment,s),i=!0)},o(s){p(r.$$.fragment,s),i=!1},d(s){s&&(g(e),g(l)),P(r,s)}}}function Oi(o){var c,_,h;let e,n,t=U("common.message")+"",l,r,i,s,f,u;i=new Ae({props:{content:((c=o[0])==null?void 0:c.message)||"",language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}});let a=((_=o[0])==null?void 0:_.source)&&zn(o),m=((h=o[0])==null?void 0:h.stackTrace)&&Un(o);return{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),s=R(),a&&a.c(),f=R(),m&&m.c(),this.h()},l(D){e=L(D,"DIV",{class:!0});var S=H(e);n=L(S,"P",{});var O=H(n);l=Y(O,t),O.forEach(g),r=B(S),I(i.$$.fragment,S),s=B(S),a&&a.l(S),f=B(S),m&&m.l(S),S.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-2")},m(D,S){v(D,e,S),b(e,n),b(n,l),b(e,r),A(i,e,null),b(e,s),a&&a.m(e,null),b(e,f),m&&m.m(e,null),u=!0},p(D,S){var q,Q,W;const O={};S&1&&(O.content=((q=D[0])==null?void 0:q.message)||""),i.$set(O),(Q=D[0])!=null&&Q.source?a?(a.p(D,S),S&1&&d(a,1)):(a=zn(D),a.c(),d(a,1),a.m(e,f)):a&&(ne(),p(a,1,1,()=>{a=null}),le()),(W=D[0])!=null&&W.stackTrace?m?(m.p(D,S),S&1&&d(m,1)):(m=Un(D),m.c(),d(m,1),m.m(e,null)):m&&(ne(),p(m,1,1,()=>{m=null}),le())},i(D){u||(d(i.$$.fragment,D),d(a),d(m),u=!0)},o(D){p(i.$$.fragment,D),p(a),p(m),u=!1},d(D){D&&g(e),P(i),a&&a.d(),m&&m.d()}}}function Vi(o){var l;let e,n=((l=o[0])==null?void 0:l.message)+"",t;return{c(){e=M("div"),t=X(n),this.h()},l(r){e=L(r,"DIV",{class:!0,slot:!0});var i=H(e);t=Y(i,n),i.forEach(g),this.h()},h(){$(e,"class","hidden w-full text-right text-xs lg:block"),$(e,"slot","description")},m(r,i){v(r,e,i),b(e,t)},p(r,i){var s;i&1&&n!==(n=((s=r[0])==null?void 0:s.message)+"")&&ie(t,n)},d(r){r&&g(e)}}}function qn(o){let e,n;return e=new _l({props:{failure:o[0].cause}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.failure=t[0].cause),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Hi(o){var i;let e,n,t,l=o[0]&&Ln(o),r=((i=o[0])==null?void 0:i.cause)&&qn(o);return{c(){l&&l.c(),e=R(),r&&r.c(),n=ee()},l(s){l&&l.l(s),e=B(s),r&&r.l(s),n=ee()},m(s,f){l&&l.m(s,f),v(s,e,f),r&&r.m(s,f),v(s,n,f),t=!0},p(s,[f]){var u;s[0]?l?(l.p(s,f),f&1&&d(l,1)):(l=Ln(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ne(),p(l,1,1,()=>{l=null}),le()),(u=s[0])!=null&&u.cause?r?(r.p(s,f),f&1&&d(r,1)):(r=qn(s),r.c(),d(r,1),r.m(n.parentNode,n)):r&&(ne(),p(r,1,1,()=>{r=null}),le())},i(s){t||(d(l),d(r),t=!0)},o(s){p(l),p(r),t=!1},d(s){s&&(g(e),g(n)),l&&l.d(s),r&&r.d(s)}}}function Fi(o,e,n){let{failure:t=void 0}=e;return o.$$set=l=>{"failure"in l&&n(0,t=l.failure)},[t]}class _l extends ue{constructor(e){super(),ce(this,e,Fi,Hi,se,{failure:0})}}function Ri(o){let e=o[0].state+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&1&&e!==(e=t[0].state+"")&&ie(n,e)},d(t){t&&g(n)}}}function Bi(o){let e=o[0].attempt+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&1&&e!==(e=t[0].attempt+"")&&ie(n,e)},d(t){t&&g(n)}}}function Gi(o){let e=de(o[0].originalScheduledTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].originalScheduledTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function Mi(o){let e=de(o[0].scheduledTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].scheduledTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function Li(o){let e=de(o[0].startedTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].startedTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function zi(o){let e,n,t=U("common.state")+"",l,r,i,s,f,u=U("common.attempt")+"",a,m,c,_,h,D=U("workflows.original-scheduled-time")+"",S,O,q,Q,W,z=U("workflows.scheduled-time")+"",N,C,V,k,w,T=U("workflows.started-time")+"",E,j,F,te;return i=new Qe({props:{$$slots:{default:[Ri]},$$scope:{ctx:o}}}),c=new Qe({props:{$$slots:{default:[Bi]},$$scope:{ctx:o}}}),q=new Qe({props:{$$slots:{default:[Gi]},$$scope:{ctx:o}}}),V=new Qe({props:{$$slots:{default:[Mi]},$$scope:{ctx:o}}}),F=new Qe({props:{$$slots:{default:[Li]},$$scope:{ctx:o}}}),{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),s=R(),f=M("p"),a=X(u),m=R(),y(c.$$.fragment),_=R(),h=M("p"),S=X(D),O=R(),y(q.$$.fragment),Q=R(),W=M("p"),N=X(z),C=R(),y(V.$$.fragment),k=R(),w=M("p"),E=X(T),j=R(),y(F.$$.fragment),this.h()},l(Z){e=L(Z,"DIV",{class:!0});var x=H(e);n=L(x,"P",{class:!0});var ge=H(n);l=Y(ge,t),r=B(ge),I(i.$$.fragment,ge),ge.forEach(g),s=B(x),f=L(x,"P",{class:!0});var re=H(f);a=Y(re,u),m=B(re),I(c.$$.fragment,re),re.forEach(g),_=B(x),h=L(x,"P",{class:!0});var $e=H(h);S=Y($e,D),O=B($e),I(q.$$.fragment,$e),$e.forEach(g),Q=B(x),W=L(x,"P",{class:!0});var G=H(W);N=Y(G,z),C=B(G),I(V.$$.fragment,G),G.forEach(g),k=B(x),w=L(x,"P",{class:!0});var fe=H(w);E=Y(fe,T),j=B(fe),I(F.$$.fragment,fe),fe.forEach(g),x.forEach(g),this.h()},h(){$(n,"class","flex items-center gap-4"),$(f,"class","flex items-center gap-4"),$(h,"class","flex items-center gap-4"),$(W,"class","flex items-center gap-4"),$(w,"class","flex items-center gap-4"),$(e,"class","flex flex-col gap-2")},m(Z,x){v(Z,e,x),b(e,n),b(n,l),b(n,r),A(i,n,null),b(e,s),b(e,f),b(f,a),b(f,m),A(c,f,null),b(e,_),b(e,h),b(h,S),b(h,O),A(q,h,null),b(e,Q),b(e,W),b(W,N),b(W,C),A(V,W,null),b(e,k),b(e,w),b(w,E),b(w,j),A(F,w,null),te=!0},p(Z,x){const ge={};x&5&&(ge.$$scope={dirty:x,ctx:Z}),i.$set(ge);const re={};x&5&&(re.$$scope={dirty:x,ctx:Z}),c.$set(re);const $e={};x&7&&($e.$$scope={dirty:x,ctx:Z}),q.$set($e);const G={};x&7&&(G.$$scope={dirty:x,ctx:Z}),V.$set(G);const fe={};x&7&&(fe.$$scope={dirty:x,ctx:Z}),F.$set(fe)},i(Z){te||(d(i.$$.fragment,Z),d(c.$$.fragment,Z),d(q.$$.fragment,Z),d(V.$$.fragment,Z),d(F.$$.fragment,Z),te=!0)},o(Z){p(i.$$.fragment,Z),p(c.$$.fragment,Z),p(q.$$.fragment,Z),p(V.$$.fragment,Z),p(F.$$.fragment,Z),te=!1},d(Z){Z&&g(e),P(i),P(c),P(q),P(V),P(F)}}}function Ui(o){let e,n;return e=new ml({props:{title:U("workflows.pending-workflow-task"),$$slots:{default:[zi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&7&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function qi(o,e,n){let t;oe(o,lt,r=>n(1,t=r));let{pendingTask:l=void 0}=e;return o.$$set=r=>{"pendingTask"in r&&n(0,l=r.pendingTask)},[l,t]}class Qi extends ue{constructor(e){super(),ce(this,e,qi,Ui,se,{pendingTask:0})}}function Qn(o){let e,n;return e=new yt({props:{icon:"warning",intent:"warning",title:U(`typed-errors.${o[2]}.title`),$$slots:{default:[Yi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.title=U(`typed-errors.${t[2]}.title`)),l&63&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Jn(o){let e,n=U("typed-errors.link-preface")+"",t,l,r,i;return l=new It({props:{newTab:!0,href:U(`typed-errors.${o[2]}.link`),$$slots:{default:[Ji]},$$scope:{ctx:o}}}),{c(){e=M("p"),t=X(n),y(l.$$.fragment),r=X(".")},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),I(l.$$.fragment,f),r=Y(f,"."),f.forEach(g)},m(s,f){v(s,e,f),b(e,t),A(l,e,null),b(e,r),i=!0},p(s,f){const u={};f&4&&(u.href=U(`typed-errors.${s[2]}.link`)),f&36&&(u.$$scope={dirty:f,ctx:s}),l.$set(u)},i(s){i||(d(l.$$.fragment,s),i=!0)},o(s){p(l.$$.fragment,s),i=!1},d(s){s&&g(e),P(l)}}}function Ji(o){let e=U(`typed-errors.${o[2]}.action`)+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&4&&e!==(e=U(`typed-errors.${t[2]}.action`)+"")&&ie(n,e)},d(t){t&&g(n)}}}function Xn(o){let e,n;return e=new Ci({props:{$$slots:{default:[Xi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&35&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Yn(o){let e,n;return e=new Qi({props:{pendingTask:o[1]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.pendingTask=t[1]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Xi(o){let e,n,t,l;e=new _l({props:{failure:o[0].attributes.failure}});let r=o[1]&&Yn(o);return{c(){y(e.$$.fragment),n=R(),r&&r.c(),t=ee()},l(i){I(e.$$.fragment,i),n=B(i),r&&r.l(i),t=ee()},m(i,s){A(e,i,s),v(i,n,s),r&&r.m(i,s),v(i,t,s),l=!0},p(i,s){const f={};s&1&&(f.failure=i[0].attributes.failure),e.$set(f),i[1]?r?(r.p(i,s),s&2&&d(r,1)):(r=Yn(i),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ne(),p(r,1,1,()=>{r=null}),le())},i(i){l||(d(e.$$.fragment,i),d(r),l=!0)},o(i){p(e.$$.fragment,i),p(r),l=!1},d(i){i&&(g(n),g(t)),P(e,i),r&&r.d(i)}}}function Yi(o){var k,w,T;let e,n=U(`typed-errors.${o[2]}.description`)+"",t,l,r,i,s,f,u=o[0].id+"",a,m,c,_,h,D=rt((k=o[0])==null?void 0:k.name)+"",S,O,q=de((w=o[0])==null?void 0:w.eventTime,o[3],{relative:o[4]})+"",Q,W,z,N,C=(o[2]==="WorkflowWorkerUnhandledFailure"||o[2]==="BadSearchAttributes")&&Jn(o);c=new Ie({props:{name:Ye[o[0].category]}});let V=((T=o[0].attributes)==null?void 0:T.failure)&&Xn(o);return{c(){e=M("p"),t=X(n),l=R(),C&&C.c(),r=R(),i=M("div"),s=M("div"),f=M("div"),a=X(u),m=R(),y(c.$$.fragment),_=R(),h=M("span"),S=X(D),O=R(),Q=X(q),W=R(),z=M("div"),V&&V.c(),this.h()},l(E){e=L(E,"P",{});var j=H(e);t=Y(j,n),j.forEach(g),l=B(E),C&&C.l(E),r=B(E),i=L(E,"DIV",{class:!0});var F=H(i);s=L(F,"DIV",{class:!0});var te=H(s);f=L(te,"DIV",{class:!0});var Z=H(f);a=Y(Z,u),m=B(Z),I(c.$$.fragment,Z),_=B(Z),h=L(Z,"SPAN",{class:!0});var x=H(h);S=Y(x,D),x.forEach(g),Z.forEach(g),O=B(te),Q=Y(te,q),te.forEach(g),W=B(F),z=L(F,"DIV",{class:!0});var ge=H(z);V&&V.l(ge),ge.forEach(g),F.forEach(g),this.h()},h(){$(h,"class","font-semibold text-danger"),$(f,"class","flex items-center gap-2"),$(s,"class","flex items-center justify-between gap-2 bg-danger px-2 py-2"),$(z,"class","flex flex-col gap-2 bg-primary p-4"),$(i,"class","mt-2 flex w-full flex-col gap-0 overflow-hidden rounded-xl border-2 border-danger")},m(E,j){v(E,e,j),b(e,t),v(E,l,j),C&&C.m(E,j),v(E,r,j),v(E,i,j),b(i,s),b(s,f),b(f,a),b(f,m),A(c,f,null),b(f,_),b(f,h),b(h,S),b(s,O),b(s,Q),b(i,W),b(i,z),V&&V.m(z,null),N=!0},p(E,j){var te,Z,x;(!N||j&4)&&n!==(n=U(`typed-errors.${E[2]}.description`)+"")&&ie(t,n),E[2]==="WorkflowWorkerUnhandledFailure"||E[2]==="BadSearchAttributes"?C?(C.p(E,j),j&4&&d(C,1)):(C=Jn(E),C.c(),d(C,1),C.m(r.parentNode,r)):C&&(ne(),p(C,1,1,()=>{C=null}),le()),(!N||j&1)&&u!==(u=E[0].id+"")&&ie(a,u);const F={};j&1&&(F.name=Ye[E[0].category]),c.$set(F),(!N||j&1)&&D!==(D=rt((te=E[0])==null?void 0:te.name)+"")&&ie(S,D),(!N||j&25)&&q!==(q=de((Z=E[0])==null?void 0:Z.eventTime,E[3],{relative:E[4]})+"")&&ie(Q,q),(x=E[0].attributes)!=null&&x.failure?V?(V.p(E,j),j&1&&d(V,1)):(V=Xn(E),V.c(),d(V,1),V.m(z,null)):V&&(ne(),p(V,1,1,()=>{V=null}),le())},i(E){N||(d(C),d(c.$$.fragment,E),d(V),N=!0)},o(E){p(C),p(c.$$.fragment,E),p(V),N=!1},d(E){E&&(g(e),g(l),g(r),g(i)),C&&C.d(E),P(c),V&&V.d()}}}function Ki(o){let e,n,t=o[2]&&o[2]!=="ResetWorkflow"&&Qn(o);return{c(){t&&t.c(),e=ee()},l(l){t&&t.l(l),e=ee()},m(l,r){t&&t.m(l,r),v(l,e,r),n=!0},p(l,[r]){l[2]&&l[2]!=="ResetWorkflow"?t?(t.p(l,r),r&4&&d(t,1)):(t=Qn(l),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(ne(),p(t,1,1,()=>{t=null}),le())},i(l){n||(d(t),n=!0)},o(l){p(t),n=!1},d(l){l&&g(e),t&&t.d(l)}}}function Zi(o,e,n){let t,l;oe(o,lt,f=>n(3,t=f)),oe(o,al,f=>n(4,l=f));let{error:r}=e,{pendingTask:i=void 0}=e,s;return o.$$set=f=>{"error"in f&&n(0,r=f.error),"pendingTask"in f&&n(1,i=f.pendingTask)},o.$$.update=()=>{o.$$.dirty&1&&n(2,s=pl(r))},[r,i,s,t,l]}class xi extends ue{constructor(e){super(),ce(this,e,Zi,Ki,se,{error:0,pendingTask:1})}}function Kn(o){let e,n,t,l;return n=new yt({props:{icon:"warning",intent:"warning",title:U("workflows.workflow-error-no-workers-title"),$$slots:{default:[es]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(r){e=L(r,"DIV",{class:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"class","mb-4")},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&33&&(s.$$scope={dirty:i,ctx:r}),n.$set(s)},i(r){l||(d(n.$$.fragment,r),r&&(t||tl(()=>{t=bl(e,fr,{duration:200,delay:100}),t.start()})),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function es(o){var t;let e=U("workflows.workflow-error-no-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",n;return{c(){n=X(e)},l(l){n=Y(l,e)},m(l,r){v(l,n,r)},p(l,r){var i;r&1&&e!==(e=U("workflows.workflow-error-no-workers-description",{taskQueue:(i=l[0])==null?void 0:i.taskQueue})+"")&&ie(n,e)},d(l){l&&g(n)}}}function ts(o){let e,n,t=o[1]&&Kn(o);return{c(){t&&t.c(),e=ee()},l(l){t&&t.l(l),e=ee()},m(l,r){t&&t.m(l,r),v(l,e,r),n=!0},p(l,[r]){l[1]?t?(t.p(l,r),r&2&&d(t,1)):(t=Kn(l),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(ne(),p(t,1,1,()=>{t=null}),le())},i(l){n||(d(t),n=!0)},o(l){p(t),n=!1},d(l){l&&g(e),t&&t.d(l)}}}function ns(o,e,n){let t,l,r,i;oe(o,tt,f=>n(4,i=f));var s;return o.$$.update=()=>{o.$$.dirty&16&&n(0,{workflow:t,workers:l}=i,t,(n(3,l),n(4,i))),o.$$.dirty&13&&n(1,r=(t==null?void 0:t.isRunning)&&!(!(n(2,s=l==null?void 0:l.pollers)===null||s===void 0)&&s.length))},[t,r,s,l,i]}class ls extends ue{constructor(e){super(),ce(this,e,ns,ts,se,{})}}function Zn(o){var t;let e,n;return e=new xi({props:{error:o[1],pendingTask:(t=o[0])==null?void 0:t.pendingWorkflowTask}}),{c(){y(e.$$.fragment)},l(l){I(e.$$.fragment,l)},m(l,r){A(e,l,r),n=!0},p(l,r){var s;const i={};r&2&&(i.error=l[1]),r&1&&(i.pendingTask=(s=l[0])==null?void 0:s.pendingWorkflowTask),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){P(e,l)}}}function xn(o){let e,n;return e=new mi({props:{callback:o[0].callbacks[0]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.callback=t[0].callbacks[0]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function rs(o){var V,k;let e,n,t,l,r,i,s,f,u,a,m,c,_=U("workflows.event-history")+"",h,D,S,O,q,Q,W,z;n=new ls({}),r=new Pi({}),s=new go({});let N=o[1]&&Zn(o),C=((k=(V=o[0])==null?void 0:V.callbacks)==null?void 0:k.length)&&xn(o);return q=new gl({props:{workflow:o[0],groups:o[3],activeGroups:o[4],workflowTaskFailedError:o[1]}}),W=new Xr({props:{groups:o[3],history:o[2]}}),{c(){e=M("div"),y(n.$$.fragment),t=R(),l=M("div"),y(r.$$.fragment),i=R(),y(s.$$.fragment),f=R(),N&&N.c(),u=R(),C&&C.c(),a=R(),m=M("div"),c=M("h2"),h=X(_),D=R(),S=M("div"),O=M("div"),y(q.$$.fragment),Q=R(),y(W.$$.fragment),this.h()},l(w){e=L(w,"DIV",{class:!0});var T=H(e);I(n.$$.fragment,T),t=B(T),l=L(T,"DIV",{class:!0});var E=H(l);I(r.$$.fragment,E),i=B(E),I(s.$$.fragment,E),f=B(E),N&&N.l(E),u=B(E),C&&C.l(E),a=B(E),m=L(E,"DIV",{class:!0});var j=H(m);c=L(j,"H2",{});var F=H(c);h=Y(F,_),F.forEach(g),j.forEach(g),E.forEach(g),T.forEach(g),D=B(w),S=L(w,"DIV",{class:!0});var te=H(S);O=L(te,"DIV",{class:!0});var Z=H(O);I(q.$$.fragment,Z),Q=B(Z),I(W.$$.fragment,Z),Z.forEach(g),te.forEach(g),this.h()},h(){$(m,"class","flex flex-col items-center gap-2 py-2 xl:flex-row xl:justify-between xl:gap-8"),$(l,"class","flex flex-col gap-2"),$(e,"class","flex flex-col gap-0 px-8"),$(O,"class","flex w-full flex-col rounded-sm border-2 border-subtle"),$(S,"class","px-8 pb-24")},m(w,T){v(w,e,T),A(n,e,null),b(e,t),b(e,l),A(r,l,null),b(l,i),A(s,l,null),b(l,f),N&&N.m(l,null),b(l,u),C&&C.m(l,null),b(l,a),b(l,m),b(m,c),b(c,h),v(w,D,T),v(w,S,T),b(S,O),A(q,O,null),b(O,Q),A(W,O,null),z=!0},p(w,[T]){var F,te;w[1]?N?(N.p(w,T),T&2&&d(N,1)):(N=Zn(w),N.c(),d(N,1),N.m(l,u)):N&&(ne(),p(N,1,1,()=>{N=null}),le()),(te=(F=w[0])==null?void 0:F.callbacks)!=null&&te.length?C?(C.p(w,T),T&1&&d(C,1)):(C=xn(w),C.c(),d(C,1),C.m(l,a)):C&&(ne(),p(C,1,1,()=>{C=null}),le());const E={};T&1&&(E.workflow=w[0]),T&8&&(E.groups=w[3]),T&16&&(E.activeGroups=w[4]),T&2&&(E.workflowTaskFailedError=w[1]),q.$set(E);const j={};T&8&&(j.groups=w[3]),T&4&&(j.history=w[2]),W.$set(j)},i(w){z||(d(n.$$.fragment,w),d(r.$$.fragment,w),d(s.$$.fragment,w),d(N),d(C),d(q.$$.fragment,w),d(W.$$.fragment,w),z=!0)},o(w){p(n.$$.fragment,w),p(r.$$.fragment,w),p(s.$$.fragment,w),p(N),p(C),p(q.$$.fragment,w),p(W.$$.fragment,w),z=!1},d(w){w&&(g(e),g(D),g(S)),P(n),P(r),P(s),N&&N.d(),C&&C.d(),P(q),P(W)}}}function os(o,e,n){let t,l,r,i,s,f,u,a,m,c,_,h,D,S;return oe(o,ze,O=>n(8,a=O)),oe(o,Je,O=>n(9,m=O)),oe(o,Rl,O=>n(10,c=O)),oe(o,fl,O=>n(11,_=O)),oe(o,Xe,O=>n(12,h=O)),oe(o,tt,O=>n(13,D=O)),oe(o,Fl,O=>n(4,S=O)),Tl(()=>{Lt()}),o.$$.update=()=>{o.$$.dirty&8192&&n(0,{workflow:t}=D,t),o.$$.dirty&1&&n(7,l=t==null?void 0:t.pendingActivities),o.$$.dirty&1&&n(6,r=t==null?void 0:t.pendingNexusOperations),o.$$.dirty&2240&&n(5,i=ul(_,"ascending",l,r)),o.$$.dirty&4128&&n(3,s=h==="ascending"?i:[...i].reverse()),o.$$.dirty&6144&&n(2,f=h==="ascending"?_:[..._].reverse()),o.$$.dirty&1024&&n(1,u=ji(c)),o.$$.dirty&512&&Lt(),o.$$.dirty&257&&!t.isRunning&&a&&_e(ze,a=!1,a)},[t,u,f,s,S,i,r,l,a,m,c,_,h,D]}class is extends ue{constructor(e){super(),ce(this,e,os,rs,se,{})}}function ss(o){let e,n,t,l;return e=new vl({props:{title:`${U("workflows.workflow-history")} | ${o[1]}`,url:o[0].url.href}}),t=new is({}),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,[i]){const s={};i&1&&(s.url=r[0].url.href),e.$set(s)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function fs(o,e,n){let t;oe(o,He,r=>n(0,t=r));const l=t.params.workflow;return[t,l]}class nf extends ue{constructor(e){super(),ce(this,e,fs,ss,se,{})}}export{nf as component}; diff --git a/ui/assets/local/_app/immutable/nodes/33.D6UHv9eO.js b/ui/assets/local/_app/immutable/nodes/33.D6UHv9eO.js deleted file mode 100644 index 39a4a7a92..000000000 --- a/ui/assets/local/_app/immutable/nodes/33.D6UHv9eO.js +++ /dev/null @@ -1 +0,0 @@ -import{s as se,c as oe,b as R,d as B,i as v,f as g,w as _e,t as X,l as Y,v as ae,h as M,j as L,k as H,m as $,H as ye,x as ee,y as et,q as ie,C as Ht,N as it,O as bt,n as b,p as Ge,G as el,D as Me,z as Le,A as vt,a as st,u as ft,g as at,e as ut,M as hl,I as ke,J as we,W as Ft,a2 as Oe,F as $l,X as Rt,a9 as tl,aa as kl,o as wl}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,c as y,a as I,m as A,t as d,b as p,d as P,g as ne,e as le,f as Et,h as bl}from"../chunks/index.dOVbn71B.js";import{p as He}from"../chunks/stores.Dz-RNcUk.js";import{P as vl}from"../chunks/page-title.DNhqE1Lj.js";import{t as U}from"../chunks/translate.BBe5dcco.js";import{w as El,b as Tl}from"../chunks/entry.DLEzeuD9.js";import{C as Ye,E as yl,D as nl,a as Il,s as Ce,L as Se,g as Bt,b as ll,m as Al,c as Pl,T as Ve,d as gt,t as Wl,e as Dl,f as Cl}from"../chunks/event-summary-table.Bjd71qae.js";import{e as he,u as pt,o as _t}from"../chunks/each.C6O0oV7R.js";import{M as Sl,C as ct}from"../chunks/checkbox.CZ5w22eC.js";import{I as Ie}from"../chunks/icon.CfkHLDdJ.js";import{M as Nl}from"../chunks/menu-button.20KWkPAy.js";import{M as jl,a as Ol,d as ht}from"../chunks/menu.FCESMtRU.js";import{V as Gt,g as Mt,W as rl,X as Vl,F as Hl}from"../chunks/get-event-categorization.BzHsmJUX.js";import{c as ol,s as il,a as Fl,b as Lt}from"../chunks/active-events.B1lGV7ud.js";import{k as Be,l as sl,h as fl,d as zt,i as $t,e as mt,b as Xe,m as Je,a as Ut,f as Tt,p as ze,g as Rl}from"../chunks/events.Dh9P6F73.js";import{t as Bl}from"../chunks/versions.CeMhowfV.js";import{i as Gl}from"../chunks/route-for-api.BTloiRV6.js";import{M as Ml}from"../chunks/modal.DyMhWY1J.js";import{R as Ll,a as dt}from"../chunks/radio-input.yEAROJgW.js";import{b as zl,f as Ul}from"../chunks/events-service.DFs0nrNV.js";import{a as ql}from"../chunks/auth-user.BOlglCm6.js";import{c as Ql,d as Jl}from"../chunks/decode-payload.BTpeWKqJ.js";import{g as Xl,a as Yl,b as Kl}from"../chunks/data-encoder.B_90sJUu.js";import{s as Ke,p as Ze}from"../chunks/parse-with-big-int.BKSBwM2t.js";import{T as kt,a as je}from"../chunks/toggle-buttons.Cubqph53.js";import{W as Zl}from"../chunks/workflow-json-navigator.D-VSmCkm.js";import{T as xl}from"../chunks/toggle-switch.C9lxIG0w.js";import{w as tt}from"../chunks/workflow-run.DcChDuxV.js";import{C as Ae}from"../chunks/code-block.BkCXXL0z.js";import{P as nt}from"../chunks/payload-decoder.DlOPrRzg.js";import{B as er}from"../chunks/button.BpRIS9ld.js";import{t as lt,f as de,r as al}from"../chunks/time-format.D2wF3ave.js";import{w as wt,u as xe}from"../chunks/format-time.6TuExJAg.js";import{s as rt,f as ot}from"../chunks/format-camel-case.ByTIZu23.js";import{h as tr,u as nr}from"../chunks/await_block.BfN27BCg.js";import{g as ul}from"../chunks/index.DCblj7qv.js";import{v as lr}from"../chunks/workflows.BzgE0E1S.js";import{e as rr,h as or}from"../chunks/get-single-attribute-for-event.B37Av_rg.js";import{A as yt}from"../chunks/alert.nnKn2vnv.js";import{u as qt,z as Qt}from"../chunks/route-for.BjP6gGR7.js";import{C as ir}from"../chunks/index.Bde7eNxE.js";import{L as It}from"../chunks/link.BJceiGbc.js";import{T as cl}from"../chunks/tooltip.D2lOlqUw.js";import{i as sr}from"../chunks/screaming-enums.w0zEi9dM.js";import{A as ml}from"../chunks/accordion.DEmefb3Z.js";import{B as Qe}from"../chunks/badge.jG5hkqHT.js";import{a as fr}from"../chunks/index.mPGqfhEB.js";const ar=o=>o==null?void 0:o.nexus;function Jt(o,e,n){const t=o.slice();return t[17]=e[n],t}function ur(o){let e=U("events.event-types")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function cr(o){let e,n,t;return n=new Ie({props:{name:"filter",class:o[3]&&"pt-0.5 text-white"}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{slot:!0,class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"slot","leading"),$(e,"class","flex h-6 w-6 flex-col items-center justify-center rounded-full transition-colors duration-200"),ye(e,"bg-interactive",o[3])},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r&8&&(i.class=l[3]&&"pt-0.5 text-white"),n.$set(i),(!t||r&8)&&ye(e,"bg-interactive",l[3])},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function mr(o){let e=U("common.all")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function dr(o){let e,n;return e=new ct({props:{slot:"leading",checked:o[2].length===o[0].length,label:U("common.all"),labelHidden:!0}}),e.$on("change",o[10]),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&5&&(r.checked=t[2].length===t[0].length),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function gr(o){let e=U("common.none")+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p:ae,d(t){t&&g(n)}}}function pr(o){let e,n;return e=new ct({props:{slot:"leading",checked:!o[2].length,label:U("common.none"),labelHidden:!0}}),e.$on("change",o[12]),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.checked=!t[2].length),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function _r(o){let e=o[17].label+"",n,t;return{c(){n=X(e),t=R()},l(l){n=Y(l,e),t=B(l)},m(l,r){v(l,n,r),v(l,t,r)},p(l,r){r&2&&e!==(e=l[17].label+"")&&ie(n,e)},d(l){l&&(g(n),g(t))}}}function hr(o){let e,n;function t(...r){return o[14](o[17],...r)}function l(){return o[15](o[17])}return e=new ct({props:{slot:"leading",checked:o[2].some(t),label:o[17].label,labelHidden:!0}}),e.$on("click",l),{c(){y(e.$$.fragment)},l(r){I(e.$$.fragment,r)},m(r,i){A(e,r,i),n=!0},p(r,i){o=r;const s={};i&6&&(s.checked=o[2].some(t)),i&2&&(s.label=o[17].label),e.$set(s)},i(r){n||(d(e.$$.fragment,r),n=!0)},o(r){p(e.$$.fragment,r),n=!1},d(r){P(e,r)}}}function Xt(o){let e,n;function t(){return o[16](o[17])}return e=new ht({props:{"data-testid":o[17].label,description:o[17].description,class:"items-start",$$slots:{leading:[hr],default:[_r]},$$scope:{ctx:o}}}),e.$on("click",t),{c(){y(e.$$.fragment)},l(l){I(e.$$.fragment,l)},m(l,r){A(e,l,r),n=!0},p(l,r){o=l;const i={};r&2&&(i["data-testid"]=o[17].label),r&2&&(i.description=o[17].description),r&1048582&&(i.$$scope={dirty:r,ctx:o}),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){P(e,l)}}}function $r(o){let e,n,t,l,r,i,s,f;e=new ht({props:{"data-testid":U("common.all"),$$slots:{leading:[dr],default:[mr]},$$scope:{ctx:o}}}),e.$on("click",o[11]),t=new ht({props:{"data-testid":U("common.none"),$$slots:{leading:[pr],default:[gr]},$$scope:{ctx:o}}}),t.$on("click",o[13]),r=new Sl({});let u=he(o[1]),a=[];for(let c=0;cp(a[c],1,1,()=>{a[c]=null});return{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment),i=R();for(let c=0;cn(2,i=W)),oe(o,He,W=>n(8,s=W)),oe(o,Bl,W=>n(9,f=W));var u;let{compact:a=!1}=e,m=El(!1);const c=({value:W})=>{ol(),_e(Be,i=i.some(z=>z===W)?i.filter(z=>z!==W):[...i,W],i)},_=()=>{_e(Be,i=t,i)},h=()=>{_e(Be,i=t,i)},D=()=>{_e(Be,i=[],i)},S=()=>{_e(Be,i=[],i)},O=(W,z)=>z===W.value,q=W=>c(W),Q=W=>{c(W)};return o.$$set=W=>{"compact"in W&&n(6,a=W.compact)},o.$$.update=()=>{o.$$.dirty&64&&n(0,t=a?Gt.map(W=>W.value):Mt.map(W=>W.value)),o.$$.dirty&64&&n(1,l=[...(a?Gt:Mt).map(W=>({...W,label:U(W.label),icon:Ye[W.value],description:U(W.description)}))]),o.$$.dirty&514&&Gl("1.21.0",f)&&n(1,l=l.filter(({value:W})=>W!=="update")),o.$$.dirty&386&&(ar(n(7,u=s.data.systemInfo)===null||u===void 0?void 0:u.capabilities)||n(1,l=l.filter(({value:W})=>W!=="nexus"))),o.$$.dirty&5&&n(3,r=i.length{const t=Xl(e),l=Yl(e),r=Kl(e),i={...e,codec:{...e==null?void 0:e.codec,endpoint:t,passAccessToken:l,includeCredentials:r}},s=!1;try{const f=await Ql(o,Ht(He).params.namespace,i,Ht(ql).accessToken,n,s);return Jl(f,s)}catch{return o}};function Yt(o,e,n){const t=Ke({events:o},null,2),l=document.createElement("a"),r=new Blob([t],{type:n});l.href=URL.createObjectURL(r),l.download=e,l.click()}const Tr=async({namespace:o,workflowId:e,runId:n,settings:t,decodeSetting:l})=>{try{const r=await zl({namespace:o,workflowId:e,runId:n,sort:"ascending"});if(l==="encoded")Yt(r,`${n}/events.json`,"text/plain");else{const i=[];for(const s of r){const f=await Er(s,t,l);i.push(f)}Yt(i,`${n}/events.json`,"text/plain")}}catch{console.error("Could not download event history")}};function yr(o){let e,n=U("common.download-json")+"",t;return{c(){e=M("h3"),t=X(n),this.h()},l(l){e=L(l,"H3",{slot:!0});var r=H(e);t=Y(r,n),r.forEach(g),this.h()},h(){$(e,"slot","title")},m(l,r){v(l,e,r),b(e,t)},p:ae,d(l){l&&g(e)}}}function Ir(o){let e,n,t,l,r,i;return e=new dt({props:{id:"use-encoded-setting","data-testid":"use-encoded-setting-input",value:"encoded",label:U("events.encoded")}}),t=new dt({props:{id:"use-decoded-setting","data-testid":"use-decoded-setting-input",value:"decoded",label:U("events.decoded"),description:U("events.decoded-description")}}),r=new dt({props:{id:"use-readable-setting","data-testid":"use-readable-setting-input",value:"readable",label:U("events.readable"),description:U("events.readable-description")}}),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment)},l(s){I(e.$$.fragment,s),n=B(s),I(t.$$.fragment,s),l=B(s),I(r.$$.fragment,s)},m(s,f){A(e,s,f),v(s,n,f),A(t,s,f),v(s,l,f),A(r,s,f),i=!0},p:ae,i(s){i||(d(e.$$.fragment,s),d(t.$$.fragment,s),d(r.$$.fragment,s),i=!0)},o(s){p(e.$$.fragment,s),p(t.$$.fragment,s),p(r.$$.fragment,s),i=!1},d(s){s&&(g(n),g(l)),P(e,s),P(t,s),P(r,s)}}}function Ar(o){let e,n,t;return n=new Ll({props:{group:sl,name:"decode-setting",class:"h-auto overflow-auto",$$slots:{default:[Ir]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{slot:!0,class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"slot","content"),$(e,"class","flex flex-col gap-4")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r&1024&&(i.$$scope={dirty:r,ctx:l}),n.$set(i)},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function Pr(o){let e,n,t;function l(i){o[5](i)}let r={id:"download-history",large:!0,confirmType:"primary",confirmText:U("common.download"),cancelText:U("common.cancel"),$$slots:{content:[Ar],title:[yr]},$$scope:{ctx:o}};return o[0]!==void 0&&(r.open=o[0]),e=new Ml({props:r}),it.push(()=>Et(e,"open",l)),e.$on("confirmModal",o[6]),e.$on("cancelModal",o[7]),{c(){y(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,s){A(e,i,s),t=!0},p(i,[s]){const f={};s&1024&&(f.$$scope={dirty:s,ctx:i}),!n&&s&1&&(n=!0,f.open=i[0],bt(()=>n=!1)),e.$set(f)},i(i){t||(d(e.$$.fragment,i),t=!0)},o(i){p(e.$$.fragment,i),t=!1},d(i){P(e,i)}}}function Wr(o,e,n){let t,l;oe(o,sl,_=>n(8,t=_)),oe(o,He,_=>n(9,l=_));let{open:r=!1}=e,{namespace:i}=e,{workflowId:s}=e,{runId:f}=e;const u=()=>{n(0,r=!1),Tr({namespace:i,workflowId:s,runId:f,settings:l.data.settings,decodeSetting:t})};function a(_){r=_,n(0,r)}const m=()=>u(),c=()=>n(0,r=!1);return o.$$set=_=>{"open"in _&&n(0,r=_.open),"namespace"in _&&n(2,i=_.namespace),"workflowId"in _&&n(3,s=_.workflowId),"runId"in _&&n(4,f=_.runId)},[r,u,i,s,f,a,m,c]}class Dr extends ue{constructor(e){super(),ce(this,e,Wr,Pr,se,{open:0,namespace:2,workflowId:3,runId:4})}}function Cr(o){let e,n,t;function l(i){o[2](i)}let r={slot:"decode",label:U("events.decode-event-history"),id:"decode-event-history","data-testid":"decode-event-history-toggle"};return o[1]!==void 0&&(r.checked=o[1]),e=new xl({props:r}),it.push(()=>Et(e,"checked",l)),{c(){y(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,s){A(e,i,s),t=!0},p(i,s){const f={};!n&&s&2&&(n=!0,f.checked=i[1],bt(()=>n=!1)),e.$set(f)},i(i){t||(d(e.$$.fragment,i),t=!0)},o(i){p(e.$$.fragment,i),t=!1},d(i){P(e,i)}}}function Sr(o){let e,n;return e=new Zl({props:{events:o[0],$$slots:{decode:[Cr]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&1&&(r.events=t[0]),l&10&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Nr(o,e,n){let t,l;oe(o,fl,i=>n(0,t=i)),oe(o,zt,i=>n(1,l=i));function r(i){l=i,zt.set(l)}return[t,l,r]}class jr extends ue{constructor(e){super(),ce(this,e,Nr,Sr,se,{})}}function Kt(o,e,n){const t=o.slice();return t[4]=e[n],t}function Zt(o){let e,n,t,l,r,i=o[4].label+"",s,f,u,a,m;return n=new ct({props:{type:"checkbox",checked:o[0]}}),n.$on("click",o[2]),{c(){e=M("div"),y(n.$$.fragment),t=R(),l=M("div"),r=M("span"),s=X(i),f=R(),this.h()},l(c){e=L(c,"DIV",{class:!0});var _=H(e);I(n.$$.fragment,_),t=B(_),l=L(_,"DIV",{role:!0,tabindex:!0,class:!0});var h=H(l);r=L(h,"SPAN",{class:!0});var D=H(r);s=Y(D,i),D.forEach(g),h.forEach(g),f=B(_),_.forEach(g),this.h()},h(){$(r,"class","block"),$(l,"role","button"),$(l,"tabindex","0"),$(l,"class","flex cursor-pointer select-none items-center text-sm"),$(e,"class","flex items-center")},m(c,_){v(c,e,_),A(n,e,null),b(e,t),b(e,l),b(l,r),b(r,s),b(e,f),u=!0,a||(m=[Ge(l,"click",o[2]),Ge(l,"keydown",o[3])],a=!0)},p(c,_){const h={};_&1&&(h.checked=c[0]),n.$set(h)},i(c){u||(d(n.$$.fragment,c),u=!0)},o(c){p(n.$$.fragment,c),u=!1},d(c){c&&g(e),P(n),a=!1,el(m)}}}function Or(o){let e,n,t=he(o[1]),l=[];for(let i=0;ip(l[i],1,1,()=>{l[i]=null});return{c(){e=M("div");for(let i=0;in(0,t=s));const l=[{label:"Pending and Failed Only",value:"pending"}],r=()=>{ol(),_e($t,t=!t,t)};return[t,l,r,s=>s.key==="Enter"&&r]}class Hr extends ue{constructor(e){super(),ce(this,e,Vr,Or,se,{})}}function Fr(o){let e;return{c(){e=X("All")},l(n){e=Y(n,"All")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Rr(o){let e;return{c(){e=X("Compact")},l(n){e=Y(n,"Compact")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Br(o){let e;return{c(){e=X("JSON")},l(n){e=Y(n,"JSON")},m(n,t){v(n,e,t)},d(n){n&&g(e)}}}function Gr(o){let e,n,t,l,r,i;return e=new je({props:{active:o[4]==="feed","data-testid":"feed",$$slots:{default:[Fr]},$$scope:{ctx:o}}}),e.$on("click",o[11]),t=new je({props:{active:o[4]==="compact","data-testid":"compact",$$slots:{default:[Rr]},$$scope:{ctx:o}}}),t.$on("click",o[12]),r=new je({props:{active:o[4]==="json","data-testid":"json",$$slots:{default:[Br]},$$scope:{ctx:o}}}),r.$on("click",o[13]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment),l=R(),y(r.$$.fragment)},l(s){I(e.$$.fragment,s),n=B(s),I(t.$$.fragment,s),l=B(s),I(r.$$.fragment,s)},m(s,f){A(e,s,f),v(s,n,f),A(t,s,f),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f[0]&16&&(u.active=s[4]==="feed"),f[1]&2&&(u.$$scope={dirty:f,ctx:s}),e.$set(u);const a={};f[0]&16&&(a.active=s[4]==="compact"),f[1]&2&&(a.$$scope={dirty:f,ctx:s}),t.$set(a);const m={};f[0]&16&&(m.active=s[4]==="json"),f[1]&2&&(m.$$scope={dirty:f,ctx:s}),r.$set(m)},i(s){i||(d(e.$$.fragment,s),d(t.$$.fragment,s),d(r.$$.fragment,s),i=!0)},o(s){p(e.$$.fragment,s),p(t.$$.fragment,s),p(r.$$.fragment,s),i=!1},d(s){s&&(g(n),g(l)),P(e,s),P(t,s),P(r,s)}}}function xt(o){let e,n;return e=new kt({props:{$$slots:{default:[Lr]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&66|l[1]&2&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Mr(o){let e=o[1]?"Desc":"Asc",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l[0]&2&&e!==(e=t[1]?"Desc":"Asc")&&ie(n,e)},d(t){t&&g(n)}}}function Lr(o){let e,n,t,l;return e=new je({props:{icon:o[1]?"arrow-down":"arrow-up","data-testid":"zoom-in",$$slots:{default:[Mr]},$$scope:{ctx:o}}}),e.$on("click",o[14]),t=new je({props:{icon:o[6]?"chevron-up":"chevron-down","data-testid":"expandAll",tooltip:o[6]?"Collapse All Events":"Expand All Events"}}),t.$on("click",o[15]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,i){const s={};i[0]&2&&(s.icon=r[1]?"arrow-down":"arrow-up"),i[0]&2|i[1]&2&&(s.$$scope={dirty:i,ctx:r}),e.$set(s);const f={};i[0]&64&&(f.icon=r[6]?"chevron-up":"chevron-down"),i[0]&64&&(f.tooltip=r[6]?"Collapse All Events":"Expand All Events"),t.$set(f)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function zr(o){let e,n,t,l;return e=new je({props:{disabled:!o[3].isRunning,icon:o[10]?"play":"pause","data-testid":"pause",tooltip:o[10]?"Resume Live Updates":"Pause Live Updates"}}),e.$on("click",o[28]),t=new je({props:{"data-testid":"download",icon:"download",tooltip:"Download Event History"}}),t.$on("click",o[29]),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,i){const s={};i[0]&8&&(s.disabled=!r[3].isRunning),i[0]&1024&&(s.icon=r[10]?"play":"pause"),i[0]&1024&&(s.tooltip=r[10]?"Resume Live Updates":"Pause Live Updates"),e.$set(s)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function en(o){let e,n;return e=new Hr({}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Ur(o){let e,n,t;return n=new yl({props:{updating:o[8],items:o[7],groups:o[0],compact:o[2]}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{"data-testid":!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"data-testid","event-summary-table")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p(l,r){const i={};r[0]&256&&(i.updating=l[8]),r[0]&128&&(i.items=l[7]),r[0]&1&&(i.groups=l[0]),r[0]&4&&(i.compact=l[2]),n.$set(i)},i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function qr(o){let e,n,t;return n=new jr({}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(l){e=L(l,"DIV",{class:!0});var r=H(e);I(n.$$.fragment,r),r.forEach(g),this.h()},h(){$(e,"class","px-4")},m(l,r){v(l,e,r),A(n,e,null),t=!0},p:ae,i(l){t||(d(n.$$.fragment,l),t=!0)},o(l){p(n.$$.fragment,l),t=!1},d(l){l&&g(e),P(n)}}}function Qr(o){let e,n,t,l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q;l=new kt({props:{$$slots:{default:[Gr]},$$scope:{ctx:o}}});let W=o[4]!=="json"&&xt(o);f=new kt({props:{$$slots:{default:[zr]},$$scope:{ctx:o}}});let z=o[4]!=="json"&&en();c=new vr({props:{compact:o[2]}});const N=[qr,Ur],C=[];function V(T,E){return T[4]==="json"?0:1}h=V(o),D=C[h]=N[h](o);function k(T){o[30](T)}let w={namespace:o[9],workflowId:o[3].id,runId:o[3].runId};return o[5]!==void 0&&(w.open=o[5]),O=new Dr({props:w}),it.push(()=>Et(O,"open",k)),{c(){e=M("div"),n=M("div"),t=M("div"),y(l.$$.fragment),r=R(),i=M("div"),W&&W.c(),s=R(),y(f.$$.fragment),u=R(),a=M("div"),z&&z.c(),m=R(),y(c.$$.fragment),_=R(),D.c(),S=R(),y(O.$$.fragment),this.h()},l(T){e=L(T,"DIV",{class:!0});var E=H(e);n=L(E,"DIV",{class:!0});var j=H(n);t=L(j,"DIV",{class:!0});var F=H(t);I(l.$$.fragment,F),F.forEach(g),r=B(j),i=L(j,"DIV",{class:!0});var te=H(i);W&&W.l(te),s=B(te),I(f.$$.fragment,te),te.forEach(g),j.forEach(g),u=B(E),a=L(E,"DIV",{class:!0});var Z=H(a);z&&z.l(Z),m=B(Z),I(c.$$.fragment,Z),Z.forEach(g),E.forEach(g),_=B(T),D.l(T),S=B(T),I(O.$$.fragment,T),this.h()},h(){$(t,"class","flex items-center gap-2 px-4"),$(i,"class","flex items-center gap-2 px-4"),$(n,"class","flex flex-col items-center gap-2 px-4 md:flex-row"),$(a,"class","flex w-full flex-col items-center justify-end gap-4 px-4 lg:flex-row"),$(e,"class","flex flex-col items-center justify-between gap-4 py-4 lg:flex-row lg:py-8")},m(T,E){v(T,e,E),b(e,n),b(n,t),A(l,t,null),b(n,r),b(n,i),W&&W.m(i,null),b(i,s),A(f,i,null),b(e,u),b(e,a),z&&z.m(a,null),b(a,m),A(c,a,null),v(T,_,E),C[h].m(T,E),v(T,S,E),A(O,T,E),Q=!0},p(T,E){const j={};E[0]&16|E[1]&2&&(j.$$scope={dirty:E,ctx:T}),l.$set(j),T[4]!=="json"?W?(W.p(T,E),E[0]&16&&d(W,1)):(W=xt(T),W.c(),d(W,1),W.m(i,s)):W&&(ne(),p(W,1,1,()=>{W=null}),le());const F={};E[0]&1064|E[1]&2&&(F.$$scope={dirty:E,ctx:T}),f.$set(F),T[4]!=="json"?z?E[0]&16&&d(z,1):(z=en(),z.c(),d(z,1),z.m(a,m)):z&&(ne(),p(z,1,1,()=>{z=null}),le());const te={};E[0]&4&&(te.compact=T[2]),c.$set(te);let Z=h;h=V(T),h===Z?C[h].p(T,E):(ne(),p(C[Z],1,1,()=>{C[Z]=null}),le(),D=C[h],D?D.p(T,E):(D=C[h]=N[h](T),D.c()),d(D,1),D.m(S.parentNode,S));const x={};E[0]&512&&(x.namespace=T[9]),E[0]&8&&(x.workflowId=T[3].id),E[0]&8&&(x.runId=T[3].runId),!q&&E[0]&32&&(q=!0,x.open=T[5],bt(()=>q=!1)),O.$set(x)},i(T){Q||(d(l.$$.fragment,T),d(W),d(f.$$.fragment,T),d(z),d(c.$$.fragment,T),d(D),d(O.$$.fragment,T),Q=!0)},o(T){p(l.$$.fragment,T),p(W),p(f.$$.fragment,T),p(z),p(c.$$.fragment,T),p(D),p(O.$$.fragment,T),Q=!1},d(T){T&&(g(e),g(_),g(S)),P(l),W&&W.d(),P(f),z&&z.d(),P(c),C[h].d(T),P(O,T)}}}function Jr(o,e,n){let t,l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q;oe(o,mt,re=>n(23,c=re)),oe(o,Xe,re=>n(24,_=re)),oe(o,Je,re=>n(4,h=re)),oe(o,He,re=>n(25,D=re)),oe(o,Ut,re=>n(31,S=re)),oe(o,Tt,re=>n(26,O=re)),oe(o,tt,re=>n(27,q=re)),oe(o,ze,re=>n(10,Q=re));var W,z,N,C;let{history:V}=e,{groups:k}=e,w=!1;const T=()=>{_e(Je,h="feed",h)},E=()=>{_e(Je,h="compact",h)},j=()=>{_e(Je,h="json",h)},F=()=>{r?_e(Xe,_="ascending",_):_e(Xe,_="descending",_)},te=()=>{f?_e(mt,c="false",c):_e(mt,c="true",c)},Z=()=>_e(ze,Q=!Q,Q),x=()=>n(5,w=!0);function ge(re){w=re,n(5,w)}return o.$$set=re=>{"history"in re&&n(16,V=re.history),"groups"in re&&n(0,k=re.groups)},o.$$.update=()=>{o.$$.dirty[0]&33554432&&n(9,{namespace:t}=D.params,t),o.$$.dirty[0]&134217728&&n(3,{workflow:l}=q,l),o.$$.dirty[0]&16777216&&n(1,r=_==="descending"),o.$$.dirty[0]&67108864&&n(8,i=!O.length),o.$$.dirty[0]&16&&n(2,s=h==="compact"),o.$$.dirty[0]&8388608&&n(6,f=c==="true"),o.$$.dirty[0]&35520512&&_e(Ut,S=!(n(18,z=n(17,W=D.url)===null||W===void 0?void 0:W.searchParams)===null||z===void 0)&&z.get("category")?n(20,C=n(19,N=D.url)===null||N===void 0?void 0:N.searchParams)===null||C===void 0?void 0:C.get("category").split(","):void 0,S),o.$$.dirty[0]&8&&n(22,u=l.pendingActivities),o.$$.dirty[0]&8&&n(21,a=l.pendingNexusOperations),o.$$.dirty[0]&6356999&&n(7,m=s?k:r?[...a,...u,...V]:[...V,...u,...a])},[k,r,s,l,h,w,f,m,i,t,Q,T,E,j,F,te,V,W,z,N,C,a,u,c,_,D,O,q,Z,x,ge]}class Xr extends ue{constructor(e){super(),ce(this,e,Jr,Qr,se,{history:16,groups:0},null,[-1,-1])}}const Yr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],Kr=o=>!!o.workflowExecutionStartedEventAttributes,Zr=o=>{for(const e of Yr)if(o.eventType===e)return!0;return!1},xr=o=>rl(o)?o.attributes.input:Vl(o)?o.attributes.result===null?null:o.attributes.result:o.attributes,eo=o=>{var i;let e,n,t=!1,l,r;for(const s of o)if(Kr(s)){l=s;continue}else if(Zr(s)){r=s;continue}return l&&(e=Ke(((i=l==null?void 0:l.workflowExecutionStartedEventAttributes)==null?void 0:i.input)??null)),r&&(t=rl(r),n=Ke(xr(r))),{input:e,results:n,contAsNew:t}},to=o=>{try{return Ze(o)}catch{return}},tn=o=>{try{const e=Ze(o);return Array.isArray(e)?Ze(o):[]}catch{return[]}},no=o=>{try{const e=o==null?void 0:o.payloads;return Array.isArray(e)?e:[]}catch{return[]}};function nn(o,e,n){const t=o.slice();return t[8]=e[n],t}function lo(o){let e,n;return e=new Ae({props:{content:o[2]?"Results will appear upon completion.":"null",language:"text",copyable:!1,maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.content=t[2]?"Results will appear upon completion.":"null"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ro(o){let e,n,t,l;const r=[io,oo],i=[];function s(f,u){return f[4]?0:1}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function oo(o){let e,n;return e=new nt({props:{value:Ze(o[1]),$$slots:{default:[so,({decodedValue:t})=>({7:t}),({decodedValue:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=Ze(t[1])),l&2176&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function io(o){let e,n;return e=new nt({props:{value:o[3],key:"payloads",$$slots:{default:[fo,({decodedValue:t})=>({7:t}),({decodedValue:t})=>t?128:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&8&&(r.value=t[3]),l&2176&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function so(o){let e,n;return e=new Ae({props:{content:o[7],class:"rounded-none",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.content=t[7]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ln(o){let e,n;return e=new Ae({props:{content:Ke(o[8]),class:"rounded-none",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),maxHeight:300}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.content=Ke(t[8])),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function fo(o){let e,n,t=he(tn(o[7])),l=[];for(let i=0;ip(l[i],1,1,()=>{l[i]=null});return{c(){for(let i=0;i{a[h]=null}),le(),i=a[r],i?i.p(c,_):(i=a[r]=u[r](c),i.c()),d(i,1),i.m(e,null)),(!f||_&32&&s!==(s="flex w-full grow flex-col gap-2 py-4 "+c[5].class))&&$(e,"class",s)},i(c){f||(d(i),f=!0)},o(c){p(i),f=!1},d(c){c&&g(e),a[r].d()}}}function uo(o,e,n){let t,l,r;const i=["title","content","isRunning"];let s=Me(e,i),{title:f}=e,{content:u}=e,{isRunning:a}=e;return o.$$set=m=>{e=Le(Le({},e),vt(m)),n(5,s=Me(e,i)),"title"in m&&n(0,f=m.title),"content"in m&&n(1,u=m.content),"isRunning"in m&&n(2,a=m.isRunning)},o.$$.update=()=>{o.$$.dirty&2&&n(3,t=to(u)),o.$$.dirty&8&&n(6,l=no(t)),o.$$.dirty&64&&n(4,r=l.length>0)},[f,u,a,t,r,s,l]}class rn extends ue{constructor(e){super(),ce(this,e,uo,ao,se,{title:0,content:1,isRunning:2})}}function co(o){let e,n,t,l,r;return n=new rn({props:{content:o[1].input,isRunning:o[0],title:"Input"}}),l=new rn({props:{content:o[1].results,isRunning:o[0],title:"Result"}}),{c(){e=M("div"),y(n.$$.fragment),t=R(),y(l.$$.fragment),this.h()},l(i){e=L(i,"DIV",{class:!0,"data-testid":!0});var s=H(e);I(n.$$.fragment,s),t=B(s),I(l.$$.fragment,s),s.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-4 lg:flex-row"),$(e,"data-testid","input-and-result")},m(i,s){v(i,e,s),A(n,e,null),b(e,t),A(l,e,null),r=!0},p(i,[s]){const f={};s&2&&(f.content=i[1].input),s&1&&(f.isRunning=i[0]),n.$set(f);const u={};s&2&&(u.content=i[1].results),s&1&&(u.isRunning=i[0]),l.$set(u)},i(i){r||(d(n.$$.fragment,i),d(l.$$.fragment,i),r=!0)},o(i){p(n.$$.fragment,i),p(l.$$.fragment,i),r=!1},d(i){i&&g(e),P(n),P(l)}}}function mo(o,e,n){let t,l,r,i;return oe(o,tt,s=>n(2,r=s)),oe(o,Tt,s=>n(3,i=s)),o.$$.update=()=>{o.$$.dirty&8&&n(1,t=eo(i)),o.$$.dirty&4&&n(0,l=r.workflow.isRunning)},[l,t,r,i]}class go extends ue{constructor(e){super(),ce(this,e,mo,co,se,{})}}const po=o=>({endTime:o&1,duration:o&2}),on=o=>({endTime:o[0],duration:o[1]});function _o(o){let e;const n=o[6].default,t=st(n,o,o[5],on);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,[r]){t&&t.p&&(!e||r&35)&&ft(t,n,l,l[5],e?ut(n,l[5],r,po):at(l[5]),on)},i(l){e||(d(t,l),e=!0)},o(l){p(t,l),e=!1},d(l){t&&t.d(l)}}}function ho(o,e,n){let t,l,r;oe(o,ze,h=>n(4,r=h));let{$$slots:i={},$$scope:s}=e,{workflow:f}=e,{startTime:u}=e;const a=()=>{const h=new Date;return h.setSeconds(h.getSeconds()+1),h};let m;const c=h=>{h&&(clearInterval(m),m=null)},_=h=>{h?(clearInterval(m),m=null):!m&&f.isRunning&&(m=setInterval(()=>{n(0,t=a())},1e3))};return hl(()=>{clearInterval(m),m=null,_e(ze,r=!1,r)}),o.$$set=h=>{"workflow"in h&&n(2,f=h.workflow),"startTime"in h&&n(3,u=h.startTime),"$$scope"in h&&n(5,s=h.$$scope)},o.$$.update=()=>{o.$$.dirty&4&&n(0,t=(f==null?void 0:f.endTime)||a()),o.$$.dirty&9&&n(1,l=wt({start:u,end:t,onlyUnderSecond:!1})),o.$$.dirty&4&&c(f.endTime),o.$$.dirty&16&&_(r)},[t,l,f,u,r,s,i]}class $o extends ue{constructor(e){super(),ce(this,e,ho,_o,se,{workflow:2,startTime:3})}}function ko(o){let e,n,t;const l=o[8].default,r=st(l,o,o[7],null);return{c(){e=ke("rect"),r&&r.c(),this.h()},l(i){e=we(i,"rect",{x:!0,y:!0,width:!0,height:!0,class:!0,fill:!0});var s=H(e);r&&r.l(s),s.forEach(g),this.h()},h(){$(e,"x",o[5]),$(e,"y",o[4]),$(e,"width",o[0]),$(e,"height",o[1]),$(e,"class",n=Ft(o[2])+" svelte-19kmry1"),$(e,"fill",o[3])},m(i,s){v(i,e,s),r&&r.m(e,null),t=!0},p(i,[s]){r&&r.p&&(!t||s&128)&&ft(r,l,i,i[7],t?ut(l,i[7],s,null):at(i[7]),null),(!t||s&32)&&$(e,"x",i[5]),(!t||s&16)&&$(e,"y",i[4]),(!t||s&1)&&$(e,"width",i[0]),(!t||s&2)&&$(e,"height",i[1]),(!t||s&4&&n!==(n=Ft(i[2])+" svelte-19kmry1"))&&$(e,"class",n),(!t||s&8)&&$(e,"fill",i[3])},i(i){t||(d(r,i),t=!0)},o(i){p(r,i),t=!1},d(i){i&&g(e),r&&r.d(i)}}}function wo(o,e,n){let t,l,{$$slots:r={},$$scope:i}=e,{point:s}=e,{width:f}=e,{height:u}=e,{classification:a=void 0}=e,{fill:m="#141414"}=e;return o.$$set=c=>{"point"in c&&n(6,s=c.point),"width"in c&&n(0,f=c.width),"height"in c&&n(1,u=c.height),"classification"in c&&n(2,a=c.classification),"fill"in c&&n(3,m=c.fill),"$$scope"in c&&n(7,i=c.$$scope)},o.$$.update=()=>{o.$$.dirty&64&&n(5,[t,l]=s,t,(n(4,l),n(6,s)))},[f,u,a,m,l,t,s,i,r]}class sn extends ue{constructor(e){super(),ce(this,e,wo,ko,se,{point:6,width:0,height:1,classification:2,fill:3})}}function fn(o){o[7]=o[9].workflow,o[8]=o[9].history}function bo(o){return{c:ae,l:ae,m:ae,p:ae,i:ae,o:ae,d:ae}}function vo(o){fn(o);let e,n,t,l;return n=new gl({props:{workflow:o[7],groups:o[2](o[7],o[8]),readOnly:!0}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(r){e=L(r,"DIV",{class:!0,style:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"class",t="cursor-pointer overflow-auto "+o[3].class),Oe(e,"height",o[0]+"px")},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){fn(r),(!l||i&8&&t!==(t="cursor-pointer overflow-auto "+r[3].class))&&$(e,"class",t),(!l||i&1)&&Oe(e,"height",r[0]+"px")},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function Eo(o){return{c:ae,l:ae,m:ae,p:ae,i:ae,o:ae,d:ae}}function To(o){let e,n,t={ctx:o,current:null,token:null,hasCatch:!1,pending:Eo,then:vo,catch:bo,value:9,blocks:[,,,]};return tr(o[1](),t),{c(){e=ee(),t.block.c()},l(l){e=ee(),t.block.l(l)},m(l,r){v(l,e,r),t.block.m(l,t.anchor=r),t.mount=()=>e.parentNode,t.anchor=e,n=!0},p(l,[r]){o=l,nr(t,o,r)},i(l){n||(d(t.block),n=!0)},o(l){for(let r=0;r<3;r+=1){const i=t.blocks[r];p(i)}n=!1},d(l){l&&g(e),t.block.d(l),t.token=null,t=null}}}function yo(o,e,n){const t=["namespace","workflowId","runId","height"];let l=Me(e,t),{namespace:r}=e,{workflowId:i}=e,{runId:s=""}=e,{height:f=400}=e;const u=async()=>{const[m,c]=await Promise.all([lr({namespace:r,workflowId:i,runId:s}),Ul({namespace:r,workflowId:i,runId:s})]);return{workflow:m.workflow,history:c}},a=(m,c)=>{var _;const h=(_=m==null?void 0:m.pendingActivities)!==null&&_!==void 0?_:[];return ul(c,"ascending",h)};return o.$$set=m=>{e=Le(Le({},e),vt(m)),n(3,l=Me(e,t)),"namespace"in m&&n(4,r=m.namespace),"workflowId"in m&&n(5,i=m.workflowId),"runId"in m&&n(6,s=m.runId),"height"in m&&n(0,f=m.height)},[f,u,a,l,r,i,s]}class Io extends ue{constructor(e){super(),ce(this,e,yo,To,se,{namespace:4,workflowId:5,runId:6,height:0})}}function Ao(o){let e;return{c(){e=X(o[1])},l(n){e=Y(n,o[1])},m(n,t){v(n,e,t)},p(n,t){t&2&&ie(e,n[1])},i:ae,o:ae,d(n){n&&g(e)}}}function Po(o){let e,n;return e=new Il({props:{value:o[1],attributes:o[2],type:o[4],light:!0}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&4&&(r.attributes=t[2]),l&16&&(r.type=t[4]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Wo(o){let e,n,t,l;const r=[So,Co,Do],i=[];function s(f,u){var a;return(a=f[1])!=null&&a.payloads?0:f[0]==="searchAttributes"?1:2}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Do(o){let e,n;return e=new nt({props:{value:o[5],$$slots:{default:[No,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.value=t[5]),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Co(o){let e,n;return e=new nt({props:{key:"searchAttributes",value:{searchAttributes:o[5]},$$slots:{default:[jo,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.value={searchAttributes:t[5]}),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function So(o){let e,n;return e=new nt({props:{value:o[1],key:"payloads",$$slots:{default:[Oo,({decodedValue:t})=>({10:t}),({decodedValue:t})=>t?1024:0]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.value=t[1]),l&3272&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function an(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function No(o){let e=o[10],n,t,l=an(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=an(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function un(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function jo(o){let e=o[10],n,t,l=un(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=un(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function cn(o){let e,n,t,l;return n=new Ae({props:{content:o[10],maxHeight:Ce-o[8]}}),{c(){e=ke("foreignObject"),y(n.$$.fragment),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"x",o[7]),$(e,"y",t=o[6]-o[8]),$(e,"width",o[3]),$(e,"height",Ce-o[8])},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&1024&&(s.content=r[10]),n.$set(s),(!l||i&128)&&$(e,"x",r[7]),(!l||i&64&&t!==(t=r[6]-r[8]))&&$(e,"y",t),(!l||i&8)&&$(e,"width",r[3])},i(r){l||(d(n.$$.fragment,r),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function Oo(o){let e=o[10],n,t,l=cn(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&1024&&se(e,e=r[10])?(ne(),p(l,1,1,ae),le(),l=cn(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Vo(o){let e,n,t,l;const r=[Wo,Po,Ao],i=[];function s(f,u){return typeof f[1]=="object"?0:f[4]!=="none"?1:2}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,[u]){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Ho(o,e,n){let t,l,r,i,{key:s}=e,{value:f}=e,{attributes:u}=e,{point:a=[0,0]}=e,{width:m}=e;const{fontSizeRatio:c}=nl;return o.$$set=_=>{"key"in _&&n(0,s=_.key),"value"in _&&n(1,f=_.value),"attributes"in _&&n(2,u=_.attributes),"point"in _&&n(9,a=_.point),"width"in _&&n(3,m=_.width)},o.$$.update=()=>{o.$$.dirty&512&&n(7,[t,l]=a,t,(n(6,l),n(9,a))),o.$$.dirty&2&&n(5,r=rr(f)),o.$$.dirty&5&&n(4,i=or(s,u))},[s,f,u,m,i,r,l,t,c,a]}class dl extends ue{constructor(e){super(),ce(this,e,Ho,Vo,se,{key:0,value:1,attributes:2,point:9,width:3})}}function mn(o){let e,n;return e=new Se({props:{startPoint:[o[10]-o[6],o[15]],endPoint:[o[10]+o[14],o[15]],status:o[1],strokeWidth:o[6]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&33856&&(r.startPoint=[t[10]-t[6],t[15]]),l&50176&&(r.endPoint=[t[10]+t[14],t[15]]),l&2&&(r.status=t[1]),l&64&&(r.strokeWidth=t[6]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function dn(o){let e,n;return e=new Ie({props:{name:o[7],x:o[4]==="end"?o[10]-o[12]-o[6]:o[10],y:o[15]-8,class:o[5]?"text-white":"text-primary"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&128&&(r.name=t[7]),l&5200&&(r.x=t[4]==="end"?t[10]-t[12]-t[6]:t[10]),l&32768&&(r.y=t[15]-8),l&32&&(r.class=t[5]?"text-white":"text-primary"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Fo(o){let e,n,t,l,r,i=o[5]&&mn(o),s=o[11]&&dn(o);const f=o[20].default,u=st(f,o,o[19],null);return{c(){i&&i.c(),e=R(),s&&s.c(),n=R(),t=ke("text"),u&&u.c(),this.h()},l(a){i&&i.l(a),e=B(a),s&&s.l(a),n=B(a),t=we(a,"text",{class:!0,x:!0,y:!0,"font-size":!0,"font-weight":!0,"text-anchor":!0});var m=H(t);u&&u.l(m),m.forEach(g),this.h()},h(){$(t,"class",l="cursor-pointer select-none outline-none "+o[0]+" text-primary svelte-1kes4n8"),$(t,"x",o[13]),$(t,"y",o[15]),$(t,"font-size",o[2]),$(t,"font-weight",o[3]),$(t,"text-anchor",o[4]),ye(t,"label",o[8]),ye(t,"backdrop",o[5])},m(a,m){i&&i.m(a,m),v(a,e,m),s&&s.m(a,m),v(a,n,m),v(a,t,m),u&&u.m(t,null),o[21](t),r=!0},p(a,[m]){a[5]?i?(i.p(a,m),m&32&&d(i,1)):(i=mn(a),i.c(),d(i,1),i.m(e.parentNode,e)):i&&(ne(),p(i,1,1,()=>{i=null}),le()),a[11]?s?(s.p(a,m),m&2048&&d(s,1)):(s=dn(a),s.c(),d(s,1),s.m(n.parentNode,n)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),u&&u.p&&(!r||m&524288)&&ft(u,f,a,a[19],r?ut(f,a[19],m,null):at(a[19]),null),(!r||m&1&&l!==(l="cursor-pointer select-none outline-none "+a[0]+" text-primary svelte-1kes4n8"))&&$(t,"class",l),(!r||m&8192)&&$(t,"x",a[13]),(!r||m&32768)&&$(t,"y",a[15]),(!r||m&4)&&$(t,"font-size",a[2]),(!r||m&8)&&$(t,"font-weight",a[3]),(!r||m&16)&&$(t,"text-anchor",a[4]),(!r||m&257)&&ye(t,"label",a[8]),(!r||m&33)&&ye(t,"backdrop",a[5])},i(a){r||(d(i),d(s),d(u,a),r=!0)},o(a){p(i),p(s),p(u,a),r=!1},d(a){a&&(g(e),g(n),g(t)),i&&i.d(a),s&&s.d(a),u&&u.d(a),o[21](null)}}}function Ro(o,e,n){let t,l,r,i,s,f,{$$slots:u={},$$scope:a}=e;var m;let{point:c=[0,0]}=e,{category:_=void 0}=e,{status:h="none"}=e,{fontSize:D="14px"}=e,{fontWeight:S="400"}=e,{textAnchor:O="start"}=e,{backdrop:q=!1}=e,{backdropHeight:Q=0}=e,{icon:W=void 0}=e,{config:z=void 0}=e,{label:N=!1}=e,C;function V(k){it[k?"unshift":"push"](()=>{C=k,n(9,C)})}return o.$$set=k=>{"point"in k&&n(16,c=k.point),"category"in k&&n(0,_=k.category),"status"in k&&n(1,h=k.status),"fontSize"in k&&n(2,D=k.fontSize),"fontWeight"in k&&n(3,S=k.fontWeight),"textAnchor"in k&&n(4,O=k.textAnchor),"backdrop"in k&&n(5,q=k.backdrop),"backdropHeight"in k&&n(6,Q=k.backdropHeight),"icon"in k&&n(7,W=k.icon),"config"in k&&n(17,z=k.config),"label"in k&&n(8,N=k.label),"$$scope"in k&&n(19,a=k.$$scope)},o.$$.update=()=>{o.$$.dirty&65536&&n(10,[t,l]=c,t,(n(15,l),n(16,c))),o.$$.dirty&131200&&n(11,r=W&&z),o.$$.dirty&262656&&n(12,i=(n(18,m=C==null?void 0:C.getBBox())===null||m===void 0?void 0:m.width)||0),o.$$.dirty&6144&&n(14,s=r?i+36:i+12),o.$$.dirty&134160&&n(13,f=r&&O==="start"?t+z.radius*2:t)},[_,h,D,S,O,q,Q,W,N,C,t,r,i,f,s,l,c,z,m,a,u,V]}class At extends ue{constructor(e){super(),ce(this,e,Ro,Fo,se,{point:16,category:0,status:1,fontSize:2,fontWeight:3,textAnchor:4,backdrop:5,backdropHeight:6,icon:7,config:17,label:8})}}function gn(o,e,n){const t=o.slice();return t[27]=e[n][0],t[28]=e[n][1],t[30]=n,t}function pn(o,e,n){const t=o.slice();t[27]=e[n][0],t[28]=e[n][1],t[30]=n;const l=t[8]+t[30]*Ce;return t[2]=l,t}function Bo(o){let e=ot(o[27])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l[0]&32&&e!==(e=ot(t[27])+"")&&ie(n,e)},d(t){t&&g(n)}}}function _n(o,e){let n,t,l,r;return t=new At({props:{point:[e[16],e[2]],label:!0,$$slots:{default:[Bo]},$$scope:{ctx:e}}}),l=new dl({props:{point:[e[16],e[2]+1.5*e[21]],key:e[27],value:e[28],attributes:e[3],width:e[15]}}),{key:o,first:null,c(){n=ee(),y(t.$$.fragment),y(l.$$.fragment),this.h()},l(i){n=ee(),I(t.$$.fragment,i),I(l.$$.fragment,i),this.h()},h(){this.first=n},m(i,s){v(i,n,s),A(t,i,s),A(l,i,s),r=!0},p(i,s){e=i;const f={};s[0]&65824&&(f.point=[e[16],e[2]]),s[0]&32|s[1]&2&&(f.$$scope={dirty:s,ctx:e}),t.$set(f);const u={};s[0]&65824&&(u.point=[e[16],e[2]+1.5*e[21]]),s[0]&32&&(u.key=e[27]),s[0]&32&&(u.value=e[28]),s[0]&8&&(u.attributes=e[3]),s[0]&32768&&(u.width=e[15]),l.$set(u)},i(i){r||(d(t.$$.fragment,i),d(l.$$.fragment,i),r=!0)},o(i){p(t.$$.fragment,i),p(l.$$.fragment,i),r=!1},d(i){i&&g(n),P(t,i),P(l,i)}}}function hn(o,e){let n,t,l=ot(e[27])+"",r,i,s,f,u;return f=new dl({props:{point:[e[1]+e[20],e[8]+e[30]*e[21]],key:e[27],value:e[28],attributes:e[3],width:e[7]}}),{key:o,first:null,c(){n=M("div"),t=M("div"),r=X(l),i=R(),s=M("div"),y(f.$$.fragment),this.h()},l(a){n=L(a,"DIV",{class:!0,style:!0});var m=H(n);t=L(m,"DIV",{class:!0});var c=H(t);r=Y(c,l),c.forEach(g),i=B(m),s=L(m,"DIV",{class:!0});var _=H(s);I(f.$$.fragment,_),_.forEach(g),m.forEach(g),this.h()},h(){$(t,"class","font-medium leading-3 text-[#C9D9F0]"),$(s,"class","text-wrap break-all leading-4"),$(n,"class","flex flex-col gap-0 text-sm text-white"),Oe(n,"height",2*e[21]+"px"),this.first=n},m(a,m){v(a,n,m),b(n,t),b(t,r),b(n,i),b(n,s),A(f,s,null),u=!0},p(a,m){e=a,(!u||m[0]&16)&&l!==(l=ot(e[27])+"")&&ie(r,l);const c={};m[0]&274&&(c.point=[e[1]+e[20],e[8]+e[30]*e[21]]),m[0]&16&&(c.key=e[27]),m[0]&16&&(c.value=e[28]),m[0]&8&&(c.attributes=e[3]),m[0]&128&&(c.width=e[7]),f.$set(c)},i(a){u||(d(f.$$.fragment,a),u=!0)},o(a){p(f.$$.fragment,a),u=!1},d(a){a&&g(n),P(f)}}}function $n(o){let e,n=o[0].eventList.length,t,l=kn(o);return{c(){e=ke("foreignObject"),l.c(),this.h()},l(r){e=we(r,"foreignObject",{x:!0,y:!0,width:!0,height:!0});var i=H(e);l.l(i),i.forEach(g),this.h()},h(){$(e,"x",o[1]),$(e,"y",o[13]),$(e,"width",o[12]),$(e,"height",o[11])},m(r,i){v(r,e,i),l.m(e,null),t=!0},p(r,i){i[0]&1&&se(n,n=r[0].eventList.length)?(ne(),p(l,1,1,ae),le(),l=kn(r),l.c(),d(l,1),l.m(e,null)):l.p(r,i),(!t||i[0]&2)&&$(e,"x",r[1]),(!t||i[0]&8192)&&$(e,"y",r[13]),(!t||i[0]&4096)&&$(e,"width",r[12]),(!t||i[0]&2048)&&$(e,"height",r[11])},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(e),l.d(r)}}}function kn(o){let e,n;return e=new Io({props:{namespace:o[18],workflowId:o[9].attributes.workflowExecution.workflowId,runId:o[9].attributes.workflowExecution.runId,height:o[11],width:o[12],class:"overflow-x-hidden rounded-br rounded-tr border-b-2 border-r-2 border-t-2 border-subtle bg-primary"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&262144&&(r.namespace=t[18]),l[0]&512&&(r.workflowId=t[9].attributes.workflowExecution.workflowId),l[0]&512&&(r.runId=t[9].attributes.workflowExecution.runId),l[0]&2048&&(r.height=t[11]),l[0]&4096&&(r.width=t[12]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Go(o){var fe,pe,Fe,Ue;let e,n,t,l,r,i,s,f=(o[19]?rt(o[19]):o[0].label)+"",u,a,m,c,_,h=xe({start:(pe=(fe=o[0])==null?void 0:fe.initialEvent)==null?void 0:pe.eventTime,end:(Ue=(Fe=o[0])==null?void 0:Fe.lastEvent)==null?void 0:Ue.eventTime,includeMilliseconds:!0})+"",D,S,O,q=U("common.close")+"",Q,W,z,N=[],C=new Map,V,k,w=[],T=new Map,E,j,F,te,Z;n=new sn({props:{point:[o[1],o[2]],width:o[7],height:o[17],fill:"#465A78"}}),t=new sn({props:{point:[o[1],o[2]],width:o[7],height:o[22],fill:"#1E293B"}}),W=new Ie({props:{name:"close"}});let x=he(o[5]);const ge=J=>J[27];for(let J=0;JJ[27];for(let J=0;J{G=null}),le())},i(J){if(!F){d(n.$$.fragment,J),d(t.$$.fragment,J),d(W.$$.fragment,J);for(let K=0;Kn(25,z=F));let{group:N}=e,{canvasWidth:C}=e,{x:V=0}=e,{y:k}=e;const{gutter:w,fontSizeRatio:T,height:E}=nl,j=()=>il(N);return o.$$set=F=>{"group"in F&&n(0,N=F.group),"canvasWidth"in F&&n(23,C=F.canvasWidth),"x"in F&&n(1,V=F.x),"y"in F&&n(2,k=F.y)},o.$$.update=()=>{o.$$.dirty[0]&1&&n(19,t=(N==null?void 0:N.finalClassification)||(N==null?void 0:N.classification)||(N==null?void 0:N.label)),o.$$.dirty[0]&1&&N!=null&&N.pendingActivity&&(N.pendingActivity.attempt>1?n(19,t="Retrying"):n(19,t="Pending")),o.$$.dirty[0]&33554432&&n(18,{namespace:l}=z.params,l),o.$$.dirty[0]&8388608&&n(7,r=C),o.$$.dirty[0]&129&&n(17,i=ll(N,r)),o.$$.dirty[0]&128&&n(24,s=r>=960),o.$$.dirty[0]&16777346&&n(16,f=V+w+(s?.666*r:.5*r)),o.$$.dirty[0]&16777344&&n(15,u=(s?.333*r:.5*r)-2*w),o.$$.dirty[0]&4&&n(8,a=E+k+T),o.$$.dirty[0]&1&&n(3,O=Al(N)),o.$$.dirty[0]&8&&n(4,Q=Object.entries(O).filter(([,F])=>typeof F!="object")),o.$$.dirty[0]&16777232&&n(6,m=T*Q.length*(s?1:2)+T),o.$$.dirty[0]&16777344&&n(14,c=(s?.666*r:.5*r)-w),o.$$.dirty[0]&320&&n(13,_=a+m),o.$$.dirty[0]&16777344&&n(12,h=s?.666*r:.5*r),o.$$.dirty[0]&8&&n(5,q=Object.entries(O).filter(([,F])=>typeof F=="object")),o.$$.dirty[0]&96&&n(11,D=Math.max(Pl,Ce*q.length-m)),o.$$.dirty[0]&1&&n(10,S=N.displayName),o.$$.dirty[0]&1&&n(9,W=N&&N.eventList.find(Hl))},[N,V,k,O,Q,q,m,r,a,W,S,D,h,_,c,u,f,i,l,t,w,T,E,C,s,z,j]}class Lo extends ue{constructor(e){super(),ce(this,e,Mo,Go,se,{group:0,canvasWidth:23,x:1,y:2},null,[-1,-1])}}function wn(o,e,n){const t=o.slice();t[8]=e[n],t[12]=n;const l=t[0]+t[12]*t[5];t[9]=l;const r=t[1]+t[6]*2;return t[10]=r,t}function zo(o){let e,n;return e=new Se({props:{strokeWidth:.5,startPoint:[o[9],0],endPoint:[o[9],o[1]]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&33&&(r.startPoint=[t[9],0]),l&35&&(r.endPoint=[t[9],t[1]]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Uo(o){let e,n=xe({start:o[2],end:new Date(new Date(o[2].toString()).getTime()+o[3]/Ne*o[12]),includeMilliseconds:o[3]/Ne<1e3})+"",t,l,r,i;return{c(){e=ke("text"),t=X(n),this.h()},l(s){e=we(s,"text",{fill:!0,"font-size":!0,transform:!0,x:!0,y:!0,class:!0});var f=H(e);t=Y(f,n),f.forEach(g),this.h()},h(){$(e,"fill","#fff"),$(e,"font-size","12"),$(e,"transform",l="rotate(90, "+o[9]+", "+o[10]+")"),$(e,"x",r=o[9]-o[6]),$(e,"y",i=o[10]),$(e,"class","svelte-1huxcs7")},m(s,f){v(s,e,f),b(e,t)},p(s,f){f&12&&n!==(n=xe({start:s[2],end:new Date(new Date(s[2].toString()).getTime()+s[3]/Ne*s[12]),includeMilliseconds:s[3]/Ne<1e3})+"")&&ie(t,n),f&35&&l!==(l="rotate(90, "+s[9]+", "+s[10]+")")&&$(e,"transform",l),f&33&&r!==(r=s[9]-s[6])&&$(e,"x",r),f&2&&i!==(i=s[10])&&$(e,"y",i)},d(s){s&&g(e)}}}function bn(o){let e,n,t,l=o[12]!==0&&zo(o),r=o[12]!==0&&Uo(o);return{c(){l&&l.c(),e=R(),r&&r.c(),n=ee()},l(i){l&&l.l(i),e=B(i),r&&r.l(i),n=ee()},m(i,s){l&&l.m(i,s),v(i,e,s),r&&r.m(i,s),v(i,n,s),t=!0},p(i,s){i[12]!==0&&l.p(i,s),i[12]!==0&&r.p(i,s)},i(i){t||(d(l),t=!0)},o(i){p(l),t=!1},d(i){i&&(g(e),g(n)),l&&l.d(i),r&&r.d(i)}}}function qo(o){let e,n,t,l;e=new Se({props:{strokeWidth:o[6]/2,startPoint:[o[0],o[1]],endPoint:[o[0]+o[4],o[1]]}});let r=he(Array(Ne)),i=[];for(let f=0;fp(i[f],1,1,()=>{i[f]=null});return{c(){y(e.$$.fragment),n=R();for(let f=0;f{"x1"in m&&n(0,r=m.x1),"x2"in m&&n(7,i=m.x2),"timelineHeight"in m&&n(1,s=m.timelineHeight),"startTime"in m&&n(2,f=m.startTime),"duration"in m&&n(3,u=m.duration)},o.$$.update=()=>{o.$$.dirty&129&&n(4,t=i-r),o.$$.dirty&16&&n(5,l=t/Ne)},[r,s,f,u,t,l,a,i]}class Jo extends ue{constructor(e){super(),ce(this,e,Qo,qo,se,{x1:0,x2:7,timelineHeight:1,startTime:2,duration:3})}}function vn(o,e,n){const t=o.slice();t[20]=e[n],t[24]=n;const l=t[7][t[24]+1];t[21]=l;const r=t[5]===t[24];return t[22]=r,t}function En(o){let e,n;return e=new Se({props:{startPoint:[o[20],o[0]],endPoint:[o[21],o[0]],category:o[1].category,classification:o[1].lastEvent.classification,strokeWidth:o[11]*2,scheduling:o[24]===0&&o[1].lastEvent.classification==="Completed"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&129&&(r.startPoint=[t[20],t[0]]),l&129&&(r.endPoint=[t[21],t[0]]),l&2&&(r.category=t[1].category),l&2&&(r.classification=t[1].lastEvent.classification),l&2&&(r.scheduling=t[24]===0&&t[1].lastEvent.classification==="Completed"),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Tn(o){let e,n;return e=new Se({props:{startPoint:[o[20],o[0]],endPoint:[o[2]-o[10],o[0]],category:o[8]?o[8].attempt>1?"retry":"pending":o[1].category,classification:o[1].lastEvent.classification,pending:!0,strokeWidth:o[11]*2}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&129&&(r.startPoint=[t[20],t[0]]),l&5&&(r.endPoint=[t[2]-t[10],t[0]]),l&258&&(r.category=t[8]?t[8].attempt>1?"retry":"pending":t[1].category),l&2&&(r.classification=t[1].lastEvent.classification),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function yn(o){let e,n,t,l;const r=[Yo,Xo],i=[];function s(f,u){return f[8]?0:1}return e=s(o),n=i[e]=r[e](o),{c(){n.c(),t=ee()},l(f){n.l(f),t=ee()},m(f,u){i[e].m(f,u),v(f,t,u),l=!0},p(f,u){let a=e;e=s(f),e===a?i[e].p(f,u):(ne(),p(i[a],1,1,()=>{i[a]=null}),le(),n=i[e],n?n.p(f,u):(n=i[e]=r[e](f),n.c()),d(n,1),n.m(t.parentNode,t))},i(f){l||(d(n),l=!0)},o(f){p(n),l=!1},d(f){f&&g(t),i[e].d(f)}}}function Xo(o){let e,n;return e=new At({props:{point:o[4],textAnchor:o[6],backdrop:o[3],backdropHeight:o[11]*2,config:Ve,$$slots:{default:[Ko]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.point=t[4]),l&64&&(r.textAnchor=t[6]),l&8&&(r.backdrop=t[3]),l&33554434&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Yo(o){let e=o[8].attempt,n,t,l=In(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i&256&&se(e,e=r[8].attempt)?(ne(),p(l,1,1,ae),le(),l=In(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Ko(o){var l;let e=((l=o[1])==null?void 0:l.displayName)+"",n,t;return{c(){n=X(e),t=R()},l(r){n=Y(r,e),t=B(r)},m(r,i){v(r,n,i),v(r,t,i)},p(r,i){var s;i&2&&e!==(e=((s=r[1])==null?void 0:s.displayName)+"")&&ie(n,e)},d(r){r&&(g(n),g(t))}}}function Zo(o){var _;let e=((_=o[1])==null?void 0:_.displayName)+"",n,t,l=U("workflows.attempt")+"",r,i,s=o[8].attempt+"",f,u,a=(o[8].maximumAttempts||"∞")+"",m,c;return{c(){n=X(e),t=X(" • "),r=X(l),i=R(),f=X(s),u=X(" / "),m=X(a),c=R()},l(h){n=Y(h,e),t=Y(h," • "),r=Y(h,l),i=B(h),f=Y(h,s),u=Y(h," / "),m=Y(h,a),c=B(h)},m(h,D){v(h,n,D),v(h,t,D),v(h,r,D),v(h,i,D),v(h,f,D),v(h,u,D),v(h,m,D),v(h,c,D)},p(h,D){var S;D&2&&e!==(e=((S=h[1])==null?void 0:S.displayName)+"")&&ie(n,e),D&256&&s!==(s=h[8].attempt+"")&&ie(f,s),D&256&&a!==(a=(h[8].maximumAttempts||"∞")+"")&&ie(m,a)},d(h){h&&(g(n),g(t),g(r),g(i),g(f),g(u),g(m),g(c))}}}function In(o){let e,n;return e=new At({props:{point:o[4],textAnchor:o[6],backdrop:o[3],backdropHeight:o[11]*2,config:Ve,icon:"retry",$$slots:{default:[Zo]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.point=t[4]),l&64&&(r.textAnchor=t[6]),l&8&&(r.backdrop=t[3]),l&33554690&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function An(o){var u;let e,n,t,l,r,i=o[21]&&En(o),s=!o[21]&&o[1].isPending&&Tn(o),f=o[22]&&yn(o);return l=new gt({props:{point:[o[20],o[0]],classification:(u=o[1].eventList[o[24]])==null?void 0:u.classification,icon:Ye[o[1].category],r:o[11]}}),{c(){i&&i.c(),e=ee(),s&&s.c(),n=ee(),f&&f.c(),t=ee(),y(l.$$.fragment)},l(a){i&&i.l(a),e=ee(),s&&s.l(a),n=ee(),f&&f.l(a),t=ee(),I(l.$$.fragment,a)},m(a,m){i&&i.m(a,m),v(a,e,m),s&&s.m(a,m),v(a,n,m),f&&f.m(a,m),v(a,t,m),A(l,a,m),r=!0},p(a,m){var _;a[21]?i?(i.p(a,m),m&128&&d(i,1)):(i=En(a),i.c(),d(i,1),i.m(e.parentNode,e)):i&&(ne(),p(i,1,1,()=>{i=null}),le()),!a[21]&&a[1].isPending?s?(s.p(a,m),m&130&&d(s,1)):(s=Tn(a),s.c(),d(s,1),s.m(n.parentNode,n)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),a[22]?f?(f.p(a,m),m&32&&d(f,1)):(f=yn(a),f.c(),d(f,1),f.m(t.parentNode,t)):f&&(ne(),p(f,1,1,()=>{f=null}),le());const c={};m&129&&(c.point=[a[20],a[0]]),m&2&&(c.classification=(_=a[1].eventList[a[24]])==null?void 0:_.classification),m&2&&(c.icon=Ye[a[1].category]),l.$set(c)},i(a){r||(d(i),d(s),d(f),d(l.$$.fragment,a),r=!0)},o(a){p(i),p(s),p(f),p(l.$$.fragment,a),r=!1},d(a){a&&(g(e),g(n),g(t)),i&&i.d(a),s&&s.d(a),f&&f.d(a),P(l,a)}}}function xo(o){let e,n,t,l,r=he(o[7]),i=[];for(let f=0;fp(i[f],1,1,()=>{i[f]=null});return{c(){e=ke("g");for(let f=0;f{const w=wt({start:_,end:C,onlyUnderSecond:!1}),T=m.eventList.map(Z=>{const ge=wt({start:_,end:Z.eventTime,onlyUnderSecond:!1})/w;return Math.round(ge*V)+Q}),{textAnchor:E,textIndex:j,textPosition:F,backdrop:te}=Wl(T,k,V,m.isPending,Ve);return{points:T,textAnchor:E,textIndex:j,textPosition:F,backdrop:te}},N=()=>{O||il(m)};return o.$$set=C=>{"y"in C&&n(0,a=C.y),"group"in C&&n(1,m=C.group),"activeGroups"in C&&n(14,c=C.activeGroups),"startTime"in C&&n(15,_=C.startTime),"endTime"in C&&n(16,h=C.endTime),"canvasWidth"in C&&n(2,D=C.canvasWidth),"active"in C&&n(13,S=C.active),"readOnly"in C&&n(17,O=C.readOnly)},o.$$.update=()=>{o.$$.dirty&4&&n(18,t=D-2*Q),o.$$.dirty&16386&&n(13,S=!c.length||c.includes(m.id)),o.$$.dirty&2&&n(8,l=m==null?void 0:m.pendingActivity),o.$$.dirty&327681&&n(7,{points:r,textAnchor:i,textIndex:s,textPosition:f,backdrop:u}=z(h,t,a),r,(n(6,i),n(16,h),n(18,t),n(0,a),n(2,D)),(n(5,s),n(16,h),n(18,t),n(0,a),n(2,D)),(n(4,f),n(16,h),n(18,t),n(0,a),n(2,D)),(n(3,u),n(16,h),n(18,t),n(0,a),n(2,D)))},[a,m,D,u,f,s,i,r,l,q,Q,W,N,S,c,_,h,O,t]}class ti extends ue{constructor(e){super(),ce(this,e,ei,xo,se,{y:0,group:1,activeGroups:14,startTime:15,endTime:16,canvasWidth:2,active:13,readOnly:17})}}function ni(o){let e,n,t,l,r,i,s;return n=new Se({props:{startPoint:[o[2],o[1]],endPoint:[o[3],o[1]],classification:o[0].status,strokeWidth:o[4]*2,pending:o[0].isRunning}}),t=new gt({props:{point:[o[2],o[1]],classification:o[0].status,r:o[4]}}),l=new Ie({props:{name:"workflow",x:o[2]-o[4]/2,y:o[1]-o[4]/2,width:o[4],height:o[4],strokeWidth:"4",class:"text-black"}}),r=new gt({props:{point:[o[3],o[1]],classification:o[0].status,r:o[4]}}),i=new Ie({props:{name:"workflow",x:o[3]-o[4]/2,y:o[1]-o[4]/2,width:o[4],height:o[4],strokeWidth:"4",class:"text-black"}}),{c(){e=ke("g"),y(n.$$.fragment),y(t.$$.fragment),y(l.$$.fragment),y(r.$$.fragment),y(i.$$.fragment),this.h()},l(f){e=we(f,"g",{role:!0,tabindex:!0,class:!0,height:!0});var u=H(e);I(n.$$.fragment,u),I(t.$$.fragment,u),I(l.$$.fragment,u),I(r.$$.fragment,u),I(i.$$.fragment,u),u.forEach(g),this.h()},h(){$(e,"role","button"),$(e,"tabindex","0"),$(e,"class","relative cursor-pointer svelte-k9v32"),$(e,"height",o[5])},m(f,u){v(f,e,u),A(n,e,null),A(t,e,null),A(l,e,null),A(r,e,null),A(i,e,null),s=!0},p(f,[u]){const a={};u&6&&(a.startPoint=[f[2],f[1]]),u&10&&(a.endPoint=[f[3],f[1]]),u&1&&(a.classification=f[0].status),u&1&&(a.pending=f[0].isRunning),n.$set(a);const m={};u&6&&(m.point=[f[2],f[1]]),u&1&&(m.classification=f[0].status),t.$set(m);const c={};u&4&&(c.x=f[2]-f[4]/2),u&2&&(c.y=f[1]-f[4]/2),l.$set(c);const _={};u&10&&(_.point=[f[3],f[1]]),u&1&&(_.classification=f[0].status),r.$set(_);const h={};u&8&&(h.x=f[3]-f[4]/2),u&2&&(h.y=f[1]-f[4]/2),i.$set(h)},i(f){s||(d(n.$$.fragment,f),d(t.$$.fragment,f),d(l.$$.fragment,f),d(r.$$.fragment,f),d(i.$$.fragment,f),s=!0)},o(f){p(n.$$.fragment,f),p(t.$$.fragment,f),p(l.$$.fragment,f),p(r.$$.fragment,f),p(i.$$.fragment,f),s=!1},d(f){f&&g(e),P(n),P(t),P(l),P(r),P(i)}}}function li(o,e,n){let t,l,{workflow:r}=e,{length:i}=e,{y:s}=e;const{radius:f,height:u,gutter:a}=Ve;return o.$$set=m=>{"workflow"in m&&n(0,r=m.workflow),"length"in m&&n(6,i=m.length),"y"in m&&n(1,s=m.y)},o.$$.update=()=>{o.$$.dirty&68&&n(3,l=t+i-2*a)},n(2,t=a),[r,s,t,l,f,u,i]}class ri extends ue{constructor(e){super(),ce(this,e,li,ni,se,{workflow:0,length:6,y:1})}}function Pn(o,e,n){const t=o.slice();t[28]=e[n],t[30]=n;const l=(t[30]+2)*t[15]+Cl(t[2],t[28],t[8],t[6],t[14]);return t[5]=l,t}function oi(o){let e,n;return e=new Ie({props:{name:o[9]===360?"chevron-down":"chevron-up",x:o[6]-2*o[17],y:o[17]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&512&&(r.name=t[9]===360?"chevron-down":"chevron-up"),l[0]&64&&(r.x=t[6]-2*t[17]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Wn(o){let e=o[28].eventList.length,n,t,l=Dn(o);return{c(){l.c(),n=ee()},l(r){l.l(r),n=ee()},m(r,i){l.m(r,i),v(r,n,i),t=!0},p(r,i){i[0]&256&&se(e,e=r[28].eventList.length)?(ne(),p(l,1,1,ae),le(),l=Dn(r),l.c(),d(l,1),l.m(n.parentNode,n)):l.p(r,i)},i(r){t||(d(l),t=!0)},o(r){p(l),t=!1},d(r){r&&g(n),l.d(r)}}}function Dn(o){let e,n;return e=new ti({props:{y:o[5],group:o[28],activeGroups:o[2],canvasWidth:o[6],startTime:o[12],endTime:o[26],readOnly:o[3]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&16708&&(r.y=t[5]),l[0]&256&&(r.group=t[28]),l[0]&4&&(r.activeGroups=t[2]),l[0]&64&&(r.canvasWidth=t[6]),l[0]&4096&&(r.startTime=t[12]),l[0]&67108864&&(r.endTime=t[26]),l[0]&8&&(r.readOnly=t[3]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Cn(o){let e,n;return e=new Lo({props:{y:o[5]+1.33*o[17],group:o[28],canvasWidth:o[6]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l[0]&16708&&(r.y=t[5]+1.33*t[17]),l[0]&256&&(r.group=t[28]),l[0]&64&&(r.canvasWidth=t[6]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Sn(o,e){let n,t,l=e[2].includes(e[28].id),r,i,s=e[5]>e[10]-2*e[15]&&e[5]e[10]-2*e[15]&&e[5]{s=null}),le()),a[0]&260&&(l=e[2].includes(e[28].id)),l?f?(f.p(e,a),a[0]&260&&d(f,1)):(f=Cn(e),f.c(),d(f,1),f.m(r.parentNode,r)):f&&(ne(),p(f,1,1,()=>{f=null}),le())},i(u){i||(d(s),d(f),i=!0)},o(u){p(s),p(f),i=!1},d(u){u&&(g(n),g(t),g(r)),s&&s.d(u),f&&f.d(u)}}}function ii(o){let e,n,t,l,r,i=de(o[12],o[13])+"",s,f,u,a=de(o[26],o[13])+"",m,c,_,h,D,S,O,q,Q=[],W=new Map,z,N;e=new er({props:{size:"xs",variant:"ghost",class:"sticky left-0.5 top-1",$$slots:{default:[oi]},$$scope:{ctx:o}}}),e.$on("click",o[18]),D=new Se({props:{startPoint:[o[16],0],endPoint:[o[16],o[7]],strokeWidth:o[17]/2}}),S=new Se({props:{startPoint:[o[6]-o[16],0],endPoint:[o[6]-o[16],o[7]],strokeWidth:o[17]/2}}),O=new Jo({props:{x1:o[16]-o[17]/4,x2:o[6]-o[16]+o[17]/4,timelineHeight:o[7],startTime:o[12],duration:o[27]}}),q=new ri({props:{workflow:o[1],y:o[15],length:o[6]}});let C=he(o[8]);const V=k=>k[28].id;for(let k=0;k({26:s,27:f}),({endTime:s,duration:f})=>[(s?67108864:0)|(f?134217728:0)]]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(s){e=L(s,"DIV",{class:!0,style:!0});var f=H(e);I(n.$$.fragment,f),f.forEach(g),this.h()},h(){$(e,"class","relative h-auto overflow-auto border-b-2 border-subtle"),Oe(e,"max-height",o[9]+"px"),tl(()=>o[25].call(e))},m(s,f){v(s,e,f),A(n,e,null),t=kl(e,o[25].bind(e)),l=!0,r||(i=Ge(e,"scroll",o[19]),r=!0)},p(s,f){const u={};f[0]&2&&(u.workflow=s[1]),f[0]&4096&&(u.startTime=s[12]),f[0]&201359359|f[1]&1&&(u.$$scope={dirty:f,ctx:s}),n.$set(u),(!l||f[0]&512)&&Oe(e,"max-height",s[9]+"px")},i(s){l||(d(n.$$.fragment,s),l=!0)},o(s){p(n.$$.fragment,s),l=!1},d(s){s&&g(e),P(n),t(),r=!1,i()}}}function fi(o,e,n){let t,l,r,i,s,f,u,a,m;oe(o,Tt,j=>n(23,f=j)),oe(o,$t,j=>n(24,u=j)),oe(o,lt,j=>n(13,a=j)),oe(o,Xe,j=>n(14,m=j));var c;let{x:_=0}=e,{y:h=0}=e,{workflow:D}=e,{groups:S}=e,{activeGroups:O=[]}=e,{readOnly:q=!1}=e,{workflowTaskFailedError:Q=void 0}=e;const{height:W,gutter:z,radius:N}=Ve;let C=0,V=360,k=0;const w=()=>{V===360?n(9,V=800):n(9,V=360)},T=j=>{var F;n(10,k=(F=j==null?void 0:j.target)===null||F===void 0?void 0:F.scrollTop)};function E(){C=this.clientWidth,n(6,C)}return o.$$set=j=>{"x"in j&&n(0,_=j.x),"y"in j&&n(5,h=j.y),"workflow"in j&&n(1,D=j.workflow),"groups"in j&&n(20,S=j.groups),"activeGroups"in j&&n(2,O=j.activeGroups),"readOnly"in j&&n(3,q=j.readOnly),"workflowTaskFailedError"in j&&n(4,Q=j.workflowTaskFailedError)},o.$$.update=()=>{o.$$.dirty[0]&17825792&&n(8,t=Dl(S,u)),o.$$.dirty[0]&10485762&&n(12,l=(n(21,c=f[0])===null||c===void 0?void 0:c.eventTime)||D.startTime),o.$$.dirty[0]&324&&n(22,r=O.map(j=>{const F=t.find(te=>te.id===j);return F?ll(F,C):0}).reduce((j,F)=>j+F,0)),o.$$.dirty[0]&4194560&&n(7,i=Math.max(W*(t.length+2),120)+r),o.$$.dirty[0]&128&&n(11,s=i+140)},[_,D,O,q,Q,h,C,i,t,V,k,s,l,a,m,W,z,N,w,T,S,c,r,f,u,E]}class gl extends ue{constructor(e){super(),ce(this,e,fi,si,se,{x:0,y:5,workflow:1,groups:20,activeGroups:2,readOnly:3,workflowTaskFailedError:4},null,[-1,-1])}}function Nn(o){let e,n=U("common.attempt")+"",t,l,r,i=o[0].attempt+"",s;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),s=X(i),this.h()},l(f){e=L(f,"P",{});var u=H(e);t=Y(u,n),l=B(u),r=L(u,"SPAN",{class:!0});var a=H(r);s=Y(a,i),a.forEach(g),u.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(f,u){v(f,e,u),b(e,t),b(e,l),b(e,r),b(r,s)},p(f,u){u&1&&i!==(i=f[0].attempt+"")&&ie(s,i)},d(f){f&&g(e)}}}function jn(o){let e,n=U("nexus.last-attempt-completed-time")+"",t,l,r,i;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),i=X(o[4]),this.h()},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),l=B(f),r=L(f,"SPAN",{class:!0});var u=H(r);i=Y(u,o[4]),u.forEach(g),f.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(s,f){v(s,e,f),b(e,t),b(e,l),b(e,r),b(r,i)},p(s,f){f&16&&ie(i,s[4])},d(s){s&&g(e)}}}function On(o){let e,n=U("nexus.next-attempt-scheduled-time")+"",t,l,r,i;return{c(){e=M("p"),t=X(n),l=R(),r=M("span"),i=X(o[3]),this.h()},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),l=B(f),r=L(f,"SPAN",{class:!0});var u=H(r);i=Y(u,o[3]),u.forEach(g),f.forEach(g),this.h()},h(){$(r,"class","badge svelte-o7lh0s")},m(s,f){v(s,e,f),b(e,t),b(e,l),b(e,r),b(r,i)},p(s,f){f&8&&ie(i,s[3])},d(s){s&&g(e)}}}function Vn(o){let e,n,t=U("nexus.last-attempt-failure")+"",l,r,i,s;return i=new Ae({props:{content:o[2],language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),this.h()},l(f){e=L(f,"DIV",{class:!0});var u=H(e);n=L(u,"P",{});var a=H(n);l=Y(a,t),a.forEach(g),r=B(u),I(i.$$.fragment,u),u.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-2")},m(f,u){v(f,e,u),b(e,n),b(n,l),b(e,r),A(i,e,null),s=!0},p(f,u){const a={};u&4&&(a.content=f[2]),i.$set(a)},i(f){s||(d(i.$$.fragment,f),s=!0)},o(f){p(i.$$.fragment,f),s=!1},d(f){f&&g(e),P(i)}}}function ai(o){let e,n,t,l=U("common.url")+"",r,i,s,f=o[0].callback.nexus.url+"",u,a,m,c,_=U("common.state")+"",h,D,S,O=o[0].state+"",q,Q,W,z,N,C,V=o[0].attempt&&Nn(o),k=o[0].lastAttemptCompleteTime&&jn(o),w=o[0].nextAttemptScheduleTime&&On(o),T=o[2]&&Vn(o);return{c(){e=M("div"),n=M("div"),t=M("p"),r=X(l),i=R(),s=M("span"),u=X(f),a=R(),m=M("div"),c=M("p"),h=X(_),D=R(),S=M("span"),q=X(O),Q=R(),V&&V.c(),W=R(),k&&k.c(),z=R(),w&&w.c(),N=R(),T&&T.c(),this.h()},l(E){e=L(E,"DIV",{class:!0});var j=H(e);n=L(j,"DIV",{class:!0});var F=H(n);t=L(F,"P",{});var te=H(t);r=Y(te,l),i=B(te),s=L(te,"SPAN",{class:!0});var Z=H(s);u=Y(Z,f),Z.forEach(g),te.forEach(g),F.forEach(g),a=B(j),m=L(j,"DIV",{class:!0});var x=H(m);c=L(x,"P",{});var ge=H(c);h=Y(ge,_),D=B(ge),S=L(ge,"SPAN",{class:!0});var re=H(S);q=Y(re,O),re.forEach(g),ge.forEach(g),Q=B(x),V&&V.l(x),W=B(x),k&&k.l(x),z=B(x),w&&w.l(x),x.forEach(g),N=B(j),T&&T.l(j),j.forEach(g),this.h()},h(){$(s,"class","badge svelte-o7lh0s"),$(n,"class","flex items-center gap-2"),$(S,"class","badge svelte-o7lh0s"),$(m,"class","flex flex-col items-start gap-2 md:flex-row md:items-center"),$(e,"class","flex flex-col gap-2 pt-2")},m(E,j){v(E,e,j),b(e,n),b(n,t),b(t,r),b(t,i),b(t,s),b(s,u),b(e,a),b(e,m),b(m,c),b(c,h),b(c,D),b(c,S),b(S,q),b(m,Q),V&&V.m(m,null),b(m,W),k&&k.m(m,null),b(m,z),w&&w.m(m,null),b(e,N),T&&T.m(e,null),C=!0},p(E,j){(!C||j&1)&&f!==(f=E[0].callback.nexus.url+"")&&ie(u,f),(!C||j&1)&&O!==(O=E[0].state+"")&&ie(q,O),E[0].attempt?V?V.p(E,j):(V=Nn(E),V.c(),V.m(m,W)):V&&(V.d(1),V=null),E[0].lastAttemptCompleteTime?k?k.p(E,j):(k=jn(E),k.c(),k.m(m,z)):k&&(k.d(1),k=null),E[0].nextAttemptScheduleTime?w?w.p(E,j):(w=On(E),w.c(),w.m(m,null)):w&&(w.d(1),w=null),E[2]?T?(T.p(E,j),j&4&&d(T,1)):(T=Vn(E),T.c(),d(T,1),T.m(e,null)):T&&(ne(),p(T,1,1,()=>{T=null}),le())},i(E){C||(d(T),C=!0)},o(E){p(T),C=!1},d(E){E&&g(e),V&&V.d(),k&&k.d(),w&&w.d(),T&&T.d()}}}function ui(o){let e,n;return e=new yt({props:{icon:"nexus",intent:"info",title:o[1],$$slots:{default:[ai]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&2&&(r.title=t[1]),l&285&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function ci(o,e,n){let t,l,r,i,s;oe(o,lt,m=>n(6,s=m));var f;let{callback:u}=e;const a={Standby:U("nexus.callback.standby"),Scheduled:U("nexus.callback.scheduled"),"Backing Off":U("nexus.callback.backing-off"),Failed:U("nexus.callback.failed"),Succeeded:U("nexus.callback.succeeded")};return o.$$set=m=>{"callback"in m&&n(0,u=m.callback)},o.$$.update=()=>{o.$$.dirty&65&&n(4,t=de(u.lastAttemptCompleteTime,s)),o.$$.dirty&65&&n(3,l=de(u.nextAttemptScheduleTime,s)),o.$$.dirty&33&&n(2,r=n(5,f=u==null?void 0:u.lastAttemptFailure)===null||f===void 0?void 0:f.message),o.$$.dirty&1&&n(1,i=a[u.state]||U("nexus.nexus-callback"))},[u,i,r,l,t,f,s]}class mi extends ue{constructor(e){super(),ce(this,e,ci,ui,se,{callback:0})}}function di(o){let e,n,t,l,r,i,s=o[0]&&Hn(o),f=o[5]&&Fn(o);const u=[_i,pi],a=[];function m(c,_){return c[4]?0:1}return t=m(o),l=a[t]=u[t](o),{c(){s&&s.c(),e=R(),f&&f.c(),n=R(),l.c(),r=ee()},l(c){s&&s.l(c),e=B(c),f&&f.l(c),n=B(c),l.l(c),r=ee()},m(c,_){s&&s.m(c,_),v(c,e,_),f&&f.m(c,_),v(c,n,_),a[t].m(c,_),v(c,r,_),i=!0},p(c,_){c[0]?s?s.p(c,_):(s=Hn(c),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null),c[5]?f?(f.p(c,_),_&32&&d(f,1)):(f=Fn(c),f.c(),d(f,1),f.m(n.parentNode,n)):f&&(ne(),p(f,1,1,()=>{f=null}),le());let h=t;t=m(c),t===h?a[t].p(c,_):(ne(),p(a[h],1,1,()=>{a[h]=null}),le(),l=a[t],l?l.p(c,_):(l=a[t]=u[t](c),l.c()),d(l,1),l.m(r.parentNode,r))},i(c){i||(d(f),d(l),i=!0)},o(c){p(f),p(l),i=!1},d(c){c&&(g(e),g(n),g(r)),s&&s.d(c),f&&f.d(c),a[t].d(c)}}}function gi(o){let e,n;return e=new ir({props:{copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title"),content:o[1],visible:!0,"container-class":"gap-1 w-full h-4",$$slots:{default:[Ei]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.content=t[1]),l&379&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Hn(o){let e;return{c(){e=X(o[0])},l(n){e=Y(n,o[0])},m(n,t){v(n,e,t)},p(n,t){t&1&&ie(e,n[0])},d(n){n&&g(e)}}}function Fn(o){let e,n;return e=new Ie({props:{name:o[5]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.name=t[5]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function pi(o){let e,n;return e=new cl({props:{text:o[6],hide:!o[6],top:!0,$$slots:{default:[hi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&64&&(r.text=t[6]),l&64&&(r.hide=!t[6]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function _i(o){let e,n;return e=new It({props:{href:o[4],class:"value",$$slots:{default:[$i]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.href=t[4]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function hi(o){let e,n;return{c(){e=M("span"),n=X(o[1]),this.h()},l(t){e=L(t,"SPAN",{class:!0});var l=H(e);n=Y(l,o[1]),l.forEach(g),this.h()},h(){$(e,"class","surface-subtle w-fit select-all truncate rounded-sm p-1 leading-4")},m(t,l){v(t,e,l),b(e,n)},p(t,l){l&2&&ie(n,t[1])},d(t){t&&g(e)}}}function $i(o){let e;return{c(){e=X(o[1])},l(n){e=Y(n,o[1])},m(n,t){v(n,e,t)},p(n,t){t&2&&ie(e,n[1])},d(n){n&&g(e)}}}function Rn(o){let e,n;return e=new Ie({props:{name:o[5]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&32&&(r.name=t[5]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Bn(o){let e;return{c(){e=X(o[0])},l(n){e=Y(n,o[0])},m(n,t){v(n,e,t)},p(n,t){t&1&&ie(e,n[0])},d(n){n&&g(e)}}}function ki(o){let e,n;return e=new cl({props:{text:o[6],hide:!o[6],top:!0,$$slots:{default:[bi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&64&&(r.text=t[6]),l&64&&(r.hide=!t[6]),l&258&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function wi(o){let e,n;return e=new It({props:{href:o[4],class:"surface-subtle flex w-fit flex-row items-center gap-1 truncate rounded-sm p-1 leading-4",$$slots:{default:[vi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&16&&(r.href=t[4]),l&266&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function bi(o){let e,n;return{c(){e=M("span"),n=X(o[1]),this.h()},l(t){e=L(t,"SPAN",{class:!0});var l=H(e);n=Y(l,o[1]),l.forEach(g),this.h()},h(){$(e,"class","surface-subtle w-fit select-all truncate rounded-sm p-1 leading-4")},m(t,l){v(t,e,l),b(e,n)},p(t,l){l&2&&ie(n,t[1])},d(t){t&&g(e)}}}function Gn(o){let e,n;return e=new Ie({props:{name:"filter",class:"shrink-0"}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function vi(o){let e,n,t,l,r,i=o[3]&&Gn();return{c(){e=M("span"),n=X(o[1]),t=R(),i&&i.c(),l=ee(),this.h()},l(s){e=L(s,"SPAN",{class:!0});var f=H(e);n=Y(f,o[1]),f.forEach(g),t=B(s),i&&i.l(s),l=ee(),this.h()},h(){$(e,"class","truncate")},m(s,f){v(s,e,f),b(e,n),v(s,t,f),i&&i.m(s,f),v(s,l,f),r=!0},p(s,f){(!r||f&2)&&ie(n,s[1]),s[3]?i?f&8&&d(i,1):(i=Gn(),i.c(),d(i,1),i.m(l.parentNode,l)):i&&(ne(),p(i,1,1,()=>{i=null}),le())},i(s){r||(d(i),r=!0)},o(s){p(i),r=!1},d(s){s&&(g(e),g(t),g(l)),i&&i.d(s)}}}function Ei(o){let e,n,t,l,r,i,s=o[5]&&Rn(o),f=o[0]&&Bn(o);const u=[wi,ki],a=[];function m(c,_){return c[4]?0:1}return t=m(o),l=a[t]=u[t](o),{c(){s&&s.c(),e=R(),f&&f.c(),n=R(),l.c(),r=ee()},l(c){s&&s.l(c),e=B(c),f&&f.l(c),n=B(c),l.l(c),r=ee()},m(c,_){s&&s.m(c,_),v(c,e,_),f&&f.m(c,_),v(c,n,_),a[t].m(c,_),v(c,r,_),i=!0},p(c,_){c[5]?s?(s.p(c,_),_&32&&d(s,1)):(s=Rn(c),s.c(),d(s,1),s.m(e.parentNode,e)):s&&(ne(),p(s,1,1,()=>{s=null}),le()),c[0]?f?f.p(c,_):(f=Bn(c),f.c(),f.m(n.parentNode,n)):f&&(f.d(1),f=null);let h=t;t=m(c),t===h?a[t].p(c,_):(ne(),p(a[h],1,1,()=>{a[h]=null}),le(),l=a[t],l?l.p(c,_):(l=a[t]=u[t](c),l.c()),d(l,1),l.m(r.parentNode,r))},i(c){i||(d(s),d(l),i=!0)},o(c){p(s),p(l),i=!1},d(c){c&&(g(e),g(n),g(r)),s&&s.d(c),f&&f.d(c),a[t].d(c)}}}function Ti(o){let e,n,t,l,r;const i=[gi,di],s=[];function f(u,a){return u[2]?0:1}return n=f(o),t=s[n]=i[n](o),{c(){e=M("p"),t.c(),this.h()},l(u){e=L(u,"P",{class:!0});var a=H(e);t.l(a),a.forEach(g),this.h()},h(){$(e,"class",l="flex items-center gap-2 whitespace-nowrap "+o[7].class)},m(u,a){v(u,e,a),s[n].m(e,null),r=!0},p(u,[a]){let m=n;n=f(u),n===m?s[n].p(u,a):(ne(),p(s[m],1,1,()=>{s[m]=null}),le(),t=s[n],t?t.p(u,a):(t=s[n]=i[n](u),t.c()),d(t,1),t.m(e,null)),(!r||a&128&&l!==(l="flex items-center gap-2 whitespace-nowrap "+u[7].class))&&$(e,"class",l)},i(u){r||(d(t),r=!0)},o(u){p(t),r=!1},d(u){u&&g(e),s[n].d()}}}function yi(o,e,n){const t=["title","content","copyable","filterable","href","icon","tooltip"];let l=Me(e,t),{title:r=""}=e,{content:i}=e,{copyable:s=!1}=e,{filterable:f=!1}=e,{href:u=null}=e,{icon:a=void 0}=e,{tooltip:m=""}=e;return o.$$set=c=>{e=Le(Le({},e),vt(c)),n(7,l=Me(e,t)),"title"in c&&n(0,r=c.title),"content"in c&&n(1,i=c.content),"copyable"in c&&n(2,s=c.copyable),"filterable"in c&&n(3,f=c.filterable),"href"in c&&n(4,u=c.href),"icon"in c&&n(5,a=c.icon),"tooltip"in c&&n(6,m=c.tooltip)},[r,i,s,f,u,a,m,l]}class De extends ue{constructor(e){super(),ce(this,e,yi,Ti,se,{title:0,content:1,copyable:2,filterable:3,href:4,icon:5,tooltip:6})}}function Ii(o){var N,C,V,k,w,T,E,j,F,te,Z,x,ge,re,$e;let e,n,t="Summary",l,r,i,s,f,u,a,m,c,_,h,D,S,O,q,Q,W,z;return i=new De({props:{title:U("common.start"),tooltip:o[4]?de((N=o[0])==null?void 0:N.startTime,o[5],{relative:!1}):de((C=o[0])==null?void 0:C.startTime,o[5],{relative:!0}),content:de((V=o[0])==null?void 0:V.startTime,o[5],{relative:o[4]}),class:"order-1 text-sm "}}),f=new De({props:{title:U("common.end"),tooltip:o[4]?de((k=o[0])==null?void 0:k.endTime,o[5],{relative:!1}):de((w=o[0])==null?void 0:w.endTime,o[5],{relative:!0}),content:(T=o[0])!=null&&T.endTime?de((E=o[0])==null?void 0:E.endTime,o[5],{relative:o[4]}):"-",class:"order-2 text-sm md:order-3 xl:order-4"}}),a=new De({props:{content:o[2],class:"order-3 text-sm md:order-5 xl:order-7",icon:"clock"}}),c=new De({props:{title:U("common.task-queue"),content:(j=o[0])==null?void 0:j.taskQueue,class:"order-4 text-sm md:order-8",href:qt({namespace:o[1].params.namespace,workflow:(F=o[0])==null?void 0:F.id,run:(te=o[0])==null?void 0:te.runId})}}),h=new De({props:{title:U("common.workflow-type"),content:(Z=o[0])==null?void 0:Z.name,copyable:!0,filterable:!0,class:"order-4 text-sm md:order-2 xl:order-2",href:Qt({namespace:o[3],query:`WorkflowType="${(x=o[0])==null?void 0:x.name}"`})}}),S=new De({props:{title:U("common.run-id"),content:(ge=o[0])==null?void 0:ge.runId,copyable:!0,class:"order-5 text-sm md:order-4 xl:order-5"}}),q=new De({props:{title:U("common.history-size-bytes"),content:(re=o[0])==null?void 0:re.historySizeBytes,class:"order-6 text-sm md:order-6 xl:order-3"}}),W=new De({props:{title:U("workflows.state-transitions"),content:($e=o[0])==null?void 0:$e.stateTransitionCount,class:"order-7 text-sm md:order-8 xl:order-6"}}),{c(){e=M("div"),n=M("h3"),n.textContent=t,l=R(),r=M("div"),y(i.$$.fragment),s=R(),y(f.$$.fragment),u=R(),y(a.$$.fragment),m=R(),y(c.$$.fragment),_=R(),y(h.$$.fragment),D=R(),y(S.$$.fragment),O=R(),y(q.$$.fragment),Q=R(),y(W.$$.fragment),this.h()},l(G){e=L(G,"DIV",{class:!0});var fe=H(e);n=L(fe,"H3",{class:!0,"data-svelte-h":!0}),wl(n)!=="svelte-2oqgqm"&&(n.textContent=t),l=B(fe),r=L(fe,"DIV",{class:!0});var pe=H(r);I(i.$$.fragment,pe),s=B(pe),I(f.$$.fragment,pe),u=B(pe),I(a.$$.fragment,pe),m=B(pe),I(c.$$.fragment,pe),_=B(pe),I(h.$$.fragment,pe),D=B(pe),I(S.$$.fragment,pe),O=B(pe),I(q.$$.fragment,pe),Q=B(pe),I(W.$$.fragment,pe),pe.forEach(g),fe.forEach(g),this.h()},h(){$(n,"class","flex items-center"),$(r,"class","surface-primary grid w-full grid-flow-row grid-cols-1 gap-2 rounded-xl border-2 border-primary p-2 md:grid-cols-2 xl:grid-cols-3"),$(e,"class","flex flex-col gap-2")},m(G,fe){v(G,e,fe),b(e,n),b(e,l),b(e,r),A(i,r,null),b(r,s),A(f,r,null),b(r,u),A(a,r,null),b(r,m),A(c,r,null),b(r,_),A(h,r,null),b(r,D),A(S,r,null),b(r,O),A(q,r,null),b(r,Q),A(W,r,null),z=!0},p(G,[fe]){var We,Ee,Pe,qe,Re,Te,Pt,Wt,Dt,Ct,St,Nt,jt,Ot,Vt;const pe={};fe&49&&(pe.tooltip=G[4]?de((We=G[0])==null?void 0:We.startTime,G[5],{relative:!1}):de((Ee=G[0])==null?void 0:Ee.startTime,G[5],{relative:!0})),fe&49&&(pe.content=de((Pe=G[0])==null?void 0:Pe.startTime,G[5],{relative:G[4]})),i.$set(pe);const Fe={};fe&49&&(Fe.tooltip=G[4]?de((qe=G[0])==null?void 0:qe.endTime,G[5],{relative:!1}):de((Re=G[0])==null?void 0:Re.endTime,G[5],{relative:!0})),fe&49&&(Fe.content=(Te=G[0])!=null&&Te.endTime?de((Pt=G[0])==null?void 0:Pt.endTime,G[5],{relative:G[4]}):"-"),f.$set(Fe);const Ue={};fe&4&&(Ue.content=G[2]),a.$set(Ue);const J={};fe&1&&(J.content=(Wt=G[0])==null?void 0:Wt.taskQueue),fe&3&&(J.href=qt({namespace:G[1].params.namespace,workflow:(Dt=G[0])==null?void 0:Dt.id,run:(Ct=G[0])==null?void 0:Ct.runId})),c.$set(J);const K={};fe&1&&(K.content=(St=G[0])==null?void 0:St.name),fe&9&&(K.href=Qt({namespace:G[3],query:`WorkflowType="${(Nt=G[0])==null?void 0:Nt.name}"`})),h.$set(K);const me={};fe&1&&(me.content=(jt=G[0])==null?void 0:jt.runId),S.$set(me);const be={};fe&1&&(be.content=(Ot=G[0])==null?void 0:Ot.historySizeBytes),q.$set(be);const ve={};fe&1&&(ve.content=(Vt=G[0])==null?void 0:Vt.stateTransitionCount),W.$set(ve)},i(G){z||(d(i.$$.fragment,G),d(f.$$.fragment,G),d(a.$$.fragment,G),d(c.$$.fragment,G),d(h.$$.fragment,G),d(S.$$.fragment,G),d(q.$$.fragment,G),d(W.$$.fragment,G),z=!0)},o(G){p(i.$$.fragment,G),p(f.$$.fragment,G),p(a.$$.fragment,G),p(c.$$.fragment,G),p(h.$$.fragment,G),p(S.$$.fragment,G),p(q.$$.fragment,G),p(W.$$.fragment,G),z=!1},d(G){G&&g(e),P(i),P(f),P(a),P(c),P(h),P(S),P(q),P(W)}}}function Ai(o,e,n){let t,l,r,i,s,f,u;return oe(o,tt,a=>n(6,i=a)),oe(o,He,a=>n(1,s=a)),oe(o,al,a=>n(4,f=a)),oe(o,lt,a=>n(5,u=a)),o.$$.update=()=>{o.$$.dirty&2&&n(3,{namespace:t}=s.params,t),o.$$.dirty&64&&n(0,{workflow:l}=i,l),o.$$.dirty&1&&n(2,r=xe({start:l==null?void 0:l.startTime,end:(l==null?void 0:l.endTime)||Date.now(),includeMilliseconds:!0}))},[l,s,r,t,f,u,i]}class Pi extends ue{constructor(e){super(),ce(this,e,Ai,Ii,se,{})}}function Wi(o){let e,n;const t=o[1].default,l=st(t,o,o[0],null);return{c(){e=M("div"),l&&l.c(),this.h()},l(r){e=L(r,"DIV",{class:!0});var i=H(e);l&&l.l(i),i.forEach(g),this.h()},h(){$(e,"class","*:rounded-none *:border-t-0 [&>*:first-child]:rounded-t-2xl [&>*:first-child]:border-t-2 [&>*:last-child]:rounded-b-2xl")},m(r,i){v(r,e,i),l&&l.m(e,null),n=!0},p(r,[i]){l&&l.p&&(!n||i&1)&&ft(l,t,r,r[0],n?ut(t,r[0],i,null):at(r[0]),null)},i(r){n||(d(l,r),n=!0)},o(r){p(l,r),n=!1},d(r){r&&g(e),l&&l.d(r)}}}function Di(o,e,n){let{$$slots:t={},$$scope:l}=e;return o.$$set=r=>{"$$scope"in r&&n(0,l=r.$$scope)},[l,t]}class Ci extends ue{constructor(e){super(),ce(this,e,Di,Wi,se,{})}}const Mn=o=>o.eventType==="WorkflowTaskFailed",Si=o=>o.eventType==="WorkflowTaskCompleted",pl=o=>{var t;const{workflowTaskFailedEventAttributes:{failure:e,cause:n}}=o;return((t=e==null?void 0:e.applicationFailureInfo)==null?void 0:t.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":sr(n)},Ni=o=>{const e=o.findIndex(Mn);if(e<0)return;const n=o.findIndex(Si),t=o.find(r=>Mn(r));if(pl(t)!=="ResetWorkflow"&&(n<0||e{{const n=[...o].reverse();return Ni(n)}};function Ln(o){let e,n;return e=new ml({props:{title:U("common.failure"),class:"text-sm",$$slots:{description:[Vi],default:[Oi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&3&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function zn(o){let e,n=U("common.source")+"",t,l,r,i;return r=new Ae({props:{content:o[0].source,language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("p"),t=X(n),l=R(),y(r.$$.fragment)},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),f.forEach(g),l=B(s),I(r.$$.fragment,s)},m(s,f){v(s,e,f),b(e,t),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f&1&&(u.content=s[0].source),r.$set(u)},i(s){i||(d(r.$$.fragment,s),i=!0)},o(s){p(r.$$.fragment,s),i=!1},d(s){s&&(g(e),g(l)),P(r,s)}}}function Un(o){let e,n=U("common.stack-trace")+"",t,l,r,i;return r=new Ae({props:{content:o[0].stackTrace,language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}}),{c(){e=M("p"),t=X(n),l=R(),y(r.$$.fragment)},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),f.forEach(g),l=B(s),I(r.$$.fragment,s)},m(s,f){v(s,e,f),b(e,t),v(s,l,f),A(r,s,f),i=!0},p(s,f){const u={};f&1&&(u.content=s[0].stackTrace),r.$set(u)},i(s){i||(d(r.$$.fragment,s),i=!0)},o(s){p(r.$$.fragment,s),i=!1},d(s){s&&(g(e),g(l)),P(r,s)}}}function Oi(o){var c,_,h;let e,n,t=U("common.message")+"",l,r,i,s,f,u;i=new Ae({props:{content:((c=o[0])==null?void 0:c.message)||"",language:"text",copyIconTitle:U("common.copy-icon-title"),copySuccessIconTitle:U("common.copy-success-icon-title")}});let a=((_=o[0])==null?void 0:_.source)&&zn(o),m=((h=o[0])==null?void 0:h.stackTrace)&&Un(o);return{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),s=R(),a&&a.c(),f=R(),m&&m.c(),this.h()},l(D){e=L(D,"DIV",{class:!0});var S=H(e);n=L(S,"P",{});var O=H(n);l=Y(O,t),O.forEach(g),r=B(S),I(i.$$.fragment,S),s=B(S),a&&a.l(S),f=B(S),m&&m.l(S),S.forEach(g),this.h()},h(){$(e,"class","flex flex-col gap-2")},m(D,S){v(D,e,S),b(e,n),b(n,l),b(e,r),A(i,e,null),b(e,s),a&&a.m(e,null),b(e,f),m&&m.m(e,null),u=!0},p(D,S){var q,Q,W;const O={};S&1&&(O.content=((q=D[0])==null?void 0:q.message)||""),i.$set(O),(Q=D[0])!=null&&Q.source?a?(a.p(D,S),S&1&&d(a,1)):(a=zn(D),a.c(),d(a,1),a.m(e,f)):a&&(ne(),p(a,1,1,()=>{a=null}),le()),(W=D[0])!=null&&W.stackTrace?m?(m.p(D,S),S&1&&d(m,1)):(m=Un(D),m.c(),d(m,1),m.m(e,null)):m&&(ne(),p(m,1,1,()=>{m=null}),le())},i(D){u||(d(i.$$.fragment,D),d(a),d(m),u=!0)},o(D){p(i.$$.fragment,D),p(a),p(m),u=!1},d(D){D&&g(e),P(i),a&&a.d(),m&&m.d()}}}function Vi(o){var l;let e,n=((l=o[0])==null?void 0:l.message)+"",t;return{c(){e=M("div"),t=X(n),this.h()},l(r){e=L(r,"DIV",{class:!0,slot:!0});var i=H(e);t=Y(i,n),i.forEach(g),this.h()},h(){$(e,"class","hidden w-full text-right text-xs lg:block"),$(e,"slot","description")},m(r,i){v(r,e,i),b(e,t)},p(r,i){var s;i&1&&n!==(n=((s=r[0])==null?void 0:s.message)+"")&&ie(t,n)},d(r){r&&g(e)}}}function qn(o){let e,n;return e=new _l({props:{failure:o[0].cause}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.failure=t[0].cause),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Hi(o){var i;let e,n,t,l=o[0]&&Ln(o),r=((i=o[0])==null?void 0:i.cause)&&qn(o);return{c(){l&&l.c(),e=R(),r&&r.c(),n=ee()},l(s){l&&l.l(s),e=B(s),r&&r.l(s),n=ee()},m(s,f){l&&l.m(s,f),v(s,e,f),r&&r.m(s,f),v(s,n,f),t=!0},p(s,[f]){var u;s[0]?l?(l.p(s,f),f&1&&d(l,1)):(l=Ln(s),l.c(),d(l,1),l.m(e.parentNode,e)):l&&(ne(),p(l,1,1,()=>{l=null}),le()),(u=s[0])!=null&&u.cause?r?(r.p(s,f),f&1&&d(r,1)):(r=qn(s),r.c(),d(r,1),r.m(n.parentNode,n)):r&&(ne(),p(r,1,1,()=>{r=null}),le())},i(s){t||(d(l),d(r),t=!0)},o(s){p(l),p(r),t=!1},d(s){s&&(g(e),g(n)),l&&l.d(s),r&&r.d(s)}}}function Fi(o,e,n){let{failure:t=void 0}=e;return o.$$set=l=>{"failure"in l&&n(0,t=l.failure)},[t]}class _l extends ue{constructor(e){super(),ce(this,e,Fi,Hi,se,{failure:0})}}function Ri(o){let e=o[0].state+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&1&&e!==(e=t[0].state+"")&&ie(n,e)},d(t){t&&g(n)}}}function Bi(o){let e=o[0].attempt+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&1&&e!==(e=t[0].attempt+"")&&ie(n,e)},d(t){t&&g(n)}}}function Gi(o){let e=de(o[0].originalScheduledTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].originalScheduledTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function Mi(o){let e=de(o[0].scheduledTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].scheduledTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function Li(o){let e=de(o[0].startedTime,o[1])+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&3&&e!==(e=de(t[0].startedTime,t[1])+"")&&ie(n,e)},d(t){t&&g(n)}}}function zi(o){let e,n,t=U("common.state")+"",l,r,i,s,f,u=U("common.attempt")+"",a,m,c,_,h,D=U("workflows.original-scheduled-time")+"",S,O,q,Q,W,z=U("workflows.scheduled-time")+"",N,C,V,k,w,T=U("workflows.started-time")+"",E,j,F,te;return i=new Qe({props:{$$slots:{default:[Ri]},$$scope:{ctx:o}}}),c=new Qe({props:{$$slots:{default:[Bi]},$$scope:{ctx:o}}}),q=new Qe({props:{$$slots:{default:[Gi]},$$scope:{ctx:o}}}),V=new Qe({props:{$$slots:{default:[Mi]},$$scope:{ctx:o}}}),F=new Qe({props:{$$slots:{default:[Li]},$$scope:{ctx:o}}}),{c(){e=M("div"),n=M("p"),l=X(t),r=R(),y(i.$$.fragment),s=R(),f=M("p"),a=X(u),m=R(),y(c.$$.fragment),_=R(),h=M("p"),S=X(D),O=R(),y(q.$$.fragment),Q=R(),W=M("p"),N=X(z),C=R(),y(V.$$.fragment),k=R(),w=M("p"),E=X(T),j=R(),y(F.$$.fragment),this.h()},l(Z){e=L(Z,"DIV",{class:!0});var x=H(e);n=L(x,"P",{class:!0});var ge=H(n);l=Y(ge,t),r=B(ge),I(i.$$.fragment,ge),ge.forEach(g),s=B(x),f=L(x,"P",{class:!0});var re=H(f);a=Y(re,u),m=B(re),I(c.$$.fragment,re),re.forEach(g),_=B(x),h=L(x,"P",{class:!0});var $e=H(h);S=Y($e,D),O=B($e),I(q.$$.fragment,$e),$e.forEach(g),Q=B(x),W=L(x,"P",{class:!0});var G=H(W);N=Y(G,z),C=B(G),I(V.$$.fragment,G),G.forEach(g),k=B(x),w=L(x,"P",{class:!0});var fe=H(w);E=Y(fe,T),j=B(fe),I(F.$$.fragment,fe),fe.forEach(g),x.forEach(g),this.h()},h(){$(n,"class","flex items-center gap-4"),$(f,"class","flex items-center gap-4"),$(h,"class","flex items-center gap-4"),$(W,"class","flex items-center gap-4"),$(w,"class","flex items-center gap-4"),$(e,"class","flex flex-col gap-2")},m(Z,x){v(Z,e,x),b(e,n),b(n,l),b(n,r),A(i,n,null),b(e,s),b(e,f),b(f,a),b(f,m),A(c,f,null),b(e,_),b(e,h),b(h,S),b(h,O),A(q,h,null),b(e,Q),b(e,W),b(W,N),b(W,C),A(V,W,null),b(e,k),b(e,w),b(w,E),b(w,j),A(F,w,null),te=!0},p(Z,x){const ge={};x&5&&(ge.$$scope={dirty:x,ctx:Z}),i.$set(ge);const re={};x&5&&(re.$$scope={dirty:x,ctx:Z}),c.$set(re);const $e={};x&7&&($e.$$scope={dirty:x,ctx:Z}),q.$set($e);const G={};x&7&&(G.$$scope={dirty:x,ctx:Z}),V.$set(G);const fe={};x&7&&(fe.$$scope={dirty:x,ctx:Z}),F.$set(fe)},i(Z){te||(d(i.$$.fragment,Z),d(c.$$.fragment,Z),d(q.$$.fragment,Z),d(V.$$.fragment,Z),d(F.$$.fragment,Z),te=!0)},o(Z){p(i.$$.fragment,Z),p(c.$$.fragment,Z),p(q.$$.fragment,Z),p(V.$$.fragment,Z),p(F.$$.fragment,Z),te=!1},d(Z){Z&&g(e),P(i),P(c),P(q),P(V),P(F)}}}function Ui(o){let e,n;return e=new ml({props:{title:U("workflows.pending-workflow-task"),$$slots:{default:[zi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,[l]){const r={};l&7&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function qi(o,e,n){let t;oe(o,lt,r=>n(1,t=r));let{pendingTask:l=void 0}=e;return o.$$set=r=>{"pendingTask"in r&&n(0,l=r.pendingTask)},[l,t]}class Qi extends ue{constructor(e){super(),ce(this,e,qi,Ui,se,{pendingTask:0})}}function Qn(o){let e,n;return e=new yt({props:{icon:"warning",intent:"warning",title:U(`typed-errors.${o[2]}.title`),$$slots:{default:[Yi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&4&&(r.title=U(`typed-errors.${t[2]}.title`)),l&63&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Jn(o){let e,n=U("typed-errors.link-preface")+"",t,l,r,i;return l=new It({props:{newTab:!0,href:U(`typed-errors.${o[2]}.link`),$$slots:{default:[Ji]},$$scope:{ctx:o}}}),{c(){e=M("p"),t=X(n),y(l.$$.fragment),r=X(".")},l(s){e=L(s,"P",{});var f=H(e);t=Y(f,n),I(l.$$.fragment,f),r=Y(f,"."),f.forEach(g)},m(s,f){v(s,e,f),b(e,t),A(l,e,null),b(e,r),i=!0},p(s,f){const u={};f&4&&(u.href=U(`typed-errors.${s[2]}.link`)),f&36&&(u.$$scope={dirty:f,ctx:s}),l.$set(u)},i(s){i||(d(l.$$.fragment,s),i=!0)},o(s){p(l.$$.fragment,s),i=!1},d(s){s&&g(e),P(l)}}}function Ji(o){let e=U(`typed-errors.${o[2]}.action`)+"",n;return{c(){n=X(e)},l(t){n=Y(t,e)},m(t,l){v(t,n,l)},p(t,l){l&4&&e!==(e=U(`typed-errors.${t[2]}.action`)+"")&&ie(n,e)},d(t){t&&g(n)}}}function Xn(o){let e,n;return e=new Ci({props:{$$slots:{default:[Xi]},$$scope:{ctx:o}}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&35&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Yn(o){let e,n;return e=new Qi({props:{pendingTask:o[1]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&2&&(r.pendingTask=t[1]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function Xi(o){let e,n,t,l;e=new _l({props:{failure:o[0].attributes.failure}});let r=o[1]&&Yn(o);return{c(){y(e.$$.fragment),n=R(),r&&r.c(),t=ee()},l(i){I(e.$$.fragment,i),n=B(i),r&&r.l(i),t=ee()},m(i,s){A(e,i,s),v(i,n,s),r&&r.m(i,s),v(i,t,s),l=!0},p(i,s){const f={};s&1&&(f.failure=i[0].attributes.failure),e.$set(f),i[1]?r?(r.p(i,s),s&2&&d(r,1)):(r=Yn(i),r.c(),d(r,1),r.m(t.parentNode,t)):r&&(ne(),p(r,1,1,()=>{r=null}),le())},i(i){l||(d(e.$$.fragment,i),d(r),l=!0)},o(i){p(e.$$.fragment,i),p(r),l=!1},d(i){i&&(g(n),g(t)),P(e,i),r&&r.d(i)}}}function Yi(o){var k,w,T;let e,n=U(`typed-errors.${o[2]}.description`)+"",t,l,r,i,s,f,u=o[0].id+"",a,m,c,_,h,D=rt((k=o[0])==null?void 0:k.name)+"",S,O,q=de((w=o[0])==null?void 0:w.eventTime,o[3],{relative:o[4]})+"",Q,W,z,N,C=(o[2]==="WorkflowWorkerUnhandledFailure"||o[2]==="BadSearchAttributes")&&Jn(o);c=new Ie({props:{name:Ye[o[0].category]}});let V=((T=o[0].attributes)==null?void 0:T.failure)&&Xn(o);return{c(){e=M("p"),t=X(n),l=R(),C&&C.c(),r=R(),i=M("div"),s=M("div"),f=M("div"),a=X(u),m=R(),y(c.$$.fragment),_=R(),h=M("span"),S=X(D),O=R(),Q=X(q),W=R(),z=M("div"),V&&V.c(),this.h()},l(E){e=L(E,"P",{});var j=H(e);t=Y(j,n),j.forEach(g),l=B(E),C&&C.l(E),r=B(E),i=L(E,"DIV",{class:!0});var F=H(i);s=L(F,"DIV",{class:!0});var te=H(s);f=L(te,"DIV",{class:!0});var Z=H(f);a=Y(Z,u),m=B(Z),I(c.$$.fragment,Z),_=B(Z),h=L(Z,"SPAN",{class:!0});var x=H(h);S=Y(x,D),x.forEach(g),Z.forEach(g),O=B(te),Q=Y(te,q),te.forEach(g),W=B(F),z=L(F,"DIV",{class:!0});var ge=H(z);V&&V.l(ge),ge.forEach(g),F.forEach(g),this.h()},h(){$(h,"class","font-semibold text-danger"),$(f,"class","flex items-center gap-2"),$(s,"class","flex items-center justify-between gap-2 bg-danger px-2 py-2"),$(z,"class","flex flex-col gap-2 bg-primary p-4"),$(i,"class","mt-2 flex w-full flex-col gap-0 overflow-hidden rounded-xl border-2 border-danger")},m(E,j){v(E,e,j),b(e,t),v(E,l,j),C&&C.m(E,j),v(E,r,j),v(E,i,j),b(i,s),b(s,f),b(f,a),b(f,m),A(c,f,null),b(f,_),b(f,h),b(h,S),b(s,O),b(s,Q),b(i,W),b(i,z),V&&V.m(z,null),N=!0},p(E,j){var te,Z,x;(!N||j&4)&&n!==(n=U(`typed-errors.${E[2]}.description`)+"")&&ie(t,n),E[2]==="WorkflowWorkerUnhandledFailure"||E[2]==="BadSearchAttributes"?C?(C.p(E,j),j&4&&d(C,1)):(C=Jn(E),C.c(),d(C,1),C.m(r.parentNode,r)):C&&(ne(),p(C,1,1,()=>{C=null}),le()),(!N||j&1)&&u!==(u=E[0].id+"")&&ie(a,u);const F={};j&1&&(F.name=Ye[E[0].category]),c.$set(F),(!N||j&1)&&D!==(D=rt((te=E[0])==null?void 0:te.name)+"")&&ie(S,D),(!N||j&25)&&q!==(q=de((Z=E[0])==null?void 0:Z.eventTime,E[3],{relative:E[4]})+"")&&ie(Q,q),(x=E[0].attributes)!=null&&x.failure?V?(V.p(E,j),j&1&&d(V,1)):(V=Xn(E),V.c(),d(V,1),V.m(z,null)):V&&(ne(),p(V,1,1,()=>{V=null}),le())},i(E){N||(d(C),d(c.$$.fragment,E),d(V),N=!0)},o(E){p(C),p(c.$$.fragment,E),p(V),N=!1},d(E){E&&(g(e),g(l),g(r),g(i)),C&&C.d(E),P(c),V&&V.d()}}}function Ki(o){let e,n,t=o[2]&&o[2]!=="ResetWorkflow"&&Qn(o);return{c(){t&&t.c(),e=ee()},l(l){t&&t.l(l),e=ee()},m(l,r){t&&t.m(l,r),v(l,e,r),n=!0},p(l,[r]){l[2]&&l[2]!=="ResetWorkflow"?t?(t.p(l,r),r&4&&d(t,1)):(t=Qn(l),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(ne(),p(t,1,1,()=>{t=null}),le())},i(l){n||(d(t),n=!0)},o(l){p(t),n=!1},d(l){l&&g(e),t&&t.d(l)}}}function Zi(o,e,n){let t,l;oe(o,lt,f=>n(3,t=f)),oe(o,al,f=>n(4,l=f));let{error:r}=e,{pendingTask:i=void 0}=e,s;return o.$$set=f=>{"error"in f&&n(0,r=f.error),"pendingTask"in f&&n(1,i=f.pendingTask)},o.$$.update=()=>{o.$$.dirty&1&&n(2,s=pl(r))},[r,i,s,t,l]}class xi extends ue{constructor(e){super(),ce(this,e,Zi,Ki,se,{error:0,pendingTask:1})}}function Kn(o){let e,n,t,l;return n=new yt({props:{icon:"warning",intent:"warning",title:U("workflows.workflow-error-no-workers-title"),$$slots:{default:[es]},$$scope:{ctx:o}}}),{c(){e=M("div"),y(n.$$.fragment),this.h()},l(r){e=L(r,"DIV",{class:!0});var i=H(e);I(n.$$.fragment,i),i.forEach(g),this.h()},h(){$(e,"class","mb-4")},m(r,i){v(r,e,i),A(n,e,null),l=!0},p(r,i){const s={};i&33&&(s.$$scope={dirty:i,ctx:r}),n.$set(s)},i(r){l||(d(n.$$.fragment,r),r&&(t||tl(()=>{t=bl(e,fr,{duration:200,delay:100}),t.start()})),l=!0)},o(r){p(n.$$.fragment,r),l=!1},d(r){r&&g(e),P(n)}}}function es(o){var t;let e=U("workflows.workflow-error-no-workers-description",{taskQueue:(t=o[0])==null?void 0:t.taskQueue})+"",n;return{c(){n=X(e)},l(l){n=Y(l,e)},m(l,r){v(l,n,r)},p(l,r){var i;r&1&&e!==(e=U("workflows.workflow-error-no-workers-description",{taskQueue:(i=l[0])==null?void 0:i.taskQueue})+"")&&ie(n,e)},d(l){l&&g(n)}}}function ts(o){let e,n,t=o[1]&&Kn(o);return{c(){t&&t.c(),e=ee()},l(l){t&&t.l(l),e=ee()},m(l,r){t&&t.m(l,r),v(l,e,r),n=!0},p(l,[r]){l[1]?t?(t.p(l,r),r&2&&d(t,1)):(t=Kn(l),t.c(),d(t,1),t.m(e.parentNode,e)):t&&(ne(),p(t,1,1,()=>{t=null}),le())},i(l){n||(d(t),n=!0)},o(l){p(t),n=!1},d(l){l&&g(e),t&&t.d(l)}}}function ns(o,e,n){let t,l,r,i;oe(o,tt,f=>n(4,i=f));var s;return o.$$.update=()=>{o.$$.dirty&16&&n(0,{workflow:t,workers:l}=i,t,(n(3,l),n(4,i))),o.$$.dirty&13&&n(1,r=(t==null?void 0:t.isRunning)&&!(!(n(2,s=l==null?void 0:l.pollers)===null||s===void 0)&&s.length))},[t,r,s,l,i]}class ls extends ue{constructor(e){super(),ce(this,e,ns,ts,se,{})}}function Zn(o){var t;let e,n;return e=new xi({props:{error:o[1],pendingTask:(t=o[0])==null?void 0:t.pendingWorkflowTask}}),{c(){y(e.$$.fragment)},l(l){I(e.$$.fragment,l)},m(l,r){A(e,l,r),n=!0},p(l,r){var s;const i={};r&2&&(i.error=l[1]),r&1&&(i.pendingTask=(s=l[0])==null?void 0:s.pendingWorkflowTask),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){p(e.$$.fragment,l),n=!1},d(l){P(e,l)}}}function xn(o){let e,n;return e=new mi({props:{callback:o[0].callbacks[0]}}),{c(){y(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){A(e,t,l),n=!0},p(t,l){const r={};l&1&&(r.callback=t[0].callbacks[0]),e.$set(r)},i(t){n||(d(e.$$.fragment,t),n=!0)},o(t){p(e.$$.fragment,t),n=!1},d(t){P(e,t)}}}function rs(o){var V,k;let e,n,t,l,r,i,s,f,u,a,m,c,_=U("workflows.event-history")+"",h,D,S,O,q,Q,W,z;n=new ls({}),r=new Pi({}),s=new go({});let N=o[1]&&Zn(o),C=((k=(V=o[0])==null?void 0:V.callbacks)==null?void 0:k.length)&&xn(o);return q=new gl({props:{workflow:o[0],groups:o[3],activeGroups:o[4],workflowTaskFailedError:o[1]}}),W=new Xr({props:{groups:o[3],history:o[2]}}),{c(){e=M("div"),y(n.$$.fragment),t=R(),l=M("div"),y(r.$$.fragment),i=R(),y(s.$$.fragment),f=R(),N&&N.c(),u=R(),C&&C.c(),a=R(),m=M("div"),c=M("h2"),h=X(_),D=R(),S=M("div"),O=M("div"),y(q.$$.fragment),Q=R(),y(W.$$.fragment),this.h()},l(w){e=L(w,"DIV",{class:!0});var T=H(e);I(n.$$.fragment,T),t=B(T),l=L(T,"DIV",{class:!0});var E=H(l);I(r.$$.fragment,E),i=B(E),I(s.$$.fragment,E),f=B(E),N&&N.l(E),u=B(E),C&&C.l(E),a=B(E),m=L(E,"DIV",{class:!0});var j=H(m);c=L(j,"H2",{});var F=H(c);h=Y(F,_),F.forEach(g),j.forEach(g),E.forEach(g),T.forEach(g),D=B(w),S=L(w,"DIV",{class:!0});var te=H(S);O=L(te,"DIV",{class:!0});var Z=H(O);I(q.$$.fragment,Z),Q=B(Z),I(W.$$.fragment,Z),Z.forEach(g),te.forEach(g),this.h()},h(){$(m,"class","flex flex-col items-center gap-2 py-2 xl:flex-row xl:justify-between xl:gap-8"),$(l,"class","flex flex-col gap-2"),$(e,"class","flex flex-col gap-0 px-8"),$(O,"class","flex w-full flex-col rounded-sm border-2 border-subtle"),$(S,"class","px-8 pb-24")},m(w,T){v(w,e,T),A(n,e,null),b(e,t),b(e,l),A(r,l,null),b(l,i),A(s,l,null),b(l,f),N&&N.m(l,null),b(l,u),C&&C.m(l,null),b(l,a),b(l,m),b(m,c),b(c,h),v(w,D,T),v(w,S,T),b(S,O),A(q,O,null),b(O,Q),A(W,O,null),z=!0},p(w,[T]){var F,te;w[1]?N?(N.p(w,T),T&2&&d(N,1)):(N=Zn(w),N.c(),d(N,1),N.m(l,u)):N&&(ne(),p(N,1,1,()=>{N=null}),le()),(te=(F=w[0])==null?void 0:F.callbacks)!=null&&te.length?C?(C.p(w,T),T&1&&d(C,1)):(C=xn(w),C.c(),d(C,1),C.m(l,a)):C&&(ne(),p(C,1,1,()=>{C=null}),le());const E={};T&1&&(E.workflow=w[0]),T&8&&(E.groups=w[3]),T&16&&(E.activeGroups=w[4]),T&2&&(E.workflowTaskFailedError=w[1]),q.$set(E);const j={};T&8&&(j.groups=w[3]),T&4&&(j.history=w[2]),W.$set(j)},i(w){z||(d(n.$$.fragment,w),d(r.$$.fragment,w),d(s.$$.fragment,w),d(N),d(C),d(q.$$.fragment,w),d(W.$$.fragment,w),z=!0)},o(w){p(n.$$.fragment,w),p(r.$$.fragment,w),p(s.$$.fragment,w),p(N),p(C),p(q.$$.fragment,w),p(W.$$.fragment,w),z=!1},d(w){w&&(g(e),g(D),g(S)),P(n),P(r),P(s),N&&N.d(),C&&C.d(),P(q),P(W)}}}function os(o,e,n){let t,l,r,i,s,f,u,a,m,c,_,h,D,S;return oe(o,ze,O=>n(8,a=O)),oe(o,Je,O=>n(9,m=O)),oe(o,Rl,O=>n(10,c=O)),oe(o,fl,O=>n(11,_=O)),oe(o,Xe,O=>n(12,h=O)),oe(o,tt,O=>n(13,D=O)),oe(o,Fl,O=>n(4,S=O)),Tl(()=>{Lt()}),o.$$.update=()=>{o.$$.dirty&8192&&n(0,{workflow:t}=D,t),o.$$.dirty&1&&n(7,l=t==null?void 0:t.pendingActivities),o.$$.dirty&1&&n(6,r=t==null?void 0:t.pendingNexusOperations),o.$$.dirty&2240&&n(5,i=ul(_,"ascending",l,r)),o.$$.dirty&4128&&n(3,s=h==="ascending"?i:[...i].reverse()),o.$$.dirty&6144&&n(2,f=h==="ascending"?_:[..._].reverse()),o.$$.dirty&1024&&n(1,u=ji(c)),o.$$.dirty&512&&Lt(),o.$$.dirty&257&&!t.isRunning&&a&&_e(ze,a=!1,a)},[t,u,f,s,S,i,r,l,a,m,c,_,h,D]}class is extends ue{constructor(e){super(),ce(this,e,os,rs,se,{})}}function ss(o){let e,n,t,l;return e=new vl({props:{title:`${U("workflows.workflow-history")} | ${o[1]}`,url:o[0].url.href}}),t=new is({}),{c(){y(e.$$.fragment),n=R(),y(t.$$.fragment)},l(r){I(e.$$.fragment,r),n=B(r),I(t.$$.fragment,r)},m(r,i){A(e,r,i),v(r,n,i),A(t,r,i),l=!0},p(r,[i]){const s={};i&1&&(s.url=r[0].url.href),e.$set(s)},i(r){l||(d(e.$$.fragment,r),d(t.$$.fragment,r),l=!0)},o(r){p(e.$$.fragment,r),p(t.$$.fragment,r),l=!1},d(r){r&&g(n),P(e,r),P(t,r)}}}function fs(o,e,n){let t;oe(o,He,r=>n(0,t=r));const l=t.params.workflow;return[t,l]}class nf extends ue{constructor(e){super(),ce(this,e,fs,ss,se,{})}}export{nf as component}; diff --git a/ui/assets/local/_app/immutable/nodes/34.QysnXzBa.js b/ui/assets/local/_app/immutable/nodes/34.CmRhJUwi.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/34.QysnXzBa.js rename to ui/assets/local/_app/immutable/nodes/34.CmRhJUwi.js index b23fbf9d1..7169a69cb 100644 --- a/ui/assets/local/_app/immutable/nodes/34.QysnXzBa.js +++ b/ui/assets/local/_app/immutable/nodes/34.CmRhJUwi.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.BjP6gGR7.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.B9fTWV7L.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/35.CUqsp5ZR.js b/ui/assets/local/_app/immutable/nodes/35.Cmq5uW0_.js similarity index 88% rename from ui/assets/local/_app/immutable/nodes/35.CUqsp5ZR.js rename to ui/assets/local/_app/immutable/nodes/35.Cmq5uW0_.js index 9a16545db..29da49638 100644 --- a/ui/assets/local/_app/immutable/nodes/35.CUqsp5ZR.js +++ b/ui/assets/local/_app/immutable/nodes/35.Cmq5uW0_.js @@ -1 +1 @@ -import{s as V,h as b,b as T,j as y,k as E,d as U,f as p,m as $,i as w,n as q,c as k,w as D,t as W,l as j,q as A,v as I}from"../chunks/scheduler.C46pS-76.js";import{S as G,i as P,c as H,a as L,m as F,t as c,g as z,b as _,e as B,d as N}from"../chunks/index.dOVbn71B.js";import{p as X}from"../chunks/stores.Dz-RNcUk.js";import{E as Y}from"../chunks/event-summary-table.Bjd71qae.js";import{L as Z}from"../chunks/link.BJceiGbc.js";import{g as x}from"../chunks/index.DCblj7qv.js";import{f as ee}from"../chunks/events-service.DFs0nrNV.js";import{f as v,b as te}from"../chunks/events.Dh9P6F73.js";import{w as re}from"../chunks/workflow-run.DcChDuxV.js";import{i as oe}from"../chunks/get-workflow-relationships.CLftvMta.js";import{b as ne}from"../chunks/route-for.BjP6gGR7.js";function R(l){let t,r,e,o;const f=[le,se],n=[];function i(s,a){return s[2]?0:1}return r=i(l),e=n[r]=f[r](l),{c(){t=b("h2"),e.c(),this.h()},l(s){t=y(s,"H2",{class:!0});var a=E(t);e.l(a),a.forEach(p),this.h()},h(){$(t,"class","flex w-full items-center")},m(s,a){w(s,t,a),n[r].m(t,null),o=!0},p(s,a){let m=r;r=i(s),r===m?n[r].p(s,a):(z(),_(n[m],1,1,()=>{n[m]=null}),B(),e=n[r],e?e.p(s,a):(e=n[r]=f[r](s),e.c()),c(e,1),e.m(t,null))},i(s){o||(c(e),o=!0)},o(s){_(e),o=!1},d(s){s&&p(t),n[r].d()}}}function se(l){let t=l[0].displayName+"",r;return{c(){r=W(t)},l(e){r=j(e,t)},m(e,o){w(e,r,o)},p(e,o){o&1&&t!==(t=e[0].displayName+"")&&A(r,t)},i:I,o:I,d(e){e&&p(r)}}}function le(l){let t,r;return t=new Z({props:{href:l[2],$$slots:{default:[ae]},$$scope:{ctx:l}}}),{c(){H(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,o){F(t,e,o),r=!0},p(e,o){const f={};o&4&&(f.href=e[2]),o&32769&&(f.$$scope={dirty:o,ctx:e}),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){_(t.$$.fragment,e),r=!1},d(e){N(t,e)}}}function ae(l){let t=l[0].displayName+"",r;return{c(){r=W(t)},l(e){r=j(e,t)},m(e,o){w(e,r,o)},p(e,o){o&1&&t!==(t=e[0].displayName+"")&&A(r,t)},d(e){e&&p(r)}}}function ie(l){let t,r,e,o,f,n=l[0]&&R(l);return o=new Y({props:{items:l[1],groups:l[1],updating:l[3],openExpanded:!0}}),{c(){t=b("div"),n&&n.c(),r=T(),e=b("div"),H(o.$$.fragment),this.h()},l(i){t=y(i,"DIV",{class:!0});var s=E(t);n&&n.l(s),r=U(s),e=y(s,"DIV",{"data-testid":!0});var a=E(e);L(o.$$.fragment,a),a.forEach(p),s.forEach(p),this.h()},h(){$(e,"data-testid","event-summary-table"),$(t,"class","px-8")},m(i,s){w(i,t,s),n&&n.m(t,null),q(t,r),q(t,e),F(o,e,null),f=!0},p(i,[s]){i[0]?n?(n.p(i,s),s&1&&c(n,1)):(n=R(i),n.c(),c(n,1),n.m(t,r)):n&&(z(),_(n,1,1,()=>{n=null}),B());const a={};s&2&&(a.items=i[1]),s&2&&(a.groups=i[1]),s&8&&(a.updating=i[3]),o.$set(a)},i(i){f||(c(n),c(o.$$.fragment,i),f=!0)},o(i){_(n),_(o.$$.fragment,i),f=!1},d(i){i&&p(t),n&&n.d(),N(o)}}}function fe(l,t,r){let e,o,f,n,i,s,a,m,S,h;k(l,v,u=>r(7,a=u)),k(l,te,u=>r(10,m=u)),k(l,re,u=>r(11,S=u)),k(l,X,u=>r(8,h=u));let g,C=[];const J=()=>{D(v,a=[],a)},K=async(u,d,O)=>{(S.workflow.id!==d||!a.length)&&(J(),D(v,a=await ee({namespace:u,workflowId:d,runId:O,sort:m}),a)),r(0,g=x(a,m).find(Q=>Q.id===n)),g&&r(1,C=[g])};function M(u){const d=u==null?void 0:u.eventList.find(oe);return d?ne({namespace:e,workflow:d.attributes.workflowExecution.workflowId,run:d.attributes.workflowExecution.runId}):""}return l.$$.update=()=>{l.$$.dirty&256&&r(4,{namespace:e,workflow:o,run:f,id:n}=h.params,e,(r(6,o),r(8,h)),(r(5,f),r(8,h))),l.$$.dirty&112&&K(e,o,f),l.$$.dirty&128&&r(3,i=!a.length),l.$$.dirty&1&&r(2,s=M(g))},[g,C,s,i,e,f,o,a,h]}class ue extends G{constructor(t){super(),P(this,t,fe,ie,V,{})}}function ce(l){let t,r;return t=new ue({}),{c(){H(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,o){F(t,e,o),r=!0},p:I,i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){_(t.$$.fragment,e),r=!1},d(e){N(t,e)}}}class Ee extends G{constructor(t){super(),P(this,t,null,ce,V,{})}}export{Ee as component}; +import{s as V,h as b,b as T,j as y,k as E,d as U,f as p,m as $,i as w,n as q,c as k,w as D,t as W,l as j,q as A,v as I}from"../chunks/scheduler.C46pS-76.js";import{S as G,i as P,c as H,a as L,m as F,t as c,g as z,b as _,e as B,d as N}from"../chunks/index.dOVbn71B.js";import{p as X}from"../chunks/stores.Ds4o9nwd.js";import{E as Y}from"../chunks/event-summary-table.BGH464r2.js";import{L as Z}from"../chunks/link.C_v4aoat.js";import{g as x}from"../chunks/index.B7_EN-g2.js";import{f as ee}from"../chunks/events-service.BZohXMj_.js";import{f as v,b as te}from"../chunks/events.CbhKe7Ai.js";import{w as re}from"../chunks/workflow-run.CoKQBOG_.js";import{i as oe}from"../chunks/get-workflow-relationships.CLftvMta.js";import{b as ne}from"../chunks/route-for.B9fTWV7L.js";function R(l){let t,r,e,o;const f=[le,se],n=[];function i(s,a){return s[2]?0:1}return r=i(l),e=n[r]=f[r](l),{c(){t=b("h2"),e.c(),this.h()},l(s){t=y(s,"H2",{class:!0});var a=E(t);e.l(a),a.forEach(p),this.h()},h(){$(t,"class","flex w-full items-center")},m(s,a){w(s,t,a),n[r].m(t,null),o=!0},p(s,a){let m=r;r=i(s),r===m?n[r].p(s,a):(z(),_(n[m],1,1,()=>{n[m]=null}),B(),e=n[r],e?e.p(s,a):(e=n[r]=f[r](s),e.c()),c(e,1),e.m(t,null))},i(s){o||(c(e),o=!0)},o(s){_(e),o=!1},d(s){s&&p(t),n[r].d()}}}function se(l){let t=l[0].displayName+"",r;return{c(){r=W(t)},l(e){r=j(e,t)},m(e,o){w(e,r,o)},p(e,o){o&1&&t!==(t=e[0].displayName+"")&&A(r,t)},i:I,o:I,d(e){e&&p(r)}}}function le(l){let t,r;return t=new Z({props:{href:l[2],$$slots:{default:[ae]},$$scope:{ctx:l}}}),{c(){H(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,o){F(t,e,o),r=!0},p(e,o){const f={};o&4&&(f.href=e[2]),o&32769&&(f.$$scope={dirty:o,ctx:e}),t.$set(f)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){_(t.$$.fragment,e),r=!1},d(e){N(t,e)}}}function ae(l){let t=l[0].displayName+"",r;return{c(){r=W(t)},l(e){r=j(e,t)},m(e,o){w(e,r,o)},p(e,o){o&1&&t!==(t=e[0].displayName+"")&&A(r,t)},d(e){e&&p(r)}}}function ie(l){let t,r,e,o,f,n=l[0]&&R(l);return o=new Y({props:{items:l[1],groups:l[1],updating:l[3],openExpanded:!0}}),{c(){t=b("div"),n&&n.c(),r=T(),e=b("div"),H(o.$$.fragment),this.h()},l(i){t=y(i,"DIV",{class:!0});var s=E(t);n&&n.l(s),r=U(s),e=y(s,"DIV",{"data-testid":!0});var a=E(e);L(o.$$.fragment,a),a.forEach(p),s.forEach(p),this.h()},h(){$(e,"data-testid","event-summary-table"),$(t,"class","px-8")},m(i,s){w(i,t,s),n&&n.m(t,null),q(t,r),q(t,e),F(o,e,null),f=!0},p(i,[s]){i[0]?n?(n.p(i,s),s&1&&c(n,1)):(n=R(i),n.c(),c(n,1),n.m(t,r)):n&&(z(),_(n,1,1,()=>{n=null}),B());const a={};s&2&&(a.items=i[1]),s&2&&(a.groups=i[1]),s&8&&(a.updating=i[3]),o.$set(a)},i(i){f||(c(n),c(o.$$.fragment,i),f=!0)},o(i){_(n),_(o.$$.fragment,i),f=!1},d(i){i&&p(t),n&&n.d(),N(o)}}}function fe(l,t,r){let e,o,f,n,i,s,a,m,S,h;k(l,v,u=>r(7,a=u)),k(l,te,u=>r(10,m=u)),k(l,re,u=>r(11,S=u)),k(l,X,u=>r(8,h=u));let g,C=[];const J=()=>{D(v,a=[],a)},K=async(u,d,O)=>{(S.workflow.id!==d||!a.length)&&(J(),D(v,a=await ee({namespace:u,workflowId:d,runId:O,sort:m}),a)),r(0,g=x(a,m).find(Q=>Q.id===n)),g&&r(1,C=[g])};function M(u){const d=u==null?void 0:u.eventList.find(oe);return d?ne({namespace:e,workflow:d.attributes.workflowExecution.workflowId,run:d.attributes.workflowExecution.runId}):""}return l.$$.update=()=>{l.$$.dirty&256&&r(4,{namespace:e,workflow:o,run:f,id:n}=h.params,e,(r(6,o),r(8,h)),(r(5,f),r(8,h))),l.$$.dirty&112&&K(e,o,f),l.$$.dirty&128&&r(3,i=!a.length),l.$$.dirty&1&&r(2,s=M(g))},[g,C,s,i,e,f,o,a,h]}class ue extends G{constructor(t){super(),P(this,t,fe,ie,V,{})}}function ce(l){let t,r;return t=new ue({}),{c(){H(t.$$.fragment)},l(e){L(t.$$.fragment,e)},m(e,o){F(t,e,o),r=!0},p:I,i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){_(t.$$.fragment,e),r=!1},d(e){N(t,e)}}}class Ee extends G{constructor(t){super(),P(this,t,null,ce,V,{})}}export{Ee as component}; diff --git a/ui/assets/local/_app/immutable/nodes/36.DjUbZSFv.js b/ui/assets/local/_app/immutable/nodes/36.BZuxtmh0.js similarity index 84% rename from ui/assets/local/_app/immutable/nodes/36.DjUbZSFv.js rename to ui/assets/local/_app/immutable/nodes/36.BZuxtmh0.js index f3186f335..eae00643f 100644 --- a/ui/assets/local/_app/immutable/nodes/36.DjUbZSFv.js +++ b/ui/assets/local/_app/immutable/nodes/36.BZuxtmh0.js @@ -1 +1 @@ -import{s as g,h as j,j as q,k as A,f as l,m as p,i as C,c as d,w as _,v as D}from"../chunks/scheduler.C46pS-76.js";import{S as h,i as y,c as w,a as v,m as b,t as E,b as k,d as x}from"../chunks/index.dOVbn71B.js";import{p as F}from"../chunks/stores.Dz-RNcUk.js";import{E as P}from"../chunks/event-summary-table.Bjd71qae.js";import{f as V}from"../chunks/events-service.DFs0nrNV.js";import{f as c}from"../chunks/events.Dh9P6F73.js";function W(s){let e,t,r;return t=new P({props:{items:s[0],updating:s[1],openExpanded:!0}}),{c(){e=j("div"),w(t.$$.fragment),this.h()},l(n){e=q(n,"DIV",{class:!0,"data-testid":!0});var a=A(e);v(t.$$.fragment,a),a.forEach(l),this.h()},h(){p(e,"class","px-8"),p(e,"data-testid","event-summary-table")},m(n,a){C(n,e,a),b(t,e,null),r=!0},p(n,[a]){const i={};a&1&&(i.items=n[0]),a&2&&(i.updating=n[1]),t.$set(i)},i(n){r||(E(t.$$.fragment,n),r=!0)},o(n){k(t.$$.fragment,n),r=!1},d(n){n&&l(e),x(t)}}}function z(s,e,t){let r,n,a,i,f,u,o;d(s,F,m=>t(5,u=m)),d(s,c,m=>t(6,o=m));const I=()=>{_(c,o=[],o)},$=async(m,H,S)=>{o.length||(I(),_(c,o=await V({namespace:m,workflowId:H,runId:S}),o))};return s.$$.update=()=>{s.$$.dirty&32&&t(4,{namespace:r,workflow:n,run:a}=u.params,r,(t(3,n),t(5,u)),(t(2,a),t(5,u))),s.$$.dirty&28&&$(r,n,a),s.$$.dirty&64&&t(1,i=!o.length),s.$$.dirty&96&&t(0,f=o.filter(m=>m.id===u.params.id))},[f,i,a,n,r,u,o]}class B extends h{constructor(e){super(),y(this,e,z,W,g,{})}}function G(s){let e,t;return e=new B({}),{c(){w(e.$$.fragment)},l(r){v(e.$$.fragment,r)},m(r,n){b(e,r,n),t=!0},p:D,i(r){t||(E(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}class Q extends h{constructor(e){super(),y(this,e,null,G,g,{})}}export{Q as component}; +import{s as g,h as j,j as q,k as A,f as l,m as p,i as C,c as d,w as _,v as D}from"../chunks/scheduler.C46pS-76.js";import{S as h,i as y,c as w,a as v,m as b,t as E,b as k,d as x}from"../chunks/index.dOVbn71B.js";import{p as F}from"../chunks/stores.Ds4o9nwd.js";import{E as P}from"../chunks/event-summary-table.BGH464r2.js";import{f as V}from"../chunks/events-service.BZohXMj_.js";import{f as c}from"../chunks/events.CbhKe7Ai.js";function W(s){let e,t,r;return t=new P({props:{items:s[0],updating:s[1],openExpanded:!0}}),{c(){e=j("div"),w(t.$$.fragment),this.h()},l(n){e=q(n,"DIV",{class:!0,"data-testid":!0});var a=A(e);v(t.$$.fragment,a),a.forEach(l),this.h()},h(){p(e,"class","px-8"),p(e,"data-testid","event-summary-table")},m(n,a){C(n,e,a),b(t,e,null),r=!0},p(n,[a]){const i={};a&1&&(i.items=n[0]),a&2&&(i.updating=n[1]),t.$set(i)},i(n){r||(E(t.$$.fragment,n),r=!0)},o(n){k(t.$$.fragment,n),r=!1},d(n){n&&l(e),x(t)}}}function z(s,e,t){let r,n,a,i,f,u,o;d(s,F,m=>t(5,u=m)),d(s,c,m=>t(6,o=m));const I=()=>{_(c,o=[],o)},$=async(m,H,S)=>{o.length||(I(),_(c,o=await V({namespace:m,workflowId:H,runId:S}),o))};return s.$$.update=()=>{s.$$.dirty&32&&t(4,{namespace:r,workflow:n,run:a}=u.params,r,(t(3,n),t(5,u)),(t(2,a),t(5,u))),s.$$.dirty&28&&$(r,n,a),s.$$.dirty&64&&t(1,i=!o.length),s.$$.dirty&96&&t(0,f=o.filter(m=>m.id===u.params.id))},[f,i,a,n,r,u,o]}class B extends h{constructor(e){super(),y(this,e,z,W,g,{})}}function G(s){let e,t;return e=new B({}),{c(){w(e.$$.fragment)},l(r){v(e.$$.fragment,r)},m(r,n){b(e,r,n),t=!0},p:D,i(r){t||(E(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){x(e,r)}}}class Q extends h{constructor(e){super(),y(this,e,null,G,g,{})}}export{Q as component}; diff --git a/ui/assets/local/_app/immutable/nodes/37.QysnXzBa.js b/ui/assets/local/_app/immutable/nodes/37.CmRhJUwi.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/37.QysnXzBa.js rename to ui/assets/local/_app/immutable/nodes/37.CmRhJUwi.js index b23fbf9d1..7169a69cb 100644 --- a/ui/assets/local/_app/immutable/nodes/37.QysnXzBa.js +++ b/ui/assets/local/_app/immutable/nodes/37.CmRhJUwi.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.BjP6gGR7.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.B9fTWV7L.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/38.QysnXzBa.js b/ui/assets/local/_app/immutable/nodes/38.CmRhJUwi.js similarity index 81% rename from ui/assets/local/_app/immutable/nodes/38.QysnXzBa.js rename to ui/assets/local/_app/immutable/nodes/38.CmRhJUwi.js index b23fbf9d1..7169a69cb 100644 --- a/ui/assets/local/_app/immutable/nodes/38.QysnXzBa.js +++ b/ui/assets/local/_app/immutable/nodes/38.CmRhJUwi.js @@ -1 +1 @@ -import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.BjP6gGR7.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; +import{r as a}from"../chunks/index.g5YcAAdQ.js";import{b as s}from"../chunks/route-for.B9fTWV7L.js";const c=async function({params:o}){const{namespace:e,workflow:r,run:t}=o,n=s({namespace:e,workflow:r,run:t});a(302,n)},u=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{u as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/39.CpF36kwV.js b/ui/assets/local/_app/immutable/nodes/39.CaeGOORd.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/39.CpF36kwV.js rename to ui/assets/local/_app/immutable/nodes/39.CaeGOORd.js index a8b61dd0f..6b5d45a99 100644 --- a/ui/assets/local/_app/immutable/nodes/39.CpF36kwV.js +++ b/ui/assets/local/_app/immutable/nodes/39.CaeGOORd.js @@ -1 +1 @@ -import{s as W,h,b as A,j as g,k as w,d as E,f as d,m as D,i as P,n as p,c as H,t as R,l as j}from"../chunks/scheduler.C46pS-76.js";import{S as q,i as z,t as $,g as V,b as _,e as S,c as v,a as b,m as k,d as y}from"../chunks/index.dOVbn71B.js";import{p as G}from"../chunks/stores.Dz-RNcUk.js";import{P as J}from"../chunks/page-title.DNhqE1Lj.js";import{t as I}from"../chunks/translate.BBe5dcco.js";import{W as K}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{P as B}from"../chunks/payload-decoder.DlOPrRzg.js";import{C as F}from"../chunks/code-block.BkCXXL0z.js";import{w as L}from"../chunks/workflow-run.DcChDuxV.js";function T(c){let e,a,t=I("events.attribute-group.search-attributes")+"",r,o,f,u,l,i;return l=new B({props:{value:{searchAttributes:c[0].searchAttributes},key:"searchAttributes",$$slots:{default:[M,({decodedValue:s})=>({2:s}),({decodedValue:s})=>s?4:0]},$$scope:{ctx:c}}}),{c(){e=h("div"),a=h("h3"),r=R(t),o=A(),f=h("div"),u=A(),v(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var n=w(e);a=g(n,"H3",{});var m=w(a);r=j(m,t),m.forEach(d),o=E(n),f=g(n,"DIV",{class:!0}),w(f).forEach(d),u=E(n),b(l.$$.fragment,n),n.forEach(d),this.h()},h(){D(f,"class","h-0.5 rounded-full bg-inverse"),D(e,"class","mt-4 flex flex-col gap-2")},m(s,n){P(s,e,n),p(e,a),p(a,r),p(e,o),p(e,f),p(e,u),k(l,e,null),i=!0},p(s,n){const m={};n&1&&(m.value={searchAttributes:s[0].searchAttributes}),n&12&&(m.$$scope={dirty:n,ctx:s}),l.$set(m)},i(s){i||($(l.$$.fragment,s),i=!0)},o(s){_(l.$$.fragment,s),i=!1},d(s){s&&d(e),y(l)}}}function M(c){let e,a;return e=new F({props:{content:c[2],copyIconTitle:I("common.copy-icon-title"),copySuccessIconTitle:I("common.copy-success-icon-title")}}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},p(t,r){const o={};r&4&&(o.content=t[2]),e.$set(o)},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function C(c){let e,a,t=I("common.memo")+"",r,o,f,u,l,i;return l=new B({props:{value:{memo:c[0].memo},key:"memo",$$slots:{default:[N,({decodedValue:s})=>({2:s}),({decodedValue:s})=>s?4:0]},$$scope:{ctx:c}}}),{c(){e=h("div"),a=h("h3"),r=R(t),o=A(),f=h("div"),u=A(),v(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var n=w(e);a=g(n,"H3",{});var m=w(a);r=j(m,t),m.forEach(d),o=E(n),f=g(n,"DIV",{class:!0}),w(f).forEach(d),u=E(n),b(l.$$.fragment,n),n.forEach(d),this.h()},h(){D(f,"class","h-0.5 rounded-full bg-inverse"),D(e,"class","mt-4 flex flex-col gap-2")},m(s,n){P(s,e,n),p(e,a),p(a,r),p(e,o),p(e,f),p(e,u),k(l,e,null),i=!0},p(s,n){const m={};n&1&&(m.value={memo:s[0].memo}),n&12&&(m.$$scope={dirty:n,ctx:s}),l.$set(m)},i(s){i||($(l.$$.fragment,s),i=!0)},o(s){_(l.$$.fragment,s),i=!1},d(s){s&&d(e),y(l)}}}function N(c){let e,a;return e=new F({props:{content:c[2],copyIconTitle:I("common.copy-icon-title"),copySuccessIconTitle:I("common.copy-success-icon-title")}}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},p(t,r){const o={};r&4&&(o.content=t[2]),e.$set(o)},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function O(c){var f,u;let e,a,t,r=((f=c[0])==null?void 0:f.searchAttributes)&&T(c),o=((u=c[0])==null?void 0:u.memo)&&C(c);return{c(){e=h("div"),r&&r.c(),a=A(),o&&o.c(),this.h()},l(l){e=g(l,"DIV",{class:!0});var i=w(e);r&&r.l(i),a=E(i),o&&o.l(i),i.forEach(d),this.h()},h(){D(e,"class","flex flex-col gap-4")},m(l,i){P(l,e,i),r&&r.m(e,null),p(e,a),o&&o.m(e,null),t=!0},p(l,[i]){var s,n;(s=l[0])!=null&&s.searchAttributes?r?(r.p(l,i),i&1&&$(r,1)):(r=T(l),r.c(),$(r,1),r.m(e,a)):r&&(V(),_(r,1,1,()=>{r=null}),S()),(n=l[0])!=null&&n.memo?o?(o.p(l,i),i&1&&$(o,1)):(o=C(l),o.c(),$(o,1),o.m(e,null)):o&&(V(),_(o,1,1,()=>{o=null}),S())},i(l){t||($(r),$(o),t=!0)},o(l){_(r),_(o),t=!1},d(l){l&&d(e),r&&r.d(),o&&o.d()}}}function Q(c,e,a){let t,r;return H(c,L,o=>a(1,r=o)),c.$$.update=()=>{c.$$.dirty&2&&a(0,{workflow:t}=r,t)},[t,r]}class U extends q{constructor(e){super(),z(this,e,Q,O,W,{})}}function X(c){let e,a;return e=new U({}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function Y(c){let e,a,t,r;return e=new J({props:{title:`${I("workflows.metadata-tab")} | ${c[1]}`,url:c[0].url.href}}),t=new K({props:{$$slots:{default:[X]},$$scope:{ctx:c}}}),{c(){v(e.$$.fragment),a=A(),v(t.$$.fragment)},l(o){b(e.$$.fragment,o),a=E(o),b(t.$$.fragment,o)},m(o,f){k(e,o,f),P(o,a,f),k(t,o,f),r=!0},p(o,[f]){const u={};f&1&&(u.url=o[0].url.href),e.$set(u);const l={};f&4&&(l.$$scope={dirty:f,ctx:o}),t.$set(l)},i(o){r||($(e.$$.fragment,o),$(t.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),_(t.$$.fragment,o),r=!1},d(o){o&&d(a),y(e,o),y(t,o)}}}function Z(c,e,a){let t;H(c,G,o=>a(0,t=o));const r=t.params.workflow;return[t,r]}class ce extends q{constructor(e){super(),z(this,e,Z,Y,W,{})}}export{ce as component}; +import{s as W,h,b as A,j as g,k as w,d as E,f as d,m as D,i as P,n as p,c as H,t as R,l as j}from"../chunks/scheduler.C46pS-76.js";import{S as q,i as z,t as $,g as V,b as _,e as S,c as v,a as b,m as k,d as y}from"../chunks/index.dOVbn71B.js";import{p as G}from"../chunks/stores.Ds4o9nwd.js";import{P as J}from"../chunks/page-title.DNhqE1Lj.js";import{t as I}from"../chunks/translate.BBe5dcco.js";import{W as K}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{P as B}from"../chunks/payload-decoder.C_mCVVdL.js";import{C as F}from"../chunks/code-block.DGWayI9q.js";import{w as L}from"../chunks/workflow-run.CoKQBOG_.js";function T(c){let e,a,t=I("events.attribute-group.search-attributes")+"",r,o,f,u,l,i;return l=new B({props:{value:{searchAttributes:c[0].searchAttributes},key:"searchAttributes",$$slots:{default:[M,({decodedValue:s})=>({2:s}),({decodedValue:s})=>s?4:0]},$$scope:{ctx:c}}}),{c(){e=h("div"),a=h("h3"),r=R(t),o=A(),f=h("div"),u=A(),v(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var n=w(e);a=g(n,"H3",{});var m=w(a);r=j(m,t),m.forEach(d),o=E(n),f=g(n,"DIV",{class:!0}),w(f).forEach(d),u=E(n),b(l.$$.fragment,n),n.forEach(d),this.h()},h(){D(f,"class","h-0.5 rounded-full bg-inverse"),D(e,"class","mt-4 flex flex-col gap-2")},m(s,n){P(s,e,n),p(e,a),p(a,r),p(e,o),p(e,f),p(e,u),k(l,e,null),i=!0},p(s,n){const m={};n&1&&(m.value={searchAttributes:s[0].searchAttributes}),n&12&&(m.$$scope={dirty:n,ctx:s}),l.$set(m)},i(s){i||($(l.$$.fragment,s),i=!0)},o(s){_(l.$$.fragment,s),i=!1},d(s){s&&d(e),y(l)}}}function M(c){let e,a;return e=new F({props:{content:c[2],copyIconTitle:I("common.copy-icon-title"),copySuccessIconTitle:I("common.copy-success-icon-title")}}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},p(t,r){const o={};r&4&&(o.content=t[2]),e.$set(o)},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function C(c){let e,a,t=I("common.memo")+"",r,o,f,u,l,i;return l=new B({props:{value:{memo:c[0].memo},key:"memo",$$slots:{default:[N,({decodedValue:s})=>({2:s}),({decodedValue:s})=>s?4:0]},$$scope:{ctx:c}}}),{c(){e=h("div"),a=h("h3"),r=R(t),o=A(),f=h("div"),u=A(),v(l.$$.fragment),this.h()},l(s){e=g(s,"DIV",{class:!0});var n=w(e);a=g(n,"H3",{});var m=w(a);r=j(m,t),m.forEach(d),o=E(n),f=g(n,"DIV",{class:!0}),w(f).forEach(d),u=E(n),b(l.$$.fragment,n),n.forEach(d),this.h()},h(){D(f,"class","h-0.5 rounded-full bg-inverse"),D(e,"class","mt-4 flex flex-col gap-2")},m(s,n){P(s,e,n),p(e,a),p(a,r),p(e,o),p(e,f),p(e,u),k(l,e,null),i=!0},p(s,n){const m={};n&1&&(m.value={memo:s[0].memo}),n&12&&(m.$$scope={dirty:n,ctx:s}),l.$set(m)},i(s){i||($(l.$$.fragment,s),i=!0)},o(s){_(l.$$.fragment,s),i=!1},d(s){s&&d(e),y(l)}}}function N(c){let e,a;return e=new F({props:{content:c[2],copyIconTitle:I("common.copy-icon-title"),copySuccessIconTitle:I("common.copy-success-icon-title")}}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},p(t,r){const o={};r&4&&(o.content=t[2]),e.$set(o)},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function O(c){var f,u;let e,a,t,r=((f=c[0])==null?void 0:f.searchAttributes)&&T(c),o=((u=c[0])==null?void 0:u.memo)&&C(c);return{c(){e=h("div"),r&&r.c(),a=A(),o&&o.c(),this.h()},l(l){e=g(l,"DIV",{class:!0});var i=w(e);r&&r.l(i),a=E(i),o&&o.l(i),i.forEach(d),this.h()},h(){D(e,"class","flex flex-col gap-4")},m(l,i){P(l,e,i),r&&r.m(e,null),p(e,a),o&&o.m(e,null),t=!0},p(l,[i]){var s,n;(s=l[0])!=null&&s.searchAttributes?r?(r.p(l,i),i&1&&$(r,1)):(r=T(l),r.c(),$(r,1),r.m(e,a)):r&&(V(),_(r,1,1,()=>{r=null}),S()),(n=l[0])!=null&&n.memo?o?(o.p(l,i),i&1&&$(o,1)):(o=C(l),o.c(),$(o,1),o.m(e,null)):o&&(V(),_(o,1,1,()=>{o=null}),S())},i(l){t||($(r),$(o),t=!0)},o(l){_(r),_(o),t=!1},d(l){l&&d(e),r&&r.d(),o&&o.d()}}}function Q(c,e,a){let t,r;return H(c,L,o=>a(1,r=o)),c.$$.update=()=>{c.$$.dirty&2&&a(0,{workflow:t}=r,t)},[t,r]}class U extends q{constructor(e){super(),z(this,e,Q,O,W,{})}}function X(c){let e,a;return e=new U({}),{c(){v(e.$$.fragment)},l(t){b(e.$$.fragment,t)},m(t,r){k(e,t,r),a=!0},i(t){a||($(e.$$.fragment,t),a=!0)},o(t){_(e.$$.fragment,t),a=!1},d(t){y(e,t)}}}function Y(c){let e,a,t,r;return e=new J({props:{title:`${I("workflows.metadata-tab")} | ${c[1]}`,url:c[0].url.href}}),t=new K({props:{$$slots:{default:[X]},$$scope:{ctx:c}}}),{c(){v(e.$$.fragment),a=A(),v(t.$$.fragment)},l(o){b(e.$$.fragment,o),a=E(o),b(t.$$.fragment,o)},m(o,f){k(e,o,f),P(o,a,f),k(t,o,f),r=!0},p(o,[f]){const u={};f&1&&(u.url=o[0].url.href),e.$set(u);const l={};f&4&&(l.$$scope={dirty:f,ctx:o}),t.$set(l)},i(o){r||($(e.$$.fragment,o),$(t.$$.fragment,o),r=!0)},o(o){_(e.$$.fragment,o),_(t.$$.fragment,o),r=!1},d(o){o&&d(a),y(e,o),y(t,o)}}}function Z(c,e,a){let t;H(c,G,o=>a(0,t=o));const r=t.params.workflow;return[t,r]}class ce extends q{constructor(e){super(),z(this,e,Z,Y,W,{})}}export{ce as component}; diff --git a/ui/assets/local/_app/immutable/nodes/4.B3mgOWfd.js b/ui/assets/local/_app/immutable/nodes/4.9j4L6jmF.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/4.B3mgOWfd.js rename to ui/assets/local/_app/immutable/nodes/4.9j4L6jmF.js index f20c49444..68b7a565e 100644 --- a/ui/assets/local/_app/immutable/nodes/4.B3mgOWfd.js +++ b/ui/assets/local/_app/immutable/nodes/4.9j4L6jmF.js @@ -1 +1 @@ -import{s as M,a as P,h as j,t as U,b as D,j as I,k as N,l as q,f as m,d as H,m as v,i as C,n as _,u as Q,g as R,e as W,c as Z,v as z}from"../chunks/scheduler.C46pS-76.js";import{S as X,i as Y,c as T,a as V,m as y,t as d,b as h,d as S}from"../chunks/index.dOVbn71B.js";import{E as x}from"../chunks/event-history-file-import.C5IunOHG.js";import{T as ee,a as O}from"../chunks/toggle-buttons.Cubqph53.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{l as te}from"../chunks/namespaces.619_s9Tr.js";import{r as k}from"../chunks/route-for.BjP6gGR7.js";function se(a){let t=A("workflows.history")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function ne(a){let t=A("workflows.compact")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function oe(a){let t=A("workflows.json")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function ae(a){let t,s,e,n,r,i;return t=new O({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new O({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),r=new O({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=D(),T(e.$$.fragment),n=D(),T(r.$$.fragment)},l(o){V(t.$$.fragment,o),s=H(o),V(e.$$.fragment,o),n=H(o),V(r.$$.fragment,o)},m(o,l){y(t,o,l),C(o,s,l),y(e,o,l),C(o,n,l),y(r,o,l),i=!0},p(o,l){const b={};l&1&&(b.href=k(o[0],"feed")),l&4&&(b.$$scope={dirty:l,ctx:o}),t.$set(b);const c={};l&1&&(c.href=k(o[0],"compact")),l&4&&(c.$$scope={dirty:l,ctx:o}),e.$set(c);const p={};l&1&&(p.href=k(o[0],"json")),l&4&&(p.$$scope={dirty:l,ctx:o}),r.$set(p)},i(o){i||(d(t.$$.fragment,o),d(e.$$.fragment,o),d(r.$$.fragment,o),i=!0)},o(o){h(t.$$.fragment,o),h(e.$$.fragment,o),h(r.$$.fragment,o),i=!1},d(o){o&&(m(s),m(n)),S(t,o),S(e,o),S(r,o)}}}function re(a){let t,s,e,n=A("events.import-event-history")+"",r,i,o,l,b,c,p,g,F,E;l=new x({}),g=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const L=a[1].default,$=P(L,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),r=U(n),i=D(),o=j("div"),T(l.$$.fragment),b=D(),c=j("nav"),p=j("div"),T(g.$$.fragment),F=D(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{});var B=N(e);r=q(B,n),B.forEach(m),i=H(w),o=I(w,"DIV",{class:!0});var G=N(o);V(l.$$.fragment,G),G.forEach(m),w.forEach(m),b=H(u),c=I(u,"NAV",{class:!0,"aria-label":!0});var J=N(c);p=I(J,"DIV",{id:!0,class:!0});var K=N(p);V(g.$$.fragment,K),K.forEach(m),J.forEach(m),F=H(u),$&&$.l(u),u.forEach(m),this.h()},h(){v(o,"class","flex gap-4"),v(s,"class","flex flex-col items-start justify-between gap-4 pb-4 md:flex-row"),v(s,"aria-label",A("events.import-event-history")),v(p,"id","event-view-toggle"),v(p,"class","surface-primary flex gap-4"),v(c,"class","flex items-end justify-end gap-4"),v(c,"aria-label",A("events.event-history-view")),v(t,"id","event-history")},m(f,u){C(f,t,u),_(t,s),_(s,e),_(e,r),_(s,i),_(s,o),y(l,o,null),_(t,b),_(t,c),_(c,p),y(g,p,null),_(t,F),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),g.$set(w),$&&$.p&&(!E||u&4)&&Q($,L,f,f[2],E?W(L,f[2],u,null):R(f[2]),null)},i(f){E||(d(l.$$.fragment,f),d(g.$$.fragment,f),d($,f),E=!0)},o(f){h(l.$$.fragment,f),h(g.$$.fragment,f),h($,f),E=!1},d(f){f&&m(t),S(l),S(g),$&&$.d(f)}}}function le(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:n={},$$scope:r}=t;return a.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[e,n,r]}class fe extends X{constructor(t){super(),Y(this,t,le,re,M,{})}}function ie(a){let t;const s=a[0].default,e=P(s,a,a[1],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&2)&&Q(e,s,n,n[1],t?W(s,n[1],r,null):R(n[1]),null)},i(n){t||(d(e,n),t=!0)},o(n){h(e,n),t=!1},d(n){e&&e.d(n)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,n){y(t,e,n),s=!0},p(e,[n]){const r={};n&2&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){S(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:n}=t;return a.$$set=r=>{"$$scope"in r&&s(1,n=r.$$scope)},[e,n]}class he extends X{constructor(t){super(),Y(this,t,ue,$e,M,{})}}export{he as component}; +import{s as M,a as P,h as j,t as U,b as D,j as I,k as N,l as q,f as m,d as H,m as v,i as C,n as _,u as Q,g as R,e as W,c as Z,v as z}from"../chunks/scheduler.C46pS-76.js";import{S as X,i as Y,c as T,a as V,m as y,t as d,b as h,d as S}from"../chunks/index.dOVbn71B.js";import{E as x}from"../chunks/event-history-file-import.BWMNMNHv.js";import{T as ee,a as O}from"../chunks/toggle-buttons.cS3NnOtm.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{l as te}from"../chunks/namespaces.DEm0M_ie.js";import{r as k}from"../chunks/route-for.B9fTWV7L.js";function se(a){let t=A("workflows.history")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function ne(a){let t=A("workflows.compact")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function oe(a){let t=A("workflows.json")+"",s;return{c(){s=U(t)},l(e){s=q(e,t)},m(e,n){C(e,s,n)},p:z,d(e){e&&m(s)}}}function ae(a){let t,s,e,n,r,i;return t=new O({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new O({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),r=new O({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=D(),T(e.$$.fragment),n=D(),T(r.$$.fragment)},l(o){V(t.$$.fragment,o),s=H(o),V(e.$$.fragment,o),n=H(o),V(r.$$.fragment,o)},m(o,l){y(t,o,l),C(o,s,l),y(e,o,l),C(o,n,l),y(r,o,l),i=!0},p(o,l){const b={};l&1&&(b.href=k(o[0],"feed")),l&4&&(b.$$scope={dirty:l,ctx:o}),t.$set(b);const c={};l&1&&(c.href=k(o[0],"compact")),l&4&&(c.$$scope={dirty:l,ctx:o}),e.$set(c);const p={};l&1&&(p.href=k(o[0],"json")),l&4&&(p.$$scope={dirty:l,ctx:o}),r.$set(p)},i(o){i||(d(t.$$.fragment,o),d(e.$$.fragment,o),d(r.$$.fragment,o),i=!0)},o(o){h(t.$$.fragment,o),h(e.$$.fragment,o),h(r.$$.fragment,o),i=!1},d(o){o&&(m(s),m(n)),S(t,o),S(e,o),S(r,o)}}}function re(a){let t,s,e,n=A("events.import-event-history")+"",r,i,o,l,b,c,p,g,F,E;l=new x({}),g=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const L=a[1].default,$=P(L,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),r=U(n),i=D(),o=j("div"),T(l.$$.fragment),b=D(),c=j("nav"),p=j("div"),T(g.$$.fragment),F=D(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{});var B=N(e);r=q(B,n),B.forEach(m),i=H(w),o=I(w,"DIV",{class:!0});var G=N(o);V(l.$$.fragment,G),G.forEach(m),w.forEach(m),b=H(u),c=I(u,"NAV",{class:!0,"aria-label":!0});var J=N(c);p=I(J,"DIV",{id:!0,class:!0});var K=N(p);V(g.$$.fragment,K),K.forEach(m),J.forEach(m),F=H(u),$&&$.l(u),u.forEach(m),this.h()},h(){v(o,"class","flex gap-4"),v(s,"class","flex flex-col items-start justify-between gap-4 pb-4 md:flex-row"),v(s,"aria-label",A("events.import-event-history")),v(p,"id","event-view-toggle"),v(p,"class","surface-primary flex gap-4"),v(c,"class","flex items-end justify-end gap-4"),v(c,"aria-label",A("events.event-history-view")),v(t,"id","event-history")},m(f,u){C(f,t,u),_(t,s),_(s,e),_(e,r),_(s,i),_(s,o),y(l,o,null),_(t,b),_(t,c),_(c,p),y(g,p,null),_(t,F),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),g.$set(w),$&&$.p&&(!E||u&4)&&Q($,L,f,f[2],E?W(L,f[2],u,null):R(f[2]),null)},i(f){E||(d(l.$$.fragment,f),d(g.$$.fragment,f),d($,f),E=!0)},o(f){h(l.$$.fragment,f),h(g.$$.fragment,f),h($,f),E=!1},d(f){f&&m(t),S(l),S(g),$&&$.d(f)}}}function le(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:n={},$$scope:r}=t;return a.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[e,n,r]}class fe extends X{constructor(t){super(),Y(this,t,le,re,M,{})}}function ie(a){let t;const s=a[0].default,e=P(s,a,a[1],null);return{c(){e&&e.c()},l(n){e&&e.l(n)},m(n,r){e&&e.m(n,r),t=!0},p(n,r){e&&e.p&&(!t||r&2)&&Q(e,s,n,n[1],t?W(s,n[1],r,null):R(n[1]),null)},i(n){t||(d(e,n),t=!0)},o(n){h(e,n),t=!1},d(n){e&&e.d(n)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,n){y(t,e,n),s=!0},p(e,[n]){const r={};n&2&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){S(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:n}=t;return a.$$set=r=>{"$$scope"in r&&s(1,n=r.$$scope)},[e,n]}class he extends X{constructor(t){super(),Y(this,t,ue,$e,M,{})}}export{he as component}; diff --git a/ui/assets/local/_app/immutable/nodes/40.BECBiniA.js b/ui/assets/local/_app/immutable/nodes/40.DQDnGBWV.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/40.BECBiniA.js rename to ui/assets/local/_app/immutable/nodes/40.DQDnGBWV.js index 21b6f91f9..c4289af22 100644 --- a/ui/assets/local/_app/immutable/nodes/40.BECBiniA.js +++ b/ui/assets/local/_app/immutable/nodes/40.DQDnGBWV.js @@ -1 +1 @@ -import{s as ct,x as K,i as k,f as m,c as Ee,v as Ce,h,t as H,j as d,k as v,l as L,m as N,n as c,ab as $t,b as T,d as I,q as O}from"../chunks/scheduler.C46pS-76.js";import{S as mt,i as pt,g as Q,b,e as X,t as g,c as F,a as C,m as B,d as R}from"../chunks/index.dOVbn71B.js";import{p as ht}from"../chunks/stores.Dz-RNcUk.js";import{P as dt}from"../chunks/page-title.DNhqE1Lj.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{W as vt}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{e as Je,u as gt,o as wt}from"../chunks/each.C6O0oV7R.js";import{B as ce}from"../chunks/badge.jG5hkqHT.js";import{C as _t}from"../chunks/code-block.BkCXXL0z.js";import{E as bt}from"../chunks/empty-state.BO9uOKUe.js";import{I as kt}from"../chunks/icon.CfkHLDdJ.js";import{L as Et}from"../chunks/link.BJceiGbc.js";import{T as Tt,a as It,b as yt}from"../chunks/table.Cg5jABZi.js";import{T as Ht}from"../chunks/tooltip.D2lOlqUw.js";import{t as Lt,r as Dt,f as Y}from"../chunks/time-format.D2wF3ave.js";import{w as At}from"../chunks/workflow-run.DcChDuxV.js";import{f as Ke,a as Qe,b as Xe,t as Ye}from"../chunks/to-time-difference.ZrFqr6rH.js";import{a as Ze,g as xe}from"../chunks/format-time.6TuExJAg.js";import{s as Te}from"../chunks/parse-with-big-int.BKSBwM2t.js";function et(i,e,l){const t=i.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=$t(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Pt(i){let e,l;return e=new bt({props:{title:A("workflows.pending-activities-empty-state")}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p:Ce,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function St(i){let e,l;return e=new Tt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Vt],caption:[Ot],default:[Mt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Wt(i){let e=i[6]+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&O(l,e)},d(t){t&&m(l)}}}function Nt(i){let e=i[7].activityType+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&O(l,e)},d(t){t&&m(l)}}}function tt(i){let e,l;return e=new kt({props:{class:"mr-1",name:"retry"}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Ft(i){let e,l=i[7].attempt+"",t,o,s=i[8]&&tt();return{c(){s&&s.c(),e=T(),t=H(l)},l(a){s&&s.l(a),e=I(a),t=L(a,l)},m(a,n){s&&s.m(a,n),k(a,e,n),k(a,t,n),o=!0},p(a,n){a[8]?s?n&1&&g(s,1):(s=tt(),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(Q(),b(s,1,1,()=>{s=null}),X()),(!o||n&1)&&l!==(l=a[7].attempt+"")&&O(t,l)},i(a){o||(g(s),o=!0)},o(a){b(s),o=!1},d(a){a&&(m(e),m(t)),s&&s.d(a)}}}function lt(i){let e,l,t=A("workflows.attempts-left")+"",o,s,a,n,r,f;a=new ce({props:{type:"danger",$$slots:{default:[Ct]},$$scope:{ctx:i}}});let u=i[7].scheduledTime&&at(i);return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),n=T(),u&&u.c(),r=K(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var E=v(l);o=L(E,t),E.forEach(m),s=I(p),C(a.$$.fragment,p),p.forEach(m),n=I($),u&&u.l($),r=K(),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),B(a,e,null),k($,n,p),u&&u.m($,p),k($,r,p),f=!0},p($,p){const E={};p&2049&&(E.$$scope={dirty:p,ctx:$}),a.$set(E),$[7].scheduledTime?u?(u.p($,p),p&1&&g(u,1)):(u=at($),u.c(),g(u,1),u.m(r.parentNode,r)):u&&(Q(),b(u,1,1,()=>{u=null}),X())},i($){f||(g(a.$$.fragment,$),g(u),f=!0)},o($){b(a.$$.fragment,$),b(u),f=!1},d($){$&&(m(e),m(n),m(r)),R(a),u&&u.d($)}}}function Ct(i){let e=Ke(i[7].maximumAttempts,i[7].attempt)+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ke(t[7].maximumAttempts,t[7].attempt)+"")&&O(l,e)},d(t){t&&m(l)}}}function at(i){let e,l,t=A("workflows.next-retry")+"",o,s,a,n;return a=new Ht({props:{width:200,left:!0,text:Y(i[7].scheduledTime,i[1],{relative:i[2]}),$$slots:{default:[Rt]},$$scope:{ctx:i}}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&7&&(u.text=Y(r[7].scheduledTime,r[1],{relative:r[2]})),f&2049&&(u.$$scope={dirty:f,ctx:r}),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function Bt(i){let e=Ye({date:i[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ye({date:t[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"")&&O(l,e)},d(t){t&&m(l)}}}function Rt(i){let e,l;return e=new ce({props:{type:"danger",$$slots:{default:[Bt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p(t,o){const s={};o&2049&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function jt(i){let e=Qe(i[7].maximumAttempts)+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Qe(t[7].maximumAttempts)+"")&&O(l,e)},d(t){t&&m(l)}}}function rt(i){let e,l,t,o,s=A("workflows.retry-expiration")+"",a,n,r,f=Xe(i[7].maximumAttempts,Ze(xe({start:Date.now(),end:i[7].expirationTime})))+"",u,$,p=i[7].heartbeatDetails&&st(i),E=i[7].lastFailure&&ot(i);return{c(){p&&p.c(),e=T(),E&&E.c(),l=T(),t=h("li"),o=h("h4"),a=H(s),n=T(),r=h("p"),u=H(f),this.h()},l(w){p&&p.l(w),e=I(w),E&&E.l(w),l=I(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var ae=v(o);a=L(ae,s),ae.forEach(m),n=I(P),r=d(P,"P",{});var x=v(r);u=L(x,f),x.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-gb5p09")},m(w,P){p&&p.m(w,P),k(w,e,P),E&&E.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,a),c(t,n),c(t,r),c(r,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&g(p,1)):(p=st(w),p.c(),g(p,1),p.m(e.parentNode,e)):p&&(Q(),b(p,1,1,()=>{p=null}),X()),w[7].lastFailure?E?(E.p(w,P),P&1&&g(E,1)):(E=ot(w),E.c(),g(E,1),E.m(l.parentNode,l)):E&&(Q(),b(E,1,1,()=>{E=null}),X()),(!$||P&1)&&f!==(f=Xe(w[7].maximumAttempts,Ze(xe({start:Date.now(),end:w[7].expirationTime})))+"")&&O(u,f)},i(w){$||(g(p),g(E),$=!0)},o(w){b(p),b(E),$=!1},d(w){w&&(m(e),m(l),m(t)),p&&p.d(w),E&&E.d(w)}}}function st(i){let e,l,t=A("workflows.heartbeat-details")+"",o,s,a,n;return a=new _t({props:{slot:"value",class:"pb-2",content:Te(i[7].heartbeatDetails),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&1&&(u.content=Te(r[7].heartbeatDetails)),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function ot(i){let e,l,t=A("workflows.last-failure")+"",o,s,a,n;return a=new _t({props:{slot:"value",class:"pb-2",content:Te(i[7].lastFailure),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&1&&(u.content=Te(r[7].lastFailure)),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function it(i){let e,l,t=A("workflows.last-started-time")+"",o,s,a,n=Y(i[7].lastStartedTime,i[1],{relative:i[2]})+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&7&&n!==(n=Y(f[7].lastStartedTime,f[1],{relative:f[2]})+"")&&O(r,n)},d(f){f&&m(e)}}}function nt(i){let e,l,t=A("workflows.scheduled-time")+"",o,s,a,n=Y(i[7].scheduledTime,i[1],{relative:i[2]})+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&7&&n!==(n=Y(f[7].scheduledTime,f[1],{relative:f[2]})+"")&&O(r,n)},d(f){f&&m(e)}}}function ft(i){let e,l,t=A("workflows.last-worker-identity")+"",o,s,a,n=i[7].lastWorkerIdentity+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&1&&n!==(n=f[7].lastWorkerIdentity+"")&&O(r,n)},d(f){f&&m(e)}}}function qt(i){let e,l,t,o,s,a,n,r,f=A("workflows.activity-type")+"",u,$,p,E,w,P,ae=A("workflows.attempt")+"",x,Ie,U,ye,me,V,re,Be=A("workflows.maximum-attempts")+"",He,Le,z,De,pe,G,se,Re=A("workflows.last-heartbeat")+"",Ae,Pe,oe,ie=Y(i[7].lastHeartbeatTime,i[1],{relative:i[2],relativeStrict:!0})+"",_e,Se,J,ne,je=A("workflows.state")+"",We,Ne,fe,ue=i[7].state+"",$e,Fe,he,de,ve,ee;t=new Et({props:{href:"#"+i[5],$$slots:{default:[Wt]},$$scope:{ctx:i}}}),p=new ce({props:{type:i[8]?"danger":void 0,$$slots:{default:[Nt]},$$scope:{ctx:i}}}),U=new ce({props:{type:i[8]?"danger":void 0,$$slots:{default:[Ft]},$$scope:{ctx:i}}});let S=i[8]&<(i);z=new ce({props:{$$slots:{default:[jt]},$$scope:{ctx:i}}});let W=i[8]&&rt(i),j=i[7].lastStartedTime&&it(i),q=i[7].scheduledTime&&nt(i),M=i[7].lastWorkerIdentity&&ft(i);return{c(){e=h("td"),l=h("div"),F(t.$$.fragment),o=T(),s=h("td"),a=h("ul"),n=h("li"),r=h("h4"),u=H(f),$=T(),F(p.$$.fragment),E=T(),w=h("li"),P=h("h4"),x=H(ae),Ie=T(),F(U.$$.fragment),ye=T(),S&&S.c(),me=T(),V=h("li"),re=h("h4"),He=H(Be),Le=T(),F(z.$$.fragment),De=T(),W&&W.c(),pe=T(),G=h("li"),se=h("h4"),Ae=H(Re),Pe=T(),oe=h("p"),_e=H(ie),Se=T(),J=h("li"),ne=h("h4"),We=H(je),Ne=T(),fe=h("p"),$e=H(ue),Fe=T(),j&&j.c(),he=T(),q&&q.c(),de=T(),M&&M.c(),ve=T(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var te=v(l);C(t.$$.fragment,te),te.forEach(m),y.forEach(m),o=I(_),s=d(_,"TD",{class:!0});var le=v(s);a=d(le,"UL",{});var D=v(a);n=d(D,"LI",{class:!0});var Z=v(n);r=d(Z,"H4",{});var qe=v(r);u=L(qe,f),qe.forEach(m),$=I(Z),C(p.$$.fragment,Z),Z.forEach(m),E=I(D),w=d(D,"LI",{class:!0});var ge=v(w);P=d(ge,"H4",{});var Me=v(P);x=L(Me,ae),Me.forEach(m),Ie=I(ge),C(U.$$.fragment,ge),ge.forEach(m),ye=I(D),S&&S.l(D),me=I(D),V=d(D,"LI",{class:!0});var we=v(V);re=d(we,"H4",{});var Oe=v(re);He=L(Oe,Be),Oe.forEach(m),Le=I(we),C(z.$$.fragment,we),we.forEach(m),De=I(D),W&&W.l(D),pe=I(D),G=d(D,"LI",{class:!0});var be=v(G);se=d(be,"H4",{});var Ue=v(se);Ae=L(Ue,Re),Ue.forEach(m),Pe=I(be),oe=d(be,"P",{});var Ve=v(oe);_e=L(Ve,ie),Ve.forEach(m),be.forEach(m),Se=I(D),J=d(D,"LI",{class:!0});var ke=v(J);ne=d(ke,"H4",{});var ze=v(ne);We=L(ze,je),ze.forEach(m),Ne=I(ke),fe=d(ke,"P",{});var Ge=v(fe);$e=L(Ge,ue),Ge.forEach(m),ke.forEach(m),Fe=I(D),j&&j.l(D),he=I(D),q&&q.l(D),de=I(D),M&&M.l(D),D.forEach(m),le.forEach(m),ve=I(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(n,"class","event-table-row svelte-gb5p09"),N(w,"class","event-table-row svelte-gb5p09"),N(V,"class","event-table-row svelte-gb5p09"),N(G,"class","event-table-row svelte-gb5p09"),N(J,"class","event-table-row svelte-gb5p09"),N(s,"class","px-5 py-4")},m(_,y){k(_,e,y),c(e,l),B(t,l,null),k(_,o,y),k(_,s,y),c(s,a),c(a,n),c(n,r),c(r,u),c(n,$),B(p,n,null),c(a,E),c(a,w),c(w,P),c(P,x),c(w,Ie),B(U,w,null),c(a,ye),S&&S.m(a,null),c(a,me),c(a,V),c(V,re),c(re,He),c(V,Le),B(z,V,null),c(a,De),W&&W.m(a,null),c(a,pe),c(a,G),c(G,se),c(se,Ae),c(G,Pe),c(G,oe),c(oe,_e),c(a,Se),c(a,J),c(J,ne),c(ne,We),c(J,Ne),c(J,fe),c(fe,$e),c(a,Fe),j&&j.m(a,null),c(a,he),q&&q.m(a,null),c(a,de),M&&M.m(a,null),k(_,ve,y),ee=!0},p(_,y){const te={};y&1&&(te.href="#"+_[5]),y&2049&&(te.$$scope={dirty:y,ctx:_}),t.$set(te);const le={};y&1&&(le.type=_[8]?"danger":void 0),y&2049&&(le.$$scope={dirty:y,ctx:_}),p.$set(le);const D={};y&1&&(D.type=_[8]?"danger":void 0),y&2049&&(D.$$scope={dirty:y,ctx:_}),U.$set(D),_[8]?S?(S.p(_,y),y&1&&g(S,1)):(S=lt(_),S.c(),g(S,1),S.m(a,me)):S&&(Q(),b(S,1,1,()=>{S=null}),X());const Z={};y&2049&&(Z.$$scope={dirty:y,ctx:_}),z.$set(Z),_[8]?W?(W.p(_,y),y&1&&g(W,1)):(W=rt(_),W.c(),g(W,1),W.m(a,pe)):W&&(Q(),b(W,1,1,()=>{W=null}),X()),(!ee||y&7)&&ie!==(ie=Y(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&O(_e,ie),(!ee||y&1)&&ue!==(ue=_[7].state+"")&&O($e,ue),_[7].lastStartedTime?j?j.p(_,y):(j=it(_),j.c(),j.m(a,he)):j&&(j.d(1),j=null),_[7].scheduledTime?q?q.p(_,y):(q=nt(_),q.c(),q.m(a,de)):q&&(q.d(1),q=null),_[7].lastWorkerIdentity?M?M.p(_,y):(M=ft(_),M.c(),M.m(a,null)):M&&(M.d(1),M=null)},i(_){ee||(g(t.$$.fragment,_),g(p.$$.fragment,_),g(U.$$.fragment,_),g(S),g(z.$$.fragment,_),g(W),ee=!0)},o(_){b(t.$$.fragment,_),b(p.$$.fragment,_),b(U.$$.fragment,_),b(S),b(z.$$.fragment,_),b(W),ee=!1},d(_){_&&(m(e),m(o),m(s),m(ve)),R(t),R(p),R(U),S&&S.d(),R(z),W&&W.d(),j&&j.d(),q&&q.d(),M&&M.d()}}}function ut(i,e){let l,t,o;return t=new yt({props:{$$slots:{default:[qt]},$$scope:{ctx:e}}}),{key:i,first:null,c(){l=K(),F(t.$$.fragment),this.h()},l(s){l=K(),C(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,a){k(s,l,a),B(t,s,a),o=!0},p(s,a){e=s;const n={};a&2055&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(s){o||(g(t.$$.fragment,s),o=!0)},o(s){b(t.$$.fragment,s),o=!1},d(s){s&&m(l),R(t,s)}}}function Mt(i){let e=[],l=new Map,t,o,s=Je(i[0]);const a=n=>n[5];for(let n=0;n{a[u]=null}),X(),l=a[e],l?l.p(r,f):(l=a[e]=s[e](r),l.c()),g(l,1),l.m(t.parentNode,t))},i(r){o||(g(l),o=!0)},o(r){b(l),o=!1},d(r){r&&m(t),a[e].d(r)}}}function Gt(i,e,l){let t,o,s,a;Ee(i,At,r=>l(4,o=r)),Ee(i,Lt,r=>l(1,s=r)),Ee(i,Dt,r=>l(2,a=r));var n;return i.$$.update=()=>{i.$$.dirty&24&&l(0,t=l(3,n=o.workflow)===null||n===void 0?void 0:n.pendingActivities)},[t,s,a,n,o]}class Jt extends mt{constructor(e){super(),pt(this,e,Gt,zt,ct,{})}}function Kt(i){let e,l;return e=new Jt({}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Qt(i){let e,l,t,o;return e=new dt({props:{title:`${A("workflows.pending-activities-tab")} | ${i[1]}`,url:i[0].url.href}}),t=new vt({props:{$$slots:{default:[Kt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment),l=T(),F(t.$$.fragment)},l(s){C(e.$$.fragment,s),l=I(s),C(t.$$.fragment,s)},m(s,a){B(e,s,a),k(s,l,a),B(t,s,a),o=!0},p(s,[a]){const n={};a&1&&(n.url=s[0].url.href),e.$set(n);const r={};a&4&&(r.$$scope={dirty:a,ctx:s}),t.$set(r)},i(s){o||(g(e.$$.fragment,s),g(t.$$.fragment,s),o=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),o=!1},d(s){s&&m(l),R(e,s),R(t,s)}}}function Xt(i,e,l){let t;Ee(i,ht,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class hl extends mt{constructor(e){super(),pt(this,e,Xt,Qt,ct,{})}}export{hl as component}; +import{s as ct,x as K,i as k,f as m,c as Ee,v as Ce,h,t as H,j as d,k as v,l as L,m as N,n as c,ab as $t,b as T,d as I,q as O}from"../chunks/scheduler.C46pS-76.js";import{S as mt,i as pt,g as Q,b,e as X,t as g,c as F,a as C,m as B,d as R}from"../chunks/index.dOVbn71B.js";import{p as ht}from"../chunks/stores.Ds4o9nwd.js";import{P as dt}from"../chunks/page-title.DNhqE1Lj.js";import{t as A}from"../chunks/translate.BBe5dcco.js";import{W as vt}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{e as Je,u as gt,o as wt}from"../chunks/each.C6O0oV7R.js";import{B as ce}from"../chunks/badge.jG5hkqHT.js";import{C as _t}from"../chunks/code-block.DGWayI9q.js";import{E as bt}from"../chunks/empty-state.BO9uOKUe.js";import{I as kt}from"../chunks/icon.CfkHLDdJ.js";import{L as Et}from"../chunks/link.C_v4aoat.js";import{T as Tt,a as It,b as yt}from"../chunks/table.Cg5jABZi.js";import{T as Ht}from"../chunks/tooltip.D2lOlqUw.js";import{t as Lt,r as Dt,f as Y}from"../chunks/time-format.BLKgLEx9.js";import{w as At}from"../chunks/workflow-run.CoKQBOG_.js";import{f as Ke,a as Qe,b as Xe,t as Ye}from"../chunks/to-time-difference.l4Q9xnPU.js";import{a as Ze,g as xe}from"../chunks/format-time.6TuExJAg.js";import{s as Te}from"../chunks/parse-with-big-int.BKSBwM2t.js";function et(i,e,l){const t=i.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=$t(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Pt(i){let e,l;return e=new bt({props:{title:A("workflows.pending-activities-empty-state")}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p:Ce,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function St(i){let e,l;return e=new Tt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Vt],caption:[Ot],default:[Mt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Wt(i){let e=i[6]+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&O(l,e)},d(t){t&&m(l)}}}function Nt(i){let e=i[7].activityType+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&O(l,e)},d(t){t&&m(l)}}}function tt(i){let e,l;return e=new kt({props:{class:"mr-1",name:"retry"}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Ft(i){let e,l=i[7].attempt+"",t,o,s=i[8]&&tt();return{c(){s&&s.c(),e=T(),t=H(l)},l(a){s&&s.l(a),e=I(a),t=L(a,l)},m(a,n){s&&s.m(a,n),k(a,e,n),k(a,t,n),o=!0},p(a,n){a[8]?s?n&1&&g(s,1):(s=tt(),s.c(),g(s,1),s.m(e.parentNode,e)):s&&(Q(),b(s,1,1,()=>{s=null}),X()),(!o||n&1)&&l!==(l=a[7].attempt+"")&&O(t,l)},i(a){o||(g(s),o=!0)},o(a){b(s),o=!1},d(a){a&&(m(e),m(t)),s&&s.d(a)}}}function lt(i){let e,l,t=A("workflows.attempts-left")+"",o,s,a,n,r,f;a=new ce({props:{type:"danger",$$slots:{default:[Ct]},$$scope:{ctx:i}}});let u=i[7].scheduledTime&&at(i);return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),n=T(),u&&u.c(),r=K(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var E=v(l);o=L(E,t),E.forEach(m),s=I(p),C(a.$$.fragment,p),p.forEach(m),n=I($),u&&u.l($),r=K(),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),B(a,e,null),k($,n,p),u&&u.m($,p),k($,r,p),f=!0},p($,p){const E={};p&2049&&(E.$$scope={dirty:p,ctx:$}),a.$set(E),$[7].scheduledTime?u?(u.p($,p),p&1&&g(u,1)):(u=at($),u.c(),g(u,1),u.m(r.parentNode,r)):u&&(Q(),b(u,1,1,()=>{u=null}),X())},i($){f||(g(a.$$.fragment,$),g(u),f=!0)},o($){b(a.$$.fragment,$),b(u),f=!1},d($){$&&(m(e),m(n),m(r)),R(a),u&&u.d($)}}}function Ct(i){let e=Ke(i[7].maximumAttempts,i[7].attempt)+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ke(t[7].maximumAttempts,t[7].attempt)+"")&&O(l,e)},d(t){t&&m(l)}}}function at(i){let e,l,t=A("workflows.next-retry")+"",o,s,a,n;return a=new Ht({props:{width:200,left:!0,text:Y(i[7].scheduledTime,i[1],{relative:i[2]}),$$slots:{default:[Rt]},$$scope:{ctx:i}}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&7&&(u.text=Y(r[7].scheduledTime,r[1],{relative:r[2]})),f&2049&&(u.$$scope={dirty:f,ctx:r}),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function Bt(i){let e=Ye({date:i[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ye({date:t[7].scheduledTime,negativeDefault:A("workflows.no-retry")})+"")&&O(l,e)},d(t){t&&m(l)}}}function Rt(i){let e,l;return e=new ce({props:{type:"danger",$$slots:{default:[Bt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},p(t,o){const s={};o&2049&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function jt(i){let e=Qe(i[7].maximumAttempts)+"",l;return{c(){l=H(e)},l(t){l=L(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Qe(t[7].maximumAttempts)+"")&&O(l,e)},d(t){t&&m(l)}}}function rt(i){let e,l,t,o,s=A("workflows.retry-expiration")+"",a,n,r,f=Xe(i[7].maximumAttempts,Ze(xe({start:Date.now(),end:i[7].expirationTime})))+"",u,$,p=i[7].heartbeatDetails&&st(i),E=i[7].lastFailure&&ot(i);return{c(){p&&p.c(),e=T(),E&&E.c(),l=T(),t=h("li"),o=h("h4"),a=H(s),n=T(),r=h("p"),u=H(f),this.h()},l(w){p&&p.l(w),e=I(w),E&&E.l(w),l=I(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var ae=v(o);a=L(ae,s),ae.forEach(m),n=I(P),r=d(P,"P",{});var x=v(r);u=L(x,f),x.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-gb5p09")},m(w,P){p&&p.m(w,P),k(w,e,P),E&&E.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,a),c(t,n),c(t,r),c(r,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&g(p,1)):(p=st(w),p.c(),g(p,1),p.m(e.parentNode,e)):p&&(Q(),b(p,1,1,()=>{p=null}),X()),w[7].lastFailure?E?(E.p(w,P),P&1&&g(E,1)):(E=ot(w),E.c(),g(E,1),E.m(l.parentNode,l)):E&&(Q(),b(E,1,1,()=>{E=null}),X()),(!$||P&1)&&f!==(f=Xe(w[7].maximumAttempts,Ze(xe({start:Date.now(),end:w[7].expirationTime})))+"")&&O(u,f)},i(w){$||(g(p),g(E),$=!0)},o(w){b(p),b(E),$=!1},d(w){w&&(m(e),m(l),m(t)),p&&p.d(w),E&&E.d(w)}}}function st(i){let e,l,t=A("workflows.heartbeat-details")+"",o,s,a,n;return a=new _t({props:{slot:"value",class:"pb-2",content:Te(i[7].heartbeatDetails),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&1&&(u.content=Te(r[7].heartbeatDetails)),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function ot(i){let e,l,t=A("workflows.last-failure")+"",o,s,a,n;return a=new _t({props:{slot:"value",class:"pb-2",content:Te(i[7].lastFailure),copyIconTitle:A("common.copy-icon-title"),copySuccessIconTitle:A("common.copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),F(a.$$.fragment),this.h()},l(r){e=d(r,"LI",{class:!0});var f=v(e);l=d(f,"H4",{});var u=v(l);o=L(u,t),u.forEach(m),s=I(f),C(a.$$.fragment,f),f.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(r,f){k(r,e,f),c(e,l),c(l,o),c(e,s),B(a,e,null),n=!0},p(r,f){const u={};f&1&&(u.content=Te(r[7].lastFailure)),a.$set(u)},i(r){n||(g(a.$$.fragment,r),n=!0)},o(r){b(a.$$.fragment,r),n=!1},d(r){r&&m(e),R(a)}}}function it(i){let e,l,t=A("workflows.last-started-time")+"",o,s,a,n=Y(i[7].lastStartedTime,i[1],{relative:i[2]})+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&7&&n!==(n=Y(f[7].lastStartedTime,f[1],{relative:f[2]})+"")&&O(r,n)},d(f){f&&m(e)}}}function nt(i){let e,l,t=A("workflows.scheduled-time")+"",o,s,a,n=Y(i[7].scheduledTime,i[1],{relative:i[2]})+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&7&&n!==(n=Y(f[7].scheduledTime,f[1],{relative:f[2]})+"")&&O(r,n)},d(f){f&&m(e)}}}function ft(i){let e,l,t=A("workflows.last-worker-identity")+"",o,s,a,n=i[7].lastWorkerIdentity+"",r;return{c(){e=h("li"),l=h("h4"),o=H(t),s=T(),a=h("p"),r=H(n),this.h()},l(f){e=d(f,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=L($,t),$.forEach(m),s=I(u),a=d(u,"P",{});var p=v(a);r=L(p,n),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-gb5p09")},m(f,u){k(f,e,u),c(e,l),c(l,o),c(e,s),c(e,a),c(a,r)},p(f,u){u&1&&n!==(n=f[7].lastWorkerIdentity+"")&&O(r,n)},d(f){f&&m(e)}}}function qt(i){let e,l,t,o,s,a,n,r,f=A("workflows.activity-type")+"",u,$,p,E,w,P,ae=A("workflows.attempt")+"",x,Ie,U,ye,me,V,re,Be=A("workflows.maximum-attempts")+"",He,Le,z,De,pe,G,se,Re=A("workflows.last-heartbeat")+"",Ae,Pe,oe,ie=Y(i[7].lastHeartbeatTime,i[1],{relative:i[2],relativeStrict:!0})+"",_e,Se,J,ne,je=A("workflows.state")+"",We,Ne,fe,ue=i[7].state+"",$e,Fe,he,de,ve,ee;t=new Et({props:{href:"#"+i[5],$$slots:{default:[Wt]},$$scope:{ctx:i}}}),p=new ce({props:{type:i[8]?"danger":void 0,$$slots:{default:[Nt]},$$scope:{ctx:i}}}),U=new ce({props:{type:i[8]?"danger":void 0,$$slots:{default:[Ft]},$$scope:{ctx:i}}});let S=i[8]&<(i);z=new ce({props:{$$slots:{default:[jt]},$$scope:{ctx:i}}});let W=i[8]&&rt(i),j=i[7].lastStartedTime&&it(i),q=i[7].scheduledTime&&nt(i),M=i[7].lastWorkerIdentity&&ft(i);return{c(){e=h("td"),l=h("div"),F(t.$$.fragment),o=T(),s=h("td"),a=h("ul"),n=h("li"),r=h("h4"),u=H(f),$=T(),F(p.$$.fragment),E=T(),w=h("li"),P=h("h4"),x=H(ae),Ie=T(),F(U.$$.fragment),ye=T(),S&&S.c(),me=T(),V=h("li"),re=h("h4"),He=H(Be),Le=T(),F(z.$$.fragment),De=T(),W&&W.c(),pe=T(),G=h("li"),se=h("h4"),Ae=H(Re),Pe=T(),oe=h("p"),_e=H(ie),Se=T(),J=h("li"),ne=h("h4"),We=H(je),Ne=T(),fe=h("p"),$e=H(ue),Fe=T(),j&&j.c(),he=T(),q&&q.c(),de=T(),M&&M.c(),ve=T(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var te=v(l);C(t.$$.fragment,te),te.forEach(m),y.forEach(m),o=I(_),s=d(_,"TD",{class:!0});var le=v(s);a=d(le,"UL",{});var D=v(a);n=d(D,"LI",{class:!0});var Z=v(n);r=d(Z,"H4",{});var qe=v(r);u=L(qe,f),qe.forEach(m),$=I(Z),C(p.$$.fragment,Z),Z.forEach(m),E=I(D),w=d(D,"LI",{class:!0});var ge=v(w);P=d(ge,"H4",{});var Me=v(P);x=L(Me,ae),Me.forEach(m),Ie=I(ge),C(U.$$.fragment,ge),ge.forEach(m),ye=I(D),S&&S.l(D),me=I(D),V=d(D,"LI",{class:!0});var we=v(V);re=d(we,"H4",{});var Oe=v(re);He=L(Oe,Be),Oe.forEach(m),Le=I(we),C(z.$$.fragment,we),we.forEach(m),De=I(D),W&&W.l(D),pe=I(D),G=d(D,"LI",{class:!0});var be=v(G);se=d(be,"H4",{});var Ue=v(se);Ae=L(Ue,Re),Ue.forEach(m),Pe=I(be),oe=d(be,"P",{});var Ve=v(oe);_e=L(Ve,ie),Ve.forEach(m),be.forEach(m),Se=I(D),J=d(D,"LI",{class:!0});var ke=v(J);ne=d(ke,"H4",{});var ze=v(ne);We=L(ze,je),ze.forEach(m),Ne=I(ke),fe=d(ke,"P",{});var Ge=v(fe);$e=L(Ge,ue),Ge.forEach(m),ke.forEach(m),Fe=I(D),j&&j.l(D),he=I(D),q&&q.l(D),de=I(D),M&&M.l(D),D.forEach(m),le.forEach(m),ve=I(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(n,"class","event-table-row svelte-gb5p09"),N(w,"class","event-table-row svelte-gb5p09"),N(V,"class","event-table-row svelte-gb5p09"),N(G,"class","event-table-row svelte-gb5p09"),N(J,"class","event-table-row svelte-gb5p09"),N(s,"class","px-5 py-4")},m(_,y){k(_,e,y),c(e,l),B(t,l,null),k(_,o,y),k(_,s,y),c(s,a),c(a,n),c(n,r),c(r,u),c(n,$),B(p,n,null),c(a,E),c(a,w),c(w,P),c(P,x),c(w,Ie),B(U,w,null),c(a,ye),S&&S.m(a,null),c(a,me),c(a,V),c(V,re),c(re,He),c(V,Le),B(z,V,null),c(a,De),W&&W.m(a,null),c(a,pe),c(a,G),c(G,se),c(se,Ae),c(G,Pe),c(G,oe),c(oe,_e),c(a,Se),c(a,J),c(J,ne),c(ne,We),c(J,Ne),c(J,fe),c(fe,$e),c(a,Fe),j&&j.m(a,null),c(a,he),q&&q.m(a,null),c(a,de),M&&M.m(a,null),k(_,ve,y),ee=!0},p(_,y){const te={};y&1&&(te.href="#"+_[5]),y&2049&&(te.$$scope={dirty:y,ctx:_}),t.$set(te);const le={};y&1&&(le.type=_[8]?"danger":void 0),y&2049&&(le.$$scope={dirty:y,ctx:_}),p.$set(le);const D={};y&1&&(D.type=_[8]?"danger":void 0),y&2049&&(D.$$scope={dirty:y,ctx:_}),U.$set(D),_[8]?S?(S.p(_,y),y&1&&g(S,1)):(S=lt(_),S.c(),g(S,1),S.m(a,me)):S&&(Q(),b(S,1,1,()=>{S=null}),X());const Z={};y&2049&&(Z.$$scope={dirty:y,ctx:_}),z.$set(Z),_[8]?W?(W.p(_,y),y&1&&g(W,1)):(W=rt(_),W.c(),g(W,1),W.m(a,pe)):W&&(Q(),b(W,1,1,()=>{W=null}),X()),(!ee||y&7)&&ie!==(ie=Y(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&O(_e,ie),(!ee||y&1)&&ue!==(ue=_[7].state+"")&&O($e,ue),_[7].lastStartedTime?j?j.p(_,y):(j=it(_),j.c(),j.m(a,he)):j&&(j.d(1),j=null),_[7].scheduledTime?q?q.p(_,y):(q=nt(_),q.c(),q.m(a,de)):q&&(q.d(1),q=null),_[7].lastWorkerIdentity?M?M.p(_,y):(M=ft(_),M.c(),M.m(a,null)):M&&(M.d(1),M=null)},i(_){ee||(g(t.$$.fragment,_),g(p.$$.fragment,_),g(U.$$.fragment,_),g(S),g(z.$$.fragment,_),g(W),ee=!0)},o(_){b(t.$$.fragment,_),b(p.$$.fragment,_),b(U.$$.fragment,_),b(S),b(z.$$.fragment,_),b(W),ee=!1},d(_){_&&(m(e),m(o),m(s),m(ve)),R(t),R(p),R(U),S&&S.d(),R(z),W&&W.d(),j&&j.d(),q&&q.d(),M&&M.d()}}}function ut(i,e){let l,t,o;return t=new yt({props:{$$slots:{default:[qt]},$$scope:{ctx:e}}}),{key:i,first:null,c(){l=K(),F(t.$$.fragment),this.h()},l(s){l=K(),C(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,a){k(s,l,a),B(t,s,a),o=!0},p(s,a){e=s;const n={};a&2055&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(s){o||(g(t.$$.fragment,s),o=!0)},o(s){b(t.$$.fragment,s),o=!1},d(s){s&&m(l),R(t,s)}}}function Mt(i){let e=[],l=new Map,t,o,s=Je(i[0]);const a=n=>n[5];for(let n=0;n{a[u]=null}),X(),l=a[e],l?l.p(r,f):(l=a[e]=s[e](r),l.c()),g(l,1),l.m(t.parentNode,t))},i(r){o||(g(l),o=!0)},o(r){b(l),o=!1},d(r){r&&m(t),a[e].d(r)}}}function Gt(i,e,l){let t,o,s,a;Ee(i,At,r=>l(4,o=r)),Ee(i,Lt,r=>l(1,s=r)),Ee(i,Dt,r=>l(2,a=r));var n;return i.$$.update=()=>{i.$$.dirty&24&&l(0,t=l(3,n=o.workflow)===null||n===void 0?void 0:n.pendingActivities)},[t,s,a,n,o]}class Jt extends mt{constructor(e){super(),pt(this,e,Gt,zt,ct,{})}}function Kt(i){let e,l;return e=new Jt({}),{c(){F(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,o){B(e,t,o),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){R(e,t)}}}function Qt(i){let e,l,t,o;return e=new dt({props:{title:`${A("workflows.pending-activities-tab")} | ${i[1]}`,url:i[0].url.href}}),t=new vt({props:{$$slots:{default:[Kt]},$$scope:{ctx:i}}}),{c(){F(e.$$.fragment),l=T(),F(t.$$.fragment)},l(s){C(e.$$.fragment,s),l=I(s),C(t.$$.fragment,s)},m(s,a){B(e,s,a),k(s,l,a),B(t,s,a),o=!0},p(s,[a]){const n={};a&1&&(n.url=s[0].url.href),e.$set(n);const r={};a&4&&(r.$$scope={dirty:a,ctx:s}),t.$set(r)},i(s){o||(g(e.$$.fragment,s),g(t.$$.fragment,s),o=!0)},o(s){b(e.$$.fragment,s),b(t.$$.fragment,s),o=!1},d(s){s&&m(l),R(e,s),R(t,s)}}}function Xt(i,e,l){let t;Ee(i,ht,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class hl extends mt{constructor(e){super(),pt(this,e,Xt,Qt,ct,{})}}export{hl as component}; diff --git a/ui/assets/local/_app/immutable/nodes/41.DUr9qQjS.js b/ui/assets/local/_app/immutable/nodes/41.C6rfCHSE.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/41.DUr9qQjS.js rename to ui/assets/local/_app/immutable/nodes/41.C6rfCHSE.js index 6fe8adf5a..123297072 100644 --- a/ui/assets/local/_app/immutable/nodes/41.DUr9qQjS.js +++ b/ui/assets/local/_app/immutable/nodes/41.C6rfCHSE.js @@ -1 +1 @@ -import{s as ee,h as T,j,k as C,f as m,i as _,c as U,v as I,b as O,d as W,m as S,n as Q,N as H,O as J,t as F,l as z,x as K,y as ie,q as ce}from"../chunks/scheduler.C46pS-76.js";import{S as te,i as re,t as $,b as g,c as h,a as w,m as k,d as b,f as M,g as me,e as pe}from"../chunks/index.dOVbn71B.js";import{p as ne}from"../chunks/stores.Dz-RNcUk.js";import{P as $e}from"../chunks/page-title.DNhqE1Lj.js";import{t as d}from"../chunks/translate.BBe5dcco.js";import{W as ge}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{h as A,u as oe}from"../chunks/await_block.BfN27BCg.js";import{e as X}from"../chunks/each.C6O0oV7R.js";import{P as de}from"../chunks/payload-input.BbQDy2Xg.js";import{B as _e}from"../chunks/button.BpRIS9ld.js";import{C as he}from"../chunks/card.DbXyfCsc.js";import{C as we}from"../chunks/code-block.BkCXXL0z.js";import{E as le}from"../chunks/empty-state.BO9uOKUe.js";import{L as ke}from"../chunks/loading.BLsNkl8r.js";import{S as be,O as ve}from"../chunks/option.Bt5AmPHo.js";import{T as ye}from"../chunks/toggle-switch.C9lxIG0w.js";import{a as qe,b as Ie}from"../chunks/query-service.D3ysowbA.js";import{a as Pe}from"../chunks/auth-user.BOlglCm6.js";import{e as Ee}from"../chunks/encode-payload.BbGvULr4.js";import{s as Te}from"../chunks/parse-with-big-int.BKSBwM2t.js";function Y(a){a[24]=a[26][0],a[25]=a[26][1];const e=typeof a[24]!="string"?Te(a[24]):a[24];a[27]=e}function Z(a,e,n){const r=a.slice();return r[26]=e[n].name,r[29]=e[n].description!==void 0?e[n].description:"",r}function je(a){var r,t;let e,n;return e=new le({props:{title:d("common.error-occurred"),content:d("workflows.no-workers-running-message"),error:(t=(r=a[28])==null?void 0:r.body)==null?void 0:t.message}}),{c(){h(e.$$.fragment)},l(o){w(e.$$.fragment,o)},m(o,l){k(e,o,l),n=!0},p:I,i(o){n||($(e.$$.fragment,o),n=!0)},o(o){g(e.$$.fragment,o),n=!1},d(o){b(e,o)}}}function Ce(a){let e,n,r,t,o,l;n=new he({props:{class:"mt-7 flex h-fit w-full flex-col gap-2",$$slots:{default:[Be]},$$scope:{ctx:a}}});let s={ctx:a,current:null,token:null,hasCatch:!0,pending:Ne,then:We,catch:Oe,value:26,error:28,blocks:[,,,]};return A(o=Promise.all([a[4],a[5]]),s),{c(){e=T("div"),h(n.$$.fragment),r=O(),t=T("div"),s.block.c(),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=C(e);w(n.$$.fragment,f),r=W(f),t=j(f,"DIV",{class:!0});var p=C(t);s.block.l(p),p.forEach(m),f.forEach(m),this.h()},h(){S(t,"class","flex w-full flex-col gap-2"),S(e,"class","flex w-3/4 gap-4 max-2xl:w-full max-lg:flex-col")},m(u,f){_(u,e,f),k(n,e,null),Q(e,r),Q(e,t),s.block.m(t,s.anchor=null),s.mount=()=>t,s.anchor=null,l=!0},p(u,f){a=u;const p={};f[0]&71|f[1]&2&&(p.$$scope={dirty:f,ctx:a}),n.$set(p),s.ctx=a,f[0]&48&&o!==(o=Promise.all([a[4],a[5]]))&&A(o,s)||oe(s,a,f)},i(u){l||($(n.$$.fragment,u),$(s.block),l=!0)},o(u){g(n.$$.fragment,u);for(let f=0;f<3;f+=1){const p=s.blocks[f];g(p)}l=!1},d(u){u&&m(e),b(n),s.block.d(),s.token=null,s=null}}}function De(a){let e=a[26]+"",n;return{c(){n=F(e)},l(r){n=z(r,e)},m(r,t){_(r,n,t)},p:I,d(r){r&&m(n)}}}function x(a){let e,n;return e=new ve({props:{value:a[26],description:a[29],$$slots:{default:[De]},$$scope:{ctx:a}}}),{c(){h(e.$$.fragment)},l(r){w(e.$$.fragment,r)},m(r,t){k(e,r,t),n=!0},p(r,t){const o={};t[1]&2&&(o.$$scope={dirty:t,ctx:r}),e.$set(o)},i(r){n||($(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){b(e,r)}}}function Se(a){let e,n,r=X(a[23]),t=[];for(let l=0;lg(t[l],1,1,()=>{t[l]=null});return{c(){for(let l=0;lM(e,"value",y));function P(i){a[12](i)}let B={label:d("workflows.query-arg")};return a[1]!==void 0&&(B.input=a[1]),o=new de({props:B}),H.push(()=>M(o,"input",P)),f=new _e({props:{loading:a[2],variant:a[6]?"primary":"secondary",leadingIcon:a[6]?null:"retry",disabled:a[2],$$slots:{default:[Ve]},$$scope:{ctx:a}}}),f.$on("click",a[13]),{c(){h(e.$$.fragment),r=O(),t=T("div"),h(o.$$.fragment),s=O(),u=T("div"),h(f.$$.fragment),this.h()},l(i){w(e.$$.fragment,i),r=W(i),t=j(i,"DIV",{class:!0});var c=C(t);w(o.$$.fragment,c),c.forEach(m),s=W(i),u=j(i,"DIV",{class:!0});var E=C(u);w(f.$$.fragment,E),E.forEach(m),this.h()},h(){S(t,"class","flex flex-col gap-1"),S(u,"class","flex w-full flex-wrap items-end justify-end gap-4")},m(i,c){k(e,i,c),_(i,r,c),_(i,t,c),k(o,t,null),_(i,s,c),_(i,u,c),k(f,u,null),p=!0},p(i,c){const E={};c[1]&2&&(E.$$scope={dirty:c,ctx:i}),!n&&c[0]&1&&(n=!0,E.value=i[0],J(()=>n=!1)),e.$set(E);const N={};!l&&c[0]&2&&(l=!0,N.input=i[1],J(()=>l=!1)),o.$set(N);const q={};c[0]&4&&(q.loading=i[2]),c[0]&64&&(q.variant=i[6]?"primary":"secondary"),c[0]&64&&(q.leadingIcon=i[6]?null:"retry"),c[0]&4&&(q.disabled=i[2]),c[0]&64|c[1]&2&&(q.$$scope={dirty:c,ctx:i}),f.$set(q)},i(i){p||($(e.$$.fragment,i),$(o.$$.fragment,i),$(f.$$.fragment,i),p=!0)},o(i){g(e.$$.fragment,i),g(o.$$.fragment,i),g(f.$$.fragment,i),p=!1},d(i){i&&(m(r),m(t),m(s),m(u)),b(e,i),b(o),b(f)}}}function Oe(a){var r;let e,n;return e=new le({props:{title:d("common.error-occurred"),error:(r=a[28])==null?void 0:r.message}}),{c(){h(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,o){k(e,t,o),n=!0},p(t,o){var s;const l={};o[0]&48&&(l.error=(s=t[28])==null?void 0:s.message),e.$set(l)},i(t){n||($(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){b(e,t)}}}function We(a){Y(a);let e,n,r,t,o;return n=new ye({props:{label:d("workflows.json-formatting"),labelPosition:"left",id:"json-formatting",checked:a[3]}}),n.$on("change",a[14]),t=new we({props:{content:a[27],language:a[3]?"json":"text",copyIconTitle:d("common.copy-icon-title"),copySuccessIconTitle:d("common.copy-success-icon-title"),testId:"query-result",class:a[6]&&"opacity-50"}}),{c(){e=T("div"),h(n.$$.fragment),r=O(),h(t.$$.fragment),this.h()},l(l){e=j(l,"DIV",{class:!0});var s=C(e);w(n.$$.fragment,s),s.forEach(m),r=W(l),w(t.$$.fragment,l),this.h()},h(){S(e,"class","ml-auto")},m(l,s){_(l,e,s),k(n,e,null),_(l,r,s),k(t,l,s),o=!0},p(l,s){Y(l);const u={};s[0]&8&&(u.checked=l[3]),n.$set(u);const f={};s[0]&48&&(f.content=l[27]),s[0]&8&&(f.language=l[3]?"json":"text"),s[0]&64&&(f.class=l[6]&&"opacity-50"),t.$set(f)},i(l){o||($(n.$$.fragment,l),$(t.$$.fragment,l),o=!0)},o(l){g(n.$$.fragment,l),g(t.$$.fragment,l),o=!1},d(l){l&&(m(e),m(r)),b(n),b(t,l)}}}function Ne(a){return{c:I,l:I,m:I,p:I,i:I,o:I,d:I}}function Qe(a){let e,n,r,t,o=d("workflows.no-workers-failure-message")+"",l,s;return n=new ke({}),{c(){e=T("div"),h(n.$$.fragment),r=O(),t=T("p"),l=F(o),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=C(e);w(n.$$.fragment,f),r=W(f),t=j(f,"P",{class:!0});var p=C(t);l=z(p,o),p.forEach(m),f.forEach(m),this.h()},h(){S(t,"class","-mt-10"),S(e,"class","text-center")},m(u,f){_(u,e,f),k(n,e,null),Q(e,r),Q(e,t),Q(t,l),s=!0},p:I,i(u){s||($(n.$$.fragment,u),s=!0)},o(u){g(n.$$.fragment,u),s=!1},d(u){u&&m(e),b(n)}}}function Le(a){let e,n,r={ctx:a,current:null,token:null,hasCatch:!0,pending:Qe,then:Ce,catch:je,value:23,error:28,blocks:[,,,]};return A(a[7],r),{c(){e=T("section"),r.block.c()},l(t){e=j(t,"SECTION",{});var o=C(e);r.block.l(o),o.forEach(m)},m(t,o){_(t,e,o),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,n=!0},p(t,o){a=t,oe(r,a,o)},i(t){n||($(r.block),n=!0)},o(t){for(let o=0;o<3;o+=1){const l=r.blocks[o];g(l)}n=!1},d(t){t&&m(e),r.block.d(),r.token=null,r=null}}}function Re(a,e,n){let r,t,o;U(a,Pe,v=>n(16,t=v)),U(a,ne,v=>n(17,o=v));var l;const{namespace:s,workflow:u,run:f}=o.params,p={id:u,runId:f};let y,V,P="",B="",i=!1,c=!0,E=qe({namespace:s,workflow:p},(l=o.data)===null||l===void 0?void 0:l.settings,t==null?void 0:t.accessToken).then(v=>{var D;return n(0,y=y||((D=v[0])===null||D===void 0?void 0:D.name)),L(y),v}),N,q;const G=()=>{n(2,i=!1),n(9,V=y),n(10,B=P)},L=async v=>{var D;n(2,i=!0);let R;try{n(5,q=P?Ee(P,"json/plain",!1):Promise.resolve(null)),R=await q}catch{G();return}n(4,N=Ie({namespace:s,workflow:p,queryType:v,queryArgs:R?{payloads:R}:null},(D=o.data)===null||D===void 0?void 0:D.settings,t==null?void 0:t.accessToken).finally(()=>{G()}))};function ae(v){y=v,n(0,y)}function se(v){P=v,n(1,P)}const ue=()=>L(y),fe=()=>n(3,c=!c);return a.$$.update=()=>{a.$$.dirty[0]&1539&&n(6,r=V!==y||P!==B)},[y,P,i,c,N,q,r,E,L,V,B,ae,se,ue,fe]}class Ue extends te{constructor(e){super(),re(this,e,Re,Le,ee,{},null,[-1,-1])}}function Ae(a){let e,n;return e=new Ue({}),{c(){h(e.$$.fragment)},l(r){w(e.$$.fragment,r)},m(r,t){k(e,r,t),n=!0},i(r){n||($(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){b(e,r)}}}function Fe(a){let e,n,r,t;return e=new $e({props:{title:`${d("workflows.queries-tab")} | ${a[1]}`,url:a[0].url.href}}),r=new ge({props:{$$slots:{default:[Ae]},$$scope:{ctx:a}}}),{c(){h(e.$$.fragment),n=O(),h(r.$$.fragment)},l(o){w(e.$$.fragment,o),n=W(o),w(r.$$.fragment,o)},m(o,l){k(e,o,l),_(o,n,l),k(r,o,l),t=!0},p(o,[l]){const s={};l&1&&(s.url=o[0].url.href),e.$set(s);const u={};l&4&&(u.$$scope={dirty:l,ctx:o}),r.$set(u)},i(o){t||($(e.$$.fragment,o),$(r.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),g(r.$$.fragment,o),t=!1},d(o){o&&m(n),b(e,o),b(r,o)}}}function ze(a,e,n){let r;U(a,ne,o=>n(0,r=o));const t=r.params.workflow;return[r,t]}class mt extends te{constructor(e){super(),re(this,e,ze,Fe,ee,{})}}export{mt as component}; +import{s as ee,h as T,j,k as C,f as m,i as _,c as U,v as I,b as O,d as W,m as S,n as Q,N as H,O as J,t as F,l as z,x as K,y as ie,q as ce}from"../chunks/scheduler.C46pS-76.js";import{S as te,i as re,t as $,b as g,c as h,a as w,m as k,d as b,f as M,g as me,e as pe}from"../chunks/index.dOVbn71B.js";import{p as ne}from"../chunks/stores.Ds4o9nwd.js";import{P as $e}from"../chunks/page-title.DNhqE1Lj.js";import{t as d}from"../chunks/translate.BBe5dcco.js";import{W as ge}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{h as A,u as oe}from"../chunks/await_block.BfN27BCg.js";import{e as X}from"../chunks/each.C6O0oV7R.js";import{P as de}from"../chunks/payload-input.BCsK9YCY.js";import{B as _e}from"../chunks/button.hs88FdV4.js";import{C as he}from"../chunks/card.DbXyfCsc.js";import{C as we}from"../chunks/code-block.DGWayI9q.js";import{E as le}from"../chunks/empty-state.BO9uOKUe.js";import{L as ke}from"../chunks/loading.BLsNkl8r.js";import{S as be,O as ve}from"../chunks/option.BuKObSE0.js";import{T as ye}from"../chunks/toggle-switch.C9lxIG0w.js";import{a as qe,b as Ie}from"../chunks/query-service.BpCb13SU.js";import{a as Pe}from"../chunks/auth-user.CfsLeCYD.js";import{e as Ee}from"../chunks/encode-payload.DnXS3ERP.js";import{s as Te}from"../chunks/parse-with-big-int.BKSBwM2t.js";function Y(a){a[24]=a[26][0],a[25]=a[26][1];const e=typeof a[24]!="string"?Te(a[24]):a[24];a[27]=e}function Z(a,e,n){const r=a.slice();return r[26]=e[n].name,r[29]=e[n].description!==void 0?e[n].description:"",r}function je(a){var r,t;let e,n;return e=new le({props:{title:d("common.error-occurred"),content:d("workflows.no-workers-running-message"),error:(t=(r=a[28])==null?void 0:r.body)==null?void 0:t.message}}),{c(){h(e.$$.fragment)},l(o){w(e.$$.fragment,o)},m(o,l){k(e,o,l),n=!0},p:I,i(o){n||($(e.$$.fragment,o),n=!0)},o(o){g(e.$$.fragment,o),n=!1},d(o){b(e,o)}}}function Ce(a){let e,n,r,t,o,l;n=new he({props:{class:"mt-7 flex h-fit w-full flex-col gap-2",$$slots:{default:[Be]},$$scope:{ctx:a}}});let s={ctx:a,current:null,token:null,hasCatch:!0,pending:Ne,then:We,catch:Oe,value:26,error:28,blocks:[,,,]};return A(o=Promise.all([a[4],a[5]]),s),{c(){e=T("div"),h(n.$$.fragment),r=O(),t=T("div"),s.block.c(),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=C(e);w(n.$$.fragment,f),r=W(f),t=j(f,"DIV",{class:!0});var p=C(t);s.block.l(p),p.forEach(m),f.forEach(m),this.h()},h(){S(t,"class","flex w-full flex-col gap-2"),S(e,"class","flex w-3/4 gap-4 max-2xl:w-full max-lg:flex-col")},m(u,f){_(u,e,f),k(n,e,null),Q(e,r),Q(e,t),s.block.m(t,s.anchor=null),s.mount=()=>t,s.anchor=null,l=!0},p(u,f){a=u;const p={};f[0]&71|f[1]&2&&(p.$$scope={dirty:f,ctx:a}),n.$set(p),s.ctx=a,f[0]&48&&o!==(o=Promise.all([a[4],a[5]]))&&A(o,s)||oe(s,a,f)},i(u){l||($(n.$$.fragment,u),$(s.block),l=!0)},o(u){g(n.$$.fragment,u);for(let f=0;f<3;f+=1){const p=s.blocks[f];g(p)}l=!1},d(u){u&&m(e),b(n),s.block.d(),s.token=null,s=null}}}function De(a){let e=a[26]+"",n;return{c(){n=F(e)},l(r){n=z(r,e)},m(r,t){_(r,n,t)},p:I,d(r){r&&m(n)}}}function x(a){let e,n;return e=new ve({props:{value:a[26],description:a[29],$$slots:{default:[De]},$$scope:{ctx:a}}}),{c(){h(e.$$.fragment)},l(r){w(e.$$.fragment,r)},m(r,t){k(e,r,t),n=!0},p(r,t){const o={};t[1]&2&&(o.$$scope={dirty:t,ctx:r}),e.$set(o)},i(r){n||($(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){b(e,r)}}}function Se(a){let e,n,r=X(a[23]),t=[];for(let l=0;lg(t[l],1,1,()=>{t[l]=null});return{c(){for(let l=0;lM(e,"value",y));function P(i){a[12](i)}let B={label:d("workflows.query-arg")};return a[1]!==void 0&&(B.input=a[1]),o=new de({props:B}),H.push(()=>M(o,"input",P)),f=new _e({props:{loading:a[2],variant:a[6]?"primary":"secondary",leadingIcon:a[6]?null:"retry",disabled:a[2],$$slots:{default:[Ve]},$$scope:{ctx:a}}}),f.$on("click",a[13]),{c(){h(e.$$.fragment),r=O(),t=T("div"),h(o.$$.fragment),s=O(),u=T("div"),h(f.$$.fragment),this.h()},l(i){w(e.$$.fragment,i),r=W(i),t=j(i,"DIV",{class:!0});var c=C(t);w(o.$$.fragment,c),c.forEach(m),s=W(i),u=j(i,"DIV",{class:!0});var E=C(u);w(f.$$.fragment,E),E.forEach(m),this.h()},h(){S(t,"class","flex flex-col gap-1"),S(u,"class","flex w-full flex-wrap items-end justify-end gap-4")},m(i,c){k(e,i,c),_(i,r,c),_(i,t,c),k(o,t,null),_(i,s,c),_(i,u,c),k(f,u,null),p=!0},p(i,c){const E={};c[1]&2&&(E.$$scope={dirty:c,ctx:i}),!n&&c[0]&1&&(n=!0,E.value=i[0],J(()=>n=!1)),e.$set(E);const N={};!l&&c[0]&2&&(l=!0,N.input=i[1],J(()=>l=!1)),o.$set(N);const q={};c[0]&4&&(q.loading=i[2]),c[0]&64&&(q.variant=i[6]?"primary":"secondary"),c[0]&64&&(q.leadingIcon=i[6]?null:"retry"),c[0]&4&&(q.disabled=i[2]),c[0]&64|c[1]&2&&(q.$$scope={dirty:c,ctx:i}),f.$set(q)},i(i){p||($(e.$$.fragment,i),$(o.$$.fragment,i),$(f.$$.fragment,i),p=!0)},o(i){g(e.$$.fragment,i),g(o.$$.fragment,i),g(f.$$.fragment,i),p=!1},d(i){i&&(m(r),m(t),m(s),m(u)),b(e,i),b(o),b(f)}}}function Oe(a){var r;let e,n;return e=new le({props:{title:d("common.error-occurred"),error:(r=a[28])==null?void 0:r.message}}),{c(){h(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,o){k(e,t,o),n=!0},p(t,o){var s;const l={};o[0]&48&&(l.error=(s=t[28])==null?void 0:s.message),e.$set(l)},i(t){n||($(e.$$.fragment,t),n=!0)},o(t){g(e.$$.fragment,t),n=!1},d(t){b(e,t)}}}function We(a){Y(a);let e,n,r,t,o;return n=new ye({props:{label:d("workflows.json-formatting"),labelPosition:"left",id:"json-formatting",checked:a[3]}}),n.$on("change",a[14]),t=new we({props:{content:a[27],language:a[3]?"json":"text",copyIconTitle:d("common.copy-icon-title"),copySuccessIconTitle:d("common.copy-success-icon-title"),testId:"query-result",class:a[6]&&"opacity-50"}}),{c(){e=T("div"),h(n.$$.fragment),r=O(),h(t.$$.fragment),this.h()},l(l){e=j(l,"DIV",{class:!0});var s=C(e);w(n.$$.fragment,s),s.forEach(m),r=W(l),w(t.$$.fragment,l),this.h()},h(){S(e,"class","ml-auto")},m(l,s){_(l,e,s),k(n,e,null),_(l,r,s),k(t,l,s),o=!0},p(l,s){Y(l);const u={};s[0]&8&&(u.checked=l[3]),n.$set(u);const f={};s[0]&48&&(f.content=l[27]),s[0]&8&&(f.language=l[3]?"json":"text"),s[0]&64&&(f.class=l[6]&&"opacity-50"),t.$set(f)},i(l){o||($(n.$$.fragment,l),$(t.$$.fragment,l),o=!0)},o(l){g(n.$$.fragment,l),g(t.$$.fragment,l),o=!1},d(l){l&&(m(e),m(r)),b(n),b(t,l)}}}function Ne(a){return{c:I,l:I,m:I,p:I,i:I,o:I,d:I}}function Qe(a){let e,n,r,t,o=d("workflows.no-workers-failure-message")+"",l,s;return n=new ke({}),{c(){e=T("div"),h(n.$$.fragment),r=O(),t=T("p"),l=F(o),this.h()},l(u){e=j(u,"DIV",{class:!0});var f=C(e);w(n.$$.fragment,f),r=W(f),t=j(f,"P",{class:!0});var p=C(t);l=z(p,o),p.forEach(m),f.forEach(m),this.h()},h(){S(t,"class","-mt-10"),S(e,"class","text-center")},m(u,f){_(u,e,f),k(n,e,null),Q(e,r),Q(e,t),Q(t,l),s=!0},p:I,i(u){s||($(n.$$.fragment,u),s=!0)},o(u){g(n.$$.fragment,u),s=!1},d(u){u&&m(e),b(n)}}}function Le(a){let e,n,r={ctx:a,current:null,token:null,hasCatch:!0,pending:Qe,then:Ce,catch:je,value:23,error:28,blocks:[,,,]};return A(a[7],r),{c(){e=T("section"),r.block.c()},l(t){e=j(t,"SECTION",{});var o=C(e);r.block.l(o),o.forEach(m)},m(t,o){_(t,e,o),r.block.m(e,r.anchor=null),r.mount=()=>e,r.anchor=null,n=!0},p(t,o){a=t,oe(r,a,o)},i(t){n||($(r.block),n=!0)},o(t){for(let o=0;o<3;o+=1){const l=r.blocks[o];g(l)}n=!1},d(t){t&&m(e),r.block.d(),r.token=null,r=null}}}function Re(a,e,n){let r,t,o;U(a,Pe,v=>n(16,t=v)),U(a,ne,v=>n(17,o=v));var l;const{namespace:s,workflow:u,run:f}=o.params,p={id:u,runId:f};let y,V,P="",B="",i=!1,c=!0,E=qe({namespace:s,workflow:p},(l=o.data)===null||l===void 0?void 0:l.settings,t==null?void 0:t.accessToken).then(v=>{var D;return n(0,y=y||((D=v[0])===null||D===void 0?void 0:D.name)),L(y),v}),N,q;const G=()=>{n(2,i=!1),n(9,V=y),n(10,B=P)},L=async v=>{var D;n(2,i=!0);let R;try{n(5,q=P?Ee(P,"json/plain",!1):Promise.resolve(null)),R=await q}catch{G();return}n(4,N=Ie({namespace:s,workflow:p,queryType:v,queryArgs:R?{payloads:R}:null},(D=o.data)===null||D===void 0?void 0:D.settings,t==null?void 0:t.accessToken).finally(()=>{G()}))};function ae(v){y=v,n(0,y)}function se(v){P=v,n(1,P)}const ue=()=>L(y),fe=()=>n(3,c=!c);return a.$$.update=()=>{a.$$.dirty[0]&1539&&n(6,r=V!==y||P!==B)},[y,P,i,c,N,q,r,E,L,V,B,ae,se,ue,fe]}class Ue extends te{constructor(e){super(),re(this,e,Re,Le,ee,{},null,[-1,-1])}}function Ae(a){let e,n;return e=new Ue({}),{c(){h(e.$$.fragment)},l(r){w(e.$$.fragment,r)},m(r,t){k(e,r,t),n=!0},i(r){n||($(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){b(e,r)}}}function Fe(a){let e,n,r,t;return e=new $e({props:{title:`${d("workflows.queries-tab")} | ${a[1]}`,url:a[0].url.href}}),r=new ge({props:{$$slots:{default:[Ae]},$$scope:{ctx:a}}}),{c(){h(e.$$.fragment),n=O(),h(r.$$.fragment)},l(o){w(e.$$.fragment,o),n=W(o),w(r.$$.fragment,o)},m(o,l){k(e,o,l),_(o,n,l),k(r,o,l),t=!0},p(o,[l]){const s={};l&1&&(s.url=o[0].url.href),e.$set(s);const u={};l&4&&(u.$$scope={dirty:l,ctx:o}),r.$set(u)},i(o){t||($(e.$$.fragment,o),$(r.$$.fragment,o),t=!0)},o(o){g(e.$$.fragment,o),g(r.$$.fragment,o),t=!1},d(o){o&&m(n),b(e,o),b(r,o)}}}function ze(a,e,n){let r;U(a,ne,o=>n(0,r=o));const t=r.params.workflow;return[r,t]}class mt extends te{constructor(e){super(),re(this,e,ze,Fe,ee,{})}}export{mt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/42.BFxLa9wr.js b/ui/assets/local/_app/immutable/nodes/42.CHGs0HHm.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/42.BFxLa9wr.js rename to ui/assets/local/_app/immutable/nodes/42.CHGs0HHm.js index 64034dac4..d5242ca4b 100644 --- a/ui/assets/local/_app/immutable/nodes/42.BFxLa9wr.js +++ b/ui/assets/local/_app/immutable/nodes/42.CHGs0HHm.js @@ -1 +1 @@ -import{s as G,h as N,j as C,k as D,f as i,m as P,i as h,v as V,x as U,y as _e,t as A,l as W,n as y,b as B,d as R,q as X,c as Q,V as de}from"../chunks/scheduler.C46pS-76.js";import{S as J,i as K,c as b,a as I,m as T,t as $,b as w,d as v,g as j,e as q}from"../chunks/index.dOVbn71B.js";import{p as re}from"../chunks/stores.Dz-RNcUk.js";import{P as ge}from"../chunks/page-title.DNhqE1Lj.js";import{e as te}from"../chunks/each.C6O0oV7R.js";import{L as z}from"../chunks/link.BJceiGbc.js";import{P as he}from"../chunks/pagination.Dxf-be3Z.js";import{T as Z,a as x,b as ee}from"../chunks/table.Cg5jABZi.js";import{t as E}from"../chunks/translate.BBe5dcco.js";import{b as O,m as ne}from"../chunks/route-for.BjP6gGR7.js";import{W as we}from"../chunks/workflow-status.4hwv3weu.js";import{j as ke}from"../chunks/workflows.BzgE0E1S.js";import{f as be}from"../chunks/events.Dh9P6F73.js";import{n as Ie}from"../chunks/namespaces.619_s9Tr.js";import{w as Te}from"../chunks/workflow-run.DcChDuxV.js";import{g as ve}from"../chunks/get-workflow-relationships.CLftvMta.js";import{C as Y}from"../chunks/index.Bde7eNxE.js";import{W as Ee}from"../chunks/workflow-padded-layout.DTPWvpOw.js";function oe(o,t,r){const e=o.slice();return e[7]=t[r],e}function Ne(o){let t=o[7].workflowId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&64&&t!==(t=e[7].workflowId+"")&&X(r,t)},d(e){e&&i(r)}}}function Ce(o){let t=o[7].runId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&64&&t!==(t=e[7].runId+"")&&X(r,t)},d(e){e&&i(r)}}}function De(o){let t,r,e,l,n=o[7].type+"",f,a,s,c,p,_,d,k,L;return r=new we({props:{status:o[7].status}}),c=new z({props:{href:O({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[Ne]},$$scope:{ctx:o}}}),d=new z({props:{href:O({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[Ce]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),f=A(n),a=B(),s=N("td"),b(c.$$.fragment),p=B(),_=N("td"),b(d.$$.fragment),k=B(),this.h()},l(u){t=C(u,"TD",{class:!0});var m=D(t);I(r.$$.fragment,m),m.forEach(i),e=R(u),l=C(u,"TD",{class:!0});var g=D(l);f=W(g,n),g.forEach(i),a=R(u),s=C(u,"TD",{class:!0});var H=D(s);I(c.$$.fragment,H),H.forEach(i),p=R(u),_=C(u,"TD",{class:!0});var S=D(_);I(d.$$.fragment,S),S.forEach(i),k=R(u),this.h()},h(){P(t,"class","max-md:hidden"),P(l,"class","max-lg:hidden"),P(s,"class","hover:text-blue-700 hover:underline"),P(_,"class","hover:text-blue-700 hover:underline")},m(u,m){h(u,t,m),T(r,t,null),h(u,e,m),h(u,l,m),y(l,f),h(u,a,m),h(u,s,m),T(c,s,null),h(u,p,m),h(u,_,m),T(d,_,null),h(u,k,m),L=!0},p(u,m){const g={};m&64&&(g.status=u[7].status),r.$set(g),(!L||m&64)&&n!==(n=u[7].type+"")&&X(f,n);const H={};m&64&&(H.href=O({namespace:u[7].namespace,workflow:u[7].workflowId,run:u[7].runId})),m&1088&&(H.$$scope={dirty:m,ctx:u}),c.$set(H);const S={};m&64&&(S.href=O({namespace:u[7].namespace,workflow:u[7].workflowId,run:u[7].runId})),m&1088&&(S.$$scope={dirty:m,ctx:u}),d.$set(S)},i(u){L||($(r.$$.fragment,u),$(c.$$.fragment,u),$(d.$$.fragment,u),L=!0)},o(u){w(r.$$.fragment,u),w(c.$$.fragment,u),w(d.$$.fragment,u),L=!1},d(u){u&&(i(t),i(e),i(l),i(a),i(s),i(p),i(_),i(k)),v(r),v(c),v(d)}}}function se(o){let t,r;return t=new ee({props:{$$slots:{default:[De]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1088&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function He(o){let t,r,e=te(o[6]),l=[];for(let f=0;fw(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f({6:e}),({visibleItems:e})=>e?64:0]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&1&&(n.items=e[0]),l&1088&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Be(o,t,r){let e,l,n,{children:f=[]}=t,{pendingChildren:a=[]}=t,{namespace:s}=t;return o.$$set=c=>{"children"in c&&r(1,f=c.children),"pendingChildren"in c&&r(2,a=c.pendingChildren),"namespace"in c&&r(3,s=c.namespace)},o.$$.update=()=>{o.$$.dirty&12&&r(5,e=a.map(c=>({runId:c.runId,workflowId:c.workflowId,status:"Running",type:c.workflowTypeName,namespace:s}))),o.$$.dirty&10&&r(4,l=f.map(c=>{var p;return{runId:c.attributes.workflowExecution.runId,workflowId:c.attributes.workflowExecution.workflowId,type:c.attributes.workflowType,status:c.classification,namespace:((p=c.attributes)===null||p===void 0?void 0:p.namespace)||s}})),o.$$.dirty&48&&r(0,n=[...e,...l])},[n,f,a,s,l,e]}class Re extends J{constructor(t){super(),K(this,t,Be,ye,G,{children:1,pendingChildren:2,namespace:3})}}function fe(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[2]}),$$slots:{default:[Oe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&7&&(n.href=O({namespace:e[1],workflow:e[0],run:e[2]})),l&36&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Oe(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[2],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.content=e[2]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ae(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[4]}),$$slots:{default:[Ve]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&19&&(n.href=O({namespace:e[1],workflow:e[0],run:e[4]})),l&48&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ve(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[4],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&16&&(n.content=e[4]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ce(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[3]}),$$slots:{default:[Fe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&11&&(n.href=O({namespace:e[1],workflow:e[0],run:e[3]})),l&40&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Fe(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[3],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.content=e[3]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function je(o){let t,r,e,l,n,f,a=o[2]&&fe(o),s=o[4]&&ae(o),c=o[3]&&ce(o);return{c(){t=N("td"),a&&a.c(),r=B(),e=N("td"),s&&s.c(),l=B(),n=N("td"),c&&c.c(),this.h()},l(p){t=C(p,"TD",{class:!0});var _=D(t);a&&a.l(_),_.forEach(i),r=R(p),e=C(p,"TD",{class:!0});var d=D(e);s&&s.l(d),d.forEach(i),l=R(p),n=C(p,"TD",{class:!0});var k=D(n);c&&c.l(k),k.forEach(i),this.h()},h(){P(t,"class","w-1/3"),P(e,"class","w-1/3"),P(n,"class","w-1/3")},m(p,_){h(p,t,_),a&&a.m(t,null),h(p,r,_),h(p,e,_),s&&s.m(e,null),h(p,l,_),h(p,n,_),c&&c.m(n,null),f=!0},p(p,_){p[2]?a?(a.p(p,_),_&4&&$(a,1)):(a=fe(p),a.c(),$(a,1),a.m(t,null)):a&&(j(),w(a,1,1,()=>{a=null}),q()),p[4]?s?(s.p(p,_),_&16&&$(s,1)):(s=ae(p),s.c(),$(s,1),s.m(e,null)):s&&(j(),w(s,1,1,()=>{s=null}),q()),p[3]?c?(c.p(p,_),_&8&&$(c,1)):(c=ce(p),c.c(),$(c,1),c.m(n,null)):c&&(j(),w(c,1,1,()=>{c=null}),q())},i(p){f||($(a),$(s),$(c),f=!0)},o(p){w(a),w(s),w(c),f=!1},d(p){p&&(i(t),i(r),i(e),i(l),i(n)),a&&a.d(),s&&s.d(),c&&c.d()}}}function qe(o){let t,r;return t=new ee({props:{$$slots:{default:[je]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&63&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ze(o){let t,r=E("workflows.relationships")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function Me(o){let t,r=E("workflows.first-execution")+"",e,l,n,f=E("workflows.previous-execution")+"",a,s,c,p=E("workflows.next-execution")+"",_;return{c(){t=N("th"),e=A(r),l=B(),n=N("th"),a=A(f),s=B(),c=N("th"),_=A(p)},l(d){t=C(d,"TH",{});var k=D(t);e=W(k,r),k.forEach(i),l=R(d),n=C(d,"TH",{});var L=D(n);a=W(L,f),L.forEach(i),s=R(d),c=C(d,"TH",{});var u=D(c);_=W(u,p),u.forEach(i)},m(d,k){h(d,t,k),y(t,e),h(d,l,k),h(d,n,k),y(n,a),h(d,s,k),h(d,c,k),y(c,_)},p:V,d(d){d&&(i(t),i(l),i(n),i(s),i(c))}}}function Ge(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[Me]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&32&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Je(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[Ge],caption:[ze],default:[qe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&63&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ke(o,t,r){let{workflow:e}=t,{namespace:l}=t,{first:n}=t,{next:f}=t,{previous:a}=t;return o.$$set=s=>{"workflow"in s&&r(0,e=s.workflow),"namespace"in s&&r(1,l=s.namespace),"first"in s&&r(2,n=s.first),"next"in s&&r(3,f=s.next),"previous"in s&&r(4,a=s.previous)},[e,l,n,f,a]}class Qe extends J{constructor(t){super(),K(this,t,Ke,Je,G,{workflow:0,namespace:1,first:2,next:3,previous:4})}}function ue(o,t,r){const e=o.slice();return e[4]=t[r],e}function Ue(o){let t=o[4].id+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&8&&t!==(t=e[4].id+"")&&X(r,t)},d(e){e&&i(r)}}}function Xe(o){let t=o[4].runId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&8&&t!==(t=e[4].runId+"")&&X(r,t)},d(e){e&&i(r)}}}function Ye(o){let t,r,e,l,n=o[4].name+"",f,a,s,c,p,_,d,k,L;return r=new we({props:{status:o[4].status}}),c=new z({props:{href:O({namespace:o[1],workflow:o[4].id,run:o[4].runId}),$$slots:{default:[Ue]},$$scope:{ctx:o}}}),d=new z({props:{href:O({namespace:o[1],workflow:o[4].id,run:o[4].runId}),$$slots:{default:[Xe]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),f=A(n),a=B(),s=N("td"),b(c.$$.fragment),p=B(),_=N("td"),b(d.$$.fragment),k=B(),this.h()},l(u){t=C(u,"TD",{class:!0});var m=D(t);I(r.$$.fragment,m),m.forEach(i),e=R(u),l=C(u,"TD",{class:!0});var g=D(l);f=W(g,n),g.forEach(i),a=R(u),s=C(u,"TD",{class:!0});var H=D(s);I(c.$$.fragment,H),H.forEach(i),p=R(u),_=C(u,"TD",{class:!0});var S=D(_);I(d.$$.fragment,S),S.forEach(i),k=R(u),this.h()},h(){P(t,"class","max-md:hidden"),P(l,"class","max-lg:hidden"),P(s,"class","hover:text-blue-700 hover:underline"),P(_,"class","hover:text-blue-700 hover:underline")},m(u,m){h(u,t,m),T(r,t,null),h(u,e,m),h(u,l,m),y(l,f),h(u,a,m),h(u,s,m),T(c,s,null),h(u,p,m),h(u,_,m),T(d,_,null),h(u,k,m),L=!0},p(u,m){const g={};m&8&&(g.status=u[4].status),r.$set(g),(!L||m&8)&&n!==(n=u[4].name+"")&&X(f,n);const H={};m&10&&(H.href=O({namespace:u[1],workflow:u[4].id,run:u[4].runId})),m&136&&(H.$$scope={dirty:m,ctx:u}),c.$set(H);const S={};m&10&&(S.href=O({namespace:u[1],workflow:u[4].id,run:u[4].runId})),m&136&&(S.$$scope={dirty:m,ctx:u}),d.$set(S)},i(u){L||($(r.$$.fragment,u),$(c.$$.fragment,u),$(d.$$.fragment,u),L=!0)},o(u){w(r.$$.fragment,u),w(c.$$.fragment,u),w(d.$$.fragment,u),L=!1},d(u){u&&(i(t),i(e),i(l),i(a),i(s),i(p),i(_),i(k)),v(r),v(c),v(d)}}}function ie(o){let t,r;return t=new ee({props:{$$slots:{default:[Ye]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&138&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ze(o){let t,r,e=te(o[3]),l=[];for(let f=0;fw(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f({3:e}),({visibleItems:e})=>e?8:0]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&1&&(n.items=e[0]),l&138&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ot(o,t,r){let e,l;Q(o,re,f=>r(2,l=f));let{children:n=[]}=t;return o.$$set=f=>{"children"in f&&r(0,n=f.children)},o.$$.update=()=>{o.$$.dirty&4&&r(1,{namespace:e}=l.params,e)},[n,e,l]}class st extends J{constructor(t){super(),K(this,t,ot,nt,G,{children:0})}}function ft(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0].workflowId,visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0].workflowId),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function at(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0].runId,visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0].runId),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ct(o){let t,r,e,l,n,f;return r=new z({props:{href:O({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[ft]},$$scope:{ctx:o}}}),n=new z({props:{href:O({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[at]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),b(n.$$.fragment)},l(a){t=C(a,"TD",{});var s=D(t);I(r.$$.fragment,s),s.forEach(i),e=R(a),l=C(a,"TD",{});var c=D(l);I(n.$$.fragment,c),c.forEach(i)},m(a,s){h(a,t,s),T(r,t,null),h(a,e,s),h(a,l,s),T(n,l,null),f=!0},p(a,s){const c={};s&7&&(c.href=O({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),s&9&&(c.$$scope={dirty:s,ctx:a}),r.$set(c);const p={};s&7&&(p.href=O({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),s&9&&(p.$$scope={dirty:s,ctx:a}),n.$set(p)},i(a){f||($(r.$$.fragment,a),$(n.$$.fragment,a),f=!0)},o(a){w(r.$$.fragment,a),w(n.$$.fragment,a),f=!1},d(a){a&&(i(t),i(e),i(l)),v(r),v(n)}}}function ut(o){let t,r;return t=new ee({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[ct]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&15&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function it(o){let t,r=E("workflows.parent-workflow")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function mt(o){let t,r=E("workflows.parent-id")+"",e,l,n,f=E("workflows.parent-run-id")+"",a;return{c(){t=N("th"),e=A(r),l=B(),n=N("th"),a=A(f)},l(s){t=C(s,"TH",{});var c=D(t);e=W(c,r),c.forEach(i),l=R(s),n=C(s,"TH",{});var p=D(n);a=W(p,f),p.forEach(i)},m(s,c){h(s,t,c),y(t,e),h(s,l,c),h(s,n,c),y(n,a)},p:V,d(s){s&&(i(t),i(l),i(n))}}}function pt(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[mt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function $t(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[pt],caption:[it],default:[ut]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&15&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function _t(o,t,r){let{parent:e}=t,{parentNamespaceName:l}=t,{namespace:n}=t;return o.$$set=f=>{"parent"in f&&r(0,e=f.parent),"parentNamespaceName"in f&&r(1,l=f.parentNamespaceName),"namespace"in f&&r(2,n=f.namespace)},[e,l,n]}class ht extends J{constructor(t){super(),K(this,t,_t,$t,G,{parent:0,parentNamespaceName:1,namespace:2})}}function wt(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function dt(o){let t,r,e;return r=new z({props:{href:ne({namespace:o[1],scheduleId:o[0]}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment)},l(l){t=C(l,"TD",{});var n=D(t);I(r.$$.fragment,n),n.forEach(i)},m(l,n){h(l,t,n),T(r,t,null),e=!0},p(l,n){const f={};n&3&&(f.href=ne({namespace:l[1],scheduleId:l[0]})),n&5&&(f.$$scope={dirty:n,ctx:l}),r.$set(f)},i(l){e||($(r.$$.fragment,l),e=!0)},o(l){w(r.$$.fragment,l),e=!1},d(l){l&&i(t),v(r)}}}function gt(o){let t,r;return t=new ee({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[dt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&7&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function kt(o){let t,r=E("schedules.schedule")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function bt(o){let t,r=E("schedules.schedule")+"",e;return{c(){t=N("th"),e=A(r)},l(l){t=C(l,"TH",{});var n=D(t);e=W(n,r),n.forEach(i)},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function It(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Tt(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[It],caption:[kt],default:[gt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&7&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function vt(o,t,r){let{scheduleId:e}=t,{namespace:l}=t;return o.$$set=n=>{"scheduleId"in n&&r(0,e=n.scheduleId),"namespace"in n&&r(1,l=n.namespace)},[e,l]}class Et extends J{constructor(t){super(),K(this,t,vt,Tt,G,{scheduleId:0,namespace:1})}}function Nt(o){let t,r=E("workflows.no-relationships")+"",e;return{c(){t=N("p"),e=A(r)},l(l){t=C(l,"P",{});var n=D(t);e=W(n,r),n.forEach(i)},m(l,n){h(l,t,n),y(t,e)},p:V,i:V,o:V,d(l){l&&i(t)}}}function Ct(o){let t,r,e,l,n,f,a,s,c=o[3]&&me(o),p=o[8]&&pe(o),_=(o[9]||o[4]||o[5])&&$e(o);const d=[Ht,Dt],k=[];function L(u,m){return u[2].length?0:u[11]?1:-1}return~(n=L(o))&&(f=k[n]=d[n](o)),{c(){t=N("div"),c&&c.c(),r=B(),p&&p.c(),e=B(),_&&_.c(),l=B(),f&&f.c(),a=U(),this.h()},l(u){t=C(u,"DIV",{class:!0});var m=D(t);c&&c.l(m),r=R(m),p&&p.l(m),e=R(m),_&&_.l(m),m.forEach(i),l=R(u),f&&f.l(u),a=U(),this.h()},h(){P(t,"class","flex w-full flex-wrap gap-4")},m(u,m){h(u,t,m),c&&c.m(t,null),y(t,r),p&&p.m(t,null),y(t,e),_&&_.m(t,null),h(u,l,m),~n&&k[n].m(u,m),h(u,a,m),s=!0},p(u,m){u[3]?c?(c.p(u,m),m&8&&$(c,1)):(c=me(u),c.c(),$(c,1),c.m(t,r)):c&&(j(),w(c,1,1,()=>{c=null}),q()),u[8]?p?(p.p(u,m),m&256&&$(p,1)):(p=pe(u),p.c(),$(p,1),p.m(t,e)):p&&(j(),w(p,1,1,()=>{p=null}),q()),u[9]||u[4]||u[5]?_?(_.p(u,m),m&560&&$(_,1)):(_=$e(u),_.c(),$(_,1),_.m(t,null)):_&&(j(),w(_,1,1,()=>{_=null}),q());let g=n;n=L(u),n===g?~n&&k[n].p(u,m):(f&&(j(),w(k[g],1,1,()=>{k[g]=null}),q()),~n?(f=k[n],f?f.p(u,m):(f=k[n]=d[n](u),f.c()),$(f,1),f.m(a.parentNode,a)):f=null)},i(u){s||($(c),$(p),$(_),$(f),s=!0)},o(u){w(c),w(p),w(_),w(f),s=!1},d(u){u&&(i(t),i(l),i(a)),c&&c.d(),p&&p.d(),_&&_.d(),~n&&k[n].d(u)}}}function me(o){let t,r;return t=new Et({props:{scheduleId:o[3],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.scheduleId=e[3]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function pe(o){let t,r;return t=new ht({props:{parent:o[8],parentNamespaceName:o[7],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&256&&(n.parent=e[8]),l&128&&(n.parentNamespaceName=e[7]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function $e(o){let t,r;return t=new Qe({props:{first:o[9],previous:o[4],next:o[5],workflow:o[12],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&512&&(n.first=e[9]),l&16&&(n.previous=e[4]),l&32&&(n.next=e[5]),l&4096&&(n.workflow=e[12]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Dt(o){let t,r;return t=new Re({props:{children:o[6],pendingChildren:o[0].workflow.pendingChildren,namespace:o[1].params.namespace}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&64&&(n.children=e[6]),l&1&&(n.pendingChildren=e[0].workflow.pendingChildren),l&2&&(n.namespace=e[1].params.namespace),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ht(o){let t,r;return t=new st({props:{children:o[2]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.children=e[2]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function St(o){let t,r,e,l;const n=[Ct,Nt],f=[];function a(s,c){return s[10]?0:1}return r=a(o),e=f[r]=n[r](o),{c(){t=N("div"),e.c(),this.h()},l(s){t=C(s,"DIV",{class:!0});var c=D(t);e.l(c),c.forEach(i),this.h()},h(){P(t,"class","flex flex-col gap-4")},m(s,c){h(s,t,c),f[r].m(t,null),l=!0},p(s,[c]){let p=r;r=a(s),r===p?f[r].p(s,c):(j(),w(f[p],1,1,()=>{f[p]=null}),q(),e=f[r],e?e.p(s,c):(e=f[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){l||($(e),l=!0)},o(s){w(e),l=!1},d(s){s&&i(t),f[r].d()}}}function Pt(o,t,r){let e,l,n,f,a,s,c,p,_,d,k,L,u,m,g,H,S,F;Q(o,Ie,M=>r(16,g=M)),Q(o,be,M=>r(17,H=M)),Q(o,Te,M=>r(0,S=M)),Q(o,re,M=>r(1,F=M));let le=[];return de(async()=>{r(2,le=await ke(n,e,l))}),o.$$.update=()=>{o.$$.dirty&2&&r(12,{workflow:e,run:l,namespace:n}=F.params,e,(r(13,n),r(1,F))),o.$$.dirty&1&&r(15,{workflow:f}=S,f),o.$$.dirty&229376&&r(14,a=ve(f,H,g)),o.$$.dirty&16384&&r(11,{hasChildren:s,hasRelationships:c,first:p,parent:_,parentNamespaceName:d,children:k,next:L,previous:u,scheduleId:m}=a,s,(r(10,c),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(9,p),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(8,_),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(7,d),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(6,k),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(5,L),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(4,u),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(3,m),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)))},[S,F,le,m,u,L,k,d,_,p,c,s,e,n,a,f,g,H]}class Lt extends J{constructor(t){super(),K(this,t,Pt,St,G,{})}}function At(o){let t,r;return t=new Lt({}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Wt(o){let t,r,e,l;return t=new ge({props:{title:`${E("workflows.relationships")} | ${o[1]}`,url:o[0].url.href}}),e=new Ee({props:{$$slots:{default:[At]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment),r=B(),b(e.$$.fragment)},l(n){I(t.$$.fragment,n),r=R(n),I(e.$$.fragment,n)},m(n,f){T(t,n,f),h(n,r,f),T(e,n,f),l=!0},p(n,[f]){const a={};f&1&&(a.url=n[0].url.href),t.$set(a);const s={};f&4&&(s.$$scope={dirty:f,ctx:n}),e.$set(s)},i(n){l||($(t.$$.fragment,n),$(e.$$.fragment,n),l=!0)},o(n){w(t.$$.fragment,n),w(e.$$.fragment,n),l=!1},d(n){n&&i(r),v(t,n),v(e,n)}}}function yt(o,t,r){let e;Q(o,re,n=>r(0,e=n));const l=e.params.workflow;return[e,l]}class er extends J{constructor(t){super(),K(this,t,yt,Wt,G,{})}}export{er as component}; +import{s as G,h as N,j as C,k as D,f as i,m as P,i as h,v as V,x as U,y as _e,t as A,l as W,n as y,b as B,d as R,q as X,c as Q,V as de}from"../chunks/scheduler.C46pS-76.js";import{S as J,i as K,c as b,a as I,m as T,t as $,b as w,d as v,g as j,e as q}from"../chunks/index.dOVbn71B.js";import{p as re}from"../chunks/stores.Ds4o9nwd.js";import{P as ge}from"../chunks/page-title.DNhqE1Lj.js";import{e as te}from"../chunks/each.C6O0oV7R.js";import{L as z}from"../chunks/link.C_v4aoat.js";import{P as he}from"../chunks/pagination.1KQhGwzN.js";import{T as Z,a as x,b as ee}from"../chunks/table.Cg5jABZi.js";import{t as E}from"../chunks/translate.BBe5dcco.js";import{b as O,m as ne}from"../chunks/route-for.B9fTWV7L.js";import{W as we}from"../chunks/workflow-status.4hwv3weu.js";import{j as ke}from"../chunks/workflows.Cse8qlOg.js";import{f as be}from"../chunks/events.CbhKe7Ai.js";import{n as Ie}from"../chunks/namespaces.DEm0M_ie.js";import{w as Te}from"../chunks/workflow-run.CoKQBOG_.js";import{g as ve}from"../chunks/get-workflow-relationships.CLftvMta.js";import{C as Y}from"../chunks/index.Nss_n040.js";import{W as Ee}from"../chunks/workflow-padded-layout.DTPWvpOw.js";function oe(o,t,r){const e=o.slice();return e[7]=t[r],e}function Ne(o){let t=o[7].workflowId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&64&&t!==(t=e[7].workflowId+"")&&X(r,t)},d(e){e&&i(r)}}}function Ce(o){let t=o[7].runId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&64&&t!==(t=e[7].runId+"")&&X(r,t)},d(e){e&&i(r)}}}function De(o){let t,r,e,l,n=o[7].type+"",f,a,s,c,p,_,d,k,L;return r=new we({props:{status:o[7].status}}),c=new z({props:{href:O({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[Ne]},$$scope:{ctx:o}}}),d=new z({props:{href:O({namespace:o[7].namespace,workflow:o[7].workflowId,run:o[7].runId}),$$slots:{default:[Ce]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),f=A(n),a=B(),s=N("td"),b(c.$$.fragment),p=B(),_=N("td"),b(d.$$.fragment),k=B(),this.h()},l(u){t=C(u,"TD",{class:!0});var m=D(t);I(r.$$.fragment,m),m.forEach(i),e=R(u),l=C(u,"TD",{class:!0});var g=D(l);f=W(g,n),g.forEach(i),a=R(u),s=C(u,"TD",{class:!0});var H=D(s);I(c.$$.fragment,H),H.forEach(i),p=R(u),_=C(u,"TD",{class:!0});var S=D(_);I(d.$$.fragment,S),S.forEach(i),k=R(u),this.h()},h(){P(t,"class","max-md:hidden"),P(l,"class","max-lg:hidden"),P(s,"class","hover:text-blue-700 hover:underline"),P(_,"class","hover:text-blue-700 hover:underline")},m(u,m){h(u,t,m),T(r,t,null),h(u,e,m),h(u,l,m),y(l,f),h(u,a,m),h(u,s,m),T(c,s,null),h(u,p,m),h(u,_,m),T(d,_,null),h(u,k,m),L=!0},p(u,m){const g={};m&64&&(g.status=u[7].status),r.$set(g),(!L||m&64)&&n!==(n=u[7].type+"")&&X(f,n);const H={};m&64&&(H.href=O({namespace:u[7].namespace,workflow:u[7].workflowId,run:u[7].runId})),m&1088&&(H.$$scope={dirty:m,ctx:u}),c.$set(H);const S={};m&64&&(S.href=O({namespace:u[7].namespace,workflow:u[7].workflowId,run:u[7].runId})),m&1088&&(S.$$scope={dirty:m,ctx:u}),d.$set(S)},i(u){L||($(r.$$.fragment,u),$(c.$$.fragment,u),$(d.$$.fragment,u),L=!0)},o(u){w(r.$$.fragment,u),w(c.$$.fragment,u),w(d.$$.fragment,u),L=!1},d(u){u&&(i(t),i(e),i(l),i(a),i(s),i(p),i(_),i(k)),v(r),v(c),v(d)}}}function se(o){let t,r;return t=new ee({props:{$$slots:{default:[De]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1088&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function He(o){let t,r,e=te(o[6]),l=[];for(let f=0;fw(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f({6:e}),({visibleItems:e})=>e?64:0]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&1&&(n.items=e[0]),l&1088&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Be(o,t,r){let e,l,n,{children:f=[]}=t,{pendingChildren:a=[]}=t,{namespace:s}=t;return o.$$set=c=>{"children"in c&&r(1,f=c.children),"pendingChildren"in c&&r(2,a=c.pendingChildren),"namespace"in c&&r(3,s=c.namespace)},o.$$.update=()=>{o.$$.dirty&12&&r(5,e=a.map(c=>({runId:c.runId,workflowId:c.workflowId,status:"Running",type:c.workflowTypeName,namespace:s}))),o.$$.dirty&10&&r(4,l=f.map(c=>{var p;return{runId:c.attributes.workflowExecution.runId,workflowId:c.attributes.workflowExecution.workflowId,type:c.attributes.workflowType,status:c.classification,namespace:((p=c.attributes)===null||p===void 0?void 0:p.namespace)||s}})),o.$$.dirty&48&&r(0,n=[...e,...l])},[n,f,a,s,l,e]}class Re extends J{constructor(t){super(),K(this,t,Be,ye,G,{children:1,pendingChildren:2,namespace:3})}}function fe(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[2]}),$$slots:{default:[Oe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&7&&(n.href=O({namespace:e[1],workflow:e[0],run:e[2]})),l&36&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Oe(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[2],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.content=e[2]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ae(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[4]}),$$slots:{default:[Ve]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&19&&(n.href=O({namespace:e[1],workflow:e[0],run:e[4]})),l&48&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ve(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[4],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&16&&(n.content=e[4]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ce(o){let t,r;return t=new z({props:{href:O({namespace:o[1],workflow:o[0],run:o[3]}),$$slots:{default:[Fe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&11&&(n.href=O({namespace:e[1],workflow:e[0],run:e[3]})),l&40&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Fe(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[3],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.content=e[3]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function je(o){let t,r,e,l,n,f,a=o[2]&&fe(o),s=o[4]&&ae(o),c=o[3]&&ce(o);return{c(){t=N("td"),a&&a.c(),r=B(),e=N("td"),s&&s.c(),l=B(),n=N("td"),c&&c.c(),this.h()},l(p){t=C(p,"TD",{class:!0});var _=D(t);a&&a.l(_),_.forEach(i),r=R(p),e=C(p,"TD",{class:!0});var d=D(e);s&&s.l(d),d.forEach(i),l=R(p),n=C(p,"TD",{class:!0});var k=D(n);c&&c.l(k),k.forEach(i),this.h()},h(){P(t,"class","w-1/3"),P(e,"class","w-1/3"),P(n,"class","w-1/3")},m(p,_){h(p,t,_),a&&a.m(t,null),h(p,r,_),h(p,e,_),s&&s.m(e,null),h(p,l,_),h(p,n,_),c&&c.m(n,null),f=!0},p(p,_){p[2]?a?(a.p(p,_),_&4&&$(a,1)):(a=fe(p),a.c(),$(a,1),a.m(t,null)):a&&(j(),w(a,1,1,()=>{a=null}),q()),p[4]?s?(s.p(p,_),_&16&&$(s,1)):(s=ae(p),s.c(),$(s,1),s.m(e,null)):s&&(j(),w(s,1,1,()=>{s=null}),q()),p[3]?c?(c.p(p,_),_&8&&$(c,1)):(c=ce(p),c.c(),$(c,1),c.m(n,null)):c&&(j(),w(c,1,1,()=>{c=null}),q())},i(p){f||($(a),$(s),$(c),f=!0)},o(p){w(a),w(s),w(c),f=!1},d(p){p&&(i(t),i(r),i(e),i(l),i(n)),a&&a.d(),s&&s.d(),c&&c.d()}}}function qe(o){let t,r;return t=new ee({props:{$$slots:{default:[je]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&63&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ze(o){let t,r=E("workflows.relationships")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function Me(o){let t,r=E("workflows.first-execution")+"",e,l,n,f=E("workflows.previous-execution")+"",a,s,c,p=E("workflows.next-execution")+"",_;return{c(){t=N("th"),e=A(r),l=B(),n=N("th"),a=A(f),s=B(),c=N("th"),_=A(p)},l(d){t=C(d,"TH",{});var k=D(t);e=W(k,r),k.forEach(i),l=R(d),n=C(d,"TH",{});var L=D(n);a=W(L,f),L.forEach(i),s=R(d),c=C(d,"TH",{});var u=D(c);_=W(u,p),u.forEach(i)},m(d,k){h(d,t,k),y(t,e),h(d,l,k),h(d,n,k),y(n,a),h(d,s,k),h(d,c,k),y(c,_)},p:V,d(d){d&&(i(t),i(l),i(n),i(s),i(c))}}}function Ge(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[Me]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&32&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Je(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[Ge],caption:[ze],default:[qe]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&63&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ke(o,t,r){let{workflow:e}=t,{namespace:l}=t,{first:n}=t,{next:f}=t,{previous:a}=t;return o.$$set=s=>{"workflow"in s&&r(0,e=s.workflow),"namespace"in s&&r(1,l=s.namespace),"first"in s&&r(2,n=s.first),"next"in s&&r(3,f=s.next),"previous"in s&&r(4,a=s.previous)},[e,l,n,f,a]}class Qe extends J{constructor(t){super(),K(this,t,Ke,Je,G,{workflow:0,namespace:1,first:2,next:3,previous:4})}}function ue(o,t,r){const e=o.slice();return e[4]=t[r],e}function Ue(o){let t=o[4].id+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&8&&t!==(t=e[4].id+"")&&X(r,t)},d(e){e&&i(r)}}}function Xe(o){let t=o[4].runId+"",r;return{c(){r=A(t)},l(e){r=W(e,t)},m(e,l){h(e,r,l)},p(e,l){l&8&&t!==(t=e[4].runId+"")&&X(r,t)},d(e){e&&i(r)}}}function Ye(o){let t,r,e,l,n=o[4].name+"",f,a,s,c,p,_,d,k,L;return r=new we({props:{status:o[4].status}}),c=new z({props:{href:O({namespace:o[1],workflow:o[4].id,run:o[4].runId}),$$slots:{default:[Ue]},$$scope:{ctx:o}}}),d=new z({props:{href:O({namespace:o[1],workflow:o[4].id,run:o[4].runId}),$$slots:{default:[Xe]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),f=A(n),a=B(),s=N("td"),b(c.$$.fragment),p=B(),_=N("td"),b(d.$$.fragment),k=B(),this.h()},l(u){t=C(u,"TD",{class:!0});var m=D(t);I(r.$$.fragment,m),m.forEach(i),e=R(u),l=C(u,"TD",{class:!0});var g=D(l);f=W(g,n),g.forEach(i),a=R(u),s=C(u,"TD",{class:!0});var H=D(s);I(c.$$.fragment,H),H.forEach(i),p=R(u),_=C(u,"TD",{class:!0});var S=D(_);I(d.$$.fragment,S),S.forEach(i),k=R(u),this.h()},h(){P(t,"class","max-md:hidden"),P(l,"class","max-lg:hidden"),P(s,"class","hover:text-blue-700 hover:underline"),P(_,"class","hover:text-blue-700 hover:underline")},m(u,m){h(u,t,m),T(r,t,null),h(u,e,m),h(u,l,m),y(l,f),h(u,a,m),h(u,s,m),T(c,s,null),h(u,p,m),h(u,_,m),T(d,_,null),h(u,k,m),L=!0},p(u,m){const g={};m&8&&(g.status=u[4].status),r.$set(g),(!L||m&8)&&n!==(n=u[4].name+"")&&X(f,n);const H={};m&10&&(H.href=O({namespace:u[1],workflow:u[4].id,run:u[4].runId})),m&136&&(H.$$scope={dirty:m,ctx:u}),c.$set(H);const S={};m&10&&(S.href=O({namespace:u[1],workflow:u[4].id,run:u[4].runId})),m&136&&(S.$$scope={dirty:m,ctx:u}),d.$set(S)},i(u){L||($(r.$$.fragment,u),$(c.$$.fragment,u),$(d.$$.fragment,u),L=!0)},o(u){w(r.$$.fragment,u),w(c.$$.fragment,u),w(d.$$.fragment,u),L=!1},d(u){u&&(i(t),i(e),i(l),i(a),i(s),i(p),i(_),i(k)),v(r),v(c),v(d)}}}function ie(o){let t,r;return t=new ee({props:{$$slots:{default:[Ye]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&138&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ze(o){let t,r,e=te(o[3]),l=[];for(let f=0;fw(l[f],1,1,()=>{l[f]=null});return{c(){for(let f=0;f({3:e}),({visibleItems:e})=>e?8:0]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&1&&(n.items=e[0]),l&138&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ot(o,t,r){let e,l;Q(o,re,f=>r(2,l=f));let{children:n=[]}=t;return o.$$set=f=>{"children"in f&&r(0,n=f.children)},o.$$.update=()=>{o.$$.dirty&4&&r(1,{namespace:e}=l.params,e)},[n,e,l]}class st extends J{constructor(t){super(),K(this,t,ot,nt,G,{children:0})}}function ft(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0].workflowId,visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0].workflowId),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function at(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0].runId,visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0].runId),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function ct(o){let t,r,e,l,n,f;return r=new z({props:{href:O({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[ft]},$$scope:{ctx:o}}}),n=new z({props:{href:O({namespace:o[1]??o[2],workflow:o[0].workflowId,run:o[0].runId}),$$slots:{default:[at]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment),e=B(),l=N("td"),b(n.$$.fragment)},l(a){t=C(a,"TD",{});var s=D(t);I(r.$$.fragment,s),s.forEach(i),e=R(a),l=C(a,"TD",{});var c=D(l);I(n.$$.fragment,c),c.forEach(i)},m(a,s){h(a,t,s),T(r,t,null),h(a,e,s),h(a,l,s),T(n,l,null),f=!0},p(a,s){const c={};s&7&&(c.href=O({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),s&9&&(c.$$scope={dirty:s,ctx:a}),r.$set(c);const p={};s&7&&(p.href=O({namespace:a[1]??a[2],workflow:a[0].workflowId,run:a[0].runId})),s&9&&(p.$$scope={dirty:s,ctx:a}),n.$set(p)},i(a){f||($(r.$$.fragment,a),$(n.$$.fragment,a),f=!0)},o(a){w(r.$$.fragment,a),w(n.$$.fragment,a),f=!1},d(a){a&&(i(t),i(e),i(l)),v(r),v(n)}}}function ut(o){let t,r;return t=new ee({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[ct]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&15&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function it(o){let t,r=E("workflows.parent-workflow")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function mt(o){let t,r=E("workflows.parent-id")+"",e,l,n,f=E("workflows.parent-run-id")+"",a;return{c(){t=N("th"),e=A(r),l=B(),n=N("th"),a=A(f)},l(s){t=C(s,"TH",{});var c=D(t);e=W(c,r),c.forEach(i),l=R(s),n=C(s,"TH",{});var p=D(n);a=W(p,f),p.forEach(i)},m(s,c){h(s,t,c),y(t,e),h(s,l,c),h(s,n,c),y(n,a)},p:V,d(s){s&&(i(t),i(l),i(n))}}}function pt(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[mt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function $t(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[pt],caption:[it],default:[ut]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&15&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function _t(o,t,r){let{parent:e}=t,{parentNamespaceName:l}=t,{namespace:n}=t;return o.$$set=f=>{"parent"in f&&r(0,e=f.parent),"parentNamespaceName"in f&&r(1,l=f.parentNamespaceName),"namespace"in f&&r(2,n=f.namespace)},[e,l,n]}class ht extends J{constructor(t){super(),K(this,t,_t,$t,G,{parent:0,parentNamespaceName:1,namespace:2})}}function wt(o){let t,r;return t=new Y({props:{copyIconTitle:E("common.copy-icon-title"),copySuccessIconTitle:E("common.copy-success-icon-title"),content:o[0],visible:!0}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&1&&(n.content=e[0]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function dt(o){let t,r,e;return r=new z({props:{href:ne({namespace:o[1],scheduleId:o[0]}),$$slots:{default:[wt]},$$scope:{ctx:o}}}),{c(){t=N("td"),b(r.$$.fragment)},l(l){t=C(l,"TD",{});var n=D(t);I(r.$$.fragment,n),n.forEach(i)},m(l,n){h(l,t,n),T(r,t,null),e=!0},p(l,n){const f={};n&3&&(f.href=ne({namespace:l[1],scheduleId:l[0]})),n&5&&(f.$$scope={dirty:n,ctx:l}),r.$set(f)},i(l){e||($(r.$$.fragment,l),e=!0)},o(l){w(r.$$.fragment,l),e=!1},d(l){l&&i(t),v(r)}}}function gt(o){let t,r;return t=new ee({props:{class:"hover:text-blue-700 hover:underline",$$slots:{default:[dt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&7&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function kt(o){let t,r=E("schedules.schedule")+"",e;return{c(){t=N("caption"),e=A(r),this.h()},l(l){t=C(l,"CAPTION",{class:!0,slot:!0});var n=D(t);e=W(n,r),n.forEach(i),this.h()},h(){P(t,"class","sr-only"),P(t,"slot","caption")},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function bt(o){let t,r=E("schedules.schedule")+"",e;return{c(){t=N("th"),e=A(r)},l(l){t=C(l,"TH",{});var n=D(t);e=W(n,r),n.forEach(i)},m(l,n){h(l,t,n),y(t,e)},p:V,d(l){l&&i(t)}}}function It(o){let t,r;return t=new x({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Tt(o){let t,r;return t=new Z({props:{class:"w-full",$$slots:{headers:[It],caption:[kt],default:[gt]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,[l]){const n={};l&7&&(n.$$scope={dirty:l,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function vt(o,t,r){let{scheduleId:e}=t,{namespace:l}=t;return o.$$set=n=>{"scheduleId"in n&&r(0,e=n.scheduleId),"namespace"in n&&r(1,l=n.namespace)},[e,l]}class Et extends J{constructor(t){super(),K(this,t,vt,Tt,G,{scheduleId:0,namespace:1})}}function Nt(o){let t,r=E("workflows.no-relationships")+"",e;return{c(){t=N("p"),e=A(r)},l(l){t=C(l,"P",{});var n=D(t);e=W(n,r),n.forEach(i)},m(l,n){h(l,t,n),y(t,e)},p:V,i:V,o:V,d(l){l&&i(t)}}}function Ct(o){let t,r,e,l,n,f,a,s,c=o[3]&&me(o),p=o[8]&&pe(o),_=(o[9]||o[4]||o[5])&&$e(o);const d=[Ht,Dt],k=[];function L(u,m){return u[2].length?0:u[11]?1:-1}return~(n=L(o))&&(f=k[n]=d[n](o)),{c(){t=N("div"),c&&c.c(),r=B(),p&&p.c(),e=B(),_&&_.c(),l=B(),f&&f.c(),a=U(),this.h()},l(u){t=C(u,"DIV",{class:!0});var m=D(t);c&&c.l(m),r=R(m),p&&p.l(m),e=R(m),_&&_.l(m),m.forEach(i),l=R(u),f&&f.l(u),a=U(),this.h()},h(){P(t,"class","flex w-full flex-wrap gap-4")},m(u,m){h(u,t,m),c&&c.m(t,null),y(t,r),p&&p.m(t,null),y(t,e),_&&_.m(t,null),h(u,l,m),~n&&k[n].m(u,m),h(u,a,m),s=!0},p(u,m){u[3]?c?(c.p(u,m),m&8&&$(c,1)):(c=me(u),c.c(),$(c,1),c.m(t,r)):c&&(j(),w(c,1,1,()=>{c=null}),q()),u[8]?p?(p.p(u,m),m&256&&$(p,1)):(p=pe(u),p.c(),$(p,1),p.m(t,e)):p&&(j(),w(p,1,1,()=>{p=null}),q()),u[9]||u[4]||u[5]?_?(_.p(u,m),m&560&&$(_,1)):(_=$e(u),_.c(),$(_,1),_.m(t,null)):_&&(j(),w(_,1,1,()=>{_=null}),q());let g=n;n=L(u),n===g?~n&&k[n].p(u,m):(f&&(j(),w(k[g],1,1,()=>{k[g]=null}),q()),~n?(f=k[n],f?f.p(u,m):(f=k[n]=d[n](u),f.c()),$(f,1),f.m(a.parentNode,a)):f=null)},i(u){s||($(c),$(p),$(_),$(f),s=!0)},o(u){w(c),w(p),w(_),w(f),s=!1},d(u){u&&(i(t),i(l),i(a)),c&&c.d(),p&&p.d(),_&&_.d(),~n&&k[n].d(u)}}}function me(o){let t,r;return t=new Et({props:{scheduleId:o[3],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&8&&(n.scheduleId=e[3]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function pe(o){let t,r;return t=new ht({props:{parent:o[8],parentNamespaceName:o[7],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&256&&(n.parent=e[8]),l&128&&(n.parentNamespaceName=e[7]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function $e(o){let t,r;return t=new Qe({props:{first:o[9],previous:o[4],next:o[5],workflow:o[12],namespace:o[13]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&512&&(n.first=e[9]),l&16&&(n.previous=e[4]),l&32&&(n.next=e[5]),l&4096&&(n.workflow=e[12]),l&8192&&(n.namespace=e[13]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Dt(o){let t,r;return t=new Re({props:{children:o[6],pendingChildren:o[0].workflow.pendingChildren,namespace:o[1].params.namespace}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&64&&(n.children=e[6]),l&1&&(n.pendingChildren=e[0].workflow.pendingChildren),l&2&&(n.namespace=e[1].params.namespace),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Ht(o){let t,r;return t=new st({props:{children:o[2]}}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},p(e,l){const n={};l&4&&(n.children=e[2]),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function St(o){let t,r,e,l;const n=[Ct,Nt],f=[];function a(s,c){return s[10]?0:1}return r=a(o),e=f[r]=n[r](o),{c(){t=N("div"),e.c(),this.h()},l(s){t=C(s,"DIV",{class:!0});var c=D(t);e.l(c),c.forEach(i),this.h()},h(){P(t,"class","flex flex-col gap-4")},m(s,c){h(s,t,c),f[r].m(t,null),l=!0},p(s,[c]){let p=r;r=a(s),r===p?f[r].p(s,c):(j(),w(f[p],1,1,()=>{f[p]=null}),q(),e=f[r],e?e.p(s,c):(e=f[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){l||($(e),l=!0)},o(s){w(e),l=!1},d(s){s&&i(t),f[r].d()}}}function Pt(o,t,r){let e,l,n,f,a,s,c,p,_,d,k,L,u,m,g,H,S,F;Q(o,Ie,M=>r(16,g=M)),Q(o,be,M=>r(17,H=M)),Q(o,Te,M=>r(0,S=M)),Q(o,re,M=>r(1,F=M));let le=[];return de(async()=>{r(2,le=await ke(n,e,l))}),o.$$.update=()=>{o.$$.dirty&2&&r(12,{workflow:e,run:l,namespace:n}=F.params,e,(r(13,n),r(1,F))),o.$$.dirty&1&&r(15,{workflow:f}=S,f),o.$$.dirty&229376&&r(14,a=ve(f,H,g)),o.$$.dirty&16384&&r(11,{hasChildren:s,hasRelationships:c,first:p,parent:_,parentNamespaceName:d,children:k,next:L,previous:u,scheduleId:m}=a,s,(r(10,c),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(9,p),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(8,_),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(7,d),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(6,k),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(5,L),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(4,u),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)),(r(3,m),r(14,a),r(15,f),r(17,H),r(16,g),r(0,S)))},[S,F,le,m,u,L,k,d,_,p,c,s,e,n,a,f,g,H]}class Lt extends J{constructor(t){super(),K(this,t,Pt,St,G,{})}}function At(o){let t,r;return t=new Lt({}),{c(){b(t.$$.fragment)},l(e){I(t.$$.fragment,e)},m(e,l){T(t,e,l),r=!0},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function Wt(o){let t,r,e,l;return t=new ge({props:{title:`${E("workflows.relationships")} | ${o[1]}`,url:o[0].url.href}}),e=new Ee({props:{$$slots:{default:[At]},$$scope:{ctx:o}}}),{c(){b(t.$$.fragment),r=B(),b(e.$$.fragment)},l(n){I(t.$$.fragment,n),r=R(n),I(e.$$.fragment,n)},m(n,f){T(t,n,f),h(n,r,f),T(e,n,f),l=!0},p(n,[f]){const a={};f&1&&(a.url=n[0].url.href),t.$set(a);const s={};f&4&&(s.$$scope={dirty:f,ctx:n}),e.$set(s)},i(n){l||($(t.$$.fragment,n),$(e.$$.fragment,n),l=!0)},o(n){w(t.$$.fragment,n),w(e.$$.fragment,n),l=!1},d(n){n&&i(r),v(t,n),v(e,n)}}}function yt(o,t,r){let e;Q(o,re,n=>r(0,e=n));const l=e.params.workflow;return[e,l]}class er extends J{constructor(t){super(),K(this,t,yt,Wt,G,{})}}export{er as component}; diff --git a/ui/assets/local/_app/immutable/nodes/43.D9S71pAt.js b/ui/assets/local/_app/immutable/nodes/43.DqmIkYfr.js similarity index 76% rename from ui/assets/local/_app/immutable/nodes/43.D9S71pAt.js rename to ui/assets/local/_app/immutable/nodes/43.DqmIkYfr.js index aaf4b0611..6b8b5d9cd 100644 --- a/ui/assets/local/_app/immutable/nodes/43.D9S71pAt.js +++ b/ui/assets/local/_app/immutable/nodes/43.DqmIkYfr.js @@ -1 +1 @@ -import{r as e}from"../chunks/index.g5YcAAdQ.js";import{c as r}from"../chunks/route-for.BjP6gGR7.js";const t=async function({params:o}){e(302,r(o))},l=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{l as universal}; +import{r as e}from"../chunks/index.g5YcAAdQ.js";import{c as r}from"../chunks/route-for.B9fTWV7L.js";const t=async function({params:o}){e(302,r(o))},l=Object.freeze(Object.defineProperty({__proto__:null,load:t},Symbol.toStringTag,{value:"Module"}));export{l as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/44.CXjtdn97.js b/ui/assets/local/_app/immutable/nodes/44.D60ZzcQ_.js similarity index 86% rename from ui/assets/local/_app/immutable/nodes/44.CXjtdn97.js rename to ui/assets/local/_app/immutable/nodes/44.D60ZzcQ_.js index f83e5c0a2..c658aa6ba 100644 --- a/ui/assets/local/_app/immutable/nodes/44.CXjtdn97.js +++ b/ui/assets/local/_app/immutable/nodes/44.D60ZzcQ_.js @@ -1,3 +1,3 @@ -import{s as R,h as S,t as b,b as T,j as y,k as C,l as Q,f as p,d as j,m as I,i as E,n as d,c as q,q as O}from"../chunks/scheduler.C46pS-76.js";import{S as F,i as H,c,a as w,m as k,t as $,b as _,d as g}from"../chunks/index.dOVbn71B.js";import{p as N}from"../chunks/stores.Dz-RNcUk.js";import{P as z}from"../chunks/page-title.DNhqE1Lj.js";import{t as W}from"../chunks/translate.BBe5dcco.js";import{W as A}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{W as B}from"../chunks/worker-table.CpbGX-wq.js";import{L as D}from"../chunks/link.BJceiGbc.js";import"../chunks/auth-user.BOlglCm6.js";import"../chunks/toaster.D-OAJjvv.js";import{g as L}from"../chunks/route-for.BjP6gGR7.js";import"../chunks/paths.DlAH43M2.js";import{w as G}from"../chunks/workflow-run.DcChDuxV.js";function J(a){let e;return{c(){e=b(a[0])},l(t){e=Q(t,a[0])},m(t,n){E(t,e,n)},p(t,n){n&1&&O(e,t[0])},d(t){t&&p(e)}}}function K(a){let e,t,n=W("common.task-queue")+"",o,r,s,f,m,h;return s=new D({props:{href:L({namespace:a[2],queue:a[0]}),$$slots:{default:[J]},$$scope:{ctx:a}}}),m=new B({props:{workers:a[1]}}),{c(){e=S("section"),t=S("h2"),o=b(n),r=b(`: +import{s as R,h as S,t as b,b as T,j as y,k as C,l as Q,f as p,d as j,m as I,i as E,n as d,c as q,q as O}from"../chunks/scheduler.C46pS-76.js";import{S as F,i as H,c,a as w,m as k,t as $,b as _,d as g}from"../chunks/index.dOVbn71B.js";import{p as N}from"../chunks/stores.Ds4o9nwd.js";import{P as z}from"../chunks/page-title.DNhqE1Lj.js";import{t as W}from"../chunks/translate.BBe5dcco.js";import{W as A}from"../chunks/workflow-padded-layout.DTPWvpOw.js";import{W as B}from"../chunks/worker-table.BTld4JO6.js";import{L as D}from"../chunks/link.C_v4aoat.js";import"../chunks/auth-user.CfsLeCYD.js";import"../chunks/toaster.p5hsABhI.js";import{g as L}from"../chunks/route-for.B9fTWV7L.js";import"../chunks/paths.C1CnfzR-.js";import{w as G}from"../chunks/workflow-run.CoKQBOG_.js";function J(a){let e;return{c(){e=b(a[0])},l(t){e=Q(t,a[0])},m(t,n){E(t,e,n)},p(t,n){n&1&&O(e,t[0])},d(t){t&&p(e)}}}function K(a){let e,t,n=W("common.task-queue")+"",o,r,s,f,m,h;return s=new D({props:{href:L({namespace:a[2],queue:a[0]}),$$slots:{default:[J]},$$scope:{ctx:a}}}),m=new B({props:{workers:a[1]}}),{c(){e=S("section"),t=S("h2"),o=b(n),r=b(`: `),c(s.$$.fragment),f=T(),c(m.$$.fragment),this.h()},l(u){e=y(u,"SECTION",{class:!0});var l=C(e);t=y(l,"H2",{"data-testid":!0});var i=C(t);o=Q(i,n),r=Q(i,`: `),w(s.$$.fragment,i),i.forEach(p),f=j(l),w(m.$$.fragment,l),l.forEach(p),this.h()},h(){I(t,"data-testid","task-queue-name"),I(e,"class","flex flex-col gap-4")},m(u,l){E(u,e,l),d(e,t),d(t,o),d(t,r),k(s,t,null),d(e,f),k(m,e,null),h=!0},p(u,[l]){const i={};l&5&&(i.href=L({namespace:u[2],queue:u[0]})),l&17&&(i.$$scope={dirty:l,ctx:u}),s.$set(i);const P={};l&2&&(P.workers=u[1]),m.$set(P)},i(u){h||($(s.$$.fragment,u),$(m.$$.fragment,u),h=!0)},o(u){_(s.$$.fragment,u),_(m.$$.fragment,u),h=!1},d(u){u&&p(e),g(s),g(m)}}}function M(a,e,t){let n,o;q(a,N,f=>t(3,o=f));let{taskQueue:r}=e,{workers:s}=e;return a.$$set=f=>{"taskQueue"in f&&t(0,r=f.taskQueue),"workers"in f&&t(1,s=f.workers)},a.$$.update=()=>{a.$$.dirty&8&&t(2,{namespace:n}=o.params,n)},[r,s,n,o]}class U extends F{constructor(e){super(),H(this,e,M,K,R,{taskQueue:0,workers:1})}}function V(a){var n;let e,t;return e=new U({props:{workers:a[2],taskQueue:(n=a[1])==null?void 0:n.taskQueue}}),{c(){c(e.$$.fragment)},l(o){w(e.$$.fragment,o)},m(o,r){k(e,o,r),t=!0},p(o,r){var f;const s={};r&4&&(s.workers=o[2]),r&2&&(s.taskQueue=(f=o[1])==null?void 0:f.taskQueue),e.$set(s)},i(o){t||($(e.$$.fragment,o),t=!0)},o(o){_(e.$$.fragment,o),t=!1},d(o){g(e,o)}}}function X(a){let e,t,n,o;return e=new z({props:{title:`${W("workflows.workers-tab")} | ${a[3]}`,url:a[0].url.href}}),n=new A({props:{$$slots:{default:[V]},$$scope:{ctx:a}}}),{c(){c(e.$$.fragment),t=T(),c(n.$$.fragment)},l(r){w(e.$$.fragment,r),t=j(r),w(n.$$.fragment,r)},m(r,s){k(e,r,s),E(r,t,s),k(n,r,s),o=!0},p(r,[s]){const f={};s&8&&(f.title=`${W("workflows.workers-tab")} | ${r[3]}`),s&1&&(f.url=r[0].url.href),e.$set(f);const m={};s&38&&(m.$$scope={dirty:s,ctx:r}),n.$set(m)},i(r){o||($(e.$$.fragment,r),$(n.$$.fragment,r),o=!0)},o(r){_(e.$$.fragment,r),_(n.$$.fragment,r),o=!1},d(r){r&&p(t),g(e,r),g(n,r)}}}function Y(a,e,t){let n,o,r,s,f;return q(a,G,m=>t(4,s=m)),q(a,N,m=>t(0,f=m)),a.$$.update=()=>{a.$$.dirty&1&&t(3,{workflow:n}=f.params,n),a.$$.dirty&16&&t(2,{workers:o,workflow:r}=s,o,(t(1,r),t(4,s)))},[f,r,o,n,s]}class le extends F{constructor(e){super(),H(this,e,Y,X,R,{})}}export{le as component}; diff --git a/ui/assets/local/_app/immutable/nodes/45.x1LiIHi-.js b/ui/assets/local/_app/immutable/nodes/45.B-TLuIb4.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/45.x1LiIHi-.js rename to ui/assets/local/_app/immutable/nodes/45.B-TLuIb4.js index 93d08194e..ff47bea38 100644 --- a/ui/assets/local/_app/immutable/nodes/45.x1LiIHi-.js +++ b/ui/assets/local/_app/immutable/nodes/45.B-TLuIb4.js @@ -1 +1 @@ -import{r as Ue}from"../chunks/index.g5YcAAdQ.js";import{e as Te,g as Pe,b as Ne}from"../chunks/route-for.BjP6gGR7.js";import{s as Ae,N as ne,h as z,b as y,j as B,k as L,f as I,d as Q,o as ze,m as N,i as M,n as $,O as ae,v as fe,c as _e,V as Be,t as Y,l as Z,q as Se,P as He}from"../chunks/scheduler.C46pS-76.js";import{S as Oe,i as qe,f as se,c as V,a as W,m as D,t as m,g as de,b as h,e as ge,d as E}from"../chunks/index.dOVbn71B.js";import{p as Ce}from"../chunks/stores.Dz-RNcUk.js";import{P as Je}from"../chunks/page-title.DNhqE1Lj.js";import{w as Le}from"../chunks/entry.DLEzeuD9.js";import{P as Me}from"../chunks/payload-input-with-encoding.BapU-_VF.js";import{A as Ke}from"../chunks/add-search-attributes.B9SzC6V8.js";import{A as Fe}from"../chunks/alert.nnKn2vnv.js";import{B as ve}from"../chunks/button.BpRIS9ld.js";import{I as Ie}from"../chunks/input.CTzUOpgs.js";import{L as Re}from"../chunks/link.BJceiGbc.js";import{t as oe}from"../chunks/translate.BBe5dcco.js";import{g as Ge}from"../chunks/pollers-service.YXEUeA9H.js";import{c as Xe,e as Ye,g as Ze}from"../chunks/workflows.BzgE0E1S.js";import{c as xe}from"../chunks/search-attributes.C9oQpIly.js";import{t as ye,v as et}from"../chunks/toaster.D-OAJjvv.js";import{p as Qe}from"../chunks/format-time.6TuExJAg.js";import{u as Ve}from"../chunks/update-query-parameters.DVJ0yHKX.js";import{w as tt}from"../chunks/workflow-create-disabled.Dpno7PTz.js";const rt=async function({params:n,parent:e}){if((await e()).settings.startWorkflowDisabled){const{namespace:r}=n;Ue(302,Te({namespace:r}))}},Ot=Object.freeze(Object.defineProperty({__proto__:null,load:rt},Symbol.toStringTag,{value:"Module"}));function nt(n){let e=oe("workflows.back-to-workflows")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function at(n){let e;return{c(){e=Y("Random UUID")},l(t){e=Z(t,"Random UUID")},m(t,r){M(t,e,r)},d(t){t&&I(e)}}}function We(n){let e,t;return e=new Fe({props:{intent:n[7]>0?"success":"warning",title:n[7]?"Task Queue is Active":"Task Queue is Inactive",$$slots:{default:[ot]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},l(r){W(e.$$.fragment,r)},m(r,l){D(e,r,l),t=!0},p(r,l){const a={};l[0]&128&&(a.intent=r[7]>0?"success":"warning"),l[0]&128&&(a.title=r[7]?"Task Queue is Active":"Task Queue is Inactive"),l[0]&2178|l[1]&32&&(a.$$scope={dirty:l,ctx:r}),e.$set(a)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function st(n){let e;return{c(){e=Y("View Task Queue")},l(t){e=Z(t,"View Task Queue")},m(t,r){M(t,e,r)},d(t){t&&I(e)}}}function ot(n){let e,t,r,l,a=Qe("Worker",n[7])+"",u,p,f,g;return f=new Re({props:{href:Pe({namespace:n[11],queue:n[1]}),newTab:!0,$$slots:{default:[st]},$$scope:{ctx:n}}}),{c(){e=z("div"),t=z("p"),r=Y(n[7]),l=y(),u=Y(a),p=y(),V(f.$$.fragment),this.h()},l(c){e=B(c,"DIV",{class:!0});var b=L(e);t=B(b,"P",{});var T=L(t);r=Z(T,n[7]),l=Q(T),u=Z(T,a),T.forEach(I),p=Q(b),W(f.$$.fragment,b),b.forEach(I),this.h()},h(){N(e,"class","flex w-full items-center justify-between")},m(c,b){M(c,e,b),$(e,t),$(t,r),$(t,l),$(t,u),$(e,p),D(f,e,null),g=!0},p(c,b){(!g||b[0]&128)&&Se(r,c[7]),(!g||b[0]&128)&&a!==(a=Qe("Worker",c[7])+"")&&Se(u,a);const T={};b[0]&2050&&(T.href=Pe({namespace:c[11],queue:c[1]})),b[1]&32&&(T.$$scope={dirty:b,ctx:c}),f.$set(T)},i(c){g||(m(f.$$.fragment,c),g=!0)},o(c){h(f.$$.fragment,c),g=!1},d(c){c&&I(e),E(f)}}}function De(n){let e,t,r,l;function a(f){n[25](f)}function u(f){n[26](f)}let p={};return n[3]!==void 0&&(p.input=n[3]),n[4]!==void 0&&(p.encoding=n[4]),e=new Me({props:p}),ne.push(()=>se(e,"input",a)),ne.push(()=>se(e,"encoding",u)),{c(){V(e.$$.fragment)},l(f){W(e.$$.fragment,f)},m(f,g){D(e,f,g),l=!0},p(f,g){const c={};!t&&g[0]&8&&(t=!0,c.input=f[3],ae(()=>t=!1)),!r&&g[0]&16&&(r=!0,c.encoding=f[4],ae(()=>r=!1)),e.$set(c)},i(f){l||(m(e.$$.fragment,f),l=!0)},o(f){h(e.$$.fragment,f),l=!1},d(f){E(e,f)}}}function Ee(n){let e,t,r;function l(u){n[27](u)}let a={};return n[9]!==void 0&&(a.attributesToAdd=n[9]),e=new Ke({props:a}),ne.push(()=>se(e,"attributesToAdd",l)),{c(){V(e.$$.fragment)},l(u){W(e.$$.fragment,u)},m(u,p){D(e,u,p),r=!0},p(u,p){const f={};!t&&p[0]&512&&(t=!0,f.attributesToAdd=u[9],ae(()=>t=!1)),e.$set(f)},i(u){r||(m(e.$$.fragment,u),r=!0)},o(u){h(e.$$.fragment,u),r=!1},d(u){E(e,u)}}}function lt(n){let e=oe("common.more-options")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function ut(n){let e=oe("workflows.start-workflow")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function je(n){let e,t;return e=new Fe({props:{intent:"error",title:n[6]}}),{c(){V(e.$$.fragment)},l(r){W(e.$$.fragment,r)},m(r,l){D(e,r,l),t=!0},p(r,l){const a={};l[0]&64&&(a.title=r[6]),e.$set(a)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function it(n){let e,t,r,l,a,u,p="Start a Workflow",f,g,c,b,T,k,C,j,v,R,x,H,A,K,ee,G=n[5],O,te,F,q,le,P,ue,re;r=new Re({props:{href:`${Te({namespace:n[11]})}?${n[12]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[nt]},$$scope:{ctx:n}}});function we(o){n[19](o)}let ce={id:"workflowId",required:!0,label:"Workflow ID",class:"w-full grow"};n[0]!==void 0&&(ce.value=n[0]),c=new Ie({props:ce}),ne.push(()=>se(c,"value",we)),c.$on("blur",n[20]),k=new ve({props:{class:"mt-0 md:mt-6",variant:"secondary",leadingIcon:"retry",$$slots:{default:[at]},$$scope:{ctx:n}}}),k.$on("click",n[14]);function $e(o){n[21](o)}let pe={id:"taskQueue",required:!0,label:"Task Queue",class:"grow"};n[1]!==void 0&&(pe.value=n[1]),v=new Ie({props:pe}),ne.push(()=>se(v,"value",$e)),v.$on("blur",n[22]);let _=n[7]!==void 0&&We(n);function he(o){n[23](o)}let me={id:"workflowType",required:!0,label:"Workflow Type"};n[2]!==void 0&&(me.value=n[2]),A=new Ie({props:me}),ne.push(()=>se(A,"value",he)),A.$on("blur",n[24]);let S=De(n),w=n[8]&&Ee(n);q=new ve({props:{variant:"ghost",trailingIcon:n[8]?"chevron-up":"chevron-down",$$slots:{default:[lt]},$$scope:{ctx:n}}}),q.$on("click",n[28]),P=new ve({props:{disabled:!n[10],"data-testid":"start-workflow-button",$$slots:{default:[ut]},$$scope:{ctx:n}}}),P.$on("click",n[13]);let s=n[6]&&je(n);return{c(){e=z("div"),t=z("div"),V(r.$$.fragment),l=y(),a=z("div"),u=z("h1"),u.textContent=p,f=y(),g=z("div"),V(c.$$.fragment),T=y(),V(k.$$.fragment),C=y(),j=z("div"),V(v.$$.fragment),x=y(),_&&_.c(),H=y(),V(A.$$.fragment),ee=y(),S.c(),O=y(),w&&w.c(),te=y(),F=z("div"),V(q.$$.fragment),le=y(),V(P.$$.fragment),ue=y(),s&&s.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var i=L(e);t=B(i,"DIV",{class:!0});var J=L(t);W(r.$$.fragment,J),J.forEach(I),l=Q(i),a=B(i,"DIV",{class:!0});var d=L(a);u=B(d,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),ze(u)!=="svelte-8dv4qj"&&(u.textContent=p),f=Q(d),g=B(d,"DIV",{class:!0});var U=L(g);W(c.$$.fragment,U),T=Q(U),W(k.$$.fragment,U),U.forEach(I),C=Q(d),j=B(d,"DIV",{class:!0});var ie=L(j);W(v.$$.fragment,ie),ie.forEach(I),x=Q(d),_&&_.l(d),H=Q(d),W(A.$$.fragment,d),ee=Q(d),S.l(d),O=Q(d),w&&w.l(d),te=Q(d),F=B(d,"DIV",{class:!0});var X=L(F);W(q.$$.fragment,X),le=Q(X),W(P.$$.fragment,X),X.forEach(I),ue=Q(d),s&&s.l(d),d.forEach(I),i.forEach(I),this.h()},h(){N(t,"class","mb-6 flex w-full items-start"),N(u,"class","mb-4 overflow-hidden"),N(u,"data-testid","start-workflow"),N(g,"class","flex w-full flex-col items-center justify-between gap-2 md:flex-row md:gap-4"),N(j,"class","flex w-full items-center justify-between gap-4"),N(F,"class","mt-4 flex w-full justify-between"),N(a,"class","flex w-full flex-col gap-4 lg:w-2/3 2xl:w-1/2"),N(e,"class","flex w-full flex-col items-center pb-24")},m(o,i){M(o,e,i),$(e,t),D(r,t,null),$(e,l),$(e,a),$(a,u),$(a,f),$(a,g),D(c,g,null),$(g,T),D(k,g,null),$(a,C),$(a,j),D(v,j,null),$(a,x),_&&_.m(a,null),$(a,H),D(A,a,null),$(a,ee),S.m(a,null),$(a,O),w&&w.m(a,null),$(a,te),$(a,F),D(q,F,null),$(F,le),D(P,F,null),$(a,ue),s&&s.m(a,null),re=!0},p(o,i){const J={};i[0]&6144&&(J.href=`${Te({namespace:o[11]})}?${o[12]}`),i[1]&32&&(J.$$scope={dirty:i,ctx:o}),r.$set(J);const d={};!b&&i[0]&1&&(b=!0,d.value=o[0],ae(()=>b=!1)),c.$set(d);const U={};i[1]&32&&(U.$$scope={dirty:i,ctx:o}),k.$set(U);const ie={};!R&&i[0]&2&&(R=!0,ie.value=o[1],ae(()=>R=!1)),v.$set(ie),o[7]!==void 0?_?(_.p(o,i),i[0]&128&&m(_,1)):(_=We(o),_.c(),m(_,1),_.m(a,H)):_&&(de(),h(_,1,1,()=>{_=null}),ge());const X={};!K&&i[0]&4&&(K=!0,X.value=o[2],ae(()=>K=!1)),A.$set(X),i[0]&32&&Ae(G,G=o[5])?(de(),h(S,1,1,fe),ge(),S=De(o),S.c(),m(S,1),S.m(a,O)):S.p(o,i),o[8]?w?(w.p(o,i),i[0]&256&&m(w,1)):(w=Ee(o),w.c(),m(w,1),w.m(a,te)):w&&(de(),h(w,1,1,()=>{w=null}),ge());const be={};i[0]&256&&(be.trailingIcon=o[8]?"chevron-up":"chevron-down"),i[1]&32&&(be.$$scope={dirty:i,ctx:o}),q.$set(be);const ke={};i[0]&1024&&(ke.disabled=!o[10]),i[1]&32&&(ke.$$scope={dirty:i,ctx:o}),P.$set(ke),o[6]?s?(s.p(o,i),i[0]&64&&m(s,1)):(s=je(o),s.c(),m(s,1),s.m(a,null)):s&&(de(),h(s,1,1,()=>{s=null}),ge())},i(o){re||(m(r.$$.fragment,o),m(c.$$.fragment,o),m(k.$$.fragment,o),m(v.$$.fragment,o),m(_),m(A.$$.fragment,o),m(S),m(w),m(q.$$.fragment,o),m(P.$$.fragment,o),m(s),re=!0)},o(o){h(r.$$.fragment,o),h(c.$$.fragment,o),h(k.$$.fragment,o),h(v.$$.fragment,o),h(_),h(A.$$.fragment,o),h(S),h(w),h(q.$$.fragment,o),h(P.$$.fragment,o),h(s),re=!1},d(o){o&&I(e),E(r),E(c),E(k),E(v),_&&_.d(),E(A),S.d(o),w&&w.d(),E(q),E(P),s&&s.d()}}}function ft(n,e,t){let r,l,a,u,p,f,g,c=fe,b=()=>(c(),c=He(R,s=>t(32,g=s)),R),T;_e(n,Ce,s=>t(18,p=s)),_e(n,xe,s=>t(31,f=s)),_e(n,Xe,s=>t(12,T=s)),n.$$.on_destroy.push(()=>c());let k="",C="",j="",v="",R=Le("json/plain");b();let x=0,H="",A="",K="",ee,G=!1,O=[];Be(()=>{t(0,k=p.url.searchParams.get("workflowId")||""),t(1,C=p.url.searchParams.get("taskQueue")||""),t(2,j=p.url.searchParams.get("workflowType")||""),H=p.url.searchParams.get("workflowId")||"",A=p.url.searchParams.get("workflowType")||"",(H||A)&&le(H,A)});const te=async()=>{try{t(6,K="");const{runId:s}=await Ze({namespace:r,workflowId:k,taskQueue:C,workflowType:j,input:v,encoding:g,searchAttributes:O});ye.push({variant:"success",duration:5e3,message:oe("workflows.start-workflow-success"),link:Ne({namespace:r,workflow:k,run:s})})}catch(s){t(6,K=(s==null?void 0:s.message)||oe("workflows.start-workflow-error")),ye.push({variant:"error",message:oe("workflows.start-workflow-error")})}},F=()=>{t(0,k=et()),Ve({parameter:"workflowId",value:k,url:p.url,allowEmpty:!0})},q=async s=>{if(s){const{pollers:o}=await Ge({namespace:r,queue:s});t(7,ee=o.length)}},le=async(s,o)=>{const i=await Ye({namespace:r,workflowId:s,workflowType:o});if(t(3,v=i.input),t(5,x=Date.now()),i!=null&&i.searchAttributes){const J=Object.keys(f);Object.entries(i.searchAttributes).forEach(([d,U])=>{J.includes(d)&&t(9,O=[...O,{attribute:d,value:String(U)}])}),t(8,G=!0)}},P=(s,o)=>{const i=s.target.value;Ve({parameter:o,value:i,url:p.url,allowEmpty:!0})},ue=s=>{try{return JSON.parse(s),!0}catch{return!1}};function re(s){k=s,t(0,k)}const we=s=>P(s,"workflowId");function ce(s){C=s,t(1,C)}const $e=s=>P(s,"taskQueue");function pe(s){j=s,t(2,j)}const _=s=>P(s,"workflowType");function he(s){v=s,t(3,v)}function me(s){R=s,b(t(4,R))}function S(s){O=s,t(9,O)}const w=()=>t(8,G=!G);return n.$$.update=()=>{n.$$.dirty[0]&262144&&t(11,{namespace:r}=p.params,r),n.$$.dirty[0]&262144&&t(16,l=p.url.searchParams.get("taskQueue")),n.$$.dirty[0]&8&&t(17,a=!v||ue(v)),n.$$.dirty[0]&393223&&t(10,u=!!k&&!!C&&!!j&&!!a&&!tt(p)),n.$$.dirty[0]&65536&&q(l)},[k,C,j,v,R,x,K,ee,G,O,u,r,T,te,F,P,l,a,p,re,we,ce,$e,pe,_,he,me,S,w]}class ct extends Oe{constructor(e){super(),qe(this,e,ft,it,Ae,{},null,[-1,-1])}}function pt(n){let e,t,r,l;return e=new Je({props:{title:"Start Workflow",url:n[0].url.href}}),r=new ct({}),{c(){V(e.$$.fragment),t=y(),V(r.$$.fragment)},l(a){W(e.$$.fragment,a),t=Q(a),W(r.$$.fragment,a)},m(a,u){D(e,a,u),M(a,t,u),D(r,a,u),l=!0},p(a,[u]){const p={};u&1&&(p.url=a[0].url.href),e.$set(p)},i(a){l||(m(e.$$.fragment,a),m(r.$$.fragment,a),l=!0)},o(a){h(e.$$.fragment,a),h(r.$$.fragment,a),l=!1},d(a){a&&I(t),E(e,a),E(r,a)}}}function mt(n,e,t){let r;return _e(n,Ce,l=>t(0,r=l)),[r]}class qt extends Oe{constructor(e){super(),qe(this,e,mt,pt,Ae,{})}}export{qt as component,Ot as universal}; +import{r as Ue}from"../chunks/index.g5YcAAdQ.js";import{e as Te,g as Pe,b as Ne}from"../chunks/route-for.B9fTWV7L.js";import{s as Ae,N as ne,h as z,b as y,j as B,k as L,f as I,d as Q,o as ze,m as N,i as M,n as $,O as ae,v as fe,c as _e,V as Be,t as Y,l as Z,q as Se,P as He}from"../chunks/scheduler.C46pS-76.js";import{S as Oe,i as qe,f as se,c as V,a as W,m as D,t as m,g as de,b as h,e as ge,d as E}from"../chunks/index.dOVbn71B.js";import{p as Ce}from"../chunks/stores.Ds4o9nwd.js";import{P as Je}from"../chunks/page-title.DNhqE1Lj.js";import{w as Le}from"../chunks/entry.kylZibtV.js";import{P as Me}from"../chunks/payload-input-with-encoding.CjdKAmav.js";import{A as Ke}from"../chunks/add-search-attributes.Bb3B2Swh.js";import{A as Fe}from"../chunks/alert.nnKn2vnv.js";import{B as ve}from"../chunks/button.hs88FdV4.js";import{I as Ie}from"../chunks/input.Dizl7Mgk.js";import{L as Re}from"../chunks/link.C_v4aoat.js";import{t as oe}from"../chunks/translate.BBe5dcco.js";import{g as Ge}from"../chunks/pollers-service.BcPp2B7I.js";import{c as Xe,e as Ye,g as Ze}from"../chunks/workflows.Cse8qlOg.js";import{c as xe}from"../chunks/search-attributes.Dmice2E5.js";import{t as ye,v as et}from"../chunks/toaster.p5hsABhI.js";import{p as Qe}from"../chunks/format-time.6TuExJAg.js";import{u as Ve}from"../chunks/update-query-parameters.DTvdkkGj.js";import{w as tt}from"../chunks/workflow-create-disabled.BovVEcSd.js";const rt=async function({params:n,parent:e}){if((await e()).settings.startWorkflowDisabled){const{namespace:r}=n;Ue(302,Te({namespace:r}))}},Ot=Object.freeze(Object.defineProperty({__proto__:null,load:rt},Symbol.toStringTag,{value:"Module"}));function nt(n){let e=oe("workflows.back-to-workflows")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function at(n){let e;return{c(){e=Y("Random UUID")},l(t){e=Z(t,"Random UUID")},m(t,r){M(t,e,r)},d(t){t&&I(e)}}}function We(n){let e,t;return e=new Fe({props:{intent:n[7]>0?"success":"warning",title:n[7]?"Task Queue is Active":"Task Queue is Inactive",$$slots:{default:[ot]},$$scope:{ctx:n}}}),{c(){V(e.$$.fragment)},l(r){W(e.$$.fragment,r)},m(r,l){D(e,r,l),t=!0},p(r,l){const a={};l[0]&128&&(a.intent=r[7]>0?"success":"warning"),l[0]&128&&(a.title=r[7]?"Task Queue is Active":"Task Queue is Inactive"),l[0]&2178|l[1]&32&&(a.$$scope={dirty:l,ctx:r}),e.$set(a)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function st(n){let e;return{c(){e=Y("View Task Queue")},l(t){e=Z(t,"View Task Queue")},m(t,r){M(t,e,r)},d(t){t&&I(e)}}}function ot(n){let e,t,r,l,a=Qe("Worker",n[7])+"",u,p,f,g;return f=new Re({props:{href:Pe({namespace:n[11],queue:n[1]}),newTab:!0,$$slots:{default:[st]},$$scope:{ctx:n}}}),{c(){e=z("div"),t=z("p"),r=Y(n[7]),l=y(),u=Y(a),p=y(),V(f.$$.fragment),this.h()},l(c){e=B(c,"DIV",{class:!0});var b=L(e);t=B(b,"P",{});var T=L(t);r=Z(T,n[7]),l=Q(T),u=Z(T,a),T.forEach(I),p=Q(b),W(f.$$.fragment,b),b.forEach(I),this.h()},h(){N(e,"class","flex w-full items-center justify-between")},m(c,b){M(c,e,b),$(e,t),$(t,r),$(t,l),$(t,u),$(e,p),D(f,e,null),g=!0},p(c,b){(!g||b[0]&128)&&Se(r,c[7]),(!g||b[0]&128)&&a!==(a=Qe("Worker",c[7])+"")&&Se(u,a);const T={};b[0]&2050&&(T.href=Pe({namespace:c[11],queue:c[1]})),b[1]&32&&(T.$$scope={dirty:b,ctx:c}),f.$set(T)},i(c){g||(m(f.$$.fragment,c),g=!0)},o(c){h(f.$$.fragment,c),g=!1},d(c){c&&I(e),E(f)}}}function De(n){let e,t,r,l;function a(f){n[25](f)}function u(f){n[26](f)}let p={};return n[3]!==void 0&&(p.input=n[3]),n[4]!==void 0&&(p.encoding=n[4]),e=new Me({props:p}),ne.push(()=>se(e,"input",a)),ne.push(()=>se(e,"encoding",u)),{c(){V(e.$$.fragment)},l(f){W(e.$$.fragment,f)},m(f,g){D(e,f,g),l=!0},p(f,g){const c={};!t&&g[0]&8&&(t=!0,c.input=f[3],ae(()=>t=!1)),!r&&g[0]&16&&(r=!0,c.encoding=f[4],ae(()=>r=!1)),e.$set(c)},i(f){l||(m(e.$$.fragment,f),l=!0)},o(f){h(e.$$.fragment,f),l=!1},d(f){E(e,f)}}}function Ee(n){let e,t,r;function l(u){n[27](u)}let a={};return n[9]!==void 0&&(a.attributesToAdd=n[9]),e=new Ke({props:a}),ne.push(()=>se(e,"attributesToAdd",l)),{c(){V(e.$$.fragment)},l(u){W(e.$$.fragment,u)},m(u,p){D(e,u,p),r=!0},p(u,p){const f={};!t&&p[0]&512&&(t=!0,f.attributesToAdd=u[9],ae(()=>t=!1)),e.$set(f)},i(u){r||(m(e.$$.fragment,u),r=!0)},o(u){h(e.$$.fragment,u),r=!1},d(u){E(e,u)}}}function lt(n){let e=oe("common.more-options")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function ut(n){let e=oe("workflows.start-workflow")+"",t;return{c(){t=Y(e)},l(r){t=Z(r,e)},m(r,l){M(r,t,l)},p:fe,d(r){r&&I(t)}}}function je(n){let e,t;return e=new Fe({props:{intent:"error",title:n[6]}}),{c(){V(e.$$.fragment)},l(r){W(e.$$.fragment,r)},m(r,l){D(e,r,l),t=!0},p(r,l){const a={};l[0]&64&&(a.title=r[6]),e.$set(a)},i(r){t||(m(e.$$.fragment,r),t=!0)},o(r){h(e.$$.fragment,r),t=!1},d(r){E(e,r)}}}function it(n){let e,t,r,l,a,u,p="Start a Workflow",f,g,c,b,T,k,C,j,v,R,x,H,A,K,ee,G=n[5],O,te,F,q,le,P,ue,re;r=new Re({props:{href:`${Te({namespace:n[11]})}?${n[12]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[nt]},$$scope:{ctx:n}}});function we(o){n[19](o)}let ce={id:"workflowId",required:!0,label:"Workflow ID",class:"w-full grow"};n[0]!==void 0&&(ce.value=n[0]),c=new Ie({props:ce}),ne.push(()=>se(c,"value",we)),c.$on("blur",n[20]),k=new ve({props:{class:"mt-0 md:mt-6",variant:"secondary",leadingIcon:"retry",$$slots:{default:[at]},$$scope:{ctx:n}}}),k.$on("click",n[14]);function $e(o){n[21](o)}let pe={id:"taskQueue",required:!0,label:"Task Queue",class:"grow"};n[1]!==void 0&&(pe.value=n[1]),v=new Ie({props:pe}),ne.push(()=>se(v,"value",$e)),v.$on("blur",n[22]);let _=n[7]!==void 0&&We(n);function he(o){n[23](o)}let me={id:"workflowType",required:!0,label:"Workflow Type"};n[2]!==void 0&&(me.value=n[2]),A=new Ie({props:me}),ne.push(()=>se(A,"value",he)),A.$on("blur",n[24]);let S=De(n),w=n[8]&&Ee(n);q=new ve({props:{variant:"ghost",trailingIcon:n[8]?"chevron-up":"chevron-down",$$slots:{default:[lt]},$$scope:{ctx:n}}}),q.$on("click",n[28]),P=new ve({props:{disabled:!n[10],"data-testid":"start-workflow-button",$$slots:{default:[ut]},$$scope:{ctx:n}}}),P.$on("click",n[13]);let s=n[6]&&je(n);return{c(){e=z("div"),t=z("div"),V(r.$$.fragment),l=y(),a=z("div"),u=z("h1"),u.textContent=p,f=y(),g=z("div"),V(c.$$.fragment),T=y(),V(k.$$.fragment),C=y(),j=z("div"),V(v.$$.fragment),x=y(),_&&_.c(),H=y(),V(A.$$.fragment),ee=y(),S.c(),O=y(),w&&w.c(),te=y(),F=z("div"),V(q.$$.fragment),le=y(),V(P.$$.fragment),ue=y(),s&&s.c(),this.h()},l(o){e=B(o,"DIV",{class:!0});var i=L(e);t=B(i,"DIV",{class:!0});var J=L(t);W(r.$$.fragment,J),J.forEach(I),l=Q(i),a=B(i,"DIV",{class:!0});var d=L(a);u=B(d,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),ze(u)!=="svelte-8dv4qj"&&(u.textContent=p),f=Q(d),g=B(d,"DIV",{class:!0});var U=L(g);W(c.$$.fragment,U),T=Q(U),W(k.$$.fragment,U),U.forEach(I),C=Q(d),j=B(d,"DIV",{class:!0});var ie=L(j);W(v.$$.fragment,ie),ie.forEach(I),x=Q(d),_&&_.l(d),H=Q(d),W(A.$$.fragment,d),ee=Q(d),S.l(d),O=Q(d),w&&w.l(d),te=Q(d),F=B(d,"DIV",{class:!0});var X=L(F);W(q.$$.fragment,X),le=Q(X),W(P.$$.fragment,X),X.forEach(I),ue=Q(d),s&&s.l(d),d.forEach(I),i.forEach(I),this.h()},h(){N(t,"class","mb-6 flex w-full items-start"),N(u,"class","mb-4 overflow-hidden"),N(u,"data-testid","start-workflow"),N(g,"class","flex w-full flex-col items-center justify-between gap-2 md:flex-row md:gap-4"),N(j,"class","flex w-full items-center justify-between gap-4"),N(F,"class","mt-4 flex w-full justify-between"),N(a,"class","flex w-full flex-col gap-4 lg:w-2/3 2xl:w-1/2"),N(e,"class","flex w-full flex-col items-center pb-24")},m(o,i){M(o,e,i),$(e,t),D(r,t,null),$(e,l),$(e,a),$(a,u),$(a,f),$(a,g),D(c,g,null),$(g,T),D(k,g,null),$(a,C),$(a,j),D(v,j,null),$(a,x),_&&_.m(a,null),$(a,H),D(A,a,null),$(a,ee),S.m(a,null),$(a,O),w&&w.m(a,null),$(a,te),$(a,F),D(q,F,null),$(F,le),D(P,F,null),$(a,ue),s&&s.m(a,null),re=!0},p(o,i){const J={};i[0]&6144&&(J.href=`${Te({namespace:o[11]})}?${o[12]}`),i[1]&32&&(J.$$scope={dirty:i,ctx:o}),r.$set(J);const d={};!b&&i[0]&1&&(b=!0,d.value=o[0],ae(()=>b=!1)),c.$set(d);const U={};i[1]&32&&(U.$$scope={dirty:i,ctx:o}),k.$set(U);const ie={};!R&&i[0]&2&&(R=!0,ie.value=o[1],ae(()=>R=!1)),v.$set(ie),o[7]!==void 0?_?(_.p(o,i),i[0]&128&&m(_,1)):(_=We(o),_.c(),m(_,1),_.m(a,H)):_&&(de(),h(_,1,1,()=>{_=null}),ge());const X={};!K&&i[0]&4&&(K=!0,X.value=o[2],ae(()=>K=!1)),A.$set(X),i[0]&32&&Ae(G,G=o[5])?(de(),h(S,1,1,fe),ge(),S=De(o),S.c(),m(S,1),S.m(a,O)):S.p(o,i),o[8]?w?(w.p(o,i),i[0]&256&&m(w,1)):(w=Ee(o),w.c(),m(w,1),w.m(a,te)):w&&(de(),h(w,1,1,()=>{w=null}),ge());const be={};i[0]&256&&(be.trailingIcon=o[8]?"chevron-up":"chevron-down"),i[1]&32&&(be.$$scope={dirty:i,ctx:o}),q.$set(be);const ke={};i[0]&1024&&(ke.disabled=!o[10]),i[1]&32&&(ke.$$scope={dirty:i,ctx:o}),P.$set(ke),o[6]?s?(s.p(o,i),i[0]&64&&m(s,1)):(s=je(o),s.c(),m(s,1),s.m(a,null)):s&&(de(),h(s,1,1,()=>{s=null}),ge())},i(o){re||(m(r.$$.fragment,o),m(c.$$.fragment,o),m(k.$$.fragment,o),m(v.$$.fragment,o),m(_),m(A.$$.fragment,o),m(S),m(w),m(q.$$.fragment,o),m(P.$$.fragment,o),m(s),re=!0)},o(o){h(r.$$.fragment,o),h(c.$$.fragment,o),h(k.$$.fragment,o),h(v.$$.fragment,o),h(_),h(A.$$.fragment,o),h(S),h(w),h(q.$$.fragment,o),h(P.$$.fragment,o),h(s),re=!1},d(o){o&&I(e),E(r),E(c),E(k),E(v),_&&_.d(),E(A),S.d(o),w&&w.d(),E(q),E(P),s&&s.d()}}}function ft(n,e,t){let r,l,a,u,p,f,g,c=fe,b=()=>(c(),c=He(R,s=>t(32,g=s)),R),T;_e(n,Ce,s=>t(18,p=s)),_e(n,xe,s=>t(31,f=s)),_e(n,Xe,s=>t(12,T=s)),n.$$.on_destroy.push(()=>c());let k="",C="",j="",v="",R=Le("json/plain");b();let x=0,H="",A="",K="",ee,G=!1,O=[];Be(()=>{t(0,k=p.url.searchParams.get("workflowId")||""),t(1,C=p.url.searchParams.get("taskQueue")||""),t(2,j=p.url.searchParams.get("workflowType")||""),H=p.url.searchParams.get("workflowId")||"",A=p.url.searchParams.get("workflowType")||"",(H||A)&&le(H,A)});const te=async()=>{try{t(6,K="");const{runId:s}=await Ze({namespace:r,workflowId:k,taskQueue:C,workflowType:j,input:v,encoding:g,searchAttributes:O});ye.push({variant:"success",duration:5e3,message:oe("workflows.start-workflow-success"),link:Ne({namespace:r,workflow:k,run:s})})}catch(s){t(6,K=(s==null?void 0:s.message)||oe("workflows.start-workflow-error")),ye.push({variant:"error",message:oe("workflows.start-workflow-error")})}},F=()=>{t(0,k=et()),Ve({parameter:"workflowId",value:k,url:p.url,allowEmpty:!0})},q=async s=>{if(s){const{pollers:o}=await Ge({namespace:r,queue:s});t(7,ee=o.length)}},le=async(s,o)=>{const i=await Ye({namespace:r,workflowId:s,workflowType:o});if(t(3,v=i.input),t(5,x=Date.now()),i!=null&&i.searchAttributes){const J=Object.keys(f);Object.entries(i.searchAttributes).forEach(([d,U])=>{J.includes(d)&&t(9,O=[...O,{attribute:d,value:String(U)}])}),t(8,G=!0)}},P=(s,o)=>{const i=s.target.value;Ve({parameter:o,value:i,url:p.url,allowEmpty:!0})},ue=s=>{try{return JSON.parse(s),!0}catch{return!1}};function re(s){k=s,t(0,k)}const we=s=>P(s,"workflowId");function ce(s){C=s,t(1,C)}const $e=s=>P(s,"taskQueue");function pe(s){j=s,t(2,j)}const _=s=>P(s,"workflowType");function he(s){v=s,t(3,v)}function me(s){R=s,b(t(4,R))}function S(s){O=s,t(9,O)}const w=()=>t(8,G=!G);return n.$$.update=()=>{n.$$.dirty[0]&262144&&t(11,{namespace:r}=p.params,r),n.$$.dirty[0]&262144&&t(16,l=p.url.searchParams.get("taskQueue")),n.$$.dirty[0]&8&&t(17,a=!v||ue(v)),n.$$.dirty[0]&393223&&t(10,u=!!k&&!!C&&!!j&&!!a&&!tt(p)),n.$$.dirty[0]&65536&&q(l)},[k,C,j,v,R,x,K,ee,G,O,u,r,T,te,F,P,l,a,p,re,we,ce,$e,pe,_,he,me,S,w]}class ct extends Oe{constructor(e){super(),qe(this,e,ft,it,Ae,{},null,[-1,-1])}}function pt(n){let e,t,r,l;return e=new Je({props:{title:"Start Workflow",url:n[0].url.href}}),r=new ct({}),{c(){V(e.$$.fragment),t=y(),V(r.$$.fragment)},l(a){W(e.$$.fragment,a),t=Q(a),W(r.$$.fragment,a)},m(a,u){D(e,a,u),M(a,t,u),D(r,a,u),l=!0},p(a,[u]){const p={};u&1&&(p.url=a[0].url.href),e.$set(p)},i(a){l||(m(e.$$.fragment,a),m(r.$$.fragment,a),l=!0)},o(a){h(e.$$.fragment,a),h(r.$$.fragment,a),l=!1},d(a){a&&I(t),E(e,a),E(r,a)}}}function mt(n,e,t){let r;return _e(n,Ce,l=>t(0,r=l)),[r]}class qt extends Oe{constructor(e){super(),qe(this,e,mt,pt,Ae,{})}}export{qt as component,Ot as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/46.DUQthmfu.js b/ui/assets/local/_app/immutable/nodes/46.DgUopdD6.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/46.DUQthmfu.js rename to ui/assets/local/_app/immutable/nodes/46.DgUopdD6.js index 9ebc71e1c..b1c75ce73 100644 --- a/ui/assets/local/_app/immutable/nodes/46.DUQthmfu.js +++ b/ui/assets/local/_app/immutable/nodes/46.DgUopdD6.js @@ -1,4 +1,4 @@ -import{a as we}from"../chunks/nexus-service.BPsrr5_T.js";import{s as se,h as v,t as V,b as N,j as b,k as C,l as R,f as m,d as I,o as le,m as k,U as xe,H as ce,i as E,n as h,c as Y,v as ee,x as fe,N as ye,O as Ee,y as Ce,q as K}from"../chunks/scheduler.C46pS-76.js";import{S as re,i as ne,c as H,a as S,m as A,t as w,b as y,d as U,g as te,e as ae,f as De}from"../chunks/index.dOVbn71B.js";import{P as Pe}from"../chunks/page-title.DNhqE1Lj.js";import{t as F}from"../chunks/translate.BBe5dcco.js";import{e as ue}from"../chunks/each.C6O0oV7R.js";import{d as Ne}from"../chunks/index.i9NI_-YN.js";import{p as Ie}from"../chunks/stores.Dz-RNcUk.js";import{B as ve}from"../chunks/badge.jG5hkqHT.js";import{B as be}from"../chunks/button.BpRIS9ld.js";import{E as Te}from"../chunks/empty-state.BO9uOKUe.js";import{I as Ve}from"../chunks/input.CTzUOpgs.js";import{L as Re}from"../chunks/link.BJceiGbc.js";import{u as je}from"../chunks/dark-mode.DlqJSTFW.js";import{p as ke,j as pe}from"../chunks/route-for.BjP6gGR7.js";import{t as Le,f as Z}from"../chunks/time-format.D2wF3ave.js";import{p as de}from"../chunks/format-time.6TuExJAg.js";import{u as Me}from"../chunks/update-query-parameters.DVJ0yHKX.js";import{r as He}from"../chunks/entry.DLEzeuD9.js";const Se=async({fetch:o,url:e})=>{const a=e.searchParams.get("search")||"";return{endpoints:await we(a,o)}},Et=Object.freeze(Object.defineProperty({__proto__:null,load:Se},Symbol.toStringTag,{value:"Module"})),Ae=""+new URL("../assets/andromeda.DWHCRWfo.png",import.meta.url).href;function Ue(o){let e;return{c(){e=V("Pre-Release")},l(a){e=R(a,"Pre-Release")},m(a,t){E(a,e,t)},d(a){a&&m(e)}}}function qe(o){let e=F("nexus.create-endpoint")+"",a;return{c(){a=V(e)},l(t){a=R(t,e)},m(t,l){E(t,a,l)},p:ee,d(t){t&&m(a)}}}function Be(o){let e,a,t,l,s,r=F("nexus.endpoints")+"",f,n,u,c,i,_,x="Get Started",p,g,L=`Nexus RPC is a modern open-source service framework for +import{a as we}from"../chunks/nexus-service.CnR3KXfY.js";import{s as se,h as v,t as V,b as N,j as b,k as C,l as R,f as m,d as I,o as le,m as k,U as xe,H as ce,i as E,n as h,c as Y,v as ee,x as fe,N as ye,O as Ee,y as Ce,q as K}from"../chunks/scheduler.C46pS-76.js";import{S as re,i as ne,c as H,a as S,m as A,t as w,b as y,d as U,g as te,e as ae,f as De}from"../chunks/index.dOVbn71B.js";import{P as Pe}from"../chunks/page-title.DNhqE1Lj.js";import{t as F}from"../chunks/translate.BBe5dcco.js";import{e as ue}from"../chunks/each.C6O0oV7R.js";import{d as Ne}from"../chunks/index.i9NI_-YN.js";import{p as Ie}from"../chunks/stores.Ds4o9nwd.js";import{B as ve}from"../chunks/badge.jG5hkqHT.js";import{B as be}from"../chunks/button.hs88FdV4.js";import{E as Te}from"../chunks/empty-state.BO9uOKUe.js";import{I as Ve}from"../chunks/input.Dizl7Mgk.js";import{L as Re}from"../chunks/link.C_v4aoat.js";import{u as je}from"../chunks/dark-mode.BvUzLjRz.js";import{p as ke,j as pe}from"../chunks/route-for.B9fTWV7L.js";import{t as Le,f as Z}from"../chunks/time-format.BLKgLEx9.js";import{p as de}from"../chunks/format-time.6TuExJAg.js";import{u as Me}from"../chunks/update-query-parameters.DTvdkkGj.js";import{r as He}from"../chunks/entry.kylZibtV.js";const Se=async({fetch:o,url:e})=>{const a=e.searchParams.get("search")||"";return{endpoints:await we(a,o)}},Et=Object.freeze(Object.defineProperty({__proto__:null,load:Se},Symbol.toStringTag,{value:"Module"})),Ae=""+new URL("../assets/andromeda.DWHCRWfo.png",import.meta.url).href;function Ue(o){let e;return{c(){e=V("Pre-Release")},l(a){e=R(a,"Pre-Release")},m(a,t){E(a,e,t)},d(a){a&&m(e)}}}function qe(o){let e=F("nexus.create-endpoint")+"",a;return{c(){a=V(e)},l(t){a=R(t,e)},m(t,l){E(t,a,l)},p:ee,d(t){t&&m(a)}}}function Be(o){let e,a,t,l,s,r=F("nexus.endpoints")+"",f,n,u,c,i,_,x="Get Started",p,g,L=`Nexus RPC is a modern open-source service framework for arbitrary-length operations whose lifetime may extend beyond a traditional RPC. Nexus was designed with Durable Execution in mind, as an underpinning to connect durable executions within and across diff --git a/ui/assets/local/_app/immutable/nodes/47.DdQhpBWt.js b/ui/assets/local/_app/immutable/nodes/47.heQt60Vb.js similarity index 96% rename from ui/assets/local/_app/immutable/nodes/47.DdQhpBWt.js rename to ui/assets/local/_app/immutable/nodes/47.heQt60Vb.js index 4c96b10f2..2bd7e8579 100644 --- a/ui/assets/local/_app/immutable/nodes/47.DdQhpBWt.js +++ b/ui/assets/local/_app/immutable/nodes/47.heQt60Vb.js @@ -1 +1 @@ -import{s as Pe,h as _,b,t as L,j as g,k,f as m,d as C,l as M,o as ae,m as v,i as E,n as c,q as se,v as Se,y as qe,c as Ae}from"../chunks/scheduler.C46pS-76.js";import{S as Qe,i as Te,c as A,a as B,m as F,t as w,g as Ue,b as x,e as je,d as H}from"../chunks/index.dOVbn71B.js";import{p as Be}from"../chunks/stores.Dz-RNcUk.js";import{P as Fe}from"../chunks/page-title.DNhqE1Lj.js";import{t as ee}from"../chunks/translate.BBe5dcco.js";import{e as De}from"../chunks/each.C6O0oV7R.js";import{B as He}from"../chunks/button.BpRIS9ld.js";import{C as Le}from"../chunks/index.Bde7eNxE.js";import{L as he}from"../chunks/link.BJceiGbc.js";import{M as Me}from"../chunks/markdown.CpYkuk44.js";import{h as ze,i as Ee,a as fe}from"../chunks/route-for.BjP6gGR7.js";function Ie(l,e,a){const t=l.slice();return t[2]=e[a],t}function Ge(l){let e=ee("nexus.back-to-endpoints")+"",a;return{c(){a=L(e)},l(t){a=M(t,e)},m(t,s){E(t,a,s)},p:Se,d(t){t&&m(a)}}}function Je(l){let e=ee("common.edit")+"",a;return{c(){a=L(e)},l(t){a=M(t,e)},m(t,s){E(t,a,s)},p:Se,d(t){t&&m(a)}}}function Ke(l){let e,a=l[0].spec.target.worker.namespace+"",t;return{c(){e=_("i"),t=L(a)},l(s){e=g(s,"I",{});var n=k(e);t=M(n,a),n.forEach(m)},m(s,n){E(s,e,n),c(e,t)},p(s,n){n&1&&a!==(a=s[0].spec.target.worker.namespace+"")&&se(t,a)},d(s){s&&m(e)}}}function Oe(l){let e,a=l[0].spec.target.worker.taskQueue+"",t;return{c(){e=_("i"),t=L(a)},l(s){e=g(s,"I",{});var n=k(e);t=M(n,a),n.forEach(m)},m(s,n){E(s,e,n),c(e,t)},p(s,n){n&1&&a!==(a=s[0].spec.target.worker.taskQueue+"")&&se(t,a)},d(s){s&&m(e)}}}function Ne(l){var z;let e,a="Allowed Caller Namespaces",t,s,n,p=De((z=l[0].spec)==null?void 0:z.allowedCallerNamespaces),r=[];for(let i=0;ix(r[i],1,1,()=>{r[i]=null});return{c(){e=_("h2"),e.textContent=a,t=b(),s=_("div");for(let i=0;i{$=null}),je())},i(o){Y||(w(t.$$.fragment,o),w(u.$$.fragment,o),w(S.$$.fragment,o),w(T.$$.fragment,o),w(j.$$.fragment,o),w($),Y=!0)},o(o){x(t.$$.fragment,o),x(u.$$.fragment,o),x(S.$$.fragment,o),x(T.$$.fragment,o),x(j.$$.fragment,o),x($),Y=!1},d(o){o&&m(e),H(t),H(u),H(S),H(T),H(j),$&&$.d()}}}function Xe(l,e,a){let{endpoint:t}=e,{editDisabled:s=!1}=e;return l.$$set=n=>{"endpoint"in n&&a(0,t=n.endpoint),"editDisabled"in n&&a(1,s=n.editDisabled)},[t,s]}class Ye extends Qe{constructor(e){super(),Te(this,e,Xe,We,Pe,{endpoint:0,editDisabled:1})}}function Ze(l){let e,a,t,s;return e=new Fe({props:{title:ee("nexus.nexus-endpoint",{id:l[1].params.id}),url:l[1].url.href}}),t=new Ye({props:{endpoint:l[0]}}),{c(){A(e.$$.fragment),a=b(),A(t.$$.fragment)},l(n){B(e.$$.fragment,n),a=C(n),B(t.$$.fragment,n)},m(n,p){F(e,n,p),E(n,a,p),F(t,n,p),s=!0},p(n,[p]){const r={};p&2&&(r.title=ee("nexus.nexus-endpoint",{id:n[1].params.id})),p&2&&(r.url=n[1].url.href),e.$set(r);const D={};p&1&&(D.endpoint=n[0]),t.$set(D)},i(n){s||(w(e.$$.fragment,n),w(t.$$.fragment,n),s=!0)},o(n){x(e.$$.fragment,n),x(t.$$.fragment,n),s=!1},d(n){n&&m(a),H(e,n),H(t,n)}}}function ye(l,e,a){let t,s;Ae(l,Be,p=>a(1,s=p));let{data:n}=e;return l.$$set=p=>{"data"in p&&a(2,n=p.data)},l.$$.update=()=>{l.$$.dirty&4&&a(0,{endpoint:t}=n,t)},[t,s,n]}class pt extends Qe{constructor(e){super(),Te(this,e,ye,Ze,Pe,{data:2})}}export{pt as component}; +import{s as Pe,h as _,b,t as L,j as g,k,f as m,d as C,l as M,o as ae,m as v,i as E,n as c,q as se,v as Se,y as qe,c as Ae}from"../chunks/scheduler.C46pS-76.js";import{S as Qe,i as Te,c as A,a as B,m as F,t as w,g as Ue,b as x,e as je,d as H}from"../chunks/index.dOVbn71B.js";import{p as Be}from"../chunks/stores.Ds4o9nwd.js";import{P as Fe}from"../chunks/page-title.DNhqE1Lj.js";import{t as ee}from"../chunks/translate.BBe5dcco.js";import{e as De}from"../chunks/each.C6O0oV7R.js";import{B as He}from"../chunks/button.hs88FdV4.js";import{C as Le}from"../chunks/index.Nss_n040.js";import{L as he}from"../chunks/link.C_v4aoat.js";import{M as Me}from"../chunks/markdown.BEeC1bWs.js";import{h as ze,i as Ee,a as fe}from"../chunks/route-for.B9fTWV7L.js";function Ie(l,e,a){const t=l.slice();return t[2]=e[a],t}function Ge(l){let e=ee("nexus.back-to-endpoints")+"",a;return{c(){a=L(e)},l(t){a=M(t,e)},m(t,s){E(t,a,s)},p:Se,d(t){t&&m(a)}}}function Je(l){let e=ee("common.edit")+"",a;return{c(){a=L(e)},l(t){a=M(t,e)},m(t,s){E(t,a,s)},p:Se,d(t){t&&m(a)}}}function Ke(l){let e,a=l[0].spec.target.worker.namespace+"",t;return{c(){e=_("i"),t=L(a)},l(s){e=g(s,"I",{});var n=k(e);t=M(n,a),n.forEach(m)},m(s,n){E(s,e,n),c(e,t)},p(s,n){n&1&&a!==(a=s[0].spec.target.worker.namespace+"")&&se(t,a)},d(s){s&&m(e)}}}function Oe(l){let e,a=l[0].spec.target.worker.taskQueue+"",t;return{c(){e=_("i"),t=L(a)},l(s){e=g(s,"I",{});var n=k(e);t=M(n,a),n.forEach(m)},m(s,n){E(s,e,n),c(e,t)},p(s,n){n&1&&a!==(a=s[0].spec.target.worker.taskQueue+"")&&se(t,a)},d(s){s&&m(e)}}}function Ne(l){var z;let e,a="Allowed Caller Namespaces",t,s,n,p=De((z=l[0].spec)==null?void 0:z.allowedCallerNamespaces),r=[];for(let i=0;ix(r[i],1,1,()=>{r[i]=null});return{c(){e=_("h2"),e.textContent=a,t=b(),s=_("div");for(let i=0;i{$=null}),je())},i(o){Y||(w(t.$$.fragment,o),w(u.$$.fragment,o),w(S.$$.fragment,o),w(T.$$.fragment,o),w(j.$$.fragment,o),w($),Y=!0)},o(o){x(t.$$.fragment,o),x(u.$$.fragment,o),x(S.$$.fragment,o),x(T.$$.fragment,o),x(j.$$.fragment,o),x($),Y=!1},d(o){o&&m(e),H(t),H(u),H(S),H(T),H(j),$&&$.d()}}}function Xe(l,e,a){let{endpoint:t}=e,{editDisabled:s=!1}=e;return l.$$set=n=>{"endpoint"in n&&a(0,t=n.endpoint),"editDisabled"in n&&a(1,s=n.editDisabled)},[t,s]}class Ye extends Qe{constructor(e){super(),Te(this,e,Xe,We,Pe,{endpoint:0,editDisabled:1})}}function Ze(l){let e,a,t,s;return e=new Fe({props:{title:ee("nexus.nexus-endpoint",{id:l[1].params.id}),url:l[1].url.href}}),t=new Ye({props:{endpoint:l[0]}}),{c(){A(e.$$.fragment),a=b(),A(t.$$.fragment)},l(n){B(e.$$.fragment,n),a=C(n),B(t.$$.fragment,n)},m(n,p){F(e,n,p),E(n,a,p),F(t,n,p),s=!0},p(n,[p]){const r={};p&2&&(r.title=ee("nexus.nexus-endpoint",{id:n[1].params.id})),p&2&&(r.url=n[1].url.href),e.$set(r);const D={};p&1&&(D.endpoint=n[0]),t.$set(D)},i(n){s||(w(e.$$.fragment,n),w(t.$$.fragment,n),s=!0)},o(n){x(e.$$.fragment,n),x(t.$$.fragment,n),s=!1},d(n){n&&m(a),H(e,n),H(t,n)}}}function ye(l,e,a){let t,s;Ae(l,Be,p=>a(1,s=p));let{data:n}=e;return l.$$set=p=>{"data"in p&&a(2,n=p.data)},l.$$.update=()=>{l.$$.dirty&4&&a(0,{endpoint:t}=n,t)},[t,s,n]}class pt extends Qe{constructor(e){super(),Te(this,e,ye,Ze,Pe,{data:2})}}export{pt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/48.BSUzc4rz.js b/ui/assets/local/_app/immutable/nodes/48.nRDxtd1K.js similarity index 94% rename from ui/assets/local/_app/immutable/nodes/48.BSUzc4rz.js rename to ui/assets/local/_app/immutable/nodes/48.nRDxtd1K.js index 410647718..07d301a10 100644 --- a/ui/assets/local/_app/immutable/nodes/48.BSUzc4rz.js +++ b/ui/assets/local/_app/immutable/nodes/48.nRDxtd1K.js @@ -1,3 +1,3 @@ -import{s as ie,Y as oe,N as fe,h as R,b as S,t as T,j as V,k as M,f as d,d as U,l as C,m as j,i as Y,n as u,q as le,O as me,c as ae,v as x}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,f as de,c as z,a as Z,m as q,t as B,b as G,d as J}from"../chunks/index.dOVbn71B.js";import{g as re}from"../chunks/entry.DLEzeuD9.js";import{p as pe}from"../chunks/stores.Dz-RNcUk.js";import{P as ge}from"../chunks/page-title.DNhqE1Lj.js";import{t as D}from"../chunks/translate.BBe5dcco.js";import{B as ne}from"../chunks/button.BpRIS9ld.js";import{I as _e}from"../chunks/input.CTzUOpgs.js";import{L as he}from"../chunks/link.BJceiGbc.js";import{M as ve}from"../chunks/modal.DyMhWY1J.js";import{N as be,e as Ne}from"../chunks/nexus-form.BNYVknO-.js";import{j as se,h as $e}from"../chunks/route-for.BjP6gGR7.js";import{u as Ee,d as De}from"../chunks/nexus-service.BPsrr5_T.js";import{n as Le}from"../chunks/namespaces.619_s9Tr.js";import{e as we}from"../chunks/encode-payload.BbGvULr4.js";function ke(e){let n=D("nexus.back-to-endpoint")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Pe(e){let n=D("nexus.delete-endpoint")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Ie(e){let n=D("common.save")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Te(e){let n=D("common.save")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Ce(e){let n=D("common.cancel")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function He(e){let n,t=D("nexus.delete-modal-title")+"",a;return{c(){n=R("h3"),a=T(t),this.h()},l(i){n=V(i,"H3",{slot:!0});var o=M(n);a=C(o,t),o.forEach(d),this.h()},h(){j(n,"slot","title")},m(i,o){Y(i,n,o),u(n,a)},p:x,d(i){i&&d(n)}}}function Re(e){let n,t,a=D("nexus.delete-modal-confirmation-preface")+"",i,o,m,p=e[0].spec.name+"",c,b,L=D("nexus.delete-modal-confirmation-postface")+"",N,h,r,g=D("nexus.type-confirm-preface")+"",P,I,O,$=e[0].spec.name+"",E,K,l=D("nexus.type-confirm-postface")+"",W,w,H,Q,X;function te(s){e[15](s)}let f={id:"delete-endpoint",labelHidden:!0,label:D("nexus.delete-endpoint")};return e[11]!==void 0&&(f.value=e[11]),H=new _e({props:f}),fe.push(()=>de(H,"value",te)),{c(){n=R("div"),t=R("p"),i=T(a),o=S(),m=R("strong"),c=T(p),b=T(`? +import{s as ie,Y as oe,N as fe,h as R,b as S,t as T,j as V,k as M,f as d,d as U,l as C,m as j,i as Y,n as u,q as le,O as me,c as ae,v as x}from"../chunks/scheduler.C46pS-76.js";import{S as ue,i as ce,f as de,c as z,a as Z,m as q,t as B,b as G,d as J}from"../chunks/index.dOVbn71B.js";import{g as re}from"../chunks/entry.kylZibtV.js";import{p as pe}from"../chunks/stores.Ds4o9nwd.js";import{P as ge}from"../chunks/page-title.DNhqE1Lj.js";import{t as D}from"../chunks/translate.BBe5dcco.js";import{B as ne}from"../chunks/button.hs88FdV4.js";import{I as _e}from"../chunks/input.Dizl7Mgk.js";import{L as he}from"../chunks/link.C_v4aoat.js";import{M as ve}from"../chunks/modal.BxyQo5_L.js";import{N as be,e as Ne}from"../chunks/nexus-form.sJTgAfD6.js";import{j as se,h as $e}from"../chunks/route-for.B9fTWV7L.js";import{u as Ee,d as De}from"../chunks/nexus-service.CnR3KXfY.js";import{n as Le}from"../chunks/namespaces.DEm0M_ie.js";import{e as we}from"../chunks/encode-payload.DnXS3ERP.js";function ke(e){let n=D("nexus.back-to-endpoint")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Pe(e){let n=D("nexus.delete-endpoint")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Ie(e){let n=D("common.save")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Te(e){let n=D("common.save")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function Ce(e){let n=D("common.cancel")+"",t;return{c(){t=T(n)},l(a){t=C(a,n)},m(a,i){Y(a,t,i)},p:x,d(a){a&&d(t)}}}function He(e){let n,t=D("nexus.delete-modal-title")+"",a;return{c(){n=R("h3"),a=T(t),this.h()},l(i){n=V(i,"H3",{slot:!0});var o=M(n);a=C(o,t),o.forEach(d),this.h()},h(){j(n,"slot","title")},m(i,o){Y(i,n,o),u(n,a)},p:x,d(i){i&&d(n)}}}function Re(e){let n,t,a=D("nexus.delete-modal-confirmation-preface")+"",i,o,m,p=e[0].spec.name+"",c,b,L=D("nexus.delete-modal-confirmation-postface")+"",N,h,r,g=D("nexus.type-confirm-preface")+"",P,I,O,$=e[0].spec.name+"",E,K,l=D("nexus.type-confirm-postface")+"",W,w,H,Q,X;function te(s){e[15](s)}let f={id:"delete-endpoint",labelHidden:!0,label:D("nexus.delete-endpoint")};return e[11]!==void 0&&(f.value=e[11]),H=new _e({props:f}),fe.push(()=>de(H,"value",te)),{c(){n=R("div"),t=R("p"),i=T(a),o=S(),m=R("strong"),c=T(p),b=T(`? `),N=T(L),h=S(),r=R("p"),P=T(g),I=S(),O=R("strong"),E=T($),K=S(),W=T(l),w=S(),z(H.$$.fragment),this.h()},l(s){n=V(s,"DIV",{slot:!0,class:!0});var _=M(n);t=V(_,"P",{});var k=M(t);i=C(k,a),o=U(k),m=V(k,"STRONG",{class:!0});var A=M(m);c=C(A,p),A.forEach(d),b=C(k,`? `),N=C(k,L),k.forEach(d),h=U(_),r=V(_,"P",{});var v=M(r);P=C(v,g),I=U(v),O=V(v,"STRONG",{class:!0});var F=M(O);E=C(F,$),F.forEach(d),K=U(v),W=C(v,l),v.forEach(d),w=U(_),Z(H.$$.fragment,_),_.forEach(d),this.h()},h(){j(m,"class","select-all"),j(O,"class","select-all"),j(n,"slot","content"),j(n,"class","flex flex-col gap-4")},m(s,_){Y(s,n,_),u(n,t),u(t,i),u(t,o),u(t,m),u(m,c),u(t,b),u(t,N),u(n,h),u(n,r),u(r,P),u(r,I),u(r,O),u(O,E),u(r,K),u(r,W),u(n,w),q(H,n,null),X=!0},p(s,_){(!X||_&1)&&p!==(p=s[0].spec.name+"")&&le(c,p),(!X||_&1)&&$!==($=s[0].spec.name+"")&&le(E,$);const k={};!Q&&_&2048&&(Q=!0,k.value=s[11],me(()=>Q=!1)),H.$set(k)},i(s){X||(B(H.$$.fragment,s),X=!0)},o(s){G(H.$$.fragment,s),X=!1},d(s){s&&d(n),J(H)}}}function Se(e){let n,t,a,i,o,m,p,c=e[0].spec.name+"",b,L,N,h,r,g,P,I,O,$,E,K,l,W,w,H,Q;a=new he({props:{href:se(e[12].params.id),icon:"chevron-left",$$slots:{default:[ke]},$$scope:{ctx:e}}}),h=new ne({props:{variant:"destructive",$$slots:{default:[Pe]},$$scope:{ctx:e}}}),h.$on("click",e[13]),g=new ne({props:{loading:e[6],$$slots:{default:[Ie]},$$scope:{ctx:e}}}),g.$on("click",function(){oe(e[3])&&e[3].apply(this,arguments)}),I=new be({props:{endpoint:e[0],nameHintText:e[9],nameRegexPattern:e[8],targetNamespaceList:e[1],callerNamespaceList:e[2],error:e[5],isCloud:e[7],nameDisabled:!0}}),E=new ne({props:{loading:e[6],$$slots:{default:[Te]},$$scope:{ctx:e}}}),E.$on("click",function(){oe(e[3])&&e[3].apply(this,arguments)}),l=new ne({props:{variant:"ghost",$$slots:{default:[Ce]},$$scope:{ctx:e}}}),l.$on("click",e[14]);function X(f){e[16](f)}let te={id:"delete-endpoint-modal",loading:e[6],confirmType:"destructive",confirmText:D("common.delete"),cancelText:D("common.cancel"),confirmDisabled:e[11]!==e[0].spec.name,$$slots:{content:[Re],title:[He]},$$scope:{ctx:e}};return e[10]!==void 0&&(te.open=e[10]),w=new ve({props:te}),fe.push(()=>de(w,"open",X)),w.$on("confirmModal",function(){oe(e[4])&&e[4].apply(this,arguments)}),w.$on("cancelModal",e[17]),{c(){n=R("div"),t=R("div"),z(a.$$.fragment),i=S(),o=R("div"),m=R("div"),p=R("h1"),b=T(c),L=S(),N=R("div"),z(h.$$.fragment),r=S(),z(g.$$.fragment),P=S(),z(I.$$.fragment),O=S(),$=R("div"),z(E.$$.fragment),K=S(),z(l.$$.fragment),W=S(),z(w.$$.fragment),this.h()},l(f){n=V(f,"DIV",{class:!0});var s=M(n);t=V(s,"DIV",{class:!0});var _=M(t);Z(a.$$.fragment,_),_.forEach(d),i=U(s),o=V(s,"DIV",{class:!0});var k=M(o);m=V(k,"DIV",{class:!0});var A=M(m);p=V(A,"H1",{"data-testid":!0});var v=M(p);b=C(v,c),v.forEach(d),L=U(A),N=V(A,"DIV",{class:!0});var F=M(N);Z(h.$$.fragment,F),r=U(F),Z(g.$$.fragment,F),F.forEach(d),A.forEach(d),k.forEach(d),P=U(s),Z(I.$$.fragment,s),O=U(s),$=V(s,"DIV",{class:!0});var y=M($);Z(E.$$.fragment,y),K=U(y),Z(l.$$.fragment,y),y.forEach(d),s.forEach(d),W=U(f),Z(w.$$.fragment,f),this.h()},h(){j(t,"class","relative flex flex-col gap-4 text-sm"),j(p,"data-testid","namespace-selector-title"),j(N,"class","flex items-center gap-2"),j(m,"class","flex items-center justify-between"),j(o,"class","flex flex-col gap-1"),j($,"class","flex items-center gap-4"),j(n,"class","flex flex-col gap-8")},m(f,s){Y(f,n,s),u(n,t),q(a,t,null),u(n,i),u(n,o),u(o,m),u(m,p),u(p,b),u(m,L),u(m,N),q(h,N,null),u(N,r),q(g,N,null),u(n,P),q(I,n,null),u(n,O),u(n,$),q(E,$,null),u($,K),q(l,$,null),Y(f,W,s),q(w,f,s),Q=!0},p(f,[s]){e=f;const _={};s&4096&&(_.href=se(e[12].params.id)),s&262144&&(_.$$scope={dirty:s,ctx:e}),a.$set(_),(!Q||s&1)&&c!==(c=e[0].spec.name+"")&&le(b,c);const k={};s&262144&&(k.$$scope={dirty:s,ctx:e}),h.$set(k);const A={};s&64&&(A.loading=e[6]),s&262144&&(A.$$scope={dirty:s,ctx:e}),g.$set(A);const v={};s&1&&(v.endpoint=e[0]),s&512&&(v.nameHintText=e[9]),s&256&&(v.nameRegexPattern=e[8]),s&2&&(v.targetNamespaceList=e[1]),s&4&&(v.callerNamespaceList=e[2]),s&32&&(v.error=e[5]),s&128&&(v.isCloud=e[7]),I.$set(v);const F={};s&64&&(F.loading=e[6]),s&262144&&(F.$$scope={dirty:s,ctx:e}),E.$set(F);const y={};s&262144&&(y.$$scope={dirty:s,ctx:e}),l.$set(y);const ee={};s&64&&(ee.loading=e[6]),s&2049&&(ee.confirmDisabled=e[11]!==e[0].spec.name),s&264193&&(ee.$$scope={dirty:s,ctx:e}),!H&&s&1024&&(H=!0,ee.open=e[10],me(()=>H=!1)),w.$set(ee)},i(f){Q||(B(a.$$.fragment,f),B(h.$$.fragment,f),B(g.$$.fragment,f),B(I.$$.fragment,f),B(E.$$.fragment,f),B(l.$$.fragment,f),B(w.$$.fragment,f),Q=!0)},o(f){G(a.$$.fragment,f),G(h.$$.fragment,f),G(g.$$.fragment,f),G(I.$$.fragment,f),G(E.$$.fragment,f),G(l.$$.fragment,f),G(w.$$.fragment,f),Q=!1},d(f){f&&(d(n),d(W)),J(a),J(h),J(g),J(I),J(E),J(l),J(w,f)}}}function Ve(e,n,t){let a;ae(e,pe,l=>t(12,a=l));let{endpoint:i}=n,{targetNamespaceList:o=[]}=n,{callerNamespaceList:m=[]}=n,{onUpdate:p}=n,{onDelete:c}=n,{error:b=void 0}=n,{loading:L=!1}=n,{isCloud:N=!1}=n,{nameRegexPattern:h=/^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/}=n,{nameHintText:r=D("nexus.endpoint-name-hint-with-dash")}=n,g=!1,P="";const I=()=>t(10,g=!0),O=()=>re(se(a.params.id));function $(l){P=l,t(11,P)}function E(l){g=l,t(10,g)}const K=()=>t(10,g=!1);return e.$$set=l=>{"endpoint"in l&&t(0,i=l.endpoint),"targetNamespaceList"in l&&t(1,o=l.targetNamespaceList),"callerNamespaceList"in l&&t(2,m=l.callerNamespaceList),"onUpdate"in l&&t(3,p=l.onUpdate),"onDelete"in l&&t(4,c=l.onDelete),"error"in l&&t(5,b=l.error),"loading"in l&&t(6,L=l.loading),"isCloud"in l&&t(7,N=l.isCloud),"nameRegexPattern"in l&&t(8,h=l.nameRegexPattern),"nameHintText"in l&&t(9,r=l.nameHintText)},[i,o,m,p,c,b,L,N,h,r,g,P,a,I,O,$,E,K]}class Me extends ue{constructor(n){super(),ce(this,n,Ve,Se,ie,{endpoint:0,targetNamespaceList:1,callerNamespaceList:2,onUpdate:3,onDelete:4,error:5,loading:6,isCloud:7,nameRegexPattern:8,nameHintText:9})}}function Ue(e){let n,t,a,i;return n=new ge({props:{title:`Edit ${D("nexus.nexus-endpoint",{id:e[4].params.id})}`,url:e[4].url.href}}),a=new Me({props:{endpoint:e[3],loading:e[1],targetNamespaceList:e[2],onUpdate:e[5],onDelete:e[6],error:e[0]}}),{c(){z(n.$$.fragment),t=S(),z(a.$$.fragment)},l(o){Z(n.$$.fragment,o),t=U(o),Z(a.$$.fragment,o)},m(o,m){q(n,o,m),Y(o,t,m),q(a,o,m),i=!0},p(o,[m]){const p={};m&16&&(p.title=`Edit ${D("nexus.nexus-endpoint",{id:o[4].params.id})}`),m&16&&(p.url=o[4].url.href),n.$set(p);const c={};m&8&&(c.endpoint=o[3]),m&2&&(c.loading=o[1]),m&4&&(c.targetNamespaceList=o[2]),m&1&&(c.error=o[0]),a.$set(c)},i(o){i||(B(n.$$.fragment,o),B(a.$$.fragment,o),i=!0)},o(o){G(n.$$.fragment,o),G(a.$$.fragment,o),i=!1},d(o){o&&d(t),J(n,o),J(a,o)}}}function Oe(e,n,t){let a,i,o,m,p;ae(e,Le,r=>t(8,o=r)),ae(e,Ne,r=>t(9,m=r)),ae(e,pe,r=>t(4,p=r));let{data:c}=n,b,L=!1;const N=async()=>{t(0,b=void 0),t(1,L=!0);const r={...m};r.id=a.id,r.version=a.version;const g=await we(JSON.stringify(r.spec.descriptionString),"json/plain");r.spec.description=g[0],delete r.spec.allowedCallerNamespaces,delete r.spec.descriptionString;try{await Ee(a.id,r),re(se(a.id),{invalidateAll:!0})}catch(P){t(0,b=P),console.error("Error updating endpoint",P)}finally{t(1,L=!1)}},h=async()=>{t(0,b=void 0),t(1,L=!0);try{await De(a.id,a.version),re($e())}catch(r){t(0,b=r),console.error("Error deleting endpoint",r)}finally{t(1,L=!1)}};return e.$$set=r=>{"data"in r&&t(7,c=r.data)},e.$$.update=()=>{e.$$.dirty&128&&t(3,{endpoint:a}=c,a),e.$$.dirty&256&&t(2,i=o.map(r=>({namespace:r.namespaceInfo.name})))},[b,L,i,a,p,N,h,c,o]}class xe extends ue{constructor(n){super(),ce(this,n,Oe,Ue,ie,{data:7})}}export{xe as component}; diff --git a/ui/assets/local/_app/immutable/nodes/49.Bg4JBSA7.js b/ui/assets/local/_app/immutable/nodes/49.BtaIZfCW.js similarity index 90% rename from ui/assets/local/_app/immutable/nodes/49.Bg4JBSA7.js rename to ui/assets/local/_app/immutable/nodes/49.BtaIZfCW.js index fd2ed2bd2..b53000fab 100644 --- a/ui/assets/local/_app/immutable/nodes/49.Bg4JBSA7.js +++ b/ui/assets/local/_app/immutable/nodes/49.BtaIZfCW.js @@ -1 +1 @@ -import{s as O,Y as M,h as A,b as T,t as V,j as D,k as F,f as N,d as x,l as Z,m as I,i as S,n as L,c as z,v as j}from"../chunks/scheduler.C46pS-76.js";import{S as Q,i as Y,c as C,a as b,m as w,t as k,b as P,d as v}from"../chunks/index.dOVbn71B.js";import{g as G}from"../chunks/entry.DLEzeuD9.js";import{p as U}from"../chunks/stores.Dz-RNcUk.js";import{P as W}from"../chunks/page-title.DNhqE1Lj.js";import{t as H}from"../chunks/translate.BBe5dcco.js";import{B as J}from"../chunks/button.BpRIS9ld.js";import{L as X}from"../chunks/link.BJceiGbc.js";import{N as y,e as K}from"../chunks/nexus-form.BNYVknO-.js";import{h as B}from"../chunks/route-for.BjP6gGR7.js";import{c as ee}from"../chunks/nexus-service.BPsrr5_T.js";import{n as te}from"../chunks/namespaces.619_s9Tr.js";import{e as ae}from"../chunks/encode-payload.BbGvULr4.js";function ne(e){let t=H("nexus.back-to-endpoints")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function re(e){let t=H("nexus.create-endpoint")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function se(e){let t=H("common.cancel")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function oe(e){let t,a,n,i,r,m=H("nexus.create-endpoint")+"",p,c,u,l,g,d,E,s,$;return n=new X({props:{href:B(),icon:"chevron-left",$$slots:{default:[ne]},$$scope:{ctx:e}}}),u=new y({props:{nameRegexPattern:e[6],nameHintText:e[7],error:e[3],targetNamespaceList:e[1],callerNamespaceList:e[2],isCloud:e[5]}}),d=new J({props:{variant:"primary",disabled:e[8],loading:e[4],$$slots:{default:[re]},$$scope:{ctx:e}}}),d.$on("click",function(){M(e[0])&&e[0].apply(this,arguments)}),s=new J({props:{variant:"ghost",$$slots:{default:[se]},$$scope:{ctx:e}}}),s.$on("click",e[10]),{c(){t=A("div"),a=A("div"),C(n.$$.fragment),i=T(),r=A("h1"),p=V(m),c=T(),C(u.$$.fragment),l=T(),g=A("div"),C(d.$$.fragment),E=T(),C(s.$$.fragment),this.h()},l(f){t=D(f,"DIV",{class:!0});var o=F(t);a=D(o,"DIV",{class:!0});var R=F(a);b(n.$$.fragment,R),R.forEach(N),i=x(o),r=D(o,"H1",{"data-testid":!0});var _=F(r);p=Z(_,m),_.forEach(N),c=x(o),b(u.$$.fragment,o),l=x(o),g=D(o,"DIV",{class:!0});var h=F(g);b(d.$$.fragment,h),E=x(h),b(s.$$.fragment,h),h.forEach(N),o.forEach(N),this.h()},h(){I(a,"class","text-sm"),I(r,"data-testid","namespace-selector-title"),I(g,"class","flex items-center gap-4"),I(t,"class","flex w-full flex-col gap-8")},m(f,o){S(f,t,o),L(t,a),w(n,a,null),L(t,i),L(t,r),L(r,p),L(t,c),w(u,t,null),L(t,l),L(t,g),w(d,g,null),L(g,E),w(s,g,null),$=!0},p(f,[o]){e=f;const R={};o&2048&&(R.$$scope={dirty:o,ctx:e}),n.$set(R);const _={};o&64&&(_.nameRegexPattern=e[6]),o&128&&(_.nameHintText=e[7]),o&8&&(_.error=e[3]),o&2&&(_.targetNamespaceList=e[1]),o&4&&(_.callerNamespaceList=e[2]),o&32&&(_.isCloud=e[5]),u.$set(_);const h={};o&256&&(h.disabled=e[8]),o&16&&(h.loading=e[4]),o&2048&&(h.$$scope={dirty:o,ctx:e}),d.$set(h);const q={};o&2048&&(q.$$scope={dirty:o,ctx:e}),s.$set(q)},i(f){$||(k(n.$$.fragment,f),k(u.$$.fragment,f),k(d.$$.fragment,f),k(s.$$.fragment,f),$=!0)},o(f){P(n.$$.fragment,f),P(u.$$.fragment,f),P(d.$$.fragment,f),P(s.$$.fragment,f),$=!1},d(f){f&&N(t),v(n),v(u),v(d),v(s)}}}function ie(e,t,a){let n,i;z(e,K,s=>a(9,i=s));let{onCreate:r}=t,{targetNamespaceList:m=[]}=t,{callerNamespaceList:p=[]}=t,{error:c=void 0}=t,{loading:u=!1}=t,{isCloud:l=!1}=t,{nameRegexPattern:g=/^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/}=t,{nameHintText:d=H("nexus.endpoint-name-hint-with-dash")}=t;const E=()=>G(B());return e.$$set=s=>{"onCreate"in s&&a(0,r=s.onCreate),"targetNamespaceList"in s&&a(1,m=s.targetNamespaceList),"callerNamespaceList"in s&&a(2,p=s.callerNamespaceList),"error"in s&&a(3,c=s.error),"loading"in s&&a(4,u=s.loading),"isCloud"in s&&a(5,l=s.isCloud),"nameRegexPattern"in s&&a(6,g=s.nameRegexPattern),"nameHintText"in s&&a(7,d=s.nameHintText)},e.$$.update=()=>{e.$$.dirty&512&&a(8,n=i.spec.name===""||i.spec.target.worker.namespace===""||i.spec.target.worker.taskQueue==="")},[r,m,p,c,u,l,g,d,n,i,E]}class le extends Q{constructor(t){super(),Y(this,t,ie,oe,O,{onCreate:0,targetNamespaceList:1,callerNamespaceList:2,error:3,loading:4,isCloud:5,nameRegexPattern:6,nameHintText:7})}}function me(e){let t,a,n,i;return t=new W({props:{title:H("nexus.create-endpoint"),url:e[3].url.href}}),n=new le({props:{onCreate:e[4],targetNamespaceList:e[2],error:e[0],loading:e[1]}}),{c(){C(t.$$.fragment),a=T(),C(n.$$.fragment)},l(r){b(t.$$.fragment,r),a=x(r),b(n.$$.fragment,r)},m(r,m){w(t,r,m),S(r,a,m),w(n,r,m),i=!0},p(r,[m]){const p={};m&8&&(p.url=r[3].url.href),t.$set(p);const c={};m&4&&(c.targetNamespaceList=r[2]),m&1&&(c.error=r[0]),m&2&&(c.loading=r[1]),n.$set(c)},i(r){i||(k(t.$$.fragment,r),k(n.$$.fragment,r),i=!0)},o(r){P(t.$$.fragment,r),P(n.$$.fragment,r),i=!1},d(r){r&&N(a),v(t,r),v(n,r)}}}function fe(e,t,a){let n,i,r,m;z(e,te,l=>a(5,i=l)),z(e,K,l=>a(6,r=l)),z(e,U,l=>a(3,m=l));let p,c=!1;const u=async()=>{a(1,c=!0);try{const l={...r},g=await ae(JSON.stringify(l.spec.descriptionString),"json/plain");l.spec.description=g[0],delete l.spec.allowedCallerNamespaces,delete l.spec.descriptionString,await ee(l),G(B(),{invalidateAll:!0})}catch(l){a(0,p=l),console.error("Error creating endpoint",l)}finally{a(1,c=!1)}};return e.$$.update=()=>{e.$$.dirty&32&&a(2,n=i.map(l=>({namespace:l.namespaceInfo.name})))},[p,c,n,m,u,i]}class Pe extends Q{constructor(t){super(),Y(this,t,fe,me,O,{})}}export{Pe as component}; +import{s as O,Y as M,h as A,b as T,t as V,j as D,k as F,f as N,d as x,l as Z,m as I,i as S,n as L,c as z,v as j}from"../chunks/scheduler.C46pS-76.js";import{S as Q,i as Y,c as C,a as b,m as w,t as k,b as P,d as v}from"../chunks/index.dOVbn71B.js";import{g as G}from"../chunks/entry.kylZibtV.js";import{p as U}from"../chunks/stores.Ds4o9nwd.js";import{P as W}from"../chunks/page-title.DNhqE1Lj.js";import{t as H}from"../chunks/translate.BBe5dcco.js";import{B as J}from"../chunks/button.hs88FdV4.js";import{L as X}from"../chunks/link.C_v4aoat.js";import{N as y,e as K}from"../chunks/nexus-form.sJTgAfD6.js";import{h as B}from"../chunks/route-for.B9fTWV7L.js";import{c as ee}from"../chunks/nexus-service.CnR3KXfY.js";import{n as te}from"../chunks/namespaces.DEm0M_ie.js";import{e as ae}from"../chunks/encode-payload.DnXS3ERP.js";function ne(e){let t=H("nexus.back-to-endpoints")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function re(e){let t=H("nexus.create-endpoint")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function se(e){let t=H("common.cancel")+"",a;return{c(){a=V(t)},l(n){a=Z(n,t)},m(n,i){S(n,a,i)},p:j,d(n){n&&N(a)}}}function oe(e){let t,a,n,i,r,m=H("nexus.create-endpoint")+"",p,c,u,l,g,d,E,s,$;return n=new X({props:{href:B(),icon:"chevron-left",$$slots:{default:[ne]},$$scope:{ctx:e}}}),u=new y({props:{nameRegexPattern:e[6],nameHintText:e[7],error:e[3],targetNamespaceList:e[1],callerNamespaceList:e[2],isCloud:e[5]}}),d=new J({props:{variant:"primary",disabled:e[8],loading:e[4],$$slots:{default:[re]},$$scope:{ctx:e}}}),d.$on("click",function(){M(e[0])&&e[0].apply(this,arguments)}),s=new J({props:{variant:"ghost",$$slots:{default:[se]},$$scope:{ctx:e}}}),s.$on("click",e[10]),{c(){t=A("div"),a=A("div"),C(n.$$.fragment),i=T(),r=A("h1"),p=V(m),c=T(),C(u.$$.fragment),l=T(),g=A("div"),C(d.$$.fragment),E=T(),C(s.$$.fragment),this.h()},l(f){t=D(f,"DIV",{class:!0});var o=F(t);a=D(o,"DIV",{class:!0});var R=F(a);b(n.$$.fragment,R),R.forEach(N),i=x(o),r=D(o,"H1",{"data-testid":!0});var _=F(r);p=Z(_,m),_.forEach(N),c=x(o),b(u.$$.fragment,o),l=x(o),g=D(o,"DIV",{class:!0});var h=F(g);b(d.$$.fragment,h),E=x(h),b(s.$$.fragment,h),h.forEach(N),o.forEach(N),this.h()},h(){I(a,"class","text-sm"),I(r,"data-testid","namespace-selector-title"),I(g,"class","flex items-center gap-4"),I(t,"class","flex w-full flex-col gap-8")},m(f,o){S(f,t,o),L(t,a),w(n,a,null),L(t,i),L(t,r),L(r,p),L(t,c),w(u,t,null),L(t,l),L(t,g),w(d,g,null),L(g,E),w(s,g,null),$=!0},p(f,[o]){e=f;const R={};o&2048&&(R.$$scope={dirty:o,ctx:e}),n.$set(R);const _={};o&64&&(_.nameRegexPattern=e[6]),o&128&&(_.nameHintText=e[7]),o&8&&(_.error=e[3]),o&2&&(_.targetNamespaceList=e[1]),o&4&&(_.callerNamespaceList=e[2]),o&32&&(_.isCloud=e[5]),u.$set(_);const h={};o&256&&(h.disabled=e[8]),o&16&&(h.loading=e[4]),o&2048&&(h.$$scope={dirty:o,ctx:e}),d.$set(h);const q={};o&2048&&(q.$$scope={dirty:o,ctx:e}),s.$set(q)},i(f){$||(k(n.$$.fragment,f),k(u.$$.fragment,f),k(d.$$.fragment,f),k(s.$$.fragment,f),$=!0)},o(f){P(n.$$.fragment,f),P(u.$$.fragment,f),P(d.$$.fragment,f),P(s.$$.fragment,f),$=!1},d(f){f&&N(t),v(n),v(u),v(d),v(s)}}}function ie(e,t,a){let n,i;z(e,K,s=>a(9,i=s));let{onCreate:r}=t,{targetNamespaceList:m=[]}=t,{callerNamespaceList:p=[]}=t,{error:c=void 0}=t,{loading:u=!1}=t,{isCloud:l=!1}=t,{nameRegexPattern:g=/^[a-zA-Z][a-zA-Z0-9-]*[a-zA-Z0-9]$/}=t,{nameHintText:d=H("nexus.endpoint-name-hint-with-dash")}=t;const E=()=>G(B());return e.$$set=s=>{"onCreate"in s&&a(0,r=s.onCreate),"targetNamespaceList"in s&&a(1,m=s.targetNamespaceList),"callerNamespaceList"in s&&a(2,p=s.callerNamespaceList),"error"in s&&a(3,c=s.error),"loading"in s&&a(4,u=s.loading),"isCloud"in s&&a(5,l=s.isCloud),"nameRegexPattern"in s&&a(6,g=s.nameRegexPattern),"nameHintText"in s&&a(7,d=s.nameHintText)},e.$$.update=()=>{e.$$.dirty&512&&a(8,n=i.spec.name===""||i.spec.target.worker.namespace===""||i.spec.target.worker.taskQueue==="")},[r,m,p,c,u,l,g,d,n,i,E]}class le extends Q{constructor(t){super(),Y(this,t,ie,oe,O,{onCreate:0,targetNamespaceList:1,callerNamespaceList:2,error:3,loading:4,isCloud:5,nameRegexPattern:6,nameHintText:7})}}function me(e){let t,a,n,i;return t=new W({props:{title:H("nexus.create-endpoint"),url:e[3].url.href}}),n=new le({props:{onCreate:e[4],targetNamespaceList:e[2],error:e[0],loading:e[1]}}),{c(){C(t.$$.fragment),a=T(),C(n.$$.fragment)},l(r){b(t.$$.fragment,r),a=x(r),b(n.$$.fragment,r)},m(r,m){w(t,r,m),S(r,a,m),w(n,r,m),i=!0},p(r,[m]){const p={};m&8&&(p.url=r[3].url.href),t.$set(p);const c={};m&4&&(c.targetNamespaceList=r[2]),m&1&&(c.error=r[0]),m&2&&(c.loading=r[1]),n.$set(c)},i(r){i||(k(t.$$.fragment,r),k(n.$$.fragment,r),i=!0)},o(r){P(t.$$.fragment,r),P(n.$$.fragment,r),i=!1},d(r){r&&N(a),v(t,r),v(n,r)}}}function fe(e,t,a){let n,i,r,m;z(e,te,l=>a(5,i=l)),z(e,K,l=>a(6,r=l)),z(e,U,l=>a(3,m=l));let p,c=!1;const u=async()=>{a(1,c=!0);try{const l={...r},g=await ae(JSON.stringify(l.spec.descriptionString),"json/plain");l.spec.description=g[0],delete l.spec.allowedCallerNamespaces,delete l.spec.descriptionString,await ee(l),G(B(),{invalidateAll:!0})}catch(l){a(0,p=l),console.error("Error creating endpoint",l)}finally{a(1,c=!1)}};return e.$$.update=()=>{e.$$.dirty&32&&a(2,n=i.map(l=>({namespace:l.namespaceInfo.name})))},[p,c,n,m,u,i]}class Pe extends Q{constructor(t){super(),Y(this,t,fe,me,O,{})}}export{Pe as component}; diff --git a/ui/assets/local/_app/immutable/nodes/5.D7BgctVj.js b/ui/assets/local/_app/immutable/nodes/5.gTk0G_dj.js similarity index 85% rename from ui/assets/local/_app/immutable/nodes/5.D7BgctVj.js rename to ui/assets/local/_app/immutable/nodes/5.gTk0G_dj.js index 56272e960..eddb48e1d 100644 --- a/ui/assets/local/_app/immutable/nodes/5.D7BgctVj.js +++ b/ui/assets/local/_app/immutable/nodes/5.gTk0G_dj.js @@ -1 +1 @@ -import{r as n,a as b}from"../chunks/route-for-api.BTloiRV6.js";import{b as u}from"../chunks/screaming-enums.w0zEi9dM.js";import{a as m}from"../chunks/search-attributes.C9oQpIly.js";import{L as d}from"../chunks/layout.Co5naKTs.js";const p=async(e,s=fetch)=>{try{const t=n("search-attributes",{namespace:e}),r=await b(t,{request:s}),o={...r.customAttributes},a={...r.systemAttributes};return Object.entries(o).forEach(([c,i])=>{o[c]=u(i)}),Object.entries(a).forEach(([c,i])=>{a[c]=u(i)}),{customAttributes:o,systemAttributes:a}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},f=async({params:e,parent:s,fetch:t})=>{await s();const r=await p(e.namespace,t);m.set(r)},y=Object.freeze(Object.defineProperty({__proto__:null,load:f},Symbol.toStringTag,{value:"Module"}));export{d as component,y as universal}; +import{r as n,a as b}from"../chunks/route-for-api.DGDQNXtX.js";import{b as u}from"../chunks/screaming-enums.w0zEi9dM.js";import{a as m}from"../chunks/search-attributes.Dmice2E5.js";import{L as d}from"../chunks/layout.Co5naKTs.js";const p=async(e,s=fetch)=>{try{const t=n("search-attributes",{namespace:e}),r=await b(t,{request:s}),o={...r.customAttributes},a={...r.systemAttributes};return Object.entries(o).forEach(([c,i])=>{o[c]=u(i)}),Object.entries(a).forEach(([c,i])=>{a[c]=u(i)}),{customAttributes:o,systemAttributes:a}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},f=async({params:e,parent:s,fetch:t})=>{await s();const r=await p(e.namespace,t);m.set(r)},y=Object.freeze(Object.defineProperty({__proto__:null,load:f},Symbol.toStringTag,{value:"Module"}));export{d as component,y as universal}; diff --git a/ui/assets/local/_app/immutable/nodes/50.DcnjwYSw.js b/ui/assets/local/_app/immutable/nodes/50.Ct-GzfE8.js similarity index 93% rename from ui/assets/local/_app/immutable/nodes/50.DcnjwYSw.js rename to ui/assets/local/_app/immutable/nodes/50.Ct-GzfE8.js index 595ec9112..4b10c01ff 100644 --- a/ui/assets/local/_app/immutable/nodes/50.DcnjwYSw.js +++ b/ui/assets/local/_app/immutable/nodes/50.Ct-GzfE8.js @@ -1 +1 @@ -import{s as ce,h as N,j as S,k as z,f as w,a2 as A,ac as se,a9 as pe,i as C,n as H,aa as de,p as ue,V as ge,a as ve,b as F,d as q,u as be,g as we,e as ke,a6 as ee,N as le,t as K,l as Q,m as O,O as ye,c as te,w as Ee,H as J,q as Te}from"../chunks/scheduler.C46pS-76.js";import{S as fe,i as _e,g as me,e as he,t as R,b as U,f as Ie,c as X,a as Y,m as Z,d as x}from"../chunks/index.dOVbn71B.js";import{e as ae,u as He,o as Le}from"../chunks/each.C6O0oV7R.js";import{g as Ve}from"../chunks/entry.DLEzeuD9.js";import{p as Ne}from"../chunks/stores.Dz-RNcUk.js";import{P as Se}from"../chunks/page-title.DNhqE1Lj.js";import{E as ze}from"../chunks/empty-state.BO9uOKUe.js";import{I as Oe}from"../chunks/input.CTzUOpgs.js";import{t as L}from"../chunks/translate.BBe5dcco.js";import{a as Re}from"../chunks/workflows.BzgE0E1S.js";import{n as Ue,l as ne}from"../chunks/namespaces.619_s9Tr.js";import{t as Me}from"../chunks/toaster.D-OAJjvv.js";import{e as Pe}from"../chunks/route-for.BjP6gGR7.js";function re(l,e,s){const t=l.slice();return t[23]=e[s],t}const Ae=l=>({item:l&16}),oe=l=>({item:l[23].data});function Ce(l){let e;return{c(){e=K("Missing template")},l(s){e=Q(s,"Missing template")},m(s,t){C(s,e,t)},d(s){s&&w(e)}}}function ie(l,e){let s,t,i;const u=e[14].default,m=ve(u,e,e[13],oe),c=m||Ce();return{key:l,first:null,c(){s=N("svelte-virtual-list-row"),c&&c.c(),t=F(),this.h()},l(r){s=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var f=z(s);c&&c.l(f),t=q(f),f.forEach(w),this.h()},h(){se(s,"class","svelte-1kdxoed"),this.first=s},m(r,f){C(r,s,f),c&&c.m(s,null),H(s,t),i=!0},p(r,f){e=r,m&&m.p&&(!i||f&8208)&&be(m,u,e,e[13],i?ke(u,e[13],f,Ae):we(e[13]),oe)},i(r){i||(R(c,r),i=!0)},o(r){U(c,r),i=!1},d(r){r&&w(s),c&&c.d(r)}}}function We(l){let e,s,t=[],i=new Map,u,m,c,r,f=ae(l[4]);const v=o=>o[23].index;for(let o=0;ol[17].call(e))},m(o,a){C(o,e,a),H(e,s);for(let _=0;_n){s(8,r=d),s(5,g=k);break}k+=p,d+=1}for(;dn+y)););s(9,f=d);const I=u.length-f;for(T=k/f;d{o=_.getElementsByTagName("svelte-virtual-list-row"),s(12,E=!0)});function D(n){le[n?"unshift":"push"](()=>{_=n,s(3,_)})}function V(n){le[n?"unshift":"push"](()=>{a=n,s(2,a)})}function j(){y=this.offsetHeight,s(1,y)}return l.$$set=n=>{"items"in n&&s(10,u=n.items),"height"in n&&s(0,m=n.height),"itemHeight"in n&&s(11,c=n.itemHeight),"start"in n&&s(8,r=n.start),"end"in n&&s(9,f=n.end),"$$scope"in n&&s(13,i=n.$$scope)},l.$$.update=()=>{l.$$.dirty&1792&&s(4,P=u.slice(r,f).map((n,h)=>({index:h+r,data:n}))),l.$$.dirty&7170&&E&&$(u,y,c)},[m,y,a,_,P,g,b,B,r,f,u,c,E,i,t,D,V,j]}class qe extends fe{constructor(e){super(),_e(this,e,Fe,We,ce,{items:10,height:0,itemHeight:11,start:8,end:9})}}function Be(l){let e,s;return e=new ze({props:{title:l[1].length?L("common.no-results"):L("namespaces.select-namespace-empty-state")}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,i){Z(e,t,i),s=!0},p(t,i){const u={};i&2&&(u.title=t[1].length?L("common.no-results"):L("namespaces.select-namespace-empty-state")),e.$set(u)},i(t){s||(R(e.$$.fragment,t),s=!0)},o(t){U(e.$$.fragment,t),s=!1},d(t){x(e,t)}}}function De(l){let e,s;return e=new qe({props:{items:l[2],itemHeight:50,$$slots:{default:[je,({item:t})=>({9:t}),({item:t})=>t?512:0]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,i){Z(e,t,i),s=!0},p(t,i){const u={};i&4&&(u.items=t[2]),i&1540&&(u.$$scope={dirty:i,ctx:t}),e.$set(u)},i(t){s||(R(e.$$.fragment,t),s=!0)},o(t){U(e.$$.fragment,t),s=!1},d(t){x(e,t)}}}function je(l){let e,s=l[9].namespace+"",t,i,u;function m(){return l[7](l[9])}return{c(){e=N("button"),t=K(s),this.h()},l(c){e=S(c,"BUTTON",{class:!0});var r=z(e);t=Q(r,s),r.forEach(w),this.h()},h(){O(e,"class","surface-primary flex w-full cursor-pointer gap-2 truncate border-b from-blue-100 to-purple-100 p-3 text-left hover:bg-gradient-to-br"),J(e,"rounded-t-md",l[9].index===0),J(e,"rounded-b-md",l[9].index===l[2].length-1)},m(c,r){C(c,e,r),H(e,t),i||(u=ue(e,"click",m),i=!0)},p(c,r){l=c,r&512&&s!==(s=l[9].namespace+"")&&Te(t,s),r&512&&J(e,"rounded-t-md",l[9].index===0),r&516&&J(e,"rounded-b-md",l[9].index===l[2].length-1)},d(c){c&&w(e),i=!1,u()}}}function Ge(l){let e,s,t,i,u=L("namespaces.select-namespace-welcome")+"",m,c,r,f=L("namespaces.select-namespace")+"",v,o,a,_,y,P,E,g,b,T;e=new Se({props:{title:L("namespaces.namespace-select-header"),url:l[3].url.href}});function $(n){l[6](n)}let B={id:"search-namespaces",type:"search",label:L("common.search"),labelHidden:!0,placeholder:L("common.search"),icon:"search"};l[0]!==void 0&&(B.value=l[0]),_=new Oe({props:B}),le.push(()=>Ie(_,"value",$));const D=[De,Be],V=[];function j(n,h){return n[2].length?0:1}return g=j(l),b=V[g]=D[g](l),{c(){X(e.$$.fragment),s=F(),t=N("div"),i=N("h1"),m=K(u),c=F(),r=N("p"),v=K(f),o=F(),a=N("form"),X(_.$$.fragment),P=F(),E=N("div"),b.c(),this.h()},l(n){Y(e.$$.fragment,n),s=q(n),t=S(n,"DIV",{class:!0});var h=z(t);i=S(h,"H1",{class:!0});var d=z(i);m=Q(d,u),d.forEach(w),c=q(h),r=S(h,"P",{class:!0});var k=z(r);v=Q(k,f),k.forEach(w),o=q(h),a=S(h,"FORM",{class:!0,role:!0});var I=z(a);Y(_.$$.fragment,I),I.forEach(w),P=q(h),E=S(h,"DIV",{class:!0,"aria-label":!0});var p=z(E);b.l(p),p.forEach(w),h.forEach(w),this.h()},h(){O(i,"class","my-4"),O(r,"class","mb-8"),O(a,"class","mb-5"),O(a,"role","search"),O(E,"class","h-96 w-full overflow-hidden rounded-md border"),O(E,"aria-label",L("common.namespaces")),O(t,"class","w-full p-8 xl:w-1/2")},m(n,h){Z(e,n,h),C(n,s,h),C(n,t,h),H(t,i),H(i,m),H(t,c),H(t,r),H(r,v),H(t,o),H(t,a),Z(_,a,null),H(t,P),H(t,E),V[g].m(E,null),T=!0},p(n,[h]){const d={};h&8&&(d.url=n[3].url.href),e.$set(d);const k={};!y&&h&1&&(y=!0,k.value=n[0],ye(()=>y=!1)),_.$set(k);let I=g;g=j(n),g===I?V[g].p(n,h):(me(),U(V[I],1,1,()=>{V[I]=null}),he(),b=V[g],b?b.p(n,h):(b=V[g]=D[g](n),b.c()),R(b,1),b.m(E,null))},i(n){T||(R(e.$$.fragment,n),R(_.$$.fragment,n),R(b),T=!0)},o(n){U(e.$$.fragment,n),U(_.$$.fragment,n),U(b),T=!1},d(n){n&&(w(s),w(t)),x(e,n),x(_),V[g].d()}}}function Je(l,e,s){let t,i,u,m,c;te(l,Ue,a=>s(1,u=a)),te(l,ne,a=>s(8,m=a)),te(l,Ne,a=>s(3,c=a));let r="";const f=async a=>{const{authorized:_}=await Re(a);_?(Ee(ne,m=a,m),Ve(Pe({namespace:a}))):Me.push({variant:"error",message:L("namespaces.unauthorized-namespace-error")})};function v(a){r=a,s(0,r)}const o=a=>f(a.namespace);return l.$$.update=()=>{l.$$.dirty&3&&s(5,t=u.filter(a=>a.namespaceInfo.name.toLowerCase().includes(r.toLowerCase()))),l.$$.dirty&32&&s(2,i=t.map((a,_)=>({namespace:a.namespaceInfo.name,index:_})))},[r,u,i,c,f,t,v,o]}class rt extends fe{constructor(e){super(),_e(this,e,Je,Ge,ce,{})}}export{rt as component}; +import{s as ce,h as N,j as S,k as z,f as w,a2 as A,ac as se,a9 as pe,i as C,n as H,aa as de,p as ue,V as ge,a as ve,b as F,d as q,u as be,g as we,e as ke,a6 as ee,N as le,t as K,l as Q,m as O,O as ye,c as te,w as Ee,H as J,q as Te}from"../chunks/scheduler.C46pS-76.js";import{S as fe,i as _e,g as me,e as he,t as R,b as U,f as Ie,c as X,a as Y,m as Z,d as x}from"../chunks/index.dOVbn71B.js";import{e as ae,u as He,o as Le}from"../chunks/each.C6O0oV7R.js";import{g as Ve}from"../chunks/entry.kylZibtV.js";import{p as Ne}from"../chunks/stores.Ds4o9nwd.js";import{P as Se}from"../chunks/page-title.DNhqE1Lj.js";import{E as ze}from"../chunks/empty-state.BO9uOKUe.js";import{I as Oe}from"../chunks/input.Dizl7Mgk.js";import{t as L}from"../chunks/translate.BBe5dcco.js";import{a as Re}from"../chunks/workflows.Cse8qlOg.js";import{n as Ue,l as ne}from"../chunks/namespaces.DEm0M_ie.js";import{t as Me}from"../chunks/toaster.p5hsABhI.js";import{e as Pe}from"../chunks/route-for.B9fTWV7L.js";function re(l,e,s){const t=l.slice();return t[23]=e[s],t}const Ae=l=>({item:l&16}),oe=l=>({item:l[23].data});function Ce(l){let e;return{c(){e=K("Missing template")},l(s){e=Q(s,"Missing template")},m(s,t){C(s,e,t)},d(s){s&&w(e)}}}function ie(l,e){let s,t,i;const u=e[14].default,m=ve(u,e,e[13],oe),c=m||Ce();return{key:l,first:null,c(){s=N("svelte-virtual-list-row"),c&&c.c(),t=F(),this.h()},l(r){s=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var f=z(s);c&&c.l(f),t=q(f),f.forEach(w),this.h()},h(){se(s,"class","svelte-1kdxoed"),this.first=s},m(r,f){C(r,s,f),c&&c.m(s,null),H(s,t),i=!0},p(r,f){e=r,m&&m.p&&(!i||f&8208)&&be(m,u,e,e[13],i?ke(u,e[13],f,Ae):we(e[13]),oe)},i(r){i||(R(c,r),i=!0)},o(r){U(c,r),i=!1},d(r){r&&w(s),c&&c.d(r)}}}function We(l){let e,s,t=[],i=new Map,u,m,c,r,f=ae(l[4]);const v=o=>o[23].index;for(let o=0;ol[17].call(e))},m(o,a){C(o,e,a),H(e,s);for(let _=0;_n){s(8,r=d),s(5,g=k);break}k+=p,d+=1}for(;dn+y)););s(9,f=d);const I=u.length-f;for(T=k/f;d{o=_.getElementsByTagName("svelte-virtual-list-row"),s(12,E=!0)});function D(n){le[n?"unshift":"push"](()=>{_=n,s(3,_)})}function V(n){le[n?"unshift":"push"](()=>{a=n,s(2,a)})}function j(){y=this.offsetHeight,s(1,y)}return l.$$set=n=>{"items"in n&&s(10,u=n.items),"height"in n&&s(0,m=n.height),"itemHeight"in n&&s(11,c=n.itemHeight),"start"in n&&s(8,r=n.start),"end"in n&&s(9,f=n.end),"$$scope"in n&&s(13,i=n.$$scope)},l.$$.update=()=>{l.$$.dirty&1792&&s(4,P=u.slice(r,f).map((n,h)=>({index:h+r,data:n}))),l.$$.dirty&7170&&E&&$(u,y,c)},[m,y,a,_,P,g,b,B,r,f,u,c,E,i,t,D,V,j]}class qe extends fe{constructor(e){super(),_e(this,e,Fe,We,ce,{items:10,height:0,itemHeight:11,start:8,end:9})}}function Be(l){let e,s;return e=new ze({props:{title:l[1].length?L("common.no-results"):L("namespaces.select-namespace-empty-state")}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,i){Z(e,t,i),s=!0},p(t,i){const u={};i&2&&(u.title=t[1].length?L("common.no-results"):L("namespaces.select-namespace-empty-state")),e.$set(u)},i(t){s||(R(e.$$.fragment,t),s=!0)},o(t){U(e.$$.fragment,t),s=!1},d(t){x(e,t)}}}function De(l){let e,s;return e=new qe({props:{items:l[2],itemHeight:50,$$slots:{default:[je,({item:t})=>({9:t}),({item:t})=>t?512:0]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,i){Z(e,t,i),s=!0},p(t,i){const u={};i&4&&(u.items=t[2]),i&1540&&(u.$$scope={dirty:i,ctx:t}),e.$set(u)},i(t){s||(R(e.$$.fragment,t),s=!0)},o(t){U(e.$$.fragment,t),s=!1},d(t){x(e,t)}}}function je(l){let e,s=l[9].namespace+"",t,i,u;function m(){return l[7](l[9])}return{c(){e=N("button"),t=K(s),this.h()},l(c){e=S(c,"BUTTON",{class:!0});var r=z(e);t=Q(r,s),r.forEach(w),this.h()},h(){O(e,"class","surface-primary flex w-full cursor-pointer gap-2 truncate border-b from-blue-100 to-purple-100 p-3 text-left hover:bg-gradient-to-br"),J(e,"rounded-t-md",l[9].index===0),J(e,"rounded-b-md",l[9].index===l[2].length-1)},m(c,r){C(c,e,r),H(e,t),i||(u=ue(e,"click",m),i=!0)},p(c,r){l=c,r&512&&s!==(s=l[9].namespace+"")&&Te(t,s),r&512&&J(e,"rounded-t-md",l[9].index===0),r&516&&J(e,"rounded-b-md",l[9].index===l[2].length-1)},d(c){c&&w(e),i=!1,u()}}}function Ge(l){let e,s,t,i,u=L("namespaces.select-namespace-welcome")+"",m,c,r,f=L("namespaces.select-namespace")+"",v,o,a,_,y,P,E,g,b,T;e=new Se({props:{title:L("namespaces.namespace-select-header"),url:l[3].url.href}});function $(n){l[6](n)}let B={id:"search-namespaces",type:"search",label:L("common.search"),labelHidden:!0,placeholder:L("common.search"),icon:"search"};l[0]!==void 0&&(B.value=l[0]),_=new Oe({props:B}),le.push(()=>Ie(_,"value",$));const D=[De,Be],V=[];function j(n,h){return n[2].length?0:1}return g=j(l),b=V[g]=D[g](l),{c(){X(e.$$.fragment),s=F(),t=N("div"),i=N("h1"),m=K(u),c=F(),r=N("p"),v=K(f),o=F(),a=N("form"),X(_.$$.fragment),P=F(),E=N("div"),b.c(),this.h()},l(n){Y(e.$$.fragment,n),s=q(n),t=S(n,"DIV",{class:!0});var h=z(t);i=S(h,"H1",{class:!0});var d=z(i);m=Q(d,u),d.forEach(w),c=q(h),r=S(h,"P",{class:!0});var k=z(r);v=Q(k,f),k.forEach(w),o=q(h),a=S(h,"FORM",{class:!0,role:!0});var I=z(a);Y(_.$$.fragment,I),I.forEach(w),P=q(h),E=S(h,"DIV",{class:!0,"aria-label":!0});var p=z(E);b.l(p),p.forEach(w),h.forEach(w),this.h()},h(){O(i,"class","my-4"),O(r,"class","mb-8"),O(a,"class","mb-5"),O(a,"role","search"),O(E,"class","h-96 w-full overflow-hidden rounded-md border"),O(E,"aria-label",L("common.namespaces")),O(t,"class","w-full p-8 xl:w-1/2")},m(n,h){Z(e,n,h),C(n,s,h),C(n,t,h),H(t,i),H(i,m),H(t,c),H(t,r),H(r,v),H(t,o),H(t,a),Z(_,a,null),H(t,P),H(t,E),V[g].m(E,null),T=!0},p(n,[h]){const d={};h&8&&(d.url=n[3].url.href),e.$set(d);const k={};!y&&h&1&&(y=!0,k.value=n[0],ye(()=>y=!1)),_.$set(k);let I=g;g=j(n),g===I?V[g].p(n,h):(me(),U(V[I],1,1,()=>{V[I]=null}),he(),b=V[g],b?b.p(n,h):(b=V[g]=D[g](n),b.c()),R(b,1),b.m(E,null))},i(n){T||(R(e.$$.fragment,n),R(_.$$.fragment,n),R(b),T=!0)},o(n){U(e.$$.fragment,n),U(_.$$.fragment,n),U(b),T=!1},d(n){n&&(w(s),w(t)),x(e,n),x(_),V[g].d()}}}function Je(l,e,s){let t,i,u,m,c;te(l,Ue,a=>s(1,u=a)),te(l,ne,a=>s(8,m=a)),te(l,Ne,a=>s(3,c=a));let r="";const f=async a=>{const{authorized:_}=await Re(a);_?(Ee(ne,m=a,m),Ve(Pe({namespace:a}))):Me.push({variant:"error",message:L("namespaces.unauthorized-namespace-error")})};function v(a){r=a,s(0,r)}const o=a=>f(a.namespace);return l.$$.update=()=>{l.$$.dirty&3&&s(5,t=u.filter(a=>a.namespaceInfo.name.toLowerCase().includes(r.toLowerCase()))),l.$$.dirty&32&&s(2,i=t.map((a,_)=>({namespace:a.namespaceInfo.name,index:_})))},[r,u,i,c,f,t,v,o]}class rt extends fe{constructor(e){super(),_e(this,e,Je,Ge,ce,{})}}export{rt as component}; diff --git a/ui/assets/local/_app/immutable/nodes/51.C7mbBFF_.js b/ui/assets/local/_app/immutable/nodes/51.wAEGmlDx.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/51.C7mbBFF_.js rename to ui/assets/local/_app/immutable/nodes/51.wAEGmlDx.js index 5e9c02ac2..e5096d220 100644 --- a/ui/assets/local/_app/immutable/nodes/51.C7mbBFF_.js +++ b/ui/assets/local/_app/immutable/nodes/51.wAEGmlDx.js @@ -1 +1 @@ -import{s as N,b as k,h as v,d as y,j as x,k as w,f as m,o as V,U as R,m as i,i as E,n as f,c as T,t as G,l as M,v as W}from"../chunks/scheduler.C46pS-76.js";import{S as z,i as J,c as D,a as F,m as O,t as q,b as A,d as B}from"../chunks/index.dOVbn71B.js";import{p as K}from"../chunks/stores.Dz-RNcUk.js";import{F as Q,L as X}from"../chunks/logo.DmG7EKIA.js";import{P as Y}from"../chunks/page-title.DNhqE1Lj.js";import{B as Z}from"../chunks/button.BpRIS9ld.js";import{d as tt}from"../chunks/route-for.BjP6gGR7.js";function et(o){let e;return{c(){e=G("Continue to SSO")},l(s){e=M(s,"Continue to SSO")},m(s,a){E(s,e,a)},d(s){s&&m(e)}}}function at(o){let e,s,a;return{c(){e=v("div"),s=v("p"),a=G(o[2]),this.h()},l(n){e=x(n,"DIV",{class:!0});var u=w(e);s=x(u,"P",{class:!0});var h=w(s);a=M(h,o[2]),h.forEach(m),u.forEach(m),this.h()},h(){i(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),i(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(n,u){E(n,e,u),f(e,s),f(s,a)},p:W,d(n){n&&m(e)}}}function st(o){let e,s,a,n,u,h,d,p,l,$,H="Welcome back.",j,b,U="Let's get you signed in.",I,C,g,L,S;e=new Y({props:{title:"Login",url:o[0].url.href}}),d=new Q({}),g=new Z({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[et]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&at(o);return{c(){D(e.$$.fragment),s=k(),a=v("header"),n=v("img"),h=k(),D(d.$$.fragment),p=k(),l=v("section"),$=v("h1"),$.textContent=H,j=k(),b=v("p"),b.textContent=U,I=k(),C=v("div"),D(g.$$.fragment),L=k(),_&&_.c(),this.h()},l(t){F(e.$$.fragment,t),s=y(t),a=x(t,"HEADER",{class:!0});var r=w(a);n=x(r,"IMG",{src:!0,alt:!0,class:!0}),h=y(r),F(d.$$.fragment,r),r.forEach(m),p=y(t),l=x(t,"SECTION",{class:!0});var c=w(l);$=x(c,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V($)!=="svelte-xhdrju"&&($.textContent=H),j=y(c),b=x(c,"P",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V(b)!=="svelte-p80gtj"&&(b.textContent=U),I=y(c),C=x(c,"DIV",{class:!0});var P=w(C);F(g.$$.fragment,P),P.forEach(m),L=y(c),_&&_.l(c),c.forEach(m),this.h()},h(){R(n.src,u=X)||i(n,"src",u),i(n,"alt",""),i(n,"class","max-h-10"),i(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),i($,"class","text-8xl font-semibold"),i($,"data-testid","login-title"),i(b,"class","my-7"),i(b,"data-testid","login-info"),i(C,"class","flex items-center justify-center"),i(l,"class","my-[20vh] text-center")},m(t,r){O(e,t,r),E(t,s,r),E(t,a,r),f(a,n),f(a,h),O(d,a,null),E(t,p,r),E(t,l,r),f(l,$),f(l,j),f(l,b),f(l,I),f(l,C),O(g,C,null),f(l,L),_&&_.m(l,null),S=!0},p(t,[r]){const c={};r&1&&(c.url=t[0].url.href),e.$set(c);const P={};r&32&&(P.$$scope={dirty:r,ctx:t}),g.$set(P),t[2]&&_.p(t,r)},i(t){S||(q(e.$$.fragment,t),q(d.$$.fragment,t),q(g.$$.fragment,t),S=!0)},o(t){A(e.$$.fragment,t),A(d.$$.fragment,t),A(g.$$.fragment,t),S=!1},d(t){t&&(m(s),m(a),m(p),m(l)),B(e,t),B(d),B(g),_&&_.d()}}}function nt(o,e,s){let a;T(o,K,p=>s(0,a=p));let{data:n}=e,{settings:u}=n;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(tt({settings:u,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,n=p.data)},[a,u,h,n,d]}class ft extends z{constructor(e){super(),J(this,e,nt,st,N,{data:3})}}export{ft as component}; +import{s as N,b as k,h as v,d as y,j as x,k as w,f as m,o as V,U as R,m as i,i as E,n as f,c as T,t as G,l as M,v as W}from"../chunks/scheduler.C46pS-76.js";import{S as z,i as J,c as D,a as F,m as O,t as q,b as A,d as B}from"../chunks/index.dOVbn71B.js";import{p as K}from"../chunks/stores.Ds4o9nwd.js";import{F as Q,L as X}from"../chunks/logo.UJexZLaa.js";import{P as Y}from"../chunks/page-title.DNhqE1Lj.js";import{B as Z}from"../chunks/button.hs88FdV4.js";import{d as tt}from"../chunks/route-for.B9fTWV7L.js";function et(o){let e;return{c(){e=G("Continue to SSO")},l(s){e=M(s,"Continue to SSO")},m(s,a){E(s,e,a)},d(s){s&&m(e)}}}function at(o){let e,s,a;return{c(){e=v("div"),s=v("p"),a=G(o[2]),this.h()},l(n){e=x(n,"DIV",{class:!0});var u=w(e);s=x(u,"P",{class:!0});var h=w(s);a=M(h,o[2]),h.forEach(m),u.forEach(m),this.h()},h(){i(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),i(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(n,u){E(n,e,u),f(e,s),f(s,a)},p:W,d(n){n&&m(e)}}}function st(o){let e,s,a,n,u,h,d,p,l,$,H="Welcome back.",j,b,U="Let's get you signed in.",I,C,g,L,S;e=new Y({props:{title:"Login",url:o[0].url.href}}),d=new Q({}),g=new Z({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[et]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&at(o);return{c(){D(e.$$.fragment),s=k(),a=v("header"),n=v("img"),h=k(),D(d.$$.fragment),p=k(),l=v("section"),$=v("h1"),$.textContent=H,j=k(),b=v("p"),b.textContent=U,I=k(),C=v("div"),D(g.$$.fragment),L=k(),_&&_.c(),this.h()},l(t){F(e.$$.fragment,t),s=y(t),a=x(t,"HEADER",{class:!0});var r=w(a);n=x(r,"IMG",{src:!0,alt:!0,class:!0}),h=y(r),F(d.$$.fragment,r),r.forEach(m),p=y(t),l=x(t,"SECTION",{class:!0});var c=w(l);$=x(c,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V($)!=="svelte-xhdrju"&&($.textContent=H),j=y(c),b=x(c,"P",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V(b)!=="svelte-p80gtj"&&(b.textContent=U),I=y(c),C=x(c,"DIV",{class:!0});var P=w(C);F(g.$$.fragment,P),P.forEach(m),L=y(c),_&&_.l(c),c.forEach(m),this.h()},h(){R(n.src,u=X)||i(n,"src",u),i(n,"alt",""),i(n,"class","max-h-10"),i(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),i($,"class","text-8xl font-semibold"),i($,"data-testid","login-title"),i(b,"class","my-7"),i(b,"data-testid","login-info"),i(C,"class","flex items-center justify-center"),i(l,"class","my-[20vh] text-center")},m(t,r){O(e,t,r),E(t,s,r),E(t,a,r),f(a,n),f(a,h),O(d,a,null),E(t,p,r),E(t,l,r),f(l,$),f(l,j),f(l,b),f(l,I),f(l,C),O(g,C,null),f(l,L),_&&_.m(l,null),S=!0},p(t,[r]){const c={};r&1&&(c.url=t[0].url.href),e.$set(c);const P={};r&32&&(P.$$scope={dirty:r,ctx:t}),g.$set(P),t[2]&&_.p(t,r)},i(t){S||(q(e.$$.fragment,t),q(d.$$.fragment,t),q(g.$$.fragment,t),S=!0)},o(t){A(e.$$.fragment,t),A(d.$$.fragment,t),A(g.$$.fragment,t),S=!1},d(t){t&&(m(s),m(a),m(p),m(l)),B(e,t),B(d),B(g),_&&_.d()}}}function nt(o,e,s){let a;T(o,K,p=>s(0,a=p));let{data:n}=e,{settings:u}=n;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(tt({settings:u,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,n=p.data)},[a,u,h,n,d]}class ft extends z{constructor(e){super(),J(this,e,nt,st,N,{data:3})}}export{ft as component}; diff --git a/ui/assets/local/_app/immutable/nodes/52.C7mbBFF_.js b/ui/assets/local/_app/immutable/nodes/52.wAEGmlDx.js similarity index 92% rename from ui/assets/local/_app/immutable/nodes/52.C7mbBFF_.js rename to ui/assets/local/_app/immutable/nodes/52.wAEGmlDx.js index 5e9c02ac2..e5096d220 100644 --- a/ui/assets/local/_app/immutable/nodes/52.C7mbBFF_.js +++ b/ui/assets/local/_app/immutable/nodes/52.wAEGmlDx.js @@ -1 +1 @@ -import{s as N,b as k,h as v,d as y,j as x,k as w,f as m,o as V,U as R,m as i,i as E,n as f,c as T,t as G,l as M,v as W}from"../chunks/scheduler.C46pS-76.js";import{S as z,i as J,c as D,a as F,m as O,t as q,b as A,d as B}from"../chunks/index.dOVbn71B.js";import{p as K}from"../chunks/stores.Dz-RNcUk.js";import{F as Q,L as X}from"../chunks/logo.DmG7EKIA.js";import{P as Y}from"../chunks/page-title.DNhqE1Lj.js";import{B as Z}from"../chunks/button.BpRIS9ld.js";import{d as tt}from"../chunks/route-for.BjP6gGR7.js";function et(o){let e;return{c(){e=G("Continue to SSO")},l(s){e=M(s,"Continue to SSO")},m(s,a){E(s,e,a)},d(s){s&&m(e)}}}function at(o){let e,s,a;return{c(){e=v("div"),s=v("p"),a=G(o[2]),this.h()},l(n){e=x(n,"DIV",{class:!0});var u=w(e);s=x(u,"P",{class:!0});var h=w(s);a=M(h,o[2]),h.forEach(m),u.forEach(m),this.h()},h(){i(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),i(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(n,u){E(n,e,u),f(e,s),f(s,a)},p:W,d(n){n&&m(e)}}}function st(o){let e,s,a,n,u,h,d,p,l,$,H="Welcome back.",j,b,U="Let's get you signed in.",I,C,g,L,S;e=new Y({props:{title:"Login",url:o[0].url.href}}),d=new Q({}),g=new Z({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[et]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&at(o);return{c(){D(e.$$.fragment),s=k(),a=v("header"),n=v("img"),h=k(),D(d.$$.fragment),p=k(),l=v("section"),$=v("h1"),$.textContent=H,j=k(),b=v("p"),b.textContent=U,I=k(),C=v("div"),D(g.$$.fragment),L=k(),_&&_.c(),this.h()},l(t){F(e.$$.fragment,t),s=y(t),a=x(t,"HEADER",{class:!0});var r=w(a);n=x(r,"IMG",{src:!0,alt:!0,class:!0}),h=y(r),F(d.$$.fragment,r),r.forEach(m),p=y(t),l=x(t,"SECTION",{class:!0});var c=w(l);$=x(c,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V($)!=="svelte-xhdrju"&&($.textContent=H),j=y(c),b=x(c,"P",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V(b)!=="svelte-p80gtj"&&(b.textContent=U),I=y(c),C=x(c,"DIV",{class:!0});var P=w(C);F(g.$$.fragment,P),P.forEach(m),L=y(c),_&&_.l(c),c.forEach(m),this.h()},h(){R(n.src,u=X)||i(n,"src",u),i(n,"alt",""),i(n,"class","max-h-10"),i(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),i($,"class","text-8xl font-semibold"),i($,"data-testid","login-title"),i(b,"class","my-7"),i(b,"data-testid","login-info"),i(C,"class","flex items-center justify-center"),i(l,"class","my-[20vh] text-center")},m(t,r){O(e,t,r),E(t,s,r),E(t,a,r),f(a,n),f(a,h),O(d,a,null),E(t,p,r),E(t,l,r),f(l,$),f(l,j),f(l,b),f(l,I),f(l,C),O(g,C,null),f(l,L),_&&_.m(l,null),S=!0},p(t,[r]){const c={};r&1&&(c.url=t[0].url.href),e.$set(c);const P={};r&32&&(P.$$scope={dirty:r,ctx:t}),g.$set(P),t[2]&&_.p(t,r)},i(t){S||(q(e.$$.fragment,t),q(d.$$.fragment,t),q(g.$$.fragment,t),S=!0)},o(t){A(e.$$.fragment,t),A(d.$$.fragment,t),A(g.$$.fragment,t),S=!1},d(t){t&&(m(s),m(a),m(p),m(l)),B(e,t),B(d),B(g),_&&_.d()}}}function nt(o,e,s){let a;T(o,K,p=>s(0,a=p));let{data:n}=e,{settings:u}=n;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(tt({settings:u,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,n=p.data)},[a,u,h,n,d]}class ft extends z{constructor(e){super(),J(this,e,nt,st,N,{data:3})}}export{ft as component}; +import{s as N,b as k,h as v,d as y,j as x,k as w,f as m,o as V,U as R,m as i,i as E,n as f,c as T,t as G,l as M,v as W}from"../chunks/scheduler.C46pS-76.js";import{S as z,i as J,c as D,a as F,m as O,t as q,b as A,d as B}from"../chunks/index.dOVbn71B.js";import{p as K}from"../chunks/stores.Ds4o9nwd.js";import{F as Q,L as X}from"../chunks/logo.UJexZLaa.js";import{P as Y}from"../chunks/page-title.DNhqE1Lj.js";import{B as Z}from"../chunks/button.hs88FdV4.js";import{d as tt}from"../chunks/route-for.B9fTWV7L.js";function et(o){let e;return{c(){e=G("Continue to SSO")},l(s){e=M(s,"Continue to SSO")},m(s,a){E(s,e,a)},d(s){s&&m(e)}}}function at(o){let e,s,a;return{c(){e=v("div"),s=v("p"),a=G(o[2]),this.h()},l(n){e=x(n,"DIV",{class:!0});var u=w(e);s=x(u,"P",{class:!0});var h=w(s);a=M(h,o[2]),h.forEach(m),u.forEach(m),this.h()},h(){i(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),i(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(n,u){E(n,e,u),f(e,s),f(s,a)},p:W,d(n){n&&m(e)}}}function st(o){let e,s,a,n,u,h,d,p,l,$,H="Welcome back.",j,b,U="Let's get you signed in.",I,C,g,L,S;e=new Y({props:{title:"Login",url:o[0].url.href}}),d=new Q({}),g=new Z({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[et]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&at(o);return{c(){D(e.$$.fragment),s=k(),a=v("header"),n=v("img"),h=k(),D(d.$$.fragment),p=k(),l=v("section"),$=v("h1"),$.textContent=H,j=k(),b=v("p"),b.textContent=U,I=k(),C=v("div"),D(g.$$.fragment),L=k(),_&&_.c(),this.h()},l(t){F(e.$$.fragment,t),s=y(t),a=x(t,"HEADER",{class:!0});var r=w(a);n=x(r,"IMG",{src:!0,alt:!0,class:!0}),h=y(r),F(d.$$.fragment,r),r.forEach(m),p=y(t),l=x(t,"SECTION",{class:!0});var c=w(l);$=x(c,"H1",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V($)!=="svelte-xhdrju"&&($.textContent=H),j=y(c),b=x(c,"P",{class:!0,"data-testid":!0,"data-svelte-h":!0}),V(b)!=="svelte-p80gtj"&&(b.textContent=U),I=y(c),C=x(c,"DIV",{class:!0});var P=w(C);F(g.$$.fragment,P),P.forEach(m),L=y(c),_&&_.l(c),c.forEach(m),this.h()},h(){R(n.src,u=X)||i(n,"src",u),i(n,"alt",""),i(n,"class","max-h-10"),i(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),i($,"class","text-8xl font-semibold"),i($,"data-testid","login-title"),i(b,"class","my-7"),i(b,"data-testid","login-info"),i(C,"class","flex items-center justify-center"),i(l,"class","my-[20vh] text-center")},m(t,r){O(e,t,r),E(t,s,r),E(t,a,r),f(a,n),f(a,h),O(d,a,null),E(t,p,r),E(t,l,r),f(l,$),f(l,j),f(l,b),f(l,I),f(l,C),O(g,C,null),f(l,L),_&&_.m(l,null),S=!0},p(t,[r]){const c={};r&1&&(c.url=t[0].url.href),e.$set(c);const P={};r&32&&(P.$$scope={dirty:r,ctx:t}),g.$set(P),t[2]&&_.p(t,r)},i(t){S||(q(e.$$.fragment,t),q(d.$$.fragment,t),q(g.$$.fragment,t),S=!0)},o(t){A(e.$$.fragment,t),A(d.$$.fragment,t),A(g.$$.fragment,t),S=!1},d(t){t&&(m(s),m(a),m(p),m(l)),B(e,t),B(d),B(g),_&&_.d()}}}function nt(o,e,s){let a;T(o,K,p=>s(0,a=p));let{data:n}=e,{settings:u}=n;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(tt({settings:u,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,n=p.data)},[a,u,h,n,d]}class ft extends z{constructor(e){super(),J(this,e,nt,st,N,{data:3})}}export{ft as component}; diff --git a/ui/assets/local/_app/immutable/nodes/7.BBnZN2fU.js b/ui/assets/local/_app/immutable/nodes/7.BQkJzEIm.js similarity index 95% rename from ui/assets/local/_app/immutable/nodes/7.BBnZN2fU.js rename to ui/assets/local/_app/immutable/nodes/7.BQkJzEIm.js index 7da7499ad..f149bbda5 100644 --- a/ui/assets/local/_app/immutable/nodes/7.BBnZN2fU.js +++ b/ui/assets/local/_app/immutable/nodes/7.BQkJzEIm.js @@ -1 +1 @@ -import{s as _e,h as Q,b as L,t as G,j,k as z,f as b,d as O,l as K,m as U,i as T,n as B,q as se,c as Y,v as ie,N as te,O as ne,P as ye,w as fe,x as pe,y as ut,Y as St,a9 as ct,V as Wt,M as mt,a as pt,u as _t,g as dt,e as gt}from"../chunks/scheduler.C46pS-76.js";import{S as de,i as ge,c as A,a as P,m as S,t as d,b as h,d as W,f as oe,g as Z,e as x,h as wt}from"../chunks/index.dOVbn71B.js";import{p as Te}from"../chunks/stores.Dz-RNcUk.js";import{v as Tt}from"../chunks/data-encoder-settings.87VBLn14.js";import{L as Re}from"../chunks/link.BJceiGbc.js";import{t as D}from"../chunks/translate.BBe5dcco.js";import{c as ht,l as Rt,p as Vt,u as yt,v as Fe}from"../chunks/workflows.BzgE0E1S.js";import{e as Se,s as Le,b as me,u as ve,v as Ee,w as Ie,c as Ce,x as De,y as Ae}from"../chunks/route-for.BjP6gGR7.js";import{B as Mt}from"../chunks/button.C_N-TSlx.js";import{L as qt}from"../chunks/loading.BLsNkl8r.js";import{a as $t}from"../chunks/index.mPGqfhEB.js";import{e as We}from"../chunks/each.C6O0oV7R.js";import{w as Be,g as Oe}from"../chunks/entry.DLEzeuD9.js";import{w as Nt,a as Bt,b as Ht,C as Ft,T as Lt}from"../chunks/workflow-terminate-enabled.B8WATLoM.js";import{C as Me,M as kt}from"../chunks/checkbox.CZ5w22eC.js";import{I as bt}from"../chunks/input.CTzUOpgs.js";import{M as vt}from"../chunks/modal.DyMhWY1J.js";import{S as Ot,O as Ut}from"../chunks/option.Bt5AmPHo.js";import{r as Et,f as Pe,b as Ue,p as Qt,g as Qe,t as je}from"../chunks/events.Dh9P6F73.js";import{p as jt}from"../chunks/persist-store.Bvu2qNDI.js";import{t as zt}from"../chunks/versions.CeMhowfV.js";import{i as It}from"../chunks/is-network-error.Dq2Kfkkh.js";import{m as Jt}from"../chunks/route-for-api.BTloiRV6.js";import{P as Yt}from"../chunks/payload-input-with-encoding.BapU-_VF.js";import{t as Gt}from"../chunks/toaster.D-OAJjvv.js";import{B as Kt}from"../chunks/button.BpRIS9ld.js";import{I as Xt}from"../chunks/icon.CfkHLDdJ.js";import{d as He}from"../chunks/menu.FCESMtRU.js";import{S as Ct}from"../chunks/split-button.CWfYBMpf.js";import{T as Zt}from"../chunks/tooltip.D2lOlqUw.js";import{c as xt}from"../chunks/core-user.BxGCJ_SI.js";import{r as ke,w as $e,i as en}from"../chunks/workflow-run.DcChDuxV.js";import{w as qe}from"../chunks/workflow-create-disabled.Dpno7PTz.js";import{W as tn}from"../chunks/workflow-status.4hwv3weu.js";import{C as nn}from"../chunks/compatibility-badge.DuX1WIlP.js";import{k as on,g as rn}from"../chunks/pollers-service.YXEUeA9H.js";import{A as Dt}from"../chunks/alert.nnKn2vnv.js";import{B as Ve}from"../chunks/badge.jG5hkqHT.js";import{C as ln}from"../chunks/index.Bde7eNxE.js";import{T as sn,a as fn,b as he}from"../chunks/tab.CpZOxof2.js";import{n as an}from"../chunks/namespaces.619_s9Tr.js";import{g as un}from"../chunks/get-workflow-relationships.CLftvMta.js";import{h as cn}from"../chunks/has.BWrERxPV.js";import{e as mn,d as pn}from"../chunks/decode-payload.BTpeWKqJ.js";import{t as _n,f as dn}from"../chunks/events-service.DFs0nrNV.js";import{a as gn}from"../chunks/auth-user.BOlglCm6.js";import{r as wn}from"../chunks/data-encoder-config.D-DAVwjK.js";import{c as hn}from"../chunks/copy-to-clipboard.Dh7E1aVf.js";import{s as Ne}from"../chunks/parse-with-big-int.BKSBwM2t.js";function $n(o){let e=D("workflows.back-to-workflows")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function kn(o){var g,I;let e,t,n,r,s,l,f=(((g=o[0])==null?void 0:g.statusCode)??"500")+"",i,a,c,m,E,$,p=(((I=o[0])==null?void 0:I.statusText)??"")+"",u,_;return n=new Re({props:{href:`${Se({namespace:o[2]})}?${o[3]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[$n]},$$scope:{ctx:o}}}),{c(){e=Q("header"),t=Q("div"),A(n.$$.fragment),r=L(),s=Q("div"),l=Q("h1"),i=G(f),a=L(),c=Q("p"),m=G(o[1]),E=L(),$=Q("p"),u=G(p),this.h()},l(k){e=j(k,"HEADER",{class:!0});var v=z(e);t=j(v,"DIV",{class:!0});var M=z(t);P(n.$$.fragment,M),M.forEach(b),v.forEach(b),r=O(k),s=j(k,"DIV",{class:!0});var V=z(s);l=j(V,"H1",{class:!0});var H=z(l);i=K(H,f),H.forEach(b),a=O(V),c=j(V,"P",{class:!0});var q=z(c);m=K(q,o[1]),q.forEach(b),E=O(V),$=j(V,"P",{class:!0});var C=z($);u=K(C,p),C.forEach(b),V.forEach(b),this.h()},h(){U(t,"class","mb-4 block"),U(e,"class","mb-4 flex flex-col gap-1"),U(l,"class","leading-0 text-[12rem] font-semibold"),U(c,"class","-mt-12 text-lg"),U($,"class","text-2xl font-bold text-red-700"),U(s,"class","text-center align-middle")},m(k,v){T(k,e,v),B(e,t),S(n,t,null),T(k,r,v),T(k,s,v),B(s,l),B(l,i),B(s,a),B(s,c),B(c,m),B(s,E),B(s,$),B($,u),_=!0},p(k,[v]){var V,H;const M={};v&12&&(M.href=`${Se({namespace:k[2]})}?${k[3]}`),v&32&&(M.$$scope={dirty:v,ctx:k}),n.$set(M),(!_||v&1)&&f!==(f=(((V=k[0])==null?void 0:V.statusCode)??"500")+"")&&se(i,f),(!_||v&2)&&se(m,k[1]),(!_||v&1)&&p!==(p=(((H=k[0])==null?void 0:H.statusText)??"")+"")&&se(u,p)},i(k){_||(d(n.$$.fragment,k),_=!0)},o(k){h(n.$$.fragment,k),_=!1},d(k){k&&(b(e),b(r),b(s)),W(n)}}}function bn(o,e,t){let n,r,s,l;Y(o,Te,i=>t(4,s=i)),Y(o,ht,i=>t(3,l=i));let{error:f}=e;return o.$$set=i=>{"error"in i&&t(0,f=i.error)},o.$$.update=()=>{o.$$.dirty&16&&t(2,{namespace:n}=s.params,n),o.$$.dirty&1&&t(1,r=f.statusCode===404?D("workflows.workflow-404-title"):D("workflows.workflow-error-title"))},[f,r,n,l,s]}class vn extends de{constructor(e){super(),ge(this,e,bn,kn,_e,{error:0})}}const At=jt("resetWorkflows",{});function ze(o,e,t){const n=o.slice();return n[25]=e[t],n}function En(o){let e,t=D("workflows.reset-modal-title")+"",n;return{c(){e=Q("h3"),n=G(t),this.h()},l(r){e=j(r,"H3",{slot:!0});var s=z(e);n=K(s,t),s.forEach(b),this.h()},h(){U(e,"slot","title")},m(r,s){T(r,e,s),B(e,n)},p:ie,d(r){r&&b(e)}}}function In(o){let e=o[25].id+"",t,n,r=o[25].eventType+"",s;return{c(){t=G(e),n=G(" - "),s=G(r)},l(l){t=K(l,e),n=K(l," - "),s=K(l,r)},m(l,f){T(l,t,f),T(l,n,f),T(l,s,f)},p(l,f){f&512&&e!==(e=l[25].id+"")&&se(t,e),f&512&&r!==(r=l[25].eventType+"")&&se(s,r)},d(l){l&&(b(t),b(n),b(s))}}}function Je(o){let e,t;return e=new Ut({props:{value:o[25].id,$$slots:{default:[In]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&512&&(s.value=n[25].id),r&268435968&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Cn(o){let e,t,n=We(o[9]),r=[];for(let l=0;lh(r[l],1,1,()=>{r[l]=null});return{c(){for(let l=0;loe(e,"checked",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};!t&&f&32&&(t=!0,i.checked=l[5],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function An(o){let e,t,n,r,s,l;function f(m){o[18](m)}let i={id:"reset-exclude-signals-checkbox","data-testid":"reset-exclude-signals-checkbox",label:D("workflows.reset-exclude-signals")};o[6]!==void 0&&(i.checked=o[6]),e=new Me({props:i}),te.push(()=>oe(e,"checked",f));function a(m){o[19](m)}let c={id:"reset-exclude-updates-checkbox","data-testid":"reset-exclude-updates-checkbox",label:D("workflows.reset-exclude-updates")};return o[7]!==void 0&&(c.checked=o[7]),r=new Me({props:c}),te.push(()=>oe(r,"checked",a)),{c(){A(e.$$.fragment),n=L(),A(r.$$.fragment)},l(m){P(e.$$.fragment,m),n=O(m),P(r.$$.fragment,m)},m(m,E){S(e,m,E),T(m,n,E),S(r,m,E),l=!0},p(m,E){const $={};!t&&E&64&&(t=!0,$.checked=m[6],ne(()=>t=!1)),e.$set($);const p={};!s&&E&128&&(s=!0,p.checked=m[7],ne(()=>s=!1)),r.$set(p)},i(m){l||(d(e.$$.fragment,m),d(r.$$.fragment,m),l=!0)},o(m){h(e.$$.fragment,m),h(r.$$.fragment,m),l=!1},d(m){m&&b(n),W(e,m),W(r,m)}}}function Pn(o){let e,t,n,r,s,l,f,i,a,c,m;function E(k){o[17](k)}let $={"data-testid":"workflow-reset-event-id-select",menuClass:"max-h-[16rem]",label:D("workflows.reset-event-radio-group-description"),id:"reset-event-id",$$slots:{default:[Cn]},$$scope:{ctx:o}};o[8]!==void 0&&($.value=o[8]),t=new Ot({props:$}),te.push(()=>oe(t,"value",E));const p=[An,Dn],u=[];function _(k,v){return v&3072&&(s=null),s==null&&(s=!!(k[10]||Jt("1.24.0",k[11]))),s?0:1}l=_(o,-1),f=u[l]=p[l](o);function g(k){o[21](k)}let I={id:"reset-reason",label:D("common.reason")};return o[4]!==void 0&&(I.value=o[4]),a=new bt({props:I}),te.push(()=>oe(a,"value",g)),{c(){e=Q("div"),A(t.$$.fragment),r=L(),f.c(),i=L(),A(a.$$.fragment),this.h()},l(k){e=j(k,"DIV",{class:!0});var v=z(e);P(t.$$.fragment,v),r=O(v),f.l(v),i=O(v),P(a.$$.fragment,v),v.forEach(b),this.h()},h(){U(e,"class","flex w-full flex-col gap-4")},m(k,v){T(k,e,v),S(t,e,null),B(e,r),u[l].m(e,null),B(e,i),S(a,e,null),m=!0},p(k,v){const M={};v&268435968&&(M.$$scope={dirty:v,ctx:k}),!n&&v&256&&(n=!0,M.value=k[8],ne(()=>n=!1)),t.$set(M);let V=l;l=_(k,v),l===V?u[l].p(k,v):(Z(),h(u[V],1,1,()=>{u[V]=null}),x(),f=u[l],f?f.p(k,v):(f=u[l]=p[l](k),f.c()),d(f,1),f.m(e,i));const H={};!c&&v&16&&(c=!0,H.value=k[4],ne(()=>c=!1)),a.$set(H)},i(k){m||(d(t.$$.fragment,k),d(f),d(a.$$.fragment,k),m=!0)},o(k){h(t.$$.fragment,k),h(f),h(a.$$.fragment,k),m=!1},d(k){k&&b(e),W(t),u[l].d(),W(a)}}}function Sn(o){let e,t,n,r;function s(i){o[22](i)}function l(i){o[23](i)}let f={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:D("common.confirm"),cancelText:D("common.cancel"),loading:o[3],confirmDisabled:!o[8],$$slots:{content:[Pn],title:[En]},$$scope:{ctx:o}};return o[2]!==void 0&&(f.error=o[2]),o[0]!==void 0&&(f.open=o[0]),e=new vt({props:f}),te.push(()=>oe(e,"error",s)),te.push(()=>oe(e,"open",l)),e.$on("confirmModal",o[14]),e.$on("cancelModal",o[13]),{c(){A(e.$$.fragment)},l(i){P(e.$$.fragment,i)},m(i,a){S(e,i,a),r=!0},p(i,[a]){const c={};a&8&&(c.loading=i[3]),a&256&&(c.confirmDisabled=!i[8]),a&268439536&&(c.$$scope={dirty:a,ctx:i}),!t&&a&4&&(t=!0,c.error=i[2],ne(()=>t=!1)),!n&&a&1&&(n=!0,c.open=i[0],ne(()=>n=!1)),e.$set(c)},i(i){r||(d(e.$$.fragment,i),r=!0)},o(i){h(e.$$.fragment,i),r=!1},d(i){W(e,i)}}}function Wn(o,e,t){let n,r=ie,s=()=>(r(),r=ye($,w=>t(24,n=w)),$),l,f,i,a;Y(o,Et,w=>t(9,f=w)),Y(o,Rt,w=>t(10,i=w)),Y(o,zt,w=>t(11,a=w)),o.$$.on_destroy.push(()=>r());let{open:c}=e,{workflow:m}=e,{namespace:E}=e,{refresh:$}=e;s();let p="",u=!1,_=Be("");Y(o,_,w=>t(8,l=w));let g,I=!0,k=!1,v=!1;const M=()=>{t(0,c=!1),t(5,I=!0),t(6,k=!1),t(7,v=!1),fe(_,l="",l),t(4,g="")},V=async()=>{t(2,p=""),t(3,u=!0);try{const w=await Vt({namespace:E,workflow:m,eventId:l,reason:g,includeSignals:I,excludeSignals:k,excludeUpdates:v});w&&w.runId&&At.update(F=>({...F,[m.runId]:w.runId})),fe($,n=Date.now(),n),M()}catch(w){t(2,p=It(w)?w.message:D("common.unknown-error"))}finally{t(3,u=!1)}M()};function H(w){l=w,_.set(l)}function q(w){k=w,t(6,k)}function C(w){v=w,t(7,v)}function y(w){I=w,t(5,I)}function J(w){g=w,t(4,g)}function ue(w){p=w,t(2,p)}function ce(w){c=w,t(0,c)}return o.$$set=w=>{"open"in w&&t(0,c=w.open),"workflow"in w&&t(15,m=w.workflow),"namespace"in w&&t(16,E=w.namespace),"refresh"in w&&s(t(1,$=w.refresh))},[c,$,p,u,g,I,k,v,l,f,i,a,_,M,V,m,E,H,q,C,y,J,ue,ce]}class Tn extends de{constructor(e){super(),ge(this,e,Wn,Sn,_e,{open:0,workflow:15,namespace:16,refresh:1})}}function Rn(o){let e,t=D("workflows.signal-modal-title")+"",n;return{c(){e=Q("h3"),n=G(t),this.h()},l(r){e=j(r,"H3",{slot:!0});var s=z(e);n=K(s,t),s.forEach(b),this.h()},h(){U(e,"slot","title")},m(r,s){T(r,e,s),B(e,n)},p:ie,d(r){r&&b(e)}}}function Vn(o){let e,t,n,r,s,l,f,i;function a(p){o[11](p)}let c={id:"signal-name",label:D("workflows.signal-name-label"),required:!0};o[4]!==void 0&&(c.value=o[4]),t=new bt({props:c}),te.push(()=>oe(t,"value",a));function m(p){o[12](p)}function E(p){o[13](p)}let $={};return o[6]!==void 0&&($.input=o[6]),o[5]!==void 0&&($.encoding=o[5]),s=new Yt({props:$}),te.push(()=>oe(s,"input",m)),te.push(()=>oe(s,"encoding",E)),{c(){e=Q("div"),A(t.$$.fragment),r=L(),A(s.$$.fragment),this.h()},l(p){e=j(p,"DIV",{slot:!0,class:!0});var u=z(e);P(t.$$.fragment,u),r=O(u),P(s.$$.fragment,u),u.forEach(b),this.h()},h(){U(e,"slot","content"),U(e,"class","flex flex-col gap-4")},m(p,u){T(p,e,u),S(t,e,null),B(e,r),S(s,e,null),i=!0},p(p,u){const _={};!n&&u&16&&(n=!0,_.value=p[4],ne(()=>n=!1)),t.$set(_);const g={};!l&&u&64&&(l=!0,g.input=p[6],ne(()=>l=!1)),!f&&u&32&&(f=!0,g.encoding=p[5],ne(()=>f=!1)),s.$set(g)},i(p){i||(d(t.$$.fragment,p),d(s.$$.fragment,p),i=!0)},o(p){h(t.$$.fragment,p),h(s.$$.fragment,p),i=!1},d(p){p&&b(e),W(t),W(s)}}}function yn(o){let e,t,n,r;function s(i){o[14](i)}function l(i){o[15](i)}let f={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",loading:o[3],confirmText:D("common.submit"),cancelText:D("common.cancel"),confirmDisabled:!o[4]||!o[5],$$slots:{content:[Vn],title:[Rn]},$$scope:{ctx:o}};return o[2]!==void 0&&(f.error=o[2]),o[0]!==void 0&&(f.open=o[0]),e=new vt({props:f}),te.push(()=>oe(e,"error",s)),te.push(()=>oe(e,"open",l)),e.$on("cancelModal",o[7]),e.$on("confirmModal",o[8]),{c(){A(e.$$.fragment)},l(i){P(e.$$.fragment,i)},m(i,a){S(e,i,a),r=!0},p(i,[a]){const c={};a&8&&(c.loading=i[3]),a&48&&(c.confirmDisabled=!i[4]||!i[5]),a&262256&&(c.$$scope={dirty:a,ctx:i}),!t&&a&4&&(t=!0,c.error=i[2],ne(()=>t=!1)),!n&&a&1&&(n=!0,c.open=i[0],ne(()=>n=!1)),e.$set(c)},i(i){r||(d(e.$$.fragment,i),r=!0)},o(i){h(e.$$.fragment,i),r=!1},d(i){W(e,i)}}}const Ye="json/plain";function Mn(o,e,t){let n,r=ie,s=()=>(r(),r=ye(E,C=>t(16,n=C)),E),l,f=ie,i=()=>(f(),f=ye(_,C=>t(17,l=C)),_);o.$$.on_destroy.push(()=>r()),o.$$.on_destroy.push(()=>f());let{open:a}=e,{workflow:c}=e,{namespace:m}=e,{refresh:E}=e;s();let $="",p=!1,u="",_=Be(Ye);i();let g="";const I=()=>{t(0,a=!1),t(4,u=""),t(6,g=""),fe(_,l=Ye,l)},k=async()=>{t(2,$=""),t(3,p=!0);try{await yt({namespace:m,workflow:c,input:g,encoding:l,name:u}),fe(E,n=Date.now(),n),Gt.push({message:D("workflows.signal-success"),id:"workflow-signal-success-toast"}),I()}catch(C){t(2,$=It(C)?C.message:D("common.unknown-error"))}finally{t(3,p=!1)}};function v(C){u=C,t(4,u)}function M(C){g=C,t(6,g)}function V(C){_=C,i(t(5,_))}function H(C){$=C,t(2,$)}function q(C){a=C,t(0,a)}return o.$$set=C=>{"open"in C&&t(0,a=C.open),"workflow"in C&&t(9,c=C.workflow),"namespace"in C&&t(10,m=C.namespace),"refresh"in C&&s(t(1,E=C.refresh))},[a,E,$,p,u,_,g,I,k,c,m,v,M,V,H,q]}class qn extends de{constructor(e){super(),ge(this,e,Mn,yn,_e,{open:0,workflow:9,namespace:10,refresh:1})}}const Nn=(o,e,t)=>!o.disableWriteActions&&!o.workflowSignalDisabled&&!e.namespaceWriteDisabled(t);function Ge(o,e,t){const n=o.slice();return n[31]=e[t].onClick,n[32]=e[t].destructive,n[33]=e[t].label,n[34]=e[t].enabled,n[35]=e[t].testId,n[36]=e[t].description,n}function Bn(o){let e,t;return e=new Zt({props:{bottomRight:!0,width:200,text:o[4],hide:o[7],$$slots:{default:[On]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&16&&(s.text=n[4]),r[0]&128&&(s.hide=n[7]),r[0]&2176|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Hn(o){let e,t;return e=new Ct({props:{id:"workflow-actions",menuClass:"w-[16rem]",position:"right",primaryActionDisabled:!o[7],label:D("workflows.reset"),menuLabel:D("workflows.workflow-actions"),$$slots:{default:[Qn]},$$scope:{ctx:o}}}),e.$on("click",o[25]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&128&&(s.primaryActionDisabled=!n[7]),r[0]&3|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Fn(o){let e,t;return e=new Ct({props:{id:"workflow-actions",menuClass:"w-[16rem] md:w-[24rem]",position:"right",disabled:o[14],primaryActionDisabled:!o[15]||o[2],label:D("workflows.request-cancellation"),menuLabel:D("workflows.workflow-actions"),$$slots:{default:[Jn]},$$scope:{ctx:o}}}),e.$on("click",o[23]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&16384&&(s.disabled=n[14]),r[0]&32772&&(s.primaryActionDisabled=!n[15]||n[2]),r[0]&8451|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ln(o){let e=D("workflows.reset")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function On(o){let e,t;return e=new Kt({props:{"aria-label":D("workflows.reset"),disabled:!o[7],variant:"primary","data-testid":"workflow-reset-button",$$slots:{default:[Ln]},$$scope:{ctx:o}}}),e.$on("click",o[26]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&128&&(s.disabled=!n[7]),r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Un(o){let e=D("workflows.start-workflow-like-this-one")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function Qn(o){let e,t;return e=new He({props:{"data-testid":"start-workflow-button",$$slots:{default:[Un]},$$scope:{ctx:o}}}),e.$on("click",o[24]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ke(o){let e,t;return e=new kt({}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function jn(o){let e=o[33]+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p(n,r){r[0]&8192&&e!==(e=n[33]+"")&&se(t,e)},d(n){n&&b(t)}}}function Xe(o){let e,t,n,r=o[32]&&Ke();return t=new He({props:{destructive:o[32],disabled:!o[34],"data-testid":o[35],description:o[36],$$slots:{default:[jn]},$$scope:{ctx:o}}}),t.$on("click",function(){St(o[31])&&o[31].apply(this,arguments)}),{c(){r&&r.c(),e=L(),A(t.$$.fragment)},l(s){r&&r.l(s),e=O(s),P(t.$$.fragment,s)},m(s,l){r&&r.m(s,l),T(s,e,l),S(t,s,l),n=!0},p(s,l){o=s,o[32]?r?l[0]&8192&&d(r,1):(r=Ke(),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(Z(),h(r,1,1,()=>{r=null}),x());const f={};l[0]&8192&&(f.destructive=o[32]),l[0]&8192&&(f.disabled=!o[34]),l[0]&8192&&(f["data-testid"]=o[35]),l[0]&8192&&(f.description=o[36]),l[0]&8192|l[1]&256&&(f.$$scope={dirty:l,ctx:o}),t.$set(f)},i(s){n||(d(r),d(t.$$.fragment,s),n=!0)},o(s){h(r),h(t.$$.fragment,s),n=!1},d(s){s&&b(e),r&&r.d(s),W(t,s)}}}function Ze(o){let e,t,n,r;return e=new kt({}),n=new He({props:{"data-testid":"start-workflow-button",$$slots:{default:[zn]},$$scope:{ctx:o}}}),n.$on("click",o[22]),{c(){A(e.$$.fragment),t=L(),A(n.$$.fragment)},l(s){P(e.$$.fragment,s),t=O(s),P(n.$$.fragment,s)},m(s,l){S(e,s,l),T(s,t,l),S(n,s,l),r=!0},p(s,l){const f={};l[1]&256&&(f.$$scope={dirty:l,ctx:s}),n.$set(f)},i(s){r||(d(e.$$.fragment,s),d(n.$$.fragment,s),r=!0)},o(s){h(e.$$.fragment,s),h(n.$$.fragment,s),r=!1},d(s){s&&b(t),W(e,s),W(n,s)}}}function zn(o){let e=D("workflows.start-workflow-like-this-one")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function Jn(o){let e,t=!qe(o[8]),n,r,s=We(o[13]),l=[];for(let a=0;ah(l[a],1,1,()=>{l[a]=null});let i=t&&Ze(o);return{c(){for(let a=0;a{i=null}),x())},i(a){if(!r){for(let c=0;coe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&2048&&(t=!0,i.open=l[11],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function et(o){let e,t,n;function r(l){o[28](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[12]!==void 0&&(s.open=o[12]),e=new qn({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&4096&&(t=!0,i.open=l[12],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function tt(o){let e,t,n;function r(l){o[29](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[9]!==void 0&&(s.open=o[9]),e=new Ft({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&512&&(t=!0,i.open=l[9],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function nt(o){let e,t,n;function r(l){o[30](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[10]!==void 0&&(s.open=o[10]),e=new Lt({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&1024&&(t=!0,i.open=l[10],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function Yn(o){let e,t,n,r,s,l,f,i,a;const c=[Fn,Hn,Bn],m=[];function E(g,I){return I[0]&256&&(e=null),g[3]?0:(e==null&&(e=!qe(g[8])),e?1:2)}t=E(o,[-1,-1]),n=m[t]=c[t](o);let $=o[7]&&xe(o),p=o[6]&&et(o),u=o[15]&&tt(o),_=o[5]&&nt(o);return{c(){n.c(),r=L(),$&&$.c(),s=L(),p&&p.c(),l=L(),u&&u.c(),f=L(),_&&_.c(),i=pe()},l(g){n.l(g),r=O(g),$&&$.l(g),s=O(g),p&&p.l(g),l=O(g),u&&u.l(g),f=O(g),_&&_.l(g),i=pe()},m(g,I){m[t].m(g,I),T(g,r,I),$&&$.m(g,I),T(g,s,I),p&&p.m(g,I),T(g,l,I),u&&u.m(g,I),T(g,f,I),_&&_.m(g,I),T(g,i,I),a=!0},p(g,I){let k=t;t=E(g,I),t===k?m[t].p(g,I):(Z(),h(m[k],1,1,()=>{m[k]=null}),x(),n=m[t],n?n.p(g,I):(n=m[t]=c[t](g),n.c()),d(n,1),n.m(r.parentNode,r)),g[7]?$?($.p(g,I),I[0]&128&&d($,1)):($=xe(g),$.c(),d($,1),$.m(s.parentNode,s)):$&&(Z(),h($,1,1,()=>{$=null}),x()),g[6]?p?(p.p(g,I),I[0]&64&&d(p,1)):(p=et(g),p.c(),d(p,1),p.m(l.parentNode,l)):p&&(Z(),h(p,1,1,()=>{p=null}),x()),g[15]?u?(u.p(g,I),I[0]&32768&&d(u,1)):(u=tt(g),u.c(),d(u,1),u.m(f.parentNode,f)):u&&(Z(),h(u,1,1,()=>{u=null}),x()),g[5]?_?(_.p(g,I),I[0]&32&&d(_,1)):(_=nt(g),_.c(),d(_,1),_.m(i.parentNode,i)):_&&(Z(),h(_,1,1,()=>{_=null}),x())},i(g){a||(d(n),d($),d(p),d(u),d(_),a=!0)},o(g){h(n),h($),h(p),h(u),h(_),a=!1},d(g){g&&(b(r),b(s),b(l),b(f),b(i)),m[t].d(g),$&&$.d(g),p&&p.d(g),u&&u.d(g),_&&_.d(g)}}}function Gn(o,e,t){let n,r,s,l,f,i,a,c,m;Y(o,Et,N=>t(20,a=N)),Y(o,Te,N=>t(8,m=N));var E,$;let{workflow:p}=e,{namespace:u}=e,{cancelInProgress:_}=e,{isRunning:g}=e,I=!1,k=!1,v=!1,M=!1,V,H=xt();Y(o,H,N=>t(21,c=N));let q;const C=()=>Oe(Le({namespace:u,workflowId:p.id,taskQueue:p.taskQueue,workflowType:p.name})),y=()=>t(9,I=!0),J=()=>Oe(Le({namespace:u,workflowId:p.id,taskQueue:p.taskQueue,workflowType:p.name})),ue=()=>t(11,v=!0),ce=()=>t(11,v=!0);function w(N){v=N,t(11,v),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}function F(N){M=N,t(12,M),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}function R(N){I=N,t(9,I)}function X(N){k=N,t(10,k),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}return o.$$set=N=>{"workflow"in N&&t(0,p=N.workflow),"namespace"in N&&t(1,u=N.namespace),"cancelInProgress"in N&&t(2,_=N.cancelInProgress),"isRunning"in N&&t(3,g=N.isRunning)},o.$$.update=()=>{o.$$.dirty[0]&2097410&&t(15,n=Nt(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(6,r=Nn(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(5,s=Bt(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(19,l=Ht(m.data.settings,c,u)),o.$$.dirty[0]&1572865&&t(7,f=l&&p.pendingChildren.length===0&&a.length>0),o.$$.dirty[0]&224&&t(14,i=!f&&!r&&!s),o.$$.dirty[0]&1966081&&(l?l&&(t(17,E=p==null?void 0:p.pendingChildren)===null||E===void 0?void 0:E.length)>0?t(4,V=D("workflows.reset-disabled-pending-children")):l&&(t(18,$=p==null?void 0:p.pendingChildren)===null||$===void 0?void 0:$.length)===0&&a.length===0&&t(4,V=D("workflows.reset-disabled-no-events")):t(4,V=D("workflows.reset-disabled-unauthorized"))),o.$$.dirty[0]&240&&t(13,q=[{label:D("workflows.reset"),onClick:()=>t(11,v=!0),testId:"reset-button",enabled:f,description:f?"":V},{label:D("workflows.signal"),onClick:()=>t(12,M=!0),testId:"signal-button",enabled:r,description:r?"":D("workflows.signal-disabled")},{label:D("workflows.terminate"),onClick:()=>t(10,k=!0),testId:"terminate-button",enabled:s,destructive:!0,description:s?"":D("workflows.terminate-disabled")}])},[p,u,_,g,V,s,r,f,m,I,k,v,M,q,i,n,H,E,$,l,a,c,C,y,J,ue,ce,w,F,R,X]}class Kn extends de{constructor(e){super(),ge(this,e,Gn,Yn,_e,{workflow:0,namespace:1,cancelInProgress:2,isRunning:3},null,[-1,-1])}}function Xn(o){let e,t,n=D("workers.buildId")+"",r,s,l;return s=new nn({props:{active:!0,buildId:o[0]}}),{c(){e=Q("p"),t=Q("span"),r=G(n),A(s.$$.fragment),this.h()},l(f){e=j(f,"P",{class:!0});var i=z(e);t=j(i,"SPAN",{});var a=z(t);r=K(a,n),a.forEach(b),P(s.$$.fragment,i),i.forEach(b),this.h()},h(){U(e,"class","flex items-center gap-1")},m(f,i){T(f,e,i),B(e,t),B(t,r),S(s,e,null),l=!0},p(f,[i]){const a={};i&1&&(a.buildId=f[0]),s.$set(a)},i(f){l||(d(s.$$.fragment,f),l=!0)},o(f){h(s.$$.fragment,f),l=!1},d(f){f&&b(e),W(s)}}}function Zn(o,e,t){let n,{workflow:r}=e;return o.$$set=s=>{"workflow"in s&&t(1,r=s.workflow)},o.$$.update=()=>{o.$$.dirty&2&&t(0,n=on(r))},[n,r]}class xn extends de{constructor(e){super(),ge(this,e,Zn,Xn,_e,{workflow:1})}}const eo=(o,e)=>{const t=o==="Running",n=e==null?void 0:e.some(r=>(r==null?void 0:r.eventType)==="WorkflowExecutionCancelRequested");return t&&n},ot=o=>{const e=o==null?void 0:o.indexOf("?");return e>-1?o.slice(0,e):o},le=(o,e,t=!1)=>{const n=ot(o).split("/"),r=ot(e).split("/");if(t&&n.length!==r.length)return!1;for(let s=0;s{l=null}),x()),(!s||c&2)&&n!==(n=((E=(m=a[1])==null?void 0:m.pendingActivities)==null?void 0:E.length)+"")&&se(r,n)},i(a){s||(d(l),s=!0)},o(a){h(l),s=!1},d(a){a&&b(e),l&&l.d()}}}function uo(o){let e,t;return e=new Ve({props:{type:o[9]?"warning":"primary",class:"px-2 py-0",$$slots:{default:[ao]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&512&&(s.type=n[9]?"warning":"primary"),r&8389122&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function co(o){let e,t,n,r,s,l,f,i,a,c,m,E,$,p;return e=new he({props:{label:D("workflows.history-tab"),id:"history-tab",href:me({...o[11]}),active:le(o[4].url.pathname,me({...o[11]})),$$slots:{default:[ro]},$$scope:{ctx:o}}}),n=new he({props:{label:D("workflows.workers-tab"),id:"workers-tab",href:ve(o[11]),active:le(o[4].url.pathname,ve(o[11])),$$slots:{default:[so]},$$scope:{ctx:o}}}),s=new he({props:{label:D("workflows.relationships"),id:"relationships-tab",href:Ee(o[11]),active:le(o[4].url.pathname,Ee(o[11])),$$slots:{default:[io]},$$scope:{ctx:o}}}),f=new he({props:{label:D("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ie(o[11]),active:le(o[4].url.pathname,Ie(o[11])),$$slots:{default:[uo]},$$scope:{ctx:o}}}),a=new he({props:{label:D("workflows.call-stack-tab"),id:"call-stack-tab",href:Ce(o[11]),active:le(o[4].url.pathname,Ce(o[11]))}}),m=new he({props:{label:D("workflows.queries-tab"),id:"queries-tab",href:De(o[11]),active:le(o[4].url.pathname,De(o[11]))}}),$=new he({props:{label:D("workflows.metadata-tab"),id:"metadata-tab",href:Ae(o[11]),active:le(o[4].url.pathname,Ae(o[11]))}}),{c(){A(e.$$.fragment),t=L(),A(n.$$.fragment),r=L(),A(s.$$.fragment),l=L(),A(f.$$.fragment),i=L(),A(a.$$.fragment),c=L(),A(m.$$.fragment),E=L(),A($.$$.fragment)},l(u){P(e.$$.fragment,u),t=O(u),P(n.$$.fragment,u),r=O(u),P(s.$$.fragment,u),l=O(u),P(f.$$.fragment,u),i=O(u),P(a.$$.fragment,u),c=O(u),P(m.$$.fragment,u),E=O(u),P($.$$.fragment,u)},m(u,_){S(e,u,_),T(u,t,_),S(n,u,_),T(u,r,_),S(s,u,_),T(u,l,_),S(f,u,_),T(u,i,_),S(a,u,_),T(u,c,_),S(m,u,_),T(u,E,_),S($,u,_),p=!0},p(u,_){const g={};_&2048&&(g.href=me({...u[11]})),_&2064&&(g.active=le(u[4].url.pathname,me({...u[11]}))),_&8388610&&(g.$$scope={dirty:_,ctx:u}),e.$set(g);const I={};_&2048&&(I.href=ve(u[11])),_&2064&&(I.active=le(u[4].url.pathname,ve(u[11]))),_&8396800&&(I.$$scope={dirty:_,ctx:u}),n.$set(I);const k={};_&2048&&(k.href=Ee(u[11])),_&2064&&(k.active=le(u[4].url.pathname,Ee(u[11]))),_&8388640&&(k.$$scope={dirty:_,ctx:u}),s.$set(k);const v={};_&2048&&(v.href=Ie(u[11])),_&2064&&(v.active=le(u[4].url.pathname,Ie(u[11]))),_&8389122&&(v.$$scope={dirty:_,ctx:u}),f.$set(v);const M={};_&2048&&(M.href=Ce(u[11])),_&2064&&(M.active=le(u[4].url.pathname,Ce(u[11]))),a.$set(M);const V={};_&2048&&(V.href=De(u[11])),_&2064&&(V.active=le(u[4].url.pathname,De(u[11]))),m.$set(V);const H={};_&2048&&(H.href=Ae(u[11])),_&2064&&(H.active=le(u[4].url.pathname,Ae(u[11]))),$.$set(H)},i(u){p||(d(e.$$.fragment,u),d(n.$$.fragment,u),d(s.$$.fragment,u),d(f.$$.fragment,u),d(a.$$.fragment,u),d(m.$$.fragment,u),d($.$$.fragment,u),p=!0)},o(u){h(e.$$.fragment,u),h(n.$$.fragment,u),h(s.$$.fragment,u),h(f.$$.fragment,u),h(a.$$.fragment,u),h(m.$$.fragment,u),h($.$$.fragment,u),p=!1},d(u){u&&(b(t),b(r),b(l),b(i),b(c),b(E)),W(e,u),W(n,u),W(s,u),W(f,u),W(a,u),W(m,u),W($,u)}}}function mo(o){let e,t;return e=new fn({props:{class:"flex flex-wrap gap-6 p-4 pl-0",label:"workflow detail",$$slots:{default:[co]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&8399410&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function ft(o){let e,t,n,r;return t=new Dt({props:{icon:"info",intent:"info",title:D("workflows.cancel-request-sent"),$$slots:{default:[po]},$$scope:{ctx:o}}}),{c(){e=Q("div"),A(t.$$.fragment)},l(s){e=j(s,"DIV",{});var l=z(e);P(t.$$.fragment,l),l.forEach(b)},m(s,l){T(s,e,l),S(t,e,null),r=!0},p(s,l){const f={};l&8388608&&(f.$$scope={dirty:l,ctx:s}),t.$set(f)},i(s){r||(d(t.$$.fragment,s),s&&(n||ct(()=>{n=wt(e,$t,{duration:200,delay:100}),n.start()})),r=!0)},o(s){h(t.$$.fragment,s),r=!1},d(s){s&&b(e),W(t)}}}function po(o){let e=D("workflows.cancel-request-sent-description")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function it(o){let e,t,n,r;return t=new Dt({props:{icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:D("workflows.reset-success-alert-title"),$$slots:{default:[go]},$$scope:{ctx:o}}}),{c(){e=Q("div"),A(t.$$.fragment)},l(s){e=j(s,"DIV",{});var l=z(e);P(t.$$.fragment,l),l.forEach(b)},m(s,l){T(s,e,l),S(t,e,null),r=!0},p(s,l){const f={};l&8388621&&(f.$$scope={dirty:l,ctx:s}),t.$set(f)},i(s){r||(d(t.$$.fragment,s),s&&(n||ct(()=>{n=wt(e,$t,{duration:200,delay:100}),n.start()})),r=!0)},o(s){h(t.$$.fragment,s),r=!1},d(s){s&&b(e),W(t)}}}function _o(o){let e;return{c(){e=G("here")},l(t){e=K(t,"here")},m(t,n){T(t,e,n)},d(t){t&&b(e)}}}function go(o){var s,l,f,i;let e,t,n,r;return t=new Re({props:{href:me({namespace:o[0],workflow:(l=(s=o[2])==null?void 0:s.workflow)==null?void 0:l.id,run:o[3][(i=(f=o[2])==null?void 0:f.workflow)==null?void 0:i.runId]}),$$slots:{default:[_o]},$$scope:{ctx:o}}}),{c(){e=G("You can find the resulting Workflow Execution "),A(t.$$.fragment),n=G(".")},l(a){e=K(a,"You can find the resulting Workflow Execution "),P(t.$$.fragment,a),n=K(a,".")},m(a,c){T(a,e,c),S(t,a,c),T(a,n,c),r=!0},p(a,c){var E,$,p,u;const m={};c&13&&(m.href=me({namespace:a[0],workflow:($=(E=a[2])==null?void 0:E.workflow)==null?void 0:$.id,run:a[3][(u=(p=a[2])==null?void 0:p.workflow)==null?void 0:u.runId]})),c&8388608&&(m.$$scope={dirty:c,ctx:a}),t.$set(m)},i(a){r||(d(t.$$.fragment,a),r=!0)},o(a){h(t.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n)),W(t,a)}}}function wo(o){var ue,ce;let e,t,n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I,k,v,M,V,H;n=new Re({props:{href:`${Se({namespace:o[0]})}?${o[14]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[to]},$$scope:{ctx:o}}});let q=o[12]&&rt(o);c=new tn({props:{status:(ue=o[1])==null?void 0:ue.status,big:!0}}),p=new ln({props:{copyIconTitle:D("common.copy-icon-title"),copySuccessIconTitle:D("common.copy-success-icon-title"),content:(ce=o[1])==null?void 0:ce.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}});let C=o[6]&<(o);I=new Kn({props:{isRunning:o[10],cancelInProgress:o[8],workflow:o[1],namespace:o[0]}}),v=new sn({props:{$$slots:{default:[mo]},$$scope:{ctx:o}}});let y=o[8]&&ft(o),J=o[7]&&it(o);return{c(){e=Q("div"),t=Q("div"),A(n.$$.fragment),r=L(),q&&q.c(),s=L(),l=Q("header"),f=Q("div"),i=Q("div"),a=Q("div"),A(c.$$.fragment),m=L(),E=Q("div"),$=Q("h1"),A(p.$$.fragment),u=L(),C&&C.c(),_=L(),g=Q("div"),A(I.$$.fragment),k=L(),A(v.$$.fragment),M=L(),y&&y.c(),V=L(),J&&J.c(),this.h()},l(w){e=j(w,"DIV",{class:!0});var F=z(e);t=j(F,"DIV",{class:!0});var R=z(t);P(n.$$.fragment,R),r=O(R),q&&q.l(R),R.forEach(b),F.forEach(b),s=O(w),l=j(w,"HEADER",{class:!0});var X=z(l);f=j(X,"DIV",{class:!0});var N=z(f);i=j(N,"DIV",{class:!0});var ee=z(i);a=j(ee,"DIV",{class:!0});var re=z(a);P(c.$$.fragment,re),re.forEach(b),m=O(ee),E=j(ee,"DIV",{class:!0});var ae=z(E);$=j(ae,"H1",{"data-testid":!0,class:!0});var we=z($);P(p.$$.fragment,we),we.forEach(b),u=O(ae),C&&C.l(ae),ae.forEach(b),ee.forEach(b),_=O(N),g=j(N,"DIV",{class:!0});var be=z(g);P(I.$$.fragment,be),be.forEach(b),N.forEach(b),k=O(X),P(v.$$.fragment,X),M=O(X),y&&y.l(X),V=O(X),J&&J.l(X),X.forEach(b),this.h()},h(){U(t,"class","flex items-center gap-2"),U(e,"class","flex items-center justify-between pb-4"),U(a,"class","px-2"),U($,"data-testid","workflow-id-heading"),U($,"class","gap-0 overflow-hidden"),U(E,"class","flex flex-col flex-wrap gap-0"),U(i,"class","flex flex-col items-center gap-4 lg:flex-row"),U(g,"class","px-2"),U(f,"class","flex flex-col items-center justify-between gap-4 lg:flex-row"),U(l,"class","rounded-top flex flex-col gap-0")},m(w,F){T(w,e,F),B(e,t),S(n,t,null),B(t,r),q&&q.m(t,null),T(w,s,F),T(w,l,F),B(l,f),B(f,i),B(i,a),S(c,a,null),B(i,m),B(i,E),B(E,$),S(p,$,null),B(E,u),C&&C.m(E,null),B(f,_),B(f,g),S(I,g,null),B(l,k),S(v,l,null),B(l,M),y&&y.m(l,null),B(l,V),J&&J.m(l,null),H=!0},p(w,[F]){var ae,we;const R={};F&16385&&(R.href=`${Se({namespace:w[0]})}?${w[14]}`),F&8392704&&(R.$$scope={dirty:F,ctx:w}),n.$set(R),w[12]?q?(q.p(w,F),F&4096&&d(q,1)):(q=rt(w),q.c(),d(q,1),q.m(t,null)):q&&(Z(),h(q,1,1,()=>{q=null}),x());const X={};F&2&&(X.status=(ae=w[1])==null?void 0:ae.status),c.$set(X);const N={};F&2&&(N.content=(we=w[1])==null?void 0:we.id),p.$set(N),w[6]?C?(C.p(w,F),F&64&&d(C,1)):(C=lt(w),C.c(),d(C,1),C.m(E,null)):C&&(Z(),h(C,1,1,()=>{C=null}),x());const ee={};F&1024&&(ee.isRunning=w[10]),F&256&&(ee.cancelInProgress=w[8]),F&2&&(ee.workflow=w[1]),F&1&&(ee.namespace=w[0]),I.$set(ee);const re={};F&8399410&&(re.$$scope={dirty:F,ctx:w}),v.$set(re),w[8]?y?(y.p(w,F),F&256&&d(y,1)):(y=ft(w),y.c(),d(y,1),y.m(l,V)):y&&(Z(),h(y,1,1,()=>{y=null}),x()),w[7]?J?(J.p(w,F),F&128&&d(J,1)):(J=it(w),J.c(),d(J,1),J.m(l,null)):J&&(Z(),h(J,1,1,()=>{J=null}),x())},i(w){H||(d(n.$$.fragment,w),d(q),d(c.$$.fragment,w),d(p.$$.fragment,w),d(C),d(I.$$.fragment,w),d(v.$$.fragment,w),d(y),d(J),H=!0)},o(w){h(n.$$.fragment,w),h(q),h(c.$$.fragment,w),h(p.$$.fragment,w),h(C),h(I.$$.fragment,w),h(v.$$.fragment,w),h(y),h(J),H=!1},d(w){w&&(b(e),b(s),b(l)),W(n),q&&q.d(),W(c),W(p),C&&C.d(),W(I),W(v),y&&y.d(),J&&J.d()}}}function ho(o,e,t){let n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I;Y(o,an,y=>t(21,$=y)),Y(o,Pe,y=>t(22,p=y)),Y(o,$e,y=>t(2,u=y)),Y(o,At,y=>t(3,_=y)),Y(o,Te,y=>t(4,g=y)),Y(o,ht,y=>t(14,I=y));var k,v,M,V,H,q;let{namespace:C}=e;return o.$$set=y=>{"namespace"in y&&t(0,C=y.namespace)},o.$$.update=()=>{o.$$.dirty&4&&t(1,{workflow:n,workers:r}=u,n,(t(13,r),t(2,u))),o.$$.dirty&16&&t(12,s=g.params.id),o.$$.dirty&3&&t(11,l={namespace:C,workflow:n==null?void 0:n.id,run:n==null?void 0:n.runId}),o.$$.dirty&32772&&t(10,f=t(15,k=u==null?void 0:u.workflow)===null||k===void 0?void 0:k.isRunning),o.$$.dirty&65540&&t(9,i=["Terminated","TimedOut","Canceled"].includes(t(16,v=u.workflow)===null||v===void 0?void 0:v.status)),o.$$.dirty&4325380&&t(8,a=eo(t(17,M=u==null?void 0:u.workflow)===null||M===void 0?void 0:M.status,p)),o.$$.dirty&262156&&t(7,c=cn(_,t(18,V=u==null?void 0:u.workflow)===null||V===void 0?void 0:V.runId)),o.$$.dirty&1572866&&t(6,m=t(19,H=n==null?void 0:n.assignedBuildId)!==null&&H!==void 0?H:t(20,q=n==null?void 0:n.mostRecentWorkerVersionStamp)===null||q===void 0?void 0:q.useVersioning),o.$$.dirty&6291458&&t(5,E=un(n,p,$))},[C,n,u,_,g,E,m,c,a,i,f,l,s,r,I,k,v,M,V,H,q,$,p]}class $o extends de{constructor(e){super(),ge(this,e,ho,wo,_e,{namespace:0})}}async function ko({activity:o,namespace:e,settings:t,accessToken:n},{convertWithCodec:r=mn,decodeAttributes:s=pn}={}){const l=await r({attributes:o,namespace:e,settings:t,accessToken:n});return s(l)}const bo=async({activity:o,namespace:e,settings:t,accessToken:n})=>await ko({activity:o,namespace:e,settings:t,accessToken:n}),at=async(o,e,t,n)=>{const r=(o==null?void 0:o.pendingActivities)??[],s=[];for(const l of r){const f=await bo({activity:l,namespace:e,settings:t,accessToken:n});s.push(f)}return s};function vo(o){let e,t,n,r,s;const l=[Do,Co,Io],f=[];function i(a,c){return a[2]?0:a[1].workflow?2:1}return t=i(o),n=f[t]=l[t](o),{c(){e=Q("div"),n.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var c=z(e);n.l(c),c.forEach(b),this.h()},h(){U(e,"class",r="absolute bottom-0 left-0 right-0 "+(o[6]?"top-[540px]":"top-0")+" } flex h-full flex-col gap-0")},m(a,c){T(a,e,c),f[t].m(e,null),s=!0},p(a,c){let m=t;t=i(a),t===m?f[t].p(a,c):(Z(),h(f[m],1,1,()=>{f[m]=null}),x(),n=f[t],n?n.p(a,c):(n=f[t]=l[t](a),n.c()),d(n,1),n.m(e,null)),(!s||c&64&&r!==(r="absolute bottom-0 left-0 right-0 "+(a[6]?"top-[540px]":"top-0")+" } flex h-full flex-col gap-0"))&&U(e,"class",r)},i(a){s||(d(n),s=!0)},o(a){h(n),s=!1},d(a){a&&b(e),f[t].d()}}}function Eo(o){let e,t,n,r=Ne(o[3],null,2)+"",s,l;return t=new Mt({props:{copyIconTitle:D("common.copy-icon-title"),copySuccessIconTitle:D("common.copy-success-icon-title"),class:"absolute right-1 top-1",copied:o[5]}}),t.$on("click",o[8]),{c(){e=Q("div"),A(t.$$.fragment),n=L(),s=G(r),this.h()},l(f){e=j(f,"DIV",{class:!0});var i=z(e);P(t.$$.fragment,i),n=O(i),s=K(i,r),i.forEach(b),this.h()},h(){U(e,"class","relative h-auto whitespace-break-spaces break-words rounded bg-primary p-4")},m(f,i){T(f,e,i),S(t,e,null),B(e,n),B(e,s),l=!0},p(f,i){const a={};i&32&&(a.copied=f[5]),t.$set(a),(!l||i&8)&&r!==(r=Ne(f[3],null,2)+"")&&se(s,r)},i(f){l||(d(t.$$.fragment,f),l=!0)},o(f){h(t.$$.fragment,f),l=!1},d(f){f&&b(e),W(t)}}}function Io(o){let e,t,n,r;t=new $o({props:{namespace:o[0].params.namespace}});const s=o[16].default,l=pt(s,o,o[15],null);return{c(){e=Q("div"),A(t.$$.fragment),n=L(),l&&l.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var i=z(e);P(t.$$.fragment,i),i.forEach(b),n=O(f),l&&l.l(f),this.h()},h(){U(e,"class","px-8 pt-8 md:pt-20")},m(f,i){T(f,e,i),S(t,e,null),T(f,n,i),l&&l.m(f,i),r=!0},p(f,i){const a={};i&1&&(a.namespace=f[0].params.namespace),t.$set(a),l&&l.p&&(!r||i&32768)&&_t(l,s,f,f[15],r?gt(s,f[15],i,null):dt(f[15]),null)},i(f){r||(d(t.$$.fragment,f),d(l,f),r=!0)},o(f){h(t.$$.fragment,f),h(l,f),r=!1},d(f){f&&(b(e),b(n)),W(t),l&&l.d(f)}}}function Co(o){let e,t;return e=new qt({props:{class:"pt-24"}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p:ie,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Do(o){let e,t;return e=new vn({props:{error:o[2]}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&4&&(s.error=n[2]),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ao(o){let e,t,n,r;const s=[Eo,vo],l=[];function f(i,a){return i[4]?0:1}return e=f(o),t=l[e]=s[e](o),{c(){t.c(),n=pe()},l(i){t.l(i),n=pe()},m(i,a){l[e].m(i,a),T(i,n,a),r=!0},p(i,[a]){let c=e;e=f(i),e===c?l[e].p(i,a):(Z(),h(l[c],1,1,()=>{l[c]=null}),x(),t=l[e],t?t.p(i,a):(t=l[e]=s[e](i),t.c()),d(t,1),t.m(n.parentNode,n))},i(i){r||(d(t),r=!0)},o(i){h(t),r=!1},d(i){i&&b(n),l[e].d(i)}}}function Po(o,e,t){let n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I;Y(o,Ue,R=>t(19,i=R)),Y(o,Te,R=>t(0,a=R)),Y(o,Qt,R=>t(12,c=R)),Y(o,Pe,R=>t(13,m=R)),Y(o,Qe,R=>t(20,E=R)),Y(o,ke,R=>t(14,$=R)),Y(o,$e,R=>t(1,p=R)),Y(o,je,R=>t(21,u=R)),Y(o,gn,R=>t(22,_=R)),Y(o,Tt,R=>t(6,I=R));let{$$slots:k={},$$scope:v}=e,M,V,H;const{copy:q,copied:C}=hn();Y(o,C,R=>t(5,g=R));const y=R=>{q(R,Ne(f))},J=async(R,X,N)=>{const{settings:ee}=a.data,{workflow:re,error:ae}=await Fe({namespace:R,workflowId:X,runId:N});if(ae){t(2,M=ae);return}const{taskQueue:we}=re,be=await rn({queue:we,namespace:R});re.pendingActivities=await at(re,R,ee,_==null?void 0:_.accessToken),fe($e,p={workflow:re,workers:be},p),V=new AbortController,fe(Pe,m=await dn({namespace:R,workflowId:X,runId:N,sort:"ascending",signal:V.signal,historySize:re.historyEvents}),m)},ue=async R=>{var X;if(R&&(!((X=p==null?void 0:p.workflow)===null||X===void 0)&&X.isRunning)){const{settings:N}=a.data,{workflow:ee,error:re}=await Fe({namespace:n,workflowId:r,runId:s});if(re){t(2,M=re);return}ee.pendingActivities=await at(ee,n,N,_==null?void 0:_.accessToken),fe($e,p={...p,workflow:ee},p)}},ce=()=>{fe(Pe,m=[],m),V&&V.abort()},w=()=>{fe(je,u=null,u),fe($e,p=en,p),t(2,M=void 0),ce(),wn(),clearInterval(H),H=null},F=(R,X)=>{X||fe(Qe,E=R,E)};return Wt(()=>{const R=a.url.searchParams.get("sort");R&&fe(Ue,i=R,i),H=setInterval(()=>{_n()},1e4)}),mt(()=>{w()}),o.$$set=R=>{"$$scope"in R&&t(15,v=R.$$scope)},o.$$.update=()=>{o.$$.dirty&1&&t(11,{namespace:n,workflow:r,run:s}=a.params,n,(t(10,r),t(0,a)),(t(9,s),t(0,a))),o.$$.dirty&1&&t(4,l=a.url.searchParams.has("json")),o.$$.dirty&8194&&t(3,f={...p,eventHistory:m}),o.$$.dirty&512&&w(),o.$$.dirty&3584&&J(n,r,s),o.$$.dirty&16384&&ue($),o.$$.dirty&12288&&F(m,c)},[a,p,M,f,l,g,I,C,y,s,r,n,c,m,$,v,k]}class So extends de{constructor(e){super(),ge(this,e,Po,Ao,_e,{})}}const Pt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},Wo=Be(Pt),To=()=>{Wo.set(Pt)};function Ro(o){let e;const t=o[0].default,n=pt(t,o,o[1],null);return{c(){n&&n.c()},l(r){n&&n.l(r)},m(r,s){n&&n.m(r,s),e=!0},p(r,s){n&&n.p&&(!e||s&2)&&_t(n,t,r,r[1],e?gt(t,r[1],s,null):dt(r[1]),null)},i(r){e||(d(n,r),e=!0)},o(r){h(n,r),e=!1},d(r){n&&n.d(r)}}}function Vo(o){let e,t;return e=new So({props:{$$slots:{default:[Ro]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,[r]){const s={};r&2&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function yo(o,e,t){let{$$slots:n={},$$scope:r}=e;return mt(()=>{To()}),o.$$set=s=>{"$$scope"in s&&t(1,r=s.$$scope)},[n,r]}class Wr extends de{constructor(e){super(),ge(this,e,yo,Vo,_e,{})}}export{Wr as component}; +import{s as _e,h as Q,b as L,t as G,j,k as z,f as b,d as O,l as K,m as U,i as T,n as B,q as se,c as Y,v as ie,N as te,O as ne,P as ye,w as fe,x as pe,y as ut,Y as St,a9 as ct,V as Wt,M as mt,a as pt,u as _t,g as dt,e as gt}from"../chunks/scheduler.C46pS-76.js";import{S as de,i as ge,c as A,a as P,m as S,t as d,b as h,d as W,f as oe,g as Z,e as x,h as wt}from"../chunks/index.dOVbn71B.js";import{p as Te}from"../chunks/stores.Ds4o9nwd.js";import{v as Tt}from"../chunks/data-encoder-settings.2-uv_2-b.js";import{L as Re}from"../chunks/link.C_v4aoat.js";import{t as D}from"../chunks/translate.BBe5dcco.js";import{c as ht,l as Rt,p as Vt,u as yt,v as Fe}from"../chunks/workflows.Cse8qlOg.js";import{e as Se,s as Le,b as me,u as ve,v as Ee,w as Ie,c as Ce,x as De,y as Ae}from"../chunks/route-for.B9fTWV7L.js";import{B as Mt}from"../chunks/button.C_N-TSlx.js";import{L as qt}from"../chunks/loading.BLsNkl8r.js";import{a as $t}from"../chunks/index.mPGqfhEB.js";import{e as We}from"../chunks/each.C6O0oV7R.js";import{w as Be,g as Oe}from"../chunks/entry.kylZibtV.js";import{w as Nt,a as Bt,b as Ht,C as Ft,T as Lt}from"../chunks/workflow-terminate-enabled.5VU8mX4o.js";import{C as Me,M as kt}from"../chunks/checkbox.CZ5w22eC.js";import{I as bt}from"../chunks/input.Dizl7Mgk.js";import{M as vt}from"../chunks/modal.BxyQo5_L.js";import{S as Ot,O as Ut}from"../chunks/option.BuKObSE0.js";import{r as Et,f as Pe,b as Ue,p as Qt,g as Qe,t as je}from"../chunks/events.CbhKe7Ai.js";import{p as jt}from"../chunks/persist-store.DeOEcwHN.js";import{t as zt}from"../chunks/versions.BSCVnN4z.js";import{i as It}from"../chunks/is-network-error.Dq2Kfkkh.js";import{m as Jt}from"../chunks/route-for-api.DGDQNXtX.js";import{P as Yt}from"../chunks/payload-input-with-encoding.CjdKAmav.js";import{t as Gt}from"../chunks/toaster.p5hsABhI.js";import{B as Kt}from"../chunks/button.hs88FdV4.js";import{I as Xt}from"../chunks/icon.CfkHLDdJ.js";import{d as He}from"../chunks/menu.B3Snjx4c.js";import{S as Ct}from"../chunks/split-button.70FZ_ydj.js";import{T as Zt}from"../chunks/tooltip.D2lOlqUw.js";import{c as xt}from"../chunks/core-user.DrkCNXj3.js";import{r as ke,w as $e,i as en}from"../chunks/workflow-run.CoKQBOG_.js";import{w as qe}from"../chunks/workflow-create-disabled.BovVEcSd.js";import{W as tn}from"../chunks/workflow-status.4hwv3weu.js";import{C as nn}from"../chunks/compatibility-badge.DuX1WIlP.js";import{k as on,g as rn}from"../chunks/pollers-service.BcPp2B7I.js";import{A as Dt}from"../chunks/alert.nnKn2vnv.js";import{B as Ve}from"../chunks/badge.jG5hkqHT.js";import{C as ln}from"../chunks/index.Nss_n040.js";import{T as sn,a as fn,b as he}from"../chunks/tab.y0H1rcBf.js";import{n as an}from"../chunks/namespaces.DEm0M_ie.js";import{g as un}from"../chunks/get-workflow-relationships.CLftvMta.js";import{h as cn}from"../chunks/has.BWrERxPV.js";import{e as mn,d as pn}from"../chunks/decode-payload.CR1Tto5x.js";import{t as _n,f as dn}from"../chunks/events-service.BZohXMj_.js";import{a as gn}from"../chunks/auth-user.CfsLeCYD.js";import{r as wn}from"../chunks/data-encoder-config.BAPO1ve2.js";import{c as hn}from"../chunks/copy-to-clipboard.VBIGxkFt.js";import{s as Ne}from"../chunks/parse-with-big-int.BKSBwM2t.js";function $n(o){let e=D("workflows.back-to-workflows")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function kn(o){var g,I;let e,t,n,r,s,l,f=(((g=o[0])==null?void 0:g.statusCode)??"500")+"",i,a,c,m,E,$,p=(((I=o[0])==null?void 0:I.statusText)??"")+"",u,_;return n=new Re({props:{href:`${Se({namespace:o[2]})}?${o[3]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[$n]},$$scope:{ctx:o}}}),{c(){e=Q("header"),t=Q("div"),A(n.$$.fragment),r=L(),s=Q("div"),l=Q("h1"),i=G(f),a=L(),c=Q("p"),m=G(o[1]),E=L(),$=Q("p"),u=G(p),this.h()},l(k){e=j(k,"HEADER",{class:!0});var v=z(e);t=j(v,"DIV",{class:!0});var M=z(t);P(n.$$.fragment,M),M.forEach(b),v.forEach(b),r=O(k),s=j(k,"DIV",{class:!0});var V=z(s);l=j(V,"H1",{class:!0});var H=z(l);i=K(H,f),H.forEach(b),a=O(V),c=j(V,"P",{class:!0});var q=z(c);m=K(q,o[1]),q.forEach(b),E=O(V),$=j(V,"P",{class:!0});var C=z($);u=K(C,p),C.forEach(b),V.forEach(b),this.h()},h(){U(t,"class","mb-4 block"),U(e,"class","mb-4 flex flex-col gap-1"),U(l,"class","leading-0 text-[12rem] font-semibold"),U(c,"class","-mt-12 text-lg"),U($,"class","text-2xl font-bold text-red-700"),U(s,"class","text-center align-middle")},m(k,v){T(k,e,v),B(e,t),S(n,t,null),T(k,r,v),T(k,s,v),B(s,l),B(l,i),B(s,a),B(s,c),B(c,m),B(s,E),B(s,$),B($,u),_=!0},p(k,[v]){var V,H;const M={};v&12&&(M.href=`${Se({namespace:k[2]})}?${k[3]}`),v&32&&(M.$$scope={dirty:v,ctx:k}),n.$set(M),(!_||v&1)&&f!==(f=(((V=k[0])==null?void 0:V.statusCode)??"500")+"")&&se(i,f),(!_||v&2)&&se(m,k[1]),(!_||v&1)&&p!==(p=(((H=k[0])==null?void 0:H.statusText)??"")+"")&&se(u,p)},i(k){_||(d(n.$$.fragment,k),_=!0)},o(k){h(n.$$.fragment,k),_=!1},d(k){k&&(b(e),b(r),b(s)),W(n)}}}function bn(o,e,t){let n,r,s,l;Y(o,Te,i=>t(4,s=i)),Y(o,ht,i=>t(3,l=i));let{error:f}=e;return o.$$set=i=>{"error"in i&&t(0,f=i.error)},o.$$.update=()=>{o.$$.dirty&16&&t(2,{namespace:n}=s.params,n),o.$$.dirty&1&&t(1,r=f.statusCode===404?D("workflows.workflow-404-title"):D("workflows.workflow-error-title"))},[f,r,n,l,s]}class vn extends de{constructor(e){super(),ge(this,e,bn,kn,_e,{error:0})}}const At=jt("resetWorkflows",{});function ze(o,e,t){const n=o.slice();return n[25]=e[t],n}function En(o){let e,t=D("workflows.reset-modal-title")+"",n;return{c(){e=Q("h3"),n=G(t),this.h()},l(r){e=j(r,"H3",{slot:!0});var s=z(e);n=K(s,t),s.forEach(b),this.h()},h(){U(e,"slot","title")},m(r,s){T(r,e,s),B(e,n)},p:ie,d(r){r&&b(e)}}}function In(o){let e=o[25].id+"",t,n,r=o[25].eventType+"",s;return{c(){t=G(e),n=G(" - "),s=G(r)},l(l){t=K(l,e),n=K(l," - "),s=K(l,r)},m(l,f){T(l,t,f),T(l,n,f),T(l,s,f)},p(l,f){f&512&&e!==(e=l[25].id+"")&&se(t,e),f&512&&r!==(r=l[25].eventType+"")&&se(s,r)},d(l){l&&(b(t),b(n),b(s))}}}function Je(o){let e,t;return e=new Ut({props:{value:o[25].id,$$slots:{default:[In]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&512&&(s.value=n[25].id),r&268435968&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Cn(o){let e,t,n=We(o[9]),r=[];for(let l=0;lh(r[l],1,1,()=>{r[l]=null});return{c(){for(let l=0;loe(e,"checked",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};!t&&f&32&&(t=!0,i.checked=l[5],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function An(o){let e,t,n,r,s,l;function f(m){o[18](m)}let i={id:"reset-exclude-signals-checkbox","data-testid":"reset-exclude-signals-checkbox",label:D("workflows.reset-exclude-signals")};o[6]!==void 0&&(i.checked=o[6]),e=new Me({props:i}),te.push(()=>oe(e,"checked",f));function a(m){o[19](m)}let c={id:"reset-exclude-updates-checkbox","data-testid":"reset-exclude-updates-checkbox",label:D("workflows.reset-exclude-updates")};return o[7]!==void 0&&(c.checked=o[7]),r=new Me({props:c}),te.push(()=>oe(r,"checked",a)),{c(){A(e.$$.fragment),n=L(),A(r.$$.fragment)},l(m){P(e.$$.fragment,m),n=O(m),P(r.$$.fragment,m)},m(m,E){S(e,m,E),T(m,n,E),S(r,m,E),l=!0},p(m,E){const $={};!t&&E&64&&(t=!0,$.checked=m[6],ne(()=>t=!1)),e.$set($);const p={};!s&&E&128&&(s=!0,p.checked=m[7],ne(()=>s=!1)),r.$set(p)},i(m){l||(d(e.$$.fragment,m),d(r.$$.fragment,m),l=!0)},o(m){h(e.$$.fragment,m),h(r.$$.fragment,m),l=!1},d(m){m&&b(n),W(e,m),W(r,m)}}}function Pn(o){let e,t,n,r,s,l,f,i,a,c,m;function E(k){o[17](k)}let $={"data-testid":"workflow-reset-event-id-select",menuClass:"max-h-[16rem]",label:D("workflows.reset-event-radio-group-description"),id:"reset-event-id",$$slots:{default:[Cn]},$$scope:{ctx:o}};o[8]!==void 0&&($.value=o[8]),t=new Ot({props:$}),te.push(()=>oe(t,"value",E));const p=[An,Dn],u=[];function _(k,v){return v&3072&&(s=null),s==null&&(s=!!(k[10]||Jt("1.24.0",k[11]))),s?0:1}l=_(o,-1),f=u[l]=p[l](o);function g(k){o[21](k)}let I={id:"reset-reason",label:D("common.reason")};return o[4]!==void 0&&(I.value=o[4]),a=new bt({props:I}),te.push(()=>oe(a,"value",g)),{c(){e=Q("div"),A(t.$$.fragment),r=L(),f.c(),i=L(),A(a.$$.fragment),this.h()},l(k){e=j(k,"DIV",{class:!0});var v=z(e);P(t.$$.fragment,v),r=O(v),f.l(v),i=O(v),P(a.$$.fragment,v),v.forEach(b),this.h()},h(){U(e,"class","flex w-full flex-col gap-4")},m(k,v){T(k,e,v),S(t,e,null),B(e,r),u[l].m(e,null),B(e,i),S(a,e,null),m=!0},p(k,v){const M={};v&268435968&&(M.$$scope={dirty:v,ctx:k}),!n&&v&256&&(n=!0,M.value=k[8],ne(()=>n=!1)),t.$set(M);let V=l;l=_(k,v),l===V?u[l].p(k,v):(Z(),h(u[V],1,1,()=>{u[V]=null}),x(),f=u[l],f?f.p(k,v):(f=u[l]=p[l](k),f.c()),d(f,1),f.m(e,i));const H={};!c&&v&16&&(c=!0,H.value=k[4],ne(()=>c=!1)),a.$set(H)},i(k){m||(d(t.$$.fragment,k),d(f),d(a.$$.fragment,k),m=!0)},o(k){h(t.$$.fragment,k),h(f),h(a.$$.fragment,k),m=!1},d(k){k&&b(e),W(t),u[l].d(),W(a)}}}function Sn(o){let e,t,n,r;function s(i){o[22](i)}function l(i){o[23](i)}let f={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:D("common.confirm"),cancelText:D("common.cancel"),loading:o[3],confirmDisabled:!o[8],$$slots:{content:[Pn],title:[En]},$$scope:{ctx:o}};return o[2]!==void 0&&(f.error=o[2]),o[0]!==void 0&&(f.open=o[0]),e=new vt({props:f}),te.push(()=>oe(e,"error",s)),te.push(()=>oe(e,"open",l)),e.$on("confirmModal",o[14]),e.$on("cancelModal",o[13]),{c(){A(e.$$.fragment)},l(i){P(e.$$.fragment,i)},m(i,a){S(e,i,a),r=!0},p(i,[a]){const c={};a&8&&(c.loading=i[3]),a&256&&(c.confirmDisabled=!i[8]),a&268439536&&(c.$$scope={dirty:a,ctx:i}),!t&&a&4&&(t=!0,c.error=i[2],ne(()=>t=!1)),!n&&a&1&&(n=!0,c.open=i[0],ne(()=>n=!1)),e.$set(c)},i(i){r||(d(e.$$.fragment,i),r=!0)},o(i){h(e.$$.fragment,i),r=!1},d(i){W(e,i)}}}function Wn(o,e,t){let n,r=ie,s=()=>(r(),r=ye($,w=>t(24,n=w)),$),l,f,i,a;Y(o,Et,w=>t(9,f=w)),Y(o,Rt,w=>t(10,i=w)),Y(o,zt,w=>t(11,a=w)),o.$$.on_destroy.push(()=>r());let{open:c}=e,{workflow:m}=e,{namespace:E}=e,{refresh:$}=e;s();let p="",u=!1,_=Be("");Y(o,_,w=>t(8,l=w));let g,I=!0,k=!1,v=!1;const M=()=>{t(0,c=!1),t(5,I=!0),t(6,k=!1),t(7,v=!1),fe(_,l="",l),t(4,g="")},V=async()=>{t(2,p=""),t(3,u=!0);try{const w=await Vt({namespace:E,workflow:m,eventId:l,reason:g,includeSignals:I,excludeSignals:k,excludeUpdates:v});w&&w.runId&&At.update(F=>({...F,[m.runId]:w.runId})),fe($,n=Date.now(),n),M()}catch(w){t(2,p=It(w)?w.message:D("common.unknown-error"))}finally{t(3,u=!1)}M()};function H(w){l=w,_.set(l)}function q(w){k=w,t(6,k)}function C(w){v=w,t(7,v)}function y(w){I=w,t(5,I)}function J(w){g=w,t(4,g)}function ue(w){p=w,t(2,p)}function ce(w){c=w,t(0,c)}return o.$$set=w=>{"open"in w&&t(0,c=w.open),"workflow"in w&&t(15,m=w.workflow),"namespace"in w&&t(16,E=w.namespace),"refresh"in w&&s(t(1,$=w.refresh))},[c,$,p,u,g,I,k,v,l,f,i,a,_,M,V,m,E,H,q,C,y,J,ue,ce]}class Tn extends de{constructor(e){super(),ge(this,e,Wn,Sn,_e,{open:0,workflow:15,namespace:16,refresh:1})}}function Rn(o){let e,t=D("workflows.signal-modal-title")+"",n;return{c(){e=Q("h3"),n=G(t),this.h()},l(r){e=j(r,"H3",{slot:!0});var s=z(e);n=K(s,t),s.forEach(b),this.h()},h(){U(e,"slot","title")},m(r,s){T(r,e,s),B(e,n)},p:ie,d(r){r&&b(e)}}}function Vn(o){let e,t,n,r,s,l,f,i;function a(p){o[11](p)}let c={id:"signal-name",label:D("workflows.signal-name-label"),required:!0};o[4]!==void 0&&(c.value=o[4]),t=new bt({props:c}),te.push(()=>oe(t,"value",a));function m(p){o[12](p)}function E(p){o[13](p)}let $={};return o[6]!==void 0&&($.input=o[6]),o[5]!==void 0&&($.encoding=o[5]),s=new Yt({props:$}),te.push(()=>oe(s,"input",m)),te.push(()=>oe(s,"encoding",E)),{c(){e=Q("div"),A(t.$$.fragment),r=L(),A(s.$$.fragment),this.h()},l(p){e=j(p,"DIV",{slot:!0,class:!0});var u=z(e);P(t.$$.fragment,u),r=O(u),P(s.$$.fragment,u),u.forEach(b),this.h()},h(){U(e,"slot","content"),U(e,"class","flex flex-col gap-4")},m(p,u){T(p,e,u),S(t,e,null),B(e,r),S(s,e,null),i=!0},p(p,u){const _={};!n&&u&16&&(n=!0,_.value=p[4],ne(()=>n=!1)),t.$set(_);const g={};!l&&u&64&&(l=!0,g.input=p[6],ne(()=>l=!1)),!f&&u&32&&(f=!0,g.encoding=p[5],ne(()=>f=!1)),s.$set(g)},i(p){i||(d(t.$$.fragment,p),d(s.$$.fragment,p),i=!0)},o(p){h(t.$$.fragment,p),h(s.$$.fragment,p),i=!1},d(p){p&&b(e),W(t),W(s)}}}function yn(o){let e,t,n,r;function s(i){o[14](i)}function l(i){o[15](i)}let f={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",loading:o[3],confirmText:D("common.submit"),cancelText:D("common.cancel"),confirmDisabled:!o[4]||!o[5],$$slots:{content:[Vn],title:[Rn]},$$scope:{ctx:o}};return o[2]!==void 0&&(f.error=o[2]),o[0]!==void 0&&(f.open=o[0]),e=new vt({props:f}),te.push(()=>oe(e,"error",s)),te.push(()=>oe(e,"open",l)),e.$on("cancelModal",o[7]),e.$on("confirmModal",o[8]),{c(){A(e.$$.fragment)},l(i){P(e.$$.fragment,i)},m(i,a){S(e,i,a),r=!0},p(i,[a]){const c={};a&8&&(c.loading=i[3]),a&48&&(c.confirmDisabled=!i[4]||!i[5]),a&262256&&(c.$$scope={dirty:a,ctx:i}),!t&&a&4&&(t=!0,c.error=i[2],ne(()=>t=!1)),!n&&a&1&&(n=!0,c.open=i[0],ne(()=>n=!1)),e.$set(c)},i(i){r||(d(e.$$.fragment,i),r=!0)},o(i){h(e.$$.fragment,i),r=!1},d(i){W(e,i)}}}const Ye="json/plain";function Mn(o,e,t){let n,r=ie,s=()=>(r(),r=ye(E,C=>t(16,n=C)),E),l,f=ie,i=()=>(f(),f=ye(_,C=>t(17,l=C)),_);o.$$.on_destroy.push(()=>r()),o.$$.on_destroy.push(()=>f());let{open:a}=e,{workflow:c}=e,{namespace:m}=e,{refresh:E}=e;s();let $="",p=!1,u="",_=Be(Ye);i();let g="";const I=()=>{t(0,a=!1),t(4,u=""),t(6,g=""),fe(_,l=Ye,l)},k=async()=>{t(2,$=""),t(3,p=!0);try{await yt({namespace:m,workflow:c,input:g,encoding:l,name:u}),fe(E,n=Date.now(),n),Gt.push({message:D("workflows.signal-success"),id:"workflow-signal-success-toast"}),I()}catch(C){t(2,$=It(C)?C.message:D("common.unknown-error"))}finally{t(3,p=!1)}};function v(C){u=C,t(4,u)}function M(C){g=C,t(6,g)}function V(C){_=C,i(t(5,_))}function H(C){$=C,t(2,$)}function q(C){a=C,t(0,a)}return o.$$set=C=>{"open"in C&&t(0,a=C.open),"workflow"in C&&t(9,c=C.workflow),"namespace"in C&&t(10,m=C.namespace),"refresh"in C&&s(t(1,E=C.refresh))},[a,E,$,p,u,_,g,I,k,c,m,v,M,V,H,q]}class qn extends de{constructor(e){super(),ge(this,e,Mn,yn,_e,{open:0,workflow:9,namespace:10,refresh:1})}}const Nn=(o,e,t)=>!o.disableWriteActions&&!o.workflowSignalDisabled&&!e.namespaceWriteDisabled(t);function Ge(o,e,t){const n=o.slice();return n[31]=e[t].onClick,n[32]=e[t].destructive,n[33]=e[t].label,n[34]=e[t].enabled,n[35]=e[t].testId,n[36]=e[t].description,n}function Bn(o){let e,t;return e=new Zt({props:{bottomRight:!0,width:200,text:o[4],hide:o[7],$$slots:{default:[On]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&16&&(s.text=n[4]),r[0]&128&&(s.hide=n[7]),r[0]&2176|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Hn(o){let e,t;return e=new Ct({props:{id:"workflow-actions",menuClass:"w-[16rem]",position:"right",primaryActionDisabled:!o[7],label:D("workflows.reset"),menuLabel:D("workflows.workflow-actions"),$$slots:{default:[Qn]},$$scope:{ctx:o}}}),e.$on("click",o[25]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&128&&(s.primaryActionDisabled=!n[7]),r[0]&3|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Fn(o){let e,t;return e=new Ct({props:{id:"workflow-actions",menuClass:"w-[16rem] md:w-[24rem]",position:"right",disabled:o[14],primaryActionDisabled:!o[15]||o[2],label:D("workflows.request-cancellation"),menuLabel:D("workflows.workflow-actions"),$$slots:{default:[Jn]},$$scope:{ctx:o}}}),e.$on("click",o[23]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&16384&&(s.disabled=n[14]),r[0]&32772&&(s.primaryActionDisabled=!n[15]||n[2]),r[0]&8451|r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ln(o){let e=D("workflows.reset")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function On(o){let e,t;return e=new Kt({props:{"aria-label":D("workflows.reset"),disabled:!o[7],variant:"primary","data-testid":"workflow-reset-button",$$slots:{default:[Ln]},$$scope:{ctx:o}}}),e.$on("click",o[26]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[0]&128&&(s.disabled=!n[7]),r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Un(o){let e=D("workflows.start-workflow-like-this-one")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function Qn(o){let e,t;return e=new He({props:{"data-testid":"start-workflow-button",$$slots:{default:[Un]},$$scope:{ctx:o}}}),e.$on("click",o[24]),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r[1]&256&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ke(o){let e,t;return e=new kt({}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function jn(o){let e=o[33]+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p(n,r){r[0]&8192&&e!==(e=n[33]+"")&&se(t,e)},d(n){n&&b(t)}}}function Xe(o){let e,t,n,r=o[32]&&Ke();return t=new He({props:{destructive:o[32],disabled:!o[34],"data-testid":o[35],description:o[36],$$slots:{default:[jn]},$$scope:{ctx:o}}}),t.$on("click",function(){St(o[31])&&o[31].apply(this,arguments)}),{c(){r&&r.c(),e=L(),A(t.$$.fragment)},l(s){r&&r.l(s),e=O(s),P(t.$$.fragment,s)},m(s,l){r&&r.m(s,l),T(s,e,l),S(t,s,l),n=!0},p(s,l){o=s,o[32]?r?l[0]&8192&&d(r,1):(r=Ke(),r.c(),d(r,1),r.m(e.parentNode,e)):r&&(Z(),h(r,1,1,()=>{r=null}),x());const f={};l[0]&8192&&(f.destructive=o[32]),l[0]&8192&&(f.disabled=!o[34]),l[0]&8192&&(f["data-testid"]=o[35]),l[0]&8192&&(f.description=o[36]),l[0]&8192|l[1]&256&&(f.$$scope={dirty:l,ctx:o}),t.$set(f)},i(s){n||(d(r),d(t.$$.fragment,s),n=!0)},o(s){h(r),h(t.$$.fragment,s),n=!1},d(s){s&&b(e),r&&r.d(s),W(t,s)}}}function Ze(o){let e,t,n,r;return e=new kt({}),n=new He({props:{"data-testid":"start-workflow-button",$$slots:{default:[zn]},$$scope:{ctx:o}}}),n.$on("click",o[22]),{c(){A(e.$$.fragment),t=L(),A(n.$$.fragment)},l(s){P(e.$$.fragment,s),t=O(s),P(n.$$.fragment,s)},m(s,l){S(e,s,l),T(s,t,l),S(n,s,l),r=!0},p(s,l){const f={};l[1]&256&&(f.$$scope={dirty:l,ctx:s}),n.$set(f)},i(s){r||(d(e.$$.fragment,s),d(n.$$.fragment,s),r=!0)},o(s){h(e.$$.fragment,s),h(n.$$.fragment,s),r=!1},d(s){s&&b(t),W(e,s),W(n,s)}}}function zn(o){let e=D("workflows.start-workflow-like-this-one")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function Jn(o){let e,t=!qe(o[8]),n,r,s=We(o[13]),l=[];for(let a=0;ah(l[a],1,1,()=>{l[a]=null});let i=t&&Ze(o);return{c(){for(let a=0;a{i=null}),x())},i(a){if(!r){for(let c=0;coe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&2048&&(t=!0,i.open=l[11],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function et(o){let e,t,n;function r(l){o[28](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[12]!==void 0&&(s.open=o[12]),e=new qn({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&4096&&(t=!0,i.open=l[12],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function tt(o){let e,t,n;function r(l){o[29](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[9]!==void 0&&(s.open=o[9]),e=new Ft({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&512&&(t=!0,i.open=l[9],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function nt(o){let e,t,n;function r(l){o[30](l)}let s={refresh:ke,workflow:o[0],namespace:o[1]};return o[10]!==void 0&&(s.open=o[10]),e=new Lt({props:s}),te.push(()=>oe(e,"open",r)),{c(){A(e.$$.fragment)},l(l){P(e.$$.fragment,l)},m(l,f){S(e,l,f),n=!0},p(l,f){const i={};f[0]&1&&(i.workflow=l[0]),f[0]&2&&(i.namespace=l[1]),!t&&f[0]&1024&&(t=!0,i.open=l[10],ne(()=>t=!1)),e.$set(i)},i(l){n||(d(e.$$.fragment,l),n=!0)},o(l){h(e.$$.fragment,l),n=!1},d(l){W(e,l)}}}function Yn(o){let e,t,n,r,s,l,f,i,a;const c=[Fn,Hn,Bn],m=[];function E(g,I){return I[0]&256&&(e=null),g[3]?0:(e==null&&(e=!qe(g[8])),e?1:2)}t=E(o,[-1,-1]),n=m[t]=c[t](o);let $=o[7]&&xe(o),p=o[6]&&et(o),u=o[15]&&tt(o),_=o[5]&&nt(o);return{c(){n.c(),r=L(),$&&$.c(),s=L(),p&&p.c(),l=L(),u&&u.c(),f=L(),_&&_.c(),i=pe()},l(g){n.l(g),r=O(g),$&&$.l(g),s=O(g),p&&p.l(g),l=O(g),u&&u.l(g),f=O(g),_&&_.l(g),i=pe()},m(g,I){m[t].m(g,I),T(g,r,I),$&&$.m(g,I),T(g,s,I),p&&p.m(g,I),T(g,l,I),u&&u.m(g,I),T(g,f,I),_&&_.m(g,I),T(g,i,I),a=!0},p(g,I){let k=t;t=E(g,I),t===k?m[t].p(g,I):(Z(),h(m[k],1,1,()=>{m[k]=null}),x(),n=m[t],n?n.p(g,I):(n=m[t]=c[t](g),n.c()),d(n,1),n.m(r.parentNode,r)),g[7]?$?($.p(g,I),I[0]&128&&d($,1)):($=xe(g),$.c(),d($,1),$.m(s.parentNode,s)):$&&(Z(),h($,1,1,()=>{$=null}),x()),g[6]?p?(p.p(g,I),I[0]&64&&d(p,1)):(p=et(g),p.c(),d(p,1),p.m(l.parentNode,l)):p&&(Z(),h(p,1,1,()=>{p=null}),x()),g[15]?u?(u.p(g,I),I[0]&32768&&d(u,1)):(u=tt(g),u.c(),d(u,1),u.m(f.parentNode,f)):u&&(Z(),h(u,1,1,()=>{u=null}),x()),g[5]?_?(_.p(g,I),I[0]&32&&d(_,1)):(_=nt(g),_.c(),d(_,1),_.m(i.parentNode,i)):_&&(Z(),h(_,1,1,()=>{_=null}),x())},i(g){a||(d(n),d($),d(p),d(u),d(_),a=!0)},o(g){h(n),h($),h(p),h(u),h(_),a=!1},d(g){g&&(b(r),b(s),b(l),b(f),b(i)),m[t].d(g),$&&$.d(g),p&&p.d(g),u&&u.d(g),_&&_.d(g)}}}function Gn(o,e,t){let n,r,s,l,f,i,a,c,m;Y(o,Et,N=>t(20,a=N)),Y(o,Te,N=>t(8,m=N));var E,$;let{workflow:p}=e,{namespace:u}=e,{cancelInProgress:_}=e,{isRunning:g}=e,I=!1,k=!1,v=!1,M=!1,V,H=xt();Y(o,H,N=>t(21,c=N));let q;const C=()=>Oe(Le({namespace:u,workflowId:p.id,taskQueue:p.taskQueue,workflowType:p.name})),y=()=>t(9,I=!0),J=()=>Oe(Le({namespace:u,workflowId:p.id,taskQueue:p.taskQueue,workflowType:p.name})),ue=()=>t(11,v=!0),ce=()=>t(11,v=!0);function w(N){v=N,t(11,v),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}function F(N){M=N,t(12,M),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}function R(N){I=N,t(9,I)}function X(N){k=N,t(10,k),t(7,f),t(4,V),t(6,r),t(5,s),t(19,l),t(0,p),t(20,a),t(17,E),t(18,$),t(8,m),t(21,c),t(1,u)}return o.$$set=N=>{"workflow"in N&&t(0,p=N.workflow),"namespace"in N&&t(1,u=N.namespace),"cancelInProgress"in N&&t(2,_=N.cancelInProgress),"isRunning"in N&&t(3,g=N.isRunning)},o.$$.update=()=>{o.$$.dirty[0]&2097410&&t(15,n=Nt(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(6,r=Nn(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(5,s=Bt(m.data.settings,c,u)),o.$$.dirty[0]&2097410&&t(19,l=Ht(m.data.settings,c,u)),o.$$.dirty[0]&1572865&&t(7,f=l&&p.pendingChildren.length===0&&a.length>0),o.$$.dirty[0]&224&&t(14,i=!f&&!r&&!s),o.$$.dirty[0]&1966081&&(l?l&&(t(17,E=p==null?void 0:p.pendingChildren)===null||E===void 0?void 0:E.length)>0?t(4,V=D("workflows.reset-disabled-pending-children")):l&&(t(18,$=p==null?void 0:p.pendingChildren)===null||$===void 0?void 0:$.length)===0&&a.length===0&&t(4,V=D("workflows.reset-disabled-no-events")):t(4,V=D("workflows.reset-disabled-unauthorized"))),o.$$.dirty[0]&240&&t(13,q=[{label:D("workflows.reset"),onClick:()=>t(11,v=!0),testId:"reset-button",enabled:f,description:f?"":V},{label:D("workflows.signal"),onClick:()=>t(12,M=!0),testId:"signal-button",enabled:r,description:r?"":D("workflows.signal-disabled")},{label:D("workflows.terminate"),onClick:()=>t(10,k=!0),testId:"terminate-button",enabled:s,destructive:!0,description:s?"":D("workflows.terminate-disabled")}])},[p,u,_,g,V,s,r,f,m,I,k,v,M,q,i,n,H,E,$,l,a,c,C,y,J,ue,ce,w,F,R,X]}class Kn extends de{constructor(e){super(),ge(this,e,Gn,Yn,_e,{workflow:0,namespace:1,cancelInProgress:2,isRunning:3},null,[-1,-1])}}function Xn(o){let e,t,n=D("workers.buildId")+"",r,s,l;return s=new nn({props:{active:!0,buildId:o[0]}}),{c(){e=Q("p"),t=Q("span"),r=G(n),A(s.$$.fragment),this.h()},l(f){e=j(f,"P",{class:!0});var i=z(e);t=j(i,"SPAN",{});var a=z(t);r=K(a,n),a.forEach(b),P(s.$$.fragment,i),i.forEach(b),this.h()},h(){U(e,"class","flex items-center gap-1")},m(f,i){T(f,e,i),B(e,t),B(t,r),S(s,e,null),l=!0},p(f,[i]){const a={};i&1&&(a.buildId=f[0]),s.$set(a)},i(f){l||(d(s.$$.fragment,f),l=!0)},o(f){h(s.$$.fragment,f),l=!1},d(f){f&&b(e),W(s)}}}function Zn(o,e,t){let n,{workflow:r}=e;return o.$$set=s=>{"workflow"in s&&t(1,r=s.workflow)},o.$$.update=()=>{o.$$.dirty&2&&t(0,n=on(r))},[n,r]}class xn extends de{constructor(e){super(),ge(this,e,Zn,Xn,_e,{workflow:1})}}const eo=(o,e)=>{const t=o==="Running",n=e==null?void 0:e.some(r=>(r==null?void 0:r.eventType)==="WorkflowExecutionCancelRequested");return t&&n},ot=o=>{const e=o==null?void 0:o.indexOf("?");return e>-1?o.slice(0,e):o},le=(o,e,t=!1)=>{const n=ot(o).split("/"),r=ot(e).split("/");if(t&&n.length!==r.length)return!1;for(let s=0;s{l=null}),x()),(!s||c&2)&&n!==(n=((E=(m=a[1])==null?void 0:m.pendingActivities)==null?void 0:E.length)+"")&&se(r,n)},i(a){s||(d(l),s=!0)},o(a){h(l),s=!1},d(a){a&&b(e),l&&l.d()}}}function uo(o){let e,t;return e=new Ve({props:{type:o[9]?"warning":"primary",class:"px-2 py-0",$$slots:{default:[ao]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&512&&(s.type=n[9]?"warning":"primary"),r&8389122&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function co(o){let e,t,n,r,s,l,f,i,a,c,m,E,$,p;return e=new he({props:{label:D("workflows.history-tab"),id:"history-tab",href:me({...o[11]}),active:le(o[4].url.pathname,me({...o[11]})),$$slots:{default:[ro]},$$scope:{ctx:o}}}),n=new he({props:{label:D("workflows.workers-tab"),id:"workers-tab",href:ve(o[11]),active:le(o[4].url.pathname,ve(o[11])),$$slots:{default:[so]},$$scope:{ctx:o}}}),s=new he({props:{label:D("workflows.relationships"),id:"relationships-tab",href:Ee(o[11]),active:le(o[4].url.pathname,Ee(o[11])),$$slots:{default:[io]},$$scope:{ctx:o}}}),f=new he({props:{label:D("workflows.pending-activities-tab"),id:"pending-activities-tab",href:Ie(o[11]),active:le(o[4].url.pathname,Ie(o[11])),$$slots:{default:[uo]},$$scope:{ctx:o}}}),a=new he({props:{label:D("workflows.call-stack-tab"),id:"call-stack-tab",href:Ce(o[11]),active:le(o[4].url.pathname,Ce(o[11]))}}),m=new he({props:{label:D("workflows.queries-tab"),id:"queries-tab",href:De(o[11]),active:le(o[4].url.pathname,De(o[11]))}}),$=new he({props:{label:D("workflows.metadata-tab"),id:"metadata-tab",href:Ae(o[11]),active:le(o[4].url.pathname,Ae(o[11]))}}),{c(){A(e.$$.fragment),t=L(),A(n.$$.fragment),r=L(),A(s.$$.fragment),l=L(),A(f.$$.fragment),i=L(),A(a.$$.fragment),c=L(),A(m.$$.fragment),E=L(),A($.$$.fragment)},l(u){P(e.$$.fragment,u),t=O(u),P(n.$$.fragment,u),r=O(u),P(s.$$.fragment,u),l=O(u),P(f.$$.fragment,u),i=O(u),P(a.$$.fragment,u),c=O(u),P(m.$$.fragment,u),E=O(u),P($.$$.fragment,u)},m(u,_){S(e,u,_),T(u,t,_),S(n,u,_),T(u,r,_),S(s,u,_),T(u,l,_),S(f,u,_),T(u,i,_),S(a,u,_),T(u,c,_),S(m,u,_),T(u,E,_),S($,u,_),p=!0},p(u,_){const g={};_&2048&&(g.href=me({...u[11]})),_&2064&&(g.active=le(u[4].url.pathname,me({...u[11]}))),_&8388610&&(g.$$scope={dirty:_,ctx:u}),e.$set(g);const I={};_&2048&&(I.href=ve(u[11])),_&2064&&(I.active=le(u[4].url.pathname,ve(u[11]))),_&8396800&&(I.$$scope={dirty:_,ctx:u}),n.$set(I);const k={};_&2048&&(k.href=Ee(u[11])),_&2064&&(k.active=le(u[4].url.pathname,Ee(u[11]))),_&8388640&&(k.$$scope={dirty:_,ctx:u}),s.$set(k);const v={};_&2048&&(v.href=Ie(u[11])),_&2064&&(v.active=le(u[4].url.pathname,Ie(u[11]))),_&8389122&&(v.$$scope={dirty:_,ctx:u}),f.$set(v);const M={};_&2048&&(M.href=Ce(u[11])),_&2064&&(M.active=le(u[4].url.pathname,Ce(u[11]))),a.$set(M);const V={};_&2048&&(V.href=De(u[11])),_&2064&&(V.active=le(u[4].url.pathname,De(u[11]))),m.$set(V);const H={};_&2048&&(H.href=Ae(u[11])),_&2064&&(H.active=le(u[4].url.pathname,Ae(u[11]))),$.$set(H)},i(u){p||(d(e.$$.fragment,u),d(n.$$.fragment,u),d(s.$$.fragment,u),d(f.$$.fragment,u),d(a.$$.fragment,u),d(m.$$.fragment,u),d($.$$.fragment,u),p=!0)},o(u){h(e.$$.fragment,u),h(n.$$.fragment,u),h(s.$$.fragment,u),h(f.$$.fragment,u),h(a.$$.fragment,u),h(m.$$.fragment,u),h($.$$.fragment,u),p=!1},d(u){u&&(b(t),b(r),b(l),b(i),b(c),b(E)),W(e,u),W(n,u),W(s,u),W(f,u),W(a,u),W(m,u),W($,u)}}}function mo(o){let e,t;return e=new fn({props:{class:"flex flex-wrap gap-6 p-4 pl-0",label:"workflow detail",$$slots:{default:[co]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&8399410&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function ft(o){let e,t,n,r;return t=new Dt({props:{icon:"info",intent:"info",title:D("workflows.cancel-request-sent"),$$slots:{default:[po]},$$scope:{ctx:o}}}),{c(){e=Q("div"),A(t.$$.fragment)},l(s){e=j(s,"DIV",{});var l=z(e);P(t.$$.fragment,l),l.forEach(b)},m(s,l){T(s,e,l),S(t,e,null),r=!0},p(s,l){const f={};l&8388608&&(f.$$scope={dirty:l,ctx:s}),t.$set(f)},i(s){r||(d(t.$$.fragment,s),s&&(n||ct(()=>{n=wt(e,$t,{duration:200,delay:100}),n.start()})),r=!0)},o(s){h(t.$$.fragment,s),r=!1},d(s){s&&b(e),W(t)}}}function po(o){let e=D("workflows.cancel-request-sent-description")+"",t;return{c(){t=G(e)},l(n){t=K(n,e)},m(n,r){T(n,t,r)},p:ie,d(n){n&&b(t)}}}function it(o){let e,t,n,r;return t=new Dt({props:{icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:D("workflows.reset-success-alert-title"),$$slots:{default:[go]},$$scope:{ctx:o}}}),{c(){e=Q("div"),A(t.$$.fragment)},l(s){e=j(s,"DIV",{});var l=z(e);P(t.$$.fragment,l),l.forEach(b)},m(s,l){T(s,e,l),S(t,e,null),r=!0},p(s,l){const f={};l&8388621&&(f.$$scope={dirty:l,ctx:s}),t.$set(f)},i(s){r||(d(t.$$.fragment,s),s&&(n||ct(()=>{n=wt(e,$t,{duration:200,delay:100}),n.start()})),r=!0)},o(s){h(t.$$.fragment,s),r=!1},d(s){s&&b(e),W(t)}}}function _o(o){let e;return{c(){e=G("here")},l(t){e=K(t,"here")},m(t,n){T(t,e,n)},d(t){t&&b(e)}}}function go(o){var s,l,f,i;let e,t,n,r;return t=new Re({props:{href:me({namespace:o[0],workflow:(l=(s=o[2])==null?void 0:s.workflow)==null?void 0:l.id,run:o[3][(i=(f=o[2])==null?void 0:f.workflow)==null?void 0:i.runId]}),$$slots:{default:[_o]},$$scope:{ctx:o}}}),{c(){e=G("You can find the resulting Workflow Execution "),A(t.$$.fragment),n=G(".")},l(a){e=K(a,"You can find the resulting Workflow Execution "),P(t.$$.fragment,a),n=K(a,".")},m(a,c){T(a,e,c),S(t,a,c),T(a,n,c),r=!0},p(a,c){var E,$,p,u;const m={};c&13&&(m.href=me({namespace:a[0],workflow:($=(E=a[2])==null?void 0:E.workflow)==null?void 0:$.id,run:a[3][(u=(p=a[2])==null?void 0:p.workflow)==null?void 0:u.runId]})),c&8388608&&(m.$$scope={dirty:c,ctx:a}),t.$set(m)},i(a){r||(d(t.$$.fragment,a),r=!0)},o(a){h(t.$$.fragment,a),r=!1},d(a){a&&(b(e),b(n)),W(t,a)}}}function wo(o){var ue,ce;let e,t,n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I,k,v,M,V,H;n=new Re({props:{href:`${Se({namespace:o[0]})}?${o[14]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[to]},$$scope:{ctx:o}}});let q=o[12]&&rt(o);c=new tn({props:{status:(ue=o[1])==null?void 0:ue.status,big:!0}}),p=new ln({props:{copyIconTitle:D("common.copy-icon-title"),copySuccessIconTitle:D("common.copy-success-icon-title"),content:(ce=o[1])==null?void 0:ce.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}});let C=o[6]&<(o);I=new Kn({props:{isRunning:o[10],cancelInProgress:o[8],workflow:o[1],namespace:o[0]}}),v=new sn({props:{$$slots:{default:[mo]},$$scope:{ctx:o}}});let y=o[8]&&ft(o),J=o[7]&&it(o);return{c(){e=Q("div"),t=Q("div"),A(n.$$.fragment),r=L(),q&&q.c(),s=L(),l=Q("header"),f=Q("div"),i=Q("div"),a=Q("div"),A(c.$$.fragment),m=L(),E=Q("div"),$=Q("h1"),A(p.$$.fragment),u=L(),C&&C.c(),_=L(),g=Q("div"),A(I.$$.fragment),k=L(),A(v.$$.fragment),M=L(),y&&y.c(),V=L(),J&&J.c(),this.h()},l(w){e=j(w,"DIV",{class:!0});var F=z(e);t=j(F,"DIV",{class:!0});var R=z(t);P(n.$$.fragment,R),r=O(R),q&&q.l(R),R.forEach(b),F.forEach(b),s=O(w),l=j(w,"HEADER",{class:!0});var X=z(l);f=j(X,"DIV",{class:!0});var N=z(f);i=j(N,"DIV",{class:!0});var ee=z(i);a=j(ee,"DIV",{class:!0});var re=z(a);P(c.$$.fragment,re),re.forEach(b),m=O(ee),E=j(ee,"DIV",{class:!0});var ae=z(E);$=j(ae,"H1",{"data-testid":!0,class:!0});var we=z($);P(p.$$.fragment,we),we.forEach(b),u=O(ae),C&&C.l(ae),ae.forEach(b),ee.forEach(b),_=O(N),g=j(N,"DIV",{class:!0});var be=z(g);P(I.$$.fragment,be),be.forEach(b),N.forEach(b),k=O(X),P(v.$$.fragment,X),M=O(X),y&&y.l(X),V=O(X),J&&J.l(X),X.forEach(b),this.h()},h(){U(t,"class","flex items-center gap-2"),U(e,"class","flex items-center justify-between pb-4"),U(a,"class","px-2"),U($,"data-testid","workflow-id-heading"),U($,"class","gap-0 overflow-hidden"),U(E,"class","flex flex-col flex-wrap gap-0"),U(i,"class","flex flex-col items-center gap-4 lg:flex-row"),U(g,"class","px-2"),U(f,"class","flex flex-col items-center justify-between gap-4 lg:flex-row"),U(l,"class","rounded-top flex flex-col gap-0")},m(w,F){T(w,e,F),B(e,t),S(n,t,null),B(t,r),q&&q.m(t,null),T(w,s,F),T(w,l,F),B(l,f),B(f,i),B(i,a),S(c,a,null),B(i,m),B(i,E),B(E,$),S(p,$,null),B(E,u),C&&C.m(E,null),B(f,_),B(f,g),S(I,g,null),B(l,k),S(v,l,null),B(l,M),y&&y.m(l,null),B(l,V),J&&J.m(l,null),H=!0},p(w,[F]){var ae,we;const R={};F&16385&&(R.href=`${Se({namespace:w[0]})}?${w[14]}`),F&8392704&&(R.$$scope={dirty:F,ctx:w}),n.$set(R),w[12]?q?(q.p(w,F),F&4096&&d(q,1)):(q=rt(w),q.c(),d(q,1),q.m(t,null)):q&&(Z(),h(q,1,1,()=>{q=null}),x());const X={};F&2&&(X.status=(ae=w[1])==null?void 0:ae.status),c.$set(X);const N={};F&2&&(N.content=(we=w[1])==null?void 0:we.id),p.$set(N),w[6]?C?(C.p(w,F),F&64&&d(C,1)):(C=lt(w),C.c(),d(C,1),C.m(E,null)):C&&(Z(),h(C,1,1,()=>{C=null}),x());const ee={};F&1024&&(ee.isRunning=w[10]),F&256&&(ee.cancelInProgress=w[8]),F&2&&(ee.workflow=w[1]),F&1&&(ee.namespace=w[0]),I.$set(ee);const re={};F&8399410&&(re.$$scope={dirty:F,ctx:w}),v.$set(re),w[8]?y?(y.p(w,F),F&256&&d(y,1)):(y=ft(w),y.c(),d(y,1),y.m(l,V)):y&&(Z(),h(y,1,1,()=>{y=null}),x()),w[7]?J?(J.p(w,F),F&128&&d(J,1)):(J=it(w),J.c(),d(J,1),J.m(l,null)):J&&(Z(),h(J,1,1,()=>{J=null}),x())},i(w){H||(d(n.$$.fragment,w),d(q),d(c.$$.fragment,w),d(p.$$.fragment,w),d(C),d(I.$$.fragment,w),d(v.$$.fragment,w),d(y),d(J),H=!0)},o(w){h(n.$$.fragment,w),h(q),h(c.$$.fragment,w),h(p.$$.fragment,w),h(C),h(I.$$.fragment,w),h(v.$$.fragment,w),h(y),h(J),H=!1},d(w){w&&(b(e),b(s),b(l)),W(n),q&&q.d(),W(c),W(p),C&&C.d(),W(I),W(v),y&&y.d(),J&&J.d()}}}function ho(o,e,t){let n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I;Y(o,an,y=>t(21,$=y)),Y(o,Pe,y=>t(22,p=y)),Y(o,$e,y=>t(2,u=y)),Y(o,At,y=>t(3,_=y)),Y(o,Te,y=>t(4,g=y)),Y(o,ht,y=>t(14,I=y));var k,v,M,V,H,q;let{namespace:C}=e;return o.$$set=y=>{"namespace"in y&&t(0,C=y.namespace)},o.$$.update=()=>{o.$$.dirty&4&&t(1,{workflow:n,workers:r}=u,n,(t(13,r),t(2,u))),o.$$.dirty&16&&t(12,s=g.params.id),o.$$.dirty&3&&t(11,l={namespace:C,workflow:n==null?void 0:n.id,run:n==null?void 0:n.runId}),o.$$.dirty&32772&&t(10,f=t(15,k=u==null?void 0:u.workflow)===null||k===void 0?void 0:k.isRunning),o.$$.dirty&65540&&t(9,i=["Terminated","TimedOut","Canceled"].includes(t(16,v=u.workflow)===null||v===void 0?void 0:v.status)),o.$$.dirty&4325380&&t(8,a=eo(t(17,M=u==null?void 0:u.workflow)===null||M===void 0?void 0:M.status,p)),o.$$.dirty&262156&&t(7,c=cn(_,t(18,V=u==null?void 0:u.workflow)===null||V===void 0?void 0:V.runId)),o.$$.dirty&1572866&&t(6,m=t(19,H=n==null?void 0:n.assignedBuildId)!==null&&H!==void 0?H:t(20,q=n==null?void 0:n.mostRecentWorkerVersionStamp)===null||q===void 0?void 0:q.useVersioning),o.$$.dirty&6291458&&t(5,E=un(n,p,$))},[C,n,u,_,g,E,m,c,a,i,f,l,s,r,I,k,v,M,V,H,q,$,p]}class $o extends de{constructor(e){super(),ge(this,e,ho,wo,_e,{namespace:0})}}async function ko({activity:o,namespace:e,settings:t,accessToken:n},{convertWithCodec:r=mn,decodeAttributes:s=pn}={}){const l=await r({attributes:o,namespace:e,settings:t,accessToken:n});return s(l)}const bo=async({activity:o,namespace:e,settings:t,accessToken:n})=>await ko({activity:o,namespace:e,settings:t,accessToken:n}),at=async(o,e,t,n)=>{const r=(o==null?void 0:o.pendingActivities)??[],s=[];for(const l of r){const f=await bo({activity:l,namespace:e,settings:t,accessToken:n});s.push(f)}return s};function vo(o){let e,t,n,r,s;const l=[Do,Co,Io],f=[];function i(a,c){return a[2]?0:a[1].workflow?2:1}return t=i(o),n=f[t]=l[t](o),{c(){e=Q("div"),n.c(),this.h()},l(a){e=j(a,"DIV",{class:!0});var c=z(e);n.l(c),c.forEach(b),this.h()},h(){U(e,"class",r="absolute bottom-0 left-0 right-0 "+(o[6]?"top-[540px]":"top-0")+" } flex h-full flex-col gap-0")},m(a,c){T(a,e,c),f[t].m(e,null),s=!0},p(a,c){let m=t;t=i(a),t===m?f[t].p(a,c):(Z(),h(f[m],1,1,()=>{f[m]=null}),x(),n=f[t],n?n.p(a,c):(n=f[t]=l[t](a),n.c()),d(n,1),n.m(e,null)),(!s||c&64&&r!==(r="absolute bottom-0 left-0 right-0 "+(a[6]?"top-[540px]":"top-0")+" } flex h-full flex-col gap-0"))&&U(e,"class",r)},i(a){s||(d(n),s=!0)},o(a){h(n),s=!1},d(a){a&&b(e),f[t].d()}}}function Eo(o){let e,t,n,r=Ne(o[3],null,2)+"",s,l;return t=new Mt({props:{copyIconTitle:D("common.copy-icon-title"),copySuccessIconTitle:D("common.copy-success-icon-title"),class:"absolute right-1 top-1",copied:o[5]}}),t.$on("click",o[8]),{c(){e=Q("div"),A(t.$$.fragment),n=L(),s=G(r),this.h()},l(f){e=j(f,"DIV",{class:!0});var i=z(e);P(t.$$.fragment,i),n=O(i),s=K(i,r),i.forEach(b),this.h()},h(){U(e,"class","relative h-auto whitespace-break-spaces break-words rounded bg-primary p-4")},m(f,i){T(f,e,i),S(t,e,null),B(e,n),B(e,s),l=!0},p(f,i){const a={};i&32&&(a.copied=f[5]),t.$set(a),(!l||i&8)&&r!==(r=Ne(f[3],null,2)+"")&&se(s,r)},i(f){l||(d(t.$$.fragment,f),l=!0)},o(f){h(t.$$.fragment,f),l=!1},d(f){f&&b(e),W(t)}}}function Io(o){let e,t,n,r;t=new $o({props:{namespace:o[0].params.namespace}});const s=o[16].default,l=pt(s,o,o[15],null);return{c(){e=Q("div"),A(t.$$.fragment),n=L(),l&&l.c(),this.h()},l(f){e=j(f,"DIV",{class:!0});var i=z(e);P(t.$$.fragment,i),i.forEach(b),n=O(f),l&&l.l(f),this.h()},h(){U(e,"class","px-8 pt-8 md:pt-20")},m(f,i){T(f,e,i),S(t,e,null),T(f,n,i),l&&l.m(f,i),r=!0},p(f,i){const a={};i&1&&(a.namespace=f[0].params.namespace),t.$set(a),l&&l.p&&(!r||i&32768)&&_t(l,s,f,f[15],r?gt(s,f[15],i,null):dt(f[15]),null)},i(f){r||(d(t.$$.fragment,f),d(l,f),r=!0)},o(f){h(t.$$.fragment,f),h(l,f),r=!1},d(f){f&&(b(e),b(n)),W(t),l&&l.d(f)}}}function Co(o){let e,t;return e=new qt({props:{class:"pt-24"}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p:ie,i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Do(o){let e,t;return e=new vn({props:{error:o[2]}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,r){const s={};r&4&&(s.error=n[2]),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function Ao(o){let e,t,n,r;const s=[Eo,vo],l=[];function f(i,a){return i[4]?0:1}return e=f(o),t=l[e]=s[e](o),{c(){t.c(),n=pe()},l(i){t.l(i),n=pe()},m(i,a){l[e].m(i,a),T(i,n,a),r=!0},p(i,[a]){let c=e;e=f(i),e===c?l[e].p(i,a):(Z(),h(l[c],1,1,()=>{l[c]=null}),x(),t=l[e],t?t.p(i,a):(t=l[e]=s[e](i),t.c()),d(t,1),t.m(n.parentNode,n))},i(i){r||(d(t),r=!0)},o(i){h(t),r=!1},d(i){i&&b(n),l[e].d(i)}}}function Po(o,e,t){let n,r,s,l,f,i,a,c,m,E,$,p,u,_,g,I;Y(o,Ue,R=>t(19,i=R)),Y(o,Te,R=>t(0,a=R)),Y(o,Qt,R=>t(12,c=R)),Y(o,Pe,R=>t(13,m=R)),Y(o,Qe,R=>t(20,E=R)),Y(o,ke,R=>t(14,$=R)),Y(o,$e,R=>t(1,p=R)),Y(o,je,R=>t(21,u=R)),Y(o,gn,R=>t(22,_=R)),Y(o,Tt,R=>t(6,I=R));let{$$slots:k={},$$scope:v}=e,M,V,H;const{copy:q,copied:C}=hn();Y(o,C,R=>t(5,g=R));const y=R=>{q(R,Ne(f))},J=async(R,X,N)=>{const{settings:ee}=a.data,{workflow:re,error:ae}=await Fe({namespace:R,workflowId:X,runId:N});if(ae){t(2,M=ae);return}const{taskQueue:we}=re,be=await rn({queue:we,namespace:R});re.pendingActivities=await at(re,R,ee,_==null?void 0:_.accessToken),fe($e,p={workflow:re,workers:be},p),V=new AbortController,fe(Pe,m=await dn({namespace:R,workflowId:X,runId:N,sort:"ascending",signal:V.signal,historySize:re.historyEvents}),m)},ue=async R=>{var X;if(R&&(!((X=p==null?void 0:p.workflow)===null||X===void 0)&&X.isRunning)){const{settings:N}=a.data,{workflow:ee,error:re}=await Fe({namespace:n,workflowId:r,runId:s});if(re){t(2,M=re);return}ee.pendingActivities=await at(ee,n,N,_==null?void 0:_.accessToken),fe($e,p={...p,workflow:ee},p)}},ce=()=>{fe(Pe,m=[],m),V&&V.abort()},w=()=>{fe(je,u=null,u),fe($e,p=en,p),t(2,M=void 0),ce(),wn(),clearInterval(H),H=null},F=(R,X)=>{X||fe(Qe,E=R,E)};return Wt(()=>{const R=a.url.searchParams.get("sort");R&&fe(Ue,i=R,i),H=setInterval(()=>{_n()},1e4)}),mt(()=>{w()}),o.$$set=R=>{"$$scope"in R&&t(15,v=R.$$scope)},o.$$.update=()=>{o.$$.dirty&1&&t(11,{namespace:n,workflow:r,run:s}=a.params,n,(t(10,r),t(0,a)),(t(9,s),t(0,a))),o.$$.dirty&1&&t(4,l=a.url.searchParams.has("json")),o.$$.dirty&8194&&t(3,f={...p,eventHistory:m}),o.$$.dirty&512&&w(),o.$$.dirty&3584&&J(n,r,s),o.$$.dirty&16384&&ue($),o.$$.dirty&12288&&F(m,c)},[a,p,M,f,l,g,I,C,y,s,r,n,c,m,$,v,k]}class So extends de{constructor(e){super(),ge(this,e,Po,Ao,_e,{})}}const Pt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},Wo=Be(Pt),To=()=>{Wo.set(Pt)};function Ro(o){let e;const t=o[0].default,n=pt(t,o,o[1],null);return{c(){n&&n.c()},l(r){n&&n.l(r)},m(r,s){n&&n.m(r,s),e=!0},p(r,s){n&&n.p&&(!e||s&2)&&_t(n,t,r,r[1],e?gt(t,r[1],s,null):dt(r[1]),null)},i(r){e||(d(n,r),e=!0)},o(r){h(n,r),e=!1},d(r){n&&n.d(r)}}}function Vo(o){let e,t;return e=new So({props:{$$slots:{default:[Ro]},$$scope:{ctx:o}}}),{c(){A(e.$$.fragment)},l(n){P(e.$$.fragment,n)},m(n,r){S(e,n,r),t=!0},p(n,[r]){const s={};r&2&&(s.$$scope={dirty:r,ctx:n}),e.$set(s)},i(n){t||(d(e.$$.fragment,n),t=!0)},o(n){h(e.$$.fragment,n),t=!1},d(n){W(e,n)}}}function yo(o,e,t){let{$$slots:n={},$$scope:r}=e;return mt(()=>{To()}),o.$$set=s=>{"$$scope"in s&&t(1,r=s.$$scope)},[n,r]}class Wr extends de{constructor(e){super(),ge(this,e,yo,Vo,_e,{})}}export{Wr as component}; diff --git a/ui/assets/local/_app/immutable/nodes/8.DMqgyztx.js b/ui/assets/local/_app/immutable/nodes/8.Dyn-TH2r.js similarity index 97% rename from ui/assets/local/_app/immutable/nodes/8.DMqgyztx.js rename to ui/assets/local/_app/immutable/nodes/8.Dyn-TH2r.js index 59e29013f..3e0ccc42b 100644 --- a/ui/assets/local/_app/immutable/nodes/8.DMqgyztx.js +++ b/ui/assets/local/_app/immutable/nodes/8.Dyn-TH2r.js @@ -1,2 +1,2 @@ -import{s as k,x as $,i as h,f as v,c as N,a as p,u as m,g as d,e as b,h as S,j as T,o as w,m as C,v as H}from"../chunks/scheduler.C46pS-76.js";import{S as y,i as L,g as I,b as f,e as M,t as _,c as j,a as q,m as z,d as D}from"../chunks/index.dOVbn71B.js";import{p as E}from"../chunks/stores.Dz-RNcUk.js";const P=o=>({}),g=o=>({});function V(o){let s;const l=o[6].fallback,e=p(l,o,o[5],g);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&32)&&m(e,l,t,t[5],s?b(l,t[5],n,P):d(t[5]),g)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function A(o){let s;const l=o[6].default,e=p(l,o,o[5],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&32)&&m(e,l,t,t[5],s?b(l,t[5],n,null):d(t[5]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s,l,e,t;const n=[A,V],r=[];function c(a,i){return a[0]?0:1}return s=c(o),l=r[s]=n[s](o),{c(){l.c(),e=$()},l(a){l.l(a),e=$()},m(a,i){r[s].m(a,i),h(a,e,i),t=!0},p(a,[i]){let u=s;s=c(a),s===u?r[s].p(a,i):(I(),f(r[u],1,1,()=>{r[u]=null}),M(),l=r[s],l?l.p(a,i):(l=r[s]=n[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){f(l),t=!1},d(a){a&&v(e),r[s].d(a)}}}function F(o,s,l){let e,t;N(o,E,u=>l(4,t=u));let{$$slots:n={},$$scope:r}=s;var c,a,i;return o.$$set=u=>{"$$scope"in u&&l(5,r=u.$$scope)},o.$$.update=()=>{o.$$.dirty&30&&l(0,e=l(3,i=l(2,a=l(1,c=t.data)===null||c===void 0?void 0:c.systemInfo)===null||a===void 0?void 0:a.capabilities)===null||i===void 0?void 0:i.nexus)},[e,c,a,i,t,r,n]}class G extends y{constructor(s){super(),L(this,s,F,B,k,{})}}function J(o){let s;const l=o[0].default,e=p(l,o,o[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&2)&&m(e,l,t,t[1],s?b(l,t[1],n,null):d(t[1]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function K(o){let s,l=`

Sorry, this feature is not available in this version of Temporal. Please +import{s as k,x as $,i as h,f as v,c as N,a as p,u as m,g as d,e as b,h as S,j as T,o as w,m as C,v as H}from"../chunks/scheduler.C46pS-76.js";import{S as y,i as L,g as I,b as f,e as M,t as _,c as j,a as q,m as z,d as D}from"../chunks/index.dOVbn71B.js";import{p as E}from"../chunks/stores.Ds4o9nwd.js";const P=o=>({}),g=o=>({});function V(o){let s;const l=o[6].fallback,e=p(l,o,o[5],g);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&32)&&m(e,l,t,t[5],s?b(l,t[5],n,P):d(t[5]),g)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function A(o){let s;const l=o[6].default,e=p(l,o,o[5],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&32)&&m(e,l,t,t[5],s?b(l,t[5],n,null):d(t[5]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function B(o){let s,l,e,t;const n=[A,V],r=[];function c(a,i){return a[0]?0:1}return s=c(o),l=r[s]=n[s](o),{c(){l.c(),e=$()},l(a){l.l(a),e=$()},m(a,i){r[s].m(a,i),h(a,e,i),t=!0},p(a,[i]){let u=s;s=c(a),s===u?r[s].p(a,i):(I(),f(r[u],1,1,()=>{r[u]=null}),M(),l=r[s],l?l.p(a,i):(l=r[s]=n[s](a),l.c()),_(l,1),l.m(e.parentNode,e))},i(a){t||(_(l),t=!0)},o(a){f(l),t=!1},d(a){a&&v(e),r[s].d(a)}}}function F(o,s,l){let e,t;N(o,E,u=>l(4,t=u));let{$$slots:n={},$$scope:r}=s;var c,a,i;return o.$$set=u=>{"$$scope"in u&&l(5,r=u.$$scope)},o.$$.update=()=>{o.$$.dirty&30&&l(0,e=l(3,i=l(2,a=l(1,c=t.data)===null||c===void 0?void 0:c.systemInfo)===null||a===void 0?void 0:a.capabilities)===null||i===void 0?void 0:i.nexus)},[e,c,a,i,t,r,n]}class G extends y{constructor(s){super(),L(this,s,F,B,k,{})}}function J(o){let s;const l=o[0].default,e=p(l,o,o[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,n){e&&e.m(t,n),s=!0},p(t,n){e&&e.p&&(!s||n&2)&&m(e,l,t,t[1],s?b(l,t[1],n,null):d(t[1]),null)},i(t){s||(_(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function K(o){let s,l=`

Sorry, this feature is not available in this version of Temporal. Please enable Nexus or upgrade to a newer version.

`;return{c(){s=S("div"),s.innerHTML=l,this.h()},l(e){s=T(e,"DIV",{slot:!0,"data-svelte-h":!0}),w(s)!=="svelte-144s53z"&&(s.innerHTML=l),this.h()},h(){C(s,"slot","fallback")},m(e,t){h(e,s,t)},p:H,d(e){e&&v(s)}}}function O(o){let s,l;return s=new G({props:{$$slots:{fallback:[K],default:[J]},$$scope:{ctx:o}}}),{c(){j(s.$$.fragment)},l(e){q(s.$$.fragment,e)},m(e,t){z(s,e,t),l=!0},p(e,[t]){const n={};t&2&&(n.$$scope={dirty:t,ctx:e}),s.$set(n)},i(e){l||(_(s.$$.fragment,e),l=!0)},o(e){f(s.$$.fragment,e),l=!1},d(e){D(s,e)}}}function Q(o,s,l){let{$$slots:e={},$$scope:t}=s;return o.$$set=n=>{"$$scope"in n&&l(1,t=n.$$scope)},[e,t]}class X extends y{constructor(s){super(),L(this,s,Q,O,k,{})}}export{X as component}; diff --git a/ui/assets/local/_app/immutable/nodes/9.Dy64mKZZ.js b/ui/assets/local/_app/immutable/nodes/9.Dki_NxDW.js similarity index 91% rename from ui/assets/local/_app/immutable/nodes/9.Dy64mKZZ.js rename to ui/assets/local/_app/immutable/nodes/9.Dki_NxDW.js index a4e38a884..728c307d7 100644 --- a/ui/assets/local/_app/immutable/nodes/9.Dy64mKZZ.js +++ b/ui/assets/local/_app/immutable/nodes/9.Dki_NxDW.js @@ -1 +1 @@ -import{f as p}from"../chunks/nexus-service.BPsrr5_T.js";import{a as m}from"../chunks/decode-payload.BTpeWKqJ.js";import{s as g,x as _,i as b,f as y,a as k,u as h,g as E,e as S,v as $}from"../chunks/scheduler.C46pS-76.js";import{S as w,i as N,b as u,e as v,t as d,g as C,c as j,a as D,m as O,d as P}from"../chunks/index.dOVbn71B.js";import{E as q}from"../chunks/error.aZkLDhWZ.js";import{t as z}from"../chunks/translate.BBe5dcco.js";const L=async({params:a,fetch:t,parent:o})=>{var r,i;const{id:e}=a;try{const{endpoint:n}=await p(e,t),c=await o();let s="";try{(i=(r=n==null?void 0:n.spec)==null?void 0:r.description)!=null&&i.data&&(s=await m(n.spec.description,c.settings))}catch(l){console.error("Error decoding Nexus Endpoint description:",l)}return n.spec.descriptionString=s,{endpoint:n}}catch(n){console.error("Error loading Nexus Endpoint:",n)}},I=Object.freeze(Object.defineProperty({__proto__:null,load:L},Symbol.toStringTag,{value:"Module"}));function M(a){let t;const o=a[3].default,e=k(o,a,a[2],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,i){e&&e.m(r,i),t=!0},p(r,i){e&&e.p&&(!t||i&4)&&h(e,o,r,r[2],t?S(o,r[2],i,null):E(r[2]),null)},i(r){t||(d(e,r),t=!0)},o(r){u(e,r),t=!1},d(r){e&&e.d(r)}}}function R(a){let t,o;return t=new q({props:{error:{statusCode:404,message:z("common.page-not-found")},status:404}}),{c(){j(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,r){O(t,e,r),o=!0},p:$,i(e){o||(d(t.$$.fragment,e),o=!0)},o(e){u(t.$$.fragment,e),o=!1},d(e){P(t,e)}}}function T(a){let t,o,e,r;const i=[R,M],n=[];function c(s,l){return s[0]?1:0}return t=c(a),o=n[t]=i[t](a),{c(){o.c(),e=_()},l(s){o.l(s),e=_()},m(s,l){n[t].m(s,l),b(s,e,l),r=!0},p(s,[l]){let f=t;t=c(s),t===f?n[t].p(s,l):(C(),u(n[f],1,1,()=>{n[f]=null}),v(),o=n[t],o?o.p(s,l):(o=n[t]=i[t](s),o.c()),d(o,1),o.m(e.parentNode,e))},i(s){r||(d(o),r=!0)},o(s){u(o),r=!1},d(s){s&&y(e),n[t].d(s)}}}function W(a,t,o){let e,{$$slots:r={},$$scope:i}=t,{data:n}=t;return a.$$set=c=>{"data"in c&&o(1,n=c.data),"$$scope"in c&&o(2,i=c.$$scope)},a.$$.update=()=>{a.$$.dirty&2&&o(0,{endpoint:e}=n,e)},[e,n,i,r]}class J extends w{constructor(t){super(),N(this,t,W,T,g,{data:1})}}export{J as component,I as universal}; +import{f as p}from"../chunks/nexus-service.CnR3KXfY.js";import{a as m}from"../chunks/decode-payload.CR1Tto5x.js";import{s as g,x as _,i as b,f as y,a as k,u as h,g as E,e as S,v as $}from"../chunks/scheduler.C46pS-76.js";import{S as w,i as N,b as u,e as v,t as d,g as C,c as j,a as D,m as O,d as P}from"../chunks/index.dOVbn71B.js";import{E as q}from"../chunks/error.CjC3VuFL.js";import{t as z}from"../chunks/translate.BBe5dcco.js";const L=async({params:a,fetch:t,parent:o})=>{var r,i;const{id:e}=a;try{const{endpoint:n}=await p(e,t),c=await o();let s="";try{(i=(r=n==null?void 0:n.spec)==null?void 0:r.description)!=null&&i.data&&(s=await m(n.spec.description,c.settings))}catch(l){console.error("Error decoding Nexus Endpoint description:",l)}return n.spec.descriptionString=s,{endpoint:n}}catch(n){console.error("Error loading Nexus Endpoint:",n)}},I=Object.freeze(Object.defineProperty({__proto__:null,load:L},Symbol.toStringTag,{value:"Module"}));function M(a){let t;const o=a[3].default,e=k(o,a,a[2],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,i){e&&e.m(r,i),t=!0},p(r,i){e&&e.p&&(!t||i&4)&&h(e,o,r,r[2],t?S(o,r[2],i,null):E(r[2]),null)},i(r){t||(d(e,r),t=!0)},o(r){u(e,r),t=!1},d(r){e&&e.d(r)}}}function R(a){let t,o;return t=new q({props:{error:{statusCode:404,message:z("common.page-not-found")},status:404}}),{c(){j(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,r){O(t,e,r),o=!0},p:$,i(e){o||(d(t.$$.fragment,e),o=!0)},o(e){u(t.$$.fragment,e),o=!1},d(e){P(t,e)}}}function T(a){let t,o,e,r;const i=[R,M],n=[];function c(s,l){return s[0]?1:0}return t=c(a),o=n[t]=i[t](a),{c(){o.c(),e=_()},l(s){o.l(s),e=_()},m(s,l){n[t].m(s,l),b(s,e,l),r=!0},p(s,[l]){let f=t;t=c(s),t===f?n[t].p(s,l):(C(),u(n[f],1,1,()=>{n[f]=null}),v(),o=n[t],o?o.p(s,l):(o=n[t]=i[t](s),o.c()),d(o,1),o.m(e.parentNode,e))},i(s){r||(d(o),r=!0)},o(s){u(o),r=!1},d(s){s&&y(e),n[t].d(s)}}}function W(a,t,o){let e,{$$slots:r={},$$scope:i}=t,{data:n}=t;return a.$$set=c=>{"data"in c&&o(1,n=c.data),"$$scope"in c&&o(2,i=c.$$scope)},a.$$.update=()=>{a.$$.dirty&2&&o(0,{endpoint:e}=n,e)},[e,n,i,r]}class J extends w{constructor(t){super(),N(this,t,W,T,g,{data:1})}}export{J as component,I as universal}; diff --git a/ui/assets/local/_app/version.json b/ui/assets/local/_app/version.json index 46289da5e..c5d5a56d1 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1730402932558"} \ No newline at end of file +{"version":"1730479855547"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index 806ee87e8..c0f349ada 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -3,13 +3,13 @@ - - - + + + - + - + @@ -18,15 +18,15 @@