plum-e2e 2.10.0 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env +1 -1
- package/CLAUDE.md +1 -1
- package/README.md +7 -7
- package/backend/app.js +1 -1
- package/backend/lib/csv.js +21 -0
- package/backend/lib/exportResponse.js +37 -0
- package/backend/lib/serverBootstrap.js +2 -2
- package/backend/lib/serverConfig.js +5 -3
- package/backend/mcp/server.js +44 -0
- package/backend/middleware/runnerOrAdmin.js +1 -1
- package/backend/package.json +1 -1
- package/backend/routes/reports.routes.js +19 -0
- package/backend/routes/runners.routes.js +1 -1
- package/backend/routes/test-cases.routes.js +12 -0
- package/backend/routes/test-runs.routes.js +17 -0
- package/backend/routes/test-suites.routes.js +34 -0
- package/backend/scripts/{manage-runners.mjs → manage-nodes.mjs} +67 -52
- package/backend/services/exportService.js +339 -0
- package/backend/services/testImportService.js +87 -0
- package/bin/plum.js +174 -68
- package/docker-compose.yml +1 -1
- package/frontend/.svelte-kit/adapter-node/.vite/manifest.json +48 -40
- package/frontend/.svelte-kit/{output/server/_app/immutable/assets/Toast.DENwYn3g.css → adapter-node/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
- package/frontend/{build/client/_app/immutable/assets/_layout.HkPnpRl9.css → .svelte-kit/adapter-node/_app/immutable/assets/_layout.B4TT3qNx.css} +1 -1
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.4bPj83tb.css +6 -0
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
- package/frontend/.svelte-kit/adapter-node/chunks/{Toast.js → Button.js} +2 -17
- package/frontend/.svelte-kit/adapter-node/chunks/ConfirmModal.js +1 -1
- package/frontend/.svelte-kit/adapter-node/chunks/EmptyState.js +1 -1
- package/frontend/.svelte-kit/adapter-node/chunks/common.js +11 -4
- package/frontend/.svelte-kit/adapter-node/chunks/constants.js +1 -1
- package/frontend/.svelte-kit/adapter-node/chunks/internal.js +1 -1
- package/frontend/.svelte-kit/adapter-node/chunks/repository.js +21 -17
- package/frontend/.svelte-kit/adapter-node/entries/pages/_layout.svelte.js +2 -0
- package/frontend/.svelte-kit/adapter-node/entries/pages/reports/_id_/_page.svelte.js +11 -2
- package/frontend/.svelte-kit/adapter-node/entries/pages/scheduled-tests/_page.svelte.js +2 -5
- package/frontend/.svelte-kit/adapter-node/entries/pages/settings/_page.svelte.js +300 -253
- package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/_page.svelte.js +55 -36
- package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/runs/_id_/_page.svelte.js +3 -6
- package/frontend/.svelte-kit/adapter-node/entries/pages/test-repository/suites/_id_/_page.svelte.js +15 -17
- package/frontend/.svelte-kit/adapter-node/manifest-full.js +1 -1
- package/frontend/.svelte-kit/adapter-node/manifest.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/0.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/1.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/10.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/11.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/12.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/2.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/3.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/4.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/5.js +1 -1
- package/frontend/.svelte-kit/adapter-node/nodes/6.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/7.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/8.js +2 -2
- package/frontend/.svelte-kit/adapter-node/nodes/9.js +1 -1
- package/frontend/.svelte-kit/generated/server/internal.js +1 -1
- package/frontend/.svelte-kit/output/client/.vite/manifest.json +459 -412
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/{0.CmJTG5mP.css → 0.BEqlRAtD.css} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/10.DC0wD6w_.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/12.Dm1nSEgE.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/6.DdQVxyZK.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/8.DOC8fPSI.css +6 -0
- package/frontend/.svelte-kit/{adapter-node/_app/immutable/assets/Toast.DENwYn3g.css → output/client/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/{_layout.HkPnpRl9.css → _layout.B4TT3qNx.css} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.4bPj83tb.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{C2_rQ4aY.js → 3MBVX4Yb.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/CfkUW1vA.js → .svelte-kit/output/client/_app/immutable/chunks/6VDMVB5U.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/B0_HKFXV.js → .svelte-kit/output/client/_app/immutable/chunks/B2lVGNml.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/CboYYxrf.js → .svelte-kit/output/client/_app/immutable/chunks/BCh31ecr.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BDb8hZHu.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{CeH-RgMb.js → BIf7lHIm.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BIjh3jiU.js +8 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BTV7EXZb.js +11 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{DAmOMhaf.js → BWGoOYU0.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BdBJfKUi.js +6 -0
- package/frontend/{build/client/_app/immutable/chunks/BAvTKHxT.js → .svelte-kit/output/client/_app/immutable/chunks/BnXsGCy3.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BtTNggoY.js +8 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/C4Z3p6jE.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CNpD-yNH.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CUPWZLIN.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{Ck6C3Fl0.js → CXQhSK1T.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/C00jnSU2.js → .svelte-kit/output/client/_app/immutable/chunks/CtgCYzu5.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/D72giPTu.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{GDjpV3r7.js → DDx3no2z.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/D_thT6pZ.js +6 -0
- package/frontend/{build/client/_app/immutable/chunks/C8S7qQjQ.js → .svelte-kit/output/client/_app/immutable/chunks/DeiVAbyn.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DiexacSB.js +6 -0
- package/frontend/{build/client/_app/immutable/chunks/d2K3c8Kx.js → .svelte-kit/output/client/_app/immutable/chunks/Dlymnwnf.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/Cgw8TOOy.js → .svelte-kit/output/client/_app/immutable/chunks/gCgJ3Cwu.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/BJ_ypKl3.js → .svelte-kit/output/client/_app/immutable/chunks/htkwR9b-.js} +1 -1
- package/frontend/{build/client/_app/immutable/chunks/C7uEQ-LH.js → .svelte-kit/output/client/_app/immutable/chunks/iL4SCrvY.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{CoTEzvLa.js → kFFd6Oo5.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/pNZogwkM.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{DWzEJYIF.js → prk8PJfA.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/qvxlSGpD.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/r_d1Iu0W.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/{B00vxw57.js → tsOANt55.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/zXSLr47H.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/entry/app.DgdSwPuN.js +7 -0
- package/frontend/{build/client/_app/immutable/entry/start.BXOLyf9R.js → .svelte-kit/output/client/_app/immutable/entry/start.D_lhI48n.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/0.D2F-i1I5.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{1.BI97il3r.js → 1.JIF2GfHq.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/10.A0AHLfOt.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/11.CVSPxlqY.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/12.CnAR0AQb.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{2.Dr6yugXz.js → 2.Bno00fr8.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/3.B6KwaCsM.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{4.DDADylfF.js → 4.BX70m3v6.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/5.UIFh06yr.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/6.DZ1OV24V.js +10 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/7.B_XntBZ1.js +6 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/8.CVHgJw-E.js +9 -0
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/{9.BOK0GNF_.js → 9.DDDQPmMj.js} +1 -1
- package/frontend/.svelte-kit/output/client/_app/version.json +1 -1
- package/frontend/.svelte-kit/output/server/.vite/manifest.json +48 -40
- package/frontend/{build/client/_app/immutable/assets/Toast.DENwYn3g.css → .svelte-kit/output/server/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
- package/frontend/.svelte-kit/{adapter-node/_app/immutable/assets/_layout.HkPnpRl9.css → output/server/_app/immutable/assets/_layout.B4TT3qNx.css} +1 -1
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.4bPj83tb.css +6 -0
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
- package/frontend/.svelte-kit/output/server/chunks/{Toast.js → Button.js} +2 -17
- package/frontend/.svelte-kit/output/server/chunks/ConfirmModal.js +1 -1
- package/frontend/.svelte-kit/output/server/chunks/EmptyState.js +1 -1
- package/frontend/.svelte-kit/output/server/chunks/common.js +11 -4
- package/frontend/.svelte-kit/output/server/chunks/constants.js +1 -1
- package/frontend/.svelte-kit/output/server/chunks/internal.js +1 -1
- package/frontend/.svelte-kit/output/server/chunks/repository.js +21 -17
- package/frontend/.svelte-kit/output/server/entries/pages/_layout.svelte.js +2 -0
- package/frontend/.svelte-kit/output/server/entries/pages/reports/_id_/_page.svelte.js +11 -2
- package/frontend/.svelte-kit/output/server/entries/pages/scheduled-tests/_page.svelte.js +2 -5
- package/frontend/.svelte-kit/output/server/entries/pages/settings/_page.svelte.js +300 -253
- package/frontend/.svelte-kit/output/server/entries/pages/test-repository/_page.svelte.js +55 -36
- package/frontend/.svelte-kit/output/server/entries/pages/test-repository/runs/_id_/_page.svelte.js +3 -6
- package/frontend/.svelte-kit/output/server/entries/pages/test-repository/suites/_id_/_page.svelte.js +15 -17
- package/frontend/.svelte-kit/output/server/manifest-full.js +1 -1
- package/frontend/.svelte-kit/output/server/manifest.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/0.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/1.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/10.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/11.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/12.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/2.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/3.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/4.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/5.js +1 -1
- package/frontend/.svelte-kit/output/server/nodes/6.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/7.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/8.js +2 -2
- package/frontend/.svelte-kit/output/server/nodes/9.js +1 -1
- package/frontend/build/client/_app/immutable/assets/{0.CmJTG5mP.css → 0.BEqlRAtD.css} +1 -1
- package/frontend/build/client/_app/immutable/assets/0.BEqlRAtD.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/0.BEqlRAtD.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css +6 -0
- package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/10.DC0wD6w_.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css +6 -0
- package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/12.Dm1nSEgE.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css +6 -0
- package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/6.DdQVxyZK.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css +6 -0
- package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/8.DOC8fPSI.css.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/assets/Toast.DENwYn3g.css → build/client/_app/immutable/assets/Button.C1zsJAUG.css} +1 -1
- package/frontend/build/client/_app/immutable/assets/Button.C1zsJAUG.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/Button.C1zsJAUG.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css +6 -0
- package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/ExportMenu.DsJQ1Qua.css.gz +0 -0
- package/frontend/{.svelte-kit/output/server/_app/immutable/assets/_layout.HkPnpRl9.css → build/client/_app/immutable/assets/_layout.B4TT3qNx.css} +1 -1
- package/frontend/build/client/_app/immutable/assets/_layout.B4TT3qNx.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_layout.B4TT3qNx.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css +6 -0
- package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.4bPj83tb.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css +6 -0
- package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.BwgtEi_a.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css +6 -0
- package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.DOC8fPSI.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css +6 -0
- package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.Dm1nSEgE.css.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{C2_rQ4aY.js → 3MBVX4Yb.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/3MBVX4Yb.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/3MBVX4Yb.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/CfkUW1vA.js → build/client/_app/immutable/chunks/6VDMVB5U.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/6VDMVB5U.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/6VDMVB5U.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/B0_HKFXV.js → build/client/_app/immutable/chunks/B2lVGNml.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/B2lVGNml.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/B2lVGNml.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/CboYYxrf.js → build/client/_app/immutable/chunks/BCh31ecr.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/BCh31ecr.js.br +6 -0
- package/frontend/build/client/_app/immutable/chunks/BCh31ecr.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BDb8hZHu.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{CeH-RgMb.js → BIf7lHIm.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/BIf7lHIm.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/{CeH-RgMb.js.gz → BIf7lHIm.js.gz} +0 -0
- package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js +8 -0
- package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BIjh3jiU.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js +11 -0
- package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BTV7EXZb.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{DAmOMhaf.js → BWGoOYU0.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/BWGoOYU0.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BWGoOYU0.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BdBJfKUi.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/BAvTKHxT.js → build/client/_app/immutable/chunks/BnXsGCy3.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/BnXsGCy3.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BnXsGCy3.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js +8 -0
- package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BtTNggoY.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/C4Z3p6jE.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CNpD-yNH.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CUPWZLIN.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{Ck6C3Fl0.js → CXQhSK1T.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/CXQhSK1T.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CXQhSK1T.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/C00jnSU2.js → build/client/_app/immutable/chunks/CtgCYzu5.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/CtgCYzu5.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CtgCYzu5.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/D72giPTu.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/D72giPTu.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/D72giPTu.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{GDjpV3r7.js → DDx3no2z.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/DDx3no2z.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DDx3no2z.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/D_thT6pZ.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/C8S7qQjQ.js → build/client/_app/immutable/chunks/DeiVAbyn.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/DeiVAbyn.js.br +6 -0
- package/frontend/build/client/_app/immutable/chunks/DeiVAbyn.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DiexacSB.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/DiexacSB.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DiexacSB.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/d2K3c8Kx.js → build/client/_app/immutable/chunks/Dlymnwnf.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/Dlymnwnf.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Dlymnwnf.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/Cgw8TOOy.js → build/client/_app/immutable/chunks/gCgJ3Cwu.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/gCgJ3Cwu.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/gCgJ3Cwu.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/BJ_ypKl3.js → build/client/_app/immutable/chunks/htkwR9b-.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/htkwR9b-.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/htkwR9b-.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/chunks/C7uEQ-LH.js → build/client/_app/immutable/chunks/iL4SCrvY.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/iL4SCrvY.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/iL4SCrvY.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{CoTEzvLa.js → kFFd6Oo5.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/kFFd6Oo5.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/kFFd6Oo5.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/pNZogwkM.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{DWzEJYIF.js → prk8PJfA.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/prk8PJfA.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/prk8PJfA.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/qvxlSGpD.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/r_d1Iu0W.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/{B00vxw57.js → tsOANt55.js} +1 -1
- package/frontend/build/client/_app/immutable/chunks/tsOANt55.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/tsOANt55.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js +6 -0
- package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/zXSLr47H.js.gz +0 -0
- package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js +7 -0
- package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js.br +0 -0
- package/frontend/build/client/_app/immutable/entry/app.DgdSwPuN.js.gz +0 -0
- package/frontend/{.svelte-kit/output/client/_app/immutable/entry/start.BXOLyf9R.js → build/client/_app/immutable/entry/start.D_lhI48n.js} +1 -1
- package/frontend/build/client/_app/immutable/entry/{start.BXOLyf9R.js.br → start.D_lhI48n.js.br} +1 -1
- package/frontend/build/client/_app/immutable/entry/{start.BXOLyf9R.js.gz → start.D_lhI48n.js.gz} +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.D2F-i1I5.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{1.BI97il3r.js → 1.JIF2GfHq.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/1.JIF2GfHq.js.br +5 -0
- package/frontend/build/client/_app/immutable/nodes/1.JIF2GfHq.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/10.A0AHLfOt.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.CVSPxlqY.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.CnAR0AQb.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{2.Dr6yugXz.js → 2.Bno00fr8.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/2.Bno00fr8.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/2.Bno00fr8.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.B6KwaCsM.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{4.DDADylfF.js → 4.BX70m3v6.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/4.BX70m3v6.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.BX70m3v6.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/5.UIFh06yr.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js +10 -0
- package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/6.DZ1OV24V.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js +6 -0
- package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/7.B_XntBZ1.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js +9 -0
- package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.CVHgJw-E.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/{9.BOK0GNF_.js → 9.DDDQPmMj.js} +1 -1
- package/frontend/build/client/_app/immutable/nodes/9.DDDQPmMj.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.DDDQPmMj.js.gz +0 -0
- package/frontend/build/client/_app/version.json +1 -1
- package/frontend/build/client/_app/version.json.br +0 -0
- package/frontend/build/client/_app/version.json.gz +0 -0
- package/frontend/build/server/chunks/0-38cvTs44.js +22 -0
- package/frontend/build/server/chunks/0-38cvTs44.js.map +5 -0
- package/frontend/build/server/chunks/{1-B3HpigzL.js → 1-CcYsajvR.js} +2 -2
- package/frontend/build/server/chunks/{1-B3HpigzL.js.map → 1-CcYsajvR.js.map} +1 -1
- package/frontend/build/server/chunks/10-CFR2MUJt.js +14 -0
- package/frontend/build/server/chunks/10-CFR2MUJt.js.map +5 -0
- package/frontend/build/server/chunks/11-BmkiRQ9D.js +14 -0
- package/frontend/build/server/chunks/11-BmkiRQ9D.js.map +5 -0
- package/frontend/build/server/chunks/12-BphJAwnL.js +14 -0
- package/frontend/build/server/chunks/12-BphJAwnL.js.map +5 -0
- package/frontend/build/server/chunks/2-Dalgd2D4.js +14 -0
- package/frontend/build/server/chunks/{2-DioMbKbC.js.map → 2-Dalgd2D4.js.map} +1 -1
- package/frontend/build/server/chunks/3-BvsmdXCj.js +14 -0
- package/frontend/build/server/chunks/{3-CgiZg_9v.js.map → 3-BvsmdXCj.js.map} +1 -1
- package/frontend/build/server/chunks/4-CN18WCEn.js +14 -0
- package/frontend/build/server/chunks/{4-BM-49dbE.js.map → 4-CN18WCEn.js.map} +1 -1
- package/frontend/build/server/chunks/5-BwLYF3xL.js +14 -0
- package/frontend/build/server/chunks/{5-Brx_KOzy.js.map → 5-BwLYF3xL.js.map} +1 -1
- package/frontend/build/server/chunks/6-DTM2N_k3.js +14 -0
- package/frontend/build/server/chunks/6-DTM2N_k3.js.map +5 -0
- package/frontend/build/server/chunks/7-DTNbErSe.js +14 -0
- package/frontend/build/server/chunks/7-DTNbErSe.js.map +5 -0
- package/frontend/build/server/chunks/8-BfCbb7pl.js +14 -0
- package/frontend/build/server/chunks/8-BfCbb7pl.js.map +5 -0
- package/frontend/build/server/chunks/9-CQKepnMw.js +14 -0
- package/frontend/build/server/chunks/{9-BMAKiAem.js.map → 9-CQKepnMw.js.map} +1 -1
- package/frontend/build/server/chunks/{Toast-CHB87F8k.js → Button-B9h9viZX.js} +3 -17
- package/frontend/build/server/chunks/Button-B9h9viZX.js.map +5 -0
- package/frontend/build/server/chunks/{ConfirmModal-CtGWHl0v.js → ConfirmModal-C6Cz898n.js} +2 -2
- package/frontend/build/server/chunks/{ConfirmModal-CtGWHl0v.js.map → ConfirmModal-C6Cz898n.js.map} +1 -1
- package/frontend/build/server/chunks/{EmptyState-Zpm9tJe1.js → EmptyState-CRtsJIv6.js} +2 -2
- package/frontend/build/server/chunks/{EmptyState-Zpm9tJe1.js.map → EmptyState-CRtsJIv6.js.map} +1 -1
- package/frontend/build/server/chunks/{_layout.svelte-C_6nsIpT.js → _layout.svelte-B8vZGefg.js} +6 -7
- package/frontend/build/server/chunks/_layout.svelte-B8vZGefg.js.map +5 -0
- package/frontend/build/server/chunks/{_page.svelte-CTebwzwy.js → _page.svelte-BrnXHxJ4.js} +14 -7
- package/frontend/build/server/chunks/_page.svelte-BrnXHxJ4.js.map +5 -0
- package/frontend/build/server/chunks/_page.svelte-C2WqvInJ.js +898 -0
- package/frontend/build/server/chunks/_page.svelte-C2WqvInJ.js.map +5 -0
- package/frontend/build/server/chunks/{_page.svelte-Bamoq11m.js → _page.svelte-CP6jA1ex.js} +6 -6
- package/frontend/build/server/chunks/{_page.svelte-Bamoq11m.js.map → _page.svelte-CP6jA1ex.js.map} +1 -1
- package/frontend/build/server/chunks/{_page.svelte-CbTrCeeX.js → _page.svelte-D6b-klLK.js} +9 -9
- package/frontend/build/server/chunks/{_page.svelte-CbTrCeeX.js.map → _page.svelte-D6b-klLK.js.map} +1 -1
- package/frontend/build/server/chunks/{_page.svelte-CmJKt3-H.js → _page.svelte-DBjTpquQ.js} +18 -21
- package/frontend/build/server/chunks/_page.svelte-DBjTpquQ.js.map +5 -0
- package/frontend/build/server/chunks/{_page.svelte-DHZhNTPg.js → _page.svelte-DM1_y4Oq.js} +60 -42
- package/frontend/build/server/chunks/_page.svelte-DM1_y4Oq.js.map +5 -0
- package/frontend/build/server/chunks/{_page.svelte-DObTHQe2.js → _page.svelte-Mo-O3HJ5.js} +7 -7
- package/frontend/build/server/chunks/{_page.svelte-DObTHQe2.js.map → _page.svelte-Mo-O3HJ5.js.map} +1 -1
- package/frontend/build/server/chunks/{_page.svelte-CAlhaCzS.js → _page.svelte-mZF4NrfU.js} +9 -12
- package/frontend/build/server/chunks/_page.svelte-mZF4NrfU.js.map +5 -0
- package/frontend/build/server/chunks/{_page.svelte-BNwU9zza.js → _page.svelte-nrlgIFaU.js} +8 -11
- package/frontend/build/server/chunks/_page.svelte-nrlgIFaU.js.map +5 -0
- package/frontend/build/server/chunks/{common-DYYTVHPw.js → common-DS-Z0UFe.js} +7 -2
- package/frontend/build/server/chunks/common-DS-Z0UFe.js.map +5 -0
- package/frontend/build/server/chunks/{constants-BYVkTZ-O.js → constants-OmHysD51.js} +2 -2
- package/frontend/build/server/chunks/{constants-BYVkTZ-O.js.map → constants-OmHysD51.js.map} +1 -1
- package/frontend/build/server/chunks/{format-2pqy61MU.js → format-Bqb0as15.js} +2 -2
- package/frontend/build/server/chunks/{format-2pqy61MU.js.map → format-Bqb0as15.js.map} +1 -1
- package/frontend/build/server/chunks/{reports-WuXG6tj3.js → reports-chCHCDzB.js} +2 -2
- package/frontend/build/server/chunks/{reports-WuXG6tj3.js.map → reports-chCHCDzB.js.map} +1 -1
- package/frontend/build/server/chunks/{reports2-CCpI0xkQ.js → reports2-Dr3zu9CD.js} +2 -2
- package/frontend/build/server/chunks/{reports2-CCpI0xkQ.js.map → reports2-Dr3zu9CD.js.map} +1 -1
- package/frontend/build/server/chunks/{repository-TYWcFuWP.js → repository-DSsWVKEb.js} +5 -3
- package/frontend/build/server/chunks/repository-DSsWVKEb.js.map +5 -0
- package/frontend/build/server/chunks/{runner-D5yCWOsy.js → runner-aaUtOqck.js} +3 -3
- package/frontend/build/server/chunks/{runner-D5yCWOsy.js.map → runner-aaUtOqck.js.map} +1 -1
- package/frontend/build/server/index.js +1 -1
- package/frontend/build/server/index.js.map +1 -1
- package/frontend/build/server/manifest.js +14 -14
- package/frontend/build/server/manifest.js.map +1 -1
- package/frontend/package-lock.json +14 -0
- package/frontend/package.json +2 -0
- package/frontend/src/lib/api/reports.js +7 -0
- package/frontend/src/lib/api/repository.js +28 -0
- package/frontend/src/lib/components/layout/RunnerPanel.svelte +2 -1
- package/frontend/src/lib/components/reports/RecordingPlayer.svelte +172 -2
- package/frontend/src/lib/components/ui/ExportMenu.svelte +154 -0
- package/frontend/src/lib/components/ui/NotificationStack.svelte +177 -0
- package/frontend/src/lib/constants.js +1 -1
- package/frontend/src/lib/copy/common.js +9 -0
- package/frontend/src/lib/copy/reports.js +20 -0
- package/frontend/src/lib/copy/repository.js +4 -0
- package/frontend/src/lib/copy/settings.js +15 -0
- package/frontend/src/lib/stores/notifications.js +23 -0
- package/frontend/src/lib/stores/replayVideo.js +51 -0
- package/frontend/src/lib/utils/download.js +28 -0
- package/frontend/src/lib/utils/replayCapture.js +91 -0
- package/frontend/src/lib/utils/replayVideo.js +111 -0
- package/frontend/src/routes/+layout.svelte +2 -0
- package/frontend/src/routes/reports/[id]/+page.svelte +38 -3
- package/frontend/src/routes/scheduled-tests/+page.svelte +9 -17
- package/frontend/src/routes/settings/+page.svelte +140 -56
- package/frontend/src/routes/test-repository/+page.svelte +44 -16
- package/frontend/src/routes/test-repository/runs/[id]/+page.svelte +14 -23
- package/frontend/src/routes/test-repository/suites/[id]/+page.svelte +38 -22
- package/package.json +1 -1
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.B9H_IpSU.css +0 -6
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.COwSGmmy.css +0 -6
- package/frontend/.svelte-kit/adapter-node/_app/immutable/assets/_page.Dp6vaGRc.css +0 -6
- package/frontend/.svelte-kit/generated/client/nodes/13.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/10.CdaQUS6U.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/12.B9H_IpSU.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/6.BN5XbLUX.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/8.COwSGmmy.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/Button.FOWXxvc7.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.B9H_IpSU.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.COwSGmmy.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/assets/_page.Dp6vaGRc.css +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/2-KCkWZO.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/BbYY_TzB.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/Beula-TH.js +0 -11
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CZWchtW8.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/CegSvdD-.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/Cfmt4_tJ.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DB3YXVFP.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DgQy0SB2.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DiVmSEJa.js +0 -8
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/Dl-F6VCo.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/DuAVKaL3.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/chunks/K1h4wprj.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/entry/app.DRjRA71t.js +0 -7
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/0.CRb8Nyce.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/10.kyazROhw.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/11.B3vMgT2v.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/12.DkPcIrgW.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/3.DUiL7fb5.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/5.N4CeDeoD.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/6.DWd93Bv5.js +0 -10
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/7.c8d1cQQM.js +0 -6
- package/frontend/.svelte-kit/output/client/_app/immutable/nodes/8.Cvd3MauU.js +0 -9
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.B9H_IpSU.css +0 -6
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.COwSGmmy.css +0 -6
- package/frontend/.svelte-kit/output/server/_app/immutable/assets/_page.Dp6vaGRc.css +0 -6
- package/frontend/build/client/_app/immutable/assets/0.CmJTG5mP.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/0.CmJTG5mP.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css +0 -6
- package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/10.CdaQUS6U.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/12.B9H_IpSU.css +0 -6
- package/frontend/build/client/_app/immutable/assets/12.B9H_IpSU.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/12.B9H_IpSU.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/6.BN5XbLUX.css +0 -6
- package/frontend/build/client/_app/immutable/assets/6.BN5XbLUX.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/6.BN5XbLUX.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/8.COwSGmmy.css +0 -6
- package/frontend/build/client/_app/immutable/assets/8.COwSGmmy.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/8.COwSGmmy.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css +0 -6
- package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/Button.FOWXxvc7.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/Toast.DENwYn3g.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/Toast.DENwYn3g.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_layout.HkPnpRl9.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_layout.HkPnpRl9.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css +0 -6
- package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.5IJAEAjc.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.B9H_IpSU.css +0 -6
- package/frontend/build/client/_app/immutable/assets/_page.B9H_IpSU.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.B9H_IpSU.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.COwSGmmy.css +0 -6
- package/frontend/build/client/_app/immutable/assets/_page.COwSGmmy.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.COwSGmmy.css.gz +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.Dp6vaGRc.css +0 -6
- package/frontend/build/client/_app/immutable/assets/_page.Dp6vaGRc.css.br +0 -0
- package/frontend/build/client/_app/immutable/assets/_page.Dp6vaGRc.css.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/2-KCkWZO.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/2-KCkWZO.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/2-KCkWZO.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/B00vxw57.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/B00vxw57.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/B0_HKFXV.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/B0_HKFXV.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BAvTKHxT.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BAvTKHxT.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BJ_ypKl3.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BJ_ypKl3.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/BbYY_TzB.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/BbYY_TzB.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/BbYY_TzB.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/Beula-TH.js +0 -11
- package/frontend/build/client/_app/immutable/chunks/Beula-TH.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Beula-TH.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/C00jnSU2.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/C00jnSU2.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/C2_rQ4aY.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/C2_rQ4aY.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/C7uEQ-LH.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/C7uEQ-LH.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/C8S7qQjQ.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/C8S7qQjQ.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CZWchtW8.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/CZWchtW8.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CZWchtW8.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CboYYxrf.js.br +0 -6
- package/frontend/build/client/_app/immutable/chunks/CboYYxrf.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CeH-RgMb.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CegSvdD-.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/CegSvdD-.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CegSvdD-.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CfkUW1vA.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CfkUW1vA.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/Cfmt4_tJ.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/Cfmt4_tJ.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Cfmt4_tJ.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/Cgw8TOOy.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Cgw8TOOy.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/Ck6C3Fl0.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Ck6C3Fl0.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/CoTEzvLa.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/CoTEzvLa.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DAmOMhaf.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DAmOMhaf.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DB3YXVFP.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/DB3YXVFP.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DB3YXVFP.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DWzEJYIF.js.br +0 -7
- package/frontend/build/client/_app/immutable/chunks/DWzEJYIF.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DgQy0SB2.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/DgQy0SB2.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DgQy0SB2.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DiVmSEJa.js +0 -8
- package/frontend/build/client/_app/immutable/chunks/DiVmSEJa.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DiVmSEJa.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/Dl-F6VCo.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/Dl-F6VCo.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/Dl-F6VCo.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/DuAVKaL3.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/DuAVKaL3.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/DuAVKaL3.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/GDjpV3r7.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/GDjpV3r7.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/K1h4wprj.js +0 -6
- package/frontend/build/client/_app/immutable/chunks/K1h4wprj.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/K1h4wprj.js.gz +0 -0
- package/frontend/build/client/_app/immutable/chunks/d2K3c8Kx.js.br +0 -0
- package/frontend/build/client/_app/immutable/chunks/d2K3c8Kx.js.gz +0 -0
- package/frontend/build/client/_app/immutable/entry/app.DRjRA71t.js +0 -7
- package/frontend/build/client/_app/immutable/entry/app.DRjRA71t.js.br +0 -0
- package/frontend/build/client/_app/immutable/entry/app.DRjRA71t.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.CRb8Nyce.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/0.CRb8Nyce.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/0.CRb8Nyce.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/1.BI97il3r.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/1.BI97il3r.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/10.kyazROhw.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/10.kyazROhw.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/10.kyazROhw.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.B3vMgT2v.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/11.B3vMgT2v.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/11.B3vMgT2v.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.DkPcIrgW.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/12.DkPcIrgW.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/12.DkPcIrgW.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/2.Dr6yugXz.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/2.Dr6yugXz.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.DUiL7fb5.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/3.DUiL7fb5.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/3.DUiL7fb5.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.DDADylfF.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/4.DDADylfF.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/5.N4CeDeoD.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/5.N4CeDeoD.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/5.N4CeDeoD.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/6.DWd93Bv5.js +0 -10
- package/frontend/build/client/_app/immutable/nodes/6.DWd93Bv5.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/6.DWd93Bv5.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/7.c8d1cQQM.js +0 -6
- package/frontend/build/client/_app/immutable/nodes/7.c8d1cQQM.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/7.c8d1cQQM.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.Cvd3MauU.js +0 -9
- package/frontend/build/client/_app/immutable/nodes/8.Cvd3MauU.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/8.Cvd3MauU.js.gz +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.BOK0GNF_.js.br +0 -0
- package/frontend/build/client/_app/immutable/nodes/9.BOK0GNF_.js.gz +0 -0
- package/frontend/build/server/chunks/0-_rljpEay.js +0 -22
- package/frontend/build/server/chunks/0-_rljpEay.js.map +0 -5
- package/frontend/build/server/chunks/10-BQBBYpxV.js +0 -14
- package/frontend/build/server/chunks/10-BQBBYpxV.js.map +0 -5
- package/frontend/build/server/chunks/11-10xw0TIP.js +0 -14
- package/frontend/build/server/chunks/11-10xw0TIP.js.map +0 -5
- package/frontend/build/server/chunks/12-CZ3_Uw3c.js +0 -14
- package/frontend/build/server/chunks/12-CZ3_Uw3c.js.map +0 -5
- package/frontend/build/server/chunks/2-DioMbKbC.js +0 -14
- package/frontend/build/server/chunks/3-CgiZg_9v.js +0 -14
- package/frontend/build/server/chunks/4-BM-49dbE.js +0 -14
- package/frontend/build/server/chunks/5-Brx_KOzy.js +0 -14
- package/frontend/build/server/chunks/6-C5swINND.js +0 -14
- package/frontend/build/server/chunks/6-C5swINND.js.map +0 -5
- package/frontend/build/server/chunks/7-B8e4y3CB.js +0 -14
- package/frontend/build/server/chunks/7-B8e4y3CB.js.map +0 -5
- package/frontend/build/server/chunks/8-BZtkZMIZ.js +0 -14
- package/frontend/build/server/chunks/8-BZtkZMIZ.js.map +0 -5
- package/frontend/build/server/chunks/9-BMAKiAem.js +0 -14
- package/frontend/build/server/chunks/Toast-CHB87F8k.js.map +0 -5
- package/frontend/build/server/chunks/_layout.svelte-C_6nsIpT.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-BNwU9zza.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-CAlhaCzS.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-CTebwzwy.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-CmJKt3-H.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-DHZhNTPg.js.map +0 -5
- package/frontend/build/server/chunks/_page.svelte-ywHy9KCh.js +0 -852
- package/frontend/build/server/chunks/_page.svelte-ywHy9KCh.js.map +0 -5
- package/frontend/build/server/chunks/common-DYYTVHPw.js.map +0 -5
- package/frontend/build/server/chunks/repository-TYWcFuWP.js.map +0 -5
- package/frontend/src/lib/components/ui/Toast.svelte +0 -24
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{s as H,a as w,e as U,t as R,b as an,c as qe}from"../chunks/CfkUW1vA.js";import{i as Wt}from"../chunks/C00jnSU2.js";import{e as nt,u as cn,p as Ht,o as Kt,s as E,d as v,j as u,f as G,g as i,k as f,t as $,x as Z,c as Yt,m as q,ao as ln,l as fe,b as hn,n as We}from"../chunks/CeH-RgMb.js";import{i as P,s as zt,a as we}from"../chunks/CegSvdD-.js";import{e as Ie,t as S,i as je,a as Ce,b as Rs,c as qt,f as He}from"../chunks/Beula-TH.js";import{g as us}from"../chunks/DiVmSEJa.js";import{p as xs}from"../chunks/d2K3c8Kx.js";import{s as j,u as Ae,A as un,x as dn,I as ds,B as Bt,J as ps,K as fs,r as St,H as pn,j as fn,n as vs,z as vn,F as _n,v as gn}from"../chunks/DuAVKaL3.js";import{a as As}from"../chunks/Ck6C3Fl0.js";import{b as mn,f as yn,a as bn}from"../chunks/CoTEzvLa.js";import{b as ye,p as Pe,e as Ct,c as Ke,m as _s,s as wn,S as be,a as gs,g as kn,h as En,i as Rn,R as xn,j as An,k as Tn,l as Bn,n as Sn,t as Lt,T as Cn,W as Ln,B as Nn,o as On,q as Un,N as Pn,u as qn,r as In,V as Dn,C as $n,v as Vn,w as Mn,Q as Fn,x as ms,y as Wn,z as Hn,M as Kn,d as Yn,A as zn,D as jn,E as Jn,F as Xn,G as Gn,H as Qn}from"../chunks/BJ_ypKl3.js";import{r as Zn}from"../chunks/K1h4wprj.js";import{a as er,r as tr}from"../chunks/Dl-F6VCo.js";import{f as sr}from"../chunks/Cgw8TOOy.js";import{t as nr,a as rr}from"../chunks/B0_HKFXV.js";import{C as ir}from"../chunks/DAmOMhaf.js";import{B as or}from"../chunks/C8S7qQjQ.js";import{c as ar}from"../chunks/GDjpV3r7.js";function Nt(n,e,t){nt(()=>{var s=cn(()=>e(n,t==null?void 0:t())||{});if(s!=null&&s.destroy)return()=>s.destroy()})}const cr=!1,ro=Object.freeze(Object.defineProperty({__proto__:null,ssr:cr},Symbol.toStringTag,{value:"Module"}));var lr=R('<span class="nav-sep svelte-10t98u4" aria-hidden="true"></span>'),hr=R('<!> <a class="link svelte-10t98u4"> </a>',1),ur=R('<img alt="" class="project-logo svelte-10t98u4">'),dr=R('<div class="project-card svelte-10t98u4"><!> <span class="project-name svelte-10t98u4"> </span></div>'),pr=R('<span class="nav-user svelte-10t98u4"> </span>'),fr=R('<hr class="mobile-sep svelte-10t98u4">'),vr=R('<!> <a class="mobile-link svelte-10t98u4"> </a>',1),_r=R('<div class="mobile-menu svelte-10t98u4"><!> <a href="/settings" class="mobile-link svelte-10t98u4">Settings</a></div>'),gr=R('<nav class="nav svelte-10t98u4"><div class="inner svelte-10t98u4"><a href="/" class="brand svelte-10t98u4"><span class="brand-serif svelte-10t98u4">Pl</span><span class="brand-sans svelte-10t98u4">um</span></a> <div class="links svelte-10t98u4"></div> <div class="actions svelte-10t98u4"><!> <!> <a href="/settings" class="settings-btn svelte-10t98u4" aria-label="Settings" title="Settings"><svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="3"></circle><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"></path></svg></a> <button class="hamburger svelte-10t98u4"><span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span> <span class="svelte-10t98u4"></span></button></div></div> <!></nav>');function mr(n,e){Ht(e,!1);const[t,s]=zt(),r=()=>we(xs,"$page",t),c=()=>we(As,"$auth",t);let d=q(!1),_=q({name:"",logoUrl:""});Kt(async()=>{try{E(_,await mn())}catch{}});const k=[{href:"/",label:"Automated Tests"},{href:"/reports",label:"Reports"},{href:"/scheduled-tests",label:"Scheduled"},{href:"/test-repository",label:"Test Repository",sep:!0}];function L(){E(d,!1)}Wt();var C=gr(),D=v(C),I=v(D),J=u(I,2);Ie(J,5,()=>k,je,(M,N)=>{var K=hr(),Y=G(K);{var ce=z=>{var Q=lr();w(z,Q)};P(Y,z=>{i(N).sep&&z(ce)})}var W=u(Y,2),ee=v(W,!0);f(W),$(z=>{j(W,"href",i(N).href),S(W,"repo",i(N).sep),S(W,"active",z),H(ee,i(N).label)},[()=>i(N).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(N).href)],Z),w(M,K)}),f(J);var he=u(J,2),Be=v(he);{var Le=M=>{var N=dr(),K=v(N);{var Y=ee=>{var z=ur();$(()=>j(z,"src",i(_).logoUrl)),w(ee,z)};P(K,ee=>{i(_).logoUrl&&ee(Y)})}var ce=u(K,2),W=v(ce,!0);f(ce),f(N),$(()=>H(W,i(_).name)),w(M,N)};P(Be,M=>{i(_).name&&M(Le)})}var se=u(Be,2);{var X=M=>{var N=pr(),K=v(N,!0);f(N),$(()=>H(K,c().user.name)),w(M,N)};P(se,M=>{c().user&&M(X)})}var oe=u(se,2),A=u(oe,2),ae=v(A),ne=u(ae,2),ge=u(ne,2);f(A),f(he),f(D);var re=u(D,2);{var ke=M=>{var N=_r(),K=v(N);Ie(K,1,()=>k,je,(ce,W)=>{var ee=vr(),z=G(ee);{var Q=Ee=>{var ht=fr();w(Ee,ht)};P(z,Ee=>{i(W).sep&&Ee(Q)})}var Se=u(z,2),Je=v(Se,!0);f(Se),$(Ee=>{j(Se,"href",i(W).href),S(Se,"active",Ee),H(Je,i(W).label)},[()=>i(W).href==="/"?r().url.pathname==="/":r().url.pathname.startsWith(i(W).href)],Z),U("click",Se,L),w(ce,ee)});var Y=u(K,2);f(N),$(()=>S(Y,"active",r().url.pathname==="/settings")),U("click",Y,L),Ce(3,N,()=>Rs,()=>({duration:200})),w(M,N)};P(re,M=>{i(d)&&M(ke)})}f(C),$(()=>{S(oe,"active",r().url.pathname==="/settings"),j(A,"aria-label",i(d)?"Close menu":"Open menu"),j(A,"aria-expanded",i(d)),S(ae,"rotated",i(d)),S(ne,"hidden",i(d)),S(ge,"rotated-reverse",i(d))}),U("click",I,L),U("click",A,()=>E(d,!i(d))),w(n,C),Yt(),s()}var yr=R('<main class="shell svelte-28zx1m"><!></main>');function br(n,e){var t=yr(),s=v(t);qt(s,e,"default",{},null),f(t),w(n,t)}const _e=Object.create(null);_e.open="0";_e.close="1";_e.ping="2";_e.pong="3";_e.message="4";_e.upgrade="5";_e.noop="6";const rt=Object.create(null);Object.keys(_e).forEach(n=>{rt[_e[n]]=n});const It={type:"error",data:"parser error"},Ts=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Bs=typeof ArrayBuffer=="function",Ss=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,jt=({type:n,data:e},t,s)=>Ts&&e instanceof Blob?t?s(e):ys(e,s):Bs&&(e instanceof ArrayBuffer||Ss(e))?t?s(e):ys(new Blob([e]),s):s(_e[n]+(e||"")),ys=(n,e)=>{const t=new FileReader;return t.onload=function(){const s=t.result.split(",")[1];e("b"+(s||""))},t.readAsDataURL(n)};function bs(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Ot;function wr(n,e){if(Ts&&n.data instanceof Blob)return n.data.arrayBuffer().then(bs).then(e);if(Bs&&(n.data instanceof ArrayBuffer||Ss(n.data)))return e(bs(n.data));jt(n,!1,t=>{Ot||(Ot=new TextEncoder),e(Ot.encode(t))})}const ws="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<ws.length;n++)ze[ws.charCodeAt(n)]=n;const kr=n=>{let e=n.length*.75,t=n.length,s,r=0,c,d,_,k;n[n.length-1]==="="&&(e--,n[n.length-2]==="="&&e--);const L=new ArrayBuffer(e),C=new Uint8Array(L);for(s=0;s<t;s+=4)c=ze[n.charCodeAt(s)],d=ze[n.charCodeAt(s+1)],_=ze[n.charCodeAt(s+2)],k=ze[n.charCodeAt(s+3)],C[r++]=c<<2|d>>4,C[r++]=(d&15)<<4|_>>2,C[r++]=(_&3)<<6|k&63;return L},Er=typeof ArrayBuffer=="function",Jt=(n,e)=>{if(typeof n!="string")return{type:"message",data:Cs(n,e)};const t=n.charAt(0);return t==="b"?{type:"message",data:Rr(n.substring(1),e)}:rt[t]?n.length>1?{type:rt[t],data:n.substring(1)}:{type:rt[t]}:It},Rr=(n,e)=>{if(Er){const t=kr(n);return Cs(t,e)}else return{base64:!0,data:n}},Cs=(n,e)=>{switch(e){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},Ls="",xr=(n,e)=>{const t=n.length,s=new Array(t);let r=0;n.forEach((c,d)=>{jt(c,!1,_=>{s[d]=_,++r===t&&e(s.join(Ls))})})},Ar=(n,e)=>{const t=n.split(Ls),s=[];for(let r=0;r<t.length;r++){const c=Jt(t[r],e);if(s.push(c),c.type==="error")break}return s};function Tr(){return new TransformStream({transform(n,e){wr(n,t=>{const s=t.length;let r;if(s<126)r=new Uint8Array(1),new DataView(r.buffer).setUint8(0,s);else if(s<65536){r=new Uint8Array(3);const c=new DataView(r.buffer);c.setUint8(0,126),c.setUint16(1,s)}else{r=new Uint8Array(9);const c=new DataView(r.buffer);c.setUint8(0,127),c.setBigUint64(1,BigInt(s))}n.data&&typeof n.data!="string"&&(r[0]|=128),e.enqueue(r),e.enqueue(t)})}})}let Ut;function tt(n){return n.reduce((e,t)=>e+t.length,0)}function st(n,e){if(n[0].length===e)return n.shift();const t=new Uint8Array(e);let s=0;for(let r=0;r<e;r++)t[r]=n[0][s++],s===n[0].length&&(n.shift(),s=0);return n.length&&s<n[0].length&&(n[0]=n[0].slice(s)),t}function Br(n,e){Ut||(Ut=new TextDecoder);const t=[];let s=0,r=-1,c=!1;return new TransformStream({transform(d,_){for(t.push(d);;){if(s===0){if(tt(t)<1)break;const k=st(t,1);c=(k[0]&128)===128,r=k[0]&127,r<126?s=3:r===126?s=1:s=2}else if(s===1){if(tt(t)<2)break;const k=st(t,2);r=new DataView(k.buffer,k.byteOffset,k.length).getUint16(0),s=3}else if(s===2){if(tt(t)<8)break;const k=st(t,8),L=new DataView(k.buffer,k.byteOffset,k.length),C=L.getUint32(0);if(C>Math.pow(2,21)-1){_.enqueue(It);break}r=C*Math.pow(2,32)+L.getUint32(4),s=3}else{if(tt(t)<r)break;const k=st(t,r);_.enqueue(Jt(c?k:Ut.decode(k),e)),s=0}if(r===0||r>n){_.enqueue(It);break}}}})}const Ns=4;function V(n){if(n)return Sr(n)}function Sr(n){for(var e in V.prototype)n[e]=V.prototype[e];return n}V.prototype.on=V.prototype.addEventListener=function(n,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(e),this};V.prototype.once=function(n,e){function t(){this.off(n,t),e.apply(this,arguments)}return t.fn=e,this.on(n,t),this};V.prototype.off=V.prototype.removeListener=V.prototype.removeAllListeners=V.prototype.removeEventListener=function(n,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+n];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var s,r=0;r<t.length;r++)if(s=t[r],s===e||s.fn===e){t.splice(r,1);break}return t.length===0&&delete this._callbacks["$"+n],this};V.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+n],s=1;s<arguments.length;s++)e[s-1]=arguments[s];if(t){t=t.slice(0);for(var s=0,r=t.length;s<r;++s)t[s].apply(this,e)}return this};V.prototype.emitReserved=V.prototype.emit;V.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};V.prototype.hasListeners=function(n){return!!this.listeners(n).length};const ct=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),ie=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),Cr="arraybuffer";function Os(n,...e){return e.reduce((t,s)=>(n.hasOwnProperty(s)&&(t[s]=n[s]),t),{})}const Lr=ie.setTimeout,Nr=ie.clearTimeout;function lt(n,e){e.useNativeTimers?(n.setTimeoutFn=Lr.bind(ie),n.clearTimeoutFn=Nr.bind(ie)):(n.setTimeoutFn=ie.setTimeout.bind(ie),n.clearTimeoutFn=ie.clearTimeout.bind(ie))}const Or=1.33;function Ur(n){return typeof n=="string"?Pr(n):Math.ceil((n.byteLength||n.size)*Or)}function Pr(n){let e=0,t=0;for(let s=0,r=n.length;s<r;s++)e=n.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function Us(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function qr(n){let e="";for(let t in n)n.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(n[t]));return e}function Ir(n){let e={},t=n.split("&");for(let s=0,r=t.length;s<r;s++){let c=t[s].split("=");e[decodeURIComponent(c[0])]=decodeURIComponent(c[1])}return e}class Dr extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class Xt extends V{constructor(e){super(),this.writable=!1,lt(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,s){return super.emitReserved("error",new Dr(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=Jt(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=qr(e);return t.length?"?"+t:""}}class $r extends Xt{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let s=0;this._polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};Ar(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,xr(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Us()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}}let Ps=!1;try{Ps=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Vr=Ps;function Mr(){}class Fr extends $r{constructor(e){if(super(e),typeof location<"u"){const t=location.protocol==="https:";let s=location.port;s||(s=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||s!==e.port}}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(r,c)=>{this.onError("xhr post error",r,c)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class ve extends V{constructor(e,t,s){super(),this.createRequest=e,lt(this,s),this._opts=s,this._method=s.method||"GET",this._uri=t,this._data=s.data!==void 0?s.data:null,this._create()}_create(){var e;const t=Os(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;const s=this._xhr=this.createRequest(t);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let r in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(r)&&s.setRequestHeader(r,this._opts.extraHeaders[r])}}catch{}if(this._method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this._opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var r;s.readyState===3&&((r=this._opts.cookieJar)===null||r===void 0||r.parseCookies(s.getResponseHeader("set-cookie"))),s.readyState===4&&(s.status===200||s.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof s.status=="number"?s.status:0)},0))},s.send(this._data)}catch(r){this.setTimeoutFn(()=>{this._onError(r)},0);return}typeof document<"u"&&(this._index=ve.requestsCount++,ve.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=Mr,e)try{this._xhr.abort()}catch{}typeof document<"u"&&delete ve.requests[this._index],this._xhr=null}}_onLoad(){const e=this._xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}ve.requestsCount=0;ve.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ks);else if(typeof addEventListener=="function"){const n="onpagehide"in ie?"pagehide":"unload";addEventListener(n,ks,!1)}}function ks(){for(let n in ve.requests)ve.requests.hasOwnProperty(n)&&ve.requests[n].abort()}const Wr=function(){const n=qs({xdomain:!1});return n&&n.responseType!==null}();class Hr extends Fr{constructor(e){super(e);const t=e&&e.forceBase64;this.supportsBinary=Wr&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ve(qs,this.uri(),e)}}function qs(n){const e=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Vr))return new XMLHttpRequest}catch{}if(!e)try{return new ie[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const Is=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class Kr extends Xt{get name(){return"websocket"}doOpen(){const e=this.uri(),t=this.opts.protocols,s=Is?{}:Os(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,s)}catch(r){return this.emitReserved("error",r)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;jt(s,this.supportsBinary,c=>{try{this.doWrite(s,c)}catch{}r&&ct(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Us()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const Pt=ie.WebSocket||ie.MozWebSocket;class Yr extends Kr{createSocket(e,t,s){return Is?new Pt(e,t,s):t?new Pt(e,t):new Pt(e)}doWrite(e,t){this.ws.send(t)}}class zr extends Xt{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{const t=Br(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),r=Tr();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();const c=()=>{s.read().then(({done:_,value:k})=>{_||(this.onPacket(k),c())}).catch(_=>{})};c();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],r=t===e.length-1;this._writer.write(s).then(()=>{r&&ct(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}}const jr={websocket:Yr,webtransport:zr,polling:Hr},Jr=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,Xr=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Dt(n){if(n.length>8e3)throw"URI too long";const e=n,t=n.indexOf("["),s=n.indexOf("]");t!=-1&&s!=-1&&(n=n.substring(0,t)+n.substring(t,s).replace(/:/g,";")+n.substring(s,n.length));let r=Jr.exec(n||""),c={},d=14;for(;d--;)c[Xr[d]]=r[d]||"";return t!=-1&&s!=-1&&(c.source=e,c.host=c.host.substring(1,c.host.length-1).replace(/;/g,":"),c.authority=c.authority.replace("[","").replace("]","").replace(/;/g,":"),c.ipv6uri=!0),c.pathNames=Gr(c,c.path),c.queryKey=Qr(c,c.query),c}function Gr(n,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function Qr(n,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,r,c){r&&(t[r]=c)}),t}const $t=typeof addEventListener=="function"&&typeof removeEventListener=="function",it=[];$t&&addEventListener("offline",()=>{it.forEach(n=>n())},!1);class Te extends V{constructor(e,t){if(super(),this.binaryType=Cr,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e=="object"&&(t=e,e=null),e){const s=Dt(e);t.hostname=s.host,t.secure=s.protocol==="https"||s.protocol==="wss",t.port=s.port,s.query&&(t.query=s.query)}else t.host&&(t.hostname=Dt(t.host).host);lt(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(s=>{const r=s.prototype.name;this.transports.push(r),this._transportsByName[r]=s}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Ir(this.opts.query)),$t&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},it.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Ns,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](s)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const e=this.opts.rememberUpgrade&&Te.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",Te.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const t=new Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const r=this.writeBuffer[s].data;if(r&&(t+=Ur(r)),s>0&&t>this._maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,ct(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,s){return this._sendPacket("message",e,t,s),this}send(e,t,s){return this._sendPacket("message",e,t,s),this}_sendPacket(e,t,s,r){if(typeof t=="function"&&(r=t,t=void 0),typeof s=="function"&&(r=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const c={type:e,data:t,options:s};this.emitReserved("packetCreate",c),this.writeBuffer.push(c),r&&this.once("flush",r),this.flush()}close(){const e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}_onError(e){if(Te.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),$t&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const s=it.indexOf(this._offlineEventListener);s!==-1&&it.splice(s,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}Te.protocol=Ns;class Zr extends Te{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),s=!1;Te.priorWebsocketSuccess=!1;const r=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",D=>{if(!s)if(D.type==="pong"&&D.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Te.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(C(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const I=new Error("probe error");I.transport=t.name,this.emitReserved("upgradeError",I)}}))};function c(){s||(s=!0,C(),t.close(),t=null)}const d=D=>{const I=new Error("probe error: "+D);I.transport=t.name,c(),this.emitReserved("upgradeError",I)};function _(){d("transport closed")}function k(){d("socket closed")}function L(D){t&&D.name!==t.name&&c()}const C=()=>{t.removeListener("open",r),t.removeListener("error",d),t.removeListener("close",_),this.off("close",k),this.off("upgrading",L)};t.once("open",r),t.once("error",d),t.once("close",_),this.once("close",k),this.once("upgrading",L),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){const t=[];for(let s=0;s<e.length;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}let ei=class extends Zr{constructor(e,t={}){const s=typeof e=="object"?e:t;(!s.transports||s.transports&&typeof s.transports[0]=="string")&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(r=>jr[r]).filter(r=>!!r)),super(e,s)}};function ti(n,e="",t){let s=n;t=t||typeof location<"u"&&location,n==null&&(n=t.protocol+"//"+t.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=t.protocol+n:n=t.host+n),/^(https?|wss?):\/\//.test(n)||(typeof t<"u"?n=t.protocol+"//"+n:n="https://"+n),s=Dt(n)),s.port||(/^(http|ws)$/.test(s.protocol)?s.port="80":/^(http|ws)s$/.test(s.protocol)&&(s.port="443")),s.path=s.path||"/";const c=s.host.indexOf(":")!==-1?"["+s.host+"]":s.host;return s.id=s.protocol+"://"+c+":"+s.port+e,s.href=s.protocol+"://"+c+(t&&t.port===s.port?"":":"+s.port),s}const si=typeof ArrayBuffer=="function",ni=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,Ds=Object.prototype.toString,ri=typeof Blob=="function"||typeof Blob<"u"&&Ds.call(Blob)==="[object BlobConstructor]",ii=typeof File=="function"||typeof File<"u"&&Ds.call(File)==="[object FileConstructor]";function Gt(n){return si&&(n instanceof ArrayBuffer||ni(n))||ri&&n instanceof Blob||ii&&n instanceof File}function ot(n,e){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let t=0,s=n.length;t<s;t++)if(ot(n[t]))return!0;return!1}if(Gt(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return ot(n.toJSON(),!0);for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&ot(n[t]))return!0;return!1}function oi(n){const e=[],t=n.data,s=n;return s.data=Vt(t,e),s.attachments=e.length,{packet:s,buffers:e}}function Vt(n,e){if(!n)return n;if(Gt(n)){const t={_placeholder:!0,num:e.length};return e.push(n),t}else if(Array.isArray(n)){const t=new Array(n.length);for(let s=0;s<n.length;s++)t[s]=Vt(n[s],e);return t}else if(typeof n=="object"&&!(n instanceof Date)){const t={};for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=Vt(n[s],e));return t}return n}function ai(n,e){return n.data=Mt(n.data,e),delete n.attachments,n}function Mt(n,e){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<e.length)return e[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let t=0;t<n.length;t++)n[t]=Mt(n[t],e);else if(typeof n=="object")for(const t in n)Object.prototype.hasOwnProperty.call(n,t)&&(n[t]=Mt(n[t],e));return n}const ci=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];var x;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(x||(x={}));class li{constructor(e){this.replacer=e}encode(e){return(e.type===x.EVENT||e.type===x.ACK)&&ot(e)?this.encodeAsBinary({type:e.type===x.EVENT?x.BINARY_EVENT:x.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===x.BINARY_EVENT||e.type===x.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=oi(e),s=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(s),r}}function Es(n){return Object.prototype.toString.call(n)==="[object Object]"}class Qt extends V{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const s=t.type===x.BINARY_EVENT;s||t.type===x.BINARY_ACK?(t.type=s?x.EVENT:x.ACK,this.reconstructor=new hi(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(Gt(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const s={type:Number(e.charAt(0))};if(x[s.type]===void 0)throw new Error("unknown packet type "+s.type);if(s.type===x.BINARY_EVENT||s.type===x.BINARY_ACK){const c=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const d=e.substring(c,t);if(d!=Number(d)||e.charAt(t)!=="-")throw new Error("Illegal attachments");s.attachments=Number(d)}if(e.charAt(t+1)==="/"){const c=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););s.nsp=e.substring(c,t)}else s.nsp="/";const r=e.charAt(t+1);if(r!==""&&Number(r)==r){const c=t+1;for(;++t;){const d=e.charAt(t);if(d==null||Number(d)!=d){--t;break}if(t===e.length)break}s.id=Number(e.substring(c,t+1))}if(e.charAt(++t)){const c=this.tryParse(e.substr(t));if(Qt.isPayloadValid(s.type,c))s.data=c;else throw new Error("invalid payload")}return s}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case x.CONNECT:return Es(t);case x.DISCONNECT:return t===void 0;case x.CONNECT_ERROR:return typeof t=="string"||Es(t);case x.EVENT:case x.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&ci.indexOf(t[0])===-1);case x.ACK:case x.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class hi{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=ai(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const ui=Object.freeze(Object.defineProperty({__proto__:null,Decoder:Qt,Encoder:li,get PacketType(){return x}},Symbol.toStringTag,{value:"Module"}));function le(n,e,t){return n.on(e,t),function(){n.off(e,t)}}const di=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class $s extends V{constructor(e,t,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[le(e,"open",this.onopen.bind(this)),le(e,"packet",this.onpacket.bind(this)),le(e,"error",this.onerror.bind(this)),le(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var s,r,c;if(di.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const d={type:x.EVENT,data:t};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const C=this.ids++,D=t.pop();this._registerAckCallback(C,D),d.id=C}const _=(r=(s=this.io.engine)===null||s===void 0?void 0:s.transport)===null||r===void 0?void 0:r.writable,k=this.connected&&!(!((c=this.io.engine)===null||c===void 0)&&c._hasPingExpired());return this.flags.volatile&&!_||(k?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(e,t){var s;const r=(s=this.flags.timeout)!==null&&s!==void 0?s:this._opts.ackTimeout;if(r===void 0){this.acks[e]=t;return}const c=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let _=0;_<this.sendBuffer.length;_++)this.sendBuffer[_].id===e&&this.sendBuffer.splice(_,1);t.call(this,new Error("operation has timed out"))},r),d=(..._)=>{this.io.clearTimeoutFn(c),t.apply(this,_)};d.withError=!0,this.acks[e]=d}emitWithAck(e,...t){return new Promise((s,r)=>{const c=(d,_)=>d?r(d):s(_);c.withError=!0,t.push(c),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const s={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((r,...c)=>s!==this._queue[0]?void 0:(r!==null?s.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(r)):(this._queue.shift(),t&&t(null,...c)),s.pending=!1,this._drainQueue())),this._queue.push(s),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:x.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(s=>String(s.id)===e)){const s=this.acks[e];delete this.acks[e],s.withError&&s.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case x.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case x.EVENT:case x.BINARY_EVENT:this.onevent(e);break;case x.ACK:case x.BINARY_ACK:this.onack(e);break;case x.DISCONNECT:this.ondisconnect();break;case x.CONNECT_ERROR:this.destroy();const s=new Error(e.data.message);s.data=e.data.data,this.emitReserved("connect_error",s);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const s of t)s.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let s=!1;return function(...r){s||(s=!0,t.packet({type:x.ACK,id:e,data:r}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:x.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let s=0;s<t.length;s++)if(e===t[s])return t.splice(s,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const s of t)s.apply(this,e.data)}}}function De(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}De.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*n);n=Math.floor(e*10)&1?n+t:n-t}return Math.min(n,this.max)|0};De.prototype.reset=function(){this.attempts=0};De.prototype.setMin=function(n){this.ms=n};De.prototype.setMax=function(n){this.max=n};De.prototype.setJitter=function(n){this.jitter=n};class Ft extends V{constructor(e,t){var s;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,lt(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((s=t.randomizationFactor)!==null&&s!==void 0?s:.5),this.backoff=new De({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const r=t.parser||ui;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ei(this.uri,this.opts);const t=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;const r=le(t,"open",function(){s.onopen(),e&&e()}),c=_=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",_),e?e(_):this.maybeReconnectOnOpen()},d=le(t,"error",c);if(this._timeout!==!1){const _=this._timeout,k=this.setTimeoutFn(()=>{r(),c(new Error("timeout")),t.close()},_);this.opts.autoUnref&&k.unref(),this.subs.push(()=>{this.clearTimeoutFn(k)})}return this.subs.push(r),this.subs.push(d),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(le(e,"ping",this.onping.bind(this)),le(e,"data",this.ondata.bind(this)),le(e,"error",this.onerror.bind(this)),le(e,"close",this.onclose.bind(this)),le(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){ct(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let s=this.nsps[e];return s?this._autoConnect&&!s.active&&s.connect():(s=new $s(this,e,t),this.nsps[e]=s),s}_destroy(e){const t=Object.keys(this.nsps);for(const s of t)if(this.nsps[s].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let s=0;s<t.length;s++)this.engine.write(t[s],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var s;this.cleanup(),(s=this.engine)===null||s===void 0||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const s=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(r=>{r?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",r)):e.onreconnect()}))},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Ye={};function at(n,e){typeof n=="object"&&(e=n,n=void 0),e=e||{};const t=ti(n,e.path||"/socket.io"),s=t.source,r=t.id,c=t.path,d=Ye[r]&&c in Ye[r].nsps,_=e.forceNew||e["force new connection"]||e.multiplex===!1||d;let k;return _?k=new Ft(s,e):(Ye[r]||(Ye[r]=new Ft(s,e)),k=Ye[r]),t.query&&!e.query&&(e.query=t.queryKey),k.socket(t.path,e)}Object.assign(at,{Manager:Ft,Socket:$s,io:at,connect:at});var pi=R(' <strong class="svelte-1pcdei1"></strong> ',1),fi=R('<a class="view-report-btn svelte-1pcdei1"> <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a>'),vi=R('<span class="run-chip-spinner svelte-1pcdei1"></span>'),_i=R('<span class="run-chip-count svelte-1pcdei1"> </span>'),gi=R('<div class="run-chip svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" style="opacity:0.6;flex-shrink:0" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> <span class="run-chip-title svelte-1pcdei1"> </span> <!> <button class="run-chip-clear svelte-1pcdei1"><svg width="9" height="9" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),mi=R('<div class="input-wrap svelte-1pcdei1"><svg class="input-icon svelte-1pcdei1" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8" class="svelte-1pcdei1"></circle><line x1="21" y1="21" x2="16.65" y2="16.65" class="svelte-1pcdei1"></line></svg> <input type="text" class="tag-input svelte-1pcdei1" placeholder="@tag or leave blank for all tests"></div>'),yi=R('<button class="dropdown-item svelte-1pcdei1"><span style="color:var(--text-muted)" class="svelte-1pcdei1">✕</span> </button> <div class="dropdown-divider svelte-1pcdei1"></div>',1),bi=R('<div class="dropdown-empty svelte-1pcdei1"></div>'),wi=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),ki=R('<div class="dropdown-menu run-pick-menu svelte-1pcdei1"><!> <!></div>'),Ei=R('<button class="dropdown-item svelte-1pcdei1"> </button>'),Ri=R('<div class="dropdown-menu svelte-1pcdei1"></div>'),xi=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot built-in svelte-1pcdei1"></span> <span class="svelte-1pcdei1"></span></label>'),Ai=R('<label class="runner-option svelte-1pcdei1"><input type="checkbox" class="svelte-1pcdei1"> <span class="runner-dot remote svelte-1pcdei1"></span> <span class="svelte-1pcdei1"> </span></label>'),Ti=R('<div class="dropdown-menu runners-menu svelte-1pcdei1"><!> <!></div>'),Bi=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div>',1),Si=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),Ci=R('<button type="button" class="notify-btn svelte-1pcdei1"></button>'),Li=R('<div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="notify-toggles svelte-1pcdei1"><!> <!></div></div>',1),Ni=R('<span class="meta-dot svelte-1pcdei1">·</span> ',1),Oi=R('<div class="run-card svelte-1pcdei1"><span class="run-card-dot svelte-1pcdei1"></span> <a class="run-card-main svelte-1pcdei1"><div class="run-card-info svelte-1pcdei1"><span class="run-card-label svelte-1pcdei1"> </span> <span class="run-card-meta svelte-1pcdei1"> <!></span></div> <!> <svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" class="run-card-arrow svelte-1pcdei1"><line x1="5" y1="12" x2="19" y2="12" class="svelte-1pcdei1"></line><polyline points="12 5 19 12 12 19" class="svelte-1pcdei1"></polyline></svg></a> <button class="run-card-cancel svelte-1pcdei1"><svg width="12" height="12" viewBox="0 0 14 14" fill="none" class="svelte-1pcdei1"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" class="svelte-1pcdei1"></path></svg></button></div>'),Ui=R('<div class="empty-runs svelte-1pcdei1"><svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="empty-icon svelte-1pcdei1"><circle cx="12" cy="12" r="10" class="svelte-1pcdei1"></circle><line x1="10" y1="15" x2="10" y2="12" class="svelte-1pcdei1"></line><line x1="10" y1="9" x2="10.01" y2="9" class="svelte-1pcdei1"></line></svg> </div>'),Pi=R('<div class="body svelte-1pcdei1"><!> <!></div>'),qi=R('<!> <div class="panel svelte-1pcdei1"><div class="scan-line svelte-1pcdei1"></div> <div class="bar svelte-1pcdei1"><div class="bar-left svelte-1pcdei1"><div class="bar-status svelte-1pcdei1"><span class="status-dot svelte-1pcdei1"></span> <span class="status-word svelte-1pcdei1"> </span></div> <!></div> <span class="flex-gap svelte-1pcdei1"></span> <div class="bar-center svelte-1pcdei1"><!> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="stepper svelte-1pcdei1"><button class="step-btn svelte-1pcdei1">−</button> <span class="step-val svelte-1pcdei1"> </span> <button class="step-btn svelte-1pcdei1">+</button></div></div> <div class="ctrl-divider svelte-1pcdei1"></div> <div class="ctrl-group svelte-1pcdei1"><span class="ctrl-label svelte-1pcdei1"></span> <div class="dropdown-wrap svelte-1pcdei1"><button class="dropdown-trigger svelte-1pcdei1"><span class="svelte-1pcdei1"> </span> <svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" class="trigger-chevron svelte-1pcdei1"><polyline points="6 9 12 15 18 9" class="svelte-1pcdei1"></polyline></svg></button> <!></div></div> <!> <!> <div class="ctrl-divider svelte-1pcdei1"></div> <button class="run-btn svelte-1pcdei1"><svg width="9" height="10" viewBox="0 0 10 12" fill="currentColor" stroke="none" class="svelte-1pcdei1"><polygon points="0,0 10,6 0,12" class="svelte-1pcdei1"></polygon></svg> </button></div> <span class="flex-gap-sm svelte-1pcdei1"></span> <button class="expand-btn svelte-1pcdei1"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-1pcdei1"><polyline points="18 15 12 9 6 15" class="svelte-1pcdei1"></polyline></svg></button></div> <!></div>',1);function Ii(n,e){Ht(e,!1);const[t,s]=zt(),r=()=>we(ye,"$runnerConfig",t),c=()=>we(Ke,"$backgroundRuns",t),d=()=>we(In,"$runsVersion",t),_=()=>we(Pe,"$panelExpanded",t),k=()=>we(Ct,"$builtInEnabled",t),L=q(),C=q(),D=q(),I=q(),J=q(),he=q(),Be=q(),Le=q(),se=q();let X=q([]),oe=q([]),A=q(null),ae=q(!1),ne=q(!1),ge=q(!1),re=q(!1),ke=q(!1),M=q({discordWebhookUrl:"",slackWebhookUrl:"",notifyPublicUrl:""}),N=q(!1),K=q(!1);function Y(o){function l(b){o.contains(b.target)||o.dispatchEvent(new CustomEvent("clickoutside"))}return document.addEventListener("click",l,!0),{destroy(){document.removeEventListener("click",l,!0)}}}let ce,W,ee,z,Q=q(null);Kt(()=>{try{const a=localStorage.getItem("plum:runnerConfig");a&&ye.update(h=>({...h,...JSON.parse(a)}))}catch{}try{const a=localStorage.getItem("plum:panelExpanded");a!==null&&Pe.set(a==="true")}catch{}try{const a=localStorage.getItem("plum:builtInEnabled");a!==null&&Ct.set(a!=="false")}catch{}yn().then(a=>{E(X,a);const h=new Set([Ae,...a.map(p=>p.id)]);ye.update(p=>{const m=p.selectedRunners.filter(g=>h.has(g));return{...p,selectedRunners:m.length>0?m:[Ae]}})}).catch(()=>{}),bn().then(a=>E(M,a)).catch(()=>{}),sr().then(a=>{a.length!==0&&(Ke.update(h=>{const p={...h};for(const{runId:m,kind:g,label:y,meta:B,status:O}of a)p[m]||(p[m]=_s({kind:g,label:y,meta:B,status:O}));return p}),Pe.set(!0))}).catch(()=>{}),ce=ye.subscribe(a=>{try{localStorage.setItem("plum:runnerConfig",JSON.stringify(a))}catch{}}),W=Pe.subscribe(a=>{try{localStorage.setItem("plum:panelExpanded",String(a))}catch{}}),ee=Ct.subscribe(a=>{try{localStorage.setItem("plum:builtInEnabled",String(a))}catch{}ye.update(h=>{if(!a&&h.selectedRunners.includes(Ae)){const p=h.selectedRunners.filter(g=>g!==Ae),m=p.length>0?p:i(X)[0]?[i(X)[0].id]:[];return{...h,selectedRunners:m}}return h})});const o=at(un,{transports:["websocket"]});z=o,wn.set(o),o.on(be.REPORT_READY,()=>gs.update(a=>a+1));function l(a,h){Ke.update(p=>p[a]?{...p,[a]:h(p[a])}:p)}function b(a,{kind:h,label:p,meta:m},g){Ke.update(y=>({...y,[a]:y[a]?{...y[a],status:g}:_s({kind:h,label:p,meta:m,status:g})})),Pe.set(!0)}o.on(be.BG_RUN_QUEUED,({runId:a,kind:h,label:p,meta:m})=>{b(a,{kind:h,label:p,meta:m},"queued")}),o.on(be.BG_RUN_START,({runId:a,kind:h,label:p,meta:m})=>{b(a,{kind:h,label:p,meta:m},"running")}),o.on(be.BG_RUN_LOG,({runId:a,log:h})=>{l(a,p=>({...p,output:p.output+h}))}),o.on(be.BG_RUN_LANES_INIT,({runId:a,lanes:h})=>{l(a,p=>({...p,lanes:h.map(m=>({...m,status:"running",logs:""}))}))});function T(a,h,p){const m=a.lanes.some(g=>g.id===h)?a.lanes.map(g=>g.id===h?{...g,...p(g)}:g):[...a.lanes,{id:h,name:h,testCount:0,status:"running",logs:"",...p({logs:""})}];return{...a,lanes:m}}o.on(be.BG_RUN_LANE_LOG,({runId:a,laneId:h,log:p})=>{l(a,m=>T(m,h,g=>({logs:(g.logs||"")+p})))}),o.on(be.BG_RUN_LANE_STATUS,({runId:a,laneId:h,status:p})=>{l(a,m=>T(m,h,()=>({status:p})))}),o.on(be.BG_RUN_LANE_RRWEB_BATCH,({runId:a,...h})=>{l(a,p=>({...p,rrwebByLane:kn(p.rrwebByLane,h)}))}),o.on(be.BG_RUN_DONE,({runId:a,code:h,reportId:p})=>{const m=h===0||h===null,g=h===130;l(a,y=>({...y,status:"done",testCompleted:!g,latestReportId:g?null:p,verdict:g?"cancelled":m?"pass":"fail"})),!g&&p&&E(Q,{reportId:p,verdict:m?"pass":"fail"}),g||gs.update(y=>y+1),setTimeout(()=>{Ke.update(y=>{const B={...y};return delete B[a],B})},dn+5e3)})}),ln(()=>{ce==null||ce(),W==null||W(),ee==null||ee(),z==null||z.disconnect()});async function Se(o){E(re,!1),E(A,{id:o.id,title:o.title,tags:null}),E(ae,!0);try{const b=(await tr(o.id)).entries.filter(T=>{var a;return(a=T.case)==null?void 0:a.isAutomated}).map(T=>`@${T.case.displayId}`);E(A,{id:o.id,title:o.title,tags:b})}catch{E(A,null)}finally{E(ae,!1)}}function Je(){E(A,null)}function Ee(){const o={notifyDiscord:i(N),notifySlack:i(K)};if(i(A)){if(i(ae)||!i(A).tags||i(A).tags.length===0)return;Lt(i(A).tags.join(" or "),i(A).id,o,i(A).title)}else r().testID.trim()===""?E(ke,!0):Lt(void 0,void 0,o)}function ht(o){o.key==="Enter"&&!i(A)&&Ee()}function Zt(o){ye.update(l=>({...l,workers:Math.max(ps,Math.min(fs,l.workers+o))}))}function es(o){ye.update(l=>{const b=l.selectedRunners;if(b.includes(o)&&b.length===1)return l;const T=b.includes(o)?b.filter(a=>a!==o):[...b,o];return{...l,selectedRunners:T}})}function ut(o){return r().selectedRunners.includes(o)}fe(()=>r(),()=>{E(L,r())}),fe(()=>c(),()=>{E(C,Object.entries(c()).filter(([,o])=>o.status==="queued"||o.status==="running"))}),fe(()=>i(C),()=>{E(D,i(C).filter(([,o])=>o.status==="running").length)}),fe(()=>i(C),()=>{E(I,i(C).filter(([,o])=>o.status==="queued").length)}),fe(()=>i(C),()=>{E(J,i(C).length>0)}),fe(()=>(d(),ds),()=>{d()>=0&&er({limit:ds}).then(o=>E(oe,o.runs)).catch(()=>{})}),fe(()=>(i(D),i(I),i(Q)),()=>{var o,l;E(he,i(D)>0?"var(--accent)":i(I)>0?"var(--warn)":((o=i(Q))==null?void 0:o.verdict)==="pass"?"var(--pass)":((l=i(Q))==null?void 0:l.verdict)==="fail"?"var(--fail)":"var(--border)")}),fe(()=>(i(D),i(I),i(Q)),()=>{var o;E(Be,En({running:i(D),queued:i(I),verdict:(o=i(Q))==null?void 0:o.verdict}))}),fe(()=>i(L),()=>{E(Le,Bt.find(o=>o.id===i(L).browser)??Bt[0])}),fe(()=>(i(L),i(X)),()=>{E(se,Rn(i(L),i(X)))}),hn(),Wt();var ts=qi(),ss=G(ts);ir(ss,{title:An,confirmLabel:xn,get open(){return i(ke)},set open(o){E(ke,o)},$$events:{confirm:()=>{E(ke,!1),Lt(void 0,void 0,{notifyDiscord:i(N),notifySlack:i(K)})}},children:(o,l)=>{We();var b=pi(),T=G(b);T.nodeValue=`${Tn} `;var a=u(T);a.textContent=Bn;var h=u(a);h.nodeValue=` ${Sn}`,w(o,b)},$$slots:{default:!0},$$legacy:!0});var dt=u(ss,2),Xe=v(dt),pt=u(Xe,2),ft=v(pt),vt=v(ft),_t=v(vt),gt=u(_t,2),Vs=v(gt,!0);f(gt),f(vt);var Ms=u(vt,2);{var Fs=o=>{var l=fi(),b=v(l);b.nodeValue=`${Dn} `,We(),f(l),$(T=>j(l,"href",T),[()=>Zn(i(Q).reportId)],Z),Ce(3,l,()=>He,()=>({x:-6,duration:200})),w(o,l)};P(Ms,o=>{var l;!i(J)&&((l=i(Q))!=null&&l.reportId)&&o(Fs)})}f(ft);var mt=u(ft,4),ns=v(mt);{var Ws=o=>{var l=gi(),b=u(v(l),2),T=v(b,!0);f(b);var a=u(b,2);{var h=g=>{var y=vi();w(g,y)},p=g=>{var y=qe(),B=G(y);{var O=F=>{var te=_i(),ue=v(te,!0);f(te),$(Me=>{S(te,"none",i(A).tags.length===0),H(ue,Me)},[()=>Qn(i(A).tags.length)],Z),w(F,te)};P(B,F=>{i(A).tags!==null&&F(O)},!0)}w(g,y)};P(a,g=>{i(ae)?g(h):g(p,!1)})}var m=u(a,2);j(m,"aria-label",$n),f(l),$(()=>{S(l,"loading",i(ae)),H(T,i(A).title)}),U("click",m,Je),w(o,l)},Hs=o=>{var l=mi(),b=u(v(l),2);St(b),f(l),$(()=>pn(b,r().testID)),U("input",b,T=>ye.update(a=>({...a,testID:T.currentTarget.value}))),U("keydown",b,ht),w(o,l)};P(ns,o=>{i(A)?o(Ws):o(Hs,!1)})}var yt=u(ns,2),rs=v(yt);rs.textContent=Cn;var Ge=u(rs,2),Ne=v(Ge),bt=v(Ne),Ks=v(bt,!0);f(bt);var Ys=u(bt,2);f(Ne);var zs=u(Ne,2);{var js=o=>{var l=ki(),b=v(l);{var T=m=>{var g=yi(),y=G(g),B=u(v(y));B.nodeValue=` ${fn}`,f(y),We(2),U("click",y,Je),w(m,g)};P(b,m=>{i(A)&&m(T)})}var a=u(b,2);{var h=m=>{var g=bi();g.textContent=jn,w(m,g)},p=m=>{var g=qe(),y=G(g);Ie(y,1,()=>i(oe).filter(B=>B.status!=="complete"),je,(B,O)=>{var F=wi(),te=v(F,!0);f(F),$(()=>{var ue;S(F,"active",((ue=i(A))==null?void 0:ue.id)===i(O).id),H(te,i(O).title)}),U("click",F,()=>Se(i(O))),w(B,F)}),w(m,g)};P(a,m=>{i(oe).filter(g=>g.status!=="complete").length===0?m(h):m(p,!1)})}f(l),Ce(3,l,()=>He,()=>({y:6,duration:130})),w(o,l)};P(zs,o=>{i(re)&&o(js)})}f(Ge),Nt(Ge,o=>Y==null?void 0:Y(o)),nt(()=>U("clickoutside",Ge,()=>E(re,!1))),f(yt);var wt=u(yt,4),is=v(wt);is.textContent=Ln;var os=u(is,2),kt=v(os),Et=u(kt,2),Js=v(Et,!0);f(Et);var as=u(Et,2);f(os),f(wt);var Rt=u(wt,4),cs=v(Rt);cs.textContent=Nn;var Qe=u(cs,2),$e=v(Qe),xt=v($e),Xs=v(xt,!0);f(xt);var Gs=u(xt,2);f($e);var Qs=u($e,2);{var Zs=o=>{var l=Ri();Ie(l,5,()=>Bt,je,(b,T)=>{var a=Ei(),h=v(a,!0);f(a),$(()=>{S(a,"active",i(L).browser===i(T).id),H(h,i(T).label)}),U("click",a,()=>{ye.update(p=>({...p,browser:i(T).id})),E(ne,!1)}),w(b,a)}),f(l),Ce(3,l,()=>He,()=>({y:6,duration:130})),w(o,l)};P(Qs,o=>{i(ne)&&o(Zs)})}f(Qe),Nt(Qe,o=>Y==null?void 0:Y(o)),nt(()=>U("clickoutside",Qe,()=>E(ne,!1))),f(Rt);var ls=u(Rt,2);{var en=o=>{var l=Bi(),b=u(G(l),2),T=v(b);T.textContent=Vn;var a=u(T,2),h=v(a),p=v(h),m=v(p,!0);f(p);var g=u(p,2);f(h);var y=u(h,2);{var B=O=>{var F=Ti(),te=v(F);{var ue=Re=>{var de=xi(),pe=v(de);St(pe);var xe=u(pe,4);xe.textContent=gn,f(de),$(Oe=>vs(pe,Oe),[()=>ut(Ae)],Z),U("change",pe,()=>es(Ae)),w(Re,de)};P(te,Re=>{(k()||ut(Ae))&&Re(ue)})}var Me=u(te,2);Ie(Me,1,()=>i(X),je,(Re,de)=>{var pe=Ai(),xe=v(pe);St(xe);var Oe=u(xe,4),At=v(Oe,!0);f(Oe),f(pe),$(Fe=>{vs(xe,Fe),H(At,i(de).name)},[()=>ut(i(de).id)],Z),U("change",xe,()=>es(i(de).id)),w(Re,pe)}),f(F),Ce(3,F,()=>He,()=>({y:6,duration:130})),w(O,F)};P(y,O=>{i(ge)&&O(B)})}f(a),Nt(a,O=>Y==null?void 0:Y(O)),nt(()=>U("clickoutside",a,()=>E(ge,!1))),f(b),$(O=>{S(h,"open",i(ge)),S(h,"has-remote",O),H(m,i(se)),S(g,"open",i(ge))},[()=>i(L).selectedRunners.some(O=>O!==Ae)],Z),U("click",h,()=>{E(ge,!i(ge))}),w(o,l)};P(ls,o=>{i(X).length>0&&o(en)})}var hs=u(ls,2);{var tn=o=>{var l=Li(),b=u(G(l),2),T=v(b);T.textContent=Mn;var a=u(T,2),h=v(a);{var p=y=>{var B=Si();B.textContent=vn,$(O=>{j(B,"title",O),S(B,"active",i(N))},[()=>Jn(i(N))],Z),U("click",B,()=>E(N,!i(N))),w(y,B)};P(h,y=>{i(M).discordWebhookUrl&&y(p)})}var m=u(h,2);{var g=y=>{var B=Ci();B.textContent=_n,$(O=>{j(B,"title",O),S(B,"active",i(K))},[()=>Xn(i(K))],Z),U("click",B,()=>E(K,!i(K))),w(y,B)};P(m,y=>{i(M).slackWebhookUrl&&y(g)})}f(a),f(b),w(o,l)};P(hs,o=>{(i(M).discordWebhookUrl||i(M).slackWebhookUrl)&&o(tn)})}var Ve=u(hs,4),sn=u(v(Ve));sn.nodeValue=` ${On}`,f(Ve),f(mt);var Ze=u(mt,4),nn=v(Ze);f(Ze),f(pt);var rn=u(pt,2);{var on=o=>{var l=Pi(),b=v(l);Ie(b,3,()=>i(C),([h,p])=>h,(h,p,m)=>{let g=()=>i(p)[0],y=()=>i(p)[1];var B=Oi(),O=v(B),F=u(O,2),te=v(F),ue=v(te),Me=v(ue,!0);f(ue);var Re=u(ue,2),de=v(Re),pe=u(de);{var xe=me=>{var Ue=Ni(),et=u(G(Ue));$(Tt=>H(et,` ${Tt??""}`),[()=>zn(y().currentRun.startedBy)],Z),w(me,Ue)};P(pe,me=>{var Ue;(Ue=y().currentRun)!=null&&Ue.startedBy&&me(xe)})}f(Re),f(te);var Oe=u(te,2);const At=Z(()=>y().status==="queued"?"tag":rr(y().kind));or(Oe,{get variant(){return i(At)},children:(me,Ue)=>{We();var et=an();$(Tt=>H(et,Tt),[()=>y().status==="queued"?Fn:nr(y().kind)],Z),w(me,et)},$$slots:{default:!0}}),We(2),f(F);var Fe=u(F,2);j(Fe,"title",ms),j(Fe,"aria-label",ms),f(B),$(me=>{S(B,"active-run",y().status==="running"),S(B,"queued-run",y().status==="queued"),S(O,"pulse-accent",y().status==="running"),S(O,"queued-dot",y().status==="queued"),j(F,"href",`/live/${g()??""}`),H(Me,y().label||Kn),H(de,`${me??""} `)},[()=>y().status==="queued"?Wn(i(C).slice(0,i(m)).filter(([,me])=>me.status==="queued").length+1):Hn(y().kind)],Z),U("click",Fe,()=>Yn(g())),Ce(3,B,()=>He,()=>({x:-4,duration:160})),w(h,B)});var T=u(b,2);{var a=h=>{var p=Ui(),m=u(v(p));m.nodeValue=` ${Gn}`,f(p),w(h,p)};P(T,h=>{i(J)||h(a)})}f(l),Ce(3,l,()=>Rs,()=>({duration:200})),w(o,l)};P(rn,o=>{_()&&o(on)})}f(dt),$(o=>{var l,b,T,a;S(dt,"expanded",_()),S(Xe,"scanning",i(D)>0),S(Xe,"line-pass",((l=i(Q))==null?void 0:l.verdict)==="pass"&&!i(J)),S(Xe,"line-fail",((b=i(Q))==null?void 0:b.verdict)==="fail"&&!i(J)),j(_t,"style",`background:${i(he)??""}`),S(_t,"pulse",i(D)>0),j(gt,"style",`color:${i(he)??""}`),H(Vs,i(Be)),S(Ne,"open",i(re)),S(Ne,"has-remote",!!i(A)),H(Ks,i(A)?i(A).title:Pn),S(Ys,"open",i(re)),kt.disabled=i(L).workers<=ps,H(Js,i(L).workers),as.disabled=i(L).workers>=fs,S($e,"open",i(ne)),H(Xs,i(Le).label),S(Gs,"open",i(ne)),Ve.disabled=i(ae)||i(A)&&((T=i(A).tags)==null?void 0:T.length)===0,j(Ve,"title",i(A)&&((a=i(A).tags)==null?void 0:a.length)===0?qn:void 0),j(Ze,"aria-label",o),S(nn,"flipped",_())},[()=>Un(_())],Z),U("click",Ne,()=>{E(re,!i(re))}),U("click",kt,()=>Zt(-1)),U("click",as,()=>Zt(1)),U("click",$e,()=>{E(ne,!i(ne))}),U("click",Ve,Ee),U("click",Ze,()=>Pe.update(o=>!o)),w(n,ts),Yt(),s()}var Di=R("<!> <!> <!>",1),$i=R('<div class="boot-loading svelte-3qbr79">Loading…</div>');function oo(n,e){Ht(e,!1);const[t,s]=zt(),r=()=>we(xs,"$page",t),c=()=>we(As,"$auth",t),d=["/login","/setup"];let _=q(!1);Kt(async()=>{const I=r().url.pathname;if(d.includes(I)){E(_,!0);return}if(c().token){E(_,!0);return}try{const he=await ar();await us(he?"/setup":"/login")}catch{await us("/login")}finally{E(_,!0)}}),Wt();var k=qe(),L=G(k);{var C=I=>{var J=qe(),he=G(J);{var Be=se=>{var X=qe(),oe=G(X);qt(oe,e,"default",{},null),w(se,X)},Le=se=>{var X=Di(),oe=G(X);mr(oe,{});var A=u(oe,2);br(A,{children:(ne,ge)=>{var re=qe(),ke=G(re);qt(ke,e,"default",{},null),w(ne,re)},$$slots:{default:!0}});var ae=u(A,2);Ii(ae,{}),w(se,X)};P(he,se=>{r().url.pathname==="/login"||r().url.pathname==="/setup"?se(Be):se(Le,!1)})}w(I,J)},D=I=>{var J=$i();w(I,J)};P(L,I=>{i(_)?I(C):I(D,!1)})}w(n,k),Yt(),s()}export{oo as component,ro as universal};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{h as ya,e as oe,a as l,t as c,c as ce,s as o,r as ba,b as Re}from"../chunks/CfkUW1vA.js";import{i as La}from"../chunks/C00jnSU2.js";import{p as Ta,m as f,o as $a,s as i,l as Fe,b as Aa,f as W,t as S,g as e,c as wa,d as s,j as r,$ as Sa,k as a,n as Le,v as Ia,x as ve,y as De}from"../chunks/CeH-RgMb.js";import{i as y}from"../chunks/CegSvdD-.js";import{e as xe,i as ut,t as Ke,a as pt,f as gt,s as je}from"../chunks/Beula-TH.js";import{s as R,b as Ca,r as ht,C as Ut,c as ka,S as Ra,d as Ht,L as Vt,a as Xe}from"../chunks/DuAVKaL3.js";import{b as Ze}from"../chunks/BAvTKHxT.js";import{T as Da,B as Me,b as Ma}from"../chunks/CZWchtW8.js";import{f as Ba,a as Oa,s as Ft,d as Na,b as Pa,c as Ua,e as Ha,g as Va}from"../chunks/Dl-F6VCo.js";import{r as jt}from"../chunks/BJ_ypKl3.js";import{P as Gt}from"../chunks/DWzEJYIF.js";import{E as xt}from"../chunks/Cfmt4_tJ.js";import{C as Yt}from"../chunks/DAmOMhaf.js";import{M as Wt}from"../chunks/DgQy0SB2.js";import{H as Fa,a as ja,S as Ga,R as Ya,F as Wa,P as qa,D as qt,b as Ja,c as Qa,N as za,d as Ka,e as Xa,f as Za,g as es,h as ts,i as as,j as ss,T as rs,k as is,l as ls,m as ns,s as os,n as vs,r as ds,o as cs,p as _s,q as us,t as ps,u as gs,v as hs,w as xs,x as fs,y as ms,z as Es,A as ys,B as bs,C as Jt,E as et,G as tt,I as Ls,J as Ts,K as Qt,L as zt,M as $s,O as As,Q as ws,U as Ss}from"../chunks/2-KCkWZO.js";var Is=c("Delete <strong> </strong>? This cannot be undone.",1),Cs=c(" <strong> </strong> ",1),ks=c("<option> </option>"),Rs=c('<p class="form-error svelte-9ix8dg"> </p>'),Ds=c('<div class="form-fields svelte-9ix8dg"><div class="field"><label class="field-label" for="suite-name"></label> <input id="suite-name" type="text" class="field-input"></div> <div class="field"><label class="field-label" for="suite-desc"></label> <textarea id="suite-desc" class="field-input field-textarea svelte-9ix8dg" rows="3"></textarea></div> <div class="field"><label class="field-label" for="suite-prio"></label> <select id="suite-prio" class="field-input"></select></div> <!> <div class="modal-actions svelte-9ix8dg"><!> <!></div></div>'),Ms=c('<p class="form-error svelte-9ix8dg"> </p>'),Bs=c('<div class="form-fields svelte-9ix8dg"><div class="field"><label class="field-label" for="run-title"></label> <input id="run-title" type="text" class="field-input"></div> <!> <div class="modal-actions svelte-9ix8dg"><!> <!></div></div>'),Os=c('<button class="search-clear svelte-9ix8dg"><svg width="12" height="12" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M1 1l12 12M13 1L1 13"></path></svg></button>'),Ns=c('<span class="sort-dir svelte-9ix8dg"> </span>'),Ps=c('<button class="sort-chip svelte-9ix8dg"> <!></button>'),Us=c('<span class="sort-dir svelte-9ix8dg"> </span>'),Hs=c('<button class="sort-chip svelte-9ix8dg"> <!></button>'),Vs=c('<div class="sort-bar svelte-9ix8dg"><span class="sort-label svelte-9ix8dg"></span> <!></div>'),Fs=c('<div class="loading-row svelte-9ix8dg"></div>'),js=c('<div class="loading-row svelte-9ix8dg"></div>'),Gs=c('<span class="auto-badge svelte-9ix8dg"></span>'),Ys=c('<a class="case-result-row svelte-9ix8dg"><span class="id-chip small svelte-9ix8dg"> </span> <span class="case-result-title svelte-9ix8dg"> </span> <!> <span> </span> <span class="case-result-suite svelte-9ix8dg"> </span></a>'),Ws=c('<div class="search-section svelte-9ix8dg"><h2 class="search-section-title svelte-9ix8dg"> <span class="tab-count svelte-9ix8dg"> </span></h2> <div class="case-results svelte-9ix8dg"></div></div>'),qs=c('<p class="suite-desc svelte-9ix8dg"> </p>'),Js=c('<div class="suite-card svelte-9ix8dg"><a class="card-link svelte-9ix8dg"></a> <div class="suite-card-header svelte-9ix8dg"><span class="id-chip svelte-9ix8dg"> </span> <span> </span> <div class="suite-card-actions svelte-9ix8dg"><button class="icon-btn danger svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div></div> <h3 class="suite-name svelte-9ix8dg"> </h3> <!> <div class="suite-meta svelte-9ix8dg"><span class="meta-item svelte-9ix8dg"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2"></path></svg> </span> <span class="meta-item svelte-9ix8dg"> </span></div></div>'),Qs=c('<div class="search-section svelte-9ix8dg"><h2 class="search-section-title svelte-9ix8dg"> <span class="tab-count svelte-9ix8dg"> </span></h2> <div class="suite-grid svelte-9ix8dg"></div></div>'),zs=c('<div class="run-row svelte-9ix8dg"><a class="card-link svelte-9ix8dg"></a> <div class="run-row-main svelte-9ix8dg"><span></span> <span class="run-title svelte-9ix8dg"> </span> <span class="run-count svelte-9ix8dg"> </span></div> <div class="run-meta svelte-9ix8dg"><span class="run-status-label svelte-9ix8dg"> </span> <span class="meta-sep svelte-9ix8dg">·</span> <span> </span> <span class="meta-sep svelte-9ix8dg">·</span> <span> </span></div> <div class="run-row-actions svelte-9ix8dg"><button class="icon-btn svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></button> <button class="icon-btn danger svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div></div>'),Ks=c('<div class="search-section svelte-9ix8dg"><h2 class="search-section-title svelte-9ix8dg">Runs <span class="tab-count svelte-9ix8dg"> </span></h2> <div class="runs-list svelte-9ix8dg"></div></div>'),Xs=c("<!> <!> <!>",1),Zs=c("<div><!></div>"),er=c('<div class="loading-row svelte-9ix8dg"></div>'),tr=c('<p class="suite-desc svelte-9ix8dg"> </p>'),ar=c('<div class="suite-card svelte-9ix8dg"><a class="card-link svelte-9ix8dg"></a> <div class="suite-card-header svelte-9ix8dg"><span class="id-chip svelte-9ix8dg"> </span> <span> </span> <div class="suite-card-actions svelte-9ix8dg"><button class="icon-btn danger svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div></div> <h3 class="suite-name svelte-9ix8dg"> </h3> <!> <div class="suite-meta svelte-9ix8dg"><span class="meta-item svelte-9ix8dg"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2M9 5a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2M9 5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2"></path></svg> </span> <span class="meta-item svelte-9ix8dg"> </span></div></div>'),sr=c('<div class="pagination-row svelte-9ix8dg"><!></div>'),rr=c('<div class="suite-grid svelte-9ix8dg"></div> <!>',1),ir=c("<div><!></div>"),lr=c('<div class="loading-row svelte-9ix8dg"></div>'),nr=c('<div class="run-row svelte-9ix8dg"><a class="card-link svelte-9ix8dg"></a> <div class="run-row-main svelte-9ix8dg"><span></span> <span class="run-title svelte-9ix8dg"> </span> <span class="run-count svelte-9ix8dg"> </span></div> <div class="run-meta svelte-9ix8dg"><span class="run-status-label svelte-9ix8dg"> </span> <span class="meta-sep svelte-9ix8dg">·</span> <span> </span> <span class="meta-sep svelte-9ix8dg">·</span> <span> </span></div> <div class="run-row-actions svelte-9ix8dg"><button class="icon-btn svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"></rect><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"></path></svg></button> <button class="icon-btn danger svelte-9ix8dg"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div></div>'),or=c('<div class="pagination-row svelte-9ix8dg"><!></div>'),vr=c('<div class="runs-list svelte-9ix8dg"></div> <!>',1),dr=c("<div><!></div>"),cr=c('<!> <!> <!> <!> <!> <div class="page-header svelte-9ix8dg"><div class="header-text svelte-9ix8dg"><h1 class="svelte-9ix8dg"></h1> <p class="header-desc svelte-9ix8dg"></p></div> <div class="header-actions svelte-9ix8dg"><!></div></div> <div class="tabs svelte-9ix8dg"><button class="tab svelte-9ix8dg"> <span class="tab-count svelte-9ix8dg"> </span></button> <button class="tab svelte-9ix8dg"> <span class="tab-count svelte-9ix8dg"> </span></button></div> <div class="search-bar svelte-9ix8dg"><svg class="search-icon svelte-9ix8dg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg> <input type="search" class="search-input svelte-9ix8dg"> <!></div> <!> <!>',1);function wr(Kt,Xt){Ta(Xt,!1);const _e=f(),Be=f(),Te=f(),$e=f();let Ae=f(typeof sessionStorage<"u"&&sessionStorage.getItem("plum:repo:tab")||"suites");function ft(t){i(Ae,t);try{sessionStorage.setItem("plum:repo:tab",t)}catch{}}function mt(t,n){try{const v=sessionStorage.getItem(t);if(v)return JSON.parse(v)}catch{}return n}function Et(t,n){try{sessionStorage.setItem(t,JSON.stringify(n))}catch{}}let fe=f([]),ue=f(0),yt=f(1),K=f(mt("plum:repo:suites:sort",{by:"createdAt",order:"desc"})),de=f([]),pe=f(0),bt=f(1),re=f(mt("plum:repo:runs:sort",{by:"createdAt",order:"desc"}));const Lt={Critical:0,High:1,Medium:2,Low:3};function Zt(t,n){return[...t].sort((v,L)=>{const D=(Lt[v.priority]??4)-(Lt[L.priority]??4);return n==="asc"?D:-D})}let at=f(!0),st=f(null),ie=f(null),Ge=f(!1),rt=f(null),Oe=f(!1),X=f({name:"",description:"",priority:"Medium"}),Ye=f(!1),we=f(""),Ne=f(!1),Se=f({title:""}),We=f(!1),Ie=f(""),q=f(null),ge=f(!1),Ce=f(null),qe=f(!1),me=f("");const ea=["Critical","High","Medium","Low"];function he(t,n){i(st,{type:t,message:n}),setTimeout(()=>i(st,null),Ca)}async function it(t=1){const n=e(K).by==="priority",v=await Ba({page:t,sortBy:n?"createdAt":e(K).by,sortOrder:e(K).order});i(fe,n?Zt(v.suites,e(K).order):v.suites),i(ue,v.total),i(yt,t)}async function lt(t=1){const n=await Oa({page:t,sortBy:e(re).by,sortOrder:e(re).order});i(de,n.runs),i(pe,n.total),i(bt,t)}async function ta(t){e(K).by===t?De(K,e(K).order=e(K).order==="asc"?"desc":"asc"):i(K,{by:t,order:t==="createdAt"?"desc":"asc"}),Et("plum:repo:suites:sort",e(K)),await it(1)}async function aa(t){e(re).by===t?De(re,e(re).order=e(re).order==="asc"?"desc":"asc"):i(re,{by:t,order:t==="createdAt"||t==="updatedAt"?"desc":"asc"}),Et("plum:repo:runs:sort",e(re)),await lt(1)}$a(async()=>{try{await Promise.all([it(1),lt(1)])}catch{he("error",Wa)}finally{i(at,!1)}});async function sa(){if(!e(X).name.trim()){i(we,gs);return}i(we,""),i(Ye,!0);try{const t=await Ha(e(X));i(fe,[...e(fe),t]),i(ue,e(ue)+1),i(Oe,!1),i(X,{name:"",description:"",priority:"Medium"}),he("success",hs(t.name))}catch(t){i(we,t.message)}finally{i(Ye,!1)}}async function ra(t,n){try{await Na(t),i(fe,e(fe).filter(v=>v.id!==t)),i(ue,e(ue)-1),he("success",os(n))}catch{he("error",vs)}i(q,null),i(ge,!1)}async function ia(){if(!e(Se).title.trim()){i(Ie,xs);return}i(Ie,""),i(We,!0);try{const t=await Va({title:e(Se).title,caseIds:[]});i(de,[t,...e(de)]),i(Ne,!1),i(Se,{title:""}),window.location.href=`/test-repository/runs/${t.id}`}catch(t){i(Ie,t.message)}finally{i(We,!1)}}async function Tt(t){i(Ce,t),i(qe,!0)}async function la(){if(!e(Ce))return;const t=e(Ce);i(Ce,null),i(qe,!1);try{const n=await Ua(t.id);i(de,[n,...e(de)]),i(pe,e(pe)+1),jt.update(v=>v+1),he("success",us(n.title))}catch{he("error",ps)}}async function na(t,n){try{await Pa(t),i(de,e(de).filter(v=>v.id!==t)),i(pe,e(pe)-1),jt.update(v=>v+1),he("success",ds(n))}catch{he("error",cs)}i(q,null),i(ge,!1)}function nt(t){return(t==null?void 0:t.toLowerCase())??"medium"}function $t(t){return t==="complete"?"pass":t==="in-progress"?"warn":"muted"}Fe(()=>e(me),()=>{i(_e,e(me).trim())}),Fe(()=>(e(rt),e(_e),Ft),()=>{clearTimeout(e(rt)),e(_e)?(i(Ge,!0),i(ie,null),i(rt,setTimeout(async()=>{try{i(ie,await Ft(e(_e)))}catch{i(ie,{suites:[],cases:[],runs:[]})}finally{i(Ge,!1)}},300))):(i(ie,null),i(Ge,!1))}),Fe(()=>e(ie),()=>{var t;i(Be,((t=e(ie))==null?void 0:t.cases)??[])}),Fe(()=>e(ie),()=>{var t;i(Te,((t=e(ie))==null?void 0:t.suites)??[])}),Fe(()=>e(ie),()=>{var t;i($e,((t=e(ie))==null?void 0:t.runs)??[])}),Aa(),La();var At=cr();ya(t=>{Sa.title=qa});var wt=W(At);Da(wt,{get toast(){return e(st)}});var St=r(wt,2);const oa=ve(()=>{var t;return _s((t=e(q))==null?void 0:t.type)});Yt(St,{get title(){return e(oa)},get open(){return e(ge)},set open(t){i(ge,t)},$$events:{confirm:()=>{var t;return((t=e(q))==null?void 0:t.type)==="suite"?ra(e(q).id,e(q).name):na(e(q).id,e(q).name)}},children:(t,n)=>{var v=ce(),L=W(v);{var D=x=>{var u=Is(),I=r(W(u)),C=s(I);a(I),Le(),S(()=>o(C,`"${e(q).name??""}"`)),l(x,u)};y(L,x=>{e(q)&&x(D)})}l(t,v)},$$slots:{default:!0},$$legacy:!0});var It=r(St,2);Yt(It,{title:Ja,confirmLabel:qt,get open(){return e(qe)},set open(t){i(qe,t)},$$events:{confirm:la},children:(t,n)=>{var v=ce(),L=W(v);{var D=x=>{var u=Cs(),I=W(u);I.nodeValue=`${qt} `;var C=r(I),M=s(C);a(C);var g=r(C,1,!0);g.nodeValue=Qa,S(()=>o(M,`"${e(Ce).title??""}"`)),l(x,u)};y(L,x=>{e(Ce)&&x(D)})}l(t,v)},$$slots:{default:!0},$$legacy:!0});var Ct=r(It,2);Wt(Ct,{title:za,get open(){return e(Oe)},set open(t){i(Oe,t)},children:(t,n)=>{var v=Ds(),L=s(v),D=s(L);D.textContent=Ka;var x=r(D,2);ht(x),R(x,"placeholder",Xa),a(L);var u=r(L,2),I=s(u);I.textContent=Za;var C=r(I,2);ba(C),R(C,"placeholder",es),a(u);var M=r(u,2),g=s(M);g.textContent=ts;var d=r(g,2);S(()=>{e(X),Ia(()=>{})}),xe(d,5,()=>ea,ut,(p,T)=>{var $=ks(),k={},_=s($,!0);a($),S(()=>{k!==(k=e(T))&&($.value=($.__value=e(T))==null?"":e(T)),o(_,e(T))}),l(p,$)}),a(d),a(M);var B=r(M,2);{var m=p=>{var T=Rs(),$=s(T,!0);a(T),S(()=>o($,e(we))),l(p,T)};y(B,p=>{e(we)&&p(m)})}var U=r(B,2),E=s(U);Me(E,{get disabled(){return e(Ye)},$$events:{click:sa},children:(p,T)=>{Le();var $=Re();S(k=>o($,k),[()=>as(e(Ye))],ve),l(p,$)},$$slots:{default:!0}});var H=r(E,2);Me(H,{variant:"ghost",$$events:{click:()=>{i(Oe,!1),i(we,"")}},children:(p,T)=>{Le();var $=Re();$.nodeValue=Ut,l(p,$)},$$slots:{default:!0}}),a(U),a(v),Ze(x,()=>e(X).name,p=>De(X,e(X).name=p)),Ze(C,()=>e(X).description,p=>De(X,e(X).description=p)),Ma(d,()=>e(X).priority,p=>De(X,e(X).priority=p)),l(t,v)},$$slots:{default:!0},$$legacy:!0});var kt=r(Ct,2);Wt(kt,{title:ss,get open(){return e(Ne)},set open(t){i(Ne,t)},children:(t,n)=>{var v=Bs(),L=s(v),D=s(L);D.textContent=rs;var x=r(D,2);ht(x),R(x,"placeholder",is),a(L);var u=r(L,2);{var I=d=>{var B=Ms(),m=s(B,!0);a(B),S(()=>o(m,e(Ie))),l(d,B)};y(u,d=>{e(Ie)&&d(I)})}var C=r(u,2),M=s(C);Me(M,{get disabled(){return e(We)},$$events:{click:ia},children:(d,B)=>{Le();var m=Re();S(U=>o(m,U),[()=>ls(e(We))],ve),l(d,m)},$$slots:{default:!0}});var g=r(M,2);Me(g,{variant:"ghost",$$events:{click:()=>{i(Ne,!1),i(Ie,"")}},children:(d,B)=>{Le();var m=Re();m.nodeValue=Ut,l(d,m)},$$slots:{default:!0}}),a(C),a(v),Ze(x,()=>e(Se).title,d=>De(Se,e(Se).title=d)),l(t,v)},$$slots:{default:!0},$$legacy:!0});var ot=r(kt,2),vt=s(ot),Rt=s(vt);Rt.textContent=Fa;var va=r(Rt,2);va.textContent=ja,a(vt);var Dt=r(vt,2),da=s(Dt);{var ca=t=>{Me(t,{$$events:{click:()=>i(Oe,!0)},children:(n,v)=>{Le();var L=Re();L.nodeValue=fs,l(n,L)},$$slots:{default:!0}})},_a=t=>{Me(t,{$$events:{click:()=>i(Ne,!0)},children:(n,v)=>{Le();var L=Re();L.nodeValue=ms,l(n,L)},$$slots:{default:!0}})};y(da,t=>{e(Ae)==="suites"?t(ca):t(_a,!1)})}a(Dt),a(ot);var dt=r(ot,2),Pe=s(dt),Mt=s(Pe);Mt.nodeValue=`${Ga} `;var Bt=r(Mt),ua=s(Bt);a(Bt),a(Pe);var Je=r(Pe,2),Ot=s(Je);Ot.nodeValue=`${Ya} `;var Nt=r(Ot),pa=s(Nt);a(Nt),a(Je),a(dt);var ct=r(dt,2),Qe=r(s(ct),2);ht(Qe),R(Qe,"placeholder",ns);var ga=r(Qe,2);{var ha=t=>{var n=Os();R(n,"aria-label",ka),oe("click",n,()=>i(me,"")),l(t,n)};y(ga,t=>{e(me)&&t(ha)})}a(ct);var Pt=r(ct,2);{var xa=t=>{var n=Vs(),v=s(n);v.textContent=Ra;var L=r(v,2);{var D=u=>{var I=ce(),C=W(I);xe(C,0,()=>[["createdAt","Date Created"],["displayId","ID"],["name","Name"],["priority","Priority"]],ut,(M,g)=>{let d=()=>g[0],B=()=>g[1];var m=Ps(),U=s(m),E=r(U);{var H=p=>{var T=Ns(),$=s(T,!0);a(T),S(()=>o($,e(K).order==="asc"?"↑":"↓")),l(p,T)};y(E,p=>{e(K).by===d()&&p(H)})}a(m),S(()=>{Ke(m,"active",e(K).by===d()),o(U,`${B()??""} `)}),oe("click",m,()=>ta(d())),l(M,m)}),l(u,I)},x=u=>{var I=ce(),C=W(I);xe(C,0,()=>[["createdAt","Date Created"],["updatedAt","Last Updated"],["title","Name"]],ut,(M,g)=>{let d=()=>g[0],B=()=>g[1];var m=Hs(),U=s(m),E=r(U);{var H=p=>{var T=Us(),$=s(T,!0);a(T),S(()=>o($,e(re).order==="asc"?"↑":"↓")),l(p,T)};y(E,p=>{e(re).by===d()&&p(H)})}a(m),S(()=>{Ke(m,"active",e(re).by===d()),o(U,`${B()??""} `)}),oe("click",m,()=>aa(d())),l(M,m)}),l(u,I)};y(L,u=>{e(Ae)==="suites"?u(D):u(x,!1)})}a(n),l(t,n)};y(Pt,t=>{e(_e)||t(xa)})}var fa=r(Pt,2);{var ma=t=>{var n=Zs(),v=s(n);{var L=x=>{var u=Fs();u.textContent=Ht,l(x,u)},D=x=>{var u=ce(),I=W(u);{var C=g=>{var d=js();d.textContent=Ht,l(g,d)},M=g=>{var d=ce(),B=W(d);{var m=E=>{const H=ve(()=>$s(e(me)));xt(E,{title:Es,get description(){return e(H)}})},U=E=>{var H=Xs(),p=W(H);{var T=A=>{var w=Ws(),O=s(w),J=s(O);J.nodeValue=`${As} `;var Q=r(J),le=s(Q,!0);a(Q),a(O);var z=r(O,2);xe(z,5,()=>e(Be),b=>b.id,(b,h)=>{var V=Ys(),N=s(V),te=s(N,!0);a(N);var P=r(N,2),ne=s(P,!0);a(P);var Y=r(P,2);{var ae=se=>{var Ee=Gs();Ee.textContent=ws,l(se,Ee)};y(Y,se=>{e(h).isAutomated&&se(ae)})}var F=r(Y,2),j=s(F,!0);a(F);var G=r(F,2),ee=s(G);a(G),a(V),S(se=>{R(V,"href",`/test-repository/suites/${e(h).suite.id??""}`),o(te,e(h).displayId),o(ne,e(h).title),je(F,`priority-badge small ${se??""} svelte-9ix8dg`),o(j,e(h).priority),o(ee,`${e(h).suite.displayId??""} · ${e(h).suite.name??""}`)},[()=>nt(e(h).priority)],ve),l(b,V)}),a(z),a(w),S(()=>o(le,e(Be).length)),l(A,w)};y(p,A=>{e(Be).length>0&&A(T)})}var $=r(p,2);{var k=A=>{var w=Qs(),O=s(w),J=s(O);J.nodeValue=`${Ss} `;var Q=r(J),le=s(Q,!0);a(Q),a(O);var z=r(O,2);xe(z,5,()=>e(Te),b=>b.id,(b,h)=>{var V=Js(),N=s(V),te=r(N,2),P=s(te),ne=s(P,!0);a(P);var Y=r(P,2),ae=s(Y,!0);a(Y);var F=r(Y,2),j=s(F);R(j,"title",Jt),a(F),a(te);var G=r(te,2),ee=s(G,!0);a(G);var se=r(G,2);{var Ee=ye=>{var be=qs(),Ve=s(be,!0);a(be),S(()=>o(Ve,e(h).description)),l(ye,be)};y(se,ye=>{e(h).description&&ye(Ee)})}var ze=r(se,2),ke=s(ze),Ue=r(s(ke));a(ke);var He=r(ke,2),_t=s(He,!0);a(He),a(ze),a(V),S((ye,be,Ve)=>{R(N,"href",`/test-repository/suites/${e(h).id??""}`),R(N,"aria-label",e(h).name),o(ne,e(h).displayId),je(Y,`priority-badge ${ye??""} svelte-9ix8dg`),o(ae,e(h).priority),o(ee,e(h).name),o(Ue,` ${be??""}`),o(_t,Ve)},[()=>nt(e(h).priority),()=>et(e(h)._count.cases),()=>tt(e(h).createdBy.name)],ve),oe("click",j,()=>{i(q,{type:"suite",id:e(h).id,name:e(h).name}),i(ge,!0)}),l(b,V)}),a(z),a(w),S(()=>o(le,e(Te).length)),l(A,w)};y($,A=>{e(Te).length>0&&A(k)})}var _=r($,2);{var Z=A=>{var w=Ks(),O=s(w),J=r(s(O)),Q=s(J,!0);a(J),a(O);var le=r(O,2);xe(le,5,()=>e($e),z=>z.id,(z,b)=>{var h=zs(),V=s(h),N=r(V,2),te=s(N),P=r(te,2),ne=s(P,!0);a(P);var Y=r(P,2),ae=s(Y,!0);a(Y),a(N);var F=r(N,2),j=s(F),G=s(j,!0);a(j);var ee=r(j,4),se=s(ee,!0);a(ee);var Ee=r(ee,4),ze=s(Ee,!0);a(Ee),a(F);var ke=r(F,2),Ue=s(ke);R(Ue,"title",Qt);var He=r(Ue,2);R(He,"title",zt),a(ke),a(h),S((_t,ye,be,Ve)=>{R(V,"href",`/test-repository/runs/${e(b).id??""}`),R(V,"aria-label",e(b).title),je(te,`run-status-dot ${_t??""} svelte-9ix8dg`),o(ne,e(b).title),o(ae,ye),o(G,e(b).status),o(se,be),o(ze,Ve)},[()=>$t(e(b).status),()=>et(e(b)._count.entries),()=>tt(e(b).createdBy.name),()=>new Date(e(b).createdAt).toLocaleDateString()],ve),oe("click",Ue,()=>Tt(e(b))),oe("click",He,()=>{i(q,{type:"run",id:e(b).id,name:e(b).title}),i(ge,!0)}),l(z,h)}),a(le),a(w),S(()=>o(Q,e($e).length)),l(A,w)};y(_,A=>{e($e).length>0&&A(Z)})}l(E,H)};y(B,E=>{e(Be).length===0&&e(Te).length===0&&e($e).length===0?E(m):E(U,!1)},!0)}l(g,d)};y(I,g=>{e(ie)?g(M,!1):g(C)},!0)}l(x,u)};y(v,x=>{e(Ge)?x(L):x(D,!1)})}a(n),pt(3,n,()=>gt,()=>({y:4,duration:160})),l(t,n)},Ea=t=>{var n=ce(),v=W(n);{var L=x=>{var u=ir(),I=s(u);{var C=g=>{var d=er();d.textContent=Vt,l(g,d)},M=g=>{var d=ce(),B=W(d);{var m=E=>{xt(E,{title:bs,description:ys})},U=E=>{var H=rr(),p=W(H);xe(p,5,()=>e(fe),k=>k.id,(k,_)=>{var Z=ar(),A=s(Z),w=r(A,2),O=s(w),J=s(O,!0);a(O);var Q=r(O,2),le=s(Q,!0);a(Q);var z=r(Q,2),b=s(z);R(b,"title",Jt),a(z),a(w);var h=r(w,2),V=s(h,!0);a(h);var N=r(h,2);{var te=j=>{var G=tr(),ee=s(G,!0);a(G),S(()=>o(ee,e(_).description)),l(j,G)};y(N,j=>{e(_).description&&j(te)})}var P=r(N,2),ne=s(P),Y=r(s(ne));a(ne);var ae=r(ne,2),F=s(ae,!0);a(ae),a(P),a(Z),S((j,G,ee)=>{R(A,"href",`/test-repository/suites/${e(_).id??""}`),R(A,"aria-label",e(_).name),o(J,e(_).displayId),je(Q,`priority-badge ${j??""} svelte-9ix8dg`),o(le,e(_).priority),o(V,e(_).name),o(Y,` ${G??""}`),o(F,ee)},[()=>nt(e(_).priority),()=>et(e(_)._count.cases),()=>tt(e(_).createdBy.name)],ve),oe("click",b,()=>{i(q,{type:"suite",id:e(_).id,name:e(_).name}),i(ge,!0)}),l(k,Z)}),a(p);var T=r(p,2);{var $=k=>{var _=sr(),Z=s(_);const A=ve(()=>Math.ceil(e(ue)/Xe));Gt(Z,{get current(){return e(yt)},get total(){return e(A)},$$events:{change:w=>it(w.detail)}}),a(_),l(k,_)};y(T,k=>{Math.ceil(e(ue)/Xe)>1&&k($)})}l(E,H)};y(B,E=>{e(fe).length===0?E(m):E(U,!1)},!0)}l(g,d)};y(I,g=>{e(at)?g(C):g(M,!1)})}a(u),pt(3,u,()=>gt,()=>({y:4,duration:160})),l(x,u)},D=x=>{var u=dr(),I=s(u);{var C=g=>{var d=lr();d.textContent=Vt,l(g,d)},M=g=>{var d=ce(),B=W(d);{var m=E=>{xt(E,{title:Ts,description:Ls})},U=E=>{var H=vr(),p=W(H);xe(p,5,()=>e(de),k=>k.id,(k,_)=>{var Z=nr(),A=s(Z),w=r(A,2),O=s(w),J=r(O,2),Q=s(J,!0);a(J);var le=r(J,2),z=s(le,!0);a(le),a(w);var b=r(w,2),h=s(b),V=s(h,!0);a(h);var N=r(h,4),te=s(N,!0);a(N);var P=r(N,4),ne=s(P,!0);a(P),a(b);var Y=r(b,2),ae=s(Y);R(ae,"title",Qt);var F=r(ae,2);R(F,"title",zt),a(Y),a(Z),S((j,G,ee,se)=>{R(A,"href",`/test-repository/runs/${e(_).id??""}`),R(A,"aria-label",e(_).title),je(O,`run-status-dot ${j??""} svelte-9ix8dg`),o(Q,e(_).title),o(z,G),o(V,e(_).status),o(te,ee),o(ne,se)},[()=>$t(e(_).status),()=>et(e(_)._count.entries),()=>tt(e(_).createdBy.name),()=>new Date(e(_).createdAt).toLocaleDateString()],ve),oe("click",ae,()=>Tt(e(_))),oe("click",F,()=>{i(q,{type:"run",id:e(_).id,name:e(_).title}),i(ge,!0)}),l(k,Z)}),a(p);var T=r(p,2);{var $=k=>{var _=or(),Z=s(_);const A=ve(()=>Math.ceil(e(pe)/Xe));Gt(Z,{get current(){return e(bt)},get total(){return e(A)},$$events:{change:w=>lt(w.detail)}}),a(_),l(k,_)};y(T,k=>{Math.ceil(e(pe)/Xe)>1&&k($)})}l(E,H)};y(B,E=>{e(de).length===0?E(m):E(U,!1)},!0)}l(g,d)};y(I,g=>{e(at)?g(C):g(M,!1)})}a(u),pt(3,u,()=>gt,()=>({y:4,duration:160})),l(x,u)};y(v,x=>{e(Ae)==="suites"?x(L):x(D,!1)},!0)}l(t,n)};y(fa,t=>{e(_e)?t(ma):t(Ea,!1)})}S(()=>{Ke(Pe,"active",e(Ae)==="suites"),o(ua,`${(e(_e)?e(Te).length+"/":"")??""}${e(ue)??""}`),Ke(Je,"active",e(Ae)==="runs"),o(pa,`${(e(_e)?e($e).length+"/":"")??""}${e(pe)??""}`)}),oe("click",Pe,()=>ft("suites")),oe("click",Je,()=>ft("runs")),Ze(Qe,()=>e(me),t=>i(me,t)),l(Kt,At),wa()}export{wr as component};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{a as o,t as u,s as b,h as ba,b as Ce,c as Fe,e as R,n as ha}from"../chunks/CfkUW1vA.js";import{i as Yt}from"../chunks/C00jnSU2.js";import{p as Et,l as me,s as i,ai as zt,b as Lt,d as r,k as a,t as E,g as e,c as Tt,m as f,o as Ea,f as re,x as Xe,$ as La,y as Ut,j as l,n as pe}from"../chunks/CeH-RgMb.js";import{i as m,s as Ta,a as Vt}from"../chunks/CegSvdD-.js";import{t as k,s as Aa,a as xt,f as ft,e as Be,i as gt}from"../chunks/Beula-TH.js";import{k as Ca,b as Sa,r as Gt,h as Kt,i as Ht,C as ya,L as ka,s as Ne}from"../chunks/DuAVKaL3.js";import{b as Ft}from"../chunks/BAvTKHxT.js";import{T as Ia,B as Se,i as $a,s as Oa}from"../chunks/CZWchtW8.js";import{p as Ra}from"../chunks/d2K3c8Kx.js";import{r as wt,i as Ba,t as Na,v as De,w as Da,x as Pa}from"../chunks/Dl-F6VCo.js";import{r as bt}from"../chunks/BJ_ypKl3.js";import{a as Ma}from"../chunks/Ck6C3Fl0.js";import{M as Ua}from"../chunks/DgQy0SB2.js";import{E as Va}from"../chunks/Cfmt4_tJ.js";import{p as Je}from"../chunks/DB3YXVFP.js";import{ab as Ga,aK as Ka,aL as Ha,T as Fa,F as Xa,aM as ja,aN as Wa,aO as Ya,aP as za,aQ as Ja,aR as qa,aS as Qa,aT as Za,aU as es,aV as ts,aW as as,aX as ss,aY as rs,aZ as ls,a_ as is,a$ as os,b0 as ns,b1 as vs,b2 as ds,b3 as cs,b4 as us,b5 as _s,b6 as ps,b7 as ms,b8 as xs,b9 as fs,ba as gs,bb as ws,bc as bs,bd as hs,be as Es,bf as Xt,bg as Ls,bh as Ts,bi as As,bj as Cs,a5 as Ss,bk as ys}from"../chunks/2-KCkWZO.js";var ks=u('<span class="auto-badge svelte-1yr9844"></span>');function lt(Le){var q=ks();q.textContent=Ca,o(Le,q)}var Is=u('<span class="priority-badge svelte-1m066kw"> </span>');function jt(Le,q){Et(q,!1);const V=f();let Q=Je(q,"priority",8,"Medium"),G=Je(q,"small",8,!1);me(()=>zt(Q()),()=>{var je;i(V,((je=Q())==null?void 0:je.toLowerCase())??"medium")}),Lt(),Yt();var W=Is(),Pe=r(W,!0);a(W),E(()=>{k(W,"critical",e(V)==="critical"),k(W,"high",e(V)==="high"),k(W,"medium",e(V)==="medium"),k(W,"low",e(V)==="low"),k(W,"small",G()),b(Pe,Q())}),o(Le,W),Tt()}var $s=u('<span class="id-chip svelte-1gmo0py"> </span>');function ht(Le,q){let V=Je(q,"id",8,""),Q=Je(q,"small",8,!1);var G=$s(),W=r(G,!0);a(G),E(()=>{k(G,"small",Q()),b(W,V())}),o(Le,G)}var Os=u('<span class="result-chip svelte-1rgb1a1"> </span>');function Wt(Le,q){Et(q,!1);const V=f();let Q=Je(q,"status",8,"pending");me(()=>zt(Q()),()=>{i(V,Q()==="pass"?"pass":Q()==="fail"?"fail":Q()==="blocked"?"warn":Q()==="skip"?"muted":"pending")}),Lt();var G=Os(),W=r(G,!0);a(G),E(()=>{k(G,"pass",e(V)==="pass"),k(G,"fail",e(V)==="fail"),k(G,"warn",e(V)==="warn"),k(G,"muted",e(V)==="muted"),k(G,"pending",e(V)==="pending"),b(W,Q())}),o(Le,G),Tt()}var Rs=u('<div class="form-fields svelte-1mxlw2t"><div class="field"><label class="field-label" for="er-title"></label> <input id="er-title" type="text" class="field-input"></div> <div class="modal-actions svelte-1mxlw2t"><!> <!></div></div>'),Bs=u('<div class="loading-state svelte-1mxlw2t"></div>'),Ns=u("<!> <!>",1),Ds=u("<!> <!> <!>",1),Ps=u('<span class="exec-progress svelte-1mxlw2t"> </span>'),Ms=u('<span class="locked-badge svelte-1mxlw2t"></span>'),Us=u('<span class="entry-sort-dir svelte-1mxlw2t"> </span>'),Vs=u('<button class="entry-sort-chip svelte-1mxlw2t"> <!></button>'),Gs=ha('<svg class="drag-handle svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="currentColor"><circle cx="9" cy="5" r="1.5"></circle><circle cx="15" cy="5" r="1.5"></circle><circle cx="9" cy="12" r="1.5"></circle><circle cx="15" cy="12" r="1.5"></circle><circle cx="9" cy="19" r="1.5"></circle><circle cx="15" cy="19" r="1.5"></circle></svg>'),Ks=u("<option> </option>"),Hs=u('<select class="assignee-select svelte-1mxlw2t"><option></option><!></select>'),Fs=u('<button class="icon-btn danger svelte-1mxlw2t"><svg width="11" height="11" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>'),Xs=u('<div class="entry-row svelte-1mxlw2t" role="listitem"><!> <div class="entry-info svelte-1mxlw2t"><div class="entry-badges svelte-1mxlw2t"><!> <!></div> <p class="entry-title svelte-1mxlw2t"> </p> <span class="entry-suite svelte-1mxlw2t"> </span></div> <!> <!></div>'),js=u('<div class="entry-sort-bar svelte-1mxlw2t"></div> <div class="entry-list svelte-1mxlw2t" role="list"></div>',1),Ws=u('<button class="browser-case svelte-1mxlw2t"><!> <span class="browser-case-title svelte-1mxlw2t"> </span> <!> <!></button>'),Ys=u('<div class="browser-cases svelte-1mxlw2t"></div>'),zs=u('<p class="browser-empty svelte-1mxlw2t"> </p>'),Js=u('<div class="browser-suite svelte-1mxlw2t"><button class="browser-suite-header svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg> <span class="browser-suite-name svelte-1mxlw2t"> </span> <span class="browser-suite-count svelte-1mxlw2t"> </span></button> <!></div>'),qs=u('<p class="browser-empty svelte-1mxlw2t"></p>'),Qs=u('<div class="builder-panel right-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <input type="text" class="search-input svelte-1mxlw2t"></div> <div class="suite-browser svelte-1mxlw2t"><!> <!></div></div>'),Zs=u('<div class="builder-workspace svelte-1mxlw2t"><div class="builder-panel left-panel svelte-1mxlw2t"><div class="builder-panel-head svelte-1mxlw2t"><h2 class="builder-panel-title svelte-1mxlw2t"></h2> <span class="count-chip svelte-1mxlw2t"> </span> <!></div> <!></div> <!></div>'),er=u('<div class="exec-locked-banner svelte-1mxlw2t"></div>'),tr=u('<div class="progress-bar-wrap svelte-1mxlw2t"><div class="progress-stats svelte-1mxlw2t"><span class="stat pass svelte-1mxlw2t"> </span> <span class="stat fail svelte-1mxlw2t"> </span> <span class="stat muted svelte-1mxlw2t"> </span></div> <div class="progress-bar svelte-1mxlw2t"><div class="progress-fill pass svelte-1mxlw2t"></div> <div class="progress-fill fail svelte-1mxlw2t"></div></div></div>'),ar=u('<button class="exec-chevron svelte-1mxlw2t"><svg class="chevron svelte-1mxlw2t" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><polyline points="9 18 15 12 9 6"></polyline></svg></button>'),sr=u('<div class="exec-assignee-row svelte-1mxlw2t"><!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),rr=u('<span class="exec-assignee-name svelte-1mxlw2t"> </span>'),lr=u('<button class="exec-assign-me svelte-1mxlw2t"></button>'),ir=u('<div class="exec-assignee-row svelte-1mxlw2t"><!> <!></div> <div class="exec-assignee-divider svelte-1mxlw2t"></div>',1),or=u('<div class="exec-btns svelte-1mxlw2t"><button class="exec-btn in-progress svelte-1mxlw2t"></button> <button class="exec-btn pass svelte-1mxlw2t"></button> <button class="exec-btn fail svelte-1mxlw2t"></button> <button class="exec-btn warn svelte-1mxlw2t"></button> <button class="exec-btn muted svelte-1mxlw2t"></button></div>'),nr=u('<div class="exec-btns svelte-1mxlw2t"><!> <button class="exec-reset svelte-1mxlw2t"></button></div>'),vr=u('<p class="exec-step-data svelte-1mxlw2t"> </p>'),dr=u('<p class="exec-step-expected svelte-1mxlw2t"> </p>'),cr=u('<div class="exec-step svelte-1mxlw2t"><span class="exec-step-num svelte-1mxlw2t"></span> <div class="exec-step-body svelte-1mxlw2t"><p class="exec-step-action svelte-1mxlw2t"> </p> <!> <!></div></div>'),ur=u('<div class="exec-steps svelte-1mxlw2t"></div>'),_r=u('<div class="execute-row svelte-1mxlw2t"><div class="execute-row-main svelte-1mxlw2t"><div class="exec-info svelte-1mxlw2t"><!> <!> <!> <div><p class="exec-title svelte-1mxlw2t"> </p> <span class="exec-suite svelte-1mxlw2t"> </span></div></div> <div class="exec-actions svelte-1mxlw2t"><!> <!></div></div> <!></div>'),pr=u('<div class="execute-workspace"><!> <!> <div class="execute-list svelte-1mxlw2t"></div></div>'),mr=u('<div class="run-header svelte-1mxlw2t"><div class="run-header-left svelte-1mxlw2t"><h1 class="run-title svelte-1mxlw2t"> </h1> <span> </span> <button class="icon-btn svelte-1mxlw2t"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></button></div> <div class="run-header-actions svelte-1mxlw2t"><!></div></div> <div class="mode-tabs svelte-1mxlw2t"><button class="mode-tab svelte-1mxlw2t"></button> <button class="mode-tab svelte-1mxlw2t"> <!></button></div> <!>',1),xr=u('<!> <!> <div class="breadcrumb svelte-1mxlw2t"><a href="/test-repository" class="bc-link svelte-1mxlw2t"></a> <span class="bc-sep svelte-1mxlw2t">›</span> <span class="bc-current"> </span></div> <!>',1);function Rr(Le,q){Et(q,!1);const[V,Q]=Ta(),G=()=>Vt(Ra,"$page",V),W=()=>Vt(Ma,"$auth",V),Pe=f(),je=f(),qe=f(),it=f(),K=f(),ot=f(),ke=f(),nt=f(),vt=f(),xe=G().params.id;let le=f("build"),s=f(null),Qe=f([]),At=f([]),Ct=f(!0),dt=f(null),Ze=f(!1),et=f(null),ie=f(""),Te=f(new Set);const St={Critical:0,High:1,Medium:2,Low:3};let I=f((()=>{try{const t=sessionStorage.getItem("plum:run:entries:sort");if(t)return JSON.parse(t)}catch{}return{by:"order",order:"asc"}})());function Jt(t){e(I).by===t?Ut(I,e(I).order=e(I).order==="asc"?"desc":"asc"):i(I,{by:t,order:"asc"});try{sessionStorage.setItem("plum:run:entries:sort",JSON.stringify(e(I)))}catch{}}let Me=f(null),tt=f(null),ct=f(null),yt="",Ie=f(new Set),We=f(!1),Ye=f({}),at=f(!1);function qt(t){e(Ie).has(t)?e(Ie).delete(t):e(Ie).add(t),i(Ie,new Set(e(Ie)))}function ae(t,v){i(dt,{type:t,message:v}),setTimeout(()=>i(dt,null),Sa)}Ea(async()=>{try{await(async t=>(i(s,t[0]),i(Qe,t[1]),i(At,t[2])))(await Promise.all([wt(xe),Ba(),Na()])),i(Te,new Set(e(Qe).map(t=>t.id))),e(s).status==="in-progress"&&i(le,"execute")}catch{ae("error",Xa)}finally{i(Ct,!1)}});async function kt(t,v){i(et,t);try{const _=await Da(t,v||null);i(s,{...e(s),entries:e(s).entries.map(g=>g.id===t?{...g,assignedToId:_.assignedToId,assignedTo:_.assignedTo}:g)})}catch(_){ae("error",_.message)}finally{i(et,null)}}async function Qt(t){if(!e(s)||e(qe).has(t.id))return;const v=e(s),_={id:`tmp-${t.id}`,order:e(s).entries.length,status:"pending",notes:"",executedAt:null,executedBy:null,case:t};i(s,{...e(s),entries:[...e(s).entries,_]});try{const g=e(s).entries.map(se=>se.case.id);await De(xe,{caseIds:g}),i(s,await wt(xe))}catch{i(s,v),ae("error",bs)}}function Zt(t){i(s,{...e(s),entries:e(s).entries.filter(v=>v.id!==t)})}async function ea(){i(at,!0);try{const t=await De(xe,e(Ye));i(s,{...e(s),...t}),i(We,!1),ae("success",ja)}catch(t){ae("error",t.message)}finally{i(at,!1)}}async function It(){i(Ze,!0);try{const t=e(s).entries.map(_=>_.case.id),v=await De(xe,{caseIds:t});i(s,await wt(xe)),ae("success",ws)}catch(t){ae("error",t.message)}finally{i(Ze,!1)}}async function ta(){await It(),await De(xe,{status:"in-progress"}),i(s,{...e(s),status:"in-progress"}),i(le,"execute")}async function Ue(t,v){i(ct,t.id);try{const _=await Pa(t.id,{status:v,notes:yt});i(s,{...e(s),entries:e(s).entries.map(g=>g.id===t.id?{...g,..._,status:v}:g)}),yt=""}catch(_){ae("error",_.message)}finally{i(ct,null)}}async function aa(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1)}catch(t){ae("error",t.message)}}async function sa(){try{await De(xe,{status:"complete"}),i(s,{...e(s),status:"complete"}),bt.update(t=>t+1),ae("success",ys)}catch(t){ae("error",t.message)}}async function ra(){try{await De(xe,{status:"backlog"}),i(s,{...e(s),status:"backlog"}),i(le,"build"),bt.update(t=>t+1),ae("success",Za)}catch(t){ae("error",t.message)}}function la(t,v){i(Me,v),t.dataTransfer.effectAllowed="move"}function ia(t,v){t.preventDefault(),i(tt,v)}function oa(t,v){if(t.preventDefault(),!e(Me)||e(Me)===v)return;const _=[...e(s).entries],g=_.findIndex(ge=>ge.id===e(Me)),se=_.findIndex(ge=>ge.id===v),[fe]=_.splice(g,1);_.splice(se,0,fe),i(s,{...e(s),entries:_}),i(Me,null),i(tt,null)}me(()=>W(),()=>{var t,v;i(Pe,((v=(t=W())==null?void 0:t.user)==null?void 0:v.id)??null)}),me(()=>(e(s),e(I)),()=>{i(je,(()=>{if(!e(s))return[];const t=[...e(s).entries],v=e(I).order==="asc"?1:-1;return e(I).by==="name"?t.sort((_,g)=>v*_.case.title.localeCompare(g.case.title)):e(I).by==="priority"?t.sort((_,g)=>v*((St[_.case.priority]??99)-(St[g.case.priority]??99))):e(I).by==="status"?t.sort((_,g)=>v*_.status.localeCompare(g.status)):e(I).by==="suite"?t.sort((_,g)=>{var se,fe;return v*(((se=_.case.suite)==null?void 0:se.name)??"").localeCompare(((fe=g.case.suite)==null?void 0:fe.name)??"")}):t.sort((_,g)=>v*(_.order-g.order))})())}),me(()=>e(s),()=>{var t;i(qe,new Set(((t=e(s))==null?void 0:t.entries.map(v=>v.case.id))??[]))}),me(()=>(e(Qe),e(qe),e(ie)),()=>{i(it,e(Qe).map(t=>({...t,_totalCases:(t.cases??[]).length,cases:(t.cases??[]).filter(v=>!e(qe).has(v.id)&&(!e(ie)||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())||v.title.toLowerCase().includes(e(ie).toLowerCase())||v.displayId.toLowerCase().includes(e(ie).toLowerCase())))})).filter(t=>!e(ie)||t.cases.length>0||t.displayId.toLowerCase().includes(e(ie).toLowerCase())||t.name.toLowerCase().includes(e(ie).toLowerCase())))}),me(()=>e(s),()=>{var t;i(K,((t=e(s))==null?void 0:t.status)==="complete")}),me(()=>e(s),()=>{var t;i(ot,((t=e(s))==null?void 0:t.entries.filter(v=>v.status!=="pending").length)??0)}),me(()=>e(s),()=>{var t;i(ke,((t=e(s))==null?void 0:t.entries.length)??0)}),me(()=>e(s),()=>{var t;i(nt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="pass").length)??0)}),me(()=>e(s),()=>{var t;i(vt,((t=e(s))==null?void 0:t.entries.filter(v=>v.status==="fail").length)??0)}),Lt(),Yt();var $t=xr();ba(t=>{E(v=>La.title=v,[()=>Ka(e(s))],Xe)});var Ot=re($t);Ia(Ot,{get toast(){return e(dt)}});var Rt=l(Ot,2);Ua(Rt,{title:Ha,get open(){return e(We)},set open(t){i(We,t)},children:(t,v)=>{var _=Rs(),g=r(_),se=r(g);se.textContent=Fa;var fe=l(se,2);Gt(fe),a(g);var ge=l(g,2),Ve=r(ge);Se(Ve,{get disabled(){return e(at)},$$events:{click:ea},children:($e,Ge)=>{pe();var Oe=Ce();E(()=>b(Oe,e(at)?Kt:Ht)),o($e,Oe)},$$slots:{default:!0}});var ze=l(Ve,2);Se(ze,{variant:"ghost",$$events:{click:()=>i(We,!1)},children:($e,Ge)=>{pe();var Oe=Ce();Oe.nodeValue=ya,o($e,Oe)},$$slots:{default:!0}}),a(ge),a(_),Ft(fe,()=>e(Ye).title,$e=>Ut(Ye,e(Ye).title=$e)),o(t,_)},$$slots:{default:!0},$$legacy:!0});var ut=l(Rt,2),Bt=r(ut);Bt.textContent=Ga;var Nt=l(Bt,4),na=r(Nt,!0);a(Nt),a(ut);var va=l(ut,2);{var da=t=>{var v=Bs();v.textContent=ka,o(t,v)},ca=t=>{var v=Fe(),_=re(v);{var g=se=>{var fe=mr(),ge=re(fe),Ve=r(ge),ze=r(Ve),$e=r(ze,!0);a(ze);var Ge=l(ze,2),Oe=r(Ge,!0);a(Ge);var Dt=l(Ge,2);Ne(Dt,"title",Wa),a(Ve);var Pt=l(Ve,2),ua=r(Pt);{var _a=H=>{Se(H,{variant:"ghost",$$events:{click:ra},children:(B,ce)=>{pe();var we=Ce();we.nodeValue=Ja,o(B,we)},$$slots:{default:!0}})},pa=H=>{var B=Fe(),ce=re(B);{var we=oe=>{var be=Ns(),P=re(be);Se(P,{variant:"ghost",get disabled(){return e(Ze)},$$events:{click:It},children:(A,Y)=>{pe();var X=Ce();E(()=>b(X,e(Ze)?Kt:Ht)),o(A,X)},$$slots:{default:!0}});var c=l(P,2);{var Z=A=>{Se(A,{$$events:{click:ta},children:(Y,X)=>{pe();var ee=Ce();ee.nodeValue=hs,o(Y,ee)},$$slots:{default:!0}})};m(c,A=>{e(s).entries.length>0&&A(Z)})}o(oe,be)},Re=oe=>{var be=Fe(),P=re(be);{var c=A=>{var Y=Ds(),X=re(Y);Se(X,{variant:"ghost",$$events:{click:aa},children:($,z)=>{pe();var O=Ce();O.nodeValue=Es,o($,O)},$$slots:{default:!0}});var ee=l(X,2);Se(ee,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:($,z)=>{pe();var O=Ce();O.nodeValue=Xt,o($,O)},$$slots:{default:!0}});var C=l(ee,2);Se(C,{$$events:{click:sa},children:($,z)=>{pe();var O=Ce();O.nodeValue=Ls,o($,O)},$$slots:{default:!0}}),o(A,Y)},Z=A=>{Se(A,{variant:"ghost",$$events:{click:()=>i(le,"build")},children:(Y,X)=>{pe();var ee=Ce();ee.nodeValue=Xt,o(Y,ee)},$$slots:{default:!0}})};m(P,A=>{e(s).status==="in-progress"?A(c):A(Z,!1)},!0)}o(oe,be)};m(ce,oe=>{e(le)==="build"?oe(we):oe(Re,!1)},!0)}o(H,B)};m(ua,H=>{e(K)?H(_a):H(pa,!1)})}a(Pt),a(ge);var _t=l(ge,2),st=r(_t);st.textContent=Ya;var rt=l(st,2),Mt=r(rt);Mt.nodeValue=`${za} `;var ma=l(Mt);{var xa=H=>{var B=Ps(),ce=r(B);a(B),E(()=>b(ce,`${e(ot)??""}/${e(ke)??""}`)),o(H,B)};m(ma,H=>{e(ke)>0&&H(xa)})}a(rt),a(_t);var fa=l(_t,2);{var ga=H=>{var B=Zs(),ce=r(B),we=r(ce),Re=r(we);Re.textContent=qa;var oe=l(Re,2),be=r(oe,!0);a(oe);var P=l(oe,2);{var c=C=>{var $=Ms();$.textContent=es,o(C,$)};m(P,C=>{e(K)&&C(c)})}a(we);var Z=l(we,2);{var A=C=>{Va(C,{message:ts,size:"sm"})},Y=C=>{var $=js(),z=re($);Be(z,4,()=>[["order","Order"],["name","Name"],["priority","Priority"],["status","Status"],["suite","Suite"]],gt,(J,w)=>{let T=()=>w[0],he=()=>w[1];var ne=Vs(),N=r(ne,!0),S=l(N);{var Ee=ve=>{var de=Us(),Ae=r(de,!0);a(de),E(()=>b(Ae,e(I).order==="asc"?" ↑":" ↓")),o(ve,de)};m(S,ve=>{e(I).by===T()&&ve(Ee)})}a(ne),E(()=>{k(ne,"active",e(I).by===T()),b(N,he())}),R("click",ne,()=>Jt(T())),o(J,ne)}),a(z);var O=l(z,2);Be(O,5,()=>e(je),J=>J.id,(J,w)=>{var T=Xs(),he=r(T);{var ne=n=>{var d=Gs();o(n,d)};m(he,n=>{!e(K)&&e(I).by==="order"&&n(ne)})}var N=l(he,2),S=r(N),Ee=r(S);ht(Ee,{get id(){return e(w).case.displayId}});var ve=l(Ee,2);jt(ve,{get priority(){return e(w).case.priority}}),a(S);var de=l(S,2),Ae=r(de,!0);a(de);var Ke=l(de,2),He=r(Ke,!0);a(Ke),a(N);var p=l(N,2);{var L=n=>{lt(n)},te=n=>{var d=Hs();$a(d,()=>e(w).assignedToId??"");var x,h=r(d);h.value=((h.__value="")==null,""),h.textContent=as;var j=l(h);Be(j,1,()=>e(At),gt,(U,D)=>{var y=Ks(),ye={},ue=r(y,!0);a(y),E(()=>{ye!==(ye=e(D).id)&&(y.value=(y.__value=e(D).id)==null?"":e(D).id),b(ue,e(D).name)}),o(U,y)}),a(d),E(()=>{x!==(x=e(w).assignedToId??"")&&(d.value=(d.__value=e(w).assignedToId??"")==null?"":e(w).assignedToId??"",Oa(d,e(w).assignedToId??"")),d.disabled=e(et)===e(w).id}),R("change",d,U=>kt(e(w).id,U.target.value)),o(n,d)};m(p,n=>{e(w).case.isAutomated?n(L):n(te,!1)})}var F=l(p,2);{var M=n=>{var d=Fs();R("click",d,()=>Zt(e(w).id)),o(n,d)};m(F,n=>{e(K)||n(M)})}a(T),E(()=>{var n;Ne(T,"draggable",!e(K)&&e(I).by==="order"),k(T,"entry-locked",e(K)),k(T,"dragging",e(Me)===e(w).id),k(T,"drag-over",e(tt)===e(w).id),b(Ae,e(w).case.title),b(He,((n=e(w).case.suite)==null?void 0:n.name)??"")}),R("dragstart",T,function(...n){var d;(d=e(K)||e(I).by!=="order"?null:x=>la(x,e(w).id))==null||d.apply(this,n)}),R("dragover",T,function(...n){var d;(d=e(K)||e(I).by!=="order"?null:x=>ia(x,e(w).id))==null||d.apply(this,n)}),R("dragleave",T,function(...n){var d;(d=e(K)||e(I).by!=="order"?null:()=>i(tt,null))==null||d.apply(this,n)}),R("drop",T,function(...n){var d;(d=e(K)||e(I).by!=="order"?null:x=>oa(x,e(w).id))==null||d.apply(this,n)}),o(J,T)}),a(O),o(C,$)};m(Z,C=>{e(s).entries.length===0?C(A):C(Y,!1)})}a(ce);var X=l(ce,2);{var ee=C=>{var $=Qs(),z=r($),O=r(z);O.textContent=ss;var J=l(O,2);Gt(J),Ne(J,"placeholder",rs),a(z);var w=l(z,2),T=r(w);Be(T,1,()=>e(it),N=>N.id,(N,S)=>{var Ee=Js(),ve=r(Ee),de=r(ve),Ae=l(de,2),Ke=r(Ae,!0);a(Ae);var He=l(Ae,2),p=r(He,!0);a(He),a(ve);var L=l(ve,2);{var te=M=>{var n=Ys();Be(n,5,()=>e(S).cases,d=>d.id,(d,x)=>{var h=Ws(),j=r(h);ht(j,{get id(){return e(x).displayId},small:!0});var U=l(j,2),D=r(U,!0);a(U);var y=l(U,2);jt(y,{get priority(){return e(x).priority},small:!0});var ye=l(y,2);{var ue=_e=>{lt(_e)};m(ye,_e=>{e(x).isAutomated&&_e(ue)})}a(h),E(()=>b(D,e(x).title)),R("click",h,()=>Qt(e(x))),o(d,h)}),a(n),xt(3,n,()=>ft,()=>({y:-4,duration:120})),o(M,n)},F=M=>{var n=Fe(),d=re(n);{var x=h=>{var j=zs(),U=r(j,!0);a(j),E(()=>b(U,e(ie)?Ts:e(S)._totalCases===0?As:Cs)),o(h,j)};m(d,h=>{e(Te).has(e(S).id)&&h(x)},!0)}o(M,n)};m(L,M=>{var n;e(Te).has(e(S).id)&&((n=e(S).cases)==null?void 0:n.length)>0?M(te):M(F,!1)})}a(Ee),E(M=>{var n;k(de,"open",M),b(Ke,e(S).name),b(p,((n=e(S).cases)==null?void 0:n.length)??0)},[()=>e(Te).has(e(S).id)],Xe),R("click",ve,()=>{e(Te).has(e(S).id)?e(Te).delete(e(S).id):e(Te).add(e(S).id),i(Te,new Set(e(Te)))}),o(N,Ee)});var he=l(T,2);{var ne=N=>{var S=qs();S.textContent=Ss,o(N,S)};m(he,N=>{e(it).length===0&&N(ne)})}a(w),a($),Ft(J,()=>e(ie),N=>i(ie,N)),o(C,$)};m(X,C=>{e(K)||C(ee)})}a(B),E(()=>{k(B,"locked-workspace",e(K)),b(be,e(s).entries.length)}),xt(3,B,()=>ft,()=>({y:4,duration:150})),o(H,B)},wa=H=>{var B=pr(),ce=r(B);{var we=P=>{var c=er();c.textContent=ls,o(P,c)};m(ce,P=>{e(s).status!=="in-progress"&&!e(K)&&P(we)})}var Re=l(ce,2);{var oe=P=>{var c=tr(),Z=r(c),A=r(Z),Y=r(A,!0);a(A);var X=l(A,2),ee=r(X,!0);a(X);var C=l(X,2),$=r(C,!0);a(C),a(Z);var z=l(Z,2),O=r(z),J=l(O,2);a(z),a(c),E((w,T,he)=>{b(Y,w),b(ee,T),b($,he),Ne(O,"style",`width: ${e(nt)/e(ke)*100}%`),Ne(J,"style",`width: ${e(vt)/e(ke)*100}%`)},[()=>is(e(nt)),()=>os(e(vt)),()=>ns(e(ke)-e(ot))],Xe),o(P,c)};m(Re,P=>{e(ke)>0&&P(oe)})}var be=l(Re,2);Be(be,5,()=>e(s).entries,P=>P.id,(P,c)=>{var Z=_r(),A=r(Z),Y=r(A),X=r(Y);{var ee=p=>{var L=ar();Ne(L,"title",Qa);var te=r(L);a(L),E(F=>k(te,"open",F),[()=>e(Ie).has(e(c).id)],Xe),R("click",L,()=>qt(e(c).id)),o(p,L)};m(X,p=>{var L;((L=e(c).case.steps)==null?void 0:L.length)>0&&p(ee)})}var C=l(X,2);ht(C,{get id(){return e(c).case.displayId}});var $=l(C,2);{var z=p=>{lt(p)};m($,p=>{e(c).case.isAutomated&&p(z)})}var O=l($,2),J=r(O),w=r(J,!0);a(J);var T=l(J,2),he=r(T,!0);a(T),a(O),a(Y);var ne=l(Y,2),N=r(ne);{var S=p=>{var L=sr(),te=re(L),F=r(te);lt(F),a(te),pe(2),o(p,L)},Ee=p=>{var L=Fe(),te=re(L);{var F=M=>{var n=ir(),d=re(n),x=r(d);{var h=D=>{var y=rr(),ye=r(y,!0);a(y),E(()=>b(ye,e(c).assignedTo.name)),o(D,y)};m(x,D=>{e(c).assignedTo&&D(h)})}var j=l(x,2);{var U=D=>{var y=lr();y.textContent=gs,E(()=>y.disabled=e(et)===e(c).id),R("click",y,()=>kt(e(c).id,e(Pe))),o(D,y)};m(j,D=>{var y;!e(K)&&((y=e(c).assignedTo)==null?void 0:y.id)!==e(Pe)&&D(U)})}a(d),pe(2),o(M,n)};m(te,M=>{var n;(e(c).assignedTo||!e(K)&&((n=e(c).assignedTo)==null?void 0:n.id)!==e(Pe))&&M(F)},!0)}o(p,L)};m(N,p=>{e(c).case.isAutomated?p(S):p(Ee,!1)})}var ve=l(N,2);{var de=p=>{Wt(p,{get status(){return e(c).status}})},Ae=p=>{var L=Fe(),te=re(L);{var F=n=>{var d=or(),x=r(d);x.textContent=vs;var h=l(x,2);h.textContent=ds;var j=l(h,2);j.textContent=cs;var U=l(j,2);U.textContent=us;var D=l(U,2);D.textContent=_s,a(d),E(()=>k(x,"active",e(c).status==="in-progress")),R("click",x,()=>Ue(e(c),"in-progress")),R("click",h,()=>Ue(e(c),"pass")),R("click",j,()=>Ue(e(c),"fail")),R("click",U,()=>Ue(e(c),"blocked")),R("click",D,()=>Ue(e(c),"skip")),o(n,d)},M=n=>{var d=nr(),x=r(d);Wt(x,{get status(){return e(c).status}});var h=l(x,2);Ne(h,"title",ps),h.textContent=ms,a(d),R("click",h,()=>Ue(e(c),"pending")),o(n,d)};m(te,n=>{e(c).status==="pending"||e(c).status==="in-progress"?n(F):n(M,!1)},!0)}o(p,L)};m(ve,p=>{e(K)||e(s).status!=="in-progress"?p(de):p(Ae,!1)})}a(ne),a(A);var Ke=l(A,2);{var He=p=>{var L=ur();Be(L,5,()=>e(c).case.steps,gt,(te,F,M)=>{var n=cr(),d=r(n);d.textContent=M+1;var x=l(d,2),h=r(x),j=r(h,!0);a(h);var U=l(h,2);{var D=ue=>{var _e=vr(),pt=r(_e,!0);a(_e),E(mt=>b(pt,mt),[()=>xs(e(F).testData)],Xe),o(ue,_e)};m(U,ue=>{e(F).testData&&ue(D)})}var y=l(U,2);{var ye=ue=>{var _e=dr(),pt=r(_e,!0);a(_e),E(mt=>b(pt,mt),[()=>fs(e(F).expectedOutput)],Xe),o(ue,_e)};m(y,ue=>{e(F).expectedOutput&&ue(ye)})}a(x),a(n),E(()=>b(j,e(F).action)),o(te,n)}),a(L),o(p,L)};m(Ke,p=>{e(c).case.steps&&e(c).case.steps.length>0&&e(Ie).has(e(c).id)&&p(He)})}a(Z),E(()=>{var p;k(Z,"expanded",e(ct)===e(c).id),b(w,e(c).case.title),b(he,((p=e(c).case.suite)==null?void 0:p.name)??"")}),o(P,Z)}),a(be),a(B),xt(3,B,()=>ft,()=>({y:4,duration:150})),o(H,B)};m(fa,H=>{e(le)==="build"?H(ga):H(wa,!1)})}E(()=>{b($e,e(s).title),Aa(Ge,`run-status-badge ${e(s).status??""} svelte-1mxlw2t`),b(Oe,e(s).status),k(st,"active",e(le)==="build"),k(rt,"active",e(le)==="execute")}),R("click",Dt,()=>{i(Ye,{title:e(s).title}),i(We,!0)}),R("click",st,()=>i(le,"build")),R("click",rt,()=>i(le,"execute")),o(se,fe)};m(_,se=>{e(s)&&se(g)},!0)}o(t,v)};m(va,t=>{e(Ct)?t(da):t(ca,!1)})}E(()=>{var t;return b(na,((t=e(s))==null?void 0:t.title)??"…")}),o(Le,$t),Tt(),Q()}export{Rr as component};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{h as vs,a as i,c as Fe,t as o,s as c,r as ta,b as ge,e as Q}from"../chunks/CfkUW1vA.js";import{i as ns}from"../chunks/C00jnSU2.js";import{p as ds,m as p,o as cs,s as r,l as qe,b as _s,f as W,c as ps,t as f,x as Le,g as e,$ as xs,y as Ie,d as l,j as a,k as t,v as Qe,n as ue}from"../chunks/CeH-RgMb.js";import{i as x,s as us,a as fs}from"../chunks/CegSvdD-.js";import{e as ke,i as Ke,s as yt,t as Ct,a as Ht,f as Ft}from"../chunks/Beula-TH.js";import{b as ms,s as K,e as ct,D as hs,f as Es,r as Ze,g as bs,C as Tt,h as ga,i as ya,L as Ca,j as gs,k as Ta,l as ys,m as Cs}from"../chunks/DuAVKaL3.js";import{b as Oe}from"../chunks/BAvTKHxT.js";import{T as Ts,B as ye,b as zt}from"../chunks/CZWchtW8.js";import{s as Ls}from"../chunks/Bfc47y5P.js";import{b as As}from"../chunks/B00vxw57.js";import{p as Ss}from"../chunks/d2K3c8Kx.js";import{h as $s,i as Is,j as ks,k as Os,u as Ds,l as La,m as ws,n as Ps}from"../chunks/Dl-F6VCo.js";import{E as Bs}from"../chunks/Cfmt4_tJ.js";import{C as Ms}from"../chunks/DAmOMhaf.js";import{M as aa}from"../chunks/DgQy0SB2.js";import{P as Rs}from"../chunks/DWzEJYIF.js";import{V as Ns,W as Us,X as Vs,T as Aa,Y as Hs,f as sa,Z as Fs,h as jt,_ as zs,d as Sa,$ as js,a0 as Ys,a1 as Gs,a2 as Xs,a3 as Js,a4 as Ws,a5 as qs,a6 as Qs,w as Ks,a7 as Zs,a8 as er,a9 as tr,aa as ar,ab as sr,ac as rr,ad as lr,ae as ir,E as or,af as $a,ag as vr,ah as nr,ai as dr,aj as cr,ak as _r,al as Ia,am as pr,an as xr,ao as ur,ap as fr,aq as mr,ar as hr,as as Er,at as br,au as gr,av as yr,aw as Cr,ax as Tr,ay as Lr,az as Ar,aA as Sr,aB as ka,aC as $r,aD as Oa,aE as Ir,aF as kr,aG as Or,aH as Dr,aI as wr,aJ as Pr}from"../chunks/2-KCkWZO.js";var Br=o(" <strong> </strong> ",1),Mr=o("<option> </option>"),Rr=o('<p class="form-error svelte-1x8emxr"> </p>'),Nr=o('<div class="form-fields svelte-1x8emxr"><div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="tc-title"></label> <input id="tc-title" type="text" class="field-input"></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="tc-desc"></label> <textarea id="tc-desc" class="field-input field-textarea svelte-1x8emxr" rows="2"></textarea></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="tc-prio"></label> <select id="tc-prio" class="field-input"></select></div> <!> <div class="modal-actions svelte-1x8emxr"><!> <!></div></div>'),Ur=o("<option> </option>"),Vr=o('<div class="form-fields svelte-1x8emxr"><div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="es-name"></label> <input id="es-name" type="text" class="field-input"></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="es-desc"></label> <textarea id="es-desc" class="field-input field-textarea svelte-1x8emxr" rows="2"></textarea></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="es-prio"></label> <select id="es-prio" class="field-input"></select></div> <div class="modal-actions svelte-1x8emxr"><!> <!></div></div>'),Hr=o('<p class="move-case-subtitle svelte-1x8emxr"> </p>'),Fr=o('<p class="form-error svelte-1x8emxr"></p>'),zr=o("<option> </option>"),jr=o('<div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="move-suite"></label> <select id="move-suite" class="field-input"></select></div>'),Yr=o('<div class="form-fields svelte-1x8emxr"><!> <!> <div class="modal-actions svelte-1x8emxr"><!> <!></div></div>'),Gr=o('<div class="loading-state svelte-1x8emxr"></div>'),Xr=o('<p class="suite-desc svelte-1x8emxr"> </p>'),Jr=o('<button class="case-search-clear svelte-1x8emxr"><svg width="10" height="10" viewBox="0 0 14 14" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"><path d="M1 1l12 12M13 1L1 13"></path></svg></button>'),Wr=o('<div class="case-search svelte-1x8emxr"><svg class="case-search-icon svelte-1x8emxr" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg> <input type="search" class="case-search-input svelte-1x8emxr"> <!></div>'),qr=o('<span class="case-sort-dir svelte-1x8emxr"> </span>'),Qr=o('<button class="case-sort-chip svelte-1x8emxr"> <!></button>'),Kr=o('<div class="case-sort-bar svelte-1x8emxr"></div>'),Zr=o('<div class="case-no-results svelte-1x8emxr"> <strong> </strong>"</div>'),el=o('<span class="auto-badge svelte-1x8emxr"></span>'),tl=o('<div class="case-row svelte-1x8emxr" role="button" tabindex="0"><div class="case-row-top svelte-1x8emxr"><span class="id-chip small svelte-1x8emxr"> </span> <span> </span> <!> <div class="case-row-actions svelte-1x8emxr"><button class="icon-btn small svelte-1x8emxr"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z"></path></svg></button> <button class="icon-btn danger small svelte-1x8emxr"><svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div></div> <p class="case-title svelte-1x8emxr"> </p> <span class="case-steps svelte-1x8emxr"> </span></div>'),al=o('<div class="cases-pagination svelte-1x8emxr"><!></div>'),sl=o('<div class="case-list svelte-1x8emxr"></div> <!>',1),rl=o('<div class="detail-loading svelte-1x8emxr"></div>'),ll=o('<span class="auto-badge svelte-1x8emxr"></span>'),il=o('<button class="icon-btn svelte-1x8emxr"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7z"></path></svg></button> <button class="icon-btn svelte-1x8emxr"><svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></button>',1),ol=o("<option> </option>"),vl=o('<div class="edit-case-form svelte-1x8emxr"><div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="edit-title"></label> <input id="edit-title" type="text" class="field-input"></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="edit-desc"></label> <textarea id="edit-desc" class="field-input field-textarea svelte-1x8emxr" rows="2"></textarea></div> <div class="field svelte-1x8emxr"><label class="field-label svelte-1x8emxr" for="edit-prio"></label> <select id="edit-prio" class="field-input"></select></div> <div class="modal-actions svelte-1x8emxr"><!> <!></div></div>'),nl=o('<p class="detail-case-desc svelte-1x8emxr"> </p>'),dl=o("<span></span>"),cl=o('<div class="case-history-bars svelte-1x8emxr"></div>'),_l=o('<h2 class="detail-case-title svelte-1x8emxr"> </h2> <!> <p class="detail-meta svelte-1x8emxr"> </p> <!>',1),pl=o("<!> <!>",1),xl=o('<button class="add-step-btn svelte-1x8emxr"></button>'),ul=o('<p class="no-steps svelte-1x8emxr"></p>'),fl=o('<div class="step-editor-row svelte-1x8emxr"><span class="step-num svelte-1x8emxr"></span> <div class="step-editor-fields svelte-1x8emxr"><div class="step-field svelte-1x8emxr"><label class="step-field-label svelte-1x8emxr"></label> <input type="text" class="field-input"></div> <div class="step-field svelte-1x8emxr"><label class="step-field-label svelte-1x8emxr"></label> <input type="text" class="field-input"></div> <div class="step-field svelte-1x8emxr"><label class="step-field-label svelte-1x8emxr"></label> <input type="text" class="field-input"></div></div> <button class="icon-btn danger small svelte-1x8emxr"><svg width="11" height="11" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div>'),ml=o('<div class="steps-editor svelte-1x8emxr"><!></div>'),hl=o('<div class="steps-table-row svelte-1x8emxr"><span class="col-num svelte-1x8emxr"></span> <span class="col-action"> </span> <span class="col-data"> </span> <span class="col-expected"> </span></div>'),El=o('<div class="steps-table svelte-1x8emxr"><div class="steps-table-head svelte-1x8emxr"><span class="col-num svelte-1x8emxr">#</span> <span class="col-action"></span> <span class="col-data"></span> <span class="col-expected"></span></div> <!></div>'),bl=o('<p class="no-steps svelte-1x8emxr"></p>'),gl=o('<div class="steps-section svelte-1x8emxr"><div class="steps-toolbar svelte-1x8emxr"><!> <!></div> <!></div>'),yl=o('<p class="no-steps svelte-1x8emxr"></p>'),Cl=o('<a target="_blank" rel="noopener noreferrer" class="history-source history-link svelte-1x8emxr"></a>'),Tl=o('<span class="history-source history-missing svelte-1x8emxr"></span>'),Ll=o('<a target="_blank" rel="noopener noreferrer" class="history-source history-link svelte-1x8emxr"> </a>'),Al=o('<span class="history-source history-missing svelte-1x8emxr"></span>'),Sl=o('<p class="history-notes svelte-1x8emxr"> </p>'),$l=o('<div class="history-row svelte-1x8emxr"><span> </span> <div class="history-info svelte-1x8emxr"><!> <span class="history-by svelte-1x8emxr"> </span> <span class="history-date svelte-1x8emxr"> </span></div> <!></div>'),Il=o('<div class="history-list svelte-1x8emxr"></div>'),kl=o('<div class="history-section svelte-1x8emxr"><!></div>'),Ol=o('<div class="detail-header svelte-1x8emxr"><div class="detail-title-row svelte-1x8emxr"><span class="id-chip large svelte-1x8emxr"> </span> <span> </span> <!> <div class="detail-header-actions svelte-1x8emxr"><!> <button class="icon-btn svelte-1x8emxr"><svg width="13" height="13" viewBox="0 0 14 14" fill="none"><path d="M1 1l12 12M13 1L1 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button></div></div> <!></div> <div class="detail-tabs svelte-1x8emxr"><button class="detail-tab svelte-1x8emxr"></button> <button class="detail-tab svelte-1x8emxr"></button></div> <!>',1),Dl=o('<div class="detail-panel svelte-1x8emxr"><!></div>'),wl=o('<div class="breadcrumb svelte-1x8emxr"><a href="/test-repository" class="bc-link svelte-1x8emxr"></a> <span class="bc-sep svelte-1x8emxr">›</span> <span class="bc-current svelte-1x8emxr"> </span></div> <div class="suite-header svelte-1x8emxr"><div class="suite-title-row svelte-1x8emxr"><span class="id-chip large svelte-1x8emxr"> </span> <span> </span> <h1 class="suite-title svelte-1x8emxr"> </h1> <button class="icon-btn svelte-1x8emxr"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path><path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path></svg></button></div> <!> <div class="suite-meta svelte-1x8emxr"><span> </span> <span class="meta-sep svelte-1x8emxr">·</span> <span> </span></div></div> <div class="workspace svelte-1x8emxr"><div class="cases-panel svelte-1x8emxr"><div class="panel-toolbar svelte-1x8emxr"><h2 class="panel-title svelte-1x8emxr"></h2> <!></div> <!> <!> <!></div> <!></div>',1),Pl=o("<!> <!> <!> <!> <!> <!>",1);function Kl(Da,ra){ds(ra,!1);const[wa,Pa]=us(),Ba=()=>fs(Ss,"$page",wa),et=p(),_t=p(),Lt=p(),pt=p(),Yt=p(),la=p(),At=Ba().params.id,Gt=["Critical","High","Medium","Low"];let d=p(null),ia=p(!0),Xt=p(null),xt=p(!1),ie=p({title:"",description:"",priority:"Medium"}),St=p(!1),tt=p(""),n=p(null),ut=p(!1),ze=p(!1),fe=p({}),$t=p(!1),je=p(!1),oe=p([]),It=p(!1),at=p(!1),Ye=p(null),kt=p(!1),Ot=p([]),ft=p(!1),Ae=p(null),Ge=p(""),Dt=p(!1),De=p(""),Xe=p(1),Z=p((()=>{try{const s=sessionStorage.getItem("plum:repo:cases:sort");if(s)return JSON.parse(s)}catch{}return{by:"createdAt",order:"asc"}})());const oa={Critical:0,High:1,Medium:2,Low:3};function Ma(s){e(Z).by===s?Ie(Z,e(Z).order=e(Z).order==="asc"?"desc":"asc"):r(Z,{by:s,order:"asc"});try{sessionStorage.setItem("plum:repo:cases:sort",JSON.stringify(e(Z)))}catch{}}let mt=p(!1),me=p({}),wt=p(!1);function ve(s,v){r(Xt,{type:s,message:v}),setTimeout(()=>r(Xt,null),ms)}cs(async()=>{try{r(d,await $s(At))}catch{ve("error",Gs)}finally{r(ia,!1)}try{r(Ot,await Is())}catch{}});async function Ra(){if(!e(ie).title.trim()){r(tt,Ks);return}r(tt,""),r(St,!0);try{const s=await Os({suiteId:At,...e(ie)});r(d,{...e(d),cases:[...e(d).cases,s],_count:{cases:e(d)._count.cases+1}}),r(Xe,Math.ceil(e(d).cases.length/ct)),r(xt,!1),r(ie,{title:"",description:"",priority:"Medium"}),ve("success",Zs(s.displayId))}catch(s){r(tt,s.message)}finally{r(St,!1)}}async function va(s){r(n,null),r(ut,!0),r(at,!1),r(ze,!1),r(je,!1);try{r(n,await ws(s.id)),r(oe,(e(n).steps??[]).map(v=>({...v})))}catch{ve("error",xr)}finally{r(ut,!1)}}function Na(){r(fe,{title:e(n).title,description:e(n).description,priority:e(n).priority}),r(ze,!0)}async function Ua(){r($t,!0);try{const s=await La(e(n).id,e(fe));r(n,{...e(n),...s}),r(d,{...e(d),cases:e(d).cases.map(v=>v.id===e(n).id?{...v,...s}:v)}),r(ze,!1),ve("success",hr)}catch(s){ve("error",s.message)}finally{r($t,!1)}}function Va(){r(oe,[...e(oe),{action:"",testData:"",expectedOutput:""}])}function Ha(s){r(oe,e(oe).filter((v,m)=>m!==s))}async function Fa(){r(It,!0);try{const s=await Ps(e(n).id,e(oe));r(n,{...e(n),steps:s}),r(oe,s.map(v=>({...v}))),r(je,!1),ve("success",Tr)}catch(s){ve("error",s.message)}finally{r(It,!1)}}async function za(s,v){var m;try{await ks(s),r(d,{...e(d),cases:e(d).cases.filter(F=>F.id!==s),_count:{cases:e(d)._count.cases-1}}),((m=e(n))==null?void 0:m.id)===s&&r(n,null),ve("success",Ys(v))}catch{ve("error",Xs)}r(Ye,null),r(kt,!1)}function na(s){var v;r(Ae,s),r(Ge,((v=e(et)[0])==null?void 0:v.id)??""),r(ft,!0)}async function ja(){var s;if(!(!e(Ae)||!e(Ge))){r(Dt,!0);try{await La(e(Ae).id,{suiteId:e(Ge)});const v=e(Ot).find(m=>m.id===e(Ge));r(d,{...e(d),cases:e(d).cases.filter(m=>m.id!==e(Ae).id),_count:{cases:e(d)._count.cases-1}}),((s=e(n))==null?void 0:s.id)===e(Ae).id&&r(n,null),ve("success",tr(e(Ae).displayId,(v==null?void 0:v.name)??"")),r(ft,!1),r(Ae,null)}catch(v){ve("error",v.message??ar)}finally{r(Dt,!1)}}}async function Ya(){r(wt,!0);try{const s=await Ds(At,e(me));r(d,{...e(d),...s}),r(mt,!1),ve("success",er)}catch(s){ve("error",s.message)}finally{r(wt,!1)}}function Jt(s){return(s==null?void 0:s.toLowerCase())??"medium"}function da(s){return s==="pass"?"pass":s==="fail"?"fail":s==="blocked"?"warn":"muted"}function Ga(s){return!s||s.length===0?[]:s.slice(0,Cs).slice().reverse()}qe(()=>e(Ot),()=>{r(et,e(Ot).filter(s=>s.id!==At))}),qe(()=>e(De),()=>{r(_t,e(De).trim().toLowerCase())}),qe(()=>(e(d),e(_t)),()=>{var s;r(Lt,(s=e(d))!=null&&s.cases?e(d).cases.filter(v=>!e(_t)||v.displayId.toLowerCase().includes(e(_t))||v.title.toLowerCase().includes(e(_t))):[])}),qe(()=>(e(Lt),e(Z)),()=>{r(pt,[...e(Lt)].sort((s,v)=>{const m=e(Z).order==="asc"?1:-1;return e(Z).by==="displayId"?m*s.displayId.localeCompare(v.displayId):e(Z).by==="name"?m*s.title.localeCompare(v.title):e(Z).by==="priority"?m*((oa[s.priority]??4)-(oa[v.priority]??4)):m*(new Date(s.createdAt)-new Date(v.createdAt))}))}),qe(()=>(e(pt),ct),()=>{r(Yt,Math.ceil(e(pt).length/ct))}),qe(()=>e(De),()=>{e(De)&&r(Xe,1)}),qe(()=>(e(pt),e(Xe),ct),()=>{r(la,e(pt).slice((e(Xe)-1)*ct,e(Xe)*ct))}),_s(),ns();var ca=Pl();vs(s=>{f(v=>xs.title=v,[()=>Ns(e(d))],Le)});var _a=W(ca);Ts(_a,{get toast(){return e(Xt)}});var pa=a(_a,2);Ms(pa,{title:Us,get open(){return e(kt)},set open(s){r(kt,s)},$$events:{confirm:()=>{var s,v;return za((s=e(Ye))==null?void 0:s.id,(v=e(Ye))==null?void 0:v.displayId)}},children:(s,v)=>{var m=Fe(),F=W(m);{var ne=z=>{var j=Br(),de=W(j);de.nodeValue=`${hs} `;var Y=a(de),ee=l(Y);t(Y);var ce=a(Y,1,!0);ce.nodeValue=Es,f(()=>c(ee,`${e(Ye).displayId??""} — ${e(Ye).title??""}`)),i(z,j)};x(F,z=>{e(Ye)&&z(ne)})}i(s,m)},$$slots:{default:!0},$$legacy:!0});var xa=a(pa,2);aa(xa,{title:Vs,get open(){return e(xt)},set open(s){r(xt,s)},children:(s,v)=>{var m=Nr(),F=l(m),ne=l(F);ne.textContent=Aa;var z=a(ne,2);Ze(z),K(z,"placeholder",Hs),t(F);var j=a(F,2),de=l(j);de.textContent=sa;var Y=a(de,2);ta(Y),K(Y,"placeholder",Fs),t(j);var ee=a(j,2),ce=l(ee);ce.textContent=jt;var _e=a(ce,2);f(()=>{e(ie),Qe(()=>{})}),ke(_e,5,()=>Gt,Ke,(_,$)=>{var O=Mr(),st={},Pt=l(O,!0);t(O),f(()=>{st!==(st=e($))&&(O.value=(O.__value=e($))==null?"":e($)),c(Pt,e($))}),i(_,O)}),t(_e),t(ee);var C=a(ee,2);{var N=_=>{var $=Rr(),O=l($,!0);t($),f(()=>c(O,e(tt))),i(_,$)};x(C,_=>{e(tt)&&_(N)})}var P=a(C,2),S=l(P);ye(S,{get disabled(){return e(St)},$$events:{click:Ra},children:(_,$)=>{ue();var O=ge();f(()=>c(O,e(St)?bs:Js)),i(_,O)},$$slots:{default:!0}});var G=a(S,2);ye(G,{variant:"ghost",$$events:{click:()=>{r(xt,!1),r(tt,"")}},children:(_,$)=>{ue();var O=ge();O.nodeValue=Tt,i(_,O)},$$slots:{default:!0}}),t(P),t(m),Oe(z,()=>e(ie).title,_=>Ie(ie,e(ie).title=_)),Oe(Y,()=>e(ie).description,_=>Ie(ie,e(ie).description=_)),zt(_e,()=>e(ie).priority,_=>Ie(ie,e(ie).priority=_)),i(s,m)},$$slots:{default:!0},$$legacy:!0});var ua=a(xa,2);aa(ua,{title:zs,get open(){return e(mt)},set open(s){r(mt,s)},children:(s,v)=>{var m=Vr(),F=l(m),ne=l(F);ne.textContent=Sa;var z=a(ne,2);Ze(z),t(F);var j=a(F,2),de=l(j);de.textContent=sa;var Y=a(de,2);ta(Y),t(j);var ee=a(j,2),ce=l(ee);ce.textContent=jt;var _e=a(ce,2);f(()=>{e(me),Qe(()=>{})}),ke(_e,5,()=>Gt,Ke,(S,G)=>{var _=Ur(),$={},O=l(_,!0);t(_),f(()=>{$!==($=e(G))&&(_.value=(_.__value=e(G))==null?"":e(G)),c(O,e(G))}),i(S,_)}),t(_e),t(ee);var C=a(ee,2),N=l(C);ye(N,{get disabled(){return e(wt)},$$events:{click:Ya},children:(S,G)=>{ue();var _=ge();f(()=>c(_,e(wt)?ga:ya)),i(S,_)},$$slots:{default:!0}});var P=a(N,2);ye(P,{variant:"ghost",$$events:{click:()=>r(mt,!1)},children:(S,G)=>{ue();var _=ge();_.nodeValue=Tt,i(S,_)},$$slots:{default:!0}}),t(C),t(m),Oe(z,()=>e(me).name,S=>Ie(me,e(me).name=S)),Oe(Y,()=>e(me).description,S=>Ie(me,e(me).description=S)),zt(_e,()=>e(me).priority,S=>Ie(me,e(me).priority=S)),i(s,m)},$$slots:{default:!0},$$legacy:!0});var fa=a(ua,2);aa(fa,{title:js,get open(){return e(ft)},set open(s){r(ft,s)},children:(s,v)=>{var m=Yr(),F=l(m);{var ne=C=>{var N=Hr(),P=l(N);t(N),f(()=>c(P,`${e(Ae).displayId??""} — ${e(Ae).title??""}`)),i(C,N)};x(F,C=>{e(Ae)&&C(ne)})}var z=a(F,2);{var j=C=>{var N=Fr();N.textContent=qs,i(C,N)},de=C=>{var N=jr(),P=l(N);P.textContent=Qs;var S=a(P,2);f(()=>{e(Ge),Qe(()=>{e(et)})}),ke(S,5,()=>e(et),Ke,(G,_)=>{var $=zr(),O={},st=l($);t($),f(()=>{O!==(O=e(_).id)&&($.value=($.__value=e(_).id)==null?"":e(_).id),c(st,`${e(_).displayId??""} — ${e(_).name??""}`)}),i(G,$)}),t(S),t(N),zt(S,()=>e(Ge),G=>r(Ge,G)),i(C,N)};x(z,C=>{e(et).length===0?C(j):C(de,!1)})}var Y=a(z,2),ee=l(Y);const ce=Le(()=>e(Dt)||e(et).length===0);ye(ee,{get disabled(){return e(ce)},$$events:{click:ja},children:(C,N)=>{ue();var P=ge();f(S=>c(P,S),[()=>Ws(e(Dt))],Le),i(C,P)},$$slots:{default:!0}});var _e=a(ee,2);ye(_e,{variant:"ghost",$$events:{click:()=>r(ft,!1)},children:(C,N)=>{ue();var P=ge();P.nodeValue=Tt,i(C,P)},$$slots:{default:!0}}),t(Y),t(m),i(s,m)},$$slots:{default:!0},$$legacy:!0});var Xa=a(fa,2);{var Ja=s=>{var v=Gr();v.textContent=Ca,i(s,v)},Wa=s=>{var v=Fe(),m=W(v);{var F=ne=>{var z=wl(),j=W(z),de=l(j);de.textContent=sr;var Y=a(de,4),ee=l(Y);t(Y),t(j);var ce=a(j,2),_e=l(ce),C=l(_e),N=l(C,!0);t(C);var P=a(C,2),S=l(P,!0);t(P);var G=a(P,2),_=l(G,!0);t(G);var $=a(G,2);K($,"title",rr),t(_e);var O=a(_e,2);{var st=b=>{var I=Xr(),V=l(I,!0);t(I),f(()=>c(V,e(d).description)),i(b,I)};x(O,b=>{e(d).description&&b(st)})}var Pt=a(O,2),Wt=l(Pt),qa=l(Wt,!0);t(Wt);var ma=a(Wt,4),Qa=l(ma,!0);t(ma),t(Pt),t(ce);var qt=a(ce,2),Qt=l(qt),Kt=l(Qt),ha=l(Kt);ha.textContent=lr;var Ka=a(ha,2);ye(Ka,{size:"sm",$$events:{click:()=>r(xt,!0)},children:(b,I)=>{ue();var V=ge();V.nodeValue=ir,i(b,V)},$$slots:{default:!0}}),t(Kt);var Ea=a(Kt,2);{var Za=b=>{var I=Wr(),V=a(l(I),2);Ze(V),K(V,"placeholder",vr);var Ne=a(V,2);{var we=D=>{var k=Jr();K(k,"aria-label",gs),Q("click",k,()=>r(De,"")),i(D,k)};x(Ne,D=>{e(De)&&D(we)})}t(I),Oe(V,()=>e(De),D=>r(De,D)),i(b,I)};x(Ea,b=>{e(d).cases.length>0&&b(Za)})}var ba=a(Ea,2);{var es=b=>{var I=Kr();ke(I,5,()=>[["createdAt",nr],["displayId","ID"],["name",Sa],["priority",jt]],Ke,(V,Ne)=>{let we=()=>e(Ne)[0],D=()=>e(Ne)[1];var k=Qr(),Ce=l(k),Ue=a(Ce);{var Pe=te=>{var y=qr(),ae=l(y,!0);t(y),f(()=>c(ae,e(Z).order==="asc"?"↑":"↓")),i(te,y)};x(Ue,te=>{e(Z).by===we()&&te(Pe)})}t(k),f(()=>{Ct(k,"active",e(Z).by===we()),c(Ce,`${D()??""} `)}),Q("click",k,()=>Ma(we())),i(V,k)}),t(I),i(b,I)};x(ba,b=>{e(d).cases.length>0&&b(es)})}var ts=a(ba,2);{var as=b=>{Bs(b,{title:cr,description:dr})},ss=b=>{var I=Fe(),V=W(I);{var Ne=D=>{var k=Zr(),Ce=l(k);Ce.nodeValue=`${_r} "`;var Ue=a(Ce),Pe=l(Ue,!0);t(Ue),ue(),t(k),f(()=>c(Pe,e(De))),i(D,k)},we=D=>{var k=sl(),Ce=W(k);ke(Ce,5,()=>e(la),te=>te.id,(te,y)=>{var ae=tl(),Be=l(ae),ht=l(Be),rt=l(ht,!0);t(ht);var lt=a(ht,2),Bt=l(lt,!0);t(lt);var Mt=a(lt,2);{var Rt=se=>{var Ve=el();Ve.textContent=Ta,i(se,Ve)};x(Mt,se=>{e(y).isAutomated&&se(Rt)})}var it=a(Mt,2),Et=l(it);K(Et,"title",Ia);var Nt=a(Et,2);t(it),t(Be);var bt=a(Be,2),Zt=l(bt,!0);t(bt);var Ut=a(bt,2),gt=l(Ut,!0);t(Ut),t(ae),f((se,Ve)=>{var Vt;Ct(ae,"selected",((Vt=e(n))==null?void 0:Vt.id)===e(y).id),c(rt,e(y).displayId),yt(lt,`priority-badge small ${se??""} svelte-1x8emxr`),c(Bt,e(y).priority),c(Zt,e(y).title),c(gt,Ve)},[()=>Jt(e(y).priority),()=>pr(e(y)._count.steps)],Le),Q("click",Et,()=>na(e(y))),Q("click",Nt,()=>{r(Ye,{id:e(y).id,displayId:e(y).displayId,title:e(y).title}),r(kt,!0)}),Q("click",it,Ls(function(se){As.call(this,ra,se)})),Q("click",ae,()=>va(e(y))),Q("keydown",ae,se=>se.key==="Enter"&&va(e(y))),i(te,ae)}),t(Ce);var Ue=a(Ce,2);{var Pe=te=>{var y=al(),ae=l(y);Rs(ae,{get current(){return e(Xe)},get total(){return e(Yt)},$$events:{change:Be=>r(Xe,Be.detail)}}),t(y),i(te,y)};x(Ue,te=>{e(Yt)>1&&te(Pe)})}i(D,k)};x(V,D=>{e(Lt).length===0?D(Ne):D(we,!1)},!0)}i(b,I)};x(ts,b=>{e(d).cases.length===0?b(as):b(ss,!1)})}t(Qt);var rs=a(Qt,2);{var ls=b=>{var I=Dl(),V=l(I);{var Ne=D=>{var k=rl();k.textContent=Ca,i(D,k)},we=D=>{var k=Fe(),Ce=W(k);{var Ue=Pe=>{var te=Ol(),y=W(te),ae=l(y),Be=l(ae),ht=l(Be,!0);t(Be);var rt=a(Be,2),lt=l(rt,!0);t(rt);var Bt=a(rt,2);{var Mt=T=>{var L=ll();L.textContent=Ta,i(T,L)};x(Bt,T=>{e(n).isAutomated&&T(Mt)})}var Rt=a(Bt,2),it=l(Rt);{var Et=T=>{var L=il(),H=W(L);K(H,"title",Ia);var he=a(H,2);K(he,"title",mr),Q("click",H,()=>na(e(n))),Q("click",he,Na),i(T,L)};x(it,T=>{e(ze)||T(Et)})}var Nt=a(it,2);K(Nt,"title",ys),t(Rt),t(ae);var bt=a(ae,2);{var Zt=T=>{var L=vl(),H=l(L),he=l(H);he.textContent=Aa;var Me=a(he,2);Ze(Me),t(H);var re=a(H,2),q=l(re);q.textContent=sa;var Se=a(q,2);ta(Se),t(re);var w=a(re,2),$e=l(w);$e.textContent=jt;var B=a($e,2);f(()=>{e(fe),Qe(()=>{})}),ke(B,5,()=>Gt,Ke,(g,M)=>{var u=ol(),A={},Ee=l(u,!0);t(u),f(()=>{A!==(A=e(M))&&(u.value=(u.__value=e(M))==null?"":e(M)),c(Ee,e(M))}),i(g,u)}),t(B),t(w);var h=a(w,2),E=l(h);ye(E,{size:"sm",get disabled(){return e($t)},$$events:{click:Ua},children:(g,M)=>{ue();var u=ge();f(()=>c(u,e($t)?ga:ya)),i(g,u)},$$slots:{default:!0}});var X=a(E,2);ye(X,{size:"sm",variant:"ghost",$$events:{click:()=>r(ze,!1)},children:(g,M)=>{ue();var u=ge();u.nodeValue=Tt,i(g,u)},$$slots:{default:!0}}),t(h),t(L),Oe(Me,()=>e(fe).title,g=>Ie(fe,e(fe).title=g)),Oe(Se,()=>e(fe).description,g=>Ie(fe,e(fe).description=g)),zt(B,()=>e(fe).priority,g=>Ie(fe,e(fe).priority=g)),Ht(3,L,()=>Ft,()=>({y:-4,duration:150})),i(T,L)},Ut=T=>{var L=_l(),H=W(L),he=l(H,!0);t(H);var Me=a(H,2);{var re=B=>{var h=nl(),E=l(h,!0);t(h),f(()=>c(E,e(n).description)),i(B,h)};x(Me,B=>{e(n).description&&B(re)})}var q=a(Me,2),Se=l(q,!0);t(q);var w=a(q,2);{var $e=B=>{var h=cl();ke(h,5,()=>Ga(e(n).history),E=>E.id,(E,X)=>{var g=dl();f((M,u)=>{yt(g,`history-bar ${M??""} svelte-1x8emxr`),K(g,"title",`${e(X).result??""} — ${u??""}`)},[()=>da(e(X).result),()=>new Date(e(X).executedAt).toLocaleString()],Le),i(E,g)}),t(h),i(B,h)};x(w,B=>{e(n).history&&e(n).history.length>0&&B($e)})}f(B=>{c(he,e(n).title),c(Se,B)},[()=>$a(e(n).createdBy.name)],Le),i(T,L)};x(bt,T=>{e(ze)?T(Zt):T(Ut,!1)})}t(y);var gt=a(y,2),se=l(gt);se.textContent=ur;var Ve=a(se,2);Ve.textContent=fr,t(gt);var Vt=a(gt,2);{var is=T=>{var L=gl(),H=l(L),he=l(H);{var Me=h=>{ye(h,{size:"sm",variant:"ghost",$$events:{click:()=>r(je,!0)},children:(E,X)=>{ue();var g=ge();g.nodeValue=Er,i(E,g)},$$slots:{default:!0}})},re=h=>{var E=pl(),X=W(E);ye(X,{size:"sm",get disabled(){return e(It)},$$events:{click:Fa},children:(M,u)=>{ue();var A=ge();f(Ee=>c(A,Ee),[()=>br(e(It))],Le),i(M,A)},$$slots:{default:!0}});var g=a(X,2);ye(g,{size:"sm",variant:"ghost",$$events:{click:()=>{r(je,!1),r(oe,(e(n).steps??[]).map(M=>({...M})))}},children:(M,u)=>{ue();var A=ge();A.nodeValue=Tt,i(M,A)},$$slots:{default:!0}}),i(h,E)};x(he,h=>{e(je)?h(re,!1):h(Me)})}var q=a(he,2);{var Se=h=>{var E=xl();E.textContent=gr,Q("click",E,Va),i(h,E)};x(q,h=>{e(je)&&h(Se)})}t(H);var w=a(H,2);{var $e=h=>{var E=ml(),X=l(E);{var g=u=>{var A=ul();A.textContent=Lr,i(u,A)},M=u=>{var A=Fe(),Ee=W(A);ke(Ee,1,()=>e(oe),Ke,(ot,Te,vt)=>{var U=fl(),R=l(U);R.textContent=vt+1;var le=a(R,2),Je=l(le),He=l(Je);He.textContent=Ar;var pe=a(He,2);Ze(pe),K(pe,"placeholder",Sr),t(Je);var xe=a(Je,2),nt=l(xe);nt.textContent=ka;var Re=a(nt,2);Ze(Re),K(Re,"placeholder",$r),t(xe);var dt=a(xe,2),be=l(dt);be.textContent=Oa;var J=a(be,2);Ze(J),K(J,"placeholder",Ir),t(dt),t(le);var ea=a(le,2);t(U),Oe(pe,()=>e(Te).action,We=>(e(Te).action=We,Qe(()=>e(oe)))),Oe(Re,()=>e(Te).testData,We=>(e(Te).testData=We,Qe(()=>e(oe)))),Oe(J,()=>e(Te).expectedOutput,We=>(e(Te).expectedOutput=We,Qe(()=>e(oe)))),Q("click",ea,()=>Ha(vt)),i(ot,U)}),i(u,A)};x(X,u=>{e(oe).length===0?u(g):u(M,!1)})}t(E),i(h,E)},B=h=>{var E=Fe(),X=W(E);{var g=u=>{var A=El(),Ee=l(A),ot=a(l(Ee),2);ot.textContent=kr;var Te=a(ot,2);Te.textContent=ka;var vt=a(Te,2);vt.textContent=Oa,t(Ee);var U=a(Ee,2);ke(U,1,()=>e(n).steps,Ke,(R,le,Je)=>{var He=hl(),pe=l(He);pe.textContent=Je+1;var xe=a(pe,2),nt=l(xe,!0);t(xe);var Re=a(xe,2),dt=l(Re,!0);t(Re);var be=a(Re,2),J=l(be,!0);t(be),t(He),f(()=>{c(nt,e(le).action),c(dt,e(le).testData||"—"),c(J,e(le).expectedOutput||"—")}),i(R,He)}),t(A),i(u,A)},M=u=>{var A=bl();A.textContent=Or,i(u,A)};x(X,u=>{e(n).steps&&e(n).steps.length>0?u(g):u(M,!1)},!0)}i(h,E)};x(w,h=>{e(je)?h($e):h(B,!1)})}t(L),Ht(3,L,()=>Ft,()=>({y:4,duration:140})),i(T,L)},os=T=>{var L=kl(),H=l(L);{var he=re=>{var q=yl();q.textContent=yr,i(re,q)},Me=re=>{var q=Il();ke(q,5,()=>e(n).history,Se=>Se.id,(Se,w)=>{var $e=$l(),B=l($e),h=l(B,!0);t(B);var E=a(B,2),X=l(E);{var g=U=>{var R=Cl();R.textContent=Cr,f(()=>K(R,"href",`/reports/${e(w).report.id??""}`)),i(U,R)},M=U=>{var R=Fe(),le=W(R);{var Je=pe=>{var xe=Tl();xe.textContent=Dr,i(pe,xe)},He=pe=>{var xe=Fe(),nt=W(xe);{var Re=be=>{var J=Ll(),ea=l(J,!0);t(J),f(We=>{K(J,"href",`/test-repository/runs/${e(w).run.id??""}`),c(ea,We)},[()=>wr(e(w).run.title)],Le),i(be,J)},dt=be=>{var J=Al();J.textContent=Pr,i(be,J)};x(nt,be=>{var J;(J=e(w).run)!=null&&J.id?be(Re):be(dt,!1)},!0)}i(pe,xe)};x(le,pe=>{e(w).source==="automated"?pe(Je):pe(He,!1)},!0)}i(U,R)};x(X,U=>{var R;e(w).source==="automated"&&((R=e(w).report)!=null&&R.id)?U(g):U(M,!1)})}var u=a(X,2),A=l(u,!0);t(u);var Ee=a(u,2),ot=l(Ee,!0);t(Ee),t(E);var Te=a(E,2);{var vt=U=>{var R=Sl(),le=l(R,!0);t(R),f(()=>c(le,e(w).notes)),i(U,R)};x(Te,U=>{e(w).notes&&U(vt)})}t($e),f((U,R)=>{var le;yt(B,`result-badge ${U??""} svelte-1x8emxr`),c(h,e(w).result),c(A,((le=e(w).executedBy)==null?void 0:le.name)??"—"),c(ot,R)},[()=>da(e(w).result),()=>new Date(e(w).executedAt).toLocaleString()],Le),i(Se,$e)}),t(q),i(re,q)};x(H,re=>{!e(n).history||e(n).history.length===0?re(he):re(Me,!1)})}t(L),Ht(3,L,()=>Ft,()=>({y:4,duration:140})),i(T,L)};x(Vt,T=>{e(at)?T(os,!1):T(is)})}f(T=>{c(ht,e(n).displayId),yt(rt,`priority-badge ${T??""} svelte-1x8emxr`),c(lt,e(n).priority),Ct(se,"active",!e(at)),Ct(Ve,"active",e(at))},[()=>Jt(e(n).priority)],Le),Q("click",Nt,()=>{r(n,null),r(ze,!1)}),Q("click",se,()=>r(at,!1)),Q("click",Ve,()=>r(at,!0)),i(Pe,te)};x(Ce,Pe=>{e(n)&&Pe(Ue)},!0)}i(D,k)};x(V,D=>{e(ut)?D(Ne):D(we,!1)})}t(I),Ht(3,I,()=>Ft,()=>({x:20,duration:200})),i(b,I)};x(rs,b=>{(e(n)||e(ut))&&b(ls)})}t(qt),f((b,I,V)=>{c(ee,`${e(d).displayId??""} — ${e(d).name??""}`),c(N,e(d).displayId),yt(P,`priority-badge ${b??""} svelte-1x8emxr`),c(S,e(d).priority),c(_,e(d).name),c(qa,I),c(Qa,V),Ct(qt,"split",e(n)||e(ut))},[()=>Jt(e(d).priority),()=>or(e(d)._count.cases),()=>$a(e(d).createdBy.name)],Le),Q("click",$,()=>{r(me,{name:e(d).name,description:e(d).description,priority:e(d).priority}),r(mt,!0)}),i(ne,z)};x(m,ne=>{e(d)&&ne(F)},!0)}i(s,v)};x(Xa,s=>{e(ia)?s(Ja):s(Wa,!1)})}i(Da,ca),ps(),Pa()}export{Kl as component};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{a as o,t as g,c as ge,h as kt,s as E,e as ie,b as fe,n as Ke}from"../chunks/CfkUW1vA.js";import{i as ze}from"../chunks/C00jnSU2.js";import{p as Je,o as Xe,g as e,ao as Ze,l as A,s as c,ai as Rt,b as et,d as r,k as s,c as tt,m as u,y as ve,ap as It,f as S,$ as At,aq as Tt,j as n,t as L,x as ce,n as he}from"../chunks/CeH-RgMb.js";import{i as m,s as Bt,a as je}from"../chunks/CegSvdD-.js";import{t as z,a as Ct,f as Nt,e as qe,i as Me}from"../chunks/Beula-TH.js";import{b as de}from"../chunks/CboYYxrf.js";import{g as Fe}from"../chunks/DiVmSEJa.js";import{p as Pt}from"../chunks/d2K3c8Kx.js";import{c as St,d as He}from"../chunks/BJ_ypKl3.js";import{f as Dt}from"../chunks/Cgw8TOOy.js";import{r as Te}from"../chunks/K1h4wprj.js";import{x as Be,y as Ot}from"../chunks/DuAVKaL3.js";import{p as Ut}from"../chunks/DB3YXVFP.js";import{P as Vt,B as me}from"../chunks/C2_rQ4aY.js";import{h as Wt,i as xe,j as Gt,k as jt,V as Qe,Q as qt,l as Mt,C as Ce,q as Ft,m as Ht,n as Qt,w as Yt,o as $t,s as Kt,u as zt,A as Jt,v as Xt,x as Zt,y as ea,F as ta,W as Ye,z as aa,B as sa,E as la,G as ra,I as na}from"../chunks/BbYY_TzB.js";import{B as $e}from"../chunks/C8S7qQjQ.js";var va=g('<div class="live-viewport svelte-1wgcx8r"><div class="live-stage svelte-1wgcx8r"><div class="live-mount svelte-1wgcx8r"></div></div></div>');function oa(be,_e){Je(_e,!1);let D=Ut(_e,"events",24,()=>[]);const Ee=4;let G=u(),j=u(),k=u(),l=u(null),x=u(0),f=0,O=0,q;function ee(){if(!f||!O||!e(G))return;const _=e(G).getBoundingClientRect(),p=_.width/f||0;ve(j,e(j).style.width=`${_.width}px`),ve(j,e(j).style.height=`${O*p}px`),ve(k,e(k).style.transformOrigin="top left"),ve(k,e(k).style.transform=`scale(${p})`)}function te(){var X,V;const _=e(G).getBoundingClientRect(),p=((X=D().find(R=>(R==null?void 0:R.type)===Ee))==null?void 0:X.data)??null;f=(p==null?void 0:p.width)>0?p.width:_.width,O=(p==null?void 0:p.height)>0?p.height:_.height,c(l,new Vt({target:e(k),props:{events:D(),liveMode:!0,autoPlay:!1,showController:!1,width:f,height:O}})),c(x,D().length),(V=e(l).getReplayer())==null||V.startLive(),ee()}Xe(()=>{te(),q=new ResizeObserver(ee),q.observe(e(G))}),Ze(()=>{var _,p;q==null||q.disconnect();try{(p=(_=e(l))==null?void 0:_.getReplayer())==null||p.destroy()}catch{}}),A(()=>(e(l),Rt(D()),e(x)),()=>{if(e(l)&&D().length>e(x)){for(let _=e(x);_<D().length;_++)e(l).addEvent(D()[_]);c(x,D().length)}}),et(),ze();var B=va(),ae=r(B),J=r(ae);de(J,_=>c(k,_),()=>e(k)),s(ae),de(ae,_=>c(j,_),()=>e(j)),s(B),de(B,_=>c(G,_),()=>e(G)),o(be,B),tt()}var ia=g('<h2 class="svelte-13l3gen"></h2> <p class="svelte-13l3gen"></p> <a href="/reports" class="notice-link svelte-13l3gen"></a>',1),ca=g('<div class="pulse-dot svelte-13l3gen"></div>'),da=g('<!> <div class="notice-state svelte-13l3gen"><!></div>',1),_a=g('<!> <div class="notice-state svelte-13l3gen"><div class="pulse-dot warn svelte-13l3gen"></div> <h2 class="svelte-13l3gen"></h2> <p class="svelte-13l3gen"></p> <p class="queue-pos svelte-13l3gen"> </p> <button class="cancel-btn svelte-13l3gen"></button></div>',1),ua=g('<!> <div class="notice-state svelte-13l3gen"><h2 class="svelte-13l3gen"> </h2> <a href="/reports" class="notice-link svelte-13l3gen"></a></div>',1),pa=g('<span class="live-badge svelte-13l3gen"><span class="live-dot svelte-13l3gen"></span> </span>'),ga=g('<span class="run-title-label svelte-13l3gen"> </span> <span class="run-sep svelte-13l3gen">·</span>',1),fa=g('<span class="run-sep svelte-13l3gen">·</span> <span class="run-detail svelte-13l3gen"> </span>',1),ha=g('<div class="run-info svelte-13l3gen"><!> <span class="run-tag-label svelte-13l3gen"> </span> <span class="run-sep svelte-13l3gen">·</span> <span class="run-detail svelte-13l3gen"> </span> <span class="run-sep svelte-13l3gen">·</span> <span class="run-detail svelte-13l3gen"> </span> <!></div>'),ma=g('<button class="cancel-btn svelte-13l3gen"><svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-13l3gen"><rect x="3" y="3" width="18" height="18" rx="2" class="svelte-13l3gen"></rect><line x1="9" y1="9" x2="15" y2="15" class="svelte-13l3gen"></line><line x1="15" y1="9" x2="9" y2="15" class="svelte-13l3gen"></line></svg> </button>'),xa=Ke('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-13l3gen"><polyline points="20 6 9 17 4 12" class="svelte-13l3gen"></polyline></svg> ',1),ba=Ke('<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" class="svelte-13l3gen"><line x1="18" y1="6" x2="6" y2="18" class="svelte-13l3gen"></line><line x1="6" y1="6" x2="18" y2="18" class="svelte-13l3gen"></line></svg> ',1),Ea=g('<div class="completion-bar svelte-13l3gen"><div class="completion-left svelte-13l3gen"><!></div> <div class="completion-right svelte-13l3gen"><span class="redirect-hint svelte-13l3gen"> </span> <button class="view-now-btn svelte-13l3gen"> <svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="svelte-13l3gen"><line x1="5" y1="12" x2="19" y2="12" class="svelte-13l3gen"></line><polyline points="12 5 19 12 12 19" class="svelte-13l3gen"></polyline></svg></button></div></div>'),wa=g('<span class="tab-count svelte-13l3gen"> </span>'),ya=g('<button class="lane-tab svelte-13l3gen"><span class="tab-dot svelte-13l3gen"></span> <!></button>'),La=g('<div class="lane-tabs svelte-13l3gen"></div>'),ka=g('<button class="lane-tab svelte-13l3gen"> </button>'),Ra=g('<div class="lane-tabs worker-tabs svelte-13l3gen"></div>'),Ia=g('<div class="awaiting-state svelte-13l3gen"><svg width="32" height="32" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round" opacity="0.25" class="svelte-13l3gen"><rect x="2" y="5" width="20" height="14" rx="2" class="svelte-13l3gen"></rect><circle cx="12" cy="12" r="3" class="svelte-13l3gen"></circle></svg> <span class="svelte-13l3gen"> </span></div>'),Aa=g('<pre class="terminal svelte-13l3gen"> </pre>'),Ta=g('<pre class="terminal svelte-13l3gen"> </pre>'),Ba=g('<div class="live-fullscreen svelte-13l3gen"><div class="run-header svelte-13l3gen"><div class="header-left svelte-13l3gen"><div class="header-back svelte-13l3gen"><!></div> <!> <!></div> <!></div> <!> <!> <!> <div class="run-view svelte-13l3gen"><div class="stream-panel svelte-13l3gen"><!></div> <div class="terminal-panel svelte-13l3gen"><div class="terminal-bar svelte-13l3gen"><span class="dot red svelte-13l3gen"></span> <span class="dot yellow svelte-13l3gen"></span> <span class="dot green svelte-13l3gen"></span> <span class="terminal-label svelte-13l3gen"><!></span></div> <!></div></div></div>');function Ya(be,_e){Je(_e,!1);const[D,Ee]=Bt(),G=()=>je(Pt,"$page",D),j=()=>je(St,"$backgroundRuns",D),k=u(),l=u(),x=u(),f=u(),O=u(),q=u(),ee=u(),te=u(),B=u(),ae=u();let J=u(),_=u(),p=u(null),X=u(Be/1e3),V=u(null),R=u(null),M=u(null),we=u(!1),Ne=u(0),ye=null;async function Pe(){try{const v=await Dt();c(we,!0);const I=v.find(ne=>ne.runId===e(k));c(Ne,(I==null?void 0:I.position)??0)}catch{c(we,!0)}}Xe(()=>{Pe(),ye=setInterval(()=>{e(x)==="queued"&&Pe()},4e3)}),It(()=>{e(J)&&ve(J,e(J).scrollTop=e(J).scrollHeight),e(_)&&ve(_,e(_).scrollTop=e(_).scrollHeight)}),Ze(()=>{e(p)&&clearTimeout(e(p)),e(V)&&clearInterval(e(V)),ye&&clearInterval(ye)});function at(){e(p)&&clearTimeout(e(p)),e(V)&&clearInterval(e(V)),Fe(Te(e(l).latestReportId))}A(()=>G(),()=>{c(k,G().params.id)}),A(()=>(j(),e(k)),()=>{c(l,j()[e(k)]??null)}),A(()=>e(l),()=>{var v;c(x,((v=e(l))==null?void 0:v.status)??null)}),A(()=>e(l),()=>{var v;c(f,((v=e(l))==null?void 0:v.lanes)??[])}),A(()=>e(f),()=>{c(O,e(f).length>1)}),A(()=>(e(f),e(R)),()=>{e(f).length===0?c(R,null):e(f).find(v=>v.id===e(R))||c(R,e(f)[0].id)}),A(()=>(e(f),e(R)),()=>{c(q,e(f).find(v=>v.id===e(R))??null)}),A(()=>(e(O),e(R),e(f)),()=>{var v;c(ee,e(O)?e(R):(v=e(f)[0])==null?void 0:v.id)}),A(()=>(e(ee),e(l)),()=>{var v;c(te,e(ee)&&((v=e(l))==null?void 0:v.rrwebByLane[e(ee)])||{})}),A(()=>e(te),()=>{c(B,Object.keys(e(te)).sort((v,I)=>Number(v)-Number(I)))}),A(()=>(e(B),e(M)),()=>{e(B).length===0?c(M,null):e(B).includes(e(M))||c(M,e(B)[0])}),A(()=>(e(M),e(te)),()=>{var v;c(ae,e(M)?((v=e(te)[e(M)])==null?void 0:v.events)??[]:[])}),A(()=>(e(x),e(l),e(p),e(X),e(V),Te),()=>{var v,I;e(x)==="done"&&((v=e(l))!=null&&v.testCompleted)&&((I=e(l))!=null&&I.latestReportId)&&!e(p)&&(c(X,Be/1e3),c(V,setInterval(()=>{Tt(X,-1),e(X)<=0&&clearInterval(e(V))},1e3)),c(p,setTimeout(()=>Fe(Te(e(l).latestReportId)),Be)))}),et(),ze();var Se=ge();kt(v=>{At.title=Wt});var st=S(Se);{var lt=v=>{var I=da(),ne=S(I);me(ne,{href:"/reports",label:xe});var ue=n(ne,2),Le=r(ue);{var Z=U=>{var F=ia(),le=S(F);le.textContent=Gt;var C=n(le,2);C.textContent=jt;var N=n(C,2);N.textContent=Qe,o(U,F)},se=U=>{var F=ca();o(U,F)};m(Le,U=>{e(we)?U(Z):U(se,!1)})}s(ue),o(v,I)},rt=v=>{var I=ge(),ne=S(I);{var ue=Z=>{var se=_a(),U=S(se);me(U,{href:"/reports",label:xe});var F=n(U,2),le=n(r(F),2);le.textContent=qt;var C=n(le,2);C.textContent=Mt;var N=n(C,2),W=r(N,!0);s(N);var H=n(N,2);H.textContent=Ce,s(F),L(Q=>E(W,Q),[()=>Ft(e(Ne))],ce),ie("click",H,()=>He(e(k))),o(Z,se)},Le=Z=>{var se=ge(),U=S(se);{var F=C=>{var N=ua(),W=S(N);me(W,{href:"/reports",label:xe});var H=n(W,2),Q=r(H),ke=r(Q,!0);s(Q);var pe=n(Q,2);pe.textContent=Qe,s(H),L(()=>E(ke,e(l).verdict==="cancelled"?Ce:Ht)),o(C,N)},le=C=>{var N=Ba(),W=r(N),H=r(W),Q=r(H),ke=r(Q);me(ke,{href:"/reports",label:xe}),s(Q);var pe=n(Q,2);{var nt=a=>{var t=pa(),d=n(r(t),1,!0);d.nodeValue=Qt,s(t),o(a,t)},vt=a=>{var t=ge(),d=S(t);{var i=b=>{$e(b,{variant:"pass",children:(w,Y)=>{he();var T=fe();T.nodeValue=aa,o(w,T)},$$slots:{default:!0}})},h=b=>{$e(b,{variant:"fail",children:(w,Y)=>{he();var T=fe();T.nodeValue=sa,o(w,T)},$$slots:{default:!0}})};m(d,b=>{e(l).verdict==="pass"?b(i):b(h,!1)},!0)}o(a,t)};m(pe,a=>{e(x)==="running"?a(nt):a(vt,!1)})}var ot=n(pe,2);{var it=a=>{var t=ha(),d=r(t);{var i=y=>{var K=ga(),oe=S(K),Ae=r(oe,!0);s(oe),he(2),L(()=>E(Ae,e(l).currentRun.runTitle)),o(y,K)};m(d,y=>{e(l).currentRun.runTitle&&y(i)})}var h=n(d,2),b=r(h,!0);s(h);var w=n(h,4),Y=r(w,!0);s(w);var T=n(w,4),$=r(T,!0);s(T);var re=n(T,2);{var P=y=>{var K=fa(),oe=n(S(K),2),Ae=r(oe,!0);s(oe),L(Lt=>E(Ae,Lt),[()=>la(e(f).length)],ce),o(y,K)};m(re,y=>{e(f).length>1&&y(P)})}s(t),L(y=>{E(b,e(l).currentRun.tag||Ot),E(Y,y),E($,e(l).currentRun.browser)},[()=>Yt(e(l).currentRun.workers)],ce),o(a,t)};m(ot,a=>{e(l).currentRun&&a(it)})}s(H);var ct=n(H,2);{var dt=a=>{var t=ma(),d=n(r(t));d.nodeValue=` ${Ce}`,s(t),ie("click",t,()=>He(e(k))),o(a,t)};m(ct,a=>{e(x)==="running"&&a(dt)})}s(W);var De=n(W,2);{var _t=a=>{var t=Ea(),d=r(t),i=r(d);{var h=P=>{var y=xa(),K=n(S(y),1,!0);K.nodeValue=ra,o(P,y)},b=P=>{var y=ba(),K=n(S(y),1,!0);K.nodeValue=na,o(P,y)};m(i,P=>{e(l).verdict==="pass"?P(h):P(b,!1)})}s(d);var w=n(d,2),Y=r(w),T=r(Y,!0);s(Y);var $=n(Y,2),re=r($);re.nodeValue=`${$t} `,he(),s($),s(w),s(t),L(P=>{z(t,"pass-bar",e(l).verdict==="pass"),z(t,"fail-bar",e(l).verdict==="fail"),E(T,P)},[()=>Kt(e(X))],ce),ie("click",$,at),Ct(3,t,()=>Nt,()=>({y:-8,duration:250})),o(a,t)};m(De,a=>{e(x)==="done"&&e(l).testCompleted&&e(l).latestReportId&&a(_t)})}var Oe=n(De,2);{var ut=a=>{var t=La();qe(t,5,()=>e(f),Me,(d,i)=>{var h=ya(),b=r(h),w=n(b),Y=n(w);{var T=$=>{var re=wa(),P=r(re,!0);s(re),L(()=>E(P,e(i).testCount)),o($,re)};m(Y,$=>{e(i).testCount&&$(T)})}s(h),L(()=>{z(h,"active",e(R)===e(i).id),z(b,"tab-dot-running",e(i).status==="running"),z(b,"tab-dot-done",e(i).status==="done"),z(b,"tab-dot-error",e(i).status==="error"),E(w,` ${e(i).name??""} `)}),ie("click",h,()=>c(R,e(i).id)),o(d,h)}),s(t),o(a,t)};m(Oe,a=>{e(O)&&a(ut)})}var Ue=n(Oe,2);{var pt=a=>{var t=Ra();qe(t,5,()=>e(B),Me,(d,i)=>{var h=ka(),b=r(h,!0);s(h),L(w=>{z(h,"active",e(M)===e(i)),E(b,w)},[()=>zt(e(i))],ce),ie("click",h,()=>c(M,e(i))),o(d,h)}),s(t),o(a,t)};m(Ue,a=>{e(B).length>1&&a(pt)})}var Ve=n(Ue,2),Re=r(Ve),gt=r(Re);{var ft=a=>{oa(a,{get events(){return e(ae)}})},ht=a=>{var t=Ia(),d=n(r(t),2),i=r(d,!0);s(d),s(t),L(()=>E(i,e(x)==="running"?Jt:Xt)),o(a,t)};m(gt,a=>{e(ae).length>0?a(ft):a(ht,!1)})}s(Re);var We=n(Re,2),Ie=r(We),Ge=n(r(Ie),6),mt=r(Ge);{var xt=a=>{var t=fe();L(()=>{var d;return E(t,((d=e(q))==null?void 0:d.name)??Zt)}),o(a,t)},bt=a=>{var t=fe();L(()=>E(t,e(x)==="running"?ea:ta)),o(a,t)};m(mt,a=>{e(O)?a(xt):a(bt,!1)})}s(Ge),s(Ie);var Et=n(Ie,2);{var wt=a=>{var t=Aa(),d=r(t,!0);s(t),de(t,i=>c(_,i),()=>e(_)),L(()=>{var i;return E(d,((i=e(q))==null?void 0:i.logs)||Ye)}),o(a,t)},yt=a=>{var t=Ta(),d=r(t,!0);s(t),de(t,i=>c(J,i),()=>e(J)),L(()=>{var i;return E(d,((i=e(f)[0])==null?void 0:i.logs)||e(l).output||Ye)}),o(a,t)};m(Et,a=>{e(O)?a(wt):a(yt,!1)})}s(We),s(Ve),s(N),L(()=>{z(W,"header-pass",e(l).verdict==="pass"),z(W,"header-fail",e(l).verdict==="fail")}),o(C,N)};m(U,C=>{e(x)==="done"&&!e(l).latestReportId?C(F):C(le,!1)},!0)}o(Z,se)};m(ne,Z=>{e(x)==="queued"?Z(ue):Z(Le,!1)},!0)}o(v,I)};m(st,v=>{e(l)?v(rt,!1):v(lt)})}o(be,Se),tt(),Ee()}export{Ya as component};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* This file is part of Plum.
|
|
3
|
-
* Licensed under the MIT License. See LICENSE file in the project root for details.
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
import{h as st,a as _,b as ie,s as x,t as T,e as H}from"../chunks/CfkUW1vA.js";import{i as lt}from"../chunks/C00jnSU2.js";import{p as rt,o as it,s as n,l as M,b as nt,f as ne,t as S,c as ot,m as d,g as e,z as vt,$ as dt,x as w,y as ct,d as i,n as J,j as o,k as l}from"../chunks/CeH-RgMb.js";import{i as A,s as gt,a as pt}from"../chunks/CegSvdD-.js";import{a as _t,b as ut,t as b,e as Ee,i as we}from"../chunks/Beula-TH.js";import{R as V,s as j,r as Te,B as ft,n as $e}from"../chunks/DuAVKaL3.js";import{f as Pe,d as xt,a as ht,r as mt}from"../chunks/K1h4wprj.js";import{a as St}from"../chunks/BJ_ypKl3.js";import{s as ke,t as bt,i as jt,a as yt}from"../chunks/B0_HKFXV.js";import{B as Le}from"../chunks/C8S7qQjQ.js";import{P as Et}from"../chunks/DWzEJYIF.js";import{C as wt}from"../chunks/DAmOMhaf.js";import{E as Tt}from"../chunks/Cfmt4_tJ.js";import{H as $t,L as Pt,d as kt,r as Lt,a as Rt,b as Ct,D as Re,P as At,R as Dt,t as It,T as Mt,p as Nt,f as Bt,N as Ot,S as Gt,c as Ht,e as Vt,g as zt}from"../chunks/BbYY_TzB.js";var Wt=T('<div class="legacy-notice svelte-1xtj9lg"><p class="svelte-1xtj9lg"></p> <button class="legacy-notice-dismiss svelte-1xtj9lg"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg></button></div>'),qt=T('<div class="rate-display svelte-1xtj9lg"><span class="rate-number svelte-1xtj9lg"> </span> <span class="rate-label svelte-1xtj9lg"></span></div>'),Ft=T('<span class="trend-dot svelte-1xtj9lg"></span>'),Ut=T('<div class="stats-bar svelte-1xtj9lg"><div class="pass-bar-track svelte-1xtj9lg"><div class="pass-bar-fill svelte-1xtj9lg"></div></div> <div class="bar-legend svelte-1xtj9lg"><span class="legend-pass svelte-1xtj9lg"> </span> <span class="legend-fail svelte-1xtj9lg"> </span></div></div> <div class="trend-row svelte-1xtj9lg"><span class="trend-label svelte-1xtj9lg"></span> <div class="trend-dots svelte-1xtj9lg"></div> <span class="trend-hint svelte-1xtj9lg"></span></div>',1),Yt=T('<button class="btn-delete-selected svelte-1xtj9lg"> </button>'),Jt=T('<div class="report-row svelte-1xtj9lg"><label class="row-check-wrap svelte-1xtj9lg"><input type="checkbox" class="checkbox svelte-1xtj9lg"></label> <a class="report-item svelte-1xtj9lg"><div class="item-left svelte-1xtj9lg"><span class="status-mark svelte-1xtj9lg"> </span> <div class="item-meta svelte-1xtj9lg"><span class="item-tags svelte-1xtj9lg"> </span> <div class="item-badges svelte-1xtj9lg"><!> <!></div></div></div> <div class="item-right svelte-1xtj9lg"><span class="item-date svelte-1xtj9lg"> </span> <svg class="item-arrow svelte-1xtj9lg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round"><line x1="5" y1="12" x2="19" y2="12"></line><polyline points="12 5 19 12 12 19"></polyline></svg></div></a> <button class="row-delete-btn svelte-1xtj9lg"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="3 6 5 6 21 6"></polyline><path d="M19 6l-1 14H6L5 6"></path><path d="M10 11v6M14 11v6"></path><path d="M9 6V4h6v2"></path></svg></button></div>'),Kt=T('<div class="pagination-wrap svelte-1xtj9lg"><!></div>'),Qt=T('<div class="list-header svelte-1xtj9lg"><label class="select-all-wrap svelte-1xtj9lg"><input type="checkbox" class="checkbox svelte-1xtj9lg"></label> <!></div> <div class="report-list svelte-1xtj9lg"></div> <!>',1),Xt=T('<!> <!> <div class="page-header svelte-1xtj9lg"><div class="header-top svelte-1xtj9lg"><div><h1 class="svelte-1xtj9lg"></h1> <p class="subtitle svelte-1xtj9lg"> </p></div> <!></div> <!></div> <!>',1);function pa(Ce,Ae){rt(Ae,!1);const[De,Ie]=gt(),oe=()=>pt(St,"$reportsVersion",De),K=d(),L=d(),ve=d(),z=d(),Q=d();let R=d([]),h=d(0),W=d(0),de=d(0),X=d([]),D=d(1),ce=d(!1),c=d(new Set),m=d({open:!1,targets:[]}),Z=d(!1),q=d(!1);async function F(){try{let t=await Pe({page:e(D),limit:V});t.reports.length===0&&e(D)>1&&(n(D,Math.max(1,Math.ceil(t.total/V))),t=await Pe({page:e(D),limit:V})),n(R,t.reports),n(h,t.total),n(W,t.passCount),n(de,t.failCount),n(X,t.trend),n(c,new Set),await vt(),n(ce,!0)}catch(t){console.error("Failed to fetch reports",t)}}function Me(t){n(D,t),F()}it(()=>{F();try{n(q,localStorage.getItem("plum:legacyScreenshotsNoticeDismissed")!=="true")}catch{n(q,!0)}});function Ne(){n(q,!1);try{localStorage.setItem("plum:legacyScreenshotsNoticeDismissed","true")}catch{}}function Be(t,r){r.preventDefault(),r.stopPropagation();const s=new Set(e(c));s.has(t)?s.delete(t):s.add(t),n(c,s)}function Oe(t){if(t.stopPropagation(),e(z)){const r=new Set(e(c));e(R).forEach(s=>r.delete(s.id)),n(c,r)}else{const r=new Set(e(c));e(R).forEach(s=>r.add(s.id)),n(c,r)}}function ge(t){n(m,{open:!0,targets:t})}function Ge(t,r){r.preventDefault(),r.stopPropagation(),ge([t])}async function He(){n(Z,!0);try{e(m).targets.length===1?await xt(e(m).targets[0]):await ht([...e(m).targets]),n(m,{open:!1,targets:[]}),await F()}catch(t){console.error("Delete failed",t)}finally{n(Z,!1)}}M(()=>(e(h),V),()=>{n(K,Math.ceil(e(h)/V))}),M(()=>(e(h),e(W)),()=>{n(L,e(h)?Math.round(e(W)/e(h)*100):0)}),M(()=>e(X),()=>{n(ve,[...e(X)].reverse())}),M(()=>(e(R),e(c)),()=>{n(z,e(R).length>0&&e(R).every(t=>e(c).has(t.id)))}),M(()=>e(c),()=>{n(Q,e(c).size>0)}),M(()=>oe(),()=>{oe()&&F()}),nt(),lt();var pe=Xt();st(t=>{dt.title=Pt});var _e=ne(pe);const Ve=w(()=>Rt(e(m).targets.length));wt(_e,{get title(){return e(Ve)},get loading(){return e(Z)},get open(){return e(m).open},set open(t){ct(m,e(m).open=t)},$$events:{confirm:He},children:(t,r)=>{J();var s=ie();S(v=>x(s,v),[()=>kt(e(m).targets.length)],w),_(t,s)},$$slots:{default:!0},$$legacy:!0});var ue=o(_e,2);{var ze=t=>{var r=Wt(),s=i(r);s.textContent=Ct;var v=o(s,2);j(v,"title",Re),j(v,"aria-label",Re),l(r),H("click",v,Ne),_t(3,r,()=>ut,()=>({duration:200})),_(t,r)};A(ue,t=>{e(q)&&t(ze)})}var ee=o(ue,2),te=i(ee),ae=i(te),fe=i(ae);fe.textContent=$t;var xe=o(fe,2),We=i(xe,!0);l(xe),l(ae);var qe=o(ae,2);{var Fe=t=>{var r=qt(),s=i(r),v=i(s);l(s);var $=o(s,2);$.textContent=At,l(r),S(()=>{b(s,"pass",e(L)>=80),b(s,"warn",e(L)<80&&e(L)>=50),b(s,"fail",e(L)<50),x(v,`${e(L)??""}%`)}),_(t,r)};A(qe,t=>{e(h)>0&&t(Fe)})}l(te);var Ue=o(te,2);{var Ye=t=>{var r=Ut(),s=ne(r),v=i(s),$=i(v);l(v);var U=o(v,2),N=i(U),B=i(N,!0);l(N);var Y=o(N,2),se=i(Y,!0);l(Y),l(U),l(s);var p=o(s,2),a=i(p);a.textContent=Dt;var y=o(a,2);Ee(y,5,()=>e(ve),we,(P,f,k)=>{var E=Ft();S((C,le)=>{j(E,"style",C),j(E,"title",le),b(E,"pass",e(f).status==="PASS"),b(E,"fail",e(f).status!=="PASS")},[()=>ke(k,35),()=>It(e(f).status,e(f).tags,e(f).date)],w),_(P,E)}),l(y);var u=o(y,2);u.textContent=Mt,l(p),S((P,f)=>{j($,"style",`width: ${(e(ce)?e(L)+"%":"0")??""}`),x(B,P),x(se,f)},[()=>Nt(e(W)),()=>Bt(e(de))],w),_(t,r)};A(Ue,t=>{e(h)>0&&t(Ye)})}l(ee);var Je=o(ee,2);{var Ke=t=>{Tt(t,{message:Ot})},Qe=t=>{var r=Qt(),s=ne(r),v=i(s);j(v,"title",Gt);var $=i(v);Te($),l(v);var U=o(v,2);{var N=p=>{var a=Yt(),y=i(a,!0);l(a),S(u=>x(y,u),[()=>zt(e(c).size)],w),H("click",a,()=>ge([...e(c)])),_(p,a)};A(U,p=>{e(Q)&&p(N)})}l(s);var B=o(s,2);Ee(B,5,()=>e(R),we,(p,a,y)=>{var u=Jt(),P=i(u);j(P,"title",Ht);var f=i(P);Te(f),l(P);var k=o(P,2),E=i(k),C=i(E),le=i(C,!0);l(C);var he=o(C,2),re=i(he),Xe=i(re,!0);l(re);var me=o(re,2),Se=i(me);const Ze=w(()=>yt(e(a).triggerType));Le(Se,{get variant(){return e(Ze)},children:(g,O)=>{J();var G=ie();S(I=>x(G,I),[()=>bt(e(a).triggerType)],w),_(g,G)},$$slots:{default:!0}});var et=o(Se,2);{var tt=g=>{Le(g,{variant:"neutral",children:(O,G)=>{J();var I=ie();S(()=>x(I,e(a).browser)),_(O,I)},$$slots:{default:!0}})};A(et,g=>{e(a).browser&&e(a).browser!==ft[0].id&&g(tt)})}l(me),l(he),l(E);var be=o(E,2),je=i(be),at=i(je,!0);l(je),J(2),l(be),l(k);var ye=o(k,2);j(ye,"title",Vt),l(u),S((g,O,G,I)=>{j(u,"style",g),b(u,"is-selected",O),$e(f,O),j(k,"href",G),b(k,"is-pass",e(a).status==="PASS"),b(k,"is-fail",e(a).status!=="PASS"),b(C,"pass",e(a).status==="PASS"),b(C,"fail",e(a).status!=="PASS"),x(le,e(a).status==="PASS"?"✓":"✗"),x(Xe,I),x(at,e(a).date)},[()=>ke(y),()=>e(c).has(e(a).id),()=>mt(e(a).id),()=>{var g;return((g=e(a).testRun)==null?void 0:g.title)??(jt(e(a).triggerType)?e(a).triggerType:e(a).tags)}],w),H("change",f,g=>Be(e(a).id,g)),H("click",ye,g=>Ge(e(a).id,g)),_(p,u)}),l(B);var Y=o(B,2);{var se=p=>{var a=Kt(),y=i(a);Et(y,{get current(){return e(D)},get total(){return e(K)},$$events:{change:u=>Me(u.detail)}}),l(a),_(p,a)};A(Y,p=>{e(K)>1&&p(se)})}S(()=>{$e($,e(z)),$.indeterminate=e(Q)&&!e(z)}),H("change",$,Oe),_(t,r)};A(Je,t=>{e(h)===0?t(Ke):t(Qe,!1)})}S(t=>x(We,t),[()=>Lt(e(h))],w),_(Ce,pe),ot(),Ie()}export{pa as component};
|