@intent-hq/web 2.359.0 → 2.360.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{Dwycp9kz.js → -UDhr0q5.js} +1 -1
- package/web/app/immutable/chunks/{DYd8nNWc.js → 1R56Qj8Y.js} +1 -1
- package/web/app/immutable/chunks/{DoZBqkYF.js → 32iKFv4-.js} +1 -1
- package/web/app/immutable/chunks/{Cl9D9QD8.js → 4f4S0sUh.js} +1 -1
- package/web/app/immutable/chunks/{j2jTU61E.js → 4kuiywlQ.js} +1 -1
- package/web/app/immutable/chunks/{0GiDyxSH.js → 5nGPNxrH.js} +1 -1
- package/web/app/immutable/chunks/{DrJhzfF1.js → 6HkyTXcq.js} +1 -1
- package/web/app/immutable/chunks/{B2VWtQXD.js → 8JflFTpI.js} +1 -1
- package/web/app/immutable/chunks/{BM8PGEcO.js → 9GiEkE-P.js} +1 -1
- package/web/app/immutable/chunks/{BjRCAf8X.js → 9y5vkRaS.js} +1 -1
- package/web/app/immutable/chunks/{C-KmDSVv.js → A91xcSiw.js} +1 -1
- package/web/app/immutable/chunks/{BR6nXvi2.js → B-wvdvfF.js} +1 -1
- package/web/app/immutable/chunks/{_KJ048jX.js → B2pIq9fg.js} +1 -1
- package/web/app/immutable/chunks/{D5XiG13m.js → B34oQCN1.js} +1 -1
- package/web/app/immutable/chunks/{8RYLPrR5.js → B3fJGWt9.js} +1 -1
- package/web/app/immutable/chunks/{C0HpRgD4.js → B4P8KmTp.js} +1 -1
- package/web/app/immutable/chunks/{C8BKrcE1.js → B4R_0jQo.js} +1 -1
- package/web/app/immutable/chunks/{vkhyqDoZ.js → B5IW1VlE.js} +1 -1
- package/web/app/immutable/chunks/{CzCt7LFa.js → B6OxFt0S.js} +1 -1
- package/web/app/immutable/chunks/{CS2E7BOf.js → B7KiQTDj.js} +2 -2
- package/web/app/immutable/chunks/{BDu_-2pO.js → B7hW9x49.js} +1 -1
- package/web/app/immutable/chunks/B8PCLBxN.js +1 -0
- package/web/app/immutable/chunks/{vKIItbxs.js → BBFx0QAL.js} +1 -1
- package/web/app/immutable/chunks/{CNjFQiNk.js → BBnLbsoD.js} +3 -3
- package/web/app/immutable/chunks/{CfdrPzuS.js → BCnWCh48.js} +3 -3
- package/web/app/immutable/chunks/{CeXrdQTj.js → BDrSOwDu.js} +1 -1
- package/web/app/immutable/chunks/{t1Reg1-l.js → BEJv0Pc9.js} +1 -1
- package/web/app/immutable/chunks/{GLifdN8w.js → BFPmZe29.js} +1 -1
- package/web/app/immutable/chunks/{Bff7OX_M.js → BFeZEby1.js} +1 -1
- package/web/app/immutable/chunks/{DNvbM_Jw.js → BFoEwS3N.js} +14 -14
- package/web/app/immutable/chunks/{DNhi2pnC.js → BGGHmOCQ.js} +1 -1
- package/web/app/immutable/chunks/{Bxt1GZdu.js → BHUOcy1d.js} +1 -1
- package/web/app/immutable/chunks/{BomWh1eD.js → BHlsW_o1.js} +1 -1
- package/web/app/immutable/chunks/{C-ZYRRid.js → BJtZTy_N.js} +1 -1
- package/web/app/immutable/chunks/{YNY2RV1c.js → BL0zmkuy.js} +1 -1
- package/web/app/immutable/chunks/{B_VapsyM.js → BLyqJ_tX.js} +1 -1
- package/web/app/immutable/chunks/{CVwloYeX.js → BMl2xNoL.js} +1 -1
- package/web/app/immutable/chunks/{-6O_hwvF.js → BNoTLiJq.js} +1 -1
- package/web/app/immutable/chunks/{B08-5Fsn.js → BOCQKOZ_.js} +1 -1
- package/web/app/immutable/chunks/{Bn81D_5T.js → BOWtLHmq.js} +1 -1
- package/web/app/immutable/chunks/{fXQtWVk2.js → BREs1pEK.js} +1 -1
- package/web/app/immutable/chunks/{Ci5YRbmm.js → BRT5I2VH.js} +1 -1
- package/web/app/immutable/chunks/{Clfqtwbt.js → BSWgqRaC.js} +1 -1
- package/web/app/immutable/chunks/{pYgZjzLi.js → BVSy1i1c.js} +1 -1
- package/web/app/immutable/chunks/{DB4pEg85.js → BVtazWzZ.js} +1 -1
- package/web/app/immutable/chunks/{CWnW1H_r.js → BWW2m17x.js} +1 -1
- package/web/app/immutable/chunks/{Blu36gU0.js → BX-wlbf1.js} +1 -1
- package/web/app/immutable/chunks/{DtAi5eiG.js → BX3Qm7r_.js} +1 -1
- package/web/app/immutable/chunks/{B7ID5lhM.js → BXVqjGzF.js} +1 -1
- package/web/app/immutable/chunks/{CfTOR9Xs.js → BY8Zvp_5.js} +1 -1
- package/web/app/immutable/chunks/{BghNeZnO.js → BYHyHMOf.js} +1 -1
- package/web/app/immutable/chunks/{DyM6oXRa.js → B_PtieXN.js} +1 -1
- package/web/app/immutable/chunks/{CmjC2IOn.js → BctdwcHy.js} +1 -1
- package/web/app/immutable/chunks/{lJ2hrkPe.js → Bd92b52s.js} +1 -1
- package/web/app/immutable/chunks/{CILpVksu.js → Bd_P-L3U.js} +2 -2
- package/web/app/immutable/chunks/{BDECMwd0.js → BdkhvtBn.js} +3 -3
- package/web/app/immutable/chunks/{XsqUZwYc.js → Be4cU-9x.js} +1 -1
- package/web/app/immutable/chunks/{CdQskv_M.js → BeCv1r50.js} +1 -1
- package/web/app/immutable/chunks/{C9k6syqr.js → BeJ9dLu2.js} +1 -1
- package/web/app/immutable/chunks/{C61zN4kC.js → BifMsF0g.js} +1 -1
- package/web/app/immutable/chunks/{jg75CCgI.js → BioI1i4g.js} +2 -2
- package/web/app/immutable/chunks/{utZHhb7g.js → BkAhwE4C.js} +1 -1
- package/web/app/immutable/chunks/{K9El2yPE.js → BkqaxMfg.js} +1 -1
- package/web/app/immutable/chunks/{DrjLBq4b.js → BkzHDegO.js} +2 -2
- package/web/app/immutable/chunks/{Dvz4y7lb.js → Bldr-p8H.js} +1 -1
- package/web/app/immutable/chunks/{BO1UvMYh.js → BmCHTIDH.js} +1 -1
- package/web/app/immutable/chunks/{D7Fu5qfY.js → BnE71Sxv.js} +1 -1
- package/web/app/immutable/chunks/{BKkJ5wmq.js → BoPOsJod.js} +1 -1
- package/web/app/immutable/chunks/{BEUX_9Gf.js → BpCBwtvA.js} +1 -1
- package/web/app/immutable/chunks/{Cqo5h0cq.js → BpE3z_V4.js} +1 -1
- package/web/app/immutable/chunks/{C3DfjxaV.js → BpozSsrs.js} +1 -1
- package/web/app/immutable/chunks/{Di9Z0x4r.js → BqCQZYkF.js} +1 -1
- package/web/app/immutable/chunks/{BNdkWvF7.js → BrbwH5yU.js} +1 -1
- package/web/app/immutable/chunks/{DvKZFqCo.js → Brujc5Qs.js} +1 -1
- package/web/app/immutable/chunks/{fPif4XLT.js → BsRAiU3M.js} +1 -1
- package/web/app/immutable/chunks/{BTTOyJaN.js → BsRUTEry.js} +1 -1
- package/web/app/immutable/chunks/{BUwnMspE.js → BsVek4ep.js} +1 -1
- package/web/app/immutable/chunks/{C0LUTbI7.js → Bsozz-8j.js} +1 -1
- package/web/app/immutable/chunks/{DJtAtlMe.js → Bst2sLeL.js} +1 -1
- package/web/app/immutable/chunks/{CFYbMOQh.js → BtWZ63FE.js} +1 -1
- package/web/app/immutable/chunks/{Da2l_kGL.js → BuHRLZKa.js} +1 -1
- package/web/app/immutable/chunks/{B5OEBl_F.js → Bvu_tazq.js} +1 -1
- package/web/app/immutable/chunks/{BibvkaKz.js → Bx2B90L7.js} +1 -1
- package/web/app/immutable/chunks/{EM0-8M4u.js → Bx903o6z.js} +1 -1
- package/web/app/immutable/chunks/{Chk2VmFC.js → BzFtQkIk.js} +1 -1
- package/web/app/immutable/chunks/{waNhHeBe.js → BzhmxD74.js} +1 -1
- package/web/app/immutable/chunks/{D1AHHNz_.js → C0GOL7QH.js} +1 -1
- package/web/app/immutable/chunks/{CjyYp1d6.js → C0s3H3cX.js} +1 -1
- package/web/app/immutable/chunks/{bDYVRgHv.js → C2Q_f-Ao.js} +1 -1
- package/web/app/immutable/chunks/{BN2Xx7qY.js → C2gV5GaR.js} +4 -4
- package/web/app/immutable/chunks/{CwN0y7xj.js → C54_KTzu.js} +4 -4
- package/web/app/immutable/chunks/{CMOu7J7m.js → C5hIBQ3i.js} +1 -1
- package/web/app/immutable/chunks/{BlfSgRgz.js → C6gTWqQd.js} +1 -1
- package/web/app/immutable/chunks/{C9g6kBvz.js → C7xMm-xs.js} +1 -1
- package/web/app/immutable/chunks/{CELWxQ_U.js → C8PDklve.js} +1 -1
- package/web/app/immutable/chunks/{CkjVC7MP.js → C9JwZT8z.js} +1 -1
- package/web/app/immutable/chunks/{B8TUirrt.js → C9m9xaQX.js} +1 -1
- package/web/app/immutable/chunks/{ZlUXDv9w.js → CB0BBmB3.js} +2 -2
- package/web/app/immutable/chunks/{BGfY3mAg.js → CB8Kg0_N.js} +1 -1
- package/web/app/immutable/chunks/{CQGkGXEd.js → CCW4xg3d.js} +1 -1
- package/web/app/immutable/chunks/{Ba7JIG6D.js → CCq7LQoR.js} +1 -1
- package/web/app/immutable/chunks/{o4jWsDx5.js → CDAGrCMS.js} +1 -1
- package/web/app/immutable/chunks/{CvCQt2D9.js → CDCwuoNC.js} +1 -1
- package/web/app/immutable/chunks/{BJrEWx4G.js → CEdXFb7B.js} +1 -1
- package/web/app/immutable/chunks/{CQeKyPfB.js → CFPO-Gdn.js} +1 -1
- package/web/app/immutable/chunks/{D3dCNwq6.js → CGpu-8LN.js} +4 -4
- package/web/app/immutable/chunks/{BiD0cL9w.js → CIBrW7Ku.js} +1 -1
- package/web/app/immutable/chunks/{wSDPkPFW.js → CIQ39w4Y.js} +1 -1
- package/web/app/immutable/chunks/{o7jQDkBd.js → CJD0yCmp.js} +1 -1
- package/web/app/immutable/chunks/{_9zJA_sE.js → CJftmRaI.js} +2 -2
- package/web/app/immutable/chunks/{CjCKLQJ9.js → CJmMm5OV.js} +3 -3
- package/web/app/immutable/chunks/{Cy1jfWDK.js → CJx5kB-H.js} +1 -1
- package/web/app/immutable/chunks/{wV3FJ8_B.js → CK9vN0Vx.js} +1 -1
- package/web/app/immutable/chunks/{DaBtQ4Rq.js → CKZSqILX.js} +1 -1
- package/web/app/immutable/chunks/{BhHMFSp2.js → CLN26_YU.js} +1 -1
- package/web/app/immutable/chunks/{yfZcC2N6.js → CMFCeNSK.js} +1 -1
- package/web/app/immutable/chunks/{tkvqiJWu.js → CMPYMsb3.js} +1 -1
- package/web/app/immutable/chunks/{Dqvqq37X.js → CMUpwbv3.js} +1 -1
- package/web/app/immutable/chunks/{DB3uT95Q.js → CMlZAr5p.js} +1 -1
- package/web/app/immutable/chunks/{B_41a3se.js → CNfKBI6L.js} +1 -1
- package/web/app/immutable/chunks/{BKY4Q0TT.js → CO3XLT45.js} +1 -1
- package/web/app/immutable/chunks/{BNSN6XCP.js → COnJo1Ps.js} +1 -1
- package/web/app/immutable/chunks/COqplkxR.js +1 -0
- package/web/app/immutable/chunks/{D_eImbVR.js → CS70Dx2B.js} +1 -1
- package/web/app/immutable/chunks/{DM_khyu7.js → CSKp9zzd.js} +1 -1
- package/web/app/immutable/chunks/{RqQMOZAT.js → CU4KWWbD.js} +1 -1
- package/web/app/immutable/chunks/{Dwp84kQu.js → CVmPa1mG.js} +1 -1
- package/web/app/immutable/chunks/{CabY5Ajz.js → CWwVTuEX.js} +1 -1
- package/web/app/immutable/chunks/{D_LNh-Ja.js → CWz2XNBO.js} +1 -1
- package/web/app/immutable/chunks/{Bzcuhxw_.js → CXFlWWO4.js} +1 -1
- package/web/app/immutable/chunks/{BFfFhR1D.js → CZ-QhNUI.js} +1 -1
- package/web/app/immutable/chunks/{G3F9ni6B.js → C_9mGNUw.js} +1 -1
- package/web/app/immutable/chunks/{ZY6P3elZ.js → Ca98gcvs.js} +1 -1
- package/web/app/immutable/chunks/{CEM8KTTx.js → Cak06Ipv.js} +1 -1
- package/web/app/immutable/chunks/{BtBvnlNb.js → Cb4SpXNJ.js} +1 -1
- package/web/app/immutable/chunks/{cw-15yhi.js → Cd1q1wWY.js} +1 -1
- package/web/app/immutable/chunks/{Dh18lLbG.js → CdEPpK5c.js} +1 -1
- package/web/app/immutable/chunks/{DR4IFZXy.js → CdIWJpFL.js} +1 -1
- package/web/app/immutable/chunks/{CMxGr_ey.js → CeXNhl9e.js} +1 -1
- package/web/app/immutable/chunks/{Dp6TtOQM.js → CgGU0gTh.js} +1 -1
- package/web/app/immutable/chunks/{MlkHiaSF.js → ChjOKBnG.js} +1 -1
- package/web/app/immutable/chunks/{C_ZgD3DB.js → Cho0-9KA.js} +1 -1
- package/web/app/immutable/chunks/{DfUAlDfK.js → Ci0DCXei.js} +1 -1
- package/web/app/immutable/chunks/{CwnD43Xy.js → CiPzAmKo.js} +1 -1
- package/web/app/immutable/chunks/{g7hC9VeO.js → CjPOxOh3.js} +1 -1
- package/web/app/immutable/chunks/{D-sEMjzy.js → CkWz1mLV.js} +1 -1
- package/web/app/immutable/chunks/{B0RvqECX.js → CkY0UrZh.js} +1 -1
- package/web/app/immutable/chunks/{CIOI2vcP.js → CkdaiT2c.js} +1 -1
- package/web/app/immutable/chunks/{FdrUgkC6.js → CktoO_4b.js} +1 -1
- package/web/app/immutable/chunks/{Dl4PtwLv.js → ClPEPp33.js} +1 -1
- package/web/app/immutable/chunks/{CQ2L5Zaq.js → CmQUy1iX.js} +1 -1
- package/web/app/immutable/chunks/Cn0dUMcV.js +1 -0
- package/web/app/immutable/chunks/{CrTnLjrr.js → Con90c3P.js} +1 -1
- package/web/app/immutable/chunks/{BWvY9nb-.js → CpYOvNz6.js} +1 -1
- package/web/app/immutable/chunks/{CZhfnI2G.js → Crm_Oabm.js} +1 -1
- package/web/app/immutable/chunks/{Ce7GGwjY.js → CsZJMlJ8.js} +1 -1
- package/web/app/immutable/chunks/{BZWFeX8A.js → CsxWziDD.js} +1 -1
- package/web/app/immutable/chunks/{DB5XpEWp.js → CukxP3bH.js} +1 -1
- package/web/app/immutable/chunks/{CIe_IdcQ.js → CurjThIN.js} +1 -1
- package/web/app/immutable/chunks/{C5SRkSUi.js → CwhU2GJj.js} +1 -1
- package/web/app/immutable/chunks/{DWHgu0is.js → CycTTYyM.js} +1 -1
- package/web/app/immutable/chunks/{DHAp2Kc0.js → CzX6D7dd.js} +1 -1
- package/web/app/immutable/chunks/{dvtB8PCn.js → CzaiY1Hd.js} +1 -1
- package/web/app/immutable/chunks/{6myNhyGM.js → CzxOAjWm.js} +1 -1
- package/web/app/immutable/chunks/{klnEQWHo.js → D0TCMhf8.js} +1 -1
- package/web/app/immutable/chunks/{C7eqIAuZ.js → D0bF1ewx.js} +1 -1
- package/web/app/immutable/chunks/{5wkpHjhE.js → D0j6Pw9H.js} +1 -1
- package/web/app/immutable/chunks/{Dla5GTQo.js → D2BBYrzr.js} +1 -1
- package/web/app/immutable/chunks/{CGVGh8Xh.js → D3nmUaz-.js} +1 -1
- package/web/app/immutable/chunks/{CvLyzc7I.js → D3rExJpy.js} +2 -2
- package/web/app/immutable/chunks/{lzlrZOOx.js → D6WUVWA7.js} +3 -3
- package/web/app/immutable/chunks/{BsfZKUyJ.js → D6ag701e.js} +1 -1
- package/web/app/immutable/chunks/{D5TVVdCO.js → D77SC-WI.js} +1 -1
- package/web/app/immutable/chunks/{B3gMfjd-.js → D79Xzbwc.js} +1 -1
- package/web/app/immutable/chunks/{CzOKs-9h.js → D7XN10mW.js} +1 -1
- package/web/app/immutable/chunks/{DhJiUMGh.js → D7saN_TE.js} +1 -1
- package/web/app/immutable/chunks/{DS1-LIJo.js → D88N7fik.js} +1 -1
- package/web/app/immutable/chunks/{D7S6-tcN.js → D9e6EkDi.js} +1 -1
- package/web/app/immutable/chunks/{DY_VgpBE.js → DA1JRBSr.js} +1 -1
- package/web/app/immutable/chunks/{CUgyGwcZ.js → DB1FUARM.js} +1 -1
- package/web/app/immutable/chunks/{XDFbJjVz.js → DB2nf3HK.js} +1 -1
- package/web/app/immutable/chunks/{D2C9COn-.js → DB5oJv4b.js} +2 -2
- package/web/app/immutable/chunks/{BQqk8D2k.js → DBeaWkI6.js} +1 -1
- package/web/app/immutable/chunks/{DkXhJ1BL.js → DCAdK-TK.js} +1 -1
- package/web/app/immutable/chunks/{YDiGw5NX.js → DDEi4ohI.js} +3 -3
- package/web/app/immutable/chunks/{BxzohA4k.js → DEFiLw0G.js} +1 -1
- package/web/app/immutable/chunks/{CW-B1B_2.js → DFA3fNuM.js} +1 -1
- package/web/app/immutable/chunks/{hpioGaKy.js → DFngs4Y1.js} +2 -2
- package/web/app/immutable/chunks/{10-QywS9.js → DG1-cBAz.js} +1 -1
- package/web/app/immutable/chunks/{Di3YCBTy.js → DKvrlewQ.js} +2 -2
- package/web/app/immutable/chunks/{CJGJtaIh.js → DLx-21ka.js} +1 -1
- package/web/app/immutable/chunks/{DVqlnAf4.js → DMDLNgZw.js} +1 -1
- package/web/app/immutable/chunks/{CZnzjQ8w.js → DNSvJh5E.js} +1 -1
- package/web/app/immutable/chunks/{DMicUhyp.js → DODIyxsG.js} +1 -1
- package/web/app/immutable/chunks/{BAB5cGdR.js → DP1Kxs4G.js} +1 -1
- package/web/app/immutable/chunks/{C-6RTvqK.js → DRfuH7ia.js} +1 -1
- package/web/app/immutable/chunks/{DJXbxolz.js → DSGWdxMc.js} +1 -1
- package/web/app/immutable/chunks/{BveCGFpc.js → DSgbJdfR.js} +1 -1
- package/web/app/immutable/chunks/{BosvHmXn.js → DT7EyIEo.js} +1 -1
- package/web/app/immutable/chunks/{C9c1XoGB.js → DTY9Anmi.js} +3 -3
- package/web/app/immutable/chunks/{ADgiB_JD.js → DTzZbirR.js} +1 -1
- package/web/app/immutable/chunks/{BwCXlNwV.js → DUUOaZUX.js} +1 -1
- package/web/app/immutable/chunks/{R_gbTJLb.js → DUyvq6BR.js} +1 -1
- package/web/app/immutable/chunks/{CdhsB6Tk.js → DYhAW_nh.js} +1 -1
- package/web/app/immutable/chunks/{CZuwX70n.js → DYv-ImbG.js} +1 -1
- package/web/app/immutable/chunks/{i6o2muyh.js → D_tjJvUn.js} +1 -1
- package/web/app/immutable/chunks/{DCDVRPan.js → Db1vsTVc.js} +1 -1
- package/web/app/immutable/chunks/{CLgO49-n.js → Dcity0ZX.js} +1 -1
- package/web/app/immutable/chunks/{BJKM0aco.js → DcsVySxU.js} +2 -2
- package/web/app/immutable/chunks/{DreRsNdo.js → DdAEgsrh.js} +2 -2
- package/web/app/immutable/chunks/{CbwoPYB3.js → DfCpph1F.js} +1 -1
- package/web/app/immutable/chunks/{DE2DQy0T.js → DfQtmVKc.js} +1 -1
- package/web/app/immutable/chunks/{By3Fe9OQ.js → DhbB133w.js} +1 -1
- package/web/app/immutable/chunks/{Uz0kppPo.js → DjkW13rw.js} +1 -1
- package/web/app/immutable/chunks/{g1QznGhp.js → DkGGr_35.js} +1 -1
- package/web/app/immutable/chunks/{C5Pv37ZW.js → DlVBS_bY.js} +1 -1
- package/web/app/immutable/chunks/{bqipvca_.js → DmOmVRF-.js} +1 -1
- package/web/app/immutable/chunks/{B_3LwjEE.js → DmSe6pPh.js} +1 -1
- package/web/app/immutable/chunks/{BFZDKSps.js → DmfXn75c.js} +1 -1
- package/web/app/immutable/chunks/{uDkSpspe.js → Dn7IHtB4.js} +1 -1
- package/web/app/immutable/chunks/{CmxpZd0C.js → DnR6iKmC.js} +1 -1
- package/web/app/immutable/chunks/{DsLK0lhE.js → Dqbu3Xgt.js} +1 -1
- package/web/app/immutable/chunks/{BnFk2thR.js → DqvZHD0T.js} +1 -1
- package/web/app/immutable/chunks/{BqUNG33_.js → DrPmlbuk.js} +1 -1
- package/web/app/immutable/chunks/{BPDm13z6.js → Drhk0kLj.js} +1 -1
- package/web/app/immutable/chunks/{BpJkEHyp.js → DsB0QHTZ.js} +1 -1
- package/web/app/immutable/chunks/{BgwmEIlo.js → DsDqvgC9.js} +2 -2
- package/web/app/immutable/chunks/{CUF6AFLj.js → Dt2PgbAx.js} +1 -1
- package/web/app/immutable/chunks/{XfZ7vUz0.js → DtrdP8PT.js} +1 -1
- package/web/app/immutable/chunks/{BduQZGB-.js → Dw86rOY4.js} +1 -1
- package/web/app/immutable/chunks/{CHJwDFbB.js → Dwc9p0hU.js} +1 -1
- package/web/app/immutable/chunks/{BH8Pvo2Y.js → DxFe9Sj2.js} +1 -1
- package/web/app/immutable/chunks/{BjE588G3.js → DzCNJq2j.js} +1 -1
- package/web/app/immutable/chunks/{CHwCT_tY.js → EBip0AWO.js} +1 -1
- package/web/app/immutable/chunks/{CyqRVYAu.js → ELAGDjsa.js} +6 -6
- package/web/app/immutable/chunks/{Dv95zz7s.js → F5q6OMDX.js} +1 -1
- package/web/app/immutable/chunks/{C-3h7Yfn.js → FNy8h0Ka.js} +1 -1
- package/web/app/immutable/chunks/{Bh3EI3zr.js → HjEy7vfo.js} +1 -1
- package/web/app/immutable/chunks/{CWYIb5h_.js → HxrItRGs.js} +1 -1
- package/web/app/immutable/chunks/{COizPexY.js → LQm_WUG-.js} +1 -1
- package/web/app/immutable/chunks/{CRQ7p08H.js → MNJDbe1l.js} +1 -1
- package/web/app/immutable/chunks/{ryJoABjA.js → MQB3-RUl.js} +1 -1
- package/web/app/immutable/chunks/{BRhTL40m.js → NtBDgvZ2.js} +1 -1
- package/web/app/immutable/chunks/NtxbXOxK.js +1 -0
- package/web/app/immutable/chunks/{CDthvhNa.js → O077287M.js} +1 -1
- package/web/app/immutable/chunks/{BldMt0qe.js → OJdRtUTM.js} +1 -1
- package/web/app/immutable/chunks/{BNxYYK1k.js → OfJYxV7d.js} +1 -1
- package/web/app/immutable/chunks/{YXtDIgke.js → OvgkhrA7.js} +1 -1
- package/web/app/immutable/chunks/{yFbmvZcp.js → P3QocI-G.js} +1 -1
- package/web/app/immutable/chunks/{BddjjpyI.js → S6AtfZPI.js} +1 -1
- package/web/app/immutable/chunks/{CUqDFxUi.js → SM6VUydw.js} +1 -1
- package/web/app/immutable/chunks/{Cq94dOBc.js → SXQhdPre.js} +1 -1
- package/web/app/immutable/chunks/{ByA2IWok.js → S_DaaRo9.js} +3 -3
- package/web/app/immutable/chunks/{q9ZyJAa1.js → SmHZXgwN.js} +1 -1
- package/web/app/immutable/chunks/{Bm2P91T0.js → UunyqK3Z.js} +1 -1
- package/web/app/immutable/chunks/{DiJNvptO.js → W6sF2Cur.js} +1 -1
- package/web/app/immutable/chunks/{wM59GHbh.js → WoXHXc-b.js} +1 -1
- package/web/app/immutable/chunks/{CLp5K2Cv.js → XFXlU9Ox.js} +1 -1
- package/web/app/immutable/chunks/{MqeYlZEc.js → Z14_HVFv.js} +1 -1
- package/web/app/immutable/chunks/{DRzVKoEr.js → ZdVOG1YL.js} +1 -1
- package/web/app/immutable/chunks/{DryREkHP.js → ZyHSqKKz.js} +1 -1
- package/web/app/immutable/chunks/{Cb35PO19.js → a-uzFDRe.js} +1 -1
- package/web/app/immutable/chunks/{BiVxPdNt.js → b_O4pZtc.js} +1 -1
- package/web/app/immutable/chunks/{WVUqAkKa.js → cNKe5jVM.js} +1 -1
- package/web/app/immutable/chunks/{BtE8ng9B.js → cPv_DFdy.js} +1 -1
- package/web/app/immutable/chunks/{DUpzlKAB.js → dRfjsn2g.js} +1 -1
- package/web/app/immutable/chunks/{B-Q3uU6_.js → frxcf8rJ.js} +1 -1
- package/web/app/immutable/chunks/{DgrkG05k.js → guxjwWAr.js} +1 -1
- package/web/app/immutable/chunks/{C2sr3EWe.js → h3NGlSjH.js} +1 -1
- package/web/app/immutable/chunks/{FQFJV7C0.js → h9OLCnwu.js} +1 -1
- package/web/app/immutable/chunks/{CCAjvk0X.js → hCt1V8jO.js} +3 -3
- package/web/app/immutable/chunks/{DqJHcisc.js → hLkstuSa.js} +1 -1
- package/web/app/immutable/chunks/{DCtyzj03.js → jSlXIbXa.js} +1 -1
- package/web/app/immutable/chunks/{DiW8XnY5.js → kBqzcezI.js} +1 -1
- package/web/app/immutable/chunks/{CMziHXPQ.js → kNipFpJ2.js} +1 -1
- package/web/app/immutable/chunks/{Fd-rEJnu.js → liwjXrkc.js} +1 -1
- package/web/app/immutable/chunks/{Dk51AkwK.js → oB7eN-Qf.js} +1 -1
- package/web/app/immutable/chunks/{Bn37CRsE.js → oIy1WGn7.js} +1 -1
- package/web/app/immutable/chunks/{BrJIlZXG.js → plaTXQg3.js} +1 -1
- package/web/app/immutable/chunks/{DrzhapyO.js → puisNM3r.js} +1 -1
- package/web/app/immutable/chunks/{BpMUTlD3.js → qW1_mixC.js} +1 -1
- package/web/app/immutable/chunks/{Bl7A2mT8.js → qzRpsGdv.js} +1 -1
- package/web/app/immutable/chunks/{BugaF9Gz.js → roVeGd8G.js} +1 -1
- package/web/app/immutable/chunks/{Bw4cxMjz.js → tU-erPwy.js} +1 -1
- package/web/app/immutable/chunks/{D5HWvTpD.js → tguQ0uKY.js} +1 -1
- package/web/app/immutable/chunks/{BTLBASJX.js → wZqQTU3s.js} +1 -1
- package/web/app/immutable/chunks/{D94cTefs.js → yerK1wE4.js} +3 -3
- package/web/app/immutable/chunks/{BL7BGzQb.js → z-LfKEyT.js} +1 -1
- package/web/app/immutable/chunks/{CNgTnn6E.js → zKe1EQER.js} +1 -1
- package/web/app/immutable/chunks/{CLGFCqMt.js → zsS-jFOF.js} +1 -1
- package/web/app/immutable/entry/{app.B_j9AtYN.js → app.xn8bouEy.js} +3 -3
- package/web/app/immutable/entry/start.8SWo5eaL.js +1 -0
- package/web/app/immutable/nodes/{0.DI5KXj3q.js → 0.Czkxq6nC.js} +1 -1
- package/web/app/immutable/nodes/{1.BvUSq5GT.js → 1.CO4mj6IJ.js} +1 -1
- package/web/app/immutable/nodes/{10.ybliADtC.js → 10.BComrAcc.js} +5 -5
- package/web/app/immutable/nodes/{11.CWdfbS9L.js → 11.CNzRS9fn.js} +1 -1
- package/web/app/immutable/nodes/{12.DSU3TNHa.js → 12.C2n7WplF.js} +1 -1
- package/web/app/immutable/nodes/{13.B395oPY5.js → 13.D60oIlHW.js} +1 -1
- package/web/app/immutable/nodes/{14.DPnho-i5.js → 14.RHTyY8ed.js} +3 -3
- package/web/app/immutable/nodes/{15.IPdMXrpa.js → 15.DXCA05Q9.js} +1 -1
- package/web/app/immutable/nodes/{16.Cw2bhRT9.js → 16.BHGcOoK4.js} +1 -1
- package/web/app/immutable/nodes/{17.B-8GZWIV.js → 17.DMb17SuB.js} +1 -1
- package/web/app/immutable/nodes/{18.B_8rjYQB.js → 18.DZXncr1W.js} +1 -1
- package/web/app/immutable/nodes/{19.xCKjx5de.js → 19.BtsQ8Lfg.js} +2 -2
- package/web/app/immutable/nodes/{2.4eqTbGC7.js → 2.9HsLNQbg.js} +4 -4
- package/web/app/immutable/nodes/{20.DOuPBU4q.js → 20.JY9Qq_nG.js} +1 -1
- package/web/app/immutable/nodes/{3.gnGgxc2q.js → 3.BlmNm3mg.js} +1 -1
- package/web/app/immutable/nodes/{4.DhWSCpDA.js → 4.Cpy2Xerc.js} +1 -1
- package/web/app/immutable/nodes/{5.D-CLZiU3.js → 5.DeXJEhFX.js} +1 -1
- package/web/app/immutable/nodes/{6.D8GgaYC7.js → 6.Bpl-_47P.js} +1 -1
- package/web/app/immutable/nodes/{7.CYuvhsU8.js → 7.B1PEqe7o.js} +1 -1
- package/web/app/immutable/nodes/{8.Cfa_YzNb.js → 8.DEBn-U8f.js} +1 -1
- package/web/app/immutable/nodes/{9.Cjn8-jSI.js → 9.DtFfiQ9-.js} +4 -4
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +45 -45
- package/web/index.html +18 -18
- package/web/app/immutable/chunks/ClwCcrCE.js +0 -1
- package/web/app/immutable/chunks/D4MngzTk.js +0 -1
- package/web/app/immutable/chunks/DkN1HOvv.js +0 -1
- package/web/app/immutable/chunks/cRhti_97.js +0 -1
- package/web/app/immutable/entry/start.D5KmTXnC.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var i1=Object.defineProperty;var s1=(t,e,r)=>e in t?i1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>s1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as o1,dt as Pl,_ as R0,Y as ya,Z as l1,X as c1,a1 as u1,ab as d1,U as h1,dU as p1,M as m1,ba as Ll,cG as Pr,ds as Ol,aT as f1,aX as g1,co as v1,cE as b1,c9 as y1,dm as Ya,dO as w1,dH as k1,ay as Fn,al as x1,at as Ti,dr as $l,dE as S1,dY as Bl,dX as A1}from"./lJ2hrkPe.js";import{D as Ls,b3 as T1,bd as E1,aB as M1}from"./C9g6kBvz.js";import{L as C1,F as i0,I as I1}from"./DWPd-rzt.js";import{y$ as gn,IS as E,nH as ge,nG as Se,aO as z1,i as ql,E as Re,bh as c0,k0 as Ei,l$ as vn,al as jt,l_ as Os,m8 as $s,m5 as Bs,jz as Fl,gm as Xa,He as R1,tl as D1,Am as N1,oK as _1,mN as bn,BW as P1,iz as L1,mi as O1,lV as $1}from"./BwCXlNwV.js";import{bm as ne}from"./D4MngzTk.js";import{l as rt}from"./Di9Z0x4r.js";import{k as B1,d as xr}from"./GLifdN8w.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Ye,l as h0,g as q1,n as Pe,c as or,b as Ue,u as F1,d as H1}from"./CIyUrgF0.js";import{j as Hl}from"./uXuxG9cN.js";import{u as U1}from"./DJXbxolz.js";import{selectActiveWorkspaceIds as W1}from"./BpMUTlD3.js";import{i as He}from"./CbSeeP7P.js";import{l as wa,c as Mi}from"./ChTqQfQN.js";import"./MlkHiaSF.js";import{e as G1,h as Sr}from"./BV4GrhSx.js";import{h as p0}from"./BJKM0aco.js";import{i as qs}from"./DTWXK3Yd.js";import{f as Ci,o as Ul,p as Wl,h as j1,m as Gl,i as V1,k as K1}from"./CUqDFxUi.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function Y1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const X1=new Uint8Array(16);function Z1(){return crypto.getRandomValues(X1)}function Ii(t,e,r){return crypto.randomUUID?crypto.randomUUID():Q1(t)}function Q1(t,e,r){t=t||{};const n=t.random??t.rng?.()??Z1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Y1(n)}function zi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=zi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?C1(r.replace(/\.git\/?$/,""),e):null}function C5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":zi(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function I5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function z5(t){return t.type==="local"&&t.path?t.path:void 0}const J1=["/.clones/","/.repo-cache/"];function R5(t){const e=t.replaceAll("\\","/");return J1.some(r=>e.includes(r))}function D5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ed(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function N5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ed(r)}}function _5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const td="known-repos",rd=6e4;function nd({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function P5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function L5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<rd?"skip":"load"}function O5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=zi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function ad({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const $5=E.createSelector(t=>t.workspaceInitializer.hydrated),B5=E.createSelector(t=>t.workspaceInitializer.compactFormState),q5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),F5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),H5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),U5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),W5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),G5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),j5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),V5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),K5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),Y5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),X5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),Z5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),Q5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),J5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),e3=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),t3=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),r3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),n3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),a3=E.createSelector(t=>ad({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:E1.select(t),orchestratorId:T1.select(t)?.id??null})),id=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&o1.select(t)?JSON.stringify([r,e]):null}),i3=E.createSelector(t=>{const e=id.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),sd=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,td),r=ur.select(t);return nd({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),s3=E.createSelector(t=>Pl.select(t)?sd.select(t):[]),o3=E.createSelector(t=>M1.select(t)||void 0),Fs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class od{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(Fs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Fs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new od;function l3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function ld(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function u3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function d3(t,e){return`${e}:${t.agentId??"manual"}`}function cd(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ud(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function dd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function h3(t,e,r,n){const a=cd(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function p3(t,e,r){const n=ud(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function m3(t,e){const r=dd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function f3(t,e){return e===0&&t.length>0}function g3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function v3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function b3(t,e,r){return r?.path===t&&r?.staged===e}function y3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function w3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function hd(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function k3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=hd(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?Ri(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function x3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??z1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function pd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${l1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:pd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ri(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ri(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function S3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const Y=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:Y,htmlUrl:Y,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ri(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Hs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function A3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Hs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[c1(t)??e],n=Hs(t)?B1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(ld(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var i1=Object.defineProperty;var s1=(t,e,r)=>e in t?i1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>s1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as o1,dt as Pl,_ as R0,Y as ya,Z as l1,X as c1,a1 as u1,ab as d1,U as h1,dU as p1,M as m1,ba as Ll,cG as Pr,ds as Ol,aT as f1,aX as g1,co as v1,cE as b1,c9 as y1,dm as Ya,dO as w1,dH as k1,ay as Fn,al as x1,at as Ti,dr as $l,dE as S1,dY as Bl,dX as A1}from"./Bd92b52s.js";import{D as Ls,b3 as T1,bd as E1,aB as M1}from"./C7xMm-xs.js";import{L as C1,F as i0,I as I1}from"./DWPd-rzt.js";import{y$ as gn,IS as E,nH as ge,nG as Se,aO as z1,i as ql,E as Re,bh as c0,k0 as Ei,l$ as vn,al as jt,l_ as Os,m8 as $s,m5 as Bs,jz as Fl,gm as Xa,He as R1,tl as D1,Am as N1,oK as _1,mN as bn,BW as P1,iz as L1,mi as O1,lV as $1}from"./DUUOaZUX.js";import{bm as ne}from"./NtxbXOxK.js";import{l as rt}from"./BqCQZYkF.js";import{k as B1,d as xr}from"./BFPmZe29.js";import{a as u0}from"./BdWqymET.js";import{o as pe,r as Gt,e as d0,s as V,_ as Ye,l as h0,g as q1,n as Pe,c as or,b as Ue,u as F1,d as H1}from"./CIyUrgF0.js";import{j as Hl}from"./uXuxG9cN.js";import{u as U1}from"./DSGWdxMc.js";import{selectActiveWorkspaceIds as W1}from"./qW1_mixC.js";import{i as He}from"./CbSeeP7P.js";import{l as wa,c as Mi}from"./ChTqQfQN.js";import"./ChjOKBnG.js";import{e as G1,h as Sr}from"./BV4GrhSx.js";import{h as p0}from"./DcsVySxU.js";import{i as qs}from"./DTWXK3Yd.js";import{f as Ci,o as Ul,p as Wl,h as j1,m as Gl,i as V1,k as K1}from"./SM6VUydw.js";const Ge=[];for(let t=0;t<256;++t)Ge.push((t+256).toString(16).slice(1));function Y1(t,e=0){return(Ge[t[e+0]]+Ge[t[e+1]]+Ge[t[e+2]]+Ge[t[e+3]]+"-"+Ge[t[e+4]]+Ge[t[e+5]]+"-"+Ge[t[e+6]]+Ge[t[e+7]]+"-"+Ge[t[e+8]]+Ge[t[e+9]]+"-"+Ge[t[e+10]]+Ge[t[e+11]]+Ge[t[e+12]]+Ge[t[e+13]]+Ge[t[e+14]]+Ge[t[e+15]]).toLowerCase()}const X1=new Uint8Array(16);function Z1(){return crypto.getRandomValues(X1)}function Ii(t,e,r){return crypto.randomUUID?crypto.randomUUID():Q1(t)}function Q1(t,e,r){t=t||{};const n=t.random??t.rng?.()??Z1();if(n.length<16)throw new Error("Random bytes length must be >= 16");return n[6]=n[6]&15|64,n[8]=n[8]&63|128,Y1(n)}function zi(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=zi({...t,repositoryIdentity:void 0,githubUrl:`${i}/${s}`},a==="gitlab"?i:void 0);return o?.provider===a?o:null}const r=t.githubUrl;if(!r)return null;const n=/^(?:https:\/\/github\.com\/|git@github\.com:)([A-Za-z0-9_.-]+)\/([A-Za-z0-9_.-]+?)(?:\.git)?\/?$/i.exec(r);return n&&!n.slice(1).some(a=>a==="."||a==="..")?{provider:"github",instanceBaseUrl:"https://github.com",projectPath:`${n[1]}/${n[2]}`}:e?C1(r.replace(/\.git\/?$/,""),e):null}function C5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":zi(t,e)?.provider==="gitlab"?"gitlab":"github"}function jl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function I5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=jl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function z5(t){return t.type==="local"&&t.path?t.path:void 0}const J1=["/.clones/","/.repo-cache/"];function R5(t){const e=t.replaceAll("\\","/");return J1.some(r=>e.includes(r))}function D5(t){const e=new Set;for(const r of t){const{repositoryPath:n,worktreePath:a}=r;n&&a&&n===a&&e.add(n)}return e}function ed(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function N5(t,e){const{selectedValue:r,selectedRepoType:n,confirmedGithubUrl:a}=t;if(!(n!=="github"||!r)){if(a){const i=e(a)?.owner;if(i)return i}return e(r)?.owner??ed(r)}}function _5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,jl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const td="known-repos",rd=6e4;function nd({saved:t,source:e,dismissed:r,mode:n}){if(!e)return[...t];const a=new Map;if(n==="all")for(const s of[...e.repos,...t]){const o=gn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(gn(s),s);for(const s of e.repos)a.set(gn(s),s)}const i=[...a.values()].filter(s=>!r[gn(s)]);return n==="all"?i:i.slice(0,9)}function P5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function L5({visible:t,admission:e,entry:r,readyAt:n,now:a}){return!t||!e?"skip":!r||r.admission!==e?"load":r.status==="pending"?"reuse":r.status==="ready"&&n?.requestId===r.requestId&&a-n.at<rd?"skip":"load"}function O5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=zi(t,e);return r?.provider==="gitlab"?{repositoryCheckoutDraft:{instanceBaseUrl:r.instanceBaseUrl,projectPath:r.projectPath}}:r?{githubUrl:`https://github.com/${r.projectPath}`,exactRemote:!0}:{githubUrl:t.githubUrl||`https://github.com/${t.path}`,exactRemote:!0}}function ad({compactFormState:t,lastSubmittedAgent:e,specialists:r,orchestratorId:n}){if(t?.isTeamMode??e?.isTeamMode??!1)return n;const i=o=>r.some(c=>c.id===o),s=t?.selectedSpecialist!==void 0?t.selectedSpecialist:e?.selectedSpecialist!==void 0?e.selectedSpecialist:i(Ls)?Ls:null;return s===null||!i(s)?null:s}const $5=E.createSelector(t=>t.workspaceInitializer.hydrated),B5=E.createSelector(t=>t.workspaceInitializer.compactFormState),q5=E.createSelector(t=>t.workspaceInitializer.onboardingFormState),F5=E.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),H5=E.createSelector(t=>t.workspaceInitializer.branchByRepo),U5=E.createSelector(t=>t.workspaceInitializer.defaultParentPath),W5=E.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),G5=E.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),j5=E.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),V5=E.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),K5=E.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),Y5=E.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),X5=E.createSelector(t=>t.workspaceInitializer.agentByRepo),Z5=E.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),Q5=E.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),J5=E.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),e3=E.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),t3=E.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),r3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),n3=E.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),a3=E.createSelector(t=>ad({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:E1.select(t),orchestratorId:T1.select(t)?.id??null})),id=E.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&o1.select(t)?JSON.stringify([r,e]):null}),i3=E.createSelector(t=>{const e=id.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),sd=E.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,td),r=ur.select(t);return nd({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),s3=E.createSelector(t=>Pl.select(t)?sd.select(t):[]),o3=E.createSelector(t=>M1.select(t)||void 0),Fs="workspace-debug-flags",yn={enableCreationAnimation:!0,animationDuration:300,enablePageTransitions:!0,enableComponentTransitions:!0,showDebugInfo:!1,showPerformanceMetrics:!1,logStateChanges:!1,enableAutofocus:!0,enableBranchCaching:!0,enableFormPersistence:!0,simulateSlowNetwork:!1,simulateErrors:!1,networkDelay:0};class od{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return yn;try{const e=localStorage.getItem(Fs);if(e)return{...yn,...JSON.parse(e)}}catch(e){wa.error("Failed to load debug flags:",e)}return yn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem(Fs,JSON.stringify(this.flags))}catch(e){wa.error("Failed to save debug flags:",e)}this.listeners.forEach(e=>e(this.flags))}}get(e){return this.flags[e]}set(e,r){this.flags[e]=r,this.saveFlags()}toggle(e){typeof this.flags[e]=="boolean"&&(this.flags[e]=!this.flags[e],this.saveFlags())}reset(){this.flags={...yn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),wa.info("Debug panel:",this.flags.showDebugInfo?"ON":"OFF")}async simulateDelay(e){return this.flags.simulateSlowNetwork&&this.flags.networkDelay>0&&await new Promise(r=>setTimeout(r,this.flags.networkDelay)),e}}const ka=new od;function l3(t){if(!t)return"";let e=t;return e=e.replace(/\*\*(.+?)\*\*/g,"$1"),e=e.replace(/__(.+?)__/g,"$1"),e=e.replace(/(?<!\*)\*(?!\*)(.+?)(?<!\*)\*(?!\*)/g,"$1"),e=e.replace(/(?<!_)_(?!_)(.+?)(?<!_)_(?!_)/g,"$1"),e=e.replace(/~~(.+?)~~/g,"$1"),e=e.replace(/`([^`]+)`/g,"$1"),e=e.replace(/\[([^\]]+)\]\([^)]+\)/g,"$1"),e=e.replace(/^#{1,6}\s+/gm,""),e=e.replace(/^\*+\s*/gm,""),e=e.replace(/\s*\*+$/gm,""),e.trim()}function ld(t){return t.charAt(0).toUpperCase()+t.slice(1)}function c3(t){if(!t||t.trim().length===0)return ne.workspace_sidebarHeader_branchEmpty_error();if(/[\s~^:\\?*\[\\]/.test(t))return ne.workspace_sidebarHeader_branchInvalidChars_error();if(t.includes("@{"))return ne.workspace_sidebarChanges_branchAtBrace_error({seq:"@{"});if(t==="@")return ne.workspace_sidebarChanges_branchAt_error({symbol:"@"});if(t.startsWith("."))return ne.workspace_sidebarHeader_branchStartsDot_error();if(t.endsWith(".lock"))return ne.workspace_sidebarHeader_branchEndsLock_error();if(t.includes(".."))return ne.workspace_sidebarHeader_branchDoubleDot_error();if(t.startsWith("/")||t.endsWith("/"))return ne.workspace_sidebarHeader_branchSlashEnds_error();if(t.includes("//"))return ne.workspace_sidebarHeader_branchDoubleSlash_error();if(t.startsWith("-"))return ne.workspace_sidebarHeader_branchStartsDash_error();if(t.endsWith("."))return ne.workspace_sidebarChanges_branchEndsPeriod_error();const e=t.split("/");for(const r of e){if(r.startsWith("."))return ne.workspace_sidebarChanges_branchComponentStartsDot_error();if(r.endsWith(".lock"))return ne.workspace_sidebarChanges_branchComponentEndsLock_error()}if(t.length>250)return ne.workspace_sidebarHeader_branchTooLong_error()}function u3(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Za(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function d3(t,e){return`${e}:${t.agentId??"manual"}`}function cd(t,e){if(t.length===0||e>=t.length)return 0;const r=Math.max(0,e);let n=0;for(let a=r;a<t.length;a++)t[a].isPushed||n++;return n}function ud(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed&&n++;return n}function dd(t,e){if(t.length===0||e<0)return 0;const r=Math.min(e,t.length-1);let n=0;for(let a=0;a<=r;a++)t[a].isPushed||n++;return n}function h3(t,e,r,n){const a=cd(t,e),i=n?` (origin/${n})`:"";return r?a===1?ne.workspace_sidebarChanges_addToPr_one({suffix:i}):ne.workspace_sidebarChanges_addToPr_many({count:rt(a),suffix:i}):a===1?ne.workspace_sidebarChanges_pushToRemote_one({suffix:i}):ne.workspace_sidebarChanges_pushToRemote_many({count:rt(a),suffix:i})}function p3(t,e,r){const n=ud(t,e),a=r?` (origin/${r})`:"";return n===1?ne.workspace_sidebarChanges_undoPush_one({suffix:a}):ne.workspace_sidebarChanges_undoPush_many({count:rt(n),suffix:a})}function m3(t,e){const r=dd(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function f3(t,e){return e===0&&t.length>0}function g3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function v3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function b3(t,e,r){return r?.path===t&&r?.staged===e}function y3(t){if(t.length===0)return[];const e=new Map,r=[...t].sort((n,a)=>n.timestamp-a.timestamp);for(const n of r)for(const a of n.files??[]){const i=e.get(a.path);i?e.set(a.path,{additions:i.additions+(a.additions||0),deletions:i.deletions+(a.deletions||0)}):e.set(a.path,{additions:a.additions||0,deletions:a.deletions||0})}return Array.from(e.entries()).map(([n,a])=>({path:n,additions:a.additions,deletions:a.deletions,staged:!1}))}function w3(t,e,r){const n=new Set;let a=0,i=0;for(const s of t)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of e)n.add(s.relativePath),a+=s.stats?.additions||0,i+=s.stats?.deletions||0;for(const s of r)for(const o of s.files||[])n.add(o.path),a+=o.additions||0,i+=o.deletions||0;return{totalFilesChanged:n.size,totalAdditions:a,totalDeletions:i}}function hd(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function k3(t,e,r,n,a){if(t&&t.length>0){const i=a?.split("/")[0];return t.map(s=>{const o=s.url||r(s.number),c=hd(s.url),d=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Za(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:d,crossRepoDisplay:d?Ri(d,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Za(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function x3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??z1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function pd(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function xa(t,e,r){if(e.length===0)return t;const n=r?.split("/")[0],a=t.map(i=>({...i}));for(const i of e){const s=!i.resource&&!i.monitorAvailability&&(!r||i.repo===r),o=R0(i),c=o.toLowerCase(),d=a.find(p=>!!o&&p.url.toLowerCase()===c||(i.resource||i.monitorAvailability?p.monitorIdentity===ya(i):!p.resource&&!p.monitorAvailability&&(s?!p.crossRepo&&p.number===i.prNumber:p.crossRepo===i.repo&&p.number===i.prNumber)));if(d){d.monitorAgentId=i.agentId,d.resource=i.resource,d.monitorAvailability=i.monitorAvailability,d.monitorIdentity=i.resource||i.monitorAvailability?ya(i):void 0,d.monitorSnapshot=i.lastSnapshot??d.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${l1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?ya(i):void 0,url:o,htmlUrl:o,status:pd(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ri(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ri(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function S3(t,e,r,n,a){const i=r?.toLowerCase(),s=new Set;for(const S of n)S.repoOwner&&S.repoName&&s.add(`${S.repoOwner}/${S.repoName}`.toLowerCase());let o=t;const c=[],d=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):d.push(S):o.push(S)}const p=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();R0(S)&&o.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?p.push(S):R0(S)&&c.some(W=>W.url===R0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=xa(o,p,r),A=r?.split("/")[0],M=new Set([...w,...c,...d].map(S=>`${(S.crossRepo??r??"").toLowerCase()}#${S.number}`)),D=[...c];for(const S of n){if(!S.repoOwner||!S.repoName)continue;const C=`${S.repoOwner}/${S.repoName}`;for(const W of S.pullRequests??[]){const X=`${C.toLowerCase()}#${W.number}`;if(M.has(X))continue;M.add(X);const Y=W.url||`https://github.com/${C}/pull/${W.number}`,T=i!==void 0&&C.toLowerCase()===i;D.push({number:W.number,title:a(W),url:Y,htmlUrl:Y,status:Za(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ri(C,A)})}}return{own:w,otherRoots:xa(D,g,r),otherTracked:xa(d,v,r)}}function Hs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function A3(t){const e=t.status==="merged"?ne.workspace_prSection_merged_label():t.status==="closed"?ne.workspace_prSection_closed_label():t.status==="draft"?ne.workspace_prSection_statusDraft_label():Hs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[c1(t)??e],n=Hs(t)?B1(t.monitorSnapshot?.mergeQueue):null;n&&r.push(n);const a=t.status==="merged"||t.status==="closed"?void 0:t.monitorSnapshot;return a&&(a.checks.total===null||a.checks.passed===null||a.checks.failed===null||a.checks.pending===null||a.availability&&a.availability.checks!=="available"?r.push(ne.chat_monitoredPrs_hover_checksUnknown_label()):a.checks.total>0&&r.push(ne.workspace_prSection_statusChecks_tooltip({passed:rt(a.checks.passed),failed:rt(a.checks.failed),pending:rt(a.checks.pending)})),r.push(a.approvals.have===null||a.availability&&a.availability.approvals!=="available"?ne.chat_monitoredPrs_hover_approvalsUnknown_label():a.approvals.needed!=null?ne.workspace_prSection_statusApprovalsOfNeeded_tooltip({count:rt(a.approvals.have),needed:rt(a.approvals.needed)}):ne.workspace_prSection_statusApprovals_tooltip({count:rt(a.approvals.have)})),a.approvals.changesRequested!==null&&a.approvals.changesRequested>0&&r.push(ne.workspace_prSection_statusChangesRequested_tooltip({count:rt(a.approvals.changesRequested)})),a.availability&&a.availability.discussions!=="available"?r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()):typeof a.threads.unresolved=="number"?a.threads.unresolved>0&&r.push(ne.workspace_prSection_statusUnresolvedThreads_tooltip({count:rt(a.threads.unresolved)})):a.threads.resolutionRequired&&r.push(ne.workspace_prSection_statusUnresolvedThreadsUnknown_tooltip()),a.mergeBlockedReason&&r.push(ld(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function T3(t,e){return e.has(t??"manual")}function E3(t,e){return{path:t.relativePath,additions:t.stats.additions,deletions:t.stats.deletions,staged:e,status:t.status,attribution:t.attribution?.agent?{agentId:t.attribution.agent.agentId,agentName:t.attribution.agent.agentName,sessionId:t.attribution.agent.sessionId,turnNumber:t.attribution.agent.turnNumber,timestamp:t.attribution.timestamp}:void 0}}const Vl=500;function M3(t,e=Vl){const r=Math.max(0,Math.floor(e));return t.length<=r?{visible:t,shown:t.length,hiddenCount:0}:{visible:t.slice(0,r),shown:r,hiddenCount:t.length-r}}function C3(t,e,r=Vl){let n=Math.max(0,Math.floor(r)),a=0,i=0;return{groups:t.map(o=>{if(e(o))return{group:o,visibleFiles:[]};const c=Math.min(n,o.files.length);return n-=c,a+=c,i+=o.files.length-c,{group:o,visibleFiles:c===o.files.length?o.files:o.files.slice(0,c)}}),shown:a,hiddenCount:i}}function I3(t){if(t.hiddenCount<=0)return"";const e=rt(t.shown),r=rt(t.shown+t.hiddenCount);return t.hiddenCount===1?ne.workspace_fileChanges_hiddenFiles_one({shown:e,total:r}):ne.workspace_fileChanges_hiddenFiles_many({shown:e,total:r,count:rt(t.hiddenCount)})}function md(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Qa(t){return t.startsWith("@")?t.slice(1):t}function fd(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Qa(String(a));const i=[r,e,n.trim()].map(Qa).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?u1(s).path:void 0}function gd(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function vd(t){if(!t||t.getAttribute("data-mention")===null)return null;const e=t.getAttribute("data-type")||"",r=t.getAttribute("data-id")||"",n=t.getAttribute("data-label")||"",a=t.getAttribute("data-uri")||"",i=md(t.getAttribute("data-meta")),s={type:e,id:r,label:n,uri:a,meta:i},o=a.startsWith("intent://")?a:typeof i.fullUrl=="string"&&i.fullUrl.startsWith("intent://")?i.fullUrl:void 0;if(o&&(s.intentUrl=o),e==="file"||e==="file-range"){const c=fd(i,n,r,t.textContent||"");c&&(s.filePath=c);const d=gd(i);d!==void 0&&(s.line=d)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,d=c?Qa(String(c)).replace(/\/+$/,""):"";d&&(s.folderPath=d)}else if(e==="note"||e==="note-range"){const c=i.noteId||r;c&&(s.note=i.isExternalLink&&i.workspaceId?{id:c,workspaceId:String(i.workspaceId)}:{id:c})}return s}function z3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Di(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Lr=Di();function Kl(t){Lr=t}var Ir={exec:()=>null};function Yr(t){let e=[];return r=>{let n=Math.max(0,Math.min(3,r-1)),a=e[n];return a||(a=t(n),e[n]=a),a}}function ce(t,e=""){let r=typeof t=="string"?t:t.source,n={replace:(a,i)=>{let s=typeof i=="string"?i:i.source;return s=s.replace(Ke.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var bd=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ke={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>new RegExp(`^( {0,3}${t})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:Yr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Yr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Yr(t=>new RegExp(`^ {0,${t}}>`))},yd=/^(?:[ \t]*(?:\n|$))+/,wd=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,kd=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,W0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,xd=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Ni=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Yl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Xl=ce(Yl).replace(/bull/g,Ni).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),Sd=ce(Yl).replace(/bull/g,Ni).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}(?:\s|$)/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),_i=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,Ad=/^[^\n]+/,Pi=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Td=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Pi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ed=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,Ni).getRegex(),Hn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Li=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Md=ce("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n*|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>[^\\n]*\\n*|$)|<![A-Z][\\s\\S]*?(?:>[^\\n]*\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>[^\\n]*\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Li).replace("tag",Hn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Zl=t=>ce(_i).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list",t).replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Cd=Zl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),Id=Zl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),zd=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Id).getRegex(),Oi={blockquote:zd,code:wd,def:Td,fences:kd,heading:xd,hr:W0,html:Md,lheading:Xl,list:Ed,newline:yd,paragraph:Cd,table:Ir,text:Ad},Us=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex(),Rd={...Oi,lheading:Sd,table:Us,paragraph:ce(_i).replace("hr",W0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Us).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*(?:\\n|$))|~~~)[^\\n]*(?:\\n|$)").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]+[^ \\t\\n]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Hn).getRegex()},Dd={...Oi,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Li).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ir,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ce(_i).replace("hr",W0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",Xl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Nd=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,_d=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ql=/^( {2,}|\\)\n(?!\s*$)/,Pd=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,G0=/[^\s\p{P}\p{S}]/u,Ld=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),Od=/[\p{Pi}\p{Ps}"']/u,Jl=/(?!~)[\p{P}\p{S}]/u,$d=/(?!~)[\s\p{P}\p{S}]/u,Bd=/(?:[^\s\p{P}\p{S}]|~)/u,qd=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",bd?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),ec=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,Fd=ce(ec,"u").replace(/punct/g,Vt).getRegex(),Hd=ce(ec,"u").replace(/punct/g,Jl).getRegex(),Ud=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Wd=ce(Ud,"u").replace(/openQuote/g,Od).replace(/punct/g,Vt).getRegex(),tc="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gd=ce(tc,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),jd=ce(tc,"gu").replace(/notPunctSpace/g,Bd).replace(/punctSpace/g,$d).replace(/punct/g,Jl).getRegex(),Vd="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Kd=ce(Vd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Yd=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Xd="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Zd=ce(Xd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Qd=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),Jd="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",eh=ce(Jd,"gu").replace(/notPunctSpace/g,G0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),th=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),rh=ce(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),nh=ce(Li).replace("(?:-->|$)","-->").getRegex(),ah=ce("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",nh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Pn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,ih=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Pn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),rc=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Pn).replace("ref",Pi).getRegex(),nc=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Pi).getRegex(),sh=ce("reflink|nolink(?!\\()","g").replace("reflink",rc).replace("nolink",nc).getRegex(),Ws=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,$i={_backpedal:Ir,anyPunctuation:th,autolink:rh,blockSkip:qd,br:Ql,code:_d,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:Fd,emStrongRDelimAst:Gd,emStrongRDelimUnd:Yd,escape:Nd,link:ih,nolink:nc,punctuation:Ld,reflink:rc,reflinkSearch:sh,tag:ah,text:Pd,url:Ir},oh={...$i,emStrongLDelim:Wd,emStrongRDelimAst:Kd,emStrongRDelimUnd:Zd,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Pn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Pn).getRegex()},Ja={...$i,emStrongRDelimAst:jd,emStrongLDelim:Hd,delLDelim:Qd,delRDelim:eh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Ws).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:ce(/^(`+|~+|[^`~])(?:(?=[`~])|(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Ws).getRegex()},lh={...Ja,br:ce(Ql).replace("{2,}","*").getRegex(),text:ce(Ja.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},wn={normal:Oi,gfm:Rd,pedantic:Dd},S0={normal:$i,gfm:Ja,breaks:lh,pedantic:oh},ch={"&":"&","<":"<",">":">",'"':""","'":"'"},Gs=t=>ch[t];function Dt(t,e){if(e){if(Ke.escapeTest.test(t))return t.replace(Ke.escapeReplace,Gs)}else if(Ke.escapeTestNoEncode.test(t))return t.replace(Ke.escapeReplaceNoEncode,Gs);return t}function js(t){try{t=encodeURI(t).replace(Ke.percentDecode,"%")}catch{return null}return t}function Vs(t,e){let r=t.replace(Ke.findPipe,(i,s,o)=>{let c=!1,d=s;for(;--d>=0&&o[d]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ke.splitPipe),a=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(Ke.slashPipe,"|");return n}function tr(t,e,r){let n=t.length;if(n===0)return"";let a=0;for(;a<n&&t.charAt(n-a-1)===e;)a++;return t.slice(0,n-a)}function Ks(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ke.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{p as tt}from"./
|
|
1
|
+
import{p as tt}from"./DhbB133w.js";import{U as et,aZ as at,V as rt,a_ as it,Y as nt,b0 as ot,b as l,ay as E,X as st,q as lt,aX as ct,aH as dt,d as I,B as gt,r as ht,aJ as pt,O as ft}from"./C2gV5GaR.js";import{p as ut}from"./DSgbJdfR.js";import{o as mt}from"./BsRAiU3M.js";var vt=ft.pie,R={sections:new Map,showData:!1},b=R.sections,H=R.showData,St=structuredClone(vt),xt=l(()=>structuredClone(St),"getConfig"),wt=l(()=>{b=new Map,H=R.showData,ht()},"clear"),$t=l(({label:t,value:a})=>{if(a<0)throw new Error(`"${t}" has invalid value: ${a}. Negative values are not allowed in pie charts. All slice values must be >= 0.`);b.has(t)||(b.set(t,a),E.debug(`added new section: ${t}, with value: ${a}`))},"addSection"),Ct=l(()=>b,"getSections"),yt=l(t=>{H=t},"setShowData"),Dt=l(()=>H,"getShowData"),U={getConfig:xt,clear:wt,setDiagramTitle:ot,getDiagramTitle:nt,setAccTitle:it,getAccTitle:rt,setAccDescription:at,getAccDescription:et,addSection:$t,getSections:Ct,setShowData:yt,getShowData:Dt},bt=l((t,a)=>{tt(t,a),a.setShowData(t.showData),t.sections.map(a.addSection)},"populateDb"),Tt={parse:l(async t=>{const a=await ut("pie",t);E.debug(a),bt(a,U)},"parse")},At=l(t=>`
|
|
2
2
|
.pieCircle{
|
|
3
3
|
stroke: ${t.pieStrokeColor};
|
|
4
4
|
stroke-width : ${t.pieStrokeWidth};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{D as C}from"./
|
|
1
|
+
import{D as C}from"./D9e6EkDi.js";import{t as re,bo as y,bw as se,b as ae,bm as I}from"./NtxbXOxK.js";import{bs as ne,cb as oe,c5 as ie,bH as k,aD as b,a5 as G,bA as W,b_ as R,W as E,bn as le,bV as q,c9 as F,aA as x,ay as H,bl as N,bS as L,bO as O,a7 as ce,aB as P}from"./CJxGDkBm.js";import{i as de}from"./DrPmlbuk.js";import{k as me}from"./4f4S0sUh.js";import{s as D}from"./puisNM3r.js";import{a as ue}from"./C2gV5GaR.js";const K=C.shape.model,pe=C.shape.states.unwrap().element;function U(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function fe(t){return/^(?:|model|model\.(?:nodes|edges|groups)|states)$/.test(t)}function ge(t){let e=0;const s=()=>{for(;/[\t\n\r ]/.test(t[e]??"\0");)e+=1},a=(l,d)=>{if(d>64)throw new Error("JSON nesting limit exceeded");s();const f=e,m=t[e];if(m===void 0)return{complete:!1};if(m==='"'){for(e+=1;e<t.length;){const r=t[e++];if(r==="\\")e+=1;else if(r==='"')return{value:JSON.parse(t.slice(f,e)),complete:!0}}return{complete:!1}}if(m==="{"||m==="["){const r=m==="{",c=r?Object.create(null):[],h=r?"}":"]";if(e+=1,s(),t[e]===h)return e+=1,{value:c,complete:!0};for(;e<t.length;){let i="";if(r){if(t[e]!=='"')throw new Error("Expected JSON property");const _=a(l,d+1);if(!_.complete)return{value:c,complete:!1};if(i=_.value,s(),e===t.length)return{value:c,complete:!1};if(t[e++]!==":")throw new Error("Expected JSON colon")}const g=r?l?`${l}.${i}`:i:`${l}[]`,v=a(g,d+1);if((v.complete||fe(g)&&v.value!==void 0)&&(Array.isArray(c)?c.push(v.value):c[i]=v.value),!v.complete)return{value:c,complete:!1};if(s(),e===t.length)return{value:c,complete:!1};if(t[e]===h)return e+=1,{value:c,complete:!0};if(t[e++]!==",")throw new Error("Expected JSON separator");s()}return{value:c,complete:!1}}for(;e<t.length&&!/[\t\n\r ,}\]]/.test(t[e]);)e+=1;return e===t.length?{complete:!1}:{value:JSON.parse(t.slice(f,e)),complete:!0}},n=a("",0);if(s(),n.complete&&e!==t.length)throw new Error("Unexpected JSON suffix");return n}function J(t){const e=new Set;return t.filter(({id:s})=>e.has(s)?!1:(e.add(s),!0))}function z(t,e,s,a){return[t.visibleNodes,t.highlightedNodes].every(n=>n?.every(l=>e.has(l))??!0)&&[t.visibleEdges,t.highlightedEdges].every(n=>n?.every(l=>s.has(l))??!0)&&(t.visibleGroups?.every(n=>a.has(n))??!0)&&(t.camera?.focus===void 0||e.has(t.camera.focus))}function ve(t){if(!U(t)||!U(t.model))return null;const e=t.model,s=(i,g)=>Array.isArray(i)?i.filter(v=>g.safeParse(v).success):[];let a=J(s(e.nodes,K.shape.nodes.element)),n=J(s(e.groups,K.shape.groups.unwrap().element)),l=!0;for(;l;){const i=new Set(a.map(({id:u})=>u)),g=n.filter(u=>u.nodeIds.every(A=>i.has(A))),v=new Set(g.map(({id:u})=>u)),_=a.filter(u=>u.group===void 0||v.has(u.group));l=_.length!==a.length||g.length!==n.length,a=_,n=g}if(!a.length)return null;const d=new Set(a.map(({id:i})=>i)),f=J(s(e.edges,K.shape.edges.element)).filter(i=>d.has(i.from)&&d.has(i.to)),m=new Set(f.map(({id:i})=>i)),r=new Set(n.map(({id:i})=>i)),c=J(s(t.states,pe)).filter(i=>z(i,d,m,r)),h={...t,model:{...e,nodes:a,edges:f,...e.groups===void 0?{}:{groups:n}},...t.states===void 0?{}:{states:c}};return c.some(i=>i.id===h.currentStateId)||delete h.currentStateId,C.safeParse(h).success?h:null}function V(t){if(!C.safeParse(t).success)return null;const e=t,{nodes:s,edges:a,groups:n=[]}=e.model,l=e.states??[],d=new Set(s.map(({id:r})=>r)),f=new Set(a.map(({id:r})=>r)),m=new Set(n.map(({id:r})=>r));return[s,a,n,l].some(r=>new Set(r.map(({id:c})=>c)).size!==r.length)||s.some(r=>r.group!==void 0&&!m.has(r.group))||a.some(r=>!d.has(r.from)||!d.has(r.to))||n.some(r=>r.nodeIds.some(c=>!d.has(c)))||l.some(r=>!z(r,d,f,m))||e.currentStateId!==void 0&&!l.some(r=>r.id===e.currentStateId)?null:e}function Oe(t,e=!1){const s=(a,n,l)=>({rawSource:t,status:a,diagram:n,...l?{error:l}:{}});try{if(e){const n=V(JSON.parse(t));return n?s("complete",n):s("invalid",null,"Invalid diagram payload")}const a=ge(t);if(a.complete){const n=V(a.value);if(n)return s("complete",n)}return s("partial",ve(a.value))}catch{return s(e?"invalid":"partial",null,e?"Invalid diagram JSON":void 0)}}var he=P('<div class="diagram-feedback svelte-p097sp" role="alert"><strong> </strong> <span> </span></div> <pre class="diagram-source svelte-p097sp"> </pre>',1),we=P('<div class="diagram-feedback svelte-p097sp" role="status"> </div>'),Se=P('<div class="streaming-diagram svelte-p097sp"><!></div>');function _e(t,e){if(new.target)return re({component:_e,...t});ne(e,!0);let s=y(e,"diagram",7),a=y(e,"isStreaming",7,!1),n=y(e,"source",7),l=y(e,"sourceError",7),d=y(e,"viewResetKey",7),f=y(e,"onBindingClick",7),m=q(null),r=q(0),c="",h,i=!1;oe(()=>{const o=s(),p=n(),w=d(),S=a(),B=!!l();ie(()=>{i&&(w!==h||!p.startsWith(c))&&(k(m,null),k(r,b(r)+1)),i=!0,c=p,h=w,B||!S&&!o?k(m,null):o&&k(m,o,!0)})});const g=F(()=>l()?null:s()??(a()?b(m):null)),v=F(()=>!!l()||!a()&&!s());var _={get diagram(){return s()},set diagram(o){s(o),x()},get isStreaming(){return a()},set isStreaming(o=!1){a(o),x()},get source(){return n()},set source(o){n(o),x()},get sourceError(){return l()},set sourceError(o){l(o),x()},get viewResetKey(){return d()},set viewResetKey(o){d(o),x()},get onBindingClick(){return f()},set onBindingClick(o){f(o),x()},$set:se,$on:(o,p)=>ae(e,o,p)},u=Se(),A=G(u);{var M=o=>{var p=he(),w=H(p),S=G(w),B=N(S,!0),X=L(S,2),Y=N(X,!0);W(w);var j=L(w,2),Z=N(j,!0);R(($,ee,te)=>{O(B,$),O(Y,ee),D(j,"aria-label",te),O(Z,n())},[()=>I.markdown_mermaid_renderFailed_error(),()=>I.diagram_renderer_error_description(),()=>I.markdown_mermaid_viewSource_label()]),E(o,p)},Q=o=>{var p=ce(),w=H(p);me(w,()=>b(r),S=>{ue(S,{get diagram(){return b(g)},editable:!1,get viewResetKey(){return d()},get onBindingClick(){return f()}})}),E(o,p)},T=o=>{var p=we(),w=N(p,!0);R(S=>O(w,S),[()=>I.ui_spinner_loading_ariaLabel()]),E(o,p)};de(A,o=>{b(v)?o(M):b(g)?o(Q,1):o(T,-1)})}return W(u),R(()=>{D(u,"aria-busy",a()),D(u,"data-diagram-streaming",a())}),E(t,u),le(_)}export{_e as S,Oe as p};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./
|
|
1
|
+
import{t as oe,bo as st,bm as Z,bw as ie,bs as $t,bq as Me,b as ce}from"./NtxbXOxK.js";import{bs as le,a5 as L,bS as C,ay as Yt,aD as t,bA as $,bl as H,b_ as k,bO as D,W as _,bn as de,c9 as y,aA as rt,aB as F,bV as Mt,br as _a,aw as De,aj as Se,bH as V,ai as ya,be as Ia,b$ as xa,bf as wa,aC as he,a7 as Be}from"./CJxGDkBm.js";import{i as at}from"./DrPmlbuk.js";import{I as ea,g as jt,i as Ne}from"./jSlXIbXa.js";import{f as Xt,g as ne,s as gt,c as se}from"./puisNM3r.js";import{b as ba}from"./NtFyWdpR.js";import{f as Ut}from"./Bst2sLeL.js";import"./DcsVySxU.js";import{A as aa,b as na,a as sa}from"./CIQ39w4Y.js";import"./BpozSsrs.js";import{al as ra,aC as oa,an as Aa,ao as ka,ap as We,ag as ia,a as $a,p as Ta,dx as Ca,aO as Sa,aq as Na}from"./Bd92b52s.js";import{R as Oa}from"./BVSy1i1c.js";import{F as pe,bA as Fa,bf as Ra,aB as Ma,aV as Wa,cD as Da}from"./S6AtfZPI.js";import{H as Ba}from"./CS70Dx2B.js";import{A as La}from"./OvgkhrA7.js";import{L as Ea}from"./C54_KTzu.js";import{f as Pa}from"./Dcity0ZX.js";import{e as Nt,IS as Fe,nH as Ga,fI as za,bZ as ja,sh as Ha,uE as Ka}from"./DUUOaZUX.js";function qa(e){return e.type==="agent"}const Xa=180,Ya=180;var Le=F('<div class="activity-pill shrink-0 text-xs px-3 py-1.5 bg-muted/60 border border-border rounded-lg text-subtle max-w-32 truncate"><!> </div>'),Ua=F('<div class="text-ui text-subtle line-clamp-2 leading-tight px-1"> </div>'),Va=F('<div><div class="flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div> <!> <!></div>'),Za=F('<div class="text-sm text-primary-ink flex items-center justify-center gap-1"><!> <span class="truncate"> </span></div>'),Oe=F('<span class="text-xs text-subtle"> </span>'),Qa=F('<span class="status-pill text-xs px-1.5 py-0.5 bg-muted/80 rounded-md text-subtle truncate max-w-[130px]"> </span>'),Ja=F('<div class="text-ui text-subtle truncate w-full px-1 leading-tight"> </div>'),tn=F('<div class="flex flex-col items-center gap-1"><div class="flex items-center justify-center gap-1.5"><!> <!></div> <!></div>'),en=F('<div class="text-sm text-subtle line-clamp-3 leading-tight"> </div>'),an=F('<div class="avatar-wrapper h-9 w-12 flex items-center justify-center bg-background rounded-full"><!></div> <span class="font-semibold text-center leading-tight line-clamp-2"> </span> <div class="status-footer mt-auto pt-2 w-full text-center"><!></div>',1),nn=F('<div class="agent-card-wrapper flex items-center gap-3 shadow"><!> <!> <!></div>');function ca(e,a){if(new.target)return oe({component:ca,...e});le(a,!0);const s=()=>$t(_t,"$attentionRequest$",o),g=()=>$t(it,"$agentSession$",o),u=()=>$t(x,"$agentIsResponding$",o),c=()=>$t(ct,"$agentIsWaitingForOtherAgents$",o),d=()=>$t(P,"$agentIsWaiting$",o),i=()=>$t(I,"$agentIsThinking$",o),[o,l]=Me();let n=st(a,"agent",7),p=st(a,"activeFile",7),R=st(a,"activeNote",7),h=st(a,"agentNames",7),v=st(a,"onclick",7),b=st(a,"onmouseenter",7),S=st(a,"onmouseleave",7);const x=ra(n().agentId),it=oa(n().agentId),E=y(()=>!n().waitingForAgentIds||n().waitingForAgentIds.length===0?[]:n().waitingForAgentIds.map(A=>h()?.get(A)||Z.agentOverview_hierarchyCard_agent_fallback()).slice(0,2)),I=Aa(n().agentId),P=ka(n().agentId),ct=We(n().agentId),_t=ia(n().agentId),Ot=y(()=>{const A={attentionKind:s()?.kind??null};return g()?na(g(),A):sa({status:n().status,isResponding:u(),isWaitingForOtherAgents:c()},{...A,isCompleted:n().status==="completed",isFailed:n().status==="failed"})});var Dt={get agent(){return n()},set agent(A){n(A),rt()},get activeFile(){return p()},set activeFile(A){p(A),rt()},get activeNote(){return R()},set activeNote(A){R(A),rt()},get agentNames(){return h()},set agentNames(A){h(A),rt()},get onclick(){return v()},set onclick(A){v(A),rt()},get onmouseenter(){return b()},set onmouseenter(A){b(A),rt()},get onmouseleave(){return S()},set onmouseleave(A){S(A),rt()},$set:ie,$on:(A,B)=>ce(a,A,B)},ht=nn(),bt=L(ht);{var Ht=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Ra},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(()=>D(Rt,` ${p()??""}`)),_(A,B)};at(bt,A=>{p()&&u()&&A(Ht)})}var Ft=C(bt,2);{let A=y(()=>d()?"border-primary-ink border-2":"");Ut(Ft,{variant:"ghost",type:"button",get class(){return`agent-card flex flex-col items-center px-2.5 py-4 bg-card border border-border
|
|
2
2
|
hover:shadow transition-all cursor-pointer ${t(A)??""}`},get style(){return`width: 180px; height: 180px; anchor-name: --agent-hierarchy-${n().agentId??""};`},get onclick(){return v()},get onmouseenter(){return b()},get onmouseleave(){return S()},children:(B,Tt)=>{var Rt=an(),Lt=Yt(Rt),me=L(Lt);aa(me,{get agentId(){return n().agentId},variant:"emphasized",get state(){return t(Ot)},get specialist(){return n().specialist}}),$(Lt);var Qt=C(Lt,2),_e=H(Qt,!0),Jt=C(Qt,2),te=L(Jt);{var ye=ft=>{var r=Va(),f=L(r),M=L(f);{let z=y(()=>s().kind==="blocker"?Ma:Wa);pe(M,{get icon(){return t(z)},size:"xs"})}var W=C(M,2),m=H(W,!0);$(f);var K=C(f,2);{var nt=z=>{var It=Ua(),ot=H(It,!0);k(()=>D(ot,s().reason)),_(z,It)};at(K,z=>{s().reason&&z(nt)})}var N=C(K,2);{var G=z=>{Oa(z,{get date(){return s().timestamp},class:"text-ui text-ghost"})};at(N,z=>{s().timestamp&&z(G)})}$(r),k(z=>{Xt(r,1,`text-sm flex flex-col items-center gap-0.5 ${s().kind==="blocker"?"text-red-500":"text-warning-ink"}`),D(m,z)},[()=>s().kind==="blocker"?Z.chat_agentCard_attentionBlocker_label():Z.chat_agentCard_attentionDiscussion_label()]),_(ft,r)},yt=ft=>{var r=Za(),f=L(r);pe(f,{get icon(){return Fa},size:"xs",class:"animate-pulse"});var M=C(f,2),W=H(M,!0);$(r),k(m=>D(W,m),[()=>Z.agentOverview_hierarchyCard_waitingFor_label({names:t(E).join(", ")})]),_(ft,r)},Ie=ft=>{const r=y(()=>n().activeToolName?$a(n().activeToolName,n().activeToolInput||{}):null),f=y(()=>t(r)&&!t(r).hidden?t(r):null);var M=tn(),W=L(M),m=L(W);ea(m,{size:14});var K=C(m,2);{var nt=Y=>{var Q=Oe(),pt=H(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_thinking_label()]),_(Y,Q)},N=Y=>{var Q=Qa(),pt=H(Q);k(()=>D(pt,`${t(f).verb??""}
|
|
3
3
|
${t(f).subject??""}`)),_(Y,Q)},G=Y=>{var Q=Oe(),pt=H(Q);k(()=>D(pt,`${t(f).verb??""}...`)),_(Y,Q)},z=Y=>{var Q=Oe(),pt=H(Q,!0);k(Et=>D(pt,Et),[()=>Z.agentOverview_hierarchyCard_responding_label()]),_(Y,Q)};at(K,Y=>{i()?Y(nt):t(f)&&t(f).subject?Y(N,1):t(f)?Y(G,2):Y(z,-1)})}$(W);var It=C(W,2);{var ot=Y=>{var Q=Ja(),pt=H(Q,!0);k(()=>D(pt,n().lastResponse)),_(Y,Q)};at(It,Y=>{!t(f)&&n().lastResponse&&Y(ot)})}$(M),_(ft,M)},xe=ft=>{var r=en(),f=H(r,!0);k(()=>D(f,n().lastResponse)),_(ft,r)};at(te,ft=>{s()?ft(ye):c()?ft(yt,1):u()||i()?ft(Ie,2):n().lastResponse&&ft(xe,3)})}$(Jt),k(()=>D(_e,n().name)),_(B,Rt)},$$slots:{default:!0}})}var ge=C(Ft,2);{var Bt=A=>{var B=Le(),Tt=L(B);pe(Tt,{get icon(){return Da},size:"xs",class:"inline"});var Rt=C(Tt);$(B),k(Lt=>D(Rt,` ${Lt??""}`),[()=>Z.agentOverview_hierarchyCard_note_label()]),_(A,B)};at(ge,A=>{R()&&u()&&A(Bt)})}$(ht),_(e,ht);var Zt=de(Dt);return l(),Zt}const sn=50;var rn=F('<span class="sr-only"> </span> <!>',1);function Re(e,a){if(new.target)return oe({component:Re,...e});le(a,!0);const s=()=>$t(R,"$attentionRequest$",c),g=()=>$t(h,"$agentSession$",c),u=()=>$t(p,"$agentIsWaitingForOtherAgents$",c),[c,d]=Me();let i=st(a,"agent",7),o=st(a,"onclick",7),l=st(a,"onmouseenter",7),n=st(a,"onmouseleave",7);const p=We(i().agentId),R=ia(i().agentId),h=oa(i().agentId),v=y(()=>{const x={attentionKind:s()?.kind??null};return g()?na(g(),x):sa({status:i().status,isResponding:i().status==="responding",isWaitingForOtherAgents:u()},{...x,isCompleted:i().status==="completed",isFailed:i().status==="failed"})});var b={get agent(){return i()},set agent(x){i(x),rt()},get onclick(){return o()},set onclick(x){o(x),rt()},get onmouseenter(){return l()},set onmouseenter(x){l(x),rt()},get onmouseleave(){return n()},set onmouseleave(x){n(x),rt()},$set:ie,$on:(x,it)=>ce(a,x,it)};Ut(e,{variant:"ghost",type:"button",class:"background-agent-card relative flex flex-col items-center justify-center gap-1 rounded-full bg-sidebar hover:bg-muted/70 transition-colors cursor-pointer p-2",get style(){return`width: 50px; min-height: 50px; anchor-name: --agent-hierarchy-${i().agentId??""};`},get onclick(){return o()},get onmouseenter(){return l()},get onmouseleave(){return n()},children:(x,it)=>{var E=rn(),I=Yt(E),P=H(I,!0),ct=C(I,2);aa(ct,{get agentId(){return i().agentId},size:32,get state(){return t(v)},get specialist(){return i().specialist}}),k(()=>D(P,i().name)),_(x,E)},$$slots:{default:!0}});var S=de(b);return d(),S}var re=he('<path fill="none"></path>'),on=F('<div class="batch-group-box relative z-10 bg-background border border-border rounded-xl"></div>'),cn=F('<svg class="connector-svg" style="overflow: visible; display: block;"><!><!></svg> <div class="children-items-row flex items-start justify-center"></div>',1),ln=F('<div class="children-wrapper flex flex-col items-center"></div>'),dn=F('<div class="agent-tree-node flex flex-col items-center"><div class="agent-card-wrapper relative z-10"><!></div> <!></div>'),gn=F('<div class="absolute inset-0 flex items-center justify-center"><div class="text-center text-subtle"><p class="text-lg font-medium"> </p> <p class="text-sm mt-1"> </p></div></div>'),un=F('<div class="utility-corral border border-dashed border-border rounded-lg p-3 min-w-20"><div class="corral-label text-xs text-subtle font-medium mb-2 text-center"> </div> <div class="corral-agents flex flex-col items-center gap-2"></div></div>'),fn=F('<div class="utility-corrals flex flex-col gap-4"></div>'),pn=F('<div class="text-xs text-subtle capitalize"> </div>'),vn=F('<span class="px-1.5 py-0.5 text-ui font-medium bg-muted text-subtle rounded"> </span>'),hn=F('<span class="text-warning-ink"> </span>'),mn=F('<span class="text-primary-ink"> </span>'),_n=F('<span class="text-green-500"> </span>'),yn=F('<span class="text-red-500"> </span>'),In=F("<span> </span>"),xn=F('<div class="text-xs text-subtle line-clamp-3 border-t border-border pt-2 mt-2"> </div>'),wn=F('<div class="text-xs text-subtle flex items-center gap-1"><!> <span> </span></div>'),bn=F('<div class="p-3 space-y-2"><div class="flex items-center gap-2"><!> <div class="flex-1 min-w-0"><div class="font-medium text-sm truncate"> </div> <!></div> <!></div> <div class="text-xs text-subtle"><!></div> <div class="text-xs text-subtle"> </div> <!> <!></div>'),An=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),kn=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="12" y1="5" x2="12" y2="19"></line><line x1="5" y1="12" x2="19" y2="12"></line></svg>'),$n=he('<svg class="w-4 h-4" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path></svg>'),Tn=F('<div class="canvas-content absolute inset-0 flex items-center justify-center p-8 svelte-13q5gm4"><div class="hierarchy-wrapper flex items-start gap-8"><!> <div class="main-hierarchy flex flex-col items-center gap-4"><div class="hierarchy-container flex flex-col items-center gap-4"><div class="roots-row flex justify-center"></div></div></div></div> <!></div> <div class="zoom-controls absolute bottom-4 right-4 flex items-center gap-1 bg-card border border-border rounded-lg shadow-sm p-1"><!> <!> <!> <div class="w-px h-6 bg-border mx-1"></div> <!></div> <div class="absolute bottom-4 left-4 text-xs text-subtle"> </div>',1),Cn=F('<div class="agent-hierarchy-graph relative w-full h-full overflow-hidden bg-background svelte-13q5gm4"><!></div>');function la(e,a){if(new.target)return oe({component:la,...e});le(a,!0);const s=(r,f=wa,M)=>{const W=y(()=>f().agent.isBackground),m=y(()=>f().children.length>0),K=y(()=>t(m)&&f().children[0]?.agent.isBackground?sn:Xa),nt=y(()=>16),N=y(()=>60),G=y(()=>t(m)?Rt(f().children,t(K),i):[]),z=y(()=>(()=>{const O=[];for(let q=0;q<t(G).length;q+=Tt)O.push(t(G).slice(q,q+Tt));return O})()),It=y(()=>t(z).map(O=>O.reduce((q,J)=>q+J.width,0)+Math.max(0,O.length-1)*i)),ot=y(()=>Math.max(...t(It),0));var Y=dn(),Q=L(Y),pt=L(Q);{var Et=O=>{Re(O,{get agent(){return f().agent},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})},we=O=>{ca(O,{get agent(){return f().agent},get activeFile(){return f().activeFile},get activeNote(){return f().activeNote},get agentNames(){return t(Lt)},onclick:q=>te(f().agent,q),onmouseenter:()=>x(f().agent.agentId),onmouseleave:it})};at(pt,O=>{t(W)?O(Et):O(we,-1)})}$(Q);var be=C(Q,2);{var U=O=>{const q=y(()=>f().agent.status==="waiting"?f().agent.waitingForAgentIds||[]:[]),J=y(()=>t(q).length>0),et=y(()=>t(N)/2);var xt=ln();jt(xt,21,()=>t(z),Ne,(Kt,At,Ct)=>{const Pt=y(()=>t(It)[Ct]),ee=y(()=>(t(ot)-t(Pt))/2),Ae=y(()=>(()=>{let ut=0;return t(At).map(j=>{const St=ut+j.width/2;return ut+=j.width+i,St})})());var ue=cn(),Gt=Yt(ue);gt(Gt,"height",t(N));var qt=L(Gt);{var ke=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} -${Ya} L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)},$e=ut=>{var j=re();k(()=>{gt(j,"d",`M ${t(ot)/2} 0 L ${t(ot)/2} ${t(N)/3}`),gt(j,"stroke",t(J)?"var(--primary-ink)":"currentColor"),Xt(j,0,se(t(J)?"":"text-border")),gt(j,"stroke-width",t(J)?2:1)}),_(ut,j)};at(qt,ut=>{Ct>0?ut(ke):ut($e,-1)})}var Te=C(qt);jt(Te,17,()=>t(At),Ne,(ut,j,St)=>{const vt=y(()=>t(ee)+t(Ae)[St]),lt=y(()=>t(ot)/2),zt=y(()=>t(j).type==="batch"?t(j).children.some(wt=>t(q).includes(wt.agent.agentId)):t(q).includes(t(j).child.agent.agentId)),mt=y(()=>t(zt)?"var(--color-primary)":"currentColor"),kt=y(()=>t(zt)?"":"text-border"),w=y(()=>t(zt)?2:1),T=y(()=>t(j).type==="batch"?t(N)-A:t(N)),tt=y(()=>Math.abs(t(vt)-t(lt))),X=y(()=>Math.min(t(nt),t(tt)/2));var fe=Be(),Ce=Yt(fe);{var va=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3} L ${t(lt)??""} ${t(T)??""}`),gt(dt,"stroke",t(mt)),Xt(dt,0,se(t(kt)),"svelte-13q5gm4"),gt(dt,"stroke-width",t(w))}),_(wt,dt)},ha=wt=>{var dt=re();k(()=>{gt(dt,"d",`M ${t(lt)??""} ${t(N)/3}
|
|
4
4
|
L ${t(lt)??""} ${t(et)-t(X)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bm as h,_ as x}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/CCW4xg3d.js","/app/immutable/chunks/BVSy1i1c.js","/app/immutable/chunks/DWPd-rzt.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/chunks/NtxbXOxK.js","/app/immutable/chunks/CJxGDkBm.js","/app/immutable/chunks/DrPmlbuk.js","/app/immutable/chunks/puisNM3r.js","/app/immutable/chunks/BpozSsrs.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/Bst2sLeL.js","/app/immutable/chunks/NtFyWdpR.js","/app/immutable/chunks/jSlXIbXa.js","/app/immutable/chunks/DcsVySxU.js","/app/immutable/chunks/BnE71Sxv.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CDAGrCMS.js","/app/immutable/chunks/4f4S0sUh.js","/app/immutable/chunks/BqCQZYkF.js","/app/immutable/chunks/b_O4pZtc.js","/app/immutable/chunks/DUUOaZUX.js","/app/immutable/chunks/PVXvIyE8.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/A91xcSiw.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/DJfJ5NWH.js","/app/immutable/chunks/S6AtfZPI.js","/app/immutable/chunks/BkAhwE4C.js","/app/immutable/chunks/BoIfXiRv.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/notify.B1j5oT2y.css","/app/immutable/chunks/BWW2m17x.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BFPmZe29.js","/app/immutable/chunks/DTWXK3Yd.js","/app/immutable/chunks/BV4GrhSx.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/C2Q_f-Ao.js","/app/immutable/chunks/Bd92b52s.js","/app/immutable/chunks/DSGWdxMc.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/DsDqvgC9.js","/app/immutable/chunks/DKwAaLwd.js","/app/immutable/chunks/CMPYMsb3.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bm as h,_ as x}from"./NtxbXOxK.js";import{i as f,IS as a,de as P,He as S,yT as q,Fq as N,vw as R,qQ as W,v4 as H,KX as U}from"./DUUOaZUX.js";import{d as I}from"./BFPmZe29.js";import{E as V}from"./DcsVySxU.js";import{parseIntentLink as j}from"./B7KiQTDj.js";import{k as y}from"./BVSy1i1c.js";import"./CJxGDkBm.js";import"./puisNM3r.js";import"./BpozSsrs.js";import"./ChTqQfQN.js";import"./b_O4pZtc.js";import{x as B,k as C,w as L}from"./CMFCeNSK.js";import{ds as D}from"./Bd92b52s.js";import{p as E,o as K,h as $}from"./DUyvq6BR.js";const p="assistant-content",z=a.createSelector(t=>{const r=E.select(t),s=K.select(t),e=$.select(t).find(i=>i.agentId===s)??r.find(i=>i.isActive)??r.find(i=>i.messageCount>0)??r[0];return P(e?.agentId??null)}),O=new Map;function Q(t,r=!1){const s=O.get(t)??{explicit:0,background:0},e={explicit:s.explicit+(r?0:1),background:s.background+(r?1:0)};return O.set(t,e),r?e:{explicit:e.explicit}}function m(t,r){const s=O.get(t);return s!==void 0&&r.explicit===s.explicit&&(r.background===void 0||r.background===s.background)}async function X(t){a.dispatch(R(t)),L.select(a.state,t).restoreStatus==="pending"&&await new Promise(r=>{const s=L.withStore(a)(t).subscribe(e=>{e.restoreStatus!=="pending"&&(r(),queueMicrotask(()=>s()))})})}function _(t,r,s){const e=L.select(a.state,s);if(!e.panels[p]||Object.keys(e.panels).some(i=>i!==p)){const i=e.panels[p],d=Object.values(e.panels).flatMap(n=>n.tabs.filter(o=>o.type!=="agent"||o.workspaceId!==f)),c=d.some(n=>n.id===i?.activeTabId)?i?.activeTabId??null:d.at(-1)?.id??null;a.dispatch(W(s,{root:{type:"panel",panelId:p},panels:{[p]:{id:p,tabs:d,activeTabId:c}},focusedPanelId:e.focusedPanelId===p?p:null,hiddenTabs:C.select(a.state,s)}))}a.dispatch(H(s,t,p,void 0,!0,void 0,!1,r.background||r.preserveFocus,void 0,r.background))}async function de(t,r={}){try{return await G(t,r)}catch(s){return y.error(h.ui_linkHandler_notFound_title(),{description:s instanceof Error?s.message:String(s)}),!0}}async function G(t,r){const s=/^intent:\/\/local\/([^/?#]+)\/agent\/([^/?#]+)$/.exec(t),e=t.startsWith("intent://")?j(t):null,i=e?.valid&&e.type==="workspace"?[t,e.resourceId]:/^\/workspace\/([^/?#]+)\/?$/.exec(t),d=/^https?:\/\//.test(t)&&!V(t);if(!i&&!s&&!d&&!(e?.valid&&["file","message","note","task"].includes(e.type))||i&&[f,"new"].includes(i[1]))return!1;const c=E.select(a.state),n=r.agentId?P(r.agentId):r.background?c.length===1?P(c[0].agentId):null:r.layoutId??z.select(a.state);if(!n)return!0;const o=Q(n,r.background);if(await X(n),!m(n,o))return!0;if(i){const u=i[1],g=await I.workspaces.get(u);return m(n,o)?g?(a.dispatch(S(g)),_({type:"workspace",title:g.title,workspaceId:u,closable:!0},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(s)return T(s[1],s[2],r,n,o);if(d){const{resolveBrowserLinkForOpen:u}=await x(async()=>{const{resolveBrowserLinkForOpen:v}=await import("./CCW4xg3d.js").then(k=>k.b);return{resolveBrowserLinkForOpen:v}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31]),import.meta.url),g=await u(t);return m(n,o)&&_({type:"browser",title:new URL(t).hostname,browserUrl:g.url,browserRequestedUrl:g.requestedUrl,workspaceId:f,closable:!0},r,n),!0}if(!e?.valid)return!1;const b=e.workspaceId??f;if(e.type==="file"){const u=await I.workspaces.get(b);return m(n,o)?u?(a.dispatch(S(u)),_({type:"file",title:e.resourceId.split("/").at(-1)??e.resourceId,filePath:e.resourceId,workspaceId:b,closable:!0,data:{line:e.line,filePathIsLiteral:!0}},r,n),!0):(y.error(h.workspace_loader_notFound_title()),!0):!0}if(e.type==="message"&&e.agentId)return T(b,e.agentId,r,n,o,e.resourceId);if(e.type!=="note"&&e.type!=="task")return!1;const l=e.workspaceId??f,[w,A]=await Promise.all([a.dispatch(q(l,e.resourceId)),Promise.resolve(D.select(a.state,l)??I.workspaces.get(l)).catch(()=>null)]);if(!m(n,o))return!0;if(!w||String(w.workspaceId)!==l)return y.error(h.ui_linkHandler_notFound_title(),{description:h.ui_linkHandler_noteNotFound_error({noteId:e.resourceId,workspaceId:l})}),!0;A&&String(A.id)===l&&a.dispatch(S(A));const F=Object.entries(B.select(a.state)).some(([u,g])=>{const v=k=>k.type==="note"&&k.noteId===String(w.id)&&(k.workspaceId??u)===l;return Object.values(g.panels).some(k=>k.tabs.some(v))||C.select(a.state,u).some(v)}),M=a.state.transientUi.byWorkspaceId[l]?.noteViewModeByNoteId[String(w.id)];return!F&&(!r.background||M===void 0)&&a.dispatch(N(l,String(w.id),"editor")),_({type:"note",title:w.title,noteId:String(w.id),workspaceId:l,closable:!0},r,n),!0}async function T(t,r,s,e,i,d){const c=await I.agents.get(r,t===f?void 0:t);t===f&&c&&(t=String(c.workspaceId));const n=t===f?null:await I.workspaces.get(t);if(!m(e,i))return!0;if(!n&&t!==f||!c||String(c.workspaceId)!==t)return y.error(h.ui_linkHandler_notFound_title()),!0;if(n&&a.dispatch(S(n)),a.dispatch(U(c)),_({type:"agent",title:c.name??r,agentId:r,workspaceId:t,closable:!0},s,e),d&&!s.background){const{openMessage:o}=await x(async()=>{const{openMessage:b}=await import("./BWW2m17x.js");return{openMessage:b}},__vite__mapDeps([32,33,34,35,4,5,21,22,23,24,3,8,25,15,2,13,14,7,9,16,36,37,38,39,40,27,17,6,12,41,19,42,43,44,45]),import.meta.url);o({workspaceId:t,agentId:r,messageId:d,contentAlreadyOpen:!0})}return!0}export{p as ASSISTANT_CONTENT_PANEL_ID,z as selectAssistantPanelLayoutId,de as showAssistantContent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./
|
|
1
|
+
import{t as fe,bo as m,bw as ue,b as pe,bm as y}from"./NtxbXOxK.js";import{bs as ge,a7 as X,ay as E,W as b,bn as ve,aA as _,a5 as V,aD as e,bS as j,bl as Z,b_ as P,bO as ee,bA as G,aB as z,bf as me,c9 as i}from"./CJxGDkBm.js";import{i as I}from"./DrPmlbuk.js";import{g as be}from"./jSlXIbXa.js";import{f as N,s as u,g as O}from"./puisNM3r.js";import{F as _e,bt as he,bs as xe}from"./S6AtfZPI.js";import{f as ye,ae as ke}from"./Bst2sLeL.js";import"./DcsVySxU.js";import{P as Se}from"./C6gTWqQd.js";import{l as H}from"./BqCQZYkF.js";import{a as te,p as we,b as Pe,d as ze}from"./OJdRtUTM.js";var $e=z('<span aria-hidden="true"></span>'),Ie=z('<span class="absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-full bg-background text-foreground" aria-hidden="true"><!></span>'),Me=z('<span><span data-presence-avatar-tile=""><!></span> <!> <!></span>'),Ae=z('<!> <span class="sr-only"> </span>',1),Ce=z('<span class="inline-flex shrink-0 items-center justify-center rounded-full border border-background bg-muted px-1 font-medium leading-none text-muted-foreground"> </span>'),Le=z('<span role="group" data-presence-avatar-stack=""><!> <!></span>');function Ve(J,f){if(new.target)return fe({component:Ve,...J});ge(f,!0);const R=(t,a=me)=>{const k=i(()=>ze(a())),L=i(()=>a().online===!1);var d=Me();let o;var r=V(d);let v;var $=V(r);{let n=i(()=>Pe(a()));Se($,{fill:!0,get avatarUrl(){return a().avatarUrl},get label(){return e(n)}})}G(r);var S=j(r,2);{var Y=n=>{var s=$e();P(()=>{N(s,1,`absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full border border-background ${a().online?"bg-success":"bg-muted-foreground"}`),u(s,"data-presence-status",a().online?"online":"offline")}),b(n,s)};I(S,n=>{l()==="stack"&&a().hostRole&&a().online!==void 0&&n(Y)})}var q=j(S,2);{var c=n=>{var s=Ie();let h;var w=V(s);{let x=i(()=>a().identity.provider==="gitlab"?he:xe);_e(w,{get icon(){return e(x)}})}G(s),P(x=>{u(s,"data-presence-identity-provider",a().identity.provider),u(s,"data-presence-identity-host",a().identity.host),h=O(s,"",h,{width:`${e(D)??""}px`,height:`${e(D)??""}px`,"font-size":x})},[()=>`${Math.round(e(D)*.8)}px`]),b(n,s)};I(q,n=>{l()==="stack"&&a().identity&&n(c)})}G(d),P(n=>{N(d,1,`relative inline-flex shrink-0 rounded-full border ${l()==="tile"?"border-border":`border-background ${e(k)?ne[e(k)]:""}`}`),u(d,"data-presence-avatar",a().principalId),u(d,"data-presence-ring",l()==="stack"?e(k)??void 0:void 0),u(d,"data-presence-offline",e(L)||void 0),u(d,"data-presence-self",a().self||void 0),o=O(d,"",o,{width:`${g()??""}px`,height:`${g()??""}px`}),N(r,1,`inline-flex h-full w-full items-center justify-center overflow-hidden rounded-full font-medium leading-none ${l()==="tile"?"bg-muted text-muted-foreground":"text-primary-foreground"} ${e(L)||l()==="tile"&&a().viewing===!1?"grayscale":""}`),v=O(r,"",v,{"font-size":e(K),"background-color":n})},[()=>l()==="stack"?we(a().principalId):void 0]),b(t,d)};let p=m(f,"people",7),M=m(f,"maxVisible",7,3),g=m(f,"size",7,16),l=m(f,"variant",7,"stack"),A=m(f,"side",7,"bottom"),B=m(f,"decorative",7,!1),C=m(f,"action",7),F=m(f,"class",7,"");const ae=i(()=>p().slice(0,M())),T=i(()=>Math.max(0,p().length-M())),U=i(()=>p().filter(t=>!t.self&&t.online!==!1).length),W=i(()=>p().filter(t=>!t.self&&t.online===!1).length),re=i(()=>e(U)===1?y.presence_avatarStack_people_one():e(U)>1?y.presence_avatarStack_people_many({count:H(e(U))}):e(W)===0?y.presence_avatarStack_onlyYou_label():e(W)===1?y.presence_avatarStack_offline_one():y.presence_avatarStack_offline_many({count:H(e(W))})),K=i(()=>`${Math.max(8,Math.round(g()*.55))}px`),D=i(()=>Math.max(9,Math.round(g()*.5))),ne={owner:"ring-2 ring-info",member:"ring-2 ring-success",guest:"ring-2 ring-warning-ink",offline:"ring-2 ring-muted-foreground/40"};var se={get people(){return p()},set people(t){p(t),_()},get maxVisible(){return M()},set maxVisible(t=3){M(t),_()},get size(){return g()},set size(t=16){g(t),_()},get variant(){return l()},set variant(t="stack"){l(t),_()},get side(){return A()},set side(t="bottom"){A(t),_()},get decorative(){return B()},set decorative(t=!1){B(t),_()},get action(){return C()},set action(t){C(t),_()},get class(){return F()},set class(t=""){F(t),_()},$set:ue,$on:(t,a)=>pe(f,t,a)},Q=X(),ie=E(Q);{var oe=t=>{var a=Le(),k=V(a);be(k,17,()=>e(ae),o=>o.principalId,(o,r)=>{var v=X(),$=E(v);{var S=c=>{const n=i(()=>{const{label:s,onSelect:h}=C()(e(r));return{personLabel:s,onSelect:h}});{let s=i(()=>e(n).onSelect?void 0:!0),h=i(()=>e(n).onSelect??void 0);ye(c,{variant:"plain",wrapContent:!1,class:"h-auto rounded-full p-0 aria-disabled:opacity-100",get tooltip(){return e(n).personLabel},get tooltipSide(){return A()},get"aria-label"(){return e(n).personLabel},get"aria-disabled"(){return e(s)},get onclick(){return e(h)},get"data-presence-person-button"(){return e(r).principalId},children:(w,x)=>{R(w,()=>e(r))},$$slots:{default:!0}})}},Y=c=>{R(c,()=>e(r))},q=c=>{{let n=i(()=>te(e(r)));ke(c,{get content(){return e(n)},get side(){return A()},children:(s,h)=>{var w=Ae(),x=E(w);R(x,()=>e(r));var le=j(x,2),de=Z(le,!0);P(ce=>ee(de,ce),[()=>te(e(r))]),b(s,w)},$$slots:{default:!0}})}};I($,c=>{C()?c(S):B()?c(Y,1):c(q,-1)})}b(o,v)});var L=j(k,2);{var d=o=>{var r=Ce();let v;var $=Z(r,!0);P(S=>{u(r,"data-presence-overflow",e(T)),v=O(r,"",v,{"min-width":`${g()??""}px`,height:`${g()??""}px`,"font-size":e(K)}),ee($,S)},[()=>y.presence_avatarStack_more_label({count:H(e(T))})]),b(o,r)};I(L,o=>{e(T)>0&&o(d)})}G(a),P(o=>{N(a,1,`inline-flex items-center ${l()==="tile"?"flex-wrap gap-1.25":"-space-x-1"} ${F()??""}`),u(a,"aria-label",o),u(a,"data-presence-count",p().length)},[()=>l()==="tile"?y.workspace_peopleTile_title():e(re)]),b(t,a)};I(ie,t=>{p().length>0&&t(oe)})}return b(J,Q),ve(se)}export{Ve as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as E,bw as B,bs as p,bq as F,b as L}from"./
|
|
1
|
+
import{t as E,bw as B,bs as p,bq as F,b as L}from"./NtxbXOxK.js";import{bs as R,ca as c,bk as W,bn as j}from"./CJxGDkBm.js";import{o as h,m,s as y,k as V}from"./BVSy1i1c.js";import"./puisNM3r.js";import"./BpozSsrs.js";import"./DcsVySxU.js";import"./ChTqQfQN.js";import"./b_O4pZtc.js";import{IS as t,Io as b,oM as a,qF as z,k8 as g}from"./DUUOaZUX.js";function G(N,T){if(new.target)return E({component:G,...N});R(T,!0);const r=()=>p(v,"$ownsNotice$",l),S=()=>p(k,"$toastVisible$",l),u=()=>p(x,"$status$",l),D=()=>p(M,"$dismissedAt$",l),[l,U]=F(),o=t.createSelector(s=>{const e=s.machineRail;return!e.enabled||e.shownId===""||e.shownId===s.connections.windowBackendId}),v=o(),k=h(),x=m(),M=y(),A=1440*60*1e3;let i,$;const I=new Set;function _(s){I.add(s),V.dismiss(s)}function f(){if(!o.select(t.state))return;i!==void 0&&_(i);const s=V.update({onDismiss:()=>{i!==s||!o.select(t.state)||(n(),m.select(t.state)==="downloaded"?t.dispatch(g(Date.now())):t.dispatch(a()))},onAutoDismiss:()=>{i!==s||!o.select(t.state)||(n(),t.dispatch(a()))}},{duration:1/0,onDismiss:e=>{if(I.delete(e.id)||i!==e.id||!o.select(t.state))return;if(i=void 0,m.select(t.state)==="downloaded"&&o.select(t.state)){t.dispatch(g(Date.now()));return}t.dispatch(a())}});i=s}function n(){i!==void 0&&(_(i),i=void 0)}c(()=>{r()&&S()&&i===void 0&&f()}),c(()=>{const s=u();if(!r()){n(),$=void 0;return}if(s!==$){if(s==="downloading")i===void 0&&f(),h.select(t.state)||t.dispatch(b());else if(s==="downloaded"){const e=y.select(t.state);e==null||Date.now()-e>=A?(i===void 0&&f(),h.select(t.state)||t.dispatch(b())):(n(),t.dispatch(a()))}s==="idle"&&(n(),t.dispatch(a())),$=s}}),c(()=>{u()==="downloaded"&&!S()&&D()!==null&&n()}),c(()=>{const s=u(),e=D();if(!r()||s!=="downloaded"||e==null)return;const d=Date.now()-e,w=A-d;if(w<=0)return;const q=setTimeout(()=>{m.select(t.state)==="downloaded"&&o.select(t.state)&&(f(),t.dispatch(b()))},w);return()=>clearTimeout(q)}),c(()=>{const s=u();if(r()&&(s==="not-available"||s==="error")){const d=setTimeout(()=>{o.select(t.state)&&(n(),t.dispatch(a()))},s==="error"?5500:3500);return()=>clearTimeout(d)}}),W(()=>(t.dispatch(z()),()=>{n()}));var O={$set:B,$on:(s,e)=>L(T,s,e)},C=j(O);return U(),C}export{G as default};
|