@intent-hq/web 2.385.1 → 2.386.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/0.DSZNT9Vm.css +1 -0
- package/web/app/immutable/chunks/{CE70-gZI.js → -8AxW0IA.js} +3 -3
- package/web/app/immutable/chunks/{DOkArUrJ.js → -VR23WhZ.js} +1 -1
- package/web/app/immutable/chunks/{U7dpdlAf.js → 0b3rkAam.js} +1 -1
- package/web/app/immutable/chunks/{sSXTMg2P.js → 0y7aytZM.js} +1 -1
- package/web/app/immutable/chunks/{B6d1Nolc.js → 21kfe-mS.js} +1 -1
- package/web/app/immutable/chunks/{iPHmrqbo.js → 24f6N9l0.js} +1 -1
- package/web/app/immutable/chunks/{DcOkWaeN.js → 2aKRVAvL.js} +1 -1
- package/web/app/immutable/chunks/{e2ymG0j7.js → 3IpMTtMx.js} +1 -1
- package/web/app/immutable/chunks/{SbTG0nwQ.js → 3Kr2ijlK.js} +1 -1
- package/web/app/immutable/chunks/{CD-M_2xD.js → 3LCOBHm6.js} +1 -1
- package/web/app/immutable/chunks/{CTW83wJs.js → 3Qz3qAhk.js} +1 -1
- package/web/app/immutable/chunks/{KzySRhDw.js → 6SOEgr71.js} +3 -3
- package/web/app/immutable/chunks/{gU2qspu9.js → 77KTvr2w.js} +1 -1
- package/web/app/immutable/chunks/{DVwMeV9X.js → 7EQMYysM.js} +1 -1
- package/web/app/immutable/chunks/{DlU1rxYV.js → 7i0OJtNQ.js} +1 -1
- package/web/app/immutable/chunks/{B6FGs8l2.js → 8jO_MBKF.js} +1 -1
- package/web/app/immutable/chunks/{C50zlWbZ.js → 9AJtSub0.js} +1 -1
- package/web/app/immutable/chunks/{CUsqN2sK.js → 9R_52XLX.js} +1 -1
- package/web/app/immutable/chunks/{DGMrUmNq.js → A3z9XWMi.js} +1 -1
- package/web/app/immutable/chunks/{Dqd75Edx.js → B-4i031c.js} +1 -1
- package/web/app/immutable/chunks/{D7xjMCds.js → B-MjuJTx.js} +2 -2
- package/web/app/immutable/chunks/{BW1iql_y.js → B0kNPCxU.js} +1 -1
- package/web/app/immutable/chunks/{CYSndAne.js → B18ybwa0.js} +1 -1
- package/web/app/immutable/chunks/{Cj1KG0_l.js → B1xM1EBM.js} +1 -1
- package/web/app/immutable/chunks/B2LBPAIA.js +1 -0
- package/web/app/immutable/chunks/{DuAAGnM9.js → B2OS2WTh.js} +1 -1
- package/web/app/immutable/chunks/{BjlMkd10.js → B3JbrKDZ.js} +1 -1
- package/web/app/immutable/chunks/{C2F2Vd1P.js → B3OJ_2Dd.js} +1 -1
- package/web/app/immutable/chunks/{CuljOS_X.js → B4F7GG5Q.js} +1 -1
- package/web/app/immutable/chunks/{CrsbEWnE.js → B8foSZsl.js} +1 -1
- package/web/app/immutable/chunks/{deEweluJ.js → B9kUdNbG.js} +1 -1
- package/web/app/immutable/chunks/{D2hNxvgD.js → BB-hf8IY.js} +4 -4
- package/web/app/immutable/chunks/{CX4-Z2NI.js → BCFB88Wl.js} +1 -1
- package/web/app/immutable/chunks/{BVqF0sgN.js → BCVhFPNJ.js} +1 -1
- package/web/app/immutable/chunks/{CrbAS4DB.js → BCiWc-GH.js} +1 -1
- package/web/app/immutable/chunks/{BD9db4FR.js → BCuI_zgX.js} +1 -1
- package/web/app/immutable/chunks/{DVUFgbJK.js → BD7jFvJp.js} +1 -1
- package/web/app/immutable/chunks/{DxAjMnFs.js → BDbFQqI8.js} +3 -3
- package/web/app/immutable/chunks/{Che-KvdU.js → BE08e7Se.js} +1 -1
- package/web/app/immutable/chunks/{HU1Ksz8U.js → BGo6FK-0.js} +1 -1
- package/web/app/immutable/chunks/{DTwG0V2f.js → BHJpo3VA.js} +1 -1
- package/web/app/immutable/chunks/{DG0pBglL.js → BIcof04i.js} +1 -1
- package/web/app/immutable/chunks/{Clo7aK1n.js → BIkt0YE0.js} +1 -1
- package/web/app/immutable/chunks/{ada9rZfE.js → BKFxm3WK.js} +1 -1
- package/web/app/immutable/chunks/{94vL4WlW.js → BNFvOw36.js} +1 -1
- package/web/app/immutable/chunks/{DzG7lmwB.js → BNJkKc31.js} +1 -1
- package/web/app/immutable/chunks/{Cq_jjcoF.js → BOnTc4ny.js} +1 -1
- package/web/app/immutable/chunks/{BGReMCaT.js → BPDyvu9A.js} +1 -1
- package/web/app/immutable/chunks/{BWzMAxc1.js → BPpACIC2.js} +1 -1
- package/web/app/immutable/chunks/{zB9UbdEg.js → BRPJcG-m.js} +1 -1
- package/web/app/immutable/chunks/{C63WwVct.js → BRdQpeCl.js} +1 -1
- package/web/app/immutable/chunks/{DxC0zTSc.js → BUTuN2nE.js} +1 -1
- package/web/app/immutable/chunks/{CWOQ_pUA.js → BVcaPXq9.js} +1 -1
- package/web/app/immutable/chunks/{CoJyxFcH.js → BVyOECUU.js} +1 -1
- package/web/app/immutable/chunks/{DiURwJNX.js → BW2en5Js.js} +1 -1
- package/web/app/immutable/chunks/{BO8Bp7Ht.js → BWI85bGY.js} +1 -1
- package/web/app/immutable/chunks/{rXKOJqUt.js → BXHbm15d.js} +1 -1
- package/web/app/immutable/chunks/{CQMFoUkp.js → BYJh9adv.js} +1 -1
- package/web/app/immutable/chunks/{DW25Ls6A.js → BYYtBM5R.js} +1 -1
- package/web/app/immutable/chunks/{l1lBFBJz.js → Bax102l4.js} +1 -1
- package/web/app/immutable/chunks/{De0kCZ4v.js → Bb-hI5du.js} +2 -2
- package/web/app/immutable/chunks/{THqyVjkf.js → Bb8ARnaK.js} +1 -1
- package/web/app/immutable/chunks/{CJB-ebPL.js → BbWnSSTS.js} +1 -1
- package/web/app/immutable/chunks/{B0qb2Ymj.js → BbfEcBPg.js} +1 -1
- package/web/app/immutable/chunks/{CNSshwg_.js → BcYVm7io.js} +1 -1
- package/web/app/immutable/chunks/{VvLcPf2a.js → BdY8OnZP.js} +1 -1
- package/web/app/immutable/chunks/{C8qAflad.js → BdlYeRHB.js} +2 -2
- package/web/app/immutable/chunks/{CPO5_F83.js → BeUuk8D1.js} +1 -1
- package/web/app/immutable/chunks/{Da-Blgd9.js → Bf_4e4N2.js} +1 -1
- package/web/app/immutable/chunks/{BVkAOJlr.js → BhYFIrRM.js} +1 -1
- package/web/app/immutable/chunks/{CqVGtsXz.js → BhtJVlVx.js} +1 -1
- package/web/app/immutable/chunks/{Cv0wEzuo.js → Bj4j6g-o.js} +1 -1
- package/web/app/immutable/chunks/{BJO0de_7.js → BjdIR-od.js} +1 -1
- package/web/app/immutable/chunks/{CdSTecgc.js → Bk14_fvY.js} +1 -1
- package/web/app/immutable/chunks/{Bc1vJq_Z.js → BlRGZv8u.js} +1 -1
- package/web/app/immutable/chunks/{Bi_Yd73A.js → BmLlDCoW.js} +1 -1
- package/web/app/immutable/chunks/{Ex_x2wO5.js → Bn4F-JIh.js} +1 -1
- package/web/app/immutable/chunks/{Bu-RLSv9.js → BoEcbLG-.js} +1 -1
- package/web/app/immutable/chunks/{CC-IHSah.js → BolJpU8l.js} +4 -4
- package/web/app/immutable/chunks/{BwPwF85e.js → BpLxj3s3.js} +1 -1
- package/web/app/immutable/chunks/{D7Dfbf5g.js → BqCTtUhB.js} +1 -1
- package/web/app/immutable/chunks/{fVXs4sxg.js → BqrahRdk.js} +4 -4
- package/web/app/immutable/chunks/{Dval4sTX.js → BrDfJqC4.js} +1 -1
- package/web/app/immutable/chunks/{DiMo2JnB.js → BtMIAxno.js} +1 -1
- package/web/app/immutable/chunks/{Cy3lhXYa.js → BthojcF8.js} +6 -6
- package/web/app/immutable/chunks/{DtqPBHQj.js → Btst3lgy.js} +1 -1
- package/web/app/immutable/chunks/{D-rRuAXZ.js → Bu3PKqut.js} +1 -1
- package/web/app/immutable/chunks/{pomj9evG.js → Bv_0mmoe.js} +1 -1
- package/web/app/immutable/chunks/{By4iSN8L.js → BwVjpKmH.js} +1 -1
- package/web/app/immutable/chunks/{LI9J8Eor.js → BweHPPaS.js} +2 -2
- package/web/app/immutable/chunks/{418Agcsp.js → Bx7gCv2M.js} +1 -1
- package/web/app/immutable/chunks/{B8QvP_8b.js → BxU747mj.js} +1 -1
- package/web/app/immutable/chunks/{DhXcDqZX.js → ByZL9dMf.js} +1 -1
- package/web/app/immutable/chunks/{-9EwpXCb.js → C1La-Fme.js} +1 -1
- package/web/app/immutable/chunks/{CletI6Pa.js → C21Z9LLF.js} +1 -1
- package/web/app/immutable/chunks/{BgDnzAo4.js → C4M_mNFP.js} +1 -1
- package/web/app/immutable/chunks/{BXJzIaQM.js → C6Wi6O6n.js} +1 -1
- package/web/app/immutable/chunks/{L_sfch_N.js → C6afU4he.js} +1 -1
- package/web/app/immutable/chunks/{DMe_MB5T.js → C6rz0msZ.js} +1 -1
- package/web/app/immutable/chunks/{CPI5xBWX.js → C8TrySMt.js} +1 -1
- package/web/app/immutable/chunks/{DI71nFp4.js → C9ij7Z2h.js} +1 -1
- package/web/app/immutable/chunks/{D5Pfy-wQ.js → CB8gRmKb.js} +1 -1
- package/web/app/immutable/chunks/{BVl79jmM.js → CDxGu9F5.js} +1 -1
- package/web/app/immutable/chunks/{B3SHGkI_.js → CDxV78M0.js} +1 -1
- package/web/app/immutable/chunks/{DN-DN78v.js → CFB2mNds.js} +2 -2
- package/web/app/immutable/chunks/{CN-EAu8o.js → CF_a5Llj.js} +1 -1
- package/web/app/immutable/chunks/{OGqbAD_O.js → CFdI48b2.js} +1 -1
- package/web/app/immutable/chunks/{BQvwLP7I.js → CGHwi-2H.js} +1 -1
- package/web/app/immutable/chunks/{CI0C7_h-.js → CGUVvS8r.js} +1 -1
- package/web/app/immutable/chunks/CH-Qi35K.js +1 -0
- package/web/app/immutable/chunks/{BPuz5cN_.js → CIKXOyvw.js} +2 -2
- package/web/app/immutable/chunks/{4g_iHoQm.js → CIoJPvjg.js} +1 -1
- package/web/app/immutable/chunks/{qO0mYaJv.js → CJEwuNO9.js} +1 -1
- package/web/app/immutable/chunks/{Cy9hcA7q.js → CJke1tnU.js} +1 -1
- package/web/app/immutable/chunks/{XEsFBJqZ.js → CLqqc_hU.js} +1 -1
- package/web/app/immutable/chunks/{BTEoQf52.js → CM9GoLV5.js} +1 -1
- package/web/app/immutable/chunks/{C9ew0Hx2.js → COBhx_l-.js} +1 -1
- package/web/app/immutable/chunks/{DTMxJ5IC.js → COS4Sgoi.js} +2 -2
- package/web/app/immutable/chunks/{jH2J-9un.js → COSIRxZC.js} +1 -1
- package/web/app/immutable/chunks/{C6TTEdST.js → COlfJVPs.js} +4 -4
- package/web/app/immutable/chunks/{A0KsbysW.js → COsxNPUV.js} +1 -1
- package/web/app/immutable/chunks/{QRUY44Ff.js → CPWMushE.js} +1 -1
- package/web/app/immutable/chunks/{tLFaYuVN.js → CQ5BHnSj.js} +1 -1
- package/web/app/immutable/chunks/{B_75gRww.js → CRUcTVFP.js} +1 -1
- package/web/app/immutable/chunks/{C9p4fddz.js → CSb1CnpN.js} +1 -1
- package/web/app/immutable/chunks/{CzDPvHAo.js → CTTICX_5.js} +1 -1
- package/web/app/immutable/chunks/{jBG7W4tL.js → CTqRHXfu.js} +1 -1
- package/web/app/immutable/chunks/{h8JtxU_T.js → CUA9hM4m.js} +1 -1
- package/web/app/immutable/chunks/{Q2C1NT93.js → CUeOEnqq.js} +1 -1
- package/web/app/immutable/chunks/{D-KE4WZ3.js → CW979n9w.js} +1 -1
- package/web/app/immutable/chunks/{3xVgojWv.js → CY0EK8Cm.js} +3 -3
- package/web/app/immutable/chunks/{C1AUaRa8.js → CYq58ltZ.js} +1 -1
- package/web/app/immutable/chunks/{LQRHF1eM.js → CZ5zON0R.js} +1 -1
- package/web/app/immutable/chunks/{DQT1hnTe.js → C_wfHKmM.js} +1 -1
- package/web/app/immutable/chunks/{Cx0QXTIW.js → CaHWSiOY.js} +1 -1
- package/web/app/immutable/chunks/{iCWz6IE9.js → CaMRSd1-.js} +1 -1
- package/web/app/immutable/chunks/{DWa-2rkZ.js → CdGl_2eX.js} +1 -1
- package/web/app/immutable/chunks/{C8LrJXqa.js → Cerl373K.js} +1 -1
- package/web/app/immutable/chunks/{DjIQY_o5.js → CfnXjWQL.js} +1 -1
- package/web/app/immutable/chunks/ChKOG1mU.js +3 -0
- package/web/app/immutable/chunks/{CHto7_WH.js → ChOMtuod.js} +1 -1
- package/web/app/immutable/chunks/{CuPx_r7k.js → CjLfgoGI.js} +1 -1
- package/web/app/immutable/chunks/{BV4VuEnO.js → CnMzOGNL.js} +1 -1
- package/web/app/immutable/chunks/{C37ZqG4e.js → CnQVxh95.js} +1 -1
- package/web/app/immutable/chunks/{Dm-WfTCg.js → Cpgxz5sK.js} +1 -1
- package/web/app/immutable/chunks/{n5-dpvss.js → Cpw2gXhG.js} +1 -1
- package/web/app/immutable/chunks/{Do2KlQU0.js → CsilY7l9.js} +1 -1
- package/web/app/immutable/chunks/{C-zB-6G6.js → CueOVPTy.js} +1 -1
- package/web/app/immutable/chunks/{VeUh5OMZ.js → CvSLeFQo.js} +1 -1
- package/web/app/immutable/chunks/{COgn_CzG.js → CvusaaYc.js} +1 -1
- package/web/app/immutable/chunks/{BECK4OaG.js → Cwg3XF5F.js} +1 -1
- package/web/app/immutable/chunks/{CDAnHxmJ.js → CyHe7TdT.js} +1 -1
- package/web/app/immutable/chunks/{B2CniqS1.js → D22j4iWy.js} +1 -1
- package/web/app/immutable/chunks/{BSUnflvl.js → D2Tzo4Hp.js} +1 -1
- package/web/app/immutable/chunks/{ZR3wQ419.js → D5A9atQX.js} +2 -2
- package/web/app/immutable/chunks/{DNDlsdj4.js → D5evzUZd.js} +1 -1
- package/web/app/immutable/chunks/{DJPIUVkw.js → D5xlMOwU.js} +1 -1
- package/web/app/immutable/chunks/{e3_wv2e_.js → D6_ybykj.js} +1 -1
- package/web/app/immutable/chunks/{CGYPBD6G.js → D7yetF0v.js} +1 -1
- package/web/app/immutable/chunks/{D2kwjrZB.js → D9_wDL10.js} +1 -1
- package/web/app/immutable/chunks/{GP4LXuR4.js → DAI6QH7D.js} +1 -1
- package/web/app/immutable/chunks/{BLKFshyr.js → DAVG7sIL.js} +1 -1
- package/web/app/immutable/chunks/{C78AfvXn.js → DBwdk2-0.js} +1 -1
- package/web/app/immutable/chunks/{CXpEvkVR.js → DC1xYxUn.js} +1 -1
- package/web/app/immutable/chunks/{TT8yXpG-.js → DDdsJrHq.js} +1 -1
- package/web/app/immutable/chunks/{D_VvdZe2.js → DEKjIPd8.js} +1 -1
- package/web/app/immutable/chunks/{Dvi4g0xk.js → DFKO8V-Y.js} +1 -1
- package/web/app/immutable/chunks/{BSgFpkqa.js → DGdWzkgm.js} +1 -1
- package/web/app/immutable/chunks/{BVuLEX_p.js → DIQ-xR1q.js} +1 -1
- package/web/app/immutable/chunks/{DmCKwthV.js → DIWzdBfB.js} +1 -1
- package/web/app/immutable/chunks/{C5b7nimj.js → DIad5c9_.js} +1 -1
- package/web/app/immutable/chunks/{B6eTPmJH.js → DJJ2Xrlq.js} +1 -1
- package/web/app/immutable/chunks/{4PAYwk2I.js → DJb2lMGn.js} +1 -1
- package/web/app/immutable/chunks/{C2WwQCOk.js → DKupjKLn.js} +1 -1
- package/web/app/immutable/chunks/{RHSH5iZ7.js → DNDJdxKs.js} +1 -1
- package/web/app/immutable/chunks/{Dp8FVKoA.js → DOLX5oss.js} +1 -1
- package/web/app/immutable/chunks/{CmyBYYR3.js → DOZ82gYM.js} +1 -1
- package/web/app/immutable/chunks/{rcXEnwTB.js → DOir9M0E.js} +1 -1
- package/web/app/immutable/chunks/{BNV0s95-.js → DQBViT5w.js} +1 -1
- package/web/app/immutable/chunks/{Dxfvrgme.js → DQvAX2eX.js} +1 -1
- package/web/app/immutable/chunks/{CNE5cVvC.js → DSDM77x3.js} +1 -1
- package/web/app/immutable/chunks/{DZmGZ5am.js → DU1c0itA.js} +1 -1
- package/web/app/immutable/chunks/DWvCfaBg.js +1 -0
- package/web/app/immutable/chunks/{7y3Z0Q49.js → DX2U4Mz9.js} +3 -3
- package/web/app/immutable/chunks/{Cl_O0hHI.js → DXDbxM_W.js} +1 -1
- package/web/app/immutable/chunks/{CrvVM5aL.js → DY1YVoxv.js} +1 -1
- package/web/app/immutable/chunks/{8jMQM9h0.js → DY5rw8pn.js} +1 -1
- package/web/app/immutable/chunks/{DFGMgfIk.js → DZSbMOPJ.js} +2 -2
- package/web/app/immutable/chunks/{CpFDUMBH.js → DZjSAGjX.js} +1 -1
- package/web/app/immutable/chunks/Da8rtzmJ.js +1 -0
- package/web/app/immutable/chunks/{Cw-qJqDx.js → DaOKbar2.js} +2 -2
- package/web/app/immutable/chunks/{CNnF3Cms.js → DbUDL_oo.js} +1 -1
- package/web/app/immutable/chunks/{BvgjsneA.js → Dbr8gjWS.js} +1 -1
- package/web/app/immutable/chunks/{L-Sh3Ble.js → DbxqdYAO.js} +3 -3
- package/web/app/immutable/chunks/{pHBnQb5R.js → DcLVN86K.js} +1 -1
- package/web/app/immutable/chunks/{xGzY0FqC.js → DcMTwn77.js} +1 -1
- package/web/app/immutable/chunks/{DT5eV1e8.js → DdRupUfV.js} +2 -2
- package/web/app/immutable/chunks/{wiGlLVr-.js → Dde9Z_vp.js} +1 -1
- package/web/app/immutable/chunks/{BQ53265L.js → DdjeekcY.js} +1 -1
- package/web/app/immutable/chunks/{BJgwBOBz.js → Dduwpj0a.js} +1 -1
- package/web/app/immutable/chunks/{CV2tdNDf.js → De0cdeOU.js} +1 -1
- package/web/app/immutable/chunks/{CuWLpCl5.js → De2a277N.js} +1 -1
- package/web/app/immutable/chunks/{C_SKcJv7.js → DeY70dof.js} +1 -1
- package/web/app/immutable/chunks/{DSiGyv9Y.js → Df4a242o.js} +1 -1
- package/web/app/immutable/chunks/{M1XBe23f.js → DfgH7-YK.js} +1 -1
- package/web/app/immutable/chunks/{7OH6WUSt.js → DgjIVRdE.js} +1 -1
- package/web/app/immutable/chunks/{CfYZevDu.js → DgzMHcMD.js} +1 -1
- package/web/app/immutable/chunks/{DEs9kPtf.js → Dh-HeAnQ.js} +1 -1
- package/web/app/immutable/chunks/{C-L0-C2F.js → Dh438xC0.js} +2 -2
- package/web/app/immutable/chunks/{DgKpR9KC.js → DhaHSPPQ.js} +1 -1
- package/web/app/immutable/chunks/{B433f4mk.js → Di_ao8Rc.js} +1 -1
- package/web/app/immutable/chunks/{CIaruUrd.js → DjNuITHM.js} +1 -1
- package/web/app/immutable/chunks/{BSntxgH1.js → Djah0WfC.js} +1 -1
- package/web/app/immutable/chunks/{BbLh3POL.js → DlMrAlfA.js} +1 -1
- package/web/app/immutable/chunks/{C8zl7aIj.js → Dm3wAkDL.js} +1 -1
- package/web/app/immutable/chunks/{B5qiyEpH.js → DpESY8ko.js} +1 -1
- package/web/app/immutable/chunks/{B_4WsP9b.js → DpvQ3NRH.js} +1 -1
- package/web/app/immutable/chunks/{JM7CQkWC.js → Dpvv-9m3.js} +1 -1
- package/web/app/immutable/chunks/{nwO3KCpP.js → DpxbS0Pj.js} +1 -1
- package/web/app/immutable/chunks/{BIGqOuh0.js → Drf1gLyo.js} +1 -1
- package/web/app/immutable/chunks/{CxndkliV.js → DrkDJmY5.js} +1 -1
- package/web/app/immutable/chunks/{DxRojUvw.js → DsOS7N8Z.js} +1 -1
- package/web/app/immutable/chunks/{_i0M7_-r.js → Dt3xwKL6.js} +2 -2
- package/web/app/immutable/chunks/{CEEUgGO1.js → DtQHtXEW.js} +1 -1
- package/web/app/immutable/chunks/{DDb9H7X6.js → DvnO7gWT.js} +3 -3
- package/web/app/immutable/chunks/{BdEtT3Ti.js → DxWgWHgi.js} +1 -1
- package/web/app/immutable/chunks/{V6efYFFY.js → DxuwadpA.js} +1 -1
- package/web/app/immutable/chunks/{0Ipp5cFr.js → DyLERSuu.js} +1 -1
- package/web/app/immutable/chunks/{pMP23LzB.js → DyXOhKE5.js} +1 -1
- package/web/app/immutable/chunks/{BlIRL_82.js → Dyx6ysl7.js} +1 -1
- package/web/app/immutable/chunks/{CR-JVxLD.js → DzBJS0Lp.js} +1 -1
- package/web/app/immutable/chunks/{Bv_xG3nA.js → DzpuLv6U.js} +1 -1
- package/web/app/immutable/chunks/{BcKrkXju.js → E1uoF1cW.js} +1 -1
- package/web/app/immutable/chunks/{DsfORPYa.js → E8oicBhU.js} +1 -1
- package/web/app/immutable/chunks/{DV7x43jt.js → EQgYvydQ.js} +1 -1
- package/web/app/immutable/chunks/{9GO97JAL.js → FQkCsxt2.js} +1 -1
- package/web/app/immutable/chunks/{CGPajdHq.js → HcbkpXC1.js} +2 -2
- package/web/app/immutable/chunks/{BYl8t9od.js → HeVxSGdr.js} +1 -1
- package/web/app/immutable/chunks/{DRsDUO-4.js → IG43rVtJ.js} +1 -1
- package/web/app/immutable/chunks/{CAfPEsZt.js → Ksiiix3Q.js} +1 -1
- package/web/app/immutable/chunks/{DlUpt_0u.js → LdXAlc1O.js} +1 -1
- package/web/app/immutable/chunks/{44rP4fzJ.js → Ly7eBIj5.js} +1 -1
- package/web/app/immutable/chunks/{B72XM8Fm.js → MoxNukrR.js} +1 -1
- package/web/app/immutable/chunks/{C-PQQ8rb.js → Nrq0Uf9_.js} +1 -1
- package/web/app/immutable/chunks/{DPR_clFy.js → OMssb4xF.js} +1 -1
- package/web/app/immutable/chunks/{C0Zo7HuP.js → PkPZtGfM.js} +1 -1
- package/web/app/immutable/chunks/{CqUPwDgo.js → Pyf1FzKM.js} +1 -1
- package/web/app/immutable/chunks/{3qVSmuIV.js → QA00-uqv.js} +1 -1
- package/web/app/immutable/chunks/{Bs7M8kXA.js → QIFiwjW0.js} +3 -3
- package/web/app/immutable/chunks/{Dg0Tdf_A.js → TN7R9Ny0.js} +1 -1
- package/web/app/immutable/chunks/{waHi6l7h.js → TXPMw3n4.js} +1 -1
- package/web/app/immutable/chunks/{gZJn6Sk0.js → TyVpf8MX.js} +1 -1
- package/web/app/immutable/chunks/{fHygQTSC.js → UQ6MIVTw.js} +1 -1
- package/web/app/immutable/chunks/{yDmmPu6L.js → UnM4qztD.js} +1 -1
- package/web/app/immutable/chunks/{PhAbES0t.js → UqcU95a7.js} +1 -1
- package/web/app/immutable/chunks/{DLCFUd4s.js → VTJf_qPn.js} +1 -1
- package/web/app/immutable/chunks/{B8HnjSSF.js → W05hyx94.js} +1 -1
- package/web/app/immutable/chunks/{D1zX4MuR.js → XMluVOSf.js} +1 -1
- package/web/app/immutable/chunks/{BtBQ5qfh.js → Y4bYs1dr.js} +1 -1
- package/web/app/immutable/chunks/{B5tvpTFB.js → Y_tkjygB.js} +1 -1
- package/web/app/immutable/chunks/{DBH_GMOZ.js → YbqMJoDi.js} +1 -1
- package/web/app/immutable/chunks/{CRSY1kuo.js → Z8DHXl17.js} +1 -1
- package/web/app/immutable/chunks/{BZVhwNIm.js → _HPNXgkR.js} +3 -3
- package/web/app/immutable/chunks/{Bf_nrOhg.js → aixoUWDq.js} +1 -1
- package/web/app/immutable/chunks/{DtFzaymP.js → awY5HvZY.js} +1 -1
- package/web/app/immutable/chunks/{5-0LQoqd.js → bIL0xbKX.js} +1 -1
- package/web/app/immutable/chunks/{BByf3ILj.js → bojY7ttK.js} +1 -1
- package/web/app/immutable/chunks/{dmZv6JOg.js → cfiNEg68.js} +1 -1
- package/web/app/immutable/chunks/{DRqy_Wmb.js → dFhS46gw.js} +1 -1
- package/web/app/immutable/chunks/{DM1_VFfD.js → fC3yz20p.js} +1 -1
- package/web/app/immutable/chunks/{DYEwyuIx.js → h5ZeHogL.js} +1 -1
- package/web/app/immutable/chunks/{C429ZMSU.js → hRfDutUE.js} +1 -1
- package/web/app/immutable/chunks/{C-G2u0Oe.js → hstOawAs.js} +1 -1
- package/web/app/immutable/chunks/{BbuLzldI.js → i8jM24jD.js} +1 -1
- package/web/app/immutable/chunks/{DXRkYB1Y.js → ico0GHoP.js} +30 -30
- package/web/app/immutable/chunks/{Cp02CBjf.js → jyNUu-ZR.js} +1 -1
- package/web/app/immutable/chunks/{BDsciJGp.js → kAav5o2h.js} +1 -1
- package/web/app/immutable/chunks/{BV1ayWTC.js → lSLkjC_I.js} +1 -1
- package/web/app/immutable/chunks/{BuFDqZnJ.js → mRUS_S7Z.js} +1 -1
- package/web/app/immutable/chunks/{BHqp2vwo.js → maZzJmVw.js} +1 -1
- package/web/app/immutable/chunks/{BvbeTrka.js → r5JNAzEM.js} +1 -1
- package/web/app/immutable/chunks/{CXDUvPYf.js → rsUVVEzx.js} +1 -1
- package/web/app/immutable/chunks/{lTwh0Wzj.js → tHETzssD.js} +1 -1
- package/web/app/immutable/chunks/{BzSCTZkL.js → v7JbBbwR.js} +1 -1
- package/web/app/immutable/chunks/{Cp7Byf5d.js → wBNgrgMC.js} +1 -1
- package/web/app/immutable/chunks/{DX9N1RQz.js → x-RVzKqZ.js} +1 -1
- package/web/app/immutable/chunks/{BTLG1BY-.js → yMcNgg0D.js} +1 -1
- package/web/app/immutable/chunks/{BNa9zzEx.js → yqEyUNVG.js} +1 -1
- package/web/app/immutable/chunks/{LgyvMkc8.js → yy2JFRyT.js} +1 -1
- package/web/app/immutable/chunks/{7KxcPj98.js → zFAkpaJn.js} +1 -1
- package/web/app/immutable/entry/{app.BXfGjD4L.js → app.gkm8TnXW.js} +3 -3
- package/web/app/immutable/entry/start.CMMmzvCE.js +1 -0
- package/web/app/immutable/nodes/{0.CoxSTVXk.js → 0.xKtnYOA2.js} +1 -1
- package/web/app/immutable/nodes/{1.BbjU9IH_.js → 1.BMx4VsW1.js} +1 -1
- package/web/app/immutable/nodes/{10.D6wyP02T.js → 10.HyXPJR8g.js} +5 -5
- package/web/app/immutable/nodes/{11.ukc3KQLY.js → 11._cAIrch_.js} +1 -1
- package/web/app/immutable/nodes/{12.D6rxlIQy.js → 12.DOoAvwLA.js} +1 -1
- package/web/app/immutable/nodes/{13.CHYsmiD_.js → 13.Coj_sRB4.js} +1 -1
- package/web/app/immutable/nodes/{14.mG-YN9pn.js → 14.AVrz3ZLQ.js} +3 -3
- package/web/app/immutable/nodes/{15.CUWA_Nvq.js → 15.BGK-JRWm.js} +1 -1
- package/web/app/immutable/nodes/{16.BsFtzH0D.js → 16.CMkcwVoI.js} +1 -1
- package/web/app/immutable/nodes/{17.me_aOx8O.js → 17.BS5un5d0.js} +1 -1
- package/web/app/immutable/nodes/{18.BO1oZWgm.js → 18._hTG2-17.js} +1 -1
- package/web/app/immutable/nodes/{19.D9cBSCEY.js → 19.DuCFyr_N.js} +2 -2
- package/web/app/immutable/nodes/{2.pGtn3nxM.js → 2.uAqDAg4D.js} +4 -4
- package/web/app/immutable/nodes/{20.LbRPieV_.js → 20.C1pW6BvW.js} +1 -1
- package/web/app/immutable/nodes/{3.Bm-Ewkeu.js → 3.M-EbuqKW.js} +1 -1
- package/web/app/immutable/nodes/{4.bypHtb3m.js → 4.ByPZ1Nrn.js} +1 -1
- package/web/app/immutable/nodes/{5.YWphdJEW.js → 5.DKAjjuf7.js} +1 -1
- package/web/app/immutable/nodes/{6.DQRfO1Qb.js → 6.DOc_YxMK.js} +1 -1
- package/web/app/immutable/nodes/{7.b1goQuXf.js → 7.gFNAyoNX.js} +1 -1
- package/web/app/immutable/nodes/{8.BBgV9gU6.js → 8.C_Kp8pWz.js} +1 -1
- package/web/app/immutable/nodes/{9.BJdtENce.js → 9.C6HX35Sq.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/assets/0.BmwjvpSF.css +0 -1
- package/web/app/immutable/chunks/CCIZBeez.js +0 -1
- package/web/app/immutable/chunks/CNWb-jYE.js +0 -1
- package/web/app/immutable/chunks/Dws-34a7.js +0 -1
- package/web/app/immutable/chunks/DyXAZ9tr.js +0 -3
- package/web/app/immutable/chunks/Whej1Dge.js +0 -1
- package/web/app/immutable/entry/start.DRVSg-kr.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./Dws-34a7.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./DLCFUd4s.js";import{H as ur}from"./zB9UbdEg.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./BIGqOuh0.js";import{t as K}from"./D-rRuAXZ.js";import{b as et}from"./BD9db4FR.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|
|
1
|
+
var nr=Object.defineProperty;var Re=l=>{throw TypeError(l)};var hr=(l,t,e)=>t in l?nr(l,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):l[t]=e;var u=(l,t,e)=>hr(l,typeof t!="symbol"?t+"":t,e),pe=(l,t,e)=>t.has(l)||Re("Cannot "+e);var r=(l,t,e)=>(pe(l,t,"read from private field"),e?e.call(l):t.get(l)),d=(l,t,e)=>t.has(l)?Re("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(l):t.set(l,e),ut=(l,t,e,o)=>(pe(l,t,"write to private field"),o?o.call(l,e):t.set(l,e),e),ct=(l,t,e)=>(pe(l,t,"access private method"),e);import{t as ft,bo as p,bw as vt,b as mt,br as Ct,bp as de}from"./DWvCfaBg.js";import{c9 as c,aD as i,bH as v,bV as V,bi as ar,ca as qe,cb as lr,bs as yt,a7 as E,ay as O,W as S,bn as bt,aA as g,bo as ue,a5 as X,bf as gt,bA as $,aB as se,bS as dr}from"./3SdAC2_C.js";import{i as Z}from"./VTJf_qPn.js";import{H as ur}from"./BRPJcG-m.js";import{au as cr,aI as pr,h as Ne,an as lt,D as ce,i as gr,d as q,a as tt,l as ie,a6 as ge,ac as ne,_ as we,J as Ce,Z as Ie,E as Pe,aR as Ge,aW as Ye,aC as ze,ap as Je,aq as Se,aF as _e,ar as Qe,a$ as at,aN as fr,aU as vr,aH as mr,aG as yr,at as Ve,am as Ze,a2 as br,av as k,ay as Nr,m as je,b as wr,c as Cr,a4 as Ir,C as Pr,g as Sr,A as _r,M as xr,F as kr,r as Hr,s as Tr,t as Ar,u as Mr,v as Or,w as Er,x as Rr,y as Vr,o as Kr,p as Fr,q as Dr,B as Br,az as ot,aS as R,a0 as Xe,$ as $e,aQ as rt,aV as Lr}from"./Drf1gLyo.js";import{t as K}from"./Bu3PKqut.js";import{b as et}from"./BCuI_zgX.js";var It,ae;class Ur{constructor(t,e){d(this,It,()=>{});d(this,ae,c(()=>r(this,It).call(this)));let o;e!==void 0&&(o=e),ut(this,It,()=>{try{return o}finally{o=t()}})}get current(){return i(r(this,ae))}}It=new WeakMap,ae=new WeakMap;var Q,nt,j;class Wr{constructor(t){d(this,Q);d(this,nt,c(()=>r(this,Q).candidateValues()));d(this,j);ut(this,Q,t),ut(this,j,cr("",{afterMs:1e3,getWindow:r(this,Q).getWindow})),this.handleTypeaheadSearch=this.handleTypeaheadSearch.bind(this),this.resetTypeahead=this.resetTypeahead.bind(this)}handleTypeaheadSearch(t){if(!r(this,Q).enabled()||!i(r(this,nt)).length)return;r(this,j).current=r(this,j).current+t;const e=r(this,Q).getCurrentItem(),o=i(r(this,nt)).find(b=>b===e)??"",n=i(r(this,nt)).map(b=>b??""),a=pr(n,r(this,j).current,o),h=i(r(this,nt)).find(b=>b===a);return h&&r(this,Q).onMatch(h),h}resetTypeahead(){r(this,j).current=""}}Q=new WeakMap,nt=new WeakMap,j=new WeakMap;const Ke=[wr,je,Cr,Ir,Pr,Sr,_r,xr,ie,kr,Hr,Tr,Ar,Mr,Or,Er,Rr,Vr,Kr,Fr,Dr],qr=[tt,we,Ce],Gr=[q,Ie,Pe],tr=[...qr,...Gr],Yr=Nr({component:"select",parts:["trigger","content","item","viewport","scroll-up-button","scroll-down-button","group","group-label","separator","arrow","input","content-wrapper","item-text","value"]}),dt=new Ne("Select.Root | Combobox.Root"),er=new Ne("Select.Group | Combobox.Group"),rr=new Ne("Select.Content | Combobox.Content");var Pt,St,_t,xt,kt,Ht,Tt,At,Mt,Ot,Et,Rt;class or{constructor(t){u(this,"opts");d(this,Pt,V(!1));d(this,St,V(null));d(this,_t,V(null));u(this,"contentPresence");d(this,xt,V(null));d(this,kt,V(null));d(this,Ht,V(null));d(this,Tt,V(""));d(this,At,V(null));d(this,Mt,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-value"):null));d(this,Ot,c(()=>{if(this.highlightedNode)return this.highlightedNode.id}));d(this,Et,c(()=>this.highlightedNode?this.highlightedNode.getAttribute("data-label"):null));d(this,Rt,V(!1));u(this,"isUsingKeyboard",!1);u(this,"isCombobox",!1);u(this,"domContext",new ce(()=>null));u(this,"getBitsAttr",t=>Yr.getAttr(t,this.isCombobox?"combobox":void 0));this.opts=t,this.isCombobox=t.isCombobox,this.contentPresence=new br({ref:k(()=>this.contentNode),open:this.opts.open,onComplete:()=>{this.opts.onOpenChangeComplete.current(this.opts.open.current)}}),lr(()=>{this.opts.open.current||this.setHighlightedNode(null)})}get touchedInput(){return i(r(this,Pt))}set touchedInput(t){v(r(this,Pt),t,!0)}get inputNode(){return i(r(this,St))}set inputNode(t){v(r(this,St),t,!0)}get contentNode(){return i(r(this,_t))}set contentNode(t){v(r(this,_t),t,!0)}get viewportNode(){return i(r(this,xt))}set viewportNode(t){v(r(this,xt),t,!0)}get triggerNode(){return i(r(this,kt))}set triggerNode(t){v(r(this,kt),t,!0)}get valueNode(){return i(r(this,Ht))}set valueNode(t){v(r(this,Ht),t,!0)}get valueId(){return i(r(this,Tt))}set valueId(t){v(r(this,Tt),t,!0)}get highlightedNode(){return i(r(this,At))}set highlightedNode(t){v(r(this,At),t,!0)}get highlightedValue(){return i(r(this,Mt))}set highlightedValue(t){v(r(this,Mt),t)}get highlightedId(){return i(r(this,Ot))}set highlightedId(t){v(r(this,Ot),t)}get highlightedLabel(){return i(r(this,Et))}set highlightedLabel(t){v(r(this,Et),t)}get contentIsPositioned(){return i(r(this,Rt))}set contentIsPositioned(t){v(r(this,Rt),t,!0)}setHighlightedNode(t,e=!1){this.highlightedNode=t,t&&(this.isUsingKeyboard||e)&&this.scrollHighlightedNodeIntoView(t)}scrollHighlightedNodeIntoView(t){!this.viewportNode||!this.contentIsPositioned||t.scrollIntoView({block:this.opts.scrollAlignment.current})}getCandidateNodes(){const t=this.contentNode;return t?Array.from(t.querySelectorAll(`[${this.getBitsAttr("item")}]:not([data-disabled])`)):[]}setHighlightedToFirstCandidate(t=!1){this.setHighlightedNode(null);let e=this.getCandidateNodes();if(e.length){if(this.viewportNode){const o=this.viewportNode.getBoundingClientRect();e=e.filter(n=>{if(!this.viewportNode)return!1;const a=n.getBoundingClientRect();return a.right<=o.right&&a.left>=o.left&&a.bottom<=o.bottom&&a.top>=o.top})}this.setHighlightedNode(e[0],t)}}getNodeByValue(t){return this.getCandidateNodes().find(o=>o.dataset.value===t)??null}getLabelForValue(t){if(t==="")return"";const e=this.opts.items.current.find(n=>n.value===t)?.label;if(e!==void 0)return e;const o=this.getNodeByValue(t);if(o){const n=o.getAttribute("data-label");return n!==null&&n!==""?n:o.textContent?.trim()??t}return t}setOpen(t){this.opts.open.current=t}toggleOpen(){this.opts.open.current=!this.opts.open.current}handleOpen(){this.setOpen(!0)}handleClose(){this.setHighlightedNode(null),this.setOpen(!1)}toggleMenu(){this.toggleOpen()}}Pt=new WeakMap,St=new WeakMap,_t=new WeakMap,xt=new WeakMap,kt=new WeakMap,Ht=new WeakMap,Tt=new WeakMap,At=new WeakMap,Mt=new WeakMap,Ot=new WeakMap,Et=new WeakMap,Rt=new WeakMap;var Vt,Kt,Ft,Dt;class zr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!1);d(this,Vt,c(()=>this.opts.value.current!==""));d(this,Kt,c(()=>this.opts.items.current.length?this.opts.items.current.find(e=>e.value===this.opts.value.current)?.label??"":""));d(this,Ft,c(()=>this.opts.items.current.length?this.opts.items.current.filter(o=>!o.disabled).map(o=>o.label):[]));d(this,Dt,c(()=>!(this.isMulti||this.opts.items.current.length===0)));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Vt))}set hasValue(e){v(r(this,Vt),e)}get currentLabel(){return i(r(this,Kt))}set currentLabel(e){v(r(this,Kt),e)}get candidateLabels(){return i(r(this,Ft))}set candidateLabels(e){v(r(this,Ft),e)}get dataTypeaheadEnabled(){return i(r(this,Dt))}set dataTypeaheadEnabled(e){v(r(this,Dt),e)}includesItem(e){return this.opts.value.current===e}toggleItem(e,o=e){const n=this.includesItem(e)?"":e;this.opts.value.current=n,n!==""&&(this.opts.inputValue.current=o)}setInitialHighlightedNode(){Ze(()=>{if(!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current!==""){const e=this.getNodeByValue(this.opts.value.current);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Vt=new WeakMap,Kt=new WeakMap,Ft=new WeakMap,Dt=new WeakMap;var Bt;class Jr extends or{constructor(e){super(e);u(this,"opts");u(this,"isMulti",!0);d(this,Bt,c(()=>this.opts.value.current.length>0));this.opts=e,qe(()=>{!this.opts.open.current&&this.highlightedNode&&this.setHighlightedNode(null)}),at(()=>this.opts.open.current,()=>{this.opts.open.current&&this.setInitialHighlightedNode()})}get hasValue(){return i(r(this,Bt))}set hasValue(e){v(r(this,Bt),e)}includesItem(e){return this.opts.value.current.includes(e)}toggleItem(e,o=e){this.includesItem(e)?this.opts.value.current=this.opts.value.current.filter(n=>n!==e):this.opts.value.current=[...this.opts.value.current,e],this.opts.inputValue.current=o}setInitialHighlightedNode(){Ze(()=>{if(this.domContext&&!(this.highlightedNode&&this.domContext.getDocument().contains(this.highlightedNode))){if(this.opts.value.current.length&&this.opts.value.current[0]!==""){const e=this.getNodeByValue(this.opts.value.current[0]);if(e){this.setHighlightedNode(e,!0);return}}this.setHighlightedToFirstCandidate(!0)}})}}Bt=new WeakMap;class vo{static create(t){const{type:e,...o}=t,n=e==="single"?new zr(o):new Jr(o);return dt.set(n)}}var Lt;const xe=class xe{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Lt,c(()=>({id:this.opts.id.current,role:"combobox",disabled:this.root.opts.disabled.current?!0:void 0,"aria-activedescendant":this.root.highlightedId,"aria-autocomplete":"list","aria-expanded":Qe(this.root.opts.open.current),"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),onkeydown:this.onkeydown,oninput:this.oninput,[this.root.getBitsAttr("input")]:"",...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.inputNode=o),this.root.domContext=new ce(t.ref),this.onkeydown=this.onkeydown.bind(this),this.oninput=this.oninput.bind(this),at([()=>this.root.opts.value.current,()=>this.opts.clearOnDeselect.current],([o,n],[a])=>{n&&(Array.isArray(o)&&Array.isArray(a)?o.length===0&&a.length!==0&&(this.root.opts.inputValue.current=""):o===""&&a!==""&&(this.root.opts.inputValue.current=""))})}static create(t){return new xe(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,t.key!==je){if((t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(Ke.includes(t.key)||t.key===ne||t.key===Br&&this.root.opts.inputValue.current===""||(this.root.handleOpen(),this.root.hasValue))return;const e=this.root.getCandidateNodes();if(!e.length)return;if(t.key===tt){const o=e[0];this.root.setHighlightedNode(o)}else if(t.key===q){const o=e[e.length-1];this.root.setHighlightedNode(o)}return}if(t.key===ne){this.root.handleClose();return}if(t.key===ie&&!t.isComposing){t.preventDefault();const e=this.root.highlightedValue===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&e&&!this.root.isMulti){this.root.handleClose();return}this.root.highlightedValue&&this.root.highlightedNode&&this.root.highlightedNode.isConnected&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!e&&this.root.handleClose()}if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const e=this.root.getCandidateNodes(),o=this.root.highlightedNode,n=o?e.indexOf(o):-1,a=this.root.opts.loop.current;let h;if(t.key===tt?h=Ge(e,n,a):t.key===q?h=Ye(e,n,a):t.key===Ie?h=ze(e,n,10,a):t.key===we?h=Je(e,n,10,a):t.key===Ce?h=e[0]:t.key===Pe&&(h=e[e.length-1]),!h)return;this.root.setHighlightedNode(h);return}Ke.includes(t.key)||this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}oninput(t){this.root.opts.inputValue.current=t.currentTarget.value,this.root.setHighlightedToFirstCandidate()}get props(){return i(r(this,Lt))}set props(t){v(r(this,Lt),t)}};Lt=new WeakMap;let Fe=xe;var ht,pt,G,sr,fe,ve,Ut;const ke=class ke{constructor(t,e){d(this,G);u(this,"opts");u(this,"root");u(this,"attachment");d(this,ht);d(this,pt);d(this,Ut,c(()=>({id:this.opts.id.current,disabled:this.root.opts.disabled.current?!0:void 0,"aria-haspopup":"listbox","aria-expanded":Qe(this.root.opts.open.current),"aria-activedescendant":this.root.highlightedId,"data-state":_e(this.root.opts.open.current),"data-disabled":Se(this.root.opts.disabled.current),"data-placeholder":this.root.hasValue?void 0:"",[this.root.getBitsAttr("trigger")]:"",onpointerdown:this.onpointerdown,onkeydown:this.onkeydown,onclick:this.onclick,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.triggerNode=o),this.root.domContext=new ce(t.ref),ut(this,ht,new gr({getCurrentItem:()=>this.root.highlightedNode,onMatch:o=>{this.root.setHighlightedNode(o)},getActiveElement:()=>this.root.domContext.getActiveElement(),getWindow:()=>this.root.domContext.getWindow()})),ut(this,pt,new Wr({getCurrentItem:()=>this.root.isMulti?"":this.root.currentLabel,onMatch:o=>{if(this.root.isMulti||!this.root.opts.items.current)return;const n=this.root.opts.items.current.find(a=>a.label===o);n&&(this.root.opts.value.current=n.value)},enabled:()=>!this.root.isMulti&&this.root.dataTypeaheadEnabled,candidateValues:()=>this.root.isMulti?[]:this.root.candidateLabels,getWindow:()=>this.root.domContext.getWindow()})),this.onkeydown=this.onkeydown.bind(this),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onclick=this.onclick.bind(this)}static create(t){return new ke(t,dt.get())}onkeydown(t){if(this.root.isUsingKeyboard=!0,(t.key===q||t.key===tt)&&t.preventDefault(),!this.root.opts.open.current){if(t.key===ie||t.key===ge||t.key===tt||t.key===q)t.preventDefault(),this.root.handleOpen();else if(!this.root.isMulti&&this.root.dataTypeaheadEnabled){r(this,pt).handleTypeaheadSearch(t.key);return}if(this.root.hasValue)return;const h=this.root.getCandidateNodes();if(!h.length)return;if(t.key===tt){const b=h[0];this.root.setHighlightedNode(b)}else if(t.key===q){const b=h[h.length-1];this.root.setHighlightedNode(b)}return}if(t.key===ne){this.root.handleClose();return}if((t.key===ie||t.key===ge&&r(this,ht).search==="")&&!t.isComposing&&(t.preventDefault(),ct(this,G,ve).call(this)))return;if(t.key===q&&t.altKey&&this.root.handleClose(),tr.includes(t.key)){t.preventDefault();const h=this.root.getCandidateNodes(),b=this.root.highlightedNode,C=b?h.indexOf(b):-1,f=this.root.opts.loop.current;let y;if(t.key===tt?y=Ge(h,C,f):t.key===q?y=Ye(h,C,f):t.key===Ie?y=ze(h,C,10,f):t.key===we?y=Je(h,C,10,f):t.key===Ce?y=h[0]:t.key===Pe&&(y=h[h.length-1]),!y)return;this.root.setHighlightedNode(y);return}const e=t.ctrlKey||t.altKey||t.metaKey,o=t.key.length===1,n=t.key===ge,a=this.root.getCandidateNodes();if(t.key!==ne){if(!e&&(o||n)){!r(this,ht).handleTypeaheadSearch(t.key,a)&&n&&(t.preventDefault(),ct(this,G,ve).call(this));return}this.root.highlightedNode||this.root.setHighlightedToFirstCandidate()}}onclick(t){t.currentTarget.focus()}onpointerdown(t){if(this.root.opts.disabled.current)return;if(t.pointerType==="touch")return t.preventDefault();const e=t.target;e?.hasPointerCapture(t.pointerId)&&e?.releasePointerCapture(t.pointerId),t.button===0&&t.ctrlKey===!1&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose())}onpointerup(t){this.root.opts.disabled.current||(t.preventDefault(),t.pointerType==="touch"&&(this.root.opts.open.current===!1?ct(this,G,fe).call(this,t):this.root.handleClose()))}get props(){return i(r(this,Ut))}set props(t){v(r(this,Ut),t)}};ht=new WeakMap,pt=new WeakMap,G=new WeakSet,sr=function(){this.root.opts.open.current=!0,r(this,pt).resetTypeahead(),r(this,ht).resetTypeahead()},fe=function(t){ct(this,G,sr).call(this)},ve=function(){const t=this.root.highlightedValue===this.root.opts.value.current;return!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti?(this.root.handleClose(),!0):(this.root.highlightedValue!==null&&this.root.toggleItem(this.root.highlightedValue,this.root.highlightedLabel??void 0),!this.root.isMulti&&!t?(this.root.handleClose(),!0):!1)},Ut=new WeakMap;let De=ke;var Wt,le,qt,Gt;const He=class He{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Wt,V(!1));u(this,"domContext");d(this,le,c(()=>mr(this.root.isCombobox?"combobox":"select")));u(this,"onInteractOutside",t=>{if(t.target===this.root.triggerNode||t.target===this.root.inputNode){t.preventDefault();return}this.opts.onInteractOutside.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onEscapeKeydown",t=>{this.opts.onEscapeKeydown.current(t),!t.defaultPrevented&&this.root.handleClose()});u(this,"onOpenAutoFocus",t=>{t.preventDefault()});u(this,"onCloseAutoFocus",t=>{t.preventDefault()});d(this,qt,c(()=>({open:this.root.opts.open.current})));d(this,Gt,c(()=>({id:this.opts.id.current,role:"listbox","aria-multiselectable":this.root.isMulti?"true":void 0,"data-state":_e(this.root.opts.open.current),...yr(this.root.contentPresence.transitionStatus),[this.root.getBitsAttr("content")]:"",style:{display:"flex",flexDirection:"column",outline:"none",boxSizing:"border-box",pointerEvents:"auto",...i(r(this,le))},onpointermove:this.onpointermove,...this.attachment})));u(this,"popperProps",{onInteractOutside:this.onInteractOutside,onEscapeKeydown:this.onEscapeKeydown,onOpenAutoFocus:this.onOpenAutoFocus,onCloseAutoFocus:this.onCloseAutoFocus,trapFocus:!1,loop:!1,onPlaced:()=>{this.root.opts.open.current&&(this.root.contentIsPositioned=!0,this.isPositioned=!0)}});this.opts=t,this.root=e,this.attachment=lt(t.ref,o=>this.root.contentNode=o),this.domContext=new ce(this.opts.ref),this.root.domContext===null&&(this.root.domContext=this.domContext),vr(()=>{this.root.contentNode=null,this.root.contentIsPositioned=!1,this.isPositioned=!1}),at(()=>this.root.opts.open.current,()=>{this.root.opts.open.current||(this.root.contentIsPositioned=!1,this.isPositioned=!1)}),at([()=>this.isPositioned,()=>this.root.highlightedNode],()=>{!this.isPositioned||!this.root.highlightedNode||this.root.scrollHighlightedNodeIntoView(this.root.highlightedNode)}),this.onpointermove=this.onpointermove.bind(this)}static create(t){return rr.set(new He(t,dt.get()))}get isPositioned(){return i(r(this,Wt))}set isPositioned(t){v(r(this,Wt),t,!0)}onpointermove(t){this.root.isUsingKeyboard=!1}get shouldRender(){return this.root.contentPresence.shouldRender}get snippetProps(){return i(r(this,qt))}set snippetProps(t){v(r(this,qt),t)}get props(){return i(r(this,Gt))}set props(t){v(r(this,Gt),t)}};Wt=new WeakMap,le=new WeakMap,qt=new WeakMap,Gt=new WeakMap;let he=He;var Yt,zt,Jt,Qt,Zt;const Te=class Te{constructor(t,e){u(this,"opts");u(this,"root");u(this,"attachment");d(this,Yt,c(()=>this.root.includesItem(this.opts.value.current)));d(this,zt,c(()=>this.root.highlightedValue===this.opts.value.current));u(this,"prevHighlighted",new Ur(()=>this.isHighlighted));d(this,Jt,V(!1));d(this,Qt,c(()=>({selected:this.isSelected,highlighted:this.isHighlighted})));d(this,Zt,c(()=>({id:this.opts.id.current,role:"option","aria-selected":this.root.includesItem(this.opts.value.current)?"true":void 0,"data-value":this.opts.value.current,"data-disabled":Se(this.opts.disabled.current),"data-highlighted":this.root.highlightedValue===this.opts.value.current&&!this.opts.disabled.current?"":void 0,"data-selected":this.root.includesItem(this.opts.value.current)?"":void 0,"data-label":this.opts.label.current,[this.root.getBitsAttr("item")]:"",onpointermove:this.onpointermove,onpointerdown:this.onpointerdown,onpointerup:this.onpointerup,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref),at([()=>this.isHighlighted,()=>this.prevHighlighted.current],()=>{this.isHighlighted?this.opts.onHighlight.current():this.prevHighlighted.current&&this.opts.onUnhighlight.current()}),at(()=>this.mounted,()=>{this.mounted&&this.root.setInitialHighlightedNode()}),this.onpointerdown=this.onpointerdown.bind(this),this.onpointerup=this.onpointerup.bind(this),this.onpointermove=this.onpointermove.bind(this)}static create(t){return new Te(t,dt.get())}get isSelected(){return i(r(this,Yt))}set isSelected(t){v(r(this,Yt),t)}get isHighlighted(){return i(r(this,zt))}set isHighlighted(t){v(r(this,zt),t)}get mounted(){return i(r(this,Jt))}set mounted(t){v(r(this,Jt),t,!0)}handleSelect(){if(this.opts.disabled.current)return;const t=this.opts.value.current===this.root.opts.value.current;if(!this.root.opts.allowDeselect.current&&t&&!this.root.isMulti){this.root.handleClose();return}this.root.toggleItem(this.opts.value.current,this.opts.label.current),!this.root.isMulti&&!t&&this.root.handleClose()}get snippetProps(){return i(r(this,Qt))}set snippetProps(t){v(r(this,Qt),t)}onpointerdown(t){t.preventDefault()}onpointerup(t){if(!(t.defaultPrevented||!this.opts.ref.current)){if(t.pointerType==="touch"&&!fr){ar(this.opts.ref.current,"click",()=>{this.handleSelect(),this.root.setHighlightedNode(this.opts.ref.current)},{once:!0});return}t.preventDefault(),this.handleSelect(),t.pointerType==="touch"&&this.root.setHighlightedNode(this.opts.ref.current)}}onpointermove(t){t.pointerType!=="touch"&&this.root.highlightedNode!==this.opts.ref.current&&this.root.setHighlightedNode(this.opts.ref.current)}get props(){return i(r(this,Zt))}set props(t){v(r(this,Zt),t)}};Yt=new WeakMap,zt=new WeakMap,Jt=new WeakMap,Qt=new WeakMap,Zt=new WeakMap;let me=Te;var jt,Xt;const Ae=class Ae{constructor(t,e){u(this,"opts");u(this,"root");d(this,jt,V(null));u(this,"attachment");d(this,Xt,c(()=>({id:this.opts.id.current,role:"group",[this.root.getBitsAttr("group")]:"","aria-labelledby":this.labelNode?.id??void 0,...this.attachment})));this.opts=t,this.root=e,this.attachment=lt(t.ref)}static create(t){return er.set(new Ae(t,dt.get()))}get labelNode(){return i(r(this,jt))}set labelNode(t){v(r(this,jt),t,!0)}get props(){return i(r(this,Xt))}set props(t){v(r(this,Xt),t)}};jt=new WeakMap,Xt=new WeakMap;let Be=Ae;var $t;const Me=class Me{constructor(t,e){u(this,"opts");u(this,"group");u(this,"attachment");d(this,$t,c(()=>({id:this.opts.id.current,[this.group.root.getBitsAttr("group-label")]:"",...this.attachment})));this.opts=t,this.group=e,this.attachment=lt(t.ref,o=>this.group.labelNode=o)}static create(t){return new Me(t,er.get())}get props(){return i(r(this,$t))}set props(t){v(r(this,$t),t)}};$t=new WeakMap;let Le=Me;var te,ee;const Oe=class Oe{constructor(t,e){u(this,"opts");u(this,"root");d(this,te,c(()=>this.root.opts.name.current!==""));d(this,ee,c(()=>({disabled:Ve(this.root.opts.disabled.current),required:Ve(this.root.opts.required.current),name:this.root.opts.name.current,value:this.opts.value.current,onfocus:this.onfocus})));this.opts=t,this.root=e,this.onfocus=this.onfocus.bind(this)}static create(t){return new Oe(t,dt.get())}get shouldRender(){return i(r(this,te))}set shouldRender(t){v(r(this,te),t)}onfocus(t){t.preventDefault(),this.root.isCombobox?this.root.inputNode?.focus():this.root.triggerNode?.focus()}get props(){return i(r(this,ee))}set props(t){v(r(this,ee),t)}};te=new WeakMap,ee=new WeakMap;let ye=Oe;var re,oe;const Ee=class Ee{constructor(t,e){u(this,"opts");u(this,"content");u(this,"root");u(this,"attachment");d(this,re,V(0));d(this,oe,c(()=>({id:this.opts.id.current,role:"presentation",[this.root.getBitsAttr("viewport")]:"",style:{position:"relative",flex:1,overflow:"auto"},...this.attachment})));this.opts=t,this.content=e,this.root=e.root,this.attachment=lt(t.ref,o=>{this.root.viewportNode=o})}static create(t){return new Ee(t,rr.get())}get prevScrollTop(){return i(r(this,re))}set prevScrollTop(t){v(r(this,re),t,!0)}get props(){return i(r(this,oe))}set props(t){v(r(this,oe),t)}};re=new WeakMap,oe=new WeakMap;let be=Ee;function Qr(l,t){if(new.target)return ft({component:Qr,...l});yt(t,!0);let e=p(t,"value",15),o=p(t,"autocomplete",7);const n=ye.create({value:k(()=>e())});var a={get value(){return e()},set value(f){e(f),g()},get autocomplete(){return o()},set autocomplete(f){o(f),g()},$set:vt,$on:(f,y)=>mt(t,f,y)},h=E(),b=O(h);{var C=f=>{ur(f,Ct(()=>n.props,{get autocomplete(){return o()},get value(){return e()},set value(y){e(y)}}))};Z(b,f=>{n.shouldRender&&f(C)})}return S(l,h),bt(a)}var Zr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","side","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),Ue=se("<div><div><!></div></div>");function jr(l,t){const e=ue();if(new.target)return ft({component:jr,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"side",7,"bottom"),b=p(t,"onInteractOutside",7,R),C=p(t,"onEscapeKeydown",7,R),f=p(t,"children",7),y=p(t,"child",7),M=p(t,"preventScroll",7,!1),W=p(t,"style",7),w=de(t,Zr);const I=he.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),onInteractOutside:k(()=>b()),onEscapeKeydown:k(()=>C())}),N=c(()=>rt(w,I.props));var H={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get forceMount(){return a()},set forceMount(s=!1){a(s),g()},get side(){return h()},set side(s="bottom"){h(s),g()},get onInteractOutside(){return b()},set onInteractOutside(s=R){b(s),g()},get onEscapeKeydown(){return C()},set onEscapeKeydown(s=R){C(s),g()},get children(){return f()},set children(s){f(s),g()},get child(){return y()},set child(s){y(s),g()},get preventScroll(){return M()},set preventScroll(s=!1){M(s),g()},get style(){return W()},set style(s){W(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},F=E(),Nt=O(F);{var wt=s=>{Xe(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get enabled(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!0,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))},m=s=>{$e(s,Ct(()=>i(N),()=>I.popperProps,{get ref(){return I.opts.ref},get side(){return h()},get open(){return I.root.opts.open.current},get id(){return o()},get preventScroll(){return M()},forceMount:!1,get shouldRender(){return I.shouldRender},popper:(D,B)=>{let Y=()=>(B?.()).props,L=()=>(B?.()).wrapperProps;const z=c(()=>rt(Y(),{style:I.props.style},{style:W()}));var J=E(),st=O(J);{var A=P=>{var x=E(),U=O(x);{let it=c(()=>({props:i(z),wrapperProps:L(),...I.snippetProps}));K(U,y,()=>i(it))}S(P,x)},_=P=>{var x=Ue();et(x,()=>({...L()}));var U=X(x);et(U,()=>({...i(z)}));var it=X(U);K(it,()=>f()??gt),$(U),$(x),S(P,x)};Z(st,P=>{y()?P(A):P(_,-1)})}S(D,J)},$$slots:{popper:!0}}))};Z(Nt,s=>{a()?s(wt):a()||s(m,1)})}return S(l,F),bt(H)}var Xr=new Set(["$$slots","$$events","$$legacy","id","ref","forceMount","onInteractOutside","onEscapeKeydown","children","child","preventScroll","style"]),We=se("<div><!></div>");function $r(l,t){const e=ue();if(new.target)return ft({component:$r,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"forceMount",7,!1),h=p(t,"onInteractOutside",7,R),b=p(t,"onEscapeKeydown",7,R),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"preventScroll",7,!1),M=p(t,"style",7),W=de(t,Xr);const w=he.create({id:k(()=>o()),ref:k(()=>n(),m=>n(m)),onInteractOutside:k(()=>h()),onEscapeKeydown:k(()=>b())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(m=ot(e)){o(m),g()},get ref(){return n()},set ref(m=null){n(m),g()},get forceMount(){return a()},set forceMount(m=!1){a(m),g()},get onInteractOutside(){return h()},set onInteractOutside(m=R){h(m),g()},get onEscapeKeydown(){return b()},set onEscapeKeydown(m=R){b(m),g()},get children(){return C()},set children(m){C(m),g()},get child(){return f()},set child(m){f(m),g()},get preventScroll(){return y()},set preventScroll(m=!1){y(m),g()},get style(){return M()},set style(m){M(m),g()},$set:vt,$on:(m,s)=>mt(t,m,s)},H=E(),F=O(H);{var Nt=m=>{Xe(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get enabled(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!0,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))},wt=m=>{$e(m,Ct(()=>i(I),()=>w.popperProps,{get ref(){return w.opts.ref},isStatic:!0,get open(){return w.root.opts.open.current},get id(){return o()},get preventScroll(){return y()},forceMount:!1,get shouldRender(){return w.shouldRender},popper:(T,D)=>{let B=()=>(D?.()).props;const Y=c(()=>rt(B(),{style:w.props.style},{style:M()}));var L=E(),z=O(L);{var J=A=>{var _=E(),P=O(_);{let x=c(()=>({props:i(Y),...w.snippetProps}));K(P,f,()=>i(x))}S(A,_)},st=A=>{var _=We();et(_,()=>({...i(Y)}));var P=X(_);K(P,()=>C()??gt),$(_),S(A,_)};Z(z,A=>{f()?A(J):A(st,-1)})}S(T,L)},$$slots:{popper:!0}}))};Z(F,m=>{a()?m(Nt):a()||m(wt,1)})}return S(l,H),bt(N)}function ir(l,t){if(new.target)return ft({component:ir,...l});yt(t,!0);let e=p(t,"mounted",15,!1),o=p(t,"onMountedChange",7,R);Lr(()=>(e(!0),o()(!0),()=>{e(!1),o()(!1)}));var n={get mounted(){return e()},set mounted(a=!1){e(a),g()},get onMountedChange(){return o()},set onMountedChange(a=R){o(a),g()},$set:vt,$on:(a,h)=>mt(t,a,h)};return bt(n)}var to=new Set(["$$slots","$$events","$$legacy","id","ref","value","label","disabled","children","child","onHighlight","onUnhighlight"]),eo=se("<div><!></div>"),ro=se("<!> <!>",1);function oo(l,t){const e=ue();if(new.target)return ft({component:oo,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"value",7),h=p(t,"label",23,a),b=p(t,"disabled",7,!1),C=p(t,"children",7),f=p(t,"child",7),y=p(t,"onHighlight",7,R),M=p(t,"onUnhighlight",7,R),W=de(t,to);const w=me.create({id:k(()=>o()),ref:k(()=>n(),s=>n(s)),value:k(()=>a()),disabled:k(()=>b()),label:k(()=>h()),onHighlight:k(()=>y()),onUnhighlight:k(()=>M())}),I=c(()=>rt(W,w.props));var N={get id(){return o()},set id(s=ot(e)){o(s),g()},get ref(){return n()},set ref(s=null){n(s),g()},get value(){return a()},set value(s){a(s),g()},get label(){return h()},set label(s=a){h(s),g()},get disabled(){return b()},set disabled(s=!1){b(s),g()},get children(){return C()},set children(s){C(s),g()},get child(){return f()},set child(s){f(s),g()},get onHighlight(){return y()},set onHighlight(s=R){y(s),g()},get onUnhighlight(){return M()},set onUnhighlight(s=R){M(s),g()},$set:vt,$on:(s,T)=>mt(t,s,T)},H=ro(),F=O(H);{var Nt=s=>{var T=E(),D=O(T);{let B=c(()=>({props:i(I),...w.snippetProps}));K(D,f,()=>i(B))}S(s,T)},wt=s=>{var T=eo();et(T,()=>({...i(I)}));var D=X(T);K(D,()=>C()??gt,()=>w.snippetProps),$(T),S(s,T)};Z(F,s=>{f()?s(Nt):s(wt,-1)})}var m=dr(F,2);return ir(m,{get mounted(){return w.mounted},set mounted(s){w.mounted=s}}),S(l,H),bt(N)}var so=new Set(["$$slots","$$events","$$legacy","id","ref","children","child"]),io=se("<div><!></div>");function no(l,t){const e=ue();if(new.target)return ft({component:no,...l});yt(t,!0);let o=p(t,"id",23,()=>ot(e)),n=p(t,"ref",15,null),a=p(t,"children",7),h=p(t,"child",7),b=de(t,so);const C=be.create({id:k(()=>o()),ref:k(()=>n(),N=>n(N))}),f=c(()=>rt(b,C.props));var y={get id(){return o()},set id(N=ot(e)){o(N),g()},get ref(){return n()},set ref(N=null){n(N),g()},get children(){return a()},set children(N){a(N),g()},get child(){return h()},set child(N){h(N),g()},$set:vt,$on:(N,H)=>mt(t,N,H)},M=E(),W=O(M);{var w=N=>{var H=E(),F=O(H);K(F,h,()=>({props:i(f)})),S(N,H)},I=N=>{var H=io();et(H,()=>({...i(f)}));var F=X(H);K(F,()=>a()??gt),$(H),S(N,H)};Z(W,N=>{h()?N(w):N(I,-1)})}return S(l,M),bt(y)}export{Le as S,Be as a,Fe as b,vo as c,De as d,jr as e,$r as f,Qr as g,oo as h,no as i};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as oe,bo as i,bw as ie,bq as ce,b as le,bs as $}from"./
|
|
1
|
+
import{t as oe,bo as i,bw as ie,bq as ce,b as le,bs as $}from"./DWvCfaBg.js";import{bs as ue,bk as me,bH as j,ca as ve,aD as s,a5 as R,bl as ee,bS as B,bA as F,b_ as Z,bO as Q,W as w,bn as de,bV as te,c9 as g,aA as l,aB as E,a7 as fe,ay as pe,b$ as ae}from"./3SdAC2_C.js";import{i as h}from"./VTJf_qPn.js";import{f as K,s as se}from"./BCuI_zgX.js";import{F as re,cd as ge,bZ as xe}from"./D7yetF0v.js";import{p as _e,o as be}from"./CueOVPTy.js";import{o as ne}from"./BlRGZv8u.js";import{l as T}from"./W05hyx94.js";var he=E('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=E('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(L,r){if(new.target)return oe({component:Y,...L});ue(r,!0);const y=()=>$(W,"$displayValue",x),V=()=>$(q,"$displaySecondaryValue",x),[x,D]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>T(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),P=te(!1),C=0;const W=ne(n(),c()),q=ne(o()??0,c());me(()=>(j(P,_e(),!0),be(e=>j(P,e,!0)))),ve(()=>{if(s(P)){C+=1,j(k,null),m=n(),v=o(),W.set(n()),q.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();j(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([W.set(n()),q.set(o()??0)]).then(()=>{M===C&&j(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var G={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>T(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let J;var H=R(A),f=ee(H,!0),d=B(H,2);{var I=e=>{var u=he(),M=ee(u,!0);Z(()=>Q(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}F(A),Z(()=>{J=K(A,1,`animated-number ${z()??""}`,"svelte-194ris3",J,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),Q(f,s(t))}),w(L,A);var O=de(G);return D(),O}var ye=E("<span><!> <span>+<!></span></span>"),Ve=E("<span><!> <span>-<!></span></span>"),ze=E("<div><!> <!></div>");function Se(L,r){if(new.target)return oe({component:Se,...L});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),D=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[D()]),v=g(()=>k[D()]);var P={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return D()},set size(t="xs"){D(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),W=pe(C);{var q=t=>{var b=ze(),G=R(b);{var A=f=>{var d=ye(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return ge},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return y()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(y())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(G,f=>{(s(_)||x())&&f(A)})}var J=B(G,2);{var H=f=>{var d=Ve(),I=R(d);{var O=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return xe},get size(){return s(p)}})}};h(I,a=>{n()&&a(O)})}var e=B(I,2),u=B(R(e));{var M=a=>{Y(a,{get value(){return V()}})},U=a=>{var p=ae();Z(X=>Q(p,X),[()=>T(V())]),w(a,p)};h(u,a=>{c()?a(M):a(U,-1)})}F(e),F(d),Z(()=>K(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(J,f=>{(s(z)||x())&&f(H)})}F(b),Z(()=>K(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(W,t=>{s(N)&&t(q)})}return w(L,C),de(P)}export{Y as A,Se as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g,bo as n,br as v,bw as b,bp as h,b as x}from"./
|
|
1
|
+
import{t as g,bo as n,br as v,bw as b,bp as h,b as x}from"./DWvCfaBg.js";import{bs as w,a7 as S,ay as y,aD as _,W as k,bn as z,aA as i,c9 as C}from"./3SdAC2_C.js";import{c as A}from"./Y_tkjygB.js";import{e as I,p as M}from"./BCuI_zgX.js";import{S as P}from"./3Qz3qAhk.js";var W=new Set(["$$slots","$$events","$$legacy","ref","class","data-slot"]);function D(l,t){if(new.target)return g({component:D,...l});w(t,!0);let a=n(t,"ref",15,null),r=n(t,"class",7),s=n(t,"data-slot",7,"separator"),c=h(t,W);var m={get ref(){return a()},set ref(e=null){a(e),i()},get class(){return r()},set class(e){r(e),i()},get"data-slot"(){return s()},set"data-slot"(e="separator"){s(e),i()},$set:b,$on:(e,o)=>x(t,e,o)},p=S(),d=y(p);{let e=C(()=>I("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",r()));A(d,()=>P,(o,u)=>{u(o,v({get"data-slot"(){return s()},get class(){return _(e)}},()=>c,{get ref(){return a()},set ref(f){a(f)}}))})}return k(l,p),z(m)}const F=[{id:"separator-state-matrix",title:"Separator states",states:["horizontal","vertical","decorative","semantic","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];M({id:"separator",source:"src/lib/components/ui/separator/separator.svelte",publicImport:"$lib/components/ui/separator",legacyImports:["$lib/components/ui/separator/index.js"],exports:["Root","Separator","separatorMetadata"],category:"primitive",owner:"design-system",callers:["src/features/discussions/components/DiscussionMentionPicker.svelte","src/features/home/HomeAssistantThreads.svelte","src/features/workspace-sharing/components/WorkspaceSharingSetup.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/components/file-explorer/file-explorer-layout.svelte","src/lib/components/ui/sidebar/sidebar-separator.svelte","src/lib/components/workspace/WorkspaceAgentsList.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/separator/separator.test.ts",removalGate:"Retain while exported and orientation, semantic, and fixture tests pass.",dynamicImports:[],fixtures:F});export{D as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e}from"./
|
|
1
|
+
import{l as e}from"./DX2U4Mz9.js";const t={comments:{lineComment:"#"},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],folding:{offSide:!0},onEnterRules:[{beforeText:/:\s*$/,action:{indentAction:e.IndentAction.Indent}}]},o={tokenPostfix:".yaml",brackets:[{token:"delimiter.bracket",open:"{",close:"}"},{token:"delimiter.square",open:"[",close:"]"}],keywords:["true","True","TRUE","false","False","FALSE","null","Null","Null","~"],numberInteger:/(?:0|[+-]?[0-9]+)/,numberFloat:/(?:0|[+-]?[0-9]+)(?:\.[0-9]+)?(?:e[-+][1-9][0-9]*)?/,numberOctal:/0o[0-7]+/,numberHex:/0x[0-9a-fA-F]+/,numberInfinity:/[+-]?\.(?:inf|Inf|INF)/,numberNaN:/\.(?:nan|Nan|NAN)/,numberDate:/\d{4}-\d\d-\d\d([Tt ]\d\d:\d\d:\d\d(\.\d+)?(( ?[+-]\d\d?(:\d\d)?)|Z)?)?/,escapes:/\\(?:[btnfr\\"']|[0-7][0-7]?|[0-3][0-7]{2})/,tokenizer:{root:[{include:"@whitespace"},{include:"@comment"},[/%[^ ]+.*$/,"meta.directive"],[/---/,"operators.directivesEnd"],[/\.{3}/,"operators.documentEnd"],[/[-?:](?= )/,"operators"],{include:"@anchor"},{include:"@tagHandle"},{include:"@flowCollections"},{include:"@blockStyle"},[/@numberInteger(?![ \t]*\S+)/,"number"],[/@numberFloat(?![ \t]*\S+)/,"number.float"],[/@numberOctal(?![ \t]*\S+)/,"number.octal"],[/@numberHex(?![ \t]*\S+)/,"number.hex"],[/@numberInfinity(?![ \t]*\S+)/,"number.infinity"],[/@numberNaN(?![ \t]*\S+)/,"number.nan"],[/@numberDate(?![ \t]*\S+)/,"number.date"],[/(".*?"|'.*?'|[^#'"]*?)([ \t]*)(:)( |$)/,["type","white","operators","white"]],{include:"@flowScalars"},[/.+?(?=(\s+#|$))/,{cases:{"@keywords":"keyword","@default":"string"}}]],object:[{include:"@whitespace"},{include:"@comment"},[/\}/,"@brackets","@pop"],[/,/,"delimiter.comma"],[/:(?= )/,"operators"],[/(?:".*?"|'.*?'|[^,\{\[]+?)(?=: )/,"type"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\},]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],array:[{include:"@whitespace"},{include:"@comment"},[/\]/,"@brackets","@pop"],[/,/,"delimiter.comma"],{include:"@flowCollections"},{include:"@flowScalars"},{include:"@tagHandle"},{include:"@anchor"},{include:"@flowNumber"},[/[^\],]+/,{cases:{"@keywords":"keyword","@default":"string"}}]],multiString:[[/^( +).+$/,"string","@multiStringContinued.$1"]],multiStringContinued:[[/^( *).+$/,{cases:{"$1==$S2":"string","@default":{token:"@rematch",next:"@popall"}}}]],whitespace:[[/[ \t\r\n]+/,"white"]],comment:[[/#.*$/,"comment"]],flowCollections:[[/\[/,"@brackets","@array"],[/\{/,"@brackets","@object"]],flowScalars:[[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/'[^']*'/,"string"],[/"/,"string","@doubleQuotedString"]],doubleQuotedString:[[/[^\\"]+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/"/,"string","@pop"]],blockStyle:[[/[>|][0-9]*[+-]?$/,"operators","@multiString"]],flowNumber:[[/@numberInteger(?=[ \t]*[,\]\}])/,"number"],[/@numberFloat(?=[ \t]*[,\]\}])/,"number.float"],[/@numberOctal(?=[ \t]*[,\]\}])/,"number.octal"],[/@numberHex(?=[ \t]*[,\]\}])/,"number.hex"],[/@numberInfinity(?=[ \t]*[,\]\}])/,"number.infinity"],[/@numberNaN(?=[ \t]*[,\]\}])/,"number.nan"],[/@numberDate(?=[ \t]*[,\]\}])/,"number.date"]],tagHandle:[[/\![^ ]*/,"tag"]],anchor:[[/[&*][^ ]+/,"namespace"]]}};export{t as conf,o as language};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./
|
|
1
|
+
import{t as ht,bo as _,bm as g,bw as bt,b as xt}from"./DWvCfaBg.js";import{bs as yt,a7 as kt,ay as Q,W as p,bn as At,aA as h,a5 as q,bS as u,bl as S,bA as W,aD as e,b_ as D,bO as x,aB as k,bH as et,c9 as y,bV as at,be as wt,b$ as It}from"./3SdAC2_C.js";import{i as f}from"./VTJf_qPn.js";import{I as Bt,g as Ct}from"./CueOVPTy.js";import{n as Pt,j as zt}from"./BlRGZv8u.js";import{f as F}from"./Drf1gLyo.js";import"./CIKXOyvw.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import{F as rt,ce as Rt,cq as St,au as Wt}from"./D7yetF0v.js";import{A as Dt}from"./r5JNAzEM.js";import{D as Lt}from"./BeUuk8D1.js";import{Jx as $t,v0 as Ht}from"./CIoJPvjg.js";import{g as Nt}from"./DgAgTFcK.js";var jt=k('<span class="type-caption shrink-0 font-medium text-success"> </span>'),qt=k('<!> <span class="type-body flex-1 truncate text-left font-medium text-foreground"> </span> <span class="type-caption shrink-0 tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span> <!>',1),Ft=k("<!> ",1),Mt=k('<div class="mb-2 flex gap-1"></div>'),Ot=k('<div class="border-t border-border p-2"><!> <!></div>'),Vt=k('<div class="ws-block-widget type-body my-2 overflow-hidden rounded-md border border-border bg-card text-foreground shadow-(--elevation-raised)"><div class="flex min-h-9 items-center gap-2 px-3 py-1.5"><!> <!> <!></div> <!></div>'),Et=k('<div class="ws-block-widget type-caption my-2 text-muted-foreground"> </div>');function Jt(U,n){if(new.target)return ht({component:Jt,...U});yt(n,!0);let A=_(n,"patches",7),M=_(n,"label",23,()=>g.ui_patchBlock_label()),O=_(n,"lastApply",7),w=_(n,"linkedAgentId",7),L=_(n,"workspaceId",7),P=_(n,"applying",7,!1),$=_(n,"onApply",7),H=_(n,"onRevert",7),V=at(!1),E=at(0),z=y(()=>A()?.[e(E)]),J=y(()=>O()?.status==="success");function st(t){const o=t.split(`
|
|
2
2
|
`);let v=0,b=0;for(const I of o)I.startsWith("+")&&!I.startsWith("+++")?v++:I.startsWith("-")&&!I.startsWith("---")&&b++;return{addCount:v,removeCount:b}}let X=y(()=>e(z)?st(e(z).diff):{addCount:0,removeCount:0}),T=y(()=>P()?{label:g.ui_patchBlock_applying_label(),icon:null}:e(J)?{label:g.ui_patchBlock_revert_label(),icon:St}:{label:g.ui_patchBlock_apply_label(),icon:Wt}),nt=y(()=>!!($()||H()));function ot(){et(V,!e(V))}function it(){e(J)?H()?.():$()?.()}var lt={get patches(){return A()},set patches(t){A(t),h()},get label(){return M()},set label(t=g.ui_patchBlock_label()){M(t),h()},get lastApply(){return O()},set lastApply(t){O(t),h()},get linkedAgentId(){return w()},set linkedAgentId(t){w(t),h()},get workspaceId(){return L()},set workspaceId(t){L(t),h()},get applying(){return P()},set applying(t=!1){P(t),h()},get onApply(){return $()},set onApply(t){$(t),h()},get onRevert(){return H()},set onRevert(t){H(t),h()},$set:bt,$on:(t,o)=>xt(n,t,o)},Y=kt(),ct=Q(Y);{var dt=t=>{var o=Vt(),v=q(o),b=q(v);{var I=a=>{{let c=y(()=>g.ui_patchBlock_viewAgent_tooltip());F(a,{variant:"plain",size:"icon-compact",iconOnly:!0,class:"size-4! shrink-0 rounded-sm! transition-opacity hover:opacity-80",onclick:i=>{L()&&$t.dispatch(Ht(L(),{agentId:w(),...Nt(i)}))},get title(){return e(c)},children:(i,m)=>{Dt(i,{get agentId(){return w()},variant:"compact"})},$$slots:{default:!0}})}};f(b,a=>{w()&&a(I)})}var Z=u(b,2);F(Z,{variant:"plain",size:"compact",class:"h-auto! min-w-0 flex-1 shrink items-center justify-start gap-2 px-0! py-0! text-muted-foreground transition-colors hover:text-foreground",truncateLabel:!1,labelClass:"flex min-w-0 flex-1 items-center gap-2",onclick:ot,children:(a,c)=>{var i=qt(),m=Q(i);{var B=l=>{rt(l,{get icon(){return Rt},size:10,class:"text-muted-foreground"})};f(m,l=>{w()||l(B)})}var C=u(m,2),s=S(C,!0),d=u(C,2),r=q(d),R=S(r),N=u(r,2),G=S(N);W(d);var K=u(d,2);{var tt=l=>{var j=jt(),_t=S(j,!0);D(gt=>x(_t,gt),[()=>g.ui_patchBlock_applied_label()]),p(l,j)};f(K,l=>{e(J)&&l(tt)})}D(()=>{x(s,M()),x(R,`+${e(X).addCount??""}`),x(G,`-${e(X).removeCount??""}`)}),p(a,i)},$$slots:{default:!0}});var ut=u(Z,2);{var ft=a=>{F(a,{variant:"ghost-light",size:"sm",class:"type-caption shrink-0",onclick:it,get disabled(){return P()},children:(c,i)=>{var m=Ft(),B=Q(m);{var C=r=>{Bt(r,{size:12})},s=r=>{rt(r,{get icon(){return e(T).icon},size:"xs"})};f(B,r=>{P()?r(C):e(T).icon&&r(s,1)})}var d=u(B);D(()=>x(d,` ${e(T).label??""}`)),p(c,m)},$$slots:{default:!0}})};f(ut,a=>{e(nt)&&a(ft)})}W(v);var vt=u(v,2);{var mt=a=>{var c=Ot(),i=q(c);{var m=s=>{var d=Mt();Ct(d,23,A,(r,R)=>`patch-${R}-${r.filePath}`,(r,R,N)=>{{let G=y(()=>e(N)===e(E)?"default":"ghost-light");F(r,{get variant(){return e(G)},size:"sm",class:"type-caption",onclick:()=>et(E,e(N),!0),children:(K,tt)=>{wt();var l=It();D(j=>x(l,j),[()=>e(R).filePath.split("/").pop()]),p(K,l)},$$slots:{default:!0}})}}),W(d),p(s,d)};f(i,s=>{A().length>1&&s(m)})}var B=u(i,2);{var C=s=>{Lt(s,{get patch(){return e(z).diff},get fileName(){return e(z).filePath},showHeader:!0,showStats:!0,showLineNumbers:!0,maxHeight:"300px",collapsible:!1,class:"overflow-hidden rounded-sm border border-border"})};f(B,s=>{e(z)&&s(C)})}W(c),Pt(3,c,()=>zt,()=>({tier:"moderate"})),p(a,c)};f(vt,a=>{e(V)&&a(mt)})}W(o),p(t,o)},pt=t=>{var o=Et(),v=S(o,!0);D(b=>x(v,b),[()=>g.ui_patchBlock_invalid_error()]),p(t,o)};f(ct,t=>{A()?.length?t(dt):t(pt,-1)})}return p(U,Y),At(lt)}export{Jt as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as t}from"./
|
|
1
|
+
import{l as t}from"./DX2U4Mz9.js";const e=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"],o={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\@\$\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\s]+)/g,comments:{blockComment:["<!--","-->"]},brackets:[["<!--","-->"],["<",">"],["{","}"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],onEnterRules:[{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),afterText:/^<\/(\w[\w\d]*)\s*>$/i,action:{indentAction:t.IndentAction.IndentOutdent}},{beforeText:new RegExp(`<(?!(?:${e.join("|")}))(\\w[\\w\\d]*)([^/>]*(?!/)>)[^<]*$`,"i"),action:{indentAction:t.IndentAction.Indent}}]},m={defaultToken:"",tokenPostfix:"",tokenizer:{root:[[/@@@@/],[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.root"}],[/<!DOCTYPE/,"metatag.html","@doctype"],[/<!--/,"comment.html","@comment"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)(script)/,["delimiter.html",{token:"tag.html",next:"@script"}]],[/(<)(style)/,["delimiter.html",{token:"tag.html",next:"@style"}]],[/(<)([:\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/(<\/)([\w\-]+)/,["delimiter.html",{token:"tag.html",next:"@otherTag"}]],[/</,"delimiter.html"],[/[ \t\r\n]+/],[/[^<@]+/]],doctype:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/[^>]+/,"metatag.content.html"],[/>/,"metatag.html","@pop"]],comment:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.comment"}],[/-->/,"comment.html","@pop"],[/[^-]+/,"comment.content.html"],[/./,"comment.content.html"]],otherTag:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.otherTag"}],[/\/?>/,"delimiter.html","@pop"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/]],script:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.script"}],[/type/,"attribute.name","@scriptAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/(<\/)(script\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],scriptAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterType"}],[/=/,"delimiter","@scriptAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@scriptWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.text/javascript",nextEmbedded:"text/javascript"}],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.scriptWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@scriptEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/script\s*>/,{token:"@rematch",next:"@pop"}]],scriptEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.scriptEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/script/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],style:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.style"}],[/type/,"attribute.name","@styleAfterType"],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/(<\/)(style\s*)(>)/,["delimiter.html","tag.html",{token:"delimiter.html",next:"@pop"}]]],styleAfterType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterType"}],[/=/,"delimiter","@styleAfterTypeEquals"],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleAfterTypeEquals:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleAfterTypeEquals"}],[/"([^"]*)"/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/'([^']*)'/,{token:"attribute.value",switchTo:"@styleWithCustomType.$1"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.text/css",nextEmbedded:"text/css"}],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleWithCustomType:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInSimpleState.styleWithCustomType.$S2"}],[/>/,{token:"delimiter.html",next:"@styleEmbedded.$S2",nextEmbedded:"$S2"}],[/"([^"]*)"/,"attribute.value"],[/'([^']*)'/,"attribute.value"],[/[\w\-]+/,"attribute.name"],[/=/,"delimiter"],[/[ \t\r\n]+/],[/<\/style\s*>/,{token:"@rematch",next:"@pop"}]],styleEmbedded:[[/@[^@]/,{token:"@rematch",switchTo:"@razorInEmbeddedState.styleEmbedded.$S2",nextEmbedded:"@pop"}],[/<\/style/,{token:"@rematch",next:"@pop",nextEmbedded:"@pop"}]],razorInSimpleState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3"}]],razorInEmbeddedState:[[/@\*/,"comment.cs","@razorBlockCommentTopLevel"],[/@[{(]/,"metatag.cs","@razorRootTopLevel"],[/(@)(\s*[\w]+)/,["metatag.cs",{token:"identifier.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],[/[})]/,{token:"metatag.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}],[/\*@/,{token:"comment.cs",switchTo:"@$S2.$S3",nextEmbedded:"$S3"}]],razorBlockCommentTopLevel:[[/\*@/,"@rematch","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorBlockComment:[[/\*@/,"comment.cs","@pop"],[/[^*]+/,"comment.cs"],[/./,"comment.cs"]],razorRootTopLevel:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/[})]/,"@rematch","@pop"],{include:"razorCommon"}],razorRoot:[[/\{/,"delimiter.bracket.cs","@razorRoot"],[/\(/,"delimiter.parenthesis.cs","@razorRoot"],[/\}/,"delimiter.bracket.cs","@pop"],[/\)/,"delimiter.parenthesis.cs","@pop"],{include:"razorCommon"}],razorCommon:[[/[a-zA-Z_]\w*/,{cases:{"@razorKeywords":{token:"keyword.cs"},"@default":"identifier.cs"}}],[/[\[\]]/,"delimiter.array.cs"],[/[ \t\r\n]+/],[/\/\/.*$/,"comment.cs"],[/@\*/,"comment.cs","@razorBlockComment"],[/"([^"]*)"/,"string.cs"],[/'([^']*)'/,"string.cs"],[/(<)([\w\-]+)(\/>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/(<\/)([\w\-]+)(>)/,["delimiter.html","tag.html","delimiter.html"]],[/[\+\-\*\%\&\|\^\~\!\=\<\>\/\?\;\:\.\,]/,"delimiter.cs"],[/\d*\d+[eE]([\-+]?\d+)?/,"number.float.cs"],[/\d*\.\d+([eE][\-+]?\d+)?/,"number.float.cs"],[/0[xX][0-9a-fA-F']*[0-9a-fA-F]/,"number.hex.cs"],[/0[0-7']*[0-7]/,"number.octal.cs"],[/0[bB][0-1']*[0-1]/,"number.binary.cs"],[/\d[\d']*/,"number.cs"],[/\d/,"number.cs"]]},razorKeywords:["abstract","as","async","await","base","bool","break","by","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","descending","explicit","event","extern","else","enum","false","finally","fixed","float","for","foreach","from","goto","group","if","implicit","in","int","interface","internal","into","is","lock","long","nameof","new","null","namespace","object","operator","out","override","orderby","params","private","protected","public","readonly","ref","return","switch","struct","sbyte","sealed","short","sizeof","stackalloc","static","string","select","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","var","virtual","volatile","void","when","while","where","yield","model","inject"],escapes:/\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/};export{o as conf,m as language};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Ja as j,Jx as r,sn as me,nZ as m,BY as Se,nY as g,m as F,rV as K,BZ as q,i as ye,nL as $,A as be}from"./
|
|
1
|
+
import{Ja as j,Jx as r,sn as me,nZ as m,BY as Se,nY as g,m as F,rV as K,BZ as q,i as ye,nL as $,A as be}from"./CIoJPvjg.js";import{k as ve}from"./uXuxG9cN.js";import{selectCurrentWorkspaceTabId as he}from"./Btst3lgy.js";import{s as Ce}from"./DJJ2Xrlq.js";import{cR as Ee,cf as w,cd as Me,cc as Ie,co as Ae,bJ as ke,t as we,cJ as P,O as Pe,e8 as _e,dS as Q,aJ as Oe,cA as Re}from"./3Kr2ijlK.js";import{K as _,L as Le}from"./UqcU95a7.js";import{P as Te,c as Ne}from"./B5aYN90J.js";import{bm as R}from"./DWvCfaBg.js";import{l as Be}from"./W05hyx94.js";function He(e,t,n){if(!e||!n?.length)return null;const o=new Set(n);if(t!==null&&!o.has(t))return null;const c=e.lastIndexOf("/"),s=c>=0?e.slice(c+1):"",a=o.has(s)?e.slice(0,c):e;return t===null?a:`${a}/${t}`}const xe={major:5,minor:2};function De(e){const{major:t,minor:n}=xe;return ve(e,t,n)}function E(e,t,n){const o=j(e);return o.providerId&&n(o.providerId)===t?o.modelId:e}function C(e,t){const n=t(e);if(n)return n;const o=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!o||o.index===0)return;const c=t(e.slice(0,o.index)),s=o[1].toLowerCase();return c?`${c} (${s.charAt(0).toUpperCase()}${s.slice(1)})`:void 0}function We(e,t){return JSON.stringify([t||null,e])}const je=r.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),Bt=r.createSelector((e,t,n)=>je.select(e,n)[t]),Ht=r.createSelector(e=>e.providerModels?.clearEpoch??0),xt=r.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),Fe=r.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:n})=>t.map(o=>[We(o,n),{providerId:o,workspaceId:n}])))),Dt=r.createSelector(e=>Object.keys(Fe.select(e)).sort()),Ke=r.createSelector((e,t,n)=>me(e.providerModels?.learnedNames??{},t,n)),Wt=r.createSelector(e=>e.providerModels.learnedNames),jt=r.createSelector(e=>e.model),Ft=r.createSelector(e=>{const t=Ee.select(e),n=w.select(e);if(!t||n!=="owner"&&n!=="member")return null;const o=_.select(e);return n==="member"&&!o?null:JSON.stringify([t,o,n==="member"?Me.select(e):null])});function U(e,t){return t??_.select(e)}const O=r.createSelector((e,t)=>{const n=U(e,t),o=e.model.availableModelsProviderId===n?m(e.model.availableModels):[],c=Ie.select(e),s=Ae.select(e)?c?.defaultProviderId===n?c.defaultModelId:null:e.model.providerModels[n];return s||(Le.select(e).includes(n)?Se(o):"")}),qe=r.createSelector((e,t)=>O.select(e,t)!==""),Kt=r.createSelector(e=>_.select(e)!==""||qe.select(e)),$e=r.createSelector(e=>e.model.availableModels),qt=r.createSelector(e=>m($e.select(e))),$t=r.createSelector(e=>e.model.availableModelsProviderId),J=r.createSelector((e,t)=>{const n=U(e,t);return e.model.loadingState[n]??null}),Qt=r.createSelector((e,t)=>J.select(e,t)?.status==="loading"),Ut=r.createSelector((e,t)=>{const n=J.select(e,t);return n?.status!=="error"?null:n.error??null}),Jt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&(t[n]=o.warning);return t}),Gt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.stale&&(t[n]=!0);return t}),Yt=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.model.loadingState))o.warning&&o.warningKind&&(t[n]=o.warningKind);return t}),zt=r.createSelector(e=>e.model.providerModels),Vt=r.createSelector(e=>e.model.defaultReasoningEffort),Zt=r.createSelector(e=>e.model.modelPickerCollapsedGroups),Xt=r.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),Qe=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=e.model?.availableModels;if(!o&&l&&(!s||s===e.model.availableModelsProviderId)){const d=g(l,n)??g(l,a);if(d)return d}const i=o?e.providerModels?.byWorkspaceId?.[o]?.[s]:e.providerModels?.byProviderId?.[s];return i?.models.find(d=>d.value===n)??i?.models.find(d=>E(d.value,s,c)===a)}),en=r.createSelector((e,t,n,o)=>{const c=d=>P.select(e,d,o),s=c(t),a=E(n,s,c),l=d=>Qe.select(e,s,d,o)?.label,i=d=>Ke.select(e,s,d);return C(n,l)??(a!==n?C(a,l):void 0)??i(n)??C(a,i)}),Ue=r.createSelector((e,t)=>{if(!t)return;const n=e.model?.availableModels;if(!n)return;const o=M(t);return g(n,o)?.effortLevels});function M(e){const t=j(e).modelId,n=t.indexOf("/");return n>0?t.slice(0,n):t}const Je=r.createSelector((e,t,n,o)=>{if(n){if(!o&&(!t||t===e.model?.availableModelsProviderId)){const c=Ue.select(e,n);if(c)return c}if(t){const c=M(n);return(o?e.providerModels?.byWorkspaceId?.[o]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>M(a.value)===c)?.effortLevels}}}),Ge=r.createSelector((e,t)=>{const n=e.agentSessions?.byAgentId[t];if(!n)return;if(Array.isArray(n.effortLevels)&&n.effortLevels.length>0)return n.effortLevels;const o=n.workspaceId?e.providerCatalog?.byWorkspaceId?.[n.workspaceId]?.settings??[]:void 0,c=o?.find(b=>b.path==="model.defaultProvider")?.value,s=o?typeof c=="string"?c:"":ke.select(e),a=we(n,s),l=P.select(e,a??s,n.workspaceId),i=o?.find(b=>b.path==="model.providerDefaults")?.value,d=i&&typeof i=="object"?i[l]:void 0,v=n.model??(o?typeof d=="string"?d:"":O.select(e,l));return Je.select(e,l,v,n.workspaceId)}),G="application/vnd.intent.question+json";function Ye(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.label=="string"&&t.label.length>0&&(t.description===void 0||typeof t.description=="string")}function ze(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.attachmentId=="string"&&typeof t.header=="string"&&t.header.length>0&&typeof t.question=="string"&&t.question.length>0&&(t.explanation===void 0||typeof t.explanation=="string")&&Array.isArray(t.options)&&t.options.length>=2&&t.options.every(Ye)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function tn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const n=t.resource;return typeof n=="object"&&n!==null&&n.mimeType===G}function Ve(e){if(!e||typeof e!="object")return null;const t=e,n=t.resource??t.metadata?.resource??t;if(!n||typeof n!="object"||n.mimeType!==G||typeof n.text!="string")return null;try{const o=JSON.parse(n.text);return ze(o)?o:null}catch{return null}}const Ze="attachmentId",Xe=/^tar-[0-9a-f]{12}$/;function Y(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const n=t.resource;return!n||typeof n!="object"||typeof n.uri!="string"||typeof n.mimeType!="string"||typeof n.text!="string"||n.name!==void 0&&typeof n.name!="string"?null:n}function z(e){const t=Y(e);if(!t)return null;try{const n=JSON.parse(t.text);if(!n||typeof n!="object"||Array.isArray(n))return null;const o=n[Ze];return typeof o=="string"&&Xe.test(o)?o:null}catch{return null}}function I(e){return Array.isArray(e)?`[${e.map(I).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([n],[o])=>n<o?-1:n>o?1:0).map(([n,o])=>`${JSON.stringify(n)}:${I(o)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function et(e){const t=Y(e);if(!t)return null;if(t.mimeType===Te)try{const o=JSON.parse(t.text);if(Ne(o))return`proposal:${o.kind}:${o.applyToolCallId??o.preview.title}:${I(o.payload)}`}catch{}const n=z(e);return n?`nonce:${n}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function L(e){return z(e)!==null}function tt(e){const t=new Map,n=[];for(const o of e){const c=et(o);if(c===null){n.push(o);continue}const s=t.get(c);if(s===void 0){t.set(c,n.length),n.push(o);continue}L(o)&&!L(n[s])&&(n[s]=o)}return n}function V(e,t){if(typeof t!="string"||t.length===0)return!1;const n=e?.dismissedQuestionsMessageId;return typeof n=="string"&&n===t}function nt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],n=e.imageBlocks?.length??0,o=n===0?"":n===1?R.chat_questionWizard_imagesAttached_label_one():R.chat_questionWizard_imagesAttached_label_many({count:Be(n)});return(e.freeText||n>0)&&t.push(`(Other) ${[e.freeText,o].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function ot(e){return e.map(t=>`Q: ${t.question.question}
|
|
2
2
|
A: ${nt(t)}`).join(`
|
|
3
3
|
|
|
4
4
|
`)}const Z="question_answers";function rt(e){return{type:Z,answeredQuestionsMessageId:e}}function nn(e,t){const n=e.flatMap(o=>o.skipped?[]:o.imageBlocks??[]);return{text:ot(e),messageMetadata:rt(t),...n.length>0?{imageBlocks:n}:{}}}function T(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==Z)return null;const n=t.answeredQuestionsMessageId;return typeof n=="string"&&n.length>0?n:null}function N(e){const t=T(e),n=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const o=e.mergedMessageMetadata;if(Array.isArray(o))for(const c of o){const s=T(c);s&&!n.includes(s)&&n.push(s)}}return n}function X(e){if(!e)return[];const t=N(e.metadata);if(t.length)return t;const n=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(n.flatMap(o=>o.type==="text"?N(o.messageMetadata):[]))]}function ee(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function B(e){return tt(e.contentBlocks??[]).map(Ve).filter(t=>t!==null)}function te(e,t){return e.some(n=>n.role==="user"&&X(n).includes(t))}function H(e,t){return e.some(n=>X({metadata:n.messageMetadata}).includes(t))}function st(e,t,n=!1,o,c=[]){if(n||e.length===0)return null;const s=ee(o);if(s.kind==="cleared")return null;if(s.kind==="set"){const a=e.find(i=>i.id===s.messageId);if(!a||a.role!=="assistant"||a.isStreaming||te(e,s.messageId)||H(c,s.messageId))return null;const l=B(a);return l.length>0?{messageId:a.id,questions:l}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const l=e[a];if(l.role==="system")continue;if(l.role!=="assistant"||l.isStreaming||H(c,l.id))return null;const i=B(l);return i.length>0?{messageId:l.id,questions:i}:null}return null}function ct(e){const t=st(e.messages??[],Pe(_e(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||V(e.metadata,t.messageId)?null:t}function at(e){if(ct(e)!==null)return!0;const t=ee(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const n=e.messages??[];return n.some(o=>o.id===t.messageId)||te(n,t.messageId)?!1:!V(e.metadata,t.messageId)}const ne=0,A=1,lt=2,f=4,oe=6,it=[2,3,4,5,0,1],dt=16777215,re=689407,se=3199320,ce=16766474,ae=16752394,k=16726832,le=6607615,ut=12540658,y=.9,ft=.5,ie=.25,pt=.25,gt={unassigned:{c:0,b:0,e:ne,s:0},idle:{c:dt,b:.12,e:A,s:0},running:{c:re,b:.6,e:f,s:ft},unread:{c:le,b:.4,e:f,s:ie},complete:{c:se,b:.5,e:A,s:0},attention:{c:ce,b:.8,e:f,s:y},blocked:{c:ae,b:.75,e:f,s:y},failed:{c:k,b:.7,e:f,s:y}},mt={e:ne,b:0,s:0,m:0,c:0},x=.35,St=.75,D=4;function yt(e){const n=(Math.min(Math.max(e,1),D)-1)/(D-1);return x+n*(St-x)}const bt={dark:mt,complete:{e:A,b:.25,s:0,m:0,c:se},unread:{e:f,b:.4,s:ie,m:0,c:le},question:{e:f,b:.8,s:y,m:0,c:ce},blocked:{e:f,b:.8,s:y,m:0,c:ae},failed:{e:f,b:.8,s:y,m:0,c:k},recording:{e:f,b:.8,s:y,m:0,c:k},disconnected:{e:lt,b:.2,s:pt,m:0,c:ut}};function on(e){const t=[];for(let n=0;n<oe;n+=1){const o=e[n]??"unassigned";t.push({id:it[n],...gt[o]})}return t.sort((n,o)=>n.id-o.id),t}function rn(e){const t=e.kind==="running"?{e:f,b:.5,s:yt(e.runningCount),m:0,c:re}:bt[e.kind];return{keys:{...t},ambient:{...t}}}function de(e){return $(e)?.kind==="blocker"}function ue(e){return $(e)?.kind==="discussion"||at(e)}function fe(e){return e.status===ye.Error}function W(e,t){const n=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],o=e.agentSessions?.byAgentId??{},c=[];for(const s of n){const a=o[String(s)];a&&c.push(a)}return c}const vt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function pe(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function ge(e){return e.displayStatus!==void 0&&vt.has(e.displayStatus)}function ht(e,t){return t.some(fe)?"failed":t.some(de)?"blocked":t.some(ue)?"attention":pe(e)?"running":e.attention==="unread"?"unread":ge(e)?"complete":"idle"}function Ct(e){if(e.daemonHealth?.health==="down")return{keys:new Array(oe).fill("unassigned"),ambient:{kind:"disconnected"}};const t=m(e.workspace.workspaces).filter(u=>u.id!==F&&K(u)),n=new Map;for(const u of t)n.set(u.id,u);const c=q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(u=>{const S=u===null?void 0:n.get(u);return S?ht(S,W(e,S.id)):"unassigned"});let s=!1,a=!1,l=!1,i=0,d=!1,v=!1;const b=new Set(e.tabState.workspaceStacks.flat());for(const u of t){if(!b.has(u.id))continue;const S=W(e,u.id);S.some(fe)&&(s=!0),S.some(de)&&(a=!0),S.some(ue)&&(l=!0),pe(u)&&(i+=1),u.attention==="unread"&&(d=!0),ge(u)&&(v=!0)}let p;return e.hardwareConsole.pttRecording===!0?p={kind:"recording"}:s?p={kind:"failed"}:a?p={kind:"blocked"}:l?p={kind:"question"}:d?p={kind:"unread"}:i>0?p={kind:"running",runningCount:i}:v?p={kind:"complete"}:p={kind:"dark"},{keys:c,ambient:p}}const sn=r.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),cn=r.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const n=o=>be.filter((c,s)=>t.actionMappingByModel[o][s]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":n("creator-micro-2"),"codex-micro":n("codex-micro")}})}),an=r.createSelector(e=>e.hardwareConsole.enabled),ln=r.createSelector(e=>e.hardwareConsole.encoderBehavior),dn=r.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),un=r.createSelector(e=>e.hardwareConsole.isConsoleOwner),fn=r.createSelector(e=>e.hardwareConsole.promptPickerLimit),pn=r.createSelector(e=>e.hardwareConsole.actionMappingByModel),gn=r.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),mn=r.createSelector(e=>e.hardwareConsole.keyPins),Sn=r.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),yn=r.createSelector(e=>e.hardwareConsole.promptUsage),Et=r.createSelector(e=>{const t=Q.select(e).filter(K);return q(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),bn=r.createSelector((e,t)=>{const n=e.hardwareConsole.keyPins.indexOf(t);return n===-1?null:n}),vn=r.createSelector((e,t)=>{const n=Et.select(e).indexOf(t);return n===-1?null:n}),hn=r.createSelector(e=>e.hardwareConsole.radialPrompt),Cn=r.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),En=r.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:Q.select(e).find(n=>n.id===t)?.title??null}),Mn=r.createSelector(e=>e.hardwareConsole.actionHudLabel),In=r.createSelector(e=>e.hardwareConsole.pttRecording),An=r.createSelector(e=>e.hardwareConsole.pttRecording&&e.hardwareConsole.pttRecordingSource==="key"),kn=r.createSelector(e=>e.hardwareConsole.pttRecordingStartedAt),wn=r.createSelector(e=>e.hardwareConsole.pttInputLevels),Pn=r.createSelector(e=>e.hardwareConsole.voiceTranscribing),_n=r.createSelector(e=>Ct(e)),Mt=r.createSelector((e,t,n)=>{const o=e.agentSessions.byAgentId[n];if(!o||o.workspaceId!==t)return null;const c=Ge.select(e,n);if(!c?.length)return null;const s=Oe.select(e,n),a=o.model??O.select(e,s),l=e.daemonHealth.stats?.protocolVersion,i=De(l)?He(a,null,c):a;return{key:JSON.stringify([t,n,s,i,c]),workspaceId:t,agentId:n,levels:c}}),It=r.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const n=he.select(e);if(!n||n===F||Re.select(e,n))return null;const o=Ce.select(e,n);return o?.type!=="agent"||!o.agentId||o.workspaceId&&o.workspaceId!==n?null:Mt.select(e,n,o.agentId)}),On=r.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||It.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),At=[],Rn=r.createSelector((e,t)=>g(e.connections.workflows,t)),Ln=r.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Tn=r.createSelector(e=>e.connections.selfPublication),Nn=r.createSelector(e=>e.connections.selfPublicationBusy),Bn=r.createSelector((e,t)=>({guest:g(e.guestSessions.sessions,t),connection:g(e.connections.connections,t)})),Hn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly)),xn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&t.daemonMode!=="node")),Dn=r.createSelector(e=>m(e.connections.connections).filter(t=>!t.displayOnly&&!t.isLocal)),Wn=r.createSelector(e=>e.connections.hasReceivedList);r.createSelector((e,t)=>g(e.connections.connections,t)?.status??"not-open");const jn=r.createSelector(e=>e.connections.windowBackendId),Fn=r.createSelector(e=>{const{connections:t,windowBackendId:n}=e.connections;return g(t,n)??null}),Kn=r.createSelector(e=>e.connections.pinnedVersion),qn=r.createSelector(e=>e.connections.connectedIds);r.createSelector(e=>e.connections.status);const $n=r.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);r.createSelector((e,t)=>e.connections.openingIds.includes(t));r.createSelector(e=>e.connections.error);const Qn=r.createSelector(e=>e.connections.certMismatch),Un=r.createSelector(e=>{const t={};for(const[n,o]of Object.entries(e.connections.certWarnings))t[n]=m(o);return t}),Jn=r.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?m(t):At}),Gn=r.createSelector(e=>{const{authRejected:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),Yn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n}=e.connections;return t&&t.id===n?t:null}),zn=r.createSelector(e=>{const{protocolMismatch:t,windowBackendId:n,protocolMismatchModalDismissed:o}=e.connections;return!t||t.id!==n||o?null:t}),Vn=r.createSelector(e=>e.connections.keychainSync),Zn=r.createSelector(e=>e.connections.browserHost?.manageConnections===!0),Xn=r.createSelector(e=>e.connections.browserHost?.backendBound===!1),eo=r.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),h=new Map;function to(e){return h.has(e)}function no(e){return h.get(e)}function oo(e){h.set(e.agentId,e)}function ro(e){h.delete(e)}export{mn as $,oe as A,Jt as B,qt as C,$t as D,xn as E,Un as F,qn as G,Qn as H,Bn as I,Rn as J,Hn as K,Wn as L,Fn as M,Jn as N,jn as O,Vt as P,Mt as Q,On as R,It as S,Cn as T,En as U,pn as V,gn as W,an as X,ln as Y,dn as Z,Sn as _,Ct as a,Et as a0,yn as a1,hn as a2,_n as a3,Kt as a4,Zn as a5,eo as a6,$n as a7,un as a8,Qt as a9,In as aA,kn as aB,Dn as aC,O as aD,Tn as aE,Nn as aF,sn as aG,Pn as aH,cn as aI,bn as aJ,vn as aK,at as aL,ct as aM,oo as aN,De as aO,Ln as aa,Vn as ab,Ke as ac,Wt as ad,Ut as ae,Ft as af,Qe as ag,en as ah,Ue as ai,Xt as aj,Zt as ak,jt as al,Xn as am,Dt as an,Fe as ao,Kn as ap,fn as aq,zn as ar,Je as as,zt as at,Bt as au,je as av,Ht as aw,xt as ax,wn as ay,An as az,nn as b,He as c,rn as d,on as e,ee as f,tt as g,st as h,X as i,no as j,Ve as k,to as l,V as m,tn as n,te as o,H as p,E as q,We as r,ro as s,C as t,Mn as u,Gn as v,Yn as w,Ge as x,Gt as y,Yt as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{Jx as N}from"./
|
|
1
|
+
import{Jx as N}from"./CIoJPvjg.js";const z=N.createSelector((t,e,o)=>Object.values(t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId[o]??{})),D=N.createSelector((t,e,o)=>{const n=t.taskAgentAssociations?.byWorkspaceId[e]?.byNoteId??{};return Object.values(n).flatMap(s=>Object.values(s)).filter(s=>s.agentId===o)});let b=1;const I=new WeakMap;function $(t){let e=I.get(t);return e||(e=b++,I.set(t,e)),e}function m(t){if(t==null)return"";if(typeof t=="string")return`s:${t.length}:${t.slice(0,16)}:${t.slice(-16)}`;if(typeof t!="object")return`${typeof t}:${String(t)}`;if(Array.isArray(t))return`a:${$(t)}:${t.length}`;const e=Object.keys(t).sort();return`o:${$(t)}:${e.map(o=>`${o}=${m(t[o])}`).join(",")}`}function K(t){const e=[`message:${t.id||""}:${t.appMessageId||""}:${t.role}`];for(const o of t.toolCalls||[])e.push(`call:${o.id}:${o.status||""}:${o.error||""}`);for(const o of t.toolResults||[])e.push(`result:${o.toolCallId}:${o.isError?"1":"0"}:${m(o.content)}`);for(const[o,n]of(t.contentBlocks||[]).entries())if(n.type==="tool_use"){const s=n.metadata;e.push(`use:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${s?.toolId||""}:${n.name||""}:${n.toolName||""}:${m(n.input)}:${m(s?.toolInput)}`)}else n.type==="tool_result"&&e.push(`result-block:${o}:${n.id||""}:${n.tool_use_id||""}:${n.toolCallId||""}:${n.is_error?"1":"0"}:${n.isError?"1":"0"}:${m(n.content||n.text)}`);return e.join("|")}function y(t){if(!t)return!1;const e=typeof t=="string"?t:JSON.stringify(t);return[/tool .* not found/i,/tool .* not available/i,/unknown tool/i,/invalid tool/i,/tool execution failed/i,/failed to execute tool/i,/tool error:/i].some(n=>n.test(e))}const S=new WeakMap;function k(t){const e=S.get(t);if(e)return e;const o=new Set;if(t.toolResults)for(const n of t.toolResults)(n.isError||y(n.content))&&n.toolCallId&&o.add(n.toolCallId);if(t.toolCalls)for(const n of t.toolCalls)(n.status==="failed"||n.error)&&n.id&&o.add(n.id);if(t.contentBlocks){const n=t.contentBlocks;for(let s=0;s<n.length;s++){const i=n[s];if(i.type==="tool_result"){const r=i.is_error||i.isError,l=y(i.content||i.text);if(r||l){let a=i.tool_use_id||i.toolCallId||i.id;if(!a&&s>0){const f=n[s-1];f.type==="tool_use"&&(a=f.id||f.tool_use_id||f.toolCallId)}a&&o.add(a)}}}}return S.set(t,o),o}function J(t){const e=new Map;if(t.role!=="assistant"||!t.contentBlocks)return{changes:[],totalFiles:0,totalAdditions:0,totalDeletions:0};const o=k(t);for(const s of t.contentBlocks){if(s.type!=="tool_use")continue;const i=s.id||s.tool_use_id||s.toolCallId;if(i&&o.has(i))continue;const r=A(s);if(r){const l=e.get(r.filePath);l?(l.additions+=r.additions,l.deletions+=r.deletions,l.action=r.action,l.newContent=r.newContent,l.toolCallId=r.toolCallId,l.toolName=r.toolName):e.set(r.filePath,{...r})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function F(t){const e=new Map,o=new Set;for(const s of t){const i=k(s);for(const r of i)o.add(r)}for(const s of t)if(!(s.role!=="assistant"||!s.contentBlocks))for(const i of s.contentBlocks){if(i.type!=="tool_use")continue;const r=i.id||i.tool_use_id||i.toolCallId;if(r&&o.has(r))continue;const l=A(i);if(l){const a=e.get(l.filePath);a?(a.additions+=l.additions,a.deletions+=l.deletions,a.action=l.action,a.newContent=l.newContent,a.toolCallId=l.toolCallId,a.toolName=l.toolName):e.set(l.filePath,{...l})}}const n=Array.from(e.values()).filter(s=>!(s.oldContent!==void 0&&s.newContent!==void 0&&s.oldContent===s.newContent));return{changes:n,totalFiles:n.length,totalAdditions:n.reduce((s,i)=>s+i.additions,0),totalDeletions:n.reduce((s,i)=>s+i.deletions,0)}}function M(t){const e=[];for(let o=t.length-1;o>=0;o--){const n=t[o];if(n.role==="user")break;n.role==="assistant"&&e.unshift(n)}return e}function U(t){const e=F(t).changes.map(n=>n.filePath),o=new Set(F(M(t)).changes.map(n=>n.filePath));return e.length===o.size&&e.every(n=>o.has(n))}const T=new Set(["spec","notes","tasks","readme","todo","changelog"]),O=new Set(["workspace_api","get_note","create_note","update_note","add_to_note","edit_note","delegate_task","create_agent"]);function E(t){let e=t.toLowerCase();const o=e.match(/\/\/local\/mcp\/(.+)$/);for(o&&(e=o[1]),e=e.replace(/^mcp__[^_]+__/,""),e=e.replace(/^workspace[-_]mcp[-_]/,"");/[-_]workspace-mcp$/.test(e);)e=e.replace(/[-_]workspace-mcp$/,"");return e}function L(t){const e=t.metadata;return[t.name,t.toolName,e?.toolName].some(n=>typeof n=="string"&&O.has(E(n)))}function x(t){if(/\s/.test(t))return!1;const e=t.includes("."),o=t.includes("/")||t.includes("\\");return e||o}function C(t){if(!t)return!1;const e=t.toLowerCase().trim();if(T.has(e)||e.includes(".workspace/notes/"))return!0;const o=e.includes("."),n=e.includes("/")||e.includes("\\");return!!(!o&&!n&&/^[a-z][a-z0-9-_]*$/.test(e))}function A(t){if(L(t))return null;if(t.inputTruncated===!0){const e=P(t);return e?{...e,additions:0,deletions:0,oldContent:void 0,newContent:void 0,startLineNumber:void 0}:null}return P(t)}function P(t){const e=typeof t.name=="string"&&t.name?t.name:typeof t.toolName=="string"?t.toolName:"",o=t.input||t.metadata?.toolInput||{},n=t.id||t.tool_use_id||t.metadata?.toolId||"",s=e.toLowerCase();if(s==="str_replace_editor"||s==="str-replace-editor"||s.startsWith("edit ")){const r=j(n,e,o);return r&&C(r.filePath)?null:r}const i=s==="save_file"||s==="save-file"||s==="write_file"||s==="write-file"||s==="create_file"||s==="create-file";if(i||s.startsWith("save ")||s.startsWith("create ")){const r=W(n,e,o,i);return r&&C(r.filePath)?null:r}if(s==="remove_files"||s==="remove-files"){const r=B(n,e,o);return r&&C(r.filePath)?null:r}return null}function p(t){if(t==null||typeof t=="object")return"";const e=typeof t=="string"?t:String(t);return e&&e.replace(/\\n/g,`
|
|
2
2
|
`).replace(/\\t/g," ").replace(/\\r/g,"\r")}function _(t){return typeof t!="string"?null:t.trim()||null}function v(t){if(Array.isArray(t)){for(const e of t){const o=_(e);if(o)return o}return null}return _(t)}function j(t,e,o){let n=_(o.path);if(!n&&typeof e=="string"&&e.toLowerCase().startsWith("edit ")){const c=_(e.substring(5));n=c&&x(c)?c:null}if(!n)return null;if(o.command==="create"){const c=o.file_text??"",d=p(c),u=d?d.split(`
|
|
3
3
|
`):[];return{filePath:n,action:"create",additions:u.length,deletions:0,toolName:e,toolCallId:t,oldContent:"",newContent:d}}let s=0,i=0;const r=[],l=[];let a;if(Array.isArray(o.str_replace_entries))for(const c of o.str_replace_entries){const d=c.old_str,u=c.new_str,h=c.old_str_start_line_number;if(d!==void 0&&u!==void 0){const g=p(d),w=p(u);i+=g?g.split(`
|
|
4
4
|
`).length:0,s+=w?w.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{m as t}from"./
|
|
1
|
+
import{m as t}from"./BXHbm15d.js";import"./3SdAC2_C.js";import{bm as n}from"./DWvCfaBg.js";import"./BCuI_zgX.js";import"./Bu3PKqut.js";import"./CIKXOyvw.js";import"./ChTqQfQN.js";import"./2aKRVAvL.js";import"./CIoJPvjg.js";function L(e){try{const r=new URL(e).hostname.toLowerCase();return r==="daemon.localhost"||r==="client.localhost"}catch{return!1}}const s="browser:resolve-url";function a(e){return typeof e=="object"&&e!==null&&typeof e.url=="string"&&typeof e.rewritten=="boolean"}async function l(e,r){const o={url:e,rewritten:!1};if(!r)return o;try{const i=await r(s,{url:e});return a(i)?i:o}catch{return o}}async function g(e,r){if(!r)return e;try{const o=await r(s,{url:e,mode:"rewrite-only"});return a(o)?o.url:e}catch{return e}}async function c(e){const r=await l(e,typeof window<"u"?window.electronAPI?.invoke:void 0);return r.error&&r.rewritten?r.forbidden?t.error(n.browser_linkOpen_ownerOnlyForward_error()):t.error(n.browser_embedded_resolveFailed_error(),{description:r.error}):r.warning&&t.warning(n.browser_linkOpen_loopbackAmbiguity_warning(),{description:r.warning}),{url:r.url,...r.rewritten&&r.requestedUrl!==void 0?{requestedUrl:r.requestedUrl}:{}}}const h=Object.freeze(Object.defineProperty({__proto__:null,resolveBrowserLinkForOpen:c},Symbol.toStringTag,{value:"Module"}));export{l as a,h as b,g as c,L as i,c as r};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./
|
|
1
|
+
var $c=Object.defineProperty;var td=Object.getPrototypeOf;var ed=Reflect.get;var Au=n=>{throw TypeError(n)};var nd=(n,t,e)=>t in n?$c(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var C=(n,t,e)=>nd(n,typeof t!="symbol"?t+"":t,e),Xs=(n,t,e)=>t.has(n)||Au("Cannot "+e);var o=(n,t,e)=>(Xs(n,t,"read from private field"),e?e.call(n):t.get(n)),p=(n,t,e)=>t.has(n)?Au("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),S=(n,t,e,r)=>(Xs(n,t,"write to private field"),r?r.call(n,e):t.set(n,e),e),E=(n,t,e)=>(Xs(n,t,"access private method"),e);var Pu=(n,t,e,r)=>({set _(i){S(n,t,i,e)},get _(){return o(n,t,r)}}),Eu=(n,t,e)=>ed(td(n),e,t);import{t as ct,bo as l,bw as dt,b as ht,br as Nr,bp as Rn}from"./DWvCfaBg.js";import{A as rd,bV as Y,c8 as Iu,ao as Cn,bY as Un,bU as id,b5 as Oo,aD as f,bH as P,aV as Cr,c9 as M,br as Ln,aa as pl,bi as mt,aM as od,aG as na,bI as sd,cb as ad,ca as xt,c5 as _r,c0 as ud,bs as ft,a7 as tt,ay as J,bf as at,W as R,bn as gt,aA as c,aF as ld,bb as cd,c3 as dd,at as ml,bk as hd,bS as Re,aB as At,bo as Ha,a5 as St,bA as wt,b$ as vl,b_ as Wn,bO as ra,bl as fd,be as gd}from"./3SdAC2_C.js";import{i as bt}from"./VTJf_qPn.js";import{t as ot}from"./Bu3PKqut.js";import{d as Gs,b as Se,e as mn,c as Wo,f as Dr}from"./BCuI_zgX.js";import{b as bl}from"./Dn334wJv.js";import{g as pd,I as md}from"./CueOVPTy.js";import{J as vd,f as bd,o as yd,g as wd,n as xd}from"./CIKXOyvw.js";import{c as Or}from"./Y_tkjygB.js";import{k as Cd}from"./bIL0xbKX.js";function Od(){return Symbol(rd)}var ve,re,be,Qo,de,Pr,Po;const su=class su extends Map{constructor(e){super();p(this,de);p(this,ve,new Map);p(this,re,Y(0));p(this,be,Y(0));p(this,Qo,Iu||-1);if(Cn&&(e=new Map(e),Un(o(this,re),"SvelteMap version"),Un(o(this,be),"SvelteMap.size")),e){for(var[r,i]of e)super.set(r,i);o(this,be).v=super.size}}has(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else return f(o(this,re)),!1;return f(i),!0}forEach(e,r){E(this,de,Po).call(this),super.forEach(e,r)}get(e){var r=o(this,ve),i=r.get(e);if(i===void 0)if(super.has(e))i=E(this,de,Pr).call(this,0),Cn&&Un(i,`SvelteMap get(${Oo(e)})`),r.set(e,i);else{f(o(this,re));return}return f(i),super.get(e)}getOrInsert(e,r){return super.has(e)||this.set(e,r),this.get(e)}getOrInsertComputed(e,r){return super.has(e)||this.set(e,r(e)),this.get(e)}set(e,r){var i=o(this,ve),s=i.get(e),a=super.get(e),u=super.set(e,r),d=o(this,re);if(s===void 0)s=E(this,de,Pr).call(this,0),Cn&&Un(s,`SvelteMap get(${Oo(e)})`),i.set(e,s),P(o(this,be),super.size),Cr(d);else if(a!==r){Cr(s);var g=d.reactions===null?null:new Set(d.reactions),m=g===null||!s.reactions?.every(h=>g.has(h));m&&Cr(d)}return u}delete(e){var r=o(this,ve),i=r.get(e),s=super.delete(e);return i!==void 0&&(r.delete(e),P(i,-1)),s&&(P(o(this,be),super.size),Cr(o(this,re))),s}clear(){if(super.size!==0){super.clear();var e=o(this,ve);P(o(this,be),0);for(var r of e.values())P(r,-1);Cr(o(this,re)),e.clear()}}keys(){return f(o(this,re)),super.keys()}values(){return E(this,de,Po).call(this),super.values()}entries(){return E(this,de,Po).call(this),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return f(o(this,be)),super.size}};ve=new WeakMap,re=new WeakMap,be=new WeakMap,Qo=new WeakMap,de=new WeakSet,Pr=function(e){return Iu===o(this,Qo)?Y(e):id(e)},Po=function(){f(o(this,re));var e=o(this,ve);if(o(this,be).v!==e.size){for(var r of Eu(su.prototype,this,"keys").call(this))if(!e.has(r)){var i=E(this,de,Pr).call(this,0);Cn&&Un(i,`SvelteMap get(${Oo(r)})`),e.set(r,i)}}for([,i]of o(this,ve))f(i)};let ia=su;function Td(n){return typeof n=="function"}function vo(n){return n!==null&&typeof n=="object"}const Sd=["string","number","bigint","boolean"];function oa(n){return n==null||Sd.includes(typeof n)?!0:Array.isArray(n)?n.every(t=>oa(t)):typeof n=="object"?Object.getPrototypeOf(n)===Object.prototype:!1}const pr=Symbol("box"),_s=Symbol("is-writable");function W(n,t){const e=M(n);return t?{[pr]:!0,[_s]:!0,get current(){return f(e)},set current(r){t(r)}}:{[pr]:!0,get current(){return n()}}}function bo(n){return vo(n)&&pr in n}function Ra(n){return bo(n)&&_s in n}function yl(n){return bo(n)?n:Td(n)?W(n):Zt(n)}function Ad(n){return Object.entries(n).reduce((t,[e,r])=>bo(r)?(Ra(r)?Object.defineProperty(t,e,{get(){return r.current},set(i){r.current=i}}):Object.defineProperty(t,e,{get(){return r.current}}),t):Object.assign(t,{[e]:r}),{})}function Pd(n){return Ra(n)?{[pr]:!0,get current(){return n.current}}:n}function Zt(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}function Vn(n){let t=Y(Ln(n));return{[pr]:!0,[_s]:!0,get current(){return f(t)},set current(e){P(t,e,!0)}}}Vn.from=yl;Vn.with=W;Vn.flatten=Ad;Vn.readonly=Pd;Vn.isBox=bo;Vn.isWritableBox=Ra;function wl(...n){return function(t){for(const e of n)if(e){if(t.defaultPrevented)return;typeof e=="function"?e.call(this,t):e.current?.call(this,t)}}}var Fu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ed=/\n/g,Id=/^\s*/,Fd=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Dd=/^:\s*/,Md=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,kd=/^[;\s]*/,Nd=/^\s+|\s+$/g,_d=`
|
|
2
2
|
`,Du="/",Mu="*",On="",Bd="comment",Ld="declaration";function Wd(n,t){if(typeof n!="string")throw new TypeError("First argument must be a string");if(!n)return[];t=t||{};var e=1,r=1;function i(x){var b=x.match(Ed);b&&(e+=b.length);var A=x.lastIndexOf(_d);r=~A?x.length-A:r+x.length}function s(){var x={line:e,column:r};return function(b){return b.position=new a(x),g(),b}}function a(x){this.start=x,this.end={line:e,column:r},this.source=t.source}a.prototype.content=n;function u(x){var b=new Error(t.source+":"+e+":"+r+": "+x);if(b.reason=x,b.filename=t.source,b.line=e,b.column=r,b.source=n,!t.silent)throw b}function d(x){var b=x.exec(n);if(b){var A=b[0];return i(A),n=n.slice(A.length),b}}function g(){d(Id)}function m(x){var b;for(x=x||[];b=h();)b!==!1&&x.push(b);return x}function h(){var x=s();if(!(Du!=n.charAt(0)||Mu!=n.charAt(1))){for(var b=2;On!=n.charAt(b)&&(Mu!=n.charAt(b)||Du!=n.charAt(b+1));)++b;if(b+=2,On===n.charAt(b-1))return u("End of comment missing");var A=n.slice(2,b-2);return r+=2,i(A),n=n.slice(b),r+=2,x({type:Bd,comment:A})}}function v(){var x=s(),b=d(Fd);if(b){if(h(),!d(Dd))return u("property missing ':'");var A=d(Md),D=x({type:Ld,property:ku(b[0].replace(Fu,On)),value:A?ku(A[0].replace(Fu,On)):On});return d(kd),D}}function y(){var x=[];m(x);for(var b;b=v();)b!==!1&&(x.push(b),m(x));return x}return g(),y()}function ku(n){return n?n.replace(Nd,On):On}function Kd(n,t){let e=null;if(!n||typeof n!="string")return e;const r=Wd(n),i=typeof t=="function";return r.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:u}=s;i?t(a,u,s):u&&(e=e||{},e[a]=u)}),e}const Hd=/\d/,Rd=["-","_","/","."];function Vd(n=""){if(!Hd.test(n))return n!==n.toLowerCase()}function zd(n){const t=[];let e="",r,i;for(const s of n){const a=Rd.includes(s);if(a===!0){t.push(e),e="",r=void 0;continue}const u=Vd(s);if(i===!1){if(r===!1&&u===!0){t.push(e),e=s,r=u;continue}if(r===!0&&u===!1&&e.length>1){const d=e.at(-1);t.push(e.slice(0,Math.max(0,e.length-1))),e=d+s,r=u;continue}}e+=s,r=u,i=a}return t.push(e),t}function xl(n){return n?zd(n).map(t=>jd(t)).join(""):""}function Ud(n){return Yd(xl(n||""))}function jd(n){return n?n[0].toUpperCase()+n.slice(1):""}function Yd(n){return n?n[0].toLowerCase()+n.slice(1):""}function Er(n){if(!n)return{};const t={};function e(r,i){if(r.startsWith("-moz-")||r.startsWith("-webkit-")||r.startsWith("-ms-")||r.startsWith("-o-")){t[xl(r)]=i;return}if(r.startsWith("--")){t[r]=i;return}t[Ud(r)]=i}return Kd(n,e),t}function Xn(...n){return(...t)=>{for(const e of n)typeof e=="function"&&e(...t)}}function Xd(n,t){const e=RegExp(n,"g");return r=>{if(typeof r!="string")throw new TypeError(`expected an argument of type string, but got ${typeof r}`);return r.match(e)?r.replace(e,t):r}}const Gd=Xd(/[A-Z]/,n=>`-${n.toLowerCase()}`);function qd(n){if(!n||typeof n!="object"||Array.isArray(n))throw new TypeError(`expected an argument of type object, but got ${typeof n}`);return Object.keys(n).map(t=>`${Gd(t)}: ${n[t]};`).join(`
|
|
3
3
|
`)}function Cl(n={}){return qd(n).replace(`
|
|
4
4
|
`," ")}const Zd=["onabort","onanimationcancel","onanimationend","onanimationiteration","onanimationstart","onauxclick","onbeforeinput","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncompositionend","oncompositionstart","oncompositionupdate","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onfocusin","onfocusout","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onselectionchange","onselectstart","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitioncancel","ontransitionend","ontransitionrun","ontransitionstart","onvolumechange","onwaiting","onwebkitanimationend","onwebkitanimationiteration","onwebkitanimationstart","onwebkittransitionend","onwheel"],Jd=new Set(Zd);function Qd(n){return Jd.has(n)}function Te(...n){const t={...n[0]};for(let e=1;e<n.length;e++){const r=n[e];if(r){for(const i of Object.keys(r)){const s=t[i],a=r[i],u=typeof s=="function",d=typeof a=="function";if(u&&Qd(i)){const g=s,m=a;t[i]=wl(g,m)}else if(u&&d)t[i]=Xn(s,a);else if(i==="class"){const g=oa(s),m=oa(a);g&&m?t[i]=Gs(s,a):g?t[i]=Gs(s):m&&(t[i]=Gs(a))}else if(i==="style"){const g=typeof s=="object",m=typeof a=="object",h=typeof s=="string",v=typeof a=="string";if(g&&m)t[i]={...s,...a};else if(g&&v){const y=Er(a);t[i]={...s,...y}}else if(h&&m){const y=Er(s);t[i]={...y,...a}}else if(h&&v){const y=Er(s),x=Er(a);t[i]={...y,...x}}else g?t[i]=s:m?t[i]=a:h?t[i]=s:v&&(t[i]=a)}else t[i]=a!==void 0?a:s}for(const i of Object.getOwnPropertySymbols(r)){const s=t[i],a=r[i];t[i]=a!==void 0?a:s}}}return typeof t.style=="object"&&(t.style=Cl(t.style).replaceAll(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./
|
|
1
|
+
import{t as ht,bo as U,bw as $t,bq as It,b as bt,bs as d}from"./DWvCfaBg.js";import{bs as yt,ca as R,aD as t,c9 as s,a7 as Ct,ay as kt,W as Rt,bn as wt,bH as H,bV as K,aA as E}from"./3SdAC2_C.js";import{k as At}from"./bIL0xbKX.js";import{b as St}from"./Dn334wJv.js";import{Jx as a,eK as Dt,eL as Pt,ok as Ut,A3 as Et,oo as _t,op as Tt,K5 as xt,Kk as Ft,Ka as Lt,vL as Wt,v0 as vt}from"./CIoJPvjg.js";import{t as Ht}from"./C-BsEdGZ.js";import{g as Kt}from"./DWGXN6Nr.js";import{dH as qt,b$ as Nt,bQ as Ot,bU as Bt,bS as Mt}from"./3Kr2ijlK.js";import{af as Gt}from"./CY0EK8Cm.js";import{C as Vt}from"./De2a277N.js";import{V as jt}from"./DGdWzkgm.js";import{bT as Jt,bN as Qt,b8 as zt}from"./awY5HvZY.js";import{i as Xt}from"./H2jLkRRS.js";function Yt(_,f){if(new.target)return ht({component:Yt,..._});yt(f,!0);const q=()=>d(Z,"$gitRoots$",n),T=()=>d(Y,"$workspace",n),N=()=>d(st,"$ftCommits$",n),O=()=>d(ot,"$ftOlderCommits$",n),y=()=>d(tt,"$commitRead$",n),B=()=>d(z,"$foldUnchanged",n),M=()=>d(Q,"$lineWrapping",n),G=()=>d(X,"$diffSideBySide",n),V=()=>d(at,"$ftLoading$",n),[n,j]=It(),J=e=>{jt(e,{embedded:!0,showExpand:!0,get expanded(){return t(C)},onToggleExpand:()=>{H(C,!t(C)),t(C)?t(k)?.expandAll():t(k)?.collapseAll()},get foldEnabled(){return B()},onToggleFold:()=>a.dispatch(Lt()),get wrapEnabled(){return M()},onToggleWrap:()=>a.dispatch(Ft()),get splitEnabled(){return G()},onToggleSplit:()=>a.dispatch(xt())})},Q=Jt(),z=Qt(),X=zt();let h=U(f,"tab",7),i=U(f,"workspaceId",7),$=U(f,"isActive",7);const x=Kt(),g=Ht(()=>i()),Y=qt(g),Z=Gt(g),w=crypto.randomUUID(),tt=Nt(g,w),c=s(()=>h().data?.commitHash||""),F=s(()=>h().data?.commitMessage||"");R(()=>{const e=i();if(!(!$()||!e||t(r)))return a.dispatch(Dt(e,"history")),()=>a.dispatch(Pt(e,"history"))});const r=s(()=>h().data?.gitRootId||""),L=s(()=>t(r)&&q().find(e=>e.id===t(r))?.path||""),et=s(()=>t(L)||T()?.worktreePath||T()?.repositoryPath||""),st=Ot(g),ot=Bt(g),at=Mt(g),nt=s(()=>N()||[]),it=s(()=>O()||[]),p=s(()=>t(r)?void 0:t(nt).find(e=>e.hash===t(c))||t(it).find(e=>e.hash===t(c))),A=s(()=>t(p)?.files||[]),S=s(()=>y()?.request.kind==="commitDetails"&&y().request.commitHash===t(c)&&(y().request.gitRootId??"")===t(r)?y():void 0),l=s(()=>t(S)?.result?.kind==="commitDetails"?t(S).result.details:null),rt=s(()=>t(l)?t(l).fileDetails.length>0?t(l).fileDetails:t(l).files.map(e=>({path:e,additions:0,deletions:0})):[]),dt=s(()=>t(S)?.loading??!1);R(()=>{const e=t(c),o=i(),I=t(r);if(!e||!o||t(A).length>0)return;const u=crypto.randomUUID();return a.dispatch(Ut(o,w,u,{kind:"commitDetails",commitHash:e,gitRootId:I||void 0})),()=>a.dispatch(Et(o,w,u))});const ct=s(()=>t(A).length>0?t(A):t(rt));let C=K(!0),k=K(null);const lt=s(()=>t(ct).map(e=>{const o=typeof e=="string"?e:e.path||"",I=typeof e=="string"?0:e.additions||0,u=typeof e=="string"?0:e.deletions||0;return{filePath:Xt(o)?o:`${t(et)}/${o}`,action:"modify",additions:I,deletions:u,toolName:"local",toolCallId:`commit-${t(c)}-${o}`,staged:!1,category:"committed",commitHash:t(c),commitMessage:t(F)}}));R(()=>{!x||!$()||x.registerActions({display:J})});const W=crypto.randomUUID();R(()=>{const e=i();if(!(!($()&&t(r))||!e))return a.dispatch(_t(e,W)),()=>a.dispatch(Tt(e,W))});var mt={get tab(){return h()},set tab(e){h(e),E()},get workspaceId(){return i()},set workspaceId(e){i(e),E()},get isActive(){return $()},set isActive(e){$(e),E()},$set:$t,$on:(e,o)=>bt(f,e,o)},v=Ct(),gt=kt(v);At(gt,()=>JSON.stringify([i(),t(r),t(c)]),e=>{{let o=s(()=>V()||t(dt)),I=s(()=>t(r)||void 0),u=s(()=>t(L)||void 0),ut=s(()=>({hash:t(c),message:t(F),author:t(p)?.author||t(l)?.author,authorEmail:t(p)?.authorEmail||t(l)?.authorEmail,date:t(p)?.date||t(l)?.date,agentId:t(p)?.agentId,linkedNoteId:t(p)?.linkedNoteId}));St(Vt(e,{get isLoading(){return t(o)},get changes(){return t(lt)},get gitRootId(){return t(I)},get gitRootPath(){return t(u)},get commitInfo(){return t(ut)},onOpenAgent:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(vt(i(),{agentId:b,openInAdjacentPanel:D,sourcePanelId:P}))},onOpenNote:(b,m)=>{const D=m?.metaKey||m?.ctrlKey||!1,P=m?.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0;a.dispatch(Wt(i(),b,{openInAdjacentPanel:D,sourcePanelId:P}))}}),b=>H(k,b,!0),()=>t(k))}}),Rt(_,v);var pt=wt(mt);return j(),pt}export{Yt as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./awY5HvZY.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./DWvCfaBg.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./3SdAC2_C.js";import{i as de}from"./VTJf_qPn.js";import{k as me}from"./bIL0xbKX.js";import{s as D}from"./BCuI_zgX.js";import{a as ue}from"./BolJpU8l.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
|