@piwitests/server 0.18.2 → 0.20.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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Dwws9U0D.js → -f7BAm1H.js} +1 -1
- package/.output/public/_nuxt/{BjCHB89N.js → 4gYNA-d4.js} +1 -1
- package/.output/public/_nuxt/5A6ITZXj.js +1 -0
- package/.output/public/_nuxt/8PUUncmO.js +44 -0
- package/.output/public/_nuxt/A1pj0VnG.js +1 -0
- package/.output/public/_nuxt/{DZ3Vfcpz.js → AbmKWFQQ.js} +1 -1
- package/.output/public/_nuxt/B3obW6cw.js +3 -0
- package/.output/public/_nuxt/{QmMoMxLM.js → B7FTvFWq.js} +3 -3
- package/.output/public/_nuxt/{DXbPFI1d.js → B8zkOmwo.js} +1 -1
- package/.output/public/_nuxt/B96M2gdj.js +1 -0
- package/.output/public/_nuxt/{BFP6M-20.js → B99fbi73.js} +1 -1
- package/.output/public/_nuxt/{DD5HpaW9.js → B9OLmp0f.js} +1 -1
- package/.output/public/_nuxt/BKkF4pPD.js +1 -0
- package/.output/public/_nuxt/BT3wGCTI.js +1 -0
- package/.output/public/_nuxt/BUa0V0Ly.js +1 -0
- package/.output/public/_nuxt/BUkim3TM.js +1 -0
- package/.output/public/_nuxt/BVc14Ncz.js +4 -0
- package/.output/public/_nuxt/BY0HxR3t.js +17 -0
- package/.output/public/_nuxt/B_xAMWQS.js +2 -0
- package/.output/public/_nuxt/BdQoBaOv.js +1 -0
- package/.output/public/_nuxt/{Cng9gj7q.js → BdfhYr-u.js} +1 -1
- package/.output/public/_nuxt/BgRu_3tT.js +1 -0
- package/.output/public/_nuxt/{BBK2-Krn.js → BiO7RBWb.js} +2 -2
- package/.output/public/_nuxt/BicAJ6U8.js +1 -0
- package/.output/public/_nuxt/BjaRappk.js +1 -0
- package/.output/public/_nuxt/Bm62iDV5.js +1 -0
- package/.output/public/_nuxt/{C9YzQCiq.js → BmUfSNMV.js} +1 -1
- package/.output/public/_nuxt/Bnxf8nbZ.js +1 -0
- package/.output/public/_nuxt/{CsUoYK75.js → Bow4tTR0.js} +1 -1
- package/.output/public/_nuxt/{B2oUeBbA.js → BrQEE053.js} +1 -1
- package/.output/public/_nuxt/BzRRzmwm.js +1 -0
- package/.output/public/_nuxt/{CN1mJlvD.js → C0_yH0N7.js} +1 -1
- package/.output/public/_nuxt/C1gTN4Q8.js +1 -0
- package/.output/public/_nuxt/{CNMoZYMv.js → C2hkrSey.js} +1 -1
- package/.output/public/_nuxt/{rTvJTef_.js → C8e1EbJI.js} +1 -1
- package/.output/public/_nuxt/CA9B2HE5.js +1 -0
- package/.output/public/_nuxt/{oFM1KLWA.js → CAAwCT7H.js} +1 -1
- package/.output/public/_nuxt/{qpI-_f9Q.js → CAvY22RE.js} +1 -1
- package/.output/public/_nuxt/{BLIRKrbM.js → CEfS4-oS.js} +4 -4
- package/.output/public/_nuxt/CIoSMkpp.js +1 -0
- package/.output/public/_nuxt/{hH1UFE3Z.js → CIrFl3MW.js} +1 -1
- package/.output/public/_nuxt/CJFtzlQ4.js +1 -0
- package/.output/public/_nuxt/{hgHc4teu.js → CNyV9YpI.js} +1 -1
- package/.output/public/_nuxt/CSJ-eOQM.js +1 -0
- package/.output/public/_nuxt/CTU1mrhq.js +1 -0
- package/.output/public/_nuxt/CXEH9OPk.js +1 -0
- package/.output/public/_nuxt/CahpB9Z2.js +5 -0
- package/.output/public/_nuxt/{C8OCrfDP.js → Cbh--1MW.js} +1 -1
- package/.output/public/_nuxt/CeG9pBAD.js +1 -0
- package/.output/public/_nuxt/{DBtBvrYc.js → CeW8v31b.js} +1 -1
- package/.output/public/_nuxt/{DZUgX70W.js → CjPfj7ya.js} +1 -1
- package/.output/public/_nuxt/Cnsmicv2.js +79 -0
- package/.output/public/_nuxt/CsLojMwR.js +1 -0
- package/.output/public/_nuxt/{BXY_PWcx.js → Cus22Ud3.js} +2 -2
- package/.output/public/_nuxt/{4TxgDGVa.js → CwGWJbiy.js} +1 -1
- package/.output/public/_nuxt/Cx6gc2VW.js +1 -0
- package/.output/public/_nuxt/{B1X__ilH.js → CxyAzHr3.js} +1 -1
- package/.output/public/_nuxt/{BJtlcTrb.js → CzAPFPpL.js} +1 -1
- package/.output/public/_nuxt/D--H4jLI.js +1 -0
- package/.output/public/_nuxt/D-c8ZSws.js +1 -0
- package/.output/public/_nuxt/D1POo6S4.js +10 -0
- package/.output/public/_nuxt/D5tke0B5.js +1 -0
- package/.output/public/_nuxt/D8nkF-OO.js +3 -0
- package/.output/public/_nuxt/DA25RkyK.js +1 -0
- package/.output/public/_nuxt/{DZ1zNBVM.js → DIB-5fUJ.js} +1 -1
- package/.output/public/_nuxt/DJmoLeVt.js +1 -0
- package/.output/public/_nuxt/DJxlKFGb.js +1 -0
- package/.output/public/_nuxt/DMec-OLo.js +1 -0
- package/.output/public/_nuxt/DPCxhHri.js +1 -0
- package/.output/public/_nuxt/{By4YL7mx.js → DSqHUrvO.js} +1 -1
- package/.output/public/_nuxt/DabzhQB1.js +1 -0
- package/.output/public/_nuxt/{D5oNv2cB.js → DdwHkKfV.js} +1 -1
- package/.output/public/_nuxt/{CfOLBbW9.js → DeY2JkR2.js} +1 -1
- package/.output/public/_nuxt/{CPLJeOCb.js → DfgOx_ou.js} +1 -1
- package/.output/public/_nuxt/DmkUdSS4.js +1 -0
- package/.output/public/_nuxt/{CUvGJXY3.js → DoIREDVb.js} +1 -1
- package/.output/public/_nuxt/DpZ1r1HA.js +1 -0
- package/.output/public/_nuxt/{BOCwBVnz.js → Dpd16JVI.js} +1 -1
- package/.output/public/_nuxt/DqcKngf3.js +1 -0
- package/.output/public/_nuxt/{xqiPI_FQ.js → DrfE8IY0.js} +1 -1
- package/.output/public/_nuxt/{BeFDVhpA.js → DsesNydr.js} +1 -1
- package/.output/public/_nuxt/{D0cnIs93.js → DtHJgCS8.js} +1 -1
- package/.output/public/_nuxt/Dtd4rC58.js +9 -0
- package/.output/public/_nuxt/Du2W7Jne.js +254 -0
- package/.output/public/_nuxt/DuwtTfO8.js +2 -0
- package/.output/public/_nuxt/Dy-TJ0Mt.js +1 -0
- package/.output/public/_nuxt/{BlnwU1OO.js → Dy86h-7P.js} +1 -1
- package/.output/public/_nuxt/{B-IcwqZ2.js → Dyeqn3aG.js} +1 -1
- package/.output/public/_nuxt/{BlA8mIS-.js → FaFoMVKo.js} +1 -1
- package/.output/public/_nuxt/GPNI1ffD.js +4 -0
- package/.output/public/_nuxt/{DWowvnwc.js → H94BMf3L.js} +1 -1
- package/.output/public/_nuxt/HPNQD6v3.js +1 -0
- package/.output/public/_nuxt/HXadJrHu.js +2 -0
- package/.output/public/_nuxt/KyA_4Ks-.js +1 -0
- package/.output/public/_nuxt/{e7zD3uJ0.js → L3kAWB2a.js} +1 -1
- package/.output/public/_nuxt/McL25vkx.js +34 -0
- package/.output/public/_nuxt/Nn93e_Mz.js +1 -0
- package/.output/public/_nuxt/TagBadge.By1E6r4y.css +1 -0
- package/.output/public/_nuxt/UdR3DBPS.js +1 -0
- package/.output/public/_nuxt/Und3xXFc.js +5 -0
- package/.output/public/_nuxt/_mj6CfPa.js +1 -0
- package/.output/public/_nuxt/b-GYfcrQ.js +1 -0
- package/.output/public/_nuxt/bLcjFslv.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/e659b3e1-0e61-4971-940e-10063f9f4763.json +1 -0
- package/.output/public/_nuxt/entry.DmptwB51.css +1 -0
- package/.output/public/_nuxt/{wHnZ9OaL.js → hC_z4G8p.js} +1 -1
- package/.output/public/_nuxt/{DZOS7Fh7.js → hNh4CIL0.js} +1 -1
- package/.output/public/_nuxt/{kjYMoWWx.js → l5WKbU4h.js} +3 -3
- package/.output/public/_nuxt/oAClCn_h.js +1 -0
- package/.output/public/_nuxt/{gnCL8GjZ.js → pQqGiNch.js} +1 -1
- package/.output/public/_nuxt/ryMzSDUj.js +2 -0
- package/.output/public/demo/seed.version.json +2 -2
- package/.output/server/chunks/_/ai-prompt-preview.mjs +38 -0
- package/.output/server/chunks/_/ai-prompt-preview.mjs.map +1 -0
- package/.output/server/chunks/_/collect.mjs +122 -0
- package/.output/server/chunks/_/collect.mjs.map +1 -0
- package/.output/server/chunks/_/markers.mjs +1 -1
- package/.output/server/chunks/_/quarantine.mjs +112 -0
- package/.output/server/chunks/_/quarantine.mjs.map +1 -0
- package/.output/server/chunks/_/users.mjs +1 -1
- package/.output/server/chunks/build/{Alert-Bp1Wz_sq.mjs → Alert-C4xq8lao.mjs} +2 -2
- package/.output/server/chunks/build/Alert-C4xq8lao.mjs.map +1 -0
- package/.output/server/chunks/build/{Breadcrumb-C9ZPTLym.mjs → Breadcrumb-Ak2Lg3oM.mjs} +3 -3
- package/.output/server/chunks/build/Breadcrumb-Ak2Lg3oM.mjs.map +1 -0
- package/.output/server/chunks/build/{BreadcrumbNav-C3y42Vun.mjs → BreadcrumbNav-DO7I_z-n.mjs} +3 -3
- package/.output/server/chunks/build/BreadcrumbNav-DO7I_z-n.mjs.map +1 -0
- package/.output/server/chunks/build/{BrowserBadge-DNCp9pF-.mjs → BrowserBadge-MFvBwxmD.mjs} +67 -7
- package/.output/server/chunks/build/BrowserBadge-MFvBwxmD.mjs.map +1 -0
- package/.output/server/chunks/build/{ChartCard-Fr557IbV.mjs → ChartCard-Y1UKwMsf.mjs} +2 -2
- package/.output/server/chunks/build/ChartCard-Y1UKwMsf.mjs.map +1 -0
- package/.output/server/chunks/build/{Checkbox-cVOSIY93.mjs → Checkbox-4Q5d0fa0.mjs} +8 -8
- package/.output/server/chunks/build/Checkbox-4Q5d0fa0.mjs.map +1 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs +1492 -0
- package/.output/server/chunks/build/CiEnvCard-DB5DvBh1.mjs.map +1 -0
- package/.output/server/chunks/build/{CodeBlock-BGwNmJ8J.mjs → CodeBlock-BgE-NSmE.mjs} +7 -22
- package/.output/server/chunks/build/CodeBlock-BgE-NSmE.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardNavbar-Bdp-OwTN.mjs → DashboardNavbar-BHmMSPX7.mjs} +3 -3
- package/.output/server/chunks/build/DashboardNavbar-BHmMSPX7.mjs.map +1 -0
- package/.output/server/chunks/build/{DashboardSidebarToggle-Ji6ADuqF.mjs → DashboardSidebarToggle-DCTnHiIv.mjs} +3 -3
- package/.output/server/chunks/build/DashboardSidebarToggle-DCTnHiIv.mjs.map +1 -0
- package/.output/server/chunks/build/{DataLocationCard-D6xSOrme.mjs → DataLocationCard-B_YHdzSz.mjs} +3 -3
- package/.output/server/chunks/build/DataLocationCard-B_YHdzSz.mjs.map +1 -0
- package/.output/server/chunks/build/{DiagnosisPanel-DV1xwGu4.mjs → DiagnosisPanel-CALyEmcJ.mjs} +17 -528
- package/.output/server/chunks/build/DiagnosisPanel-CALyEmcJ.mjs.map +1 -0
- package/.output/server/chunks/build/DurationValue-D20oGbnc.mjs +43 -0
- package/.output/server/chunks/build/DurationValue-D20oGbnc.mjs.map +1 -0
- package/.output/server/chunks/build/{EmptyState-DV3oT_xz.mjs → EmptyState-DC2q_7TD.mjs} +3 -3
- package/.output/server/chunks/build/EmptyState-DC2q_7TD.mjs.map +1 -0
- package/.output/server/chunks/build/{EntityLinks-DeOP13Kr.mjs → EntityLinks-BBHWssHH.mjs} +6 -6
- package/.output/server/chunks/build/EntityLinks-BBHWssHH.mjs.map +1 -0
- package/.output/server/chunks/build/{EnvManagedBadge-Qpn58Nmr.mjs → EnvManagedBadge-UwD2b9v2.mjs} +3 -3
- package/.output/server/chunks/build/EnvManagedBadge-UwD2b9v2.mjs.map +1 -0
- package/.output/server/chunks/build/{FormField-B-GSn_VR.mjs → FormField-B0HKsdMd.mjs} +3 -3
- package/.output/server/chunks/build/FormField-B0HKsdMd.mjs.map +1 -0
- package/.output/server/chunks/build/{HelpHint-YEMWtKu1.mjs → HelpHint-DrcIv-Oj.mjs} +53 -6
- package/.output/server/chunks/build/HelpHint-DrcIv-Oj.mjs.map +1 -0
- package/.output/server/chunks/build/{Label-DBvbHd3A.mjs → Label-DYDR1Oeh.mjs} +2 -2
- package/.output/server/chunks/build/Label-DYDR1Oeh.mjs.map +1 -0
- package/.output/server/chunks/build/{MiniRunBars-C3HG-EYm.mjs → MiniRunBars-CZMugDrh.mjs} +2 -2
- package/.output/server/chunks/build/MiniRunBars-CZMugDrh.mjs.map +1 -0
- package/.output/server/chunks/build/{Modal-CfA78Hm1.mjs → Modal-pSDlXzT3.mjs} +2 -2
- package/.output/server/chunks/build/Modal-pSDlXzT3.mjs.map +1 -0
- package/.output/server/chunks/build/{OpenInIdeLink-B92wosXu.mjs → OpenInIdeLink-CQWKKChd.mjs} +6 -6
- package/.output/server/chunks/build/{OpenInIdeLink-B92wosXu.mjs.map → OpenInIdeLink-CQWKKChd.mjs.map} +1 -1
- package/.output/server/chunks/build/{ProjectTestCasesTable-9Ia825h8.mjs → ProjectTestCasesTable-Bo61P5K1.mjs} +120 -45
- package/.output/server/chunks/build/ProjectTestCasesTable-Bo61P5K1.mjs.map +1 -0
- package/.output/server/chunks/build/{RovingFocusItem-CxhHdNGo.mjs → RovingFocusItem--OEHI2P3.mjs} +2 -2
- package/.output/server/chunks/build/RovingFocusItem--OEHI2P3.mjs.map +1 -0
- package/.output/server/chunks/build/{RunReports-BpJqLHY9.mjs → RunReports-DFLv51TX.mjs} +8 -6
- package/.output/server/chunks/build/RunReports-DFLv51TX.mjs.map +1 -0
- package/.output/server/chunks/build/{RunStatusBadge-BhmJ_RKM.mjs → RunStatusBadge-FfGb6bkW.mjs} +3 -2
- package/.output/server/chunks/build/RunStatusBadge-FfGb6bkW.mjs.map +1 -0
- package/.output/server/chunks/build/{SectionCard-COd9TuDq.mjs → SectionCard-CN-v0FZ_.mjs} +2 -2
- package/.output/server/chunks/build/SectionCard-CN-v0FZ_.mjs.map +1 -0
- package/.output/server/chunks/build/{Select-ppPz926C.mjs → Select-5DK9frQ7.mjs} +4 -4
- package/.output/server/chunks/build/Select-5DK9frQ7.mjs.map +1 -0
- package/.output/server/chunks/build/{SelectMenu-799c_Ils.mjs → SelectMenu-D-2FSqBU.mjs} +939 -7
- package/.output/server/chunks/build/{SelectMenu-799c_Ils.mjs.map → SelectMenu-D-2FSqBU.mjs.map} +1 -1
- package/.output/server/chunks/build/{Separator-CxZdx8kw.mjs → Separator-CR4WcEKD.mjs} +2 -2
- package/.output/server/chunks/build/Separator-CR4WcEKD.mjs.map +1 -0
- package/.output/server/chunks/build/{SettingsField-DDD4oqys.mjs → SettingsField-BZfx4ma1.mjs} +6 -6
- package/.output/server/chunks/build/SettingsField-BZfx4ma1.mjs.map +1 -0
- package/.output/server/chunks/build/{Slideover-B95Rj237.mjs → Slideover-D270EZZD.mjs} +3 -3
- package/.output/server/chunks/build/Slideover-D270EZZD.mjs.map +1 -0
- package/.output/server/chunks/build/{Switch-xQQ3_ME1.mjs → Switch-B5Fp8ULt.mjs} +5 -5
- package/.output/server/chunks/build/Switch-B5Fp8ULt.mjs.map +1 -0
- package/.output/server/chunks/build/{Table-CPhhVzDv.mjs → Table-BRk04Hd2.mjs} +3 -3
- package/.output/server/chunks/build/Table-BRk04Hd2.mjs.map +1 -0
- package/.output/server/chunks/build/{Tabs-BV9XqjoO.mjs → Tabs-BkSOnbaB.mjs} +3 -3
- package/.output/server/chunks/build/Tabs-BkSOnbaB.mjs.map +1 -0
- package/.output/server/chunks/build/TagBadge-DwzoFCBb.mjs +31 -0
- package/.output/server/chunks/build/TagBadge-DwzoFCBb.mjs.map +1 -0
- package/.output/server/chunks/build/TagBadge-styles.jhuZ4NjP.mjs +8 -0
- package/.output/server/chunks/build/TagBadge-styles.jhuZ4NjP.mjs.map +1 -0
- package/.output/server/chunks/build/{TestCaseHistoryChart-DMb-xSJa.mjs → TestCaseHistoryChart-CSi64vVA.mjs} +6 -6
- package/.output/server/chunks/build/TestCaseHistoryChart-CSi64vVA.mjs.map +1 -0
- package/.output/server/chunks/build/TestMetaBadges-D5_yUtIP.mjs +200 -0
- package/.output/server/chunks/build/TestMetaBadges-D5_yUtIP.mjs.map +1 -0
- package/.output/server/chunks/build/{TestStatusBar-CEzt76wk.mjs → TestStatusBar-DX3EhlyP.mjs} +15 -15
- package/.output/server/chunks/build/TestStatusBar-DX3EhlyP.mjs.map +1 -0
- package/.output/server/chunks/build/{Textarea-DrrqQUVG.mjs → Textarea-Dv2-lOvW.mjs} +2 -2
- package/.output/server/chunks/build/Textarea-Dv2-lOvW.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-7vwuDPrZ.mjs → Tooltip-Dv4htNP6.mjs} +3 -3
- package/.output/server/chunks/build/Tooltip-Dv4htNP6.mjs.map +1 -0
- package/.output/server/chunks/build/{VisuallyHiddenInput-C9eJVpPW.mjs → VisuallyHiddenInput-BHvzNumK.mjs} +2 -2
- package/.output/server/chunks/build/VisuallyHiddenInput-BHvzNumK.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-CE0Gso6i.mjs → _id_-BdG37K7s.mjs} +91 -42
- package/.output/server/chunks/build/_id_-BdG37K7s.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-bWcP2xFl.mjs → _id_-BdJs7BJZ.mjs} +719 -448
- package/.output/server/chunks/build/_id_-BdJs7BJZ.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-B2yirIuA.mjs → _id_-BxA6IgWr.mjs} +831 -368
- package/.output/server/chunks/build/_id_-BxA6IgWr.mjs.map +1 -0
- package/.output/server/chunks/build/{_id_-B4V5fop6.mjs → _id_-C_uSBiyU.mjs} +296 -60
- package/.output/server/chunks/build/{_id_-B4V5fop6.mjs.map → _id_-C_uSBiyU.mjs.map} +1 -1
- package/.output/server/chunks/build/{about-CoJjvUwM.mjs → about-BE0UV-8-.mjs} +456 -61
- package/.output/server/chunks/build/about-BE0UV-8-.mjs.map +1 -0
- package/.output/server/chunks/build/{account-Cn-eZqXM.mjs → account-DAfvaD-F.mjs} +21 -9
- package/.output/server/chunks/build/account-DAfvaD-F.mjs.map +1 -0
- package/.output/server/chunks/build/{ai-7jdaPOmj.mjs → ai-Cn05ch0u.mjs} +45 -23
- package/.output/server/chunks/build/{ai-7jdaPOmj.mjs.map → ai-Cn05ch0u.mjs.map} +1 -1
- package/.output/server/chunks/build/{analytics-B276WPeU.mjs → analytics-Bo_B_jko.mjs} +66 -41
- package/.output/server/chunks/build/analytics-Bo_B_jko.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/compare-RxHSOdsO.mjs +12 -0
- package/.output/server/chunks/build/{db.client-aHcD0wyX.mjs → db.client-CQoVTYB9.mjs} +83 -5
- package/.output/server/chunks/build/db.client-CQoVTYB9.mjs.map +1 -0
- package/.output/server/chunks/build/{default-BSzdkM_L.mjs → default-CbNHaFsy.mjs} +622 -78
- package/.output/server/chunks/build/default-CbNHaFsy.mjs.map +1 -0
- package/.output/server/chunks/build/{docs-BN_x1OW3.mjs → docs-B_llWMxx.mjs} +30 -49
- package/.output/server/chunks/build/{docs-BN_x1OW3.mjs.map → docs-B_llWMxx.mjs.map} +1 -1
- package/.output/server/chunks/build/{edit-C9Z7oZeu.mjs → edit-J0asTFg8.mjs} +29 -18
- package/.output/server/chunks/build/edit-J0asTFg8.mjs.map +1 -0
- package/.output/server/chunks/build/{fetch-8kznMtBM.mjs → fetch-B4FwBOzu.mjs} +3 -3
- package/.output/server/chunks/build/fetch-B4FwBOzu.mjs.map +1 -0
- package/.output/server/chunks/build/{forgot-password-BqPF4Rxs.mjs → forgot-password-CC__1OnV.mjs} +17 -5
- package/.output/server/chunks/build/forgot-password-CC__1OnV.mjs.map +1 -0
- package/.output/server/chunks/build/{help-content-DmFnuhNu.mjs → help-content-C876a9WD.mjs} +37 -8
- package/.output/server/chunks/build/help-content-C876a9WD.mjs.map +1 -0
- package/.output/server/chunks/build/import-CS9oylTN.mjs +1021 -0
- package/.output/server/chunks/build/import-CS9oylTN.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CULN3-en.mjs → index-CU2nZhAa.mjs} +113 -42
- package/.output/server/chunks/build/index-CU2nZhAa.mjs.map +1 -0
- package/.output/server/chunks/build/{index-BR9hw6qk.mjs → index-DE45ycdZ.mjs} +51 -31
- package/.output/server/chunks/build/index-DE45ycdZ.mjs.map +1 -0
- package/.output/server/chunks/build/{index-BK9PTRpd.mjs → index-e9skCi-V.mjs} +85 -69
- package/.output/server/chunks/build/{index-BK9PTRpd.mjs.map → index-e9skCi-V.mjs.map} +1 -1
- package/.output/server/chunks/build/{index-DVUtBexc.mjs → index-hGHlmyxj.mjs} +1520 -288
- package/.output/server/chunks/build/index-hGHlmyxj.mjs.map +1 -0
- package/.output/server/chunks/build/{index-Ba-Fifra.mjs → index-tR6owKzj.mjs} +18 -6
- package/.output/server/chunks/build/index-tR6owKzj.mjs.map +1 -0
- package/.output/server/chunks/build/{isValueEqualOrExist-DBZjbD_3.mjs → isValueEqualOrExist-D2qw9YEr.mjs} +3 -3
- package/.output/server/chunks/build/isValueEqualOrExist-D2qw9YEr.mjs.map +1 -0
- package/.output/server/chunks/build/{login-D2XZDuek.mjs → login-Da4u1IlW.mjs} +19 -7
- package/.output/server/chunks/build/login-Da4u1IlW.mjs.map +1 -0
- package/.output/server/chunks/build/{mcp-_o6cMS6m.mjs → mcp-uhVCCwQM.mjs} +359 -24
- package/.output/server/chunks/build/mcp-uhVCCwQM.mjs.map +1 -0
- package/.output/server/chunks/build/{notifications-Dzm9c0u_.mjs → notifications-fx_qnKGA.mjs} +27 -21
- package/.output/server/chunks/build/notifications-fx_qnKGA.mjs.map +1 -0
- package/.output/server/chunks/build/pr-feedback-X6-70iF0.mjs +368 -0
- package/.output/server/chunks/build/pr-feedback-X6-70iF0.mjs.map +1 -0
- package/.output/server/chunks/build/{reset-password-gpFzIEDj.mjs → reset-password-BmrUS4ZD.mjs} +17 -5
- package/.output/server/chunks/build/reset-password-BmrUS4ZD.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +238 -36
- package/.output/server/chunks/build/{settings-pNyPBXVa.mjs → settings-CCYe7rsc.mjs} +23 -10
- package/.output/server/chunks/build/settings-CCYe7rsc.mjs.map +1 -0
- package/.output/server/chunks/build/{settings-metadata-B0wo5R-W.mjs → settings-metadata-DrEqWcW-.mjs} +11 -2
- package/.output/server/chunks/build/settings-metadata-DrEqWcW-.mjs.map +1 -0
- package/.output/server/chunks/build/{storage-XelzuyPy.mjs → storage-CJEmviCD.mjs} +41 -31
- package/.output/server/chunks/build/storage-CJEmviCD.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +1 -0
- package/.output/server/chunks/build/{tags-DrCQ7QSw.mjs → tags-DauTe_F-.mjs} +22 -10
- package/.output/server/chunks/build/tags-DauTe_F-.mjs.map +1 -0
- package/.output/server/chunks/build/{test-cases-pmOxi-AN.mjs → test-cases-thBbAykw.mjs} +38 -24
- package/.output/server/chunks/build/test-cases-thBbAykw.mjs.map +1 -0
- package/.output/server/chunks/build/{timeout-hygiene-CNs71Iah.mjs → timeout-hygiene-CbnSaVbK.mjs} +20 -8
- package/.output/server/chunks/build/timeout-hygiene-CbnSaVbK.mjs.map +1 -0
- package/.output/server/chunks/build/{useAiStatus-ZO987RY7.mjs → useAiStatus-CxjMmDDY.mjs} +89 -89
- package/.output/server/chunks/build/useAiStatus-CxjMmDDY.mjs.map +1 -0
- package/.output/server/chunks/build/{useCopy-BQQKcwlq.mjs → useCopy-CeKWgHyT.mjs} +2 -2
- package/.output/server/chunks/build/useCopy-CeKWgHyT.mjs.map +1 -0
- package/.output/server/chunks/build/{PageStateCard-Bwee6JTk.mjs → useCopyRich-RJKhWoyj.mjs} +472 -63
- package/.output/server/chunks/build/useCopyRich-RJKhWoyj.mjs.map +1 -0
- package/.output/server/chunks/build/useDesktopDownload-BepjqxOt.mjs +46 -0
- package/.output/server/chunks/build/useDesktopDownload-BepjqxOt.mjs.map +1 -0
- package/.output/server/chunks/build/{useFormControl-BLpq1s4O.mjs → useFormControl-CZ9So7iX.mjs} +2 -2
- package/.output/server/chunks/build/useFormControl-CZ9So7iX.mjs.map +1 -0
- package/.output/server/chunks/build/{useOpenInIde-kMZ7Jw5c.mjs → useOpenInIde-BbTnPhFA.mjs} +3 -3
- package/.output/server/chunks/build/useOpenInIde-BbTnPhFA.mjs.map +1 -0
- package/.output/server/chunks/build/{useSettingsNav-NjI2seBy.mjs → useSettingsNav-DnQKacz8.mjs} +6 -6
- package/.output/server/chunks/build/useSettingsNav-DnQKacz8.mjs.map +1 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs +11 -0
- package/.output/server/chunks/build/useTauri-Kf3HE_42.mjs.map +1 -0
- package/.output/server/chunks/build/{useTreeViewCookie-DVYpxW-p.mjs → useTreeViewCookie-CQjQdTkH.mjs} +2 -2
- package/.output/server/chunks/build/useTreeViewCookie-CQjQdTkH.mjs.map +1 -0
- package/.output/server/chunks/build/{users-NmAUZs3i.mjs → users-CTUqXyGh.mjs} +22 -10
- package/.output/server/chunks/build/users-CTUqXyGh.mjs.map +1 -0
- package/.output/server/chunks/build/{wasted-time-CguAF9zc.mjs → wasted-time-BNTPIyrC.mjs} +26 -14
- package/.output/server/chunks/build/wasted-time-BNTPIyrC.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6438 -1964
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/__piwi/session.get.mjs +13 -1
- package/.output/server/chunks/routes/__piwi/session.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/admin/cleanup.delete.mjs +12 -0
- package/.output/server/chunks/routes/api/admin/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/admin/stats.get.mjs +12 -0
- package/.output/server/chunks/routes/api/admin/stats.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/ai/status.get.mjs +12 -0
- package/.output/server/chunks/routes/api/ai/status.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs +12 -0
- package/.output/server/chunks/routes/api/analytics/_widget_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/change-password.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/change-password.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/forgot-password.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/forgot-password.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/login.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/logout.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/me.get.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/me.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/callback.get.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/oauth/_provider/callback.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/login.get.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/oauth/_provider/login.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/oauth/_provider/unlink.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/oauth/_provider/unlink.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/reset-password.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/reset-password.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/send-verify-email.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/send-verify-email.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/setup.get.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/setup.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/setup.post.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/setup.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/auth/verify-email.get.mjs +12 -0
- package/.output/server/chunks/routes/api/auth/verify-email.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/channels/_id/test.post.mjs +12 -0
- package/.output/server/chunks/routes/api/channels/_id/test.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/channels/_id_.delete.mjs +12 -0
- package/.output/server/chunks/routes/api/channels/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/approve.post.mjs +12 -0
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/approve.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/reject.post.mjs +12 -0
- package/.output/server/chunks/routes/api/cluster-merge-suggestions/_id/reject.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs +88 -0
- package/.output/server/chunks/routes/api/desktop/import-local.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs +12 -0
- package/.output/server/chunks/routes/api/desktop/reporter-config.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/base-commit.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/branches.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commit-diff.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/commits.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs +24 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/context.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose/stream.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnose.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnoses.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/diagnosis.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/export.get.mjs +64 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/export.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/extract-cases.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/fix-plan.get.mjs +56 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/fix-plan.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id/status.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-clusters/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/failure-diagnoses/_id/feedback.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs +13 -32
- package/.output/server/chunks/routes/api/files/_...path_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/health.get.mjs +13 -1
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get.mjs +12 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get2.mjs +13 -1
- package/.output/server/chunks/routes/api/index.get2.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get3.mjs +13 -1
- package/.output/server/chunks/routes/api/index.get3.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get4.mjs +13 -1
- package/.output/server/chunks/routes/api/index.get4.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.get5.mjs +12 -0
- package/.output/server/chunks/routes/api/index.get5.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post.mjs +12 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post2.mjs +13 -1
- package/.output/server/chunks/routes/api/index.post2.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post3.mjs +13 -1
- package/.output/server/chunks/routes/api/index.post3.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post4.mjs +13 -1
- package/.output/server/chunks/routes/api/index.post4.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post5.mjs +13 -1
- package/.output/server/chunks/routes/api/index.post5.mjs.map +1 -1
- package/.output/server/chunks/routes/api/index.post6.mjs +12 -0
- package/.output/server/chunks/routes/api/index.post6.mjs.map +1 -1
- package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs +13 -1
- package/.output/server/chunks/routes/api/links/_id/refresh.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/links/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/links/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/links/_id_.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/links/_id_.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/markers/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/markers/_id_.put.mjs +13 -1
- package/.output/server/chunks/routes/api/markers/_id_.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/notifications/stream.get.mjs +13 -1
- package/.output/server/chunks/routes/api/notifications/stream.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/cluster-merge-suggestions.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/failure-clusters.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-classify.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs +22 -2
- package/.output/server/chunks/routes/api/projects/_id/flaky-tests.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/latest-run.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/markers.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/members.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/members.put.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/members.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/performance.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/quarantine/_testCaseId_.delete.mjs +58 -0
- package/.output/server/chunks/routes/api/projects/_id/quarantine/_testCaseId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/projects/_id/quarantine.get.mjs +57 -0
- package/.output/server/chunks/routes/api/projects/_id/quarantine.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/projects/_id/quarantine.post.mjs +72 -0
- package/.output/server/chunks/routes/api/projects/_id/quarantine.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/slow-tests.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/spec-health.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/test-cases.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id/timeout-opportunities.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/_id_.put.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/_id_.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/menu.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/menu.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects/overview.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects/overview.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/projects.get.mjs +13 -1
- package/.output/server/chunks/routes/api/projects.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/search.get.mjs +13 -1
- package/.output/server/chunks/routes/api/search.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai/limits.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai/models.post.mjs +12 -0
- package/.output/server/chunks/routes/api/settings/ai/models.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai/test.post.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai/test.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai/usage.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/ai.put.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/ai.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/pr-feedback.get.mjs +57 -0
- package/.output/server/chunks/routes/api/settings/pr-feedback.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings/pr-feedback.put.mjs +63 -0
- package/.output/server/chunks/routes/api/settings/pr-feedback.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/settings/smtp/test.post.mjs +12 -0
- package/.output/server/chunks/routes/api/settings/smtp/test.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/smtp.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/smtp.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/timeout-hygiene.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs +13 -1
- package/.output/server/chunks/routes/api/settings/wasted-waits.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/stream.get.mjs +13 -1
- package/.output/server/chunks/routes/api/stream.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/subscriptions/_id_.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/tags/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tags/_id_.put.mjs +13 -1
- package/.output/server/chunks/routes/api/tags/_id_.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-cases/_id/history.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-cases/_id/stability-trend.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-cases/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnose.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs +25 -3
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis-context.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/diagnosis.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/export.get.mjs +60 -0
- package/.output/server/chunks/routes/api/test-run-cases/_id/export.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id/traces.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-run-cases/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/begin.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/case-files.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs +17 -3
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/dom-snapshot.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/environment-diff.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-healing.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/locator-pick.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network-body.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-network.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/trace-stacks.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/cases/_caseId/visual-diff.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/events.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/failure-groups.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs +15 -1
- package/.output/server/chunks/routes/api/test-runs/_id/finish.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs +196 -0
- package/.output/server/chunks/routes/api/test-runs/_id/gate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/heartbeat.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/insights.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/network-requests.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/regression-context.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/stream.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id/summary.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/_id_.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs +77 -0
- package/.output/server/chunks/routes/api/test-runs/import/check.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs +77 -0
- package/.output/server/chunks/routes/api/test-runs/import.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/recent.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/setup.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/setup.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/start.post.mjs +13 -1
- package/.output/server/chunks/routes/api/test-runs/start.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs +32 -15
- package/.output/server/chunks/routes/api/test-runs/submit.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs +21 -6
- package/.output/server/chunks/routes/api/test-runs/upload.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs +156 -3
- package/.output/server/chunks/routes/api/tests/cleanup.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs +13 -1
- package/.output/server/chunks/routes/api/traces/check.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/api-keys/_keyId_.delete.mjs +12 -0
- package/.output/server/chunks/routes/api/users/_id/api-keys/_keyId_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.get.mjs +12 -0
- package/.output/server/chunks/routes/api/users/_id/index.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs +13 -1
- package/.output/server/chunks/routes/api/users/_id/index.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs +13 -1
- package/.output/server/chunks/routes/api/users/_id/invite.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs +13 -1
- package/.output/server/chunks/routes/api/users/_id/projects.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs +13 -1
- package/.output/server/chunks/routes/api/users/_id/projects.put.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +12 -0
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/users/_id_.patch.mjs +12 -0
- package/.output/server/chunks/routes/api/users/_id_.patch.mjs.map +1 -1
- package/.output/server/chunks/routes/api/version.get.mjs +13 -1
- package/.output/server/chunks/routes/api/version.get.mjs.map +1 -1
- package/.output/server/chunks/routes/mcp.post.mjs +13 -1
- package/.output/server/chunks/routes/mcp.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +1 -1
- package/.output/server/chunks/tasks/sweep.mjs +12 -0
- package/.output/server/chunks/tasks/sweep.mjs.map +1 -1
- package/.output/server/chunks/tasks/sweep2.mjs +12 -0
- package/.output/server/chunks/tasks/sweep2.mjs.map +1 -1
- package/.output/server/database/migrations/0039_remarkable_jean_grey.sql +2 -0
- package/.output/server/database/migrations/0040_organic_phalanx.sql +8 -0
- package/.output/server/database/migrations/0041_tense_gravity.sql +5 -0
- package/.output/server/database/migrations/0042_burly_hemingway.sql +19 -0
- package/.output/server/database/migrations/meta/0039_snapshot.json +3403 -0
- package/.output/server/database/migrations/meta/0040_snapshot.json +3457 -0
- package/.output/server/database/migrations/meta/0041_snapshot.json +3492 -0
- package/.output/server/database/migrations/meta/0042_snapshot.json +3618 -0
- package/.output/server/database/migrations/meta/_journal.json +28 -0
- package/.output/server/database/migrations-pg/0040_lazy_layla_miller.sql +2 -0
- package/.output/server/database/migrations-pg/0041_light_screwball.sql +8 -0
- package/.output/server/database/migrations-pg/0042_serious_layla_miller.sql +5 -0
- package/.output/server/database/migrations-pg/0043_wonderful_mordo.sql +19 -0
- package/.output/server/database/migrations-pg/meta/0040_snapshot.json +4060 -0
- package/.output/server/database/migrations-pg/meta/0041_snapshot.json +4123 -0
- package/.output/server/database/migrations-pg/meta/0042_snapshot.json +4153 -0
- package/.output/server/database/migrations-pg/meta/0043_snapshot.json +4308 -0
- package/.output/server/database/migrations-pg/meta/_journal.json +28 -0
- package/.output/server/index.mjs +13 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/fflate/esm/index.mjs +2710 -0
- package/.output/server/node_modules/fflate/package.json +128 -0
- package/.output/server/node_modules/highlight.js/es/languages/yaml.js +213 -0
- package/.output/server/node_modules/marked/lib/marked.esm.js +72 -0
- package/.output/server/node_modules/marked/package.json +103 -0
- package/.output/server/package.json +3 -1
- package/package.json +2 -2
- package/.output/public/_nuxt/9-wVZMur.js +0 -4
- package/.output/public/_nuxt/B-5GukRk.js +0 -1
- package/.output/public/_nuxt/B1G3GGhQ.js +0 -1
- package/.output/public/_nuxt/B1zMFx24.js +0 -1
- package/.output/public/_nuxt/B4jvLMfS.js +0 -1
- package/.output/public/_nuxt/BBnX5xw4.js +0 -2
- package/.output/public/_nuxt/BHpUiv6j.js +0 -3
- package/.output/public/_nuxt/BLOUs6AE.js +0 -5
- package/.output/public/_nuxt/BT6p4Pgt.js +0 -2
- package/.output/public/_nuxt/BUXSUkJ_.js +0 -1
- package/.output/public/_nuxt/BVf6Yx9V.js +0 -26
- package/.output/public/_nuxt/BbS6Bwby.js +0 -1
- package/.output/public/_nuxt/Bd3HqPMF.js +0 -1
- package/.output/public/_nuxt/BeKvLsja.js +0 -2
- package/.output/public/_nuxt/BeUm5UNV.js +0 -1
- package/.output/public/_nuxt/BfV444H3.js +0 -3
- package/.output/public/_nuxt/BjKamgHq.js +0 -1
- package/.output/public/_nuxt/BoJdjCVl.js +0 -4
- package/.output/public/_nuxt/BreO2PiA.js +0 -1
- package/.output/public/_nuxt/BvIDC_R-.js +0 -1
- package/.output/public/_nuxt/ByuJWADR.js +0 -34
- package/.output/public/_nuxt/C1dyLp_j.js +0 -1
- package/.output/public/_nuxt/CAUgpKsF.js +0 -2
- package/.output/public/_nuxt/CL9-VLTJ.js +0 -1
- package/.output/public/_nuxt/CazDIG_m.js +0 -1
- package/.output/public/_nuxt/CcXaak_K.js +0 -1
- package/.output/public/_nuxt/CdMuck_X.js +0 -1
- package/.output/public/_nuxt/CfPSts5n.js +0 -1
- package/.output/public/_nuxt/CfROFPse.js +0 -1
- package/.output/public/_nuxt/Cnapl7lZ.js +0 -1
- package/.output/public/_nuxt/CscWZxCi.js +0 -1
- package/.output/public/_nuxt/CuicKV-B.js +0 -34
- package/.output/public/_nuxt/Cyiu1VQD.js +0 -1
- package/.output/public/_nuxt/D6PUPmRC.js +0 -1
- package/.output/public/_nuxt/DCl2yo4g.js +0 -8
- package/.output/public/_nuxt/DHXWp5yD.js +0 -1
- package/.output/public/_nuxt/DHltYerF.js +0 -114
- package/.output/public/_nuxt/DLXydYJb.js +0 -47
- package/.output/public/_nuxt/DRPSi76A.js +0 -1
- package/.output/public/_nuxt/DS53kyHJ.js +0 -1
- package/.output/public/_nuxt/DWhBqv_7.js +0 -1
- package/.output/public/_nuxt/Dd0kK5WH.js +0 -1
- package/.output/public/_nuxt/Df7kUO0m.js +0 -1
- package/.output/public/_nuxt/Dga3Av-m.js +0 -1
- package/.output/public/_nuxt/DgwTpwfB.js +0 -1
- package/.output/public/_nuxt/DkI145a5.js +0 -1
- package/.output/public/_nuxt/DoFBTaDR.js +0 -1
- package/.output/public/_nuxt/Dr_dI5hB.js +0 -1
- package/.output/public/_nuxt/EPZOxdgq.js +0 -1
- package/.output/public/_nuxt/R1nNqTru.js +0 -1
- package/.output/public/_nuxt/S5DLdEpg.js +0 -4
- package/.output/public/_nuxt/builds/meta/7caf3cb3-d272-4dbd-bb3f-1eeb64fab5d1.json +0 -1
- package/.output/public/_nuxt/entry.ChQMshd4.css +0 -1
- package/.output/public/_nuxt/gCELhaU9.js +0 -1
- package/.output/public/_nuxt/ipDzNHcs.js +0 -5
- package/.output/public/_nuxt/kS3boz40.js +0 -1
- package/.output/public/_nuxt/qH_j2A3a.js +0 -1
- package/.output/public/_nuxt/r3SBLxtE.js +0 -1
- package/.output/public/_nuxt/rsiRgrVM.js +0 -1
- package/.output/public/_nuxt/swrbBdtB.js +0 -1
- package/.output/public/sw.js +0 -1
- package/.output/public/workbox-2fbc6a65.js +0 -1
- package/.output/server/chunks/build/Alert-Bp1Wz_sq.mjs.map +0 -1
- package/.output/server/chunks/build/Breadcrumb-C9ZPTLym.mjs.map +0 -1
- package/.output/server/chunks/build/BreadcrumbNav-C3y42Vun.mjs.map +0 -1
- package/.output/server/chunks/build/BrowserBadge-DNCp9pF-.mjs.map +0 -1
- package/.output/server/chunks/build/ChartCard-Fr557IbV.mjs.map +0 -1
- package/.output/server/chunks/build/Checkbox-cVOSIY93.mjs.map +0 -1
- package/.output/server/chunks/build/CiEnvCard-DXPOhdSG.mjs +0 -640
- package/.output/server/chunks/build/CiEnvCard-DXPOhdSG.mjs.map +0 -1
- package/.output/server/chunks/build/CodeBlock-BGwNmJ8J.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardNavbar-Bdp-OwTN.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-Ji6ADuqF.mjs.map +0 -1
- package/.output/server/chunks/build/DataLocationCard-D6xSOrme.mjs.map +0 -1
- package/.output/server/chunks/build/DiagnosisPanel-DV1xwGu4.mjs.map +0 -1
- package/.output/server/chunks/build/EmptyState-DV3oT_xz.mjs.map +0 -1
- package/.output/server/chunks/build/EntityLinks-DeOP13Kr.mjs.map +0 -1
- package/.output/server/chunks/build/EnvManagedBadge-Qpn58Nmr.mjs.map +0 -1
- package/.output/server/chunks/build/FormField-B-GSn_VR.mjs.map +0 -1
- package/.output/server/chunks/build/HelpHint-YEMWtKu1.mjs.map +0 -1
- package/.output/server/chunks/build/Label-DBvbHd3A.mjs.map +0 -1
- package/.output/server/chunks/build/MiniRunBars-C3HG-EYm.mjs.map +0 -1
- package/.output/server/chunks/build/Modal-CfA78Hm1.mjs.map +0 -1
- package/.output/server/chunks/build/PageStateCard-Bwee6JTk.mjs.map +0 -1
- package/.output/server/chunks/build/ProjectTestCasesTable-9Ia825h8.mjs.map +0 -1
- package/.output/server/chunks/build/RovingFocusItem-CxhHdNGo.mjs.map +0 -1
- package/.output/server/chunks/build/RunReports-BpJqLHY9.mjs.map +0 -1
- package/.output/server/chunks/build/RunStatusBadge-BhmJ_RKM.mjs.map +0 -1
- package/.output/server/chunks/build/SectionCard-COd9TuDq.mjs.map +0 -1
- package/.output/server/chunks/build/Select-ppPz926C.mjs.map +0 -1
- package/.output/server/chunks/build/Separator-CxZdx8kw.mjs.map +0 -1
- package/.output/server/chunks/build/SettingsField-DDD4oqys.mjs.map +0 -1
- package/.output/server/chunks/build/Slideover-B95Rj237.mjs.map +0 -1
- package/.output/server/chunks/build/Switch-xQQ3_ME1.mjs.map +0 -1
- package/.output/server/chunks/build/Table-CPhhVzDv.mjs.map +0 -1
- package/.output/server/chunks/build/Tabs-BV9XqjoO.mjs.map +0 -1
- package/.output/server/chunks/build/TagBadge-BDcvvGxw.mjs +0 -47
- package/.output/server/chunks/build/TagBadge-BDcvvGxw.mjs.map +0 -1
- package/.output/server/chunks/build/TestCaseHistoryChart-DMb-xSJa.mjs.map +0 -1
- package/.output/server/chunks/build/TestStatusBar-CEzt76wk.mjs.map +0 -1
- package/.output/server/chunks/build/Textarea-DrrqQUVG.mjs.map +0 -1
- package/.output/server/chunks/build/Tooltip-7vwuDPrZ.mjs.map +0 -1
- package/.output/server/chunks/build/VisuallyHiddenInput-C9eJVpPW.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-B2yirIuA.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-CE0Gso6i.mjs.map +0 -1
- package/.output/server/chunks/build/_id_-bWcP2xFl.mjs.map +0 -1
- package/.output/server/chunks/build/about-CoJjvUwM.mjs.map +0 -1
- package/.output/server/chunks/build/account-Cn-eZqXM.mjs.map +0 -1
- package/.output/server/chunks/build/analytics-B276WPeU.mjs.map +0 -1
- package/.output/server/chunks/build/db.client-aHcD0wyX.mjs.map +0 -1
- package/.output/server/chunks/build/default-BSzdkM_L.mjs.map +0 -1
- package/.output/server/chunks/build/edit-C9Z7oZeu.mjs.map +0 -1
- package/.output/server/chunks/build/fetch-8kznMtBM.mjs.map +0 -1
- package/.output/server/chunks/build/forgot-password-BqPF4Rxs.mjs.map +0 -1
- package/.output/server/chunks/build/help-content-DmFnuhNu.mjs.map +0 -1
- package/.output/server/chunks/build/index-BR9hw6qk.mjs.map +0 -1
- package/.output/server/chunks/build/index-Ba-Fifra.mjs.map +0 -1
- package/.output/server/chunks/build/index-CULN3-en.mjs.map +0 -1
- package/.output/server/chunks/build/index-DVUtBexc.mjs.map +0 -1
- package/.output/server/chunks/build/isValueEqualOrExist-DBZjbD_3.mjs.map +0 -1
- package/.output/server/chunks/build/login-D2XZDuek.mjs.map +0 -1
- package/.output/server/chunks/build/mcp-_o6cMS6m.mjs.map +0 -1
- package/.output/server/chunks/build/notifications-Dzm9c0u_.mjs.map +0 -1
- package/.output/server/chunks/build/reset-password-gpFzIEDj.mjs.map +0 -1
- package/.output/server/chunks/build/settings-metadata-B0wo5R-W.mjs.map +0 -1
- package/.output/server/chunks/build/settings-pNyPBXVa.mjs.map +0 -1
- package/.output/server/chunks/build/storage-XelzuyPy.mjs.map +0 -1
- package/.output/server/chunks/build/tags-DrCQ7QSw.mjs.map +0 -1
- package/.output/server/chunks/build/test-cases-pmOxi-AN.mjs.map +0 -1
- package/.output/server/chunks/build/timeout-hygiene-CNs71Iah.mjs.map +0 -1
- package/.output/server/chunks/build/useAiStatus-ZO987RY7.mjs.map +0 -1
- package/.output/server/chunks/build/useCopy-BQQKcwlq.mjs.map +0 -1
- package/.output/server/chunks/build/useFormControl-BLpq1s4O.mjs.map +0 -1
- package/.output/server/chunks/build/useOpenInIde-kMZ7Jw5c.mjs.map +0 -1
- package/.output/server/chunks/build/useSettingsNav-NjI2seBy.mjs.map +0 -1
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs +0 -7
- package/.output/server/chunks/build/useTauri-lRT8zkLv.mjs.map +0 -1
- package/.output/server/chunks/build/useTreeViewCookie-DVYpxW-p.mjs.map +0 -1
- package/.output/server/chunks/build/users-NmAUZs3i.mjs.map +0 -1
- package/.output/server/chunks/build/virtualizer-ZaqK4guJ.mjs +0 -940
- package/.output/server/chunks/build/virtualizer-ZaqK4guJ.mjs.map +0 -1
- package/.output/server/chunks/build/wasted-time-CguAF9zc.mjs.map +0 -1
- /package/.output/public/_nuxt/{PageStateCard.BrM5HWjY.css → useCopyRich.BrM5HWjY.css} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{d as he,o as _,f as L,g as I,V as N,W as Q,k as n,X as ia,a2 as Ee,a3 as Me,b4 as at,a6 as Pe,b1 as Wa,a4 as Ne,a5 as Ce,c as U,j as B,_ as ke,bd as oa,ac as At,i as V,q,F as pe,y as we,be as la,v as P,a0 as Te,a1 as De,h as M,bf as nt,b5 as Be,bc as Le,a8 as Oe,bg as ra,N as Ga,ar as ua,Q as ca,A as Ke,aw as Tt,C as Ja,r as H,bh as Ya,Y as Qa,$ as Xa,H as re,K as Dt,av as Za,B as Bt,af as en,ad as tn,a7 as st,bi as an,bj as nn,bk as sn,bl as on,m as ce,t as ie,ag as ln,bm as rn,bn as da,am as fa,E as ze,u as Lt,aP as un,G as it,aC as cn,ab as ge,bo as dn,bp as fn,aQ as pa,x as ha,b2 as pn,aI as ve,b3 as hn,p as Ie,aJ as mn,bq as vn,I as Et,S as gn,br as yn,bs as bn,aM as wn,a9 as ma,bt as kn,l as ye,bu as _n,s as Sn,L as xn,a as va,w as ga,bv as $n,b as In,a$ as Cn,bw as An}from"./Du2W7Jne.js";import{a as ya,b as Tn,_ as Dn,c as Bn,p as Ln}from"./KyA_4Ks-.js";import{_ as En}from"./BT3wGCTI.js";import{u as Mn,_ as On}from"./CIoSMkpp.js";import{a as ba,I as Vt,V as Wt,J as Rn}from"./BicAJ6U8.js";import{_ as jn}from"./DJxlKFGb.js";import{D as Fn,a as Pn,b as zn,c as qn,d as Nn,e as ct,f as dt,g as Kn,_ as rt}from"./BUkim3TM.js";import{i as Hn,L as Un,a as Vn,b as Wn,c as Gn,d as Jn,e as Yn,f as Qn,g as Xn,_ as Zn}from"./CeG9pBAD.js";import{a as es,_ as ts}from"./Bm62iDV5.js";import{_ as as}from"./A1pj0VnG.js";import{_ as wa}from"./AbmKWFQQ.js";import{_ as ka}from"./Dpd16JVI.js";import{_ as ns}from"./Dy-TJ0Mt.js";import{_ as ss}from"./BrQEE053.js";import{_ as is}from"./C1gTN4Q8.js";import{u as Mt}from"./B8zkOmwo.js";import{g as os}from"./DuwtTfO8.js";import{u as _a,s as ls}from"./H94BMf3L.js";import{u as rs}from"./CIrFl3MW.js";import{u as us}from"./CAAwCT7H.js";import"./DfgOx_ou.js";import"./Cbh--1MW.js";import"./BjaRappk.js";import"./_mj6CfPa.js";import"./UdR3DBPS.js";import"./DmkUdSS4.js";import"./B99fbi73.js";import"./DSqHUrvO.js";import"./L3kAWB2a.js";import"./Nn93e_Mz.js";var cs=he({__name:"ListboxGroupLabel",props:{for:{type:String,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"div"}},setup(e){const t=e,s=Hn({id:""});return(i,o)=>(_(),L(n(ia),Q(t,{id:n(s).id}),{default:I(()=>[N(i.$slots,"default")]),_:3},16,["id"]))}}),ds=cs;const fs={slots:{base:"",label:"",trailing:"hidden lg:flex items-center gap-0.5 ms-auto"},variants:{collapsed:{true:{label:"hidden",trailing:"lg:hidden"}}}},ps=Object.assign({inheritAttrs:!1},{__name:"UDashboardSearchButton",props:{icon:{type:[String,Boolean],required:!1,skipCheck:!0},label:{type:String,required:!1},color:{type:null,required:!1,default:"neutral"},variant:{type:null,required:!1},collapsed:{type:Boolean,required:!1,default:!1},tooltip:{type:[Boolean,Object],required:!1,default:!1},kbds:{type:Array,required:!1,default:()=>["meta","k"]},ui:{type:Object,required:!1},class:{type:null,required:!1},activeColor:{type:null,required:!1},activeVariant:{type:null,required:!1},size:{type:null,required:!1},square:{type:Boolean,required:!1},block:{type:Boolean,required:!1},loadingAuto:{type:Boolean,required:!1},onClick:{type:[Function,Array],required:!1},avatar:{type:Object,required:!1},leading:{type:Boolean,required:!1},leadingIcon:{type:null,required:!1},trailing:{type:Boolean,required:!1},trailingIcon:{type:null,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},as:{type:null,required:!1},type:{type:null,required:!1},disabled:{type:Boolean,required:!1},exactActiveClass:{type:String,required:!1},viewTransition:{type:Boolean,required:!1}},setup(e){const t=e,s=Ee(),i=Me("dashboardSearchButton",t),[o,a]=at(),l=()=>nt(s,["trailing"]),u=Pe(Wa(i,"icon","label","variant","collapsed","tooltip","kbds","class","ui")),r=Be(()=>Le(typeof i.tooltip=="boolean"?{}:i.tooltip,{delayDuration:0,content:{side:"right"}})),{t:g}=Ne(),m=Ce(),{toggleSearch:v}=ya({toggleSearch:()=>{}}),c=M(()=>Oe({extend:fs,...m.ui?.dashboardSearchButton||{}})({collapsed:i.collapsed}));return(d,h)=>(_(),U(pe,null,[B(n(o),null,{default:I(()=>[B(ke,Q({icon:n(i).icon===!1?void 0:n(i).icon??n(m).ui.icons.search,label:n(i).label||n(g)("dashboardSearchButton.label"),variant:n(i).variant||(n(i).collapsed?"ghost":"outline")},{...n(u),...n(i).collapsed?{square:!0,"aria-label":n(i).label||n(g)("dashboardSearchButton.label")}:{},...d.$attrs},{class:c.value.base({class:[n(i).ui?.base,n(i).class]}),ui:n(oa)(c.value,n(i).ui),onClick:n(v)}),At({trailing:I(({ui:y})=>[V("span",{"data-slot":"trailing",class:q(c.value.trailing({class:n(i).ui?.trailing}))},[N(d.$slots,"trailing",{ui:y},()=>[n(i).kbds?.length?(_(!0),U(pe,{key:0},we(n(i).kbds,(D,R)=>(_(),L(la,Q({key:R,variant:"subtle"},{ref_for:!0},typeof D=="string"?{value:D}:D),null,16))),128)):P("",!0)])],2)]),_:2},[we(l(),(y,D)=>({name:D,fn:I(R=>[N(d.$slots,D,Te(De(R)))])}))]),1040,["icon","label","variant","class","ui","onClick"])]),_:3}),n(i).collapsed&&n(i).tooltip?(_(),L(En,Q({key:0,text:n(i).label||n(g)("dashboardSearchButton.label")},r.value),{default:I(()=>[B(n(a))]),_:1},16,["text"])):(_(),L(n(a),{key:1}))],64))}}),hs={class:"inline-flex items-center justify-center shrink-0 size-5"},ms=he({__name:"UserMenu",props:{collapsed:{type:Boolean}},setup(e){const t=ra(),s=Ce(),i=Ke(),{authState:o,logout:a}=Ga(),l=Mn(),{openSettings:u}=ba(),r=["red","orange","amber","yellow","lime","green","emerald","teal","cyan","sky","blue","indigo","violet","purple","fuchsia","pink","rose"],g=["slate","gray","zinc","neutral","stone"],m=M(()=>{if(i.public.authEnabled&&o.value.authenticated&&o.value.user){const c=o.value.user.avatarUrl;return{name:o.value.user.name||o.value.user.username,icon:c?void 0:"i-lucide-user",avatar:c?{src:c}:void 0,role:o.value.user.role}}return{name:"Configuration",icon:"i-lucide-cog"}}),v=M(()=>{const c=[];(!i.public.authEnabled||o.value.authenticated&&o.value.user?.role==="administrator")&&c.push(...l.value);const d=[c,[{label:"Theme",icon:"i-lucide-palette",children:[{label:"Primary",slot:"chip",chip:s.ui.colors.primary,content:{align:"center",collisionPadding:16},children:r.map(h=>({label:h,chip:h,slot:"chip",checked:s.ui.colors.primary===h,type:"checkbox",onSelect:y=>{y.preventDefault(),s.ui.colors.primary=h}}))},{label:"Neutral",slot:"chip",chip:s.ui.colors.neutral==="neutral"?"old-neutral":s.ui.colors.neutral,content:{align:"end",collisionPadding:16},children:g.map(h=>({label:h,chip:h==="neutral"?"old-neutral":h,slot:"chip",type:"checkbox",checked:s.ui.colors.neutral===h,onSelect:y=>{y.preventDefault(),s.ui.colors.neutral=h}}))}]},{label:"Appearance",icon:"i-lucide-sun-moon",children:[{label:"Light",icon:"i-lucide-sun",type:"checkbox",checked:t.value==="light",onSelect(h){h.preventDefault(),t.preference="light"}},{label:"Dark",icon:"i-lucide-moon",type:"checkbox",checked:t.value==="dark",onUpdateChecked(h){h&&(t.preference="dark")},onSelect(h){h.preventDefault()}}]},{label:"Open in IDE…",icon:"i-lucide-external-link",onSelect:h=>{h.preventDefault(),u()}}],[{label:"GitHub repository",icon:"i-lucide-github",to:"https://github.com/piwitests/platform",target:"_blank"}]];return i.public.authEnabled&&o.value.authenticated&&!i.public.demoMode&&d.push([{label:"Logout",icon:"i-lucide-log-out",onSelect:async h=>{h.preventDefault(),await a()}}]),d});return(c,d)=>{const h=ke,y=ua;return _(),L(y,{items:n(v),content:{align:"center",collisionPadding:12},ui:{content:e.collapsed?"w-48":"w-(--reka-dropdown-menu-trigger-width)"}},{"chip-leading":I(({item:D})=>[V("div",hs,[V("span",{class:"rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2",style:ca({"--chip-light":`var(--color-${D.chip}-500)`,"--chip-dark":`var(--color-${D.chip}-400)`})},null,4)])]),default:I(()=>[B(h,Q({...n(m),label:e.collapsed?void 0:n(m)?.name,trailingIcon:e.collapsed?void 0:"i-lucide-chevrons-up-down"},{color:"neutral",variant:"ghost",block:"",square:e.collapsed,class:"data-[state=open]:bg-elevated",ui:{trailingIcon:"text-dimmed"}}),null,16,["square"])]),_:1},8,["items","ui"])}}}),vs=Object.assign(ms,{__name:"UserMenu"});(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode('[data-vaul-drawer]{touch-action:none;will-change:transform;transition:transform .5s cubic-bezier(.32,.72,0,1);animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=open]{animation-name:slideFromBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=bottom][data-state=closed]{animation-name:slideToBottom}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=open]{animation-name:slideFromTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=top][data-state=closed]{animation-name:slideToTop}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=open]{animation-name:slideFromLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=left][data-state=closed]{animation-name:slideToLeft}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=open]{animation-name:slideFromRight}[data-vaul-drawer][data-vaul-snap-points=false][data-vaul-drawer-direction=right][data-state=closed]{animation-name:slideToRight}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--initial-transform, 100%),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=top]{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=left]{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}[data-vaul-drawer][data-vaul-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--initial-transform, 100%),0,0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=top],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=bottom]{transform:translate3d(0,var(--snap-point-height, 0),0)}[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=left],[data-vaul-drawer][data-vaul-delayed-snap-points=true][data-vaul-drawer-direction=right]{transform:translate3d(var(--snap-point-height, 0),0,0)}[data-vaul-overlay][data-vaul-snap-points=false]{animation-duration:.5s;animation-timing-function:cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=false][data-state=open]{animation-name:fadeIn}[data-vaul-overlay][data-state=closed]{animation-name:fadeOut}[data-vaul-animate=false]{animation:none!important}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:0;transition:opacity .5s cubic-bezier(.32,.72,0,1)}[data-vaul-overlay][data-vaul-snap-points=true]{opacity:1}[data-vaul-drawer]:not([data-vaul-custom-container=true]):after{content:"";position:absolute;background:inherit;background-color:inherit}[data-vaul-drawer][data-vaul-drawer-direction=top]:after{top:initial;bottom:100%;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=bottom]:after{top:100%;bottom:initial;left:0;right:0;height:200%}[data-vaul-drawer][data-vaul-drawer-direction=left]:after{left:initial;right:100%;top:0;bottom:0;width:200%}[data-vaul-drawer][data-vaul-drawer-direction=right]:after{left:100%;right:initial;top:0;bottom:0;width:200%}[data-vaul-overlay][data-vaul-snap-points=true]:not([data-vaul-snap-points-overlay=true]):not([data-state=closed]){opacity:0}[data-vaul-overlay][data-vaul-snap-points-overlay=true]{opacity:1}[data-vaul-handle]{display:block;position:relative;opacity:.7;background:#e2e2e4;margin-left:auto;margin-right:auto;height:5px;width:32px;border-radius:1rem;touch-action:pan-y}[data-vaul-handle]:hover,[data-vaul-handle]:active{opacity:1}[data-vaul-handle-hitarea]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:max(100%,2.75rem);height:max(100%,2.75rem);touch-action:inherit}@media (hover: hover) and (pointer: fine){[data-vaul-drawer]{-webkit-user-select:none;user-select:none}}@media (pointer: fine){[data-vaul-handle-hitarea]:{width:100%;height:100%}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeOut{to{opacity:0}}@keyframes slideFromBottom{0%{transform:translate3d(0,var(--initial-transform, 100%),0)}to{transform:translateZ(0)}}@keyframes slideToBottom{to{transform:translate3d(0,var(--initial-transform, 100%),0)}}@keyframes slideFromTop{0%{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}to{transform:translateZ(0)}}@keyframes slideToTop{to{transform:translate3d(0,calc(var(--initial-transform, 100%) * -1),0)}}@keyframes slideFromLeft{0%{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}to{transform:translateZ(0)}}@keyframes slideToLeft{to{transform:translate3d(calc(var(--initial-transform, 100%) * -1),0,0)}}@keyframes slideFromRight{0%{transform:translate3d(var(--initial-transform, 100%),0,0)}to{transform:translateZ(0)}}@keyframes slideToRight{to{transform:translate3d(var(--initial-transform, 100%),0,0)}}')),document.head.appendChild(t)}}catch(s){console.error("vite-plugin-css-injected-by-js",s)}})();const gs=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const ys=e=>typeof e<"u";function bs(e){return JSON.parse(JSON.stringify(e))}function Gt(e,t,s,i={}){var o,a,l;const{clone:u=!1,passive:r=!1,eventName:g,deep:m=!1,defaultValue:v,shouldEmit:c}=i,d=Za(),h=s||d?.emit||((o=d?.$emit)==null?void 0:o.bind(d))||((l=(a=d?.proxy)==null?void 0:a.$emit)==null?void 0:l.bind(d?.proxy));let y=g;t||(t="modelValue"),y=y||`update:${t.toString()}`;const D=k=>u?typeof u=="function"?u(k):bs(k):k,R=()=>ys(e[t])?D(e[t]):v,A=k=>{c?c(k)&&h(y,k):h(y,k)};if(r){const k=R(),f=H(k);let $=!1;return re(()=>e[t],x=>{$||($=!0,f.value=D(x),Dt(()=>$=!1))}),re(f,x=>{!$&&(x!==e[t]||m)&&A(x)},{deep:m}),f}else return M({get(){return R()},set(k){A(k)}})}const[He,ws]=Xa("DrawerRoot"),Sa=new WeakMap;function ne(e,t,s=!1){if(!e||!(e instanceof HTMLElement)||!t)return;const i={};Object.entries(t).forEach(([o,a])=>{if(o.startsWith("--")){e.style.setProperty(o,a);return}i[o]=e.style[o],e.style[o]=a}),!s&&Sa.set(e,i)}function ks(e,t){if(!e||!(e instanceof HTMLElement))return;const s=Sa.get(e);s&&Object.entries(s).forEach(([i,o])=>{e.style[i]=o})}function Je(e,t){const s=window.getComputedStyle(e),i=s.transform||s.webkitTransform||s.mozTransform;let o=i.match(/^matrix3d\((.+)\)$/);return o?Number.parseFloat(o[1].split(", ")[ee(t)?13:12]):(o=i.match(/^matrix\((.+)\)$/),o?Number.parseFloat(o[1].split(", ")[ee(t)?5:4]):null)}function _s(e){return 8*(Math.log(e+1)-2)}function ee(e){switch(e){case"top":case"bottom":return!0;case"left":case"right":return!1;default:return e}}function ft(e,t){if(!e)return()=>{};const s=e.style.cssText;return Object.assign(e.style,t),()=>{e.style.cssText=s}}function Ss(...e){return(...t)=>{for(const s of e)typeof s=="function"&&s(...t)}}const X={DURATION:.5,EASE:[.32,.72,0,1]},xa=.4,xs=.25,$s=100,$a=8,Ye=16,Ia=26,Jt="vaul-dragging";function Is({activeSnapPoint:e,snapPoints:t,drawerRef:s,overlayRef:i,fadeFromIndex:o,onSnapPointChange:a,direction:l}){const u=H(typeof window<"u"?{innerWidth:window.innerWidth,innerHeight:window.innerHeight}:void 0);function r(){u.value={innerWidth:window.innerWidth,innerHeight:window.innerHeight}}Bt(()=>{typeof window<"u"&&window.addEventListener("resize",r)}),en(()=>{typeof window<"u"&&window.removeEventListener("resize",r)});const g=M(()=>(t.value&&e.value===t.value[t.value.length-1])??null),m=M(()=>t.value&&t.value.length>0&&(o?.value||o?.value===0)&&!Number.isNaN(o?.value)&&t.value[o?.value??-1]===e.value||!t.value),v=M(()=>{var A;return((A=t.value)==null?void 0:A.findIndex(k=>k===e.value))??null}),c=M(()=>{var A;return((A=t.value)==null?void 0:A.map(k=>{const f=typeof k=="string";let $=0;if(f&&($=Number.parseInt(k,10)),ee(l.value)){const w=f?$:u.value?k*u.value.innerHeight:0;return u.value?l.value==="bottom"?u.value.innerHeight-w:-u.value.innerHeight+w:w}const x=f?$:u.value?k*u.value.innerWidth:0;return u.value?l.value==="right"?u.value.innerWidth-x:-u.value.innerWidth+x:x}))??[]}),d=M(()=>{var A;return v.value!==null?(A=c.value)==null?void 0:A[v.value]:null}),h=A=>{var k,f,$,x;const w=((k=c.value)==null?void 0:k.findIndex(E=>E===A))??null;Dt(()=>{var E;a(w,c.value),ne((E=s.value)==null?void 0:E.$el,{transition:`transform ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,transform:ee(l.value)?`translate3d(0, ${A}px, 0)`:`translate3d(${A}px, 0, 0)`})}),c.value&&w!==c.value.length-1&&w!==o?.value?ne((f=i.value)==null?void 0:f.$el,{transition:`opacity ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,opacity:"0"}):ne(($=i.value)==null?void 0:$.$el,{transition:`opacity ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,opacity:"1"}),e.value=w!==null?((x=t.value)==null?void 0:x[w])??null:null};re([e,c,t],()=>{var A;if(e.value){const k=((A=t.value)==null?void 0:A.findIndex(f=>f===e.value))??-1;c.value&&k!==-1&&typeof c.value[k]=="number"&&h(c.value[k])}},{immediate:!0});function y({draggedDistance:A,closeDrawer:k,velocity:f,dismissible:$}){var x,w,E;if(o.value===void 0)return;const b=l.value==="bottom"||l.value==="right"?(d.value??0)-A:(d.value??0)+A,T=v.value===o.value-1,O=v.value===0,W=A>0;if(T&&ne((x=i.value)==null?void 0:x.$el,{transition:`opacity ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`}),f>2&&!W){$?k():h(c.value[0]);return}if(f>2&&W&&c&&t.value){h(c.value[t.value.length-1]);return}const K=(w=c.value)==null?void 0:w.reduce((j,p)=>typeof j!="number"||typeof p!="number"?j:Math.abs(p-b)<Math.abs(j-b)?p:j),S=ee(l.value)?window.innerHeight:window.innerWidth;if(f>xa&&Math.abs(A)<S*.4){const j=W?1:-1;if(j>0&&g){h(c.value[(((E=t.value)==null?void 0:E.length)??0)-1]);return}if(O&&j<0&&$&&k(),v.value===null)return;h(c.value[v.value+j]);return}h(K)}function D({draggedDistance:A}){var k;if(d.value===null)return;const f=l.value==="bottom"||l.value==="right"?d.value-A:d.value+A;(l.value==="bottom"||l.value==="right")&&f<c.value[c.value.length-1]||(l.value==="top"||l.value==="left")&&f>c.value[c.value.length-1]||ne((k=s.value)==null?void 0:k.$el,{transform:ee(l.value)?`translate3d(0, ${f}px, 0)`:`translate3d(${f}px, 0, 0)`})}function R(A,k){if(!t.value||typeof v.value!="number"||!c.value||o.value===void 0)return null;const f=v.value===o.value-1;if(v.value>=o.value&&k)return 0;if(f&&!k)return 1;if(!m.value&&!f)return null;const $=f?v.value+1:v.value-1,x=f?c.value[$]-c.value[$-1]:c.value[$+1]-c.value[$],w=A/Math.abs(x);return f?1-w:w}return{isLastSnapPoint:g,shouldFade:m,getPercentageDragged:R,activeSnapPointIndex:v,onRelease:y,onDrag:D,snapPointsOffset:c}}function Yt(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}let je=null;function Cs(e){const{isOpen:t,modal:s,nested:i,hasBeenOpened:o,preventScrollRestoration:a,noBodyStyles:l}=e,u=H(typeof window<"u"?window.location.href:""),r=H(0);function g(){if(Yt()&&je===null&&t.value&&!l.value){je={position:document.body.style.position,top:document.body.style.top,left:document.body.style.left,height:document.body.style.height};const{scrollX:v,innerHeight:c}=window;document.body.style.setProperty("position","fixed","important"),Object.assign(document.body.style,{top:`${-r.value}px`,left:`${-v}px`,right:"0px",height:"auto"}),setTimeout(()=>{requestAnimationFrame(()=>{const d=c-window.innerHeight;d&&r.value>=c&&(document.body.style.top=`-${r.value+d}px`)})},300)}}function m(){if(Yt()&&je!==null&&!l.value){const v=-Number.parseInt(document.body.style.top,10),c=-Number.parseInt(document.body.style.left,10);Object.assign(document.body.style,je),window.requestAnimationFrame(()=>{if(a.value&&u.value!==window.location.href){u.value=window.location.href;return}window.scrollTo(c,v)}),je=null}}return Bt(()=>{function v(){r.value=window.scrollY}v(),window.addEventListener("scroll",v),tn(()=>{window.removeEventListener("scroll",v)})}),re([t,o,u],()=>{i.value||!o.value||(t.value?(window.matchMedia("(display-mode: standalone)").matches||g(),s.value||setTimeout(()=>{m()},500)):m())}),{restorePositionSetting:m}}function As(e,t){return e&&e.value?e:t}function Ts(e){const{emitDrag:t,emitRelease:s,emitClose:i,emitOpenChange:o,open:a,dismissible:l,nested:u,modal:r,shouldScaleBackground:g,setBackgroundColorOnScale:m,scrollLockTimeout:v,closeThreshold:c,activeSnapPoint:d,fadeFromIndex:h,direction:y,noBodyStyles:D,handleOnly:R,preventScrollRestoration:A}=e,k=H(a.value??!1),f=H(!1),$=H(!1),x=H(!1),w=H(null),E=H(null),b=H(null),T=H(null),O=H(null),W=H(!1),K=H(null),S=H(0),j=H(!1),p=H(null),G=M(()=>{var z;return((z=p.value)==null?void 0:z.$el.getBoundingClientRect().height)||0}),C=As(e.snapPoints,H(void 0)),J=M(()=>{var z;return C&&(((z=C.value)==null?void 0:z.length)??0)>0}),oe=H(null),{activeSnapPointIndex:te,onRelease:be,snapPointsOffset:me,onDrag:ja,shouldFade:Pt,getPercentageDragged:Fa}=Is({snapPoints:C,activeSnapPoint:d,drawerRef:p,fadeFromIndex:h,overlayRef:w,onSnapPointChange:Pa,direction:y});function Pa(z,Z){C.value&&z===Z.length-1&&(E.value=new Date)}Cs({isOpen:k,modal:r,nested:u,hasBeenOpened:f,noBodyStyles:D,preventScrollRestoration:A});function Ue(){return(window.innerWidth-Ia)/window.innerWidth}function zt(z,Z){var ae;if(!z)return!1;let Y=z;const se=(ae=window.getSelection())==null?void 0:ae.toString(),ue=p.value?Je(p.value.$el,y.value):null,fe=new Date;if(Y.hasAttribute("data-vaul-no-drag")||Y.closest("[data-vaul-no-drag]"))return!1;if(y.value==="right"||y.value==="left")return!0;if(E.value&&fe.getTime()-E.value.getTime()<500)return!1;if(ue!==null&&(y.value==="bottom"?ue>0:ue<0))return!0;if(se&&se.length>0)return!1;if(O.value&&fe.getTime()-O.value.getTime()<v.value&&ue===0||Z)return O.value=fe,!1;for(;Y;){if(Y.scrollHeight>Y.clientHeight){if(Y.scrollTop!==0)return O.value=new Date,!1;if(Y.getAttribute("role")==="dialog")return!0}Y=Y.parentNode}return!0}function za(z){!l.value&&!C.value||p.value&&!p.value.$el.contains(z.target)||($.value=!0,b.value=new Date,z.target.setPointerCapture(z.pointerId),S.value=ee(y.value)?z.clientY:z.clientX)}function qa(z){var Z,ae,Y,se,ue,fe;if(p.value&&$.value){const Ae=y.value==="bottom"||y.value==="right"?1:-1,Ve=(S.value-(ee(y.value)?z.clientY:z.clientX))*Ae,We=Ve>0,Nt=C.value&&!l.value&&!We;if(Nt&&te.value===0)return;const ut=Math.abs(Ve),Kt=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");let xe=ut/G.value;const Ht=Fa(ut,We);if(Ht!==null&&(xe=Ht),Nt&&xe>=1||!W.value&&!zt(z.target,We))return;if((Z=p?.value)==null||Z.$el.classList.add(Jt),W.value=!0,ne((ae=p.value)==null?void 0:ae.$el,{transition:"none"}),ne((Y=w.value)==null?void 0:Y.$el,{transition:"none"}),C.value&&ja({draggedDistance:Ve}),We&&!C.value){const $e=_s(Ve),Ge=Math.min($e*-1,0)*Ae;ne((se=p.value)==null?void 0:se.$el,{transform:ee(y.value)?`translate3d(0, ${Ge}px, 0)`:`translate3d(${Ge}px, 0, 0)`});return}const Va=1-xe;if((Pt.value||h.value&&te.value===h.value-1)&&(t(xe),ne((ue=w.value)==null?void 0:ue.$el,{opacity:`${Va}`,transition:"none"},!0)),Kt&&w.value&&g.value){const $e=Math.min(Ue()+xe*(1-Ue()),1),Ge=8-xe*8,Ut=Math.max(0,14-xe*14);ne(Kt,{borderRadius:`${Ge}px`,transform:ee(y.value)?`scale(${$e}) translate3d(0, ${Ut}px, 0)`:`scale(${$e}) translate3d(${Ut}px, 0, 0)`,transition:"none"},!0)}if(!C.value){const $e=ut*Ae;ne((fe=p.value)==null?void 0:fe.$el,{transform:ee(y.value)?`translate3d(0, ${$e}px, 0)`:`translate3d(${$e}px, 0, 0)`})}}}function qt(){var z;if(!p.value)return;const Z=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]"),ae=Je(p.value.$el,y.value);ne(p.value.$el,{transform:"translate3d(0, 0, 0)",transition:`transform ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`}),ne((z=w.value)==null?void 0:z.$el,{transition:`opacity ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,opacity:"1"}),g.value&&ae&&ae>0&&k.value&&ne(Z,{borderRadius:`${$a}px`,overflow:"hidden",...ee(y.value)?{transform:`scale(${Ue()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`,transformOrigin:"top"}:{transform:`scale(${Ue()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`,transformOrigin:"left"},transitionProperty:"transform, border-radius",transitionDuration:`${X.DURATION}s`,transitionTimingFunction:`cubic-bezier(${X.EASE.join(",")})`},!0)}function Re(z){p.value&&(i(),z||(k.value=!1),window.setTimeout(()=>{C.value&&(d.value=C.value[0])},X.DURATION*1e3))}Tt(()=>{if(!k.value&&g.value&&gs){const z=setTimeout(()=>{ks(document.body)},200);return()=>clearTimeout(z)}}),re(a,()=>{k.value=a.value,a.value||Re()});function Na(z){if(!$.value||!p.value)return;p.value.$el.classList.remove(Jt),W.value=!1,$.value=!1,T.value=new Date;const Z=Je(p.value.$el,y.value);if(!zt(z.target,!1)||!Z||Number.isNaN(Z)||b.value===null)return;const ae=T.value.getTime()-b.value.getTime(),Y=S.value-(ee(y.value)?z.clientY:z.clientX),se=Math.abs(Y)/ae;if(se>.05&&(x.value=!0,window.setTimeout(()=>{x.value=!1},200)),C.value){const fe=y.value==="bottom"||y.value==="right"?1:-1;be({draggedDistance:Y*fe,closeDrawer:Re,velocity:se,dismissible:l.value}),s(!0);return}if(y.value==="bottom"||y.value==="right"?Y>0:Y<0){qt(),s(!0);return}if(se>xa){Re(),s(!1);return}const ue=Math.min(p.value.$el.getBoundingClientRect().height??0,window.innerHeight);if(Z>=ue*c.value){Re(),s(!1);return}s(!0),qt()}re(k,z=>{z&&(E.value=new Date),o(z)},{immediate:!0});function Ka(z){var Z,ae;const Y=z?(window.innerWidth-Ye)/window.innerWidth:1,se=z?-16:0;K.value&&window.clearTimeout(K.value),ne((Z=p.value)==null?void 0:Z.$el,{transition:`transform ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,transform:`scale(${Y}) translate3d(0, ${se}px, 0)`}),!z&&(ae=p.value)!=null&&ae.$el&&(K.value=window.setTimeout(()=>{var ue,fe;const Ae=Je((ue=p.value)==null?void 0:ue.$el,y.value);ne((fe=p.value)==null?void 0:fe.$el,{transition:"none",transform:ee(y.value)?`translate3d(0, ${Ae}px, 0)`:`translate3d(${Ae}px, 0, 0)`})},500))}function Ha(z){var Z;if(z<0)return;const ae=ee(y.value)?window.innerHeight:window.innerWidth,Y=(ae-Ye)/ae,se=Y+z*(1-Y),ue=-16+z*Ye;ne((Z=p.value)==null?void 0:Z.$el,{transform:ee(y.value)?`scale(${se}) translate3d(0, ${ue}px, 0)`:`scale(${se}) translate3d(${ue}px, 0, 0)`,transition:"none"})}function Ua(z){var Z;const ae=ee(y.value)?window.innerHeight:window.innerWidth,Y=z?(ae-Ye)/ae:1,se=z?-16:0;z&&ne((Z=p.value)==null?void 0:Z.$el,{transition:`transform ${X.DURATION}s cubic-bezier(${X.EASE.join(",")})`,transform:ee(y.value)?`scale(${Y}) translate3d(0, ${se}px, 0)`:`scale(${Y}) translate3d(${se}px, 0, 0)`})}return{open:a,isOpen:k,modal:r,keyboardIsOpen:j,hasBeenOpened:f,drawerRef:p,drawerHeightRef:G,overlayRef:w,handleRef:oe,isDragging:$,dragStartTime:b,isAllowedToDrag:W,snapPoints:C,activeSnapPoint:d,hasSnapPoints:J,pointerStart:S,dismissible:l,snapPointsOffset:me,direction:y,shouldFade:Pt,fadeFromIndex:h,shouldScaleBackground:g,setBackgroundColorOnScale:m,onPress:za,onDrag:qa,onRelease:Na,closeDrawer:Re,onNestedDrag:Ha,onNestedRelease:Ua,onNestedOpenChange:Ka,emitClose:i,emitDrag:t,emitRelease:s,emitOpenChange:o,nested:u,handleOnly:R,noBodyStyles:D}}const Ca=he({__name:"DrawerRoot",props:{activeSnapPoint:{default:void 0},closeThreshold:{default:xs},shouldScaleBackground:{type:Boolean,default:void 0},setBackgroundColorOnScale:{type:Boolean,default:!0},scrollLockTimeout:{default:$s},fixed:{type:Boolean,default:void 0},dismissible:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},nested:{type:Boolean,default:!1},direction:{default:"bottom"},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean,default:!1},preventScrollRestoration:{type:Boolean},snapPoints:{default:void 0},fadeFromIndex:{default:void 0}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{expose:t,emit:s}){const i=e,o=s;Ee();const a=M(()=>i.fadeFromIndex??(i.snapPoints&&i.snapPoints.length-1)),l=Gt(i,"open",o,{defaultValue:i.defaultOpen,passive:i.open===void 0}),u=Gt(i,"activeSnapPoint",o,{passive:i.activeSnapPoint===void 0}),r={emitDrag:h=>o("drag",h),emitRelease:h=>o("release",h),emitClose:()=>o("close"),emitOpenChange:h=>{o("update:open",h),setTimeout(()=>{o("animationEnd",h)},X.DURATION*1e3)}},{closeDrawer:g,hasBeenOpened:m,modal:v,isOpen:c}=ws(Ts({...r,...Qa(i),activeSnapPoint:u,fadeFromIndex:a,open:l}));function d(h){if(l.value!==void 0){r.emitOpenChange(h);return}c.value=h,h?m.value=!0:g()}return t({open:c}),(h,y)=>(_(),L(n(zn),{open:n(c),modal:n(v),"onUpdate:open":d},{default:I(()=>[N(h.$slots,"default",{open:n(c)})]),_:3},8,["open","modal"]))}}),Ds=he({__name:"DrawerRootNested",props:{activeSnapPoint:{},closeThreshold:{},shouldScaleBackground:{type:Boolean},setBackgroundColorOnScale:{type:Boolean},scrollLockTimeout:{},fixed:{type:Boolean},dismissible:{type:Boolean},modal:{type:Boolean},open:{type:Boolean},defaultOpen:{type:Boolean},nested:{type:Boolean},direction:{},noBodyStyles:{type:Boolean},handleOnly:{type:Boolean},preventScrollRestoration:{type:Boolean},snapPoints:{},fadeFromIndex:{}},emits:["drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const s=e,i=t,{onNestedDrag:o,onNestedOpenChange:a,onNestedRelease:l}=He();function u(){a(!1)}function r(v){o(v)}function g(v){v&&a(v),i("update:open",v)}const m=Ya(s,i);return(v,c)=>(_(),L(Ca,Q(n(m),{nested:"",onClose:u,onDrag:r,onRelease:n(l),"onUpdate:open":g}),{default:I(()=>[N(v.$slots,"default")]),_:3},16,["onRelease"]))}}),Bs=he({__name:"DrawerOverlay",setup(e){const{overlayRef:t,hasSnapPoints:s,isOpen:i,shouldFade:o}=He();return(a,l)=>(_(),L(n(Fn),{ref_key:"overlayRef",ref:t,"data-vaul-overlay":"","data-vaul-snap-points":n(i)&&n(s)?"true":"false","data-vaul-snap-points-overlay":n(i)&&n(o)?"true":"false"},null,8,["data-vaul-snap-points","data-vaul-snap-points-overlay"]))}}),Ls=()=>()=>{};function Es(){const{direction:e,isOpen:t,shouldScaleBackground:s,setBackgroundColorOnScale:i,noBodyStyles:o}=He(),a=H(null),l=H(document.body.style.backgroundColor);function u(){return(window.innerWidth-Ia)/window.innerWidth}Tt(r=>{if(t.value&&s.value){a.value&&clearTimeout(a.value);const g=document.querySelector("[data-vaul-drawer-wrapper]")||document.querySelector("[vaul-drawer-wrapper]");if(!g)return;Ss(i.value&&!o.value?ft(document.body,{background:"black"}):Ls,ft(g,{transformOrigin:ee(e.value)?"top":"left",transitionProperty:"transform, border-radius",transitionDuration:`${X.DURATION}s`,transitionTimingFunction:`cubic-bezier(${X.EASE.join(",")})`}));const m=ft(g,{borderRadius:`${$a}px`,overflow:"hidden",...ee(e.value)?{transform:`scale(${u()}) translate3d(0, calc(env(safe-area-inset-top) + 14px), 0)`}:{transform:`scale(${u()}) translate3d(calc(env(safe-area-inset-top) + 14px), 0, 0)`}});r(()=>{m(),a.value=window.setTimeout(()=>{l.value?document.body.style.background=l.value:document.body.style.removeProperty("background")},X.DURATION*1e3)})}},{flush:"pre"})}const Ms=he({__name:"DrawerContent",setup(e){const{open:t,isOpen:s,snapPointsOffset:i,hasSnapPoints:o,drawerRef:a,onPress:l,onDrag:u,onRelease:r,modal:g,emitOpenChange:m,dismissible:v,keyboardIsOpen:c,closeDrawer:d,direction:h,handleOnly:y}=He();Es();const D=H(!1),R=M(()=>i.value&&i.value.length>0?`${i.value[0]}px`:"0");function A($){if(!g.value||$.defaultPrevented){$.preventDefault();return}c.value&&(c.value=!1),v.value?m(!1):$.preventDefault()}function k($){y.value||l($)}function f($){y.value||u($)}return Tt(()=>{o.value&&window.requestAnimationFrame(()=>{D.value=!0})}),($,x)=>(_(),L(n(Pn),{ref_key:"drawerRef",ref:a,"data-vaul-drawer":"","data-vaul-drawer-direction":n(h),"data-vaul-delayed-snap-points":D.value?"true":"false","data-vaul-snap-points":n(s)&&n(o)?"true":"false",style:ca({"--snap-point-height":R.value}),onPointerdown:k,onPointermove:f,onPointerup:n(r),onPointerDownOutside:A,onOpenAutoFocus:x[0]||(x[0]=Ja(()=>{},["prevent"])),onEscapeKeyDown:x[1]||(x[1]=w=>{n(v)||w.preventDefault()})},{default:I(()=>[N($.$slots,"default")]),_:3},8,["data-vaul-drawer-direction","data-vaul-delayed-snap-points","data-vaul-snap-points","style","onPointerup"]))}}),Os=["data-vaul-drawer-visible"],Rs={"data-vaul-handle-hitarea":"","aria-hidden":"true"},js=250,Fs=120,Ps=he({__name:"DrawerHandle",props:{preventCycle:{type:Boolean,default:!1}},setup(e){const t=e,{onPress:s,onDrag:i,handleRef:o,handleOnly:a,isOpen:l,snapPoints:u,activeSnapPoint:r,isDragging:g,dismissible:m,closeDrawer:v}=He(),c=H(null),d=H(!1);function h(){if(d.value){R();return}window.setTimeout(()=>{y()},Fs)}function y(){if(g.value||t.preventCycle||d.value){R();return}if(R(),!u.value||u.value.length===0){m.value||v();return}const f=r.value===u.value[u.value.length-1];if(f&&m.value){v();return}const $=u.value.findIndex(w=>w===r.value);if($===-1)return;const x=f?0:$+1;r.value=u.value[x]}function D(){c.value=window.setTimeout(()=>{d.value=!0},js)}function R(){c.value&&window.clearTimeout(c.value),d.value=!1}function A(f){a.value&&s(f),D()}function k(f){a.value&&i(f)}return(f,$)=>(_(),U("div",{ref_key:"handleRef",ref:o,"data-vaul-drawer-visible":n(l)?"true":"false","data-vaul-handle":"","aria-hidden":"true",onClick:h,onPointercancel:R,onPointerdown:A,onPointermove:k},[V("span",Rs,[N(f.$slots,"default")])],40,Os))}}),zs={slots:{overlay:"fixed inset-0 bg-elevated/75",content:"fixed bg-default ring ring-default flex focus:outline-none",handle:["shrink-0 !bg-accented","transition-opacity"],container:"w-full flex flex-col gap-4 p-4 overflow-y-auto",header:"flex items-center gap-1.5 min-h-8",wrapper:"min-w-0 flex-1",title:"text-highlighted font-semibold",description:"mt-1 text-muted text-sm",actions:"flex items-center gap-1.5 shrink-0 ms-auto",body:"flex-1",footer:"flex flex-col gap-1.5",close:""},variants:{direction:{top:{content:"mb-24 flex-col-reverse",handle:"mb-4"},right:{content:"flex-row rtl:flex-row-reverse",handle:"!ml-4"},bottom:{content:"mt-24 flex-col",handle:"mt-4"},left:{content:"flex-row-reverse rtl:flex-row",handle:"!mr-4"}},inset:{true:{content:"rounded-lg after:hidden overflow-hidden [--initial-transform:calc(100%+1.5rem)]"}},snapPoints:{true:""}},compoundVariants:[{direction:["top","bottom"],class:{content:"h-auto max-h-[96%]",handle:"!w-12 !h-1.5 mx-auto"}},{direction:["top","bottom"],snapPoints:!0,class:{content:"h-full"}},{direction:["right","left"],class:{content:"w-auto max-w-[calc(100%-2rem)]",handle:"!h-12 !w-1.5 mt-auto mb-auto"}},{direction:["right","left"],snapPoints:!0,class:{content:"w-full"}},{direction:"top",inset:!0,class:{content:"inset-x-4 top-4"}},{direction:"top",inset:!1,class:{content:"inset-x-0 top-0 rounded-b-lg"}},{direction:"bottom",inset:!0,class:{content:"inset-x-4 bottom-4"}},{direction:"bottom",inset:!1,class:{content:"inset-x-0 bottom-0 rounded-t-lg"}},{direction:"left",inset:!0,class:{content:"inset-y-4 left-4"}},{direction:"left",inset:!1,class:{content:"inset-y-0 left-0 rounded-r-lg"}},{direction:"right",inset:!0,class:{content:"inset-y-4 right-4"}},{direction:"right",inset:!1,class:{content:"inset-y-0 right-0 rounded-l-lg"}}]},qs={__name:"UDrawer",props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},inset:{type:Boolean,required:!1},content:{type:Object,required:!1},overlay:{type:Boolean,required:!1,default:!0},handle:{type:Boolean,required:!1,default:!0},portal:{type:[Boolean,String],required:!1,skipCheck:!0,default:!0},nested:{type:Boolean,required:!1},close:{type:[Boolean,Object],required:!1},closeIcon:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},activeSnapPoint:{type:[Number,String,null],required:!1},closeThreshold:{type:Number,required:!1},shouldScaleBackground:{type:Boolean,required:!1},setBackgroundColorOnScale:{type:Boolean,required:!1},scrollLockTimeout:{type:Number,required:!1},fixed:{type:Boolean,required:!1},dismissible:{type:Boolean,required:!1,default:!0},modal:{type:Boolean,required:!1,default:!0},open:{type:Boolean,required:!1},defaultOpen:{type:Boolean,required:!1},direction:{type:String,required:!1,default:"bottom"},noBodyStyles:{type:Boolean,required:!1},handleOnly:{type:Boolean,required:!1},preventScrollRestoration:{type:Boolean,required:!1},snapPoints:{type:Array,required:!1}},emits:["close:prevent","drag","release","close","update:open","update:activeSnapPoint","animationEnd"],setup(e,{emit:t}){const s=e,i=t,o=Ee(),a=Me("drawer",s),{t:l}=Ne(),u=Ce(),r=Pe(st(a,"activeSnapPoint","closeThreshold","shouldScaleBackground","setBackgroundColorOnScale","scrollLockTimeout","fixed","dismissible","modal","open","defaultOpen","nested","direction","noBodyStyles","handleOnly","preventScrollRestoration","snapPoints"),i),g=an(Be(()=>a.portal)),m=Be(()=>a.content),v=M(()=>a.dismissible?{pointerDownOutside:rn}:["interactOutside","escapeKeyDown"].reduce((h,y)=>(h[y]=D=>{D.preventDefault(),i("close:prevent")},h),{})),c=M(()=>Oe({extend:zs,...u.ui?.drawer||{}})({direction:a.direction,inset:a.inset,snapPoints:a.snapPoints&&a.snapPoints.length>0}));return(d,h)=>(_(),L(ln(n(a).nested?n(Ds):n(Ca)),Te(De(n(r))),{default:I(()=>[o.default?(_(),L(n(qn),{key:0,"as-child":"",class:q(n(a).class)},{default:I(()=>[N(d.$slots,"default")]),_:3},8,["class"])):P("",!0),B(n(Nn),Te(De(n(g))),{default:I(()=>[B(n(nn),null,{default:I(()=>[n(a).overlay?(_(),L(n(Bs),{key:0,"data-slot":"overlay",class:q(c.value.overlay({class:n(a).ui?.overlay}))},null,8,["class"])):P("",!0),B(n(Ms),Q({"data-slot":"content",class:c.value.content({class:[!o.default&&n(a).class,n(a).ui?.content]})},m.value,sn(v.value)),{default:I(()=>[n(a).handle?(_(),L(n(Ps),{key:0,"data-slot":"handle",class:q(c.value.handle({class:n(a).ui?.handle}))},null,8,["class"])):P("",!0),!n(a).title&&!o.title||!n(a).description&&!o.description||o.content?(_(),L(n(on),{key:1},{default:I(()=>[!n(a).title&&!o.title?(_(),L(n(ct),{key:0})):o.content?(_(),L(n(ct),{key:1},{default:I(()=>[N(d.$slots,"title",{},()=>[ce(ie(n(a).title),1)])]),_:3})):P("",!0),!n(a).description&&!o.description?(_(),L(n(dt),{key:2})):o.content?(_(),L(n(dt),{key:3},{default:I(()=>[N(d.$slots,"description",{},()=>[ce(ie(n(a).description),1)])]),_:3})):P("",!0)]),_:3})):P("",!0),N(d.$slots,"content",{},()=>[V("div",{"data-slot":"container",class:q(c.value.container({class:n(a).ui?.container}))},[o.header||n(a).title||o.title||n(a).description||o.description||n(a).close||o.close||o.actions?(_(),U("div",{key:0,"data-slot":"header",class:q(c.value.header({class:n(a).ui?.header}))},[N(d.$slots,"header",{},()=>[n(a).title||o.title||n(a).description||o.description?(_(),U("div",{key:0,"data-slot":"wrapper",class:q(c.value.wrapper({class:n(a).ui?.wrapper}))},[n(a).title||o.title?(_(),L(n(ct),{key:0,"data-slot":"title",class:q(c.value.title({class:n(a).ui?.title}))},{default:I(()=>[N(d.$slots,"title",{},()=>[ce(ie(n(a).title),1)])]),_:3},8,["class"])):P("",!0),n(a).description||o.description?(_(),L(n(dt),{key:1,"data-slot":"description",class:q(c.value.description({class:n(a).ui?.description}))},{default:I(()=>[N(d.$slots,"description",{},()=>[ce(ie(n(a).description),1)])]),_:3},8,["class"])):P("",!0)],2)):P("",!0),o.actions||n(a).close||o.close?(_(),U("div",{key:1,"data-slot":"actions",class:q(c.value.actions({class:n(a).ui?.actions}))},[N(d.$slots,"actions"),n(a).close||o.close?(_(),L(n(Kn),{key:0,"as-child":""},{default:I(()=>[N(d.$slots,"close",{ui:c.value},()=>[n(a).close?(_(),L(ke,Q({key:0,icon:n(a).closeIcon||n(u).ui.icons.close,color:"neutral",variant:"ghost","aria-label":n(l)("drawer.close")},typeof n(a).close=="object"?n(a).close:{},{"data-slot":"close",class:c.value.close({class:n(a).ui?.close})}),null,16,["icon","aria-label","class"])):P("",!0)])]),_:3})):P("",!0)],2)):P("",!0)])],2)):P("",!0),o.body?(_(),U("div",{key:1,"data-slot":"body",class:q(c.value.body({class:n(a).ui?.body}))},[N(d.$slots,"body")],2)):P("",!0),o.footer?(_(),U("div",{key:2,"data-slot":"footer",class:q(c.value.footer({class:n(a).ui?.footer}))},[N(d.$slots,"footer")],2)):P("",!0)],2)])]),_:3},16,["class"])]),_:3})]),_:3},16)]),_:3},16))}},Ns={slots:{root:"relative hidden lg:flex flex-col min-h-svh min-w-16 w-(--width) shrink-0",header:"h-(--ui-header-height) shrink-0 flex items-center gap-1.5 px-4",body:"flex flex-col gap-4 flex-1 overflow-y-auto px-4 py-2",footer:"shrink-0 flex items-center gap-1.5 px-4 py-2",toggle:"",handle:"",content:"lg:hidden",overlay:"lg:hidden"},variants:{menu:{true:{header:"sm:px-6",body:"sm:px-6",footer:"sm:px-6"}},side:{left:{root:"border-e border-default"},right:{root:""}},toggleSide:{left:{toggle:""},right:{toggle:"ms-auto"}}}};function yt(e,t){const i=da().hook(e,t);fa(i)}const Ks=["data-collapsed","data-dragging"],Hs=Object.assign({inheritAttrs:!1},{__name:"UDashboardSidebar",props:it({mode:{type:null,required:!1,default:"slideover"},menu:{type:null,required:!1},toggle:{type:[Boolean,Object],required:!1,default:!0},toggleSide:{type:String,required:!1,default:"left"},autoClose:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},id:{type:String,required:!1},side:{type:String,required:!1,default:"left"},minSize:{type:Number,required:!1,default:10},maxSize:{type:Number,required:!1,default:20},defaultSize:{type:Number,required:!1,default:15},resizable:{type:Boolean,required:!1,default:!1},collapsible:{type:Boolean,required:!1,default:!1},collapsedSize:{type:Number,required:!1,default:0}},{open:{type:Boolean,default:!1},openModifiers:{},collapsed:{type:Boolean,default:!1},collapsedModifiers:{}}),emits:["update:open","update:collapsed"],setup(e){const t=e,s=Ee(),i=Me("dashboardSidebar",t),o=ze(e,"open",{type:Boolean,default:!1}),a=ze(e,"collapsed",{type:Boolean,default:!1}),l=Lt(),{t:u}=Ne(),r=Ce(),g=ya({storageKey:"dashboard",unit:"%",sidebarOpen:H(!1),sidebarCollapsed:H(!1)}),m=`${g.storageKey}-sidebar-${i.id||un()}`,{el:v,size:c,collapse:d,isCollapsed:h,isDragging:y,onMouseDown:D,onTouchStart:R,onDoubleClick:A}=Tn(m,Be(()=>({...g,...i})),{collapsed:a}),[k,f]=at(),[$,x]=at();yt("dashboard:sidebar:toggle",()=>{o.value=!o.value}),yt("dashboard:sidebar:collapse",O=>{h.value=O}),re(o,()=>g.sidebarOpen.value=o.value,{immediate:!0}),re(h,()=>g.sidebarCollapsed.value=h.value,{immediate:!0}),re(()=>l.fullPath,()=>{i.autoClose&&(o.value=!1)});const w=M(()=>Oe({extend:Ns,...r.ui?.dashboardSidebar||{}})({side:i.side})),E=M(()=>({slideover:jn,modal:rt,drawer:qs})[i.mode]),b=Be(()=>Le(i.menu,{},i.mode==="modal"?{fullscreen:!0,transition:!1}:i.mode==="slideover"?{side:"left"}:{}));function T(){o.value=!o.value}return(O,W)=>(_(),U(pe,null,[B(n(k),null,{default:I(()=>[N(O.$slots,"toggle",{open:o.value,toggle:T,ui:w.value},()=>[n(i).toggle?(_(),L(Dn,Q({key:0},typeof n(i).toggle=="object"?n(i).toggle:{},{side:n(i).toggleSide,"data-slot":"toggle",class:w.value.toggle({class:n(i).ui?.toggle,toggleSide:n(i).toggleSide})}),null,16,["side","class"])):P("",!0)])]),_:3}),B(n($),null,{default:I(()=>[N(O.$slots,"resize-handle",{onMouseDown:n(D),onTouchStart:n(R),onDoubleClick:n(A),ui:w.value},()=>[n(i).resizable?(_(),L(Bn,{key:0,"aria-controls":m,"data-slot":"handle",class:q(w.value.handle({class:n(i).ui?.handle})),onMousedown:n(D),onTouchstart:n(R),onDblclick:n(A)},null,8,["class","onMousedown","onTouchstart","onDblclick"])):P("",!0)])]),_:3}),n(i).side==="right"?(_(),L(n(x),{key:0})):P("",!0),V("div",Q({id:m,ref_key:"el",ref:v,"data-slot":"root"},O.$attrs,{"data-collapsed":n(h),"data-dragging":n(y),class:w.value.root({class:[n(i).ui?.root,n(i).class]}),style:{"--width":`${n(c)||0}${n(g).unit}`}}),[s.header?(_(),U("div",{key:0,"data-slot":"header",class:q(w.value.header({class:n(i).ui?.header}))},[N(O.$slots,"header",{collapsed:n(h),collapse:n(d)})],2)):P("",!0),V("div",{"data-slot":"body",class:q(w.value.body({class:n(i).ui?.body}))},[N(O.$slots,"default",{collapsed:n(h),collapse:n(d)})],2),s.footer?(_(),U("div",{key:1,"data-slot":"footer",class:q(w.value.footer({class:n(i).ui?.footer}))},[N(O.$slots,"footer",{collapsed:n(h),collapse:n(d)})],2)):P("",!0)],16,Ks),n(i).side==="left"?(_(),L(n(x),{key:1})):P("",!0),B(n(E),Q({open:o.value,"onUpdate:open":W[0]||(W[0]=K=>o.value=K),title:n(u)("dashboardSidebar.title"),description:n(u)("dashboardSidebar.description")},b.value,{ui:{overlay:w.value.overlay({class:n(i).ui?.overlay}),content:w.value.content({class:n(i).ui?.content})}}),{content:I(K=>[N(O.$slots,"content",Te(De(K)),()=>[s.header||n(i).mode!=="drawer"?(_(),U("div",{key:0,"data-slot":"header",class:q(w.value.header({class:n(i).ui?.header,menu:!0}))},[n(i).mode!=="drawer"&&n(i).toggleSide==="left"?(_(),L(n(f),{key:0})):P("",!0),N(O.$slots,"header",{collapsed:!1,collapse:()=>{}}),n(i).mode!=="drawer"&&n(i).toggleSide==="right"?(_(),L(n(f),{key:1})):P("",!0)],2)):P("",!0),V("div",{"data-slot":"body",class:q(w.value.body({class:n(i).ui?.body,menu:!0}))},[N(O.$slots,"default",{collapsed:!1,collapse:()=>{}})],2),s.footer?(_(),U("div",{key:1,"data-slot":"footer",class:q(w.value.footer({class:n(i).ui?.footer,menu:!0}))},[N(O.$slots,"footer",{collapsed:!1,collapse:()=>{}})],2)):P("",!0)])]),_:3},16,["open","title","description","ui"])],64))}});function _e(e){return Array.isArray?Array.isArray(e):Ta(e)==="[object Array]"}function Us(e){if(typeof e=="string")return e;if(typeof e=="bigint")return e.toString();const t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function bt(e){return e==null?"":Us(e)}function le(e){return typeof e=="string"}function Ze(e){return typeof e=="number"}function Vs(e){return e===!0||e===!1||Ws(e)&&Ta(e)=="[object Boolean]"}function Aa(e){return typeof e=="object"}function Ws(e){return Aa(e)&&e!==null}function de(e){return e!=null}function Qe(e){return!e.trim().length}function Ta(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Gs="Incorrect 'index' type",wt="Invalid doc index: must be a non-negative integer within the bounds of the docs array",Js=e=>`Invalid value for key ${e}`,Ys=e=>`Pattern length exceeds max of ${e}.`,Qs=e=>`Missing ${e} property in key`,Xs=e=>`Property 'weight' in key '${e}' must be a positive integer`,Zs="Fuse.match does not support useTokenSearch: token search requires corpus-level statistics (df, fieldCount) that a one-off string comparison does not have. Use new Fuse(...).search(...) instead.",Qt=Object.prototype.hasOwnProperty;var ei=class{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach(s=>{const i=Da(s);this._keys.push(i),this._keyMap[i.id]=i,t+=i.weight}),this._keys.forEach(s=>{s.weight/=t})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};function Da(e){let t=null,s=null,i=null,o=1,a=null;if(le(e)||_e(e))i=e,t=Xt(e),s=et(e);else{if(!Qt.call(e,"name"))throw new Error(Qs("name"));const l=e.name;if(i=l,Qt.call(e,"weight")&&e.weight!==void 0&&(o=e.weight,o<=0))throw new Error(Xs(et(l)));t=Xt(l),s=et(l),a=e.getFn??null}return{path:t,id:s,weight:o,src:i,getFn:a}}function Xt(e){return _e(e)?e:e.split(".")}function et(e){return _e(e)?e.join("."):e}function ti(e,t){const s=[];let i=!1;const o=(a,l,u,r)=>{if(de(a))if(!l[u])s.push(r!==void 0?{v:a,i:r}:a);else{const g=a[l[u]];if(!de(g))return;if(u===l.length-1&&(le(g)||Ze(g)||Vs(g)||typeof g=="bigint"))s.push(r!==void 0?{v:bt(g),i:r}:bt(g));else if(_e(g)){i=!0;for(let m=0,v=g.length;m<v;m+=1)o(g[m],l,u+1,m)}else l.length&&o(g,l,u+1,r)}};return o(e,le(t)?t.split("."):t,0),i?s:s[0]}const ai={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},ni={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},si={location:0,threshold:.6,distance:100},ii={useExtendedSearch:!1,useTokenSearch:!1,tokenize:void 0,tokenMatch:"any",getFn:ti,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},F=Object.freeze({...ni,...ai,...si,...ii});function oi(e){return e>=9&&e<=13||e===32||e===160}function li(e=1,t=3){const s=new Map,i=Math.pow(10,t);return{get(o){let a=0,l=!1;for(let r=0;r<o.length;r++)oi(o.charCodeAt(r))?l=!1:l||(a++,l=!0);if(a===0&&(a=1),s.has(a))return s.get(a);const u=Math.round(i/Math.pow(a,.5*e))/i;return s.set(a,u),u},clear(){s.clear()}}}var Ot=class{constructor({getFn:e=F.getFn,fieldNormWeight:t=F.fieldNormWeight}={}){this.norm=li(t,3),this.getFn=e,this.isCreated=!1,this.docs=[],this.keys=[],this._keysMap={},this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((t,s)=>{this._keysMap[t.id]=s})}create(){if(this.isCreated||!this.docs.length)return;this.isCreated=!0;const e=this.docs.length;this.records=new Array(e);let t=0;if(le(this.docs[0]))for(let s=0;s<e;s++){const i=this._createStringRecord(this.docs[s],s);i&&(this.records[t++]=i)}else for(let s=0;s<e;s++)this.records[t++]=this._createObjectRecord(this.docs[s],s);this.records.length=t,this.norm.clear()}add(e,t){if(!Number.isInteger(t)||t<0)throw new Error(wt);if(le(e)){const i=this._createStringRecord(e,t);return i&&this.records.push(i),i}const s=this._createObjectRecord(e,t);return this.records.push(s),s}removeAt(e){if(!Number.isInteger(e)||e<0)throw new Error(wt);for(let t=0,s=this.records.length;t<s;t+=1)if(this.records[t].i===e){this.records.splice(t,1);break}for(let t=0,s=this.records.length;t<s;t+=1)this.records[t].i>e&&(this.records[t].i-=1)}removeAll(e){const t=new Set;for(const i of e)Number.isInteger(i)&&i>=0&&t.add(i);if(t.size===0)return;this.records=this.records.filter(i=>!t.has(i.i));const s=Array.from(t).sort((i,o)=>i-o);for(const i of this.records){let o=0,a=s.length;for(;o<a;){const l=o+a>>>1;s[l]<i.i?o=l+1:a=l}i.i-=o}}getValueForItemAtKeyId(e,t){return e[this._keysMap[t]]}size(){return this.records.length}_createStringRecord(e,t){return!de(e)||Qe(e)?null:{v:e,i:t,n:this.norm.get(e)}}_createObjectRecord(e,t){const s={i:t,$:{}};for(let i=0,o=this.keys.length;i<o;i++){const a=this.keys[i],l=a.getFn?a.getFn(e):this.getFn(e,a.path);if(de(l)){if(_e(l)){const u=[];for(let r=0,g=l.length;r<g;r+=1){const m=l[r];if(de(m)){if(le(m)){if(!Qe(m)){const v={v:m,i:r,n:this.norm.get(m)};u.push(v)}}else if(de(m.v)){const v=le(m.v)?m.v:bt(m.v);if(!Qe(v)){const c={v,i:m.i,n:this.norm.get(v)};u.push(c)}}}}s.$[i]=u}else if(le(l)&&!Qe(l)){const u={v:l,n:this.norm.get(l)};s.$[i]=u}}}return s}toJSON(){return{keys:this.keys.map(({getFn:e,...t})=>t),records:this.records}}};function Ba(e,t,{getFn:s=F.getFn,fieldNormWeight:i=F.fieldNormWeight}={}){const o=new Ot({getFn:s,fieldNormWeight:i});return o.setKeys(e.map(Da)),o.setSources(t),o.create(),o}function ri(e,{getFn:t=F.getFn,fieldNormWeight:s=F.fieldNormWeight}={}){const{keys:i,records:o}=e,a=new Ot({getFn:t,fieldNormWeight:s});return a.setKeys(i),a.setIndexRecords(o),a}function ui(e=[],t=F.minMatchCharLength){const s=[];let i=-1,o=-1,a=0;for(let l=e.length;a<l;a+=1){const u=e[a];u&&i===-1?i=a:!u&&i!==-1&&(o=a-1,o-i+1>=t&&s.push([i,o]),i=-1)}return e[a-1]&&a-i>=t&&s.push([i,a-1]),s}function ci(e,t,s,{location:i=F.location,distance:o=F.distance,threshold:a=F.threshold,findAllMatches:l=F.findAllMatches,minMatchCharLength:u=F.minMatchCharLength,includeMatches:r=F.includeMatches,ignoreLocation:g=F.ignoreLocation}={}){if(t.length>32)throw new Error(Ys(32));const m=t.length,v=e.length,c=Math.max(0,Math.min(i,v));let d=a,h=c;const y=(b,T)=>{const O=b/m;if(g)return O;const W=Math.abs(c-T);return o?O+W/o:W?1:O},D=u>1||r,R=D?Array(v):[];let A;for(;(A=e.indexOf(t,h))>-1;){const b=y(0,A);if(d=Math.min(b,d),h=A+m,D){let T=0;for(;T<m;)R[A+T]=1,T+=1}}h=-1;let k=[],f=1,$=0,x=m+v;const w=1<<m-1;for(let b=0;b<m;b+=1){let T=0,O=x;for(;T<O;)y(b,c+O)<=d?T=O:x=O,O=Math.floor((x-T)/2+T);x=O;let W=Math.max(1,c-O+1);const K=l?v:Math.min(c+O,v)+m,S=Array(K+2);S[K+1]=(1<<b)-1;for(let j=K;j>=W;j-=1){const p=j-1,G=s[e[p]];if(S[j]=(S[j+1]<<1|1)&G,b&&(S[j]|=(k[j+1]|k[j])<<1|1|k[j+1]),S[j]&w&&(f=y(b,p),f<=d)){if(d=f,h=p,$=b,h<=c)break;W=Math.max(1,2*c-h)}}if(y(b+1,c)>d)break;k=S}if(D&&h>=0){const b=Math.min(v-1,h+m-1+$);for(let T=h;T<=b;T+=1)s[e[T]]&&(R[T]=1)}const E={isMatch:h>=0,score:Math.max(.001,f)};if(D){const b=ui(R,u);b.length?r&&(E.indices=b):E.isMatch=!1}return E}function di(e){const t={};for(let s=0,i=e.length;s<i;s+=1){const o=e.charAt(s);t[o]=(t[o]||0)|1<<i-s-1}return t}function Rt(e){if(e.length<=1)return e;e.sort((s,i)=>s[0]-i[0]||s[1]-i[1]);const t=[e[0]];for(let s=1,i=e.length;s<i;s+=1){const o=t[t.length-1],a=e[s];a[0]<=o[1]+1?o[1]=Math.max(o[1],a[1]):t.push(a)}return t}const La={ł:"l",Ł:"L",đ:"d",Đ:"D",ø:"o",Ø:"O",ħ:"h",Ħ:"H",ŧ:"t",Ŧ:"T",ı:"i",ß:"ss"},fi=new RegExp("["+Object.keys(La).join("")+"]","g"),qe=typeof String.prototype.normalize=="function"?e=>e.normalize("NFD").replace(/[\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA8FF\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F]/g,"").replace(fi,t=>La[t]):e=>e;var jt=class{constructor(e,{location:t=F.location,threshold:s=F.threshold,distance:i=F.distance,includeMatches:o=F.includeMatches,findAllMatches:a=F.findAllMatches,minMatchCharLength:l=F.minMatchCharLength,isCaseSensitive:u=F.isCaseSensitive,ignoreDiacritics:r=F.ignoreDiacritics,ignoreLocation:g=F.ignoreLocation}={}){if(this.options={location:t,threshold:s,distance:i,includeMatches:o,findAllMatches:a,minMatchCharLength:l,isCaseSensitive:u,ignoreDiacritics:r,ignoreLocation:g},e=u?e:e.toLowerCase(),e=r?qe(e):e,this.pattern=e,this.chunks=[],!this.pattern.length)return;const m=(c,d)=>{this.chunks.push({pattern:c,alphabet:di(c),startIndex:d})},v=this.pattern.length;if(v>32){let c=0;const d=v%32,h=v-d;for(;c<h;)m(this.pattern.substr(c,32),c),c+=32;if(d){const y=v-32;m(this.pattern.substr(y),y)}}else m(this.pattern,0)}searchIn(e){const{isCaseSensitive:t,ignoreDiacritics:s,includeMatches:i}=this.options;if(e=t?e:e.toLowerCase(),e=s?qe(e):e,this.pattern===e){if(e.length<this.options.minMatchCharLength)return{isMatch:!1,score:1};const h={isMatch:!0,score:0};return i&&(h.indices=[[0,e.length-1]]),h}const{location:o,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:r,ignoreLocation:g}=this.options,m=[];let v=0,c=!1;this.chunks.forEach(({pattern:h,alphabet:y,startIndex:D})=>{const{isMatch:R,score:A,indices:k}=ci(e,h,y,{location:o+D,distance:a,threshold:l,findAllMatches:u,minMatchCharLength:r,includeMatches:i,ignoreLocation:g});R&&(c=!0),v+=A,R&&k&&m.push(...k)});const d={isMatch:c,score:c?v/this.chunks.length:1};return c&&i&&(d.indices=Rt(m)),d}};const pi=new Set(["fuzzy","include"]);function hi(e){return e.startsWith("inverse")}const kt=[{type:"exact",multiRegex:/^="(.*)"$/,singleRegex:/^=(.*)$/,create:e=>({type:"exact",search(t){const s=t===e;return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"include",multiRegex:/^'"(.*)"$/,singleRegex:/^'(.*)$/,create:e=>({type:"include",search(t){let s=0,i;const o=[],a=e.length;for(;(i=t.indexOf(e,s))>-1;)s=i+a,o.push([i,s-1]);const l=!!o.length;return{isMatch:l,score:l?0:1,indices:o}}})},{type:"prefix-exact",multiRegex:/^\^"(.*)"$/,singleRegex:/^\^(.*)$/,create:e=>({type:"prefix-exact",search(t){const s=t.startsWith(e);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}})},{type:"inverse-prefix-exact",multiRegex:/^!\^"(.*)"$/,singleRegex:/^!\^(.*)$/,create:e=>({type:"inverse-prefix-exact",search(t){const s=!t.startsWith(e);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"inverse-suffix-exact",multiRegex:/^!"(.*)"\$$/,singleRegex:/^!(.*)\$$/,create:e=>({type:"inverse-suffix-exact",search(t){const s=!t.endsWith(e);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"suffix-exact",multiRegex:/^"(.*)"\$$/,singleRegex:/^(.*)\$$/,create:e=>({type:"suffix-exact",search(t){const s=t.endsWith(e);return{isMatch:s,score:s?0:1,indices:[t.length-e.length,t.length-1]}}})},{type:"inverse-exact",multiRegex:/^!"(.*)"$/,singleRegex:/^!(.*)$/,create:e=>({type:"inverse-exact",search(t){const s=t.indexOf(e)===-1;return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}})},{type:"fuzzy",multiRegex:/^"(.*)"$/,singleRegex:/^(.*)$/,create:(e,t={})=>{const s=new jt(e,{location:t.location??F.location,threshold:t.threshold??F.threshold,distance:t.distance??F.distance,includeMatches:t.includeMatches??F.includeMatches,findAllMatches:t.findAllMatches??F.findAllMatches,minMatchCharLength:t.minMatchCharLength??F.minMatchCharLength,isCaseSensitive:t.isCaseSensitive??F.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics??F.ignoreDiacritics,ignoreLocation:t.ignoreLocation??F.ignoreLocation});return{type:"fuzzy",search(i){return s.searchIn(i)}}}}],Zt=kt.length,mi="\0",vi="|";function gi(e){const t=[],s=e.length;let i=0;for(;i<s;){for(;i<s&&e[i]===" ";)i++;if(i>=s)break;let o=i;for(;o<s&&e[o]!==" "&&e[o]!=='"';)o++;if(o<s&&e[o]==='"'){for(o++;o<s;){if(e[o]==='"'){const a=o+1;if(a>=s||e[a]===" "){o++;break}if(e[a]==="$"&&(a+1>=s||e[a+1]===" ")){o+=2;break}}o++}t.push(e.substring(i,o)),i=o}else{for(;o<s&&e[o]!==" ";)o++;t.push(e.substring(i,o)),i=o}}return t}function ea(e,t){const s=e.match(t);return s?s[1]:null}function yi(e,t={}){return e.replace(/\\\|/g,mi).split(vi).map(s=>{const i=gi(s.replace(/\u0000/g,"|").trim()).filter(a=>a&&!!a.trim()),o=[];for(let a=0,l=i.length;a<l;a+=1){const u=i[a];let r=!1,g=-1;for(;!r&&++g<Zt;){const m=kt[g],v=ea(u,m.multiRegex);v&&(o.push(m.create(v,t)),r=!0)}if(!r)for(g=-1;++g<Zt;){const m=kt[g],v=ea(u,m.singleRegex);if(v){o.push(m.create(v,t));break}}}return o})}var bi=class{constructor(e,{isCaseSensitive:t=F.isCaseSensitive,ignoreDiacritics:s=F.ignoreDiacritics,includeMatches:i=F.includeMatches,minMatchCharLength:o=F.minMatchCharLength,ignoreLocation:a=F.ignoreLocation,findAllMatches:l=F.findAllMatches,location:u=F.location,threshold:r=F.threshold,distance:g=F.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:s,includeMatches:i,minMatchCharLength:o,findAllMatches:l,ignoreLocation:a,location:u,threshold:r,distance:g},e=t?e:e.toLowerCase(),e=s?qe(e):e,this.pattern=e,this.query=yi(this.pattern,this.options)}static condition(e,t){return t.useExtendedSearch}searchIn(e){const t=this.query;if(!t)return{isMatch:!1,score:1};const{includeMatches:s,isCaseSensitive:i,ignoreDiacritics:o}=this.options;e=i?e:e.toLowerCase(),e=o?qe(e):e;let a=0;const l=[];let u=0,r=!1;for(let g=0,m=t.length;g<m;g+=1){const v=t[g];l.length=0,a=0,r=!1;for(let c=0,d=v.length;c<d;c+=1){const h=v[c],{isMatch:y,indices:D,score:R}=h.search(e);if(y)a+=1,u+=R,hi(h.type)&&(r=!0),s&&(pi.has(h.type)?l.push(...D):l.push(D));else{u=0,a=0,l.length=0,r=!1;break}}if(a){const c={isMatch:!0,score:u/a};return r&&(c.hasInverse=!0),s&&(c.indices=Rt(l)),c}}return{isMatch:!1,score:1}}};const _t=[];function Ft(...e){_t.push(...e)}function ot(e,t){for(let s=0,i=_t.length;s<i;s+=1){const o=_t[s];if(o.condition(e,t))return new o(e,t)}return new jt(e,t)}const lt={AND:"$and",OR:"$or"},St={PATH:"$path",PATTERN:"$val"},xt=e=>!!(e[lt.AND]||e[lt.OR]),wi=e=>!!e[St.PATH],ki=e=>!_e(e)&&Aa(e)&&!xt(e),ta=e=>({[lt.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function Ea(e,t,{auto:s=!0}={}){const i=o=>{if(le(o)){const r={keyId:null,pattern:o};return s&&(r.searcher=ot(o,t)),r}const a=Object.keys(o),l=wi(o);if(!l&&a.length>1&&!xt(o))return i(ta(o));if(ki(o)){const r=l?o[St.PATH]:a[0],g=l?o[St.PATTERN]:o[r];if(!le(g))throw new Error(Js(r));const m={keyId:et(r),pattern:g};return s&&(m.searcher=ot(g,t)),m}const u={children:[],operator:a[0]};return a.forEach(r=>{const g=o[r];_e(g)&&g.forEach(m=>{u.children.push(i(m))})}),u};return xt(e)||(e=ta(e)),i(e)}function $t(e,{ignoreFieldNorm:t=F.ignoreFieldNorm}){let s=1;return e.forEach(({key:i,norm:o,score:a})=>{const l=i?i.weight:null;s*=Math.pow(a===0&&l?Number.EPSILON:a,(l||1)*(t?1:o))}),s}function _i(e,{ignoreFieldNorm:t=F.ignoreFieldNorm}){e.forEach(s=>{s.score=$t(s.matches,{ignoreFieldNorm:t})})}var Si=class{constructor(e,t){this.limit=e,this.heap=[],this.comparator=t}get size(){return this.heap.length}insert(e){this.size<this.limit?(this.heap.push(e),this._bubbleUp(this.size-1)):this.comparator(e,this.heap[0])<0&&(this.heap[0]=e,this._sinkDown(0))}extractSorted(){return this.heap.sort(this.comparator)}_bubbleUp(e){const t=this.heap;for(;e>0;){const s=e-1>>1;if(this.comparator(t[e],t[s])<=0)break;const i=t[e];t[e]=t[s],t[s]=i,e=s}}_sinkDown(e){const t=this.heap,s=t.length;let i=e;do{e=i;const o=2*e+1,a=2*e+2;if(o<s&&this.comparator(t[o],t[i])>0&&(i=o),a<s&&this.comparator(t[a],t[i])>0&&(i=a),i!==e){const l=t[e];t[e]=t[i],t[i]=l}}while(i!==e)}};function xi(e){const t=[];return e.matches.forEach(s=>{if(!de(s.indices)||!s.indices.length)return;const i={indices:s.indices,value:s.value};s.key&&(i.key=s.key.id),s.idx>-1&&(i.refIndex=s.idx),t.push(i)}),t}function $i(e,t,{includeMatches:s=F.includeMatches,includeScore:i=F.includeScore}={}){return e.map(o=>{const{idx:a}=o,l={item:t[a],refIndex:a};return s&&(l.matches=xi(o)),i&&(l.score=o.score),l})}const Ii=/[\p{L}\p{M}\p{N}_]+/gu,aa=new WeakSet;function Ci(e){aa.has(e)||(aa.add(e),console.warn(`[Fuse] tokenize regex ${e} lacks the global flag; only the first match per text will be returned. Add the 'g' flag.`))}function Ai(e){if(typeof e=="function"){let t=!1;return s=>{const i=e(s);if(!t&&(t=!0,!Array.isArray(i)||i.some(o=>typeof o!="string")))throw new Error(`[Fuse] tokenize function must return string[]; received ${Array.isArray(i)?"array containing non-strings":typeof i}.`);return i}}return e instanceof RegExp?(e.global||Ci(e),t=>t.match(e)||[]):t=>t.match(Ii)||[]}function It({isCaseSensitive:e=!1,ignoreDiacritics:t=!1,tokenize:s}={}){const i=Ai(s);return{tokenize(o){return e||(o=o.toLowerCase()),t&&(o=qe(o)),i(o)}}}var Ti=class{static condition(e,t){return t.useTokenSearch}constructor(e,t){this.options=t,this.analyzer=It({isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,tokenize:t.tokenize});const s=this.analyzer.tokenize(e),{df:i,fieldCount:o}=t._invertedIndex;this.termSearchers=[],this.idfWeights=[];for(const a of s){this.termSearchers.push(new jt(a,{location:t.location,threshold:t.threshold,distance:t.distance,includeMatches:t.includeMatches,findAllMatches:t.findAllMatches,minMatchCharLength:t.minMatchCharLength,isCaseSensitive:t.isCaseSensitive,ignoreDiacritics:t.ignoreDiacritics,ignoreLocation:!0}));const l=i.get(a)||0,u=Math.log(1+(o-l+.5)/(l+.5));this.idfWeights.push(u)}this.combineAll=t.tokenMatch==="all",this.numTerms=this.termSearchers.length,this.useMask=this.numTerms<=31}searchIn(e){if(!this.termSearchers.length)return{isMatch:!1,score:1};const t=[];let s=0,i=0,o=0,a=0;const l=this.combineAll&&!this.useMask?new Set:null;for(let g=0;g<this.termSearchers.length;g++){const m=this.termSearchers[g].searchIn(e),v=this.idfWeights[g];i+=v,m.isMatch&&(o++,s+=v*(1-m.score),m.indices&&t.push(...m.indices),this.combineAll&&(this.useMask?a|=1<<g:l.add(g)))}if(o===0)return{isMatch:!1,score:1};const u=i>0?1-s/i:0,r={isMatch:!0,score:Math.max(.001,u)};return this.options.includeMatches&&t.length&&(r.indices=Rt(t)),this.combineAll&&(this.useMask?r.matchedMask=a:r.matchedTerms=l,r.termCount=this.numTerms),r}};function pt(e,t,s,i){const o=i.tokenize(t);if(!o.length)return;e.fieldCount++,e.docFieldCount.set(s,(e.docFieldCount.get(s)||0)+1);const a=new Set(o);let l=e.docTermFieldHits.get(s);l||(l=new Map,e.docTermFieldHits.set(s,l));for(const u of a)l.set(u,(l.get(u)||0)+1),e.df.set(u,(e.df.get(u)||0)+1)}function Ma(e,t,s,i){const{i:o,v:a,$:l}=t;if(a!==void 0){pt(e,a,o,i);return}if(l)for(let u=0;u<s;u++){const r=l[u];if(r)if(Array.isArray(r))for(const g of r)pt(e,g.v,o,i);else pt(e,r.v,o,i)}}function Di(e,t,s){const i={fieldCount:0,df:new Map,docFieldCount:new Map,docTermFieldHits:new Map};for(const o of e)Ma(i,o,t,s);return i}function Bi(e,t,s,i){Ma(e,t,s,i)}function Li(e,t){const s=e.docFieldCount.get(t);if(s===void 0)return;e.fieldCount-=s,e.docFieldCount.delete(t);const i=e.docTermFieldHits.get(t);if(i){for(const[o,a]of i){const l=(e.df.get(o)||0)-a;l<=0?e.df.delete(o):e.df.set(o,l)}e.docTermFieldHits.delete(t)}}function na(e,t){if(t.length===0)return;const s=Array.from(new Set(t)).sort((u,r)=>u-r);for(const u of s)Li(e,u);const i=u=>{let r=0,g=s.length;for(;r<g;){const m=r+g>>>1;s[m]<u?r=m+1:g=m}return u-r},o=s[0],a=new Map;for(const[u,r]of e.docFieldCount)a.set(u>o?i(u):u,r);e.docFieldCount=a;const l=new Map;for(const[u,r]of e.docTermFieldHits)l.set(u>o?i(u):u,r);e.docTermFieldHits=l}var Se=class{constructor(e,t,s){this.options={...F,...t},this.options.useExtendedSearch,this.options.useTokenSearch,this._keyStore=new ei(this.options.keys),this._docs=e,this._myIndex=null,this._invertedIndex=null,this.setCollection(e,s),this._lastQuery=null,this._lastSearcher=null}_getSearcher(e){if(this._lastQuery===e)return this._lastSearcher;const t=ot(e,this._invertedIndex?{...this.options,_invertedIndex:this._invertedIndex}:this.options);return this._lastQuery=e,this._lastSearcher=t,t}setCollection(e,t){if(this._docs=e,t&&!(t instanceof Ot))throw new Error(Gs);if(this._myIndex=t||Ba(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight}),this.options.useTokenSearch){const s=It({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});this._invertedIndex=Di(this._myIndex.records,this._myIndex.keys.length,s)}this._invalidateSearcherCache()}add(e){if(!de(e))return;this._docs.push(e);const t=this._myIndex.add(e,this._docs.length-1);if(this._invertedIndex&&t){const s=It({isCaseSensitive:this.options.isCaseSensitive,ignoreDiacritics:this.options.ignoreDiacritics,tokenize:this.options.tokenize});Bi(this._invertedIndex,t,this._myIndex.keys.length,s)}this._invalidateSearcherCache()}remove(e=()=>!1){const t=[],s=[];for(let i=0,o=this._docs.length;i<o;i+=1)e(this._docs[i],i)&&(t.push(this._docs[i]),s.push(i));if(s.length){this._invertedIndex&&na(this._invertedIndex,s);const i=new Set(s);this._docs=this._docs.filter((o,a)=>!i.has(a)),this._myIndex.removeAll(s),this._invalidateSearcherCache()}return t}removeAt(e){if(!Number.isInteger(e)||e<0||e>=this._docs.length)throw new Error(wt);this._invertedIndex&&na(this._invertedIndex,[e]);const t=this._docs.splice(e,1)[0];return this._myIndex.removeAt(e),this._invalidateSearcherCache(),t}_invalidateSearcherCache(){this._lastQuery=null,this._lastSearcher=null}getIndex(){return this._myIndex}_normalizedKeys(){return this._myIndex.keys.map(e=>this._keyStore.get(e.id)||e)}search(e,t){const{limit:s=-1}=t||{},{includeMatches:i,includeScore:o,shouldSort:a,sortFn:l,ignoreFieldNorm:u}=this.options;if(le(e)&&!e.trim()){let c=this._docs.map((d,h)=>({item:d,refIndex:h}));return Ze(s)&&s>-1&&(c=c.slice(0,s)),c}const r=a&&Ze(s)&&s>0&&le(e),g=l,m=(c,d)=>g(c,d)||c.idx-d.idx;let v;if(r){const c=new Si(s,m);le(this._docs[0])?this._searchStringList(e,{heap:c,ignoreFieldNorm:u}):this._searchObjectList(e,{heap:c,ignoreFieldNorm:u}),v=c.extractSorted()}else v=le(e)?le(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e),_i(v,{ignoreFieldNorm:u}),a&&v.sort(le(e)?m:g),Ze(s)&&s>-1&&(v=v.slice(0,s));return $i(v,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(e,{heap:t,ignoreFieldNorm:s}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,l=t?null:[];return a.forEach(({v:u,i:r,n:g})=>{if(!de(u))return;const m=i.searchIn(u);if(m.isMatch){const v={score:m.score,value:u,norm:g,indices:m.indices};o&&(v.matchedMask=m.matchedMask,v.matchedTerms=m.matchedTerms,v.termCount=m.termCount);const c=[v];if(!o||this._coversAllTokens(c)){const d={item:u,idx:r,matches:c};t?(d.score=$t(d.matches,{ignoreFieldNorm:s}),t.insert(d)):l.push(d)}}}),l}_searchLogical(e){const t=Ea(e,this.options),s=this._normalizedKeys(),i=(u,r,g)=>{if(!("children"in u)){const{keyId:d,searcher:h}=u;let y;return d===null?(y=[],s.forEach((D,R)=>{y.push(...this._findMatches({key:D,value:r[R],searcher:h}))})):y=this._findMatches({key:this._keyStore.get(d),value:this._myIndex.getValueForItemAtKeyId(r,d),searcher:h}),y&&y.length?[{idx:g,item:r,matches:y}]:[]}const{children:m,operator:v}=u,c=[];for(let d=0,h=m.length;d<h;d+=1){const y=m[d],D=i(y,r,g);if(D.length)c.push(...D);else if(v===lt.AND)return[]}return c},o=this._myIndex.records,a=new Map,l=[];return o.forEach(({$:u,i:r})=>{if(de(u)){const g=i(t,u,r);g.length&&(a.has(r)||(a.set(r,{idx:r,item:u,matches:[]}),l.push(a.get(r))),g.forEach(({matches:m})=>{a.get(r).matches.push(...m)}))}}),l}_searchObjectList(e,{heap:t,ignoreFieldNorm:s}={}){const i=this._getSearcher(e),o=this.options.useTokenSearch&&this.options.tokenMatch==="all",{records:a}=this._myIndex,l=this._normalizedKeys(),u=t?null:[];return a.forEach(({$:r,i:g})=>{if(!de(r))return;const m=[];let v=!1,c=!1;if(l.forEach((d,h)=>{const y=this._findMatches({key:d,value:r[h],searcher:i});y.length?(m.push(...y),y[0].hasInverse&&(c=!0)):v=!0}),!(c&&v)&&m.length&&(!o||this._coversAllTokens(m))){const d={idx:g,item:r,matches:m};t?(d.score=$t(d.matches,{ignoreFieldNorm:s}),t.insert(d)):u.push(d)}}),u}_findMatches({key:e,value:t,searcher:s}){if(!de(t))return[];const i=[];if(_e(t))t.forEach(({v:o,i:a,n:l})=>{if(!de(o))return;const u=s.searchIn(o);if(u.isMatch){const r={score:u.score,key:e,value:o,idx:a,norm:l,indices:u.indices,hasInverse:u.hasInverse};u.termCount!==void 0&&(r.matchedMask=u.matchedMask,r.matchedTerms=u.matchedTerms,r.termCount=u.termCount),i.push(r)}});else{const{v:o,n:a}=t,l=s.searchIn(o);if(l.isMatch){const u={score:l.score,key:e,value:o,norm:a,indices:l.indices,hasInverse:l.hasInverse};l.termCount!==void 0&&(u.matchedMask=l.matchedMask,u.matchedTerms=l.matchedTerms,u.termCount=l.termCount),i.push(u)}}return i}_coversAllTokens(e){const t=e.length?e[0].termCount:void 0;if(t===void 0)return!0;if(t<=31){let i=0;for(let o=0;o<e.length;o++)i|=e[o].matchedMask||0;return i===2**t-1}const s=new Set;for(let i=0;i<e.length;i++){const o=e[i].matchedTerms;if(o)for(const a of o)s.add(a)}return s.size===t}};Se.version="7.5.0";Se.createIndex=Ba;Se.parseIndex=ri;Se.config=F;Se.match=function(e,t,s){if(s&&s.useTokenSearch)throw new Error(Zs);return ot(e,{...F,...s}).searchIn(t)};Se.parseQuery=Ea;Ft(bi);Ft(Ti);Se.use=function(...e){e.forEach(t=>Ft(t))};var Ei=Se;function Mi(e,t,s){const i=()=>{var a,l;return new Ei((a=ge(t))!==null&&a!==void 0?a:[],(l=ge(s))===null||l===void 0?void 0:l.fuseOptions)},o=cn(i());return re(()=>{var a;return(a=ge(s))===null||a===void 0?void 0:a.fuseOptions},()=>{o.value=i()},{deep:!0}),re(()=>ge(t),a=>{o.value.setCollection(a)},{deep:!0}),{fuse:o,results:M(()=>{const a=ge(s);if(a?.matchAllWhenSearchEmpty&&!ge(e))return ge(t).map((u,r)=>({item:u,refIndex:r}));const l=a?.resultLimit;return o.value.search(ge(e),l?{limit:l}:void 0)})}}const Oi={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ri(e){return e.replace(/[&<>"']/g,t=>Oi[t])}function ji(e){return/&(?:amp|lt|gt|quot|#39);/.test(e)}function ht(e){return ji(e)?e:Ri(e)}function Fi(e,t){let s="",i=0,o=!1;for(let a=e.length-1;a>=0;a--){if(e[a]===">")o=!0;else if(e[a]==="<"){o=!1,s=e[a]+s;continue}if(o||i++,i<=t)s=e[a]+s;else{s="..."+s;break}}return s}function mt(e,t,s,i,o){const a=o?t.match(/[\p{L}\p{M}\p{N}_]+/gu)||[]:[],l=a.length>0?Math.min(...a.map(r=>r.length)):t.length;function u(r,g=[]){r=r||"";let m="",v=0;g.forEach(d=>{if(d.length===2&&d[0]===d[1])return;const h=d[1]+1,y=h-d[0]>=l;m+=[ht(r.substring(v,d[0])),y&&"<mark>",ht(r.substring(d[0],h)),y&&"</mark>"].filter(Boolean).join(""),v=h}),m+=ht(r.substring(v));const c=m.indexOf("<mark>");return c!==-1&&(m=Fi(m,m.length-c)),m}if(e.matches?.length){for(const r of e.matches)if(!(s&&r.key!==s)&&!i?.includes(r.key))return u(r.value,r.indices)}}const Pi={slots:{root:"flex flex-col min-h-0 min-w-0 divide-y divide-default",input:"",close:"",back:"p-0",content:"relative overflow-hidden flex flex-col",footer:"p-1",viewport:"relative scroll-py-1 overflow-y-auto flex-1 focus:outline-none",group:"p-1 isolate",empty:"text-center text-muted",label:"font-semibold text-highlighted",item:"group relative w-full flex items-start select-none outline-none before:absolute before:z-[-1] before:inset-px before:rounded-md data-disabled:cursor-not-allowed data-disabled:opacity-75",itemLeadingIcon:"shrink-0",itemLeadingAvatar:"shrink-0",itemLeadingAvatarSize:"",itemLeadingChip:"shrink-0",itemLeadingChipSize:"",itemTrailing:"ms-auto inline-flex items-center",itemTrailingIcon:"shrink-0",itemTrailingHighlightedIcon:"shrink-0 text-dimmed hidden group-data-highlighted:inline-flex",itemTrailingKbds:"hidden lg:inline-flex items-center shrink-0",itemTrailingKbdsSize:"",itemWrapper:"flex-1 flex flex-col text-start min-w-0",itemLabel:"truncate space-x-1 text-dimmed",itemLabelBase:"text-highlighted [&>mark]:text-primary [&>mark]:bg-primary/15",itemLabelPrefix:"text-default",itemLabelSuffix:"text-dimmed [&>mark]:text-primary [&>mark]:bg-primary/15",itemDescription:"truncate text-muted [&>mark]:text-primary [&>mark]:bg-primary/15"},variants:{virtualize:{true:{viewport:"p-1 isolate"},false:{viewport:"divide-y divide-default"}},size:{xs:{input:"[&>input]:h-10",empty:"py-3 text-xs",label:"p-1 text-[10px]/3 gap-1",item:"p-1 text-xs gap-1",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailing:"gap-1",itemTrailingIcon:"size-4",itemTrailingHighlightedIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},sm:{input:"[&>input]:h-11",empty:"py-4 text-xs",label:"p-1.5 text-[10px]/3 gap-1.5",item:"p-1.5 text-xs gap-1.5",itemLeadingIcon:"size-4",itemLeadingAvatarSize:"3xs",itemLeadingChip:"size-4",itemLeadingChipSize:"sm",itemTrailing:"gap-1.5",itemTrailingIcon:"size-4",itemTrailingHighlightedIcon:"size-4",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"sm"},md:{input:"[&>input]:h-12",empty:"py-6 text-sm",label:"p-1.5 text-xs gap-1.5",item:"p-1.5 text-sm gap-1.5",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailing:"gap-1.5",itemTrailingIcon:"size-5",itemTrailingHighlightedIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},lg:{input:"[&>input]:h-13",empty:"py-7 text-sm",label:"p-2 text-xs gap-2",item:"p-2 text-sm gap-2",itemLeadingIcon:"size-5",itemLeadingAvatarSize:"2xs",itemLeadingChip:"size-5",itemLeadingChipSize:"md",itemTrailing:"gap-2",itemTrailingIcon:"size-5",itemTrailingHighlightedIcon:"size-5",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"md"},xl:{input:"[&>input]:h-14",empty:"py-8 text-base",label:"p-2 text-sm gap-2",item:"p-2 text-base gap-2",itemLeadingIcon:"size-6",itemLeadingAvatarSize:"xs",itemLeadingChip:"size-6",itemLeadingChipSize:"lg",itemTrailing:"gap-2",itemTrailingIcon:"size-6",itemTrailingHighlightedIcon:"size-6",itemTrailingKbds:"gap-0.5",itemTrailingKbdsSize:"lg"}},active:{true:{item:"text-highlighted before:bg-elevated",itemLeadingIcon:"text-default"},false:{item:["text-default data-highlighted:not-data-disabled:text-highlighted data-highlighted:not-data-disabled:before:bg-elevated/50","transition-colors before:transition-colors"],itemLeadingIcon:["text-dimmed group-data-highlighted:not-group-data-disabled:text-default","transition-colors"]}},loading:{true:{itemLeadingIcon:"animate-spin"}}},defaultVariants:{size:"md"}},zi=["innerHTML"],qi=["innerHTML"],Ni=["innerHTML"],Ki=Object.assign({inheritAttrs:!1},{__name:"UCommandPalette",props:it({as:{type:null,required:!1},size:{type:null,required:!1},icon:{type:[String,Boolean],required:!1,skipCheck:!0},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},childrenIcon:{type:null,required:!1},placeholder:{type:String,required:!1},autofocus:{type:Boolean,required:!1,default:!0},close:{type:[Boolean,Object],required:!1},closeIcon:{type:null,required:!1},back:{type:[Boolean,Object],required:!1,default:!0},backIcon:{type:null,required:!1},input:{type:[Boolean,Object],required:!1,default:!0},groups:{type:Array,required:!1},fuse:{type:Object,required:!1},virtualize:{type:[Boolean,Object],required:!1,default:!1},valueKey:{type:null,required:!1},labelKey:{type:null,required:!1,default:"label"},descriptionKey:{type:null,required:!1,default:"description"},preserveGroupOrder:{type:Boolean,required:!1,default:!1},searchDelay:{type:Number,required:!1,default:0},class:{type:null,required:!1},ui:{type:Object,required:!1},multiple:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1},modelValue:{type:null,required:!1},defaultValue:{type:null,required:!1},highlightOnHover:{type:Boolean,required:!1,default:!0},selectionBehavior:{type:String,required:!1},by:{type:[String,Function],required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1}},{searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:it(["update:modelValue","highlight","entryFocus","leave","update:open"],["update:searchTerm"]),setup(e,{emit:t}){const s=e,i=t,o=Ee(),a=Me("commandPalette",s),l=ze(e,"searchTerm",{type:String,default:""}),{t:u}=Ne(),r=Ce(),g=Pe(st(a,"as","disabled","multiple","modelValue","defaultValue","highlightOnHover","by"),i),m=Be(()=>a.virtualize?Le(typeof a.virtualize=="boolean"?{}:a.virtualize,{estimateSize:Xn(E.value,"md",a.descriptionKey,!!o["item-description"])}):!1),[v,c]=at({props:{item:{type:Object,required:!0},group:{type:Object,required:!1},index:{type:Number,required:!1}}}),d=M(()=>Oe({extend:Pi,...r.ui?.commandPalette||{}})({size:a.size,virtualize:!!a.virtualize})),h=M(()=>Le({},a.fuse,{fuseOptions:{ignoreLocation:!0,threshold:.1,keys:[a.labelKey,a.descriptionKey,"suffix"]},resultLimit:12,matchAllWhenSearchEmpty:!0})),y=H([]),D=M(()=>y.value[y.value.length-1]?.placeholder||a.placeholder||u("commandPalette.placeholder")),R=M(()=>y.value?.length?[y.value[y.value.length-1]]:a.groups),A=M(()=>R.value?.filter(S=>S.id?!S.ignoreFilter:(console.warn("[@nuxt/ui] CommandPalette group is missing an `id` property"),!1))?.flatMap(S=>S.items?.map(j=>({...j,group:S.id}))||[])||[]),k=dn(l,()=>a.searchDelay),{results:f}=Mi(k,A,h),$=fn(f,16,!0);function x(S,j){let p=j;return S?.postFilter&&typeof S.postFilter=="function"&&(p=S.postFilter(k.value,p)),{...S,items:p.slice(0,h.value.resultLimit).map(G=>({...G,labelHtml:G.labelHtml??mt(G,k.value,a.labelKey,void 0,h.value.fuseOptions?.useTokenSearch),suffixHtml:G.suffixHtml??mt(G,k.value,"suffix",[a.labelKey],h.value.fuseOptions?.useTokenSearch),descriptionHtml:G.descriptionHtml??mt(G,k.value,a.descriptionKey,[a.labelKey,"suffix"],h.value.fuseOptions?.useTokenSearch)}))}}const w=M(()=>{const S=R.value,j=$.value.reduce((C,J)=>{const{item:oe,matches:te}=J;return oe.group&&(C[oe.group]||=[],C[oe.group]?.push({...oe,matches:te})),C},{});if(a.preserveGroupOrder){const C=[];for(const J of S||[]){if(!J.items?.length)continue;const oe=J.ignoreFilter?J.items:j[J.id];if(!oe?.length)continue;const te=x(J,oe);te.items?.length&&C.push(te)}return C}const G=[...Object.entries(j).map(([C,J])=>{const oe=S?.find(be=>be.id===C);if(!oe)return;const te=x(oe,J);return te.items?.length?te:void 0}).filter(C=>!!C)];for(const C of S||[]){if(!C.ignoreFilter||!C.items?.length)continue;const J=x(C,C.items);if(!J.items?.length)continue;const oe=S.indexOf(C),te=new Set;for(let me=0;me<oe;me++)te.add(S[me].id);let be=-1;for(let me=0;me<G.length;me++)te.has(G[me].id)&&(be=me);G.splice(be+1,0,J)}return G}),E=M(()=>w.value.flatMap(S=>S.items||[])),b=pa("rootRef");re(w,()=>{Dt(()=>{const S=b.value;S?.$el?.contains(document.activeElement)?S?.highlightFirstItem():S?.highlightSelected(void 0,!1)})});function T(S){S.children?.length&&(y.value.push({id:`history-${y.value.length}`,label:S.label,slot:S.slot,placeholder:S.placeholder,items:S.children}),l.value="",b.value?.highlightFirstItem())}function O(){y.value.length&&(y.value.pop(),l.value="",b.value?.highlightFirstItem())}function W(){l.value||O()}function K(S,j){j.children?.length?(S.preventDefault(),T(j)):j.onSelect?.(S)}return(S,j)=>(_(),U(pe,null,[B(n(v),null,{default:I(({item:p,index:G,group:C})=>[B(ha,Q(n(pn)(p),{custom:""}),{default:I(({active:J,...oe})=>[B(n(Un),{value:n(a).valueKey?n(ve)(p,n(a).valueKey):n(nt)(p,["matches","group","onSelect","labelHtml","suffixHtml","descriptionHtml","children"]),disabled:p.disabled,"as-child":"",onSelect:te=>K(te,p)},{default:I(()=>[B(hn,Q(oe,{"data-slot":"item",class:d.value.item({class:[n(a).ui?.item,p.ui?.item,p.class],active:J||p.active})}),{default:I(()=>[N(S.$slots,p.slot||C?.slot||"item",{item:p,index:G,ui:d.value},()=>[N(S.$slots,p.slot?`${p.slot}-leading`:C?.slot?`${C.slot}-leading`:"item-leading",{item:p,index:G,ui:d.value},()=>[p.loading?(_(),L(Ie,{key:0,name:n(a).loadingIcon||n(r).ui.icons.loading,"data-slot":"itemLeadingIcon",class:q(d.value.itemLeadingIcon({class:[n(a).ui?.itemLeadingIcon,p.ui?.itemLeadingIcon],loading:!0}))},null,8,["name","class"])):p.icon?(_(),L(Ie,{key:1,name:p.icon,"data-slot":"itemLeadingIcon",class:q(d.value.itemLeadingIcon({class:[n(a).ui?.itemLeadingIcon,p.ui?.itemLeadingIcon],active:J||p.active}))},null,8,["name","class"])):p.avatar?(_(),L(mn,Q({key:2,size:p.ui?.itemLeadingAvatarSize||n(a).ui?.itemLeadingAvatarSize||d.value.itemLeadingAvatarSize()},p.avatar,{"data-slot":"itemLeadingAvatar",class:d.value.itemLeadingAvatar({class:[n(a).ui?.itemLeadingAvatar,p.ui?.itemLeadingAvatar],active:J||p.active})}),null,16,["size","class"])):p.chip?(_(),L(vn,Q({key:3,size:p.ui?.itemLeadingChipSize||n(a).ui?.itemLeadingChipSize||d.value.itemLeadingChipSize(),inset:"",standalone:""},p.chip,{"data-slot":"itemLeadingChip",class:d.value.itemLeadingChip({class:[n(a).ui?.itemLeadingChip,p.ui?.itemLeadingChip],active:J||p.active})}),null,16,["size","class"])):P("",!0)]),p.prefix||p.labelHtml||n(ve)(p,n(a).labelKey)||p.suffixHtml||p.suffix||o[p.slot?`${p.slot}-label`:C?.slot?`${C.slot}-label`:"item-label"]||n(ve)(p,n(a).descriptionKey)||o[p.slot?`${p.slot}-description`:C?.slot?`${C.slot}-description`:"item-description"]?(_(),U("span",{key:0,"data-slot":"itemWrapper",class:q(d.value.itemWrapper({class:[n(a).ui?.itemWrapper,p.ui?.itemWrapper]}))},[V("span",{"data-slot":"itemLabel",class:q(d.value.itemLabel({class:[n(a).ui?.itemLabel,p.ui?.itemLabel],active:J||p.active}))},[N(S.$slots,p.slot?`${p.slot}-label`:C?.slot?`${C.slot}-label`:"item-label",{item:p,index:G,ui:d.value},()=>[p.prefix?(_(),U("span",{key:0,"data-slot":"itemLabelPrefix",class:q(d.value.itemLabelPrefix({class:[n(a).ui?.itemLabelPrefix,p.ui?.itemLabelPrefix]}))},ie(p.prefix),3)):P("",!0),p.labelHtml?(_(),U("span",{key:1,"data-slot":"itemLabelBase",class:q(d.value.itemLabelBase({class:[n(a).ui?.itemLabelBase,p.ui?.itemLabelBase],active:J||p.active})),innerHTML:p.labelHtml},null,10,zi)):(_(),U("span",{key:2,"data-slot":"itemLabelBase",class:q(d.value.itemLabelBase({class:[n(a).ui?.itemLabelBase,p.ui?.itemLabelBase],active:J||p.active}))},ie(n(ve)(p,n(a).labelKey)),3)),p.suffixHtml?(_(),U("span",{key:3,"data-slot":"itemLabelSuffix",class:q(d.value.itemLabelSuffix({class:[n(a).ui?.itemLabelSuffix,p.ui?.itemLabelSuffix],active:J||p.active})),innerHTML:p.suffixHtml},null,10,qi)):p.suffix?(_(),U("span",{key:4,"data-slot":"itemLabelSuffix",class:q(d.value.itemLabelSuffix({class:[n(a).ui?.itemLabelSuffix,p.ui?.itemLabelSuffix],active:J||p.active}))},ie(p.suffix),3)):P("",!0)])],2),p.descriptionHtml?(_(),U("span",{key:0,"data-slot":"itemDescription",class:q(d.value.itemDescription({class:[n(a).ui?.itemDescription,p.ui?.itemDescription]})),innerHTML:p.descriptionHtml},null,10,Ni)):n(ve)(p,n(a).descriptionKey)||o[p.slot?`${p.slot}-description`:C?.slot?`${C.slot}-description`:"item-description"]?(_(),U("span",{key:1,"data-slot":"itemDescription",class:q(d.value.itemDescription({class:[n(a).ui?.itemDescription,p.ui?.itemDescription]}))},[N(S.$slots,p.slot?`${p.slot}-description`:C?.slot?`${C.slot}-description`:"item-description",{item:p,index:G,ui:d.value},()=>[ce(ie(n(ve)(p,n(a).descriptionKey)),1)])],2)):P("",!0)],2)):P("",!0),V("span",{"data-slot":"itemTrailing",class:q(d.value.itemTrailing({class:[n(a).ui?.itemTrailing,p.ui?.itemTrailing]}))},[N(S.$slots,p.slot?`${p.slot}-trailing`:C?.slot?`${C.slot}-trailing`:"item-trailing",{item:p,index:G,ui:d.value},()=>[p.children&&p.children.length>0?(_(),L(Ie,{key:0,name:n(a).childrenIcon||n(r).ui.icons.chevronRight,"data-slot":"itemTrailingIcon",class:q(d.value.itemTrailingIcon({class:[n(a).ui?.itemTrailingIcon,p.ui?.itemTrailingIcon]}))},null,8,["name","class"])):p.kbds?.length?(_(),U("span",{key:1,"data-slot":"itemTrailingKbds",class:q(d.value.itemTrailingKbds({class:[n(a).ui?.itemTrailingKbds,p.ui?.itemTrailingKbds]}))},[(_(!0),U(pe,null,we(p.kbds,(te,be)=>(_(),L(la,Q({key:be,size:p.ui?.itemTrailingKbdsSize||n(a).ui?.itemTrailingKbdsSize||d.value.itemTrailingKbdsSize()},{ref_for:!0},typeof te=="string"?{value:te}:te),null,16,["size"]))),128))],2)):C?.highlightedIcon?(_(),L(Ie,{key:2,name:C.highlightedIcon,"data-slot":"itemTrailingHighlightedIcon",class:q(d.value.itemTrailingHighlightedIcon({class:[n(a).ui?.itemTrailingHighlightedIcon,p.ui?.itemTrailingHighlightedIcon]}))},null,8,["name","class"])):P("",!0)]),p.children?.length?P("",!0):(_(),L(n(Vn),{key:0,"as-child":""},{default:I(()=>[B(Ie,{name:n(a).selectedIcon||n(r).ui.icons.check,"data-slot":"itemTrailingIcon",class:q(d.value.itemTrailingIcon({class:[n(a).ui?.itemTrailingIcon,p.ui?.itemTrailingIcon]}))},null,8,["name","class"])]),_:2},1024))],2)])]),_:2},1040,["class"])]),_:2},1032,["value","disabled","onSelect"])]),_:2},1040)]),_:3}),B(n(Qn),Q({ref_key:"rootRef",ref:b,"data-slot":"root"},{...n(g),...S.$attrs},{"selection-behavior":n(a).selectionBehavior,class:d.value.root({class:[n(a).ui?.root,n(a).class]})}),{default:I(()=>[n(a).input?(_(),L(n(Wn),{key:0,modelValue:l.value,"onUpdate:modelValue":j[1]||(j[1]=p=>l.value=p),"as-child":""},{default:I(()=>[B(Et,Q({variant:"none",size:n(a).size,placeholder:D.value,autofocus:n(a).autofocus,loading:n(a).loading,"loading-icon":n(a).loadingIcon,"trailing-icon":n(a).trailingIcon,icon:n(a).icon===!1?void 0:n(a).icon??n(r).ui.icons.search},typeof n(a).input=="object"?n(a).input:{},{"data-slot":"input",class:d.value.input({class:n(a).ui?.input}),onKeydown:gn(W,["backspace"])}),At({_:2},[y.value?.length&&(n(a).back||o.back)?{name:"leading",fn:I(()=>[N(S.$slots,"back",{ui:d.value},()=>[B(ke,Q({size:n(a).size,icon:n(a).backIcon||n(r).ui.icons.arrowLeft,color:"neutral",variant:"link","aria-label":n(u)("commandPalette.back")},typeof n(a).back=="object"?n(a).back:{},{"data-slot":"back",class:d.value.back({class:n(a).ui?.back}),onClick:O}),null,16,["size","icon","aria-label","class"])])]),key:"0"}:void 0,n(a).close||o.close?{name:"trailing",fn:I(()=>[N(S.$slots,"close",{ui:d.value},()=>[n(a).close?(_(),L(ke,Q({key:0,size:n(a).size,icon:n(a).closeIcon||n(r).ui.icons.close,color:"neutral",variant:"ghost","aria-label":n(u)("commandPalette.close")},typeof n(a).close=="object"?n(a).close:{},{"data-slot":"close",class:d.value.close({class:n(a).ui?.close}),onClick:j[0]||(j[0]=p=>i("update:open",!1))}),null,16,["size","icon","aria-label","class"])):P("",!0)])]),key:"1"}:void 0]),1040,["size","placeholder","autofocus","loading","loading-icon","trailing-icon","icon","class"])]),_:3},8,["modelValue"])):P("",!0),B(n(Gn),{"data-slot":"content",class:q(d.value.content({class:n(a).ui?.content}))},{default:I(()=>[w.value?.length?(_(),U("div",{key:0,role:"presentation","data-slot":"viewport",class:q(d.value.viewport({class:n(a).ui?.viewport}))},[n(a).virtualize?(_(),L(n(Jn),Q({key:0,options:E.value,"text-content":p=>n(ve)(p,n(a).labelKey)},m.value),{default:I(({option:p,virtualItem:G})=>[B(n(c),{item:p,index:G.index},null,8,["item","index"])]),_:1},16,["options","text-content"])):(_(!0),U(pe,{key:1},we(w.value,p=>(_(),L(n(Yn),{key:`group-${p.id}`,"data-slot":"group",class:q(d.value.group({class:n(a).ui?.group}))},{default:I(()=>[n(ve)(p,n(a).labelKey)||o[p.slot?`${p.slot}-group-label`:"group-label"]?(_(),L(n(ds),{key:0,"data-slot":"label",class:q(d.value.label({class:n(a).ui?.label}))},{default:I(()=>[N(S.$slots,p.slot?`${p.slot}-group-label`:"group-label",{group:p,label:n(ve)(p,n(a).labelKey),ui:d.value},()=>[ce(ie(n(ve)(p,n(a).labelKey)),1)])]),_:2},1032,["class"])):P("",!0),(_(!0),U(pe,null,we(p.items,(G,C)=>(_(),L(n(c),{key:`group-${p.id}-${C}`,item:G,index:C,group:p},null,8,["item","index","group"]))),128))]),_:2},1032,["class"]))),128))],2)):(_(),U("div",{key:1,"data-slot":"empty",class:q(d.value.empty({class:n(a).ui?.empty}))},[N(S.$slots,"empty",{searchTerm:l.value},()=>[ce(ie(l.value?n(u)("commandPalette.noMatch",{searchTerm:l.value}):n(u)("commandPalette.noData")),1)])],2))]),_:3},8,["class"]),o.footer?(_(),U("div",{key:1,"data-slot":"footer",class:q(d.value.footer({class:n(a).ui?.footer}))},[N(S.$slots,"footer",{ui:d.value})],2)):P("",!0)]),_:3},16,["selection-behavior","class"])],64))}}),Hi={slots:{modal:"",input:""},variants:{fullscreen:{false:{modal:"sm:max-w-3xl h-full sm:h-[28rem]"}},size:{xs:{},sm:{},md:{},lg:{},xl:{}}},defaultVariants:{size:"md"}},Ui=/^[^-]+.*-.*[^-]+$/,Vi=/^[^_]+.*_.*[^_]+$/,sa=["arrowleft","arrowright","arrowup","arrowdown","tab","escape","enter","backspace"];function Xe(e){return/^[a-z]$/i.test(e)?`Key${e.toUpperCase()}`:/^\d$/.test(e)?`Digit${e}`:/^f\d+$/i.test(e)?e.toUpperCase():{space:"Space",enter:"Enter",escape:"Escape",tab:"Tab",backspace:"Backspace",delete:"Delete",arrowup:"ArrowUp",arrowdown:"ArrowDown",arrowleft:"ArrowLeft",arrowright:"ArrowRight"}[e.toLowerCase()]||e}function Oa(e,t={}){const s=t.chainDelay??800,i=H([]),o=()=>{i.value.splice(0,i.value.length)},a=ma(o,s);let l;const u=()=>{l=void 0,g.stop()},r=()=>{const f=l;if(u(),!f)return;const $=A.value.find(x=>x.key===f.shortcut.key&&!x.metaKey&&!x.ctrlKey&&!x.altKey&&!x.shiftKey);$?.enabled&&$.handler(f.event)},g=yn(()=>{r(),o()},s,{immediate:!1}),{macOS:m}=bn(),v=kn(),c=t.layoutIndependent??!1,d=sa.map(f=>Xe(f)),h=f=>{if(!f.key)return;const $=c||f.altKey,x=$?/^Key[A-Z]$/i.test(f.code):/^[a-z]{1}$/i.test(f.key),w=$?d.includes(f.code):sa.includes(f.key.toLowerCase());let E;if(i.value.push(c?f.code:f.key),i.value.length>=2){E=i.value.slice(-2).join("-");for(const b of R.value)if(b.key===E){b.enabled?(u(),f.preventDefault(),b.handler(f)):r(),o();return}}r();for(const b of A.value){if(c){if(f.code!==b.key)continue}else if(b.altKey&&f.altKey){if(f.code!==Xe(b.key))continue}else if(f.key.toLowerCase()!==b.key)continue;if(f.metaKey!==b.metaKey||f.ctrlKey!==b.ctrlKey||f.altKey!==b.altKey||(x||w||b.shiftKey||f.shiftKey&&(f.metaKey||f.ctrlKey))&&f.shiftKey!==b.shiftKey)continue;if(!b.metaKey&&!b.ctrlKey&&!b.altKey&&!b.shiftKey&&k.value.has(b.key)){b.enabled&&f.preventDefault(),l={shortcut:b,event:f},g.start();return}b.enabled&&(f.preventDefault(),b.handler(f)),o();return}a()},y=M(()=>{const f=v.value?.tagName,$=v.value?.contentEditable;return f==="INPUT"||f==="TEXTAREA"||$==="true"||$==="plaintext-only"?v.value?.name||!0:!1}),D=M(()=>Object.entries(ge(e)).map(([f,$])=>{if(!$)return null;let x;f.includes("-")&&f!=="-"&&!f.includes("_")&&!f.match(Ui)?.length&&console.trace(`[Shortcut] Invalid key: "${f}"`),f.includes("_")&&f!=="_"&&!f.match(Vi)?.length&&console.trace(`[Shortcut] Invalid key: "${f}"`);const w=f.includes("-")&&f!=="-"&&!f.includes("_");if(w)c?x={key:f.split("-").map(T=>Xe(T)).join("-"),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1}:x={key:f.toLowerCase(),metaKey:!1,ctrlKey:!1,shiftKey:!1,altKey:!1};else{const b=f.toLowerCase().split("_").map(O=>O);let T=b.filter(O=>!["meta","command","ctrl","shift","alt","option"].includes(O)).join("_");c&&(T=Xe(T)),x={key:T,metaKey:b.includes("meta")||b.includes("command"),ctrlKey:b.includes("ctrl"),shiftKey:b.includes("shift"),altKey:b.includes("alt")||b.includes("option")}}if(x.chained=w,!m.value&&x.metaKey&&!x.ctrlKey&&(x.metaKey=!1,x.ctrlKey=!0),typeof $=="function"?x.handler=$:typeof $=="object"&&(x={...x,handler:$.handler}),!x.handler)return console.trace("[Shortcut] Invalid value"),null;let E=!0;return $.usingInput?typeof $.usingInput=="string"&&(E=y.value===$.usingInput):E=!y.value,x.enabled=E,x}).filter(Boolean)),R=M(()=>D.value.filter(f=>f.chained)),A=M(()=>D.value.filter(f=>!f.chained)),k=M(()=>new Set(R.value.map(f=>f.key.split("-")[0])));return wn("keydown",h)}const Wi={__name:"UDashboardSearch",props:it({size:{type:null,required:!1},close:{type:[Boolean,Object],required:!1,default:!0},input:{type:[Boolean,Object],required:!1},shortcut:{type:String,required:!1,default:"meta_k"},fuse:{type:Object,required:!1},searchDelay:{type:Number,required:!1,default:100},colorMode:{type:Boolean,required:!1,default:!0},class:{type:null,required:!1},ui:{type:Object,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},overlay:{type:Boolean,required:!1},transition:{type:Boolean,required:!1},content:{type:Object,required:!1},dismissible:{type:Boolean,required:!1},fullscreen:{type:Boolean,required:!1,default:!1},modal:{type:Boolean,required:!1},portal:{type:[Boolean,String],required:!1,skipCheck:!0},unmountOnHide:{type:Boolean,required:!1},icon:{type:[String,Boolean],required:!1,skipCheck:!0},trailingIcon:{type:null,required:!1},selectedIcon:{type:null,required:!1},childrenIcon:{type:null,required:!1},placeholder:{type:String,required:!1},autofocus:{type:Boolean,required:!1},loading:{type:Boolean,required:!1},loadingIcon:{type:null,required:!1},closeIcon:{type:null,required:!1},back:{type:[Boolean,Object],required:!1},backIcon:{type:null,required:!1},disabled:{type:Boolean,required:!1},highlightOnHover:{type:Boolean,required:!1},labelKey:{type:null,required:!1},descriptionKey:{type:null,required:!1},preserveGroupOrder:{type:Boolean,required:!1},virtualize:{type:[Boolean,Object],required:!1},groups:{type:Array,required:!1}},{open:{type:Boolean,default:!1},openModifiers:{},searchTerm:{type:String,default:""},searchTermModifiers:{}}),emits:["update:open","update:searchTerm"],setup(e,{expose:t}){const s=e,i=Ee(),o=Me("dashboardSearch",s),a=ze(e,"open",{type:Boolean,default:!1}),l=ze(e,"searchTerm",{type:String,default:""});yt("dashboard:search:toggle",()=>{a.value=!a.value});const{t:u}=Ne(),r=ra(),g=Ce(),m=Pe(st(o,"size","icon","trailingIcon","selectedIcon","childrenIcon","placeholder","autofocus","loading","loadingIcon","close","closeIcon","back","backIcon","disabled","highlightOnHover","labelKey","descriptionKey","preserveGroupOrder","virtualize","searchDelay")),v=Pe(st(o,"overlay","transition","content","dismissible","fullscreen","modal","portal","unmountOnHide")),c=M(()=>o.input===!1?!1:Le(typeof o.input=="object"?o.input:{},{fixed:!0})),d=()=>nt(i,["content"]),h=M(()=>Le({},o.fuse,{fuseOptions:{useTokenSearch:!0}})),y=M(()=>Oe({extend:Hi,...g.ui?.dashboardSearch||{}})({size:o.size,fullscreen:o.fullscreen})),D=M(()=>{const k=[];return k.push(...o.groups||[]),o.colorMode&&!r?.forced&&k.push({id:"theme",label:u("dashboardSearch.theme"),items:[{label:u("colorMode.system"),icon:g.ui.icons.system,active:r.preference==="system",onSelect:()=>{r.preference="system"}},{label:u("colorMode.light"),icon:g.ui.icons.light,active:r.preference==="light",onSelect:()=>{r.preference="light"}},{label:u("colorMode.dark"),icon:g.ui.icons.dark,active:r.preference==="dark",onSelect:()=>{r.preference="dark"}}]}),k}),R=pa("commandPaletteRef");function A(k){k.disabled||(a.value=!1,l.value="")}return Oa({[o.shortcut]:{usingInput:!0,handler:()=>a.value=!a.value}}),t({commandPaletteRef:R}),(k,f)=>(_(),L(rt,Q({open:a.value,"onUpdate:open":f[2]||(f[2]=$=>a.value=$),title:n(o).title||n(u)("dashboardSearch.title"),description:n(o).description||n(u)("dashboardSearch.description")},n(v),{"data-slot":"modal",class:y.value.modal({class:[n(o).ui?.modal,n(o).class]})}),{content:I($=>[N(k.$slots,"content",Te(De($)),()=>[B(Ki,Q({ref_key:"commandPaletteRef",ref:R,"search-term":l.value,"onUpdate:searchTerm":f[0]||(f[0]=x=>l.value=x)},n(m),{groups:D.value,fuse:h.value,input:c.value,ui:n(oa)(n(nt)(y.value,["modal"]),n(o).ui),"onUpdate:modelValue":A,"onUpdate:open":f[1]||(f[1]=x=>a.value=x)}),At({_:2},[we(d(),(x,w)=>({name:w,fn:I(E=>[N(k.$slots,w,Te(De(E)))])}))]),1040,["search-term","groups","fuse","input","ui"])])]),_:3},16,["open","title","description","class"]))}},Gi={class:"flex items-center gap-2"},Ji={class:"space-y-4"},Yi={class:"grid grid-cols-2 gap-3"},Qi={id:"jb-products"},Xi=["value"],Zi={class:"flex items-center gap-2"},eo={class:"text-xs font-medium text-muted uppercase tracking-wider"},to={class:"flex items-center justify-between pt-1"},ao=he({__name:"OpenInIdeSettingsModal",setup(e){const{prefs:t,settingsOpen:s,settingsContext:i}=ba(),o=Object.keys(Vt).map(d=>({label:Vt[d],value:d})),a=Object.keys(Wt).map(d=>({label:Wt[d],value:d})),l=M(()=>t.value.method==="auto"||t.value.method==="vscode"),u=M(()=>t.value.method!=="vscode"),r=M(()=>i.value.projectKey??null),g=M(()=>i.value.projectName||(r.value?`project ${r.value}`:""));function m(d){return M({get:()=>r.value?t.value[d][r.value]??"":"",set:h=>{const y=r.value;if(!y)return;const D={...t.value[d]};h.trim()?D[y]=h:delete D[y],t.value[d]=D}})}const v=m("projectRoots"),c=m("jetbrainsProjectNames");return(d,h)=>{const y=Ie,D=ts,R=as,A=wa,k=Et,f=ka,$=ns,x=ss,w=es,E=ke,b=rt;return _(),L(b,{open:n(s),"onUpdate:open":h[9]||(h[9]=T=>ye(s)?s.value=T:null),ui:{content:"max-w-lg"}},{header:I(()=>[V("div",Gi,[B(y,{name:"i-lucide-external-link",class:"size-5 text-primary"}),h[10]||(h[10]=V("h2",{class:"text-base font-semibold"},"Open in IDE",-1)),B(D,{topic:"ide.open"})])]),body:I(()=>[V("div",Ji,[h[14]||(h[14]=V("p",{class:"text-sm text-muted"}," Click a source path anywhere in the dashboard to open it in your editor. These preferences are stored in this browser only. ",-1)),B(A,{label:"Method",name:"method",description:"Auto probes the JetBrains local server first, then falls back to a URL launch."},{default:I(()=>[B(R,{modelValue:n(t).method,"onUpdate:modelValue":h[0]||(h[0]=T=>n(t).method=T),items:n(o),class:"w-full"},null,8,["modelValue","items"])]),_:1}),B(A,{label:"Workspace root",name:"defaultRoot",description:"Absolute path to your local checkout — repo-relative paths are joined onto it (VS Code needs this)."},{default:I(()=>[B(k,{modelValue:n(t).defaultRoot,"onUpdate:modelValue":h[1]||(h[1]=T=>n(t).defaultRoot=T),placeholder:"/home/me/my-repo",class:"w-full"},null,8,["modelValue"])]),_:1}),n(l)?(_(),L(A,{key:0,label:"VS Code flavor",name:"vscodeScheme"},{default:I(()=>[B(R,{modelValue:n(t).vscodeScheme,"onUpdate:modelValue":h[2]||(h[2]=T=>n(t).vscodeScheme=T),items:n(a),class:"w-full"},null,8,["modelValue","items"])]),_:1})):P("",!0),n(u)?(_(),U(pe,{key:1},[V("div",Yi,[B(A,{label:"JetBrains product",name:"jetbrainsProduct",description:"e.g. idea, webstorm, pycharm."},{default:I(()=>[B(k,{modelValue:n(t).jetbrainsProduct,"onUpdate:modelValue":h[3]||(h[3]=T=>n(t).jetbrainsProduct=T),placeholder:"idea",list:"jb-products",class:"w-full"},null,8,["modelValue"]),V("datalist",Qi,[(_(!0),U(pe,null,we(n(Rn),T=>(_(),U("option",{key:T,value:T},null,8,Xi))),128))])]),_:1}),B(A,{label:"Local server port",name:"jetbrainsPort",description:"Remote Control plugin."},{default:I(()=>[B(k,{modelValue:n(t).jetbrainsPort,"onUpdate:modelValue":h[4]||(h[4]=T=>n(t).jetbrainsPort=T),modelModifiers:{number:!0},type:"number",class:"w-full"},null,8,["modelValue"])]),_:1})]),B(A,{name:"jetbrainsHttpUsesRelativePath"},{default:I(()=>[V("div",Zi,[B(f,{modelValue:n(t).jetbrainsHttpUsesRelativePath,"onUpdate:modelValue":h[5]||(h[5]=T=>n(t).jetbrainsHttpUsesRelativePath=T)},null,8,["modelValue"]),h[11]||(h[11]=V("span",{class:"text-sm"},"Send a content-root-relative path to the local server",-1))])]),_:1})],64)):P("",!0),n(r)?(_(),U(pe,{key:2},[B($),V("p",eo,"Override for "+ie(n(g)),1),B(A,{label:"Workspace root override",name:"projectRoot",description:"Use a different local folder for this project (monorepos, multiple checkouts)."},{default:I(()=>[B(k,{modelValue:n(v),"onUpdate:modelValue":h[6]||(h[6]=T=>ye(v)?v.value=T:null),placeholder:n(t).defaultRoot||"/home/me/this-project",class:"w-full"},null,8,["modelValue","placeholder"])]),_:1}),n(u)?(_(),L(A,{key:0,label:"JetBrains project name",name:"projectJbName",description:"The open IDE project name for the jetbrains:// link."},{default:I(()=>[B(k,{modelValue:n(c),"onUpdate:modelValue":h[7]||(h[7]=T=>ye(c)?c.value=T:null),placeholder:n(g),class:"w-full"},null,8,["modelValue","placeholder"])]),_:1})):P("",!0)],64)):P("",!0),n(u)?(_(),L(x,{key:3,color:"neutral",variant:"soft",icon:"i-lucide-info",title:"JetBrains prerequisites",description:"The jetbrains:// link needs JetBrains Toolbox. The local server needs the IDE Remote Control plugin with 'Allow unsigned requests', and browsers block it when this dashboard is served over HTTPS."})):P("",!0),V("div",to,[B(w,{to:"ide-integration"},{default:I(()=>[...h[12]||(h[12]=[ce("Learn more",-1)])]),_:1}),B(E,{color:"neutral",onClick:h[8]||(h[8]=T=>s.value=!1)},{default:I(()=>[...h[13]||(h[13]=[ce("Done",-1)])]),_:1})])])]),_:1},8,["open"])}}}),no=Object.assign(ao,{__name:"OpenInIdeSettingsModal"}),so={class:"flex items-center gap-2"},io={class:"space-y-4"},oo={class:"space-y-2"},lo={class:"min-w-0 flex-1"},ro={class:"text-sm truncate"},uo={class:"text-xs text-muted truncate"},co={key:0,class:"text-xs text-error"},fo={class:"grid grid-cols-2 gap-3"},po={class:"flex items-center justify-end w-full gap-2"},ho=he({__name:"DesktopImportModal",setup(e){const{files:t,open:s,removeFile:i,clear:o}=_n(),{data:a,execute:l,status:u}=Mt("/api/projects/menu",{immediate:!1,default:()=>[]},"$GNlDm3l-E3");re(s,k=>{k&&a.value.length===0&&l()});const r=H(),g=H(""),m=H(!0),v=H(!1),c=xn({}),d=M(()=>a.value.map(k=>({label:k.label||k.name,value:k.name})));function h(k){return k.split(/[\\/]/).pop()||k}function y(){const k=new Uint8Array(32);return crypto.getRandomValues(k),Array.from(k,f=>f.toString(16).padStart(2,"0")).join("")}async function D(){if(!r.value||v.value||t.value.length===0)return;v.value=!0;const k=m.value&&t.value.length>1?y():void 0;try{for(const f of[...t.value]){const $=c[f]?.status;if(!($==="imported"||$==="duplicate")){c[f]={status:"importing"};try{const x=await $fetch("/api/desktop/import-local",{method:"POST",body:{path:f,projectName:r.value,label:g.value.trim()||void 0,importGroup:k}});c[f]={status:x.status,testRunId:x.testRunId}}catch(x){c[f]={status:"error",message:os(x)}}}}}finally{v.value=!1}}const R=M(()=>t.value.length>0&&t.value.every(k=>c[k]?.status==="imported"||c[k]?.status==="duplicate"));re(s,k=>{if(!k&&R.value){o();for(const f of Object.keys(c))delete c[f]}});function A(k){const f=c[k];if(!f)return null;switch(f.status){case"importing":return{label:"Importing…",color:"info"};case"imported":return{label:"Imported",color:"success"};case"duplicate":return{label:"Already imported",color:"neutral"};case"error":return{label:"Failed",color:"error"}}}return(k,f)=>{const $=Ie,x=Sn,w=ke,E=is,b=Zn,T=wa,O=Et,W=ka,K=rt;return _(),L(K,{open:n(s),"onUpdate:open":f[6]||(f[6]=S=>ye(s)?s.value=S:null),ui:{content:"max-w-xl"}},{header:I(()=>[V("div",so,[B($,{name:"i-lucide-file-input",class:"size-5 text-primary"}),f[7]||(f[7]=V("h2",{class:"text-base font-semibold"},"Import archives",-1)),B(x,{color:"neutral",variant:"subtle",size:"sm"},{default:I(()=>[ce(ie(n(t).length),1)]),_:1})])]),body:I(()=>[V("div",io,[f[9]||(f[9]=V("p",{class:"text-sm text-muted"}," Playwright blob reports become complete runs; bare traces become single executions. Re-importing the same archive is a no-op, and imports never trigger notifications or regression signals. ",-1)),V("div",oo,[(_(!0),U(pe,null,we(n(t),S=>(_(),U("div",{key:S,class:"flex items-center gap-2 rounded-md border border-default p-2"},[B($,{name:"i-lucide-file-archive",class:"size-4 text-gray-400 shrink-0"}),V("div",lo,[V("p",ro,ie(h(S)),1),V("p",uo,ie(S),1),n(c)[S]?.message?(_(),U("p",co,ie(n(c)[S]?.message),1)):P("",!0)]),A(S)?(_(),L(x,{key:0,color:A(S).color,variant:"subtle",size:"sm"},{default:I(()=>[ce(ie(A(S).label),1)]),_:2},1032,["color"])):P("",!0),n(c)[S]?.status==="imported"||n(c)[S]?.status==="duplicate"?(_(),L(w,{key:1,to:`/test-runs/${n(c)[S]?.testRunId}`,size:"xs",color:"neutral",variant:"soft",onClick:f[0]||(f[0]=j=>s.value=!1)},{default:I(()=>[...f[8]||(f[8]=[ce(" View run ",-1)])]),_:1},8,["to"])):(_(),L(w,{key:2,icon:"i-lucide-x",size:"xs",color:"neutral",variant:"ghost",disabled:n(v),"aria-label":"Remove from import",onClick:j=>n(i)(S)},null,8,["disabled","onClick"]))]))),128)),n(t).length===0?(_(),L(E,{key:0,icon:"i-lucide-file-x",text:"Nothing to import"})):P("",!0)]),B(T,{label:"Import into project",name:"projectName"},{default:I(()=>[B(b,{modelValue:n(r),"onUpdate:modelValue":f[1]||(f[1]=S=>ye(r)?r.value=S:null),items:n(d),"value-key":"value",loading:n(u)==="pending",placeholder:"Select a project…",class:"w-full",disabled:n(v)},null,8,["modelValue","items","loading","disabled"])]),_:1}),V("div",fo,[B(T,{label:"Label",name:"label",description:"Optional run label."},{default:I(()=>[B(O,{modelValue:n(g),"onUpdate:modelValue":f[2]||(f[2]=S=>ye(g)?g.value=S:null),disabled:n(v),class:"w-full"},null,8,["modelValue","disabled"])]),_:1}),n(t).length>1?(_(),L(T,{key:0,label:"Combine traces",name:"combine",description:"Gather dropped traces into one run."},{default:I(()=>[B(W,{modelValue:n(m),"onUpdate:modelValue":f[3]||(f[3]=S=>ye(m)?m.value=S:null),disabled:n(v)},null,8,["modelValue","disabled"])]),_:1})):P("",!0)])])]),footer:I(()=>[V("div",po,[B(w,{color:"neutral",variant:"ghost",onClick:f[4]||(f[4]=S=>s.value=!1)},{default:I(()=>[...f[10]||(f[10]=[ce("Close",-1)])]),_:1}),B(w,{icon:"i-lucide-file-input",loading:n(v),disabled:!n(r)||n(t).length===0||n(R),onClick:f[5]||(f[5]=S=>D())},{default:I(()=>[...f[11]||(f[11]=[ce(" Import ",-1)])]),_:1},8,["loading","disabled"])])]),_:1},8,["open"])}}}),mo=Object.assign(ho,{__name:"DesktopImportModal"}),vo={base:"fixed inset-0 flex overflow-hidden"},go={__name:"UDashboardGroup",props:{as:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},storage:{type:String,required:!1,default:"cookie"},storageKey:{type:String,required:!1,default:"dashboard"},storageOptions:{type:Object,required:!1},persistent:{type:Boolean,required:!1,default:!0},unit:{type:String,required:!1,default:"%"}},setup(e){const s=Me("dashboardGroup",e),i=da(),o=Ce(),a=M(()=>Oe({extend:vo,...o.ui?.dashboardGroup||{}})),l=H(!1),u=H(!1);return Ln({storage:s.storage,storageKey:s.storageKey,storageOptions:s.storageOptions,persistent:s.persistent,unit:s.unit,sidebarOpen:l,toggleSidebar:()=>{i.hooks.callHook("dashboard:sidebar:toggle")},sidebarCollapsed:u,collapseSidebar:r=>{i.hooks.callHook("dashboard:sidebar:collapse",r)},toggleSearch:()=>{i.hooks.callHook("dashboard:search:toggle")}}),(r,g)=>(_(),L(n(ia),{as:n(s).as,class:q(a.value({class:[n(s).ui?.base,n(s).class]}))},{default:I(()=>[N(r.$slots,"default")]),_:3},8,["as","class"]))}},yo=he({__name:"ProjectsMenu",props:{collapsed:{type:Boolean}},async setup(e){let t,s;const i=Lt(),o=va(),{data:a,refresh:l}=([t,s]=ga(()=>Mt("/api/projects/menu","$J9hspuqfo0")),t=await t,s(),t);_a(l);const u=M(()=>{const m=i.params.id;return m?parseInt(m):null}),r=M(()=>{if(!u.value||!a.value)return{label:"All projects",icon:"i-lucide-folder-open"};const m=a.value.find(v=>v.id===u.value);return m?{label:m.label||m.name,icon:"i-lucide-folder"}:{label:"All projects",icon:"i-lucide-folder-open"}}),g=M(()=>{const m=[{label:"All projects",icon:"i-lucide-folder-open",onSelect(){o.push("/projects")}}];return a.value&&a.value.length>0&&m.push(...a.value.map(v=>({label:v.label||v.name,icon:"i-lucide-folder",onSelect(){o.push(`/projects/${v.id}`)}}))),[m]});return(m,v)=>{const c=ke,d=ua;return _(),L(d,{items:n(g),content:{align:"center",collisionPadding:12},ui:{content:e.collapsed?"w-40":"w-(--reka-dropdown-menu-trigger-width)"}},{default:I(()=>[B(c,Q({...n(r),label:e.collapsed?void 0:n(r)?.label,trailingIcon:e.collapsed?void 0:"i-lucide-chevrons-up-down"},{color:"neutral",variant:"ghost",block:"",square:e.collapsed,class:["data-[state=open]:bg-elevated",[!e.collapsed&&"py-2"]],ui:{trailingIcon:"text-dimmed"}}),null,16,["square","class"])]),_:1},8,["items","ui"])}}}),bo=Object.assign(yo,{__name:"ProjectsMenu"});let vt=null,gt=!1,tt=!0;window.addEventListener("focus",()=>{tt=!0}),window.addEventListener("blur",()=>{tt=!1}),tt=document.hasFocus();let Fe=null;function wo(e){const t=[];switch(e.type){case"run.finished":case"run.failed":case"run.failed.default_branch":case"flakiness.spike":case"perf.regression":{const s=e.projectName??`Project #${e.projectId}`,i=e.branch&&e.type!=="perf.regression"?` on ${e.branch}`:"";if(e.type==="run.finished"?t.push(`${s}${i}: ${e.status??"finished"}`):e.type==="run.failed"?t.push(`${s}${i}: ${e.failedTests??0}/${e.totalTests??0} tests failed`):e.type==="run.failed.default_branch"?t.push(`${s}: ${e.failedTests??0} failures on default branch`):e.type==="flakiness.spike"?t.push(`${s}: flakiness spike detected`):e.type==="perf.regression"&&t.push(`${s}: performance regression detected`),e.failedTests&&t.push(`${e.failedTests} failed, ${e.totalTests} total`),e.topFailures?.length){const[o,...a]=e.topFailures;t.push(a.length?`${o.title} +${a.length} more`:o.title)}break}case"cluster.new":t.push(`${e.projectName??`Project #${e.projectId}`}: new failure cluster`),e.signature&&t.push(e.signature);break;case"diagnosis.completed":case"diagnosis-completed":t.push(e.summary||e.rootCause||""),e.category&&t.push(`Category: ${e.category}`),e.confidence&&t.push(`Confidence: ${e.confidence}`);break}return t.filter(Boolean).join(`
|
|
2
|
+
`)}function ko(e){return e.clusterId?`/failure-clusters/${e.clusterId}`:e.runId&&e.projectId?`/test-runs/${e.runId}`:null}let Ct=null;function Ra(e){if(!("Notification"in window)||Notification.permission!=="granted"||document.visibilityState==="visible"&&tt||(e.type==="diagnosis.completed"||e.type==="diagnosis-completed")&&Ct&&!Ct.value)return;if(Fe&&e.projectId!=null){const l=Fe.isEventSubscribed(e.projectId,e.type);if(console.log("[notify-stream] GATE: cookie filter",{projectId:e.projectId,type:e.type,subscribed:l,cookieProjects:Object.keys(Fe.stored.value.projects),matchingEvents:Fe.stored.value.projects[e.projectId]?.events??[]}),!l)return}const t=wo(e);if(!t)return;const s=e.clusterId??e.runId??e.signature??e.type,i=`piwi-${e.type}-${s}`,o=new Notification("Piwi Dashboard",{body:t,tag:i,icon:"/logo.svg"});console.log("[notify-stream] notification fired",{type:e.type,projectId:e.projectId});const a=ko(e);a?o.onclick=()=>{window.focus(),window.location.href=a,o.close()}:o.onclick=()=>{window.focus(),o.close()}}async function _o(){if(Ke().public.demoMode)return!0;if(!("Notification"in window)||Notification.permission!=="granted")return!1;try{return(await $fetch("/api/channels")).channels.some(t=>t.type==="browser")}catch{return!1}}async function So(){const e=Ke();return e.public.demoMode?!0:e.public.authEnabled?_o():!0}function xo(){ls(e=>{e.scope==="notification"&&Ra(e.event)})}function $o(){vt=new EventSource("/api/notifications/stream"),vt.onmessage=e=>{try{const t=JSON.parse(e.data);Ra(t)}catch{}},vt.onerror=()=>{}}function Io(){if(gt)return;gt=!0,gt=!0;const{active:e}=rs();Ct=e;const t=Ke();t.public.authEnabled||(Fe=us()),So().then(s=>{s&&(t.public.demoMode?xo():$o())}),fa(()=>{})}const Co=()=>{const e=va();return Oa({"g-h":()=>e.push("/"),"g-p":()=>e.push("/projects"),"g-a":()=>e.push("/analytics"),"g-s":()=>e.push("/settings")}),{}},Ao=$n(Co),To={class:"flex flex-col gap-1 w-full"},Do=10,ll=he({__name:"default",async setup(e){let t,s;const i=Lt(),o=In(),a=Ke(),l=H(!1),u=H(""),r=H(null),g=ma(async w=>{if(w.trim().length<2){r.value=null;return}try{r.value=await $fetch("/api/search",{query:{q:w.trim()}})}catch{r.value=null}},250);re(u,g),re(()=>l.value,w=>{w||(u.value="",r.value=null)});const{data:m,refresh:v}=([t,s]=ga(()=>Mt("/api/projects",{key:"projects",lazy:!0,default:()=>[]},"$mSkRqWqjLe")),t=await t,s(),t);_a(v),Io(),Ao();const c=M(()=>{const w=i.path.match(/^\/projects\/(\d+)/);return w?.[1]?parseInt(w[1],10):null}),d=M(()=>{if(!m.value||m.value.length===0)return[];const w=Date.now()-Do*24*60*60*1e3,E=[...m.value].sort((K,S)=>{const j=(K.label||K.name).toLowerCase(),p=(S.label||S.name).toLowerCase();return j.localeCompare(p)}),b=E.filter(K=>K.latestRun&&new Date(K.latestRun.startTime).getTime()>w),T=E.filter(K=>!K.latestRun||new Date(K.latestRun.startTime).getTime()<=w);function O(K){const S=c.value!==null&&c.value===K.id,j=K.latestRun?.status==="running"||K.latestRun?.status==="initialising",p=K.latestRun?.status||"unknown",G=p==="passed"?"i-lucide-circle-check-big":p==="failed"?"i-lucide-circle-x":"i-lucide-circle",C=p==="passed"?"success":p==="failed"?"error":j?"info":"neutral";return{label:K.label||K.name,icon:j?"i-lucide-loader-circle":"i-lucide-circle",ui:j?{linkLeadingIcon:"animate-spin"}:void 0,badge:{icon:G,color:C},value:`project-${K.id}`,type:"link",to:`/projects/${K.id}`,active:S}}const W=[];return b.length>0&&(W.push({label:`Active (${b.length})`,type:"label"}),W.push(...b.map(O))),T.length>0&&(W.push({label:`Others (${T.length})`,type:"label"}),W.push(...T.map(O))),W}),h=M(()=>{const w=[{label:"GitHub",icon:"i-lucide-github",to:"https://github.com/piwitests/platform",target:"_blank"}];return w.unshift({label:"MCP server",icon:"i-lucide-bot",to:"/mcp",onSelect:()=>{l.value=!1}}),w.unshift({label:"API Docs",icon:"i-lucide-book-open",to:"/docs",onSelect:()=>{l.value=!1}}),[[{label:"Home",icon:"i-lucide-house",to:"/",onSelect:()=>{l.value=!1}},{label:"Analytics",icon:"i-lucide-chart-line",to:"/analytics",onSelect:()=>{l.value=!1}},{label:"Projects",icon:"i-lucide-folder",to:"/projects",onSelect:()=>{l.value=!1}},...d.value],w]}),y=w=>({label:typeof w.label=="string"?w.label:void 0,icon:w.icon,to:w.to,target:w.target,active:w.active,disabled:w.disabled,suffix:typeof w.badge=="string"?w.badge:void 0,children:w.children?.map(E=>y(E)),onSelect:w.onSelect}),D=M(()=>{const w="https://github.com/piwitests/platform/blob/main/application/app/pages",E="https://github.com/piwitests/platform/tree/main/application/app/pages",b=i.matched[i.matched.length-1]?.path??i.path;return b.includes(":")?E:`${w}${b==="/"?"/index":b}.vue`});function R(w){return w==="passed"?"i-lucide-circle-check-big":w==="failed"?"i-lucide-circle-x":w==="running"||w==="initialising"?"i-lucide-loader-circle":"i-lucide-circle"}const A=M(()=>{const w=[{id:"links",label:"Go to",items:h.value.flat().map(b=>y(b))},{id:"code",label:"Code",items:[{id:"source",label:"View page source",icon:"i-lucide-github",to:D.value,target:"_blank"}]}];if(c.value){const b=c.value,T=[["test-runs","Test runs","i-lucide-play"],["failure-clusters","Failure clusters","i-lucide-layers"],["flaky-tests","Flaky tests","i-lucide-shuffle"],["performance","Performance","i-lucide-trending-up"],["test-cases","Test cases","i-lucide-flask-conical"],["compare","Compare","i-lucide-git-compare-arrows"],["spec-health","Spec health","i-lucide-table-2"],["timeline","Timeline","i-lucide-git-commit-horizontal"]];w.unshift({id:"project-tabs",label:"This project",items:T.map(([O,W,K])=>({id:`project-tab-${O}`,label:W,icon:K,to:`/projects/${b}?tab=${O}`,onSelect:()=>{l.value=!1}}))})}if(!r.value)return w;const E=[];return r.value.projects.length>0&&E.push({id:"search-projects",label:"Projects",ignoreFilter:!0,items:r.value.projects.map(b=>({id:`project-${b.id}`,label:b.label||b.name,description:b.label&&b.label!==b.name?b.name:void 0,icon:"i-lucide-folder",to:`/projects/${b.id}`}))}),r.value.runs.length>0&&E.push({id:"search-runs",label:"Test runs",ignoreFilter:!0,items:r.value.runs.map(b=>({id:`run-${b.id}`,label:b.label?`Run #${b.id} — ${b.label}`:`Run #${b.id}`,description:b.projectLabel||b.projectName,suffix:b.status,icon:R(b.status),to:`/test-runs/${b.id}`}))}),r.value.cases.length>0&&E.push({id:"search-cases",label:"Test cases",ignoreFilter:!0,items:r.value.cases.map(b=>({id:`case-${b.id}`,label:b.title,description:`${b.projectLabel||b.projectName} · ${b.filePath}`,icon:"i-lucide-flask-conical",to:`/test-cases/${b.id}`}))}),[...E,...w]}),k=a.public.demoMode,f=a.public.demoDataVersion,$=a.public.appVersion,{resetDemo:x}=Cn();return Bt(async()=>{if(k&&f){const w=await An();w!==null&&w!==f&&o.add({title:"New demo data available",description:'The demo seed data has been updated since your last visit. Click "Refresh" to reload with the latest data.',duration:0,color:"warning",actions:[{label:"Refresh",color:"warning",onClick:()=>{x()}},{label:"Dismiss",color:"neutral",variant:"ghost"}]})}}),(w,E)=>{const b=ps,T=On,O=vs,W=ha,K=Hs,S=Wi,j=no,p=mo,G=go;return _(),L(G,{unit:"rem",style:{top:"var(--demo-banner-height, 0px)",height:"calc(100dvh - var(--demo-banner-height, 0px))"}},{default:I(()=>[E[2]||(E[2]=V("a",{href:"#main-content",class:"sr-only focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:z-[100] focus:rounded-md focus:bg-primary focus:px-3 focus:py-2 focus:text-sm focus:font-medium focus:text-inverted focus:shadow-lg focus:outline-2 focus:outline-primary"}," Skip to main content ",-1)),B(K,{id:"default",open:n(l),"onUpdate:open":E[0]||(E[0]=C=>ye(l)?l.value=C:null),collapsible:"",resizable:"",width:"20",class:"bg-elevated/25",ui:{root:"min-h-full",footer:"lg:border-t lg:border-default"}},{header:I(({collapsed:C})=>[B(bo,{collapsed:C},null,8,["collapsed"])]),default:I(({collapsed:C})=>[B(b,{collapsed:C,class:"bg-transparent ring-default"},null,8,["collapsed"]),(_(),L(T,{key:n(c)??void 0,collapsed:C,items:n(h)[0],orientation:"vertical",tooltip:"",popover:""},null,8,["collapsed","items"])),B(T,{collapsed:C,items:n(h)[1],orientation:"vertical",tooltip:"",class:"mt-auto"},null,8,["collapsed","items"])]),footer:I(({collapsed:C})=>[V("div",To,[B(O,{collapsed:C},null,8,["collapsed"]),C?P("",!0):(_(),L(W,{key:0,to:"/settings/about",class:"text-xs text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 text-center",title:"View version and build info"},{default:I(()=>[ce(" v"+ie(n($)),1)]),_:1}))])]),_:1},8,["open"]),B(S,{"search-term":n(u),"onUpdate:searchTerm":E[1]||(E[1]=C=>ye(u)?u.value=C:null),groups:n(A),"preserve-group-order":!!n(r)},null,8,["search-term","groups","preserve-group-order"]),E[3]||(E[3]=V("span",{id:"main-content",tabindex:"-1",class:"sr-only"},"Main content",-1)),N(w.$slots,"default"),B(j),B(p)]),_:3})}}});export{ll as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as W}from"./CXEH9OPk.js";import{_ as X}from"./DabzhQB1.js";import{_ as Y}from"./CjPfj7ya.js";import{_ as Z,a as tt}from"./5A6ITZXj.js";import{_ as et}from"./DJmoLeVt.js";import{d as st,u as at,w as T,H as ot,e as nt,f as u,g as a,h as w,o as n,i,t as l,k as t,v as d,c as _,j as o,s as rt,m,D as it,_ as lt,F as D,y as S,q as ct,p as ut,r as dt,n as _t}from"./Du2W7Jne.js";import{_ as mt,a as pt}from"./DoIREDVb.js";import{_ as ft}from"./BzRRzmwm.js";import{_ as gt}from"./Bm62iDV5.js";import{_ as ht}from"./CeW8v31b.js";import{_ as yt}from"./CNyV9YpI.js";import{_ as xt}from"./BT3wGCTI.js";import{_ as bt}from"./Cus22Ud3.js";import{_ as kt}from"./C1gTN4Q8.js";import{_ as vt}from"./C0_yH0N7.js";import{_ as $t}from"./hC_z4G8p.js";import{f as Rt,j as jt}from"./DuwtTfO8.js";import{u as I}from"./B8zkOmwo.js";import"./KyA_4Ks-.js";import"./Dy-TJ0Mt.js";import"./BicAJ6U8.js";import"./DSqHUrvO.js";import"./BjaRappk.js";import"./C8e1EbJI.js";import"./FaFoMVKo.js";import"./D7W_4Sqc.js";import"./CwGWJbiy.js";import"./B99fbi73.js";import"./-f7BAm1H.js";const Ct={class:"flex flex-col gap-4 p-4"},Tt={class:"flex items-start gap-4 flex-wrap"},wt={class:"flex-1 min-w-0"},Dt={class:"text-xl font-bold truncate"},St={key:1,class:"flex items-center gap-2 mt-2"},It={key:0,class:"grid grid-cols-1 lg:grid-cols-2 gap-4"},zt={class:"flex items-center gap-1 flex-wrap max-h-[200px] overflow-y-auto py-1"},Lt={key:0,class:"text-sm text-gray-400"},Nt={key:1,class:"text-center py-6 text-gray-400"},Ut={class:"text-xs whitespace-nowrap"},Pt={class:"text-gray-500"},Et={class:"text-gray-400 ml-1"},Ft={key:1,class:"text-gray-400"},At=["title"],Bt={class:"flex justify-end"},Vt={class:"space-y-2"},Ht={class:"flex items-center gap-2 min-w-0"},Kt={class:"text-sm truncate"},Mt={key:0,class:"text-xs text-gray-400 shrink-0"},$e=st({__name:"[id]",async setup(Ot){let p,y;const h=at().params.id,{data:s,refresh:z}=([p,y]=T(()=>I(`/api/test-cases/${h}`,"$lGxJwg8IQ6")),p=await p,y(),p),{data:f}=([p,y]=T(()=>I(`/api/test-cases/${h}/history`,"$6RWgXFRP_s")),p=await p,y(),p),R=dt([]);ot(()=>s.value?.project?.id,async r=>{if(r)try{R.value=(await $fetch(`/api/projects/${r}/markers`)).markers??[]}catch{}},{immediate:!0});function L(){const r=s.value?.project?.id;r&&_t(`/projects/${r}?tab=timeline`)}nt(w(()=>({title:`${s.value?.title||`Test case #${h}`} — Piwi Dashboard`})));const x=w(()=>{const r=s.value;return!r||!r.totalRuns?null:Math.round((r.passedRuns+r.skippedRuns)/r.totalRuns*100)}),N=r=>r==="open"?"error":r==="resolved"?"success":"neutral",U=[{accessorKey:"startTime",header:"Date"},{accessorKey:"status",header:"Status"},{accessorKey:"duration",header:"Duration"},{accessorKey:"retries",header:"Retries"},{accessorKey:"runId",header:"Run"},{accessorKey:"error",header:"Error"},{id:"actions",header:"Actions"}];return(r,c)=>{const P=W,E=X,F=Y,A=tt,B=et,b=rt,k=lt,v=it,g=pt,j=ft,V=gt,H=mt,K=ht,C=yt,M=xt,O=ut,G=bt,q=kt,$=vt,J=$t,Q=Z;return n(),u(Q,{id:"test-case-evolution"},{header:a(()=>[o(A,null,{leading:a(()=>[o(P),o(E,{items:[{label:"Home",icon:"i-lucide-house",to:"/"},{label:"Projects",to:"/projects"},...t(s)?.project?.id?[{label:t(s).project.name||"Project",to:`/projects/${t(s).project.id}`}]:[{label:"Project"}],{label:t(s)?.title||`Test case #${t(h)}`}]},null,8,["items"])]),right:a(()=>[o(F,{actions:[{label:"Refresh",icon:"i-lucide-refresh-cw",onClick:()=>t(z)()}]},null,8,["actions"])]),_:1})]),body:a(()=>[i("div",Ct,[i("div",Tt,[i("div",wt,[i("h1",Dt,l(t(s)?.title),1),t(s)?.filePath?(n(),u(B,{key:0,"file-path":t(s).filePath,"project-key":t(s)?.project?.id,"project-name":t(s)?.project?.name,class:"text-sm text-gray-500 mt-0.5"},null,8,["file-path","project-key","project-name"])):d("",!0),t(s)?.project?(n(),_("div",St,[o(b,{color:"neutral",variant:"soft",size:"xs",class:"font-mono"},{default:a(()=>[m(l(t(s).project.name),1)]),_:1}),t(s)?.flakyRuns>0?(n(),u(b,{key:0,color:"warning",variant:"soft",size:"xs"},{default:a(()=>[m(l(t(s).flakyRuns)+" flaky run"+l(t(s).flakyRuns===1?"":"s"),1)]),_:1})):d("",!0)])):d("",!0)]),t(s)?.lastExecutionId?(n(),u(v,{key:0,to:`/test-run-cases/${t(s).lastExecutionId}`,class:"shrink-0"},{default:a(()=>[o(k,{size:"sm",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:a(()=>[...c[0]||(c[0]=[m(" Latest execution ",-1)])]),_:1})]),_:1},8,["to"])):d("",!0)]),o(H,null,{default:a(()=>[o(g,{label:"Total runs",value:t(s)?.totalRuns??0},null,8,["value"]),o(g,{label:"Pass rate",value:t(x)!==null?`${t(x)}%`:"—","value-class":(t(x)??0)>=80?"text-green-600":(t(x)??0)>=50?"text-yellow-600":"text-red-600"},null,8,["value","value-class"]),o(g,{label:"Failed",value:t(s)?.failedRuns??0,"value-class":"text-red-600"},null,8,["value"]),o(g,{label:"Avg duration"},{default:a(()=>[o(j,{ms:t(s)?.avgDuration},null,8,["ms"])]),_:1}),o(g,{label:"Flaky",value:t(s)?.flakyRuns??0,"value-class":(t(s)?.flakyRuns??0)>0?"text-purple-600":""},{label:a(()=>[c[1]||(c[1]=m(" Flaky ",-1)),o(V,{topic:"case.flaky-count"})]),_:1},8,["value","value-class"]),o(g,{label:"Last run",size:"sm",value:t(s)?.lastRunAt?("formatRelativeTime"in r?r.formatRelativeTime:t(Rt))(t(s).lastRunAt):"—"},null,8,["value"])]),_:1}),t(f)&&t(f).length>1?(n(),_("div",It,[o(C,{title:"Duration trend",icon:"i-lucide-trending-up",help:"case.history-chart"},{default:a(()=>[o(K,{data:t(f),height:200,markers:t(R),onMarkerClick:L},null,8,["data","markers"])]),_:1}),o(C,{title:"Status history",icon:"i-lucide-check-circle",help:"case.sparkline"},{default:a(()=>[i("div",zt,[(n(!0),_(D,null,S(t(f),(e,qt)=>(n(),u(M,{key:e.id,text:`Run #${e.runId}: ${e.status} — ${new Date(e.startTime).toLocaleDateString("en-US",{month:"short",day:"numeric"})}`},{default:a(()=>[o(v,{to:`/test-run-cases/${e.id}`,class:ct([{"bg-red-500 hover:bg-red-600":e.status==="failed"||e.status==="timedOut","bg-green-500 hover:bg-green-600":e.status==="passed","bg-yellow-500 hover:bg-yellow-600":e.status==="skipped","bg-gray-400 hover:bg-gray-500":!["passed","failed","skipped","timedOut"].includes(e.status)},"size-3.5 rounded-sm inline-block transition-colors"]),title:`Run #${e.runId}: ${e.status}`},null,8,["to","class","title"])]),_:2},1032,["text"]))),128)),t(f).length===0?(n(),_("span",Lt,"No history yet")):d("",!0)])]),_:1})])):t(f)&&t(f).length<=1?(n(),_("div",Nt,[o(O,{name:"i-lucide-trending-up",class:"size-6 mx-auto mb-1"}),c[2]||(c[2]=i("p",{class:"text-sm"},"Need at least 2 runs to show trends.",-1))])):d("",!0),o($,{icon:"i-lucide-list-checks",title:`Recent executions (${t(s)?.recentExecutions?.length??0})`},{default:a(()=>[t(s)?.recentExecutions?.length?(n(),u(G,{key:0,data:t(s).recentExecutions,columns:U,ui:{base:"table-fixed border-separate border-spacing-0",thead:"[&>tr]:bg-elevated/50 [&>tr]:after:content-none",tbody:"[&>tr]:last:[&>td]:border-b-0",th:"first:rounded-l-lg last:rounded-r-lg border-y border-default first:border-l last:border-r",td:"border-b border-default"}},{"startTime-cell":a(({row:e})=>[i("span",Ut,[i("span",Pt,l(new Date(e.original.startTime).toLocaleDateString("en-US",{month:"short",day:"numeric"})),1),i("span",Et,l(new Date(e.original.startTime).toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit"})),1)])]),"status-cell":a(({row:e})=>[o(b,{color:("getStatusColor"in r?r.getStatusColor:t(jt))(e.original.status),variant:"subtle",class:"capitalize"},{default:a(()=>[m(l(e.original.status),1)]),_:2},1032,["color"])]),"duration-cell":a(({row:e})=>[e.original.duration!==null?(n(),u(j,{key:0,ms:e.original.duration},null,8,["ms"])):(n(),_("span",Ft,"—"))]),"retries-cell":a(({row:e})=>[m(l(e.original.retries&&e.original.retries>0?e.original.retries:""),1)]),"runId-cell":a(({row:e})=>[o(v,{to:`/test-runs/${e.original.runId}`,class:"text-primary hover:underline"},{default:a(()=>[m(l(e.original.runLabel?`${e.original.runLabel} (#${e.original.runId})`:`#${e.original.runId}`),1)]),_:2},1032,["to"])]),"error-cell":a(({row:e})=>[e.original.error?(n(),_("span",{key:0,class:"text-red-600 text-xs truncate max-w-xs block",title:e.original.error},l(e.original.error.length>80?`${e.original.error.substring(0,80)}…`:e.original.error),9,At)):d("",!0)]),"actions-header":a(()=>[...c[3]||(c[3]=[i("div",{class:"text-right"},"Actions",-1)])]),"actions-cell":a(({row:e})=>[i("div",Bt,[o(k,{to:`/test-run-cases/${e.original.id}`,size:"sm",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:a(()=>[...c[4]||(c[4]=[m(" View ",-1)])]),_:1},8,["to"])])]),_:1},8,["data"])):(n(),u(q,{key:1,icon:"i-lucide-inbox",text:"No executions yet"}))]),_:1},8,["title"]),t(s)?.failureClusters?.length?(n(),u($,{key:2,icon:"i-lucide-bug",title:`Failure clusters (${t(s).failureClusters.length})`,help:"cluster.concept"},{default:a(()=>[i("div",Vt,[(n(!0),_(D,null,S(t(s).failureClusters,e=>(n(),_("div",{key:e.id,class:"flex items-center justify-between py-2 px-2 rounded hover:bg-gray-50 dark:hover:bg-gray-800"},[i("div",Ht,[o(b,{color:N(e.status),variant:"soft",size:"xs",class:"capitalize"},{default:a(()=>[m(l(e.status),1)]),_:2},1032,["color"]),i("span",Kt,l(e.signature),1),e.occurrences>1?(n(),_("span",Mt,l(e.occurrences)+" occurrences ",1)):d("",!0)]),o(k,{to:`/failure-clusters/${e.id}`,size:"xs",variant:"outline","trailing-icon":"i-lucide-arrow-right"},{default:a(()=>[...c[5]||(c[5]=[m(" View ",-1)])]),_:1},8,["to"])]))),128))])]),_:1},8,["title"])):d("",!0),t(s)?.links?.length?(n(),u($,{key:3,icon:"i-lucide-link",title:"Links",help:"shared.entity-links"},{default:a(()=>[o(J,{"entity-type":"test_case","entity-id":Number(t(h)),links:t(s).links??null},null,8,["entity-id","links"])]),_:1})):d("",!0)])]),_:1})}}});export{$e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as _,f as m,g as i,o as p,i as s,t as n,j as c,k as l,m as u,_ as x}from"./
|
|
1
|
+
import{d as _,f as m,g as i,o as p,i as s,t as n,j as c,k as l,m as u,_ as x}from"./Du2W7Jne.js";import{_ as f}from"./C0_yH0N7.js";import{u as b}from"./DSqHUrvO.js";const g={class:"space-y-4 text-sm"},v={class:"space-y-1"},y={class:"flex items-start gap-2"},C={class:"text-xs break-all flex-1"},k={class:"space-y-1"},D={class:"flex items-start gap-2"},B={class:"text-xs break-all flex-1"},h=_({__name:"DataLocationCard",props:{database:{},storage:{}},setup(a){const{copy:e}=b();return(N,t)=>{const o=x,r=f;return p(),m(r,{icon:"i-lucide-folder-open",title:"Data location"},{subtitle:i(()=>[...t[2]||(t[2]=[u(" Where this instance keeps its database and files on disk. ",-1)])]),default:i(()=>[s("div",g,[s("div",v,[t[3]||(t[3]=s("div",{class:"text-muted"},"Database",-1)),s("div",y,[s("code",C,n(a.database),1),c(o,{icon:"i-lucide-copy",color:"neutral",variant:"ghost",size:"xs","aria-label":"Copy database location",onClick:t[0]||(t[0]=d=>l(e)(a.database,{toast:!0}))})])]),s("div",k,[t[4]||(t[4]=s("div",{class:"text-muted"},"File storage",-1)),s("div",D,[s("code",B,n(a.storage),1),c(o,{icon:"i-lucide-copy",color:"neutral",variant:"ghost",size:"xs","aria-label":"Copy storage location",onClick:t[1]||(t[1]=d=>l(e)(a.storage,{toast:!0}))})])])])]),_:1})}}}),z=Object.assign(h,{__name:"DataLocationCard"});export{z as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u}from"./_mj6CfPa.js";import{b as l,ao as f}from"./Du2W7Jne.js";import{g as w}from"./DuwtTfO8.js";function p(a){let r="";for(let o=0;o<a.length;o+=32768)r+=String.fromCharCode(...a.subarray(o,o+32768));return btoa(r)}function y(){const a=u(),r=l();async function e(o,i,n={}){const s=f();if(!s){window.open(o,"_blank");return}try{const t=await fetch(o,{credentials:"include"});if(!t.ok)throw new Error(`Request failed (${t.status})`);const c=n.binary?p(new Uint8Array(await t.arrayBuffer())):await t.text(),d=await s.invoke("desktop_save_download",{filename:i,contents:c,encoding:n.binary?"base64":"utf8"});r.add({title:"Saved to Downloads",description:d,color:"success",icon:"i-lucide-download"})}catch(t){r.add({title:"Download failed",description:w(t),color:"error"})}}return{isDesktop:a,download:e}}export{y as u};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{_ as ie}from"./
|
|
1
|
+
import{_ as ie}from"./BmUfSNMV.js";import{d as re,b as de,w as D,c as r,j as a,ac as ce,k as s,g as d,F as y,f as v,h as N,r as k,o as n,i,I as ue,l as me,_ as pe,m as c,p as fe,t as p,v as _,y as R,s as _e,q as ge,L as ye,A as ve}from"./Du2W7Jne.js";import{_ as he}from"./B3obW6cw.js";import{_ as ke}from"./Bm62iDV5.js";import{_ as xe}from"./C0_yH0N7.js";import{_ as be}from"./AbmKWFQQ.js";import{_ as Se}from"./A1pj0VnG.js";import{_ as we}from"./BT3wGCTI.js";import{_ as Te}from"./BrQEE053.js";import{u as W}from"./B8zkOmwo.js";import"./DuwtTfO8.js";import"./DSqHUrvO.js";import"./BjaRappk.js";import"./-f7BAm1H.js";import"./L3kAWB2a.js";import"./UdR3DBPS.js";const Pe={class:"space-y-6"},Ue={class:"space-y-3"},Ce={key:0,class:"flex items-center gap-2 text-sm text-success-600 dark:text-success-400"},Ie={key:1,class:"flex items-center gap-2 text-sm text-warning-600 dark:text-warning-400"},Me={key:2,class:"grid grid-cols-2 gap-2 text-sm"},$e={class:"font-mono"},Ve={class:"font-mono"},Ee={key:3,class:"text-sm text-muted space-y-1"},ze={class:"flex items-center gap-2 w-full"},Ae={key:0,class:"mb-4 p-4 rounded-lg border border-primary/30 bg-primary/5 space-y-3"},De={class:"grid grid-cols-2 gap-3"},Ne={class:"flex justify-end gap-2"},Re={key:1,class:"text-sm text-muted py-4 text-center"},We={class:"space-y-2"},Oe={class:"flex-1 min-w-0"},Fe={class:"font-medium text-sm flex items-center gap-1.5"},Le={class:"text-xs text-muted"},Be={key:3,class:"ml-1 text-primary text-xs"},je={class:"flex items-center gap-1"},He={key:0,class:"text-sm text-muted py-4 text-center"},qe={class:"space-y-2"},Je={class:"flex-1 min-w-0 space-y-0.5"},Qe={class:"font-medium text-sm"},Xe={class:"text-xs text-muted flex flex-wrap gap-x-3"},Ke={key:0},Ye={key:1},Ge={key:2,class:"text-warning-500"},Ze={class:"flex flex-wrap gap-1 mt-1"},et={class:"flex items-center gap-1"},vt=re({__name:"notifications",async setup(tt){let f,x;const u=de(),j=ve(),I=N(()=>j.public.authEnabled),H=["PIWI_SMTP_HOST","PIWI_SMTP_PORT","PIWI_SMTP_USER","PIWI_SMTP_PASS","PIWI_SMTP_FROM","PIWI_SMTP_FROM_NAME","PIWI_SMTP_SECURE"],{data:m}=([f,x]=D(()=>W("/api/settings/smtp","$gVOXSKoU4Q")),f=await f,x(),f),h=k(""),M=k(!1);async function q(){if(h.value){M.value=!0;try{const o=await $fetch("/api/settings/smtp/test",{method:"POST",body:{to:h.value}});o.success?u.add({title:"Test email sent",description:`Check ${h.value}`,color:"success"}):u.add({title:"Send failed",description:o.error||"Unknown error",color:"error"})}catch(o){u.add({title:"Send failed",description:String(o?.message??o),color:"error"})}finally{M.value=!1}}}const{data:J,refresh:O}=I.value?([f,x]=D(()=>W("/api/channels","$fv1jJkJo5B")),f=await f,x(),f):{data:k(null),refresh:()=>{}},$=N(()=>J.value?.channels??[]),b=k(!1),l=ye({name:"",type:"email",address:"",webhookUrl:"",url:"",secret:"",global:!1}),V=k(!1),E=k(null),Q=[{label:"Email",value:"email"},{label:"Slack webhook",value:"slack"},{label:"Webhook",value:"webhook"}];async function X(){V.value=!0;try{const o={};l.type==="email"?o.address=l.address:l.type==="slack"?o.webhookUrl=l.webhookUrl:l.type==="webhook"&&(o.url=l.url,l.secret&&(o.secret=l.secret)),await $fetch("/api/channels",{method:"POST",body:{name:l.name,type:l.type,config:o,global:l.global}}),b.value=!1,Object.assign(l,{name:"",type:"email",address:"",webhookUrl:"",url:"",secret:"",global:!1}),await O(),u.add({title:"Channel created",color:"success"})}catch(o){u.add({title:"Failed to create channel",description:String(o?.message??o),color:"error"})}finally{V.value=!1}}async function K(o){try{await $fetch(`/api/channels/${o}`,{method:"DELETE"}),await O(),u.add({title:"Channel deleted",color:"success"})}catch(e){u.add({title:"Failed to delete channel",description:String(e?.message??e),color:"error"})}}async function Y(o){E.value=o;try{const e=await $fetch(`/api/channels/${o}/test`,{method:"POST"});e.success?u.add({title:"Test notification sent",color:"success"}):u.add({title:"Test failed",description:e.error,color:"error"})}catch(e){u.add({title:"Test failed",description:String(e?.message??e),color:"error"})}finally{E.value=null}}const{data:G,refresh:F}=I.value?([f,x]=D(()=>W("/api/subscriptions","$WhEQp2PfoM")),f=await f,x(),f):{data:k(null),refresh:()=>{}},z=N(()=>G.value?.subscriptions??[]);async function Z(o){try{await $fetch(`/api/subscriptions/${o}`,{method:"DELETE"}),await F(),u.add({title:"Subscription removed",color:"success"})}catch(e){u.add({title:"Failed to remove subscription",description:String(e?.message??e),color:"error"})}}async function ee(o){const e=o.mutedUntil&&new Date(o.mutedUntil)>new Date;try{await $fetch(`/api/subscriptions/${o.id}`,{method:"PATCH",body:{mutedUntil:e?null:new Date(Date.now()+10080*60*1e3).toISOString()}}),await F(),u.add({title:e?"Unmuted":"Muted for 7 days",color:"success"})}catch(U){u.add({title:"Failed to update subscription",description:String(U?.message??U),color:"error"})}}function P(o){return o.mutedUntil&&new Date(o.mutedUntil)>new Date}function L(o){return o==="personal_email"?"i-lucide-user-round":o==="email"?"i-lucide-mail":o==="slack"?"i-lucide-slack":"i-lucide-webhook"}function te(o){return o.replace(/\./g," › ")}return(o,e)=>{const U=ie,C=fe,se=he,oe=ke,S=ue,g=pe,A=xe,w=be,ne=Se,B=_e,le=we,ae=Te;return n(),r("div",Pe,[a(A,{icon:"i-lucide-mail",title:"SMTP email delivery",help:"settings.smtp"},ce({subtitle:d(()=>[e[9]||(e[9]=c(" Configure SMTP via environment variables. The connection cannot be changed here. ",-1))]),actions:d(()=>[s(m)?.configured?(n(),v(U,{key:0,"env-vars":H,size:"md"})):_("",!0)]),default:d(()=>[i("div",Ue,[s(m)?.configured?(n(),r("div",Ce,[a(C,{name:"i-lucide-circle-check-big",class:"size-4"}),e[10]||(e[10]=c(" Configured ",-1))])):(n(),r("div",Ie,[a(C,{name:"i-lucide-circle-alert",class:"size-4"}),e[11]||(e[11]=c(" Not configured ",-1))])),s(m)?.configured?(n(),r("div",Me,[e[12]||(e[12]=i("div",{class:"text-muted"},"Host",-1)),i("div",$e,p(s(m)?.host)+":"+p(s(m)?.port),1),e[13]||(e[13]=i("div",{class:"text-muted"},"From",-1)),i("div",null,p(s(m)?.fromName?`${s(m).fromName} <${s(m).from}>`:s(m)?.from),1),e[14]||(e[14]=i("div",{class:"text-muted"},"User",-1)),i("div",Ve,p(s(m)?.user),1),e[15]||(e[15]=i("div",{class:"text-muted"},"TLS",-1)),i("div",null,p(s(m)?.secure?"Yes (port 465)":"STARTTLS / plain"),1)])):_("",!0),s(m)?.configured?_("",!0):(n(),r("div",Ee,[e[16]||(e[16]=i("p",null,"Set these environment variables to enable email notifications:",-1)),a(se,{code:`PIWI_SMTP_HOST=smtp.example.com
|
|
2
2
|
PIWI_SMTP_PORT=465
|
|
3
3
|
PIWI_SMTP_USER=user@example.com
|
|
4
4
|
PIWI_SMTP_PASS=secret
|
|
5
5
|
PIWI_SMTP_FROM=noreply@example.com
|
|
6
|
-
PIWI_SMTP_FROM_NAME=Piwi Dashboard`,lang:"bash"})]))])]),_:2},[s(m)?.configured?{name:"footer",fn:d(()=>[i("div",
|
|
6
|
+
PIWI_SMTP_FROM_NAME=Piwi Dashboard`,lang:"bash"})]))])]),_:2},[s(m)?.configured?{name:"footer",fn:d(()=>[i("div",ze,[a(oe,{topic:"notifications.test-email"}),a(S,{modelValue:s(h),"onUpdate:modelValue":e[0]||(e[0]=t=>me(h)?h.value=t:null),type:"email",placeholder:"Send test to email address…",class:"flex-1"},null,8,["modelValue"]),a(g,{color:"neutral",variant:"soft",icon:"i-lucide-send",loading:s(M),disabled:!s(h),onClick:q},{default:d(()=>[...e[17]||(e[17]=[c(" Send test ",-1)])]),_:1},8,["loading","disabled"])])]),key:"0"}:void 0]),1024),s(I)?(n(),r(y,{key:0},[a(A,{icon:"i-lucide-radio",title:"Notification channels",count:s($).length,help:"notifications.channels"},{actions:d(()=>[a(g,{size:"sm",icon:"i-lucide-plus",onClick:e[1]||(e[1]=t=>b.value=!s(b))},{default:d(()=>[...e[18]||(e[18]=[c(" Add channel ",-1)])]),_:1})]),default:d(()=>[s(b)?(n(),r("div",Ae,[e[21]||(e[21]=i("h4",{class:"font-medium text-sm"},"New channel",-1)),i("div",De,[a(w,{label:"Name"},{default:d(()=>[a(S,{modelValue:s(l).name,"onUpdate:modelValue":e[2]||(e[2]=t=>s(l).name=t),placeholder:"e.g. My email",class:"w-full"},null,8,["modelValue"])]),_:1}),a(w,{label:"Type"},{default:d(()=>[a(ne,{modelValue:s(l).type,"onUpdate:modelValue":e[3]||(e[3]=t=>s(l).type=t),items:Q,class:"w-full"},null,8,["modelValue"])]),_:1})]),s(l).type==="email"?(n(),v(w,{key:0,label:"Email address"},{default:d(()=>[a(S,{modelValue:s(l).address,"onUpdate:modelValue":e[4]||(e[4]=t=>s(l).address=t),type:"email",placeholder:"you@example.com",class:"w-full"},null,8,["modelValue"])]),_:1})):s(l).type==="slack"?(n(),v(w,{key:1,label:"Slack webhook URL"},{default:d(()=>[a(S,{modelValue:s(l).webhookUrl,"onUpdate:modelValue":e[5]||(e[5]=t=>s(l).webhookUrl=t),placeholder:"https://hooks.slack.com/…",class:"w-full"},null,8,["modelValue"])]),_:1})):s(l).type==="webhook"?(n(),r(y,{key:2},[a(w,{label:"Endpoint URL"},{default:d(()=>[a(S,{modelValue:s(l).url,"onUpdate:modelValue":e[6]||(e[6]=t=>s(l).url=t),placeholder:"https://your-server.com/webhook",class:"w-full"},null,8,["modelValue"])]),_:1}),a(w,{label:"Secret (optional)",description:"Used to sign requests with X-Piwi-Signature header"},{default:d(()=>[a(S,{modelValue:s(l).secret,"onUpdate:modelValue":e[7]||(e[7]=t=>s(l).secret=t),type:"password",placeholder:"Shared secret",class:"w-full"},null,8,["modelValue"])]),_:1})],64)):_("",!0),i("div",Ne,[a(g,{color:"neutral",variant:"ghost",size:"sm",onClick:e[8]||(e[8]=t=>b.value=!1)},{default:d(()=>[...e[19]||(e[19]=[c("Cancel",-1)])]),_:1}),a(g,{color:"primary",size:"sm",loading:s(V),disabled:!s(l).name,onClick:X},{default:d(()=>[...e[20]||(e[20]=[c(" Save channel ",-1)])]),_:1},8,["loading","disabled"])])])):_("",!0),s($).length===0&&!s(b)?(n(),r("div",Re," No channels yet. Add one to start receiving notifications. ")):_("",!0),i("div",We,[(n(!0),r(y,null,R(s($),t=>(n(),r("div",{key:t.id,class:"flex items-center gap-3 rounded-lg border border-default px-4 py-3"},[a(C,{name:L(t.type),class:"size-5 text-muted shrink-0"},null,8,["name"]),i("div",Oe,[i("div",Fe,[c(p(t.name)+" ",1),t.type==="personal_email"?(n(),v(B,{key:0,size:"xs",variant:"soft",color:"neutral"},{default:d(()=>[...e[22]||(e[22]=[c("auto",-1)])]),_:1})):_("",!0)]),i("div",Le,[t.type==="personal_email"||t.type==="email"?(n(),r(y,{key:0},[c(p(t.config.address),1)],64)):t.type==="slack"?(n(),r(y,{key:1},[c("Slack webhook")],64)):(n(),r(y,{key:2},[c(p(t.config.url),1)],64)),t.userId===null?(n(),r("span",Be,"(global)")):_("",!0)])]),i("div",je,[a(g,{icon:"i-lucide-send",color:"neutral",variant:"ghost",size:"sm",title:"Send test notification",loading:s(E)===t.id,onClick:T=>Y(t.id)},null,8,["loading","onClick"]),t.type==="personal_email"?(n(),v(le,{key:0,text:"Remove your email in Account settings to disconnect"},{default:d(()=>[a(g,{icon:"i-lucide-trash-2",color:"neutral",variant:"ghost",size:"sm",disabled:""})]),_:1})):(n(),v(g,{key:1,icon:"i-lucide-trash-2",color:"error",variant:"ghost",size:"sm",title:"Delete channel",onClick:T=>K(t.id)},null,8,["onClick"]))])]))),128))])]),_:1},8,["count"]),a(A,{icon:"i-lucide-bell",title:"My subscriptions",count:s(z).length,help:"notifications.subscriptions"},{default:d(()=>[s(z).length===0?(n(),r("div",He,[...e[23]||(e[23]=[c(" No subscriptions yet. Use the ",-1),i("strong",null,"Subscribe",-1),c(" bell on a project page to get started. ",-1)])])):_("",!0),i("div",qe,[(n(!0),r(y,null,R(s(z),t=>(n(),r("div",{key:t.id,class:ge(["flex items-center gap-3 rounded-lg border border-default px-4 py-3",P(t)?"opacity-60":""])},[a(C,{name:L(t.channel.type),class:"size-5 text-muted shrink-0"},null,8,["name"]),i("div",Je,[i("div",Qe,p(t.channel.name),1),i("div",Xe,[t.projectId?(n(),r("span",Ke,"Project #"+p(t.projectId),1)):(n(),r("span",Ye,"All projects")),i("span",null,p(t.mode),1),P(t)?(n(),r("span",Ge,"Muted until "+p(new Date(t.mutedUntil).toLocaleDateString()),1)):_("",!0)]),i("div",Ze,[(n(!0),r(y,null,R(t.events??[],T=>(n(),v(B,{key:T,size:"xs",variant:"soft",color:"neutral"},{default:d(()=>[c(p(te(T)),1)]),_:2},1024))),128))])]),i("div",et,[a(g,{icon:P(t)?"i-lucide-bell":"i-lucide-bell-off",color:"neutral",variant:"ghost",size:"sm",title:P(t)?"Unmute":"Mute for 7 days",onClick:T=>ee(t)},null,8,["icon","title","onClick"]),a(g,{icon:"i-lucide-trash-2",color:"error",variant:"ghost",size:"sm",title:"Remove subscription",onClick:T=>Z(t.id)},null,8,["onClick"])])],2))),128))])]),_:1},8,["count"])],64)):(n(),v(ae,{key:1,color:"info",icon:"i-lucide-info",title:"Authentication required",description:"Channels and subscriptions require authentication (PIWI_AUTH_ENABLED=true)."}))])}}});export{vt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ao as $,b as V,B as L,H as T,r as R,ab as y,ay as K,aq as H,h as M}from"./Du2W7Jne.js";import{g as O}from"./DuwtTfO8.js";const _=4096;function F(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function k(e){return'"'+e.replace(/"/g,'\\"')+'"'}function m(e){return e.replace(/\\/g,"/")}function G(e){const n=new Map;for(const o of e){const i=o.projectName||"";n.has(i)||n.set(i,[]),n.get(i).push(o)}return n}function q(e){const n=new Set;return e.filter(o=>{const i=o.filePath;return n.has(i)?!1:(n.add(i),!0)}).map(o=>o.filePath)}function U(e,n){const o=n?.mode??"file-line",l=`${n?.pkgRunner??"npx"} playwright test`;if(e.length===0)return"";const f=G(e),j=[];for(const[u,c]of f){let s;if(o==="file"){const p=q(c).map(t=>k(m(t))).join(" ");s=`${l} ${p}`}else if(o==="file-line"){const d=new Set,p=c.filter(t=>{const r=t.filePath+":"+t.line;return t.line&&d.has(r)?!1:(t.line&&d.add(r),!0)}).map(t=>t.line?k(`${m(t.filePath)}:${t.line}`):k(m(t.filePath))).join(" ");s=`${l} ${p}`}else{const d=c.map(t=>F(t.title)),p=d.length===1?d[0]:`(${d.join("|")})`;s=`${l} --grep ${k(p)}`}u&&(s+=` --project=${k(u)}`),j.push(s)}let v=j.join(" && ");if(v.length>_){if(o==="grep")return U(e,{...n,mode:"file-line"});if(o==="file-line")return U(e,{...n,mode:"file"});const c=W(e).map(d=>k(m(d))).join(" ");let s=`${l} ${c}`;return s.length>_&&(s=s.slice(0,_-3)+"..."),s}return v}function W(e){const n=new Set;return e.reduce((o,i)=>(n.has(i.filePath)||(n.add(i.filePath),o.push(i.filePath)),o),[])}function J(e,n){return e==null?"":n==null?`:${e}`:`:${e}:${n}`}function E(e){return e.replace(/%/g,"%25").replace(/ /g,"%20").replace(/#/g,"%23").replace(/\?/g,"%3F")}function S(e,n){const o=m(e).replace(/\/+$/,""),i=m(n).replace(/^\.?\/+/,"");return o?`${o}/${i}`:i}function z(e){const n=E(m(e.absPath)),o=n.startsWith("/")?n:`/${n}`;return`${e.scheme}://file${o}${J(e.line,e.column)}`}function X(e){const n=E(m(e.relPath))+J(e.line,e.column);return`jetbrains://${e.product}/navigate/reference?project=${encodeURIComponent(e.projectName)}&path=${n}`}function Y(e){const n=E(m(e.path));return`http://localhost:${e.port}/api/file/${n}${J(e.line,e.column)}`}async function I(e){const n=$();if(!n||e==null||e==="")return null;try{return await n.invoke("desktop_get_project_link",{projectId:String(e)})}catch{return null}}function re(e){const n=V(),o=R(!1),i=R(null),l=R(!1);async function f(){i.value=await I(y(e))}L(()=>{o.value=!!$(),o.value&&f()}),T(()=>y(e),()=>{o.value&&f()});async function j(){const u=$(),c=y(e);if(!u||c==null||c==="")return!1;l.value=!0;try{const s=await u.invoke("desktop_pick_folder");return s?(await u.invoke("desktop_set_project_link",{projectId:String(c),path:s}),await f(),!0):!1}catch(s){return n.add({title:"Could not link the folder",description:O(s),color:"error"}),!1}finally{l.value=!1}}async function v(){const u=$(),c=y(e);if(!(!u||c==null||c==="")){l.value=!0;try{await u.invoke("desktop_set_project_link",{projectId:String(c),path:null}),i.value=null}catch(s){n.add({title:"Could not unlink the folder",description:O(s),color:"error"})}finally{l.value=!1}}}return{available:o,link:i,busy:l,refresh:f,pickAndLink:j,unlink:v}}const Q="piwi-ide-prefs",Z={method:"auto",vscodeScheme:"vscode",jetbrainsProduct:"idea",jetbrainsPort:63342,jetbrainsHttpUsesRelativePath:!1,defaultRoot:"",projectRoots:{},jetbrainsProjectNames:{}},ee={vscode:"VS Code","vscode-insiders":"VS Code Insiders",vscodium:"VSCodium",cursor:"Cursor"},ie={auto:"Auto (try all)",vscode:"VS Code","jetbrains-url":"JetBrains (URL)","jetbrains-http":"JetBrains (local server)"},se=["idea","webstorm","pycharm","phpstorm","goland","rubymine","clion","rider","rustrover"];function ae(){const e=K(Q,Z,{mergeDefaults:!0}),n=V(),o=H("piwi-ide-settings-open",()=>!1),i=H("piwi-ide-settings-context",()=>({}));function l(t){return t==null||t===""?null:String(t)}function f(t={}){i.value={projectKey:t.projectKey??null,projectName:t.projectName??null},o.value=!0}function j(t){const r=l(t);return((r?e.value.projectRoots[r]:void 0)||e.value.defaultRoot||"").trim()}function v(t,r){const a=l(t);return((a?e.value.jetbrainsProjectNames[a]:void 0)||r||"").trim()}function u(t,r){const a=j(r);return a?S(a,t):null}const c=M(()=>!!e.value.defaultRoot?.trim()||Object.keys(e.value.projectRoots).length>0||Object.keys(e.value.jetbrainsProjectNames).length>0);function s(t){try{const r=document.createElement("iframe");r.style.display="none",r.src=t,document.body.appendChild(r),setTimeout(()=>r.remove(),1e3)}catch{const r=document.createElement("a");r.href=t,r.style.display="none",document.body.appendChild(r),r.click(),setTimeout(()=>r.remove(),1e3)}}async function d(t,r,a){const b=Y({port:e.value.jetbrainsPort,path:t,line:r,column:a});try{return await fetch(b,{mode:"no-cors",signal:AbortSignal.timeout(1200)}),!0}catch{return!1}}async function p(t){const r=t.method??e.value.method,a=t.filePath,b=t.line??null,P=t.column??null;let h=j(t.projectKey);if(!h){const g=await I(t.projectKey);g?.exists&&(h=g.path)}const w=v(t.projectKey,t.projectName),x={projectKey:l(t.projectKey),projectName:t.projectName??null},C={label:"Configure",color:"info",onClick:()=>f(x)},N=()=>h?(s(z({scheme:e.value.vscodeScheme,absPath:S(h,a),line:b,column:P})),n.add({title:`Opening ${ee[e.value.vscodeScheme]}…`,description:"If nothing opens, the editor may not be installed or the workspace root is wrong.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a workspace root",description:"VS Code needs the local folder that contains this file.",color:"info",icon:"i-lucide-folder-cog",actions:[C]}),!1),A=()=>w?(s(X({product:e.value.jetbrainsProduct,projectName:w,relPath:a,line:b,column:P})),n.add({title:"Opening JetBrains…",description:"If nothing opens, JetBrains Toolbox may not be installed or the project is not open.",color:"neutral",icon:"i-lucide-external-link"}),!0):(n.add({title:"Set a JetBrains project name",description:"The jetbrains:// link needs the open IDE project name.",color:"info",icon:"i-lucide-folder-cog",actions:[C]}),!1),D=async()=>{const g=e.value.jetbrainsHttpUsesRelativePath?a:h?S(h,a):a,B=await d(g,b,P);return n.add(B?{title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"}:{title:"JetBrains not reachable",description:`Nothing responded on localhost:${e.value.jetbrainsPort}. Start the IDE with the Remote Control plugin (and "Allow unsigned requests").`,color:"error",icon:"i-lucide-plug-zap"}),B};if(r==="vscode"){N();return}if(r==="jetbrains-url"){A();return}if(r==="jetbrains-http"){await D();return}if(e.value.jetbrainsHttpUsesRelativePath||!!h){const g=e.value.jetbrainsHttpUsesRelativePath?a:S(h,a);if(await d(g,b,P)){n.add({title:"Opened in JetBrains",color:"success",icon:"i-lucide-check"});return}}if(h){N();return}if(w){A();return}n.add({title:'Set up "Open in IDE"',description:"Add your local workspace folder (for VS Code) or a JetBrains project name to open files from here.",color:"info",icon:"i-lucide-folder-cog",actions:[C]})}return{prefs:e,isConfigured:c,openInIde:p,openInVscode:t=>p({...t,method:"vscode"}),openViaJetbrainsUrl:t=>p({...t,method:"jetbrains-url"}),openViaJetbrainsHttp:t=>p({...t,method:"jetbrains-http"}),resolveRoot:j,resolveJbProjectName:v,resolveAbsPath:u,settingsOpen:o,settingsContext:i,openSettings:f}}export{ie as I,se as J,ee as V,ae as a,U as b,F as e,m as t,re as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={"home.flaky":{title:"Flaky tests",text:"Tests that pass and fail without code changes. This counts how many were detected across your projects recently.",doc:"flaky-tests#flaky-test-detection"},"home.trend-bars":{title:"Run history bars",text:"One bar per full run (up to 20), oldest left → newest right. Green = pass, red = fail, amber = passed with flaky tests, gray = skipped/unknown. Click a bar to open that run.",doc:"ui-overview#home"},"home.tendency":{title:"Tendency",text:"Derived from the last 5 full runs. Failing = latest run failed; flaky = pass/fail mixed or flaky tests seen in the window; passing = all recent runs green.",doc:"ui-overview#home"},"home.project-health":{title:"Project health",text:"Every project at a glance — run history bars and a tendency badge so you can immediately see which project needs attention. Only full runs count.",doc:"ui-overview#home"},"home.get-started":{title:"Get started",text:"Wire the Piwi reporter into your Playwright config to start sending results here. The wizard generates the snippet for you.",doc:"getting-started#using-the-piwi-dashboard-reporter"},"analytics.insights":{title:"Insights",text:"Auto-generated findings over the selected period — pass-rate drops, failing streaks, stale clusters, wasted CI time. Ranked by severity; click one to jump to the source."},"analytics.portfolio":{title:"Portfolio health",text:"Every project over the selected period: pass rate with its change vs the previous period, flaky volume, open failure clusters, and the latest run. Worst health sorts first."},"analytics.heatmap":{title:"Pass rate heatmap",text:"Each cell is the aggregate pass rate of one project over one time bucket — green is healthy, red is broken, gray means no runs. Longer periods use wider buckets."},"analytics.ci-time":{title:"CI time",text:"Total minutes your test runs consumed, over time, with the change vs the previous equal-length period. Steady growth here is a capacity conversation."},"analytics.wasted-time":{title:"Wasted CI time",text:"Minutes that produced no signal: time inside wait steps plus time executing attempts that ended failed or timed out. The strongest argument for fixing slow waits and flaky tests."},"analytics.flaky-leaderboard":{title:"Flakiest tests",text:"The worst flaky tests across all projects, using the same scoring as each project’s Flaky tests tab, sorted by wasted-CI impact.",doc:"flaky-tests#flaky-test-detection"},"analytics.cluster-landscape":{title:"Failure clusters",text:"Open failure clusters across all projects — the biggest and oldest unresolved root causes. Clusters outlive run retention, so this works on long horizons.",doc:"ai-diagnosis#failure-clustering"},"analytics.regression-velocity":{title:"Regression velocity",text:"How much new breakage each period introduces: tests that passed in a baseline and now fail (regressions), plus tests that turned flaky. Rising bars mean quality debt is accumulating.",doc:"flaky-tests#regression-signals"},"analytics.browser-matrix":{title:"Browser matrix",text:"Pass rate per project × browser, so a suite that is green on one browser but failing on another (a browser-specific bug) stands out immediately."},"analytics.slow-endpoints":{title:"Slow endpoints",text:"Backend calls captured during tests, aggregated across all projects by route: p50/p90 latency, error rate, and how many projects hit each one — a shared endpoint regressing shows up here first.",doc:"capture-fixtures"},"projects.tag-filter":{text:"Filter projects by tag. Selecting several tags uses OR logic — a project matching any of them is shown."},"projects.table":{title:"Projects",text:"Every project that has reported results, with its latest run, pass rate and activity. Click a row to drill in.",doc:"ui-overview#projects"},"project.import":{title:"Importing past runs",text:"Upload the archives Playwright writes to blob-report/ to backfill runs from before you adopted Piwi. One archive becomes one run, complete with traces and screenshots, and re-uploading the same archive changes nothing. Imports are silent by design — no notifications, AI diagnosis or regression signals, so a backfill never pages the team about months-old failures.",doc:"importing-runs",envVars:["PIWI_IMPORT_MAX_BYTES"]},"project.run-scope":{title:"Full vs partial runs",text:"A partial run executed only a subset of the suite (a shard, a retry, or a filtered selection). Trends use full runs so partial results don’t skew the numbers.",doc:"ui-overview#test-run-detail"},"project.runs-trend":{title:"Run trend",text:"Pass/fail counts per run over time. Hover a point for the exact run; sudden drops mark where things broke.",doc:"ui-overview#project-detail"},"project.flaky-tests":{title:"Flaky tests",text:"Tests that fail intermittently across runs. Impact estimates wasted CI time; the score (0–100) rates severity and root cause explains why.",doc:"flaky-tests#flaky-test-detection"},"project.quarantine":{title:"Quarantine",text:"A quarantined test still runs and still reports — it is only excluded from the CI gate’s verdict. Passing runs accumulate as a streak, so a test that recovers is flagged ready to release instead of staying quarantined forever.",doc:"flaky-tests#quarantine-with-a-way-out"},"project.performance":{title:"Performance",text:"Duration trends for the suite — average and P90 (the slowest 10% threshold). Use it to catch tests getting steadily slower.",doc:"flaky-tests#performance"},"project.timeline":{title:"Timeline markers",text:"Dated events — deploys, config changes, infra migrations, incidents — overlaid as vertical lines on the trend charts, so you can tell whether a change moved your results or performance. Markers can be scoped to an environment; some are detected automatically when tooling versions change between runs.",doc:"timeline-markers",envVars:["PIWI_AUTO_MARKERS"]},"project.slowest-tests":{title:"Slowest tests",text:"The tests taking the most time, ranked. Optimizing the top entries shortens your overall run the fastest.",doc:"flaky-tests#performance"},"project.run-compare":{title:"Run comparison",text:"Diff two runs to see which tests changed status or duration between them — handy for confirming a fix or spotting a regression.",doc:"ui-overview#test-run-detail"},"project.test-cases":{title:"Test cases",text:'Every distinct test in the project with its executed-only pass rate, result breakdown and average duration across runs. Search by title or file, filter by status, and switch to a per-spec tree. Cases not run within the selected age window are hidden by default (last 30 days) — pick "All time" to see obsolete ones. Click a test to see its full history.',doc:"ui-overview#project-detail"},"project.compare":{title:"Compare runs",text:"Pick two runs to see a side-by-side summary and a per-test status diff between them.",doc:"ui-overview#test-run-detail"},"project.spec-health":{title:"Spec health",text:"A heatmap grouped by spec file: pass rate, flaky rate and average time per spec, so you can find the riskiest files at a glance.",doc:"flaky-tests#spec-health-heatmap"},"project.members":{title:"Project access",text:"Who can see this project. Admins always have access; reporters and users see only the projects assigned to them.",doc:"authentication#user-management"},"project.ai-instructions":{title:"AI diagnosis instructions",text:"Extra guidance handed to the AI when diagnosing this project’s failures — e.g. domain terms, known-flaky areas, or where to look first.",doc:"ai-diagnosis#custom-instructions"},"project.scm-token":{title:"Repository access token",text:"A read-only Git host token lets diagnosis pull the actual commit diffs behind a failure for SCM-grounded analysis. Stored encrypted.",doc:"ai-diagnosis#scm-grounded-context"},"run.summary":{title:"Run summary",text:"Headline outcome of this run — overall status, test counts and total duration.",doc:"ui-overview#test-run-detail"},"run.partial":{title:"Partial run",text:"This run covered only part of the suite (a shard, retry or filtered selection), so its totals aren’t a full picture.",doc:"ui-overview#test-run-detail"},"run.live":{title:"Live run",text:"This run is still streaming results in real time. Results and counts update as each test finishes.",doc:"reporter#live-streaming"},"run.ci-env":{title:"CI & environment",text:"Where this run executed — CI provider, pipeline and machine details — collected automatically by the reporter.",doc:"reporter#automatic-metadata-collection"},"run.reports":{title:"Storage & reports",text:"HTML reports, traces and attachments uploaded with this run. A run can carry several reports (e.g. per shard).",doc:"reporter#multiple-reports"},"run.metadata":{title:"Tags, links & custom data",text:"Extra context attached to the run: tags for grouping, links to external issues, and any custom key/value data your reporter sent."},"run.test-cases":{title:"Test cases",text:"Per-test results for this run. Filter by status, or by the NEW (new regression) and FLAKY signal badges.",doc:"ui-overview#test-run-detail"},"run.insights":{title:"Run insights",text:"Automatic highlights for this run — newly failing, flaky and slow tests — surfaced so you don’t have to hunt for them.",doc:"flaky-tests#run-insights"},"run.regression":{title:"Regression signals",text:"Tests that newly started failing in this run versus the project baseline — the most likely fallout from the latest change.",doc:"flaky-tests#regression-signals"},"run.timeline":{title:"Workers timeline",text:"When each test ran on each parallel worker. Gaps and long bars reveal poor parallelization or a single slow test stalling a shard.",doc:"ui-overview#test-run-detail"},"case.diagnosis-tab":{title:"Diagnosis",text:"Everything you need to understand and fix this failure in one place — the error, a verdict on what kind of failure it is, the captured evidence, and an AI diagnosis.",doc:"ui-overview#test-case-detail"},"case.verdict":{title:"Failure verdict",text:"An at-a-glance read on this failure: whether it newly regressed or is flaky, how many times it retried, and how long the test has been failing.",doc:"flaky-tests#regression-signals"},"case.evidence":{title:"Failure evidence",text:"What was captured at the moment of failure — screenshots, video and traces — grouped so you can see exactly what the browser saw.",doc:"ui-overview#trace-viewer"},"case.test-source":{title:"Test source",text:"The source around the failing line and the callers above it — captured from the failure’s call stack — so you can read where it broke, and the code that led there, without opening your editor. When the execution has a trace, this deepens into the complete call stack with the real source of every frame, read from the trace’s embedded files.",doc:"ui-overview#trace-powered-deep-views"},"export.offline":{title:"Reading this offline",text:"Takes this investigation out of the dashboard as a file that needs no network and no Piwi server. HTML is one self-contained page with screenshots and video embedded; ZIP adds the raw artifacts — trace archives, full-size video, logs — plus a machine-readable data.json; PDF is the HTML printed from your browser. Evidence past the size budget is listed in the report as omitted rather than dropped quietly.",envVars:["PIWI_EXPORT_MAX_INLINE_BYTES","PIWI_EXPORT_MAX_BYTES","PIWI_EXPORT_MAX_CASES"]},"case.artifacts":{title:"Artifacts",text:"Traces, attachments, console output and network requests captured for this execution — the raw material behind the result.",doc:"ui-overview#trace-viewer"},"case.steps":{title:"Steps",text:"Each step Playwright ran, with its duration. A failed step is highlighted with its error, and slow steps are color-coded.",doc:"ui-overview#test-case-detail"},"case.wasted-time":{title:"Wasted time",text:"Time spent in fixed waits (waitForTimeout and matching patterns) that could usually be replaced with a web-first assertion.",doc:"flaky-tests#performance"},"case.ai":{title:"AI diagnosis for this execution",text:"Diagnose just this failing execution, or copy the full evidence context to paste into your own AI assistant.",doc:"ai-diagnosis#diagnosing-one-execution"},"case.web-vitals":{title:"Web Vitals",text:"Core Web Vitals (LCP, CLS, etc.) captured during the test, measuring real loading and responsiveness of the page under test.",doc:"capture-fixtures"},"case.traces":{title:"Traces",text:`Playwright trace files for this execution. "View trace" opens them in the dashboard's own trace viewer — the trace stays on your server, it is never sent to a third party.`,doc:"ui-overview#trace-viewer"},"case.console":{title:"Console output",text:"Browser console messages logged while this test ran — often the first clue for a JavaScript error behind a failure.",doc:"capture-fixtures"},"case.network":{title:"Network requests",text:"HTTP requests the page made during the test, with timing and status — useful for spotting failed or slow calls. When the execution has a trace, the Full trace view shows every request (all resource types) with headers, timing phases, a waterfall and capped body previews; sensitive header values are masked.",doc:"ui-overview#trace-powered-deep-views"},"case.backend-logs":{title:"Backend server logs",text:"Server-side warnings and errors captured during the test, correlated with this execution via a Piwi backend integration.",doc:"backend-logs"},"case.aria":{title:"ARIA snapshot",text:"A snapshot of the accessibility tree at the moment of failure — what assistive tech saw, and useful grounding for AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"case.flaky-count":{title:"Flaky runs",text:"How many of this test’s recent executions flipped between pass and fail without a code change.",doc:"flaky-tests#flaky-test-detection"},"case.history-chart":{title:"Duration trend",text:"This test’s duration across recent runs. Rising times or spikes hint at a slowdown or instability.",doc:"flaky-tests#flaky-test-detection"},"case.sparkline":{title:"Status history",text:"Pass/fail outcome of this test over its recent runs, oldest to newest — a quick read on its stability.",doc:"flaky-tests#flaky-test-detection"},"cluster.concept":{title:"Failure clusters",text:"Failures with the same error fingerprint are grouped into one cluster, so a single root cause shows up once instead of N times.",doc:"ai-diagnosis#failure-clustering"},"cluster.new-vs-known":{title:"New vs known failure",text:"Whether this failure matches an existing cluster (a known issue) or opened a new one — a fresh signature worth a closer look.",doc:"ai-diagnosis#failure-clustering"},"cluster.triage":{text:"Track a cluster’s state: set its status, add triage notes, or extract a subset of failures into a separate cluster."},"cluster.resolution":{title:"Resolution",text:"Recorded when a full run turns this cluster green: when the fix landed, how long the cluster stayed open, and whether the change matched the diagnosed files. If the failure comes back, the cluster is marked as regressed rather than quietly reopened.",doc:"ai-diagnosis#did-the-fix-work"},"cluster.evidence":{title:"Test evidence",text:"The concrete artifacts behind this cluster — screenshots, signals and traces from affected tests — gathered for review and AI diagnosis.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.scm":{title:"What changed",text:"Recent commits and diffs around when this failure started, so you can connect the break to the change that caused it.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.baseline":{title:"Baseline commit",text:"The last known-good commit. Diffs are computed from here forward to scope the search for the offending change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.commit-browser":{title:"Commit browser",text:"Browse the repository’s recent commits and inspect each diff to pick a baseline or find the suspect change.",doc:"ai-diagnosis#scm-grounded-context"},"cluster.diagnosis":{title:"AI diagnosis",text:"Runs the configured AI model over the failure plus its evidence and code changes to propose a root cause and fix.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.context-input":{title:"Additional context",text:"Extra notes, files or screenshots you add to steer the diagnosis — anything the model can’t infer from the captured evidence.",doc:"ai-diagnosis#custom-instructions"},"cluster.context-preview":{title:"Context preview",text:"Exactly what will be sent to the AI, including how much was trimmed to fit the token budget. Review it before spending tokens.",doc:"ai-diagnosis#context-limits-and-token-cost"},"cluster.result":{title:"Diagnosis result",text:"The AI’s proposed root cause, fix and confidence. Treat it as a lead to verify, not proof — confirm against the evidence before acting.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.ai-setup":{title:"AI not configured",text:"Diagnosis needs an AI provider and API key. Configure one in Settings → AI to enable automatic and on-demand analysis.",doc:"ai-diagnosis#enabling-ai-diagnosis"},"cluster.confidence":{title:"Confidence score",text:"How sure the model is of the top hypothesis (0–100). It is lowered when key evidence is missing or truncated, so treat a low score as “gather more before acting”.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.hypotheses":{title:"Other hypotheses",text:"Alternative root causes the model weighed, ranked by likelihood. Useful when the evidence is ambiguous and the top pick is not conclusive.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"cluster.coverage":{title:"Data coverage",text:"Which evidence sections were present, truncated or absent for this diagnosis — the same map the model sees. Absent or trimmed evidence lowers confidence; the quote icon marks sections the diagnosis cited.",doc:"ai-diagnosis#context-limits-and-token-cost"},"notifications.subscribe":{title:"Project notifications",text:"Get notified about this project’s runs through your channels. Choose which events trigger an alert.",doc:"notifications#subscriptions"},"settings.general":{title:"General settings",text:"Central place for account, users, AI diagnosis, notifications, storage and tags. Settings that can be overridden by environment variables show a lock badge naming the variable."},"settings.storage-stats":{title:"Storage statistics",text:"How much disk your reports, traces and attachments use, broken down so you can see what to clean up.",doc:"storage#storage-architecture"},"settings.cleanup":{title:"Cleanup old runs",text:"Delete runs (and their reports, traces and attachments) older than a chosen age to reclaim storage. This cannot be undone.",doc:"storage#storage-management"},"account.email":{title:"Email & verification",text:"Your account email is used for password resets and notifications. Verifying it confirms you own the address.",doc:"authentication#user-management"},"settings.smtp":{title:"SMTP status",text:"Outbound email (resets, invites, notifications) is configured through environment variables and shown here read-only.",doc:"notifications#smtp-configuration",envVars:["PIWI_SMTP_HOST","PIWI_SMTP_PORT","PIWI_SMTP_USER","PIWI_SMTP_PASS","PIWI_SMTP_FROM","PIWI_SMTP_FROM_NAME","PIWI_SMTP_SECURE"]},"notifications.channels":{title:"Channels",text:"Destinations an alert can go to — email, Slack or webhook. Create a channel, then subscribe events to it.",doc:"notifications#channels"},"notifications.subscriptions":{title:"Subscriptions",text:"Which events (run failed, new cluster, etc.) notify which channel, optionally scoped to one project and filtered.",doc:"notifications#subscriptions"},"settings.ai-provider":{title:"AI provider",text:"Configure the model providers behind the three AI roles — diagnosis, research and embedding. Each role has its own provider config, or reuses another role’s provider and credentials. Keys are stored encrypted and never returned by the API.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_PROVIDER","PIWI_AI_MODEL","PIWI_AI_API_KEY","PIWI_AI_BASE_URL"]},"settings.ai-instructions":{title:"Global analysis instructions",text:"Guidance applied to every diagnosis across all projects — house style, terminology, or things to always check. Per-project instructions add to this.",doc:"ai-diagnosis#custom-instructions"},"settings.ai-research":{title:"Research model",text:"An optional cheaper/faster model that pre-analyzes the failure (on a lean view) before the main model writes the final diagnosis. It can use its own provider, and the costly SCM diff is only fetched when it flags a likely regression. It also handles cluster naming and merge adjudication, so configuring a cheap research model routes those utility calls away from the expensive diagnosis model.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_RESEARCH_PROVIDER","PIWI_AI_RESEARCH_MODEL","PIWI_AI_RESEARCH_BASE_URL","PIWI_AI_RESEARCH_API_KEY"]},"settings.ai-limits":{title:"Diagnosis context limits",text:"Caps on how much evidence (and how many tokens) go into each diagnosis. Higher limits give the model more to work with but cost more. Each field can be pinned individually by its env var.",doc:"ai-diagnosis#context-limits-and-token-cost",envVars:["PIWI_AI_MAX_SAMPLE_ERROR_CHARS","PIWI_AI_MAX_SCM_PATCH_BUDGET","PIWI_AI_MAX_AFFECTED_TESTS","PIWI_AI_MAX_STEPS","PIWI_AI_MAX_CONSOLE_ENTRIES","PIWI_AI_MAX_CONSOLE_ENTRY_CHARS","PIWI_AI_MAX_NETWORK_REQUESTS","PIWI_AI_MAX_ARIA_SNAPSHOT_CHARS","PIWI_AI_MAX_TEST_SOURCE_CHARS","PIWI_AI_MAX_SERVER_LOG_ENTRIES","PIWI_AI_MAX_SERVER_LOG_ENTRY_CHARS","PIWI_AI_MAX_IMAGES","PIWI_AI_MAX_PASSED_PEERS","PIWI_AI_MAX_CONSOLE_WINDOW","PIWI_AI_SLOW_REQUEST_MS","PIWI_AI_MAX_TRACE_STACK_FRAMES","PIWI_AI_MAX_TRACE_NETWORK_REQUESTS"]},"settings.users":{title:"Users & roles",text:"Manage accounts and their role. Administrators control everything; reporters submit results; users have read-only access.",doc:"authentication#roles"},"settings.api-keys":{title:"API keys",text:"Tokens (prefixed pd_) that let the reporter or scripts authenticate without a password. Shown once at creation; revoke anytime.",doc:"authentication#api-keys"},"settings.tags":{text:"Reusable labels you can attach to projects for grouping and filtering across the dashboard."},"settings.wasted-time":{title:"Wasted-time patterns",text:"Define which wait steps count as wasted time. A wait is wasted when any pattern matches its step title or source location. Patterns are case-insensitive and support * and ? wildcards. Changes apply to existing runs immediately.",doc:"flaky-tests#performance",envVars:["PIWI_WASTED_WAIT_PATTERNS"]},"settings.timeout-hygiene":{title:"Timeout hygiene",text:"Thresholds for flagging oversized per-test timeouts and stale test.slow() marks. Opportunities are recomputed at read time, so changes apply to existing runs immediately.",doc:"flaky-tests#performance"},"settings.pr-feedback":{title:"Pull-request feedback",text:"When a run finishes on a branch with an open pull request, Piwi can post a summary comment — new failures separated from pre-existing ones, with suggested locators — and set a commit status. Needs PIWI_SITE_URL and an SCM token with write access.",doc:"ci#pull-request-feedback",envVars:["PIWI_SITE_URL"]},"settings.auto-diagnose":{title:"Auto-diagnose",text:"When a run finishes, up to 3 new failure clusters are diagnosed automatically — each diagnosis is one research call (when a research model is configured) plus one diagnosis call — and new clusters get human-readable titles in one batched call. Requires the diagnosis model to be configured.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_AUTO_DIAGNOSE"]},"settings.embedding-model":{title:"Embedding model",text:"Embeds failures so semantically-similar errors group together (used by failure clustering). Can reuse another role’s provider or configure its own.",doc:"ai-diagnosis#enabling-ai-diagnosis",envVars:["PIWI_AI_EMBEDDING_PROVIDER","PIWI_AI_EMBEDDING_MODEL","PIWI_AI_EMBEDDING_BASE_URL","PIWI_AI_EMBEDDING_API_KEY"]},"settings.privacy":{title:"Privacy notice",text:"What data is sent to the configured LLM provider when diagnosing a failure, and how secrets are stored. API keys are encrypted at rest; env vars keep them out of the DB entirely.",doc:"ai-diagnosis#what-a-diagnosis-contains"},"settings.storage-backend":{title:"Storage backend",text:"Where test artifacts (HTML reports, traces, attachments) are stored — local disk or S3. Configured entirely through environment variables; shown here read-only.",doc:"storage#storage-architecture",envVars:["PIWI_STORAGE_TYPE","PIWI_STORAGE_PATH","PIWI_S3_BUCKET","PIWI_S3_REGION","PIWI_S3_ACCESS_KEY_ID","PIWI_S3_SECRET_ACCESS_KEY","PIWI_S3_ENDPOINT","PIWI_S3_FORCE_PATH_STYLE"]},"settings.auth-toggle":{title:"Authentication",text:"Role-based access control and API keys. Off by default — when disabled, every endpoint behaves as a single virtual administrator.",doc:"authentication",envVars:["PIWI_AUTH_ENABLED","PIWI_AUTH_SECRET"]},"account.display-name":{title:"Display name",text:"A friendly name shown alongside your account. Optional, and visible only within the dashboard."},"account.connected-accounts":{title:"Connected accounts",text:"Sign in with an OAuth provider (Google or GitHub). Providers are configured by an operator through environment variables; one provider can be linked per account.",doc:"authentication#oauth-google-github",envVars:["PIWI_OAUTH_GOOGLE_CLIENT_ID","PIWI_OAUTH_GOOGLE_CLIENT_SECRET","PIWI_OAUTH_GITHUB_CLIENT_ID","PIWI_OAUTH_GITHUB_CLIENT_SECRET","PIWI_OAUTH_ALLOWED_DOMAINS","PIWI_OAUTH_GITHUB_ALLOWED_ORGS"]},"account.password":{title:"Password",text:"Change the password you sign in with. OAuth-only accounts manage their password through their provider.",doc:"authentication#user-management"},"notifications.test-email":{title:"Send test email",text:"Send a test message through the configured SMTP server to verify delivery. Uses the environment-configured SMTP connection.",doc:"notifications#smtp-configuration"},"mcp.tools":{title:"What it provides",text:"The tools this MCP server exposes to AI agents, letting them query your projects, runs and failures directly.",doc:"mcp#what-it-provides"},"mcp.auth":{title:"Authentication",text:"How an MCP client authenticates to this server — uses the same API keys as the rest of the dashboard.",doc:"mcp#authentication"},"mcp.client-setup":{title:"Client setup",text:"Copy-paste configuration to connect Claude Code, Cursor, VS Code and other MCP clients to this server.",doc:"mcp#client-setup"},"shared.entity-links":{title:"Entity links",text:"Links to external systems (Jira, GitHub, etc.) attached to this item. The provider is detected automatically from the URL."},"ide.open":{title:"Open in IDE",text:"Click a source path to open it in your local editor. Set your local workspace folder (so VS Code gets an absolute path) or a JetBrains project name, then pick a method. Auto probes the JetBrains local server first (the only one it can confirm) before falling back to a vscode:// or jetbrains:// launch. These preferences live in this browser only.",doc:"ide-integration"},"locator-healing":{title:"Alternative locators",text:'When a locator breaks after a UI change, Piwi suggests pre-captured alternatives from the last passing run — or from another test in the project that uses the same locator. Each alternative is ranked by stability score — prefer data-testid (100) over CSS classes (10–40). The recommended fix shows the exact one-line edit for the failing test, with a "Copy fix prompt" for an AI coding agent. A "Your pick" badge marks a replacement you confirmed on the failing page: "Pick from snapshot" opens the failure-time DOM and lets you click the intended element, and "Pick from trace" opens the failure trace in the trace viewer, whose Pick locator tool works on the recorded page snapshots.',doc:"reporter#locator-healing"},"environment-diff":{title:"Environment diff",text:"Compares this execution’s environment (Playwright version, browser config, locale, viewport, CI provider, …) against the same test’s last passing run on the same browser. Only changed keys are shown — an empty diff rules out environment drift as the cause."},"visual-diff":{title:"Visual diff",text:"Pixel-compares the failing screenshot against the same test’s last passing screenshot (same browser). Red pixels in the overlay mark what changed. When the two screenshots have different dimensions the ratio is flagged as unreliable."},"dom-snapshot":{title:"DOM snapshot",text:"The page’s HTML around the failing action, rendered from the uploaded Playwright trace — nothing extra is captured. Input values, inline handlers and script bodies are removed; token-shaped strings are masked."},"page-state":{title:"App state at test end",text:"URL, history state, storage key names + value lengths, and cookie names + flags captured when the test ended. Values are never captured. Disable with the reporter’s capturePageState option.",doc:"capture-fixtures"}};function s(e){return t[e].envVars??[]}export{t as H,s as h};
|