@intent-hq/web 2.334.1 → 2.334.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/assets/{0.C1mKQsv9.css → 0.CvWOFl38.css} +1 -1
- package/web/app/immutable/chunks/{BETOnFVA.js → 0IkOcvfJ.js} +1 -1
- package/web/app/immutable/chunks/{C2Hj1FZO.js → 0dBJ92VY.js} +1 -1
- package/web/app/immutable/chunks/{7AKPDTqy.js → 16fWZzGr.js} +1 -1
- package/web/app/immutable/chunks/{H6rH-O5e.js → 1P3Svk7C.js} +1 -1
- package/web/app/immutable/chunks/{xTKdEUQT.js → 2qetztQU.js} +1 -1
- package/web/app/immutable/chunks/{CAtd-0zD.js → 3J8ppa8V.js} +1 -1
- package/web/app/immutable/chunks/{BrgY-0wa.js → 3NsULH4n.js} +1 -1
- package/web/app/immutable/chunks/{m5UczIQR.js → 41Ipz5fb.js} +3 -3
- package/web/app/immutable/chunks/{nd4329YU.js → 4T3lottW.js} +1 -1
- package/web/app/immutable/chunks/{G3lcIaVb.js → 51VxIFjP.js} +1 -1
- package/web/app/immutable/chunks/{CEgGFCzF.js → 5JCKoNHo.js} +1 -1
- package/web/app/immutable/chunks/{Qx6kHYb-.js → 7vX_zhDt.js} +1 -1
- package/web/app/immutable/chunks/{4seVPSlv.js → 83X8qYIZ.js} +1 -1
- package/web/app/immutable/chunks/{Bobasviv.js → B-4znbWr.js} +1 -1
- package/web/app/immutable/chunks/{CSSojjBG.js → B1RNPPnR.js} +1 -1
- package/web/app/immutable/chunks/{mEDFle3S.js → B2B7A5cv.js} +2 -2
- package/web/app/immutable/chunks/{HB5uhQNm.js → B3S-8r8Q.js} +1 -1
- package/web/app/immutable/chunks/{BI3OQg3X.js → B4PvTMN9.js} +1 -1
- package/web/app/immutable/chunks/{C3KFiFcK.js → B4aHlPCL.js} +1 -1
- package/web/app/immutable/chunks/{TvrcPonj.js → B60bH8TA.js} +2 -2
- package/web/app/immutable/chunks/{CsabU_jS.js → B912rMNR.js} +1 -1
- package/web/app/immutable/chunks/{ITJu9SqW.js → B9A9lomt.js} +1 -1
- package/web/app/immutable/chunks/{tj2YkYbp.js → B9zRktrl.js} +1 -1
- package/web/app/immutable/chunks/{DkPqbYEN.js → BARxRXsX.js} +1 -1
- package/web/app/immutable/chunks/{Dzg-ll0I.js → BCaN323R.js} +1 -1
- package/web/app/immutable/chunks/{Z1K5P4U2.js → BF6wMmoi.js} +1 -1
- package/web/app/immutable/chunks/{BuxSPewv.js → BFmeDjr6.js} +1 -1
- package/web/app/immutable/chunks/{Bbdedrbg.js → BGmE7S8e.js} +1 -1
- package/web/app/immutable/chunks/{BRvPqeED.js → BGoB55YD.js} +1 -1
- package/web/app/immutable/chunks/{BX5Kqzmw.js → BHtY6ESy.js} +1 -1
- package/web/app/immutable/chunks/{CESOOiWP.js → BLLBrDig.js} +1 -1
- package/web/app/immutable/chunks/{CO7hmy56.js → BObyhEvF.js} +1 -1
- package/web/app/immutable/chunks/BQXOfNZI.js +1 -0
- package/web/app/immutable/chunks/{V1oMiVfu.js → BR-IQj2I.js} +1 -1
- package/web/app/immutable/chunks/{CjijEKrk.js → BSR6aHSL.js} +1 -1
- package/web/app/immutable/chunks/{MCnrQrjH.js → BUdGspGY.js} +1 -1
- package/web/app/immutable/chunks/{CDSwBgYD.js → BUqlMR9S.js} +1 -1
- package/web/app/immutable/chunks/{BcOksEI9.js → BVODtnZ_.js} +1 -1
- package/web/app/immutable/chunks/{PA5tKchu.js → BVT3kXik.js} +1 -1
- package/web/app/immutable/chunks/{BAmhsi1_.js → BVuWCaMK.js} +1 -1
- package/web/app/immutable/chunks/{CKR6ReFI.js → BWwVI2wD.js} +3 -3
- package/web/app/immutable/chunks/{DZRICUjW.js → BX9uJGYE.js} +1 -1
- package/web/app/immutable/chunks/{CFbTpfHS.js → BaZD6F_F.js} +1 -1
- package/web/app/immutable/chunks/{BI01o9a_.js → Bb3V-mzB.js} +1 -1
- package/web/app/immutable/chunks/{BE3xHJK-.js → BbSfUzNJ.js} +1 -1
- package/web/app/immutable/chunks/{Diees_tN.js → Bc5aSxx7.js} +1 -1
- package/web/app/immutable/chunks/{BAzeccV1.js → BcyT7b7x.js} +1 -1
- package/web/app/immutable/chunks/{C7Fm8r7x.js → BeRQmB1S.js} +1 -1
- package/web/app/immutable/chunks/{CiQ6prZ_.js → Beby3oGf.js} +1 -1
- package/web/app/immutable/chunks/{BkLJcH_z.js → BequUoOf.js} +1 -1
- package/web/app/immutable/chunks/{Co38dt7I.js → Bis1tGsD.js} +1 -1
- package/web/app/immutable/chunks/{D_i6tc5B.js → Bjk1uPNC.js} +1 -1
- package/web/app/immutable/chunks/{LULQY_VI.js → BjuFNGmO.js} +1 -1
- package/web/app/immutable/chunks/{DRvCShWO.js → BkdzL4yw.js} +1 -1
- package/web/app/immutable/chunks/{BfDRfZ1x.js → Bl-MloT_.js} +1 -1
- package/web/app/immutable/chunks/{td5hg6sa.js → BmdspVDq.js} +1 -1
- package/web/app/immutable/chunks/{BAOVYkFF.js → Bmk4jf3b.js} +1 -1
- package/web/app/immutable/chunks/{CyImu6JF.js → BpNgI678.js} +1 -1
- package/web/app/immutable/chunks/{DafANtkC.js → BpYO6-9F.js} +1 -1
- package/web/app/immutable/chunks/{CPYxy-X1.js → BpaYHJ-9.js} +1 -1
- package/web/app/immutable/chunks/{vvvz0E4v.js → BpytSwck.js} +1 -1
- package/web/app/immutable/chunks/{CIqnL4UD.js → Bqxl7Ok8.js} +1 -1
- package/web/app/immutable/chunks/{Cz-qaXwq.js → BtHWj1ie.js} +1 -1
- package/web/app/immutable/chunks/{HZf189bi.js → BtpLmNi5.js} +1 -1
- package/web/app/immutable/chunks/{CEtwgF3e.js → BupUzFbt.js} +1 -1
- package/web/app/immutable/chunks/{BWLkc8Du.js → Bv1IZ9jZ.js} +1 -1
- package/web/app/immutable/chunks/{BV0hRaXE.js → Bvq04Q4o.js} +4 -4
- package/web/app/immutable/chunks/{DbWOkCcI.js → BwP7dxjv.js} +1 -1
- package/web/app/immutable/chunks/{JlZEAwzh.js → BxyNxuc4.js} +1 -1
- package/web/app/immutable/chunks/{DEA_eMvz.js → BzPAs2gJ.js} +1 -1
- package/web/app/immutable/chunks/{DCCFERAn.js → C-g-ql7J.js} +1 -1
- package/web/app/immutable/chunks/{BJGG6xS6.js → C05_S9Ju.js} +5 -5
- package/web/app/immutable/chunks/{CEXEpW2y.js → C1ULDuoI.js} +1 -1
- package/web/app/immutable/chunks/{Df-CfLbF.js → C1o4etfa.js} +1 -1
- package/web/app/immutable/chunks/{CnMdEUN9.js → C2-OrDhN.js} +1 -1
- package/web/app/immutable/chunks/{D3DGxoeO.js → C29Sz8Eb.js} +1 -1
- package/web/app/immutable/chunks/{CArqGgyL.js → C4E6vJ_G.js} +1 -1
- package/web/app/immutable/chunks/{Dbqyis-m.js → C58Ew98r.js} +1 -1
- package/web/app/immutable/chunks/{RlWPb-l5.js → C5Q4eAq_.js} +1 -1
- package/web/app/immutable/chunks/{Dk1_0x0Q.js → C5wvNL0Z.js} +1 -1
- package/web/app/immutable/chunks/{Qk-BsDf0.js → C7c_HqY-.js} +1 -1
- package/web/app/immutable/chunks/{5deW2fcc.js → CBU3Lv61.js} +1 -1
- package/web/app/immutable/chunks/{35OKERyz.js → CCOrMVtA.js} +3 -3
- package/web/app/immutable/chunks/{DPXyAfng.js → CHs7x3NU.js} +1 -1
- package/web/app/immutable/chunks/{mdduA0pr.js → CMDD5oco.js} +1 -1
- package/web/app/immutable/chunks/{CXzbClP6.js → CMZSUqQp.js} +1 -1
- package/web/app/immutable/chunks/{DBdE3z4X.js → CNdKMo_I.js} +1 -1
- package/web/app/immutable/chunks/{CTcbitCM.js → CNfyvq-I.js} +1 -1
- package/web/app/immutable/chunks/{CP_jYxTi.js → CQrOkYTr.js} +1 -1
- package/web/app/immutable/chunks/{C--Z5JHB.js → CQyqfCr-.js} +1 -1
- package/web/app/immutable/chunks/{DhIC-K93.js → CRB0-tlS.js} +1 -1
- package/web/app/immutable/chunks/{4doVsrTt.js → CSbsxmgR.js} +1 -1
- package/web/app/immutable/chunks/{5iBTGhZe.js → CUF34JFV.js} +1 -1
- package/web/app/immutable/chunks/{71wna1Z8.js → CUNn6i7t.js} +1 -1
- package/web/app/immutable/chunks/{B3IB9jzF.js → CUZSIyX_.js} +1 -1
- package/web/app/immutable/chunks/{BxDyhHLD.js → CUtjYppD.js} +1 -1
- package/web/app/immutable/chunks/{B4GGgwli.js → CVsqcMdv.js} +1 -1
- package/web/app/immutable/chunks/{D8UOq-cZ.js → CWKtbi5E.js} +1 -1
- package/web/app/immutable/chunks/{DuoF8WPm.js → CWR6--Dq.js} +2 -2
- package/web/app/immutable/chunks/{BjWMcF7P.js → CXA1l_nB.js} +1 -1
- package/web/app/immutable/chunks/{B8888LoS.js → CYftfbzB.js} +1 -1
- package/web/app/immutable/chunks/{CCPn5VZR.js → CZHiAprx.js} +1 -1
- package/web/app/immutable/chunks/{C5vuxPIj.js → CZNaDcm1.js} +1 -1
- package/web/app/immutable/chunks/C_S5gHJT.js +1 -0
- package/web/app/immutable/chunks/{Bd-UWJsU.js → CaNtsQ6t.js} +1 -1
- package/web/app/immutable/chunks/{BzOameBd.js → CcOazRqG.js} +1 -1
- package/web/app/immutable/chunks/{CvkTsTXh.js → CcSz6OD0.js} +1 -1
- package/web/app/immutable/chunks/{C-IDQ1xK.js → Cc_wNDFs.js} +2 -2
- package/web/app/immutable/chunks/{C3vEbnKP.js → CcmNsa21.js} +1 -1
- package/web/app/immutable/chunks/{CgWmg0h0.js → CfXGXIMF.js} +1 -1
- package/web/app/immutable/chunks/{CXexmtc2.js → CgKLWzRK.js} +1 -1
- package/web/app/immutable/chunks/{oJD7n1Ce.js → Cge5Oj9H.js} +1 -1
- package/web/app/immutable/chunks/{BfNeIJAh.js → CiOA93tK.js} +1 -1
- package/web/app/immutable/chunks/{Z9shPzgu.js → Cj2dc64O.js} +12 -12
- package/web/app/immutable/chunks/{Az9OQ8Pw.js → Co39i4D_.js} +1 -1
- package/web/app/immutable/chunks/{C0VK7z_4.js → Cp8jLuzv.js} +1 -1
- package/web/app/immutable/chunks/{jrcipDnr.js → Cr6Ymkww.js} +1 -1
- package/web/app/immutable/chunks/{B3KrGqdQ.js → CrHvmPQ7.js} +1 -1
- package/web/app/immutable/chunks/{DXNrmOAj.js → Cs7-VJBr.js} +1 -1
- package/web/app/immutable/chunks/{DPiebq8X.js → CshRaRo1.js} +1 -1
- package/web/app/immutable/chunks/{2cP0f-ZS.js → CsrBCZPr.js} +1 -1
- package/web/app/immutable/chunks/{BcSES-Dp.js → CyqvmVzu.js} +1 -1
- package/web/app/immutable/chunks/{DGcTdGo8.js → D-SEHwlM.js} +1 -1
- package/web/app/immutable/chunks/{DXQ8FQgn.js → D0JCFoTY.js} +1 -1
- package/web/app/immutable/chunks/{D9wogWMJ.js → D2HiAf4f.js} +1 -1
- package/web/app/immutable/chunks/{DFDLegE6.js → D2X1yeHE.js} +1 -1
- package/web/app/immutable/chunks/{DHwdjtxe.js → D32hPhdk.js} +1 -1
- package/web/app/immutable/chunks/{BACRSxRg.js → D3OuHEjp.js} +1 -1
- package/web/app/immutable/chunks/{DCD7Mz5K.js → D4W6_VO7.js} +1 -1
- package/web/app/immutable/chunks/{DXO_adPf.js → D4t8kT73.js} +1 -1
- package/web/app/immutable/chunks/{B8ouaI3V.js → D58OiNyq.js} +1 -1
- package/web/app/immutable/chunks/{BsmVNOQl.js → D5Fs_hsG.js} +1 -1
- package/web/app/immutable/chunks/{DkO3fP2t.js → D8RjiNFi.js} +1 -1
- package/web/app/immutable/chunks/{BHNjUi-M.js → D8Xo7ebv.js} +1 -1
- package/web/app/immutable/chunks/{CUWQIUPR.js → D8qLY3IO.js} +2 -2
- package/web/app/immutable/chunks/{DAGiwOmW.js → DANPHJjT.js} +1 -1
- package/web/app/immutable/chunks/{Bdtl8KA4.js → DBhGb_Ln.js} +1 -1
- package/web/app/immutable/chunks/{x67B9CPX.js → DBzFzsOq.js} +4 -4
- package/web/app/immutable/chunks/{b8po137L.js → DCOUSIAo.js} +3 -3
- package/web/app/immutable/chunks/{CfwVmHCf.js → DCkTXZ4K.js} +1 -1
- package/web/app/immutable/chunks/{C3mDeV9d.js → DD4gpfya.js} +1 -1
- package/web/app/immutable/chunks/{C1ZTS4Sh.js → DFNitlZj.js} +1 -1
- package/web/app/immutable/chunks/{B-1pTbth.js → DHxo7JaE.js} +1 -1
- package/web/app/immutable/chunks/DK1Q4u0g.js +1 -0
- package/web/app/immutable/chunks/{B_VQj7hH.js → DMHoyG-_.js} +1 -1
- package/web/app/immutable/chunks/{CRdjZtzP.js → DN50CcaN.js} +1 -1
- package/web/app/immutable/chunks/{BnU-5qYi.js → DNVh6skU.js} +1 -1
- package/web/app/immutable/chunks/{De1yQ4of.js → DPnZkhsu.js} +3 -3
- package/web/app/immutable/chunks/{C0A_RMeu.js → DQD8AO34.js} +1 -1
- package/web/app/immutable/chunks/{DfBE7crq.js → DRsuOWdV.js} +1 -1
- package/web/app/immutable/chunks/{CGVLIZz9.js → DSCDt1B-.js} +1 -1
- package/web/app/immutable/chunks/{DYUpH2Hg.js → DUKJlKr0.js} +1 -1
- package/web/app/immutable/chunks/{CXKfuiUF.js → DUMOrivW.js} +1 -1
- package/web/app/immutable/chunks/{CsdbM4yO.js → DU_JwB8F.js} +1 -1
- package/web/app/immutable/chunks/{CYAPxNuV.js → DWxC3NKo.js} +1 -1
- package/web/app/immutable/chunks/{DyrELBv-.js → DXteS7Ar.js} +1 -1
- package/web/app/immutable/chunks/{BHVl-WA3.js → DY0W5oKg.js} +1 -1
- package/web/app/immutable/chunks/DY1wP2k5.js +2 -0
- package/web/app/immutable/chunks/{CYnSw8gK.js → DYRhXLvx.js} +1 -1
- package/web/app/immutable/chunks/{5gwO8o7P.js → DY_yMB44.js} +1 -1
- package/web/app/immutable/chunks/{CI96OvIs.js → DaNtBioc.js} +1 -1
- package/web/app/immutable/chunks/{CLT3XZ7_.js → Daz6_dof.js} +1 -1
- package/web/app/immutable/chunks/{D0NsovPG.js → Db3n1wC9.js} +1 -1
- package/web/app/immutable/chunks/{kJ4G2_k4.js → Deznn6cZ.js} +3 -3
- package/web/app/immutable/chunks/{C7Ro1E0r.js → DfXRQ23_.js} +1 -1
- package/web/app/immutable/chunks/{C5VwFEJA.js → DgKbDa2w.js} +1 -1
- package/web/app/immutable/chunks/{BMXLxN42.js → DgviNcJr.js} +1 -1
- package/web/app/immutable/chunks/{Gz-Odby1.js → DiF0fpUd.js} +1 -1
- package/web/app/immutable/chunks/DkL-L4y9.js +1 -0
- package/web/app/immutable/chunks/{DsbITls1.js → DkgRZeaF.js} +1 -1
- package/web/app/immutable/chunks/{Do9Il6aW.js → DnLhVTI5.js} +4 -4
- package/web/app/immutable/chunks/{C1MSnWt8.js → DniQ8kjc.js} +1 -1
- package/web/app/immutable/chunks/{D-v3doGL.js → DquYyo5r.js} +1 -1
- package/web/app/immutable/chunks/{B4egTWvZ.js → Ds8B9oQ5.js} +1 -1
- package/web/app/immutable/chunks/{Cxbk0QV6.js → DwPpQNAK.js} +1 -1
- package/web/app/immutable/chunks/{BsbCFjWI.js → Dx1-1ztE.js} +1 -1
- package/web/app/immutable/chunks/{9oNS7b_T.js → DxJU8PfF.js} +1 -1
- package/web/app/immutable/chunks/{C6vcWSYF.js → DxT48JWz.js} +1 -1
- package/web/app/immutable/chunks/{Cl-7Au8R.js → DyI4Jpqs.js} +1 -1
- package/web/app/immutable/chunks/{DuD0elPz.js → DymvZ-Mk.js} +1 -1
- package/web/app/immutable/chunks/{CEboTiDi.js → Dyrlx70E.js} +3 -3
- package/web/app/immutable/chunks/{5gyILap3.js → Dz-EQI05.js} +1 -1
- package/web/app/immutable/chunks/{CrnkHSpK.js → GuBMnGsB.js} +2 -2
- package/web/app/immutable/chunks/{GY5YfSD1.js → H_J_o8pe.js} +1 -1
- package/web/app/immutable/chunks/{Cs1tcw-s.js → HdQmLMU7.js} +1 -1
- package/web/app/immutable/chunks/{DkoS0ApO.js → HmbW7Ern.js} +1 -1
- package/web/app/immutable/chunks/{2aqEG8x0.js → JIf-ri8o.js} +1 -1
- package/web/app/immutable/chunks/{kKBf0CYQ.js → JZw6itpU.js} +3 -3
- package/web/app/immutable/chunks/{MMlRGdRy.js → KxE8uB8g.js} +1 -1
- package/web/app/immutable/chunks/{psHvDGLZ.js → M5YnvJkZ.js} +1 -1
- package/web/app/immutable/chunks/{DE30zKyE.js → MprxwvTp.js} +1 -1
- package/web/app/immutable/chunks/{Bxd9OUMD.js → N14qS9Qe.js} +1 -1
- package/web/app/immutable/chunks/{Oz6u8hl_.js → O-D_vZnv.js} +1 -1
- package/web/app/immutable/chunks/{DGUKdi7i.js → QxmoFbx9.js} +1 -1
- package/web/app/immutable/chunks/{sT0KaY62.js → SSsTlNjk.js} +1 -1
- package/web/app/immutable/chunks/{D8zn-h1a.js → TwOG2jW7.js} +1 -1
- package/web/app/immutable/chunks/{CoVAqVcd.js → U4mdLoC-.js} +1 -1
- package/web/app/immutable/chunks/{CMhVAKzx.js → WtMABcqO.js} +1 -1
- package/web/app/immutable/chunks/{tO-hey33.js → XJV_dABS.js} +1 -1
- package/web/app/immutable/chunks/{DBhO1Z-R.js → YPW6yKdR.js} +1 -1
- package/web/app/immutable/chunks/{Wjuib0ag.js → _T1ymZGh.js} +1 -1
- package/web/app/immutable/chunks/{B4OuSSm9.js → aOcuYL1F.js} +1 -1
- package/web/app/immutable/chunks/{DulGwXPf.js → aUs_qmPG.js} +2 -2
- package/web/app/immutable/chunks/{ayrFAfGH.js → bWqn_R6a.js} +1 -1
- package/web/app/immutable/chunks/{k3FE0FJZ.js → c2DN1TPU.js} +1 -1
- package/web/app/immutable/chunks/c5r-4P7O.js +1 -0
- package/web/app/immutable/chunks/{BBH-BNcw.js → c7K9Ywjt.js} +1 -1
- package/web/app/immutable/chunks/{D2laB2lQ.js → cIVqD9Xn.js} +1 -1
- package/web/app/immutable/chunks/{fQAPkS9v.js → eVnyW2fp.js} +1 -1
- package/web/app/immutable/chunks/{BEbbGjvZ.js → gKg0gn4E.js} +1 -1
- package/web/app/immutable/chunks/{DIyqmlUg.js → gz2jgC75.js} +1 -1
- package/web/app/immutable/chunks/{tHW2xu85.js → h9cSqXFU.js} +4 -4
- package/web/app/immutable/chunks/{DRe7r98g.js → iBvoqrfw.js} +1 -1
- package/web/app/immutable/chunks/{DKxrs1sS.js → jPHMDY20.js} +2 -2
- package/web/app/immutable/chunks/{C043lRmr.js → kv373IlD.js} +1 -1
- package/web/app/immutable/chunks/{B-lr2mEf.js → lfsj60VV.js} +1 -1
- package/web/app/immutable/chunks/{Ci__OGHt.js → lnSs2a5p.js} +1 -1
- package/web/app/immutable/chunks/{Bjpp5QFb.js → m8h5IS1T.js} +1 -1
- package/web/app/immutable/chunks/{Di0Cytfq.js → oNuVmIMP.js} +1 -1
- package/web/app/immutable/chunks/{DxGil5MD.js → obZ2a9yR.js} +1 -1
- package/web/app/immutable/chunks/{DcZ6Y3e4.js → obxiK2Di.js} +1 -1
- package/web/app/immutable/chunks/{Do3D3adr.js → pLNG5zfI.js} +1 -1
- package/web/app/immutable/chunks/{Bv6lXJbF.js → qh5NvcGx.js} +1 -1
- package/web/app/immutable/chunks/{CZ_kVWbN.js → rJUllCO_.js} +2 -2
- package/web/app/immutable/chunks/{FEnI6pqw.js → roSdX03M.js} +1 -1
- package/web/app/immutable/chunks/{DxFUSFjo.js → sRnl0PU9.js} +1 -1
- package/web/app/immutable/chunks/{CMOnvdXp.js → tH-RhVo1.js} +1 -1
- package/web/app/immutable/chunks/{DMW_Ogh_.js → tKvKjLkU.js} +1 -1
- package/web/app/immutable/chunks/{9x9_-mfx.js → ta0XTRL7.js} +1 -1
- package/web/app/immutable/chunks/{BuNYZSRv.js → vAB9kLHE.js} +1 -1
- package/web/app/immutable/chunks/{Ckt4hpBJ.js → w328gIvs.js} +1 -1
- package/web/app/immutable/chunks/{BEycbtuj.js → wpJJDATB.js} +1 -1
- package/web/app/immutable/chunks/{CKJpktTE.js → wwXPdVUm.js} +1 -1
- package/web/app/immutable/chunks/{DWJnCcL3.js → x8c-ZjEZ.js} +2 -2
- package/web/app/immutable/chunks/{BCGsV37m.js → xDnHZYOV.js} +1 -1
- package/web/app/immutable/chunks/{DYSyQTlz.js → xIEypq_8.js} +1 -1
- package/web/app/immutable/chunks/{C0WAGZJ9.js → zrJ8j4C7.js} +1 -1
- package/web/app/immutable/entry/{app.D0MtdmTS.js → app.Bx13Xy07.js} +3 -3
- package/web/app/immutable/entry/start.BQv5FV82.js +1 -0
- package/web/app/immutable/nodes/{0.SQd1rw9F.js → 0.D84EYz8y.js} +1 -1
- package/web/app/immutable/nodes/{1.DEkMxnM3.js → 1.DwOsrLgj.js} +1 -1
- package/web/app/immutable/nodes/{10.BwG-rwIb.js → 10.qgK08QR-.js} +1 -1
- package/web/app/immutable/nodes/{11.CVezrggv.js → 11.CEyqnFKf.js} +1 -1
- package/web/app/immutable/nodes/{12.BPw8mLRI.js → 12.DutEo2iA.js} +1 -1
- package/web/app/immutable/nodes/{13.DEB8Wg7Z.js → 13.BZD8HUaN.js} +3 -3
- package/web/app/immutable/nodes/{14.D7uqFGya.js → 14.BN3HQRTY.js} +1 -1
- package/web/app/immutable/nodes/{15.FeIesTUd.js → 15.90ZVFO-M.js} +1 -1
- package/web/app/immutable/nodes/{16.CxMj36A8.js → 16.BhEWJbkY.js} +1 -1
- package/web/app/immutable/nodes/{17.CLHcSNQ3.js → 17.BdGR9I1-.js} +2 -2
- package/web/app/immutable/nodes/{2.wp3qumBD.js → 2.CNUQ7sHL.js} +12 -12
- package/web/app/immutable/nodes/{3.beA-w1Z7.js → 3.Bz31wWbs.js} +1 -1
- package/web/app/immutable/nodes/{4.CApSdQYP.js → 4.C-oeEJCf.js} +1 -1
- package/web/app/immutable/nodes/{5.CI2v691d.js → 5.B9gJw7uM.js} +1 -1
- package/web/app/immutable/nodes/{6.CMzDhNh4.js → 6.BW9VBH9x.js} +1 -1
- package/web/app/immutable/nodes/{7.DLco_Cq5.js → 7.D-aNxCp3.js} +1 -1
- package/web/app/immutable/nodes/{8.CZiVpecT.js → 8.Byk-dWqA.js} +4 -4
- package/web/app/immutable/nodes/{9.D1WSkrvW.js → 9.CTLkAppy.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +20 -20
- package/web/app/immutable/chunks/BeA8kzlg.js +0 -1
- package/web/app/immutable/chunks/C7wbrsvU.js +0 -1
- package/web/app/immutable/chunks/CIB-2rN9.js +0 -1
- package/web/app/immutable/chunks/CZEeLj55.js +0 -1
- package/web/app/immutable/chunks/Dso1_H3c.js +0 -1
- package/web/app/immutable/chunks/DzXiplW2.js +0 -2
- package/web/app/immutable/entry/start.CBgUCIjA.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/
|
|
2
|
-
import{bo as v,t as Ht,bq as y,a_ as D,by as jt,b as Wt,br as Vf,bu as St,bs as oa,bt as _i,b7 as fl,ba as Kf,bl as Gf,bb as Jf,bm as Yf,a$ as Xf,b9 as Zf,b8 as Qf,b2 as $f,bf as ep,bg as tp,bk as rp,be as np,bn as ap,b0 as sp,b4 as op,bi as ip,bh as lp,b6 as cp,b5 as dp,b3 as up,bd as fp,bc as pp,bj as gp,b1 as vp,_ as mp}from"./
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["/app/immutable/chunks/B2B7A5cv.js","/app/immutable/chunks/DYhIMPy1.js","/app/immutable/chunks/C_S5gHJT.js","/app/immutable/chunks/CiOA93tK.js","/app/immutable/chunks/Cge5Oj9H.js","/app/immutable/chunks/DyI4Jpqs.js","/app/immutable/chunks/C2-OrDhN.js","/app/immutable/chunks/CIyUrgF0.js","/app/immutable/assets/spinner.D_TRo5Hy.css","/app/immutable/chunks/C5wvNL0Z.js","/app/immutable/chunks/WFvSJ9zU.js","/app/immutable/chunks/ChTqQfQN.js","/app/immutable/chunks/DBhGb_Ln.js","/app/immutable/chunks/DxwfiAWm.js","/app/immutable/chunks/uXuxG9cN.js","/app/immutable/chunks/C-g-ql7J.js","/app/immutable/chunks/BaIAhI85.js","/app/immutable/chunks/41Ipz5fb.js","/app/immutable/chunks/CrHvmPQ7.js","/app/immutable/chunks/BtpLmNi5.js","/app/immutable/assets/button.-yaUNjRS.css","/app/immutable/chunks/CZNaDcm1.js","/app/immutable/chunks/BFmeDjr6.js","/app/immutable/chunks/Co39i4D_.js","/app/immutable/chunks/H_J_o8pe.js","/app/immutable/chunks/DANPHJjT.js","/app/immutable/chunks/Bmk4jf3b.js","/app/immutable/assets/menu-footer.Ck5GCpgU.css","/app/immutable/chunks/DfxQWSVU.js","/app/immutable/chunks/wwXPdVUm.js","/app/immutable/assets/dialog.BtQTVchw.css","/app/immutable/chunks/BsieX9dN.js","/app/immutable/assets/observe-overflow.CbDLK6fN.css","/app/immutable/chunks/DquYyo5r.js","/app/immutable/chunks/D4W6_VO7.js","/app/immutable/chunks/DxJU8PfF.js","/app/immutable/chunks/XJv96NUg.js","/app/immutable/assets/confirm.UE5obH5A.css","/app/immutable/chunks/BWYr8u9e.js","/app/immutable/chunks/BeP4UORy.js","/app/immutable/chunks/Cs7-VJBr.js","/app/immutable/chunks/BeRQmB1S.js","/app/immutable/assets/SettingsPage.D8u26cHZ.css","/app/immutable/chunks/sRnl0PU9.js","/app/immutable/chunks/DymvZ-Mk.js","/app/immutable/chunks/CC7to1B5.js","/app/immutable/chunks/vAB9kLHE.js","/app/immutable/assets/notify.BeL_JB6L.css","/app/immutable/chunks/BdWqymET.js","/app/immutable/chunks/BequUoOf.js","/app/immutable/chunks/C4E6vJ_G.js","/app/immutable/chunks/DypB-Dwi.js","/app/immutable/chunks/DwPpQNAK.js","/app/immutable/chunks/Bl-MloT_.js","/app/immutable/chunks/cIVqD9Xn.js","/app/immutable/chunks/rJUllCO_.js","/app/immutable/chunks/Bqxl7Ok8.js","/app/immutable/chunks/D4t8kT73.js","/app/immutable/chunks/BvFAWM27.js","/app/immutable/chunks/B60bH8TA.js","/app/immutable/chunks/CQyqfCr-.js","/app/immutable/chunks/C05_S9Ju.js","/app/immutable/chunks/DaNtBioc.js","/app/immutable/chunks/B0Z-1lwJ.js","/app/immutable/chunks/aOcuYL1F.js","/app/immutable/assets/directory-picker-service.CzNEA6Ot.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{bo as v,t as Ht,bq as y,a_ as D,by as jt,b as Wt,br as Vf,bu as St,bs as oa,bt as _i,b7 as fl,ba as Kf,bl as Gf,bb as Jf,bm as Yf,a$ as Xf,b9 as Zf,b8 as Qf,b2 as $f,bf as ep,bg as tp,bk as rp,be as np,bn as ap,b0 as sp,b4 as op,bi as ip,bh as lp,b6 as cp,b5 as dp,b3 as up,bd as fp,bc as pp,bj as gp,b1 as vp,_ as mp}from"./C_S5gHJT.js";import{bI as hp,bj as Cs,aG as bp,bs as Ut,aD as e,a5 as I,bS as m,bA as w,W as d,bn as qt,c9 as u,aA as _,a7 as kt,ay as qe,be as nr,b$ as Rt,aC as xa,bl as R,b_ as k,bO as x,aB as S,bo as Es,ca as It,bH as M,bV as ye,br as Jr,bk as As,c0 as Xn,ai as Oa,cd as $a,aw as En,a as yp,aj as Lr,c7 as _p,c6 as pl,c5 as An,bf as Ks,bz as rd}from"./DYhIMPy1.js";import{G as Gs,I as xp,z as wp}from"./C-g-ql7J.js";import{o as kp,i as Sp,u as ae,g as Fn,w as Pn,l as xn,j as lr,v as pt,I as Ps,n as Tt,p as Mr,q as Ip,s as Cp,m as Ep,x as Ap}from"./C2-OrDhN.js";import{s as ln}from"./CiOA93tK.js";import{c as en}from"./CrHvmPQ7.js";import{I as Ko,t as ar,n as Pp,i as gl,u as vl}from"./DyI4Jpqs.js";import{b as mr}from"./BaIAhI85.js";import{i as nd,bv as Tp,cM as Rp,dG as Mp,ds as Lp,ax as Np,cv as Op,a2 as Dp,cS as Bp,dr as ms,aC as so,c3 as Fp,I as zp,a as Hp,a0 as ml,cY as jp,bT as Wp,M as Up,dm as qp,W as Vp,dx as Kp,af as Gp,at as Jp,g as Yp,u as Xp}from"./C4E6vJ_G.js";import{c as Zp}from"./D-62MVd3.js";import{k as ra,w as Qp,C as ad,c as $p,R as eg}from"./vAB9kLHE.js";import{f as yt,ap as Za,ai as tg,am as Go,bc as rg}from"./41Ipz5fb.js";import{ao as ng,ab as hl,$ as ag,aD as sg,ac as og,h as ig,ad as lg,aW as cg,I as dg,R as ug,au as fg,ah as pg,a0 as gg,a as bl,av as vg,s as mg,n as hg,b0 as bg,m as yg,b2 as Jo,A as yl,ag as _g,b1 as xg,aq as sd,T as od,a7 as wg,a6 as _l,V as kg,L as xl}from"./DBzFzsOq.js";import{F as At,bf as Yo,bJ as Sg,am as Ig,aO as Cg,cK as Eg,bj as xi,bz as Ag,aE as id,aJ as wi,cZ as Js,a9 as Xo,cm as Pg,cb as Tg,ch as ki,cE as ld,bq as Rg,e as Mg,bZ as wl,c7 as Lg,ck as Ng,cV as cd,bT as kl,b6 as Io,bc as fs,aD as Og,ax as Zo,as as dd,ba as ud,bA as Dg,B as Bg,bt as Fg,a4 as fd,cf as zg,aj as pd,cM as gd,cI as Sl,aq as vd,aI as Il,_ as Hg,cu as jg,cT as Wg,aH as Ug,aZ as qg,bM as md,bl as Vg,c3 as Cl,al as hd,aw as Kg,a7 as Gg,a5 as Jg}from"./DANPHJjT.js";import{c as bd}from"./ChTqQfQN.js";import{g as Yg}from"./BeRQmB1S.js";import{Ik as Nt,bM as Xg,rQ as El,sq as Zg,J8 as Qg,Je as $g,g as yd,HZ as ev,nw as _d,nM as xd,nL as wd,np as oo,p$ as Si,xP as tv,uT as Hs,ua as Qo,uV as rv,ne as kd,Ip as nv,t5 as av,oz as Sd,rc as Ii,lX as Al,a2 as Pl,qI as sv,qE as ov,qJ as iv,qA as lv,qG as cv,uJ as dv,Ak as Id,Ao as Cd,nN as Tl,be as $o,GI as uv,HV as fv,h9 as pv,h8 as gv,nH as vv,vU as mv,vV as hv,vT as Rl,Bk as Jn,cr as bv,cf as yv,d0 as _v,d7 as xv,Au as wv}from"./C5wvNL0Z.js";import{bH as kv,bQ as Sv,i as Iv,B as Cv,bT as Ev,ah as Av,aj as Pv,al as Tv,a5 as Rv,a4 as Mv}from"./rJUllCO_.js";import{n as Lv,m as Nv,v as ei,ck as Ov,M as Dv,ci as Bv,cb as Fv,aD as Ml,cd as zv,bM as ti,aN as Hv,s as jv,c as hs,d as ri,cf as Ed,cg as ni,bB as Wv,b6 as Uv,bQ as qv,bO as Vv,E as Kv,ce as Ll,bv as Gv,y as Jv}from"./BequUoOf.js";import{ch as Yv,cj as Xv,ci as Zv,b0 as Qv,a_ as $v,a$ as em,a3 as tm,ak as Os,aj as rm,az as Nl,aH as nm,ai as am,C as sm,i as om,E as js,cS as im,aV as Ol,cX as lm,af as cm,a7 as dm,r as um,p as fm,aE as pm,c_ as gm,cJ as vm,cC as mm,ct as hm,bR as bm}from"./KxE8uB8g.js";import{i as ym,I as es,c as Dl}from"./CZNaDcm1.js";import"./BFmeDjr6.js";import{f as Bl,y as Fl,M as _m,n as xm,m as wm,z as Ad,x as ai,e as bs,W as ts,h as km}from"./B2B7A5cv.js";import"./DxJU8PfF.js";import{b as Pd}from"./DymvZ-Mk.js";import"./wwXPdVUm.js";import{z as Ci,P as Sm,p as Im,h as Cm,G as Em,l as Am,i as Pm,M as Tm,H as Rm,t as Ya,a as Mm,K as Lm,k as Nm,R as Om}from"./Co39i4D_.js";import{t as ys,O as Dm,M as Bm,S as ya}from"./H_J_o8pe.js";import{a as Fm}from"./Bmk4jf3b.js";import{C as si}from"./XJV_dABS.js";import{aQ as zm,aY as Hm,aB as jm,b0 as Wm,aO as Um,aU as qm,a7 as ns,b3 as zl,aK as Vm,aR as Km,aX as Ei,aS as Ai,W as Co,aq as Gm,X as Jm,a_ as Ym,aJ as Xm,aT as Zm,aW as Qm,b6 as $m,b4 as eh,ay as Td,p as th,n as rh,aV as nh,_ as ah,ao as sh,aD as oh,z as ih,aC as lh,a8 as ch}from"./DPnZkhsu.js";import{s as oi}from"./CNfyvq-I.js";import{M as dh}from"./lfsj60VV.js";import{s as uh,a as fh}from"./BsieX9dN.js";import{u as Pi,w as ph,v as io,I as gh,A as Hl,e as _s,d as _a,J as jl,c as vh,f as mh,g as Wl,i as hh,b as bh,o as Rd,j as yh,O as _h,x as xh,k as Md,S as wh,N as kh,q as Ul,p as Sh,n as ql,z as Ih,s as Ch}from"./CNdKMo_I.js";import{o as Vl,a as Kl,T as Eo,b as Eh}from"./CWR6--Dq.js";import{O as Ah,y as Ph,j as Th,h as Rh,R as Mh}from"./DRsuOWdV.js";import{D as xs}from"./kv373IlD.js";import"./CcOazRqG.js";import{C as na}from"./B3S-8r8Q.js";import{M as Lh}from"./DnLhVTI5.js";import{g as Ti}from"./Cge5Oj9H.js";import{f as Gl}from"./CQyqfCr-.js";import{c as Ws}from"./DK1Q4u0g.js";import{handleIntentLink as Nh}from"./jPHMDY20.js";import{s as Oh,a as Dh,f as Bh,d as Fh,r as zh,h as Hh,w as ps,g as jh,W as Wh,H as Uh,c as qh,M as Ld}from"./Bvq04Q4o.js";import{e as Vh,q as Kh}from"./Bqxl7Ok8.js";import{showAssistantContent as Gh}from"./aUs_qmPG.js";import{o as Ys,c as Jh,n as Yh}from"./aOcuYL1F.js";import{p as Xh}from"./O-D_vZnv.js";import{m as Zh}from"./-DqWFMjY.js";import{h as Ds}from"./c2DN1TPU.js";import{i as Nd}from"./Bl-MloT_.js";import{g as Qh,e as $h,f as eb,h as tb}from"./BvFAWM27.js";import{T as Ao}from"./C5Q4eAq_.js";import"./D4W6_VO7.js";import{i as rb,r as Jl}from"./c7K9Ywjt.js";import{a as nb}from"./sRnl0PU9.js";import{a as ab}from"./BdWqymET.js";import{p as sb}from"./83X8qYIZ.js";const ob="intent:inline-visual-draft";function cC(r,t){const n=t.title.replace(/\s+/g," ").trim(),a=JSON.stringify({inputs:t.inputs,results:t.results},null,2),s=(a.match(/`+/g)??[]).reduce((c,l)=>Math.max(c,l.length),0),o="`".repeat(Math.max(3,s+1));return`${r}${r?`
|
|
3
3
|
|
|
4
4
|
`:""}${n}
|
|
5
5
|
|
|
@@ -260,7 +260,7 @@ ${r.content}`:a.content=r.content,a):r.old_text!==void 0&&r.new_text!==void 0?(a
|
|
|
260
260
|
`,h0=["background","foreground","card","card-foreground","primary","primary-ink","primary-foreground","secondary","secondary-foreground","muted","muted-foreground","border","input","ring","danger","danger-background","info","info-foreground","success","success-foreground","warning","warning-foreground","font-ui","font-code","text-body-size","text-body-line-height","text-body-weight","text-body-tracking","radius-small","radius-medium","radius-large","app-background","sidebar","sidebar-accent","agent-avatar-surface-active","agent-avatar-foreground","diagram-host-surface","diagram-canvas","diagram-label-surface","diagram-node-surface","diagram-node-hover-surface","diagram-node-outline","diagram-node-title","diagram-metadata","diagram-group-outline","diagram-connector","diagram-connector-hover","diagram-connector-muted","diagram-connector-inactive","diagram-connector-danger","diagram-connector-success","diagram-connector-warning","diagram-connector-active","diagram-accent","diagram-accent-foreground","diagram-node-radius","diagram-group-radius","diagram-connector-width","text-caption-size","text-caption-line-height","text-caption-weight","text-caption-tracking","text-body-strong-size","text-body-strong-line-height","text-body-strong-weight","text-body-strong-tracking","space-1","space-2","space-3","space-4","space-5","space-6","space-7","control-height-compact","control-height-small","control-height-medium","control-height-large","radius-full","spring-fast","spring-fast-exit","spring-fast-ease","spring-moderate","spring-moderate-exit","spring-moderate-ease","spring-slow","spring-slow-exit","spring-slow-ease","spring-exit-ease","motion-fast","motion-standard","motion-slow","ease-standard","ease-emphasized-out","motion-reduced"],jo=96,Bc=2e4,b0=480,ju=512,y0=["default-src 'none'","script-src 'unsafe-inline'","style-src 'unsafe-inline'","img-src data:","connect-src 'none'","font-src data:","media-src 'none'","object-src 'none'","frame-src 'none'","child-src 'none'","worker-src 'none'","manifest-src 'none'","base-uri 'none'","form-action 'none'"].join("; ");function _0(r,t,n,a,s,o){const c=new MessageChannel,l=MessagePort.prototype.postMessage.bind(c.port1);window.parent.postMessage({channel:r,type:"scroll-port"},"*",[c.port2]);const f=(E,z={})=>{window.parent.postMessage({channel:r,type:E,...z},"*")};let i=s?.state??null,p=null,g=!1;Object.defineProperty(window,"intentVisual",{configurable:!1,writable:!1,value:Object.freeze({get state(){return i},publish(E){try{if(!o(E))return!1;const z=JSON.parse(JSON.stringify(E));return i=z.state,p=z,g||(g=!0,requestAnimationFrame(()=>{g=!1,p&&f("snapshot",{snapshot:p}),p=null})),!0}catch{return!1}}})});let T=!1,b=-1,h=innerHeight,A=Number.NaN,P=0,B=0;const F=()=>{if(T=!1,!document.body)return;let E=Math.ceil(Math.max(document.body.scrollHeight,document.body.getBoundingClientRect().height));const z=innerHeight,J=E-z;if(z>h+1&&J>1&&Math.abs(J-A)<=1?P+=1:(z!==h||J<=1)&&(P=0),h=z,A=J,!B&&P>=3){B=Math.max(a,z);const Z="Page height follows the frame (vh units or height: 100%); frame height held.";console.warn(Z),f("layout",{message:Z})}B&&(E=Math.min(E,B)),E!==b&&(b=E,f("resize",{height:E}))},O=()=>{T||(T=!0,requestAnimationFrame(F))},N=E=>{if(!E||typeof E.dark!="boolean"||!E.variables)return;const z=document.documentElement;z.classList.toggle("dark",E.dark),z.style.colorScheme=E.dark?"dark":"light";const J=E.variables["--inline-html-root-font-size"];"--inline-html-root-font-size"in t.variables&&typeof J=="string"&&J.length<512&&z.style.setProperty("--inline-html-root-font-size",J);for(const Z of Object.keys(t.variables)){if(Z==="--inline-html-root-font-size")continue;const Q=E.variables[Z];typeof Q=="string"&&Q.length<512&&z.style.setProperty(Z,Q)}O()};window.addEventListener("message",E=>{E.source!==window.parent||!E.data||E.data.channel!==r||E.data.type==="theme"&&N(E.data.theme)});const U=E=>{if(E.defaultPrevented||!E.isTrusted||E.ctrlKey||E.metaKey||E.shiftKey||!E.deltaY||Math.abs(E.deltaX)>Math.abs(E.deltaY))return;const z=Q=>{const Ie=getComputedStyle(Q);if(Q!==document.scrollingElement&&!/^(auto|scroll|overlay)$/.test(Ie.overflowY)||/^(hidden|clip)$/.test(Ie.overflowY))return!1;const ce=Q.scrollHeight-Q.clientHeight;return ce>1&&(E.deltaY<0?Q.scrollTop>1:Q.scrollTop<ce-1)};if(E.composedPath().some(Q=>Q instanceof Element&&z(Q))||document.scrollingElement&&z(document.scrollingElement))return;const J=E.deltaMode===WheelEvent.DOM_DELTA_LINE?parseFloat(getComputedStyle(document.body).lineHeight)||16:E.deltaMode===WheelEvent.DOM_DELTA_PAGE?innerHeight:1,Z=Math.max(-n,Math.min(n,E.deltaY*J));Number.isFinite(Z)&&(E.preventDefault(),l({deltaY:Z}))};window.addEventListener("wheel",()=>{window.removeEventListener("wheel",U),window.addEventListener("wheel",U,{passive:!1})},{capture:!0,passive:!1}),window.addEventListener("error",E=>{E.message&&f("error",{message:E.message.slice(0,300)})}),window.addEventListener("unhandledrejection",E=>{const z=E.reason;f("error",{message:String(z instanceof Error?z.message:z).slice(0,300)})}),window.addEventListener("click",E=>{const z=E.target instanceof Element?E.target.closest("a, area"):null;if(!z)return;(z.getAttribute("href")??z.getAttribute("xlink:href"))?.startsWith("#")||E.preventDefault()},!0),window.addEventListener("submit",E=>E.preventDefault(),!0),N(t),window.addEventListener("DOMContentLoaded",()=>{new ResizeObserver(O).observe(document.body),new MutationObserver(O).observe(document.body,{childList:!0,subtree:!0,attributes:!0,characterData:!0}),window.addEventListener("resize",O),document.addEventListener("load",O,!0),document.fonts.ready.then(O),f("ready"),O()},{once:!0})}function x0(r,t,n,a,s){const o=document.createElement("iframe");o.setAttribute("sandbox","allow-scripts"),o.setAttribute("referrerpolicy","no-referrer"),o.title=n,o.style.cssText="display:block;width:100%;height:100%;border:0;";let c;const l=f=>{const i=f.data?.deltaY;typeof i=="number"&&Number.isFinite(i)&&i!==0&&Math.abs(i)<=a&&window.parent.postMessage({channel:r,type:"wheel",deltaY:i},"*")};window.addEventListener("message",f=>{const i=f.data;if(!(!i||typeof i!="object"||i.channel!==r)){if(f.source===window.parent&&i.type==="theme"){o.contentWindow?.postMessage({channel:r,type:"theme",theme:i.theme},"*");return}if(!(f.source!==o.contentWindow||f.origin!=="null")){if(i.type==="scroll-port"&&!c&&f.ports.length===1){c=f.ports[0],c.onmessage=l;return}i.type==="resize"&&typeof i.height=="number"&&Number.isFinite(i.height)&&i.height>=0?window.parent.postMessage({channel:r,type:"resize",height:i.height},"*"):i.type==="ready"?window.parent.postMessage({channel:r,type:"ready"},"*"):(i.type==="error"||i.type==="layout")&&typeof i.message=="string"?window.parent.postMessage({channel:r,type:i.type,message:i.message.slice(0,300)},"*"):i.type==="snapshot"&&s(i.snapshot)&&window.parent.postMessage({channel:r,type:"snapshot",snapshot:i.snapshot},"*")}}}),window.addEventListener("DOMContentLoaded",()=>{o.srcdoc=t,document.body.append(o)},{once:!0})}function w0(r,t,n,a,s,o,c,l){const f=document.implementation.createHTMLDocument(""),i=f.createElement("template");i.innerHTML=n,f.body.append(i.content);const p=Z=>{Z.querySelectorAll("meta, base, link, iframe, frame, frameset, object, embed").forEach(Q=>Q.remove()),Z.querySelectorAll("template").forEach(Q=>p(Q.content)),Z.querySelectorAll("a, area").forEach(Q=>{for(const Ie of["href","xlink:href"])Q.getAttribute(Ie)?.startsWith("#")||Q.removeAttribute(Ie);Q.removeAttribute("target"),Q.removeAttribute("ping"),Q.removeAttribute("download")})};p(f);const g=Z=>JSON.stringify(Z).replace(/</g,"\\u003c"),T=f.createElement("meta");T.httpEquiv="Content-Security-Policy",T.content=r.csp;const b=f.createElement("meta");b.setAttribute("charset","utf-8");const h=f.createElement("style"),A=/^data:[\w.+/-]+;base64,[A-Za-z0-9+/=]+$/.test(l)?`@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900;
|
|
261
261
|
font-display: swap; src: url('${l}') format('woff2'); }`:"";h.textContent=`${A}${r.styles}`;const P=f.createElement("script"),B=g([a,s,r.maxScrollDelta,r.lockHeight,t(c)?c:null]);P.textContent=`(${r.bridge})(...${B}, (${r.validate}));`,f.head.prepend(T,b,h,P);const F=`<!doctype html>${f.documentElement.outerHTML}`,O=document.implementation.createHTMLDocument(""),N=O.createElement("meta");N.httpEquiv="Content-Security-Policy",N.content=r.csp.replace("frame-src 'none'","frame-src about:");const U=O.createElement("meta");U.setAttribute("charset","utf-8");const E=O.createElement("style");E.textContent="html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }";const z=O.createElement("script"),J=g([a,F,o,r.maxScrollDelta]);return z.textContent=`(${r.shell})(...${J}, (${r.validate}));`,O.head.prepend(N,U,E,z),`<!doctype html>${O.documentElement.outerHTML}`}const k0=()=>({csp:y0,styles:m0,maxScrollDelta:ju,lockHeight:b0,bridge:_0.toString(),shell:x0.toString(),validate:Ii.toString()});function S0(r,t,n,a,s=null,o=""){return w0(k0(),Ii,r,t,n,a,s,o)}function Fc(r){const t=getComputedStyle(r);return{dark:document.documentElement.classList.contains("dark"),variables:{...Object.fromEntries(h0.map(n=>[`--${n}`,t.getPropertyValue(`--${n}`).trim()])),"--inline-html-root-font-size":getComputedStyle(document.documentElement).fontSize}}}function I0(r,t,n,a,s=null){return S0(r,t,n,a,s,v0)}var C0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground"> </p>'),E0=S('<div class="type-body flex items-center justify-between gap-3 px-4 py-2" role="status"><span class="text-danger"> </span> <!></div> <!>',1),A0=S('<p class="sr-only" role="status"> </p>'),P0=S('<p class="type-body m-0 px-4 py-3 text-muted-foreground" role="status"> </p>'),T0=S('<div class="type-body px-4 py-2 text-danger" role="status"><p class="m-0"> </p> <p class="type-code m-0 break-words"> </p></div>'),R0=S('<iframe sandbox="allow-scripts" referrerpolicy="no-referrer"></iframe>'),M0=S('<div class="space-y-4 p-4" aria-hidden="true"><div class="space-y-2"><!> <!></div> <!> <div class="flex items-center gap-4"><!> <!> <!></div></div>'),L0=S('<span class="type-caption ml-auto text-muted-foreground" role="status"> </span>'),N0=S('<p class="type-caption m-0 break-words px-4 pb-2 text-muted-foreground" role="status"> <!></p>'),O0=S('<th class="min-w-40 px-2 pb-3 align-top font-normal"><!> <div class="mt-1 flex gap-1"><!> <!></div></th>'),D0=S('<td class="max-w-56 px-2 py-2 align-top break-words tabular-nums"> </td>'),B0=S('<tr><th class="max-w-48 py-2 pr-4 align-top font-normal break-words text-muted-foreground"> </th><!></tr>'),F0=S('<div class="overflow-x-auto px-4 pb-4" data-inline-visual-comparison=""><table class="type-body w-full border-separate border-spacing-0 text-left"><thead><tr><th class="min-w-28 pr-4 pb-3 font-normal text-muted-foreground"> </th><th class="min-w-32 px-2 pb-3 align-top font-medium"> </th><!></tr></thead><tbody></tbody></table></div>'),z0=S('<div class="flex flex-wrap items-center gap-1 px-4 py-2" data-inline-visual-actions=""><!> <!> <!> <!> <!></div> <!> <!>',1),H0=S('<div data-inline-html="" class="my-3 min-w-0 overflow-hidden rounded-lg bg-background text-foreground"><div class="flex min-w-0 items-center justify-end gap-1 p-1"><!> <!></div> <!> <!> <div class="relative min-w-0"><!> <!></div> <!></div>');function Wu(r,t){if(new.target)return Ht({component:Wu,...r});Ut(t,!0);const n=720;let a=y(t,"source",7),s=y(t,"isStreaming",7,!1),o=y(t,"isComplete",7,!0),c=y(t,"record",7),l=y(t,"storageStatus",7,"ready"),f=y(t,"onRecordChange",7),i=y(t,"onUseConfiguration",7),p=y(t,"onExport",7),g=y(t,"onRetry",7),T=y(t,"storageError",7),b=y(t,"exportStatus",7),h=y(t,"exportPath",7),A=y(t,"exportError",7),P,B=ye(void 0),F=ye(!1),O=ye(!1),N=ye(0),U=ye(""),E=ye(""),z=ye(!1),J=ye(""),Z=ye(Jr(jo)),Q=ye(n),Ie=ye(""),ce=ye(Al()),oe=ye(void 0),ue,we=ye(void 0),G=ye(!1);const fe=u(()=>c()??e(ce)),ie=u(()=>l()!=="loading"&&(l()!=="error"||!!e(fe).current)),Ne=u(()=>!s()&&o()&&!!a().trim()&&e(ie)),Re=u(()=>Math.min(Bc,Math.max(jo,e(Z)))),ke=u(()=>s()||l()==="loading"?"loading":o()?a().trim()?e(J)?"error":e(z)?"ready":"loading":"empty":"incomplete"),_e=u(()=>s()||l()==="loading"||e(Ne)&&!e(z)&&!e(J));function je(X){const xe={...X,current:e(oe)??X.current};M(ce,xe),f()?.(xe)}function Ue(){const X=e(oe);!X||e(fe).scenarios.length>=Pl||(je({...e(fe),scenarios:[...e(fe).scenarios,{id:crypto.randomUUID(),name:rp({number:vl(e(fe).scenarios.length+1)}),snapshot:structuredClone(X)}]}),M(G,!0))}function le(X,xe){const Ke=xe.trim().slice(0,120);Ke&&je({...e(fe),scenarios:e(fe).scenarios.map(rt=>rt.id===X?{...rt,name:Ke}:rt)})}function $(X){const xe=structuredClone(X);M(oe,xe),M(we,xe),je({...e(fe),current:xe}),M(N,e(N)+1)}function Ze(X){return typeof X=="number"?vl(X):typeof X=="string"?X:JSON.stringify(X)}function V(){!e(B)?.contentWindow||!e(E)||e(B).contentWindow.postMessage({channel:e(E),type:"theme",theme:Fc(P)},"*")}function K(X){let xe=P.parentElement;for(;xe;){const Ke=getComputedStyle(xe),rt=xe.scrollHeight-xe.clientHeight;if(/^(auto|scroll|overlay)$/.test(Ke.overflowY)&&rt>1){if(X<0?xe.scrollTop>0:xe.scrollTop<rt){xe.dispatchEvent(new WheelEvent("wheel",{deltaY:X,bubbles:!0})),xe.scrollTop+=X;return}if(/^(contain|none)$/.test(Ke.overscrollBehaviorY))return}xe=xe.parentElement}window.scrollBy({top:X,behavior:"instant"})}It(()=>{if(!e(F))return;const X=a(),xe=e(Ne);e(N),An(()=>{ue!==X&&(M(ce,Al()),M(oe,void 0),M(G,!1),M(we,void 0),ue=X),M(z,!1),M(J,""),M(Ie,""),M(Z,jo,!0),M(E,crypto.randomUUID(),!0),M(U,xe?I0(X,e(E),Fc(P),fl(),e(we)??e(oe)??e(fe).current):"",!0),M(we,void 0)})}),As(()=>{M(F,!0);const X=ht=>{if(ht.source!==e(B)?.contentWindow||ht.origin!=="null")return;const We=ht.data;if(!(!We||typeof We!="object"||We.channel!==e(E)))if(We.type==="resize"&&typeof We.height=="number"&&Number.isFinite(We.height)&&We.height>=0)M(Z,Math.min(Bc,Math.ceil(We.height)),!0);else if(We.type==="ready")M(z,!0),V();else if(We.type==="error"&&typeof We.message=="string")M(J,We.message.slice(0,300),!0);else if(We.type==="layout"&&typeof We.message=="string")M(Ie,We.message.slice(0,300),!0);else if(We.type==="snapshot"&&e(Ne)&&Ii(We.snapshot)){const mt=We.snapshot;M(oe,mt),je({...e(fe),current:mt})}else We.type==="wheel"&&e(z)&&e(Ne)&&!e(O)&&!e(_e)&&typeof We.deltaY=="number"&&Number.isFinite(We.deltaY)&&We.deltaY!==0&&Math.abs(We.deltaY)<=ju&&K(We.deltaY)},xe=()=>{M(Q,Math.min(n,Math.max(160,Math.floor(window.innerHeight*.8))),!0)},Ke=new MutationObserver(V);Ke.observe(document.documentElement,{attributes:!0,attributeFilter:["class","style","data-theme"]});const rt=window.matchMedia("(prefers-color-scheme: dark)");return rt.addEventListener("change",V),window.addEventListener("message",X),window.addEventListener("resize",xe),xe(),()=>{Ke.disconnect(),rt.removeEventListener("change",V),window.removeEventListener("message",X),window.removeEventListener("resize",xe)}});var W={get source(){return a()},set source(X){a(X),_()},get isStreaming(){return s()},set isStreaming(X=!1){s(X),_()},get isComplete(){return o()},set isComplete(X=!0){o(X),_()},get record(){return c()},set record(X){c(X),_()},get storageStatus(){return l()},set storageStatus(X="ready"){l(X),_()},get onRecordChange(){return f()},set onRecordChange(X){f(X),_()},get onUseConfiguration(){return i()},set onUseConfiguration(X){i(X),_()},get onExport(){return p()},set onExport(X){p(X),_()},get onRetry(){return g()},set onRetry(X){g(X),_()},get storageError(){return T()},set storageError(X){T(X),_()},get exportStatus(){return b()},set exportStatus(X){b(X),_()},get exportPath(){return h()},set exportPath(X){h(X),_()},get exportError(){return A()},set exportError(X){A(X),_()},$set:jt,$on:(X,xe)=>Wt(t,X,xe)},se=H0(),Ce=I(se),Y=I(Ce);yt(Y,{variant:"ghost",size:"sm",get active(){return e(O)},get"aria-pressed"(){return e(O)},onclick:()=>{M(O,!e(O))},children:(X,xe)=>{nr();var Ke=Rt();k(rt=>x(Ke,rt),[()=>e(O)?Kf():Gf()]),d(X,Ke)},$$slots:{default:!0}});var de=m(Y,2);{let X=u(()=>!e(Ne));yt(de,{variant:"ghost",size:"sm",get disabled(){return e(X)},onclick:()=>{M(N,e(N)+1)},children:(xe,Ke)=>{nr();var rt=Rt();k(ht=>x(rt,ht),[()=>Jf()]),d(xe,rt)},$$slots:{default:!0}})}w(Ce);var Ae=m(Ce,2);{var He=X=>{var xe=E0(),Ke=qe(xe),rt=I(Ke),ht=R(rt,!0),We=m(rt,2);{var mt=dt=>{yt(dt,{variant:"ghost",size:"sm",get onclick(){return g()},children:(Gt,Ft)=>{nr();var Jt=Rt();k(xt=>x(Jt,xt),[()=>np()]),d(Gt,Jt)},$$slots:{default:!0}})};D(We,dt=>{g()&&dt(mt)})}w(Ke);var ot=m(Ke,2);{var it=dt=>{var Gt=C0(),Ft=R(Gt,!0);k(()=>x(Ft,T())),d(dt,Gt)};D(ot,dt=>{T()&&dt(it)})}k(dt=>x(ht,dt),[()=>Yf()]),d(X,xe)};D(Ae,X=>{l()==="error"&&X(He)})}var tt=m(Ae,2);{var ge=X=>{var xe=A0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>s()?Xf():Zf()]),d(X,xe)},Oe=X=>{var xe=P0(),Ke=R(xe,!0);k(rt=>x(Ke,rt),[()=>o()?$f():Qf()]),d(X,xe)},q=X=>{var xe=T0(),Ke=I(xe),rt=R(Ke,!0),ht=m(Ke,2),We=R(ht,!0);w(xe),k(mt=>{x(rt,mt),x(We,e(J))},[()=>ep()]),d(X,xe)};D(tt,X=>{e(_e)?X(ge):e(Ne)?e(J)&&X(q,2):X(Oe,1)})}var Me=m(tt,2),ve=I(Me);{var L=X=>{var xe=R0();let Ke,rt;mr(xe,ht=>M(B,ht),()=>e(B)),k(ht=>{ae(xe,"title",ht),ae(xe,"srcdoc",e(U)),Ke=pt(xe,1,"block w-full border-0 svelte-1kkow1d",null,Ke,{"preview-hidden":e(O)||e(_e)}),ae(xe,"aria-hidden",e(O)||e(_e)),rt=Pn(xe,"",rt,{height:`${e(Re)}px`})},[()=>fl()]),d(X,xe)};D(ve,X=>{e(Ne)&&e(U)&&X(L)})}var H=m(ve,2);{var me=X=>{na(X,{get code(){return a()},language:"html",noBorder:!0,noMargin:!0,get maxHeight(){return e(Q)}})},$e=X=>{var xe=M0(),Ke=I(xe),rt=I(Ke);Ya(rt,{class:"h-4 w-32 max-w-1/2"});var ht=m(rt,2);Ya(ht,{class:"h-3 w-2/3"}),w(Ke);var We=m(Ke,2);Ya(We,{class:"aspect-video max-h-60 w-full rounded-lg"});var mt=m(We,2),ot=I(mt);Ya(ot,{class:"h-3 w-16"});var it=m(ot,2);Ya(it,{class:"h-2 min-w-0 flex-1"});var dt=m(it,2);Ya(dt,{class:"h-3 w-10"}),w(mt),w(xe),d(X,xe)};D(H,X=>{e(O)?X(me):e(_e)&&X($e,1)})}w(Me);var Pe=m(Me,2);{var ze=X=>{var xe=z0(),Ke=qe(xe),rt=I(Ke);{var ht=Ct=>{{let Yt=u(()=>!e(z)||!!e(J));yt(Ct,{size:"sm",get disabled(){return e(Yt)},onclick:()=>e(oe)&&i()(e(oe)),children:(Mt,be)=>{nr();var re=Rt();k(Ve=>x(re,Ve),[()=>ap()]),d(Mt,re)},$$slots:{default:!0}})}};D(rt,Ct=>{i()&&Ct(ht)})}var We=m(rt,2);{let Ct=u(()=>!e(z)||!!e(J)||e(fe).scenarios.length>=Pl);yt(We,{variant:"ghost",size:"sm",get disabled(){return e(Ct)},onclick:Ue,children:(Yt,Mt)=>{nr();var be=Rt();k(re=>x(be,re),[()=>tp()]),d(Yt,be)},$$slots:{default:!0}})}var mt=m(We,2);{var ot=Ct=>{yt(Ct,{variant:"ghost",size:"sm",get active(){return e(G)},get"aria-expanded"(){return e(G)},onclick:()=>M(G,!e(G)),children:(Yt,Mt)=>{nr();var be=Rt();k(re=>x(be,re),[()=>sp()]),d(Yt,be)},$$slots:{default:!0}})};D(mt,Ct=>{e(fe).scenarios.length&&Ct(ot)})}var it=m(mt,2);{var dt=Ct=>{{let Yt=u(()=>!e(z)||b()==="saving");yt(Ct,{variant:"ghost",size:"sm",get disabled(){return e(Yt)},onclick:()=>p()({...e(fe),current:e(oe)??null}),children:(Mt,be)=>{nr();var re=Rt();k(Ve=>x(re,Ve),[()=>op()]),d(Mt,re)},$$slots:{default:!0}})}};D(it,Ct=>{p()&&Ct(dt)})}var Gt=m(it,2);{var Ft=Ct=>{var Yt=L0(),Mt=R(Yt,!0);k(be=>x(Mt,be),[()=>l()==="saving"?ip():l()==="ready"?lp():""]),d(Ct,Yt)};D(Gt,Ct=>{f()&&Ct(Ft)})}w(Ke);var Jt=m(Ke,2);{var xt=Ct=>{var Yt=N0(),Mt=I(Yt),be=m(Mt);{var re=Ve=>{var lt=Rt();k(()=>x(lt,A())),d(Ve,lt)};D(be,Ve=>{b()==="error"&&A()&&Ve(re)})}w(Yt),k(Ve=>x(Mt,`${Ve??""} `),[()=>b()==="saving"?cp():b()==="saved"?dp({path:h()??""}):up()]),d(Ct,Yt)};D(Jt,Ct=>{b()&&Ct(xt)})}var Vt=m(Jt,2);{var Kt=Ct=>{var Yt=F0(),Mt=I(Yt),be=I(Mt),re=I(be),Ve=I(re),lt=R(Ve,!0),ct=m(Ve),De=R(ct,!0),ne=m(ct);Tt(ne,17,()=>e(fe).scenarios,te=>te.id,(te,Ee)=>{var Se=O0(),Xe=I(Se);{let Te=u(()=>gp());es(Xe,{get value(){return e(Ee).name},get"aria-label"(){return e(Te)},maxlength:120,onblur:Ye=>{Ye.currentTarget.value.trim()||(Ye.currentTarget.value=e(Ee).name),le(e(Ee).id,Ye.currentTarget.value)},onkeydown:Ye=>{Ye.key==="Enter"&&Ye.currentTarget.blur(),Ye.key==="Escape"&&(Ye.currentTarget.value=e(Ee).name,Ye.currentTarget.blur())}})}var Fe=m(Xe,2),Ge=I(Fe);yt(Ge,{variant:"ghost",size:"sm",onclick:()=>$(e(Ee).snapshot),children:(Te,Ye)=>{nr();var Be=Rt();k(et=>x(Be,et),[()=>fp()]),d(Te,Be)},$$slots:{default:!0}});var Qe=m(Ge,2);yt(Qe,{variant:"ghost",size:"sm",onclick:()=>je({...e(fe),scenarios:e(fe).scenarios.filter(Te=>Te.id!==e(Ee).id)}),children:(Te,Ye)=>{nr();var Be=Rt();k(et=>x(Be,et),[()=>pp()]),d(Te,Be)},$$slots:{default:!0}}),w(Fe),w(Se),d(te,Se)}),w(re),w(be);var pe=m(be);Tt(pe,20,()=>["inputs","results"],Mr,(te,Ee)=>{const Se=u(()=>Ee),Xe=u(()=>Array.from(new Set([...Object.keys(e(oe)[e(Se)]),...e(fe).scenarios.flatMap(Qe=>Object.keys(Qe.snapshot[e(Se)]))])));var Fe=kt(),Ge=qe(Fe);Tt(Ge,16,()=>e(Xe),Qe=>Qe,(Qe,Te)=>{var Ye=B0(),Be=I(Ye),et=R(Be,!0),ft=m(Be);Tt(ft,17,()=>[e(oe),...e(fe).scenarios.map(st=>st.snapshot)],Mr,(st,nt)=>{var _t=D0(),vt=R(_t,!0);k(Ot=>x(vt,Ot),[()=>Object.hasOwn(e(nt)[e(Se)],Te)?Ze(e(nt)[e(Se)][Te]):"—"]),d(st,_t)}),w(Ye),k(()=>x(et,Te)),d(Qe,Ye)}),d(te,Fe)}),w(pe),w(Mt),w(Yt),k(te=>{x(lt,e(oe).title),x(De,te)},[()=>vp()]),d(Ct,Yt)};D(Vt,Ct=>{e(G)&&e(fe).scenarios.length&&Ct(Kt)})}d(X,xe)};D(Pe,X=>{e(oe)&&e(Ne)&&X(ze)})}return w(se),mr(se,X=>P=X,()=>P),k(()=>{ae(se,"data-inline-html-status",e(ke)),ae(se,"data-inline-html-layout",e(Ie)?"viewport-locked":void 0),ae(se,"aria-busy",e(_e))}),d(r,se),qt(W)}var j0=S('<div class="w-full min-w-0"><!></div>');function W0(r,t){if(new.target)return Ht({component:W0,...r});Ut(t,!0);const n=()=>St(e(b),"$agent$",s),a=()=>St(e(B),"$entry$",s),[s,o]=oa();let c=y(t,"block",7),l=y(t,"role",7),f=y(t,"workspaceId",7),i=y(t,"agentId",7),p=y(t,"messageId",7),g=y(t,"contentBlockKey",7,""),T=ye(void 0);const b=u(()=>so(i()??"")),h=u(()=>l()==="assistant"&&f()&&i()&&p()&&c().metadata?.fenceClosed&&!c().metadata?.isStreaming&&n()&&!Sd(n())?{workspaceId:f(),agentId:i(),messageId:p(),blockKey:JSON.stringify([g(),c().metadata?.fenceStart??0]),source:c().content}:void 0),A=u(()=>!!(f()&&i()&&p()&&c().metadata?.fenceClosed&&!n())),P=u(()=>e(h)?cv(e(h)):""),B=u(()=>Um(e(P)));It(()=>{e(h)&&Nt.dispatch(sv(e(h)))});function F(Z){!f()||!i()||n()?.retiredAt||e(T)?.dispatchEvent(new CustomEvent(ob,{bubbles:!0,detail:{workspaceId:f(),agentId:i(),snapshot:Z}}))}var O={get block(){return c()},set block(Z){c(Z),_()},get role(){return l()},set role(Z){l(Z),_()},get workspaceId(){return f()},set workspaceId(Z){f(Z),_()},get agentId(){return i()},set agentId(Z){i(Z),_()},get messageId(){return p()},set messageId(Z){p(Z),_()},get contentBlockKey(){return g()},set contentBlockKey(Z=""){g(Z),_()},$set:jt,$on:(Z,Q)=>Wt(t,Z,Q)},N=kt(),U=qe(N);{var E=Z=>{var Q=j0(),Ie=I(Q);{let ce=u(()=>c().metadata?.isStreaming??!1),oe=u(()=>c().metadata?.fenceClosed??!1),ue=u(()=>a()?.record),we=u(()=>e(h)?a()?.status??"loading":e(A)?"loading":"ready"),G=u(()=>a()?.error),fe=u(()=>e(h)?Ue=>Nt.dispatch(lv(e(P),Ue)):void 0),ie=u(()=>f()&&i()&&n()&&!n().retiredAt?F:void 0),Ne=u(()=>e(h)?()=>Nt.dispatch(iv(e(P))):void 0),Re=u(()=>e(h)?Ue=>Nt.dispatch(ov(e(P),crypto.randomUUID(),Ue)):void 0),ke=u(()=>a()?.export?.status),_e=u(()=>a()?.export?.path),je=u(()=>a()?.export?.error);Wu(Ie,{get source(){return c().content},get isStreaming(){return e(ce)},get isComplete(){return e(oe)},get record(){return e(ue)},get storageStatus(){return e(we)},get storageError(){return e(G)},get onRecordChange(){return e(fe)},get onUseConfiguration(){return e(ie)},get onRetry(){return e(Ne)},get onExport(){return e(Re)},get exportStatus(){return e(ke)},get exportPath(){return e(_e)},get exportError(){return e(je)}})}w(Q),mr(Q,ce=>M(T,ce),()=>e(T)),d(Z,Q)},z=Z=>{na(Z,{get code(){return c().content},language:"html"})};D(U,Z=>{l()==="assistant"?Z(E):Z(z,-1)})}d(r,N);var J=qt(O);return o(),J}var U0=S('<div class="digest-card flex items-start gap-2.5 py-5 px-6 my-4 shadow-xs text-base leading-normal border border-border"> </div>');function q0(r,t){if(new.target)return Ht({component:q0,...r});Ut(t,!0);let n=y(t,"digest",7);var a={get digest(){return n()},set digest(c){n(c),_()},$set:jt,$on:(c,l)=>Wt(t,c,l)},s=U0(),o=R(s,!0);return k(()=>x(o,n())),d(r,s),qt(a)}var V0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-blue-500/15 text-blue-600 dark:text-blue-400"> </span>'),K0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-muted text-muted-foreground"> </span>'),G0=S('<span class="inline-flex items-center px-1.5 py-0.5 rounded text-xs font-medium bg-primary/10 text-primary/80"> </span>'),J0=S('<div class="flex items-start gap-3 px-4 py-2.5"><div class="flex-1 min-w-0"><div class="flex items-center gap-2 flex-wrap"><span class="text-sm font-semibold text-foreground"> </span> <!> <!></div> <div class="mt-0.5 text-xs font-mono text-muted-foreground truncate"> </div></div></div>'),Y0=S('<div class="detected-scripts-card my-3 rounded-lg border border-border bg-muted/30 overflow-hidden"><div class="flex items-center gap-2 px-4 py-2.5 border-b border-border bg-muted/40"><!> <span class="text-sm font-semibold text-foreground"> </span></div> <div class="divide-y divide-border"></div> <div class="px-4 py-2 border-t border-border bg-muted/20"><span class="text-xs text-muted-foreground"> </span></div></div>');function X0(r,t){if(new.target)return Ht({component:X0,...r});Ut(t,!0);let n=y(t,"scripts",7);var a={get scripts(){return n()},set scripts(b){n(b),_()},$set:jt,$on:(b,h)=>Wt(t,b,h)},s=Y0(),o=I(s),c=I(o);At(c,{get icon(){return cd},size:"sm",class:"text-primary-ink/70"});var l=m(c,2),f=R(l,!0);w(o);var i=m(o,2);Tt(i,21,n,b=>b.name+b.command,(b,h)=>{var A=J0(),P=I(A),B=I(P),F=I(B),O=R(F,!0),N=m(F,2);{var U=Ie=>{var ce=V0(),oe=R(ce,!0);k(ue=>x(oe,ue),[()=>v.chat_detectedScripts_service_badge()]),d(Ie,ce)},E=Ie=>{var ce=K0(),oe=R(ce,!0);k(ue=>x(oe,ue),[()=>v.chat_detectedScripts_command_badge()]),d(Ie,ce)};D(N,Ie=>{e(h).mode==="service"?Ie(U):Ie(E,-1)})}var z=m(N,2);{var J=Ie=>{var ce=G0(),oe=R(ce,!0);k(()=>x(oe,e(h).category)),d(Ie,ce)};D(z,Ie=>{e(h).category&&e(h).category!=="other"&&Ie(J)})}w(B);var Z=m(B,2),Q=R(Z,!0);w(P),w(A),k(()=>{x(O,e(h).name),x(Q,e(h).command)}),d(b,A)}),w(i);var p=m(i,2),g=I(p),T=R(g,!0);return w(p),w(s),k((b,h)=>{x(f,b),x(T,h)},[()=>v.chat_detectedScripts_title(),()=>n().length===1?v.chat_detectedScripts_count_one({count:ar(n().length)}):v.chat_detectedScripts_count_many({count:ar(n().length)})]),d(r,s),qt(a)}function Z0(r,t){if(new.target)return Ht({component:Z0,...r});Ut(t,!0);let n=y(t,"diff",7),a=y(t,"filePath",7),s=y(t,"language",7),o=y(t,"onApply",7),c=y(t,"onReject",7);function l(){o()?.(),ra.success(v.chat_diffViewer_applied_toast())}function f(){c()?.(),ra.info(v.chat_diffViewer_rejected_toast())}const i=u(()=>{const g=[];return o()&&g.push({label:v.chat_diffViewer_apply_label(),variant:"success",onClick:l}),c()&&g.push({label:v.chat_diffViewer_reject_label(),variant:"danger",onClick:f}),g});var p={get diff(){return n()},set diff(g){n(g),_()},get filePath(){return a()},set filePath(g){a(g),_()},get language(){return s()},set language(g){s(g),_()},get onApply(){return o()},set onApply(g){o(g),_()},get onReject(){return c()},set onReject(g){c(g),_()},$set:jt,$on:(g,T)=>Wt(t,g,T)};{let g=u(()=>a()||v.chat_diffViewer_suggestedChanges_fallback());xs(r,{get patch(){return n()},get fileName(){return e(g)},get language(){return s()},get actions(){return e(i)},collapsible:!0,initialCollapsed:!1,maxHeight:"500px"})}return qt(p)}var Q0=xa('<circle fill="none" style="transition: stroke-dasharray 0.3s ease-out"></circle>'),zc=xa("<circle></circle>"),$0=xa('<svg class="absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 fill-background" viewBox="0 0 8 6"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.69471 1.69471C7.87687 1.50611 7.97766 1.25351 7.97539 0.991311C7.97311 0.729114 7.86794 0.478302 7.68253 0.292894C7.49712 0.107485 7.24631 0.00231622 6.98411 3.78025e-05C6.72192 -0.00224062 6.46931 0.0985542 6.28071 0.280712L2.98771 3.57371L1.69471 2.28071C1.50611 2.09855 1.25351 1.99776 0.991311 2.00004C0.729114 2.00232 0.478302 2.10749 0.292894 2.29289C0.107485 2.4783 0.00231622 2.72911 3.78025e-05 2.99131C-0.00224062 3.25351 0.0985542 3.50611 0.280712 3.69471L2.28071 5.69471C2.46824 5.88218 2.72255 5.9875 2.98771 5.9875C3.25288 5.9875 3.50718 5.88218 3.69471 5.69471L7.69471 1.69471Z"></path></svg>'),ek=S('<div class="relative"><svg fill="none" xmlns="http://www.w3.org/2000/svg"><circle fill="none"></circle><!></svg> <!></div>');function Vs(r,t){if(new.target)return Ht({component:Vs,...r});Ut(t,!0);let n=y(t,"phase",7),a=y(t,"progress",7,0),s=y(t,"size",7,16),o=y(t,"class",7,""),c=u(()=>s()/2),l=u(()=>e(c)),f=u(()=>e(c)),i=u(()=>s()*.12),p=u(()=>e(c)-e(i)/2),g=u(()=>e(c)*.35),T=u(()=>2*Math.PI*e(g)),b=u(()=>Math.max(0,Math.min(1,a()))*e(T));const h={planning:"#99999999",building:"#54B1F3",reviewing:"#6D7FF5",shipped:"var(--color-foreground)"};let A=u(()=>h[n()]||"currentColor");var P={get phase(){return n()},set phase(ce){n(ce),_()},get progress(){return a()},set progress(ce=0){a(ce),_()},get size(){return s()},set size(ce=16){s(ce),_()},get class(){return o()},set class(ce=""){o(ce),_()},$set:jt,$on:(ce,oe)=>Wt(t,ce,oe)},B=ek(),F=I(B),O=I(F),N=m(O);{var U=ce=>{},E=ce=>{var oe=Q0();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(g)*.8),ae(oe,"stroke",e(A)),ae(oe,"stroke-width",e(g)*1.5),ae(oe,"stroke-dasharray",`${e(b)??""} ${e(T)??""}`),ae(oe,"stroke-dashoffset",e(T)*.25),ae(oe,"transform",`rotate(-90 ${e(l)??""} ${e(f)??""})`)}),d(ce,oe)},z=ce=>{var oe=zc();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(p)*.6),ae(oe,"fill",e(A))}),d(ce,oe)},J=ce=>{var oe=zc();k(()=>{ae(oe,"cx",e(l)),ae(oe,"cy",e(f)),ae(oe,"r",e(p)),ae(oe,"fill",e(A))}),d(ce,oe)};D(N,ce=>{n()==="planning"?ce(U):n()==="building"?ce(E,1):n()==="reviewing"?ce(z,2):n()==="shipped"&&ce(J,3)})}w(F);var Z=m(F,2);{var Q=ce=>{},Ie=ce=>{var oe=$0();k(()=>ae(oe,"width",s()*.5)),d(ce,oe)};D(Z,ce=>{n()==="reviewing"?ce(Q):n()==="shipped"&&ce(Ie,1)})}return w(B),k(()=>{ae(F,"width",s()),ae(F,"height",s()),ae(F,"viewBox",`0 0 ${s()??""} ${s()??""}`),pt(F,0,lr(o())),ae(O,"cx",e(l)),ae(O,"cy",e(f)),ae(O,"r",e(p)),ae(O,"stroke",e(A)),ae(O,"stroke-width",e(i))}),d(r,B),qt(P)}var Hc=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full"></span> </span>'),tk=S('<span class="flex items-center gap-1"><span class="size-1.5 rounded-full bg-border"></span> </span>'),jc=S('<span class="text-ui text-subtle truncate"> </span>'),Wc=S('<div class="flex items-center gap-1 mt-0.5"><!> <!></div>'),Uc=S('<div class="flex items-start gap-2"><div class="shrink-0 mt-0.5"><!></div> <div class="flex-1 min-w-0"><div class="text-xs leading-snug truncate"> </div> <!></div></div>'),rk=S('<div class="flex items-center gap-2"><div class="shrink-0"><!></div> <span class="text-ui text-subtle truncate line-through"> </span></div>'),nk=S('<span class="text-ui text-subtle pl-4"> </span>'),ak=S('<div class="flex flex-col gap-0.5 pt-1 border-t border-border"><!> <!></div>'),sk=S('<div class="text-ui text-subtle"> </div>'),ok=S("<!> <!> <!> <!>",1),ik=S('<div class="flex flex-col py-2 px-3 gap-2 max-h-80 overflow-y-auto"><div class="flex items-center justify-between gap-3"><span class="text-xs font-semibold text-foreground"> </span> <div class="flex items-center gap-3 text-ui text-subtle"><!> <!> <!></div></div> <!></div>'),lk=S('<div class="rounded-[0.5px]"></div>');function Uu(r,t){if(new.target)return Ht({component:Uu,...r});Ut(t,!0);let n=y(t,"stats",7),a=y(t,"tasks",23,()=>[]),s=y(t,"maxBars",7,20),o=y(t,"barWidth",7,"1px"),c=y(t,"barHeight",7,"16px"),l=y(t,"gap",7,"1px"),f=y(t,"class",7);const i={completed:"#22c55e",inProgress:"#4F7BF7",notStarted:"var(--border)"};let p=u(()=>{const{completed:N,inProgress:U,notStarted:E,total:z}=n();if(z===0)return[];const J=[...Array(N).fill("completed"),...Array(U).fill("inProgress"),...Array(Math.max(0,E)).fill("notStarted")];return J.length<=s()?J:J.slice(J.length-s())}),g=u(()=>a().filter(N=>N.status==="complete")),T=u(()=>a().filter(N=>N.status==="in_progress"||N.status==="review_required")),b=u(()=>a().filter(N=>N.status!=="complete"&&N.status!=="in_progress"&&N.status!=="review_required"&&N.status!=="cancelled")),h=u(()=>a().filter(N=>N.status==="cancelled")),A=u(()=>a().length>0);var P={get stats(){return n()},set stats(N){n(N),_()},get tasks(){return a()},set tasks(N=[]){a(N),_()},get maxBars(){return s()},set maxBars(N=20){s(N),_()},get barWidth(){return o()},set barWidth(N="1px"){o(N),_()},get barHeight(){return c()},set barHeight(N="16px"){c(N),_()},get gap(){return l()},set gap(N="1px"){l(N),_()},get class(){return f()},set class(N){f(N),_()},$set:jt,$on:(N,U)=>Wt(t,N,U)},B=kt(),F=qe(B);{var O=N=>{Go(N,{side:"top",align:"start",sideOffset:6,contentClass:"max-w-xs p-0",delayDuration:200,disableHoverableContent:!1,content:E=>{var z=ik(),J=I(z),Z=I(J),Q=R(Z,!0),Ie=m(Z,2),ce=I(Ie);{var oe=Re=>{var ke=Hc(),_e=I(ke);Pn(_e,"",{},{"background-color":"#22c55e"});var je=m(_e);w(ke),k(()=>x(je,` ${n().completed??""}`)),d(Re,ke)};D(ce,Re=>{n().completed>0&&Re(oe)})}var ue=m(ce,2);{var we=Re=>{var ke=Hc(),_e=I(ke);Pn(_e,"",{},{"background-color":"#4F7BF7"});var je=m(_e);w(ke),k(()=>x(je,` ${n().inProgress??""}`)),d(Re,ke)};D(ue,Re=>{n().inProgress>0&&Re(we)})}var G=m(ue,2);{var fe=Re=>{var ke=tk(),_e=m(I(ke));w(ke),k(()=>x(_e,` ${n().notStarted??""}`)),d(Re,ke)};D(G,Re=>{n().notStarted>0&&Re(fe)})}w(Ie),w(J);var ie=m(J,2);{var Ne=Re=>{var ke=ok(),_e=qe(ke);Tt(_e,17,()=>e(T),Mr,(V,K)=>{var W=Uc(),se=I(W),Ce=I(se);Eo(Ce,{get status(){return e(K).status},size:14}),w(se);var Y=m(se,2),de=I(Y),Ae=R(de,!0),He=m(de,2);{var tt=ge=>{var Oe=Wc(),q=I(Oe);{let L=u(()=>e(K).agentState||"idle");yl(q,{get agentId(){return e(K).agentId},get state(){return e(L)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=L=>{var H=jc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(L,H)};D(Me,L=>{e(K).agentName&&L(ve)})}w(Oe),d(ge,Oe)};D(He,ge=>{e(K).agentId&&ge(tt)})}w(Y),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var je=m(_e,2);Tt(je,17,()=>e(b),Mr,(V,K)=>{var W=Uc(),se=I(W),Ce=I(se);Eo(Ce,{get status(){return e(K).status},size:14}),w(se);var Y=m(se,2),de=I(Y),Ae=R(de,!0),He=m(de,2);{var tt=ge=>{var Oe=Wc(),q=I(Oe);{let L=u(()=>e(K).agentState||"idle");yl(q,{get agentId(){return e(K).agentId},get state(){return e(L)},size:12,get specialist(){return e(K).agentSpecialist}})}var Me=m(q,2);{var ve=L=>{var H=jc(),me=R(H,!0);k(()=>x(me,e(K).agentName)),d(L,H)};D(Me,L=>{e(K).agentName&&L(ve)})}w(Oe),d(ge,Oe)};D(He,ge=>{e(K).agentId&&ge(tt)})}w(Y),w(W),k(()=>x(Ae,e(K).title)),d(V,W)});var Ue=m(je,2);{var le=V=>{var K=ak(),W=I(K);Tt(W,17,()=>e(g).slice(0,3),Mr,(Y,de)=>{var Ae=rk(),He=I(Ae),tt=I(He);Eo(tt,{status:"complete",size:12}),w(He);var ge=m(He,2),Oe=R(ge,!0);w(Ae),k(()=>x(Oe,e(de).title)),d(Y,Ae)});var se=m(W,2);{var Ce=Y=>{var de=nk(),Ae=R(de,!0);k(He=>x(Ae,He),[()=>v.workspace_taskProgressBar_moreCompleted_label({count:ar(e(g).length-3)})]),d(Y,de)};D(se,Y=>{e(g).length>3&&Y(Ce)})}w(K),d(V,K)};D(Ue,V=>{e(g).length>0&&V(le)})}var $=m(Ue,2);{var Ze=V=>{var K=sk(),W=R(K,!0);k(se=>x(W,se),[()=>v.workspace_taskProgressBar_cancelled_label({count:ar(e(h).length)})]),d(V,K)};D($,V=>{e(h).length>0&&V(Ze)})}d(Re,ke)};D(ie,Re=>{e(A)&&Re(Ne)})}w(z),k(Re=>x(Q,Re),[()=>v.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)})]),d(E,z)},children:(E,z)=>{{let J=u(()=>xn("flex h-auto min-w-0 shrink items-end justify-start cursor-default rounded-none border-0",f())),Z=u(()=>`gap: ${l()}`),Q=u(()=>v.workspace_taskProgressBar_tasksRatio_label({completed:ar(n().completed),total:ar(n().total)}));yt(E,{variant:"plain",type:"button",wrapContent:!1,get class(){return e(J)},get style(){return e(Z)},get"aria-label"(){return e(Q)},"data-task-progress-trigger":!0,children:(Ie,ce)=>{var oe=kt(),ue=qe(oe);Tt(ue,17,()=>e(p),Mr,(we,G)=>{var fe=lk();let ie;k(()=>ie=Pn(fe,"",ie,{width:o(),height:c(),"background-color":i[e(G)]})),d(we,fe)}),d(Ie,oe)},$$slots:{default:!0}})}},$$slots:{content:!0,default:!0}})};D(F,N=>{n().total>0&&N(O)})}return d(r,B),qt(P)}function Ui(r,t){if(new.target)return Ht({component:Ui,...r});Ut(t,!0);let n=y(t,"items",7),a=y(t,"ariaLabel",7),s=y(t,"open",15,!1),o=y(t,"orientation",7,"vertical"),c=y(t,"selection",7),l=y(t,"class",7,"");const f=u(()=>xg(n(),c(),a()));var i={get items(){return n()},set items(p){n(p),_()},get ariaLabel(){return a()},set ariaLabel(p){a(p),_()},get open(){return s()},set open(p=!1){s(p),_()},get orientation(){return o()},set orientation(p="vertical"){o(p),_()},get selection(){return c()},set selection(p){c(p),_()},get class(){return l()},set class(p=""){l(p),_()},$set:jt,$on:(p,g)=>Wt(t,p,g)};return Mm(r,{get actions(){return e(f)},align:"end",get ariaLabel(){return a()},onAction:g=>_g(n(),g)?.onClick(),get open(){return s()},set open(g){s(g)},trigger:(g,T)=>{let b=()=>(T?.()).props;yt(g,_i(b,{variant:"plain",size:"icon-compact",iconOnly:!0,type:"button",get class(){return l()},get"aria-label"(){return a()},onclick:h=>{h.stopPropagation(),b().onclick?.(h)},oncontextmenu:h=>{h.preventDefault(),h.stopPropagation()},children:(h,A)=>{Lm(h,{get orientation(){return o()},class:"size-3.5"})},$$slots:{default:!0}}))},$$slots:{trigger:!0}}),qt(i)}var ck=S('<span class="contents"><!></span>'),dk=S("<!> <!>",1);function qu(r,t){if(new.target)return Ht({component:qu,...r});Ut(t,!0);let n=y(t,"workspaceId",7),a=y(t,"slot",7);const s=u(()=>Yg(a()));let o=ye(null);It(()=>{e(o)&&e(o).workspaceId!==n()&&M(o,null)});function c(h){const A=sd(h);A&&M(o,{...A,workspaceId:n()},!0)}function l(h){h.preventDefault(),h.stopPropagation();const A=h.currentTarget.getBoundingClientRect();M(o,{x:A.left,y:A.bottom+2,returnFocus:h.currentTarget,workspaceId:n()},!0)}function f(){M(o,null)}var i={get workspaceId(){return n()},set workspaceId(h){n(h),_()},get slot(){return a()},set slot(h){a(h),_()},$set:jt,$on:(h,A)=>Wt(t,h,A)},p=dk(),g=qe(p);{let h=u(()=>v.workspace_microKeyBadge_ariaLabel({number:ar(a()+1)})),A=u(()=>v.workspace_microKeyBadge_tooltip({number:ar(a()+1)})),P=u(()=>e(o)!==null);yt(g,{variant:"ghost",size:"icon",type:"button",class:"micro-key-slot-badge size-4 min-w-0 shrink-0 cursor-pointer rounded-[3px] p-0 a11y-ignore",get"aria-label"(){return e(h)},get title(){return e(A)},onclick:l,oncontextmenu:c,onkeydown:c,"aria-haspopup":"menu",get"aria-expanded"(){return e(P)},children:(B,F)=>{var O=ck(),N=I(O);$p(N,{get slot(){return a()},get class(){return`transition-colors ${e(s)??""}`}}),w(O),d(B,O)},$$slots:{default:!0}})}var T=m(g,2);{var b=h=>{{let A=u(()=>e(o)?.x??0),P=u(()=>e(o)?.y??0),B=u(()=>e(o)?.returnFocus),F=u(()=>v.workspace_card_assignMicroKey_label()),O=u(()=>Bh(n(),f));od(h,{get x(){return e(A)},get y(){return e(P)},get returnFocus(){return e(B)},selection:"single",get ariaLabel(){return e(F)},get items(){return e(O)},onClickOutside:f})}};D(T,h=>{e(o)&&h(b)})}return d(r,p),qt(i)}var uk=S('<span class="flex size-4 shrink-0 items-center justify-center"><!></span>'),fk=S('<span data-workspace-card-pin-indicator="" aria-hidden="true"><!></span> <span class="sr-only"> </span>',1),pk=S('<span class="type-caption shrink-0 rounded-sm bg-muted-foreground/10 px-1.5 font-normal text-muted-foreground" data-workspace-card-trailing-label=""> </span>'),gk=S('<span data-workspace-card-pr-item=""><!></span>'),vk=S('<span class="flex shrink-0 items-center" data-workspace-card-pr-list=""><!></span>'),mk=S('<span data-workspace-card-time=""><!></span>'),hk=S('<span aria-hidden="true"><!></span>'),bk=S("<div><!> <!> <!> <!></div>"),yk=S('<div data-workspace-card-hover-surface=""><!></div>'),_k=S('<div role="group" data-workspace-card-row=""><!> <div class="relative z-10 flex shrink-0 items-center gap-1.5"><!> <!> <span class="sr-only"> </span></div> <div class="relative z-10 flex min-w-0 flex-1 items-center gap-2"><span class="flex min-w-0 flex-1 items-center gap-1" data-workspace-card-title-group=""><span dir="ltr" data-workspace-card-title=""><span class="wc-title-text svelte-1ct56pd"> </span></span> <!></span> <!> <!> <!></div> <!></div> <!> <!>',1),xk=S('<div class="relative z-10 flex shrink-0 items-center"><!></div>'),wk=S('<div><!> <!> <span class="font-medium truncate"> </span> <span class="shrink-0 text-muted-foreground">·</span> <span class="truncate text-xs text-muted-foreground"> </span> <!></div>'),kk=S('<div class="text-sm font-semibold truncate"> </div>'),qc=S('<span class="truncate"> </span>'),Sk=S('<span class="text-muted-foreground">·</span>'),Ik=S('<div class="flex items-center gap-1 truncate text-xs text-muted-foreground"><!> <!> <!></div>'),Ck=S('<div><!> <!> <div class="flex items-center gap-2 text-xs"><!> <span class="truncate text-muted-foreground"> </span> <span> </span></div> <!></div>'),Ek=S('<div class="flex items-center gap-2"><!> <span class="text-ui shrink-0 tabular-nums text-muted-foreground"> </span></div>'),Ak=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span> <span class="tabular-nums"><span class="text-success"> </span> <span class="ml-1 text-danger"> </span></span></div>'),Pk=S('<div class="flex items-center justify-between text-ui"><span class="text-muted-foreground"> </span></div>'),Tk=S('<div class="flex items-center text-ui"><span> </span></div>'),Rk=S('<div class="flex flex-col gap-1 px-3 pb-2.5"><!> <!> <!> <!></div>'),Mk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!></div>'),Lk=S('<div class="relative z-10 flex items-center gap-1.5 px-2 pb-2"><!> <!></div>'),Nk=S('<div role="group"><!> <div class="flex items-start gap-2.5 px-3 pt-3 pb-2"><!> <div class="flex-1 min-w-0"><div class="text-sm font-medium"> </div> <div class="mt-0.5 line-clamp-2 text-xs leading-snug text-muted-foreground"> </div></div></div> <!> <!></div>');function Vu(r,t){if(new.target)return Ht({component:Vu,...r});Ut(t,!0);const n=()=>St(je,"$prMonitors$",c),a=()=>St(Ue,"$microConnected$",c),s=()=>St($,"$hidesOwnerActions$",c),o=()=>St(le,"$workspaceKeySlot$",c),[c,l]=oa();let f=y(t,"workspace",7),i=y(t,"phase",7),p=y(t,"stats",7),g=y(t,"variant",7,"compact"),T=y(t,"showTime",7,!0),b=y(t,"isRunning",7,!1),h=y(t,"isUnread",7,!1),A=y(t,"isWaiting",7),P=y(t,"isPinned",7,!1),B=y(t,"streamingAgentIds",23,()=>[]),F=y(t,"hasSpec",7,!1),O=y(t,"isAgentRunning",7,!1),N=y(t,"agentDigest",7),U=y(t,"trailingLabel",7),E=y(t,"title",7),z=y(t,"repoName",7),J=y(t,"branch",7),Z=y(t,"onClick",7),Q=y(t,"onAction",7),Ie=y(t,"onTogglePin",7),ce=y(t,"onMarkAsRead",7),oe=y(t,"onOpenInNewWindow",7),ue=y(t,"onHover",7),we=y(t,"highlighted",7,!1),G=y(t,"selected",7,!1),fe=y(t,"highlightId",7),ie=y(t,"suppressHover",7,!1),Ne=y(t,"isolateHoverReveal",7,!1),Re=y(t,"class",7),ke=y(t,"actions",7);const _e=$a("");It(()=>{_e.set(f()?.id??"")});const je=jp(_e),Ue=Zh(),le=Ev(_e),$=Wp(_e),Ze=u(()=>zh(f()??{})),V=u(()=>Hh(e(Ze)));let K=u(()=>f()?Xh.url.pathname===`/workspace/${f().id}`:!1),W=u(()=>f()?`workspace-hover-card-${f().id}`:void 0),se=ye(!1),Ce=ye(null),Y=ye(null);It(()=>{if(!e(Y))return;const ee=Ds(e(Y),{id:fe()});return()=>ee.destroy()});let de=ye(null),Ae=ye(null),He=ye(null),tt=ye(0),ge=ye(0),Oe=u(()=>e(tt)+(e(ge)>0?e(ge)+4:0));function q(){const ee=e(de),gt=e(He);M(tt,ee?Math.max(0,ee.scrollWidth-ee.clientWidth):0,!0),M(ge,ee&>&>.getClientRects().length>0?Math.max(0,ee.getBoundingClientRect().right-gt.getBoundingClientRect().left):0,!0)}It(()=>{const ee=e(de),gt=e(Ae),Dt=e(He);if(!ee||!gt||(q(),typeof ResizeObserver>"u"))return;const ur=new ResizeObserver(q);return ur.observe(ee),ur.observe(gt),Dt&&ur.observe(Dt),()=>ur.disconnect()});let Me=null,ve=null,L=!1,H=!1,me=!1,$e=!1,Pe=!1,ze=!1,X=ye(!1),xe=!1,Ke=null,rt=ye(null),ht=null,We;function mt(){Me!==null&&(clearTimeout(Me),Me=null)}function ot(){ve!==null&&(clearTimeout(ve),ve=null),ht?.(),ht=null}function it(){ot(),M(X,!0),M(se,!0),!Pe&&(Pe=!0,ps.notifyOpened())}function dt(){ot(),clearTimeout(We),M(X,!1),M(se,!1),H=!1,$e=!1,Pe&&(Pe=!1,ps.notifyClosed())}function Gt(){return L||H||me||$e}function Ft(){if(!e(se)){dt();return}ot(),ve=setTimeout(()=>{ve=null,Gt()||dt()},Wh),ht=ps.deferClose(dt)}function Jt(){H=!0,ot()}function xt(){H=!1,!me&&!$e&&Ft()}function Vt(){$e=!0,clearTimeout(We),ot()}function Kt(ee){const gt=ee.relatedTarget instanceof Node?ee.relatedTarget:null;if(gt&&pe()?.contains(gt)||($e=!1,gt&&e(Ce)?.contains(gt)))return;if(gt){!L&&!H&&dt();return}const Dt=ee.target;clearTimeout(We),We=setTimeout(()=>{const ur=document.activeElement,_r=pe()?.contains(ur)||e(Ce)?.contains(ur);ur&&ur!==Dt&&_r||!L&&!H&&dt()},0)}function Ct(){Ke!==null&&clearTimeout(Ke),xe=!0,Ke=setTimeout(()=>{xe=!1,Ke=null},0)}function Yt(ee){const gt=ee.target,Dt=pe();gt instanceof Node&&Dt?.contains(gt)||ee.type==="scroll"&&e(Ce)&> instanceof Node&&!gt.contains(e(Ce))||(ee.type==="pointerdown"&&Ct(),mt(),dt())}It(()=>{if(e(X))return window.addEventListener("pointerdown",Yt,!0),window.addEventListener("scroll",Yt,!0),()=>{window.removeEventListener("pointerdown",Yt,!0),window.removeEventListener("scroll",Yt,!0)}});function Mt(ee){if(ee.key!=="Escape")return;const gt=ee.target;gt instanceof Node&&pe()?.contains(gt)||(ee.preventDefault(),ee.stopPropagation(),ze=me,mt(),dt())}It(()=>{if(e(se))return window.addEventListener("keydown",Mt,!0),()=>window.removeEventListener("keydown",Mt,!0)});const be=u(()=>f()?qp.select(Nt.state,f().id):null),re=u(()=>e(be)?e(be):f()?.activePullRequest?f().activePullRequest:!f()?.prStatus||f().prNumber==null?null:{id:`legacy-pr-${f().prNumber}`,number:f().prNumber,url:f().prUrl??"",title:v.workspace_hoverCard_pullRequest_label(),status:f().prStatus,createdAt:f().updatedAt,updatedAt:f().updatedAt}),Ve=u(()=>Up(f())),lt=u(()=>{if(!f()||e(Ve))return[];const ee=f(),gt=ee.repositoryOwner&&ee.repositoryName?`${ee.repositoryOwner}/${ee.repositoryName}`:void 0;return wg({workspacePRs:ee.pullRequests,activePR:e(re),monitors:n(),workspaceRepo:gt,buildPrUrl:(Dt,ur)=>fm(Dt,ee.repositoryOwner,ee.repositoryName,ur),getDisplayTitle:Dt=>Dt.title})}),ct=u(()=>e(lt)[0]);function De(ee){const gt=ee.resource?.repository.provider==="gitlab"?`${ee.repo} !${ee.number}`:ee.repo?v.workspace_card_prBadge_repoLine_tooltip({repo:ee.repo,number:ee.number}):v.workspace_card_prBadge_label({number:` #${ee.number}`});return[Vp(gt,ee),ee.title,ee.details].filter(Boolean).join(`
|
|
262
262
|
`)}function ne(ee){ee.key==="Enter"&&Z()?.(ee)}function pe(){return e(W)?document.getElementById(e(W)):null}function te(){return Array.from(pe()?.querySelectorAll("button:not(:disabled), a[href]")??[])}function Ee(){const ee=e(Ce)?.querySelector("[data-workspace-card-trigger]"),gt=pe();if(!ee||!gt)return null;const Dt=Array.from(document.querySelectorAll('button:not(:disabled), a[href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])')).filter(_r=>_r.tabIndex>=0&&!gt.contains(_r)),ur=Dt.indexOf(ee);return ur>=0?Dt[ur+1]:null}function Se(ee){ze=!!e(Ce)?.contains(ee),dt(),ee.focus({preventScroll:!0})}function Xe(){const ee=e(Ce)?.querySelector("[data-workspace-card-trigger]");ee&&Se(ee)}async function Fe(ee){if(ee.key==="Escape"&&e(se)){ee.preventDefault(),ee.stopPropagation(),dt();return}ee.key!=="ArrowDown"||ie()||!f()||(ee.preventDefault(),ee.stopPropagation(),M(X,!0),M(se,!0),await Xn(),te()[0]?.focus({preventScroll:!0}))}function Ge(ee){const gt=te(),Dt=ee.key==="Tab"&&ee.shiftKey&&ee.currentTarget===gt[0],_r=ee.key==="Tab"&&!ee.shiftKey&&ee.currentTarget===gt.at(-1)?Ee():null;ee.key!=="Escape"&&!Dt&&!_r||(ee.preventDefault(),ee.stopPropagation(),_r?Se(_r):Xe())}function Qe(){L=!0,ot(),ps.settleDeferredCloses(),q(),ue()?.(),f()&&!ie()&&!me&&(mt(),M(X,!0),Me=setTimeout(()=>{Me=null,it()},ps.currentOpenDelay))}function Te(){L=!1,mt(),!me&&!$e&&Ft()}function Ye(){me=!0,mt(),ot(),!ze&&(xe||f()&&!ie()&&(M(X,!0),M(se,!0)))}function Be(ee){const gt=ee.relatedTarget instanceof Node?ee.relatedTarget:null;gt&&e(Ce)?.contains(gt)||(ze=!1,me=!1,!(gt&&pe()?.contains(gt))&&!L&&!H&&dt())}It(()=>{ie()&&(mt(),ot(),dt())});let et=ye(null),ft=ye(!1),st;It(()=>{const ee=f()?.id;st!==ee&&(st=ee,M(ft,!1)),e(et)&&e(et).workspaceId!==f()?.id&&_t()});function nt(ee){if(!f())return;const gt=sd(ee);if(gt){if(M(ft,!1),vt().length===0){M(et,null);return}M(et,{...gt,returnFocus:ee.target instanceof HTMLElement?ee.target.closest("button")??e(Ce)?.querySelector("button")??null:null,workspaceId:f().id},!0)}}function _t(){M(et,null),M(ft,!1)}It(()=>{e(ft)&&M(et,null)}),Cs(()=>{mt(),ot(),Ke!==null&&(clearTimeout(Ke),Ke=null),dt()});function vt(){if(!f())return[];const ee=[];return oe()&&ee.push({id:"open-new-window",label:v.workspace_card_openNewWindow_label(),icon:fd,onClick:()=>{oe()?.(),_t()}}),ee.push(...jh(f().id,{connected:a(),onClose:_t})),s()||(e(Ve)||ee.push({id:"transfer",label:v.workspace_card_transfer_label(),icon:zg,onClick:()=>{Nt.dispatch(dv({workspaceId:f().id,workspaceTitle:f().title})),_t()}}),ee.push({id:"archive",label:v.workspace_card_archive_label(),icon:pd,onClick:()=>{Nt.dispatch(Id(f().id)),_t()}}),ee.push({id:"delete",label:v.workspace_card_deleteSpace_label(),icon:gd,destructive:!0,onClick:()=>{Nt.dispatch(Cd(f().id)),_t()}})),ee}let Ot=u(()=>O()&&N()?N():i()?.subtitle??""),Xt=u(()=>p()&&p().tasks.total>0?p().tasks.completed/p().tasks.total:0),er=u(()=>!!p()&&(p().tasks.total>0||p().files.changed>0||p().commits.total>0||p().pr.hasOpen||p().pr.hasMerged)),dr=u(()=>e(Ve)?void 0:J()),jr=u(()=>!p()||e(Ve)?"":p().pr.hasMerged?v.workspace_card_prMerged_label({number:p().pr.number??""}):p().pr.hasOpen?v.workspace_card_prOpen_label({number:p().pr.number?`#${p().pr.number}`:""}):""),nn=u(()=>i()?.phase==="planning"?O()?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:F()||(p()?.tasks.total??0)>0?{primary:{label:v.workspace_card_approveStart_label(),action:"approve"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_viewSpec_label(),action:"view-spec"}}:i()?.phase==="building"?{primary:{label:v.workspace_card_showCoordinator_label(),action:"show-coordinator"},secondary:{label:v.workspace_card_pause_label(),action:"pause"}}:i()?.phase==="reviewing"?{primary:{label:v.workspace_card_createPr_label(),action:"create-pr"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}}:{primary:{label:v.workspace_card_archive_label(),action:"archive"},secondary:{label:v.workspace_card_showChanges_label(),action:"show-changes"}});const mn={planning:"bg-muted/20 text-muted-foreground",building:"bg-info/15 text-info",reviewing:"bg-primary/15 text-primary",shipped:"bg-foreground/10 text-foreground"};var zn={get workspace(){return f()},set workspace(ee){f(ee),_()},get phase(){return i()},set phase(ee){i(ee),_()},get stats(){return p()},set stats(ee){p(ee),_()},get variant(){return g()},set variant(ee="compact"){g(ee),_()},get showTime(){return T()},set showTime(ee=!0){T(ee),_()},get isRunning(){return b()},set isRunning(ee=!1){b(ee),_()},get isUnread(){return h()},set isUnread(ee=!1){h(ee),_()},get isWaiting(){return A()},set isWaiting(ee){A(ee),_()},get isPinned(){return P()},set isPinned(ee=!1){P(ee),_()},get streamingAgentIds(){return B()},set streamingAgentIds(ee=[]){B(ee),_()},get hasSpec(){return F()},set hasSpec(ee=!1){F(ee),_()},get isAgentRunning(){return O()},set isAgentRunning(ee=!1){O(ee),_()},get agentDigest(){return N()},set agentDigest(ee){N(ee),_()},get trailingLabel(){return U()},set trailingLabel(ee){U(ee),_()},get title(){return E()},set title(ee){E(ee),_()},get repoName(){return z()},set repoName(ee){z(ee),_()},get branch(){return J()},set branch(ee){J(ee),_()},get onClick(){return Z()},set onClick(ee){Z(ee),_()},get onAction(){return Q()},set onAction(ee){Q(ee),_()},get onTogglePin(){return Ie()},set onTogglePin(ee){Ie(ee),_()},get onMarkAsRead(){return ce()},set onMarkAsRead(ee){ce(ee),_()},get onOpenInNewWindow(){return oe()},set onOpenInNewWindow(ee){oe(ee),_()},get onHover(){return ue()},set onHover(ee){ue(ee),_()},get highlighted(){return we()},set highlighted(ee=!1){we(ee),_()},get selected(){return G()},set selected(ee=!1){G(ee),_()},get highlightId(){return fe()},set highlightId(ee){fe(ee),_()},get suppressHover(){return ie()},set suppressHover(ee=!1){ie(ee),_()},get isolateHoverReveal(){return Ne()},set isolateHoverReveal(ee=!1){Ne(ee),_()},get class(){return Re()},set class(ee){Re(ee),_()},get actions(){return ke()},set actions(ee){ke(ee),_()},$set:jt,$on:(ee,gt)=>Wt(t,ee,gt)},Un=kt(),da=qe(Un);{var wr=ee=>{var gt=_k(),Dt=qe(gt);let ur;var _r=I(Dt);{let bt=u(()=>f().title||v.workspace_links_untitled_label()),Pt=u(()=>`workspace-status-state-${f().id}${P()?` workspace-pinned-state-${f().id}`:""}${e(se)?` ${e(W)}`:""}`),pr=u(()=>e(K)?"page":void 0);yt(_r,{variant:"plain",class:"absolute inset-0 z-0 h-auto w-auto rounded-md focus-visible:border-transparent focus-visible:bg-background/50 focus-visible:ring-0",get"aria-label"(){return e(bt)},get"aria-describedby"(){return e(Pt)},get"aria-current"(){return e(pr)},"data-workspace-card-trigger":!0,onkeydown:Fe,onclick:xr=>{xr.stopPropagation(),Z()?.(xr)}})}var kn=m(_r,2),cn=I(kn);{var Hn=bt=>{var Pt=uk(),pr=I(Pt);{var xr=Pr=>{qu(Pr,{get workspaceId(){return f().id},get slot(){return o()}})};D(pr,Pr=>{o()!==null&&Pr(xr)})}w(Pt),d(bt,Pt)};D(cn,bt=>{a()&&bt(Hn)})}var hn=m(cn,2);Go(hn,{get content(){return e(V).tooltip},side:"bottom",sideOffset:4,children:(bt,Pt)=>{Fh(bt,{get status(){return e(Ze)},size:14,decorative:!0,class:"justify-start"})},$$slots:{default:!0}});var Tn=m(hn,2),Zn=R(Tn,!0);w(kn);var Yr=m(kn,2),dn=I(Yr),Zt=I(dn),an=I(Zt),qn=R(an,!0);mr(an,bt=>M(Ae,bt),()=>e(Ae)),w(Zt),mr(Zt,bt=>M(de,bt),()=>e(de));var kr=m(Zt,2);{var Or=bt=>{var Pt=fk(),pr=qe(Pt),xr=I(pr);At(xr,{get icon(){return Sl},size:"xs"}),w(pr);var Pr=m(pr,2),j=R(Pr,!0);k(Le=>{pt(pr,1,`wc-pin-indicator inline-flex shrink-0 items-center text-muted-foreground transition-opacity
|
|
263
|
-
${Ie()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(Pr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Le)},[()=>v.layout_activeCard_pinned_header()]),d(bt,Pt)};D(kr,bt=>{P()&&bt(Or)})}w(dn);var un=m(dn,2);{var la=bt=>{var Pt=pk(),pr=R(Pt,!0);k(()=>x(pr,U())),d(bt,Pt)};D(un,bt=>{U()&&bt(la)})}var Xr=m(un,2);{var Zr=bt=>{const Pt=u(()=>e(ct));var pr=vk(),xr=I(pr);{let Pr=u(()=>De(e(Pt)));Go(xr,{get content(){return e(Pr)},side:"bottom",sideOffset:4,children:(j,Le)=>{var ut=kt(),$t=qe(ut);{var fr=gr=>{{let hr=u(()=>De(e(Pt)));yt(gr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:sn=>{sn.stopPropagation();const Vn=f().id;mp(async()=>{const{handleLink:Wr}=await import("./
|
|
263
|
+
${Ie()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-focus-within/wc:opacity-0":"group-hover:opacity-0 group-focus-within:opacity-0":""}`,"svelte-1ct56pd"),ae(Pr,"id",`workspace-pinned-state-${f().id??""}`),x(j,Le)},[()=>v.layout_activeCard_pinned_header()]),d(bt,Pt)};D(kr,bt=>{P()&&bt(Or)})}w(dn);var un=m(dn,2);{var la=bt=>{var Pt=pk(),pr=R(Pt,!0);k(()=>x(pr,U())),d(bt,Pt)};D(un,bt=>{U()&&bt(la)})}var Xr=m(un,2);{var Zr=bt=>{const Pt=u(()=>e(ct));var pr=vk(),xr=I(pr);{let Pr=u(()=>De(e(Pt)));Go(xr,{get content(){return e(Pr)},side:"bottom",sideOffset:4,children:(j,Le)=>{var ut=kt(),$t=qe(ut);{var fr=gr=>{{let hr=u(()=>De(e(Pt)));yt(gr,{variant:"plain",size:"icon-compact",iconOnly:!0,get class(){return`size-5 shrink-0 rounded-sm ${e(Pt).foregroundClass??""}`},get"aria-label"(){return e(hr)},"data-workspace-card-pr-item":!0,get"data-pr-identity"(){return e(Pt).identity},get"data-pr-status"(){return e(Pt).status},onclick:sn=>{sn.stopPropagation();const Vn=f().id;mp(async()=>{const{handleLink:Wr}=await import("./B2B7A5cv.js").then(Tr=>Tr.H);return{handleLink:Wr}},__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,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65]),import.meta.url).then(({handleLink:Wr})=>Wr(e(Pt).url,{workspaceId:Vn,event:sn}))},children:(sn,Vn)=>{At(sn,{get icon(){return e(Pt).statusIcon},size:14})},$$slots:{default:!0}})}},sr=gr=>{var hr=gk(),sn=I(hr);At(sn,{get icon(){return e(Pt).statusIcon},size:14}),w(hr),k(Vn=>{pt(hr,1,`inline-flex size-5 shrink-0 items-center justify-center rounded-sm ${e(Pt).foregroundClass??""}`,"svelte-1ct56pd"),ae(hr,"aria-label",Vn),ae(hr,"data-pr-identity",e(Pt).identity),ae(hr,"data-pr-status",e(Pt).status)},[()=>De(e(Pt))]),d(gr,hr)};D($t,gr=>{e(Pt).url?gr(fr):gr(sr,-1)})}d(j,ut)},$$slots:{default:!0}})}w(pr),k(Pr=>ae(pr,"aria-label",Pr),[()=>e(Pt).resource?.repository.provider==="gitlab"?v.workspace_hoverCard_mergeRequest_label():v.workspace_hoverCard_pullRequest_label()]),d(bt,pr)};D(Xr,bt=>{e(ct)&&bt(Zr)})}var Br=m(Xr,2);{var Qn=bt=>{var Pt=mk(),pr=I(Pt);{var xr=j=>{{let Le=u(()=>Tl(f()));eg(j,{get date(){return e(Le)},class:"type-caption whitespace-nowrap tabular-nums text-muted-foreground",compact:!0})}},Pr=u(()=>Tl(f())>0);D(pr,j=>{e(Pr)&&j(xr)})}w(Pt),k(()=>pt(Pt,1,`wc-secondary shrink-0 ${ke()||Ie()||h()&&ce()?we()?"opacity-0":ie()?"":Ne()?"group-hover/wc:opacity-0 group-hover/message:opacity-0":"group-hover:opacity-0 group-hover/message:opacity-0":""}`,"svelte-1ct56pd")),d(bt,Pt)};D(Br,bt=>{T()&&bt(Qn)})}w(Yr);var Pa=m(Yr,2);{var Ba=bt=>{var Pt=bk(),pr=I(Pt);{var xr=fr=>{{let sr=u(()=>P()?"text-primary-ink":"text-muted-foreground"),gr=u(()=>P()?v.workspace_card_unpin_ariaLabel():v.workspace_card_pin_ariaLabel()),hr=u(()=>P()?v.workspace_card_unpin_tooltip():v.workspace_card_pin_tooltip());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,get class(){return`transition-all hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0
|
|
264
264
|
${e(sr)??""}`},onclick:sn=>{sn.stopPropagation(),Ie()?.(sn)},get"aria-label"(){return e(gr)},get title(){return e(hr)},children:(sn,Vn)=>{var Wr=hk(),Tr=I(Wr);At(Tr,{get icon(){return Sl},size:"xs"}),w(Wr),d(sn,Wr)},$$slots:{default:!0}})}};D(pr,fr=>{Ie()&&fr(xr)})}var Pr=m(pr,2);{var j=fr=>{{let sr=u(()=>v.workspace_card_markAsRead_label()),gr=u(()=>v.workspace_card_markAsRead_label());yt(fr,{variant:"plain",size:"icon-xs",iconOnly:!0,class:"text-muted-foreground hover:bg-muted/50 hover:text-foreground focus-visible:border-transparent focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:ring-0",onclick:hr=>{hr.stopPropagation(),ce()?.(hr)},get"aria-label"(){return e(sr)},get title(){return e(gr)},children:(hr,sn)=>{At(hr,{get icon(){return vd},size:"xs"})},$$slots:{default:!0}})}};D(Pr,fr=>{h()&&ce()&&fr(j)})}var Le=m(Pr,2);ln(Le,()=>ke()??Ks);var ut=m(Le,2);{var $t=fr=>{{let sr=u(vt),gr=u(()=>v.workspace_progressCard_actions_ariaLabel());Ui(fr,{get items(){return e(sr)},get ariaLabel(){return e(gr)},class:"flex size-5 cursor-pointer items-center justify-center rounded text-muted-foreground transition-colors hover:bg-muted/50 hover:text-foreground focus-visible:bg-muted/50 focus-visible:text-foreground focus-visible:outline-none",get open(){return e(ft)},set open(hr){M(ft,hr,!0)}})}};D(ut,fr=>{oe()&&fr($t)})}w(Pt),mr(Pt,fr=>M(He,fr),()=>e(He)),k(()=>pt(Pt,1,`wc-actions absolute right-1 top-1/2 z-20 flex -translate-y-1/2 items-center gap-0.5 rounded-md bg-accent/95 px-0.5 focus-within:opacity-100
|
|
265
265
|
${Ne()?"group-focus-within/wc:opacity-100":"group-focus-within:opacity-100"}
|
|
266
266
|
${we()?"opacity-100":ie()?"opacity-0":Ne()?"opacity-0 group-hover/wc:opacity-100":"opacity-0 group-hover:opacity-100"}`,"svelte-1ct56pd")),d(bt,Pt)};D(Pa,bt=>{(ke()||oe()||Ie()||h()&&ce())&&bt(Ba)})}w(Dt),mr(Dt,bt=>M(Ce,bt),()=>e(Ce)),Fn(Dt,(bt,Pt)=>Ds?.(bt,Pt),()=>({id:fe()}));var Qr=m(Dt,2);{var $r=bt=>{Uh(bt,{get id(){return e(W)},get anchor(){return`--workspace-list-${f().id??""}`},position:"right",get anchorElement(){return e(Ce)},class:"w-auto overflow-visible! rounded-lg border-0! bg-background! shadow-none!",onmouseenter:Jt,onmouseleave:xt,onfocusin:Vt,onfocusout:Kt,children:(Pt,pr)=>{var xr=yk(),Pr=I(xr);qh(Pr,{get workspace(){return f()},get activeAgentIds(){return B()},onkeydown:Ge}),w(xr),mr(xr,j=>M(rt,j),()=>e(rt)),En("pointerenter",xr,Jt),En("pointerleave",xr,xt),Lr("focusin",xr,Vt),Lr("focusout",xr,Kt),d(Pt,xr)},$$slots:{default:!0}})};D(Qr,bt=>{e(se)&&!ie()&&bt($r)})}var Rn=m(Qr,2);{var $n=bt=>{const Pt=u(vt);var pr=kt(),xr=qe(pr);{var Pr=j=>{{let Le=u(()=>e(et)?.x??0),ut=u(()=>e(et)?.y??0),$t=u(()=>e(et)?.returnFocus),fr=u(()=>v.workspace_progressCard_actions_ariaLabel());od(j,{get x(){return e(Le)},get y(){return e(ut)},get returnFocus(){return e($t)},get ariaLabel(){return e(fr)},get items(){return e(Pt)},onClickOutside:_t})}};D(xr,j=>{e(Pt).length>0&&j(Pr)})}d(bt,pr)};D(Rn,bt=>{e(et)&&bt($n)})}k((bt,Pt,pr)=>{pt(Dt,1,bt,"svelte-1ct56pd"),ae(Dt,"data-pinned",P()),ae(Dt,"data-highlight-id",fe()),ur=Pn(Dt,"",ur,{"anchor-name":`--workspace-list-${f().id??""}`}),ae(Tn,"id",`workspace-status-state-${f().id??""}`),x(Zn,e(V).accessibleName),pt(Zt,1,`wc-title type-body min-w-0 truncate font-normal!
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e1=Object.defineProperty;var t1=(t,e,r)=>e in t?e1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>t1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as r1,ds as Rl,_ as z0,Y as va,Z as n1,X as a1,a1 as i1,ab as s1,U as o1,dT as l1,M as c1,ba as Dl,cG as Lr,dr as Nl,aT as u1,aX as h1,co as d1,c9 as m1,dl as Va,dN as p1,dG as f1,ay as Bn,al as g1,at as Si,dq as _l,dD as v1,dX as Ll,dW as b1}from"./CArqGgyL.js";import{D as Ns,bv as y1,bM as w1,aY as k1}from"./BkLJcH_z.js";import{M as x1,F as a0}from"./DCCFERAn.js";import{yr as fn,Ik as M,ny as ge,nx as Se,aM as S1,g as Ol,y as Re,be as l0,jT as Ai,lS as gn,aj as jt,lR as _s,l$ as Ls,lY as Os,jq as Pl,gj as Ya,GI as A1,s$ as T1,zM as M1,oA as E1,mE as vn,Bl as C1,iw as I1,m9 as z1,lM as R1}from"./Dk1_0x0Q.js";import{bo as ne}from"./Dso1_H3c.js";import{t as rt}from"./Cl-7Au8R.js";import{l as D1,d as xr}from"./DfBE7crq.js";import{a as c0}from"./BdWqymET.js";import{o as me,r as Gt,e as u0,s as V,_ as Xe,l as h0,g as N1,n as Le,c as or,b as He,u as _1,d as L1}from"./CIyUrgF0.js";import{j as $l}from"./uXuxG9cN.js";import{w as O1}from"./Cxbk0QV6.js";import{b as P1}from"./CIqnL4UD.js";import{i as je}from"./BfDRfZ1x.js";import{l as ba,c as $1}from"./ChTqQfQN.js";import{ax as d0}from"./m5UczIQR.js";import{p as Sr}from"./CCPn5VZR.js";import{i as Ps}from"./D2laB2lQ.js";import{f as Ti,C as Bl,D as ql,l as B1,z as Fl,r as q1,u as F1}from"./CZ_kVWbN.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function H1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const U1=new Uint8Array(16);function W1(){return crypto.getRandomValues(U1)}function Mi(t,e,r){return crypto.randomUUID?crypto.randomUUID():G1(t)}function G1(t,e,r){t=t||{};const n=t.random??t.rng?.()??W1();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,H1(n)}function Ei(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ei({...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?x1(r.replace(/\.git\/?$/,""),e):null}function f5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ei(t,e)?.provider==="gitlab"?"gitlab":"github"}function Hl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function g5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Hl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function v5(t){return t.type==="local"&&t.path?t.path:void 0}const j1=["/.clones/","/.repo-cache/"];function b5(t){const e=t.replaceAll("\\","/");return j1.some(r=>e.includes(r))}function y5(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 V1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function w5(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??V1(r)}}function k5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Hl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const Y1="known-repos",X1=6e4;function K1({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=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function x5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function S5({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<X1?"skip":"load"}function A5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ei(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 Z1({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(Ns)?Ns:null;return s===null||!i(s)?null:s}const T5=M.createSelector(t=>t.workspaceInitializer.hydrated),M5=M.createSelector(t=>t.workspaceInitializer.compactFormState),E5=M.createSelector(t=>t.workspaceInitializer.onboardingFormState),C5=M.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),I5=M.createSelector(t=>t.workspaceInitializer.branchByRepo),z5=M.createSelector(t=>t.workspaceInitializer.defaultParentPath),R5=M.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),D5=M.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),N5=M.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),_5=M.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),L5=M.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),O5=M.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),P5=M.createSelector(t=>t.workspaceInitializer.agentByRepo),$5=M.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),B5=M.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),q5=M.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),F5=M.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),H5=M.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),U5=M.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),W5=M.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),G5=M.createSelector(t=>Z1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:w1.select(t),orchestratorId:y1.select(t)?.id??null})),Q1=M.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&r1.select(t)?JSON.stringify([r,e]):null}),j5=M.createSelector(t=>{const e=Q1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),J1=M.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,Y1),r=ur.select(t);return K1({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),V5=M.createSelector(t=>Rl.select(t)?J1.select(t):[]),Y5=M.createSelector(t=>k1.select(t)||void 0),$s="workspace-debug-flags",bn={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 eh{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.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={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.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 ya=new eh;function X5(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 th(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(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 Z5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Xa(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function Q5(t,e){return`${e}:${t.agentId??"manual"}`}function rh(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 nh(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 ah(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 J5(t,e,r,n){const a=rh(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 e3(t,e,r){const n=nh(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 t3(t,e){const r=ah(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function r3(t,e){return e===0&&t.length>0}function n3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function a3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function i3(t,e,r){return r?.path===t&&r?.staged===e}function s3(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 o3(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 ih(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function l3(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=ih(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Xa(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Xa(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function c3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??S1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function sh(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(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=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${n1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:sh(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function u3(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=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],E=new Set([...w,...c,...h].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 K=`${C.toLowerCase()}#${W.number}`;if(E.has(K))continue;E.add(K);const X=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:X,htmlUrl:X,status:Xa(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function h3(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():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[a1(t)??e],n=Bs(t)?D1(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(th(a.mergeBlockedReason))),r.join(`
|
|
1
|
+
var e1=Object.defineProperty;var t1=(t,e,r)=>e in t?e1(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var se=(t,e,r)=>t1(t,typeof e!="symbol"?e+"":e,r);import{cD as ur,aU as r1,ds as Rl,_ as z0,Y as va,Z as n1,X as a1,a1 as i1,ab as s1,U as o1,dT as l1,M as c1,ba as Dl,cG as Lr,dr as Nl,aT as u1,aX as h1,co as d1,c9 as m1,dl as Va,dN as p1,dG as f1,ay as Bn,al as g1,at as Si,dq as _l,dD as v1,dX as Ll,dW as b1}from"./C4E6vJ_G.js";import{D as Ns,bv as y1,bM as w1,aY as k1}from"./BequUoOf.js";import{M as x1,F as a0}from"./C-g-ql7J.js";import{yr as fn,Ik as M,ny as ge,nx as Se,aM as S1,g as Ol,y as Re,be as l0,jT as Ai,lS as gn,aj as jt,lR as _s,l$ as Ls,lY as Os,jq as Pl,gj as Ya,GI as A1,s$ as T1,zM as M1,oA as E1,mE as vn,Bl as C1,iw as I1,m9 as z1,lM as R1}from"./C5wvNL0Z.js";import{bo as ne}from"./C_S5gHJT.js";import{t as rt}from"./DyI4Jpqs.js";import{l as D1,d as xr}from"./DRsuOWdV.js";import{a as c0}from"./BdWqymET.js";import{o as me,r as Gt,e as u0,s as V,_ as Xe,l as h0,g as N1,n as Le,c as or,b as He,u as _1,d as L1}from"./CIyUrgF0.js";import{j as $l}from"./uXuxG9cN.js";import{w as O1}from"./DwPpQNAK.js";import{b as P1}from"./Bqxl7Ok8.js";import{i as je}from"./Bl-MloT_.js";import{l as ba,c as $1}from"./ChTqQfQN.js";import{ax as d0}from"./41Ipz5fb.js";import{p as Sr}from"./CZHiAprx.js";import{i as Ps}from"./cIVqD9Xn.js";import{f as Ti,C as Bl,D as ql,l as B1,z as Fl,r as q1,u as F1}from"./rJUllCO_.js";const We=[];for(let t=0;t<256;++t)We.push((t+256).toString(16).slice(1));function H1(t,e=0){return(We[t[e+0]]+We[t[e+1]]+We[t[e+2]]+We[t[e+3]]+"-"+We[t[e+4]]+We[t[e+5]]+"-"+We[t[e+6]]+We[t[e+7]]+"-"+We[t[e+8]]+We[t[e+9]]+"-"+We[t[e+10]]+We[t[e+11]]+We[t[e+12]]+We[t[e+13]]+We[t[e+14]]+We[t[e+15]]).toLowerCase()}const U1=new Uint8Array(16);function W1(){return crypto.getRandomValues(U1)}function Mi(t,e,r){return crypto.randomUUID?crypto.randomUUID():G1(t)}function G1(t,e,r){t=t||{};const n=t.random??t.rng?.()??W1();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,H1(n)}function Ei(t,e){if(t.repositoryIdentity===null)return null;if(t.repositoryIdentity){const{provider:a,instanceBaseUrl:i,projectPath:s}=t.repositoryIdentity,o=Ei({...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?x1(r.replace(/\.git\/?$/,""),e):null}function f5(t,e){return t.type==="local"?t.plainFolder?"folder":"local":Ei(t,e)?.provider==="gitlab"?"gitlab":"github"}function Hl(t){const e=t.split(/[\\/]/).filter(Boolean);return e[e.length-1]??""}function g5(t){if(t.type!=="local")return{ownerPrefix:t.owner,primary:t.name};const e=Hl(t.path)||t.name,r=t.owner?`${t.owner}/${t.name}`:void 0;return{primary:e,suffix:r}}function v5(t){return t.type==="local"&&t.path?t.path:void 0}const j1=["/.clones/","/.repo-cache/"];function b5(t){const e=t.replaceAll("\\","/");return j1.some(r=>e.includes(r))}function y5(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 V1(t){return t.includes("\\")||t.includes(":")||t.startsWith("/")?void 0:/^([^/]+)\/[^/]+$/.exec(t)?.[1]}function w5(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??V1(r)}}function k5(t,e){const r=e.trim().toLowerCase();return r===""?!0:[t.name,t.path,Hl(t.path),t.owner,t.owner?`${t.owner}/${t.name}`:void 0].some(a=>a?.toLowerCase().includes(r)??!1)}const Y1="known-repos",X1=6e4;function K1({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=fn(s);a.has(o)||a.set(o,s)}else{for(const s of t)a.set(fn(s),s);for(const s of e.repos)a.set(fn(s),s)}const i=[...a.values()].filter(s=>!r[fn(s)]);return n==="all"?i:i.slice(0,9)}function x5(t){const e=t.lastUsedAt?Date.parse(t.lastUsedAt):NaN;return Number.isFinite(e)?e:0}function S5({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<X1?"skip":"load"}function A5(t,e){if(t.type==="local")return t.plainFolder?{repoPath:t.path,plainFolder:!0}:{repoPath:t.path};const r=Ei(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 Z1({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(Ns)?Ns:null;return s===null||!i(s)?null:s}const T5=M.createSelector(t=>t.workspaceInitializer.hydrated),M5=M.createSelector(t=>t.workspaceInitializer.compactFormState),E5=M.createSelector(t=>t.workspaceInitializer.onboardingFormState),C5=M.createSelector(t=>t.workspaceInitializer.lastSelectedRepo),I5=M.createSelector(t=>t.workspaceInitializer.branchByRepo),z5=M.createSelector(t=>t.workspaceInitializer.defaultParentPath),R5=M.createSelector(t=>ge(t.workspaceInitializer.recentRepos)),D5=M.createSelector((t,e)=>Se(t.workspaceInitializer.recentRepoRefreshes,e)),N5=M.createSelector((t,e)=>Se(t.workspaceInitializer.directoryStatusChecks,e)),_5=M.createSelector(t=>t.workspaceInitializer.dismissedRecentRepoKeys),L5=M.createSelector(t=>ge(t.workspaceInitializer.remoteSetups)),O5=M.createSelector(t=>t.workspaceInitializer.lastSubmittedAgent),P5=M.createSelector(t=>t.workspaceInitializer.agentByRepo),$5=M.createSelector(t=>t.workspaceInitializer.recentSpecialistIds),B5=M.createSelector((t,e)=>t.workspaceInitializer.agentByRepo[e]??null),q5=M.createSelector(t=>t.workspaceInitializer.pendingGitHubPrefill),F5=M.createSelector((t,e)=>({restore:Se(t.workspaceInitializer.draftRestores,e),clear:Se(t.workspaceInitializer.draftClears,e)})),H5=M.createSelector((t,e,r)=>{const n=Se(t.workspaceInitializer.initializationOutcomes,e);return n?.resourceId===r?n:void 0}),U5=M.createSelector((t,e)=>Se(t.workspaceInitializer.initializationOutcomes,e)),W5=M.createSelector((t,e)=>Se(t.workspaceInitializer.initializationResumes,e)),G5=M.createSelector(t=>Z1({compactFormState:t.workspaceInitializer.compactFormState,lastSubmittedAgent:t.workspaceInitializer.lastSubmittedAgent,specialists:w1.select(t),orchestratorId:y1.select(t)?.id??null})),Q1=M.createSelector(t=>{const e=t.workspaceInitializer.gitCheckRequest,r=ur.select(t);return e&&r&&r1.select(t)?JSON.stringify([r,e]):null}),j5=M.createSelector(t=>{const e=Q1.select(t),r=t.workspaceInitializer.gitCheck;return e&&r?.context===e?r.available:null}),J1=M.createSelector(t=>{const e=Se(t.workspaceInitializer.recentRepoRefreshes,Y1),r=ur.select(t);return K1({saved:ge(t.workspaceInitializer.recentRepos),source:e&&r&&e.admission===r?e:null,dismissed:t.workspaceInitializer.dismissedRecentRepoKeys,mode:"all"})}),V5=M.createSelector(t=>Rl.select(t)?J1.select(t):[]),Y5=M.createSelector(t=>k1.select(t)||void 0),$s="workspace-debug-flags",bn={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 eh{constructor(){se(this,"flags");se(this,"listeners",new Set);this.flags=this.loadFlags()}loadFlags(){if(typeof localStorage>"u")return bn;try{const e=localStorage.getItem($s);if(e)return{...bn,...JSON.parse(e)}}catch(e){ba.error("Failed to load debug flags:",e)}return bn}saveFlags(){if(!(typeof localStorage>"u")){try{localStorage.setItem($s,JSON.stringify(this.flags))}catch(e){ba.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={...bn},this.saveFlags()}getAll(){return{...this.flags}}subscribe(e){return this.listeners.add(e),()=>this.listeners.delete(e)}toggleDebugPanel(){this.toggle("showDebugInfo"),ba.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 ya=new eh;function X5(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 th(t){return t.charAt(0).toUpperCase()+t.slice(1)}function K5(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 Z5(t,e,r,n){return e&&r?`https://github.com/${e}/${r}/pull/${t}`:n||""}function Xa(t){return t==="Open"?"open":t==="Merged"?"merged":t==="Draft"?"draft":"closed"}function Q5(t,e){return`${e}:${t.agentId??"manual"}`}function rh(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 nh(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 ah(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 J5(t,e,r,n){const a=rh(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 e3(t,e,r){const n=nh(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 t3(t,e){const r=ah(t,e);return r===1?ne.workspace_sidebarChanges_undoCommit_one():ne.workspace_sidebarChanges_undoCommit_many({count:rt(r)})}function r3(t,e){return e===0&&t.length>0}function n3(t,e,r,n){return!r||n==null?!1:t===r&&e===n}function a3(t,e,r){const n=`${e?"staged":"unstaged"}:${t}`;return r.has(n)}function i3(t,e,r){return r?.path===t&&r?.staged===e}function s3(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 o3(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 ih(t){const e=t?.match(/^https?:\/\/github\.com\/([^/]+)\/([^/]+)\/pull\/\d+/i);return e?`${e[1]}/${e[2]}`:void 0}function l3(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=ih(s.url),h=c!==void 0&&c.toLowerCase()!==a?.toLowerCase()?c:void 0;return{number:s.number,title:n(s),url:o,htmlUrl:o,status:Xa(s.status),createdAt:s.createdAt,updatedAt:s.updatedAt,isInMergeQueue:s.isDraft?void 0:s.isInMergeQueue,crossRepo:h,crossRepoDisplay:h?Ci(h,i):void 0}})}return e?[{number:e.number,title:n(e),url:r(e.number,e.url),htmlUrl:r(e.number,e.url),status:Xa(e.status),createdAt:e.createdAt,updatedAt:e.updatedAt,isInMergeQueue:e.isDraft?void 0:e.isInMergeQueue}]:[]}function c3(t){const{prNumber:e,prUrl:r}=t;return e==null||!r?null:{id:`legacy-pr-${e}`,number:e,url:r,title:"",status:t.prStatus??S1.Open,createdAt:t.updatedAt,updatedAt:t.updatedAt}}function sh(t){const e=t.lastSnapshot?.state?.toLowerCase();return e==="merged"?"merged":e==="closed"?"closed":t.lastSnapshot?.isDraft?"draft":t.state==="completed"?"closed":"open"}function wa(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=z0(i),c=o.toLowerCase(),h=a.find(m=>!!o&&m.url.toLowerCase()===c||(i.resource||i.monitorAvailability?m.monitorIdentity===va(i):!m.resource&&!m.monitorAvailability&&(s?!m.crossRepo&&m.number===i.prNumber:m.crossRepo===i.repo&&m.number===i.prNumber)));if(h){h.monitorAgentId=i.agentId,h.resource=i.resource,h.monitorAvailability=i.monitorAvailability,h.monitorIdentity=i.resource||i.monitorAvailability?va(i):void 0,h.monitorSnapshot=i.lastSnapshot??h.monitorSnapshot;continue}a.push({number:i.prNumber,title:i.title??`${i.repo}${n1(i,i.prNumber)}`,resource:i.resource,monitorAvailability:i.monitorAvailability,monitorIdentity:i.resource||i.monitorAvailability?va(i):void 0,url:o,htmlUrl:o,status:sh(i),createdAt:i.createdAt,updatedAt:i.updatedAt,monitorAgentId:i.agentId,crossRepo:s?void 0:i.repo,crossRepoDisplay:s?void 0:Ci(i.repo,n),monitorSnapshot:i.lastSnapshot,monitorOnly:!0})}return a}function Ci(t,e){return e&&t.toLowerCase().startsWith(`${e.toLowerCase()}/`)?t.slice(e.length+1):t}function u3(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=[],h=[];if(t.some(S=>S.crossRepo)){o=[];for(const S of t)S.crossRepo?s.has(S.crossRepo.toLowerCase())?c.push(S):h.push(S):o.push(S)}const m=[],g=[],v=[];for(const S of e){const C=S.repo.toLowerCase();z0(S)&&o.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&(!i||C===i)?m.push(S):z0(S)&&c.some(W=>W.url===z0(S))||!S.resource&&!S.monitorAvailability&&s.has(C)?g.push(S):v.push(S)}const w=wa(o,m,r),A=r?.split("/")[0],E=new Set([...w,...c,...h].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 K=`${C.toLowerCase()}#${W.number}`;if(E.has(K))continue;E.add(K);const X=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:X,htmlUrl:X,status:Xa(W.status),createdAt:W.createdAt,updatedAt:W.updatedAt,crossRepo:T?void 0:C,crossRepoDisplay:T?void 0:Ci(C,A)})}}return{own:w,otherRoots:wa(D,g,r),otherTracked:wa(h,v,r)}}function Bs(t){return t.status!=="open"?!1:t.monitorSnapshot?t.monitorSnapshot.isInMergeQueue===!0:t.isInMergeQueue===!0}function h3(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():Bs(t)?ne.workspace_prSection_statusQueued_label():ne.workspace_prSection_statusOpen_label(),r=[a1(t)??e],n=Bs(t)?D1(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(th(a.mergeBlockedReason))),r.join(`
|
|
2
2
|
`)}function d3(t,e){return e.has(t??"manual")}function m3(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 Ul=500;function p3(t,e=Ul){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 f3(t,e,r=Ul){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 g3(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 oh(t){if(!t)return{};try{const e=JSON.parse(t);return e&&typeof e=="object"?e:{}}catch{return{}}}function Ka(t){return t.startsWith("@")?t.slice(1):t}function lh(t,e,r,n){const a=t.fullPath||t.path||t.filename;if(a)return Ka(String(a));const i=[r,e,n.trim()].map(Ka).filter(Boolean),s=i.find(o=>o.includes("/"))??i[0];return s?i1(s).path:void 0}function ch(t){const e=t.line??t.startLine??t.range?.start;return typeof e=="number"&&Number.isFinite(e)?e:void 0}function uh(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=oh(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=lh(i,n,r,t.textContent||"");c&&(s.filePath=c);const h=ch(i);h!==void 0&&(s.line=h)}else if(e==="folder"||e==="source-folder"){const c=i.fullPath||i.path||r||n,h=c?Ka(String(c)).replace(/\/+$/,""):"";h&&(s.folderPath=h)}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 v3(t){return{sidebarTabId:"files",type:"file",filePath:`${t}/`}}function Ii(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Or=Ii();function Wl(t){Or=t}var Ir={exec:()=>null};function Xr(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(Ye.caret,"$1"),r=r.replace(a,s),n},getRegex:()=>new RegExp(r,e)};return n}var hh=((t="")=>{try{return!!new RegExp("(?<=1)(?<!1)"+t)}catch{return!1}})(),Ye={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:Xr(t=>new RegExp(`^ {0,${t}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`)),hrRegex:Xr(t=>new RegExp(`^ {0,${t}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`)),fencesBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}(?:\`\`\`|~~~)`)),headingBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}#`)),htmlBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}<(?:[a-z].*>|!--)`,"i")),blockquoteBeginRegex:Xr(t=>new RegExp(`^ {0,${t}}>`))},dh=/^(?:[ \t]*(?:\n|$))+/,mh=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ph=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,U0=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fh=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,zi=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,Gl=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,jl=ce(Gl).replace(/bull/g,zi).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(),gh=ce(Gl).replace(/bull/g,zi).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(),Ri=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table|[ \t]+\n)[^\n]+)*)/,vh=/^[^\n]+/,Di=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,bh=ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Di).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),yh=ce(/^(bull)([ \t][^\n]*?)?(?:\n|$)/).replace(/bull/g,zi).getRegex(),qn="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",Ni=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,wh=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",Ni).replace("tag",qn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Vl=t=>ce(Ri).replace("hr",U0).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",qn).getRegex(),kh=Vl(/ {0,3}(?:[*+-]|1[.)])[ \t]+[^ \t\n]/),xh=Vl(/ {0,3}(?:[*+-]|\d{1,9}[.)])(?:[ \t]|\n|$)/),Sh=ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",xh).getRegex(),_i={blockquote:Sh,code:mh,def:bh,fences:ph,heading:fh,hr:U0,html:wh,lheading:jl,list:yh,newline:dh,paragraph:kh,table:Ir,text:vh},qs=ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",U0).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",qn).getRegex(),Ah={..._i,lheading:gh,table:qs,paragraph:ce(Ri).replace("hr",U0).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",qs).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",qn).getRegex()},Th={..._i,html:ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Ni).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(Ri).replace("hr",U0).replace("heading",` *#{1,6} *[^
|
|
3
3
|
]`).replace("lheading",jl).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Mh=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Eh=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Yl=/^( {2,}|\\)\n(?!\s*$)/,Ch=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Vt=/[\p{P}\p{S}]/u,m0=/[\s\p{P}\p{S}]/u,W0=/[^\s\p{P}\p{S}]/u,Ih=ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,m0).getRegex(),zh=/[\p{Pi}\p{Ps}"']/u,Xl=/(?!~)[\p{P}\p{S}]/u,Rh=/(?!~)[\s\p{P}\p{S}]/u,Dh=/(?:[^\s\p{P}\p{S}]|~)/u,Nh=ce(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",hh?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Kl=/^(?:\*+(?:((?!\*)punct)|([^\s*]))?)|^_+(?:((?!_)punct)|([^\s_]))?/,_h=ce(Kl,"u").replace(/punct/g,Vt).getRegex(),Lh=ce(Kl,"u").replace(/punct/g,Xl).getRegex(),Oh=/^(?:\*+(?:((?!\*)(?!openQuote)punct)|([^\s*]))?)|^_+(?:((?!_)(?!openQuote)punct)|([^\s_]))?/,Ph=ce(Oh,"u").replace(/openQuote/g,zh).replace(/punct/g,Vt).getRegex(),Zl="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",$h=ce(Zl,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Bh=ce(Zl,"gu").replace(/notPunctSpace/g,Dh).replace(/punctSpace/g,Rh).replace(/punct/g,Xl).getRegex(),qh="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)[\\s](\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|(?:(?!\\*)punct|notPunctSpace)(\\*+)(?!\\*)(?=notPunctSpace)",Fh=ce(qh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Hh=ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Uh="^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)[\\s](_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)|(?:(?!_)punct|notPunctSpace)(_+)(?!_)(?=notPunctSpace)",Wh=ce(Uh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Gh=ce(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,Vt).getRegex(),jh="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",Vh=ce(jh,"gu").replace(/notPunctSpace/g,W0).replace(/punctSpace/g,m0).replace(/punct/g,Vt).getRegex(),Yh=ce(/\\(punct)/,"gu").replace(/punct/g,Vt).getRegex(),Xh=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(),Kh=ce(Ni).replace("(?:-->|$)","-->").getRegex(),Zh=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",Kh).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nn=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+(?!`)[^`]*?`+(?!`)|``+(?=\])|[^\[\]\\`])*?/,Qh=ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",Nn).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]+|(?=\))/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ql=ce(/^!?\[(label)\]\[(ref)\]/).replace("label",Nn).replace("ref",Di).getRegex(),Jl=ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",Di).getRegex(),Jh=ce("reflink|nolink(?!\\()","g").replace("reflink",Ql).replace("nolink",Jl).getRegex(),Fs=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Li={_backpedal:Ir,anyPunctuation:Yh,autolink:Xh,blockSkip:Nh,br:Yl,code:Eh,del:Ir,delLDelim:Ir,delRDelim:Ir,emStrongLDelim:_h,emStrongRDelimAst:$h,emStrongRDelimUnd:Hh,escape:Mh,link:Qh,nolink:Jl,punctuation:Ih,reflink:Ql,reflinkSearch:Jh,tag:Zh,text:Ch,url:Ir},ed={...Li,emStrongLDelim:Ph,emStrongRDelimAst:Fh,emStrongRDelimUnd:Wh,link:ce(/^!?\[(label)\]\((.*?)\)/).replace("label",Nn).getRegex(),reflink:ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nn).getRegex()},Za={...Li,emStrongRDelimAst:Bh,emStrongLDelim:Lh,delLDelim:Gh,delRDelim:Vh,url:ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fs).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",Fs).getRegex()},td={...Za,br:ce(Yl).replace("{2,}","*").getRegex(),text:ce(Za.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},yn={normal:_i,gfm:Ah,pedantic:Th},x0={normal:Li,gfm:Za,breaks:td,pedantic:ed},rd={"&":"&","<":"<",">":">",'"':""","'":"'"},Hs=t=>rd[t];function Dt(t,e){if(e){if(Ye.escapeTest.test(t))return t.replace(Ye.escapeReplace,Hs)}else if(Ye.escapeTestNoEncode.test(t))return t.replace(Ye.escapeReplaceNoEncode,Hs);return t}function Us(t){try{t=encodeURI(t).replace(Ye.percentDecode,"%")}catch{return null}return t}function Ws(t,e){let r=t.replace(Ye.findPipe,(i,s,o)=>{let c=!1,h=s;for(;--h>=0&&o[h]==="\\";)c=!c;return c?"|":" |"}),n=r.split(Ye.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(Ye.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 Gs(t){let e=t.split(`
|
|
4
4
|
`),r=e.length-1;for(;r>=0&&Ye.blankLine.test(e[r]);)r--;return e.length-r<=2?t:e.slice(0,r+1).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as T,bq as r,a_ as W,by as $,bs as x,b as B,bu as C}from"./
|
|
1
|
+
import{t as T,bq as r,a_ as W,by as $,bs as x,b as B,bu as C}from"./C_S5gHJT.js";import{bs as L,cd as S,ca as q,a7 as m,ay as f,W as k,bn as D,aA as o}from"./DYhIMPy1.js";import{G}from"./C-g-ql7J.js";import{a as H}from"./Cp8jLuzv.js";import{dr as j}from"./C4E6vJ_G.js";import{Ik as z,gL as E}from"./C5wvNL0Z.js";function F(i,a){if(new.target)return T({component:F,...i});L(a,!0);const d=()=>C(g,"$workspace$",b),[b,_]=x();let c=r(a,"tab",7),t=r(a,"workspaceId",7),n=r(a,"layoutId",7),p=r(a,"isActive",7);const u=S(t());q(()=>u.set(t()));const g=j(u);var v={get tab(){return c()},set tab(e){c(e),o()},get workspaceId(){return t()},set workspaceId(e){t(e),o()},get layoutId(){return n()},set layoutId(e){n(e),o()},get isActive(){return p()},set isActive(e){p(e),o()},$set:$,$on:(e,s)=>B(a,e,s)},l=m(),w=f(l);{var y=e=>{var s=m(),A=f(s);G(A,t,h=>{H(h,{get workspace(){return d()},showBackToList:!1,onclose:()=>z.dispatch(E(n()??t(),c().id))})}),k(e,s)};W(w,e=>{p()&&d()&&e(y)})}k(i,l);var I=D(v);return _(),I}export{F as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as k1}from"./
|
|
1
|
+
import{g as k1}from"./BR-IQj2I.js";import{g as E1}from"./BVuWCaMK.js";import{s as C1}from"./CYftfbzB.js";import{b as k,a$ as t1,ay as oe,X as Ce,a1 as S1,aP as x1,bh as Gt,a_ as T1,aZ as D1,b0 as _1,V as v1,U as F1,Y as V1,z as I1,ax as s1,J as i1,as as L1,$ as Rt,aW as Ot,r as B1,N as M1,am as y1,aU as w1,ab as N1,x as R1,aT as O1,p as P1}from"./DnLhVTI5.js";import{c as G1}from"./DWxC3NKo.js";import{aO as U1}from"./KxE8uB8g.js";var tt={SHAPE_UNSUPPORTED:"SHAPE_UNSUPPORTED",SHAPE_REMOVED:"SHAPE_REMOVED",EDGE_OPERATOR_UNSUPPORTED:"EDGE_OPERATOR_UNSUPPORTED",REFERENCE_EDGE_LABEL_REJECTED:"REFERENCE_EDGE_LABEL_REJECTED",CONNECTOR_REF_UNRESOLVED:"CONNECTOR_REF_UNRESOLVED",CONNECTOR_REF_NOT_A_CONNECTOR:"CONNECTOR_REF_NOT_A_CONNECTOR",METADATA_KEY_MISAPPLIED:"METADATA_KEY_MISAPPLIED",DUPLICATE_ID_NODE:"DUPLICATE_ID_NODE",RESERVED_SYNTHETIC_ID:"RESERVED_SYNTHETIC_ID",CONTAINMENT_VIOLATION:"CONTAINMENT_VIOLATION",EDGE_SEMANTIC_CONTRADICTION:"EDGE_SEMANTIC_CONTRADICTION",FLOW_NO_INPUT:"FLOW_NO_INPUT"},j1=new Set([tt.SHAPE_UNSUPPORTED,tt.SHAPE_REMOVED,tt.CONTAINMENT_VIOLATION]);new Set(Object.values(tt).filter(s=>!j1.has(s)));var z1=new Map([["task","roundedRect"],["tool","subroutine"],["input","lean-right"],["lean_right","lean-right"],["decision","diamond"],["refdoc","lin-doc"],["action","hexagon"],["round","rect"]]),W1=new Set(["doc","stadium","terminal","circle","trapezoid","inv_trapezoid","inv-trapezoid","doublecircle","double-circle","typeDeclaration","procs","lean_left","lean-left","in-out","cylinder","ellipse","odd","tag-rect","tagged-rectangle","delay","half-rounded-rectangle","lin-rect","lined-rectangle","win-pane","window-pane","curv-trap","curved-trapezoid"]),K1=new Set(["roundedRect","subroutine","subprocess","subproc","framed-rectangle","lean-right","diamond","lin-doc","lined-document","hexagon","hex","connector","collapsedGroup"]),$e="roundedRect";function et(s){return s&&(z1.get(s)??s)}k(et,"resolveShapeAlias");function r1(s,i){for(const n of s)if(!n.isGroup){if((!n.shape||n.shape==="squareRect"||n.shape==="rect")&&(n.shape=$e),W1.has(n.shape)){const r=`shape "${n.shape}" was removed in v0.8.1, using "${$e}"`;i?.emitError?i.emitError("SHAPE_REMOVED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e;continue}if(!K1.has(n.shape)){const r=`shape "${n.shape}" is not supported, using "${$e}"`;i?.emitWarning?i.emitWarning("SHAPE_UNSUPPORTED",r,{nodeId:n.id}):oe.warn(`agentflow: ${r}`),n.shape=$e}}}k(r1,"normaliseNodeShapes");var Lt=new Map([["tool",0],["task",1],["decision",2],["input",3],["refdoc",4],["connector",5],["action",6]]),a1=Lt.size,o1=k(s=>`af-kind-${s}`,"kindClass"),H1=[...Lt.keys()],u1=k(s=>Math.max(1,s-a1),"containerSlotCount"),l1=k((s,i)=>{const n=a1+s%u1(i);return i>0?n%i:n},"containerSlot");function c1(s,i,n){const r=Ce().themeVariables?.borderColorArray,u=Array.isArray(r)?r.length:0;let l=n.size;for(const c of s??[]){if(c.isGroup||c.shape==="collapsedGroup"){const h=n.get(String(c.id))??l++;c.colorIndex=l1(h,u);continue}const a=i(String(c.id));a&&Lt.has(a)&&(c.cssClasses=`${c.cssClasses??""} ${o1(a)}`.replace(/\s+/g," ").trim())}}k(c1,"assignColorSlots");var n1="agentflow-",Pt=new Set(["shape","view","icon","img","form","pos","w","h","class","style","labelType"]),Y1=new Set(["subroutine","subprocess","subproc","framed-rectangle","tool"]),q1={flow:"flowGroup"};function It(s){if(Array.isArray(s))return s.map(n=>It(n));if(s===null||typeof s!="object")return s;const i={};for(const n of Object.keys(s))n==="__proto__"||n==="constructor"||n==="prototype"||(i[n]=It(s[n]));return i}k(It,"stripPrototypeKeys");function d1(s){let i=!1,n=!1,r=0,u;const l=[];for(const c of s.split(`
|
|
2
2
|
`)){if(u!==void 0){const p=c.length-c.trimStart().length;if(c.trim()===""||p>u){l.push(c);continue}u=void 0}let a=-1;for(let p=0;p<c.length;p++){const A=c[p];if(n)A==="\\"?p++:A==='"'&&(n=!1);else if(i)A==="'"&&(i=!1);else if(A==='"')n=!0;else if(A==="'")i=!0;else if(A==="#"&&(p===0||c[p-1]===" "||c[p-1]===" ")){a=p;break}else A==="["||A==="{"?r++:(A==="]"||A==="}")&&(r=Math.max(0,r-1))}if(i||n||r>0){l.push(c);continue}const h=a>=0?c.slice(0,a):c,g=a>=0?c.slice(a):"";if(/:\s*[>|][\d+-]*\s*$/.test(h)){u=c.length-c.trimStart().length,l.push(c);continue}l.push(h.replace(/,([\t ]*)$/,"$1")+g)}return l.join(`
|
|
3
3
|
`)}k(d1,"stripLineTrailingCommas");var Ze,X1=(Ze=class{constructor(){this.vertexCounter=0,this.config=Ce(),this.vertices=new Map,this.edges=[],this.classes=new Map,this.subGraphs=[],this.subGraphLookup=new Map,this.globalNodes=new Set,this.connectors=new Map,this.tooltips=new Map,this.subCount=0,this.firstGraphFlag=!0,this.secCount=-1,this.posCrossRef=[],this.diagramId="",this.preserveCommentsWhenParsing=!0,this.frontmatterLineOffset=0,this.elementMappings=[],this.bareVertexMappings=new WeakSet,this.diagnostics=[],this.postParseValidationRun=!1,this.funs=[],this.setAccTitle=T1,this.setAccDescription=D1,this.setDiagramTitle=_1,this.getAccTitle=v1,this.getAccDescription=F1,this.getDiagramTitle=V1,this.funs.push(this.setupToolTips.bind(this)),this.addVertex=this.addVertex.bind(this),this.firstGraph=this.firstGraph.bind(this),this.setDirection=this.setDirection.bind(this),this.addSubGraph=this.addSubGraph.bind(this),this.addGlobal=this.addGlobal.bind(this),this.addConnector=this.addConnector.bind(this),this.addConnectorMapping=this.addConnectorMapping.bind(this),this.addLink=this.addLink.bind(this),this.setLink=this.setLink.bind(this),this.updateLink=this.updateLink.bind(this),this.addClass=this.addClass.bind(this),this.setClass=this.setClass.bind(this),this.destructLink=this.destructLink.bind(this),this.setClickEvent=this.setClickEvent.bind(this),this.setTooltip=this.setTooltip.bind(this),this.updateLinkInterpolate=this.updateLinkInterpolate.bind(this),this.setClickFun=this.setClickFun.bind(this),this.bindFunctions=this.bindFunctions.bind(this),this.setFrontmatterLineOffset=this.setFrontmatterLineOffset.bind(this),this.addVertexMapping=this.addVertexMapping.bind(this),this.extendVertexMapping=this.extendVertexMapping.bind(this),this.addEdgeMapping=this.addEdgeMapping.bind(this),this.addSubgraphMapping=this.addSubgraphMapping.bind(this),this.emitWarning=this.emitWarning.bind(this),this.emitError=this.emitError.bind(this),this.getDiagnostics=this.getDiagnostics.bind(this),this.lex={firstGraph:this.firstGraph.bind(this)},this.clear(),this.setGen("gen-2")}sanitizeText(i){return I1.sanitizeText(i,this.config)}sanitizeNodeLabelType(i){switch(i){case"markdown":case"string":case"text":return i;default:return"markdown"}}setDiagramId(i){this.diagramId=i}lookUpDomId(i){for(const n of this.vertices.values())if(n.id===i)return this.diagramId?`${this.diagramId}-${n.domId}`:n.domId;return this.diagramId?`${this.diagramId}-${i}`:i}addVertex(i,n,r,u,l,c,a={},h,g){if(!i||i.trim().length===0)return;let p;if(h!==void 0){let m;h.includes(`
|
|
4
4
|
`)?m=h+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{l as c}from"./
|
|
1
|
+
import{l as c}from"./CCOrMVtA.js";const s=["assign","flush","ftl","return","global","import","include","break","continue","local","nested","nt","setting","stop","t","lt","rt","fallback"],d=["attempt","autoesc","autoEsc","compress","comment","escape","noescape","function","if","list","items","sep","macro","noparse","noParse","noautoesc","noAutoEsc","outputformat","switch","visit","recurse"],a={close:">",id:"angle",open:"<"},r={close:"\\]",id:"bracket",open:"\\["},F={close:"[>\\]]",id:"auto",open:"[<\\[]"},k={close:"\\}",id:"dollar",open1:"\\$",open2:"\\{"},p={close:"\\]",id:"bracket",open1:"\\[",open2:"="};function l(t){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],comments:{blockComment:[`${t.open}--`,`--${t.close}`]},autoCloseBefore:`
|
|
2
2
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`${t.open}#(?:${d.join("|")})([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),end:new RegExp(`${t.open}/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),afterText:new RegExp(`^${t.open}/#([a-zA-Z_]+)[\\r\\n\\t ]*${t.close}$`),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`${t.open}#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/${t.close}]*(?!/)${t.close})[^${t.open}]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function g(){return{brackets:[["<",">"],["[","]"],["(",")"],["{","}"]],autoCloseBefore:`
|
|
3
3
|
\r }]),.:;=`,autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"',notIn:["string"]},{open:"'",close:"'",notIn:["string"]}],surroundingPairs:[{open:'"',close:'"'},{open:"'",close:"'"},{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"}],folding:{markers:{start:new RegExp(`[<\\[]#(?:${d.join("|")})([^/>\\]]*(?!/)[>\\]])[^<\\[]*$`),end:new RegExp(`[<\\[]/#(?:${d.join("|")})[\\r\\n\\t ]*>`)}},onEnterRules:[{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),afterText:new RegExp("^[<\\[]/#([a-zA-Z_]+)[\\r\\n\\t ]*[>\\]]$"),action:{indentAction:c.IndentAction.IndentOutdent}},{beforeText:new RegExp(`[<\\[]#(?!(?:${s.join("|")}))([a-zA-Z_]+)([^/>\\]]*(?!/)[>\\]])[^[<\\[]]*$`),action:{indentAction:c.IndentAction.Indent}}]}}function _(t,n){const i=`_${t.id}_${n.id}`,e=u=>u.replace(/__id__/g,i),o=u=>{const m=u.source.replace(/__id__/g,i);return new RegExp(m,u.flags)};return{unicode:!0,includeLF:!1,start:e("default__id__"),ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],[e("open__id__")]:new RegExp(t.open),[e("close__id__")]:new RegExp(t.close),[e("iOpen1__id__")]:new RegExp(n.open1),[e("iOpen2__id__")]:new RegExp(n.open2),[e("iClose__id__")]:new RegExp(n.close),[e("startTag__id__")]:o(/(@open__id__)(#)/),[e("endTag__id__")]:o(/(@open__id__)(\/#)/),[e("startOrEndTag__id__")]:o(/(@open__id__)(\/?#)/),[e("closeTag1__id__")]:o(/((?:@blank)*)(@close__id__)/),[e("closeTag2__id__")]:o(/((?:@blank)*\/?)(@close__id__)/),blank:/[ \t\n\r]/,keywords:["false","true","in","as","using"],directiveStartCloseTag1:/attempt|recover|sep|auto[eE]sc|no(?:autoe|AutoE)sc|compress|default|no[eE]scape|comment|no[pP]arse/,directiveStartCloseTag2:/else|break|continue|return|stop|flush|t|lt|rt|nt|nested|recurse|fallback|ftl/,directiveStartBlank:/if|else[iI]f|list|for[eE]ach|switch|case|assign|global|local|include|import|function|macro|transform|visit|stop|return|call|setting|output[fF]ormat|nested|recurse|escape|ftl|items/,directiveEndCloseTag1:/if|list|items|sep|recover|attempt|for[eE]ach|local|global|assign|function|macro|output[fF]ormat|auto[eE]sc|no(?:autoe|AutoE)sc|compress|transform|switch|escape|no[eE]scape/,escapedChar:/\\(?:[ntrfbgla\\'"\{=]|(?:x[0-9A-Fa-f]{1,4}))/,asciiDigit:/[0-9]/,integer:/[0-9]+/,nonEscapedIdStartChar:/[\$@-Z_a-z\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u1FFF\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183-\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3006\u3031-\u3035\u303B-\u303C\u3040-\u318F\u31A0-\u31BA\u31F0-\u31FF\u3300-\u337F\u3400-\u4DB5\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5-\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uABC0-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40-\uFB41\uFB43-\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,escapedIdChar:/\\[\-\.:#]/,idStartChar:/(?:@nonEscapedIdStartChar)|(?:@escapedIdChar)/,id:/(?:@idStartChar)(?:(?:@idStartChar)|(?:@asciiDigit))*/,specialHashKeys:/\*\*|\*|false|true|in|as|using/,namedSymbols:/<=|>=|\\lte|\\lt|<|\\gte|\\gt|>|&&|\\and|->|->|==|!=|\+=|-=|\*=|\/=|%=|\+\+|--|<=|&&|\|\||:|\.\.\.|\.\.\*|\.\.<|\.\.!|\?\?|=|<|\+|-|\*|\/|%|\||\.\.|\?|!|&|\.|,|;/,arrows:["->","->"],delimiters:[";",":",",","."],stringOperators:["lte","lt","gte","gt"],noParseTags:["noparse","noParse","comment"],tokenizer:{[e("default__id__")]:[{include:e("@directive_token__id__")},{include:e("@interpolation_and_text_token__id__")}],[e("fmExpression__id__.directive")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("fmExpression__id__.interpolation")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("inParen__id__.plain")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("inParen__id__.gt")]:[{include:e("@blank_and_expression_comment_token__id__")},{include:e("@expression_token__id__")},{include:e("@greater_operators_token__id__")}],[e("noSpaceExpression__id__")]:[{include:e("@no_space_expression_end_token__id__")},{include:e("@directive_end_token__id__")},{include:e("@expression_token__id__")}],[e("unifiedCall__id__")]:[{include:e("@unified_call_token__id__")}],[e("singleString__id__")]:[{include:e("@string_single_token__id__")}],[e("doubleString__id__")]:[{include:e("@string_double_token__id__")}],[e("rawSingleString__id__")]:[{include:e("@string_single_raw_token__id__")}],[e("rawDoubleString__id__")]:[{include:e("@string_double_raw_token__id__")}],[e("expressionComment__id__")]:[{include:e("@expression_comment_token__id__")}],[e("noParse__id__")]:[{include:e("@no_parse_token__id__")}],[e("terseComment__id__")]:[{include:e("@terse_comment_token__id__")}],[e("directive_token__id__")]:[[o(/(?:@startTag__id__)(@directiveStartCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{cases:{"@noParseTags":{token:"tag",next:e("@noParse__id__.$3")},"@default":{token:"tag"}}},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartCloseTag2)(?:@closeTag2__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(?:@startTag__id__)(@directiveStartBlank)(@blank)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(?:@endTag__id__)(@directiveEndCloseTag1)(?:@closeTag1__id__)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)(@)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive",next:e("@unifiedCall__id__")}]],[o(/(@open__id__)(\/@)((?:(?:@id)(?:\.(?:@id))*)?)(?:@closeTag1__id__)/),[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive"}]],[o(/(@open__id__)#--/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:{token:"comment",next:e("@terseComment__id__")}],[o(/(?:@startOrEndTag__id__)([a-zA-Z_]+)/),t.id==="auto"?{cases:{"$1==<":{token:"@rematch",switchTo:`@default_angle_${n.id}`},"$1==[":{token:"@rematch",switchTo:`@default_bracket_${n.id}`}}}:[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag.invalid",next:e("@fmExpression__id__.directive")}]]],[e("interpolation_and_text_token__id__")]:[[o(/(@iOpen1__id__)(@iOpen2__id__)/),[{token:n.id==="bracket"?"@brackets.interpolation":"delimiter.interpolation"},{token:n.id==="bracket"?"delimiter.interpolation":"@brackets.interpolation",next:e("@fmExpression__id__.interpolation")}]],[/[\$#<\[\{]|(?:@blank)+|[^\$<#\[\{\n\r\t ]+/,{token:"source"}]],[e("string_single_token__id__")]:[[/[^'\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/'/,{token:"string",next:"@pop"}]],[e("string_double_token__id__")]:[[/[^"\\]/,{token:"string"}],[/@escapedChar/,{token:"string.escape"}],[/"/,{token:"string",next:"@pop"}]],[e("string_single_raw_token__id__")]:[[/[^']+/,{token:"string.raw"}],[/'/,{token:"string.raw",next:"@pop"}]],[e("string_double_raw_token__id__")]:[[/[^"]+/,{token:"string.raw"}],[/"/,{token:"string.raw",next:"@pop"}]],[e("expression_token__id__")]:[[/(r?)(['"])/,{cases:{"r'":[{token:"keyword"},{token:"string.raw",next:e("@rawSingleString__id__")}],'r"':[{token:"keyword"},{token:"string.raw",next:e("@rawDoubleString__id__")}],"'":[{token:"source"},{token:"string",next:e("@singleString__id__")}],'"':[{token:"source"},{token:"string",next:e("@doubleString__id__")}]}}],[/(?:@integer)(?:\.(?:@integer))?/,{cases:{"(?:@integer)":{token:"number"},"@default":{token:"number.float"}}}],[/(\.)(@blank*)(@specialHashKeys)/,[{token:"delimiter"},{token:""},{token:"identifier"}]],[/(?:@namedSymbols)/,{cases:{"@arrows":{token:"meta.arrow"},"@delimiters":{token:"delimiter"},"@default":{token:"operators"}}}],[/@id/,{cases:{"@keywords":{token:"keyword.$0"},"@stringOperators":{token:"operators"},"@default":{token:"identifier"}}}],[/[\[\]\(\)\{\}]/,{cases:{"\\[":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\]":{cases:{...n.id==="bracket"?{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}}:{},...t.id==="bracket"?{"$S2==directive":{token:"@brackets.directive",next:"@popall"}}:{},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\(":{token:"@brackets",next:e("@inParen__id__.gt")},"\\)":{cases:{[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}},"\\{":{cases:{"$S2==gt":{token:"@brackets",next:e("@inParen__id__.gt")},"@default":{token:"@brackets",next:e("@inParen__id__.plain")}}},"\\}":{cases:{...n.id==="bracket"?{}:{"$S2==interpolation":{token:"@brackets.interpolation",next:"@popall"}},[e("$S1==inParen__id__")]:{token:"@brackets",next:"@pop"},"@default":{token:"@brackets"}}}}}],[/\$\{/,{token:"delimiter.invalid"}]],[e("blank_and_expression_comment_token__id__")]:[[/(?:@blank)+/,{token:""}],[/[<\[][#!]--/,{token:"comment",next:e("@expressionComment__id__")}]],[e("directive_end_token__id__")]:[[/>/,t.id==="bracket"?{token:"operators"}:{token:"@brackets.directive",next:"@popall"}],[o(/(\/)(@close__id__)/),[{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]]],[e("greater_operators_token__id__")]:[[/>/,{token:"operators"}],[/>=/,{token:"operators"}]],[e("no_space_expression_end_token__id__")]:[[/(?:@blank)+/,{token:"",switchTo:e("@fmExpression__id__.directive")}]],[e("unified_call_token__id__")]:[[/(@id)((?:@blank)+)/,[{token:"tag"},{token:"",next:e("@fmExpression__id__.directive")}]],[o(/(@id)(\/?)(@close__id__)/),[{token:"tag"},{token:"delimiter.directive"},{token:"@brackets.directive",next:"@popall"}]],[/./,{token:"@rematch",next:e("@noSpaceExpression__id__")}]],[e("no_parse_token__id__")]:[[o(/(@open__id__)(\/#?)([a-zA-Z]+)((?:@blank)*)(@close__id__)/),{cases:{"$S2==$3":[{token:"@brackets.directive"},{token:"delimiter.directive"},{token:"tag"},{token:""},{token:"@brackets.directive",next:"@popall"}],"$S2==comment":[{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"},{token:"comment"}],"@default":[{token:"source"},{token:"source"},{token:"source"},{token:"source"},{token:"source"}]}}],[/[^<\[\-]+|[<\[\-]/,{cases:{"$S2==comment":{token:"comment"},"@default":{token:"source"}}}]],[e("expression_comment_token__id__")]:[[/--[>\]]/,{token:"comment",next:"@pop"}],[/[^\->\]]+|[>\]\-]/,{token:"comment"}]],[e("terse_comment_token__id__")]:[[o(/--(?:@close__id__)/),{token:"comment",next:"@popall"}],[/[^<\[\-]+|[<\[\-]/,{token:"comment"}]]}}}function A(t){const n=_(a,t),i=_(r,t),e=_(F,t);return{...n,...i,...e,unicode:!0,includeLF:!1,start:`default_auto_${t.id}`,ignoreCase:!1,defaultToken:"invalid",tokenPostfix:".freemarker2",brackets:[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}],tokenizer:{...n.tokenizer,...i.tokenizer,...e.tokenizer}}}const b={conf:l(a),language:_(a,k)},x={conf:l(r),language:_(r,k)},$={conf:l(a),language:_(a,p)},E={conf:l(r),language:_(r,p)},B={conf:g(),language:A(k)},D={conf:g(),language:A(p)};export{$ as TagAngleInterpolationBracket,b as TagAngleInterpolationDollar,D as TagAutoInterpolationBracket,B as TagAutoInterpolationDollar,E as TagBracketInterpolationBracket,x as TagBracketInterpolationDollar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./DYhIMPy1.js";import{p as r}from"./
|
|
1
|
+
import"./DYhIMPy1.js";import{p as r}from"./C05_S9Ju.js";const t={get error(){return r.error},get params(){return r.params},get state(){return r.state},get status(){return r.status},get url(){return r.url}},s=t;export{s as p};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as u,bq as l,by as p,br as b,b as g}from"./
|
|
1
|
+
import{t as u,bq as l,by as p,br as b,b as g}from"./C_S5gHJT.js";import{bs as h,a5 as _,bA as v,W as x,bn as y,aA as o,aB as S}from"./DYhIMPy1.js";import{s as w}from"./CiOA93tK.js";import{i as A,l as C}from"./C2-OrDhN.js";import{b as k}from"./BaIAhI85.js";var q=new Set(["$$slots","$$events","$$legacy","ref","children","class"]),B=S("<section><!></section>");function N(c,s){if(new.target)return u({component:N,...c});h(s,!0);let r=l(s,"ref",15,null),a=l(s,"children",7),n=l(s,"class",7),i=b(s,q);var f={get ref(){return r()},set ref(e=null){r(e),o()},get children(){return a()},set children(e){a(e),o()},get class(){return n()},set class(e){n(e),o()},$set:p,$on:(e,d)=>g(s,e,d)},t=B();A(t,e=>({"data-slot":"screen",class:e,...i}),[()=>C("flex min-h-0 min-w-0 flex-col bg-background text-foreground",n())]);var m=_(t);return w(m,a),v(t),k(t,e=>r(e),()=>r()),x(c,t),y(f)}export{N as S};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as g,bq as h,bo as v,by as w,b as C}from"./
|
|
1
|
+
import{t as g,bq as h,bo as v,by as w,b as C}from"./C_S5gHJT.js";import{bs as T,a5 as u,bl as l,bS as _,bA as c,b_ as A,bO as p,W as O,bn as S,aA as j,aB as q}from"./DYhIMPy1.js";var B=q('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><div class="text-center"><p class="text-lg font-medium text-foreground"> </p> <p class="text-sm"> </p> <p class="text-xs mt-4 text-subtle"> </p></div></div>');function I(n,a){if(new.target)return g({component:I,...n});T(a,!0);let e=h(a,"tab",7);var m={get tab(){return e()},set tab(t){e(t),j()},$set:w,$on:(t,r)=>C(a,t,r)},s=B(),o=u(s),b=u(o),d=l(b,!0),i=_(b,2),x=l(i,!0),f=_(i,2),y=l(f,!0);return c(o),c(s),A((t,r)=>{p(d,e().title),p(x,t),p(y,r)},[()=>v.layout_panelContent_typeLabel({type:e().type}),()=>v.layout_overviewTab_notImplemented_label()]),O(n,s),S(m)}export{I as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p}from"./
|
|
1
|
+
import{d as p}from"./DRsuOWdV.js";import{x as s,w as l}from"./Cc_wNDFs.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./DiF0fpUd.js";async function a(i,t,e,r=100){const n=s(o.select(i,t,e)).slice(-r);if(!t||!e)return n;const u=f.select(i,t,e);if(!m.select(i,t,u))return[];try{const c=l(await p.scripts.output(t,e,r));return c.length>0?c.slice(-r):n}catch{return n}}export{a as readScriptContextOutputLines};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{o as y,e as I,s as S,g as A}from"./
|
|
1
|
+
import{o as y,e as I,s as S,g as A}from"./BtpLmNi5.js";function U(){return!0}const o=new Date().toISOString(),d=[{id:"mock-ws-1",title:"Example Project",branch:"feature/demo",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/example",repositoryOwner:"demo",repositoryName:"example-project",tags:[],agentSummary:{agentIds:["agent-1"]}},{id:"mock-ws-2",title:"Design System",branch:"feature/tokens",baseRef:"main",changesets:[],timeline:[],conversationInfo:[],status:"Active",createdAt:o,updatedAt:o,lastActivity:o,repositoryPath:"/Users/demo/projects/design-system",repositoryOwner:"demo",repositoryName:"design-system",tags:[]}],g=[{path:"workspaceInitializer.state",label:"Workspace initializer state",description:"Browser-preview workspace initializer state.",category:"workspace",type:"object",defaultValue:{},value:{hydrated:!0}},{path:"hardwareConsole.state",label:"Hardware console state",description:"Browser-preview hardware console state.",category:"hardwareConsole",type:"object",defaultValue:{},value:{}},{path:"rtk.enabled",label:"RTK enabled",description:"Use RTK compressed command output.",category:"tools",type:"boolean",defaultValue:!1,value:!1,origin:"default"}];let l=0;function C(t){const e=g.find(a=>a.path===t);if(!e)return m("INVALID_PARAMS",-32602,`Browser mock: setting "${String(t)}" not found`);const{value:r,origin:s,...i}=e;return{path:e.path,value:r,definition:i,...s?{origin:s}:{},revision:l}}function M(t){return Array.isArray(t)?Object.fromEntries(t.filter(e=>typeof e=="string").map(e=>[e,{available:!1}])):{}}let w=0,B=0;const W=crypto.randomUUID(),p=Symbol("browser-mock-error");function m(t,e,r){return{[p]:{code:t,message:r,data:{code:t},rpcCode:e}}}function R(t){return typeof t=="object"&&t!==null&&p in t}function T(t,e){if(t==="workspace.list")return{workspaces:d};if(t==="workspace.get"){const r=d.find(s=>s.id===e?.workspaceId);return r?{workspace:r}:m("INVALID_PARAMS",-32602,`Browser mock: workspace "${String(e?.workspaceId)}" not found`)}if(t==="task.listAgentLinks")return{links:[],linksByNoteId:{}};if(t==="workspace.getTokenUsage")return{tokenUsage:{byAgentId:{},totals:{inputTokens:0,outputTokens:0,cacheReadTokens:0,cacheCreationTokens:0},byModel:{},byAgentModel:[],lastScanAt:null}};if(t==="workspace.getContext")return{items:[]};if(t==="script.list")return{scripts:[]};if(t==="terminal.list")return{terminals:[],daemonBootId:W};if(t==="terminal.create")return{terminalId:`browser-mock-terminal-${++B}`};if(t==="terminal.write"||t==="terminal.resize"||t==="terminal.kill")return{ok:!0};if(t==="terminal.getBuffer")return{terminalId:String(e?.terminalId??""),data:""};if(t==="terminal.readOutput")return"";if(t==="agent.listActive")return{streams:[]};if(t==="prMonitor.list")return{monitors:[]};if(t==="gitRoot.list")return{gitRoots:[]};if(t==="file.tree")return[];if(t==="file-tracking.getChanges")return{changes:[],truncated:!1,totalCount:0};if(t==="file-tracking.loadCommits")return{commits:[],boundarySha:null,nextToken:null};if(t==="repo.list")return{repos:[]};if(t==="settings.list")return{settings:g,revision:l};if(t==="settings.get")return C(e?.path);if(t==="settings.update"){const r=Array.isArray(e?.changes)?e.changes:[],s=[];for(const i of r){if(typeof i!="object"||i===null)continue;const{path:a,value:c}=i,u=g.find(v=>v.path===a);u&&(u.value=c,s.push({path:u.path,value:c,...u.origin?{origin:u.origin}:{}}))}return s.length>0&&(l+=1),{applied:s,revision:l}}if(t==="host.checkAuggie"||t==="host.findBinary")return{available:!1};if(t==="host.toolAvailability")return{tools:M(e?.tools)};if(t==="host.providerAuthStatus")return{providers:[]};if(t==="host.providerDiscovery")return{providers:[]};if(t==="system.status")return{running:!0,listenMode:"browser-mock",version:"0.0.0-browser",protocolVersion:"0.0.0-browser",host:{os:"browser",arch:"browser",locality:"local"}};if(t==="agent.list")return{agents:[],retiredCount:0};if(t==="agent.listInterrupted")return{agents:[]};if(t==="models.list")return{models:[]};if(t==="skill.list")return{skills:[]};if(t==="search.fileNames")return{files:[]};if(t==="comment.list")return{threads:[]};if(t==="task.list")return{tasks:[],stats:{total:0,completed:0,inProgress:0}};if(t==="note.list")return{notes:[]};if(t==="git.status")return{branch:"",ahead:0,behind:0,diverged:!1,files:[],hasUncommittedChanges:!1,hasUntrackedFiles:!1};if(t==="event.query")return e?.paginate===!0||typeof e?.nextToken=="string"?{items:[],nextToken:null}:[];if(t==="events.subscribe")return{subscriptionId:`browser-mock-sub-${++w}`};if(t==="events.unsubscribe")return{}}function O(t,e){if(t==="backend:request"){const r=e?.method;if(typeof r!="string"||r.length===0)return{ok:!1,error:{code:"INVALID_PARAMS",message:"method is required"}};const s=T(r,e?.params);return R(s)?{ok:!1,error:s[p]}:s!==void 0?{ok:!0,result:s}:{ok:!1,error:{code:"NOT_IMPLEMENTED",message:`Browser mock: backend method "${r}" not implemented`}}}if(t==="backend:subscribe")return{ok:!0,result:{subscriptionId:`browser-mock-sub-${++w}`}};if(t==="backend:unsubscribe")return{ok:!0,result:{}};if(t==="backend:get-status"){const r=A();if(r)return{status:r.getStatus(),daemonStartup:r.getStartupState(),transport:{mode:"external-ws",target:r.getTarget()}};const s=I();return s?{status:"connecting",transport:{mode:"external-ws",target:S(s)}}:{status:"connected",transport:"browser-mock"}}}function P(t,e){const r=O(t,e);return r!==void 0?r:t==="workspace:list"?{success:!0,data:d}:t==="workspace:get-recent-repositories"?{success:!0,data:[]}:t==="workspace:get-settings"||t==="workspace:getSettings"?{success:!0,data:{}}:t==="app:version"||t==="app:get-version"?{success:!0,data:"0.0.0-browser"}:t==="system:get-info"?{success:!0,data:{platform:"browser",arch:"wasm",hostname:"localhost"}}:t.endsWith(":get-models")?{success:!0,data:[]}:t==="providers:get-availability"?{success:!0,data:{}}:t==="providers:get-paths"?{success:!0,data:{}}:t==="feature-codes:get-active"?{features:[]}:t==="config:get"||t==="config:get-all"||t==="config:getAll"?{success:!0,data:{}}:t==="settings:get"||t==="settings:getAll"?{success:!0,data:{}}:t==="auto-update:get-state"?{success:!0,data:{channel:"stable",status:"idle"}}:t.startsWith("window:")?{success:!0}:t==="panel-layout:load"?{success:!0,data:null}:t==="first-visit-state:load"?{success:!0,data:null}:t==="rules:list"||t==="rules:load-workspace"?{success:!0,data:[]}:t.startsWith("specialists:")?{success:!0,data:[]}:t.startsWith("user-rules:")?{success:!0,data:t.includes("get-all")?[]:""}:t.startsWith("git:")?{success:!0,data:null}:t.startsWith("persistence:")||t.startsWith("storage:")?{success:!0,data:null}:t.startsWith("notes:")?{success:!0,data:t.includes("list")?[]:null}:t.startsWith("agent:")?{success:!0,data:null}:t.startsWith("log:")?{success:!0,data:null}:t.startsWith("user-mcp:")||t.startsWith("mcp:")?{success:!0,data:t.includes("list")?[]:null}:t==="skills:list"?{success:!0,data:[]}:t.includes("-auth:")||t.includes("auth:")?{success:!0,data:{authenticated:!1}}:t.startsWith("dialog:")?{success:!0,data:{canceled:!0,filePaths:[]}}:(console.debug(`[BrowserMock] Unhandled IPC channel: ${t}`),{success:!1,error:`Browser mock: channel "${t}" not implemented`})}const n=[];function f(t,e){for(const r of[...n])r.channel===t&&r.callback(e)}let k=0;const x={invoke:async(t,e)=>(console.warn(`[BrowserMock] Serving MOCK response for IPC channel '${t}' — this is dev-only mock data, not a real bridge`),P(t,e)),send:(t,...e)=>{},on:(t,e)=>{const r=`browser-mock-${++k}`;return n.push({id:r,channel:t,callback:e}),r},off:(t,e)=>{},offById:(t,e)=>{const r=n.findIndex(s=>s.id===e);r!==-1&&n.splice(r,1)},removeAllListeners:t=>{for(let e=n.length-1;e>=0;e--)n[e].channel===t&&n.splice(e,1)},once:(t,e)=>{const r=`browser-mock-${++k}`,s=(...i)=>{e(...i);const a=n.findIndex(c=>c.id===r);a!==-1&&n.splice(a,1)};n.push({id:r,channel:t,callback:s})},getPathForFile:t=>"",platform:"darwin",arch:"arm64",versions:{node:"20.0.0",chrome:"120.0.0",electron:"0.0.0-browser"}};function D(){return typeof window>"u"||window.electronAPI?!1:(console.warn("[BrowserMock] Installing mock electronAPI for browser-mode rendering — all IPC responses are DEV MOCKS"),window.electronAPI=x,_(),!0)}let b=!1;function _(){if(b)return;b=!0;let t=null,e=null,r=null;y(s=>{t?.(),e?.(),r?.(),t=s.onStatusChange(i=>{f("backend:status",{status:i,daemonStartup:s.getStartupState(),transport:{mode:"external-ws",target:s.getTarget()}})}),r=s.onStartupChange(i=>{f("backend:status",{status:s.getStatus(),daemonStartup:i,transport:{mode:"external-ws",target:s.getTarget()}})}),e=s.onReconnected(()=>{f("backend:status",{status:"connected",reconnected:!0,transport:{mode:"external-ws",target:s.getTarget()}})})})}D();export{D as installBrowserMock,U as isBrowserMockEnabled};
|