@chrisjowen/wheelhouse 0.18.1 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/build/client/_app/immutable/assets/0.Bv6SelNG.css +1 -0
- package/build/client/_app/immutable/assets/0.Bv6SelNG.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Bv6SelNG.css.gz +0 -0
- package/build/client/_app/immutable/chunks/{D2Frmdzl.js → -fAn-QZ6.js} +1 -1
- package/build/client/_app/immutable/chunks/-fAn-QZ6.js.br +0 -0
- package/build/client/_app/immutable/chunks/-fAn-QZ6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BL011DGQ.js → 2AbYRrJA.js} +1 -1
- package/build/client/_app/immutable/chunks/2AbYRrJA.js.br +0 -0
- package/build/client/_app/immutable/chunks/2AbYRrJA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DglJ92hi.js → 5DXsVwmq.js} +1 -1
- package/build/client/_app/immutable/chunks/5DXsVwmq.js.br +0 -0
- package/build/client/_app/immutable/chunks/5DXsVwmq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/5j8_HxjF.js +1 -0
- package/build/client/_app/immutable/chunks/5j8_HxjF.js.br +0 -0
- package/build/client/_app/immutable/chunks/5j8_HxjF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CspN1OJw.js → BT6Y01Hq.js} +1 -1
- package/build/client/_app/immutable/chunks/BT6Y01Hq.js.br +0 -0
- package/build/client/_app/immutable/chunks/BT6Y01Hq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{JUzTNcjv.js → BVJ0lC5K.js} +1 -1
- package/build/client/_app/immutable/chunks/BVJ0lC5K.js.br +0 -0
- package/build/client/_app/immutable/chunks/BVJ0lC5K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BSBcdyd3.js → Baxoev3a.js} +1 -1
- package/build/client/_app/immutable/chunks/Baxoev3a.js.br +1 -0
- package/build/client/_app/immutable/chunks/Baxoev3a.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CoQMrCtk.js → BeZgLQLl.js} +1 -1
- package/build/client/_app/immutable/chunks/BeZgLQLl.js.br +0 -0
- package/build/client/_app/immutable/chunks/BeZgLQLl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BDtt0Y7t.js → CDrKIy6b.js} +1 -1
- package/build/client/_app/immutable/chunks/CDrKIy6b.js.br +0 -0
- package/build/client/_app/immutable/chunks/CDrKIy6b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{I4bsCfS2.js → CGVyv1kv.js} +1 -1
- package/build/client/_app/immutable/chunks/CGVyv1kv.js.br +0 -0
- package/build/client/_app/immutable/chunks/{I4bsCfS2.js.gz → CGVyv1kv.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{Cpxqeawy.js → CGgU6JcF.js} +1 -1
- package/build/client/_app/immutable/chunks/CGgU6JcF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGgU6JcF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CW2qBe0U.js +1 -0
- package/build/client/_app/immutable/chunks/CW2qBe0U.js.br +0 -0
- package/build/client/_app/immutable/chunks/CW2qBe0U.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CzBY7r8x.js → Cg9h9TA_.js} +1 -1
- package/build/client/_app/immutable/chunks/Cg9h9TA_.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cg9h9TA_.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{luPa70aT.js → CiyFCD_Y.js} +1 -1
- package/build/client/_app/immutable/chunks/CiyFCD_Y.js.br +0 -0
- package/build/client/_app/immutable/chunks/CiyFCD_Y.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CtiH9jvV.js → CyEUF6kH.js} +1 -1
- package/build/client/_app/immutable/chunks/CyEUF6kH.js.br +0 -0
- package/build/client/_app/immutable/chunks/CyEUF6kH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Dcf7qESD.js → D4YFdJ2K.js} +1 -1
- package/build/client/_app/immutable/chunks/D4YFdJ2K.js.br +0 -0
- package/build/client/_app/immutable/chunks/D4YFdJ2K.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{COSi3XeB.js → DR64qHvI.js} +1 -1
- package/build/client/_app/immutable/chunks/DR64qHvI.js.br +0 -0
- package/build/client/_app/immutable/chunks/DR64qHvI.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTsBbwsD.js +1 -0
- package/build/client/_app/immutable/chunks/DTsBbwsD.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTsBbwsD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bj-Gheej.js → OWl_aob1.js} +1 -1
- package/build/client/_app/immutable/chunks/OWl_aob1.js.br +0 -0
- package/build/client/_app/immutable/chunks/OWl_aob1.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Vkbb4g2s.js +2 -0
- package/build/client/_app/immutable/chunks/Vkbb4g2s.js.br +0 -0
- package/build/client/_app/immutable/chunks/Vkbb4g2s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/_snkxcQo.js +5 -0
- package/build/client/_app/immutable/chunks/_snkxcQo.js.br +0 -0
- package/build/client/_app/immutable/chunks/_snkxcQo.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Deh9Yuoc.js → gXQLD015.js} +1 -1
- package/build/client/_app/immutable/chunks/gXQLD015.js.br +0 -0
- package/build/client/_app/immutable/chunks/gXQLD015.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C_QL6rvF.js → qLcA5kFM.js} +1 -1
- package/build/client/_app/immutable/chunks/qLcA5kFM.js.br +0 -0
- package/build/client/_app/immutable/chunks/qLcA5kFM.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.Cqo400M3.js +2 -0
- package/build/client/_app/immutable/entry/app.Cqo400M3.js.br +0 -0
- package/build/client/_app/immutable/entry/app.Cqo400M3.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Ce2sGdnV.js +1 -0
- package/build/client/_app/immutable/entry/start.Ce2sGdnV.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Ce2sGdnV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BDEsJAC6.js +9 -0
- package/build/client/_app/immutable/nodes/0.BDEsJAC6.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BDEsJAC6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.BGpUfjP8.js → 1.BAdh5fLI.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BAdh5fLI.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BAdh5fLI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.Dqja5Hy7.js → 10.BdqmXPBq.js} +1 -1
- package/build/client/_app/immutable/nodes/10.BdqmXPBq.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.BdqmXPBq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.C2hpIuul.js → 11.C7GVGBrp.js} +1 -1
- package/build/client/_app/immutable/nodes/11.C7GVGBrp.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.C7GVGBrp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.D9gnyWPh.js → 12.CfCz32Hl.js} +1 -1
- package/build/client/_app/immutable/nodes/12.CfCz32Hl.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.CfCz32Hl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.DL0THiQT.js → 13.CerB5X05.js} +1 -1
- package/build/client/_app/immutable/nodes/13.CerB5X05.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.CerB5X05.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.zHzRn1L0.js → 14.B0msOOIX.js} +1 -1
- package/build/client/_app/immutable/nodes/14.B0msOOIX.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.B0msOOIX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.CxiJzXJw.js → 15.CU_96PAW.js} +1 -1
- package/build/client/_app/immutable/nodes/15.CU_96PAW.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CU_96PAW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.ltkCLaiY.js → 16.ZuUMnj98.js} +1 -1
- package/build/client/_app/immutable/nodes/16.ZuUMnj98.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.ZuUMnj98.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.8mjwurTl.js → 17.BSv9bFuE.js} +1 -1
- package/build/client/_app/immutable/nodes/17.BSv9bFuE.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.BSv9bFuE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.DIpFUdcm.js → 19.EQTYVr90.js} +1 -1
- package/build/client/_app/immutable/nodes/19.EQTYVr90.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.EQTYVr90.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.9EupRWC-.js +28 -0
- package/build/client/_app/immutable/nodes/2.9EupRWC-.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.9EupRWC-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.BP6YYSQm.js → 20.D5cIPU-z.js} +1 -1
- package/build/client/_app/immutable/nodes/20.D5cIPU-z.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.D5cIPU-z.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.lQoTeuLN.js → 21.DK75zAW4.js} +1 -1
- package/build/client/_app/immutable/nodes/21.DK75zAW4.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DK75zAW4.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.DmHOHt5L.js → 22.Clcens7W.js} +1 -1
- package/build/client/_app/immutable/nodes/22.Clcens7W.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.Clcens7W.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.D7UbkVJG.js → 23.B7G5quJX.js} +1 -1
- package/build/client/_app/immutable/nodes/23.B7G5quJX.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.B7G5quJX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.B6o--6Mq.js → 24.DonaWknP.js} +1 -1
- package/build/client/_app/immutable/nodes/24.DonaWknP.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DonaWknP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js +23 -0
- package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.Dw_k3X_t.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.CbeAF_H2.js → 26.C8O2VDmM.js} +1 -1
- package/build/client/_app/immutable/nodes/26.C8O2VDmM.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.C8O2VDmM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.D3Nqqpa-.js → 28.zLgUNaHR.js} +1 -1
- package/build/client/_app/immutable/nodes/28.zLgUNaHR.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.zLgUNaHR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.BgWGx5YP.js → 3.Bf4Qi1i3.js} +1 -1
- package/build/client/_app/immutable/nodes/3.Bf4Qi1i3.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.Bf4Qi1i3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CmSxKRLa.js → 4.CO6-aByj.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CO6-aByj.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CO6-aByj.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.CExYN4s7.js → 6.B56rBCgR.js} +1 -1
- package/build/client/_app/immutable/nodes/6.B56rBCgR.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.B56rBCgR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.B5DaW8rR.js → 7.CtYzZ1HY.js} +1 -1
- package/build/client/_app/immutable/nodes/7.CtYzZ1HY.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.CtYzZ1HY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.BAxGmD9j.js → 8.N9QG5-DU.js} +1 -1
- package/build/client/_app/immutable/nodes/8.N9QG5-DU.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.N9QG5-DU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.B05Fdcd3.js → 9.aHwzcVbZ.js} +1 -1
- package/build/client/_app/immutable/nodes/9.aHwzcVbZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.aHwzcVbZ.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-BGSPGiMJ.js → DecisionCard.js-BK-7QlF6.js} +2 -2
- package/build/server/chunks/chunks/{OpenDecision.js-D5ZzLDAg.js → OpenDecision.js-ECtCedSr.js} +3 -3
- package/build/server/chunks/chunks/{bell.js-DuW71LLn.js → bell.js-kMMKqlsJ.js} +35 -2
- package/build/server/chunks/chunks/{chat.svelte.js-BcKQjH6T.js → chat.svelte.js-BtY19xS3.js} +10 -2
- package/build/server/chunks/chunks/{detail.js-Cl-2Oh1e.js → detail.js-DfXwWd3N.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-7UNSvLAt.js → feedback.js-CpU0hBIw.js} +2 -2
- package/build/server/chunks/chunks/{harness.js-C1CYCy4c.js → harness.js-DvhIhjw1.js} +4 -3
- package/build/server/chunks/chunks/{insights.svelte.js-Buez8RTS.js → insights.svelte.js-DZqfDUCl.js} +4 -4
- package/build/server/chunks/chunks/{internal.js-DK7xaPVY.js → internal.js-DpvEcL3m.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-CJIUvfTQ.js → keychain.js-CUptlCB0.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-nufBLQts.js → marketplace-service.js-CcEt-Yt_.js} +2 -2
- package/build/server/chunks/chunks/{page.js-BVYP5P0m.js → page.js-CSdkAlGz.js} +3 -3
- package/build/server/chunks/chunks/{previewhelper2.js-DPz8atKx.js → previewhelper2.js-Dz5p1Ak0.js} +2 -2
- package/build/server/chunks/chunks/{starter.js-Bs7SaswL.js → remote.js-B9wIv4yQ.js} +19 -339
- package/build/server/chunks/chunks/{repo.js-CPooM_kq.js → repo.js-n0uiFQ_1.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-Bj0q2OTu.js → runtime.js-D8WQmN9S.js} +580 -60
- package/build/server/chunks/chunks/{service.js-VAj_rquU.js → service.js-vvxAXEiD.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-CbbDamOZ.js → service2.js-BbGi9Cq9.js} +24 -9
- package/build/server/chunks/chunks/starter.js-DzoT_I2j.js +333 -0
- package/build/server/chunks/chunks/{terminal.js-D6YKc4IS.js → terminal.js-BE8dA5Np.js} +19 -5
- package/build/server/chunks/chunks/{view.js-BiofJDNZ.js → view.js-tnJNOMBI.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-Bjepmw90.js → _server.ts.js-YypBbX7Z.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-BkCwjJYX.js → _server.ts.js-C0uCNqUj.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CXvN0rdQ.js → _server.ts.js-BesIsQP0.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-v08IH4y_.js → _server.ts.js-M4ucOHu3.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-d0XuZob6.js → _server.ts.js-DgeIgY-t.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-CZEvtgmJ.js → _server.ts.js-lSl82WdD.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DojVtSlb.js → _server.ts.js-CkUo3Q-h.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-DXBMuJxa.js → _server.ts.js-o9QvLY3R.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-CL2HsmMI.js → _server.ts.js-CM5SUIBy.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-Bi8yHsen.js → _server.ts.js-Dt0KDwmj.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-CiPPnBqE.js → _server.ts.js-DCLz7kjl.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-Dm0WehBE.js → _server.ts.js-2U13zCFK.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CmK0bQFV.js → _server.ts.js-DT31dvZa.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/firstmate/signin/_server.ts.js-C4O_w6UX.js +62 -0
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-CIR1beQf.js → _server.ts.js-L-Hjg9xg.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-B7G60uTf.js → _server.ts.js-DgHjNrJe.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BKqRzjah.js → _server.ts.js-CRltDuWU.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-DxYmytE-.js → _server.ts.js-DlLRrX7c.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-BHywbWob.js → _server.ts.js-CZgUVpTR.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-CK3DFFDx.js → _server.ts.js-DUyWZ3-9.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-AUTZjM3m.js → _server.ts.js-2CyCBr_6.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-COr7_-xt.js → _server.ts.js-CTkXGNLV.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-DdgCnxxi.js → _server.ts.js-ChgUhOxs.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-B-Bt7Bbc.js → _server.ts.js-NmoI6TdE.js} +8 -8
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DI9Fk8K7.js → _server.ts.js-BAQlQe2s.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-BQvP1Q-R.js → _server.ts.js-D5XxEnCu.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-CmtQrDJT.js → _server.ts.js-BGXT3UEn.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-CU0RTwoG.js → _server.ts.js-CMVRpUZA.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-Bdirqc6N.js → _server.ts.js-Bu9fx6v5.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-EbyqpOEx.js → _server.ts.js-ktP3gud-.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-BwkGtYFQ.js → _server.ts.js-DQBZvXwa.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CYD7YCIF.js → _server.ts.js-DkgeagPj.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-gmMaK6QY.js → _server.ts.js-Ca-EjclY.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-D43_Ml9Y.js → _server.ts.js-CHcP9p9j.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-BEUuxHTl.js → _server.ts.js-DEUeoZL0.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-C1xwZyfT.js → _server.ts.js-Cma7QVTl.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-qZdJXsGA.js → _server.ts.js-B3OF42Nq.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-BM-c0-Ju.js → _server.ts.js-DsdF_bjf.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-CHIAK59y.js → _server.ts.js-BYQjR_si.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-CH1IHuDe.js → _server.ts.js-ChDPakdg.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DgeSMGot.js → _server.ts.js-DeJijkDf.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-BQQc8aTH.js → _server.ts.js-Dymz4f3q.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-D92Af8_M.js → _server.ts.js-CeqzeUZk.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-7v53Dp0B.js → _server.ts.js-BP_16c0K.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-cTrwNrLS.js → _server.ts.js-CFk-87JF.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-CmmK_jyt.js → _server.ts.js-9cAQuLKz.js} +10 -8
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-D7-4JbRn.js → _server.ts.js-B1kwbXQm.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-BI5hlIlZ.js → _server.ts.js-DjqQGx3a.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-DIP-NQ7a.js → _server.ts.js-DDMf0gyd.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-BP9_6wCq.js → _server.ts.js-Dp3vd0K4.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-BxO3Yh5r.js → _server.ts.js-D-s6wA_g.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-jojxY4wz.js → _server.ts.js-J9_uC4S-.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-BAgqe8_d.js → _server.ts.js-Bd0wU1SA.js} +7 -7
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-DBYZ3kuk.js → _server.ts.js-BezlvrlP.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-Bvrz69xX.js → _server.ts.js-DZ0sSfFq.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-CAOg-IEp.js → _server.ts.js-BOL3EB6d.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CGEnB-6H.js → _server.ts.js-91XVVYwO.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-BL2svrRm.js → _server.ts.js-TYjteIH9.js} +6 -6
- package/build/server/chunks/entries/{hooks.server.js-BEXBvrCk.js → hooks.server.js-y6GqC__K.js} +6 -6
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-D3NceNiH.js → _layout.server.ts.js-CWR6gzcz.js} +15 -3
- package/build/server/chunks/entries/pages/{_layout.svelte.js-CuWnZ-US.js → _layout.svelte.js-BDIlEQ9G.js} +20 -7
- package/build/server/chunks/entries/pages/{_page.server.ts.js-DspaiJqP.js → _page.server.ts.js-ClSaGoxW.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.svelte.js-dxbEuRWy.js → _page.svelte.js-DAV9f-2z.js} +96 -16
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-BmPOLjxU.js → _page.server.ts.js-CmVt5_0H.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-CCy338c9.js → _page.server.ts.js-Djt-UMHk.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.svelte.js-TazICq1a.js → _page.svelte.js-DYZLLbYM.js} +6 -5
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-bxjhlft-.js → _page.server.ts.js-BD7N_qlq.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-CZFURrsD.js → _page.server.ts.js-BWEvvkXd.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-DvR2S3u3.js → _page.server.ts.js-DEnGvqY7.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-BesipmjT.js → _page.server.ts.js-BcSyMgQ3.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.svelte.js-BOndKRgZ.js → _page.svelte.js-BuV_cnZ4.js} +4 -3
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-DHdujj6W.js → _page.server.ts.js-DICSJ1yk.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-xmIQiuu2.js → _page.server.ts.js-qs8fYjoq.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-D_Ii0uof.js → _page.server.ts.js-CFVD2206.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-n6e3g77p.js → _page.server.ts.js-B_EDdf4-.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-ZJwXvTNk.js → _page.server.ts.js-CFc6J118.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-DbD1fRK0.js → _page.server.ts.js-YlsNimak.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-C_UO9VhC.js → _page.server.ts.js-C18thE2p.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DmW9-_yt.js → _page.server.ts.js-D7MA5r8B.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.svelte.js-7xxA_syu.js → _page.svelte.js-DjdutjT9.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-BxdFy--G.js → _page.server.ts.js-D7mFW6BU.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BfkLEaaA.js → _page.server.ts.js-B5PRjcEk.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-CkR40WPa.js → _page.server.ts.js-BKCf6GI8.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-CN1Ahy44.js → _page.server.ts.js-l9818Zmt.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-4IWnC99t.js → _page.server.ts.js-CYG3AjLq.js} +3 -3
- package/build/server/chunks/entries/pages/setup/{_page.svelte.js-Beyd7UV-.js → _page.svelte.js-ufidrxf2.js} +237 -62
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-BOxovAbm.js → _page.server.ts.js-C8yELGLP.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.svelte.js-Pdk-bUSp.js → _page.svelte.js-ClTXM9u_.js} +5 -4
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-Bmg4TjLJ.js → _page.server.ts.js-DH5FWFco.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-D7R4GOAK.js → _page.server.ts.js-CbGVDBOP.js} +2 -2
- package/build/server/chunks/{handler-Bsxke96k.js → handler-CXCR8Q4K.js} +3 -3
- package/build/server/chunks/{index.js-CcawFdzD.js → index.js-a92jTb4Y.js} +2 -2
- package/build/server/chunks/{manifest.js-DkK5FPTc.js → manifest.js-DlPiZuhP.js} +94 -87
- package/build/server/chunks/nodes/{0.js-Dr88qrfQ.js → 0.js-CvmTbg3U.js} +11 -11
- package/build/server/chunks/nodes/{1.js-D9Gz264j.js → 1.js-BujFb9Zi.js} +2 -2
- package/build/server/chunks/nodes/{10.js-DyFJpcP6.js → 10.js-BvDpsiPS.js} +2 -2
- package/build/server/chunks/nodes/{11.js-CHYjTTCN.js → 11.js-DnB_0WNt.js} +8 -8
- package/build/server/chunks/nodes/{12.js-CMF6MLfu.js → 12.js-DrP06vmh.js} +9 -9
- package/build/server/chunks/nodes/{13.js-Y2UOSc1A.js → 13.js-DIl2HIpF.js} +9 -9
- package/build/server/chunks/nodes/{14.js-B1dU02LJ.js → 14.js-q-yrKOw8.js} +10 -10
- package/build/server/chunks/nodes/{15.js-s36rxaaa.js → 15.js-DRka6ivw.js} +9 -9
- package/build/server/chunks/nodes/{16.js-C_GznDot.js → 16.js-DatqsdMm.js} +10 -10
- package/build/server/chunks/nodes/{17.js-B_z-Yacj.js → 17.js-Cwu5j1MM.js} +2 -2
- package/build/server/chunks/nodes/{19.js-7kkszInA.js → 19.js-Bhq4zmsU.js} +10 -10
- package/build/server/chunks/nodes/{2.js-BoKn8yL8.js → 2.js-D9vYoDxc.js} +9 -9
- package/build/server/chunks/nodes/{20.js-Duw5u3lU.js → 20.js-ByB6AIfc.js} +9 -9
- package/build/server/chunks/nodes/{21.js-DDgwWnZG.js → 21.js-2ShKtow1.js} +8 -8
- package/build/server/chunks/nodes/{22.js-8U2MYvHd.js → 22.js-CFCAypxN.js} +8 -8
- package/build/server/chunks/nodes/{23.js-Dvy1bm8Z.js → 23.js-Cx3oZxN7.js} +10 -10
- package/build/server/chunks/nodes/{24.js-C0hrPaj8.js → 24.js-Cfc2UkWc.js} +4 -4
- package/build/server/chunks/nodes/{25.js-DPILN__F.js → 25.js-BS3_PExv.js} +11 -11
- package/build/server/chunks/nodes/{26.js-g0xLmQX6.js → 26.js-yOfJBY-o.js} +10 -10
- package/build/server/chunks/nodes/{27.js-D-RYuUrP.js → 27.js-Qm4-nQTp.js} +8 -8
- package/build/server/chunks/nodes/{28.js-ChEjRlOd.js → 28.js-DvLWpxRU.js} +8 -8
- package/build/server/chunks/nodes/{3.js-2LHex_7S.js → 3.js-BVx4SYkn.js} +8 -8
- package/build/server/chunks/nodes/{4.js-B0jcFsXF.js → 4.js-BjhjiAF8.js} +9 -9
- package/build/server/chunks/nodes/{5.js-CeqH-HPW.js → 5.js-CSFZToQk.js} +7 -7
- package/build/server/chunks/nodes/{6.js-BuLAK7U9.js → 6.js-CxehRAvY.js} +8 -8
- package/build/server/chunks/nodes/{7.js-Ipoo2cZQ.js → 7.js-BD0AoE9A.js} +8 -8
- package/build/server/chunks/nodes/{8.js-BffjWe3B.js → 8.js-D27Ox14R.js} +9 -9
- package/build/server/chunks/nodes/{9.js-CCDefHMh.js → 9.js-Cpbe7mvE.js} +2 -2
- package/dist/cli.js +33 -10
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/skills/manage-wheelhouse/references/operations.md +13 -11
- package/build/client/_app/immutable/assets/0.Dyflbqc4.css +0 -1
- package/build/client/_app/immutable/assets/0.Dyflbqc4.css.br +0 -0
- package/build/client/_app/immutable/assets/0.Dyflbqc4.css.gz +0 -0
- package/build/client/_app/immutable/chunks/BDtt0Y7t.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDtt0Y7t.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BL011DGQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BL011DGQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BSBcdyd3.js.br +0 -2
- package/build/client/_app/immutable/chunks/BSBcdyd3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bj-Gheej.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bj-Gheej.js.gz +0 -0
- package/build/client/_app/immutable/chunks/COSi3XeB.js.br +0 -0
- package/build/client/_app/immutable/chunks/COSi3XeB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSzf141e.js +0 -1
- package/build/client/_app/immutable/chunks/CSzf141e.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSzf141e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C_4BzEag.js +0 -1
- package/build/client/_app/immutable/chunks/C_4BzEag.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_4BzEag.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C_QL6rvF.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_QL6rvF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClsjySa8.js +0 -1
- package/build/client/_app/immutable/chunks/ClsjySa8.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClsjySa8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CoQMrCtk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoQMrCtk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cpxqeawy.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cpxqeawy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CspN1OJw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CspN1OJw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CtiH9jvV.js.br +0 -2
- package/build/client/_app/immutable/chunks/CtiH9jvV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CzBY7r8x.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzBY7r8x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D2Frmdzl.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2Frmdzl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js +0 -1
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Dcf7qESD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dcf7qESD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Deh9Yuoc.js.br +0 -0
- package/build/client/_app/immutable/chunks/Deh9Yuoc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DglJ92hi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DglJ92hi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/I4bsCfS2.js.br +0 -0
- package/build/client/_app/immutable/chunks/JUzTNcjv.js.br +0 -0
- package/build/client/_app/immutable/chunks/JUzTNcjv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js +0 -2
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js.br +0 -0
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/luPa70aT.js.br +0 -0
- package/build/client/_app/immutable/chunks/luPa70aT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rwLE2q5W.js +0 -5
- package/build/client/_app/immutable/chunks/rwLE2q5W.js.br +0 -0
- package/build/client/_app/immutable/chunks/rwLE2q5W.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.LCo0tRMU.js +0 -2
- package/build/client/_app/immutable/entry/app.LCo0tRMU.js.br +0 -0
- package/build/client/_app/immutable/entry/app.LCo0tRMU.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js +0 -1
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DjC9pa5r.js +0 -9
- package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.C2hpIuul.js.br +0 -2
- package/build/client/_app/immutable/nodes/11.C2hpIuul.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DL0THiQT.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DL0THiQT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.8mjwurTl.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.8mjwurTl.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CarjBwi1.js +0 -26
- package/build/client/_app/immutable/nodes/2.CarjBwi1.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CarjBwi1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js +0 -20
- package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.CExYN4s7.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CExYN4s7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.gz +0 -0
- package/build/server/chunks/chunks/remote.js-C8NtkvLx.js +0 -13
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{s as yt}from"./RYq3318d.js";import{H as B,N as Y,r as me,n as N,i as je,b as T,s as $,a as Se,f as tt,g as Ie,c as oe,d as be,S as Oe,P as rt,p as I,o as Ne,e as wt,h as vt,u as De,j as bt,w as Et,k as Ge,l as G,m as At,q as nt,t as kt,v as St,x as at}from"./CSzf141e.js";import{G as se,a8 as It,A as Rt}from"./BuRWgnCz.js";class te{constructor(t,r){this.status=t,typeof r=="string"?this.body={message:r}:r?this.body=r:this.body={message:`Error: ${t}`}}toString(){return JSON.stringify(this.body)}}class xe{constructor(t,r){try{new Headers({location:r})}catch{throw new Error(`Invalid redirect location ${JSON.stringify(r)}: this string contains characters that cannot be used in HTTP headers`)}this.status=t,this.location=r}}class Ce extends Error{constructor(t,r,n){super(n),this.status=t,this.text=r}}const Pt=/^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/,Lt=/^\/\((?:[^)]+)\)$/;function Tt(e){const t=[];return{pattern:e==="/"||Lt.test(e)?/^\/$/:new RegExp(`^${jt(e).map(n=>{const i=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(n);if(i)return t.push({name:i[1],matcher:i[2],optional:!1,rest:!0,chained:!0}),"(?:/([^]*))?";const a=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(n);if(a)return t.push({name:a[1],matcher:a[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!n)return;const o=n.split(/\[(.+?)\](?!\])/);return"/"+o.map((c,f)=>{if(f%2){if(c.startsWith("x+"))return Ee(String.fromCharCode(parseInt(c.slice(2),16)));if(c.startsWith("u+"))return Ee(String.fromCharCode(...c.slice(2).split("-").map(w=>parseInt(w,16))));const l=Pt.exec(c),[,d,p,u,h]=l;return t.push({name:u,matcher:h,optional:!!d,rest:!!p,chained:p?f===1&&o[0]==="":!1}),p?"([^]*?)":d?"([^/]*)?":"([^/]+?)"}return Ee(c)}).join("")}).join("")}/?$`),params:t}}function Ut(e){return e!==""&&!/^\([^)]+\)$/.test(e)}function jt(e){return e.slice(1).split("/").filter(Ut)}function Ot(e,t,r){const n={},i=e.slice(1),a=i.filter(s=>s!==void 0);let o=0;for(let s=0;s<t.length;s+=1){const c=t[s];let f=i[s-o];if(c.chained&&c.rest&&o&&(f=i.slice(s-o,s+1).filter(l=>l).join("/"),o=0),f===void 0)if(c.rest)f="";else continue;if(!c.matcher||r[c.matcher](f)){n[c.name]=f;const l=t[s+1],d=i[s+1];l&&!l.rest&&l.optional&&d&&c.chained&&(o=0),!l&&!d&&Object.keys(n).length===a.length&&(o=0);continue}if(c.optional&&c.chained){o++;continue}return}if(!o)return n}function Ee(e){return e.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function Nt({nodes:e,server_loads:t,dictionary:r,matchers:n}){const i=new Set(t);return Object.entries(r).map(([s,[c,f,l]])=>{const{pattern:d,params:p}=Tt(s),u={id:s,exec:h=>{const w=d.exec(h);if(w)return Ot(w,p,n)},errors:[1,...l||[]].map(h=>e[h]),layouts:[0,...f||[]].map(o),leaf:a(c)};return u.errors.length=u.layouts.length=Math.max(u.errors.length,u.layouts.length),u});function a(s){const c=s<0;return c&&(s=~s),[c,e[s]]}function o(s){return s===void 0?s:[i.has(s),e[s]]}}function ot(e,t=JSON.parse){try{return t(sessionStorage[e])}catch{}}function Xe(e,t,r=JSON.stringify){const n=r(t);try{sessionStorage[e]=n}catch{}}const Dt=-1,xt=-2,Ct=-3,Bt=-4,Mt=-5,$t=-6,Ft=-7,st=2**32-1,Re=st-1;function Vt(e){return!(!Number.isInteger(e)||e<0||e>Re)}function qt(e){return!(!Number.isInteger(e)||e<0||e>st)}function Ht(e){return Uint8Array.fromBase64(e).buffer}function Yt(e){return Uint8Array.from(Buffer.from(e,"base64")).buffer}function Kt(e){const t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer}const zt=typeof Uint8Array.fromBase64=="function",Gt=typeof process=="object"&&process.versions?.node!==void 0,Xt=zt?Ht:Gt?Yt:Kt;function Wt(e,t){return e}const Jt=Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get,We=typeof SharedArrayBuffer>"u"?void 0:Object.getOwnPropertyDescriptor(SharedArrayBuffer.prototype,"byteLength").get,Zt={fromPrimitive:e=>e,fromISOString:e=>new Date(e),fromStringValue:(e,t)=>e==="URL"?new URL(t):e==="URLSearchParams"?new URLSearchParams(t):Temporal[e.slice(9)].from(t),fromArrayBuffer:e=>e,fromRegExpInfo:(e,t)=>new RegExp(e,t),fromViewInfo:(e,t,r,n)=>{try{Jt.call(t)}catch(a){if(!We)throw a;We.call(t)}const i=globalThis[e];return r!==void 0?new i(t,r,n):new i(t)},box:e=>Object(e),createArray:e=>new Array(e),createSparseArray:e=>{const t=[];return t[Re]=void 0,delete t[Re],t.length=e,t},createObject:()=>({}),createNullPrototypeObject:()=>Object.create(null),createSet:()=>new Set,createMap:()=>new Map,set:(e,t,r)=>{e[t]=r},addValue:(e,t)=>{e.add(t)},addEntry:(e,t,r)=>{e.set(t,r)}},Qt=Object.freeze(Zt);function er(e,t,r){const n=Wt(Qt);if(typeof e=="number")return s(e,!0);if(!Array.isArray(e)||e.length===0)throw new Error("Invalid input");const i=e,a=Array(i.length);let o=null;function s(c,f=!1){if(c===Dt)return n.fromPrimitive(void 0);if(c===Ct)return n.fromPrimitive(NaN);if(c===Bt)return n.fromPrimitive(1/0);if(c===Mt)return n.fromPrimitive(-1/0);if(c===$t)return n.fromPrimitive(-0);if(f||typeof c!="number")throw new Error("Invalid input");if(c in a)return a[c];if(c>=i.length)throw new Error("Invalid input");const l=i[c];if(!l||typeof l!="object")a[c]=n.fromPrimitive(l);else if(Array.isArray(l))if(typeof l[0]=="string"){const d=l[0],p=t&&Object.hasOwn(t,d)?t[d]:void 0;if(p){let u=l[1];if(typeof u!="number"&&(u=i.push(l[1])-1),Object.hasOwn(a,u))return a[c]=p(a[u]);if(o??=new Set,o.has(u))throw new Error("Invalid circular reference");return o.add(u),a[c]=p(s(u)),o.delete(u),a[c]}switch(d){case"Date":a[c]=n.fromISOString(l[1]);break;case"Set":const u=n.createSet();a[c]=u;for(let _=1;_<l.length;_+=1)n.addValue(u,s(l[_]));break;case"Map":const h=n.createMap();a[c]=h;for(let _=1;_<l.length;_+=2)n.addEntry(h,s(l[_]),s(l[_+1]));break;case"RegExp":a[c]=n.fromRegExpInfo(l[1],l[2]);break;case"Object":{const _=l[1];if(typeof i[_]=="object"&&i[_][0]!=="BigInt")throw new Error("Invalid input");a[c]=n.box(s(_));break}case"BigInt":a[c]=n.fromPrimitive(BigInt(l[1]));break;case"null":const w=n.createNullPrototypeObject();a[c]=w;for(let _=1;_<l.length;_+=2){const m=l[_];if(typeof m!="string")throw new Error("Cannot parse an object with a non-string key");if(m==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(w,m,s(l[_+1]))}break;case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Float16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":case"DataView":{if(i[l[1]][0]!=="ArrayBuffer")throw new Error("Invalid data");const _=s(l[1]);a[c]=n.fromViewInfo(d,_,l[2],l[3]);break}case"ArrayBuffer":{const _=l[1];if(typeof _!="string")throw new Error("Invalid ArrayBuffer encoding");a[c]=n.fromArrayBuffer(Xt(_));break}case"URL":case"URLSearchParams":case"Temporal.Duration":case"Temporal.Instant":case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.PlainMonthDay":case"Temporal.PlainYearMonth":case"Temporal.ZonedDateTime":{a[c]=n.fromStringValue(d,l[1]);break}default:throw new Error(`Unknown type ${d}`)}}else if(l[0]===Ft){const d=l[1];if(!qt(d))throw new Error("Invalid input");const p=n.createSparseArray(d);a[c]=p;for(let u=2;u<l.length;u+=2){const h=l[u];if(!Vt(h)||h>=d)throw new Error("Invalid input");n.set(p,h,s(l[u+1]))}}else{const d=n.createArray(l.length);a[c]=d;for(let p=0;p<l.length;p+=1){const u=l[p];u!==xt&&n.set(d,p,s(u))}}else{const d=n.createObject();a[c]=d;for(const p of Object.keys(l)){if(p==="__proto__")throw new Error("Cannot parse an object with a `__proto__` property");n.set(d,p,s(l[p]))}}return a[c]}return s(0)}function tr(e){return e.filter(t=>t!=null)}const rr="x-sveltekit-invalidated",nr="x-sveltekit-trailing-slash";function F(e,t){return e+"/"+t}function ie(e){return e instanceof te||e instanceof Ce?e.status:500}function ar(e){return e instanceof Ce?e.text:"Internal Error"}const or="/__data.json",sr=".html__data.json";function ir(e){return e.endsWith(".html")?e.replace(/\.html$/,sr):e.replace(/\/$/,"")+or}async function*cr(e,t){let r=!1,n="";const i=new TextDecoder;for(;;){let a=n.indexOf(t);for(;a!==-1;)yield n.slice(0,a),n=n.slice(a+t.length),a=n.indexOf(t);if(r){n&&(yield n);return}const o=await e.read();r=o.done,o.value&&(n+=i.decode(o.value,{stream:!0})),r&&(n+=i.decode())}}async function*lr(e){for await(const t of cr(e,`
|
|
2
|
-
`)){const r=t.trim();r&&(yield JSON.parse(r))}}const{onMount:fr}=yt,ur=Rt??(e=>e()),dr=new Set(["icon","shortcut icon","apple-touch-icon"]);let X=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:Ge({}),page:Ge({}),navigating:Et(null),updated:bt()};function Be(e){x[e]=$()}function hr(e,t){let r=e+1;for(;x[r];)delete x[r],r+=1;for(r=t+1;Z[r];)delete Z[r],r+=1}function K(e,t=!1){return t?location.replace(e.href):location.href=e.href,new Promise(N)}async function it(){if("serviceWorker"in navigator){const e=await navigator.serviceWorker.getRegistration(T||"/");e&&await e.update()}}let Me,Pe,ce,O,Le,E;const le=[],fe=[];let L=null;function Q(){L?.fork?.then(e=>e?.discard()),L=null,V={element:void 0,href:void 0}}const ae=new Map,$e=new Set,ct=new Set,q=new Set;let g={branch:[],error:null,url:null,nav:null},Fe=!1,ue=!1,Je=!0,ee=!1,W=!1,lt=!1,re=!1,ge,k,R,U;const J=new Set;let Ae;const de=new Map,he=new Map;async function Ur(e,t,r){if(globalThis.__sveltekit_1mehz88.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_1mehz88.data;for(const f in a)a[f];for(const f in s)s[f];for(const f in c)c[f];for(const f in o)o[f]}document.URL!==location.href&&(location.href=location.href),E=e,await e.hooks.init?.(),Me=Nt(e),O=document.documentElement,Le=t,Pe=e.nodes[0],ce=e.nodes[1],Pe(),ce(),k=history.state?.[B],R=history.state?.[Y],k||(k=R=Date.now(),history.replaceState({...history.state,[B]:k,[Y]:R},""));const n=x[k];function i(){n&&(history.scrollRestoration="manual",scrollTo(n.x,n.y))}r?(i(),await kr(Le,r)):(await H({type:"enter",url:me(E.hash?Rr(new URL(location.href)):location.href),replace_state:!0}),i()),Ar()}async function pr(e=!0,t=!0){if(await(Ae||=Promise.resolve()),!Ae)return;Ae=null;const r=U={},n=await ne(g.url,!0);Q();const i=new Map;if(re){for(const o of de.values())for(const{resource:s}of o.values())s.refresh();for(const[o,s]of he)for(const[c,{resource:f}]of s){const l=F(o,c),d=f.reconnect();d.catch(N),i.set(l,d)}}if(e){const o=I.state,s=n&&await Ye(n);if(!s||r!==U)return;if(s.type==="redirect")return Ve(new URL(s.location,g.url).href,{replaceState:!0},1,r);t||(s.props.page.state=o),De(s.props.page),g={...s.state,nav:g.nav},Te(),ge.$set(s.props)}else Te();const a=[];for(const o of de.values())for(const{resource:s}of o.values())a.push(s);for(const[o,s]of he)for(const c of s.keys()){const f=F(o,c),l=i.get(f);l&&a.push(l)}await Promise.all(a).catch(N)}function Te(){le.length=0,re=!1}function ft(e){fe.some(t=>t?.snapshot)&&(Z[e]=fe.map(t=>t?.snapshot?.capture()))}function ut(e){Z[e]?.forEach((t,r)=>{fe[r]?.snapshot?.restore(t)})}function Ze(){Be(k),Xe(at,x),ft(R),Xe(nt,Z)}async function Ve(e,t,r,n){let i,a;t.invalidateAll&&Q(),await H({type:"goto",url:me(e),keepfocus:t.keepFocus,noscroll:t.noScroll,replace_state:t.replaceState,state:t.state,redirect_count:r,nav_token:n,accept:()=>{if(t.invalidateAll){re=!0,i=new Set;for(const[o,s]of de)for(const[c,f]of s)f.resource?.reset(),i.add(F(o,c));a=new Set;for(const[o,s]of he)for(const c of s.keys())a.add(F(o,c))}t.invalidate&&t.invalidate.forEach(Er)}}),t.invalidateAll&&se().then(se).then(()=>{for(const[o,s]of de)for(const[c,{resource:f}]of s)i?.has(F(o,c))&&f.start();for(const[o,s]of he)for(const[c,{resource:f}]of s)a?.has(F(o,c))&&f.reconnect()})}async function _r(e){if(e.id!==L?.id){Q();const t={};J.add(t),L={id:e.id,token:t,promise:Ye({...e,preload:t}).then(r=>(J.delete(t),r.type==="loaded"&&r.state.error&&Q(),r)),fork:null}}return L.promise}async function ke(e){const t=(await ne(e,!1))?.route;t&&await Promise.all([...t.layouts,t.leaf].filter(Boolean).map(r=>r[1]()))}async function dt(e,t,r){const n={params:g.params,route:{id:g.route?.id??null},url:new URL(location.href)};if(g={...e.state,nav:n},De(e.props.page),ge=new E.root({target:t,props:{...e.props,stores:D,components:fe},hydrate:r,sync:!1,transformError:void 0}),await Promise.resolve(),r){const i={from:null,to:{...n,scroll:x[k]??$()},willUnload:!1,type:"enter",complete:Promise.resolve()};q.forEach(a=>a(i))}ut(R),ue=!0}async function pe({url:e,params:t,branch:r,errors:n,status:i,error:a,route:o,form:s}){let c="never";if(T&&(e.pathname===T||e.pathname===T+"/"))c="always";else for(const h of r)h?.slash!==void 0&&(c=h.slash);e.pathname=vt(e.pathname,c),e.search=e.search;const f={type:"loaded",state:{url:e,params:t,branch:r,error:a,route:o},props:{constructors:tr(r).map(h=>h.node.component),page:we(I)}};s!==void 0&&(f.props.form=s);let l={},d=!I,p=0;for(let h=0;h<Math.max(r.length,g.branch.length);h+=1){const w=r[h],_=g.branch[h];w?.data!==_?.data&&(d=!0),w&&(l={...l,...w.data},d&&(f.props[`data_${p}`]=l),p+=1)}return(!g.url||e.href!==g.url.href||g.error!==a||s!==void 0&&s!==I.form||d)&&(f.props.page={error:a,params:t,route:{id:o?.id??null},state:{},status:i,url:new URL(e),form:s??null,data:d?l:I.data}),f}async function qe({loader:e,parent:t,url:r,params:n,route:i,server_data_node:a}){let o=null;const s={dependencies:new Set,params:new Set,parent:!1,route:!1,url:!1,search_params:new Set},c=await e();return{node:c,loader:e,server:a,universal:c.universal?.load?{type:"data",data:o,uses:s}:null,data:o??a?.data??null,slash:c.universal?.trailingSlash??a?.slash}}function mr(e,t,r){let n=e instanceof Request?e.url:e;const i=new URL(n,r);i.origin===r.origin&&(n=i.href.slice(r.origin.length));const a=ue?kt(n,i.href,t):St(n,t);return{resolved:i,promise:a}}function Qe(e,t,r,n,i,a){if(re)return!0;if(!i)return!1;if(i.parent&&e||i.route&&t||i.url&&r)return!0;for(const o of i.search_params)if(n.has(o))return!0;for(const o of i.params)if(a[o]!==g.params[o])return!0;for(const o of i.dependencies)if(le.some(s=>s(new URL(o))))return!0;return!1}function He(e,t){return e?.type==="data"?e:e?.type==="skip"?t??null:null}function gr(e,t){if(!e)return new Set(t.searchParams.keys());const r=new Set([...e.searchParams.keys(),...t.searchParams.keys()]);for(const n of r){const i=e.searchParams.getAll(n),a=t.searchParams.getAll(n);i.every(o=>a.includes(o))&&a.every(o=>i.includes(o))&&r.delete(n)}return r}function et({error:e,url:t,route:r,params:n}){return{type:"loaded",state:{error:e,url:t,route:r,params:n,branch:[]},props:{page:we(I),constructors:[]}}}async function Ye({id:e,invalidating:t,url:r,params:n,route:i,preload:a}){if(L?.id===e)return J.delete(L.token),L.promise;const{errors:o,layouts:s,leaf:c}=i,f=[...s,c];o.forEach(y=>y?.().catch(N)),f.forEach(y=>y?.[1]().catch(N));let l=null;const d=g.url?e!==_e(g.url):!1,p=g.route?i.id!==g.route.id:!1,u=gr(g.url,r);let h=!1;{const y=f.map((v,A)=>{const S=g.branch[A],b=!!v?.[0]&&(S?.loader!==v[1]||Qe(h,p,d,u,S.server?.uses,n));return b&&(h=!0),b});if(y.some(Boolean)){try{l=await _t(r,y)}catch(v){const A=await M(v,{url:r,params:n,route:{id:e}});return a&&J.has(a)?et({error:A,url:r,params:n,route:i}):ye({status:ie(v),error:A,url:r,route:i})}if(l.type==="redirect")return l}}const w=l?.nodes;let _=!1;const m=f.map(async(y,v)=>{if(!y)return;const A=g.branch[v],S=w?.[v];if((!S||S.type==="skip")&&y[1]===A?.loader&&!Qe(_,p,d,u,A.universal?.uses,n))return A;if(_=!0,S?.type==="error")throw S;return qe({loader:y[1],url:r,params:n,route:i,parent:async()=>{const j={};for(let C=0;C<v;C+=1)Object.assign(j,(await m[C])?.data);return j},server_data_node:He(S===void 0&&y[0]?{type:"skip"}:S??null,y[0]?A?.server:void 0)})});for(const y of m)y.catch(N);const P=[];for(let y=0;y<f.length;y+=1)if(f[y])try{P.push(await m[y])}catch(v){if(v instanceof xe)return{type:"redirect",location:v.location};if(a&&J.has(a))return et({error:await M(v,{params:n,url:r,route:{id:i.id}}),url:r,params:n,route:i});let A=ie(v),S;if(w?.includes(v))A=v.status??A,S=v.error;else if(v instanceof te)S=v.body;else{if(await D.updated.check())return await it(),await K(r);S=await M(v,{params:n,url:r,route:{id:i.id}})}const b=await yr(y,P,o);return b?pe({url:r,params:n,branch:P.slice(0,b.idx).concat(b.node),errors:o,status:A,error:S,route:i}):await pt(r,{id:i.id},S,A)}else P.push(void 0);return pe({url:r,params:n,branch:P,errors:o,status:200,error:null,route:i,form:t?void 0:null})}async function yr(e,t,r){for(;e--;)if(r[e]){let n=e;for(;!t[n];)n-=1;try{return{idx:n+1,node:{node:await r[e](),loader:r[e],data:{},server:null,universal:null}}}catch{continue}}}async function ye({status:e,error:t,url:r,route:n}){const i={};let a=null;if(E.server_loads[0]===0)try{const s=await _t(r,[!0]);if(s.type!=="data"||s.nodes[0]&&s.nodes[0].type!=="data")throw 0;a=s.nodes[0]??null}catch(s){if(!(s instanceof te&&s.status===404)&&(r.origin!==Ne||r.pathname!==location.pathname||Fe))return await K(r)}try{const o=await qe({loader:Pe,url:r,params:i,route:n,parent:()=>Promise.resolve({}),server_data_node:He(a)}),s={node:await ce(),loader:ce,universal:null,server:null,data:null};return pe({url:r,params:i,branch:[o,s],status:e,error:t,errors:[],route:null})}catch(o){if(o instanceof xe){await Ve(new URL(o.location,location.href),{},0);return}const s=await E.get_error_template(),c=await M(o,{url:r,params:i,route:n}),f=String(c?.message??"").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),l=s({status:e,message:f}),d=new DOMParser().parseFromString(l,"text/html");throw document.documentElement.replaceChild(document.adoptNode(d.head),document.head),document.documentElement.replaceChild(document.adoptNode(d.body),document.body),o}}async function wr(e){const t=e.href;if(ae.has(t))return ae.get(t);let r;try{const n=(async()=>{let i=await E.hooks.reroute({url:new URL(e),fetch:async(a,o)=>mr(a,o,e).promise})??e;if(typeof i=="string"){const a=new URL(e);E.hash?a.hash=i:a.pathname=i,i=a}return i})();ae.set(t,n),r=await n}catch{ae.delete(t);return}return r}async function ne(e,t){if(e&&!je(e,T,E.hash)){const r=await wr(e);if(!r)return;const n=vr(r);for(const i of Me){const a=i.exec(n);if(a)return{id:_e(e),invalidating:t,route:i,params:wt(a),url:e}}}}function vr(e){return At(E.hash?e.hash.replace(/^#/,"").replace(/[?#].+/,""):e.pathname.slice(T.length))||"/"}function _e(e){return(E.hash?e.hash.replace(/^#/,""):e.pathname)+e.search}function ht({url:e,type:t,intent:r,delta:n,event:i,scroll:a}){let o=!1;const s=ze(g,r,e,t,a??null);n!==void 0&&(s.navigation.delta=n),i!==void 0&&(s.navigation.event=i);const c={...s.navigation,cancel:()=>{o=!0,s.reject(new Error("navigation cancelled"))}};return ee||$e.forEach(f=>f(c)),o?null:s}async function H({type:e,url:t,popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o={},redirect_count:s=0,nav_token:c={},accept:f=N,block:l=N,event:d}){const p=U;U=c;const u=await ne(t,!1),h=e==="enter"?ze(g,u,t,e):ht({url:t,type:e,delta:r?.delta,intent:u,scroll:r?.scroll,event:d});if(!h){l(),U===c&&(U=p);return}const w=k,_=R;f(),ee=!0,ue&&h.navigation.type!=="enter"&&D.navigating.set(Se.current=h.navigation);let m=u&&await Ye(u);if(!m){if(je(t,T,E.hash))return await K(t,a);m=await pt(t,{id:null},await M(new Ce(404,"Not Found",`Not found: ${t.pathname}`),{url:t,params:{},route:{id:null}}),404,a)}if(t=u?.url||t,U!==c){h.reject(new Error("navigation aborted"));return}if(!m)return;if(m.type==="redirect"){if(s<20){await H({type:e,url:new URL(m.location,t),popped:r,keepfocus:n,noscroll:i,replace_state:a,state:o,redirect_count:s+1,nav_token:c}),h.fulfil(void 0);return}if(m=await ye({status:500,error:await M(new Error("Redirect loop"),{url:t,params:{},route:{id:null}}),url:t,route:{id:null}}),!m)return}else if(m.props.page.status>=400&&await D.updated.check())return await it(),await K(t,a);if(Te(),Be(w),ft(_),m.props.page.url.pathname!==t.pathname&&(t.pathname=m.props.page.url.pathname),o=r?r.state:o,!r){const b=a?0:1,j={[B]:k+=b,[Y]:R+=b,[Oe]:o};(a?history.replaceState:history.pushState).call(history,j,"",t),a||hr(k,R)}const P=u&&L?.id===u.id?L.fork:null;L?.fork&&!P?Q():(L=null,V={element:void 0,href:void 0}),m.props.page.state=o;let y;if(ue){const b=(await Promise.all(Array.from(ct,z=>z(h.navigation)))).filter(z=>typeof z=="function");if(b.length>0){let z=function(){b.forEach(ve=>{q.delete(ve)})};b.push(z),b.forEach(ve=>{q.add(ve)})}const j=h.navigation.to;g={...m.state,nav:{params:j.params,route:j.route,url:j.url}},m.props.page&&(m.props.page.url=t),!n&&document.activeElement instanceof HTMLElement&&document.activeElement!==document.body&&document.activeElement.blur();const C=P&&await P;C?y=C.commit():(X=null,ge.$set(m.props),X&&Object.assign(m.props.page,X),De(m.props.page),y=It?.()),lt=!0}else await dt(m,Le,!1);const{activeElement:v}=document;if(await y,await se(),await se(),U!==c){h.reject(new Error("navigation aborted"));return}m.props.page&&X&&Object.assign(m.props.page,X);let A=null;if(Je){const b=r?r.scroll:i?$():null;b?scrollTo(b.x,b.y):(A=t.hash&&document.getElementById(gt(t)))?A.scrollIntoView():scrollTo(0,0)}const S=document.activeElement!==v&&document.activeElement!==document.body;!n&&!S&&Ir(t,!A),Je=!0,ee=!1,h.fulfil(void 0),h.navigation.to&&(h.navigation.to.scroll=$()),q.forEach(b=>b(h.navigation)),e==="popstate"&&ut(R),D.navigating.set(Se.current=null)}async function pt(e,t,r,n,i){return e.origin===Ne&&e.pathname===location.pathname&&!Fe?await ye({status:n,error:r,url:e,route:t}):await K(e,i)}let V={element:void 0,href:void 0};function br(){let e,t;O.addEventListener("mousemove",o=>{const s=o.target;clearTimeout(e),e=setTimeout(()=>{i(s,G.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],G.tap)}O.addEventListener("mousedown",r),O.addEventListener("touchstart",r,{passive:!0});const n=new IntersectionObserver(o=>{for(const s of o)s.isIntersecting&&(ke(new URL(s.target.href)),n.unobserve(s.target))},{threshold:0});async function i(o,s){const c=tt(o,O),f=c===V.element&&c?.href===V.href&&s>=t;if(!c||f)return;const{url:l,external:d,download:p}=Ie(c,T,E.hash);if(d||p)return;const u=oe(c),h=l&&_e(g.url)===_e(l);if(!(u.reload||h))if(s<=u.preload_data){V={element:c,href:c.href},t=G.tap;const w=await ne(l,!1);if(!w)return;_r(w)}else s<=u.preload_code&&(V={element:c,href:c.href},t=s,ke(l))}function a(){n.disconnect();for(const o of O.querySelectorAll("a")){const{url:s,external:c,download:f}=Ie(o,T,E.hash);if(c||f)continue;const l=oe(o);l.reload||(l.preload_code===G.viewport&&n.observe(o),l.preload_code===G.eager&&ke(s))}}q.add(a),a()}function M(e,t){if(e instanceof te)return e.body;const r=ie(e),n=ar(e);return E.hooks.handleError({error:e,event:t,status:r,message:n})??{message:n}}function Ke(e,t){fr(()=>(e.add(t),()=>{e.delete(t)}))}function jr(e){Ke(q,e)}function Or(e){Ke($e,e)}function Nr(e){Ke(ct,e)}function Dr(e,t={}){return e=new URL(me(e)),e.origin!==Ne?Promise.reject(new Error("goto: invalid URL")):Ve(e,t,0)}function Er(e){if(typeof e=="function")le.push(e);else{const{href:t}=new URL(e,location.href);le.push(r=>r.href===t)}}function xr(){return re=!0,pr()}function Cr(e,t){const r={[B]:k,[Y]:R,[rt]:I.url.href,[Oe]:t};history.replaceState(r,"",me(e)),I.state=t,ge.$set({page:ur(()=>we(I))})}function Ar(){history.scrollRestoration="manual",addEventListener("beforeunload",t=>{let r=!1;if(Ze(),!ee){const n=ze(g,void 0,null,"leave"),i={...n.navigation,cancel:()=>{r=!0,n.reject(new Error("navigation cancelled"))}};$e.forEach(a=>a(i))}r?(t.preventDefault(),t.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Ze()}),navigator.connection?.saveData||br(),O.addEventListener("click",async t=>{if(t.button||t.which!==1||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.defaultPrevented)return;const r=tt(t.composedPath()[0],O);if(!r)return;const{url:n,external:i,target:a,download:o}=Ie(r,T,E.hash);if(!n)return;if(a==="_parent"||a==="_top"){if(window.parent!==window)return}else if(a&&a!=="_self")return;const s=oe(r);if(!(r instanceof SVGAElement)&&n.protocol!==location.protocol&&!(n.protocol==="https:"||n.protocol==="http:")||o)return;const[f,l]=(E.hash?n.hash.replace(/^#/,""):n.href).split("#"),d=f===be(location);if(i||s.reload&&(!d||!l)){ht({url:n,type:"link",event:t})?ee=!0:t.preventDefault();return}if(l!==void 0&&d){const[,p]=g.url.href.split("#");if(p===l){if(t.preventDefault(),l===""||l==="top"&&r.ownerDocument.getElementById("top")===null)scrollTo({top:0});else{const u=r.ownerDocument.getElementById(decodeURIComponent(l));u&&(u.scrollIntoView(),u.focus())}return}if(W=!0,Be(k),e(n),!s.replace_state)return;W=!1}t.preventDefault(),await new Promise(p=>{requestAnimationFrame(()=>{setTimeout(p,0)}),setTimeout(p,100)}),await H({type:"link",url:n,keepfocus:s.keepfocus,noscroll:s.noscroll,replace_state:s.replace_state??n.href===location.href,event:t})}),O.addEventListener("submit",t=>{if(t.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(t.target),n=t.submitter;if((n?.formTarget||r.target)==="_blank"||(n?.formMethod||r.method)!=="get")return;const o=new URL(n?.hasAttribute("formaction")&&n?.formAction||r.action);if(je(o,T,!1))return;const s=t.target,c=oe(s);if(c.reload)return;t.preventDefault(),t.stopPropagation();const f=new FormData(s,n);o.search=new URLSearchParams(f).toString(),H({type:"form",url:o,keepfocus:c.keepfocus,noscroll:c.noscroll,replace_state:c.replace_state??o.href===location.href,event:t})}),addEventListener("popstate",async t=>{if(!Ue){if(t.state?.[B]){const r=t.state[B];if(U={},r===k)return;const n=x[r],i=t.state[Oe]??{},a=new URL(t.state[rt]??location.href),o=t.state[Y],s=g.url?be(location)===be(g.url):!1;if(o===R&&(lt||s)){i!==I.state&&(I.state=i),e(a),x[k]=$(),n&&scrollTo(n.x,n.y),k=r;return}const f=r-k;await H({type:"popstate",url:a,popped:{state:i,scroll:n,delta:f},accept:()=>{k=r,R=o},block:()=>{history.go(-f)},nav_token:U,event:t})}else if(!W){const r=new URL(location.href);e(r),E.hash&&location.reload()}}}),addEventListener("hashchange",()=>{W&&(W=!1,history.replaceState({...history.state,[B]:++k,[Y]:R},"",location.href))});for(const t of document.querySelectorAll("link"))dr.has(t.rel)&&(t.href=t.href);addEventListener("pageshow",t=>{t.persisted&&D.navigating.set(Se.current=null)});function e(t){g.url=I.url=t,D.page.set(we(I)),D.page.notify()}}async function kr(e,{status:t=200,error:r,node_ids:n,params:i,route:a,server_route:o,data:s,form:c}){Fe=!0;const f=new URL(location.href);let l;({params:i={},route:a={id:null}}=await ne(f,!1)||{}),l=Me.find(({id:u})=>u===a.id);let d,p=!0;try{const u=n.map(async(w,_)=>{const m=s[_];return m?.uses&&(m.uses=mt(m.uses)),qe({loader:E.nodes[w],url:f,params:i,route:a,parent:async()=>{const P={};for(let y=0;y<_;y+=1)Object.assign(P,(await u[y]).data);return P},server_data_node:He(m)})}),h=await Promise.all(u);if(l){const w=l.layouts;for(let _=0;_<w.length;_++)w[_]||h.splice(_,0,void 0)}d=await pe({url:f,params:i,branch:h,status:t,error:r,errors:l?.errors,form:c,route:l??null})}catch(u){if(u instanceof xe)return await K(new URL(u.location,location.href));d=await ye({status:ie(u),error:await M(u,{url:f,params:i,route:a}),url:f,route:a}),e.textContent="",p=!1}d&&(d.props.page&&(d.props.page.state={}),await dt(d,e,p))}async function _t(e,t){const r=new URL(e);r.pathname=ir(e.pathname),e.pathname.endsWith("/")&&r.searchParams.append(nr,"1"),r.searchParams.append(rr,t.map(a=>a?"1":"0").join(""));const n=window.fetch,i=await n(r.href,{});if(!i.ok){let a;throw i.headers.get("content-type")?.includes("application/json")?a=await i.json():i.status===404?a="Not Found":i.status===500&&(a="Internal Error"),new te(i.status,a)}return new Promise((a,o)=>{Sr(a,i).catch(o)})}async function Sr(e,t){const r=t.body.getReader(),n=new Map;function i(a){return er(a,{...E.decoders,Promise:o=>new Promise((s,c)=>{n.set(o,{fulfil:s,reject:c})})})}for await(const a of lr(r)){if(a.type==="redirect")return e(a);if(a.type==="data")a.nodes?.forEach(o=>{o?.type==="data"&&(o.uses=mt(o.uses),o.data=i(o.data))}),e(a);else if(a.type==="chunk"){const{id:o,data:s,error:c}=a,f=n.get(o);n.delete(o),c?f.reject(i(c)):f.fulfil(i(s))}}}function mt(e){return{dependencies:new Set(e?.dependencies??[]),params:new Set(e?.params??[]),parent:!!e?.parent,route:!!e?.route,url:!!e?.url,search_params:new Set(e?.search_params??[])}}let Ue=!1;function Ir(e,t=!0){const r=document.querySelector("[autofocus]");if(r)r.focus();else{const n=gt(e);if(n&&document.getElementById(n)){const{x:a,y:o}=$();setTimeout(()=>{const s=history.state;Ue=!0,location.replace(new URL(`#${n}`,location.href)),history.replaceState(s,"",e),t&&scrollTo(a,o),Ue=!1})}else{const a=document.body,o=a.getAttribute("tabindex");a.tabIndex=-1,a.focus({preventScroll:!0,focusVisible:!1}),o!==null?a.setAttribute("tabindex",o):a.removeAttribute("tabindex")}const i=getSelection();if(i&&i.type!=="None"){const a=[];for(let o=0;o<i.rangeCount;o+=1)a.push(i.getRangeAt(o));setTimeout(()=>{if(i.rangeCount===a.length){for(let o=0;o<i.rangeCount;o+=1){const s=a[o],c=i.getRangeAt(o);if(s.commonAncestorContainer!==c.commonAncestorContainer||s.startContainer!==c.startContainer||s.endContainer!==c.endContainer||s.startOffset!==c.startOffset||s.endOffset!==c.endOffset)return}i.removeAllRanges()}})}}}function ze(e,t,r,n,i=null){let a,o;const s=new Promise((f,l)=>{a=f,o=l});return s.catch(N),{navigation:{from:{params:e.params,route:{id:e.route?.id??null},url:e.url,scroll:$()},to:r&&{params:t?.params??null,route:{id:t?.route?.id??null},url:r,scroll:i},willUnload:!t,type:n,complete:s},fulfil:a,reject:o}}function we(e){return{data:e.data,error:e.error,form:e.form,params:e.params,route:e.route,state:e.state,status:e.status,url:e.url}}function Rr(e){const t=new URL(e);return t.hash=decodeURIComponent(e.hash),t}function gt(e){let t;if(E.hash){const[,,r]=e.hash.split("#",3);t=r??""}else t=e.hash.slice(1);return decodeURIComponent(t)}export{jr as a,Or as b,Dr as g,xr as i,Nr as o,Cr as r,Ur as s};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{m as g,g as l,v as m,p as Y,u as q,A as L,f as Z,s as tt,t as N,a as W,b as et,i as _,o as st,d as nt,c as V,q as C}from"./BuRWgnCz.js";import{i as rt}from"./BDpRITyb.js";import{s as ot}from"./Cwb6d3g_.js";import{b as it}from"./BWRIDih-.js";import{p as P}from"./BAOiF0in.js";import{p as at}from"./BSBcdyd3.js";import{S as A}from"./BXN538J3.js";import{r as D}from"./xjN9NojQ.js";import{w as ut}from"./DglJ92hi.js";const ct=new Set(["127.0.0.1","localhost","0.0.0.0","[::1]"]),lt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function dt(e){const t=e.indexOf("{port}"),s=e.indexOf("/",e.indexOf("://")+3);return t>=0&&(s<0||t<s)}function ht(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"&&t.protocol!=="https:"||t.username||t.password||!ct.has(t.hostname.toLowerCase()))return null;const s=Number(t.port||(t.protocol==="https:"?443:80));return lt(s)?s:null}function F(e,t){const s=ht(e);if(s===null||t.reserved?.includes(s))return e;const r=new URL(e);return`${t.pattern.replace("{port}",String(s)).replace(/\/+$/,"")}${r.pathname}${r.search}${r.hash}`}const X=new Set(["127.0.0.1","localhost"]);function te(e,t){const s="allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox";let r=!0;try{r=new URL(e).origin===t}catch{}return r?s:`${s} allow-same-origin`}const mt=e=>Number.isInteger(e)&&e>=1&&e<=65535;function ft(e){const t=URL.parse(e);if(!t||t.protocol!=="http:"||t.username||t.password||!X.has(t.hostname.toLowerCase()))return null;const s=t.port?Number(t.port):80;return mt(s)?s:null}function pt(e,t,s){const r=t?ft(e):null;if(r===null||!t)return e;const n=s.port||(s.protocol==="https:"?"443":"80");if(X.has(s.hostname.toLowerCase())&&String(r)===n)return e;const i=new URL(e),a=t.replace("{port}",String(r));return`${s.protocol}//${a}${s.port?`:${s.port}`:""}${i.pathname}${i.search}${i.hash}`}class gt{#t=g(null);get to(){return l(this.#t)}set to(t){m(this.#t,t,!0)}#e=g(null);get remote(){return l(this.#e)}set remote(t){m(this.#e,t,!0)}#s=g(null);get hosted(){return l(this.#s)}set hosted(t){m(this.#s,t,!0)}get active(){return!!(this.remote||this.hosted||this.to)}view(t){return this.remote?D(t,this.remote,location.origin):this.hosted?F(t,this.hosted):this.to?pt(t,this.to,location):t}sandbox(t){return this.remote?D(t,this.remote,location.origin):this.hosted&&dt(this.hosted.pattern)?F(t,{pattern:this.hosted.pattern}):t}}const R=new gt;function ee(e){const t=r=>{if(!R.active)return;const n=r.composedPath().find(a=>a instanceof HTMLAnchorElement&&a.hasAttribute("href"));if(!n)return;const i=R.view(n.href);i!==n.href&&(n.href=i)},s=["click","auxclick","contextmenu","dragstart"];for(const r of s)e.addEventListener(r,t,!0);return()=>{for(const r of s)e.removeEventListener(r,t,!0)}}async function yt(e,t,s,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback`,{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:s},body:JSON.stringify(t)});if(n.ok){const a=await n.json().catch(()=>null);return a?.message?.delivery==="failed"?{ok:!1,error:a.message.deliveryDetail??"Firstmate did not take the list."}:{ok:!0,pending:n.status===202}}return{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function kt(e,t,s){try{const r=await fetch(`/api/plugins/${encodeURIComponent(e)}/feedback/summary`,{method:"POST",headers:{"content-type":"application/json",[A]:s},body:JSON.stringify(t)}),n=await r.json().catch(()=>null);return r.ok&&Array.isArray(n?.points)?{ok:!0,points:n.points}:{ok:!1,error:n?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}const bt=e=>new URLSearchParams({plugin:e.plugin,service:e.service,...e.project?{project:e.project}:{}}).toString();async function wt(e){try{const t=await fetch(`/api/services?${bt(e)}`);return t.ok?await t.json():null}catch{return null}}async function vt(e,t,s=null){const r=window.open("","_blank");try{r?.document.write('<!doctype html><title>Starting…</title><body style="font:15px system-ui;margin:3rem;color:#14213d;background:#f6f2e9">Wheelhouse is starting it; this tab opens it when it answers.</body>')}catch{}let n=null;try{const a=await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify({plugin:e.plugin,service:e.service,project:e.project??null})});n=a.ok?await a.json():{...await a.json().catch(()=>({})),state:"failed",reason:`Wheelhouse could not start it (${a.status}).`}}catch{n=null}const i=n?.state==="running"?s??n.url:null;if(i){const a=R.view(i);r?r.location.href=a:window.open(a,"_blank")}else r?.close();return n}const St=5e3,U=new Map;function xt(e,t){let s=U.get(e);return s||(s=t(e).catch(r=>{throw U.delete(e),r}),U.set(e,s)),s}const J=()=>typeof navigator>"u"||!navigator.userActivation?!0:navigator.userActivation.isActive;function _t(e,t){const s=e.pluginId,r=(i,a)=>{if(typeof i!="string"||!i)throw new TypeError("Name a service.");const d=a===void 0?e.projectId:a;return{plugin:s,service:i,project:typeof d=="string"&&d?d:null}},n=i=>{const a=typeof i=="object"&&i!==null?i:{},d=typeof a.task=="string"&&a.task?a.task:e.taskId??null;return d?{taskId:d,subject:typeof a.subject=="string"?a.subject:null,items:Array.isArray(a.items)?a.items:[]}:null};return Object.freeze({pluginId:s,service:async(i,a={})=>t.status(r(i,a.project)),launch:async(i,a={})=>t.launch(r(i,a.project),t.token(),typeof a.open=="string"?a.open:null),sendFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is sent only when the captain clicks to send it."};const a=n(i);return a?t.feedback(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}},summariseFeedback:async i=>{if(!(t.clicked??J)())return{ok:!1,error:"Feedback is summarised only when the captain clicks to."};if(!t.summarise)return{ok:!1,error:"This page cannot summarise feedback."};const a=n(i);return a?t.summarise(s,a,t.token()):{ok:!1,error:"Name the task the feedback is about."}}})}async function Et(e,t){if(!customElements.get(t.tag)){if(!t.ui)throw new Error("this Wheelhouse has no UI bundle for it");try{await xt(t.ui,t.importer??(n=>import(n)))}catch(n){throw new Error(`its UI bundle did not load (${n instanceof Error?n.message:String(n)})`)}let r;try{await Promise.race([customElements.whenDefined(t.tag),new Promise((n,i)=>{r=setTimeout(()=>i(new Error(`its UI bundle does not define <${t.tag}>`)),t.timeoutMs??St)})])}finally{clearTimeout(r)}}const s=document.createElement(t.tag);return t.host&&(s.host=t.host),s.entry=t.entry,s.data=t.data,e.append(s),s}var Tt=V('<p class="text-sm text-muted-foreground"> </p>'),At=V('<div class="contents"></div> <!>',1);function se(e,t){Y(t,!0);let s=P(t,"preview",3,void 0),r=P(t,"quiet",3,!1);const n=_(()=>"element"in t.entry.render?t.entry.render.element:""),i=_(()=>t.entry.ui??null);let a=g(null),d=g(null),b=g(null);q(()=>{if(!l(a)||!l(n))return;const k=l(a);let v=!1,T=null;return m(b,null),Et(k,{tag:l(n),ui:l(i),data:L(()=>t.data),entry:L(()=>t.entry),host:_t(L(()=>t.entry),{status:wt,launch:vt,feedback:yt,summarise:kt,token:()=>at.data.sessionToken??""}),importer:t.importer}).then(o=>{T=o,v?o.remove():m(d,o,!0)},o=>{v||m(b,o.message,!0)}),()=>{v=!0,T?.remove(),m(d,null)}}),q(()=>{l(d)&&(s()!==void 0&&(l(d).preview=s()),l(d).entry=t.entry,l(d).data=t.data)});var y=At(),x=Z(y);it(x,k=>m(a,k),()=>l(a));var E=tt(x,2);{var w=k=>{var v=Tt(),T=st(v);N(()=>nt(T,`Not available. The ${t.entry.pluginId??""} plugin’s element could not be shown: ${l(b)??""}.`)),W(k,v)};rt(E,k=>{l(b)&&!r()&&k(w)})}N(()=>ot(x,"data-plugin-element",l(n))),W(e,y),et()}const jt=/^(captain[,.!]?\s*)?(shipshape|all (is )?well|all quiet|nothing (new )?to report)[.!]?$/i,H=/^\[Request interrupted by user/,It=/\u001b\[[0-9;?]*[A-Za-z]/g,O=e=>String(e??"").split("/").filter(Boolean).pop()??"",M=e=>String(e??"").split(`
|
|
2
|
-
`)[0].trim(),$t=e=>{try{return new URL(String(e)).host}catch{return String(e??"")}};function Lt(e,t){switch(e){case"Bash":return{verb:"Ran",summary:t.description||M(t.command),noun:["command","commands"]};case"Read":return{verb:"Read",summary:O(t.file_path),noun:["file read","files read"]};case"Edit":case"MultiEdit":return{verb:"Edited",summary:O(t.file_path),noun:["edit","edits"]};case"Write":return{verb:"Wrote",summary:O(t.file_path),noun:["file written","files written"]};case"Grep":return{verb:"Searched code for",summary:String(t.pattern??""),noun:["code search","code searches"]};case"Glob":return{verb:"Listed files",summary:String(t.pattern??""),noun:["file listing","file listings"]};case"WebSearch":return{verb:"Searched the web for",summary:String(t.query??""),noun:["web search","web searches"]};case"WebFetch":return{verb:"Read page",summary:$t(t.url),noun:["page read","pages read"]};case"Skill":return{verb:"Used skill",summary:String(t.skill??""),noun:["skill","skills"]};case"ToolSearch":return{verb:"Loaded tools",summary:M(t.query),noun:["tool lookup","tool lookups"]};case"Agent":case"Task":return{verb:"Asked a helper",summary:t.description||M(t.prompt),noun:["helper","helpers"]};case"TodoWrite":return{verb:"Updated the plan",summary:"",noun:["plan update","plan updates"]};case"SendMessage":return{verb:"Messaged",summary:String(t.to??""),noun:["message","messages"]};default:{const s=e.match(/^mcp__(.+?)__(.+)$/);return s?{verb:"Used",summary:`${s[2].replace(/_/g," ")} (${s[1]})`,noun:["tool call","tool calls"]}:{verb:"Used",summary:e,noun:["tool call","tool calls"]}}}}function Ut(e){return typeof e=="string"?e:Array.isArray(e)?e.map(t=>t?.type==="text"?String(t.text??""):t?.type==="image"?"[image]":t?.type==="tool_reference"?`[tool: ${t.tool_name??""}]`:`[${t?.type??"item"}]`).join(`
|
|
3
|
-
`):""}const I=e=>e.replace(/<system-reminder>[\s\S]*?<\/system-reminder>/g,"").replace(/<\/?pasted_content(?:\s+id="[^"]*")?\s*>\n?/g,"").trim(),Ot=/<system-reminder>\s*The user sent a new message while you were working:\n([\s\S]*?)(?:\n\nThis is how Claude Code (?:(?!\n\n)[\s\S])*)?\s*<\/system-reminder>/,B=e=>{const t=e.match(Ot);return t&&I(t[1])||null};function $(e,t){const s=e.match(new RegExp(`<${t}>([\\s\\S]*?)</${t}>`));return s?s[1].trim():null}function Q(e){const t=$(e,"command-name");if(!t)return null;const s=$(e,"command-args");return s?`${t} ${s}`:t}function Mt(e){return(Array.isArray(e?.questions)?e.questions:[]).map(s=>({header:String(s?.header??""),question:String(s?.question??""),multiSelect:s?.multiSelect===!0,options:(Array.isArray(s?.options)?s.options:[]).map(r=>({label:String(r?.label??""),description:String(r?.description??"")}))}))}function Rt(e,t){const s=e.toolUseResult?.answers;if(s&&typeof s=="object")return Object.fromEntries(Object.entries(s).map(([n,i])=>[n,String(i)]));const r={};for(const n of t.matchAll(/"([^"]+)"="([^"]*)"/g))r[n[1]]=n[2];return r}function qt(e){const t=[],s=new Map,r=new Map;let n=null,i=null,a=null,d=null,b=!1;const y=()=>{i=null},x=o=>(i||(i={kind:"turn",id:o.uuid,parts:[],at:o.timestamp,durationMs:null,done:!1,interrupted:!1,trigger:b?"background":"captain"},b=!1,t.push(i),a=i),i),E=o=>{const p=x(o),u=p.parts[p.parts.length-1];if(u?.kind==="activity")return u;const c={kind:"activity",id:`${o.uuid}-a`,steps:[]};return p.parts.push(c),c},w=(o,p,u={})=>{y(),b=!1,t.push({kind:"user",id:o.uuid,text:p,at:o.timestamp,queued:!!u.queued,command:!!u.command})},k=(o,p,u,c=o.uuid)=>{i&&E(o).steps.push({kind:"context",id:c,label:p,detail:u})};for(const o of e){if(!o||typeof o!="object"||o.isSidechain)continue;const p=o.timestamp??null;switch(o.type){case"ai-title":n=o.aiTitle??n;break;case"user":{const u=o.message?.content;if(typeof u=="string")if(o.origin?.kind==="task-notification"||u.trimStart().startsWith("<task-notification>"))y(),b=!0;else if(o.isMeta){const c=B(u);c?w(o,c,{queued:!0}):k(o,"Context added",u)}else if(H.test(u.trim()))a&&(a.interrupted=!0);else{const c=Q(u);if(c)w(o,c,{command:!0});else if(!u.includes("<local-command-stdout>")){const h=I(u);h&&w(o,h)}}else if(Array.isArray(u))for(const c of u)if(c?.type==="tool_result"){const h=Ut(c.content),f=s.get(c.tool_use_id);f&&(f.result=h,f.isError=!!c.is_error);const S=r.get(c.tool_use_id);S&&(S.answers=c.is_error?{}:Rt(o,h))}else if(c?.type==="text"){const h=String(c.text??""),f=B(h);if(H.test(h.trim()))a&&(a.interrupted=!0);else if(f)w(o,f,{queued:!0});else if(o.isMeta||o.sourceToolUseID){const S=h.startsWith("Base directory for this skill")?"Skill instructions loaded":"Context added";k(o,S,h,`${o.uuid}-${S}`)}else{const S=I(h);S&&w(o,S)}}else c?.type==="image"&&w(o,"[image]");break}case"assistant":{for(const u of o.message?.content??[])if(u?.type==="thinking"||u?.type==="redacted_thinking"){const c=d&&p?Date.parse(p)-Date.parse(d):null;E(o).steps.push({kind:"thinking",id:`${o.uuid}-th`,ms:c})}else if(u?.type==="tool_use"&&u.name==="AskUserQuestion"){const c={kind:"question",id:u.id,questions:Mt(u.input),answers:null};r.set(u.id,c),x(o).parts.push(c)}else if(u?.type==="tool_use"){const c=Lt(String(u.name),u.input??{}),h={kind:"tool",id:u.id,name:String(u.name),...c,input:u.input,result:null,isError:!1};s.set(u.id,h),E(o).steps.push(h)}else if(u?.type==="text"){if(!String(u.text??"").trim())continue;x(o).parts.push({kind:"text",id:`${o.uuid}-t`,text:u.text})}break}case"attachment":{const u=o.attachment??{};if(u.type==="queued_command"&&typeof u.prompt=="string"&&(u.commandMode??"prompt")==="prompt"){const c=I(u.prompt);c&&w(o,c,{queued:!0})}else if(u.type==="hook_additional_context"){const c=Array.isArray(u.content)?u.content.join(`
|
|
4
|
-
`):String(u.content??"");k(o,`Hook added context${u.hookEvent?` (${u.hookEvent})`:""}`,c)}break}case"system":{if(o.subtype==="turn_duration")a&&(a.durationMs=o.durationMs??null,a.done=!0),y();else if(o.subtype==="away_summary")y(),t.push({kind:"notice",id:o.uuid,title:"While you were away",detail:String(o.content??""),at:o.timestamp});else if(o.subtype==="local_command"){const u=String(o.content??""),c=$(u,"local-command-stdout")??$(u,"local-command-stderr"),h=Q(u);if(h)w(o,h,{command:!0});else if(c!==null){const f=c.replace(It,"").trim();f&&t.push({kind:"output",id:o.uuid,text:f,at:o.timestamp})}}break}}p&&(d=p)}const v=[];return{items:t.filter((o,p)=>{if(o.kind!=="turn"||o.trigger!=="background")return!0;const u=o.parts.filter(f=>f.kind==="text").map(f=>f.text).join(`
|
|
5
|
-
`).trim(),h=!o.parts.some(f=>f.kind==="question")&&(!u||jt.test(u));return v.push({id:o.id,at:o.at,durationMs:o.durationMs,done:o.done||p<t.length-1,outcome:h?"quiet":"reported"}),!h}),title:n,checks:v}}function ne(e){const t=new Map;let s=!1,r=0;for(const i of e){if(i.kind==="thinking"&&(s=!0,r+=i.ms??0),i.kind!=="tool")continue;const a=t.get(i.noun[0])??{n:0,noun:i.noun};a.n++,t.set(i.noun[0],a)}const n=[...t.values()].map(i=>`${i.n} ${i.n===1?i.noun[0]:i.noun[1]}`);return n.length?n.join(", "):s?r>=1e3?`Thought for ${Nt(r)}`:"Thought briefly":"Read some context"}function Nt(e){if(e==null||e<0)return"";const t=Math.round(e/1e3);if(t<60)return`${t}s`;const s=Math.floor(t/60);return s<60?`${s}m ${t%60}s`:`${Math.floor(s/60)}h ${s%60}m`}function re(e){const t=[];for(const s of e)if(s.kind==="turn"){for(const r of s.parts)if(r.kind==="activity")for(const n of r.steps)n.kind==="tool"&&n.result!==null&&n.name.startsWith("mcp__")&&t.push(n.id)}return t}const Wt=2,z=e=>` ${e.replace(/\s+/g," ").trim()} `,G=e=>e[e.length-1]?.id??null,Ct=(e,t)=>t===null?-1:e.findIndex(s=>s.id===t),K=e=>e?.kind==="turn";function Pt(e,t){const s=new Map;return e.filter(r=>{if(r.state==="sending"||r.state==="failed")return!0;const n=Ct(t,r.after),i=t.slice(n+1);if(r.via==="inbox")return!i.some(K);const a=z(r.text),d=s.get(a)??0;return i.filter(y=>y.kind==="user"&&z(y.text).includes(a)).length>d?(s.set(a,d+1),!1):i.filter(y=>K(y)&&y.done).length<Wt})}function oe(e){switch(e.state){case"sending":return"Sending…";case"queued":return"Queued · Firstmate is busy and will read it next";case"failed":return e.error?`Not sent · ${e.error}`:"Not sent";default:return e.via==="inbox"?"In Firstmate’s inbox":"Delivered · waiting for Firstmate"}}const j=6e3;class Dt{#t=g(null);get session(){return l(this.#t)}set session(t){m(this.#t,t,!0)}#e=g(null);get source(){return l(this.#e)}set source(t){m(this.#e,t,!0)}#s=g([]);get records(){return l(this.#s)}set records(t){m(this.#s,t)}#n=g("connecting");get connection(){return l(this.#n)}set connection(t){m(this.#n,t,!0)}#r=g(0);get resets(){return l(this.#r)}set resets(t){m(this.#r,t,!0)}#o=g(!1);get synced(){return l(this.#o)}set synced(t){m(this.#o,t,!0)}#i=g(C([]));get commands(){return l(this.#i)}set commands(t){m(this.#i,t,!0)}#a=_(()=>qt(this.records));get chat(){return l(this.#a)}set chat(t){m(this.#a,t)}#u=_(()=>{const t=this.chat.items[this.chat.items.length-1];return this.session?.busy===!0||t?.kind==="turn"&&!t.done&&!t.interrupted});get working(){return l(this.#u)}set working(t){m(this.#u,t)}#c=_(()=>this.connection==="open"&&this.session?.state==="ours"&&!this.session.picker&&!this.session.menu&&this.working);get atWork(){return l(this.#c)}set atWork(t){m(this.#c,t)}#l=g(C([]));get outbox(){return l(this.#l)}set outbox(t){m(this.#l,t,!0)}#d=_(()=>Pt(this.outbox,this.chat.items));get pending(){return l(this.#d)}set pending(t){m(this.#d,t)}close=null;connect(){if(this.close)return()=>{};this.synced=!1;const t=s=>{s.addEventListener("session",r=>{this.session=JSON.parse(r.data),this.connection="open"}),s.addEventListener("reset",r=>{this.source=JSON.parse(r.data),this.records=[],this.resets++}),s.addEventListener("records",r=>{const n=[...this.records,...JSON.parse(r.data)];this.records=n.length>j?n.slice(-j):n}),s.addEventListener("replace",r=>{const n=JSON.parse(r.data);this.records=n.length>j?n.slice(-j):n}),s.addEventListener("synced",()=>this.synced=!0)};return this.close=ut("/api/firstmate/chat",t,s=>this.connection=s),this.loadCommands(),()=>{this.close?.(),this.close=null,this.connection="connecting"}}async send(t,s,r,n){return this.prune(),this.outbox.push({id:crypto.randomUUID(),text:t,via:s,state:"sending",error:null,after:G(this.chat.items)}),this.deliver(this.outbox[this.outbox.length-1],r,n)}retry(t,s,r){const n=this.outbox.find(i=>i.id===t);!n||n.state!=="failed"||(n.after=G(this.chat.items),this.deliver(n,s,r))}dismiss(t){this.outbox=this.outbox.filter(s=>s.id!==t)}async deliver(t,s,r){t.state="sending",t.error=null;const n=t.via==="inbox"?await Jt(t.text,s):await Ft("/api/firstmate/input",s,{text:t.text});return n.ok?t.state=r&&t.via==="session"?"queued":"delivered":(t.state="failed",t.error=n.error),n}prune(){const t=new Set(this.pending.map(s=>s.id));this.outbox=this.outbox.filter(s=>t.has(s.id))}async loadCommands(){try{const t=await fetch("/api/firstmate/commands");t.ok&&(this.commands=(await t.json()).commands)}catch{}}}const ie=new Dt;async function Ft(e,t,s){try{const r=await fetch(e,{method:"POST",headers:{"content-type":"application/json",[A]:t},body:JSON.stringify(s??{})});return r.ok?{ok:!0}:{ok:!1,error:(await r.json().catch(()=>null))?.message??`Wheelhouse answered ${r.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}async function Jt(e,t,s=null,r=`wh-${crypto.randomUUID()}`){try{const n=await fetch("/api/firstmate/messages",{method:"POST",headers:{"content-type":"application/json","idempotency-key":r,[A]:t},body:JSON.stringify({text:e,taskId:s})});return n.ok?{ok:!0,pending:n.status===202}:{ok:!1,error:(await n.json().catch(()=>null))?.message??`Wheelhouse answered ${n.status}.`}}catch{return{ok:!1,error:"Could not reach the Wheelhouse server."}}}export{se as P,R as a,X as b,ne as c,Nt as d,ie as e,te as f,Ft as g,re as h,oe as p,ee as r,Jt as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../nodes/0.DjC9pa5r.js","../chunks/DsnmJJEf.js","../chunks/RYq3318d.js","../chunks/BuRWgnCz.js","../chunks/BDpRITyb.js","../chunks/B2RyWxmQ.js","../chunks/DLuhTA05.js","../chunks/Cwb6d3g_.js","../chunks/cM1ZMvyM.js","../chunks/CSzf141e.js","../chunks/BSBcdyd3.js","../chunks/DglJ92hi.js","../chunks/CspN1OJw.js","../chunks/C_4BzEag.js","../chunks/BXN538J3.js","../chunks/rwLE2q5W.js","../chunks/BWRIDih-.js","../chunks/BAOiF0in.js","../chunks/xjN9NojQ.js","../chunks/BT_DAfvO.js","../chunks/cwI46DFb.js","../chunks/DJNADPa5.js","../chunks/I4bsCfS2.js","../chunks/BMFk7aZ6.js","../chunks/C5BN6RHR.js","../chunks/DYbDyf3M.js","../chunks/BxpN0jPH.js","../chunks/xH4qmLqM.js","../chunks/CqfUJirh.js","../chunks/Crfn3y_6.js","../chunks/Dse7bjta.js","../chunks/DcVvrp03.js","../chunks/CoQMrCtk.js","../chunks/DVEiwmFn.js","../chunks/rS7QE60d.js","../chunks/BksDoLoM.js","../chunks/cmRB1an4.js","../chunks/fuBLR9dZ.js","../chunks/BCUUi0V0.js","../chunks/Dd58JmFO.js","../chunks/Ddta0BJw.js","../chunks/ClsjySa8.js","../chunks/BY5XjwMm.js","../chunks/DZeIs8RO.js","../chunks/CP7u-DWX.js","../chunks/kynOtL7x.js","../chunks/DXoZBzFG.js","../chunks/CCL5M9Xl.js","../chunks/IuxiJfHx.js","../chunks/DU3FdAFH.js","../chunks/C6T16bV1.js","../chunks/7vF3ego3.js","../chunks/CoGHF2lE.js","../chunks/DGK4csRg.js","../chunks/Cu50g1zS.js","../chunks/B-JNrTge.js","../chunks/hxhxtxcx.js","../assets/0.Dyflbqc4.css","../nodes/1.BGpUfjP8.js","../nodes/2.CarjBwi1.js","../chunks/CFTDQcgN.js","../chunks/BVXUMEgB.js","../chunks/o67KsWSa.js","../chunks/CQMIjH_m.js","../chunks/Dcf7qESD.js","../chunks/luPa70aT.js","../chunks/nW7-TN7t.js","../chunks/DxdQiNse.js","../chunks/C0iYpbLa.js","../chunks/DNc9cRsu.js","../assets/PreviewStudio.Dga9zAug.css","../chunks/DZbbLeZ5.js","../chunks/C8be1l5w.js","../chunks/CtgbxGhR.js","../chunks/D1uwWhcg.js","../chunks/D2ynzrtM.js","../chunks/C_QL6rvF.js","../chunks/Co6rv60s.js","../chunks/B0XeFYOk.js","../chunks/D-5zBf83.js","../chunks/JUzTNcjv.js","../chunks/Dpd1rs9R.js","../chunks/CR7y1ULG.js","../chunks/BB2roMZd.js","../chunks/DjzsLGyn.js","../chunks/DSQSpWxL.js","../chunks/COSi3XeB.js","../chunks/Bj-Gheej.js","../chunks/r_9m29GC.js","../chunks/Clm3nvxi.js","../chunks/DeVe8oaI.js","../chunks/D9kzO4Vy.js","../chunks/BapAUJpM.js","../chunks/BDiKlJJl.js","../chunks/C8YpFJ43.js","../assets/Terminal.B4BtIq8f.css","../chunks/BIfGCSel.js","../chunks/DJnRpOqR.js","../chunks/DyHO2Vc7.js","../chunks/IPRCqR05.js","../chunks/Dw18qh6I.js","../chunks/CKBPLT-z.js","../assets/2.9iA_78o1.css","../nodes/3.BgWGx5YP.js","../chunks/CtiH9jvV.js","../nodes/4.CmSxKRLa.js","../nodes/5.DEmf7LWK.js","../chunks/QjAOAKa9.js","../assets/DocSheet.36VhUGpN.css","../nodes/6.CExYN4s7.js","../chunks/B3mAFyYS.js","../chunks/CDgGXUGq.js","../assets/6.5dJKCkOT.css","../nodes/7.B5DaW8rR.js","../nodes/8.BAxGmD9j.js","../nodes/9.B05Fdcd3.js","../nodes/10.Dqja5Hy7.js","../chunks/Cpxqeawy.js","../chunks/BDtt0Y7t.js","../chunks/BwPKBiav.js","../nodes/11.C2hpIuul.js","../chunks/D-2tF-22.js","../chunks/ntd85-6_.js","../nodes/12.D9gnyWPh.js","../chunks/YUutd5H1.js","../chunks/D2Frmdzl.js","../chunks/BaPx3dni.js","../nodes/13.DL0THiQT.js","../nodes/14.zHzRn1L0.js","../chunks/D7IP_ZEm.js","../chunks/DIUPiJT7.js","../nodes/15.CxiJzXJw.js","../nodes/16.ltkCLaiY.js","../chunks/BL011DGQ.js","../nodes/17.8mjwurTl.js","../nodes/19.DIpFUdcm.js","../chunks/CzBY7r8x.js","../nodes/20.BP6YYSQm.js","../nodes/21.lQoTeuLN.js","../chunks/Deh9Yuoc.js","../chunks/CMmxYmuw.js","../chunks/DtH7pDxF.js","../nodes/22.DmHOHt5L.js","../nodes/23.D7UbkVJG.js","../nodes/24.B6o--6Mq.js","../nodes/25.C4hB5RaJ.js","../nodes/26.CbeAF_H2.js","../chunks/BaS0N1W3.js","../nodes/27.DUOTTUGh.js","../nodes/28.D3Nqqpa-.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as e}from"../chunks/BapAUJpM.js";import{v as h,as as Y,g as u,a5 as q,a6 as B,a1 as F,aH as J,a9 as K,aI as N,p as Q,z as U,u as W,G as X,f as g,s as Z,a as E,b as $,m as P,j as O,h as tt,r as et,c as y,i as R,w as rt,t as ot,d as at}from"../chunks/BuRWgnCz.js";import"../chunks/DsnmJJEf.js";import{o as st}from"../chunks/RYq3318d.js";import{i as A}from"../chunks/BDpRITyb.js";import{c as I}from"../chunks/DLuhTA05.js";import{b as L}from"../chunks/BWRIDih-.js";import{p as D}from"../chunks/BAOiF0in.js";const Ot={};function it(a){return class extends _t{constructor(t){super({component:a,...t})}}}class _t{#e;#t;constructor(t){var s=new Map,_=(r,o)=>{var n=N(o,!1,!1);return s.set(r,n),n};const m=new Proxy({...t.props||{},$$events:{}},{get(r,o){return u(s.get(o)??_(o,Reflect.get(r,o)))},has(r,o){return o===Y?!0:(u(s.get(o)??_(o,Reflect.get(r,o))),Reflect.has(r,o))},set(r,o,n){return h(s.get(o)??_(o,n),n),Reflect.set(r,o,n)}});this.#t=(t.hydrate?q:B)(t.component,{target:t.target,anchor:t.anchor,props:m,context:t.context,intro:t.intro??!1,recover:t.recover,transformError:t.transformError}),(!t?.props?.$$host||t.sync===!1)&&F(),this.#e=m.$$events;for(const r of Object.keys(this.#t))r==="$set"||r==="$destroy"||r==="$on"||J(this,r,{get(){return this.#t[r]},set(o){this.#t[r]=o},enumerable:!0});this.#t.$set=r=>{Object.assign(m,r)},this.#t.$destroy=()=>{K(this.#t)}}$set(t){this.#t.$set(t)}$on(t,s){this.#e[t]=this.#e[t]||[];const _=(...m)=>s.call(this,...m);return this.#e[t].push(_),()=>{this.#e[t]=this.#e[t].filter(m=>m!==_)}}$destroy(){this.#t.$destroy()}}var mt=y('<div id="svelte-announcer" aria-live="assertive" aria-atomic="true" style="position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"><!></div>'),nt=y("<!> <!>",1);function ut(a,t){Q(t,!0);let s=D(t,"components",23,()=>[]),_=D(t,"data_0",3,null),m=D(t,"data_1",3,null);U(()=>t.stores.page.set(t.page)),W(()=>{t.stores,t.page,t.constructors,s(),t.form,_(),m(),t.stores.page.notify()});let r=P(!1),o=P(!1),n=P(null);st(()=>{const i=t.stores.page.subscribe(()=>{u(r)&&(h(o,!0),X().then(()=>{h(n,document.title||"untitled page",!0)}))});return h(r,!0),i});const x=R(()=>t.constructors[1]);var T=nt(),V=g(T);{var k=i=>{const d=R(()=>t.constructors[0]);var c=O(),f=g(c);I(f,()=>u(d),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params},children:(v,ct)=>{var b=O(),G=g(b);I(G,()=>u(x),(M,z)=>{L(z(M,{get data(){return m()},get form(){return t.form},get params(){return t.page.params}}),H=>s()[1]=H,()=>s()?.[1])}),E(v,b)},$$slots:{default:!0}}),v=>s()[0]=v,()=>s()?.[0])}),E(i,c)},w=i=>{const d=R(()=>t.constructors[0]);var c=O(),f=g(c);I(f,()=>u(d),(l,p)=>{L(p(l,{get data(){return _()},get form(){return t.form},get params(){return t.page.params}}),v=>s()[0]=v,()=>s()?.[0])}),E(i,c)};A(V,i=>{t.constructors[1]?i(k):i(w,-1)})}var C=Z(V,2);{var S=i=>{var d=mt(),c=tt(d);{var f=l=>{var p=rt();ot(()=>at(p,u(n))),E(l,p)};A(c,l=>{u(o)&&l(f)})}et(d),E(i,d)};A(C,i=>{u(r)&&i(S)})}E(a,T),$()}const Rt=it(ut),At=[()=>e(()=>import("../nodes/0.DjC9pa5r.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57]),import.meta.url),()=>e(()=>import("../nodes/1.BGpUfjP8.js"),__vite__mapDeps([58,1,3,10,9,2]),import.meta.url),()=>e(()=>import("../nodes/2.CarjBwi1.js"),__vite__mapDeps([59,1,2,3,4,7,10,9,11,15,16,17,14,18,19,30,27,5,60,61,6,32,33,34,22,23,24,25,26,28,29,62,63,13,64,12,38,65,21,37,66,48,67,68,50,36,69,70,71,72,73,74,75,76,44,77,78,79,80,81,82,83,53,42,84,85,86,87,88,89,39,90,91,92,93,94,95,96,97,98,35,99,100,52,46,54,101,45,8,102]),import.meta.url),()=>e(()=>import("../nodes/3.BgWGx5YP.js"),__vite__mapDeps([103,1,3,4,7,6,10,9,2,38,82,104,101,20,71,61,50,17,27,5,67,74,75]),import.meta.url),()=>e(()=>import("../nodes/4.CmSxKRLa.js"),__vite__mapDeps([105,1,2,3,7,10,9,8,11,19,80,4,27,5,17,81,38,30,82,83,53,21,42,13,12,14,84,76,34,6,22,23,24,25,16,26,28,29,15,18,44,77,78,36,79,48,85,64,65,37,66,60,61,67,68,50,69,70,71,72,73,74,75,86,87,88,89,39,90]),import.meta.url),()=>e(()=>import("../nodes/5.DEmf7LWK.js"),__vite__mapDeps([106,1,3,4,7,60,17,27,5,61,107,16,28,108,93]),import.meta.url),()=>e(()=>import("../nodes/6.CExYN4s7.js"),__vite__mapDeps([109,1,3,4,7,6,27,5,17,10,9,2,30,11,110,38,31,111,98,45,73,56,21,53,85,42,36,90,16,55,28,112]),import.meta.url),()=>e(()=>import("../nodes/7.B5DaW8rR.js"),__vite__mapDeps([113,1,3,4,7,38,82,17,104,101,10,9,2,20,96,27,5,45,67]),import.meta.url),()=>e(()=>import("../nodes/8.BAxGmD9j.js"),__vite__mapDeps([114,1,2,3,4,7,27,5,17,8,9,10,11,12,13,14,64,6,38,65,16,21,15,18,37,34,66,48,60,61,23,25,67,68,50,36,69,19,70,71,72,73,74,75]),import.meta.url),()=>e(()=>import("../nodes/9.B05Fdcd3.js"),__vite__mapDeps([115,1,3,4,7,10,9,2,20,11,19,51,17,27,5,89,28,49,54]),import.meta.url),()=>e(()=>import("../nodes/10.Dqja5Hy7.js"),__vite__mapDeps([116,1,2,3,4,7,23,16,10,9,24,25,5,17,6,117,33,34,27,118,11,14,44,36,45,38,69,119,35,46,50,54]),import.meta.url),()=>e(()=>import("../nodes/11.C2hpIuul.js"),__vite__mapDeps([120,1,3,4,7,10,9,2,11,19,121,36,17,27,5,122,76,34,6,38,22,23,14,24,25,16,26,28,29,15,18,44,77,78,79,48]),import.meta.url),()=>e(()=>import("../nodes/12.D9gnyWPh.js"),__vite__mapDeps([123,1,3,4,7,10,9,2,11,19,30,17,27,5,124,110,6,38,31,111,98,45,73,63,48,83,53,21,42,24,25,16,125,76,34,22,23,14,26,28,29,15,18,44,77,78,36,79,65,37,66,60,61,67,68,50,69,70,99,126,86,82,75,62,72,52,94,56]),import.meta.url),()=>e(()=>import("../nodes/13.DL0THiQT.js"),__vite__mapDeps([127,1,3,4,7,10,9,2,11,19,124,17,30,27,5,110,6,38,31,111,98,45,73,63,48,76,34,22,23,14,24,25,16,26,28,29,15,18,44,77,78,36,79]),import.meta.url),()=>e(()=>import("../nodes/14.zHzRn1L0.js"),__vite__mapDeps([128,1,3,4,7,10,9,2,8,11,19,124,17,30,27,5,110,6,38,31,111,98,45,73,63,48,14,24,25,16,129,79,130,99]),import.meta.url),()=>e(()=>import("../nodes/15.CxiJzXJw.js"),__vite__mapDeps([131,1,3,4,34,17,27,5,7,8,2,9,10,11,23,81,24,25,16,14,129,93,99,69,68,94,77,79,36,111,40,78,100]),import.meta.url),()=>e(()=>import("../nodes/16.ltkCLaiY.js"),__vite__mapDeps([132,1,3,7,133,4,10,9,2,14,18,38,24,25,5,16,17]),import.meta.url),()=>e(()=>import("../nodes/17.8mjwurTl.js"),__vite__mapDeps([134,1,3,4,7,11,10,9,2,38,85,73,17,27,5,88,72,46,29]),import.meta.url),()=>e(()=>import("../chunks/BapAUJpM.js").then(a=>a.a),[],import.meta.url),()=>e(()=>import("../nodes/19.DIpFUdcm.js"),__vite__mapDeps([135,1,3,7,133,4,10,9,2,14,18,38,24,25,5,16,17,136,101]),import.meta.url),()=>e(()=>import("../nodes/20.BP6YYSQm.js"),__vite__mapDeps([137,1,3,4,7,10,9,2,41,13,14,38,24,25,5,16,17,136,101]),import.meta.url),()=>e(()=>import("../nodes/21.lQoTeuLN.js"),__vite__mapDeps([138,1,2,3,4,34,17,27,5,7,8,9,10,136,101,121,36,122,139,6,23,33,117,24,25,16,118,11,14,44,45,69,47,119,140,141,38,46,28]),import.meta.url),()=>e(()=>import("../nodes/22.DmHOHt5L.js"),__vite__mapDeps([142,1,2,3,4,7,8,9,10,136,101,140,17,141,118,11,14,44,27,5,36,23,119,45,24,25,16,66]),import.meta.url),()=>e(()=>import("../nodes/23.D7UbkVJG.js"),__vite__mapDeps([143,1,3,4,7,24,25,5,16,17,136,101,10,9,2]),import.meta.url),()=>e(()=>import("../nodes/24.B6o--6Mq.js"),__vite__mapDeps([144,1,3,4,7,23,10,9,2,14,136,101,43]),import.meta.url),()=>e(()=>import("../nodes/25.C4hB5RaJ.js"),__vite__mapDeps([145,1,2,3,4,7,6,23,8,9,10,24,25,5,16,17,91,92,37,93,27,68,94,90,44,66,95,141,78,26,79,100,36,122,48,139,33,34,117,118,11,14,45,69,53]),import.meta.url),()=>e(()=>import("../nodes/26.CbeAF_H2.js"),__vite__mapDeps([146,1,2,3,4,7,5,16,10,9,38,97,17,27,8,11,19,76,34,6,22,23,14,24,25,26,28,29,15,18,44,77,78,36,79,48,83,53,21,42,125,65,37,66,60,61,67,68,50,69,70,99,62,63,71,20,130,40,126,100,98,72,87,12,13,64,73,74,75,51,84,82,147,93,94]),import.meta.url),()=>e(()=>import("../nodes/27.DUOTTUGh.js"),__vite__mapDeps([148,1,3,4,7,60,17,27,5,61,126,38,107,16,28,108,93,48,74]),import.meta.url),()=>e(()=>import("../nodes/28.D3Nqqpa-.js"),__vite__mapDeps([149,1,3,4,7,82,104,101,10,9,2,20,84,17,147]),import.meta.url)],It=[0],Lt={"/":[-3],"/decisions":[-4],"/deck":[-5],"/files":[-6],"/harbour":[-7],"/headroom":[-8],"/inbox":[-9],"/more":[9],"/plugins":[10],"/plugins/[plugin]/[page]":[-12],"/projects/[id]":[-13],"/projects/[id]/passage":[-15],"/projects/[id]/passage/edit":[-16],"/projects/[id]/[plugin]/[tab]":[-14],"/remotes":[-17],"/second-mates":[17],"/settings":[-19],"/settings/cloud":[-20],"/settings/gateway":[-21],"/settings/plugins":[-22],"/settings/plugins/[plugin]":[-23],"/settings/setup":[-24],"/settings/update":[-25],"/setup":[-26],"/tasks/[id]":[-27],"/tasks/[id]/doc":[-28],"/time":[-29]},j={handleError:(({error:a})=>{console.error(a)}),reroute:(()=>{}),transport:{}},dt=Object.fromEntries(Object.entries(j.transport).map(([a,t])=>[a,t.decode])),Dt=Object.fromEntries(Object.entries(j.transport).map(([a,t])=>[a,t.encode])),Tt=!1,Vt=(a,t)=>dt[a](t),bt=()=>e(()=>import("../chunks/wbPk3Yxo.js"),[],import.meta.url).then(a=>a.default);export{Vt as decode,dt as decoders,Lt as dictionary,Dt as encoders,bt as get_error_template,Tt as hash,j as hooks,Ot as matchers,At as nodes,Rt as root,It as server_loads};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{s as r}from"../chunks/cM1ZMvyM.js";import{y as t}from"../chunks/CSzf141e.js";export{t as load_css,r as start};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import"../chunks/DsnmJJEf.js";import{o as wt}from"../chunks/RYq3318d.js";import{p as xe,v as P,j as Z,f as y,g as t,a,b as _e,i as u,m as ue,bD as ts,q as gt,u as at,A as rs,aE as Wt,h as S,r as C,c as x,aa as Re,t as j,br as ns,bG as ss,aG as pt,l as nr,s as h,y as st,o as re,d as z,k as gn,x as Xt,n as Ke,w as ct,aC as os,$ as as}from"../chunks/BuRWgnCz.js";import{i as D}from"../chunks/BDpRITyb.js";import{s as Me}from"../chunks/B2RyWxmQ.js";import{c as oe}from"../chunks/DLuhTA05.js";import{l as Ge,s as ce,r as Ur,e as Je,a as je,b as is,d as _r,h as ls,f as ds}from"../chunks/Cwb6d3g_.js";import{g as jt,o as cs,i as us}from"../chunks/cM1ZMvyM.js";import{p as We}from"../chunks/BSBcdyd3.js";import{l as He,b as mn,c as Cr}from"../chunks/DglJ92hi.js";import{i as zt}from"../chunks/CspN1OJw.js";import{P as hs,s as ps,e as fs,a as dr,r as vs}from"../chunks/rwLE2q5W.js";import{s as Gr,a as cr,n as gs}from"../chunks/BT_DAfvO.js";import{m as ms}from"../chunks/cwI46DFb.js";import{d as bs,b as Rr}from"../chunks/DJNADPa5.js";import{b as Jt}from"../chunks/BWRIDih-.js";import{s as ge,r as me,p as k}from"../chunks/BAOiF0in.js";import{P as xs}from"../chunks/I4bsCfS2.js";import{a as $t,k as Yr,p as yr,A as bn,n as _s}from"../chunks/Dse7bjta.js";import{a as ys}from"../chunks/DcVvrp03.js";import{F as ws,x as xn,y as _n,z as yn,A as Zt,C as ks,D as Cs,u as Ps,B as Ts,g as wn,P as kn,f as Cn,S as Ss,U as Ms,j as $s,h as ur}from"../chunks/CoQMrCtk.js";import{a as Is}from"../chunks/BMFk7aZ6.js";import{S as As}from"../chunks/BksDoLoM.js";import{C as It}from"../chunks/cmRB1an4.js";import{I as lt,t as wr,a as Os}from"../chunks/xH4qmLqM.js";import{p as Es}from"../chunks/fuBLR9dZ.js";import{c as yt}from"../chunks/DYbDyf3M.js";import{L as Ds,M as Ns,j as Fs,b as V,N as zs,O as Ws,Q as js,R as Ls,U as Qt,V as Pr,W as Tr,X as Bt,Y as Pn,Z as Ot,_ as Tn,K as tt,u as Sn,m as Ye,$ as Bs,a0 as Ks,z as Mn,A as Sr,r as sr,a1 as Hs,a2 as qs,H as Mr,a3 as Us,a4 as Gs,a5 as Rs,C as kt,v as $n,w as it,k as Ct,B as In,a6 as or,G as An,x as On,t as _t,a7 as xt,a8 as Ys,a9 as Vs,I as En,aa as Xs,J as Dn,ab as Nn,c as mt,s as Fn,ac as Js,P as ar}from"../chunks/DVEiwmFn.js";import{B as ot}from"../chunks/C5BN6RHR.js";import{a as er,p as Zs,c as Qs,f as eo}from"../chunks/BCUUi0V0.js";import{h as to,G as zn,a as ro,i as no,b as so}from"../chunks/Dd58JmFO.js";import{M as oo}from"../chunks/Ddta0BJw.js";import{A as Wn,r as ut,s as Vr,t as ao}from"../chunks/ClsjySa8.js";import{t as jn,b as Ln,d as io}from"../chunks/BY5XjwMm.js";import{w as nt}from"../chunks/DZeIs8RO.js";import{L as hr}from"../chunks/CP7u-DWX.js";import{T as Xr}from"../chunks/kynOtL7x.js";import{R as lo}from"../chunks/DXoZBzFG.js";import{C as Jr}from"../chunks/CCL5M9Xl.js";import{E as Bn}from"../chunks/IuxiJfHx.js";import{S as co}from"../chunks/DU3FdAFH.js";import{C as Kn}from"../chunks/C6T16bV1.js";import{k as uo,X as ho}from"../chunks/rS7QE60d.js";import{B as po}from"../chunks/7vF3ego3.js";import{a as fo,M as vo}from"../chunks/CoGHF2lE.js";import{S as go}from"../chunks/DGK4csRg.js";import{P as mo}from"../chunks/Cu50g1zS.js";import"../chunks/CSzf141e.js";import{a as Zr}from"../chunks/B-JNrTge.js";import{f as bo}from"../chunks/hxhxtxcx.js";var xo=new Set(["$$slots","$$events","$$legacy"]);function _o(o,e){let r=me(e,xo);const n={name:"bell-off",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var yo=new Set(["$$slots","$$events","$$legacy"]);function Qr(o,e){let r=me(e,yo);const n={name:"bell-ring",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M22 8c0-2.3-.8-4.3-2-6"}],["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"}],["path",{d:"M4 2C2.8 3.7 2 5.7 2 8"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var wo=new Set(["$$slots","$$events","$$legacy"]);function ko(o,e){let r=me(e,wo);const n={name:"blocks",size:24,node:[["path",{d:"M10 22V7a1 1 0 0 0-1-1H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-5a1 1 0 0 0-1-1H2"}],["rect",{x:"14",y:"2",width:"8",height:"8",rx:"1"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Co=new Set(["$$slots","$$events","$$legacy"]);function Po(o,e){let r=me(e,Co);const n={name:"ellipsis",size:24,node:[["circle",{cx:"12",cy:"12",r:"1"}],["circle",{cx:"19",cy:"12",r:"1"}],["circle",{cx:"5",cy:"12",r:"1"}]],aliases:["more-horizontal"]};lt(o,ge(()=>r,{get icon(){return n}}))}var To=new Set(["$$slots","$$events","$$legacy"]);function So(o,e){let r=me(e,To);const n={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Mo=new Set(["$$slots","$$events","$$legacy"]);function $o(o,e){let r=me(e,Mo);const n={name:"message-circle",size:24,node:[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Io=new Set(["$$slots","$$events","$$legacy"]);function Ao(o,e){let r=me(e,Io);const n={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Oo=new Set(["$$slots","$$events","$$legacy"]);function Eo(o,e){let r=me(e,Oo);const n={name:"panel-left-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m16 15-3-3 3-3"}]],aliases:["sidebar-close"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Do=new Set(["$$slots","$$events","$$legacy"]);function No(o,e){let r=me(e,Do);const n={name:"panel-left-open",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M9 3v18"}],["path",{d:"m14 9 3 3-3 3"}]],aliases:["sidebar-open"]};lt(o,ge(()=>r,{get icon(){return n}}))}var Fo=new Set(["$$slots","$$events","$$legacy"]);function zo(o,e){let r=me(e,Fo);const n={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z"}],["path",{d:"m15 5 4 4"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Wo=new Set(["$$slots","$$events","$$legacy"]);function jo(o,e){let r=me(e,Wo);const n={name:"pin",size:24,node:[["path",{d:"M12 17v5"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Lo=new Set(["$$slots","$$events","$$legacy"]);function Bo(o,e){let r=me(e,Lo);const n={name:"radio-tower",size:24,node:[["path",{d:"M4.9 16.1C1 12.2 1 5.8 4.9 1.9"}],["path",{d:"M7.8 4.7a6.14 6.14 0 0 0-.8 7.5"}],["circle",{cx:"12",cy:"9",r:"2"}],["path",{d:"M16.2 4.8c2 2 2.26 5.11.8 7.47"}],["path",{d:"M19.1 1.9a9.96 9.96 0 0 1 0 14.1"}],["path",{d:"M9.5 18h5"}],["path",{d:"m8 22 4-11 4 11"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}var Ko=new Set(["$$slots","$$events","$$legacy"]);function Ho(o,e){let r=me(e,Ko);const n={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4"}],["path",{d:"M12 2v2"}],["path",{d:"M12 20v2"}],["path",{d:"m4.93 4.93 1.41 1.41"}],["path",{d:"m17.66 17.66 1.41 1.41"}],["path",{d:"M2 12h2"}],["path",{d:"M20 12h2"}],["path",{d:"m6.34 17.66-1.41 1.41"}],["path",{d:"m19.07 4.93-1.41 1.41"}]]};lt(o,ge(()=>r,{get icon(){return n}}))}function qo(o,e){xe(e,!0);const r=u(()=>"component"in e.entry.render?xs[e.entry.render.component]:void 0);let n=ue(!1);wt(()=>{P(n,!0)});var s=Z(),i=y(s);{var l=c=>{hs(c,{get entry(){return e.entry},get data(){return e.entry.content.value},quiet:!0})},d=c=>{var g=Z(),_=y(g);ts(_,{failed:p=>{}},p=>{var b=Z(),w=y(b);oe(w,()=>t(r),(v,M)=>{M(v,{get data(){return e.entry.content.value},get entry(){return e.entry}})}),a(p,b)}),a(c,g)};D(i,c=>{t(n)&&"element"in e.entry.render&&e.entry.content.available?c(l):t(n)&&t(r)&&e.entry.content.available&&c(d,1)})}a(o,s),_e()}function Pt(o){let e=ue(gt(o));return{[Ns]:!0,[Ds]:!0,get current(){return t(e)},set current(r){P(e,r,!0)}}}Pt.from=Fs;Pt.with=V;Pt.flatten=zs;Pt.readonly=Ws;Pt.isBox=js;Pt.isWritableBox=Ls;function $r(o){at(()=>rs(()=>o()))}function Uo(o){return window.getComputedStyle(o).getPropertyValue("direction")}function Go(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Tr:Pr,vertical:Bt}[e]}function Ro(o="ltr",e="horizontal"){return{horizontal:o==="rtl"?Pr:Tr,vertical:Qt}[e]}function Yo(o="ltr",e="horizontal"){return["ltr","rtl"].includes(o)||(o="ltr"),["horizontal","vertical"].includes(e)||(e="horizontal"),{nextKey:Go(o,e),prevKey:Ro(o,e)}}class Vo{#e;#t=Pt(null);constructor(e){this.#e=e}getCandidateNodes(){return this.#e.rootNode.current?this.#e.candidateSelector?Array.from(this.#e.rootNode.current.querySelectorAll(this.#e.candidateSelector)):this.#e.candidateAttr?Array.from(this.#e.rootNode.current.querySelectorAll(`[${this.#e.candidateAttr}]:not([data-disabled])`)):[]:[]}focusFirstCandidate(){const e=this.getCandidateNodes();e.length&&e[0]?.focus()}handleKeydown(e,r,n=!1){const s=this.#e.rootNode.current;if(!s||!e)return;const i=this.getCandidateNodes();if(!i.length)return;const l=i.indexOf(e),d=Uo(s),{nextKey:c,prevKey:g}=Yo(d,this.#e.orientation.current),_=this.#e.loop.current,f={[c]:l+1,[g]:l-1,[Tn]:0,[Pn]:i.length-1};if(n){const w=c===Bt?Pr:Bt,v=g===Qt?Tr:Qt;f[w]=l+1,f[v]=l-1}let p=f[r.key];if(p===void 0)return;r.preventDefault(),p<0&&_?p=i.length-1:p===i.length&&_&&(p=0);const b=i[p];if(b)return b.focus(),this.#t.current=b.id,this.#e.onCandidateFocus?.(b),b}getTabIndex(e){const r=this.getCandidateNodes(),n=this.#t.current!==null;return e&&!n&&r[0]===e?(this.#t.current=e.id,0):e?.id===this.#t.current?0:-1}setCurrentTabStopId(e){this.#t.current=e}focusCurrentTabStop(){const e=this.#t.current;if(!e)return;const r=this.#e.rootNode.current?.querySelector(`#${e}`);!r||!Ot(r)||r.focus()}}class Xo{eventName;options;constructor(e,r={bubbles:!0,cancelable:!0}){this.eventName=e,this.options=r}createEvent(e){return new CustomEvent(this.eventName,{...this.options,detail:e})}dispatch(e,r){const n=this.createEvent(r);return e.dispatchEvent(n),n}listen(e,r,n){const s=i=>{r(i)};return Wt(e,this.eventName,s,n)}}function Hn(o,e,r){const n=e.toLowerCase();if(n.endsWith(" ")){const f=n.slice(0,-1);if(o.filter(v=>v.toLowerCase().startsWith(f)).length<=1)return Hn(o,f,r);const b=r?.toLowerCase();if(b&&b.startsWith(f)&&b.charAt(f.length)===" "&&e.trim()===f)return r;const w=o.filter(v=>v.toLowerCase().startsWith(n));if(w.length>0){const v=r?o.indexOf(r):-1;return en(w,Math.max(v,0)).find(ne=>ne!==r)||r}}const i=e.length>1&&Array.from(e).every(f=>f===e[0])?e[0]:e,l=i.toLowerCase(),d=r?o.indexOf(r):-1;let c=en(o,Math.max(d,0));i.length===1&&(c=c.filter(f=>f!==r));const _=c.find(f=>f?.toLowerCase().startsWith(l));return _!==r?_:void 0}function en(o,e){return o.map((r,n)=>o[(e+n)%o.length])}const Jo={afterMs:1e4,onChange:tt};function Zo(o,e){const{afterMs:r,onChange:n,getWindow:s}={...Jo,...e};let i=null,l=ue(gt(o));function d(){return s().setTimeout(()=>{P(l,o,!0),n?.(o)},r)}return at(()=>()=>{i&&s().clearTimeout(i)}),V(()=>t(l),c=>{P(l,c,!0),n?.(c),i&&s().clearTimeout(i),i=d()})}class Qo{#e;#t;#r=u(()=>this.#e.onMatch?this.#e.onMatch:e=>e.focus());#n=u(()=>this.#e.getCurrentItem?this.#e.getCurrentItem:this.#e.getActiveElement);constructor(e){this.#e=e,this.#t=Zo("",{afterMs:1e3,getWindow:e.getWindow}),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(e,r){if(!r.length)return;this.#t.current=this.#t.current+e;const n=t(this.#n)(),s=r.find(c=>c===n)?.textContent?.trim()??"",i=r.map(c=>c.textContent?.trim()??""),l=Hn(i,this.#t.current,s),d=r.find(c=>c.textContent?.trim()===l);return d&&t(this.#r)(d),d}resetTypeahead(){this.#t.current=""}get search(){return this.#t.current}}var ea=new Set(["$$slots","$$events","$$legacy","id","children","child","width","height"]),ta=ns('<svg viewBox="0 0 30 10" preserveAspectRatio="none" data-arrow=""><polygon points="0,0 30,0 15,10" fill="currentColor"></polygon></svg>'),ra=x("<span><!></span>");function na(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"width",3,10),s=k(e,"height",3,5),i=me(e,ea);const l=u(()=>Ye(i,{id:r()}));var d=Z(),c=y(d);{var g=f=>{var p=Z(),b=y(p);Me(b,()=>e.child,()=>({props:t(l)})),a(f,p)},_=f=>{var p=ra();Ge(p,()=>({...t(l)}));var b=S(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.children??Re),a(M,O)},v=M=>{var O=ta();j(()=>{ce(O,"width",n()),ce(O,"height",s())}),a(M,O)};D(b,M=>{e.children?M(w):M(v,-1)})}C(p),a(f,p)};D(c,f=>{e.child?f(g):f(_,-1)})}a(o,d),_e()}var sa=new Set(["$$slots","$$events","$$legacy","id","ref"]);function oa(o,e){xe(e,!0);let r=k(e,"id",19,Sn),n=k(e,"ref",15,null),s=me(e,sa);const i=ws.create({id:V(()=>r()),ref:V(()=>n(),d=>n(d))}),l=u(()=>Ye(s,i.props));na(o,ge(()=>t(l))),_e()}const aa=[Mn,Sr],ia=[Bt,Bs,Tn],qn=[Qt,Ks,Pn],la=[...ia,...qn];function da(o){return o==="indeterminate"}function ca(o){return da(o)?"indeterminate":o?"checked":"unchecked"}function ht(o){return o.pointerType==="mouse"}function ua(o,{select:e=!1}={}){if(!o||!o.focus)return;const r=sr(o);if(r.activeElement===o)return;const n=r.activeElement;o.focus({preventScroll:!0}),o!==n&&Hs(o)&&e&&o.select()}function ha(o,{select:e=!1}={},r){const n=r();for(const s of o)if(ua(s,{select:e}),r()!==n)return!0}let Tt=ue(!1);class vt{static _refs=0;static _cleanup;constructor(){at(()=>(vt._refs===0&&(vt._cleanup=ss(()=>{const e=[],r=s=>{P(Tt,!1)},n=s=>{P(Tt,!0)};return e.push(Wt(document,"pointerdown",r,{capture:!0}),Wt(document,"keydown",n,{capture:!0})),at(()=>{if(t(Tt))return Wt(document,"pointermove",r,{capture:!0})}),qs(...e)})),vt._refs++,()=>{vt._refs--,vt._refs===0&&(P(Tt,!1),vt._cleanup?.())}))}get current(){return t(Tt)}set current(e){P(Tt,e,!0)}}function Lt(){return{getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"}}function pa(o,e){if(!Mr(o,Lt()))return fa(o,e);const r=sr(o),n=Us(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1)[0]}function fa(o,e){const r=sr(o);if(!Gs(o,Lt()))return r.body;const n=Rs(r.body,Lt());e==="prev"&&n.reverse();const s=n.indexOf(o);return s===-1?r.body:n.slice(s+1).find(l=>Mr(l,Lt()))??r.body}const Ir=new kt("Menu.Root"),Ar=new kt("Menu.Root | Menu.Sub"),Or=new kt("Menu.Content"),va=new kt("Menu.Group | Menu.RadioGroup"),ga=new kt("Menu.CheckboxGroup"),ma=new Xo("bitsmenuopen",{bubbles:!1,cancelable:!0}),ba=Dn({component:"menu",parts:["trigger","content","sub-trigger","item","group","group-heading","checkbox-group","checkbox-item","radio-group","radio-item","separator","sub-content","arrow"]});class xa{#e;#t=null;#r=null;#n=!1;#s=null;#a=null;#o=null;#i=null;constructor(e){this.#e=e,it([e.triggerNode,e.contentNode,e.enabled],([r,n,s])=>{if(this.#p(),!r||!n||!s)return;const i=f=>{ht(f)&&(this.#i={x:f.clientX,y:f.clientY},this.#n||this.#m(f,"content"))},l=f=>{ht(f)&&this.#b(f,"content")},d=f=>{ht(f)&&(this.#n||this.#m(f,"trigger"))},c=f=>{if(ht(f)){if(_t(f.relatedTarget)){const p=this.#e.subContentSelector(),b=f.relatedTarget.closest(p);if(b&&b!==n&&b.id&&!!n.querySelector(`[aria-controls="${b.id}"]`))return}this.#b(f,"trigger")}},g=f=>{ht(f)&&this.#u()},_=f=>{ht(f)&&this.#u()};return r.addEventListener("pointermove",i),r.addEventListener("pointerleave",l),r.addEventListener("pointerenter",g),n.addEventListener("pointermove",d),n.addEventListener("pointerleave",c),n.addEventListener("pointerenter",_),()=>{r.removeEventListener("pointermove",i),r.removeEventListener("pointerleave",l),r.removeEventListener("pointerenter",g),n.removeEventListener("pointermove",d),n.removeEventListener("pointerleave",c),n.removeEventListener("pointerenter",_),this.#p()}}),Nn(()=>{this.#p()})}#l(){const e=this.#e.parentContentNode();return e?e.getBoundingClientRect():this.#e.triggerNode()?.getBoundingClientRect()??null}#d(e,r){const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return null;const i=n.getBoundingClientRect(),l=s.getBoundingClientRect(),d=ya(i,l);let c,g,_;return r==="content"?(c=this.#n?this.#a??e:e,g=l):(c=this.#i??e,g=this.#l()??i,_=l),this.#a=c,{corridor:wa(i,l,d),intent:ka(c,g,d,r,_),targetRect:g,side:d}}#g(e,r,n){return tn(e,r)||tn(e,n)}#m(e,r){const n={x:e.clientX,y:e.clientY};this.#d(n,r)&&(this.#s=r,this.#o=n)}#b(e,r){if(!this.#e.enabled())return;const n=this.#e.triggerNode(),s=this.#e.contentNode();if(!n||!s)return;const i=e.relatedTarget;if(_t(i)&&(r==="content"&&s.contains(i)||r==="trigger"&&n.contains(i)))return;const l={x:e.clientX,y:e.clientY},d=this.#d(l,r);if(d){if(!rn(l,d.targetRect)&&!this.#g(l,d.corridor,d.intent)){this.#y();return}this.#n=!0,this.#s=r,this.#o=l,this.#e.setIsPointerInTransit(!0),this.#C(),this.#_()}}#c=null;#u(){if(!this.#n)return;const e=this.#s==="trigger";this.#x(),this.#v(),this.#n=!1,this.#y(),e?(this.#f(),this.#c=setTimeout(()=>{this.#c=null,this.#e.setIsPointerInTransit(!1)},100)):this.#e.setIsPointerInTransit(!1)}#f(){this.#c!==null&&(clearTimeout(this.#c),this.#c=null)}#h(){const e=this.#o;this.#x(),this.#v(),this.#f(),this.#n=!1,this.#e.setIsPointerInTransit(!1),this.#y(),this.#e.onIntentExit(e)}#p(){this.#x(),this.#v(),this.#f(),this.#n&&this.#e.setIsPointerInTransit(!1),this.#n=!1,this.#s=null,this.#a=null,this.#o=null,this.#i=null}#k(e){const r=this.#e.contentNode();if(!r)return!1;const s=r.ownerDocument.elementFromPoint(e.x,e.y);if(!s)return!1;const i=this.#e.subContentSelector(),l=s.closest(i);return!l||l===r?!1:l.id?!!r.querySelector(`[aria-controls="${l.id}"]`):!1}#w=e=>{if(!this.#n||!this.#s||!ht(e))return;const r=this.#e.triggerNode(),n=this.#e.contentNode();if(!r||!n){this.#h();return}this.#v();const s={x:e.clientX,y:e.clientY};this.#o=s;const i=r.getBoundingClientRect(),l=n.getBoundingClientRect();if(this.#s==="content"&&rn(s,l)){this.#u();return}if(this.#s==="trigger"&&_a(s,i,4)){this.#u();return}if(this.#k(s)){this.#_();return}const d=this.#d(s,this.#s);if(!d){this.#h();return}if(this.#g(s,d.corridor,d.intent)){this.#_();return}this.#h()};#C(){if(this.#t)return;const e=sr(this.#e.triggerNode()??this.#e.contentNode());e&&(e.addEventListener("pointermove",this.#w,!0),this.#t=()=>{e.removeEventListener("pointermove",this.#w,!0),this.#t=null})}#x(){this.#t?.()}#_(){this.#v(),this.#r=setTimeout(()=>{this.#r=null,this.#n&&this.#h()},500)}#v(){this.#r!==null&&(clearTimeout(this.#r),this.#r=null)}#y(){this.#s=null,this.#a=null,this.#o=null}}function tn(o,e){const{x:r,y:n}=o;let s=!1;for(let i=0,l=e.length-1;i<e.length;l=i++){const d=e[i].x,c=e[i].y,g=e[l].x,_=e[l].y;c>n!=_>n&&r<(g-d)*(n-c)/(_-c)+d&&(s=!s)}return s}function rn(o,e){return o.x>=e.left&&o.x<=e.right&&o.y>=e.top&&o.y<=e.bottom}function _a(o,e,r){return o.x>=e.left+r&&o.x<=e.right-r&&o.y>=e.top+r&&o.y<=e.bottom-r}function ya(o,e){const r=o.left+o.width/2,n=o.top+o.height/2,s=e.left+e.width/2,i=e.top+e.height/2,l=s-r,d=i-n;return Math.abs(l)>Math.abs(d)?l>0?"right":"left":d>0?"bottom":"top"}function wa(o,e,r){switch(r){case"top":return[{x:Math.min(o.left,e.left)-2,y:o.top},{x:Math.min(o.left,e.left)-2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:e.bottom},{x:Math.max(o.right,e.right)+2,y:o.top}];case"bottom":return[{x:Math.min(o.left,e.left)-2,y:o.bottom},{x:Math.min(o.left,e.left)-2,y:e.top},{x:Math.max(o.right,e.right)+2,y:e.top},{x:Math.max(o.right,e.right)+2,y:o.bottom}];case"left":return[{x:o.left,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.min(o.top,e.top)-2},{x:e.right,y:Math.max(o.bottom,e.bottom)+2},{x:o.left,y:Math.max(o.bottom,e.bottom)+2}];case"right":return[{x:o.right,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.min(o.top,e.top)-2},{x:e.left,y:Math.max(o.bottom,e.bottom)+2},{x:o.right,y:Math.max(o.bottom,e.bottom)+2}]}}function ka(o,e,r,n,s){const l=n==="trigger"?Ca(r):r,d=s?Math.min(e.top,s.top)-8:e.top-8,c=s?Math.max(e.bottom,s.bottom)+8:e.bottom+8,g=s?Math.min(e.left,s.left)-8:e.left-8,_=s?Math.max(e.right,s.right)+8:e.right+8;switch(l){case"right":return[o,{x:e.left,y:d},{x:e.left,y:c}];case"left":return[o,{x:e.right,y:d},{x:e.right,y:c}];case"bottom":return[o,{x:g,y:e.top},{x:_,y:e.top}];case"top":return[o,{x:g,y:e.bottom},{x:_,y:e.bottom}]}}function Ca(o){switch(o){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}class Er{static create(e){const r=new Er(e);return Ir.set(r)}opts;isUsingKeyboard=new vt;#e=ue(!1);get ignoreCloseAutoFocus(){return t(this.#e)}set ignoreCloseAutoFocus(e){P(this.#e,e,!0)}#t=ue(!1);get isPointerInTransit(){return t(this.#t)}set isPointerInTransit(e){P(this.#t,e,!0)}constructor(e){this.opts=e}getBitsAttr=e=>ba.getAttr(e,this.opts.variant.current)}class Dr{static create(e,r){return Ar.set(new Dr(e,r,null))}opts;root;parentMenu;#e=ue(V(()=>""));get contentId(){return t(this.#e)}set contentId(e){P(this.#e,e)}#t=ue(null);get contentNode(){return t(this.#t)}set contentNode(e){P(this.#t,e,!0)}contentPresence;#r=ue(null);get triggerNode(){return t(this.#r)}set triggerNode(e){P(this.#r,e,!0)}constructor(e,r,n){this.opts=e,this.root=r,this.parentMenu=n,this.contentPresence=new $n({ref:V(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)},shouldSkipExitAnimation:()=>this.root.opts.variant.current!=="menubar"||this.parentMenu!==null?!1:this.root.opts.shouldSkipExitAnimation?.()??!1}),n&&it(()=>n.opts.open.current,()=>{n.opts.open.current||(this.opts.open.current=!1)})}toggleOpen(){this.opts.open.current=!this.opts.open.current}onOpen(){this.opts.open.current=!0}onClose(){this.opts.open.current=!1}}class Nr{static create(e){return Or.set(new Nr(e,Ar.get()))}opts;parentMenu;rovingFocusGroup;domContext;attachment;#e=ue("");get search(){return t(this.#e)}set search(e){P(this.#e,e,!0)}#t=0;#r;#n=ue(!1);get mounted(){return t(this.#n)}set mounted(e){P(this.#n,e,!0)}#s;constructor(e,r){this.opts=e,this.parentMenu=r,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,n=>{this.parentMenu.contentNode!==n&&(this.parentMenu.contentNode=n)}),r.contentId=e.id,this.#s=e.isSub??!1,this.onkeydown=this.onkeydown.bind(this),this.onblur=this.onblur.bind(this),this.onfocus=this.onfocus.bind(this),this.handleInteractOutside=this.handleInteractOutside.bind(this),new xa({contentNode:()=>this.parentMenu.contentNode,triggerNode:()=>this.parentMenu.triggerNode,parentContentNode:()=>this.parentMenu.parentMenu?.contentNode??null,subContentSelector:()=>`[${this.parentMenu.root.getBitsAttr("sub-content")}]`,enabled:()=>this.parentMenu.opts.open.current&&!!this.parentMenu.triggerNode?.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger")),onIntentExit:n=>{this.parentMenu.opts.open.current=!1,this.#i(n)},setIsPointerInTransit:n=>{this.parentMenu.root.isPointerInTransit=n}}),this.#r=new Qo({getActiveElement:()=>this.domContext.getActiveElement(),getWindow:()=>this.domContext.getWindow()}).handleTypeaheadSearch,this.rovingFocusGroup=new Vo({rootNode:V(()=>this.parentMenu.contentNode),candidateAttr:this.parentMenu.root.getBitsAttr("item"),loop:this.opts.loop,orientation:V(()=>"vertical")}),it(()=>this.parentMenu.contentNode,n=>{if(!n)return;const s=()=>{xt(()=>{this.parentMenu.root.isUsingKeyboard.current&&this.rovingFocusGroup.focusFirstCandidate()})};return ma.listen(n,s)}),at(()=>{this.parentMenu.opts.open.current||this.domContext.getWindow().clearTimeout(this.#t)})}#a(){const e=this.parentMenu.contentNode;return e?Array.from(e.querySelectorAll(`[${this.parentMenu.root.getBitsAttr("item")}]:not([data-disabled])`)):[]}#o(){return this.parentMenu.root.isPointerInTransit}#i(e){if(!e)return;const r=this.parentMenu.parentMenu?.contentNode;if(!r)return;const n=this.domContext.getDocument().elementFromPoint(e.x,e.y);if(!_t(n))return;const s=n.closest(`[${this.parentMenu.root.getBitsAttr("sub-trigger")}]`);!s||!r.contains(s)||s!==this.parentMenu.triggerNode&&s.dispatchEvent(new PointerEvent("pointermove",{bubbles:!0,cancelable:!0,pointerType:"mouse",clientX:e.x,clientY:e.y}))}onCloseAutoFocus=e=>{if(this.opts.onCloseAutoFocus.current?.(e),!(e.defaultPrevented||this.#s)){if(this.parentMenu.root.ignoreCloseAutoFocus){e.preventDefault();return}this.parentMenu.triggerNode&&Mr(this.parentMenu.triggerNode)&&(e.preventDefault(),this.parentMenu.triggerNode.focus())}};handleTabKeyDown(e){let r=this.parentMenu;for(;r.parentMenu!==null;)r=r.parentMenu;if(!r.triggerNode)return;e.preventDefault();const n=pa(r.triggerNode,e.shiftKey?"prev":"next");n?(this.parentMenu.root.ignoreCloseAutoFocus=!0,r.onClose(),xt(()=>{n.focus(),xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})})):this.domContext.getDocument().body.focus()}onkeydown(e){if(e.defaultPrevented)return;if(e.key===Ys){this.handleTabKeyDown(e);return}const r=e.target,n=e.currentTarget;if(!Ot(r)||!Ot(n))return;const s=r.closest(`[${this.parentMenu.root.getBitsAttr("content")}]`)?.id===this.parentMenu.contentId.current,i=e.ctrlKey||e.altKey||e.metaKey,l=e.key.length===1;if(this.rovingFocusGroup.handleKeydown(r,e)||e.code==="Space")return;const c=this.#a();s&&!i&&l&&this.#r(e.key,c),e.target?.id===this.parentMenu.contentId.current&&la.includes(e.key)&&(e.preventDefault(),qn.includes(e.key)&&c.reverse(),ha(c,{select:!1},()=>this.domContext.getActiveElement()))}onblur(e){_t(e.currentTarget)&&_t(e.target)&&(e.currentTarget.contains?.(e.target)||(this.domContext.getWindow().clearTimeout(this.#t),this.search=""))}onfocus(e){this.parentMenu.root.isUsingKeyboard.current&&xt(()=>this.rovingFocusGroup.focusFirstCandidate())}onItemEnter(){return this.#o()}onItemLeave(e){if(e.currentTarget.hasAttribute(this.parentMenu.root.getBitsAttr("sub-trigger"))||this.#o()||this.parentMenu.root.isUsingKeyboard.current)return;this.parentMenu.contentNode?.focus({preventScroll:!0}),this.rovingFocusGroup.setCurrentTabStopId("")}onTriggerLeave(){return!!this.#o()}handleInteractOutside(e){if(!Vs(e.target))return;const r=this.parentMenu.triggerNode?.id;if(e.target.id===r){e.preventDefault();return}if(e.target.closest(`#${r}`)){e.preventDefault();return}this.parentMenu.root.ignoreCloseAutoFocus=!0,xt(()=>{this.parentMenu.root.ignoreCloseAutoFocus=!1})}get shouldRender(){return this.parentMenu.contentPresence.shouldRender}#l=u(()=>({open:this.parentMenu.opts.open.current}));get snippetProps(){return t(this.#l)}set snippetProps(e){P(this.#l,e)}#d=u(()=>({id:this.opts.id.current,role:"menu","aria-orientation":"vertical",[this.parentMenu.root.getBitsAttr("content")]:"","data-state":In(this.parentMenu.opts.open.current),...En(this.parentMenu.contentPresence.transitionStatus),onkeydown:this.onkeydown,onblur:this.onblur,onfocus:this.onfocus,dir:this.parentMenu.root.opts.dir.current,style:{pointerEvents:"auto",contain:"layout style"},...this.attachment}));get props(){return t(this.#d)}set props(e){P(this.#d,e)}popperProps={onCloseAutoFocus:e=>this.onCloseAutoFocus(e)}}class Un{opts;content;attachment;#e=ue(!1);constructor(e,r){this.opts=e,this.content=r,this.attachment=Ct(this.opts.ref),this.onpointermove=this.onpointermove.bind(this),this.onpointerleave=this.onpointerleave.bind(this),this.onfocus=this.onfocus.bind(this),this.onblur=this.onblur.bind(this)}onpointermove(e){if(!e.defaultPrevented&&ht(e))if(this.opts.disabled.current)this.content.onItemLeave(e);else{if(this.content.onItemEnter())return;const n=e.currentTarget;if(!Ot(n))return;n.focus({preventScroll:!0})}}onpointerleave(e){e.defaultPrevented||ht(e)&&this.content.onItemLeave(e)}onfocus(e){xt(()=>{e.defaultPrevented||this.opts.disabled.current||P(this.#e,!0)})}onblur(e){xt(()=>{e.defaultPrevented||P(this.#e,!1)})}#t=u(()=>({id:this.opts.id.current,tabindex:-1,role:"menuitem","aria-disabled":An(this.opts.disabled.current),"data-disabled":or(this.opts.disabled.current),"data-highlighted":t(this.#e)?"":void 0,[this.content.parentMenu.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerleave:this.onpointerleave,onfocus:this.onfocus,onblur:this.onblur,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class ir{static create(e){const r=new Un(e,Or.get());return new ir(e,r)}opts;item;root;#e=!1;constructor(e,r){this.opts=e,this.item=r,this.root=r.content.parentMenu.root,this.onkeydown=this.onkeydown.bind(this),this.onclick=this.onclick.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this)}#t(){if(this.item.opts.disabled.current)return;const e=new CustomEvent("menuitemselect",{bubbles:!0,cancelable:!0});if(this.opts.onSelect.current(e),e.defaultPrevented){this.item.content.parentMenu.root.isUsingKeyboard.current=!1;return}this.opts.closeOnSelect.current&&this.item.content.parentMenu.root.opts.onClose()}onkeydown(e){const r=this.item.content.search!=="";if(!(this.item.opts.disabled.current||r&&e.key===Sr)&&aa.includes(e.key)){if(!Ot(e.currentTarget))return;e.currentTarget.click(),e.preventDefault()}}onclick(e){this.item.opts.disabled.current||this.#t()}onpointerup(e){if(!e.defaultPrevented&&!this.#e){if(!Ot(e.currentTarget))return;e.currentTarget?.click()}}onpointerdown(e){this.#e=!0}#r=u(()=>Ye(this.item.props,{onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown}));get props(){return t(this.#r)}set props(e){P(this.#r,e)}}class Fr{static create(e,r){const n=new ir(e,new Un(e,Or.get()));return new Fr(e,n,r)}opts;item;group;constructor(e,r,n=null){this.opts=e,this.item=r,this.group=n,this.group&&(it(()=>this.group.opts.value.current,s=>{this.opts.checked.current=s.includes(this.opts.value.current)}),it(()=>this.opts.checked.current,s=>{s?this.group.addValue(this.opts.value.current):this.group.removeValue(this.opts.value.current)}))}toggleChecked(){this.opts.indeterminate.current?(this.opts.indeterminate.current=!1,this.opts.checked.current=!0):this.opts.checked.current=!this.opts.checked.current}#e=u(()=>({checked:this.opts.checked.current,indeterminate:this.opts.indeterminate.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({...this.item.props,role:"menuitemcheckbox","aria-checked":Xs(this.opts.checked.current,this.opts.indeterminate.current),"data-state":ca(this.opts.checked.current),[this.item.root.getBitsAttr("checkbox-item")]:""}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class zr{static create(e){return va.set(new zr(e,Ir.get()))}opts;root;attachment;#e=ue(void 0);get groupHeadingId(){return t(this.#e)}set groupHeadingId(e){P(this.#e,e,!0)}constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#t=u(()=>({id:this.opts.id.current,role:"group","aria-labelledby":this.groupHeadingId,[this.root.getBitsAttr("group")]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}class Wr{static create(e){return new Wr(e,Ir.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref)}#e=u(()=>({id:this.opts.id.current,role:"separator",[this.root.getBitsAttr("separator")]:"",...this.attachment}));get props(){return t(this.#e)}set props(e){P(this.#e,e)}}class jr{static create(e){return new jr(e,Ar.get())}opts;parentMenu;attachment;constructor(e,r){this.opts=e,this.parentMenu=r,this.attachment=Ct(this.opts.ref,n=>this.parentMenu.triggerNode=n)}onclick=e=>{this.opts.disabled.current||e.detail!==0||(this.parentMenu.toggleOpen(),e.preventDefault())};onpointerdown=e=>{if(!this.opts.disabled.current){if(e.pointerType==="touch")return e.preventDefault();e.button===0&&e.ctrlKey===!1&&(this.parentMenu.toggleOpen(),this.parentMenu.opts.open.current||e.preventDefault())}};onpointerup=e=>{this.opts.disabled.current||e.pointerType==="touch"&&(e.preventDefault(),this.parentMenu.toggleOpen())};onkeydown=e=>{if(!this.opts.disabled.current){if(e.key===Sr||e.key===Mn){this.parentMenu.toggleOpen(),e.preventDefault();return}e.key===Bt&&(this.parentMenu.onOpen(),e.preventDefault())}};#e=u(()=>{if(this.parentMenu.opts.open.current&&this.parentMenu.contentId.current)return this.parentMenu.contentId.current});#t=u(()=>({id:this.opts.id.current,disabled:this.opts.disabled.current,"aria-haspopup":"menu","aria-expanded":An(this.parentMenu.opts.open.current),"aria-controls":t(this.#e),"data-disabled":or(this.opts.disabled.current),"data-state":In(this.parentMenu.opts.open.current),[this.parentMenu.root.getBitsAttr("trigger")]:"",onclick:this.onclick,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,onkeydown:this.onkeydown,...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}}var Pa=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","disabled","onSelect","closeOnSelect"]),Ta=x("<div><!></div>");function Sa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=k(e,"disabled",3,!1),l=k(e,"onSelect",3,tt),d=k(e,"closeOnSelect",3,!0),c=me(e,Pa);const g=ir.create({id:V(()=>s()),disabled:V(()=>i()),onSelect:V(()=>l()),ref:V(()=>n(),v=>n(v)),closeOnSelect:V(()=>d())}),_=u(()=>Ye(c,g.props));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ta();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Ma=new Set(["$$slots","$$events","$$legacy","children","child","ref","id"]),$a=x("<div><!></div>");function Ia(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Ma);const l=zr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=$a();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Aa=new Set(["$$slots","$$events","$$legacy","ref","id","child","children"]),Oa=x("<div><!></div>");function Ea(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"id",19,()=>mt(r)),i=me(e,Aa);const l=Wr.create({id:V(()=>s()),ref:V(()=>n(),p=>n(p))}),d=u(()=>Ye(i,l.props));var c=Z(),g=y(c);{var _=p=>{var b=Z(),w=y(b);Me(w,()=>e.child,()=>({props:t(d)})),a(p,b)},f=p=>{var b=Oa();Ge(b,()=>({...t(d)}));var w=S(b);Me(w,()=>e.children??Re),C(b),a(p,b)};D(g,p=>{e.child?p(_):p(f,-1)})}a(o,c),_e()}var Da=new Set(["$$slots","$$events","$$legacy","child","children","ref","checked","id","onCheckedChange","disabled","onSelect","closeOnSelect","indeterminate","onIndeterminateChange","value"]),Na=x("<div><!></div>");function Fa(o,e){const r=pt();xe(e,!0);let n=k(e,"ref",15,null),s=k(e,"checked",15,!1),i=k(e,"id",19,()=>mt(r)),l=k(e,"onCheckedChange",3,tt),d=k(e,"disabled",3,!1),c=k(e,"onSelect",3,tt),g=k(e,"closeOnSelect",3,!0),_=k(e,"indeterminate",15,!1),f=k(e,"onIndeterminateChange",3,tt),p=k(e,"value",3,""),b=me(e,Da);const w=ga.getOr(null);w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1)),it.pre(()=>p(),()=>{w&&p()&&(w.opts.value.current.includes(p())?s(!0):s(!1))});const v=Fr.create({checked:V(()=>s(),m=>{m!==s()&&(s(m),l()(m))}),id:V(()=>i()),disabled:V(()=>d()),onSelect:V(()=>M),ref:V(()=>n(),m=>n(m)),closeOnSelect:V(()=>g()),indeterminate:V(()=>_(),m=>{m!==_()&&(_(m),f()(m))}),value:V(()=>p())},w);function M(m){c()(m),!m.defaultPrevented&&v.toggleChecked()}const O=u(()=>Ye(b,v.props));var ne=Z(),le=y(ne);{var L=m=>{var A=Z(),$=y(A);Me($,()=>e.child,()=>({checked:s(),indeterminate:_(),props:t(O)})),a(m,A)},q=m=>{var A=Na();Ge(A,()=>({...t(O)}));var $=S(A);Me($,()=>e.children??Re,()=>({checked:s(),indeterminate:_()})),C(A),a(m,A)};D(le,m=>{e.child?m(L):m(q,-1)})}a(o,ne),_e()}function za(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"dir",3,"ltr"),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt),l=k(e,"_internal_variant",3,"dropdown-menu"),d=k(e,"_internal_should_skip_exit_animation",3,void 0);const c=Er.create({variant:V(()=>l()),dir:V(()=>n()),onClose:()=>{r(!1),s()(!1)},shouldSkipExitAnimation:()=>d()?.()??!1});Dr.create({open:V(()=>r(),g=>{r(g),s()(g)}),onOpenChangeComplete:V(()=>i())},c),xn(o,{children:(g,_)=>{var f=Z(),p=y(f);Me(p,()=>e.children??Re),a(g,f)},$$slots:{default:!0}}),_e()}var Wa=new Set(["$$slots","$$events","$$legacy","id","child","children","ref","loop","onInteractOutside","onEscapeKeydown","onCloseAutoFocus","forceMount","trapFocus","style"]),nn=x("<div><div><!></div></div>");function ja(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"loop",3,!0),l=k(e,"onInteractOutside",3,tt),d=k(e,"onEscapeKeydown",3,tt),c=k(e,"onCloseAutoFocus",3,tt),g=k(e,"forceMount",3,!1),_=k(e,"trapFocus",3,!1),f=me(e,Wa);const p=Nr.create({id:V(()=>n()),loop:V(()=>i()),ref:V(()=>s(),L=>s(L)),onCloseAutoFocus:V(()=>c())}),b=u(()=>Ye(f,p.props));function w(L){if(p.handleInteractOutside(L),!L.defaultPrevented&&(l()(L),!L.defaultPrevented)){if(L.target&&L.target instanceof Element){const q=`[${p.parentMenu.root.getBitsAttr("sub-content")}]`;if(L.target.closest(q))return}p.parentMenu.onClose()}}function v(L){d()(L),!L.defaultPrevented&&p.parentMenu.onClose()}var M=Z(),O=y(M);{var ne=L=>{_n(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get enabled(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!0,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))},le=L=>{yn(L,ge(()=>t(b),()=>p.popperProps,{get ref(){return p.opts.ref},get open(){return p.parentMenu.opts.open.current},onInteractOutside:w,onEscapeKeydown:v,get trapFocus(){return _()},get loop(){return i()},forceMount:!1,get id(){return n()},get shouldRender(){return p.shouldRender},popper:(m,A)=>{let $=()=>(A?.()).props,X=()=>(A?.()).wrapperProps;const G=u(()=>Ye($(),{style:Zt("dropdown-menu")},{style:e.style}));var B=Z(),ae=y(B);{var T=I=>{var F=Z(),Q=y(F);{let se=u(()=>({props:t(G),wrapperProps:X(),...p.snippetProps}));Me(Q,()=>e.child,()=>t(se))}a(I,F)},R=I=>{var F=nn();Ge(F,()=>({...X()}));var Q=S(F);Ge(Q,()=>({...t(G)}));var se=S(Q);Me(se,()=>e.children??Re),C(Q),C(F),a(I,F)};D(ae,I=>{e.child?I(T):I(R,-1)})}a(m,B)},$$slots:{popper:!0}}))};D(O,L=>{g()?L(ne):g()||L(le,1)})}a(o,M),_e()}var La=new Set(["$$slots","$$events","$$legacy","id","ref","child","children","disabled","type"]),Ba=x("<button><!></button>");function Ka(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"disabled",3,!1),l=k(e,"type",3,"button"),d=me(e,La);const c=jr.create({id:V(()=>n()),disabled:V(()=>i()??!1),ref:V(()=>s(),_=>s(_))}),g=u(()=>Ye(d,c.props,{type:l()}));ks(o,{get id(){return n()},get ref(){return c.opts.ref},children:(_,f)=>{var p=Z(),b=y(p);{var w=M=>{var O=Z(),ne=y(O);Me(ne,()=>e.child,()=>({props:t(g)})),a(M,O)},v=M=>{var O=Ba();Ge(O,()=>({...t(g)}));var ne=S(O);Me(ne,()=>e.children??Re),C(O),a(M,O)};D(b,M=>{e.child?M(w):M(v,-1)})}a(_,p)},$$slots:{default:!0}}),_e()}class kr{#e;#t;#r=null;constructor(e,r){this.#t=e,this.#e=r,this.stop=this.stop.bind(this),this.start=this.start.bind(this),Nn(this.stop)}#n(){this.#r!==null&&(window.clearTimeout(this.#r),this.#r=null)}stop(){this.#n()}start(...e){this.#n(),this.#r=window.setTimeout(()=>{this.#r=null,this.#t(...e)},this.#e)}}const Gn=Dn({component:"tooltip",parts:["content","trigger"]}),Rn=new kt("Tooltip.Provider"),Lr=new kt("Tooltip.Root");class Ha{#e=ue(gt(new Map));get triggers(){return t(this.#e)}set triggers(e){P(this.#e,e,!0)}#t=ue(null);get activeTriggerId(){return t(this.#t)}set activeTriggerId(e){P(this.#t,e,!0)}#r=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.node??null});get activeTriggerNode(){return t(this.#r)}set activeTriggerNode(e){P(this.#r,e)}#n=u(()=>{const e=this.activeTriggerId;return e===null?null:this.triggers.get(e)?.payload??null});get activePayload(){return t(this.#n)}set activePayload(e){P(this.#n,e)}register=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};update=e=>{const r=new Map(this.triggers);r.set(e.id,e),this.triggers=r,this.#s()};unregister=e=>{if(!this.triggers.has(e))return;const r=new Map(this.triggers);r.delete(e),this.triggers=r,this.activeTriggerId===e&&(this.activeTriggerId=null)};setActiveTrigger=e=>{if(e===null){this.activeTriggerId=null;return}if(!this.triggers.has(e)){this.activeTriggerId=null;return}this.activeTriggerId=e};get=e=>this.triggers.get(e);has=e=>this.triggers.has(e);getFirstTriggerId=()=>{const e=this.triggers.entries().next();return e.done?null:e.value[0]};#s=()=>{const e=this.activeTriggerId;e!==null&&(this.triggers.has(e)||(this.activeTriggerId=null))}}class Br{static create(e){return Rn.set(new Br(e))}opts;#e=ue(!0);get isOpenDelayed(){return t(this.#e)}set isOpenDelayed(e){P(this.#e,e,!0)}isPointerInTransit=Fn(!1);#t;#r=ue(null);constructor(e){this.opts=e,this.#t=new kr(()=>{this.isOpenDelayed=!0},this.opts.skipDelayDuration.current),$r(()=>Wt(window,"scroll",r=>{const n=t(this.#r);if(!n)return;const s=n.triggerNode;if(!s)return;const i=r.target;(i instanceof Element||i instanceof Document)&&i.contains(s)&&n.handleClose()}))}#n=()=>{if(this.opts.skipDelayDuration.current===0){this.isOpenDelayed=!0;return}else this.#t.start()};#s=()=>{this.#t.stop()};onOpen=e=>{t(this.#r)&&t(this.#r)!==e&&t(this.#r).handleClose(),this.#s(),this.isOpenDelayed=!1,P(this.#r,e,!0)};onClose=e=>{t(this.#r)===e&&(P(this.#r,null),this.#n())};isTooltipOpen=e=>t(this.#r)===e}class Kr{static create(e){return Lr.set(new Kr(e,Rn.get()))}opts;provider;#e=u(()=>this.opts.delayDuration.current??this.provider.opts.delayDuration.current);get delayDuration(){return t(this.#e)}set delayDuration(e){P(this.#e,e)}#t=u(()=>this.opts.disableHoverableContent.current??this.provider.opts.disableHoverableContent.current);get disableHoverableContent(){return t(this.#t)}set disableHoverableContent(e){P(this.#t,e)}#r=u(()=>this.opts.disableCloseOnTriggerClick.current??this.provider.opts.disableCloseOnTriggerClick.current);get disableCloseOnTriggerClick(){return t(this.#r)}set disableCloseOnTriggerClick(e){P(this.#r,e)}#n=u(()=>this.opts.disabled.current??this.provider.opts.disabled.current);get disabled(){return t(this.#n)}set disabled(e){P(this.#n,e)}#s=u(()=>this.opts.ignoreNonKeyboardFocus.current??this.provider.opts.ignoreNonKeyboardFocus.current);get ignoreNonKeyboardFocus(){return t(this.#s)}set ignoreNonKeyboardFocus(e){P(this.#s,e)}registry;tether;#a=ue(null);get contentNode(){return t(this.#a)}set contentNode(e){P(this.#a,e,!0)}contentPresence;#o=ue(!1);#i;#l=u(()=>this.opts.open.current?t(this.#o)?"delayed-open":"instant-open":"closed");get stateAttr(){return t(this.#l)}set stateAttr(e){P(this.#l,e)}constructor(e,r){this.opts=e,this.provider=r,this.tether=e.tether.current?.state??null,this.registry=this.tether?.registry??new Ha,this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration??0),this.tether&&(this.tether.root=this,$r(()=>()=>{this.tether?.root===this&&(this.tether.root=null)})),this.contentPresence=new $n({open:this.opts.open,ref:V(()=>this.contentNode),onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),it(()=>this.delayDuration,()=>{this.delayDuration!==void 0&&(this.#i=new kr(()=>{P(this.#o,!0),this.opts.open.current=!0},this.delayDuration))}),it(()=>this.opts.open.current,n=>{n?(this.ensureActiveTrigger(),this.provider.onOpen(this)):this.provider.onClose(this)},{lazy:!0}),it(()=>this.opts.triggerId.current,n=>{n!==this.registry.activeTriggerId&&this.registry.setActiveTrigger(n)}),it(()=>this.registry.activeTriggerId,n=>{this.opts.triggerId.current!==n&&(this.opts.triggerId.current=n)})}handleOpen=()=>{this.#i.stop(),P(this.#o,!1),this.ensureActiveTrigger(),this.opts.open.current=!0};handleClose=()=>{this.#i.stop(),this.opts.open.current=!1};cancelPendingOpen=()=>{this.#i.stop()};#d=()=>{this.#i.stop();const e=!this.provider.isOpenDelayed,r=this.delayDuration??0;e||r===0?(P(this.#o,!1),this.opts.open.current=!0):this.#i.start()};onTriggerEnter=e=>{this.setActiveTrigger(e),this.#d()};onTriggerLeave=()=>{this.disableHoverableContent?this.handleClose():this.#i.stop()};ensureActiveTrigger=()=>{if(this.registry.activeTriggerId!==null&&this.registry.has(this.registry.activeTriggerId))return;if(this.opts.triggerId.current!==null&&this.registry.has(this.opts.triggerId.current)){this.registry.setActiveTrigger(this.opts.triggerId.current);return}const e=this.registry.getFirstTriggerId();this.registry.setActiveTrigger(e)};setActiveTrigger=e=>{this.registry.setActiveTrigger(e)};registerTrigger=e=>{this.registry.register(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};updateTrigger=e=>{this.registry.update(e),e.disabled&&this.registry.activeTriggerId===e.id&&this.opts.open.current&&this.handleClose()};unregisterTrigger=e=>{const r=this.registry.activeTriggerId===e;this.registry.unregister(e),r&&this.opts.open.current&&this.handleClose()};isActiveTrigger=e=>this.registry.activeTriggerId===e;get triggerNode(){return this.registry.activeTriggerNode}get activePayload(){return this.registry.activePayload}get activeTriggerId(){return this.registry.activeTriggerId}}class tr{static create(e){return e.tether.current?new tr(e,null,e.tether.current.state):new tr(e,Lr.get(),null)}opts;root;tether;attachment;#e=Fn(!1);#t=ue(!1);domContext;#r=null;#n=!1;#s=null;constructor(e,r,n){this.opts=e,this.root=r,this.tether=n,this.domContext=new On(e.ref),this.attachment=Ct(this.opts.ref,s=>this.#i(s)),it(()=>this.opts.id.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.payload.current,()=>{this.#i(this.opts.ref.current)}),it(()=>this.opts.disabled.current,()=>{this.#i(this.opts.ref.current)}),$r(()=>(this.#n=!0,this.#i(this.opts.ref.current),()=>{const s=this.#a(),i=this.#s;i&&(this.tether?this.tether.registry.unregister(i):s?.unregisterTrigger(i)),this.#s=null,this.#n=!1}))}#a=()=>this.tether?.root??this.root;#o=()=>{const e=this.#a();return this.opts.disabled.current||!!e?.disabled};#i=e=>{if(!this.#n)return;const r=this.opts.id.current,n=this.opts.payload.current,s=this.opts.disabled.current;if(this.#s&&this.#s!==r){const d=this.#a();this.tether?this.tether.registry.unregister(this.#s):d?.unregisterTrigger(this.#s)}const i={id:r,node:e,payload:n,disabled:s},l=this.#a();this.tether?(this.tether.registry.has(r)?this.tether.registry.update(i):this.tether.registry.register(i),s&&this.tether.registry.activeTriggerId===r&&l?.opts.open.current&&l.handleClose()):l?.registry.has(r)?l.updateTrigger(i):l?.registerTrigger(i),this.#s=r};#l=()=>{this.#r!==null&&(clearTimeout(this.#r),this.#r=null)};handlePointerUp=()=>{this.#e.current=!1};#d=()=>{this.#o()||(this.#e.current=!1)};#g=()=>{if(this.#o())return;const e=this.#a();e&&!e.disableCloseOnTriggerClick&&(e.opts.open.current?e.handleClose():e.cancelPendingOpen()),this.#e.current=!0,this.domContext.getDocument().addEventListener("pointerup",()=>{this.handlePointerUp()},{once:!0})};#m=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}if(e.pointerType!=="touch"){if(r.provider.isPointerInTransit.current){this.#l(),this.#r=window.setTimeout(()=>{r.provider.isPointerInTransit.current&&(r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0))},250);return}r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)}}};#b=e=>{const r=this.#a();if(r){if(this.#o()){r.opts.open.current&&r.handleClose();return}e.pointerType!=="touch"&&(t(this.#t)||(this.#l(),r.provider.isPointerInTransit.current=!1,r.onTriggerEnter(this.opts.id.current),P(this.#t,!0)))}};#c=e=>{const r=this.#a();if(!r||this.#o())return;if(this.#l(),!r.isActiveTrigger(this.opts.id.current)){P(this.#t,!1);return}const n=e.relatedTarget;if(_t(n)){for(const s of r.registry.triggers.values())if(s.node===n){if(r.provider.opts.skipDelayDuration.current>0){P(this.#t,!1);return}r.handleClose(),P(this.#t,!1);return}}r.onTriggerLeave(),P(this.#t,!1)};#u=e=>{const r=this.#a();if(r&&!this.#e.current){if(this.#o()){r.opts.open.current&&r.handleClose();return}r.ignoreNonKeyboardFocus&&!Js(e.currentTarget)||(r.setActiveTrigger(this.opts.id.current),r.handleOpen())}};#f=()=>{const e=this.#a();!e||this.#o()||e.handleClose()};#h=()=>{const e=this.#a();!e||e.disableCloseOnTriggerClick||this.#o()||e.handleClose()};#p=u(()=>{const e=this.#a(),r=!!(e?.opts.open.current&&e.isActiveTrigger(this.opts.id.current)),n=this.#o();return{id:this.opts.id.current,"aria-describedby":r?e?.contentNode?.id:void 0,"data-state":r?e?.stateAttr:"closed","data-disabled":or(n),"data-delay-duration":`${e?.delayDuration??0}`,[Gn.trigger]:"",tabindex:n?void 0:this.opts.tabindex.current,disabled:this.opts.disabled.current,onpointerup:this.#d,onpointerdown:this.#g,onpointerenter:this.#m,onpointermove:this.#b,onpointerleave:this.#c,onfocus:this.#u,onblur:this.#f,onclick:this.#h,...this.attachment}});get props(){return t(this.#p)}set props(e){P(this.#p,e)}}class Hr{static create(e){return new Hr(e,Lr.get())}opts;root;attachment;constructor(e,r){this.opts=e,this.root=r,this.attachment=Ct(this.opts.ref,n=>this.root.contentNode=n),new Cs({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&!this.root.disableHoverableContent,transitIntentTimeout:180,ignoredTargets:()=>{if(this.root.provider.opts.skipDelayDuration.current===0)return[];const n=[],s=this.root.triggerNode;for(const i of this.root.registry.triggers.values())i.node&&i.node!==s&&n.push(i.node);return n},onPointerExit:()=>{this.root.provider.isTooltipOpen(this.root)&&this.root.handleClose()}})}onInteractOutside=e=>{if(_t(e.target)&&this.root.triggerNode?.contains(e.target)&&this.root.disableCloseOnTriggerClick){e.preventDefault();return}this.opts.onInteractOutside.current(e),!e.defaultPrevented&&this.root.handleClose()};onEscapeKeydown=e=>{this.opts.onEscapeKeydown.current?.(e),!e.defaultPrevented&&this.root.handleClose()};onOpenAutoFocus=e=>{e.preventDefault()};onCloseAutoFocus=e=>{e.preventDefault()};get shouldRender(){return this.root.contentPresence.shouldRender}#e=u(()=>({open:this.root.opts.open.current}));get snippetProps(){return t(this.#e)}set snippetProps(e){P(this.#e,e)}#t=u(()=>({id:this.opts.id.current,"data-state":this.root.stateAttr,"data-disabled":or(this.root.disabled),...En(this.root.contentPresence.transitionStatus),style:{outline:"none"},[Gn.content]:"",...this.attachment}));get props(){return t(this.#t)}set props(e){P(this.#t,e)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus}}function qa(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=k(e,"triggerId",15,null),s=k(e,"onOpenChange",3,tt),i=k(e,"onOpenChangeComplete",3,tt);const l=Kr.create({open:V(()=>r(),d=>{r(d),s()(d)}),triggerId:V(()=>n(),d=>{n(d)}),delayDuration:V(()=>e.delayDuration),disableCloseOnTriggerClick:V(()=>e.disableCloseOnTriggerClick),disableHoverableContent:V(()=>e.disableHoverableContent),ignoreNonKeyboardFocus:V(()=>e.ignoreNonKeyboardFocus),disabled:V(()=>e.disabled),onOpenChangeComplete:V(()=>i()),tether:V(()=>e.tether)});xn(o,{tooltip:!0,children:(d,c)=>{var g=Z(),_=y(g);Me(_,()=>e.children??Re,()=>({open:l.opts.open.current,triggerId:l.activeTriggerId,payload:l.activePayload})),a(d,g)},$$slots:{default:!0}}),_e()}var Ua=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","side","sideOffset","align","avoidCollisions","arrowPadding","sticky","strategy","hideWhenDetached","customAnchor","collisionPadding","onInteractOutside","onEscapeKeydown","forceMount","style"]),sn=x("<div><div><!></div></div>");function Ga(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"ref",15,null),i=k(e,"side",3,"top"),l=k(e,"sideOffset",3,0),d=k(e,"align",3,"center"),c=k(e,"avoidCollisions",3,!0),g=k(e,"arrowPadding",3,0),_=k(e,"sticky",3,"partial"),f=k(e,"hideWhenDetached",3,!1),p=k(e,"collisionPadding",3,0),b=k(e,"onInteractOutside",3,tt),w=k(e,"onEscapeKeydown",3,tt),v=k(e,"forceMount",3,!1),M=me(e,Ua);const O=Hr.create({id:V(()=>n()),ref:V(()=>s(),$=>s($)),onInteractOutside:V(()=>b()),onEscapeKeydown:V(()=>w())}),ne=u(()=>({side:i(),sideOffset:l(),align:d(),avoidCollisions:c(),arrowPadding:g(),sticky:_(),hideWhenDetached:f(),collisionPadding:p(),strategy:e.strategy,customAnchor:e.customAnchor??O.root.triggerNode})),le=u(()=>Ye(M,t(ne),O.props));var L=Z(),q=y(L);{var m=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");_n($,ge(()=>t(le),()=>O.popperProps,{get enabled(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!0,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}},A=$=>{{const X=(B,ae)=>{let T=()=>(ae?.()).props,R=()=>(ae?.()).wrapperProps;const I=u(()=>Ye(R(),{style:{pointerEvents:O.root.disableHoverableContent?"none":void 0}})),F=u(()=>Ye(T(),{style:Zt("tooltip")},{style:e.style}));var Q=Z(),se=y(Q);{var de=J=>{var Y=Z(),ee=y(Y);{let be=u(()=>({props:t(F),wrapperProps:t(I),...O.snippetProps}));Me(ee,()=>e.child,()=>t(be))}a(J,Y)},ye=J=>{var Y=sn();Ge(Y,()=>({...t(I)}));var ee=S(Y);Ge(ee,()=>({...t(F)}));var be=S(ee);Me(be,()=>e.children??Re),C(ee),C(Y),a(J,Y)};D(se,J=>{e.child?J(de):J(ye,-1)})}a(B,Q)};let G=u(()=>O.root.disableHoverableContent?"none":"auto");yn($,ge(()=>t(le),()=>O.popperProps,{get open(){return O.root.opts.open.current},get id(){return n()},trapFocus:!1,loop:!1,preventScroll:!1,forceMount:!1,get ref(){return O.opts.ref},tooltip:!0,get shouldRender(){return O.shouldRender},get contentPointerEvents(){return t(G)},popper:X,$$slots:{popper:!0}}))}};D(q,$=>{v()?$(m):v()||$(A,1)})}a(o,L),_e()}var Ra=new Set(["$$slots","$$events","$$legacy","children","child","id","disabled","payload","tether","type","tabindex","ref"]),Ya=x("<button><!></button>");function Va(o,e){const r=pt();xe(e,!0);let n=k(e,"id",19,()=>mt(r)),s=k(e,"disabled",3,!1),i=k(e,"type",3,"button"),l=k(e,"tabindex",3,0),d=k(e,"ref",15,null),c=me(e,Ra);const g=tr.create({id:V(()=>n()),disabled:V(()=>s()??!1),tabindex:V(()=>l()??0),payload:V(()=>e.payload),tether:V(()=>e.tether),ref:V(()=>d(),v=>d(v))}),_=u(()=>Ye(c,g.props,{type:i()}));var f=Z(),p=y(f);{var b=v=>{var M=Z(),O=y(M);Me(O,()=>e.child,()=>({props:t(_)})),a(v,M)},w=v=>{var M=Ya();Ge(M,()=>({...t(_)}));var O=S(M);Me(O,()=>e.children??Re),C(M),a(v,M)};D(p,v=>{e.child?v(b):v(w,-1)})}a(o,f),_e()}var Xa=new Set(["$$slots","$$events","$$legacy","ref"]);function Ja(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Xa);oa(o,ge(()=>n,{get ref(){return r()},set ref(s){r(s)}})),_e()}function Za(o,e){xe(e,!0);let r=k(e,"delayDuration",3,700),n=k(e,"disableCloseOnTriggerClick",3,!1),s=k(e,"disableHoverableContent",3,!1),i=k(e,"disabled",3,!1),l=k(e,"ignoreNonKeyboardFocus",3,!1),d=k(e,"skipDelayDuration",3,300);Br.create({delayDuration:V(()=>r()),disableCloseOnTriggerClick:V(()=>n()),disableHoverableContent:V(()=>s()),disabled:V(()=>i()),ignoreNonKeyboardFocus:V(()=>l()),skipDelayDuration:V(()=>d())});var c=Z(),g=y(c);Me(g,()=>e.children??Re),a(o,c),_e()}const Qa=6;function ei(o,e){return e.needsYou-o.needsYou||e.underWay-o.underWay||(e.lastActivity??0)-(o.lastActivity??0)||e.queued-o.queued}function ti(o,e,r){const n=new Map(o.map(s=>[s.id,[]]));for(const s of e)n.get(s.projectId)?.push(s);return new Map(o.map(s=>[s.id,ys(n.get(s.id)??[],r)]))}const rr=(o,e)=>o.name.localeCompare(e.name,void 0,{sensitivity:"base"});function ri(o,e,r){const n=r.limit??Qa,s=new Set(r.pinned),i=o.filter(p=>s.has(p.id)),l={underWay:0,needsYou:0,landed:0,queued:0,lastActivity:null},d=p=>e.get(p.id)??l,c=o.filter(p=>!s.has(p.id)).toSorted((p,b)=>ei(d(p),d(b))||rr(p,b)),g=c.slice(0,Math.max(0,n-i.length)),_=r.current?c.find(p=>p.id===r.current):void 0;_&&!g.includes(_)&&g.push(_);const f=new Set(g.map(p=>p.id));return{pinned:i,top:g,rest:c.filter(p=>!f.has(p.id)).toSorted(rr)}}function ni(o,e,r=[],n={}){const s=e.trim().toLowerCase();if(!s)return o.toSorted(rr);const i=new Set(r),l=d=>{const c=[d.name,n[d.id]].filter(Boolean).map(g=>g.toLowerCase());return c.some(g=>g.startsWith(s))?0:c.some(g=>g.split(/[\s\-_.:/]+/).some(_=>_.startsWith(s)))?1:c.some(g=>g.includes(s))||d.id.toLowerCase().includes(s)?2:-1};return o.map(d=>({p:d,r:l(d)})).filter(d=>d.r>=0).toSorted((d,c)=>d.r-c.r||Number(i.has(c.p.id))-Number(i.has(d.p.id))||rr(d.p,c.p)).map(d=>d.p)}function si(o){try{const e=o?JSON.parse(o):[];return Array.isArray(e)?[...new Set(e.filter(r=>typeof r=="string"))]:[]}catch{return[]}}const pr="wheelhouse-pinned-projects";class oi{#e=ue(gt([]));get ids(){return t(this.#e)}set ids(e){P(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0,this.read();try{window.addEventListener("storage",e=>{e.key===pr&&this.read()})}catch{}}}has(e){return this.ids.includes(e)}toggle(e){this.ids=this.has(e)?this.ids.filter(r=>r!==e):[...this.ids,e];try{localStorage.setItem(pr,JSON.stringify(this.ids))}catch{}}read(){try{this.ids=si(localStorage.getItem(pr))}catch{this.ids=[]}}}const Nt=new oi;var ai=x('<p class="px-2 py-3 text-sm text-muted-foreground"> </p>'),ii=x('<p class="px-2 pt-2 pb-1 text-xs font-medium tracking-wide text-muted-foreground uppercase"> </p>'),li=x('<div class="-mx-1 my-1 h-px bg-border" role="separator"></div>'),di=x('<p class="truncate px-2 pt-1.5 pb-0.5 text-xs text-muted-foreground"> </p>'),ci=x('<span aria-hidden="true"> </span> <input class="-my-1 min-w-0 flex-1 rounded border border-ring bg-card px-1.5 py-0.5 text-sm text-foreground outline-none"/>',1),ui=x('<span class="project-name"><span class="project-prefix"> </span><span class="truncate"> </span></span>'),hi=x('<span class="min-w-0 flex-1 truncate"> </span>'),pi=x('<span aria-hidden="true"> </span> <!>',1),fi=x('<span class="flex w-[1.45rem] shrink-0 justify-center" aria-hidden="true"><span class="thread-dot"></span></span>'),vi=x('<!> <span class="min-w-0 flex-1 truncate"> </span>',1),gi=x('<span class="tabular text-xs whitespace-nowrap text-sea"> </span>'),mi=x('<span class="tabular text-xs whitespace-nowrap text-muted-foreground"> </span>'),bi=x('<button type="button" tabindex="-1" class="-my-1 rounded p-1 text-muted-foreground opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center pointer-coarse:opacity-100"><!></button> <button type="button" tabindex="-1"><!></button>',1),xi=x('<div role="option" tabindex="-1"><!> <!> <!> <!> <!></div>'),on=x("<!> <!>",1),_i=x('<div class="flex flex-col"><label class="flex items-center gap-2 border-b border-hair px-3 max-md:px-5"><!> <input type="search" role="combobox" aria-expanded="true" aria-autocomplete="list" aria-label="Find a project" placeholder="Find a project…" autocomplete="off" spellcheck="false" class="h-10 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-12 max-md:text-base [&::-webkit-search-cancel-button]:hidden"/></label> <div role="listbox" aria-label="Projects" class="max-h-[min(24rem,60dvh)] overflow-y-auto p-1 max-md:max-h-none max-md:px-2 max-md:pb-3"><!> <!></div></div>');function yi(o,e){const r=pt();xe(e,!0);let n=k(e,"topics",19,()=>[]);const s={id:"all",name:"All projects"};let i=ue(""),l=ue(0),d=ue(null),c=ue(null);wt(()=>{Nt.load(),$t.load(),P(l,Math.max(0,t(f).findIndex(T=>T.id===e.current)),!0)});const g=u(()=>yr(e.projects,$t.names)),_=u(()=>{const T=t(i).trim()?null:ri(e.projects,e.stats,{pinned:Nt.ids,current:e.current});return(T?[{label:null,options:[s]},{label:"Chat topics",options:n()},{label:"Pinned",options:T.pinned},{label:"Most active",options:T.top},{label:T.pinned.length||T.top.length?"Other projects":"Projects",options:T.rest}]:[{label:null,options:ni(e.projects,t(i),Nt.ids,$t.names)},{label:"Chat topics",options:n().filter(I=>I.name.toLowerCase().includes(t(i).trim().toLowerCase()))}]).map(I=>({...I,options:Yr(I.options,t(g)).flatMap(F=>F.items)})).filter(I=>I.options.length)}),f=u(()=>t(_).flatMap(T=>T.options));function p(T){P(i,T,!0),P(l,0)}at(()=>{t(c)?.querySelector(`#${CSS.escape(`${r}-${t(l)}`)}`)?.scrollIntoView?.({block:"nearest"})});function b(T){const R=t(f).length;if(T.key==="ArrowDown"||T.key==="ArrowUp")T.preventDefault(),R&&P(l,(t(l)+(T.key==="ArrowDown"?1:R-1))%R);else if(T.key==="Enter"){T.preventDefault();const I=t(f)[t(l)];I&&e.onpick(I.id)}}function w(){t(d)?.focus()}let v=ue(null),M=ue("");function O(T){P(M,$t.names[T]??t(g).get(T)?.label??T,!0),P(v,T,!0)}function ne(){if(!t(v))return;const T=yr(e.projects).get(t(v))?.label;$t.set(t(v),t(M).trim()===T?"":t(M)),P(v,null),t(d)?.focus()}const le=T=>{T.focus(),T.select()};var L={focus:w},q=_i(),m=S(q),A=S(m);As(A,{class:"size-4 shrink-0 text-muted-foreground","aria-hidden":"true"});var $=h(A,2);Ur($),Jt($,T=>P(d,T),()=>t(d)),C(m);var X=h(m,2),G=S(X);{var B=T=>{var R=ai(),I=re(R);j(F=>z(I,`No project matches “${F??""}”.`),[()=>t(i).trim()]),a(T,R)};D(G,T=>{t(f).length||T(B)})}var ae=h(G,2);return Je(ae,19,()=>t(_),(T,R)=>T.label??`g${R}`,(T,R,I)=>{var F=on(),Q=y(F);{var se=J=>{var Y=ii(),ee=re(Y,!0);j(()=>z(ee,t(R).label)),a(J,Y)},de=J=>{var Y=li();a(J,Y)};D(Q,J=>{t(R).label?J(se):t(I)>0&&J(de,1)})}var ye=h(Q,2);Je(ye,17,()=>Yr(t(R).options,t(g)),J=>J.group?`g:${J.group}`:`p:${J.items[0].id}`,(J,Y)=>{var ee=on(),be=y(ee);{var $e=Oe=>{var ie=di(),Ie=re(ie,!0);j(()=>{ce(ie,"title",t(Y).group),z(Ie,t(Y).group)}),a(Oe,ie)};D(be,Oe=>{t(Y).group&&Oe($e)})}var De=h(be,2);Je(De,17,()=>t(Y).items,Oe=>Oe.id,(Oe,ie)=>{const Ie=u(()=>t(f).indexOf(t(ie))),Ze=u(()=>e.needCount(t(ie).id)),E=u(()=>Nt.has(t(ie).id)),H=u(()=>t(g).get(t(ie).id)),we=u(()=>"hue"in t(ie)),Pe=u(()=>e.counts?.get(t(ie).id));var he=xi(),qe=S(he);{var rt=K=>{var te=ci(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);Ur(ke),gn(()=>Is(ke,()=>t(M),fe=>P(M,fe))),Ps(ke,fe=>le?.(fe)),j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H)?.hue),z(ze,t(H)?.monogram),ce(ke,"aria-label",`Friendly name for ${t(H)?.full??t(ie).name??""}`),ce(ke,"placeholder",t(H)?.full??t(ie).name)}),Xt("blur",ke,ne),st("click",ke,fe=>fe.stopPropagation()),st("keydown",ke,fe=>{fe.stopPropagation(),fe.key==="Enter"?(fe.preventDefault(),ne()):fe.key==="Escape"&&(fe.preventDefault(),P(v,null),t(d)?.focus())}),a(K,te)},Fe=K=>{var te=pi(),pe=y(te),ze=re(pe,!0),ke=h(pe,2);{var fe=Be=>{var Ue=ui(),Ve=S(Ue),Et=re(Ve),Kt=h(Ve),lr=re(Kt,!0);C(Ue),j(()=>{ce(Ue,"title",t(H).full),z(Et,`${t(H).group??""} ›`),z(lr,t(H).label)}),a(Be,Ue)},Ne=Be=>{var Ue=hi(),Ve=re(Ue,!0);j(()=>{ce(Ue,"title",t(H).full),z(Ve,t(H).label)}),a(Be,Ue)};D(ke,Be=>{t(H).group&&!t(Y).group&&t(H).label!==t(H).full?Be(fe):Be(Ne,-1)})}j(()=>{je(pe,1,`project-tile ${t(Y).group?"ml-3":""}`),ce(pe,"data-hue",t(H).hue),z(ze,t(H).monogram)}),a(K,te)},Qe=K=>{var te=vi(),pe=y(te);{var ze=Ne=>{var Be=fi(),Ue=re(Be);j(()=>ce(Ue,"data-hue",t(ie).hue??void 0)),a(Ne,Be)};D(pe,Ne=>{t(we)&&Ne(ze)})}var ke=h(pe,2),fe=re(ke,!0);j(()=>z(fe,t(ie).name)),a(K,te)};D(qe,K=>{t(v)===t(ie).id?K(rt):t(H)?K(Fe,1):K(Qe,-1)})}var Xe=h(qe,2);{var Le=K=>{var te=gi(),pe=re(te);j(()=>z(pe,`${t(Ze)??""} need you`)),a(K,te)};D(Xe,K=>{t(Ze)&&K(Le)})}var Ce=h(Xe,2);{var U=K=>{var te=mi(),pe=re(te,!0);j(()=>{ce(te,"title",`${t(Pe)??""} in the chat`),z(pe,t(Pe))}),a(K,te)};D(Ce,K=>{t(Pe)&&K(U)})}var N=h(Ce,2);{var W=K=>{It(K,{class:"size-4 shrink-0","aria-label":"Selected"})};D(N,K=>{e.current===t(ie).id&&K(W)})}var ve=h(N,2);{var Ae=K=>{var te=bi(),pe=y(te),ze=S(pe);zo(ze,{class:"size-3.5"}),C(pe);var ke=h(pe,2),fe=S(ke);{let Ne=u(()=>t(E)?"currentColor":"none");jo(fe,{class:"size-3.5",get fill(){return t(Ne)}})}C(ke),j(()=>{ce(pe,"aria-label",`Rename ${t(H)?.full??t(ie).name??""}`),je(ke,1,`-my-1 rounded p-1 text-muted-foreground hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring max-md:my-0 max-md:grid max-md:size-11 max-md:place-items-center ${t(E)?"":"opacity-0 group-hover:opacity-100 group-aria-selected:opacity-100 pointer-coarse:opacity-100"}`),ce(ke,"aria-label",t(E)?`Unpin ${t(ie).name}`:`Pin ${t(ie).name}`),ce(ke,"aria-pressed",t(E))}),st("click",pe,Ne=>{Ne.stopPropagation(),O(t(ie).id)}),st("click",ke,Ne=>{Ne.stopPropagation(),Nt.toggle(t(ie).id),t(d)?.focus()}),a(K,te)};D(ve,K=>{t(ie).id!=="all"&&!t(we)&&t(v)!==t(ie).id&&K(Ae)})}C(he),j(()=>{ce(he,"id",`${r}-${t(Ie)??""}`),ce(he,"aria-selected",t(Ie)===t(l)),ce(he,"data-project",t(ie).id),je(he,1,`group flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm select-none max-md:min-h-12 max-md:rounded-md max-md:py-1 ${t(Ie)===t(l)?"bg-accent text-accent-foreground":""}`)}),st("mousemove",he,()=>P(l,t(Ie),!0)),st("click",he,()=>e.onpick(t(ie).id)),st("keydown",he,()=>{}),a(Oe,he)}),a(J,ee)}),a(T,F)}),C(X),Jt(X,T=>P(c,T),()=>t(c)),C(q),j(()=>{is($,t(i)),ce($,"aria-controls",`${r}-list`),ce($,"aria-activedescendant",t(f).length?`${r}-${t(l)}`:void 0),ce(X,"id",`${r}-list`)}),st("input",$,T=>p(T.currentTarget.value)),st("keydown",$,b),a(o,q),_e(L)}nr(["input","keydown","mousemove","click"]);var wi=new Set(["$$slots","$$events","$$legacy"]);function ki(o,e){let r=me(e,wi);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ci=new Set(["$$slots","$$events","$$legacy","ref","class","sideOffset","side","children","arrowClasses","portalProps"]),Pi=x("<div></div>"),Ti=x("<!> <!>",1);function Yn(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,0),s=k(e,"side",3,"top"),i=me(e,Ci);ki(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 inline-flex w-fit max-w-xs origin-(--bits-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>Ga,(f,p)=>{p(f,ge({"data-slot":"tooltip-content",get sideOffset(){return n()},get side(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)},children:(b,w)=>{var v=Ti(),M=y(v);Me(M,()=>e.children??Re);var O=h(M,2);{const ne=(le,L)=>{let q=()=>(L?.()).props;var m=Pi();Ge(m,A=>({class:A,...q()}),[()=>yt("z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:-translate-x-1/2 data-[side=bottom]:-translate-y-[calc(-50%_+_1px)] data-[side=left]:-translate-y-[calc(50%_-_3px)] data-[side=right]:translate-x-[calc(50%_+_2px)] data-[side=right]:translate-y-1/2 data-[side=top]:translate-x-1/2 data-[side=top]:translate-y-[calc(-50%_+_2px)]",e.arrowClasses)]),a(le,m)};oe(O,()=>Ja,(le,L)=>{L(le,{child:ne,$$slots:{child:!0}})})}a(b,v)},$$slots:{default:!0}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var Si=new Set(["$$slots","$$events","$$legacy","delayDuration"]);function Mi(o,e){let r=k(e,"delayDuration",3,0),n=me(e,Si);var s=Z(),i=y(s);oe(i,()=>Za,(l,d)=>{d(l,ge({get delayDuration(){return r()}},()=>n))}),a(o,s)}var $i=new Set(["$$slots","$$events","$$legacy","ref"]);function Rt(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,$i);var s=Z(),i=y(s);oe(i,()=>Va,(l,d)=>{d(l,ge({"data-slot":"tooltip-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Ii=new Set(["$$slots","$$events","$$legacy","open"]);function Yt(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,Ii);var s=Z(),i=y(s);oe(i,()=>qa,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}var Ai=new Set(["$$slots","$$events","$$legacy","ref","checked","indeterminate","class","children","closeOnSelect"]),Oi=x('<span class="pointer-events-none absolute right-2 flex items-center justify-center" data-slot="dropdown-menu-checkbox-item-indicator"><!></span> <!>',1);function fr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"checked",15,!1),s=k(e,"indeterminate",15,!1),i=k(e,"closeOnSelect",3,!1),l=me(e,Ai);var d=Z(),c=y(d);{const g=(f,p)=>{let b=()=>(p?.()).checked,w=()=>(p?.()).indeterminate;var v=Oi(),M=y(v),O=S(M);{var ne=q=>{oo(q,{})},le=q=>{It(q,{})};D(O,q=>{w()?q(ne):b()&&q(le,1)})}C(M);var L=h(M,2);Me(L,()=>e.children??Re),a(f,v)};let _=u(()=>yt("relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground focus:**:text-accent-foreground data-inset:pl-8 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e.class));oe(c,()=>Fa,(f,p)=>{p(f,ge({get closeOnSelect(){return i()},"data-slot":"dropdown-menu-checkbox-item",get class(){return t(_)}},()=>l,{get ref(){return r()},set ref(b){r(b)},get checked(){return n()},set checked(b){n(b)},get indeterminate(){return s()},set indeterminate(b){s(b)},children:g,$$slots:{default:!0}}))})}a(o,d),_e()}var Ei=new Set(["$$slots","$$events","$$legacy"]);function Di(o,e){let r=me(e,Ei);var n=Z(),s=y(n);oe(s,()=>ar,(i,l)=>{l(i,ge(()=>r))}),a(o,n)}var Ni=new Set(["$$slots","$$events","$$legacy","ref","sideOffset","align","portalProps","class"]);function Fi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"sideOffset",3,4),s=k(e,"align",3,"start"),i=me(e,Ni);Di(o,ge(()=>e.portalProps,{children:(l,d)=>{var c=Z(),g=y(c);{let _=u(()=>yt("z-50 max-h-(--bits-dropdown-menu-content-available-height) w-(--bits-dropdown-menu-anchor-width) min-w-32 origin-(--bits-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95",e.class));oe(g,()=>ja,(f,p)=>{p(f,ge({"data-slot":"dropdown-menu-content",get sideOffset(){return n()},get align(){return s()},get class(){return t(_)}},()=>i,{get ref(){return r()},set ref(b){r(b)}}))})}a(l,c)},$$slots:{default:!0}})),_e()}var zi=new Set(["$$slots","$$events","$$legacy","ref"]);function vr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,zi);var s=Z(),i=y(s);oe(i,()=>Ia,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-group"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var Wi=new Set(["$$slots","$$events","$$legacy","ref","class","inset","variant"]);function an(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=k(e,"variant",3,"default"),s=me(e,Wi);var i=Z(),l=y(i);{let d=u(()=>yt("group/dropdown-menu-item relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 data-[variant=destructive]:*:[svg]:text-destructive",e.class));oe(l,()=>Sa,(c,g)=>{g(c,ge({"data-slot":"dropdown-menu-item",get"data-inset"(){return e.inset},get"data-variant"(){return n()},get class(){return t(d)}},()=>s,{get ref(){return r()},set ref(_){r(_)}}))})}a(o,i),_e()}var ji=new Set(["$$slots","$$events","$$legacy","ref","class","inset","children"]),Li=x("<div><!></div>");function gr(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,ji);var s=Li();Ge(s,l=>({"data-slot":"dropdown-menu-label","data-inset":e.inset,class:l,...n}),[()=>yt("px-2 py-1.5 text-xs font-medium text-muted-foreground data-inset:pl-8",e.class)]);var i=S(s);Me(i,()=>e.children??Re),C(s),Jt(s,l=>r(l),()=>r()),a(o,s),_e()}var Bi=new Set(["$$slots","$$events","$$legacy","ref","class"]);function ln(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Bi);var s=Z(),i=y(s);{let l=u(()=>yt("-mx-1 my-1 h-px bg-border",e.class));oe(i,()=>Ea,(d,c)=>{c(d,ge({"data-slot":"dropdown-menu-separator",get class(){return t(l)}},()=>n,{get ref(){return r()},set ref(g){r(g)}}))})}a(o,s),_e()}var Ki=new Set(["$$slots","$$events","$$legacy","ref"]);function Hi(o,e){xe(e,!0);let r=k(e,"ref",15,null),n=me(e,Ki);var s=Z(),i=y(s);oe(i,()=>Ka,(l,d)=>{d(l,ge({"data-slot":"dropdown-menu-trigger"},()=>n,{get ref(){return r()},set ref(c){r(c)}}))}),a(o,s),_e()}var qi=new Set(["$$slots","$$events","$$legacy","open"]);function Ui(o,e){xe(e,!0);let r=k(e,"open",15,!1),n=me(e,qi);var s=Z(),i=y(s);oe(i,()=>za,(l,d)=>{d(l,ge(()=>n,{get open(){return r()},set open(c){r(c)}}))}),a(o,s),_e()}const Gi=587,Ri=[[.5,.35,2.8],[1,.6,2.2],[1.2,.3,1.6],[1.5,.22,1.3],[2,.4,1.1],[2.74,.12,.7],[3.76,.08,.45]],Yi=.42,Vi=.16;let St=null;function Vt(){try{const o=globalThis.AudioContext??globalThis.webkitAudioContext;if(!o)return;St??=new o,St.state==="suspended"&&St.resume();const e=St.currentTime+.02;dn(St,e),dn(St,e+Yi)}catch{}}function dn(o,e){const r=o.createGain();r.gain.value=Vi,r.connect(o.destination);for(const[n,s,i]of Ri){const l=o.createOscillator(),d=o.createGain();l.type="sine",l.frequency.value=Gi*n,d.gain.setValueAtTime(1e-4,e),d.gain.exponentialRampToValueAtTime(s,e+.004),d.gain.exponentialRampToValueAtTime(1e-4,e+i),l.connect(d).connect(r),l.start(e),l.stop(e+i+.05)}}const Ht="wheelhouse-bell",cn="wheelhouse-bell-seen",Ft="wheelhouse-bell-dismissed",Xi="wheelhouse-bell",Ji=400,Zi=12,Qi=12,el=400,Vn={sound:!1,notify:!1,kinds:{"pr-green":!0,question:!0,stuck:!0,landed:!0,issue:!0}};function qr(o){return Wn.find(e=>e.kind===o)?.label??o}function Mt(o,e){try{const r=localStorage.getItem(o);return r?JSON.parse(r):e}catch{return e}}function mr(o,e){try{localStorage.setItem(o,JSON.stringify(e))}catch{}}function un(o){const e=o&&typeof o=="object"?o:{},r={...Vn.kinds};for(const n of Object.keys(r))typeof e.kinds?.[n]=="boolean"&&(r[n]=e.kinds[n]);return{sound:e.sound===!0,notify:e.notify===!0,kinds:r}}function hn(o,e,r=Ji){return o.includes(e)?!1:(o.push(e),o.length>r&&o.splice(0,o.length-r),!0)}class tl{#e=ue(gt(Vn));get settings(){return t(this.#e)}set settings(e){P(this.#e,e,!0)}#t=ue(gt([]));get toasts(){return t(this.#t)}set toasts(e){P(this.#t,e,!0)}#r=ue(gt([]));get log(){return t(this.#r)}set log(e){P(this.#r,e,!0)}#n=ue(0);get unread(){return t(this.#n)}set unread(e){P(this.#n,e,!0)}#s=ue("default");get permission(){return t(this.#s)}set permission(e){P(this.#s,e,!0)}#a=ue(gt({}));get notes(){return t(this.#a)}set notes(e){P(this.#a,e,!0)}dismissed=[];raisedAt=new Map;rang=new Set;channel=null;started=!1;start(){if(this.started)return()=>{};this.started=!0,this.settings=un(Mt(Ht,null)),this.dismissed=Mt(Ft,[]),this.permission=typeof Notification>"u"?"unsupported":Notification.permission,He.claim=n=>{const s=Mt(cn,[]),i=hn(s,ut(n));return i&&mr(cn,s),i};const e=He.onAlert(n=>this.receive(n)),r=n=>{n.key===Ht&&(this.settings=un(Mt(Ht,null))),n.key===Ft&&(this.dismissed=Mt(Ft,[]),this.toasts=this.toasts.filter(s=>!this.dismissed.includes(ut(s.alert))))};return addEventListener("storage",r),typeof BroadcastChannel<"u"&&(this.channel=new BroadcastChannel(Xi),this.channel.onmessage=n=>{n.data?.t==="rang"&&this.rang.add(n.data.id)}),()=>{e(),removeEventListener("storage",r),this.channel?.close(),this.channel=null,He.claim=()=>!0,this.started=!1}}receive(e){if(e.type==="settled"){this.toasts=this.toasts.filter(n=>n.alert.id!==e.data);return}const r=e.type==="alert"?[{alert:e.data,fresh:e.fresh}]:e.data;for(const{alert:n,fresh:s}of r){const i=Date.parse(n.at);if(i<(this.raisedAt.get(n.id)??-1/0))continue;this.raisedAt.set(n.id,i),this.log=[n,...this.log.filter(d=>d.id!==n.id)].sort((d,c)=>Date.parse(c.at)-Date.parse(d.at)).slice(0,Zi);const l=ut(n);!this.settings.kinds[n.kind]||this.dismissed.includes(l)||this.toasts.some(d=>ut(d.alert)===l)||(s?(this.unread++,this.show({alert:n,fresh:s}),this.ring(n)):n.captain&&Vr(n,He.fleet)&&this.show({alert:n,fresh:s}))}}show(e){const r=[...this.toasts.filter(n=>n.alert.id!==e.alert.id),e];for(;r.length>Qi;){const n=r.findIndex(s=>!s.alert.captain);r.splice(n===-1?0:n,1)}this.toasts=r}dismiss(e){const r=ut(e);this.toasts=this.toasts.filter(s=>ut(s.alert)!==r);const n=Mt(Ft,[]);hn(n,r)&&mr(Ft,n),this.dismissed=n}expire(e){this.toasts=this.toasts.filter(r=>r.alert.id!==e||r.alert.captain)}prune(){const e=He.fleet;if(!e)return;const r=this.toasts.filter(n=>Vr(n.alert,e));r.length!==this.toasts.length&&(this.toasts=r)}update(e){this.settings={...this.settings,...e},mr(Ht,this.settings)}setKind(e,r){this.update({kinds:{...this.settings.kinds,[e]:r}}),r||(this.toasts=this.toasts.filter(n=>n.alert.kind!==e))}async setNotify(e){if(!e||typeof Notification>"u"){this.update({notify:!1});return}let r=Notification.permission;r==="default"&&(r=await Notification.requestPermission()),this.permission=r,this.update({notify:r==="granted"})}setSound(e){this.update({sound:e}),e&&Vt()}opened(){this.unread=0}async act(e,r=""){if(e.kind==="open"){e.external?window.open(e.href,"_blank","noopener,noreferrer"):await jt(e.href);return}const n=this.notes[e.requestId];if(n?.state==="sending"||n?.state==="sent")return;this.notes[e.requestId]={state:"sending"};const s=await ps(e.text,r,null,e.requestId);this.notes[e.requestId]=s.ok?{state:"sent"}:{state:"failed",error:s.error}}ring(e){if(document.visibilityState==="visible"&&document.hasFocus()){this.settings.sound&&Vt(),this.channel?.postMessage({t:"rang",id:ut(e)});return}He.leader&&setTimeout(()=>{this.rang.has(ut(e))||(this.settings.sound&&Vt(),this.notify(e))},el)}notify(e){if(!(!this.settings.notify||typeof Notification>"u")&&Notification.permission==="granted")try{const r=new Notification(`${qr(e.kind)}: ${e.title}`,{body:e.text,tag:e.id}),n=e.actions.find(s=>s.kind==="open"&&!s.external);r.onclick=()=>{window.focus(),jt(n?.kind==="open"?n.href:e.taskId?ao(e.taskId):"/"),r.close()}}catch{}}}const Se=new tl;var rl=x('<span class="tabular absolute -top-0.5 -right-0.5 min-w-4 rounded-full bg-brass px-1 text-[0.6875rem] leading-4 font-semibold text-on-accent" aria-hidden="true"> </span>'),qt=x("<!> <!>",1),nl=x('<span class="flex w-full items-baseline justify-between gap-3 text-xs"><span> </span> <span class="text-muted-foreground"> </span></span> <span class="line-clamp-1 font-medium"> </span> <span class="line-clamp-2 text-xs text-muted-foreground"> </span>',1),sl=x('<p class="px-2 pb-2 text-sm text-muted-foreground">Nothing has rung yet.</p>'),ol=x('<span class="flex flex-col"><span> </span> <span class="text-xs text-muted-foreground"> </span></span>'),al=x('<span class="flex flex-col"><span>Bell sound</span> <span class="text-xs text-muted-foreground">Two strokes of a ship’s bell. Off unless you turn it on.</span></span>'),il=x('<span class="flex flex-col"><span>Browser notifications</span> <span class="text-xs text-muted-foreground"> </span></span>'),ll=x("<!>Ring the bell to hear it",1),dl=x("<!> <!> <!> <!>",1),cl=x('<div class="border-b border-b-brass/60 px-3 py-2.5"><p class="font-display text-base font-semibold">Ship’s bell</p> <p class="text-xs text-muted-foreground">Rings for the moments that need you.</p></div> <!> <!> <!> <!> <!>',1);function ul(o,e){xe(e,!0);const r=u(()=>Object.values(Se.settings.kinds).every(l=>!l)),n=u(()=>Se.permission==="unsupported"?"This browser cannot show notifications.":Se.permission==="denied"?"Blocked in this browser’s site settings.":"When no Wheelhouse tab is in front.");var s=Z(),i=y(s);oe(i,()=>Ui,(l,d)=>{d(l,{onOpenChange:c=>c&&Se.opened(),children:(c,g)=>{var _=qt(),f=y(_);{const b=(w,v)=>{let M=()=>(v?.()).props;{let O=u(()=>Se.unread?`Ship’s bell: ${Se.unread} new ${Se.unread===1?"alert":"alerts"}`:"Ship’s bell");ot(w,ge(M,{variant:"ghost",size:"icon-sm",class:"relative",get"aria-label"(){return t(O)},children:(ne,le)=>{var L=qt(),q=y(L);{var m=B=>{_o(B,{})},A=B=>{Qr(B,{})},$=B=>{Ts(B,{})};D(q,B=>{t(r)?B(m):Se.unread?B(A,1):B($,-1)})}var X=h(q,2);{var G=B=>{var ae=rl(),T=re(ae,!0);j(()=>z(T,Se.unread)),a(B,ae)};D(X,B=>{Se.unread&&B(G)})}a(ne,L)},$$slots:{default:!0}}))}};oe(f,()=>Hi,(w,v)=>{v(w,{child:b,$$slots:{child:!0}})})}var p=h(f,2);oe(p,()=>Fi,(b,w)=>{w(b,{align:"end",class:"w-80 max-w-[calc(100vw-2rem)] p-0",children:(v,M)=>{var O=cl(),ne=h(y(O),2);oe(ne,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Recent");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Se.log,R=>R.id,(R,I)=>{const F=u(()=>t(I).actions.find(de=>de.kind==="open"));var Q=Z(),se=y(Q);oe(se,()=>an,(de,ye)=>{ye(de,{class:"flex-col items-start gap-0.5",onSelect:()=>t(F)&&Se.act(t(F)),children:(J,Y)=>{var ee=nl(),be=y(ee),$e=S(be),De=re($e,!0),Oe=h($e,2),ie=re(Oe,!0);C(be);var Ie=h(be,2),Ze=re(Ie,!0),E=h(Ie,2),H=re(E,!0);j((we,Pe)=>{je($e,1,`font-medium ${jn[Ln[t(I).kind]]??""}`),z(De,we),z(ie,Pe),z(Ze,t(I).title),z(H,t(I).text)},[()=>qr(t(I).kind),()=>er(t(I).at,He.now)]),a(J,ee)},$$slots:{default:!0}})}),a(R,Q)},R=>{var I=sl();a(R,I)}),a(X,B)},$$slots:{default:!0}})});var le=h(ne,2);oe(le,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var L=h(le,2);oe(L,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=qt(),ae=y(B);oe(ae,()=>gr,(R,I)=>{I(R,{children:(F,Q)=>{Ke();var se=ct("Ring for");a(F,se)},$$slots:{default:!0}})});var T=h(ae,2);Je(T,17,()=>Wn,R=>R.kind,(R,I)=>{var F=Z(),Q=y(F);oe(Q,()=>fr,(se,de)=>{de(se,{get checked(){return Se.settings.kinds[t(I).kind]},onCheckedChange:ye=>Se.setKind(t(I).kind,ye),children:(ye,J)=>{var Y=ol(),ee=S(Y),be=re(ee,!0),$e=h(ee,2),De=re($e,!0);C(Y),j(()=>{z(be,t(I).label),z(De,t(I).hint)}),a(ye,Y)},$$slots:{default:!0}})}),a(R,F)}),a(X,B)},$$slots:{default:!0}})});var q=h(L,2);oe(q,()=>ln,(A,$)=>{$(A,{class:"my-0"})});var m=h(q,2);oe(m,()=>vr,(A,$)=>{$(A,{class:"p-1",children:(X,G)=>{var B=dl(),ae=y(B);oe(ae,()=>gr,(F,Q)=>{Q(F,{children:(se,de)=>{Ke();var ye=ct("How");a(se,ye)},$$slots:{default:!0}})});var T=h(ae,2);oe(T,()=>fr,(F,Q)=>{Q(F,{get checked(){return Se.settings.sound},onCheckedChange:se=>Se.setSound(se),children:(se,de)=>{var ye=al();a(se,ye)},$$slots:{default:!0}})});var R=h(T,2);{let F=u(()=>Se.permission==="unsupported"||Se.permission==="denied");oe(R,()=>fr,(Q,se)=>{se(Q,{get checked(){return Se.settings.notify},get disabled(){return t(F)},onCheckedChange:de=>{Se.setNotify(de)},children:(de,ye)=>{var J=il(),Y=h(S(J),2),ee=re(Y,!0);C(J),j(()=>z(ee,t(n))),a(de,J)},$$slots:{default:!0}})})}var I=h(R,2);oe(I,()=>an,(F,Q)=>{Q(F,{closeOnSelect:!1,onSelect:()=>Vt(),children:(se,de)=>{var ye=ll(),J=y(ye);Qr(J,{class:"text-brass"}),Ke(),a(se,ye)},$$slots:{default:!0}})}),a(X,B)},$$slots:{default:!0}})}),a(v,O)},$$slots:{default:!0}})}),a(c,_)},$$slots:{default:!0}})}),a(o,s),_e()}const At=[{step:"fetch",label:"Fetch from GitHub"},{step:"fast-forward",label:"Fast-forward the clone"},{step:"install",label:"Install packages (npm ci)"},{step:"build",label:"Build"},{step:"restart",label:"Restart Wheelhouse"}],hl=[{step:"npm-install",label:"Install from npm"},{step:"restart",label:"Restart Wheelhouse"}],Xn={step:"link",label:"Link the clone (npm link)"};[...At.slice(0,-1),At[4]];At[2],At[3],At[4];var pl=x('<!> <span class="hidden md:inline"> </span>',1),fl=x('<span class="absolute top-1 right-1 size-1.5 rounded-full bg-warning" aria-hidden="true"></span>'),br=x("<!> <!>",1),vl=x('· from <a class="hover:underline" target="_blank" rel="noreferrer"> </a> ',1),gl=x('<span class="size-4 text-center" aria-hidden="true">·</span>'),ml=x("<li><!> </li>"),bl=x('<p class="mt-3 text-xs text-muted-foreground">Waiting for Wheelhouse to come back…</p>'),xl=x('<ol class="space-y-1.5" aria-label="Upgrade progress"></ol> <!>',1),_l=x('<p class="mt-1 text-xs text-muted-foreground"> </p>'),yl=x('<p class="flex items-center gap-2"><!>Upgraded and restarted.</p> <!>',1),wl=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-[0.7rem] whitespace-pre-wrap"> </pre>'),pn=x('<pre class="mt-2 max-h-32 overflow-auto rounded-md bg-muted/60 px-2.5 py-1.5 font-mono text-xs"> </pre>'),fn=x('<p class="flex items-start gap-2"><!> <span> </span></p> <!> <!>',1),kl=x('<p class="flex items-center gap-2 text-muted-foreground"><!> </p>'),Cl=x('<p class="flex items-center gap-2"><!>Up to date.</p> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Pl=x('<span class="font-normal text-muted-foreground"> </span>'),Tl=x('<li class="text-xs"><span class="line-clamp-2"> </span> <span class="tabular text-muted-foreground"> </span></li>'),Sl=x('<li class="text-xs text-muted-foreground"> </li>'),Ml=x('<a target="_blank" rel="noreferrer" class="mt-2 inline-flex items-center gap-1 text-xs text-sea hover:underline">Compare on GitHub<!></a>'),$l=x(`Upgrading runs <code>npm install -g @chrisjowen/wheelhouse</code> and restarts
|
|
2
|
-
Wheelhouse.`,1),Il=x("<li> </li>"),Al=x('<div class="mt-3 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><p class="font-medium text-warning">Restarting stops:</p> <ul class="mt-0.5"></ul></div>'),Ol=x("<code>npm install -g @chrisjowen/wheelhouse</code>"),El=x("<code>wheelhouse upgrade</code>"),Dl=x(`<p class="mt-3 text-xs text-muted-foreground">This Wheelhouse was not started by <code>wheelhouse open</code>, so it cannot restart
|
|
3
|
-
itself; run <!> in a terminal instead.</p>`),Nl=x('<p class="font-medium"> <!></p> <ul class="mt-2 max-h-56 space-y-1.5 overflow-auto border-l border-hair pl-3"><!> <!></ul> <!> <p class="mt-3 text-xs leading-relaxed text-muted-foreground"><!> This page reconnects by itself. Firstmate and its crew keep running.</p> <!> <!>',1),Fl=x('<p class="mt-2 text-xs text-muted-foreground">Nothing was changed.</p>'),zl=x('<p class="mt-3 text-xs text-danger" role="alert"> </p>'),Wl=x('<span class="text-xs text-muted-foreground">You can close this; it carries on.</span>'),jl=x("<!>Check now",1),Ll=x('<span class="text-xs text-muted-foreground"> </span> <!>',1),Bl=x('<div class="border-b border-b-brass/60 px-4 py-3"><p class="font-display text-base font-semibold">Wheelhouse</p> <p class="tabular text-xs break-words text-muted-foreground"> <!></p></div> <div class="px-4 py-3" aria-live="polite"><!> <!></div> <div class="flex items-center justify-between gap-2 border-t px-4 py-2.5"><!></div>',1);function Kl(o,e){xe(e,!0);let r=ue(!1);const n=u(()=>nt.view),s=u(()=>t(n)?.check??null),i=u(()=>t(n)?.job??null),l=u(()=>nt.upgrading||t(i)?.state==="running"||t(i)?.state==="restarting"),d=u(()=>t(s)?.state==="available"&&!t(i)),c=u(()=>t(i)?.state==="failed"||t(s)?.state==="refused"||t(s)?.state==="error"),g=u(()=>t(n)?.source==="published"),_=u(()=>t(i)?.steps??(t(g)?hl:At)),f=u(()=>nt.upgrading&&!t(i)?t(_).length-1:t(_).findIndex(L=>L.step===t(i)?.step)),p=L=>L?L.slice(0,7):"",b=L=>L?[L.version,p(L.commit)].filter(Boolean).join(" · "):"",w=()=>We.data.sessionToken,v=u(()=>t(g)?"npm":"GitHub"),M=u(()=>t(s)?t(g)?"A new version is published on npm":`${t(s).behind} ${Zs(t(s).behind,"new commit","new commits")} on ${t(s).branch}`:""),O=u(()=>t(s)?.latest?.version&&t(s).latest.version!==t(s).current.version?t(s).latest.version:null);wt(()=>nt.start());var ne=Z(),le=y(ne);oe(le,()=>wn,(L,q)=>{q(L,{get open(){return t(r)},set open(m){P(r,m,!0)},children:(m,A)=>{var $=br(),X=y($);{const B=(ae,T)=>{let R=()=>(T?.()).props;var I=Z(),F=y(I);{var Q=de=>{{let ye=u(()=>t(l)?"Upgrading Wheelhouse":"Wheelhouse update available");ot(de,ge(R,{variant:"outline",size:"sm",class:"gap-1.5 border-sea/50 text-sea hover:text-sea",get"aria-label"(){return t(ye)},children:(J,Y)=>{var ee=pl(),be=y(ee);{var $e=Ie=>{hr(Ie,{class:"animate-spin"})},De=Ie=>{Jr(Ie,{})};D(be,Ie=>{t(l)?Ie($e):Ie(De,-1)})}var Oe=h(be,2),ie=re(Oe,!0);j(()=>z(ie,t(l)?"Upgrading…":"Update")),a(J,ee)},$$slots:{default:!0}}))}},se=de=>{{let ye=u(()=>t(c)?"Wheelhouse updates: needs a look":"Wheelhouse version and updates");ot(de,ge(R,{variant:"ghost",size:"icon-sm",class:"relative text-muted-foreground",get"aria-label"(){return t(ye)},children:(J,Y)=>{var ee=br(),be=y(ee);Jr(be,{});var $e=h(be,2);{var De=Oe=>{var ie=fl();a(Oe,ie)};D($e,Oe=>{t(c)&&Oe(De)})}a(J,ee)},$$slots:{default:!0}}))}};D(F,de=>{t(d)||t(l)?de(Q):de(se,-1)})}a(ae,I)};oe(X,()=>kn,(ae,T)=>{T(ae,{child:B,$$slots:{child:!0}})})}var G=h(X,2);oe(G,()=>ar,(B,ae)=>{ae(B,{children:(T,R)=>{var I=Z(),F=y(I);oe(F,()=>Cn,(Q,se)=>{se(Q,{align:"end",sideOffset:4,class:"z-50 w-96 max-w-[calc(100vw-2rem)] overflow-hidden rounded-md bg-popover text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10",children:(de,ye)=>{var J=Bl(),Y=y(J),ee=h(S(Y),2),be=S(ee,!0),$e=h(be);{var De=U=>{var N=vl(),W=h(y(N)),ve=re(W,!0),Ae=h(W);j(()=>{ce(W,"href",`https://github.com/${t(s).repository??""}`),z(ve,t(s).repository),z(Ae,` ${t(s).branch??""}`)}),a(U,N)};D($e,U=>{t(s)?.repository&&U(De)})}C(ee),C(Y);var Oe=h(Y,2),ie=S(Oe);{var Ie=U=>{var N=xl(),W=y(N);Je(W,23,()=>t(_),K=>K.step,(K,te,pe)=>{var ze=ml(),ke=S(ze);{var fe=Ve=>{It(Ve,{class:"size-4 text-success"})},Ne=Ve=>{hr(Ve,{class:"size-4 animate-spin text-sea"})},Be=Ve=>{var Et=gl();a(Ve,Et)};D(ke,Ve=>{t(pe)<t(f)?Ve(fe):t(pe)===t(f)?Ve(Ne,1):Ve(Be,-1)})}var Ue=h(ke);C(ze),j(()=>{je(ze,1,`flex items-center gap-2 ${t(pe)<=t(f)?"":"text-muted-foreground"}`),z(Ue,` ${t(te).label??""}`)}),a(K,ze)}),C(W);var ve=h(W,2);{var Ae=K=>{var te=bl();a(K,te)};D(ve,K=>{(t(i)?.state==="restarting"||nt.upgrading&&!t(i))&&K(Ae)})}a(U,N)},Ze=U=>{var N=yl(),W=y(N),ve=S(W);It(ve,{class:"size-4 text-success"}),Ke(),C(W);var Ae=h(W,2);{var K=te=>{var pe=_l(),ze=re(pe);j(ke=>z(ze,`Now running ${ke??""}.`),[()=>b(t(s).current)]),a(te,pe)};D(Ae,te=>{t(s)?.current.version&&te(K)})}a(U,N)},E=U=>{var N=fn(),W=y(N),ve=S(W);Xr(ve,{class:"mt-0.5 size-4 shrink-0 text-danger"});var Ae=h(ve,2),K=re(Ae);C(W);var te=h(W,2);{var pe=fe=>{var Ne=wl(),Be=re(Ne,!0);j(Ue=>z(Be,Ue),[()=>t(i).output.trim().split(`
|
|
4
|
-
`).slice(-12).join(`
|
|
5
|
-
`)]),a(fe,Ne)};D(te,fe=>{t(i).output&&fe(pe)})}var ze=h(te,2);{var ke=fe=>{var Ne=pn(),Be=re(Ne,!0);j(Ue=>z(Be,Ue),[()=>t(s).changes.join(`
|
|
6
|
-
`)]),a(fe,Ne)};D(ze,fe=>{t(s)?.changes.length&&fe(ke)})}j(()=>z(K,`Wheelhouse was not upgraded: ${t(i).error??""}.`)),a(U,N)},H=U=>{var N=kl(),W=S(N);hr(W,{class:"size-4 animate-spin"});var ve=h(W);C(N),j(()=>z(ve,`Checking ${t(v)??""}…`)),a(U,N)},we=U=>{var N=Cl(),W=y(N),ve=S(W);It(ve,{class:"size-4 text-success"}),Ke(),C(W);var Ae=h(W,2),K=re(Ae);j(te=>z(K,`Checked ${t(v)??""}
|
|
7
|
-
${te??""}.`),[()=>er(t(s).checkedAt,He.now)]),a(U,N)},Pe=U=>{var N=Nl(),W=y(N),ve=S(W,!0),Ae=h(ve);{var K=Te=>{var Ee=Pl(),et=re(Ee,!0);j(()=>z(et,` · ${t(O)}`)),a(Te,Ee)};D(Ae,Te=>{t(O)&&Te(K)})}C(W);var te=h(W,2),pe=S(te);Je(pe,17,()=>t(s).commits,Te=>Te.sha,(Te,Ee)=>{var et=Tl(),ft=S(et),Dt=re(ft,!0),dt=h(ft,2),bt=re(dt);C(et),j((Qn,es)=>{z(Dt,t(Ee).subject),z(bt,`${Qn??""} · ${es??""}`)},[()=>p(t(Ee).sha),()=>er(t(Ee).date,He.now)]),a(Te,et)});var ze=h(pe,2);{var ke=Te=>{var Ee=Sl(),et=re(Ee);j(()=>z(et,`and ${t(s).behind-t(s).commits.length} more`)),a(Te,Ee)};D(ze,Te=>{t(s).behind>t(s).commits.length&&Te(ke)})}C(te);var fe=h(te,2);{var Ne=Te=>{var Ee=Ml(),et=h(S(Ee));Bn(et,{class:"size-3"}),C(Ee),j(()=>ce(Ee,"href",`https://github.com/${t(s).repository??""}/compare/${t(s).current.commit??""}...${t(s).latest.commit??""}`)),a(Te,Ee)};D(fe,Te=>{t(s).repository&&t(s).current.commit&&t(s).latest&&Te(Ne)})}var Be=h(fe,2),Ue=S(Be);{var Ve=Te=>{var Ee=$l();Ke(2),a(Te,Ee)},Et=Te=>{var Ee=ct();j(()=>z(Ee,`Upgrading fast-forwards ${t(s).dir??""}, reinstalls, rebuilds and
|
|
8
|
-
restarts Wheelhouse.`)),a(Te,Ee)};D(Ue,Te=>{t(g)?Te(Ve):Te(Et,-1)})}Ke(),C(Be);var Kt=h(Be,2);{var lr=Te=>{var Ee=Al(),et=h(S(Ee),2);Je(et,20,()=>t(n).busy,ft=>ft,(ft,Dt)=>{var dt=Il(),bt=re(dt,!0);j(()=>z(bt,Dt)),a(ft,dt)}),C(et),C(Ee),a(Te,Ee)};D(Kt,Te=>{t(n)?.busy.length&&Te(lr)})}var Jn=h(Kt,2);{var Zn=Te=>{var Ee=Dl(),et=h(S(Ee),3);{var ft=dt=>{var bt=Ol();a(dt,bt)},Dt=dt=>{var bt=El();a(dt,bt)};D(et,dt=>{t(g)?dt(ft):dt(Dt,-1)})}Ke(),C(Ee),a(Te,Ee)};D(Jn,Te=>{t(n)?.canRestart||Te(Zn)})}j(()=>z(ve,t(M))),a(U,N)},he=U=>{var N=fn(),W=y(N),ve=S(W);Xr(ve,{class:"mt-0.5 size-4 shrink-0 text-warning"});var Ae=h(ve,2),K=re(Ae);C(W);var te=h(W,2);{var pe=fe=>{var Ne=pn(),Be=re(Ne,!0);j(Ue=>z(Be,Ue),[()=>t(s).changes.join(`
|
|
9
|
-
`)]),a(fe,Ne)};D(te,fe=>{t(s).changes.length&&fe(pe)})}var ze=h(te,2);{var ke=fe=>{var Ne=Fl();a(fe,Ne)};D(ze,fe=>{t(s).state==="refused"&&fe(ke)})}j(()=>z(K,`${(t(s).state==="refused"?`${t(M)}, but ${t(s).reason}`:t(s).reason)??""}.`)),a(U,N)};D(ie,U=>{t(l)?U(Ie):nt.upgraded&&t(s)?.state!=="available"?U(Ze,1):t(i)?.state==="failed"?U(E,2):!t(s)||t(n)?.checking&&t(s).state!=="available"?U(H,3):t(s).state==="current"?U(we,4):t(s).state==="available"?U(Pe,5):U(he,-1)})}var qe=h(ie,2);{var rt=U=>{var N=zl(),W=re(N,!0);j(()=>z(W,nt.error)),a(U,N)};D(qe,U=>{nt.error&&U(rt)})}C(Oe);var Fe=h(Oe,2),Qe=S(Fe);{var Xe=U=>{var N=br(),W=y(N);ot(W,{variant:"ghost",size:"sm",onclick:()=>P(r,!1),children:(Ae,K)=>{Ke();var te=ct("Not now");a(Ae,te)},$$slots:{default:!0}});var ve=h(W,2);{let Ae=u(()=>nt.sending||!t(n)?.canRestart);ot(ve,{size:"sm",get disabled(){return t(Ae)},onclick:()=>nt.upgrade(w()),children:(K,te)=>{Ke();var pe=ct("Upgrade and restart");a(K,pe)},$$slots:{default:!0}})}a(U,N)},Le=U=>{var N=Wl();a(U,N)},Ce=U=>{var N=Ll(),W=y(N),ve=re(W),Ae=h(W,2);{let K=u(()=>nt.sending||t(n)?.checking);ot(Ae,{variant:"outline",size:"sm",get disabled(){return t(K)},onclick:()=>nt.check(w()),children:(te,pe)=>{var ze=jl(),ke=y(ze);{let fe=u(()=>nt.sending||t(n)?.checking?"animate-spin":"");lo(ke,{get class(){return t(fe)}})}Ke(),a(te,ze)},$$slots:{default:!0}})}j(()=>z(ve,`Checks ${t(v)??""} every 6 hours.`)),a(U,N)};D(Qe,U=>{t(d)?U(Xe):t(l)?U(Le,1):U(Ce,-1)})}C(Fe),j(U=>z(be,U),[()=>b(t(s)?.current)||"Version unknown"]),a(de,J)},$$slots:{default:!0}})}),a(T,I)},$$slots:{default:!0}})}),a(m,$)},$$slots:{default:!0}})}),a(o,ne),_e()}var Hl=x('<span class="project-name"><span class="project-prefix"> </span><span class="truncate"> </span></span>'),ql=x('<span class="truncate"> </span>'),Ul=x('<span class="tabular rounded-full bg-sea px-1.5 text-xs leading-4 font-medium text-on-accent"> </span>'),Gl=x('<!> <span class="flex items-center gap-1.5"><!> <!></span>',1),Rl=x('<span class="home-tag hidden md:inline-block"> </span>'),Yl=x('<a href="/headroom" class="hidden items-center gap-1.5 rounded-full border border-warning/40 bg-warning/10 px-3 py-1 text-xs font-medium text-warning md:flex"><!> </a>'),Vl=x('<span aria-hidden="true"></span> ',1),Ut=x("<!> <!>",1),Xl=x('<header class="sticky top-0 z-30 border-b bg-header"><div class="flex h-15 items-center gap-3 px-3 sm:gap-5 sm:px-5"><a href="/" class="flex shrink-0 items-center gap-2.5 font-logo text-[1.2rem] font-bold tracking-tight max-md:min-h-11" aria-label="Wheelhouse"><span class="logo-mark"><!></span><span class="hidden sm:inline">Wheelhouse</span></a> <!> <div class="ml-auto flex shrink-0 items-center gap-2 sm:gap-3"><!> <!> <!> <!> <div class="hidden md:contents"><!> <!></div> <!> <!></div></div></header>');function Jl(o,e){xe(e,!0);const r=E=>{var H=Gl(),we=y(H);{var Pe=Le=>{var Ce=Hl(),U=S(Ce),N=re(U),W=h(U),ve=re(W,!0);C(Ce),j(()=>{ce(Ce,"title",t($).full),z(N,`${t($).group??""} ›`),z(ve,t($).label)}),a(Le,Ce)},he=Le=>{var Ce=ql(),U=re(Ce,!0);j(()=>{ce(Ce,"title",t(A)),z(U,t($)?.label??t(A))}),a(Le,Ce)};D(we,Le=>{t($)?.group&&t($).label!==t($).full?Le(Pe):Le(he,-1)})}var qe=h(we,2),rt=S(qe);{var Fe=Le=>{var Ce=Ul(),U=re(Ce,!0);j((N,W)=>{ce(Ce,"aria-label",`${N??""} need you`),z(U,W)},[()=>m(t(q)),()=>m(t(q))]),a(Le,Ce)},Qe=u(()=>m(t(q)));D(rt,Le=>{t(Qe)&&Le(Fe)})}var Xe=h(rt,2);Kn(Xe,{class:"size-4 text-muted-foreground"}),C(qe),a(E,H)},n=E=>{Jt(yi(E,{get projects(){return t(_)},get stats(){return t(f)},get current(){return t(q)},needCount:m,get topics(){return t(M)},get counts(){return t(O)},onpick:H=>{P(p,!1),X(H)}}),H=>P(b,H,!0),()=>t(b))};let s=k(e,"atRisk",3,null),i=k(e,"indicators",19,()=>[]);const l=u(Cr),d=u(mn),c=u(()=>t(d)?.supervisor),g=u(()=>to(t(d)?.firstmate.home)),_=u(()=>t(l)?.projects??[]),f=u(()=>ti(t(_),t(l)?.tasks??[],He.now));let p=ue(!1),b=ue(null);const w=u(()=>We.url.pathname==="/"),v="thread:",M=u(()=>t(w)?ur.rows.filter(E=>!E.project).map(E=>({id:`${v}${E.topic}`,name:E.name,hue:E.hue})):[]),O=u(()=>t(w)?new Map(ur.rows.map(E=>[E.project?E.topic:`${v}${E.topic}`,E.count])):void 0),ne=E=>ur.rows.find(H=>!H.project&&`${v}${H.topic}`===E),le=u(()=>We.url.pathname.match(/^\/tasks\/([^/]+)/)?.[1]??null),L=u(()=>We.url.pathname.match(/^\/projects\/([^/]+)/)?.[1]??null),q=u(()=>{const E=t(w)?We.url.searchParams.get("thread"):null;if(E)return`${v}${E}`;const H=We.url.searchParams.get("project");if(H)return H;if(t(L))return decodeURIComponent(t(L));if(t(le)){const we=decodeURIComponent(t(le));return t(l)?.tasks.find(Pe=>Pe.id===we)?.projectId??"all"}return"all"}),m=E=>E.startsWith(v)?ne(E)?.needs??0:(t(l)?.tasks??[]).filter(H=>(E==="all"||H.projectId===E)&&_s(H)).length,A=u(()=>{if(t(q)==="all")return"All projects";if(t(q).startsWith(v)){const E=t(q).slice(v.length);return ne(t(q))?.name??(E===Ms?"Unsorted":$s(E))}return t(_).find(E=>E.id===t(q))?.name??t(q)}),$=u(()=>t(q)==="all"||t(q).startsWith(v)?null:yr(t(_),$t.names).get(t(q))??null);function X(E){if(E.startsWith(v)){jt(`/?thread=${encodeURIComponent(E.slice(v.length))}`);return}const H=We.url.pathname==="/harbour"||t(L),we=H?We.url.searchParams.get("view"):null;if(H&&we!=="passage"&&we!=="radar"){jt(E==="all"?"/harbour":`/projects/${encodeURIComponent(E)}`);return}const Pe=H?"/harbour":"/",he=[E!=="all"?`project=${encodeURIComponent(E)}`:null,we?`view=${encodeURIComponent(we)}`:null].filter(Boolean);jt(he.length?`${Pe}?${he.join("&")}`:Pe)}const G=u(()=>t(c)?.available?t(c).onWatch?{dot:"bg-success",label:"Firstmate on watch"}:t(c).onWatch===!1?{dot:"bg-danger",label:"Firstmate off watch"}:{dot:"bg-warning",label:"Firstmate unclear"}:{dot:"bg-muted-foreground",label:"Firstmate unknown"});var B=Xl(),ae=S(B),T=S(ae),R=S(T),I=S(R);bn(I,{class:"size-5","aria-hidden":"true"}),C(R),Ke(),C(T);var F=h(T,2);{var Q=E=>{var H=Rl(),we=re(H,!0);j(()=>{ce(H,"title",`Firstmate home: ${t(d)?.firstmate.home??""}`),z(we,t(g))}),a(E,H)};D(F,E=>{t(g)&&E(Q)})}var se=h(F,2),de=S(se);Je(de,17,i,E=>E.key,(E,H)=>{qo(E,{get entry(){return t(H)}})});var ye=h(de,2);{var J=E=>{var H=Yl(),we=S(H);zn(we,{class:"size-3.5","aria-hidden":"true"});var Pe=h(we);C(H),j(he=>z(Pe,` ${s().label??""}: ${s().percentLeft??""}% left, ${he??""}`),[()=>s().runsOutAt?`may run out at ${Qs(s().runsOutAt)}`:"may run out before it resets"]),a(E,H)};D(ye,E=>{s()&&E(J)})}var Y=h(ye,2);oe(Y,()=>Yt,(E,H)=>{H(E,{children:(we,Pe)=>{var he=Ut(),qe=y(he);oe(qe,()=>Rt,(Fe,Qe)=>{Qe(Fe,{class:"hidden cursor-default items-center gap-2 text-sm text-foreground md:flex",children:(Xe,Le)=>{var Ce=Vl(),U=y(Ce),N=h(U,1,!0);j(()=>{je(U,1,`size-2 rounded-full ${t(G).dot??""}`),z(N,t(G).label)}),a(Xe,Ce)},$$slots:{default:!0}})});var rt=h(qe,2);oe(rt,()=>Yn,(Fe,Qe)=>{Qe(Fe,{class:"max-w-xs",children:(Xe,Le)=>{var Ce=Ut(),U=y(Ce);{var N=K=>{var te=ct("Firstmate is running and reading its inbox.");a(K,te)},W=K=>{var te=ct();j(()=>z(te,t(c)?.reason??"Firstmate’s readiness is unknown.")),a(K,te)};D(U,K=>{t(c)?.onWatch?K(N):K(W,-1)})}var ve=h(U,2);{var Ae=K=>{var te=ct();j(()=>z(te,`Firstmate ${t(d).firstmate.version??""}${t(d).firstmate.compatible?", compatible":", not compatible"}.`)),a(K,te)};D(ve,K=>{t(d)?.firstmate.version&&K(Ae)})}a(Xe,Ce)},$$slots:{default:!0}})}),a(we,he)},$$slots:{default:!0}})});var ee=h(Y,2);{var be=E=>{var H=Ut(),we=y(H);ot(we,{variant:"outline",size:"sm",class:"h-11 max-w-44 min-w-0 justify-between gap-2 bg-card/60 font-medium",get"aria-label"(){return`Project: ${t(A)??""}`},"aria-haspopup":"dialog",onclick:()=>P(p,!0),children:(he,qe)=>{r(he)},$$slots:{default:!0}});var Pe=h(we,2);Ss(Pe,{title:"Projects",onOpenAutoFocus:he=>he.preventDefault(),get open(){return t(p)},set open(he){P(p,he,!0)},children:(he,qe)=>{n(he)},$$slots:{default:!0}}),a(E,H)},$e=E=>{var H=Z(),we=y(H);oe(we,()=>wn,(Pe,he)=>{he(Pe,{get open(){return t(p)},set open(qe){P(p,qe,!0)},children:(qe,rt)=>{var Fe=Ut(),Qe=y(Fe);{const Le=(Ce,U)=>{ot(Ce,ge(()=>(U?.()).props,{variant:"outline",size:"sm",class:"h-9 max-w-44 min-w-0 justify-between gap-2 bg-card/60 font-medium sm:max-w-none sm:min-w-46",get"aria-label"(){return`Project: ${t(A)??""}`},children:(W,ve)=>{r(W)},$$slots:{default:!0}}))};oe(Qe,()=>kn,(Ce,U)=>{U(Ce,{child:Le,$$slots:{child:!0}})})}var Xe=h(Qe,2);oe(Xe,()=>ar,(Le,Ce)=>{Ce(Le,{children:(U,N)=>{var W=Z(),ve=y(W);oe(ve,()=>Cn,(Ae,K)=>{K(Ae,{align:"end",sideOffset:4,class:"z-50 w-72 max-w-[calc(100vw-2rem)] overflow-hidden rounded-md bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10",onOpenAutoFocus:te=>{te.preventDefault(),t(b)?.focus()},children:(te,pe)=>{n(te)},$$slots:{default:!0}})}),a(U,W)},$$slots:{default:!0}})}),a(qe,Fe)},$$slots:{default:!0}})}),a(E,H)};D(ee,E=>{Es.current?E(be):E($e,-1)})}var De=h(ee,2),Oe=S(De);Kl(Oe,{});var ie=h(Oe,2);ul(ie,{}),C(De);var Ie=h(De,2);{let E=u(()=>We.url.pathname.startsWith("/settings")?"page":void 0);ot(Ie,{variant:"ghost",size:"icon-sm",href:"/settings/gateway","aria-label":"Settings",get"aria-current"(){return t(E)},class:"hidden md:inline-flex",children:(H,we)=>{co(H,{})},$$slots:{default:!0}})}var Ze=h(Ie,2);{let E=u(()=>e.dark?"Switch to light mode":"Switch to dark mode");ot(Ze,{variant:"ghost",size:"icon-sm",get onclick(){return e.onToggleTheme},get"aria-label"(){return t(E)},class:"hidden md:inline-flex",children:(H,we)=>{var Pe=Z(),he=y(Pe);{var qe=Fe=>{Ho(Fe,{})},rt=Fe=>{Ao(Fe,{})};D(he,Fe=>{e.dark?Fe(qe):Fe(rt,-1)})}a(H,Pe)},$$slots:{default:!0}})}C(se),C(ae),C(B),a(o,B),_e()}const xr=(o,e=Re)=>{var r=Z(),n=y(r);oe(n,()=>Yn,(s,i)=>{i(s,{side:"right",sideOffset:8,children:(l,d)=>{Ke();var c=ct();j(()=>z(c,e())),a(l,c)},$$slots:{default:!0}})}),a(o,r)};var Zl=x('<div class="mx-3 my-2.5 border-t" aria-hidden="true"></div>'),Ql=x('<span class="plugin-icon block size-[1.1rem] bg-current svelte-19v8hvc" aria-hidden="true"></span>'),ed=x('<img alt="" class="block size-[1.1rem] object-contain"/>'),td=x('<span class="nav-dot absolute -top-0.5 -right-0.5 size-2 rounded-full bg-sea ring-2 ring-nav" aria-hidden="true"></span>'),rd=x('<span class="nav-label nav-working" aria-hidden="true">Working</span>'),nd=x('<span class="inline-block"> </span>'),sd=x('<span aria-hidden="true"><!></span>'),od=x('<a><span class="relative shrink-0"><!> <!></span> <span class="nav-label flex-1 truncate"> </span> <!> <!></a>'),Gt=x("<!> <!>",1),ad=x('<a><span class="mate-avatar" aria-hidden="true"> </span> <span class="nav-label min-w-0 flex-1" aria-hidden="true"><span class="block truncate text-foreground"> </span> <span class="block truncate text-xs text-muted-foreground"> </span></span> <span class="mate-dot nav-label" aria-hidden="true"></span></a>'),id=x("<li><!></li>"),ld=x('<section class="mt-6" aria-labelledby="menu-mates"><h2 id="menu-mates" class="mono-label px-3 pb-2">Second mates</h2> <ul class="flex flex-col gap-0.5"></ul></section>'),dd=x('<button><!> <span class="nav-label flex-1 text-left">Collapse</span> <kbd class="nav-label font-sans text-xs text-muted-foreground"> </kbd></button>'),cd=x('<aside aria-label="Menu"><nav class="no-scrollbar flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto px-3 pt-5 pb-3" aria-label="Main"><p class="mono-label px-3 pb-2" aria-hidden="true">Bridge</p> <!> <!></nav> <div class="border-t p-3"><!></div></aside>');function ud(o,e){xe(e,!0);let r=k(e,"decisionsOpen",3,0),n=k(e,"fill",3,!1);const s=u(Cr),i=u(()=>t(s)?.secondMates??[]),l=u(()=>(t(s)?.tasks??[]).filter(so).length),d=m=>m.key==="decisions"?r():m.key==="harbour"?t(l):m.key?0:m.badge??0,c=m=>m.tone==="captain"?"waiting on you":m.tone==="trouble"?"cannot be read":m.health.text,g={firstmate:vo,harbour:go,decisions:fo,remotes:Bo,logbook:po,plugins:ko};let _=ue(!1);wt(()=>{P(_,document.documentElement.dataset.nav==="rail")});function f(){P(_,!t(_)),t(_)?document.documentElement.dataset.nav="rail":delete document.documentElement.dataset.nav;try{localStorage.setItem("wheelhouse-nav",t(_)?"rail":"full")}catch{}}const p=u(()=>typeof navigator<"u"&&/Mac|iPhone|iPad/.test(navigator.platform)),b=u(()=>t(p)?"⌘B":"Ctrl+B");function w(m){m.key.toLowerCase()!=="b"||m.shiftKey||m.altKey||(t(p)?m.metaKey:m.ctrlKey)&&(m.target?.closest?.(".xterm")||(m.preventDefault(),f()))}var v=cd();Xt("keydown",os,w);var M=S(v),O=h(S(M),2);Je(O,19,()=>e.sections,m=>m.href,(m,A,$)=>{const X=u(()=>t(A).key?g[t(A).key]:mo),G=u(()=>d(t(A))),B=u(()=>t(A).key==="decisions"),ae=u(()=>t(A).key==="firstmate"&&fs.atWork);var T=Gt(),R=y(T);{var I=Q=>{var se=Zl();a(Q,se)};D(R,Q=>{!t(A).key&&e.sections[t($)-1]?.key&&Q(I)})}var F=h(R,2);{let Q=u(()=>!t(_));oe(F,()=>Yt,(se,de)=>{de(se,{get disabled(){return t(Q)},children:(ye,J)=>{var Y=Gt(),ee=y(Y);{const $e=(De,Oe)=>{let ie=()=>(Oe?.()).props;var Ie=od();Ge(Ie,N=>({...ie(),href:t(A).href,class:"nav-item","aria-current":t(A).on?"page":void 0,"aria-label":N}),[()=>t(G)?`${t(A).label}, ${t(G)} ${t(B)?"open":t(A).key==="harbour"?"in play":""}`.trim():t(ae)?`${t(A).label}, working`:void 0],void 0,void 0,"svelte-19v8hvc");var Ze=S(Ie),E=S(Ze);{var H=N=>{var W=Ql();let ve;j(()=>ve=_r(W,"",ve,{"--icon":`url('${t(A).icon??""}')`})),a(N,W)},we=u(()=>t(A).icon&&/\.svg(\?|$)/.test(t(A).icon)),Pe=N=>{var W=ed();j(()=>ce(W,"src",t(A).icon)),a(N,W)},he=N=>{var W=Z(),ve=y(W);oe(ve,()=>t(X),(Ae,K)=>{K(Ae,{class:"size-[1.1rem]",strokeWidth:1.75,"aria-hidden":"true"})}),a(N,W)};D(E,N=>{t(we)?N(H):t(A).icon?N(Pe,1):N(he,-1)})}var qe=h(E,2);{var rt=N=>{var W=td();a(N,W)};D(qe,N=>{t(G)&&t(B)&&N(rt)})}C(Ze);var Fe=h(Ze,2),Qe=re(Fe,!0),Xe=h(Fe,2);{var Le=N=>{var W=rd();a(N,W)};D(Xe,N=>{t(ae)&&N(Le)})}var Ce=h(Xe,2);{var U=N=>{var W=sd(),ve=S(W);uo(ve,()=>t(G),Ae=>{var K=nd(),te=re(K,!0);j(()=>z(te,t(G))),wr(1,K,()=>bs),a(Ae,K)}),C(W),j(()=>je(W,1,`nav-label tabular overflow-hidden ${t(B)?"rounded-full bg-sea/15 px-1.5 text-xs leading-5 font-medium text-sea":"font-mono text-[0.72rem] text-muted-foreground"}`)),a(N,W)};D(Ce,N=>{t(G)&&N(U)})}C(Ie),j(()=>z(Qe,t(A).label)),a(De,Ie)};oe(ee,()=>Rt,(De,Oe)=>{Oe(De,{child:$e,$$slots:{child:!0}})})}var be=h(ee,2);{let $e=u(()=>t(G)?`${t(A).label} · ${t(G)} ${t(B)?"open":t(A).key==="harbour"?"in play":""}`.trim():t(A).label);xr(be,()=>t($e))}a(ye,Y)},$$slots:{default:!0}})})}a(m,T)});var ne=h(O,2);{var le=m=>{var A=ld(),$=h(S(A),2);Je($,21,()=>t(i),X=>X.id,(X,G)=>{var B=id(),ae=S(B);{let T=u(()=>!t(_));oe(ae,()=>Yt,(R,I)=>{I(R,{get disabled(){return t(T)},children:(F,Q)=>{var se=Gt(),de=y(se);{const J=(Y,ee)=>{let be=()=>(ee?.()).props;var $e=ad();Ge($e,(Pe,he)=>({...be(),href:`/second-mates#mate-${Pe??""}`,class:"nav-item min-h-13 gap-3 text-[0.95rem] leading-tight","aria-label":`${t(G).id??""}, ${t(G).where==="remote"?`on ${t(G).host??"another host"}`:"on this computer"}: ${he??""}`,"data-mate":t(G).id}),[()=>encodeURIComponent(t(G).id),()=>c(t(G))],void 0,void 0,"svelte-19v8hvc");var De=S($e),Oe=re(De,!0),ie=h(De,2),Ie=S(ie),Ze=re(Ie,!0),E=h(Ie,2),H=re(E,!0);C(ie);var we=h(ie,2);C($e),j((Pe,he)=>{ce(De,"data-hue",Pe),z(Oe,he),z(Ze,t(G).id),z(H,t(G).where==="remote"?t(G).host??"another host":"this computer"),ce(we,"data-online",t(G).health.online),ce(we,"data-tone",t(G).tone)},[()=>ro(t(G).id),()=>no(t(G).id)]),a(Y,$e)};oe(de,()=>Rt,(Y,ee)=>{ee(Y,{child:J,$$slots:{child:!0}})})}var ye=h(de,2);{let J=u(()=>`${t(G).id} · ${c(t(G))}`);xr(ye,()=>t(J))}a(F,se)},$$slots:{default:!0}})})}C(B),a(X,B)}),C($),C(A),a(m,A)};D(ne,m=>{t(i).length&&m(le)})}C(M);var L=h(M,2),q=S(L);oe(q,()=>Yt,(m,A)=>{A(m,{children:($,X)=>{var G=Gt(),B=y(G);{const T=(R,I)=>{let F=()=>(I?.()).props;var Q=dd();Ge(Q,()=>({...F(),class:"nav-item w-full",onclick:f,"aria-label":t(_)?"Expand the menu":"Collapse the menu","aria-expanded":!t(_)}),void 0,void 0,void 0,"svelte-19v8hvc");var se=S(Q);{var de=ee=>{No(ee,{class:"size-[1.1rem] shrink-0",strokeWidth:1.75})},ye=ee=>{Eo(ee,{class:"size-[1.1rem] shrink-0",strokeWidth:1.75})};D(se,ee=>{t(_)?ee(de):ee(ye,-1)})}var J=h(se,4),Y=re(J,!0);C(Q),j(()=>z(Y,t(b))),a(R,Q)};oe(B,()=>Rt,(R,I)=>{I(R,{child:T,$$slots:{child:!0}})})}var ae=h(B,2);xr(ae,()=>`${t(_)?"Expand":"Collapse"} the menu · ${t(b)}`),a($,G)},$$slots:{default:!0}})}),C(L),C(v),j(()=>je(v,1,`sidebar z-20 hidden shrink-0 flex-col border-r bg-nav md:flex ${n()?"min-h-0":"sticky top-15 h-[calc(100dvh-3.75rem)] self-start"}`)),a(o,v),_e()}var hd=x('<span class="absolute -top-0.5 -right-0.5 flex h-[14px] min-w-[14px] items-center justify-center rounded-full bg-sea px-1 text-[9px] font-medium text-on-accent tabular-nums"> </span>'),pd=x('<nav class="fixed right-0 bottom-0 left-0 z-40 border-t bg-nav/95 backdrop-blur supports-[backdrop-filter]:bg-nav/80 md:hidden" aria-label="Primary navigation"><div class="flex h-14 items-center justify-around px-1"><a href="/"><!> <span class="text-[10px] font-medium tracking-[0.02em]">Chat</span></a> <a href="/deck"><div class="relative"><!> <!></div> <span class="text-[10px] font-medium tracking-[0.02em]">Needs you</span></a> <a href="/harbour"><!> <span class="text-[10px] font-medium tracking-[0.02em]">Harbour</span></a> <a href="/inbox"><!> <span class="text-[10px] font-medium tracking-[0.02em]">Decisions</span></a> <a href="/more"><!> <span class="text-[10px] font-medium tracking-[0.02em]">More</span></a></div></nav> <div class="h-14 md:hidden"></div>',1);function fd(o,e){xe(e,!0);const r=u(()=>zt.open(He.now)),n=q=>{const m=We.url.pathname;return q==="/"?m==="/":q==="/deck"?m==="/deck":q==="/inbox"?m==="/inbox"||m.startsWith("/inbox/"):q==="/harbour"?m==="/harbour"||m.startsWith("/harbour")||m.startsWith("/projects")||m.startsWith("/tasks")||m.startsWith("/second-mates"):q==="/more"?m==="/more"||m.startsWith("/more/")||m==="/plugins"||m.startsWith("/settings")||m.startsWith("/headroom")||m.startsWith("/time")||m.startsWith("/decisions"):!1};var s=pd(),i=y(s);_r(i,"",{},{"padding-bottom":"env(safe-area-inset-bottom, 0px)"});var l=S(i),d=S(l),c=S(d);$o(c,{class:"size-5","aria-hidden":"true"}),Ke(2),C(d);var g=h(d,2),_=S(g),f=S(_);zn(f,{class:"size-5","aria-hidden":"true"});var p=h(f,2);{var b=q=>{var m=hd(),A=re(m,!0);j(()=>{ce(m,"aria-label",`${t(r)??""} open`),z(A,t(r)>9?"9+":t(r))}),a(q,m)};D(p,q=>{t(r)>0&&q(b)})}C(_),Ke(2),C(g);var w=h(g,2),v=S(w);bn(v,{class:"size-5","aria-hidden":"true"}),Ke(2),C(w);var M=h(w,2),O=S(M);So(O,{class:"size-5","aria-hidden":"true"}),Ke(2),C(M);var ne=h(M,2),le=S(ne);Po(le,{class:"size-5","aria-hidden":"true"}),Ke(2),C(ne),C(l),C(i);var L=h(i,2);_r(L,"",{},{height:"calc(3.5rem + env(safe-area-inset-bottom, 0px))"}),j((q,m,A,$,X,G,B,ae,T,R)=>{je(d,1,`flex min-h-[44px] min-w-[44px] flex-col items-center justify-center gap-0.5 rounded-lg ${q??""}`),ce(d,"aria-current",m),je(g,1,`relative flex min-h-[44px] min-w-[44px] flex-col items-center justify-center gap-0.5 rounded-lg ${A??""}`),ce(g,"aria-current",$),je(w,1,`flex min-h-[44px] min-w-[44px] flex-col items-center justify-center gap-0.5 rounded-lg ${X??""}`),ce(w,"aria-current",G),je(M,1,`flex min-h-[44px] min-w-[44px] flex-col items-center justify-center gap-0.5 rounded-lg ${B??""}`),ce(M,"aria-current",ae),je(ne,1,`flex min-h-[44px] min-w-[44px] flex-col items-center justify-center gap-0.5 rounded-lg ${T??""}`),ce(ne,"aria-current",R)},[()=>n("/")?"text-foreground":"text-muted-foreground hover:text-foreground",()=>n("/")?"page":void 0,()=>n("/deck")?"text-foreground":"text-muted-foreground hover:text-foreground",()=>n("/deck")?"page":void 0,()=>n("/harbour")?"text-foreground":"text-muted-foreground hover:text-foreground",()=>n("/harbour")?"page":void 0,()=>n("/inbox")?"text-foreground":"text-muted-foreground hover:text-foreground",()=>n("/inbox")?"page":void 0,()=>n("/more")?"text-foreground":"text-muted-foreground hover:text-foreground",()=>n("/more")?"page":void 0]),a(o,s),_e()}function vn(o){if(!o)return null;const e=eo(o.replace(/\s*\([^()]*\)/g,""));return!e||/\b\d+\s*ms\b|\btimed out\b/i.test(e)?null:/[.!?]$/.test(e)?e:`${e}.`}function vd({connectionLost:o,health:e,fleet:r,now:n}){const s=[];if(o&&s.push({key:"connection",tone:"danger",title:"Connection trouble",text:"Can’t reach the Wheelhouse server, retrying. What you see picks up again as soon as it answers."}),e&&!e.configured){const d=vn(e.firstmate.problems[0]);s.push({key:"setup",tone:"danger",title:"Not connected to Firstmate",text:`Wheelhouse isn’t connected to a Firstmate home.${d?` ${d}`:""}`})}else e&&!e.firstmate.compatible&&s.push({key:"compatibility",tone:"warning",title:"Firstmate may not be compatible",text:"This Firstmate may not match this Wheelhouse, so some information may be missing or wrong."});const i=e?.supervisor;if(e?.configured&&i&&i.onWatch!==!0){const d=i.onWatch===!1,c=vn(i.reason);s.push({key:"watch",tone:"quiet",title:d?"Firstmate is off watch":"Firstmate isn’t answering",text:`${d?"Firstmate is off watch.":"Firstmate isn’t answering right now."}${c?` ${c}`:""} Task states are still read from its records.`})}e?.configured&&r?.stale&&s.push({key:"stale",tone:"warning",title:"Updates may be late",text:r.collectedAt?`Fleet view last updated ${er(r.collectedAt,n)}. Wheelhouse keeps trying.`:"Wheelhouse hasn’t been able to read the fleet yet. It keeps trying."});const l={danger:0,warning:1,quiet:2};return s.sort((d,c)=>l[d.tone]-l[c.tone])}function gd(o){return o.length?o.length===1?o[0].title:`${o[0].title} · ${o.length} issues`:""}function md(o,e){const r=new Set(o.split(",").map(i=>i.trim())),n=!r.has("setup"),s=r.has("offwatch")?!1:r.has("watch")?null:!0;return{connectionLost:r.has("lost")||r.has("server"),health:{configured:n,firstmate:{dir:null,home:null,version:null,compatible:n&&!r.has("compat"),problems:["fm-session.sh is missing"],scripts:[]},supervisor:{available:!0,onWatch:s,reason:"fm-inbox.sh timed out after 10000 ms",observedAt:null,posture:null}},fleet:{stale:r.has("stale"),collectedAt:new Date(e-60*6e4).toISOString()},now:e}}var bd=x('<li class="flex gap-2.5"><span aria-hidden="true"></span> <span class="min-w-0"><span class="font-medium"> </span> <span class="text-muted-foreground"> </span></span></li>'),xd=x('<div data-notice-strip=""><button type="button" class="flex min-h-9 w-full items-center gap-2.5 px-4 py-1.5 text-left text-sm sm:px-6 lg:px-10" aria-controls="wh-notices"><span aria-hidden="true"></span> <span class="min-w-0 flex-1 truncate font-medium"> </span> <span class="shrink-0 text-xs text-muted-foreground max-sm:hidden"> </span> <!></button> <ul id="wh-notices" class="space-y-1.5 px-4 pb-2.5 text-sm sm:px-6 lg:px-10"></ul></div>'),_d=x('<div aria-live="polite"><!></div>');function yd(o,e){xe(e,!0);let r=ue(!1);at(()=>{e.items.length||P(r,!1)});const n={danger:"bg-danger/10",warning:"bg-warning/10",quiet:"bg-muted/60"},s={danger:"bg-danger",warning:"bg-warning",quiet:"bg-muted-foreground"},i=u(()=>e.items[0]);var l=_d(),d=S(l);{var c=g=>{var _=xd(),f=S(_),p=S(f),b=h(p,2),w=re(b,!0),v=h(b,2),M=re(v,!0),O=h(v,2);{let le=u(()=>t(r)?"rotate-180":"");Kn(O,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${t(le)??""}`},"aria-hidden":"true"})}C(f);var ne=h(f,2);Je(ne,21,()=>e.items,le=>le.key,(le,L)=>{var q=bd(),m=S(q),A=h(m,2),$=S(A),X=re($),G=h($,2),B=re(G,!0);C(A),C(q),j(()=>{ce(q,"data-notice",t(L).key),je(m,1,`mt-[0.45rem] size-1.5 shrink-0 rounded-full ${s[t(L).tone]??""}`),z(X,`${t(L).title??""}.`),z(B,t(L).text)}),a(le,q)}),C(ne),C(_),j(le=>{je(_,1,`border-b ${n[t(i).tone]??""}`),ce(f,"aria-expanded",t(r)),je(p,1,`size-2 shrink-0 rounded-full ${s[t(i).tone]??""}`),z(w,le),z(M,t(r)?"Hide":"Details"),ce(ne,"hidden",!t(r))},[()=>gd(e.items)]),st("click",f,()=>P(r,!t(r))),a(g,_)};D(d,g=>{t(i)&&g(c)})}C(l),a(o,l),_e()}nr(["click"]);function wd(o,e){xe(e,!0);const r=u(()=>null),n=u(()=>vd(t(r)!==null?md(t(r),He.now):{connectionLost:He.connection==="lost",health:mn(),fleet:Cr(),now:He.now}));yd(o,{get items(){return t(n)}}),_e()}var kd=x('<span class="ml-1 font-normal tracking-normal text-muted-foreground normal-case">· waiting on you</span>'),Cd=x('<span class="inline-flex h-7 items-center gap-1 px-1 text-xs font-medium text-success"><!> </span>'),Pd=x(" <!>",1),Td=x('<p class="mt-1.5 text-xs text-danger"> </p>'),Sd=x('<div class="pointer-events-auto relative overflow-hidden rounded-md border border-foreground/20 bg-card text-card-foreground shadow-[0_6px_18px_-6px_rgb(20_33_61/0.35)]"><span aria-hidden="true"></span> <div class="py-3 pr-3 pl-4"><div class="flex items-start gap-2"><div class="min-w-0 flex-1"><p> <!></p> <p class="mt-0.5 font-display text-base leading-snug font-semibold"> </p> <p class="mt-1 text-sm leading-snug text-muted-foreground"> </p></div> <!></div> <div class="mt-2.5 flex flex-wrap items-center gap-1.5"></div> <!></div></div>');function Md(o,e){xe(e,!0);const r=u(()=>e.toast.alert),n=u(()=>Ln[t(r).kind]),s=9e3;let i=null;function l(){i&&clearTimeout(i),i=null}function d($=s){l(),t(r).captain||(i=setTimeout(()=>Se.expire(t(r).id),$))}wt(()=>(d(),l));var c=Sd(),g=S(c),_=h(g,2),f=S(_),p=S(f),b=S(p),w=S(b,!0),v=h(w);{var M=$=>{var X=kd();a($,X)};D(v,$=>{t(r).captain&&$(M)})}C(b);var O=h(b,2),ne=re(O,!0),le=h(O,2),L=re(le,!0);C(p);var q=h(p,2);ot(q,{variant:"ghost",size:"icon-xs",class:"-mt-0.5 -mr-1 text-muted-foreground","aria-label":"Dismiss",onclick:()=>Se.dismiss(t(r)),children:($,X)=>{ho($,{})},$$slots:{default:!0}}),C(f);var m=h(f,2);Je(m,23,()=>t(r).actions,$=>$.label,($,X,G)=>{var B=Z(),ae=y(B);{var T=I=>{const F=u(()=>Se.notes[t(X).requestId]);var Q=Z(),se=y(Q);{var de=J=>{var Y=Cd(),ee=S(Y);It(ee,{class:"size-3.5","aria-hidden":"true"});var be=h(ee,1,!0);C(Y),j(()=>z(be,t(X).sent)),a(J,Y)},ye=J=>{{let Y=u(()=>t(G)===0?"default":"outline"),ee=u(()=>t(F)?.state==="sending"||!e.token);ot(J,{size:"sm",class:"h-7",get variant(){return t(Y)},get disabled(){return t(ee)},onclick:()=>Se.act(t(X),e.token),children:(be,$e)=>{Ke();var De=ct();j(()=>z(De,t(F)?.state==="sending"?"Sending…":t(F)?.state==="failed"?`Retry: ${t(X).label}`:t(X).label)),a(be,De)},$$slots:{default:!0}})}};D(se,J=>{t(F)?.state==="sent"?J(de):J(ye,-1)})}a(I,Q)},R=I=>{{let F=u(()=>t(G)===0?"default":"outline"),Q=u(()=>t(X).external?"_blank":void 0),se=u(()=>t(X).external?"noreferrer":void 0);ot(I,{size:"sm",class:"h-7",get variant(){return t(F)},get href(){return t(X).href},get target(){return t(Q)},get rel(){return t(se)},onclick:()=>!t(X).external&&Se.dismiss(t(r)),children:(de,ye)=>{Ke();var J=Pd(),Y=y(J,!0),ee=h(Y);{var be=$e=>{Bn($e,{class:"size-3"})};D(ee,$e=>{t(X).external&&$e(be)})}j(()=>z(Y,t(X).label)),a(de,J)},$$slots:{default:!0}})}};D(ae,I=>{t(X).kind==="note"?I(T):I(R,-1)})}a($,B)}),C(m);var A=h(m,2);Je(A,17,()=>t(r).actions,$=>$.label,($,X)=>{var G=Z(),B=y(G);{var ae=T=>{const R=u(()=>Se.notes[t(X).requestId]);var I=Td(),F=re(I,!0);j(()=>z(F,t(R).state==="failed"?t(R).error:"")),a(T,I)};D(B,T=>{t(X).kind==="note"&&Se.notes[t(X).requestId]?.state==="failed"&&T(ae)})}a($,G)}),C(_),C(c),j($=>{ce(c,"role",t(r).captain?"alert":"status"),je(g,1,`absolute inset-y-0 left-0 w-1 ${io[t(n)]??""}`),je(b,1,`text-xs font-semibold tracking-wide uppercase ${jn[t(n)]??""}`),z(w,$),z(ne,t(r).title),z(L,t(r).text)},[()=>qr(t(r).kind)]),Xt("mouseenter",c,l),Xt("mouseleave",c,()=>d(4e3)),st("focusin",c,l),st("focusout",c,()=>d(4e3)),a(o,c),_e()}nr(["focusin","focusout"]);var $d=x("<div><!></div>"),Id=x('<button type="button" class="pointer-events-auto self-end rounded-md border border-foreground/20 bg-card px-3 py-1 text-xs font-medium text-card-foreground shadow-sm hover:bg-muted"> </button>'),Ad=x('<section aria-label="Ship’s bell alerts" aria-live="polite"><!> <!></section>');function Od(o,e){xe(e,!0);const r=3;let n=ue(!1);const s=u(()=>[...Se.toasts].reverse()),i=u(()=>t(n)?t(s):t(s).slice(0,r)),l=u(()=>t(s).length-t(i).length);at(()=>{t(s).length<=r&&P(n,!1)});const d=u(()=>We.data.sessionToken??"");let c=ue(!1);wt(()=>{const b=matchMedia("(prefers-reduced-motion: reduce)");P(c,b.matches,!0);const w=()=>P(c,b.matches,!0);b.addEventListener("change",w);const v=Se.start();return()=>{b.removeEventListener("change",w),v()}}),at(()=>{He.fleet,Se.prune()});var g=Ad(),_=S(g);Je(_,25,()=>t(i),b=>ut(b.alert),(b,w)=>{var v=$d(),M=S(v);Md(M,{get toast(){return t(w)},get token(){return t(d)}}),C(v),Os(v,()=>bo,()=>({duration:t(c)?0:180})),wr(1,v,()=>Zr,()=>({x:t(c)?0:24,duration:t(c)?0:200})),wr(2,v,()=>Zr,()=>({x:t(c)?0:24,duration:t(c)?0:150})),a(b,v)});var f=h(_,2);{var p=b=>{var w=Id(),v=re(w,!0);j(()=>{ce(w,"aria-expanded",t(n)),z(v,t(n)?"Show fewer":`+${t(l)} more`)}),st("click",w,()=>P(n,!t(n))),a(b,w)};D(f,b=>{(t(l)>0||t(n))&&b(p)})}C(g),j(()=>je(g,1,`${t(n)?"pointer-events-auto":"pointer-events-none"} fixed top-16 right-4 z-50 flex max-h-[calc(100dvh-5rem)] w-[22rem] max-w-[calc(100vw-2rem)] flex-col gap-2 overflow-y-auto`)),a(o,g),_e()}nr(["click"]);var Ed=x("<div><!> <!> <div><!> <div><!></div></div></div> <!> <!>",1);function Ic(o,e){xe(e,!0);let r=ue(!1);const n=u(()=>We.url.pathname==="/"||We.url.pathname==="/deck"||We.route.id==="/projects/[id]/[plugin]/[tab]"),s=u(()=>We.url.pathname==="/setup"),i=u(()=>We.data.slots),l=u(()=>t(i)?.[cr.fleet]?We.data.slotsAt??0:0),d=u(()=>Gr.entries(cr.fleet,t(i),t(l)).filter(w=>w.content.available));at(()=>{He.revision,Gr.refresh(cr.fleet,t(l))});const c=u(()=>ms(We.url.pathname,t(d).filter(w=>w.slot==="nav.page").map(w=>({href:gs(w),label:w.title,icon:w.icon,badge:w.badge})))),g=u(()=>t(d).filter(w=>w.slot==="header.indicator")),_=u(()=>zt.open(He.now));at(()=>zt.seed(We.data.inbox)),at(()=>{dr.to=We.data.addressRewrites?.[0]??null,dr.remote=We.data.remote??null,dr.hosted=We.data.hosted??null}),at(()=>{He.revision,He.messages,zt.refresh()}),wt(()=>{zt.load(),P(r,document.documentElement.classList.contains("dark"),!0);const w=He.onRestart(()=>{us()}),v=He.connect(),M=vs(document);return()=>{w(),v(),M()}}),cs(w=>{if(!document.startViewTransition||Rr()||!w.from||!w.to||w.from.url.pathname===w.to.url.pathname)return;const v=document.documentElement;return new Promise(M=>{v.dataset.pageChange="",document.startViewTransition(async()=>{M(),await w.complete}).finished.finally(()=>delete v.dataset.pageChange)})});function f(w){const v=!t(r),M=()=>{P(r,v),document.documentElement.classList.toggle("dark",v)};if(!document.startViewTransition||Rr()||!w)M();else{const O=w.clientX||innerWidth-40,ne=w.clientY||28,le=Math.hypot(Math.max(O,innerWidth-O),Math.max(ne,innerHeight-ne));document.startViewTransition(M).ready.then(()=>document.documentElement.animate({clipPath:[`circle(0px at ${O}px ${ne}px)`,`circle(${le}px at ${O}px ${ne}px)`]},{duration:520,easing:"cubic-bezier(0.2, 0.8, 0.2, 1)",pseudoElement:"::view-transition-new(root)"}))}try{localStorage.setItem("wheelhouse-theme",v?"dark":"light")}catch{}}var p=Z();ls("12qhfyh",w=>{gn(()=>{as.title="Wheelhouse"})});var b=y(p);oe(b,()=>Mi,(w,v)=>{v(w,{delayDuration:200,children:(M,O)=>{var ne=Z(),le=y(ne);{var L=m=>{var A=Z(),$=y(A);Me($,()=>e.children),a(m,A)},q=m=>{var A=Ed(),$=y(A),X=S($);{let Q=u(()=>We.data.atRisk??null);Jl(X,{get dark(){return t(r)},onToggleTheme:f,get atRisk(){return t(Q)},get indicators(){return t(g)}})}var G=h(X,2);wd(G,{});var B=h(G,2),ae=S(B);ud(ae,{get sections(){return t(c)},get decisionsOpen(){return t(_)},get fill(){return t(n)}});var T=h(ae,2),R=S(T);Me(R,()=>e.children),C(T),C(B),C($);var I=h($,2);fd(I,{});var F=h(I,2);Od(F,{}),j(()=>{je($,1,ds(t(n)?"flex h-dvh flex-col overflow-hidden max-md:h-[calc(100dvh_-_3.5rem_-_env(safe-area-inset-bottom,0px))]":"contents")),je(B,1,`flex ${t(n)?"min-h-0 flex-1":""}`),je(T,1,`wh-page min-w-0 flex-1 ${t(n)?"flex min-h-0 flex-col":""}`)}),a(m,A)};D(le,m=>{t(s)?m(L):m(q,-1)})}a(M,ne)},$$slots:{default:!0}})}),a(o,p),_e()}export{Ic as component};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|