@chrisjowen/wheelhouse 0.18.0 → 0.18.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/{Bd8l0yTM.js → BDtt0Y7t.js} +1 -1
- package/build/client/_app/immutable/chunks/BDtt0Y7t.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDtt0Y7t.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cv4HO3U0.js → BL011DGQ.js} +1 -1
- package/build/client/_app/immutable/chunks/BL011DGQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/BL011DGQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{0RGfo0js.js → BSBcdyd3.js} +1 -1
- package/build/client/_app/immutable/chunks/BSBcdyd3.js.br +2 -0
- package/build/client/_app/immutable/chunks/BSBcdyd3.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BvPKyGA8.js → Bj-Gheej.js} +1 -1
- package/build/client/_app/immutable/chunks/Bj-Gheej.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bj-Gheej.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bl_aeMq-.js → COSi3XeB.js} +1 -1
- package/build/client/_app/immutable/chunks/COSi3XeB.js.br +0 -0
- package/build/client/_app/immutable/chunks/COSi3XeB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CSzf141e.js +1 -0
- package/build/client/_app/immutable/chunks/CSzf141e.js.br +0 -0
- package/build/client/_app/immutable/chunks/CSzf141e.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{DJmeKpkq.js → C_QL6rvF.js} +1 -1
- package/build/client/_app/immutable/chunks/C_QL6rvF.js.br +0 -0
- package/build/client/_app/immutable/chunks/C_QL6rvF.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B13jYnr5.js → CoQMrCtk.js} +1 -1
- package/build/client/_app/immutable/chunks/CoQMrCtk.js.br +0 -0
- package/build/client/_app/immutable/chunks/CoQMrCtk.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{rWDJOr9L.js → Cpxqeawy.js} +1 -1
- package/build/client/_app/immutable/chunks/Cpxqeawy.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cpxqeawy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BisZnsml.js → CtiH9jvV.js} +1 -1
- package/build/client/_app/immutable/chunks/CtiH9jvV.js.br +2 -0
- package/build/client/_app/immutable/chunks/CtiH9jvV.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{B5OMEixy.js → CzBY7r8x.js} +1 -1
- package/build/client/_app/immutable/chunks/CzBY7r8x.js.br +0 -0
- package/build/client/_app/immutable/chunks/CzBY7r8x.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Bm06it9w.js → D2Frmdzl.js} +1 -1
- package/build/client/_app/immutable/chunks/D2Frmdzl.js.br +0 -0
- package/build/client/_app/immutable/chunks/D2Frmdzl.js.gz +0 -0
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js +1 -0
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js.br +0 -0
- package/build/client/_app/immutable/chunks/D9kzO4Vy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{C8rIEWKQ.js → Dcf7qESD.js} +1 -1
- package/build/client/_app/immutable/chunks/Dcf7qESD.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dcf7qESD.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{BDhezwGC.js → Deh9Yuoc.js} +1 -1
- package/build/client/_app/immutable/chunks/Deh9Yuoc.js.br +0 -0
- package/build/client/_app/immutable/chunks/Deh9Yuoc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Cwq50RB4.js → DglJ92hi.js} +1 -1
- package/build/client/_app/immutable/chunks/DglJ92hi.js.br +0 -0
- package/build/client/_app/immutable/chunks/DglJ92hi.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Drqp3nkL.js → I4bsCfS2.js} +1 -1
- package/build/client/_app/immutable/chunks/I4bsCfS2.js.br +0 -0
- package/build/client/_app/immutable/chunks/{Drqp3nkL.js.gz → I4bsCfS2.js.gz} +0 -0
- package/build/client/_app/immutable/chunks/{ClopdZ_7.js → JUzTNcjv.js} +1 -1
- package/build/client/_app/immutable/chunks/JUzTNcjv.js.br +0 -0
- package/build/client/_app/immutable/chunks/JUzTNcjv.js.gz +0 -0
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js +2 -0
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js.br +0 -0
- package/build/client/_app/immutable/chunks/cM1ZMvyM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{gS_jJyWs.js → luPa70aT.js} +1 -1
- package/build/client/_app/immutable/chunks/luPa70aT.js.br +0 -0
- package/build/client/_app/immutable/chunks/luPa70aT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/{Y3845wkB.js → rwLE2q5W.js} +1 -1
- package/build/client/_app/immutable/chunks/rwLE2q5W.js.br +0 -0
- package/build/client/_app/immutable/chunks/rwLE2q5W.js.gz +0 -0
- package/build/client/_app/immutable/chunks/wHJhZAA4.js +1 -0
- package/build/client/_app/immutable/chunks/wHJhZAA4.js.br +0 -0
- package/build/client/_app/immutable/chunks/wHJhZAA4.js.gz +0 -0
- package/build/client/_app/immutable/entry/{app.C_f-0Vea.js → app.LCo0tRMU.js} +2 -2
- package/build/client/_app/immutable/entry/app.LCo0tRMU.js.br +0 -0
- package/build/client/_app/immutable/entry/app.LCo0tRMU.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js +1 -0
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.br +0 -0
- package/build/client/_app/immutable/entry/start.Ce3bAKNA.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{0.CycGUKhI.js → 0.DjC9pa5r.js} +1 -1
- package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.DjC9pa5r.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{1.70vrwjqS.js → 1.BGpUfjP8.js} +1 -1
- package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.BGpUfjP8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{10.CG7LxHir.js → 10.Dqja5Hy7.js} +1 -1
- package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.Dqja5Hy7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{11.CvQ4cyM3.js → 11.C2hpIuul.js} +1 -1
- package/build/client/_app/immutable/nodes/11.C2hpIuul.js.br +2 -0
- package/build/client/_app/immutable/nodes/11.C2hpIuul.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{12.D9IHJjN9.js → 12.D9gnyWPh.js} +1 -1
- package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.D9gnyWPh.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{13.D-hvVuS1.js → 13.DL0THiQT.js} +1 -1
- package/build/client/_app/immutable/nodes/13.DL0THiQT.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.DL0THiQT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{14.DfUdqoEO.js → 14.zHzRn1L0.js} +1 -1
- package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.zHzRn1L0.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{15.CZRsd2Eg.js → 15.CxiJzXJw.js} +1 -1
- package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CxiJzXJw.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{16.qfrdNFMy.js → 16.ltkCLaiY.js} +1 -1
- package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.ltkCLaiY.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{17.D83W_Tta.js → 17.8mjwurTl.js} +1 -1
- package/build/client/_app/immutable/nodes/17.8mjwurTl.js.br +0 -0
- package/build/client/_app/immutable/nodes/{17.D83W_Tta.js.gz → 17.8mjwurTl.js.gz} +0 -0
- package/build/client/_app/immutable/nodes/{19.BzcQyaMT.js → 19.DIpFUdcm.js} +1 -1
- package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.DIpFUdcm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{2.C5dTKKEn.js → 2.CarjBwi1.js} +1 -1
- package/build/client/_app/immutable/nodes/2.CarjBwi1.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CarjBwi1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{20.HovxKElE.js → 20.BP6YYSQm.js} +1 -1
- package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.BP6YYSQm.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{21.2vXCaqsr.js → 21.lQoTeuLN.js} +1 -1
- package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.lQoTeuLN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{22.C2_CQQkD.js → 22.DmHOHt5L.js} +1 -1
- package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.DmHOHt5L.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{23.DLyV0afL.js → 23.D7UbkVJG.js} +1 -1
- package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.D7UbkVJG.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{24.B3x35Hk8.js → 24.B6o--6Mq.js} +1 -1
- package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B6o--6Mq.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{25.nwMZWq7u.js → 25.C4hB5RaJ.js} +1 -1
- package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.C4hB5RaJ.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{26.Djo0UcCH.js → 26.CbeAF_H2.js} +1 -1
- package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.CbeAF_H2.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{28.SqN60QfL.js → 28.D3Nqqpa-.js} +1 -1
- package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.D3Nqqpa-.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{3.CNDDXR-R.js → 3.BgWGx5YP.js} +1 -1
- package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.BgWGx5YP.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{4.Dajo6qs6.js → 4.CmSxKRLa.js} +1 -1
- package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.CmSxKRLa.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{6.BHt0DwZF.js → 6.CExYN4s7.js} +1 -1
- package/build/client/_app/immutable/nodes/6.CExYN4s7.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.CExYN4s7.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{7.BIfa9MqV.js → 7.B5DaW8rR.js} +1 -1
- package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.B5DaW8rR.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{8.CKbZrwQ8.js → 8.BAxGmD9j.js} +1 -1
- package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.BAxGmD9j.js.gz +0 -0
- package/build/client/_app/immutable/nodes/{9.BbThPsu4.js → 9.B05Fdcd3.js} +1 -1
- package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.B05Fdcd3.js.gz +0 -0
- package/build/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-K2fb6vUl.js → detail.js-Cl-2Oh1e.js} +2 -2
- package/build/server/chunks/chunks/{feedback.js-gBLi4FYP.js → feedback.js-7UNSvLAt.js} +2 -2
- package/build/server/chunks/chunks/{internal.js-BOM77MfQ.js → internal.js-DK7xaPVY.js} +3 -3
- package/build/server/chunks/chunks/{keychain.js-DDSo_IW8.js → keychain.js-CJIUvfTQ.js} +2 -2
- package/build/server/chunks/chunks/{marketplace-service.js-QhO4MhZa.js → marketplace-service.js-nufBLQts.js} +2 -2
- package/build/server/chunks/chunks/{page.js-6KzOUc5P.js → page.js-BVYP5P0m.js} +2 -2
- package/build/server/chunks/chunks/{previewhelper2.js-Dza1zgQB.js → previewhelper2.js-DPz8atKx.js} +2 -2
- package/build/server/chunks/chunks/{repo.js-Aq4DOLtb.js → repo.js-CPooM_kq.js} +2 -2
- package/build/server/chunks/chunks/{runtime.js-DKYCLRYC.js → runtime.js-Bj0q2OTu.js} +26 -9
- package/build/server/chunks/chunks/{service.js-D9kA6Dvq.js → service.js-VAj_rquU.js} +2 -2
- package/build/server/chunks/chunks/{service2.js-Dx7TTUyO.js → service2.js-CbbDamOZ.js} +13 -3
- package/build/server/chunks/chunks/{starter.js-BjLPYDEU.js → starter.js-Bs7SaswL.js} +2 -2
- package/build/server/chunks/chunks/{terminal.js-Cr5N1hVN.js → terminal.js-D6YKc4IS.js} +2 -2
- package/build/server/chunks/chunks/{view.js-D6_Y6e4W.js → view.js-BiofJDNZ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/apps/_op_/{_server.ts.js-C8-Bqwz2.js → _server.ts.js-Bjepmw90.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/cloud/{_server.ts.js-iHvZiw6L.js → _server.ts.js-BkCwjJYX.js} +3 -3
- package/build/server/chunks/entries/endpoints/api/cloud/previews/{_server.ts.js-C2083EnL.js → _server.ts.js-CXvN0rdQ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/events/{_server.ts.js-DXerC_lz.js → _server.ts.js-v08IH4y_.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/files/{_server.ts.js-DkrVdgsY.js → _server.ts.js-d0XuZob6.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/chat/{_server.ts.js-itkq-Zhc.js → _server.ts.js-CZEvtgmJ.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/commands/{_server.ts.js-BClrQ76Y.js → _server.ts.js-DojVtSlb.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/dismiss/{_server.ts.js-CSaP0hys.js → _server.ts.js-DXBMuJxa.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/input/{_server.ts.js-Cpm8-Jaf.js → _server.ts.js-CL2HsmMI.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/interrupt/{_server.ts.js-DxSC3HLK.js → _server.ts.js-Bi8yHsen.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/messages/{_server.ts.js-CITZvyir.js → _server.ts.js-CiPPnBqE.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/pick/{_server.ts.js-7uCkkloP.js → _server.ts.js-Dm0WehBE.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/reactions/{_server.ts.js-RSm-5UF2.js → _server.ts.js-CmK0bQFV.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/firstmate/start/{_server.ts.js-CbHftl32.js → _server.ts.js-CIR1beQf.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/fleet/{_server.ts.js-DTbyWHA5.js → _server.ts.js-B7G60uTf.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/gateway/{_server.ts.js-Dgj64C-8.js → _server.ts.js-BKqRzjah.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/health/{_server.ts.js-8Ao3NA-E.js → _server.ts.js-DxYmytE-.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/{_server.ts.js-DGBE7UIq.js → _server.ts.js-BHywbWob.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/inbox/report/{_server.ts.js-DqkXU31r.js → _server.ts.js-CK3DFFDx.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/insights/{_server.ts.js-DVanxkdv.js → _server.ts.js-AUTZjM3m.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/config/{_server.ts.js-Cm68Rf5I.js → _server.ts.js-COr7_-xt.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/{_server.ts.js-3OGDAdpk.js → _server.ts.js-DdgCnxxi.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/feedback/summary/{_server.ts.js-CFU80BaE.js → _server.ts.js-B-Bt7Bbc.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/icon/_icon_/{_server.ts.js-KWWnKNbi.js → _server.ts.js-DI9Fk8K7.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/load/{_server.ts.js-B_5x0zJS.js → _server.ts.js-BQvP1Q-R.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/ui/_...path_/{_server.ts.js-C90RNY_X.js → _server.ts.js-CmtQrDJT.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/_plugin_/update/{_server.ts.js-DvGxNP7H.js → _server.ts.js-CU0RTwoG.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/{_server.ts.js-CiLDpQsQ.js → _server.ts.js-Bdirqc6N.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/inspect/{_server.ts.js-B1XZhaia.js → _server.ts.js-EbyqpOEx.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/install/{_server.ts.js-DSD7vM9f.js → _server.ts.js-BwkGtYFQ.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/{_server.ts.js-CSXJmx4K.js → _server.ts.js-CYD7YCIF.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/icon/_name_/{_server.ts.js-CBscduVo.js → _server.ts.js-gmMaK6QY.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/marketplace/registries/{_server.ts.js-CbuLtoHm.js → _server.ts.js-D43_Ml9Y.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/plugins/roles/{_server.ts.js-Dwfzypry.js → _server.ts.js-BEUuxHTl.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/plugins/updates/{_server.ts.js-B5BKYa3M.js → _server.ts.js-C1xwZyfT.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/previews/check/{_server.ts.js-C4c7W5Q_.js → _server.ts.js-qZdJXsGA.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/{_server.ts.js-D6V8uWHn.js → _server.ts.js-BM-c0-Ju.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/commands/{_server.ts.js-B2ihTXgb.js → _server.ts.js-CHIAK59y.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/consent/{_server.ts.js-kXH0W1Ky.js → _server.ts.js-CH1IHuDe.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/draft/{_server.ts.js-DzwBz0wz.js → _server.ts.js-DgeSMGot.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/file/{_server.ts.js-uTK3V5EE.js → _server.ts.js-BQQc8aTH.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/projects/_id_/passage/test/{_server.ts.js-Cl4zIULt.js → _server.ts.js-D92Af8_M.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/second-mates/_id_/peek/{_server.ts.js-DqjxxFau.js → _server.ts.js-7v53Dp0B.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/services/{_server.ts.js-dVN9ikOu.js → _server.ts.js-cTrwNrLS.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/setup/{_server.ts.js-_iOzae7t.js → _server.ts.js-CmmK_jyt.js} +6 -6
- package/build/server/chunks/entries/endpoints/api/slots/{_server.ts.js-XMhnf3Ej.js → _server.ts.js-D7-4JbRn.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/{_server.ts.js-KZTObDbB.js → _server.ts.js-BI5hlIlZ.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/artifacts/_...name_/{_server.ts.js-DyjUgwF7.js → _server.ts.js-DIP-NQ7a.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/diff/{_server.ts.js-CalJli32.js → _server.ts.js-BP9_6wCq.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/output/{_server.ts.js-DWPP0yu8.js → _server.ts.js-BxO3Yh5r.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/{_server.ts.js-0Nyn7nbY.js → _server.ts.js-jojxY4wz.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/tasks/_id_/preview/helper/{_server.ts.js-3z5OVCPe.js → _server.ts.js-BAgqe8_d.js} +5 -5
- package/build/server/chunks/entries/endpoints/api/vault/{_server.ts.js-AbPbPvOK.js → _server.ts.js-DBYZ3kuk.js} +4 -4
- package/build/server/chunks/entries/endpoints/api/wheelhouse/source/{_server.ts.js-D029CrEh.js → _server.ts.js-Bvrz69xX.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/update/{_server.ts.js-BfHTqL2O.js → _server.ts.js-CAOg-IEp.js} +2 -2
- package/build/server/chunks/entries/endpoints/api/wheelhouse/upgrade/{_server.ts.js-CIRed7Ae.js → _server.ts.js-CGEnB-6H.js} +2 -2
- package/build/server/chunks/entries/endpoints/tasks/_id_/review/{_server.ts.js-CvvKgDa5.js → _server.ts.js-BL2svrRm.js} +4 -4
- package/build/server/chunks/entries/{hooks.server.js-C9TJKrED.js → hooks.server.js-BEXBvrCk.js} +5 -5
- package/build/server/chunks/entries/pages/{_layout.server.ts.js-BfjTrg6R.js → _layout.server.ts.js-D3NceNiH.js} +2 -2
- package/build/server/chunks/entries/pages/{_page.server.ts.js-BFfRDA3t.js → _page.server.ts.js-DspaiJqP.js} +2 -2
- package/build/server/chunks/entries/pages/decisions/{_page.server.ts.js-aZNQQOb5.js → _page.server.ts.js-BmPOLjxU.js} +2 -2
- package/build/server/chunks/entries/pages/deck/{_page.server.ts.js-CLBsxhmZ.js → _page.server.ts.js-CCy338c9.js} +2 -2
- package/build/server/chunks/entries/pages/files/{_page.server.ts.js-Dtrn3Jt8.js → _page.server.ts.js-bxjhlft-.js} +2 -2
- package/build/server/chunks/entries/pages/harbour/{_page.server.ts.js-DYrU0BeU.js → _page.server.ts.js-CZFURrsD.js} +2 -2
- package/build/server/chunks/entries/pages/headroom/{_page.server.ts.js-UKBrFpbo.js → _page.server.ts.js-DvR2S3u3.js} +2 -2
- package/build/server/chunks/entries/pages/inbox/{_page.server.ts.js-COlncgCa.js → _page.server.ts.js-BesipmjT.js} +2 -2
- package/build/server/chunks/entries/pages/plugins/_plugin_/_page_/{_page.server.ts.js-Bay2qA2Q.js → _page.server.ts.js-DHdujj6W.js} +2 -2
- package/build/server/chunks/entries/pages/projects/_id_/{_page.server.ts.js-CU7ds9LA.js → _page.server.ts.js-xmIQiuu2.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/_plugin_/_tab_/{_page.server.ts.js-BGGSKQqb.js → _page.server.ts.js-D_Ii0uof.js} +3 -3
- package/build/server/chunks/entries/pages/projects/_id_/passage/{_page.server.ts.js-CnSUSATt.js → _page.server.ts.js-n6e3g77p.js} +4 -4
- package/build/server/chunks/entries/pages/projects/_id_/passage/edit/{_page.server.ts.js-_7cU19E_.js → _page.server.ts.js-ZJwXvTNk.js} +2 -2
- package/build/server/chunks/entries/pages/remotes/{_page.server.ts.js-C1Yxudql.js → _page.server.ts.js-DbD1fRK0.js} +2 -2
- package/build/server/chunks/entries/pages/settings/cloud/{_page.server.ts.js-DTNE52aZ.js → _page.server.ts.js-C_UO9VhC.js} +2 -2
- package/build/server/chunks/entries/pages/settings/gateway/{_page.server.ts.js-CrhYOE-D.js → _page.server.ts.js-DmW9-_yt.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/{_page.server.ts.js-CifBaqFj.js → _page.server.ts.js-BxdFy--G.js} +2 -2
- package/build/server/chunks/entries/pages/settings/plugins/_plugin_/{_page.server.ts.js-EKuElYxp.js → _page.server.ts.js-BfkLEaaA.js} +2 -2
- package/build/server/chunks/entries/pages/settings/setup/{_page.server.ts.js-BF8rdJhn.js → _page.server.ts.js-CkR40WPa.js} +2 -2
- package/build/server/chunks/entries/pages/settings/update/{_page.server.ts.js-CrElCh4A.js → _page.server.ts.js-CN1Ahy44.js} +2 -2
- package/build/server/chunks/entries/pages/setup/{_page.server.ts.js-wycRiBir.js → _page.server.ts.js-4IWnC99t.js} +4 -4
- package/build/server/chunks/entries/pages/setup/{_page.svelte.js-C1CXNUmI.js → _page.svelte.js-Beyd7UV-.js} +2 -2
- package/build/server/chunks/entries/pages/tasks/_id_/{_page.server.ts.js-CYQPki7W.js → _page.server.ts.js-BOxovAbm.js} +3 -3
- package/build/server/chunks/entries/pages/tasks/_id_/doc/{_page.server.ts.js-ecgyPy_T.js → _page.server.ts.js-Bmg4TjLJ.js} +2 -2
- package/build/server/chunks/entries/pages/time/{_page.server.ts.js-DSQc-xWi.js → _page.server.ts.js-D7R4GOAK.js} +2 -2
- package/build/server/chunks/{handler-BHDQVtZw.js → handler-Bsxke96k.js} +3 -3
- package/build/server/chunks/{index.js-CrFdVwqU.js → index.js-CcawFdzD.js} +2 -2
- package/build/server/chunks/{manifest.js-Dja0Po5-.js → manifest.js-DkK5FPTc.js} +87 -87
- package/build/server/chunks/nodes/{0.js-NNn8Cg6_.js → 0.js-Dr88qrfQ.js} +6 -6
- package/build/server/chunks/nodes/{1.js-B4fNjYoV.js → 1.js-D9Gz264j.js} +2 -2
- package/build/server/chunks/nodes/{10.js-CmLFT1Pj.js → 10.js-DyFJpcP6.js} +2 -2
- package/build/server/chunks/nodes/{11.js-BQqPaZKt.js → 11.js-CHYjTTCN.js} +6 -6
- package/build/server/chunks/nodes/{12.js-uooOT7mU.js → 12.js-CMF6MLfu.js} +7 -7
- package/build/server/chunks/nodes/{13.js-Bwsn9ad_.js → 13.js-Y2UOSc1A.js} +7 -7
- package/build/server/chunks/nodes/{14.js-RxQ3KjAZ.js → 14.js-B1dU02LJ.js} +8 -8
- package/build/server/chunks/nodes/{15.js-mrYlzb81.js → 15.js-s36rxaaa.js} +7 -7
- package/build/server/chunks/nodes/{16.js-Uqhuspdc.js → 16.js-C_GznDot.js} +6 -6
- package/build/server/chunks/nodes/{17.js-xO4_vt9v.js → 17.js-B_z-Yacj.js} +2 -2
- package/build/server/chunks/nodes/{19.js-Bp0kyiVl.js → 19.js-7kkszInA.js} +6 -6
- package/build/server/chunks/nodes/{2.js-DiF_CXqM.js → 2.js-BoKn8yL8.js} +6 -6
- package/build/server/chunks/nodes/{20.js--x681h54.js → 20.js-Duw5u3lU.js} +6 -6
- package/build/server/chunks/nodes/{21.js-BWa_e-es.js → 21.js-DDgwWnZG.js} +6 -6
- package/build/server/chunks/nodes/{22.js-yLTp3XfM.js → 22.js-8U2MYvHd.js} +6 -6
- package/build/server/chunks/nodes/{23.js-gx53Nzzh.js → 23.js-Dvy1bm8Z.js} +7 -7
- package/build/server/chunks/nodes/{24.js-Ci8dS_77.js → 24.js-C0hrPaj8.js} +4 -4
- package/build/server/chunks/nodes/{25.js-WBDsJGik.js → 25.js-DPILN__F.js} +8 -8
- package/build/server/chunks/nodes/{26.js-CZ4lN-gH.js → 26.js-g0xLmQX6.js} +7 -7
- package/build/server/chunks/nodes/{27.js-DPEzrdzK.js → 27.js-D-RYuUrP.js} +6 -6
- package/build/server/chunks/nodes/{28.js-BJ38Ryxz.js → 28.js-ChEjRlOd.js} +6 -6
- package/build/server/chunks/nodes/{3.js-D52LKb1w.js → 3.js-2LHex_7S.js} +6 -6
- package/build/server/chunks/nodes/{4.js-DDItN7w8.js → 4.js-B0jcFsXF.js} +6 -6
- package/build/server/chunks/nodes/{5.js-DJ1sVBVf.js → 5.js-CeqH-HPW.js} +5 -5
- package/build/server/chunks/nodes/{6.js-D_Aqt_hx.js → 6.js-BuLAK7U9.js} +6 -6
- package/build/server/chunks/nodes/{7.js-tS4lw5ka.js → 7.js-Ipoo2cZQ.js} +6 -6
- package/build/server/chunks/nodes/{8.js-ChN4dMEU.js → 8.js-BffjWe3B.js} +6 -6
- package/build/server/chunks/nodes/{9.js-BpLLOWXa.js → 9.js-CCDefHMh.js} +2 -2
- package/dist/cli.js +1 -1
- package/dist/wh-vault.js +1 -1
- package/package.json +2 -1
- package/skills/manage-wheelhouse/references/operations.md +30 -30
- package/build/client/_app/immutable/chunks/0RGfo0js.js.br +0 -2
- package/build/client/_app/immutable/chunks/0RGfo0js.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B13jYnr5.js.br +0 -0
- package/build/client/_app/immutable/chunks/B13jYnr5.js.gz +0 -0
- package/build/client/_app/immutable/chunks/B5OMEixy.js.br +0 -0
- package/build/client/_app/immutable/chunks/B5OMEixy.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BDhezwGC.js.br +0 -0
- package/build/client/_app/immutable/chunks/BDhezwGC.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bd8l0yTM.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bd8l0yTM.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BisZnsml.js.br +0 -0
- package/build/client/_app/immutable/chunks/BisZnsml.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bl_aeMq-.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bl_aeMq-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Bm06it9w.js.br +0 -0
- package/build/client/_app/immutable/chunks/Bm06it9w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BvPKyGA8.js.br +0 -0
- package/build/client/_app/immutable/chunks/BvPKyGA8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/C8rIEWKQ.js.br +0 -0
- package/build/client/_app/immutable/chunks/C8rIEWKQ.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ClopdZ_7.js.br +0 -0
- package/build/client/_app/immutable/chunks/ClopdZ_7.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cv4HO3U0.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cv4HO3U0.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Cwq50RB4.js.br +0 -0
- package/build/client/_app/immutable/chunks/Cwq50RB4.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DJmeKpkq.js.br +0 -0
- package/build/client/_app/immutable/chunks/DJmeKpkq.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Drqp3nkL.js.br +0 -0
- package/build/client/_app/immutable/chunks/HCiUQtkc.js +0 -2
- package/build/client/_app/immutable/chunks/HCiUQtkc.js.br +0 -0
- package/build/client/_app/immutable/chunks/HCiUQtkc.js.gz +0 -0
- package/build/client/_app/immutable/chunks/V46v89bT.js +0 -1
- package/build/client/_app/immutable/chunks/V46v89bT.js.br +0 -0
- package/build/client/_app/immutable/chunks/V46v89bT.js.gz +0 -0
- package/build/client/_app/immutable/chunks/XSztV5e-.js +0 -1
- package/build/client/_app/immutable/chunks/XSztV5e-.js.br +0 -0
- package/build/client/_app/immutable/chunks/XSztV5e-.js.gz +0 -0
- package/build/client/_app/immutable/chunks/Y3845wkB.js.br +0 -0
- package/build/client/_app/immutable/chunks/Y3845wkB.js.gz +0 -0
- package/build/client/_app/immutable/chunks/gS_jJyWs.js.br +0 -0
- package/build/client/_app/immutable/chunks/gS_jJyWs.js.gz +0 -0
- package/build/client/_app/immutable/chunks/rWDJOr9L.js.br +0 -0
- package/build/client/_app/immutable/chunks/rWDJOr9L.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.C_f-0Vea.js.br +0 -0
- package/build/client/_app/immutable/entry/app.C_f-0Vea.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CmPU2liD.js +0 -1
- package/build/client/_app/immutable/entry/start.CmPU2liD.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CmPU2liD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.CycGUKhI.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.CycGUKhI.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.70vrwjqS.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.70vrwjqS.js.gz +0 -0
- package/build/client/_app/immutable/nodes/10.CG7LxHir.js.br +0 -0
- package/build/client/_app/immutable/nodes/10.CG7LxHir.js.gz +0 -0
- package/build/client/_app/immutable/nodes/11.CvQ4cyM3.js.br +0 -0
- package/build/client/_app/immutable/nodes/11.CvQ4cyM3.js.gz +0 -0
- package/build/client/_app/immutable/nodes/12.D9IHJjN9.js.br +0 -0
- package/build/client/_app/immutable/nodes/12.D9IHJjN9.js.gz +0 -0
- package/build/client/_app/immutable/nodes/13.D-hvVuS1.js.br +0 -0
- package/build/client/_app/immutable/nodes/13.D-hvVuS1.js.gz +0 -0
- package/build/client/_app/immutable/nodes/14.DfUdqoEO.js.br +0 -0
- package/build/client/_app/immutable/nodes/14.DfUdqoEO.js.gz +0 -0
- package/build/client/_app/immutable/nodes/15.CZRsd2Eg.js.br +0 -0
- package/build/client/_app/immutable/nodes/15.CZRsd2Eg.js.gz +0 -0
- package/build/client/_app/immutable/nodes/16.qfrdNFMy.js.br +0 -0
- package/build/client/_app/immutable/nodes/16.qfrdNFMy.js.gz +0 -0
- package/build/client/_app/immutable/nodes/17.D83W_Tta.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BzcQyaMT.js.br +0 -0
- package/build/client/_app/immutable/nodes/19.BzcQyaMT.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.C5dTKKEn.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.C5dTKKEn.js.gz +0 -0
- package/build/client/_app/immutable/nodes/20.HovxKElE.js.br +0 -0
- package/build/client/_app/immutable/nodes/20.HovxKElE.js.gz +0 -0
- package/build/client/_app/immutable/nodes/21.2vXCaqsr.js.br +0 -0
- package/build/client/_app/immutable/nodes/21.2vXCaqsr.js.gz +0 -0
- package/build/client/_app/immutable/nodes/22.C2_CQQkD.js.br +0 -0
- package/build/client/_app/immutable/nodes/22.C2_CQQkD.js.gz +0 -0
- package/build/client/_app/immutable/nodes/23.DLyV0afL.js.br +0 -0
- package/build/client/_app/immutable/nodes/23.DLyV0afL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/24.B3x35Hk8.js.br +0 -0
- package/build/client/_app/immutable/nodes/24.B3x35Hk8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/25.nwMZWq7u.js.br +0 -0
- package/build/client/_app/immutable/nodes/25.nwMZWq7u.js.gz +0 -0
- package/build/client/_app/immutable/nodes/26.Djo0UcCH.js.br +0 -0
- package/build/client/_app/immutable/nodes/26.Djo0UcCH.js.gz +0 -0
- package/build/client/_app/immutable/nodes/28.SqN60QfL.js.br +0 -0
- package/build/client/_app/immutable/nodes/28.SqN60QfL.js.gz +0 -0
- package/build/client/_app/immutable/nodes/3.CNDDXR-R.js.br +0 -0
- package/build/client/_app/immutable/nodes/3.CNDDXR-R.js.gz +0 -0
- package/build/client/_app/immutable/nodes/4.Dajo6qs6.js.br +0 -0
- package/build/client/_app/immutable/nodes/4.Dajo6qs6.js.gz +0 -0
- package/build/client/_app/immutable/nodes/6.BHt0DwZF.js.br +0 -0
- package/build/client/_app/immutable/nodes/6.BHt0DwZF.js.gz +0 -0
- package/build/client/_app/immutable/nodes/7.BIfa9MqV.js.br +0 -0
- package/build/client/_app/immutable/nodes/7.BIfa9MqV.js.gz +0 -0
- package/build/client/_app/immutable/nodes/8.CKbZrwQ8.js.br +0 -0
- package/build/client/_app/immutable/nodes/8.CKbZrwQ8.js.gz +0 -0
- package/build/client/_app/immutable/nodes/9.BbThPsu4.js.br +0 -0
- package/build/client/_app/immutable/nodes/9.BbThPsu4.js.gz +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{l as ee}from"./
|
|
1
|
+
import{l as ee}from"./DglJ92hi.js";import{S as ae}from"./BXN538J3.js";import"./DsnmJJEf.js";import{h,s as f,r as b,n as te,t as k,d as z,a as l,c as u,p as se,j as L,f as W,g as i,o as D,b as oe}from"./BuRWgnCz.js";import{i as g}from"./BDpRITyb.js";import{a as A,e as H,f as J,j as re,k as ie,r as ne,s as le}from"./Cwb6d3g_.js";import{L as Y}from"./CP7u-DWX.js";import{C as B}from"./cmRB1an4.js";import{a as pe}from"./BMFk7aZ6.js";import{p as G}from"./BAOiF0in.js";async function d(e,a,s){try{const p=await fetch(e,a===null?void 0:{method:"POST",headers:{"content-type":"application/json",[ae]:a},body:JSON.stringify(s??{})}),v=await p.json().catch(()=>null);return p.ok&&v?{ok:!0,value:v}:{ok:!1,error:v?.message??`Wheelhouse answered ${p.status}.`}}catch{return{ok:!1,error:"Wheelhouse did not answer."}}}const Ee=()=>d("/api/plugins/updates",null),Ne=e=>d("/api/plugins/updates",e),Oe=(e=!1)=>d(`/api/plugins/marketplace${e?"?refresh=1":""}`,null),Te=(e,a)=>d("/api/plugins/marketplace/registries",a,{add:e}),We=(e,a)=>d("/api/plugins/marketplace/registries",a,{remove:e}),Ae=(e,a)=>d("/api/plugins/inspect",a,e),Fe=(e,a,s)=>d("/api/plugins/install",s,{repo:e.repository,ref:e.ref,commit:e.commit,settings:a}),Le=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e.id)}/update`,s,{ref:e.ref,commit:e.commit,settings:a});function De(e=6e4){return new Promise(a=>{const s=setTimeout(()=>{p(),a(!1)},e),p=ee.onRestart(()=>{clearTimeout(s),p(),a(!0)})})}const He=(e,a,s)=>d(`/api/plugins/${encodeURIComponent(e)}/config`,s,a),Je=(e,a,s)=>d("/api/plugins/roles",s,{role:e,provider:a}),Ye=(e,a)=>d(`/api/plugins/${encodeURIComponent(e)}/load`,a);var ce=u('<span class="size-4 text-center" aria-hidden="true">·</span>'),ue=u(`<p class="mt-3 text-xs text-muted-foreground">Wheelhouse has not come back yet. If it stays away, run <code>wheelhouse open</code> again; the
|
|
2
2
|
change is kept.</p>`),de=u('<div aria-live="polite"><ol class="grid gap-1.5"><li class="flex items-center gap-2"><!> </li> <li><!>Restart Wheelhouse to load it</li></ol> <!></div>');function Be(e,a){var s=de(),p=h(s),v=h(p),w=h(v);{var I=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},R=o=>{B(o,{class:"size-4 text-success"})};g(w,o=>{a.phase==="saving"?o(I):o(R,-1)})}var r=f(w,1,!0);b(v);var _=f(v,2),S=h(_);{var C=o=>{Y(o,{class:"size-4 animate-spin text-sea"})},E=o=>{B(o,{class:"size-4 text-success"})},N=o=>{var P=ce();l(o,P)};g(S,o=>{a.phase==="restarting"||a.phase==="slow"?o(C):a.phase==="done"?o(E,1):o(N,-1)})}te(),b(_),b(p);var O=f(p,2);{var q=o=>{var P=ue();l(o,P)};g(O,o=>{a.phase==="slow"&&o(q)})}b(s),k(()=>{z(r,a.label),A(_,1,`flex items-center gap-2 ${a.phase==="saving"?"text-muted-foreground":""}`)}),l(e,s)}const ve=e=>e===void 0?"":e===!0?"yes":e===!1?"no":Array.isArray(e)?e.join(", "):String(e),Ge=e=>Object.fromEntries(e.map(a=>[a.key,ve(a.current??a.default)]));var me=u('<span class="text-danger" aria-hidden="true"> *</span>'),fe=u('<span class="text-muted-foreground"> (optional)</span>'),ge=u("<option>Not set</option>"),_e=u("<option> </option>"),he=u("<option>Yes</option> <option>No</option>",1),be=u("<select><!><!></select>"),xe=u('<input type="text" autocomplete="off" spellcheck="false"/>'),ye=u('<span class="text-xs text-muted-foreground"> </span>'),ke=u('<label class="grid gap-1"><span class="text-xs"> <!></span> <!> <!></label>');function Ke(e,a){se(a,!0);let s=G(a,"answers",15),p=G(a,"disabled",3,!1);const v="h-9 rounded-md border border-input bg-background px-2.5 text-sm outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-60";var w=L(),I=W(w);H(I,17,()=>a.settings,R=>R.key,(R,r)=>{var _=ke(),S=h(_),C=h(S,!0),E=f(C);{var N=n=>{var t=me();l(n,t)},O=n=>{var t=fe();l(n,t)};g(E,n=>{i(r).required?n(N):n(O,-1)})}b(S);var q=f(S,2);{var o=n=>{var t=be();A(t,1,J(v));var x=h(t);{var Q=c=>{var m=ge();m.value=m.__value="",l(c,m)};g(x,c=>{i(r).required||c(Q)})}var V=f(x);{var X=c=>{var m=L(),j=W(m);H(j,17,()=>i(r).options,y=>y.value,(y,F)=>{var U=_e(),$=D(U,!0),T={};k(()=>{z($,i(F).label),T!==(T=i(F).value)&&(U.value=(U.__value=T)??"")}),l(y,U)}),l(c,m)},Z=c=>{var m=he(),j=W(m);j.value=j.__value="yes";var y=f(j,2);y.value=y.__value="no",l(c,m)};g(V,c=>{i(r).options?c(X):c(Z,-1)})}b(t),re(t),k(()=>{t.required=i(r).required,t.disabled=p()}),ie(t,()=>s()[i(r).key],c=>s(s()[i(r).key]=c,!0)),l(n,t)},P=n=>{var t=xe();ne(t),A(t,1,J(v)),k(()=>{le(t,"inputmode",i(r).type==="number"?"decimal":void 0),t.required=i(r).required,t.disabled=p()}),pe(t,()=>s()[i(r).key],x=>s(s()[i(r).key]=x,!0)),l(n,t)};g(q,n=>{i(r).type==="boolean"||i(r).options?n(o):n(P,-1)})}var K=f(q,2);{var M=n=>{var t=ye(),x=D(t);k(()=>z(x,`${i(r).description??""??""}${i(r).type==="list"?`${i(r).description?" ":""}Separate them with commas.`:""}`)),l(n,t)};g(K,n=>{(i(r).description||i(r).type==="list")&&n(M)})}b(_),k(()=>z(C,i(r).title)),l(R,_)}),l(e,w),oe()}export{Be as C,Ke as S,Ge as a,De as b,He as c,Ae as d,Ne as e,Je as f,Te as g,ve as h,Fe as i,Ye as l,Oe as m,Ee as p,We as r,Le as u};
|
|
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"./BSBcdyd3.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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r}from"./
|
|
1
|
+
import{p as r}from"./CSzf141e.js";const t={get data(){return r.data},get error(){return r.error},get form(){return r.form},get params(){return r.params},get route(){return r.route},get state(){return r.state},get status(){return r.status},get url(){return r.url}},a=t;export{a as p};
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{s as g,r as m,p}from"./BAOiF0in.js";import{I as u}from"./xH4qmLqM.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./BuRWgnCz.js";import{p as i}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{s as g,r as m,p}from"./BAOiF0in.js";import{I as u}from"./xH4qmLqM.js";import{p as f,v as x,g as r,b as w,m as v,i as o}from"./BuRWgnCz.js";import{p as i}from"./BSBcdyd3.js";import{i as s}from"./CspN1OJw.js";import{D as _,a as D}from"./Dcf7qESD.js";var b=new Set(["$$slots","$$events","$$legacy"]);function I(a,e){let n=m(e,b);const t={name:"git-merge",size:24,node:[["circle",{cx:"18",cy:"18",r:"3"}],["circle",{cx:"6",cy:"6",r:"3"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9"}]]};u(a,g(()=>n,{get icon(){return t}}))}function L(a,e){f(e,!0);let n=p(e,"project",3,null),t=v(!1);const c=o(()=>i.data.sessionToken??"");{let l=o(()=>s.view(i.data.inbox)?.canAnswer??!1),d=o(()=>s.errors[e.card.id]??null);_(a,{get card(){return e.card},get project(){return n()},get expanded(){return r(t)},get canAnswer(){return r(l)},get error(){return r(d)},get now(){return e.now},onAgree:()=>D(e.card,r(c)),get onLater(){return e.onLater},onClose:()=>s.answer(e.card,"close",null,r(c)),onToggle:()=>x(t,!r(t))})}w()}export{I as G,L as O};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{l as D,p as N,f as G,h as P,n as J,r as k,s as w,g as r,y as H,a as c,b as O,m as j,v as M,c as f,i as C,t as p,o as y,d as q}from"./BuRWgnCz.js";import{i as F}from"./BDpRITyb.js";import{M as K,P as Q}from"./luPa70aT.js";import{e as U,a as T,s as _,d as V}from"./Cwb6d3g_.js";import{p as S}from"./BAOiF0in.js";import{l as X}from"./DglJ92hi.js";import{s as Y,c as Z}from"./BB2roMZd.js";import{e as $,C as ee}from"./CR7y1ULG.js";import{C as te}from"./D2ynzrtM.js";var ae=f('<div class="relative z-10 mt-3" data-card-preview=""><button type="button" class="inline-flex items-center gap-1.5 rounded-md text-xs font-medium text-sea hover:underline" aria-haspopup="dialog"><!>Open live preview</button></div> <!>',1);function ke(z,e){N(e,!0);let s=j(null),o=j(!1);function x(n){const l=n.currentTarget,u=l.closest("article"),L=u?.querySelector("[data-card-picture]");M(s,(L??u??l).getBoundingClientRect(),!0),M(o,!0)}var v=ae(),i=G(v),d=P(i),h=P(d);K(h,{class:"size-3.5","aria-hidden":"true"}),J(),k(d),k(i);var E=w(i,2);{var g=n=>{{let l=C(()=>e.task.preview?.url??""),u=C(()=>e.task.status!=="landed");Q(n,{get taskId(){return e.task.id},get title(){return e.task.shortTitle},get url(){return r(l)},get talk(){return r(u)},get from(){return r(s)},onclose:()=>M(o,!1)})}};F(E,n=>{r(o)&&e.task.preview&&n(g)})}H("click",d,x),c(z,v),O()}D(["click"]);const re={done:"bg-foreground/45",active:"bg-foreground",fixing:"bg-foreground",waiting:"bg-warning",failed:"bg-danger",skipped:"border border-dashed border-muted-foreground/50",todo:"bg-border"},B={done:"done",active:"under way",fixing:"fixing",waiting:"waiting on Firstmate",failed:"failed",skipped:"skipped",todo:"not reached"};var ne=f("<li></li>"),oe=f("<span> </span>"),se=f('<button type="button" class="relative z-10 cursor-pointer text-left text-foreground/80 underline decoration-foreground/30 underline-offset-2 hover:text-foreground hover:decoration-foreground" data-checks-questions=""> </button>'),ie=f('<span class="text-foreground/80"> </span>'),le=f('<div data-checks=""><ol class="grid gap-0.5"></ol> <p data-checks-line=""><!> <!></p></div>');function we(z,e){N(e,!0);let s=S(e,"busy",3,!1),o=S(e,"lead",3,null),x=S(e,"leadClass",3,""),v=S(e,"size",3,"card"),i=S(e,"questions",3,null);const d=C(()=>e.pipeline.steps.map(t=>({s:t,tone:Y(t,e.pipeline)}))),h=C(()=>Z(e.pipeline,X.now)),E=C(()=>`Checks: ${r(d).map(({s:t,tone:a})=>`${t.label} ${B[a]}`).join(", ")}`);var g=le(),n=P(g);U(n,21,()=>r(d),({s:t,tone:a})=>t.key,(t,a)=>{let m=()=>r(a).s,b=()=>r(a).tone;var I=ne();p(()=>{T(I,1,`h-1 rounded-full ${re[b()]??""} ${s()&&(b()==="active"||b()==="fixing")?"motion-safe:animate-pulse":""}`),_(I,"title",`${m().label??""}: ${B[b()]??""}`)}),c(t,I)}),k(n);var l=w(n,2),u=P(l);{var L=t=>{var a=oe(),m=y(a);p(()=>{T(a,1,`font-medium ${x()??""}`),q(m,`${o()??""}.`)}),c(t,a)};F(u,t=>{o()&&t(L)})}var R=w(u,2);{var W=t=>{var a=se(),m=y(a,!0);p(()=>{_(a,"aria-expanded",i().expanded),_(a,"aria-controls",i().controls),_(a,"title",i().expanded?"Hide the questions":"Show the questions"),q(m,r(h))}),H("click",a,function(...b){i().toggle?.apply(this,b)}),c(t,a)},A=t=>{var a=ie(),m=y(a,!0);p(()=>q(m,r(h))),c(t,a)};F(R,t=>{i()?t(W):t(A,-1)})}k(l),k(g),p(()=>{V(n,`grid-template-columns: repeat(${r(d).length??""}, minmax(0, 1fr))`),_(n,"aria-label",r(E)),T(l,1,`tabular line-clamp-2 text-muted-foreground ${v()==="rail"?"mt-1 text-xs leading-snug":"mt-1.5 text-sm"}`)}),c(z,g),O()}D(["click"]);var de=f('<span class="shrink-0 text-muted-foreground"> </span>'),ue=f('<p><!> <span class="truncate font-medium"> </span> <!> <span class="sr-only"> </span></p>');function Ce(z,e){N(e,!0);const s=C(()=>$(e.eta));var o=ue(),x=P(o);te(x,{class:"size-3.5 shrink-0","aria-hidden":"true"});var v=w(x,2),i=y(v,!0),d=w(v,2);{var h=n=>{var l=de(),u=y(l);p(L=>q(u,`· ${L??""}`),[()=>ee[e.eta.confidence].toLowerCase()]),c(n,l)};F(d,n=>{r(s).tone==="normal"&&e.eta.confidence!=="none"&&n(h)})}var E=w(d,2),g=y(E,!0);k(o),p(()=>{T(o,1,`flex min-w-0 items-center gap-1.5 text-xs ${r(s).tone==="warning"?"text-warning":r(s).tone==="muted"?"text-muted-foreground":"text-foreground"}`),_(o,"title",r(s).note),q(i,r(s).text),q(g,r(s).note)}),c(z,o),O()}export{we as C,Ce as E,ke as a};
|
|
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="1794648716581";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_1mehz88?.base??"",P=globalThis.__sveltekit_1mehz88?.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 z=y.toString().includes("$$")||/function \w+\(\) \{\}/.test(y.toString()),R="a:";z?(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
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import"./DsnmJJEf.js";import{o as Je}from"./RYq3318d.js";import{m as G,g as e,v as O,p as Re,u as qe,A as rt,f as K,s as D,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as R,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bC as ot,bD as st}from"./BuRWgnCz.js";import{i as W}from"./BDpRITyb.js";import{X as it,k as lt}from"./rS7QE60d.js";import{c as ct}from"./DLuhTA05.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./Cwb6d3g_.js";import{s as Ke,r as Ze,p as Me}from"./BAOiF0in.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./
|
|
1
|
+
import"./DsnmJJEf.js";import{o as Je}from"./RYq3318d.js";import{m as G,g as e,v as O,p as Re,u as qe,A as rt,f as K,s as D,h as L,r as _,x as nt,a as o,b as Le,i as se,t as b,o as R,d as M,n as Te,w as Ne,c as u,j as he,aa as Ie,aq as at,bC as ot,bD as st}from"./BuRWgnCz.js";import{i as W}from"./BDpRITyb.js";import{X as it,k as lt}from"./rS7QE60d.js";import{c as ct}from"./DLuhTA05.js";import{a as oe,f as dt,s as ue,d as ut,e as xe,i as _e}from"./Cwb6d3g_.js";import{s as Ke,r as Ze,p as Me}from"./BAOiF0in.js";import{a as ft}from"./BCUUi0V0.js";import{e as vt,P as mt}from"./I4bsCfS2.js";import{b as Oe}from"./BWRIDih-.js";import{p as We}from"./BSBcdyd3.js";import{a as Ce,s as pt,P as ht}from"./rwLE2q5W.js";import{S as Ve}from"./BXN538J3.js";import{B as ze}from"./C5BN6RHR.js";import{L as Xe}from"./CP7u-DWX.js";import{P as gt}from"./Co6rv60s.js";import{I as Ge}from"./xH4qmLqM.js";import{C as xt}from"./B0XeFYOk.js";import{C as _t}from"./cmRB1an4.js";import{C as yt}from"./D-5zBf83.js";import{E as wt}from"./IuxiJfHx.js";var kt=new Set(["$$slots","$$events","$$legacy"]);function bt(r,t){let a=Ze(t,kt);const l={name:"circle-question-mark",size:24,node:[["circle",{cx:"12",cy:"12",r:"10"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}],["path",{d:"M12 17h.01"}]],aliases:["help-circle","circle-help"]};Ge(r,Ke(()=>a,{get icon(){return l}}))}var Mt=new Set(["$$slots","$$events","$$legacy"]);function St(r,t){let a=Ze(t,Mt);const l={name:"minimize-2",size:24,node:[["path",{d:"m14 10 7-7"}],["path",{d:"M20 10h-6V4"}],["path",{d:"m3 21 7-7"}],["path",{d:"M4 14h6v6"}]]};Ge(r,Ke(()=>a,{get icon(){return l}}))}const Et="2026-01-26";class Y extends Error{constructor(t,a){super(a),this.code=t}code}const Tt=-32601,be=-32602,ye=-32e3,zt=r=>typeof r=="string"&&r.length<=128||typeof r=="number"&&Number.isFinite(r);function At(r){if(typeof r!="object"||r===null||Array.isArray(r))return null;const t=r;return t.jsonrpc!=="2.0"||t.method!==void 0&&(typeof t.method!="string"||t.method.length>128)||t.id!==void 0&&!zt(t.id)||t.method===void 0&&t.id===void 0?null:t}class Pt{constructor(t){this.o=t}o;next=1;pending=new Map;closed=!1;receive(t){if(this.closed)return;const a=At(t);if(a){if(a.method!==void 0&&a.id!==void 0)this.answer(a.id,a.method,a.params);else if(a.method!==void 0)try{this.o.onNotification(a.method,a.params)}catch{}else if(a.id!==void 0){const l=this.pending.get(a.id);if(!l)return;this.pending.delete(a.id),clearTimeout(l.timer),a.error?l.reject(new Y(a.error.code,String(a.error.message))):l.resolve(a.result)}}}async answer(t,a,l){let h;try{const d=await this.o.onRequest(a,l);h={jsonrpc:"2.0",id:t,result:d??{}}}catch(d){const x=d instanceof Y?d:new Y(ye,d instanceof Error?d.message:String(d));h={jsonrpc:"2.0",id:t,error:{code:x.code,message:x.message}}}this.closed||this.o.send(h)}request(t,a,l=1e4){if(this.closed)return Promise.reject(new Error("The app is closed."));const h=this.next++;return new Promise((d,x)=>{const n=setTimeout(()=>{this.pending.delete(h),x(new Error(`The app did not answer ${t}.`))},l);this.pending.set(h,{resolve:d,reject:x,timer:n}),this.o.send({jsonrpc:"2.0",id:h,method:t,params:a})})}notify(t,a){this.closed||this.o.send({jsonrpc:"2.0",method:t,params:a})}close(){this.closed=!0;for(const t of this.pending.values())clearTimeout(t.timer),t.reject(new Error("The app is closed."));this.pending.clear()}}const Pe=r=>typeof r=="object"&&r!==null&&!Array.isArray(r)?r:{},Nt=16*1024;function jt(r,t,a){return async(l,h)=>{const d=Pe(h);switch(l){case"ui/initialize":return{protocolVersion:Et,hostInfo:t,hostCapabilities:a,hostContext:r.context()};case"ping":return{};case"tools/call":{if(typeof d.name!="string"||!d.name)throw new Y(be,"Name the tool to call.");return r.callTool(d.name,Pe(d.arguments))}case"resources/read":{if(typeof d.uri!="string"||!d.uri)throw new Y(be,"Name the resource to read.");return r.readResource(d.uri)}case"ui/open-link":{let x;try{x=new URL(String(d.url))}catch{throw new Y(be,"Invalid URL")}if(x.protocol!=="http:"&&x.protocol!=="https:")throw new Y(ye,"Policy violation: only http(s) links open.");return r.openLink(x.href),{}}case"ui/message":{const n=(Array.isArray(d.content)?d.content:[d.content]).map(z=>Pe(z)).filter(z=>z.type==="text"&&typeof z.text=="string").map(z=>z.text).join(`
|
|
2
2
|
|
|
3
3
|
`).trim();if(!n)throw new Y(be,"Invalid message format: no text.");if(n.length>Nt)throw new Y(be,"The message is too long.");if(!await r.sendMessage(n))throw new Y(ye,"Message sending denied");return{}}case"ui/request-display-mode":{const x=d.mode;if(x!=="inline"&&x!=="fullscreen"&&x!=="pip")throw new Y(be,"Unknown display mode.");return{mode:await r.displayMode(x)}}default:throw new Y(Tt,`Wheelhouse does not offer ${l}.`)}}}function Ot(r){return(t,a)=>{const l=Pe(a),h=d=>typeof d=="number"&&Number.isFinite(d)&&d>=0?Math.min(d,1e5):void 0;t==="ui/notifications/initialized"?r.initialized():t==="ui/notifications/size-changed"?r.resize({width:h(l.width),height:h(l.height)}):t==="notifications/message"&&r.log(typeof l.level=="string"?l.level:"info",l.data)}}const Ct={"--color-background-primary":"--background","--color-background-secondary":"--card","--color-background-tertiary":"--muted","--color-background-inverse":"--foreground","--color-text-primary":"--foreground","--color-text-secondary":"--muted-foreground","--color-text-inverse":"--background","--color-text-info":"--sea","--color-text-danger":"--danger","--color-text-success":"--success","--color-text-warning":"--warning","--color-border-primary":"--border","--color-border-secondary":"--hair","--color-ring-primary":"--ring","--font-sans":"--font-sans","--font-mono":"--font-mono","--border-radius-md":"--radius"};function It(r){const t={};for(const[a,l]of Object.entries(Ct)){const h=r(l).trim();h&&(t[a]=h)}return t}function Dt(r,t,a){const l=Math.round(r.width);return t?{width:l,height:Math.round(r.height)}:{width:l,maxHeight:a}}function Rt(r){return{toolInfo:{tool:r.tool},theme:r.theme,styles:{variables:r.styles},displayMode:r.displayMode,availableDisplayModes:["inline","fullscreen"],containerDimensions:r.dimensions,...r.locale?{locale:r.locale}:{},...r.timeZone?{timeZone:r.timeZone}:{},userAgent:`wheelhouse/${r.version}`,platform:"web",deviceCapabilities:{hover:r.hover??!0,touch:r.touch??!1}}}function Lt(r){return{openLinks:{},serverTools:{},serverResources:{},logging:{},message:{text:{}},sandbox:{csp:r}}}const Ft=["connectDomains","resourceDomains","frameDomains","baseUriDomains"];function qt(r){return[...new Set(Ft.flatMap(t=>r[t]??[]))]}async function Se(r,t,a){let l;try{l=await fetch(`/api/apps/${r}`,{method:"POST",headers:{"content-type":"application/json",[Ve]:a},body:JSON.stringify(t)})}catch{throw new Error("Could not reach the Wheelhouse server.")}const h=await l.json().catch(()=>null);if(h&&(l.ok||"ok"in h||"state"in h))return h;throw new Error(h?.message??`Wheelhouse answered ${l.status}.`)}const Wt=(r,t)=>Se("open",r,t),Ht=(r,t)=>Se("run",r,t),He=(r,t,a)=>Se("call",{...r,...t},a),Ut=(r,t,a)=>Se("read",{...r,uri:t},a),sn=(r,t)=>Se("chat",{calls:r},t);async function Bt(r,t){try{return await(await fetch("/api/services",{method:"POST",headers:{"content-type":"application/json",[Ve]:t},body:JSON.stringify(r)})).json().catch(()=>null)}catch{return null}}const De=()=>navigator.keyboard;async function Jt(r,{keepEscape:t=!1}={}){if(document.fullscreenElement!==r){if(typeof r.requestFullscreen!="function")return{full:!1,escapeKept:!1};try{await r.requestFullscreen({navigationUI:"hide"})}catch{return{full:!1,escapeKept:!1}}}let a=!1;return t&&De()?.lock&&(a=await De().lock(["Escape"]).then(()=>!0).catch(()=>!1)),{full:!0,escapeKept:a}}function Ue(r){!r||document.fullscreenElement!==r||(De()?.unlock?.(),document.exitFullscreen().catch(()=>{}))}class Kt{#e=G(0);get open(){return e(this.#e)}set open(t){O(this.#e,t,!0)}}const ln=new Kt;var Zt=u('<p aria-busy="true">Opening the app…</p>'),Vt=u("<!>Starting…",1),Xt=u("<!> ",1),Gt=u('<p class="mt-2 text-muted-foreground">Start it by hand: <code class="font-mono text-xs select-all"> </code></p>'),Yt=u('<div data-app-service=""><p> </p> <!></div>'),Qt=u("<p> </p>"),$t=u("<!>Exit full screen",1),er=u('<div class="flex shrink-0 items-center gap-3 border-b px-4 py-1.5 text-sm"><span class="min-w-0 flex-1 truncate"> </span> <!></div>'),tr=u('<div><!> <iframe sandbox="allow-scripts allow-same-origin allow-forms" referrerpolicy="no-referrer"></iframe></div> <p data-app-note=""> </p>',1),rr=u('<h2 id="app-ask-title" class="text-lg"> </h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <pre class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 font-mono text-xs" aria-label="Its arguments"> </pre>',1),nr=u('<h2 id="app-ask-title" class="text-lg">Send this to Firstmate?</h2> <p class="mt-1 text-sm text-muted-foreground"> </p> <p class="mt-3 max-h-60 overflow-auto rounded-md border bg-card px-3 py-2 text-sm whitespace-pre-wrap"> </p>',1),ar=u('<div class="px-5 py-4"><!> <div class="mt-4 flex flex-wrap justify-end gap-2"><!> <!></div></div>'),or=u('<!> <dialog class="m-auto w-[min(94vw,560px)] max-w-none rounded-xl border bg-background p-0 text-foreground shadow-xl backdrop:bg-black/60" aria-labelledby="app-ask-title"><!></dialog>',1);function sr(r,t){Re(t,!0);const a=720;let l=Me(t,"fill",3,!1),h=Me(t,"maxHeight",3,a);const d=()=>We.data.sessionToken??"",x=()=>We.data.health?.version??"0.0.0";let n=G("opening"),z=G(null),H=G(null),ie=G(""),Q=G(null),fe=G(null),ve=G(!1),ge=G(160),j=G("inline"),T=G(null),C=G(null),g=G(()=>{}),s=G(null),m=G(null),S=Promise.resolve();function y(c){const N=S.then(()=>new Promise(J=>{O(s,{...c,answer:te=>{O(s,null),J(te)}},!0)}));return S=N.catch(()=>{}),N}qe(()=>{e(m)&&(e(s)&&!e(m).open?e(m).showModal():!e(s)&&e(m).open&&e(m).close())});async function p(){O(n,"opening"),O(Q,null);try{const c=await Wt(t.ref,d());c.state==="ready"?(O(z,c),O(ie,c.server.title,!0),O(n,"ready")):c.state==="service"?(O(H,c.service),O(ie,c.server.title,!0),O(n,"service")):(O(Q,c.reason,!0),O(n,"failed"))}catch(c){O(Q,c.message,!0),O(n,"failed")}}async function w(){if(!e(H))return;O(ve,!0);const c=await Bt({plugin:e(H).plugin,service:e(H).service,project:e(H).project},d());O(ve,!1),c?.state==="running"?await p():O(H,c??e(H))}Je(()=>{p()});const i=se(()=>{if(!e(z))return null;const c=new URL(Ce.sandbox(e(z).sandbox));return c.searchParams.set("host",location.origin),c.href}),v=se(()=>e(z)?qt(e(z).csp):[]),A=()=>document.documentElement.classList.contains("dark")?"dark":"light",P=()=>{const c=getComputedStyle(document.documentElement);return It(N=>c.getPropertyValue(N))},E=()=>{const c=e(T)?.getBoundingClientRect()??{width:0,height:0};return e(j)==="fullscreen"?{width:Math.round(window.innerWidth),height:Math.round(window.innerHeight)}:Dt(c,l(),h())};qe(()=>{if(!e(z)||!e(C))return;const c=e(z),N=e(C);return rt(()=>I(c,N))});function I(c,N){const J=new URL(Ce.sandbox(c.sandbox)).origin,te=t.ref;let me=!1,$=null,le="";const re=Ht(te,d()).catch(f=>({ok:!1,reason:f.message})),U=f=>N.contentWindow?.postMessage(f,J),F={context:()=>Rt({tool:c.tool,theme:A(),styles:P(),displayMode:e(j),dimensions:E(),locale:navigator.language,timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,hover:matchMedia("(hover: hover)").matches,touch:matchMedia("(pointer: coarse)").matches,version:x()}),async callTool(f,q){let ee=await He(te,{name:f,arguments:q,confirmed:!1},d());if(!ee.ok&&ee.confirm){if(!await y({kind:"tool",title:ee.confirm.title,description:ee.confirm.description,args:JSON.stringify(q,null,2)}))throw new Y(ye,"The captain declined the call.");ee=await He(te,{name:f,arguments:q,confirmed:!0},d())}if(!ee.ok)throw new Y(ye,ee.reason);return ee.result},async readResource(f){const q=await Ut(te,f,d());if(!q.ok)throw new Y(ye,q.reason);return q.result},async sendMessage(f){if(!await y({kind:"message",text:f}))return!1;const q=await pt(`From the “${t.title}” app (${t.plugin} plugin):
|
|
4
4
|
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as pn,A as mn,H as wn,ae as vn,bE as yn,i as A,g as p,aD as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aE as St,aG as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./BuRWgnCz.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./BAOiF0in.js";import{I as En}from"./xH4qmLqM.js";import{s as j}from"./B2RyWxmQ.js";import{i as gt}from"./BDpRITyb.js";import{l as Ft}from"./Cwb6d3g_.js";import{i as Fn,C as Yt,s as it,j as Tn,b as E,k as Dt,u as Xe,l as Dn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./DVEiwmFn.js";import{o as Qn}from"./RYq3318d.js";import{b as $n}from"./Y3845wkB.js";import{e as je}from"./Drqp3nkL.js";import{c as yt}from"./DLuhTA05.js";import{X as to}from"./rS7QE60d.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Tn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Te=["left","right"],De=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?De:Te:t?Te:De;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,D=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==D&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:D,centerOffset:I-D-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const D=lo(r,s,x);L.push(_[D[0]],_[D[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[D];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(T=>q(T.placement)===v?T.overflows[0]>0:!0)))return{data:{index:D,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(T=>{if(b){const k=q(T.placement);return k===v||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||To.test(t.contain||"")}function Do(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||Do(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(D=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(D.x<=z&&D.y<=z)return}C(u,D.x,!0),C(h,D.y,!0),C(c,D.strategy,!0),C(g,D.placement,!0),C(m,D.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Dt(this.contentRef);wrapperAttachment=Dt(this.wrapperRef);arrowAttachment=Dt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Dn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,D)=>{let K=()=>(D?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=X(),k=V(T);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Tt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Tt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Tr(e,t){return fn(e,t)||dn(e,t)}const Dr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Dr(a),f=Tt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Tt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Tt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Tt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
1
|
+
import{k as pn,A as mn,H as wn,ae as vn,bE as yn,i as A,g as p,aD as xn,u as rt,p as et,j as X,f as V,aa as $,a as W,b as nt,m as N,q as Wt,v as C,s as Et,c as kt,aE as St,aG as Ke,h as dt,r as ft,l as bn,n as On,w as Pn,t as An,d as Cn,y as $t,x as Sn}from"./BuRWgnCz.js";import"./DsnmJJEf.js";import{s as Pt,r as vt,p as O}from"./BAOiF0in.js";import{I as En}from"./xH4qmLqM.js";import{s as j}from"./B2RyWxmQ.js";import{i as gt}from"./BDpRITyb.js";import{l as Ft}from"./Cwb6d3g_.js";import{i as Fn,C as Yt,s as it,j as Tn,b as E,k as Dt,u as Xe,l as Dn,n as _n,o as Mn,w as _t,p as In,m as bt,F as kn,S as Ae,E as Bn,q as Wn,T as Ln,r as Hn,t as ht,v as Ce,x as Nn,y as Ht,z as Rn,A as zn,B as Ye,G as Vn,H as Kn,I as Xn,J as Yn,c as Ue,K as xt,P as Un,f as jn,e as qn,g as Zn,a as Gn,h as Jn}from"./DVEiwmFn.js";import{o as Qn}from"./RYq3318d.js";import{b as $n}from"./rwLE2q5W.js";import{e as je}from"./I4bsCfS2.js";import{c as yt}from"./DLuhTA05.js";import{X as to}from"./rS7QE60d.js";function ai(e,t,n){pn(()=>{var o=mn(()=>t(e,n?.())||{});if(n&&o?.update){var r=!1,i={};wn(()=>{var s=n();vn(s),r&&yn(i,s)&&(i=s,o.update(s))}),r=!0}if(o?.destroy)return()=>o.destroy()})}var eo=new Set(["$$slots","$$events","$$legacy"]);function li(e,t){let n=vt(t,eo);const o={name:"bell",size:24,node:[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"}]]};En(e,Pt(()=>n,{get icon(){return o}}))}function no(e){return typeof e=="function"}function Se(e){return no(e)?e():e}class oo{#t={width:0,height:0};#o=!1;#i;#r;#e;#s=A(()=>(p(this.#n)?.(),this.getSize().width));#a=A(()=>(p(this.#n)?.(),this.getSize().height));#n=A(()=>{const t=Se(this.#r);if(t)return xn(n=>{if(!this.#e)return;const o=new this.#e.ResizeObserver(r=>{this.#o=!0;for(const i of r){const s=this.#i.box==="content-box"?i.contentBoxSize:i.borderBoxSize,a=Array.isArray(s)?s:[s];this.#t.width=a.reduce((l,f)=>Math.max(l,f.inlineSize),0),this.#t.height=a.reduce((l,f)=>Math.max(l,f.blockSize),0)}n()});return o.observe(t),()=>{this.#o=!1,o.disconnect()}})});constructor(t,n={box:"border-box"}){this.#e=n.window??Fn,this.#i=n,this.#r=t,this.#t={width:0,height:0}}calculateSize(){const t=Se(this.#r);if(!t||!this.#e)return;const n=t.offsetWidth,o=t.offsetHeight;if(this.#i.box==="border-box")return{width:n,height:o};const r=this.#e.getComputedStyle(t),i=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),s=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),a=parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),l=parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),f=n-i-a,u=o-s-l;return{width:f,height:u}}getSize(){return this.#o?this.#t:this.calculateSize()??this.#t}get current(){return p(this.#n)?.(),this.getSize()}get width(){return p(this.#s)}get height(){return p(this.#a)}}const ce=new Yt("Floating.Root"),ue=new Yt("Floating.Root");class Nt{static create(t=!1){return t?ue.set(new Nt):ce.set(new Nt)}anchorNode=it(null);customAnchorNode=it(null);triggerNode=it(null);constructor(){rt(()=>{this.customAnchorNode.current?typeof this.customAnchorNode.current=="string"?this.anchorNode.current=document.querySelector(this.customAnchorNode.current):this.anchorNode.current=this.customAnchorNode.current:this.anchorNode.current=this.triggerNode.current})}}class Rt{static create(t,n=!1){return n?new Rt(t,ue.get()):new Rt(t,ce.get())}opts;root;constructor(t,n){this.opts=t,this.root=n,t.virtualEl&&t.virtualEl.current?n.triggerNode=Tn(t.virtualEl.current):n.triggerNode=t.ref}}function ro(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Nt.create(n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}function ct(e){return typeof e=="function"?e():e}function qe(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ee(e,t){const n=qe(e);return Math.round(t*n)/n}function Fe(e){return{[`--bits-${e}-content-transform-origin`]:"var(--bits-floating-transform-origin)",[`--bits-${e}-content-available-width`]:"var(--bits-floating-available-width)",[`--bits-${e}-content-available-height`]:"var(--bits-floating-available-height)",[`--bits-${e}-anchor-width`]:"var(--bits-floating-anchor-width)",[`--bits-${e}-anchor-height`]:"var(--bits-floating-anchor-height)"}}function io(e,t){et(t,!0);let n=O(t,"tooltip",3,!1);Rt.create({id:E(()=>t.id),virtualEl:E(()=>t.virtualEl),ref:t.ref},n());var o=X(),r=V(o);j(r,()=>t.children??$),W(e,o),nt()}const so=["top","right","bottom","left"],st=Math.min,J=Math.max,zt=Math.round,Bt=Math.floor,Q=e=>({x:e,y:e}),ao={left:"right",right:"left",bottom:"top",top:"bottom"};function Ze(e,t,n){return J(e,st(t,n))}function tt(e,t){return typeof e=="function"?e(t):e}function at(e){return e.split("-")[0]}function At(e){return e.split("-")[1]}function de(e){return e==="x"?"y":"x"}function fe(e){return e==="y"?"height":"width"}function q(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function he(e){return de(q(e))}function lo(e,t,n){n===void 0&&(n=!1);const o=At(e),r=he(e),i=fe(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Vt(s)),[s,Vt(s)]}function co(e){const t=Vt(e);return[ie(e),t,ie(t)]}function ie(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Te=["left","right"],De=["right","left"],uo=["top","bottom"],fo=["bottom","top"];function ho(e,t,n){switch(e){case"top":case"bottom":return n?t?De:Te:t?Te:De;case"left":case"right":return t?uo:fo;default:return[]}}function go(e,t,n,o){const r=At(e);let i=ho(at(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(ie)))),i}function Vt(e){const t=at(e);return ao[t]+e.slice(t.length)}function po(e){var t,n,o,r;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(o=e.bottom)!=null?o:0,left:(r=e.left)!=null?r:0}}function Ge(e){return typeof e!="number"?po(e):{top:e,right:e,bottom:e,left:e}}function Kt(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function _e(e,t,n){let{reference:o,floating:r}=e;const i=q(t),s=he(t),a=fe(s),l=at(t),f=i==="y",u=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,d=o[a]/2-r[a]/2;let c;switch(l){case"top":c={x:u,y:o.y-r.height};break;case"bottom":c={x:u,y:o.y+o.height};break;case"right":c={x:o.x+o.width,y:h};break;case"left":c={x:o.x-r.width,y:h};break;default:c={x:o.x,y:o.y}}const g=At(t);return g&&(c[s]+=d*(g==="end"?1:-1)*(n&&f?-1:1)),c}async function mo(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:c=0}=tt(t,e),g=Ge(c),y=a[d?h==="floating"?"reference":"floating":h],w=Kt(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(y)))==null||n?y:y.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:f,rootBoundary:u,strategy:l})),v=h==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),x=await(i.isElement==null?void 0:i.isElement(P))&&await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1},S=Kt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:P,strategy:l}):v);return{top:(w.top-S.top+g.top)/x.y,bottom:(S.bottom-w.bottom+g.bottom)/x.y,left:(w.left-S.left+g.left)/x.x,right:(S.right-w.right+g.right)/x.x}}const wo=50,vo=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:mo},l=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:u,y:h}=_e(f,o,l),d=o,c=0;const g={};for(let m=0;m<i.length;m++){const y=i[m];if(!y)continue;const{name:w,fn:v}=y,{x:P,y:x,data:S,reset:b}=await v({x:u,y:h,initialPlacement:o,placement:d,strategy:r,middlewareData:g,rects:f,platform:a,elements:{reference:e,floating:t}});u=P??u,h=x??h,g[w]={...g[w],...S},b&&c<wo&&(c++,typeof b=="object"&&(b.placement&&(d=b.placement),b.rects&&(f=b.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):b.rects),{x:u,y:h}=_e(f,d,l)),m=-1)}return{x:u,y:h,placement:d,strategy:r,middlewareData:g}},yo=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:f,padding:u=0}=tt(e,t)||{};if(f==null)return{};const h=Ge(u),d={x:n,y:o},c=he(r),g=fe(c),m=await s.getDimensions(f),y=c==="y",w=y?"top":"left",v=y?"bottom":"right",P=y?"clientHeight":"clientWidth",x=i.reference[g]+i.reference[c]-d[c]-i.floating[g],S=d[c]-i.reference[c],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let F=b?b[P]:0;(!F||!await(s.isElement==null?void 0:s.isElement(b)))&&(F=a.floating[P]||i.floating[g]);const _=x/2-S/2,L=F/2-m[g]/2-1,M=st(h[w],L),R=st(h[v],L),H=F-m[g]-R,I=F/2-m[g]/2+_,D=Ze(M,I,H),K=!l.arrow&&At(r)!=null&&I!==D&&i.reference[g]/2-(I<M?M:R)-m[g]/2<0,z=K?I<M?I-M:I-H:0;return{[c]:d[c]+z,data:{[c]:D,centerOffset:I-D-z,...K&&{alignmentOffset:z}},reset:K}}}),xo=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:f}=t,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:d,fallbackStrategy:c="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:m=!0,...y}=tt(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const w=at(r),v=q(a),P=at(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(f.floating)),S=d||(P||!m?[Vt(a)]:co(a)),b=g!=="none";!d&&b&&S.push(...go(a,m,g,x));const F=[a,...S],_=await l.detectOverflow(t,y),L=[];let M=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&L.push(_[w]),h){const D=lo(r,s,x);L.push(_[D[0]],_[D[1]])}if(M=[...M,{placement:r,overflows:L}],!L.every(D=>D<=0)){var R,H;const D=(((R=i.flip)==null?void 0:R.index)||0)+1,K=F[D];if(K&&(!(h==="alignment"?v!==q(K):!1)||M.every(T=>q(T.placement)===v?T.overflows[0]>0:!0)))return{data:{index:D,overflows:M},reset:{placement:K}};let z=(H=M.filter(B=>B.overflows[0]<=0).sort((B,T)=>B.overflows[1]-T.overflows[1])[0])==null?void 0:H.placement;if(!z)switch(c){case"bestFit":{var I;const B=(I=M.filter(T=>{if(b){const k=q(T.placement);return k===v||k==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(k=>k>0).reduce((k,Y)=>k+Y,0)]).sort((T,k)=>T[1]-k[1])[0])==null?void 0:I[0];B&&(z=B);break}case"initialPlacement":z=a;break}if(r!==z)return{reset:{placement:z}}}return{}}}};function Me(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ie(e){return so.some(t=>e[t]>=0)}const bo=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:o}=t,{strategy:r="referenceHidden",...i}=tt(e,t);switch(r){case"referenceHidden":{const s=await o.detectOverflow(t,{...i,elementContext:"reference"}),a=Me(s,n.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Ie(a)}}}case"escaped":{const s=await o.detectOverflow(t,{...i,altBoundary:!0}),a=Me(s,n.floating);return{data:{escapedOffsets:a,escaped:Ie(a)}}}default:return{}}}}},Je=new Set(["left","top"]);async function Oo(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=at(n),a=At(n),l=q(n)==="y",f=Je.has(s)?-1:1,u=i&&l?-1:1,h=tt(t,e);let{mainAxis:d,crossAxis:c,alignmentAxis:g}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&typeof g=="number"&&(c=a==="end"?g*-1:g),l?{x:c*u,y:d*f}:{x:d*f,y:c*u}}const Po=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await Oo(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},Ao=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:v=>{let{x:P,y:x}=v;return{x:P,y:x}}},...f}=tt(e,t),u={x:n,y:o},h=await i.detectOverflow(t,f),d=q(r),c=de(d);let g=u[c],m=u[d];const y=(v,P)=>Ze(P+h[v==="y"?"top":"left"],P,P-h[v==="y"?"bottom":"right"]);s&&(g=y(c,g)),a&&(m=y(d,m));const w=l.fn({...t,[c]:g,[d]:m});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[c]:s,[d]:a}}}}}},Co=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,o;const{x:r,y:i,placement:s,rects:a,middlewareData:l}=t,{offset:f=0,mainAxis:u=!0,crossAxis:h=!0}=tt(e,t),d={x:r,y:i},c=q(s),g=de(c);let m=d[g],y=d[c];const w=tt(f,t),v=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:(n=w.mainAxis)!=null?n:0,crossAxis:(o=w.crossAxis)!=null?o:0};if(u){const S=g==="y"?"height":"width",b=a.reference[g]-a.floating[S]+v.mainAxis,F=a.reference[g]+a.reference[S]-v.mainAxis;m<b?m=b:m>F&&(m=F)}if(h){var P,x;const S=g==="y"?"width":"height",b=Je.has(at(s)),F=a.reference[c]-a.floating[S]+(b&&((P=l.offset)==null?void 0:P[c])||0)+(b?0:v.crossAxis),_=a.reference[c]+a.reference[S]+(b?0:((x=l.offset)==null?void 0:x[c])||0)-(b?v.crossAxis:0);y<F?y=F:y>_&&(y=_)}return{[g]:m,[c]:y}}}},So=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:o,platform:r,elements:i}=t,{apply:s=()=>{},...a}=tt(e,t),l=await r.detectOverflow(t,a),f=at(n),u=At(n),h=q(n)==="y",{width:d,height:c}=o.floating;let g,m;f==="top"||f==="bottom"?(g=f,m=u===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(m=f,g=u==="end"?"top":"bottom");const y=c-l.top-l.bottom,w=d-l.left-l.right,v=st(c-l[g],y),P=st(d-l[m],w),x=t.middlewareData.shift,S=!x;let b=v,F=P;x!=null&&x.enabled.x&&(F=w),x!=null&&x.enabled.y&&(b=y),S&&!u&&(h?F=d-2*J(l.left,l.right):b=c-2*J(l.top,l.bottom)),await s({...t,availableWidth:F,availableHeight:b});const _=await r.getDimensions(i.floating);return d!==_.width||c!==_.height?{reset:{rects:!0}}:{}}}};function Ut(){return typeof window<"u"}function Ct(e){return Qe(e)?(e.nodeName||"").toLowerCase():"#document"}function U(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ot(e){var t;return(t=(Qe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qe(e){return Ut()?e instanceof Node||e instanceof U(e).Node:!1}function Z(e){return Ut()?e instanceof Element||e instanceof U(e).Element:!1}function lt(e){return Ut()?e instanceof HTMLElement||e instanceof U(e).HTMLElement:!1}function ke(e){return!Ut()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof U(e).ShadowRoot}function jt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=G(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&r!=="inline"&&r!=="contents"}function Eo(e){return/^(table|td|th)$/.test(Ct(e))}function qt(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const Fo=/transform|translate|scale|rotate|perspective|filter/,To=/paint|layout|strict|content/,ut=e=>!!e&&e!=="none";let te;function ge(e){const t=Z(e)?G(e):e;return ut(t.transform)||ut(t.translate)||ut(t.scale)||ut(t.rotate)||ut(t.perspective)||!pe()&&(ut(t.backdropFilter)||ut(t.filter))||Fo.test(t.willChange||"")||To.test(t.contain||"")}function Do(e){let t=pt(e);for(;lt(t)&&!Mt(t);){if(ge(t))return t;if(qt(t))return null;t=pt(t)}return null}function pe(){return te==null&&(te=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),te}function Mt(e){return/^(html|body|#document)$/.test(Ct(e))}function G(e){return U(e).getComputedStyle(e)}function Zt(e){return Z(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pt(e){if(Ct(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ke(e)&&e.host||ot(e);return ke(t)?t.host:t}function $e(e){const t=pt(e);return Mt(t)?(e.ownerDocument||e).body:lt(t)&&jt(t)?t:$e(t)}function It(e,t,n){var o;t===void 0&&(t=[]),n===void 0&&(n=!0);const r=$e(e),i=r===((o=e.ownerDocument)==null?void 0:o.body),s=U(r);if(i){const a=se(s);return t.concat(s,s.visualViewport||[],jt(r)?r:[],a&&n?It(a):[])}else return t.concat(r,It(r,[],n))}function se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function tn(e){const t=G(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=lt(e),i=r?e.offsetWidth:n,s=r?e.offsetHeight:o,a=zt(n)!==i||zt(o)!==s;return a&&(n=i,o=s),{width:n,height:o,$:a}}function me(e){return Z(e)?e:e.contextElement}function Ot(e){const t=me(e);if(!lt(t))return Q(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=tn(t);let s=(i?zt(n.width):n.width)/o,a=(i?zt(n.height):n.height)/r;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const _o=Q(0);function en(e){const t=U(e);return!pe()||!t.visualViewport?_o:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Mo(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===U(e)}function mt(e,t,n,o){t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=me(e);let s=Q(1);t&&(o?Z(o)&&(s=Ot(o)):s=Ot(e));const a=Mo(i,n,o)?en(i):Q(0);let l=(r.left+a.x)/s.x,f=(r.top+a.y)/s.y,u=r.width/s.x,h=r.height/s.y;if(i&&o){const d=U(i),c=Z(o)?U(o):o;let g=d,m=se(g);for(;m&&c!==g;){const y=Ot(m),w=m.getBoundingClientRect(),v=G(m),P=w.left+(m.clientLeft+parseFloat(v.paddingLeft))*y.x,x=w.top+(m.clientTop+parseFloat(v.paddingTop))*y.y;l*=y.x,f*=y.y,u*=y.x,h*=y.y,l+=P,f+=x,g=U(m),m=se(g)}}return Kt({width:u,height:h,x:l,y:f})}function Gt(e,t){const n=Zt(e).scrollLeft;return t?t.left+n:mt(ot(e)).left+n}function nn(e,t){const n=e.getBoundingClientRect(),o=n.left+t.scrollLeft-Gt(e,n),r=n.top+t.scrollTop;return{x:o,y:r}}function Io(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i=r==="fixed",s=ot(o),a=t?qt(t.floating):!1;if(o===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},f=Q(1);const u=Q(0),h=lt(o);if((h||!i)&&((Ct(o)!=="body"||jt(s))&&(l=Zt(o)),h)){const c=mt(o);f=Ot(o),u.x=c.x+o.clientLeft,u.y=c.y+o.clientTop}const d=s&&!h&&!i?nn(s,l):Q(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-l.scrollLeft*f.x+u.x+d.x,y:n.y*f.y-l.scrollTop*f.y+u.y+d.y}}function ko(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Bo(e){const t=Zt(e),n=e.ownerDocument.body,o=J(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=J(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Gt(e);const s=-t.scrollTop;return G(n).direction==="rtl"&&(i+=J(e.clientWidth,n.clientWidth)-o),{width:o,height:r,x:i,y:s}}const Wo=25;function Lo(e,t,n){n===void 0&&(n="viewport");const o=n==="layoutViewport",r=U(e),i=ot(e),s=r.visualViewport;let a=i.clientWidth,l=i.clientHeight,f=0,u=0;if(s){const d=!pe()||t==="fixed";o?d||(f=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,d&&(f=s.offsetLeft,u=s.offsetTop))}if(Gt(i)<=0){const d=i.ownerDocument,c=d.body,g=getComputedStyle(c),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,y=Math.abs(i.clientWidth-c.clientWidth-m),w=getComputedStyle(i).scrollbarGutter==="stable both-edges"?y/2:y;w<=Wo&&(a-=w)}return{width:a,height:l,x:f,y:u}}function Ho(e,t){const n=mt(e,!0,t==="fixed"),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Ot(e),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=r*i.x,f=o*i.y;return{width:s,height:a,x:l,y:f}}function Be(e,t,n){let o;if(t==="viewport"||t==="layoutViewport")o=Lo(e,n,t);else if(t==="document")o=Bo(ot(e));else if(Z(t))o=Ho(t,n);else{const r=en(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Kt(o)}function No(e,t){const n=t.get(e);if(n)return n;let o=It(e,[],!1).filter(a=>Z(a)&&Ct(a)!=="body"),r=null;const i=G(e).position==="fixed";let s=i?pt(e):e;for(;Z(s)&&!Mt(s);){const a=G(s),l=ge(s),f=r?r.position:i?"fixed":"";!l&&(f==="fixed"||f==="absolute"&&a.position==="static")?o=o.filter(h=>h!==s):r=a,s=pt(s)}return t.set(e,o),o}function Ro(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const s=[...n==="clippingAncestors"?qt(t)?[]:No(t,this._c):[].concat(n),o],a=Be(t,s[0],r);let l=a.top,f=a.right,u=a.bottom,h=a.left;for(let d=1;d<s.length;d++){const c=Be(t,s[d],r);l=J(c.top,l),f=st(c.right,f),u=st(c.bottom,u),h=J(c.left,h)}return{width:f-h,height:u-l,x:h,y:l}}function zo(e){const{width:t,height:n}=tn(e);return{width:t,height:n}}function Vo(e,t,n){const o=lt(t),r=ot(t),i=n==="fixed",s=mt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Q(0);if((o||!i)&&((Ct(t)!=="body"||jt(r))&&(a=Zt(t)),o)){const d=mt(t,!0,i,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}!o&&r&&(l.x=Gt(r));const f=r&&!o&&!i?nn(r,a):Q(0),u=s.left+a.scrollLeft-l.x-f.x,h=s.top+a.scrollTop-l.y-f.y;return{x:u,y:h,width:s.width,height:s.height}}function ee(e){return G(e).position==="static"}function We(e,t){if(!lt(e)||G(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ot(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=U(e);if(qt(e))return n;if(!lt(e)){let r=pt(e);for(;r&&!Mt(r);){if(Z(r)&&!ee(r))return r;r=pt(r)}return n}let o=We(e,t);for(;o&&Eo(o)&&ee(o);)o=We(o,t);return o&&Mt(o)&&ee(o)&&!ge(o)?n:o||Do(e)||n}const Ko=async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,o=await n(e.floating);return{reference:Vo(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Xo(e){return G(e).direction==="rtl"}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:Io,getDocumentElement:ot,getClippingRect:Ro,getOffsetParent:on,getElementRects:Ko,getClientRects:ko,getDimensions:zo,getScale:Ot,isElement:Z,isRTL:Xo};function rn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Uo(e,t,n){let o=null,r;const i=ot(e);function s(){var u;clearTimeout(r),(u=o)==null||u.disconnect(),o=null}function a(u,h){u===void 0&&(u=!1),h===void 0&&(h=1),s();const d=e.getBoundingClientRect(),{left:c,top:g,width:m,height:y}=d;if(u||t(),!m||!y)return;const w=Bt(g),v=Bt(i.clientWidth-(c+m)),P=Bt(i.clientHeight-(g+y)),x=Bt(c),b={rootMargin:-w+"px "+-v+"px "+-P+"px "+-x+"px",threshold:J(0,st(1,h))||1};let F=!0;function _(L){const M=L[0].intersectionRatio;if(!rn(d,e.getBoundingClientRect()))return a();if(M!==h){if(!F)return a();M?a(!1,M):r=setTimeout(()=>{a(!1,1e-7)},1e3)}F=!1}try{o=new IntersectionObserver(_,{...b,root:i.ownerDocument})}catch{o=new IntersectionObserver(_,b)}o.observe(e)}const l=U(e),f=()=>a(n);return l.addEventListener("resize",f),a(!0),()=>{l.removeEventListener("resize",f),s()}}function jo(e,t,n,o){o===void 0&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,f=me(e),u=r||i?[...f?It(f):[],...t?It(t):[]]:[];u.forEach(w=>{r&&w.addEventListener("scroll",n),i&&w.addEventListener("resize",n)});const h=f&&a?Uo(f,n,i):null;let d=-1,c=null;s&&(c=new ResizeObserver(w=>{let[v]=w;v&&v.target===f&&c&&t&&(c.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var P;(P=c)==null||P.observe(t)})),n()}),f&&!l&&c.observe(f),t&&c.observe(t));let g,m=l?mt(e):null;l&&y();function y(){const w=mt(e);m&&!rn(m,w)&&n(),m=w,g=requestAnimationFrame(y)}return n(),()=>{var w;u.forEach(v=>{r&&v.removeEventListener("scroll",n),i&&v.removeEventListener("resize",n)}),h?.(),(w=c)==null||w.disconnect(),c=null,l&&cancelAnimationFrame(g)}}const qo=Po,Zo=Ao,Go=xo,Jo=So,Qo=bo,$o=yo,tr=Co,er=(e,t,n)=>{const o=new Map,r=n??{},i={...Yo,...r.platform,_c:o};return vo(e,t,{...r,platform:i})};function nr(e){const t=e.whileElementsMounted,n=A(()=>ct(e.open)??!0),o=A(()=>ct(e.middleware)),r=A(()=>ct(e.transform)??!0),i=A(()=>ct(e.placement)??"bottom"),s=A(()=>ct(e.strategy)??"absolute"),a=A(()=>ct(e.sideOffset)??0),l=A(()=>ct(e.alignOffset)??0),f=e.reference;let u=N(0),h=N(0);const d=it(null);let c=N(Wt(p(s))),g=N(Wt(p(i))),m=N(Wt({})),y=N(!1),w=!1,v=0,P=!1;const x=A(()=>{const R=d.current?Ee(d.current,p(u)):p(u),H=d.current?Ee(d.current,p(h)):p(h);return p(r)?{position:p(c),left:"0",top:"0",transform:`translate(${R}px, ${H}px)`,...d.current&&qe(d.current)>=1.5&&{willChange:"transform"}}:{position:p(c),left:`${R}px`,top:`${H}px`}});let S;function b(){if(P||f.current===null||d.current===null)return;const R=f.current,H=d.current,I=++v;er(R,H,{middleware:p(o),placement:p(i),strategy:p(s)}).then(D=>{if(I!==v||f.current!==R||d.current!==H)return;if(or(R)){C(m,{...p(m),hide:{...p(m).hide,referenceHidden:!0}},!0);return}if(!p(n)&&p(u)!==0&&p(h)!==0){const z=Math.max(Math.abs(p(a)),Math.abs(p(l)),15);if(D.x<=z&&D.y<=z)return}C(u,D.x,!0),C(h,D.y,!0),C(c,D.strategy,!0),C(g,D.placement,!0),C(m,D.middlewareData,!0),C(y,!0)})}function F(){typeof S=="function"&&(S(),S=void 0),v++}function _(){if(F(),t===void 0){b();return}p(n)&&(f.current===null||d.current===null||(S=t(f.current,d.current,b)))}function L(){!p(n)&&d.current===null&&C(y,!1)}function M(){return[p(o),p(i),p(s),p(a),p(l),p(n)]}return rt(()=>{t===void 0&&p(n)&&b()}),rt(_),rt(()=>{if(t!==void 0){if(M(),!p(n)){w=!1;return}if(!p(y)){w=!1;return}if(!w){w=!0;return}b()}}),rt(L),rt(()=>()=>{P=!0,F()}),{floating:d,reference:f,get strategy(){return p(c)},get placement(){return p(g)},get middlewareData(){return p(m)},get isPositioned(){return p(y)},get floatingStyles(){return p(x)},get update(){return b}}}function or(e){return e instanceof Element?!e.isConnected||e instanceof HTMLElement&&e.hidden?!0:e.getClientRects().length===0:!1}const rr={top:"bottom",right:"left",bottom:"top",left:"right"},ae=new Yt("Floating.Content");class Xt{static create(t,n=!1){return n?ae.set(new Xt(t,ue.get())):ae.set(new Xt(t,ce.get()))}opts;root;contentRef=it(null);wrapperRef=it(null);arrowRef=it(null);contentAttachment=Dt(this.contentRef);wrapperAttachment=Dt(this.wrapperRef);arrowAttachment=Dt(this.arrowRef);arrowId=it(Xe());#t=A(()=>{if(typeof this.opts.style=="string")return Dn(this.opts.style);if(!this.opts.style)return{}});#o=void 0;#i=new oo(()=>this.arrowRef.current??void 0);#r=A(()=>this.#i?.width??0);#e=A(()=>this.#i?.height??0);#s=A(()=>this.opts.side?.current+(this.opts.align.current!=="center"?`-${this.opts.align.current}`:""));#a=A(()=>Array.isArray(this.opts.collisionBoundary.current)?this.opts.collisionBoundary.current:[this.opts.collisionBoundary.current]);#n=A(()=>p(this.#a).length>0);get hasExplicitBoundaries(){return p(this.#n)}set hasExplicitBoundaries(t){C(this.#n,t)}#l=A(()=>({padding:this.opts.collisionPadding.current,boundary:p(this.#a).filter(_n),altBoundary:this.hasExplicitBoundaries}));get detectOverflowOptions(){return p(this.#l)}set detectOverflowOptions(t){C(this.#l,t)}#c=N(void 0);#d=N(void 0);#f=N(void 0);#g=N(void 0);#p=A(()=>[qo({mainAxis:this.opts.sideOffset.current+p(this.#e),alignmentAxis:this.opts.alignOffset.current}),this.opts.avoidCollisions.current&&Zo({mainAxis:!0,crossAxis:!1,limiter:this.opts.sticky.current==="partial"?tr():void 0,...this.detectOverflowOptions}),this.opts.avoidCollisions.current&&Go({...this.detectOverflowOptions}),Jo({...this.detectOverflowOptions,apply:({rects:t,availableWidth:n,availableHeight:o})=>{const{width:r,height:i}=t.reference;C(this.#c,n,!0),C(this.#d,o,!0),C(this.#f,r,!0),C(this.#g,i,!0)}}),this.arrowRef.current&&$o({element:this.arrowRef.current,padding:this.opts.arrowPadding.current}),ir({arrowWidth:p(this.#r),arrowHeight:p(this.#e)}),this.opts.hideWhenDetached.current&&Qo({strategy:"referenceHidden",...this.detectOverflowOptions})].filter(Boolean));get middleware(){return p(this.#p)}set middleware(t){C(this.#p,t)}floating;#u=A(()=>sr(this.floating.placement));get placedSide(){return p(this.#u)}set placedSide(t){C(this.#u,t)}#h=A(()=>ar(this.floating.placement));get placedAlign(){return p(this.#h)}set placedAlign(t){C(this.#h,t)}#m=A(()=>this.floating.middlewareData.arrow?.x??0);get arrowX(){return p(this.#m)}set arrowX(t){C(this.#m,t)}#w=A(()=>this.floating.middlewareData.arrow?.y??0);get arrowY(){return p(this.#w)}set arrowY(t){C(this.#w,t)}#v=A(()=>this.floating.middlewareData.arrow?.centerOffset!==0);get cannotCenterArrow(){return p(this.#v)}set cannotCenterArrow(t){C(this.#v,t)}#y=N();get contentZIndex(){return p(this.#y)}set contentZIndex(t){C(this.#y,t,!0)}#x=A(()=>rr[this.placedSide]);get arrowBaseSide(){return p(this.#x)}set arrowBaseSide(t){C(this.#x,t)}#b=A(()=>({id:this.opts.wrapperId.current,"data-bits-floating-content-wrapper":"",style:{...this.floating.floatingStyles,transform:this.floating.isPositioned?this.floating.floatingStyles.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:this.contentZIndex,"--bits-floating-transform-origin":`${this.floating.middlewareData.transformOrigin?.x} ${this.floating.middlewareData.transformOrigin?.y}`,"--bits-floating-available-width":`${p(this.#c)}px`,"--bits-floating-available-height":`${p(this.#d)}px`,"--bits-floating-anchor-width":`${p(this.#f)}px`,"--bits-floating-anchor-height":`${p(this.#g)}px`,...this.floating.middlewareData.hide?.referenceHidden&&{visibility:"hidden","pointer-events":"none"},...p(this.#t)},dir:this.opts.dir.current,...this.wrapperAttachment}));get wrapperProps(){return p(this.#b)}set wrapperProps(t){C(this.#b,t)}#O=A(()=>({"data-side":this.placedSide,"data-align":this.placedAlign,style:Mn({...p(this.#t)}),...this.contentAttachment}));get props(){return p(this.#O)}set props(t){C(this.#O,t)}#P=A(()=>({position:"absolute",left:this.arrowX?`${this.arrowX}px`:void 0,top:this.arrowY?`${this.arrowY}px`:void 0,[this.arrowBaseSide]:0,"transform-origin":{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[this.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[this.placedSide],visibility:this.cannotCenterArrow?"hidden":void 0}));get arrowStyle(){return p(this.#P)}set arrowStyle(t){C(this.#P,t)}constructor(t,n){this.opts=t,this.root=n,this.#o=t.updatePositionStrategy,t.customAnchor&&(this.root.customAnchorNode.current=t.customAnchor.current),_t(()=>t.customAnchor.current,o=>{this.root.customAnchorNode.current=o}),this.floating=nr({strategy:()=>this.opts.strategy.current,placement:()=>p(this.#s),middleware:()=>this.middleware,reference:this.root.anchorNode,whileElementsMounted:(...o)=>jo(...o,{animationFrame:this.#o?.current==="always"}),open:()=>this.opts.enabled.current,sideOffset:()=>this.opts.sideOffset.current,alignOffset:()=>this.opts.alignOffset.current}),rt(()=>{this.floating.isPositioned&&this.opts.onPlaced?.current()}),_t(()=>this.contentRef.current,o=>{if(!o||!this.opts.enabled.current)return;const r=In(o),i=r.requestAnimationFrame(()=>{if(this.contentRef.current!==o||!this.opts.enabled.current)return;const s=r.getComputedStyle(o).zIndex;s!==this.contentZIndex&&(this.contentZIndex=s)});return()=>{r.cancelAnimationFrame(i)}}),rt(()=>{this.floating.floating.current=this.wrapperRef.current})}}class sn{static create(t){return new sn(t,ae.get())}opts;content;constructor(t,n){this.opts=t,this.content=n}#t=A(()=>({id:this.opts.id.current,style:this.content.arrowStyle,"data-side":this.content.placedSide,...this.content.arrowAttachment}));get props(){return p(this.#t)}set props(t){C(this.#t,t)}}function ir(e){return{name:"transformOrigin",options:e,fn(t){const{placement:n,rects:o,middlewareData:r}=t,s=r.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,l=s?0:e.arrowHeight,[f,u]=we(n),h={start:"0%",center:"50%",end:"100%"}[u],d=(r.arrow?.x??0)+a/2,c=(r.arrow?.y??0)+l/2;let g="",m="";return f==="bottom"?(g=s?h:`${d}px`,m=`${-l}px`):f==="top"?(g=s?h:`${d}px`,m=`${o.floating.height+l}px`):f==="right"?(g=`${-l}px`,m=s?h:`${c}px`):f==="left"&&(g=`${o.floating.width+l}px`,m=s?h:`${c}px`),{data:{x:g,y:m}}}}}function we(e){const[t,n="center"]=e.split("-");return[t,n]}function sr(e){return we(e)[0]}function ar(e){return we(e)[1]}function lr(e,t){et(t,!0);let n=O(t,"side",3,"bottom"),o=O(t,"sideOffset",3,0),r=O(t,"align",3,"center"),i=O(t,"alignOffset",3,0),s=O(t,"arrowPadding",3,0),a=O(t,"avoidCollisions",3,!0),l=O(t,"collisionBoundary",19,()=>[]),f=O(t,"collisionPadding",3,0),u=O(t,"hideWhenDetached",3,!1),h=O(t,"onPlaced",3,()=>{}),d=O(t,"sticky",3,"partial"),c=O(t,"updatePositionStrategy",3,"optimized"),g=O(t,"strategy",3,"fixed"),m=O(t,"dir",3,"ltr"),y=O(t,"style",19,()=>({})),w=O(t,"wrapperId",19,Xe),v=O(t,"customAnchor",3,null),P=O(t,"tooltip",3,!1);const x=Xt.create({side:E(()=>n()),sideOffset:E(()=>o()),align:E(()=>r()),alignOffset:E(()=>i()),id:E(()=>t.id),arrowPadding:E(()=>s()),avoidCollisions:E(()=>a()),collisionBoundary:E(()=>l()),collisionPadding:E(()=>f()),hideWhenDetached:E(()=>u()),onPlaced:E(()=>h()),sticky:E(()=>d()),updatePositionStrategy:E(()=>c()),strategy:E(()=>g()),dir:E(()=>m()),style:E(()=>y()),enabled:E(()=>t.enabled),wrapperId:E(()=>w()),customAnchor:E(()=>v())},P()),S=A(()=>bt(x.wrapperProps,{style:{pointerEvents:"auto"}}));var b=X(),F=V(b);j(F,()=>t.content??$,()=>({props:x.props,wrapperProps:p(S)})),W(e,b),nt()}function cr(e,t){et(t,!0),Qn(()=>{t.onPlaced?.()});var n=X(),o=V(n);j(o,()=>t.content??$,()=>({props:{},wrapperProps:{}})),W(e,n),nt()}var ur=new Set(["$$slots","$$events","$$legacy","content","isStatic","onPlaced"]);function dr(e,t){let n=O(t,"isStatic",3,!1),o=vt(t,ur);var r=X(),i=V(r);{var s=l=>{cr(l,{get content(){return t.content},get onPlaced(){return t.onPlaced}})},a=l=>{lr(l,Pt({get content(){return t.content},get onPlaced(){return t.onPlaced}},()=>o))};gt(i,l=>{n()?l(s):l(a,-1)})}W(e,r)}var fr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled","forceMount","ref","tooltip","contentPointerEvents"]),hr=kt("<!> <!>",1);function an(e,t){et(t,!0);let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=O(t,"tooltip",3,!1),l=O(t,"contentPointerEvents",3,"auto"),f=vt(t,fr);const u=A(()=>t.preventScroll??!0),h=A(()=>t.strategy??(p(u)?"fixed":"absolute"));dr(e,{get isStatic(){return s()},get id(){return t.id},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return p(h)},get dir(){return t.dir},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get enabled(){return t.enabled},get tooltip(){return a()},content:(c,g)=>{let m=()=>(g?.()).props,y=()=>(g?.()).wrapperProps;var w=hr(),v=V(w);{var P=b=>{Ae(b,{get preventScroll(){return p(u)}})},x=b=>{Ae(b,{get preventScroll(){return p(u)}})};gt(v,b=>{t.forceMount&&t.enabled?b(P):t.forceMount||b(x,1)})}var S=Et(v,2);kn(S,{get onOpenAutoFocus(){return t.onOpenAutoFocus},get onCloseAutoFocus(){return t.onCloseAutoFocus},get loop(){return t.loop},get enabled(){return t.enabled},get trapFocus(){return o()},get forceMount(){return t.forceMount},get ref(){return t.ref},focusScope:(F,_)=>{let L=()=>(_?.()).props;Bn(F,{get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get enabled(){return t.enabled},get ref(){return t.ref},children:(M,R)=>{Wn(M,{get id(){return t.id},get onInteractOutside(){return t.onInteractOutside},get onFocusOutside(){return t.onFocusOutside},get interactOutsideBehavior(){return n()},get isValidEvent(){return r()},get enabled(){return t.enabled},get ref(){return t.ref},children:(I,D)=>{let K=()=>(D?.()).props;Ln(I,{get id(){return t.id},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get enabled(){return t.enabled},get ref(){return t.ref},children:(z,B)=>{var T=X(),k=V(T);{let Y=A(()=>({props:bt(f,m(),K(),L(),{id:t.id,style:{pointerEvents:l()}}),wrapperProps:y()}));j(k,()=>t.popper??$,()=>p(Y))}W(z,T)},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{default:!0}})},$$slots:{focusScope:!0}}),W(c,w)},$$slots:{content:!0}}),nt()}var gr=new Set(["$$slots","$$events","$$legacy","popper","open","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","ref","shouldRender"]);function pr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,gr);var l=X(),f=V(l);{var u=h=>{an(h,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.open},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside},forceMount:!1,get ref(){return t.ref}},()=>a))};gt(f,h=>{t.shouldRender&&h(u)})}W(e,l)}var mr=new Set(["$$slots","$$events","$$legacy","popper","onEscapeKeydown","escapeKeydownBehavior","preventOverflowTextSelection","id","onPointerDown","onPointerUp","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPadding","sticky","hideWhenDetached","updatePositionStrategy","strategy","dir","preventScroll","wrapperId","style","onPlaced","onInteractOutside","onCloseAutoFocus","onOpenAutoFocus","onFocusOutside","interactOutsideBehavior","loop","trapFocus","isValidEvent","customAnchor","isStatic","enabled"]);function wr(e,t){let n=O(t,"interactOutsideBehavior",3,"close"),o=O(t,"trapFocus",3,!0),r=O(t,"isValidEvent",3,()=>!1),i=O(t,"customAnchor",3,null),s=O(t,"isStatic",3,!1),a=vt(t,mr);an(e,Pt({get popper(){return t.popper},get onEscapeKeydown(){return t.onEscapeKeydown},get escapeKeydownBehavior(){return t.escapeKeydownBehavior},get preventOverflowTextSelection(){return t.preventOverflowTextSelection},get id(){return t.id},get onPointerDown(){return t.onPointerDown},get onPointerUp(){return t.onPointerUp},get side(){return t.side},get sideOffset(){return t.sideOffset},get align(){return t.align},get alignOffset(){return t.alignOffset},get arrowPadding(){return t.arrowPadding},get avoidCollisions(){return t.avoidCollisions},get collisionBoundary(){return t.collisionBoundary},get collisionPadding(){return t.collisionPadding},get sticky(){return t.sticky},get hideWhenDetached(){return t.hideWhenDetached},get updatePositionStrategy(){return t.updatePositionStrategy},get strategy(){return t.strategy},get dir(){return t.dir},get preventScroll(){return t.preventScroll},get wrapperId(){return t.wrapperId},get style(){return t.style},get onPlaced(){return t.onPlaced},get customAnchor(){return i()},get isStatic(){return s()},get enabled(){return t.enabled},get onInteractOutside(){return t.onInteractOutside},get onCloseAutoFocus(){return t.onCloseAutoFocus},get onOpenAutoFocus(){return t.onOpenAutoFocus},get interactOutsideBehavior(){return n()},get loop(){return t.loop},get trapFocus(){return o()},get isValidEvent(){return r()},get onFocusOutside(){return t.onFocusOutside}},()=>a,{forceMount:!0}))}function ne(e,t){const[n,o]=e;let r=!1;const i=t.length;for(let s=0,a=i-1;s<i;a=s++){const[l,f]=t[s]??[0,0],[u,h]=t[a]??[0,0];f>=o!=h>=o&&n<=(u-l)*(o-f)/(h-f)+l&&(r=!r)}return r}function oe(e,t){return e[0]>=t.left&&e[0]<=t.right&&e[1]>=t.top&&e[1]<=t.bottom}function Le(e,t){const n=e.left+e.width/2,o=e.top+e.height/2,r=t.left+t.width/2,i=t.top+t.height/2,s=r-n,a=i-o;return Math.abs(s)>Math.abs(a)?s>0?"right":"left":a>0?"bottom":"top"}class vr{#t;#o;#i;#r=null;#e=null;#s=[];#a=null;#n=null;#l=null;#c(){this.#n!==null&&(cancelAnimationFrame(this.#n),this.#n=null)}#d(){this.#c(),this.#n=requestAnimationFrame(()=>{this.#n=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())})}#f(){this.#l!==null&&(clearTimeout(this.#l),this.#l=null)}#g(){this.#i!==null&&(this.#f(),this.#l=window.setTimeout(()=>{this.#l=null,!(!this.#r||!this.#e)&&(this.#u(),this.#t.onPointerExit())},this.#i))}constructor(t){this.#t=t,this.#o=t.buffer??1;const n=t.transitIntentTimeout;this.#i=typeof n=="number"&&n>0?n:null,_t([t.triggerNode,t.contentNode,t.enabled],([o,r,i])=>{if(!o||!r||!i){this.#a=null,this.#u();return}this.#a&&this.#a!==o&&this.#u(),this.#a=o;const s=Hn(o),a=d=>{this.#p([d.clientX,d.clientY],o,r)},l=d=>{const c=d.relatedTarget;if(ht(c)&&r.contains(c))return;const g=this.#t.ignoredTargets?.()??[];ht(c)&&g.some(m=>m===c||m.contains(c))||(this.#s=ht(c)&&g.length>0?g.filter(m=>c.contains(m)):[],this.#r=[d.clientX,d.clientY],this.#e="content",this.#d())},f=()=>{this.#u()},u=()=>{this.#u()},h=d=>{const c=d.relatedTarget;ht(c)&&o.contains(c)||(this.#r=[d.clientX,d.clientY],this.#e="trigger",this.#d())};return[St(s,"pointermove",a),St(o,"pointerleave",l),St(o,"pointerenter",f),St(r,"pointerenter",u),St(r,"pointerleave",h)].reduce((d,c)=>()=>{d(),c()},()=>{})})}#p(t,n,o){if(!this.#r||!this.#e)return;this.#c(),this.#g();const r=n.getBoundingClientRect(),i=o.getBoundingClientRect();if(this.#e==="content"&&oe(t,i)){this.#u();return}if(this.#e==="trigger"&&oe(t,r)){this.#u();return}if(this.#e==="content"&&this.#s.length>0)for(const u of this.#s){const h=u.getBoundingClientRect();if(oe(t,h))return;const d=Le(r,h),c=this.#h(r,h,d);if(c&&ne(t,c))return}const s=Le(r,i),a=this.#h(r,i,s);if(a&&ne(t,a))return;const l=this.#e==="content"?i:r,f=this.#m(this.#r,l,s,this.#e);ne(t,f)||(this.#u(),this.#t.onPointerExit())}#u(){this.#r=null,this.#e=null,this.#s=[],this.#c(),this.#f()}#h(t,n,o){const r=this.#o;switch(o){case"top":return[[Math.min(t.left,n.left)-r,t.top],[Math.min(t.left,n.left)-r,n.bottom],[Math.max(t.right,n.right)+r,n.bottom],[Math.max(t.right,n.right)+r,t.top]];case"bottom":return[[Math.min(t.left,n.left)-r,t.bottom],[Math.min(t.left,n.left)-r,n.top],[Math.max(t.right,n.right)+r,n.top],[Math.max(t.right,n.right)+r,t.bottom]];case"left":return[[t.left,Math.min(t.top,n.top)-r],[n.right,Math.min(t.top,n.top)-r],[n.right,Math.max(t.bottom,n.bottom)+r],[t.left,Math.max(t.bottom,n.bottom)+r]];case"right":return[[t.right,Math.min(t.top,n.top)-r],[n.left,Math.min(t.top,n.top)-r],[n.left,Math.max(t.bottom,n.bottom)+r],[t.right,Math.max(t.bottom,n.bottom)+r]]}}#m(t,n,o,r){const i=this.#o*4,[s,a]=t;switch(r==="trigger"?this.#w(o):o){case"top":return[[s-i,a+i],[s+i,a+i],[n.right+i,n.bottom],[n.right+i,n.top],[n.left-i,n.top],[n.left-i,n.bottom]];case"bottom":return[[s-i,a-i],[s+i,a-i],[n.right+i,n.top],[n.right+i,n.bottom],[n.left-i,n.bottom],[n.left-i,n.top]];case"left":return[[s+i,a-i],[s+i,a+i],[n.right,n.bottom+i],[n.left,n.bottom+i],[n.left,n.top-i],[n.right,n.top-i]];case"right":return[[s-i,a-i],[s-i,a+i],[n.left,n.bottom+i],[n.right,n.bottom+i],[n.right,n.top-i],[n.left,n.top-i]]}}#w(t){switch(t){case"top":return"bottom";case"bottom":return"top";case"left":return"right";case"right":return"left"}}}const le=Yn({component:"popover",parts:["root","trigger","content","close","overlay"]}),ve=new Yt("Popover.Root");class ye{static create(t){return ve.set(new ye(t))}opts;#t=N(null);get contentNode(){return p(this.#t)}set contentNode(t){C(this.#t,t,!0)}contentPresence;#o=N(null);get triggerNode(){return p(this.#o)}set triggerNode(t){C(this.#o,t,!0)}#i=N(null);get overlayNode(){return p(this.#i)}set overlayNode(t){C(this.#i,t,!0)}overlayPresence;#r=N(!1);get openedViaHover(){return p(this.#r)}set openedViaHover(t){C(this.#r,t,!0)}#e=N(!1);get hasInteractedWithContent(){return p(this.#e)}set hasInteractedWithContent(t){C(this.#e,t,!0)}#s=N(!1);get hoverCooldown(){return p(this.#s)}set hoverCooldown(t){C(this.#s,t,!0)}#a=N(0);get closeDelay(){return p(this.#a)}set closeDelay(t){C(this.#a,t,!0)}#n=null;#l=null;constructor(t){this.opts=t,this.contentPresence=new Ce({ref:E(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),this.overlayPresence=new Ce({ref:E(()=>this.overlayNode),open:this.opts.open}),_t(()=>this.opts.open.current,n=>{n||(this.openedViaHover=!1,this.hasInteractedWithContent=!1,this.#c())})}setDomContext(t){this.#l=t}#c(){this.#n!==null&&this.#l&&(this.#l.clearTimeout(this.#n),this.#n=null)}toggleOpen(){this.#c(),this.opts.open.current=!this.opts.open.current}handleClose(){this.#c(),this.opts.open.current&&(this.opts.open.current=!1)}handleHoverOpen(){this.#c(),!this.opts.open.current&&(this.openedViaHover=!0,this.opts.open.current=!0)}handleHoverClose(){this.opts.open.current&&this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1)}handleDelayedHoverClose(){this.opts.open.current&&(!this.openedViaHover||this.hasInteractedWithContent||(this.#c(),this.closeDelay<=0?this.opts.open.current=!1:this.#l&&(this.#n=this.#l.setTimeout(()=>{this.openedViaHover&&!this.hasInteractedWithContent&&(this.opts.open.current=!1),this.#n=null},this.closeDelay))))}cancelDelayedClose(){this.#c()}markInteraction(){this.hasInteractedWithContent=!0,this.#c()}}class xe{static create(t){return new xe(t,ve.get())}opts;root;attachment;domContext;#t=null;#o=null;#i=N(!1);constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.triggerNode=o),this.domContext=new Nn(t.ref),this.root.setDomContext(this.domContext),this.onclick=this.onclick.bind(this),this.onkeydown=this.onkeydown.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),_t(()=>this.opts.closeDelay.current,o=>{this.root.closeDelay=o})}#r(){this.#t!==null&&(this.domContext.clearTimeout(this.#t),this.#t=null)}#e(){this.#o!==null&&(this.domContext.clearTimeout(this.#o),this.#o=null)}#s(){this.#r(),this.#e()}onpointerenter(t){if(this.opts.disabled.current||!this.opts.openOnHover.current||Ht(t)||(C(this.#i,!0),this.#e(),this.root.cancelDelayedClose(),this.root.opts.open.current||this.root.hoverCooldown))return;const n=this.opts.openDelay.current;n<=0?this.root.handleHoverOpen():this.#t=this.domContext.setTimeout(()=>{this.root.handleHoverOpen(),this.#t=null},n)}onpointerleave(t){this.opts.disabled.current||this.opts.openOnHover.current&&(Ht(t)||(C(this.#i,!1),this.#r(),this.root.hoverCooldown=!1))}onclick(t){if(!this.opts.disabled.current&&t.button===0){if(this.#s(),p(this.#i)&&this.root.opts.open.current&&this.root.openedViaHover){this.root.openedViaHover=!1,this.root.hasInteractedWithContent=!0;return}p(this.#i)&&this.opts.openOnHover.current&&this.root.opts.open.current&&(this.root.hoverCooldown=!0),this.root.hoverCooldown&&!this.root.opts.open.current&&(this.root.hoverCooldown=!1),this.root.toggleOpen()}}onkeydown(t){this.opts.disabled.current||(t.key===Rn||t.key===zn)&&(t.preventDefault(),this.#s(),this.root.toggleOpen())}#a(){if(this.root.opts.open.current&&this.root.contentNode?.id)return this.root.contentNode?.id}#n=A(()=>({id:this.opts.id.current,"aria-haspopup":"dialog","aria-expanded":Vn(this.root.opts.open.current),"data-state":Ye(this.root.opts.open.current),"aria-controls":this.#a(),[le.trigger]:"",disabled:this.opts.disabled.current,onkeydown:this.onkeydown,onclick:this.onclick,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#n)}set props(t){C(this.#n,t)}}class be{static create(t){return new be(t,ve.get())}opts;root;attachment;constructor(t,n){this.opts=t,this.root=n,this.attachment=Dt(this.opts.ref,o=>this.root.contentNode=o),this.onpointerdown=this.onpointerdown.bind(this),this.onfocusin=this.onfocusin.bind(this),this.onpointerenter=this.onpointerenter.bind(this),this.onpointerleave=this.onpointerleave.bind(this),new vr({triggerNode:()=>this.root.triggerNode,contentNode:()=>this.root.contentNode,enabled:()=>this.root.opts.open.current&&this.root.openedViaHover&&!this.root.hasInteractedWithContent,onPointerExit:()=>{this.root.handleDelayedHoverClose()}})}onpointerdown(t){this.root.markInteraction()}onfocusin(t){const n=t.target;ht(n)&&Kn(n)&&this.root.markInteraction()}onpointerenter(t){Ht(t)||this.root.cancelDelayedClose()}onpointerleave(t){Ht(t)}onInteractOutside=t=>{if(this.opts.onInteractOutside.current(t),t.defaultPrevented||!ht(t.target))return;const n=t.target.closest(le.selector("trigger"));if(!(n&&n===this.root.triggerNode)){if(this.opts.customAnchor.current){if(ht(this.opts.customAnchor.current)){if(this.opts.customAnchor.current.contains(t.target))return}else if(typeof this.opts.customAnchor.current=="string"){const o=document.querySelector(this.opts.customAnchor.current);if(o&&o.contains(t.target))return}}this.root.handleClose()}};onEscapeKeydown=t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()};get shouldRender(){return this.root.contentPresence.shouldRender}get shouldTrapFocus(){return!(this.root.openedViaHover&&!this.root.hasInteractedWithContent)}#t=A(()=>({open:this.root.opts.open.current}));get snippetProps(){return p(this.#t)}set snippetProps(t){C(this.#t,t)}#o=A(()=>({id:this.opts.id.current,tabindex:-1,"data-state":Ye(this.root.opts.open.current),...Xn(this.root.contentPresence.transitionStatus),[le.content]:"",style:{pointerEvents:"auto",contain:"layout style"},onpointerdown:this.onpointerdown,onfocusin:this.onfocusin,onpointerenter:this.onpointerenter,onpointerleave:this.onpointerleave,...this.attachment}));get props(){return p(this.#o)}set props(t){C(this.#o,t)}popperProps={onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown}}var yr=new Set(["$$slots","$$events","$$legacy","child","children","ref","id","forceMount","onOpenAutoFocus","onCloseAutoFocus","onEscapeKeydown","onInteractOutside","trapFocus","preventScroll","customAnchor","style"]),He=kt("<div><div><!></div></div>");function ci(e,t){const n=Ke();et(t,!0);let o=O(t,"ref",15,null),r=O(t,"id",19,()=>Ue(n)),i=O(t,"forceMount",3,!1),s=O(t,"onOpenAutoFocus",3,xt),a=O(t,"onCloseAutoFocus",3,xt),l=O(t,"onEscapeKeydown",3,xt),f=O(t,"onInteractOutside",3,xt),u=O(t,"trapFocus",3,!0),h=O(t,"preventScroll",3,!1),d=O(t,"customAnchor",3,null),c=vt(t,yr);const g=be.create({id:E(()=>r()),ref:E(()=>o(),b=>o(b)),onInteractOutside:E(()=>f()),onEscapeKeydown:E(()=>l()),customAnchor:E(()=>d())}),m=A(()=>bt(c,g.props)),y=A(()=>u()&&g.shouldTrapFocus);function w(b){g.shouldTrapFocus||b.preventDefault(),s()(b)}var v=X(),P=V(v);{var x=b=>{wr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get enabled(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!0,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))},S=b=>{pr(b,Pt(()=>p(m),()=>g.popperProps,{get ref(){return g.opts.ref},get open(){return g.root.opts.open.current},get id(){return r()},get trapFocus(){return p(y)},get preventScroll(){return h()},loop:!0,forceMount:!1,get customAnchor(){return d()},onOpenAutoFocus:w,get onCloseAutoFocus(){return a()},get shouldRender(){return g.shouldRender},popper:(_,L)=>{let M=()=>(L?.()).props,R=()=>(L?.()).wrapperProps;const H=A(()=>bt(M(),{style:Fe("popover")},{style:t.style}));var I=X(),D=V(I);{var K=B=>{var T=X(),k=V(T);{let Y=A(()=>({props:p(H),wrapperProps:R(),...g.snippetProps}));j(k,()=>t.child,()=>p(Y))}W(B,T)},z=B=>{var T=He();Ft(T,()=>({...R()}));var k=dt(T);Ft(k,()=>({...p(H)}));var Y=dt(k);j(Y,()=>t.children??$),ft(k),ft(T),W(B,T)};gt(D,B=>{t.child?B(K):B(z,-1)})}W(_,I)},$$slots:{popper:!0}}))};gt(P,b=>{i()?b(x):i()||b(S,1)})}W(e,v),nt()}var xr=new Set(["$$slots","$$events","$$legacy","children","child","id","ref","type","disabled","openOnHover","openDelay","closeDelay"]),br=kt("<button><!></button>");function ui(e,t){const n=Ke();et(t,!0);let o=O(t,"id",19,()=>Ue(n)),r=O(t,"ref",15,null),i=O(t,"type",3,"button"),s=O(t,"disabled",3,!1),a=O(t,"openOnHover",3,!1),l=O(t,"openDelay",3,700),f=O(t,"closeDelay",3,300),u=vt(t,xr);const h=xe.create({id:E(()=>o()),ref:E(()=>r(),c=>r(c)),disabled:E(()=>!!s()),openOnHover:E(()=>a()),openDelay:E(()=>l()),closeDelay:E(()=>f())}),d=A(()=>bt(u,h.props,{type:i()}));io(e,{get id(){return o()},get ref(){return h.opts.ref},children:(c,g)=>{var m=X(),y=V(m);{var w=P=>{var x=X(),S=V(x);j(S,()=>t.child,()=>({props:p(d)})),W(P,x)},v=P=>{var x=br();Ft(x,()=>({...p(d)}));var S=dt(x);j(S,()=>t.children??$),ft(x),W(P,x)};gt(y,P=>{t.child?P(w):P(v,-1)})}W(c,m)},$$slots:{default:!0}}),nt()}function di(e,t){et(t,!0);let n=O(t,"open",15,!1),o=O(t,"onOpenChange",3,xt),r=O(t,"onOpenChangeComplete",3,xt);ye.create({open:E(()=>n(),i=>{n(i),o()(i)}),onOpenChangeComplete:E(()=>r())}),ro(e,{children:(i,s)=>{var a=X(),l=V(a);j(l,()=>t.children??$),W(i,a)},$$slots:{default:!0}}),nt()}class Or{#t=N(Wt([]));get rows(){return p(this.#t)}set rows(t){C(this.#t,t,!0)}}const fi=new Or,Pr=/^\/session\/[A-Za-z0-9_-]+\/?$/;function ln(e){const t=URL.parse(e);return!!t&&(t.protocol==="http:"||t.protocol==="https:")&&$n.has(t.hostname.toLowerCase())&&!t.username&&!t.password}function Ar(e){return ln(e)&&Pr.test(URL.parse(e).pathname)}function Cr(e){return e.replace(/```[\s\S]*?(?:```|$)/g," ").replace(/`[^`\n]*`/g," ")}function Sr(e,t=null){const n=[];for(const o of je(Cr(e))){if(!ln(o)||n.includes(o))continue;const r=URL.parse(o);t&&(r.port||(r.protocol==="https:"?"443":"80"))===t||n.push(o)}return n}function Jt(e){const t=URL.parse(e);return t?`${t.origin}${t.pathname.replace(/\/+$/,"")}`:e}const Ne=2*6e4,Er=3,cn=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Oe=e=>[e.preview?.url,e.board?.url].filter(t=>!!t).map(Jt),Fr=(e,t)=>new RegExp(`${cn(t)}(?![\\w-])`).test(e),Tt=e=>{const t=e?Date.parse(e):NaN;return Number.isNaN(t)?null:t};function un(e,t){if(e.status!=="landed")return!0;const n=Tt(e.mergedAt);return n!==null&&t!==null&&t<n}function dn(e,t){const n=Oe(t);return je(e).some(o=>n.includes(Jt(o)))}function fn(e,t){const n=[t.id];return t.secondMate&&n.push(t.id.replace(/@[^@]*$/,"")),n.some(o=>new RegExp(`(?<![\\w-])${cn(o)}(?![\\w@-])`).test(e))?!0:!!t.pr?.url&&Fr(e,t.pr.url.replace(/\/+$/,""))}function Tr(e,t){return fn(e,t)||dn(e,t)}const Dr=e=>e.preview?.url??e.board?.url??null;function _r(e,t,n){const o=Jt(e);return n.some(r=>un(r,t)&&Oe(r).includes(o))}function Re(e,t,n){e.set(t,[...e.get(t)??[],n])}function hi(e,t,n=null){const o=new Map,r=t.filter(a=>a.preview||a.board),i=new Map;for(const a of r){const l=Dr(a),f=Tt(a.preview?.reportedAt??a.board?.reportedAt),u=a.status==="landed",h=u?Tt(a.mergedAt):null;let d=null,c=null,g=null;for(const y of e){if(y.kind!=="turn")continue;const w=Tt(y.at);if(f!==null&&(w===null||w<f-Ne))continue;const v=x=>un(a,w)&&dn(x,a),P=y.parts.find(x=>x.kind==="text"&&(fn(x.text,a)||v(x.text)));if(!(!P||P.kind!=="text")&&(d??=P.id,v(P.text)&&(c=P.id),u&&(h===null||w!==null&&w>=h-Ne))){g=P.id;break}}const m=g??c??d;m&&(Re(o,m,{task:a,url:l,board:!a.preview,landed:u}),i.set(m,[...i.get(m)??[],...Oe(a)]))}const s=new Map;for(const a of e){if(a.kind!=="turn")continue;const l=Tt(a.at);for(const f of a.parts){if(f.kind!=="text")continue;const u=new Set;let h=0;for(const d of Sr(f.text,n)){const c=URL.parse(d).origin,g=Jt(d);if(i.get(f.id)?.includes(g)){s.delete(g);continue}u.has(c)||_r(d,l,r)||h>=Er||(u.add(c),h++,s.delete(g),s.set(g,{anchor:f.id,url:d}))}}}for(const{anchor:a,url:l}of s.values())Re(o,a,{task:null,url:l,board:Ar(l),landed:!1});return o}function ze(e){const t=e.lastIndexOf("@");return t>0?`${e.slice(0,t)} on second mate ${e.slice(t+1)}`:e}function Mr(e){return e.kind==="pr"&&e.url?`[PR ${e.url} — task ${ze(e.id)}: ${e.title}]`:`[task ${ze(e.id)}: ${e.title}]`}function gi(e){return e.map(t=>typeof t=="string"?t:Mr(t)).join("").replace(/\u00a0/g," ").trim()}function Ir(e,t=34){const n=e.title.length>t?`${e.title.slice(0,t-1)}…`:e.title,o=e.url?.match(/\/pull\/(\d+)/)?.[1];return e.kind==="pr"?`PR${o?` #${o}`:""} ${n}`:`# ${n}`}const kr=/\[(?:PR (https?:\/\/\S+) — )?task ([A-Za-z0-9][A-Za-z0-9._-]*)(?: on second mate ([A-Za-z0-9][A-Za-z0-9._-]*))?: ([^\]\n]+)\]/g;function Br(e){const t=[];let n=0;for(const o of e.matchAll(kr))o.index>n&&t.push(e.slice(n,o.index)),t.push({kind:o[1]?"pr":"task",id:o[3]?`${o[2]}@${o[3]}`:o[2],title:o[4].trim(),project:null,url:o[1]??null}),n=o.index+o[0].length;return n<e.length&&t.push(e.slice(n)),t}const Wr=140,Lr={firstmate:"Firstmate",captain:"my message"};function hn(e){const t=e.replace(/```[^\n]*\n([\s\S]*?)```/g,"$1").replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/^\s{0,3}(?:#{1,6}\s+|>\s?|[-*+]\s+|\d+[.)]\s+)/gm,"").replace(/(\*\*|__|~~|`)/g,"").replace(/(^|[\s(])[*_]([^*_\n]+)[*_](?=[\s).,!?:;]|$)/g,"$1$2");return Br(t).map(n=>typeof n=="string"?n:Ir(n,60)).join("").replace(/\s+/g," ").trim()}function pi(e,t=Wr){const n=hn(e);if(n.length<=t)return n;const o=n.slice(0,t-1),r=o.lastIndexOf(" ");return`${(r>t/2?o.slice(0,r):o).replace(/[\s.,;:]+$/,"")}…`}function mi(e,t){const n=t.trim();return n&&`> Replying to ${Lr[e.who]}: “${e.snippet.replace(/\s+/g," ").trim()}”
|
|
2
2
|
|
|
3
3
|
${n}`}const Hr=/^> Replying to (Firstmate|my message): “(.*)”\n\n([\s\S]+)$/;function Nr(e){const t=e.replace(/\r\n?/g,`
|
|
4
4
|
`).match(Hr);return!t||!t[3].trim()?{to:null,body:e}:{to:{who:t[1]==="Firstmate"?"firstmate":"captain",snippet:t[2]},body:t[3]}}function wi(e,t){const n=hn(t);if(!n)return!1;const o=e.snippet.endsWith("…")?e.snippet.slice(0,-1):e.snippet;return e.snippet.endsWith("…")?n.startsWith(o):n===o}const wt="unsorted",Lt={topic:wt,source:null},Rr=/^\s{0,3}<!--\s*project:\s*([^\s>]+?)\s*-->\s*$/i,zr=/^\s{0,3}(`{3,}|~{3,})/;function Vr(e){const t=[];let n=null,o=[],r=null;const i=()=>{const s=o.join(`
|
|
Binary file
|
|
Binary file
|
|
@@ -1,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"./BDtt0Y7t.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
|