@chrisjowen/wheelhouse 0.12.0 → 0.12.1
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/build/client/_app/immutable/chunks/{bOtONP_M.js → A55xgzkD.js} +1 -1
- package/build/client/_app/immutable/chunks/A55xgzkD.js.br +0 -0
- package/build/client/_app/immutable/chunks/A55xgzkD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D69HGG2e.js → BBJBkIrw.js} +1 -1
- package/build/client/_app/immutable/chunks/BBJBkIrw.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBJBkIrw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BrlWJk4r.js → BFhVmACN.js} +1 -1
- package/build/client/_app/immutable/chunks/BFhVmACN.js.br +0 -0
- package/build/client/_app/immutable/chunks/BFhVmACN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6B0JAFe.js → BdTUpAzj.js} +1 -1
- package/build/client/_app/immutable/chunks/BdTUpAzj.js.br +0 -0
- package/build/client/_app/immutable/chunks/BdTUpAzj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bw22EWRR.js → Blcu9fuE.js} +1 -1
- package/build/client/_app/immutable/chunks/Blcu9fuE.js.br +0 -0
- package/build/client/_app/immutable/chunks/Blcu9fuE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CL60_qsS.js → CEkqhJ8-.js} +1 -1
- package/build/client/_app/immutable/chunks/CEkqhJ8-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEkqhJ8-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CEHCs8E4.js → CLy6GMrT.js} +1 -1
- package/build/client/_app/immutable/chunks/CLy6GMrT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLy6GMrT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C8OIAOGW.js → CM7YbvcE.js} +1 -1
- package/build/client/_app/immutable/chunks/CM7YbvcE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CM7YbvcE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CeuOu7QI.js → CogyHa6-.js} +1 -1
- package/build/client/_app/immutable/chunks/CogyHa6-.js.br +0 -0
- package/build/client/_app/immutable/chunks/CogyHa6-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8JUY7TGF.js → CuH1GpU9.js} +1 -1
- package/build/client/_app/immutable/chunks/CuH1GpU9.js.br +0 -0
- package/build/client/_app/immutable/chunks/CuH1GpU9.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BYUAxBPx.js → D90Ga_Id.js} +1 -1
- package/build/client/_app/immutable/chunks/D90Ga_Id.js.br +0 -0
- package/build/client/_app/immutable/chunks/D90Ga_Id.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dq4WC4aT.js → D9uOQyZY.js} +1 -1
- package/build/client/_app/immutable/chunks/D9uOQyZY.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9uOQyZY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D1QZsS_n.js → DQWdnL7h.js} +1 -1
- package/build/client/_app/immutable/chunks/DQWdnL7h.js.br +0 -0
- package/build/client/_app/immutable/chunks/DQWdnL7h.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cn9pLe1S.js → DZhp5Clk.js} +1 -1
- package/build/client/_app/immutable/chunks/DZhp5Clk.js.br +0 -0
- package/build/client/_app/immutable/chunks/DZhp5Clk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js +2 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js.br +0 -0
- package/build/client/_app/immutable/chunks/DjTSkyf1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BIJDRvOc.js → Lo9Y985M.js} +1 -1
- package/build/client/_app/immutable/chunks/Lo9Y985M.js.br +0 -0
- package/build/client/_app/immutable/chunks/Lo9Y985M.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B78SKOml.js → caSIyyev.js} +1 -1
- package/build/client/_app/immutable/chunks/caSIyyev.js.br +0 -0
- package/build/client/_app/immutable/chunks/caSIyyev.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D3z87-GH.js → n-cYDyaA.js} +1 -1
- package/build/client/_app/immutable/chunks/n-cYDyaA.js.br +0 -0
- package/build/client/_app/immutable/chunks/n-cYDyaA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{QrHSSdjC.js → s_exGbLS.js} +1 -1
- package/build/client/_app/immutable/chunks/s_exGbLS.js.br +2 -0
- package/build/client/_app/immutable/chunks/s_exGbLS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js +1 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js.br +0 -0
- package/build/client/_app/immutable/chunks/yQaRdTPY.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.B0SozPUz.js → app.BgHDSK-f.js} +2 -2
- package/build/client/_app/immutable/entry/app.BgHDSK-f.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BgHDSK-f.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js +1 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Cv7YY8BY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.BH-p6KNP.js → 0.DuFkC-WN.js} +1 -1
- package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DuFkC-WN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.5bKMe7me.js → 1.BXoD9o7T.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BXoD9o7T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.CuyB--Be.js → 10.Cei28q9Z.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Cei28q9Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.Cp96bYst.js → 11.BstaTigc.js} +1 -1
- package/build/client/_app/immutable/nodes/11.BstaTigc.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.BstaTigc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.B9kS4-UK.js → 12.C26mRRF_.js} +1 -1
- package/build/client/_app/immutable/nodes/12.C26mRRF_.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C26mRRF_.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.ie4sMrRi.js → 13.D5cvQijt.js} +1 -1
- package/build/client/_app/immutable/nodes/13.D5cvQijt.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D5cvQijt.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.CqfbcQC3.js → 14.ixNG0i6M.js} +1 -1
- package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.ixNG0i6M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.ClcEiTus.js → 15.U-YpZ2mY.js} +1 -1
- package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.U-YpZ2mY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.Lubye7rY.js → 16.DYyQlMIj.js} +1 -1
- package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DYyQlMIj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.CZsgvMnU.js → 17.CjNdiCZc.js} +1 -1
- package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CjNdiCZc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.nb4PEk6e.js → 19.aX3EJcGD.js} +1 -1
- package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.aX3EJcGD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.DBpcacIW.js → 2.MoMLMEsA.js} +1 -1
- package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.MoMLMEsA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.DKDJA76m.js → 20.BcpIwTNR.js} +1 -1
- package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BcpIwTNR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.DDSJrVwV.js → 21.BdNRERDN.js} +1 -1
- package/build/client/_app/immutable/nodes/21.BdNRERDN.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BdNRERDN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.Bf2Y4qtK.js → 22.UIlcgKG0.js} +1 -1
- package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.UIlcgKG0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.CgSRzQDr.js → 23.B59tMz3Z.js} +1 -1
- package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.B59tMz3Z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.fKJczgYC.js → 24.DQjTWFAo.js} +1 -1
- package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DQjTWFAo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.BzI2N_Dl.js → 25.DX_SiK1J.js} +1 -1
- package/build/client/_app/immutable/nodes/25.DX_SiK1J.js.br +0 -0
- package/build/client/_app/immutable/nodes/{25.BzI2N_Dl.js.gz → 25.DX_SiK1J.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{26.Bl7bQZez.js → 26.Bqb00dxX.js} +1 -1
- package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bqb00dxX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.B9EWyQv6.js → 28.DAJOyPmp.js} +1 -1
- package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.DAJOyPmp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.DMxCWZ16.js → 3.CU4V9yAo.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CU4V9yAo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.Bj_V5H0A.js → 4.CIKGpO-h.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CIKGpO-h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BAzIGIXP.js → 6.DV-LKwUi.js} +1 -1
- package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DV-LKwUi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.CpRItf5T.js → 7.tNzUdkoK.js} +1 -1
- package/build/client/_app/immutable/nodes/7.tNzUdkoK.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.tNzUdkoK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.BRbaXe0L.js → 8._d4-szlB.js} +1 -1
- package/build/client/_app/immutable/nodes/8._d4-szlB.js.br +0 -0
- package/build/client/_app/immutable/nodes/8._d4-szlB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.DpQmfi7O.js → 9.CIkGA4QL.js} +1 -1
- package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CIkGA4QL.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{detail.js-BBCxJBpU.js → detail.js-kIQeRhX8.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-DHLUCzN_.js → feedback.js-Cn_aMwGt.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-CedW099c.js → internal.js--IrZpGIw.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-CspIw1lK.js → keychain.js-EzFAr7ky.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-O-2c34nr.js → marketplace-service.js-BWJLUgci.js} +2 -2
- package/build/server/chunks/chunks/{page.js-BRRl6mg_.js → page.js-uCRgTfkr.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-CLYvgGeM.js → previewhelper2.js-CheYey18.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-BQv7p3Qv.js → repo.js-mwBuCebU.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-ja9fpm3a.js → runtime.js-DOQwJsyV.js} +524 -153
- package/build/server/chunks/chunks/{service.js-CHB5De_m.js → service.js-BhegRU14.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-BSXaHqaf.js → service2.js-CjX60BFh.js} +3 -3
- package/build/server/chunks/chunks/{starter.js-BL6kYdY7.js → starter.js-BoD-v_RX.js} +2 -2
- package/build/server/chunks/chunks/{view.js-DvrTXTsb.js → view.js-DRvLRn9a.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-DJDX8mej.js → _server.ts.js-LjS85cY1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-ZpNBOdE6.js → _server.ts.js-CPapFlxB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-cLGgBi-L.js → _server.ts.js-C5rpQOtz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DyA-Ftti.js → _server.ts.js-Bh9CCsJR.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-BRutjWld.js → _server.ts.js-B81tIgYM.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CSUsZ_Uy.js → _server.ts.js-DJe3RKYn.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CyMAbBop.js → _server.ts.js-DrNM-EZz.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-C1QNh7Fv.js → _server.ts.js-CyHX-fjj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-xAS3zgy6.js → _server.ts.js-BGNA3rRL.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-C0ChpkPv.js → _server.ts.js-gxW-vjq6.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-Dg8UqJYL.js → _server.ts.js-CjKZKlSx.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-KtXAKUKl.js → _server.ts.js-Bf6fufw1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-SfyGIsms.js → _server.ts.js-CunTg6B4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-uKjVaQqO.js → _server.ts.js-BFn0GxSV.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Bh09YMSB.js → _server.ts.js-BPiDH1by.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DiOWY9as.js → _server.ts.js-CH_ZiSS9.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BRjxK-9y.js → _server.ts.js-CHeUHBaj.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CA3XQih9.js → _server.ts.js-B6-h2R89.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-B5MRXVz2.js → _server.ts.js-CtXL8XCq.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-Hj5j2VEd.js → _server.ts.js-CdsJGtOe.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-CG5hVtIr.js → _server.ts.js-yVkcjBkv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-CbfYfN4W.js → _server.ts.js-BLyJO_Mo.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-Cntqh4w-.js → _server.ts.js-Dp9Lk4LX.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DbaYfmK8.js → _server.ts.js-BKYjzuX1.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CMC6khtq.js → _server.ts.js-DXIA842d.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-DiCaOT3E.js → _server.ts.js-DkhsnbSG.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DQZxZKa4.js → _server.ts.js-SeWa829w.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CaQ772k3.js → _server.ts.js-CIQPuCVw.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DkjBSjdS.js → _server.ts.js-DT0sbWwu.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BLEOrgEt.js → _server.ts.js-Cn2rbNUE.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-rrfRBhVX.js → _server.ts.js-D8cqx7e8.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-DEaeguu1.js → _server.ts.js-DNxzMqSL.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-DGviOddp.js → _server.ts.js-CMrMjFz3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-BfwOLICk.js → _server.ts.js-Dk4WI0lC.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-C3dZCo79.js → _server.ts.js-CybVxq0q.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-QCxCUoaZ.js → _server.ts.js-Du0F1uRC.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-CIHZWmY6.js → _server.ts.js-DktLe6aY.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-9MZ6ZU7W.js → _server.ts.js-B3AFWOQ5.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-YJgYZpm2.js → _server.ts.js-CFZKkvHd.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-DRO0yFlG.js → _server.ts.js-DOuE8mQe.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js--78Nc6jj.js → _server.ts.js-Dnqj-B1I.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-B92-w9Jt.js → _server.ts.js-CsQ9Iy4e.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BlgDs2xk.js → _server.ts.js-Q9_2hESc.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-Cc70st9n.js → _server.ts.js-fJhkF-dq.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-COmpO5sc.js → _server.ts.js-DE5Za2Qf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-DcHNA_QH.js → _server.ts.js-B_Wi2EUQ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-BIBAGkdF.js → _server.ts.js-ESVAlaL0.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DXKDhcRn.js → _server.ts.js-BYen5YjB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BgJD7i53.js → _server.ts.js-D9JD2y98.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-CxKGr5ok.js → _server.ts.js-BcZEsLxW.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-k2erXAMq.js → _server.ts.js-nEQ-LWc3.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BUmsnNMT.js → _server.ts.js-BglmY8Dv.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Dic1r8FA.js → _server.ts.js-Dcu4o_kg.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-DCDFOP3H.js → _server.ts.js-D8DNzTCl.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-DyaR3iKq.js → _server.ts.js-C88U185K.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-Ds9qnblb.js → _server.ts.js-D5X3NXNQ.js} +3 -3
- package/build/server/chunks/entries/{hooks.server.js-BLsrrww8.js → hooks.server.js-BoVfKVBv.js} +3 -3
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-CWJXWFa8.js → _layout.server.ts.js-DonkPB5v.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DcIo1Fkt.js → _page.server.ts.js-BPlndbwo.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-Cumc04zT.js → _page.server.ts.js-D0TSKupF.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-BvnBsHnq.js → _page.server.ts.js-DGxVR_vz.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-DVzHoqMO.js → _page.server.ts.js-Ccs1E7eE.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BK7WgAXR.js → _page.server.ts.js-DdVNEwXK.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-B_et4vbk.js → _page.server.ts.js-DJkL5LjM.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-DWY01zRh.js → _page.server.ts.js-zxQIlwfl.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-Be_vf2s9.js → _page.server.ts.js-XD-2cABX.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-euICzR6h.js → _page.server.ts.js-BgCyi1X-.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-CO-iqBAD.js → _page.server.ts.js-fo0xabfK.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-DzQmyVut.js → _page.server.ts.js-Cbg44XDV.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-ByePQa4g.js → _page.server.ts.js-BUp_Y-KL.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DRj_7nDd.js → _page.server.ts.js-0-aDiI-u.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-QWGL2-Cn.js → _page.server.ts.js-DUYpwlCw.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DAOkZ-fE.js → _page.server.ts.js-B-EvG_LJ.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-jeZvTAgT.js → _page.server.ts.js-e1XEpYYO.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-Bzo5Uals.js → _page.server.ts.js-DQlX1ZXD.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-1XiCbDhc.js → _page.server.ts.js-3vhPyRFz.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DwYnrxXG.js → _page.server.ts.js-CmGgMlAh.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-DP--6Ko6.js → _page.server.ts.js-CcUv_Pl5.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-Dl0z8pkQ.js → _page.server.ts.js-BSp2WAoD.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-CyPpYkuJ.js → _page.server.ts.js-BUVzUDIr.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DlcJgtrb.js → _page.server.ts.js-CthFCAvj.js} +2 -2
- package/build/server/chunks/{handler-pU2T6cxW.js → handler-CoNcksE3.js} +3 -3
- package/build/server/chunks/{index.js-B3YyBD1_.js → index.js-DeIgBt_r.js} +2 -2
- package/build/server/chunks/{manifest.js-D3OqJAbv.js → manifest.js-DABDEm-u.js} +86 -86
- package/build/server/chunks/nodes/{0.js-DapnlcBu.js → 0.js-YKoWN0t_.js} +5 -5
- package/build/server/chunks/nodes/{1.js-B2zVBiHu.js → 1.js-BrhSX20y.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CwfaDBrN.js → 10.js-DfgINkv2.js} +2 -2
- package/build/server/chunks/nodes/{11.js-BSKCzLBk.js → 11.js-DiTSd3ll.js} +5 -5
- package/build/server/chunks/nodes/{12.js-Cw0R3pzN.js → 12.js-50Nn94Ac.js} +6 -6
- package/build/server/chunks/nodes/{13.js-1CllvmKU.js → 13.js-Bqj2sWs_.js} +6 -6
- package/build/server/chunks/nodes/{14.js-Duo10iYX.js → 14.js-Cv1hpyWZ.js} +7 -7
- package/build/server/chunks/nodes/{15.js-yyKjbIPm.js → 15.js-D7gELe63.js} +6 -6
- package/build/server/chunks/nodes/{16.js-Bw3O413k.js → 16.js-DCHbFZQk.js} +6 -6
- package/build/server/chunks/nodes/{17.js-CKJWbBiG.js → 17.js-CRE1rbZ5.js} +2 -2
- package/build/server/chunks/nodes/{19.js-gqmNp-1X.js → 19.js-CFuW5rd2.js} +6 -6
- package/build/server/chunks/nodes/{2.js-DbAE0QSU.js → 2.js-BgPLJqKL.js} +5 -5
- package/build/server/chunks/nodes/{20.js-DyVwaMHk.js → 20.js-DGixTdKt.js} +5 -5
- package/build/server/chunks/nodes/{21.js-UWLpwye1.js → 21.js-fW8cmY-P.js} +5 -5
- package/build/server/chunks/nodes/{22.js-DjQqtx9a.js → 22.js-BLhqsr4_.js} +5 -5
- package/build/server/chunks/nodes/{23.js-BRxy911D.js → 23.js-I9w_LkUL.js} +6 -6
- package/build/server/chunks/nodes/{24.js-QS0KOwss.js → 24.js-Dbyn5eyG.js} +4 -4
- package/build/server/chunks/nodes/{25.js-PQ5YJuMR.js → 25.js-Dc-E-pmn.js} +6 -6
- package/build/server/chunks/nodes/{26.js-CVgNTrxq.js → 26.js-Cqr1BLCa.js} +6 -6
- package/build/server/chunks/nodes/{27.js-D362fjZ7.js → 27.js-JKZQuSb7.js} +5 -5
- package/build/server/chunks/nodes/{28.js-CquKiHnq.js → 28.js-BN16VFpu.js} +5 -5
- package/build/server/chunks/nodes/{3.js-_ZrsIscU.js → 3.js-CZln8kr1.js} +5 -5
- package/build/server/chunks/nodes/{4.js-CMBAdl6x.js → 4.js-mbQFO9SD.js} +5 -5
- package/build/server/chunks/nodes/{5.js-DRAnyeo0.js → 5.js-gufn1Eo1.js} +4 -4
- package/build/server/chunks/nodes/{6.js-CWsHGKdF.js → 6.js-Cdfpyr6S.js} +5 -5
- package/build/server/chunks/nodes/{7.js-BzkPQGE-.js → 7.js-DRJdiMQL.js} +5 -5
- package/build/server/chunks/nodes/{8.js-DppreJ1j.js → 8.js-B4stLJHw.js} +5 -5
- package/build/server/chunks/nodes/{9.js-CWCKh6Lz.js → 9.js-DYcjt0Hs.js} +2 -2
- package/dist/cli.js +16 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.br +0 -0
- package/build/client/_app/immutable/chunks/8JUY7TGF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B78SKOml.js.br +0 -0
- package/build/client/_app/immutable/chunks/B78SKOml.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.br +0 -0
- package/build/client/_app/immutable/chunks/BIJDRvOc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.br +0 -0
- package/build/client/_app/immutable/chunks/BYUAxBPx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.br +0 -0
- package/build/client/_app/immutable/chunks/BrlWJk4r.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bw22EWRR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6B0JAFe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8OIAOGW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CEHCs8E4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CL60_qsS.js.br +0 -0
- package/build/client/_app/immutable/chunks/CL60_qsS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.br +0 -0
- package/build/client/_app/immutable/chunks/CeuOu7QI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cn9pLe1S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.br +0 -0
- package/build/client/_app/immutable/chunks/D1QZsS_n.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D3z87-GH.js.br +0 -0
- package/build/client/_app/immutable/chunks/D3z87-GH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D69HGG2e.js.br +0 -0
- package/build/client/_app/immutable/chunks/D69HGG2e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DGZVZsEx.js +0 -1
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.br +0 -0
- package/build/client/_app/immutable/chunks/DGZVZsEx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js +0 -2
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dbi_7cO_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dq4WC4aT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.br +0 -2
- package/build/client/_app/immutable/chunks/QrHSSdjC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/bOtONP_M.js.br +0 -0
- package/build/client/_app/immutable/chunks/bOtONP_M.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.br +0 -0
- package/build/client/_app/immutable/entry/app.B0SozPUz.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js +0 -1
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BgyXy-5i.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BH-p6KNP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.5bKMe7me.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CuyB--Be.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Cp96bYst.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.B9kS4-UK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.ie4sMrRi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.CqfbcQC3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.ClcEiTus.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.Lubye7rY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.CZsgvMnU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.nb4PEk6e.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DBpcacIW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.DKDJA76m.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DDSJrVwV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.Bf2Y4qtK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.CgSRzQDr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.fKJczgYC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.BzI2N_Dl.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Bl7bQZez.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.B9EWyQv6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.DMxCWZ16.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Bj_V5H0A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BAzIGIXP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CpRItf5T.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BRbaXe0L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DpQmfi7O.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as pn,A as mn,H as wn,ae as vn,bD as yn,i as A,g as p,aC as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aD as St,aF as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./D46tdsTs.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./z5Xef_-v.js";import{I as En}from"./B4gzexCn.js";import{s as j}from"./DTJjRJA0.js";import{i as gt}from"./DWAM9c1z.js";import{l as Ft}from"./BLivoCTk.js";import{i as Fn,C as Yt,s as it,j as Dn,b as E,k as Tt,u as Xe,l as Tn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./BnAtF53u.js";import{o as Qn}from"./D8OKqJm7.js";import{b as $n}from"./D3z87-GH.js";import{e as je}from"./D1QZsS_n.js";import{c as yt}from"./DT69KRC9.js";import{X as to}from"./CSU-6kdN.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Dn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const De=["left","right"],Te=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?Te:De:t?De:Te;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,T=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==T&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:I-T-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const T=lo(r,s,x);L.push(_[T[0]],_[T[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(T=>T<=0)){var R,H;const T=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[T];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(D=>q(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(D=>{if(b){const k=q(D.placement);return k===v||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,Do=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||Do.test(t.contain||"")}function To(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||To(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(T=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(T.x<=z&&T.y<=z)return}C(u,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(g,T.placement,!0),C(m,T.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Tt(this.contentRef);wrapperAttachment=Tt(this.wrapperRef);arrowAttachment=Tt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Tn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,T)=>{let K=()=>(T?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var D=X(),k=V(D);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,D)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Dt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Dt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Dr(e,t){return fn(e,t)||dn(e,t)}const Tr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Tr(a),f=Dt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Dt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Dt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Dt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
1
|
+
import{k as pn,A as mn,H as wn,ae as vn,bD as yn,i as A,g as p,aC as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aD as St,aF as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./D46tdsTs.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./z5Xef_-v.js";import{I as En}from"./B4gzexCn.js";import{s as j}from"./DTJjRJA0.js";import{i as gt}from"./DWAM9c1z.js";import{l as Ft}from"./BLivoCTk.js";import{i as Fn,C as Yt,s as it,j as Dn,b as E,k as Tt,u as Xe,l as Tn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./BnAtF53u.js";import{o as Qn}from"./D8OKqJm7.js";import{b as $n}from"./n-cYDyaA.js";import{e as je}from"./DQWdnL7h.js";import{c as yt}from"./DT69KRC9.js";import{X as to}from"./CSU-6kdN.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Dn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const De=["left","right"],Te=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?Te:De:t?De:Te;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,T=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==T&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:I-T-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const T=lo(r,s,x);L.push(_[T[0]],_[T[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(T=>T<=0)){var R,H;const T=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[T];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(D=>q(D.placement)===v?D.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,D)=>B.overflows[1]-D.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(D=>{if(b){const k=q(D.placement);return k===v||k==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((D,k)=>D[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,Do=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||Do.test(t.contain||"")}function To(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||To(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(T=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(T.x<=z&&T.y<=z)return}C(u,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(g,T.placement,!0),C(m,T.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Tt(this.contentRef);wrapperAttachment=Tt(this.wrapperRef);arrowAttachment=Tt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Tn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,T)=>{let K=()=>(T?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var D=X(),k=V(D);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,D)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Tt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),T=V(I);{var K=B=>{var D=X(),k=V(D);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,D)},z=B=>{var D=He();Ft(D,()=>({...R()}));var k=dt(D);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(D),W(B,D)};gt(T,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Dt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Dt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Dr(e,t){return fn(e,t)||dn(e,t)}const Tr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Tr(a),f=Dt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Dt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Dt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Dt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
2
|
|
|
3
3
|
${n}`}const Hr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Nr(e){const t=e.replace(/\r\n?/g,`
|
|
4
4
|
`).match(Hr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function wi(e,t){const n=hn(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const wt="unsorted",Lt={topic:wt,source:null},Rr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,zr=/^\s{0,3}(`{3,}|~{3,})/;function Vr(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{i as c}from"./DKlgDTCT.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./D46tdsTs.js";import{e as w,s as o}from"./BLivoCTk.js";import{p as n}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{i as c}from"./DKlgDTCT.js";import{p as b,a as l,b as v,c as i,o as d,t as _,g as r,d as x,r as S}from"./D46tdsTs.js";import{e as w,s as o}from"./BLivoCTk.js";import{p as n}from"./s_exGbLS.js";var y=i('<a class="nav-tab shrink-0"> </a>'),k=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Settings"></nav>');function W(p,f){b(f,!1);const h=[{href:"/settings/gateway",label:"Gateway"},{href:"/settings/cloud",label:"Cloud"},{href:"/settings/plugins",label:"Plugins"},{href:"/settings/update",label:"Update"},{href:"/settings/setup",label:"Setup"}],g=a=>n.url.pathname===a||n.url.pathname.startsWith(`${a}/`);c();var t=k();w(t,5,()=>h,a=>a.href,(a,s)=>{var e=y(),u=d(e,!0);_(m=>{o(e,"href",r(s).href),o(e,"aria-current",m),x(u,r(s).label)},[()=>g(r(s).href)?"page":void 0]),l(a,e)}),S(t),l(p,t),v()}export{W as S};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as h,g as c,v as d,q as g}from"./D46tdsTs.js";import{p}from"./
|
|
1
|
+
import{m as h,g as c,v as d,q as g}from"./D46tdsTs.js";import{p}from"./s_exGbLS.js";const y=5e3,v=3e3;function w(m,e,a){let r="connecting",n=null,t=null,s=null;const l=i=>{r=i,a(i)},u=()=>{t&&clearTimeout(t),t=null,l("lost")},o=()=>{s=null;const i=new EventSource(m);n=i,i.addEventListener("open",()=>{t&&clearTimeout(t),t=null,l("open")}),i.addEventListener("error",()=>{if(i.readyState===EventSource.CLOSED){i.close(),u(),s??=setTimeout(o,v);return}r!=="lost"&&l("connecting"),t??=setTimeout(u,y)}),e(i)};return o(),()=>{t&&clearTimeout(t),s&&clearTimeout(s),n?.close(),n=null}}const L="wheelhouse-live",S="wheelhouse-live-leader",A=2*6e4;class T{#e=h(null);get fleet(){return c(this.#e)}set fleet(e){d(this.#e,e,!0)}#t=h(null);get health(){return c(this.#t)}set health(e){d(this.#t,e,!0)}#s=h(null);get messages(){return c(this.#s)}set messages(e){d(this.#s,e,!0)}#a=h("connecting");get connection(){return c(this.#a)}set connection(e){d(this.#a,e,!0)}#n=h(g(Date.now()));get now(){return c(this.#n)}set now(e){d(this.#n,e,!0)}#r=h(0);get revision(){return c(this.#r)}set revision(e){d(this.#r,e,!0)}#l=h(!1);get leader(){return c(this.#l)}set leader(e){d(this.#l,e,!0)}claim=()=>!0;alertListeners=new Set;restartListeners=new Set;serverId=null;latest={};recentAlerts=new Map;channel=null;stop=null;onAlert(e){return this.alertListeners.add(e),()=>this.alertListeners.delete(e)}onRestart(e){return this.restartListeners.add(e),()=>this.restartListeners.delete(e)}connect(){if(this.stop)return()=>{};const e=setInterval(()=>this.now=Date.now(),15e3),r=typeof BroadcastChannel<"u"&&!!globalThis.navigator?.locks?this.share():this.lead();return this.stop=()=>{clearInterval(e),r(),this.stop=null},this.stop}share(){const e=new BroadcastChannel(L);this.channel=e,e.onmessage=n=>{const t=n.data;t.t==="hello"?this.leader&&this.replay():t.t==="connection"?this.leader||(this.connection=t.state):this.leader||this.apply(t.e)};const a=new AbortController;let r=()=>{};return navigator.locks.request(S,{signal:a.signal},()=>{const n=this.lead();return new Promise(t=>{r=()=>{n(),t()}})}).catch(()=>{}),e.postMessage({t:"hello"}),()=>{a.abort(),r(),e.close(),this.channel=null}}lead(){this.leader=!0;const e=n=>{this.connection=n,this.post({t:"connection",state:n})},r=w("/api/events",n=>{const t=(s,l)=>n.addEventListener(s,u=>{const o=l(JSON.parse(u.data));this.remember(o),this.apply(o),this.post({t:"event",e:o}),o.type==="fleet"&&e("open")});t("server",s=>({type:"server",data:s})),t("fleet",s=>({type:"fleet",data:s})),t("health",s=>({type:"health",data:s})),t("messages",s=>({type:"messages",data:s})),t("alert",s=>({type:"alert",data:s,fresh:this.claim(s)})),t("settled",s=>({type:"settled",data:s})),t("alerts",s=>({type:"alerts",data:s.map(l=>{const u=this.claim(l);return{alert:l,fresh:u&&Date.now()-Date.parse(l.at)<=A}})}))},e);return()=>{r(),this.leader=!1}}remember(e){if(e.type==="alert")this.recentAlerts.set(e.data.id,e.data);else if(e.type==="settled")this.recentAlerts.delete(e.data);else if(e.type==="alerts")for(const a of e.data)this.recentAlerts.set(a.alert.id,a.alert);else this.latest[e.type]=e.data;for(const a of[...this.recentAlerts.keys()].slice(0,-40))this.recentAlerts.delete(a)}replay(){this.post({t:"connection",state:this.connection}),this.latest.fleet&&this.post({t:"event",e:{type:"fleet",data:this.latest.fleet}}),this.latest.health&&this.post({t:"event",e:{type:"health",data:this.latest.health}}),this.latest.messages&&this.post({t:"event",e:{type:"messages",data:this.latest.messages}}),this.latest.server&&this.post({t:"event",e:{type:"server",data:this.latest.server}});const e=[...this.recentAlerts.values()].map(a=>({alert:a,fresh:!1}));this.post({t:"event",e:{type:"alerts",data:e}})}apply(e){switch(e.type){case"fleet":this.fleet=e.data,this.revision++,this.connection="open";break;case"health":this.health=e.data;break;case"messages":this.messages=e.data;break;case"server":{const a=this.serverId!==null&&this.serverId!==e.data.id;if(this.serverId=e.data.id,a)for(const r of this.restartListeners)r();break}default:for(const a of this.alertListeners)a(e)}}post(e){try{this.channel?.postMessage(e)}catch{}}}const f=new T;function k(){return f.fleet??p.data.fleet??null}function C(){return f.health??p.data.health??null}function M(){return f.messages??p.data.messages??null}export{M as a,C as b,k as c,f as l,w};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as g,r as m,p}from"./z5Xef_-v.js";import{I as u}from"./B4gzexCn.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./D46tdsTs.js";import{p as i}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as g,r as m,p}from"./z5Xef_-v.js";import{I as u}from"./B4gzexCn.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./D46tdsTs.js";import{p as i}from"./s_exGbLS.js";import{i as s}from"./Bo073DIH.js";import{D as _,a as D}from"./BFhVmACN.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{o as Je}from"./D8OKqJm7.js";import{m as G,g as e,v as O,p as De,u as qe,A as rt,f as K,s as R,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as D,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bB as ot,bC as st}from"./D46tdsTs.js";import{i as W}from"./DWAM9c1z.js";import{X as it,k as lt}from"./CSU-6kdN.js";import{c as ct}from"./DT69KRC9.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./BLivoCTk.js";import{s as Ke,r as Ze,p as Me}from"./z5Xef_-v.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{o as Je}from"./D8OKqJm7.js";import{m as G,g as e,v as O,p as De,u as qe,A as rt,f as K,s as R,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as D,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bB as ot,bC as st}from"./D46tdsTs.js";import{i as W}from"./DWAM9c1z.js";import{X as it,k as lt}from"./CSU-6kdN.js";import{c as ct}from"./DT69KRC9.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./BLivoCTk.js";import{s as Ke,r as Ze,p as Me}from"./z5Xef_-v.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./DQWdnL7h.js";import{b as Oe}from"./RbWQh321.js";import{p as We}from"./s_exGbLS.js";import{a as Ce,s as pt,P as ht}from"./n-cYDyaA.js";import{S as Ve}from"./BXN538J3.js";import{B as ze}from"./oiLSZkWa.js";import{L as Xe}from"./BXPZKlNj.js";import{P as gt}from"./CGO1SBi6.js";import{I as Ge}from"./B4gzexCn.js";import{C as xt}from"./vJAknemx.js";import{C as _t}from"./DSINNCaW.js";import{C as yt}from"./WCYTcvij.js";import{E as wt}from"./DE_ENZzQ.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ze(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Ge(r,Ke(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Ge(r,Ke(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
|
|
2
2
|
|
|
3
3
|
`).trim();if(!n)throw new Y(be,"Invalid message format: no text.");if(n.length>Nt)throw new Y(be,"The message is too long.");if(!await r.sendMessage(n))throw new Y(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new Y(be,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new Y(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,a)=>{const l=Pe(a),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Ct={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[a,l]of Object.entries(Ct)){const h=r(l).trim();h&&(t[a]=h)}return t}function Rt(r,t,a){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:a}}function Dt(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Ft=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function qt(r){return[...new Set(Ft.flatMap(t=>r[t]??[]))]}async function Se(r,t,a){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ve]:a},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const Wt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),He=(r,t,a)=>Se("call",{...r,...t},a),Ut=(r,t,a)=>Se("read",{...r,uri:t},a),sn=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ve]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}const Re=()=>navigator.keyboard;async function Jt(r,{keepEscape:t=!1}={}){if(document.fullscreenElement!==r){if(typeof r.requestFullscreen!="function")return{full:!1,escapeKept:!1};try{await r.requestFullscreen({navigationUI:"hide"})}catch{return{full:!1,escapeKept:!1}}}let a=!1;return t&&Re()?.lock&&(a=await Re().lock(["Escape"]).then(()=>!0).catch(()=>!1)),{full:!0,escapeKept:a}}function Ue(r){!r||document.fullscreenElement!==r||(Re()?.unlock?.(),document.exitFullscreen().catch(()=>{}))}class Kt{#e=G(0);get open(){return e(this.#e)}set open(t){O(this.#e,t,!0)}}const ln=new Kt;var Zt=u('<p aria-busy="true">Opening the app…</p>'),Vt=u("<!>Starting…",1),Xt=u("<!> ",1),Gt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Yt=u('<div data-app-service=""><p> </p> <!></div>'),Qt=u("<p> </p>"),$t=u("<!>Exit full screen",1),er=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),tr=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),rr=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),nr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ar=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),or=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function sr(r,t){De(t,!0);const a=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,a);const d=()=>We.data.sessionToken??"",x=()=>We.data.health?.version??"0.0.0";let n=G("opening"),z=G(null),H=G(null),ie=G(""),Q=G(null),fe=G(null),ve=G(!1),ge=G(160),j=G("inline"),T=G(null),C=G(null),g=G(()=>{}),s=G(null),m=G(null),S=Promise.resolve();function y(c){const N=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=N.catch(()=>{}),N}qe(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(n,"opening"),O(Q,null);try{const c=await Wt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(n,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(n,"service")):(O(Q,c.reason,!0),O(n,"failed"))}catch(c){O(Q,c.message,!0),O(n,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Je(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(Ce.sandbox(e(z).sandbox));return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?qt(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(N=>c.getPropertyValue(N))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(j)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Rt(c,l(),h())};qe(()=>{if(!e(z)||!e(C))return;const c=e(z),N=e(C);return rt(()=>I(c,N))});function I(c,N){const J=new URL(Ce.sandbox(c.sandbox)).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>N.contentWindow?.postMessage(f,J),F={context:()=>Dt({tool:c.tool,theme:A(),styles:P(),displayMode:e(j),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,q){let ee=await He(te,{name:f,arguments:q,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(q,null,2)}))throw new Y(ye,"The captain declined the call.");ee=await He(te,{name:f,arguments:q,confirmed:!0},d())}if(!ee.ok)throw new Y(ye,ee.reason);return ee.result},async readResource(f){const q=await Ut(te,f,d());if(!q.ok)throw new Y(ye,q.reason);return q.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const q=await pt(`From the “${t.title}” app (${t.plugin} plugin):
|
|
4
4
|
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as _e,r as me,p as W}from"./z5Xef_-v.js";import{I as ze,t as It}from"./B4gzexCn.js";import{p as st}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as _e,r as me,p as W}from"./z5Xef_-v.js";import{I as ze,t as It}from"./B4gzexCn.js";import{p as st}from"./s_exGbLS.js";import{a as jt,o as Ct}from"./D8OKqJm7.js";import{k as Wt,A as Ft,m as M,q as it,g as t,v as b,l as lt,p as Fe,u as We,h as c,s as u,r as l,t as D,a as p,b as Ke,i as _,bE as Kt,o as F,d as O,j as Be,f as Ae,c as f,y as L,n as fe,bF as Et,z as Ut,G as gt,x as Mt,aB as Bt}from"./D46tdsTs.js";import{i as $}from"./DWAM9c1z.js";import{a as Le,s as R,f as Yt,d as ut,l as Gt,e as rt,i as Jt,r as Vt,b as Xt}from"./BLivoCTk.js";import{b as Ge}from"./RbWQh321.js";import{z as Qt}from"./DJNADPa5.js";import{a as Dt,f as Zt,s as ea,P as ta}from"./n-cYDyaA.js";import{c as aa}from"./CogyHa6-.js";import{p as nt}from"./DVy4dK4b.js";import{k as ra,X as Ye}from"./CSU-6kdN.js";import{R as Pt}from"./DtHooIpl.js";import{E as At}from"./DE_ENZzQ.js";import{h as na,m as sa}from"./yFOoFovD.js";import{a as Lt}from"./Cqz3pSYE.js";import{S as ia}from"./BXN538J3.js";import{c as Rt}from"./BC4SXzSU.js";import{M as pt}from"./DK0g50g1.js";import{A as oa}from"./DGyqUFtt.js";import{C as la}from"./CwCeO535.js";import{C as da}from"./DSINNCaW.js";import{P as xt}from"./CmMBsPrQ.js";import{s as ca,a as bt}from"./DfZeJIs0.js";class mt{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#s().observe(e,this.#r),()=>{var o=this.#e.get(e);o.delete(a),o.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){mt.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ua=new mt({box:"border-box"});function wt(n,e,a){var r=ua.observe(n,()=>a(n[e]));Wt(()=>(Ft(()=>a(n[e])),r))}var va=new Set(["$$slots","$$events","$$legacy"]);function On(n,e){let a=me(e,va);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ha=new Set(["$$slots","$$events","$$legacy"]);function vt(n,e){let a=me(e,ha);const r={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var pa=new Set(["$$slots","$$events","$$legacy"]);function _t(n,e){let a=me(e,pa);const r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function ma(n,e){let a=me(e,fa);const r={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ga=new Set(["$$slots","$$events","$$legacy"]);function yt(n,e){let a=me(e,ga);const r={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var xa=new Set(["$$slots","$$events","$$legacy"]);function kt(n,e){let a=me(e,xa);const r={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function wa(n,e){let a=me(e,ba);const r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var _a=new Set(["$$slots","$$events","$$legacy"]);function ya(n,e){let a=me(e,_a);const r={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function za(n,e){let a=me(e,ka);const r={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Sa=new Set(["$$slots","$$events","$$legacy"]);function $a(n,e){let a=me(e,Sa);const r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ta=new Set(["$$slots","$$events","$$legacy"]);function Ca(n,e){let a=me(e,Ta);const r={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ea=new Set(["$$slots","$$events","$$legacy"]);function Ma(n,e){let a=me(e,Ea);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}const Da="{url}";function Pa(n,e,a){const r=e&&Object.hasOwn(n,e)?n[e]:null;return typeof r!="string"?{href:a.url,external:!0}:{href:r.replace(Da,encodeURIComponent(a.url)),external:!1}}const Nn={review(n,e){const a=st.data?.pullRequestTabs??{};return Pa(a,n,e)}},Aa=15e3,Ot=n=>`url:${n}`,La=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,Ra=5e3;class Oa{#e=M(it({}));get checks(){return t(this.#e)}set checks(e){b(this.#e,e,!0)}#t=M(it({}));get failed(){return t(this.#t)}set failed(e){b(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let r=!1;return()=>{if(r)return;r=!0;const o=this.watching.get(e);!o||--o.count>0||(o.timer&&clearTimeout(o.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const r=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,r),r}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(La(e));if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const r=this.checks[e]?.state==="live"?Aa:Ra;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},r)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Qe=new Oa,zt=500,Ze=n=>n.replace(/\s+/g," ").trim(),Na=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function ht(n){const e=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const Ha={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function qa(n,e,a){const r=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(r&&r.tagName!=="HTML"&&r.tagName!=="BODY"){const o=r.tagName.toLowerCase(),s=r.getAttribute("role")==="button"?"button":Ha[o]??"part of the page",i=Na(Ze(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${s}`:`a ${s} near ${ht(e)}`,detail:`<${o}>${i?` “${i}”`:""}, near ${ht(e)} of the page`}}return{kind:"spot",label:`a spot near ${ht(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const Ia=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,ja=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Wa="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Fa=n=>n.flatMap((e,a)=>[`${a+1}. ${Ze(e.text)}`,...e.points&&Ze(e.points)?[` Points at: ${Ze(e.points)}`]:[]]);function Ka(n,e,a){return[`Preview feedback for ${n.id} (${Ze(n.title)}), sent together from the Preview tab (${e}):`,...Fa(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Wa].join(`
|
|
2
2
|
`)}function Hn(n){const e=n.replace(/\r\n?/g,`
|
|
3
3
|
`).split(`
|
|
4
4
|
`),a=Ia.exec(e[0]??""),r=a?null:ja.exec(e[0]??""),o=a??r;if(!o)return null;const s=[];for(const i of e.slice(1)){const d=/^\d+\. (.+)$/.exec(i);if(d){s.push({text:d[1],points:null});continue}const h=/^ {3}Points at: (.+)$/.exec(i);h&&s.length&&(s[s.length-1].points=h[1])}return s.length?{taskId:o[1],title:o[2],url:a?a[3]:null,plugin:r?{id:r[4],name:r[3],subject:r[5]??null}:null,items:s}:null}var Ua=f('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),Ba=f('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),Ya=f('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),Ga=f('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Ja=f('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Va=f('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),Xa=f("<!> <!>",1),Qa=f('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),Za=f('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),er=f('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),tr=f('<span class="block text-xs"> </span>'),ar=f('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),rr=f('<p class="text-sm"> </p>'),nr=f('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),sr=f('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),ir=f("<div><!> <div><!></div></div>");function or(n,e){Fe(e,!0);let a=W(e,"taskId",3,null),r=W(e,"url",3,null),o=W(e,"compact",3,!1),s=W(e,"fill",3,!1),i=W(e,"desktop",3,!1),d=W(e,"toolbar",3,!0),h=W(e,"pointing",3,!1),g=W(e,"pin",3,null),P=M(null);function N(T){const k=T.currentTarget.getBoundingClientRect(),H=T.clientX-k.left,q=T.clientY-k.top;let U=null;const be=t($e)?t(le):1;try{U=t(P)?.contentDocument?.elementFromPoint(H/be,q/be)??null}catch{U=null}const se={x:k.width?H/k.width:0,y:k.height?q/k.height:0};e.onpoint?.(qa(U,se,{w:Math.round(k.width),h:Math.round(k.height)}),se)}const ie={w:1280,h:800};let ue=M(0),Y=M(0),oe=M(0);const ge=_(()=>a()??Ot(r()??""));We(()=>Qe.watch(t(ge)));const K=_(()=>Qe.checks[t(ge)]??null),re=_(()=>!!Qe.failed[t(ge)]),G=_(()=>t(K)?.state==="live"),ne=_(()=>t(K)?.url??null),ve=_(()=>t(ne)&&t(K)?Dt.view(t(ne)):null),Q=_(()=>t(ve)?Zt(t(ve),location.origin):""),le=_(()=>t(Y)?t(Y)/ie.w:0),$e=_(()=>s()&&i()&&t(le)>0&&t(le)<1);function Te(){Kt(ue),Qe.refresh(t(ge))}var Re={reload:Te},xe=ir(),he=c(xe);{var Oe=T=>{var k=Ga(),H=c(k),q=F(H,!0),U=u(H,2);{var be=z=>{var E=Ua(),V=c(E);Pt(V,{class:"size-3.5"}),l(E),D(()=>{R(E,"aria-label",t(G)?"Reload the preview":"Check the preview again"),R(E,"title",t(G)?"Reload":"Check again")}),L("click",E,Te),p(z,E)};$(U,z=>{(t(G)||t(K)?.state==="blocked"||t(K)?.state==="down")&&z(be)})}var se=u(U,2);{var Ce=z=>{var E=Ba(),V=u(c(E));At(V,{class:"size-3.5","aria-hidden":"true"}),l(E),D(()=>R(E,"href",t(ve))),p(z,E)};$(se,z=>{(t(G)||t(K)?.state==="blocked")&&z(Ce)})}var J=u(se,2);{var I=z=>{var E=Ya(),V=c(E);_t(V,{class:"size-3.5","aria-hidden":"true"}),fe(),l(E),L("click",E,function(...ce){e.onfullscreen?.apply(this,ce)}),p(z,E)};$(J,z=>{e.onfullscreen&&t(G)&&z(I)})}l(k),D(()=>{R(H,"title",t(ne)??void 0),O(q,t(ne)??"Live preview")}),p(T,k)};$(he,T=>{d()&&T(Oe)})}var pe=u(he,2),y=c(pe);{var A=T=>{var k=Be(),H=Ae(k);ra(H,()=>`${t(ve)} ${t(ue)}`,q=>{var U=Be(),be=Ae(U);{var se=J=>{var I=Xa(),z=Ae(I);{var E=C=>{var S=Ja();D(()=>{R(S,"src",t(ve)),R(S,"title",`Live preview of ${t(ne)??""}`),R(S,"sandbox",t(Q)),S.inert=!!e.onopen,Le(S,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(S,`width:${ie.w}px;height:${ie.h}px;transform:scale(${t(le)??""})`)}),p(C,S)};$(z,C=>{t(le)&&C(E)})}var V=u(z,2);{var ce=C=>{var S=Va(),Z=c(S),ee=c(Z);_t(ee,{class:"size-3.5","aria-hidden":"true"}),fe(),l(Z),l(S),L("click",S,function(...m){e.onopen?.apply(this,m)}),p(C,S)};$(V,C=>{e.onopen&&C(ce)})}p(J,I)},Ce=J=>{var I=er(),z=Ae(I);Ge(z,C=>b(P,C),()=>t(P));var E=u(z,2);{var V=C=>{var S=Qa(),Z=c(S),ee=c(Z);ya(ee,{class:"size-4","aria-hidden":"true"}),fe(),l(Z),l(S),L("click",S,N),p(C,S)},ce=C=>{var S=Za();D(()=>ut(S,`left:${g().x*100}%;top:${g().y*100}%`)),p(C,S)};$(E,C=>{h()?C(V):g()&&C(ce,1)})}D(()=>{R(z,"src",t(ve)),R(z,"title",`Live preview of ${t(ne)??""}`),R(z,"sandbox",t(Q)),Le(z,1,Yt(t($e)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),ut(z,t($e)?`width:${ie.w}px;height:${t(oe)/t(le)}px;transform:scale(${t(le)})`:void 0)}),p(J,I)};$(be,J=>{o()?J(se):J(Ce,-1)})}p(q,U)}),p(T,k)},de=T=>{const k=_(()=>!t(K)&&!t(re)),H=_(()=>t(k)?"Checking the preview…":t(re)?"Could not check the preview":t(K)?.state==="down"?"Preview stopped":t(K)?.state==="blocked"?"Preview cannot be embedded":t(K)?.state==="refused"?"Preview not shown here":"No live preview reported"),q=_(()=>t(k)?"":t(re)?"Wheelhouse did not answer; it will try again.":t(K)?.state==="blocked"?`${t(K).reason} Open it in a new tab instead.`:t(K)?.reason??"");var U=Be(),be=Ae(U);{var se=J=>{var I=ar(),z=c(I);{var E=ee=>{yt(ee,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};$(z,ee=>{t(k)||ee(E)})}var V=u(z,2),ce=c(V),C=F(ce,!0),S=u(ce,2);{var Z=ee=>{var m=tr(),w=F(m,!0);D(()=>O(w,t(q))),p(ee,m)};$(S,ee=>{t(q)&&ee(Z)})}l(V),l(I),D(()=>{Le(ce,1,`font-medium ${t(k)?"":"text-foreground"}`),O(C,t(H))}),p(J,I)},Ce=J=>{var I=sr(),z=c(I),E=c(z);{var V=C=>{var S=rr(),Z=F(S,!0);D(()=>O(Z,t(H))),p(C,S)},ce=C=>{var S=nr(),Z=Ae(S);yt(Z,{class:"mx-auto size-6","aria-hidden":"true"});var ee=u(Z,2),m=F(ee,!0),w=u(ee,2),v=F(w,!0);D(()=>{O(m,t(H)),O(v,t(q))}),p(C,S)};$(E,C=>{t(k)?C(V):C(ce,-1)})}l(z),l(I),p(J,I)};$(be,J=>{o()?J(se):J(Ce,-1)})}p(T,U)};$(y,T=>{t(G)&&t(ve)?T(A):T(de,-1)})}return l(pe),l(xe),D(()=>{Le(xe,1,`min-w-0 ${s()?"flex h-full flex-col":""}`),R(xe,"data-live-preview",t(K)?.state??"checking"),Le(pe,1,`group relative w-full overflow-hidden bg-muted/40 ${d()?"mt-1.5 rounded-lg border":""} ${o()?t(G)?"aspect-[16/10]":"":s()?"min-h-0 flex-1":t(G)?"h-[70vh] min-h-80":"h-40"}`)}),wt(pe,"clientWidth",T=>b(Y,T)),wt(pe,"clientHeight",T=>b(oe,T)),p(n,xe),Ke(Re)}lt(["click"]);const St="wheelhouse-preview-helper",Nt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),lr=Object.freeze(Nt()),Xe=()=>crypto.randomUUID();class dr{#e=M(it({}));get byTask(){return t(this.#e)}set byTask(e){b(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(St)??"{}");if(e&&typeof e=="object"){for(const a of Object.values(e))a.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(St,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??lr}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Nt()),this.byTask[e]}async ask(e,a,r,o){const s=this.of(e),i=a.trim();if(!i&&!r||s.asking)return;s.said.push({id:Xe(),who:"captain",text:i||"What about this?",points:r}),s.asking=!0,s.error=null,this.save();const d=s.said.filter(h=>!h.notice).map(h=>({who:h.who,text:h.text,points:h.points??null}));try{const h=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[ia]:o},body:JSON.stringify({turns:d,list:s.list.map(P=>P.text)})}),g=await h.json().catch(()=>null);!h.ok||!g?.reply?s.error=g?.message??`The helper could not answer (${h.status}).`:s.said.push({id:Xe(),who:"helper",text:g.reply,suggest:g.suggest.map(P=>({text:P,added:!1}))})}catch{s.error="Wheelhouse could not be reached. Try again."}finally{s.asking=!1,this.save()}}accept(e,a,r){const o=this.of(e),s=o.said.findIndex(h=>h.id===a),i=o.said[s]?.suggest?.[r];if(!i||i.added)return;i.added=!0;const d=o.said.slice(0,s).reverse().find(h=>h.who==="captain");o.list.push({id:Xe(),text:i.text,points:d?.points??null}),o.sent=null,this.save()}addOwn(e,a,r=null){const o=a.trim().slice(0,zt);if(!o)return;const s=this.of(e);s.list.push({id:Xe(),text:o,points:r}),s.sent=null,this.save()}edit(e,a,r){const o=this.of(e).list.find(s=>s.id===a);o&&(o.text=r.slice(0,zt),this.save())}remove(e,a){const r=this.of(e),o=r.list.find(s=>s.id===a);r.list=r.list.filter(s=>s.id!==a);for(const s of r.said)for(const i of s.suggest??[])o&&i.text===o.text&&(i.added=!1);this.save()}async send(e,a,r){const o=this.of(e.id),s=o.list.filter(g=>g.text.trim());if(!s.length)return!1;o.error=null;const i=await ea(Ka(e,a,s),r,e.id);if(!i.ok)return o.error=i.error,this.save(),!1;o.sent={at:new Date().toISOString(),count:s.length};const d=e.id.lastIndexOf("@"),h=d>0?`second mate ${e.id.slice(d+1)}`:"Firstmate";return o.list=[],o.said.push({id:Xe(),who:"helper",notice:!0,text:`Sent to ${h}: ${s.length} ${s.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const a=this.of(e);a.said=[],a.error=null,this.save()}}const He=new dr;var cr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),ur=f("<textarea></textarea>");function vr(n,e){Fe(e,!0);let a=W(e,"ref",15,null),r=W(e,"value",15),o=W(e,"data-slot",3,"textarea"),s=me(e,cr);var i=ur();Et(i),Gt(i,d=>({"data-slot":o(),class:d,...s}),[()=>Rt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Ge(i,d=>a(d),()=>a()),Lt(i,r),p(n,i),Ke()}const hr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function $t(){if(typeof window>"u")return null;const n=window;return n.SpeechRecognition??n.webkitSpeechRecognition??null}const pr={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ot=n=>n.trim().split(/\s+/).filter(Boolean),fr=(n,e)=>n.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),Ht=(n,e)=>e.length<=n.length&&e.every((a,r)=>fr(a,n[r]));function Tt(n,e){const a=ot(n);return!a.length||Ht(ot(e),a)?e:/\s$/.test(n)||/^\s/.test(e)?n+e:`${n} ${e}`}function mr(n,e){const a=ot(n),r=ot(e);return!a.length||!Ht(r,a)?e:r.slice(a.length).join(" ")}const gr={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>$t()!==null,start(n,e){const a=$t();if(!a)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const r=new a;r.lang=n,r.continuous=!0,r.interimResults=!0,r.onresult=o=>{let s="",i="";for(let d=0;d<o.results.length;d++){const h=o.results[d];h.isFinal?s=Tt(s,h[0].transcript):i=Tt(i,h[0].transcript)}e.text(s,mr(s,i))},r.onerror=o=>{o.error!=="aborted"&&e.problem(pr[o.error]??"failed")},r.onend=()=>e.end();try{r.start()}catch{e.problem("failed"),e.end()}return{stop:()=>r.stop(),abort:()=>r.abort()}}};let xr=gr;const ft=()=>xr,br=2e3;class wr{#e=M(null);get owner(){return t(this.#e)}set owner(e){b(this.#e,e)}#t=M("idle");get phase(){return t(this.#t)}set phase(e){b(this.#t,e,!0)}#r=M(0);get startedAt(){return t(this.#r)}set startedAt(e){b(this.#r,e,!0)}#s=M(null);get problem(){return t(this.#s)}set problem(e){b(this.#s,e,!0)}#n=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,r=_r()){this.phase!=="idle"&&this.commit();const o=ft();if(this.owner=e,this.problem=null,!o.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let s=null;const i=()=>s===null||this.#n===s;s=o.start(r,{text:(d,h)=>{i()&&this.#a===a&&a.show(...yr(d,h))},problem:d=>{i()&&(this.problem=d)},end:()=>{i()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#n=s)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#n?.stop(),this.#i=setTimeout(()=>this.#o("finish"),br))}commit(){this.phase!=="idle"&&this.#o("finish")}cancel(){this.phase!=="idle"&&this.#o("revert")}dismiss(){this.problem=null}#o(e){const a=this.#n,r=this.#a;this.#n=null,this.#a=null,this.#i&&clearTimeout(this.#i),this.#i=null,this.phase="idle",a?.abort(),r?.[e]()}}const ae=new wr;function _r(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function yr(n,e){const a=n.replace(/\s+/g," ").trim(),r=e.replace(/\s+/g," ").trim();return[a,a&&r?` ${r}`:r]}const qt=n=>n&&!/\s$/.test(n)?" ":"",kr=n=>/^[\p{L}\p{N}]/u.test(n)?" ":"";function zr(n){let e="",a="",r="",o=!1;const s=(i,d)=>{n.value=i;try{n.setSelectionRange(d,d)}catch{}n.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=n.value;const i=n.selectionStart??e.length,d=n.selectionEnd??i;a=e.slice(0,i),r=e.slice(d),o=!1},show(i,d){const h=i+d;if(!h)return;const g=a+qt(a)+h;s(g+kr(r)+r,g.length),o=!0},finish(){},revert(){o&&s(e,a.length),o=!1}}}function qn(n,e){let a=null,r=null,o="";const s=i=>{const d=document.createRange();d.setStartAfter(i),d.collapse(!0);const h=window.getSelection();h?.removeAllRanges(),h?.addRange(d)};return{begin(){const i=window.getSelection();let d;i?.rangeCount&&n.contains(i.getRangeAt(0).startContainer)?(d=i.getRangeAt(0),r=d.extractContents()):(d=document.createRange(),d.selectNodeContents(n),d.collapse(!1),r=null);const h=document.createRange();h.setStart(n,0),h.setEnd(d.startContainer,d.startOffset),o=qt(h.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",d.insertNode(a)},show(i,d){if(!a)return;const h=document.createTextNode(i||d?o+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=d,a.replaceChildren(h,...d?[g]:[]),e()},finish(){if(!a)return;const i=a.textContent??"";if(i){const d=document.createTextNode(i);a.replaceWith(d),(n.contains(document.activeElement)||document.activeElement===n)&&s(d)}else a.replaceWith(r??"");a=null,r=null,e()},revert(){a?.replaceWith(r??""),a=null,r=null,e()}}}const Sr=n=>n.code==="Space"&&n.shiftKey&&(n.metaKey||n.ctrlKey)&&!n.altKey,$r=450;function Tr(n,e,a){let r=0;const o=i=>{if(Sr(i)){if(i.preventDefault(),i.repeat)return;ae.active(e)?(r=0,ae.stop()):(r=Date.now(),a());return}ae.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),r=0,ae.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(r=0,ae.commit()))},s=i=>{if(!r||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const d=Date.now()-r;r=0,d>=$r&&ae.active(e)&&ae.stop()};return n.addEventListener("keydown",o),n.addEventListener("keyup",s),()=>{n.removeEventListener("keydown",o),n.removeEventListener("keyup",s)}}var Cr=f('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Er=f('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Mr=f('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Dr=f('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Pr(n,e){Fe(e,!0);let a=W(e,"label",3,"Dictate"),r=W(e,"size",3,"md"),o=W(e,"disabled",3,!1),s=W(e,"listening",15,!1);const i={};Ut(()=>{s(ae.active(i))});const d=_(()=>s()&&ae.phase==="stopping"),h=_(()=>ae.owner===i?ae.problem:null);let g=M(!1),P=M(it(Date.now())),N=M("Ctrl+Shift+Space");const ie="wheelhouse.voice.noted";let ue=!1;function Y(){if(ue)return!0;try{return localStorage.getItem(ie)==="1"}catch{return!1}}function oe(){if(o())return;const y=ft();if(y.supported()&&y.privacyNote&&!Y()){b(g,!0);return}ae.start(i,e.target()),e.field?.focus()}function ge(){ue=!0;try{localStorage.setItem(ie,"1")}catch{}b(g,!1),oe()}function K(){s()?ae.stop():t(g)?b(g,!1):oe()}const re=_(()=>{const y=Math.max(0,Math.floor((t(P)-ae.startedAt)/1e3));return`${Math.floor(y/60)}:${String(y%60).padStart(2,"0")}`});We(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&b(N,"⌘⇧Space")}),We(()=>{if(!s())return;b(P,Date.now(),!0);const y=setInterval(()=>b(P,Date.now(),!0),250);return()=>clearInterval(y)}),We(()=>{if(e.field)return Tr(e.field,i,oe)}),We(()=>{if(!s()&&!t(g))return;const y=A=>{A.key!=="Escape"||A.defaultPrevented||(A.preventDefault(),s()&&ae.cancel(),b(g,!1))};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)}),jt(()=>{ae.active(i)&&ae.commit()});var G=Dr(),ne=c(G);{var ve=y=>{var A=Cr(),de=F(A,!0);D(()=>O(de,t(d)?"Finishing…":t(re))),p(y,A)};$(ne,y=>{s()&&y(ve)})}var Q=u(ne,2),le=c(Q);{var $e=y=>{{let A=_(()=>r()==="md"?"size-3.5 fill-current":"size-3 fill-current");Ma(y,{get class(){return t(A)}})}},Te=y=>{{let A=_(()=>r()==="md"?"size-4.5":"size-4");ma(y,{get class(){return t(A)}})}};$(le,y=>{s()?y($e):y(Te,-1)})}l(Q);var Re=u(Q,2),xe=F(Re,!0),he=u(Re,2);{var Oe=y=>{var A=Er(),de=c(A),T=F(de,!0),k=u(de,4),H=c(k),q=u(H,2);l(k),l(A),D(U=>O(T,U),[()=>ft().privacyNote]),L("click",H,()=>b(g,!1)),L("click",q,ge),p(y,A)},pe=y=>{var A=Mr(),de=c(A),T=F(de,!0),k=u(de,2),H=c(k);Ye(H,{class:"size-3.5"}),l(k),l(A),D(()=>O(T,hr[t(h)])),L("click",k,()=>ae.dismiss()),p(y,A)};$(he,y=>{t(g)?y(Oe):t(h)&&y(pe,1)})}l(G),D(()=>{R(Q,"aria-label",s()?"Stop dictating":a()),R(Q,"aria-pressed",s()),R(Q,"title",s()?"Stop dictating · Esc cancels":`${a()} (${t(N)}; hold for push-to-talk)`),Q.disabled=o(),R(Q,"data-dictating",s()?"":void 0),Le(Q,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${r()==="md"?"size-9 max-md:size-11":`size-7 ${nt.current?"touch-target":""}`} ${s()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),O(xe,s()?"Listening":"")}),L("mousedown",Q,y=>y.preventDefault()),L("click",Q,K),p(n,G),Ke()}lt(["mousedown","click"]);var Ar=new Set(["$$slots","$$events","$$legacy","value","class"]),Lr=f('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function Rr(n,e){Fe(e,!0);let a=W(e,"value",15),r=me(e,Ar),o=M(null),s=M(!1);var i=Lr(),d=c(i);{let P=_(()=>Rt(e.class,t(s)?"pr-24":"pr-10"));vr(d,_e({get class(){return t(P)}},()=>r,{get ref(){return t(o)},set ref(N){b(o,N,!0)},get value(){return a()},set value(N){a(N)}}))}var h=u(d,2),g=c(h);{let P=_(()=>!!e.disabled);Pr(g,{get field(){return t(o)},target:()=>zr(t(o)),size:"sm",get disabled(){return t(P)},get listening(){return t(s)},set listening(N){b(s,N,!0)}})}l(h),l(i),p(n,i),Ke()}var Or=f('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),Nr=f('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),Hr=f('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),qr=f('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),Ir=f('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),jr=f('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),Wr=f('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),Fr=f('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),Kr=f('<li class="text-sm text-danger" role="alert"> </li>'),Ur=f('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),Br=f('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Yr=f('<p class="text-xs text-muted-foreground"> </p>'),Gr=f('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),Jr=f('<ol class="flex flex-col gap-1.5"></ol>'),Vr=f('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),Xr=f('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),Qr=f(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
|
|
Binary file
|
|
Binary file
|