@chrisjowen/wheelhouse 0.17.0 → 0.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/client/_app/immutable/chunks/{qmyjnG6s.js → BQPyzYAS.js} +1 -1
- package/build/client/_app/immutable/chunks/BQPyzYAS.js.br +0 -0
- package/build/client/_app/immutable/chunks/BQPyzYAS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CSU604UC.js → BS3n5c7l.js} +1 -1
- package/build/client/_app/immutable/chunks/BS3n5c7l.js.br +0 -0
- package/build/client/_app/immutable/chunks/BS3n5c7l.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B1zE3zKP.js → Bgm2YDEc.js} +1 -1
- package/build/client/_app/immutable/chunks/Bgm2YDEc.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bgm2YDEc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BXiSaVju.js → CF9qC7cA.js} +1 -1
- package/build/client/_app/immutable/chunks/CF9qC7cA.js.br +0 -0
- package/build/client/_app/immutable/chunks/CF9qC7cA.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BosdQIFt.js → CGRtmaS4.js} +1 -1
- package/build/client/_app/immutable/chunks/CGRtmaS4.js.br +0 -0
- package/build/client/_app/immutable/chunks/CGRtmaS4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CsmF6Hwj.js → CH2Y0BVE.js} +1 -1
- package/build/client/_app/immutable/chunks/CH2Y0BVE.js.br +0 -0
- package/build/client/_app/immutable/chunks/CH2Y0BVE.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{D8J1M-4m.js → CLADX83T.js} +1 -1
- package/build/client/_app/immutable/chunks/CLADX83T.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLADX83T.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CS4t4atW.js +1 -0
- package/build/client/_app/immutable/chunks/CS4t4atW.js.br +0 -0
- package/build/client/_app/immutable/chunks/CS4t4atW.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CU0ZJcdF.js +2 -0
- package/build/client/_app/immutable/chunks/CU0ZJcdF.js.br +0 -0
- package/build/client/_app/immutable/chunks/CU0ZJcdF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B3KHKydy.js → CXsGgEzT.js} +1 -1
- package/build/client/_app/immutable/chunks/CXsGgEzT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CXsGgEzT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CgZovtjz.js → Ch7J5mLH.js} +1 -1
- package/build/client/_app/immutable/chunks/Ch7J5mLH.js.br +0 -0
- package/build/client/_app/immutable/chunks/Ch7J5mLH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CI19kiwT.js → ClSB0siN.js} +1 -1
- package/build/client/_app/immutable/chunks/ClSB0siN.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClSB0siN.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BPjwAHMu.js → CxexnUzw.js} +1 -1
- package/build/client/_app/immutable/chunks/CxexnUzw.js.br +0 -0
- package/build/client/_app/immutable/chunks/CxexnUzw.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{79yuhTwS.js → D8F9xgmh.js} +1 -1
- package/build/client/_app/immutable/chunks/D8F9xgmh.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8F9xgmh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CKE9neHp.js → DP7xDWnQ.js} +1 -1
- package/build/client/_app/immutable/chunks/DP7xDWnQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/DP7xDWnQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DFrn6Xyh.js → DkntkkRH.js} +1 -1
- package/build/client/_app/immutable/chunks/DkntkkRH.js.br +0 -0
- package/build/client/_app/immutable/chunks/DkntkkRH.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{ClYd4imU.js → DwBYQnih.js} +1 -1
- package/build/client/_app/immutable/chunks/DwBYQnih.js.br +0 -0
- package/build/client/_app/immutable/chunks/DwBYQnih.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{fhAu_Obx.js → RedPhL9b.js} +1 -1
- package/build/client/_app/immutable/chunks/RedPhL9b.js.br +0 -0
- package/build/client/_app/immutable/chunks/RedPhL9b.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{CDSHscp6.js → _8osrypQ.js} +1 -1
- package/build/client/_app/immutable/chunks/_8osrypQ.js.br +2 -0
- package/build/client/_app/immutable/chunks/_8osrypQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{xHBeYlGm.js → iI4tqZHC.js} +1 -1
- package/build/client/_app/immutable/chunks/iI4tqZHC.js.br +0 -0
- package/build/client/_app/immutable/chunks/iI4tqZHC.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.DwV2pwLU.js → app.DzMOOaXE.js} +2 -2
- package/build/client/_app/immutable/entry/app.DzMOOaXE.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DzMOOaXE.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.BP7YKN_Q.js +1 -0
- package/build/client/_app/immutable/entry/start.BP7YKN_Q.js.br +0 -0
- package/build/client/_app/immutable/entry/start.BP7YKN_Q.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.DF8hnsli.js → 0.BIHpRnqw.js} +1 -1
- package/build/client/_app/immutable/nodes/0.BIHpRnqw.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BIHpRnqw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.B5FnFSGX.js → 1.BJIoIsvP.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BJIoIsvP.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BJIoIsvP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.COzSUd5H.js → 10.DRDVy09M.js} +1 -1
- package/build/client/_app/immutable/nodes/10.DRDVy09M.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.DRDVy09M.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.hxSy1hC3.js → 11.B2EhouGG.js} +1 -1
- package/build/client/_app/immutable/nodes/11.B2EhouGG.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.B2EhouGG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.C7_etTt9.js → 12.5fuIl1It.js} +1 -1
- package/build/client/_app/immutable/nodes/12.5fuIl1It.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.5fuIl1It.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.DmZBXkEn.js → 13.BHd8lAXB.js} +1 -1
- package/build/client/_app/immutable/nodes/13.BHd8lAXB.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.BHd8lAXB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.B2FfmJwY.js → 14.DgsN2-TN.js} +1 -1
- package/build/client/_app/immutable/nodes/14.DgsN2-TN.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DgsN2-TN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.DOXGz5UB.js → 15.CPHkfcQw.js} +1 -1
- package/build/client/_app/immutable/nodes/15.CPHkfcQw.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CPHkfcQw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.9Kdcqd35.js → 16.CrpxQoZ7.js} +1 -1
- package/build/client/_app/immutable/nodes/16.CrpxQoZ7.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.CrpxQoZ7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.rjXh_9jf.js → 17.B83y7TTZ.js} +1 -1
- package/build/client/_app/immutable/nodes/17.B83y7TTZ.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.B83y7TTZ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{19.BDL7z_Qb.js → 19.BGzbdUG8.js} +1 -1
- package/build/client/_app/immutable/nodes/19.BGzbdUG8.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BGzbdUG8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.BCbkmPbx.js → 2.B_zXlRDw.js} +1 -1
- package/build/client/_app/immutable/nodes/2.B_zXlRDw.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.B_zXlRDw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.CmA-uI_h.js → 20.CQE-Zjw-.js} +1 -1
- package/build/client/_app/immutable/nodes/20.CQE-Zjw-.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CQE-Zjw-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.DXJrG-NW.js → 21.BjSp2mZI.js} +1 -1
- package/build/client/_app/immutable/nodes/21.BjSp2mZI.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.BjSp2mZI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.D1PSb-pN.js → 22.BycUFjCM.js} +1 -1
- package/build/client/_app/immutable/nodes/22.BycUFjCM.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.BycUFjCM.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.DsgvXr3A.js → 23.BjOud3nL.js} +1 -1
- package/build/client/_app/immutable/nodes/23.BjOud3nL.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.BjOud3nL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.DYbfQRKi.js → 24.DmaWt7EU.js} +1 -1
- package/build/client/_app/immutable/nodes/24.DmaWt7EU.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DmaWt7EU.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.DchwdBic.js → 25.DpdKssoo.js} +1 -1
- package/build/client/_app/immutable/nodes/25.DpdKssoo.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DpdKssoo.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.DGQvgO-w.js → 26.BxG4S8mB.js} +1 -1
- package/build/client/_app/immutable/nodes/26.BxG4S8mB.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.BxG4S8mB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.C-Ubf5oN.js → 28.Ds4FDR_a.js} +1 -1
- package/build/client/_app/immutable/nodes/28.Ds4FDR_a.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.Ds4FDR_a.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.BZFHR-pC.js → 3.CldWfpKa.js} +1 -1
- package/build/client/_app/immutable/nodes/3.CldWfpKa.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CldWfpKa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.CAiVTgL3.js → 4.Ds0FcslK.js} +1 -1
- package/build/client/_app/immutable/nodes/4.Ds0FcslK.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Ds0FcslK.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.Bpt4zq5B.js → 6.CvP4hVA3.js} +1 -1
- package/build/client/_app/immutable/nodes/6.CvP4hVA3.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CvP4hVA3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.DqfjvXPm.js → 7.Ca_DVOMc.js} +1 -1
- package/build/client/_app/immutable/nodes/7.Ca_DVOMc.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.Ca_DVOMc.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.CCshJNeL.js → 8.D8JqGvkd.js} +1 -1
- package/build/client/_app/immutable/nodes/8.D8JqGvkd.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.D8JqGvkd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.DAgz6-ct.js → 9.CHSFcAbh.js} +1 -1
- package/build/client/_app/immutable/nodes/9.CHSFcAbh.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.CHSFcAbh.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +4 -4
- package/build/index.js +4 -4
- package/build/server/chunks/chunks/{detail.js-Dmv_JQut.js → detail.js-T1brxxWW.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-D3a2iMXg.js → feedback.js-0cB22LBt.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-B1bN3ll4.js → internal.js-BJRpqxxM.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-Cp8llbD0.js → keychain.js-CsTOqhf4.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-Cx9Q0k8Q.js → marketplace-service.js-CckS3apE.js} +2 -2
- package/build/server/chunks/chunks/{page.js-CoP2TAJ_.js → page.js-D5V2PN2q.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-BrTz0Tg7.js → previewhelper2.js-DRcdOpNv.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-LJxMBx-J.js → repo.js-CsdCOmUL.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-Div6Lnx3.js → runtime.js-CbmzOl0F.js} +102 -53
- package/build/server/chunks/chunks/{service.js-C-7gDnLN.js → service.js-DztM8MY5.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-BsM3bqfY.js → service2.js-DQccL6zz.js} +2 -2
- package/build/server/chunks/chunks/{starter.js-BGIHa5RG.js → starter.js-ROzdTBeO.js} +2 -2
- package/build/server/chunks/chunks/{view.js-B-5C4tjd.js → view.js-BDo4J83f.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-u0ExtU7j.js → _server.ts.js-BTTHbZK6.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-BO-Upj5a.js → _server.ts.js-m9cTbE-7.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-CqmlbD19.js → _server.ts.js-z8BbPJ2P.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-BuNwFHVn.js → _server.ts.js-BniUpesu.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-DjTqppEU.js → _server.ts.js-B0WcXQJH.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-C9cMNlgd.js → _server.ts.js-CncNeTwM.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-DfpaVvxs.js → _server.ts.js-hnvcy9Ia.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-8SzK4gCV.js → _server.ts.js-BQgc12gv.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-BQbD-LTs.js → _server.ts.js-Cpq1OUlv.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-ClqS2YDJ.js → _server.ts.js-DcduvTz-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-BCazjeCb.js → _server.ts.js-r_OTtndR.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-DbwR4fGz.js → _server.ts.js-DRc0m-xP.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-CY5SLTEA.js → _server.ts.js-DBrNAwQy.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-Co9V8-6k.js → _server.ts.js-D1Q8V-y_.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-tC_Zgasq.js → _server.ts.js-cN8CO68M.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-BwROfRU7.js → _server.ts.js-BSpvCzuX.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-BEmBVcdL.js → _server.ts.js-Cs9IYII5.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-DdaypvH2.js → _server.ts.js-D2iFH361.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-BbDc6SzH.js → _server.ts.js-BnZZNGqp.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-Bz4abExj.js → _server.ts.js-6-pUqSbs.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-BNVKAFTs.js → _server.ts.js-BRHI8EzR.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-B1AaY6FI.js → _server.ts.js-D75GJhqf.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-CP9sLBS7.js → _server.ts.js-DXlq6GNe.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-DBDdeN2z.js → _server.ts.js-DzCq67Pq.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-D4h_Mifs.js → _server.ts.js-DP4Br_Kb.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-BIrWdhtR.js → _server.ts.js-BTZibvW1.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-Cu_Y3EEq.js → _server.ts.js-BVEiTedk.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CDMP1Wcb.js → _server.ts.js-BARKIuL9.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-DHTVslXa.js → _server.ts.js-vXn-DxW7.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-CoRV0mGt.js → _server.ts.js-BrTsfhpU.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-DZi9g4M6.js → _server.ts.js-uLUVa1Yc.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-lf9gC82y.js → _server.ts.js-fFGC33td.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-Co8qdA33.js → _server.ts.js-CV30SKJH.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-DFoBOVVT.js → _server.ts.js-BmywjWsD.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-CzTVAiDc.js → _server.ts.js-C928jxXA.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-BAZpTlCx.js → _server.ts.js-DsVDHPoG.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-jkk-r-nJ.js → _server.ts.js-B5kai_f_.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-BdsAFbko.js → _server.ts.js-DFdhVYKr.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-DiMBVbVj.js → _server.ts.js-C3rHPgm9.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-BtDKXwvJ.js → _server.ts.js-GMslvRRG.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-C02cyG4M.js → _server.ts.js-G6S2vjwB.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-CA0wN6yE.js → _server.ts.js-nDbd4-FQ.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-BPPzbpED.js → _server.ts.js-v9aqCXY5.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-FbF3xSIs.js → _server.ts.js-BLxZZ6h-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-BmS6o8yc.js → _server.ts.js-BViJ-Ufk.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-EsX_IGvt.js → _server.ts.js-T0HJn3Nc.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-BgBAYDN4.js → _server.ts.js-DN9vhG-X.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-DuTLNykO.js → _server.ts.js-azR55GM-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-DDy8igq7.js → _server.ts.js-NfTPilV6.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-D5pfyCzV.js → _server.ts.js-DzTACS2K.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-BA8S2_Gc.js → _server.ts.js-iObKq15r.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-DbU3413y.js → _server.ts.js-CFL0gv8m.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-BOfdrtdZ.js → _server.ts.js-CxnJ6MH1.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-BA5eDd2l.js → _server.ts.js-BzHUulBR.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-D5fyMbR0.js → _server.ts.js-CwIEgYLU.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-B53DnvyB.js → _server.ts.js-BfV0Rwjv.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-bjte8O9v.js → _server.ts.js-D0M-kf3z.js} +4 -4
- package/build/server/chunks/entries/{hooks.server.js-vOikVCYe.js → hooks.server.js-BK27kVep.js} +4 -4
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-MabiHA-3.js → _layout.server.ts.js-thMV7ofo.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-B2yCD9g1.js → _page.server.ts.js-IJJCfEOr.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-0eAEf9gY.js → _page.server.ts.js-BknW8CoP.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-COZ-0Oqo.js → _page.server.ts.js-FcsedjYb.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-BewL0sIN.js → _page.server.ts.js-NxhxpluO.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-BnCRyETa.js → _page.server.ts.js-D0vCnVfw.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-D5_3UMoa.js → _page.server.ts.js-8pe9nMCl.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-jVFavtAR.js → _page.server.ts.js-D5ACh022.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-BZZjxm-x.js → _page.server.ts.js-BKpNXqUB.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-ByYW-gv7.js → _page.server.ts.js-DKtUeDFH.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-BDnIvRvv.js → _page.server.ts.js-CAfpJ8z4.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-D--AVAN1.js → _page.server.ts.js-DhvAOslS.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-Bh8glo5J.js → _page.server.ts.js-BbR8eGg8.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-CdD2bSZT.js → _page.server.ts.js-CFi9Cpz4.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-D-i30dSs.js → _page.server.ts.js-CGyBG4Yp.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-DvxWUFjz.js → _page.server.ts.js-Bh0E2kwq.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-1e73Wyr0.js → _page.server.ts.js-DcSZoBEC.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-BePUsUZP.js → _page.server.ts.js-v3Tp8x_0.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-jRF6Ywzb.js → _page.server.ts.js-BnpgnteD.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-DugL5l6V.js → _page.server.ts.js-DQfv8ZWG.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-BiA9elO2.js → _page.server.ts.js-CvG2Lr9C.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-C2g0PwaJ.js → _page.server.ts.js-_ivyEUli.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-BDtV-JJy.js → _page.server.ts.js-CSJ4X_eg.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-BbZ21xiD.js → _page.server.ts.js-CUc80zxD.js} +2 -2
- package/build/server/chunks/{handler-C9BTW4CD.js → handler-CBnQILkF.js} +3 -3
- package/build/server/chunks/{index.js-pXGRX2i2.js → index.js-8K34DF7Q.js} +2 -2
- package/build/server/chunks/{manifest.js-CJa1L_3F.js → manifest.js-DqAt-2-E.js} +87 -87
- package/build/server/chunks/nodes/{0.js-C6oZQB5s.js → 0.js-B_9UrGRh.js} +6 -6
- package/build/server/chunks/nodes/{1.js-Cttr3TG9.js → 1.js-DHSqapc6.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CB68zmyq.js → 10.js-Cw8UPtK2.js} +2 -2
- package/build/server/chunks/nodes/{11.js-CebGVYzq.js → 11.js-BIyDysEr.js} +6 -6
- package/build/server/chunks/nodes/{12.js-D2y8h8be.js → 12.js-ClZNXjgF.js} +7 -7
- package/build/server/chunks/nodes/{13.js-udsCT8sc.js → 13.js-B8qskPtO.js} +7 -7
- package/build/server/chunks/nodes/{14.js-LSLFIS3R.js → 14.js-DRbS2pR2.js} +8 -8
- package/build/server/chunks/nodes/{15.js-DwkMtPw0.js → 15.js-EWY83mDS.js} +7 -7
- package/build/server/chunks/nodes/{16.js-D6ljBLvA.js → 16.js-Cm0oYApC.js} +6 -6
- package/build/server/chunks/nodes/{17.js-CLW6wG6e.js → 17.js-Cu5a2UaQ.js} +2 -2
- package/build/server/chunks/nodes/{19.js-Do3gZhOd.js → 19.js-B7TKyMV0.js} +6 -6
- package/build/server/chunks/nodes/{2.js-Bg6BRLgk.js → 2.js-DltTHZOL.js} +6 -6
- package/build/server/chunks/nodes/{20.js-D6ikY3Qe.js → 20.js-CwLFSrxO.js} +6 -6
- package/build/server/chunks/nodes/{21.js-DG7qeWyl.js → 21.js-D_0U5UVP.js} +6 -6
- package/build/server/chunks/nodes/{22.js-kAdDBEK4.js → 22.js-C2r9JmW7.js} +6 -6
- package/build/server/chunks/nodes/{23.js-CgwizXkn.js → 23.js-h4YwJvrO.js} +7 -7
- package/build/server/chunks/nodes/{24.js-LvCCKbXs.js → 24.js-BciJ1KTf.js} +4 -4
- package/build/server/chunks/nodes/{25.js-DD6hUVsN.js → 25.js-ZCknzNaV.js} +7 -7
- package/build/server/chunks/nodes/{26.js-WwI1VHcM.js → 26.js-BUolTInv.js} +7 -7
- package/build/server/chunks/nodes/{27.js-Ciywgqr7.js → 27.js-DcvlJkEN.js} +6 -6
- package/build/server/chunks/nodes/{28.js-CDVsbZwJ.js → 28.js-DPp6-E4I.js} +6 -6
- package/build/server/chunks/nodes/{3.js-Bk1K3VSg.js → 3.js-CLE5bCBt.js} +6 -6
- package/build/server/chunks/nodes/{4.js-DR53ln0s.js → 4.js-BXXDgWZn.js} +6 -6
- package/build/server/chunks/nodes/{5.js-Bnpq5DqQ.js → 5.js-BtthxHsw.js} +5 -5
- package/build/server/chunks/nodes/{6.js-sO4LxGqG.js → 6.js-C3hPPfLf.js} +6 -6
- package/build/server/chunks/nodes/{7.js-CjmrTr_m.js → 7.js-v18x97qv.js} +6 -6
- package/build/server/chunks/nodes/{8.js-CY5LlZct.js → 8.js-Csojentz.js} +6 -6
- package/build/server/chunks/nodes/{9.js-VSnIai5w.js → 9.js-3NVn9Z4u.js} +2 -2
- package/dist/cli.js +33 -18
- package/dist/wh-vault.js +1 -1
- package/package.json +1 -1
- package/skills/manage-wheelhouse/references/operations.md +28 -28
- package/build/client/_app/immutable/chunks/79yuhTwS.js.br +0 -0
- package/build/client/_app/immutable/chunks/79yuhTwS.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B1zE3zKP.js.br +0 -0
- package/build/client/_app/immutable/chunks/B1zE3zKP.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B3KHKydy.js.br +0 -0
- package/build/client/_app/immutable/chunks/B3KHKydy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BPjwAHMu.js.br +0 -0
- package/build/client/_app/immutable/chunks/BPjwAHMu.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BXiSaVju.js.br +0 -0
- package/build/client/_app/immutable/chunks/BXiSaVju.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BosdQIFt.js.br +0 -0
- package/build/client/_app/immutable/chunks/BosdQIFt.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CDSHscp6.js.br +0 -3
- package/build/client/_app/immutable/chunks/CDSHscp6.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CI19kiwT.js.br +0 -0
- package/build/client/_app/immutable/chunks/CI19kiwT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CKE9neHp.js.br +0 -0
- package/build/client/_app/immutable/chunks/CKE9neHp.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CLJu9cY5.js +0 -2
- package/build/client/_app/immutable/chunks/CLJu9cY5.js.br +0 -0
- package/build/client/_app/immutable/chunks/CLJu9cY5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSU604UC.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSU604UC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CgZovtjz.js.br +0 -0
- package/build/client/_app/immutable/chunks/CgZovtjz.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClYd4imU.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClYd4imU.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CsmF6Hwj.js.br +0 -0
- package/build/client/_app/immutable/chunks/CsmF6Hwj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cwo48ib8.js +0 -1
- package/build/client/_app/immutable/chunks/Cwo48ib8.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cwo48ib8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D8J1M-4m.js.br +0 -0
- package/build/client/_app/immutable/chunks/D8J1M-4m.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DFrn6Xyh.js.br +0 -0
- package/build/client/_app/immutable/chunks/DFrn6Xyh.js.gz +0 -0
- package/build/client/_app/immutable/chunks/fhAu_Obx.js.br +0 -0
- package/build/client/_app/immutable/chunks/fhAu_Obx.js.gz +0 -0
- package/build/client/_app/immutable/chunks/qmyjnG6s.js.br +0 -0
- package/build/client/_app/immutable/chunks/qmyjnG6s.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xHBeYlGm.js.br +0 -0
- package/build/client/_app/immutable/chunks/xHBeYlGm.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.DwV2pwLU.js.br +0 -0
- package/build/client/_app/immutable/entry/app.DwV2pwLU.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CAfmMhjm.js +0 -1
- package/build/client/_app/immutable/entry/start.CAfmMhjm.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CAfmMhjm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.DF8hnsli.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DF8hnsli.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.B5FnFSGX.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.B5FnFSGX.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.COzSUd5H.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.COzSUd5H.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.hxSy1hC3.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.hxSy1hC3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.C7_etTt9.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.C7_etTt9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.DmZBXkEn.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DmZBXkEn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.B2FfmJwY.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.B2FfmJwY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.DOXGz5UB.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.DOXGz5UB.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.9Kdcqd35.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.9Kdcqd35.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.rjXh_9jf.js.br +0 -0
- package/build/client/_app/immutable/nodes/17.rjXh_9jf.js.gz +0 -0
- package/build/client/_app/immutable/nodes/19.BDL7z_Qb.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BDL7z_Qb.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.BCbkmPbx.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.BCbkmPbx.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.CmA-uI_h.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.CmA-uI_h.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.DXJrG-NW.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.DXJrG-NW.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.D1PSb-pN.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.D1PSb-pN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.DsgvXr3A.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DsgvXr3A.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.DYbfQRKi.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.DYbfQRKi.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.DchwdBic.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.DchwdBic.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.DGQvgO-w.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.DGQvgO-w.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.C-Ubf5oN.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.C-Ubf5oN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.BZFHR-pC.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BZFHR-pC.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.CAiVTgL3.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CAiVTgL3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.Bpt4zq5B.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.Bpt4zq5B.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.DqfjvXPm.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.DqfjvXPm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CCshJNeL.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CCshJNeL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.DAgz6-ct.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.DAgz6-ct.js.gz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as _e,r as me,p as K}from"./BAOiF0in.js";import{I as ze,t as Wt}from"./xH4qmLqM.js";import{p as et}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as _e,r as me,p as K}from"./BAOiF0in.js";import{I as ze,t as Wt}from"./xH4qmLqM.js";import{p as et}from"./_8osrypQ.js";import{a as Ft,o as Et}from"./RYq3318d.js";import{k as Kt,A as Ut,m as A,q as it,g as t,v as w,l as lt,p as Fe,u as We,h as d,s as v,r as l,t as P,a as f,b as Ke,i as b,aB as Bt,o as U,d as q,j as Be,f as De,c as m,y as N,n as fe,bF as Mt,z as Yt,G as gt,x as Dt,aC as Gt}from"./BuRWgnCz.js";import{i as z}from"./BDpRITyb.js";import{a as Pe,s as R,f as Jt,d as ut,l as Vt,e as nt,i as Xt,r as Qt,b as Zt}from"./Cwb6d3g_.js";import{b as Ge}from"./BWRIDih-.js";import{z as ea}from"./DJNADPa5.js";import{a as Pt,f as ta,s as aa,P as ra}from"./BQPyzYAS.js";import{c as na}from"./D8F9xgmh.js";import{p as st}from"./fuBLR9dZ.js";import{k as sa,X as Ye}from"./rS7QE60d.js";import{R as At}from"./nW7-TN7t.js";import{E as Lt}from"./IuxiJfHx.js";import{h as ia,m as oa}from"./CFTDQcgN.js";import{a as Rt}from"./BMFk7aZ6.js";import{S as la}from"./BXN538J3.js";import{c as Nt}from"./DYbDyf3M.js";import{M as pt}from"./DxdQiNse.js";import{A as da}from"./C0iYpbLa.js";import{C as ca}from"./C6T16bV1.js";import{C as ua}from"./cmRB1an4.js";import{P as xt}from"./DNc9cRsu.js";import{s as va,a as bt}from"./BT_DAfvO.js";class mt{#e=new WeakMap;#t;#r;static entries=new WeakMap;constructor(e){this.#r=e}observe(e,a){var r=this.#e.get(e)||new Set;return r.add(a),this.#e.set(e,r),this.#s().observe(e,this.#r),()=>{var s=this.#e.get(e);s.delete(a),s.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#s(){return this.#t??(this.#t=new ResizeObserver(e=>{for(var a of e){mt.entries.set(a.target,a);for(var r of this.#e.get(a.target)||[])r(a)}}))}}var ha=new mt({box:"border-box"});function wt(n,e,a){var r=ha.observe(n,()=>a(n[e]));Kt(()=>(Ut(()=>a(n[e])),r))}var pa=new Set(["$$slots","$$events","$$legacy"]);function In(n,e){let a=me(e,pa);const r={name:"compass",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var fa=new Set(["$$slots","$$events","$$legacy"]);function vt(n,e){let a=me(e,fa);const r={name:"crosshair",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ma=new Set(["$$slots","$$events","$$legacy"]);function _t(n,e){let a=me(e,ma);const r={name:"maximize-2",size:24,node:[["path",{d:"M15 3h6v6"}],["path",{d:"m21 3-7 7"}],["path",{d:"m3 21 7-7"}],["path",{d:"M9 21H3v-6"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ga=new Set(["$$slots","$$events","$$legacy"]);function xa(n,e){let a=me(e,ga);const r={name:"mic",size:24,node:[["path",{d:"M12 19v3"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ba=new Set(["$$slots","$$events","$$legacy"]);function yt(n,e){let a=me(e,ba);const r={name:"monitor-off",size:24,node:[["path",{d:"M12 17v4"}],["path",{d:"M17 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 1.184-1.826"}],["path",{d:"m2 2 20 20"}],["path",{d:"M8 21h8"}],["path",{d:"M8.656 3H20a2 2 0 0 1 2 2v10a2 2 0 0 1-.293 1.042"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var wa=new Set(["$$slots","$$events","$$legacy"]);function kt(n,e){let a=me(e,wa);const r={name:"monitor-play",size:24,node:[["path",{d:"M15.033 9.44a.647.647 0 0 1 0 1.12l-4.065 2.352a.645.645 0 0 1-.968-.56V7.648a.645.645 0 0 1 .967-.56z"}],["path",{d:"M12 17v4"}],["path",{d:"M8 21h8"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var _a=new Set(["$$slots","$$events","$$legacy"]);function ya(n,e){let a=me(e,_a);const r={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var ka=new Set(["$$slots","$$events","$$legacy"]);function za(n,e){let a=me(e,ka);const r={name:"mouse-pointer-click",size:24,node:[["path",{d:"M14 4.1 12 6"}],["path",{d:"m5.1 8-2.9-.8"}],["path",{d:"m6 12-1.9 2"}],["path",{d:"M7.2 2.2 8 5.1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Sa=new Set(["$$slots","$$events","$$legacy"]);function $a(n,e){let a=me(e,Sa);const r={name:"panel-right-close",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}],["path",{d:"M15 3v18"}],["path",{d:"m8 9 3 3-3 3"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ta=new Set(["$$slots","$$events","$$legacy"]);function Ca(n,e){let a=me(e,Ta);const r={name:"send",size:24,node:[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z"}],["path",{d:"m21.854 2.147-10.94 10.939"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Ea=new Set(["$$slots","$$events","$$legacy"]);function Ma(n,e){let a=me(e,Ea);const r={name:"smartphone",size:24,node:[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2"}],["path",{d:"M12 18h.01"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}var Da=new Set(["$$slots","$$events","$$legacy"]);function Pa(n,e){let a=me(e,Da);const r={name:"square",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2"}]]};ze(n,_e(()=>a,{get icon(){return r}}))}const Aa="{url}";function La(n,e,a){const r=e&&Object.hasOwn(n,e)?n[e]:null;return typeof r!="string"?{href:a.url,external:!0}:{href:r.replace(Aa,encodeURIComponent(a.url)),external:!1}}const Hn={review(n,e){const a=et.data?.pullRequestTabs??{};return La(a,n,e)}},Ra=15e3,Ot=n=>`url:${n}`,Na=n=>n.startsWith("url:")?`/api/previews/check?url=${encodeURIComponent(n.slice(4))}`:`/api/tasks/${encodeURIComponent(n)}/preview`,Oa=5e3;class Ia{#e=A(it({}));get checks(){return t(this.#e)}set checks(e){w(this.#e,e,!0)}#t=A(it({}));get failed(){return t(this.#t)}set failed(e){w(this.#t,e,!0)}watching=new Map;running=new Map;unlisten=null;stopped(e){return this.checks[e]?.state==="down"}watch(e){const a=this.watching.get(e);a?a.count++:(this.watching.set(e,{count:1,timer:null}),this.refresh(e)),this.listen();let r=!1;return()=>{if(r)return;r=!0;const s=this.watching.get(e);!s||--s.count>0||(s.timer&&clearTimeout(s.timer),this.watching.delete(e),this.watching.size||(this.unlisten?.(),this.unlisten=null))}}refresh(e){const a=this.running.get(e);if(a)return a;const r=this.load(e).finally(()=>{this.running.delete(e),this.schedule(e)});return this.running.set(e,r),r}clear(){for(const e of this.watching.values())e.timer&&clearTimeout(e.timer);this.watching.clear(),this.unlisten?.(),this.unlisten=null,this.checks={},this.failed={}}async load(e){try{const a=await fetch(Na(e));if(!a.ok)throw new Error(String(a.status));this.checks[e]=await a.json(),this.failed[e]=!1}catch{this.failed[e]=!0}}schedule(e){const a=this.watching.get(e);if(!a)return;a.timer&&clearTimeout(a.timer);const r=this.checks[e]?.state==="live"?Ra:Oa;a.timer=setTimeout(()=>{a.timer=null,document.visibilityState!=="hidden"&&this.refresh(e)},r)}listen(){if(this.unlisten)return;const e=()=>{if(document.visibilityState!=="hidden")for(const a of this.watching.keys())this.refresh(a)};window.addEventListener("focus",e),document.addEventListener("visibilitychange",e),this.unlisten=()=>{window.removeEventListener("focus",e),document.removeEventListener("visibilitychange",e)}}}const Qe=new Ia,It=()=>et.data.reviewSurface??null,zt=500,Ze=n=>n.replace(/\s+/g," ").trim(),Ha=(n,e)=>n.length>e?n.slice(0,e-1).trimEnd()+"…":n;function ht(n){const e=n.y<.3333333333333333?"top":n.y<.6666666666666666?"middle":"bottom",a=n.x<1/3?"left":n.x<2/3?"":"right";return e==="middle"&&!a?"the middle":`the ${e}${a?` ${a}`:""}`}const qa={button:"button",a:"link",input:"box",textarea:"box",select:"menu",img:"picture",h1:"heading",h2:"heading",h3:"heading",h4:"heading",label:"label",li:"item"};function ja(n,e,a){const r=n?.closest('button, a, input, textarea, select, img, h1, h2, h3, h4, label, li, [role="button"]')??n;if(r&&r.tagName!=="HTML"&&r.tagName!=="BODY"){const s=r.tagName.toLowerCase(),o=r.getAttribute("role")==="button"?"button":qa[s]??"part of the page",i=Ha(Ze(r.value||r.getAttribute("aria-label")||r.getAttribute("alt")||r.textContent||""),60);return{kind:"element",label:i?`the “${i}” ${o}`:`a ${o} near ${ht(e)}`,detail:`<${s}>${i?` “${i}”`:""}, near ${ht(e)} of the page`}}return{kind:"spot",label:`a spot near ${ht(e)} of the page`,detail:`${Math.round(e.x*100)}% across and ${Math.round(e.y*100)}% down the part of the page in view (${a.w}×${a.h})`}}const Wa=/^Preview feedback for (\S+) \((.+)\), sent together from the Preview tab \(([^)\n]*)\):$/,Fa=/^Feedback for (\S+) \((.+)\), sent together from the “([^“”\n]+)” plugin \(([a-z][a-z0-9-]*)\)(?:, about (.+))?:$/,Ka="Firstmate: pass these to this task’s worker, the same task (start no new one). You may add notes of your own, marked as yours.",Ua=n=>n.flatMap((e,a)=>[`${a+1}. ${Ze(e.text)}`,...e.points&&Ze(e.points)?[` Points at: ${Ze(e.points)}`]:[]]);function Ba(n,e,a){return[`Preview feedback for ${n.id} (${Ze(n.title)}), sent together from the Preview tab (${e}):`,...Ua(a.map(r=>({text:r.text,points:r.points?.label??null}))),"",Ka].join(`
|
|
2
2
|
`)}function qn(n){const e=n.replace(/\r\n?/g,`
|
|
3
3
|
`).split(`
|
|
4
4
|
`),a=Wa.exec(e[0]??""),r=a?null:Fa.exec(e[0]??""),s=a??r;if(!s)return null;const o=[];for(const i of e.slice(1)){const c=/^\d+\. (.+)$/.exec(i);if(c){o.push({text:c[1],points:null});continue}const u=/^ {3}Points at: (.+)$/.exec(i);u&&o.length&&(o[o.length-1].points=u[1])}return o.length?{taskId:s[1],title:s[2],url:a?a[3]:null,plugin:r?{id:r[4],name:r[3],subject:r[5]??null}:null,items:o}:null}var Ya=m('<button type="button" class="rounded p-1 hover:bg-accent hover:text-foreground max-md:grid max-md:size-11 max-md:place-items-center"><!></button>'),Ga=m('<a target="_blank" rel="noreferrer" class="inline-flex shrink-0 items-center gap-1 rounded px-1 py-0.5 text-sea hover:underline max-md:min-h-11">Open in new tab<!></a>'),Ja=m('<button type="button" class="inline-flex shrink-0 items-center gap-1 rounded px-1.5 py-0.5 font-medium text-foreground hover:bg-accent max-md:min-h-11" data-preview-fullscreen=""><!>Full screen</button>'),Va=m('<div class="flex items-center gap-2 text-xs text-muted-foreground"><span class="min-w-0 flex-1 truncate font-mono"> </span> <!> <!> <!></div>'),Xa=m('<iframe referrerpolicy="no-referrer" loading="lazy"></iframe>'),Qa=m('<button type="button" class="absolute inset-0 cursor-zoom-in" aria-label="Open the preview full size" data-preview-open=""><span class="absolute right-2.5 bottom-2.5 flex items-center gap-1.5 rounded-md border border-hair bg-card/95 px-2 py-1 text-xs font-medium text-foreground opacity-0 shadow-sm transition-opacity group-focus-within:opacity-100 group-hover:opacity-100"><!>Open full size</span></button>'),Za=m("<!> <!>",1),er=m('<button type="button" class="absolute inset-0 cursor-crosshair bg-sea/5 ring-2 ring-sea ring-inset" aria-label="Point at part of the page" data-preview-pointing=""><span class="pointer-events-none absolute top-3 left-1/2 flex -translate-x-1/2 items-center gap-2 rounded-full bg-sea px-3.5 py-1.5 text-sm text-on-accent shadow-lg"><!>Click the part you mean</span></button>'),tr=m('<span class="pointer-events-none absolute size-5 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white bg-sea shadow-md ring-2 ring-sea/40" aria-hidden="true" data-preview-pin=""></span>'),ar=m('<iframe referrerpolicy="no-referrer"></iframe> <!>',1),rr=m('<span class="block text-xs"> </span>'),nr=m('<div class="flex items-start gap-2.5 px-4 py-3 text-muted-foreground" data-preview-notice=""><!> <p class="min-w-0 text-sm"><span> </span> <!></p></div>'),sr=m('<p class="text-sm"> </p>'),ir=m('<!> <p class="mt-2 text-sm font-medium"> </p> <p class="mt-1 text-xs"> </p>',1),or=m('<div class="grid size-full place-items-center p-4 text-center text-muted-foreground" data-preview-notice=""><div><!></div></div>'),lr=m("<div><!> <div><!></div></div>");function dr(n,e){Fe(e,!0);let a=K(e,"taskId",3,null),r=K(e,"url",3,null),s=K(e,"compact",3,!1),o=K(e,"fill",3,!1),i=K(e,"desktop",3,!1),c=K(e,"toolbar",3,!0),u=K(e,"pointing",3,!1),g=K(e,"pin",3,null),C=A(null);function B($){const S=$.currentTarget.getBoundingClientRect(),W=$.clientX-S.left,V=$.clientY-S.top;let F=null;const be=t(Se)?t(ve):1;try{F=t(C)?.contentDocument?.elementFromPoint(W/be,V/be)??null}catch{F=null}const X={x:S.width?W/S.width:0,y:S.height?V/S.height:0};e.onpoint?.(ja(F,X,{w:Math.round(S.width),h:Math.round(S.height)}),X)}const re={w:1280,h:800};let ge=A(0),ee=A(0),I=A(0);const ie=b(()=>a()??Ot(r()??""));We(()=>Qe.watch(t(ie)));const O=b(()=>Qe.checks[t(ie)]??null),ye=b(()=>!!Qe.failed[t(ie)]),j=b(()=>t(O)?.state==="live"),ne=b(()=>t(O)?.url??null),oe=b(()=>t(ne)&&t(O)?Pt.view(t(ne)):null),te=b(()=>t(oe)?ta(t(oe),location.origin):""),ve=b(()=>t(ee)?t(ee)/re.w:0),Se=b(()=>o()&&i()&&t(ve)>0&&t(ve)<1);function Ae(){Bt(ge),Qe.refresh(t(ie))}var Ee={reload:Ae},$e=lr(),xe=d($e);{var Le=$=>{var S=Va(),W=d(S),V=U(W,!0),F=v(W,2);{var be=T=>{var D=Ya(),G=d(D);At(G,{class:"size-3.5"}),l(D),P(()=>{R(D,"aria-label",t(j)?"Reload the preview":"Check the preview again"),R(D,"title",t(j)?"Reload":"Check again")}),N("click",D,Ae),f(T,D)};z(F,T=>{(t(j)||t(O)?.state==="blocked"||t(O)?.state==="down")&&T(be)})}var X=v(F,2);{var ke=T=>{var D=Ga(),G=v(d(D));Lt(G,{class:"size-3.5","aria-hidden":"true"}),l(D),P(()=>R(D,"href",t(oe))),f(T,D)};z(X,T=>{(t(j)||t(O)?.state==="blocked")&&T(ke)})}var Q=v(X,2);{var Y=T=>{var D=Ja(),G=d(D);_t(G,{class:"size-3.5","aria-hidden":"true"}),fe(),l(D),N("click",D,function(...J){e.onfullscreen?.apply(this,J)}),f(T,D)};z(Q,T=>{e.onfullscreen&&t(j)&&T(Y)})}l(S),P(()=>{R(W,"title",t(ne)??void 0),q(V,t(ne)??"Live preview")}),f($,S)};z(xe,$=>{c()&&$(Le)})}var he=v(xe,2),y=d(he);{var L=$=>{var S=Be(),W=De(S);sa(W,()=>`${t(oe)} ${t(ge)}`,V=>{var F=Be(),be=De(F);{var X=Q=>{var Y=Za(),T=De(Y);{var D=E=>{var k=Xa();P(()=>{R(k,"src",t(oe)),R(k,"title",`Live preview of ${t(ne)??""}`),R(k,"sandbox",t(te)),k.inert=!!e.onopen,Pe(k,1,`absolute top-0 left-0 origin-top-left border-0 bg-white ${e.onopen?"pointer-events-none":""}`),ut(k,`width:${re.w}px;height:${re.h}px;transform:scale(${t(ve)??""})`)}),f(E,k)};z(T,E=>{t(ve)&&E(D)})}var G=v(T,2);{var J=E=>{var k=Qa(),se=d(k),Z=d(se);_t(Z,{class:"size-3.5","aria-hidden":"true"}),fe(),l(se),l(k),N("click",k,function(...x){e.onopen?.apply(this,x)}),f(E,k)};z(G,E=>{e.onopen&&E(J)})}f(Q,Y)},ke=Q=>{var Y=ar(),T=De(Y);Ge(T,E=>w(C,E),()=>t(C));var D=v(T,2);{var G=E=>{var k=er(),se=d(k),Z=d(se);za(Z,{class:"size-4","aria-hidden":"true"}),fe(),l(se),l(k),N("click",k,B),f(E,k)},J=E=>{var k=tr();P(()=>ut(k,`left:${g().x*100}%;top:${g().y*100}%`)),f(E,k)};z(D,E=>{u()?E(G):g()&&E(J,1)})}P(()=>{R(T,"src",t(oe)),R(T,"title",`Live preview of ${t(ne)??""}`),R(T,"sandbox",t(te)),Pe(T,1,Jt(t(Se)?"absolute top-0 left-0 origin-top-left border-0 bg-white":"size-full border-0 bg-white")),ut(T,t(Se)?`width:${re.w}px;height:${t(I)/t(ve)}px;transform:scale(${t(ve)})`:void 0)}),f(Q,Y)};z(be,Q=>{s()?Q(X):Q(ke,-1)})}f(V,F)}),f($,S)},le=$=>{const S=b(()=>!t(O)&&!t(ye)),W=b(()=>t(S)?"Checking the preview…":t(ye)?"Could not check the preview":t(O)?.state==="down"?"Preview stopped":t(O)?.state==="blocked"?"Preview cannot be embedded":t(O)?.state==="refused"?"Preview not shown here":"No live preview reported"),V=b(()=>t(S)?"":t(ye)?"Wheelhouse did not answer; it will try again.":t(O)?.state==="blocked"?`${t(O).reason} Open it in a new tab instead.`:t(O)?.reason??"");var F=Be(),be=De(F);{var X=Q=>{var Y=nr(),T=d(Y);{var D=Z=>{yt(Z,{class:"mt-0.5 size-4 shrink-0","aria-hidden":"true"})};z(T,Z=>{t(S)||Z(D)})}var G=v(T,2),J=d(G),E=U(J,!0),k=v(J,2);{var se=Z=>{var x=rr(),_=U(x,!0);P(()=>q(_,t(V))),f(Z,x)};z(k,Z=>{t(V)&&Z(se)})}l(G),l(Y),P(()=>{Pe(J,1,`font-medium ${t(S)?"":"text-foreground"}`),q(E,t(W))}),f(Q,Y)},ke=Q=>{var Y=or(),T=d(Y),D=d(T);{var G=E=>{var k=sr(),se=U(k,!0);P(()=>q(se,t(W))),f(E,k)},J=E=>{var k=ir(),se=De(k);yt(se,{class:"mx-auto size-6","aria-hidden":"true"});var Z=v(se,2),x=U(Z,!0),_=v(Z,2),ce=U(_,!0);P(()=>{q(x,t(W)),q(ce,t(V))}),f(E,k)};z(D,E=>{t(S)?E(G):E(J,-1)})}l(T),l(Y),f(Q,Y)};z(be,Q=>{s()?Q(X):Q(ke,-1)})}f($,F)};z(y,$=>{t(j)&&t(oe)?$(L):$(le,-1)})}return l(he),l($e),P(()=>{Pe($e,1,`min-w-0 ${o()?"flex h-full flex-col":""}`),R($e,"data-live-preview",t(O)?.state??"checking"),Pe(he,1,`group relative w-full overflow-hidden bg-muted/40 ${c()?"mt-1.5 rounded-lg border":""} ${s()?t(j)?"aspect-[16/10]":"":o()?"min-h-0 flex-1":t(j)?"h-[70vh] min-h-80":"h-40"}`)}),wt(he,"clientWidth",$=>w(ee,$)),wt(he,"clientHeight",$=>w(I,$)),f(n,$e),Ke(Ee)}lt(["click"]);const St="wheelhouse-preview-helper",Ht=()=>({said:[],list:[],asking:!1,error:null,sent:null}),cr=Object.freeze(Ht()),Xe=()=>crypto.randomUUID();class ur{#e=A(it({}));get byTask(){return t(this.#e)}set byTask(e){w(this.#e,e,!0)}loaded=!1;load(){if(!this.loaded){this.loaded=!0;try{const e=JSON.parse(localStorage.getItem(St)??"{}");if(e&&typeof e=="object"){for(const a of Object.values(e))a.asking=!1;this.byTask=e}}catch{this.byTask={}}}}save(){try{localStorage.setItem(St,JSON.stringify(this.byTask))}catch{}}view(e){return this.byTask[e]??cr}of(e){return this.load(),this.byTask[e]||(this.byTask[e]=Ht()),this.byTask[e]}async ask(e,a,r,s){const o=this.of(e),i=a.trim();if(!i&&!r||o.asking)return;o.said.push({id:Xe(),who:"captain",text:i||"What about this?",points:r}),o.asking=!0,o.error=null,this.save();const c=o.said.filter(u=>!u.notice).map(u=>({who:u.who,text:u.text,points:u.points??null}));try{const u=await fetch(`/api/tasks/${encodeURIComponent(e)}/preview/helper`,{method:"POST",headers:{"content-type":"application/json",[la]:s},body:JSON.stringify({turns:c,list:o.list.map(C=>C.text)})}),g=await u.json().catch(()=>null);!u.ok||!g?.reply?o.error=g?.message??`The helper could not answer (${u.status}).`:o.said.push({id:Xe(),who:"helper",text:g.reply,suggest:g.suggest.map(C=>({text:C,added:!1}))})}catch{o.error="Wheelhouse could not be reached. Try again."}finally{o.asking=!1,this.save()}}accept(e,a,r){const s=this.of(e),o=s.said.findIndex(u=>u.id===a),i=s.said[o]?.suggest?.[r];if(!i||i.added)return;i.added=!0;const c=s.said.slice(0,o).reverse().find(u=>u.who==="captain");s.list.push({id:Xe(),text:i.text,points:c?.points??null}),s.sent=null,this.save()}addOwn(e,a,r=null){const s=a.trim().slice(0,zt);if(!s)return;const o=this.of(e);o.list.push({id:Xe(),text:s,points:r}),o.sent=null,this.save()}edit(e,a,r){const s=this.of(e).list.find(o=>o.id===a);s&&(s.text=r.slice(0,zt),this.save())}remove(e,a){const r=this.of(e),s=r.list.find(o=>o.id===a);r.list=r.list.filter(o=>o.id!==a);for(const o of r.said)for(const i of o.suggest??[])s&&i.text===s.text&&(i.added=!1);this.save()}async send(e,a,r){const s=this.of(e.id),o=s.list.filter(g=>g.text.trim());if(!o.length)return!1;s.error=null;const i=await aa(Ba(e,a,o),r,e.id);if(!i.ok)return s.error=i.error,this.save(),!1;s.sent={at:new Date().toISOString(),count:o.length};const c=e.id.lastIndexOf("@"),u=c>0?`second mate ${e.id.slice(c+1)}`:"Firstmate";return s.list=[],s.said.push({id:Xe(),who:"helper",notice:!0,text:`Sent to ${u}: ${o.length} ${o.length===1?"note":"notes"}, which it passes to this task. Keep going if you spot more; they make a new list.`}),this.save(),!0}clear(e){const a=this.of(e);a.said=[],a.error=null,this.save()}}const Oe=new ur;var vr=new Set(["$$slots","$$events","$$legacy","ref","value","class","data-slot"]),hr=m("<textarea></textarea>");function pr(n,e){Fe(e,!0);let a=K(e,"ref",15,null),r=K(e,"value",15),s=K(e,"data-slot",3,"textarea"),o=me(e,vr);var i=hr();Mt(i),Vt(i,c=>({"data-slot":s(),class:c,...o}),[()=>Nt("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-2.5 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",e.class)]),Ge(i,c=>a(c),()=>a()),Rt(i,r),f(n,i),Ke()}const fr={unsupported:"This browser cannot turn speech into text. Chrome and Edge can; you can still type.",blocked:"The microphone is blocked for Wheelhouse. Allow it from the icon in the address bar, then try again.","no-microphone":"No microphone was found. Connect one, then try again.","no-speech":"Nothing was heard. Try again a little closer to the microphone.",network:"The browser’s speech service could not be reached. Check the connection and try again.",failed:"Dictation stopped unexpectedly. Try again, or type instead."};function $t(){if(typeof window>"u")return null;const n=window;return n.SpeechRecognition??n.webkitSpeechRecognition??null}const mr={"not-allowed":"blocked","service-not-allowed":"blocked","audio-capture":"no-microphone","no-speech":"no-speech",network:"network","language-not-supported":"unsupported"},ot=n=>n.trim().split(/\s+/).filter(Boolean),gr=(n,e)=>n.toLowerCase().replace(/[^\p{L}\p{N}]/gu,"")===e.toLowerCase().replace(/[^\p{L}\p{N}]/gu,""),qt=(n,e)=>e.length<=n.length&&e.every((a,r)=>gr(a,n[r]));function Tt(n,e){const a=ot(n);return!a.length||qt(ot(e),a)?e:/\s$/.test(n)||/^\s/.test(e)?n+e:`${n} ${e}`}function xr(n,e){const a=ot(n),r=ot(e);return!a.length||!qt(r,a)?e:r.slice(a.length).join(" ")}const br={privacyNote:"Dictation uses your browser’s speech service. In Chrome that sends what you say to Google to turn it into text, only while the microphone is on.",supported:()=>$t()!==null,start(n,e){const a=$t();if(!a)return e.problem("unsupported"),e.end(),{stop(){},abort(){}};const r=new a;r.lang=n,r.continuous=!0,r.interimResults=!0,r.onresult=s=>{let o="",i="";for(let c=0;c<s.results.length;c++){const u=s.results[c];u.isFinal?o=Tt(o,u[0].transcript):i=Tt(i,u[0].transcript)}e.text(o,xr(o,i))},r.onerror=s=>{s.error!=="aborted"&&e.problem(mr[s.error]??"failed")},r.onend=()=>e.end();try{r.start()}catch{e.problem("failed"),e.end()}return{stop:()=>r.stop(),abort:()=>r.abort()}}};let wr=br;const ft=()=>wr,_r=2e3;class yr{#e=A(null);get owner(){return t(this.#e)}set owner(e){w(this.#e,e)}#t=A("idle");get phase(){return t(this.#t)}set phase(e){w(this.#t,e,!0)}#r=A(0);get startedAt(){return t(this.#r)}set startedAt(e){w(this.#r,e,!0)}#s=A(null);get problem(){return t(this.#s)}set problem(e){w(this.#s,e,!0)}#n=null;#a=null;#i=null;active(e){return this.owner===e&&this.phase!=="idle"}start(e,a,r=kr()){this.phase!=="idle"&&this.commit();const s=ft();if(this.owner=e,this.problem=null,!s.supported()){this.problem="unsupported";return}this.#a=a,a.begin(),this.phase="listening",this.startedAt=Date.now();let o=null;const i=()=>o===null||this.#n===o;o=s.start(r,{text:(c,u)=>{i()&&this.#a===a&&a.show(...zr(c,u))},problem:c=>{i()&&(this.problem=c)},end:()=>{i()&&this.#a===a&&this.#o("finish")}}),this.#a===a&&(this.#n=o)}stop(){this.phase==="listening"&&(this.phase="stopping",this.#n?.stop(),this.#i=setTimeout(()=>this.#o("finish"),_r))}commit(){this.phase!=="idle"&&this.#o("finish")}cancel(){this.phase!=="idle"&&this.#o("revert")}dismiss(){this.problem=null}#o(e){const a=this.#n,r=this.#a;this.#n=null,this.#a=null,this.#i&&clearTimeout(this.#i),this.#i=null,this.phase="idle",a?.abort(),r?.[e]()}}const ae=new yr;function kr(){return typeof navigator<"u"&&navigator.language?navigator.language:"en-US"}function zr(n,e){const a=n.replace(/\s+/g," ").trim(),r=e.replace(/\s+/g," ").trim();return[a,a&&r?` ${r}`:r]}const jt=n=>n&&!/\s$/.test(n)?" ":"",Sr=n=>/^[\p{L}\p{N}]/u.test(n)?" ":"";function $r(n){let e="",a="",r="",s=!1;const o=(i,c)=>{n.value=i;try{n.setSelectionRange(c,c)}catch{}n.dispatchEvent(new Event("input",{bubbles:!0}))};return{begin(){e=n.value;const i=n.selectionStart??e.length,c=n.selectionEnd??i;a=e.slice(0,i),r=e.slice(c),s=!1},show(i,c){const u=i+c;if(!u)return;const g=a+jt(a)+u;o(g+Sr(r)+r,g.length),s=!0},finish(){},revert(){s&&o(e,a.length),s=!1}}}function jn(n,e){let a=null,r=null,s="";const o=i=>{const c=document.createRange();c.setStartAfter(i),c.collapse(!0);const u=window.getSelection();u?.removeAllRanges(),u?.addRange(c)};return{begin(){const i=window.getSelection();let c;i?.rangeCount&&n.contains(i.getRangeAt(0).startContainer)?(c=i.getRangeAt(0),r=c.extractContents()):(c=document.createRange(),c.selectNodeContents(n),c.collapse(!1),r=null);const u=document.createRange();u.setStart(n,0),u.setEnd(c.startContainer,c.startOffset),s=jt(u.toString().replace(/\u00a0/g," ")),a=document.createElement("span"),a.dataset.dictation="",c.insertNode(a)},show(i,c){if(!a)return;const u=document.createTextNode(i||c?s+i:""),g=document.createElement("span");g.className="dictation-forming",g.textContent=c,a.replaceChildren(u,...c?[g]:[]),e()},finish(){if(!a)return;const i=a.textContent??"";if(i){const c=document.createTextNode(i);a.replaceWith(c),(n.contains(document.activeElement)||document.activeElement===n)&&o(c)}else a.replaceWith(r??"");a=null,r=null,e()},revert(){a?.replaceWith(r??""),a=null,r=null,e()}}}const Tr=n=>n.code==="Space"&&n.shiftKey&&(n.metaKey||n.ctrlKey)&&!n.altKey,Cr=450;function Er(n,e,a){let r=0;const s=i=>{if(Tr(i)){if(i.preventDefault(),i.repeat)return;ae.active(e)?(r=0,ae.stop()):(r=Date.now(),a());return}ae.active(e)&&(i.key==="Escape"?(i.preventDefault(),i.stopPropagation(),r=0,ae.cancel()):["Shift","Control","Meta","Alt","CapsLock"].includes(i.key)||(r=0,ae.commit()))},o=i=>{if(!r||!(i.code==="Space"||["Shift","Meta","Control"].includes(i.key)))return;const c=Date.now()-r;r=0,c>=Cr&&ae.active(e)&&ae.stop()};return n.addEventListener("keydown",s),n.addEventListener("keyup",o),()=>{n.removeEventListener("keydown",s),n.removeEventListener("keyup",o)}}var Mr=m('<span class="tabular text-xs text-muted-foreground svelte-1uxx7q9" data-dictation-time=""> </span>'),Dr=m('<div class="absolute right-0 bottom-full z-30 mb-2 w-72 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="dialog" aria-label="Before you dictate" data-dictation-note=""><p class="svelte-1uxx7q9"> </p> <p class="mt-1.5 text-muted-foreground svelte-1uxx7q9">Words appear in the box for you to check; nothing is sent until you send it.</p> <div class="mt-2.5 flex justify-end gap-2 svelte-1uxx7q9"><button type="button" class="rounded-md px-2 py-1 text-muted-foreground hover:bg-muted hover:text-foreground svelte-1uxx7q9">Not now</button> <button type="button" class="rounded-md bg-primary px-2.5 py-1 font-medium text-primary-foreground svelte-1uxx7q9">Start dictating</button></div></div>'),Pr=m('<div class="absolute right-0 bottom-full z-30 mb-2 flex w-72 items-start gap-2 rounded-md border bg-popover p-3 text-left text-xs leading-relaxed text-popover-foreground shadow-md svelte-1uxx7q9" role="alert" data-dictation-problem=""><p class="min-w-0 flex-1 svelte-1uxx7q9"> </p> <button type="button" class="-m-1 rounded-sm p-1 text-muted-foreground hover:text-foreground svelte-1uxx7q9" aria-label="Dismiss"><!></button></div>'),Ar=m('<span class="relative inline-flex shrink-0 items-center gap-1.5 svelte-1uxx7q9"><!> <button type="button"><!></button> <span class="sr-only svelte-1uxx7q9" aria-live="polite"> </span> <!></span>');function Lr(n,e){Fe(e,!0);let a=K(e,"label",3,"Dictate"),r=K(e,"size",3,"md"),s=K(e,"disabled",3,!1),o=K(e,"listening",15,!1);const i={};Yt(()=>{o(ae.active(i))});const c=b(()=>o()&&ae.phase==="stopping"),u=b(()=>ae.owner===i?ae.problem:null);let g=A(!1),C=A(it(Date.now())),B=A("Ctrl+Shift+Space");const re="wheelhouse.voice.noted";let ge=!1;function ee(){if(ge)return!0;try{return localStorage.getItem(re)==="1"}catch{return!1}}function I(){if(s())return;const y=ft();if(y.supported()&&y.privacyNote&&!ee()){w(g,!0);return}ae.start(i,e.target()),e.field?.focus()}function ie(){ge=!0;try{localStorage.setItem(re,"1")}catch{}w(g,!1),I()}function O(){o()?ae.stop():t(g)?w(g,!1):I()}const ye=b(()=>{const y=Math.max(0,Math.floor((t(C)-ae.startedAt)/1e3));return`${Math.floor(y/60)}:${String(y%60).padStart(2,"0")}`});We(()=>{/Mac|iPhone|iPad/.test(navigator.platform)&&w(B,"⌘⇧Space")}),We(()=>{if(!o())return;w(C,Date.now(),!0);const y=setInterval(()=>w(C,Date.now(),!0),250);return()=>clearInterval(y)}),We(()=>{if(e.field)return Er(e.field,i,I)}),We(()=>{if(!o()&&!t(g))return;const y=L=>{L.key!=="Escape"||L.defaultPrevented||(L.preventDefault(),o()&&ae.cancel(),w(g,!1))};return window.addEventListener("keydown",y),()=>window.removeEventListener("keydown",y)}),Ft(()=>{ae.active(i)&&ae.commit()});var j=Ar(),ne=d(j);{var oe=y=>{var L=Mr(),le=U(L,!0);P(()=>q(le,t(c)?"Finishing…":t(ye))),f(y,L)};z(ne,y=>{o()&&y(oe)})}var te=v(ne,2),ve=d(te);{var Se=y=>{{let L=b(()=>r()==="md"?"size-3.5 fill-current":"size-3 fill-current");Pa(y,{get class(){return t(L)}})}},Ae=y=>{{let L=b(()=>r()==="md"?"size-4.5":"size-4");xa(y,{get class(){return t(L)}})}};z(ve,y=>{o()?y(Se):y(Ae,-1)})}l(te);var Ee=v(te,2),$e=U(Ee,!0),xe=v(Ee,2);{var Le=y=>{var L=Dr(),le=d(L),$=U(le,!0),S=v(le,4),W=d(S),V=v(W,2);l(S),l(L),P(F=>q($,F),[()=>ft().privacyNote]),N("click",W,()=>w(g,!1)),N("click",V,ie),f(y,L)},he=y=>{var L=Pr(),le=d(L),$=U(le,!0),S=v(le,2),W=d(S);Ye(W,{class:"size-3.5"}),l(S),l(L),P(()=>q($,fr[t(u)])),N("click",S,()=>ae.dismiss()),f(y,L)};z(xe,y=>{t(g)?y(Le):t(u)&&y(he,1)})}l(j),P(()=>{R(te,"aria-label",o()?"Stop dictating":a()),R(te,"aria-pressed",o()),R(te,"title",o()?"Stop dictating · Esc cancels":`${a()} (${t(B)}; hold for push-to-talk)`),te.disabled=s(),R(te,"data-dictating",o()?"":void 0),Pe(te,1,`mic flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors disabled:cursor-not-allowed disabled:opacity-30 ${r()==="md"?"size-9 max-md:size-11":`size-7 ${st.current?"touch-target":""}`} ${o()?"bg-danger/10 text-danger":"text-muted-foreground hover:bg-muted hover:text-foreground"}`,"svelte-1uxx7q9"),q($e,o()?"Listening":"")}),N("mousedown",te,y=>y.preventDefault()),N("click",te,O),f(n,j),Ke()}lt(["mousedown","click"]);var Rr=new Set(["$$slots","$$events","$$legacy","value","class"]),Nr=m('<div class="relative w-full min-w-0"><!> <div class="absolute right-1.5 bottom-1.5"><!></div></div>');function Or(n,e){Fe(e,!0);let a=K(e,"value",15),r=me(e,Rr),s=A(null),o=A(!1);var i=Nr(),c=d(i);{let C=b(()=>Nt(e.class,t(o)?"pr-24":"pr-10"));pr(c,_e({get class(){return t(C)}},()=>r,{get ref(){return t(s)},set ref(B){w(s,B,!0)},get value(){return a()},set value(B){a(B)}}))}var u=v(c,2),g=d(u);{let C=b(()=>!!e.disabled);Lr(g,{get field(){return t(s)},target:()=>$r(t(s)),size:"sm",get disabled(){return t(C)},get listening(){return t(o)},set listening(B){w(o,B,!0)}})}l(u),l(i),f(n,i),Ke()}var Ir=m('<span class="inline-flex max-w-[85%] items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea"><!><span class="truncate"> </span></span>'),Hr=m('<li class="flex flex-col items-end gap-1" data-said="captain"><!> <p class="max-w-[85%] rounded-xl rounded-br-sm border border-[var(--bubble-captain-border)] bg-[var(--bubble-captain)] px-3 py-2 text-sm leading-relaxed whitespace-pre-wrap"> </p></li>'),qr=m('<a href="/" class="text-xs text-sea hover:underline">See it in the chat</a>'),jr=m('<span class="inline-flex items-center gap-1 text-xs text-success"><!>On your list</span>'),Wr=m('<button class="inline-flex cursor-pointer items-center gap-1 rounded-md bg-sea px-2.5 py-1 text-xs font-medium text-on-accent hover:bg-sea/90" data-add-to-list=""><!>Add to the list</button>'),Fr=m('<div class="mt-2 rounded-md border bg-card px-3 py-2" data-suggestion=""><p class="text-sm leading-snug"> </p> <div class="mt-1.5"><!></div></div>'),Kr=m('<li class="flex gap-2.5" data-said="helper"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <div class="min-w-0 flex-1"><div></div> <!> <!></div></li>'),Ur=m('<li class="flex gap-1 py-1 pl-9" role="status" aria-label="The helper is answering"><span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.3s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground [animation-delay:-0.15s]"></span> <span class="size-1.5 animate-bounce rounded-full bg-muted-foreground"></span></li>'),Br=m('<li class="text-sm text-danger" role="alert"> </li>'),Yr=m('<div class="flex items-center gap-1.5 px-2.5 pt-2"><span class="inline-flex min-w-0 items-center gap-1 rounded-md bg-sea/10 px-2 py-0.5 text-xs text-sea" data-attached=""><!><span class="truncate"> </span></span> <button class="flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground hover:bg-muted" aria-label="Not about this part"><!></button></div>'),Gr=m('<span class="text-xs text-muted-foreground">· not sent yet</span>'),Jr=m('<p class="text-xs text-muted-foreground"> </p>'),Vr=m('<li class="group flex items-start gap-2 rounded-md border bg-background px-2 py-1"><span class="mt-0.5 w-4 shrink-0 text-right text-xs text-muted-foreground tabular-nums"> </span> <div class="min-w-0 flex-1"><textarea rows="1" maxlength="500" class="no-scrollbar block field-sizing-content w-full resize-none rounded bg-transparent text-sm leading-snug outline-none focus:bg-accent/40 max-md:text-base"></textarea> <!></div> <button class="flex size-6 shrink-0 cursor-pointer items-center justify-center rounded text-muted-foreground opacity-60 group-hover:opacity-100 hover:bg-muted hover:text-foreground max-md:size-11" aria-label="Remove from the list"><!></button></li>'),Xr=m('<ol class="flex flex-col gap-1.5"></ol>'),Qr=m('<p class="text-xs text-muted-foreground">Empty so far. Add what the helper suggests, or write your own below.</p>'),Zr=m('<div class="no-scrollbar max-h-48 overflow-y-auto px-4"><!> <form class="mt-1.5 flex items-center gap-1"><!> <input maxlength="500" placeholder="Add your own" aria-label="Add your own feedback" class="h-7 min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground max-md:h-11 max-md:text-base"/></form></div>'),en=m(`<section class="flex min-h-0 flex-col rounded-lg border bg-panel" aria-label="Talk about this preview" data-preview-helper=""><header class="border-b px-4 py-3"><h2 class="flex items-center gap-2 text-base"><!>Talk it through</h2> <p class="mt-0.5 text-xs text-muted-foreground">A helper that sees only this preview. Nothing goes to Firstmate until you send.</p></header> <div class="no-scrollbar min-h-40 flex-1 overflow-y-auto px-4 py-4"><ol class="flex flex-col gap-4"><li class="flex gap-2.5"><span class="mt-0.5 grid size-6 shrink-0 place-items-center rounded-full border border-brass bg-card text-sea" aria-hidden="true"><!></span> <p class="min-w-0 flex-1 text-sm leading-relaxed">I can see this preview, its screenshots, the task’s instructions and what the worker has
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{aG as Ce,p as O,j as W,f as m,a as n,b as R,g as E,h as k,aa as Z,r as P,i as K,c as h,s,n as oe,w as Be,o as b,t as C,d as w}from"./BuRWgnCz.js";import{s as M}from"./B2RyWxmQ.js";import{i as D}from"./BDpRITyb.js";import{c as I}from"./DLuhTA05.js";import{p as S,r as T,s as A}from"./BAOiF0in.js";import{B as ge}from"./C5BN6RHR.js";import{c as N}from"./DYbDyf3M.js";import{c as ze,d as Ie,b as ue,m as Ae,P as We,e as Oe,a as me,f as Re,g as Te,h as Ee}from"./DVEiwmFn.js";import{X as Fe}from"./rS7QE60d.js";import{l as de,s as Ue,e as qe}from"./Cwb6d3g_.js";import{b as _e}from"./BWRIDih-.js";import{h as Ge,S as Ke}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{aG as Ce,p as O,j as W,f as m,a as n,b as R,g as E,h as k,aa as Z,r as P,i as K,c as h,s,n as oe,w as Be,o as b,t as C,d as w}from"./BuRWgnCz.js";import{s as M}from"./B2RyWxmQ.js";import{i as D}from"./BDpRITyb.js";import{c as I}from"./DLuhTA05.js";import{p as S,r as T,s as A}from"./BAOiF0in.js";import{B as ge}from"./C5BN6RHR.js";import{c as N}from"./DYbDyf3M.js";import{c as ze,d as Ie,b as ue,m as Ae,P as We,e as Oe,a as me,f as Re,g as Te,h as Ee}from"./DVEiwmFn.js";import{X as Fe}from"./rS7QE60d.js";import{l as de,s as Ue,e as qe}from"./Cwb6d3g_.js";import{b as _e}from"./BWRIDih-.js";import{h as Ge,S as Ke}from"./CxexnUzw.js";import{T as Ne}from"./kynOtL7x.js";var Xe=new Set(["$$slots","$$events","$$legacy","id","children","child","ref"]),He=h("<div><!></div>");function Je(o,e){const a=Ce();O(e,!0);let v=S(e,"id",19,()=>ze(a)),d=S(e,"ref",15,null),l=T(e,Xe);const i=Ie.create({id:ue(()=>v()),ref:ue(()=>d(),p=>d(p))}),f=K(()=>Ae(l,i.props));var g=W(),u=m(g);{var B=p=>{var _=W(),j=m(_);M(j,()=>e.child,()=>({props:E(f)})),n(p,_)},z=p=>{var _=He();de(_,()=>({...E(f)}));var j=k(_);M(j,()=>e.children??Z),P(_),n(p,_)};D(u,p=>{e.child?p(B):p(z,-1)})}n(o,g),R()}var Le=new Set(["$$slots","$$events","$$legacy"]);function Me(o,e){let a=T(e,Le);var v=W(),d=m(v);I(d,()=>We,(l,i)=>{i(l,A(()=>a))}),n(o,v)}var Qe=new Set(["$$slots","$$events","$$legacy","ref","class","portalProps","children","showCloseButton"]),Ve=h('<!> <span class="sr-only">Close</span>',1),fe=h("<!> <!>",1);function At(o,e){O(e,!0);let a=S(e,"ref",15,null),v=S(e,"showCloseButton",3,!0),d=T(e,Qe);Me(o,A(()=>e.portalProps,{children:(l,i)=>{var f=fe(),g=m(f);I(g,()=>at,(B,z)=>{z(B,{})});var u=s(g,2);{let B=K(()=>N("fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%_-_2rem)] -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-md 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));I(u,()=>Oe,(z,p)=>{p(z,A({"data-slot":"dialog-content",get class(){return E(B)}},()=>d,{get ref(){return a()},set ref(_){a(_)},children:(_,j)=>{var U=fe(),q=m(U);M(q,()=>e.children??Z);var X=s(q,2);{var H=F=>{var J=W(),$=m(J);{const ee=(G,L)=>{ge(G,A({variant:"ghost",class:"absolute top-4 right-4",size:"icon-sm"},()=>(L?.()).props,{children:(re,ae)=>{var Q=Ve(),V=m(Q);Fe(V,{}),oe(2),n(re,Q)},$$slots:{default:!0}}))};I($,()=>me,(G,L)=>{L(G,{"data-slot":"dialog-close",child:ee,$$slots:{child:!0}})})}n(F,J)};D(X,F=>{v()&&F(H)})}n(_,U)},$$slots:{default:!0}}))})}n(l,f)},$$slots:{default:!0}})),R()}var Ye=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Wt(o,e){O(e,!0);let a=S(e,"ref",15,null),v=T(e,Ye);var d=W(),l=m(d);{let i=K(()=>N("text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",e.class));I(l,()=>Je,(f,g)=>{g(f,A({"data-slot":"dialog-description",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(u){a(u)}}))})}n(o,d),R()}var Ze=new Set(["$$slots","$$events","$$legacy","ref","class","children","showCloseButton"]),$e=h("<div><!> <!></div>");function Ot(o,e){O(e,!0);let a=S(e,"ref",15,null),v=S(e,"showCloseButton",3,!1),d=T(e,Ze);var l=$e();de(l,u=>({"data-slot":"dialog-footer",class:u,...d}),[()=>N("flex flex-col-reverse gap-2 gap-2 sm:flex-row sm:justify-end",e.class)]);var i=k(l);M(i,()=>e.children??Z);var f=s(i,2);{var g=u=>{var B=W(),z=m(B);{const p=(_,j)=>{ge(_,A({variant:"outline"},()=>(j?.()).props,{children:(q,X)=>{oe();var H=Be("Close");n(q,H)},$$slots:{default:!0}}))};I(z,()=>me,(_,j)=>{j(_,{child:p,$$slots:{child:!0}})})}n(u,B)};D(f,u=>{v()&&u(g)})}P(l),_e(l,u=>a(u),()=>a()),n(o,l),R()}var et=new Set(["$$slots","$$events","$$legacy","ref","class","children"]),tt=h("<div><!></div>");function Rt(o,e){O(e,!0);let a=S(e,"ref",15,null),v=T(e,et);var d=tt();de(d,i=>({"data-slot":"dialog-header",class:i,...v}),[()=>N("flex flex-col gap-2",e.class)]);var l=k(d);M(l,()=>e.children??Z),P(d),_e(d,i=>a(i),()=>a()),n(o,d),R()}var rt=new Set(["$$slots","$$events","$$legacy","ref","class"]);function at(o,e){O(e,!0);let a=S(e,"ref",15,null),v=T(e,rt);var d=W(),l=m(d);{let i=K(()=>N("fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",e.class));I(l,()=>Re,(f,g)=>{g(f,A({"data-slot":"dialog-overlay",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(u){a(u)}}))})}n(o,d),R()}var st=new Set(["$$slots","$$events","$$legacy","ref","class"]);function Tt(o,e){O(e,!0);let a=S(e,"ref",15,null),v=T(e,st);var d=W(),l=m(d);{let i=K(()=>N("leading-none font-medium",e.class));I(l,()=>Te,(f,g)=>{g(f,A({"data-slot":"dialog-title",get class(){return E(i)}},()=>v,{get ref(){return a()},set ref(u){a(u)}}))})}n(o,d),R()}var ot=new Set(["$$slots","$$events","$$legacy","open"]);function Et(o,e){O(e,!0);let a=S(e,"open",15,!1),v=T(e,ot);var d=W(),l=m(d);I(l,()=>Ee,(i,f)=>{f(i,A(()=>v,{get open(){return a()},set open(g){a(g)}}))}),n(o,d),R()}const ne=o=>o.installed?o.settings.filter(e=>e.current===void 0):o.settings,Ft=o=>Object.fromEntries(ne(o).map(e=>[e.key,Ge(e.current??e.default)])),Ut=(o,e)=>ne(o).find(a=>a.required&&!e[a.key]?.trim())??null,qt=o=>Object.fromEntries(Object.entries(o).filter(([,e])=>e.trim()!==""));var dt=h('<p class="mt-0.5 text-xs text-muted-foreground"> </p>'),nt=h('<dt class="text-muted-foreground">Now</dt> <dd class="tabular font-mono"> </dd>',1),lt=h('<span class="font-sans">· <a class="text-sea hover:underline" target="_blank" rel="noreferrer">compare</a></span>'),it=h('<dt class="text-muted-foreground">Author</dt> <dd> </dd>',1),vt=h('<dt class="text-muted-foreground">Runs</dt> <dd> </dd>',1),ct=h('<dt class="text-muted-foreground">Addresses</dt> <dd> </dd>',1),ut=h('<dt class="text-muted-foreground">Sends</dt> <dd> </dd>',1),ft=h('<dt class="text-muted-foreground">Role</dt> <dd data-roles=""> </dd>',1),gt=h('<fieldset class="grid gap-3"><legend class="mb-1 text-xs font-medium"> </legend> <!> <p class="text-xs text-muted-foreground">Kept in Wheelhouse’s plugins file.</p></fieldset>'),mt=h("<li> </li>"),_t=h('<div class="text-xs text-muted-foreground">Wheelhouse restarts to load it, which stops: <ul class="mt-0.5 list-inside list-disc"></ul></div>'),xt=h('<div class="grid gap-4"><div class="rounded-md border bg-card px-4 py-3"><p class="font-medium"> <span class="font-normal text-muted-foreground"> </span></p> <!> <dl class="mt-3 grid grid-cols-[6rem_minmax(0,1fr)] gap-x-3 gap-y-1 text-xs"><dt class="text-muted-foreground">From</dt> <dd class="font-mono break-all"> </dd> <!> <dt class="text-muted-foreground">Commit</dt> <dd class="tabular font-mono"> <!></dd> <!> <dt class="text-muted-foreground">Adds</dt> <dd> </dd> <!> <!> <!> <!> <dt class="text-muted-foreground">On</dt> <dd> </dd></dl></div> <!> <p class="flex items-start gap-2 rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-xs"><!> <span> </span></p> <!></div>');function Gt(o,e){O(e,!0);let a=S(e,"answers",15),v=S(e,"busy",19,()=>[]);const d=K(()=>ne(e.preview)),l=t=>t.slice(0,12);var i=xt(),f=k(i),g=k(f),u=k(g),B=s(u),z=b(B);P(g);var p=s(g,2);{var _=t=>{var r=dt(),c=b(r,!0);C(()=>w(c,e.preview.description)),n(t,r)};D(p,t=>{e.preview.description&&t(_)})}var j=s(p,2),U=s(k(j),2),q=b(U),X=s(U,2);{var H=t=>{var r=nt(),c=s(m(r),2),x=b(c);C(y=>w(x,`${e.preview.installed.version??""} · ${y??""}`),[()=>l(e.preview.installed.commit)]),n(t,r)};D(X,t=>{e.preview.installed&&t(H)})}var F=s(X,4),J=k(F),$=s(J);{var ee=t=>{var r=lt(),c=s(k(r));P(r),C(()=>Ue(c,"href",`https://github.com/${e.preview.repository??""}/compare/${e.preview.installed.commit??""}...${e.preview.commit??""}`)),n(t,r)};D($,t=>{e.preview.installed&&t(ee)})}P(F);var G=s(F,2);{var L=t=>{var r=it(),c=s(m(r),2),x=b(c,!0);C(()=>w(x,e.preview.author)),n(t,r)};D(G,t=>{e.preview.author&&t(L)})}var te=s(G,4),re=b(te),ae=s(te,2);{var Q=t=>{var r=vt(),c=s(m(r),2),x=b(c,!0);C(y=>w(x,y),[()=>e.preview.services.join(", ")]),n(t,r)};D(ae,t=>{e.preview.services.length&&t(Q)})}var V=s(ae,2);{var xe=t=>{var r=ct(),c=s(m(r),2),x=b(c,!0);C(y=>w(x,y),[()=>e.preview.addresses.join("; ")]),n(t,r)};D(V,t=>{e.preview.addresses?.length&&t(xe)})}var le=s(V,2);{var he=t=>{var r=ut(),c=s(m(r),2),x=b(c,!0);C(y=>w(x,y),[()=>e.preview.capabilities.join("; ")]),n(t,r)};D(le,t=>{e.preview.capabilities?.length&&t(he)})}var ie=s(le,2);{var we=t=>{var r=ft(),c=s(m(r),2),x=b(c,!0);C(y=>w(x,y),[()=>e.preview.roles.join("; ")]),n(t,r)};D(ie,t=>{e.preview.roles?.length&&t(we)})}var pe=s(ie,4),be=b(pe,!0);P(j),P(f);var ve=s(f,2);{var ye=t=>{var r=gt(),c=k(r),x=b(c,!0),y=s(c,2);Ke(y,{get settings(){return E(d)},get answers(){return a()},set answers(Y){a(Y)}}),oe(2),P(r),C(()=>w(x,e.preview.installed?"Its new settings":"Its settings")),n(t,r)};D(ve,t=>{E(d).length&&t(ye)})}var se=s(ve,2),ce=k(se);Ne(ce,{class:"mt-0.5 size-3.5 shrink-0 text-warning"});var Pe=s(ce,2),De=b(Pe);P(se);var Se=s(se,2);{var ke=t=>{var r=_t(),c=s(k(r));qe(c,20,v,x=>x,(x,y)=>{var Y=mt(),je=b(Y,!0);C(()=>w(je,y)),n(x,Y)}),P(c),P(r),n(t,r)};D(Se,t=>{v().length&&t(ke)})}P(i),C((t,r)=>{w(u,`${e.preview.name??""} `),w(z,`${e.preview.id??""} ${e.preview.version??""}`),w(q,`${e.preview.repository??""}${e.preview.ref?` (${e.preview.ref})`:""}`),w(J,`${t??""} `),w(re,`${r??""}${e.preview.ui?"; a UI bundle":""}`),w(be,e.preview.on),w(De,`Its code runs with your permissions, inside Wheelhouse and in its pages. Wheelhouse does not
|
|
2
2
|
sandbox it. ${e.preview.installed?"Update":"Install"} only plugins you trust.`)},[()=>l(e.preview.commit),()=>e.preview.slots.join(", ")||"nothing to the pages"]),n(o,i),R()}export{At as D,Gt as P,Rt as a,Tt as b,Wt as c,Ot as d,Et as e,qt as f,Ft as i,Ut as m};
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as wt,p as bt,m as F,q as kt,u as $t,t as f,a as n,b as St,c,g as e,h as d,s as a,o as v,r as i,d as p,v as h,i as b,n as T,w as q,f as B,x as Tt,y as At}from"./BuRWgnCz.js";import{i as x}from"./BDpRITyb.js";import{s as ke,a as Be,r as Rt,b as Dt,e as le,i as $e}from"./Cwb6d3g_.js";import{p as Pt}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{l as wt,p as bt,m as F,q as kt,u as $t,t as f,a as n,b as St,c,g as e,h as d,s as a,o as v,r as i,d as p,v as h,i as b,n as T,w as q,f as B,x as Tt,y as At}from"./BuRWgnCz.js";import{i as x}from"./BDpRITyb.js";import{s as ke,a as Be,r as Rt,b as Dt,e as le,i as $e}from"./Cwb6d3g_.js";import{p as Pt}from"./_8osrypQ.js";import{S as zt}from"./BXN538J3.js";import{D as Se}from"./xjN9NojQ.js";import{a as pe}from"./BCUUi0V0.js";import{B as G}from"./C5BN6RHR.js";var Ut=c('<span class="truncate text-muted-foreground"> </span>'),Wt=c("<p> </p>"),It=c('<p class="px-4 py-3 text-sm break-words text-danger" role="alert"> </p>'),Lt=c(`<div class="space-y-3 px-4 py-4 text-sm" data-testid="pairing"><p class="font-medium"> </p> <ol class="list-decimal space-y-1.5 pl-5"><li>On a device you trust, open <a class="break-all underline" target="_blank" rel="noreferrer noopener"> </a> yourself and sign in.</li> <li>Type this code there: <code class="tabular rounded bg-muted px-1.5 py-0.5 text-base" data-testid="pair-code"> </code></li> <li>Pick this machine’s fingerprint: <code class="tabular" data-testid="pair-fingerprint"> </code></li></ol> <p class="text-xs text-warning">Whoever approves this code can use this machine’s Wheelhouse from anywhere, terminals
|
|
2
2
|
included, so they can run commands here. Type the code yourself, only at the address
|
|
3
3
|
above, and approve only when the fingerprint matches. If someone asked you for the code,
|
|
4
4
|
press Stop.</p> <p class="text-xs text-muted-foreground"> </p></div>`),Nt=c('<p class="mt-1 text-xs text-muted-foreground">This machine is paired there. Revoke it to use another gateway.</p>'),Ot=c('<p class="break-all" data-testid="gateway"> </p> <!>',1),jt=c('<form class="flex flex-wrap items-center gap-2"><input type="url" class="min-w-0 flex-1 rounded-md border bg-background px-3 py-1.5 text-sm" aria-label="Gateway URL"/> <!></form> <p class="mt-1 text-xs text-muted-foreground"> </p>',1),Et=c(`<p><span class="font-medium"> </span> <span class="text-muted-foreground"> </span></p> <p class="mt-0.5 text-xs text-muted-foreground">Key fingerprint <code class="tabular" data-testid="fingerprint"> </code>, kept in <code class="break-all"> </code>, readable by your user only.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{o as y}from"./RYq3318d.js";import{aa as p,bE as N,m as u,g as f,v as d}from"./BuRWgnCz.js";const h=[];function k(e,t=p){let n=null;const s=new Set;function r(o){if(N(e,o)&&(e=o,n)){const c=!h.length;for(const l of s)l[1](),h.push(l,e);if(c){for(let l=0;l<h.length;l+=2)h[l][0](h[l+1]);h.length=0}}}function i(o){r(o(e))}function a(o,c=p){const l=[o,c];return s.add(l),s.size===1&&(n=t(r,i)||p),o(e),()=>{s.delete(l),s.size===0&&n&&(n(),n=null)}}return{set:r,update:i,subscribe:a}}const L="1794642787338";new URL("sveltekit-internal://");function H(e,t){return e==="/"||t==="ignore"?e:t==="never"?e.endsWith("/")?e.slice(0,-1):e:t==="always"&&!e.endsWith("/")?e+"/":e}function K(e){return e.split("%25").map(decodeURI).join("%25")}function B(e){for(const t in e)e[t]=decodeURIComponent(e[t]);return e}function D({href:e}){return e.split("#")[0]}function O(){}function x(...e){let t=5381;for(const n of e)if(typeof n=="string"){let s=n.length;for(;s;)t=t*33^n.charCodeAt(--s)}else if(ArrayBuffer.isView(n)){const s=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);let r=s.length;for(;r;)t=t*33^s[--r]}else throw new TypeError("value must be a string or TypedArray");return(t>>>0).toString(36)}new TextEncoder;function $(e){const t=atob(e),n=new Uint8Array(t.length);for(let s=0;s<t.length;s++)n[s]=t.charCodeAt(s);return n}const q=window.fetch;window.fetch=(e,t)=>((e instanceof Request?e.method:t?.method||"GET")!=="GET"&&b.delete(m(e)),q(e,t));const b=new Map;function W(e,t){const n=m(e,t),s=document.querySelector(n);if(s?.textContent){s.remove();let{body:r,...i}=JSON.parse(s.textContent);s.getAttribute("data-b64")!==null&&(r=$(r));const o=s.getAttribute("data-ttl");return o&&b.set(n,{body:r,init:i,ttl:1e3*Number(o)}),Promise.resolve(new Response(r,i))}return window.fetch(e,t)}function X(e,t,n){if(b.size>0){const s=m(e,n),r=b.get(s);if(r){if(performance.now()<r.ttl&&["default","force-cache","only-if-cached",void 0].includes(n?.cache))return new Response(r.body,r.init);b.delete(s)}}return window.fetch(t,n)}function m(e,t){let s=`script[data-sveltekit-fetched][data-url=${JSON.stringify(e instanceof Request?e.url:e)}]`;if(t?.headers||t?.body){const r=[];t.headers&&r.push([...new Headers(t.headers)].join(",")),t.body&&(typeof t.body=="string"||ArrayBuffer.isView(t.body))&&r.push(t.body),s+=`[data-hash="${x(...r)}"]`}return s}const C=globalThis.__sveltekit_tu62vy?.base??"",P=globalThis.__sveltekit_tu62vy?.assets??C??"",J="sveltekit:snapshot",M="sveltekit:scroll",F="sveltekit:states",Q="sveltekit:pageurl",Z="sveltekit:history",ee="sveltekit:navigation",v={tap:1,hover:2,viewport:3,eager:4,off:-1,false:-1},E=location.origin;function te(e){if(e instanceof URL)return e;let t=document.baseURI;if(!t){const n=document.getElementsByTagName("base");t=n.length?n[0].href:document.URL}return new URL(e,t)}function ne(){return{x:pageXOffset,y:pageYOffset}}function g(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const S={...v,"":v.hover};function T(e){let t=e.assignedSlot??e.parentNode;return t?.nodeType===11&&(t=t.host),t}function se(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=T(e)}}function re(e,t,n){let s;try{if(s=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI),n&&s.hash.match(/^#[^/]/)){const o=location.hash.split("#")[1]||"/";s.hash=`#${o}${s.hash}`}}catch{}const r=e instanceof SVGAElement?e.target.baseVal:e.target,i=!s||!!r||V(s,t,n)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),a=s?.origin===E&&e.hasAttribute("download");return{url:s,external:i,target:r,download:a}}function oe(e){let t=null,n=null,s=null,r=null,i=null,a=null,o=e;for(;o&&o!==document.documentElement;)s===null&&(s=g(o,"preload-code")),r===null&&(r=g(o,"preload-data")),t===null&&(t=g(o,"keepfocus")),n===null&&(n=g(o,"noscroll")),i===null&&(i=g(o,"reload")),a===null&&(a=g(o,"replacestate")),o=T(o);function c(l){switch(l){case"":case"true":return!0;case"off":case"false":return!1;default:return}}return{preload_code:S[s??"off"],preload_data:S[r??"off"],keepfocus:c(t),noscroll:c(n),reload:c(i),replace_state:c(a)}}function ae(e){const t=k(e);let n=!0;function s(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function i(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:s,set:r,subscribe:i}}const U={v:O};function ie(){const{set:e,subscribe:t}=k(!1);let n;async function s(){clearTimeout(n);try{const r=await fetch(`${P}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==L;return a&&(e(!0),U.v(),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:s}}function V(e,t,n){return e.origin!==E||!e.pathname.startsWith(t)?!0:n?e.pathname!==location.pathname:!1}function le(e){}const I=new Set(["load","prerender","csr","ssr","trailingSlash","config"]);[...I];const j=new Set([...I]);[...j];let w,A,_;const G=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString()),R="a:";G?(w={data:{},form:null,error:null,params:{},route:{id:null},state:{},status:-1,url:new URL(R)},A={current:null},_={current:!1}):(w=new class{#e=u({});get data(){return f(this.#e)}set data(t){d(this.#e,t)}#t=u(null);get form(){return f(this.#t)}set form(t){d(this.#t,t)}#n=u(null);get error(){return f(this.#n)}set error(t){d(this.#n,t)}#s=u({});get params(){return f(this.#s)}set params(t){d(this.#s,t)}#r=u({id:null});get route(){return f(this.#r)}set route(t){d(this.#r,t)}#o=u({});get state(){return f(this.#o)}set state(t){d(this.#o,t)}#a=u(-1);get status(){return f(this.#a)}set status(t){d(this.#a,t)}#i=u(new URL(R));get url(){return f(this.#i)}set url(t){d(this.#i,t)}},A=new class{#e=u(null);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},_=new class{#e=u(!1);get current(){return f(this.#e)}set current(t){d(this.#e,t)}},U.v=()=>_.current=!0);function de(e){Object.assign(w,e)}export{Z as H,ee as N,Q as P,F as S,A as a,C as b,oe as c,D as d,B as e,se as f,re as g,H as h,V as i,ie as j,ae as k,v as l,K as m,O as n,E as o,w as p,J as q,te as r,ne as s,X as t,de as u,W as v,k as w,M as x,le as y};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
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 Xe,l as X,m as At,q as nt,t as kt,v as St,x as at}from"./CS4t4atW.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 ze(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 Gt=typeof Uint8Array.fromBase64=="function",Xt=typeof process=="object"&&process.versions?.node!==void 0,zt=Gt?Ht:Xt?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(zt(_));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 z=null;const x=ot(at)??{},Z=ot(nt)??{},D={url:Xe({}),page:Xe({}),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_tu62vy.data){const{q:a={},p:o={},l:s={},f:c={}}=globalThis.__sveltekit_tu62vy.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),ze(at,x),ft(R),ze(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=Ge(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"?Ge(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,G=>G(h.navigation)))).filter(G=>typeof G=="function");if(b.length>0){let G=function(){b.forEach(ve=>{q.delete(ve)})};b.push(G),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():(z=null,ge.$set(m.props),z&&Object.assign(m.props.page,z),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&&z&&Object.assign(m.props.page,z);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,X.hover)},20)});function r(o){o.defaultPrevented||i(o.composedPath()[0],X.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=X.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===X.viewport&&n.observe(o),l.preload_code===X.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=Ge(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 Ge(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
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./BuRWgnCz.js";import{i as P}from"./BDpRITyb.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./Cwb6d3g_.js";import{a as yt}from"./BMFk7aZ6.js";import{p as Ze}from"./CDSHscp6.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./C5BN6RHR.js";import{L as wt,K as He}from"./BxpN0jPH.js";import{C as kt}from"./CqfUJirh.js";import{s as jt,r as St}from"./BAOiF0in.js";import{I as zt}from"./xH4qmLqM.js";import{E as At}from"./Crfn3y_6.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),Lt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Bt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Xt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),ra=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),sa=p('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
|
|
1
|
+
import"./DsnmJJEf.js";import{l as vt,p as pt,m as j,q as mt,u as ft,f as we,h as d,o as b,s,g as e,r as i,t as y,d as g,a as l,b as _t,i as O,v as n,n as W,w as L,x as Ue,y as _e,c as p,aa as ue,j as gt}from"./BuRWgnCz.js";import{i as P}from"./BDpRITyb.js";import{r as Ee,s as K,e as ke,i as xt,b as ht,c as bt}from"./Cwb6d3g_.js";import{a as yt}from"./BMFk7aZ6.js";import{p as Ze}from"./_8osrypQ.js";import{S as $t}from"./BXN538J3.js";import{B as U}from"./C5BN6RHR.js";import{L as wt,K as He}from"./BxpN0jPH.js";import{C as kt}from"./CqfUJirh.js";import{s as jt,r as St}from"./BAOiF0in.js";import{I as zt}from"./xH4qmLqM.js";import{E as At}from"./Crfn3y_6.js";const Pt=/https?:\/\/[^\s<>"'`]+/g,Et=/[.,;:!?)\]}'"*]+$/;function ha(C){return[...C.matchAll(Pt)].map(B=>B[0].replace(Et,""))}var Nt=new Set(["$$slots","$$events","$$legacy"]);function Rt(C,B){let ge=St(B,Nt);const xe={name:"eye-off",size:24,node:[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143"}],["path",{d:"m2 2 20 20"}]]};zt(C,jt(()=>ge,{get icon(){return xe}}))}const Tt=/^[A-Za-z_][A-Za-z0-9_]{0,127}$/,ba=/^[A-Za-z0-9][A-Za-z0-9._-]{0,127}$/;function Ne(C){return C?.where??"the vault"}function Ct(C){return C.length<=1?C.join(""):`${C.slice(0,-1).join(", ")} and ${C.at(-1)}`}var Dt=p('<div class="relative"><input autocomplete="off" autocapitalize="off" spellcheck="false" data-1p-ignore="" data-lpignore="true" class="h-10 w-full rounded-md border border-input bg-background px-3 pr-10 font-mono text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60"/> <button type="button" class="absolute inset-y-0 right-0 flex w-10 items-center justify-center rounded-r-md text-muted-foreground outline-none hover:text-foreground focus-visible:ring-2 focus-visible:ring-ring"><!></button></div>'),Lt=p('<label class="flex min-w-0 items-center gap-2 text-sm"><input type="checkbox" class="size-4 shrink-0 accent-[var(--sea)]"/> <span class="truncate"> </span></label>'),It=p('<div class="grid gap-x-6 gap-y-2 sm:grid-cols-2" role="group"></div>'),Vt=p('<p class="text-sm text-muted-foreground">Wheelhouse knows no projects yet.</p>'),Mt=p('<p class="mt-5 rounded-md border border-warning/40 bg-warning/5 px-4 py-2.5 text-sm" role="alert" data-vault-unavailable=""> </p>'),Ot=p('<p class="mt-5 rounded-md border border-success/40 bg-success/5 px-4 py-2.5 text-sm" role="status"> </p>'),Wt=p('<p class="mt-5 rounded-md border border-danger/40 bg-danger/5 px-4 py-2.5 text-sm" role="alert"> </p>'),Kt=p('<p class="mt-5 text-sm text-muted-foreground"> </p>'),Ut=p('<p id="vault-name-help" class="text-sm text-danger" role="alert"> </p>'),Zt=p('<p id="vault-name-help" class="text-xs text-muted-foreground">The environment variable a command receives it as: letters, digits and underscores.</p>'),Ht=p('<section class="mt-6 rounded-lg border border-hair bg-background/60 px-5 py-5" aria-labelledby="vault-add"><h2 id="vault-add" class="font-display text-lg">Add a secret</h2> <p class="mt-0.5 mb-5 text-xs text-muted-foreground">Storing a name that already exists replaces its value.</p> <form class="grid gap-5"><div class="grid max-w-md gap-1.5"><label for="vault-name" class="text-sm font-medium">Name</label> <input id="vault-name" autocomplete="off" autocapitalize="characters" spellcheck="false" placeholder="VERCEL_TOKEN" aria-describedby="vault-name-help" class="h-10 w-full rounded-md border border-input bg-background px-3 font-mono text-sm outline-none placeholder:text-muted-foreground/60 focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60 aria-invalid:border-danger"/> <!></div> <div class="grid max-w-md gap-1.5"><label for="vault-value" class="text-sm font-medium">Value</label> <!> <p class="flex items-start gap-1.5 text-xs text-muted-foreground"><!> </p></div> <div class="grid gap-2"><p class="text-sm font-medium">Projects that may use it</p> <p class="-mt-1 mb-1 text-xs text-muted-foreground">Optional. You can change this any time.</p> <!></div> <div class="flex flex-wrap gap-2"><!> <!></div></form></section>'),Bt=p('<div class="mt-6 rounded-lg border border-dashed px-6 py-10"><!> <p class="mt-3 font-display text-lg">The vault is empty</p> <p class="mt-1 max-w-prose text-sm text-muted-foreground">Add the tokens and keys your projects need. The crew uses them by name and never sees a value.</p> <!></div>'),Ft=p('<span class="rounded border border-hair px-1.5 py-0.5 text-xs"> </span>'),Gt=p('<span class="text-xs text-muted-foreground">No project yet</span>'),Jt=p('<form class="grid gap-2"><label for="vault-replace" class="text-xs font-medium">New value</label> <!> <div class="flex flex-wrap gap-2"><!> <!></div></form>'),Yt=p('<p>Remove <span class="font-mono"> </span> </p> <div class="flex flex-wrap gap-2"><!> <!></div>',1),qt=p('<div class="flex flex-wrap gap-2"><!> <!></div>'),Qt=p('<div class="grid gap-6 px-1 pt-1 pb-5 sm:grid-cols-[minmax(0,1fr)_minmax(0,18rem)] sm:pl-9"><div><p class="mb-2 text-sm font-medium">Projects that may use it</p> <!> <p class="mt-3 text-xs text-muted-foreground"> </p></div> <div class="grid content-start gap-3 text-sm"><p class="tabular text-xs text-muted-foreground"> <br/> </p> <!></div></div>'),Xt=p('<li><button class="flex min-h-12 w-full items-center gap-4 px-1 py-3 text-left outline-none hover:bg-muted/50 focus-visible:ring-2 focus-visible:ring-ring"><!> <span class="min-w-0 flex-1 truncate font-mono text-sm font-medium"> </span> <span class="hidden min-w-0 flex-wrap justify-end gap-1.5 sm:flex"></span> <!></button> <!></li>'),ea=p('<ul class="mt-6 divide-y divide-hair border-y border-hair" aria-label="Secrets"></ul>'),ta=p('<a class="text-sea hover:underline"> </a>'),aa=p('<tr><td class="tabular py-2 pr-4 whitespace-nowrap"> </td><td class="py-2 pr-4"><!></td><td class="py-2 pr-4"> </td><td class="py-2 pr-4 font-mono text-xs"> </td><td class="py-2 pr-4"> </td><td class="py-2"> </td></tr>'),ra=p('<h2 class="section-label mt-10">Recent use</h2> <div class="mt-3 no-scrollbar overflow-x-auto"><table class="w-full text-sm"><thead class="text-left text-xs text-muted-foreground"><tr class="border-b border-hair"><th class="py-2 pr-4 font-medium">When</th><th class="py-2 pr-4 font-medium">Task</th><th class="py-2 pr-4 font-medium">Project</th><th class="py-2 pr-4 font-medium">Secrets</th><th class="py-2 pr-4 font-medium">Command</th><th class="py-2 font-medium">Result</th></tr></thead><tbody class="divide-y divide-hair"></tbody></table></div>',1),sa=p('<div class="flex flex-wrap items-start justify-between gap-4"><p class="max-w-prose text-sm text-muted-foreground"> </p> <!></div> <!> <!> <!> <!> <!> <!> <!>',1);function na(C,B){pt(B,!0);const ge=(t,a=ue,r=ue,o=ue)=>{var u=Dt(),_=d(u);Ee(_);var c=s(_,2),S=d(c);{var x=m=>{Rt(m,{class:"size-4"})},h=m=>{At(m,{class:"size-4"})};P(S,m=>{e(Z)?m(x):m(h,-1)})}i(c),i(u),y(m=>{K(_,"id",a()),K(_,"type",e(Z)?"text":"password"),ht(_,m),_.disabled=e($),K(c,"aria-label",e(Z)?"Hide what you typed":"Show what you typed"),K(c,"aria-pressed",e(Z))},[()=>r()()]),_e("input",_,m=>o()(m.currentTarget.value)),_e("click",c,()=>n(Z,!e(Z))),l(t,u)},xe=(t,a=ue,r=ue,o=ue)=>{var u=gt(),_=we(u);{var c=x=>{var h=It();ke(h,20,()=>e(Re),m=>m,(m,I)=>{var H=Lt(),f=d(H);Ee(f);var w=s(f,2),E=b(w,!0);i(H),y(z=>{bt(f,z),f.disabled=e($),g(E,I)},[()=>r().includes(I)]),_e("change",f,z=>{const F=z.currentTarget;o()(I,F.checked,F)}),l(m,H)}),i(h),y(()=>K(h,"aria-label",a())),l(x,h)},S=x=>{var h=Vt();l(x,h)};P(_,x=>{e(Re).length?x(c):x(S,-1)})}l(t,u)},ce=O(()=>B.data);let he=j(null);const ve=O(()=>{const t=B.entry.content.available?Date.parse(B.entry.content.observedAt??""):NaN;return e(he)&&!(t>e(he).at)?e(he).secrets:e(ce).secrets}),Re=O(()=>{const t=(Ze.data.fleet?.projects??[]).map(r=>r.id),a=e(ve).flatMap(r=>r.projects).filter(r=>!t.includes(r));return[...t,...[...new Set(a)].sort()]});let J=j(null),ae=j(!1),pe=j(null),me=j(null),$=j(!1),re=j(null),se=j(null),Y=j(""),q=j(""),ne=j(mt([])),Z=j(!1),oe=j(""),Q=j(""),le=j(null);const fe=O(()=>e(le)?.canStore===!1);function Te(){fetch("/api/vault").then(t=>t.ok?t.json():null).then(t=>{t&&n(le,t,!0)}).catch(()=>{})}ft(Te);function je(t){if(!t)return"Never";const a=new Date(t);if(Number.isNaN(a.getTime()))return t;const r=o=>String(o).padStart(2,"0");return`${a.getFullYear()}-${r(a.getMonth()+1)}-${r(a.getDate())} ${r(a.getHours())}:${r(a.getMinutes())}`}function be(){n(q,""),n(Q,""),n(Z,!1)}function Ce(){n(Y,""),n(ne,[],!0),n(oe,""),n(re,null),n(se,null),be(),n(ae,!0)}function Be(){n(ae,!1),be()}async function ye(t){n($,!0),n(se,null),n(re,null);try{const a=await fetch("/api/vault",{method:"POST",headers:{"content-type":"application/json",[$t]:Ze.data.sessionToken},body:JSON.stringify(t)}),r=await a.json().catch(()=>null);return a.ok?(r?.secrets&&n(he,{secrets:r.secrets,at:Date.parse(r.observedAt??"")||Date.now()},!0),n(re,r?.message??"Done.",!0),!0):(n(se,r?.message??`Wheelhouse could not do that (${a.status}).`,!0),a.status===503&&Te(),!1)}catch{return n(se,"Wheelhouse could not be reached. Try again."),!1}finally{n($,!1)}}async function Fe(t){if(t.preventDefault(),!Tt.test(e(Y))){n(oe,"Use letters, digits and underscores, not starting with a digit, like VERCEL_TOKEN.");return}if(!e(q))return;const a={action:"set",name:e(Y),value:e(q),projects:e(ne)};n(q,""),n(Z,!1),await ye(a)&&(n(ae,!1),n(J,e(Y),!0))}async function Ge(t,a){if(t.preventDefault(),!e(Q))return;const r={action:"set",name:a.name,value:e(Q),projects:[]};n(Q,""),n(Z,!1),await ye(r)&&n(pe,null)}async function Je(t,a,r,o){await ye({action:r?"grant":"revoke",name:t.name,projects:[a]})||(o.checked=!r)}async function Ye(t){await ye({action:"remove",name:t.name})&&(n(me,null),n(J,null))}function qe(t){n(J,e(J)===t?null:t,!0),n(me,null),n(pe,null),be()}var De=sa(),Se=we(De),Le=d(Se),Qe=b(Le),Xe=s(Le,2);{var et=t=>{{let a=O(()=>e($)||e(fe));U(t,{onclick:Ce,get disabled(){return e(a)},children:(r,o)=>{W();var u=L("Add a secret");l(r,u)},$$slots:{default:!0}})}};P(Xe,t=>{e(ve).length&&!e(ae)&&t(et)})}i(Se);var Ie=s(Se,2);{var tt=t=>{var a=Mt(),r=b(a,!0);y(()=>g(r,e(le)?.reason??"The vault cannot store a secret on this computer.")),l(t,a)};P(Ie,t=>{e(fe)&&t(tt)})}var Ve=s(Ie,2);{var at=t=>{var a=Ot(),r=b(a,!0);y(()=>g(r,e(re))),l(t,a)};P(Ve,t=>{e(re)&&t(at)})}var Me=s(Ve,2);{var rt=t=>{var a=Wt(),r=b(a,!0);y(()=>g(r,e(se))),l(t,a)};P(Me,t=>{e(se)&&t(rt)})}var Oe=s(Me,2);{var st=t=>{var a=Kt(),r=b(a,!0);y(()=>g(r,e(ce).problem)),l(t,a)};P(Oe,t=>{e(ce).problem&&t(st)})}var We=s(Oe,2);{var nt=t=>{var a=Ht(),r=s(d(a),4),o=d(r),u=s(d(o),2);Ee(u);var _=s(u,2);{var c=v=>{var A=Ut(),D=b(A,!0);y(()=>g(D,e(oe))),l(v,A)},S=v=>{var A=Zt();l(v,A)};P(_,v=>{e(oe)?v(c):v(S,-1)})}i(o);var x=s(o,2),h=s(d(x),2);ge(h,()=>"vault-value",()=>()=>e(q),()=>v=>n(q,v,!0));var m=s(h,2),I=d(m);wt(I,{class:"mt-px size-3.5 shrink-0"});var H=s(I);i(m),i(x);var f=s(x,2),w=s(d(f),4);xe(w,()=>"Projects that may use it",()=>e(ne),()=>(v,A)=>{n(ne,A?[...e(ne),v]:e(ne).filter(D=>D!==v),!0)}),i(f);var E=s(f,2),z=d(E);{let v=O(()=>e($)||!e(Y)||!e(q)||e(fe));U(z,{type:"submit",get disabled(){return e(v)},children:(A,D)=>{W();var ie=L("Store secret");l(A,ie)},$$slots:{default:!0}})}var F=s(z,2);U(F,{type:"button",variant:"outline",get disabled(){return e($)},onclick:Be,children:(v,A)=>{W();var D=L("Cancel");l(v,D)},$$slots:{default:!0}}),i(E),i(r),i(a),y(v=>{u.disabled=e($),K(u,"aria-invalid",e(oe)?"true":void 0),g(H,` Goes straight into ${v??""}. Wheelhouse cannot show it again.`)},[()=>Ne(e(le))]),Ue("submit",r,Fe),_e("input",u,()=>n(oe,"")),yt(u,()=>e(Y),v=>n(Y,v)),l(t,a)};P(We,t=>{e(ae)&&t(nt)})}var Ke=s(We,2);{var ot=t=>{var a=Bt(),r=d(a);He(r,{class:"size-6 text-brass","aria-hidden":"true"});var o=s(r,6);{let u=O(()=>e($)||e(fe));U(o,{class:"mt-5",onclick:Ce,get disabled(){return e(u)},children:(_,c)=>{W();var S=L("Add a secret");l(_,S)},$$slots:{default:!0}})}i(a),l(t,a)},lt=t=>{var a=ea();ke(a,21,()=>e(ve),r=>r.name,(r,o)=>{var u=Xt(),_=d(u),c=d(_);He(c,{class:"size-4 shrink-0 text-brass","aria-hidden":"true"});var S=s(c,2),x=b(S,!0),h=s(S,2);ke(h,20,()=>e(o).projects,f=>f,(f,w)=>{var E=Ft(),z=b(E,!0);y(()=>g(z,w)),l(f,E)},f=>{var w=Gt();l(f,w)}),i(h);var m=s(h,2);{let f=O(()=>e(J)===e(o).name?"rotate-90":"");kt(m,{get class(){return`size-4 shrink-0 text-muted-foreground transition-transform ${e(f)??""}`},"aria-hidden":"true"})}i(_);var I=s(_,2);{var H=f=>{var w=Qt(),E=d(w),z=s(d(E),2);xe(z,()=>`Projects that may use ${e(o).name}`,()=>e(o).projects,()=>(N,k,R)=>Je(e(o),N,k,R));var F=s(z,2),v=b(F,!0);i(E);var A=s(E,2),D=d(A),ie=d(D),V=s(ie,2);i(D);var M=s(D,2);{var ze=N=>{var k=Jt(),R=s(d(k),2);ge(R,()=>"vault-replace",()=>()=>e(Q),()=>T=>n(Q,T,!0));var X=s(R,2),G=d(X);{let T=O(()=>e($)||!e(Q));U(G,{type:"submit",size:"sm",get disabled(){return e(T)},children:(ee,$e)=>{W();var te=L("Replace");l(ee,te)},$$slots:{default:!0}})}var de=s(G,2);U(de,{type:"button",size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>{n(pe,null),be()},children:(T,ee)=>{W();var $e=L("Cancel");l(T,$e)},$$slots:{default:!0}}),i(X),i(k),Ue("submit",k,T=>Ge(T,e(o))),l(N,k)},Ae=N=>{var k=Yt(),R=we(k),X=s(d(R)),G=b(X,!0),de=s(X);i(R);var T=s(R,2),ee=d(T);U(ee,{size:"sm",variant:"destructive",get disabled(){return e($)},onclick:()=>Ye(e(o)),children:(te,ct)=>{W();var Pe=L("Remove");l(te,Pe)},$$slots:{default:!0}});var $e=s(ee,2);U($e,{size:"sm",variant:"outline",get disabled(){return e($)},onclick:()=>n(me,null),children:(te,ct)=>{W();var Pe=L("Keep it");l(te,Pe)},$$slots:{default:!0}}),i(T),y(te=>{g(G,e(o).name),g(de,`? Its value is deleted from ${te??""} and every project loses it. This cannot be undone.`)},[()=>Ne(e(le))]),l(N,k)},ut=N=>{var k=qt(),R=d(k);{let G=O(()=>e($)||e(fe));U(R,{size:"sm",variant:"outline",get disabled(){return e(G)},onclick:()=>{n(pe,e(o).name,!0),n(re,null)},children:(de,T)=>{W();var ee=L("Replace value");l(de,ee)},$$slots:{default:!0}})}var X=s(R,2);U(X,{size:"sm",variant:"ghost",class:"text-danger hover:text-danger",get disabled(){return e($)},onclick:()=>n(me,e(o).name,!0),children:(G,de)=>{W();var T=L("Remove…");l(G,T)},$$slots:{default:!0}}),i(k),l(N,k)};P(M,N=>{e(pe)===e(o).name?N(ze):e(me)===e(o).name?N(Ae,1):N(ut,-1)})}i(A),i(w),y((N,k,R)=>{K(w,"id",`vault-${e(o).name??""}`),g(v,N),g(ie,`Value set ${k??""}`),g(V,`Last used ${R??""}`)},[()=>e(o).projects.length?`A command ${Ct(e(o).projects)} ${e(o).projects.length===1?"runs":"run"} through the vault gets it in its environment, that command only.`:"No project can use it until you tick one.",()=>je(e(o).updatedAt),()=>je(e(o).lastUsedAt)]),l(f,w)};P(I,f=>{e(J)===e(o).name&&f(H)})}i(u),y(()=>{K(_,"aria-expanded",e(J)===e(o).name),K(_,"aria-controls",`vault-${e(o).name??""}`),g(x,e(o).name)}),_e("click",_,()=>qe(e(o).name)),l(r,u)}),i(a),l(t,a)};P(Ke,t=>{!e(ve).length&&!e(ae)?t(ot):e(ve).length&&t(lt,1)})}var it=s(Ke,2);{var dt=t=>{var a=ra(),r=s(we(a),2),o=d(r),u=s(d(o));ke(u,21,()=>e(ce).used,xt,(_,c)=>{var S=aa(),x=d(S),h=b(x,!0),m=s(x),I=d(m);{var H=V=>{var M=ta(),ze=b(M,!0);y(Ae=>{K(M,"href",`/tasks/${Ae??""}`),g(ze,e(c).task)},[()=>encodeURIComponent(e(c).task)]),l(V,M)},f=V=>{var M=L();y(()=>g(M,e(c).task??"—")),l(V,M)};P(I,V=>{e(c).task&&e(c).taskKnown?V(H):V(f,-1)})}i(m);var w=s(m),E=b(w,!0),z=s(w),F=b(z,!0),v=s(z),A=b(v,!0),D=s(v),ie=b(D,!0);i(S),y((V,M)=>{g(h,V),g(E,e(c).project??"—"),g(F,M),g(A,e(c).program??"—"),g(ie,e(c).result)},[()=>je(e(c).at),()=>e(c).names.join(", ")||"—"]),l(_,S)}),i(u),i(o),i(r),l(t,a)};P(it,t=>{e(ce).used.length&&t(dt)})}y(t=>g(Qe,`Secrets your projects can use by name. Values stay in ${t??""}; Wheelhouse never
|
|
2
2
|
shows one.`),[()=>Ne(e(le))]),l(C,De),_t()}vt(["input","click","change"]);const ya={"vault/overview":na};export{ya as P,Tt as S,Ct as a,ba as b,ha as e,Ne as s};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{i as n}from"./CKBPLT-z.js";import{p as h,a as s,b as v,c as i,o as c,t as u,g as o,d as b,r as g}from"./BuRWgnCz.js";import{e as _,s as f}from"./Cwb6d3g_.js";import{p as d}from"./_8osrypQ.js";import{L as x}from"./cwI46DFb.js";var O=i('<a class="nav-tab shrink-0"> </a>'),L=i('<nav class="-ml-2.5 no-scrollbar flex gap-1 overflow-x-auto" aria-label="Logbook"></nav>');function K(l,p){h(p,!1),n();var r=L();_(r,5,()=>x,t=>t.href,(t,e)=>{var a=O(),m=c(a,!0);u(()=>{f(a,"href",o(e).href),f(a,"aria-current",d.url.pathname===o(e).href?"page":void 0),b(m,o(e).label)}),s(t,a)}),g(r),s(l,r),v()}export{K as I};
|
|
Binary file
|
|
Binary file
|