@chrisjowen/wheelhouse 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css +1 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.br +0 -0
- package/build/client/_app/immutable/assets/0.CxNAeXUL.css.gz +0 -0
- package/build/client/_app/immutable/assets/{DocSheet.CaO2v_qh.css → DocSheet.CgzYidp-.css} +1 -1
- package/build/client/_app/immutable/assets/{DocSheet.CaO2v_qh.css.br → DocSheet.CgzYidp-.css.br} +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CgzYidp-.css.gz +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-italic.DUE6_iCb.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-ext-wght-normal.BOFOeGcA.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-wght-italic.Cz4n9dED.woff2 +0 -0
- package/build/client/_app/immutable/assets/dm-sans-latin-wght-normal.Xz1IZZA0.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.DKMiL14s.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-italic.u__WvvIK.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.BVbkICAY.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-400-normal.DnYpCC2O.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.C9HzH3YL.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-italic.D7-lnxEk.woff +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.C2je3j2s.woff2 +0 -0
- package/build/client/_app/immutable/assets/instrument-serif-latin-ext-400-normal.CFCUzsTy.woff +0 -0
- package/build/client/_app/immutable/chunks/{DXt4vIK0.js → B2ctrXx5.js} +1 -1
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.br +0 -0
- package/build/client/_app/immutable/chunks/B2ctrXx5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D5M74L1e.js → BBLx2oxZ.js} +2 -2
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BBLx2oxZ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8WOVm7DO.js → BHVTrNhR.js} +1 -1
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.br +0 -0
- package/build/client/_app/immutable/chunks/BHVTrNhR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Byamhp7O.js → Bl1tMgf8.js} +1 -1
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bl1tMgf8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{8xWr9jxY.js → Cbmz3nkf.js} +1 -1
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.br +2 -0
- package/build/client/_app/immutable/chunks/Cbmz3nkf.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C6yJKLJE.js → Cio5-ROX.js} +1 -1
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cio5-ROX.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BqqZcEbm.js → DQEmyAe4.js} +1 -1
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.br +2 -0
- package/build/client/_app/immutable/chunks/DQEmyAe4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DB2Frr3y.js → DdB79emW.js} +1 -1
- package/build/client/_app/immutable/chunks/DdB79emW.js.br +0 -0
- package/build/client/_app/immutable/chunks/DdB79emW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BW_FwdyU.js → Dj3Af0xC.js} +1 -1
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dj3Af0xC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D_nVtLM5.js → DpSftVJo.js} +1 -1
- package/build/client/_app/immutable/chunks/DpSftVJo.js.br +0 -0
- package/build/client/_app/immutable/chunks/DpSftVJo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{IQRNVWsw.js → M3zsQDnS.js} +1 -1
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.br +0 -0
- package/build/client/_app/immutable/chunks/M3zsQDnS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{OermLIIb.js → QzT8bZ-S.js} +2 -2
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.br +0 -0
- package/build/client/_app/immutable/chunks/QzT8bZ-S.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DHMHvrUA.js → Y3i_x_Ja.js} +1 -1
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y3i_x_Ja.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js +6 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.br +0 -0
- package/build/client/_app/immutable/chunks/dKB0cWc2.js.gz +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js +6 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.br +0 -0
- package/build/client/_app/immutable/chunks/dPAGVN7v.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BunvDGPC.js → dxi_erj0.js} +1 -1
- package/build/client/_app/immutable/chunks/dxi_erj0.js.br +0 -0
- package/build/client/_app/immutable/chunks/dxi_erj0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js +5 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.br +0 -0
- package/build/client/_app/immutable/chunks/ohZIF1HO.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.CL8a8HZ0.js → app.BLMRuJuW.js} +2 -2
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.br +0 -0
- package/build/client/_app/immutable/entry/app.BLMRuJuW.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js +1 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.br +0 -0
- package/build/client/_app/immutable/entry/start.C5t0JfpX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js +8 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.x0mKzYMw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BRLMR7fm.js → 1.DQwKSgDw.js} +1 -1
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.DQwKSgDw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Ctk2N--v.js → 10.Bmz2aEu9.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Bmz2aEu9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.DzDPmeKc.js → 11.Dsw17idi.js} +1 -1
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.Dsw17idi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.BUO7L3_c.js → 12.BCfbyZHF.js} +1 -1
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BCfbyZHF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.sQe1BX9E.js → 13.BF70RcBN.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BF70RcBN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.C6lWut9y.js → 14.DUa-e6bC.js} +1 -1
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DUa-e6bC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.B9dAe-zO.js → 16.DV4CIsXI.js} +1 -1
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.DV4CIsXI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.BjYq-nHX.js → 17.BFAervXe.js} +1 -1
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BFAervXe.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{18.C7MQG7kY.js → 18.cqwxGV--.js} +1 -1
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.cqwxGV--.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.CGPxCxa4.js → 19.W4wKGIwz.js} +3 -3
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.W4wKGIwz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js +27 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DNWuY54S.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.UmQnK0mP.js → 20.Bw-IUju8.js} +1 -1
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.Bw-IUju8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.kMxNjh5n.js → 21.DNFvLLcD.js} +1 -1
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DNFvLLcD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.HvyFWmuR.js → 3.COF537Bh.js} +1 -1
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.COF537Bh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.cOsP7AQT.js → 4.C69OFBsR.js} +1 -1
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.C69OFBsR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{5.WTA0USqX.js → 5.BAZlH_fP.js} +1 -1
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.BAZlH_fP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.DVgxxTkD.js → 6.BsosOtvd.js} +1 -1
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BsosOtvd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.Djk2ljG8.js → 7.DnZ-8ovs.js} +1 -1
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DnZ-8ovs.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.C0za5N1P.js → 9.BzSWG3R8.js} +1 -1
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BzSWG3R8.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/{DecisionCard.js-CXR2Tqq9.js → DecisionCard.js-DaA8DYYg.js} +2 -2
- package/build/server/chunks/chunks/{OpenDecision.js-ogSBclda.js → OpenDecision.js-CYba2eq3.js} +24 -6
- package/build/server/chunks/chunks/{TaskOverview.js-BLbSjSGh.js → TaskOverview.js-sfLDib9-.js} +3 -3
- package/build/server/chunks/chunks/{topics.js-CPoxwdi2.js → bridge.js-Cm-aK0Fl.js} +44 -2
- package/build/server/chunks/chunks/{detail.js-DmSONkJE.js → detail.js-B8abhi3a.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-yXFmBh67.js → feedback.js-Jpl8v6Mu.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-wAeB3IT1.js → internal.js-bN02E8b0.js} +3 -3
- package/build/server/chunks/chunks/{previewhelper2.js-DH3wSLnQ.js → previewhelper2.js-Fr7JXr0X.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-CeNEGGXM.js → repo.js-D4m77kW0.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-CpuENBbt.js → runtime.js-BGOuM-Hy.js} +2 -2
- package/build/server/chunks/chunks/{service.js-CxgO_lGX.js → service.js-CzSbBjc3.js} +2 -2
- package/build/server/chunks/chunks/{view.js-I8j3JaZ5.js → view.js-CeInAMHW.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-tV5UVoX_.js → _server.ts.js-smS4TCrQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-Bqe7aUbi.js → _server.ts.js-Bqh9AFl3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-DfpyY_Bq.js → _server.ts.js-BM0ps5lk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CN8b5ccO.js → _server.ts.js-Cm2ckYW2.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-CqcpAXMO.js → _server.ts.js-DZCnbYId.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-BMv_VOat.js → _server.ts.js-B5fpHEKR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-DX45ccQL.js → _server.ts.js-eq3GdIy6.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DPfYkpxV.js → _server.ts.js-CvXW4Pgj.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-DwrpzrvE.js → _server.ts.js-Ck9lsiPW.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-BLyU7Xmy.js → _server.ts.js-S2cNDAv_.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CwCkNQH1.js → _server.ts.js-Dp5sUKpf.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-QgfVKhEv.js → _server.ts.js-BRyx-SLk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-Dluitk4S.js → _server.ts.js-DbOj2r3G.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-DBrzK7aF.js → _server.ts.js-CqNT7hdk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BPOs6Ua5.js → _server.ts.js-s9ct1YaL.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-CXR8ln41.js → _server.ts.js-CCbenPIy.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-fMts5LEq.js → _server.ts.js-YkdQuW03.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-CgoR3ZaT.js → _server.ts.js-jMIRKXVy.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-DN0zHwSr.js → _server.ts.js-CRz5ap0Z.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-DawD1VtO.js → _server.ts.js-BUreXPtQ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-C8jp0FUx.js → _server.ts.js-aLsUJ-HL.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-jSPhFhMn.js → _server.ts.js-BQxGrtDq.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-CDslqmcw.js → _server.ts.js-DVwdrfyP.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BJawocE3.js → _server.ts.js-fWXa1T6O.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-Be2NAmCy.js → _server.ts.js-GzkA-eH4.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-C-avUWCg.js → _server.ts.js-Du31g-KO.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DKAa2Uxw.js → _server.ts.js-CQYj1ZuS.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-CotqjP2F.js → _server.ts.js-D6Nprf6i.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-DCvVjqLZ.js → _server.ts.js-DjQvcvOx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-CpZ1W-A7.js → _server.ts.js-DcwsTmlB.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-Cp8plIYs.js → _server.ts.js-CGPbXNqf.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-Dak56Rg1.js → _server.ts.js-CawLRyKI.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-WZe9B5X3.js → _server.ts.js-Cl8Xr77g.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-U5nJ9f0g.js → _server.ts.js-B3vEVTxZ.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-30yUhJz3.js → _server.ts.js-iToq6YEa.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-tg4vTM3A.js → _server.ts.js-CwWCiOV_.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-BsJnf3m0.js → _server.ts.js-DW8K_vnR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-D-Wnq4C0.js → _server.ts.js-jQeee3c3.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-De9Q8wd8.js → _server.ts.js-DjmH3APN.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-BqscYuWP.js → _server.ts.js-BKBTwHdx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-Do8o7_-0.js → _server.ts.js-Dps2HZrT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-gaLKbuL7.js → _server.ts.js-CLrEK2JB.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-wcXCXMkT.js → _server.ts.js-Dajmg1QT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-kzTN6YxA.js → _server.ts.js-DzbKvWf4.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DJiB_mf7.js → _server.ts.js-lrCSZ8vJ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BjJU6JWj.js → _server.ts.js--J2luqpT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-l3foNNok.js → _server.ts.js-D6jJ1Rr_.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-DsxJ0us4.js → _server.ts.js-DFiNNdmX.js} +2 -2
- package/build/server/chunks/entries/{hooks.server.js-B6m3Dpkx.js → hooks.server.js-BbTmH2JU.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-CrW4p_Q2.js → _layout.server.ts.js-DTaBhixQ.js} +2 -2
- package/build/server/chunks/entries/pages/{_layout.svelte.js-LKAACh49.js → _layout.svelte.js-BNA76gGJ.js} +100 -24
- package/build/server/chunks/entries/pages/{_page.server.ts.js-CF_c0nNn.js → _page.server.ts.js-BjKksIBz.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-DhcYaGNL.js → _page.svelte.js-Bgw0FiJG.js} +112 -82
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-B7uZVbX4.js → _page.server.ts.js-Cr6eZ4p-.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-C9YB1gJL.js → _page.server.ts.js-CA3bfaLe.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BfPMxhei.js → _page.server.ts.js-CGhoI6xu.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-D1wZDsVf.js → _page.server.ts.js-BRadjeWP.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-woHdHibC.js → _page.server.ts.js-CB7PXBV1.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-BffukCNo.js → _page.svelte.js-BLRcCY5u.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-XcXW0Uve.js → _page.server.ts.js-C9J9SfdQ.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-wLr_tgjL.js → _page.server.ts.js-nOOV1sAH.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-DMOW6iPG.js → _page.server.ts.js-BpSFvmgx.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-BJZyFsqL.js → _page.server.ts.js-08qgrWt_.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-DB_UVBbI.js → _page.server.ts.js-Waknjiof.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DfWW-CQh.js → _page.server.ts.js-D_-2Bk-X.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CshPvaAs.js → _page.server.ts.js-Hls8GEh4.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-9JK7K_z9.js → _page.server.ts.js-jKmK8VbO.js} +2 -2
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-Cvp9xMG4.js → _page.server.ts.js-BZMRfS-l.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-ChQv02MF.js → _page.svelte.js-BYcqWFD7.js} +8 -8
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-C1DtiAVs.js → _page.server.ts.js-CGiroJqZ.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DlJqn5ve.js → _page.server.ts.js-exp39MHH.js} +2 -2
- package/build/server/chunks/{handler-Bs_CCC30.js → handler-CwbFN6sE.js} +3 -3
- package/build/server/chunks/{index.js-Cs5HOQvf.js → index.js-CqvbtJcl.js} +2 -2
- package/build/server/chunks/{manifest.js-BDRywlKi.js → manifest.js-DBKpxwtf.js} +70 -70
- package/build/server/chunks/nodes/{0.js-CsWq-jPD.js → 0.js-CzHBL2FE.js} +7 -7
- package/build/server/chunks/nodes/{1.js-CTC_MshV.js → 1.js-DttsMtH5.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CZq28G3f.js → 10.js-DS6-8M5v.js} +5 -5
- package/build/server/chunks/nodes/{11.js-BtlSUZdl.js → 11.js-UkJPwg90.js} +5 -5
- package/build/server/chunks/nodes/{12.js-D0o_nkGH.js → 12.js-Bttwc2Gj.js} +6 -6
- package/build/server/chunks/nodes/{13.js-BIIG5wG0.js → 13.js-DN0IvWCs.js} +5 -5
- package/build/server/chunks/nodes/{14.js-B3MoJ0Ck.js → 14.js-BPrf4PxP.js} +2 -2
- package/build/server/chunks/nodes/{16.js-DL5dm8m7.js → 16.js-MQWaFHIA.js} +4 -4
- package/build/server/chunks/nodes/{17.js-BItMe09V.js → 17.js-BqQwHV4F.js} +4 -4
- package/build/server/chunks/nodes/{18.js-BqNFJ6VI.js → 18.js-CpKFgiup.js} +4 -4
- package/build/server/chunks/nodes/{19.js-DWlhtpN2.js → 19.js-CCrOg127.js} +6 -6
- package/build/server/chunks/nodes/{2.js-Biys3XVB.js → 2.js-FPoIQ4QE.js} +5 -5
- package/build/server/chunks/nodes/{20.js-tYMJBMgr.js → 20.js-B5Fv-_hl.js} +6 -6
- package/build/server/chunks/nodes/{21.js-DB94vZQt.js → 21.js-DIqkKAtP.js} +4 -4
- package/build/server/chunks/nodes/{3.js-CsnKNLDN.js → 3.js-BBLaot9F.js} +4 -4
- package/build/server/chunks/nodes/{4.js-l8re1d64.js → 4.js-cmSXc6Wt.js} +5 -5
- package/build/server/chunks/nodes/{5.js-B0eRP6zR.js → 5.js-CxQRjV9G.js} +4 -4
- package/build/server/chunks/nodes/{6.js-BWv2xVyz.js → 6.js-4fNyzqc9.js} +4 -4
- package/build/server/chunks/nodes/{7.js-C4YSw2xL.js → 7.js-D_kCF7ql.js} +5 -5
- package/build/server/chunks/nodes/{9.js-CWW789qH.js → 9.js-Dl3MVT1-.js} +4 -4
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +3 -2
- package/build/client/_app/immutable/assets/0.BUKP25sU.css +0 -1
- package/build/client/_app/immutable/assets/0.BUKP25sU.css.br +0 -0
- package/build/client/_app/immutable/assets/0.BUKP25sU.css.gz +0 -0
- package/build/client/_app/immutable/assets/DocSheet.CaO2v_qh.css.gz +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-italic.B5xAaiFk.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-italic.DzZdc28x.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-italic.DcOpz6Lw.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-italic.CILZdfAp.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-italic.0pjOp8NU.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-italic.DpCbqKDY.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-italic.K3WlGtc8.woff2 +0 -0
- package/build/client/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
- package/build/client/_app/immutable/chunks/8WOVm7DO.js.br +0 -0
- package/build/client/_app/immutable/chunks/8WOVm7DO.js.gz +0 -0
- package/build/client/_app/immutable/chunks/8xWr9jxY.js.br +0 -0
- package/build/client/_app/immutable/chunks/8xWr9jxY.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BW_FwdyU.js.br +0 -0
- package/build/client/_app/immutable/chunks/BW_FwdyU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXk5dy03.js +0 -5
- package/build/client/_app/immutable/chunks/BXk5dy03.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXk5dy03.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BqqZcEbm.js.br +0 -2
- package/build/client/_app/immutable/chunks/BqqZcEbm.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BunvDGPC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BunvDGPC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Byamhp7O.js.br +0 -0
- package/build/client/_app/immutable/chunks/Byamhp7O.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C6yJKLJE.js.br +0 -0
- package/build/client/_app/immutable/chunks/C6yJKLJE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js +0 -6
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js.br +0 -0
- package/build/client/_app/immutable/chunks/CMFVi0Kq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D5M74L1e.js.br +0 -0
- package/build/client/_app/immutable/chunks/D5M74L1e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DB2Frr3y.js.br +0 -0
- package/build/client/_app/immutable/chunks/DB2Frr3y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DHMHvrUA.js.br +0 -0
- package/build/client/_app/immutable/chunks/DHMHvrUA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DXt4vIK0.js.br +0 -0
- package/build/client/_app/immutable/chunks/DXt4vIK0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D_nVtLM5.js.br +0 -0
- package/build/client/_app/immutable/chunks/D_nVtLM5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/IQRNVWsw.js.br +0 -0
- package/build/client/_app/immutable/chunks/IQRNVWsw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/KWgz7qtz.js +0 -6
- package/build/client/_app/immutable/chunks/KWgz7qtz.js.br +0 -0
- package/build/client/_app/immutable/chunks/KWgz7qtz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/OermLIIb.js.br +0 -0
- package/build/client/_app/immutable/chunks/OermLIIb.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CL8a8HZ0.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js +0 -1
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.br +0 -0
- package/build/client/_app/immutable/entry/start.DY5Zh3I7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js +0 -8
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.Bmtc68EX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BRLMR7fm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Ctk2N--v.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.DzDPmeKc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.BUO7L3_c.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.sQe1BX9E.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.C6lWut9y.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.C6lWut9y.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.B9dAe-zO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BjYq-nHX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.br +0 -0
- package/build/client/_app/immutable/nodes/18.C7MQG7kY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.CGPxCxa4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js +0 -27
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DSEV6dyX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.UmQnK0mP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.kMxNjh5n.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.HvyFWmuR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.cOsP7AQT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/5.WTA0USqX.js.br +0 -0
- package/build/client/_app/immutable/nodes/5.WTA0USqX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.DVgxxTkD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Djk2ljG8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.C0za5N1P.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.C0za5N1P.js.gz +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js → Bxza7kFR.js} +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js.br → Bxza7kFR.js.br} +0 -0
- /package/build/client/_app/immutable/chunks/{BsFN-acf.js.gz → Bxza7kFR.js.gz} +0 -0
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import{q as nn,H as on,I as rn,ab as sn,bz as an,h as A,g,bD as ln,u as rt,p as lt,j as K,f as V,a7 as tt,a as L,b as ct,l as N,m as It,v as C,s as cn,c as re,bE as Pt,bA as Ne,i as At,r as Ct}from"./BOY9WARo.js";import"./DsnmJJEf.js";import{s as et,r as Q,p as x,i as gt}from"./DnDesMxN.js";import{I as zt}from"./BbU5AsRD.js";import{s as j}from"./TcIaLKEO.js";import{g as St}from"./BRuDnHyc.js";import{l as un,C as Vt,s as it,p as dn,d as E,a as Et,u as He,q as fn,r as hn,t as gn,w as Ft,v as pn,m as yt,F as mn,j as ve,i as wn,D as vn,T as yn,x as xn,y as ht,P as ye,z as bn,A as Bt,E as On,S as Pn,e as Le,b as An,B as Cn,g as Sn,f as En,h as Re,n as vt}from"./DybGBkO1.js";import{o as Fn}from"./Blj84s6L.js";function Or(e,t,n){nn(()=>{var o=on(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};rn(()=>{var s=n();sn(s),r&&an(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var Dn=new Set(["$$slots","$$events","$$legacy"]);function Pr(e,t){let n=Q(t,Dn);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"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var Tn=new Set(["$$slots","$$events","$$legacy"]);function Ar(e,t){let n=Q(t,Tn);const o={name:"gauge",size:24,node:[["path",{d:"m12 14 4-4"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var Mn=new Set(["$$slots","$$events","$$legacy"]);function Cr(e,t){let n=Q(t,Mn);const o={name:"puzzle",size:24,node:[["path",{d:"M15.39 4.39a1 1 0 0 0 1.68-.474 2.5 2.5 0 1 1 3.014 3.015 1 1 0 0 0-.474 1.68l1.683 1.682a2.414 2.414 0 0 1 0 3.414L19.61 15.39a1 1 0 0 1-1.68-.474 2.5 2.5 0 1 0-3.014 3.015 1 1 0 0 1 .474 1.68l-1.683 1.682a2.414 2.414 0 0 1-3.414 0L8.61 19.61a1 1 0 0 0-1.68.474 2.5 2.5 0 1 1-3.014-3.015 1 1 0 0 0 .474-1.68l-1.683-1.682a2.414 2.414 0 0 1 0-3.414L4.39 8.61a1 1 0 0 1 1.68.474 2.5 2.5 0 1 0 3.014-3.015 1 1 0 0 1-.474-1.68l1.683-1.682a2.414 2.414 0 0 1 3.414 0z"}]]};zt(e,et(()=>n,{get icon(){return o}}))}var In=new Set(["$$slots","$$events","$$legacy"]);function Sr(e,t){let n=Q(t,In);const o={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34"}],["circle",{cx:"11",cy:"11",r:"8"}]]};zt(e,et(()=>n,{get icon(){return o}}))}function _n(e){return typeof e=="function"}function xe(e){return _n(e)?e():e}class Bn{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(g(this.#n)?.(),this.getSize().width));#a=A(()=>(g(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=xe(this.#r);if(t)return ln(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,u)=>Math.max(l,u.inlineSize),0),this.#t.height=a.reduce((l,u)=>Math.max(l,u.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??un,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=xe(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),u=n-i-a,f=o-s-l;return{width:u,height:f}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return g(this.#n)?.(),this.getSize()}get width(){return g(this.#s)}get height(){return g(this.#a)}}const ie=new Vt("Floating.Root"),se=new Vt("Floating.Root");class kt{static create(t=!1){return t?se.set(new kt):ie.set(new kt)}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 Wt{static create(t,n=!1){return n?new Wt(t,se.get()):new Wt(t,ie.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 kn(e,t){lt(t,!0);let n=x(t,"tooltip",3,!1);kt.create(n());var o=K(),r=V(o);j(r,()=>t.children??tt),L(e,o),ct()}function dt(e){return typeof e=="function"?e():e}function ze(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function be(e,t){const n=ze(e);return Math.round(t*n)/n}function Oe(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 Wn(e,t){lt(t,!0);let n=x(t,"tooltip",3,!1);Wt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=K(),r=V(o);j(r,()=>t.children??tt),L(e,o),ct()}const Nn=["top","right","bottom","left"],st=Math.min,J=Math.max,Nt=Math.round,Mt=Math.floor,$=e=>({x:e,y:e}),Hn={left:"right",right:"left",bottom:"top",top:"bottom"};function Ve(e,t,n){return J(e,st(t,n))}function nt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function bt(e){return e.split("-")[1]}function ae(e){return e==="x"?"y":"x"}function le(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function ce(e){return ae(q(e))}function Ln(e,t,n){n===void 0&&(n=!1);const o=bt(e),r=ce(e),i=le(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Ht(s)),[s,Ht(s)]}function Rn(e){const t=Ht(e);return[te(e),t,te(t)]}function te(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Pe=["left","right"],Ae=["right","left"],zn=["top","bottom"],Vn=["bottom","top"];function Kn(e,t,n){switch(e){case"top":case"bottom":return n?t?Ae:Pe:t?Pe:Ae;case"left":case"right":return t?zn:Vn;default:return[]}}function Xn(e,t,n,o){const r=bt(e);let i=Kn(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(te)))),i}function Ht(e){const t=at(e);return Hn[t]+e.slice(t.length)}function Yn(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 Ke(e){return typeof e!="number"?Yn(e):{top:e,right:e,bottom:e,left:e}}function Lt(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 Ce(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=ce(t),a=le(s),l=at(t),u=i==="y",f=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:f,y:o.y-r.height};break;case"bottom":c={x:f,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 p=bt(t);return p&&(c[s]+=d*(p==="end"?1:-1)*(n&&u?-1:1)),c}async function jn(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=nt(t,e),p=Ke(c),b=a[d?h==="floating"?"reference":"floating":h],w=Lt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,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)),O=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Lt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+p.top)/O.y,bottom:(S.bottom-w.bottom+p.bottom)/O.y,left:(w.left-S.left+p.left)/O.x,right:(S.right-w.right+p.right)/O.x}}const Un=50,qn=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:jn},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:f,y:h}=Ce(u,o,l),d=o,c=0;const p={};for(let m=0;m<i.length;m++){const b=i[m];if(!b)continue;const{name:w,fn:v}=b,{x:P,y:O,data:S,reset:y}=await v({x:f,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:p,rects:u,platform:a,elements:{reference:e,floating:t}});f=P??f,h=O??h,p[w]={...p[w],...S},y&&c<Un&&(c++,typeof y=="object"&&(y.placement&&(d=y.placement),y.rects&&(u=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):y.rects),{x:f,y:h}=Ce(u,d,l)),m=-1)}return{x:f,y:h,placement:d,strategy:r,middlewareData:p}},Zn=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:u,padding:f=0}=nt(e,t)||{};if(u==null)return{};const h=Ke(f),d={x:n,y:o},c=ce(r),p=le(c),m=await s.getDimensions(u),b=c==="y",w=b?"top":"left",v=b?"bottom":"right",P=b?"clientHeight":"clientWidth",O=i.reference[p]+i.reference[c]-d[c]-i.floating[p],S=d[c]-i.reference[c],y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let D=y?y[P]:0;(!D||!await(s.isElement==null?void 0:s.isElement(y)))&&(D=a.floating[P]||i.floating[p]);const I=O/2-S/2,k=D/2-m[p]/2-1,M=st(h[w],k),H=st(h[v],k),R=D-m[p]-H,W=D/2-m[p]/2+I,T=Ve(M,W,R),X=!l.arrow&&bt(r)!=null&&W!==T&&i.reference[p]/2-(W<M?M:H)-m[p]/2<0,z=X?W<M?W-M:W-R:0;return{[c]:d[c]+z,data:{[c]:T,centerOffset:W-T-z,...X&&{alignmentOffset:z}},reset:X}}}),Gn=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:u}=t,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...b}=nt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,O=await(l.isRTL==null?void 0:l.isRTL(u.floating)),S=d||(P||!m?[Ht(a)]:Rn(a)),y=p!=="none";!d&&y&&S.push(...Xn(a,m,p,O));const D=[a,...S],I=await l.detectOverflow(t,b),k=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&k.push(I[w]),h){const T=Ln(r,s,O);k.push(I[T[0]],I[T[1]])}if(M=[...M,{placement:r,overflows:k}],!k.every(T=>T<=0)){var H,R;const T=(((H=i.flip)==null?void 0:H.index)||0)+1,X=D[T];if(X&&(!(h==="alignment"?v!==q(X):!1)||M.every(F=>q(F.placement)===v?F.overflows[0]>0:!0)))return{data:{index:T,overflows:M},reset:{placement:X}};let z=(R=M.filter(_=>_.overflows[0]<=0).sort((_,F)=>_.overflows[1]-F.overflows[1])[0])==null?void 0:R.placement;if(!z)switch(c){case"bestFit":{var W;const _=(W=M.filter(F=>{if(y){const B=q(F.placement);return B===v||B==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(B=>B>0).reduce((B,U)=>B+U,0)]).sort((F,B)=>F[1]-B[1])[0])==null?void 0:W[0];_&&(z=_);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Se(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ee(e){return Nn.some(t=>e[t]>=0)}const Qn=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=nt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Se(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ee(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Se(s,n.floating);return{data:{escapedOffsets:a,escaped:Ee(a)}}}default:return{}}}}},Xe=new Set(["left","top"]);async function Jn(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=bt(n),l=q(n)==="y",u=Xe.has(s)?-1:1,f=i&&l?-1:1,h=nt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:p}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof p=="number"&&(c=a==="end"?p*-1:p),l?{x:c*f,y:d*u}:{x:d*u,y:c*f}}const $n=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 Jn(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}}}}},to=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:O}=v;return{x:P,y:O}}},...u}=nt(e,t),f={x:n,y:o},h=await i.detectOverflow(t,u),d=q(r),c=ae(d);let p=f[c],m=f[d];const b=(v,P)=>Ve(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(p=b(c,p)),a&&(m=b(d,m));const w=l.fn({...t,[c]:p,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},eo=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:u=0,mainAxis:f=!0,crossAxis:h=!0}=nt(e,t),d={x:r,y:i},c=q(s),p=ae(c);let m=d[p],b=d[c];const w=nt(u,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(f){const S=p==="y"?"height":"width",y=a.reference[p]-a.floating[S]+v.mainAxis,D=a.reference[p]+a.reference[S]-v.mainAxis;m<y?m=y:m>D&&(m=D)}if(h){var P,O;const S=p==="y"?"width":"height",y=Xe.has(at(s)),D=a.reference[c]-a.floating[S]+(y&&((P=l.offset)==null?void 0:P[c])||0)+(y?0:v.crossAxis),I=a.reference[c]+a.reference[S]+(y?0:((O=l.offset)==null?void 0:O[c])||0)-(y?v.crossAxis:0);b<D?b=D:b>I&&(b=I)}return{[p]:m,[c]:b}}}},no=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}=nt(e,t),l=await r.detectOverflow(t,a),u=at(n),f=bt(n),h=q(n)==="y",{width:d,height:c}=o.floating;let p,m;u==="top"||u==="bottom"?(p=u,m=f===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=u,p=f==="end"?"top":"bottom");const b=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[p],b),P=st(d-l[m],w),O=t.middlewareData.shift,S=!O;let y=v,D=P;O!=null&&O.enabled.x&&(D=w),O!=null&&O.enabled.y&&(y=b),S&&!f&&(h?D=d-2*J(l.left,l.right):y=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:D,availableHeight:y});const I=await r.getDimensions(i.floating);return d!==I.width||c!==I.height?{reset:{rects:!0}}:{}}}};function Kt(){return typeof window<"u"}function Ot(e){return Ye(e)?(e.nodeName||"").toLowerCase():"#document"}function Y(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Ye(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ye(e){return Kt()?e instanceof Node||e instanceof Y(e).Node:!1}function Z(e){return Kt()?e instanceof Element||e instanceof Y(e).Element:!1}function ut(e){return Kt()?e instanceof HTMLElement||e instanceof Y(e).HTMLElement:!1}function Fe(e){return!Kt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Y(e).ShadowRoot}function Xt(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 oo(e){return/^(table|td|th)$/.test(Ot(e))}function Yt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const ro=/transform|translate|scale|rotate|perspective|filter/,io=/paint|layout|strict|content/,ft=e=>!!e&&e!=="none";let qt;function ue(e){const t=Z(e)?G(e):e;return ft(t.transform)||ft(t.translate)||ft(t.scale)||ft(t.rotate)||ft(t.perspective)||!de()&&(ft(t.backdropFilter)||ft(t.filter))||ro.test(t.willChange||"")||io.test(t.contain||"")}function so(e){let t=pt(e);for(;ut(t)&&!Dt(t);){if(ue(t))return t;if(Yt(t))return null;t=pt(t)}return null}function de(){return qt==null&&(qt=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),qt}function Dt(e){return/^(html|body|#document)$/.test(Ot(e))}function G(e){return Y(e).getComputedStyle(e)}function jt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ot(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Fe(e)&&e.host||ot(e);return Fe(t)?t.host:t}function je(e){const t=pt(e);return Dt(t)?(e.ownerDocument||e).body:ut(t)&&Xt(t)?t:je(t)}function Tt(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=je(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=Y(r);if(i){const a=ee(s);return t.concat(s,s.visualViewport||[],Xt(r)?r:[],a&&n?Tt(a):[])}else return t.concat(r,Tt(r,[],n))}function ee(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ue(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=ut(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=Nt(n)!==i||Nt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function fe(e){return Z(e)?e:e.contextElement}function xt(e){const t=fe(e);if(!ut(t))return $(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Ue(t);let s=(i?Nt(n.width):n.width)/o,a=(i?Nt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const ao=$(0);function qe(e){const t=Y(e);return!de()||!t.visualViewport?ao:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Y(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=fe(e);let s=$(1);t&&(o?Z(o)&&(s=xt(o)):s=xt(e));const a=lo(i,n,o)?qe(i):$(0);let l=(r.left+a.x)/s.x,u=(r.top+a.y)/s.y,f=r.width/s.x,h=r.height/s.y;if(i&&o){const d=Y(i),c=Z(o)?Y(o):o;let p=d,m=ee(p);for(;m&&c!==p;){const b=xt(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*b.x,O=w.top+(m.clientTop+parseFloat(v.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,h*=b.y,l+=P,u+=O,p=Y(m),m=ee(p)}}return Lt({width:f,height:h,x:l,y:u})}function Ut(e,t){const n=jt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function Ze(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Ut(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function co(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?Yt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=$(1);const f=$(0),h=ut(o);if((h||!i)&&((Ot(o)!=="body"||Xt(s))&&(l=jt(o)),h)){const c=mt(o);u=xt(o),f.x=c.x+o.clientLeft,f.y=c.y+o.clientTop}const d=s&&!h&&!i?Ze(s,l):$(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+d.x,y:n.y*u.y-l.scrollTop*u.y+f.y+d.y}}function uo(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function fo(e){const t=jt(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+Ut(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 ho=25;function go(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=Y(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,u=0,f=0;if(s){const d=!de()||t==="fixed";o?d||(u=-s.offsetLeft,f=-s.offsetTop):(a=s.width,l=s.height,d&&(u=s.offsetLeft,f=s.offsetTop))}if(Ut(i)<=0){const d=i.ownerDocument,c=d.body,p=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,b=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?b/2:b;w<=ho&&(a-=w)}return{width:a,height:l,x:u,y:f}}function po(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=xt(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,u=o*i.y;return{width:s,height:a,x:l,y:u}}function De(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=go(e,n,t);else if(t==="document")o=fo(ot(e));else if(Z(t))o=po(t,n);else{const r=qe(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lt(o)}function mo(e,t){const n=t.get(e);if(n)return n;let o=Tt(e,[],!1).filter(a=>Z(a)&&Ot(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Dt(s);){const a=G(s),l=ue(s),u=r?r.position:i?"fixed":"";!l&&(u==="fixed"||u==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function wo(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?Yt(t)?[]:mo(t,this._c):[].concat(n),o],a=De(t,s[0],r);let l=a.top,u=a.right,f=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=De(t,s[d],r);l=J(c.top,l),u=st(c.right,u),f=st(c.bottom,f),h=J(c.left,h)}return{width:u-h,height:f-l,x:h,y:l}}function vo(e){const{width:t,height:n}=Ue(e);return{width:t,height:n}}function yo(e,t,n){const o=ut(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=$(0);if((o||!i)&&((Ot(t)!=="body"||Xt(r))&&(a=jt(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=Ut(r));const u=r&&!o&&!i?Ze(r,a):$(0),f=s.left+a.scrollLeft-l.x-u.x,h=s.top+a.scrollTop-l.y-u.y;return{x:f,y:h,width:s.width,height:s.height}}function Zt(e){return G(e).position==="static"}function Te(e,t){if(!ut(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 Ge(e,t){const n=Y(e);if(Yt(e))return n;if(!ut(e)){let r=pt(e);for(;r&&!Dt(r);){if(Z(r)&&!Zt(r))return r;r=pt(r)}return n}let o=Te(e,t);for(;o&&oo(o)&&Zt(o);)o=Te(o,t);return o&&Dt(o)&&Zt(o)&&!ue(o)?n:o||so(e)||n}const xo=async function(e){const t=this.getOffsetParent||Ge,n=this.getDimensions,o=await n(e.floating);return{reference:yo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function bo(e){return G(e).direction==="rtl"}const Oo={convertOffsetParentRelativeRectToViewportRelativeRect:co,getDocumentElement:ot,getClippingRect:wo,getOffsetParent:Ge,getElementRects:xo,getClientRects:uo,getDimensions:vo,getScale:xt,isElement:Z,isRTL:bo};function Qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Po(e,t,n){let o=null,r;const i=ot(e);function s(){var f;clearTimeout(r),(f=o)==null||f.disconnect(),o=null}function a(f,h){f===void 0&&(f=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:p,width:m,height:b}=d;if(f||t(),!m||!b)return;const w=Mt(p),v=Mt(i.clientWidth-(c+m)),P=Mt(i.clientHeight-(p+b)),O=Mt(c),y={rootMargin:-w+"px "+-v+"px "+-P+"px "+-O+"px",threshold:J(0,st(1,h))||1};let D=!0;function I(k){const M=k[0].intersectionRatio;if(!Qe(d,e.getBoundingClientRect()))return a();if(M!==h){if(!D)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}D=!1}try{o=new IntersectionObserver(I,{...y,root:i.ownerDocument})}catch{o=new IntersectionObserver(I,y)}o.observe(e)}const l=Y(e),u=()=>a(n);return l.addEventListener("resize",u),a(!0),()=>{l.removeEventListener("resize",u),s()}}function Ao(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,u=fe(e),f=r||i?[...u?Tt(u):[],...t?Tt(t):[]]:[];f.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=u&&a?Po(u,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===u&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),u&&!l&&c.observe(u),t&&c.observe(t));let p,m=l?mt(e):null;l&&b();function b(){const w=mt(e);m&&!Qe(m,w)&&n(),m=w,p=requestAnimationFrame(b)}return n(),()=>{var w;f.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(p)}}const Co=$n,So=to,Eo=Gn,Fo=no,Do=Qn,To=Zn,Mo=eo,Io=(e,t,n)=>{const o=new Map,r=n??{},i={...Oo,...r.platform,_c:o};return qn(e,t,{...r,platform:i})};function _o(e){const t=e.whileElementsMounted,n=A(()=>dt(e.open)??!0),o=A(()=>dt(e.middleware)),r=A(()=>dt(e.transform)??!0),i=A(()=>dt(e.placement)??"bottom"),s=A(()=>dt(e.strategy)??"absolute"),a=A(()=>dt(e.sideOffset)??0),l=A(()=>dt(e.alignOffset)??0),u=e.reference;let f=N(0),h=N(0);const d=it(null);let c=N(It(g(s))),p=N(It(g(i))),m=N(It({})),b=N(!1),w=!1,v=0,P=!1;const O=A(()=>{const H=d.current?be(d.current,g(f)):g(f),R=d.current?be(d.current,g(h)):g(h);return g(r)?{position:g(c),left:"0",top:"0",transform:`translate(${H}px, ${R}px)`,...d.current&&ze(d.current)>=1.5&&{willChange:"transform"}}:{position:g(c),left:`${H}px`,top:`${R}px`}});let S;function y(){if(P||u.current===null||d.current===null)return;const H=u.current,R=d.current,W=++v;Io(H,R,{middleware:g(o),placement:g(i),strategy:g(s)}).then(T=>{if(W!==v||u.current!==H||d.current!==R)return;if(Bo(H)){C(m,{...g(m),hide:{...g(m).hide,referenceHidden:!0}},!0);return}if(!g(n)&&g(f)!==0&&g(h)!==0){const z=Math.max(Math.abs(g(a)),Math.abs(g(l)),15);if(T.x<=z&&T.y<=z)return}C(f,T.x,!0),C(h,T.y,!0),C(c,T.strategy,!0),C(p,T.placement,!0),C(m,T.middlewareData,!0),C(b,!0)})}function D(){typeof S=="function"&&(S(),S=void 0),v++}function I(){if(D(),t===void 0){y();return}g(n)&&(u.current===null||d.current===null||(S=t(u.current,d.current,y)))}function k(){!g(n)&&d.current===null&&C(b,!1)}function M(){return[g(o),g(i),g(s),g(a),g(l),g(n)]}return rt(()=>{t===void 0&&g(n)&&y()}),rt(I),rt(()=>{if(t!==void 0){if(M(),!g(n)){w=!1;return}if(!g(b)){w=!1;return}if(!w){w=!0;return}y()}}),rt(k),rt(()=>()=>{P=!0,D()}),{floating:d,reference:u,get strategy(){return g(c)},get placement(){return g(p)},get middlewareData(){return g(m)},get isPositioned(){return g(b)},get floatingStyles(){return g(O)},get update(){return y}}}function Bo(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const ko={top:"bottom",right:"left",bottom:"top",left:"right"},ne=new Vt("Floating.Content");class Rt{static create(t,n=!1){return n?ne.set(new Rt(t,se.get())):ne.set(new Rt(t,ie.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Et(this.contentRef);wrapperAttachment=Et(this.wrapperRef);arrowAttachment=Et(this.arrowRef);arrowId=it(He());#t=A(()=>{if(typeof this.opts.style=="string")return fn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new Bn(()=>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(()=>g(this.#a).length>0);get hasExplicitBoundaries(){return g(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:g(this.#a).filter(hn),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return g(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(()=>[Co({mainAxis:this.opts.sideOffset.current+g(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&So({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?Mo():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Eo({...this.detectOverflowOptions}),Fo({...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&&To({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),Wo({arrowWidth:g(this.#r),arrowHeight:g(this.#e)}),this.opts.hideWhenDetached.current&&Do({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return g(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>No(this.floating.placement));get placedSide(){return g(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>Ho(this.floating.placement));get placedAlign(){return g(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return g(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return g(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return g(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return g(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>ko[this.placedSide]);get arrowBaseSide(){return g(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":`${g(this.#c)}px`,"--bits-floating-available-height":`${g(this.#d)}px`,"--bits-floating-anchor-width":`${g(this.#f)}px`,"--bits-floating-anchor-height":`${g(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...g(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return g(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:gn({...g(this.#t)}),...this.contentAttachment}));get props(){return g(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 g(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),Ft(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=_o({strategy:()=>this.opts.strategy.current,placement:()=>g(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>Ao(...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()}),Ft(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=pn(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 Je{static create(t){return new Je(t,ne.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 g(this.#t)}set props(t){C(this.#t,t)}}function Wo(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,[u,f]=he(n),h={start:"0%",center:"50%",end:"100%"}[f],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let p="",m="";return u==="bottom"?(p=s?h:`${d}px`,m=`${-l}px`):u==="top"?(p=s?h:`${d}px`,m=`${o.floating.height+l}px`):u==="right"?(p=`${-l}px`,m=s?h:`${c}px`):u==="left"&&(p=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:p,y:m}}}}}function he(e){const[t,n="center"]=e.split("-");return[t,n]}function No(e){return he(e)[0]}function Ho(e){return he(e)[1]}function Lo(e,t){lt(t,!0);let n=x(t,"side",3,"bottom"),o=x(t,"sideOffset",3,0),r=x(t,"align",3,"center"),i=x(t,"alignOffset",3,0),s=x(t,"arrowPadding",3,0),a=x(t,"avoidCollisions",3,!0),l=x(t,"collisionBoundary",19,()=>[]),u=x(t,"collisionPadding",3,0),f=x(t,"hideWhenDetached",3,!1),h=x(t,"onPlaced",3,()=>{}),d=x(t,"sticky",3,"partial"),c=x(t,"updatePositionStrategy",3,"optimized"),p=x(t,"strategy",3,"fixed"),m=x(t,"dir",3,"ltr"),b=x(t,"style",19,()=>({})),w=x(t,"wrapperId",19,He),v=x(t,"customAnchor",3,null),P=x(t,"tooltip",3,!1);const O=Rt.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(()=>u()),hideWhenDetached:E(()=>f()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>p()),dir:E(()=>m()),style:E(()=>b()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>yt(O.wrapperProps,{style:{pointerEvents:"auto"}}));var y=K(),D=V(y);j(D,()=>t.content??tt,()=>({props:O.props,wrapperProps:g(S)})),L(e,y),ct()}function Ro(e,t){lt(t,!0),Fn(()=>{t.onPlaced?.()});var n=K(),o=V(n);j(o,()=>t.content??tt,()=>({props:{},wrapperProps:{}})),L(e,n),ct()}var zo=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function Vo(e,t){let n=x(t,"isStatic",3,!1),o=Q(t,zo);var r=K(),i=V(r);{var s=l=>{Ro(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{Lo(l,et({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}L(e,r)}var Ko=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"]),Xo=re("<!> <!>",1);function $e(e,t){lt(t,!0);let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=x(t,"tooltip",3,!1),l=x(t,"contentPointerEvents",3,"auto"),u=Q(t,Ko);const f=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(g(f)?"fixed":"absolute"));Vo(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 g(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,p)=>{let m=()=>(p?.()).props,b=()=>(p?.()).wrapperProps;var w=Xo(),v=V(w);{var P=y=>{ve(y,{get preventScroll(){return g(f)}})},O=y=>{ve(y,{get preventScroll(){return g(f)}})};gt(v,y=>{t.forceMount&&t.enabled?y(P):t.forceMount||y(O,1)})}var S=cn(v,2);mn(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:(D,I)=>{let k=()=>(I?.()).props;wn(D,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,H)=>{vn(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:(W,T)=>{let X=()=>(T?.()).props;yn(W,{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,_)=>{var F=K(),B=V(F);{let U=A(()=>({props:yt(u,m(),X(),k(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:b()}));j(B,()=>t.popper??tt,()=>g(U))}L(z,F)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),L(c,w)},$$slots:{content:!0}}),ct()}var Yo=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 jo(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=Q(t,Yo);var l=K(),u=V(l);{var f=h=>{$e(h,et({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(u,h=>{t.shouldRender&&h(f)})}L(e,l)}var Uo=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 qo(e,t){let n=x(t,"interactOutsideBehavior",3,"close"),o=x(t,"trapFocus",3,!0),r=x(t,"isValidEvent",3,()=>!1),i=x(t,"customAnchor",3,null),s=x(t,"isStatic",3,!1),a=Q(t,Uo);$e(e,et({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 Gt(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,u]=t[s]??[0,0],[f,h]=t[a]??[0,0];u>=o!=h>=o&&n<=(f-l)*(o-u)/(h-u)+l&&(r=!r)}return r}function Qt(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Me(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 Zo{#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,Ft([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=xn(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 p=this.#t.ignoredTargets?.()??[];ht(c)&&p.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&p.length>0?p.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},u=()=>{this.#u()},f=()=>{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[Pt(s,"pointermove",a),Pt(o,"pointerleave",l),Pt(o,"pointerenter",u),Pt(r,"pointerenter",f),Pt(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"&&Qt(t,i)){this.#u();return}if(this.#e==="trigger"&&Qt(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const f of this.#s){const h=f.getBoundingClientRect();if(Qt(t,h))return;const d=Me(r,h),c=this.#h(r,h,d);if(c&&Gt(t,c))return}const s=Me(r,i),a=this.#h(r,i,s);if(a&&Gt(t,a))return;const l=this.#e==="content"?i:r,u=this.#m(this.#r,l,s,this.#e);Gt(t,u)||(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 oe=En({component:"popover",parts:["root","trigger","content","close","overlay"]}),ge=new Vt("Popover.Root");class pe{static create(t){return ge.set(new pe(t))}opts;#t=N(null);get contentNode(){return g(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return g(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return g(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return g(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return g(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return g(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return g(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new ye({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new ye({ref:E(()=>this.overlayNode),open:this.opts.open}),Ft(()=>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 me{static create(t){return new me(t,ge.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Et(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new bn(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),Ft(()=>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||Bt(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&&(Bt(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),g(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}g(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===On||t.key===Pn)&&(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":An(this.root.opts.open.current),"data-state":Le(this.root.opts.open.current),"aria-controls":this.#a(),[oe.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#n)}set props(t){C(this.#n,t)}}class we{static create(t){return new we(t,ge.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Et(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 Zo({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)&&Cn(n)&&this.root.markInteraction()}onpointerenter(t){Bt(t)||this.root.cancelDelayedClose()}onpointerleave(t){Bt(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(oe.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 g(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Le(this.root.opts.open.current),...Sn(this.root.contentPresence.transitionStatus),[oe.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return g(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var Go=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),Ie=re("<div><div><!></div></div>");function Er(e,t){const n=Ne();lt(t,!0);let o=x(t,"ref",15,null),r=x(t,"id",19,()=>Re(n)),i=x(t,"forceMount",3,!1),s=x(t,"onOpenAutoFocus",3,vt),a=x(t,"onCloseAutoFocus",3,vt),l=x(t,"onEscapeKeydown",3,vt),u=x(t,"onInteractOutside",3,vt),f=x(t,"trapFocus",3,!0),h=x(t,"preventScroll",3,!1),d=x(t,"customAnchor",3,null),c=Q(t,Go);const p=we.create({id:E(()=>r()),ref:E(()=>o(),y=>o(y)),onInteractOutside:E(()=>u()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>yt(c,p.props)),b=A(()=>f()&&p.shouldTrapFocus);function w(y){p.shouldTrapFocus||y.preventDefault(),s()(y)}var v=K(),P=V(v);{var O=y=>{qo(y,et(()=>g(m),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.root.opts.open.current},get id(){return r()},get trapFocus(){return g(b)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(I,k)=>{let M=()=>(k?.()).props,H=()=>(k?.()).wrapperProps;const R=A(()=>yt(M(),{style:Oe("popover")},{style:t.style}));var W=K(),T=V(W);{var X=_=>{var F=K(),B=V(F);{let U=A(()=>({props:g(R),wrapperProps:H(),...p.snippetProps}));j(B,()=>t.child,()=>g(U))}L(_,F)},z=_=>{var F=Ie();St(F,()=>({...H()}));var B=At(F);St(B,()=>({...g(R)}));var U=At(B);j(U,()=>t.children??tt),Ct(B),Ct(F),L(_,F)};gt(T,_=>{t.child?_(X):_(z,-1)})}L(I,W)},$$slots:{popper:!0}}))},S=y=>{jo(y,et(()=>g(m),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.root.opts.open.current},get id(){return r()},get trapFocus(){return g(b)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return p.shouldRender},popper:(I,k)=>{let M=()=>(k?.()).props,H=()=>(k?.()).wrapperProps;const R=A(()=>yt(M(),{style:Oe("popover")},{style:t.style}));var W=K(),T=V(W);{var X=_=>{var F=K(),B=V(F);{let U=A(()=>({props:g(R),wrapperProps:H(),...p.snippetProps}));j(B,()=>t.child,()=>g(U))}L(_,F)},z=_=>{var F=Ie();St(F,()=>({...H()}));var B=At(F);St(B,()=>({...g(R)}));var U=At(B);j(U,()=>t.children??tt),Ct(B),Ct(F),L(_,F)};gt(T,_=>{t.child?_(X):_(z,-1)})}L(I,W)},$$slots:{popper:!0}}))};gt(P,y=>{i()?y(O):i()||y(S,1)})}L(e,v),ct()}var Qo=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),Jo=re("<button><!></button>");function Fr(e,t){const n=Ne();lt(t,!0);let o=x(t,"id",19,()=>Re(n)),r=x(t,"ref",15,null),i=x(t,"type",3,"button"),s=x(t,"disabled",3,!1),a=x(t,"openOnHover",3,!1),l=x(t,"openDelay",3,700),u=x(t,"closeDelay",3,300),f=Q(t,Qo);const h=me.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>u())}),d=A(()=>yt(f,h.props,{type:i()}));Wn(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,p)=>{var m=K(),b=V(m);{var w=P=>{var O=K(),S=V(O);j(S,()=>t.child,()=>({props:g(d)})),L(P,O)},v=P=>{var O=Jo();St(O,()=>({...g(d)}));var S=At(O);j(S,()=>t.children??tt),Ct(O),L(P,O)};gt(b,P=>{t.child?P(w):P(v,-1)})}L(c,m)},$$slots:{default:!0}}),ct()}function Dr(e,t){lt(t,!0);let n=x(t,"open",15,!1),o=x(t,"onOpenChange",3,vt),r=x(t,"onOpenChangeComplete",3,vt);pe.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),kn(e,{children:(i,s)=>{var a=K(),l=V(a);j(l,()=>t.children??tt),L(i,a)},$$slots:{default:!0}}),ct()}class $o{#t=N(It([]));get rows(){return g(this.#t)}set rows(t){C(this.#t,t,!0)}}const Tr=new $o,_e=2*6e4,Be=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");function tn(e,t){return new RegExp(`(?<![\\w-])${Be(t.id)}(?![\\w-])`).test(e)?!0:[t.pr?.url,t.preview?.url].filter(o=>!!o).map(o=>o.replace(/\/+$/,"")).some(o=>new RegExp(`${Be(o)}(?![\\w-])`).test(e))}const Jt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function Mr(e,t){const n=new Map;for(const o of t){if(!o.preview)continue;const r=Jt(o.preview.reportedAt),i=o.status==="landed",s=i?Jt(o.mergedAt):null;let a=null,l=null;for(const f of e){if(f.kind!=="turn")continue;const h=Jt(f.at);if(r!==null&&(h===null||h<r-_e))continue;const d=f.parts.find(c=>c.kind==="text"&&tn(c.text,o));if(d&&(a??=d.id,i&&(s===null||h!==null&&h>=s-_e))){l=d.id;break}}const u=l??a;u&&n.set(u,[...n.get(u)??[],{task:o,landed:i}])}return n}function ke(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function tr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ke(e.id)}: ${e.title}]`:`[task ${ke(e.id)}: ${e.title}]`}function Ir(e){return e.map(t=>typeof t=="string"?t:tr(t)).join("").replace(/\u00a0/g," ").trim()}function er(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 nr=/\[(?: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 or(e){const t=[];let n=0;for(const o of e.matchAll(nr))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 rr=140,ir={firstmate:"Firstmate",captain:"my message"};function en(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 or(t).map(n=>typeof n=="string"?n:er(n,60)).join("").replace(/\s+/g," ").trim()}function _r(e,t=rr){const n=en(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 Br(e,t){const n=t.trim();return n&&`> Replying to ${ir[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
|
-
|
|
3
|
-
${n}`}const sr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function ar(e){const t=e.replace(/\r\n?/g,`
|
|
4
|
-
`).match(sr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function kr(e,t){const n=en(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",_t={topic:wt,source:null},lr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,cr=/^\s{0,3}(`{3,}|~{3,})/;function ur(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
5
|
-
`).trim();s&&t.push({slug:n,text:s}),o=[]};for(const s of e.split(`
|
|
6
|
-
`)){const a=s.match(cr)?.[1];a&&(!r||a[0]===r[0])&&(r=r?null:a);const l=r?null:s.match(lr);l?(i(),n=l[1]):o.push(s)}return i(),!t.length&&!e.trim()?[]:t.length?t:[{slug:n,text:""}]}const dr=/^\[project ([^\]\s]+)\][ \u00a0]?/;function Wr(e,t){return t&&t!==wt?`[project ${t}] ${e}`:e}function fr(e){const t=e.match(dr);return t?{topic:t[1],text:e.slice(t[0].length)}:{topic:null,text:e}}const $t=e=>e.trim().toLowerCase().replace(/[^a-z0-9.]+/g,"-").replace(/^-+|-+$/g,"");function We(e,t){const n=e.trim().toLowerCase(),o=$t(e),r=t.find(i=>i.id.toLowerCase()===n)??t.find(i=>i.name.toLowerCase()===n)??t.find(i=>$t(i.id)===o||$t(i.name)===o);return r?r.id:o||wt}function Nr(e){const t=e.replace(/[-_]+/g," ").trim();return t?t[0].toUpperCase()+t.slice(1):e}function hr(e,t){let n=null;for(const o of t)if(!(!o.projectId||o.projectId==="unassigned"||o.projectId===n)&&tn(e,o)){if(n)return null;n=o.projectId}return n}function Hr(e,t,n,o={}){const r=new Map,i=new Map,s=new Map,a=f=>{const h=hr(f,t);return h?{topic:h,source:"guess"}:null},l=(f,h)=>o[f]?{topic:o[f],source:o[f]===wt?null:"you"}:h;let u=null;for(const f of e){if(f.kind==="user"){const c=fr(ar(f.text).body),p=c.topic?{topic:We(c.topic,n),source:"thread"}:a(c.text)??_t,m=l(f.id,p);r.set(f.id,m),u=m;continue}if(f.kind!=="turn")continue;let h=null;const d=f.trigger==="captain"&&u?.source?u:null;for(const c of f.parts){if(c.kind!=="text")continue;const p=ur(c.text),b=p.map((v,P)=>{let O;v.slug?O={topic:We(v.slug,n),source:"marker"}:h?.source==="marker"?O=h:O=a(v.text)??h??(d&&{...d,source:"guess"})??_t,O.source&&(h=O);const S=P===0&&!v.slug&&p.length>1;return{key:P?`${c.id}#${P}`:c.id,text:v.text,tag:O,intro:S}}).map(v=>({...v,tag:l(v.key,v.tag)}));i.set(c.id,b);const w=b.find(v=>!v.intro);!s.has(f.id)&&w&&s.set(f.id,w.tag)}s.has(f.id)||s.set(f.id,l(`turn:${f.id}`,d?{...d,source:"guess"}:_t))}return{users:r,parts:i,turns:s}}function Lr(e,t,n,o={}){const r=o[e];return r?{topic:r,source:r===wt?null:"you"}:t&&t!=="unassigned"?{topic:t,source:n}:_t}function Rr(e,t=null){const n=new Map;for(const o of e){const r=o.at?Date.parse(o.at):NaN;for(const i of new Set(o.topics)){const s=n.get(i)??{topic:i,count:0,needs:0,last:0};s.count++,o.needs&&s.needs++,Number.isNaN(r)||(s.last=Math.max(s.last,r)),n.set(i,s)}}return t&&!n.has(t)&&n.set(t,{topic:t,count:0,needs:0,last:0}),[...n.values()].sort((o,r)=>+(o.topic===wt)-+(r.topic===wt)||r.last-o.last||o.topic.localeCompare(r.topic))}function zr(e,t){const n=new Map;let o=null;for(const r of e){if(r.topics.includes(t)){o=null;continue}o||(o={first:r.key,count:0,topics:[],from:r.at,to:r.at}),o.count++,o.to=r.at??o.to;for(const i of r.topics)o.topics.includes(i)||o.topics.push(i);n.set(r.key,o)}return n}export{jo as A,Pr as B,Oe as C,Wn as D,Zo as E,Je as F,Ar as G,Cr as P,Sr as S,wt as U,Ir as a,Br as b,er as c,$t as d,tr as e,Fr as f,Er as g,Dr as h,Tr as i,fr as j,Nr as k,zr as l,or as m,ur as n,_t as o,ar as p,Lr as q,Hr as r,_r as s,Rr as t,Mr as u,Or as v,Wr as w,kr as x,kn as y,qo as z};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as ve,r as de,p as X,i as $}from"./DnDesMxN.js";import{I as fe,t as Mt}from"./BbU5AsRD.js";import{a as Dt,o as bt}from"./Blj84s6L.js";import{q as Pt,H as At,l as A,m as Qe,g as t,v as x,k as et,p as Oe,u as Pe,i as c,s as v,r as d,t as P,a as h,b as Ne,h as R,o as K,d as q,j as Xe,f as De,c as p,x as I,bB as Rt,n as se,bC as wt,y as Lt,F as ct,z as _t,af as Ot}from"./BOY9WARo.js";import{a as Ae,s as F,d as ut,g as Nt,e as rt,i as qt,r as Ht,l as jt}from"./BRuDnHyc.js";import{b as Ke}from"./4VJeJzd5.js";import{z as It}from"./CNcEb8rI.js";import{k as Wt,X as Ze}from"./BBWR4qW2.js";import{a as Ft,f as Kt,s as Ut}from"./BXk5dy03.js";import{R as Bt}from"./BzYzevxb.js";import{E as Yt}from"./He17Vv5l.js";import{h as Gt,m as Jt}from"./DnQR8b1d.js";import{b as yt}from"./CrPP6AgN.js";import{p as kt}from"./BqqZcEbm.js";import{S as Vt,c as zt}from"./D8Hr8rhb.js";import{M as St}from"./CDGwSysF.js";import{A as Xt}from"./DRK9oYED.js";import{a as Qt}from"./DWlSINHC.js";import{C as Zt}from"./CaaP7Cfy.js";import{P as vt}from"./6x5fl0iw.js";class ot{#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 s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){ot.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ea=new ot({box:"border-box"});function ta(n,e,a){var r=ea.observe(n,()=>a(n[e]));Pt(()=>(At(()=>a(n[e])),r))}var aa=new Set(["$$slots","$$events","$$legacy"]);function dn(n,e){let a=de(e,aa);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var ra=new Set(["$$slots","$$events","$$legacy"]);function nt(n,e){let a=de(e,ra);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var na=new Set(["$$slots","$$events","$$legacy"]);function ht(n,e){let a=de(e,na);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var sa=new Set(["$$slots","$$events","$$legacy"]);function ia(n,e){let a=de(e,sa);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var oa=new Set(["$$slots","$$events","$$legacy"]);function pt(n,e){let a=de(e,oa);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var la=new Set(["$$slots","$$events","$$legacy"]);function ft(n,e){let a=de(e,la);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var da=new Set(["$$slots","$$events","$$legacy"]);function ca(n,e){let a=de(e,da);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var ua=new Set(["$$slots","$$events","$$legacy"]);function va(n,e){let a=de(e,ua);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var ha=new Set(["$$slots","$$events","$$legacy"]);function pa(n,e){let a=de(e,ha);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"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function ga(n,e){let a=de(e,fa);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};fe(n,ve(()=>a,{get icon(){return r}}))}const ma=15e3,xa=5e3;class ba{#e=A(Qe({}));get checks(){return t(this.#e)}set checks(e){x(this.#e,e,!0)}#t=A(Qe({}));get failed(){return t(this.#t)}set failed(e){x(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 s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.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(`/api/tasks/${encodeURIComponent(e)}/preview`);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"?ma:xa;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 Ve=new ba,gt=500,Fe=n=>n.replace(/\s+/g," ").trim(),wa=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function st(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 _a={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 ya(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 s=r.tagName.toLowerCase(),i=r.getAttribute("role")==="button"?"button":_a[s]??"part of the page",o=wa(Fe(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:o?`the “${o}” ${i}`:`a ${i} near ${st(e)}`,detail:`<${s}>${o?` “${o}”`:""}, near ${st(e)} of the page`}}return{kind:"spot",label:`a spot near ${st(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 ka=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,za=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Sa="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.",Ta=n=>n.flatMap((e,a)=>[`${a+1}. ${Fe(e.text)}`,...e.points&&Fe(e.points)?[` Points at: ${Fe(e.points)}`]:[]]);function $a(n,e,a){return[`Preview feedback for ${n.id} (${Fe(n.title)}), sent together from the Preview tab (${e}):`,...Ta(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Sa].join(`
|
|
2
|
-
`)}function cn(n){const e=n.replace(/\r\n?/g,`
|
|
3
|
-
`).split(`
|
|
4
|
-
`),a=ka.exec(e[0]??""),r=a?null:za.exec(e[0]??""),s=a??r;if(!s)return null;const i=[];for(const o of e.slice(1)){const l=/^\d+\. (.+)$/.exec(o);if(l){i.push({text:l[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(o);u&&i.length&&(i[i.length-1].points=u[1])}return i.length?{taskId:s[1],title:s[2],url:a?a[3]:null,plugin:r?{id:r[4],name:r[3],subject:r[5]??null}:null,items:i}:null}var Ea=p('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground"><!></button>'),Ca=p('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline">Open in new tab<!></a>'),Ma=p('<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" data-preview-fullscreen=""><!>Full screen</button>'),Da=p('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Pa=p('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Aa=p('<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>'),Ra=p("<!> <!>",1),La=p('<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-white shadow-lg dark:text-slate-950"><!>Click the part you mean</span></button>'),Oa=p('<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>'),Na=p('<iframe referrerpolicy="no-referrer" class="size-full border-0 bg-white"></iframe> <!>',1),qa=p('<span class="block text-xs"> </span>'),Ha=p('<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>'),ja=p('<p class="text-sm"> </p>'),Ia=p('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),Wa=p('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),Fa=p("<div><!> <div><!></div></div>");function Ka(n,e){Oe(e,!0);let a=X(e,"compact",3,!1),r=X(e,"fill",3,!1),s=X(e,"toolbar",3,!0),i=X(e,"pointing",3,!1),o=X(e,"pin",3,null),l=A(null);function u(S){const T=S.currentTarget.getBoundingClientRect(),N=S.clientX-T.left,W=S.clientY-T.top;let G=null;try{G=t(l)?.contentDocument?.elementFromPoint(N,W)??null}catch{G=null}const g={x:T.width?N/T.width:0,y:T.height?W/T.height:0};e.onpoint?.(ya(G,g,{w:Math.round(T.width),h:Math.round(T.height)}),g)}const f={w:1280,h:800};let L=A(0),H=A(0);Pe(()=>Ve.watch(e.taskId));const O=R(()=>Ve.checks[e.taskId]??null),he=R(()=>!!Ve.failed[e.taskId]),Y=R(()=>t(O)?.state==="live"),Q=R(()=>t(O)?.url??null),Z=R(()=>t(Q)&&t(O)?Ft.view(t(Q)):null),we=R(()=>t(Z)?Kt(t(Z),location.origin):""),ie=R(()=>t(H)?t(H)/f.w:0);var ee=Fa(),ce=c(ee);{var _e=S=>{var T=Da(),N=c(T),W=K(N,!0),G=v(N,2);{var g=b=>{var _=Ea(),U=c(_);Bt(U,{class:"size-3.5"}),d(_),P(()=>{F(_,"aria-label",t(Y)?"Reload the preview":"Check the preview again"),F(_,"title",t(Y)?"Reload":"Check again")}),I("click",_,()=>{Rt(L),Ve.refresh(e.taskId)}),h(b,_)};$(G,b=>{(t(Y)||t(O)?.state==="blocked"||t(O)?.state==="down")&&b(g)})}var E=v(G,2);{var te=b=>{var _=Ca(),U=v(c(_));Yt(U,{class:"size-3.5","aria-hidden":"true"}),d(_),P(()=>F(_,"href",t(Z))),h(b,_)};$(E,b=>{(t(Y)||t(O)?.state==="blocked")&&b(te)})}var M=v(E,2);{var D=b=>{var _=Ma(),U=c(_);ht(U,{class:"size-3.5","aria-hidden":"true"}),se(),d(_),I("click",_,function(...ae){e.onfullscreen?.apply(this,ae)}),h(b,_)};$(M,b=>{e.onfullscreen&&t(Y)&&b(D)})}d(T),P(()=>{F(N,"title",t(Q)??void 0),q(W,t(Q)??"Live preview")}),h(S,T)};$(ce,S=>{s()&&S(_e)})}var j=v(ce,2),ye=c(j);{var z=S=>{var T=Xe(),N=De(T);Wt(N,()=>`${t(Z)} ${t(L)}`,W=>{var G=Xe(),g=De(G);{var E=M=>{var D=Ra(),b=De(D);{var _=y=>{var k=Pa();P(()=>{F(k,"src",t(Z)),F(k,"title",`Live preview of ${t(Q)??""}`),F(k,"sandbox",t(we)),k.inert=!!e.onopen,Ae(k,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(k,`width:${f.w}px;height:${f.h}px;transform:scale(${t(ie)??""})`)}),h(y,k)};$(b,y=>{t(ie)&&y(_)})}var U=v(b,2);{var ae=y=>{var k=Aa(),re=c(k),J=c(re);ht(J,{class:"size-3.5","aria-hidden":"true"}),se(),d(re),d(k),I("click",k,function(...ke){e.onopen?.apply(this,ke)}),h(y,k)};$(U,y=>{e.onopen&&y(ae)})}h(M,D)},te=M=>{var D=Na(),b=De(D);Ke(b,y=>x(l,y),()=>t(l));var _=v(b,2);{var U=y=>{var k=La(),re=c(k),J=c(re);ca(J,{class:"size-4","aria-hidden":"true"}),se(),d(re),d(k),I("click",k,u),h(y,k)},ae=y=>{var k=Oa();P(()=>ut(k,`left:${o().x*100}%;top:${o().y*100}%`)),h(y,k)};$(_,y=>{i()?y(U):o()&&y(ae,1)})}P(()=>{F(b,"src",t(Z)),F(b,"title",`Live preview of ${t(Q)??""}`),F(b,"sandbox",t(we))}),h(M,D)};$(g,M=>{a()?M(E):M(te,-1)})}h(W,G)}),h(S,T)},C=S=>{const T=R(()=>!t(O)&&!t(he)),N=R(()=>t(T)?"Checking the preview…":t(he)?"Could not check the preview":t(O)?.state==="down"?"Preview stopped":t(O)?.state==="blocked"?"Preview cannot be embedded":t(O)?.state==="refused"?"Preview not shown here":"No live preview reported"),W=R(()=>t(T)?"":t(he)?"Wheelhouse did not answer; it will try again.":t(O)?.state==="blocked"?`${t(O).reason} Open it in a new tab instead.`:t(O)?.reason??"");var G=Xe(),g=De(G);{var E=M=>{var D=Ha(),b=c(D);{var _=J=>{pt(J,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};$(b,J=>{t(T)||J(_)})}var U=v(b,2),ae=c(U),y=K(ae,!0),k=v(ae,2);{var re=J=>{var ke=qa(),qe=K(ke,!0);P(()=>q(qe,t(W))),h(J,ke)};$(k,J=>{t(W)&&J(re)})}d(U),d(D),P(()=>{Ae(ae,1,`font-medium ${t(T)?"":"text-foreground"}`),q(y,t(N))}),h(M,D)},te=M=>{var D=Wa(),b=c(D),_=c(b);{var U=y=>{var k=ja(),re=K(k,!0);P(()=>q(re,t(N))),h(y,k)},ae=y=>{var k=Ia(),re=De(k);pt(re,{class:"mx-auto size-6","aria-hidden":"true"});var J=v(re,2),ke=K(J,!0),qe=v(J,2),Ue=K(qe,!0);P(()=>{q(ke,t(N)),q(Ue,t(W))}),h(y,k)};$(_,y=>{t(T)?y(U):y(ae,-1)})}d(b),d(D),h(M,D)};$(g,M=>{a()?M(E):M(te,-1)})}h(S,G)};$(ye,S=>{t(Y)&&t(Z)?S(z):S(C,-1)})}d(j),d(ee),P(()=>{Ae(ee,1,`min-w-0 ${r()?"flex h-full flex-col":""}`),F(ee,"data-live-preview",t(O)?.state??"checking"),Ae(j,1,`group relative w-full overflow-hidden bg-muted/40 ${s()?"mt-1.5 rounded-lg border":""} ${a()?t(Y)?"aspect-[16/10]":"":r()?"min-h-0 flex-1":t(Y)?"h-[70vh] min-h-80":"h-40"}`)}),ta(j,"clientWidth",S=>x(H,S)),h(n,ee),Ne()}et(["click"]);const mt="wheelhouse-preview-helper",Tt=()=>({said:[],list:[],asking:!1,error:null,sent:null}),Ua=Object.freeze(Tt()),We=()=>crypto.randomUUID();class Ba{#e=A(Qe({}));get byTask(){return t(this.#e)}set byTask(e){x(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(mt)??"{}");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(mt,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??Ua}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Tt()),this.byTask[e]}async ask(e,a,r,s){const i=this.of(e),o=a.trim();if(!o&&!r||i.asking)return;i.said.push({id:We(),who:"captain",text:o||"What about this?",points:r}),i.asking=!0,i.error=null,this.save();const l=i.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[Vt]:s},body:JSON.stringify({turns:l,list:i.list.map(L=>L.text)})}),f=await u.json().catch(()=>null);!u.ok||!f?.reply?i.error=f?.message??`The helper could not answer (${u.status}).`:i.said.push({id:We(),who:"helper",text:f.reply,suggest:f.suggest.map(L=>({text:L,added:!1}))})}catch{i.error="Wheelhouse could not be reached. Try again."}finally{i.asking=!1,this.save()}}accept(e,a,r){const s=this.of(e),i=s.said.findIndex(u=>u.id===a),o=s.said[i]?.suggest?.[r];if(!o||o.added)return;o.added=!0;const l=s.said.slice(0,i).reverse().find(u=>u.who==="captain");s.list.push({id:We(),text:o.text,points:l?.points??null}),s.sent=null,this.save()}addOwn(e,a,r=null){const s=a.trim().slice(0,gt);if(!s)return;const i=this.of(e);i.list.push({id:We(),text:s,points:r}),i.sent=null,this.save()}edit(e,a,r){const s=this.of(e).list.find(i=>i.id===a);s&&(s.text=r.slice(0,gt),this.save())}remove(e,a){const r=this.of(e),s=r.list.find(i=>i.id===a);r.list=r.list.filter(i=>i.id!==a);for(const i of r.said)for(const o of i.suggest??[])s&&o.text===s.text&&(o.added=!1);this.save()}async send(e,a,r){const s=this.of(e.id),i=s.list.filter(f=>f.text.trim());if(!i.length)return!1;s.error=null;const o=await Ut($a(e,a,i),r,e.id);if(!o.ok)return s.error=o.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:i.length};const l=e.id.lastIndexOf("@"),u=l>0?`second mate ${e.id.slice(l+1)}`:"Firstmate";return s.list=[],s.said.push({id:We(),who:"helper",notice:!0,text:`Sent to ${u}: ${i.length} ${i.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 Te=new Ba;var Ya=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),Ga=p("<textarea></textarea>");function Ja(n,e){Oe(e,!0);let a=X(e,"ref",15,null),r=X(e,"value",15),s=X(e,"data-slot",3,"textarea"),i=de(e,Ya);var o=Ga();wt(o),Nt(o,l=>({"data-slot":s(),class:l,...i}),[()=>zt("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)]),Ke(o,l=>a(l),()=>a()),yt(o,r),h(n,o),Ne()}const Va={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 xt(){if(typeof window>"u")return null;const n=window;return n.SpeechRecognition??n.webkitSpeechRecognition??null}const Xa={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},Qa={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:()=>xt()!==null,start(n,e){const a=xt();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=s=>{let i="",o="";for(let l=0;l<s.results.length;l++){const u=s.results[l];u.isFinal?i+=u[0].transcript:o+=u[0].transcript}e.text(i,o)},r.onerror=s=>{s.error!=="aborted"&&e.problem(Xa[s.error]??"failed")},r.onend=()=>e.end();try{r.start()}catch{e.problem("failed"),e.end()}return{stop:()=>r.stop(),abort:()=>r.abort()}}};let Za=Qa;const it=()=>Za,er=2e3;class tr{#e=A(null);get owner(){return t(this.#e)}set owner(e){x(this.#e,e)}#t=A("idle");get phase(){return t(this.#t)}set phase(e){x(this.#t,e,!0)}#r=A(0);get startedAt(){return t(this.#r)}set startedAt(e){x(this.#r,e,!0)}#s=A(null);get problem(){return t(this.#s)}set problem(e){x(this.#s,e,!0)}#n=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,r=ar()){this.phase!=="idle"&&this.commit();const s=it();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let i=null;const o=()=>i===null||this.#n===i;i=s.start(r,{text:(l,u)=>{o()&&this.#a===a&&a.show(...rr(l,u))},problem:l=>{o()&&(this.problem=l)},end:()=>{o()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#n=i)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#n?.stop(),this.#i=setTimeout(()=>this.#o("finish"),er))}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 B=new tr;function ar(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function rr(n,e){const a=n.replace(/\s+/g," ").trim(),r=e.replace(/\s+/g," ").trim();return[a,a&&r?` ${r}`:r]}const $t=n=>n&&!/\s$/.test(n)?" ":"",nr=n=>/^[\p{L}\p{N}]/u.test(n)?" ":"";function sr(n){let e="",a="",r="",s=!1;const i=(o,l)=>{n.value=o;try{n.setSelectionRange(l,l)}catch{}n.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=n.value;const o=n.selectionStart??e.length,l=n.selectionEnd??o;a=e.slice(0,o),r=e.slice(l),s=!1},show(o,l){const u=o+l;if(!u)return;const f=a+$t(a)+u;i(f+nr(r)+r,f.length),s=!0},finish(){},revert(){s&&i(e,a.length),s=!1}}}function un(n,e){let a=null,r=null,s="";const i=o=>{const l=document.createRange();l.setStartAfter(o),l.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(l)};return{begin(){const o=window.getSelection();let l;o?.rangeCount&&n.contains(o.getRangeAt(0).startContainer)?(l=o.getRangeAt(0),r=l.extractContents()):(l=document.createRange(),l.selectNodeContents(n),l.collapse(!1),r=null);const u=document.createRange();u.setStart(n,0),u.setEnd(l.startContainer,l.startOffset),s=$t(u.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",l.insertNode(a)},show(o,l){if(!a)return;const u=document.createTextNode(o||l?s+o:""),f=document.createElement("span");f.className="dictation-forming",f.textContent=l,a.replaceChildren(u,...l?[f]:[]),e()},finish(){if(!a)return;const o=a.textContent??"";if(o){const l=document.createTextNode(o);a.replaceWith(l),(n.contains(document.activeElement)||document.activeElement===n)&&i(l)}else a.replaceWith(r??"");a=null,r=null,e()},revert(){a?.replaceWith(r??""),a=null,r=null,e()}}}const ir=n=>n.code==="Space"&&n.shiftKey&&(n.metaKey||n.ctrlKey)&&!n.altKey,or=450;function lr(n,e,a){let r=0;const s=o=>{if(ir(o)){if(o.preventDefault(),o.repeat)return;B.active(e)?(r=0,B.stop()):(r=Date.now(),a());return}B.active(e)&&(o.key==="Escape"?(o.preventDefault(),o.stopPropagation(),r=0,B.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(o.key)||(r=0,B.commit()))},i=o=>{if(!r||!(o.code==="Space"||["Shift","Meta","Control"].includes(o.key)))return;const l=Date.now()-r;r=0,l>=or&&B.active(e)&&B.stop()};return n.addEventListener("keydown",s),n.addEventListener("keyup",i),()=>{n.removeEventListener("keydown",s),n.removeEventListener("keyup",i)}}var dr=p('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),cr=p('<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>'),ur=p('<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>'),vr=p('<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 hr(n,e){Oe(e,!0);let a=X(e,"label",3,"Dictate"),r=X(e,"size",3,"md"),s=X(e,"disabled",3,!1),i=X(e,"listening",15,!1);const o={};Lt(()=>{i(B.active(o))});const l=R(()=>i()&&B.phase==="stopping"),u=R(()=>B.owner===o?B.problem:null);let f=A(!1),L=A(Qe(Date.now())),H=A("Ctrl+Shift+Space");const O="wheelhouse.voice.noted";let he=!1;function Y(){if(he)return!0;try{return localStorage.getItem(O)==="1"}catch{return!1}}function Q(){if(s())return;const g=it();if(g.supported()&&g.privacyNote&&!Y()){x(f,!0);return}B.start(o,e.target()),e.field?.focus()}function Z(){he=!0;try{localStorage.setItem(O,"1")}catch{}x(f,!1),Q()}function we(){i()?B.stop():t(f)?x(f,!1):Q()}const ie=R(()=>{const g=Math.max(0,Math.floor((t(L)-B.startedAt)/1e3));return`${Math.floor(g/60)}:${String(g%60).padStart(2,"0")}`});Pe(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&x(H,"⌘⇧Space")}),Pe(()=>{if(!i())return;x(L,Date.now(),!0);const g=setInterval(()=>x(L,Date.now(),!0),250);return()=>clearInterval(g)}),Pe(()=>{if(e.field)return lr(e.field,o,Q)}),Pe(()=>{if(!i()&&!t(f))return;const g=E=>{E.key!=="Escape"||E.defaultPrevented||(E.preventDefault(),i()&&B.cancel(),x(f,!1))};return window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g)}),Dt(()=>{B.active(o)&&B.commit()});var ee=vr(),ce=c(ee);{var _e=g=>{var E=dr(),te=K(E,!0);P(()=>q(te,t(l)?"Finishing…":t(ie))),h(g,E)};$(ce,g=>{i()&&g(_e)})}var j=v(ce,2),ye=c(j);{var z=g=>{{let E=R(()=>r()==="md"?"size-3.5 fill-current":"size-3 fill-current");ga(g,{get class(){return t(E)}})}},C=g=>{{let E=R(()=>r()==="md"?"size-4.5":"size-4");ia(g,{get class(){return t(E)}})}};$(ye,g=>{i()?g(z):g(C,-1)})}d(j);var S=v(j,2),T=K(S,!0),N=v(S,2);{var W=g=>{var E=cr(),te=c(E),M=K(te,!0),D=v(te,4),b=c(D),_=v(b,2);d(D),d(E),P(U=>q(M,U),[()=>it().privacyNote]),I("click",b,()=>x(f,!1)),I("click",_,Z),h(g,E)},G=g=>{var E=ur(),te=c(E),M=K(te,!0),D=v(te,2),b=c(D);Ze(b,{class:"size-3.5"}),d(D),d(E),P(()=>q(M,Va[t(u)])),I("click",D,()=>B.dismiss()),h(g,E)};$(N,g=>{t(f)?g(W):t(u)&&g(G,1)})}d(ee),P(()=>{F(j,"aria-label",i()?"Stop dictating":a()),F(j,"aria-pressed",i()),F(j,"title",i()?"Stop dictating · Esc cancels":`${a()} (${t(H)}; hold for push-to-talk)`),j.disabled=s(),F(j,"data-dictating",i()?"":void 0),Ae(j,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":"size-7"} ${i()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),q(T,i()?"Listening":"")}),I("mousedown",j,g=>g.preventDefault()),I("click",j,we),h(n,ee),Ne()}et(["mousedown","click"]);var pr=new Set(["$$slots","$$events","$$legacy","value","class"]),fr=p('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function gr(n,e){Oe(e,!0);let a=X(e,"value",15),r=de(e,pr),s=A(null),i=A(!1);var o=fr(),l=c(o);{let L=R(()=>zt(e.class,t(i)?"pr-24":"pr-10"));Ja(l,ve({get class(){return t(L)}},()=>r,{get ref(){return t(s)},set ref(H){x(s,H,!0)},get value(){return a()},set value(H){a(H)}}))}var u=v(l,2),f=c(u);{let L=R(()=>!!e.disabled);hr(f,{get field(){return t(s)},target:()=>sr(t(s)),size:"sm",get disabled(){return t(L)},get listening(){return t(i)},set listening(H){x(i,H,!0)}})}d(u),d(o),h(n,o),Ne()}var mr=p('<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>'),xr=p('<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>'),br=p('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),wr=p('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),_r=p('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-white hover:bg-sea/90 dark:text-slate-950" data-add-to-list=""><!>Add to the list</button>'),yr=p('<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>'),kr=p('<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>'),zr=p('<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>'),Sr=p('<li class="text-sm text-danger" role="alert"> </li>'),Tr=p('<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>'),$r=p('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Er=p('<p class="text-xs text-muted-foreground"> </p>'),Cr=p('<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"></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" aria-label="Remove from the list"><!></button></li>'),Mr=p('<ol class="flex flex-col gap-1.5"></ol>'),Dr=p('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),Pr=p('<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"/></form></div>'),Ar=p(`<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
|
|
5
|
-
done so far. Point at anything, or just say what you think; I will turn it into a list for
|
|
6
|
-
the worker. <strong>Nothing goes to Firstmate until you send it.</strong></p></li> <!> <!> <!></ol></div> <div class="px-3 pb-3"><div class="rounded-lg border border-input bg-card shadow-sm focus-within:ring-2 focus-within:ring-ring/30"><!> <!> <div class="flex items-center gap-1 px-1.5 pb-1.5"><button title="Click a part of the page to say which part you mean" data-point=""><!> </button> <button aria-label="Say it" class="ml-auto flex size-8 cursor-pointer items-center justify-center rounded-full bg-foreground text-background disabled:cursor-not-allowed disabled:opacity-30"><!></button></div></div></div> <section class="border-t bg-card/60" aria-label="Your feedback" data-feedback-list=""><button class="flex w-full cursor-pointer items-center gap-2 px-4 py-2.5 text-left"><h3 class="font-sans text-sm font-medium">Your feedback</h3> <span class="rounded-full bg-muted px-1.5 text-xs text-muted-foreground tabular-nums"> </span> <!> <!></button> <!> <div class="flex items-center gap-3 px-4 pt-2 pb-3"><button class="inline-flex h-9 shrink-0 cursor-pointer items-center gap-1.5 rounded-md bg-sea px-3.5 text-sm font-medium whitespace-nowrap text-white hover:bg-sea/90 disabled:cursor-not-allowed disabled:opacity-40 dark:text-slate-950" data-send-batch=""><!> </button> <span class="text-xs leading-snug text-muted-foreground">One message, for this same task</span></div></section></section>`);function Rr(n,e){Oe(e,!0);let a=X(e,"pointing",15,!1),r=X(e,"attached",15,null);const s=R(()=>Te.view(e.task.id)),i=R(()=>kt.data.sessionToken??"");let o=A(""),l=A(""),u=A(!0),f=A(!1),L=A(null),H=A(null);bt(()=>Te.load()),Pe(()=>{t(s).said.length,t(s).asking,ct().then(()=>t(L)?.scrollTo({top:t(L).scrollHeight,behavior:"smooth"}))}),Pe(()=>{r()&&ct().then(()=>t(H)?.querySelector("textarea")?.focus())});function O(){const m=t(o).trim();if(!m&&!r()||t(s).asking)return;const w=r()?.pointer??null;x(o,""),r(null),Te.ask(e.task.id,m,w,t(i))}async function he(){!t(s).list.length||t(f)||(x(f,!0),await Te.send({id:e.task.id,title:e.task.shortTitle},e.url,t(i)),x(f,!1))}var Y=Ar(),Q=c(Y),Z=c(Q),we=c(Z);St(we,{class:"size-4 text-muted-foreground","aria-hidden":"true"}),se(),d(Z),se(2),d(Q);var ie=v(Q,2),ee=c(ie),ce=c(ee),_e=c(ce),j=c(_e);ft(j,{class:"size-3.5"}),d(_e),se(2),d(ce);var ye=v(ce,2);rt(ye,17,()=>t(s).said,m=>m.id,(m,w)=>{var ue=Xe(),Re=De(ue);{var He=ne=>{var oe=xr(),V=c(oe);{var ge=me=>{var xe=mr(),Ee=c(xe);nt(Ee,{class:"size-3 shrink-0","aria-hidden":"true"});var be=v(Ee),pe=K(be,!0);d(xe),P(()=>q(pe,t(w).points.label)),h(me,xe)};$(V,me=>{t(w).points&&me(ge)})}var ze=v(V,2),le=K(ze,!0);d(oe),P(()=>q(le,t(w).text)),h(ne,oe)},$e=ne=>{var oe=kr(),V=c(oe),ge=c(V);ft(ge,{class:"size-3.5"}),d(V);var ze=v(V,2),le=c(ze);Gt(le,()=>Jt(t(w).text),!0),d(le);var me=v(le,2);{var xe=be=>{var pe=br();h(be,pe)};$(me,be=>{t(w).notice&&t(s).sent&&be(xe)})}var Ee=v(me,2);rt(Ee,17,()=>t(w).suggest??[],qt,(be,pe,Ce)=>{var je=yr(),Ye=c(je),Ie=K(Ye,!0),Ge=v(Ye,2),Me=c(Ge);{var Je=Le=>{var Se=wr(),at=c(Se);Zt(at,{class:"size-3.5","aria-hidden":"true"}),se(),d(Se),h(Le,Se)},tt=Le=>{var Se=_r(),at=c(Se);vt(at,{class:"size-3.5","aria-hidden":"true"}),se(),d(Se),I("click",Se,()=>Te.accept(e.task.id,t(w).id,Ce)),h(Le,Se)};$(Me,Le=>{t(pe).added?Le(Je):Le(tt,-1)})}d(Ge),d(je),P(()=>q(Ie,t(pe).text)),h(be,je)}),d(ze),d(oe),P(()=>Ae(le,1,`chat-md text-sm ${t(w).notice?"text-muted-foreground":""}`)),h(ne,oe)};$(Re,ne=>{t(w).who==="captain"?ne(He):ne($e,-1)})}h(m,ue)});var z=v(ye,2);{var C=m=>{var w=zr();h(m,w)};$(z,m=>{t(s).asking&&m(C)})}var S=v(z,2);{var T=m=>{var w=Sr(),ue=K(w,!0);P(()=>q(ue,t(s).error)),h(m,w)};$(S,m=>{t(s).error&&m(T)})}d(ee),d(ie),Ke(ie,m=>x(L,m),()=>t(L));var N=v(ie,2),W=c(N),G=c(W);{var g=m=>{var w=Tr(),ue=c(w),Re=c(ue);nt(Re,{class:"size-3 shrink-0","aria-hidden":"true"});var He=v(Re),$e=K(He,!0);d(ue);var ne=v(ue,2),oe=c(ne);Ze(oe,{class:"size-3"}),d(ne),d(w),P(()=>q($e,r().pointer.label)),I("click",ne,()=>r(null)),h(m,w)};$(G,m=>{r()&&m(g)})}var E=v(G,2);{let m=R(()=>r()?"What about it?":"What do you think? Ask anything about it");gr(E,{rows:2,maxlength:4e3,get placeholder(){return t(m)},"aria-label":"Talk about this preview",class:"no-scrollbar min-h-12 border-0 bg-transparent text-sm shadow-none focus-visible:ring-0",onkeydown:w=>{w.key==="Enter"&&!w.shiftKey&&!w.isComposing&&(w.preventDefault(),O())},get value(){return t(o)},set value(w){x(o,w,!0)}})}var te=v(E,2),M=c(te),D=c(M);nt(D,{class:"size-3.5","aria-hidden":"true"});var b=v(D,1,!0);d(M);var _=v(M,2),U=c(_);Xt(U,{class:"size-4"}),d(_),d(te),d(W),d(N),Ke(N,m=>x(H,m),()=>t(H));var ae=v(N,2),y=c(ae),k=v(c(y),2),re=K(k,!0),J=v(k,2);{var ke=m=>{var w=$r();h(m,w)};$(J,m=>{t(s).list.length&&m(ke)})}var qe=v(J,2);{let m=R(()=>t(u)?"rotate-180":"");Qt(qe,{get class(){return`ml-auto size-4 text-muted-foreground transition-transform ${t(m)??""}`},"aria-hidden":"true"})}d(y);var Ue=v(y,2);{var Et=m=>{var w=Pr(),ue=c(w);{var Re=V=>{var ge=Mr();rt(ge,23,()=>t(s).list,ze=>ze.id,(ze,le,me)=>{var xe=Cr(),Ee=c(xe),be=K(Ee),pe=v(Ee,2),Ce=c(pe);wt(Ce);var je=v(Ce,2);{var Ye=Me=>{var Je=Er(),tt=K(Je);P(()=>q(tt,`Points at ${t(le).points.label??""}`)),h(Me,Je)};$(je,Me=>{t(le).points&&Me(Ye)})}d(pe);var Ie=v(pe,2),Ge=c(Ie);Ze(Ge,{class:"size-3.5"}),d(Ie),d(xe),P(()=>{q(be,`${t(me)+1}.`),jt(Ce,t(le).text),F(Ce,"aria-label",`Feedback ${t(me)+1}`)}),I("input",Ce,Me=>Te.edit(e.task.id,t(le).id,Me.currentTarget.value)),I("click",Ie,()=>Te.remove(e.task.id,t(le).id)),h(ze,xe)}),d(ge),h(V,ge)},He=V=>{var ge=Dr();h(V,ge)};$(ue,V=>{t(s).list.length?V(Re):V(He,-1)})}var $e=v(ue,2),ne=c($e);vt(ne,{class:"size-3.5 shrink-0 text-muted-foreground","aria-hidden":"true"});var oe=v(ne,2);Ht(oe),d($e),d(w),_t("submit",$e,V=>{V.preventDefault(),Te.addOwn(e.task.id,t(l)),x(l,"")}),yt(oe,()=>t(l),V=>x(l,V)),h(m,w)};$(Ue,m=>{t(u)&&m(Et)})}var lt=v(Ue,2),Be=c(lt),dt=c(Be);pa(dt,{class:"size-3.5","aria-hidden":"true"});var Ct=v(dt,1,!0);d(Be),se(2),d(lt),d(ae),d(Y),P(m=>{Ae(M,1,`inline-flex h-8 cursor-pointer items-center gap-1.5 rounded-md px-2 text-xs font-medium transition-colors ${a()?"bg-sea text-white dark:text-slate-950":"text-muted-foreground hover:bg-muted hover:text-foreground"}`),F(M,"aria-pressed",a()),q(b,a()?"Pointing…":"Point"),_.disabled=m,F(y,"aria-expanded",t(u)),q(re,t(s).list.length),Be.disabled=!t(s).list.length||t(f),q(Ct,t(f)?"Sending…":`Send to Firstmate${t(s).list.length?` (${t(s).list.length})`:""}`)},[()=>!t(o).trim()&&!r()||t(s).asking]),I("click",M,()=>a(!a())),I("click",_,O),I("click",y,()=>x(u,!t(u))),I("click",Be,he),h(n,Y),Ne()}et(["click","input"]);var Lr=p('<button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs text-muted-foreground hover:bg-accent hover:text-foreground"><!>Hide the helper</button>'),Or=p('<aside class="flex min-h-0 w-[24rem] shrink-0 border-l bg-panel p-3 xl:w-[26rem]"><div class="flex min-h-0 w-full flex-col"><!></div></aside>'),Nr=p('<button type="button" class="absolute right-5 bottom-5 inline-flex items-center gap-2 rounded-full border bg-background px-4 py-2 text-sm font-medium shadow-lg hover:bg-accent"><!>Talk it through</button>'),qr=p('<div class="fixed inset-0 z-50 flex flex-col bg-background outline-none" role="dialog" aria-modal="true" tabindex="-1" data-preview-studio=""><div class="flex h-12 shrink-0 items-center gap-3 border-b px-3 sm:px-4"><p class="min-w-0 flex-1 truncate text-sm"><span class="font-medium"> </span> <span class="text-muted-foreground">· Live preview</span></p> <!> <button type="button" class="inline-flex items-center gap-1.5 rounded-md px-2 py-1 text-xs hover:bg-accent" aria-label="Close full screen (Esc)" title="Close (Esc)"><!>Close</button></div> <div class="relative flex min-h-0 flex-1"><div class="min-w-0 flex-1 p-3"><!></div> <!></div></div>');function vn(n,e){Oe(e,!0);let a=X(e,"talk",3,!0),r=X(e,"from",3,null),s=A(!0),i=A(!1),o=A(null),l=A(null);bt(()=>{const z=document.activeElement,C=document.body.style.overflow;return document.body.style.overflow="hidden",t(l)?.focus(),()=>{document.body.style.overflow=C,z?.focus?.()}});function u(z){if(z.key!=="Escape")return;if(t(i)){z.preventDefault(),x(i,!1);return}const C=z.target;if(C instanceof HTMLTextAreaElement&&C.value.trim()){C.blur();return}z.preventDefault(),e.onclose()}var f=qr();_t("keydown",Ot,u);var L=c(f),H=c(L),O=c(H),he=K(O,!0);se(2),d(H);var Y=v(H,2);{var Q=z=>{var C=Lr(),S=c(C);va(S,{class:"size-4","aria-hidden":"true"}),se(),d(C),I("click",C,()=>x(s,!1)),h(z,C)};$(Y,z=>{a()&&t(s)&&z(Q)})}var Z=v(Y,2),we=c(Z);Ze(we,{class:"size-4","aria-hidden":"true"}),se(),d(Z),d(L);var ie=v(L,2),ee=c(ie),ce=c(ee);{let z=R(()=>a()&&t(s)&&t(i)),C=R(()=>a()&&t(s)?t(o)?.at??null:null);Ka(ce,{get taskId(){return e.taskId},fill:!0,get pointing(){return t(z)},get pin(){return t(C)},onpoint:(S,T)=>{x(o,{pointer:S,at:T},!0),x(i,!1)}})}d(ee);var _e=v(ee,2);{var j=z=>{var C=Or(),S=c(C),T=c(S);{let N=R(()=>({id:e.taskId,shortTitle:e.title}));Rr(T,{get task(){return t(N)},get url(){return e.url},get pointing(){return t(i)},set pointing(W){x(i,W,!0)},get attached(){return t(o)},set attached(W){x(o,W,!0)}})}d(S),d(C),h(z,C)},ye=z=>{var C=Nr(),S=c(C);St(S,{class:"size-4","aria-hidden":"true"}),se(),d(C),I("click",C,()=>x(s,!0)),h(z,C)};$(_e,z=>{a()&&t(s)?z(j):a()&&z(ye,1)})}d(ie),d(f),Ke(f,z=>x(l,z),()=>t(l)),P(()=>{F(f,"aria-label",`Live preview of ${e.title??""}, full screen`),q(he,e.title)}),I("click",Z,function(...z){e.onclose?.apply(this,z)}),Mt(3,f,()=>It,()=>({from:r()})),h(n,f),Ne()}et(["click"]);const Hr="{url}";function jr(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(Hr,encodeURIComponent(a.url)),external:!1}}const hn={review(n,e){const a=kt.data?.pullRequestTabs??{};return jr(a,n,e)}};export{dn as C,Ka as L,ft as M,vn as P,ga as S,ht as a,ta as b,pt as c,hn as d,Rr as e,cn as f,hr as g,un as h,B as i,Ve as p};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r}from"../chunks/D5M74L1e.js";import{y as t}from"../chunks/DB2Frr3y.js";export{t as load_css,r as start};
|
|
Binary file
|
|
Binary file
|