@intent-hq/web 2.330.0 → 2.331.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/immutable/chunks/{CEA4WprY.js → -K8wVqNz.js} +1 -1
- package/web/app/immutable/chunks/{CNEXeIWq.js → 01xZ54YC.js} +2 -2
- package/web/app/immutable/chunks/{DsmIFgBW.js → 0BYYiVms.js} +1 -1
- package/web/app/immutable/chunks/{BWBt_0S9.js → 1bECqo-j.js} +1 -1
- package/web/app/immutable/chunks/{dhHWeHB7.js → 3QqszLYa.js} +1 -1
- package/web/app/immutable/chunks/{CGWrDwo6.js → 4XNONbWq.js} +1 -1
- package/web/app/immutable/chunks/{vrmnmJTo.js → 4dgb2d4o.js} +1 -1
- package/web/app/immutable/chunks/{CmgsU15D.js → 4q6E5opn.js} +1 -1
- package/web/app/immutable/chunks/{DrdCoP-L.js → 5CRwyeUL.js} +2 -2
- package/web/app/immutable/chunks/{CrJDbXeR.js → 5mKZ17P9.js} +1 -1
- package/web/app/immutable/chunks/{0W7Jbq6n.js → 61i9Nc66.js} +1 -1
- package/web/app/immutable/chunks/{DpFreuz_.js → 72TQselO.js} +1 -1
- package/web/app/immutable/chunks/{DH_PNr-8.js → 79sYHzZU.js} +1 -1
- package/web/app/immutable/chunks/{r_PLSAE7.js → 8mBhsgHs.js} +1 -1
- package/web/app/immutable/chunks/{Dvh0fZaP.js → 9DtejLvs.js} +1 -1
- package/web/app/immutable/chunks/{Dr4yXXs1.js → 9SVo7XCQ.js} +1 -1
- package/web/app/immutable/chunks/{CFP6h_yj.js → A67C19bI.js} +1 -1
- package/web/app/immutable/chunks/{4rPACIPc.js → AUoP55vG.js} +1 -1
- package/web/app/immutable/chunks/{Cn1b85JG.js → ArzfqCkr.js} +1 -1
- package/web/app/immutable/chunks/{ClUsr6sz.js → B-3aWyWM.js} +1 -1
- package/web/app/immutable/chunks/{Ck1t7lzU.js → B0CAZcrL.js} +1 -1
- package/web/app/immutable/chunks/{V-pYlOFT.js → B0do3DVm.js} +1 -1
- package/web/app/immutable/chunks/{DrQfmm9r.js → B0hlE4IJ.js} +1 -1
- package/web/app/immutable/chunks/{F5JMTljA.js → B0ztGBdw.js} +1 -1
- package/web/app/immutable/chunks/{DoVePPmG.js → B4--vvYs.js} +1 -1
- package/web/app/immutable/chunks/{ikj2reaR.js → B4585dIt.js} +1 -1
- package/web/app/immutable/chunks/{CAmF3PXk.js → B66L8YEe.js} +1 -1
- package/web/app/immutable/chunks/{ByQ08O_R.js → B6hMBAzw.js} +1 -1
- package/web/app/immutable/chunks/{D7CwqOyk.js → B7pBUSNy.js} +1 -1
- package/web/app/immutable/chunks/{Cx-79P8l.js → B8Qavkks.js} +1 -1
- package/web/app/immutable/chunks/{BICcGRy9.js → B9PO2UZy.js} +1 -1
- package/web/app/immutable/chunks/{CfG5iS_N.js → B9vJwMca.js} +1 -1
- package/web/app/immutable/chunks/{DlOjrEkG.js → BADXJ9gY.js} +1 -1
- package/web/app/immutable/chunks/{DiCGl5kq.js → BBIyvTX5.js} +3 -3
- package/web/app/immutable/chunks/{z4RHZh7P.js → BD5-GbKS.js} +1 -1
- package/web/app/immutable/chunks/{CBoIo15V.js → BD9kDOxT.js} +1 -1
- package/web/app/immutable/chunks/{Bi15WK7m.js → BEisWjsh.js} +1 -1
- package/web/app/immutable/chunks/{BF3lDslR.js → BEtQ8T77.js} +1 -1
- package/web/app/immutable/chunks/{kNiuD9tS.js → BHKTKUUz.js} +1 -1
- package/web/app/immutable/chunks/{YSPfcYKn.js → BHhmm7k4.js} +1 -1
- package/web/app/immutable/chunks/{C9R-YW9d.js → BHuNDg-W.js} +1 -1
- package/web/app/immutable/chunks/{C_nJgshO.js → BJWZv5Sk.js} +1 -1
- package/web/app/immutable/chunks/{CMnxgVrV.js → BL-QaGSE.js} +1 -1
- package/web/app/immutable/chunks/{DOqguBrF.js → BLwfMBUc.js} +1 -1
- package/web/app/immutable/chunks/{1BCEBCxj.js → BMEM9WGe.js} +1 -1
- package/web/app/immutable/chunks/{Cpc4w0Bm.js → BNQhz-c4.js} +1 -1
- package/web/app/immutable/chunks/{Dqy2jMvN.js → BPu-f3m6.js} +1 -1
- package/web/app/immutable/chunks/{B9ylxCBv.js → BRxNa3zf.js} +1 -1
- package/web/app/immutable/chunks/{BNC-J9Pl.js → BU2dz_aB.js} +1 -1
- package/web/app/immutable/chunks/{D3VNRPKq.js → BVZOiDhO.js} +4 -4
- package/web/app/immutable/chunks/{BSVIIPqo.js → BXKILicD.js} +1 -1
- package/web/app/immutable/chunks/{CFcAdFFD.js → BX_A8Fz4.js} +1 -1
- package/web/app/immutable/chunks/BXdz7Mej.js +1 -0
- package/web/app/immutable/chunks/BXyIWb9p.js +1 -0
- package/web/app/immutable/chunks/{-CNzmNt8.js → BZ_DkSCc.js} +1 -1
- package/web/app/immutable/chunks/{CJ0z1v-C.js → B_X9fjxm.js} +1 -1
- package/web/app/immutable/chunks/{D2jMyaf8.js → Bd4BZaTp.js} +1 -1
- package/web/app/immutable/chunks/{Cm3D0ZVR.js → Be7sI0Wr.js} +1 -1
- package/web/app/immutable/chunks/{DCHEHwiS.js → Bkcm6WO0.js} +1 -1
- package/web/app/immutable/chunks/{BLZx5Jln.js → Bkeityp2.js} +1 -1
- package/web/app/immutable/chunks/{BLYi9_ai.js → Bl2M7dQb.js} +1 -1
- package/web/app/immutable/chunks/{jho6TGJn.js → Blawqk8W.js} +1 -1
- package/web/app/immutable/chunks/{BVEChIvV.js → Bncjw5PN.js} +2 -2
- package/web/app/immutable/chunks/{jonfRsD6.js → BqjPyYOt.js} +1 -1
- package/web/app/immutable/chunks/BrQIXt6A.js +1 -0
- package/web/app/immutable/chunks/{dWvje8eu.js → Bs48vxzD.js} +1 -1
- package/web/app/immutable/chunks/{CB2xLjY4.js → BsKm9b4M.js} +1 -1
- package/web/app/immutable/chunks/{DwAHzX3q.js → Bss6gHyN.js} +1 -1
- package/web/app/immutable/chunks/{Bbr8E1-T.js → BtYbNvgG.js} +1 -1
- package/web/app/immutable/chunks/{QF0bJN4h.js → BtjBnfiA.js} +1 -1
- package/web/app/immutable/chunks/{B4nCDPQA.js → BulkbkYU.js} +1 -1
- package/web/app/immutable/chunks/{BFeR9qbJ.js → BurMbBp5.js} +1 -1
- package/web/app/immutable/chunks/{lOSCBcaC.js → Bvupquu5.js} +1 -1
- package/web/app/immutable/chunks/{B5nDENeQ.js → BxX3m2UX.js} +1 -1
- package/web/app/immutable/chunks/{D8tsE2-F.js → By8Sq-ft.js} +1 -1
- package/web/app/immutable/chunks/{CTf3pgnM.js → ByQXhpKS.js} +1 -1
- package/web/app/immutable/chunks/{bXZvOnOg.js → C-5H7e4K.js} +1 -1
- package/web/app/immutable/chunks/{C376IId1.js → C-gRduKt.js} +1 -1
- package/web/app/immutable/chunks/{BQVyHt6n.js → C02TD_sM.js} +1 -1
- package/web/app/immutable/chunks/{rw7bge4F.js → C05u3DrM.js} +1 -1
- package/web/app/immutable/chunks/C1LegaQy.js +1 -0
- package/web/app/immutable/chunks/{BN9lTuka.js → C1uebkkA.js} +1 -1
- package/web/app/immutable/chunks/{D7e2XTJl.js → C23vUV7W.js} +1 -1
- package/web/app/immutable/chunks/{Crq31h4w.js → C2dNFWEv.js} +1 -1
- package/web/app/immutable/chunks/{9JfuDVAI.js → C2winPI_.js} +1 -1
- package/web/app/immutable/chunks/{CsfPzyL6.js → C4byWn93.js} +1 -1
- package/web/app/immutable/chunks/{DShjTjco.js → C6VOY2Ed.js} +1 -1
- package/web/app/immutable/chunks/{CTPvu81o.js → C8xZ0qNv.js} +1 -1
- package/web/app/immutable/chunks/{BXQHI4eX.js → C9dmGIaz.js} +1 -1
- package/web/app/immutable/chunks/{91BV6KFP.js → CBsVLKPu.js} +1 -1
- package/web/app/immutable/chunks/{BlCPsgO4.js → CC8PUB7z.js} +2 -2
- package/web/app/immutable/chunks/{DRuEOkw4.js → CCxHAHqB.js} +1 -1
- package/web/app/immutable/chunks/{rj2N2X77.js → CD3weFBA.js} +1 -1
- package/web/app/immutable/chunks/{DUJSEf2g.js → CDYYgEuj.js} +2 -2
- package/web/app/immutable/chunks/{0VQsaIc5.js → CDksRI-c.js} +1 -1
- package/web/app/immutable/chunks/{BQpK3CeI.js → CFukky70.js} +1 -1
- package/web/app/immutable/chunks/{bmdvISxl.js → CH4TOBlm.js} +1 -1
- package/web/app/immutable/chunks/{B9GX4VRk.js → CIBo29o4.js} +1 -1
- package/web/app/immutable/chunks/{BasqomxX.js → CKOIJ0IP.js} +1 -1
- package/web/app/immutable/chunks/{fm9pZz0d.js → CLUAF-ra.js} +3 -3
- package/web/app/immutable/chunks/{CBAaIsiA.js → CNMI-zGd.js} +1 -1
- package/web/app/immutable/chunks/{XA_y_9lT.js → CNbjMDZm.js} +48 -48
- package/web/app/immutable/chunks/{BcNmLUvA.js → CO_V-6EQ.js} +1 -1
- package/web/app/immutable/chunks/{CqYT7Dd6.js → CPO35toG.js} +1 -1
- package/web/app/immutable/chunks/{CyvkPwON.js → CPa4nnG1.js} +1 -1
- package/web/app/immutable/chunks/{B2Pgyqsq.js → CPiRiDCt.js} +1 -1
- package/web/app/immutable/chunks/{DwJV5y_l.js → CPizSuTO.js} +1 -1
- package/web/app/immutable/chunks/{fthv3J-S.js → CURSeRFX.js} +1 -1
- package/web/app/immutable/chunks/{CY94okR1.js → CY6hJTg2.js} +1 -1
- package/web/app/immutable/chunks/{BveuvcUn.js → CYl6Lvh4.js} +3 -3
- package/web/app/immutable/chunks/{g6g5zZQD.js → CZb8tVz5.js} +1 -1
- package/web/app/immutable/chunks/{56Ve4phw.js → C_9ekWa1.js} +4 -4
- package/web/app/immutable/chunks/{FZGh-nAC.js → CaHWmzVB.js} +1 -1
- package/web/app/immutable/chunks/{CRl3Fhij.js → CbCE1pwF.js} +1 -1
- package/web/app/immutable/chunks/{B2ywnjG_.js → CdqUGZeZ.js} +1 -1
- package/web/app/immutable/chunks/{C2scFn3X.js → Cf7_9vnO.js} +1 -1
- package/web/app/immutable/chunks/{Bx0bz20m.js → Ch0hL0V-.js} +3 -3
- package/web/app/immutable/chunks/{C9eE8ZXy.js → ChIqxVTs.js} +1 -1
- package/web/app/immutable/chunks/{D84UKAzR.js → CiLnzvU7.js} +1 -1
- package/web/app/immutable/chunks/{cYR0zuXX.js → CjMEl34P.js} +1 -1
- package/web/app/immutable/chunks/{C0wuuFa7.js → Cl0TebPK.js} +1 -1
- package/web/app/immutable/chunks/{CkAAitlR.js → CloY0vJA.js} +1 -1
- package/web/app/immutable/chunks/{4Tv95AMr.js → CnAtabD8.js} +1 -1
- package/web/app/immutable/chunks/{CCQJkGZ_.js → CoeEqCAd.js} +1 -1
- package/web/app/immutable/chunks/{Bx30GctV.js → CqoECVux.js} +1 -1
- package/web/app/immutable/chunks/{DwIsNA5R.js → CrKYeBTQ.js} +1 -1
- package/web/app/immutable/chunks/{aUxeG-_E.js → Cv1ykEZ5.js} +1 -1
- package/web/app/immutable/chunks/{BmS-LVXj.js → CvJKDv5e.js} +1 -1
- package/web/app/immutable/chunks/{DYfj3lcw.js → CvTcUzFW.js} +1 -1
- package/web/app/immutable/chunks/{8t0Gx_mY.js → CvurNR1W.js} +3 -3
- package/web/app/immutable/chunks/{Ddaozz5f.js → CwWxAoHb.js} +1 -1
- package/web/app/immutable/chunks/{D7_Jc752.js → Cwey7ct7.js} +1 -1
- package/web/app/immutable/chunks/{Bsz0mK8i.js → CxEB7RsJ.js} +1 -1
- package/web/app/immutable/chunks/{D-W1GPTx.js → Cxjclr_4.js} +1 -1
- package/web/app/immutable/chunks/{BGq45CP4.js → CzHSdjMD.js} +1 -1
- package/web/app/immutable/chunks/{DomfbKVx.js → D-TU-2ME.js} +1 -1
- package/web/app/immutable/chunks/{BdJ2kTDg.js → D-mqBiUo.js} +1 -1
- package/web/app/immutable/chunks/{CTld-PL6.js → D-uhCX3w.js} +1 -1
- package/web/app/immutable/chunks/{CRSENXWv.js → D09nC1GH.js} +1 -1
- package/web/app/immutable/chunks/{83fIOp0Q.js → D1gMVCw_.js} +1 -1
- package/web/app/immutable/chunks/{Mne-RwlA.js → D1pAML4P.js} +1 -1
- package/web/app/immutable/chunks/{B4W05Glr.js → D22O0lQY.js} +1 -1
- package/web/app/immutable/chunks/{DSKeLath.js → D2gfYd_D.js} +1 -1
- package/web/app/immutable/chunks/{DC8fssXE.js → D5iylRNB.js} +1 -1
- package/web/app/immutable/chunks/{Qos47XEo.js → D6_4An9q.js} +1 -1
- package/web/app/immutable/chunks/{5YCHxLN1.js → D9352X9R.js} +1 -1
- package/web/app/immutable/chunks/{B-RrcP34.js → DAeWNQ3N.js} +1 -1
- package/web/app/immutable/chunks/{BiuqRP28.js → DAnMADno.js} +1 -1
- package/web/app/immutable/chunks/{SrKv1_3m.js → DCfwli1b.js} +1 -1
- package/web/app/immutable/chunks/{BBGX-ci7.js → DFxm7j9Z.js} +1 -1
- package/web/app/immutable/chunks/{CCagIz8d.js → DHoMpHTR.js} +1 -1
- package/web/app/immutable/chunks/{B8TzQVK2.js → DJI9bjVo.js} +1 -1
- package/web/app/immutable/chunks/{C6jc4Pti.js → DKgDFDH4.js} +1 -1
- package/web/app/immutable/chunks/{s5wpRW1P.js → DLDsTWl7.js} +1 -1
- package/web/app/immutable/chunks/{CK_EC_Zv.js → DLDwz3Jk.js} +3 -3
- package/web/app/immutable/chunks/{DEkMLJNk.js → DNd6DGz3.js} +1 -1
- package/web/app/immutable/chunks/{C9ey9TZx.js → DNjAbZct.js} +1 -1
- package/web/app/immutable/chunks/{DJ7wLorJ.js → DPrS1NlO.js} +1 -1
- package/web/app/immutable/chunks/{AGFKnm2P.js → DQ9yqoWl.js} +1 -1
- package/web/app/immutable/chunks/{D9dP_Ett.js → DQpdaJ6T.js} +1 -1
- package/web/app/immutable/chunks/{B_wPEBaI.js → DRJOZJ6-.js} +1 -1
- package/web/app/immutable/chunks/{DrIarztw.js → DSkFz5VN.js} +1 -1
- package/web/app/immutable/chunks/{BmYE6Ue_.js → DU1KIlN0.js} +1 -1
- package/web/app/immutable/chunks/{SI5c1abe.js → DVFTLZww.js} +2 -2
- package/web/app/immutable/chunks/{BPdm-e1q.js → DVnXSrnX.js} +1 -1
- package/web/app/immutable/chunks/{5lnJq6sM.js → DW-ALZ6y.js} +1 -1
- package/web/app/immutable/chunks/{Dax0jHgN.js → DWKuJ6Hr.js} +1 -1
- package/web/app/immutable/chunks/{Bjuqq3Zd.js → DWx1UA63.js} +1 -1
- package/web/app/immutable/chunks/{D6A4AOD2.js → DXDOTLs_.js} +1 -1
- package/web/app/immutable/chunks/{DAWb2dTK.js → DXhnL_QC.js} +1 -1
- package/web/app/immutable/chunks/{DsaheIX7.js → DZif8G3V.js} +1 -1
- package/web/app/immutable/chunks/{GdXyc5RW.js → DZzjO28f.js} +1 -1
- package/web/app/immutable/chunks/{e0dgj-dl.js → DcSenGcU.js} +1 -1
- package/web/app/immutable/chunks/{BJYSsWSU.js → DeAvGdvh.js} +1 -1
- package/web/app/immutable/chunks/{Bg7GBSBQ.js → DeJsl-aZ.js} +1 -1
- package/web/app/immutable/chunks/{DkXjvKmg.js → Dfltx80e.js} +1 -1
- package/web/app/immutable/chunks/{CPgenjJJ.js → DhabgDm5.js} +1 -1
- package/web/app/immutable/chunks/{BbcTTSnr.js → DiLbGQuc.js} +1 -1
- package/web/app/immutable/chunks/{nXIZY1Eq.js → DkvlYl1r.js} +1 -1
- package/web/app/immutable/chunks/Dm58JeH4.js +4 -0
- package/web/app/immutable/chunks/{CPi21vJ2.js → DnMyotqB.js} +1 -1
- package/web/app/immutable/chunks/{BlRn68PY.js → Doc9Z9QQ.js} +1 -1
- package/web/app/immutable/chunks/{CsAyqppV.js → Dp5CK5E2.js} +2 -2
- package/web/app/immutable/chunks/{HxrVoImD.js → DpZbkRU1.js} +2 -2
- package/web/app/immutable/chunks/{743JVs4Q.js → DsYe-lzR.js} +1 -1
- package/web/app/immutable/chunks/{DCR2yORR.js → DstArZ_G.js} +1 -1
- package/web/app/immutable/chunks/{CGoCQMYw.js → Du45nhw1.js} +1 -1
- package/web/app/immutable/chunks/{kHRHwI-x.js → DuqO5YYx.js} +1 -1
- package/web/app/immutable/chunks/{DCMUMliQ.js → Dv-MAuki.js} +1 -1
- package/web/app/immutable/chunks/{wFOLz40M.js → Dw6H-2WQ.js} +4 -4
- package/web/app/immutable/chunks/{D8VQPXfA.js → DxQllgk1.js} +1 -1
- package/web/app/immutable/chunks/{CuQGJ_Hl.js → DxXHe9XL.js} +1 -1
- package/web/app/immutable/chunks/{DBXDrA8G.js → Dz4zGm0b.js} +1 -1
- package/web/app/immutable/chunks/{CLLGUAol.js → DzrG6LRJ.js} +1 -1
- package/web/app/immutable/chunks/{Cu6_o9yH.js → ENk3kCNh.js} +1 -1
- package/web/app/immutable/chunks/{ecK2Rz_W.js → Ebo0jR7g.js} +1 -1
- package/web/app/immutable/chunks/{tIh0qGP0.js → Hqp9lhkv.js} +1 -1
- package/web/app/immutable/chunks/{DAyLQqmH.js → IS3lk0hL.js} +1 -1
- package/web/app/immutable/chunks/{5EQzwjFU.js → K6c57sYm.js} +1 -1
- package/web/app/immutable/chunks/{ErrYu-1b.js → LjFrXSKU.js} +1 -1
- package/web/app/immutable/chunks/LuyeE9EP.js +1 -0
- package/web/app/immutable/chunks/{Bbtr-1K4.js → LywjnD7L.js} +1 -1
- package/web/app/immutable/chunks/{DEBEHaOd.js → MHMez6vJ.js} +1 -1
- package/web/app/immutable/chunks/{BOCcnpyu.js → NbM9xEi7.js} +1 -1
- package/web/app/immutable/chunks/NqHwC243.js +1 -0
- package/web/app/immutable/chunks/{BRz9UwkY.js → OQFffAXE.js} +2 -2
- package/web/app/immutable/chunks/{R1PIrMEo.js → Q7GICaZA.js} +4 -4
- package/web/app/immutable/chunks/{1kZYk73E.js → RWrc-xf9.js} +1 -1
- package/web/app/immutable/chunks/{_vwL6Rxf.js → S4yHrePv.js} +1 -1
- package/web/app/immutable/chunks/{CN_bicqw.js → TGii5dZx.js} +1 -1
- package/web/app/immutable/chunks/{BUH1cXWe.js → TpzTLNOD.js} +1 -1
- package/web/app/immutable/chunks/{CHyrfJgg.js → TwGZmfYW.js} +1 -1
- package/web/app/immutable/chunks/{CKdLa-Uz.js → VjR26_WS.js} +1 -1
- package/web/app/immutable/chunks/{YNVJCvyF.js → XJvRRqZY.js} +2 -2
- package/web/app/immutable/chunks/{B86uOqdH.js → Z2gbRxA0.js} +1 -1
- package/web/app/immutable/chunks/{CXgjAj37.js → ZUCHJs0z.js} +1 -1
- package/web/app/immutable/chunks/{CnNF86D9.js → aZx3cD8V.js} +1 -1
- package/web/app/immutable/chunks/{HBVhNaGe.js → at5Op_FE.js} +1 -1
- package/web/app/immutable/chunks/{CYnvHqAo.js → c-xC05gO.js} +3 -3
- package/web/app/immutable/chunks/{BFbSkULM.js → dJyv-siL.js} +1 -1
- package/web/app/immutable/chunks/{wqG7RsMr.js → dmvnbvsQ.js} +1 -1
- package/web/app/immutable/chunks/{B0TS4hgi.js → ediMbqWo.js} +1 -1
- package/web/app/immutable/chunks/{BM3phmDM.js → gVaQ50Mb.js} +1 -1
- package/web/app/immutable/chunks/{X60wq_Gr.js → hiFoK9HW.js} +1 -1
- package/web/app/immutable/chunks/{DccM5_Kz.js → ho_wzPgZ.js} +1 -1
- package/web/app/immutable/chunks/{0RMdFti5.js → jkBt9jHY.js} +1 -1
- package/web/app/immutable/chunks/{Bvvd2zh3.js → kG7yHiIe.js} +1 -1
- package/web/app/immutable/chunks/{BmuAz9YM.js → lAsY7teh.js} +1 -1
- package/web/app/immutable/chunks/{BFOOw1dI.js → n4HRXsWs.js} +1 -1
- package/web/app/immutable/chunks/{BsjwOa8m.js → nY6Ai7XD.js} +1 -1
- package/web/app/immutable/chunks/{CbdCK_T5.js → qYwSdo-K.js} +3 -3
- package/web/app/immutable/chunks/{P80wVyai.js → rKiAyfMI.js} +1 -1
- package/web/app/immutable/chunks/{ij7Gv2VI.js → sisoY2vh.js} +1 -1
- package/web/app/immutable/chunks/{Bq6o_ftd.js → uO0IO955.js} +1 -1
- package/web/app/immutable/chunks/{r4Kn8ryM.js → x8V1qvZr.js} +1 -1
- package/web/app/immutable/chunks/{Ba12nCEG.js → xOOK71rW.js} +1 -1
- package/web/app/immutable/chunks/{Dhqi7cA-.js → zuDkoDer.js} +1 -1
- package/web/app/immutable/entry/{app.DGPhT6bY.js → app.S5CWPbDK.js} +3 -3
- package/web/app/immutable/entry/start.DinkqhBP.js +1 -0
- package/web/app/immutable/nodes/{0.BC-jKADe.js → 0.B4U_qChs.js} +1 -1
- package/web/app/immutable/nodes/{1.BElbRM6L.js → 1.pNWMoj9V.js} +1 -1
- package/web/app/immutable/nodes/{10.BhzQgaxP.js → 10.CaBIMNie.js} +1 -1
- package/web/app/immutable/nodes/{11.AT9-T1cz.js → 11.xKpwCHv6.js} +1 -1
- package/web/app/immutable/nodes/{12.UnKFeRcB.js → 12.B4sH0GII.js} +1 -1
- package/web/app/immutable/nodes/{13.CPShrjOW.js → 13.CfDkqDId.js} +3 -3
- package/web/app/immutable/nodes/{14.lrSpZ_2D.js → 14.BI8ewYLs.js} +1 -1
- package/web/app/immutable/nodes/{15.DITl_gdk.js → 15.DDXz42ax.js} +1 -1
- package/web/app/immutable/nodes/{16.SMwU6zOj.js → 16.Cxa0f4JH.js} +1 -1
- package/web/app/immutable/nodes/{17.EkpTyH-y.js → 17.UGEWL_p3.js} +2 -2
- package/web/app/immutable/nodes/{2.eUJUH-2K.js → 2.-Qf9E2iv.js} +5 -5
- package/web/app/immutable/nodes/{3.CqDcm_5y.js → 3.DLT-Yg27.js} +1 -1
- package/web/app/immutable/nodes/{4.DNZQQAL_.js → 4.DmcEH-RC.js} +1 -1
- package/web/app/immutable/nodes/{5.kCfkqAT0.js → 5.BFD4xsaH.js} +1 -1
- package/web/app/immutable/nodes/{6.CzeBG3TF.js → 6.RyyedfVo.js} +1 -1
- package/web/app/immutable/nodes/{7.C_teQRRk.js → 7.C0oAoj9c.js} +1 -1
- package/web/app/immutable/nodes/8.1ulerr0C.js +14 -0
- package/web/app/immutable/nodes/{9.BgUq0jQt.js → 9.fVLpMpdp.js} +5 -5
- package/web/app/version.json +1 -1
- package/web/generated/paraglide.js +49 -49
- package/web/index.html +19 -19
- package/web/app/immutable/chunks/8obSPONn.js +0 -1
- package/web/app/immutable/chunks/B5YXY4gT.js +0 -1
- package/web/app/immutable/chunks/BfxAliuB.js +0 -1
- package/web/app/immutable/chunks/CijnEJw0.js +0 -1
- package/web/app/immutable/chunks/Cq3jmim-.js +0 -1
- package/web/app/immutable/chunks/DWwdvItj.js +0 -4
- package/web/app/immutable/chunks/DWzc_C3M.js +0 -1
- package/web/app/immutable/entry/start.C2NOsCgx.js +0 -1
- package/web/app/immutable/nodes/8.Dro0M0JS.js +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as oe,bq as i,a_ as h,by as ie,bs as ce,b as le,bu as $}from"./
|
|
1
|
+
import{t as oe,bq as i,a_ as h,by as ie,bs as ce,b as le,bu as $}from"./NqHwC243.js";import{bs as ue,bk as me,bH as O,ca as ve,aD as s,a5 as R,bl as ee,bS as q,bA as B,b_ as D,bO as K,W as w,bn as de,bV as te,c9 as g,aA as l,aB as U,a7 as fe,ay as pe,b$ as ae}from"./DYhIMPy1.js";import{s as ge,q as xe,v as G,u as se}from"./C2dNFWEv.js";import{F as re,c7 as _e,bU as be}from"./B66L8YEe.js";import{t as Q,J as ne}from"./72TQselO.js";var he=U('<span class="animated-number-target svelte-194ris3" aria-atomic="true"> </span>'),we=U('<span><span class="animated-number-value svelte-194ris3"> </span> <!></span>');function Y(F,r){if(new.target)return oe({component:Y,...F});ue(r,!0);const y=()=>$(P,"$displayValue",x),V=()=>$(W,"$displaySecondaryValue",x),[x,Z]=ce();let n=i(r,"value",7),c=i(r,"tier",7,"slow"),o=i(r,"secondaryValue",7),_=i(r,"format",7,e=>Q(e)),z=i(r,"class",7,""),N=i(r,"accessible",7,!0),S=i(r,"pulse",7,!0),k=te(null),m=n(),v=o(),L=te(!1),C=0;const P=ne(n(),c()),W=ne(o()??0,c());me(()=>(O(L,ge(),!0),xe(e=>O(L,e,!0)))),ve(()=>{if(s(L)){C+=1,O(k,null),m=n(),v=o(),P.set(n()),W.set(o()??0);return}if(n()!==m||o()!==v){const e=n()!==m?m:v,u=n()!==m?n():o();O(k,(u??0)>(e??0)?"up":"down",!0),m=n(),v=o();const M=++C;return Promise.all([P.set(n()),W.set(o()??0)]).then(()=>{M===C&&O(k,null)}),()=>{C+=1}}});const t=g(()=>_()(y(),o()===void 0?void 0:V())),b=g(()=>_()(n(),o()));var j={get value(){return n()},set value(e){n(e),l()},get tier(){return c()},set tier(e="slow"){c(e),l()},get secondaryValue(){return o()},set secondaryValue(e){o(e),l()},get format(){return _()},set format(e=u=>Q(u)){_(e),l()},get class(){return z()},set class(e=""){z(e),l()},get accessible(){return N()},set accessible(e=!0){N(e),l()},get pulse(){return S()},set pulse(e=!0){S(e),l()},$set:ie,$on:(e,u)=>le(r,e,u)},A=we();let E;var H=R(A),f=ee(H,!0),d=q(H,2);{var I=e=>{var u=he(),M=ee(u,!0);D(()=>K(M,s(b))),w(e,u)};h(d,e=>{N()&&e(I)})}B(A),D(()=>{E=G(A,1,`animated-number ${z()??""}`,"svelte-194ris3",E,{"animating-up":S()&&s(k)==="up","animating-down":S()&&s(k)==="down"}),se(A,"data-pulse",S()?"true":"false"),se(H,"aria-hidden",N()?"true":void 0),K(f,s(t))}),w(F,A);var J=de(j);return Z(),J}var ye=U("<span><!> <span>+<!></span></span>"),Ve=U("<span><!> <span>-<!></span></span>"),ze=U("<div><!> <!></div>");function Se(F,r){if(new.target)return oe({component:Se,...F});ue(r,!0);let y=i(r,"additions",7,0),V=i(r,"deletions",7,0),x=i(r,"showZero",7,!1),Z=i(r,"size",7,"xs"),n=i(r,"showIcons",7,!1),c=i(r,"animated",7,!1),o=i(r,"class",7,""),_=g(()=>y()>0),z=g(()=>V()>0),N=g(()=>s(_)||s(z)||x());const S={xxs:"text-[0.6rem]",xs:"text-[0.7rem]",sm:"text-sm",md:"text-base"},k={xxs:8,xs:10,sm:12,md:14},m=g(()=>S[Z()]),v=g(()=>k[Z()]);var L={get additions(){return y()},set additions(t=0){y(t),l()},get deletions(){return V()},set deletions(t=0){V(t),l()},get showZero(){return x()},set showZero(t=!1){x(t),l()},get size(){return Z()},set size(t="xs"){Z(t),l()},get showIcons(){return n()},set showIcons(t=!1){n(t),l()},get animated(){return c()},set animated(t=!1){c(t),l()},get class(){return o()},set class(t=""){o(t),l()},$set:ie,$on:(t,b)=>le(r,t,b)},C=fe(),P=pe(C);{var W=t=>{var b=ze(),j=R(b);{var A=f=>{var d=ye(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return _e},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=q(I,2),u=q(R(e));{var M=a=>{Y(a,{get value(){return y()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(y())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}B(e),B(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(_)?"text-emerald-600 dark:text-emerald-500":"text-emerald-600/30 dark:text-emerald-500/30"}`)),w(f,d)};h(j,f=>{(s(_)||x())&&f(A)})}var E=q(j,2);{var H=f=>{var d=Ve(),I=R(d);{var J=a=>{{let p=g(()=>s(v)===10||s(v)===12?"xs":"sm");re(a,{get icon(){return be},get size(){return s(p)}})}};h(I,a=>{n()&&a(J)})}var e=q(I,2),u=q(R(e));{var M=a=>{Y(a,{get value(){return V()}})},T=a=>{var p=ae();D(X=>K(p,X),[()=>Q(V())]),w(a,p)};h(u,a=>{c()?a(M):a(T,-1)})}B(e),B(d),D(()=>G(d,1,`flex items-center whitespace-nowrap gap-0.5 font-mono ${s(m)??""} ${s(z)?"text-red-600 dark:text-red-500":"text-red-600/30 dark:text-red-500/30"}`)),w(f,d)};h(E,f=>{(s(z)||x())&&f(H)})}B(b),D(()=>G(b,1,`flex items-center gap-1 ${o()??""}`)),w(t,b)};h(P,t=>{s(N)&&t(W)})}return w(F,C),de(L)}export{Y as A,Se as L};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,a_ as M,bo as P,by as un,bs as On,b as hn,bu as je}from"./8obSPONn.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{v as En,u as Ve,n as Pt,p as Hn,I as ir,g as ar,w as lr}from"./Crq31h4w.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./DpFreuz_.js";import{b as on}from"./BaIAhI85.js";import{Ii as Me,eD as Vs,eu as Ks,ev as js,oy as qs,nn as Vt,nr as cr,nq as In,ex as Gs,uO as Qs,uP as Xs,uR as Ys,Gm as Zs,In as Js,re as eo,eC as to}from"./DomfbKVx.js";import{c as no}from"./CijnEJw0.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bN as so,aL as oo,c7 as hr,bU as gr,ck as fr}from"./CAmF3PXk.js";import{dp as io,bd as ao,M as lo,aC as mr,i as co}from"./DkXjvKmg.js";import{L as pr}from"./D8VQPXfA.js";import{C as an}from"./DypB-Dwi.js";import{b5 as kr,bK as uo,bQ as ho}from"./1kZYk73E.js";import{q as $e,d as go,g as fo}from"./C2scFn3X.js";import"./CXgjAj37.js";import{f as ke}from"./CYnvHqAo.js";import{e as mo}from"./DWwdvItj.js";import{T as Pr}from"./C9eE8ZXy.js";import{g as Nn}from"./CLLGUAol.js";import{C as po}from"./BasqomxX.js";import{C as vo}from"./BLYi9_ai.js";import{s as vr}from"./ByQ08O_R.js";import{t as Dt}from"./CBoIo15V.js";import{P as _o,k as _r}from"./wFOLz40M.js";import{g as wo}from"./BLZx5Jln.js";import{a5 as bo,V as yo}from"./BVEChIvV.js";import{ap as Co}from"./Bx0bz20m.js";import{L as wr}from"./CbdCK_T5.js";import{ad as So,ac as xo,ae as ko}from"./XA_y_9lT.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return Ke==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
1
|
+
var $s=Object.defineProperty;var Fs=(f,r,l)=>r in f?$s(f,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):f[r]=l;var q=(f,r,l)=>Fs(f,typeof r!="symbol"?r+"":r,l);import{t as dn,bq as S,a_ as M,bo as P,by as un,bs as On,b as hn,bu as je}from"./NqHwC243.js";import{ai as xr,bs as gn,ca as Be,aD as e,bH as m,a5 as N,bA as H,b_ as z,aw as sn,aj as ln,W as w,bn as fn,bV as Y,aA as x,ay as ne,bS as C,bl as de,bO as K,aB as T,c9 as u,a7 as nt,br as tt,bj as sr,c5 as gt,c0 as Ln,a as Us,be as Tt,b$ as ft,bf as or}from"./DYhIMPy1.js";import{v as En,u as Ve,n as Pt,p as Hn,I as ir,g as ar,w as lr}from"./C2dNFWEv.js";import{I as cn,F as Ws,c as Bs,t as Rt}from"./72TQselO.js";import{b as on}from"./BaIAhI85.js";import{Ii as Me,eD as Vs,eu as Ks,ev as js,oy as qs,nn as Vt,nr as cr,nq as In,ex as Gs,uO as Qs,uP as Xs,uR as Ys,Gm as Zs,In as Js,re as eo,eC as to}from"./D-TU-2ME.js";import{c as no}from"./BXdz7Mej.js";import{F as Ne,Z as ro,a4 as An,as as dr,at as ur,bN as so,aL as oo,c7 as hr,bU as gr,ck as fr}from"./B66L8YEe.js";import{dp as io,bd as ao,M as lo,aC as mr,i as co}from"./Dfltx80e.js";import{L as pr}from"./DxQllgk1.js";import{C as an}from"./DypB-Dwi.js";import{b5 as kr,bK as uo,bQ as ho}from"./RWrc-xf9.js";import{q as $e,d as go,g as fo}from"./Cf7_9vnO.js";import"./ZUCHJs0z.js";import{f as ke}from"./c-xC05gO.js";import{e as mo}from"./Dm58JeH4.js";import{T as Pr}from"./ChIqxVTs.js";import{g as Nn}from"./DzrG6LRJ.js";import{C as po}from"./CKOIJ0IP.js";import{C as vo}from"./Bl2M7dQb.js";import{s as vr}from"./B6hMBAzw.js";import{t as Dt}from"./BD9kDOxT.js";import{P as _o,k as _r}from"./Dw6H-2WQ.js";import{g as wo}from"./Bkeityp2.js";import{a5 as bo,V as yo}from"./Bncjw5PN.js";import{ap as Co}from"./Ch0hL0V-.js";import{L as wr}from"./qYwSdo-K.js";import{ad as So,ac as xo,ae as ko}from"./CNbjMDZm.js";function br({scrollTop:f,scrollHeight:r,height:l,fitPerfectly:a=!1,fitPerfectlyOverscroll:c=0,overscrollSize:p}){const b=l+p*2,y=a?l+c*2:b;if(r=Math.max(r,y),b>=r||a){const G=Math.max(f-c,0),h=Math.min(f+y,r);return{top:G,bottom:Math.max(h,G)}}let A=f+l/2-b/2,F=A+b;return A<0&&(A=0),F>r&&(F=r),A=Math.floor(Math.max(A,0)),{top:A,bottom:Math.ceil(Math.max(Math.min(F,r),A))}}function Po(f,r){return f==null||r==null?f===r:f.top===r.top&&f.bottom===r.bottom}const Rr=1e3,Ro=Rr*4,Lo=[0,1e-6,.99999,1],Ho={overscrollSize:Rr,intersectionObserverMargin:Ro,resizeDebugging:!1};let rn=0,Io=-1;var Pe,Ao=(Pe=class{constructor(r){q(this,"__id",`virtualizer-${++Io}`);q(this,"config");q(this,"type","simple");q(this,"intersectionObserver");q(this,"scrollTop",0);q(this,"height",0);q(this,"scrollHeight",0);q(this,"windowSpecs",{top:0,bottom:0});q(this,"root");q(this,"contentContainer");q(this,"resizeObserver");q(this,"observers",new Map);q(this,"visibleInstances",new Map);q(this,"visibleInstancesDirty",!1);q(this,"instancesChanged",new Set);q(this,"reconcileQueue",new Set);q(this,"scrollDirty",!0);q(this,"heightDirty",!0);q(this,"scrollHeightDirty",!0);q(this,"renderedObservers",0);q(this,"connectQueue",new Map);q(this,"handleContainerResize",r=>{if(this.root==null)return;let l=!1;for(const a of r){const c=a.borderBoxSize[0].blockSize;this.root instanceof Document?c!==this.scrollHeight&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: content size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c)):a.target===this.root?c!==this.height&&(this.heightDirty=!0,l=!0):a.target===this.contentContainer&&(this.scrollHeightDirty=!0,l=!0,this.config.resizeDebugging&&(console.log("Virtualizer: scroller size change",this.__id,{sizeChange:c-rn,newSize:c}),rn=c))}l&&$e(this.computeRenderRangeAndEmit)});q(this,"handleWindowResize",()=>{Pe.__STOP||window.innerHeight===this.height||(this.heightDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleWindowScroll",()=>{Pe.__STOP||this.root==null||!(this.root instanceof Document)||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"handleElementScroll",()=>{Pe.__STOP||this.root==null||this.root instanceof Document||(this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit))});q(this,"computeRenderRangeAndEmit",()=>{if(Pe.__STOP)return;const r=this.heightDirty||this.scrollHeightDirty;let l=this.instancesChanged.size>0;if(this.instancesChanged.size===0){const p=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize});if(!r&&Po(this.windowSpecs,p)&&this.renderedObservers===this.observers.size&&!this.visibleInstancesDirty&&this.reconcileQueue.size===0)return;this.windowSpecs=p}this.visibleInstancesDirty=!1,this.renderedObservers=this.observers.size;const a=this.getScrollAnchor(this.height),c=new Set;for(const p of r?this.observers.values():this.visibleInstances.values())p.onRender(r)&&c.add(p);for(const p of this.instancesChanged)c.has(p)||p.onRender(r)&&c.add(p);this.scrollFix(a);for(const p of c)this.reconcileQueue.delete(p),p.reconcileHeights();for(const p of this.reconcileQueue)p.reconcileHeights()&&(l=!0);this.reconcileQueue.clear(),l||=this.instancesChanged.size>0,l&&this.markDOMDirty(),(l||r)&&$e(this.computeRenderRangeAndEmit),c.clear(),this.instancesChanged.clear()});q(this,"handleIntersectionChange",r=>{this.scrollDirty=!0;for(const{target:l,isIntersecting:a}of r){if(!(l instanceof HTMLElement))throw new Error("Virtualizer.handleIntersectionChange: target not an HTMLElement");const c=this.observers.get(l);c!=null&&(a&&!this.visibleInstances.has(l)?(c.setVisibility(!0),this.visibleInstances.set(l,c),this.visibleInstancesDirty=!0):!a&&this.visibleInstances.has(l)&&(c.setVisibility(!1),this.visibleInstances.delete(l),this.visibleInstancesDirty=!0))}this.visibleInstancesDirty&&$e(this.computeRenderRangeAndEmit)});this.config={...Ho,...r}}setup(r,l){if(this.root==null){this.root=r,this.resizeObserver=new ResizeObserver(this.handleContainerResize),this.intersectionObserver=new IntersectionObserver(this.handleIntersectionChange,{root:this.root,threshold:Lo,rootMargin:`${this.config.intersectionObserverMargin}px 0px ${this.config.intersectionObserverMargin}px 0px`}),r instanceof Document?this.setupWindow():this.setupElement(l),window.__INSTANCE=this,window.__TOGGLE=()=>{Pe.__STOP?(Pe.__STOP=!1,(this.getScrollContainerElement()??window).scrollTo({top:Pe.__lastScrollPosition}),$e(this.computeRenderRangeAndEmit)):(Pe.__lastScrollPosition=this.getScrollTop(),Pe.__STOP=!0)};for(const[a,c]of this.connectQueue.entries())this.connect(a,c);this.connectQueue.clear(),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}}instanceChanged(r,l){this.instancesChanged.add(r),l&&this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)}requestHeightReconcile(r){this.reconcileQueue.add(r),$e(this.computeRenderRangeAndEmit)}getWindowSpecs(){return this.windowSpecs.top===0&&this.windowSpecs.bottom===0&&(this.windowSpecs=br({scrollTop:this.getScrollTop(),height:this.getHeight(),scrollHeight:this.getScrollHeight(),overscrollSize:this.config.overscrollSize})),this.windowSpecs}getRoot(){return this.root}isInstanceVisible(r,l){const a=this.getScrollTop(),c=this.getHeight(),p=this.config.intersectionObserverMargin,b=a-p,y=a+c+p;return!(r<b-l||r>y)}setupWindow(){if(this.root==null||!(this.root instanceof Document))throw new Error("Virtualizer.setupWindow: Invalid setup method");window.addEventListener("scroll",this.handleWindowScroll,{passive:!0}),window.addEventListener("resize",this.handleWindowResize,{passive:!0}),this.resizeObserver?.observe(this.root.documentElement)}setupElement(r){if(this.root==null||this.root instanceof Document)throw new Error("Virtualizer.setupElement: Invalid setup method");this.root.addEventListener("scroll",this.handleElementScroll,{passive:!0}),this.resizeObserver?.observe(this.root),r??=this.root.firstElementChild??void 0,r instanceof HTMLElement&&(this.contentContainer=r,this.resizeObserver?.observe(r))}cleanUp(){go(this.computeRenderRangeAndEmit),this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.intersectionObserver?.disconnect(),this.intersectionObserver=void 0,this.root?.removeEventListener("scroll",this.handleElementScroll),window.removeEventListener("scroll",this.handleWindowScroll),window.removeEventListener("resize",this.handleWindowResize),this.root=void 0,this.contentContainer=void 0,this.observers.clear(),this.visibleInstances.clear(),this.instancesChanged.clear(),this.reconcileQueue.clear(),this.connectQueue.clear(),this.visibleInstancesDirty=!1,this.windowSpecs={top:0,bottom:0},this.scrollTop=0,this.height=0,this.scrollHeight=0,this.scrollDirty=!0,this.heightDirty=!0,this.scrollHeightDirty=!0}getOffsetInScrollContainer(r){return this.getScrollTop()+Kt(r,this.getScrollContainerElement())}connect(r,l){if(this.observers.has(r))throw new Error("Virtualizer.connect: instance is already connected...");return this.intersectionObserver==null?this.connectQueue.set(r,l):(this.intersectionObserver.observe(r),this.observers.set(r,l),this.instancesChanged.add(l),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit)),()=>this.disconnect(r)}disconnect(r){const l=this.observers.get(r);this.connectQueue.delete(r),l!=null&&(this.intersectionObserver?.unobserve(r),this.observers.delete(r),this.instancesChanged.delete(l),this.reconcileQueue.delete(l),this.visibleInstances.delete(r)&&(this.visibleInstancesDirty=!0),this.markDOMDirty(),$e(this.computeRenderRangeAndEmit))}scrollFix(r){if(r==null)return;const l=this.getScrollContainerElement(),{lineIndex:a,lineOffset:c,fileElement:p,fileOffset:b,fileTypeOffset:y}=r;if(a!=null&&c!=null){const F=p.shadowRoot?.querySelector(`[data-line][data-line-index="${a}"]`);if(F instanceof HTMLElement){const G=Kt(F,l);if(G!==c){const h=G-c;this.applyScrollFix(h)}return}}const A=Kt(p,l);if(y==="top")A!==b&&this.applyScrollFix(A-b);else{const F=A+p.getBoundingClientRect().height;F!==b&&this.applyScrollFix(F-b)}}applyScrollFix(r){this.root==null||this.root instanceof Document?window.scrollTo({top:window.scrollY+r,behavior:"instant"}):this.root.scrollTo({top:this.root.scrollTop+r,behavior:"instant"}),this.markDOMDirty()}getScrollAnchor(r){const l=this.getScrollContainerElement();let a;for(const[c]of this.visibleInstances.entries()){const p=Kt(c,l),b=p+c.offsetHeight;let y,A;b<=0?(y=b,A="bottom"):(y=p,A="top");let F,G;if(b>0&&p<r)for(const oe of c.shadowRoot?.querySelectorAll("[data-line][data-line-index]")??[]){if(!(oe instanceof HTMLElement))continue;const Te=oe.dataset.lineIndex;if(Te==null)continue;const ue=Kt(oe,l);if(!(ue<0)){F=Te,G=ue;break}}if(a?.lineOffset!=null&&G==null)continue;let h=!1;(a==null||G!=null&&(a.lineOffset==null||G<a.lineOffset)||G==null&&a.lineOffset==null&&(y>=0&&(a.fileOffset<0||y<a.fileOffset)||y<0&&a.fileOffset<0&&y>a.fileOffset))&&(h=!0),h&&(a={fileElement:c,fileTypeOffset:A,fileOffset:y,lineIndex:F,lineOffset:G})}return a}getScrollTop(){if(!this.scrollDirty)return this.scrollTop;this.scrollDirty=!1;let r=this.root==null?0:this.root instanceof Document?window.scrollY:this.root.scrollTop;return r=this.clampScrollTop(r),this.scrollTop=r,r}scrollTo({top:r,behavior:l="auto"}){const{root:a}=this;if(a==null)return;const c=this.clampScrollTop(r);a instanceof Document?window.scrollTo({top:c,behavior:l}):a.scrollTo({top:c,behavior:l}),this.scrollDirty=!0,$e(this.computeRenderRangeAndEmit)}clampScrollTop(r){return Math.max(0,Math.min(r,this.getScrollHeight()-this.getHeight()))}getScrollHeight(){return this.scrollHeightDirty?(this.scrollHeightDirty=!1,this.scrollHeight=this.root==null?0:this.root instanceof Document?this.root.documentElement.scrollHeight:this.root.scrollHeight,this.scrollHeight):this.scrollHeight}getHeight(){return this.heightDirty?(this.heightDirty=!1,this.height=this.root==null?0:this.root instanceof Document?globalThis.innerHeight:this.root.getBoundingClientRect().height,this.height):this.height}markDOMDirty(){this.scrollDirty=!0,this.scrollHeightDirty=!0,this.heightDirty=!0}getScrollContainerElement(){return this.root==null||this.root instanceof Document?void 0:this.root}},q(Pe,"__STOP",!1),q(Pe,"__lastScrollPosition",0),Pe);function Kt(f,r){const l=f.getBoundingClientRect(),a=r?.getBoundingClientRect().top??0;return l.top-a}var Eo=T('<div class="absolute inset-0 flex items-center justify-center rounded-lg bg-background/60 backdrop-blur-[2px] transition-opacity duration-spring-moderate ease-spring-moderate motion-reduce:transition-none z-10 pointer-events-none"><div class="flex items-center gap-2 rounded-lg border border-border bg-card px-3 py-2 text-xs font-medium text-subtle shadow-lg"><!> </div></div>'),Oo=T("<!> <!>",1),No=T('<div class="flex h-24 items-center justify-start text-left text-subtle"> </div>'),To=T('<div role="region"><!></div>');function Lr(f,r){if(new.target)return dn({component:Lr,...f});gn(r,!0);const l=()=>je(ve,"$sideBySide",a),[a,c]=On(),p=Nn()?.workspaceId??void 0;let b=S(r,"change",7),y=S(r,"foldUnchanged",7,!0),A=S(r,"allowHeadReads",7,!0),F=S(r,"canReadHeadFiles",7),G=S(r,"lineWrapping",7,!1),h=S(r,"scrollToLine",7),oe=S(r,"isAggregate",7,!1),Te=S(r,"showScrollHint",7,!1),ue=S(r,"onStageHunk",7),Q=S(r,"onUnstageHunk",7),at=S(r,"onOpenCommit",7),pt=S(r,"virtualizer",7),vt=S(r,"gitRootId",7,void 0),_t=S(r,"gitRootPath",7,void 0);const ve=kr();let Re=Y(!1),ye=Y(!1),Fe=Y(!1),Ue=Y(0),qe=Y(void 0);const $=80;function ie(){m(ye,!0)}function De(){m(ye,!1),m(Fe,!1),m(Ue,0)}function Le(v){!e(ye)||e(Re)||(m(Ue,e(Ue)+Math.abs(v.deltaY)),e(Ue)>=$&&!e(Fe)&&m(Fe,!0))}function jt(){m(Re,!0),m(Fe,!1),m(Ue,0)}function qt(v){e(qe)&&!e(qe).contains(v.relatedTarget)&&m(Re,!1)}Be(()=>{(e(Re)||!e(ye))&&(m(Fe,!1),m(Ue,0))});let Lt=u(()=>{const{toolCallId:v,filePath:_e,additions:Qe,deletions:yt,oldContent:re,newContent:Xe}=b(),rt="staged"in b()&&b().staged===!0,Ke="category"in b()?b().category:void 0,At="commitHash"in b()?b().commitHash:void 0,zt="gitlink"in b()?b().gitlink:void 0,Mt="isFullFileContent"in b()?b().isFullFileContent:!1;let Ct;return Ke==="committed"?Ct=an.Committed:rt?Ct=an.Staged:Ct=an.Unstaged,{id:v,file:_e,relativePath:_e,stage:Ct,commitHash:At,gitlink:zt,stats:{additions:Qe,deletions:yt},attribution:{timestamp:0},content:re!==void 0||Xe!==void 0?{oldContent:re??"",newContent:Xe??"",isFullFileContent:Mt}:void 0}});const D=u(()=>b().isFullFileContent?1:("chunks"in b()?b().chunks?.[0]?.newStart:void 0)??b().startLineNumber??1);var Ht={get change(){return b()},set change(v){b(v),x()},get foldUnchanged(){return y()},set foldUnchanged(v=!0){y(v),x()},get allowHeadReads(){return A()},set allowHeadReads(v=!0){A(v),x()},get canReadHeadFiles(){return F()},set canReadHeadFiles(v){F(v),x()},get lineWrapping(){return G()},set lineWrapping(v=!1){G(v),x()},get scrollToLine(){return h()},set scrollToLine(v){h(v),x()},get isAggregate(){return oe()},set isAggregate(v=!1){oe(v),x()},get showScrollHint(){return Te()},set showScrollHint(v=!1){Te(v),x()},get onStageHunk(){return ue()},set onStageHunk(v){ue(v),x()},get onUnstageHunk(){return Q()},set onUnstageHunk(v){Q(v),x()},get onOpenCommit(){return at()},set onOpenCommit(v){at(v),x()},get virtualizer(){return pt()},set virtualizer(v){pt(v),x()},get gitRootId(){return vt()},set gitRootId(v=void 0){vt(v),x()},get gitRootPath(){return _t()},set gitRootPath(v=void 0){_t(v),x()},$set:un,$on:(v,_e)=>hn(r,v,_e)},He=To();let wt;var It=N(He);{var Ge=v=>{var _e=Oo(),Qe=ne(_e);{let Xe=u(()=>l()?"split":"unified");Pr(Qe,{get change(){return e(Lt)},get workspaceId(){return p},get viewMode(){return e(Xe)},get foldUnchanged(){return y()},get lineWrapping(){return G()},get onStageHunk(){return ue()},get onUnstageHunk(){return Q()},useProvidedContent:!0,get allowHeadReads(){return A()},get canReadHeadFiles(){return F()},get lineOffset(){return e(D)},get virtualizer(){return pt()},get gitRootId(){return vt()},get gitRootPath(){return _t()}})}var yt=C(Qe,2);{var re=Xe=>{var rt=Eo(),Ke=N(rt),At=N(Ke);Ne(At,{get icon(){return ro},class:"w-3 h-3"});var zt=C(At);H(Ke),H(rt),z(Mt=>K(zt,` ${Mt??""}`),[()=>P.chat_inlineDiffItem_clickToScroll_label()]),cn(1,rt,()=>Ws,()=>({tier:"fast",y:0,scale:1})),cn(2,rt,()=>Bs,()=>({tier:"fast"})),w(Xe,rt)};M(yt,Xe=>{Te()&&e(Fe)&&Xe(re)})}w(v,_e)},bt=v=>{var _e=No(),Qe=de(_e,!0);z(yt=>K(Qe,yt),[()=>P.chat_inlineDiffItem_noWorkspace_label()]),w(v,_e)};M(It,v=>{p?v(Ge):v(bt,-1)})}H(He),on(He,v=>m(qe,v),()=>e(qe)),z(v=>{wt=En(He,1,"inline-diff-container relative",null,wt,{focused:e(Re)}),Ve(He,"aria-label",v)},[()=>P.chat_inlineDiffItem_viewer_ariaLabel()]),sn("mouseenter",He,ie),sn("mouseleave",He,De),sn("wheel",He,Le),ln("focusin",He,jt),ln("focusout",He,qt),w(f,He);var mn=fn(Ht);return c(),mn}xr(["focusin","focusout"]);function yr(f){return[f.stage,f.type,f.oldLineNumber??"",f.newLineNumber??"",f.content].join("\0")}function Do(f){let r=f.oldStart,l=f.newStart;return f.lines.map(a=>{const c={...a,oldLineNumber:a.oldLineNumber??a.oldNumber,newLineNumber:a.newLineNumber??a.newNumber};return c.oldLineNumber===void 0&&c.newLineNumber===void 0?a.type==="Context"?(c.oldLineNumber=r++,c.newLineNumber=l++):a.type==="Deletion"?c.oldLineNumber=r++:a.type==="Addition"&&(c.newLineNumber=l++):a.type==="Context"?(r=(c.oldLineNumber??r)+1,l=(c.newLineNumber??l)+1):a.type==="Deletion"?r=(c.oldLineNumber??r)+1:a.type==="Addition"&&(l=(c.newLineNumber??l)+1),c})}function zo(f,r){const l=f?f.split(`
|
|
2
2
|
`):[],a=r?r.split(`
|
|
3
3
|
`):[];if(l.length===0&&a.length===0)return[];const c=[];for(const p of l)c.push({type:"Deletion",content:p});for(const p of a)c.push({type:"Addition",content:p});return[{oldStart:1,oldLines:l.length,newStart:1,newLines:a.length,lines:c}]}function Mo(f){if(!f||f.length===0)return[];const r=[];for(const a of f){let c=a.change.chunks||[];c.length===0&&(a.change.oldContent!=null||a.change.newContent!=null)&&(c=zo(a.change.oldContent??"",a.change.newContent??"")),c.forEach((p,b)=>{r.push({hunk:p,stage:a.category,part:a,hunkIndex:b})})}if(r.length===0)return[];r.sort((a,c)=>a.hunk.newStart-c.hunk.newStart);const l=[];for(const{hunk:a,stage:c,hunkIndex:p}of r){const y=Do(a).map(A=>({type:A.type,content:A.content,oldLineNumber:A.oldLineNumber,newLineNumber:A.newLineNumber,stage:c,hunkIndex:p}));l.push({headStart:a.oldStart,headLines:a.oldLines,wtStart:a.newStart,wtLines:a.newLines,lines:y,stages:new Set([c])})}return $o(l)}function $o(f){if(f.length<=1)return f;const r=[];let l=f[0];for(let a=1;a<f.length;a++){const c=f[a],p=l.wtStart+l.wtLines;c.wtStart<=p+3?l=Fo(l,c):(r.push(l),l=c)}return r.push(l),r}function Fo(f,r){const l=new Map,a=new Map,c=new Set;for(const h of f.lines)c.add(yr(h)),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h);const p=[...f.lines];for(const h of r.lines){const oe=yr(h);if(!c.has(oe)){if(h.type==="Context"){const Te=h.newLineNumber!==void 0?l.get(h.newLineNumber):void 0,ue=h.oldLineNumber!==void 0?a.get(h.oldLineNumber):void 0;if(Te?.type==="Context"||ue?.type==="Context"){c.add(oe);continue}}p.push(h),c.add(oe),h.newLineNumber!==void 0&&l.set(h.newLineNumber,h),h.oldLineNumber!==void 0&&h.type!=="Addition"&&a.set(h.oldLineNumber,h)}}p.sort((h,oe)=>{const Te=h.newLineNumber??h.oldLineNumber??0,ue=oe.newLineNumber??oe.oldLineNumber??0;return Te-ue});const b=new Set([...f.stages,...r.stages]),y=Math.min(f.headStart,r.headStart),A=Math.min(f.wtStart,r.wtStart),F=Math.max(f.headStart+f.headLines,r.headStart+r.headLines),G=Math.max(f.wtStart+f.wtLines,r.wtStart+r.wtLines);return{headStart:y,headLines:F-y,wtStart:A,wtLines:G-A,lines:p,stages:b}}function Uo(f){const r=[],l=[];let a=f[0]?.headStart??1,c=f[0]?.wtStart??1;const p=(b,y,A)=>{let F=y;for(;F<A;)b.push(""),F++;return F};for(const b of f){a=p(r,a,b.headStart),c=p(l,c,b.wtStart);for(const y of b.lines)y.type==="Context"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),r.push(y.content),l.push(y.content),a++,c++):y.type==="Deletion"?(y.oldLineNumber!==void 0&&(a=p(r,a,y.oldLineNumber)),r.push(y.content),a++):y.type==="Addition"&&(y.newLineNumber!==void 0&&(c=p(l,c,y.newLineNumber)),l.push(y.content),c++)}return{oldContent:r.join(`
|
|
4
4
|
`),newContent:l.join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{w as t,I as o}from"./
|
|
1
|
+
import{w as t,I as o}from"./CO_V-6EQ.js";import{i as r,a as s}from"./C-gRduKt.js";import{a as l}from"./BdWqymET.js";new l("ElectronBridge");function d(){return typeof window<"u"&&!!window.electronAPI}function p(){if(typeof window>"u"||!window.electronAPI)throw new Error("electronAPI is not available (not running in Electron environment)");return window.electronAPI}async function a(n,...e){return await r(n,...e)}function f(n,e){return s(n,i=>{e({payload:i})})}const y={async message(n,e){return await a("dialog:message",{message:n,...e})},async openDirectory(n={}){return t("nativeDialogs")?(await a(o.DIALOG.OPEN,n))?.[0]??null:null},async openFile(n={}){return t("nativeDialogs")?(await a(o.DIALOG.OPEN,{...n,mode:"file"}))?.[0]??null:null}},g={async open(n){await a("shell:openExternal",{url:n})}};export{d as a,y as d,p as e,a as i,f as l,g as s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aR as a,aP as m,aQ as i,m as y,a0 as C,l as x,ab as R,Y as T,b3 as k,aJ as N,ad as A,bM as p,bL as l,O as v,bZ as O,w as S,bN as r,aG as W}from"./DYhIMPy1.js";import{B as F}from"./
|
|
1
|
+
import{aR as a,aP as m,aQ as i,m as y,a0 as C,l as x,ab as R,Y as T,b3 as k,aJ as N,ad as A,bM as p,bL as l,O as v,bZ as O,w as S,bN as r,aG as W}from"./DYhIMPy1.js";import{B as F}from"./NqHwC243.js";import{C as g}from"./72TQselO.js";import{be as M}from"./D-TU-2ME.js";function U(t,s,B,f,G,L){let E=a;a&&m();var e=null;a&&i.nodeType===y&&(e=i,m());var u=a?i:t,b=v,_=new F(u,!1);C(()=>{const n=s()||null;var w=n==="svg"?S:void 0;if(n===null){_.ensure(null,null),r(!0);return}return _.ensure(n,c=>{if(n){var h=a;if(e=a?e:R(n,w),T(e,e),f){var d=null;a&&k(n)&&e.append(d=document.createComment(""));var o=a?N(e):e.appendChild(A());a&&(o===null?p(!1):l(o)),g(b),f(e,o),d?.remove(),g(null)}v.nodes.end=e,h||c.before(e)}a&&l(c)}),r(!0),()=>{n&&r(!1)}},x),O(()=>{r(!0)}),E&&(p(!0),l(u))}const I=Symbol("workspace-route-context");function P(t){return t&&t!=="new"?M(t):null}function V(t,s){return t?.startsWith("/workspace/")?P(s):null}function X(){try{return W(I)}catch{return}}export{I as W,P as a,U as e,X as g,V as w};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{t as D,bq as d,a_ as P,by as b,b as S}from"./
|
|
1
|
+
import{t as D,bq as d,a_ as P,by as b,b as S}from"./NqHwC243.js";import{bs as x,a7 as A,ay as C,W as M,bn as z,aA as m,aD as i,c9 as c}from"./DYhIMPy1.js";import{D as f,M as B}from"./BVZOiDhO.js";import{S as N,p as R}from"./4XNONbWq.js";import{N as W}from"./RWrc-xf9.js";import{Ii as $,uR as j,be as E}from"./D-TU-2ME.js";import{x as J}from"./Dm58JeH4.js";import{a0 as K}from"./Dfltx80e.js";function O(l,s){if(new.target)return D({component:O,...l});x(s,!0);let o=d(s,"kind",7),t=d(s,"source",7),a=d(s,"workspaceId",7);const g=new W,u=c(()=>{if(o()==="mermaid")return null;const e=g.parseMarkdown(`\`\`\`ws-block:diagram
|
|
2
2
|
${t()}
|
|
3
3
|
\`\`\``)[0],r=e?.primitive.type==="diagram"?JSON.stringify(e.primitive):t();return R(r,!0)});function k(e,r){if(!a()||!r.target)return;const n={openInAdjacentPanel:e.metaKey||e.ctrlKey,sourcePanelId:e.target?.closest("[data-panel-id]")?.getAttribute("data-panel-id")??void 0};r.type==="file"?$.dispatch(j(a(),r.target,n)):r.type==="note"&&J(K(r.target,a()),{...n,workspaceId:E(a()),event:e})}var w={get kind(){return o()},set kind(e){o(e),m()},get source(){return t()},set source(e){t(e),m()},get workspaceId(){return a()},set workspaceId(e){a(e),m()},$set:b,$on:(e,r)=>S(s,e,r)},p=A(),y=C(p);{var I=e=>{f(e,{kind:"mermaid",rendererOwnsActions:!0,children:(r,n)=>{B(r,{get code(){return t()},showExportButton:!0})},$$slots:{default:!0}})},_=e=>{f(e,{kind:"custom",children:(r,n)=>{{let h=c(()=>i(u)?.diagram??null),v=c(()=>i(u)?.error);N(r,{get diagram(){return i(h)},get source(){return t()},get sourceError(){return i(v)},onBindingClick:k})}},$$slots:{default:!0}})};P(y,e=>{o()==="mermaid"?e(I):e(_,-1)})}return M(l,p),z(w)}export{O as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{k as qa,s as fa}from"./
|
|
1
|
+
import{k as qa,s as fa}from"./B6hMBAzw.js";import{s as va,n as Ct,u as q,w as en,v as me,I as Wa,X as Qa,i as Ga,g as Nn}from"./C2dNFWEv.js";import{Z as Ka,cS as Va,A as Ya,aX as xn,bW as Xa,v as Ja}from"./RWrc-xf9.js";import{bo as c,t as Pt,bq as w,a_ as M,by as Tt,b as Rt,bs as qn,bu as Re,bt as Za}from"./NqHwC243.js";import{bo as Wn,bs as Ot,a5 as O,bl as U,bS as b,bA as $,b_ as x,aD as e,W as l,ay as H,a7 as Oe,bO as L,bn as Lt,c9 as u,aA as k,aB as _,ca as Fe,bH as h,b$ as Qt,bV as le,cd as Mt,br as ma,be as un,c5 as er,bi as En,bj as tr,bf as hn,am as ta,ax as na,ai as nr,aj as ar,c0 as rr}from"./DYhIMPy1.js";import{s as _a}from"./ZUCHJs0z.js";import{e as sr}from"./DzrG6LRJ.js";import{t as Wt,k as or,a as ir,I as ha}from"./72TQselO.js";import{r as lr,o as dr,A as aa,L as ur}from"./XJvRRqZY.js";import{S as bn,t as Dn}from"./D-uhCX3w.js";import{R as ra}from"./Bl2M7dQb.js";import{I as ba}from"./TGii5dZx.js";import"./B0hlE4IJ.js";import{aC as wn,cx as cr,al as pr,aA as gr,cr as fr,cs as vr,ah as mr,aj as _r,aq as hr,aw as br,l as wr,G as kr,dQ as xr,M as yr,ci as $r,bR as Ar}from"./Dfltx80e.js";import{Ii as J,cd as Fn,cb as wa,ce as kn,qP as Sr,CM as Ir,fF as ka,CR as Cr,bs as Pr,z2 as Tr,mp as sa,tA as Rr,ch as Or,u8 as oa,nj as Lr,Cw as Nr,CP as Er,b$ as Dr}from"./D-TU-2ME.js";import{K as Mr,A as zr,ap as Fr,ak as Br,T as jr}from"./Dw6H-2WQ.js";import{y as Hr}from"./CO_V-6EQ.js";import{l as Ur}from"./DNd6DGz3.js";import{f as ia}from"./CDksRI-c.js";import{h as qr,g as Wr}from"./Bkeityp2.js";import"./B9PO2UZy.js";import{ax as Qr,am as Gr,ap as Kr,f as Mn,a5 as Vr,bc as la}from"./c-xC05gO.js";import"./DAnMADno.js";import{c as Yr,o as Xr,n as Jr,m as Zr,E as es}from"./BD9kDOxT.js";import{c as Bn,b as da,d as jn,a as Hn,A as xa,j as ts,l as ns,P as as}from"./Dm58JeH4.js";import{c as de}from"./D1pAML4P.js";import{F as rs,j as ss,bx as os,i as is,bK as ls}from"./C1LegaQy.js";import{D as ds,b as us}from"./uO0IO955.js";import{T as cs}from"./ArzfqCkr.js";import"./CvTcUzFW.js";import{cf as ya,cJ as ps,cI as gs,bM as fs,x as vs,F as yn,b1 as ms,aq as _s,aG as hs,aC as bs,cN as ws,ba as ks,aw as xs,aH as ys,aZ as $s,ad as ua,a4 as As,c0 as Ss,ac as Is,cz as Cs,aj as Ps,cM as Ts,az as Rs}from"./B66L8YEe.js";import{b as Os}from"./BaIAhI85.js";import"./CrKYeBTQ.js";import"./B4585dIt.js";import{f as Ls}from"./Z2gbRxA0.js";const Ns=80,Es=10,Ds=new Ka(Va,{renderer:{html({text:a}){return Ya(a)},image({tokens:a}){return this.parser.parseInline(a)}}});function Qn(a){const n=document.createElement("template");n.innerHTML=Ds.parseInline(a,{async:!1});for(const o of n.content.querySelectorAll("br"))o.replaceWith(" ");return(n.content.textContent??"").replace(/\s+/g," ").trim()}function zt(a){return a.replace(/!\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/\[([^\]]+)\]\([^)]*\)/g,"$1").replace(/`+([^`]*?)`+/g,"$1").replace(/<[^>]+>/g,"").replace(/\\([\\`*_[\]{}()#+\-.!>])/g,"$1").replace(/[*~]/g,"").replace(/(^|[^A-Za-z0-9])_+/g,"$1").replace(/_+([^A-Za-z0-9]|$)/g,"$1").replace(/\s+/g," ").trim()}function Un(a,n){return a.slice(n).replace(/^(?:[ \t]*(?:\r\n|\n|\r))+/,"")}function Sn(a,n){return!n||n.length>Ns||n.split(/\s+/).length>Es||/[.!?;]$/.test(n)?!1:!/^[ \t]*(?:[-+*][ \t]+|\d+[.)][ \t]+|>|```|~~~|\|)/.test(a)}function Ui(a){const o=a.trim().match(/^\*\*([^\r\n]+)\*\*$/);if(!o)return null;const i=zt(o[1]);return Sn(o[0],i)?i:null}function Gn(a,n=!1,o=!0){const i=a.match(/^(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",r=a.slice(i.length).match(/^\*\*([^\r\n]+)\*\*[ \t]*(?:(?:\r\n|\n|\r)|$)/);if(!r)return null;if(n){const m=r[1],f=m.match(/\\+$/)?.[0].length??0;if(m!==m.trim()||m.includes("**")||m.startsWith("*")||m.endsWith("*")||f%2!==0)return null}const p=zt(r[1]);return Sn(r[0],p)?{title:n&&o?Qn(r[1]):p,body:Un(a,i.length+r[0].length)}:null}function ca(a){const n=[];let o=a;for(;o.trim();){const i=Kn(o,!0),d=i.heading?{body:i.body}:Gn(o,!0,!1);if(!d)return null;n.push(o.slice(0,o.length-d.body.length)),o=d.body}return n.length?n:null}function qi(a){const n=[];let o=a;for(;o.trim();){const i=Kn(o,!0,Qn),d=i.heading?{title:i.heading,body:i.body}:Gn(o,!0);if(!d)return null;n.push(d.title),o=d.body}return n.length?n:null}function Wi(a){const n=zs(a),o=[];let i=a;for(n.heading&&(o.push({title:n.heading,body:""}),i=n.body);i;){const d=Gn(i);if(!d||d.body.length>=i.length)break;o.push({title:d.title,body:""}),i=d.body}if(o.length===0){const d=a.trim(),r=zt(d);return!d.includes(`
|
|
2
2
|
`)&&Sn(d,r)?[{title:r,body:""}]:d?[{title:null,body:d}]:[]}return o[o.length-1].body=i.trim(),o}function Ms(a){const n=a.replace(/^ {0,3}/,"");return!/^(?:\s|>|`{3}|~{3}|(?:[-+*]|\d+[.)])(?:[ \t]|$)|#{1,6}(?:[ \t]|$)|<|\[[^\]]*\]:)/.test(n)&&!/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})$/.test(n)}function Kn(a,n=!1,o=zt){const i=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",d=a.slice(i.length);if(n&&/^(?: {4}| {0,3}\t)/.test(d))return{heading:null,body:a};const r=d.match(/^[ \t]{0,3}#{1,6}[ \t]+([^\r\n]*?)(?:[ \t]+#+)?[ \t]*(?:\r\n|\n|\r|$)/);if(r&&zt(r[1]))return{heading:o(r[1]),body:Un(a,i.length+r[0].length)};const p=d.match(/^([^\r\n]+)(?:\r\n|\n|\r)([ \t]{0,3})(?:=+|-+)[ \t]*(?:\r\n|\n|\r|$)/);return p&&(!n||Ms(p[1])&&!p[2].includes(" "))&&zt(p[1])?{heading:o(p[1]),body:Un(a,i.length+p[0].length)}:{heading:null,body:a}}function zs(a,{preserveInlineText:n=!1}={}){const o=n?Qn:zt,i=Kn(a,!1,o);if(i.heading)return i;const d=a.match(/^(?:\uFEFF)?(?:[ \t]*(?:\r\n|\n|\r))*/)?.[0]??"",p=a.slice(d.length).match(/^([^\r\n]+)(?:\r\n|\n|\r)(?:[ \t]*(?:\r\n|\n|\r))+/);if(p){const m=zt(p[1]),f=a.slice(d.length+p[0].length);if(f.trim()&&Sn(p[1],m))return{heading:o(p[1]),body:f}}return{heading:null,body:a}}const Gt="[--operational-row-inline-padding:var(--chat-operational-row-inline-padding,0.5rem)] [--operational-leading-slot-size:1.25rem] [--operational-leading-half-slot-size:0.625rem] [--operational-leading-gap:var(--chat-operational-leading-gap,0.5rem)]",Qi="type-body font-family-child font-normal text-muted-foreground",Gi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Ki=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1.5`,Vi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))] pt-1`,Yi=`${Gt} relative min-w-0 max-w-full`,Xi=`${Gt} min-w-0 max-w-full pl-[calc(var(--operational-row-inline-padding)+var(--operational-leading-slot-size)+var(--operational-leading-gap))]`,Ji=`${Gt} operational-group-child-row ml-2 min-w-0 w-[calc(100%-0.5rem)] max-w-[calc(100%-0.5rem)]`,Zi="pt-6",el="text-muted-foreground",tl="text-muted-foreground",$a="font-normal text-muted-foreground",nl="tool-call-container group relative block w-full min-w-0 max-w-full overflow-hidden type-body font-family-child font-normal text-muted-foreground",al="h-[16px]! w-[16px]! shrink-0",rl=`${Gt} relative grid h-7 w-full min-w-0 max-w-full grid-cols-[var(--operational-leading-slot-size)_minmax(0,1fr)_auto] items-center gap-[var(--operational-leading-gap)] overflow-hidden rounded-md px-[var(--operational-row-inline-padding)] type-body transition-colors duration-[var(--motion-fast)] motion-reduce:transition-none`,sl=`a11y-ignore pointer-events-none flex size-[var(--operational-leading-slot-size)] min-w-[var(--operational-leading-slot-size)] shrink-0 items-center justify-center [&_svg]:size-[16px]! ${$a}`,ol=`type-body block min-w-0 max-w-full truncate overflow-hidden text-ellipsis whitespace-nowrap border-0 bg-transparent p-0 text-left ${$a}`,il="type-body flex min-w-0 shrink-0 items-center gap-1 whitespace-nowrap",ll="h-[16px]! w-[16px]! shrink-0 opacity-60 transition-transform duration-[var(--motion-fast)] motion-reduce:transition-none";function dl(a){return qa(a,{axis:"y",duration:va()?0:150})}function cn(a){return a.type==="thinking"||a.type==="tool_use"||a.type==="content_group"}function ul(a){const n=a?.[0];return!n||cn(n)?"":"pt-4"}function cl(a,n,o=()=>!0){const i=a[n];if(!i||!o(i)||!cn(i))return!1;let d=n-1;for(;d>=0&&!o(a[d]);)d-=1;return d>=0&&cn(a[d])}function pl(a,n,o=()=>!0,i=!1){const d=a[n];if(!d||!o(d))return"";let r=n-1;for(;r>=0&&!o(a[r]);)r-=1;if(r<0)return"";const p=a[r];if(p.type==="thinking"&&d.type==="thinking")return i||ca(p.text??p.content??"")!==null&&ca(d.text??d.content??"")!==null?"":"pt-14";const m=cn(p),f=cn(d);return m&&f?"":p.type==="thinking"&&!f?"pt-6":m||f?"pt-4":"pt-1"}const gl="shrink-0 whitespace-nowrap text-ui text-subtle focus-visible:outline-none focus-visible:text-foreground";function Fs(a){if(a?.status==="halted")return c.agent_node_halted_label();if(a?.status==="resuming")return c.agent_node_resuming_label();if(a?.placement?.target==="remote"||Hr(a?.placement?.target)){if(a.placementError)return c.remoteAgent_status_failed();if(a.cloudStart)return c.remoteAgent_status_starting();if(a.effectiveIsolation==="pending")return a.setup?.state==="pending"?c.remoteAgent_status_preparingCheckout():a.setup?.state==="running"?c.remoteAgent_status_runningSetup():c.remoteAgent_status_starting()}if(a?.placement&&a.effectiveIsolation==="pending")return c.agent_node_provisioning_label()}var Bs=_('<span class="owner-fill block h-full svelte-sxf8s9"></span>'),js=_('<span class="shrink-0 text-xs text-muted-foreground"> </span>'),Hs=_('<span class="flex items-center gap-2"><span class="group-key size-1.5 shrink-0 rounded-full svelte-sxf8s9"></span> <span class="min-w-0 flex-1"> </span> <!> <span> </span></span>'),Us=_('<dd class="col-span-2 pl-[1.125rem] text-xs text-muted-foreground wrap-anywhere"> </dd>'),qs=_(`<div class="grid grid-cols-[1fr_auto] items-baseline gap-x-3 py-0.5 text-sm"><dt class="relative min-w-0 pl-[1.125rem] wrap-anywhere before:absolute before:top-2 before:left-0 before:size-1 before:rounded-full before:bg-muted-foreground before:content-['']"> </dt> <dd> </dd> <!></div>`),Ws=_('<dl class="ml-3.5 text-foreground"></dl>'),zn=_("<!> <!>",1),Qs=_('<span class="flex items-center gap-2"><span class="min-w-0 flex-1"> </span> <span class="shrink-0 tabular-nums text-muted-foreground"> </span></span>'),Gs=_('<div class="min-w-0"><dt class="truncate text-sm text-foreground"> </dt> <dd class="text-xs text-muted-foreground wrap-anywhere"> </dd></div>'),Ks=_('<dl class="ml-3.5 flex flex-col gap-2"></dl>'),Vs=_('<section class="min-w-0" data-testid="prompt-breakdown"><div class="mb-3 flex items-baseline justify-between gap-3"><h3 class="text-sm font-medium"> </h3> <span class="shrink-0 text-sm tabular-nums text-muted-foreground"> </span></div> <div class="owner-strip mb-2 flex h-1.5 w-full overflow-hidden svelte-sxf8s9" role="img"></div> <!></section>');function Aa(a,n){const o=Wn();if(new.target)return Pt({component:Aa,...a});Ot(n,!0);let i=w(n,"breakdown",7);const d="type-body font-normal text-foreground data-[state=open]:font-normal";function r(T){return or(T,{maximumFractionDigits:T<1e4?1:0})}function p(T){return T==="native"?c.agent_contextBreakdown_owner_native_label():T==="intent"?c.agent_contextBreakdown_owner_intent_label():c.agent_contextBreakdown_owner_user_label()}const m=u(()=>i().owners.map(T=>c.agent_contextBreakdown_ownerShare_label({owner:p(T.owner),tokens:r(T.estTokens)})).join(", "));var f={get breakdown(){return i()},set breakdown(T){i(T),k()},$set:Tt,$on:(T,v)=>Rt(n,T,v)},S=Vs(),y=O(S),g=O(y),E=U(g,!0),z=b(g,2),Ce=U(z,!0);$(y);var D=b(y,2);Ct(D,21,()=>i().owners,T=>T.owner,(T,v)=>{var ve=Bs();let ue;x(()=>{q(ve,"data-owner",e(v).owner),ue=en(ve,"",ue,{"flex-grow":e(v).share})}),l(T,ve)}),$(D);var P=b(D,2);return de(P,()=>xa,(T,v)=>{v(T,{type:"multiple",children:(ve,ue)=>{var R=zn(),_e=H(R);Ct(_e,17,()=>i().groups,pe=>pe.kind,(pe,K)=>{var W=Oe(),ne=H(W);de(ne,()=>Bn,(ge,ze)=>{ze(ge,{get value(){return e(K).kind},get"data-prompt-group"(){return e(K).kind},children:(ot,G)=>{var I=zn(),ae=H(I);de(ae,()=>da,(he,N)=>{N(he,{level:4,children:(Le,X)=>{var Q=Oe(),Z=H(Q);de(Z,()=>jn,(V,oe)=>{oe(V,{inset:!1,class:d,children:(ee,Ne)=>{var be=Hs(),je=O(be),et=b(je,2),ut=U(et,!0),tt=b(et,2);{var at=ct=>{var Nt=js(),yt=U(Nt,!0);x(Y=>L(yt,Y),[()=>c.agent_contextBreakdown_notCounted_label()]),l(ct,Nt)};M(tt,ct=>{e(K).kind==="native"&&ct(at)})}var Ee=b(tt,2),Kt=U(Ee,!0);$(be),x((ct,Nt)=>{q(je,"data-kind",e(K).kind),L(ut,ct),me(Ee,1,`shrink-0 tabular-nums ${e(K).kind==="native"?"text-muted-foreground":""}`),L(Kt,Nt)},[()=>p(e(K).kind),()=>r(e(K).estTokens)]),l(ee,be)},$$slots:{default:!0}})}),l(Le,Q)},$$slots:{default:!0}})});var Be=b(ae,2);de(Be,()=>Hn,(he,N)=>{N(he,{inset:!1,children:(Le,X)=>{var Q=Ws();Ct(Q,21,()=>e(K).rows,Z=>Z.key,(Z,V)=>{var oe=qs(),ee=O(oe),Ne=U(ee,!0),be=b(ee,2),je=U(be,!0),et=b(be,2);{var ut=tt=>{var at=Us(),Ee=U(at,!0);x(()=>L(Ee,e(V).hint)),l(tt,at)};M(et,tt=>{e(V).hint&&tt(ut)})}$(oe),x(tt=>{L(Ne,e(V).label),me(be,1,`tabular-nums ${e(V).counted?"":"text-muted-foreground"}`),L(je,tt)},[()=>r(e(V).estTokens)]),l(Z,oe)}),$(Q),l(Le,Q)},$$slots:{default:!0}})}),l(ot,I)},$$slots:{default:!0}})}),l(pe,W)});var ce=b(_e,2);{var xe=pe=>{var K=Oe(),W=H(K);de(W,()=>Bn,(ne,ge)=>{ge(ne,{value:"hidden-skills",class:"mt-1",children:(ze,ot)=>{var G=zn(),I=H(G);de(I,()=>da,(Be,he)=>{he(Be,{level:4,children:(N,Le)=>{var X=Oe(),Q=H(X);de(Q,()=>jn,(Z,V)=>{V(Z,{inset:!1,class:d,children:(oe,ee)=>{var Ne=Qs(),be=O(Ne),je=U(be,!0),et=b(be,2),ut=U(et,!0);$(Ne),x((tt,at)=>{L(je,tt),L(ut,at)},[()=>c.agent_contextBreakdown_hiddenSkills_title(),()=>Wt(i().hiddenSkills.length)]),l(oe,Ne)},$$slots:{default:!0}})}),l(N,X)},$$slots:{default:!0}})});var ae=b(I,2);de(ae,()=>Hn,(Be,he)=>{he(Be,{inset:!1,children:(N,Le)=>{var X=Ks();Ct(X,21,()=>i().hiddenSkills,Q=>Q.name,(Q,Z)=>{var V=Gs(),oe=O(V),ee=U(oe,!0),Ne=b(oe,2),be=U(Ne,!0);$(V),x(je=>{L(ee,e(Z).name),L(be,je)},[()=>[e(Z).detail,e(Z).fix].filter(Boolean).join(" · ")]),l(Q,V)}),$(X),l(N,X)},$$slots:{default:!0}})}),l(ze,G)},$$slots:{default:!0}})}),l(pe,K)};M(ce,pe=>{i().hiddenSkills.length>0&&pe(xe)})}l(ve,R)},$$slots:{default:!0}})}),$(S),x((T,v)=>{q(S,"aria-labelledby",`${o}-title`),q(g,"id",`${o}-title`),L(E,T),L(Ce,v),q(D,"aria-label",e(m))},[()=>c.agent_contextBreakdown_title(),()=>c.agent_contextBreakdown_tokens_label({tokens:r(i().estTokens)})]),l(a,S),Lt(f)}const Ys=["intent","user"],Xs=["systemPrompt","toolDescription","provider"],Js=["native","user","intent"],$n=a=>typeof a=="object"&&a!==null&&!Array.isArray(a),An=a=>typeof a=="number"&&Number.isFinite(a)&&a>=0,Zs=a=>a==="intent"||a==="user";function eo(a,n){if(!$n(a))return null;const{id:o,label:i,owner:d,location:r,chars:p,estTokens:m,controlHint:f}=a;if(typeof o!="string"||typeof i!="string"||!Zs(d)||typeof r!="string"||!Xs.includes(r)||!An(p)||!An(m))return null;const S=$n(f)&&typeof f.text=="string"&&f.text;return{key:`${n}:${o}`,id:o,label:i,owner:d,chars:p,estTokens:m,counted:r!=="provider",...S?{hint:S}:{}}}function to(a){if(!$n(a))return null;const{name:n,reason:o,detail:i,fix:d}=a;return[n,o,i,d].some(r=>typeof r!="string")?null:{name:n,reason:o,detail:i,fix:d}}function no(a){if(!$n(a)||a.available!==!0)return null;const{totalChars:n,estTokens:o,sections:i,hiddenSkills:d}=a;if(!An(n)||!An(o)||!Array.isArray(i)||!Array.isArray(d))return null;const r=i.map(eo).filter(f=>f!==null).sort((f,S)=>S.chars-f.chars),p=Ys.map(f=>{const S=r.filter(g=>g.counted&&g.owner===f),y=S.reduce((g,E)=>g+E.chars,0);return{owner:f,chars:y,estTokens:S.reduce((g,E)=>g+E.estTokens,0),share:n>0?y/n:0}}).filter(f=>f.chars>0),m=Js.map(f=>{const S=r.filter(y=>f==="native"?!y.counted:y.counted&&y.owner===f);return{kind:f,chars:S.reduce((y,g)=>y+g.chars,0),estTokens:S.reduce((y,g)=>y+g.estTokens,0),rows:S}}).filter(f=>f.rows.length>0);return{totalChars:n,estTokens:o,rows:r,groups:m,owners:p,hiddenSkills:d.map(to).filter(f=>f!==null)}}async function ao(a){try{const n=await Qr("agent.getSession",{agentId:a});return no(n?.session?.promptBreakdown)}catch{return null}}const pa=rs.map(a=>({key:a.path.replace(/^agentFeatures\./,""),label:a.label,description:a.description}));function ro(a){const n=a.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").toLowerCase().trim();return n.charAt(0).toUpperCase()+n.slice(1)}function so(a){const n=a??{},o=pa.map(r=>({key:r.key,label:r.label(),description:r.description(),enabled:n[r.key]===!0,known:!0})),i=new Set(pa.map(r=>r.key)),d=[];for(const[r,p]of Object.entries(n))i.has(r)||d.push({key:r,label:ro(r),description:null,enabled:p===!0,known:!1});return d.sort((r,p)=>r.label.localeCompare(p.label)),o.concat(d)}var oo=_('<div class="mb-6 border-b border-border pb-6"><!></div>'),io=_("<span> </span>"),lo=_('<!> <span class="sr-only"> </span>',1),uo=_('<div role="listitem" class="text-xs text-subtle" aria-hidden="true">—</div>'),co=_('<section class="min-w-0"><h4 class="text-sm font-medium mb-3"> </h4> <div role="list" class="space-y-2"></div></section>'),po=_('<div class="@container"><!> <section><h3 class="text-sm font-medium"> </h3> <p class="mb-4 mt-1 text-sm text-muted-foreground"> </p> <div class="grid grid-cols-1 gap-6 @min-[28rem]:grid-cols-2" data-testid="harness-features-list"></div></section></div>');function Sa(a,n){const o=Wn();if(new.target)return Pt({component:Sa,...a});Ot(n,!0);let i=w(n,"open",15,!1),d=w(n,"static",7,!1),r=w(n,"version",7),p=w(n,"features",7,null),m=w(n,"agentId",7),f=w(n,"breakdown",7),S=le(null);const y=u(()=>f()===void 0&&!!m());Fe(()=>{if(!i()||!e(y)||!m())return;const D=m();let P=!0;return ao(D).then(T=>{P&&h(S,{agentId:D,view:T},!0)}),()=>{P=!1}});const g=u(()=>f()!==void 0?f():e(y)&&e(S)&&e(S).agentId===m()?e(S).view:null),E=u(()=>so(p())),z=u(()=>[{enabled:!0,label:c.chat_shared_valueOn_label(),rows:e(E).filter(D=>D.enabled)},{enabled:!1,label:c.chat_shared_valueOff_label(),rows:e(E).filter(D=>!D.enabled)}]);var Ce={get open(){return i()},set open(D=!1){i(D),k()},get static(){return d()},set static(D=!1){d(D),k()},get version(){return r()},set version(D){r(D),k()},get features(){return p()},set features(D=null){p(D),k()},get agentId(){return m()},set agentId(D){m(D),k()},get breakdown(){return f()},set breakdown(D){f(D),k()},$set:Tt,$on:(D,P)=>Rt(n,D,P)};{let D=u(()=>c.chat_harnessFeaturesModal_title({version:r()}));Yr(a,{get static(){return d()},get title(){return e(D)},size:"wide",get open(){return i()},set open(P){i(P)},children:(P,T)=>{var v=po(),ve=O(v);{var ue=W=>{var ne=oo(),ge=O(ne);Aa(ge,{get breakdown(){return e(g)}}),$(ne),l(W,ne)};M(ve,W=>{e(g)&&W(ue)})}var R=b(ve,2),_e=O(R),ce=U(_e,!0),xe=b(_e,2),pe=U(xe,!0),K=b(xe,2);Ct(K,21,()=>e(z),W=>W.enabled,(W,ne)=>{var ge=co(),ze=O(ge),ot=U(ze,!0),G=b(ze,2);Ct(G,21,()=>e(ne).rows,I=>I.key,(I,ae)=>{ts(I,{role:"listitem",class:"min-h-0 px-0 py-0 [&_.truncate]:whitespace-normal","data-testid":"harness-feature-state",get"data-feature"(){return e(ae).key},get"data-enabled"(){return e(ae).enabled},title:he=>{var N=Oe(),Le=H(N);{var X=Z=>{var V=lo(),oe=H(V);Gr(oe,{get content(){return e(ae).description},side:"top",size:"sm",children:(be,je)=>{var et=io(),ut=U(et,!0);x(()=>L(ut,e(ae).label)),l(be,et)},$$slots:{default:!0}});var ee=b(oe,2),Ne=U(ee,!0);x(()=>L(Ne,e(ae).description)),l(Z,V)},Q=Z=>{var V=Qt();x(()=>L(V,e(ae).label)),l(Z,V)};M(Le,Z=>{e(ae).description?Z(X):Z(Q,-1)})}l(he,N)},$$slots:{title:!0}})},I=>{var ae=uo();l(I,ae)}),$(G),$(ge),x(()=>{q(ge,"aria-label",e(ne).label),L(ot,e(ne).label)}),l(W,ge)}),$(K),$(R),$(v),x((W,ne)=>{q(R,"aria-labelledby",`${o}-capabilities`),q(_e,"id",`${o}-capabilities`),L(ce,W),L(pe,ne)},[()=>c.chat_harnessFeaturesModal_capabilities_title(),()=>c.chat_harnessFeaturesModal_description()]),l(P,v)},$$slots:{default:!0}})}return Lt(Ce)}var go=_('<p role="alert" class="type-body text-danger"> </p>');function Ia(a,n){if(new.target)return Pt({component:Ia,...a});Ot(n,!0);const o=()=>Re(g,"$outcome$",i),[i,d]=qn();let r=w(n,"open",15,!1),p=w(n,"agentName",7),m=w(n,"workspaceId",7),f=w(n,"agentId",7);const S=crypto.randomUUID(),y=Mt(""),g=xn(y,S),E=u(()=>o()?.workspaceId===m()&&o().agentId===f()?o():void 0),z=u(()=>e(E)?.status==="pending"),Ce=u(()=>e(E)?.status==="failed"?e(E).error:"");Fe(()=>{const v=m();return f(),y.set(v),()=>J.dispatch(Fn(v,S))}),Fe(()=>{e(E)?.status==="succeeded"&&(r(!1),J.dispatch(wa(m(),S,e(E).requestId)))});function D(){const v=xn.select(J.state,m(),S);v?.agentId===f()&&v.status==="pending"||J.dispatch(kn(m(),S,crypto.randomUUID(),f(),{kind:"retire"}))}var P={get open(){return r()},set open(v=!1){r(v),k()},get agentName(){return p()},set agentName(v){p(v),k()},get workspaceId(){return m()},set workspaceId(v){m(v),k()},get agentId(){return f()},set agentId(v){f(v),k()},$set:Tt,$on:(v,ve)=>Rt(n,v,ve)};{const v=ce=>{var xe=Oe(),pe=H(xe);{var K=W=>{var ne=go(),ge=U(ne,!0);x(()=>L(ge,e(Ce))),l(W,ne)};M(pe,W=>{e(Ce)&&W(K)})}l(ce,xe)};let ve=u(()=>c.modals_retireAgent_title()),ue=u(()=>c.modals_retireAgent_description({name:p()})),R=u(()=>c.modals_retireAgent_confirm_label()),_e=u(()=>c.modals_bulkActionConfirm_cancel_label());ds(a,{get title(){return e(ve)},get description(){return e(ue)},get confirmLabel(){return e(R)},get cancelLabel(){return e(_e)},focusSubmit:!1,focusCancel:!0,get busy(){return e(z)},onConfirm:D,get open(){return r()},set open(ce){r(ce)},details:v,$$slots:{details:!0}})}var T=Lt(P);return d(),T}function fo({agentName:a,specialist:n}){const o=n?`{ topLevel: true, specialist: ${JSON.stringify(n)} }`:"{ topLevel: true }",i=n?`and keep the same specialist (${JSON.stringify(n)})`:"and, if you were created with a specialist, pass that exact same `specialist` value in the options";return`Please replace yourself with a fresh top-level agent and run a gradual, coordinated hand-off:
|
|
3
3
|
|
|
4
4
|
1. Create your replacement now: call \`ws.agent.create(${JSON.stringify(a)}, kickoffMessage, ${o})\`. The first argument must be your EXACT current name (${JSON.stringify(a)}) ${i}. Write the kickoff message as a thorough context hand-off: the overall goal, the current state of the work, key notes and files, decisions already made, and open threads.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{I as W}from"./
|
|
1
|
+
import{I as W}from"./DHoMpHTR.js";import{p as X}from"./DFxm7j9Z.js";import{b0 as z,a_ as G,aZ as Y,Y as P,U as F,V as Z,b as g,q as N,ay as A,aX as q,B as U,W as E,r as j,aV as J,a0 as K,O as Q,aO as ee}from"./BVZOiDhO.js";import{p as te}from"./kG7yHiIe.js";var L=/[─━│┃└┗├┣]/,D=/[└┗├┣]/,ne=/[─━]/,V=/^[\s│┃]+$/,T=/^\s*(title[\t ]|accTitle[\t ]*:|accDescr[\t ]*[:{])/,$=/^\s*%%/,re=" ";function _(n){return n.some(t=>L.test(t))}g(_,"isBoxDrawingFormat");function M(n){for(const t of n){const e=D.exec(t);if(e?.index&&e.index>0)return e.index}return 4}g(M,"inferSegmentWidth");function S(n,t){return n.replace(/\bline\s+(\d+)\b/gi,(e,r)=>{const s=parseInt(r,10),i=t.get(s);return i?`line ${i}`:e})}g(S,"remapErrorLines");function R(n){const t=n.split(`
|
|
2
2
|
`),e=new Map;let r=-1;for(const[p,c]of t.entries())if(c.trim()==="treeView-beta"){r=p;break}if(r===-1)return{text:n,lineMap:e};const s=[];for(let p=r+1;p<t.length;p++){const c=t[p];c.trim()===""||$.test(c)||T.test(c)||V.test(c)||s.push(c.replace(/\t/g," "))}if(!_(s))return{text:n,lineMap:e};const i=M(s),o=[];let a=0;for(let p=0;p<=r;p++)o.push(t[p]),a++,e.set(a,p+1);for(let p=r+1;p<t.length;p++){const c=t[p],d=c.trim(),h=p+1;if(d===""){o.push(c),a++,e.set(a,h);continue}if($.test(c)){o.push(c),a++,e.set(a,h);continue}if(T.test(c)){o.push(c),a++,e.set(a,h);continue}if(V.test(c))continue;const l=c.replace(/\t/g," "),w=D.exec(l);if(w?.index!==void 0){const f=w.index,m=Math.round(f/i)+1;let u=f+1;for(;u<l.length&&ne.test(l[u]);)u++;for(;u<l.length&&l[u]===" ";)u++;const v=l.slice(u).trimEnd();if(!v)throw new Error(`Line ${h}: Empty node — expected a filename or directory name after the box-drawing prefix`);const O=re.repeat(m);o.push(O+v),a++,e.set(a,h)}else{if(/^[\s─━│┃└┗├┣]+$/.test(l))continue;if(L.test(l))o.push(c),a++,e.set(a,h);else{if(/^\s+/.test(l))throw new Error(`Line ${h}: Unexpected indentation without box-drawing characters. In box-drawing format, use ├── or └── prefixes for indented nodes.`);o.push(c),a++,e.set(a,h)}}}return{text:o.join(`
|
|
3
3
|
`),lineMap:e}}g(R,"preprocessBoxDrawing");var x=new W(()=>({cnt:1,stack:[{id:0,level:-1,name:"/",nodeType:"directory",children:[]}]})),ie=g(()=>{x.reset(),j()},"clear"),oe=g(()=>x.records.stack[0],"getRoot"),se=g(()=>x.records.cnt,"getCount"),ae=Q.treeView,ce=g(()=>N(ae,E().treeView),"getConfig"),le=g((n,t,e,r,s,i)=>{for(;n<=x.records.stack[x.records.stack.length-1].level;)x.records.stack.pop();const o={id:x.records.cnt++,level:n,name:t,nodeType:e,icon:s,cssClass:r,description:i,children:[]};x.records.stack[x.records.stack.length-1].children.push(o),x.records.stack.push(o)},"addNode"),de={clear:ie,addNode:le,getRoot:oe,getCount:se,getConfig:ce,getAccTitle:Z,getAccDescription:F,getDiagramTitle:P,setAccDescription:Y,setAccTitle:G,setDiagramTitle:z},I=de,he=g(n=>{X(n,I);for(const t of n.nodes){const e=typeof t.indent=="number"?t.indent:0;let r=t.name;const s=r.endsWith("/");s&&(r=r.slice(0,-1));const i=s?"directory":"file",o=t.classAnnotation||void 0,a=t.iconAnnotation,p=a!==void 0?a||"none":void 0,c=t.descAnnotation||void 0,d=c?J(c,E()):void 0;I.addNode(e,r,i,o,p,d)}},"populate"),pe={parse:g(async n=>{const{text:t,lineMap:e}=R(n);try{const r=await te("treeView",t);A.debug(r),he(r)}catch(r){throw e.size>0&&r instanceof Error&&(r.message=S(r.message,e)),r}},"parse")},b={prefix:"mermaid-treeview",height:24,width:24,icons:{folder:{body:'<path fill="currentColor" d="M10.59 4.59A2 2 0 0 0 9.17 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.17z"/>'},file:{body:'<path fill="currentColor" fill-rule="evenodd" d="M6 2a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.83a2 2 0 0 0-.59-1.42l-4.82-4.82A2 2 0 0 0 13.17 2H6Zm7.5 1.9l4.6 4.6h-3.6a1 1 0 0 1-1-1V3.9Z" clip-rule="evenodd"/>'}}};function H(n,t){const e=t?.filenameIcons?.[n];if(e)return e;const r=n.lastIndexOf(".");if(r>0){const s=n.substring(r).toLowerCase(),i=t?.extensionIcons;return i?.[s]??i?.[s.slice(1)]}}g(H,"detectIcon");function C(n,t){return n.includes(":")?n:n in b.icons||!t?`${b.prefix}:${n}`:`${t}:${n}`}g(C,"qualifyIcon");function B(n,t){if(n.icon!=="none"){if(n.icon)return C(n.icon,t.defaultIconPack);if(t.showIcons){if(n.nodeType==="file"){const e=H(n.name,t);if(e==="none")return;if(e)return C(e,t.defaultIconPack)}return`${b.prefix}:${n.nodeType==="directory"?"folder":"file"}`}}}g(B,"getNodeIcon");ee([{name:b.prefix,icons:b}]);var y=14,ge=4,fe=16,ue=g(async(n,t)=>{const e=[],r=g(i=>{const o=B(i,t);o&&e.push({icon:o,node:i}),i.children.forEach(r)},"collect");r(n);const s=await Promise.all(e.map(async({icon:i,node:o})=>({id:o.id,svg:await K(i,{height:y,width:y})})));return new Map(s.map(({id:i,svg:o})=>[i,o]))},"resolveNodeIcons"),we=g((n,t,e,r,s,i)=>{const o=r.append("g");let a="treeView-node-label";e.nodeType==="directory"&&(a+=" treeView-node-dir"),e.cssClass&&(a+=` ${e.cssClass}`);const p=y+ge,c=B(e,s),d=c!==void 0;c&&o.append("g").attr("class","treeView-node-icon").attr("transform",`translate(${n+s.paddingX}, ${t+s.paddingY})`).html(i.get(e.id)??"");const h=o.append("text").text(e.name).attr("dominant-baseline","middle").attr("class",a),{height:l,width:w}=h.node().getBBox(),f=l+s.paddingY*2,m=n+s.paddingX+(d?p:0);h.attr("x",m),h.attr("y",t+f/2);const u=m+w,v=w+s.paddingX*2+(d?p:0);return e.BBox={x:n,y:t,width:v,height:f},e.cssClass?.split(/\s+/).includes("highlight")&&o.insert("rect",":first-child").attr("x",n).attr("y",t+1).attr("width",0).attr("height",f-2).attr("rx",3).attr("class","treeView-highlight-bg"),{node:e,nodeGroup:o,labelRightEdge:u,centerY:t+f/2}},"positionLabel"),k=g((n,t,e,r,s,i)=>n.append("line").attr("x1",t).attr("y1",e).attr("x2",r).attr("y2",s).attr("stroke-width",i).attr("class","treeView-node-line"),"positionLine"),me=g((n,t,e,r)=>{let s=0,i=0;const o=[],a=g((d,h,l,w)=>{const f=w*(l.rowIndent+l.paddingX),m=we(f,s,h,d,l,r);o.push(m);const{height:u,width:v}=h.BBox;k(d,f-l.rowIndent,s+u/2,f,s+u/2,l.lineThickness),i=Math.max(i,f+v),s+=u},"drawNode"),p=g((d,h=0)=>{a(n,d,e,h),d.children.forEach(m=>{p(m,h+1)});const{x:l,y:w,height:f}=d.BBox;if(d.children.length){const{y:m,height:u}=d.children[d.children.length-1].BBox;k(n,l+e.paddingX,w+f,l+e.paddingX,m+u/2+e.lineThickness/2,e.lineThickness)}},"processNode");p(t);const c=o.filter(d=>d.node.description);if(c.length>0){const h=Math.max(...o.map(l=>l.labelRightEdge))+fe;for(const l of c){const f=l.nodeGroup.append("text").text(l.node.description).attr("dominant-baseline","middle").attr("class","treeView-node-description").attr("x",h).attr("y",l.centerY).node().getBBox();i=Math.max(i,h+f.width+e.paddingX)}}for(const d of o)if(d.node.cssClass?.split(/\s+/).includes("highlight")){const h=d.nodeGroup.select(".treeView-highlight-bg");if(!h.empty()){const l=i-d.node.BBox.x+8;h.attr("width",l),i=Math.max(i,d.node.BBox.x+l+2)}}return{totalHeight:s,totalWidth:i}},"drawTree"),xe=g(async(n,t,e,r)=>{A.debug(`Rendering treeView diagram
|
|
4
4
|
`+n);const s=r.db,i=s.getRoot(),o=s.getConfig(),a=q(t),p=a.append("g");p.attr("class","tree-view");const c=await ue(i,o),{totalHeight:d,totalWidth:h}=me(p,i,o,c);a.attr("viewBox",`-${o.lineThickness/2} 0 ${h} ${d}`),U(a,d,h,o.useMaxWidth)},"draw"),ve={draw:xe},be=ve,Ie={labelFontSize:"16px",labelColor:"black",lineColor:"black",iconColor:"#546e7a",descriptionColor:"#6a9955",highlightBg:"rgba(255, 193, 7, 0.15)",highlightStroke:"#ffc107"},Ce=g(({treeView:n})=>{const{labelFontSize:t,labelColor:e,lineColor:r,iconColor:s,descriptionColor:i,highlightBg:o,highlightStroke:a}=N(Ie,n);return`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Ii as o,nx as d,nw as r,on as l,be as a,ru as S,p4 as p,ok as k}from"./
|
|
1
|
+
import{Ii as o,nx as d,nw as r,on as l,be as a,ru as S,p4 as p,ok as k}from"./D-TU-2ME.js";import{b9 as g,aU as m,dB as v,dn as W,c as h,cE as I,c0 as w}from"./Dfltx80e.js";const R={status:"loading",members:[]},u=o.createSelector(e=>d(e.guestSessions.sessions)),K=o.createSelector(e=>e.guestSessions.hasReceivedList),i=o.createSelector(e=>r(e.guestSessions.sessions,e.connections.windowBackendId)??null);o.createSelector(e=>i.select(e)!==null);const M=o.createSelector(e=>e.guestSessions.openIds),F=o.createSelector(e=>e.guestSessions.connectedIds),x=o.createSelector(e=>e.guestSessions.leavingIds),B=o.createSelector(e=>e.guestSessions.leavingWorkspaceKeys),O=o.createSelector(e=>u.select(e).filter(s=>e.guestSessions.failedLeaveIds.includes(s.id))),P=o.createSelector(e=>u.select(e).flatMap(s=>(s.workspaces??[]).filter(t=>e.guestSessions.failedLeaveWorkspaceKeys.includes(l(s.id,t.id))).map(t=>({session:s,workspace:t})))),A=o.createSelector(e=>e.guestSessions.failedLeaveIds),E=o.createSelector(e=>d(e.guestSessions.sweepReports)),N=o.createSelector((e,s)=>r(e.guestSessions.sweepReports,s)),U=o.createSelector(e=>e.guestSessions.clearingWorkspaceIds),$=o.createSelector((e,s)=>r(e.workspace.workspaces,a(s))!==void 0),L=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]?.status==="withheld"?!1:r(e.workspace.workspaces,a(s))!==void 0&&g.select(e)&&m.select(e,s)),y=o.createSelector((e,s)=>{const t=r(e.workspace.workspaces,a(s));if(t?.openInviteCount!=null)return t.openInviteCount;const c=e.guestSessions.hostedRosters[s];return c?.guestCount!=null?Math.max(0,c.guestCount-c.members.filter(S).length):null}),j=o.createSelector(e=>e.workspace.error?"error":v.select(e,e.connections.windowBackendId)?"loaded":"loading"),J=o.createSelector(e=>{const s=W.select(e);return d(e.workspace.workspaces).filter(t=>{if(!s.collaborationReady||!h(s,t.id,()=>t))return!1;const c=y.select(e,t.id);if((t.memberCount??1/0)<=1&&c===0)return!1;const n=e.guestSessions.hostedRosters[t.id];return!n||n.status!=="loaded"?!0:n.members.some(S)||c===null||c>0})}),f=o.createSelector(e=>{const s=i.select(e),t=I.select(e);return u.select(e).filter(c=>{const n=s?.id===c.id&&t?.principal.id===c.principalId?w.select(e):null;return n?n!=="guest":c.hostRole==="member"})}),_=o.createSelector(e=>{const s=new Set(f.select(e).map(t=>t.id));return u.select(e).filter(t=>!s.has(t.id))}),q=o.createSelector(e=>e.guestSessions.listUnavailable),b=o.createSelector((e,s)=>e.guestSessions.hostedRosters[s]??R),z=o.createSelector((e,s)=>b.select(e,s).members.filter(t=>e.guestSessions.failedMemberKeys.includes(p(s,t.principalId)))),C=[],D=o.createSelector((e,s)=>{const t=p(s,""),c=e.guestSessions.removingMemberKeys.filter(n=>n.startsWith(t)).map(n=>n.slice(t.length));return c.length===0?C:c}),T=o.createSelector((e,s)=>e.guestSessions.clearingWorkspaceIds.includes(s)),V=o.createSelector(e=>{const s=[];for(const[t,c]of Object.entries(e.guestSessions.hostedRosters)){if(c.status==="withheld")continue;const n=r(e.workspace.workspaces,a(t));!n||!L.select(e,t)||s.push(`${t}:${n.memberCount??0},${c.invalidation??0}`)}return s.sort()}),Q=o.createSelector(e=>e.guestSessions.inheritedWorkspaceKeys),X=o.createSelector(e=>e.guestSessions.leaveConfirmations),Y=o.createSelector((e,s)=>k(r(e.guestSessions.sessions,s))),Z=o.createSelector((e,s)=>{if(!s||!g.select(e))return!1;const t=i.select(e);return!t||!(t.workspaces??[]).some(c=>c.id===s)||f.select(e).some(c=>c.id===t.id)||e.guestSessions.inheritedWorkspaceKeys.includes(l(t.id,s))?!1:r(e.workspace.workspaces,a(s))?.myRole!=="owner"}),ee=o.createSelector((e,s)=>{const t=i.select(e);return!!t&&e.guestSessions.selfLeaveWorkspaceKeys.includes(l(t.id,s))}),se=o.createSelector((e,s)=>{const t=i.select(e);return!!t&&e.guestSessions.leavingWorkspaceKeys.includes(l(t.id,s))});export{$ as A,se as B,ee as C,f as D,_ as E,i as F,L as a,O as b,P as c,X as d,A as e,x as f,B as g,Y as h,u as i,F as j,K as k,M as l,q as m,U as n,z as o,y as p,D as q,b as r,Z as s,V as t,j as u,N as v,E as w,J as x,Q as y,T as z};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as p}from"./
|
|
1
|
+
import{d as p}from"./D5iylRNB.js";import{x as s,w as l}from"./Bncjw5PN.js";import{selectScriptOutput as o,selectScriptById as f,selectCanReadScriptDefinition as m}from"./CNMI-zGd.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{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./
|
|
1
|
+
import{t as B,bq as d,a_ as T,by as W,bs as j,b as q,bo as z,bu as D}from"./NqHwC243.js";import{bs as L,cd as O,ca as E,a7 as F,ay as G,W as f,bn as H,aA as h,aD as t,c9 as r,a5 as J,bl as K,bA as M,b_ as N,bO as Q,aB as R}from"./DYhIMPy1.js";import{C as U}from"./DxXHe9XL.js";import{dp as V}from"./Dfltx80e.js";import{i as X}from"./H2jLkRRS.js";var Y=R('<div class="flex flex-col items-center justify-center h-full text-subtle gap-4"><p class="text-sm"> </p></div>');function Z(c,o){if(new.target)return B({component:Z,...c});L(o,!0);const l=()=>D(b,"$workspace",u),[u,m]=j();let s=d(o,"tab",7),n=d(o,"workspaceId",7);const g=O(n());E(()=>{g.set(n())});const b=V(g),_=r(()=>l()?.worktreePath||l()?.repositoryPath||""),i=r(()=>s().data?.changes||[]),v=r(()=>s().data?.isAggregate||!1),w=r(()=>s().data?.agentId),k=r(()=>t(i).map(e=>{const a=e.filePath&&X(e.filePath)?e.filePath:`${t(_)}/${e.filePath}`;return{...e,filePath:a}}));var C={get tab(){return s()},set tab(e){s(e),h()},get workspaceId(){return n()},set workspaceId(e){n(e),h()},$set:W,$on:(e,a)=>q(o,e,a)},p=F(),y=G(p);{var P=e=>{U(e,{isLoading:!1,get changes(){return t(k)},get isAggregate(){return t(v)},get agentId(){return t(w)},showStagingControls:!0})},I=e=>{var a=Y(),A=J(a),$=K(A,!0);M(a),N(S=>Q($,S),[()=>z.layout_chatChanges_noChanges_label()]),f(e,a)};T(y,e=>{t(i).length>0?e(P):e(I,-1)})}f(c,p);var x=H(C);return m(),x}export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r}from"./Dz4zGm0b.js";import{w as a,I as e}from"./CO_V-6EQ.js";import{Ii as s}from"./D-TU-2ME.js";import{c as t}from"./5mKZ17P9.js";function C(o,i){return t(s,o,{navigate:i,...a("windowChrome")?{closeWindow:()=>r(e.WINDOW.CLOSE)}:{}})}export{C as closeActiveTab};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as h}from"./
|
|
1
|
+
import{c as h}from"./4q6E5opn.js";import{C as c,H as u,d as p,D as m,R as f,g as _,h as w,b as k,F as v,a as D,S as P,c as R,f as I}from"./9SVo7XCQ.js";import{e as H,i as U,j as y,t as T,k as x}from"./9SVo7XCQ.js";import{l as s}from"./BBIyvTX5.js";const C=120*1e3;class A{constructor(n){this._defaults=n,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),30*1e3),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&(this._worker.dispose(),this._worker=null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){if(!this._worker)return;Date.now()-this._lastUsedTime>C&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||(this._worker=h({moduleId:"vs/language/css/cssWorker",createWorker:()=>new Worker(new URL("/app/immutable/workers/css.worker-08QwUeFR.js",import.meta.url),{type:"module"}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._client=this._worker.getProxy()),this._client}getLanguageServiceWorker(...n){let e;return this._getClient().then(a=>{e=a}).then(a=>{if(this._worker)return this._worker.withSyncedResources(n)}).then(a=>e)}}function E(o){const n=[],e=[],a=new A(o);n.push(a);const r=(...t)=>a.getLanguageServiceWorker(...t);function l(){const{languageId:t,modeConfiguration:i}=o;g(e),i.completionItems&&e.push(s.registerCompletionItemProvider(t,new c(r,["/","-",":"]))),i.hovers&&e.push(s.registerHoverProvider(t,new u(r))),i.documentHighlights&&e.push(s.registerDocumentHighlightProvider(t,new p(r))),i.definitions&&e.push(s.registerDefinitionProvider(t,new m(r))),i.references&&e.push(s.registerReferenceProvider(t,new f(r))),i.documentSymbols&&e.push(s.registerDocumentSymbolProvider(t,new _(r))),i.rename&&e.push(s.registerRenameProvider(t,new w(r))),i.colors&&e.push(s.registerColorProvider(t,new k(r))),i.foldingRanges&&e.push(s.registerFoldingRangeProvider(t,new v(r))),i.diagnostics&&e.push(new D(t,r,o.onDidChange)),i.selectionRanges&&e.push(s.registerSelectionRangeProvider(t,new P(r))),i.documentFormattingEdits&&e.push(s.registerDocumentFormattingEditProvider(t,new R(r))),i.documentRangeFormattingEdits&&e.push(s.registerDocumentRangeFormattingEditProvider(t,new I(r)))}return l(),n.push(d(e)),d(n)}function d(o){return{dispose:()=>g(o)}}function g(o){for(;o.length;)o.pop().dispose()}export{c as CompletionAdapter,m as DefinitionAdapter,D as DiagnosticsAdapter,k as DocumentColorAdapter,R as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,H as DocumentLinkAdapter,I as DocumentRangeFormattingEditProvider,_ as DocumentSymbolAdapter,v as FoldingRangeAdapter,u as HoverAdapter,f as ReferenceAdapter,w as RenameAdapter,P as SelectionRangeAdapter,A as WorkerManager,U as fromPosition,y as fromRange,E as setupMode,T as toRange,x as toTextEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as V,bq as d,by as j,b as B,a_ as I,bo as L}from"./
|
|
1
|
+
import{t as V,bq as d,by as j,b as B,a_ as I,bo as L}from"./NqHwC243.js";import{bs as F,b_ as z,W as _,bn as H,aA as p,aC as T,a7 as O,ay as P,aD as r,a5 as U,bS as X,bH as b,bA as Y,be as Z,b$ as $,bO as ee,c9 as c,aB as te,bV as k,bk as re}from"./DYhIMPy1.js";import{u as ne,v as ie,j as oe}from"./C2dNFWEv.js";import{G as ae}from"./CO_V-6EQ.js";import{I as se}from"./TGii5dZx.js";import"./B0hlE4IJ.js";import{L as le}from"./BD9kDOxT.js";import"./B9PO2UZy.js";import{D as ue,b as W}from"./uO0IO955.js";import{r as ce,q as y}from"./DJI9bjVo.js";var fe=T('<svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" aria-hidden="true"><path d="M12 15.82L12 23.76M4.44 21L8.35 16.35A1.96 1.96 0 0 0 6.4 12.99L0.42 14.04M1.82 6.12L7.08 9.16A1.96 1.96 0 0 0 10.06 6.66L7.98 0.95M16.02 0.95L13.94 6.66A1.96 1.96 0 0 0 16.92 9.16L22.18 6.12M23.58 14.04L17.6 12.99A1.96 1.96 0 0 0 15.65 16.35L19.56 21" stroke="currentColor" stroke-width="2.06" stroke-linecap="butt" stroke-linejoin="round"></path></svg>');function me(f,o){if(new.target)return V({component:me,...f});F(o,!0);let e=d(o,"width",7,24),n=d(o,"class",7,"");var a={get width(){return e()},set width(s=24){e(s),p()},get class(){return n()},set class(s=""){n(s),p()},$set:j,$on:(s,m)=>B(o,s,m)},l=fe();return z(()=>{ne(l,"width",e()),ie(l,0,oe(n()))}),_(f,l),H(a)}var de=te('<div class="grid gap-2"><!> <!></div>');function E(f,o){if(new.target)return V({component:E,...f});F(o,!0);let e=d(o,"request",7),n=d(o,"value",15,""),a=d(o,"busy",7,!1),l=d(o,"static",7,!1),s=d(o,"onAccept",7),m=d(o,"onCancel",7),v=k(null);var A={get request(){return e()},set request(t){e(t),p()},get value(){return n()},set value(t=""){n(t),p()},get busy(){return a()},set busy(t=!1){a(t),p()},get static(){return l()},set static(t=!1){l(t),p()},get onAccept(){return s()},set onAccept(t){s(t),p()},get onCancel(){return m()},set onCancel(t){m(t),p()},$set:j,$on:(t,g)=>B(o,t,g)},h=O(),i=P(h);{var u=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_bulkActionConfirm_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_bulkActionConfirm_cancel_label()),S=c(()=>e().options.destructive??!1);ue(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get confirmLabel(){return r(g)},get cancelLabel(){return r(M)},get destructive(){return r(S)},get busy(){return a()},onConfirm:()=>s()(n()),get onCancel(){return m()}})}},q=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label()),M=c(()=>e().options.cancelLabel??L.modals_input_cancel_label()),S=c(()=>!e().options.field.required||n().trim().length>0);W(t,{open:!0,get static(){return l()},get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},get cancelLabel(){return r(M)},get canSubmit(){return r(S)},get busy(){return a()},get initialFocus(){return r(v)},onSubmit:()=>s()(n()),get onCancel(){return m()},children:(J,ge)=>{var D=de(),G=U(D);{var K=C=>{le(C,{for:"confirm-prompt-field",children:(R,w)=>{Z();var N=$();z(()=>ee(N,e().options.field.label)),_(R,N)},$$slots:{default:!0}})};I(G,C=>{e().options.field.label&&C(K)})}var Q=X(G,2);{let C=c(()=>e().options.field.type??"text"),R=c(()=>e().options.field.label?void 0:e().options.title);se(Q,{id:"confirm-prompt-field",get type(){return r(C)},get placeholder(){return e().options.field.placeholder},get"aria-label"(){return r(R)},get ref(){return r(v)},set ref(w){b(v,w,!0)},get value(){return n()},set value(w){n(w)}})}Y(D),_(J,D)},$$slots:{default:!0}})}},x=t=>{{let g=c(()=>e().options.confirmLabel??L.modals_input_confirm_label());W(t,{open:!0,get static(){return l()},role:"alertdialog",get title(){return e().options.title},get description(){return e().options.description},get submitLabel(){return r(g)},showCancel:!1,dismissOnInteractOutside:!1,get busy(){return a()},onSubmit:()=>s()(n()),onCancel:()=>s()(n())})}};I(i,t=>{e()?.kind==="confirm"?t(u):e()?.kind==="prompt"?t(q,1):e()?.kind==="alert"&&t(x,2)})}return _(f,h),H(A)}function pe(f,o){if(new.target)return V({component:pe,...f});F(o,!0);let e=k(null),n=k(""),a=k(!1);re(()=>ce(i=>{b(e,i,!0),b(n,i?.kind==="prompt"?i.options.field.initialValue??"":"",!0),b(a,!1)}));function l(){!r(e)||r(a)||y(r(e).id,r(e).kind==="confirm"?!1:null)}async function s(){if(!r(e)||r(a))return;const i=r(e);b(a,!0);try{i.kind==="confirm"?(await i.options.onConfirm?.(),y(i.id,!0)):i.kind==="prompt"?(await i.options.onConfirm?.(r(n).trim()),y(i.id,r(n).trim())):y(i.id,void 0)}catch(u){throw console.error("Confirm action failed:",u),b(a,!1),u}}var m={$set:j,$on:(i,u)=>B(o,i,u)},v=O(),A=P(v);{var h=i=>{var u=O(),q=P(u);ae(q,()=>r(e).id,x=>{E(x,{get request(){return r(e)},get busy(){return r(a)},onAccept:s,onCancel:l,get value(){return r(n)},set value(t){b(n,t,!0)}})}),_(i,u)};I(A,i=>{r(e)&&i(h)})}return _(f,v),H(m)}export{pe as C,me as L};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as F,bq as l,a_ as q,bo as u,by as G,b as H,bu as re,bs as se}from"./
|
|
1
|
+
import{t as F,bq as l,a_ as q,bo as u,by as G,b as H,bu as re,bs as se}from"./NqHwC243.js";import{bs as J,a5 as P,bl as I,bS as _,bA as $,be as z,b$ as N,b_ as k,bO as m,W as v,aD as ae,bn as K,aA as p,c9 as ne,aB as B,c5 as T,a7 as oe,ay as ie}from"./DYhIMPy1.js";import{u as W}from"./C2dNFWEv.js";import{f as A}from"./c-xC05gO.js";import{D as ce}from"./D-mqBiUo.js";import{a5 as de}from"./DpZbkRU1.js";import{Ii as ue,iM as le}from"./D-TU-2ME.js";var pe=B('<p class="text-sm text-muted-foreground"> </p>'),j=B('<p role="status" class="text-sm"> </p>'),ge=B('<div class="flex max-h-[min(calc(100dvh-8rem),calc(var(--toast-max-height,100dvh)-2rem))] min-h-0 min-w-0 flex-col gap-3" role="group"><div class="min-h-0 space-y-3 overflow-y-auto break-words" role="region" tabindex="0"><p class="font-medium break-words"> </p> <p class="text-sm text-muted-foreground"> </p> <!> <!> <!> <!></div> <div class="flex shrink-0 flex-wrap gap-2"><!> <!> <!></div></div>');function L(y,r){if(new.target)return F({component:L,...y});J(r,!0);let a=l(r,"request",7),g=l(r,"pending",7,!1),b=l(r,"settingUp",7,!1),c=l(r,"guidance",7),d=l(r,"checklist",7),i=l(r,"onDecision",7);var C={get request(){return a()},set request(e){a(e),p()},get pending(){return g()},set pending(e=!1){g(e),p()},get settingUp(){return b()},set settingUp(e=!1){b(e),p()},get guidance(){return c()},set guidance(e){c(e),p()},get checklist(){return d()},set checklist(e){d(e),p()},get onDecision(){return i()},set onDecision(e){i(e),p()},$set:G,$on:(e,t)=>H(r,e,t)},x=ge(),f=P(x),w=P(f),U=I(w,!0),D=_(w,2),n=I(D,!0),h=_(D,2);{var Q=e=>{var t=pe(),s=I(t,!0);k(o=>m(s,o),[()=>u.desktop_consent_claimPrimary({computer:a().computerName})]),v(e,t)};q(h,e=>{a().claimsPrimary&&e(Q)})}var O=_(h,2);{var V=e=>{ce(e,{get checklist(){return d()}})};q(O,e=>{d()&&e(V)})}var S=_(O,2);{var X=e=>{var t=j(),s=I(t,!0);k(()=>m(s,c())),v(e,t)};q(S,e=>{c()&&e(X)})}var Y=_(S,2);{var Z=e=>{var t=j(),s=I(t,!0);k(o=>m(s,o),[()=>u.desktop_consent_pending()]),v(e,t)};q(Y,e=>{g()&&!b()&&e(Z)})}$(f);var E=_(f,2),M=P(E);A(M,{size:"compact",variant:"primary",get disabled(){return g()},onclick:()=>i()("allow_once"),children:(e,t)=>{z();var s=N();k(o=>m(s,o),[()=>u.desktop_consent_once()]),v(e,s)},$$slots:{default:!0}});var R=_(M,2);A(R,{size:"compact",variant:"outline",get disabled(){return g()},onclick:()=>i()("allow_future"),children:(e,t)=>{z();var s=N();k(o=>m(s,o),[()=>u.desktop_consent_future()]),v(e,s)},$$slots:{default:!0}});var ee=_(R,2);{let e=ne(()=>g()&&!b());A(ee,{size:"compact",variant:"ghost",get disabled(){return ae(e)},onclick:()=>i()("deny"),children:(t,s)=>{z();var o=N();k(te=>m(o,te),[()=>u.desktop_consent_deny()]),v(t,o)},$$slots:{default:!0}})}return $(E),$(x),k((e,t,s,o)=>{W(x,"aria-label",e),W(f,"aria-label",t),m(U,s),m(n,o)},[()=>u.desktop_consent_title(),()=>u.desktop_consent_title(),()=>u.desktop_consent_request({agent:a().agentName,computer:a().computerName}),()=>u.desktop_consent_description()]),v(y,x),K(C)}function _e(y,r){if(new.target)return F({component:_e,...y});J(r,!0);const a=()=>re(C,"$entry",g),[g,b]=se();let c=l(r,"workspaceId",7),d=l(r,"agentId",7),i=l(r,"requestId",7);const C=de(T(()=>c()),T(()=>d()));var x={get workspaceId(){return c()},set workspaceId(n){c(n),p()},get agentId(){return d()},set agentId(n){d(n),p()},get requestId(){return i()},set requestId(n){i(n),p()},$set:G,$on:(n,h)=>H(r,n,h)},f=oe(),w=ie(f);{var U=n=>{L(n,{get request(){return a().pending},get pending(){return a().submitting},get settingUp(){return a().settingUp},get guidance(){return a().error},get checklist(){return a().osChecklist},onDecision:h=>ue.dispatch(le(c(),d(),i(),h))})};q(w,n=>{a()?.pending?.requestId===i()&&n(U)})}v(y,f);var D=K(x);return b(),D}export{_e as default};
|