@intent-hq/web 2.300.1 → 2.301.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{D24Lh2xV.js → -1vWYJiy.js} +1 -1
- package/web/app/immutable/chunks/{B00a-E5y.js → -8mBz6EW.js} +1 -1
- package/web/app/immutable/chunks/{seZ3kiWB.js → 2Iga5834.js} +1 -1
- package/web/app/immutable/chunks/{DD_wk1WS.js → 3-bIA0_b.js} +2 -2
- package/web/app/immutable/chunks/{VIc8fDOK.js → 3cwLWYk-.js} +1 -1
- package/web/app/immutable/chunks/{uuGBA4cr.js → 4byfznQh.js} +1 -1
- package/web/app/immutable/chunks/{D_HBTAOp.js → 6WuGSm1v.js} +2 -2
- package/web/app/immutable/chunks/{CoKvDYIY.js → 6hOEL6g0.js} +1 -1
- package/web/app/immutable/chunks/{CtPUg4ad.js → 8FC2Ymrs.js} +1 -1
- package/web/app/immutable/chunks/{XRDpypMz.js → 90FT2TPG.js} +2 -2
- package/web/app/immutable/chunks/{7lKdD900.js → 9Bp-qw-c.js} +1 -1
- package/web/app/immutable/chunks/{B6GFXjaE.js → 9pcH5qab.js} +4 -4
- package/web/app/immutable/chunks/{CHHzckiT.js → Alw6Bgam.js} +1 -1
- package/web/app/immutable/chunks/{DOb83nqS.js → B-pxGJ33.js} +1 -1
- package/web/app/immutable/chunks/{CTb5E7ts.js → B1f-Dpa6.js} +1 -1
- package/web/app/immutable/chunks/{C7jsu14h.js → B1ySs1Ps.js} +1 -1
- package/web/app/immutable/chunks/{6bctAAQ4.js → B3pWDt4A.js} +2 -2
- package/web/app/immutable/chunks/{BVR4ypbe.js → B5FPkuba.js} +1 -1
- package/web/app/immutable/chunks/{Ca7foKhO.js → B5gRIzZb.js} +1 -1
- package/web/app/immutable/chunks/{Cr3qamxz.js → B6wnyXxa.js} +1 -1
- package/web/app/immutable/chunks/{CbB5VTQO.js → B9e_lQGd.js} +1 -1
- package/web/app/immutable/chunks/{WAk1in99.js → BAJdDJmt.js} +1 -1
- package/web/app/immutable/chunks/{BKb2X4nY.js → BBfmiZwR.js} +1 -1
- package/web/app/immutable/chunks/{J1JvTxzS.js → BCFfKX9W.js} +1 -1
- package/web/app/immutable/chunks/{BOBlxuhv.js → BDHBtQ3l.js} +1 -1
- package/web/app/immutable/chunks/{DOP6s1nq.js → BDUAehdP.js} +4 -4
- package/web/app/immutable/chunks/{BBi8ZQ4f.js → BFnbk-Kf.js} +1 -1
- package/web/app/immutable/chunks/{DJPQ2gWl.js → BGGzsVfR.js} +1 -1
- package/web/app/immutable/chunks/{ClQcbOPg.js → BH5cuIQi.js} +1 -1
- package/web/app/immutable/chunks/{B08ZRfRe.js → BIDHEGct.js} +1 -1
- package/web/app/immutable/chunks/{CMT8W8d8.js → BIOk6wuV.js} +1 -1
- package/web/app/immutable/chunks/{D1YVXYbM.js → BJ_6izfA.js} +7 -7
- package/web/app/immutable/chunks/{CcJbNmRb.js → BMPb03sg.js} +1 -1
- package/web/app/immutable/chunks/{C1ANrPzv.js → BNPFPBlO.js} +1 -1
- package/web/app/immutable/chunks/{MSSSP_6i.js → BNVzhw1y.js} +1 -1
- package/web/app/immutable/chunks/{CNcMC2eS.js → BO9EbiHx.js} +1 -1
- package/web/app/immutable/chunks/{C0sDoyzY.js → BPC4nNQe.js} +1 -1
- package/web/app/immutable/chunks/{0nqxMME2.js → BR-wS1W8.js} +1 -1
- package/web/app/immutable/chunks/{BRX8YzX5.js → BRKe81M1.js} +1 -1
- package/web/app/immutable/chunks/{BsU6XLOF.js → BSuE_PI2.js} +1 -1
- package/web/app/immutable/chunks/{BS-h7rm3.js → BTIw3yd0.js} +1 -1
- package/web/app/immutable/chunks/{DHUOIULZ.js → BTeM7_LX.js} +1 -1
- package/web/app/immutable/chunks/{DW4Kmsyn.js → BU8fu6L_.js} +1 -1
- package/web/app/immutable/chunks/{DfARSELN.js → BVTor63R.js} +3 -3
- package/web/app/immutable/chunks/{zFZ2p9zT.js → BW_04noU.js} +1 -1
- package/web/app/immutable/chunks/{B648LYGe.js → BWerHQW_.js} +1 -1
- package/web/app/immutable/chunks/{3sRD2IoY.js → BX8IWbyz.js} +2 -2
- package/web/app/immutable/chunks/{BzvRDF8m.js → BYZmS9Dk.js} +1 -1
- package/web/app/immutable/chunks/{C_A8Orac.js → BYk_qw69.js} +1 -1
- package/web/app/immutable/chunks/{Bx4lXaHY.js → BYxkGGC-.js} +1 -1
- package/web/app/immutable/chunks/{D8RydOZp.js → B_vcNRuc.js} +1 -1
- package/web/app/immutable/chunks/{Dj9vAmvP.js → BapFUUqZ.js} +1 -1
- package/web/app/immutable/chunks/{COWTRkIf.js → Bd69ye4n.js} +1 -1
- package/web/app/immutable/chunks/{gM93sUNx.js → Bd9XSgIb.js} +1 -1
- package/web/app/immutable/chunks/{BKoNmPdl.js → BdCx7DnP.js} +1 -1
- package/web/app/immutable/chunks/{3cdteGtc.js → BeRTGLrw.js} +1 -1
- package/web/app/immutable/chunks/{BggFqLcQ.js → BghpE59-.js} +1 -1
- package/web/app/immutable/chunks/{DD1B8iWW.js → BhYLt5th.js} +1 -1
- package/web/app/immutable/chunks/{Ozne-tFy.js → Bk5SMnS3.js} +49 -49
- package/web/app/immutable/chunks/{x9rbYKj9.js → BlDfHMda.js} +1 -1
- package/web/app/immutable/chunks/{QvMOlSpE.js → BlPj7Bqh.js} +1 -1
- package/web/app/immutable/chunks/{CLwukbv5.js → Bo2QS6PZ.js} +1 -1
- package/web/app/immutable/chunks/{CcRQKkS2.js → Bo7YWMXl.js} +1 -1
- package/web/app/immutable/chunks/{0-b4ZvTK.js → BuXA0uuF.js} +1 -1
- package/web/app/immutable/chunks/{9ZGNcJrk.js → BvUM18CV.js} +1 -1
- package/web/app/immutable/chunks/BvgUrOVR.js +227 -0
- package/web/app/immutable/chunks/{BO3uDFyf.js → BwEpZ6hl.js} +3 -3
- package/web/app/immutable/chunks/{xnqT8zWA.js → BxC2yVbF.js} +1 -1
- package/web/app/immutable/chunks/{DPODhnzy.js → BxgeL5Cn.js} +2 -2
- package/web/app/immutable/chunks/{CAdJgRT-.js → BzDjODLF.js} +1 -1
- package/web/app/immutable/chunks/{CojjevwO.js → BzwTpGAs.js} +3 -3
- package/web/app/immutable/chunks/{Cs8-gQAN.js → C-yDVBGV.js} +1 -1
- package/web/app/immutable/chunks/{MkI4_nBU.js → C0DySWij.js} +1 -1
- package/web/app/immutable/chunks/{IFT0w_rv.js → C4Zy0P7R.js} +1 -1
- package/web/app/immutable/chunks/{2ZXwYJuA.js → C4wwbPuR.js} +1 -1
- package/web/app/immutable/chunks/{xn0HgFL2.js → C6PYFU8v.js} +1 -1
- package/web/app/immutable/chunks/{CViglT06.js → C9dil5-t.js} +1 -1
- package/web/app/immutable/chunks/{B5FD8FRF.js → CB1wD_PC.js} +1 -1
- package/web/app/immutable/chunks/{CjZ3vck_.js → CBDImldB.js} +1 -1
- package/web/app/immutable/chunks/{s1gAk8mT.js → CBYPZH-W.js} +1 -1
- package/web/app/immutable/chunks/CDxER840.js +1 -0
- package/web/app/immutable/chunks/{h-HGzFkJ.js → CEOoXkJa.js} +4 -4
- package/web/app/immutable/chunks/{DczZ5XlV.js → CEs-7mch.js} +3 -3
- package/web/app/immutable/chunks/{ConaHaDS.js → CFgK9GfH.js} +1 -1
- package/web/app/immutable/chunks/{CIhr4uzF.js → CGwmPMQc.js} +1 -1
- package/web/app/immutable/chunks/{BQ3lIAxU.js → CHDy3QTf.js} +1 -1
- package/web/app/immutable/chunks/{B1BoYgO3.js → CK1vqkSE.js} +1 -1
- package/web/app/immutable/chunks/{Cc7p6my_.js → CKI5DKl7.js} +6 -6
- package/web/app/immutable/chunks/{Cz3L4t3K.js → CKj5bwOX.js} +1 -1
- package/web/app/immutable/chunks/{CZ0U9o7-.js → CMAl4tQM.js} +1 -1
- package/web/app/immutable/chunks/{Q0MFbJMW.js → CMQqNZFP.js} +1 -1
- package/web/app/immutable/chunks/CMS0Mt7v.js +1 -0
- package/web/app/immutable/chunks/{BB2kR3UP.js → CNGkxhSe.js} +1 -1
- package/web/app/immutable/chunks/{D_fVcaam.js → CORu-AyV.js} +1 -1
- package/web/app/immutable/chunks/{5GrgBznS.js → COuOkYRg.js} +1 -1
- package/web/app/immutable/chunks/{CLt_MpVR.js → CPBiF1gr.js} +1 -1
- package/web/app/immutable/chunks/{qoEkEEyr.js → CS1PgLFW.js} +1 -1
- package/web/app/immutable/chunks/{UiwXoSAw.js → CSiZwu1h.js} +1 -1
- package/web/app/immutable/chunks/{5sBQ6rKD.js → CT_wb7-d.js} +1 -1
- package/web/app/immutable/chunks/{Dp-w6U2a.js → CTt3kMm1.js} +1 -1
- package/web/app/immutable/chunks/{CI_dqO7A.js → CUl5WBR5.js} +1 -1
- package/web/app/immutable/chunks/{BBKgmsAl.js → CUt6iXkF.js} +1 -1
- package/web/app/immutable/chunks/{Djo4Utna.js → CYfBmNaT.js} +1 -1
- package/web/app/immutable/chunks/{C0yADNxK.js → C_-tA5vs.js} +2 -2
- package/web/app/immutable/chunks/{D31GMMqw.js → C_VMQN67.js} +1 -1
- package/web/app/immutable/chunks/{CjJmucSj.js → C_uqctJM.js} +1 -1
- package/web/app/immutable/chunks/{BnoYK4Cg.js → CaibRh-G.js} +1 -1
- package/web/app/immutable/chunks/{DOlRZEzP.js → Cavwt8Mn.js} +1 -1
- package/web/app/immutable/chunks/{dAdxFhG6.js → CbF4ODHW.js} +1 -1
- package/web/app/immutable/chunks/{qVOvfVaw.js → Cdz-CHGd.js} +1 -1
- package/web/app/immutable/chunks/{DYFbONVh.js → CenrrJuj.js} +2 -2
- package/web/app/immutable/chunks/{B0WURFIt.js → Cf891EVZ.js} +1 -1
- package/web/app/immutable/chunks/{ByOlSVuA.js → CfM2ZJef.js} +1 -1
- package/web/app/immutable/chunks/{C9KORVFh.js → Cg_QSby7.js} +1 -1
- package/web/app/immutable/chunks/{DxZVPzM-.js → Cl5KdYjm.js} +1 -1
- package/web/app/immutable/chunks/{GgqVQsTS.js → Cn23SDXY.js} +1 -1
- package/web/app/immutable/chunks/{5D7P8R1M.js → Cnlend6s.js} +1 -1
- package/web/app/immutable/chunks/{BKBZBubB.js → CqnucWm4.js} +1 -1
- package/web/app/immutable/chunks/{lfN_4jdk.js → Crq2Gvaa.js} +1 -1
- package/web/app/immutable/chunks/{-j8RilKC.js → CsqCa0Sd.js} +2 -2
- package/web/app/immutable/chunks/{DDs4Vg0U.js → CuG6uIIP.js} +1 -1
- package/web/app/immutable/chunks/{C6MidKO1.js → Cvg7bd3W.js} +1 -1
- package/web/app/immutable/chunks/{waEdGUDl.js → CwnyA6hc.js} +1 -1
- package/web/app/immutable/chunks/{DsUUGZq_.js → Cx089QrC.js} +1 -1
- package/web/app/immutable/chunks/{BVT8FnwX.js → D-s4Q5GN.js} +1 -1
- package/web/app/immutable/chunks/{CqbBHiiS.js → D1IlJCd0.js} +1 -1
- package/web/app/immutable/chunks/{C2RKkR8r.js → D2gIe4Fc.js} +1 -1
- package/web/app/immutable/chunks/{BVLclYIV.js → D6IXX0lv.js} +1 -1
- package/web/app/immutable/chunks/{DR4IMcDF.js → D6Id8WlN.js} +1 -1
- package/web/app/immutable/chunks/{CMxICaSn.js → D9hi6Z3O.js} +1 -1
- package/web/app/immutable/chunks/D9iN-aHM.js +5 -0
- package/web/app/immutable/chunks/{WhG7Bgtb.js → DD1-zRxp.js} +1 -1
- package/web/app/immutable/chunks/{DW3NYbCg.js → DE5Smm9m.js} +1 -1
- package/web/app/immutable/chunks/{DfZpv0e6.js → DFoGBie-.js} +1 -1
- package/web/app/immutable/chunks/{YJmoM74E.js → DG__gHhd.js} +1 -1
- package/web/app/immutable/chunks/{CURgPz9A.js → DIlG6FTS.js} +1 -1
- package/web/app/immutable/chunks/{DvuFiJGX.js → DK1vbm9l.js} +1 -1
- package/web/app/immutable/chunks/{DayXN3MG.js → DKs2ftKN.js} +1 -1
- package/web/app/immutable/chunks/{BWAM175S.js → DLoJFSfZ.js} +1 -1
- package/web/app/immutable/chunks/{yr_icLi6.js → DMC7qMUv.js} +1 -1
- package/web/app/immutable/chunks/{CNsCQ6no.js → DMaQDnJk.js} +1 -1
- package/web/app/immutable/chunks/{Dy75eCEg.js → DMcsIxoO.js} +1 -1
- package/web/app/immutable/chunks/{BFq_nebX.js → DNmVxfYt.js} +8 -8
- package/web/app/immutable/chunks/{D6tg0AFH.js → DOGdTp2m.js} +1 -1
- package/web/app/immutable/chunks/{2DcZXs_F.js → DR58OcKC.js} +1 -1
- package/web/app/immutable/chunks/{DPaNvpDi.js → DR9205pL.js} +1 -1
- package/web/app/immutable/chunks/{CCOyeB8l.js → DTSOJB0e.js} +1 -1
- package/web/app/immutable/chunks/{CZL3_4T_.js → DXwDIYHN.js} +1 -1
- package/web/app/immutable/chunks/{l4QAkguk.js → DYd7w17e.js} +1 -1
- package/web/app/immutable/chunks/{3pZ2C7Oz.js → DYrK-s5W.js} +1 -1
- package/web/app/immutable/chunks/{BRFS4VDU.js → DYztlXyW.js} +1 -1
- package/web/app/immutable/chunks/{BcN0a7iZ.js → DZ5koqO7.js} +1 -1
- package/web/app/immutable/chunks/{iYBu_bIg.js → D_m0iYjs.js} +1 -1
- package/web/app/immutable/chunks/{BWaQmmKL.js → DadwIC0R.js} +1 -1
- package/web/app/immutable/chunks/{CyAayV8v.js → Dax20l9D.js} +2 -2
- package/web/app/immutable/chunks/{BeXyu8S7.js → DbKrZJmS.js} +6 -6
- package/web/app/immutable/chunks/{D7tJZDri.js → DbY-sUwj.js} +1 -1
- package/web/app/immutable/chunks/{D1mml-OO.js → DcE_Ld1a.js} +1 -1
- package/web/app/immutable/chunks/{CeO1YObE.js → DdKmPHVm.js} +1 -1
- package/web/app/immutable/chunks/{BL66wtH1.js → DffgEGrv.js} +1 -1
- package/web/app/immutable/chunks/{g8wzFaTr.js → DfiXlh8D.js} +1 -1
- package/web/app/immutable/chunks/{BmZ0oFC-.js → DgBCXQ71.js} +1 -1
- package/web/app/immutable/chunks/{BpS2Zkky.js → DiDcqoCZ.js} +1 -1
- package/web/app/immutable/chunks/{TKDyISXm.js → Dj5vfD48.js} +3 -3
- package/web/app/immutable/chunks/{B9UG1fIf.js → DjVfE_Ds.js} +1 -1
- package/web/app/immutable/chunks/{CbSjEe9c.js → Dkg7fAiD.js} +1 -1
- package/web/app/immutable/chunks/{BPC4bZ2e.js → DkibMP99.js} +1 -1
- package/web/app/immutable/chunks/{DnSvdDJQ.js → DkraFhXS.js} +1 -1
- package/web/app/immutable/chunks/{BXDqRhfc.js → DmtmsOtX.js} +1 -1
- package/web/app/immutable/chunks/{AFSjjw3j.js → Do_TqlrK.js} +1 -1
- package/web/app/immutable/chunks/{CUPUpXuX.js → Dovmtid-.js} +1 -1
- package/web/app/immutable/chunks/{dJdm8RiY.js → DpN6Ybfd.js} +1 -1
- package/web/app/immutable/chunks/{CGXAF4r8.js → DrWcQsKJ.js} +1 -1
- package/web/app/immutable/chunks/{B23FAgl4.js → DvCCocml.js} +1 -1
- package/web/app/immutable/chunks/{2N3bEpgZ.js → DwuPw74E.js} +1 -1
- package/web/app/immutable/chunks/{DUb-Rw9h.js → Dz6pz6rM.js} +1 -1
- package/web/app/immutable/chunks/{BiyBBgWJ.js → HcVsBsAl.js} +1 -1
- package/web/app/immutable/chunks/{BuBWlA2n.js → IISaQsK0.js} +1 -1
- package/web/app/immutable/chunks/IJYL54f1.js +1 -0
- package/web/app/immutable/chunks/{BoVqnGlE.js → Iu8s0xrk.js} +1 -1
- package/web/app/immutable/chunks/{DjJQPfKI.js → LzWIYiXc.js} +1 -1
- package/web/app/immutable/chunks/{DzxV-zrJ.js → M8sdbvOT.js} +1 -1
- package/web/app/immutable/chunks/{vTk7TgiT.js → McMSPwXq.js} +1 -1
- package/web/app/immutable/chunks/{_wdKNOb8.js → NPItrD9R.js} +1 -1
- package/web/app/immutable/chunks/{DDDplTKI.js → NlCjCVxn.js} +1 -1
- package/web/app/immutable/chunks/{DSoSzq2S.js → NzxBab7c.js} +1 -1
- package/web/app/immutable/chunks/{Cl4oF0_T.js → PeSBy6Q3.js} +1 -1
- package/web/app/immutable/chunks/{DBYwZc8q.js → PnTDvXOe.js} +1 -1
- package/web/app/immutable/chunks/{CYIyfTfT.js → SiYLjuDS.js} +1 -1
- package/web/app/immutable/chunks/{1-VabEZ0.js → Syl_OSjA.js} +1 -1
- package/web/app/immutable/chunks/{nn-FB5iu.js → TV2_MWXe.js} +1 -1
- package/web/app/immutable/chunks/{EZewBOPv.js → TWVlaXcj.js} +1 -1
- package/web/app/immutable/chunks/{cF3AJqS4.js → U_cmHtqi.js} +1 -1
- package/web/app/immutable/chunks/{D_0pJDZv.js → UakvtOgc.js} +1 -1
- package/web/app/immutable/chunks/{Dpront9T.js → UlQNHb3m.js} +1 -1
- package/web/app/immutable/chunks/{CkiTXhNV.js → Vwfej_EC.js} +3 -3
- package/web/app/immutable/chunks/{C7NJtCoD.js → WL4wAA6m.js} +2 -2
- package/web/app/immutable/chunks/{WC951FwE.js → XO84v1Z5.js} +1 -1
- package/web/app/immutable/chunks/{txAxF1ra.js → b33seoH7.js} +1 -1
- package/web/app/immutable/chunks/{BVnCu4HK.js → dvgX5pbn.js} +1 -1
- package/web/app/immutable/chunks/{BPhCmCpT.js → fX819Pv6.js} +1 -1
- package/web/app/immutable/chunks/{CJB0AMOQ.js → gMye6h60.js} +2 -2
- package/web/app/immutable/chunks/{KoGdyFdq.js → h6ZeyBNW.js} +1 -1
- package/web/app/immutable/chunks/{DOpzySCS.js → ljZI5d7y.js} +1 -1
- package/web/app/immutable/chunks/{CKXP5Dfl.js → mFLgyCOK.js} +1 -1
- package/web/app/immutable/chunks/{DHZp-IFS.js → mNkJFQiA.js} +1 -1
- package/web/app/immutable/chunks/{CuGpCjd7.js → oqxFFnht.js} +1 -1
- package/web/app/immutable/chunks/{4MuDb8sG.js → pDn0_bm8.js} +1 -1
- package/web/app/immutable/chunks/{DEMyUrKD.js → rgnRekX3.js} +1 -1
- package/web/app/immutable/chunks/{CwSA3Dwr.js → sgMaD9-D.js} +3 -3
- package/web/app/immutable/chunks/{CilxFmmt.js → tzy2FJ3p.js} +1 -1
- package/web/app/immutable/chunks/{BTiFAxnk.js → uR5KZKbl.js} +1 -1
- package/web/app/immutable/chunks/{igt8MaJ4.js → udwHGMln.js} +1 -1
- package/web/app/immutable/chunks/{DB9IAENr.js → ulG7NA7z.js} +1 -1
- package/web/app/immutable/chunks/{7L5DlLPB.js → vt-D6r-U.js} +1 -1
- package/web/app/immutable/chunks/{f3mINTV_.js → wD4fx_9g.js} +1 -1
- package/web/app/immutable/chunks/{Bkny4U08.js → x0rjHUHa.js} +1 -1
- package/web/app/immutable/chunks/{CqShCtgy.js → yCx04g4X.js} +1 -1
- package/web/app/immutable/chunks/{B2YeO1vq.js → yW4W7htU.js} +1 -1
- package/web/app/immutable/entry/{app.MRheiWYu.js → app.CIVLA2a9.js} +2 -2
- package/web/app/immutable/entry/start.Cn76ZGVI.js +1 -0
- package/web/app/immutable/nodes/{0.CtDeqO-b.js → 0.ACp4Nz4v.js} +1 -1
- package/web/app/immutable/nodes/{1.DkbI4cS2.js → 1.DRnQyS6A.js} +1 -1
- package/web/app/immutable/nodes/{10.m8CCWmGC.js → 10.CLkVRFBV.js} +1 -1
- package/web/app/immutable/nodes/{12.C6vEm_M7.js → 12.CEAVKYuu.js} +1 -1
- package/web/app/immutable/nodes/{13.DPA662Yd.js → 13.CJ1HRZcd.js} +1 -1
- package/web/app/immutable/nodes/{14.ByaMuLhR.js → 14.9_BXzcxR.js} +1 -1
- package/web/app/immutable/nodes/{15.Byubc7Em.js → 15.CZGq0vsg.js} +1 -1
- package/web/app/immutable/nodes/{16.BmFYAQ9C.js → 16.BMYUgPNR.js} +2 -2
- package/web/app/immutable/nodes/2.d5BGPrjO.js +9 -0
- package/web/app/immutable/nodes/{3.C3UUZ7iK.js → 3.0E-ZGvKe.js} +1 -1
- package/web/app/immutable/nodes/{4.CtX4qgJE.js → 4.DSO5-jdr.js} +1 -1
- package/web/app/immutable/nodes/{5.yLkRrv3R.js → 5.BexFD7jH.js} +1 -1
- package/web/app/immutable/nodes/6.CqlyGMy5.js +1 -0
- package/web/app/immutable/nodes/{7.DCFEio1e.js → 7.C2XKzJeK.js} +1 -1
- package/web/app/immutable/nodes/{8.CGM4vick.js → 8.CMFpn5kb.js} +4 -4
- package/web/app/immutable/nodes/{9.V5qvVUf3.js → 9.BolTThFG.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/index.html +9 -9
- package/web/app/immutable/chunks/9A9__2dZ.js +0 -1
- package/web/app/immutable/chunks/BqQtQly_.js +0 -5
- package/web/app/immutable/chunks/D4Mfx79s.js +0 -227
- package/web/app/immutable/chunks/DGR4UUG4.js +0 -1
- package/web/app/immutable/chunks/W-gkWrYK.js +0 -1
- package/web/app/immutable/entry/start.CSXPreJt.js +0 -1
- package/web/app/immutable/nodes/2.B4Inck9s.js +0 -9
- package/web/app/immutable/nodes/6.CjUsIDeG.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as r,a as s,c as e,C as t}from"./
|
|
1
|
+
import{s as r,a as s,c as e,C as t}from"./BlDfHMda.js";import{f as l}from"./CKI5DKl7.js";var d={parser:e,get db(){return new t},renderer:s,styles:r,init:l(a=>{a.class||(a.class={}),a.class.arrowMarkerAbsolute=a.arrowMarkerAbsolute},"init")};export{d as diagram};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{z as te,N as ne,x as se,dA as D,cD as C,dk as re,ak as oe,a$ as N,y as ae,dL as ie}from"
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CBYPZH-W.js","/app/immutable/chunks/BeRTGLrw.js","/app/immutable/chunks/yZ5s7S5S.js","/app/immutable/chunks/B8o4lNgr.js","/app/immutable/chunks/D46WSk8U.js","/app/immutable/chunks/CpHIRYx9.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Dax20l9D.js","/app/immutable/chunks/Cb1eroFO.js","/app/immutable/chunks/D2g8BuR1.js","/app/immutable/chunks/CVjN4vxe.js","/app/immutable/chunks/G0_EiVNo.js","/app/immutable/chunks/DQT9c-_R.js","/app/immutable/chunks/DVkfuwKw.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/Dfbagr79.js","/app/immutable/chunks/BIqUw3gi.js","/app/immutable/chunks/WOicJa2k.js","/app/immutable/chunks/CjSUqH7t.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/D5B1sycf.js","/app/immutable/chunks/D2AmAQEr.js","/app/immutable/chunks/ah7LAYm4.js","/app/immutable/chunks/CUrlpJj4.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/Chp5dHOk.js","/app/immutable/chunks/CMiilI_P.js","/app/immutable/chunks/BQtZVUi4.js","/app/immutable/chunks/CenrrJuj.js","/app/immutable/chunks/Ck8ZjaJh.js","/app/immutable/chunks/BJzHxIyr.js","/app/immutable/chunks/DvUv7DbT.js","/app/immutable/chunks/DypB-Dwi.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{z as te,N as ne,x as se,dA as D,cD as C,dk as re,ak as oe,a$ as N,y as ae,dL as ie}from"./-1vWYJiy.js";import{_ as v,bo as S}from"./yZ5s7S5S.js";import{uL as ue,Ar as V,n1 as f,uN as ce,BE as F,Hb as c,cz as le,cA as de,n2 as W,mQ as fe,c as $,fC as me,g as pe,lh as ge,cH as he}from"./WOicJa2k.js";import{bM as Se}from"./mFLgyCOK.js";import{x as ye,J as Ae,ag as be,ao as Me}from"./CEs-7mch.js";import{a as H}from"./DypB-Dwi.js";import{s as we}from"./tzy2FJ3p.js";import{by as Ie}from"./Dax20l9D.js";import{C as _e}from"./Ck8ZjaJh.js";import{q as Ce,v as ve}from"./Dfbagr79.js";import{a as Te}from"./D1IlJCd0.js";function Re(e){try{return new URL(e.pageUrl).hostname||e.pageUrl}catch{return e.pageUrl}}function bt(e,t){return e.targetAgentId===t}function Mt(e){const t=e.element,n=e.viewport,s=Re(e),r=t?`<${t.tagName.toLowerCase()}> · ${s}`:e.title||s,o=["<browser-element-capture>",`Page URL: ${e.pageUrl}`,`Page title: ${e.title}`,...t?[`DOM path: ${t.domPath}`,`CSS selector: ${t.selector}`,`Text snippet: ${t.textSnippet}`,...t.sourceRef?[`Source ref: ${t.sourceRef}`]:[],...n?[`Viewport: ${n.width}×${n.height}`]:[],`Element bounds: ${t.rect.width}×${t.rect.height} at (${t.rect.x}, ${t.rect.y})`]:[],"</browser-element-capture>"].join(`
|
|
3
3
|
`);return[{id:`${e.id}-image`,type:"file",label:r,imageData:e.image.data,imageMimeType:e.image.mimeType},{id:`${e.id}-context`,type:"selection",label:r,content:o}]}function $e(e,t){const n=t.filter(s=>s.type==="selection").flatMap(s=>s.content?.trim()?[s.content.trim()]:[]);return[e.trim(),...n].filter(Boolean).join(`
|
|
4
4
|
`)}function ke(e){const t=e.filter(s=>(s.imageData||s.attachmentId)&&s.imageMimeType).map(s=>s.attachmentId?{type:"image",attachmentId:s.attachmentId,...s.imageMimeType.includes("/")?{mimeType:s.imageMimeType}:{}}:{type:"image",data:s.imageData,mimeType:s.imageMimeType,...s.placementFileName?{placementFileName:s.placementFileName}:{}}),n=e.filter(s=>s.attachmentId&&!s.imageMimeType).map(s=>({type:"file",attachmentId:s.attachmentId,fileName:s.label,...s.attachmentMimeType?{mimeType:s.attachmentMimeType}:{},...s.attachmentSize!==void 0?{size:s.attachmentSize}:{}}));return{imageBlocks:t,fileBlocks:n}}function Ee(e=[],t=[],n=[]){const s=[];for(const r of t)r.type==="file"&&r.filePath?s.push(`[Currently viewing file: ${r.filePath}]`):r.type==="diff"&&r.filePath?s.push(`[Currently viewing diff for: ${r.filePath}]`):r.type==="note"&&r.noteId?s.push(`[Currently viewing note: "${r.label}" (ID: ${r.noteId}). Read it with ws.note.read("${r.noteId}").]`):r.type==="spec"?s.push("[Currently viewing: Spec]"):r.type==="browser"&&r.browserUrl&&s.push(`[Currently viewing browser: ${r.browserUrl}]`);for(const r of n){const o=r.text.trim(),a=o.length>500?o.substring(0,500)+"...":o,i=r.sourceLabel?` from ${r.sourceLabel}`:"";s.push(`[Selected text${i}:
|
|
5
5
|
\`\`\`
|
|
6
6
|
${a}
|
|
7
7
|
\`\`\`]`)}return $e(s.join(`
|
|
8
|
-
`),e)}function wt(e,t,n){if(e==="suggested-prompt")return{fields:{},hasAttachments:!1,cleanup:{clearInput:!1,followBottom:!0,historyText:null}};const s=n(),{imageBlocks:r,fileBlocks:o}=ke(s.contextItems);return{fields:{contextItems:s.contextItems,workspaceContextStr:Ee(s.contextItems,s.checkedPanels,s.checkedSelections),noteIds:s.noteIds,...r.length>0?{imageBlocks:r}:{},...o.length>0?{fileBlocks:o}:{},...s.pickedMentions?{messageMetadata:s.pickedMentions}:{}},hasAttachments:r.length>0||o.length>0,cleanup:{clearInput:!0,followBottom:!0,historyText:t}}}function It(e,t){if(e)return e.model}function Le({messages:e,pendingInitialPrompt:t,pendingContextReferenceCount:n=0}){return e.length>0||!!t||n>0}function _t({session:e,messages:t,pendingInitialPrompt:n,pendingContextReferenceCount:s=0}){return!(e?te(e):!1)&&!Le({messages:t,pendingInitialPrompt:n,pendingContextReferenceCount:s})}function Ct(e){return ne(e.messageMetadata)}function vt(e,t){const n=new Set;for(const s of t){const r=se(s.metadata);r&&n.add(r)}return n.size===0?[...e]:e.filter(s=>!n.has(s.id))}function xe(e){return{id:e.id,appMessageId:e.appMessageId,role:"user",timestamp:new Date(e.createdAt??0).toISOString(),contentBlocks:[...e.content?[{type:"text",text:e.content}]:[],...e.imageBlocks??[],...e.fileBlocks??[]],metadata:e.messageMetadata,...e.author!==void 0?{author:e.author}:{}}}function Tt(e){return xe({...e,createdAt:Date.parse(e.queuedAt)})}const Pe="chat-read:",y=new Map,T=new Set;function Rt(e,t){let n=y.get(e);n||(n=new Set,y.set(e,n)),n.add(t)}function $t(e,t){const n=y.get(e);if(!(!n||!n.delete(t))&&n.size===0){y.delete(e);for(const s of[...T])s(e)}}function kt(e){return T.add(e),()=>T.delete(e)}function Et(e){return y.has(e)}function Lt(e){const t=y.get(e);if(!t)return!1;for(const n of t)if(!n.startsWith(Pe))return!0;return!1}function De(e,t,n){const s=e.state.pendingSubmissions.byAgentId[t.agentId];if(!s||!V(s.scope,t))return null;const r={...structuredClone(n),id:crypto.randomUUID(),createdAt:Date.now()};e.dispatch(ce(t,r));const o=e.state.pendingSubmissions.byAgentId[t.agentId];return o&&f(o.submissions,r.id)?r:null}function He(e,t,n,s,r){const o=D.select(e.state,n),a=C.select(e.state)?.principal.id,i=H(e.state);if(!o||!a||!i)return null;const u=ye(t,n),l={agentId:t,workspaceId:n,principalId:a,participation:o,authority:i,owner:u.key,lifetime:e.state.pendingSubmissions.byAgentId[t]?.scope.lifetime??crypto.randomUUID()},m=()=>u.isCurrent(e.state.agentSessions?.byAgentId[t]?.workspaceId)&&D.select(e.state,n)===o&&C.select(e.state)?.principal.id===a&&H(e.state)===i;if(!m())return null;e.dispatch(ue(l,s,re.select(e.state,n)));const d=De(e,l,r);return d?{scope:l,submission:d,isCurrent:()=>{const h=e.state.pendingSubmissions.byAgentId[t];return m()&&!!h&&V(h.scope,l)&&(!!f(h.operations,d.id)||!!f(h.submissions,d.id))}}:null}function R(e,t,n){if(!n.text.trim()&&!n.imageBlocks?.length&&!n.fileBlocks?.length)return null;const s=n.userAppMessageId??Ae();return He(e,t,n.wsId,C.select(e.state)?.capabilities.submissionCorrelation,{content:n.text.trim(),appMessageId:s,destination:!n.forceSubmit&&oe.select(e.state,t)?"queue":"conversation",contextItems:n.contextItems,imageBlocks:n.imageBlocks,fileBlocks:n.fileBlocks,messageMetadata:n.messageMetadata})}function Be(e,t,n){const s=R(e,t,n);return s?(e.dispatch(F(t,{...n,userAppMessageId:s.submission.appMessageId,submission:{scope:s.scope,id:s.submission.id}})),!0):!1}async function Oe(e,t,n,s){const r=n.submission;if(!r)return"legacy";const o=r.reference,a=()=>o.scope.agentId===e&&o.scope.workspaceId===t&&N.select(c.state,e)===n?Se.select(c.state,o.scope):void 0,i=a();if(!i)return null;if(!i.supported)return"legacy";const u={wsId:t,text:n.text,imageBlocks:n.options?.imageBlocks,fileBlocks:n.options?.fileBlocks,noteIds:n.options?.noteIds,messageMetadata:n.options?.messageMetadata,model:s??n.options?.model};if(r.outcome==="rejected"){const p=f(i.tombstones,o.id);return f(i.submissions,o.id)||p&&p.reason!=="rejected"?null:R(c,e,u)}if(r.outcome==="accepted")return R(c,e,u);await Promise.all([be(e,t).catch(()=>{}),Me(e,t).catch(()=>{})]);const l=a();if(!l||f(l.submissions,o.id)?.status!=="uncertain")return null;const{notify:m}=await v(async()=>{const{notify:p}=await import("./s1gAk8mT.js").then(ee=>ee.i);return{notify:p}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url);if(a()!==l)return null;let d=!1;const h=()=>{d=!0};return m.warning(S.agent_chatSend_uncertainRetry_description(),{key:`submission-retry:${t}:${e}:${o.id}`,duration:Number.POSITIVE_INFINITY,action:{label:S.agent_chatSend_resend_label(),onClick:()=>{if(d)return;d=!0;const p=a();!p||p.generation!==l.generation||p.submissions!==l.submissions||p.observationVersion!==l.observationVersion||f(p.submissions,o.id)?.status!=="uncertain"||Be(c,e,u)}},cancel:{label:S.chat_richInput_cancel_label(),onClick:h},onDismiss:h}),null}async function xt(e,t,n){const s=N.select(c.state,e),r=s?.submission?await Oe(e,t,s,n):"legacy";if(r){if(r==="legacy"){await c.dispatch(n===void 0?le(e,t):de(e,t,n));return}!r.isCurrent()||!s||c.dispatch(F(e,{wsId:t,text:s.text,imageBlocks:s.options?.imageBlocks,fileBlocks:s.options?.fileBlocks,noteIds:s.options?.noteIds,messageMetadata:s.options?.messageMetadata,model:n??s.options?.model,userAppMessageId:r.submission.appMessageId,submission:{scope:r.scope,id:r.submission.id}}))}}const Pt=c.createSelector((e,t)=>{const n=f(e.chatDrafts.owners,t);return n?{restore:n.restore,saves:W(n.saves)}:void 0});function Ue(e,t){return t.workspaceId===e&&!t.retiredAt&&!t.pendingDeleteAt&&t.status!==$.Deleted&&!t.notificationsMuted&&me(t)==="topLevel"}function Ne(e){const t=e.metadata?.pendingQuestionsMessageId;return typeof t=="string"&&t.length>0&&!we(e.metadata,t)?t:null}function Ve(e){return e.status===$.Error&&!ae(ie(e))}function Dt(e,t){return t.filter(n=>Ue(e,n)).flatMap(n=>{const s=fe(n),r=Ne(n),o=n.status===$.Error;if(!s&&!r&&!o)return[];const a=s?.timestamp??(o?n.stopReasonTimestamp:void 0);return[{agentId:n.id,agentName:n.name,kind:s?.kind??(o?"failed":"question"),reason:s?.reason,timestamp:a&&Number.isFinite(Date.parse(a))?a:void 0,questionMessageId:r,canRetry:Ve(n)}]})}function Ht(e){return e.displayStatus==="failed"?"failed":e.displayStatus==="blocked"?"blocked":e.attention==="review_required"?"review":e.displayStatus==="needs_attention"?"question":e.activity==="agent_running"||e.displayStatus==="in_progress"?"running":e.scriptsRunning===!0?"scripts_running":e.backgroundTasksRunning===!0?"background_tasks_running":e.displayStatus==="pr_ready"?"pr_ready":e.displayStatus==="pr_merged"?"merged":e.displayStatus==="complete"?"complete":e.attention==="unread"?"unread":e.displayStatus==="pr_open"||e.displayStatus==="pr_queued"?e.displayStatus:"idle"}function Bt(e){const t=e.kind==="prs"?e.organization?.trim().toLowerCase():void 0;return{key:JSON.stringify([e.kind,e.workspaceId,t||null,[...new Set((t?[]:e.repositories).map(n=>JSON.stringify([n.key,n.owner,n.name])))].sort()]),hasGitHubRepositories:!!t||e.repositories.some(n=>!!n.owner),hasLocalRepositories:!t&&e.repositories.some(n=>!n.owner)}}function k(e){const t=Ie(e);if(t?.kind!=="pr"||!Number.isSafeInteger(t.number)||t.number<=0)return null;const n=t.owner.toLowerCase(),s=t.repo.toLowerCase();return{owner:n,repo:s,number:t.number,id:`${n}/${s}#${t.number}`,url:`https://github.com/${n}/${s}/pull/${t.number}`}}function Ot(e,t,n,s){const r=e.filter(o=>s?s.includes(o.id):n?o.repositoryOwner?.toLowerCase()===n.toLowerCase():t.some(a=>a.owner?.toLowerCase()===o.repositoryOwner?.toLowerCase()&&a.name.toLowerCase()===o.repositoryName?.toLowerCase()));return[...new Map(r.flatMap(o=>[...(o.pullRequests??[]).map(a=>a.url),o.activePullRequest?.url,o.prUrl]).flatMap(o=>{const a=o?k(o):null;return a?[[a.id,{owner:a.owner,repo:a.repo,number:a.number}]]:[]})).values()].sort((o,a)=>`${o.owner}/${o.repo}#${o.number}`.localeCompare(`${a.owner}/${a.repo}#${a.number}`))}function Ut(e,t){const[n]=t;return t.length!==1||e.owner?.toLowerCase()!==n?.owner?.toLowerCase()||e.repo?.toLowerCase()!==n?.name.toLowerCase()}const Nt=c.createSelector(e=>e.homeIntegrations),Vt=c.createSelector(e=>{const t=e.homeIntegrations;return!t.linkedItems||!Object.keys(t.linkedItems).length?t:{...t,items:[...new Map([...Object.values(t.linkedItems),...t.items].map(n=>[n.id,n])).values()].sort((n,s)=>(s.updatedAt??"").localeCompare(n.updatedAt??""))}}),q=c.createSelector(e=>W(e.workspace.workspaces).flatMap(t=>[...(t.pullRequests??[]).map(n=>n.url),t.activePullRequest?.url,t.prUrl].filter(n=>!!n).map(n=>({url:k(n)?.url??n.replace(/\/$/,"").toLowerCase(),workspaceId:t.id,name:t.title||t.id})))),Ft=c.createSelector(e=>{const t=e.homeIntegrations.detail?.url,n=t?k(t)?.url??t.replace(/\/$/,"").toLowerCase():void 0;return q.select(e).find(s=>s.url===n)??null}),Wt=c.createSelector(e=>q.select(e).map(t=>t.url));function qt(e){return ve(e)}function Fe(e){return Ce(e)}function We(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function w(e){if(e.length===0)return[];const t=[];let n=null;for(const s of e){const r=s.timestamp?typeof s.timestamp=="string"?new Date(s.timestamp):s.timestamp:new Date;(!n||!We(n.date,r))&&(n={date:r,label:Fe(r),messages:[]},t.push(n)),n.messages.push(s)}return t}function Gt(e){const t=new Map;return e.map(({date:n})=>{const s=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`,r=t.get(s)??0;return t.set(s,r+1),r===0?s:`${s}#${r}`})}function Kt(e,t){const n=new Map;let s=t?null:void 0;for(const[r,o]of e.groups.entries()){r===e.gapBeforeGroupIndex&&(s=void 0);for(const a of o.messages)s!==void 0&&n.set(a.id,s),a.role==="user"&&!Te(a)&&(s=a)}return n}function qe(e){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function _(e,t){const n=new Map;return e.map(s=>{const r=`${t}-${qe(s.date)}`,o=(n.get(r)??0)+1;return n.set(r,o),{...s,groupKey:o===1?r:`${r}-${o}`}})}function Ge(e,t){if(e.length===0||t.length===0)return e;const n=new Set(t.map(o=>o.id)),s=new Set(t.map(o=>o.appMessageId).filter(o=>typeof o=="string"&&o.length>0)),r=e.filter(o=>!n.has(o.id)&&!(typeof o.appMessageId=="string"&&o.appMessageId.length>0&&s.has(o.appMessageId)));return r.length===e.length?e:r}function jt(e,t,n){if(e=Ge(e,t),e.length===0)return{groups:w(t),gapBeforeGroupIndex:null};if(!n)return{groups:_(w([...e,...t]),"d"),gapBeforeGroupIndex:null};const s=_(w(e),"h"),r=_(w(t),"t");return{groups:[...s,...r],gapBeforeGroupIndex:s.length}}function zt(e){const{scrollTop:t,threshold:n,fetching:s,exhausted:r,historyCount:o,tailCount:a,tailTruncated:i,totalMessages:u,spacerAbove:l=0}=e;return t>n+l||s||r?!1:o>0||i||u>a+o}const Qt=300;function Yt(e){const{fetching:t,chainEvaluationPending:n,visible:s,hideArmed:r}=e;return t||n?s&&!r?"none":"show":s&&!r?"arm-hide":"none"}const B=24,Ke=320;function E(e){return Number.isFinite(e)?Math.min(Ke,Math.max(B,e)):B}const je=.2,ze=.12;function Qe(e,t,n=je){const s=E(t);return e===null||!Number.isFinite(e)?s:e+n*(s-e)}function Xt(e,t){const n=E(t??Number.NaN);return{above:Math.round(Math.max(0,e.above)*n),below:Math.round(Math.max(0,e.below)*n)}}function Jt(e){const{totalMessages:t,residentCount:n,exhausted:s,residentContentHeight:r,currentSpacerHeight:o,viewportHeight:a}=e;let i=e.rowHeightEma;n>0&&r>0&&(i=Qe(i,r/n));const u=e.unloadedRows??t-n,m=s||t<=0||n<=0||u<=0||i===null?0:Math.round(u*i),d=Math.abs(m-o);return d===0?{spacerHeight:o,rowHeightEma:i,applied:!1,scrollTopDelta:0}:m===0||o===0||d>o*ze||a>0&&d>a?{spacerHeight:m,rowHeightEma:i,applied:!0,scrollTopDelta:m-o}:{spacerHeight:o,rowHeightEma:i,applied:!1,scrollTopDelta:0}}const Ye=_e,Xe=2;function Zt(e){const{scrollTop:t,spacerAboveHeight:n,rowHeightEstimate:s,pageSize:r=Ye,nearPages:o=Xe}=e;if(n<=0||t>=n)return"serial";const a=E(s??Number.NaN);return(n-Math.max(0,t))/a>o*r?"seek":"serial"}const G=200,Je=1;function en(e,t,n=G){const s=t.timestamp-n;return[...e.filter(r=>r.timestamp>=s),t]}function tn(e){const{samples:t,viewportHeight:n,windowMs:s=G,viewportFactor:r=Je}=e;if(n<=0||t.length<2)return"gentle";const o=t[t.length-1].timestamp-s,a=t.filter(u=>u.timestamp>=o);if(a.length<2)return"gentle";let i=0;for(let u=1;u<a.length;u+=1)i+=Math.abs(a[u].scrollTop-a[u-1].scrollTop);return i>n*r?"rapid":"gentle"}function nn(e){const{scrollTop:t,spacerAboveHeight:n,unloadedRowsAbove:s}=e;if(s<=0||n<=0)return 0;const r=Math.min(1,Math.max(0,t/n));return Math.min(s-1,Math.max(0,Math.floor(r*s)))}function sn(e){const{totalMessages:t,residentCount:n,exhausted:s,startOrdinalEstimate:r,gapToTail:o}=e,a=Math.max(0,t-n);if(a===0)return{above:0,below:0};if(!o)return{above:s?0:a,below:0};if(s)return{above:0,below:a};if(r!==null){const u=Math.min(a,Math.max(0,Math.round(r)));return{above:u,below:a-u}}const i=Math.min(a,Math.max(0,Math.round(e.holeRowsEstimate??0)));return{above:a-i,below:i}}function rn(e){const{exhausted:t,historyCount:n,tailCount:s,tailTruncated:r,totalMessages:o}=e;return t?!0:n>0?!1:!r&&o<=s}const K=new Map;function j(e,t){return`${e}\0${t}`}function on(e,t){return K.get(j(e,t))}function an(e,t,n){K.set(j(e,t),n)}const un=c.createSelector((e,t,n)=>{const s=e.chatPanelUi.byWorkspaceId[t];return s?f(s.userMessageIndexes,n):void 0}),cn=c.createSelector((e,t,n)=>{const s=e.chatPanelUi.byWorkspaceId[t];return s?f(s.retryAgents,n):void 0});function Ze(e){e=Math.max(0,e);const t=Math.floor(e/1e3);if(t<10){const o=e/1e3,a=o.toFixed(1);return a.endsWith(".0")?`${Math.round(o)}s`:`${a}s`}if(t<60)return`${t}s`;const n=Math.floor(t/3600),s=Math.floor(t%3600/60),r=t%60;return n>0?`${n}h ${s}m ${r}s`:`${s}m ${r}s`}function ln(e){return Ze(Math.max(1e3,Math.round(e/1e3)*1e3))}const et=new Set(["launch","init","session-create","session-load","prompt"]),tt=new Set(["tool-call","tool-waiting"]);function nt(e){let t=null;for(const n of e)(!t||n.timestamp>=t.timestamp)&&(t=n);return t}function dn(e){return e&&et.has(e)?"pulse":e&&tt.has(e)?"twist":"bloom"}const z="stalled";function fn(e,t){const n=nt(e);return!n||n.phase!==z||typeof t=="number"&&t>n.timestamp?null:n}function mn(e){let t=null;for(const n of e)n.phase!==z&&(!t||n.timestamp>=t.timestamp)&&(t=n);return t}const O={get title(){return S.chat_streamingStatus_sessionCorrupted_title()},get message(){return S.chat_streamingStatus_sessionCorrupted_message()}};function pn(e,t){return e?t===!0?{corrupted:!0,title:O.title,message:O.message,detail:e}:{corrupted:!1,title:S.chat_streamingStatus_responseFailed_label(),message:e,detail:null}:null}const gn=c.createSelector((e,t)=>e.unreadTracking.dividerSessionByAgentId[t]??null),hn=c.createSelector(e=>e.unreadTracking.currentlyViewedAgentId),Sn=c.createSelector(e=>{const t=[];for(const o of Object.values(e.panelLayout.byWorkspaceId))for(const a of Object.values(o.panels))for(const i of a.tabs)i.type==="agent"&&i.agentId&&t.push(i.agentId);const n=Object.keys(e.unreadTracking.dividerSessionByAgentId),s=new Set(e.agentSessions.agentIdsByWorkspace[pe]??[]);return{chiefCardVisible:e.sidebarNav.panelItem==="chief",chiefSessionAgentIds:n.filter(o=>s.has(o)),dividerSessionAgentIds:n,openAgentTabIds:t}}),yn=c.createSelector((e,t)=>f(e.questionUi.consumers,t)),st=3e4,b=new Map;function An(e,t){const n=b.get(e);n&&clearTimeout(n.timer);const s=setTimeout(()=>b.delete(e),st);b.set(e,{value:t,timer:s})}function bn(e){const t=b.get(e);if(t)return clearTimeout(t.timer),b.delete(e),t.value}const Q=c.createSelector((e,t,n)=>e.agentWorkers?.byKey[he(t,n)]??ge),rt=c.createSelector((e,t,n)=>{const s=Q.select(e,t,n);return s.status==="unsupported"?[]:(s.snapshot?.workers??[]).filter(r=>r.status==="running"||r.status==="unknown")}),Mn=c.createSelector((e,t,n)=>{const s=Q.select(e,t,n);return s.status==="failed"?!0:s.status!=="ready"||!s.snapshot?!1:s.snapshot.truncated?!0:s.snapshot.support.status!=="supported"&&rt.select(e,t,n).length>0}),ot=1e3,Y={requireViewedAndFocused:!0,requireAssistantTail:!0},M=new Map,g=new Map;let A=null;function L(e){(e===void 0||A===e)&&(A=null)}const at=200;function it(e,t){if(g.delete(e),g.set(e,t),g.size>at){const n=g.keys().next().value;n!==void 0&&g.delete(n)}}function X(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(!n.isStreaming&&typeof n.id=="string"&&n.id.length>0)return n}return null}function wn(e){return X(e)?.id??null}function In(e){x(e,{requireViewedAndFocused:!0})}function _n(e){x(e,{requireViewedAndFocused:!1})}function Cn(e){L(),x(e,Y)}function vn(e){A===e&&(M.has(e)||(A=null,P(e,Y)))}function Tn(e){for(const t of e)typeof t!="string"||t.length===0||(J(t),L(t),P(t,{requireViewedAndFocused:!1}))}function J(e){const t=M.get(e);t&&(clearTimeout(t.timer),M.delete(e))}function x(e,t){J(e),L(e);const n=setTimeout(()=>{M.delete(e),P(e,t)},ot);M.set(e,{timer:n,gates:t})}let U=null;function ut(){return U??=Promise.all([v(()=>import("./Chp5dHOk.js"),__vite__mapDeps([25,17,18,3,19,20,13,5,8,2,11,26,27]),import.meta.url),v(()=>import("./DYFbONVh.js").then(e=>e.Y),__vite__mapDeps([28,29,18,3,17,19,20,13,5,8,2,11,7,4,6,9,10,12,14,30,31,32]),import.meta.url)]).then(([e,t])=>({appStore:e.store,appClient:t.appClient})),U}async function P(e,t){let n=null;try{const{appStore:s,appClient:r}=await ut(),o=s.state;if(t.requireViewedAndFocused&&(o.unreadTracking?.currentlyViewedAgentId!==e||typeof document<"u"&&!document.hasFocus()))return;const a=o.agentSessions?.byAgentId[e];if(!a)return;const i=typeof a.workspaceId=="string"?a.workspaceId:"";if(i.length===0)return;if(t.requireAssistantTail&&o.chatState?.byAgentId[e]?.initialHistoryPending){A=e;return}const u=X(a.messages??[]);if(!u){t.requireAssistantTail&&(A=e);return}if(t.requireAssistantTail&&u.role!=="assistant")return;const l=u.id;if(g.get(e)===l)return;it(e,l),n=l,!(await r.agents.markSeen({workspaceId:i,agentId:e,messageId:l})).success&&g.get(e)===n&&g.delete(e)}catch{n!==null&&g.get(e)===n&&g.delete(e)}}const I=new Map;function Z(e,t){return`${e}\0${t}`}function Rn(e,t){return I.get(Z(e,t))}function $n(e,t,n){I.set(Z(e,t),n)}function kn(e){if(e.length===0)return;const t=new Set(e);for(const n of[...I.keys()]){const s=n.slice(n.indexOf("\0")+1);t.has(s)&&I.delete(n)}}export{xt as $,Et as A,Lt as B,Kt as C,rn as D,Ct as E,nn as F,Tn as G,Pe as H,vn as I,In as J,_n as K,Cn as L,ot as M,wn as N,Qt as O,Yt as P,vt as Q,G as R,kt as S,xe as T,wt as U,B as V,Oe as W,Tt as X,Jt as Y,$t as Z,L as _,Rt as a,It as a0,Xt as a1,rt as a2,Q as a3,Mn as a4,Pt as a5,hn as a6,Sn as a7,gn as a8,Nt as a9,Ft as aa,Vt as ab,Wt as ac,q as ad,yn as ae,cn as af,un as ag,$n as ah,an as ai,zt as aj,Ut as ak,sn as al,An as am,Be as an,bn as ao,R as b,en as c,bt as d,Mt as e,Gt as f,Ee as g,_t as h,tn as i,Zt as j,kn as k,Ot as l,jt as m,pn as n,Bt as o,Ge as p,ke as q,ln as r,qt as s,fn as t,Rn as u,on as v,Dt as w,Ht as x,mn as y,dn as z};
|
|
8
|
+
`),e)}function wt(e,t,n){if(e==="suggested-prompt")return{fields:{},hasAttachments:!1,cleanup:{clearInput:!1,followBottom:!0,historyText:null}};const s=n(),{imageBlocks:r,fileBlocks:o}=ke(s.contextItems);return{fields:{contextItems:s.contextItems,workspaceContextStr:Ee(s.contextItems,s.checkedPanels,s.checkedSelections),noteIds:s.noteIds,...r.length>0?{imageBlocks:r}:{},...o.length>0?{fileBlocks:o}:{},...s.pickedMentions?{messageMetadata:s.pickedMentions}:{}},hasAttachments:r.length>0||o.length>0,cleanup:{clearInput:!0,followBottom:!0,historyText:t}}}function It(e,t){if(e)return e.model}function Le({messages:e,pendingInitialPrompt:t,pendingContextReferenceCount:n=0}){return e.length>0||!!t||n>0}function _t({session:e,messages:t,pendingInitialPrompt:n,pendingContextReferenceCount:s=0}){return!(e?te(e):!1)&&!Le({messages:t,pendingInitialPrompt:n,pendingContextReferenceCount:s})}function Ct(e){return ne(e.messageMetadata)}function vt(e,t){const n=new Set;for(const s of t){const r=se(s.metadata);r&&n.add(r)}return n.size===0?[...e]:e.filter(s=>!n.has(s.id))}function xe(e){return{id:e.id,appMessageId:e.appMessageId,role:"user",timestamp:new Date(e.createdAt??0).toISOString(),contentBlocks:[...e.content?[{type:"text",text:e.content}]:[],...e.imageBlocks??[],...e.fileBlocks??[]],metadata:e.messageMetadata,...e.author!==void 0?{author:e.author}:{}}}function Tt(e){return xe({...e,createdAt:Date.parse(e.queuedAt)})}const Pe="chat-read:",y=new Map,T=new Set;function Rt(e,t){let n=y.get(e);n||(n=new Set,y.set(e,n)),n.add(t)}function $t(e,t){const n=y.get(e);if(!(!n||!n.delete(t))&&n.size===0){y.delete(e);for(const s of[...T])s(e)}}function kt(e){return T.add(e),()=>T.delete(e)}function Et(e){return y.has(e)}function Lt(e){const t=y.get(e);if(!t)return!1;for(const n of t)if(!n.startsWith(Pe))return!0;return!1}function De(e,t,n){const s=e.state.pendingSubmissions.byAgentId[t.agentId];if(!s||!V(s.scope,t))return null;const r={...structuredClone(n),id:crypto.randomUUID(),createdAt:Date.now()};e.dispatch(ce(t,r));const o=e.state.pendingSubmissions.byAgentId[t.agentId];return o&&f(o.submissions,r.id)?r:null}function He(e,t,n,s,r){const o=D.select(e.state,n),a=C.select(e.state)?.principal.id,i=H(e.state);if(!o||!a||!i)return null;const u=ye(t,n),l={agentId:t,workspaceId:n,principalId:a,participation:o,authority:i,owner:u.key,lifetime:e.state.pendingSubmissions.byAgentId[t]?.scope.lifetime??crypto.randomUUID()},m=()=>u.isCurrent(e.state.agentSessions?.byAgentId[t]?.workspaceId)&&D.select(e.state,n)===o&&C.select(e.state)?.principal.id===a&&H(e.state)===i;if(!m())return null;e.dispatch(ue(l,s,re.select(e.state,n)));const d=De(e,l,r);return d?{scope:l,submission:d,isCurrent:()=>{const h=e.state.pendingSubmissions.byAgentId[t];return m()&&!!h&&V(h.scope,l)&&(!!f(h.operations,d.id)||!!f(h.submissions,d.id))}}:null}function R(e,t,n){if(!n.text.trim()&&!n.imageBlocks?.length&&!n.fileBlocks?.length)return null;const s=n.userAppMessageId??Ae();return He(e,t,n.wsId,C.select(e.state)?.capabilities.submissionCorrelation,{content:n.text.trim(),appMessageId:s,destination:!n.forceSubmit&&oe.select(e.state,t)?"queue":"conversation",contextItems:n.contextItems,imageBlocks:n.imageBlocks,fileBlocks:n.fileBlocks,messageMetadata:n.messageMetadata})}function Be(e,t,n){const s=R(e,t,n);return s?(e.dispatch(F(t,{...n,userAppMessageId:s.submission.appMessageId,submission:{scope:s.scope,id:s.submission.id}})),!0):!1}async function Oe(e,t,n,s){const r=n.submission;if(!r)return"legacy";const o=r.reference,a=()=>o.scope.agentId===e&&o.scope.workspaceId===t&&N.select(c.state,e)===n?Se.select(c.state,o.scope):void 0,i=a();if(!i)return null;if(!i.supported)return"legacy";const u={wsId:t,text:n.text,imageBlocks:n.options?.imageBlocks,fileBlocks:n.options?.fileBlocks,noteIds:n.options?.noteIds,messageMetadata:n.options?.messageMetadata,model:s??n.options?.model};if(r.outcome==="rejected"){const p=f(i.tombstones,o.id);return f(i.submissions,o.id)||p&&p.reason!=="rejected"?null:R(c,e,u)}if(r.outcome==="accepted")return R(c,e,u);await Promise.all([be(e,t).catch(()=>{}),Me(e,t).catch(()=>{})]);const l=a();if(!l||f(l.submissions,o.id)?.status!=="uncertain")return null;const{notify:m}=await v(async()=>{const{notify:p}=await import("./CBYPZH-W.js").then(ee=>ee.i);return{notify:p}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24]),import.meta.url);if(a()!==l)return null;let d=!1;const h=()=>{d=!0};return m.warning(S.agent_chatSend_uncertainRetry_description(),{key:`submission-retry:${t}:${e}:${o.id}`,duration:Number.POSITIVE_INFINITY,action:{label:S.agent_chatSend_resend_label(),onClick:()=>{if(d)return;d=!0;const p=a();!p||p.generation!==l.generation||p.submissions!==l.submissions||p.observationVersion!==l.observationVersion||f(p.submissions,o.id)?.status!=="uncertain"||Be(c,e,u)}},cancel:{label:S.chat_richInput_cancel_label(),onClick:h},onDismiss:h}),null}async function xt(e,t,n){const s=N.select(c.state,e),r=s?.submission?await Oe(e,t,s,n):"legacy";if(r){if(r==="legacy"){await c.dispatch(n===void 0?le(e,t):de(e,t,n));return}!r.isCurrent()||!s||c.dispatch(F(e,{wsId:t,text:s.text,imageBlocks:s.options?.imageBlocks,fileBlocks:s.options?.fileBlocks,noteIds:s.options?.noteIds,messageMetadata:s.options?.messageMetadata,model:n??s.options?.model,userAppMessageId:r.submission.appMessageId,submission:{scope:r.scope,id:r.submission.id}}))}}const Pt=c.createSelector((e,t)=>{const n=f(e.chatDrafts.owners,t);return n?{restore:n.restore,saves:W(n.saves)}:void 0});function Ue(e,t){return t.workspaceId===e&&!t.retiredAt&&!t.pendingDeleteAt&&t.status!==$.Deleted&&!t.notificationsMuted&&me(t)==="topLevel"}function Ne(e){const t=e.metadata?.pendingQuestionsMessageId;return typeof t=="string"&&t.length>0&&!we(e.metadata,t)?t:null}function Ve(e){return e.status===$.Error&&!ae(ie(e))}function Dt(e,t){return t.filter(n=>Ue(e,n)).flatMap(n=>{const s=fe(n),r=Ne(n),o=n.status===$.Error;if(!s&&!r&&!o)return[];const a=s?.timestamp??(o?n.stopReasonTimestamp:void 0);return[{agentId:n.id,agentName:n.name,kind:s?.kind??(o?"failed":"question"),reason:s?.reason,timestamp:a&&Number.isFinite(Date.parse(a))?a:void 0,questionMessageId:r,canRetry:Ve(n)}]})}function Ht(e){return e.displayStatus==="failed"?"failed":e.displayStatus==="blocked"?"blocked":e.attention==="review_required"?"review":e.displayStatus==="needs_attention"?"question":e.activity==="agent_running"||e.displayStatus==="in_progress"?"running":e.scriptsRunning===!0?"scripts_running":e.backgroundTasksRunning===!0?"background_tasks_running":e.displayStatus==="pr_ready"?"pr_ready":e.displayStatus==="pr_merged"?"merged":e.displayStatus==="complete"?"complete":e.attention==="unread"?"unread":e.displayStatus==="pr_open"||e.displayStatus==="pr_queued"?e.displayStatus:"idle"}function Bt(e){const t=e.kind==="prs"?e.organization?.trim().toLowerCase():void 0;return{key:JSON.stringify([e.kind,e.workspaceId,t||null,[...new Set((t?[]:e.repositories).map(n=>JSON.stringify([n.key,n.owner,n.name])))].sort()]),hasGitHubRepositories:!!t||e.repositories.some(n=>!!n.owner),hasLocalRepositories:!t&&e.repositories.some(n=>!n.owner)}}function k(e){const t=Ie(e);if(t?.kind!=="pr"||!Number.isSafeInteger(t.number)||t.number<=0)return null;const n=t.owner.toLowerCase(),s=t.repo.toLowerCase();return{owner:n,repo:s,number:t.number,id:`${n}/${s}#${t.number}`,url:`https://github.com/${n}/${s}/pull/${t.number}`}}function Ot(e,t,n,s){const r=e.filter(o=>s?s.includes(o.id):n?o.repositoryOwner?.toLowerCase()===n.toLowerCase():t.some(a=>a.owner?.toLowerCase()===o.repositoryOwner?.toLowerCase()&&a.name.toLowerCase()===o.repositoryName?.toLowerCase()));return[...new Map(r.flatMap(o=>[...(o.pullRequests??[]).map(a=>a.url),o.activePullRequest?.url,o.prUrl]).flatMap(o=>{const a=o?k(o):null;return a?[[a.id,{owner:a.owner,repo:a.repo,number:a.number}]]:[]})).values()].sort((o,a)=>`${o.owner}/${o.repo}#${o.number}`.localeCompare(`${a.owner}/${a.repo}#${a.number}`))}function Ut(e,t){const[n]=t;return t.length!==1||e.owner?.toLowerCase()!==n?.owner?.toLowerCase()||e.repo?.toLowerCase()!==n?.name.toLowerCase()}const Nt=c.createSelector(e=>e.homeIntegrations),Vt=c.createSelector(e=>{const t=e.homeIntegrations;return!t.linkedItems||!Object.keys(t.linkedItems).length?t:{...t,items:[...new Map([...Object.values(t.linkedItems),...t.items].map(n=>[n.id,n])).values()].sort((n,s)=>(s.updatedAt??"").localeCompare(n.updatedAt??""))}}),q=c.createSelector(e=>W(e.workspace.workspaces).flatMap(t=>[...(t.pullRequests??[]).map(n=>n.url),t.activePullRequest?.url,t.prUrl].filter(n=>!!n).map(n=>({url:k(n)?.url??n.replace(/\/$/,"").toLowerCase(),workspaceId:t.id,name:t.title||t.id})))),Ft=c.createSelector(e=>{const t=e.homeIntegrations.detail?.url,n=t?k(t)?.url??t.replace(/\/$/,"").toLowerCase():void 0;return q.select(e).find(s=>s.url===n)??null}),Wt=c.createSelector(e=>q.select(e).map(t=>t.url));function qt(e){return ve(e)}function Fe(e){return Ce(e)}function We(e,t){return!e||!t?!1:e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}function w(e){if(e.length===0)return[];const t=[];let n=null;for(const s of e){const r=s.timestamp?typeof s.timestamp=="string"?new Date(s.timestamp):s.timestamp:new Date;(!n||!We(n.date,r))&&(n={date:r,label:Fe(r),messages:[]},t.push(n)),n.messages.push(s)}return t}function Gt(e){const t=new Map;return e.map(({date:n})=>{const s=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`,r=t.get(s)??0;return t.set(s,r+1),r===0?s:`${s}#${r}`})}function Kt(e,t){const n=new Map;let s=t?null:void 0;for(const[r,o]of e.groups.entries()){r===e.gapBeforeGroupIndex&&(s=void 0);for(const a of o.messages)s!==void 0&&n.set(a.id,s),a.role==="user"&&!Te(a)&&(s=a)}return n}function qe(e){return`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`}function _(e,t){const n=new Map;return e.map(s=>{const r=`${t}-${qe(s.date)}`,o=(n.get(r)??0)+1;return n.set(r,o),{...s,groupKey:o===1?r:`${r}-${o}`}})}function Ge(e,t){if(e.length===0||t.length===0)return e;const n=new Set(t.map(o=>o.id)),s=new Set(t.map(o=>o.appMessageId).filter(o=>typeof o=="string"&&o.length>0)),r=e.filter(o=>!n.has(o.id)&&!(typeof o.appMessageId=="string"&&o.appMessageId.length>0&&s.has(o.appMessageId)));return r.length===e.length?e:r}function jt(e,t,n){if(e=Ge(e,t),e.length===0)return{groups:w(t),gapBeforeGroupIndex:null};if(!n)return{groups:_(w([...e,...t]),"d"),gapBeforeGroupIndex:null};const s=_(w(e),"h"),r=_(w(t),"t");return{groups:[...s,...r],gapBeforeGroupIndex:s.length}}function zt(e){const{scrollTop:t,threshold:n,fetching:s,exhausted:r,historyCount:o,tailCount:a,tailTruncated:i,totalMessages:u,spacerAbove:l=0}=e;return t>n+l||s||r?!1:o>0||i||u>a+o}const Qt=300;function Yt(e){const{fetching:t,chainEvaluationPending:n,visible:s,hideArmed:r}=e;return t||n?s&&!r?"none":"show":s&&!r?"arm-hide":"none"}const B=24,Ke=320;function E(e){return Number.isFinite(e)?Math.min(Ke,Math.max(B,e)):B}const je=.2,ze=.12;function Qe(e,t,n=je){const s=E(t);return e===null||!Number.isFinite(e)?s:e+n*(s-e)}function Xt(e,t){const n=E(t??Number.NaN);return{above:Math.round(Math.max(0,e.above)*n),below:Math.round(Math.max(0,e.below)*n)}}function Jt(e){const{totalMessages:t,residentCount:n,exhausted:s,residentContentHeight:r,currentSpacerHeight:o,viewportHeight:a}=e;let i=e.rowHeightEma;n>0&&r>0&&(i=Qe(i,r/n));const u=e.unloadedRows??t-n,m=s||t<=0||n<=0||u<=0||i===null?0:Math.round(u*i),d=Math.abs(m-o);return d===0?{spacerHeight:o,rowHeightEma:i,applied:!1,scrollTopDelta:0}:m===0||o===0||d>o*ze||a>0&&d>a?{spacerHeight:m,rowHeightEma:i,applied:!0,scrollTopDelta:m-o}:{spacerHeight:o,rowHeightEma:i,applied:!1,scrollTopDelta:0}}const Ye=_e,Xe=2;function Zt(e){const{scrollTop:t,spacerAboveHeight:n,rowHeightEstimate:s,pageSize:r=Ye,nearPages:o=Xe}=e;if(n<=0||t>=n)return"serial";const a=E(s??Number.NaN);return(n-Math.max(0,t))/a>o*r?"seek":"serial"}const G=200,Je=1;function en(e,t,n=G){const s=t.timestamp-n;return[...e.filter(r=>r.timestamp>=s),t]}function tn(e){const{samples:t,viewportHeight:n,windowMs:s=G,viewportFactor:r=Je}=e;if(n<=0||t.length<2)return"gentle";const o=t[t.length-1].timestamp-s,a=t.filter(u=>u.timestamp>=o);if(a.length<2)return"gentle";let i=0;for(let u=1;u<a.length;u+=1)i+=Math.abs(a[u].scrollTop-a[u-1].scrollTop);return i>n*r?"rapid":"gentle"}function nn(e){const{scrollTop:t,spacerAboveHeight:n,unloadedRowsAbove:s}=e;if(s<=0||n<=0)return 0;const r=Math.min(1,Math.max(0,t/n));return Math.min(s-1,Math.max(0,Math.floor(r*s)))}function sn(e){const{totalMessages:t,residentCount:n,exhausted:s,startOrdinalEstimate:r,gapToTail:o}=e,a=Math.max(0,t-n);if(a===0)return{above:0,below:0};if(!o)return{above:s?0:a,below:0};if(s)return{above:0,below:a};if(r!==null){const u=Math.min(a,Math.max(0,Math.round(r)));return{above:u,below:a-u}}const i=Math.min(a,Math.max(0,Math.round(e.holeRowsEstimate??0)));return{above:a-i,below:i}}function rn(e){const{exhausted:t,historyCount:n,tailCount:s,tailTruncated:r,totalMessages:o}=e;return t?!0:n>0?!1:!r&&o<=s}const K=new Map;function j(e,t){return`${e}\0${t}`}function on(e,t){return K.get(j(e,t))}function an(e,t,n){K.set(j(e,t),n)}const un=c.createSelector((e,t,n)=>{const s=e.chatPanelUi.byWorkspaceId[t];return s?f(s.userMessageIndexes,n):void 0}),cn=c.createSelector((e,t,n)=>{const s=e.chatPanelUi.byWorkspaceId[t];return s?f(s.retryAgents,n):void 0});function Ze(e){e=Math.max(0,e);const t=Math.floor(e/1e3);if(t<10){const o=e/1e3,a=o.toFixed(1);return a.endsWith(".0")?`${Math.round(o)}s`:`${a}s`}if(t<60)return`${t}s`;const n=Math.floor(t/3600),s=Math.floor(t%3600/60),r=t%60;return n>0?`${n}h ${s}m ${r}s`:`${s}m ${r}s`}function ln(e){return Ze(Math.max(1e3,Math.round(e/1e3)*1e3))}const et=new Set(["launch","init","session-create","session-load","prompt"]),tt=new Set(["tool-call","tool-waiting"]);function nt(e){let t=null;for(const n of e)(!t||n.timestamp>=t.timestamp)&&(t=n);return t}function dn(e){return e&&et.has(e)?"pulse":e&&tt.has(e)?"twist":"bloom"}const z="stalled";function fn(e,t){const n=nt(e);return!n||n.phase!==z||typeof t=="number"&&t>n.timestamp?null:n}function mn(e){let t=null;for(const n of e)n.phase!==z&&(!t||n.timestamp>=t.timestamp)&&(t=n);return t}const O={get title(){return S.chat_streamingStatus_sessionCorrupted_title()},get message(){return S.chat_streamingStatus_sessionCorrupted_message()}};function pn(e,t){return e?t===!0?{corrupted:!0,title:O.title,message:O.message,detail:e}:{corrupted:!1,title:S.chat_streamingStatus_responseFailed_label(),message:e,detail:null}:null}const gn=c.createSelector((e,t)=>e.unreadTracking.dividerSessionByAgentId[t]??null),hn=c.createSelector(e=>e.unreadTracking.currentlyViewedAgentId),Sn=c.createSelector(e=>{const t=[];for(const o of Object.values(e.panelLayout.byWorkspaceId))for(const a of Object.values(o.panels))for(const i of a.tabs)i.type==="agent"&&i.agentId&&t.push(i.agentId);const n=Object.keys(e.unreadTracking.dividerSessionByAgentId),s=new Set(e.agentSessions.agentIdsByWorkspace[pe]??[]);return{chiefCardVisible:e.sidebarNav.panelItem==="chief",chiefSessionAgentIds:n.filter(o=>s.has(o)),dividerSessionAgentIds:n,openAgentTabIds:t}}),yn=c.createSelector((e,t)=>f(e.questionUi.consumers,t)),st=3e4,b=new Map;function An(e,t){const n=b.get(e);n&&clearTimeout(n.timer);const s=setTimeout(()=>b.delete(e),st);b.set(e,{value:t,timer:s})}function bn(e){const t=b.get(e);if(t)return clearTimeout(t.timer),b.delete(e),t.value}const Q=c.createSelector((e,t,n)=>e.agentWorkers?.byKey[he(t,n)]??ge),rt=c.createSelector((e,t,n)=>{const s=Q.select(e,t,n);return s.status==="unsupported"?[]:(s.snapshot?.workers??[]).filter(r=>r.status==="running"||r.status==="unknown")}),Mn=c.createSelector((e,t,n)=>{const s=Q.select(e,t,n);return s.status==="failed"?!0:s.status!=="ready"||!s.snapshot?!1:s.snapshot.truncated?!0:s.snapshot.support.status!=="supported"&&rt.select(e,t,n).length>0}),ot=1e3,Y={requireViewedAndFocused:!0,requireAssistantTail:!0},M=new Map,g=new Map;let A=null;function L(e){(e===void 0||A===e)&&(A=null)}const at=200;function it(e,t){if(g.delete(e),g.set(e,t),g.size>at){const n=g.keys().next().value;n!==void 0&&g.delete(n)}}function X(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if(!n.isStreaming&&typeof n.id=="string"&&n.id.length>0)return n}return null}function wn(e){return X(e)?.id??null}function In(e){x(e,{requireViewedAndFocused:!0})}function _n(e){x(e,{requireViewedAndFocused:!1})}function Cn(e){L(),x(e,Y)}function vn(e){A===e&&(M.has(e)||(A=null,P(e,Y)))}function Tn(e){for(const t of e)typeof t!="string"||t.length===0||(J(t),L(t),P(t,{requireViewedAndFocused:!1}))}function J(e){const t=M.get(e);t&&(clearTimeout(t.timer),M.delete(e))}function x(e,t){J(e),L(e);const n=setTimeout(()=>{M.delete(e),P(e,t)},ot);M.set(e,{timer:n,gates:t})}let U=null;function ut(){return U??=Promise.all([v(()=>import("./Chp5dHOk.js"),__vite__mapDeps([25,17,18,3,19,20,13,5,8,2,11,26,27]),import.meta.url),v(()=>import("./CenrrJuj.js").then(e=>e.Z),__vite__mapDeps([28,29,18,3,17,19,20,13,5,8,2,11,7,4,6,9,10,12,14,30,31,32]),import.meta.url)]).then(([e,t])=>({appStore:e.store,appClient:t.appClient})),U}async function P(e,t){let n=null;try{const{appStore:s,appClient:r}=await ut(),o=s.state;if(t.requireViewedAndFocused&&(o.unreadTracking?.currentlyViewedAgentId!==e||typeof document<"u"&&!document.hasFocus()))return;const a=o.agentSessions?.byAgentId[e];if(!a)return;const i=typeof a.workspaceId=="string"?a.workspaceId:"";if(i.length===0)return;if(t.requireAssistantTail&&o.chatState?.byAgentId[e]?.initialHistoryPending){A=e;return}const u=X(a.messages??[]);if(!u){t.requireAssistantTail&&(A=e);return}if(t.requireAssistantTail&&u.role!=="assistant")return;const l=u.id;if(g.get(e)===l)return;it(e,l),n=l,!(await r.agents.markSeen({workspaceId:i,agentId:e,messageId:l})).success&&g.get(e)===n&&g.delete(e)}catch{n!==null&&g.get(e)===n&&g.delete(e)}}const I=new Map;function Z(e,t){return`${e}\0${t}`}function Rn(e,t){return I.get(Z(e,t))}function $n(e,t,n){I.set(Z(e,t),n)}function kn(e){if(e.length===0)return;const t=new Set(e);for(const n of[...I.keys()]){const s=n.slice(n.indexOf("\0")+1);t.has(s)&&I.delete(n)}}export{xt as $,Et as A,Lt as B,Kt as C,rn as D,Ct as E,nn as F,Tn as G,Pe as H,vn as I,In as J,_n as K,Cn as L,ot as M,wn as N,Qt as O,Yt as P,vt as Q,G as R,kt as S,xe as T,wt as U,B as V,Oe as W,Tt as X,Jt as Y,$t as Z,L as _,Rt as a,It as a0,Xt as a1,rt as a2,Q as a3,Mn as a4,Pt as a5,hn as a6,Sn as a7,gn as a8,Nt as a9,Ft as aa,Vt as ab,Wt as ac,q as ad,yn as ae,cn as af,un as ag,$n as ah,an as ai,zt as aj,Ut as ak,sn as al,An as am,Be as an,bn as ao,R as b,en as c,bt as d,Mt as e,Gt as f,Ee as g,_t as h,tn as i,Zt as j,kn as k,Ot as l,jt as m,pn as n,Bt as o,Ge as p,ke as q,ln as r,qt as s,fn as t,Rn as u,on as v,Dt as w,Ht as x,mn as y,dn as z};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{GZ as U,Hb as n,qY as we,n2 as p,A1 as Ae,wV as Q,n1 as v,pL as ke,zY as _e,g as Y,qy as V,zZ as G,c as Re,mQ as z,A as Oe}from"./WOicJa2k.js";import{k as Le}from"./DVkfuwKw.js";import{l as Te,s as Be}from"./CWKAugar.js";import{b$ as w,cB as Ne,c8 as y,bY as M,cs as C,cJ as J,cI as xe,cA as De,bZ as He,bt as Fe,l as We,F as je,dL as qe,dw as Z,aw as Ke,cj as $e}from"./D24Lh2xV.js";import{P as Ue,d as Qe}from"./Ck8ZjaJh.js";import{bo as h}from"./yZ5s7S5S.js";import{t as Ye}from"./Dfbagr79.js";import{p as Ve}from"./D46WSk8U.js";import{p as Ge}from"./BIqUw3gi.js";function ze(e,t,o){if(!e||!o?.length)return null;const r=new Set(o);if(t!==null&&!r.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=r.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const Je={major:5,minor:2};function Ze(e){const{major:t,minor:o}=Je;return Le(e,t,o)}function _(e,t,o){const r=U(e);return r.providerId&&o(r.providerId)===t?r.modelId:e}function k(e,t){const o=t(e);if(o)return o;const r=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!r||r.index===0)return;const s=t(e.slice(0,r.index)),c=r[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function Xe(e,t){return JSON.stringify([t||null,e])}const et=n.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),ao=n.createSelector((e,t,o)=>et.select(e,o)[t]),io=n.createSelector(e=>e.providerModels?.clearEpoch??0),lo=n.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),tt=n.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(r=>[Xe(r,o),{providerId:r,workspaceId:o}])))),uo=n.createSelector(e=>Object.keys(tt.select(e)).sort()),ot=n.createSelector((e,t,o)=>we(e.providerModels?.learnedNames??{},t,o)),fo=n.createSelector(e=>e.providerModels.learnedNames),nt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},rt=new Map(Object.entries(nt).map(([e,t])=>[t,e]));function st(e,t){const o=rt.get(t);return o===void 0?void 0:e?.providers[o]}function po(e,t){const o=st(e,t);return o?.available===!0&&B(t,o.authenticated)}const go=new Set(["claude-code"]);function B(e,t){return e==="antigravity"?t===!0:t!==!1}const N=n.createSelector(e=>e.agentAvailability.providerStatusMap),mo=n.createSelector(e=>e.agentAvailability.providerLoadingMap),vo=n.createSelector(e=>e.agentAvailability.providerCheckEpochMap),ct=n.createSelector(e=>e.agentAvailability.hasCheckedOnce),bo=n.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),So=n.createSelector(e=>e.agentAvailability.npxStatus),ho=n.createSelector(e=>e.agentAvailability.hiddenProviders),yo=n.createSelector(e=>e.agentAvailability.discoveryError),Po=n.createSelector(e=>e.agentAvailability.discoveryRevision),Co=n.createSelector(e=>e.agentAvailability.refreshModelsPending),Mo=n.createSelector(e=>e.agentAvailability.refreshModelsRevision),Io=n.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Ne.select(e):null),Eo=n.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),wo=n.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ao=n.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ko=n.createSelector(e=>e.providerSettings.paths),_o=n.createSelector(e=>e.providerSettings.pathsRevision),P=n.createSelector(e=>y.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);n.createSelector((e,t)=>P.select(e)===t);const Ro=n.createSelector(e=>y.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),X=n.createSelector((e,t)=>{if(y.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Ae(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ee=n.createSelector(e=>{if(y.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],r=new Set(o.filter(a=>X.select(e,a.id)).map(a=>a.id)),s=P.select(e),c=Q(s);c&&t[c]!==!1&&r.add(c);for(const[a,i]of Object.entries(t))i&&r.add(a);return[...r]});function at(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const te=n.createSelector((e,t)=>{if(t!=="antigravity")return!0;const o=N.select(e)[t];return o?.available===!0&&B(t,o.authenticated)}),A=n.createSelector(e=>{const t=N.select(e);return ee.select(e).filter(o=>!at(e,o)&&t[o]?.available===!0&&te.select(e,o))}),Oo=n.createSelector((e,t)=>{const o=N.select(e),r=C.select(e,t);return A.select(e).filter(s=>C.select(e,s)!==r&&X.select(e,s)&&B(s,o[s]?.authenticated))}),Lo=n.createSelector(e=>(ct.select(e)?A.select(e):ee.select(e)).filter(o=>te.select(e,o))),To=n.createSelector(e=>{const t=Q(P.select(e));return A.select(e).includes(t)}),Bo=n.createSelector(e=>e.providerSettings.fastMode),No=n.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[r,s]of Object.entries(t?.pending??{}))o[r]=s.enabled;return o}),xo=n.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),m=e=>e.providerSettings?.profiles??ke,Do=n.createSelector(e=>xe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),Ho=n.createSelector((e,t)=>p(m(e).items).filter(o=>o.baseProviderId===t)),Fo=n.createSelector(e=>m(e).defaults),Wo=n.createSelector((e,t)=>m(e).defaults[t]),jo=n.createSelector((e,t)=>v(m(e).items,t)),qo=n.createSelector(e=>m(e).revision),Ko=n.createSelector(e=>m(e).loadStatus),$o=n.createSelector(e=>m(e).status),Uo=n.createSelector(e=>m(e).activation),Qo=n.createSelector(e=>Object.fromEntries(p(m(e).mutations).map(t=>[t.id,t]))),it={},Yo=n.createSelector(e=>m(e).identity??it),lt={},Vo=n.createSelector(e=>m(e).setups??lt),Go=n.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),zo=n.createSelector(e=>e.model),Jo=n.createSelector(e=>{const t=De.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const r=P.select(e);return o==="member"&&!r?null:JSON.stringify([t,r,o==="member"?He.select(e):null])});function oe(e,t){return t??P.select(e)}const x=n.createSelector((e,t)=>{const o=oe(e,t),r=e.model.availableModelsProviderId===o?p(e.model.availableModels):[],s=M.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(A.select(e).includes(o)?_e(r):"")}),dt=n.createSelector((e,t)=>x.select(e,t)!==""),Zo=n.createSelector(e=>P.select(e)!==""||dt.select(e)),ut=n.createSelector(e=>e.model.availableModels),Xo=n.createSelector(e=>p(ut.select(e))),en=n.createSelector(e=>e.model.availableModelsProviderId),ne=n.createSelector((e,t)=>{const o=oe(e,t);return e.model.loadingState[o]??null}),tn=n.createSelector((e,t)=>ne.select(e,t)?.status==="loading"),on=n.createSelector((e,t)=>{const o=ne.select(e,t);return o?.status!=="error"?null:o.error??null}),nn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&(t[o]=r.warning);return t}),rn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.stale&&(t[o]=!0);return t}),sn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&r.warningKind&&(t[o]=r.warningKind);return t}),cn=n.createSelector(e=>e.model.providerModels),an=n.createSelector(e=>e.model.defaultReasoningEffort),ln=n.createSelector(e=>e.model.modelPickerCollapsedGroups),dn=n.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),ft=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=e.model?.availableModels;if(!r&&i&&(!c||c===e.model.availableModelsProviderId)){const d=v(i,o)??v(i,a);if(d)return d}const l=r?e.providerModels?.byWorkspaceId?.[r]?.[c]:e.providerModels?.byProviderId?.[c];return l?.models.find(d=>d.value===o)??l?.models.find(d=>_(d.value,c,s)===a)}),un=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=d=>ft.select(e,c,d,r)?.label,l=d=>ot.select(e,c,d);return k(o,i)??(a!==o?k(a,i):void 0)??l(o)??k(a,l)}),pt=n.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const r=R(t);return v(o,r)?.effortLevels});function R(e){const t=U(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const gt=n.createSelector((e,t,o,r)=>{if(o){if(!r&&(!t||t===e.model?.availableModelsProviderId)){const s=pt.select(e,o);if(s)return s}if(t){const s=R(o);return(r?e.providerModels?.byWorkspaceId?.[r]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>R(a.value)===s)?.effortLevels}}}),mt=n.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const r=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=r?.find(u=>u.path==="model.defaultProvider")?.value,c=r?typeof s=="string"?s:"":Fe.select(e),a=We(o,c),i=C.select(e,a??c,o.workspaceId),l=r?.find(u=>u.path==="model.providerDefaults")?.value,d=l&&typeof l=="object"?l[i]:void 0,I=o.model??(r?typeof d=="string"?d:"":x.select(e,i));return gt.select(e,i,I,o.workspaceId)}),re="application/vnd.intent.question+json";function vt(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 bt(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(vt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function fn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===re}function St(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==re||typeof o.text!="string")return null;try{const r=JSON.parse(o.text);return bt(r)?r:null}catch{return null}}const ht="attachmentId",yt=/^tar-[0-9a-f]{12}$/;function se(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ce(e){const t=se(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const r=o[ht];return typeof r=="string"&&yt.test(r)?r:null}catch{return null}}function O(e){return Array.isArray(e)?`[${e.map(O).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[r])=>o<r?-1:o>r?1:0).map(([o,r])=>`${JSON.stringify(o)}:${O(r)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Pt(e){const t=se(e);if(!t)return null;if(t.mimeType===Ue)try{const r=JSON.parse(t.text);if(Qe(r))return`proposal:${r.kind}:${r.applyToolCallId??r.preview.title}:${O(r.payload)}`}catch{}const o=ce(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function D(e){return ce(e)!==null}function Ct(e){const t=new Map,o=[];for(const r of e){const s=Pt(r);if(s===null){o.push(r);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(r);continue}D(r)&&!D(o[c])&&(o[c]=r)}return o}function ae(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Mt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,r=o===0?"":o===1?h.chat_questionWizard_imagesAttached_label_one():h.chat_questionWizard_imagesAttached_label_many({count:Ye(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,r].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function It(e){return e.map(t=>`Q: ${t.question.question}
|
|
1
|
+
import{GZ as U,Hb as n,qY as we,n2 as p,A1 as Ae,wV as Q,n1 as v,pL as ke,zY as _e,g as Y,qy as V,zZ as G,c as Re,mQ as z,A as Oe}from"./WOicJa2k.js";import{k as Le}from"./DVkfuwKw.js";import{l as Te,s as Be}from"./CWKAugar.js";import{b$ as w,cB as Ne,c8 as y,bY as M,cs as C,cJ as J,cI as xe,cA as De,bZ as He,bt as Fe,l as We,F as je,dL as qe,dw as Z,aw as Ke,cj as $e}from"./-1vWYJiy.js";import{P as Ue,d as Qe}from"./Ck8ZjaJh.js";import{bo as h}from"./yZ5s7S5S.js";import{t as Ye}from"./Dfbagr79.js";import{p as Ve}from"./D46WSk8U.js";import{p as Ge}from"./BIqUw3gi.js";function ze(e,t,o){if(!e||!o?.length)return null;const r=new Set(o);if(t!==null&&!r.has(t))return null;const s=e.lastIndexOf("/"),c=s>=0?e.slice(s+1):"",a=r.has(c)?e.slice(0,s):e;return t===null?a:`${a}/${t}`}const Je={major:5,minor:2};function Ze(e){const{major:t,minor:o}=Je;return Le(e,t,o)}function _(e,t,o){const r=U(e);return r.providerId&&o(r.providerId)===t?r.modelId:e}function k(e,t){const o=t(e);if(o)return o;const r=/\/(minimal|low|medium|high|xhigh|max|ultra|none)$/i.exec(e);if(!r||r.index===0)return;const s=t(e.slice(0,r.index)),c=r[1].toLowerCase();return s?`${s} (${c.charAt(0).toUpperCase()}${c.slice(1)})`:void 0}function Xe(e,t){return JSON.stringify([t||null,e])}const et=n.createSelector((e,t)=>(t?e.providerModels?.byWorkspaceId?.[t]:e.providerModels?.byProviderId)??{}),ao=n.createSelector((e,t,o)=>et.select(e,o)[t]),io=n.createSelector(e=>e.providerModels?.clearEpoch??0),lo=n.createSelector((e,t)=>(t?e.providerModels?.requestsByWorkspaceId?.[t]?.map:e.providerModels?.requests?.map)??{}),tt=n.createSelector(e=>Object.fromEntries(Object.values(e.providerModels?.observers?.map??{}).flatMap(({providerIds:t,workspaceId:o})=>t.map(r=>[Xe(r,o),{providerId:r,workspaceId:o}])))),uo=n.createSelector(e=>Object.keys(tt.select(e)).sort()),ot=n.createSelector((e,t,o)=>we(e.providerModels?.learnedNames??{},t,o)),fo=n.createSelector(e=>e.providerModels.learnedNames),nt={auggie:"auggie",claudeCode:"claude-code",codex:"codex",mock:"mock",opencode:"opencode",pi:"pi",cortex:"cortex",droid:"droid",grok:"grok",unsloth:"unsloth",antigravity:"antigravity",cursor:"cursor"},rt=new Map(Object.entries(nt).map(([e,t])=>[t,e]));function st(e,t){const o=rt.get(t);return o===void 0?void 0:e?.providers[o]}function po(e,t){const o=st(e,t);return o?.available===!0&&B(t,o.authenticated)}const go=new Set(["claude-code"]);function B(e,t){return e==="antigravity"?t===!0:t!==!1}const N=n.createSelector(e=>e.agentAvailability.providerStatusMap),mo=n.createSelector(e=>e.agentAvailability.providerLoadingMap),vo=n.createSelector(e=>e.agentAvailability.providerCheckEpochMap),ct=n.createSelector(e=>e.agentAvailability.hasCheckedOnce),bo=n.createSelector(e=>Object.values(e.agentAvailability.providerLoadingMap).some(t=>t)),So=n.createSelector(e=>e.agentAvailability.npxStatus),ho=n.createSelector(e=>e.agentAvailability.hiddenProviders),yo=n.createSelector(e=>e.agentAvailability.discoveryError),Po=n.createSelector(e=>e.agentAvailability.discoveryRevision),Co=n.createSelector(e=>e.agentAvailability.refreshModelsPending),Mo=n.createSelector(e=>e.agentAvailability.refreshModelsRevision),Io=n.createSelector(e=>e.sidebarNav?.onboardingActive&&e.userPreferences.providerSetupHydratedBackendId===e.connections.windowBackendId&&!e.userPreferences.hasCompletedProviderSetup&&w.select(e)==="owner"?Ne.select(e):null),Eo=n.createSelector((e,t)=>p(e.providerSettings.requests).filter(o=>o.sessionId===t)),wo=n.createSelector((e,t)=>e.providerSettings.sessions.includes(t)),Ao=n.createSelector((e,t)=>e.providerSettings.writeRevisions?.[t]??0),ko=n.createSelector(e=>e.providerSettings.paths),_o=n.createSelector(e=>e.providerSettings.pathsRevision),P=n.createSelector(e=>y.select(e)?M.select(e)?.defaultProviderId??"":e.model.defaultProviderId);n.createSelector((e,t)=>P.select(e)===t);const Ro=n.createSelector(e=>y.select(e)?Object.fromEntries((M.select(e)?.enabledProviderIds??[]).map(t=>[t,!0])):e.providerSettings.enabledProviders),X=n.createSelector((e,t)=>{if(y.select(e))return M.select(e)?.enabledProviderIds?.includes(t)===!0;const o=e.providerSettings.nonDisableableProviderIds??[];return Ae(e.providerSettings.enabledProviders,t,{canBeDisabled:!o.includes(t)})}),ee=n.createSelector(e=>{if(y.select(e))return M.select(e)?.enabledProviderIds??[];const t=e.providerSettings.enabledProviders,o=e.providerCatalog?p(e.providerCatalog.providers):[],r=new Set(o.filter(a=>X.select(e,a.id)).map(a=>a.id)),s=P.select(e),c=Q(s);c&&t[c]!==!1&&r.add(c);for(const[a,i]of Object.entries(t))i&&r.add(a);return[...r]});function at(e,t){const o=J.select(e,t);return y.select(e)?o?.visible!==!0:!!(o?.requiresEnvVar||o?.requiresFeatureCode)}const te=n.createSelector((e,t)=>{if(t!=="antigravity")return!0;const o=N.select(e)[t];return o?.available===!0&&B(t,o.authenticated)}),A=n.createSelector(e=>{const t=N.select(e);return ee.select(e).filter(o=>!at(e,o)&&t[o]?.available===!0&&te.select(e,o))}),Oo=n.createSelector((e,t)=>{const o=N.select(e),r=C.select(e,t);return A.select(e).filter(s=>C.select(e,s)!==r&&X.select(e,s)&&B(s,o[s]?.authenticated))}),Lo=n.createSelector(e=>(ct.select(e)?A.select(e):ee.select(e)).filter(o=>te.select(e,o))),To=n.createSelector(e=>{const t=Q(P.select(e));return A.select(e).includes(t)}),Bo=n.createSelector(e=>e.providerSettings.fastMode),No=n.createSelector(e=>{const t=e.providerSettings.fastMode,o={...t?.confirmed};for(const[r,s]of Object.entries(t?.pending??{}))o[r]=s.enabled;return o}),xo=n.createSelector(e=>e.providerSettings.fastMode?.supported?["claude-code","codex"].filter(t=>J.select(e,t)?.supportsFastMode===!0):[]),m=e=>e.providerSettings?.profiles??ke,Do=n.createSelector(e=>xe.select(e).filter(t=>t.supportsProfiles===!0).map(t=>t.id)),Ho=n.createSelector((e,t)=>p(m(e).items).filter(o=>o.baseProviderId===t)),Fo=n.createSelector(e=>m(e).defaults),Wo=n.createSelector((e,t)=>m(e).defaults[t]),jo=n.createSelector((e,t)=>v(m(e).items,t)),qo=n.createSelector(e=>m(e).revision),Ko=n.createSelector(e=>m(e).loadStatus),$o=n.createSelector(e=>m(e).status),Uo=n.createSelector(e=>m(e).activation),Qo=n.createSelector(e=>Object.fromEntries(p(m(e).mutations).map(t=>[t.id,t]))),it={},Yo=n.createSelector(e=>m(e).identity??it),lt={},Vo=n.createSelector(e=>m(e).setups??lt),Go=n.createSelector(e=>(e.providerSettings?.sessions.length??0)>0),zo=n.createSelector(e=>e.model),Jo=n.createSelector(e=>{const t=De.select(e),o=w.select(e);if(!t||o!=="owner"&&o!=="member")return null;const r=P.select(e);return o==="member"&&!r?null:JSON.stringify([t,r,o==="member"?He.select(e):null])});function oe(e,t){return t??P.select(e)}const x=n.createSelector((e,t)=>{const o=oe(e,t),r=e.model.availableModelsProviderId===o?p(e.model.availableModels):[],s=M.select(e),c=y.select(e)?s?.defaultProviderId===o?s.defaultModelId:null:e.model.providerModels[o];return c||(A.select(e).includes(o)?_e(r):"")}),dt=n.createSelector((e,t)=>x.select(e,t)!==""),Zo=n.createSelector(e=>P.select(e)!==""||dt.select(e)),ut=n.createSelector(e=>e.model.availableModels),Xo=n.createSelector(e=>p(ut.select(e))),en=n.createSelector(e=>e.model.availableModelsProviderId),ne=n.createSelector((e,t)=>{const o=oe(e,t);return e.model.loadingState[o]??null}),tn=n.createSelector((e,t)=>ne.select(e,t)?.status==="loading"),on=n.createSelector((e,t)=>{const o=ne.select(e,t);return o?.status!=="error"?null:o.error??null}),nn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&(t[o]=r.warning);return t}),rn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.stale&&(t[o]=!0);return t}),sn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.model.loadingState))r.warning&&r.warningKind&&(t[o]=r.warningKind);return t}),cn=n.createSelector(e=>e.model.providerModels),an=n.createSelector(e=>e.model.defaultReasoningEffort),ln=n.createSelector(e=>e.model.modelPickerCollapsedGroups),dn=n.createSelector((e,t)=>e.model.fallbackInfoByAgentId[t]??null),ft=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=e.model?.availableModels;if(!r&&i&&(!c||c===e.model.availableModelsProviderId)){const d=v(i,o)??v(i,a);if(d)return d}const l=r?e.providerModels?.byWorkspaceId?.[r]?.[c]:e.providerModels?.byProviderId?.[c];return l?.models.find(d=>d.value===o)??l?.models.find(d=>_(d.value,c,s)===a)}),un=n.createSelector((e,t,o,r)=>{const s=d=>C.select(e,d,r),c=s(t),a=_(o,c,s),i=d=>ft.select(e,c,d,r)?.label,l=d=>ot.select(e,c,d);return k(o,i)??(a!==o?k(a,i):void 0)??l(o)??k(a,l)}),pt=n.createSelector((e,t)=>{if(!t)return;const o=e.model?.availableModels;if(!o)return;const r=R(t);return v(o,r)?.effortLevels});function R(e){const t=U(e).modelId,o=t.indexOf("/");return o>0?t.slice(0,o):t}const gt=n.createSelector((e,t,o,r)=>{if(o){if(!r&&(!t||t===e.model?.availableModelsProviderId)){const s=pt.select(e,o);if(s)return s}if(t){const s=R(o);return(r?e.providerModels?.byWorkspaceId?.[r]?.[t]:e.providerModels?.byProviderId[t])?.models.find(a=>R(a.value)===s)?.effortLevels}}}),mt=n.createSelector((e,t)=>{const o=e.agentSessions?.byAgentId[t];if(!o)return;if(Array.isArray(o.effortLevels)&&o.effortLevels.length>0)return o.effortLevels;const r=o.workspaceId?e.providerCatalog?.byWorkspaceId?.[o.workspaceId]?.settings??[]:void 0,s=r?.find(u=>u.path==="model.defaultProvider")?.value,c=r?typeof s=="string"?s:"":Fe.select(e),a=We(o,c),i=C.select(e,a??c,o.workspaceId),l=r?.find(u=>u.path==="model.providerDefaults")?.value,d=l&&typeof l=="object"?l[i]:void 0,I=o.model??(r?typeof d=="string"?d:"":x.select(e,i));return gt.select(e,i,I,o.workspaceId)}),re="application/vnd.intent.question+json";function vt(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 bt(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(vt)&&(t.multiSelect===void 0||typeof t.multiSelect=="boolean")}function fn(e){if(!e||typeof e!="object")return!1;const t=e;if(t.type!=="resource")return!1;const o=t.resource;return typeof o=="object"&&o!==null&&o.mimeType===re}function St(e){if(!e||typeof e!="object")return null;const t=e,o=t.resource??t.metadata?.resource??t;if(!o||typeof o!="object"||o.mimeType!==re||typeof o.text!="string")return null;try{const r=JSON.parse(o.text);return bt(r)?r:null}catch{return null}}const ht="attachmentId",yt=/^tar-[0-9a-f]{12}$/;function se(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!=="resource")return null;const o=t.resource;return!o||typeof o!="object"||typeof o.uri!="string"||typeof o.mimeType!="string"||typeof o.text!="string"||o.name!==void 0&&typeof o.name!="string"?null:o}function ce(e){const t=se(e);if(!t)return null;try{const o=JSON.parse(t.text);if(!o||typeof o!="object"||Array.isArray(o))return null;const r=o[ht];return typeof r=="string"&&yt.test(r)?r:null}catch{return null}}function O(e){return Array.isArray(e)?`[${e.map(O).join(",")}]`:e&&typeof e=="object"?`{${Object.entries(e).sort(([o],[r])=>o<r?-1:o>r?1:0).map(([o,r])=>`${JSON.stringify(o)}:${O(r)}`).join(",")}}`:JSON.stringify(e)??"undefined"}function Pt(e){const t=se(e);if(!t)return null;if(t.mimeType===Ue)try{const r=JSON.parse(t.text);if(Qe(r))return`proposal:${r.kind}:${r.applyToolCallId??r.preview.title}:${O(r.payload)}`}catch{}const o=ce(e);return o?`nonce:${o}`:t.uri.length>0?`uri:${t.uri}:${t.text}`:null}function D(e){return ce(e)!==null}function Ct(e){const t=new Map,o=[];for(const r of e){const s=Pt(r);if(s===null){o.push(r);continue}const c=t.get(s);if(c===void 0){t.set(s,o.length),o.push(r);continue}D(r)&&!D(o[c])&&(o[c]=r)}return o}function ae(e,t){if(typeof t!="string"||t.length===0)return!1;const o=e?.dismissedQuestionsMessageId;return typeof o=="string"&&o===t}function Mt(e){if(e.skipped)return"(skipped)";const t=[...e.selectedLabels],o=e.imageBlocks?.length??0,r=o===0?"":o===1?h.chat_questionWizard_imagesAttached_label_one():h.chat_questionWizard_imagesAttached_label_many({count:Ye(o)});return(e.freeText||o>0)&&t.push(`(Other) ${[e.freeText,r].filter(Boolean).join(" ")}`),t.length===0?"(skipped)":t.join(", ")}function It(e){return e.map(t=>`Q: ${t.question.question}
|
|
2
2
|
A: ${Mt(t)}`).join(`
|
|
3
3
|
|
|
4
4
|
`)}const ie="question_answers";function Et(e){return{type:ie,answeredQuestionsMessageId:e}}function pn(e,t){const o=e.flatMap(r=>r.skipped?[]:r.imageBlocks??[]);return{text:It(e),messageMetadata:Et(t),...o.length>0?{imageBlocks:o}:{}}}function H(e){if(!e||typeof e!="object")return null;const t=e;if(t.type!==ie)return null;const o=t.answeredQuestionsMessageId;return typeof o=="string"&&o.length>0?o:null}function F(e){const t=H(e),o=t?[t]:[];if(e&&typeof e=="object"&&"mergedMessageMetadata"in e){const r=e.mergedMessageMetadata;if(Array.isArray(r))for(const s of r){const c=H(s);c&&!o.includes(c)&&o.push(c)}}return o}function le(e){if(!e)return[];const t=F(e.metadata);if(t.length)return t;const o=Array.isArray(e.contentBlocks)?e.contentBlocks:[];return[...new Set(o.flatMap(r=>r.type==="text"?F(r.messageMetadata):[]))]}function de(e){return e===void 0?{kind:"absent"}:e===""?{kind:"cleared"}:{kind:"set",messageId:e}}function W(e){return Ct(e.contentBlocks??[]).map(St).filter(t=>t!==null)}function ue(e,t){return e.some(o=>o.role==="user"&&le(o).includes(t))}function j(e,t){return e.some(o=>le({metadata:o.messageMetadata}).includes(t))}function wt(e,t,o=!1,r,s=[]){if(o||e.length===0)return null;const c=de(r);if(c.kind==="cleared")return null;if(c.kind==="set"){const a=e.find(l=>l.id===c.messageId);if(!a||a.role!=="assistant"||a.isStreaming||ue(e,c.messageId)||j(s,c.messageId))return null;const i=W(a);return i.length>0?{messageId:a.id,questions:i}:null}if(t)return null;for(let a=e.length-1;a>=0;a--){const i=e[a];if(i.role==="system")continue;if(i.role!=="assistant"||i.isStreaming||j(s,i.id))return null;const l=W(i);return l.length>0?{messageId:i.id,questions:l}:null}return null}function At(e){const t=wt(e.messages??[],je(qe(e)),!1,e.metadata?.pendingQuestionsMessageId);return!t||ae(e.metadata,t.messageId)?null:t}function kt(e){if(At(e)!==null)return!0;const t=de(e.metadata?.pendingQuestionsMessageId);if(t.kind!=="set")return!1;const o=e.messages??[];return o.some(r=>r.id===t.messageId)||ue(o,t.messageId)?!1:!ae(e.metadata,t.messageId)}const fe=0,L=1,_t=2,g=4,pe=6,Rt=[2,3,4,5,0,1],Ot=16777215,ge=689407,me=3199320,ve=16766474,be=16752394,T=16726832,Se=6607615,Lt=12540658,S=.9,Tt=.5,he=.25,Bt=.25,Nt={unassigned:{c:0,b:0,e:fe,s:0},idle:{c:Ot,b:.12,e:L,s:0},running:{c:ge,b:.6,e:g,s:Tt},unread:{c:Se,b:.4,e:g,s:he},complete:{c:me,b:.5,e:L,s:0},attention:{c:ve,b:.8,e:g,s:S},blocked:{c:be,b:.75,e:g,s:S},failed:{c:T,b:.7,e:g,s:S}},xt={e:fe,b:0,s:0,m:0,c:0},q=.35,Dt=.75,K=4;function Ht(e){const o=(Math.min(Math.max(e,1),K)-1)/(K-1);return q+o*(Dt-q)}const Ft={dark:xt,complete:{e:L,b:.25,s:0,m:0,c:me},unread:{e:g,b:.4,s:he,m:0,c:Se},question:{e:g,b:.8,s:S,m:0,c:ve},blocked:{e:g,b:.8,s:S,m:0,c:be},failed:{e:g,b:.8,s:S,m:0,c:T},recording:{e:g,b:.8,s:S,m:0,c:T},disconnected:{e:_t,b:.2,s:Bt,m:0,c:Lt}};function gn(e){const t=[];for(let o=0;o<pe;o+=1){const r=e[o]??"unassigned";t.push({id:Rt[o],...Nt[r]})}return t.sort((o,r)=>o.id-r.id),t}function mn(e){const t=e.kind==="running"?{e:g,b:.5,s:Ht(e.runningCount),m:0,c:ge}:Ft[e.kind];return{keys:{...t},ambient:{...t}}}function ye(e){return z(e)?.kind==="blocker"}function Pe(e){return z(e)?.kind==="discussion"||kt(e)}function Ce(e){return e.status===Re.Error}function $(e,t){const o=e.workspaceAgents.byWorkspaceId[t]?.foregroundAgentIds??[],r=e.agentSessions?.byAgentId??{},s=[];for(const c of o){const a=r[String(c)];a&&s.push(a)}return s}const Wt=new Set(["complete","pr_queued","pr_ready","pr_open","pr_merged"]);function Me(e){return e.activity==="agent_running"||e.displayStatus==="in_progress"}function Ie(e){return e.displayStatus!==void 0&&Wt.has(e.displayStatus)}function jt(e,t){return t.some(Ce)?"failed":t.some(ye)?"blocked":t.some(Pe)?"attention":Me(e)?"running":e.attention==="unread"?"unread":Ie(e)?"complete":"idle"}function qt(e){if(e.daemonHealth?.health==="down")return{keys:new Array(pe).fill("unassigned"),ambient:{kind:"disconnected"}};const t=p(e.workspace.workspaces).filter(f=>f.id!==Y&&V(f)),o=new Map;for(const f of t)o.set(f.id,f);const s=G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds??[]).map(f=>{const b=f===null?void 0:o.get(f);return b?jt(b,$(e,b.id)):"unassigned"});let c=!1,a=!1,i=!1,l=0,d=!1,I=!1;for(const f of t){const b=$(e,f.id);b.some(Ce)&&(c=!0),b.some(ye)&&(a=!0),b.some(Pe)&&(i=!0),Me(f)&&(l+=1),f.attention==="unread"&&(d=!0),Ie(f)&&(I=!0)}let u;return e.hardwareConsole.pttRecording===!0?u={kind:"recording"}:c?u={kind:"failed"}:a?u={kind:"blocked"}:i?u={kind:"question"}:d?u={kind:"unread"}:l>0?u={kind:"running",runningCount:l}:I?u={kind:"complete"}:u={kind:"dark"},{keys:s,ambient:u}}const vn=n.createSelector(e=>{const t=w.select(e);return t==="guest"||t==="member"}),bn=n.createSelector(e=>{const t=e.hardwareConsole;if(w.select(e)!=="owner"||!t?.isConsoleOwner||!t.enabledHydrationSucceeded||!t.actionMappingHydrationSucceeded)return null;const o=r=>Oe.filter((s,c)=>t.actionMappingByModel[r][c]==="cycle-open-windows");return JSON.stringify({enabled:t.enabled,keysByModel:{"creator-micro-2":o("creator-micro-2"),"codex-micro":o("codex-micro")}})}),Sn=n.createSelector(e=>e.hardwareConsole.enabled),hn=n.createSelector(e=>e.hardwareConsole.encoderBehavior),yn=n.createSelector(e=>e.hardwareConsole.encoderBehaviorSaveFailed),Pn=n.createSelector(e=>e.hardwareConsole.isConsoleOwner),Cn=n.createSelector(e=>e.hardwareConsole.promptPickerLimit),Mn=n.createSelector(e=>e.hardwareConsole.actionMappingByModel),In=n.createSelector(e=>e.hardwareConsole.cycleScopeByFamily),En=n.createSelector(e=>e.hardwareConsole.keyPins),wn=n.createSelector(e=>e.hardwareConsole.excludedWorkspaceIds),An=n.createSelector(e=>e.hardwareConsole.promptUsage),Kt=n.createSelector(e=>{const t=Z.select(e).filter(V);return G(e.hardwareConsole.keyPins,t,e.hardwareConsole.excludedWorkspaceIds)}),kn=n.createSelector((e,t)=>{const o=e.hardwareConsole.keyPins.indexOf(t);return o===-1?null:o}),_n=n.createSelector((e,t)=>{const o=Kt.select(e).indexOf(t);return o===-1?null:o}),Rn=n.createSelector(e=>e.hardwareConsole.radialPrompt),On=n.createSelector(e=>e.hardwareConsole.encoderHudWorkspaceId),Ln=n.createSelector(e=>{const t=e.hardwareConsole.encoderHudWorkspaceId;return t===null?null:Z.select(e).find(o=>o.id===t)?.title??null}),Tn=n.createSelector(e=>e.hardwareConsole.actionHudLabel),Bn=n.createSelector(e=>e.hardwareConsole.pttRecording),Nn=n.createSelector(e=>e.hardwareConsole.voiceTranscribing),xn=n.createSelector(e=>qt(e)),$t=n.createSelector((e,t,o)=>{const r=e.agentSessions.byAgentId[o];if(!r||r.workspaceId!==t)return null;const s=mt.select(e,o);if(!s?.length)return null;const c=Ke.select(e,o),a=r.model??x.select(e,c),i=e.daemonHealth.stats?.protocolVersion,l=Ze(i)?ze(a,null,s):a;return{key:JSON.stringify([t,o,c,l,s]),workspaceId:t,agentId:o,levels:s}}),Ut=n.createSelector(e=>{const t=e.hardwareConsole;if(!t.enabled||!t.isConsoleOwner||!t.encoderBehaviorHydrated||t.encoderBehavior!=="agent-effort")return null;const o=Te.select(e);if(!o||o===Y||$e.select(e,o))return null;const r=Be.select(e,o);return r?.type!=="agent"||!r.agentId||r.workspaceId&&r.workspaceId!==o?null:$t.select(e,o,r.agentId)}),Dn=n.createSelector(e=>{const t=e.hardwareConsole.encoderEffortFeedback;return!t||Ut.select(e)?.key!==t.target.key?null:(e.agentSessions.byAgentId[t.target.agentId]?.reasoningEffort??null)===t.effort?t:null}),Qt=[],Hn=n.createSelector((e,t)=>v(e.connections.workflows,t)),Fn=n.createSelector(e=>({writing:e.connections.keychainWritesPending>0,loadFailed:e.connections.keychainLoadError,saveFailed:e.connections.keychainSaveError})),Wn=n.createSelector(e=>e.connections.selfPublication),jn=n.createSelector(e=>e.connections.selfPublicationBusy),qn=n.createSelector((e,t)=>({guest:v(e.guestSessions.sessions,t),connection:v(e.connections.connections,t)})),Kn=n.createSelector(e=>p(e.connections.connections)),$n=n.createSelector(e=>p(e.connections.connections).filter(t=>t.daemonMode!=="node")),Un=n.createSelector(e=>p(e.connections.connections).filter(t=>!t.isLocal)),Qn=n.createSelector(e=>e.connections.hasReceivedList);n.createSelector((e,t)=>v(e.connections.connections,t)?.status??"not-open");const Yn=n.createSelector(e=>e.connections.windowBackendId),Vn=n.createSelector(e=>{const{connections:t,windowBackendId:o}=e.connections;return v(t,o)??null}),Gn=n.createSelector(e=>e.connections.pinnedVersion),zn=n.createSelector(e=>e.connections.connectedIds);n.createSelector(e=>e.connections.status);const Jn=n.createSelector(e=>e.connections.status==="connecting"||e.connections.openingIds.length>0);n.createSelector((e,t)=>e.connections.openingIds.includes(t));n.createSelector(e=>e.connections.error);const Zn=n.createSelector(e=>e.connections.certMismatch),Xn=n.createSelector(e=>{const t={};for(const[o,r]of Object.entries(e.connections.certWarnings))t[o]=p(r);return t}),er=n.createSelector(e=>{const t=e.connections.certWarnings[e.connections.windowBackendId];return t?p(t):Qt}),tr=n.createSelector(e=>{const{authRejected:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),or=n.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o}=e.connections;return t&&t.id===o?t:null}),nr=n.createSelector(e=>{const{protocolMismatch:t,windowBackendId:o,protocolMismatchModalDismissed:r}=e.connections;return!t||t.id!==o||r?null:t}),rr=n.createSelector(e=>e.connections.keychainSync),sr=n.createSelector(e=>e.connections.browserHost?.manageConnections===!0),cr=n.createSelector(e=>e.connections.browserHost?.backendBound===!1),ar=n.createSelector(e=>{const t=e.connections.browserHost;return t?.manageConnections===!0&&!t.tailcatAvailable}),Yt=[{id:"label-state-matrix",title:"Label states",states:["default","rest","hover","focus","error","required","optional","disabled","long-content","compact","zoom-200","light","dark"],themes:["light","dark","high-contrast"],viewport:"both"}];Ve({id:"label",source:"src/lib/components/ui/label/label.svelte",publicImport:"$lib/components/ui/label",legacyImports:[],exports:["Label","labelMetadata"],category:"primitive",owner:"007-B2",callers:["src/features/collaboration-auth/renderer/CollaborationSignInModal.svelte","src/features/host-membership/HostInvitationDialog.svelte","src/lib/component-catalog/renderers/ContentFieldCatalogPreview.svelte","src/lib/component-catalog/renderers/FieldPreviewCell.svelte","src/lib/component-catalog/renderers/ModalCatalogPreview.svelte","src/lib/components/GitLabConnectForm.svelte","src/lib/components/chat/secrets/SecretRequestCard.svelte","src/lib/components/debug/DebugPanel.svelte","src/lib/components/modals/InputDialog.svelte","src/lib/components/modals/ShareWorkspaceDialog.svelte","src/lib/components/modals/modal-polish.preview.svelte","src/lib/components/patterns/confirm/ConfirmRequestView.svelte","src/lib/components/patterns/form/FormField.svelte","src/lib/components/patterns/settings/SettingsFieldRow.svelte","src/lib/components/patterns/settings/custom-controls.ts","src/lib/components/workspace/initializer/AddRemoteSetupModal.svelte","src/lib/components/workspace/initializer/SetupScriptTrigger.svelte","src/lib/components/workspace/sidebar/context-picker/BrowserUrlPicker.svelte"],replacement:null,characterizationTest:"src/lib/components/ui/label/label.test.ts",removalGate:"Retain while exported and association and fixture tests pass.",dynamicImports:[],fixtures:Yt});const Vt=[{id:"content-dialog",title:"Content dialog",states:["reading","progress","error","long-content"],themes:["light","dark"],viewport:"both"},{id:"confirm-service",title:"Confirm service",states:["confirm","prompt","alert","queued","busy","reduced-motion"],themes:["light","dark","high-contrast"],viewport:"both",reducedMotion:!0},{id:"form-dialog",title:"Form dialog",states:["default","busy","invalid"],themes:["light","dark"],viewport:"both"},{id:"destructive-confirm",title:"Destructive confirm",states:["default","busy"],themes:["light","dark"],viewport:"both"}];Ge({id:"confirm",source:"src/lib/components/patterns/confirm/index.ts",publicImport:"$lib/components/patterns/confirm",exports:["ConfirmHost","ConfirmRequestView","DestructiveConfirm","FormDialog","ContentDialog","alert","confirm","prompt"],owner:"design-system",fixtures:Vt,useWhen:["Blocking an action until the user confirms, enters one value, or acknowledges a message.","Building a dialog whose content is a form with standard actions.","Showing a selection, progress/result, or reading dialog with shared layout and focus ownership."],dontUseWhen:["Reporting non-blocking status; use the notification service instead.","Building a multi-step flow; use a dedicated screen or wizard composition."],replaces:["Browser confirm, prompt, and alert APIs.","InputDialog, MessageDialog, and one-off destructive confirmation markup."]});function Ee(e){const t=e.trim();if(!t.startsWith("tc"))return!1;const o=t.slice(2);if(o.length<50||o.length%4===1||!/^[A-Za-z0-9_-]+$/.test(o))return!1;const r=atob(o.slice(0,4).replace(/-/g,"+").replace(/_/g,"/")).charCodeAt(0);return r>=161&&r<=187||r===191}function ir(e){if(!e||typeof e!="object")return null;const t=e;for(const o of[t.collaborationName,t.prettyHostname,t.hostname])if(typeof o=="string"&&E(o))return E(o);return null}function lr(e){return[...E(e)].length<=100&&!/\p{Cc}/u.test(e)}function E(e){return e.replace(/^\p{White_Space}+|\p{White_Space}+$/gu,"")}function Gt(e){const t=e.label.trim(),o=e.host&&e.port!=null?`${e.host}:${e.port}`:"";return(t&&t!==o?t:"")||e.hostname?.trim()||t||o}function zt(e){const t=e.machineName?.trim();return t?h.settings_devices_localMachine_label({name:t}):h.layout_daemonStatus_localConnection_label()}function dr(e,t){if(e.isLocal)return zt(e);const o=Gt(e);return e.id===t?h.settings_devices_connectedBackend_label({name:o}):o}function Jt(e){const t=E(e.hostname??"");return t||(Ee(e.label)?h.connection_unknownHost_label():e.label)}function ur(e){const t=e.label.trim();return!t||Ee(t)?null:t!==Jt(e)?t:null}export{Ro as $,pe as A,k as B,Tn as C,tr as D,or as E,P as F,mt as G,rn as H,sn as I,nn as J,A as K,Xo as L,en as M,go as N,$n as O,nt as P,Xn as Q,zn as R,Zn as S,qn as T,Hn as U,Kn as V,Qn as W,Vn as X,er as Y,Yn as Z,an as _,qt as a,io as a$,$t as a0,Dn as a1,Ut as a2,On as a3,Ln as a4,xo as a5,Mn as a6,In as a7,Sn as a8,hn as a9,pt as aA,dn as aB,Lo as aC,ln as aD,zo as aE,cr as aF,So as aG,uo as aH,tt as aI,Io as aJ,Gn as aK,Do as aL,Cn as aM,nr as aN,vo as aO,Wo as aP,Fo as aQ,yo as aR,Po as aS,Bo as aT,No as aU,ho as aV,mo as aW,gt as aX,cn as aY,ao as aZ,et as a_,yn as aa,wn as ab,En as ac,Kt as ad,An as ae,Rn as af,xn as ag,ct as ah,Zo as ai,sr as aj,ar as ak,To as al,bo as am,Jn as an,Pn as ao,tn as ap,X as aq,te as ar,Fn as as,rr as at,ot as au,fo as av,on as aw,Jo as ax,ft as ay,un as az,pn as b,Co as b0,Mo as b1,lo as b2,ko as b3,_o as b4,jo as b5,Uo as b6,Yo as b7,Qo as b8,Vo as b9,$o as ba,Ho as bb,Ko as bc,qo as bd,Go as be,wo as bf,Eo as bg,N as bh,Ao as bi,Bn as bj,Oo as bk,Un as bl,x as bm,Wn as bn,jn as bo,vn as bp,Nn as bq,bn as br,kn as bs,_n as bt,kt as bu,At as bv,Ze as bw,lr as bx,ze as c,mn as d,gn as e,de as f,ir as g,Ct as h,wt as i,Gt as j,ur as k,Jt as l,dr as m,le as n,st as o,St as p,B as q,po as r,ae as s,fn as t,ue as u,j as v,Ee as w,_ as x,E as y,Xe as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./yZ5s7S5S.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./D46WSk8U.js";import{s as ke}from"./Cb1eroFO.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./Dfbagr79.js";import{A as xe}from"./
|
|
1
|
+
import{t as le,bq as u,a_ as D,by as ce,b as de}from"./yZ5s7S5S.js";import{bs as ve,ca as fe,aD as e,a5 as H,bS as ue,bA as L,bH as K,b_ as S,W as T,bn as ge,bV as P,c9 as x,aA as g,a7 as me,ay as he,bl as pe,bO as be,aB as F}from"./B8o4lNgr.js";import{k as X,s as c,h as _e,l as R}from"./D46WSk8U.js";import{s as ke}from"./Cb1eroFO.js";import{b as we}from"./D2g8BuR1.js";import{t as j}from"./Dfbagr79.js";import{A as xe}from"./CEOoXkJa.js";import{y as ye}from"./gMye6h60.js";function We(y){const{itemCount:a,maxVisible:d,availableWidth:r,surface:s,overlap:b,overflowOverlap:v}=y;if(r<=0)return 0;const _=s-b,m=Math.min(a,Math.max(0,d)),I=i=>i===0?0:s+(i-1)*_;if(a<=m&&I(a)<=r)return a;for(let i=m;i>=0;i-=1){const A=a-i;if(I(i)+(A>0?y.measureOverflowText(A)-(i>0?v:0):0)<=r)return i}return 0}function Ie(y,a=r=>requestAnimationFrame(r),d=r=>cancelAnimationFrame(r)){let r,s;return{set(b){if(r=b,s!==void 0)return;let v=!1;const _=a(()=>{v=!0,s=void 0;const m=r;r=void 0,y(m)});v||(s=_)},cancel(){s!==void 0&&(d(s),s=void 0),r=void 0}}}const Ae=20,Ce=12;let O,J;const Q=new Map;var Te=F('<span data-agent-avatar-stack-item=""><!></span>'),Oe=F('<span class="agent-avatar-stack-track svelte-1nk9fhe"></span>'),Ve=F('<span class="agent-avatar-stack-overflow svelte-1nk9fhe" data-agent-avatar-overflow=""> </span>'),Me=F('<span data-agent-avatar-stack="" data-agent-avatar-stack-overlap="later-on-top"><!> <!></span>');function Se(y,a){if(new.target)return le({component:Se,...y});ve(a,!0);let d=u(a,"items",7),r=u(a,"maxVisible",7,3),s=u(a,"adaptive",7,!1),b=u(a,"align",7,"end"),v=u(a,"variant",7,"card-stack"),_=u(a,"interactive",7,!1),m=u(a,"overflowId",7),I=u(a,"overflowTestId",7),i=u(a,"itemContent",7),A=u(a,"class",7,""),W=P(void 0),z=P(void 0);const h=x(()=>ye[v()]),U=x(()=>s()&&e(z)!==void 0?We({itemCount:d().length,maxVisible:r(),availableWidth:e(z),surface:e(h).surface,overlap:e(h).overlap,overflowOverlap:e(h).overlap,measureOverflowText:t=>Math.max(e(h).surface,$(t)+Ce)}):void 0),Y=x(()=>Math.min(d().length,Math.max(0,s()?e(U)??r():r()))),k=x(()=>d().slice(0,e(Y))),E=x(()=>Math.max(0,d().length-e(k).length)),q=x(()=>e(h).surface-e(h).overlap),Z=x(()=>e(k).length===0?0:e(h).surface+(e(k).length-1)*e(q));function $(t){const n=`+${j(t)}`,o=Q.get(n);if(o!==void 0)return o;if(O===void 0&&(O=document.createElement("canvas").getContext("2d")),!O||!e(W))return Ae;J??=`500 12px ${getComputedStyle(e(W)).fontFamily}`,O.font=J;const l=O.measureText(n).width;return Q.set(n,l),l}fe(()=>{if(!s()||!e(W)||typeof ResizeObserver>"u")return;const t=Ie(o=>{K(z,o,!0)}),n=new ResizeObserver(o=>{const l=o[o.length-1];t.set(l.borderBoxSize?.[0]?.inlineSize??l.contentRect.width)});return n.observe(e(W)),()=>{n.disconnect(),t.cancel()}});var ee={get items(){return d()},set items(t){d(t),g()},get maxVisible(){return r()},set maxVisible(t=3){r(t),g()},get adaptive(){return s()},set adaptive(t=!1){s(t),g()},get align(){return b()},set align(t="end"){b(t),g()},get variant(){return v()},set variant(t="card-stack"){v(t),g()},get interactive(){return _()},set interactive(t=!1){_(t),g()},get overflowId(){return m()},set overflowId(t){m(t),g()},get overflowTestId(){return I()},set overflowTestId(t){I(t),g()},get itemContent(){return i()},set itemContent(t){i(t),g()},get class(){return A()},set class(t=""){A(t),g()},$set:ce,$on:(t,n)=>de(a,t,n)},p=Me();let N;var B=H(p);{var te=t=>{var n=Oe();let o;_e(n,23,()=>e(k),l=>l.key,(l,w,V)=>{var f=Te();let G;var re=H(f);{var se=C=>{var M=me(),oe=he(M);ke(oe,i,()=>e(w)),T(C,M)},ie=C=>{{let M=x(()=>e(w).state??"idle");xe(C,{get agentId(){return e(w).agentId},get specialist(){return e(w).specialist},get icon(){return e(w).icon},get state(){return e(M)},get variant(){return v()},class:"agent-avatar-stack-surface"})}};D(re,C=>{i()?C(se):C(ie,-1)})}L(f),S(()=>{G=X(f,1,"agent-avatar-stack-item svelte-1nk9fhe",null,G,{"agent-avatar-stack-item--before-overflow":e(E)>0&&e(V)===e(k).length-1}),R(f,`inset-inline-start: ${e(V)*e(q)}px; z-index: ${e(V)+1};`),c(f,"data-agent-avatar-stack-index",e(V)),c(f,"data-agent-avatar-stack-key",e(w).key),c(f,"data-agent-avatar-stack-agent-id",e(w).agentId),c(f,"data-agent-avatar-stack-specialist",e(w).specialist??void 0),c(f,"aria-hidden",_()?void 0:"true")}),T(l,f)}),L(n),S(()=>o=R(n,"",o,{width:`${e(Z)}px`})),T(t,n)};D(B,t=>{e(k).length>0&&t(te)})}var ae=ue(B,2);{var ne=t=>{var n=Ve(),o=pe(n);S(l=>{c(n,"id",m()),R(n,`margin-inline-start: ${e(k).length>0?-e(h).overlap:0}px; z-index: ${e(k).length+1};`),c(n,"data-testid",I()),be(o,`+${l??""}`)},[()=>j(e(E))]),T(t,n)};D(ae,t=>{e(E)>0&&t(ne)})}return L(p),we(p,t=>K(W,t),()=>e(W)),S(()=>{N=X(p,1,`agent-avatar-stack ${A()??""}`,"svelte-1nk9fhe",N,{"agent-avatar-stack--adaptive":s(),"agent-avatar-stack--start":b()==="start"}),c(p,"data-agent-avatar-stack-align",b()),c(p,"data-avatar-variant",v()),c(p,"data-agent-avatar-stack-clear-space",e(h).ring),c(p,"aria-hidden",!_()&&!m()?"true":void 0)}),T(y,p),ge(ee)}export{Se as A};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./yZ5s7S5S.js";import{g as s}from"./Cc7p6my_.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
1
|
+
var Mk=Object.defineProperty;var xk=(t,e,r)=>e in t?Mk(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var Yr=(t,e,r)=>xk(t,typeof e!="symbol"?e+"":e,r);import{_ as dt}from"./yZ5s7S5S.js";import{g as s}from"./CKI5DKl7.js";var Gk=Object.create,pc=Object.defineProperty,Fk=Object.getOwnPropertyDescriptor,og=Object.getOwnPropertyNames,zk=Object.getPrototypeOf,jk=Object.prototype.hasOwnProperty,o=s((t,e)=>pc(t,"name",{value:e,configurable:!0}),"__name"),Bk=s((t,e)=>s(function(){return t&&(e=(0,t[og(t)[0]])(t=0)),e},"__init"),"__esm"),X=s((t,e)=>s(function(){return e||(0,t[og(t)[0]])((e={exports:{}}).exports,e),e.exports},"__require"),"__commonJS"),mn=s((t,e)=>{for(var r in e)pc(t,r,{get:e[r],enumerable:!0})},"__export"),Lf=s((t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of og(e))!jk.call(t,a)&&a!==r&&pc(t,a,{get:s(()=>e[a],"get"),enumerable:!(n=Fk(e,a))||n.enumerable});return t},"__copyProps"),Sd=s((t,e,r)=>(Lf(t,e,"default"),r&&Lf(r,e,"default")),"__reExport"),lg=s((t,e,r)=>(r=t!=null?Gk(zk(t)):{},Lf(e||!t||!t.__esModule?pc(r,"default",{value:t,enumerable:!0}):r,t)),"__toESM"),ug=s(t=>Lf(pc({},"__esModule",{value:!0}),t),"__toCommonJS"),_d={};mn(_d,{AnnotatedTextEdit:s(()=>wr,"AnnotatedTextEdit"),ChangeAnnotation:s(()=>Wn,"ChangeAnnotation"),ChangeAnnotationIdentifier:s(()=>rt,"ChangeAnnotationIdentifier"),CodeAction:s(()=>iy,"CodeAction"),CodeActionContext:s(()=>ay,"CodeActionContext"),CodeActionKind:s(()=>ny,"CodeActionKind"),CodeActionTriggerKind:s(()=>$u,"CodeActionTriggerKind"),CodeDescription:s(()=>Dh,"CodeDescription"),CodeLens:s(()=>sy,"CodeLens"),Color:s(()=>Rf,"Color"),ColorInformation:s(()=>Nh,"ColorInformation"),ColorPresentation:s(()=>Ph,"ColorPresentation"),Command:s(()=>Kn,"Command"),CompletionItem:s(()=>Wh,"CompletionItem"),CompletionItemKind:s(()=>Fh,"CompletionItemKind"),CompletionItemLabelDetails:s(()=>Kh,"CompletionItemLabelDetails"),CompletionItemTag:s(()=>jh,"CompletionItemTag"),CompletionList:s(()=>Vh,"CompletionList"),CreateFile:s(()=>Zo,"CreateFile"),DeleteFile:s(()=>el,"DeleteFile"),Diagnostic:s(()=>gu,"Diagnostic"),DiagnosticRelatedInformation:s(()=>$f,"DiagnosticRelatedInformation"),DiagnosticSeverity:s(()=>Oh,"DiagnosticSeverity"),DiagnosticTag:s(()=>Lh,"DiagnosticTag"),DocumentHighlight:s(()=>Xh,"DocumentHighlight"),DocumentHighlightKind:s(()=>Jh,"DocumentHighlightKind"),DocumentLink:s(()=>ly,"DocumentLink"),DocumentSymbol:s(()=>ry,"DocumentSymbol"),DocumentUri:s(()=>Sh,"DocumentUri"),EOL:s(()=>DN,"EOL"),FoldingRange:s(()=>kh,"FoldingRange"),FoldingRangeKind:s(()=>wh,"FoldingRangeKind"),FormattingOptions:s(()=>oy,"FormattingOptions"),Hover:s(()=>qh,"Hover"),InlayHint:s(()=>gy,"InlayHint"),InlayHintKind:s(()=>Cf,"InlayHintKind"),InlayHintLabelPart:s(()=>bf,"InlayHintLabelPart"),InlineCompletionContext:s(()=>Ey,"InlineCompletionContext"),InlineCompletionItem:s(()=>Ty,"InlineCompletionItem"),InlineCompletionList:s(()=>Ry,"InlineCompletionList"),InlineCompletionTriggerKind:s(()=>$y,"InlineCompletionTriggerKind"),InlineValueContext:s(()=>yy,"InlineValueContext"),InlineValueEvaluatableExpression:s(()=>hy,"InlineValueEvaluatableExpression"),InlineValueText:s(()=>py,"InlineValueText"),InlineValueVariableLookup:s(()=>my,"InlineValueVariableLookup"),InsertReplaceEdit:s(()=>Bh,"InsertReplaceEdit"),InsertTextFormat:s(()=>zh,"InsertTextFormat"),InsertTextMode:s(()=>Uh,"InsertTextMode"),Location:s(()=>yu,"Location"),LocationLink:s(()=>Ih,"LocationLink"),MarkedString:s(()=>Ru,"MarkedString"),MarkupContent:s(()=>tl,"MarkupContent"),MarkupKind:s(()=>Ef,"MarkupKind"),OptionalVersionedTextDocumentIdentifier:s(()=>Tu,"OptionalVersionedTextDocumentIdentifier"),ParameterInformation:s(()=>Hh,"ParameterInformation"),Position:s(()=>ue,"Position"),Range:s(()=>ne,"Range"),RenameFile:s(()=>Qo,"RenameFile"),SelectedCompletionInfo:s(()=>Ay,"SelectedCompletionInfo"),SelectionRange:s(()=>uy,"SelectionRange"),SemanticTokenModifiers:s(()=>fy,"SemanticTokenModifiers"),SemanticTokenTypes:s(()=>cy,"SemanticTokenTypes"),SemanticTokens:s(()=>dy,"SemanticTokens"),SignatureInformation:s(()=>Yh,"SignatureInformation"),StringValue:s(()=>vy,"StringValue"),SymbolInformation:s(()=>ey,"SymbolInformation"),SymbolKind:s(()=>Zh,"SymbolKind"),SymbolTag:s(()=>Qh,"SymbolTag"),TextDocument:s(()=>by,"TextDocument"),TextDocumentEdit:s(()=>vu,"TextDocumentEdit"),TextDocumentIdentifier:s(()=>Mh,"TextDocumentIdentifier"),TextDocumentItem:s(()=>Gh,"TextDocumentItem"),TextEdit:s(()=>lr,"TextEdit"),URI:s(()=>Tf,"URI"),VersionedTextDocumentIdentifier:s(()=>xh,"VersionedTextDocumentIdentifier"),WorkspaceChange:s(()=>LN,"WorkspaceChange"),WorkspaceEdit:s(()=>Af,"WorkspaceEdit"),WorkspaceFolder:s(()=>Cy,"WorkspaceFolder"),WorkspaceSymbol:s(()=>ty,"WorkspaceSymbol"),integer:s(()=>_h,"integer"),uinteger:s(()=>hu,"uinteger")});var Sh,Tf,_h,hu,ue,ne,yu,Ih,Rf,Nh,Ph,wh,kh,$f,Oh,Lh,Dh,gu,Kn,lr,Wn,rt,wr,vu,Zo,Qo,el,Af,nu,Ym,LN,Mh,xh,Tu,Gh,Ef,tl,Fh,zh,jh,Bh,Uh,Kh,Wh,Vh,Ru,qh,Hh,Yh,Jh,Xh,Zh,Qh,ey,ty,ry,ny,$u,ay,iy,sy,oy,ly,uy,cy,fy,dy,py,my,hy,yy,Cf,bf,gy,vy,Ty,Ry,$y,Ay,Ey,Cy,DN,by,n_,b,mc=Bk({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Sh||(Sh={})),(function(a){function i(l){return typeof l=="string"}s(i,"is"),o(i,"is"),a.is=i})(Tf||(Tf={})),(function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(_h||(_h={})),(function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(l){return typeof l=="number"&&a.MIN_VALUE<=l&&l<=a.MAX_VALUE}s(i,"is"),o(i,"is"),a.is=i})(hu||(hu={})),(function(a){function i(c,u){return c===Number.MAX_VALUE&&(c=hu.MAX_VALUE),u===Number.MAX_VALUE&&(u=hu.MAX_VALUE),{line:c,character:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&b.uinteger(u.line)&&b.uinteger(u.character)}s(l,"is"),o(l,"is"),a.is=l})(ue||(ue={})),(function(a){function i(c,u,f,d){if(b.uinteger(c)&&b.uinteger(u)&&b.uinteger(f)&&b.uinteger(d))return{start:ue.create(c,u),end:ue.create(f,d)};if(ue.is(c)&&ue.is(u))return{start:c,end:u};throw new Error(`Range#create called with invalid arguments[${c}, ${u}, ${f}, ${d}]`)}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ue.is(u.start)&&ue.is(u.end)}s(l,"is"),o(l,"is"),a.is=l})(ne||(ne={})),(function(a){function i(c,u){return{uri:c,range:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(b.string(u.uri)||b.undefined(u.uri))}s(l,"is"),o(l,"is"),a.is=l})(yu||(yu={})),(function(a){function i(c,u,f,d){return{targetUri:c,targetRange:u,targetSelectionRange:f,originSelectionRange:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.targetRange)&&b.string(u.targetUri)&&ne.is(u.targetSelectionRange)&&(ne.is(u.originSelectionRange)||b.undefined(u.originSelectionRange))}s(l,"is"),o(l,"is"),a.is=l})(Ih||(Ih={})),(function(a){function i(c,u,f,d){return{red:c,green:u,blue:f,alpha:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.numberRange(u.red,0,1)&&b.numberRange(u.green,0,1)&&b.numberRange(u.blue,0,1)&&b.numberRange(u.alpha,0,1)}s(l,"is"),o(l,"is"),a.is=l})(Rf||(Rf={})),(function(a){function i(c,u){return{range:c,color:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ne.is(u.range)&&Rf.is(u.color)}s(l,"is"),o(l,"is"),a.is=l})(Nh||(Nh={})),(function(a){function i(c,u,f){return{label:c,textEdit:u,additionalTextEdits:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.undefined(u.textEdit)||lr.is(u))&&(b.undefined(u.additionalTextEdits)||b.typedArray(u.additionalTextEdits,lr.is))}s(l,"is"),o(l,"is"),a.is=l})(Ph||(Ph={})),(function(a){a.Comment="comment",a.Imports="imports",a.Region="region"})(wh||(wh={})),(function(a){function i(c,u,f,d,p,m){const g={startLine:c,endLine:u};return b.defined(f)&&(g.startCharacter=f),b.defined(d)&&(g.endCharacter=d),b.defined(p)&&(g.kind=p),b.defined(m)&&(g.collapsedText=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.uinteger(u.startLine)&&b.uinteger(u.startLine)&&(b.undefined(u.startCharacter)||b.uinteger(u.startCharacter))&&(b.undefined(u.endCharacter)||b.uinteger(u.endCharacter))&&(b.undefined(u.kind)||b.string(u.kind))}s(l,"is"),o(l,"is"),a.is=l})(kh||(kh={})),(function(a){function i(c,u){return{location:c,message:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&yu.is(u.location)&&b.string(u.message)}s(l,"is"),o(l,"is"),a.is=l})($f||($f={})),(function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4})(Oh||(Oh={})),(function(a){a.Unnecessary=1,a.Deprecated=2})(Lh||(Lh={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&b.string(c.href)}s(i,"is"),o(i,"is"),a.is=i})(Dh||(Dh={})),(function(a){function i(c,u,f,d,p,m){let g={range:c,message:u};return b.defined(f)&&(g.severity=f),b.defined(d)&&(g.code=d),b.defined(p)&&(g.source=p),b.defined(m)&&(g.relatedInformation=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){var u;let f=c;return b.defined(f)&&ne.is(f.range)&&b.string(f.message)&&(b.number(f.severity)||b.undefined(f.severity))&&(b.integer(f.code)||b.string(f.code)||b.undefined(f.code))&&(b.undefined(f.codeDescription)||b.string((u=f.codeDescription)===null||u===void 0?void 0:u.href))&&(b.string(f.source)||b.undefined(f.source))&&(b.undefined(f.relatedInformation)||b.typedArray(f.relatedInformation,$f.is))}s(l,"is"),o(l,"is"),a.is=l})(gu||(gu={})),(function(a){function i(c,u,...f){let d={title:c,command:u};return b.defined(f)&&f.length>0&&(d.arguments=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.title)&&b.string(u.command)}s(l,"is"),o(l,"is"),a.is=l})(Kn||(Kn={})),(function(a){function i(f,d){return{range:f,newText:d}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d){return{range:{start:f,end:f},newText:d}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f){return{range:f,newText:""}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return b.objectLiteral(d)&&b.string(d.newText)&&ne.is(d.range)}s(u,"is"),o(u,"is"),a.is=u})(lr||(lr={})),(function(a){function i(c,u,f){const d={label:c};return u!==void 0&&(d.needsConfirmation=u),f!==void 0&&(d.description=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&b.string(u.label)&&(b.boolean(u.needsConfirmation)||u.needsConfirmation===void 0)&&(b.string(u.description)||u.description===void 0)}s(l,"is"),o(l,"is"),a.is=l})(Wn||(Wn={})),(function(a){function i(l){const c=l;return b.string(c)}s(i,"is"),o(i,"is"),a.is=i})(rt||(rt={})),(function(a){function i(f,d,p){return{range:f,newText:d,annotationId:p}}s(i,"replace"),o(i,"replace"),a.replace=i;function l(f,d,p){return{range:{start:f,end:f},newText:d,annotationId:p}}s(l,"insert"),o(l,"insert"),a.insert=l;function c(f,d){return{range:f,newText:"",annotationId:d}}s(c,"del"),o(c,"del"),a.del=c;function u(f){const d=f;return lr.is(d)&&(Wn.is(d.annotationId)||rt.is(d.annotationId))}s(u,"is"),o(u,"is"),a.is=u})(wr||(wr={})),(function(a){function i(c,u){return{textDocument:c,edits:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&Tu.is(u.textDocument)&&Array.isArray(u.edits)}s(l,"is"),o(l,"is"),a.is=l})(vu||(vu={})),(function(a){function i(c,u,f){let d={kind:"create",uri:c};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="create"&&b.string(u.uri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Zo||(Zo={})),(function(a){function i(c,u,f,d){let p={kind:"rename",oldUri:c,newUri:u};return f!==void 0&&(f.overwrite!==void 0||f.ignoreIfExists!==void 0)&&(p.options=f),d!==void 0&&(p.annotationId=d),p}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="rename"&&b.string(u.oldUri)&&b.string(u.newUri)&&(u.options===void 0||(u.options.overwrite===void 0||b.boolean(u.options.overwrite))&&(u.options.ignoreIfExists===void 0||b.boolean(u.options.ignoreIfExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(Qo||(Qo={})),(function(a){function i(c,u,f){let d={kind:"delete",uri:c};return u!==void 0&&(u.recursive!==void 0||u.ignoreIfNotExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&u.kind==="delete"&&b.string(u.uri)&&(u.options===void 0||(u.options.recursive===void 0||b.boolean(u.options.recursive))&&(u.options.ignoreIfNotExists===void 0||b.boolean(u.options.ignoreIfNotExists)))&&(u.annotationId===void 0||rt.is(u.annotationId))}s(l,"is"),o(l,"is"),a.is=l})(el||(el={})),(function(a){function i(l){let c=l;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(u=>b.string(u.kind)?Zo.is(u)||Qo.is(u)||el.is(u):vu.is(u)))}s(i,"is"),o(i,"is"),a.is=i})(Af||(Af={})),nu=(t=class{constructor(i,l){this.edits=i,this.changeAnnotations=l}insert(i,l,c){let u,f;if(c===void 0?u=lr.insert(i,l):rt.is(c)?(f=c,u=wr.insert(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.insert(i,l,f)),this.edits.push(u),f!==void 0)return f}replace(i,l,c){let u,f;if(c===void 0?u=lr.replace(i,l):rt.is(c)?(f=c,u=wr.replace(i,l,c)):(this.assertChangeAnnotations(this.changeAnnotations),f=this.changeAnnotations.manage(c),u=wr.replace(i,l,f)),this.edits.push(u),f!==void 0)return f}delete(i,l){let c,u;if(l===void 0?c=lr.del(i):rt.is(l)?(u=l,c=wr.del(i,l)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(l),c=wr.del(i,u)),this.edits.push(c),u!==void 0)return u}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),o(t,"TextEditChangeImpl"),t),Ym=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,l){let c;if(rt.is(i)?c=i:(c=this.nextId(),l=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(l===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=l,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),o(e,"ChangeAnnotations"),e),LN=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new Ym(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(l=>{if(vu.is(l)){const c=new nu(l.edits,this._changeAnnotations);this._textEditChanges[l.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(l=>{const c=new nu(i.changes[l]);this._textEditChanges[l]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(Tu.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const l={uri:i.uri,version:i.version};let c=this._textEditChanges[l.uri];if(!c){const u=[],f={textDocument:l,edits:u};this._workspaceEdit.documentChanges.push(f),c=new nu(u,this._changeAnnotations),this._textEditChanges[l.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let l=this._textEditChanges[i];if(!l){let c=[];this._workspaceEdit.changes[i]=c,l=new nu(c),this._textEditChanges[i]=l}return l}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new Ym,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=Zo.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=Zo.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}renameFile(i,l,c,u){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let f;Wn.is(c)||rt.is(c)?f=c:u=c;let d,p;if(f===void 0?d=Qo.create(i,l,u):(p=rt.is(f)?f:this._changeAnnotations.manage(f),d=Qo.create(i,l,u,p)),this._workspaceEdit.documentChanges.push(d),p!==void 0)return p}deleteFile(i,l,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;Wn.is(l)||rt.is(l)?u=l:c=l;let f,d;if(u===void 0?f=el.create(i,c):(d=rt.is(u)?u:this._changeAnnotations.manage(u),f=el.create(i,c,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}},s(r,"WorkspaceChange"),o(r,"WorkspaceChange"),r),(function(a){function i(c){return{uri:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)}s(l,"is"),o(l,"is"),a.is=l})(Mh||(Mh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.integer(u.version)}s(l,"is"),o(l,"is"),a.is=l})(xh||(xh={})),(function(a){function i(c,u){return{uri:c,version:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&(u.version===null||b.integer(u.version))}s(l,"is"),o(l,"is"),a.is=l})(Tu||(Tu={})),(function(a){function i(c,u,f,d){return{uri:c,languageId:u,version:f,text:d}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.string(u.uri)&&b.string(u.languageId)&&b.integer(u.version)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(Gh||(Gh={})),(function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(l){const c=l;return c===a.PlainText||c===a.Markdown}s(i,"is"),o(i,"is"),a.is=i})(Ef||(Ef={})),(function(a){function i(l){const c=l;return b.objectLiteral(l)&&Ef.is(c.kind)&&b.string(c.value)}s(i,"is"),o(i,"is"),a.is=i})(tl||(tl={})),(function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25})(Fh||(Fh={})),(function(a){a.PlainText=1,a.Snippet=2})(zh||(zh={})),(function(a){a.Deprecated=1})(jh||(jh={})),(function(a){function i(c,u,f){return{newText:c,insert:u,replace:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u&&b.string(u.newText)&&ne.is(u.insert)&&ne.is(u.replace)}s(l,"is"),o(l,"is"),a.is=l})(Bh||(Bh={})),(function(a){a.asIs=1,a.adjustIndentation=2})(Uh||(Uh={})),(function(a){function i(l){const c=l;return c&&(b.string(c.detail)||c.detail===void 0)&&(b.string(c.description)||c.description===void 0)}s(i,"is"),o(i,"is"),a.is=i})(Kh||(Kh={})),(function(a){function i(l){return{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Wh||(Wh={})),(function(a){function i(l,c){return{items:l||[],isIncomplete:!!c}}s(i,"create"),o(i,"create"),a.create=i})(Vh||(Vh={})),(function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),o(i,"fromPlainText"),a.fromPlainText=i;function l(c){const u=c;return b.string(u)||b.objectLiteral(u)&&b.string(u.language)&&b.string(u.value)}s(l,"is"),o(l,"is"),a.is=l})(Ru||(Ru={})),(function(a){function i(l){let c=l;return!!c&&b.objectLiteral(c)&&(tl.is(c.contents)||Ru.is(c.contents)||b.typedArray(c.contents,Ru.is))&&(l.range===void 0||ne.is(l.range))}s(i,"is"),o(i,"is"),a.is=i})(qh||(qh={})),(function(a){function i(l,c){return c?{label:l,documentation:c}:{label:l}}s(i,"create"),o(i,"create"),a.create=i})(Hh||(Hh={})),(function(a){function i(l,c,...u){let f={label:l};return b.defined(c)&&(f.documentation=c),b.defined(u)?f.parameters=u:f.parameters=[],f}s(i,"create"),o(i,"create"),a.create=i})(Yh||(Yh={})),(function(a){a.Text=1,a.Read=2,a.Write=3})(Jh||(Jh={})),(function(a){function i(l,c){let u={range:l};return b.number(c)&&(u.kind=c),u}s(i,"create"),o(i,"create"),a.create=i})(Xh||(Xh={})),(function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26})(Zh||(Zh={})),(function(a){a.Deprecated=1})(Qh||(Qh={})),(function(a){function i(l,c,u,f,d){let p={name:l,kind:c,location:{uri:f,range:u}};return d&&(p.containerName=d),p}s(i,"create"),o(i,"create"),a.create=i})(ey||(ey={})),(function(a){function i(l,c,u,f){return f!==void 0?{name:l,kind:c,location:{uri:u,range:f}}:{name:l,kind:c,location:{uri:u}}}s(i,"create"),o(i,"create"),a.create=i})(ty||(ty={})),(function(a){function i(c,u,f,d,p,m){let g={name:c,detail:u,kind:f,range:d,selectionRange:p};return m!==void 0&&(g.children=m),g}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.name)&&b.number(u.kind)&&ne.is(u.range)&&ne.is(u.selectionRange)&&(u.detail===void 0||b.string(u.detail))&&(u.deprecated===void 0||b.boolean(u.deprecated))&&(u.children===void 0||Array.isArray(u.children))&&(u.tags===void 0||Array.isArray(u.tags))}s(l,"is"),o(l,"is"),a.is=l})(ry||(ry={})),(function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"})(ny||(ny={})),(function(a){a.Invoked=1,a.Automatic=2})($u||($u={})),(function(a){function i(c,u,f){let d={diagnostics:c};return u!=null&&(d.only=u),f!=null&&(d.triggerKind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.typedArray(u.diagnostics,gu.is)&&(u.only===void 0||b.typedArray(u.only,b.string))&&(u.triggerKind===void 0||u.triggerKind===$u.Invoked||u.triggerKind===$u.Automatic)}s(l,"is"),o(l,"is"),a.is=l})(ay||(ay={})),(function(a){function i(c,u,f){let d={title:c},p=!0;return typeof u=="string"?(p=!1,d.kind=u):Kn.is(u)?d.command=u:d.edit=u,p&&f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return u&&b.string(u.title)&&(u.diagnostics===void 0||b.typedArray(u.diagnostics,gu.is))&&(u.kind===void 0||b.string(u.kind))&&(u.edit!==void 0||u.command!==void 0)&&(u.command===void 0||Kn.is(u.command))&&(u.isPreferred===void 0||b.boolean(u.isPreferred))&&(u.edit===void 0||Af.is(u.edit))}s(l,"is"),o(l,"is"),a.is=l})(iy||(iy={})),(function(a){function i(c,u){let f={range:c};return b.defined(u)&&(f.data=u),f}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.command)||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(sy||(sy={})),(function(a){function i(c,u){return{tabSize:c,insertSpaces:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&b.uinteger(u.tabSize)&&b.boolean(u.insertSpaces)}s(l,"is"),o(l,"is"),a.is=l})(oy||(oy={})),(function(a){function i(c,u,f){return{range:c,target:u,data:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.defined(u)&&ne.is(u.range)&&(b.undefined(u.target)||b.string(u.target))}s(l,"is"),o(l,"is"),a.is=l})(ly||(ly={})),(function(a){function i(c,u){return{range:c,parent:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){let u=c;return b.objectLiteral(u)&&ne.is(u.range)&&(u.parent===void 0||a.is(u.parent))}s(l,"is"),o(l,"is"),a.is=l})(uy||(uy={})),(function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"})(cy||(cy={})),(function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"})(fy||(fy={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),o(i,"is"),a.is=i})(dy||(dy={})),(function(a){function i(c,u){return{range:c,text:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.string(u.text)}s(l,"is"),o(l,"is"),a.is=l})(py||(py={})),(function(a){function i(c,u,f){return{range:c,variableName:u,caseSensitiveLookup:f}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&b.boolean(u.caseSensitiveLookup)&&(b.string(u.variableName)||u.variableName===void 0)}s(l,"is"),o(l,"is"),a.is=l})(my||(my={})),(function(a){function i(c,u){return{range:c,expression:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return u!=null&&ne.is(u.range)&&(b.string(u.expression)||u.expression===void 0)}s(l,"is"),o(l,"is"),a.is=l})(hy||(hy={})),(function(a){function i(c,u){return{frameId:c,stoppedLocation:u}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.defined(u)&&ne.is(c.stoppedLocation)}s(l,"is"),o(l,"is"),a.is=l})(yy||(yy={})),(function(a){a.Type=1,a.Parameter=2;function i(l){return l===1||l===2}s(i,"is"),o(i,"is"),a.is=i})(Cf||(Cf={})),(function(a){function i(c){return{value:c}}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.location===void 0||yu.is(u.location))&&(u.command===void 0||Kn.is(u.command))}s(l,"is"),o(l,"is"),a.is=l})(bf||(bf={})),(function(a){function i(c,u,f){const d={position:c,label:u};return f!==void 0&&(d.kind=f),d}s(i,"create"),o(i,"create"),a.create=i;function l(c){const u=c;return b.objectLiteral(u)&&ue.is(u.position)&&(b.string(u.label)||b.typedArray(u.label,bf.is))&&(u.kind===void 0||Cf.is(u.kind))&&u.textEdits===void 0||b.typedArray(u.textEdits,lr.is)&&(u.tooltip===void 0||b.string(u.tooltip)||tl.is(u.tooltip))&&(u.paddingLeft===void 0||b.boolean(u.paddingLeft))&&(u.paddingRight===void 0||b.boolean(u.paddingRight))}s(l,"is"),o(l,"is"),a.is=l})(gy||(gy={})),(function(a){function i(l){return{kind:"snippet",value:l}}s(i,"createSnippet"),o(i,"createSnippet"),a.createSnippet=i})(vy||(vy={})),(function(a){function i(l,c,u,f){return{insertText:l,filterText:c,range:u,command:f}}s(i,"create"),o(i,"create"),a.create=i})(Ty||(Ty={})),(function(a){function i(l){return{items:l}}s(i,"create"),o(i,"create"),a.create=i})(Ry||(Ry={})),(function(a){a.Invoked=0,a.Automatic=1})($y||($y={})),(function(a){function i(l,c){return{range:l,text:c}}s(i,"create"),o(i,"create"),a.create=i})(Ay||(Ay={})),(function(a){function i(l,c){return{triggerKind:l,selectedCompletionInfo:c}}s(i,"create"),o(i,"create"),a.create=i})(Ey||(Ey={})),(function(a){function i(l){const c=l;return b.objectLiteral(c)&&Tf.is(c.uri)&&b.string(c.name)}s(i,"is"),o(i,"is"),a.is=i})(Cy||(Cy={})),DN=[`
|
|
2
2
|
`,`\r
|
|
3
3
|
`,"\r"],(function(a){function i(f,d,p,m){return new n_(f,d,p,m)}s(i,"create"),o(i,"create"),a.create=i;function l(f){let d=f;return!!(b.defined(d)&&b.string(d.uri)&&(b.undefined(d.languageId)||b.string(d.languageId))&&b.uinteger(d.lineCount)&&b.func(d.getText)&&b.func(d.positionAt)&&b.func(d.offsetAt))}s(l,"is"),o(l,"is"),a.is=l;function c(f,d){let p=f.getText(),m=u(d,(y,$)=>{let C=y.range.start.line-$.range.start.line;return C===0?y.range.start.character-$.range.start.character:C}),g=p.length;for(let y=m.length-1;y>=0;y--){let $=m[y],C=f.offsetAt($.range.start),R=f.offsetAt($.range.end);if(R<=g)p=p.substring(0,C)+$.newText+p.substring(R,p.length);else throw new Error("Overlapping edit");g=C}return p}s(c,"applyEdits"),o(c,"applyEdits"),a.applyEdits=c;function u(f,d){if(f.length<=1)return f;const p=f.length/2|0,m=f.slice(0,p),g=f.slice(p);u(m,d),u(g,d);let y=0,$=0,C=0;for(;y<m.length&&$<g.length;)d(m[y],g[$])<=0?f[C++]=m[y++]:f[C++]=g[$++];for(;y<m.length;)f[C++]=m[y++];for(;$<g.length;)f[C++]=g[$++];return f}s(u,"mergeSort2"),o(u,"mergeSort")})(by||(by={})),n_=(n=class{constructor(i,l,c,u){this._uri=i,this._languageId=l,this._version=c,this._content=u,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let l=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(l,c)}return this._content}update(i,l){this._content=i.text,this._version=l,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],l=this._content,c=!0;for(let u=0;u<l.length;u++){c&&(i.push(u),c=!1);let f=l.charAt(u);c=f==="\r"||f===`
|
|
4
4
|
`,f==="\r"&&u+1<l.length&&l.charAt(u+1)===`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as Vt,bq as K,by as Jt,b as Xt,a_ as P,bu as V,bs as Ie,bo as i}from"./yZ5s7S5S.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as j,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./D46WSk8U.js";import{c as Te}from"./CVjN4vxe.js";import{f as z}from"./CyAayV8v.js";import"./hEq6dFYU.js";import{e as Fe,L as qt}from"./9ZGNcJrk.js";import"./CM5eCs6m.js";import"./CilxFmmt.js";import{k as Ue,G as Ee,N as Oe}from"./CJB0AMOQ.js";import{I as Wt}from"./Bx4lXaHY.js";import"./Cb1eroFO.js";import{Hb as W,fj as Kt,z as He,eb as jt,pQ as Be,sW as Me,H2 as qe,nI as We,hu as Ke}from"./WOicJa2k.js";import{g as Nt,h as Qt,i as je,s as Ne,b as Rt,d as Qe,e as Re,m as Ve}from"./BmZ0oFC-.js";var Je=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Vt({component:Xe,...it});Yt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),J=K(m,"onSelect",7);function N(r){D(!1),J()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),j()},get static(){return B()},set static(r=!1){B(r),j()},get title(){return st()},set title(r){st(r),j()},get message(){return _()},set message(r){_(r),j()},get buttons(){return k()},set buttons(r){k(r),j()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),j()},get onSelect(){return J()},set onSelect(r){J(r),j()},$set:Jt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,Q)=>{{let Z=g(()=>Q===b()?"ghost":Q===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(Q),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Je(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),Q=H(Y,!0);s(()=>o(Q,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Vt({component:ua,...it});Yt(m,!0);const B=()=>V(ct,"$storedInstance$",r),st=()=>V(ee,"$deviceGrantSupported$",r),_=()=>V(ne,"$instanceSetupSupported$",r),k=()=>V(pt,"$isAuthenticating$",r),b=()=>V(ut,"$isCancelling$",r),J=()=>V(te,"$deviceFlow$",r),N=()=>V(_t,"$cancelOutcome$",r),vt=()=>V(ae,"$error$",r),[r,M]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,Q=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Qt(),ut=je(),_t=Ne(),te=Rt(),ee=Qe(),ae=Re(),ne=Ve();let bt=kt(Ge(Nt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Qt.select(e)&&Rt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(jt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||W.dispatch(jt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),j()},get onCancel(){return w()},set onCancel(c){w(c),j()},$set:Jt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return J().userCode},get verificationUri(){return J().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Y:`${Y} ${Q}`);Wt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{Mt($,"id",Q),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),R=E(A);{let v=g(()=>!t(re));z(R,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(R,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&J()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(ge):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
|
|
1
|
+
import{t as Vt,bq as K,by as Jt,b as Xt,a_ as P,bu as V,bs as Ie,bo as i}from"./yZ5s7S5S.js";import{bs as Yt,ay as yt,be as h,b$ as x,b_ as s,bO as o,W as n,bS as l,bl as H,bn as Zt,aA as j,a7 as Se,aD as t,c9 as g,aB as I,bo as we,bV as kt,br as Ge,ca as Ht,bH as q,bk as Le,a5 as E,bA as O}from"./B8o4lNgr.js";import{h as Ae,i as Pe,k as ze,d as De,I as Bt,s as Mt}from"./D46WSk8U.js";import{c as Te}from"./CVjN4vxe.js";import{f as z}from"./Dax20l9D.js";import"./hEq6dFYU.js";import{e as Fe,L as qt}from"./BvUM18CV.js";import"./CM5eCs6m.js";import"./tzy2FJ3p.js";import{k as Ue,G as Ee,N as Oe}from"./gMye6h60.js";import{I as Wt}from"./BYxkGGC-.js";import"./Cb1eroFO.js";import{Hb as W,fj as Kt,z as He,eb as jt,pQ as Be,sW as Me,H2 as qe,nI as We,hu as Ke}from"./WOicJa2k.js";import{g as Nt,h as Qt,i as je,s as Ne,b as Rt,d as Qe,e as Re,m as Ve}from"./DgBCXQ71.js";var Je=I('<!> <p class="type-body"> </p>',1);function Xe(it,m){if(new.target)return Vt({component:Xe,...it});Yt(m,!0);let D=K(m,"open",15,!1),B=K(m,"static",7,!1),st=K(m,"title",7),_=K(m,"message",7),k=K(m,"buttons",7),b=K(m,"cancelIndex",7,0),J=K(m,"onSelect",7);function N(r){D(!1),J()?.(r)}var vt={get open(){return D()},set open(r=!1){D(r),j()},get static(){return B()},set static(r=!1){B(r),j()},get title(){return st()},set title(r){st(r),j()},get message(){return _()},set message(r){_(r),j()},get buttons(){return k()},set buttons(r){k(r),j()},get cancelIndex(){return b()},set cancelIndex(r=0){b(r),j()},get onSelect(){return J()},set onSelect(r){J(r),j()},$set:Jt,$on:(r,M)=>Xt(m,r,M)};return Ue(it,{get static(){return B()},role:"alertdialog",get title(){return st()},dismissOnInteractOutside:!1,focusContent:!0,onSubmit:()=>N(k().length-1),onCancel:()=>N(b()),get open(){return D()},set open(M){D(M)},footer:M=>{var T=Se(),w=yt(T);Ae(w,17,k,Pe,(X,Y,Q)=>{{let Z=g(()=>Q===b()?"ghost":Q===k().length-1?"primary":"outline");z(X,{get variant(){return t(Z)},onclick:()=>N(Q),children:(ct,pt)=>{h();var ut=x();s(()=>o(ut,t(Y))),n(ct,ut)},$$slots:{default:!0}})}}),n(M,T)},children:(M,T)=>{var w=Je(),X=yt(w);Te(X,()=>Fe,(Z,ct)=>{ct(Z,{class:"sr-only",children:(pt,ut)=>{h();var _t=x();s(()=>o(_t,_())),n(pt,_t)},$$slots:{default:!0}})});var Y=l(X,2),Q=H(Y,!0);s(()=>o(Q,_())),n(M,w)},$$slots:{footer:!0,default:!0}}),Zt(vt)}var Ye=I('<p class="text-sm text-subtle" role="status" data-testid="gitlab-instance-update-required"> </p>'),Ze=I('<p class="break-all type-caption text-subtle" data-testid="gitlab-connect-instance"> </p>'),ta=I('<div class="max-w-sm space-y-3" data-testid="gitlab-connect-device-flow"><!> <div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!> <!></div></div>'),ea=I('<div class="flex flex-wrap items-center gap-2 text-subtle text-sm"><!> <span> </span> <!></div>'),aa=I('<p class="text-xs text-danger" role="alert"> </p>'),na=I('<div class="max-w-sm space-y-1" data-testid="gitlab-connect-token"><!> <!> <p class="text-xs text-subtle"> <!></p></div> <div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>',1),ra=I('<div class="flex flex-wrap items-center gap-2"><!> <!> <!></div>'),sa=I('<div class="max-w-sm space-y-1"><!> <!> <p class="text-xs text-subtle"> </p> <!></div> <!>',1),oa=I('<p class="text-sm text-subtle" role="status"> </p>'),la=I('<div class="space-y-1"><p class="text-sm text-subtle" role="status"> </p> <!></div>'),ia=I('<p class="text-sm text-danger" role="alert"> </p>'),ca=I('<div data-testid="gitlab-connect-form"><!> <!> <!> <!> <!></div>');function ua(it,m){const D=we();if(new.target)return Vt({component:ua,...it});Yt(m,!0);const B=()=>V(ct,"$storedInstance$",r),st=()=>V(ee,"$deviceGrantSupported$",r),_=()=>V(ne,"$instanceSetupSupported$",r),k=()=>V(pt,"$isAuthenticating$",r),b=()=>V(ut,"$isCancelling$",r),J=()=>V(te,"$deviceFlow$",r),N=()=>V(_t,"$cancelOutcome$",r),vt=()=>V(ae,"$error$",r),[r,M]=Ie();let T=K(m,"compact",7,!1),w=K(m,"onCancel",7);const X=`${D}-host`,Y=`${D}-host-help`,Q=`${D}-host-error`,Z=`${D}-token`,ct=Nt(),pt=Qt(),ut=je(),_t=Ne(),te=Rt(),ee=Qe(),ae=Re(),ne=Ve();let bt=kt(Ge(Nt.select(W.state))),St=kt(!1),tt=kt(""),ft=kt(!1);const p=g(()=>Me(t(bt))),wt=g(()=>t(ft)||t(p)===B()&&st()===!1),Ct=g(()=>t(p)?We(t(p)):null),re=g(()=>_()&&t(p)!==null&&t(tt).trim().length>0);Ht(()=>{const c=B();t(St)||q(bt,c,!0)}),Ht(()=>{_()||q(tt,"")}),Le(()=>{const c=()=>{const e=W.state;Qt.select(e)&&Rt.select(e)&&W.dispatch(Kt())};return window.addEventListener("focus",c),()=>window.removeEventListener("focus",c)});function Gt(){!_()||!t(p)||t(p)===B()||k()||b()||W.dispatch(Be(t(p)))}function se(){q(St,!0),q(tt,"")}function Lt(){!_()||!t(p)||k()||b()||W.dispatch(qe(t(p)))}function At(){const c=t(tt).trim();!_()||!c||!t(p)||k()||b()||(W.dispatch(Ke(t(p),c)),q(tt,""))}function Pt(){!_()||b()||(k()&&W.dispatch(jt()),q(ft,!0))}function oe(){q(ft,!1)}function le(){b()||W.dispatch(jt())}function ie(){t(Ct)&&Oe(t(Ct),{})}function ce(c){c.key==="Enter"&&(c.preventDefault(),Gt(),t(wt)?document.getElementById(Z)?.focus():Lt())}function ue(c){c.key==="Enter"&&(c.preventDefault(),At())}const zt=g(()=>T()?"sm":"xl"),gt=g(()=>T()?"sm":"default");var de={get compact(){return T()},set compact(c=!1){T(c),j()},get onCancel(){return w()},set onCancel(c){w(c),j()},$set:Jt,$on:(c,e)=>Xt(m,c,e)},$t=ca();{const c=e=>{z(e,{variant:"ghost",size:"sm",type:"button",class:"text-muted-foreground hover:text-foreground",get disabled(){return b()},onclick:le,children:(a,u)=>{h();var f=x();s(G=>o(f,G),[()=>b()?i.lib_gitlabConnect_cancelling_label():i.lib_gitlabConnect_cancel_label()]),n(a,f)},$$slots:{default:!0}})};var Dt=E($t);{var ve=e=>{var a=Ye(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_updateRequired_description()]),n(e,a)};P(Dt,e=>{_()||e(ve)})}var Tt=l(Dt,2);{var pe=e=>{var a=Ze(),u=H(a,!0);s(()=>o(u,B())),n(e,a)};P(Tt,e=>{(k()||b())&&e(pe)})}var Ft=l(Tt,2);{var _e=e=>{var a=ta(),u=E(a);{let at=g(()=>i.lib_gitlabConnect_openGitlab_label());Ee(u,{get userCode(){return J().userCode},get verificationUri(){return J().verificationUri},get openLabel(){return t(at)},get compact(){return T()}})}var f=l(u,2),G=E(f);Bt(G,{size:16,class:"shrink-0"});var S=l(G,2),ot=H(S,!0),et=l(S,2);{let at=g(()=>b()||!_());z(et,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return t(at)},onclick:Pt,children:(It,Et)=>{h();var d=x();s($=>o(d,$),[()=>i.lib_gitlabConnect_useToken_label()]),n(It,d)},$$slots:{default:!0}})}var dt=l(et,2);c(dt),O(f),O(a),s(at=>o(ot,at),[()=>i.lib_gitlabConnect_waitingForAuthorization_label()]),n(e,a)},be=e=>{var a=ea(),u=E(a);Bt(u,{size:16,class:"shrink-0"});var f=l(u,2),G=H(f,!0),S=l(f,2);c(S),O(a),s(ot=>o(G,ot),[()=>i.lib_gitlabConnect_connecting_label()]),n(e,a)},fe=e=>{var a=sa(),u=yt(a),f=E(u);qt(f,{get for(){return X},children:(d,$)=>{h();var y=x();s(L=>o(y,L),[()=>i.lib_gitlabConnect_host_label()]),n(d,y)},$$slots:{default:!0}});var G=l(f,2);{let d=g(()=>!_()),$=g(()=>!t(p)||void 0),y=g(()=>t(p)?Y:`${Y} ${Q}`);Wt(G,{get id(){return X},type:"text",autocomplete:"url",spellcheck:!1,get disabled(){return t(d)},get"aria-invalid"(){return t($)},get"aria-describedby"(){return t(y)},get placeholder(){return He},oninput:se,onchange:Gt,onkeydown:ce,get value(){return t(bt)},set value(L){q(bt,L,!0)}})}var S=l(G,2),ot=H(S,!0),et=l(S,2);{var dt=d=>{var $=aa(),y=H($,!0);s(L=>{Mt($,"id",Q),o(y,L)},[()=>i.lib_gitlabConnect_invalidInstance_error()]),n(d,$)};P(et,d=>{t(p)||d(dt)})}O(u);var at=l(u,2);{var It=d=>{var $=na(),y=yt($),L=E(y);qt(L,{get for(){return Z},children:(v,U)=>{h();var lt=x();s(C=>o(lt,C),[()=>i.lib_gitlabConnect_token_label()]),n(v,lt)},$$slots:{default:!0}});var mt=l(L,2);{let v=g(()=>!_());Wt(mt,{get id(){return Z},type:"password",autocomplete:"off",get disabled(){return t(v)},placeholder:"glpat-...",onkeydown:ue,get value(){return t(tt)},set value(U){q(tt,U,!0)}})}var ht=l(mt,2),F=E(ht),nt=l(F);{var xt=v=>{z(v,{variant:"link",size:"sm",type:"button",class:"h-auto px-0 text-xs",onclick:ie,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_createToken_label({host:t(p)})]),n(U,C)},$$slots:{default:!0}})};P(nt,v=>{t(Ct)&&t(p)&&v(xt)})}O(ht),O(y);var A=l(y,2),R=E(A);{let v=g(()=>!t(re));z(R,{variant:"primary",get size(){return t(zt)},type:"button",onclick:At,get disabled(){return t(v)},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_connect_label()]),n(U,C)},$$slots:{default:!0}})}var Ot=l(R,2);{var ke=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",onclick:oe,children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_useDevice_label()]),n(U,C)},$$slots:{default:!0}})};P(Ot,v=>{t(ft)&&!(t(p)===B()&&st()===!1)&&v(ke)})}var ye=l(Ot,2);{var Ce=v=>{z(v,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(U,lt)=>{h();var C=x();s(rt=>o(C,rt),[()=>i.lib_gitlabConnect_cancel_label()]),n(U,C)},$$slots:{default:!0}})};P(ye,v=>{w()&&v(Ce)})}O(A),s(v=>o(F,`${v??""} `),[()=>i.lib_gitlabConnect_token_description()]),n(d,$)},Et=d=>{var $=ra(),y=E($);{let F=g(()=>!t(p)||!_());z(y,{variant:"primary",get size(){return t(zt)},type:"button",onclick:Lt,get disabled(){return t(F)},children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_connect_label()]),n(nt,A)},$$slots:{default:!0}})}var L=l(y,2);{let F=g(()=>!_());z(L,{variant:"ghost",get size(){return t(gt)},type:"button",get disabled(){return t(F)},onclick:Pt,children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_useToken_label()]),n(nt,A)},$$slots:{default:!0}})}var mt=l(L,2);{var ht=F=>{z(F,{variant:"ghost",get size(){return t(gt)},type:"button",get onclick(){return w()},children:(nt,xt)=>{h();var A=x();s(R=>o(A,R),[()=>i.lib_gitlabConnect_cancel_label()]),n(nt,A)},$$slots:{default:!0}})};P(mt,F=>{w()&&F(ht)})}O($),n(d,$)};P(at,d=>{t(wt)?d(It):d(Et,-1)})}s(d=>{Mt(S,"id",Y),o(ot,d)},[()=>i.lib_gitlabConnect_host_description()]),n(e,a)};P(Ft,e=>{(k()||b())&&J()?e(_e):k()||b()?e(be,1):e(fe,-1)})}var Ut=l(Ft,2);{var ge=e=>{var a=oa(),u=H(a,!0);s(f=>o(u,f),[()=>i.lib_gitlabConnect_cancelled_label()]),n(e,a)},$e=e=>{var a=la(),u=E(a),f=H(u,!0),G=l(u,2);z(G,{variant:"link",size:"sm",type:"button",class:"px-0",get disabled(){return b()},onclick:()=>W.dispatch(Kt()),children:(S,ot)=>{h();var et=x();s(dt=>o(et,dt),[()=>i.lib_gitlabConnect_checkStatus_label()]),n(S,et)},$$slots:{default:!0}}),O(a),s(S=>o(f,S),[()=>N()==="already-started"?i.lib_gitlabConnect_alreadyStarted_description():i.lib_gitlabConnect_cancelFailed_description()]),n(e,a)};P(Ut,e=>{N()==="cancelled"?e(ge):(N()==="already-started"||N()==="failed")&&e($e,1)})}var me=l(Ut,2);{var he=e=>{var a=ia(),u=H(a,!0);s(()=>o(u,vt())),n(e,a)};P(me,e=>{vt()&&e(he)})}O($t)}s(()=>ze($t,1,De(T()?"space-y-2":"space-y-4"))),n(it,$t);var xe=Zt(de);return M(),xe}export{ua as G,Xe as M};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hb as o,lp as C,n1 as g,mG as L,Hg as W}from"./WOicJa2k.js";import{w as z}from"./CjSUqH7t.js";import{dk as H,dp as f}from"
|
|
1
|
+
import{Hb as o,lp as C,n1 as g,mG as L,Hg as W}from"./WOicJa2k.js";import{w as z}from"./CjSUqH7t.js";import{dk as H,dp as f}from"./-1vWYJiy.js";const a=o.createSelector((t,e)=>t.fileExplorer.byWorkspaceId[e]??C),D=o.createSelector((t,e,s)=>{const c=g(t.fileExplorer.searches,s);return c?.workspaceId===e?c:void 0}),M=o.createSelector((t,e)=>{const s=a.select(t,e);return s.rootPath?g(s.nodes,s.rootPath)??null:null}),R=o.createSelector((t,e)=>a.select(t,e).nodes.map),q=o.createSelector((t,e)=>a.select(t,e).isLoading),B=o.createSelector((t,e)=>a.select(t,e).isInitialized),K=o.createSelector((t,e)=>a.select(t,e).error),O=o.createSelector((t,e)=>a.select(t,e).fileCount),V=o.createSelector((t,e)=>a.select(t,e).gitStatus),E=o.createSelector((t,e)=>{const s=H.select(t,e);return s?.worktreePath||s?.repositoryPath||s?.path||""}),A=o.createSelector((t,e)=>{const s=a.select(t,e);return{workspacePath:E.select(t,e),currentWorkspacePath:s.workspacePath,isLoading:s.isLoading,isInitialized:s.isInitialized}});o.createSelector((t,e)=>e?{wsId:e,workspacePath:E.select(t,e),workspaceEnvironmentConfig:f.select(t,e)}:{wsId:null,workspacePath:"",workspaceEnvironmentConfig:void 0});const J=o.createSelector((t,e,s)=>a.select(t,e).expandedPaths.includes(s)),Q=o.createSelector((t,e,s)=>a.select(t,e).loadingPaths.includes(s)),T=o.createSelector((t,e)=>{const s=a.select(t,e);return s.expandedPaths.some(c=>c!==s.workspacePath)}),U=o.createSelector((t,e)=>{const s=E.select(t,e);if(!s)return!1;const c=a.select(t,e),d=f.select(t,e);return c.workspacePath!==s?!0:c.isLoading?!1:c.isInitialized?d?.type==="remote"&&!c.isRemoteInitialized:!0}),F=new WeakMap,X=o.createSelector((t,e)=>{const s=a.select(t,e);if(!s.rootPath)return[];const c=g(s.nodes,s.rootPath);if(!c)return[];const d=new Set(s.expandedPaths),y=new Set(s.loadingPaths),I=L(s.nodes,c.children,d,y),{agentFileEdits:v,workspacePath:P,gitStatus:S}=s,x=new Set;for(const r of Object.keys(S)){const i=r.split("/");for(let l=1;l<i.length;l++)x.add(i.slice(0,l).join("/"))}return I.map(r=>{let i=r.node.path;if(P){const w=W(r.node.path,P);w!==r.node.path&&(i=w)}const l=r.node.type==="file",n=v[i],p=l?S[i]:void 0,h=!l&&x.has(i),k={isExpanded:r.isExpanded,isLoading:r.isLoading,agentEdits:n&&n.length>0?n:void 0,gitStatus:p,directoryHasChanges:h,displayPath:r.displayPath,compactedExpandedPathsKey:r.compactedExpandedPaths?.join("\0"),depth:r.depth},u=F.get(r.node);if(u&&z(u.inputs,k))return u.result;const m=n&&n.length>0||p!==void 0||h?{node:r.node,depth:r.depth,displayPath:r.displayPath,...r.compactedExpandedPaths?{compactedExpandedPaths:r.compactedExpandedPaths}:{},isExpanded:r.isExpanded,isLoading:r.isLoading,...n&&n.length>0?{agentEdits:n}:{},...p!==void 0?{gitStatus:p}:{},...h?{directoryHasChanges:!0}:{}}:r;return F.set(r.node,{inputs:k,result:m}),m})});export{K as a,O as b,V as c,A as d,B as e,q as f,R as g,M as h,D as i,a as j,X as k,T as l,J as m,Q as n,U as o,E as s};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./yZ5s7S5S.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as $e,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./D46WSk8U.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as jo,aB as bn}from"./
|
|
1
|
+
var vo=Object.defineProperty;var bo=(e,t,i)=>t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i;var v=(e,t,i)=>bo(e,typeof t!="symbol"?t+"":t,i);import{t as ir,bq as M,a_ as we,by as nr,b as rr,bu as dn,bs as So,bo as je}from"./yZ5s7S5S.js";import{bs as or,a5 as De,ay as hn,bS as Xe,aD as C,bA as ke,b_ as Me,bO as rt,W as le,bl as Xt,be as Hi,bn as sr,c9 as ne,aA as I,b$ as ar,aB as ge,ai as yo,bV as Te,br as Co,ca as $e,bH as Y,c5 as dt,bk as xo,bj as Lo,aj as wo,c0 as fn}from"./B8o4lNgr.js";import{h as ko,i as Eo,k as un,l as pi,s as cn}from"./D46WSk8U.js";import{b as Ro}from"./C3hWtekV.js";import{b as pn}from"./D2g8BuR1.js";import{h as Ao,c as Ye,w as lr,N as O,O as Jt,aX as Qe,a as dr,j as hr,P as Je,H as fr,i as ur,a9 as cr,U as Ho,f as To,e as pr,T as Do,g as Mo,S as Io,a3 as Ze,a2 as Ve,C as Fo,G as gr,F as No,I as Po,A as At,af as zo,_ as Ht,ab as Tt,v as St,a0 as Ti,s as J,r as Ue,al as wt,D as Uo,d as _o,a8 as mr,b as gn,u as mn,aC as Oo,am as ct,aa as Bo,K as Le,M as Ut,L as Vo,$ as Dt,E as Wo,aj as vr,a5 as Go,a1 as vn,t as br,ad as ft,a4 as kt,ac as ot,ae as Sr,B as gi,a7 as mi,k as jo,aB as bn}from"./CEs-7mch.js";import{F as vi,c2 as $o,bd as qo,au as Ko,at as Xo}from"./ah7LAYm4.js";import{f as Di}from"./Dax20l9D.js";import{g as Yo}from"./C3YfsJGu.js";import{d as Qo}from"./BIqUw3gi.js";import{P as Jo}from"./CEOoXkJa.js";import{t as Sn}from"./Dfbagr79.js";class Zo extends Ao{constructor(){super(...arguments),this.tokenize=ts}equals(t,i,n){return n.ignoreWhitespace?((!n.newlineIsToken||!t.includes(`
|
|
2
2
|
`))&&(t=t.trim()),(!n.newlineIsToken||!i.includes(`
|
|
3
3
|
`))&&(i=i.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(t.endsWith(`
|
|
4
4
|
`)&&(t=t.slice(0,-1)),i.endsWith(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Hb as s,hX as a,lt as S,n1 as O,lG as m}from"./WOicJa2k.js";import{z as f}from"./
|
|
1
|
+
import{Hb as s,hX as a,lt as S,n1 as O,lG as m}from"./WOicJa2k.js";import{z as f}from"./BVTor63R.js";import{ds as d,aT as b,dA as k}from"./-1vWYJiy.js";const v=s.createSelector((t,e)=>{if(b.select(t,e)&&k.select(t,e))return!1;const r=t.principal?.snapshot;return r?.capabilities.workspaceGuestRoles===!0&&(r.capabilities.hostMembership?r.principal.hostRole==="guest":!r.principal.isAdministrator)}),y=s.createSelector(t=>t.principal?.snapshot?.capabilities.remoteScripts===1),l=s.createSelector((t,e,r)=>!v.select(t,e)||!!d.select(t,e)&&r?.purpose==="saved");function o(t,e,r){return!!e&&!!r&&l.select(t,e,r)}function i(t,e){return e?t.scripts.byWorkspaceId[e]??m:m}const j=s.createSelector((t,e)=>i(t,e).initialized),W=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),C=s.createSelector((t,e)=>W.select(t,e).filter(r=>f((r.runtime??a()).status))),u=s.createSelector((t,e,r)=>{const c=i(t,e);return o(t,e,c.scripts[r])?c.scripts[r]:null}),x=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),z=s.createSelector((t,e,r)=>{const c=i(t,e);return l.select(t,e??"",c.scripts[r])?c.outputBuffers[r]??S:S}),A=s.createSelector((t,e,r,c)=>{const n=i(t,e).retainedOutputs?.[c];return n?.scriptId===r&&l.select(t,e,i(t,e).scripts[r])?n:void 0}),E=s.createSelector(t=>Object.entries(t.scripts?.byWorkspaceId??{}).filter(([,e])=>Object.keys(e.retainedOutputs??{}).length>0).map(([e])=>e).sort()),M=s.createSelector((t,e)=>!!t.scripts?.byWorkspaceId[e]?.outputStreamReady),D=s.createSelector((t,e)=>i(t,e).initialized),G=s.createSelector((t,e)=>{const r=i(t,e);return r.activeScriptIds?r.activeScriptIds.flatMap(c=>o(t,e,r.scripts[c])?[r.scripts[c]]:[]):Object.values(r.scripts).filter(c=>!c.archivedAt&&o(t,e,c))}),B=s.createSelector((t,e)=>{const r=i(t,e);return r.detectionOperation?.pending?{...r.operations,...Object.fromEntries(Object.keys(r.scripts).map(c=>[c,r.detectionOperation]))}:r.operations}),L=s.createSelector((t,e)=>i(t,e).detectionOperation),P=s.createSelector((t,e,r,c)=>{const n=i(t,r).workflowOutcomes,p=n?O(n,e):void 0;return p?.workspaceId===r&&p.resourceId===c?p:void 0}),H=s.createSelector((t,e,r)=>u.select(t,e,r)?.runtime??a()),J=s.createSelector((t,e)=>Object.values(i(t,e).scripts).filter(r=>o(t,e,r))),T=s.createSelector((t,e,r)=>i(t,e).pendingReads?.[r]),U=s.createSelector((t,e,r)=>{const c=u.select(t,e,r);return!!c&&!f(c.runtime?.status)&&!i(t,e).detectionOperation?.pending&&!i(t,e).operations[r]?.pending}),V=s.createSelector((t,e)=>({nextCursor:i(t,e).nextCursor,loading:i(t,e).loading,error:i(t,e).loadError}));export{J as selectAllWorkspaceScriptEntries,U as selectCanDeleteScript,l as selectCanReadScriptDefinition,y as selectRemoteScriptsSupported,C as selectRunningScripts,u as selectScriptById,L as selectScriptDetectionOperation,W as selectScriptEntries,V as selectScriptListPageState,z as selectScriptOutput,M as selectScriptOutputStreamReady,E as selectScriptOutputViewerWorkspaceIds,T as selectScriptReadJournal,A as selectScriptRetainedOutput,x as selectScriptRuntime,P as selectScriptWorkflowOutcome,j as selectScriptsInitialized,v as selectUsesGuestScriptScope,G as selectWorkspaceScriptEntries,B as selectWorkspaceScriptOperations,H as selectWorkspaceScriptRuntime,D as selectWorkspaceScriptsInitialized};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as k,bq as s,a_ as j,by as q,b as B,br as D,bt as z}from"./yZ5s7S5S.js";import{bo as E,bs as H,a7 as _,ay as p,W as m,bn as I,aA as l,aD as S,a5 as F,bf as J,bA as G,c9 as N,aB as K}from"./B8o4lNgr.js";import{s as w}from"./Cb1eroFO.js";import{c as L}from"./CVjN4vxe.js";import{c as M,f as O}from"./D46WSk8U.js";import{a as Q}from"./
|
|
1
|
+
import{t as k,bq as s,a_ as j,by as q,b as B,br as D,bt as z}from"./yZ5s7S5S.js";import{bo as E,bs as H,a7 as _,ay as p,W as m,bn as I,aA as l,aD as S,a5 as F,bf as J,bA as G,c9 as N,aB as K}from"./B8o4lNgr.js";import{s as w}from"./Cb1eroFO.js";import{c as L}from"./CVjN4vxe.js";import{c as M,f as O}from"./D46WSk8U.js";import{a as Q}from"./gMye6h60.js";import{aT as W,aJ as P,bn as R}from"./Dax20l9D.js";var U=new Set(["$$slots","$$events","$$legacy","id","level","children","child","ref"]),V=K("<div><!></div>");function T(f,r){const d=E();if(new.target)return k({component:T,...f});H(r,!0);let n=s(r,"id",23,()=>W(d)),o=s(r,"level",7,2),u=s(r,"children",7),i=s(r,"child",7),c=s(r,"ref",15,null),b=D(r,U);const t=Q.create({id:P(()=>n()),level:P(()=>o()),ref:P(()=>c(),e=>c(e))}),v=N(()=>R(b,t.props));var x={get id(){return n()},set id(e=W(d)){n(e),l()},get level(){return o()},set level(e=2){o(e),l()},get children(){return u()},set children(e){u(e),l()},get child(){return i()},set child(e){i(e),l()},get ref(){return c()},set ref(e=null){c(e),l()},$set:q,$on:(e,a)=>B(r,e,a)},g=_(),C=p(g);{var h=e=>{var a=_(),A=p(a);w(A,i,()=>({props:S(v)})),m(e,a)},y=e=>{var a=V();M(a,()=>({...S(v)}));var A=F(a);w(A,()=>u()??J),G(a),m(e,a)};j(C,e=>{i()?e(h):e(y,-1)})}return m(f,g),I(x)}var X=new Set(["$$slots","$$events","$$legacy","level","class","children"]);function Y(f,r){if(new.target)return k({component:Y,...f});H(r,!0);let d=s(r,"level",7,3),n=s(r,"class",7),o=s(r,"children",7),u=D(r,X);var i={get level(){return d()},set level(t=3){d(t),l()},get class(){return n()},set class(t){n(t),l()},get children(){return o()},set children(t){o(t),l()},$set:q,$on:(t,v)=>B(r,t,v)},c=_(),b=p(c);{let t=N(()=>O("flex",n()));L(b,()=>T,(v,x)=>{x(v,z({get level(){return d()},get class(){return S(t)}},()=>u,{children:(g,C)=>{var h=_(),y=p(h);w(y,()=>o()??J),m(g,h)},$$slots:{default:!0}}))})}return m(f,c),I(i)}export{Y as A};
|